예제 #1
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(748, 590)
        self.layoutWidget = QtGui.QWidget(Dialog)
        self.layoutWidget.setGeometry(QtCore.QRect(310, 20, 420, 531))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.pushButton = QtGui.QPushButton(self.layoutWidget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.verticalLayout.addWidget(self.pushButton)
        self.widget = matplotlibWidget(self.layoutWidget)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.verticalLayout.addWidget(self.widget)
        self.layoutWidget1 = QtGui.QWidget(Dialog)
        self.layoutWidget1.setGeometry(QtCore.QRect(20, 20, 258, 227))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.pushButton_2 = QtGui.QPushButton(self.layoutWidget1)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.verticalLayout_2.addWidget(self.pushButton_2)
        self.graphicsView = QtGui.QGraphicsView(self.layoutWidget1)
        self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
        self.verticalLayout_2.addWidget(self.graphicsView)
        self.widget1 = QtGui.QWidget(Dialog)
        self.widget1.setGeometry(QtCore.QRect(20, 260, 257, 140))
        self.widget1.setObjectName(_fromUtf8("widget1"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.widget1)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label = QtGui.QLabel(self.widget1)
        self.label.setText(_fromUtf8(""))
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_3.addWidget(self.label)
        self.label_3 = QtGui.QLabel(self.widget1)
        self.label_3.setText(_fromUtf8(""))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_3.addWidget(self.label_3)
        self.label_2 = QtGui.QLabel(self.widget1)
        self.label_2.setText(_fromUtf8(""))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_3.addWidget(self.label_2)
        self.widget2 = QtGui.QWidget(Dialog)
        self.widget2.setGeometry(QtCore.QRect(20, 410, 258, 140))
        self.widget2.setObjectName(_fromUtf8("widget2"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.widget2)
        self.verticalLayout_4.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.pushButton_3 = QtGui.QPushButton(self.widget2)
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.verticalLayout_4.addWidget(self.pushButton_3)
        self.listView = QtGui.QListView(self.widget2)
        self.listView.setObjectName(_fromUtf8("listView"))
        self.verticalLayout_4.addWidget(self.listView)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(531, 289)
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(0, 10, 521, 271))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #3
0
파일: PlotGUI.py 프로젝트: 3WiseMen/python
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(640, 480)
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(70, 410, 471, 27))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(50, 30, 501, 361))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #4
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(557, 415)
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(30, 20, 491, 41))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(30, 70, 491, 301))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #5
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(640, 480)
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(70, 410, 471, 27))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(50, 30, 501, 361))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #6
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(557, 415)
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(30, 20, 491, 41))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(30, 70, 491, 301))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #7
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(531, 328)
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(10, 10, 511, 271))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(200, 290, 91, 31))
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(534, 315)
        self.pushButton = QtGui.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(50, 460, 141, 31))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.pushButton_2 = QtGui.QPushButton(Dialog)
        self.pushButton_2.setGeometry(QtCore.QRect(240, 460, 141, 31))
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.pushButton_3 = QtGui.QPushButton(Dialog)
        self.pushButton_3.setGeometry(QtCore.QRect(420, 460, 141, 31))
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.txtBaseDir2_3 = QtGui.QLineEdit(Dialog)
        self.txtBaseDir2_3.setGeometry(QtCore.QRect(420, 430, 51, 31))
        self.txtBaseDir2_3.setObjectName(_fromUtf8("txtBaseDir2_3"))
        self.label_14 = QtGui.QLabel(Dialog)
        self.label_14.setGeometry(QtCore.QRect(480, 440, 181, 16))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        self.label_14.setFont(font)
        self.label_14.setTextFormat(QtCore.Qt.AutoText)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.tabWidget = QtGui.QTabWidget(Dialog)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 531, 311))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.widget = matplotlibWidget(self.tab)
        self.widget.setGeometry(QtCore.QRect(0, 0, 521, 271))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.textEdit = QtGui.QTextEdit(self.tab_2)
        self.textEdit.setGeometry(QtCore.QRect(10, 10, 491, 241))
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #9
0
    def setupUi(self, Dialog, cursos, niveis_formacao):
        self.Dialog = Dialog
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(693, 545)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icon/estig.ico")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        Dialog.setWindowIcon(icon)
        self.widget = matplotlibWidget(
            self.Dialog)  #Widget que vai conter os gráficos
        self.widget.setGeometry(QtCore.QRect(9, 9, 671, 361))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.graph_comboBox = QtGui.QComboBox(Dialog)
        self.graph_comboBox.setGeometry(QtCore.QRect(50, 430, 591, 31))
        self.graph_comboBox.setObjectName(_fromUtf8("graph_comboBox"))
        self.graph_comboBox.addItem(
            _fromUtf8(""))  # item_index == 0, "Escolha um gráfico"
        self.graph_comboBox.addItem(
            _fromUtf8(""))  # item_index == 1, "- - Por curso - -"
        self.graph_comboBox.setItemText(1, _fromUtf8(" - - Por curso - -"))

        #Adiciona items à combo box, correspondentes aos cursos existentes
        #com Computadores ou Informática no nome
        item_index = 2
        for curso in cursos:
            self.graph_comboBox.addItem(_fromUtf8(""))
            self.graph_comboBox.setItemText(item_index, _fromUtf8(curso.nome))
            item_index += 1

        #Adiciona items à combo box, correspondentes aos cursos existentes
        #com Computadores ou Informática no nome
        self.graph_comboBox.addItem(_fromUtf8(
            ""))  # item_index == item_index, "- - Por nivel de formação - -"
        self.graph_comboBox.setItemText(
            item_index, _fromUtf8(" - - Por nivel de formação - -"))
        for nf in niveis_formacao:
            item_index += 1
            self.graph_comboBox.addItem(_fromUtf8(""))
            self.graph_comboBox.setItemText(item_index, _fromUtf8(nf.nome))

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #10
0
파일: plotwin_ui.py 프로젝트: Ralf3/samt2
    def setupUi(self, plotwin):
        plotwin.setObjectName(_fromUtf8("plotwin"))
        plotwin.resize(661, 485)
        self.centralwidget = QtGui.QWidget(plotwin)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.main_frame = matplotlibWidget(self.centralwidget)
        self.main_frame.setGeometry(QtCore.QRect(12, 2, 641, 431))
        self.main_frame.setMinimumSize(QtCore.QSize(480, 360))
        self.main_frame.setObjectName(_fromUtf8("main_frame"))
        plotwin.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(plotwin)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 661, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        plotwin.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(plotwin)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        plotwin.setStatusBar(self.statusbar)

        self.retranslateUi(plotwin)
        QtCore.QMetaObject.connectSlotsByName(plotwin)
예제 #11
0
파일: plotwin_ui.py 프로젝트: Ralf3/samt2
    def setupUi(self, plotwin):
        plotwin.setObjectName(_fromUtf8("plotwin"))
        plotwin.resize(661, 485)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/area.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        plotwin.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(plotwin)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.main_frame = matplotlibWidget(self.centralwidget)
        self.main_frame.setGeometry(QtCore.QRect(12, 2, 641, 431))
        self.main_frame.setMinimumSize(QtCore.QSize(480, 360))
        self.main_frame.setObjectName(_fromUtf8("main_frame"))
        plotwin.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(plotwin)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 661, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        plotwin.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(plotwin)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        plotwin.setStatusBar(self.statusbar)

        self.retranslateUi(plotwin)
        QtCore.QMetaObject.connectSlotsByName(plotwin)
