/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Annotation of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 235 - (hide annotations)
Tue Jul 23 10:56:29 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 32125 byte(s)
* Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
parameter list a bit to allow setting the window title and the
initial message in the status bar. Update the callers.

* Thuban/UI/application.py (ThubanApplication.OnInit)
(ThubanApplication.CreateMainWindow): Put the mainwindow
instantiation into a separate method so that it can be overridden
by a subclass.

1 bh 235 2002-07-23 Bernhard Herzog <[email protected]>
2    
3     * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
4     parameter list a bit to allow setting the window title and the
5     initial message in the status bar. Update the callers.
6    
7     * Thuban/UI/application.py (ThubanApplication.OnInit)
8     (ThubanApplication.CreateMainWindow): Put the mainwindow
9     instantiation into a separate method so that it can be overridden
10     by a subclass.
11    
12 bh 230 2002-07-19 Bernhard Herzog <[email protected]>
13    
14 bh 234 * Thuban/Model/session.py: Issue a CHANGED message every time
15     another changed message is issued to make it easier to get
16     notified of changes.
17     (Session): Update the doc string
18     (Session.forward): Issue changed-events as CHANGED as well.
19     (Session.changed): Overwrite the inherited version to issue
20     CHANGED events as well.
21    
22     * Thuban/UI/tree.py: We can now simply subscribe to the session's
23     CHANGED channel to be informed of changes.
24     (SessionTreeCtrl.session_channels): Not needed any longer.
25     (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
26     Only have to (un)subscribe CHANGED
27    
28     * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
29    
30 bh 230 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
31     for the wxPython locale bug to __init__.py so that it's
32     automatically executed by anybody using UI code from Thuban.
33    
34 bh 225 2002-07-18 Bernhard Herzog <[email protected]>
35    
36 bh 228 * Thuban/UI/main.py (main): app no longer needs to be global
37    
38     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
39     as parameter and store it in an instance variable
40     (MainWindow.invoke_command, MainWindow.update_command_ui)
41     (MainWindow.save_modified_session, MainWindow.NewSession)
42     (MainWindow.OpenSession, MainWindow.SaveSession)
43     (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
44     application object.
45    
46     * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
47     the main window with self.
48    
49 bh 225 * Thuban/UI/context.py: New module with the context class
50    
51     * Thuban/UI/command.py (Command): Update doc string.
52    
53     * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
54     MainWindow.update_command_ui): Pass an instance of the context
55     class to the command's methods
56     (check_current_tool, call_method): Handle the new context
57     implementation
58    
59     * Examples/simple_extensions/simple_tool.py (simple_tool,
60     check_simple_tool): Handle the new context implementation
61    
62     * Examples/simple_extensions/simple_command.py (simple_command):
63     Handle the new context implementation. Update the comments about
64     the context.
65    
66     * Thuban/UI/application.py (ThubanApplication.SetSession): Add
67     doc-string
68     (ThubanApplication.Session): New method to return the session
69     object
70    
71     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
72     interactor's selected_layer may not be a layer of the current
73     session when the tree is updated while a new session is being set.
74    
75 bh 217 2002-07-17 Bernhard Herzog <[email protected]>
76    
77     * Thuban/UI/tree.py (color_string): Removed. No longer used.
78     (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
79     update_tree into update_tree and add_items. The tree now uses a
80     more generic way to display the contents of the tree.
81     (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
82    
83     * Thuban/Model/layer.py (Layer.TreeInfo),
84     Thuban/Model/extension.py (Extension.TreeInfo),
85     Thuban/Model/map.py (Map.TreeInfo),
86     Thuban/Model/session.py (Session.TreeInfo):
87     Add TreeInfo methods to implement the new tree view update scheme
88    
89 bh 216 2002-07-16 Bernhard Herzog <[email protected]>
90    
91     * Thuban/UI/application.py: Don't use "import from" for the
92     MainWindow. It can't always be resolved.
93     (ThubanApplication.OnInit): change reference to MainWindow
94     accordingly.
95    
96     * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
97     completely
98    
99 bh 213 2002-07-10 Bernhard Herzog <[email protected]>
100    
101     * setup.py (create_init_module): New configurable variable whose
102     default depends on the platform we're running on.
103     (ThubanInstall.initialize_options): Initialize
104     self.create_init_module from the global create_init_module
105     (ThubanInstall.user_options): indictate that the options
106     create-init-module and init-module-dir have arguments.
107    
108     * setup.py: In the setup call change the version number to include
109     cvs.
110    
111     * MANIFEST.in: Add the files in Examples
112    
113 bh 205 2002-07-09 Bernhard Herzog <[email protected]>
114    
115 bh 210 * setup.py: In the setup call, use the thuban homepage as the
116     value of the url parameter.
117    
118 bh 208 * Examples: New subdirectory for examples.
119    
120     * Examples/simple_extensions/simple_tool.xpm,
121     Examples/simple_extensions/simple_tool.py,
122     Examples/simple_extensions/simple_command.py,
123     Examples/simple_extensions/README: Simple examples showing how to
124     add new commands and tools.
125    
126 bh 207 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
127     bdist_rpm that we also have an install script.
128     (bdist_inno): Add 2002 to the copyright notice.
129    
130 bh 205 * setup.py: Create a file in python's site-packages directory to
131     make installation of Thuban as a library easier.
132     (ThubanInstall.user_options): Add two new options,
133     create-init-module and init-module-dir
134     (ThubanInstall.expand_with_pure_python_dirs): New method to expand
135     filenames for installation in the default directories.
136     (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
137     the inherited methods to capture some filenames before they're
138     transformed too much by distutils.
139     (ThubanInstall.run): Create the init module if requested.
140     (ThubanInstall.thuban_init_filename): New method to return the
141     full name of the init module.
142     (ThubanInstall.get_outputs): Append the filename of the init
143     module.
144    
145 bh 202 2002-07-08 Bernhard Herzog <[email protected]>
146    
147 bh 205 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
148     handle the prefix properly which means that the default for the
149     installation prefix should be /usr for RPMs and /usr/local when
150     doing a normal source install.
151     (bdist_rpm_install_script): Script to override the default install
152     commands in the specfile generated by the bdist_rpm command.
153     (thuban_bdist_rpm.user_options): Add a prefix option
154     (thuban_bdist_rpm.initialize_options): Init the prefix option.
155     Create the script files for the spec files as empty files here
156     (thuban_bdist_rpm._make_spec_file): Override the inherited method
157     to fill the script files with content.
158    
159 bh 202 * Thuban/Model/save.py (relative_filename): Wrapper around
160     Thuban.Lib.fileutil.relative_filename that accepts an empty dir
161     argument. save_session now automatically uses this version,
162     solving a problem when saving to a relative filename.
163    
164     * setup.py: In the setup call, make sure that the library
165     directories are under $prefix/lib not directly under $prefix.
166    
167 jan 199 2002-06-20 Jan-Oliver Wagner <[email protected]>
168    
169     * Thuban/Model/extension.py: new module to handle extension objects.
170     * Thuban/Model/messages.py: new messages for extensions.
171     * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
172     Session.AddExtension): new for handling extensions.
173     Also some other minor changes to round up extension handling.
174     * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
175     of Extension titles and title and names of its objects.
176    
177 bh 194 2002-05-29 Bernhard Herzog <[email protected]>
178    
179     * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
180 bh 202 the events for a command.
181 bh 194 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
182     Call bind_command_events to bind the events. add_toolbar_command
183     can now bind events too so that it's possible to have commands
184     that are only available through the toolbar.
185     (MainWindow.init_ids): New instance variable events_bound to keep
186     track of for which commands events have been bound.
187    
188 bh 190 2002-05-28 Bernhard Herzog <[email protected]>
189    
190     * Thuban/UI/menu.py: New module to build and manage menus.
191    
192     * Thuban/UI/mainwindow.py: Remove some unused imports.
193     (MainWindow.__init__, main_menu): move the definition of the main
194     menu from __init__ to the Menu instance main_menu.
195     (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
196     build the menu bar and sub-menus from a menu description.
197    
198     * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
199     startup file
200     (ThubanApplication.read_startup_files): New method to run
201     ~/.thuban/thubanstart.py
202    
203 bh 192 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
204     Move the toolbar definition to the Menu instance main_toolbar.
205     (MainWindow.build_toolbar): New method to build the toolbar
206     similar to the build_menu methods
207    
208 bh 184 2002-05-23 Bernhard Herzog <[email protected]>
209    
210 bh 186 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
211     layer_outline_color. Fix it in the definition of the command too.
212    
213 bh 184 * Thuban/UI/command.py (Command): Fix typo in doc string
214    
215 bh 182 2002-05-22 Bernhard Herzog <[email protected]>
216    
217     * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
218     in the docstring
219    
220 bh 175 2002-05-15 Bernhard Herzog <[email protected]>
221    
222 bh 180 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
223     when the shapefile is empty.
224     (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
225     now return None for empty shapefiles. Update doc-strings.
226    
227     * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
228     the layer's bbox being None.
229    
230     * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
231     layer's bbox being None.
232    
233 bh 175 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
234     necessary.
235     (MapCanvas.__init__): New instance variables, last_selected_layer
236     and last_selected_shape to determine how the selection has
237     changed.
238    
239     * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
240     AutoSizeColumns because it will cause a traversal of the entire
241     table which for large .dbf files will take a very long time.
242    
243 bh 172 2002-05-14 Bernhard Herzog <[email protected]>
244    
245     * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
246     maximum depth for the tree than shapelib does by default.
247    
248 bh 165 2002-05-10 Bernhard Herzog <[email protected]>
249    
250     * setup.py (py_modules): The shptree modules doesn't have a
251     wrapper, so don't include it in the py_modules
252    
253 bh 163 2002-05-08 Bernhard Herzog <[email protected]>
254    
255     * extensions/shapelib/shptree.c (compare_ints): Make arguments
256     const void * as in the qsort prototype
257     (SHPTreeFindLikelyShapes): Remove some unused variables.
258    
259     * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
260     maintains to redraw the window during a drag.
261     (MapCanvas.unprojected_rect_around_point): New method to determine
262     a small region around a point for hit-testing.
263     (MapCanvas.find_shape_at): Only test the shapes in a small region
264     around the point.
265    
266     * setup.py: Increment the version to 0.1.2
267    
268     * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
269     debug print and set session to None after unsubscribing
270    
271 bh 146 2002-05-07 Bernhard Herzog <[email protected]>
272    
273 bh 154 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
274     the file to have a .thuban extension.
275    
276 bh 152 * Thuban/UI/tree.py (session_channels): New class constant with
277     all the session channels to subscribe to to update the tree
278     (SessionTreeCtrl.session_changed): Remember the session so that we
279     can unsubscribe properly. Use the new class constant to
280     unsubscribe from the old session and subscribe to the new one.
281     (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
282     subscriptions of the SessionTreeCtrl.
283     (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
284    
285     * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
286     Session Tree" command to the file menu.
287    
288     * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
289     as update_region to the renderer.
290    
291     * Thuban/UI/renderer.py
292     (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
293     update box is now directly a tuple, not a wxRect anymore.
294    
295     * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
296     prints.
297    
298     2002-05-07 Bernhard Herzog <[email protected]>
299    
300 bh 146 * setup.py: Add the shptree extension module. See
301     extensions/pyshapelib/ChangeLog for more details.
302    
303     * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
304     extensions/shapelib/dbfopen.c: Really update to the versions of
305     shapelib 1.2.9. For some reason it wasn't really done on
306     2002-04-11.
307    
308     * extensions/shapelib/shptree.c: Modified version of shptree.c of
309     shapelib 1.2.9. The only real difference is the use of qsort
310     instead of a bubble sort implementation
311    
312     * Thuban/Model/layer.py (Layer.__init__): New instance variable
313     shapetree to hold the shapelib quadtree for the shapefile
314     (Layer.open_shapefile): Create the quad tree.
315     (Layer.ShapesInRegion): New method to return the ids of shapes in
316     a given region using the quad tree.
317    
318     * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
319     comment
320     (draw_polygon_shape): Accept both arcs and polygons.
321     (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
322     the api.
323    
324     * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
325     return the shape ids to be rendered in a given layer.
326     (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
327     ids. Use draw_polygon_shape to draw arc shapes as well.
328     (ScreenRenderer.RenderMap): New parameter for the rectangle that
329     has to be updated
330     (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
331     calling it's ShapesInRegion method.
332    
333     * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
334     update_region for the update region.
335     (MapCanvas.OnPaint): Maintain the update region
336     (MapCanvas.do_redraw): Pass the bounding box of the update_region
337     to the renderer when drawing the bitmap. Reset the update_region.
338    
339 bh 129 2002-05-03 Bernhard Herzog <[email protected]>
340    
341 bh 131 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
342     MainWindow.OpenSession): Change the file extension of the session
343     files to .thuban
344    
345 bh 129 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
346     Move the map channels to be forwarded by the session into the
347 bh 146 class constant with forwarded_channels. Also add
348     LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
349     forwarded_channels
350 bh 129
351     * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
352     typo and some rewording).
353    
354 bh 126 2002-05-02 Bernhard Herzog <[email protected]>
355    
356     * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
357     around to speed up most redraws:
358     (MapCanvas.__init__): New instance variable bitmap which holds the
359     bitmap
360     (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
361     self.bitmap to draw.
362     (MapCanvas.full_redraw): New method to force a full redraw
363     including the bitmap
364     (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
365     make sure the bitmap is redrawn.
366     (MapCanvas.projection_changed, MapCanvas.set_view_transform,
367     MapCanvas.shape_selected): Call full_redraw instead of readraw to
368     make sure the bitmap is redrawn.
369     (MapCanvas.OnSize): New method to handle size events so that the
370     bitmap can be redrawn.
371    
372 bh 124 2002-04-29 Bernhard Herzog <[email protected]>
373    
374     * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
375     canvas' VIEW_POSITION event
376     (MainWindow.view_position_changed): Handler for VIEW_POSITION.
377     Update the text in the status-bar accordingly.
378    
379     * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
380     (MapCanvas.__del__): Implement because Publisher.__del__ has to be
381     called.
382     (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
383     current_position
384     (MapCanvas.set_current_position): New method to set
385     current_position. Issue a VIEW_POSITION event
386     (MapCanvas.CurrentPosition): New public method to return the value
387     of current_position. Should be called when the VIEW_POSITION event
388     is processed.
389     (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
390     Update the position.
391     (MapCanvas.OnLeaveWindow): Set the position to None.
392    
393     * Thuban/UI/messages.py (VIEW_POSITION): New message for the
394     position in the statusbar
395    
396 frank 120 2002-04-26 Frank Koormann <[email protected]>
397    
398     * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
399    
400     2002-04-24 Frank Koormann <[email protected]>
401 frank 118
402     * Resources/Bitmaps/identify.xpm: shadow added
403    
404     * Resources/Bitmaps/fullextent.xpm: new
405    
406 jan 116 2002-04-22 Jan-Oliver Wagner <[email protected]>
407    
408     * Thuban/UI/tree.py (update_tree): added test for None on map bounding box
409    
410 jan 114 2002-04-21 Jan-Oliver Wagner <[email protected]>
411    
412     * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
413    
414     * Thuban/UI/tree.py (update_tree): added added map extent
415    
416     * Thuban/UI/mainwindow.py (_method_command): extended by parameter
417     icon; added map_full_extend as tool
418    
419 jan 107 2002-04-19 Jan-Oliver Wagner <[email protected]>
420    
421     * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
422     saving _new_ sessions
423    
424     * Thuban/Model/session.py (create_empty_session): new session
425     don't have a filename (set to None)
426    
427     * Thuban/UI/tree.py (update_tree): added filename and modified flag
428    
429     * Thuban/Model/load.py (ProcessSession): convert projection
430     parameters from unicode to regular string
431    
432     * Data/iceland_sample.session: Added UTM Zone 26 projection.
433    
434 bh 100 2002-04-11 Bernhard Herzog <[email protected]>
435    
436     * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
437     extensions/shapelib/dbfopen.c: Update to the versions of shapelib
438     1.2.9
439    
440     * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
441     the pyshapelib directoy into the list of include dirs, so that
442     pyshapelib_api.h can be found.
443    
444     * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
445     holds the pyshapelib C-API
446     (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
447     pyshapelib_api to access the shapelib functions.
448     (initwxproj): Import the c_api from the shapelib module and
449     initialize pyshapelib_api.
450    
451 bh 89 2002-04-04 Bernhard Herzog <[email protected]>
452    
453 bh 91 * setup.py (thuban_bdist_rpm.initialize_options): Use
454     initialize_options to create the scripts for the rpm.
455    
456 bh 89 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
457    
458 bh 85 2002-04-03 Bernhard Herzog <[email protected]>
459    
460 bh 87 * setup.py: Increment version to 0.1.1
461    
462 bh 85 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
463     Layer" and "Remove Layer" commands from the layer menu to the map
464     menu
465    
466 bh 83 2002-02-15 Bernhard Herzog <[email protected]>
467    
468     * Thuban/Model/layer.py (Layer.Shape): list append only takes one
469     argument (python <= 1.5.2 erroneously accepted multiuple
470     arguments)
471    
472 bh 81 2002-02-04 Bernhard Herzog <[email protected]>
473    
474     * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
475     RecordGrid in the identifyview.
476     (IdentifyView.__init__): Use IdentifyGridCtrl instead of
477     IdentifyListCtrl. The grid allows editing of the values.
478    
479     * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
480     implementing a grid for a single row of a thuban table.
481    
482     * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
483     layers by default. Easier to use than the previous default of only
484     searching through the select layer which meant that if no layer
485     was selected, you couldn't select a shape.
486    
487     * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
488    
489     * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
490     stroke_width attribute
491    
492     * Thuban/Model/save.py (save_session): Write the new stroke_width
493     attribute
494    
495     * Thuban/Model/load.py (ProcessSession.startElement): Read the
496     stroke_width attribute
497    
498     * Thuban/Model/layer.py (Layer.__init__): New parameter and
499     instance variable stroke_width
500     (Layer.SetStrokeWidth): Set the stroke_width.
501    
502 bh 72 2002-02-01 Bernhard Herzog <[email protected]>
503    
504     * extensions/thuban/wxproj.cpp (project_points): Fix two
505     off-by-one errors in the last loop that joins the various parts
506     together.
507    
508 bh 71 2002-01-14 Bernhard Herzog <[email protected]>
509    
510     * setup.py (data_dist.make_distribution): Fix some typos
511    
512 bh 70 2001-09-18 Bernhard Herzog <[email protected]>
513    
514     * README: Slight tweaking in preparation for the 0.1 release
515    
516     * setup.cfg: Add section for sdist to create both tgz and zip
517     archives
518    
519     * setup.py: increase version number to 0.1
520     (data_dist): New command class for data distribution
521    
522    
523 bh 64 2001-09-14 Bernhard Herzog <[email protected]>
524    
525 bh 70 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
526     Handle the case of no layer (i.e. layer is None) properly.
527    
528     * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
529     Set the initial selection of the combo boxes to reflect the
530     projection we're starting with in a way that works on windows,
531     too.
532    
533 bh 64 * Thuban/Lib/connector.py (Connector.print_connections): Print the
534     puiblisher's ids in hex to make it easier to compare them to the
535     standard repr of python methods
536    
537     * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
538     messages
539    
540 bh 59 2001-09-13 Bernhard Herzog <[email protected]>
541    
542 bh 64 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
543     deselect the layer if no layer is selected
544    
545 bh 59 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
546     idle time when there actually is something to draw. If there's
547     nothing to draw simply clear the window
548     (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
549     (MapCanvas.SetMap): force a redraw in all cases because
550     FitMapToWindow doesn't always do it.
551     (MapCanvas.ZoomFactor): Add an optional parameter, center, to
552     specify the point to move into the center of the window
553     (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
554     dragged, zoon in/out by a factor of 2
555 bh 64 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
556     index, i.e. reversed drawing order) so that objects appearing to
557     be in from of others are selected first. This is probably mostly
558     relevant for point shapes where the symbols used may overlap
559 bh 59
560     * Thuban/Model/session.py (create_empty_session): Unset the
561     modified bit before returning it
562    
563     * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
564     create_empty_session session to create the new, empty session.
565    
566     * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
567     the tool bitmaps.
568     (MainWindow.OnClose, MainWindow.save_modified_session): Separate
569     the code that asks whether the session should be saved into the
570     new method save_modified_session.
571     (MainWindow.OpenSession, MainWindow.NewSession): Use the new
572     method to save modified session here too.
573    
574 bh 55 2001-09-11 Bernhard Herzog <[email protected]>
575    
576     * setup.py (InnoIconItem): fix typo
577    
578     (thuban_bdist_inno.run):
579     (bdist_inno.run): Move the decision not to create symlinks on
580     non-nt platforms to thuban_bdist_inno and do it unconditinally
581     since we never want to create the symlinks here
582    
583 bh 48 2001-09-10 Bernhard Herzog <[email protected]>
584    
585 bh 53 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
586     identify view immediately
587    
588     * Thuban/UI/controls.py: New file with two classes RecordListCtrl
589     and SelectableRecordListCtrl that implement the code shared by the
590     identify view and the label dialog
591    
592     * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
593     new class RecordListCtrl
594    
595     * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
596     return value of GetValue is None instead of using it as a boolean
597     directly so that Zero numbers are handled properly.
598     (LabelListCtrl): Derive from the new class
599     SelectableRecordListCtrl
600    
601 bh 48 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
602     (Proj4Dialog.dialogLayout): Make the window resizable and set the
603     size of the text control explicitly to make the sizers work on
604     both Windows and X.
605    
606 bh 44 2001-09-07 Bernhard Herzog <[email protected]>
607    
608     * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
609     that can limit the search to the currently selected layer.
610     (MapCanvas.SelectShapeAt): Make sure that the currently selected
611     layer stays selected even when no shape is found
612 bh 46 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
613     height do nothing (avoids zero division errors)
614 bh 44
615 bh 32 2001-09-06 Bernhard Herzog <[email protected]>
616    
617 bh 42 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
618     Correct the spelling of SessionTreeCtrl. dabbrev is too damn
619     convenient :-)
620     (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
621     a new instvar layer_to_item to map layers to tree items
622     (SessionTreeCtrl.layer_selected): Select the appropriate tree item
623     to match the current selection in the interactor
624    
625 bh 40 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
626     (Interactor.HasSelectedLayer): New methods to query the current
627     selection
628    
629     * Thuban/UI/mainwindow.py (MainWindow.current_layer):
630     (MainWindow.has_selected_layer): Simply call the appropriate
631     interactor method
632    
633     * Thuban/UI/mainwindow.py (MainWindow.__init__):
634     (MainWindow.LayerShowTable):
635     (MainWindow.identify_view_on_demand): Store the interactor in an
636     instvar and use that reference instead of going through main.app
637    
638     * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
639     * Thuban/UI/application.py (ThubanApplication.OnInit):
640     * Thuban/UI/main.py (main): Create the session tree view in main
641     with the new mainwindow method ShowSessionTree and not directly
642     the application's OnInit method
643    
644     * Thuban/UI/tree.py (myTreeCtrlPanel):
645     (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
646     TreeCtrl isntead of a panel. This affects most method since we now
647     refer to self instead of self.tree
648     (SessionTreeView): New class implementing a non-modal dialog
649     showing the session tree.
650    
651 bh 35 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
652     layer to the tableview dialog.
653    
654     * Thuban/UI/tableview.py: Add some doc-strings
655     (TableGrid):
656     (TableGrid.OnRangeSelect):
657     (TableGrid.OnSelectCell):
658     (TableFrame.__init__):
659     (TableFrame.row_selected):
660     Selecting rows in the grid view now updates the selected shapes
661     through the TableFrame. To achieve this we derive TableGrid from
662     Publisher and introduce the message type ROW_SELECTED which the
663     TableFrame subscribes to and which is issued by OnRangeSelect and
664     OnSelectCell
665    
666     (DataTable.SelectRow): Removed because it's no longer needed in
667     the row/shape selection scheme
668    
669 bh 32 * Thuban/UI/dialogs.py: New file implementing common classes for
670     dialogs
671    
672     * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
673     the SELECTED_SHAPE message anymore. This is now handled by the
674     parent.
675     (TableGrid.select_shape): Only update the selection if the shape
676     is not None.
677     (TableFrame): Inherit from the new NonModalDialog class.
678     (TableFrame.__init__, TableFrame.select_shape): Handle the
679     SELECT_SHAPE message.
680     (TableFrame.OnClose): Extend the inherited method to unsubscribe
681     SELECT_SHAPE
682    
683     * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
684     (MainWindow.add_dialog):
685     (MainWindow.dialog_open):
686     (MainWindow.remove_dialog):
687     (MainWindow.get_open_dialog): New methods to maintain a dictionary
688     of opened non-modal dialogs.
689    
690     (MainWindow.__init__): Initialize the new non-modal dictionary
691     management code
692     (MainWindow.LayerShowTable): maintain separate dialogs for each
693     table using the non-modal dialog management code to only open a
694     view once for each table.
695    
696     (MainWindow.IdentifyTool):
697     (MainWindow.__init__):
698     (MainWindow.identify_view_on_demand): Don't open the identify view
699     in IdentifyTool anymore. This will be done automatically by the
700     new method identify_view_on_demand which handles the
701     SELECTED_SHAPE message so that the identify view will be opened on
702     demand
703    
704     * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
705     the interactor argument. The SELECTED_SHAPE message is now handled
706     by the parent.
707     (IdentifyView.__init__): Add the interactor argument so that we
708     can handle the SELECTED_SHAPE message here
709     (IdentifyView.selected_shape): New method to handle the
710     SELECTED_SHAPE messages
711    
712     * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
713     NonModalDialog class
714     (IdentifyView.OnClose): Extend the inherited version to
715     unsubscribe SELECT_SHAPE
716    
717     * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
718    
719 bh 26 2001-09-05 Bernhard Herzog <[email protected]>
720    
721     * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
722    
723     * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
724     interactor to pass through to the MapCanvas
725    
726     * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
727     argument to the MainWindow constructor to get rid of the ugly hack
728     that made main.app available early just so that the mapcanvas
729     could access the interactor object.
730    
731 bh 19 2001-09-04 Bernhard Herzog <[email protected]>
732    
733 bh 22 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
734     that runs a modal message box
735     (MainWindow.OnClose): Use the new method
736     (MainWindow.RemoveLayer): Just do nothing in case no layer is
737     selected. The command should be grayed out anyway, so there's no
738     need to pop up a message box.
739     (MainWindow.AddLayer): Pop up a message box with an error message
740     if the shape file can't be opened
741    
742     * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
743     immediately. This will cause an exception in case the file can't
744     be opened and we can display an appropriate message.
745    
746 bh 19 * MANIFEST.in: Add extensions/pyprojection/LICENSE
747    
748     * setup.py (thuban_bdist_rpm): New class implementing a Thuban
749     specific bdist_rpm command.
750    
751     * Thuban/UI/main.py: Catch ImportError exceptions when importing
752     the locale module because it may not be available on some
753     installations.
754    
755     * extensions/pyprojection/LICENSE: Copy of the license text in
756     Projection.i. Having it in a separate file makes it easier to
757     refer to license text in e.g. RPMs
758    
759 bh 18 2001-09-03 Bernhard Herzog <[email protected]>
760    
761 bh 19 * setup.py: use wx-config instead of wxgtk-config because it's
762     more generic
763    
764     * setup.py (ThubanInstall.get_outputs): Add the symlink in
765     <prefix>/bin to the outputs
766     (ThubanInstall.link_file): New method to link files. We need this
767     because the standard copy_files refuses to link non-existing
768     files.
769     (ThubanInstall.run): Remove the leading install root from the
770     script filename if an install root was specified and use the new
771     link_file method
772    
773 bh 18 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
774     the window when the first layer is added to the map.
775    
776     * setup.py (ThubanInstall.run): Honor the build root (self.root)
777     when linking thuban.py to <prefix>/bin
778    
779 bh 16 2001-08-31 Bernhard Herzog <[email protected]>
780    
781     * setup.py: In the setup call, the install parameters shouldn't
782     have trailing slashes because distutils on non-posix platforms
783     doesn't like that. The same applies to other directories like
784     "Resources/Bitmaps"
785    
786     In the configuration section for nt, move the wxWindows directory
787     optins into the part clearly marked as editable.
788    
789     (InstallLocal.initialize_options):
790     (InstallLocal.user_options): remove the currently unused debug
791     flag
792     (thuban_build_py.find_all_modules): Add this method so that it
793     works for our case of having packages and modules in one
794     distribution as well.
795     (ThubanInstall.initialize_options):
796     (ThubanInstall.finalize_options):
797     (ThubanInstall.user_options):
798     (ThubanInstall.boolean_options): Add new options, do-symlink and
799     extra files. Since these are the first ThubanInstall specific
800     options, override user_options and boolean_options
801     (ThubanInstall.run): Honor the new do-symlink and extra-files
802     options.
803     (ThubanInstall.get_outputs): Add to override the base-class's
804     version and add the extra-files to the outputs
805     (bdist_inno): New class for windows distributions with Inno Setup
806     (InnoIconItem): Helper class for bdist_inno
807     (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
808     this together with the appropriate parameters, to the setup call.
809    
810     * setup.cfg (bdist_inno): added new section for the inno setup
811     installer
812    
813     * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
814     changing_selection to avoid recursive selection events when
815     modifying the selection in response to a selection event.
816     (myTreeCtrlPanel.normalize_selection): Set the new inst var when
817     changing the tree's selection.
818     (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
819     we're not being called indirectly from normalize_selection.
820    
821     * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
822     event.Check only if the command is actuall checkable.
823     (MainWindow.__init__): Call the toolbar's Realize method to make
824     sure that the items are actually shown
825    
826 bh 7 2001-08-28 Bernhard Herzog <[email protected]>
827    
828 bh 9 * setup.py: Fix some doc strings
829    
830 bh 7 * ChangeLog: started
831    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26