1 |
|
2003-02-27 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/common.py: Moved color conversion functions into |
4 |
|
Thuban/UI/common.py. |
5 |
|
(Str2Num): Now converts the float (not the string) to a long/int |
6 |
|
so that an exception isn't thrown. |
7 |
|
|
8 |
|
* Thuban/UI/common.py: Common functions used in several UI modules |
9 |
|
|
10 |
|
* Thuban/Model/classification.py: Changed the class hierarchy |
11 |
|
so that a Classification consists of Groups which return |
12 |
|
Properties when a value matches a Group. |
13 |
|
|
14 |
|
* Thuban/Model/layer.py: Fixed name resolution problem. |
15 |
|
|
16 |
|
* Thuban/Model/load.py: Use new Classification and Group functions. |
17 |
|
|
18 |
|
* Thuban/Model/save.py (Saver.write_attribs): Fixes a test case |
19 |
|
failure. |
20 |
|
(Saver.write_classification): Use new Classification and Group |
21 |
|
functions. |
22 |
|
|
23 |
|
* Thuban/UI/classifier.py: Changes to use new Classification and Group |
24 |
|
functions. Fix to create a tuple with a single value instead of |
25 |
|
simply returning the value. |
26 |
|
|
27 |
|
* Thuban/UI/renderer.py: Use new Classification and Group functions. |
28 |
|
Use common.py functions. |
29 |
|
|
30 |
|
* Thuban/UI/tree.py: Use common.py functions. |
31 |
|
|
32 |
|
2003-02-24 Jonathan Coles <[email protected]> |
33 |
|
|
34 |
|
* Thuban/common.py (Color2wxColour, wxColour2Color): Conversion |
35 |
|
functions from Thuban color objects to wxWindow colour objects. |
36 |
|
|
37 |
|
* Thuban/Model/classification.py (Classification): Renamed |
38 |
|
GetProperties() to GetClassData(). Used the new iterator |
39 |
|
in TreeInfo(). |
40 |
|
(ClassIterator): Iterator implementation to iterate over the |
41 |
|
ClassData objects in a classification object. |
42 |
|
|
43 |
|
* Thuban/Model/save.py (Saver.write_classificaton): Uses |
44 |
|
the new iterator to save the classification information. |
45 |
|
|
46 |
|
* Thuban/UI/classifier.py (SelectPropertiesDialog): Support |
47 |
|
for changing the stroke and fill colors and previewing the |
48 |
|
changes. |
49 |
|
|
50 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenSession, |
51 |
|
MainWindow.SaveSessionAs): Text string changes so the dialogs |
52 |
|
have more meaningful titles. |
53 |
|
|
54 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change |
55 |
|
Classification method name from GetProperties to GetClassData. |
56 |
|
|
57 |
|
* Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls |
58 |
|
instead of accessing now non-existent class variables. |
59 |
|
|
60 |
|
2003-02-24 Bernhard Herzog <[email protected]> |
61 |
|
|
62 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove |
63 |
|
unneeded Shape() call. Rendering is substantially faster without |
64 |
|
it and it avoids some problems with broken shape files. |
65 |
|
|
66 |
|
2003-02-20 Frank Koormann <[email protected]> |
67 |
|
|
68 |
|
Force minimal size of identify and label dialogs. The autosizing |
69 |
|
looked too ugly. |
70 |
|
|
71 |
|
* Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns. |
72 |
|
* Thuban/UI/labeldialog.py (LabelDialog.dialog_layout): |
73 |
|
Set size of listctrl. |
74 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
75 |
|
Set size of dialog. |
76 |
|
|
77 |
|
2003-02-19 Jonathan Coles <[email protected]> |
78 |
|
|
79 |
|
* test/test_classification.py, test/test_layer.py, |
80 |
|
test/test_load.py, test/test_map.py, test/test_session.py: |
81 |
|
Updated the tests to use the new functions that are in the |
82 |
|
respective classes. |
83 |
|
|
84 |
|
* Thuban/Model/classification.py (Classification): |
85 |
|
Uses the new ClassData* classes. Modification messages are |
86 |
|
passed up to the parent layer (if it exists). |
87 |
|
(ClassData): New class to encapsulate the common data in each |
88 |
|
classification property. |
89 |
|
(ClassDataDefault): Represents the Default class. data. |
90 |
|
(ClassDataPoint): Represents a single class. data point |
91 |
|
(ClassDataRange): Represents a class. range |
92 |
|
(ClassDataMap): Represents a class. map (unused). |
93 |
|
|
94 |
|
* Thuban/Model/color.py: Added Color.None to represent something |
95 |
|
with no color. Color.Black represents the color black. |
96 |
|
(NoColor): Helper class derived from Color to represent something |
97 |
|
with no color. |
98 |
|
|
99 |
|
* Thuban/Model/layer.py (Layer): Removed references to fill, stroke, |
100 |
|
stroke_width attributes. Made the 'classification' attribute private. |
101 |
|
New methods for setting/getting the classification. |
102 |
|
|
103 |
|
* Thuban/Model/load.py (ProcessSession): Use new methods on Layer |
104 |
|
to get the classifcation and use the new ClassData* classes to |
105 |
|
hold the classification data. Use Str2Num to convert numbers |
106 |
|
properly. |
107 |
|
|
108 |
|
* Thuban/Model/save.py (Saver): Use new Color and Classification |
109 |
|
methods |
110 |
|
|
111 |
|
* Thuban/UI/classifier.py (ClassGrid): New class to represent a |
112 |
|
custom grid. |
113 |
|
(ClassTable): Support for editing Values and Labels and for |
114 |
|
changing what type (point or range) of data is stored in each |
115 |
|
property based on how the user enters the data. |
116 |
|
(Classifier): Support for saving the new classifications and |
117 |
|
launching the dialog to edit a property. |
118 |
|
(SelectPropertiesDialog): New class for editing the visual |
119 |
|
properties of a classification (stroke color, width, and fill color) |
120 |
|
(ClassPreviewer): Took the Draw method from ClassRenderer and |
121 |
|
made most of it into this new class. Intend to use this class in |
122 |
|
the SelectPropertiesDialog for previewing changes. |
123 |
|
|
124 |
|
* Thuban/UI/renderer.py: Use new Color and Classification methods. |
125 |
|
|
126 |
|
* Thuban/UI/tree.py: Formatting changes. |
127 |
|
|
128 |
|
* Doc/thuban.dtd: Add 'label' element |
129 |
|
|
130 |
|
* Thuban/common.py: New. Contains common routines used throughout |
131 |
|
the code. |
132 |
|
(Str2Num): Takes a string and converts it to the "best" type of |
133 |
|
number. |
134 |
|
|
135 |
2003-02-14 Bernhard Herzog <[email protected]> |
2003-02-14 Bernhard Herzog <[email protected]> |
136 |
|
|
137 |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |
* Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the |