* Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
(MainWindow.add_dialog):
(MainWindow.dialog_open):
(MainWindow.remove_dialog):
(MainWindow.get_open_dialog): New methods to maintain a dictionary
of opened non-modal dialogs.
(MainWindow.__init__): Initialize the new non-modal dictionary
management code
(MainWindow.LayerShowTable): maintain separate dialogs for each
table using the non-modal dialog management code to only open a
view once for each table.
(MainWindow.IdentifyTool):
(MainWindow.__init__):
(MainWindow.identify_view_on_demand): Don't open the identify view
in IdentifyTool anymore. This will be done automatically by the
new method identify_view_on_demand which handles the
SELECTED_SHAPE message so that the identify view will be opened on
demand
|