/[thuban]
ViewVC logotype

Revision 1464


Jump to revision: Previous Next
Author: bh
Date: Fri Jul 18 18:20:40 2003 UTC (21 years, 7 months ago)
Changed paths: 5
Log Message:
* Thuban/UI/messages.py (MAP_REPLACED): New message.

* Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
after the new map has been assigned

* Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
Delegate MAP_REPLACED to the canvas too
(MainWindow.prepare_new_session): Removed. Thanks to the new
MAP_REPLACED message it's no longer needed
(MainWindow.OpenSession, MainWindow.NewSession):
prepare_new_session has been removed.

* Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
MAP_REPLACED so that we can close the dialog if a new map is set.
(Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
(Classifier.map_replaced): Handle MAP_REPLACED by closing the
dialog

* test/test_viewport.py (SimpleViewPortTest)
(SimpleViewPortTest.test_default_size): Add doc-strings
(ViewPortTest.setUp): Bind map to self.map so we can use it in
tests. Subscribe to MAP_REPLACED messages too.
(ViewPortTest.tearDown): No need to explicitly unsubscribe
(ViewPortTest.test_set_map): New test for the SetMap method.


Changed paths

Path Details
Directorytrunk/thuban/Thuban/UI/classifier.py modified , text changed
Directorytrunk/thuban/Thuban/UI/mainwindow.py modified , text changed
Directorytrunk/thuban/Thuban/UI/messages.py modified , text changed
Directorytrunk/thuban/Thuban/UI/viewport.py modified , text changed
Directorytrunk/thuban/test/test_viewport.py modified , text changed

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26