/[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 225 by bh, Thu Jul 18 13:04:39 2002 UTC revision 269 by bh, Thu Aug 22 10:25:55 2002 UTC
# Line 1  Line 1 
1    2002-08-22  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/save.py (Saver): New class to handle serializing a
4            session into an XML file. The main reason to introduce a class is
5            that applications built on Thuban can derive from it so that they
6            can save additional information in a session file.
7            (save_session): Delegate almost all the work to the Saver class.
8            Rename the filename argument to file because it may be a file like
9            object now.
10    
11            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
12            code. Remove the little test code which would be executed when the
13            module is run as a script which didn't work anymore since it can't
14            import the other Thuban modules.
15            (ProcessSession, load_session): Refactor the ProcessSession to
16            have one method for each element start and end tag so that derived
17            classes can easily override the processing of individual tags.
18            Also, always parse with namespaces enabled because applications
19            built on top of Thuban will likely use namespaces if they extend
20            the session file format.
21    
22    2002-08-21  Bernhard Herzog  <[email protected]>
23    
24            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
25            because thubaninit_contents will do it for us.
26    
27    2002-08-16      Jan-Oliver Wagner <[email protected]>
28    
29            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
30            tree window already open
31    
32    2002-08-15  Bernhard Herzog  <[email protected]>
33    
34            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
35            with self.
36    
37            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
38            when we have actually captured it.
39    
40            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
41            shapefile and destroy the table.
42    
43            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
44    
45    2002-08-14  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
48            instance variable columns
49            (RecordTable.GetTypeName): row and col may be negative in some
50            cases.
51    
52            * setup.py (InstallLocal.initialize_options)
53            (InstallLocal.finalize_options, InstallLocal.user_options): New
54            option create-init-file to build a thubaninit.py when running
55            install_local
56            (InstallLocal.run): Create the thubaninit.py module when requested
57            (thubaninit_contents): Split the template into several parts and
58            create a new function thubaninit_contents that creates the
59            contents of a thubaninit module.
60            (ThubanInstall.run): Use the new function to create the thubaninit
61            module.
62    
63    2002-07-30  Bernhard Herzog  <[email protected]>
64    
65            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
66            cleanup.
67            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
68    
69            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
70            direct base class' Destroy method.
71    
72            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
73            layers.
74            (Map.Destroy): Destroy the label_layer as well and call the
75            inherited Desatroymethod first so that no more messages are
76            issued.
77            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
78            message if the stacking order actually has changed. Add
79            doc-strings.
80            (Map.BoundingBox): Correct the doc-string.
81            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
82            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
83    
84            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
85            all labels.
86    
87    2002-07-29  Bernhard Herzog  <[email protected]>
88    
89            * Thuban/Model/map.py (Map.subscribe_layer_channels)
90            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
91            to a layer's channels into separate methods.
92            (Map.RemoveLayer, Map.AddLayer): Call the new methods
93            (Map.Destroy): Unsubscribe from a layer's channels before
94            destroying it.
95    
96            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
97            selected_layer parameter to searched_layer which is the layer to
98            search in.
99            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
100            search to that layer. Return the selected layer and shape.
101    
102            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
103            typo
104    
105    2002-07-24  Bernhard Herzog  <[email protected]>
106    
107            * Thuban/UI/application.py (ThubanApplication.create_session):
108            Extend the doc string.
109            (ThubanApplication.subscribe_session)
110            (ThubanApplication.unsubscribe_session): New methods to
111            subscribe/unsubscribe to/from session channels.
112            (ThubanApplication.SetSession): Call the new methods here.
113            (ThubanApplication.maps_changed, ThubanApplication.set_map):
114            Renamed set_map to maps_changed. Its now a subscriber for
115            MAPS_CHANGED.
116    
117            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
118            x-coordinate in case of simple clicks
119    
120            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
121            don't pass it as a parameter
122    
123            * Thuban/Model/session.py (Session.RemoveMap): New
124    
125            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
126            window size into a parameter.
127    
128    2002-07-23  Bernhard Herzog  <[email protected]>
129    
130            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
131            just commands.
132    
133            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
134            parameter list a bit to allow setting the window title and the
135            initial message in the status bar. Update the callers.
136    
137            * Thuban/UI/application.py (ThubanApplication.OnInit)
138            (ThubanApplication.CreateMainWindow): Put the mainwindow
139            instantiation into a separate method so that it can be overridden
140            by a subclass.
141    
142    2002-07-19  Bernhard Herzog  <[email protected]>
143    
144            * Thuban/Model/session.py: Issue a CHANGED message every time
145            another changed message is issued to make it easier to get
146            notified of changes.
147            (Session): Update the doc string
148            (Session.forward): Issue changed-events as CHANGED as well.
149            (Session.changed): Overwrite the inherited version to issue
150            CHANGED events as well.
151    
152            * Thuban/UI/tree.py: We can now simply subscribe to the session's
153            CHANGED channel to be informed of changes.
154            (SessionTreeCtrl.session_channels): Not needed any longer.
155            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
156            Only have to (un)subscribe CHANGED
157    
158            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
159    
160            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
161            for the wxPython locale bug to __init__.py so that it's
162            automatically executed by anybody using UI code from Thuban.
163    
164  2002-07-18  Bernhard Herzog  <[email protected]>  2002-07-18  Bernhard Herzog  <[email protected]>
165    
166            * Thuban/UI/main.py (main): app no longer needs to be global
167    
168            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
169            as parameter and store it in an instance variable
170            (MainWindow.invoke_command, MainWindow.update_command_ui)
171            (MainWindow.save_modified_session, MainWindow.NewSession)
172            (MainWindow.OpenSession, MainWindow.SaveSession)
173            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
174            application object.
175    
176            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
177            the main window with self.
178    
179          * Thuban/UI/context.py: New module with the context class          * Thuban/UI/context.py: New module with the context class
180    
181          * Thuban/UI/command.py (Command): Update doc string.          * Thuban/UI/command.py (Command): Update doc string.

Legend:
Removed from v.225  
changed lines
  Added in v.269

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26