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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26