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

Legend:
Removed from v.184  
changed lines
  Added in v.277

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26