1 |
|
2003-03-06 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
4 |
|
Addition of __eq__ and __ne__ methods. |
5 |
|
(Classification.SetLayer): prevent recursion between this method |
6 |
|
and Layer.SetClassification(). |
7 |
|
|
8 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
9 |
|
|
10 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
11 |
|
between this method and Classification.SetLayer(). |
12 |
|
|
13 |
|
* test/test_classification.py, test/test_load.py, |
14 |
|
test/test_session.py: Fixed and added tests for the classification |
15 |
|
classes. |
16 |
|
|
17 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
18 |
|
|
19 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
20 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
21 |
|
CreateTable because otherwise it triggers an assertion in |
22 |
|
wxPython/wxGTK 2.4. |
23 |
|
|
24 |
|
2003-03-05 Jonathan Coles <[email protected]> |
25 |
|
|
26 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
27 |
|
|
28 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
29 |
|
|
30 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
31 |
|
|
32 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
33 |
|
|
34 |
|
2003-03-05 Jonathan Coles <[email protected]> |
35 |
|
|
36 |
|
* Thuban/UI/classifier.py: Added class documentation. |
37 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
38 |
|
Store just the groups in the table and generate the other |
39 |
|
column information when it is requested. Add "None" field |
40 |
|
to pull-down to select no classification. |
41 |
|
|
42 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
43 |
|
(Str2Num): Only catch ValueError exceptions. |
44 |
|
|
45 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
46 |
|
of methods with Stroke to Line. Groups are stored in a single |
47 |
|
list with the default as the first element. Groups are searched |
48 |
|
in the order they appear in the list. |
49 |
|
|
50 |
|
* Thuban/Model/color.py: Documentation. |
51 |
|
|
52 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
53 |
|
the kind of data represented by a field. |
54 |
|
|
55 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
56 |
|
conversion function; fixes RTbug #1713. |
57 |
|
|
58 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
59 |
|
|
60 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
61 |
|
(Table): Add field_info_by_name() to retrieve field information |
62 |
|
by specifying the field name, not the number. |
63 |
|
|
64 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
65 |
|
|
66 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
67 |
|
get the layer classification once. Don't try to classify |
68 |
|
values when the field is None: just use the default properties. |
69 |
|
|
70 |
|
* Thuban/UI/view.py: Function name changes. |
71 |
|
|
72 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
73 |
|
|
74 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
75 |
|
|
76 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
77 |
|
the fill and stroke layer attributes optional with suitable |
78 |
|
default values. Add the stroke_width layer attribute. Use correct |
79 |
|
syntax for empty elements. Make the attribute list for labels |
80 |
|
refer to the label element. |
81 |
|
|
82 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
83 |
|
|
84 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
85 |
|
Python 2.3 containing some of the functionality we implement in |
86 |
|
setup.py ourselves. |
87 |
|
|
88 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
89 |
|
before the selection mode. Doing it the other way round triggers |
90 |
|
an assertion in wxWindows. |
91 |
|
|
92 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
93 |
|
|
94 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
95 |
|
import |
96 |
|
|
97 |
|
2003-03-04 Jonathan Coles <[email protected]> |
98 |
|
|
99 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
100 |
|
Parameter 'value' should default to None. |
101 |
|
|
102 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
103 |
|
the class attribute __classification is now private. |
104 |
|
|
105 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
106 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
107 |
|
which including code for keeping track of when cells are selected, |
108 |
|
and deselected. |
109 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
110 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
111 |
|
to be entered. |
112 |
|
(Classifier): Added button and supporting code for removing |
113 |
|
selected rows. |
114 |
|
|
115 |
|
2003-02-27 Jonathan Coles <[email protected]> |
116 |
|
|
117 |
|
* Thuban/common.py: Moved color conversion functions into |
118 |
|
Thuban/UI/common.py. |
119 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
120 |
|
so that an exception isn't thrown. |
121 |
|
|
122 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
123 |
|
|
124 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
125 |
|
so that a Classification consists of Groups which return |
126 |
|
Properties when a value matches a Group. |
127 |
|
|
128 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
129 |
|
|
130 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
131 |
|
|
132 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
133 |
|
failure. |
134 |
|
(Saver.write_classification): Use new Classification and Group |
135 |
|
functions. |
136 |
|
|
137 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
138 |
|
functions. Fix to create a tuple with a single value instead of |
139 |
|
simply returning the value. |
140 |
|
|
141 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
142 |
|
Use common.py functions. |
143 |
|
|
144 |
|
* Thuban/UI/tree.py: Use common.py functions. |
145 |
|
|
146 |
|
* test/test_classification.py: Use new Classification and Group |
147 |
|
classes. |
148 |
|
|
149 |
|
2003-02-24 Jonathan Coles <[email protected]> |
150 |
|
|
151 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
152 |
|
functions from Thuban color objects to wxWindow colour objects. |
153 |
|
|
154 |
|
* Thuban/Model/classification.py (Classification): Renamed |
155 |
|
GetProperties() to GetClassData(). Used the new iterator |
156 |
|
in TreeInfo(). |
157 |
|
(ClassIterator): Iterator implementation to iterate over the |
158 |
|
ClassData objects in a classification object. |
159 |
|
|
160 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
161 |
|
the new iterator to save the classification information. |
162 |
|
|
163 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
164 |
|
for changing the stroke and fill colors and previewing the |
165 |
|
changes. |
166 |
|
|
167 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
168 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
169 |
|
have more meaningful titles. |
170 |
|
|
171 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
172 |
|
Classification method name from GetProperties to GetClassData. |
173 |
|
|
174 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
175 |
|
instead of accessing now non-existent class variables. |
176 |
|
|
177 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
180 |
|
unneeded Shape() call. Rendering is substantially faster without |
181 |
|
it and it avoids some problems with broken shape files. |
182 |
|
|
183 |
|
2003-02-20 Frank Koormann <[email protected]> |
184 |
|
|
185 |
|
Force minimal size of identify and label dialogs. The autosizing |
186 |
|
looked too ugly. |
187 |
|
|
188 |
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
189 |
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
190 |
|
Set size of listctrl. |
191 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
192 |
|
Set size of dialog. |
193 |
|
|
194 |
2003-02-19 Jonathan Coles <[email protected]> |
2003-02-19 Jonathan Coles <[email protected]> |
195 |
|
|
196 |
* test/test_classification.py, test/test_layer.py, |
* test/test_classification.py, test/test_layer.py, |