/[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 554 by jonathan, Tue Mar 25 16:20:51 2003 UTC revision 634 by jonathan, Wed Apr 9 15:41:58 2003 UTC
# Line 1  Line 1 
1    2003-04-09  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/classgen.py: Modifications to allow simple
4            addition and selection of new color schemes.
5            (MonochromaticRamp): New. Generates a ramp between two colors.
6            (RedRamp): New. Generates a ramp of all red.
7            (GreenRamp): New. Generates a ramp of all green.
8            (BlueRamp): New. Generates a ramp of all blue.
9    
10    2003-04-09  Jonathan Coles   <[email protected]>
11    
12            * Thuban/Model/classification.py (Classification.__deepcopy__):
13            Need to copy over field and fieldType attributes.
14    
15            * Thuban/Model/table.py (Table.field_range): New. Retrive the
16            maximum and minimum values over the entire table for a given
17            field.
18            (Table.GetUniqueValues): New. Retrieve all the unique values
19            in the table for a given field.
20    
21            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
22            (GenUniquePanel): New. Controls to allow the user to select
23            which unique field values they would like in the classification.
24            (CustomRampPanel): Code that was in ClassGenDialog that allows
25            the user to select the properties for a custom ramp.
26            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
27    
28            * Thuban/UI/classifier.py: Removed a lot of debugging code.
29            (Classifier._SetClassification): Callback method so that the
30            class generator can set the classification in the grid.
31            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
32            editing of a group properties class into a wxWindows control.
33    
34            * Thuban/UI/dock.py: It was decided that if the user closes
35            a dockable window the window should simply hide itself. That
36            way if the user wants to show the dock again it appears in the
37            same place as it was when it was closed.
38            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
39            (DockableWindow._OnButtonClose): Hide the window instead of
40            destroying it.
41            (DockableWindow._OnClose): Hide the window instead of
42            destroying it.
43    
44            * Thuban/UI/legend.py (LegendTree): Use a private method to
45            consistently set the font and style of the text. Fixes RTbug #1786.
46    
47            * Thuban/UI/mainwindow.py: Import just the Classifier class.
48    
49    2003-04-07  Bernhard Herzog  <[email protected]>
50    
51            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
52            to the map module
53    
54    2003-04-07  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
57            favor of ToggleSessionTree
58            (MainWindow.ToggleSessionTree): New method to toggle visibility of
59            the session tree.
60            (MainWindow.SessionTreeShown): New method to return whether the
61            session tree is currently shown.
62            (MainWindow.ToggleLegend): New method to toggle visibility of the
63            legend
64            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
65            LegendShown
66            (MainWindow.LegendShown): New method to return whether the legend
67            is currently shown.
68            (_method_command): Add checked parameter so we can define check
69            menu items
70            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
71            mainwindow methods.
72            (show_session_tree, show_legend commands): Removed.
73            (toggle_session_tree, toggle_legend commands): New commands to
74            toggle the visibility of the dialogs
75    
76    2003-04-07  Jonathan Coles   <[email protected]>
77    
78            * Thuban/UI/classgen.py: Fix Windows problem.
79    
80            * Thuban/UI/dock.py: Fix Windows problem.
81    
82            * Thuban/UI/mainwindow.py: Use False instead of false.
83            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
84    
85    2003-04-07  Jonathan Coles   <[email protected]>
86    
87            Since we now say that the order of the groups in a classification
88            matters, it makes sense to be able to manipulate that order. Most
89            of the changes to Thuban/Model/classification.py are to that end.
90    
91            * Thuban/Model/classification.py (Classification.AppendGroup,
92            Classification.InsertGroup, Classification.ReplaceGroup,
93            Classification.RemoveGroup, Classification.GetGroup): Do as the
94            names imply.
95            (Classification.FindGroup): This was called GetGroup, but GetGroup
96            takes an index, while FindGroup takes a value.
97            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
98            REFERENCE. Currently there is a cyclic reference between the layer
99            and its classification. If the classification doesn't need to know
100            its owning layer we can change this, since it may make sense to be
101            able to use the same classification with different layers.
102    
103            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
104    
105            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
106            not AddGroup()
107    
108            * Thuban/UI/classifier.py: Now that we can depend on the order in
109            a Classification and have methods to manipulate that order we don't
110            need to use our own data structures in the grid. We can simply make
111            the grid/table access the information they need from a copy of
112            the classification object.
113            (Classifier._OnCloseBtn): Event handler for when the user clicks
114            'Close'. This is needed so if the user applies changes and then
115            continues to change the table the user has the option of discarding
116            the most recent changes and keeping what they applied.
117    
118            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
119            into the same group.
120    
121            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
122            with a really old version of proj, PJ_VERSION won't even be defined.
123            If it isn't defined then just compile so that the function always
124            returns Py_False.
125    
126            * test/test_classification.py: Fix tests to use the renamed methods.
127            Still need to write tests for the new methods.
128    
129    2003-04-04  Jonathan Coles   <[email protected]>
130    
131            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
132            call to SetSelection out of the method and before the call
133            to __SelectField in __init__. This prevents a recursion of events
134            when _OnFieldSelect is triggered by the user.
135    
136    2003-04-04  Jonathan Coles   <[email protected]>
137    
138            * Thuban/Model/classification.py: Rename Color.None to
139            Color.Transparent.
140            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
141            Don't bother copying the color, since Colors are immutable.
142    
143            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
144            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
145            Thuban/UI/renderer.py, Thuban/UI/view.py:
146            Rename Color.None to Color.Transparent.
147        
148            * test/test_classification.py, test/test_load.py: Rename Color.None
149            to Color.Transparent.
150    
151    2003-04-04  Jonathan Coles   <[email protected]>
152    
153            * Thuban/Model/classification.py: Fix assert calls.
154            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
155            Copy the color parameter rather than hold onto a reference.
156    
157            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
158            the color object.
159            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
160            are sure there exists only one refernce to Color.None in the system.
161            This allows us to use 'is' rather than the comparision functions.
162            
163            * Thuban/Model/save.py: Fix assert calls.
164            
165            * Thuban/UI/classifier.py: Fix assert calls.
166            (ClassGrid._OnCellDClick): Call up to the classifier to open the
167            dialog to edit the groups properties.
168            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
169            correctly if a cell is resized.
170            (ClassTable.SetClassification): New. Changes the classification
171            that is in the table.
172            (ClassTable.__SetRow): Allow groups to be prepended.
173            (Classifier): New code for opening the EditProperties and
174            GenerateRanges dialogs.
175            (SelectPropertiesDialog.__GetColor): Only set the color in the
176            color dialog if the current color is not None.
177            
178            * Thuban/UI/dock.py: Fix assert calls.
179            
180            * Thuban/UI/legend.py: Fix assert calls.
181            
182            * Thuban/UI/renderer.py: Fix assert calls.
183            
184            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
185            classifications.
186            (GenRangePanel): Panel specific to range generation.
187            (GenSingletonPanel): Panel specific to singleton generation.
188            (ClassGenerator): Class responsible for actually generating
189            the classification from the data gathered in the dialog box.
190            (PropertyRamp): Generates properties whose values range from
191            a starting property to an ending property.
192    
193    2003-04-03  Bernhard Herzog  <[email protected]>
194    
195            * test/support.py (print_garbage_information): New function that
196            prints information about still connected messages and memory
197            leaks.
198            (run_suite): Removed.
199            (run_tests): New function for use as a replacement of
200            unittest.main in the test_* files. This one calls
201            print_garbage_information at the end.
202    
203            * test/runtests.py (main): Use support.print_garbage_information
204    
205            * test/test_layer.py: Use support.run_tests instead of
206            unittest.main so we get memory leak information
207            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
208            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
209            (TestLayerLegend.test_visibility): Call the layer's Destroy method
210            to fix a memory leak.
211    
212            * test/test_classification.py: Use support.run_tests instead of
213            unittest.main so we get memory leak information
214            (TestClassification.test_classification): Call the layer's Destroy
215            method to fix a memory leak.
216    
217    2003-04-02  Bernhard Herzog  <[email protected]>
218    
219            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
220            Handle the reference counts of the return value and errors in
221            PyArg_ParseTuple correctly.
222    
223            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
224            sure the filename is absolute to avoid problems when saving the
225            session again
226    
227            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
228    
229    2003-04-01  Jonathan Coles   <[email protected]>
230    
231            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
232            that there actually are points in the returned list of points
233            before trying to index into the list. The list may be empty if
234            the shape is a Null Shape.
235    
236    2003-04-01  Bernhard Herzog  <[email protected]>
237    
238            * test/test_map.py: Don't use from <module> import *
239    
240    2003-04-01  Jonathan Coles   <[email protected]>
241    
242            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
243            LAYER_LEGEND_CHANGED
244    
245            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
246            self.Destroy() to close the window after yesterday's changes.
247    
248            * test/test_map.py, test/test_session.py: Fix messages that
249            are sent from maps and layers.
250    
251    2003-03-31  Jonathan Coles   <[email protected]>
252    
253            * Thuban/UI/classifier.py: Commented out some debugging statements.
254            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
255            RTbug #1769.
256    
257            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
258            position (although position doesn't work yet under GTK).
259            (DockableWindow.Destroy): New. Called when the window must be
260            closed. Namely needed when the DockFrame closes and must close
261            its children.
262            (DockFrame): Listen for EVT_CLOSE and destroy all children.
263    
264            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
265            when then window is told to close.
266            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
267            comment in source for more info.
268    
269            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
270    
271            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
272            symmetry with other such methods.
273            (MainWindow.ShowLegend): Show the legend docked by default.
274    
275    2003-03-28  Jonathan Coles   <[email protected]>
276    
277            * Thuban/UI/classifier.py: Support for highlighting a specific
278            group within the grid when the classification dialog is opened.
279            Also contains a lot of debugging printouts which will later
280            be removed.
281    
282            * Thuban/UI/dock.py: Complete rework on the dock code so that
283            that it is fairly removed from the rest of the Thuban application.
284            It is easy to add new docks which the rest of the program having
285            to be aware of them.
286    
287            * Thuban/UI/legend.py: Modifications to support selecting a
288            specific group in the classification dialog. Changed how layers
289            are drawn when the layer is visible/invisible.
290    
291            * Thuban/UI/mainwindow.py: Removed legend specific code and
292            replaced it with calls to the new dock code.
293    
294            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
295            to check if scale > 0. Trying to track down a divide by zero.
296    
297    2003-03-26  Jonathan Coles   <[email protected]>
298    
299            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
300            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
301            now part of DockableWindow.
302            (LegendPanel.DoOnSelChanged): Select the current layer in the
303            map.
304            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
305            with the selected layer and/or group.
306    
307    2003-03-26  Jonathan Coles   <[email protected]>
308    
309            This putback contains the code for dockable windows. There is
310            no support in wxWindows as of this date for windows that can
311            attach themselves to other windows.
312    
313            The current model contains a DockableWindow which has a parent
314            window for when it is detached and a dock window that it puts
315            its contents in when it is docked. The contents of a DockableWindow
316            must be a DockPanel. DockPanel itself derives from wxPanel.
317    
318            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
319            message, not a LAYER_LEGEND_CHANGED message.
320    
321            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
322    
323            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
324            as one of the style properties for the fieldTypeText item to
325            be sure that its size is correct when the text changes.
326    
327            * Thuban/UI/dock.py: New. Classes for the DockPanel and
328            DockableWindow.
329    
330            * Thuban/UI/legend.py: Added some more buttons and made the
331            LegendPanel a DockPanel.
332    
333            * Thuban/UI/mainwindow.py: Added sash windows to the main window
334            and supporting functions for manipulating the sashes.
335            (MainWindow.ShowLegend): Create a DockableWindow with the
336            LegendPanel as the contents.
337    
338            * Thuban/UI/messages.py: Added DOCKABLE_* messages
339    
340            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
341            not LAYER_LEGEND_CHANGED, messages.
342    
343  2003-03-25  Jonathan Coles   <[email protected]>  2003-03-25  Jonathan Coles   <[email protected]>
344    
345          * setup.py: Added custom script bdist_rpm_build_script so that          * setup.py: Added custom script bdist_rpm_build_script so that

Legend:
Removed from v.554  
changed lines
  Added in v.634

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26