1 |
|
2003-02-19 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* test/test_classification.py, test/test_layer.py, |
4 |
|
test/test_load.py, test/test_map.py, test/test_session.py: |
5 |
|
Updated the tests to use the new functions that are in the |
6 |
|
respective classes. |
7 |
|
|
8 |
|
* Thuban/Model/classification.py (Classification): |
9 |
|
Uses the new ClassData* classes. Modification messages are |
10 |
|
passed up to the parent layer (if it exists). |
11 |
|
(ClassData): New class to encapsulate the common data in each |
12 |
|
classification property. |
13 |
|
(ClassDataDefault): Represents the Default class. data. |
14 |
|
(ClassDataPoint): Represents a single class. data point |
15 |
|
(ClassDataRange): Represents a class. range |
16 |
|
(ClassDataMap): Represents a class. map (unused). |
17 |
|
|
18 |
|
* Thuban/Model/color.py: Added Color.None to represent something |
19 |
|
with no color. Color.Black represents the color black. |
20 |
|
(NoColor): Helper class derived from Color to represent something |
21 |
|
with no color. |
22 |
|
|
23 |
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
24 |
|
stroke_width attributes. Made the 'classification' attribute private. |
25 |
|
New methods for setting/getting the classification. |
26 |
|
|
27 |
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
28 |
|
to get the classifcation and use the new ClassData* classes to |
29 |
|
hold the classification data. Use Str2Num to convert numbers |
30 |
|
properly. |
31 |
|
|
32 |
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
33 |
|
methods |
34 |
|
|
35 |
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
36 |
|
custom grid. |
37 |
|
(ClassTable): Support for editing Values and Labels and for |
38 |
|
changing what type (point or range) of data is stored in each |
39 |
|
property based on how the user enters the data. |
40 |
|
(Classifier): Support for saving the new classifications and |
41 |
|
launching the dialog to edit a property. |
42 |
|
(SelectPropertiesDialog): New class for editing the visual |
43 |
|
properties of a classification (stroke color, width, and fill color) |
44 |
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
45 |
|
made most of it into this new class. Intend to use this class in |
46 |
|
the SelectPropertiesDialog for previewing changes. |
47 |
|
|
48 |
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
49 |
|
|
50 |
|
* Thuban/UI/tree.py: Formatting changes. |
51 |
|
|
52 |
|
* Doc/thuban.dtd: Add 'label' element |
53 |
|
|
54 |
|
* Thuban/common.py: New. Contains common routines used throughout |
55 |
|
the code. |
56 |
|
(Str2Num): Takes a string and converts it to the "best" type of |
57 |
|
number. |
58 |
|
|
59 |
2003-02-14 Bernhard Herzog <[email protected]> |
2003-02-14 Bernhard Herzog <[email protected]> |
60 |
|
|
61 |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |