1 |
|
2002-04-29 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
4 |
|
canvas' VIEW_POSITION event |
5 |
|
(MainWindow.view_position_changed): Handler for VIEW_POSITION. |
6 |
|
Update the text in the status-bar accordingly. |
7 |
|
|
8 |
|
* Thuban/UI/view.py (MapCanvas): Derive from Publisher as well |
9 |
|
(MapCanvas.__del__): Implement because Publisher.__del__ has to be |
10 |
|
called. |
11 |
|
(MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize |
12 |
|
current_position |
13 |
|
(MapCanvas.set_current_position): New method to set |
14 |
|
current_position. Issue a VIEW_POSITION event |
15 |
|
(MapCanvas.CurrentPosition): New public method to return the value |
16 |
|
of current_position. Should be called when the VIEW_POSITION event |
17 |
|
is processed. |
18 |
|
(MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion): |
19 |
|
Update the position. |
20 |
|
(MapCanvas.OnLeaveWindow): Set the position to None. |
21 |
|
|
22 |
|
* Thuban/UI/messages.py (VIEW_POSITION): New message for the |
23 |
|
position in the statusbar |
24 |
|
|
25 |
2002-04-26 Frank Koormann <[email protected]> |
2002-04-26 Frank Koormann <[email protected]> |
26 |
|
|
27 |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |
* Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data |