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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688 - (show annotations)
Wed Apr 16 13:46:48 2003 UTC (21 years, 11 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 94695 byte(s)
updated ChangeLog

1 2003-04-16 Jonathan Coles <[email protected]>
2
3 * Thuban/Model/classification.py: Use repr() around values
4 in the ClassGroup*.__repr__() methods so it is clearer when
5 a value is a string and when it is a number.
6
7 * test/test_load.py: Rework the classification test to test
8 that we can load old files.
9 (testLabels): Test a file where the groups have labels.
10
11 2003-04-16 Bernhard Herzog <[email protected]>
12
13 Safer implementation of the performance enhancements of the
14 low-level renderer:
15
16 * extensions/thuban/wxproj.cpp (extract_projection)
17 (extract_pointer): Rename extract_projection to extract_pointer
18 and redefine its purpose to return the pointer stored in a CObject
19 returned by the object's cobject method. Update all callers.
20 (s_draw_info, free_draw_info, draw_polygon_init): Implement the
21 handling of these low-level parameters so that each s_draw_info
22 instance is handled as a CObject at python level that also
23 contains real references to the actual python objects which
24 contain the values in the struct. Add free_draw_info as the
25 destructor.
26 (draw_polygon_shape): Add the py_draw_info parameter which must a
27 cobject containing an s_draw_info pointer.
28
29 * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
30 method to instantiat the low-level render parameter
31 (MapRenderer.draw_shape_layer): Use the new method. Remove some
32 commented out code.
33 (MapRenderer.draw_polygon_shape): Make the first parameter not the
34 layer but the low-level render parameter
35 (ScreenRenderer.draw_shape_layer): Use the low-level render
36 parameter.
37
38 2003-04-15 Jonathan Coles <[email protected]>
39
40 * Thuban/Model/classification.py: Implemented __repr__ for
41 the ClassGroup* classes to make debugging a bit easier.
42 (ClassGroup.SetLabel): Check that the string is an instance
43 of StringTypes not StringType. Accounts for Unicode strings.
44
45 * Thuban/Model/color.py: Implemented __repr__ to make
46 debugging a bit easier.
47
48 * Thuban/Model/save.py (Saver.write_classification): Need to
49 save the group label.
50
51 * test/test_load.py (testClassification): New. Loads the
52 iceland_sample_test.thuban file and checks if it was loaded
53 correctly.
54
55 2003-04-15 Jonathan Coles <[email protected]>
56
57 * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
58 to improve rendering performance by initializing the variables
59 that are not change each time draw_polygon_shape() is called.
60 The values are stored in a global struct draw_info.
61 (draw_polygon_shape): Removed initialization code that is
62 now in draw_polygon_init().
63
64 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
65 drawing initialization call to draw_polygon_init()
66 (MapRenderer.draw_polygon_shape): Use new signature of
67 draw_polygon_shape.
68
69 * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
70 weirdness by setting the range to (1, maxint).
71
72 * Thuban/Model/classification.py (ClassGroupProperties): Make
73 instance variables private and optimize comparison operator
74 by first checking if the color references are the same.
75 (ClassGroupSingleton): Make instance variables private.
76 (ClassGroupRange): Make instance variables private.
77
78 * HOWTO-Release: Filled in missing steps for releasing packages.
79
80 2003-04-15 Bernhard Herzog <[email protected]>
81
82 First stab at internationalized messages:
83
84 * Thuban/__init__.py (_): Implement the translation function for
85 real using the python gettext module.
86
87 * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
88 translate empty strings.
89
90 * Thuban/UI/application.py (ThubanApplication.read_startup_files):
91 Add a missing space to a warning message
92
93 * po/README: New. Notes about the management of the translation
94 files.
95
96 * po/Makefile: New. Makefile to help manage the translation files.
97
98 * po/es.po: New. Spanish translation by Daniel Calvelo Aros
99
100 * MANIFEST.in: Include the *.mo files in Resources/Locale and the
101 translations and support files in po/
102
103 * setup.py (data_files): Add the *.mo files to the data_files too
104
105 * README: Add note about the translations when building from CVS
106
107 2003-04-14 Jonathan Coles <[email protected]>
108
109 * Thuban/UI/dock.py: Fixes some window resizing problems most
110 noticable under windows. Always assume the button bitmaps will
111 be there. Code clean up.
112 (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
113 images for the dock/undock button to the same images.
114 Work around for RTbug #1801.
115
116 * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
117 be allowed to grow within the sizer. Fixes a bug under Windows
118 where the toolbar wasn't being drawn.
119
120 2003-04-14 Frank Koormann <[email protected]>
121
122 * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
123 Updated design to try to make the button functionality more
124 transparent.
125
126 2003-04-14 Jonathan Coles <[email protected]>
127
128 * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
129 finalize the intialization of the panel.
130
131 * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
132 creation of the panel. Should be the last thing called in the
133 initializer of a subclass.
134
135 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
136 set the current selections in the combo boxes. This is needed
137 under Windows.
138
139 * Thuban/UI/classifier.py (Classifier.__init__): Add a top
140 level panel to the dialog so that the background colors are
141 consistent under Windows.
142
143 2003-04-11 Jonathan Coles <[email protected]>
144
145 * Thuban/UI/classgen.py: Change color ramps to start at white
146 not black.
147
148 * Thuban/UI/legend.py: Enable/disable the legend buttons when
149 the legend changes. Fixes RTbug #1793.
150
151 * test/test_classification.py: Added test for copying of
152 classifications.
153
154 2003-04-11 Jonathan Coles <[email protected]>
155
156 * Thuban/UI/resource.py: New. Centralize the loading of resources
157 such as bitmaps.
158
159 * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
160 added images to the move buttons, added 'reverse' button.
161 (CustomRampPanel.__init__): Added images to the move buttons.
162 (GreyRamp): New. Generates a ramp from white to black.
163 (HotToColdRamp): New. Generates a ramp from cold to hot colors.
164
165 * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
166 ID_PROPERTY_*.
167 (Classifier.__init__): Minor changes to the layout.
168 (Classifier._OnTitleChanged): Listen for when the user edits the
169 title and update the dialog's title and the layer's title.
170
171 * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
172
173 * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
174 (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
175 if the layer's title changes.
176
177 * Thuban/UI/mainwindow.py: Added new menu item and associated code
178 to open a dialog to rename the map.
179 (MainWindow): Use new resource class to import bitmaps.
180
181 2003-04-11 Jonathan Coles <[email protected]>
182
183 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
184 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
185 Resources/Bitmaps/group_use_none.xpm,
186 Resources/Bitmaps/group_use_not.xpm,
187 Resources/Bitmaps/hide_layer.xpm,
188 Resources/Bitmaps/layer_properties.xpm,
189 Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
190 Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
191 New.
192
193 2003-04-10 Jonathan Coles <[email protected]>
194
195 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
196 Should pass group to ClassGroup constructor.
197
198 2003-04-10 Jonathan Coles <[email protected]>
199
200 * Thuban/Model/classification.py: (ClassGroup): Move all the common
201 methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
202 here. Implement SetVisible(), IsVisible().
203 (ClassGroup.__init__): Add group parameter which acts as a copy
204 constructor.
205
206 * Thuban/UI/classifier.py (ClassTable): Add a new column for the
207 "Visible" check boxes.
208 (Classifier): Rename the buttons and refactor the code to match
209 the new labels.
210
211 * Thuban/UI/legend.py: Classify button is now called "Properties".
212 Refactored the code to change variable names.
213 (LegendTree.__FillTreeLayer): Only list a group if it is visible.
214
215 * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
216 MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
217 renamed to MainWindow.LayerEditProperties.
218 (MainWindow.ToggleLegend): Don't include map name in legend title.
219 (MainWindow.SetMap): Added the map name to the window title.
220 (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
221 MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
222 Functionality is found in the layer properties dialog.
223
224 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
225 draw visible groups.
226
227 2003-04-09 Jonathan Coles <[email protected]>
228
229 * Thuban/UI/classgen.py: Modifications to allow simple
230 addition and selection of new color schemes.
231 (MonochromaticRamp): New. Generates a ramp between two colors.
232 (RedRamp): New. Generates a ramp of all red.
233 (GreenRamp): New. Generates a ramp of all green.
234 (BlueRamp): New. Generates a ramp of all blue.
235
236 2003-04-09 Jonathan Coles <[email protected]>
237
238 * Thuban/Model/classification.py (Classification.__deepcopy__):
239 Need to copy over field and fieldType attributes.
240
241 * Thuban/Model/table.py (Table.field_range): New. Retrive the
242 maximum and minimum values over the entire table for a given
243 field.
244 (Table.GetUniqueValues): New. Retrieve all the unique values
245 in the table for a given field.
246
247 * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
248 (GenUniquePanel): New. Controls to allow the user to select
249 which unique field values they would like in the classification.
250 (CustomRampPanel): Code that was in ClassGenDialog that allows
251 the user to select the properties for a custom ramp.
252 (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
253
254 * Thuban/UI/classifier.py: Removed a lot of debugging code.
255 (Classifier._SetClassification): Callback method so that the
256 class generator can set the classification in the grid.
257 (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
258 editing of a group properties class into a wxWindows control.
259
260 * Thuban/UI/dock.py: It was decided that if the user closes
261 a dockable window the window should simply hide itself. That
262 way if the user wants to show the dock again it appears in the
263 same place as it was when it was closed.
264 (DockableWindow.Destroy): Call renamed method OnDockDestroy().
265 (DockableWindow._OnButtonClose): Hide the window instead of
266 destroying it.
267 (DockableWindow._OnClose): Hide the window instead of
268 destroying it.
269
270 * Thuban/UI/legend.py (LegendTree): Use a private method to
271 consistently set the font and style of the text. Fixes RTbug #1786.
272
273 * Thuban/UI/mainwindow.py: Import just the Classifier class.
274
275 2003-04-07 Bernhard Herzog <[email protected]>
276
277 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
278 to the map module
279
280 2003-04-07 Bernhard Herzog <[email protected]>
281
282 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
283 favor of ToggleSessionTree
284 (MainWindow.ToggleSessionTree): New method to toggle visibility of
285 the session tree.
286 (MainWindow.SessionTreeShown): New method to return whether the
287 session tree is currently shown.
288 (MainWindow.ToggleLegend): New method to toggle visibility of the
289 legend
290 (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
291 LegendShown
292 (MainWindow.LegendShown): New method to return whether the legend
293 is currently shown.
294 (_method_command): Add checked parameter so we can define check
295 menu items
296 (_has_tree_window_shown, _has_legend_shown): Use the appropriate
297 mainwindow methods.
298 (show_session_tree, show_legend commands): Removed.
299 (toggle_session_tree, toggle_legend commands): New commands to
300 toggle the visibility of the dialogs
301
302 2003-04-07 Jonathan Coles <[email protected]>
303
304 * Thuban/UI/classgen.py: Fix Windows problem.
305
306 * Thuban/UI/dock.py: Fix Windows problem.
307
308 * Thuban/UI/mainwindow.py: Use False instead of false.
309 (MainWindow.ShowLegend): Remove unnecessary switch parameter.
310
311 2003-04-07 Jonathan Coles <[email protected]>
312
313 Since we now say that the order of the groups in a classification
314 matters, it makes sense to be able to manipulate that order. Most
315 of the changes to Thuban/Model/classification.py are to that end.
316
317 * Thuban/Model/classification.py (Classification.AppendGroup,
318 Classification.InsertGroup, Classification.ReplaceGroup,
319 Classification.RemoveGroup, Classification.GetGroup): Do as the
320 names imply.
321 (Classification.FindGroup): This was called GetGroup, but GetGroup
322 takes an index, while FindGroup takes a value.
323 (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
324 REFERENCE. Currently there is a cyclic reference between the layer
325 and its classification. If the classification doesn't need to know
326 its owning layer we can change this, since it may make sense to be
327 able to use the same classification with different layers.
328
329 * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
330
331 * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
332 not AddGroup()
333
334 * Thuban/UI/classifier.py: Now that we can depend on the order in
335 a Classification and have methods to manipulate that order we don't
336 need to use our own data structures in the grid. We can simply make
337 the grid/table access the information they need from a copy of
338 the classification object.
339 (Classifier._OnCloseBtn): Event handler for when the user clicks
340 'Close'. This is needed so if the user applies changes and then
341 continues to change the table the user has the option of discarding
342 the most recent changes and keeping what they applied.
343
344 * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
345 into the same group.
346
347 * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
348 with a really old version of proj, PJ_VERSION won't even be defined.
349 If it isn't defined then just compile so that the function always
350 returns Py_False.
351
352 * test/test_classification.py: Fix tests to use the renamed methods.
353 Still need to write tests for the new methods.
354
355 2003-04-04 Jonathan Coles <[email protected]>
356
357 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
358 call to SetSelection out of the method and before the call
359 to __SelectField in __init__. This prevents a recursion of events
360 when _OnFieldSelect is triggered by the user.
361
362 2003-04-04 Jonathan Coles <[email protected]>
363
364 * Thuban/Model/classification.py: Rename Color.None to
365 Color.Transparent.
366 (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
367 Don't bother copying the color, since Colors are immutable.
368
369 * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
370 Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
371 Thuban/UI/renderer.py, Thuban/UI/view.py:
372 Rename Color.None to Color.Transparent.
373
374 * test/test_classification.py, test/test_load.py: Rename Color.None
375 to Color.Transparent.
376
377 2003-04-04 Jonathan Coles <[email protected]>
378
379 * Thuban/Model/classification.py: Fix assert calls.
380 (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
381 Copy the color parameter rather than hold onto a reference.
382
383 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
384 the color object.
385 (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
386 are sure there exists only one refernce to Color.None in the system.
387 This allows us to use 'is' rather than the comparision functions.
388
389 * Thuban/Model/save.py: Fix assert calls.
390
391 * Thuban/UI/classifier.py: Fix assert calls.
392 (ClassGrid._OnCellDClick): Call up to the classifier to open the
393 dialog to edit the groups properties.
394 (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
395 correctly if a cell is resized.
396 (ClassTable.SetClassification): New. Changes the classification
397 that is in the table.
398 (ClassTable.__SetRow): Allow groups to be prepended.
399 (Classifier): New code for opening the EditProperties and
400 GenerateRanges dialogs.
401 (SelectPropertiesDialog.__GetColor): Only set the color in the
402 color dialog if the current color is not None.
403
404 * Thuban/UI/dock.py: Fix assert calls.
405
406 * Thuban/UI/legend.py: Fix assert calls.
407
408 * Thuban/UI/renderer.py: Fix assert calls.
409
410 * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
411 classifications.
412 (GenRangePanel): Panel specific to range generation.
413 (GenSingletonPanel): Panel specific to singleton generation.
414 (ClassGenerator): Class responsible for actually generating
415 the classification from the data gathered in the dialog box.
416 (PropertyRamp): Generates properties whose values range from
417 a starting property to an ending property.
418
419 2003-04-03 Bernhard Herzog <[email protected]>
420
421 * test/support.py (print_garbage_information): New function that
422 prints information about still connected messages and memory
423 leaks.
424 (run_suite): Removed.
425 (run_tests): New function for use as a replacement of
426 unittest.main in the test_* files. This one calls
427 print_garbage_information at the end.
428
429 * test/runtests.py (main): Use support.print_garbage_information
430
431 * test/test_layer.py: Use support.run_tests instead of
432 unittest.main so we get memory leak information
433 (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
434 (TestLayer.test_point_layer, TestLayer.test_empty_layer)
435 (TestLayerLegend.test_visibility): Call the layer's Destroy method
436 to fix a memory leak.
437
438 * test/test_classification.py: Use support.run_tests instead of
439 unittest.main so we get memory leak information
440 (TestClassification.test_classification): Call the layer's Destroy
441 method to fix a memory leak.
442
443 2003-04-02 Bernhard Herzog <[email protected]>
444
445 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
446 Handle the reference counts of the return value and errors in
447 PyArg_ParseTuple correctly.
448
449 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
450 sure the filename is absolute to avoid problems when saving the
451 session again
452
453 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
454
455 2003-04-01 Jonathan Coles <[email protected]>
456
457 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
458 that there actually are points in the returned list of points
459 before trying to index into the list. The list may be empty if
460 the shape is a Null Shape.
461
462 2003-04-01 Bernhard Herzog <[email protected]>
463
464 * test/test_map.py: Don't use from <module> import *
465
466 2003-04-01 Jonathan Coles <[email protected]>
467
468 * Thuban/Model/session.py: Use LAYER_CHANGED instead of
469 LAYER_LEGEND_CHANGED
470
471 * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
472 self.Destroy() to close the window after yesterday's changes.
473
474 * test/test_map.py, test/test_session.py: Fix messages that
475 are sent from maps and layers.
476
477 2003-03-31 Jonathan Coles <[email protected]>
478
479 * Thuban/UI/classifier.py: Commented out some debugging statements.
480 (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
481 RTbug #1769.
482
483 * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
484 position (although position doesn't work yet under GTK).
485 (DockableWindow.Destroy): New. Called when the window must be
486 closed. Namely needed when the DockFrame closes and must close
487 its children.
488 (DockFrame): Listen for EVT_CLOSE and destroy all children.
489
490 * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
491 when then window is told to close.
492 (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
493 comment in source for more info.
494
495 * Thuban/UI/main.py: Show the legend by default when Thuban starts.
496
497 * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
498 symmetry with other such methods.
499 (MainWindow.ShowLegend): Show the legend docked by default.
500
501 2003-03-28 Jonathan Coles <[email protected]>
502
503 * Thuban/UI/classifier.py: Support for highlighting a specific
504 group within the grid when the classification dialog is opened.
505 Also contains a lot of debugging printouts which will later
506 be removed.
507
508 * Thuban/UI/dock.py: Complete rework on the dock code so that
509 that it is fairly removed from the rest of the Thuban application.
510 It is easy to add new docks which the rest of the program having
511 to be aware of them.
512
513 * Thuban/UI/legend.py: Modifications to support selecting a
514 specific group in the classification dialog. Changed how layers
515 are drawn when the layer is visible/invisible.
516
517 * Thuban/UI/mainwindow.py: Removed legend specific code and
518 replaced it with calls to the new dock code.
519
520 * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
521 to check if scale > 0. Trying to track down a divide by zero.
522
523 2003-03-26 Jonathan Coles <[email protected]>
524
525 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
526 (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
527 now part of DockableWindow.
528 (LegendPanel.DoOnSelChanged): Select the current layer in the
529 map.
530 (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
531 with the selected layer and/or group.
532
533 2003-03-26 Jonathan Coles <[email protected]>
534
535 This putback contains the code for dockable windows. There is
536 no support in wxWindows as of this date for windows that can
537 attach themselves to other windows.
538
539 The current model contains a DockableWindow which has a parent
540 window for when it is detached and a dock window that it puts
541 its contents in when it is docked. The contents of a DockableWindow
542 must be a DockPanel. DockPanel itself derives from wxPanel.
543
544 * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
545 message, not a LAYER_LEGEND_CHANGED message.
546
547 * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
548
549 * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
550 as one of the style properties for the fieldTypeText item to
551 be sure that its size is correct when the text changes.
552
553 * Thuban/UI/dock.py: New. Classes for the DockPanel and
554 DockableWindow.
555
556 * Thuban/UI/legend.py: Added some more buttons and made the
557 LegendPanel a DockPanel.
558
559 * Thuban/UI/mainwindow.py: Added sash windows to the main window
560 and supporting functions for manipulating the sashes.
561 (MainWindow.ShowLegend): Create a DockableWindow with the
562 LegendPanel as the contents.
563
564 * Thuban/UI/messages.py: Added DOCKABLE_* messages
565
566 * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
567 not LAYER_LEGEND_CHANGED, messages.
568
569 2003-03-25 Jonathan Coles <[email protected]>
570
571 * setup.py: Added custom script bdist_rpm_build_script so that
572 when the rpm is built the path to wx-config is correct.
573
574 * setup.cfg: Added line saying to use the custom build script
575
576 2003-03-20 Jonathan Coles <[email protected]>
577
578 Initial implementation of the Legend.
579
580 * Thuban/UI/legend.py: New. Creates a window that shows the map's
581 Legend information and allows the user to add/modify classifications
582 and how the layers are drawn on the map.
583
584 * setup.py: New command 'build_docs' which currently uses
585 happydoc to generate html documentation for Thuban.
586
587 * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
588 Returns a string which is appropriately describes the group.
589
590 * Thuban/Model/layer.py (Layer.SetClassification): Generate a
591 LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
592
593 * Thuban/Model/map.py (Map): Rename messages and use new, more
594 specific, messages.
595
596 * Thuban/Model/messages.py: New message to indicate that a layer's
597 data has changed (LAYER_CHANGED). New map messages to indicate
598 when layers have been added/removed/changed or if the stacking order
599 of the layers has changed.
600
601 * Thuban/Model/session.py: Rename and use new messages.
602
603 * Thuban/UI/classifier.py: Remember if any changes have actually
604 been applied so that if the dialog is cancelled without an application
605 of changes we don't have to set a new classification.
606 (ClassDataPreviewer): Pulled out the window specific code and put it
607 ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
608 symbols on any DC.
609
610 * Thuban/UI/mainwindow.py: New code to open the legend.
611
612 * Thuban/UI/view.py: Use new message names.
613
614 2003-03-19 Jonathan Coles <[email protected]>
615
616 * Thuban/UI/main.py (verify_versions): New. Checks the versions
617 of Python, wxPython, and some other libraries.
618
619 * extensions/thuban/wxproj.cpp (check_version): Checks the given
620 version against what wxproj was compiled with.
621 (check_version_gtk): If wxproj was compiled with gtk then check
622 the given version against the version of the gtk library
623 currently being used.
624
625 2003-03-14 Bernhard Herzog <[email protected]>
626
627 * test/test_command.py: Run the tests when the module is run as a
628 script
629
630 2003-03-14 Bernhard Herzog <[email protected]>
631
632 Implement selection of multiple selected shapes in the same layer:
633
634 - Introduce a new class to hold the selection. This basically
635 replaces the interactor which was nothing more than the
636 selection anyway. A major difference is of course that the new
637 selection class supports multiple selected shapes in one layer
638
639 - Move the object that represents the selection from the
640 application to the canvas. The canvas is a better place than the
641 application because the selection represents which shapes and
642 layer of the map displayed by the canvas are selected and
643 affects how the map is drawn.
644
645 - Make the selection and its messages publicly available through
646 the mainwindow.
647
648 - The non-modal dialogs do not get a reference to the interactor
649 anymore as they can simply refer to their parent, the
650 mainwindow, for the what the interactor had to offer.
651
652 * Thuban/UI/selection.py: New module with a class to represent the
653 selection.
654
655 * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
656 these unused messages
657
658 * Thuban/UI/application.py (ThubanApplication.OnInit)
659 (ThubanApplication.OnExit, ThubanApplication.SetSession): The
660 interactor is gone now.
661 (ThubanApplication.CreateMainWindow): There is no interactor
662 anymore so we pass None as the interactor argument for now for
663 compatibility.
664
665 * Thuban/UI/view.py (MapCanvas.delegated_messages)
666 (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
667 Unsubscribe, delegate messages according to the delegated_messages
668 class variable.
669 (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
670 attributes from instance variables as described with the
671 delegated_methods class variable.
672 (MapCanvas.__init__): New instance variable selection holding the
673 current selection
674 (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
675 pass them on to the renderer
676 (MapCanvas.SetMap): Clear the selection when a different map is
677 selected.
678 (MapCanvas.shape_selected): Simple force a complete redraw. The
679 selection class now takes care of only issueing SHAPES_SELECTED
680 messages when the set of selected shapes actually does change.
681 (MapCanvas.SelectShapeAt): The selection is now managed in
682 self.selection
683
684 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
685 (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
686 Unsubscribe, delegate messages according to the delegated_messages
687 class variable.
688 (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
689 attributes from instance variables as described with the
690 delegated_methods class variable.
691 (MainWindow.__init__): The interactor as ivar is gone. The
692 parameter is still there for compatibility. The selection messages
693 now come from the canvas.
694 (MainWindow.current_layer, MainWindow.has_selected_layer):
695 Delegate to the the canvas.
696 (MainWindow.LayerShowTable, MainWindow.Classify)
697 (MainWindow.identify_view_on_demand): The dialogs don't need the
698 interactor parameter anymore.
699
700 * Thuban/UI/tableview.py (TableFrame.__init__)
701 (LayerTableFrame.__init__, LayerTableFrame.OnClose)
702 (LayerTableFrame.row_selected): The interactor is gone. It's job
703 from the dialog's point of view is now done by the mainwindow,
704 i.e. the parent. Subscribe to SHAPES_SELECTED instead
705 of SELECTED_SHAPE
706
707 * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
708 is gone. It's job from the dialog's point of view is now done by
709 the mainwindow, i.e. the parent.
710
711 * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
712 gone. It's job from the dialog's point of view is now done by the
713 mainwindow, i.e. the parent.
714
715 * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
716 gone. It's job from the dialog's point of view is now done by the
717 mainwindow, i.e. the parent.
718 (SessionTreeCtrl.__init__): New parameter mainwindow which is
719 stored as self.mainwindow. The mainwindow is need so that the tree
720 can still subscribe to the selection messages.
721 (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
722 (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
723 selection is now accessible through the mainwindow. Subscribe to
724 SHAPES_SELECTED instead of SELECTED_SHAPE
725
726 * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
727 SHAPES_SELECTED message now.
728 (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
729 so deal with multiple shapes
730 (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
731 gone. It's job from the dialog's point of view is now done by the
732 mainwindow, i.e. the parent.
733
734 * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
735 parameter is now a list of shape ids.
736 (RecordTable.SetTable): The second parameter is now a list of
737 indices.
738
739 * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
740 selected_shape parameter and ivar to selected_shapes. It's now a
741 list of shape ids.
742 (MapRenderer.draw_label_layer): Deal with multiple selected
743 shapes. Rearrange the code a bit so that the setup and shape type
744 distinctions are only executed once.
745
746 * test/test_selection.py: Test cases for the selection class
747
748 2003-03-11 Jonathan Coles <[email protected]>
749
750 * Thuban/Model/load.py: Temporary fix so that the xml reader
751 doesn't cause Thuban to crash.
752
753 * Thuban/Model/layer.py: Handle the cyclic references between
754 a layer and its classification better, and be sure to disconnect
755 the classification from the layer when the layer is destroyed
756 so that we don't maintain a cyclic reference that may not be
757 garbage collected.
758
759 * Thuban/Model/classification.py: See comment for layer.py.
760
761 2003-03-12 Jan-Oliver Wagner <[email protected]>
762
763 * HOWTO-Release: New. Information on the steps for releasing
764 a new version of Thuban.
765
766 2003-03-11 Jonathan Coles <[email protected]>
767
768 * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
769 Use True instead of true.
770 (Classifier): Should have a single panel in which all the controls lie.
771
772 * Thuban/UI/proj4dialog.py: Add normal border.
773
774 * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
775
776 * Thuban/UI/mainwindow.py: Use True instead of true.
777
778 * setup.py: Update some definitions to use wxWindows2.4 files
779
780 * Data/iceland_sample_class.thuban: Fixed file so that the
781 field_type information is present.
782
783 2003-03-10 Jonathan Coles <[email protected]>
784
785 * Thuban/UI/classifier.py (Classifier.__init__): Make the
786 field type label grow so that when the text changes the
787 size is updated correctly. This may be a wxWindows bug.
788
789 2003-03-10 Jonathan Coles <[email protected]>
790
791 * Thuban/UI/application.py: Changed SESSION_CHANGED to
792 SESSION_REPLACED.
793
794 * Thuban/UI/classifier.py: Wrap text with _().
795 (ClassGrid.CreateTable): Set dimensions and size hints here,
796 instead of in Reset, so we only set the size once.
797
798 * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
799
800 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
801 Call Close() instead of Shutdown().
802
803 * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
804
805 * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
806 Go back to using OnClose() instead of Shutdown().
807
808 2003-03-10 Jonathan Coles <[email protected]>
809
810 * Thuban/UI/classifier.py (Classifier): SelectField() needed
811 to know the old field index as well as the new one.
812
813 2003-03-10 Jonathan Coles <[email protected]>
814
815 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
816 to correctly set the table information and call this from
817 __init__ and from _OnFieldSelect so that all the information
818 is up to date when the dialog opens and when a field is changed.
819
820 2003-03-10 Jonathan Coles <[email protected]>
821
822 * Thuban/Model/classification.py (Classification): Don't use
823 layer's message function directly, use the ClassChanged() method
824 when then classification changes. SetField/SetFieldType/SetLayer
825 must keep the information about field name and field type in
826 sync when an owning layer is set or removed.
827
828 * Thuban/Model/layer.py: Added ClassChanged() so that the
829 classification can tell the layer when its data has changed.
830 (Layer.SetClassification): Accepts None as an arguement to
831 remove the current classification and correctly handles
832 adding a new classification.
833
834 * Thuban/Model/load.py: Comment out print statement
835
836 * test/test_classification.py, test/test_save.py: New and
837 improved tests.
838
839 2003-03-07 Jonathan Coles <[email protected]>
840
841 * Thuban/Model/classification.py: Implemented __copy__ and
842 __deepcopy__ for ClassGroup* and ClassGroupProperites so
843 they can easily be copied by the classifier dialog.
844 (ClassGroupProperites.__init__): The default line color should
845 have been Color.Black.
846
847 * Thuban/UI/classifier.py: Setting and Getting table values now
848 uses a consistent set of functions.
849 (Classifier): Now non-modal. Has field type label which changes
850 as the field changes. Keep track of buttons in a list so that
851 we can enable/disable the buttons when the None field is selected.
852 (SelectPropertiesDialog): Add buttons to make the colors transparent.
853
854 * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
855 does what OnClose did, but can be called by the application to
856 close a window. Needed when a session changes, and we have to
857 close the classifier windows.
858
859 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
860 Shuts down open dialogs. Used when a new session is created
861 or a session is opened.
862 (MainWindow.SaveSession): Should only call application.SaveSession()
863 if we don't call SaveSessionAs first.
864 (MainWindow.Classify): Allow different classifier dialogs for
865 different layers.
866
867 * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
868 the parent class handle it. Add Shutdown() to unsubscibe from
869 event notification and call the parent Shutdown(). This was
870 necessary so the application can close the tree window.
871
872 2003-03-06 Jonathan Coles <[email protected]>
873
874 * Thuban/Model/classification.py: Minor documentation changes,
875 Addition of __eq__ and __ne__ methods.
876 (Classification.SetLayer): prevent recursion between this method
877 and Layer.SetClassification().
878
879 * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
880
881 * Thuban/Model/layer.py (SetClassification): prevent recursion
882 between this method and Classification.SetLayer().
883
884 * test/test_classification.py, test/test_load.py,
885 test/test_session.py: Fixed and added tests for the classification
886 classes.
887
888 2003-03-06 Bernhard Herzog <[email protected]>
889
890 * Thuban/UI/classifier.py (ClassGrid.__init__)
891 (ClassGrid.CreateTable): Move the SetSelectionMode call to
892 CreateTable because otherwise it triggers an assertion in
893 wxPython/wxGTK 2.4.
894
895 2003-03-05 Jonathan Coles <[email protected]>
896
897 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
898
899 * Thuban/Model/load.py: import FIELDTYPE constants from table.
900
901 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
902
903 * Thuban/Model/table.py: Put FIELDTYPE constants back.
904
905 2003-03-05 Jonathan Coles <[email protected]>
906
907 * Thuban/UI/classifier.py: Added class documentation.
908 Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
909 Store just the groups in the table and generate the other
910 column information when it is requested. Add "None" field
911 to pull-down to select no classification.
912
913 * Thuban/common.py: Moved FIELDTYPE constants from table.py
914 (Str2Num): Only catch ValueError exceptions.
915
916 * Thuban/Model/classification.py: Class documentation. Renaming
917 of methods with Stroke to Line. Groups are stored in a single
918 list with the default as the first element. Groups are searched
919 in the order they appear in the list.
920
921 * Thuban/Model/color.py: Documentation.
922
923 * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
924 the kind of data represented by a field.
925
926 * Thuban/Model/load.py (ProcessSession): Use proper string
927 conversion function; fixes RTbug #1713.
928
929 * Thuban/Model/save.py (Saver): Store field type information.
930
931 * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
932 (Table): Add field_info_by_name() to retrieve field information
933 by specifying the field name, not the number.
934
935 * Thuban/UI/mainwindow.py: Function name changes.
936
937 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
938 get the layer classification once. Don't try to classify
939 values when the field is None: just use the default properties.
940
941 * Thuban/UI/view.py: Function name changes.
942
943 * Doc/thuban.dtd: Add field_type attribute to a classification.
944
945 2003-03-04 Bernhard Herzog <[email protected]>
946
947 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
948 the fill and stroke layer attributes optional with suitable
949 default values. Add the stroke_width layer attribute. Use correct
950 syntax for empty elements. Make the attribute list for labels
951 refer to the label element.
952
953 2003-03-04 Bernhard Herzog <[email protected]>
954
955 * setup.py (thuban_build_py.build): Add a comment about distutils in
956 Python 2.3 containing some of the functionality we implement in
957 setup.py ourselves.
958
959 * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
960 before the selection mode. Doing it the other way round triggers
961 an assertion in wxWindows.
962
963 * Thuban/Model/save.py (escape): Fix typo in doc-string
964
965 * Thuban/Model/classification.py: Remove unnecessary wxPython
966 import
967
968 2003-03-04 Jonathan Coles <[email protected]>
969
970 * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
971 Parameter 'value' should default to None.
972
973 * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
974 the class attribute __classification is now private.
975
976 * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
977 Classifier to ClassGrid. Added support for removing selected rows,
978 which including code for keeping track of when cells are selected,
979 and deselected.
980 (ClassTable): Support for added/removing rows. Fixed a problem
981 with __ParseInput whereby it would not allow strings (only numbers)
982 to be entered.
983 (Classifier): Added button and supporting code for removing
984 selected rows.
985
986 2003-02-27 Jonathan Coles <[email protected]>
987
988 * Thuban/common.py: Moved color conversion functions into
989 Thuban/UI/common.py.
990 (Str2Num): Now converts the float (not the string) to a long/int
991 so that an exception isn't thrown.
992
993 * Thuban/UI/common.py: Common functions used in several UI modules
994
995 * Thuban/Model/classification.py: Changed the class hierarchy
996 so that a Classification consists of Groups which return
997 Properties when a value matches a Group.
998
999 * Thuban/Model/layer.py: Fixed name resolution problem.
1000
1001 * Thuban/Model/load.py: Use new Classification and Group functions.
1002
1003 * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
1004 failure.
1005 (Saver.write_classification): Use new Classification and Group
1006 functions.
1007
1008 * Thuban/UI/classifier.py: Changes to use new Classification and Group
1009 functions. Fix to create a tuple with a single value instead of
1010 simply returning the value.
1011
1012 * Thuban/UI/renderer.py: Use new Classification and Group functions.
1013 Use common.py functions.
1014
1015 * Thuban/UI/tree.py: Use common.py functions.
1016
1017 * test/test_classification.py: Use new Classification and Group
1018 classes.
1019
1020 2003-02-24 Jonathan Coles <[email protected]>
1021
1022 * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
1023 functions from Thuban color objects to wxWindow colour objects.
1024
1025 * Thuban/Model/classification.py (Classification): Renamed
1026 GetProperties() to GetClassData(). Used the new iterator
1027 in TreeInfo().
1028 (ClassIterator): Iterator implementation to iterate over the
1029 ClassData objects in a classification object.
1030
1031 * Thuban/Model/save.py (Saver.write_classificaton): Uses
1032 the new iterator to save the classification information.
1033
1034 * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
1035 for changing the stroke and fill colors and previewing the
1036 changes.
1037
1038 * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
1039 MainWindow.SaveSessionAs): Text string changes so the dialogs
1040 have more meaningful titles.
1041
1042 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
1043 Classification method name from GetProperties to GetClassData.
1044
1045 * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
1046 instead of accessing now non-existent class variables.
1047
1048 2003-02-24 Bernhard Herzog <[email protected]>
1049
1050 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
1051 unneeded Shape() call. Rendering is substantially faster without
1052 it and it avoids some problems with broken shape files.
1053
1054 2003-02-20 Frank Koormann <[email protected]>
1055
1056 Force minimal size of identify and label dialogs. The autosizing
1057 looked too ugly.
1058
1059 * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
1060 * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
1061 Set size of listctrl.
1062 * Thuban/UI/identifyview.py (IdentifyView.__init__):
1063 Set size of dialog.
1064
1065 2003-02-19 Jonathan Coles <[email protected]>
1066
1067 * test/test_classification.py, test/test_layer.py,
1068 test/test_load.py, test/test_map.py, test/test_session.py:
1069 Updated the tests to use the new functions that are in the
1070 respective classes.
1071
1072 * Thuban/Model/classification.py (Classification):
1073 Uses the new ClassData* classes. Modification messages are
1074 passed up to the parent layer (if it exists).
1075 (ClassData): New class to encapsulate the common data in each
1076 classification property.
1077 (ClassDataDefault): Represents the Default class. data.
1078 (ClassDataPoint): Represents a single class. data point
1079 (ClassDataRange): Represents a class. range
1080 (ClassDataMap): Represents a class. map (unused).
1081
1082 * Thuban/Model/color.py: Added Color.None to represent something
1083 with no color. Color.Black represents the color black.
1084 (NoColor): Helper class derived from Color to represent something
1085 with no color.
1086
1087 * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
1088 stroke_width attributes. Made the 'classification' attribute private.
1089 New methods for setting/getting the classification.
1090
1091 * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
1092 to get the classifcation and use the new ClassData* classes to
1093 hold the classification data. Use Str2Num to convert numbers
1094 properly.
1095
1096 * Thuban/Model/save.py (Saver): Use new Color and Classification
1097 methods
1098
1099 * Thuban/UI/classifier.py (ClassGrid): New class to represent a
1100 custom grid.
1101 (ClassTable): Support for editing Values and Labels and for
1102 changing what type (point or range) of data is stored in each
1103 property based on how the user enters the data.
1104 (Classifier): Support for saving the new classifications and
1105 launching the dialog to edit a property.
1106 (SelectPropertiesDialog): New class for editing the visual
1107 properties of a classification (stroke color, width, and fill color)
1108 (ClassPreviewer): Took the Draw method from ClassRenderer and
1109 made most of it into this new class. Intend to use this class in
1110 the SelectPropertiesDialog for previewing changes.
1111
1112 * Thuban/UI/renderer.py: Use new Color and Classification methods.
1113
1114 * Thuban/UI/tree.py: Formatting changes.
1115
1116 * Doc/thuban.dtd: Add 'label' element
1117
1118 * Thuban/common.py: New. Contains common routines used throughout
1119 the code.
1120 (Str2Num): Takes a string and converts it to the "best" type of
1121 number.
1122
1123 2003-02-14 Bernhard Herzog <[email protected]>
1124
1125 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
1126 dragging flag is always set to 0 even when the tool implementation
1127 raises an exception
1128
1129 2003-02-11 Bernhard Herzog <[email protected]>
1130
1131 * Thuban/UI/application.py (ThubanApplication.splash_screen): New
1132 method to create a splash screen.
1133 (ThubanApplication.ShowMainWindow): New. Show the main window.
1134 Needed so the splash screen can display the mainwindow
1135 (ThubanApplication.OnInit): Call the
1136 new splash_screen method to determine whether the application
1137 should display a splash screen. If it displays a splash screen do
1138 not immediately show the main window.
1139
1140 2003-02-11 Jonathan Coles <[email protected]>
1141
1142 * Thuban/Model/classification.py: Added import line to fix
1143 feature conflicts between running on python2.2 and python2.1.
1144
1145 * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
1146 onto the clinfo parameter, so removed the deepcopy().
1147
1148 2003-02-10 Jonathan Coles <[email protected]>
1149
1150 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1151 Added element_open variable to track opening and closing of tags
1152 so that tags that don't span more than one line are closed with
1153 /> instead of </tag_name>. Use the GetDefault*() methods of
1154 the Classification class.
1155
1156 * Thuban/Model/classification.py (Classificaton): Added set and
1157 get methods for the default data. The class also takes a layer
1158 reference so that modification messages can be sent. Fixed the
1159 methods to use the new ClassData class.
1160 (ClassData): New class to encapsulate the classification data
1161
1162 * Thuban/Model/layer.py (Layer): Remove the
1163 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1164 SetDefault*() methods on the layer's classification object.
1165 (Layer.__init__): Use the new SetDefault*() methods in the
1166 Classification class.
1167
1168 * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1169 object instead of a dictionary.
1170
1171 * Thuban/UI/classifier.py (ClassRenderer): New class to
1172 draw the classifications in the dialog box's table.
1173 (Classifier): Modified to use the ClassRenderer class.
1174
1175 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1176 methods of the Classification class.
1177
1178 * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
1179 of the ClassData class.
1180
1181 * test/test_classification.py, test/test_layer.py,
1182 test/test_map.py, test/test_session.py: Fix the tests to work
1183 with the above code changes.
1184
1185 2003-02-03 Jonathan Coles <[email protected]>
1186
1187 * Thuban/Model/classification.py (Classification): Added getNull()
1188 to return the NullData reference
1189
1190 * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1191 Layer.SetStrokeWidth): Modified these functions to change the
1192 null data in the classification rather than keep these values
1193 directly in the Layer class. Menu options to change these values
1194 work again.
1195
1196 2003-01-28 Jonathan Coles <[email protected]>
1197
1198 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1199 Fixed crashing problem on some systems. Dialog box shows
1200 classification data.
1201
1202 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1203 Colors in the tree view.
1204
1205 * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1206 the tree info for classifications. Commented out unnecessary lines.
1207
1208 * Thuban/Model/classification.py (Classification.TreeInfo): New
1209 function to add information about the classification into the
1210 tree view.
1211
1212 2003-01-27 Jan-Oliver Wagner <[email protected]>
1213
1214 * Thuban/__init__.py (_): New.
1215
1216 * Thuban/Model/classification.py, Thuban/Model/extension.py,
1217 Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1218 Thuban/Model/session.py, Thuban/UI/application.py,
1219 Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1220 Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1221 Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1222 Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1223 Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1224
1225 2003-01-27 Jonathan Coles <[email protected]>
1226
1227 * Thuban/Model/layer.py: Classification initialization calls.
1228
1229 * Thuban/Model/classification.py: Created class to encapsulate
1230 a layer classification. Supports specific data points and
1231 ranges.
1232
1233 * Thuban/Model/load.py: Added support for loading classification
1234 information.
1235
1236 * Thuban/Model/save.py: Added support for saving classification
1237 information.
1238
1239 * Thuban/UI/classifier.py: Initial class for a dialog box for
1240 specifying classification information.
1241
1242 * Thuban/UI/mainwindows.py: Support for opening the classifier
1243 dialog.
1244
1245 * Thuban/UI/renderer.py: Support for drawing a layer with the
1246 classification information.
1247
1248 * Data/iceland_sample_class.thuban: iceland_sample with
1249 classification data.
1250
1251 * test/test_classification: Tests for the Classification class.
1252
1253 2002-12-09 Bernhard Herzog <[email protected]>
1254
1255 * test/test_command.py: New. Tests for the command classes.
1256
1257 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1258 (Command.IsTool): New method to distinguish between command
1259 switching tools and other commands.
1260
1261 * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1262 the tool to avoid direct assignments to instance variables
1263 (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1264 (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1265 change the tool
1266
1267 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1268 active tool's command turns insensitive, disable the tool.
1269 (_tool_command): Use the new ToolCommand class
1270
1271 * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1272 SelectTool method to change the tool
1273 (iconfile): Use the ToolCommand class
1274
1275 2002-12-03 Bernhard Herzog <[email protected]>
1276
1277 * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1278 the case of selected items that are not children of Layers or Maps
1279 properly. Previously this bug would trigger an assertion in
1280 wxWindows.
1281
1282 2002-11-06 Frank Koormann <[email protected]>
1283
1284 * Thuban/UI/mainwindow.py: Altered the order of tools in the
1285 toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1286 Full Extent).
1287
1288 2002-10-23 Bernhard Herzog <[email protected]>
1289
1290 * setup.py (setup call): version now 0.1.3
1291
1292 * MANIFEST.in: Add the files in test/
1293
1294 * test/README: Add note about tests requiring the iceland data
1295
1296 * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1297 copyright notice.
1298
1299 2002-10-18 Bernhard Herzog <[email protected]>
1300
1301 * test/test_map.py
1302 (TestMapWithContents.test_projected_bounding_box): Use an explicit
1303 epsilon.
1304
1305 * test/support.py (FloatComparisonMixin.assertFloatEqual)
1306 (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1307 message if the assertion fails and don't return the return value
1308 of self.assert_. In assertFloatSeqEqual the return meant that not
1309 all items of the sequence were compared.
1310
1311 2002-09-20 Bernhard Herzog <[email protected]>
1312
1313 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1314
1315 * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1316
1317 * test/test_map.py (TestMapWithContents.test_tree_info): Create
1318 the string with the bounding box on the fly because of platform
1319 differences in the way %g is handled.
1320
1321 * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1322 DBFfile too because Thuban layers can't yet cope missing DBF
1323 files.
1324
1325 2002-09-20 Bernhard Herzog <[email protected]>
1326
1327 * test/test_menu.py: Use initthuban instead of
1328 add_thuban_dir_to_path to initialize Thuban.
1329
1330 * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1331 Mixin class for float comparisons
1332 (SubscriberMixin): New. Mixin class to test messages sent through
1333 the Connector class
1334
1335 * test/README: Fix a typo and add the -v flag to the command for
1336 individual tests
1337
1338 * test/test_session.py: New. Test cases for Thuban.Model.session
1339
1340 * test/test_proj.py: New. Test cases for Thuban.Model.proj
1341
1342 * test/test_map.py: New. Test cases for Thuban.Model.map
1343
1344 * test/test_layer.py: New. Test cases for Thuban.Model.layer
1345
1346 * test/test_label.py: New. Test cases for Thuban.Model.label
1347
1348 * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1349
1350 * test/test_color.py: New. Test cases for Thuban.Model.color
1351
1352 * test/test_base.py: New. Test cases for Thuban.Model.base
1353
1354 2002-09-13 Bernhard Herzog <[email protected]>
1355
1356 * Thuban/Model/session.py (Session.forwarded_channels): Forward
1357 the CHANGED channel too.
1358
1359 * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1360 CHANGED channel too.
1361 (Map.__init__): Call the Modifiable constructor as well.
1362
1363 * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1364 event if the modified flag changes.
1365 (Modifiable.changed): Tweak the doc-string.
1366
1367 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1368 (MainWindow.set_position_text): Put the code that puts the text
1369 with the mouse position into the status bar into the new method
1370 set_position_text so that it can overwritten in derived classes.
1371
1372 2002-09-12 Bernhard Herzog <[email protected]>
1373
1374 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1375 message box on the main window.
1376
1377 2002-09-11 Bernhard Herzog <[email protected]>
1378
1379 * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1380 the 'E' because it's less likely to interfere with other menu
1381 entries.
1382 (MainWindow.build_menu): remove an incorrect comment.
1383
1384 2002-09-10 Bernhard Herzog <[email protected]>
1385
1386 * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1387 (_tool_command): Add sensitive parameter
1388 (_has_visible_map): Sensitivity callback to tools and other
1389 commands that require a visible map. Use it in map_zoom_in_tool,
1390 map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1391 and map_full_extent
1392
1393 2002-09-06 Bernhard Herzog <[email protected]>
1394
1395 * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1396 VIEW_POSITION
1397
1398 2002-09-04 Frank Koormann <[email protected]>
1399
1400 * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1401
1402 2002-09-02 Bernhard Herzog <[email protected]>
1403
1404 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1405 wxWindows already and our implementation doesn't work correctly
1406 with wxGTK 2.3:
1407 (MapCanvas.__init__): Remove the instance variable
1408 (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1409 be drawin
1410 (MapCanvas.OnIdle): Removed.
1411
1412 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1413 a parameter to determine the size of the rectangle.
1414 (MapCanvas.find_shape_at): Create the box around the point on a
1415 layer by layer basis and make the size depend on the shape type.
1416 This solves a problem with the selection of point shapes at the
1417 border of the layer's bounding box
1418
1419 2002-08-30 Bernhard Herzog <[email protected]>
1420
1421 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1422 for the sensitivity of remove layer.
1423 (_can_remove_layer): New. Sensitivity callback for remove layer
1424 (Command layer_remove): Use _can_remove_layer
1425
1426 * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1427 determine whether a given layer can be deleted.
1428
1429 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1430 (MapCanvas.do_redraw): Get rid of the unused update_region
1431 instance variable
1432
1433 * Thuban/UI/view.py: Add/update some doc-strings.
1434
1435 * test/: new subdirectory with a bunch of unit tests.
1436
1437 * test/README, test/test_table.py, test/test_save.py,
1438 test/test_menu.py, test/test_load.py: Initial set of tests and
1439 brief instructions on how to run them
1440
1441 2002-08-29 Bernhard Herzog <[email protected]>
1442
1443 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1444 arcs with multiple parts.
1445
1446 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1447 Handle degenrate rectangles.
1448
1449 * Thuban/Model/table.py: Make writing records work correctly:
1450 (Table.__init__): Keep track of whether the DBF is open for
1451 writing
1452 (Table.write_record): Open the DBF file for writing when necessary
1453
1454 2002-08-27 Bernhard Herzog <[email protected]>
1455
1456 * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1457 dbf files only for reading by default. Use a new writable dbf
1458 object for writing.
1459
1460 2002-08-26 Bernhard Herzog <[email protected]>
1461
1462 * Thuban/UI/mainwindow.py: Refactor the context creation:
1463 (MainWindow.Context): New method to return a context
1464 (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1465 new method
1466
1467 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1468 layer table specific code from TableGrid into LayerTableGrid
1469 (TableFrame, LayerTableFrame): Split the layer table specific code
1470 from TableFrame into LayerTableFrame
1471 (LayerTableGrid.select_shape): Remove a debug print
1472
1473 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1474 LayerTableFrame
1475
1476 2002-08-23 Bernhard Herzog <[email protected]>
1477
1478 * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1479 absolute filename.
1480
1481 2002-08-22 Bernhard Herzog <[email protected]>
1482
1483 * Thuban/Model/table.py (Table.write_record): New method to write
1484 records.
1485 (Table.__init__): Open the DBF file for writing too.
1486
1487 * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1488 into the underlying table.
1489
1490 * extensions/shapelib/shapefil.h (DBFCommit),
1491 extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1492 commit any changes made to the DBF file.
1493
1494 * Thuban/UI/mainwindow.py (make_check_current_tool)
1495 (_tool_command): Put the code that generates the "checked"
1496 callback into a separate function so that we can reuse it
1497 elsewhere
1498
1499 * Thuban/Model/save.py (Saver): New class to handle serializing a
1500 session into an XML file. The main reason to introduce a class is
1501 that applications built on Thuban can derive from it so that they
1502 can save additional information in a session file.
1503 (save_session): Delegate almost all the work to the Saver class.
1504 Rename the filename argument to file because it may be a file like
1505 object now.
1506
1507 * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1508 code. Remove the little test code which would be executed when the
1509 module is run as a script which didn't work anymore since it can't
1510 import the other Thuban modules.
1511 (ProcessSession, load_session): Refactor the ProcessSession to
1512 have one method for each element start and end tag so that derived
1513 classes can easily override the processing of individual tags.
1514 Also, always parse with namespaces enabled because applications
1515 built on top of Thuban will likely use namespaces if they extend
1516 the session file format.
1517
1518 2002-08-21 Bernhard Herzog <[email protected]>
1519
1520 * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1521 because thubaninit_contents will do it for us.
1522
1523 2002-08-16 Jan-Oliver Wagner <[email protected]>
1524
1525 * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1526 tree window already open
1527
1528 2002-08-15 Bernhard Herzog <[email protected]>
1529
1530 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1531 with self.
1532
1533 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1534 when we have actually captured it.
1535
1536 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1537 shapefile and destroy the table.
1538
1539 * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1540
1541 2002-08-14 Bernhard Herzog <[email protected]>
1542
1543 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1544 instance variable columns
1545 (RecordTable.GetTypeName): row and col may be negative in some
1546 cases.
1547
1548 * setup.py (InstallLocal.initialize_options)
1549 (InstallLocal.finalize_options, InstallLocal.user_options): New
1550 option create-init-file to build a thubaninit.py when running
1551 install_local
1552 (InstallLocal.run): Create the thubaninit.py module when requested
1553 (thubaninit_contents): Split the template into several parts and
1554 create a new function thubaninit_contents that creates the
1555 contents of a thubaninit module.
1556 (ThubanInstall.run): Use the new function to create the thubaninit
1557 module.
1558
1559 2002-07-30 Bernhard Herzog <[email protected]>
1560
1561 * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1562 cleanup.
1563 (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1564
1565 * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1566 direct base class' Destroy method.
1567
1568 * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1569 layers.
1570 (Map.Destroy): Destroy the label_layer as well and call the
1571 inherited Desatroymethod first so that no more messages are
1572 issued.
1573 (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1574 message if the stacking order actually has changed. Add
1575 doc-strings.
1576 (Map.BoundingBox): Correct the doc-string.
1577 (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1578 (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1579
1580 * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1581 all labels.
1582
1583 2002-07-29 Bernhard Herzog <[email protected]>
1584
1585 * Thuban/Model/map.py (Map.subscribe_layer_channels)
1586 (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1587 to a layer's channels into separate methods.
1588 (Map.RemoveLayer, Map.AddLayer): Call the new methods
1589 (Map.Destroy): Unsubscribe from a layer's channels before
1590 destroying it.
1591
1592 * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1593 selected_layer parameter to searched_layer which is the layer to
1594 search in.
1595 (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1596 search to that layer. Return the selected layer and shape.
1597
1598 * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1599 typo
1600
1601 2002-07-24 Bernhard Herzog <[email protected]>
1602
1603 * Thuban/UI/application.py (ThubanApplication.create_session):
1604 Extend the doc string.
1605 (ThubanApplication.subscribe_session)
1606 (ThubanApplication.unsubscribe_session): New methods to
1607 subscribe/unsubscribe to/from session channels.
1608 (ThubanApplication.SetSession): Call the new methods here.
1609 (ThubanApplication.maps_changed, ThubanApplication.set_map):
1610 Renamed set_map to maps_changed. Its now a subscriber for
1611 MAPS_CHANGED.
1612
1613 * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1614 x-coordinate in case of simple clicks
1615
1616 * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1617 don't pass it as a parameter
1618
1619 * Thuban/Model/session.py (Session.RemoveMap): New
1620
1621 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1622 window size into a parameter.
1623
1624 2002-07-23 Bernhard Herzog <[email protected]>
1625
1626 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1627 just commands.
1628
1629 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1630 parameter list a bit to allow setting the window title and the
1631 initial message in the status bar. Update the callers.
1632
1633 * Thuban/UI/application.py (ThubanApplication.OnInit)
1634 (ThubanApplication.CreateMainWindow): Put the mainwindow
1635 instantiation into a separate method so that it can be overridden
1636 by a subclass.
1637
1638 2002-07-19 Bernhard Herzog <[email protected]>
1639
1640 * Thuban/Model/session.py: Issue a CHANGED message every time
1641 another changed message is issued to make it easier to get
1642 notified of changes.
1643 (Session): Update the doc string
1644 (Session.forward): Issue changed-events as CHANGED as well.
1645 (Session.changed): Overwrite the inherited version to issue
1646 CHANGED events as well.
1647
1648 * Thuban/UI/tree.py: We can now simply subscribe to the session's
1649 CHANGED channel to be informed of changes.
1650 (SessionTreeCtrl.session_channels): Not needed any longer.
1651 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1652 Only have to (un)subscribe CHANGED
1653
1654 * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1655
1656 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1657 for the wxPython locale bug to __init__.py so that it's
1658 automatically executed by anybody using UI code from Thuban.
1659
1660 2002-07-18 Bernhard Herzog <[email protected]>
1661
1662 * Thuban/UI/main.py (main): app no longer needs to be global
1663
1664 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1665 as parameter and store it in an instance variable
1666 (MainWindow.invoke_command, MainWindow.update_command_ui)
1667 (MainWindow.save_modified_session, MainWindow.NewSession)
1668 (MainWindow.OpenSession, MainWindow.SaveSession)
1669 (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1670 application object.
1671
1672 * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1673 the main window with self.
1674
1675 * Thuban/UI/context.py: New module with the context class
1676
1677 * Thuban/UI/command.py (Command): Update doc string.
1678
1679 * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1680 MainWindow.update_command_ui): Pass an instance of the context
1681 class to the command's methods
1682 (check_current_tool, call_method): Handle the new context
1683 implementation
1684
1685 * Examples/simple_extensions/simple_tool.py (simple_tool,
1686 check_simple_tool): Handle the new context implementation
1687
1688 * Examples/simple_extensions/simple_command.py (simple_command):
1689 Handle the new context implementation. Update the comments about
1690 the context.
1691
1692 * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1693 doc-string
1694 (ThubanApplication.Session): New method to return the session
1695 object
1696
1697 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1698 interactor's selected_layer may not be a layer of the current
1699 session when the tree is updated while a new session is being set.
1700
1701 2002-07-17 Bernhard Herzog <[email protected]>
1702
1703 * Thuban/UI/tree.py (color_string): Removed. No longer used.
1704 (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1705 update_tree into update_tree and add_items. The tree now uses a
1706 more generic way to display the contents of the tree.
1707 (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1708
1709 * Thuban/Model/layer.py (Layer.TreeInfo),
1710 Thuban/Model/extension.py (Extension.TreeInfo),
1711 Thuban/Model/map.py (Map.TreeInfo),
1712 Thuban/Model/session.py (Session.TreeInfo):
1713 Add TreeInfo methods to implement the new tree view update scheme
1714
1715 2002-07-16 Bernhard Herzog <[email protected]>
1716
1717 * Thuban/UI/application.py: Don't use "import from" for the
1718 MainWindow. It can't always be resolved.
1719 (ThubanApplication.OnInit): change reference to MainWindow
1720 accordingly.
1721
1722 * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1723 completely
1724
1725 2002-07-10 Bernhard Herzog <[email protected]>
1726
1727 * setup.py (create_init_module): New configurable variable whose
1728 default depends on the platform we're running on.
1729 (ThubanInstall.initialize_options): Initialize
1730 self.create_init_module from the global create_init_module
1731 (ThubanInstall.user_options): indictate that the options
1732 create-init-module and init-module-dir have arguments.
1733
1734 * setup.py: In the setup call change the version number to include
1735 cvs.
1736
1737 * MANIFEST.in: Add the files in Examples
1738
1739 2002-07-09 Bernhard Herzog <[email protected]>
1740
1741 * setup.py: In the setup call, use the thuban homepage as the
1742 value of the url parameter.
1743
1744 * Examples: New subdirectory for examples.
1745
1746 * Examples/simple_extensions/simple_tool.xpm,
1747 Examples/simple_extensions/simple_tool.py,
1748 Examples/simple_extensions/simple_command.py,
1749 Examples/simple_extensions/README: Simple examples showing how to
1750 add new commands and tools.
1751
1752 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1753 bdist_rpm that we also have an install script.
1754 (bdist_inno): Add 2002 to the copyright notice.
1755
1756 * setup.py: Create a file in python's site-packages directory to
1757 make installation of Thuban as a library easier.
1758 (ThubanInstall.user_options): Add two new options,
1759 create-init-module and init-module-dir
1760 (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1761 filenames for installation in the default directories.
1762 (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1763 the inherited methods to capture some filenames before they're
1764 transformed too much by distutils.
1765 (ThubanInstall.run): Create the init module if requested.
1766 (ThubanInstall.thuban_init_filename): New method to return the
1767 full name of the init module.
1768 (ThubanInstall.get_outputs): Append the filename of the init
1769 module.
1770
1771 2002-07-08 Bernhard Herzog <[email protected]>
1772
1773 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1774 handle the prefix properly which means that the default for the
1775 installation prefix should be /usr for RPMs and /usr/local when
1776 doing a normal source install.
1777 (bdist_rpm_install_script): Script to override the default install
1778 commands in the specfile generated by the bdist_rpm command.
1779 (thuban_bdist_rpm.user_options): Add a prefix option
1780 (thuban_bdist_rpm.initialize_options): Init the prefix option.
1781 Create the script files for the spec files as empty files here
1782 (thuban_bdist_rpm._make_spec_file): Override the inherited method
1783 to fill the script files with content.
1784
1785 * Thuban/Model/save.py (relative_filename): Wrapper around
1786 Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1787 argument. save_session now automatically uses this version,
1788 solving a problem when saving to a relative filename.
1789
1790 * setup.py: In the setup call, make sure that the library
1791 directories are under $prefix/lib not directly under $prefix.
1792
1793 2002-06-20 Jan-Oliver Wagner <[email protected]>
1794
1795 * Thuban/Model/extension.py: new module to handle extension objects.
1796 * Thuban/Model/messages.py: new messages for extensions.
1797 * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1798 Session.AddExtension): new for handling extensions.
1799 Also some other minor changes to round up extension handling.
1800 * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1801 of Extension titles and title and names of its objects.
1802
1803 2002-05-29 Bernhard Herzog <[email protected]>
1804
1805 * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1806 the events for a command.
1807 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1808 Call bind_command_events to bind the events. add_toolbar_command
1809 can now bind events too so that it's possible to have commands
1810 that are only available through the toolbar.
1811 (MainWindow.init_ids): New instance variable events_bound to keep
1812 track of for which commands events have been bound.
1813
1814 2002-05-28 Bernhard Herzog <[email protected]>
1815
1816 * Thuban/UI/menu.py: New module to build and manage menus.
1817
1818 * Thuban/UI/mainwindow.py: Remove some unused imports.
1819 (MainWindow.__init__, main_menu): move the definition of the main
1820 menu from __init__ to the Menu instance main_menu.
1821 (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1822 build the menu bar and sub-menus from a menu description.
1823
1824 * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1825 startup file
1826 (ThubanApplication.read_startup_files): New method to run
1827 ~/.thuban/thubanstart.py
1828
1829 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1830 Move the toolbar definition to the Menu instance main_toolbar.
1831 (MainWindow.build_toolbar): New method to build the toolbar
1832 similar to the build_menu methods
1833
1834 2002-05-23 Bernhard Herzog <[email protected]>
1835
1836 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1837 layer_outline_color. Fix it in the definition of the command too.
1838
1839 * Thuban/UI/command.py (Command): Fix typo in doc string
1840
1841 2002-05-22 Bernhard Herzog <[email protected]>
1842
1843 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1844 in the docstring
1845
1846 2002-05-15 Bernhard Herzog <[email protected]>
1847
1848 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1849 when the shapefile is empty.
1850 (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1851 now return None for empty shapefiles. Update doc-strings.
1852
1853 * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1854 the layer's bbox being None.
1855
1856 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1857 layer's bbox being None.
1858
1859 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1860 necessary.
1861 (MapCanvas.__init__): New instance variables, last_selected_layer
1862 and last_selected_shape to determine how the selection has
1863 changed.
1864
1865 * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1866 AutoSizeColumns because it will cause a traversal of the entire
1867 table which for large .dbf files will take a very long time.
1868
1869 2002-05-14 Bernhard Herzog <[email protected]>
1870
1871 * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1872 maximum depth for the tree than shapelib does by default.
1873
1874 2002-05-10 Bernhard Herzog <[email protected]>
1875
1876 * setup.py (py_modules): The shptree modules doesn't have a
1877 wrapper, so don't include it in the py_modules
1878
1879 2002-05-08 Bernhard Herzog <[email protected]>
1880
1881 * extensions/shapelib/shptree.c (compare_ints): Make arguments
1882 const void * as in the qsort prototype
1883 (SHPTreeFindLikelyShapes): Remove some unused variables.
1884
1885 * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1886 maintains to redraw the window during a drag.
1887 (MapCanvas.unprojected_rect_around_point): New method to determine
1888 a small region around a point for hit-testing.
1889 (MapCanvas.find_shape_at): Only test the shapes in a small region
1890 around the point.
1891
1892 * setup.py: Increment the version to 0.1.2
1893
1894 * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1895 debug print and set session to None after unsubscribing
1896
1897 2002-05-07 Bernhard Herzog <[email protected]>
1898
1899 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1900 the file to have a .thuban extension.
1901
1902 * Thuban/UI/tree.py (session_channels): New class constant with
1903 all the session channels to subscribe to to update the tree
1904 (SessionTreeCtrl.session_changed): Remember the session so that we
1905 can unsubscribe properly. Use the new class constant to
1906 unsubscribe from the old session and subscribe to the new one.
1907 (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1908 subscriptions of the SessionTreeCtrl.
1909 (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1910
1911 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1912 Session Tree" command to the file menu.
1913
1914 * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1915 as update_region to the renderer.
1916
1917 * Thuban/UI/renderer.py
1918 (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1919 update box is now directly a tuple, not a wxRect anymore.
1920
1921 * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1922 prints.
1923
1924 2002-05-07 Bernhard Herzog <[email protected]>
1925
1926 * setup.py: Add the shptree extension module. See
1927 extensions/pyshapelib/ChangeLog for more details.
1928
1929 * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1930 extensions/shapelib/dbfopen.c: Really update to the versions of
1931 shapelib 1.2.9. For some reason it wasn't really done on
1932 2002-04-11.
1933
1934 * extensions/shapelib/shptree.c: Modified version of shptree.c of
1935 shapelib 1.2.9. The only real difference is the use of qsort
1936 instead of a bubble sort implementation
1937
1938 * Thuban/Model/layer.py (Layer.__init__): New instance variable
1939 shapetree to hold the shapelib quadtree for the shapefile
1940 (Layer.open_shapefile): Create the quad tree.
1941 (Layer.ShapesInRegion): New method to return the ids of shapes in
1942 a given region using the quad tree.
1943
1944 * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1945 comment
1946 (draw_polygon_shape): Accept both arcs and polygons.
1947 (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1948 the api.
1949
1950 * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1951 return the shape ids to be rendered in a given layer.
1952 (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1953 ids. Use draw_polygon_shape to draw arc shapes as well.
1954 (ScreenRenderer.RenderMap): New parameter for the rectangle that
1955 has to be updated
1956 (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1957 calling it's ShapesInRegion method.
1958
1959 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1960 update_region for the update region.
1961 (MapCanvas.OnPaint): Maintain the update region
1962 (MapCanvas.do_redraw): Pass the bounding box of the update_region
1963 to the renderer when drawing the bitmap. Reset the update_region.
1964
1965 2002-05-03 Bernhard Herzog <[email protected]>
1966
1967 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1968 MainWindow.OpenSession): Change the file extension of the session
1969 files to .thuban
1970
1971 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1972 Move the map channels to be forwarded by the session into the
1973 class constant with forwarded_channels. Also add
1974 LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1975 forwarded_channels
1976
1977 * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1978 typo and some rewording).
1979
1980 2002-05-02 Bernhard Herzog <[email protected]>
1981
1982 * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1983 around to speed up most redraws:
1984 (MapCanvas.__init__): New instance variable bitmap which holds the
1985 bitmap
1986 (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1987 self.bitmap to draw.
1988 (MapCanvas.full_redraw): New method to force a full redraw
1989 including the bitmap
1990 (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1991 make sure the bitmap is redrawn.
1992 (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1993 MapCanvas.shape_selected): Call full_redraw instead of readraw to
1994 make sure the bitmap is redrawn.
1995 (MapCanvas.OnSize): New method to handle size events so that the
1996 bitmap can be redrawn.
1997
1998 2002-04-29 Bernhard Herzog <[email protected]>
1999
2000 * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2001 canvas' VIEW_POSITION event
2002 (MainWindow.view_position_changed): Handler for VIEW_POSITION.
2003 Update the text in the status-bar accordingly.
2004
2005 * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
2006 (MapCanvas.__del__): Implement because Publisher.__del__ has to be
2007 called.
2008 (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
2009 current_position
2010 (MapCanvas.set_current_position): New method to set
2011 current_position. Issue a VIEW_POSITION event
2012 (MapCanvas.CurrentPosition): New public method to return the value
2013 of current_position. Should be called when the VIEW_POSITION event
2014 is processed.
2015 (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
2016 Update the position.
2017 (MapCanvas.OnLeaveWindow): Set the position to None.
2018
2019 * Thuban/UI/messages.py (VIEW_POSITION): New message for the
2020 position in the statusbar
2021
2022 2002-04-26 Frank Koormann <[email protected]>
2023
2024 * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
2025
2026 2002-04-24 Frank Koormann <[email protected]>
2027
2028 * Resources/Bitmaps/identify.xpm: shadow added
2029
2030 * Resources/Bitmaps/fullextent.xpm: new
2031
2032 2002-04-22 Jan-Oliver Wagner <[email protected]>
2033
2034 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
2035 box
2036
2037 2002-04-21 Jan-Oliver Wagner <[email protected]>
2038
2039 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
2040
2041 * Thuban/UI/tree.py (update_tree): added added map extent
2042
2043 * Thuban/UI/mainwindow.py (_method_command): extended by parameter
2044 icon; added map_full_extend as tool
2045
2046 2002-04-19 Jan-Oliver Wagner <[email protected]>
2047
2048 * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
2049 saving _new_ sessions
2050
2051 * Thuban/Model/session.py (create_empty_session): new session
2052 don't have a filename (set to None)
2053
2054 * Thuban/UI/tree.py (update_tree): added filename and modified flag
2055
2056 * Thuban/Model/load.py (ProcessSession): convert projection
2057 parameters from unicode to regular string
2058
2059 * Data/iceland_sample.session: Added UTM Zone 26 projection.
2060
2061 2002-04-11 Bernhard Herzog <[email protected]>
2062
2063 * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
2064 extensions/shapelib/dbfopen.c: Update to the versions of shapelib
2065 1.2.9
2066
2067 * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
2068 the pyshapelib directoy into the list of include dirs, so that
2069 pyshapelib_api.h can be found.
2070
2071 * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
2072 holds the pyshapelib C-API
2073 (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
2074 pyshapelib_api to access the shapelib functions.
2075 (initwxproj): Import the c_api from the shapelib module and
2076 initialize pyshapelib_api.
2077
2078 2002-04-04 Bernhard Herzog <[email protected]>
2079
2080 * setup.py (thuban_bdist_rpm.initialize_options): Use
2081 initialize_options to create the scripts for the rpm.
2082
2083 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
2084
2085 2002-04-03 Bernhard Herzog <[email protected]>
2086
2087 * setup.py: Increment version to 0.1.1
2088
2089 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
2090 Layer" and "Remove Layer" commands from the layer menu to the map
2091 menu
2092
2093 2002-02-15 Bernhard Herzog <[email protected]>
2094
2095 * Thuban/Model/layer.py (Layer.Shape): list append only takes one
2096 argument (python <= 1.5.2 erroneously accepted multiuple
2097 arguments)
2098
2099 2002-02-04 Bernhard Herzog <[email protected]>
2100
2101 * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
2102 RecordGrid in the identifyview.
2103 (IdentifyView.__init__): Use IdentifyGridCtrl instead of
2104 IdentifyListCtrl. The grid allows editing of the values.
2105
2106 * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
2107 implementing a grid for a single row of a thuban table.
2108
2109 * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
2110 layers by default. Easier to use than the previous default of only
2111 searching through the select layer which meant that if no layer
2112 was selected, you couldn't select a shape.
2113
2114 * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
2115
2116 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
2117 stroke_width attribute
2118
2119 * Thuban/Model/save.py (save_session): Write the new stroke_width
2120 attribute
2121
2122 * Thuban/Model/load.py (ProcessSession.startElement): Read the
2123 stroke_width attribute
2124
2125 * Thuban/Model/layer.py (Layer.__init__): New parameter and
2126 instance variable stroke_width
2127 (Layer.SetStrokeWidth): Set the stroke_width.
2128
2129 2002-02-01 Bernhard Herzog <[email protected]>
2130
2131 * extensions/thuban/wxproj.cpp (project_points): Fix two
2132 off-by-one errors in the last loop that joins the various parts
2133 together.
2134
2135 2002-01-14 Bernhard Herzog <[email protected]>
2136
2137 * setup.py (data_dist.make_distribution): Fix some typos
2138
2139 2001-09-18 Bernhard Herzog <[email protected]>
2140
2141 * README: Slight tweaking in preparation for the 0.1 release
2142
2143 * setup.cfg: Add section for sdist to create both tgz and zip
2144 archives
2145
2146 * setup.py: increase version number to 0.1
2147 (data_dist): New command class for data distribution
2148
2149 2001-09-14 Bernhard Herzog <[email protected]>
2150
2151 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2152 Handle the case of no layer (i.e. layer is None) properly.
2153
2154 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2155 Set the initial selection of the combo boxes to reflect the
2156 projection we're starting with in a way that works on windows,
2157 too.
2158
2159 * Thuban/Lib/connector.py (Connector.print_connections): Print the
2160 puiblisher's ids in hex to make it easier to compare them to the
2161 standard repr of python methods
2162
2163 * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
2164 messages
2165
2166 2001-09-13 Bernhard Herzog <[email protected]>
2167
2168 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
2169 deselect the layer if no layer is selected
2170
2171 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
2172 idle time when there actually is something to draw. If there's
2173 nothing to draw simply clear the window
2174 (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
2175 (MapCanvas.SetMap): force a redraw in all cases because
2176 FitMapToWindow doesn't always do it.
2177 (MapCanvas.ZoomFactor): Add an optional parameter, center, to
2178 specify the point to move into the center of the window
2179 (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
2180 dragged, zoon in/out by a factor of 2
2181 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
2182 index, i.e. reversed drawing order) so that objects appearing to
2183 be in from of others are selected first. This is probably mostly
2184 relevant for point shapes where the symbols used may overlap
2185
2186 * Thuban/Model/session.py (create_empty_session): Unset the
2187 modified bit before returning it
2188
2189 * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
2190 create_empty_session session to create the new, empty session.
2191
2192 * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
2193 the tool bitmaps.
2194 (MainWindow.OnClose, MainWindow.save_modified_session): Separate
2195 the code that asks whether the session should be saved into the
2196 new method save_modified_session.
2197 (MainWindow.OpenSession, MainWindow.NewSession): Use the new
2198 method to save modified session here too.
2199
2200 2001-09-11 Bernhard Herzog <[email protected]>
2201
2202 * setup.py (InnoIconItem): fix typo
2203
2204 (thuban_bdist_inno.run):
2205 (bdist_inno.run): Move the decision not to create symlinks on
2206 non-nt platforms to thuban_bdist_inno and do it unconditinally
2207 since we never want to create the symlinks here
2208
2209 2001-09-10 Bernhard Herzog <[email protected]>
2210
2211 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
2212 identify view immediately
2213
2214 * Thuban/UI/controls.py: New file with two classes RecordListCtrl
2215 and SelectableRecordListCtrl that implement the code shared by the
2216 identify view and the label dialog
2217
2218 * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
2219 new class RecordListCtrl
2220
2221 * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
2222 return value of GetValue is None instead of using it as a boolean
2223 directly so that Zero numbers are handled properly.
2224 (LabelListCtrl): Derive from the new class
2225 SelectableRecordListCtrl
2226
2227 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
2228 (Proj4Dialog.dialogLayout): Make the window resizable and set the
2229 size of the text control explicitly to make the sizers work on
2230 both Windows and X.
2231
2232 2001-09-07 Bernhard Herzog <[email protected]>
2233
2234 * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
2235 that can limit the search to the currently selected layer.
2236 (MapCanvas.SelectShapeAt): Make sure that the currently selected
2237 layer stays selected even when no shape is found
2238 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
2239 height do nothing (avoids zero division errors)
2240
2241 2001-09-06 Bernhard Herzog <[email protected]>
2242
2243 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
2244 Correct the spelling of SessionTreeCtrl. dabbrev is too damn
2245 convenient :-)
2246 (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
2247 a new instvar layer_to_item to map layers to tree items
2248 (SessionTreeCtrl.layer_selected): Select the appropriate tree item
2249 to match the current selection in the interactor
2250
2251 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
2252 (Interactor.HasSelectedLayer): New methods to query the current
2253 selection
2254
2255 * Thuban/UI/mainwindow.py (MainWindow.current_layer):
2256 (MainWindow.has_selected_layer): Simply call the appropriate
2257 interactor method
2258
2259 * Thuban/UI/mainwindow.py (MainWindow.__init__):
2260 (MainWindow.LayerShowTable):
2261 (MainWindow.identify_view_on_demand): Store the interactor in an
2262 instvar and use that reference instead of going through main.app
2263
2264 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2265 * Thuban/UI/application.py (ThubanApplication.OnInit):
2266 * Thuban/UI/main.py (main): Create the session tree view in main
2267 with the new mainwindow method ShowSessionTree and not directly
2268 the application's OnInit method
2269
2270 * Thuban/UI/tree.py (myTreeCtrlPanel):
2271 (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
2272 TreeCtrl isntead of a panel. This affects most method since we now
2273 refer to self instead of self.tree
2274 (SessionTreeView): New class implementing a non-modal dialog
2275 showing the session tree.
2276
2277 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
2278 layer to the tableview dialog.
2279
2280 * Thuban/UI/tableview.py: Add some doc-strings
2281 (TableGrid):
2282 (TableGrid.OnRangeSelect):
2283 (TableGrid.OnSelectCell):
2284 (TableFrame.__init__):
2285 (TableFrame.row_selected):
2286 Selecting rows in the grid view now updates the selected shapes
2287 through the TableFrame. To achieve this we derive TableGrid from
2288 Publisher and introduce the message type ROW_SELECTED which the
2289 TableFrame subscribes to and which is issued by OnRangeSelect and
2290 OnSelectCell
2291
2292 (DataTable.SelectRow): Removed because it's no longer needed in
2293 the row/shape selection scheme
2294
2295 * Thuban/UI/dialogs.py: New file implementing common classes for
2296 dialogs
2297
2298 * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
2299 the SELECTED_SHAPE message anymore. This is now handled by the
2300 parent.
2301 (TableGrid.select_shape): Only update the selection if the shape
2302 is not None.
2303 (TableFrame): Inherit from the new NonModalDialog class.
2304 (TableFrame.__init__, TableFrame.select_shape): Handle the
2305 SELECT_SHAPE message.
2306 (TableFrame.OnClose): Extend the inherited method to unsubscribe
2307 SELECT_SHAPE
2308
2309 * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
2310 (MainWindow.add_dialog):
2311 (MainWindow.dialog_open):
2312 (MainWindow.remove_dialog):
2313 (MainWindow.get_open_dialog): New methods to maintain a dictionary
2314 of opened non-modal dialogs.
2315
2316 (MainWindow.__init__): Initialize the new non-modal dictionary
2317 management code
2318 (MainWindow.LayerShowTable): maintain separate dialogs for each
2319 table using the non-modal dialog management code to only open a
2320 view once for each table.
2321
2322 (MainWindow.IdentifyTool):
2323 (MainWindow.__init__):
2324 (MainWindow.identify_view_on_demand): Don't open the identify view
2325 in IdentifyTool anymore. This will be done automatically by the
2326 new method identify_view_on_demand which handles the
2327 SELECTED_SHAPE message so that the identify view will be opened on
2328 demand
2329
2330 * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
2331 the interactor argument. The SELECTED_SHAPE message is now handled
2332 by the parent.
2333 (IdentifyView.__init__): Add the interactor argument so that we
2334 can handle the SELECTED_SHAPE message here
2335 (IdentifyView.selected_shape): New method to handle the
2336 SELECTED_SHAPE messages
2337
2338 * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
2339 NonModalDialog class
2340 (IdentifyView.OnClose): Extend the inherited version to
2341 unsubscribe SELECT_SHAPE
2342
2343 * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
2344
2345 2001-09-05 Bernhard Herzog <[email protected]>
2346
2347 * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2348
2349 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2350 interactor to pass through to the MapCanvas
2351
2352 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2353 argument to the MainWindow constructor to get rid of the ugly hack
2354 that made main.app available early just so that the mapcanvas
2355 could access the interactor object.
2356
2357 2001-09-04 Bernhard Herzog <[email protected]>
2358
2359 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
2360 that runs a modal message box
2361 (MainWindow.OnClose): Use the new method
2362 (MainWindow.RemoveLayer): Just do nothing in case no layer is
2363 selected. The command should be grayed out anyway, so there's no
2364 need to pop up a message box.
2365 (MainWindow.AddLayer): Pop up a message box with an error message
2366 if the shape file can't be opened
2367
2368 * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
2369 immediately. This will cause an exception in case the file can't
2370 be opened and we can display an appropriate message.
2371
2372 * MANIFEST.in: Add extensions/pyprojection/LICENSE
2373
2374 * setup.py (thuban_bdist_rpm): New class implementing a Thuban
2375 specific bdist_rpm command.
2376
2377 * Thuban/UI/main.py: Catch ImportError exceptions when importing
2378 the locale module because it may not be available on some
2379 installations.
2380
2381 * extensions/pyprojection/LICENSE: Copy of the license text in
2382 Projection.i. Having it in a separate file makes it easier to
2383 refer to license text in e.g. RPMs
2384
2385 2001-09-03 Bernhard Herzog <[email protected]>
2386
2387 * setup.py: use wx-config instead of wxgtk-config because it's
2388 more generic
2389
2390 * setup.py (ThubanInstall.get_outputs): Add the symlink in
2391 <prefix>/bin to the outputs
2392 (ThubanInstall.link_file): New method to link files. We need this
2393 because the standard copy_files refuses to link non-existing
2394 files.
2395 (ThubanInstall.run): Remove the leading install root from the
2396 script filename if an install root was specified and use the new
2397 link_file method
2398
2399 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2400 the window when the first layer is added to the map.
2401
2402 * setup.py (ThubanInstall.run): Honor the build root (self.root)
2403 when linking thuban.py to <prefix>/bin
2404
2405 2001-08-31 Bernhard Herzog <[email protected]>
2406
2407 * setup.py: In the setup call, the install parameters shouldn't
2408 have trailing slashes because distutils on non-posix platforms
2409 doesn't like that. The same applies to other directories like
2410 "Resources/Bitmaps"
2411
2412 In the configuration section for nt, move the wxWindows directory
2413 optins into the part clearly marked as editable.
2414
2415 (InstallLocal.initialize_options):
2416 (InstallLocal.user_options): remove the currently unused debug
2417 flag
2418 (thuban_build_py.find_all_modules): Add this method so that it
2419 works for our case of having packages and modules in one
2420 distribution as well.
2421 (ThubanInstall.initialize_options):
2422 (ThubanInstall.finalize_options):
2423 (ThubanInstall.user_options):
2424 (ThubanInstall.boolean_options): Add new options, do-symlink and
2425 extra files. Since these are the first ThubanInstall specific
2426 options, override user_options and boolean_options
2427 (ThubanInstall.run): Honor the new do-symlink and extra-files
2428 options.
2429 (ThubanInstall.get_outputs): Add to override the base-class's
2430 version and add the extra-files to the outputs
2431 (bdist_inno): New class for windows distributions with Inno Setup
2432 (InnoIconItem): Helper class for bdist_inno
2433 (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2434 this together with the appropriate parameters, to the setup call.
2435
2436 * setup.cfg (bdist_inno): added new section for the inno setup
2437 installer
2438
2439 * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
2440 changing_selection to avoid recursive selection events when
2441 modifying the selection in response to a selection event.
2442 (myTreeCtrlPanel.normalize_selection): Set the new inst var when
2443 changing the tree's selection.
2444 (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
2445 we're not being called indirectly from normalize_selection.
2446
2447 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
2448 event.Check only if the command is actuall checkable.
2449 (MainWindow.__init__): Call the toolbar's Realize method to make
2450 sure that the items are actually shown
2451
2452 2001-08-28 Bernhard Herzog <[email protected]>
2453
2454 * setup.py: Fix some doc strings
2455
2456 * ChangeLog: started
2457

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26