Exemplo n.º 1
0
    def __init__(self, parent=None, topLevelPropertyView=False):
        logging.debug(__name__ + ": __init__")
        self._topLevelPropertyView = topLevelPropertyView
        AbstractTab.__init__(self)
        if self._topLevelPropertyView:
            QSplitter.__init__(self, Qt.Horizontal, parent)
            self._verticalSplitter = QSplitter(Qt.Vertical, self)
        else:
            QSplitter.__init__(self, Qt.Vertical, parent)
            self._verticalSplitter = self

        self._horizontalSplitter = QSplitter(Qt.Horizontal,
                                             self._verticalSplitter)

        self.connect(self._verticalSplitter, SIGNAL("splitterMoved(int, int)"),
                     self.verticalSplitterMovedSlot)
        self.connect(self._horizontalSplitter,
                     SIGNAL("splitterMoved(int, int)"),
                     self.horizontalSplitterMovedSlot)
        if self._topLevelPropertyView:
            self.connect(self, SIGNAL("splitterMoved(int, int)"),
                         self.horizontalSplitterMovedSlot)
        self._toolBar = None

        self._propertyView = None
Exemplo n.º 2
0
 def __init__(self, parent=None, topLevelPropertyView=False):
     logging.debug(__name__ + ": __init__")
     self._topLevelPropertyView=topLevelPropertyView
     AbstractTab.__init__(self)
     if self._topLevelPropertyView:
         QSplitter.__init__(self, Qt.Horizontal, parent)
         self._verticalSplitter = QSplitter(Qt.Vertical, self)
     else:
         QSplitter.__init__(self, Qt.Vertical, parent)
         self._verticalSplitter = self
     
     self._horizontalSplitter = QSplitter(Qt.Horizontal, self._verticalSplitter)
     
     self.connect(self._verticalSplitter, SIGNAL("splitterMoved(int, int)"), self.verticalSplitterMovedSlot)
     self.connect(self._horizontalSplitter, SIGNAL("splitterMoved(int, int)"), self.horizontalSplitterMovedSlot)
     if self._topLevelPropertyView:
         self.connect(self, SIGNAL("splitterMoved(int, int)"), self.horizontalSplitterMovedSlot)
     self._toolBar = None
     
     self._propertyView = None
Exemplo n.º 3
0
 def setController(self, controller):
     AbstractTab.setController(self, controller)
     if self._propertyView:
         self._propertyView.setReadOnly(not self.controller().isEditable())
         self.connect(self._propertyView, SIGNAL('valueChanged'), self.controller().setModified)