예제 #12
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(397, 363)
        self.cBDataSelection = QtGui.QComboBox(Dialog)
        self.cBDataSelection.setGeometry(QtCore.QRect(10, 280, 131, 27))
        self.cBDataSelection.setAcceptDrops(True)
        self.cBDataSelection.setEditable(True)
        self.cBDataSelection.setMaxVisibleItems(3)
        self.cBDataSelection.setMaxCount(3)
        self.cBDataSelection.setObjectName(_fromUtf8("cBDataSelection"))
        self.cBDataSelection.addItem(_fromUtf8(""))
        self.cBDataSelection.addItem(_fromUtf8(""))
        self.cBDataSelection.addItem(_fromUtf8(""))
        self.pbConnect = QtGui.QPushButton(Dialog)
        self.pbConnect.setGeometry(QtCore.QRect(10, 330, 98, 27))
        self.pbConnect.setObjectName(_fromUtf8("pbConnect"))
        self.pbDisconnect = QtGui.QPushButton(Dialog)
        self.pbDisconnect.setGeometry(QtCore.QRect(150, 330, 98, 27))
        self.pbDisconnect.setObjectName(_fromUtf8("pbDisconnect"))
        self.tlTextline = QtGui.QLineEdit(Dialog)
        self.tlTextline.setGeometry(QtCore.QRect(150, 280, 241, 27))
        self.tlTextline.setObjectName(_fromUtf8("tlTextline"))
        self.pbClose = QtGui.QPushButton(Dialog)
        self.pbClose.setGeometry(QtCore.QRect(290, 330, 98, 27))
        self.pbClose.setObjectName(_fromUtf8("pbClose"))
        self.widget = matplotlibWidget(Dialog)
        self.widget.setGeometry(QtCore.QRect(10, 10, 381, 261))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Dialog)
        self.cBDataSelection.setCurrentIndex(0)
        QtCore.QObject.connect(self.cBDataSelection, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), self.tlTextline.clear)
        QtCore.QObject.connect(self.pbConnect, QtCore.SIGNAL(_fromUtf8("clicked()")), self.tlTextline.clear)
        QtCore.QObject.connect(self.pbDisconnect, QtCore.SIGNAL(_fromUtf8("clicked()")), self.tlTextline.clear)
        QtCore.QObject.connect(self.pbClose, QtCore.SIGNAL(_fromUtf8("clicked()")), Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #13
0
    def setupUi(self, MainWindow):
    
        #sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
    
        # -----------------------------------------------------------------------------
        # Central Widget
        # -----------------------------------------------------------------------------

        # Geometry and Layout
        MainWindow.resize(1300, 780)                
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setAutoFillBackground(False)
        self.centralwidget = QtGui.QWidget(MainWindow)   
        self.gridLayout_centralwidget = QtGui.QGridLayout(self.centralwidget)
        self.splitter_centralwidget = QtGui.QSplitter(self.centralwidget)
        self.splitter_centralwidget.setOrientation(QtCore.Qt.Horizontal)


        # -----------------------------------------------------------------------------
        # Left pane -> SelectionTabs Widget and SinglePlot Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.splitter_leftPane = QtGui.QSplitter(self.splitter_centralwidget)
        self.splitter_leftPane.setOrientation(QtCore.Qt.Vertical)


        # SelectionTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout             
        self.selectionTabWidget = QtGui.QTabWidget(self.splitter_leftPane)
        self.selectionTabWidget.setSizePolicy(sizePolicy)
        self.selectionTabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.selectionTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.selectionTabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.myPolicy = self.selectionTabWidget.sizePolicy()
        self.myPolicy.setVerticalStretch(5)
        self.selectionTabWidget.setSizePolicy(self.myPolicy)        

        
        # ------
        # TAB 1   (DataTab) -> dirTree and fileDataTree
        # ------
        # Geometry and Layout
        self.dataTab = QtGui.QWidget()
        self.selectionTabWidget.addTab(self.dataTab, _fromUtf8(""))
        self.gridLayout_dataTab = QtGui.QGridLayout(self.dataTab)
        self.splitter_dataTab = QtGui.QSplitter(self.dataTab)
        self.splitter_dataTab.setSizePolicy(sizePolicy)
        self.splitter_dataTab.setOrientation(QtCore.Qt.Horizontal)
        self.gridLayout_dataTab.addWidget(self.splitter_dataTab, 0, 0, 1, 1)
               
        # TAB 1 content > DirTree
        self.dirTree = QtGui.QTreeView(self.splitter_dataTab)
        self.dirTree.setSizePolicy(sizePolicy)
        
        # TAB 1 content > FileDataTree
        self.fileDataTree = h5TreeWidget(self.splitter_dataTab)
        self.fileDataTree.setSizePolicy(sizePolicy)
        self.fileDataTree.setAcceptDrops(True)
        self.fileDataTree.setDragEnabled(True)
        self.fileDataTree.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.fileDataTree.setDefaultDropAction(QtCore.Qt.CopyAction)
        self.fileDataTree.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.fileDataTree.headerItem().setText(0, _fromUtf8("1"))


        # -----
        # TAB 2   (oneDimAnalysisTab) -> toolSelect and toolStackedWidget
        # -----
        # Geometry and Layout
        self.oneDimAnalysisTab = QtGui.QWidget()
        self.selectionTabWidget.addTab(self.oneDimAnalysisTab, _fromUtf8(""))
        self.gridLayout_oneDimAnalysisTab = QtGui.QGridLayout(self.oneDimAnalysisTab)
        self.splitter_oneDimAnalysisTab = QtGui.QSplitter(self.oneDimAnalysisTab)
        self.splitter_oneDimAnalysisTab.setSizePolicy(sizePolicy)        
        self.splitter_oneDimAnalysisTab.setOrientation(QtCore.Qt.Horizontal)
        self.gridLayout_oneDimAnalysisTab.addWidget(self.splitter_oneDimAnalysisTab, 0, 0, 1, 1)

        # TAB 2 content > Tool Select        
        self.oneDimToolSelect = QtGui.QListView(self.splitter_oneDimAnalysisTab)
        self.oneDimToolSelect.setSizePolicy(sizePolicy)

        # TAB 2 content > Tools Stacked Widget        
        self.toolStackedWidget = QtGui.QStackedWidget(self.splitter_oneDimAnalysisTab)
        self.toolStackedWidget.setSizePolicy(sizePolicy)
        
        # TOOLS in Stacked Widget
        # Averaging
        self.avgTool = QtGui.QWidget()
        self.checkBox = QtGui.QCheckBox(self.avgTool)
        self.checkBox.setGeometry(QtCore.QRect(10, 30, 97, 22))
        self.toolStackedWidget.addWidget(self.avgTool)
        self.avgTool.setSizePolicy(sizePolicy)
        
        # Baseline  
        self.baselineTool = QtGui.QWidget()
        self.toolStackedWidget.addWidget(self.baselineTool)
        
        # Measure
        self.measureTool = QtGui.QWidget()
        self.toolStackedWidget.addWidget(self.measureTool)

        
        
        # SinglePlots Widget
        # -----------------------------------------------------------------------------       
        #Geometry and Layout 
        self.singlePlotWidget = matplotlibWidget(self.splitter_leftPane)
        self.singlePlotWidget.setSizePolicy(sizePolicy)
        

        # -----------------------------------------------------------------------------
        # Middle pane -> DisplayTabs Widget 
        # -----------------------------------------------------------------------------        
          
        # DisplayTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.displayTabWidget = QtGui.QTabWidget(self.splitter_centralwidget)
        self.displayTabWidget.setMinimumSize(QtCore.QSize(0, 0))

        # ------
        # TAB 1   (PlotTab)
        # ------    
        # Geometry and Layout
        self.plotTab = QtGui.QWidget()
        self.gridLayout_plotTab = QtGui.QGridLayout(self.plotTab)
 
        # TAB 1 content > dataPlotsWidget
        self.dataPlotsWidget = matplotlibWidget(self.plotTab)
        sizePolicy2 = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)            
        self.dataPlotsWidget.setSizePolicy(sizePolicy)
        self.dataPlotsWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.gridLayout_plotTab.addWidget(self.dataPlotsWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.plotTab, _fromUtf8(""))
        
        # ------
        # TAB 2   (TableTab)
        # ------        
        # Geometry and Layout   
        # TAB 2 content > tableWidget         
        self.tableTab = QtGui.QWidget()
        self.gridLayout_tableTab = QtGui.QGridLayout(self.tableTab)
        self.dataTableWidget = QtGui.QTableWidget(self.tableTab)
        self.dataTableWidget.setDragEnabled(True)
        self.dataTableWidget.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.dataTableWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.dataTableWidget.setAlternatingRowColors(True)
        self.dataTableWidget.setColumnCount(0)
        self.dataTableWidget.setRowCount(0)
        self.gridLayout_tableTab.addWidget(self.dataTableWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.tableTab, _fromUtf8(""))


        # -----------------------------------------------------------------------------
        # Right pane -> Working Data Tree and Properties Table
        # -----------------------------------------------------------------------------
        # Geometry and Layout      
        self.splitter_rightPane = QtGui.QSplitter(self.splitter_centralwidget)
        self.splitter_rightPane.setSizePolicy(sizePolicy)
        self.splitter_rightPane.setOrientation(QtCore.Qt.Vertical)
        
        # WorkingDataTree Widget
        # -----------------------------------------------------------------------------        
        self.workingDataTree = h5TreeWidget(self.splitter_rightPane)
        self.workingDataTree.setSizePolicy(sizePolicy)
        self.workingDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.workingDataTree.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.workingDataTree.setAcceptDrops(True)
        self.workingDataTree.setDragEnabled(True)
        self.workingDataTree.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.workingDataTree.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.workingDataTree.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.workingDataTree.headerItem().setText(0, _fromUtf8("1"))
        
        # Properties Table Widget
        # -----------------------------------------------------------------------------
        self.propsTableWidget = QtGui.QTableWidget(self.splitter_rightPane)
        self.propsTableWidget.setSizePolicy(sizePolicy)
        self.propsTableWidget.setRowCount(0)
        self.propsTableWidget.setColumnCount(0)
        self.propsTableWidget.horizontalHeader().setCascadingSectionResizes(False)
        self.propsTableWidget.horizontalHeader().setStretchLastSection(True)

        # central widget stuff - move up?
        self.gridLayout_centralwidget.addWidget(self.splitter_centralwidget, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        

        # -----------------------------------------------------------------------------
        # Status Bar
        # -----------------------------------------------------------------------------        
        self.statusbar = QtGui.QStatusBar(MainWindow)
        MainWindow.setStatusBar(self.statusbar)
        
        # -----------------------------------------------------------------------------
        # Tool Bar
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.toolBar = QtGui.QToolBar(MainWindow)
        sizePolicy3 = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy3.setHorizontalStretch(0)
        sizePolicy3.setVerticalStretch(0)
        self.toolBar.setSizePolicy(sizePolicy3)
        self.toolBar.setLayoutDirection(QtCore.Qt.LeftToRight)
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
                
        # Actions - some should go in mainWindow.py if they are not tied to a graphical ? 
        self.actionLoadData = QtGui.QAction(MainWindow)
        self.actionNewFile = QtGui.QAction(MainWindow)
        self.actionSaveFile = QtGui.QAction(MainWindow)
        self.actionAddRootGroup = QtGui.QAction(MainWindow)
        self.actionAddChildGroup = QtGui.QAction(MainWindow)
        self.actionAddDataset = QtGui.QAction(MainWindow)
        self.actionRenameTreeItem = QtGui.QAction(MainWindow)
        self.actionRemoveTreeItem = QtGui.QAction(MainWindow)
        self.actionPlotData = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/pencil29.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlotData.setIcon(icon)
        self.actionShowCursors = QtGui.QAction(MainWindow)
        self.actionShowCursors.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/push7.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShowCursors.setIcon(icon1)
        self.actionSaveFileAs = QtGui.QAction(MainWindow)
        self.actionZoomOut = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/home107.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomOut.setIcon(icon2)
        self.actionBaseline = QtGui.QAction(MainWindow)
        self.actionAverage = QtGui.QAction(MainWindow)
        self.actionStats = QtGui.QAction(MainWindow)
        self.actionShowInTable = QtGui.QAction(MainWindow)
        self.toolBar.addAction(self.actionNewFile)
        self.toolBar.addAction(self.actionLoadData)
        self.toolBar.addAction(self.actionSaveFile)
        self.toolBar.addAction(self.actionSaveFileAs)

        self.retranslateUi(MainWindow)
        self.selectionTabWidget.setCurrentIndex(1)
        self.toolStackedWidget.setCurrentIndex(0)
        self.displayTabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #14
0
    def setupUi(self, MainWindow):
    
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)

