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

Legend:
Removed from v.228  
changed lines
  Added in v.326

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26