/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Contents of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (show annotations)
Tue Jul 9 16:17:38 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 27838 byte(s)
update ChangeLog

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

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26