class Ui_MainWidget(object):
    def setupUi(self, MainWidget):
        MainWidget.setObjectName(_fromUtf8("MainWidget"))
        MainWidget.resize(791, 488)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWidget.sizePolicy().hasHeightForWidth())
        MainWidget.setSizePolicy(sizePolicy)
        MainWidget.setMinimumSize(QtCore.QSize(170, 0))
        MainWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        MainWidget.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);\n"
"font: 10pt \"Droid Sans Mono\";"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(MainWidget)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.plotVertLayout = QtGui.QVBoxLayout()
        self.plotVertLayout.setObjectName(_fromUtf8("plotVertLayout"))
        self.vitalsPlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.vitalsPlot.sizePolicy().hasHeightForWidth())
        self.vitalsPlot.setSizePolicy(sizePolicy)
        self.vitalsPlot.setMinimumSize(QtCore.QSize(150, 8))
        self.vitalsPlot.setStyleSheet(_fromUtf8("background-color: rgb(170, 0, 0);"))
        self.vitalsPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.vitalsPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.vitalsPlot.setLineWidth(0)
        self.vitalsPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setObjectName(_fromUtf8("vitalsPlot"))
        self.plotVertLayout.addWidget(self.vitalsPlot)
        self.slowPlotHorizLayout = QtGui.QHBoxLayout()
        self.slowPlotHorizLayout.setObjectName(_fromUtf8("slowPlotHorizLayout"))
        self.textBrowser = QtGui.QTextBrowser(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMinimumSize(QtCore.QSize(136, 30))
        self.textBrowser.setMaximumSize(QtCore.QSize(136, 30))
        self.textBrowser.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
        self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame)
        self.textBrowser.setFrameShadow(QtGui.QFrame.Plain)
        self.textBrowser.setLineWidth(0)
        self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.slowPlotHorizLayout.addWidget(self.textBrowser)
        self.slowUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slowUpdatePeriod.sizePolicy().hasHeightForWidth())
        self.slowUpdatePeriod.setSizePolicy(sizePolicy)
        self.slowUpdatePeriod.setMinimumSize(QtCore.QSize(150, 0))
        self.slowUpdatePeriod.setMaximumSize(QtCore.QSize(150, 16777215))
        self.slowUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
        self.slowUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.slowUpdatePeriod.setDecimals(1)
        self.slowUpdatePeriod.setMinimum(0.1)
        self.slowUpdatePeriod.setMaximum(1000000000.0)
        self.slowUpdatePeriod.setProperty("value", 1.0)
        self.slowUpdatePeriod.setObjectName(_fromUtf8("slowUpdatePeriod"))
        self.slowPlotHorizLayout.addWidget(self.slowUpdatePeriod)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.slowPlotHorizLayout.addItem(spacerItem)
        self.plotVertLayout.addLayout(self.slowPlotHorizLayout)
        self.ventilationPlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ventilationPlot.sizePolicy().hasHeightForWidth())
        self.ventilationPlot.setSizePolicy(sizePolicy)
        self.ventilationPlot.setMinimumSize(QtCore.QSize(150, 10))
        self.ventilationPlot.setStyleSheet(_fromUtf8("background-color: rgb(255, 0, 255);"))
        self.ventilationPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.ventilationPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.ventilationPlot.setLineWidth(0)
        self.ventilationPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ventilationPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ventilationPlot.setObjectName(_fromUtf8("pressurePlot"))
        self.plotVertLayout.addWidget(self.ventilationPlot)
        self.ecgPlot = PlotWidget(MainWidget)
        self.ecgPlot.setMinimumSize(QtCore.QSize(150, 0))
        self.ecgPlot.setStyleSheet(_fromUtf8("background-color: rgb(0, 170, 0);"))
        self.ecgPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.ecgPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.ecgPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ecgPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.ecgPlot.setObjectName(_fromUtf8("ecgPlot"))
        self.plotVertLayout.addWidget(self.ecgPlot)
        self.fastPlotHorizLayout = QtGui.QHBoxLayout()
        self.fastPlotHorizLayout.setObjectName(_fromUtf8("fastPlotHorizLayout"))
        self.textEdit = QtGui.QTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMinimumSize(QtCore.QSize(136, 30))
        self.textEdit.setMaximumSize(QtCore.QSize(136, 30))
        self.textEdit.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.textEdit.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
        self.textEdit.setFrameShape(QtGui.QFrame.NoFrame)
        self.textEdit.setFrameShadow(QtGui.QFrame.Plain)
        self.textEdit.setLineWidth(0)
        self.textEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEdit.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.fastPlotHorizLayout.addWidget(self.textEdit)
        self.fastUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fastUpdatePeriod.sizePolicy().hasHeightForWidth())
        self.fastUpdatePeriod.setSizePolicy(sizePolicy)
        self.fastUpdatePeriod.setMinimumSize(QtCore.QSize(100, 0))
        self.fastUpdatePeriod.setMaximumSize(QtCore.QSize(100, 16777215))
        self.fastUpdatePeriod.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.fastUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
        self.fastUpdatePeriod.setFrame(True)
        self.fastUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.fastUpdatePeriod.setButtonSymbols(QtGui.QAbstractSpinBox.UpDownArrows)
        self.fastUpdatePeriod.setAccelerated(False)
        self.fastUpdatePeriod.setDecimals(1)
        self.fastUpdatePeriod.setMinimum(0.5)
        self.fastUpdatePeriod.setMaximum(6.0)
        self.fastUpdatePeriod.setProperty("value", 4.0)
        self.fastUpdatePeriod.setObjectName(_fromUtf8("fastUpdatePeriod"))
        self.fastPlotHorizLayout.addWidget(self.fastUpdatePeriod)
        spacerItem1 = QtGui.QSpacerItem(170, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.fastPlotHorizLayout.addItem(spacerItem1)
        self.plotVertLayout.addLayout(self.fastPlotHorizLayout)
        self.horizontalLayout_8.addLayout(self.plotVertLayout)
        self.testVertLayout = QtGui.QVBoxLayout()
        self.testVertLayout.setSpacing(0)
        self.testVertLayout.setObjectName(_fromUtf8("testVertLayout"))
        self.modeText = QtGui.QPlainTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.modeText.sizePolicy().hasHeightForWidth())
        self.modeText.setSizePolicy(sizePolicy)
        self.modeText.setMinimumSize(QtCore.QSize(250, 0))
        self.modeText.setMaximumSize(QtCore.QSize(250, 60))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Droid Sans Mono"))
        font.setPointSize(13)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.modeText.setFont(font)
        self.modeText.setStyleSheet(_fromUtf8("font: 13pt \"Droid Sans Mono\";"))
        self.modeText.setFrameShape(QtGui.QFrame.NoFrame)
        self.modeText.setFrameShadow(QtGui.QFrame.Plain)
        self.modeText.setLineWidth(0)
        self.modeText.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.modeText.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.modeText.setObjectName(_fromUtf8("modeText"))
        self.testVertLayout.addWidget(self.modeText)
        self.canulaText = QtGui.QPlainTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.canulaText.sizePolicy().hasHeightForWidth())
        self.canulaText.setSizePolicy(sizePolicy)
        self.canulaText.setMinimumSize(QtCore.QSize(250, 0))
        self.canulaText.setMaximumSize(QtCore.QSize(250, 125))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Droid Sans Mono"))
        font.setPointSize(13)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.canulaText.setFont(font)
        self.canulaText.setStyleSheet(_fromUtf8("font: 13pt \"Droid Sans Mono\";"))
        self.canulaText.setFrameShape(QtGui.QFrame.NoFrame)
        self.canulaText.setFrameShadow(QtGui.QFrame.Plain)
        self.canulaText.setLineWidth(0)
        self.canulaText.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.canulaText.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.canulaText.setObjectName(_fromUtf8("canulaText"))
        self.testVertLayout.addWidget(self.canulaText)
        self.nitrogenText = QtGui.QPlainTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nitrogenText.sizePolicy().hasHeightForWidth())
        self.nitrogenText.setSizePolicy(sizePolicy)
        self.nitrogenText.setMinimumSize(QtCore.QSize(250, 0))
        self.nitrogenText.setMaximumSize(QtCore.QSize(250, 60))
        self.nitrogenText.setStyleSheet(_fromUtf8("color: rgb(255, 255, 0);\n"
"font: 13pt \"Droid Sans Mono\";"))
        self.nitrogenText.setFrameShape(QtGui.QFrame.NoFrame)
        self.nitrogenText.setFrameShadow(QtGui.QFrame.Plain)
        self.nitrogenText.setLineWidth(0)
        self.nitrogenText.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.nitrogenText.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.nitrogenText.setObjectName(_fromUtf8("nitrogenText"))
        self.testVertLayout.addWidget(self.nitrogenText)
        self.oxygenText = QtGui.QPlainTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.oxygenText.sizePolicy().hasHeightForWidth())
        self.oxygenText.setSizePolicy(sizePolicy)
        self.oxygenText.setMinimumSize(QtCore.QSize(250, 0))
        self.oxygenText.setMaximumSize(QtCore.QSize(250, 60))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Droid Sans Mono"))
        font.setPointSize(13)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.oxygenText.setFont(font)
        self.oxygenText.setStyleSheet(_fromUtf8("color: rgb(85, 255, 0);\n"
"font: 13pt \"Droid Sans Mono\";"))
        self.oxygenText.setFrameShape(QtGui.QFrame.NoFrame)
        self.oxygenText.setFrameShadow(QtGui.QFrame.Plain)
        self.oxygenText.setLineWidth(0)
        self.oxygenText.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.oxygenText.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.oxygenText.setTabStopWidth(73)
        self.oxygenText.setObjectName(_fromUtf8("oxygenText"))
        self.testVertLayout.addWidget(self.oxygenText)
        self.hpText = QtGui.QPlainTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hpText.sizePolicy().hasHeightForWidth())
        self.hpText.setSizePolicy(sizePolicy)
        self.hpText.setMinimumSize(QtCore.QSize(250, 0))
        self.hpText.setMaximumSize(QtCore.QSize(250, 85))
        self.hpText.setStyleSheet(_fromUtf8("color: rgb(255, 85, 0);\n"
"font: 13pt \"Droid Sans Mono\";"))
        self.hpText.setFrameShape(QtGui.QFrame.NoFrame)
        self.hpText.setFrameShadow(QtGui.QFrame.Plain)
        self.hpText.setLineWidth(0)
        self.hpText.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.hpText.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.hpText.setObjectName(_fromUtf8("hpText"))
        self.testVertLayout.addWidget(self.hpText)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.testVertLayout.addItem(spacerItem2)
        self.horizontalLayout_8.addLayout(self.testVertLayout)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_8)

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

    def retranslateUi(self, MainWidget):
        MainWidget.setWindowTitle(_translate("MainWidget", "Animal Monitor v1.0", None))
        self.textBrowser.setHtml(_translate("MainWidget", "<!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:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"right\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:10pt;\">Sampling Frequency:</span></p></body></html>", None))
        self.slowUpdatePeriod.setPrefix(_translate("MainWidget", "1 sample / ", None))
        self.slowUpdatePeriod.setSuffix(_translate("MainWidget", " sec", None))
        self.textEdit.setHtml(_translate("MainWidget", "<!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:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"right\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:10pt;\">Plot Refresh Period:</span></p></body></html>", None))
        self.fastUpdatePeriod.setSuffix(_translate("MainWidget", " sec", None))
        self.modeText.setPlainText(_translate("MainWidget", "Mode: ", None))
        self.canulaText.setPlainText(_translate("MainWidget", "Canula\n"
"Pmax: 0.0 cmH20\n"
"Pmin: 0.0 cmH20\n"
"TV  : 0.00 mL", None))
        self.nitrogenText.setPlainText(_translate("MainWidget", "Nitrogen\n"
"P: 0.0 psi  V: 0.01 mL", None))
        self.oxygenText.setPlainText(_translate("MainWidget", "Oxygen\n"
"P: 0.0 psi  V: 0.01 mL", None))
        self.hpText.setPlainText(_translate("MainWidget", "HP Gas\n"
"P: 0.0 psi  V: 0.01 mL", None))
Exemple #2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1224, 862)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(1, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.cmb_port_name = QtWidgets.QComboBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cmb_port_name.sizePolicy().hasHeightForWidth())
        self.cmb_port_name.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.cmb_port_name.setFont(font)
        self.cmb_port_name.setObjectName("cmb_port_name")
        self.horizontalLayout.addWidget(self.cmb_port_name)
        self.btn_open = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_open.sizePolicy().hasHeightForWidth())
        self.btn_open.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.btn_open.setFont(font)
        self.btn_open.setObjectName("btn_open")
        self.horizontalLayout.addWidget(self.btn_open)
        self.pushButton_flash = QtWidgets.QPushButton(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButton_flash.setFont(font)
        self.pushButton_flash.setObjectName("pushButton_flash")
        self.horizontalLayout.addWidget(self.pushButton_flash)
        self.btn_close = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_close.sizePolicy().hasHeightForWidth())
        self.btn_close.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.btn_close.setFont(font)
        self.btn_close.setObjectName("btn_close")
        self.horizontalLayout.addWidget(self.btn_close)
        self.pushButton_on = QtWidgets.QPushButton(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButton_on.setFont(font)
        self.pushButton_on.setObjectName("pushButton_on")
        self.horizontalLayout.addWidget(self.pushButton_on)
        self.pushButton_off = QtWidgets.QPushButton(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButton_off.setFont(font)
        self.pushButton_off.setObjectName("pushButton_off")
        self.horizontalLayout.addWidget(self.pushButton_off)
        self.pushButton_lock = QtWidgets.QPushButton(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.pushButton_lock.setFont(font)
        self.pushButton_lock.setObjectName("pushButton_lock")
        self.horizontalLayout.addWidget(self.pushButton_lock)
        self.horizontalLayout_7.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        self.horizontalLayout_5.addItem(spacerItem)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setContentsMargins(18, -1, 17, -1)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radioButton1 = QtWidgets.QRadioButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.radioButton1.sizePolicy().hasHeightForWidth())
        self.radioButton1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.radioButton1.setFont(font)
        self.radioButton1.setObjectName("radioButton1")
        self.verticalLayout.addWidget(self.radioButton1)
        self.radioButton2 = QtWidgets.QRadioButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.radioButton2.sizePolicy().hasHeightForWidth())
        self.radioButton2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.radioButton2.setFont(font)
        self.radioButton2.setObjectName("radioButton2")
        self.verticalLayout.addWidget(self.radioButton2)
        self.radioButton_w = QtWidgets.QRadioButton(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.radioButton_w.setFont(font)
        self.radioButton_w.setObjectName("radioButton_w")
        self.verticalLayout.addWidget(self.radioButton_w)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.data_edit1 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.data_edit1.sizePolicy().hasHeightForWidth())
        self.data_edit1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.data_edit1.setFont(font)
        self.data_edit1.setObjectName("data_edit1")
        self.horizontalLayout_2.addWidget(self.data_edit1)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2)
        self.data_edit2 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.data_edit2.sizePolicy().hasHeightForWidth())
        self.data_edit2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.data_edit2.setFont(font)
        self.data_edit2.setObjectName("data_edit2")
        self.horizontalLayout_3.addWidget(self.data_edit2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.btn_send = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_send.sizePolicy().hasHeightForWidth())
        self.btn_send.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.btn_send.setFont(font)
        self.btn_send.setObjectName("btn_send")
        self.verticalLayout.addWidget(self.btn_send)
        self.horizontalLayout_5.addLayout(self.verticalLayout)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSizeConstraint(
            QtWidgets.QLayout.SetFixedSize)
        self.horizontalLayout_4.setContentsMargins(0, 13, 84, 13)
        self.horizontalLayout_4.setSpacing(9)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.dial = QtWidgets.QDial(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(4)
        sizePolicy.setHeightForWidth(
            self.dial.sizePolicy().hasHeightForWidth())
        self.dial.setSizePolicy(sizePolicy)
        self.dial.setMinimumSize(QtCore.QSize(100, 0))
        self.dial.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.dial.setOrientation(QtCore.Qt.Horizontal)
        self.dial.setObjectName("dial")
        self.horizontalLayout_4.addWidget(self.dial)
        self.verticalSlider = QtWidgets.QSlider(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.verticalSlider.sizePolicy().hasHeightForWidth())
        self.verticalSlider.setSizePolicy(sizePolicy)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setObjectName("verticalSlider")
        self.horizontalLayout_4.addWidget(self.verticalSlider)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_4)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Preferred,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.ready_send = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ready_send.sizePolicy().hasHeightForWidth())
        self.ready_send.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.ready_send.setFont(font)
        self.ready_send.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.ready_send.setObjectName("ready_send")
        self.verticalLayout_4.addWidget(self.ready_send)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_4.addWidget(self.line)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setContentsMargins(-1, -1, 19, -1)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.show_send = QtWidgets.QTextEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.show_send.sizePolicy().hasHeightForWidth())
        self.show_send.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.show_send.setFont(font)
        self.show_send.setObjectName("show_send")
        self.gridLayout_2.addWidget(self.show_send, 0, 1, 1, 1)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton.sizePolicy().hasHeightForWidth())
        self.pushButton.setSizePolicy(sizePolicy)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout_2.addWidget(self.pushButton, 0, 2, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout_2)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Fixed)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_2.addItem(spacerItem4)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        spacerItem5 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem5, 1, 3, 1, 1)
        spacerItem6 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem6, 1, 0, 4, 1)
        self.label_9 = QtWidgets.QLabel(self.centralwidget)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 0, 1, 1, 1)
        self.plotWidget_ted_3 = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotWidget_ted_3.sizePolicy().hasHeightForWidth())
        self.plotWidget_ted_3.setSizePolicy(sizePolicy)
        self.plotWidget_ted_3.setObjectName("plotWidget_ted_3")
        self.gridLayout.addWidget(self.plotWidget_ted_3, 4, 1, 1, 1)
        self.plotWidget_ted_4 = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotWidget_ted_4.sizePolicy().hasHeightForWidth())
        self.plotWidget_ted_4.setSizePolicy(sizePolicy)
        self.plotWidget_ted_4.setObjectName("plotWidget_ted_4")
        self.gridLayout.addWidget(self.plotWidget_ted_4, 4, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.centralwidget)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 0, 2, 1, 1)
        self.plotWidget_ted_2 = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotWidget_ted_2.sizePolicy().hasHeightForWidth())
        self.plotWidget_ted_2.setSizePolicy(sizePolicy)
        self.plotWidget_ted_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.plotWidget_ted_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.plotWidget_ted_2.setLineWidth(0)
        self.plotWidget_ted_2.setSizeAdjustPolicy(
            QtWidgets.QAbstractScrollArea.AdjustToContents)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.NoBrush)
        self.plotWidget_ted_2.setForegroundBrush(brush)
        self.plotWidget_ted_2.setObjectName("plotWidget_ted_2")
        self.gridLayout.addWidget(self.plotWidget_ted_2, 1, 2, 1, 1)
        self.plotWidget_ted_1 = PlotWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotWidget_ted_1.sizePolicy().hasHeightForWidth())
        self.plotWidget_ted_1.setSizePolicy(sizePolicy)
        self.plotWidget_ted_1.setFrameShape(QtWidgets.QFrame.StyledPanel)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.NoBrush)
        self.plotWidget_ted_1.setForegroundBrush(brush)
        self.plotWidget_ted_1.setObjectName("plotWidget_ted_1")
        self.gridLayout.addWidget(self.plotWidget_ted_1, 1, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.centralwidget)
        self.label_11.setObjectName("label_11")
        self.gridLayout.addWidget(self.label_11, 3, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.centralwidget)
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 3, 2, 1, 1)
        self.horizontalLayout_6.addLayout(self.gridLayout)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.ready_received = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.ready_received.setFont(font)
        self.ready_received.setObjectName("ready_received")
        self.gridLayout_3.addWidget(self.ready_received, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1)
        self.lineEdit_1 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_1.sizePolicy().hasHeightForWidth())
        self.lineEdit_1.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_1.setFont(font)
        self.lineEdit_1.setText("")
        self.lineEdit_1.setObjectName("lineEdit_1")
        self.gridLayout_3.addWidget(self.lineEdit_1, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1)
        self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_2.sizePolicy().hasHeightForWidth())
        self.lineEdit_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_2.setFont(font)
        self.lineEdit_2.setText("")
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.gridLayout_3.addWidget(self.lineEdit_2, 2, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 3, 0, 1, 1)
        self.lineEdit_3 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_3.sizePolicy().hasHeightForWidth())
        self.lineEdit_3.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_3.setFont(font)
        self.lineEdit_3.setText("")
        self.lineEdit_3.setObjectName("lineEdit_3")
        self.gridLayout_3.addWidget(self.lineEdit_3, 3, 1, 1, 1)
        self.clear_receive = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clear_receive.sizePolicy().hasHeightForWidth())
        self.clear_receive.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.clear_receive.setFont(font)
        self.clear_receive.setObjectName("clear_receive")
        self.gridLayout_3.addWidget(self.clear_receive, 3, 2, 2, 1)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Fixed,
                                            QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_3.addItem(spacerItem7, 3, 3, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 4, 0, 1, 1)
        self.lineEdit_4 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_4.sizePolicy().hasHeightForWidth())
        self.lineEdit_4.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_4.setFont(font)
        self.lineEdit_4.setText("")
        self.lineEdit_4.setObjectName("lineEdit_4")
        self.gridLayout_3.addWidget(self.lineEdit_4, 4, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.gridLayout_3.addWidget(self.label_7, 5, 0, 1, 1)
        self.lineEdit_5 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_5.sizePolicy().hasHeightForWidth())
        self.lineEdit_5.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_5.setFont(font)
        self.lineEdit_5.setText("")
        self.lineEdit_5.setObjectName("lineEdit_5")
        self.gridLayout_3.addWidget(self.lineEdit_5, 5, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.gridLayout_3.addWidget(self.label_8, 6, 0, 1, 1)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_6.sizePolicy().hasHeightForWidth())
        self.lineEdit_6.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_6.setFont(font)
        self.lineEdit_6.setText("")
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.gridLayout_3.addWidget(self.lineEdit_6, 6, 1, 1, 1)
        self.horizontalLayout_6.addLayout(self.gridLayout_3)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.pushButton.clicked.connect(self.show_send.clear)
        self.clear_receive.clicked.connect(self.lineEdit_1.clear)
        self.clear_receive.clicked.connect(self.lineEdit_2.clear)
        self.clear_receive.clicked.connect(self.lineEdit_3.clear)
        self.clear_receive.clicked.connect(self.lineEdit_4.clear)
        self.clear_receive.clicked.connect(self.lineEdit_5.clear)
        self.clear_receive.clicked.connect(self.lineEdit_6.clear)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.btn_open.setText(_translate("MainWindow", "打开"))
        self.pushButton_flash.setText(_translate("MainWindow", "刷新串口"))
        self.btn_close.setText(_translate("MainWindow", "关闭"))
        self.pushButton_on.setText(_translate("MainWindow", "功放上电"))
        self.pushButton_off.setText(_translate("MainWindow", "功放断电"))
        self.pushButton_lock.setText(_translate("MainWindow", "锁定"))
        self.radioButton1.setText(_translate("MainWindow", "速度运行模式"))
        self.radioButton2.setText(_translate("MainWindow", "位置运行模式"))
        self.radioButton_w.setText(_translate("MainWindow", "稳定运行模式"))
        self.label.setText(_translate("MainWindow", "方位"))
        self.label_2.setText(_translate("MainWindow", "俯仰"))
        self.btn_send.setText(_translate("MainWindow", "发送"))
        self.ready_send.setText(_translate("MainWindow", "已发送:"))
        self.pushButton.setText(_translate("MainWindow", "清空发送区"))
        self.label_9.setText(_translate("MainWindow", "方位角速度"))
        self.label_10.setText(_translate("MainWindow", "俯仰角速度"))
        self.label_11.setText(_translate("MainWindow", "方位角度"))
        self.label_12.setText(_translate("MainWindow", "俯仰角度"))
        self.ready_received.setText(_translate("MainWindow", "已接收:"))
        self.label_3.setText(_translate("MainWindow", "当前运行模式:"))
        self.label_4.setText(_translate("MainWindow", "转台到位状态:"))
        self.label_5.setText(_translate("MainWindow", "方位角速度:"))
        self.clear_receive.setText(_translate("MainWindow", "清空接收区"))
        self.label_6.setText(_translate("MainWindow", "俯仰角速度:"))
        self.label_7.setText(_translate("MainWindow", "方位角度:"))
        self.label_8.setText(_translate("MainWindow", "俯仰角度:"))
