1 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
4 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
5 |
|
modify it while iterating over it. |
6 |
|
|
7 |
|
* test/test_connector.py |
8 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
9 |
|
unsubscribing in a receiver works correctly. See docstring for |
10 |
|
details |
11 |
|
|
12 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
13 |
|
|
14 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
15 |
|
message. |
16 |
|
|
17 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
18 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
19 |
|
LAYER_CHANGED will still be sent if the classification changes. |
20 |
|
|
21 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
22 |
|
parameter so we can subscribe to some of its messages |
23 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
24 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
25 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
26 |
|
subscribed to in __init__ |
27 |
|
(Classifier.map_layers_removed) |
28 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
29 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
30 |
|
|
31 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
32 |
|
the map to the Classifier dialog |
33 |
|
|
34 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
35 |
|
SubscriberMixin as well so we can test messages |
36 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
37 |
|
messages |
38 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
39 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
40 |
|
for the modified flag too |
41 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
42 |
|
to check whether SetShapeStore sets the modified flag |
43 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
44 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
45 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
46 |
|
Add tests for the messages. This checks both the new |
47 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
48 |
|
|
49 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
50 |
|
|
51 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
52 |
|
the menu items. |
53 |
|
|
54 |
|
2003-06-05 Frank Koormann <[email protected]> |
55 |
|
|
56 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
57 |
|
Layout reimplemented without panel. Make life easier to fit the list |
58 |
|
in the dialog. |
59 |
|
|
60 |
|
2003-06-05 Frank Koormann <[email protected]> |
61 |
|
|
62 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
63 |
|
once on initialisation (Former implementation resulted in multiple |
64 |
|
entries for each projection). |
65 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
66 |
|
if set, select the projection found under the specified name. This |
67 |
|
overwrites any other selection estimate. |
68 |
|
Removed projchoice filling from this method. |
69 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
70 |
|
Updated call of ProjFrame.__FillAvailList |
71 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
72 |
|
|
73 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
74 |
|
various common European projections. |
75 |
|
|
76 |
|
2003-06-05 Frank Koormann <[email protected]> |
77 |
|
|
78 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
79 |
|
Use ListCtrl instead of GridCtrl |
80 |
|
|
81 |
|
* Thuban/Model/resource.py: |
82 |
|
Guess location of .thuban directory from tempdir parent directory. |
83 |
|
|
84 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
85 |
|
Guess location of .thuban directory from tempdir parent directory. |
86 |
|
|
87 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
88 |
|
|
89 |
|
Do not cache the values returned by the tree widget's |
90 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
91 |
|
segfaults. The new way requires more brute force but is more |
92 |
|
reliable. |
93 |
|
|
94 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
95 |
|
variable layer2id |
96 |
|
(LegendTree.find_layer): New method to do with brute force what |
97 |
|
layer2id tried to accomplish |
98 |
|
(LegendTree._OnMsgLayerChanged) |
99 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
100 |
|
Use find_layer instead of layer2id |
101 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
102 |
|
update layer2id anymore |
103 |
|
(LegendTree._OnMsgMapLayersRemoved) |
104 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
105 |
|
|
106 |
|
2003-06-03 Thomas Koester <[email protected]> |
107 |
|
|
108 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
109 |
|
|
110 |
2003-06-02 Bernhard Herzog <[email protected]> |
2003-06-02 Bernhard Herzog <[email protected]> |
111 |
|
|
112 |
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |