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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 228 - (hide annotations)
Thu Jul 18 16:27:20 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 30788 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26