1 |
2003-10-06 Bernhard Herzog <[email protected]> |
2003-10-06 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Handle the title changes in a proper MVC way. |
4 |
|
|
5 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
6 |
|
canvas' TITLE_CHANGED messages |
7 |
|
(MainWindow.update_title): New. Update the main window's title |
8 |
|
(MainWindow.__SetTitle): Removed. Use update_title instead. |
9 |
|
(MainWindow.SetMap): Use update_title instead of __SetTitle |
10 |
|
(MainWindow.RenameMap): Do change the window title explicitly |
11 |
|
here. That's handled in a proper MVC way now. |
12 |
|
(MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED |
13 |
|
messages |
14 |
|
|
15 |
|
* Thuban/Lib/connector.py (Conduit): New class to help classes |
16 |
|
that forward messages |
17 |
|
|
18 |
|
* Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages |
19 |
|
(ViewPort): Derive from Conduit instead of Publisher |
20 |
|
(ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class |
21 |
|
when calling the inherited versions |
22 |
|
(ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper |
23 |
|
methods to subscribe and unsubscribe map messages |
24 |
|
(ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to |
25 |
|
handle the map subscriptions |
26 |
|
(ViewPort.Map, ViewPort.map_projection_changed) |
27 |
|
(ViewPort.layer_projection_changed): Add or update doc-strings |
28 |
|
|
29 |
|
* test/test_connector.py (TestPublisher.test_issue_simple): Fix |
30 |
|
typo |
31 |
|
(MyConduit): Helper class for the Conduit test. |
32 |
|
(TestConduit): Test cases for Conduit |
33 |
|
|
34 |
|
* test/test_connector.py: Use support.run_tests as main. |
35 |
|
|
36 |
|
* test/test_viewport.py (ViewPortTest.setUp): Also subscribe to |
37 |
|
the TITLE_CHANGED messages |
38 |
|
(ViewPortTest.test_forwarding_title_changed): New test to check |
39 |
|
whether the viewport forwards the map's TITLE_CHANGED messages |
40 |
|
(TestViewportWithPostGIS.tearDown): Call the map's Destroy method |
41 |
|
after the port's because the latter may require a still functional |
42 |
|
map. |
43 |
|
|
44 |
|
2003-10-06 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
* Thuban/UI/application.py (ThubanApplication.maps_changed): Add |
47 |
doc-string |
doc-string |
48 |
|
|