1 |
|
2003-03-11 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/load.py: Temporary fix so that the xml reader |
4 |
|
doesn't cause Thuban to crash. |
5 |
|
|
6 |
|
* Thuban/Model/layer.py: Handle the cyclic references between |
7 |
|
a layer and its classification better, and be sure to disconnect |
8 |
|
the classification from the layer when the layer is destroyed |
9 |
|
so that we don't maintain a cyclic reference that may not be |
10 |
|
garbage collected. |
11 |
|
|
12 |
|
* Thuban/Model/classification.py: See comment for layer.py. |
13 |
|
|
14 |
|
2003-03-12 Jan-Oliver Wagner <[email protected]> |
15 |
|
|
16 |
|
* HOWTO-Release: New. Information on the steps for releasing |
17 |
|
a new version of Thuban. |
18 |
|
|
19 |
|
2003-03-11 Jonathan Coles <[email protected]> |
20 |
|
|
21 |
|
* Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog. |
22 |
|
Use True instead of true. |
23 |
|
(Classifier): Should have a single panel in which all the controls lie. |
24 |
|
|
25 |
|
* Thuban/UI/proj4dialog.py: Add normal border. |
26 |
|
|
27 |
|
* Thuban/UI/tree.py: Fixed problem with bad item images under Windows. |
28 |
|
|
29 |
|
* Thuban/UI/mainwindow.py: Use True instead of true. |
30 |
|
|
31 |
|
* setup.py: Update some definitions to use wxWindows2.4 files |
32 |
|
|
33 |
|
* Data/iceland_sample_class.thuban: Fixed file so that the |
34 |
|
field_type information is present. |
35 |
|
|
36 |
|
2003-03-10 Jonathan Coles <[email protected]> |
37 |
|
|
38 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Make the |
39 |
|
field type label grow so that when the text changes the |
40 |
|
size is updated correctly. This may be a wxWindows bug. |
41 |
|
|
42 |
|
2003-03-10 Jonathan Coles <[email protected]> |
43 |
|
|
44 |
|
* Thuban/UI/application.py: Changed SESSION_CHANGED to |
45 |
|
SESSION_REPLACED. |
46 |
|
|
47 |
|
* Thuban/UI/classifier.py: Wrap text with _(). |
48 |
|
(ClassGrid.CreateTable): Set dimensions and size hints here, |
49 |
|
instead of in Reset, so we only set the size once. |
50 |
|
|
51 |
|
* Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()! |
52 |
|
|
53 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
54 |
|
Call Close() instead of Shutdown(). |
55 |
|
|
56 |
|
* Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
57 |
|
|
58 |
|
* Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED. |
59 |
|
Go back to using OnClose() instead of Shutdown(). |
60 |
|
|
61 |
|
2003-03-10 Jonathan Coles <[email protected]> |
62 |
|
|
63 |
|
* Thuban/UI/classifier.py (Classifier): SelectField() needed |
64 |
|
to know the old field index as well as the new one. |
65 |
|
|
66 |
|
2003-03-10 Jonathan Coles <[email protected]> |
67 |
|
|
68 |
|
* Thuban/UI/classifier.py (Classifier): Use __SelectField() |
69 |
|
to correctly set the table information and call this from |
70 |
|
__init__ and from _OnFieldSelect so that all the information |
71 |
|
is up to date when the dialog opens and when a field is changed. |
72 |
|
|
73 |
|
2003-03-10 Jonathan Coles <[email protected]> |
74 |
|
|
75 |
|
* Thuban/Model/classification.py (Classification): Don't use |
76 |
|
layer's message function directly, use the ClassChanged() method |
77 |
|
when then classification changes. SetField/SetFieldType/SetLayer |
78 |
|
must keep the information about field name and field type in |
79 |
|
sync when an owning layer is set or removed. |
80 |
|
|
81 |
|
* Thuban/Model/layer.py: Added ClassChanged() so that the |
82 |
|
classification can tell the layer when its data has changed. |
83 |
|
(Layer.SetClassification): Accepts None as an arguement to |
84 |
|
remove the current classification and correctly handles |
85 |
|
adding a new classification. |
86 |
|
|
87 |
|
* Thuban/Model/load.py: Comment out print statement |
88 |
|
|
89 |
|
* test/test_classification.py, test/test_save.py: New and |
90 |
|
improved tests. |
91 |
|
|
92 |
|
2003-03-07 Jonathan Coles <[email protected]> |
93 |
|
|
94 |
|
* Thuban/Model/classification.py: Implemented __copy__ and |
95 |
|
__deepcopy__ for ClassGroup* and ClassGroupProperites so |
96 |
|
they can easily be copied by the classifier dialog. |
97 |
|
(ClassGroupProperites.__init__): The default line color should |
98 |
|
have been Color.Black. |
99 |
|
|
100 |
|
* Thuban/UI/classifier.py: Setting and Getting table values now |
101 |
|
uses a consistent set of functions. |
102 |
|
(Classifier): Now non-modal. Has field type label which changes |
103 |
|
as the field changes. Keep track of buttons in a list so that |
104 |
|
we can enable/disable the buttons when the None field is selected. |
105 |
|
(SelectPropertiesDialog): Add buttons to make the colors transparent. |
106 |
|
|
107 |
|
* Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which |
108 |
|
does what OnClose did, but can be called by the application to |
109 |
|
close a window. Needed when a session changes, and we have to |
110 |
|
close the classifier windows. |
111 |
|
|
112 |
|
* Thuban/UI/mainwindow.py (MainWindow.prepare_new_session): |
113 |
|
Shuts down open dialogs. Used when a new session is created |
114 |
|
or a session is opened. |
115 |
|
(MainWindow.SaveSession): Should only call application.SaveSession() |
116 |
|
if we don't call SaveSessionAs first. |
117 |
|
(MainWindow.Classify): Allow different classifier dialogs for |
118 |
|
different layers. |
119 |
|
|
120 |
|
* Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let |
121 |
|
the parent class handle it. Add Shutdown() to unsubscibe from |
122 |
|
event notification and call the parent Shutdown(). This was |
123 |
|
necessary so the application can close the tree window. |
124 |
|
|
125 |
|
2003-03-06 Jonathan Coles <[email protected]> |
126 |
|
|
127 |
|
* Thuban/Model/classification.py: Minor documentation changes, |
128 |
|
Addition of __eq__ and __ne__ methods. |
129 |
|
(Classification.SetLayer): prevent recursion between this method |
130 |
|
and Layer.SetClassification(). |
131 |
|
|
132 |
|
* Thuban/Model/color.py: Addition of __eq__ and __ne__ methods. |
133 |
|
|
134 |
|
* Thuban/Model/layer.py (SetClassification): prevent recursion |
135 |
|
between this method and Classification.SetLayer(). |
136 |
|
|
137 |
|
* test/test_classification.py, test/test_load.py, |
138 |
|
test/test_session.py: Fixed and added tests for the classification |
139 |
|
classes. |
140 |
|
|
141 |
|
2003-03-06 Bernhard Herzog <[email protected]> |
142 |
|
|
143 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__) |
144 |
|
(ClassGrid.CreateTable): Move the SetSelectionMode call to |
145 |
|
CreateTable because otherwise it triggers an assertion in |
146 |
|
wxPython/wxGTK 2.4. |
147 |
|
|
148 |
|
2003-03-05 Jonathan Coles <[email protected]> |
149 |
|
|
150 |
|
* Thuban/common.py: Move FIELDTYPE constants back to table.py. |
151 |
|
|
152 |
|
* Thuban/Model/load.py: import FIELDTYPE constants from table. |
153 |
|
|
154 |
|
* Thuban/UI/classifier.py: import FIELDTYPE constants from table. |
155 |
|
|
156 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants back. |
157 |
|
|
158 |
|
2003-03-05 Jonathan Coles <[email protected]> |
159 |
|
|
160 |
|
* Thuban/UI/classifier.py: Added class documentation. |
161 |
|
Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons. |
162 |
|
Store just the groups in the table and generate the other |
163 |
|
column information when it is requested. Add "None" field |
164 |
|
to pull-down to select no classification. |
165 |
|
|
166 |
|
* Thuban/common.py: Moved FIELDTYPE constants from table.py |
167 |
|
(Str2Num): Only catch ValueError exceptions. |
168 |
|
|
169 |
|
* Thuban/Model/classification.py: Class documentation. Renaming |
170 |
|
of methods with Stroke to Line. Groups are stored in a single |
171 |
|
list with the default as the first element. Groups are searched |
172 |
|
in the order they appear in the list. |
173 |
|
|
174 |
|
* Thuban/Model/color.py: Documentation. |
175 |
|
|
176 |
|
* Thuban/Model/layer.py (Layer): Add GetFieldType to retreive |
177 |
|
the kind of data represented by a field. |
178 |
|
|
179 |
|
* Thuban/Model/load.py (ProcessSession): Use proper string |
180 |
|
conversion function; fixes RTbug #1713. |
181 |
|
|
182 |
|
* Thuban/Model/save.py (Saver): Store field type information. |
183 |
|
|
184 |
|
* Thuban/Model/table.py: Put FIELDTYPE constants in common.py. |
185 |
|
(Table): Add field_info_by_name() to retrieve field information |
186 |
|
by specifying the field name, not the number. |
187 |
|
|
188 |
|
* Thuban/UI/mainwindow.py: Function name changes. |
189 |
|
|
190 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only |
191 |
|
get the layer classification once. Don't try to classify |
192 |
|
values when the field is None: just use the default properties. |
193 |
|
|
194 |
|
* Thuban/UI/view.py: Function name changes. |
195 |
|
|
196 |
|
* Doc/thuban.dtd: Add field_type attribute to a classification. |
197 |
|
|
198 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
199 |
|
|
200 |
|
* Doc/thuban.dtd: Use correct syntax for optional attributes. Make |
201 |
|
the fill and stroke layer attributes optional with suitable |
202 |
|
default values. Add the stroke_width layer attribute. Use correct |
203 |
|
syntax for empty elements. Make the attribute list for labels |
204 |
|
refer to the label element. |
205 |
|
|
206 |
|
2003-03-04 Bernhard Herzog <[email protected]> |
207 |
|
|
208 |
|
* setup.py (thuban_build_py.build): Add a comment about distutils in |
209 |
|
Python 2.3 containing some of the functionality we implement in |
210 |
|
setup.py ourselves. |
211 |
|
|
212 |
|
* Thuban/UI/classifier.py (ClassGrid.__init__): Set the table |
213 |
|
before the selection mode. Doing it the other way round triggers |
214 |
|
an assertion in wxWindows. |
215 |
|
|
216 |
|
* Thuban/Model/save.py (escape): Fix typo in doc-string |
217 |
|
|
218 |
|
* Thuban/Model/classification.py: Remove unnecessary wxPython |
219 |
|
import |
220 |
|
|
221 |
|
2003-03-04 Jonathan Coles <[email protected]> |
222 |
|
|
223 |
|
* Thuban/Model/classification.py (ClassGroupRange.GetProperties): |
224 |
|
Parameter 'value' should default to None. |
225 |
|
|
226 |
|
* Thuban/UI/mainwindow.py: Use Layer.GetClassification() since |
227 |
|
the class attribute __classification is now private. |
228 |
|
|
229 |
|
* Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from |
230 |
|
Classifier to ClassGrid. Added support for removing selected rows, |
231 |
|
which including code for keeping track of when cells are selected, |
232 |
|
and deselected. |
233 |
|
(ClassTable): Support for added/removing rows. Fixed a problem |
234 |
|
with __ParseInput whereby it would not allow strings (only numbers) |
235 |
|
to be entered. |
236 |
|
(Classifier): Added button and supporting code for removing |
237 |
|
selected rows. |
238 |
|
|
239 |
|
2003-02-27 Jonathan Coles <[email protected]> |
240 |
|
|
241 |
|
* Thuban/common.py: Moved color conversion functions into |
242 |
|
Thuban/UI/common.py. |
243 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
244 |
|
so that an exception isn't thrown. |
245 |
|
|
246 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
247 |
|
|
248 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
249 |
|
so that a Classification consists of Groups which return |
250 |
|
Properties when a value matches a Group. |
251 |
|
|
252 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
253 |
|
|
254 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
255 |
|
|
256 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
257 |
|
failure. |
258 |
|
(Saver.write_classification): Use new Classification and Group |
259 |
|
functions. |
260 |
|
|
261 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
262 |
|
functions. Fix to create a tuple with a single value instead of |
263 |
|
simply returning the value. |
264 |
|
|
265 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
266 |
|
Use common.py functions. |
267 |
|
|
268 |
|
* Thuban/UI/tree.py: Use common.py functions. |
269 |
|
|
270 |
|
* test/test_classification.py: Use new Classification and Group |
271 |
|
classes. |
272 |
|
|
273 |
|
2003-02-24 Jonathan Coles <[email protected]> |
274 |
|
|
275 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
276 |
|
functions from Thuban color objects to wxWindow colour objects. |
277 |
|
|
278 |
|
* Thuban/Model/classification.py (Classification): Renamed |
279 |
|
GetProperties() to GetClassData(). Used the new iterator |
280 |
|
in TreeInfo(). |
281 |
|
(ClassIterator): Iterator implementation to iterate over the |
282 |
|
ClassData objects in a classification object. |
283 |
|
|
284 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
285 |
|
the new iterator to save the classification information. |
286 |
|
|
287 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
288 |
|
for changing the stroke and fill colors and previewing the |
289 |
|
changes. |
290 |
|
|
291 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
292 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
293 |
|
have more meaningful titles. |
294 |
|
|
295 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
296 |
|
Classification method name from GetProperties to GetClassData. |
297 |
|
|
298 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
299 |
|
instead of accessing now non-existent class variables. |
300 |
|
|
301 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
302 |
|
|
303 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
304 |
|
unneeded Shape() call. Rendering is substantially faster without |
305 |
|
it and it avoids some problems with broken shape files. |
306 |
|
|
307 |
|
2003-02-20 Frank Koormann <[email protected]> |
308 |
|
|
309 |
|
Force minimal size of identify and label dialogs. The autosizing |
310 |
|
looked too ugly. |
311 |
|
|
312 |
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
313 |
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
314 |
|
Set size of listctrl. |
315 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
316 |
|
Set size of dialog. |
317 |
|
|
318 |
|
2003-02-19 Jonathan Coles <[email protected]> |
319 |
|
|
320 |
|
* test/test_classification.py, test/test_layer.py, |
321 |
|
test/test_load.py, test/test_map.py, test/test_session.py: |
322 |
|
Updated the tests to use the new functions that are in the |
323 |
|
respective classes. |
324 |
|
|
325 |
|
* Thuban/Model/classification.py (Classification): |
326 |
|
Uses the new ClassData* classes. Modification messages are |
327 |
|
passed up to the parent layer (if it exists). |
328 |
|
(ClassData): New class to encapsulate the common data in each |
329 |
|
classification property. |
330 |
|
(ClassDataDefault): Represents the Default class. data. |
331 |
|
(ClassDataPoint): Represents a single class. data point |
332 |
|
(ClassDataRange): Represents a class. range |
333 |
|
(ClassDataMap): Represents a class. map (unused). |
334 |
|
|
335 |
|
* Thuban/Model/color.py: Added Color.None to represent something |
336 |
|
with no color. Color.Black represents the color black. |
337 |
|
(NoColor): Helper class derived from Color to represent something |
338 |
|
with no color. |
339 |
|
|
340 |
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
341 |
|
stroke_width attributes. Made the 'classification' attribute private. |
342 |
|
New methods for setting/getting the classification. |
343 |
|
|
344 |
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
345 |
|
to get the classifcation and use the new ClassData* classes to |
346 |
|
hold the classification data. Use Str2Num to convert numbers |
347 |
|
properly. |
348 |
|
|
349 |
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
350 |
|
methods |
351 |
|
|
352 |
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
353 |
|
custom grid. |
354 |
|
(ClassTable): Support for editing Values and Labels and for |
355 |
|
changing what type (point or range) of data is stored in each |
356 |
|
property based on how the user enters the data. |
357 |
|
(Classifier): Support for saving the new classifications and |
358 |
|
launching the dialog to edit a property. |
359 |
|
(SelectPropertiesDialog): New class for editing the visual |
360 |
|
properties of a classification (stroke color, width, and fill color) |
361 |
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
362 |
|
made most of it into this new class. Intend to use this class in |
363 |
|
the SelectPropertiesDialog for previewing changes. |
364 |
|
|
365 |
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
366 |
|
|
367 |
|
* Thuban/UI/tree.py: Formatting changes. |
368 |
|
|
369 |
|
* Doc/thuban.dtd: Add 'label' element |
370 |
|
|
371 |
|
* Thuban/common.py: New. Contains common routines used throughout |
372 |
|
the code. |
373 |
|
(Str2Num): Takes a string and converts it to the "best" type of |
374 |
|
number. |
375 |
|
|
376 |
|
2003-02-14 Bernhard Herzog <[email protected]> |
377 |
|
|
378 |
|
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
379 |
|
dragging flag is always set to 0 even when the tool implementation |
380 |
|
raises an exception |
381 |
|
|
382 |
|
2003-02-11 Bernhard Herzog <[email protected]> |
383 |
|
|
384 |
|
* Thuban/UI/application.py (ThubanApplication.splash_screen): New |
385 |
|
method to create a splash screen. |
386 |
|
(ThubanApplication.ShowMainWindow): New. Show the main window. |
387 |
|
Needed so the splash screen can display the mainwindow |
388 |
|
(ThubanApplication.OnInit): Call the |
389 |
|
new splash_screen method to determine whether the application |
390 |
|
should display a splash screen. If it displays a splash screen do |
391 |
|
not immediately show the main window. |
392 |
|
|
393 |
|
2003-02-11 Jonathan Coles <[email protected]> |
394 |
|
|
395 |
|
* Thuban/Model/classification.py: Added import line to fix |
396 |
|
feature conflicts between running on python2.2 and python2.1. |
397 |
|
|
398 |
|
* Thuban/UI/classifier.py (ClassTable): Didn't need to hang |
399 |
|
onto the clinfo parameter, so removed the deepcopy(). |
400 |
|
|
401 |
|
2003-02-10 Jonathan Coles <[email protected]> |
402 |
|
|
403 |
|
* Thuban/Model/save.py (Saver.open_element, Saver.close_element): |
404 |
|
Added element_open variable to track opening and closing of tags |
405 |
|
so that tags that don't span more than one line are closed with |
406 |
|
/> instead of </tag_name>. Use the GetDefault*() methods of |
407 |
|
the Classification class. |
408 |
|
|
409 |
|
* Thuban/Model/classification.py (Classificaton): Added set and |
410 |
|
get methods for the default data. The class also takes a layer |
411 |
|
reference so that modification messages can be sent. Fixed the |
412 |
|
methods to use the new ClassData class. |
413 |
|
(ClassData): New class to encapsulate the classification data |
414 |
|
|
415 |
|
* Thuban/Model/layer.py (Layer): Remove the |
416 |
|
Set[Fill|Stroke|StrokeWidth]() methods. Code should call the |
417 |
|
SetDefault*() methods on the layer's classification object. |
418 |
|
(Layer.__init__): Use the new SetDefault*() methods in the |
419 |
|
Classification class. |
420 |
|
|
421 |
|
* Thuban/Model/load.py (ProcessSession): Use the new ClassData |
422 |
|
object instead of a dictionary. |
423 |
|
|
424 |
|
* Thuban/UI/classifier.py (ClassRenderer): New class to |
425 |
|
draw the classifications in the dialog box's table. |
426 |
|
(Classifier): Modified to use the ClassRenderer class. |
427 |
|
|
428 |
|
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*() |
429 |
|
methods of the Classification class. |
430 |
|
|
431 |
|
* Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods |
432 |
|
of the ClassData class. |
433 |
|
|
434 |
|
* test/test_classification.py, test/test_layer.py, |
435 |
|
test/test_map.py, test/test_session.py: Fix the tests to work |
436 |
|
with the above code changes. |
437 |
|
|
438 |
|
2003-02-03 Jonathan Coles <[email protected]> |
439 |
|
|
440 |
|
* Thuban/Model/classification.py (Classification): Added getNull() |
441 |
|
to return the NullData reference |
442 |
|
|
443 |
|
* Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke, |
444 |
|
Layer.SetStrokeWidth): Modified these functions to change the |
445 |
|
null data in the classification rather than keep these values |
446 |
|
directly in the Layer class. Menu options to change these values |
447 |
|
work again. |
448 |
|
|
449 |
|
2003-01-28 Jonathan Coles <[email protected]> |
450 |
|
|
451 |
|
* Thuban/UI/classifier.py (Classifier): Resolved merging conflicts. |
452 |
|
Fixed crashing problem on some systems. Dialog box shows |
453 |
|
classification data. |
454 |
|
|
455 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing |
456 |
|
Colors in the tree view. |
457 |
|
|
458 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build |
459 |
|
the tree info for classifications. Commented out unnecessary lines. |
460 |
|
|
461 |
|
* Thuban/Model/classification.py (Classification.TreeInfo): New |
462 |
|
function to add information about the classification into the |
463 |
|
tree view. |
464 |
|
|
465 |
|
2003-01-27 Jan-Oliver Wagner <[email protected]> |
466 |
|
|
467 |
|
* Thuban/__init__.py (_): New. |
468 |
|
|
469 |
|
* Thuban/Model/classification.py, Thuban/Model/extension.py, |
470 |
|
Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py, |
471 |
|
Thuban/Model/session.py, Thuban/UI/application.py, |
472 |
|
Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py, |
473 |
|
Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py, |
474 |
|
Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py, |
475 |
|
Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py, |
476 |
|
Thuban/Lib/fileutil.py: Replace user string by _() for i18n. |
477 |
|
|
478 |
|
2003-01-27 Jonathan Coles <[email protected]> |
479 |
|
|
480 |
|
* Thuban/Model/layer.py: Classification initialization calls. |
481 |
|
|
482 |
|
* Thuban/Model/classification.py: Created class to encapsulate |
483 |
|
a layer classification. Supports specific data points and |
484 |
|
ranges. |
485 |
|
|
486 |
|
* Thuban/Model/load.py: Added support for loading classification |
487 |
|
information. |
488 |
|
|
489 |
|
* Thuban/Model/save.py: Added support for saving classification |
490 |
|
information. |
491 |
|
|
492 |
|
* Thuban/UI/classifier.py: Initial class for a dialog box for |
493 |
|
specifying classification information. |
494 |
|
|
495 |
|
* Thuban/UI/mainwindows.py: Support for opening the classifier |
496 |
|
dialog. |
497 |
|
|
498 |
|
* Thuban/UI/renderer.py: Support for drawing a layer with the |
499 |
|
classification information. |
500 |
|
|
501 |
|
* Data/iceland_sample_class.thuban: iceland_sample with |
502 |
|
classification data. |
503 |
|
|
504 |
|
* test/test_classification: Tests for the Classification class. |
505 |
|
|
506 |
|
2002-12-09 Bernhard Herzog <[email protected]> |
507 |
|
|
508 |
|
* test/test_command.py: New. Tests for the command classes. |
509 |
|
|
510 |
|
* Thuban/UI/command.py (ToolCommand): New class for tool commands. |
511 |
|
(Command.IsTool): New method to distinguish between command |
512 |
|
switching tools and other commands. |
513 |
|
|
514 |
|
* Thuban/UI/view.py (MapCanvas.SelectTool): New method to select |
515 |
|
the tool to avoid direct assignments to instance variables |
516 |
|
(MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool) |
517 |
|
(MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to |
518 |
|
change the tool |
519 |
|
|
520 |
|
* Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an |
521 |
|
active tool's command turns insensitive, disable the tool. |
522 |
|
(_tool_command): Use the new ToolCommand class |
523 |
|
|
524 |
|
* Examples/simple_extensions/simple_tool.py (simple_tool): Use the |
525 |
|
SelectTool method to change the tool |
526 |
|
(iconfile): Use the ToolCommand class |
527 |
|
|
528 |
|
2002-12-03 Bernhard Herzog <[email protected]> |
529 |
|
|
530 |
|
* Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle |
531 |
|
the case of selected items that are not children of Layers or Maps |
532 |
|
properly. Previously this bug would trigger an assertion in |
533 |
|
wxWindows. |
534 |
|
|
535 |
|
2002-11-06 Frank Koormann <[email protected]> |
536 |
|
|
537 |
|
* Thuban/UI/mainwindow.py: Altered the order of tools in the |
538 |
|
toolbar: First now are all navigation tools (Zoom In/Out, Pan, |
539 |
|
Full Extent). |
540 |
|
|
541 |
|
2002-10-23 Bernhard Herzog <[email protected]> |
542 |
|
|
543 |
|
* setup.py (setup call): version now 0.1.3 |
544 |
|
|
545 |
|
* MANIFEST.in: Add the files in test/ |
546 |
|
|
547 |
|
* test/README: Add note about tests requiring the iceland data |
548 |
|
|
549 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to |
550 |
|
copyright notice. |
551 |
|
|
552 |
|
2002-10-18 Bernhard Herzog <[email protected]> |
553 |
|
|
554 |
|
* test/test_map.py |
555 |
|
(TestMapWithContents.test_projected_bounding_box): Use an explicit |
556 |
|
epsilon. |
557 |
|
|
558 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual) |
559 |
|
(FloatComparisonMixin.assertFloatSeqEqual): give a more useful |
560 |
|
message if the assertion fails and don't return the return value |
561 |
|
of self.assert_. In assertFloatSeqEqual the return meant that not |
562 |
|
all items of the sequence were compared. |
563 |
|
|
564 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
565 |
|
|
566 |
|
* test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil |
567 |
|
|
568 |
|
* Thuban/Lib/fileutil.py: Fixup some whitespace and typos |
569 |
|
|
570 |
|
* test/test_map.py (TestMapWithContents.test_tree_info): Create |
571 |
|
the string with the bounding box on the fly because of platform |
572 |
|
differences in the way %g is handled. |
573 |
|
|
574 |
|
* test/test_layer.py (TestLayer.test_empty_layer): Create an empty |
575 |
|
DBFfile too because Thuban layers can't yet cope missing DBF |
576 |
|
files. |
577 |
|
|
578 |
|
2002-09-20 Bernhard Herzog <[email protected]> |
579 |
|
|
580 |
|
* test/test_menu.py: Use initthuban instead of |
581 |
|
add_thuban_dir_to_path to initialize Thuban. |
582 |
|
|
583 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): New. |
584 |
|
Mixin class for float comparisons |
585 |
|
(SubscriberMixin): New. Mixin class to test messages sent through |
586 |
|
the Connector class |
587 |
|
|
588 |
|
* test/README: Fix a typo and add the -v flag to the command for |
589 |
|
individual tests |
590 |
|
|
591 |
|
* test/test_session.py: New. Test cases for Thuban.Model.session |
592 |
|
|
593 |
|
* test/test_proj.py: New. Test cases for Thuban.Model.proj |
594 |
|
|
595 |
|
* test/test_map.py: New. Test cases for Thuban.Model.map |
596 |
|
|
597 |
|
* test/test_layer.py: New. Test cases for Thuban.Model.layer |
598 |
|
|
599 |
|
* test/test_label.py: New. Test cases for Thuban.Model.label |
600 |
|
|
601 |
|
* test/test_connector.py: New. Test cases for Thuban.Lib.connector |
602 |
|
|
603 |
|
* test/test_color.py: New. Test cases for Thuban.Model.color |
604 |
|
|
605 |
|
* test/test_base.py: New. Test cases for Thuban.Model.base |
606 |
|
|
607 |
|
2002-09-13 Bernhard Herzog <[email protected]> |
608 |
|
|
609 |
|
* Thuban/Model/session.py (Session.forwarded_channels): Forward |
610 |
|
the CHANGED channel too. |
611 |
|
|
612 |
|
* Thuban/Model/map.py (Map.forwarded_channels): Forward the |
613 |
|
CHANGED channel too. |
614 |
|
(Map.__init__): Call the Modifiable constructor as well. |
615 |
|
|
616 |
|
* Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED |
617 |
|
event if the modified flag changes. |
618 |
|
(Modifiable.changed): Tweak the doc-string. |
619 |
|
|
620 |
|
* Thuban/UI/mainwindow.py (MainWindow.view_position_changed) |
621 |
|
(MainWindow.set_position_text): Put the code that puts the text |
622 |
|
with the mouse position into the status bar into the new method |
623 |
|
set_position_text so that it can overwritten in derived classes. |
624 |
|
|
625 |
|
2002-09-12 Bernhard Herzog <[email protected]> |
626 |
|
|
627 |
|
* Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the |
628 |
|
message box on the main window. |
629 |
|
|
630 |
|
2002-09-11 Bernhard Herzog <[email protected]> |
631 |
|
|
632 |
|
* Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of |
633 |
|
the 'E' because it's less likely to interfere with other menu |
634 |
|
entries. |
635 |
|
(MainWindow.build_menu): remove an incorrect comment. |
636 |
|
|
637 |
|
2002-09-10 Bernhard Herzog <[email protected]> |
638 |
|
|
639 |
|
* Thuban/UI/mainwindow.py (MainWindow.Map): New. |
640 |
|
(_tool_command): Add sensitive parameter |
641 |
|
(_has_visible_map): Sensitivity callback to tools and other |
642 |
|
commands that require a visible map. Use it in map_zoom_in_tool, |
643 |
|
map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool |
644 |
|
and map_full_extent |
645 |
|
|
646 |
2002-09-06 Bernhard Herzog <[email protected]> |
2002-09-06 Bernhard Herzog <[email protected]> |
647 |
|
|
648 |
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe |
649 |
VIEW_POSITION |
VIEW_POSITION |
650 |
|
|
651 |
2002-09-04 Frank Koormann <[email protected]> |
2002-09-04 Frank Koormann <[email protected]> |
652 |
|
|
653 |
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
* Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe") |
654 |
|
|
735 |
|
|
736 |
* Thuban/Model/table.py (Table.write_record): New method to write |
* Thuban/Model/table.py (Table.write_record): New method to write |
737 |
records. |
records. |
738 |
(Table.__init__): Open the DBF file for writing too. |
(Table.__init__): Open the DBF file for writing too. |
739 |
|
|
740 |
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
* Thuban/UI/controls.py (RecordTable.SetValue): Write the value |
741 |
into the underlying table. |
into the underlying table. |
773 |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
* setup.py (ThubanInstall.run): Don't repr install_lib_orig |
774 |
because thubaninit_contents will do it for us. |
because thubaninit_contents will do it for us. |
775 |
|
|
776 |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
2002-08-16 Jan-Oliver Wagner <[email protected]> |
777 |
|
|
778 |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
* Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if |
779 |
tree window already open |
tree window already open |
901 |
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
* Thuban/UI/tree.py: We can now simply subscribe to the session's |
902 |
CHANGED channel to be informed of changes. |
CHANGED channel to be informed of changes. |
903 |
(SessionTreeCtrl.session_channels): Not needed any longer. |
(SessionTreeCtrl.session_channels): Not needed any longer. |
904 |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
(SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed): |
905 |
Only have to (un)subscribe CHANGED |
Only have to (un)subscribe CHANGED |
906 |
|
|
907 |
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
* Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps. |
962 |
* Thuban/Model/layer.py (Layer.TreeInfo), |
* Thuban/Model/layer.py (Layer.TreeInfo), |
963 |
Thuban/Model/extension.py (Extension.TreeInfo), |
Thuban/Model/extension.py (Extension.TreeInfo), |
964 |
Thuban/Model/map.py (Map.TreeInfo), |
Thuban/Model/map.py (Map.TreeInfo), |
965 |
Thuban/Model/session.py (Session.TreeInfo): |
Thuban/Model/session.py (Session.TreeInfo): |
966 |
Add TreeInfo methods to implement the new tree view update scheme |
Add TreeInfo methods to implement the new tree view update scheme |
967 |
|
|
968 |
2002-07-16 Bernhard Herzog <[email protected]> |
2002-07-16 Bernhard Herzog <[email protected]> |
1043 |
* setup.py: In the setup call, make sure that the library |
* setup.py: In the setup call, make sure that the library |
1044 |
directories are under $prefix/lib not directly under $prefix. |
directories are under $prefix/lib not directly under $prefix. |
1045 |
|
|
1046 |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
2002-06-20 Jan-Oliver Wagner <[email protected]> |
1047 |
|
|
1048 |
* Thuban/Model/extension.py: new module to handle extension objects. |
* Thuban/Model/extension.py: new module to handle extension objects. |
1049 |
* Thuban/Model/messages.py: new messages for extensions. |
* Thuban/Model/messages.py: new messages for extensions. |
1272 |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
1273 |
position in the statusbar |
position in the statusbar |
1274 |
|
|
1275 |
2002-04-26 Frank Koormann <[email protected]> |
2002-04-26 Frank Koormann <[email protected]> |
1276 |
|
|
1277 |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
1278 |
|
|
1279 |
2002-04-24 Frank Koormann <[email protected]> |
2002-04-24 Frank Koormann <[email protected]> |
1280 |
|
|
1281 |
* Resources/Bitmaps/identify.xpm: shadow added |
* Resources/Bitmaps/identify.xpm: shadow added |
1282 |
|
|
1283 |
* Resources/Bitmaps/fullextent.xpm: new |
* Resources/Bitmaps/fullextent.xpm: new |
|
|
|
|
2002-04-22 Jan-Oliver Wagner <[email protected]> |
|
1284 |
|
|
1285 |
* Thuban/UI/tree.py (update_tree): added test for None on map bounding box |
2002-04-22 Jan-Oliver Wagner <[email protected]> |
1286 |
|
|
1287 |
|
* Thuban/UI/tree.py (update_tree): added test for None on map bounding |
1288 |
|
box |
1289 |
|
|
1290 |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
2002-04-21 Jan-Oliver Wagner <[email protected]> |
1291 |
|
|
1292 |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
* Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new |
1293 |
|
|
1294 |
* Thuban/UI/tree.py (update_tree): added added map extent |
* Thuban/UI/tree.py (update_tree): added added map extent |
1295 |
|
|
1296 |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
* Thuban/UI/mainwindow.py (_method_command): extended by parameter |
1297 |
icon; added map_full_extend as tool |
icon; added map_full_extend as tool |
1298 |
|
|
1299 |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
2002-04-19 Jan-Oliver Wagner <[email protected]> |
1300 |
|
|
1301 |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
* Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for |
1302 |
saving _new_ sessions |
saving _new_ sessions |
1398 |
|
|
1399 |
* setup.py: increase version number to 0.1 |
* setup.py: increase version number to 0.1 |
1400 |
(data_dist): New command class for data distribution |
(data_dist): New command class for data distribution |
|
|
|
1401 |
|
|
1402 |
2001-09-14 Bernhard Herzog <[email protected]> |
2001-09-14 Bernhard Herzog <[email protected]> |
1403 |
|
|
1404 |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape): |
1405 |
Handle the case of no layer (i.e. layer is None) properly. |
Handle the case of no layer (i.e. layer is None) properly. |
1406 |
|
|
1407 |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
* Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__): |
1408 |
Set the initial selection of the combo boxes to reflect the |
Set the initial selection of the combo boxes to reflect the |
1409 |
projection we're starting with in a way that works on windows, |
projection we're starting with in a way that works on windows, |
1410 |
too. |
too. |
1514 |
(MainWindow.identify_view_on_demand): Store the interactor in an |
(MainWindow.identify_view_on_demand): Store the interactor in an |
1515 |
instvar and use that reference instead of going through main.app |
instvar and use that reference instead of going through main.app |
1516 |
|
|
1517 |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
* Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): |
1518 |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
* Thuban/UI/application.py (ThubanApplication.OnInit): |
1519 |
* Thuban/UI/main.py (main): Create the session tree view in main |
* Thuban/UI/main.py (main): Create the session tree view in main |
1520 |
with the new mainwindow method ShowSessionTree and not directly |
with the new mainwindow method ShowSessionTree and not directly |
1521 |
the application's OnInit method |
the application's OnInit method |
1531 |
layer to the tableview dialog. |
layer to the tableview dialog. |
1532 |
|
|
1533 |
* Thuban/UI/tableview.py: Add some doc-strings |
* Thuban/UI/tableview.py: Add some doc-strings |
1534 |
(TableGrid): |
(TableGrid): |
1535 |
(TableGrid.OnRangeSelect): |
(TableGrid.OnRangeSelect): |
1536 |
(TableGrid.OnSelectCell): |
(TableGrid.OnSelectCell): |
1537 |
(TableFrame.__init__): |
(TableFrame.__init__): |
1598 |
2001-09-05 Bernhard Herzog <[email protected]> |
2001-09-05 Bernhard Herzog <[email protected]> |
1599 |
|
|
1600 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
1601 |
|
|
1602 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
* Thuban/UI/mainwindow.py (MainWindow.__init__): New argument |
1603 |
interactor to pass through to the MapCanvas |
interactor to pass through to the MapCanvas |
1604 |
|
|
1605 |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
* Thuban/UI/application.py (ThubanApplication.OnInit): Use the new |
1606 |
argument to the MainWindow constructor to get rid of the ugly hack |
argument to the MainWindow constructor to get rid of the ugly hack |
1607 |
that made main.app available early just so that the mapcanvas |
that made main.app available early just so that the mapcanvas |
1648 |
(ThubanInstall.run): Remove the leading install root from the |
(ThubanInstall.run): Remove the leading install root from the |
1649 |
script filename if an install root was specified and use the new |
script filename if an install root was specified and use the new |
1650 |
link_file method |
link_file method |
1651 |
|
|
1652 |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
* Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to |
1653 |
the window when the first layer is added to the map. |
the window when the first layer is added to the map. |
1654 |
|
|
1685 |
(InnoIconItem): Helper class for bdist_inno |
(InnoIconItem): Helper class for bdist_inno |
1686 |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
(thuban_bdist_inno): Thuban specific version of bdist_inno. Added |
1687 |
this together with the appropriate parameters, to the setup call. |
this together with the appropriate parameters, to the setup call. |
1688 |
|
|
1689 |
* setup.cfg (bdist_inno): added new section for the inno setup |
* setup.cfg (bdist_inno): added new section for the inno setup |
1690 |
installer |
installer |
1691 |
|
|