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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26