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]> |
344 |
|
|
345 |
|
* test/test_map.py: Don't use from <module> import * |
346 |
|
|
347 |
|
2003-04-01 Jonathan Coles <[email protected]> |
348 |
|
|
349 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
350 |
|
LAYER_LEGEND_CHANGED |
351 |
|
|
352 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
353 |
|
self.Destroy() to close the window after yesterday's changes. |
354 |
|
|
355 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
356 |
|
are sent from maps and layers. |
357 |
|
|
358 |
|
2003-03-31 Jonathan Coles <[email protected]> |
359 |
|
|
360 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
361 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
362 |
|
RTbug #1769. |
363 |
|
|
364 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
365 |
|
position (although position doesn't work yet under GTK). |
366 |
|
(DockableWindow.Destroy): New. Called when the window must be |
367 |
|
closed. Namely needed when the DockFrame closes and must close |
368 |
|
its children. |
369 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
370 |
|
|
371 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
372 |
|
when then window is told to close. |
373 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
374 |
|
comment in source for more info. |
375 |
|
|
376 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
377 |
|
|
378 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
379 |
|
symmetry with other such methods. |
380 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
381 |
|
|
382 |
|
2003-03-28 Jonathan Coles <[email protected]> |
383 |
|
|
384 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
385 |
|
group within the grid when the classification dialog is opened. |
386 |
|
Also contains a lot of debugging printouts which will later |
387 |
|
be removed. |
388 |
|
|
389 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
390 |
|
that it is fairly removed from the rest of the Thuban application. |
391 |
|
It is easy to add new docks which the rest of the program having |
392 |
|
to be aware of them. |
393 |
|
|
394 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
395 |
|
specific group in the classification dialog. Changed how layers |
396 |
|
are drawn when the layer is visible/invisible. |
397 |
|
|
398 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
399 |
|
replaced it with calls to the new dock code. |
400 |
|
|
401 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
402 |
|
to check if scale > 0. Trying to track down a divide by zero. |
403 |
|
|
404 |
|
2003-03-26 Jonathan Coles <[email protected]> |
405 |
|
|
406 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
407 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
408 |
|
now part of DockableWindow. |
409 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
410 |
|
map. |
411 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
412 |
|
with the selected layer and/or group. |
413 |
|
|
414 |
|
2003-03-26 Jonathan Coles <[email protected]> |
415 |
|
|
416 |
|
This putback contains the code for dockable windows. There is |
417 |
|
no support in wxWindows as of this date for windows that can |
418 |
|
attach themselves to other windows. |
419 |
|
|
420 |
|
The current model contains a DockableWindow which has a parent |
421 |
|
window for when it is detached and a dock window that it puts |
422 |
|
its contents in when it is docked. The contents of a DockableWindow |
423 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
424 |
|
|
425 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
426 |
|
message, not a LAYER_LEGEND_CHANGED message. |
427 |
|
|
428 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
429 |
|
|
430 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
431 |
|
as one of the style properties for the fieldTypeText item to |
432 |
|
be sure that its size is correct when the text changes. |
433 |
|
|
434 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
435 |
|
DockableWindow. |
436 |
|
|
437 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
438 |
|
LegendPanel a DockPanel. |
439 |
|
|
440 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
441 |
|
and supporting functions for manipulating the sashes. |
442 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
443 |
|
LegendPanel as the contents. |
444 |
|
|
445 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
446 |
|
|
447 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
448 |
|
not LAYER_LEGEND_CHANGED, messages. |
449 |
|
|
450 |
|
2003-03-25 Jonathan Coles <[email protected]> |
451 |
|
|
452 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
453 |
|
when the rpm is built the path to wx-config is correct. |
454 |
|
|
455 |
|
* setup.cfg: Added line saying to use the custom build script |
456 |
|
|
457 |
|
2003-03-20 Jonathan Coles <[email protected]> |
458 |
|
|
459 |
|
Initial implementation of the Legend. |
460 |
|
|
461 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
462 |
|
Legend information and allows the user to add/modify classifications |
463 |
|
and how the layers are drawn on the map. |
464 |
|
|
465 |
|
* setup.py: New command 'build_docs' which currently uses |
466 |
|
happydoc to generate html documentation for Thuban. |
467 |
|
|
468 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
469 |
|
Returns a string which is appropriately describes the group. |
470 |
|
|
471 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
472 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
473 |
|
|
474 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
475 |
|
specific, messages. |
476 |
|
|
477 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
478 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
479 |
|
when layers have been added/removed/changed or if the stacking order |
480 |
|
of the layers has changed. |
481 |
|
|
482 |
|
* Thuban/Model/session.py: Rename and use new messages. |
483 |
|
|
484 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
485 |
|
been applied so that if the dialog is cancelled without an application |
486 |
|
of changes we don't have to set a new classification. |
487 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
488 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
489 |
|
symbols on any DC. |
490 |
|
|
491 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
492 |
|
|
493 |
|
* Thuban/UI/view.py: Use new message names. |
494 |
|
|
495 |
|
2003-03-19 Jonathan Coles <[email protected]> |
496 |
|
|
497 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
498 |
|
of Python, wxPython, and some other libraries. |
499 |
|
|
500 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
501 |
|
version against what wxproj was compiled with. |
502 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
503 |
|
the given version against the version of the gtk library |
504 |
|
currently being used. |
505 |
|
|
506 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
507 |
|
|
508 |
|
* test/test_command.py: Run the tests when the module is run as a |
509 |
|
script |
510 |
|
|
511 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
512 |
|
|
513 |
|
Implement selection of multiple selected shapes in the same layer: |
514 |
|
|
515 |
|
- Introduce a new class to hold the selection. This basically |
516 |
|
replaces the interactor which was nothing more than the |
517 |
|
selection anyway. A major difference is of course that the new |
518 |
|
selection class supports multiple selected shapes in one layer |
519 |
|
|
520 |
|
- Move the object that represents the selection from the |
521 |
|
application to the canvas. The canvas is a better place than the |
522 |
|
application because the selection represents which shapes and |
523 |
|
layer of the map displayed by the canvas are selected and |
524 |
|
affects how the map is drawn. |
525 |
|
|
526 |
|
- Make the selection and its messages publicly available through |
527 |
|
the mainwindow. |
528 |
|
|
529 |
|
- The non-modal dialogs do not get a reference to the interactor |
530 |
|
anymore as they can simply refer to their parent, the |
531 |
|
mainwindow, for the what the interactor had to offer. |
532 |
|
|
533 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
534 |
|
selection. |
535 |
|
|
536 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
537 |
|
these unused messages |
538 |
|
|
539 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
540 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
541 |
|
interactor is gone now. |
542 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
543 |
|
anymore so we pass None as the interactor argument for now for |
544 |
|
compatibility. |
545 |
|
|
546 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
547 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
548 |
|
Unsubscribe, delegate messages according to the delegated_messages |
549 |
|
class variable. |
550 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
551 |
|
attributes from instance variables as described with the |
552 |
|
delegated_methods class variable. |
553 |
|
(MapCanvas.__init__): New instance variable selection holding the |
554 |
|
current selection |
555 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
556 |
|
pass them on to the renderer |
557 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
558 |
|
selected. |
559 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
560 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
561 |
|
messages when the set of selected shapes actually does change. |
562 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
563 |
|
self.selection |
564 |
|
|
565 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
566 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
567 |
|
Unsubscribe, delegate messages according to the delegated_messages |
568 |
|
class variable. |
569 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
570 |
|
attributes from instance variables as described with the |
571 |
|
delegated_methods class variable. |
572 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
573 |
|
parameter is still there for compatibility. The selection messages |
574 |
|
now come from the canvas. |
575 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
576 |
|
Delegate to the the canvas. |
577 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
578 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
579 |
|
interactor parameter anymore. |
580 |
|
|
581 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
582 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
583 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
584 |
|
from the dialog's point of view is now done by the mainwindow, |
585 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
586 |
|
of SELECTED_SHAPE |
587 |
|
|
588 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
589 |
|
is gone. It's job from the dialog's point of view is now done by |
590 |
|
the mainwindow, i.e. the parent. |
591 |
|
|
592 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
593 |
|
gone. It's job from the dialog's point of view is now done by the |
594 |
|
mainwindow, i.e. the parent. |
595 |
|
|
596 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
597 |
|
gone. It's job from the dialog's point of view is now done by the |
598 |
|
mainwindow, i.e. the parent. |
599 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
600 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
601 |
|
can still subscribe to the selection messages. |
602 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
603 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
604 |
|
selection is now accessible through the mainwindow. Subscribe to |
605 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
606 |
|
|
607 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
608 |
|
SHAPES_SELECTED message now. |
609 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
610 |
|
so deal with multiple shapes |
611 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
612 |
|
gone. It's job from the dialog's point of view is now done by the |
613 |
|
mainwindow, i.e. the parent. |
614 |
|
|
615 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
616 |
|
parameter is now a list of shape ids. |
617 |
|
(RecordTable.SetTable): The second parameter is now a list of |
618 |
|
indices. |
619 |
|
|
620 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
621 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
622 |
|
list of shape ids. |
623 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
624 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
625 |
|
distinctions are only executed once. |
626 |
|
|
627 |
|
* test/test_selection.py: Test cases for the selection class |
628 |
|
|
629 |
|
2003-03-11 Jonathan Coles <[email protected]> |
630 |
|
|
631 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
632 |
|
doesn't cause Thuban to crash. |
633 |
|
|
634 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
635 |
|
a layer and its classification better, and be sure to disconnect |
636 |
|
the classification from the layer when the layer is destroyed |
637 |
|
so that we don't maintain a cyclic reference that may not be |
638 |
|
garbage collected. |
639 |
|
|
640 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
641 |
|
|
642 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
643 |
|
|
644 |
|
* HOWTO-Release: New. Information on the steps for releasing |
645 |
|
a new version of Thuban. |
646 |
|
|
647 |
|
2003-03-11 Jonathan Coles <[email protected]> |
648 |
|
|
649 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
650 |
|
Use True instead of true. |
651 |
|
(Classifier): Should have a single panel in which all the controls lie. |
652 |
|
|
653 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
654 |
|
|
655 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
656 |
|
|
657 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
658 |
|
|
659 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
660 |
|
|
661 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
662 |
|
field_type information is present. |
663 |
|
|
664 |
|
2003-03-10 Jonathan Coles <[email protected]> |
665 |
|
|
666 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
667 |
|
field type label grow so that when the text changes the |
668 |
|
size is updated correctly. This may be a wxWindows bug. |
669 |
|
|
670 |
|
2003-03-10 Jonathan Coles <[email protected]> |
671 |
|
|
672 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
673 |
|
SESSION_REPLACED. |
674 |
|
|
675 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
676 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
677 |
|
instead of in Reset, so we only set the size once. |
678 |
|
|
679 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
680 |
|
|
681 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
682 |
|
Call Close() instead of Shutdown(). |
683 |
|
|
684 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
685 |
|
|
686 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
687 |
|
Go back to using OnClose() instead of Shutdown(). |
688 |
|
|
689 |
|
2003-03-10 Jonathan Coles <[email protected]> |
690 |
|
|
691 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
692 |
|
to know the old field index as well as the new one. |
693 |
|
|
694 |
|
2003-03-10 Jonathan Coles <[email protected]> |
695 |
|
|
696 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
697 |
|
to correctly set the table information and call this from |
698 |
|
__init__ and from _OnFieldSelect so that all the information |
699 |
|
is up to date when the dialog opens and when a field is changed. |
700 |
|
|
701 |
2003-03-10 Jonathan Coles <[email protected]> |
2003-03-10 Jonathan Coles <[email protected]> |
702 |
|
|
703 |
* Thuban/Model/classification.py (Classification): Don't use |
* Thuban/Model/classification.py (Classification): Don't use |