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