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 |
|
|
731 |
currently selected layer if one is defined for this layer |
currently selected layer if one is defined for this layer |
732 |
type. |
type. |
733 |
""" |
""" |
734 |
name = "layer_properties" + str(id(layer)) |
dialog_class = layer_properties_dialogs.get(layer) |
735 |
self.OpenOrRaiseDialog(name, Classifier, layer, group = group) |
|
736 |
|
if dialog_class is not None: |
737 |
|
name = "layer_properties" + str(id(layer)) |
738 |
|
self.OpenOrRaiseDialog(name, dialog_class, layer, group = group) |
739 |
|
|
740 |
def LayerJoinTable(self): |
def LayerJoinTable(self): |
741 |
layer = self.canvas.SelectedLayer() |
layer = self.canvas.SelectedLayer() |
742 |
if layer is not None: |
if layer is not None: |