/[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 586 by bh, Tue Apr 1 10:41:16 2003 UTC revision 625 by bh, Mon Apr 7 13:35:13 2003 UTC
# Line 1  Line 1 
1    2003-04-07  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
4            to the map module
5    
6    2003-04-07  Bernhard Herzog  <[email protected]>
7    
8            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
9            favor of ToggleSessionTree
10            (MainWindow.ToggleSessionTree): New method to toggle visibility of
11            the session tree.
12            (MainWindow.SessionTreeShown): New method to return whether the
13            session tree is currently shown.
14            (MainWindow.ToggleLegend): New method to toggle visibility of the
15            legend
16            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
17            LegendShown
18            (MainWindow.LegendShown): New method to return whether the legend
19            is currently shown.
20            (_method_command): Add checked parameter so we can define check
21            menu items
22            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
23            mainwindow methods.
24            (show_session_tree, show_legend commands): Removed.
25            (toggle_session_tree, toggle_legend commands): New commands to
26            toggle the visibility of the dialogs
27    
28    2003-04-07  Jonathan Coles   <[email protected]>
29    
30            * Thuban/UI/classgen.py: Fix Windows problem.
31    
32            * Thuban/UI/dock.py: Fix Windows problem.
33    
34            * Thuban/UI/mainwindow.py: Use False instead of false.
35            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
36    
37    2003-04-07  Jonathan Coles   <[email protected]>
38    
39            Since we now say that the order of the groups in a classification
40            matters, it makes sense to be able to manipulate that order. Most
41            of the changes to Thuban/Model/classification.py are to that end.
42    
43            * Thuban/Model/classification.py (Classification.AppendGroup,
44            Classification.InsertGroup, Classification.ReplaceGroup,
45            Classification.RemoveGroup, Classification.GetGroup): Do as the
46            names imply.
47            (Classification.FindGroup): This was called GetGroup, but GetGroup
48            takes an index, while FindGroup takes a value.
49            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
50            REFERENCE. Currently there is a cyclic reference between the layer
51            and its classification. If the classification doesn't need to know
52            its owning layer we can change this, since it may make sense to be
53            able to use the same classification with different layers.
54    
55            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
56    
57            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
58            not AddGroup()
59    
60            * Thuban/UI/classifier.py: Now that we can depend on the order in
61            a Classification and have methods to manipulate that order we don't
62            need to use our own data structures in the grid. We can simply make
63            the grid/table access the information they need from a copy of
64            the classification object.
65            (Classifier._OnCloseBtn): Event handler for when the user clicks
66            'Close'. This is needed so if the user applies changes and then
67            continues to change the table the user has the option of discarding
68            the most recent changes and keeping what they applied.
69    
70            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
71            into the same group.
72    
73            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
74            with a really old version of proj, PJ_VERSION won't even be defined.
75            If it isn't defined then just compile so that the function always
76            returns Py_False.
77    
78            * test/test_classification.py: Fix tests to use the renamed methods.
79            Still need to write tests for the new methods.
80    
81    2003-04-04  Jonathan Coles   <[email protected]>
82    
83            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
84            call to SetSelection out of the method and before the call
85            to __SelectField in __init__. This prevents a recursion of events
86            when _OnFieldSelect is triggered by the user.
87    
88    2003-04-04  Jonathan Coles   <[email protected]>
89    
90            * Thuban/Model/classification.py: Rename Color.None to
91            Color.Transparent.
92            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
93            Don't bother copying the color, since Colors are immutable.
94    
95            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
96            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
97            Thuban/UI/renderer.py, Thuban/UI/view.py:
98            Rename Color.None to Color.Transparent.
99        
100            * test/test_classification.py, test/test_load.py: Rename Color.None
101            to Color.Transparent.
102    
103    2003-04-04  Jonathan Coles   <[email protected]>
104    
105            * Thuban/Model/classification.py: Fix assert calls.
106            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
107            Copy the color parameter rather than hold onto a reference.
108    
109            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
110            the color object.
111            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
112            are sure there exists only one refernce to Color.None in the system.
113            This allows us to use 'is' rather than the comparision functions.
114            
115            * Thuban/Model/save.py: Fix assert calls.
116            
117            * Thuban/UI/classifier.py: Fix assert calls.
118            (ClassGrid._OnCellDClick): Call up to the classifier to open the
119            dialog to edit the groups properties.
120            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
121            correctly if a cell is resized.
122            (ClassTable.SetClassification): New. Changes the classification
123            that is in the table.
124            (ClassTable.__SetRow): Allow groups to be prepended.
125            (Classifier): New code for opening the EditProperties and
126            GenerateRanges dialogs.
127            (SelectPropertiesDialog.__GetColor): Only set the color in the
128            color dialog if the current color is not None.
129            
130            * Thuban/UI/dock.py: Fix assert calls.
131            
132            * Thuban/UI/legend.py: Fix assert calls.
133            
134            * Thuban/UI/renderer.py: Fix assert calls.
135            
136            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
137            classifications.
138            (GenRangePanel): Panel specific to range generation.
139            (GenSingletonPanel): Panel specific to singleton generation.
140            (ClassGenerator): Class responsible for actually generating
141            the classification from the data gathered in the dialog box.
142            (PropertyRamp): Generates properties whose values range from
143            a starting property to an ending property.
144    
145    2003-04-03  Bernhard Herzog  <[email protected]>
146    
147            * test/support.py (print_garbage_information): New function that
148            prints information about still connected messages and memory
149            leaks.
150            (run_suite): Removed.
151            (run_tests): New function for use as a replacement of
152            unittest.main in the test_* files. This one calls
153            print_garbage_information at the end.
154    
155            * test/runtests.py (main): Use support.print_garbage_information
156    
157            * test/test_layer.py: Use support.run_tests instead of
158            unittest.main so we get memory leak information
159            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
160            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
161            (TestLayerLegend.test_visibility): Call the layer's Destroy method
162            to fix a memory leak.
163    
164            * test/test_classification.py: Use support.run_tests instead of
165            unittest.main so we get memory leak information
166            (TestClassification.test_classification): Call the layer's Destroy
167            method to fix a memory leak.
168    
169    2003-04-02  Bernhard Herzog  <[email protected]>
170    
171            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
172            Handle the reference counts of the return value and errors in
173            PyArg_ParseTuple correctly.
174    
175            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
176            sure the filename is absolute to avoid problems when saving the
177            session again
178    
179            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
180    
181    2003-04-01  Jonathan Coles   <[email protected]>
182    
183            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
184            that there actually are points in the returned list of points
185            before trying to index into the list. The list may be empty if
186            the shape is a Null Shape.
187    
188  2003-04-01  Bernhard Herzog  <[email protected]>  2003-04-01  Bernhard Herzog  <[email protected]>
189    
190          * test/test_map.py: Don't use from <module> import *          * test/test_map.py: Don't use from <module> import *

Legend:
Removed from v.586  
changed lines
  Added in v.625

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26