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