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

Legend:
Removed from v.194  
changed lines
  Added in v.300

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26