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