/[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 595 by bh, Wed Apr 2 18:28:09 2003 UTC revision 647 by jonathan, Fri Apr 11 14:26:41 2003 UTC
# Line 1  Line 1 
1    2003-04-11  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/resource.py: New. Centralize the loading of resources
4            such as bitmaps.
5    
6            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
7            added images to the move buttons, added 'reverse' button.
8            (CustomRampPanel.__init__): Added images to the move buttons.
9            (GreyRamp): New. Generates a ramp from white to black.
10            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
11    
12            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
13            ID_PROPERTY_*.
14            (Classifier.__init__): Minor changes to the layout.
15            (Classifier._OnTitleChanged): Listen for when the user edits the
16            title and update the dialog's title and the layer's title.
17    
18            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
19    
20            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
21            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
22            if the layer's title changes.
23    
24            * Thuban/UI/mainwindow.py: Added new menu item and associated code
25            to open a dialog to rename the map.
26            (MainWindow): Use new resource class to import bitmaps.
27    
28    2003-04-11  Jonathan Coles   <[email protected]>
29    
30            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
31            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
32            Resources/Bitmaps/group_use_none.xpm,
33            Resources/Bitmaps/group_use_not.xpm,
34            Resources/Bitmaps/hide_layer.xpm,
35            Resources/Bitmaps/layer_properties.xpm,
36            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
37            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
38            New.
39    
40    2003-04-10  Jonathan Coles   <[email protected]>
41    
42            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
43            Should pass group to ClassGroup constructor.
44    
45    2003-04-10  Jonathan Coles   <[email protected]>
46    
47            * Thuban/Model/classification.py: (ClassGroup): Move all the common
48            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
49            here. Implement SetVisible(), IsVisible().
50            (ClassGroup.__init__): Add group parameter which acts as a copy
51            constructor.
52    
53            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
54            "Visible" check boxes.
55            (Classifier): Rename the buttons and refactor the code to match
56            the new labels.
57    
58            * Thuban/UI/legend.py: Classify button is now called "Properties".
59            Refactored the code to change variable names.
60            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
61    
62            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
63            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
64            renamed to MainWindow.LayerEditProperties.
65            (MainWindow.ToggleLegend): Don't include map name in legend title.
66            (MainWindow.SetMap): Added the map name to the window title.
67            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
68            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
69            Functionality is found in the layer properties dialog.
70    
71            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
72            draw visible groups.
73    
74    2003-04-09  Jonathan Coles   <[email protected]>
75    
76            * Thuban/UI/classgen.py: Modifications to allow simple
77            addition and selection of new color schemes.
78            (MonochromaticRamp): New. Generates a ramp between two colors.
79            (RedRamp): New. Generates a ramp of all red.
80            (GreenRamp): New. Generates a ramp of all green.
81            (BlueRamp): New. Generates a ramp of all blue.
82    
83    2003-04-09  Jonathan Coles   <[email protected]>
84    
85            * Thuban/Model/classification.py (Classification.__deepcopy__):
86            Need to copy over field and fieldType attributes.
87    
88            * Thuban/Model/table.py (Table.field_range): New. Retrive the
89            maximum and minimum values over the entire table for a given
90            field.
91            (Table.GetUniqueValues): New. Retrieve all the unique values
92            in the table for a given field.
93    
94            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
95            (GenUniquePanel): New. Controls to allow the user to select
96            which unique field values they would like in the classification.
97            (CustomRampPanel): Code that was in ClassGenDialog that allows
98            the user to select the properties for a custom ramp.
99            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
100    
101            * Thuban/UI/classifier.py: Removed a lot of debugging code.
102            (Classifier._SetClassification): Callback method so that the
103            class generator can set the classification in the grid.
104            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
105            editing of a group properties class into a wxWindows control.
106    
107            * Thuban/UI/dock.py: It was decided that if the user closes
108            a dockable window the window should simply hide itself. That
109            way if the user wants to show the dock again it appears in the
110            same place as it was when it was closed.
111            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
112            (DockableWindow._OnButtonClose): Hide the window instead of
113            destroying it.
114            (DockableWindow._OnClose): Hide the window instead of
115            destroying it.
116    
117            * Thuban/UI/legend.py (LegendTree): Use a private method to
118            consistently set the font and style of the text. Fixes RTbug #1786.
119    
120            * Thuban/UI/mainwindow.py: Import just the Classifier class.
121    
122    2003-04-07  Bernhard Herzog  <[email protected]>
123    
124            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
125            to the map module
126    
127    2003-04-07  Bernhard Herzog  <[email protected]>
128    
129            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
130            favor of ToggleSessionTree
131            (MainWindow.ToggleSessionTree): New method to toggle visibility of
132            the session tree.
133            (MainWindow.SessionTreeShown): New method to return whether the
134            session tree is currently shown.
135            (MainWindow.ToggleLegend): New method to toggle visibility of the
136            legend
137            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
138            LegendShown
139            (MainWindow.LegendShown): New method to return whether the legend
140            is currently shown.
141            (_method_command): Add checked parameter so we can define check
142            menu items
143            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
144            mainwindow methods.
145            (show_session_tree, show_legend commands): Removed.
146            (toggle_session_tree, toggle_legend commands): New commands to
147            toggle the visibility of the dialogs
148    
149    2003-04-07  Jonathan Coles   <[email protected]>
150    
151            * Thuban/UI/classgen.py: Fix Windows problem.
152    
153            * Thuban/UI/dock.py: Fix Windows problem.
154    
155            * Thuban/UI/mainwindow.py: Use False instead of false.
156            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
157    
158    2003-04-07  Jonathan Coles   <[email protected]>
159    
160            Since we now say that the order of the groups in a classification
161            matters, it makes sense to be able to manipulate that order. Most
162            of the changes to Thuban/Model/classification.py are to that end.
163    
164            * Thuban/Model/classification.py (Classification.AppendGroup,
165            Classification.InsertGroup, Classification.ReplaceGroup,
166            Classification.RemoveGroup, Classification.GetGroup): Do as the
167            names imply.
168            (Classification.FindGroup): This was called GetGroup, but GetGroup
169            takes an index, while FindGroup takes a value.
170            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
171            REFERENCE. Currently there is a cyclic reference between the layer
172            and its classification. If the classification doesn't need to know
173            its owning layer we can change this, since it may make sense to be
174            able to use the same classification with different layers.
175    
176            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
177    
178            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
179            not AddGroup()
180    
181            * Thuban/UI/classifier.py: Now that we can depend on the order in
182            a Classification and have methods to manipulate that order we don't
183            need to use our own data structures in the grid. We can simply make
184            the grid/table access the information they need from a copy of
185            the classification object.
186            (Classifier._OnCloseBtn): Event handler for when the user clicks
187            'Close'. This is needed so if the user applies changes and then
188            continues to change the table the user has the option of discarding
189            the most recent changes and keeping what they applied.
190    
191            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
192            into the same group.
193    
194            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
195            with a really old version of proj, PJ_VERSION won't even be defined.
196            If it isn't defined then just compile so that the function always
197            returns Py_False.
198    
199            * test/test_classification.py: Fix tests to use the renamed methods.
200            Still need to write tests for the new methods.
201    
202    2003-04-04  Jonathan Coles   <[email protected]>
203    
204            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
205            call to SetSelection out of the method and before the call
206            to __SelectField in __init__. This prevents a recursion of events
207            when _OnFieldSelect is triggered by the user.
208    
209    2003-04-04  Jonathan Coles   <[email protected]>
210    
211            * Thuban/Model/classification.py: Rename Color.None to
212            Color.Transparent.
213            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
214            Don't bother copying the color, since Colors are immutable.
215    
216            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
217            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
218            Thuban/UI/renderer.py, Thuban/UI/view.py:
219            Rename Color.None to Color.Transparent.
220        
221            * test/test_classification.py, test/test_load.py: Rename Color.None
222            to Color.Transparent.
223    
224    2003-04-04  Jonathan Coles   <[email protected]>
225    
226            * Thuban/Model/classification.py: Fix assert calls.
227            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
228            Copy the color parameter rather than hold onto a reference.
229    
230            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
231            the color object.
232            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
233            are sure there exists only one refernce to Color.None in the system.
234            This allows us to use 'is' rather than the comparision functions.
235            
236            * Thuban/Model/save.py: Fix assert calls.
237            
238            * Thuban/UI/classifier.py: Fix assert calls.
239            (ClassGrid._OnCellDClick): Call up to the classifier to open the
240            dialog to edit the groups properties.
241            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
242            correctly if a cell is resized.
243            (ClassTable.SetClassification): New. Changes the classification
244            that is in the table.
245            (ClassTable.__SetRow): Allow groups to be prepended.
246            (Classifier): New code for opening the EditProperties and
247            GenerateRanges dialogs.
248            (SelectPropertiesDialog.__GetColor): Only set the color in the
249            color dialog if the current color is not None.
250            
251            * Thuban/UI/dock.py: Fix assert calls.
252            
253            * Thuban/UI/legend.py: Fix assert calls.
254            
255            * Thuban/UI/renderer.py: Fix assert calls.
256            
257            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
258            classifications.
259            (GenRangePanel): Panel specific to range generation.
260            (GenSingletonPanel): Panel specific to singleton generation.
261            (ClassGenerator): Class responsible for actually generating
262            the classification from the data gathered in the dialog box.
263            (PropertyRamp): Generates properties whose values range from
264            a starting property to an ending property.
265    
266    2003-04-03  Bernhard Herzog  <[email protected]>
267    
268            * test/support.py (print_garbage_information): New function that
269            prints information about still connected messages and memory
270            leaks.
271            (run_suite): Removed.
272            (run_tests): New function for use as a replacement of
273            unittest.main in the test_* files. This one calls
274            print_garbage_information at the end.
275    
276            * test/runtests.py (main): Use support.print_garbage_information
277    
278            * test/test_layer.py: Use support.run_tests instead of
279            unittest.main so we get memory leak information
280            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
281            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
282            (TestLayerLegend.test_visibility): Call the layer's Destroy method
283            to fix a memory leak.
284    
285            * test/test_classification.py: Use support.run_tests instead of
286            unittest.main so we get memory leak information
287            (TestClassification.test_classification): Call the layer's Destroy
288            method to fix a memory leak.
289    
290  2003-04-02  Bernhard Herzog  <[email protected]>  2003-04-02  Bernhard Herzog  <[email protected]>
291    
292          * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):          * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):

Legend:
Removed from v.595  
changed lines
  Added in v.647

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26