/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Contents of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 225 - (show annotations)
Thu Jul 18 13:04:39 2002 UTC (22 years, 7 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 30253 byte(s)
update ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26