/[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 165 by bh, Fri May 10 09:35:06 2002 UTC revision 269 by bh, Thu Aug 22 10:25:55 2002 UTC
# Line 1  Line 1 
1    2002-08-22  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/save.py (Saver): New class to handle serializing a
4            session into an XML file. The main reason to introduce a class is
5            that applications built on Thuban can derive from it so that they
6            can save additional information in a session file.
7            (save_session): Delegate almost all the work to the Saver class.
8            Rename the filename argument to file because it may be a file like
9            object now.
10    
11            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
12            code. Remove the little test code which would be executed when the
13            module is run as a script which didn't work anymore since it can't
14            import the other Thuban modules.
15            (ProcessSession, load_session): Refactor the ProcessSession to
16            have one method for each element start and end tag so that derived
17            classes can easily override the processing of individual tags.
18            Also, always parse with namespaces enabled because applications
19            built on top of Thuban will likely use namespaces if they extend
20            the session file format.
21    
22    2002-08-21  Bernhard Herzog  <[email protected]>
23    
24            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
25            because thubaninit_contents will do it for us.
26    
27    2002-08-16      Jan-Oliver Wagner <[email protected]>
28    
29            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
30            tree window already open
31    
32    2002-08-15  Bernhard Herzog  <[email protected]>
33    
34            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
35            with self.
36    
37            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
38            when we have actually captured it.
39    
40            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
41            shapefile and destroy the table.
42    
43            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
44    
45    2002-08-14  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
48            instance variable columns
49            (RecordTable.GetTypeName): row and col may be negative in some
50            cases.
51    
52            * setup.py (InstallLocal.initialize_options)
53            (InstallLocal.finalize_options, InstallLocal.user_options): New
54            option create-init-file to build a thubaninit.py when running
55            install_local
56            (InstallLocal.run): Create the thubaninit.py module when requested
57            (thubaninit_contents): Split the template into several parts and
58            create a new function thubaninit_contents that creates the
59            contents of a thubaninit module.
60            (ThubanInstall.run): Use the new function to create the thubaninit
61            module.
62    
63    2002-07-30  Bernhard Herzog  <[email protected]>
64    
65            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
66            cleanup.
67            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
68    
69            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
70            direct base class' Destroy method.
71    
72            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
73            layers.
74            (Map.Destroy): Destroy the label_layer as well and call the
75            inherited Desatroymethod first so that no more messages are
76            issued.
77            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
78            message if the stacking order actually has changed. Add
79            doc-strings.
80            (Map.BoundingBox): Correct the doc-string.
81            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
82            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
83    
84            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
85            all labels.
86    
87    2002-07-29  Bernhard Herzog  <[email protected]>
88    
89            * Thuban/Model/map.py (Map.subscribe_layer_channels)
90            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
91            to a layer's channels into separate methods.
92            (Map.RemoveLayer, Map.AddLayer): Call the new methods
93            (Map.Destroy): Unsubscribe from a layer's channels before
94            destroying it.
95    
96            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
97            selected_layer parameter to searched_layer which is the layer to
98            search in.
99            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
100            search to that layer. Return the selected layer and shape.
101    
102            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
103            typo
104    
105    2002-07-24  Bernhard Herzog  <[email protected]>
106    
107            * Thuban/UI/application.py (ThubanApplication.create_session):
108            Extend the doc string.
109            (ThubanApplication.subscribe_session)
110            (ThubanApplication.unsubscribe_session): New methods to
111            subscribe/unsubscribe to/from session channels.
112            (ThubanApplication.SetSession): Call the new methods here.
113            (ThubanApplication.maps_changed, ThubanApplication.set_map):
114            Renamed set_map to maps_changed. Its now a subscriber for
115            MAPS_CHANGED.
116    
117            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
118            x-coordinate in case of simple clicks
119    
120            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
121            don't pass it as a parameter
122    
123            * Thuban/Model/session.py (Session.RemoveMap): New
124    
125            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
126            window size into a parameter.
127    
128    2002-07-23  Bernhard Herzog  <[email protected]>
129    
130            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
131            just commands.
132    
133            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
134            parameter list a bit to allow setting the window title and the
135            initial message in the status bar. Update the callers.
136    
137            * Thuban/UI/application.py (ThubanApplication.OnInit)
138            (ThubanApplication.CreateMainWindow): Put the mainwindow
139            instantiation into a separate method so that it can be overridden
140            by a subclass.
141    
142    2002-07-19  Bernhard Herzog  <[email protected]>
143    
144            * Thuban/Model/session.py: Issue a CHANGED message every time
145            another changed message is issued to make it easier to get
146            notified of changes.
147            (Session): Update the doc string
148            (Session.forward): Issue changed-events as CHANGED as well.
149            (Session.changed): Overwrite the inherited version to issue
150            CHANGED events as well.
151    
152            * Thuban/UI/tree.py: We can now simply subscribe to the session's
153            CHANGED channel to be informed of changes.
154            (SessionTreeCtrl.session_channels): Not needed any longer.
155            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
156            Only have to (un)subscribe CHANGED
157    
158            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
159    
160            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
161            for the wxPython locale bug to __init__.py so that it's
162            automatically executed by anybody using UI code from Thuban.
163    
164    2002-07-18  Bernhard Herzog  <[email protected]>
165    
166            * Thuban/UI/main.py (main): app no longer needs to be global
167    
168            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
169            as parameter and store it in an instance variable
170            (MainWindow.invoke_command, MainWindow.update_command_ui)
171            (MainWindow.save_modified_session, MainWindow.NewSession)
172            (MainWindow.OpenSession, MainWindow.SaveSession)
173            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
174            application object.
175    
176            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
177            the main window with self.
178    
179            * Thuban/UI/context.py: New module with the context class
180    
181            * Thuban/UI/command.py (Command): Update doc string.
182    
183            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
184            MainWindow.update_command_ui): Pass an instance of the context
185            class to the command's methods
186            (check_current_tool, call_method): Handle the new context
187            implementation
188    
189            * Examples/simple_extensions/simple_tool.py (simple_tool,
190            check_simple_tool): Handle the new context implementation
191    
192            * Examples/simple_extensions/simple_command.py (simple_command):
193            Handle the new context implementation. Update the comments about
194            the context.
195    
196            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
197            doc-string
198            (ThubanApplication.Session): New method to return the session
199            object
200    
201            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
202            interactor's selected_layer may not be a layer of the current
203            session when the tree is updated while a new session is being set.
204    
205    2002-07-17  Bernhard Herzog  <[email protected]>
206    
207            * Thuban/UI/tree.py (color_string): Removed. No longer used.
208            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
209            update_tree into update_tree and add_items. The tree now uses a
210            more generic way to display the contents of the tree.
211            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
212    
213            * Thuban/Model/layer.py (Layer.TreeInfo),
214            Thuban/Model/extension.py (Extension.TreeInfo),
215            Thuban/Model/map.py (Map.TreeInfo),
216            Thuban/Model/session.py (Session.TreeInfo):
217            Add TreeInfo methods to implement the new tree view update scheme
218    
219    2002-07-16  Bernhard Herzog  <[email protected]>
220    
221            * Thuban/UI/application.py: Don't use "import from" for the
222            MainWindow. It can't always be resolved.
223            (ThubanApplication.OnInit): change reference to MainWindow
224            accordingly.
225    
226            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
227            completely
228    
229    2002-07-10  Bernhard Herzog  <[email protected]>
230    
231            * setup.py (create_init_module): New configurable variable whose
232            default depends on the platform we're running on.
233            (ThubanInstall.initialize_options): Initialize
234            self.create_init_module from the global create_init_module
235            (ThubanInstall.user_options): indictate that the options
236            create-init-module and init-module-dir have arguments.
237    
238            * setup.py: In the setup call change the version number to include
239            cvs.
240    
241            * MANIFEST.in: Add the files in Examples
242    
243    2002-07-09  Bernhard Herzog  <[email protected]>
244    
245            * setup.py: In the setup call, use the thuban homepage as the
246            value of the url parameter.
247    
248            * Examples: New subdirectory for examples.
249    
250            * Examples/simple_extensions/simple_tool.xpm,
251            Examples/simple_extensions/simple_tool.py,
252            Examples/simple_extensions/simple_command.py,
253            Examples/simple_extensions/README: Simple examples showing how to
254            add new commands and tools.
255    
256            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
257            bdist_rpm that we also have an install script.
258            (bdist_inno): Add 2002 to the copyright notice.
259    
260            * setup.py: Create a file in python's site-packages directory to
261            make installation of Thuban as a library easier.
262            (ThubanInstall.user_options): Add two new options,
263            create-init-module and init-module-dir
264            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
265            filenames for installation in the default directories.
266            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
267            the inherited methods to capture some filenames before they're
268            transformed too much by distutils.
269            (ThubanInstall.run): Create the init module if requested.
270            (ThubanInstall.thuban_init_filename): New method to return the
271            full name of the init module.
272            (ThubanInstall.get_outputs): Append the filename of the init
273            module.
274    
275    2002-07-08  Bernhard Herzog  <[email protected]>
276    
277            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
278            handle the prefix properly which means that the default for the
279            installation prefix should be /usr for RPMs and /usr/local when
280            doing a normal source install.
281            (bdist_rpm_install_script): Script to override the default install
282            commands in the specfile generated by the bdist_rpm command.
283            (thuban_bdist_rpm.user_options): Add a prefix option
284            (thuban_bdist_rpm.initialize_options): Init the prefix option.
285            Create the script files for the spec files as empty files here
286            (thuban_bdist_rpm._make_spec_file): Override the inherited method
287            to fill the script files with content.
288    
289            * Thuban/Model/save.py (relative_filename): Wrapper around
290            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
291            argument. save_session now automatically uses this version,
292            solving a problem when saving to a relative filename.
293    
294            * setup.py: In the setup call, make sure that the library
295            directories are under $prefix/lib not directly under $prefix.
296    
297    2002-06-20      Jan-Oliver Wagner <[email protected]>
298    
299            * Thuban/Model/extension.py: new module to handle extension objects.
300            * Thuban/Model/messages.py: new messages for extensions.
301            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
302            Session.AddExtension): new for handling extensions.
303            Also some other minor changes to round up extension handling.
304            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
305            of Extension titles and title and names of its objects.
306    
307    2002-05-29  Bernhard Herzog  <[email protected]>
308    
309            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
310            the events for a command.
311            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
312            Call bind_command_events to bind the events. add_toolbar_command
313            can now bind events too so that it's possible to have commands
314            that are only available through the toolbar.
315            (MainWindow.init_ids): New instance variable events_bound to keep
316            track of for which commands events have been bound.
317    
318    2002-05-28  Bernhard Herzog  <[email protected]>
319    
320            * Thuban/UI/menu.py: New module to build and manage menus.
321    
322            * Thuban/UI/mainwindow.py: Remove some unused imports.
323            (MainWindow.__init__, main_menu): move the definition of the main
324            menu from __init__ to the Menu instance main_menu.
325            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
326            build the menu bar and sub-menus from a menu description.
327    
328            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
329            startup file
330            (ThubanApplication.read_startup_files): New method to run
331            ~/.thuban/thubanstart.py
332    
333            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
334            Move the toolbar definition to the Menu instance main_toolbar.
335            (MainWindow.build_toolbar): New method to build the toolbar
336            similar to the build_menu methods
337    
338    2002-05-23  Bernhard Herzog  <[email protected]>
339    
340            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
341            layer_outline_color. Fix it in the definition of the command too.
342    
343            * Thuban/UI/command.py (Command): Fix typo in doc string
344    
345    2002-05-22  Bernhard Herzog  <[email protected]>
346    
347            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
348            in the docstring
349    
350    2002-05-15  Bernhard Herzog  <[email protected]>
351    
352            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
353            when the shapefile is empty.
354            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
355            now return None for empty shapefiles. Update doc-strings.
356    
357            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
358            the layer's bbox being None.
359    
360            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
361            layer's bbox being None.
362    
363            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
364            necessary.
365            (MapCanvas.__init__): New instance variables, last_selected_layer
366            and last_selected_shape to determine how the selection has
367            changed.
368    
369            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
370            AutoSizeColumns because it will cause a traversal of the entire
371            table which for large .dbf files will take a very long time.
372    
373    2002-05-14  Bernhard Herzog  <[email protected]>
374    
375            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
376            maximum depth for the tree than shapelib does by default.
377    
378  2002-05-10  Bernhard Herzog  <[email protected]>  2002-05-10  Bernhard Herzog  <[email protected]>
379    
380          * setup.py (py_modules): The shptree modules doesn't have a          * setup.py (py_modules): The shptree modules doesn't have a

Legend:
Removed from v.165  
changed lines
  Added in v.269

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26