/[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 217 by bh, Wed Jul 17 10:50:40 2002 UTC revision 338 by bh, Fri Sep 20 16:26:31 2002 UTC
# Line 1  Line 1 
1    2002-09-20  Bernhard Herzog  <[email protected]>
2    
3            * test/test_map.py (TestMapWithContents.test_tree_info): Create
4            the string with the bounding box on the fly because of platform
5            differences in the way %g is handled.
6    
7            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
8            DBFfile too because Thuban layers can't yet cope missing DBF
9            files.
10    
11    2002-09-20  Bernhard Herzog  <[email protected]>
12    
13            * test/test_menu.py: Use initthuban instead of
14            add_thuban_dir_to_path to initialize Thuban.
15    
16            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
17            Mixin class for float comparisons
18            (SubscriberMixin): New. Mixin class to test messages sent through
19            the Connector class
20    
21            * test/README: Fix a typo and add the -v flag to the command for
22            individual tests
23    
24            * test/test_session.py: New. Test cases for Thuban.Model.session
25    
26            * test/test_proj.py: New. Test cases for Thuban.Model.proj
27    
28            * test/test_map.py: New. Test cases for Thuban.Model.map
29    
30            * test/test_layer.py: New. Test cases for Thuban.Model.layer
31    
32            * test/test_label.py: New. Test cases for Thuban.Model.label
33    
34            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
35    
36            * test/test_color.py: New. Test cases for Thuban.Model.color
37    
38            * test/test_base.py: New. Test cases for Thuban.Model.base
39    
40    2002-09-13  Bernhard Herzog  <[email protected]>
41    
42            * Thuban/Model/session.py (Session.forwarded_channels): Forward
43            the CHANGED channel too.
44    
45            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
46            CHANGED channel too.
47            (Map.__init__): Call the Modifiable constructor as well.
48    
49            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
50            event if the modified flag changes.
51            (Modifiable.changed): Tweak the doc-string.
52    
53            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
54            (MainWindow.set_position_text): Put the code that puts the text
55            with the mouse position into the status bar into the new method
56            set_position_text so that it can overwritten in derived classes.
57    
58    2002-09-12  Bernhard Herzog  <[email protected]>
59    
60            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
61            message box on the main window.
62    
63    2002-09-11  Bernhard Herzog  <[email protected]>
64    
65            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
66            the 'E' because it's less likely to interfere with other menu
67            entries.
68            (MainWindow.build_menu): remove an incorrect comment.
69    
70    2002-09-10  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
73            (_tool_command): Add sensitive parameter
74            (_has_visible_map): Sensitivity callback to tools and other
75            commands that require a visible map. Use it in map_zoom_in_tool,
76            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
77            and map_full_extent
78    
79    2002-09-06  Bernhard Herzog  <[email protected]>
80    
81            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
82            VIEW_POSITION
83    
84    2002-09-04  Frank Koormann   <[email protected]>
85    
86            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
87    
88    2002-09-02  Bernhard Herzog  <[email protected]>
89    
90            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
91            wxWindows already and our implementation doesn't work correctly
92            with wxGTK 2.3:
93            (MapCanvas.__init__): Remove the instance variable
94            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
95            be drawin
96            (MapCanvas.OnIdle): Removed.
97    
98            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
99            a parameter to determine the size of the rectangle.
100            (MapCanvas.find_shape_at): Create the box around the point on a
101            layer by layer basis and make the size depend on the shape type.
102            This solves a problem with the selection of point shapes at the
103            border of the layer's bounding box
104    
105    2002-08-30  Bernhard Herzog  <[email protected]>
106    
107            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
108            for the sensitivity  of remove layer.
109            (_can_remove_layer): New. Sensitivity callback for remove layer
110            (Command layer_remove): Use _can_remove_layer
111    
112            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
113            determine whether a given layer can be deleted.
114    
115            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
116            (MapCanvas.do_redraw): Get rid of the unused update_region
117            instance variable
118    
119            * Thuban/UI/view.py: Add/update some doc-strings.
120    
121            * test/: new subdirectory with a bunch of unit tests.
122    
123            * test/README, test/test_table.py, test/test_save.py,
124            test/test_menu.py, test/test_load.py: Initial set of tests and
125            brief instructions on how to run them
126    
127    2002-08-29  Bernhard Herzog  <[email protected]>
128    
129            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
130            arcs with multiple parts.
131    
132            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
133            Handle degenrate rectangles.
134    
135            * Thuban/Model/table.py: Make writing records work correctly:
136            (Table.__init__): Keep track of whether the DBF is open for
137            writing
138            (Table.write_record): Open the DBF file for writing when necessary
139    
140    2002-08-27  Bernhard Herzog  <[email protected]>
141    
142            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
143            dbf files only for reading by default. Use a new writable dbf
144            object for writing.
145    
146    2002-08-26  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/UI/mainwindow.py: Refactor the context creation:
149            (MainWindow.Context): New method to return a context
150            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
151            new method
152    
153            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
154            layer table specific code from TableGrid into LayerTableGrid
155            (TableFrame, LayerTableFrame): Split the layer table specific code
156            from TableFrame into LayerTableFrame
157            (LayerTableGrid.select_shape): Remove a debug print
158    
159            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
160            LayerTableFrame
161    
162    2002-08-23  Bernhard Herzog  <[email protected]>
163    
164            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
165            absolute filename.
166    
167    2002-08-22  Bernhard Herzog  <[email protected]>
168    
169            * Thuban/Model/table.py (Table.write_record): New method to write
170            records.
171            (Table.__init__): Open the DBF file for writing too.
172    
173            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
174            into the underlying table.
175    
176            * extensions/shapelib/shapefil.h (DBFCommit),
177            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
178            commit any changes made to the DBF file.
179    
180            * Thuban/UI/mainwindow.py (make_check_current_tool)
181            (_tool_command): Put the code that generates the "checked"
182            callback into a separate function so that we can reuse it
183            elsewhere
184    
185            * Thuban/Model/save.py (Saver): New class to handle serializing a
186            session into an XML file. The main reason to introduce a class is
187            that applications built on Thuban can derive from it so that they
188            can save additional information in a session file.
189            (save_session): Delegate almost all the work to the Saver class.
190            Rename the filename argument to file because it may be a file like
191            object now.
192    
193            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
194            code. Remove the little test code which would be executed when the
195            module is run as a script which didn't work anymore since it can't
196            import the other Thuban modules.
197            (ProcessSession, load_session): Refactor the ProcessSession to
198            have one method for each element start and end tag so that derived
199            classes can easily override the processing of individual tags.
200            Also, always parse with namespaces enabled because applications
201            built on top of Thuban will likely use namespaces if they extend
202            the session file format.
203    
204    2002-08-21  Bernhard Herzog  <[email protected]>
205    
206            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
207            because thubaninit_contents will do it for us.
208    
209    2002-08-16      Jan-Oliver Wagner <[email protected]>
210    
211            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
212            tree window already open
213    
214    2002-08-15  Bernhard Herzog  <[email protected]>
215    
216            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
217            with self.
218    
219            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
220            when we have actually captured it.
221    
222            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
223            shapefile and destroy the table.
224    
225            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
226    
227    2002-08-14  Bernhard Herzog  <[email protected]>
228    
229            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
230            instance variable columns
231            (RecordTable.GetTypeName): row and col may be negative in some
232            cases.
233    
234            * setup.py (InstallLocal.initialize_options)
235            (InstallLocal.finalize_options, InstallLocal.user_options): New
236            option create-init-file to build a thubaninit.py when running
237            install_local
238            (InstallLocal.run): Create the thubaninit.py module when requested
239            (thubaninit_contents): Split the template into several parts and
240            create a new function thubaninit_contents that creates the
241            contents of a thubaninit module.
242            (ThubanInstall.run): Use the new function to create the thubaninit
243            module.
244    
245    2002-07-30  Bernhard Herzog  <[email protected]>
246    
247            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
248            cleanup.
249            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
250    
251            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
252            direct base class' Destroy method.
253    
254            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
255            layers.
256            (Map.Destroy): Destroy the label_layer as well and call the
257            inherited Desatroymethod first so that no more messages are
258            issued.
259            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
260            message if the stacking order actually has changed. Add
261            doc-strings.
262            (Map.BoundingBox): Correct the doc-string.
263            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
264            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
265    
266            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
267            all labels.
268    
269    2002-07-29  Bernhard Herzog  <[email protected]>
270    
271            * Thuban/Model/map.py (Map.subscribe_layer_channels)
272            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
273            to a layer's channels into separate methods.
274            (Map.RemoveLayer, Map.AddLayer): Call the new methods
275            (Map.Destroy): Unsubscribe from a layer's channels before
276            destroying it.
277    
278            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
279            selected_layer parameter to searched_layer which is the layer to
280            search in.
281            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
282            search to that layer. Return the selected layer and shape.
283    
284            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
285            typo
286    
287    2002-07-24  Bernhard Herzog  <[email protected]>
288    
289            * Thuban/UI/application.py (ThubanApplication.create_session):
290            Extend the doc string.
291            (ThubanApplication.subscribe_session)
292            (ThubanApplication.unsubscribe_session): New methods to
293            subscribe/unsubscribe to/from session channels.
294            (ThubanApplication.SetSession): Call the new methods here.
295            (ThubanApplication.maps_changed, ThubanApplication.set_map):
296            Renamed set_map to maps_changed. Its now a subscriber for
297            MAPS_CHANGED.
298    
299            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
300            x-coordinate in case of simple clicks
301    
302            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
303            don't pass it as a parameter
304    
305            * Thuban/Model/session.py (Session.RemoveMap): New
306    
307            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
308            window size into a parameter.
309    
310    2002-07-23  Bernhard Herzog  <[email protected]>
311    
312            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
313            just commands.
314    
315            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
316            parameter list a bit to allow setting the window title and the
317            initial message in the status bar. Update the callers.
318    
319            * Thuban/UI/application.py (ThubanApplication.OnInit)
320            (ThubanApplication.CreateMainWindow): Put the mainwindow
321            instantiation into a separate method so that it can be overridden
322            by a subclass.
323    
324    2002-07-19  Bernhard Herzog  <[email protected]>
325    
326            * Thuban/Model/session.py: Issue a CHANGED message every time
327            another changed message is issued to make it easier to get
328            notified of changes.
329            (Session): Update the doc string
330            (Session.forward): Issue changed-events as CHANGED as well.
331            (Session.changed): Overwrite the inherited version to issue
332            CHANGED events as well.
333    
334            * Thuban/UI/tree.py: We can now simply subscribe to the session's
335            CHANGED channel to be informed of changes.
336            (SessionTreeCtrl.session_channels): Not needed any longer.
337            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
338            Only have to (un)subscribe CHANGED
339    
340            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
341    
342            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
343            for the wxPython locale bug to __init__.py so that it's
344            automatically executed by anybody using UI code from Thuban.
345    
346    2002-07-18  Bernhard Herzog  <[email protected]>
347    
348            * Thuban/UI/main.py (main): app no longer needs to be global
349    
350            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
351            as parameter and store it in an instance variable
352            (MainWindow.invoke_command, MainWindow.update_command_ui)
353            (MainWindow.save_modified_session, MainWindow.NewSession)
354            (MainWindow.OpenSession, MainWindow.SaveSession)
355            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
356            application object.
357    
358            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
359            the main window with self.
360    
361            * Thuban/UI/context.py: New module with the context class
362    
363            * Thuban/UI/command.py (Command): Update doc string.
364    
365            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
366            MainWindow.update_command_ui): Pass an instance of the context
367            class to the command's methods
368            (check_current_tool, call_method): Handle the new context
369            implementation
370    
371            * Examples/simple_extensions/simple_tool.py (simple_tool,
372            check_simple_tool): Handle the new context implementation
373    
374            * Examples/simple_extensions/simple_command.py (simple_command):
375            Handle the new context implementation. Update the comments about
376            the context.
377    
378            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
379            doc-string
380            (ThubanApplication.Session): New method to return the session
381            object
382    
383            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
384            interactor's selected_layer may not be a layer of the current
385            session when the tree is updated while a new session is being set.
386    
387  2002-07-17  Bernhard Herzog  <[email protected]>  2002-07-17  Bernhard Herzog  <[email protected]>
388    
389          * Thuban/UI/tree.py (color_string): Removed. No longer used.          * Thuban/UI/tree.py (color_string): Removed. No longer used.

Legend:
Removed from v.217  
changed lines
  Added in v.338

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26