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