685 |
FIELDTYPE_INT: _("Integer"), |
FIELDTYPE_INT: _("Integer"), |
686 |
FIELDTYPE_DOUBLE: _("Decimal")} |
FIELDTYPE_DOUBLE: _("Decimal")} |
687 |
|
|
688 |
def __init__(self, parent, name, map, layer, group = None): |
def __init__(self, parent, name, layer, group = None): |
689 |
"""Create a Properties/Classification dialog for a layer. |
"""Create a Properties/Classification dialog for a layer. |
690 |
The layer is part of map. If group is not None, select that |
The layer is part of map. If group is not None, select that |
691 |
group in the classification table. |
group in the classification table. |
697 |
|
|
698 |
self.parent.Subscribe(MAP_REPLACED, self.map_replaced) |
self.parent.Subscribe(MAP_REPLACED, self.map_replaced) |
699 |
self.layer = layer |
self.layer = layer |
700 |
self.map = map |
self.map = parent.Map() |
701 |
|
|
702 |
self.map.Subscribe(MAP_LAYERS_REMOVED, self.map_layers_removed) |
self.map.Subscribe(MAP_LAYERS_REMOVED, self.map_layers_removed) |
703 |
self.layer.Subscribe(LAYER_SHAPESTORE_REPLACED, |
self.layer.Subscribe(LAYER_SHAPESTORE_REPLACED, |