/[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 269 by bh, Thu Aug 22 10:25:55 2002 UTC revision 646 by jonathan, Fri Apr 11 09:15:32 2003 UTC
# Line 1  Line 1 
1    2003-04-11  Jonathan Coles   <[email protected]>
2    
3            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
4        Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
5        Resources/Bitmaps/group_use_none.xpm, Resources/Bitmaps/group_use_not.xpm,
6        Resources/Bitmaps/hide_layer.xpm, Resources/Bitmaps/layer_properties.xpm,
7        Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
8        Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
9        New.
10    
11    2003-04-10  Jonathan Coles   <[email protected]>
12    
13            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
14            Should pass group to ClassGroup constructor.
15    
16    2003-04-10  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/classification.py: (ClassGroup): Move all the common
19            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
20            here. Implement SetVisible(), IsVisible().
21            (ClassGroup.__init__): Add group parameter which acts as a copy
22            constructor.
23    
24            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
25            "Visible" check boxes.
26            (Classifier): Rename the buttons and refactor the code to match
27            the new labels.
28    
29            * Thuban/UI/legend.py: Classify button is now called "Properties".
30            Refactored the code to change variable names.
31            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
32    
33            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
34            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
35            renamed to MainWindow.LayerEditProperties.
36            (MainWindow.ToggleLegend): Don't include map name in legend title.
37            (MainWindow.SetMap): Added the map name to the window title.
38            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
39            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
40            Functionality is found in the layer properties dialog.
41    
42            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
43            draw visible groups.
44    
45    2003-04-09  Jonathan Coles   <[email protected]>
46    
47            * Thuban/UI/classgen.py: Modifications to allow simple
48            addition and selection of new color schemes.
49            (MonochromaticRamp): New. Generates a ramp between two colors.
50            (RedRamp): New. Generates a ramp of all red.
51            (GreenRamp): New. Generates a ramp of all green.
52            (BlueRamp): New. Generates a ramp of all blue.
53    
54    2003-04-09  Jonathan Coles   <[email protected]>
55    
56            * Thuban/Model/classification.py (Classification.__deepcopy__):
57            Need to copy over field and fieldType attributes.
58    
59            * Thuban/Model/table.py (Table.field_range): New. Retrive the
60            maximum and minimum values over the entire table for a given
61            field.
62            (Table.GetUniqueValues): New. Retrieve all the unique values
63            in the table for a given field.
64    
65            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
66            (GenUniquePanel): New. Controls to allow the user to select
67            which unique field values they would like in the classification.
68            (CustomRampPanel): Code that was in ClassGenDialog that allows
69            the user to select the properties for a custom ramp.
70            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
71    
72            * Thuban/UI/classifier.py: Removed a lot of debugging code.
73            (Classifier._SetClassification): Callback method so that the
74            class generator can set the classification in the grid.
75            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
76            editing of a group properties class into a wxWindows control.
77    
78            * Thuban/UI/dock.py: It was decided that if the user closes
79            a dockable window the window should simply hide itself. That
80            way if the user wants to show the dock again it appears in the
81            same place as it was when it was closed.
82            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
83            (DockableWindow._OnButtonClose): Hide the window instead of
84            destroying it.
85            (DockableWindow._OnClose): Hide the window instead of
86            destroying it.
87    
88            * Thuban/UI/legend.py (LegendTree): Use a private method to
89            consistently set the font and style of the text. Fixes RTbug #1786.
90    
91            * Thuban/UI/mainwindow.py: Import just the Classifier class.
92    
93    2003-04-07  Bernhard Herzog  <[email protected]>
94    
95            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
96            to the map module
97    
98    2003-04-07  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
101            favor of ToggleSessionTree
102            (MainWindow.ToggleSessionTree): New method to toggle visibility of
103            the session tree.
104            (MainWindow.SessionTreeShown): New method to return whether the
105            session tree is currently shown.
106            (MainWindow.ToggleLegend): New method to toggle visibility of the
107            legend
108            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
109            LegendShown
110            (MainWindow.LegendShown): New method to return whether the legend
111            is currently shown.
112            (_method_command): Add checked parameter so we can define check
113            menu items
114            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
115            mainwindow methods.
116            (show_session_tree, show_legend commands): Removed.
117            (toggle_session_tree, toggle_legend commands): New commands to
118            toggle the visibility of the dialogs
119    
120    2003-04-07  Jonathan Coles   <[email protected]>
121    
122            * Thuban/UI/classgen.py: Fix Windows problem.
123    
124            * Thuban/UI/dock.py: Fix Windows problem.
125    
126            * Thuban/UI/mainwindow.py: Use False instead of false.
127            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
128    
129    2003-04-07  Jonathan Coles   <[email protected]>
130    
131            Since we now say that the order of the groups in a classification
132            matters, it makes sense to be able to manipulate that order. Most
133            of the changes to Thuban/Model/classification.py are to that end.
134    
135            * Thuban/Model/classification.py (Classification.AppendGroup,
136            Classification.InsertGroup, Classification.ReplaceGroup,
137            Classification.RemoveGroup, Classification.GetGroup): Do as the
138            names imply.
139            (Classification.FindGroup): This was called GetGroup, but GetGroup
140            takes an index, while FindGroup takes a value.
141            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
142            REFERENCE. Currently there is a cyclic reference between the layer
143            and its classification. If the classification doesn't need to know
144            its owning layer we can change this, since it may make sense to be
145            able to use the same classification with different layers.
146    
147            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
148    
149            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
150            not AddGroup()
151    
152            * Thuban/UI/classifier.py: Now that we can depend on the order in
153            a Classification and have methods to manipulate that order we don't
154            need to use our own data structures in the grid. We can simply make
155            the grid/table access the information they need from a copy of
156            the classification object.
157            (Classifier._OnCloseBtn): Event handler for when the user clicks
158            'Close'. This is needed so if the user applies changes and then
159            continues to change the table the user has the option of discarding
160            the most recent changes and keeping what they applied.
161    
162            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
163            into the same group.
164    
165            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
166            with a really old version of proj, PJ_VERSION won't even be defined.
167            If it isn't defined then just compile so that the function always
168            returns Py_False.
169    
170            * test/test_classification.py: Fix tests to use the renamed methods.
171            Still need to write tests for the new methods.
172    
173    2003-04-04  Jonathan Coles   <[email protected]>
174    
175            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
176            call to SetSelection out of the method and before the call
177            to __SelectField in __init__. This prevents a recursion of events
178            when _OnFieldSelect is triggered by the user.
179    
180    2003-04-04  Jonathan Coles   <[email protected]>
181    
182            * Thuban/Model/classification.py: Rename Color.None to
183            Color.Transparent.
184            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
185            Don't bother copying the color, since Colors are immutable.
186    
187            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
188            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
189            Thuban/UI/renderer.py, Thuban/UI/view.py:
190            Rename Color.None to Color.Transparent.
191        
192            * test/test_classification.py, test/test_load.py: Rename Color.None
193            to Color.Transparent.
194    
195    2003-04-04  Jonathan Coles   <[email protected]>
196    
197            * Thuban/Model/classification.py: Fix assert calls.
198            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
199            Copy the color parameter rather than hold onto a reference.
200    
201            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
202            the color object.
203            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
204            are sure there exists only one refernce to Color.None in the system.
205            This allows us to use 'is' rather than the comparision functions.
206            
207            * Thuban/Model/save.py: Fix assert calls.
208            
209            * Thuban/UI/classifier.py: Fix assert calls.
210            (ClassGrid._OnCellDClick): Call up to the classifier to open the
211            dialog to edit the groups properties.
212            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
213            correctly if a cell is resized.
214            (ClassTable.SetClassification): New. Changes the classification
215            that is in the table.
216            (ClassTable.__SetRow): Allow groups to be prepended.
217            (Classifier): New code for opening the EditProperties and
218            GenerateRanges dialogs.
219            (SelectPropertiesDialog.__GetColor): Only set the color in the
220            color dialog if the current color is not None.
221            
222            * Thuban/UI/dock.py: Fix assert calls.
223            
224            * Thuban/UI/legend.py: Fix assert calls.
225            
226            * Thuban/UI/renderer.py: Fix assert calls.
227            
228            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
229            classifications.
230            (GenRangePanel): Panel specific to range generation.
231            (GenSingletonPanel): Panel specific to singleton generation.
232            (ClassGenerator): Class responsible for actually generating
233            the classification from the data gathered in the dialog box.
234            (PropertyRamp): Generates properties whose values range from
235            a starting property to an ending property.
236    
237    2003-04-03  Bernhard Herzog  <[email protected]>
238    
239            * test/support.py (print_garbage_information): New function that
240            prints information about still connected messages and memory
241            leaks.
242            (run_suite): Removed.
243            (run_tests): New function for use as a replacement of
244            unittest.main in the test_* files. This one calls
245            print_garbage_information at the end.
246    
247            * test/runtests.py (main): Use support.print_garbage_information
248    
249            * test/test_layer.py: Use support.run_tests instead of
250            unittest.main so we get memory leak information
251            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
252            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
253            (TestLayerLegend.test_visibility): Call the layer's Destroy method
254            to fix a memory leak.
255    
256            * test/test_classification.py: Use support.run_tests instead of
257            unittest.main so we get memory leak information
258            (TestClassification.test_classification): Call the layer's Destroy
259            method to fix a memory leak.
260    
261    2003-04-02  Bernhard Herzog  <[email protected]>
262    
263            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
264            Handle the reference counts of the return value and errors in
265            PyArg_ParseTuple correctly.
266    
267            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
268            sure the filename is absolute to avoid problems when saving the
269            session again
270    
271            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
272    
273    2003-04-01  Jonathan Coles   <[email protected]>
274    
275            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
276            that there actually are points in the returned list of points
277            before trying to index into the list. The list may be empty if
278            the shape is a Null Shape.
279    
280    2003-04-01  Bernhard Herzog  <[email protected]>
281    
282            * test/test_map.py: Don't use from <module> import *
283    
284    2003-04-01  Jonathan Coles   <[email protected]>
285    
286            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
287            LAYER_LEGEND_CHANGED
288    
289            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
290            self.Destroy() to close the window after yesterday's changes.
291    
292            * test/test_map.py, test/test_session.py: Fix messages that
293            are sent from maps and layers.
294    
295    2003-03-31  Jonathan Coles   <[email protected]>
296    
297            * Thuban/UI/classifier.py: Commented out some debugging statements.
298            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
299            RTbug #1769.
300    
301            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
302            position (although position doesn't work yet under GTK).
303            (DockableWindow.Destroy): New. Called when the window must be
304            closed. Namely needed when the DockFrame closes and must close
305            its children.
306            (DockFrame): Listen for EVT_CLOSE and destroy all children.
307    
308            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
309            when then window is told to close.
310            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
311            comment in source for more info.
312    
313            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
314    
315            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
316            symmetry with other such methods.
317            (MainWindow.ShowLegend): Show the legend docked by default.
318    
319    2003-03-28  Jonathan Coles   <[email protected]>
320    
321            * Thuban/UI/classifier.py: Support for highlighting a specific
322            group within the grid when the classification dialog is opened.
323            Also contains a lot of debugging printouts which will later
324            be removed.
325    
326            * Thuban/UI/dock.py: Complete rework on the dock code so that
327            that it is fairly removed from the rest of the Thuban application.
328            It is easy to add new docks which the rest of the program having
329            to be aware of them.
330    
331            * Thuban/UI/legend.py: Modifications to support selecting a
332            specific group in the classification dialog. Changed how layers
333            are drawn when the layer is visible/invisible.
334    
335            * Thuban/UI/mainwindow.py: Removed legend specific code and
336            replaced it with calls to the new dock code.
337    
338            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
339            to check if scale > 0. Trying to track down a divide by zero.
340    
341    2003-03-26  Jonathan Coles   <[email protected]>
342    
343            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
344            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
345            now part of DockableWindow.
346            (LegendPanel.DoOnSelChanged): Select the current layer in the
347            map.
348            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
349            with the selected layer and/or group.
350    
351    2003-03-26  Jonathan Coles   <[email protected]>
352    
353            This putback contains the code for dockable windows. There is
354            no support in wxWindows as of this date for windows that can
355            attach themselves to other windows.
356    
357            The current model contains a DockableWindow which has a parent
358            window for when it is detached and a dock window that it puts
359            its contents in when it is docked. The contents of a DockableWindow
360            must be a DockPanel. DockPanel itself derives from wxPanel.
361    
362            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
363            message, not a LAYER_LEGEND_CHANGED message.
364    
365            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
366    
367            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
368            as one of the style properties for the fieldTypeText item to
369            be sure that its size is correct when the text changes.
370    
371            * Thuban/UI/dock.py: New. Classes for the DockPanel and
372            DockableWindow.
373    
374            * Thuban/UI/legend.py: Added some more buttons and made the
375            LegendPanel a DockPanel.
376    
377            * Thuban/UI/mainwindow.py: Added sash windows to the main window
378            and supporting functions for manipulating the sashes.
379            (MainWindow.ShowLegend): Create a DockableWindow with the
380            LegendPanel as the contents.
381    
382            * Thuban/UI/messages.py: Added DOCKABLE_* messages
383    
384            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
385            not LAYER_LEGEND_CHANGED, messages.
386    
387    2003-03-25  Jonathan Coles   <[email protected]>
388    
389            * setup.py: Added custom script bdist_rpm_build_script so that
390            when the rpm is built the path to wx-config is correct.
391    
392            * setup.cfg: Added line saying to use the custom build script
393    
394    2003-03-20  Jonathan Coles   <[email protected]>
395    
396            Initial implementation of the Legend.
397    
398            * Thuban/UI/legend.py: New. Creates a window that shows the map's
399            Legend information and allows the user to add/modify classifications
400            and how the layers are drawn on the map.
401    
402            * setup.py: New command 'build_docs' which currently uses
403            happydoc to generate html documentation for Thuban.
404    
405            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
406            Returns a string which is appropriately describes the group.
407    
408            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
409            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
410    
411            * Thuban/Model/map.py (Map): Rename messages and use new, more
412            specific, messages.
413    
414            * Thuban/Model/messages.py: New message to indicate that a layer's
415            data has changed (LAYER_CHANGED). New map messages to indicate
416            when layers have been added/removed/changed or if the stacking order
417            of the layers has changed.
418    
419            * Thuban/Model/session.py: Rename and use new messages.
420    
421            * Thuban/UI/classifier.py: Remember if any changes have actually
422            been applied so that if the dialog is cancelled without an application
423            of changes we don't have to set a new classification.
424            (ClassDataPreviewer): Pulled out the window specific code and put it
425            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
426            symbols on any DC.
427            
428            * Thuban/UI/mainwindow.py: New code to open the legend.
429    
430            * Thuban/UI/view.py: Use new message names.
431    
432    2003-03-19  Jonathan Coles   <[email protected]>
433    
434            * Thuban/UI/main.py (verify_versions): New. Checks the versions
435            of Python, wxPython, and some other libraries.
436    
437            * extensions/thuban/wxproj.cpp (check_version): Checks the given
438            version against what wxproj was compiled with.
439            (check_version_gtk): If wxproj was compiled with gtk then check
440            the given version against the version of the gtk library
441            currently being used.
442    
443    2003-03-14  Bernhard Herzog  <[email protected]>
444    
445            * test/test_command.py: Run the tests when the module is run as a
446            script
447    
448    2003-03-14  Bernhard Herzog  <[email protected]>
449    
450            Implement selection of multiple selected shapes in the same layer:
451    
452            - Introduce a new class to hold the selection. This basically
453              replaces the interactor which was nothing more than the
454              selection anyway. A major difference is of course that the new
455              selection class supports multiple selected shapes in one layer
456            
457            - Move the object that represents the selection from the
458              application to the canvas. The canvas is a better place than the
459              application because the selection represents which shapes and
460              layer of the map displayed by the canvas are selected and
461              affects how the map is drawn.
462    
463            - Make the selection and its messages publicly available through
464              the mainwindow.
465    
466            - The non-modal dialogs do not get a reference to the interactor
467              anymore as they can simply refer to their parent, the
468              mainwindow, for the what the interactor had to offer.
469    
470            * Thuban/UI/selection.py: New module with a class to represent the
471            selection.
472    
473            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
474            these unused messages
475    
476            * Thuban/UI/application.py (ThubanApplication.OnInit)
477            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
478            interactor is gone now.
479            (ThubanApplication.CreateMainWindow): There is no interactor
480            anymore so we pass None as the interactor argument for now for
481            compatibility.
482    
483            * Thuban/UI/view.py (MapCanvas.delegated_messages)
484            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
485            Unsubscribe, delegate messages according to the delegated_messages
486            class variable.
487            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
488            attributes from instance variables as described with the
489            delegated_methods class variable.
490            (MapCanvas.__init__): New instance variable selection holding the
491            current selection
492            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
493            pass them on to the renderer
494            (MapCanvas.SetMap): Clear the selection when a different map is
495            selected.
496            (MapCanvas.shape_selected): Simple force a complete redraw. The
497            selection class now takes care of only issueing SHAPES_SELECTED
498            messages when the set of selected shapes actually does change.
499            (MapCanvas.SelectShapeAt): The selection is now managed in
500            self.selection
501    
502            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
503            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
504            Unsubscribe, delegate messages according to the delegated_messages
505            class variable.
506            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
507            attributes from instance variables as described with the
508            delegated_methods class variable.
509            (MainWindow.__init__): The interactor as ivar is gone. The
510            parameter is still there for compatibility. The selection messages
511            now come from the canvas.
512            (MainWindow.current_layer, MainWindow.has_selected_layer):
513            Delegate to the the canvas.
514            (MainWindow.LayerShowTable, MainWindow.Classify)
515            (MainWindow.identify_view_on_demand): The dialogs don't need the
516            interactor parameter anymore.
517    
518            * Thuban/UI/tableview.py (TableFrame.__init__)
519            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
520            (LayerTableFrame.row_selected): The interactor is gone. It's job
521            from the dialog's point of view is now done by the mainwindow,
522            i.e. the parent. Subscribe to SHAPES_SELECTED instead
523            of SELECTED_SHAPE
524            
525            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
526            is gone. It's job from the dialog's point of view is now done by
527            the mainwindow, i.e. the parent.
528            
529            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
530            gone. It's job from the dialog's point of view is now done by the
531            mainwindow, i.e. the parent.
532    
533            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
534            gone. It's job from the dialog's point of view is now done by the
535            mainwindow, i.e. the parent.
536            (SessionTreeCtrl.__init__): New parameter mainwindow which is
537            stored as self.mainwindow. The mainwindow is need so that the tree
538            can still subscribe to the selection messages.
539            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
540            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
541            selection is now accessible through the mainwindow. Subscribe to
542            SHAPES_SELECTED instead of SELECTED_SHAPE
543    
544            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
545            SHAPES_SELECTED message now.
546            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
547            so deal with multiple shapes
548            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
549            gone. It's job from the dialog's point of view is now done by the
550            mainwindow, i.e. the parent.
551    
552            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
553            parameter is now a list of shape ids.
554            (RecordTable.SetTable): The second parameter is now a list of
555            indices.
556    
557            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
558            selected_shape parameter and ivar to selected_shapes. It's now a
559            list of shape ids.
560            (MapRenderer.draw_label_layer): Deal with multiple selected
561            shapes. Rearrange the code a bit so that the setup and shape type
562            distinctions are only executed once.
563    
564            * test/test_selection.py: Test cases for the selection class
565    
566    2003-03-11  Jonathan Coles   <[email protected]>
567    
568            * Thuban/Model/load.py: Temporary fix so that the xml reader
569            doesn't cause Thuban to crash.
570    
571            * Thuban/Model/layer.py: Handle the cyclic references between
572            a layer and its classification better, and be sure to disconnect
573            the classification from the layer when the layer is destroyed
574            so that we don't maintain a cyclic reference that may not be
575            garbage collected.
576    
577            * Thuban/Model/classification.py: See comment for layer.py.
578    
579    2003-03-12  Jan-Oliver Wagner <[email protected]>
580    
581            * HOWTO-Release: New. Information on the steps for releasing
582            a new version of Thuban.
583    
584    2003-03-11  Jonathan Coles   <[email protected]>
585    
586            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
587            Use True instead of true.
588            (Classifier): Should have a single panel in which all the controls lie.
589    
590            * Thuban/UI/proj4dialog.py: Add normal border.
591    
592            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
593    
594            * Thuban/UI/mainwindow.py: Use True instead of true.
595    
596            * setup.py: Update some definitions to use wxWindows2.4 files
597    
598            * Data/iceland_sample_class.thuban: Fixed file so that the
599            field_type information is present.
600    
601    2003-03-10  Jonathan Coles   <[email protected]>
602    
603            * Thuban/UI/classifier.py (Classifier.__init__): Make the
604            field type label grow so that when the text changes the
605            size is updated correctly. This may be a wxWindows bug.
606    
607    2003-03-10  Jonathan Coles   <[email protected]>
608    
609            * Thuban/UI/application.py: Changed SESSION_CHANGED to
610            SESSION_REPLACED.
611    
612            * Thuban/UI/classifier.py: Wrap text with _().
613            (ClassGrid.CreateTable): Set dimensions and size hints here,
614            instead of in Reset, so we only set the size once.
615    
616            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
617    
618            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
619            Call Close() instead of Shutdown().
620    
621            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
622    
623            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
624            Go back to using OnClose() instead of Shutdown().
625    
626    2003-03-10  Jonathan Coles   <[email protected]>
627    
628            * Thuban/UI/classifier.py (Classifier): SelectField() needed
629            to know the old field index as well as the new one.
630    
631    2003-03-10  Jonathan Coles   <[email protected]>
632    
633            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
634            to correctly set the table information and call this from
635            __init__ and from _OnFieldSelect so that all the information
636            is up to date when the dialog opens and when a field is changed.
637    
638    2003-03-10  Jonathan Coles   <[email protected]>
639    
640            * Thuban/Model/classification.py (Classification): Don't use
641            layer's message function directly, use the ClassChanged() method
642            when then classification changes. SetField/SetFieldType/SetLayer
643            must keep the information about field name and field type in
644            sync when an owning layer is set or removed.
645    
646            * Thuban/Model/layer.py: Added ClassChanged() so that the
647            classification can tell the layer when its data has changed.
648            (Layer.SetClassification): Accepts None as an arguement to
649            remove the current classification and correctly handles
650            adding a new classification.
651    
652            * Thuban/Model/load.py: Comment out print statement
653    
654            * test/test_classification.py, test/test_save.py: New and
655            improved tests.
656    
657    2003-03-07  Jonathan Coles   <[email protected]>
658    
659            * Thuban/Model/classification.py: Implemented __copy__ and
660            __deepcopy__ for ClassGroup* and ClassGroupProperites so
661            they can easily be copied by the classifier dialog.
662            (ClassGroupProperites.__init__): The default line color should
663            have been Color.Black.
664    
665            * Thuban/UI/classifier.py: Setting and Getting table values now
666            uses a consistent set of functions.
667            (Classifier): Now non-modal. Has field type label which changes
668            as the field changes. Keep track of buttons in a list so that
669            we can enable/disable the buttons when the None field is selected.
670            (SelectPropertiesDialog): Add buttons to make the colors transparent.
671    
672            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
673            does what OnClose did, but can be called by the application to
674            close a window. Needed when a session changes, and we have to
675            close the classifier windows.
676    
677            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
678            Shuts down open dialogs. Used when a new session is created
679            or a session is opened.
680            (MainWindow.SaveSession): Should only call application.SaveSession()
681            if we don't call SaveSessionAs first.
682            (MainWindow.Classify): Allow different classifier dialogs for
683            different layers.
684    
685            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
686            the parent class handle it. Add Shutdown() to unsubscibe from
687            event notification and call the parent Shutdown(). This was
688            necessary so the application can close the tree window.
689    
690    2003-03-06  Jonathan Coles   <[email protected]>
691    
692            * Thuban/Model/classification.py: Minor documentation changes,
693            Addition of __eq__ and __ne__ methods.
694            (Classification.SetLayer): prevent recursion between this method
695            and Layer.SetClassification().
696    
697            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
698    
699            * Thuban/Model/layer.py (SetClassification): prevent recursion
700            between this method and Classification.SetLayer().
701    
702            * test/test_classification.py, test/test_load.py,
703            test/test_session.py: Fixed and added tests for the classification
704            classes.
705    
706    2003-03-06  Bernhard Herzog  <[email protected]>
707    
708            * Thuban/UI/classifier.py (ClassGrid.__init__)
709            (ClassGrid.CreateTable): Move the SetSelectionMode call to
710            CreateTable because otherwise it triggers an assertion in
711            wxPython/wxGTK 2.4.
712    
713    2003-03-05  Jonathan Coles   <[email protected]>
714    
715            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
716    
717            * Thuban/Model/load.py: import FIELDTYPE constants from table.
718    
719            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
720    
721            * Thuban/Model/table.py: Put FIELDTYPE constants back.
722    
723    2003-03-05  Jonathan Coles   <[email protected]>
724    
725            * Thuban/UI/classifier.py: Added class documentation.
726            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
727            Store just the groups in the table and generate the other
728            column information when it is requested. Add "None" field
729            to pull-down to select no classification.
730    
731            * Thuban/common.py: Moved FIELDTYPE constants from table.py
732            (Str2Num): Only catch ValueError exceptions.
733    
734            * Thuban/Model/classification.py: Class documentation. Renaming
735            of methods with Stroke to Line. Groups are stored in a single
736            list with the default as the first element. Groups are searched
737            in the order they appear in the list.
738    
739            * Thuban/Model/color.py: Documentation.
740    
741            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
742            the kind of data represented by a field.
743    
744            * Thuban/Model/load.py (ProcessSession): Use proper string
745            conversion function; fixes RTbug #1713.
746    
747            * Thuban/Model/save.py (Saver): Store field type information.
748    
749            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
750            (Table): Add field_info_by_name() to retrieve field information
751            by specifying the field name, not the number.
752    
753            * Thuban/UI/mainwindow.py: Function name changes.
754    
755            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
756            get the layer classification once. Don't try to classify
757            values when the field is None: just use the default properties.
758    
759            * Thuban/UI/view.py: Function name changes.
760    
761            * Doc/thuban.dtd: Add field_type attribute to a classification.
762    
763    2003-03-04  Bernhard Herzog  <[email protected]>
764    
765            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
766            the fill and stroke layer attributes optional with suitable
767            default values. Add the stroke_width layer attribute. Use correct
768            syntax for empty elements. Make the attribute list for labels
769            refer to the label element.
770    
771    2003-03-04  Bernhard Herzog  <[email protected]>
772    
773            * setup.py (thuban_build_py.build): Add a comment about distutils in
774            Python 2.3 containing some of the functionality we implement in
775            setup.py ourselves.
776    
777            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
778            before the selection mode. Doing it the other way round triggers
779            an assertion in wxWindows.
780    
781            * Thuban/Model/save.py (escape): Fix typo in doc-string
782    
783            * Thuban/Model/classification.py: Remove unnecessary wxPython
784            import
785    
786    2003-03-04  Jonathan Coles   <[email protected]>
787    
788            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
789            Parameter 'value' should default to None.
790    
791            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
792            the class attribute __classification is now private.
793    
794            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
795            Classifier to ClassGrid. Added support for removing selected rows,
796            which including code for keeping track of when cells are selected,
797            and deselected.
798            (ClassTable): Support for added/removing rows. Fixed a problem
799            with __ParseInput whereby it would not allow strings (only numbers)
800            to be entered.
801            (Classifier): Added button and supporting code for removing
802            selected rows.
803    
804    2003-02-27  Jonathan Coles   <[email protected]>
805    
806            * Thuban/common.py: Moved color conversion functions into
807            Thuban/UI/common.py.
808            (Str2Num): Now converts the float (not the string) to a long/int
809            so that an exception isn't thrown.
810    
811            * Thuban/UI/common.py: Common functions used in several UI modules
812    
813            * Thuban/Model/classification.py: Changed the class hierarchy
814            so that a Classification consists of Groups which return
815            Properties when a value matches a Group.
816    
817            * Thuban/Model/layer.py: Fixed name resolution problem.
818    
819            * Thuban/Model/load.py: Use new Classification and Group functions.
820    
821            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
822            failure.
823            (Saver.write_classification): Use new Classification and Group
824            functions.
825    
826            * Thuban/UI/classifier.py: Changes to use new Classification and Group
827            functions. Fix to create a tuple with a single value instead of
828            simply returning the value.
829    
830            * Thuban/UI/renderer.py: Use new Classification and Group functions.
831            Use common.py functions.
832    
833            * Thuban/UI/tree.py: Use common.py functions.
834            
835            * test/test_classification.py: Use new Classification and Group
836            classes.
837    
838    2003-02-24  Jonathan Coles   <[email protected]>
839    
840            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
841            functions from Thuban color objects to wxWindow colour objects.
842    
843            * Thuban/Model/classification.py (Classification): Renamed
844            GetProperties() to GetClassData(). Used the new iterator
845            in TreeInfo().
846            (ClassIterator): Iterator implementation to iterate over the
847            ClassData objects in a classification object.
848    
849            * Thuban/Model/save.py (Saver.write_classificaton): Uses
850            the new iterator to save the classification information.
851    
852            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
853            for changing the stroke and fill colors and previewing the
854            changes.
855    
856            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
857            MainWindow.SaveSessionAs): Text string changes so the dialogs
858            have more meaningful titles.
859    
860            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
861            Classification method name from GetProperties to GetClassData.
862    
863            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
864            instead of accessing now non-existent class variables.
865    
866    2003-02-24  Bernhard Herzog  <[email protected]>
867    
868            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
869            unneeded Shape() call. Rendering is substantially faster without
870            it and it avoids some problems with broken shape files.
871    
872    2003-02-20  Frank Koormann   <[email protected]>
873    
874            Force minimal size of identify and label dialogs. The autosizing
875            looked too ugly.
876    
877            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
878            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
879            Set size of listctrl.
880            * Thuban/UI/identifyview.py (IdentifyView.__init__):
881            Set size of dialog.
882    
883    2003-02-19  Jonathan Coles   <[email protected]>
884    
885            * test/test_classification.py, test/test_layer.py,
886            test/test_load.py, test/test_map.py, test/test_session.py:
887            Updated the tests to use the new functions that are in the
888            respective classes.
889    
890            * Thuban/Model/classification.py (Classification):
891            Uses the new ClassData* classes. Modification messages are
892            passed up to the parent layer (if it exists).
893            (ClassData): New class to encapsulate the common data in each
894            classification property.
895            (ClassDataDefault): Represents the Default class. data.
896            (ClassDataPoint): Represents a single class. data point
897            (ClassDataRange): Represents a class. range
898            (ClassDataMap): Represents a class. map (unused).
899    
900            * Thuban/Model/color.py: Added Color.None to represent something
901            with no color. Color.Black represents the color black.
902            (NoColor): Helper class derived from Color to represent something
903            with no color.
904    
905            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
906            stroke_width attributes. Made the 'classification' attribute private.
907            New methods for setting/getting the classification.
908    
909            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
910            to get the classifcation and use the new ClassData* classes to
911            hold the classification data. Use Str2Num to convert numbers
912            properly.
913    
914            * Thuban/Model/save.py (Saver): Use new Color and Classification
915            methods
916    
917            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
918            custom grid.
919            (ClassTable): Support for editing Values and Labels and for
920            changing what type (point or range) of data is stored in each
921            property based on how the user enters the data.
922            (Classifier): Support for saving the new classifications and
923            launching the dialog to edit a property.
924            (SelectPropertiesDialog): New class for editing the visual
925            properties of a classification (stroke color, width, and fill color)
926            (ClassPreviewer): Took the Draw method from ClassRenderer and
927            made most of it into this new class. Intend to use this class in
928            the SelectPropertiesDialog for previewing changes.
929    
930            * Thuban/UI/renderer.py: Use new Color and Classification methods.
931    
932            * Thuban/UI/tree.py: Formatting changes.
933    
934            * Doc/thuban.dtd: Add 'label' element
935    
936            * Thuban/common.py: New. Contains common routines used throughout
937            the code.
938            (Str2Num): Takes a string and converts it to the "best" type of
939            number.
940    
941    2003-02-14  Bernhard Herzog  <[email protected]>
942    
943            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
944            dragging flag is always set to 0 even when the tool implementation
945            raises an exception
946    
947    2003-02-11  Bernhard Herzog  <[email protected]>
948    
949            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
950            method to create a splash screen.
951            (ThubanApplication.ShowMainWindow): New. Show the main window.
952            Needed so the splash screen can display the mainwindow
953            (ThubanApplication.OnInit): Call the
954            new splash_screen method to determine whether the application
955            should display a splash screen. If it displays a splash screen do
956            not immediately show the main window.
957    
958    2003-02-11  Jonathan Coles  <[email protected]>
959    
960            * Thuban/Model/classification.py: Added import line to fix
961            feature conflicts between running on python2.2 and python2.1.
962    
963            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
964            onto the clinfo parameter, so removed the deepcopy().
965    
966    2003-02-10  Jonathan Coles  <[email protected]>
967    
968            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
969            Added element_open variable to track opening and closing of tags
970            so that tags that don't span more than one line are closed with
971            /> instead of </tag_name>. Use the GetDefault*() methods of
972            the Classification class.
973    
974            * Thuban/Model/classification.py (Classificaton): Added set and
975            get methods for the default data. The class also takes a layer
976            reference so that modification messages can be sent. Fixed the
977            methods to use the new ClassData class.
978            (ClassData): New class to encapsulate the classification data
979    
980            * Thuban/Model/layer.py (Layer): Remove the
981            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
982            SetDefault*() methods on the layer's classification object.
983            (Layer.__init__): Use the new SetDefault*() methods in the
984            Classification class.
985    
986            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
987            object instead of a dictionary.
988    
989            * Thuban/UI/classifier.py (ClassRenderer): New class to
990            draw the classifications in the dialog box's table.
991            (Classifier): Modified to use the ClassRenderer class.
992    
993            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
994            methods of the Classification class.
995    
996            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
997            of the ClassData class.
998    
999            * test/test_classification.py, test/test_layer.py,
1000            test/test_map.py, test/test_session.py: Fix the tests to work
1001            with the above code changes.
1002    
1003    2003-02-03  Jonathan Coles  <[email protected]>
1004    
1005            * Thuban/Model/classification.py (Classification): Added getNull()
1006            to return the NullData reference
1007    
1008            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
1009            Layer.SetStrokeWidth): Modified these functions to change the
1010            null data in the classification rather than keep these values
1011            directly in the Layer class. Menu options to change these values
1012            work again.
1013    
1014    2003-01-28  Jonathan Coles  <[email protected]>
1015    
1016            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
1017            Fixed crashing problem on some systems. Dialog box shows
1018            classification data.
1019    
1020            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
1021            Colors in the tree view.
1022    
1023            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
1024            the tree info for classifications. Commented out unnecessary lines.
1025    
1026            * Thuban/Model/classification.py (Classification.TreeInfo): New
1027            function to add information about the classification into the
1028            tree view.
1029    
1030    2003-01-27  Jan-Oliver Wagner <[email protected]>
1031    
1032            * Thuban/__init__.py (_): New.
1033    
1034            * Thuban/Model/classification.py, Thuban/Model/extension.py,
1035            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
1036            Thuban/Model/session.py, Thuban/UI/application.py,
1037            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
1038            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
1039            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
1040            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
1041            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
1042    
1043    2003-01-27  Jonathan Coles  <[email protected]>
1044    
1045            * Thuban/Model/layer.py: Classification initialization calls.
1046    
1047            * Thuban/Model/classification.py: Created class to encapsulate
1048            a layer classification. Supports specific data points and
1049            ranges.
1050    
1051            * Thuban/Model/load.py: Added support for loading classification
1052            information.
1053    
1054            * Thuban/Model/save.py: Added support for saving classification
1055            information.
1056    
1057            * Thuban/UI/classifier.py: Initial class for a dialog box for
1058            specifying classification information.
1059    
1060            * Thuban/UI/mainwindows.py: Support for opening the classifier
1061            dialog.
1062    
1063            * Thuban/UI/renderer.py: Support for drawing a layer with the
1064            classification information.
1065    
1066            * Data/iceland_sample_class.thuban: iceland_sample with
1067            classification data.
1068    
1069            * test/test_classification: Tests for the Classification class.
1070    
1071    2002-12-09  Bernhard Herzog  <[email protected]>
1072    
1073            * test/test_command.py: New. Tests for the command classes.
1074    
1075            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
1076            (Command.IsTool): New method to distinguish between command
1077            switching tools and other commands.
1078    
1079            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
1080            the tool to avoid direct assignments to instance variables
1081            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
1082            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
1083            change the tool
1084    
1085            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
1086            active tool's command turns insensitive, disable the tool.
1087            (_tool_command): Use the new ToolCommand class
1088    
1089            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
1090            SelectTool method to change the tool
1091            (iconfile): Use the ToolCommand class
1092    
1093    2002-12-03  Bernhard Herzog  <[email protected]>
1094    
1095            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
1096            the case of selected items that are not children of Layers or Maps
1097            properly. Previously this bug would trigger an assertion in
1098            wxWindows.
1099    
1100    2002-11-06  Frank Koormann  <[email protected]>
1101    
1102            * Thuban/UI/mainwindow.py: Altered the order of tools in the
1103            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
1104            Full Extent).
1105    
1106    2002-10-23  Bernhard Herzog  <[email protected]>
1107    
1108            * setup.py (setup call): version now 0.1.3
1109    
1110            * MANIFEST.in: Add the files in test/
1111    
1112            * test/README: Add note about tests requiring the iceland data
1113    
1114            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
1115            copyright notice.
1116    
1117    2002-10-18  Bernhard Herzog  <[email protected]>
1118    
1119            * test/test_map.py
1120            (TestMapWithContents.test_projected_bounding_box): Use an explicit
1121            epsilon.
1122    
1123            * test/support.py (FloatComparisonMixin.assertFloatEqual)
1124            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
1125            message if the assertion fails and don't return the return value
1126            of self.assert_. In assertFloatSeqEqual the return meant that not
1127            all items of the sequence were compared.
1128    
1129    2002-09-20  Bernhard Herzog  <[email protected]>
1130    
1131            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
1132    
1133            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
1134    
1135            * test/test_map.py (TestMapWithContents.test_tree_info): Create
1136            the string with the bounding box on the fly because of platform
1137            differences in the way %g is handled.
1138    
1139            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
1140            DBFfile too because Thuban layers can't yet cope missing DBF
1141            files.
1142    
1143    2002-09-20  Bernhard Herzog  <[email protected]>
1144    
1145            * test/test_menu.py: Use initthuban instead of
1146            add_thuban_dir_to_path to initialize Thuban.
1147    
1148            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
1149            Mixin class for float comparisons
1150            (SubscriberMixin): New. Mixin class to test messages sent through
1151            the Connector class
1152    
1153            * test/README: Fix a typo and add the -v flag to the command for
1154            individual tests
1155    
1156            * test/test_session.py: New. Test cases for Thuban.Model.session
1157    
1158            * test/test_proj.py: New. Test cases for Thuban.Model.proj
1159    
1160            * test/test_map.py: New. Test cases for Thuban.Model.map
1161    
1162            * test/test_layer.py: New. Test cases for Thuban.Model.layer
1163    
1164            * test/test_label.py: New. Test cases for Thuban.Model.label
1165    
1166            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
1167    
1168            * test/test_color.py: New. Test cases for Thuban.Model.color
1169    
1170            * test/test_base.py: New. Test cases for Thuban.Model.base
1171    
1172    2002-09-13  Bernhard Herzog  <[email protected]>
1173    
1174            * Thuban/Model/session.py (Session.forwarded_channels): Forward
1175            the CHANGED channel too.
1176    
1177            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
1178            CHANGED channel too.
1179            (Map.__init__): Call the Modifiable constructor as well.
1180    
1181            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
1182            event if the modified flag changes.
1183            (Modifiable.changed): Tweak the doc-string.
1184    
1185            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
1186            (MainWindow.set_position_text): Put the code that puts the text
1187            with the mouse position into the status bar into the new method
1188            set_position_text so that it can overwritten in derived classes.
1189    
1190    2002-09-12  Bernhard Herzog  <[email protected]>
1191    
1192            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
1193            message box on the main window.
1194    
1195    2002-09-11  Bernhard Herzog  <[email protected]>
1196    
1197            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
1198            the 'E' because it's less likely to interfere with other menu
1199            entries.
1200            (MainWindow.build_menu): remove an incorrect comment.
1201    
1202    2002-09-10  Bernhard Herzog  <[email protected]>
1203    
1204            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
1205            (_tool_command): Add sensitive parameter
1206            (_has_visible_map): Sensitivity callback to tools and other
1207            commands that require a visible map. Use it in map_zoom_in_tool,
1208            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
1209            and map_full_extent
1210    
1211    2002-09-06  Bernhard Herzog  <[email protected]>
1212    
1213            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
1214            VIEW_POSITION
1215    
1216    2002-09-04  Frank Koormann  <[email protected]>
1217    
1218            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
1219    
1220    2002-09-02  Bernhard Herzog  <[email protected]>
1221    
1222            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
1223            wxWindows already and our implementation doesn't work correctly
1224            with wxGTK 2.3:
1225            (MapCanvas.__init__): Remove the instance variable
1226            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
1227            be drawin
1228            (MapCanvas.OnIdle): Removed.
1229    
1230            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
1231            a parameter to determine the size of the rectangle.
1232            (MapCanvas.find_shape_at): Create the box around the point on a
1233            layer by layer basis and make the size depend on the shape type.
1234            This solves a problem with the selection of point shapes at the
1235            border of the layer's bounding box
1236    
1237    2002-08-30  Bernhard Herzog  <[email protected]>
1238    
1239            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
1240            for the sensitivity  of remove layer.
1241            (_can_remove_layer): New. Sensitivity callback for remove layer
1242            (Command layer_remove): Use _can_remove_layer
1243    
1244            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
1245            determine whether a given layer can be deleted.
1246    
1247            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
1248            (MapCanvas.do_redraw): Get rid of the unused update_region
1249            instance variable
1250    
1251            * Thuban/UI/view.py: Add/update some doc-strings.
1252    
1253            * test/: new subdirectory with a bunch of unit tests.
1254    
1255            * test/README, test/test_table.py, test/test_save.py,
1256            test/test_menu.py, test/test_load.py: Initial set of tests and
1257            brief instructions on how to run them
1258    
1259    2002-08-29  Bernhard Herzog  <[email protected]>
1260    
1261            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
1262            arcs with multiple parts.
1263    
1264            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
1265            Handle degenrate rectangles.
1266    
1267            * Thuban/Model/table.py: Make writing records work correctly:
1268            (Table.__init__): Keep track of whether the DBF is open for
1269            writing
1270            (Table.write_record): Open the DBF file for writing when necessary
1271    
1272    2002-08-27  Bernhard Herzog  <[email protected]>
1273    
1274            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
1275            dbf files only for reading by default. Use a new writable dbf
1276            object for writing.
1277    
1278    2002-08-26  Bernhard Herzog  <[email protected]>
1279    
1280            * Thuban/UI/mainwindow.py: Refactor the context creation:
1281            (MainWindow.Context): New method to return a context
1282            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
1283            new method
1284    
1285            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
1286            layer table specific code from TableGrid into LayerTableGrid
1287            (TableFrame, LayerTableFrame): Split the layer table specific code
1288            from TableFrame into LayerTableFrame
1289            (LayerTableGrid.select_shape): Remove a debug print
1290    
1291            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
1292            LayerTableFrame
1293    
1294    2002-08-23  Bernhard Herzog  <[email protected]>
1295    
1296            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
1297            absolute filename.
1298    
1299  2002-08-22  Bernhard Herzog  <[email protected]>  2002-08-22  Bernhard Herzog  <[email protected]>
1300    
1301            * Thuban/Model/table.py (Table.write_record): New method to write
1302            records.
1303            (Table.__init__): Open the DBF file for writing too.
1304    
1305            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
1306            into the underlying table.
1307    
1308            * extensions/shapelib/shapefil.h (DBFCommit),
1309            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
1310            commit any changes made to the DBF file.
1311    
1312            * Thuban/UI/mainwindow.py (make_check_current_tool)
1313            (_tool_command): Put the code that generates the "checked"
1314            callback into a separate function so that we can reuse it
1315            elsewhere
1316    
1317          * Thuban/Model/save.py (Saver): New class to handle serializing a          * Thuban/Model/save.py (Saver): New class to handle serializing a
1318          session into an XML file. The main reason to introduce a class is          session into an XML file. The main reason to introduce a class is
1319          that applications built on Thuban can derive from it so that they          that applications built on Thuban can derive from it so that they
# Line 24  Line 1338 
1338          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1339          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
1340    
1341  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
1342    
1343          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1344          tree window already open          tree window already open
# Line 152  Line 1466 
1466          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
1467          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
1468          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
1469          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1470          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
1471    
1472          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 213  Line 1527 
1527          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
1528          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
1529          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
1530          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
1531          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
1532    
1533  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 294  Line 1608 
1608          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
1609          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
1610    
1611  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
1612    
1613          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
1614          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 523  Line 1837 
1837          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1838          position in the statusbar          position in the statusbar
1839    
1840  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
1841    
1842          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1843    
1844  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
1845            
1846          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
1847    
1848          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
1849    
1850          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
1851    
1852  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
1853            box
1854    
1855    2002-04-21  Jan-Oliver Wagner <[email protected]>
1856    
1857          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
1858    
1859          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
1860    
1861          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1862          icon; added map_full_extend as tool          icon; added map_full_extend as tool
1863    
1864  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
1865    
1866          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1867          saving _new_ sessions          saving _new_ sessions
# Line 648  Line 1963 
1963    
1964          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
1965          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
1966    
1967  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
1968    
1969          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1970          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
1971    
1972          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1973          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
1974          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
1975          too.          too.
# Line 765  Line 2079 
2079          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
2080          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
2081    
2082          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2083          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
2084          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
2085          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
2086          the application's OnInit method          the application's OnInit method
# Line 782  Line 2096 
2096          layer to the tableview dialog.          layer to the tableview dialog.
2097    
2098          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
2099          (TableGrid):          (TableGrid):
2100          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
2101          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
2102          (TableFrame.__init__):          (TableFrame.__init__):
# Line 849  Line 2163 
2163  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
2164    
2165          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
2166            
2167          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
2168          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
2169            
2170          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
2171          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
2172          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 899  Line 2213 
2213          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
2214          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
2215          link_file method          link_file method
2216            
2217          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
2218          the window when the first layer is added to the map.          the window when the first layer is added to the map.
2219    
# Line 936  Line 2250 
2250          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
2251          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
2252          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
2253            
2254          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
2255          installer          installer
2256    

Legend:
Removed from v.269  
changed lines
  Added in v.646

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26