Exemple #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(993, 692)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setMargin(10)
        self.verticalLayout_2.setSpacing(10)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.frame_4 = QtGui.QFrame(self.centralwidget)
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_4)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_3 = QtGui.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.label_4 = QtGui.QLabel(self.frame_4)
        self.label_4.setEnabled(True)
        self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnSite = QtGui.QPushButton(self.frame_4)
        self.btnSite.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);"))
        self.btnSite.setCheckable(False)
        self.btnSite.setFlat(True)
        self.btnSite.setObjectName(_fromUtf8("btnSite"))
        self.horizontalLayout.addWidget(self.btnSite)
        self.verticalLayout_2.addWidget(self.frame_4)
        self.frame_5 = QtGui.QFrame(self.centralwidget)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_5)
        self.horizontalLayout_3.setMargin(0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lblDevice = QtGui.QLabel(self.frame_5)
        self.lblDevice.setEnabled(False)
        self.lblDevice.setObjectName(_fromUtf8("lblDevice"))
        self.horizontalLayout_3.addWidget(self.lblDevice)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout_2.addWidget(self.frame_5)
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame.setFrameShadow(QtGui.QFrame.Plain)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.frame_2 = QtGui.QFrame(self.frame)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chkInvert = QtGui.QCheckBox(self.frame_2)
        self.chkInvert.setObjectName(_fromUtf8("chkInvert"))
        self.horizontalLayout_2.addWidget(self.chkInvert)
        self.chkAutoscale = QtGui.QCheckBox(self.frame_2)
        self.chkAutoscale.setChecked(True)
        self.chkAutoscale.setObjectName(_fromUtf8("chkAutoscale"))
        self.horizontalLayout_2.addWidget(self.chkAutoscale)
        self.line = QtGui.QFrame(self.frame_2)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout_2.addWidget(self.line)
        self.label_2 = QtGui.QLabel(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinLowpass = QtGui.QSpinBox(self.frame_2)
        self.spinLowpass.setPrefix(_fromUtf8(""))
        self.spinLowpass.setMinimum(0)
        self.spinLowpass.setMaximum(999999)
        self.spinLowpass.setSingleStep(1)
        self.spinLowpass.setProperty("value", 45)
        self.spinLowpass.setObjectName(_fromUtf8("spinLowpass"))
        self.horizontalLayout_2.addWidget(self.spinLowpass)
        self.label_5 = QtGui.QLabel(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.lineTitle = QtGui.QLineEdit(self.frame_2)
        self.lineTitle.setObjectName(_fromUtf8("lineTitle"))
        self.horizontalLayout_2.addWidget(self.lineTitle)
        self.line_2 = QtGui.QFrame(self.frame_2)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout_2.addWidget(self.line_2)
        self.btnPause = QtGui.QPushButton(self.frame_2)
        self.btnPause.setCheckable(True)
        self.btnPause.setObjectName(_fromUtf8("btnPause"))
        self.horizontalLayout_2.addWidget(self.btnPause)
        self.btnSave = QtGui.QPushButton(self.frame_2)
        self.btnSave.setObjectName(_fromUtf8("btnSave"))
        self.horizontalLayout_2.addWidget(self.btnSave)
        self.verticalLayout.addWidget(self.frame_2)
        self.frame_3 = QtGui.QFrame(self.frame)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Plain)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_3)
        self.verticalLayout_3.setMargin(0)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.grECG = PlotWidget(self.frame_3)
        self.grECG.setFrameShape(QtGui.QFrame.NoFrame)
        self.grECG.setFrameShadow(QtGui.QFrame.Plain)
        self.grECG.setLineWidth(0)
        self.grECG.setObjectName(_fromUtf8("grECG"))
        self.verticalLayout_3.addWidget(self.grECG)
        self.verticalLayout.addWidget(self.frame_3)
        self.verticalLayout_2.addWidget(self.frame)
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "diyECG", None))
        self.label_3.setText(_translate("MainWindow", "diyECG", None))
        self.label_4.setText(_translate("MainWindow", "   open-source live soundcard monitor with realtime iFFT filtering by Scott Harden", None))
        self.btnSite.setText(_translate("MainWindow", "www.SWHarden.com", None))
        self.lblDevice.setText(_translate("MainWindow", "!!! ERROR !!! no valid input sound devices found. Plug in a microphone and restart this program!", None))
        self.chkInvert.setText(_translate("MainWindow", "invert", None))
        self.chkAutoscale.setText(_translate("MainWindow", "autoscale", None))
        self.label_2.setText(_translate("MainWindow", "lowpass:"******"MainWindow", "set to 0 to disable", None))
        self.spinLowpass.setSuffix(_translate("MainWindow", " Hz", None))
        self.label_5.setText(_translate("MainWindow", "title:", None))
        self.lineTitle.setText(_translate("MainWindow", "DIY ECG", None))
        self.btnPause.setText(_translate("MainWindow", "Pause", None))
        self.btnSave.setText(_translate("MainWindow", "Save Figure", None))
