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

Legend:
Removed from v.154  
changed lines
  Added in v.271

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26