1 |
|
2003-03-10 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classification.py (Classification): Don't use |
4 |
|
layer's message function directly, use the ClassChanged() method |
5 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
6 |
|
must keep the information about field name and field type in |
7 |
|
sync when an owning layer is set or removed. |
8 |
|
|
9 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
10 |
|
classification can tell the layer when its data has changed. |
11 |
|
(Layer.SetClassification): Accepts None as an arguement to |
12 |
|
remove the current classification and correctly handles |
13 |
|
adding a new classification. |
14 |
|
|
15 |
|
* Thuban/Model/load.py: Comment out print statement |
16 |
|
|
17 |
|
* test/test_classification.py, test/test_save.py: New and |
18 |
|
improved tests. |
19 |
|
|
20 |
|
2003-03-07 Jonathan Coles <[email protected]> |
21 |
|
|
22 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
23 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
24 |
|
they can easily be copied by the classifier dialog. |
25 |
|
(ClassGroupProperites.__init__): The default line color should |
26 |
|
have been Color.Black. |
27 |
|
|
28 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
29 |
|
uses a consistent set of functions. |
30 |
|
(Classifier): Now non-modal. Has field type label which changes |
31 |
|
as the field changes. Keep track of buttons in a list so that |
32 |
|
we can enable/disable the buttons when the None field is selected. |
33 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
34 |
|
|
35 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
36 |
|
does what OnClose did, but can be called by the application to |
37 |
|
close a window. Needed when a session changes, and we have to |
38 |
|
close the classifier windows. |
39 |
|
|
40 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
41 |
|
Shuts down open dialogs. Used when a new session is created |
42 |
|
or a session is opened. |
43 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
44 |
|
if we don't call SaveSessionAs first. |
45 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
46 |
|
different layers. |
47 |
|
|
48 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
49 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
50 |
|
event notification and call the parent Shutdown(). This was |
51 |
|
necessary so the application can close the tree window. |
52 |
|
|
53 |
|
2003-03-06 Jonathan Coles <[email protected]> |
54 |
|
|
55 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
56 |
|
Addition of __eq__ and __ne__ methods. |
57 |
|
(Classification.SetLayer): prevent recursion between this method |
58 |
|
and Layer.SetClassification(). |
59 |
|
|
60 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
61 |
|
|
62 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
63 |
|
between this method and Classification.SetLayer(). |
64 |
|
|
65 |
|
* test/test_classification.py, test/test_load.py, |
66 |
|
test/test_session.py: Fixed and added tests for the classification |
67 |
|
classes. |
68 |
|
|
69 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
72 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
73 |
|
CreateTable because otherwise it triggers an assertion in |
74 |
|
wxPython/wxGTK 2.4. |
75 |
|
|
76 |
2003-03-05 Jonathan Coles <[email protected]> |
2003-03-05 Jonathan Coles <[email protected]> |
77 |
|
|
78 |
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |