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

Legend:
Removed from v.591  
changed lines
  Added in v.669

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26