1 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
4 |
|
message. |
5 |
|
|
6 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
7 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
8 |
|
LAYER_CHANGED will still be sent if the classification changes. |
9 |
|
|
10 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
11 |
|
parameter so we can subscribe to some of its messages |
12 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
13 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
14 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
15 |
|
subscribed to in __init__ |
16 |
|
(Classifier.map_layers_removed) |
17 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
18 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
19 |
|
|
20 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
21 |
|
the map to the Classifier dialog |
22 |
|
|
23 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
24 |
|
SubscriberMixin as well so we can test messages |
25 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
26 |
|
messages |
27 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
28 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
29 |
|
for the modified flag too |
30 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
31 |
|
to check whether SetShapeStore sets the modified flag |
32 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
33 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
34 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
35 |
|
Add tests for the messages. This checks both the new |
36 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
37 |
|
|
38 |
2003-06-06 Jan-Oliver Wagner <[email protected]> |
2003-06-06 Jan-Oliver Wagner <[email protected]> |
39 |
|
|
40 |
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |