1 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
2 |
|
3 |
* Thuban/Model/extension.py: new module to handle extension objects. |
4 |
* Thuban/Model/messages.py: new messages for extensions. |
5 |
* Thuban/Model/session.py (Session.Extensions, Session.HasExtensions, |
6 |
Session.AddExtension): new for handling extensions. |
7 |
Also some other minor changes to round up extension handling. |
8 |
* Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization |
9 |
of Extension titles and title and names of its objects. |
10 |
|
11 |
2002-05-29 Bernhard Herzog <[email protected]> |
12 |
|
13 |
* Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind |
14 |
the events for a comnmand. |
15 |
(MainWindow.add_toolbar_command, MainWindow.add_menu_command): |
16 |
Call bind_command_events to bind the events. add_toolbar_command |
17 |
can now bind events too so that it's possible to have commands |
18 |
that are only available through the toolbar. |
19 |
(MainWindow.init_ids): New instance variable events_bound to keep |
20 |
track of for which commands events have been bound. |
21 |
|
22 |
2002-05-28 Bernhard Herzog <[email protected]> |
23 |
|
24 |
* Thuban/UI/menu.py: New module to build and manage menus. |
25 |
|
26 |
* Thuban/UI/mainwindow.py: Remove some unused imports. |
27 |
(MainWindow.__init__, main_menu): move the definition of the main |
28 |
menu from __init__ to the Menu instance main_menu. |
29 |
(MainWindow.build_menu_bar, MainWindow.build_menu): New methods to |
30 |
build the menu bar and sub-menus from a menu description. |
31 |
|
32 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Read the |
33 |
startup file |
34 |
(ThubanApplication.read_startup_files): New method to run |
35 |
~/.thuban/thubanstart.py |
36 |
|
37 |
* Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar): |
38 |
Move the toolbar definition to the Menu instance main_toolbar. |
39 |
(MainWindow.build_toolbar): New method to build the toolbar |
40 |
similar to the build_menu methods |
41 |
|
42 |
2002-05-23 Bernhard Herzog <[email protected]> |
43 |
|
44 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of |
45 |
layer_outline_color. Fix it in the definition of the command too. |
46 |
|
47 |
* Thuban/UI/command.py (Command): Fix typo in doc string |
48 |
|
49 |
2002-05-22 Bernhard Herzog <[email protected]> |
50 |
|
51 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo |
52 |
in the docstring |
53 |
|
54 |
2002-05-15 Bernhard Herzog <[email protected]> |
55 |
|
56 |
* Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None |
57 |
when the shapefile is empty. |
58 |
(Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may |
59 |
now return None for empty shapefiles. Update doc-strings. |
60 |
|
61 |
* Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with |
62 |
the layer's bbox being None. |
63 |
|
64 |
* Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the |
65 |
layer's bbox being None. |
66 |
|
67 |
* Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when |
68 |
necessary. |
69 |
(MapCanvas.__init__): New instance variables, last_selected_layer |
70 |
and last_selected_shape to determine how the selection has |
71 |
changed. |
72 |
|
73 |
* Thuban/UI/tableview.py (TableGrid.__init__): Do not call |
74 |
AutoSizeColumns because it will cause a traversal of the entire |
75 |
table which for large .dbf files will take a very long time. |
76 |
|
77 |
2002-05-14 Bernhard Herzog <[email protected]> |
78 |
|
79 |
* Thuban/Model/layer.py (Layer.open_shapefile): Choose a better |
80 |
maximum depth for the tree than shapelib does by default. |
81 |
|
82 |
2002-05-10 Bernhard Herzog <[email protected]> |
83 |
|
84 |
* setup.py (py_modules): The shptree modules doesn't have a |
85 |
wrapper, so don't include it in the py_modules |
86 |
|
87 |
2002-05-08 Bernhard Herzog <[email protected]> |
88 |
|
89 |
* extensions/shapelib/shptree.c (compare_ints): Make arguments |
90 |
const void * as in the qsort prototype |
91 |
(SHPTreeFindLikelyShapes): Remove some unused variables. |
92 |
|
93 |
* Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view |
94 |
maintains to redraw the window during a drag. |
95 |
(MapCanvas.unprojected_rect_around_point): New method to determine |
96 |
a small region around a point for hit-testing. |
97 |
(MapCanvas.find_shape_at): Only test the shapes in a small region |
98 |
around the point. |
99 |
|
100 |
* setup.py: Increment the version to 0.1.2 |
101 |
|
102 |
* Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a |
103 |
debug print and set session to None after unsubscribing |
104 |
|
105 |
2002-05-07 Bernhard Herzog <[email protected]> |
106 |
|
107 |
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
108 |
the file to have a .thuban extension. |
109 |
|
110 |
* Thuban/UI/tree.py (session_channels): New class constant with |
111 |
all the session channels to subscribe to to update the tree |
112 |
(SessionTreeCtrl.session_changed): Remember the session so that we |
113 |
can unsubscribe properly. Use the new class constant to |
114 |
unsubscribe from the old session and subscribe to the new one. |
115 |
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
116 |
subscriptions of the SessionTreeCtrl. |
117 |
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
118 |
|
119 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
120 |
Session Tree" command to the file menu. |
121 |
|
122 |
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
123 |
as update_region to the renderer. |
124 |
|
125 |
* Thuban/UI/renderer.py |
126 |
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
127 |
update box is now directly a tuple, not a wxRect anymore. |
128 |
|
129 |
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
130 |
prints. |
131 |
|
132 |
2002-05-07 Bernhard Herzog <[email protected]> |
133 |
|
134 |
* setup.py: Add the shptree extension module. See |
135 |
extensions/pyshapelib/ChangeLog for more details. |
136 |
|
137 |
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
138 |
extensions/shapelib/dbfopen.c: Really update to the versions of |
139 |
shapelib 1.2.9. For some reason it wasn't really done on |
140 |
2002-04-11. |
141 |
|
142 |
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
143 |
shapelib 1.2.9. The only real difference is the use of qsort |
144 |
instead of a bubble sort implementation |
145 |
|
146 |
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
147 |
shapetree to hold the shapelib quadtree for the shapefile |
148 |
(Layer.open_shapefile): Create the quad tree. |
149 |
(Layer.ShapesInRegion): New method to return the ids of shapes in |
150 |
a given region using the quad tree. |
151 |
|
152 |
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
153 |
comment |
154 |
(draw_polygon_shape): Accept both arcs and polygons. |
155 |
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
156 |
the api. |
157 |
|
158 |
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
159 |
return the shape ids to be rendered in a given layer. |
160 |
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
161 |
ids. Use draw_polygon_shape to draw arc shapes as well. |
162 |
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
163 |
has to be updated |
164 |
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
165 |
calling it's ShapesInRegion method. |
166 |
|
167 |
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
168 |
update_region for the update region. |
169 |
(MapCanvas.OnPaint): Maintain the update region |
170 |
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
171 |
to the renderer when drawing the bitmap. Reset the update_region. |
172 |
|
173 |
2002-05-03 Bernhard Herzog <[email protected]> |
174 |
|
175 |
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
176 |
MainWindow.OpenSession): Change the file extension of the session |
177 |
files to .thuban |
178 |
|
179 |
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
180 |
Move the map channels to be forwarded by the session into the |
181 |
class constant with forwarded_channels. Also add |
182 |
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
183 |
forwarded_channels |
184 |
|
185 |
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
186 |
typo and some rewording). |
187 |
|
188 |
2002-05-02 Bernhard Herzog <[email protected]> |
189 |
|
190 |
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
191 |
around to speed up most redraws: |
192 |
(MapCanvas.__init__): New instance variable bitmap which holds the |
193 |
bitmap |
194 |
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
195 |
self.bitmap to draw. |
196 |
(MapCanvas.full_redraw): New method to force a full redraw |
197 |
including the bitmap |
198 |
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
199 |
make sure the bitmap is redrawn. |
200 |
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
201 |
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
202 |
make sure the bitmap is redrawn. |
203 |
(MapCanvas.OnSize): New method to handle size events so that the |
204 |
bitmap can be redrawn. |
205 |
|
206 |
2002-04-29 Bernhard Herzog <[email protected]> |
207 |
|
208 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
209 |
canvas' VIEW_POSITION event |
210 |
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
211 |
Update the text in the status-bar accordingly. |
212 |
|
213 |
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
214 |
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
215 |
called. |
216 |
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
217 |
current_position |
218 |
(MapCanvas.set_current_position): New method to set |
219 |
current_position. Issue a VIEW_POSITION event |
220 |
(MapCanvas.CurrentPosition): New public method to return the value |
221 |
of current_position. Should be called when the VIEW_POSITION event |
222 |
is processed. |
223 |
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
224 |
Update the position. |
225 |
(MapCanvas.OnLeaveWindow): Set the position to None. |
226 |
|
227 |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
228 |
position in the statusbar |
229 |
|
230 |
2002-04-26 Frank Koormann <[email protected]> |
231 |
|
232 |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
233 |
|
234 |
2002-04-24 Frank Koormann <[email protected]> |
235 |
|
236 |
* Resources/Bitmaps/identify.xpm: shadow added |
237 |
|
238 |
* Resources/Bitmaps/fullextent.xpm: new |
239 |
|
240 |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
241 |
|
242 |
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
243 |
|
244 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
245 |
|
246 |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
247 |
|
248 |
* Thuban/UI/tree.py (update_tree): added added map extent |
249 |
|
250 |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
251 |
icon; added map_full_extend as tool |
252 |
|
253 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
254 |
|
255 |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
256 |
saving _new_ sessions |
257 |
|
258 |
* Thuban/Model/session.py (create_empty_session): new session |
259 |
don't have a filename (set to None) |
260 |
|
261 |
* Thuban/UI/tree.py (update_tree): added filename and modified flag |
262 |
|
263 |
* Thuban/Model/load.py (ProcessSession): convert projection |
264 |
parameters from unicode to regular string |
265 |
|
266 |
* Data/iceland_sample.session: Added UTM Zone 26 projection. |
267 |
|
268 |
2002-04-11 Bernhard Herzog <[email protected]> |
269 |
|
270 |
* extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c, |
271 |
extensions/shapelib/dbfopen.c: Update to the versions of shapelib |
272 |
1.2.9 |
273 |
|
274 |
* setup.py (Lib.wxproj extension): Don't link shpopen.c and put |
275 |
the pyshapelib directoy into the list of include dirs, so that |
276 |
pyshapelib_api.h can be found. |
277 |
|
278 |
* extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that |
279 |
holds the pyshapelib C-API |
280 |
(draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use |
281 |
pyshapelib_api to access the shapelib functions. |
282 |
(initwxproj): Import the c_api from the shapelib module and |
283 |
initialize pyshapelib_api. |
284 |
|
285 |
2002-04-04 Bernhard Herzog <[email protected]> |
286 |
|
287 |
* setup.py (thuban_bdist_rpm.initialize_options): Use |
288 |
initialize_options to create the scripts for the rpm. |
289 |
|
290 |
* extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use / |
291 |
|
292 |
2002-04-03 Bernhard Herzog <[email protected]> |
293 |
|
294 |
* setup.py: Increment version to 0.1.1 |
295 |
|
296 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add |
297 |
Layer" and "Remove Layer" commands from the layer menu to the map |
298 |
menu |
299 |
|
300 |
2002-02-15 Bernhard Herzog <[email protected]> |
301 |
|
302 |
* Thuban/Model/layer.py (Layer.Shape): list append only takes one |
303 |
argument (python <= 1.5.2 erroneously accepted multiuple |
304 |
arguments) |
305 |
|
306 |
2002-02-04 Bernhard Herzog <[email protected]> |
307 |
|
308 |
* Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a |
309 |
RecordGrid in the identifyview. |
310 |
(IdentifyView.__init__): Use IdentifyGridCtrl instead of |
311 |
IdentifyListCtrl. The grid allows editing of the values. |
312 |
|
313 |
* Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes |
314 |
implementing a grid for a single row of a thuban table. |
315 |
|
316 |
* Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all |
317 |
layers by default. Easier to use than the previous default of only |
318 |
searching through the select layer which meant that if no layer |
319 |
was selected, you couldn't select a shape. |
320 |
|
321 |
* Thuban/UI/tableview.py (TableGrid.__init__): Fix typo |
322 |
|
323 |
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the |
324 |
stroke_width attribute |
325 |
|
326 |
* Thuban/Model/save.py (save_session): Write the new stroke_width |
327 |
attribute |
328 |
|
329 |
* Thuban/Model/load.py (ProcessSession.startElement): Read the |
330 |
stroke_width attribute |
331 |
|
332 |
* Thuban/Model/layer.py (Layer.__init__): New parameter and |
333 |
instance variable stroke_width |
334 |
(Layer.SetStrokeWidth): Set the stroke_width. |
335 |
|
336 |
2002-02-01 Bernhard Herzog <[email protected]> |
337 |
|
338 |
* extensions/thuban/wxproj.cpp (project_points): Fix two |
339 |
off-by-one errors in the last loop that joins the various parts |
340 |
together. |
341 |
|
342 |
2002-01-14 Bernhard Herzog <[email protected]> |
343 |
|
344 |
* setup.py (data_dist.make_distribution): Fix some typos |
345 |
|
346 |
2001-09-18 Bernhard Herzog <[email protected]> |
347 |
|
348 |
* README: Slight tweaking in preparation for the 0.1 release |
349 |
|
350 |
* setup.cfg: Add section for sdist to create both tgz and zip |
351 |
archives |
352 |
|
353 |
* setup.py: increase version number to 0.1 |
354 |
(data_dist): New command class for data distribution |
355 |
|
356 |
|
357 |
2001-09-14 Bernhard Herzog <[email protected]> |
358 |
|
359 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
360 |
Handle the case of no layer (i.e. layer is None) properly. |
361 |
|
362 |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
363 |
Set the initial selection of the combo boxes to reflect the |
364 |
projection we're starting with in a way that works on windows, |
365 |
too. |
366 |
|
367 |
* Thuban/Lib/connector.py (Connector.print_connections): Print the |
368 |
puiblisher's ids in hex to make it easier to compare them to the |
369 |
standard repr of python methods |
370 |
|
371 |
* Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer |
372 |
messages |
373 |
|
374 |
2001-09-13 Bernhard Herzog <[email protected]> |
375 |
|
376 |
* Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to |
377 |
deselect the layer if no layer is selected |
378 |
|
379 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to |
380 |
idle time when there actually is something to draw. If there's |
381 |
nothing to draw simply clear the window |
382 |
(MapCanvas.do_redraw): Call dc.EndDrawing and add some comments. |
383 |
(MapCanvas.SetMap): force a redraw in all cases because |
384 |
FitMapToWindow doesn't always do it. |
385 |
(MapCanvas.ZoomFactor): Add an optional parameter, center, to |
386 |
specify the point to move into the center of the window |
387 |
(ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't |
388 |
dragged, zoon in/out by a factor of 2 |
389 |
(MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing |
390 |
index, i.e. reversed drawing order) so that objects appearing to |
391 |
be in from of others are selected first. This is probably mostly |
392 |
relevant for point shapes where the symbols used may overlap |
393 |
|
394 |
* Thuban/Model/session.py (create_empty_session): Unset the |
395 |
modified bit before returning it |
396 |
|
397 |
* Thuban/UI/mainwindow.py (MainWindow.NewSession): Use |
398 |
create_empty_session session to create the new, empty session. |
399 |
|
400 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of |
401 |
the tool bitmaps. |
402 |
(MainWindow.OnClose, MainWindow.save_modified_session): Separate |
403 |
the code that asks whether the session should be saved into the |
404 |
new method save_modified_session. |
405 |
(MainWindow.OpenSession, MainWindow.NewSession): Use the new |
406 |
method to save modified session here too. |
407 |
|
408 |
2001-09-11 Bernhard Herzog <[email protected]> |
409 |
|
410 |
* setup.py (InnoIconItem): fix typo |
411 |
|
412 |
(thuban_bdist_inno.run): |
413 |
(bdist_inno.run): Move the decision not to create symlinks on |
414 |
non-nt platforms to thuban_bdist_inno and do it unconditinally |
415 |
since we never want to create the symlinks here |
416 |
|
417 |
2001-09-10 Bernhard Herzog <[email protected]> |
418 |
|
419 |
* Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the |
420 |
identify view immediately |
421 |
|
422 |
* Thuban/UI/controls.py: New file with two classes RecordListCtrl |
423 |
and SelectableRecordListCtrl that implement the code shared by the |
424 |
identify view and the label dialog |
425 |
|
426 |
* Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the |
427 |
new class RecordListCtrl |
428 |
|
429 |
* Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the |
430 |
return value of GetValue is None instead of using it as a boolean |
431 |
directly so that Zero numbers are handled properly. |
432 |
(LabelListCtrl): Derive from the new class |
433 |
SelectableRecordListCtrl |
434 |
|
435 |
* Thuban/UI/proj4dialog.py (Proj4Dialog.__init__): |
436 |
(Proj4Dialog.dialogLayout): Make the window resizable and set the |
437 |
size of the text control explicitly to make the sizers work on |
438 |
both Windows and X. |
439 |
|
440 |
2001-09-07 Bernhard Herzog <[email protected]> |
441 |
|
442 |
* Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter |
443 |
that can limit the search to the currently selected layer. |
444 |
(MapCanvas.SelectShapeAt): Make sure that the currently selected |
445 |
layer stays selected even when no shape is found |
446 |
(MapCanvas.FitRectToWindow): If the rect has zero with or zero |
447 |
height do nothing (avoids zero division errors) |
448 |
|
449 |
2001-09-06 Bernhard Herzog <[email protected]> |
450 |
|
451 |
* Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__): |
452 |
Correct the spelling of SessionTreeCtrl. dabbrev is too damn |
453 |
convenient :-) |
454 |
(SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce |
455 |
a new instvar layer_to_item to map layers to tree items |
456 |
(SessionTreeCtrl.layer_selected): Select the appropriate tree item |
457 |
to match the current selection in the interactor |
458 |
|
459 |
* Thuban/UI/interactor.py (Interactor.SelectedLayer): |
460 |
(Interactor.HasSelectedLayer): New methods to query the current |
461 |
selection |
462 |
|
463 |
* Thuban/UI/mainwindow.py (MainWindow.current_layer): |
464 |
(MainWindow.has_selected_layer): Simply call the appropriate |
465 |
interactor method |
466 |
|
467 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): |
468 |
(MainWindow.LayerShowTable): |
469 |
(MainWindow.identify_view_on_demand): Store the interactor in an |
470 |
instvar and use that reference instead of going through main.app |
471 |
|
472 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
473 |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
474 |
* Thuban/UI/main.py (main): Create the session tree view in main |
475 |
with the new mainwindow method ShowSessionTree and not directly |
476 |
the application's OnInit method |
477 |
|
478 |
* Thuban/UI/tree.py (myTreeCtrlPanel): |
479 |
(SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a |
480 |
TreeCtrl isntead of a panel. This affects most method since we now |
481 |
refer to self instead of self.tree |
482 |
(SessionTreeView): New class implementing a non-modal dialog |
483 |
showing the session tree. |
484 |
|
485 |
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the |
486 |
layer to the tableview dialog. |
487 |
|
488 |
* Thuban/UI/tableview.py: Add some doc-strings |
489 |
(TableGrid): |
490 |
(TableGrid.OnRangeSelect): |
491 |
(TableGrid.OnSelectCell): |
492 |
(TableFrame.__init__): |
493 |
(TableFrame.row_selected): |
494 |
Selecting rows in the grid view now updates the selected shapes |
495 |
through the TableFrame. To achieve this we derive TableGrid from |
496 |
Publisher and introduce the message type ROW_SELECTED which the |
497 |
TableFrame subscribes to and which is issued by OnRangeSelect and |
498 |
OnSelectCell |
499 |
|
500 |
(DataTable.SelectRow): Removed because it's no longer needed in |
501 |
the row/shape selection scheme |
502 |
|
503 |
* Thuban/UI/dialogs.py: New file implementing common classes for |
504 |
dialogs |
505 |
|
506 |
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
507 |
the SELECTED_SHAPE message anymore. This is now handled by the |
508 |
parent. |
509 |
(TableGrid.select_shape): Only update the selection if the shape |
510 |
is not None. |
511 |
(TableFrame): Inherit from the new NonModalDialog class. |
512 |
(TableFrame.__init__, TableFrame.select_shape): Handle the |
513 |
SELECT_SHAPE message. |
514 |
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
515 |
SELECT_SHAPE |
516 |
|
517 |
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
518 |
(MainWindow.add_dialog): |
519 |
(MainWindow.dialog_open): |
520 |
(MainWindow.remove_dialog): |
521 |
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
522 |
of opened non-modal dialogs. |
523 |
|
524 |
(MainWindow.__init__): Initialize the new non-modal dictionary |
525 |
management code |
526 |
(MainWindow.LayerShowTable): maintain separate dialogs for each |
527 |
table using the non-modal dialog management code to only open a |
528 |
view once for each table. |
529 |
|
530 |
(MainWindow.IdentifyTool): |
531 |
(MainWindow.__init__): |
532 |
(MainWindow.identify_view_on_demand): Don't open the identify view |
533 |
in IdentifyTool anymore. This will be done automatically by the |
534 |
new method identify_view_on_demand which handles the |
535 |
SELECTED_SHAPE message so that the identify view will be opened on |
536 |
demand |
537 |
|
538 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
539 |
the interactor argument. The SELECTED_SHAPE message is now handled |
540 |
by the parent. |
541 |
(IdentifyView.__init__): Add the interactor argument so that we |
542 |
can handle the SELECTED_SHAPE message here |
543 |
(IdentifyView.selected_shape): New method to handle the |
544 |
SELECTED_SHAPE messages |
545 |
|
546 |
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
547 |
NonModalDialog class |
548 |
(IdentifyView.OnClose): Extend the inherited version to |
549 |
unsubscribe SELECT_SHAPE |
550 |
|
551 |
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
552 |
|
553 |
2001-09-05 Bernhard Herzog <[email protected]> |
554 |
|
555 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
556 |
|
557 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
558 |
interactor to pass through to the MapCanvas |
559 |
|
560 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
561 |
argument to the MainWindow constructor to get rid of the ugly hack |
562 |
that made main.app available early just so that the mapcanvas |
563 |
could access the interactor object. |
564 |
|
565 |
2001-09-04 Bernhard Herzog <[email protected]> |
566 |
|
567 |
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method |
568 |
that runs a modal message box |
569 |
(MainWindow.OnClose): Use the new method |
570 |
(MainWindow.RemoveLayer): Just do nothing in case no layer is |
571 |
selected. The command should be grayed out anyway, so there's no |
572 |
need to pop up a message box. |
573 |
(MainWindow.AddLayer): Pop up a message box with an error message |
574 |
if the shape file can't be opened |
575 |
|
576 |
* Thuban/Model/layer.py (Layer.__init__): Open the shapefile |
577 |
immediately. This will cause an exception in case the file can't |
578 |
be opened and we can display an appropriate message. |
579 |
|
580 |
* MANIFEST.in: Add extensions/pyprojection/LICENSE |
581 |
|
582 |
* setup.py (thuban_bdist_rpm): New class implementing a Thuban |
583 |
specific bdist_rpm command. |
584 |
|
585 |
* Thuban/UI/main.py: Catch ImportError exceptions when importing |
586 |
the locale module because it may not be available on some |
587 |
installations. |
588 |
|
589 |
* extensions/pyprojection/LICENSE: Copy of the license text in |
590 |
Projection.i. Having it in a separate file makes it easier to |
591 |
refer to license text in e.g. RPMs |
592 |
|
593 |
2001-09-03 Bernhard Herzog <[email protected]> |
594 |
|
595 |
* setup.py: use wx-config instead of wxgtk-config because it's |
596 |
more generic |
597 |
|
598 |
* setup.py (ThubanInstall.get_outputs): Add the symlink in |
599 |
<prefix>/bin to the outputs |
600 |
(ThubanInstall.link_file): New method to link files. We need this |
601 |
because the standard copy_files refuses to link non-existing |
602 |
files. |
603 |
(ThubanInstall.run): Remove the leading install root from the |
604 |
script filename if an install root was specified and use the new |
605 |
link_file method |
606 |
|
607 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
608 |
the window when the first layer is added to the map. |
609 |
|
610 |
* setup.py (ThubanInstall.run): Honor the build root (self.root) |
611 |
when linking thuban.py to <prefix>/bin |
612 |
|
613 |
2001-08-31 Bernhard Herzog <[email protected]> |
614 |
|
615 |
* setup.py: In the setup call, the install parameters shouldn't |
616 |
have trailing slashes because distutils on non-posix platforms |
617 |
doesn't like that. The same applies to other directories like |
618 |
"Resources/Bitmaps" |
619 |
|
620 |
In the configuration section for nt, move the wxWindows directory |
621 |
optins into the part clearly marked as editable. |
622 |
|
623 |
(InstallLocal.initialize_options): |
624 |
(InstallLocal.user_options): remove the currently unused debug |
625 |
flag |
626 |
(thuban_build_py.find_all_modules): Add this method so that it |
627 |
works for our case of having packages and modules in one |
628 |
distribution as well. |
629 |
(ThubanInstall.initialize_options): |
630 |
(ThubanInstall.finalize_options): |
631 |
(ThubanInstall.user_options): |
632 |
(ThubanInstall.boolean_options): Add new options, do-symlink and |
633 |
extra files. Since these are the first ThubanInstall specific |
634 |
options, override user_options and boolean_options |
635 |
(ThubanInstall.run): Honor the new do-symlink and extra-files |
636 |
options. |
637 |
(ThubanInstall.get_outputs): Add to override the base-class's |
638 |
version and add the extra-files to the outputs |
639 |
(bdist_inno): New class for windows distributions with Inno Setup |
640 |
(InnoIconItem): Helper class for bdist_inno |
641 |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
642 |
this together with the appropriate parameters, to the setup call. |
643 |
|
644 |
* setup.cfg (bdist_inno): added new section for the inno setup |
645 |
installer |
646 |
|
647 |
* Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var |
648 |
changing_selection to avoid recursive selection events when |
649 |
modifying the selection in response to a selection event. |
650 |
(myTreeCtrlPanel.normalize_selection): Set the new inst var when |
651 |
changing the tree's selection. |
652 |
(myTreeCtrlPanel.OnSelChanged): Only normalize the selection when |
653 |
we're not being called indirectly from normalize_selection. |
654 |
|
655 |
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call |
656 |
event.Check only if the command is actuall checkable. |
657 |
(MainWindow.__init__): Call the toolbar's Realize method to make |
658 |
sure that the items are actually shown |
659 |
|
660 |
2001-08-28 Bernhard Herzog <[email protected]> |
661 |
|
662 |
* setup.py: Fix some doc strings |
663 |
|
664 |
* ChangeLog: started |
665 |
|