|
#! /usr/bin/python |
|
1 |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
# Copyright (c) 2001, 2002, 2003 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Jan-Oliver Wagner <[email protected]> |
# Jan-Oliver Wagner <[email protected]> |
21 |
from Thuban.Model.layer import Layer |
from Thuban.Model.layer import Layer |
22 |
from Thuban.Model.map import Map |
from Thuban.Model.map import Map |
23 |
|
|
24 |
from dialogs import NonModalDialog |
from dialogs import NonModalNonParentDialog |
25 |
from messages import SESSION_REPLACED, LAYER_SELECTED |
from messages import SESSION_REPLACED, LAYER_SELECTED |
26 |
|
|
27 |
BMP_SIZE = 15 |
BMP_SIZE = 15 |
218 |
self.SelectItem(item) |
self.SelectItem(item) |
219 |
|
|
220 |
|
|
221 |
class SessionTreeView(NonModalDialog): |
class SessionTreeView(NonModalNonParentDialog): |
222 |
|
|
223 |
"""Non modal dialog showing the session as a tree""" |
"""Non modal dialog showing the session as a tree""" |
224 |
|
|
225 |
def __init__(self, parent, app, name): |
def __init__(self, parent, app, name): |
226 |
NonModalDialog.__init__(self, parent, name, _("Session")) |
NonModalNonParentDialog.__init__(self, parent, name, _("Session")) |
227 |
self.tree = SessionTreeCtrl(self, -1, parent, app) |
self.tree = SessionTreeCtrl(self, -1, parent, app) |
228 |
|
|
229 |
def OnClose(self, event): |
def OnClose(self, event): |
230 |
NonModalDialog.OnClose(self, event) |
NonModalNonParentDialog.OnClose(self, event) |
231 |
|
|
232 |
# if there were a way to get notified when the tree control |
# if there were a way to get notified when the tree control |
233 |
# itself is destroyed we could use that to unsubscribe instead |
# itself is destroyed we could use that to unsubscribe instead |