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