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

Legend:
Removed from v.9  
changed lines
  Added in v.669

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26