1 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* HOWTO-Release: New. Information on the steps for releasing |
4 |
|
a new version of Thuban. |
5 |
|
|
6 |
|
2003-03-11 Jonathan Coles <[email protected]> |
7 |
|
|
8 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
9 |
|
Use True instead of true. |
10 |
|
(Classifier): Should have a single panel in which all the controls lie. |
11 |
|
|
12 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
13 |
|
|
14 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
15 |
|
|
16 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
17 |
|
|
18 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
19 |
|
|
20 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
21 |
|
field_type information is present. |
22 |
|
|
23 |
|
2003-03-10 Jonathan Coles <[email protected]> |
24 |
|
|
25 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
26 |
|
field type label grow so that when the text changes the |
27 |
|
size is updated correctly. This may be a wxWindows bug. |
28 |
|
|
29 |
|
2003-03-10 Jonathan Coles <[email protected]> |
30 |
|
|
31 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
32 |
|
SESSION_REPLACED. |
33 |
|
|
34 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
35 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
36 |
|
instead of in Reset, so we only set the size once. |
37 |
|
|
38 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
39 |
|
|
40 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
41 |
|
Call Close() instead of Shutdown(). |
42 |
|
|
43 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
44 |
|
|
45 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
46 |
|
Go back to using OnClose() instead of Shutdown(). |
47 |
|
|
48 |
|
2003-03-10 Jonathan Coles <[email protected]> |
49 |
|
|
50 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
51 |
|
to know the old field index as well as the new one. |
52 |
|
|
53 |
|
2003-03-10 Jonathan Coles <[email protected]> |
54 |
|
|
55 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
56 |
|
to correctly set the table information and call this from |
57 |
|
__init__ and from _OnFieldSelect so that all the information |
58 |
|
is up to date when the dialog opens and when a field is changed. |
59 |
|
|
60 |
|
2003-03-10 Jonathan Coles <[email protected]> |
61 |
|
|
62 |
|
* Thuban/Model/classification.py (Classification): Don't use |
63 |
|
layer's message function directly, use the ClassChanged() method |
64 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
65 |
|
must keep the information about field name and field type in |
66 |
|
sync when an owning layer is set or removed. |
67 |
|
|
68 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
69 |
|
classification can tell the layer when its data has changed. |
70 |
|
(Layer.SetClassification): Accepts None as an arguement to |
71 |
|
remove the current classification and correctly handles |
72 |
|
adding a new classification. |
73 |
|
|
74 |
|
* Thuban/Model/load.py: Comment out print statement |
75 |
|
|
76 |
|
* test/test_classification.py, test/test_save.py: New and |
77 |
|
improved tests. |
78 |
|
|
79 |
|
2003-03-07 Jonathan Coles <[email protected]> |
80 |
|
|
81 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
82 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
83 |
|
they can easily be copied by the classifier dialog. |
84 |
|
(ClassGroupProperites.__init__): The default line color should |
85 |
|
have been Color.Black. |
86 |
|
|
87 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
88 |
|
uses a consistent set of functions. |
89 |
|
(Classifier): Now non-modal. Has field type label which changes |
90 |
|
as the field changes. Keep track of buttons in a list so that |
91 |
|
we can enable/disable the buttons when the None field is selected. |
92 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
93 |
|
|
94 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
95 |
|
does what OnClose did, but can be called by the application to |
96 |
|
close a window. Needed when a session changes, and we have to |
97 |
|
close the classifier windows. |
98 |
|
|
99 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
100 |
|
Shuts down open dialogs. Used when a new session is created |
101 |
|
or a session is opened. |
102 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
103 |
|
if we don't call SaveSessionAs first. |
104 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
105 |
|
different layers. |
106 |
|
|
107 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
108 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
109 |
|
event notification and call the parent Shutdown(). This was |
110 |
|
necessary so the application can close the tree window. |
111 |
|
|
112 |
|
2003-03-06 Jonathan Coles <[email protected]> |
113 |
|
|
114 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
115 |
|
Addition of __eq__ and __ne__ methods. |
116 |
|
(Classification.SetLayer): prevent recursion between this method |
117 |
|
and Layer.SetClassification(). |
118 |
|
|
119 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
120 |
|
|
121 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
122 |
|
between this method and Classification.SetLayer(). |
123 |
|
|
124 |
|
* test/test_classification.py, test/test_load.py, |
125 |
|
test/test_session.py: Fixed and added tests for the classification |
126 |
|
classes. |
127 |
|
|
128 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
129 |
|
|
130 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
131 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
132 |
|
CreateTable because otherwise it triggers an assertion in |
133 |
|
wxPython/wxGTK 2.4. |
134 |
|
|
135 |
|
2003-03-05 Jonathan Coles <[email protected]> |
136 |
|
|
137 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
138 |
|
|
139 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
140 |
|
|
141 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
142 |
|
|
143 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
144 |
|
|
145 |
|
2003-03-05 Jonathan Coles <[email protected]> |
146 |
|
|
147 |
|
* Thuban/UI/classifier.py: Added class documentation. |
148 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
149 |
|
Store just the groups in the table and generate the other |
150 |
|
column information when it is requested. Add "None" field |
151 |
|
to pull-down to select no classification. |
152 |
|
|
153 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
154 |
|
(Str2Num): Only catch ValueError exceptions. |
155 |
|
|
156 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
157 |
|
of methods with Stroke to Line. Groups are stored in a single |
158 |
|
list with the default as the first element. Groups are searched |
159 |
|
in the order they appear in the list. |
160 |
|
|
161 |
|
* Thuban/Model/color.py: Documentation. |
162 |
|
|
163 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
164 |
|
the kind of data represented by a field. |
165 |
|
|
166 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
167 |
|
conversion function; fixes RTbug #1713. |
168 |
|
|
169 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
170 |
|
|
171 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
172 |
|
(Table): Add field_info_by_name() to retrieve field information |
173 |
|
by specifying the field name, not the number. |
174 |
|
|
175 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
176 |
|
|
177 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
178 |
|
get the layer classification once. Don't try to classify |
179 |
|
values when the field is None: just use the default properties. |
180 |
|
|
181 |
|
* Thuban/UI/view.py: Function name changes. |
182 |
|
|
183 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
184 |
|
|
185 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
186 |
|
|
187 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
188 |
|
the fill and stroke layer attributes optional with suitable |
189 |
|
default values. Add the stroke_width layer attribute. Use correct |
190 |
|
syntax for empty elements. Make the attribute list for labels |
191 |
|
refer to the label element. |
192 |
|
|
193 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
194 |
|
|
195 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
196 |
|
Python 2.3 containing some of the functionality we implement in |
197 |
|
setup.py ourselves. |
198 |
|
|
199 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
200 |
|
before the selection mode. Doing it the other way round triggers |
201 |
|
an assertion in wxWindows. |
202 |
|
|
203 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
204 |
|
|
205 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
206 |
|
import |
207 |
|
|
208 |
|
2003-03-04 Jonathan Coles <[email protected]> |
209 |
|
|
210 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
211 |
|
Parameter 'value' should default to None. |
212 |
|
|
213 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
214 |
|
the class attribute __classification is now private. |
215 |
|
|
216 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
217 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
218 |
|
which including code for keeping track of when cells are selected, |
219 |
|
and deselected. |
220 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
221 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
222 |
|
to be entered. |
223 |
|
(Classifier): Added button and supporting code for removing |
224 |
|
selected rows. |
225 |
|
|
226 |
|
2003-02-27 Jonathan Coles <[email protected]> |
227 |
|
|
228 |
|
* Thuban/common.py: Moved color conversion functions into |
229 |
|
Thuban/UI/common.py. |
230 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
231 |
|
so that an exception isn't thrown. |
232 |
|
|
233 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
234 |
|
|
235 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
236 |
|
so that a Classification consists of Groups which return |
237 |
|
Properties when a value matches a Group. |
238 |
|
|
239 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
240 |
|
|
241 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
242 |
|
|
243 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
244 |
|
failure. |
245 |
|
(Saver.write_classification): Use new Classification and Group |
246 |
|
functions. |
247 |
|
|
248 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
249 |
|
functions. Fix to create a tuple with a single value instead of |
250 |
|
simply returning the value. |
251 |
|
|
252 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
253 |
|
Use common.py functions. |
254 |
|
|
255 |
|
* Thuban/UI/tree.py: Use common.py functions. |
256 |
|
|
257 |
|
* test/test_classification.py: Use new Classification and Group |
258 |
|
classes. |
259 |
|
|
260 |
|
2003-02-24 Jonathan Coles <[email protected]> |
261 |
|
|
262 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
263 |
|
functions from Thuban color objects to wxWindow colour objects. |
264 |
|
|
265 |
|
* Thuban/Model/classification.py (Classification): Renamed |
266 |
|
GetProperties() to GetClassData(). Used the new iterator |
267 |
|
in TreeInfo(). |
268 |
|
(ClassIterator): Iterator implementation to iterate over the |
269 |
|
ClassData objects in a classification object. |
270 |
|
|
271 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
272 |
|
the new iterator to save the classification information. |
273 |
|
|
274 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
275 |
|
for changing the stroke and fill colors and previewing the |
276 |
|
changes. |
277 |
|
|
278 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
279 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
280 |
|
have more meaningful titles. |
281 |
|
|
282 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
283 |
|
Classification method name from GetProperties to GetClassData. |
284 |
|
|
285 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
286 |
|
instead of accessing now non-existent class variables. |
287 |
|
|
288 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
289 |
|
|
290 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
291 |
|
unneeded Shape() call. Rendering is substantially faster without |
292 |
|
it and it avoids some problems with broken shape files. |
293 |
|
|
294 |
|
2003-02-20 Frank Koormann <[email protected]> |
295 |
|
|
296 |
|
Force minimal size of identify and label dialogs. The autosizing |
297 |
|
looked too ugly. |
298 |
|
|
299 |
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
300 |
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
301 |
|
Set size of listctrl. |
302 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
303 |
|
Set size of dialog. |
304 |
|
|
305 |
|
2003-02-19 Jonathan Coles <[email protected]> |
306 |
|
|
307 |
|
* test/test_classification.py, test/test_layer.py, |
308 |
|
test/test_load.py, test/test_map.py, test/test_session.py: |
309 |
|
Updated the tests to use the new functions that are in the |
310 |
|
respective classes. |
311 |
|
|
312 |
|
* Thuban/Model/classification.py (Classification): |
313 |
|
Uses the new ClassData* classes. Modification messages are |
314 |
|
passed up to the parent layer (if it exists). |
315 |
|
(ClassData): New class to encapsulate the common data in each |
316 |
|
classification property. |
317 |
|
(ClassDataDefault): Represents the Default class. data. |
318 |
|
(ClassDataPoint): Represents a single class. data point |
319 |
|
(ClassDataRange): Represents a class. range |
320 |
|
(ClassDataMap): Represents a class. map (unused). |
321 |
|
|
322 |
|
* Thuban/Model/color.py: Added Color.None to represent something |
323 |
|
with no color. Color.Black represents the color black. |
324 |
|
(NoColor): Helper class derived from Color to represent something |
325 |
|
with no color. |
326 |
|
|
327 |
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
328 |
|
stroke_width attributes. Made the 'classification' attribute private. |
329 |
|
New methods for setting/getting the classification. |
330 |
|
|
331 |
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
332 |
|
to get the classifcation and use the new ClassData* classes to |
333 |
|
hold the classification data. Use Str2Num to convert numbers |
334 |
|
properly. |
335 |
|
|
336 |
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
337 |
|
methods |
338 |
|
|
339 |
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
340 |
|
custom grid. |
341 |
|
(ClassTable): Support for editing Values and Labels and for |
342 |
|
changing what type (point or range) of data is stored in each |
343 |
|
property based on how the user enters the data. |
344 |
|
(Classifier): Support for saving the new classifications and |
345 |
|
launching the dialog to edit a property. |
346 |
|
(SelectPropertiesDialog): New class for editing the visual |
347 |
|
properties of a classification (stroke color, width, and fill color) |
348 |
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
349 |
|
made most of it into this new class. Intend to use this class in |
350 |
|
the SelectPropertiesDialog for previewing changes. |
351 |
|
|
352 |
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
353 |
|
|
354 |
|
* Thuban/UI/tree.py: Formatting changes. |
355 |
|
|
356 |
|
* Doc/thuban.dtd: Add 'label' element |
357 |
|
|
358 |
|
* Thuban/common.py: New. Contains common routines used throughout |
359 |
|
the code. |
360 |
|
(Str2Num): Takes a string and converts it to the "best" type of |
361 |
|
number. |
362 |
|
|
363 |
|
2003-02-14 Bernhard Herzog <[email protected]> |
364 |
|
|
365 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
366 |
|
dragging flag is always set to 0 even when the tool implementation |
367 |
|
raises an exception |
368 |
|
|
369 |
2003-02-11 Bernhard Herzog <[email protected]> |
2003-02-11 Bernhard Herzog <[email protected]> |
370 |
|
|
371 |
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |