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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26