1 |
|
2003-04-22 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
4 |
|
(IdentifyGridCtrl.selected_shape): Use table, not shapetable. |
5 |
|
|
6 |
|
2003-04-17 Bernhard Herzog <[email protected]> |
7 |
|
|
8 |
|
* Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED. |
9 |
|
(Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used |
10 |
|
anymore. |
11 |
|
(Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes) |
12 |
|
(Layer.ShapeType, Layer.Shape): No need to call |
13 |
|
self.open_shapefile since it's always called in __init__ |
14 |
|
|
15 |
|
* Thuban/UI/application.py (ThubanApplication.MainLoop): Removed. |
16 |
|
In wxPython 2.4 there's no need to extend MainLoop anymore since |
17 |
|
wxPython itself makes sure OnExit is called. |
18 |
|
|
19 |
|
2003-04-16 Jonathan Coles <[email protected]> |
20 |
|
|
21 |
|
Initial putback of projection management code. Includes new |
22 |
|
classes to read and write projection files. The current load |
23 |
|
and save classes were abstracted a bit so they could be reused. |
24 |
|
The Projection class was extended to provide new methods and |
25 |
|
have a name. |
26 |
|
|
27 |
|
* Thuban/Model/load.py (XMLProcessor): New. Contains all the |
28 |
|
general XML reading methods that were part of ProcessSession. |
29 |
|
|
30 |
|
* Thuban/Model/proj.py (Projection.__init__): Accepts an optional |
31 |
|
name. |
32 |
|
(ProjFile): New. Represents a file that contains projection |
33 |
|
information. |
34 |
|
|
35 |
|
* Thuban/Model/resource.py: New. Contains general utilities |
36 |
|
for read and writing projection files. |
37 |
|
|
38 |
|
* Thuban/Model/save.py (XMLSaver): New. Contains all the |
39 |
|
general XML writing methods that were part of SessionSaver. |
40 |
|
(SessionSaver): Renamed from Saver. |
41 |
|
|
42 |
|
* test/test_proj.py: New test cases for the projection |
43 |
|
file read and write functions. |
44 |
|
|
45 |
|
2003-04-16 Jonathan Coles <[email protected]> |
46 |
|
|
47 |
|
* Thuban/Model/classification.py: Use repr() around values |
48 |
|
in the ClassGroup*.__repr__() methods so it is clearer when |
49 |
|
a value is a string and when it is a number. |
50 |
|
|
51 |
|
* test/test_load.py: Rework the classification test to test |
52 |
|
that we can load old files. |
53 |
|
(testLabels): Test a file where the groups have labels. |
54 |
|
|
55 |
|
2003-04-16 Bernhard Herzog <[email protected]> |
56 |
|
|
57 |
|
Safer implementation of the performance enhancements of the |
58 |
|
low-level renderer: |
59 |
|
|
60 |
|
* extensions/thuban/wxproj.cpp (extract_projection) |
61 |
|
(extract_pointer): Rename extract_projection to extract_pointer |
62 |
|
and redefine its purpose to return the pointer stored in a CObject |
63 |
|
returned by the object's cobject method. Update all callers. |
64 |
|
(s_draw_info, free_draw_info, draw_polygon_init): Implement the |
65 |
|
handling of these low-level parameters so that each s_draw_info |
66 |
|
instance is handled as a CObject at python level that also |
67 |
|
contains real references to the actual python objects which |
68 |
|
contain the values in the struct. Add free_draw_info as the |
69 |
|
destructor. |
70 |
|
(draw_polygon_shape): Add the py_draw_info parameter which must a |
71 |
|
cobject containing an s_draw_info pointer. |
72 |
|
|
73 |
|
* Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New |
74 |
|
method to instantiat the low-level render parameter |
75 |
|
(MapRenderer.draw_shape_layer): Use the new method. Remove some |
76 |
|
commented out code. |
77 |
|
(MapRenderer.draw_polygon_shape): Make the first parameter not the |
78 |
|
layer but the low-level render parameter |
79 |
|
(ScreenRenderer.draw_shape_layer): Use the low-level render |
80 |
|
parameter. |
81 |
|
|
82 |
|
2003-04-15 Jonathan Coles <[email protected]> |
83 |
|
|
84 |
|
* Thuban/Model/classification.py: Implemented __repr__ for |
85 |
|
the ClassGroup* classes to make debugging a bit easier. |
86 |
|
(ClassGroup.SetLabel): Check that the string is an instance |
87 |
|
of StringTypes not StringType. Accounts for Unicode strings. |
88 |
|
|
89 |
|
* Thuban/Model/color.py: Implemented __repr__ to make |
90 |
|
debugging a bit easier. |
91 |
|
|
92 |
|
* Thuban/Model/save.py (Saver.write_classification): Need to |
93 |
|
save the group label. |
94 |
|
|
95 |
|
* test/test_load.py (testClassification): New. Loads the |
96 |
|
iceland_sample_test.thuban file and checks if it was loaded |
97 |
|
correctly. |
98 |
|
|
99 |
|
2003-04-15 Jonathan Coles <[email protected]> |
100 |
|
|
101 |
|
* extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used |
102 |
|
to improve rendering performance by initializing the variables |
103 |
|
that are not change each time draw_polygon_shape() is called. |
104 |
|
The values are stored in a global struct draw_info. |
105 |
|
(draw_polygon_shape): Removed initialization code that is |
106 |
|
now in draw_polygon_init(). |
107 |
|
|
108 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make |
109 |
|
drawing initialization call to draw_polygon_init() |
110 |
|
(MapRenderer.draw_polygon_shape): Use new signature of |
111 |
|
draw_polygon_shape. |
112 |
|
|
113 |
|
* Thuban/UI/classgen.py (GenUniformPanel): Fix spin control |
114 |
|
weirdness by setting the range to (1, maxint). |
115 |
|
|
116 |
|
* Thuban/Model/classification.py (ClassGroupProperties): Make |
117 |
|
instance variables private and optimize comparison operator |
118 |
|
by first checking if the color references are the same. |
119 |
|
(ClassGroupSingleton): Make instance variables private. |
120 |
|
(ClassGroupRange): Make instance variables private. |
121 |
|
|
122 |
|
* HOWTO-Release: Filled in missing steps for releasing packages. |
123 |
|
|
124 |
|
2003-04-15 Bernhard Herzog <[email protected]> |
125 |
|
|
126 |
|
First stab at internationalized messages: |
127 |
|
|
128 |
|
* Thuban/__init__.py (_): Implement the translation function for |
129 |
|
real using the python gettext module. |
130 |
|
|
131 |
|
* Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't |
132 |
|
translate empty strings. |
133 |
|
|
134 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
135 |
|
Add a missing space to a warning message |
136 |
|
|
137 |
|
* po/README: New. Notes about the management of the translation |
138 |
|
files. |
139 |
|
|
140 |
|
* po/Makefile: New. Makefile to help manage the translation files. |
141 |
|
|
142 |
|
* po/es.po: New. Spanish translation by Daniel Calvelo Aros |
143 |
|
|
144 |
|
* MANIFEST.in: Include the *.mo files in Resources/Locale and the |
145 |
|
translations and support files in po/ |
146 |
|
|
147 |
|
* setup.py (data_files): Add the *.mo files to the data_files too |
148 |
|
|
149 |
|
* README: Add note about the translations when building from CVS |
150 |
|
|
151 |
|
2003-04-14 Jonathan Coles <[email protected]> |
152 |
|
|
153 |
|
* Thuban/UI/dock.py: Fixes some window resizing problems most |
154 |
|
noticable under windows. Always assume the button bitmaps will |
155 |
|
be there. Code clean up. |
156 |
|
(DockabelWindow.Dock, DockableWindow.UnDock): Force all the |
157 |
|
images for the dock/undock button to the same images. |
158 |
|
Work around for RTbug #1801. |
159 |
|
|
160 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should |
161 |
|
be allowed to grow within the sizer. Fixes a bug under Windows |
162 |
|
where the toolbar wasn't being drawn. |
163 |
|
|
164 |
|
2003-04-14 Frank Koormann <[email protected]> |
165 |
|
|
166 |
|
* Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm: |
167 |
|
Updated design to try to make the button functionality more |
168 |
|
transparent. |
169 |
|
|
170 |
|
2003-04-14 Jonathan Coles <[email protected]> |
171 |
|
|
172 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to |
173 |
|
finalize the intialization of the panel. |
174 |
|
|
175 |
|
* Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the |
176 |
|
creation of the panel. Should be the last thing called in the |
177 |
|
initializer of a subclass. |
178 |
|
|
179 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively |
180 |
|
set the current selections in the combo boxes. This is needed |
181 |
|
under Windows. |
182 |
|
|
183 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add a top |
184 |
|
level panel to the dialog so that the background colors are |
185 |
|
consistent under Windows. |
186 |
|
|
187 |
|
2003-04-11 Jonathan Coles <[email protected]> |
188 |
|
|
189 |
|
* Thuban/UI/classgen.py: Change color ramps to start at white |
190 |
|
not black. |
191 |
|
|
192 |
|
* Thuban/UI/legend.py: Enable/disable the legend buttons when |
193 |
|
the legend changes. Fixes RTbug #1793. |
194 |
|
|
195 |
|
* test/test_classification.py: Added test for copying of |
196 |
|
classifications. |
197 |
|
|
198 |
|
2003-04-11 Jonathan Coles <[email protected]> |
199 |
|
|
200 |
|
* Thuban/UI/resource.py: New. Centralize the loading of resources |
201 |
|
such as bitmaps. |
202 |
|
|
203 |
|
* Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons, |
204 |
|
added images to the move buttons, added 'reverse' button. |
205 |
|
(CustomRampPanel.__init__): Added images to the move buttons. |
206 |
|
(GreyRamp): New. Generates a ramp from white to black. |
207 |
|
(HotToColdRamp): New. Generates a ramp from cold to hot colors. |
208 |
|
|
209 |
|
* Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to |
210 |
|
ID_PROPERTY_*. |
211 |
|
(Classifier.__init__): Minor changes to the layout. |
212 |
|
(Classifier._OnTitleChanged): Listen for when the user edits the |
213 |
|
title and update the dialog's title and the layer's title. |
214 |
|
|
215 |
|
* Thuban/UI/dock.py: Use new bitmaps for the control buttons. |
216 |
|
|
217 |
|
* Thuban/UI/legend.py: Use new bitmaps for the control buttons. |
218 |
|
(LegendTree._OnMsgLayerTitleChanged): Change the displayed title |
219 |
|
if the layer's title changes. |
220 |
|
|
221 |
|
* Thuban/UI/mainwindow.py: Added new menu item and associated code |
222 |
|
to open a dialog to rename the map. |
223 |
|
(MainWindow): Use new resource class to import bitmaps. |
224 |
|
|
225 |
|
2003-04-11 Jonathan Coles <[email protected]> |
226 |
|
|
227 |
|
* Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm, |
228 |
|
Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm, |
229 |
|
Resources/Bitmaps/group_use_none.xpm, |
230 |
|
Resources/Bitmaps/group_use_not.xpm, |
231 |
|
Resources/Bitmaps/hide_layer.xpm, |
232 |
|
Resources/Bitmaps/layer_properties.xpm, |
233 |
|
Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm, |
234 |
|
Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm: |
235 |
|
New. |
236 |
|
|
237 |
|
2003-04-10 Jonathan Coles <[email protected]> |
238 |
|
|
239 |
|
* Thuban/Model/classification.py: (ClassGroupRange.__init__): |
240 |
|
Should pass group to ClassGroup constructor. |
241 |
|
|
242 |
|
2003-04-10 Jonathan Coles <[email protected]> |
243 |
|
|
244 |
|
* Thuban/Model/classification.py: (ClassGroup): Move all the common |
245 |
|
methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__) |
246 |
|
here. Implement SetVisible(), IsVisible(). |
247 |
|
(ClassGroup.__init__): Add group parameter which acts as a copy |
248 |
|
constructor. |
249 |
|
|
250 |
|
* Thuban/UI/classifier.py (ClassTable): Add a new column for the |
251 |
|
"Visible" check boxes. |
252 |
|
(Classifier): Rename the buttons and refactor the code to match |
253 |
|
the new labels. |
254 |
|
|
255 |
|
* Thuban/UI/legend.py: Classify button is now called "Properties". |
256 |
|
Refactored the code to change variable names. |
257 |
|
(LegendTree.__FillTreeLayer): Only list a group if it is visible. |
258 |
|
|
259 |
|
* Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to |
260 |
|
MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties |
261 |
|
renamed to MainWindow.LayerEditProperties. |
262 |
|
(MainWindow.ToggleLegend): Don't include map name in legend title. |
263 |
|
(MainWindow.SetMap): Added the map name to the window title. |
264 |
|
(MainWindow.LayerFillColor, MainWindow.LayerTransparentFill, |
265 |
|
MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed. |
266 |
|
Functionality is found in the layer properties dialog. |
267 |
|
|
268 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
269 |
|
draw visible groups. |
270 |
|
|
271 |
|
2003-04-09 Jonathan Coles <[email protected]> |
272 |
|
|
273 |
|
* Thuban/UI/classgen.py: Modifications to allow simple |
274 |
|
addition and selection of new color schemes. |
275 |
|
(MonochromaticRamp): New. Generates a ramp between two colors. |
276 |
|
(RedRamp): New. Generates a ramp of all red. |
277 |
|
(GreenRamp): New. Generates a ramp of all green. |
278 |
|
(BlueRamp): New. Generates a ramp of all blue. |
279 |
|
|
280 |
|
2003-04-09 Jonathan Coles <[email protected]> |
281 |
|
|
282 |
|
* Thuban/Model/classification.py (Classification.__deepcopy__): |
283 |
|
Need to copy over field and fieldType attributes. |
284 |
|
|
285 |
|
* Thuban/Model/table.py (Table.field_range): New. Retrive the |
286 |
|
maximum and minimum values over the entire table for a given |
287 |
|
field. |
288 |
|
(Table.GetUniqueValues): New. Retrieve all the unique values |
289 |
|
in the table for a given field. |
290 |
|
|
291 |
|
* Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel. |
292 |
|
(GenUniquePanel): New. Controls to allow the user to select |
293 |
|
which unique field values they would like in the classification. |
294 |
|
(CustomRampPanel): Code that was in ClassGenDialog that allows |
295 |
|
the user to select the properties for a custom ramp. |
296 |
|
(ClassGenerator.GenUniformDistribution): Was called GenerateRanges. |
297 |
|
|
298 |
|
* Thuban/UI/classifier.py: Removed a lot of debugging code. |
299 |
|
(Classifier._SetClassification): Callback method so that the |
300 |
|
class generator can set the classification in the grid. |
301 |
|
(ClassGroupPropertiesCtrl): New. Encapsulates the drawing and |
302 |
|
editing of a group properties class into a wxWindows control. |
303 |
|
|
304 |
|
* Thuban/UI/dock.py: It was decided that if the user closes |
305 |
|
a dockable window the window should simply hide itself. That |
306 |
|
way if the user wants to show the dock again it appears in the |
307 |
|
same place as it was when it was closed. |
308 |
|
(DockableWindow.Destroy): Call renamed method OnDockDestroy(). |
309 |
|
(DockableWindow._OnButtonClose): Hide the window instead of |
310 |
|
destroying it. |
311 |
|
(DockableWindow._OnClose): Hide the window instead of |
312 |
|
destroying it. |
313 |
|
|
314 |
|
* Thuban/UI/legend.py (LegendTree): Use a private method to |
315 |
|
consistently set the font and style of the text. Fixes RTbug #1786. |
316 |
|
|
317 |
|
* Thuban/UI/mainwindow.py: Import just the Classifier class. |
318 |
|
|
319 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
320 |
|
|
321 |
|
* Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item |
322 |
|
to the map module |
323 |
|
|
324 |
|
2003-04-07 Bernhard Herzog <[email protected]> |
325 |
|
|
326 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in |
327 |
|
favor of ToggleSessionTree |
328 |
|
(MainWindow.ToggleSessionTree): New method to toggle visibility of |
329 |
|
the session tree. |
330 |
|
(MainWindow.SessionTreeShown): New method to return whether the |
331 |
|
session tree is currently shown. |
332 |
|
(MainWindow.ToggleLegend): New method to toggle visibility of the |
333 |
|
legend |
334 |
|
(MainWindow.ShowLegend): Implement in terms of ToggleLegend and |
335 |
|
LegendShown |
336 |
|
(MainWindow.LegendShown): New method to return whether the legend |
337 |
|
is currently shown. |
338 |
|
(_method_command): Add checked parameter so we can define check |
339 |
|
menu items |
340 |
|
(_has_tree_window_shown, _has_legend_shown): Use the appropriate |
341 |
|
mainwindow methods. |
342 |
|
(show_session_tree, show_legend commands): Removed. |
343 |
|
(toggle_session_tree, toggle_legend commands): New commands to |
344 |
|
toggle the visibility of the dialogs |
345 |
|
|
346 |
|
2003-04-07 Jonathan Coles <[email protected]> |
347 |
|
|
348 |
|
* Thuban/UI/classgen.py: Fix Windows problem. |
349 |
|
|
350 |
|
* Thuban/UI/dock.py: Fix Windows problem. |
351 |
|
|
352 |
|
* Thuban/UI/mainwindow.py: Use False instead of false. |
353 |
|
(MainWindow.ShowLegend): Remove unnecessary switch parameter. |
354 |
|
|
355 |
|
2003-04-07 Jonathan Coles <[email protected]> |
356 |
|
|
357 |
|
Since we now say that the order of the groups in a classification |
358 |
|
matters, it makes sense to be able to manipulate that order. Most |
359 |
|
of the changes to Thuban/Model/classification.py are to that end. |
360 |
|
|
361 |
|
* Thuban/Model/classification.py (Classification.AppendGroup, |
362 |
|
Classification.InsertGroup, Classification.ReplaceGroup, |
363 |
|
Classification.RemoveGroup, Classification.GetGroup): Do as the |
364 |
|
names imply. |
365 |
|
(Classification.FindGroup): This was called GetGroup, but GetGroup |
366 |
|
takes an index, while FindGroup takes a value. |
367 |
|
(Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER |
368 |
|
REFERENCE. Currently there is a cyclic reference between the layer |
369 |
|
and its classification. If the classification doesn't need to know |
370 |
|
its owning layer we can change this, since it may make sense to be |
371 |
|
able to use the same classification with different layers. |
372 |
|
|
373 |
|
* Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup() |
374 |
|
|
375 |
|
* Thuban/UI/classgen.py: Use Classification.AppendGroup(), |
376 |
|
not AddGroup() |
377 |
|
|
378 |
|
* Thuban/UI/classifier.py: Now that we can depend on the order in |
379 |
|
a Classification and have methods to manipulate that order we don't |
380 |
|
need to use our own data structures in the grid. We can simply make |
381 |
|
the grid/table access the information they need from a copy of |
382 |
|
the classification object. |
383 |
|
(Classifier._OnCloseBtn): Event handler for when the user clicks |
384 |
|
'Close'. This is needed so if the user applies changes and then |
385 |
|
continues to change the table the user has the option of discarding |
386 |
|
the most recent changes and keeping what they applied. |
387 |
|
|
388 |
|
* Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree" |
389 |
|
into the same group. |
390 |
|
|
391 |
|
* extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled |
392 |
|
with a really old version of proj, PJ_VERSION won't even be defined. |
393 |
|
If it isn't defined then just compile so that the function always |
394 |
|
returns Py_False. |
395 |
|
|
396 |
|
* test/test_classification.py: Fix tests to use the renamed methods. |
397 |
|
Still need to write tests for the new methods. |
398 |
|
|
399 |
|
2003-04-04 Jonathan Coles <[email protected]> |
400 |
|
|
401 |
|
* Thuban/UI/classifier.py (Classifier.__SelectField): Move the |
402 |
|
call to SetSelection out of the method and before the call |
403 |
|
to __SelectField in __init__. This prevents a recursion of events |
404 |
|
when _OnFieldSelect is triggered by the user. |
405 |
|
|
406 |
|
2003-04-04 Jonathan Coles <[email protected]> |
407 |
|
|
408 |
|
* Thuban/Model/classification.py: Rename Color.None to |
409 |
|
Color.Transparent. |
410 |
|
(ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill): |
411 |
|
Don't bother copying the color, since Colors are immutable. |
412 |
|
|
413 |
|
* Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py, |
414 |
|
Thuban/UI/classifier.py, Thuban/UI/mainwindow.py, |
415 |
|
Thuban/UI/renderer.py, Thuban/UI/view.py: |
416 |
|
Rename Color.None to Color.Transparent. |
417 |
|
|
418 |
|
* test/test_classification.py, test/test_load.py: Rename Color.None |
419 |
|
to Color.Transparent. |
420 |
|
|
421 |
|
2003-04-04 Jonathan Coles <[email protected]> |
422 |
|
|
423 |
|
* Thuban/Model/classification.py: Fix assert calls. |
424 |
|
(ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill): |
425 |
|
Copy the color parameter rather than hold onto a reference. |
426 |
|
|
427 |
|
* Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy |
428 |
|
the color object. |
429 |
|
(NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we |
430 |
|
are sure there exists only one refernce to Color.None in the system. |
431 |
|
This allows us to use 'is' rather than the comparision functions. |
432 |
|
|
433 |
|
* Thuban/Model/save.py: Fix assert calls. |
434 |
|
|
435 |
|
* Thuban/UI/classifier.py: Fix assert calls. |
436 |
|
(ClassGrid._OnCellDClick): Call up to the classifier to open the |
437 |
|
dialog to edit the groups properties. |
438 |
|
(ClassGrid._OnCellResize): Make sure that the scollbars are drawn |
439 |
|
correctly if a cell is resized. |
440 |
|
(ClassTable.SetClassification): New. Changes the classification |
441 |
|
that is in the table. |
442 |
|
(ClassTable.__SetRow): Allow groups to be prepended. |
443 |
|
(Classifier): New code for opening the EditProperties and |
444 |
|
GenerateRanges dialogs. |
445 |
|
(SelectPropertiesDialog.__GetColor): Only set the color in the |
446 |
|
color dialog if the current color is not None. |
447 |
|
|
448 |
|
* Thuban/UI/dock.py: Fix assert calls. |
449 |
|
|
450 |
|
* Thuban/UI/legend.py: Fix assert calls. |
451 |
|
|
452 |
|
* Thuban/UI/renderer.py: Fix assert calls. |
453 |
|
|
454 |
|
* Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating |
455 |
|
classifications. |
456 |
|
(GenRangePanel): Panel specific to range generation. |
457 |
|
(GenSingletonPanel): Panel specific to singleton generation. |
458 |
|
(ClassGenerator): Class responsible for actually generating |
459 |
|
the classification from the data gathered in the dialog box. |
460 |
|
(PropertyRamp): Generates properties whose values range from |
461 |
|
a starting property to an ending property. |
462 |
|
|
463 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
464 |
|
|
465 |
|
* test/support.py (print_garbage_information): New function that |
466 |
|
prints information about still connected messages and memory |
467 |
|
leaks. |
468 |
|
(run_suite): Removed. |
469 |
|
(run_tests): New function for use as a replacement of |
470 |
|
unittest.main in the test_* files. This one calls |
471 |
|
print_garbage_information at the end. |
472 |
|
|
473 |
|
* test/runtests.py (main): Use support.print_garbage_information |
474 |
|
|
475 |
|
* test/test_layer.py: Use support.run_tests instead of |
476 |
|
unittest.main so we get memory leak information |
477 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
478 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
479 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
480 |
|
to fix a memory leak. |
481 |
|
|
482 |
|
* test/test_classification.py: Use support.run_tests instead of |
483 |
|
unittest.main so we get memory leak information |
484 |
|
(TestClassification.test_classification): Call the layer's Destroy |
485 |
|
method to fix a memory leak. |
486 |
|
|
487 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
488 |
|
|
489 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
490 |
|
Handle the reference counts of the return value and errors in |
491 |
|
PyArg_ParseTuple correctly. |
492 |
|
|
493 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
494 |
|
sure the filename is absolute to avoid problems when saving the |
495 |
|
session again |
496 |
|
|
497 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
498 |
|
|
499 |
|
2003-04-01 Jonathan Coles <[email protected]> |
500 |
|
|
501 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
502 |
|
that there actually are points in the returned list of points |
503 |
|
before trying to index into the list. The list may be empty if |
504 |
|
the shape is a Null Shape. |
505 |
|
|
506 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
507 |
|
|
508 |
|
* test/test_map.py: Don't use from <module> import * |
509 |
|
|
510 |
|
2003-04-01 Jonathan Coles <[email protected]> |
511 |
|
|
512 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
513 |
|
LAYER_LEGEND_CHANGED |
514 |
|
|
515 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
516 |
|
self.Destroy() to close the window after yesterday's changes. |
517 |
|
|
518 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
519 |
|
are sent from maps and layers. |
520 |
|
|
521 |
|
2003-03-31 Jonathan Coles <[email protected]> |
522 |
|
|
523 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
524 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
525 |
|
RTbug #1769. |
526 |
|
|
527 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
528 |
|
position (although position doesn't work yet under GTK). |
529 |
|
(DockableWindow.Destroy): New. Called when the window must be |
530 |
|
closed. Namely needed when the DockFrame closes and must close |
531 |
|
its children. |
532 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
533 |
|
|
534 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
535 |
|
when then window is told to close. |
536 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
537 |
|
comment in source for more info. |
538 |
|
|
539 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
540 |
|
|
541 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
542 |
|
symmetry with other such methods. |
543 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
544 |
|
|
545 |
|
2003-03-28 Jonathan Coles <[email protected]> |
546 |
|
|
547 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
548 |
|
group within the grid when the classification dialog is opened. |
549 |
|
Also contains a lot of debugging printouts which will later |
550 |
|
be removed. |
551 |
|
|
552 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
553 |
|
that it is fairly removed from the rest of the Thuban application. |
554 |
|
It is easy to add new docks which the rest of the program having |
555 |
|
to be aware of them. |
556 |
|
|
557 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
558 |
|
specific group in the classification dialog. Changed how layers |
559 |
|
are drawn when the layer is visible/invisible. |
560 |
|
|
561 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
562 |
|
replaced it with calls to the new dock code. |
563 |
|
|
564 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
565 |
|
to check if scale > 0. Trying to track down a divide by zero. |
566 |
|
|
567 |
|
2003-03-26 Jonathan Coles <[email protected]> |
568 |
|
|
569 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
570 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
571 |
|
now part of DockableWindow. |
572 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
573 |
|
map. |
574 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
575 |
|
with the selected layer and/or group. |
576 |
|
|
577 |
|
2003-03-26 Jonathan Coles <[email protected]> |
578 |
|
|
579 |
|
This putback contains the code for dockable windows. There is |
580 |
|
no support in wxWindows as of this date for windows that can |
581 |
|
attach themselves to other windows. |
582 |
|
|
583 |
|
The current model contains a DockableWindow which has a parent |
584 |
|
window for when it is detached and a dock window that it puts |
585 |
|
its contents in when it is docked. The contents of a DockableWindow |
586 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
587 |
|
|
588 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
589 |
|
message, not a LAYER_LEGEND_CHANGED message. |
590 |
|
|
591 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
592 |
|
|
593 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
594 |
|
as one of the style properties for the fieldTypeText item to |
595 |
|
be sure that its size is correct when the text changes. |
596 |
|
|
597 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
598 |
|
DockableWindow. |
599 |
|
|
600 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
601 |
|
LegendPanel a DockPanel. |
602 |
|
|
603 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
604 |
|
and supporting functions for manipulating the sashes. |
605 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
606 |
|
LegendPanel as the contents. |
607 |
|
|
608 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
609 |
|
|
610 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
611 |
|
not LAYER_LEGEND_CHANGED, messages. |
612 |
|
|
613 |
|
2003-03-25 Jonathan Coles <[email protected]> |
614 |
|
|
615 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
616 |
|
when the rpm is built the path to wx-config is correct. |
617 |
|
|
618 |
|
* setup.cfg: Added line saying to use the custom build script |
619 |
|
|
620 |
|
2003-03-20 Jonathan Coles <[email protected]> |
621 |
|
|
622 |
|
Initial implementation of the Legend. |
623 |
|
|
624 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
625 |
|
Legend information and allows the user to add/modify classifications |
626 |
|
and how the layers are drawn on the map. |
627 |
|
|
628 |
|
* setup.py: New command 'build_docs' which currently uses |
629 |
|
happydoc to generate html documentation for Thuban. |
630 |
|
|
631 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
632 |
|
Returns a string which is appropriately describes the group. |
633 |
|
|
634 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
635 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
636 |
|
|
637 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
638 |
|
specific, messages. |
639 |
|
|
640 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
641 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
642 |
|
when layers have been added/removed/changed or if the stacking order |
643 |
|
of the layers has changed. |
644 |
|
|
645 |
|
* Thuban/Model/session.py: Rename and use new messages. |
646 |
|
|
647 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
648 |
|
been applied so that if the dialog is cancelled without an application |
649 |
|
of changes we don't have to set a new classification. |
650 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
651 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
652 |
|
symbols on any DC. |
653 |
|
|
654 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
655 |
|
|
656 |
|
* Thuban/UI/view.py: Use new message names. |
657 |
|
|
658 |
|
2003-03-19 Jonathan Coles <[email protected]> |
659 |
|
|
660 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
661 |
|
of Python, wxPython, and some other libraries. |
662 |
|
|
663 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
664 |
|
version against what wxproj was compiled with. |
665 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
666 |
|
the given version against the version of the gtk library |
667 |
|
currently being used. |
668 |
|
|
669 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
670 |
|
|
671 |
|
* test/test_command.py: Run the tests when the module is run as a |
672 |
|
script |
673 |
|
|
674 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
675 |
|
|
676 |
|
Implement selection of multiple selected shapes in the same layer: |
677 |
|
|
678 |
|
- Introduce a new class to hold the selection. This basically |
679 |
|
replaces the interactor which was nothing more than the |
680 |
|
selection anyway. A major difference is of course that the new |
681 |
|
selection class supports multiple selected shapes in one layer |
682 |
|
|
683 |
|
- Move the object that represents the selection from the |
684 |
|
application to the canvas. The canvas is a better place than the |
685 |
|
application because the selection represents which shapes and |
686 |
|
layer of the map displayed by the canvas are selected and |
687 |
|
affects how the map is drawn. |
688 |
|
|
689 |
|
- Make the selection and its messages publicly available through |
690 |
|
the mainwindow. |
691 |
|
|
692 |
|
- The non-modal dialogs do not get a reference to the interactor |
693 |
|
anymore as they can simply refer to their parent, the |
694 |
|
mainwindow, for the what the interactor had to offer. |
695 |
|
|
696 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
697 |
|
selection. |
698 |
|
|
699 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
700 |
|
these unused messages |
701 |
|
|
702 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
703 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
704 |
|
interactor is gone now. |
705 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
706 |
|
anymore so we pass None as the interactor argument for now for |
707 |
|
compatibility. |
708 |
|
|
709 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
710 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
711 |
|
Unsubscribe, delegate messages according to the delegated_messages |
712 |
|
class variable. |
713 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
714 |
|
attributes from instance variables as described with the |
715 |
|
delegated_methods class variable. |
716 |
|
(MapCanvas.__init__): New instance variable selection holding the |
717 |
|
current selection |
718 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
719 |
|
pass them on to the renderer |
720 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
721 |
|
selected. |
722 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
723 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
724 |
|
messages when the set of selected shapes actually does change. |
725 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
726 |
|
self.selection |
727 |
|
|
728 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
729 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
730 |
|
Unsubscribe, delegate messages according to the delegated_messages |
731 |
|
class variable. |
732 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
733 |
|
attributes from instance variables as described with the |
734 |
|
delegated_methods class variable. |
735 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
736 |
|
parameter is still there for compatibility. The selection messages |
737 |
|
now come from the canvas. |
738 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
739 |
|
Delegate to the the canvas. |
740 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
741 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
742 |
|
interactor parameter anymore. |
743 |
|
|
744 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
745 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
746 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
747 |
|
from the dialog's point of view is now done by the mainwindow, |
748 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
749 |
|
of SELECTED_SHAPE |
750 |
|
|
751 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
752 |
|
is gone. It's job from the dialog's point of view is now done by |
753 |
|
the mainwindow, i.e. the parent. |
754 |
|
|
755 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
756 |
|
gone. It's job from the dialog's point of view is now done by the |
757 |
|
mainwindow, i.e. the parent. |
758 |
|
|
759 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
760 |
|
gone. It's job from the dialog's point of view is now done by the |
761 |
|
mainwindow, i.e. the parent. |
762 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
763 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
764 |
|
can still subscribe to the selection messages. |
765 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
766 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
767 |
|
selection is now accessible through the mainwindow. Subscribe to |
768 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
769 |
|
|
770 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
771 |
|
SHAPES_SELECTED message now. |
772 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
773 |
|
so deal with multiple shapes |
774 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
775 |
|
gone. It's job from the dialog's point of view is now done by the |
776 |
|
mainwindow, i.e. the parent. |
777 |
|
|
778 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
779 |
|
parameter is now a list of shape ids. |
780 |
|
(RecordTable.SetTable): The second parameter is now a list of |
781 |
|
indices. |
782 |
|
|
783 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
784 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
785 |
|
list of shape ids. |
786 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
787 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
788 |
|
distinctions are only executed once. |
789 |
|
|
790 |
|
* test/test_selection.py: Test cases for the selection class |
791 |
|
|
792 |
|
2003-03-11 Jonathan Coles <[email protected]> |
793 |
|
|
794 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
795 |
|
doesn't cause Thuban to crash. |
796 |
|
|
797 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
798 |
|
a layer and its classification better, and be sure to disconnect |
799 |
|
the classification from the layer when the layer is destroyed |
800 |
|
so that we don't maintain a cyclic reference that may not be |
801 |
|
garbage collected. |
802 |
|
|
803 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
804 |
|
|
805 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
806 |
|
|
807 |
|
* HOWTO-Release: New. Information on the steps for releasing |
808 |
|
a new version of Thuban. |
809 |
|
|
810 |
|
2003-03-11 Jonathan Coles <[email protected]> |
811 |
|
|
812 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
813 |
|
Use True instead of true. |
814 |
|
(Classifier): Should have a single panel in which all the controls lie. |
815 |
|
|
816 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
817 |
|
|
818 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
819 |
|
|
820 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
821 |
|
|
822 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
823 |
|
|
824 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
825 |
|
field_type information is present. |
826 |
|
|
827 |
|
2003-03-10 Jonathan Coles <[email protected]> |
828 |
|
|
829 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
830 |
|
field type label grow so that when the text changes the |
831 |
|
size is updated correctly. This may be a wxWindows bug. |
832 |
|
|
833 |
|
2003-03-10 Jonathan Coles <[email protected]> |
834 |
|
|
835 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
836 |
|
SESSION_REPLACED. |
837 |
|
|
838 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
839 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
840 |
|
instead of in Reset, so we only set the size once. |
841 |
|
|
842 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
843 |
|
|
844 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
845 |
|
Call Close() instead of Shutdown(). |
846 |
|
|
847 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
848 |
|
|
849 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
850 |
|
Go back to using OnClose() instead of Shutdown(). |
851 |
|
|
852 |
|
2003-03-10 Jonathan Coles <[email protected]> |
853 |
|
|
854 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
855 |
|
to know the old field index as well as the new one. |
856 |
|
|
857 |
|
2003-03-10 Jonathan Coles <[email protected]> |
858 |
|
|
859 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
860 |
|
to correctly set the table information and call this from |
861 |
|
__init__ and from _OnFieldSelect so that all the information |
862 |
|
is up to date when the dialog opens and when a field is changed. |
863 |
|
|
864 |
|
2003-03-10 Jonathan Coles <[email protected]> |
865 |
|
|
866 |
|
* Thuban/Model/classification.py (Classification): Don't use |
867 |
|
layer's message function directly, use the ClassChanged() method |
868 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
869 |
|
must keep the information about field name and field type in |
870 |
|
sync when an owning layer is set or removed. |
871 |
|
|
872 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
873 |
|
classification can tell the layer when its data has changed. |
874 |
|
(Layer.SetClassification): Accepts None as an arguement to |
875 |
|
remove the current classification and correctly handles |
876 |
|
adding a new classification. |
877 |
|
|
878 |
|
* Thuban/Model/load.py: Comment out print statement |
879 |
|
|
880 |
|
* test/test_classification.py, test/test_save.py: New and |
881 |
|
improved tests. |
882 |
|
|
883 |
|
2003-03-07 Jonathan Coles <[email protected]> |
884 |
|
|
885 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
886 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
887 |
|
they can easily be copied by the classifier dialog. |
888 |
|
(ClassGroupProperites.__init__): The default line color should |
889 |
|
have been Color.Black. |
890 |
|
|
891 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
892 |
|
uses a consistent set of functions. |
893 |
|
(Classifier): Now non-modal. Has field type label which changes |
894 |
|
as the field changes. Keep track of buttons in a list so that |
895 |
|
we can enable/disable the buttons when the None field is selected. |
896 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
897 |
|
|
898 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
899 |
|
does what OnClose did, but can be called by the application to |
900 |
|
close a window. Needed when a session changes, and we have to |
901 |
|
close the classifier windows. |
902 |
|
|
903 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
904 |
|
Shuts down open dialogs. Used when a new session is created |
905 |
|
or a session is opened. |
906 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
907 |
|
if we don't call SaveSessionAs first. |
908 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
909 |
|
different layers. |
910 |
|
|
911 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
912 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
913 |
|
event notification and call the parent Shutdown(). This was |
914 |
|
necessary so the application can close the tree window. |
915 |
|
|
916 |
|
2003-03-06 Jonathan Coles <[email protected]> |
917 |
|
|
918 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
919 |
|
Addition of __eq__ and __ne__ methods. |
920 |
|
(Classification.SetLayer): prevent recursion between this method |
921 |
|
and Layer.SetClassification(). |
922 |
|
|
923 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
924 |
|
|
925 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
926 |
|
between this method and Classification.SetLayer(). |
927 |
|
|
928 |
|
* test/test_classification.py, test/test_load.py, |
929 |
|
test/test_session.py: Fixed and added tests for the classification |
930 |
|
classes. |
931 |
|
|
932 |
2003-03-06 Bernhard Herzog <[email protected]> |
2003-03-06 Bernhard Herzog <[email protected]> |
933 |
|
|
934 |
* Thuban/UI/classifier.py (ClassGrid.__init__) |
* Thuban/UI/classifier.py (ClassGrid.__init__) |