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