1 |
|
2003-03-10 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
4 |
|
field type label grow so that when the text changes the |
5 |
|
size is updated correctly. This may be a wxWindows bug. |
6 |
|
|
7 |
|
2003-03-10 Jonathan Coles <[email protected]> |
8 |
|
|
9 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
10 |
|
SESSION_REPLACED. |
11 |
|
|
12 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
13 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
14 |
|
instead of in Reset, so we only set the size once. |
15 |
|
|
16 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
17 |
|
|
18 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
19 |
|
Call Close() instead of Shutdown(). |
20 |
|
|
21 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
22 |
|
|
23 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
24 |
|
Go back to using OnClose() instead of Shutdown(). |
25 |
|
|
26 |
|
2003-03-10 Jonathan Coles <[email protected]> |
27 |
|
|
28 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
29 |
|
to know the old field index as well as the new one. |
30 |
|
|
31 |
|
2003-03-10 Jonathan Coles <[email protected]> |
32 |
|
|
33 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
34 |
|
to correctly set the table information and call this from |
35 |
|
__init__ and from _OnFieldSelect so that all the information |
36 |
|
is up to date when the dialog opens and when a field is changed. |
37 |
|
|
38 |
|
2003-03-10 Jonathan Coles <[email protected]> |
39 |
|
|
40 |
|
* Thuban/Model/classification.py (Classification): Don't use |
41 |
|
layer's message function directly, use the ClassChanged() method |
42 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
43 |
|
must keep the information about field name and field type in |
44 |
|
sync when an owning layer is set or removed. |
45 |
|
|
46 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
47 |
|
classification can tell the layer when its data has changed. |
48 |
|
(Layer.SetClassification): Accepts None as an arguement to |
49 |
|
remove the current classification and correctly handles |
50 |
|
adding a new classification. |
51 |
|
|
52 |
|
* Thuban/Model/load.py: Comment out print statement |
53 |
|
|
54 |
|
* test/test_classification.py, test/test_save.py: New and |
55 |
|
improved tests. |
56 |
|
|
57 |
|
2003-03-07 Jonathan Coles <[email protected]> |
58 |
|
|
59 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
60 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
61 |
|
they can easily be copied by the classifier dialog. |
62 |
|
(ClassGroupProperites.__init__): The default line color should |
63 |
|
have been Color.Black. |
64 |
|
|
65 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
66 |
|
uses a consistent set of functions. |
67 |
|
(Classifier): Now non-modal. Has field type label which changes |
68 |
|
as the field changes. Keep track of buttons in a list so that |
69 |
|
we can enable/disable the buttons when the None field is selected. |
70 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
71 |
|
|
72 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
73 |
|
does what OnClose did, but can be called by the application to |
74 |
|
close a window. Needed when a session changes, and we have to |
75 |
|
close the classifier windows. |
76 |
|
|
77 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
78 |
|
Shuts down open dialogs. Used when a new session is created |
79 |
|
or a session is opened. |
80 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
81 |
|
if we don't call SaveSessionAs first. |
82 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
83 |
|
different layers. |
84 |
|
|
85 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
86 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
87 |
|
event notification and call the parent Shutdown(). This was |
88 |
|
necessary so the application can close the tree window. |
89 |
|
|
90 |
|
2003-03-06 Jonathan Coles <[email protected]> |
91 |
|
|
92 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
93 |
|
Addition of __eq__ and __ne__ methods. |
94 |
|
(Classification.SetLayer): prevent recursion between this method |
95 |
|
and Layer.SetClassification(). |
96 |
|
|
97 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
98 |
|
|
99 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
100 |
|
between this method and Classification.SetLayer(). |
101 |
|
|
102 |
|
* test/test_classification.py, test/test_load.py, |
103 |
|
test/test_session.py: Fixed and added tests for the classification |
104 |
|
classes. |
105 |
|
|
106 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
107 |
|
|
108 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
109 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
110 |
|
CreateTable because otherwise it triggers an assertion in |
111 |
|
wxPython/wxGTK 2.4. |
112 |
|
|
113 |
|
2003-03-05 Jonathan Coles <[email protected]> |
114 |
|
|
115 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
116 |
|
|
117 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
118 |
|
|
119 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
120 |
|
|
121 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
122 |
|
|
123 |
|
2003-03-05 Jonathan Coles <[email protected]> |
124 |
|
|
125 |
|
* Thuban/UI/classifier.py: Added class documentation. |
126 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
127 |
|
Store just the groups in the table and generate the other |
128 |
|
column information when it is requested. Add "None" field |
129 |
|
to pull-down to select no classification. |
130 |
|
|
131 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
132 |
|
(Str2Num): Only catch ValueError exceptions. |
133 |
|
|
134 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
135 |
|
of methods with Stroke to Line. Groups are stored in a single |
136 |
|
list with the default as the first element. Groups are searched |
137 |
|
in the order they appear in the list. |
138 |
|
|
139 |
|
* Thuban/Model/color.py: Documentation. |
140 |
|
|
141 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
142 |
|
the kind of data represented by a field. |
143 |
|
|
144 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
145 |
|
conversion function; fixes RTbug #1713. |
146 |
|
|
147 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
148 |
|
|
149 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
150 |
|
(Table): Add field_info_by_name() to retrieve field information |
151 |
|
by specifying the field name, not the number. |
152 |
|
|
153 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
154 |
|
|
155 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
156 |
|
get the layer classification once. Don't try to classify |
157 |
|
values when the field is None: just use the default properties. |
158 |
|
|
159 |
|
* Thuban/UI/view.py: Function name changes. |
160 |
|
|
161 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
162 |
|
|
163 |
2003-03-04 Bernhard Herzog <[email protected]> |
2003-03-04 Bernhard Herzog <[email protected]> |
164 |
|
|
165 |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |