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

Legend:
Removed from v.304  
changed lines
  Added in v.636

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26