def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1027, 601)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setBaseSize(QtCore.QSize(400, 300))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                "../../../../../../../../../usr/share/icons/oxygen/16x16/apps/esd.png"
            ), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setMinimumSize(QtCore.QSize(900, 500))
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.tab.sizePolicy().hasHeightForWidth())
        self.tab.setSizePolicy(sizePolicy)
        self.tab.setObjectName("tab")
        self.gridLayout = QtGui.QGridLayout(self.tab)
        self.gridLayout.setObjectName("gridLayout")
        self.plot_temp = KPlotWidget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.plot_temp.sizePolicy().hasHeightForWidth())
        self.plot_temp.setSizePolicy(sizePolicy)
        self.plot_temp.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_temp.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_temp.setProperty("grid", False)
        self.plot_temp.setObjectName("plot_temp")
        self.gridLayout.addWidget(self.plot_temp, 1, 2, 1, 1)
        self.label_temp = QtGui.QLabel(self.tab)
        self.label_temp.setObjectName("label_temp")
        self.gridLayout.addWidget(self.label_temp, 0, 2, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_4)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_hum = QtGui.QLabel(self.tab_4)
        self.label_hum.setObjectName("label_hum")
        self.gridLayout_4.addWidget(self.label_hum, 0, 0, 1, 1)
        self.plot_hum = KPlotWidget(self.tab_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.plot_hum.sizePolicy().hasHeightForWidth())
        self.plot_hum.setSizePolicy(sizePolicy)
        self.plot_hum.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_hum.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_hum.setObjectName("plot_hum")
        self.gridLayout_4.addWidget(self.plot_hum, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_3)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_par = QtGui.QLabel(self.tab_3)
        self.label_par.setObjectName("label_par")
        self.gridLayout_3.addWidget(self.label_par, 0, 0, 1, 1)
        self.plot_par = KPlotWidget(self.tab_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.plot_par.sizePolicy().hasHeightForWidth())
        self.plot_par.setSizePolicy(sizePolicy)
        self.plot_par.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_par.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_par.setObjectName("plot_par")
        self.gridLayout_3.addWidget(self.plot_par, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_5)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_tsr = QtGui.QLabel(self.tab_5)
        self.label_tsr.setObjectName("label_tsr")
        self.gridLayout_5.addWidget(self.label_tsr, 0, 0, 1, 1)
        self.plot_tsr = KPlotWidget(self.tab_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.plot_tsr.sizePolicy().hasHeightForWidth())
        self.plot_tsr.setSizePolicy(sizePolicy)
        self.plot_tsr.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_tsr.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_tsr.setObjectName("plot_tsr")
        self.gridLayout_5.addWidget(self.plot_tsr, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_2 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.plot_volt = KPlotWidget(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.plot_volt.sizePolicy().hasHeightForWidth())
        self.plot_volt.setSizePolicy(sizePolicy)
        self.plot_volt.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_volt.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_volt.setObjectName("plot_volt")
        self.gridLayout_2.addWidget(self.plot_volt, 1, 0, 1, 1)
        self.label_volt = QtGui.QLabel(self.tab_2)
        self.label_volt.setObjectName("label_volt")
        self.gridLayout_2.addWidget(self.label_volt, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.horizontalLayout_2.addWidget(self.tabWidget)
        self.horizontalLayout.addLayout(self.horizontalLayout_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1027, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statusbar.sizePolicy().hasHeightForWidth())
        self.statusbar.setSizePolicy(sizePolicy)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName("actionUpdate")
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionUpdate)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menubar.addAction(self.menuFile.menuAction())
        self.toolBar.addAction(self.actionUpdate)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 2
0
    def setupUi(self, pyRoast):
        pyRoast.setObjectName(_fromUtf8("pyRoast"))
        pyRoast.resize(823, 627)
        self.centralwidget = QtGui.QWidget(pyRoast)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_18 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_18.setObjectName(_fromUtf8("horizontalLayout_18"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_8 = QtGui.QLabel(self.centralwidget)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.verticalLayout_4.addWidget(self.label_8)
        self.coffee = QtGui.QLineEdit(self.centralwidget)
        self.coffee.setObjectName(_fromUtf8("coffee"))
        self.verticalLayout_4.addWidget(self.coffee)
        self.label_9 = QtGui.QLabel(self.centralwidget)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.verticalLayout_4.addWidget(self.label_9)
        self.notes = QtGui.QTextEdit(self.centralwidget)
        self.notes.setMinimumSize(QtCore.QSize(200, 0))
        self.notes.setObjectName(_fromUtf8("notes"))
        self.verticalLayout_4.addWidget(self.notes)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.bSave = QtGui.QPushButton(self.centralwidget)
        self.bSave.setObjectName(_fromUtf8("bSave"))
        self.horizontalLayout_7.addWidget(self.bSave)
        self.bSaveAs = QtGui.QPushButton(self.centralwidget)
        self.bSaveAs.setObjectName(_fromUtf8("bSaveAs"))
        self.horizontalLayout_7.addWidget(self.bSaveAs)
        self.bQuit = QtGui.QPushButton(self.centralwidget)
        self.bQuit.setObjectName(_fromUtf8("bQuit"))
        self.horizontalLayout_7.addWidget(self.bQuit)
        self.verticalLayout_4.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_8.addLayout(self.verticalLayout_4)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_11 = QtGui.QLabel(self.centralwidget)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.verticalLayout_3.addWidget(self.label_11)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setKerning(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_4.addWidget(self.label_2)
        self.tLoadFile = QtGui.QComboBox(self.centralwidget)
        self.tLoadFile.setObjectName(_fromUtf8("tLoadFile"))
        self.horizontalLayout_4.addWidget(self.tLoadFile)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.label_10 = QtGui.QLabel(self.centralwidget)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.verticalLayout_3.addWidget(self.label_10)
        self.tLoadNotes = QtGui.QTextEdit(self.centralwidget)
        self.tLoadNotes.setMinimumSize(QtCore.QSize(200, 0))
        self.tLoadNotes.setObjectName(_fromUtf8("tLoadNotes"))
        self.verticalLayout_3.addWidget(self.tLoadNotes)
        self.horizontalLayout_8.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_8, 1, 0, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.cAutoPower = QtGui.QCheckBox(self.centralwidget)
        self.cAutoPower.setMaximumSize(QtCore.QSize(100, 16777215))
        self.cAutoPower.setObjectName(_fromUtf8("cAutoPower"))
        self.verticalLayout_2.addWidget(self.cAutoPower)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setMaximumSize(QtCore.QSize(50, 16777215))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_5.addWidget(self.label_7)
        self.vTarget = QtGui.QDoubleSpinBox(self.centralwidget)
        self.vTarget.setMaximumSize(QtCore.QSize(50, 16777215))
        self.vTarget.setDecimals(1)
        self.vTarget.setMaximum(400.0)
        self.vTarget.setSingleStep(0.1)
        self.vTarget.setObjectName(_fromUtf8("vTarget"))
        self.horizontalLayout_5.addWidget(self.vTarget)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.sPowerSlider = QtGui.QSlider(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sPowerSlider.sizePolicy().hasHeightForWidth())
        self.sPowerSlider.setSizePolicy(sizePolicy)
        self.sPowerSlider.setMaximumSize(QtCore.QSize(50, 300))
        self.sPowerSlider.setBaseSize(QtCore.QSize(0, 0))
        self.sPowerSlider.setMaximum(100)
        self.sPowerSlider.setOrientation(QtCore.Qt.Vertical)
        self.sPowerSlider.setObjectName(_fromUtf8("sPowerSlider"))
        self.horizontalLayout_9.addWidget(self.sPowerSlider)
        self.tPower = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tPower.sizePolicy().hasHeightForWidth())
        self.tPower.setSizePolicy(sizePolicy)
        self.tPower.setMinimumSize(QtCore.QSize(40, 0))
        self.tPower.setMaximumSize(QtCore.QSize(50, 16777215))
        self.tPower.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tPower.setObjectName(_fromUtf8("tPower"))
        self.horizontalLayout_9.addWidget(self.tPower)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_9.addWidget(self.label)
        self.verticalLayout_2.addLayout(self.horizontalLayout_9)
        self.gridLayout.addLayout(self.verticalLayout_2, 1, 1, 1, 1)
        self.verticalLayout_11 = QtGui.QVBoxLayout()
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.CSLogo = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.CSLogo.sizePolicy().hasHeightForWidth())
        self.CSLogo.setSizePolicy(sizePolicy)
        self.CSLogo.setMinimumSize(QtCore.QSize(100, 0))
        self.CSLogo.setMaximumSize(QtCore.QSize(171, 16777215))
        self.CSLogo.setObjectName(_fromUtf8("CSLogo"))
        self.verticalLayout_11.addWidget(self.CSLogo)
        self.tMessages = QtGui.QTextBrowser(self.centralwidget)
        self.tMessages.setObjectName(_fromUtf8("tMessages"))
        self.verticalLayout_11.addWidget(self.tMessages)
        self.gridLayout.addLayout(self.verticalLayout_11, 1, 2, 1, 1)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout_14 = QtGui.QHBoxLayout()
        self.horizontalLayout_14.setObjectName(_fromUtf8("horizontalLayout_14"))
        self.label_15 = QtGui.QLabel(self.centralwidget)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.horizontalLayout_14.addWidget(self.label_15)
        self.tCurrentTemperature = QtGui.QLabel(self.centralwidget)
        self.tCurrentTemperature.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tCurrentTemperature.setObjectName(_fromUtf8("tCurrentTemperature"))
        self.horizontalLayout_14.addWidget(self.tCurrentTemperature)
        self.verticalLayout_6.addLayout(self.horizontalLayout_14)
        self.horizontalLayout_15 = QtGui.QHBoxLayout()
        self.horizontalLayout_15.setObjectName(_fromUtf8("horizontalLayout_15"))
        self.label_16 = QtGui.QLabel(self.centralwidget)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.horizontalLayout_15.addWidget(self.label_16)
        self.tMaxTemperature = QtGui.QLabel(self.centralwidget)
        self.tMaxTemperature.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tMaxTemperature.setObjectName(_fromUtf8("tMaxTemperature"))
        self.horizontalLayout_15.addWidget(self.tMaxTemperature)
        self.verticalLayout_6.addLayout(self.horizontalLayout_15)
        self.horizontalLayout_16 = QtGui.QHBoxLayout()
        self.horizontalLayout_16.setObjectName(_fromUtf8("horizontalLayout_16"))
        self.label_17 = QtGui.QLabel(self.centralwidget)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.horizontalLayout_16.addWidget(self.label_17)
        self.tRateOfChange = QtGui.QLabel(self.centralwidget)
        self.tRateOfChange.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tRateOfChange.setObjectName(_fromUtf8("tRateOfChange"))
        self.horizontalLayout_16.addWidget(self.tRateOfChange)
        self.verticalLayout_6.addLayout(self.horizontalLayout_16)
        self.horizontalLayout_17 = QtGui.QHBoxLayout()
        self.horizontalLayout_17.setObjectName(_fromUtf8("horizontalLayout_17"))
        self.label_18 = QtGui.QLabel(self.centralwidget)
        self.label_18.setMaximumSize(QtCore.QSize(16777215, 30))
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.horizontalLayout_17.addWidget(self.label_18)
        self.tElapsed = QtGui.QLabel(self.centralwidget)
        self.tElapsed.setMaximumSize(QtCore.QSize(16777215, 30))
        self.tElapsed.setText(_fromUtf8(""))
        self.tElapsed.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tElapsed.setObjectName(_fromUtf8("tElapsed"))
        self.horizontalLayout_17.addWidget(self.tElapsed)
        self.verticalLayout_6.addLayout(self.horizontalLayout_17)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem)
        self.bFirstCrack = QtGui.QPushButton(self.centralwidget)
        self.bFirstCrack.setObjectName(_fromUtf8("bFirstCrack"))
        self.verticalLayout_6.addWidget(self.bFirstCrack)
        self.bRollingFirstCrack = QtGui.QPushButton(self.centralwidget)
        self.bRollingFirstCrack.setObjectName(_fromUtf8("bRollingFirstCrack"))
        self.verticalLayout_6.addWidget(self.bRollingFirstCrack)
        self.bSecondCrack = QtGui.QPushButton(self.centralwidget)
        self.bSecondCrack.setObjectName(_fromUtf8("bSecondCrack"))
        self.verticalLayout_6.addWidget(self.bSecondCrack)
        self.bRollingSecondCrack = QtGui.QPushButton(self.centralwidget)
        self.bRollingSecondCrack.setObjectName(_fromUtf8("bRollingSecondCrack"))
        self.verticalLayout_6.addWidget(self.bRollingSecondCrack)
        self.bReset = QtGui.QPushButton(self.centralwidget)
        self.bReset.setObjectName(_fromUtf8("bReset"))
        self.verticalLayout_6.addWidget(self.bReset)
        self.gridLayout.addLayout(self.verticalLayout_6, 0, 2, 1, 1)
        self.TemperaturePlot = KPlotWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(self.TemperaturePlot.sizePolicy().hasHeightForWidth())
        self.TemperaturePlot.setSizePolicy(sizePolicy)
        self.TemperaturePlot.setMinimumSize(QtCore.QSize(600, 400))
        self.TemperaturePlot.setMaximumSize(QtCore.QSize(2000, 2000))
        self.TemperaturePlot.setSizeIncrement(QtCore.QSize(1, 1))
        self.TemperaturePlot.setBaseSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.TemperaturePlot.setFont(font)
        self.TemperaturePlot.setProperty("backgroundColor", QtGui.QColor(0, 0, 0))
        self.TemperaturePlot.setObjectName(_fromUtf8("TemperaturePlot"))
        self.gridLayout.addWidget(self.TemperaturePlot, 0, 0, 1, 2)
        self.horizontalLayout_18.addLayout(self.gridLayout)
        pyRoast.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(pyRoast)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 823, 19))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        pyRoast.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(pyRoast)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        pyRoast.setStatusBar(self.statusbar)

        self.retranslateUi(pyRoast)
        self.tLoadFile.setCurrentIndex(-1)
        QtCore.QObject.connect(self.sPowerSlider, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.tPower.setNum)
        QtCore.QObject.connect(self.vTarget, QtCore.SIGNAL(_fromUtf8("valueChanged(double)")), self.tPower.setNum)
        QtCore.QObject.connect(self.tLoadFile, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), self.tLoadNotes.update)
        QtCore.QMetaObject.connectSlotsByName(pyRoast)
