/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 601 by jonathan, Fri Apr 4 12:11:59 2003 UTC revision 626 by jonathan, Wed Apr 9 10:08:27 2003 UTC
# Line 1  Line 1 
1    2003-04-09  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classification.py (Classification.__deepcopy__):
4            Need to copy over field and fieldType attributes.
5    
6            * Thuban/Model/table.py (Table.field_range): New. Retrive the
7            maximum and minimum values over the entire table for a given
8            field.
9            (Table.GetUniqueValues): New. Retrieve all the unique values
10            in the table for a given field.
11    
12            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
13            (GenUniquePanel): New. Controls to allow the user to select
14            which unique field values they would like in the classification.
15            (CustomRampPanel): Code that was in ClassGenDialog that allows
16            the user to select the properties for a custom ramp.
17            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
18    
19            * Thuban/UI/classifier.py: Removed a lot of debugging code.
20            (Classifier._SetClassification): Callback method so that the
21            class generator can set the classification in the grid.
22            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
23            editing of a group properties class into a wxWindows control.
24    
25            * Thuban/UI/dock.py: It was decided that if the user closes
26            a dockable window the window should simply hide itself. That
27            way if the user wants to show the dock again it appears in the
28            same place as it was when it was closed.
29            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
30            (DockableWindow._OnButtonClose): Hide the window instead of
31            destroying it.
32            (DockableWindow._OnClose): Hide the window instead of
33            destroying it.
34    
35            * Thuban/UI/legend.py (LegendTree): Use a private method to
36            consistently set the font and style of the text. Fixes RTbug #1786.
37    
38            * Thuban/UI/mainwindow.py: Import just the Classifier class.
39    
40    2003-04-07  Bernhard Herzog  <[email protected]>
41    
42            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
43            to the map module
44    
45    2003-04-07  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
48            favor of ToggleSessionTree
49            (MainWindow.ToggleSessionTree): New method to toggle visibility of
50            the session tree.
51            (MainWindow.SessionTreeShown): New method to return whether the
52            session tree is currently shown.
53            (MainWindow.ToggleLegend): New method to toggle visibility of the
54            legend
55            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
56            LegendShown
57            (MainWindow.LegendShown): New method to return whether the legend
58            is currently shown.
59            (_method_command): Add checked parameter so we can define check
60            menu items
61            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
62            mainwindow methods.
63            (show_session_tree, show_legend commands): Removed.
64            (toggle_session_tree, toggle_legend commands): New commands to
65            toggle the visibility of the dialogs
66    
67    2003-04-07  Jonathan Coles   <[email protected]>
68    
69            * Thuban/UI/classgen.py: Fix Windows problem.
70    
71            * Thuban/UI/dock.py: Fix Windows problem.
72    
73            * Thuban/UI/mainwindow.py: Use False instead of false.
74            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
75    
76    2003-04-07  Jonathan Coles   <[email protected]>
77    
78            Since we now say that the order of the groups in a classification
79            matters, it makes sense to be able to manipulate that order. Most
80            of the changes to Thuban/Model/classification.py are to that end.
81    
82            * Thuban/Model/classification.py (Classification.AppendGroup,
83            Classification.InsertGroup, Classification.ReplaceGroup,
84            Classification.RemoveGroup, Classification.GetGroup): Do as the
85            names imply.
86            (Classification.FindGroup): This was called GetGroup, but GetGroup
87            takes an index, while FindGroup takes a value.
88            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
89            REFERENCE. Currently there is a cyclic reference between the layer
90            and its classification. If the classification doesn't need to know
91            its owning layer we can change this, since it may make sense to be
92            able to use the same classification with different layers.
93    
94            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
95    
96            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
97            not AddGroup()
98    
99            * Thuban/UI/classifier.py: Now that we can depend on the order in
100            a Classification and have methods to manipulate that order we don't
101            need to use our own data structures in the grid. We can simply make
102            the grid/table access the information they need from a copy of
103            the classification object.
104            (Classifier._OnCloseBtn): Event handler for when the user clicks
105            'Close'. This is needed so if the user applies changes and then
106            continues to change the table the user has the option of discarding
107            the most recent changes and keeping what they applied.
108    
109            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
110            into the same group.
111    
112            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
113            with a really old version of proj, PJ_VERSION won't even be defined.
114            If it isn't defined then just compile so that the function always
115            returns Py_False.
116    
117            * test/test_classification.py: Fix tests to use the renamed methods.
118            Still need to write tests for the new methods.
119    
120  2003-04-04  Jonathan Coles   <[email protected]>  2003-04-04  Jonathan Coles   <[email protected]>
121    
122      * Thuban/Model/classification.py: Fix assert calls.          * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
123      (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):          call to SetSelection out of the method and before the call
124      Copy the color parameter rather than hold onto a reference.          to __SelectField in __init__. This prevents a recursion of events
125            when _OnFieldSelect is triggered by the user.
126      * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy  
127      the color object.  2003-04-04  Jonathan Coles   <[email protected]>
128      (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we  
129      are sure there exists only one refernce to Color.None in the system.          * Thuban/Model/classification.py: Rename Color.None to
130      This allows us to use 'is' rather than the comparision functions.          Color.Transparent.
131            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
132      * Thuban/Model/save.py: Fix assert calls.          Don't bother copying the color, since Colors are immutable.
133    
134      * Thuban/UI/classifier.py: Fix assert calls.          * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
135      (ClassGrid._OnCellDClick): Call up to the classifier to open the          Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
136      dialog to edit the groups properties.          Thuban/UI/renderer.py, Thuban/UI/view.py:
137      (ClassGrid._OnCellResize): Make sure that the scollbars are drawn          Rename Color.None to Color.Transparent.
138      correctly if a cell is resized.      
139      (ClassTable.SetClassification): New. Changes the classification          * test/test_classification.py, test/test_load.py: Rename Color.None
140      that is in the table.          to Color.Transparent.
141      (ClassTable.__SetRow): Allow groups to be prepended.  
142      (Classifier): New code for opening the EditProperties and  2003-04-04  Jonathan Coles   <[email protected]>
143      GenerateRanges dialogs.  
144      (SelectPropertiesDialog.__GetColor): Only set the color in the          * Thuban/Model/classification.py: Fix assert calls.
145      color dialog if the current color is not None.          (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
146            Copy the color parameter rather than hold onto a reference.
147      * Thuban/UI/dock.py: Fix assert calls.  
148            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
149      * Thuban/UI/legend.py: Fix assert calls.          the color object.
150            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
151      * Thuban/UI/renderer.py: Fix assert calls.          are sure there exists only one refernce to Color.None in the system.
152            This allows us to use 'is' rather than the comparision functions.
153      * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating          
154      classifications.          * Thuban/Model/save.py: Fix assert calls.
155      (GenRangePanel): Panel specific to range generation.          
156      (GenSingletonPanel): Panel specific to singleton generation.          * Thuban/UI/classifier.py: Fix assert calls.
157      (ClassGenerator): Class responsible for actually generating          (ClassGrid._OnCellDClick): Call up to the classifier to open the
158      the classification from the data gathered in the dialog box.          dialog to edit the groups properties.
159      (PropertyRamp): Generates properties whose values range from          (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
160      a starting property to an ending property.          correctly if a cell is resized.
161            (ClassTable.SetClassification): New. Changes the classification
162            that is in the table.
163            (ClassTable.__SetRow): Allow groups to be prepended.
164            (Classifier): New code for opening the EditProperties and
165            GenerateRanges dialogs.
166            (SelectPropertiesDialog.__GetColor): Only set the color in the
167            color dialog if the current color is not None.
168            
169            * Thuban/UI/dock.py: Fix assert calls.
170            
171            * Thuban/UI/legend.py: Fix assert calls.
172            
173            * Thuban/UI/renderer.py: Fix assert calls.
174            
175            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
176            classifications.
177            (GenRangePanel): Panel specific to range generation.
178            (GenSingletonPanel): Panel specific to singleton generation.
179            (ClassGenerator): Class responsible for actually generating
180            the classification from the data gathered in the dialog box.
181            (PropertyRamp): Generates properties whose values range from
182            a starting property to an ending property.
183    
184  2003-04-03  Bernhard Herzog  <[email protected]>  2003-04-03  Bernhard Herzog  <[email protected]>
185    

Legend:
Removed from v.601  
changed lines
  Added in v.626

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26