1 |
|
2001-09-06 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/dialogs.py: New file implementing common classes for |
4 |
|
dialogs |
5 |
|
|
6 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to |
7 |
|
the SELECTED_SHAPE message anymore. This is now handled by the |
8 |
|
parent. |
9 |
|
(TableGrid.select_shape): Only update the selection if the shape |
10 |
|
is not None. |
11 |
|
(TableFrame): Inherit from the new NonModalDialog class. |
12 |
|
(TableFrame.__init__, TableFrame.select_shape): Handle the |
13 |
|
SELECT_SHAPE message. |
14 |
|
(TableFrame.OnClose): Extend the inherited method to unsubscribe |
15 |
|
SELECT_SHAPE |
16 |
|
|
17 |
|
* Thuban/UI/mainwindow.py (MainWindow.init_dialogs): |
18 |
|
(MainWindow.add_dialog): |
19 |
|
(MainWindow.dialog_open): |
20 |
|
(MainWindow.remove_dialog): |
21 |
|
(MainWindow.get_open_dialog): New methods to maintain a dictionary |
22 |
|
of opened non-modal dialogs. |
23 |
|
|
24 |
|
(MainWindow.__init__): Initialize the new non-modal dictionary |
25 |
|
management code |
26 |
|
(MainWindow.LayerShowTable): maintain separate dialogs for each |
27 |
|
table using the non-modal dialog management code to only open a |
28 |
|
view once for each table. |
29 |
|
|
30 |
|
(MainWindow.IdentifyTool): |
31 |
|
(MainWindow.__init__): |
32 |
|
(MainWindow.identify_view_on_demand): Don't open the identify view |
33 |
|
in IdentifyTool anymore. This will be done automatically by the |
34 |
|
new method identify_view_on_demand which handles the |
35 |
|
SELECTED_SHAPE message so that the identify view will be opened on |
36 |
|
demand |
37 |
|
|
38 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove |
39 |
|
the interactor argument. The SELECTED_SHAPE message is now handled |
40 |
|
by the parent. |
41 |
|
(IdentifyView.__init__): Add the interactor argument so that we |
42 |
|
can handle the SELECTED_SHAPE message here |
43 |
|
(IdentifyView.selected_shape): New method to handle the |
44 |
|
SELECTED_SHAPE messages |
45 |
|
|
46 |
|
* Thuban/UI/identifyview.py (IdentifyView): Derive from the new |
47 |
|
NonModalDialog class |
48 |
|
(IdentifyView.OnClose): Extend the inherited version to |
49 |
|
unsubscribe SELECT_SHAPE |
50 |
|
|
51 |
|
* Thuban/Model/session.py (Session.UnsetModified): Remove debug prints |
52 |
|
|
53 |
2001-09-05 Bernhard Herzog <[email protected]> |
2001-09-05 Bernhard Herzog <[email protected]> |
54 |
|
|
55 |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |
* Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor. |