1 |
|
2003-04-10 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
4 |
|
Should pass group to ClassGroup constructor. |
5 |
|
|
6 |
|
2003-04-10 Jonathan Coles <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
9 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
10 |
|
here. Implement SetVisible(), IsVisible(). |
11 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
12 |
|
constructor. |
13 |
|
|
14 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
15 |
|
"Visible" check boxes. |
16 |
|
(Classifier): Rename the buttons and refactor the code to match |
17 |
|
the new labels. |
18 |
|
|
19 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
20 |
|
Refactored the code to change variable names. |
21 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
22 |
|
|
23 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
24 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
25 |
|
renamed to MainWindow.LayerEditProperties. |
26 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
27 |
|
(MainWindow.SetMap): Added the map name to the window title. |
28 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
29 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
30 |
|
Functionality is found in the layer properties dialog. |
31 |
|
|
32 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
33 |
|
draw visible groups. |
34 |
|
|
35 |
|
2003-04-09 Jonathan Coles <[email protected]> |
36 |
|
|
37 |
|
* Thuban/UI/classgen.py: Modifications to allow simple |
38 |
|
addition and selection of new color schemes. |
39 |
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
40 |
|
(RedRamp): New. Generates a ramp of all red. |
41 |
|
(GreenRamp): New. Generates a ramp of all green. |
42 |
|
(BlueRamp): New. Generates a ramp of all blue. |
43 |
|
|
44 |
|
2003-04-09 Jonathan Coles <[email protected]> |
45 |
|
|
46 |
|
* Thuban/Model/classification.py (Classification.__deepcopy__): |
47 |
|
Need to copy over field and fieldType attributes. |
48 |
|
|
49 |
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
50 |
|
maximum and minimum values over the entire table for a given |
51 |
|
field. |
52 |
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
53 |
|
in the table for a given field. |
54 |
|
|
55 |
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
56 |
|
(GenUniquePanel): New. Controls to allow the user to select |
57 |
|
which unique field values they would like in the classification. |
58 |
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
59 |
|
the user to select the properties for a custom ramp. |
60 |
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
61 |
|
|
62 |
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
63 |
|
(Classifier._SetClassification): Callback method so that the |
64 |
|
class generator can set the classification in the grid. |
65 |
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
66 |
|
editing of a group properties class into a wxWindows control. |
67 |
|
|
68 |
|
* Thuban/UI/dock.py: It was decided that if the user closes |
69 |
|
a dockable window the window should simply hide itself. That |
70 |
|
way if the user wants to show the dock again it appears in the |
71 |
|
same place as it was when it was closed. |
72 |
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
73 |
|
(DockableWindow._OnButtonClose): Hide the window instead of |
74 |
|
destroying it. |
75 |
|
(DockableWindow._OnClose): Hide the window instead of |
76 |
|
destroying it. |
77 |
|
|
78 |
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
79 |
|
consistently set the font and style of the text. Fixes RTbug #1786. |
80 |
|
|
81 |
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
82 |
|
|
83 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
86 |
|
to the map module |
87 |
|
|
88 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
89 |
|
|
90 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
91 |
|
favor of ToggleSessionTree |
92 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
93 |
|
the session tree. |
94 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
95 |
|
session tree is currently shown. |
96 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
97 |
|
legend |
98 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
99 |
|
LegendShown |
100 |
|
(MainWindow.LegendShown): New method to return whether the legend |
101 |
|
is currently shown. |
102 |
|
(_method_command): Add checked parameter so we can define check |
103 |
|
menu items |
104 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
105 |
|
mainwindow methods. |
106 |
|
(show_session_tree, show_legend commands): Removed. |
107 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
108 |
|
toggle the visibility of the dialogs |
109 |
|
|
110 |
|
2003-04-07 Jonathan Coles <[email protected]> |
111 |
|
|
112 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
113 |
|
|
114 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
115 |
|
|
116 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
117 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
118 |
|
|
119 |
|
2003-04-07 Jonathan Coles <[email protected]> |
120 |
|
|
121 |
|
Since we now say that the order of the groups in a classification |
122 |
|
matters, it makes sense to be able to manipulate that order. Most |
123 |
|
of the changes to Thuban/Model/classification.py are to that end. |
124 |
|
|
125 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
126 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
127 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
128 |
|
names imply. |
129 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
130 |
|
takes an index, while FindGroup takes a value. |
131 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
132 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
133 |
|
and its classification. If the classification doesn't need to know |
134 |
|
its owning layer we can change this, since it may make sense to be |
135 |
|
able to use the same classification with different layers. |
136 |
|
|
137 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
138 |
|
|
139 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
140 |
|
not AddGroup() |
141 |
|
|
142 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
143 |
|
a Classification and have methods to manipulate that order we don't |
144 |
|
need to use our own data structures in the grid. We can simply make |
145 |
|
the grid/table access the information they need from a copy of |
146 |
|
the classification object. |
147 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
148 |
|
'Close'. This is needed so if the user applies changes and then |
149 |
|
continues to change the table the user has the option of discarding |
150 |
|
the most recent changes and keeping what they applied. |
151 |
|
|
152 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
153 |
|
into the same group. |
154 |
|
|
155 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
156 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
157 |
|
If it isn't defined then just compile so that the function always |
158 |
|
returns Py_False. |
159 |
|
|
160 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
161 |
|
Still need to write tests for the new methods. |
162 |
|
|
163 |
|
2003-04-04 Jonathan Coles <[email protected]> |
164 |
|
|
165 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
166 |
|
call to SetSelection out of the method and before the call |
167 |
|
to __SelectField in __init__. This prevents a recursion of events |
168 |
|
when _OnFieldSelect is triggered by the user. |
169 |
|
|
170 |
|
2003-04-04 Jonathan Coles <[email protected]> |
171 |
|
|
172 |
|
* Thuban/Model/classification.py: Rename Color.None to |
173 |
|
Color.Transparent. |
174 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
175 |
|
Don't bother copying the color, since Colors are immutable. |
176 |
|
|
177 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
178 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
179 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
180 |
|
Rename Color.None to Color.Transparent. |
181 |
|
|
182 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
183 |
|
to Color.Transparent. |
184 |
|
|
185 |
|
2003-04-04 Jonathan Coles <[email protected]> |
186 |
|
|
187 |
|
* Thuban/Model/classification.py: Fix assert calls. |
188 |
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
189 |
|
Copy the color parameter rather than hold onto a reference. |
190 |
|
|
191 |
|
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
192 |
|
the color object. |
193 |
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
194 |
|
are sure there exists only one refernce to Color.None in the system. |
195 |
|
This allows us to use 'is' rather than the comparision functions. |
196 |
|
|
197 |
|
* Thuban/Model/save.py: Fix assert calls. |
198 |
|
|
199 |
|
* Thuban/UI/classifier.py: Fix assert calls. |
200 |
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
201 |
|
dialog to edit the groups properties. |
202 |
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
203 |
|
correctly if a cell is resized. |
204 |
|
(ClassTable.SetClassification): New. Changes the classification |
205 |
|
that is in the table. |
206 |
|
(ClassTable.__SetRow): Allow groups to be prepended. |
207 |
|
(Classifier): New code for opening the EditProperties and |
208 |
|
GenerateRanges dialogs. |
209 |
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
210 |
|
color dialog if the current color is not None. |
211 |
|
|
212 |
|
* Thuban/UI/dock.py: Fix assert calls. |
213 |
|
|
214 |
|
* Thuban/UI/legend.py: Fix assert calls. |
215 |
|
|
216 |
|
* Thuban/UI/renderer.py: Fix assert calls. |
217 |
|
|
218 |
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
219 |
|
classifications. |
220 |
|
(GenRangePanel): Panel specific to range generation. |
221 |
|
(GenSingletonPanel): Panel specific to singleton generation. |
222 |
|
(ClassGenerator): Class responsible for actually generating |
223 |
|
the classification from the data gathered in the dialog box. |
224 |
|
(PropertyRamp): Generates properties whose values range from |
225 |
|
a starting property to an ending property. |
226 |
|
|
227 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
228 |
|
|
229 |
|
* test/support.py (print_garbage_information): New function that |
230 |
|
prints information about still connected messages and memory |
231 |
|
leaks. |
232 |
|
(run_suite): Removed. |
233 |
|
(run_tests): New function for use as a replacement of |
234 |
|
unittest.main in the test_* files. This one calls |
235 |
|
print_garbage_information at the end. |
236 |
|
|
237 |
|
* test/runtests.py (main): Use support.print_garbage_information |
238 |
|
|
239 |
|
* test/test_layer.py: Use support.run_tests instead of |
240 |
|
unittest.main so we get memory leak information |
241 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
242 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
243 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
244 |
|
to fix a memory leak. |
245 |
|
|
246 |
|
* test/test_classification.py: Use support.run_tests instead of |
247 |
|
unittest.main so we get memory leak information |
248 |
|
(TestClassification.test_classification): Call the layer's Destroy |
249 |
|
method to fix a memory leak. |
250 |
|
|
251 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
252 |
|
|
253 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
254 |
|
Handle the reference counts of the return value and errors in |
255 |
|
PyArg_ParseTuple correctly. |
256 |
|
|
257 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
258 |
|
sure the filename is absolute to avoid problems when saving the |
259 |
|
session again |
260 |
|
|
261 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
262 |
|
|
263 |
|
2003-04-01 Jonathan Coles <[email protected]> |
264 |
|
|
265 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
266 |
|
that there actually are points in the returned list of points |
267 |
|
before trying to index into the list. The list may be empty if |
268 |
|
the shape is a Null Shape. |
269 |
|
|
270 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
271 |
|
|
272 |
|
* test/test_map.py: Don't use from <module> import * |
273 |
|
|
274 |
|
2003-04-01 Jonathan Coles <[email protected]> |
275 |
|
|
276 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
277 |
|
LAYER_LEGEND_CHANGED |
278 |
|
|
279 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
280 |
|
self.Destroy() to close the window after yesterday's changes. |
281 |
|
|
282 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
283 |
|
are sent from maps and layers. |
284 |
|
|
285 |
|
2003-03-31 Jonathan Coles <[email protected]> |
286 |
|
|
287 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
288 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
289 |
|
RTbug #1769. |
290 |
|
|
291 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
292 |
|
position (although position doesn't work yet under GTK). |
293 |
|
(DockableWindow.Destroy): New. Called when the window must be |
294 |
|
closed. Namely needed when the DockFrame closes and must close |
295 |
|
its children. |
296 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
297 |
|
|
298 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
299 |
|
when then window is told to close. |
300 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
301 |
|
comment in source for more info. |
302 |
|
|
303 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
304 |
|
|
305 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
306 |
|
symmetry with other such methods. |
307 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
308 |
|
|
309 |
|
2003-03-28 Jonathan Coles <[email protected]> |
310 |
|
|
311 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
312 |
|
group within the grid when the classification dialog is opened. |
313 |
|
Also contains a lot of debugging printouts which will later |
314 |
|
be removed. |
315 |
|
|
316 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
317 |
|
that it is fairly removed from the rest of the Thuban application. |
318 |
|
It is easy to add new docks which the rest of the program having |
319 |
|
to be aware of them. |
320 |
|
|
321 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
322 |
|
specific group in the classification dialog. Changed how layers |
323 |
|
are drawn when the layer is visible/invisible. |
324 |
|
|
325 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
326 |
|
replaced it with calls to the new dock code. |
327 |
|
|
328 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
329 |
|
to check if scale > 0. Trying to track down a divide by zero. |
330 |
|
|
331 |
|
2003-03-26 Jonathan Coles <[email protected]> |
332 |
|
|
333 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
334 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
335 |
|
now part of DockableWindow. |
336 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
337 |
|
map. |
338 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
339 |
|
with the selected layer and/or group. |
340 |
|
|
341 |
|
2003-03-26 Jonathan Coles <[email protected]> |
342 |
|
|
343 |
|
This putback contains the code for dockable windows. There is |
344 |
|
no support in wxWindows as of this date for windows that can |
345 |
|
attach themselves to other windows. |
346 |
|
|
347 |
|
The current model contains a DockableWindow which has a parent |
348 |
|
window for when it is detached and a dock window that it puts |
349 |
|
its contents in when it is docked. The contents of a DockableWindow |
350 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
351 |
|
|
352 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
353 |
|
message, not a LAYER_LEGEND_CHANGED message. |
354 |
|
|
355 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
356 |
|
|
357 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
358 |
|
as one of the style properties for the fieldTypeText item to |
359 |
|
be sure that its size is correct when the text changes. |
360 |
|
|
361 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
362 |
|
DockableWindow. |
363 |
|
|
364 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
365 |
|
LegendPanel a DockPanel. |
366 |
|
|
367 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
368 |
|
and supporting functions for manipulating the sashes. |
369 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
370 |
|
LegendPanel as the contents. |
371 |
|
|
372 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
373 |
|
|
374 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
375 |
|
not LAYER_LEGEND_CHANGED, messages. |
376 |
|
|
377 |
|
2003-03-25 Jonathan Coles <[email protected]> |
378 |
|
|
379 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
380 |
|
when the rpm is built the path to wx-config is correct. |
381 |
|
|
382 |
|
* setup.cfg: Added line saying to use the custom build script |
383 |
|
|
384 |
|
2003-03-20 Jonathan Coles <[email protected]> |
385 |
|
|
386 |
|
Initial implementation of the Legend. |
387 |
|
|
388 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
389 |
|
Legend information and allows the user to add/modify classifications |
390 |
|
and how the layers are drawn on the map. |
391 |
|
|
392 |
|
* setup.py: New command 'build_docs' which currently uses |
393 |
|
happydoc to generate html documentation for Thuban. |
394 |
|
|
395 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
396 |
|
Returns a string which is appropriately describes the group. |
397 |
|
|
398 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
399 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
400 |
|
|
401 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
402 |
|
specific, messages. |
403 |
|
|
404 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
405 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
406 |
|
when layers have been added/removed/changed or if the stacking order |
407 |
|
of the layers has changed. |
408 |
|
|
409 |
|
* Thuban/Model/session.py: Rename and use new messages. |
410 |
|
|
411 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
412 |
|
been applied so that if the dialog is cancelled without an application |
413 |
|
of changes we don't have to set a new classification. |
414 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
415 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
416 |
|
symbols on any DC. |
417 |
|
|
418 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
419 |
|
|
420 |
|
* Thuban/UI/view.py: Use new message names. |
421 |
|
|
422 |
|
2003-03-19 Jonathan Coles <[email protected]> |
423 |
|
|
424 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
425 |
|
of Python, wxPython, and some other libraries. |
426 |
|
|
427 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
428 |
|
version against what wxproj was compiled with. |
429 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
430 |
|
the given version against the version of the gtk library |
431 |
|
currently being used. |
432 |
|
|
433 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
434 |
|
|
435 |
|
* test/test_command.py: Run the tests when the module is run as a |
436 |
|
script |
437 |
|
|
438 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
439 |
|
|
440 |
|
Implement selection of multiple selected shapes in the same layer: |
441 |
|
|
442 |
|
- Introduce a new class to hold the selection. This basically |
443 |
|
replaces the interactor which was nothing more than the |
444 |
|
selection anyway. A major difference is of course that the new |
445 |
|
selection class supports multiple selected shapes in one layer |
446 |
|
|
447 |
|
- Move the object that represents the selection from the |
448 |
|
application to the canvas. The canvas is a better place than the |
449 |
|
application because the selection represents which shapes and |
450 |
|
layer of the map displayed by the canvas are selected and |
451 |
|
affects how the map is drawn. |
452 |
|
|
453 |
|
- Make the selection and its messages publicly available through |
454 |
|
the mainwindow. |
455 |
|
|
456 |
|
- The non-modal dialogs do not get a reference to the interactor |
457 |
|
anymore as they can simply refer to their parent, the |
458 |
|
mainwindow, for the what the interactor had to offer. |
459 |
|
|
460 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
461 |
|
selection. |
462 |
|
|
463 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
464 |
|
these unused messages |
465 |
|
|
466 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
467 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
468 |
|
interactor is gone now. |
469 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
470 |
|
anymore so we pass None as the interactor argument for now for |
471 |
|
compatibility. |
472 |
|
|
473 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
474 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
475 |
|
Unsubscribe, delegate messages according to the delegated_messages |
476 |
|
class variable. |
477 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
478 |
|
attributes from instance variables as described with the |
479 |
|
delegated_methods class variable. |
480 |
|
(MapCanvas.__init__): New instance variable selection holding the |
481 |
|
current selection |
482 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
483 |
|
pass them on to the renderer |
484 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
485 |
|
selected. |
486 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
487 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
488 |
|
messages when the set of selected shapes actually does change. |
489 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
490 |
|
self.selection |
491 |
|
|
492 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
493 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
494 |
|
Unsubscribe, delegate messages according to the delegated_messages |
495 |
|
class variable. |
496 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
497 |
|
attributes from instance variables as described with the |
498 |
|
delegated_methods class variable. |
499 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
500 |
|
parameter is still there for compatibility. The selection messages |
501 |
|
now come from the canvas. |
502 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
503 |
|
Delegate to the the canvas. |
504 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
505 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
506 |
|
interactor parameter anymore. |
507 |
|
|
508 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
509 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
510 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
511 |
|
from the dialog's point of view is now done by the mainwindow, |
512 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
513 |
|
of SELECTED_SHAPE |
514 |
|
|
515 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
516 |
|
is gone. It's job from the dialog's point of view is now done by |
517 |
|
the mainwindow, i.e. the parent. |
518 |
|
|
519 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
520 |
|
gone. It's job from the dialog's point of view is now done by the |
521 |
|
mainwindow, i.e. the parent. |
522 |
|
|
523 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
524 |
|
gone. It's job from the dialog's point of view is now done by the |
525 |
|
mainwindow, i.e. the parent. |
526 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
527 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
528 |
|
can still subscribe to the selection messages. |
529 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
530 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
531 |
|
selection is now accessible through the mainwindow. Subscribe to |
532 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
533 |
|
|
534 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
535 |
|
SHAPES_SELECTED message now. |
536 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
537 |
|
so deal with multiple shapes |
538 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
539 |
|
gone. It's job from the dialog's point of view is now done by the |
540 |
|
mainwindow, i.e. the parent. |
541 |
|
|
542 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
543 |
|
parameter is now a list of shape ids. |
544 |
|
(RecordTable.SetTable): The second parameter is now a list of |
545 |
|
indices. |
546 |
|
|
547 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
548 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
549 |
|
list of shape ids. |
550 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
551 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
552 |
|
distinctions are only executed once. |
553 |
|
|
554 |
|
* test/test_selection.py: Test cases for the selection class |
555 |
|
|
556 |
|
2003-03-11 Jonathan Coles <[email protected]> |
557 |
|
|
558 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
559 |
|
doesn't cause Thuban to crash. |
560 |
|
|
561 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
562 |
|
a layer and its classification better, and be sure to disconnect |
563 |
|
the classification from the layer when the layer is destroyed |
564 |
|
so that we don't maintain a cyclic reference that may not be |
565 |
|
garbage collected. |
566 |
|
|
567 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
568 |
|
|
569 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
570 |
|
|
571 |
|
* HOWTO-Release: New. Information on the steps for releasing |
572 |
|
a new version of Thuban. |
573 |
|
|
574 |
|
2003-03-11 Jonathan Coles <[email protected]> |
575 |
|
|
576 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
577 |
|
Use True instead of true. |
578 |
|
(Classifier): Should have a single panel in which all the controls lie. |
579 |
|
|
580 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
581 |
|
|
582 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
583 |
|
|
584 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
585 |
|
|
586 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
587 |
|
|
588 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
589 |
|
field_type information is present. |
590 |
|
|
591 |
|
2003-03-10 Jonathan Coles <[email protected]> |
592 |
|
|
593 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
594 |
|
field type label grow so that when the text changes the |
595 |
|
size is updated correctly. This may be a wxWindows bug. |
596 |
|
|
597 |
|
2003-03-10 Jonathan Coles <[email protected]> |
598 |
|
|
599 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
600 |
|
SESSION_REPLACED. |
601 |
|
|
602 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
603 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
604 |
|
instead of in Reset, so we only set the size once. |
605 |
|
|
606 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
607 |
|
|
608 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
609 |
|
Call Close() instead of Shutdown(). |
610 |
|
|
611 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
612 |
|
|
613 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
614 |
|
Go back to using OnClose() instead of Shutdown(). |
615 |
|
|
616 |
|
2003-03-10 Jonathan Coles <[email protected]> |
617 |
|
|
618 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
619 |
|
to know the old field index as well as the new one. |
620 |
|
|
621 |
|
2003-03-10 Jonathan Coles <[email protected]> |
622 |
|
|
623 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
624 |
|
to correctly set the table information and call this from |
625 |
|
__init__ and from _OnFieldSelect so that all the information |
626 |
|
is up to date when the dialog opens and when a field is changed. |
627 |
|
|
628 |
|
2003-03-10 Jonathan Coles <[email protected]> |
629 |
|
|
630 |
|
* Thuban/Model/classification.py (Classification): Don't use |
631 |
|
layer's message function directly, use the ClassChanged() method |
632 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
633 |
|
must keep the information about field name and field type in |
634 |
|
sync when an owning layer is set or removed. |
635 |
|
|
636 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
637 |
|
classification can tell the layer when its data has changed. |
638 |
|
(Layer.SetClassification): Accepts None as an arguement to |
639 |
|
remove the current classification and correctly handles |
640 |
|
adding a new classification. |
641 |
|
|
642 |
|
* Thuban/Model/load.py: Comment out print statement |
643 |
|
|
644 |
|
* test/test_classification.py, test/test_save.py: New and |
645 |
|
improved tests. |
646 |
|
|
647 |
|
2003-03-07 Jonathan Coles <[email protected]> |
648 |
|
|
649 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
650 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
651 |
|
they can easily be copied by the classifier dialog. |
652 |
|
(ClassGroupProperites.__init__): The default line color should |
653 |
|
have been Color.Black. |
654 |
|
|
655 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
656 |
|
uses a consistent set of functions. |
657 |
|
(Classifier): Now non-modal. Has field type label which changes |
658 |
|
as the field changes. Keep track of buttons in a list so that |
659 |
|
we can enable/disable the buttons when the None field is selected. |
660 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
661 |
|
|
662 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
663 |
|
does what OnClose did, but can be called by the application to |
664 |
|
close a window. Needed when a session changes, and we have to |
665 |
|
close the classifier windows. |
666 |
|
|
667 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
668 |
|
Shuts down open dialogs. Used when a new session is created |
669 |
|
or a session is opened. |
670 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
671 |
|
if we don't call SaveSessionAs first. |
672 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
673 |
|
different layers. |
674 |
|
|
675 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
676 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
677 |
|
event notification and call the parent Shutdown(). This was |
678 |
|
necessary so the application can close the tree window. |
679 |
|
|
680 |
|
2003-03-06 Jonathan Coles <[email protected]> |
681 |
|
|
682 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
683 |
|
Addition of __eq__ and __ne__ methods. |
684 |
|
(Classification.SetLayer): prevent recursion between this method |
685 |
|
and Layer.SetClassification(). |
686 |
|
|
687 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
688 |
|
|
689 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
690 |
|
between this method and Classification.SetLayer(). |
691 |
|
|
692 |
|
* test/test_classification.py, test/test_load.py, |
693 |
|
test/test_session.py: Fixed and added tests for the classification |
694 |
|
classes. |
695 |
|
|
696 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
697 |
|
|
698 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
699 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
700 |
|
CreateTable because otherwise it triggers an assertion in |
701 |
|
wxPython/wxGTK 2.4. |
702 |
|
|
703 |
|
2003-03-05 Jonathan Coles <[email protected]> |
704 |
|
|
705 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
706 |
|
|
707 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
708 |
|
|
709 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
710 |
|
|
711 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
712 |
|
|
713 |
|
2003-03-05 Jonathan Coles <[email protected]> |
714 |
|
|
715 |
|
* Thuban/UI/classifier.py: Added class documentation. |
716 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
717 |
|
Store just the groups in the table and generate the other |
718 |
|
column information when it is requested. Add "None" field |
719 |
|
to pull-down to select no classification. |
720 |
|
|
721 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
722 |
|
(Str2Num): Only catch ValueError exceptions. |
723 |
|
|
724 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
725 |
|
of methods with Stroke to Line. Groups are stored in a single |
726 |
|
list with the default as the first element. Groups are searched |
727 |
|
in the order they appear in the list. |
728 |
|
|
729 |
|
* Thuban/Model/color.py: Documentation. |
730 |
|
|
731 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
732 |
|
the kind of data represented by a field. |
733 |
|
|
734 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
735 |
|
conversion function; fixes RTbug #1713. |
736 |
|
|
737 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
738 |
|
|
739 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
740 |
|
(Table): Add field_info_by_name() to retrieve field information |
741 |
|
by specifying the field name, not the number. |
742 |
|
|
743 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
744 |
|
|
745 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
746 |
|
get the layer classification once. Don't try to classify |
747 |
|
values when the field is None: just use the default properties. |
748 |
|
|
749 |
|
* Thuban/UI/view.py: Function name changes. |
750 |
|
|
751 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
752 |
|
|
753 |
2003-03-04 Bernhard Herzog <[email protected]> |
2003-03-04 Bernhard Herzog <[email protected]> |
754 |
|
|
755 |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |