1 |
|
2003-07-18 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_export.py Remove unused imports. The OutputTransform |
4 |
|
function is now in viewport.py and is called output_transform |
5 |
|
(TestScalebar.test_output_transform) |
6 |
|
(TestScalebar.test_OutputTransform): Renamed to |
7 |
|
test_output_transform and updated to use output_transform instead |
8 |
|
of OutputTransform |
9 |
|
|
10 |
|
* Thuban/UI/view.py (OutputTransform): Moved to viewport.py and |
11 |
|
renamed. |
12 |
|
(MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was |
13 |
|
renamed to output_transform |
14 |
|
|
15 |
|
* Thuban/UI/viewport.py (OutputTransform, output_transform): |
16 |
|
Rename to output_transform |
17 |
|
|
18 |
|
2003-07-18 Bernhard Herzog <[email protected]> |
19 |
|
|
20 |
|
* Thuban/Model/layer.py (Layer.__init__): Rename |
21 |
|
classificationField to classificatin_column and init it here so |
22 |
|
that it can be used in SetClassificationColumn |
23 |
|
(Layer.GetClassificationColumn, Layer.GetClassificationField): |
24 |
|
Rename to GetClassificationColumn. |
25 |
|
(Layer.SetClassificationColumn, Layer.SetClassificationField): |
26 |
|
Rename to SetClassificationColumn and issue a LAYER_CHANGED |
27 |
|
message if the column changes. |
28 |
|
(Layer._classification_changed, Layer.ClassChanged): Rename to |
29 |
|
_classification_changed. Update the callers. |
30 |
|
(Layer.SetShapeStore): Further field->column renames. |
31 |
|
|
32 |
|
* Thuban/Model/load.py (SessionLoader.start_classification) |
33 |
|
(SessionLoader.start_clpoint): Updates because of |
34 |
|
field->column method name changes in the Layer class |
35 |
|
|
36 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Updates |
37 |
|
because of field->column method name changes in the Layer class |
38 |
|
|
39 |
|
* Thuban/UI/classifier.py (Classifier.__init__) |
40 |
|
(Classifier._OnTry, Classifier._OnRevert): Updates because of |
41 |
|
field->column method name changes in the Layer class |
42 |
|
|
43 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates |
44 |
|
because of field->column method name changes in the Layer class |
45 |
|
|
46 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because |
47 |
|
of field->column method name changes in the Layer class |
48 |
|
|
49 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer) |
50 |
|
(SaveSessionTest.testClassifiedLayer): Update because of |
51 |
|
field->column method name changes in the Layer class |
52 |
|
|
53 |
|
* test/test_layer.py (SetShapeStoreTests.setUp) |
54 |
|
(SetShapeStoreTests.test_sanity): Update because of field->column |
55 |
|
method name changes in the Layer class |
56 |
|
(TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well |
57 |
|
(TestLayerModification.test_sanity) |
58 |
|
(TestLayerModification.test_initial_settings): remove unsued code |
59 |
|
and rename to test_sanity. |
60 |
|
(TestLayerModification.test_set_classification): New test for |
61 |
|
SetClassification and SetClassificationField. |
62 |
|
|
63 |
|
2003-07-18 Bernhard Herzog <[email protected]> |
64 |
|
|
65 |
|
* test/test_classgen.py (TestFixedRamp.test): Extend test to check |
66 |
|
the non-fixed values as well. The old test would have accepted a |
67 |
|
fixed ramp that only returnes the fixed properties |
68 |
|
|
69 |
|
2003-07-17 Jonathan Coles <[email protected]> |
70 |
|
|
71 |
|
* Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen |
72 |
|
shots for the manual. The XCF file is the source image and |
73 |
|
has additional layers to support changes. |
74 |
|
|
75 |
|
* Doc/manual/thuban-manual.xml: Wrote an initial Introduction. |
76 |
|
|
77 |
|
* Thuban/UI/classifier.py (Classifier.__BuildClassification): |
78 |
|
Return both the new class and the field name. |
79 |
|
|
80 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't |
81 |
|
fit the map to the window as this changes any zoom level that |
82 |
|
the user may have set. |
83 |
|
|
84 |
|
2003-07-16 Jonathan Coles <[email protected]> |
85 |
|
|
86 |
|
* Thuban/Model/classgen.py (generate_singletons, |
87 |
|
generate_uniform_distribution, generate_quantiles): Remove |
88 |
|
fixes parameter, but maintain the same functionality by having |
89 |
|
the calling function pass a FixedRamp object for the ramp. |
90 |
|
(FixedRamp): New. Adapts a ramp to have fixed property values. |
91 |
|
|
92 |
|
* Thuban/Model/classification.py: Use new CLASS_CHANGED message. |
93 |
|
(Classification): Inherit from Publisher. |
94 |
|
(Classification.__init__): Remove the layer parameter. |
95 |
|
Classifications no longer need to have a parent layer. |
96 |
|
(Classification.GetField, Classification.GetFieldType, |
97 |
|
Classification.SetFieldInfo): Removed. The field name is stored |
98 |
|
in the layer, and the type can be retreived by calling |
99 |
|
Layer.GetFieldType(). |
100 |
|
(Classification._set_layer, Classification.GetLayer): Removed. |
101 |
|
Classifications no longer have a parent layer. |
102 |
|
|
103 |
|
* Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the |
104 |
|
classification. |
105 |
|
(Layer.SetShapeStore): Reset the classification first while |
106 |
|
we still have the old shape store to work with. |
107 |
|
(Layer.GetClassificationField, Layer.SetClassificationField): |
108 |
|
New. Method for getting/setting the field to classify on. |
109 |
|
(Layer.SetClassification): Simplified now that the layer |
110 |
|
simply has to hold a reference to the classification and not |
111 |
|
tell the classification who owns it. |
112 |
|
Fixes RTbug #2023. |
113 |
|
|
114 |
|
* Thuban/Model/load.py (SessionLoader.start_classification): |
115 |
|
Set the field name on the layer, not the classification. |
116 |
|
|
117 |
|
* Thuban/Model/messages.py: Add CLASS_CHANGED for when a |
118 |
|
classification is modified. |
119 |
|
|
120 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
121 |
|
Get the field name and type from the layer. |
122 |
|
|
123 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed |
124 |
|
parameter records to rows and add docstring. Fixes RTbug #1997. |
125 |
|
|
126 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed |
127 |
|
ramp when we need to fix certain values of a ramp rather than |
128 |
|
using the old fixes parameter. Fixes RTbug #2024. |
129 |
|
|
130 |
|
* Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType |
131 |
|
parameter. |
132 |
|
(ClassTable.Reset): Add fieldType parameter and use it, rather |
133 |
|
than asking the classification. |
134 |
|
(Classifier.__init__): Remember the original class's field |
135 |
|
and ask the layer for the field type, rather than the classification. |
136 |
|
(Classifier.__SetGridTable): Retrieve the field and field type |
137 |
|
for the table because they are not in the classification. |
138 |
|
(Classifier._OnTry, Classifier._OnRevert): Set the classification |
139 |
|
field on the layer in addition to the classification itself. |
140 |
|
|
141 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the |
142 |
|
classification field from layer. |
143 |
|
|
144 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the |
145 |
|
classification field from layer. Split up tests and remove |
146 |
|
*-imports. Fixes RTbug #1992. |
147 |
|
|
148 |
|
* test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class. |
149 |
|
|
150 |
|
* test/test_classification.py |
151 |
|
(TestClassification.test_classification): Remove tests for methods |
152 |
|
that no longer exist. |
153 |
|
|
154 |
|
* test/test_layer.py (SetShapeStoreTests.setUp): Classification |
155 |
|
__init__ no longer has a field parameter, use SetClassificationField. |
156 |
|
(SetShapeStoreTests.test_sanity): Use layer object to get class |
157 |
|
field info. |
158 |
|
|
159 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Use |
160 |
|
SetClassificationField on layer to set class field info. |
161 |
|
|
162 |
|
* test/test_viewport.py: Renamed from test/test_view.py. |
163 |
|
|
164 |
2003-07-16 Jan-Oliver Wagner <[email protected]> |
2003-07-16 Jan-Oliver Wagner <[email protected]> |
165 |
|
|
166 |
* Doc/manual/thuban-manual.xml: Added authors and an initial |
* Doc/manual/thuban-manual.xml: Added authors and an initial |