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

Legend:
Removed from v.238  
changed lines
  Added in v.352

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26