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

Legend:
Removed from v.152  
changed lines
  Added in v.259

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26