def visibility_changed(self, visible): QVistrailsPaletteInterface.visibility_changed(self, visible) if visible: self.shell.show() else: self.shell.hide()
def __init__(self, controller=None, parent=None): """ QMashupsInspector(controller: MashupController, parent: QWidget) -> QMashupsInspector """ QtGui.QFrame.__init__(self, parent) QVistrailsPaletteInterface.__init__(self) #print "****** Inspector INIT" self.set_title("Mashups Inspector") self.setFrameStyle(QtGui.QFrame.Panel|QtGui.QFrame.Sunken) self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) #ok, this will store the original vistrail controller self.controller = controller self.mshpController = None #MashupController self.manager = MashupsManager.getInstance() layout = QtGui.QVBoxLayout() layout.setMargin(2) layout.setSpacing(3) self.workflowLabel = QtGui.QLabel("Workflow: ") layout.addWidget(self.workflowLabel) self.mashupsList = QMashupsListPanel(parent=self) listLabel = QtGui.QLabel("Available Mashups:") layout.addWidget(listLabel) layout.addWidget(self.mashupsList) self.mashupInspector = QMashupProp(parent=self) inspector_group = QtGui.QGroupBox("Mashup properties") g_layout = QtGui.QVBoxLayout() g_layout.setMargin(1) g_layout.setSpacing(3) g_layout.addWidget(self.mashupInspector) inspector_group.setLayout(g_layout) layout.addWidget(inspector_group) self.setLayout(layout)
def __init__(self, controller=None, parent=None): """ QMashupsInspector(controller: MashupController, parent: QWidget) -> QMashupsInspector """ QtGui.QFrame.__init__(self, parent) QVistrailsPaletteInterface.__init__(self) #print "****** Inspector INIT" self.set_title("Mashups Inspector") self.setFrameStyle(QtGui.QFrame.Panel | QtGui.QFrame.Sunken) self.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) #ok, this will store the original vistrail controller self.controller = controller self.mshpController = None #MashupController self.manager = MashupsManager.getInstance() layout = QtGui.QVBoxLayout() layout.setMargin(2) layout.setSpacing(3) self.workflowLabel = QtGui.QLabel("Workflow: ") layout.addWidget(self.workflowLabel) self.mashupsList = QMashupsListPanel(parent=self) listLabel = QtGui.QLabel("Available Mashups:") layout.addWidget(listLabel) layout.addWidget(self.mashupsList) self.mashupInspector = QMashupProp(parent=self) inspector_group = QtGui.QGroupBox("Mashup properties") g_layout = QtGui.QVBoxLayout() g_layout.setMargin(1) g_layout.setSpacing(3) g_layout.addWidget(self.mashupInspector) inspector_group.setLayout(g_layout) layout.addWidget(inspector_group) self.setLayout(layout)