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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26