# gridLayout_4  - gridLayout_centralwidget
# splitter_5 - splitter_centralwidget
# splitter_4 - splitter_selectionTabs_singlePlot
# gridLayout_5 - gridLayout_dataTab
# splitter - splitter_dataTab
    
        # -----------------------------------------------------------------------------
        # Central Widget
        # -----------------------------------------------------------------------------

        # Geometry
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1300, 780)                
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setAutoFillBackground(False)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())         
        # Layout
        self.gridLayout_centralwidget = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_centralWidget.setObjectName(_fromUtf8("gridLayout_centralwidget"))
        self.splitter_centralwidget = QtGui.QSplitter(self.centralwidget)
        self.splitter_centralwidget.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_centralwidget.setObjectName(_fromUtf8("splitter_centralwidget"))        


        # -----------------------------------------------------------------------------
        # Left pane -> SelectionTabs Widget and SinglePlot Widget
        # -----------------------------------------------------------------------------
        # Layout
        self.splitter_selectionTabs_singlePlot = QtGui.QSplitter(self.splitter_centralwidget)
        self.splitter_selectionTabs_singlePlot.setOrientation(QtCore.Qt.Vertical)
        self.splitter_selectionTabs_singlePlot.setObjectName(_fromUtf8("splitter_selectionTabs_singlePlot"))
        self.selectionTabWidget = QtGui.QTabWidget(self.splitter_selectionTabs_singlePlot)


        # SelectionTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry
        sizePolicy.setHeightForWidth(self.selectionTabWidget.sizePolicy().hasHeightForWidth())                
        self.selectionTabWidget.setSizePolicy(sizePolicy)
        self.selectionTabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.selectionTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.selectionTabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.selectionTabWidget.setObjectName(_fromUtf8("selectionTabWidget"))
        
        # ------
        # TAB 1   (DataTab) -> dirTree and fileDataTree
        # ------
        # Layout 
        self.dataTab = QtGui.QWidget()
        self.dataTab.setObjectName(_fromUtf8("dataTab"))
        self.gridLayout_dataTab = QtGui.QGridLayout(self.dataTab)
        self.gridLayout_dataTab.setObjectName(_fromUtf8("gridLayout_dataTab"))
        self.splitter_dataTab = QtGui.QSplitter(self.dataTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter_dataTab.setSizePolicy(sizePolicy)
        self.splitter_dataTab.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_dataTab.setObjectName(_fromUtf8("splitter_dataTab"))
               
        # TAB 1 content > DirTree
        self.dirTree = QtGui.QTreeView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dirTree.sizePolicy().hasHeightForWidth())
        self.dirTree.setSizePolicy(sizePolicy)
        self.dirTree.setMinimumSize(QtCore.QSize(0, 0))
        self.dirTree.setObjectName(_fromUtf8("dirTree"))
        
        # TAB 1 content > FileDataTree
        self.fileDataTree = h5TreeWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fileDataTree.sizePolicy().hasHeightForWidth())
        self.fileDataTree.setSizePolicy(sizePolicy)
        self.fileDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.fileDataTree.setAcceptDrops(True)
        self.fileDataTree.setDragEnabled(True)
        self.fileDataTree.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.fileDataTree.setDefaultDropAction(QtCore.Qt.CopyAction)
        self.fileDataTree.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.fileDataTree.setObjectName(_fromUtf8("fileDataTree"))
        self.fileDataTree.headerItem().setText(0, _fromUtf8("1"))
        self.gridLayout_5.addWidget(self.splitter, 0, 0, 1, 1)
        self.selectionTabWidget.addTab(self.dataTab, _fromUtf8(""))

        # -----
        # TAB 2   (oneDimAnalysisTab) ->
        # -----
        self.oneDimAnalysisTab = QtGui.QWidget()
        self.oneDimAnalysisTab.setObjectName(_fromUtf8("oneDimAnalysisTab"))
        self.gridLayout_3 = QtGui.QGridLayout(self.oneDimAnalysisTab)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.splitter_2 = QtGui.QSplitter(self.oneDimAnalysisTab)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.oneDimToolSelect = QtGui.QListView(self.splitter_2)
        self.oneDimToolSelect.setObjectName(_fromUtf8("oneDimToolSelect"))
        self.stackedWidget = QtGui.QStackedWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
        self.stackedWidget.setSizePolicy(sizePolicy)
        self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
        self.avgTool = QtGui.QWidget()
        self.avgTool.setObjectName(_fromUtf8("avgTool"))
        self.checkBox = QtGui.QCheckBox(self.avgTool)
        self.checkBox.setGeometry(QtCore.QRect(10, 30, 97, 22))
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.stackedWidget.addWidget(self.avgTool)
        self.baselineTool = QtGui.QWidget()
        self.baselineTool.setObjectName(_fromUtf8("baselineTool"))
        self.stackedWidget.addWidget(self.baselineTool)
        self.measureTool = QtGui.QWidget()
        self.measureTool.setObjectName(_fromUtf8("measureTool"))
        self.stackedWidget.addWidget(self.measureTool)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.stackedWidget.addWidget(self.page_2)
        self.gridLayout_3.addWidget(self.splitter_2, 0, 0, 1, 1)
        self.selectionTabWidget.addTab(self.oneDimAnalysisTab, _fromUtf8(""))
        self.singlePlotWidget = matplotlibWidget(self.splitter_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.singlePlotWidget.sizePolicy().hasHeightForWidth())
        self.singlePlotWidget.setSizePolicy(sizePolicy)
        self.singlePlotWidget.setObjectName(_fromUtf8("singlePlotWidget"))
        self.displayTabWidget = QtGui.QTabWidget(self.splitter_5)
        self.displayTabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.displayTabWidget.setObjectName(_fromUtf8("displayTabWidget"))
        self.plotTab = QtGui.QWidget()
        self.plotTab.setObjectName(_fromUtf8("plotTab"))
        self.gridLayout = QtGui.QGridLayout(self.plotTab)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.dataPlotsWidget = matplotlibWidget(self.plotTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dataPlotsWidget.sizePolicy().hasHeightForWidth())
        self.dataPlotsWidget.setSizePolicy(sizePolicy)
        self.dataPlotsWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.dataPlotsWidget.setObjectName(_fromUtf8("dataPlotsWidget"))
        self.gridLayout.addWidget(self.dataPlotsWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.plotTab, _fromUtf8(""))
        self.tableTab = QtGui.QWidget()
        self.tableTab.setObjectName(_fromUtf8("tableTab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tableTab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.dataTableWidget = QtGui.QTableWidget(self.tableTab)
        self.dataTableWidget.setDragEnabled(True)
        self.dataTableWidget.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.dataTableWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.dataTableWidget.setAlternatingRowColors(True)
        self.dataTableWidget.setObjectName(_fromUtf8("dataTableWidget"))
        self.dataTableWidget.setColumnCount(0)
        self.dataTableWidget.setRowCount(0)
        self.gridLayout_2.addWidget(self.dataTableWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.tableTab, _fromUtf8(""))
        self.splitter_3 = QtGui.QSplitter(self.splitter_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter_3.sizePolicy().hasHeightForWidth())
        self.splitter_3.setSizePolicy(sizePolicy)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.workingDataTree = h5TreeWidget(self.splitter_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.workingDataTree.sizePolicy().hasHeightForWidth())
        self.workingDataTree.setSizePolicy(sizePolicy)
        self.workingDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.workingDataTree.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.workingDataTree.setAcceptDrops(True)
        self.workingDataTree.setDragEnabled(True)
        self.workingDataTree.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.workingDataTree.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.workingDataTree.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.workingDataTree.setObjectName(_fromUtf8("workingDataTree"))
        self.workingDataTree.headerItem().setText(0, _fromUtf8("1"))
        self.propsTableWidget = QtGui.QTableWidget(self.splitter_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.propsTableWidget.sizePolicy().hasHeightForWidth())
        self.propsTableWidget.setSizePolicy(sizePolicy)
        self.propsTableWidget.setRowCount(0)
        self.propsTableWidget.setColumnCount(0)
        self.propsTableWidget.setObjectName(_fromUtf8("propsTableWidget"))
        self.propsTableWidget.horizontalHeader().setCascadingSectionResizes(False)
        self.propsTableWidget.horizontalHeader().setStretchLastSection(True)
        self.gridLayout_4.addWidget(self.splitter_5, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.toolBar.sizePolicy().hasHeightForWidth())
        self.toolBar.setSizePolicy(sizePolicy)
        self.toolBar.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionLoadData = QtGui.QAction(MainWindow)
        self.actionLoadData.setObjectName(_fromUtf8("actionLoadData"))
        self.actionNewFile = QtGui.QAction(MainWindow)
        self.actionNewFile.setObjectName(_fromUtf8("actionNewFile"))
        self.actionSaveFile = QtGui.QAction(MainWindow)
        self.actionSaveFile.setObjectName(_fromUtf8("actionSaveFile"))
        self.actionAddRootGroup = QtGui.QAction(MainWindow)
        self.actionAddRootGroup.setObjectName(_fromUtf8("actionAddRootGroup"))
        self.actionAddChildGroup = QtGui.QAction(MainWindow)
        self.actionAddChildGroup.setObjectName(_fromUtf8("actionAddChildGroup"))
        self.actionAddDataset = QtGui.QAction(MainWindow)
        self.actionAddDataset.setObjectName(_fromUtf8("actionAddDataset"))
        self.actionRenameTreeItem = QtGui.QAction(MainWindow)
        self.actionRenameTreeItem.setObjectName(_fromUtf8("actionRenameTreeItem"))
        self.actionRemoveTreeItem = QtGui.QAction(MainWindow)
        self.actionRemoveTreeItem.setObjectName(_fromUtf8("actionRemoveTreeItem"))
        self.actionPlotData = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/pencil29.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlotData.setIcon(icon)
        self.actionPlotData.setObjectName(_fromUtf8("actionPlotData"))
        self.actionShowCursors = QtGui.QAction(MainWindow)
        self.actionShowCursors.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/push7.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShowCursors.setIcon(icon1)
        self.actionShowCursors.setObjectName(_fromUtf8("actionShowCursors"))
        self.actionSaveFileAs = QtGui.QAction(MainWindow)
        self.actionSaveFileAs.setObjectName(_fromUtf8("actionSaveFileAs"))
        self.actionZoomOut = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/home107.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomOut.setIcon(icon2)
        self.actionZoomOut.setObjectName(_fromUtf8("actionZoomOut"))
        self.actionBaseline = QtGui.QAction(MainWindow)
        self.actionBaseline.setObjectName(_fromUtf8("actionBaseline"))
        self.actionAverage = QtGui.QAction(MainWindow)
        self.actionAverage.setObjectName(_fromUtf8("actionAverage"))
        self.actionStats = QtGui.QAction(MainWindow)
        self.actionStats.setObjectName(_fromUtf8("actionStats"))
        self.actionShowInTable = QtGui.QAction(MainWindow)
        self.actionShowInTable.setObjectName(_fromUtf8("actionShowInTable"))
        self.toolBar.addAction(self.actionNewFile)
        self.toolBar.addAction(self.actionLoadData)
        self.toolBar.addAction(self.actionSaveFile)
        self.toolBar.addAction(self.actionSaveFileAs)

        self.retranslateUi(MainWindow)
        self.selectionTabWidget.setCurrentIndex(1)
        self.stackedWidget.setCurrentIndex(0)
        self.displayTabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #15
0
    def setupUi(self, Landmark):
        Landmark.setObjectName(_fromUtf8("Landmark"))
        Landmark.resize(1089, 610)
        self.centralwidget = QtGui.QWidget(Landmark)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.Display_xsum = matplotlibWidget(self.centralwidget)
        self.Display_xsum.setGeometry(QtCore.QRect(80, 459, 400, 90))
        self.Display_xsum.setObjectName(_fromUtf8("Display_xsum"))
        self.Display_ysum = matplotlibWidget(self.centralwidget)
        self.Display_ysum.setGeometry(QtCore.QRect(490, 49, 90, 400))
        self.Display_ysum.setObjectName(_fromUtf8("Display_ysum"))
        self.Display_Landmarks_2 = matplotlibWidget(self.Display_ysum)
        self.Display_Landmarks_2.setGeometry(QtCore.QRect(-420, 0, 400, 400))
        self.Display_Landmarks_2.setObjectName(
            _fromUtf8("Display_Landmarks_2"))
        self.Display_Landmarks = matplotlibWidget(self.centralwidget)
        self.Display_Landmarks.setGeometry(QtCore.QRect(80, 49, 400, 400))
        self.Display_Landmarks.setObjectName(_fromUtf8("Display_Landmarks"))
        self.groupBox_autodetect = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_autodetect.setGeometry(QtCore.QRect(590, 30, 171, 161))
        self.groupBox_autodetect.setObjectName(
            _fromUtf8("groupBox_autodetect"))
        self.Button_accptPxSpace = QtGui.QPushButton(self.groupBox_autodetect)
        self.Button_accptPxSpace.setGeometry(QtCore.QRect(10, 120, 151, 31))
        self.Button_accptPxSpace.setObjectName(
            _fromUtf8("Button_accptPxSpace"))
        self.layoutWidget = QtGui.QWidget(self.groupBox_autodetect)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 20, 158, 25))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.gridLayout_4 = QtGui.QGridLayout(self.layoutWidget)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.Button_defineROI = QtGui.QPushButton(self.layoutWidget)
        self.Button_defineROI.setEnabled(True)
        self.Button_defineROI.setObjectName(_fromUtf8("Button_defineROI"))
        self.gridLayout_4.addWidget(self.Button_defineROI, 0, 0, 1, 1)
        self.Button_defineMan = QtGui.QPushButton(self.layoutWidget)
        self.Button_defineMan.setObjectName(_fromUtf8("Button_defineMan"))
        self.gridLayout_4.addWidget(self.Button_defineMan, 0, 1, 1, 1)
        self.layoutWidget1 = QtGui.QWidget(self.groupBox_autodetect)
        self.layoutWidget1.setGeometry(QtCore.QRect(10, 50, 151, 67))
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.gridLayout_5 = QtGui.QGridLayout(self.layoutWidget1)
        self.gridLayout_5.setMargin(0)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_7 = QtGui.QLabel(self.layoutWidget1)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_5.addWidget(self.label_7, 0, 0, 1, 1)
        self.bed_top = QtGui.QLineEdit(self.layoutWidget1)
        self.bed_top.setObjectName(_fromUtf8("bed_top"))
        self.gridLayout_5.addWidget(self.bed_top, 0, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.layoutWidget1)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_5.addWidget(self.label_8, 1, 0, 1, 1)
        self.bed_bot = QtGui.QLineEdit(self.layoutWidget1)
        self.bed_bot.setObjectName(_fromUtf8("bed_bot"))
        self.gridLayout_5.addWidget(self.bed_bot, 1, 1, 1, 1)
        self.LabelPixSpace = QtGui.QLabel(self.layoutWidget1)
        self.LabelPixSpace.setObjectName(_fromUtf8("LabelPixSpace"))
        self.gridLayout_5.addWidget(self.LabelPixSpace, 2, 0, 1, 2)
        self.layoutWidget2 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget2.setGeometry(QtCore.QRect(11, 50, 62, 421))
        self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
        self.gridLayout = QtGui.QGridLayout(self.layoutWidget2)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.upperSlider = QtGui.QSlider(self.layoutWidget2)
        self.upperSlider.setOrientation(QtCore.Qt.Vertical)
        self.upperSlider.setInvertedAppearance(True)
        self.upperSlider.setObjectName(_fromUtf8("upperSlider"))
        self.gridLayout.addWidget(self.upperSlider, 0, 0, 1, 1)
        self.lowerSlider = QtGui.QSlider(self.layoutWidget2)
        self.lowerSlider.setOrientation(QtCore.Qt.Vertical)
        self.lowerSlider.setInvertedAppearance(True)
        self.lowerSlider.setObjectName(_fromUtf8("lowerSlider"))
        self.gridLayout.addWidget(self.lowerSlider, 0, 1, 1, 1)
        self.label = QtGui.QLabel(self.layoutWidget2)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.layoutWidget2)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 1, 1, 1)
        self.layoutWidget3 = QtGui.QWidget(self.centralwidget)
        self.layoutWidget3.setGeometry(QtCore.QRect(80, 20, 411, 21))
        self.layoutWidget3.setObjectName(_fromUtf8("layoutWidget3"))
        self.gridLayout_2 = QtGui.QGridLayout(self.layoutWidget3)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.LRSlider = QtGui.QSlider(self.layoutWidget3)
        self.LRSlider.setOrientation(QtCore.Qt.Horizontal)
        self.LRSlider.setObjectName(_fromUtf8("LRSlider"))
        self.gridLayout_2.addWidget(self.LRSlider, 0, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.layoutWidget3)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 0, 1, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(590, 200, 171, 101))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.widget = QtGui.QWidget(self.groupBox)
        self.widget.setGeometry(QtCore.QRect(10, 31, 158, 51))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout_3 = QtGui.QGridLayout(self.widget)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.Button_defineEarpin = QtGui.QPushButton(self.widget)
        self.Button_defineEarpin.setEnabled(True)
        self.Button_defineEarpin.setObjectName(
            _fromUtf8("Button_defineEarpin"))
        self.gridLayout_3.addWidget(self.Button_defineEarpin, 0, 0, 1, 2)
        self.Button_lockEarpin = QtGui.QPushButton(self.widget)
        self.Button_lockEarpin.setEnabled(True)
        self.Button_lockEarpin.setObjectName(_fromUtf8("Button_lockEarpin"))
        self.gridLayout_3.addWidget(self.Button_lockEarpin, 0, 2, 1, 2)
        self.label_9 = QtGui.QLabel(self.widget)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1)
        self.TxtEarpinX = QtGui.QDoubleSpinBox(self.widget)
        self.TxtEarpinX.setSingleStep(0.1)
        self.TxtEarpinX.setObjectName(_fromUtf8("TxtEarpinX"))
        self.gridLayout_3.addWidget(self.TxtEarpinX, 1, 1, 1, 1)
        self.label_10 = QtGui.QLabel(self.widget)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_3.addWidget(self.label_10, 1, 2, 1, 1)
        self.TxtEarpinY = QtGui.QDoubleSpinBox(self.widget)
        self.TxtEarpinY.setSingleStep(0.1)
        self.TxtEarpinY.setObjectName(_fromUtf8("TxtEarpinY"))
        self.gridLayout_3.addWidget(self.TxtEarpinY, 1, 3, 1, 1)
        self.Button_Done = QtGui.QPushButton(self.centralwidget)
        self.Button_Done.setGeometry(QtCore.QRect(590, 310, 171, 31))
        self.Button_Done.setObjectName(_fromUtf8("Button_Done"))
        Landmark.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Landmark)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1089, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        Landmark.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Landmark)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Landmark.setStatusBar(self.statusbar)

        self.retranslateUi(Landmark)
        QtCore.QMetaObject.connectSlotsByName(Landmark)
