31 |
from Thuban.Model.layer import Layer, RasterLayer, \ |
from Thuban.Model.layer import Layer, RasterLayer, \ |
32 |
SHAPETYPE_ARC, SHAPETYPE_POLYGON, SHAPETYPE_POINT |
SHAPETYPE_ARC, SHAPETYPE_POLYGON, SHAPETYPE_POINT |
33 |
|
|
34 |
from Thuban.UI.classgen import ClassGenDialog, ClassGenerator |
from Thuban.UI.classgen import ClassGenDialog |
35 |
|
|
36 |
from dialogs import NonModalDialog |
from dialogs import NonModalNonParentDialog |
37 |
|
|
38 |
ID_CLASS_TABLE = 40011 |
ID_CLASS_TABLE = 40011 |
39 |
|
|
670 |
EB_SELECT_FIELD = 1 |
EB_SELECT_FIELD = 1 |
671 |
EB_GEN_CLASS = 2 |
EB_GEN_CLASS = 2 |
672 |
|
|
673 |
class Classifier(NonModalDialog): |
class Classifier(NonModalNonParentDialog): |
674 |
|
|
675 |
type2string = {None: _("None"), |
type2string = {None: _("None"), |
676 |
FIELDTYPE_STRING: _("Text"), |
FIELDTYPE_STRING: _("Text"), |
678 |
FIELDTYPE_DOUBLE: _("Decimal")} |
FIELDTYPE_DOUBLE: _("Decimal")} |
679 |
|
|
680 |
def __init__(self, parent, name, layer, group = None): |
def __init__(self, parent, name, layer, group = None): |
681 |
NonModalDialog.__init__(self, parent, name, "") |
NonModalNonParentDialog.__init__(self, parent, name, "") |
682 |
|
|
683 |
self.__SetTitle(layer.Title()) |
self.__SetTitle(layer.Title()) |
684 |
|
|
989 |
self.Close() |
self.Close() |
990 |
|
|
991 |
def OnClose(self, event): |
def OnClose(self, event): |
992 |
NonModalDialog.OnClose(self, event) |
NonModalNonParentDialog.OnClose(self, event) |
993 |
|
|
994 |
def _OnCloseBtn(self, event): |
def _OnCloseBtn(self, event): |
995 |
"""Close is similar to Cancel except that any changes that were |
"""Close is similar to Cancel except that any changes that were |