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