Exemple #4
0
class Ui_MainWidget(object):
    def setupUi(self, MainWidget):
        MainWidget.setObjectName(_fromUtf8("MainWidget"))
        MainWidget.resize(791, 688)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWidget.sizePolicy().hasHeightForWidth())
        MainWidget.setSizePolicy(sizePolicy)
        MainWidget.setMinimumSize(QtCore.QSize(170, 0))
        MainWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        MainWidget.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);\n"
"font: 10pt \"Droid Sans Mono\";"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(MainWidget)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.plotVertLayout = QtGui.QVBoxLayout()
        self.plotVertLayout.setObjectName(_fromUtf8("plotVertLayout"))
        self.vitalsPlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.vitalsPlot.sizePolicy().hasHeightForWidth())
        self.vitalsPlot.setSizePolicy(sizePolicy)
        self.vitalsPlot.setMinimumSize(QtCore.QSize(150, 8))
        self.vitalsPlot.setStyleSheet(_fromUtf8("background-color: rgb(170, 0, 0);"))
        self.vitalsPlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.vitalsPlot.setFrameShadow(QtGui.QFrame.Plain)
        self.vitalsPlot.setLineWidth(0)
        self.vitalsPlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.vitalsPlot.setObjectName(_fromUtf8("vitalsPlot"))
        self.plotVertLayout.addWidget(self.vitalsPlot)
        self.slowPlotHorizLayout = QtGui.QHBoxLayout()
        self.slowPlotHorizLayout.setObjectName(_fromUtf8("slowPlotHorizLayout"))
        self.textBrowser = QtGui.QTextBrowser(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMinimumSize(QtCore.QSize(136, 30))
        self.textBrowser.setMaximumSize(QtCore.QSize(136, 30))
        self.textBrowser.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
        self.textBrowser.setFrameShape(QtGui.QFrame.NoFrame)
        self.textBrowser.setFrameShadow(QtGui.QFrame.Plain)
        self.textBrowser.setLineWidth(0)
        self.textBrowser.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textBrowser.setObjectName(_fromUtf8("textBrowser"))
        self.slowPlotHorizLayout.addWidget(self.textBrowser)
        self.slowUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slowUpdatePeriod.sizePolicy().hasHeightForWidth())
        self.slowUpdatePeriod.setSizePolicy(sizePolicy)
        self.slowUpdatePeriod.setMinimumSize(QtCore.QSize(150, 0))
        self.slowUpdatePeriod.setMaximumSize(QtCore.QSize(150, 16777215))
        self.slowUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
        self.slowUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.slowUpdatePeriod.setDecimals(1)
        self.slowUpdatePeriod.setMinimum(0.1)
        self.slowUpdatePeriod.setMaximum(1000000000.0)
        self.slowUpdatePeriod.setProperty("value", 1.0)
        self.slowUpdatePeriod.setObjectName(_fromUtf8("slowUpdatePeriod"))
        self.slowPlotHorizLayout.addWidget(self.slowUpdatePeriod)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.slowPlotHorizLayout.addItem(spacerItem)
        self.plotVertLayout.addLayout(self.slowPlotHorizLayout)
        self.pressurePlot = PlotWidget(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pressurePlot.sizePolicy().hasHeightForWidth())
        self.pressurePlot.setSizePolicy(sizePolicy)
        self.pressurePlot.setMinimumSize(QtCore.QSize(150, 10))
        self.pressurePlot.setStyleSheet(_fromUtf8("background-color: rgb(255, 0, 255);"))
        self.pressurePlot.setFrameShape(QtGui.QFrame.NoFrame)
        self.pressurePlot.setFrameShadow(QtGui.QFrame.Plain)
        self.pressurePlot.setLineWidth(0)
        self.pressurePlot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.pressurePlot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.pressurePlot.setObjectName(_fromUtf8("pressurePlot"))
        self.plotVertLayout.addWidget(self.pressurePlot)
        self.fastPlotHorizLayout = QtGui.QHBoxLayout()
        self.fastPlotHorizLayout.setObjectName(_fromUtf8("fastPlotHorizLayout"))
        self.textEdit = QtGui.QTextEdit(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textEdit.sizePolicy().hasHeightForWidth())
        self.textEdit.setSizePolicy(sizePolicy)
        self.textEdit.setMinimumSize(QtCore.QSize(136, 30))
        self.textEdit.setMaximumSize(QtCore.QSize(136, 30))
        self.textEdit.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.textEdit.setStyleSheet(_fromUtf8("font: 9pt \"Droid Sans\";"))
        self.textEdit.setFrameShape(QtGui.QFrame.NoFrame)
        self.textEdit.setFrameShadow(QtGui.QFrame.Plain)
        self.textEdit.setLineWidth(0)
        self.textEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEdit.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
        self.fastPlotHorizLayout.addWidget(self.textEdit)
        self.fastUpdatePeriod = QtGui.QDoubleSpinBox(MainWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fastUpdatePeriod.sizePolicy().hasHeightForWidth())
        self.fastUpdatePeriod.setSizePolicy(sizePolicy)
        self.fastUpdatePeriod.setMinimumSize(QtCore.QSize(100, 0))
        self.fastUpdatePeriod.setMaximumSize(QtCore.QSize(100, 16777215))
        self.fastUpdatePeriod.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.fastUpdatePeriod.setStyleSheet(_fromUtf8("background-color: rgb(255,255,255);\n"
"font: 9pt \"Droid Sans\";\n"
"color: rgb(0, 0, 0);"))
        self.fastUpdatePeriod.setFrame(True)
        self.fastUpdatePeriod.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.fastUpdatePeriod.setButtonSymbols(QtGui.QAbstractSpinBox.UpDownArrows)
        self.fastUpdatePeriod.setAccelerated(False)
        self.fastUpdatePeriod.setDecimals(1)
        self.fastUpdatePeriod.setMinimum(0.5)
        self.fastUpdatePeriod.setMaximum(6.0)
        self.fastUpdatePeriod.setProperty("value", 4.0)
        self.fastUpdatePeriod.setObjectName(_fromUtf8("fastUpdatePeriod"))
        self.fastPlotHorizLayout.addWidget(self.fastUpdatePeriod)
        spacerItem1 = QtGui.QSpacerItem(170, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.fastPlotHorizLayout.addItem(spacerItem1)
        self.plotVertLayout.addLayout(self.fastPlotHorizLayout)
        self.horizontalLayout_8.addLayout(self.plotVertLayout)
        self.testVertLayout = QtGui.QVBoxLayout()
        self.testVertLayout.setSpacing(0)
        self.testVertLayout.setObjectName(_fromUtf8("testVertLayout"))

        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.testVertLayout.addItem(spacerItem2)
        self.horizontalLayout_8.addLayout(self.testVertLayout)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_8)

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

    def retranslateUi(self, MainWidget):
        MainWidget.setWindowTitle(_translate("MainWidget", "Animal Monitor v1.0", None))
        self.textBrowser.setHtml(_translate("MainWidget", "<!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:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"right\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:10pt;\">Sampling Frequency:</span></p></body></html>", None))
        self.slowUpdatePeriod.setPrefix(_translate("MainWidget", "1 sample / ", None))
        self.slowUpdatePeriod.setSuffix(_translate("MainWidget", " sec", None))
        self.textEdit.setHtml(_translate("MainWidget", "<!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:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"right\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:10pt;\">Plot Refresh Period:</span></p></body></html>", None))
        self.fastUpdatePeriod.setSuffix(_translate("MainWidget", " sec", None))
