1 |
|
2003-04-03 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/support.py (print_garbage_information): New function that |
4 |
|
prints information about still connected messages and memory |
5 |
|
leaks. |
6 |
|
(run_suite): Removed. |
7 |
|
(run_tests): New function for use as a replacement of |
8 |
|
unittest.main in the test_* files. This one calls |
9 |
|
print_garbage_information at the end. |
10 |
|
|
11 |
|
* test/runtests.py (main): Use support.print_garbage_information |
12 |
|
|
13 |
|
* test/test_layer.py: Use support.run_tests instead of |
14 |
|
unittest.main so we get memory leak information |
15 |
|
(TestLayer.test_arc_layer, TestLayer.test_polygon_layer) |
16 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
17 |
|
(TestLayerLegend.test_visibility): Call the layer's Destroy method |
18 |
|
to fix a memory leak. |
19 |
|
|
20 |
|
* test/test_classification.py: Use support.run_tests instead of |
21 |
|
unittest.main so we get memory leak information |
22 |
|
(TestClassification.test_classification): Call the layer's Destroy |
23 |
|
method to fix a memory leak. |
24 |
|
|
25 |
|
2003-04-02 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
28 |
|
Handle the reference counts of the return value and errors in |
29 |
|
PyArg_ParseTuple correctly. |
30 |
|
|
31 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): Make |
32 |
|
sure the filename is absolute to avoid problems when saving the |
33 |
|
session again |
34 |
|
|
35 |
|
* Thuban/Model/table.py: Remove unnecessary import. Fix a typo. |
36 |
|
|
37 |
|
2003-04-01 Jonathan Coles <[email protected]> |
38 |
|
|
39 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check |
40 |
|
that there actually are points in the returned list of points |
41 |
|
before trying to index into the list. The list may be empty if |
42 |
|
the shape is a Null Shape. |
43 |
|
|
44 |
|
2003-04-01 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
* test/test_map.py: Don't use from <module> import * |
47 |
|
|
48 |
|
2003-04-01 Jonathan Coles <[email protected]> |
49 |
|
|
50 |
|
* Thuban/Model/session.py: Use LAYER_CHANGED instead of |
51 |
|
LAYER_LEGEND_CHANGED |
52 |
|
|
53 |
|
* Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call |
54 |
|
self.Destroy() to close the window after yesterday's changes. |
55 |
|
|
56 |
|
* test/test_map.py, test/test_session.py: Fix messages that |
57 |
|
are sent from maps and layers. |
58 |
|
|
59 |
|
2003-03-31 Jonathan Coles <[email protected]> |
60 |
|
|
61 |
|
* Thuban/UI/classifier.py: Commented out some debugging statements. |
62 |
|
(ClassDataPreviewer.Draw): Draw rectangles for polygon layers per |
63 |
|
RTbug #1769. |
64 |
|
|
65 |
|
* Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and |
66 |
|
position (although position doesn't work yet under GTK). |
67 |
|
(DockableWindow.Destroy): New. Called when the window must be |
68 |
|
closed. Namely needed when the DockFrame closes and must close |
69 |
|
its children. |
70 |
|
(DockFrame): Listen for EVT_CLOSE and destroy all children. |
71 |
|
|
72 |
|
* Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up |
73 |
|
when then window is told to close. |
74 |
|
(LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See |
75 |
|
comment in source for more info. |
76 |
|
|
77 |
|
* Thuban/UI/main.py: Show the legend by default when Thuban starts. |
78 |
|
|
79 |
|
* Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for |
80 |
|
symmetry with other such methods. |
81 |
|
(MainWindow.ShowLegend): Show the legend docked by default. |
82 |
|
|
83 |
|
2003-03-28 Jonathan Coles <[email protected]> |
84 |
|
|
85 |
|
* Thuban/UI/classifier.py: Support for highlighting a specific |
86 |
|
group within the grid when the classification dialog is opened. |
87 |
|
Also contains a lot of debugging printouts which will later |
88 |
|
be removed. |
89 |
|
|
90 |
|
* Thuban/UI/dock.py: Complete rework on the dock code so that |
91 |
|
that it is fairly removed from the rest of the Thuban application. |
92 |
|
It is easy to add new docks which the rest of the program having |
93 |
|
to be aware of them. |
94 |
|
|
95 |
|
* Thuban/UI/legend.py: Modifications to support selecting a |
96 |
|
specific group in the classification dialog. Changed how layers |
97 |
|
are drawn when the layer is visible/invisible. |
98 |
|
|
99 |
|
* Thuban/UI/mainwindow.py: Removed legend specific code and |
100 |
|
replaced it with calls to the new dock code. |
101 |
|
|
102 |
|
* Thuban/UI/renderer.py (MapRenderer.__init__): Added assert |
103 |
|
to check if scale > 0. Trying to track down a divide by zero. |
104 |
|
|
105 |
|
2003-03-26 Jonathan Coles <[email protected]> |
106 |
|
|
107 |
|
* Thuban/UI/legend.py: Removed unnecessary LegendDialog class. |
108 |
|
(LegendPanel): Removed _OnDock()/_OnUnDock() methods which are |
109 |
|
now part of DockableWindow. |
110 |
|
(LegendPanel.DoOnSelChanged): Select the current layer in the |
111 |
|
map. |
112 |
|
(LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged() |
113 |
|
with the selected layer and/or group. |
114 |
|
|
115 |
|
2003-03-26 Jonathan Coles <[email protected]> |
116 |
|
|
117 |
|
This putback contains the code for dockable windows. There is |
118 |
|
no support in wxWindows as of this date for windows that can |
119 |
|
attach themselves to other windows. |
120 |
|
|
121 |
|
The current model contains a DockableWindow which has a parent |
122 |
|
window for when it is detached and a dock window that it puts |
123 |
|
its contents in when it is docked. The contents of a DockableWindow |
124 |
|
must be a DockPanel. DockPanel itself derives from wxPanel. |
125 |
|
|
126 |
|
* Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED |
127 |
|
message, not a LAYER_LEGEND_CHANGED message. |
128 |
|
|
129 |
|
* Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages. |
130 |
|
|
131 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE |
132 |
|
as one of the style properties for the fieldTypeText item to |
133 |
|
be sure that its size is correct when the text changes. |
134 |
|
|
135 |
|
* Thuban/UI/dock.py: New. Classes for the DockPanel and |
136 |
|
DockableWindow. |
137 |
|
|
138 |
|
* Thuban/UI/legend.py: Added some more buttons and made the |
139 |
|
LegendPanel a DockPanel. |
140 |
|
|
141 |
|
* Thuban/UI/mainwindow.py: Added sash windows to the main window |
142 |
|
and supporting functions for manipulating the sashes. |
143 |
|
(MainWindow.ShowLegend): Create a DockableWindow with the |
144 |
|
LegendPanel as the contents. |
145 |
|
|
146 |
|
* Thuban/UI/messages.py: Added DOCKABLE_* messages |
147 |
|
|
148 |
|
* Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED, |
149 |
|
not LAYER_LEGEND_CHANGED, messages. |
150 |
|
|
151 |
|
2003-03-25 Jonathan Coles <[email protected]> |
152 |
|
|
153 |
|
* setup.py: Added custom script bdist_rpm_build_script so that |
154 |
|
when the rpm is built the path to wx-config is correct. |
155 |
|
|
156 |
|
* setup.cfg: Added line saying to use the custom build script |
157 |
|
|
158 |
|
2003-03-20 Jonathan Coles <[email protected]> |
159 |
|
|
160 |
|
Initial implementation of the Legend. |
161 |
|
|
162 |
|
* Thuban/UI/legend.py: New. Creates a window that shows the map's |
163 |
|
Legend information and allows the user to add/modify classifications |
164 |
|
and how the layers are drawn on the map. |
165 |
|
|
166 |
|
* setup.py: New command 'build_docs' which currently uses |
167 |
|
happydoc to generate html documentation for Thuban. |
168 |
|
|
169 |
|
* Thuban/Model/classification.py (ClassGroup.GetDisplayText): New. |
170 |
|
Returns a string which is appropriately describes the group. |
171 |
|
|
172 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Generate a |
173 |
|
LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event. |
174 |
|
|
175 |
|
* Thuban/Model/map.py (Map): Rename messages and use new, more |
176 |
|
specific, messages. |
177 |
|
|
178 |
|
* Thuban/Model/messages.py: New message to indicate that a layer's |
179 |
|
data has changed (LAYER_CHANGED). New map messages to indicate |
180 |
|
when layers have been added/removed/changed or if the stacking order |
181 |
|
of the layers has changed. |
182 |
|
|
183 |
|
* Thuban/Model/session.py: Rename and use new messages. |
184 |
|
|
185 |
|
* Thuban/UI/classifier.py: Remember if any changes have actually |
186 |
|
been applied so that if the dialog is cancelled without an application |
187 |
|
of changes we don't have to set a new classification. |
188 |
|
(ClassDataPreviewer): Pulled out the window specific code and put it |
189 |
|
ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw |
190 |
|
symbols on any DC. |
191 |
|
|
192 |
|
* Thuban/UI/mainwindow.py: New code to open the legend. |
193 |
|
|
194 |
|
* Thuban/UI/view.py: Use new message names. |
195 |
|
|
196 |
|
2003-03-19 Jonathan Coles <[email protected]> |
197 |
|
|
198 |
|
* Thuban/UI/main.py (verify_versions): New. Checks the versions |
199 |
|
of Python, wxPython, and some other libraries. |
200 |
|
|
201 |
|
* extensions/thuban/wxproj.cpp (check_version): Checks the given |
202 |
|
version against what wxproj was compiled with. |
203 |
|
(check_version_gtk): If wxproj was compiled with gtk then check |
204 |
|
the given version against the version of the gtk library |
205 |
|
currently being used. |
206 |
|
|
207 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
208 |
|
|
209 |
|
* test/test_command.py: Run the tests when the module is run as a |
210 |
|
script |
211 |
|
|
212 |
|
2003-03-14 Bernhard Herzog <[email protected]> |
213 |
|
|
214 |
|
Implement selection of multiple selected shapes in the same layer: |
215 |
|
|
216 |
|
- Introduce a new class to hold the selection. This basically |
217 |
|
replaces the interactor which was nothing more than the |
218 |
|
selection anyway. A major difference is of course that the new |
219 |
|
selection class supports multiple selected shapes in one layer |
220 |
|
|
221 |
|
- Move the object that represents the selection from the |
222 |
|
application to the canvas. The canvas is a better place than the |
223 |
|
application because the selection represents which shapes and |
224 |
|
layer of the map displayed by the canvas are selected and |
225 |
|
affects how the map is drawn. |
226 |
|
|
227 |
|
- Make the selection and its messages publicly available through |
228 |
|
the mainwindow. |
229 |
|
|
230 |
|
- The non-modal dialogs do not get a reference to the interactor |
231 |
|
anymore as they can simply refer to their parent, the |
232 |
|
mainwindow, for the what the interactor had to offer. |
233 |
|
|
234 |
|
* Thuban/UI/selection.py: New module with a class to represent the |
235 |
|
selection. |
236 |
|
|
237 |
|
* Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove |
238 |
|
these unused messages |
239 |
|
|
240 |
|
* Thuban/UI/application.py (ThubanApplication.OnInit) |
241 |
|
(ThubanApplication.OnExit, ThubanApplication.SetSession): The |
242 |
|
interactor is gone now. |
243 |
|
(ThubanApplication.CreateMainWindow): There is no interactor |
244 |
|
anymore so we pass None as the interactor argument for now for |
245 |
|
compatibility. |
246 |
|
|
247 |
|
* Thuban/UI/view.py (MapCanvas.delegated_messages) |
248 |
|
(MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and |
249 |
|
Unsubscribe, delegate messages according to the delegated_messages |
250 |
|
class variable. |
251 |
|
(MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some |
252 |
|
attributes from instance variables as described with the |
253 |
|
delegated_methods class variable. |
254 |
|
(MapCanvas.__init__): New instance variable selection holding the |
255 |
|
current selection |
256 |
|
(MapCanvas.do_redraw): Deal with multiple selected shapes. Simply |
257 |
|
pass them on to the renderer |
258 |
|
(MapCanvas.SetMap): Clear the selection when a different map is |
259 |
|
selected. |
260 |
|
(MapCanvas.shape_selected): Simple force a complete redraw. The |
261 |
|
selection class now takes care of only issueing SHAPES_SELECTED |
262 |
|
messages when the set of selected shapes actually does change. |
263 |
|
(MapCanvas.SelectShapeAt): The selection is now managed in |
264 |
|
self.selection |
265 |
|
|
266 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages) |
267 |
|
(MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and |
268 |
|
Unsubscribe, delegate messages according to the delegated_messages |
269 |
|
class variable. |
270 |
|
(MainWindow.delegated_methods, MainWindow.__getattr__): Get some |
271 |
|
attributes from instance variables as described with the |
272 |
|
delegated_methods class variable. |
273 |
|
(MainWindow.__init__): The interactor as ivar is gone. The |
274 |
|
parameter is still there for compatibility. The selection messages |
275 |
|
now come from the canvas. |
276 |
|
(MainWindow.current_layer, MainWindow.has_selected_layer): |
277 |
|
Delegate to the the canvas. |
278 |
|
(MainWindow.LayerShowTable, MainWindow.Classify) |
279 |
|
(MainWindow.identify_view_on_demand): The dialogs don't need the |
280 |
|
interactor parameter anymore. |
281 |
|
|
282 |
|
* Thuban/UI/tableview.py (TableFrame.__init__) |
283 |
|
(LayerTableFrame.__init__, LayerTableFrame.OnClose) |
284 |
|
(LayerTableFrame.row_selected): The interactor is gone. It's job |
285 |
|
from the dialog's point of view is now done by the mainwindow, |
286 |
|
i.e. the parent. Subscribe to SHAPES_SELECTED instead |
287 |
|
of SELECTED_SHAPE |
288 |
|
|
289 |
|
* Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor |
290 |
|
is gone. It's job from the dialog's point of view is now done by |
291 |
|
the mainwindow, i.e. the parent. |
292 |
|
|
293 |
|
* Thuban/UI/classifier.py (Classifier.__init__): The interactor is |
294 |
|
gone. It's job from the dialog's point of view is now done by the |
295 |
|
mainwindow, i.e. the parent. |
296 |
|
|
297 |
|
* Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is |
298 |
|
gone. It's job from the dialog's point of view is now done by the |
299 |
|
mainwindow, i.e. the parent. |
300 |
|
(SessionTreeCtrl.__init__): New parameter mainwindow which is |
301 |
|
stored as self.mainwindow. The mainwindow is need so that the tree |
302 |
|
can still subscribe to the selection messages. |
303 |
|
(SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all) |
304 |
|
(SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The |
305 |
|
selection is now accessible through the mainwindow. Subscribe to |
306 |
|
SHAPES_SELECTED instead of SELECTED_SHAPE |
307 |
|
|
308 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Use the |
309 |
|
SHAPES_SELECTED message now. |
310 |
|
(IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED, |
311 |
|
so deal with multiple shapes |
312 |
|
(IdentifyView.__init__, IdentifyView.OnClose): The interactor is |
313 |
|
gone. It's job from the dialog's point of view is now done by the |
314 |
|
mainwindow, i.e. the parent. |
315 |
|
|
316 |
|
* Thuban/UI/controls.py (RecordListCtrl.fill_list): The second |
317 |
|
parameter is now a list of shape ids. |
318 |
|
(RecordTable.SetTable): The second parameter is now a list of |
319 |
|
indices. |
320 |
|
|
321 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the |
322 |
|
selected_shape parameter and ivar to selected_shapes. It's now a |
323 |
|
list of shape ids. |
324 |
|
(MapRenderer.draw_label_layer): Deal with multiple selected |
325 |
|
shapes. Rearrange the code a bit so that the setup and shape type |
326 |
|
distinctions are only executed once. |
327 |
|
|
328 |
|
* test/test_selection.py: Test cases for the selection class |
329 |
|
|
330 |
|
2003-03-11 Jonathan Coles <[email protected]> |
331 |
|
|
332 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
333 |
|
doesn't cause Thuban to crash. |
334 |
|
|
335 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
336 |
|
a layer and its classification better, and be sure to disconnect |
337 |
|
the classification from the layer when the layer is destroyed |
338 |
|
so that we don't maintain a cyclic reference that may not be |
339 |
|
garbage collected. |
340 |
|
|
341 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
342 |
|
|
343 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
344 |
|
|
345 |
|
* HOWTO-Release: New. Information on the steps for releasing |
346 |
|
a new version of Thuban. |
347 |
|
|
348 |
|
2003-03-11 Jonathan Coles <[email protected]> |
349 |
|
|
350 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
351 |
|
Use True instead of true. |
352 |
|
(Classifier): Should have a single panel in which all the controls lie. |
353 |
|
|
354 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
355 |
|
|
356 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
357 |
|
|
358 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
359 |
|
|
360 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
361 |
|
|
362 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
363 |
|
field_type information is present. |
364 |
|
|
365 |
|
2003-03-10 Jonathan Coles <[email protected]> |
366 |
|
|
367 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
368 |
|
field type label grow so that when the text changes the |
369 |
|
size is updated correctly. This may be a wxWindows bug. |
370 |
|
|
371 |
|
2003-03-10 Jonathan Coles <[email protected]> |
372 |
|
|
373 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
374 |
|
SESSION_REPLACED. |
375 |
|
|
376 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
377 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
378 |
|
instead of in Reset, so we only set the size once. |
379 |
|
|
380 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
381 |
|
|
382 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
383 |
|
Call Close() instead of Shutdown(). |
384 |
|
|
385 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
386 |
|
|
387 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
388 |
|
Go back to using OnClose() instead of Shutdown(). |
389 |
|
|
390 |
|
2003-03-10 Jonathan Coles <[email protected]> |
391 |
|
|
392 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
393 |
|
to know the old field index as well as the new one. |
394 |
|
|
395 |
|
2003-03-10 Jonathan Coles <[email protected]> |
396 |
|
|
397 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
398 |
|
to correctly set the table information and call this from |
399 |
|
__init__ and from _OnFieldSelect so that all the information |
400 |
|
is up to date when the dialog opens and when a field is changed. |
401 |
|
|
402 |
|
2003-03-10 Jonathan Coles <[email protected]> |
403 |
|
|
404 |
|
* Thuban/Model/classification.py (Classification): Don't use |
405 |
|
layer's message function directly, use the ClassChanged() method |
406 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
407 |
|
must keep the information about field name and field type in |
408 |
|
sync when an owning layer is set or removed. |
409 |
|
|
410 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
411 |
|
classification can tell the layer when its data has changed. |
412 |
|
(Layer.SetClassification): Accepts None as an arguement to |
413 |
|
remove the current classification and correctly handles |
414 |
|
adding a new classification. |
415 |
|
|
416 |
|
* Thuban/Model/load.py: Comment out print statement |
417 |
|
|
418 |
|
* test/test_classification.py, test/test_save.py: New and |
419 |
|
improved tests. |
420 |
|
|
421 |
|
2003-03-07 Jonathan Coles <[email protected]> |
422 |
|
|
423 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
424 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
425 |
|
they can easily be copied by the classifier dialog. |
426 |
|
(ClassGroupProperites.__init__): The default line color should |
427 |
|
have been Color.Black. |
428 |
|
|
429 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
430 |
|
uses a consistent set of functions. |
431 |
|
(Classifier): Now non-modal. Has field type label which changes |
432 |
|
as the field changes. Keep track of buttons in a list so that |
433 |
|
we can enable/disable the buttons when the None field is selected. |
434 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
435 |
|
|
436 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
437 |
|
does what OnClose did, but can be called by the application to |
438 |
|
close a window. Needed when a session changes, and we have to |
439 |
|
close the classifier windows. |
440 |
|
|
441 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
442 |
|
Shuts down open dialogs. Used when a new session is created |
443 |
|
or a session is opened. |
444 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
445 |
|
if we don't call SaveSessionAs first. |
446 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
447 |
|
different layers. |
448 |
|
|
449 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
450 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
451 |
|
event notification and call the parent Shutdown(). This was |
452 |
|
necessary so the application can close the tree window. |
453 |
|
|
454 |
|
2003-03-06 Jonathan Coles <[email protected]> |
455 |
|
|
456 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
457 |
|
Addition of __eq__ and __ne__ methods. |
458 |
|
(Classification.SetLayer): prevent recursion between this method |
459 |
|
and Layer.SetClassification(). |
460 |
|
|
461 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
462 |
|
|
463 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
464 |
|
between this method and Classification.SetLayer(). |
465 |
|
|
466 |
|
* test/test_classification.py, test/test_load.py, |
467 |
|
test/test_session.py: Fixed and added tests for the classification |
468 |
|
classes. |
469 |
|
|
470 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
471 |
|
|
472 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
473 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
474 |
|
CreateTable because otherwise it triggers an assertion in |
475 |
|
wxPython/wxGTK 2.4. |
476 |
|
|
477 |
|
2003-03-05 Jonathan Coles <[email protected]> |
478 |
|
|
479 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
480 |
|
|
481 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
482 |
|
|
483 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
484 |
|
|
485 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
486 |
|
|
487 |
|
2003-03-05 Jonathan Coles <[email protected]> |
488 |
|
|
489 |
|
* Thuban/UI/classifier.py: Added class documentation. |
490 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
491 |
|
Store just the groups in the table and generate the other |
492 |
|
column information when it is requested. Add "None" field |
493 |
|
to pull-down to select no classification. |
494 |
|
|
495 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
496 |
|
(Str2Num): Only catch ValueError exceptions. |
497 |
|
|
498 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
499 |
|
of methods with Stroke to Line. Groups are stored in a single |
500 |
|
list with the default as the first element. Groups are searched |
501 |
|
in the order they appear in the list. |
502 |
|
|
503 |
|
* Thuban/Model/color.py: Documentation. |
504 |
|
|
505 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
506 |
|
the kind of data represented by a field. |
507 |
|
|
508 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
509 |
|
conversion function; fixes RTbug #1713. |
510 |
|
|
511 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
512 |
|
|
513 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
514 |
|
(Table): Add field_info_by_name() to retrieve field information |
515 |
|
by specifying the field name, not the number. |
516 |
|
|
517 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
518 |
|
|
519 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
520 |
|
get the layer classification once. Don't try to classify |
521 |
|
values when the field is None: just use the default properties. |
522 |
|
|
523 |
|
* Thuban/UI/view.py: Function name changes. |
524 |
|
|
525 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
526 |
|
|
527 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
528 |
|
|
529 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
530 |
|
the fill and stroke layer attributes optional with suitable |
531 |
|
default values. Add the stroke_width layer attribute. Use correct |
532 |
|
syntax for empty elements. Make the attribute list for labels |
533 |
|
refer to the label element. |
534 |
|
|
535 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
536 |
|
|
537 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
538 |
|
Python 2.3 containing some of the functionality we implement in |
539 |
|
setup.py ourselves. |
540 |
|
|
541 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
542 |
|
before the selection mode. Doing it the other way round triggers |
543 |
|
an assertion in wxWindows. |
544 |
|
|
545 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
546 |
|
|
547 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
548 |
|
import |
549 |
|
|
550 |
|
2003-03-04 Jonathan Coles <[email protected]> |
551 |
|
|
552 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
553 |
|
Parameter 'value' should default to None. |
554 |
|
|
555 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
556 |
|
the class attribute __classification is now private. |
557 |
|
|
558 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
559 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
560 |
|
which including code for keeping track of when cells are selected, |
561 |
|
and deselected. |
562 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
563 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
564 |
|
to be entered. |
565 |
|
(Classifier): Added button and supporting code for removing |
566 |
|
selected rows. |
567 |
|
|
568 |
2003-02-27 Jonathan Coles <[email protected]> |
2003-02-27 Jonathan Coles <[email protected]> |
569 |
|
|
570 |
* Thuban/common.py: Moved color conversion functions into |
* Thuban/common.py: Moved color conversion functions into |
595 |
Use common.py functions. |
Use common.py functions. |
596 |
|
|
597 |
* Thuban/UI/tree.py: Use common.py functions. |
* Thuban/UI/tree.py: Use common.py functions. |
598 |
|
|
599 |
|
* test/test_classification.py: Use new Classification and Group |
600 |
|
classes. |
601 |
|
|
602 |
2003-02-24 Jonathan Coles <[email protected]> |
2003-02-24 Jonathan Coles <[email protected]> |
603 |
|
|