/[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 182 by bh, Wed May 22 13:42:20 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]>
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
340            window size into a parameter.
341    
342    2002-07-23  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
345            just commands.
346    
347            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
348            parameter list a bit to allow setting the window title and the
349            initial message in the status bar. Update the callers.
350    
351            * Thuban/UI/application.py (ThubanApplication.OnInit)
352            (ThubanApplication.CreateMainWindow): Put the mainwindow
353            instantiation into a separate method so that it can be overridden
354            by a subclass.
355    
356    2002-07-19  Bernhard Herzog  <[email protected]>
357    
358            * Thuban/Model/session.py: Issue a CHANGED message every time
359            another changed message is issued to make it easier to get
360            notified of changes.
361            (Session): Update the doc string
362            (Session.forward): Issue changed-events as CHANGED as well.
363            (Session.changed): Overwrite the inherited version to issue
364            CHANGED events as well.
365    
366            * Thuban/UI/tree.py: We can now simply subscribe to the session's
367            CHANGED channel to be informed of changes.
368            (SessionTreeCtrl.session_channels): Not needed any longer.
369            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
370            Only have to (un)subscribe CHANGED
371    
372            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
373    
374            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
375            for the wxPython locale bug to __init__.py so that it's
376            automatically executed by anybody using UI code from Thuban.
377    
378    2002-07-18  Bernhard Herzog  <[email protected]>
379    
380            * Thuban/UI/main.py (main): app no longer needs to be global
381    
382            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
383            as parameter and store it in an instance variable
384            (MainWindow.invoke_command, MainWindow.update_command_ui)
385            (MainWindow.save_modified_session, MainWindow.NewSession)
386            (MainWindow.OpenSession, MainWindow.SaveSession)
387            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
388            application object.
389    
390            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
391            the main window with self.
392    
393            * Thuban/UI/context.py: New module with the context class
394    
395            * Thuban/UI/command.py (Command): Update doc string.
396    
397            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
398            MainWindow.update_command_ui): Pass an instance of the context
399            class to the command's methods
400            (check_current_tool, call_method): Handle the new context
401            implementation
402    
403            * Examples/simple_extensions/simple_tool.py (simple_tool,
404            check_simple_tool): Handle the new context implementation
405    
406            * Examples/simple_extensions/simple_command.py (simple_command):
407            Handle the new context implementation. Update the comments about
408            the context.
409    
410            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
411            doc-string
412            (ThubanApplication.Session): New method to return the session
413            object
414    
415            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
416            interactor's selected_layer may not be a layer of the current
417            session when the tree is updated while a new session is being set.
418    
419    2002-07-17  Bernhard Herzog  <[email protected]>
420    
421            * Thuban/UI/tree.py (color_string): Removed. No longer used.
422            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
423            update_tree into update_tree and add_items. The tree now uses a
424            more generic way to display the contents of the tree.
425            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
426    
427            * Thuban/Model/layer.py (Layer.TreeInfo),
428            Thuban/Model/extension.py (Extension.TreeInfo),
429            Thuban/Model/map.py (Map.TreeInfo),
430            Thuban/Model/session.py (Session.TreeInfo):
431            Add TreeInfo methods to implement the new tree view update scheme
432    
433    2002-07-16  Bernhard Herzog  <[email protected]>
434    
435            * Thuban/UI/application.py: Don't use "import from" for the
436            MainWindow. It can't always be resolved.
437            (ThubanApplication.OnInit): change reference to MainWindow
438            accordingly.
439    
440            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
441            completely
442    
443    2002-07-10  Bernhard Herzog  <[email protected]>
444    
445            * setup.py (create_init_module): New configurable variable whose
446            default depends on the platform we're running on.
447            (ThubanInstall.initialize_options): Initialize
448            self.create_init_module from the global create_init_module
449            (ThubanInstall.user_options): indictate that the options
450            create-init-module and init-module-dir have arguments.
451    
452            * setup.py: In the setup call change the version number to include
453            cvs.
454    
455            * MANIFEST.in: Add the files in Examples
456    
457    2002-07-09  Bernhard Herzog  <[email protected]>
458    
459            * setup.py: In the setup call, use the thuban homepage as the
460            value of the url parameter.
461    
462            * Examples: New subdirectory for examples.
463    
464            * Examples/simple_extensions/simple_tool.xpm,
465            Examples/simple_extensions/simple_tool.py,
466            Examples/simple_extensions/simple_command.py,
467            Examples/simple_extensions/README: Simple examples showing how to
468            add new commands and tools.
469    
470            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
471            bdist_rpm that we also have an install script.
472            (bdist_inno): Add 2002 to the copyright notice.
473    
474            * setup.py: Create a file in python's site-packages directory to
475            make installation of Thuban as a library easier.
476            (ThubanInstall.user_options): Add two new options,
477            create-init-module and init-module-dir
478            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
479            filenames for installation in the default directories.
480            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
481            the inherited methods to capture some filenames before they're
482            transformed too much by distutils.
483            (ThubanInstall.run): Create the init module if requested.
484            (ThubanInstall.thuban_init_filename): New method to return the
485            full name of the init module.
486            (ThubanInstall.get_outputs): Append the filename of the init
487            module.
488    
489    2002-07-08  Bernhard Herzog  <[email protected]>
490    
491            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
492            handle the prefix properly which means that the default for the
493            installation prefix should be /usr for RPMs and /usr/local when
494            doing a normal source install.
495            (bdist_rpm_install_script): Script to override the default install
496            commands in the specfile generated by the bdist_rpm command.
497            (thuban_bdist_rpm.user_options): Add a prefix option
498            (thuban_bdist_rpm.initialize_options): Init the prefix option.
499            Create the script files for the spec files as empty files here
500            (thuban_bdist_rpm._make_spec_file): Override the inherited method
501            to fill the script files with content.
502    
503            * Thuban/Model/save.py (relative_filename): Wrapper around
504            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
505            argument. save_session now automatically uses this version,
506            solving a problem when saving to a relative filename.
507    
508            * setup.py: In the setup call, make sure that the library
509            directories are under $prefix/lib not directly under $prefix.
510    
511    2002-06-20      Jan-Oliver Wagner <[email protected]>
512    
513            * Thuban/Model/extension.py: new module to handle extension objects.
514            * Thuban/Model/messages.py: new messages for extensions.
515            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
516            Session.AddExtension): new for handling extensions.
517            Also some other minor changes to round up extension handling.
518            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
519            of Extension titles and title and names of its objects.
520    
521    2002-05-29  Bernhard Herzog  <[email protected]>
522    
523            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
524            the events for a command.
525            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
526            Call bind_command_events to bind the events. add_toolbar_command
527            can now bind events too so that it's possible to have commands
528            that are only available through the toolbar.
529            (MainWindow.init_ids): New instance variable events_bound to keep
530            track of for which commands events have been bound.
531    
532    2002-05-28  Bernhard Herzog  <[email protected]>
533    
534            * Thuban/UI/menu.py: New module to build and manage menus.
535    
536            * Thuban/UI/mainwindow.py: Remove some unused imports.
537            (MainWindow.__init__, main_menu): move the definition of the main
538            menu from __init__ to the Menu instance main_menu.
539            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
540            build the menu bar and sub-menus from a menu description.
541    
542            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
543            startup file
544            (ThubanApplication.read_startup_files): New method to run
545            ~/.thuban/thubanstart.py
546    
547            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
548            Move the toolbar definition to the Menu instance main_toolbar.
549            (MainWindow.build_toolbar): New method to build the toolbar
550            similar to the build_menu methods
551    
552    2002-05-23  Bernhard Herzog  <[email protected]>
553    
554            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
555            layer_outline_color. Fix it in the definition of the command too.
556    
557            * Thuban/UI/command.py (Command): Fix typo in doc string
558    
559  2002-05-22  Bernhard Herzog  <[email protected]>  2002-05-22  Bernhard Herzog  <[email protected]>
560    
561          * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo          * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26