29 |
from Thuban import _ |
from Thuban import _ |
30 |
from Thuban.Model.session import create_empty_session |
from Thuban.Model.session import create_empty_session |
31 |
from Thuban.Model.layer import Layer, RasterLayer |
from Thuban.Model.layer import Layer, RasterLayer |
|
from Thuban.Model.color import Color |
|
|
from Thuban.Model.proj import Projection |
|
32 |
|
|
33 |
import view |
import view |
34 |
import tree |
import tree |
|
import proj4dialog |
|
35 |
import tableview, identifyview |
import tableview, identifyview |
36 |
from Thuban.UI.classifier import Classifier |
from Thuban.UI.classifier import Classifier |
37 |
import legend |
import legend |
666 |
self.ShowTableView(table) |
self.ShowTableView(table) |
667 |
|
|
668 |
def TableClose(self): |
def TableClose(self): |
669 |
print "TableClose: not implemented" |
tables = self.application.session.UnreferencedTables() |
670 |
|
|
671 |
|
dlg = wxMultipleChoiceDialog(self, _("Pick the tables to close:"), |
672 |
|
_("Close Table"), |
673 |
|
[t.Title() for t in tables], |
674 |
|
size = (400, 300), style=wxRESIZE_BORDER) |
675 |
|
if dlg.ShowModal() == wxID_OK: |
676 |
|
for i in dlg.GetValue(): |
677 |
|
self.application.session.RemoveTable(tables[i]) |
678 |
|
|
679 |
|
|
680 |
def TableShow(self): |
def TableShow(self): |
681 |
"""Offer a multi-selection dialog for tables to be displayed |
"""Offer a multi-selection dialog for tables to be displayed |