예제 #16
0
    def setupUi(self, MainWindow):

        #sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)

        # -----------------------------------------------------------------------------
        # Central Widget
        # -----------------------------------------------------------------------------

        # Geometry and Layout
        MainWindow.resize(1300, 780)
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setAutoFillBackground(False)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.gridLayout_centralwidget = QtGui.QGridLayout(self.centralwidget)
        self.splitter_centralwidget = QtGui.QSplitter(self.centralwidget)
        self.splitter_centralwidget.setOrientation(QtCore.Qt.Horizontal)

        # -----------------------------------------------------------------------------
        # Left pane -> SelectionTabs Widget and SinglePlot Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.splitter_leftPane = QtGui.QSplitter(self.splitter_centralwidget)
        self.splitter_leftPane.setOrientation(QtCore.Qt.Vertical)

        # SelectionTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.selectionTabWidget = QtGui.QTabWidget(self.splitter_leftPane)
        self.selectionTabWidget.setSizePolicy(sizePolicy)
        self.selectionTabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.selectionTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.selectionTabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.myPolicy = self.selectionTabWidget.sizePolicy()
        self.myPolicy.setVerticalStretch(5)
        self.selectionTabWidget.setSizePolicy(self.myPolicy)

        # ------
        # TAB 1   (DataTab) -> dirTree and fileDataTree
        # ------
        # Geometry and Layout
        self.dataTab = QtGui.QWidget()
        self.selectionTabWidget.addTab(self.dataTab, _fromUtf8(""))
        self.gridLayout_dataTab = QtGui.QGridLayout(self.dataTab)
        self.splitter_dataTab = QtGui.QSplitter(self.dataTab)
        self.splitter_dataTab.setSizePolicy(sizePolicy)
        self.splitter_dataTab.setOrientation(QtCore.Qt.Horizontal)
        self.gridLayout_dataTab.addWidget(self.splitter_dataTab, 0, 0, 1, 1)

        # TAB 1 content > DirTree
        self.dirTree = QtGui.QTreeView(self.splitter_dataTab)
        self.dirTree.setSizePolicy(sizePolicy)

        # TAB 1 content > FileDataTree
        self.fileDataTree = h5TreeWidget(self.splitter_dataTab)
        self.fileDataTree.setSizePolicy(sizePolicy)
        self.fileDataTree.setAcceptDrops(True)
        self.fileDataTree.setDragEnabled(True)
        self.fileDataTree.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.fileDataTree.setDefaultDropAction(QtCore.Qt.CopyAction)
        self.fileDataTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.fileDataTree.headerItem().setText(0, _fromUtf8("1"))

        # -----
        # TAB 2   (oneDimAnalysisTab) -> toolSelect and toolStackedWidget
        # -----
        # Geometry and Layout
        self.oneDimAnalysisTab = QtGui.QWidget()
        self.selectionTabWidget.addTab(self.oneDimAnalysisTab, _fromUtf8(""))
        self.gridLayout_oneDimAnalysisTab = QtGui.QGridLayout(
            self.oneDimAnalysisTab)
        self.splitter_oneDimAnalysisTab = QtGui.QSplitter(
            self.oneDimAnalysisTab)
        self.splitter_oneDimAnalysisTab.setSizePolicy(sizePolicy)
        self.splitter_oneDimAnalysisTab.setOrientation(QtCore.Qt.Horizontal)
        self.gridLayout_oneDimAnalysisTab.addWidget(
            self.splitter_oneDimAnalysisTab, 0, 0, 1, 1)

        # TAB 2 content > Tool Select
        self.oneDimToolSelect = QtGui.QListView(
            self.splitter_oneDimAnalysisTab)
        self.oneDimToolSelect.setSizePolicy(sizePolicy)

        # TAB 2 content > Tools Stacked Widget
        self.toolStackedWidget = QtGui.QStackedWidget(
            self.splitter_oneDimAnalysisTab)
        self.toolStackedWidget.setSizePolicy(sizePolicy)

        # TOOLS in Stacked Widget
        # Averaging
        self.avgTool = QtGui.QWidget()
        self.checkBox = QtGui.QCheckBox(self.avgTool)
        self.checkBox.setGeometry(QtCore.QRect(10, 30, 97, 22))
        self.toolStackedWidget.addWidget(self.avgTool)
        self.avgTool.setSizePolicy(sizePolicy)

        # Baseline
        self.baselineTool = QtGui.QWidget()
        self.toolStackedWidget.addWidget(self.baselineTool)

        # Measure
        self.measureTool = QtGui.QWidget()
        self.toolStackedWidget.addWidget(self.measureTool)

        # SinglePlots Widget
        # -----------------------------------------------------------------------------
        #Geometry and Layout
        self.singlePlotWidget = matplotlibWidget(self.splitter_leftPane)
        self.singlePlotWidget.setSizePolicy(sizePolicy)

        # -----------------------------------------------------------------------------
        # Middle pane -> DisplayTabs Widget
        # -----------------------------------------------------------------------------

        # DisplayTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.displayTabWidget = QtGui.QTabWidget(self.splitter_centralwidget)
        self.displayTabWidget.setMinimumSize(QtCore.QSize(0, 0))

        # ------
        # TAB 1   (PlotTab)
        # ------
        # Geometry and Layout
        self.plotTab = QtGui.QWidget()
        self.gridLayout_plotTab = QtGui.QGridLayout(self.plotTab)

        # TAB 1 content > dataPlotsWidget
        self.dataPlotsWidget = matplotlibWidget(self.plotTab)
        sizePolicy2 = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Expanding)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)
        self.dataPlotsWidget.setSizePolicy(sizePolicy)
        self.dataPlotsWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.gridLayout_plotTab.addWidget(self.dataPlotsWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.plotTab, _fromUtf8(""))

        # ------
        # TAB 2   (TableTab)
        # ------
        # Geometry and Layout
        # TAB 2 content > tableWidget
        self.tableTab = QtGui.QWidget()
        self.gridLayout_tableTab = QtGui.QGridLayout(self.tableTab)
        self.dataTableWidget = QtGui.QTableWidget(self.tableTab)
        self.dataTableWidget.setDragEnabled(True)
        self.dataTableWidget.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.dataTableWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.dataTableWidget.setAlternatingRowColors(True)
        self.dataTableWidget.setColumnCount(0)
        self.dataTableWidget.setRowCount(0)
        self.gridLayout_tableTab.addWidget(self.dataTableWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.tableTab, _fromUtf8(""))

        # -----------------------------------------------------------------------------
        # Right pane -> Working Data Tree and Properties Table
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.splitter_rightPane = QtGui.QSplitter(self.splitter_centralwidget)
        self.splitter_rightPane.setSizePolicy(sizePolicy)
        self.splitter_rightPane.setOrientation(QtCore.Qt.Vertical)

        # WorkingDataTree Widget
        # -----------------------------------------------------------------------------
        self.workingDataTree = h5TreeWidget(self.splitter_rightPane)
        self.workingDataTree.setSizePolicy(sizePolicy)
        self.workingDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.workingDataTree.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.workingDataTree.setAcceptDrops(True)
        self.workingDataTree.setDragEnabled(True)
        self.workingDataTree.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.workingDataTree.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.workingDataTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.workingDataTree.headerItem().setText(0, _fromUtf8("1"))

        # Properties Table Widget
        # -----------------------------------------------------------------------------
        self.propsTableWidget = QtGui.QTableWidget(self.splitter_rightPane)
        self.propsTableWidget.setSizePolicy(sizePolicy)
        self.propsTableWidget.setRowCount(0)
        self.propsTableWidget.setColumnCount(0)
        self.propsTableWidget.horizontalHeader().setCascadingSectionResizes(
            False)
        self.propsTableWidget.horizontalHeader().setStretchLastSection(True)

        # central widget stuff - move up?
        self.gridLayout_centralwidget.addWidget(self.splitter_centralwidget, 0,
                                                0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)

        # -----------------------------------------------------------------------------
        # Status Bar
        # -----------------------------------------------------------------------------
        self.statusbar = QtGui.QStatusBar(MainWindow)
        MainWindow.setStatusBar(self.statusbar)

        # -----------------------------------------------------------------------------
        # Tool Bar
        # -----------------------------------------------------------------------------
        # Geometry and Layout
        self.toolBar = QtGui.QToolBar(MainWindow)
        sizePolicy3 = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Fixed)
        sizePolicy3.setHorizontalStretch(0)
        sizePolicy3.setVerticalStretch(0)
        self.toolBar.setSizePolicy(sizePolicy3)
        self.toolBar.setLayoutDirection(QtCore.Qt.LeftToRight)
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)

        # Actions - some should go in mainWindow.py if they are not tied to a graphical ?
        self.actionLoadData = QtGui.QAction(MainWindow)
        self.actionNewFile = QtGui.QAction(MainWindow)
        self.actionSaveFile = QtGui.QAction(MainWindow)
        self.actionAddRootGroup = QtGui.QAction(MainWindow)
        self.actionAddChildGroup = QtGui.QAction(MainWindow)
        self.actionAddDataset = QtGui.QAction(MainWindow)
        self.actionRenameTreeItem = QtGui.QAction(MainWindow)
        self.actionRemoveTreeItem = QtGui.QAction(MainWindow)
        self.actionPlotData = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/pencil29.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlotData.setIcon(icon)
        self.actionShowCursors = QtGui.QAction(MainWindow)
        self.actionShowCursors.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/push7.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShowCursors.setIcon(icon1)
        self.actionSaveFileAs = QtGui.QAction(MainWindow)
        self.actionZoomOut = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/home107.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomOut.setIcon(icon2)
        self.actionBaseline = QtGui.QAction(MainWindow)
        self.actionAverage = QtGui.QAction(MainWindow)
        self.actionStats = QtGui.QAction(MainWindow)
        self.actionShowInTable = QtGui.QAction(MainWindow)
        self.toolBar.addAction(self.actionNewFile)
        self.toolBar.addAction(self.actionLoadData)
        self.toolBar.addAction(self.actionSaveFile)
        self.toolBar.addAction(self.actionSaveFileAs)

        self.retranslateUi(MainWindow)
        self.selectionTabWidget.setCurrentIndex(1)
        self.toolStackedWidget.setCurrentIndex(0)
        self.displayTabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #17
