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