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

Legend:
Removed from v.225  
changed lines
  Added in v.335

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26