/[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 35 by bh, Thu Sep 6 15:33:09 2001 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]>
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
1318            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
1320            can save additional information in a session file.
1321            (save_session): Delegate almost all the work to the Saver class.
1322            Rename the filename argument to file because it may be a file like
1323            object now.
1324    
1325            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
1326            code. Remove the little test code which would be executed when the
1327            module is run as a script which didn't work anymore since it can't
1328            import the other Thuban modules.
1329            (ProcessSession, load_session): Refactor the ProcessSession to
1330            have one method for each element start and end tag so that derived
1331            classes can easily override the processing of individual tags.
1332            Also, always parse with namespaces enabled because applications
1333            built on top of Thuban will likely use namespaces if they extend
1334            the session file format.
1335    
1336    2002-08-21  Bernhard Herzog  <[email protected]>
1337    
1338            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
1339            because thubaninit_contents will do it for us.
1340    
1341    2002-08-16  Jan-Oliver Wagner <[email protected]>
1342    
1343            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
1344            tree window already open
1345    
1346    2002-08-15  Bernhard Herzog  <[email protected]>
1347    
1348            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
1349            with self.
1350    
1351            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
1352            when we have actually captured it.
1353    
1354            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
1355            shapefile and destroy the table.
1356    
1357            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
1358    
1359    2002-08-14  Bernhard Herzog  <[email protected]>
1360    
1361            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
1362            instance variable columns
1363            (RecordTable.GetTypeName): row and col may be negative in some
1364            cases.
1365    
1366            * setup.py (InstallLocal.initialize_options)
1367            (InstallLocal.finalize_options, InstallLocal.user_options): New
1368            option create-init-file to build a thubaninit.py when running
1369            install_local
1370            (InstallLocal.run): Create the thubaninit.py module when requested
1371            (thubaninit_contents): Split the template into several parts and
1372            create a new function thubaninit_contents that creates the
1373            contents of a thubaninit module.
1374            (ThubanInstall.run): Use the new function to create the thubaninit
1375            module.
1376    
1377    2002-07-30  Bernhard Herzog  <[email protected]>
1378    
1379            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
1380            cleanup.
1381            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
1382    
1383            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
1384            direct base class' Destroy method.
1385    
1386            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
1387            layers.
1388            (Map.Destroy): Destroy the label_layer as well and call the
1389            inherited Desatroymethod first so that no more messages are
1390            issued.
1391            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
1392            message if the stacking order actually has changed. Add
1393            doc-strings.
1394            (Map.BoundingBox): Correct the doc-string.
1395            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
1396            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
1397    
1398            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
1399            all labels.
1400    
1401    2002-07-29  Bernhard Herzog  <[email protected]>
1402    
1403            * Thuban/Model/map.py (Map.subscribe_layer_channels)
1404            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
1405            to a layer's channels into separate methods.
1406            (Map.RemoveLayer, Map.AddLayer): Call the new methods
1407            (Map.Destroy): Unsubscribe from a layer's channels before
1408            destroying it.
1409    
1410            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
1411            selected_layer parameter to searched_layer which is the layer to
1412            search in.
1413            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
1414            search to that layer. Return the selected layer and shape.
1415    
1416            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
1417            typo
1418    
1419    2002-07-24  Bernhard Herzog  <[email protected]>
1420    
1421            * Thuban/UI/application.py (ThubanApplication.create_session):
1422            Extend the doc string.
1423            (ThubanApplication.subscribe_session)
1424            (ThubanApplication.unsubscribe_session): New methods to
1425            subscribe/unsubscribe to/from session channels.
1426            (ThubanApplication.SetSession): Call the new methods here.
1427            (ThubanApplication.maps_changed, ThubanApplication.set_map):
1428            Renamed set_map to maps_changed. Its now a subscriber for
1429            MAPS_CHANGED.
1430    
1431            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
1432            x-coordinate in case of simple clicks
1433    
1434            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
1435            don't pass it as a parameter
1436    
1437            * Thuban/Model/session.py (Session.RemoveMap): New
1438    
1439            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
1440            window size into a parameter.
1441    
1442    2002-07-23  Bernhard Herzog  <[email protected]>
1443    
1444            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
1445            just commands.
1446    
1447            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
1448            parameter list a bit to allow setting the window title and the
1449            initial message in the status bar. Update the callers.
1450    
1451            * Thuban/UI/application.py (ThubanApplication.OnInit)
1452            (ThubanApplication.CreateMainWindow): Put the mainwindow
1453            instantiation into a separate method so that it can be overridden
1454            by a subclass.
1455    
1456    2002-07-19  Bernhard Herzog  <[email protected]>
1457    
1458            * Thuban/Model/session.py: Issue a CHANGED message every time
1459            another changed message is issued to make it easier to get
1460            notified of changes.
1461            (Session): Update the doc string
1462            (Session.forward): Issue changed-events as CHANGED as well.
1463            (Session.changed): Overwrite the inherited version to issue
1464            CHANGED events as well.
1465    
1466            * Thuban/UI/tree.py: We can now simply subscribe to the session's
1467            CHANGED channel to be informed of changes.
1468            (SessionTreeCtrl.session_channels): Not needed any longer.
1469            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
1470            Only have to (un)subscribe CHANGED
1471    
1472            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
1473    
1474            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
1475            for the wxPython locale bug to __init__.py so that it's
1476            automatically executed by anybody using UI code from Thuban.
1477    
1478    2002-07-18  Bernhard Herzog  <[email protected]>
1479    
1480            * Thuban/UI/main.py (main): app no longer needs to be global
1481    
1482            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
1483            as parameter and store it in an instance variable
1484            (MainWindow.invoke_command, MainWindow.update_command_ui)
1485            (MainWindow.save_modified_session, MainWindow.NewSession)
1486            (MainWindow.OpenSession, MainWindow.SaveSession)
1487            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
1488            application object.
1489    
1490            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
1491            the main window with self.
1492    
1493            * Thuban/UI/context.py: New module with the context class
1494    
1495            * Thuban/UI/command.py (Command): Update doc string.
1496    
1497            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
1498            MainWindow.update_command_ui): Pass an instance of the context
1499            class to the command's methods
1500            (check_current_tool, call_method): Handle the new context
1501            implementation
1502    
1503            * Examples/simple_extensions/simple_tool.py (simple_tool,
1504            check_simple_tool): Handle the new context implementation
1505    
1506            * Examples/simple_extensions/simple_command.py (simple_command):
1507            Handle the new context implementation. Update the comments about
1508            the context.
1509    
1510            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
1511            doc-string
1512            (ThubanApplication.Session): New method to return the session
1513            object
1514    
1515            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
1516            interactor's selected_layer may not be a layer of the current
1517            session when the tree is updated while a new session is being set.
1518    
1519    2002-07-17  Bernhard Herzog  <[email protected]>
1520    
1521            * Thuban/UI/tree.py (color_string): Removed. No longer used.
1522            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
1523            update_tree into update_tree and add_items. The tree now uses a
1524            more generic way to display the contents of the tree.
1525            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
1526    
1527            * Thuban/Model/layer.py (Layer.TreeInfo),
1528            Thuban/Model/extension.py (Extension.TreeInfo),
1529            Thuban/Model/map.py (Map.TreeInfo),
1530            Thuban/Model/session.py (Session.TreeInfo):
1531            Add TreeInfo methods to implement the new tree view update scheme
1532    
1533    2002-07-16  Bernhard Herzog  <[email protected]>
1534    
1535            * Thuban/UI/application.py: Don't use "import from" for the
1536            MainWindow. It can't always be resolved.
1537            (ThubanApplication.OnInit): change reference to MainWindow
1538            accordingly.
1539    
1540            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
1541            completely
1542    
1543    2002-07-10  Bernhard Herzog  <[email protected]>
1544    
1545            * setup.py (create_init_module): New configurable variable whose
1546            default depends on the platform we're running on.
1547            (ThubanInstall.initialize_options): Initialize
1548            self.create_init_module from the global create_init_module
1549            (ThubanInstall.user_options): indictate that the options
1550            create-init-module and init-module-dir have arguments.
1551    
1552            * setup.py: In the setup call change the version number to include
1553            cvs.
1554    
1555            * MANIFEST.in: Add the files in Examples
1556    
1557    2002-07-09  Bernhard Herzog  <[email protected]>
1558    
1559            * setup.py: In the setup call, use the thuban homepage as the
1560            value of the url parameter.
1561    
1562            * Examples: New subdirectory for examples.
1563    
1564            * Examples/simple_extensions/simple_tool.xpm,
1565            Examples/simple_extensions/simple_tool.py,
1566            Examples/simple_extensions/simple_command.py,
1567            Examples/simple_extensions/README: Simple examples showing how to
1568            add new commands and tools.
1569    
1570            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
1571            bdist_rpm that we also have an install script.
1572            (bdist_inno): Add 2002 to the copyright notice.
1573    
1574            * setup.py: Create a file in python's site-packages directory to
1575            make installation of Thuban as a library easier.
1576            (ThubanInstall.user_options): Add two new options,
1577            create-init-module and init-module-dir
1578            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
1579            filenames for installation in the default directories.
1580            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
1581            the inherited methods to capture some filenames before they're
1582            transformed too much by distutils.
1583            (ThubanInstall.run): Create the init module if requested.
1584            (ThubanInstall.thuban_init_filename): New method to return the
1585            full name of the init module.
1586            (ThubanInstall.get_outputs): Append the filename of the init
1587            module.
1588    
1589    2002-07-08  Bernhard Herzog  <[email protected]>
1590    
1591            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
1592            handle the prefix properly which means that the default for the
1593            installation prefix should be /usr for RPMs and /usr/local when
1594            doing a normal source install.
1595            (bdist_rpm_install_script): Script to override the default install
1596            commands in the specfile generated by the bdist_rpm command.
1597            (thuban_bdist_rpm.user_options): Add a prefix option
1598            (thuban_bdist_rpm.initialize_options): Init the prefix option.
1599            Create the script files for the spec files as empty files here
1600            (thuban_bdist_rpm._make_spec_file): Override the inherited method
1601            to fill the script files with content.
1602    
1603            * Thuban/Model/save.py (relative_filename): Wrapper around
1604            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
1605            argument. save_session now automatically uses this version,
1606            solving a problem when saving to a relative filename.
1607    
1608            * setup.py: In the setup call, make sure that the library
1609            directories are under $prefix/lib not directly under $prefix.
1610    
1611    2002-06-20  Jan-Oliver Wagner <[email protected]>
1612    
1613            * Thuban/Model/extension.py: new module to handle extension objects.
1614            * Thuban/Model/messages.py: new messages for extensions.
1615            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
1616            Session.AddExtension): new for handling extensions.
1617            Also some other minor changes to round up extension handling.
1618            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
1619            of Extension titles and title and names of its objects.
1620    
1621    2002-05-29  Bernhard Herzog  <[email protected]>
1622    
1623            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
1624            the events for a command.
1625            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
1626            Call bind_command_events to bind the events. add_toolbar_command
1627            can now bind events too so that it's possible to have commands
1628            that are only available through the toolbar.
1629            (MainWindow.init_ids): New instance variable events_bound to keep
1630            track of for which commands events have been bound.
1631    
1632    2002-05-28  Bernhard Herzog  <[email protected]>
1633    
1634            * Thuban/UI/menu.py: New module to build and manage menus.
1635    
1636            * Thuban/UI/mainwindow.py: Remove some unused imports.
1637            (MainWindow.__init__, main_menu): move the definition of the main
1638            menu from __init__ to the Menu instance main_menu.
1639            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
1640            build the menu bar and sub-menus from a menu description.
1641    
1642            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
1643            startup file
1644            (ThubanApplication.read_startup_files): New method to run
1645            ~/.thuban/thubanstart.py
1646    
1647            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
1648            Move the toolbar definition to the Menu instance main_toolbar.
1649            (MainWindow.build_toolbar): New method to build the toolbar
1650            similar to the build_menu methods
1651    
1652    2002-05-23  Bernhard Herzog  <[email protected]>
1653    
1654            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
1655            layer_outline_color. Fix it in the definition of the command too.
1656    
1657            * Thuban/UI/command.py (Command): Fix typo in doc string
1658    
1659    2002-05-22  Bernhard Herzog  <[email protected]>
1660    
1661            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
1662            in the docstring
1663    
1664    2002-05-15  Bernhard Herzog  <[email protected]>
1665    
1666            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
1667            when the shapefile is empty.
1668            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
1669            now return None for empty shapefiles. Update doc-strings.
1670    
1671            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
1672            the layer's bbox being None.
1673    
1674            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
1675            layer's bbox being None.
1676    
1677            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
1678            necessary.
1679            (MapCanvas.__init__): New instance variables, last_selected_layer
1680            and last_selected_shape to determine how the selection has
1681            changed.
1682    
1683            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
1684            AutoSizeColumns because it will cause a traversal of the entire
1685            table which for large .dbf files will take a very long time.
1686    
1687    2002-05-14  Bernhard Herzog  <[email protected]>
1688    
1689            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
1690            maximum depth for the tree than shapelib does by default.
1691    
1692    2002-05-10  Bernhard Herzog  <[email protected]>
1693    
1694            * setup.py (py_modules): The shptree modules doesn't have a
1695            wrapper, so don't include it in the py_modules
1696    
1697    2002-05-08  Bernhard Herzog  <[email protected]>
1698    
1699            * extensions/shapelib/shptree.c (compare_ints): Make arguments
1700            const void * as in the qsort prototype
1701            (SHPTreeFindLikelyShapes): Remove some unused variables.
1702    
1703            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
1704            maintains to redraw the window during a drag.
1705            (MapCanvas.unprojected_rect_around_point): New method to determine
1706            a small region around a point for hit-testing.
1707            (MapCanvas.find_shape_at): Only test the shapes in a small region
1708            around the point.
1709    
1710            * setup.py: Increment the version to 0.1.2
1711    
1712            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
1713            debug print and set session to None after unsubscribing
1714    
1715    2002-05-07  Bernhard Herzog  <[email protected]>
1716    
1717            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
1718            the file to have a .thuban extension.
1719    
1720            * Thuban/UI/tree.py (session_channels): New class constant with
1721            all the session channels to subscribe to to update the tree
1722            (SessionTreeCtrl.session_changed): Remember the session so that we
1723            can unsubscribe properly. Use the new class constant to
1724            unsubscribe from the old session and subscribe to the new one.
1725            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
1726            subscriptions of the SessionTreeCtrl.
1727            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
1728    
1729            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
1730            Session Tree" command to the file menu.
1731    
1732            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
1733            as update_region to the renderer.
1734    
1735            * Thuban/UI/renderer.py
1736            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
1737            update box is now directly a tuple, not a wxRect anymore.
1738    
1739            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
1740            prints.
1741    
1742    2002-05-07  Bernhard Herzog  <[email protected]>
1743    
1744            * setup.py: Add the shptree extension module. See
1745            extensions/pyshapelib/ChangeLog for more details.
1746    
1747            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
1748            extensions/shapelib/dbfopen.c: Really update to the versions of
1749            shapelib 1.2.9. For some reason it wasn't really done on
1750            2002-04-11.
1751    
1752            * extensions/shapelib/shptree.c: Modified version of shptree.c of
1753            shapelib 1.2.9. The only real difference is the use of qsort
1754            instead of a bubble sort implementation
1755    
1756            * Thuban/Model/layer.py (Layer.__init__): New instance variable
1757            shapetree to hold the shapelib quadtree for the shapefile
1758            (Layer.open_shapefile): Create the quad tree.
1759            (Layer.ShapesInRegion): New method to return the ids of shapes in
1760            a given region using the quad tree.
1761    
1762            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
1763            comment
1764            (draw_polygon_shape): Accept both arcs and polygons.
1765            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
1766            the api.
1767    
1768            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
1769            return the shape ids to be rendered in a given layer.
1770            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
1771            ids. Use draw_polygon_shape to draw arc shapes as well.
1772            (ScreenRenderer.RenderMap): New parameter for the rectangle that
1773            has to be updated
1774            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
1775            calling it's ShapesInRegion method.
1776    
1777            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1778            update_region for the update region.
1779            (MapCanvas.OnPaint): Maintain the update region
1780            (MapCanvas.do_redraw): Pass the bounding box of the update_region
1781            to the renderer when drawing the bitmap. Reset the update_region.
1782    
1783    2002-05-03  Bernhard Herzog  <[email protected]>
1784    
1785            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
1786            MainWindow.OpenSession): Change the file extension of the session
1787            files to .thuban
1788    
1789            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
1790            Move the map channels to be forwarded by the session into the
1791            class constant with forwarded_channels. Also add
1792            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
1793            forwarded_channels
1794    
1795            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
1796            typo and some rewording).
1797    
1798    2002-05-02  Bernhard Herzog  <[email protected]>
1799    
1800            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
1801            around to speed up most redraws:
1802            (MapCanvas.__init__): New instance variable bitmap which holds the
1803            bitmap
1804            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
1805            self.bitmap to draw.
1806            (MapCanvas.full_redraw): New method to force a full redraw
1807            including the bitmap
1808            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
1809            make sure the bitmap is redrawn.
1810            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
1811            MapCanvas.shape_selected): Call full_redraw instead of readraw to
1812            make sure the bitmap is redrawn.
1813            (MapCanvas.OnSize): New method to handle size events so that the
1814            bitmap can be redrawn.
1815    
1816    2002-04-29  Bernhard Herzog  <[email protected]>
1817    
1818            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
1819            canvas' VIEW_POSITION event
1820            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
1821            Update the text in the status-bar accordingly.
1822    
1823            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
1824            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
1825            called.
1826            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
1827            current_position
1828            (MapCanvas.set_current_position): New method to set
1829            current_position. Issue a VIEW_POSITION event
1830            (MapCanvas.CurrentPosition): New public method to return the value
1831            of current_position. Should be called when the VIEW_POSITION event
1832            is processed.
1833            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
1834            Update the position.
1835            (MapCanvas.OnLeaveWindow): Set the position to None.
1836    
1837            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
1838            position in the statusbar
1839    
1840    2002-04-26  Frank Koormann <[email protected]>
1841    
1842            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
1843    
1844    2002-04-24  Frank Koormann <[email protected]>
1845    
1846            * Resources/Bitmaps/identify.xpm: shadow added
1847    
1848            * Resources/Bitmaps/fullextent.xpm: new
1849    
1850    2002-04-22  Jan-Oliver Wagner <[email protected]>
1851    
1852            * 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
1858    
1859            * Thuban/UI/tree.py (update_tree): added added map extent
1860    
1861            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
1862            icon; added map_full_extend as tool
1863    
1864    2002-04-19  Jan-Oliver Wagner <[email protected]>
1865    
1866            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
1867            saving _new_ sessions
1868    
1869            * Thuban/Model/session.py (create_empty_session): new session
1870            don't have a filename (set to None)
1871    
1872            * Thuban/UI/tree.py (update_tree): added filename and modified flag
1873    
1874            * Thuban/Model/load.py (ProcessSession): convert projection
1875            parameters from unicode to regular string
1876    
1877            * Data/iceland_sample.session: Added UTM Zone 26 projection.
1878    
1879    2002-04-11  Bernhard Herzog  <[email protected]>
1880    
1881            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
1882            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
1883            1.2.9
1884    
1885            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
1886            the pyshapelib directoy into the list of include dirs, so that
1887            pyshapelib_api.h can be found.
1888    
1889            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
1890            holds the pyshapelib C-API
1891            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
1892            pyshapelib_api to access the shapelib functions.
1893            (initwxproj): Import the c_api from the shapelib module and
1894            initialize pyshapelib_api.
1895    
1896    2002-04-04  Bernhard Herzog  <[email protected]>
1897    
1898            * setup.py (thuban_bdist_rpm.initialize_options): Use
1899            initialize_options to create the scripts for the rpm.
1900    
1901            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
1902    
1903    2002-04-03  Bernhard Herzog  <[email protected]>
1904    
1905            * setup.py: Increment version to 0.1.1
1906    
1907            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
1908            Layer" and "Remove Layer" commands from the layer menu to the map
1909            menu
1910    
1911    2002-02-15  Bernhard Herzog  <[email protected]>
1912    
1913            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
1914            argument (python <= 1.5.2 erroneously accepted multiuple
1915            arguments)
1916    
1917    2002-02-04  Bernhard Herzog  <[email protected]>
1918    
1919            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
1920            RecordGrid in the identifyview.
1921            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
1922            IdentifyListCtrl. The grid allows editing of the values.
1923    
1924            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
1925            implementing a grid for a single row of a thuban table.
1926    
1927            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
1928            layers by default. Easier to use than the previous default of only
1929            searching through the select layer which meant that if no layer
1930            was selected, you couldn't select a shape.
1931    
1932            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
1933    
1934            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
1935            stroke_width attribute
1936    
1937            * Thuban/Model/save.py (save_session): Write the new stroke_width
1938            attribute
1939    
1940            * Thuban/Model/load.py (ProcessSession.startElement): Read the
1941            stroke_width attribute
1942    
1943            * Thuban/Model/layer.py (Layer.__init__): New parameter and
1944            instance variable stroke_width
1945            (Layer.SetStrokeWidth): Set the stroke_width.
1946    
1947    2002-02-01  Bernhard Herzog  <[email protected]>
1948    
1949            * extensions/thuban/wxproj.cpp (project_points): Fix two
1950            off-by-one errors in the last loop that joins the various parts
1951            together.
1952    
1953    2002-01-14  Bernhard Herzog  <[email protected]>
1954    
1955            * setup.py (data_dist.make_distribution): Fix some typos
1956    
1957    2001-09-18  Bernhard Herzog  <[email protected]>
1958    
1959            * README: Slight tweaking in preparation for the 0.1 release
1960    
1961            * setup.cfg: Add section for sdist to create both tgz and zip
1962            archives
1963    
1964            * setup.py: increase version number to 0.1
1965            (data_dist): New command class for data distribution
1966    
1967    2001-09-14  Bernhard Herzog  <[email protected]>
1968    
1969            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
1970            Handle the case of no layer (i.e. layer is None) properly.
1971    
1972            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
1973            Set the initial selection of the combo boxes to reflect the
1974            projection we're starting with in a way that works on windows,
1975            too.
1976    
1977            * Thuban/Lib/connector.py (Connector.print_connections): Print the
1978            puiblisher's ids in hex to make it easier to compare them to the
1979            standard repr of python methods
1980    
1981            * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
1982            messages
1983    
1984    2001-09-13  Bernhard Herzog  <[email protected]>
1985    
1986            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
1987            deselect the layer if no layer is selected
1988    
1989            * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
1990            idle time when there actually is something to draw. If there's
1991            nothing to draw simply clear the window
1992            (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
1993            (MapCanvas.SetMap): force a redraw in all cases because
1994            FitMapToWindow doesn't always do it.
1995            (MapCanvas.ZoomFactor): Add an optional parameter, center, to
1996            specify the point to move into the center of the window
1997            (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
1998            dragged, zoon in/out by a factor of 2
1999            (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
2000            index, i.e. reversed drawing order) so that objects appearing to
2001            be in from of others are selected first. This is probably mostly
2002            relevant for point shapes where the symbols used may overlap
2003    
2004            * Thuban/Model/session.py (create_empty_session): Unset the
2005            modified bit before returning it
2006    
2007            * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
2008            create_empty_session session to create the new, empty session.
2009    
2010            * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
2011            the tool bitmaps.
2012            (MainWindow.OnClose, MainWindow.save_modified_session): Separate
2013            the code that asks whether the session should be saved into the
2014            new method save_modified_session.
2015            (MainWindow.OpenSession, MainWindow.NewSession): Use the new
2016            method to save modified session here too.
2017    
2018    2001-09-11  Bernhard Herzog  <[email protected]>
2019    
2020            * setup.py (InnoIconItem): fix typo
2021    
2022            (thuban_bdist_inno.run):
2023            (bdist_inno.run): Move the decision not to create symlinks on
2024            non-nt platforms to thuban_bdist_inno and do it unconditinally
2025            since we never want to create the symlinks here
2026    
2027    2001-09-10  Bernhard Herzog  <[email protected]>
2028    
2029            * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
2030            identify view immediately
2031    
2032            * Thuban/UI/controls.py: New file with two classes RecordListCtrl
2033            and SelectableRecordListCtrl that implement the code shared by the
2034            identify view and the label dialog
2035    
2036            * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
2037            new class RecordListCtrl
2038    
2039            * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
2040            return value of GetValue is None instead of using it as a boolean
2041            directly so that Zero numbers are handled properly.
2042            (LabelListCtrl): Derive from the new class
2043            SelectableRecordListCtrl
2044    
2045            * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
2046            (Proj4Dialog.dialogLayout): Make the window resizable and set the
2047            size of the text control explicitly to make the sizers work on
2048            both Windows and X.
2049    
2050    2001-09-07  Bernhard Herzog  <[email protected]>
2051    
2052            * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
2053            that can limit the search to the currently selected layer.
2054            (MapCanvas.SelectShapeAt): Make sure that the currently selected
2055            layer stays selected even when no shape is found
2056            (MapCanvas.FitRectToWindow): If the rect has zero with or zero
2057            height do nothing (avoids zero division errors)
2058    
2059  2001-09-06  Bernhard Herzog  <[email protected]>  2001-09-06  Bernhard Herzog  <[email protected]>
2060    
2061            * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
2062            Correct the spelling of SessionTreeCtrl. dabbrev is too damn
2063            convenient :-)
2064            (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
2065            a new instvar layer_to_item to map layers to tree items
2066            (SessionTreeCtrl.layer_selected): Select the appropriate tree item
2067            to match the current selection in the interactor
2068    
2069            * Thuban/UI/interactor.py (Interactor.SelectedLayer):
2070            (Interactor.HasSelectedLayer): New methods to query the current
2071            selection
2072    
2073            * Thuban/UI/mainwindow.py (MainWindow.current_layer):
2074            (MainWindow.has_selected_layer): Simply call the appropriate
2075            interactor method
2076    
2077            * Thuban/UI/mainwindow.py (MainWindow.__init__):
2078            (MainWindow.LayerShowTable):
2079            (MainWindow.identify_view_on_demand): Store the interactor in an
2080            instvar and use that reference instead of going through main.app
2081    
2082            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
2083            * Thuban/UI/application.py (ThubanApplication.OnInit):
2084            * Thuban/UI/main.py (main): Create the session tree view in main
2085            with the new mainwindow method ShowSessionTree and not directly
2086            the application's OnInit method
2087    
2088            * Thuban/UI/tree.py (myTreeCtrlPanel):
2089            (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
2090            TreeCtrl isntead of a panel. This affects most method since we now
2091            refer to self instead of self.tree
2092            (SessionTreeView): New class implementing a non-modal dialog
2093            showing the session tree.
2094    
2095          * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the          * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
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 71  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 121  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 158  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.35  
changed lines
  Added in v.646

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26