1 |
|
2003-02-10 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/save.py (Saver.open_element, Saver.close_element): |
4 |
|
Added element_open variable to track opening and closing of tags |
5 |
|
so that tags that don't span more than one line are closed with |
6 |
|
/> instead of </tag_name>. Use the GetDefault*() methods of |
7 |
|
the Classification class. |
8 |
|
|
9 |
|
* Thuban/Model/classification.py (Classificaton): Added set and |
10 |
|
get methods for the default data. The class also takes a layer |
11 |
|
reference so that modification messages can be sent. Fixed the |
12 |
|
methods to use the new ClassData class. |
13 |
|
(ClassData): New class to encapsulate the classification data |
14 |
|
|
15 |
|
* Thuban/Model/layer.py (Layer): Remove the |
16 |
|
Set[Fill|Stroke|StrokeWidth]() methods. Code should call the |
17 |
|
SetDefault*() methods on the layer's classification object. |
18 |
|
(Layer.__init__): Use the new SetDefault*() methods in the |
19 |
|
Classification class. |
20 |
|
|
21 |
|
* Thuban/Model/load.py (ProcessSession): Use the new ClassData |
22 |
|
object instead of a dictionary. |
23 |
|
|
24 |
|
* Thuban/UI/classifier.py (ClassRenderer): New class to |
25 |
|
draw the classifications in the dialog box's table. |
26 |
|
(Classifier): Modified to use the ClassRenderer class. |
27 |
|
|
28 |
|
* Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*() |
29 |
|
methods of the Classification class. |
30 |
|
|
31 |
|
* Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods |
32 |
|
of the ClassData class. |
33 |
|
|
34 |
|
* test/test_classification.py, test/test_layer.py, |
35 |
|
test/test_map.py, test/test_session.py: Fix the tests to work |
36 |
|
with the above code changes. |
37 |
|
|
38 |
2003-02-03 Jonathan Coles <[email protected]> |
2003-02-03 Jonathan Coles <[email protected]> |
39 |
|
|
40 |
* Thuban/Model/classification.py (Classification): Added getNull() |
* Thuban/Model/classification.py (Classification): Added getNull() |