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]> |
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 |
180 |
|
|
181 |
|
* Thuban/UI/command.py (Command): Update doc string. |
182 |
|
|
183 |
|
* Thuban/UI/mainwindow.py (MainWindow.invoke_command, |
184 |
|
MainWindow.update_command_ui): Pass an instance of the context |
185 |
|
class to the command's methods |
186 |
|
(check_current_tool, call_method): Handle the new context |
187 |
|
implementation |
188 |
|
|
189 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool, |
190 |
|
check_simple_tool): Handle the new context implementation |
191 |
|
|
192 |
|
* Examples/simple_extensions/simple_command.py (simple_command): |
193 |
|
Handle the new context implementation. Update the comments about |
194 |
|
the context. |
195 |
|
|
196 |
|
* Thuban/UI/application.py (ThubanApplication.SetSession): Add |
197 |
|
doc-string |
198 |
|
(ThubanApplication.Session): New method to return the session |
199 |
|
object |
200 |
|
|
201 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The |
202 |
|
interactor's selected_layer may not be a layer of the current |
203 |
|
session when the tree is updated while a new session is being set. |
204 |
|
|
205 |
|
2002-07-17 Bernhard Herzog <[email protected]> |
206 |
|
|
207 |
|
* Thuban/UI/tree.py (color_string): Removed. No longer used. |
208 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split |
209 |
|
update_tree into update_tree and add_items. The tree now uses a |
210 |
|
more generic way to display the contents of the tree. |
211 |
|
(SessionTreeCtrl): Add a doc string explaining the TreeInfo method |
212 |
|
|
213 |
|
* Thuban/Model/layer.py (Layer.TreeInfo), |
214 |
|
Thuban/Model/extension.py (Extension.TreeInfo), |
215 |
|
Thuban/Model/map.py (Map.TreeInfo), |
216 |
|
Thuban/Model/session.py (Session.TreeInfo): |
217 |
|
Add TreeInfo methods to implement the new tree view update scheme |
218 |
|
|
219 |
|
2002-07-16 Bernhard Herzog <[email protected]> |
220 |
|
|
221 |
|
* Thuban/UI/application.py: Don't use "import from" for the |
222 |
|
MainWindow. It can't always be resolved. |
223 |
|
(ThubanApplication.OnInit): change reference to MainWindow |
224 |
|
accordingly. |
225 |
|
|
226 |
|
* Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu |
227 |
|
completely |
228 |
|
|
229 |
|
2002-07-10 Bernhard Herzog <[email protected]> |
230 |
|
|
231 |
|
* setup.py (create_init_module): New configurable variable whose |
232 |
|
default depends on the platform we're running on. |
233 |
|
(ThubanInstall.initialize_options): Initialize |
234 |
|
self.create_init_module from the global create_init_module |
235 |
|
(ThubanInstall.user_options): indictate that the options |
236 |
|
create-init-module and init-module-dir have arguments. |
237 |
|
|
238 |
|
* setup.py: In the setup call change the version number to include |
239 |
|
cvs. |
240 |
|
|
241 |
|
* MANIFEST.in: Add the files in Examples |
242 |
|
|
243 |
2002-07-09 Bernhard Herzog <[email protected]> |
2002-07-09 Bernhard Herzog <[email protected]> |
244 |
|
|
245 |
|
* setup.py: In the setup call, use the thuban homepage as the |
246 |
|
value of the url parameter. |
247 |
|
|
248 |
|
* Examples: New subdirectory for examples. |
249 |
|
|
250 |
|
* Examples/simple_extensions/simple_tool.xpm, |
251 |
|
Examples/simple_extensions/simple_tool.py, |
252 |
|
Examples/simple_extensions/simple_command.py, |
253 |
|
Examples/simple_extensions/README: Simple examples showing how to |
254 |
|
add new commands and tools. |
255 |
|
|
256 |
|
* setup.cfg (bdist_rpm): Add the default value for prefix and tell |
257 |
|
bdist_rpm that we also have an install script. |
258 |
|
(bdist_inno): Add 2002 to the copyright notice. |
259 |
|
|
260 |
* setup.py: Create a file in python's site-packages directory to |
* setup.py: Create a file in python's site-packages directory to |
261 |
make installation of Thuban as a library easier. |
make installation of Thuban as a library easier. |
262 |
(ThubanInstall.user_options): Add two new options, |
(ThubanInstall.user_options): Add two new options, |