Exemple #1
0
    def __init__(self, parent=None, f=QtCore.Qt.WindowFlags()):
        QtGui.QMainWindow.__init__(self, parent, f)
        BaseView.__init__(self)
        self.set_title("Mashup")

        self.controller = None
        self.mshpController = None
        self.createActions()
        #Setting up a toolbar
        self.createToolBar()
        self.tab_to_stack_idx = {}
        self.button_to_tab_idx = Bidict()
        widget = QtGui.QWidget(self)
        layout = QtGui.QVBoxLayout()
        layout.setMargin(0)
        layout.setSpacing(0)
        self.tabBar = QtGui.QTabBar(self)
        self.tabBar.setDocumentMode(True)
        self.tabBar.setTabsClosable(False)
        self.tabBar.setExpanding(False)
        self.tabBar.currentChanged.connect(self.switchTab)
        self.stack = QtGui.QStackedWidget(self)
        layout.addWidget(self.tabBar)
        layout.addWidget(self.stack)
        widget.setLayout(layout)
        self.setCentralWidget(widget)
        self.createAliasPanelTab()
        widget.setVisible(True)
        #self.createPipelineTab()
        self.setWindowTitle("Mashup Builder")
        self.vtversion = -1
        self.manager = MashupsManager.getInstance()
 def __init__(self, parent=None, f=QtCore.Qt.WindowFlags()):
     QtGui.QMainWindow.__init__(self, parent, f)
     BaseView.__init__(self)
     self.set_title("Mashup")
     
     self.controller = None
     self.mshpController = None
     self.createActions()
     #Setting up a toolbar
     self.createToolBar()
     self.tab_to_stack_idx = {}
     self.button_to_tab_idx = Bidict()
     widget = QtGui.QWidget(self)
     layout = QtGui.QVBoxLayout()
     layout.setMargin(0)
     layout.setSpacing(0)
     self.tabBar = QtGui.QTabBar(self)
     self.tabBar.setDocumentMode(True)
     self.tabBar.setTabsClosable(False)
     self.tabBar.setExpanding(False)
     self.tabBar.currentChanged.connect(self.switchTab)
     self.stack = QtGui.QStackedWidget(self)
     layout.addWidget(self.tabBar)
     layout.addWidget(self.stack)
     widget.setLayout(layout)
     self.setCentralWidget(widget)
     self.createAliasPanelTab()
     widget.setVisible(True)
     #self.createPipelineTab()
     self.setWindowTitle("Mashup Builder")
     self.vtversion = -1
     self.manager = MashupsManager.getInstance()
 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)