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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 304 - (show annotations)
Mon Sep 2 16:47:59 2002 UTC (22 years, 6 months ago) by bh
Original Path: trunk/thuban/ChangeLog
File size: 40515 byte(s)
update ChangeLog

1 2002-09-02 Bernhard Herzog <[email protected]>
2
3 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
4 wxWindows already and our implementation doesn't work correctly
5 with wxGTK 2.3:
6 (MapCanvas.__init__): Remove the instance variable
7 (MapCanvas.OnPaint): Always call do_redraw when there's a map to
8 be drawin
9 (MapCanvas.OnIdle): Removed.
10
11 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
12 a parameter to determine the size of the rectangle.
13 (MapCanvas.find_shape_at): Create the box around the point on a
14 layer by layer basis and make the size depend on the shape type.
15 This solves a problem with the selection of point shapes at the
16 border of the layer's bounding box
17
18 2002-08-30 Bernhard Herzog <[email protected]>
19
20 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
21 for the sensitivity of remove layer.
22 (_can_remove_layer): New. Sensitivity callback for remove layer
23 (Command layer_remove): Use _can_remove_layer
24
25 * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
26 determine whether a given layer can be deleted.
27
28 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
29 (MapCanvas.do_redraw): Get rid of the unused update_region
30 instance variable
31
32 * Thuban/UI/view.py: Add/update some doc-strings.
33
34 * test/: new subdirectory with a bunch of unit tests.
35
36 * test/README, test/test_table.py, test/test_save.py,
37 test/test_menu.py, test/test_load.py: Initial set of tests and
38 brief instructions on how to run them
39
40 2002-08-29 Bernhard Herzog <[email protected]>
41
42 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
43 arcs with multiple parts.
44
45 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
46 Handle degenrate rectangles.
47
48 * Thuban/Model/table.py: Make writing records work correctly:
49 (Table.__init__): Keep track of whether the DBF is open for
50 writing
51 (Table.write_record): Open the DBF file for writing when necessary
52
53 2002-08-27 Bernhard Herzog <[email protected]>
54
55 * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
56 dbf files only for reading by default. Use a new writable dbf
57 object for writing.
58
59 2002-08-26 Bernhard Herzog <[email protected]>
60
61 * Thuban/UI/mainwindow.py: Refactor the context creation:
62 (MainWindow.Context): New method to return a context
63 (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
64 new method
65
66 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
67 layer table specific code from TableGrid into LayerTableGrid
68 (TableFrame, LayerTableFrame): Split the layer table specific code
69 from TableFrame into LayerTableFrame
70 (LayerTableGrid.select_shape): Remove a debug print
71
72 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
73 LayerTableFrame
74
75 2002-08-23 Bernhard Herzog <[email protected]>
76
77 * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
78 absolute filename.
79
80 2002-08-22 Bernhard Herzog <[email protected]>
81
82 * Thuban/Model/table.py (Table.write_record): New method to write
83 records.
84 (Table.__init__): Open the DBF file for writing too.
85
86 * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
87 into the underlying table.
88
89 * extensions/shapelib/shapefil.h (DBFCommit),
90 extensions/shapelib/dbfopen.c (DBFCommit): New API function to
91 commit any changes made to the DBF file.
92
93 * Thuban/UI/mainwindow.py (make_check_current_tool)
94 (_tool_command): Put the code that generates the "checked"
95 callback into a separate function so that we can reuse it
96 elsewhere
97
98 * Thuban/Model/save.py (Saver): New class to handle serializing a
99 session into an XML file. The main reason to introduce a class is
100 that applications built on Thuban can derive from it so that they
101 can save additional information in a session file.
102 (save_session): Delegate almost all the work to the Saver class.
103 Rename the filename argument to file because it may be a file like
104 object now.
105
106 * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
107 code. Remove the little test code which would be executed when the
108 module is run as a script which didn't work anymore since it can't
109 import the other Thuban modules.
110 (ProcessSession, load_session): Refactor the ProcessSession to
111 have one method for each element start and end tag so that derived
112 classes can easily override the processing of individual tags.
113 Also, always parse with namespaces enabled because applications
114 built on top of Thuban will likely use namespaces if they extend
115 the session file format.
116
117 2002-08-21 Bernhard Herzog <[email protected]>
118
119 * setup.py (ThubanInstall.run): Don't repr install_lib_orig
120 because thubaninit_contents will do it for us.
121
122 2002-08-16 Jan-Oliver Wagner <[email protected]>
123
124 * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
125 tree window already open
126
127 2002-08-15 Bernhard Herzog <[email protected]>
128
129 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
130 with self.
131
132 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
133 when we have actually captured it.
134
135 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
136 shapefile and destroy the table.
137
138 * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
139
140 2002-08-14 Bernhard Herzog <[email protected]>
141
142 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
143 instance variable columns
144 (RecordTable.GetTypeName): row and col may be negative in some
145 cases.
146
147 * setup.py (InstallLocal.initialize_options)
148 (InstallLocal.finalize_options, InstallLocal.user_options): New
149 option create-init-file to build a thubaninit.py when running
150 install_local
151 (InstallLocal.run): Create the thubaninit.py module when requested
152 (thubaninit_contents): Split the template into several parts and
153 create a new function thubaninit_contents that creates the
154 contents of a thubaninit module.
155 (ThubanInstall.run): Use the new function to create the thubaninit
156 module.
157
158 2002-07-30 Bernhard Herzog <[email protected]>
159
160 * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
161 cleanup.
162 (ThubanApplication.MainLoop): Extend to automatically call OnExit.
163
164 * Thuban/Model/session.py (Session.Destroy): Don't bypass the
165 direct base class' Destroy method.
166
167 * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
168 layers.
169 (Map.Destroy): Destroy the label_layer as well and call the
170 inherited Desatroymethod first so that no more messages are
171 issued.
172 (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
173 message if the stacking order actually has changed. Add
174 doc-strings.
175 (Map.BoundingBox): Correct the doc-string.
176 (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
177 (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
178
179 * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
180 all labels.
181
182 2002-07-29 Bernhard Herzog <[email protected]>
183
184 * Thuban/Model/map.py (Map.subscribe_layer_channels)
185 (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
186 to a layer's channels into separate methods.
187 (Map.RemoveLayer, Map.AddLayer): Call the new methods
188 (Map.Destroy): Unsubscribe from a layer's channels before
189 destroying it.
190
191 * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
192 selected_layer parameter to searched_layer which is the layer to
193 search in.
194 (MapCanvas.SelectShapeAt): New parameter layer to restrict the
195 search to that layer. Return the selected layer and shape.
196
197 * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
198 typo
199
200 2002-07-24 Bernhard Herzog <[email protected]>
201
202 * Thuban/UI/application.py (ThubanApplication.create_session):
203 Extend the doc string.
204 (ThubanApplication.subscribe_session)
205 (ThubanApplication.unsubscribe_session): New methods to
206 subscribe/unsubscribe to/from session channels.
207 (ThubanApplication.SetSession): Call the new methods here.
208 (ThubanApplication.maps_changed, ThubanApplication.set_map):
209 Renamed set_map to maps_changed. Its now a subscriber for
210 MAPS_CHANGED.
211
212 * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
213 x-coordinate in case of simple clicks
214
215 * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
216 don't pass it as a parameter
217
218 * Thuban/Model/session.py (Session.RemoveMap): New
219
220 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
221 window size into a parameter.
222
223 2002-07-23 Bernhard Herzog <[email protected]>
224
225 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
226 just commands.
227
228 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
229 parameter list a bit to allow setting the window title and the
230 initial message in the status bar. Update the callers.
231
232 * Thuban/UI/application.py (ThubanApplication.OnInit)
233 (ThubanApplication.CreateMainWindow): Put the mainwindow
234 instantiation into a separate method so that it can be overridden
235 by a subclass.
236
237 2002-07-19 Bernhard Herzog <[email protected]>
238
239 * Thuban/Model/session.py: Issue a CHANGED message every time
240 another changed message is issued to make it easier to get
241 notified of changes.
242 (Session): Update the doc string
243 (Session.forward): Issue changed-events as CHANGED as well.
244 (Session.changed): Overwrite the inherited version to issue
245 CHANGED events as well.
246
247 * Thuban/UI/tree.py: We can now simply subscribe to the session's
248 CHANGED channel to be informed of changes.
249 (SessionTreeCtrl.session_channels): Not needed any longer.
250 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
251 Only have to (un)subscribe CHANGED
252
253 * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
254
255 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
256 for the wxPython locale bug to __init__.py so that it's
257 automatically executed by anybody using UI code from Thuban.
258
259 2002-07-18 Bernhard Herzog <[email protected]>
260
261 * Thuban/UI/main.py (main): app no longer needs to be global
262
263 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
264 as parameter and store it in an instance variable
265 (MainWindow.invoke_command, MainWindow.update_command_ui)
266 (MainWindow.save_modified_session, MainWindow.NewSession)
267 (MainWindow.OpenSession, MainWindow.SaveSession)
268 (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
269 application object.
270
271 * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
272 the main window with self.
273
274 * Thuban/UI/context.py: New module with the context class
275
276 * Thuban/UI/command.py (Command): Update doc string.
277
278 * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
279 MainWindow.update_command_ui): Pass an instance of the context
280 class to the command's methods
281 (check_current_tool, call_method): Handle the new context
282 implementation
283
284 * Examples/simple_extensions/simple_tool.py (simple_tool,
285 check_simple_tool): Handle the new context implementation
286
287 * Examples/simple_extensions/simple_command.py (simple_command):
288 Handle the new context implementation. Update the comments about
289 the context.
290
291 * Thuban/UI/application.py (ThubanApplication.SetSession): Add
292 doc-string
293 (ThubanApplication.Session): New method to return the session
294 object
295
296 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
297 interactor's selected_layer may not be a layer of the current
298 session when the tree is updated while a new session is being set.
299
300 2002-07-17 Bernhard Herzog <[email protected]>
301
302 * Thuban/UI/tree.py (color_string): Removed. No longer used.
303 (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
304 update_tree into update_tree and add_items. The tree now uses a
305 more generic way to display the contents of the tree.
306 (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
307
308 * Thuban/Model/layer.py (Layer.TreeInfo),
309 Thuban/Model/extension.py (Extension.TreeInfo),
310 Thuban/Model/map.py (Map.TreeInfo),
311 Thuban/Model/session.py (Session.TreeInfo):
312 Add TreeInfo methods to implement the new tree view update scheme
313
314 2002-07-16 Bernhard Herzog <[email protected]>
315
316 * Thuban/UI/application.py: Don't use "import from" for the
317 MainWindow. It can't always be resolved.
318 (ThubanApplication.OnInit): change reference to MainWindow
319 accordingly.
320
321 * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
322 completely
323
324 2002-07-10 Bernhard Herzog <[email protected]>
325
326 * setup.py (create_init_module): New configurable variable whose
327 default depends on the platform we're running on.
328 (ThubanInstall.initialize_options): Initialize
329 self.create_init_module from the global create_init_module
330 (ThubanInstall.user_options): indictate that the options
331 create-init-module and init-module-dir have arguments.
332
333 * setup.py: In the setup call change the version number to include
334 cvs.
335
336 * MANIFEST.in: Add the files in Examples
337
338 2002-07-09 Bernhard Herzog <[email protected]>
339
340 * setup.py: In the setup call, use the thuban homepage as the
341 value of the url parameter.
342
343 * Examples: New subdirectory for examples.
344
345 * Examples/simple_extensions/simple_tool.xpm,
346 Examples/simple_extensions/simple_tool.py,
347 Examples/simple_extensions/simple_command.py,
348 Examples/simple_extensions/README: Simple examples showing how to
349 add new commands and tools.
350
351 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
352 bdist_rpm that we also have an install script.
353 (bdist_inno): Add 2002 to the copyright notice.
354
355 * setup.py: Create a file in python's site-packages directory to
356 make installation of Thuban as a library easier.
357 (ThubanInstall.user_options): Add two new options,
358 create-init-module and init-module-dir
359 (ThubanInstall.expand_with_pure_python_dirs): New method to expand
360 filenames for installation in the default directories.
361 (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
362 the inherited methods to capture some filenames before they're
363 transformed too much by distutils.
364 (ThubanInstall.run): Create the init module if requested.
365 (ThubanInstall.thuban_init_filename): New method to return the
366 full name of the init module.
367 (ThubanInstall.get_outputs): Append the filename of the init
368 module.
369
370 2002-07-08 Bernhard Herzog <[email protected]>
371
372 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
373 handle the prefix properly which means that the default for the
374 installation prefix should be /usr for RPMs and /usr/local when
375 doing a normal source install.
376 (bdist_rpm_install_script): Script to override the default install
377 commands in the specfile generated by the bdist_rpm command.
378 (thuban_bdist_rpm.user_options): Add a prefix option
379 (thuban_bdist_rpm.initialize_options): Init the prefix option.
380 Create the script files for the spec files as empty files here
381 (thuban_bdist_rpm._make_spec_file): Override the inherited method
382 to fill the script files with content.
383
384 * Thuban/Model/save.py (relative_filename): Wrapper around
385 Thuban.Lib.fileutil.relative_filename that accepts an empty dir
386 argument. save_session now automatically uses this version,
387 solving a problem when saving to a relative filename.
388
389 * setup.py: In the setup call, make sure that the library
390 directories are under $prefix/lib not directly under $prefix.
391
392 2002-06-20 Jan-Oliver Wagner <[email protected]>
393
394 * Thuban/Model/extension.py: new module to handle extension objects.
395 * Thuban/Model/messages.py: new messages for extensions.
396 * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
397 Session.AddExtension): new for handling extensions.
398 Also some other minor changes to round up extension handling.
399 * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
400 of Extension titles and title and names of its objects.
401
402 2002-05-29 Bernhard Herzog <[email protected]>
403
404 * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
405 the events for a command.
406 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
407 Call bind_command_events to bind the events. add_toolbar_command
408 can now bind events too so that it's possible to have commands
409 that are only available through the toolbar.
410 (MainWindow.init_ids): New instance variable events_bound to keep
411 track of for which commands events have been bound.
412
413 2002-05-28 Bernhard Herzog <[email protected]>
414
415 * Thuban/UI/menu.py: New module to build and manage menus.
416
417 * Thuban/UI/mainwindow.py: Remove some unused imports.
418 (MainWindow.__init__, main_menu): move the definition of the main
419 menu from __init__ to the Menu instance main_menu.
420 (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
421 build the menu bar and sub-menus from a menu description.
422
423 * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
424 startup file
425 (ThubanApplication.read_startup_files): New method to run
426 ~/.thuban/thubanstart.py
427
428 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
429 Move the toolbar definition to the Menu instance main_toolbar.
430 (MainWindow.build_toolbar): New method to build the toolbar
431 similar to the build_menu methods
432
433 2002-05-23 Bernhard Herzog <[email protected]>
434
435 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
436 layer_outline_color. Fix it in the definition of the command too.
437
438 * Thuban/UI/command.py (Command): Fix typo in doc string
439
440 2002-05-22 Bernhard Herzog <[email protected]>
441
442 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
443 in the docstring
444
445 2002-05-15 Bernhard Herzog <[email protected]>
446
447 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
448 when the shapefile is empty.
449 (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
450 now return None for empty shapefiles. Update doc-strings.
451
452 * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
453 the layer's bbox being None.
454
455 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
456 layer's bbox being None.
457
458 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
459 necessary.
460 (MapCanvas.__init__): New instance variables, last_selected_layer
461 and last_selected_shape to determine how the selection has
462 changed.
463
464 * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
465 AutoSizeColumns because it will cause a traversal of the entire
466 table which for large .dbf files will take a very long time.
467
468 2002-05-14 Bernhard Herzog <[email protected]>
469
470 * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
471 maximum depth for the tree than shapelib does by default.
472
473 2002-05-10 Bernhard Herzog <[email protected]>
474
475 * setup.py (py_modules): The shptree modules doesn't have a
476 wrapper, so don't include it in the py_modules
477
478 2002-05-08 Bernhard Herzog <[email protected]>
479
480 * extensions/shapelib/shptree.c (compare_ints): Make arguments
481 const void * as in the qsort prototype
482 (SHPTreeFindLikelyShapes): Remove some unused variables.
483
484 * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
485 maintains to redraw the window during a drag.
486 (MapCanvas.unprojected_rect_around_point): New method to determine
487 a small region around a point for hit-testing.
488 (MapCanvas.find_shape_at): Only test the shapes in a small region
489 around the point.
490
491 * setup.py: Increment the version to 0.1.2
492
493 * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
494 debug print and set session to None after unsubscribing
495
496 2002-05-07 Bernhard Herzog <[email protected]>
497
498 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
499 the file to have a .thuban extension.
500
501 * Thuban/UI/tree.py (session_channels): New class constant with
502 all the session channels to subscribe to to update the tree
503 (SessionTreeCtrl.session_changed): Remember the session so that we
504 can unsubscribe properly. Use the new class constant to
505 unsubscribe from the old session and subscribe to the new one.
506 (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
507 subscriptions of the SessionTreeCtrl.
508 (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
509
510 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
511 Session Tree" command to the file menu.
512
513 * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
514 as update_region to the renderer.
515
516 * Thuban/UI/renderer.py
517 (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
518 update box is now directly a tuple, not a wxRect anymore.
519
520 * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
521 prints.
522
523 2002-05-07 Bernhard Herzog <[email protected]>
524
525 * setup.py: Add the shptree extension module. See
526 extensions/pyshapelib/ChangeLog for more details.
527
528 * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
529 extensions/shapelib/dbfopen.c: Really update to the versions of
530 shapelib 1.2.9. For some reason it wasn't really done on
531 2002-04-11.
532
533 * extensions/shapelib/shptree.c: Modified version of shptree.c of
534 shapelib 1.2.9. The only real difference is the use of qsort
535 instead of a bubble sort implementation
536
537 * Thuban/Model/layer.py (Layer.__init__): New instance variable
538 shapetree to hold the shapelib quadtree for the shapefile
539 (Layer.open_shapefile): Create the quad tree.
540 (Layer.ShapesInRegion): New method to return the ids of shapes in
541 a given region using the quad tree.
542
543 * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
544 comment
545 (draw_polygon_shape): Accept both arcs and polygons.
546 (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
547 the api.
548
549 * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
550 return the shape ids to be rendered in a given layer.
551 (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
552 ids. Use draw_polygon_shape to draw arc shapes as well.
553 (ScreenRenderer.RenderMap): New parameter for the rectangle that
554 has to be updated
555 (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
556 calling it's ShapesInRegion method.
557
558 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
559 update_region for the update region.
560 (MapCanvas.OnPaint): Maintain the update region
561 (MapCanvas.do_redraw): Pass the bounding box of the update_region
562 to the renderer when drawing the bitmap. Reset the update_region.
563
564 2002-05-03 Bernhard Herzog <[email protected]>
565
566 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
567 MainWindow.OpenSession): Change the file extension of the session
568 files to .thuban
569
570 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
571 Move the map channels to be forwarded by the session into the
572 class constant with forwarded_channels. Also add
573 LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
574 forwarded_channels
575
576 * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
577 typo and some rewording).
578
579 2002-05-02 Bernhard Herzog <[email protected]>
580
581 * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
582 around to speed up most redraws:
583 (MapCanvas.__init__): New instance variable bitmap which holds the
584 bitmap
585 (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
586 self.bitmap to draw.
587 (MapCanvas.full_redraw): New method to force a full redraw
588 including the bitmap
589 (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
590 make sure the bitmap is redrawn.
591 (MapCanvas.projection_changed, MapCanvas.set_view_transform,
592 MapCanvas.shape_selected): Call full_redraw instead of readraw to
593 make sure the bitmap is redrawn.
594 (MapCanvas.OnSize): New method to handle size events so that the
595 bitmap can be redrawn.
596
597 2002-04-29 Bernhard Herzog <[email protected]>
598
599 * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
600 canvas' VIEW_POSITION event
601 (MainWindow.view_position_changed): Handler for VIEW_POSITION.
602 Update the text in the status-bar accordingly.
603
604 * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
605 (MapCanvas.__del__): Implement because Publisher.__del__ has to be
606 called.
607 (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
608 current_position
609 (MapCanvas.set_current_position): New method to set
610 current_position. Issue a VIEW_POSITION event
611 (MapCanvas.CurrentPosition): New public method to return the value
612 of current_position. Should be called when the VIEW_POSITION event
613 is processed.
614 (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
615 Update the position.
616 (MapCanvas.OnLeaveWindow): Set the position to None.
617
618 * Thuban/UI/messages.py (VIEW_POSITION): New message for the
619 position in the statusbar
620
621 2002-04-26 Frank Koormann <[email protected]>
622
623 * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
624
625 2002-04-24 Frank Koormann <[email protected]>
626
627 * Resources/Bitmaps/identify.xpm: shadow added
628
629 * Resources/Bitmaps/fullextent.xpm: new
630
631 2002-04-22 Jan-Oliver Wagner <[email protected]>
632
633 * Thuban/UI/tree.py (update_tree): added test for None on map bounding box
634
635 2002-04-21 Jan-Oliver Wagner <[email protected]>
636
637 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
638
639 * Thuban/UI/tree.py (update_tree): added added map extent
640
641 * Thuban/UI/mainwindow.py (_method_command): extended by parameter
642 icon; added map_full_extend as tool
643
644 2002-04-19 Jan-Oliver Wagner <[email protected]>
645
646 * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
647 saving _new_ sessions
648
649 * Thuban/Model/session.py (create_empty_session): new session
650 don't have a filename (set to None)
651
652 * Thuban/UI/tree.py (update_tree): added filename and modified flag
653
654 * Thuban/Model/load.py (ProcessSession): convert projection
655 parameters from unicode to regular string
656
657 * Data/iceland_sample.session: Added UTM Zone 26 projection.
658
659 2002-04-11 Bernhard Herzog <[email protected]>
660
661 * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
662 extensions/shapelib/dbfopen.c: Update to the versions of shapelib
663 1.2.9
664
665 * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
666 the pyshapelib directoy into the list of include dirs, so that
667 pyshapelib_api.h can be found.
668
669 * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
670 holds the pyshapelib C-API
671 (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
672 pyshapelib_api to access the shapelib functions.
673 (initwxproj): Import the c_api from the shapelib module and
674 initialize pyshapelib_api.
675
676 2002-04-04 Bernhard Herzog <[email protected]>
677
678 * setup.py (thuban_bdist_rpm.initialize_options): Use
679 initialize_options to create the scripts for the rpm.
680
681 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
682
683 2002-04-03 Bernhard Herzog <[email protected]>
684
685 * setup.py: Increment version to 0.1.1
686
687 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
688 Layer" and "Remove Layer" commands from the layer menu to the map
689 menu
690
691 2002-02-15 Bernhard Herzog <[email protected]>
692
693 * Thuban/Model/layer.py (Layer.Shape): list append only takes one
694 argument (python <= 1.5.2 erroneously accepted multiuple
695 arguments)
696
697 2002-02-04 Bernhard Herzog <[email protected]>
698
699 * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
700 RecordGrid in the identifyview.
701 (IdentifyView.__init__): Use IdentifyGridCtrl instead of
702 IdentifyListCtrl. The grid allows editing of the values.
703
704 * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
705 implementing a grid for a single row of a thuban table.
706
707 * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
708 layers by default. Easier to use than the previous default of only
709 searching through the select layer which meant that if no layer
710 was selected, you couldn't select a shape.
711
712 * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
713
714 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
715 stroke_width attribute
716
717 * Thuban/Model/save.py (save_session): Write the new stroke_width
718 attribute
719
720 * Thuban/Model/load.py (ProcessSession.startElement): Read the
721 stroke_width attribute
722
723 * Thuban/Model/layer.py (Layer.__init__): New parameter and
724 instance variable stroke_width
725 (Layer.SetStrokeWidth): Set the stroke_width.
726
727 2002-02-01 Bernhard Herzog <[email protected]>
728
729 * extensions/thuban/wxproj.cpp (project_points): Fix two
730 off-by-one errors in the last loop that joins the various parts
731 together.
732
733 2002-01-14 Bernhard Herzog <[email protected]>
734
735 * setup.py (data_dist.make_distribution): Fix some typos
736
737 2001-09-18 Bernhard Herzog <[email protected]>
738
739 * README: Slight tweaking in preparation for the 0.1 release
740
741 * setup.cfg: Add section for sdist to create both tgz and zip
742 archives
743
744 * setup.py: increase version number to 0.1
745 (data_dist): New command class for data distribution
746
747
748 2001-09-14 Bernhard Herzog <[email protected]>
749
750 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
751 Handle the case of no layer (i.e. layer is None) properly.
752
753 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
754 Set the initial selection of the combo boxes to reflect the
755 projection we're starting with in a way that works on windows,
756 too.
757
758 * Thuban/Lib/connector.py (Connector.print_connections): Print the
759 puiblisher's ids in hex to make it easier to compare them to the
760 standard repr of python methods
761
762 * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
763 messages
764
765 2001-09-13 Bernhard Herzog <[email protected]>
766
767 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
768 deselect the layer if no layer is selected
769
770 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
771 idle time when there actually is something to draw. If there's
772 nothing to draw simply clear the window
773 (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
774 (MapCanvas.SetMap): force a redraw in all cases because
775 FitMapToWindow doesn't always do it.
776 (MapCanvas.ZoomFactor): Add an optional parameter, center, to
777 specify the point to move into the center of the window
778 (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
779 dragged, zoon in/out by a factor of 2
780 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
781 index, i.e. reversed drawing order) so that objects appearing to
782 be in from of others are selected first. This is probably mostly
783 relevant for point shapes where the symbols used may overlap
784
785 * Thuban/Model/session.py (create_empty_session): Unset the
786 modified bit before returning it
787
788 * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
789 create_empty_session session to create the new, empty session.
790
791 * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
792 the tool bitmaps.
793 (MainWindow.OnClose, MainWindow.save_modified_session): Separate
794 the code that asks whether the session should be saved into the
795 new method save_modified_session.
796 (MainWindow.OpenSession, MainWindow.NewSession): Use the new
797 method to save modified session here too.
798
799 2001-09-11 Bernhard Herzog <[email protected]>
800
801 * setup.py (InnoIconItem): fix typo
802
803 (thuban_bdist_inno.run):
804 (bdist_inno.run): Move the decision not to create symlinks on
805 non-nt platforms to thuban_bdist_inno and do it unconditinally
806 since we never want to create the symlinks here
807
808 2001-09-10 Bernhard Herzog <[email protected]>
809
810 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
811 identify view immediately
812
813 * Thuban/UI/controls.py: New file with two classes RecordListCtrl
814 and SelectableRecordListCtrl that implement the code shared by the
815 identify view and the label dialog
816
817 * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
818 new class RecordListCtrl
819
820 * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
821 return value of GetValue is None instead of using it as a boolean
822 directly so that Zero numbers are handled properly.
823 (LabelListCtrl): Derive from the new class
824 SelectableRecordListCtrl
825
826 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
827 (Proj4Dialog.dialogLayout): Make the window resizable and set the
828 size of the text control explicitly to make the sizers work on
829 both Windows and X.
830
831 2001-09-07 Bernhard Herzog <[email protected]>
832
833 * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
834 that can limit the search to the currently selected layer.
835 (MapCanvas.SelectShapeAt): Make sure that the currently selected
836 layer stays selected even when no shape is found
837 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
838 height do nothing (avoids zero division errors)
839
840 2001-09-06 Bernhard Herzog <[email protected]>
841
842 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
843 Correct the spelling of SessionTreeCtrl. dabbrev is too damn
844 convenient :-)
845 (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
846 a new instvar layer_to_item to map layers to tree items
847 (SessionTreeCtrl.layer_selected): Select the appropriate tree item
848 to match the current selection in the interactor
849
850 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
851 (Interactor.HasSelectedLayer): New methods to query the current
852 selection
853
854 * Thuban/UI/mainwindow.py (MainWindow.current_layer):
855 (MainWindow.has_selected_layer): Simply call the appropriate
856 interactor method
857
858 * Thuban/UI/mainwindow.py (MainWindow.__init__):
859 (MainWindow.LayerShowTable):
860 (MainWindow.identify_view_on_demand): Store the interactor in an
861 instvar and use that reference instead of going through main.app
862
863 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
864 * Thuban/UI/application.py (ThubanApplication.OnInit):
865 * Thuban/UI/main.py (main): Create the session tree view in main
866 with the new mainwindow method ShowSessionTree and not directly
867 the application's OnInit method
868
869 * Thuban/UI/tree.py (myTreeCtrlPanel):
870 (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
871 TreeCtrl isntead of a panel. This affects most method since we now
872 refer to self instead of self.tree
873 (SessionTreeView): New class implementing a non-modal dialog
874 showing the session tree.
875
876 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
877 layer to the tableview dialog.
878
879 * Thuban/UI/tableview.py: Add some doc-strings
880 (TableGrid):
881 (TableGrid.OnRangeSelect):
882 (TableGrid.OnSelectCell):
883 (TableFrame.__init__):
884 (TableFrame.row_selected):
885 Selecting rows in the grid view now updates the selected shapes
886 through the TableFrame. To achieve this we derive TableGrid from
887 Publisher and introduce the message type ROW_SELECTED which the
888 TableFrame subscribes to and which is issued by OnRangeSelect and
889 OnSelectCell
890
891 (DataTable.SelectRow): Removed because it's no longer needed in
892 the row/shape selection scheme
893
894 * Thuban/UI/dialogs.py: New file implementing common classes for
895 dialogs
896
897 * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
898 the SELECTED_SHAPE message anymore. This is now handled by the
899 parent.
900 (TableGrid.select_shape): Only update the selection if the shape
901 is not None.
902 (TableFrame): Inherit from the new NonModalDialog class.
903 (TableFrame.__init__, TableFrame.select_shape): Handle the
904 SELECT_SHAPE message.
905 (TableFrame.OnClose): Extend the inherited method to unsubscribe
906 SELECT_SHAPE
907
908 * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
909 (MainWindow.add_dialog):
910 (MainWindow.dialog_open):
911 (MainWindow.remove_dialog):
912 (MainWindow.get_open_dialog): New methods to maintain a dictionary
913 of opened non-modal dialogs.
914
915 (MainWindow.__init__): Initialize the new non-modal dictionary
916 management code
917 (MainWindow.LayerShowTable): maintain separate dialogs for each
918 table using the non-modal dialog management code to only open a
919 view once for each table.
920
921 (MainWindow.IdentifyTool):
922 (MainWindow.__init__):
923 (MainWindow.identify_view_on_demand): Don't open the identify view
924 in IdentifyTool anymore. This will be done automatically by the
925 new method identify_view_on_demand which handles the
926 SELECTED_SHAPE message so that the identify view will be opened on
927 demand
928
929 * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
930 the interactor argument. The SELECTED_SHAPE message is now handled
931 by the parent.
932 (IdentifyView.__init__): Add the interactor argument so that we
933 can handle the SELECTED_SHAPE message here
934 (IdentifyView.selected_shape): New method to handle the
935 SELECTED_SHAPE messages
936
937 * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
938 NonModalDialog class
939 (IdentifyView.OnClose): Extend the inherited version to
940 unsubscribe SELECT_SHAPE
941
942 * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
943
944 2001-09-05 Bernhard Herzog <[email protected]>
945
946 * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
947
948 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
949 interactor to pass through to the MapCanvas
950
951 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
952 argument to the MainWindow constructor to get rid of the ugly hack
953 that made main.app available early just so that the mapcanvas
954 could access the interactor object.
955
956 2001-09-04 Bernhard Herzog <[email protected]>
957
958 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
959 that runs a modal message box
960 (MainWindow.OnClose): Use the new method
961 (MainWindow.RemoveLayer): Just do nothing in case no layer is
962 selected. The command should be grayed out anyway, so there's no
963 need to pop up a message box.
964 (MainWindow.AddLayer): Pop up a message box with an error message
965 if the shape file can't be opened
966
967 * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
968 immediately. This will cause an exception in case the file can't
969 be opened and we can display an appropriate message.
970
971 * MANIFEST.in: Add extensions/pyprojection/LICENSE
972
973 * setup.py (thuban_bdist_rpm): New class implementing a Thuban
974 specific bdist_rpm command.
975
976 * Thuban/UI/main.py: Catch ImportError exceptions when importing
977 the locale module because it may not be available on some
978 installations.
979
980 * extensions/pyprojection/LICENSE: Copy of the license text in
981 Projection.i. Having it in a separate file makes it easier to
982 refer to license text in e.g. RPMs
983
984 2001-09-03 Bernhard Herzog <[email protected]>
985
986 * setup.py: use wx-config instead of wxgtk-config because it's
987 more generic
988
989 * setup.py (ThubanInstall.get_outputs): Add the symlink in
990 <prefix>/bin to the outputs
991 (ThubanInstall.link_file): New method to link files. We need this
992 because the standard copy_files refuses to link non-existing
993 files.
994 (ThubanInstall.run): Remove the leading install root from the
995 script filename if an install root was specified and use the new
996 link_file method
997
998 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
999 the window when the first layer is added to the map.
1000
1001 * setup.py (ThubanInstall.run): Honor the build root (self.root)
1002 when linking thuban.py to <prefix>/bin
1003
1004 2001-08-31 Bernhard Herzog <[email protected]>
1005
1006 * setup.py: In the setup call, the install parameters shouldn't
1007 have trailing slashes because distutils on non-posix platforms
1008 doesn't like that. The same applies to other directories like
1009 "Resources/Bitmaps"
1010
1011 In the configuration section for nt, move the wxWindows directory
1012 optins into the part clearly marked as editable.
1013
1014 (InstallLocal.initialize_options):
1015 (InstallLocal.user_options): remove the currently unused debug
1016 flag
1017 (thuban_build_py.find_all_modules): Add this method so that it
1018 works for our case of having packages and modules in one
1019 distribution as well.
1020 (ThubanInstall.initialize_options):
1021 (ThubanInstall.finalize_options):
1022 (ThubanInstall.user_options):
1023 (ThubanInstall.boolean_options): Add new options, do-symlink and
1024 extra files. Since these are the first ThubanInstall specific
1025 options, override user_options and boolean_options
1026 (ThubanInstall.run): Honor the new do-symlink and extra-files
1027 options.
1028 (ThubanInstall.get_outputs): Add to override the base-class's
1029 version and add the extra-files to the outputs
1030 (bdist_inno): New class for windows distributions with Inno Setup
1031 (InnoIconItem): Helper class for bdist_inno
1032 (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
1033 this together with the appropriate parameters, to the setup call.
1034
1035 * setup.cfg (bdist_inno): added new section for the inno setup
1036 installer
1037
1038 * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
1039 changing_selection to avoid recursive selection events when
1040 modifying the selection in response to a selection event.
1041 (myTreeCtrlPanel.normalize_selection): Set the new inst var when
1042 changing the tree's selection.
1043 (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
1044 we're not being called indirectly from normalize_selection.
1045
1046 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
1047 event.Check only if the command is actuall checkable.
1048 (MainWindow.__init__): Call the toolbar's Realize method to make
1049 sure that the items are actually shown
1050
1051 2001-08-28 Bernhard Herzog <[email protected]>
1052
1053 * setup.py: Fix some doc strings
1054
1055 * ChangeLog: started
1056

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26