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