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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 662 - (hide annotations)
Mon Apr 14 14:16:14 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/ChangeLog
File size: 89892 byte(s)
updated ChangeLog

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26