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

Legend:
Removed from v.213  
changed lines
  Added in v.311

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26