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