Ejemplo n.º 3
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(880, 804)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.window_splitter = QtGui.QSplitter(self.centralwidget)
        self.window_splitter.setOrientation(QtCore.Qt.Horizontal)
        self.window_splitter.setObjectName(_fromUtf8("window_splitter"))
        self.plot_splitter = QtGui.QSplitter(self.window_splitter)
        self.plot_splitter.setOrientation(QtCore.Qt.Vertical)
        self.plot_splitter.setObjectName(_fromUtf8("plot_splitter"))
        self.plot_sum = KPlotWidget(self.plot_splitter)
        self.plot_sum.setProperty("backgroundColor", QtGui.QColor(45, 45, 45))
        self.plot_sum.setProperty("foregroundColor", QtGui.QColor(199, 199, 199))
        self.plot_sum.setProperty("gridColor", QtGui.QColor(121, 121, 124))
        self.plot_sum.setProperty("grid", True)
        self.plot_sum.setObjectName(_fromUtf8("plot_sum"))
        self.verticalLayoutWidget = QtGui.QWidget(self.window_splitter)
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.mode_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.mode_group.setMinimumSize(QtCore.QSize(0, 0))
        self.mode_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.mode_group.setFlat(False)
        self.mode_group.setCheckable(True)
        self.mode_group.setObjectName(_fromUtf8("mode_group"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mode_group)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mode_interval = QtGui.QRadioButton(self.mode_group)
        self.mode_interval.setEnabled(False)
        self.mode_interval.setChecked(False)
        self.mode_interval.setObjectName(_fromUtf8("mode_interval"))
        self.verticalLayout_2.addWidget(self.mode_interval)
        self.mode_gradient = QtGui.QRadioButton(self.mode_group)
        self.mode_gradient.setChecked(True)
        self.mode_gradient.setObjectName(_fromUtf8("mode_gradient"))
        self.verticalLayout_2.addWidget(self.mode_gradient)
        self.invertSignalCheckbox = QtGui.QCheckBox(self.mode_group)
        self.invertSignalCheckbox.setChecked(True)
        self.invertSignalCheckbox.setObjectName(_fromUtf8("invertSignalCheckbox"))
        self.verticalLayout_2.addWidget(self.invertSignalCheckbox)
        self.verticalLayout_3.addWidget(self.mode_group)
        self.gradientSettings_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.gradientSettings_group.setEnabled(True)
        self.gradientSettings_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.gradientSettings_group.setCheckable(True)
        self.gradientSettings_group.setObjectName(_fromUtf8("gradientSettings_group"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.gradientSettings_group)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self._integration_g = QtGui.QLabel(self.gradientSettings_group)
        self._integration_g.setObjectName(_fromUtf8("_integration_g"))
        self.horizontalLayout_5.addWidget(self._integration_g)
        self.gradientSettings_integrate = QtGui.QLineEdit(self.gradientSettings_group)
        self.gradientSettings_integrate.setObjectName(_fromUtf8("gradientSettings_integrate"))
        self.horizontalLayout_5.addWidget(self.gradientSettings_integrate)
        self.verticalLayout_6.addLayout(self.horizontalLayout_5)
        self.verticalLayout_3.addWidget(self.gradientSettings_group)
        self.limits_box = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.limits_box.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.limits_box.setCheckable(False)
        self.limits_box.setObjectName(_fromUtf8("limits_box"))
        self.gridLayout = QtGui.QGridLayout(self.limits_box)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.limits_label_x = QtGui.QLabel(self.limits_box)
        self.limits_label_x.setObjectName(_fromUtf8("limits_label_x"))
        self.gridLayout.addWidget(self.limits_label_x, 3, 0, 1, 1)
        self.limits_autoFromIntegrated = QtGui.QRadioButton(self.limits_box)
        self.limits_autoFromIntegrated.setObjectName(_fromUtf8("limits_autoFromIntegrated"))
        self.gridLayout.addWidget(self.limits_autoFromIntegrated, 1, 1, 1, 1)
        self.limits_slider_x = QtGui.QSlider(self.limits_box)
        self.limits_slider_x.setSingleStep(10)
        self.limits_slider_x.setPageStep(5000)
        self.limits_slider_x.setOrientation(QtCore.Qt.Horizontal)
        self.limits_slider_x.setInvertedAppearance(False)
        self.limits_slider_x.setInvertedControls(False)
        self.limits_slider_x.setObjectName(_fromUtf8("limits_slider_x"))
        self.gridLayout.addWidget(self.limits_slider_x, 3, 1, 1, 1)
        self.limits_slider_y = QtGui.QSlider(self.limits_box)
        self.limits_slider_y.setSingleStep(10)
        self.limits_slider_y.setPageStep(5000)
        self.limits_slider_y.setOrientation(QtCore.Qt.Horizontal)
        self.limits_slider_y.setInvertedAppearance(False)
        self.limits_slider_y.setInvertedControls(False)
        self.limits_slider_y.setObjectName(_fromUtf8("limits_slider_y"))
        self.gridLayout.addWidget(self.limits_slider_y, 4, 1, 1, 1)
        self.limits_autoFromData = QtGui.QRadioButton(self.limits_box)
        self.limits_autoFromData.setChecked(True)
        self.limits_autoFromData.setObjectName(_fromUtf8("limits_autoFromData"))
        self.gridLayout.addWidget(self.limits_autoFromData, 0, 1, 1, 1)
        self.limits_label_y = QtGui.QLabel(self.limits_box)
        self.limits_label_y.setObjectName(_fromUtf8("limits_label_y"))
        self.gridLayout.addWidget(self.limits_label_y, 4, 0, 1, 1)
        self.limits_text_y = QtGui.QLineEdit(self.limits_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.limits_text_y.sizePolicy().hasHeightForWidth())
        self.limits_text_y.setSizePolicy(sizePolicy)
        self.limits_text_y.setMaximumSize(QtCore.QSize(60, 60))
        self.limits_text_y.setObjectName(_fromUtf8("limits_text_y"))
        self.gridLayout.addWidget(self.limits_text_y, 4, 2, 1, 1)
        self.limits_text_x = QtGui.QLineEdit(self.limits_box)
        self.limits_text_x.setMaximumSize(QtCore.QSize(60, 60))
        self.limits_text_x.setObjectName(_fromUtf8("limits_text_x"))
        self.gridLayout.addWidget(self.limits_text_x, 3, 2, 1, 1)
        self.limits_manual = QtGui.QRadioButton(self.limits_box)
        self.limits_manual.setObjectName(_fromUtf8("limits_manual"))
        self.gridLayout.addWidget(self.limits_manual, 2, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.limits_box)
        self.preview_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.preview_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.preview_group.setCheckable(True)
        self.preview_group.setObjectName(_fromUtf8("preview_group"))
        self.verticalLayout = QtGui.QVBoxLayout(self.preview_group)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self._every = QtGui.QLabel(self.preview_group)
        self._every.setObjectName(_fromUtf8("_every"))
        self.horizontalLayout_2.addWidget(self._every)
        self.preview_repeatInterval = QtGui.QLineEdit(self.preview_group)
        self.preview_repeatInterval.setObjectName(_fromUtf8("preview_repeatInterval"))
        self.horizontalLayout_2.addWidget(self.preview_repeatInterval)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addWidget(self.preview_group)
        self.preview_now = QtGui.QPushButton(self.verticalLayoutWidget)
        self.preview_now.setObjectName(_fromUtf8("preview_now"))
        self.verticalLayout_3.addWidget(self.preview_now)
        self.record_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.record_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.record_group.setObjectName(_fromUtf8("record_group"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.record_group)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.record_url = KUrlComboRequester(self.record_group)
        self.record_url.setObjectName(_fromUtf8("record_url"))
        self.verticalLayout_4.addWidget(self.record_url)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label = QtGui.QLabel(self.record_group)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_3.addWidget(self.label)
        self.record_prefix = QtGui.QLineEdit(self.record_group)
        self.record_prefix.setObjectName(_fromUtf8("record_prefix"))
        self.horizontalLayout_3.addWidget(self.record_prefix)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.record_startstop = QtGui.QPushButton(self.record_group)
        self.record_startstop.setCheckable(True)
        self.record_startstop.setObjectName(_fromUtf8("record_startstop"))
        self.verticalLayout_4.addWidget(self.record_startstop)
        self.verticalLayout_3.addWidget(self.record_group)
        self.control_clear = QtGui.QPushButton(self.verticalLayoutWidget)
        self.control_clear.setObjectName(_fromUtf8("control_clear"))
        self.verticalLayout_3.addWidget(self.control_clear)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.connectionStatus = QtGui.QLabel(self.verticalLayoutWidget)
        self.connectionStatus.setObjectName(_fromUtf8("connectionStatus"))
        self.horizontalLayout_4.addWidget(self.connectionStatus)
        self.reconnectButton = QtGui.QPushButton(self.verticalLayoutWidget)
        self.reconnectButton.setEnabled(False)
        self.reconnectButton.setObjectName(_fromUtf8("reconnectButton"))
        self.horizontalLayout_4.addWidget(self.reconnectButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.analogdisplay_layout = QtGui.QGridLayout()
        self.analogdisplay_layout.setObjectName(_fromUtf8("analogdisplay_layout"))
        self.temperature_value = QtGui.QLabel(self.verticalLayoutWidget)
        self.temperature_value.setStyleSheet(_fromUtf8("font-family:monospace;\n"
"font-size:20pt;\n"
"color:#FF4000;\n"
"background-color:black;"))
        self.temperature_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.temperature_value.setObjectName(_fromUtf8("temperature_value"))
        self.analogdisplay_layout.addWidget(self.temperature_value, 2, 1, 1, 1)
        self.voltage_mean_label = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_mean_label.setText(_fromUtf8(""))
        self.voltage_mean_label.setObjectName(_fromUtf8("voltage_mean_label"))
        self.analogdisplay_layout.addWidget(self.voltage_mean_label, 3, 0, 1, 1)
        self.voltage_label = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_label.setObjectName(_fromUtf8("voltage_label"))
        self.analogdisplay_layout.addWidget(self.voltage_label, 1, 0, 1, 1)
        self.temperature_label_2 = QtGui.QLabel(self.verticalLayoutWidget)
        self.temperature_label_2.setObjectName(_fromUtf8("temperature_label_2"))
        self.analogdisplay_layout.addWidget(self.temperature_label_2, 1, 1, 1, 1)
        self.voltage_value = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_value.setStyleSheet(_fromUtf8("font-family:monospace;\n"
"font-size:20pt;\n"
"color:#0084FF;\n"
"background-color:black;"))
        self.voltage_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.voltage_value.setMargin(20)
        self.voltage_value.setObjectName(_fromUtf8("voltage_value"))
        self.analogdisplay_layout.addWidget(self.voltage_value, 2, 0, 1, 1)
        self.line = QtGui.QFrame(self.verticalLayoutWidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.analogdisplay_layout.addWidget(self.line, 0, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.analogdisplay_layout)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.verticalLayout_5.addWidget(self.window_splitter)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 880, 22))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuData = QtGui.QMenu(self.menubar)
        self.menuData.setObjectName(_fromUtf8("menuData"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.actionSave_displayed = QtGui.QAction(MainWindow)
        self.actionSave_displayed.setObjectName(_fromUtf8("actionSave_displayed"))
        self.actionOpen_and_continue = QtGui.QAction(MainWindow)
        self.actionOpen_and_continue.setEnabled(False)
        self.actionOpen_and_continue.setObjectName(_fromUtf8("actionOpen_and_continue"))
        self.menuFile.addAction(self.actionQuit)
        self.menuData.addAction(self.actionSave_displayed)
        self.menuData.addAction(self.actionOpen_and_continue)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuData.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL(_fromUtf8("activated()")), MainWindow.close)
        QtCore.QObject.connect(self.mode_interval, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.gradientSettings_group.setHidden)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 4
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1027, 601)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setBaseSize(QtCore.QSize(400, 300))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../../../../../../../../../usr/share/icons/oxygen/16x16/apps/esd.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
        self.centralwidget.setSizePolicy(sizePolicy)
        self.centralwidget.setMinimumSize(QtCore.QSize(900, 500))
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QtCore.QSize(0, 0))
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.tab.sizePolicy().hasHeightForWidth())
        self.tab.setSizePolicy(sizePolicy)
        self.tab.setObjectName("tab")
        self.gridLayout = QtGui.QGridLayout(self.tab)
        self.gridLayout.setObjectName("gridLayout")
        self.plot_temp = KPlotWidget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plot_temp.sizePolicy().hasHeightForWidth())
        self.plot_temp.setSizePolicy(sizePolicy)
        self.plot_temp.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_temp.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_temp.setProperty("grid", False)
        self.plot_temp.setObjectName("plot_temp")
        self.gridLayout.addWidget(self.plot_temp, 1, 2, 1, 1)
        self.label_temp = QtGui.QLabel(self.tab)
        self.label_temp.setObjectName("label_temp")
        self.gridLayout.addWidget(self.label_temp, 0, 2, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_4)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_hum = QtGui.QLabel(self.tab_4)
        self.label_hum.setObjectName("label_hum")
        self.gridLayout_4.addWidget(self.label_hum, 0, 0, 1, 1)
        self.plot_hum = KPlotWidget(self.tab_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plot_hum.sizePolicy().hasHeightForWidth())
        self.plot_hum.setSizePolicy(sizePolicy)
        self.plot_hum.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_hum.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_hum.setObjectName("plot_hum")
        self.gridLayout_4.addWidget(self.plot_hum, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_3)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_par = QtGui.QLabel(self.tab_3)
        self.label_par.setObjectName("label_par")
        self.gridLayout_3.addWidget(self.label_par, 0, 0, 1, 1)
        self.plot_par = KPlotWidget(self.tab_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plot_par.sizePolicy().hasHeightForWidth())
        self.plot_par.setSizePolicy(sizePolicy)
        self.plot_par.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_par.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_par.setObjectName("plot_par")
        self.gridLayout_3.addWidget(self.plot_par, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_5)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_tsr = QtGui.QLabel(self.tab_5)
        self.label_tsr.setObjectName("label_tsr")
        self.gridLayout_5.addWidget(self.label_tsr, 0, 0, 1, 1)
        self.plot_tsr = KPlotWidget(self.tab_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plot_tsr.sizePolicy().hasHeightForWidth())
        self.plot_tsr.setSizePolicy(sizePolicy)
        self.plot_tsr.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_tsr.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_tsr.setObjectName("plot_tsr")
        self.gridLayout_5.addWidget(self.plot_tsr, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_2 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.plot_volt = KPlotWidget(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.plot_volt.sizePolicy().hasHeightForWidth())
        self.plot_volt.setSizePolicy(sizePolicy)
        self.plot_volt.setBackgroundColor(QtGui.QColor(255, 255, 255))
        self.plot_volt.setForegroundColor(QtGui.QColor(0, 0, 0))
        self.plot_volt.setObjectName("plot_volt")
        self.gridLayout_2.addWidget(self.plot_volt, 1, 0, 1, 1)
        self.label_volt = QtGui.QLabel(self.tab_2)
        self.label_volt.setObjectName("label_volt")
        self.gridLayout_2.addWidget(self.label_volt, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.horizontalLayout_2.addWidget(self.tabWidget)
        self.horizontalLayout.addLayout(self.horizontalLayout_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1027, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.statusbar.sizePolicy().hasHeightForWidth())
        self.statusbar.setSizePolicy(sizePolicy)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName("actionUpdate")
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName("actionSave")
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionUpdate)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menubar.addAction(self.menuFile.menuAction())
        self.toolBar.addAction(self.actionUpdate)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Ejemplo n.º 5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(880, 804)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.window_splitter = QtGui.QSplitter(self.centralwidget)
        self.window_splitter.setOrientation(QtCore.Qt.Horizontal)
        self.window_splitter.setObjectName(_fromUtf8("window_splitter"))
        self.plot_splitter = QtGui.QSplitter(self.window_splitter)
        self.plot_splitter.setOrientation(QtCore.Qt.Vertical)
        self.plot_splitter.setObjectName(_fromUtf8("plot_splitter"))
        self.plot_sum = KPlotWidget(self.plot_splitter)
        self.plot_sum.setProperty("backgroundColor", QtGui.QColor(45, 45, 45))
        self.plot_sum.setProperty("foregroundColor", QtGui.QColor(199, 199, 199))
        self.plot_sum.setProperty("gridColor", QtGui.QColor(121, 121, 124))
        self.plot_sum.setProperty("grid", True)
        self.plot_sum.setObjectName(_fromUtf8("plot_sum"))
        self.verticalLayoutWidget = QtGui.QWidget(self.window_splitter)
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.mode_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.mode_group.setMinimumSize(QtCore.QSize(0, 0))
        self.mode_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.mode_group.setFlat(False)
        self.mode_group.setCheckable(True)
        self.mode_group.setObjectName(_fromUtf8("mode_group"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mode_group)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mode_interval = QtGui.QRadioButton(self.mode_group)
        self.mode_interval.setEnabled(False)
        self.mode_interval.setChecked(False)
        self.mode_interval.setObjectName(_fromUtf8("mode_interval"))
        self.verticalLayout_2.addWidget(self.mode_interval)
        self.mode_gradient = QtGui.QRadioButton(self.mode_group)
        self.mode_gradient.setChecked(True)
        self.mode_gradient.setObjectName(_fromUtf8("mode_gradient"))
        self.verticalLayout_2.addWidget(self.mode_gradient)
        self.invertSignalCheckbox = QtGui.QCheckBox(self.mode_group)
        self.invertSignalCheckbox.setChecked(True)
        self.invertSignalCheckbox.setObjectName(_fromUtf8("invertSignalCheckbox"))
        self.verticalLayout_2.addWidget(self.invertSignalCheckbox)
        self.verticalLayout_3.addWidget(self.mode_group)
        self.gradientSettings_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.gradientSettings_group.setEnabled(True)
        self.gradientSettings_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.gradientSettings_group.setCheckable(True)
        self.gradientSettings_group.setObjectName(_fromUtf8("gradientSettings_group"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.gradientSettings_group)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self._integration_g = QtGui.QLabel(self.gradientSettings_group)
        self._integration_g.setObjectName(_fromUtf8("_integration_g"))
        self.horizontalLayout_5.addWidget(self._integration_g)
        self.gradientSettings_integrate = QtGui.QLineEdit(self.gradientSettings_group)
        self.gradientSettings_integrate.setObjectName(_fromUtf8("gradientSettings_integrate"))
        self.horizontalLayout_5.addWidget(self.gradientSettings_integrate)
        self.verticalLayout_6.addLayout(self.horizontalLayout_5)
        self.verticalLayout_3.addWidget(self.gradientSettings_group)
        self.limits_box = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.limits_box.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.limits_box.setCheckable(False)
        self.limits_box.setObjectName(_fromUtf8("limits_box"))
        self.gridLayout = QtGui.QGridLayout(self.limits_box)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.limits_label_x = QtGui.QLabel(self.limits_box)
        self.limits_label_x.setObjectName(_fromUtf8("limits_label_x"))
        self.gridLayout.addWidget(self.limits_label_x, 3, 0, 1, 1)
        self.limits_autoFromIntegrated = QtGui.QRadioButton(self.limits_box)
        self.limits_autoFromIntegrated.setObjectName(_fromUtf8("limits_autoFromIntegrated"))
        self.gridLayout.addWidget(self.limits_autoFromIntegrated, 1, 1, 1, 1)
        self.limits_slider_x = QtGui.QSlider(self.limits_box)
        self.limits_slider_x.setSingleStep(10)
        self.limits_slider_x.setPageStep(5000)
        self.limits_slider_x.setOrientation(QtCore.Qt.Horizontal)
        self.limits_slider_x.setInvertedAppearance(False)
        self.limits_slider_x.setInvertedControls(False)
        self.limits_slider_x.setObjectName(_fromUtf8("limits_slider_x"))
        self.gridLayout.addWidget(self.limits_slider_x, 3, 1, 1, 1)
        self.limits_slider_y = QtGui.QSlider(self.limits_box)
        self.limits_slider_y.setSingleStep(10)
        self.limits_slider_y.setPageStep(5000)
        self.limits_slider_y.setOrientation(QtCore.Qt.Horizontal)
        self.limits_slider_y.setInvertedAppearance(False)
        self.limits_slider_y.setInvertedControls(False)
        self.limits_slider_y.setObjectName(_fromUtf8("limits_slider_y"))
        self.gridLayout.addWidget(self.limits_slider_y, 4, 1, 1, 1)
        self.limits_autoFromData = QtGui.QRadioButton(self.limits_box)
        self.limits_autoFromData.setChecked(True)
        self.limits_autoFromData.setObjectName(_fromUtf8("limits_autoFromData"))
        self.gridLayout.addWidget(self.limits_autoFromData, 0, 1, 1, 1)
        self.limits_label_y = QtGui.QLabel(self.limits_box)
        self.limits_label_y.setObjectName(_fromUtf8("limits_label_y"))
        self.gridLayout.addWidget(self.limits_label_y, 4, 0, 1, 1)
        self.limits_text_y = QtGui.QLineEdit(self.limits_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.limits_text_y.sizePolicy().hasHeightForWidth())
        self.limits_text_y.setSizePolicy(sizePolicy)
        self.limits_text_y.setMaximumSize(QtCore.QSize(60, 60))
        self.limits_text_y.setObjectName(_fromUtf8("limits_text_y"))
        self.gridLayout.addWidget(self.limits_text_y, 4, 2, 1, 1)
        self.limits_text_x = QtGui.QLineEdit(self.limits_box)
        self.limits_text_x.setMaximumSize(QtCore.QSize(60, 60))
        self.limits_text_x.setObjectName(_fromUtf8("limits_text_x"))
        self.gridLayout.addWidget(self.limits_text_x, 3, 2, 1, 1)
        self.limits_manual = QtGui.QRadioButton(self.limits_box)
        self.limits_manual.setObjectName(_fromUtf8("limits_manual"))
        self.gridLayout.addWidget(self.limits_manual, 2, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.limits_box)
        self.preview_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.preview_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.preview_group.setCheckable(True)
        self.preview_group.setObjectName(_fromUtf8("preview_group"))
        self.verticalLayout = QtGui.QVBoxLayout(self.preview_group)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self._every = QtGui.QLabel(self.preview_group)
        self._every.setObjectName(_fromUtf8("_every"))
        self.horizontalLayout_2.addWidget(self._every)
        self.preview_repeatInterval = QtGui.QLineEdit(self.preview_group)
        self.preview_repeatInterval.setObjectName(_fromUtf8("preview_repeatInterval"))
        self.horizontalLayout_2.addWidget(self.preview_repeatInterval)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addWidget(self.preview_group)
        self.preview_now = QtGui.QPushButton(self.verticalLayoutWidget)
        self.preview_now.setObjectName(_fromUtf8("preview_now"))
        self.verticalLayout_3.addWidget(self.preview_now)
        self.record_group = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.record_group.setStyleSheet(_fromUtf8(" QGroupBox {\n"
"     border-top: 1px solid black;\n"
"     border-bottom: 1px solid black;\n"
"     margin-top: 1ex;\n"
" }\n"
"\n"
" QGroupBox::title {\n"
"     subcontrol-origin: margin;\n"
"     subcontrol-position: top center;\n"
"     padding: 0 3px;\n"
" }"))
        self.record_group.setObjectName(_fromUtf8("record_group"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.record_group)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.record_url = KUrlComboRequester(self.record_group)
        self.record_url.setObjectName(_fromUtf8("record_url"))
        self.verticalLayout_4.addWidget(self.record_url)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label = QtGui.QLabel(self.record_group)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_3.addWidget(self.label)
        self.record_prefix = QtGui.QLineEdit(self.record_group)
        self.record_prefix.setObjectName(_fromUtf8("record_prefix"))
        self.horizontalLayout_3.addWidget(self.record_prefix)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.record_startstop = QtGui.QPushButton(self.record_group)
        self.record_startstop.setCheckable(True)
        self.record_startstop.setObjectName(_fromUtf8("record_startstop"))
        self.verticalLayout_4.addWidget(self.record_startstop)
        self.verticalLayout_3.addWidget(self.record_group)
        self.control_clear = QtGui.QPushButton(self.verticalLayoutWidget)
        self.control_clear.setObjectName(_fromUtf8("control_clear"))
        self.verticalLayout_3.addWidget(self.control_clear)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.connectionStatus = QtGui.QLabel(self.verticalLayoutWidget)
        self.connectionStatus.setObjectName(_fromUtf8("connectionStatus"))
        self.horizontalLayout_4.addWidget(self.connectionStatus)
        self.reconnectButton = QtGui.QPushButton(self.verticalLayoutWidget)
        self.reconnectButton.setEnabled(False)
        self.reconnectButton.setObjectName(_fromUtf8("reconnectButton"))
        self.horizontalLayout_4.addWidget(self.reconnectButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.analogdisplay_layout = QtGui.QGridLayout()
        self.analogdisplay_layout.setObjectName(_fromUtf8("analogdisplay_layout"))
        self.temperature_value = QtGui.QLabel(self.verticalLayoutWidget)
        self.temperature_value.setStyleSheet(_fromUtf8("font-family:monospace;\n"
"font-size:20pt;\n"
"color:#FF4000;\n"
"background-color:black;"))
        self.temperature_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.temperature_value.setObjectName(_fromUtf8("temperature_value"))
        self.analogdisplay_layout.addWidget(self.temperature_value, 2, 1, 1, 1)
        self.voltage_mean_label = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_mean_label.setText(_fromUtf8(""))
        self.voltage_mean_label.setObjectName(_fromUtf8("voltage_mean_label"))
        self.analogdisplay_layout.addWidget(self.voltage_mean_label, 3, 0, 1, 1)
        self.voltage_label = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_label.setObjectName(_fromUtf8("voltage_label"))
        self.analogdisplay_layout.addWidget(self.voltage_label, 1, 0, 1, 1)
        self.temperature_label_2 = QtGui.QLabel(self.verticalLayoutWidget)
        self.temperature_label_2.setObjectName(_fromUtf8("temperature_label_2"))
        self.analogdisplay_layout.addWidget(self.temperature_label_2, 1, 1, 1, 1)
        self.voltage_value = QtGui.QLabel(self.verticalLayoutWidget)
        self.voltage_value.setStyleSheet(_fromUtf8("font-family:monospace;\n"
"font-size:20pt;\n"
"color:#0084FF;\n"
"background-color:black;"))
        self.voltage_value.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.voltage_value.setMargin(20)
        self.voltage_value.setObjectName(_fromUtf8("voltage_value"))
        self.analogdisplay_layout.addWidget(self.voltage_value, 2, 0, 1, 1)
        self.line = QtGui.QFrame(self.verticalLayoutWidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.analogdisplay_layout.addWidget(self.line, 0, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.analogdisplay_layout)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.verticalLayout_5.addWidget(self.window_splitter)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 880, 22))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuData = QtGui.QMenu(self.menubar)
        self.menuData.setObjectName(_fromUtf8("menuData"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionQuit = QtGui.QAction(MainWindow)
        self.actionQuit.setObjectName(_fromUtf8("actionQuit"))
        self.actionSave_displayed = QtGui.QAction(MainWindow)
        self.actionSave_displayed.setObjectName(_fromUtf8("actionSave_displayed"))
        self.actionOpen_and_continue = QtGui.QAction(MainWindow)
        self.actionOpen_and_continue.setEnabled(False)
        self.actionOpen_and_continue.setObjectName(_fromUtf8("actionOpen_and_continue"))
        self.menuFile.addAction(self.actionQuit)
        self.menuData.addAction(self.actionSave_displayed)
        self.menuData.addAction(self.actionOpen_and_continue)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuData.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL(_fromUtf8("activated()")), MainWindow.close)
        QtCore.QObject.connect(self.mode_interval, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.gradientSettings_group.setHidden)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.mode_group.setTitle(QtGui.QApplication.translate("MainWindow", "Data Acquisition", None, QtGui.QApplication.UnicodeUTF8))
        self.mode_interval.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Acquire chunks of an exact length, and add them all together for the result. To reduce the amount of data to process, <span style=\" font-style:italic;\">Integration [samples]</span> nearby samples are squared and added together.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.mode_interval.setText(QtGui.QApplication.translate("MainWindow", "Interval", None, QtGui.QApplication.UnicodeUTF8))
        self.mode_gradient.setToolTip(QtGui.QApplication.translate("MainWindow", "Acquire chunks of some length, and add all of each chunks\' samples together. For the result, the values obtained by this are just plotted sequentially. This gives a rough plot of signal intensity over time.", None, QtGui.QApplication.UnicodeUTF8))
        self.mode_gradient.setText(QtGui.QApplication.translate("MainWindow", "Gradient", None, QtGui.QApplication.UnicodeUTF8))
        self.invertSignalCheckbox.setText(QtGui.QApplication.translate("MainWindow", "Invert signal", None, QtGui.QApplication.UnicodeUTF8))
        self.gradientSettings_group.setTitle(QtGui.QApplication.translate("MainWindow", "Integrate the data automatically", None, QtGui.QApplication.UnicodeUTF8))
        self._integration_g.setText(QtGui.QApplication.translate("MainWindow", "Integration [samples]:", None, QtGui.QApplication.UnicodeUTF8))
        self.gradientSettings_integrate.setText(QtGui.QApplication.translate("MainWindow", "30", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_box.setTitle(QtGui.QApplication.translate("MainWindow", "Diagram limits", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_label_x.setText(QtGui.QApplication.translate("MainWindow", "min", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_autoFromIntegrated.setText(QtGui.QApplication.translate("MainWindow", "Auto: from integrated data", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_autoFromData.setText(QtGui.QApplication.translate("MainWindow", "Auto: from data", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_label_y.setText(QtGui.QApplication.translate("MainWindow", "max", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_text_y.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_text_x.setText(QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))
        self.limits_manual.setText(QtGui.QApplication.translate("MainWindow", "Manual", None, QtGui.QApplication.UnicodeUTF8))
        self.preview_group.setTitle(QtGui.QApplication.translate("MainWindow", "Auto preview", None, QtGui.QApplication.UnicodeUTF8))
        self._every.setText(QtGui.QApplication.translate("MainWindow", "every [samples]", None, QtGui.QApplication.UnicodeUTF8))
        self.preview_repeatInterval.setText(QtGui.QApplication.translate("MainWindow", "4", None, QtGui.QApplication.UnicodeUTF8))
        self.preview_now.setText(QtGui.QApplication.translate("MainWindow", "Preview now", None, QtGui.QApplication.UnicodeUTF8))
        self.record_group.setTitle(QtGui.QApplication.translate("MainWindow", "Recording", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Prefix:", None, QtGui.QApplication.UnicodeUTF8))
        self.record_prefix.setText(QtGui.QApplication.translate("MainWindow", "data_", None, QtGui.QApplication.UnicodeUTF8))
        self.record_startstop.setText(QtGui.QApplication.translate("MainWindow", "Record", None, QtGui.QApplication.UnicodeUTF8))
        self.control_clear.setText(QtGui.QApplication.translate("MainWindow", "Clear data", None, QtGui.QApplication.UnicodeUTF8))
        self.connectionStatus.setText(QtGui.QApplication.translate("MainWindow", "Not connected", None, QtGui.QApplication.UnicodeUTF8))
        self.reconnectButton.setText(QtGui.QApplication.translate("MainWindow", "Reconnect", None, QtGui.QApplication.UnicodeUTF8))
        self.temperature_value.setText(QtGui.QApplication.translate("MainWindow", "--.--", None, QtGui.QApplication.UnicodeUTF8))
        self.voltage_label.setText(QtGui.QApplication.translate("MainWindow", "Voltage (mV)", None, QtGui.QApplication.UnicodeUTF8))
        self.temperature_label_2.setText(QtGui.QApplication.translate("MainWindow", "Temperature (°C)", None, QtGui.QApplication.UnicodeUTF8))
        self.voltage_value.setText(QtGui.QApplication.translate("MainWindow", "--.--", None, QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
        self.menuData.setTitle(QtGui.QApplication.translate("MainWindow", "Data", None, QtGui.QApplication.UnicodeUTF8))
        self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_displayed.setText(QtGui.QApplication.translate("MainWindow", "Save displayed...", None, QtGui.QApplication.UnicodeUTF8))
        self.actionOpen_and_continue.setText(QtGui.QApplication.translate("MainWindow", "Open and continue...", None, QtGui.QApplication.UnicodeUTF8))