Exemple #5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(993, 692)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setContentsMargins(10, 10, 10, 10)
        self.verticalLayout_2.setSpacing(10)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.frame_4 = QtGui.QFrame(self.centralwidget)
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_4)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_3 = QtGui.QLabel(self.frame_4)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.label_4 = QtGui.QLabel(self.frame_4)
        self.label_4.setEnabled(True)
        self.label_4.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnSite = QtGui.QPushButton(self.frame_4)
        self.btnSite.setStyleSheet(_fromUtf8("color: rgb(0, 0, 255);"))
        self.btnSite.setCheckable(False)
        self.btnSite.setFlat(True)
        self.btnSite.setObjectName(_fromUtf8("btnSite"))
        self.horizontalLayout.addWidget(self.btnSite)
        self.verticalLayout_2.addWidget(self.frame_4)
        self.frame_5 = QtGui.QFrame(self.centralwidget)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_5)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lblDevice = QtGui.QLabel(self.frame_5)
        self.lblDevice.setEnabled(False)
        self.lblDevice.setObjectName(_fromUtf8("lblDevice"))
        self.horizontalLayout_3.addWidget(self.lblDevice)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout_2.addWidget(self.frame_5)
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame.setFrameShadow(QtGui.QFrame.Plain)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.verticalLayout = QtGui.QVBoxLayout(self.frame)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.frame_2 = QtGui.QFrame(self.frame)
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chkInvert = QtGui.QCheckBox(self.frame_2)
        self.chkInvert.setObjectName(_fromUtf8("chkInvert"))
        self.horizontalLayout_2.addWidget(self.chkInvert)
        self.chkAutoscale = QtGui.QCheckBox(self.frame_2)
        self.chkAutoscale.setChecked(True)
        self.chkAutoscale.setObjectName(_fromUtf8("chkAutoscale"))
        self.horizontalLayout_2.addWidget(self.chkAutoscale)
        self.line = QtGui.QFrame(self.frame_2)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout_2.addWidget(self.line)
        self.label_2 = QtGui.QLabel(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinLowpass = QtGui.QSpinBox(self.frame_2)
        self.spinLowpass.setPrefix(_fromUtf8(""))
        self.spinLowpass.setMinimum(0)
        self.spinLowpass.setMaximum(999999)
        self.spinLowpass.setSingleStep(1)
        self.spinLowpass.setProperty("value", 45)
        self.spinLowpass.setObjectName(_fromUtf8("spinLowpass"))
        self.horizontalLayout_2.addWidget(self.spinLowpass)
        self.label_5 = QtGui.QLabel(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.lineTitle = QtGui.QLineEdit(self.frame_2)
        self.lineTitle.setObjectName(_fromUtf8("lineTitle"))
        self.horizontalLayout_2.addWidget(self.lineTitle)
        self.line_2 = QtGui.QFrame(self.frame_2)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.horizontalLayout_2.addWidget(self.line_2)
        self.btnPause = QtGui.QPushButton(self.frame_2)
        self.btnPause.setCheckable(True)
        self.btnPause.setObjectName(_fromUtf8("btnPause"))
        self.horizontalLayout_2.addWidget(self.btnPause)
        self.btnSave = QtGui.QPushButton(self.frame_2)
        self.btnSave.setObjectName(_fromUtf8("btnSave"))
        self.horizontalLayout_2.addWidget(self.btnSave)
        self.verticalLayout.addWidget(self.frame_2)
        self.frame_3 = QtGui.QFrame(self.frame)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Plain)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_3)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.grECG = PlotWidget(self.frame_3)
        self.grECG.setFrameShape(QtGui.QFrame.NoFrame)
        self.grECG.setFrameShadow(QtGui.QFrame.Plain)
        self.grECG.setLineWidth(0)
        self.grECG.setObjectName(_fromUtf8("grECG"))
        self.verticalLayout_3.addWidget(self.grECG)
        self.verticalLayout.addWidget(self.frame_3)
        self.verticalLayout_2.addWidget(self.frame)
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "diyECG", None))
        self.label_3.setText(_translate("MainWindow", "diyECG", None))
        self.label_4.setText(
            _translate(
                "MainWindow",
                "   open-source live soundcard monitor with realtime iFFT filtering by Scott Harden",
                None))
        self.btnSite.setText(_translate("MainWindow", "www.SWHarden.com",
                                        None))
        self.lblDevice.setText(
            _translate(
                "MainWindow",
                "!!! ERROR !!! no valid input sound devices found. Plug in a microphone and restart this program!",
                None))
        self.chkInvert.setText(_translate("MainWindow", "invert", None))
        self.chkAutoscale.setText(_translate("MainWindow", "autoscale", None))
        self.label_2.setText(_translate("MainWindow", "lowpass:"******"MainWindow", "set to 0 to disable", None))
        self.spinLowpass.setSuffix(_translate("MainWindow", " Hz", None))
        self.label_5.setText(_translate("MainWindow", "title:", None))
        self.lineTitle.setText(_translate("MainWindow", "DIY ECG", None))
        self.btnPause.setText(_translate("MainWindow", "Pause", None))
        self.btnSave.setText(_translate("MainWindow", "Save Figure", None))
