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()
Пример #2
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()
Пример #3
0
    def __init__(self, parent=None):
        QParameterExplorationWidget.__init__(self, parent)
        BaseView.__init__(self)

        self.set_title("Explore")
        self.connect(self.table,
                     QtCore.SIGNAL('exploreChange(bool)'),
                     self.exploreChange)
 def __init__(self, parent=None):
     """ QVersionTreeView(parent: QWidget) -> QVersionTreeView
     Initialize the graphics view and its properties
     
     """
     QInteractiveGraphicsView.__init__(self, parent)
     BaseView.__init__(self)
     self.controller = None
     self.set_title('Version Tree')
     self.setScene(QVersionTreeScene(self))
     self.versionProp = QVersionPropOverlay(self, self.viewport())
     self.versionProp.hide()
Пример #5
0
 def __init__(self, parent=None):
     """ QVersionTreeView(parent: QWidget) -> QVersionTreeView
     Initialize the graphics view and its properties
     
     """
     QInteractiveGraphicsView.__init__(self, parent)
     BaseView.__init__(self)
     self.controller = None
     self.set_title('Version Tree')
     self.setScene(QVersionTreeScene(self))
     self.versionProp = QVersionPropOverlay(self, self.viewport())
     self.versionProp.hide()
Пример #6
0
 def __init__(self, mshpController, version, parent=None):
     QtGui.QWidget.__init__(self, parent)
     BaseView.__init__(self)
     self.mshpController = mshpController
     self.version = version
Пример #7
0
 def __init__(self, parent=None):
     QtGui.QWidget.__init__(self, parent)
     BaseView.__init__(self)
     self.build_widget()
     self.set_title("Search")
 def __init__(self, mshpController, version, parent=None):
     QtGui.QWidget.__init__(self, parent)
     BaseView.__init__(self)
     self.mshpController = mshpController
     self.version = version