1 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
4 |
|
self.selected_shape with the current selection to make sure the |
5 |
|
contents of the dialog are up to date when it's shown for the |
6 |
|
first time. |
7 |
|
The dialog used to work without this by luck. The recent fix to |
8 |
|
the connector module 'broke' a 'feature' the identify view was |
9 |
|
relying on, i.e that subscribing to a message in response to |
10 |
|
receiving a message of that type would mean that the new |
11 |
|
subscriber would also be called for the same message. |
12 |
|
|
13 |
|
2003-06-12 Jonathan Coles <[email protected]> |
14 |
|
|
15 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
16 |
|
the scalebar if the current map has no projection set. |
17 |
|
|
18 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
19 |
|
projfilepath label to just the basename of the projection file |
20 |
|
rather than include the entire path. |
21 |
|
|
22 |
|
2003-06-11 Frank Koormann <[email protected]> |
23 |
|
|
24 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
25 |
|
update. |
26 |
|
|
27 |
|
2003-06-11 Frank Koormann <[email protected]> |
28 |
|
|
29 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
30 |
|
determine the absolute .thuban/thuban directory under |
31 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
32 |
|
|
33 |
|
* Thuban/Model/resource.py: Use get_application_dir |
34 |
|
|
35 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
36 |
|
Use get_application_dir. |
37 |
|
|
38 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
39 |
|
|
40 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
41 |
|
the messages MAP_LAYERS_REMOVED messages |
42 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
43 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
44 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
45 |
|
dialog is showing is removed. |
46 |
|
|
47 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
50 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
51 |
|
modify it while iterating over it. |
52 |
|
|
53 |
|
* test/test_connector.py |
54 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
55 |
|
unsubscribing in a receiver works correctly. See docstring for |
56 |
|
details |
57 |
|
|
58 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
61 |
|
message. |
62 |
|
|
63 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
64 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
65 |
|
LAYER_CHANGED will still be sent if the classification changes. |
66 |
|
|
67 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
68 |
|
parameter so we can subscribe to some of its messages |
69 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
70 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
71 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
72 |
|
subscribed to in __init__ |
73 |
|
(Classifier.map_layers_removed) |
74 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
75 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
76 |
|
|
77 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
78 |
|
the map to the Classifier dialog |
79 |
|
|
80 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
81 |
|
SubscriberMixin as well so we can test messages |
82 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
83 |
|
messages |
84 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
85 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
86 |
|
for the modified flag too |
87 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
88 |
|
to check whether SetShapeStore sets the modified flag |
89 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
90 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
91 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
92 |
|
Add tests for the messages. This checks both the new |
93 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
94 |
|
|
95 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
96 |
|
|
97 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
98 |
|
the menu items. |
99 |
|
|
100 |
|
2003-06-05 Frank Koormann <[email protected]> |
101 |
|
|
102 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
103 |
|
Layout reimplemented without panel. Make life easier to fit the list |
104 |
|
in the dialog. |
105 |
|
|
106 |
|
2003-06-05 Frank Koormann <[email protected]> |
107 |
|
|
108 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
109 |
|
once on initialisation (Former implementation resulted in multiple |
110 |
|
entries for each projection). |
111 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
112 |
|
if set, select the projection found under the specified name. This |
113 |
|
overwrites any other selection estimate. |
114 |
|
Removed projchoice filling from this method. |
115 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
116 |
|
Updated call of ProjFrame.__FillAvailList |
117 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
118 |
|
|
119 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
120 |
|
various common European projections. |
121 |
|
|
122 |
2003-06-05 Frank Koormann <[email protected]> |
2003-06-05 Frank Koormann <[email protected]> |
123 |
|
|
124 |
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
* Thuban/UI/identifyview.py (IdentifyView.__init__): |