Exemple #6
0
class Ui_dialog(object):
    def setupUi(self, dialog):
        dialog.setObjectName("dialog")
        dialog.resize(1144, 771)
        dialog.setWindowOpacity(0.95)
        self.raytraceView = PlotWidget(dialog)
        self.raytraceView.setGeometry(QtCore.QRect(40, 40, 512, 512))
        self.raytraceView.setFrameShape(QtWidgets.QFrame.WinPanel)
        self.raytraceView.setFrameShadow(QtWidgets.QFrame.Raised)
        self.raytraceView.setObjectName("raytraceView")
        self.sarView = PlotWidget(dialog)
        self.sarView.setGeometry(QtCore.QRect(590, 40, 512, 512))
        self.sarView.setFrameShape(QtWidgets.QFrame.WinPanel)
        self.sarView.setFrameShadow(QtWidgets.QFrame.Raised)
        self.sarView.setObjectName("sarView")
        self.openButton = QtWidgets.QPushButton(dialog)
        self.openButton.setGeometry(QtCore.QRect(40, 580, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.openButton.setFont(font)
        self.openButton.setStyleSheet("")
        self.openButton.setObjectName("openButton")
        self.offnadSpinBox = QtWidgets.QDoubleSpinBox(dialog)
        self.offnadSpinBox.setGeometry(QtCore.QRect(110, 640, 121, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.offnadSpinBox.setFont(font)
        self.offnadSpinBox.setMinimum(30.0)
        self.offnadSpinBox.setMaximum(70.0)
        self.offnadSpinBox.setSingleStep(5.0)
        self.offnadSpinBox.setObjectName("offnadSpinBox")
        self.label_3 = QtWidgets.QLabel(dialog)
        self.label_3.setGeometry(QtCore.QRect(40, 640, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.lineEdit = QtWidgets.QLineEdit(dialog)
        self.lineEdit.setGeometry(QtCore.QRect(270, 580, 631, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.lineEdit.setFont(font)
        self.lineEdit.setObjectName("lineEdit")
        self.offnadSlider = QtWidgets.QSlider(dialog)
        self.offnadSlider.setGeometry(QtCore.QRect(250, 640, 411, 31))
        self.offnadSlider.setStyleSheet(
            "QSlider::groove:horizontal {\n"
            "border: 1px solid #bbb;\n"
            "background: white;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal {\n"
            "background: qlineargradient(x1: 0, y1: 0,    x2: 0, y2: 1,\n"
            "    stop: 0 #6ee, stop: 1 #bff);\n"
            "background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,\n"
            "    stop: 0 #bee, stop: 1 #5bf);\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal {\n"
            "background: #555;\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #eee, stop:1 #ccc);\n"
            "border: 1px solid #777;\n"
            "width: 13px;\n"
            "margin-top: -2px;\n"
            "margin-bottom: -2px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:hover {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #fff, stop:1 #ddd);\n"
            "border: 1px solid #444;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal:disabled {\n"
            "background: #bbb;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal:disabled {\n"
            "background: #eee;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:disabled {\n"
            "background: #eee;\n"
            "border: 1px solid #aaa;\n"
            "border-radius: 4px;\n"
            "}")
        self.offnadSlider.setMinimum(30)
        self.offnadSlider.setMaximum(70)
        self.offnadSlider.setSingleStep(5)
        self.offnadSlider.setProperty("value", 30)
        self.offnadSlider.setOrientation(QtCore.Qt.Horizontal)
        self.offnadSlider.setObjectName("offnadSlider")
        self.label_4 = QtWidgets.QLabel(dialog)
        self.label_4.setGeometry(QtCore.QRect(40, 700, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.rotateSlider = QtWidgets.QSlider(dialog)
        self.rotateSlider.setGeometry(QtCore.QRect(250, 700, 411, 31))
        self.rotateSlider.setStyleSheet(
            "QSlider::groove:horizontal {\n"
            "border: 1px solid #bbb;\n"
            "background: white;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal {\n"
            "background: qlineargradient(x1: 0, y1: 0,    x2: 0, y2: 1,\n"
            "    stop: 0 #6ee, stop: 1 #bff);\n"
            "background: qlineargradient(x1: 0, y1: 0.2, x2: 1, y2: 1,\n"
            "    stop: 0 #bee, stop: 1 #5bf);\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal {\n"
            "background: #555;\n"
            "border: 1px solid #777;\n"
            "height: 10px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #eee, stop:1 #ccc);\n"
            "border: 1px solid #777;\n"
            "width: 13px;\n"
            "margin-top: -2px;\n"
            "margin-bottom: -2px;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:hover {\n"
            "background: qlineargradient(x1:0, y1:0, x2:1, y2:1,\n"
            "    stop:0 #fff, stop:1 #ddd);\n"
            "border: 1px solid #444;\n"
            "border-radius: 4px;\n"
            "}\n"
            "\n"
            "QSlider::sub-page:horizontal:disabled {\n"
            "background: #bbb;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::add-page:horizontal:disabled {\n"
            "background: #eee;\n"
            "border-color: #999;\n"
            "}\n"
            "\n"
            "QSlider::handle:horizontal:disabled {\n"
            "background: #eee;\n"
            "border: 1px solid #aaa;\n"
            "border-radius: 4px;\n"
            "}")
        self.rotateSlider.setMinimum(0)
        self.rotateSlider.setMaximum(360)
        self.rotateSlider.setSingleStep(5)
        self.rotateSlider.setProperty("value", 0)
        self.rotateSlider.setOrientation(QtCore.Qt.Horizontal)
        self.rotateSlider.setObjectName("rotateSlider")
        self.rotateSpinBox = QtWidgets.QDoubleSpinBox(dialog)
        self.rotateSpinBox.setGeometry(QtCore.QRect(110, 700, 121, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.rotateSpinBox.setFont(font)
        self.rotateSpinBox.setMinimum(-5.0)
        self.rotateSpinBox.setMaximum(360.0)
        self.rotateSpinBox.setSingleStep(5.0)
        self.rotateSpinBox.setProperty("value", 0.0)
        self.rotateSpinBox.setObjectName("rotateSpinBox")
        self.runSARButton = QtWidgets.QPushButton(dialog)
        self.runSARButton.setGeometry(QtCore.QRect(910, 700, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.runSARButton.setFont(font)
        self.runSARButton.setObjectName("runSARButton")
        self.label_5 = QtWidgets.QLabel(dialog)
        self.label_5.setGeometry(QtCore.QRect(750, 640, 61, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.scale1SpinBox = QtWidgets.QDoubleSpinBox(dialog)
        self.scale1SpinBox.setGeometry(QtCore.QRect(820, 640, 81, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.scale1SpinBox.setFont(font)
        self.scale1SpinBox.setDecimals(1)
        self.scale1SpinBox.setMinimum(0.0)
        self.scale1SpinBox.setMaximum(1000.0)
        self.scale1SpinBox.setSingleStep(5.0)
        self.scale1SpinBox.setProperty("value", 80.0)
        self.scale1SpinBox.setObjectName("scale1SpinBox")
        self.label_7 = QtWidgets.QLabel(dialog)
        self.label_7.setGeometry(QtCore.QRect(80, 10, 81, 21))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_7.setFont(font)
        self.label_7.setObjectName("label_7")
        self.label_8 = QtWidgets.QLabel(dialog)
        self.label_8.setGeometry(QtCore.QRect(630, 10, 81, 21))
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_8.setFont(font)
        self.label_8.setObjectName("label_8")
        self.sarUpView = PlotWidget(dialog)
        self.sarUpView.setGeometry(QtCore.QRect(591, 41, 181, 181))
        self.sarUpView.setFrameShape(QtWidgets.QFrame.Box)
        self.sarUpView.setFrameShadow(QtWidgets.QFrame.Raised)
        self.sarUpView.setLineWidth(2)
        self.sarUpView.setObjectName("sarUpView")
        self.runRayTraceButton = QtWidgets.QPushButton(dialog)
        self.runRayTraceButton.setGeometry(QtCore.QRect(710, 700, 191, 31))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.runRayTraceButton.setFont(font)
        self.runRayTraceButton.setObjectName("runRayTraceButton")
        self.label = QtWidgets.QLabel(dialog)
        self.label.setGeometry(QtCore.QRect(555, 245, 31, 101))
        self.label.setText("")
        self.label.setPixmap(QtGui.QPixmap("arrow.png"))
        self.label.setScaledContents(True)
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(dialog)
        self.label_2.setGeometry(QtCore.QRect(910, 740, 231, 31))
        self.label_2.setText("")
        self.label_2.setPixmap(QtGui.QPixmap("ashida.png"))
        self.label_2.setScaledContents(True)
        self.label_2.setObjectName("label_2")
        self.stepLabel = QtWidgets.QLabel(dialog)
        self.stepLabel.setGeometry(QtCore.QRect(960, 580, 121, 111))
        self.stepLabel.setText("")
        self.stepLabel.setPixmap(QtGui.QPixmap("step0.png"))
        self.stepLabel.setScaledContents(True)
        self.stepLabel.setObjectName("stepLabel")
        self.label_6 = QtWidgets.QLabel(dialog)
        self.label_6.setGeometry(QtCore.QRect(1068, 518, 60, 60))
        self.label_6.setText("")
        self.label_6.setPixmap(QtGui.QPixmap("edge2.png"))
        self.label_6.setScaledContents(True)
        self.label_6.setObjectName("label_6")
        self.label_9 = QtWidgets.QLabel(dialog)
        self.label_9.setGeometry(QtCore.QRect(518, 518, 60, 60))
        self.label_9.setText("")
        self.label_9.setPixmap(QtGui.QPixmap("edge2.png"))
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.label_10 = QtWidgets.QLabel(dialog)
        self.label_10.setGeometry(QtCore.QRect(15, 15, 60, 60))
        self.label_10.setText("")
        self.label_10.setPixmap(QtGui.QPixmap("edge1.png"))
        self.label_10.setScaledContents(True)
        self.label_10.setObjectName("label_10")
        self.label_11 = QtWidgets.QLabel(dialog)
        self.label_11.setGeometry(QtCore.QRect(565, 15, 60, 60))
        self.label_11.setText("")
        self.label_11.setPixmap(QtGui.QPixmap("edge1.png"))
        self.label_11.setScaledContents(True)
        self.label_11.setObjectName("label_11")
        self.label_12 = QtWidgets.QLabel(dialog)
        self.label_12.setGeometry(QtCore.QRect(0, 710, 31, 60))
        self.label_12.setText("")
        self.label_12.setPixmap(QtGui.QPixmap("edge3.png"))
        self.label_12.setScaledContents(True)
        self.label_12.setObjectName("label_12")
        self.label_13 = QtWidgets.QLabel(dialog)
        self.label_13.setGeometry(QtCore.QRect(0, 580, 1141, 191))
        self.label_13.setText("")
        self.label_13.setPixmap(QtGui.QPixmap("line2.png"))
        self.label_13.setScaledContents(True)
        self.label_13.setObjectName("label_13")
        self.label_14 = QtWidgets.QLabel(dialog)
        self.label_14.setGeometry(QtCore.QRect(170, 15, 381, 21))
        self.label_14.setText("")
        self.label_14.setPixmap(QtGui.QPixmap("bar.png"))
        self.label_14.setScaledContents(True)
        self.label_14.setObjectName("label_14")
        self.label_15 = QtWidgets.QLabel(dialog)
        self.label_15.setGeometry(QtCore.QRect(720, 15, 381, 21))
        self.label_15.setText("")
        self.label_15.setPixmap(QtGui.QPixmap("bar.png"))
        self.label_15.setScaledContents(True)
        self.label_15.setObjectName("label_15")
        self.label_16 = QtWidgets.QLabel(dialog)
        self.label_16.setGeometry(QtCore.QRect(0, 80, 41, 621))
        self.label_16.setText("")
        self.label_16.setPixmap(QtGui.QPixmap("line.png"))
        self.label_16.setScaledContents(True)
        self.label_16.setObjectName("label_16")
        self.label_17 = QtWidgets.QLabel(dialog)
        self.label_17.setGeometry(QtCore.QRect(1100, 40, 41, 471))
        self.label_17.setText("")
        self.label_17.setPixmap(QtGui.QPixmap("line.png"))
        self.label_17.setScaledContents(True)
        self.label_17.setObjectName("label_17")
        self.label_13.raise_()
        self.label_16.raise_()
        self.label_17.raise_()
        self.label_12.raise_()
        self.label_11.raise_()
        self.label_10.raise_()
        self.label_9.raise_()
        self.label_6.raise_()
        self.raytraceView.raise_()
        self.sarView.raise_()
        self.openButton.raise_()
        self.offnadSpinBox.raise_()
        self.label_3.raise_()
        self.offnadSlider.raise_()
        self.rotateSlider.raise_()
        self.rotateSpinBox.raise_()
        self.runSARButton.raise_()
        self.label_5.raise_()
        self.scale1SpinBox.raise_()
        self.label_7.raise_()
        self.label_8.raise_()
        self.sarUpView.raise_()
        self.runRayTraceButton.raise_()
        self.label.raise_()
        self.label_2.raise_()
        self.stepLabel.raise_()
        self.lineEdit.raise_()
        self.label_4.raise_()
        self.label_14.raise_()
        self.label_15.raise_()

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

    def retranslateUi(self, dialog):
        _translate = QtCore.QCoreApplication.translate
        dialog.setWindowTitle(_translate("dialog", "SAR simulator"))
        self.openButton.setText(_translate("dialog", "1.Open"))
        self.label_3.setText(_translate("dialog", "Offnadir"))
        self.lineEdit.setText(_translate("dialog", "c130.obj"))
        self.label_4.setText(_translate("dialog", "Rotate"))
        self.runSARButton.setText(_translate("dialog", "3.Run SAR"))
        self.label_5.setText(_translate("dialog", "Scale"))
        self.label_7.setText(_translate("dialog", "Ray Trace"))
        self.label_8.setText(_translate("dialog", "SAR"))
        self.runRayTraceButton.setText(_translate("dialog", "2.Run Ray Trace"))
Exemple #7
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1680, 917)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../../.designer/backup/ico.svg"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout()
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.groupBox_7 = QtWidgets.QGroupBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_7.sizePolicy().hasHeightForWidth())
        self.groupBox_7.setSizePolicy(sizePolicy)
        self.groupBox_7.setObjectName("groupBox_7")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.consolle = QtWidgets.QPushButton(self.groupBox_7)
        self.consolle.setObjectName("consolle")
        self.horizontalLayout_10.addWidget(self.consolle)
        self.b_protocol = QtWidgets.QPushButton(self.groupBox_7)
        self.b_protocol.setObjectName("b_protocol")
        self.horizontalLayout_10.addWidget(self.b_protocol)
        self.b_load = QtWidgets.QPushButton(self.groupBox_7)
        self.b_load.setObjectName("b_load")
        self.horizontalLayout_10.addWidget(self.b_load)
        self.horizontalLayout_9.addWidget(self.groupBox_7)
        spacerItem = QtWidgets.QSpacerItem(1110, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem)
        self.groupBox_8 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_8.setObjectName("groupBox_8")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_8)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.b_saveprotocol = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveprotocol.setObjectName("b_saveprotocol")
        self.horizontalLayout_11.addWidget(self.b_saveprotocol)
        self.b_saveEdata = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveEdata.setObjectName("b_saveEdata")
        self.horizontalLayout_11.addWidget(self.b_saveEdata)
        self.b_saveFdata = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveFdata.setObjectName("b_saveFdata")
        self.horizontalLayout_11.addWidget(self.b_saveFdata)
        self.b_saveexperiment = QtWidgets.QPushButton(self.groupBox_8)
        self.b_saveexperiment.setObjectName("b_saveexperiment")
        self.horizontalLayout_11.addWidget(self.b_saveexperiment)
        self.horizontalLayout_9.addWidget(self.groupBox_8)
        self.verticalLayout_9.addLayout(self.horizontalLayout_9)
        spacerItem1 = QtWidgets.QSpacerItem(20, 10,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Preferred)
        self.verticalLayout_9.addItem(spacerItem1)
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.layoutWidget = QtWidgets.QWidget(self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.g_fz_all = PlotWidget(self.layoutWidget)
        self.g_fz_all.setObjectName("g_fz_all")
        self.verticalLayout.addWidget(self.g_fz_all)
        self.g_fz_single = PlotWidget(self.layoutWidget)
        self.g_fz_single.setObjectName("g_fz_single")
        self.verticalLayout.addWidget(self.g_fz_single)
        self.layoutWidget1 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.g_fizi_all = PlotWidget(self.layoutWidget1)
        self.g_fizi_all.setObjectName("g_fizi_all")
        self.verticalLayout_2.addWidget(self.g_fizi_all)
        self.g_fizi_single = PlotWidget(self.layoutWidget1)
        self.g_fizi_single.setEnabled(True)
        self.g_fizi_single.setInteractive(True)
        self.g_fizi_single.setObjectName("g_fizi_single")
        self.verticalLayout_2.addWidget(self.g_fizi_single)
        self.layoutWidget2 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget2.setObjectName("layoutWidget2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.layoutWidget2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_13 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_3.addWidget(self.label_13)
        self.es_interpolate = QtWidgets.QCheckBox(self.layoutWidget2)
        self.es_interpolate.setText("")
        self.es_interpolate.setChecked(True)
        self.es_interpolate.setObjectName("es_interpolate")
        self.horizontalLayout_3.addWidget(self.es_interpolate)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_8 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_2.addWidget(self.label_8)
        self.es_win = QtWidgets.QSpinBox(self.layoutWidget2)
        self.es_win.setMinimum(3)
        self.es_win.setMaximum(9999)
        self.es_win.setProperty("value", 21)
        self.es_win.setObjectName("es_win")
        self.horizontalLayout_2.addWidget(self.es_win)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_21 = QtWidgets.QLabel(self.layoutWidget2)
        self.label_21.setObjectName("label_21")
        self.horizontalLayout.addWidget(self.label_21)
        self.es_order = QtWidgets.QSpinBox(self.layoutWidget2)
        self.es_order.setMinimum(1)
        self.es_order.setMaximum(9)
        self.es_order.setProperty("value", 3)
        self.es_order.setObjectName("es_order")
        self.horizontalLayout.addWidget(self.es_order)
        self.horizontalLayout_4.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.g_eze_all = PlotWidget(self.layoutWidget2)
        self.g_eze_all.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(True)
        self.g_eze_all.setFont(font)
        self.g_eze_all.setAcceptDrops(True)
        self.g_eze_all.setInteractive(True)
        self.g_eze_all.setObjectName("g_eze_all")
        self.verticalLayout_3.addWidget(self.g_eze_all)
        self.g_eze_single = PlotWidget(self.layoutWidget2)
        self.g_eze_single.setEnabled(True)
        self.g_eze_single.setObjectName("g_eze_single")
        self.verticalLayout_3.addWidget(self.g_eze_single)
        self.layoutWidget3 = QtWidgets.QWidget(self.splitter)
        self.layoutWidget3.setObjectName("layoutWidget3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.layoutWidget3)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.g_scatter1 = PlotWidget(self.layoutWidget3)
        self.g_scatter1.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.g_scatter1.sizePolicy().hasHeightForWidth())
        self.g_scatter1.setSizePolicy(sizePolicy)
        self.g_scatter1.setLineWidth(0)
        self.g_scatter1.setMidLineWidth(0)
        self.g_scatter1.setAlignment(QtCore.Qt.AlignCenter)
        self.g_scatter1.setObjectName("g_scatter1")
        self.verticalLayout_8.addWidget(self.g_scatter1)
        self.g_scatter2 = PlotWidget(self.layoutWidget3)
        self.g_scatter2.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.g_scatter2.sizePolicy().hasHeightForWidth())
        self.g_scatter2.setSizePolicy(sizePolicy)
        self.g_scatter2.setLineWidth(0)
        self.g_scatter2.setMidLineWidth(0)
        self.g_scatter2.setAlignment(QtCore.Qt.AlignCenter)
        self.g_scatter2.setObjectName("g_scatter2")
        self.verticalLayout_8.addWidget(self.g_scatter2)
        self.verticalLayout_9.addWidget(self.splitter)
        self.verticalLayout_13.addLayout(self.verticalLayout_9)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.groupBox_5 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.sel_filter = QtWidgets.QComboBox(self.groupBox_5)
        self.sel_filter.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.sel_filter.setAutoFillBackground(False)
        self.sel_filter.setFrame(True)
        self.sel_filter.setObjectName("sel_filter")
        self.sel_filter.addItem("")
        self.verticalLayout_5.addWidget(self.sel_filter)
        self.tabfilters = QtWidgets.QTabWidget(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabfilters.sizePolicy().hasHeightForWidth())
        self.tabfilters.setSizePolicy(sizePolicy)
        self.tabfilters.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabfilters.setUsesScrollButtons(True)
        self.tabfilters.setDocumentMode(False)
        self.tabfilters.setTabsClosable(True)
        self.tabfilters.setMovable(True)
        self.tabfilters.setTabBarAutoHide(False)
        self.tabfilters.setObjectName("tabfilters")
        self.verticalLayout_5.addWidget(self.tabfilters)
        self.horizontalLayout_5.addWidget(self.groupBox_5)
        self.boxCP = QtWidgets.QGroupBox(self.centralwidget)
        self.boxCP.setObjectName("boxCP")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.boxCP)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.sel_cp = QtWidgets.QComboBox(self.boxCP)
        self.sel_cp.setObjectName("sel_cp")
        self.sel_cp.addItem("")
        self.verticalLayout_4.addWidget(self.sel_cp)
        self.box_cp = QtWidgets.QGroupBox(self.boxCP)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_cp.sizePolicy().hasHeightForWidth())
        self.box_cp.setSizePolicy(sizePolicy)
        self.box_cp.setObjectName("box_cp")
        self.verticalLayout_4.addWidget(self.box_cp)
        self.setZeroForce = QtWidgets.QCheckBox(self.boxCP)
        self.setZeroForce.setChecked(True)
        self.setZeroForce.setObjectName("setZeroForce")
        self.verticalLayout_4.addWidget(self.setZeroForce)
        self.horizontalLayout_5.addWidget(self.boxCP)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.groupBox_10 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_10.setObjectName("groupBox_10")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_10)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.sel_fmodel = QtWidgets.QComboBox(self.groupBox_10)
        self.sel_fmodel.setObjectName("sel_fmodel")
        self.sel_fmodel.addItem("")
        self.verticalLayout_6.addWidget(self.sel_fmodel)
        self.box_fmodel = QtWidgets.QGroupBox(self.groupBox_10)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_fmodel.sizePolicy().hasHeightForWidth())
        self.box_fmodel.setSizePolicy(sizePolicy)
        self.box_fmodel.setObjectName("box_fmodel")
        self.verticalLayout_6.addWidget(self.box_fmodel)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label_9 = QtWidgets.QLabel(self.groupBox_10)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_9)
        self.zi_min = QtWidgets.QSpinBox(self.groupBox_10)
        self.zi_min.setMinimum(0)
        self.zi_min.setMaximum(9999)
        self.zi_min.setProperty("value", 0)
        self.zi_min.setObjectName("zi_min")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.zi_min)
        self.label_11 = QtWidgets.QLabel(self.groupBox_10)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_11)
        self.zi_max = QtWidgets.QSpinBox(self.groupBox_10)
        self.zi_max.setMinimum(0)
        self.zi_max.setMaximum(9999)
        self.zi_max.setProperty("value", 800)
        self.zi_max.setObjectName("zi_max")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.zi_max)
        self.verticalLayout_6.addLayout(self.formLayout)
        self.horizontalLayout_6.addWidget(self.groupBox_10)
        self.groupBox_11 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_11.setObjectName("groupBox_11")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_11)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.sel_emodel = QtWidgets.QComboBox(self.groupBox_11)
        self.sel_emodel.setObjectName("sel_emodel")
        self.sel_emodel.addItem("")
        self.verticalLayout_7.addWidget(self.sel_emodel)
        self.box_emodel = QtWidgets.QGroupBox(self.groupBox_11)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.box_emodel.sizePolicy().hasHeightForWidth())
        self.box_emodel.setSizePolicy(sizePolicy)
        self.box_emodel.setObjectName("box_emodel")
        self.verticalLayout_7.addWidget(self.box_emodel)
        self.formLayout_3 = QtWidgets.QFormLayout()
        self.formLayout_3.setObjectName("formLayout_3")
        self.label_12 = QtWidgets.QLabel(self.groupBox_11)
        self.label_12.setObjectName("label_12")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_12)
        self.ze_min = QtWidgets.QSpinBox(self.groupBox_11)
        self.ze_min.setMinimum(0)
        self.ze_min.setMaximum(9999)
        self.ze_min.setProperty("value", 0)
        self.ze_min.setObjectName("ze_min")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.ze_min)
        self.label_14 = QtWidgets.QLabel(self.groupBox_11)
        self.label_14.setObjectName("label_14")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_14)
        self.ze_max = QtWidgets.QSpinBox(self.groupBox_11)
        self.ze_max.setMinimum(0)
        self.ze_max.setMaximum(9999)
        self.ze_max.setProperty("value", 800)
        self.ze_max.setObjectName("ze_max")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.ze_max)
        self.verticalLayout_7.addLayout(self.formLayout_3)
        self.horizontalLayout_6.addWidget(self.groupBox_11)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.f_params = QtWidgets.QGroupBox(self.centralwidget)
        self.f_params.setObjectName("f_params")
        self.horizontalLayout_7.addWidget(self.f_params)
        self.e_params = QtWidgets.QGroupBox(self.centralwidget)
        self.e_params.setObjectName("e_params")
        self.horizontalLayout_7.addWidget(self.e_params)
        self.horizontalLayout_8.addLayout(self.horizontalLayout_7)
        self.groupBox_9 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_9.setObjectName("groupBox_9")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.groupBox_9)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.label = QtWidgets.QLabel(self.groupBox_9)
        self.label.setObjectName("label")
        self.verticalLayout_12.addWidget(self.label)
        self.slid_cv = QtWidgets.QSlider(self.groupBox_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slid_cv.sizePolicy().hasHeightForWidth())
        self.slid_cv.setSizePolicy(sizePolicy)
        self.slid_cv.setOrientation(QtCore.Qt.Horizontal)
        self.slid_cv.setObjectName("slid_cv")
        self.verticalLayout_12.addWidget(self.slid_cv)
        self.label_2 = QtWidgets.QLabel(self.groupBox_9)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_12.addWidget(self.label_2)
        self.slid_alpha = QtWidgets.QSlider(self.groupBox_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.slid_alpha.sizePolicy().hasHeightForWidth())
        self.slid_alpha.setSizePolicy(sizePolicy)
        self.slid_alpha.setMaximum(255)
        self.slid_alpha.setSingleStep(1)
        self.slid_alpha.setProperty("value", 100)
        self.slid_alpha.setOrientation(QtCore.Qt.Horizontal)
        self.slid_alpha.setObjectName("slid_alpha")
        self.verticalLayout_12.addWidget(self.slid_alpha)
        self.horizontalLayout_8.addWidget(self.groupBox_9)
        self.verticalLayout_13.addLayout(self.horizontalLayout_8)
        self.verticalLayout_14.addLayout(self.verticalLayout_13)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabfilters.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "SoftMech2021"))
        self.groupBox_7.setTitle(_translate("MainWindow", "Load"))
        self.consolle.setText(_translate("MainWindow", "Consolle"))
        self.b_protocol.setText(_translate("MainWindow", "Load protocol"))
        self.b_load.setText(_translate("MainWindow", "Load experiment"))
        self.groupBox_8.setTitle(_translate("MainWindow", "Save"))
        self.b_saveprotocol.setText(_translate("MainWindow", "Save protocol"))
        self.b_saveEdata.setText(
            _translate("MainWindow", "Save Elastography analysis"))
        self.b_saveFdata.setText(
            _translate("MainWindow", "Save Indentation Analysis"))
        self.b_saveexperiment.setText(
            _translate("MainWindow", "Save experiment"))
        self.label_13.setText(_translate("MainWindow", "Interpolate"))
        self.label_8.setText(_translate("MainWindow", "Window"))
        self.label_21.setText(_translate("MainWindow", "Order"))
        self.groupBox_5.setTitle(_translate("MainWindow", "Filters"))
        self.sel_filter.setItemText(0, _translate("MainWindow", "-- add --"))
        self.boxCP.setTitle(_translate("MainWindow", "Contact Point "))
        self.sel_cp.setItemText(0, _translate("MainWindow", "-- none --"))
        self.setZeroForce.setText(_translate("MainWindow",
                                             "Set CP force to 0"))
        self.groupBox_10.setTitle(_translate("MainWindow", "Force-ind model"))
        self.sel_fmodel.setItemText(0, _translate("MainWindow", "-- none --"))
        self.label_9.setText(_translate("MainWindow", "Min ind [nm]"))
        self.label_11.setText(_translate("MainWindow", "Max ind [nm]"))
        self.groupBox_11.setTitle(
            _translate("MainWindow", "Elasticity Spectra model"))
        self.sel_emodel.setItemText(0, _translate("MainWindow", "-- none --"))
        self.label_12.setText(_translate("MainWindow", "Min ind [nm]"))
        self.label_14.setText(_translate("MainWindow", "Max ind [nm]"))
        self.f_params.setTitle(
            _translate("MainWindow", "Force-ind model params"))
        self.e_params.setTitle(
            _translate("MainWindow", "Elasticity Spectra model params"))
        self.groupBox_9.setTitle(_translate("MainWindow", "Sliders"))
        self.label.setText(_translate("MainWindow", "Slide through curves"))
        self.label_2.setText(_translate("MainWindow", "Trasnparency "))