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