35 |
import view |
import view |
36 |
import tree |
import tree |
37 |
import tableview, identifyview |
import tableview, identifyview |
|
from Thuban.UI.classifier import Classifier |
|
38 |
import legend |
import legend |
39 |
from menu import Menu |
from menu import Menu |
40 |
|
|
52 |
|
|
53 |
import projdialog |
import projdialog |
54 |
|
|
55 |
|
from Thuban.Lib.classmapper import ClassMapper |
56 |
|
|
57 |
|
layer_properties_dialogs = ClassMapper() |
58 |
|
|
59 |
class MainWindow(DockFrame): |
class MainWindow(DockFrame): |
60 |
|
|
653 |
layer.ShapeStore(), |
layer.ShapeStore(), |
654 |
projection = layer.GetProjection()) |
projection = layer.GetProjection()) |
655 |
new_classification = copy.deepcopy(layer.GetClassification()) |
new_classification = copy.deepcopy(layer.GetClassification()) |
656 |
|
new_layer.SetClassificationColumn( |
657 |
|
layer.GetClassificationColumn()) |
658 |
new_layer.SetClassification(new_classification) |
new_layer.SetClassification(new_classification) |
659 |
self.Map().AddLayer(new_layer) |
self.Map().AddLayer(new_layer) |
660 |
|
|
733 |
currently selected layer if one is defined for this layer |
currently selected layer if one is defined for this layer |
734 |
type. |
type. |
735 |
""" |
""" |
736 |
name = "layer_properties" + str(id(layer)) |
dialog_class = layer_properties_dialogs.get(layer) |
737 |
self.OpenOrRaiseDialog(name, Classifier, layer, group = group) |
|
738 |
|
if dialog_class is not None: |
739 |
|
name = "layer_properties" + str(id(layer)) |
740 |
|
self.OpenOrRaiseDialog(name, dialog_class, layer, group = group) |
741 |
|
|
742 |
def LayerJoinTable(self): |
def LayerJoinTable(self): |
743 |
layer = self.canvas.SelectedLayer() |
layer = self.canvas.SelectedLayer() |
744 |
if layer is not None: |
if layer is not None: |