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

Legend:
Removed from v.199  
changed lines
  Added in v.315

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26