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