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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 107 by jan, Fri Apr 19 16:02:55 2002 UTC revision 265 by jan, Fri Aug 16 17:07:36 2002 UTC
# Line 1  Line 1 
1    2002-08-16      Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
4            tree window already open
5    
6    2002-08-15  Bernhard Herzog  <[email protected]>
7    
8            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
9            with self.
10    
11            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
12            when we have actually captured it.
13    
14            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
15            shapefile and destroy the table.
16    
17            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
18    
19    2002-08-14  Bernhard Herzog  <[email protected]>
20    
21            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
22            instance variable columns
23            (RecordTable.GetTypeName): row and col may be negative in some
24            cases.
25    
26            * setup.py (InstallLocal.initialize_options)
27            (InstallLocal.finalize_options, InstallLocal.user_options): New
28            option create-init-file to build a thubaninit.py when running
29            install_local
30            (InstallLocal.run): Create the thubaninit.py module when requested
31            (thubaninit_contents): Split the template into several parts and
32            create a new function thubaninit_contents that creates the
33            contents of a thubaninit module.
34            (ThubanInstall.run): Use the new function to create the thubaninit
35            module.
36    
37    2002-07-30  Bernhard Herzog  <[email protected]>
38    
39            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
40            cleanup.
41            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
42    
43            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
44            direct base class' Destroy method.
45    
46            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
47            layers.
48            (Map.Destroy): Destroy the label_layer as well and call the
49            inherited Desatroymethod first so that no more messages are
50            issued.
51            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
52            message if the stacking order actually has changed. Add
53            doc-strings.
54            (Map.BoundingBox): Correct the doc-string.
55            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
56            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
57    
58            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
59            all labels.
60    
61    2002-07-29  Bernhard Herzog  <[email protected]>
62    
63            * Thuban/Model/map.py (Map.subscribe_layer_channels)
64            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
65            to a layer's channels into separate methods.
66            (Map.RemoveLayer, Map.AddLayer): Call the new methods
67            (Map.Destroy): Unsubscribe from a layer's channels before
68            destroying it.
69    
70            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
71            selected_layer parameter to searched_layer which is the layer to
72            search in.
73            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
74            search to that layer. Return the selected layer and shape.
75    
76            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
77            typo
78    
79    2002-07-24  Bernhard Herzog  <[email protected]>
80    
81            * Thuban/UI/application.py (ThubanApplication.create_session):
82            Extend the doc string.
83            (ThubanApplication.subscribe_session)
84            (ThubanApplication.unsubscribe_session): New methods to
85            subscribe/unsubscribe to/from session channels.
86            (ThubanApplication.SetSession): Call the new methods here.
87            (ThubanApplication.maps_changed, ThubanApplication.set_map):
88            Renamed set_map to maps_changed. Its now a subscriber for
89            MAPS_CHANGED.
90    
91            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
92            x-coordinate in case of simple clicks
93    
94            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
95            don't pass it as a parameter
96    
97            * Thuban/Model/session.py (Session.RemoveMap): New
98    
99            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
100            window size into a parameter.
101    
102    2002-07-23  Bernhard Herzog  <[email protected]>
103    
104            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
105            just commands.
106    
107            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
108            parameter list a bit to allow setting the window title and the
109            initial message in the status bar. Update the callers.
110    
111            * Thuban/UI/application.py (ThubanApplication.OnInit)
112            (ThubanApplication.CreateMainWindow): Put the mainwindow
113            instantiation into a separate method so that it can be overridden
114            by a subclass.
115    
116    2002-07-19  Bernhard Herzog  <[email protected]>
117    
118            * Thuban/Model/session.py: Issue a CHANGED message every time
119            another changed message is issued to make it easier to get
120            notified of changes.
121            (Session): Update the doc string
122            (Session.forward): Issue changed-events as CHANGED as well.
123            (Session.changed): Overwrite the inherited version to issue
124            CHANGED events as well.
125    
126            * Thuban/UI/tree.py: We can now simply subscribe to the session's
127            CHANGED channel to be informed of changes.
128            (SessionTreeCtrl.session_channels): Not needed any longer.
129            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
130            Only have to (un)subscribe CHANGED
131    
132            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
133    
134            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
135            for the wxPython locale bug to __init__.py so that it's
136            automatically executed by anybody using UI code from Thuban.
137    
138    2002-07-18  Bernhard Herzog  <[email protected]>
139    
140            * Thuban/UI/main.py (main): app no longer needs to be global
141    
142            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
143            as parameter and store it in an instance variable
144            (MainWindow.invoke_command, MainWindow.update_command_ui)
145            (MainWindow.save_modified_session, MainWindow.NewSession)
146            (MainWindow.OpenSession, MainWindow.SaveSession)
147            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
148            application object.
149    
150            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
151            the main window with self.
152    
153            * Thuban/UI/context.py: New module with the context class
154    
155            * Thuban/UI/command.py (Command): Update doc string.
156    
157            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
158            MainWindow.update_command_ui): Pass an instance of the context
159            class to the command's methods
160            (check_current_tool, call_method): Handle the new context
161            implementation
162    
163            * Examples/simple_extensions/simple_tool.py (simple_tool,
164            check_simple_tool): Handle the new context implementation
165    
166            * Examples/simple_extensions/simple_command.py (simple_command):
167            Handle the new context implementation. Update the comments about
168            the context.
169    
170            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
171            doc-string
172            (ThubanApplication.Session): New method to return the session
173            object
174    
175            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
176            interactor's selected_layer may not be a layer of the current
177            session when the tree is updated while a new session is being set.
178    
179    2002-07-17  Bernhard Herzog  <[email protected]>
180    
181            * Thuban/UI/tree.py (color_string): Removed. No longer used.
182            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
183            update_tree into update_tree and add_items. The tree now uses a
184            more generic way to display the contents of the tree.
185            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
186    
187            * Thuban/Model/layer.py (Layer.TreeInfo),
188            Thuban/Model/extension.py (Extension.TreeInfo),
189            Thuban/Model/map.py (Map.TreeInfo),
190            Thuban/Model/session.py (Session.TreeInfo):
191            Add TreeInfo methods to implement the new tree view update scheme
192    
193    2002-07-16  Bernhard Herzog  <[email protected]>
194    
195            * Thuban/UI/application.py: Don't use "import from" for the
196            MainWindow. It can't always be resolved.
197            (ThubanApplication.OnInit): change reference to MainWindow
198            accordingly.
199    
200            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
201            completely
202    
203    2002-07-10  Bernhard Herzog  <[email protected]>
204    
205            * setup.py (create_init_module): New configurable variable whose
206            default depends on the platform we're running on.
207            (ThubanInstall.initialize_options): Initialize
208            self.create_init_module from the global create_init_module
209            (ThubanInstall.user_options): indictate that the options
210            create-init-module and init-module-dir have arguments.
211    
212            * setup.py: In the setup call change the version number to include
213            cvs.
214    
215            * MANIFEST.in: Add the files in Examples
216    
217    2002-07-09  Bernhard Herzog  <[email protected]>
218    
219            * setup.py: In the setup call, use the thuban homepage as the
220            value of the url parameter.
221    
222            * Examples: New subdirectory for examples.
223    
224            * Examples/simple_extensions/simple_tool.xpm,
225            Examples/simple_extensions/simple_tool.py,
226            Examples/simple_extensions/simple_command.py,
227            Examples/simple_extensions/README: Simple examples showing how to
228            add new commands and tools.
229    
230            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
231            bdist_rpm that we also have an install script.
232            (bdist_inno): Add 2002 to the copyright notice.
233    
234            * setup.py: Create a file in python's site-packages directory to
235            make installation of Thuban as a library easier.
236            (ThubanInstall.user_options): Add two new options,
237            create-init-module and init-module-dir
238            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
239            filenames for installation in the default directories.
240            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
241            the inherited methods to capture some filenames before they're
242            transformed too much by distutils.
243            (ThubanInstall.run): Create the init module if requested.
244            (ThubanInstall.thuban_init_filename): New method to return the
245            full name of the init module.
246            (ThubanInstall.get_outputs): Append the filename of the init
247            module.
248    
249    2002-07-08  Bernhard Herzog  <[email protected]>
250    
251            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
252            handle the prefix properly which means that the default for the
253            installation prefix should be /usr for RPMs and /usr/local when
254            doing a normal source install.
255            (bdist_rpm_install_script): Script to override the default install
256            commands in the specfile generated by the bdist_rpm command.
257            (thuban_bdist_rpm.user_options): Add a prefix option
258            (thuban_bdist_rpm.initialize_options): Init the prefix option.
259            Create the script files for the spec files as empty files here
260            (thuban_bdist_rpm._make_spec_file): Override the inherited method
261            to fill the script files with content.
262    
263            * Thuban/Model/save.py (relative_filename): Wrapper around
264            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
265            argument. save_session now automatically uses this version,
266            solving a problem when saving to a relative filename.
267    
268            * setup.py: In the setup call, make sure that the library
269            directories are under $prefix/lib not directly under $prefix.
270    
271    2002-06-20      Jan-Oliver Wagner <[email protected]>
272    
273            * Thuban/Model/extension.py: new module to handle extension objects.
274            * Thuban/Model/messages.py: new messages for extensions.
275            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
276            Session.AddExtension): new for handling extensions.
277            Also some other minor changes to round up extension handling.
278            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
279            of Extension titles and title and names of its objects.
280    
281    2002-05-29  Bernhard Herzog  <[email protected]>
282    
283            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
284            the events for a command.
285            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
286            Call bind_command_events to bind the events. add_toolbar_command
287            can now bind events too so that it's possible to have commands
288            that are only available through the toolbar.
289            (MainWindow.init_ids): New instance variable events_bound to keep
290            track of for which commands events have been bound.
291    
292    2002-05-28  Bernhard Herzog  <[email protected]>
293    
294            * Thuban/UI/menu.py: New module to build and manage menus.
295    
296            * Thuban/UI/mainwindow.py: Remove some unused imports.
297            (MainWindow.__init__, main_menu): move the definition of the main
298            menu from __init__ to the Menu instance main_menu.
299            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
300            build the menu bar and sub-menus from a menu description.
301    
302            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
303            startup file
304            (ThubanApplication.read_startup_files): New method to run
305            ~/.thuban/thubanstart.py
306    
307            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
308            Move the toolbar definition to the Menu instance main_toolbar.
309            (MainWindow.build_toolbar): New method to build the toolbar
310            similar to the build_menu methods
311    
312    2002-05-23  Bernhard Herzog  <[email protected]>
313    
314            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
315            layer_outline_color. Fix it in the definition of the command too.
316    
317            * Thuban/UI/command.py (Command): Fix typo in doc string
318    
319    2002-05-22  Bernhard Herzog  <[email protected]>
320    
321            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
322            in the docstring
323    
324    2002-05-15  Bernhard Herzog  <[email protected]>
325    
326            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
327            when the shapefile is empty.
328            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
329            now return None for empty shapefiles. Update doc-strings.
330    
331            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
332            the layer's bbox being None.
333    
334            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
335            layer's bbox being None.
336    
337            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
338            necessary.
339            (MapCanvas.__init__): New instance variables, last_selected_layer
340            and last_selected_shape to determine how the selection has
341            changed.
342    
343            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
344            AutoSizeColumns because it will cause a traversal of the entire
345            table which for large .dbf files will take a very long time.
346    
347    2002-05-14  Bernhard Herzog  <[email protected]>
348    
349            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
350            maximum depth for the tree than shapelib does by default.
351    
352    2002-05-10  Bernhard Herzog  <[email protected]>
353    
354            * setup.py (py_modules): The shptree modules doesn't have a
355            wrapper, so don't include it in the py_modules
356    
357    2002-05-08  Bernhard Herzog  <[email protected]>
358    
359            * extensions/shapelib/shptree.c (compare_ints): Make arguments
360            const void * as in the qsort prototype
361            (SHPTreeFindLikelyShapes): Remove some unused variables.
362    
363            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
364            maintains to redraw the window during a drag.
365            (MapCanvas.unprojected_rect_around_point): New method to determine
366            a small region around a point for hit-testing.
367            (MapCanvas.find_shape_at): Only test the shapes in a small region
368            around the point.
369    
370            * setup.py: Increment the version to 0.1.2
371    
372            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
373            debug print and set session to None after unsubscribing
374    
375    2002-05-07  Bernhard Herzog  <[email protected]>
376    
377            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
378            the file to have a .thuban extension.
379    
380            * Thuban/UI/tree.py (session_channels): New class constant with
381            all the session channels to subscribe to to update the tree
382            (SessionTreeCtrl.session_changed): Remember the session so that we
383            can unsubscribe properly. Use the new class constant to
384            unsubscribe from the old session and subscribe to the new one.
385            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
386            subscriptions of the SessionTreeCtrl.
387            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
388    
389            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
390            Session Tree" command to the file menu.
391    
392            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
393            as update_region to the renderer.
394    
395            * Thuban/UI/renderer.py
396            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
397            update box is now directly a tuple, not a wxRect anymore.
398    
399            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
400            prints.
401    
402    2002-05-07  Bernhard Herzog  <[email protected]>
403    
404            * setup.py: Add the shptree extension module. See
405            extensions/pyshapelib/ChangeLog for more details.
406    
407            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
408            extensions/shapelib/dbfopen.c: Really update to the versions of
409            shapelib 1.2.9. For some reason it wasn't really done on
410            2002-04-11.
411    
412            * extensions/shapelib/shptree.c: Modified version of shptree.c of
413            shapelib 1.2.9. The only real difference is the use of qsort
414            instead of a bubble sort implementation
415    
416            * Thuban/Model/layer.py (Layer.__init__): New instance variable
417            shapetree to hold the shapelib quadtree for the shapefile
418            (Layer.open_shapefile): Create the quad tree.
419            (Layer.ShapesInRegion): New method to return the ids of shapes in
420            a given region using the quad tree.
421    
422            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
423            comment
424            (draw_polygon_shape): Accept both arcs and polygons.
425            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
426            the api.
427    
428            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
429            return the shape ids to be rendered in a given layer.
430            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
431            ids. Use draw_polygon_shape to draw arc shapes as well.
432            (ScreenRenderer.RenderMap): New parameter for the rectangle that
433            has to be updated
434            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
435            calling it's ShapesInRegion method.
436    
437            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
438            update_region for the update region.
439            (MapCanvas.OnPaint): Maintain the update region
440            (MapCanvas.do_redraw): Pass the bounding box of the update_region
441            to the renderer when drawing the bitmap. Reset the update_region.
442    
443    2002-05-03  Bernhard Herzog  <[email protected]>
444    
445            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
446            MainWindow.OpenSession): Change the file extension of the session
447            files to .thuban
448    
449            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
450            Move the map channels to be forwarded by the session into the
451            class constant with forwarded_channels. Also add
452            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
453            forwarded_channels
454    
455            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
456            typo and some rewording).
457    
458    2002-05-02  Bernhard Herzog  <[email protected]>
459    
460            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
461            around to speed up most redraws:
462            (MapCanvas.__init__): New instance variable bitmap which holds the
463            bitmap
464            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
465            self.bitmap to draw.
466            (MapCanvas.full_redraw): New method to force a full redraw
467            including the bitmap
468            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
469            make sure the bitmap is redrawn.
470            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
471            MapCanvas.shape_selected): Call full_redraw instead of readraw to
472            make sure the bitmap is redrawn.
473            (MapCanvas.OnSize): New method to handle size events so that the
474            bitmap can be redrawn.
475    
476    2002-04-29  Bernhard Herzog  <[email protected]>
477    
478            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
479            canvas' VIEW_POSITION event
480            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
481            Update the text in the status-bar accordingly.
482    
483            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
484            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
485            called.
486            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
487            current_position
488            (MapCanvas.set_current_position): New method to set
489            current_position. Issue a VIEW_POSITION event
490            (MapCanvas.CurrentPosition): New public method to return the value
491            of current_position. Should be called when the VIEW_POSITION event
492            is processed.
493            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
494            Update the position.
495            (MapCanvas.OnLeaveWindow): Set the position to None.
496    
497            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
498            position in the statusbar
499    
500    2002-04-26      Frank Koormann <[email protected]>
501    
502            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
503    
504    2002-04-24      Frank Koormann <[email protected]>
505            
506            * Resources/Bitmaps/identify.xpm: shadow added
507    
508            * Resources/Bitmaps/fullextent.xpm: new
509            
510    2002-04-22      Jan-Oliver Wagner <[email protected]>
511    
512            * Thuban/UI/tree.py (update_tree): added test for None on map bounding box
513    
514    2002-04-21      Jan-Oliver Wagner <[email protected]>
515    
516            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
517    
518            * Thuban/UI/tree.py (update_tree): added added map extent
519    
520            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
521            icon; added map_full_extend as tool
522    
523  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19      Jan-Oliver Wagner <[email protected]>
524    
525          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for

Legend:
Removed from v.107  
changed lines
  Added in v.265

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26