/[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 210 by bh, Tue Jul 9 16:17:38 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]>  2002-07-09  Bernhard Herzog  <[email protected]>
265    
266          * setup.py: In the setup call, use the thuban homepage as the          * setup.py: In the setup call, use the thuban homepage as the

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26