1 |
|
2003-07-18 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_classgen.py (TestFixedRamp.test): Extend test to check |
4 |
|
the non-fixed values as well. The old test would have accepted a |
5 |
|
fixed ramp that only returnes the fixed properties |
6 |
|
|
7 |
|
2003-07-17 Jonathan Coles <[email protected]> |
8 |
|
|
9 |
|
* Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen |
10 |
|
shots for the manual. The XCF file is the source image and |
11 |
|
has additional layers to support changes. |
12 |
|
|
13 |
|
* Doc/manual/thuban-manual.xml: Wrote an initial Introduction. |
14 |
|
|
15 |
|
* Thuban/UI/classifier.py (Classifier.__BuildClassification): |
16 |
|
Return both the new class and the field name. |
17 |
|
|
18 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't |
19 |
|
fit the map to the window as this changes any zoom level that |
20 |
|
the user may have set. |
21 |
|
|
22 |
|
2003-07-16 Jonathan Coles <[email protected]> |
23 |
|
|
24 |
|
* Thuban/Model/classgen.py (generate_singletons, |
25 |
|
generate_uniform_distribution, generate_quantiles): Remove |
26 |
|
fixes parameter, but maintain the same functionality by having |
27 |
|
the calling function pass a FixedRamp object for the ramp. |
28 |
|
(FixedRamp): New. Adapts a ramp to have fixed property values. |
29 |
|
|
30 |
|
* Thuban/Model/classification.py: Use new CLASS_CHANGED message. |
31 |
|
(Classification): Inherit from Publisher. |
32 |
|
(Classification.__init__): Remove the layer parameter. |
33 |
|
Classifications no longer need to have a parent layer. |
34 |
|
(Classification.GetField, Classification.GetFieldType, |
35 |
|
Classification.SetFieldInfo): Removed. The field name is stored |
36 |
|
in the layer, and the type can be retreived by calling |
37 |
|
Layer.GetFieldType(). |
38 |
|
(Classification._set_layer, Classification.GetLayer): Removed. |
39 |
|
Classifications no longer have a parent layer. |
40 |
|
|
41 |
|
* Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the |
42 |
|
classification. |
43 |
|
(Layer.SetShapeStore): Reset the classification first while |
44 |
|
we still have the old shape store to work with. |
45 |
|
(Layer.GetClassificationField, Layer.SetClassificationField): |
46 |
|
New. Method for getting/setting the field to classify on. |
47 |
|
(Layer.SetClassification): Simplified now that the layer |
48 |
|
simply has to hold a reference to the classification and not |
49 |
|
tell the classification who owns it. |
50 |
|
Fixes RTbug #2023. |
51 |
|
|
52 |
|
* Thuban/Model/load.py (SessionLoader.start_classification): |
53 |
|
Set the field name on the layer, not the classification. |
54 |
|
|
55 |
|
* Thuban/Model/messages.py: Add CLASS_CHANGED for when a |
56 |
|
classification is modified. |
57 |
|
|
58 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): |
59 |
|
Get the field name and type from the layer. |
60 |
|
|
61 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed |
62 |
|
parameter records to rows and add docstring. Fixes RTbug #1997. |
63 |
|
|
64 |
|
* Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed |
65 |
|
ramp when we need to fix certain values of a ramp rather than |
66 |
|
using the old fixes parameter. Fixes RTbug #2024. |
67 |
|
|
68 |
|
* Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType |
69 |
|
parameter. |
70 |
|
(ClassTable.Reset): Add fieldType parameter and use it, rather |
71 |
|
than asking the classification. |
72 |
|
(Classifier.__init__): Remember the original class's field |
73 |
|
and ask the layer for the field type, rather than the classification. |
74 |
|
(Classifier.__SetGridTable): Retrieve the field and field type |
75 |
|
for the table because they are not in the classification. |
76 |
|
(Classifier._OnTry, Classifier._OnRevert): Set the classification |
77 |
|
field on the layer in addition to the classification itself. |
78 |
|
|
79 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the |
80 |
|
classification field from layer. |
81 |
|
|
82 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the |
83 |
|
classification field from layer. Split up tests and remove |
84 |
|
*-imports. Fixes RTbug #1992. |
85 |
|
|
86 |
|
* test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class. |
87 |
|
|
88 |
|
* test/test_classification.py |
89 |
|
(TestClassification.test_classification): Remove tests for methods |
90 |
|
that no longer exist. |
91 |
|
|
92 |
|
* test/test_layer.py (SetShapeStoreTests.setUp): Classification |
93 |
|
__init__ no longer has a field parameter, use SetClassificationField. |
94 |
|
(SetShapeStoreTests.test_sanity): Use layer object to get class |
95 |
|
field info. |
96 |
|
|
97 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Use |
98 |
|
SetClassificationField on layer to set class field info. |
99 |
|
|
100 |
|
* test/test_viewport.py: Renamed from test/test_view.py. |
101 |
|
|
102 |
2003-07-16 Jan-Oliver Wagner <[email protected]> |
2003-07-16 Jan-Oliver Wagner <[email protected]> |
103 |
|
|
104 |
* Doc/manual/thuban-manual.xml: Added authors and an initial |
* Doc/manual/thuban-manual.xml: Added authors and an initial |