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]> |
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 |
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
224 |
sure the filename is absolute to avoid problems when saving the |
sure the filename is absolute to avoid problems when saving the |
225 |
session again |
session again |