0
    def setupUi(self, Target):
        Target.setObjectName(_fromUtf8("Target"))
        Target.resize(714, 517)
        self.centralwidget = QtGui.QWidget(Target)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(10, 10, 661, 461))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.Display_XRay = matplotlibWidget(self.groupBox)
        self.Display_XRay.setGeometry(QtCore.QRect(100, 50, 400, 400))
        self.Display_XRay.setObjectName(_fromUtf8("Display_XRay"))
        self.Button_Done = QtGui.QPushButton(self.groupBox)
        self.Button_Done.setGeometry(QtCore.QRect(540, 400, 111, 31))
        self.Button_Done.setObjectName(_fromUtf8("Button_Done"))
        self.groupBox_2 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 20, 81, 411))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.splitter = QtGui.QSplitter(self.groupBox_2)
        self.splitter.setGeometry(QtCore.QRect(20, 20, 40, 371))
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.layoutWidget = QtGui.QWidget(self.splitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.GreyValue_center = QtGui.QSlider(self.layoutWidget)
        self.GreyValue_center.setOrientation(QtCore.Qt.Vertical)
        self.GreyValue_center.setObjectName(_fromUtf8("GreyValue_center"))
        self.horizontalLayout_2.addWidget(self.GreyValue_center)
        self.GreyValue_range = QtGui.QSlider(self.layoutWidget)
        self.GreyValue_range.setOrientation(QtCore.Qt.Vertical)
        self.GreyValue_range.setObjectName(_fromUtf8("GreyValue_range"))
        self.horizontalLayout_2.addWidget(self.GreyValue_range)
        self.layoutWidget_2 = QtGui.QWidget(self.splitter)
        self.layoutWidget_2.setObjectName(_fromUtf8("layoutWidget_2"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget_2)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.Label_Scrollbar_center = QtGui.QLabel(self.layoutWidget_2)
        self.Label_Scrollbar_center.setAutoFillBackground(True)
        self.Label_Scrollbar_center.setObjectName(
            _fromUtf8("Label_Scrollbar_center"))
        self.horizontalLayout.addWidget(self.Label_Scrollbar_center)
        self.Label_Scrollbar_range = QtGui.QLabel(self.layoutWidget_2)
        self.Label_Scrollbar_range.setObjectName(
            _fromUtf8("Label_Scrollbar_range"))
        self.horizontalLayout.addWidget(self.Label_Scrollbar_range)
        self.Button_setTarget = QtGui.QPushButton(self.groupBox)
        self.Button_setTarget.setGeometry(QtCore.QRect(540, 30, 111, 31))
        self.Button_setTarget.setObjectName(_fromUtf8("Button_setTarget"))
        self.Slider_TargetX = QtGui.QSlider(self.groupBox)
        self.Slider_TargetX.setGeometry(QtCore.QRect(100, 20, 401, 19))
        self.Slider_TargetX.setOrientation(QtCore.Qt.Horizontal)
        self.Slider_TargetX.setObjectName(_fromUtf8("Slider_TargetX"))
        self.Slider_TargetY = QtGui.QSlider(self.groupBox)
        self.Slider_TargetY.setGeometry(QtCore.QRect(510, 50, 19, 391))
        self.Slider_TargetY.setOrientation(QtCore.Qt.Vertical)
        self.Slider_TargetY.setInvertedAppearance(True)
        self.Slider_TargetY.setObjectName(_fromUtf8("Slider_TargetY"))
        self.Button_lockTarget = QtGui.QPushButton(self.groupBox)
        self.Button_lockTarget.setGeometry(QtCore.QRect(540, 130, 111, 31))
        self.Button_lockTarget.setObjectName(_fromUtf8("Button_lockTarget"))
        self.widget = QtGui.QWidget(self.groupBox)
        self.widget.setGeometry(QtCore.QRect(542, 72, 111, 48))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout = QtGui.QGridLayout(self.widget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_5 = QtGui.QLabel(self.widget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
        self.TxtTrgtX = QtGui.QLineEdit(self.widget)
        self.TxtTrgtX.setObjectName(_fromUtf8("TxtTrgtX"))
        self.gridLayout.addWidget(self.TxtTrgtX, 0, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.widget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1)
        self.TxtTrgtY = QtGui.QLineEdit(self.widget)
        self.TxtTrgtY.setObjectName(_fromUtf8("TxtTrgtY"))
        self.gridLayout.addWidget(self.TxtTrgtY, 1, 1, 1, 1)
        Target.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(Target)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 714, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        Target.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(Target)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        Target.setStatusBar(self.statusbar)

        self.retranslateUi(Target)
        QtCore.QMetaObject.connectSlotsByName(Target)
예제 #18
0
    def setupUi(self, IsoCenter):
        IsoCenter.setObjectName(_fromUtf8("IsoCenter"))
        IsoCenter.resize(861, 609)
        self.centralwidget = QtGui.QWidget(IsoCenter)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(30, 30, 791, 521))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.Display_IsoCenter = matplotlibWidget(self.groupBox)
        self.Display_IsoCenter.setGeometry(QtCore.QRect(30, 30, 400, 400))
        self.Display_IsoCenter.setObjectName(_fromUtf8("Display_IsoCenter"))
        self.Display_yProfile = matplotlibWidget(self.groupBox)
        self.Display_yProfile.setGeometry(QtCore.QRect(440, 30, 60, 400))
        self.Display_yProfile.setObjectName(_fromUtf8("Display_yProfile"))
        self.Display_xProfile = matplotlibWidget(self.groupBox)
        self.Display_xProfile.setGeometry(QtCore.QRect(30, 440, 400, 60))
        self.Display_xProfile.setObjectName(_fromUtf8("Display_xProfile"))
        self.horizontalSlider = QtGui.QSlider(self.groupBox)
        self.horizontalSlider.setGeometry(QtCore.QRect(30, 10, 401, 19))
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider"))
        self.verticalSlider = QtGui.QSlider(self.groupBox)
        self.verticalSlider.setGeometry(QtCore.QRect(10, 30, 19, 401))
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setInvertedAppearance(True)
        self.verticalSlider.setInvertedControls(False)
        self.verticalSlider.setObjectName(_fromUtf8("verticalSlider"))
        self.groupBox_2 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_2.setGeometry(QtCore.QRect(510, 260, 261, 101))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.Button_detectIsoCenter = QtGui.QPushButton(self.groupBox_2)
        self.Button_detectIsoCenter.setGeometry(QtCore.QRect(10, 20, 110, 31))
        self.Button_detectIsoCenter.setAutoFillBackground(False)
        self.Button_detectIsoCenter.setDefault(True)
        self.Button_detectIsoCenter.setObjectName(
            _fromUtf8("Button_detectIsoCenter"))
        self.Button_SetIsoCenter = QtGui.QPushButton(self.groupBox_2)
        self.Button_SetIsoCenter.setGeometry(QtCore.QRect(130, 20, 110, 31))
        self.Button_SetIsoCenter.setAutoFillBackground(False)
        self.Button_SetIsoCenter.setDefault(True)
        self.Button_SetIsoCenter.setObjectName(
            _fromUtf8("Button_SetIsoCenter"))
        self.layoutWidget = QtGui.QWidget(self.groupBox_2)
        self.layoutWidget.setGeometry(QtCore.QRect(13, 60, 221, 22))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_5 = QtGui.QLabel(self.layoutWidget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.SpotTxt_x = QtGui.QDoubleSpinBox(self.layoutWidget)
        self.SpotTxt_x.setSingleStep(0.1)
        self.SpotTxt_x.setObjectName(_fromUtf8("SpotTxt_x"))
        self.horizontalLayout_2.addWidget(self.SpotTxt_x)
        self.label_6 = QtGui.QLabel(self.layoutWidget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_2.addWidget(self.label_6)
        self.SpotTxt_y = QtGui.QDoubleSpinBox(self.layoutWidget)
        self.SpotTxt_y.setSingleStep(0.1)
        self.SpotTxt_y.setObjectName(_fromUtf8("SpotTxt_y"))
        self.horizontalLayout_2.addWidget(self.SpotTxt_y)
        self.groupBox_3 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_3.setGeometry(QtCore.QRect(510, 20, 261, 101))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.Button_LoadSpot = QtGui.QPushButton(self.groupBox_3)
        self.Button_LoadSpot.setEnabled(True)
        self.Button_LoadSpot.setGeometry(QtCore.QRect(10, 20, 131, 31))
        self.Button_LoadSpot.setDefault(True)
        self.Button_LoadSpot.setFlat(False)
        self.Button_LoadSpot.setObjectName(_fromUtf8("Button_LoadSpot"))
        self.Text_Filename = QtGui.QTextEdit(self.groupBox_3)
        self.Text_Filename.setEnabled(True)
        self.Text_Filename.setGeometry(QtCore.QRect(10, 60, 241, 31))
        self.Text_Filename.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.Text_Filename.setObjectName(_fromUtf8("Text_Filename"))
        self.groupBox_4 = QtGui.QGroupBox(self.groupBox)
        self.groupBox_4.setGeometry(QtCore.QRect(510, 130, 261, 121))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.Button_GetField = QtGui.QPushButton(self.groupBox_4)
        self.Button_GetField.setGeometry(QtCore.QRect(10, 20, 110, 31))
        self.Button_GetField.setAutoFillBackground(False)
        self.Button_GetField.setDefault(True)
        self.Button_GetField.setObjectName(_fromUtf8("Button_GetField"))
        self.Button_SetFieldLimits = QtGui.QPushButton(self.groupBox_4)
        self.Button_SetFieldLimits.setGeometry(QtCore.QRect(130, 20, 110, 31))
        self.Button_SetFieldLimits.setObjectName(
            _fromUtf8("Button_SetFieldLimits"))
        self.splitter = QtGui.QSplitter(self.groupBox_4)
        self.splitter.setGeometry(QtCore.QRect(10, 60, 231, 48))
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.layoutWidget1 = QtGui.QWidget(self.splitter)
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_15 = QtGui.QLabel(self.layoutWidget1)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.horizontalLayout_3.addWidget(self.label_15)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.x_Left = QtGui.QLineEdit(self.layoutWidget1)
        self.x_Left.setObjectName(_fromUtf8("x_Left"))
        self.horizontalLayout.addWidget(self.x_Left)
        self.label_17 = QtGui.QLabel(self.layoutWidget1)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.horizontalLayout.addWidget(self.label_17)
        self.x_Right = QtGui.QLineEdit(self.layoutWidget1)
        self.x_Right.setObjectName(_fromUtf8("x_Right"))
        self.horizontalLayout.addWidget(self.x_Right)
        self.label_18 = QtGui.QLabel(self.layoutWidget1)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.horizontalLayout.addWidget(self.label_18)
        self.horizontalLayout_3.addLayout(self.horizontalLayout)
        self.layoutWidget_3 = QtGui.QWidget(self.splitter)
        self.layoutWidget_3.setObjectName(_fromUtf8("layoutWidget_3"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.layoutWidget_3)
        self.horizontalLayout_9.setMargin(0)
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_16 = QtGui.QLabel(self.layoutWidget_3)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.horizontalLayout_9.addWidget(self.label_16)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.y_bottom = QtGui.QLineEdit(self.layoutWidget_3)
        self.y_bottom.setObjectName(_fromUtf8("y_bottom"))
        self.horizontalLayout_10.addWidget(self.y_bottom)
        self.label_19 = QtGui.QLabel(self.layoutWidget_3)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.horizontalLayout_10.addWidget(self.label_19)
        self.y_top = QtGui.QLineEdit(self.layoutWidget_3)
        self.y_top.setObjectName(_fromUtf8("y_top"))
        self.horizontalLayout_10.addWidget(self.y_top)
        self.label_20 = QtGui.QLabel(self.layoutWidget_3)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_10.addWidget(self.label_20)
        self.horizontalLayout_9.addLayout(self.horizontalLayout_10)
        self.Button_Done = QtGui.QPushButton(self.groupBox)
        self.Button_Done.setEnabled(True)
        self.Button_Done.setGeometry(QtCore.QRect(654, 472, 111, 31))
        self.Button_Done.setDefault(True)
        self.Button_Done.setFlat(False)
        self.Button_Done.setObjectName(_fromUtf8("Button_Done"))
        IsoCenter.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(IsoCenter)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 861, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        IsoCenter.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(IsoCenter)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        IsoCenter.setStatusBar(self.statusbar)

        self.retranslateUi(IsoCenter)
        QtCore.QMetaObject.connectSlotsByName(IsoCenter)
예제 #19
0
    def setupUi(self, MainWindow):

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)

        # gridLayout_4  - gridLayout_centralwidget
        # splitter_5 - splitter_centralwidget
        # splitter_4 - splitter_selectionTabs_singlePlot
        # gridLayout_5 - gridLayout_dataTab
        # splitter - splitter_dataTab

        # -----------------------------------------------------------------------------
        # Central Widget
        # -----------------------------------------------------------------------------

        # Geometry
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1300, 780)
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setAutoFillBackground(False)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        # Layout
        self.gridLayout_centralwidget = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout_centralWidget.setObjectName(
            _fromUtf8("gridLayout_centralwidget"))
        self.splitter_centralwidget = QtGui.QSplitter(self.centralwidget)
        self.splitter_centralwidget.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_centralwidget.setObjectName(
            _fromUtf8("splitter_centralwidget"))

        # -----------------------------------------------------------------------------
        # Left pane -> SelectionTabs Widget and SinglePlot Widget
        # -----------------------------------------------------------------------------
        # Layout
        self.splitter_selectionTabs_singlePlot = QtGui.QSplitter(
            self.splitter_centralwidget)
        self.splitter_selectionTabs_singlePlot.setOrientation(
            QtCore.Qt.Vertical)
        self.splitter_selectionTabs_singlePlot.setObjectName(
            _fromUtf8("splitter_selectionTabs_singlePlot"))
        self.selectionTabWidget = QtGui.QTabWidget(
            self.splitter_selectionTabs_singlePlot)

        # SelectionTabs Widget
        # -----------------------------------------------------------------------------
        # Geometry
        sizePolicy.setHeightForWidth(
            self.selectionTabWidget.sizePolicy().hasHeightForWidth())
        self.selectionTabWidget.setSizePolicy(sizePolicy)
        self.selectionTabWidget.setTabPosition(QtGui.QTabWidget.West)
        self.selectionTabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.selectionTabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.selectionTabWidget.setObjectName(_fromUtf8("selectionTabWidget"))

        # ------
        # TAB 1   (DataTab) -> dirTree and fileDataTree
        # ------
        # Layout
        self.dataTab = QtGui.QWidget()
        self.dataTab.setObjectName(_fromUtf8("dataTab"))
        self.gridLayout_dataTab = QtGui.QGridLayout(self.dataTab)
        self.gridLayout_dataTab.setObjectName(_fromUtf8("gridLayout_dataTab"))
        self.splitter_dataTab = QtGui.QSplitter(self.dataTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter_dataTab.setSizePolicy(sizePolicy)
        self.splitter_dataTab.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_dataTab.setObjectName(_fromUtf8("splitter_dataTab"))

        # TAB 1 content > DirTree
        self.dirTree = QtGui.QTreeView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dirTree.sizePolicy().hasHeightForWidth())
        self.dirTree.setSizePolicy(sizePolicy)
        self.dirTree.setMinimumSize(QtCore.QSize(0, 0))
        self.dirTree.setObjectName(_fromUtf8("dirTree"))

        # TAB 1 content > FileDataTree
        self.fileDataTree = h5TreeWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fileDataTree.sizePolicy().hasHeightForWidth())
        self.fileDataTree.setSizePolicy(sizePolicy)
        self.fileDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.fileDataTree.setAcceptDrops(True)
        self.fileDataTree.setDragEnabled(True)
        self.fileDataTree.setDragDropMode(QtGui.QAbstractItemView.DragOnly)
        self.fileDataTree.setDefaultDropAction(QtCore.Qt.CopyAction)
        self.fileDataTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.fileDataTree.setObjectName(_fromUtf8("fileDataTree"))
        self.fileDataTree.headerItem().setText(0, _fromUtf8("1"))
        self.gridLayout_5.addWidget(self.splitter, 0, 0, 1, 1)
        self.selectionTabWidget.addTab(self.dataTab, _fromUtf8(""))

        # -----
        # TAB 2   (oneDimAnalysisTab) ->
        # -----
        self.oneDimAnalysisTab = QtGui.QWidget()
        self.oneDimAnalysisTab.setObjectName(_fromUtf8("oneDimAnalysisTab"))
        self.gridLayout_3 = QtGui.QGridLayout(self.oneDimAnalysisTab)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.splitter_2 = QtGui.QSplitter(self.oneDimAnalysisTab)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.oneDimToolSelect = QtGui.QListView(self.splitter_2)
        self.oneDimToolSelect.setObjectName(_fromUtf8("oneDimToolSelect"))
        self.stackedWidget = QtGui.QStackedWidget(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.stackedWidget.sizePolicy().hasHeightForWidth())
        self.stackedWidget.setSizePolicy(sizePolicy)
        self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
        self.avgTool = QtGui.QWidget()
        self.avgTool.setObjectName(_fromUtf8("avgTool"))
        self.checkBox = QtGui.QCheckBox(self.avgTool)
        self.checkBox.setGeometry(QtCore.QRect(10, 30, 97, 22))
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.stackedWidget.addWidget(self.avgTool)
        self.baselineTool = QtGui.QWidget()
        self.baselineTool.setObjectName(_fromUtf8("baselineTool"))
        self.stackedWidget.addWidget(self.baselineTool)
        self.measureTool = QtGui.QWidget()
        self.measureTool.setObjectName(_fromUtf8("measureTool"))
        self.stackedWidget.addWidget(self.measureTool)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.stackedWidget.addWidget(self.page_2)
        self.gridLayout_3.addWidget(self.splitter_2, 0, 0, 1, 1)
        self.selectionTabWidget.addTab(self.oneDimAnalysisTab, _fromUtf8(""))
        self.singlePlotWidget = matplotlibWidget(self.splitter_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.singlePlotWidget.sizePolicy().hasHeightForWidth())
        self.singlePlotWidget.setSizePolicy(sizePolicy)
        self.singlePlotWidget.setObjectName(_fromUtf8("singlePlotWidget"))
        self.displayTabWidget = QtGui.QTabWidget(self.splitter_5)
        self.displayTabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.displayTabWidget.setObjectName(_fromUtf8("displayTabWidget"))
        self.plotTab = QtGui.QWidget()
        self.plotTab.setObjectName(_fromUtf8("plotTab"))
        self.gridLayout = QtGui.QGridLayout(self.plotTab)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.dataPlotsWidget = matplotlibWidget(self.plotTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dataPlotsWidget.sizePolicy().hasHeightForWidth())
        self.dataPlotsWidget.setSizePolicy(sizePolicy)
        self.dataPlotsWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.dataPlotsWidget.setObjectName(_fromUtf8("dataPlotsWidget"))
        self.gridLayout.addWidget(self.dataPlotsWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.plotTab, _fromUtf8(""))
        self.tableTab = QtGui.QWidget()
        self.tableTab.setObjectName(_fromUtf8("tableTab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tableTab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.dataTableWidget = QtGui.QTableWidget(self.tableTab)
        self.dataTableWidget.setDragEnabled(True)
        self.dataTableWidget.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.dataTableWidget.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.dataTableWidget.setAlternatingRowColors(True)
        self.dataTableWidget.setObjectName(_fromUtf8("dataTableWidget"))
        self.dataTableWidget.setColumnCount(0)
        self.dataTableWidget.setRowCount(0)
        self.gridLayout_2.addWidget(self.dataTableWidget, 0, 0, 1, 1)
        self.displayTabWidget.addTab(self.tableTab, _fromUtf8(""))
        self.splitter_3 = QtGui.QSplitter(self.splitter_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter_3.sizePolicy().hasHeightForWidth())
        self.splitter_3.setSizePolicy(sizePolicy)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName(_fromUtf8("splitter_3"))
        self.workingDataTree = h5TreeWidget(self.splitter_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.workingDataTree.sizePolicy().hasHeightForWidth())
        self.workingDataTree.setSizePolicy(sizePolicy)
        self.workingDataTree.setMinimumSize(QtCore.QSize(0, 0))
        self.workingDataTree.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.workingDataTree.setAcceptDrops(True)
        self.workingDataTree.setDragEnabled(True)
        self.workingDataTree.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
        self.workingDataTree.setDefaultDropAction(QtCore.Qt.MoveAction)
        self.workingDataTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.workingDataTree.setObjectName(_fromUtf8("workingDataTree"))
        self.workingDataTree.headerItem().setText(0, _fromUtf8("1"))
        self.propsTableWidget = QtGui.QTableWidget(self.splitter_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.propsTableWidget.sizePolicy().hasHeightForWidth())
        self.propsTableWidget.setSizePolicy(sizePolicy)
        self.propsTableWidget.setRowCount(0)
        self.propsTableWidget.setColumnCount(0)
        self.propsTableWidget.setObjectName(_fromUtf8("propsTableWidget"))
        self.propsTableWidget.horizontalHeader().setCascadingSectionResizes(
            False)
        self.propsTableWidget.horizontalHeader().setStretchLastSection(True)
        self.gridLayout_4.addWidget(self.splitter_5, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.toolBar.sizePolicy().hasHeightForWidth())
        self.toolBar.setSizePolicy(sizePolicy)
        self.toolBar.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionLoadData = QtGui.QAction(MainWindow)
        self.actionLoadData.setObjectName(_fromUtf8("actionLoadData"))
        self.actionNewFile = QtGui.QAction(MainWindow)
        self.actionNewFile.setObjectName(_fromUtf8("actionNewFile"))
        self.actionSaveFile = QtGui.QAction(MainWindow)
        self.actionSaveFile.setObjectName(_fromUtf8("actionSaveFile"))
        self.actionAddRootGroup = QtGui.QAction(MainWindow)
        self.actionAddRootGroup.setObjectName(_fromUtf8("actionAddRootGroup"))
        self.actionAddChildGroup = QtGui.QAction(MainWindow)
        self.actionAddChildGroup.setObjectName(
            _fromUtf8("actionAddChildGroup"))
        self.actionAddDataset = QtGui.QAction(MainWindow)
        self.actionAddDataset.setObjectName(_fromUtf8("actionAddDataset"))
        self.actionRenameTreeItem = QtGui.QAction(MainWindow)
        self.actionRenameTreeItem.setObjectName(
            _fromUtf8("actionRenameTreeItem"))
        self.actionRemoveTreeItem = QtGui.QAction(MainWindow)
        self.actionRemoveTreeItem.setObjectName(
            _fromUtf8("actionRemoveTreeItem"))
        self.actionPlotData = QtGui.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("icons/pencil29.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlotData.setIcon(icon)
        self.actionPlotData.setObjectName(_fromUtf8("actionPlotData"))
        self.actionShowCursors = QtGui.QAction(MainWindow)
        self.actionShowCursors.setCheckable(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("icons/push7.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionShowCursors.setIcon(icon1)
        self.actionShowCursors.setObjectName(_fromUtf8("actionShowCursors"))
        self.actionSaveFileAs = QtGui.QAction(MainWindow)
        self.actionSaveFileAs.setObjectName(_fromUtf8("actionSaveFileAs"))
        self.actionZoomOut = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("icons/home107.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionZoomOut.setIcon(icon2)
        self.actionZoomOut.setObjectName(_fromUtf8("actionZoomOut"))
        self.actionBaseline = QtGui.QAction(MainWindow)
        self.actionBaseline.setObjectName(_fromUtf8("actionBaseline"))
        self.actionAverage = QtGui.QAction(MainWindow)
        self.actionAverage.setObjectName(_fromUtf8("actionAverage"))
        self.actionStats = QtGui.QAction(MainWindow)
        self.actionStats.setObjectName(_fromUtf8("actionStats"))
        self.actionShowInTable = QtGui.QAction(MainWindow)
        self.actionShowInTable.setObjectName(_fromUtf8("actionShowInTable"))
        self.toolBar.addAction(self.actionNewFile)
        self.toolBar.addAction(self.actionLoadData)
        self.toolBar.addAction(self.actionSaveFile)
        self.toolBar.addAction(self.actionSaveFileAs)

        self.retranslateUi(MainWindow)
        self.selectionTabWidget.setCurrentIndex(1)
        self.stackedWidget.setCurrentIndex(0)
        self.displayTabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #20
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(889, 608)
        self.commandLinkButton = QtGui.QCommandLinkButton(Form)
        self.commandLinkButton.setGeometry(QtCore.QRect(230, 290, 81, 41))
        self.commandLinkButton.setObjectName(_fromUtf8("commandLinkButton"))
        self.verticalLayoutWidget_2 = QtGui.QWidget(Form)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(120, 20, 81, 241))
        self.verticalLayoutWidget_2.setObjectName(
            _fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.lineEdit_1 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_1.setObjectName(_fromUtf8("lineEdit_1"))
        self.verticalLayout_3.addWidget(self.lineEdit_1)
        self.lineEdit_2 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.verticalLayout_3.addWidget(self.lineEdit_2)
        self.lineEdit_3 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.verticalLayout_3.addWidget(self.lineEdit_3)
        self.lineEdit_4 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4"))
        self.verticalLayout_3.addWidget(self.lineEdit_4)
        self.lineEdit_5 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5"))
        self.verticalLayout_3.addWidget(self.lineEdit_5)
        self.lineEdit_6 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6"))
        self.verticalLayout_3.addWidget(self.lineEdit_6)
        self.lineEdit_7 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7"))
        self.verticalLayout_3.addWidget(self.lineEdit_7)
        self.lineEdit_8 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8"))
        self.verticalLayout_3.addWidget(self.lineEdit_8)
        self.lineEdit_9 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9"))
        self.verticalLayout_3.addWidget(self.lineEdit_9)
        self.lineEdit_10 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10"))
        self.verticalLayout_3.addWidget(self.lineEdit_10)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(80, 30, 56, 13))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayoutWidget = QtGui.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(229, 19, 81, 241))
        self.verticalLayoutWidget.setObjectName(
            _fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.lineEdit_12 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12"))
        self.verticalLayout.addWidget(self.lineEdit_12)
        self.lineEdit_11 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11"))
        self.verticalLayout.addWidget(self.lineEdit_11)
        self.lineEdit_13 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13"))
        self.verticalLayout.addWidget(self.lineEdit_13)
        self.lineEdit_14 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14"))
        self.verticalLayout.addWidget(self.lineEdit_14)
        self.lineEdit_15 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_15.setObjectName(_fromUtf8("lineEdit_15"))
        self.verticalLayout.addWidget(self.lineEdit_15)
        self.lineEdit_16 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_16.setObjectName(_fromUtf8("lineEdit_16"))
        self.verticalLayout.addWidget(self.lineEdit_16)
        self.lineEdit_17 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_17.setObjectName(_fromUtf8("lineEdit_17"))
        self.verticalLayout.addWidget(self.lineEdit_17)
        self.lineEdit_18 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_18.setObjectName(_fromUtf8("lineEdit_18"))
        self.verticalLayout.addWidget(self.lineEdit_18)
        self.lineEdit_19 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_19.setObjectName(_fromUtf8("lineEdit_19"))
        self.verticalLayout.addWidget(self.lineEdit_19)
        self.lineEdit_20 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_20.setObjectName(_fromUtf8("lineEdit_20"))
        self.verticalLayout.addWidget(self.lineEdit_20)
        self.gridLayoutWidget = QtGui.QWidget(Form)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(70, 280, 131, 51))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.gridLayoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.lineEdit_21 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_21.setObjectName(_fromUtf8("lineEdit_21"))
        self.gridLayout.addWidget(self.lineEdit_21, 0, 1, 1, 1)
        self.lineEdit_22 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_22.setObjectName(_fromUtf8("lineEdit_22"))
        self.gridLayout.addWidget(self.lineEdit_22, 1, 1, 1, 1)
        self.gridLayoutWidget_2 = QtGui.QWidget(Form)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(70, 360, 241, 121))
        self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_9 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_2.addWidget(self.label_9, 2, 2, 1, 1)
        self.label_5 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.label_7 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 1, 2, 1, 1)
        self.label_8 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.lineEdit_24 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_24.setObjectName(_fromUtf8("lineEdit_24"))
        self.gridLayout_2.addWidget(self.lineEdit_24, 0, 1, 1, 1)
        self.lineEdit_23 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_23.setObjectName(_fromUtf8("lineEdit_23"))
        self.gridLayout_2.addWidget(self.lineEdit_23, 1, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1)
        self.lineEdit_25 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_25.setObjectName(_fromUtf8("lineEdit_25"))
        self.gridLayout_2.addWidget(self.lineEdit_25, 2, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.lineEdit_26 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_26.setObjectName(_fromUtf8("lineEdit_26"))
        self.gridLayout_2.addWidget(self.lineEdit_26, 1, 3, 1, 1)
        self.lineEdit_27 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_27.setObjectName(_fromUtf8("lineEdit_27"))
        self.gridLayout_2.addWidget(self.lineEdit_27, 0, 3, 1, 1)
        self.lineEdit_28 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_28.setObjectName(_fromUtf8("lineEdit_28"))
        self.gridLayout_2.addWidget(self.lineEdit_28, 2, 3, 1, 1)
        self.widget = matplotlibWidget(Form)
        self.widget.setGeometry(QtCore.QRect(339, 29, 511, 451))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #21
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1280, 700)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.widget = matplotlibWidget(self.centralwidget)
        self.widget.setGeometry(QtCore.QRect(0, 0, 1011, 661))
        self.widget.setObjectName(_fromUtf8("widget"))
        
        self.pushButton = QtGui.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(1040, 10, 75, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        
        self.pushButton1 = QtGui.QPushButton(self.centralwidget)
        self.pushButton1.setGeometry(QtCore.QRect(1040, 50, 75, 23))
        self.pushButton1.setObjectName(_fromUtf8("otworzButtton"))
        
        self.pushButton2 = QtGui.QPushButton(self.centralwidget)
        self.pushButton2.setGeometry(QtCore.QRect(1040, 90, 75, 23))
        self.pushButton2.setObjectName(_fromUtf8("eksportujButton"))
        
        self.pushButton3 = QtGui.QPushButton(self.centralwidget)
        self.pushButton3.setGeometry(QtCore.QRect(1040, 130, 75, 23))
        self.pushButton3.setObjectName(_fromUtf8("resetujButton"))
        
        self.lewyTekst = QtGui.QLabel('lewy punkt:            ',self.centralwidget)
        self.lewyTekst.move(1040, 170)
        self.lewyTekst.setObjectName(_fromUtf8("lewyTekst"))
        
        self.srodekTekst = QtGui.QLabel(u'środkowy punkt:            ',self.centralwidget)
        self.srodekTekst.move(1040, 200)
        self.srodekTekst.setObjectName(_fromUtf8("srodekTekst"))
        
        self.prawyTekst = QtGui.QLabel('prawy punkt:            ',self.centralwidget)
        self.prawyTekst.move(1040, 230)
        self.prawyTekst.setObjectName(_fromUtf8("prawyTekst"))
        
        self.maxlewyTekst = QtGui.QLabel('lewe max:                                 ',self.centralwidget)
        self.maxlewyTekst.move(1040, 260)
        self.maxlewyTekst.setObjectName(_fromUtf8("lewyTekst"))
        
        self.maxprawyTekst = QtGui.QLabel('prawe max:                               ',self.centralwidget)
        self.maxprawyTekst.move(1040, 290)
        self.maxprawyTekst.setObjectName(_fromUtf8("prawyTekst"))
        
        self.parametryLeweTekst = QtGui.QLabel('Parametry Lewe:                                                            ',self.centralwidget)
        self.parametryLeweTekst.move(1040, 320)
        self.parametryLeweTekst.setObjectName(_fromUtf8("prawyTekst"))
        
        self.parametryPraweTekst = QtGui.QLabel('Parametry Prawe:                                                           ',self.centralwidget)
        self.parametryPraweTekst.move(1040, 360)
        self.parametryPraweTekst.setObjectName(_fromUtf8("prawyTekst"))
        
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1166, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #22
0
    def setupUi(self, IsoCenter):
        IsoCenter.setObjectName("IsoCenter")
        IsoCenter.resize(937, 615)
        self.centralwidget = QtWidgets.QWidget(IsoCenter)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.Button_LoadSpot = QtWidgets.QPushButton(self.groupBox_3)
        self.Button_LoadSpot.setEnabled(True)
        self.Button_LoadSpot.setDefault(True)
        self.Button_LoadSpot.setFlat(False)
        self.Button_LoadSpot.setObjectName("Button_LoadSpot")
        self.gridLayout_5.addWidget(self.Button_LoadSpot, 0, 0, 1, 1)
        self.Text_Filename = QtWidgets.QTextEdit(self.groupBox_3)
        self.Text_Filename.setEnabled(True)
        self.Text_Filename.setMaximumSize(QtCore.QSize(16777215, 50))
        self.Text_Filename.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
        self.Text_Filename.setObjectName("Text_Filename")
        self.gridLayout_5.addWidget(self.Text_Filename, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_3, 0, 1, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.Button_detectIsoCenter = QtWidgets.QPushButton(self.groupBox_2)
        self.Button_detectIsoCenter.setAutoFillBackground(False)
        self.Button_detectIsoCenter.setCheckable(True)
        self.Button_detectIsoCenter.setChecked(False)
        self.Button_detectIsoCenter.setDefault(True)
        self.Button_detectIsoCenter.setObjectName("Button_detectIsoCenter")
        self.gridLayout_4.addWidget(self.Button_detectIsoCenter, 0, 0, 1, 1)
        self.Button_SetIsoCenter = QtWidgets.QPushButton(self.groupBox_2)
        self.Button_SetIsoCenter.setAutoFillBackground(False)
        self.Button_SetIsoCenter.setDefault(True)
        self.Button_SetIsoCenter.setObjectName("Button_SetIsoCenter")
        self.gridLayout_4.addWidget(self.Button_SetIsoCenter, 0, 1, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_2.addWidget(self.label_5)
        self.SpotTxt_x = QtWidgets.QDoubleSpinBox(self.groupBox_2)
        self.SpotTxt_x.setDecimals(1)
        self.SpotTxt_x.setMaximum(10000.0)
        self.SpotTxt_x.setSingleStep(0.1)
        self.SpotTxt_x.setProperty("value", 0.0)
        self.SpotTxt_x.setObjectName("SpotTxt_x")
        self.horizontalLayout_2.addWidget(self.SpotTxt_x)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_2.addWidget(self.label_6)
        self.SpotTxt_y = QtWidgets.QDoubleSpinBox(self.groupBox_2)
        self.SpotTxt_y.setDecimals(1)
        self.SpotTxt_y.setMaximum(10000.0)
        self.SpotTxt_y.setSingleStep(0.1)
        self.SpotTxt_y.setObjectName("SpotTxt_y")
        self.horizontalLayout_2.addWidget(self.SpotTxt_y)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
        self.gridLayout_2.addWidget(self.groupBox_2, 1, 1, 1, 1)
        self.Display_IsoCenter = matplotlibWidget(self.groupBox)
        self.Display_IsoCenter.setMinimumSize(QtCore.QSize(400, 400))
        self.Display_IsoCenter.setObjectName("Display_IsoCenter")
        self.gridLayout_2.addWidget(self.Display_IsoCenter, 0, 0, 6, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 3, 1, 1, 1)
        self.Button_Done = QtWidgets.QPushButton(self.groupBox)
        self.Button_Done.setEnabled(True)
        self.Button_Done.setDefault(True)
        self.Button_Done.setFlat(False)
        self.Button_Done.setObjectName("Button_Done")
        self.gridLayout_2.addWidget(self.Button_Done, 2, 1, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
        IsoCenter.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(IsoCenter)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 937, 26))
        self.menubar.setObjectName("menubar")
        IsoCenter.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(IsoCenter)
        self.statusbar.setObjectName("statusbar")
        IsoCenter.setStatusBar(self.statusbar)

        self.retranslateUi(IsoCenter)
        QtCore.QMetaObject.connectSlotsByName(IsoCenter)
예제 #23
0
파일: PlotGUI.py 프로젝트: ogdenk/CO
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(889, 608)
        self.commandLinkButton = QtGui.QCommandLinkButton(Form)
        self.commandLinkButton.setGeometry(QtCore.QRect(230, 290, 81, 41))
        self.commandLinkButton.setObjectName(_fromUtf8("commandLinkButton"))
        self.verticalLayoutWidget_2 = QtGui.QWidget(Form)
        self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(120, 20, 81, 241))
        self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.lineEdit_1 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_1.setObjectName(_fromUtf8("lineEdit_1"))
        self.verticalLayout_3.addWidget(self.lineEdit_1)
        self.lineEdit_2 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.verticalLayout_3.addWidget(self.lineEdit_2)
        self.lineEdit_3 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.verticalLayout_3.addWidget(self.lineEdit_3)
        self.lineEdit_4 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4"))
        self.verticalLayout_3.addWidget(self.lineEdit_4)
        self.lineEdit_5 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_5.setObjectName(_fromUtf8("lineEdit_5"))
        self.verticalLayout_3.addWidget(self.lineEdit_5)
        self.lineEdit_6 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_6.setObjectName(_fromUtf8("lineEdit_6"))
        self.verticalLayout_3.addWidget(self.lineEdit_6)
        self.lineEdit_7 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_7.setObjectName(_fromUtf8("lineEdit_7"))
        self.verticalLayout_3.addWidget(self.lineEdit_7)
        self.lineEdit_8 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_8.setObjectName(_fromUtf8("lineEdit_8"))
        self.verticalLayout_3.addWidget(self.lineEdit_8)
        self.lineEdit_9 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9"))
        self.verticalLayout_3.addWidget(self.lineEdit_9)
        self.lineEdit_10 = QtGui.QLineEdit(self.verticalLayoutWidget_2)
        self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10"))
        self.verticalLayout_3.addWidget(self.lineEdit_10)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(80, 30, 56, 13))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayoutWidget = QtGui.QWidget(Form)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(229, 19, 81, 241))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.lineEdit_12 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12"))
        self.verticalLayout.addWidget(self.lineEdit_12)
        self.lineEdit_11 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11"))
        self.verticalLayout.addWidget(self.lineEdit_11)
        self.lineEdit_13 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13"))
        self.verticalLayout.addWidget(self.lineEdit_13)
        self.lineEdit_14 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14"))
        self.verticalLayout.addWidget(self.lineEdit_14)
        self.lineEdit_15 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_15.setObjectName(_fromUtf8("lineEdit_15"))
        self.verticalLayout.addWidget(self.lineEdit_15)
        self.lineEdit_16 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_16.setObjectName(_fromUtf8("lineEdit_16"))
        self.verticalLayout.addWidget(self.lineEdit_16)
        self.lineEdit_17 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_17.setObjectName(_fromUtf8("lineEdit_17"))
        self.verticalLayout.addWidget(self.lineEdit_17)
        self.lineEdit_18 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_18.setObjectName(_fromUtf8("lineEdit_18"))
        self.verticalLayout.addWidget(self.lineEdit_18)
        self.lineEdit_19 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_19.setObjectName(_fromUtf8("lineEdit_19"))
        self.verticalLayout.addWidget(self.lineEdit_19)
        self.lineEdit_20 = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.lineEdit_20.setObjectName(_fromUtf8("lineEdit_20"))
        self.verticalLayout.addWidget(self.lineEdit_20)
        self.gridLayoutWidget = QtGui.QWidget(Form)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(70, 280, 131, 51))
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(self.gridLayoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.gridLayoutWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.lineEdit_21 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_21.setObjectName(_fromUtf8("lineEdit_21"))
        self.gridLayout.addWidget(self.lineEdit_21, 0, 1, 1, 1)
        self.lineEdit_22 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineEdit_22.setObjectName(_fromUtf8("lineEdit_22"))
        self.gridLayout.addWidget(self.lineEdit_22, 1, 1, 1, 1)
        self.gridLayoutWidget_2 = QtGui.QWidget(Form)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(70, 360, 241, 121))
        self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setMargin(0)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_9 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_2.addWidget(self.label_9, 2, 2, 1, 1)
        self.label_5 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.label_7 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 1, 2, 1, 1)
        self.label_8 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.lineEdit_24 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_24.setObjectName(_fromUtf8("lineEdit_24"))
        self.gridLayout_2.addWidget(self.lineEdit_24, 0, 1, 1, 1)
        self.lineEdit_23 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_23.setObjectName(_fromUtf8("lineEdit_23"))
        self.gridLayout_2.addWidget(self.lineEdit_23, 1, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1)
        self.lineEdit_25 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_25.setObjectName(_fromUtf8("lineEdit_25"))
        self.gridLayout_2.addWidget(self.lineEdit_25, 2, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.gridLayoutWidget_2)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
        self.lineEdit_26 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_26.setObjectName(_fromUtf8("lineEdit_26"))
        self.gridLayout_2.addWidget(self.lineEdit_26, 1, 3, 1, 1)
        self.lineEdit_27 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_27.setObjectName(_fromUtf8("lineEdit_27"))
        self.gridLayout_2.addWidget(self.lineEdit_27, 0, 3, 1, 1)
        self.lineEdit_28 = QtGui.QLineEdit(self.gridLayoutWidget_2)
        self.lineEdit_28.setObjectName(_fromUtf8("lineEdit_28"))
        self.gridLayout_2.addWidget(self.lineEdit_28, 2, 3, 1, 1)
        self.widget = matplotlibWidget(Form)
        self.widget.setGeometry(QtCore.QRect(339, 29, 511, 451))
        self.widget.setObjectName(_fromUtf8("widget"))

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #24
0
    def setupUi(self, Landmark):
        Landmark.setObjectName("Landmark")
        Landmark.resize(787, 539)
        self.centralwidget = QtWidgets.QWidget(Landmark)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.Display_Landmarks = matplotlibWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.Display_Landmarks.sizePolicy().hasHeightForWidth())
        self.Display_Landmarks.setSizePolicy(sizePolicy)
        self.Display_Landmarks.setObjectName("Display_Landmarks")
        self.gridLayout_2.addWidget(self.Display_Landmarks, 0, 0, 2, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.Button_LoadLandmark = QtWidgets.QPushButton(self.groupBox_2)
        self.Button_LoadLandmark.setObjectName("Button_LoadLandmark")
        self.gridLayout.addWidget(self.Button_LoadLandmark, 0, 0, 1, 1)
        self.Text_Filename = QtWidgets.QTextBrowser(self.groupBox_2)
        self.Text_Filename.setObjectName("Text_Filename")
        self.gridLayout.addWidget(self.Text_Filename, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_2, 0, 1, 1, 1)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox_autodetect = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_autodetect.setMinimumSize(QtCore.QSize(215, 0))
        self.groupBox_autodetect.setObjectName("groupBox_autodetect")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_autodetect)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_4 = QtWidgets.QLabel(self.groupBox_autodetect)
        self.label_4.setObjectName("label_4")
        self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1)
        self.d_SourceDetector = QtWidgets.QDoubleSpinBox(
            self.groupBox_autodetect)
        self.d_SourceDetector.setDecimals(1)
        self.d_SourceDetector.setMaximum(400.0)
        self.d_SourceDetector.setObjectName("d_SourceDetector")
        self.gridLayout_4.addWidget(self.d_SourceDetector, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_autodetect)
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 0, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_autodetect)
        self.label_5.setObjectName("label_5")
        self.gridLayout_4.addWidget(self.label_5, 1, 0, 1, 1)
        self.d_ObjectDetector = QtWidgets.QDoubleSpinBox(
            self.groupBox_autodetect)
        self.d_ObjectDetector.setDecimals(1)
        self.d_ObjectDetector.setMaximum(400.0)
        self.d_ObjectDetector.setObjectName("d_ObjectDetector")
        self.gridLayout_4.addWidget(self.d_ObjectDetector, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_autodetect)
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 1, 2, 1, 1)
        self.LabelPixSpace = QtWidgets.QLabel(self.groupBox_autodetect)
        self.LabelPixSpace.setObjectName("LabelPixSpace")
        self.gridLayout_4.addWidget(self.LabelPixSpace, 2, 0, 1, 3)
        self.Button_accptPxSpace = QtWidgets.QPushButton(
            self.groupBox_autodetect)
        self.Button_accptPxSpace.setObjectName("Button_accptPxSpace")
        self.gridLayout_4.addWidget(self.Button_accptPxSpace, 3, 0, 1, 3)
        self.verticalLayout.addWidget(self.groupBox_autodetect)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.Button_defineROI = QtWidgets.QPushButton(self.groupBox)
        self.Button_defineROI.setEnabled(True)
        self.Button_defineROI.setCheckable(True)
        self.Button_defineROI.setChecked(False)
        self.Button_defineROI.setFlat(False)
        self.Button_defineROI.setObjectName("Button_defineROI")
        self.gridLayout_3.addWidget(self.Button_defineROI, 0, 0, 1, 2)
        self.Button_lockEarpin = QtWidgets.QPushButton(self.groupBox)
        self.Button_lockEarpin.setEnabled(True)
        self.Button_lockEarpin.setObjectName("Button_lockEarpin")
        self.gridLayout_3.addWidget(self.Button_lockEarpin, 0, 2, 1, 2)
        self.label_9 = QtWidgets.QLabel(self.groupBox)
        self.label_9.setObjectName("label_9")
        self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1)
        self.TxtEarpinX = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.TxtEarpinX.setDecimals(1)
        self.TxtEarpinX.setMaximum(10000.0)
        self.TxtEarpinX.setSingleStep(0.1)
        self.TxtEarpinX.setObjectName("TxtEarpinX")
        self.gridLayout_3.addWidget(self.TxtEarpinX, 1, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox)
        self.label_10.setObjectName("label_10")
        self.gridLayout_3.addWidget(self.label_10, 1, 2, 1, 1)
        self.TxtEarpinY = QtWidgets.QDoubleSpinBox(self.groupBox)
        self.TxtEarpinY.setDecimals(1)
        self.TxtEarpinY.setMaximum(10000.0)
        self.TxtEarpinY.setSingleStep(0.1)
        self.TxtEarpinY.setObjectName("TxtEarpinY")
        self.gridLayout_3.addWidget(self.TxtEarpinY, 1, 3, 1, 1)
        self.verticalLayout.addWidget(self.groupBox)
        self.Button_Done = QtWidgets.QPushButton(self.centralwidget)
        self.Button_Done.setObjectName("Button_Done")
        self.verticalLayout.addWidget(self.Button_Done)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout_2.addLayout(self.verticalLayout, 1, 1, 1, 1)
        Landmark.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(Landmark)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 787, 26))
        self.menubar.setObjectName("menubar")
        Landmark.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(Landmark)
        self.statusbar.setObjectName("statusbar")
        Landmark.setStatusBar(self.statusbar)

        self.retranslateUi(Landmark)
        QtCore.QMetaObject.connectSlotsByName(Landmark)