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

Legend:
Removed from v.192  
changed lines
  Added in v.275

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26