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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 208 by bh, Tue Jul 9 14:57:03 2002 UTC revision 662 by jonathan, Mon Apr 14 14:16:14 2003 UTC
# Line 1  Line 1 
1    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    2003-04-11  Jonathan Coles   <[email protected]>
19    
20            * 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            * 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            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
59            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    
68    2003-04-10  Jonathan Coles   <[email protected]>
69    
70            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
71            Should pass group to ClassGroup constructor.
72    
73    2003-04-10  Jonathan Coles   <[email protected]>
74    
75            * 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    2003-04-09  Jonathan Coles   <[email protected]>
103    
104            * 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            * 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    2003-04-07  Bernhard Herzog  <[email protected]>
151    
152            * 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            * 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    2003-04-07  Jonathan Coles   <[email protected]>
178    
179            * 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            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    2003-04-04  Jonathan Coles   <[email protected]>
231    
232            * 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            * 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    
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    
258            * 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    
294    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    2003-04-02  Bernhard Herzog  <[email protected]>
319    
320            * 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            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
325            sure the filename is absolute to avoid problems when saving the
326            session again
327    
328            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
329    
330    2003-04-01  Jonathan Coles   <[email protected]>
331    
332            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
333            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    2003-04-01  Bernhard Herzog  <[email protected]>
338    
339            * test/test_map.py: Don't use from <module> import *
340    
341    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    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    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    2003-03-26  Jonathan Coles   <[email protected]>
399    
400            * 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            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    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    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    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    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    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    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    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    2003-03-10  Jonathan Coles   <[email protected]>
659    
660            * 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            * 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            * 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            * 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            * 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    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    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    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    2003-03-05  Jonathan Coles   <[email protected]>
771    
772            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
773    
774            * Thuban/Model/load.py: import FIELDTYPE constants from table.
775    
776            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
777    
778            * Thuban/Model/table.py: Put FIELDTYPE constants back.
779    
780    2003-03-05  Jonathan Coles   <[email protected]>
781    
782            * 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    2003-03-04  Bernhard Herzog  <[email protected]>
821    
822            * 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            * 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    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    2003-02-27  Jonathan Coles   <[email protected]>
862    
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            functions. Fix to create a tuple with a single value instead of
885            simply returning the value.
886    
887            * Thuban/UI/renderer.py: Use new Classification and Group functions.
888            Use common.py functions.
889    
890            * Thuban/UI/tree.py: Use common.py functions.
891            
892            * test/test_classification.py: Use new Classification and Group
893            classes.
894    
895    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    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    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    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    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    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    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    2003-02-10  Jonathan Coles  <[email protected]>
1024    
1025            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
1026            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            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
1039            SetDefault*() methods on the layer's classification object.
1040            (Layer.__init__): Use the new SetDefault*() methods in the
1041            Classification class.
1042    
1043            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
1044            object instead of a dictionary.
1045    
1046            * Thuban/UI/classifier.py (ClassRenderer): New class to
1047            draw the classifications in the dialog box's table.
1048            (Classifier): Modified to use the ClassRenderer class.
1049    
1050            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
1051            methods of the Classification class.
1052    
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    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    2003-01-28  Jonathan Coles  <[email protected]>
1072    
1073            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1074            Fixed crashing problem on some systems. Dialog box shows
1075            classification data.
1076    
1077            * 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    2003-01-27  Jan-Oliver Wagner <[email protected]>
1088    
1089            * Thuban/__init__.py (_): New.
1090    
1091            * Thuban/Model/classification.py, Thuban/Model/extension.py,
1092            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1093            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    
1100    2003-01-27  Jonathan Coles  <[email protected]>
1101    
1102            * Thuban/Model/layer.py: Classification initialization calls.
1103    
1104            * Thuban/Model/classification.py: Created class to encapsulate
1105            a layer classification. Supports specific data points and
1106            ranges.
1107    
1108            * Thuban/Model/load.py: Added support for loading classification
1109            information.
1110    
1111            * Thuban/Model/save.py: Added support for saving classification
1112            information.
1113    
1114            * Thuban/UI/classifier.py: Initial class for a dialog box for
1115            specifying classification information.
1116    
1117            * Thuban/UI/mainwindows.py: Support for opening the classifier
1118            dialog.
1119    
1120            * Thuban/UI/renderer.py: Support for drawing a layer with the
1121            classification information.
1122    
1123            * Data/iceland_sample_class.thuban: iceland_sample with
1124            classification data.
1125    
1126            * test/test_classification: Tests for the Classification class.
1127    
1128    2002-12-09  Bernhard Herzog  <[email protected]>
1129    
1130            * test/test_command.py: New. Tests for the command classes.
1131    
1132            * 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    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    2002-11-06  Frank Koormann  <[email protected]>
1158    
1159            * 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    
1163    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    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    2002-09-20  Bernhard Herzog  <[email protected]>
1187    
1188            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1189    
1190            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1191    
1192            * 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            * 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            * 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    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    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    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            (MainWindow.build_menu): remove an incorrect comment.
1258    
1259    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    2002-09-06  Bernhard Herzog  <[email protected]>
1269    
1270            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1271            VIEW_POSITION
1272    
1273    2002-09-04  Frank Koormann  <[email protected]>
1274    
1275            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1276    
1277    2002-09-02  Bernhard Herzog  <[email protected]>
1278    
1279            * 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            * 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    2002-08-30  Bernhard Herzog  <[email protected]>
1295    
1296            * 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            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1305            (MapCanvas.do_redraw): Get rid of the unused update_region
1306            instance variable
1307    
1308            * Thuban/UI/view.py: Add/update some doc-strings.
1309    
1310            * 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    2002-08-29  Bernhard Herzog  <[email protected]>
1317    
1318            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1319            arcs with multiple parts.
1320    
1321            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1322            Handle degenrate rectangles.
1323    
1324            * 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    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    2002-08-26  Bernhard Herzog  <[email protected]>
1336    
1337            * 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            * 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            (LayerTableGrid.select_shape): Remove a debug print
1347    
1348            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1349            LayerTableFrame
1350    
1351    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    2002-08-22  Bernhard Herzog  <[email protected]>
1357    
1358            * Thuban/Model/table.py (Table.write_record): New method to write
1359            records.
1360            (Table.__init__): Open the DBF file for writing too.
1361    
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            * 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            * 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    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    2002-08-16  Jan-Oliver Wagner <[email protected]>
1399    
1400            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1401            tree window already open
1402    
1403    2002-08-15  Bernhard Herzog  <[email protected]>
1404    
1405            * 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            * 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    2002-08-14  Bernhard Herzog  <[email protected]>
1417    
1418            * 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            * 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    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    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    2002-07-24  Bernhard Herzog  <[email protected]>
1477    
1478            * 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            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1497            window size into a parameter.
1498    
1499    2002-07-23  Bernhard Herzog  <[email protected]>
1500    
1501            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1502            just commands.
1503    
1504            * 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    2002-07-19  Bernhard Herzog  <[email protected]>
1514    
1515            * 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            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1527            Only have to (un)subscribe CHANGED
1528    
1529            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1530    
1531            * 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    2002-07-18  Bernhard Herzog  <[email protected]>
1536    
1537            * 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            * 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    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            Thuban/Model/session.py (Session.TreeInfo):
1588            Add TreeInfo methods to implement the new tree view update scheme
1589    
1590    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    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  2002-07-09  Bernhard Herzog  <[email protected]>  2002-07-09  Bernhard Herzog  <[email protected]>
1615    
1616            * setup.py: In the setup call, use the thuban homepage as the
1617            value of the url parameter.
1618    
1619          * Examples: New subdirectory for examples.          * Examples: New subdirectory for examples.
1620    
1621          * Examples/simple_extensions/simple_tool.xpm,          * Examples/simple_extensions/simple_tool.xpm,
# Line 49  Line 1665 
1665          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1666          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1667    
1668  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1669    
1670          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1671          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 278  Line 1894 
1894          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1895          position in the statusbar          position in the statusbar
1896    
1897  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1898    
1899          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1900    
1901  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1902            
1903          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1904    
1905          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1906    
1907          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1908    
1909  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1910            box
1911    
1912    2002-04-21  Jan-Oliver Wagner <[email protected]>
1913    
1914          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1915    
1916          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1917    
1918          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1919          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1920    
1921  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1922    
1923          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1924          saving _new_ sessions          saving _new_ sessions
# Line 403  Line 2020 
2020    
2021          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
2022          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
2023    
2024  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
2025    
2026          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
2027          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
2028    
2029          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
2030          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
2031          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
2032          too.          too.
# Line 520  Line 2136 
2136          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2137          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2138    
2139          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2140          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2141          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2142          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2143          the application's OnInit method          the application's OnInit method
# Line 537  Line 2153 
2153          layer to the tableview dialog.          layer to the tableview dialog.
2154    
2155          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2156          (TableGrid):          (TableGrid):
2157          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2158          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2159          (TableFrame.__init__):          (TableFrame.__init__):
# Line 604  Line 2220 
2220  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2221    
2222          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2223            
2224          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2225          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2226            
2227          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2228          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2229          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 654  Line 2270 
2270          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2271          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2272          link_file method          link_file method
2273            
2274          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2275          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2276    
# Line 691  Line 2307 
2307          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2308          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2309          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2310            
2311          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2312          installer          installer
2313    

Legend:
Removed from v.208  
changed lines
  Added in v.662

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26