class Ui_Oscilloscope(object):
    def setupUi(self, Oscilloscope):
        Oscilloscope.setObjectName("Oscilloscope")
        Oscilloscope.resize(741, 543)
        self.verticalLayout = QtWidgets.QVBoxLayout(Oscilloscope)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gOsc = PlotWidget(Oscilloscope)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.gOsc.sizePolicy().hasHeightForWidth())
        self.gOsc.setSizePolicy(sizePolicy)
        self.gOsc.setObjectName("gOsc")
        self.verticalLayout.addWidget(self.gOsc)
        self.tabWidget_2 = QtWidgets.QTabWidget(Oscilloscope)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.groupBox_25 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_25.setFlat(True)
        self.groupBox_25.setObjectName("groupBox_25")
        self.horizontalLayout_23 = QtWidgets.QHBoxLayout(self.groupBox_25)
        self.horizontalLayout_23.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_23.setObjectName("horizontalLayout_23")
        self.tBgSt = QFNumberEdit(self.groupBox_25)
        self.tBgSt.setText("")
        self.tBgSt.setObjectName("tBgSt")
        self.horizontalLayout_23.addWidget(self.tBgSt)
        self.gridLayout_5.addWidget(self.groupBox_25, 0, 0, 1, 1)
        self.groupBox_27 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_27.setFlat(True)
        self.groupBox_27.setObjectName("groupBox_27")
        self.horizontalLayout_25 = QtWidgets.QHBoxLayout(self.groupBox_27)
        self.horizontalLayout_25.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_25.setObjectName("horizontalLayout_25")
        self.tFpSt = QFNumberEdit(self.groupBox_27)
        self.tFpSt.setObjectName("tFpSt")
        self.horizontalLayout_25.addWidget(self.tFpSt)
        self.gridLayout_5.addWidget(self.groupBox_27, 0, 1, 1, 1)
        self.groupBox_29 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_29.setFlat(True)
        self.groupBox_29.setObjectName("groupBox_29")
        self.horizontalLayout_27 = QtWidgets.QHBoxLayout(self.groupBox_29)
        self.horizontalLayout_27.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_27.setObjectName("horizontalLayout_27")
        self.tCdSt = QFNumberEdit(self.groupBox_29)
        self.tCdSt.setObjectName("tCdSt")
        self.horizontalLayout_27.addWidget(self.tCdSt)
        self.gridLayout_5.addWidget(self.groupBox_29, 0, 2, 1, 1)
        self.groupBox_26 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_26.setFlat(True)
        self.groupBox_26.setObjectName("groupBox_26")
        self.horizontalLayout_24 = QtWidgets.QHBoxLayout(self.groupBox_26)
        self.horizontalLayout_24.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_24.setObjectName("horizontalLayout_24")
        self.tBgEn = QFNumberEdit(self.groupBox_26)
        self.tBgEn.setText("")
        self.tBgEn.setObjectName("tBgEn")
        self.horizontalLayout_24.addWidget(self.tBgEn)
        self.gridLayout_5.addWidget(self.groupBox_26, 1, 0, 1, 1)
        self.groupBox_28 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_28.setFlat(True)
        self.groupBox_28.setObjectName("groupBox_28")
        self.horizontalLayout_26 = QtWidgets.QHBoxLayout(self.groupBox_28)
        self.horizontalLayout_26.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_26.setObjectName("horizontalLayout_26")
        self.tFpEn = QFNumberEdit(self.groupBox_28)
        self.tFpEn.setObjectName("tFpEn")
        self.horizontalLayout_26.addWidget(self.tFpEn)
        self.gridLayout_5.addWidget(self.groupBox_28, 1, 1, 1, 1)
        self.groupBox_30 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_30.setFlat(True)
        self.groupBox_30.setObjectName("groupBox_30")
        self.horizontalLayout_28 = QtWidgets.QHBoxLayout(self.groupBox_30)
        self.horizontalLayout_28.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_28.setObjectName("horizontalLayout_28")
        self.tCdEn = QFNumberEdit(self.groupBox_30)
        self.tCdEn.setObjectName("tCdEn")
        self.horizontalLayout_28.addWidget(self.tCdEn)
        self.gridLayout_5.addWidget(self.groupBox_30, 1, 2, 1, 1)
        self.bOscInit = QtWidgets.QPushButton(self.tab)
        self.bOscInit.setObjectName("bOscInit")
        self.gridLayout_5.addWidget(self.bOscInit, 0, 3, 1, 1)
        self.horizontalLayout_4.addLayout(self.gridLayout_5)
        self.tabWidget_2.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_48 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_48.setObjectName("horizontalLayout_48")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox_53 = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox_53.setFlat(True)
        self.groupBox_53.setObjectName("groupBox_53")
        self.horizontalLayout_47 = QtWidgets.QHBoxLayout(self.groupBox_53)
        self.horizontalLayout_47.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_47.setObjectName("horizontalLayout_47")
        self.tOscCDRatio = QFNumberEdit(self.groupBox_53)
        self.tOscCDRatio.setObjectName("tOscCDRatio")
        self.horizontalLayout_47.addWidget(self.tOscCDRatio)
        self.gridLayout.addWidget(self.groupBox_53, 0, 2, 1, 1)
        self.groupBox_52 = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox_52.setFlat(True)
        self.groupBox_52.setObjectName("groupBox_52")
        self.horizontalLayout_46 = QtWidgets.QHBoxLayout(self.groupBox_52)
        self.horizontalLayout_46.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_46.setObjectName("horizontalLayout_46")
        self.tOscFPRatio = QFNumberEdit(self.groupBox_52)
        self.tOscFPRatio.setObjectName("tOscFPRatio")
        self.horizontalLayout_46.addWidget(self.tOscFPRatio)
        self.gridLayout.addWidget(self.groupBox_52, 0, 1, 1, 1)
        self.groupBox_10 = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox_10.setFlat(True)
        self.groupBox_10.setObjectName("groupBox_10")
        self.horizontalLayout_45 = QtWidgets.QHBoxLayout(self.groupBox_10)
        self.horizontalLayout_45.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_45.setObjectName("horizontalLayout_45")
        self.tOscPulses = QtWidgets.QLineEdit(self.groupBox_10)
        self.tOscPulses.setEnabled(False)
        self.tOscPulses.setObjectName("tOscPulses")
        self.horizontalLayout_45.addWidget(self.tOscPulses)
        self.gridLayout.addWidget(self.groupBox_10, 0, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_2.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.cPyroMode = QtWidgets.QComboBox(self.groupBox)
        self.cPyroMode.setObjectName("cPyroMode")
        self.cPyroMode.addItem("")
        self.cPyroMode.addItem("")
        self.horizontalLayout_2.addWidget(self.cPyroMode)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_2)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_3.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.cFELCoupler = QtWidgets.QComboBox(self.groupBox_2)
        self.cFELCoupler.setObjectName("cFELCoupler")
        self.cFELCoupler.addItem("")
        self.cFELCoupler.addItem("")
        self.horizontalLayout_3.addWidget(self.cFELCoupler)
        self.gridLayout.addWidget(self.groupBox_2, 1, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 3, 1, 1)
        self.horizontalLayout_48.addLayout(self.gridLayout)
        self.tabWidget_2.addTab(self.tab_2, "")
        self.verticalLayout.addWidget(self.tabWidget_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.bOPause = QtWidgets.QPushButton(Oscilloscope)
        self.bOPause.setCheckable(True)
        self.bOPause.setChecked(True)
        self.bOPause.setObjectName("bOPause")
        self.horizontalLayout.addWidget(self.bOPause)
        self.groupBox_31 = QtWidgets.QGroupBox(Oscilloscope)
        self.groupBox_31.setFlat(True)
        self.groupBox_31.setObjectName("groupBox_31")
        self.horizontalLayout_29 = QtWidgets.QHBoxLayout(self.groupBox_31)
        self.horizontalLayout_29.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_29.setObjectName("horizontalLayout_29")
        self.cOGPIB = QtWidgets.QComboBox(self.groupBox_31)
        self.cOGPIB.setObjectName("cOGPIB")
        self.horizontalLayout_29.addWidget(self.cOGPIB)
        self.horizontalLayout.addWidget(self.groupBox_31)
        self.groupBox_32 = QtWidgets.QGroupBox(Oscilloscope)
        self.groupBox_32.setFlat(True)
        self.groupBox_32.setObjectName("groupBox_32")
        self.horizontalLayout_30 = QtWidgets.QHBoxLayout(self.groupBox_32)
        self.horizontalLayout_30.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_30.setObjectName("horizontalLayout_30")
        self.cOChannel = QtWidgets.QComboBox(self.groupBox_32)
        self.cOChannel.setObjectName("cOChannel")
        self.cOChannel.addItem("")
        self.cOChannel.addItem("")
        self.cOChannel.addItem("")
        self.cOChannel.addItem("")
        self.horizontalLayout_30.addWidget(self.cOChannel)
        self.horizontalLayout.addWidget(self.groupBox_32)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.bOPop = QtWidgets.QPushButton(Oscilloscope)
        self.bOPop.setObjectName("bOPop")
        self.horizontalLayout.addWidget(self.bOPop)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(Oscilloscope)
        self.tabWidget_2.setCurrentIndex(0)
        self.cPyroMode.setCurrentIndex(1)
        self.cOChannel.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(Oscilloscope)

    def retranslateUi(self, Oscilloscope):
        Oscilloscope.setWindowTitle(_translate("Oscilloscope", "Form", None))
        self.groupBox_25.setTitle(_translate("Oscilloscope", "Background Start", None))
        self.groupBox_27.setTitle(_translate("Oscilloscope", "Front Porch Start", None))
        self.groupBox_29.setTitle(_translate("Oscilloscope", "Cavity Dump Start", None))
        self.groupBox_26.setTitle(_translate("Oscilloscope", "Background End", None))
        self.groupBox_28.setTitle(_translate("Oscilloscope", "Front Porch End", None))
        self.groupBox_30.setTitle(_translate("Oscilloscope", "Cavity Dump End", None))
        self.bOscInit.setText(_translate("Oscilloscope", "Initialize Regions", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), _translate("Oscilloscope", "Boxcar Regions", None))
        self.groupBox_53.setTitle(_translate("Oscilloscope", "CD Ratio", None))
        self.tOscCDRatio.setText(_translate("Oscilloscope", "5", None))
        self.groupBox_52.setTitle(_translate("Oscilloscope", "FP Ratio", None))
        self.tOscFPRatio.setText(_translate("Oscilloscope", "1", None))
        self.groupBox_10.setTitle(_translate("Oscilloscope", "No. Pulses", None))
        self.groupBox.setTitle(_translate("Oscilloscope", "Pyro Mode", None))
        self.cPyroMode.setItemText(0, _translate("Oscilloscope", "Instant", None))
        self.cPyroMode.setItemText(1, _translate("Oscilloscope", "Integrating", None))
        self.groupBox_2.setTitle(_translate("Oscilloscope", "Coupler", None))
        self.cFELCoupler.setItemText(0, _translate("Oscilloscope", "Cavity Dump", None))
        self.cFELCoupler.setItemText(1, _translate("Oscilloscope", "Hole", None))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_2), _translate("Oscilloscope", "Pulse Counting Settings", None))
        self.bOPause.setText(_translate("Oscilloscope", "Pause", None))
        self.groupBox_31.setTitle(_translate("Oscilloscope", "GPIB", None))
        self.cOGPIB.setToolTip(_translate("Oscilloscope", "GPIB0::5::INSTR", None))
        self.groupBox_32.setTitle(_translate("Oscilloscope", "Channel", None))
        self.cOChannel.setItemText(0, _translate("Oscilloscope", "1", None))
        self.cOChannel.setItemText(1, _translate("Oscilloscope", "2", None))
        self.cOChannel.setItemText(2, _translate("Oscilloscope", "3", None))
        self.cOChannel.setItemText(3, _translate("Oscilloscope", "4", None))
        self.bOPop.setText(_translate("Oscilloscope", "Pop Out", None))
class Ui_Settings(object):
    def setupUi(self, Settings):
        Settings.setObjectName("Settings")
        Settings.resize(464, 510)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(Settings)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(Settings)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.cAGPIB = QtWidgets.QComboBox(Settings)
        self.cAGPIB.setObjectName("cAGPIB")
        self.horizontalLayout.addWidget(self.cAGPIB)
        self.horizontalLayout_9.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtWidgets.QLabel(Settings)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.cSGPIB = QtWidgets.QComboBox(Settings)
        self.cSGPIB.setObjectName("cSGPIB")
        self.horizontalLayout_2.addWidget(self.cSGPIB)
        self.horizontalLayout_9.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.lStartWN = QtWidgets.QLabel(Settings)
        self.lStartWN.setObjectName("lStartWN")
        self.horizontalLayout_3.addWidget(self.lStartWN)
        self.tStartWN = QFNumberEdit(Settings)
        self.tStartWN.setObjectName("tStartWN")
        self.horizontalLayout_3.addWidget(self.tStartWN)
        self.lStepWN = QtWidgets.QLabel(Settings)
        self.lStepWN.setObjectName("lStepWN")
        self.horizontalLayout_3.addWidget(self.lStepWN)
        self.tStepWN = QFNumberEdit(Settings)
        self.tStepWN.setObjectName("tStepWN")
        self.horizontalLayout_3.addWidget(self.tStepWN)
        self.lEndWN = QtWidgets.QLabel(Settings)
        self.lEndWN.setObjectName("lEndWN")
        self.horizontalLayout_3.addWidget(self.lEndWN)
        self.tEndWN = QFNumberEdit(Settings)
        self.tEndWN.setObjectName("tEndWN")
        self.horizontalLayout_3.addWidget(self.tEndWN)
        self.label_10 = QtWidgets.QLabel(Settings)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_3.addWidget(self.label_10)
        self.tAverages = QINumberEdit(Settings)
        self.tAverages.setObjectName("tAverages")
        self.horizontalLayout_3.addWidget(self.tAverages)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.label_18 = QtWidgets.QLabel(Settings)
        self.label_18.setObjectName("label_18")
        self.horizontalLayout_11.addWidget(self.label_18)
        self.tGotoSB = QFNumberEdit(Settings)
        self.tGotoSB.setObjectName("tGotoSB")
        self.horizontalLayout_11.addWidget(self.tGotoSB)
        self.label_19 = QtWidgets.QLabel(Settings)
        self.label_19.setObjectName("label_19")
        self.horizontalLayout_11.addWidget(self.label_19)
        self.tGotoBound = QFNumberEdit(Settings)
        self.tGotoBound.setObjectName("tGotoBound")
        self.horizontalLayout_11.addWidget(self.tGotoBound)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem)
        self.verticalLayout_2.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_7 = QtWidgets.QLabel(Settings)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_4.addWidget(self.label_7)
        self.cPyroCh = QtWidgets.QComboBox(Settings)
        self.cPyroCh.setObjectName("cPyroCh")
        self.horizontalLayout_4.addWidget(self.cPyroCh)
        self.label_6 = QtWidgets.QLabel(Settings)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_4.addWidget(self.label_6)
        self.cPMCh = QtWidgets.QComboBox(Settings)
        self.cPMCh.setObjectName("cPMCh")
        self.horizontalLayout_4.addWidget(self.cPMCh)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.line = QtWidgets.QFrame(Settings)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_2.addWidget(self.line)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_8 = QtWidgets.QLabel(Settings)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_5.addWidget(self.label_8)
        self.tNIRP = QFNumberEdit(Settings)
        self.tNIRP.setObjectName("tNIRP")
        self.horizontalLayout_5.addWidget(self.tNIRP)
        self.label_12 = QtWidgets.QLabel(Settings)
        self.label_12.setObjectName("label_12")
        self.horizontalLayout_5.addWidget(self.label_12)
        self.tNIRLam = QFNumberEdit(Settings)
        self.tNIRLam.setObjectName("tNIRLam")
        self.horizontalLayout_5.addWidget(self.tNIRLam)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_13 = QtWidgets.QLabel(Settings)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_7.addWidget(self.label_13)
        self.cbPMHV = QtWidgets.QComboBox(Settings)
        self.cbPMHV.setObjectName("cbPMHV")
        self.cbPMHV.addItem("")
        self.cbPMHV.addItem("")
        self.horizontalLayout_7.addWidget(self.cbPMHV)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.cbFilterWhite = QtWidgets.QCheckBox(Settings)
        self.cbFilterWhite.setObjectName("cbFilterWhite")
        self.horizontalLayout_7.addWidget(self.cbFilterWhite)
        self.cbFilterBlue = QtWidgets.QCheckBox(Settings)
        self.cbFilterBlue.setObjectName("cbFilterBlue")
        self.horizontalLayout_7.addWidget(self.cbFilterBlue)
        self.cbFilterTriplet = QtWidgets.QCheckBox(Settings)
        self.cbFilterTriplet.setObjectName("cbFilterTriplet")
        self.horizontalLayout_7.addWidget(self.cbFilterTriplet)
        self.verticalLayout_2.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_9 = QtWidgets.QLabel(Settings)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_6.addWidget(self.label_9)
        self.tFELP = QFNumberEdit(Settings)
        self.tFELP.setObjectName("tFELP")
        self.horizontalLayout_6.addWidget(self.tFELP)
        self.label_15 = QtWidgets.QLabel(Settings)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_6.addWidget(self.label_15)
        self.tFELLam = QFNumberEdit(Settings)
        self.tFELLam.setObjectName("tFELLam")
        self.horizontalLayout_6.addWidget(self.tFELLam)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_16 = QtWidgets.QLabel(Settings)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_8.addWidget(self.label_16)
        self.tRepRate = QFNumberEdit(Settings)
        self.tRepRate.setObjectName("tRepRate")
        self.horizontalLayout_8.addWidget(self.tRepRate)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem2)
        self.label_14 = QtWidgets.QLabel(Settings)
        self.label_14.setObjectName("label_14")
        self.horizontalLayout_8.addWidget(self.label_14)
        self.tTemp = QFNumberEdit(Settings)
        self.tTemp.setObjectName("tTemp")
        self.horizontalLayout_8.addWidget(self.tTemp)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_11 = QtWidgets.QLabel(Settings)
        self.label_11.setObjectName("label_11")
        self.verticalLayout.addWidget(self.label_11)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.horizontalLayout_10.addLayout(self.verticalLayout)
        self.tSaveComments = QtWidgets.QTextEdit(Settings)
        self.tSaveComments.setObjectName("tSaveComments")
        self.horizontalLayout_10.addWidget(self.tSaveComments)
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.cbSaveWaveforms = QtWidgets.QCheckBox(Settings)
        self.cbSaveWaveforms.setObjectName("cbSaveWaveforms")
        self.horizontalLayout_12.addWidget(self.cbSaveWaveforms)
        self.cbPC = QtWidgets.QCheckBox(Settings)
        self.cbPC.setEnabled(False)
        self.cbPC.setObjectName("cbPC")
        self.horizontalLayout_12.addWidget(self.cbPC)
        self.verticalLayout_2.addLayout(self.horizontalLayout_12)
        self.buttonBox = QtWidgets.QDialogButtonBox(Settings)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout_2.addWidget(self.buttonBox)

        self.retranslateUi(Settings)
        self.buttonBox.accepted.connect(Settings.accept)
        self.buttonBox.rejected.connect(Settings.reject)
        QtCore.QMetaObject.connectSlotsByName(Settings)

    def retranslateUi(self, Settings):
        Settings.setWindowTitle(_translate("Settings", "Settings", None))
        self.label.setText(_translate("Settings", "Oscilliscope GPIB", None))
        self.cAGPIB.setToolTip(
            _translate("Settings",
                       "<html><head/><body><p>USB...</p></body></html>", None))
        self.label_2.setText(_translate("Settings", "SPEX GPIB", None))
        self.cSGPIB.setToolTip(
            _translate(
                "Settings",
                "<html><head/><body><p>GPIB0::4::INSTR</p></body></html>",
                None))
        self.lStartWN.setText(_translate("Settings", "Starting WN", None))
        self.lStepWN.setText(_translate("Settings", "Step", None))
        self.lEndWN.setText(_translate("Settings", "Ending WN", None))
        self.label_10.setText(_translate("Settings", "Average", None))
        self.label_18.setText(_translate("Settings", "Go to SB #:", None))
        self.label_19.setText(_translate("Settings", "+/-", None))
        self.label_7.setText(_translate("Settings", "Pyro Channel", None))
        self.label_6.setText(_translate("Settings", "PM Channel", None))
        self.label_8.setText(_translate("Settings", "NIR Power (mW)", None))
        self.tNIRP.setText(_translate("Settings", "0", None))
        self.label_12.setText(_translate("Settings", "NIR (cm-1)", None))
        self.tNIRLam.setText(_translate("Settings", "0", None))
        self.label_13.setText(_translate("Settings", "PM HV", None))
        self.cbPMHV.setItemText(0, _translate("Settings", "700", None))
        self.cbPMHV.setItemText(1, _translate("Settings", "1000", None))
        self.cbFilterWhite.setText(_translate("Settings", "White", None))
        self.cbFilterBlue.setText(_translate("Settings", "Blue", None))
        self.cbFilterTriplet.setText(_translate("Settings", "Triplet", None))
        self.label_9.setText(_translate("Settings", "FEL Energy (mJ)", None))
        self.tFELP.setText(_translate("Settings", "0", None))
        self.label_15.setText(_translate("Settings", "FEL  (cm-1)", None))
        self.tFELLam.setText(_translate("Settings", "0", None))
        self.label_16.setText(_translate("Settings", "Rep Rate(Hz)", None))
        self.tRepRate.setText(_translate("Settings", "1.07", None))
        self.label_14.setText(_translate("Settings", "Temperature", None))
        self.tTemp.setText(_translate("Settings", "0", None))
        self.label_11.setText(_translate("Settings", "Save Comments:", None))
        self.cbSaveWaveforms.setText(
            _translate("Settings", "Save waveforms instead of boxcars", None))
        self.cbPC.setText(
            _translate("Settings", "Photon Count Waveforms", None))
class Ui_Oscilloscope(object):
    def setupUi(self, Oscilloscope):
        Oscilloscope.setObjectName(_fromUtf8("Oscilloscope"))
        Oscilloscope.resize(741, 543)
        self.verticalLayout = QtGui.QVBoxLayout(Oscilloscope)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(Oscilloscope)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.gOsc = PlotWidget(self.tab_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.gOsc.sizePolicy().hasHeightForWidth())
        self.gOsc.setSizePolicy(sizePolicy)
        self.gOsc.setObjectName(_fromUtf8("gOsc"))
        self.verticalLayout_2.addWidget(self.gOsc)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.bOscInit = QtGui.QPushButton(self.tab_4)
        self.bOscInit.setObjectName(_fromUtf8("bOscInit"))
        self.horizontalLayout_4.addWidget(self.bOscInit)
        self.bOPop = QtGui.QPushButton(self.tab_4)
        self.bOPop.setObjectName(_fromUtf8("bOPop"))
        self.horizontalLayout_4.addWidget(self.bOPop)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_5)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setContentsMargins(-1, -1, -1, 0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.bLogDir = QtGui.QPushButton(self.tab_5)
        self.bLogDir.setObjectName(_fromUtf8("bLogDir"))
        self.horizontalLayout_7.addWidget(self.bLogDir)
        self.bLogData = QtGui.QPushButton(self.tab_5)
        self.bLogData.setCheckable(True)
        self.bLogData.setObjectName(_fromUtf8("bLogData"))
        self.horizontalLayout_7.addWidget(self.bLogData)
        self.verticalLayout_3.addLayout(self.horizontalLayout_7)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.groupBox_29 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_29.setFlat(True)
        self.groupBox_29.setObjectName(_fromUtf8("groupBox_29"))
        self.horizontalLayout_27 = QtGui.QHBoxLayout(self.groupBox_29)
        self.horizontalLayout_27.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_27.setObjectName(
            _fromUtf8("horizontalLayout_27"))
        self.tCdSt = QFNumberEdit(self.groupBox_29)
        self.tCdSt.setObjectName(_fromUtf8("tCdSt"))
        self.horizontalLayout_27.addWidget(self.tCdSt)
        self.gridLayout_5.addWidget(self.groupBox_29, 0, 2, 1, 1)
        self.groupBox_30 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_30.setFlat(True)
        self.groupBox_30.setObjectName(_fromUtf8("groupBox_30"))
        self.horizontalLayout_28 = QtGui.QHBoxLayout(self.groupBox_30)
        self.horizontalLayout_28.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_28.setObjectName(
            _fromUtf8("horizontalLayout_28"))
        self.tCdEn = QFNumberEdit(self.groupBox_30)
        self.tCdEn.setObjectName(_fromUtf8("tCdEn"))
        self.horizontalLayout_28.addWidget(self.tCdEn)
        self.gridLayout_5.addWidget(self.groupBox_30, 1, 2, 1, 1)
        self.groupBox_27 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_27.setFlat(True)
        self.groupBox_27.setObjectName(_fromUtf8("groupBox_27"))
        self.horizontalLayout_25 = QtGui.QHBoxLayout(self.groupBox_27)
        self.horizontalLayout_25.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_25.setObjectName(
            _fromUtf8("horizontalLayout_25"))
        self.tFpSt = QFNumberEdit(self.groupBox_27)
        self.tFpSt.setObjectName(_fromUtf8("tFpSt"))
        self.horizontalLayout_25.addWidget(self.tFpSt)
        self.gridLayout_5.addWidget(self.groupBox_27, 0, 1, 1, 1)
        self.groupBox_28 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_28.setFlat(True)
        self.groupBox_28.setObjectName(_fromUtf8("groupBox_28"))
        self.horizontalLayout_26 = QtGui.QHBoxLayout(self.groupBox_28)
        self.horizontalLayout_26.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_26.setObjectName(
            _fromUtf8("horizontalLayout_26"))
        self.tFpEn = QFNumberEdit(self.groupBox_28)
        self.tFpEn.setObjectName(_fromUtf8("tFpEn"))
        self.horizontalLayout_26.addWidget(self.tFpEn)
        self.gridLayout_5.addWidget(self.groupBox_28, 1, 1, 1, 1)
        self.groupBox_25 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_25.setFlat(True)
        self.groupBox_25.setObjectName(_fromUtf8("groupBox_25"))
        self.horizontalLayout_23 = QtGui.QHBoxLayout(self.groupBox_25)
        self.horizontalLayout_23.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_23.setObjectName(
            _fromUtf8("horizontalLayout_23"))
        self.tBgSt = QFNumberEdit(self.groupBox_25)
        self.tBgSt.setText(_fromUtf8(""))
        self.tBgSt.setObjectName(_fromUtf8("tBgSt"))
        self.horizontalLayout_23.addWidget(self.tBgSt)
        self.gridLayout_5.addWidget(self.groupBox_25, 0, 0, 1, 1)
        self.groupBox_26 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_26.setFlat(True)
        self.groupBox_26.setObjectName(_fromUtf8("groupBox_26"))
        self.horizontalLayout_24 = QtGui.QHBoxLayout(self.groupBox_26)
        self.horizontalLayout_24.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_24.setObjectName(
            _fromUtf8("horizontalLayout_24"))
        self.tBgEn = QFNumberEdit(self.groupBox_26)
        self.tBgEn.setText(_fromUtf8(""))
        self.tBgEn.setObjectName(_fromUtf8("tBgEn"))
        self.horizontalLayout_24.addWidget(self.tBgEn)
        self.gridLayout_5.addWidget(self.groupBox_26, 1, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_5)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.groupBox_10 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_10.setFlat(True)
        self.groupBox_10.setObjectName(_fromUtf8("groupBox_10"))
        self.horizontalLayout_45 = QtGui.QHBoxLayout(self.groupBox_10)
        self.horizontalLayout_45.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_45.setObjectName(
            _fromUtf8("horizontalLayout_45"))
        self.tOscPulses = QtGui.QLineEdit(self.groupBox_10)
        self.tOscPulses.setEnabled(False)
        self.tOscPulses.setObjectName(_fromUtf8("tOscPulses"))
        self.horizontalLayout_45.addWidget(self.tOscPulses)
        self.gridLayout.addWidget(self.groupBox_10, 0, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.tab_5)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_2.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.cPyroMode = QtGui.QComboBox(self.groupBox)
        self.cPyroMode.setObjectName(_fromUtf8("cPyroMode"))
        self.cPyroMode.addItem(_fromUtf8(""))
        self.cPyroMode.addItem(_fromUtf8(""))
        self.horizontalLayout_2.addWidget(self.cPyroMode)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_3.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.cFELCoupler = QtGui.QComboBox(self.groupBox_2)
        self.cFELCoupler.setObjectName(_fromUtf8("cFELCoupler"))
        self.cFELCoupler.addItem(_fromUtf8(""))
        self.cFELCoupler.addItem(_fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.cFELCoupler)
        self.gridLayout.addWidget(self.groupBox_2, 1, 1, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem3, 0, 3, 1, 1)
        self.groupBox_53 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_53.setFlat(True)
        self.groupBox_53.setObjectName(_fromUtf8("groupBox_53"))
        self.horizontalLayout_47 = QtGui.QHBoxLayout(self.groupBox_53)
        self.horizontalLayout_47.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_47.setObjectName(
            _fromUtf8("horizontalLayout_47"))
        self.tOscCDRatio = QFNumberEdit(self.groupBox_53)
        self.tOscCDRatio.setObjectName(_fromUtf8("tOscCDRatio"))
        self.horizontalLayout_47.addWidget(self.tOscCDRatio)
        self.gridLayout.addWidget(self.groupBox_53, 0, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.groupBox_55 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_55.setFlat(True)
        self.groupBox_55.setObjectName(_fromUtf8("groupBox_55"))
        self.horizontalLayout_53 = QtGui.QHBoxLayout(self.groupBox_55)
        self.horizontalLayout_53.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_53.setObjectName(
            _fromUtf8("horizontalLayout_53"))
        self.tSpotSize = QFNumberEdit(self.groupBox_55)
        self.tSpotSize.setObjectName(_fromUtf8("tSpotSize"))
        self.horizontalLayout_53.addWidget(self.tSpotSize)
        self.gridLayout_2.addWidget(self.groupBox_55, 1, 1, 1, 1)
        self.groupBox_39 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_39.setFlat(True)
        self.groupBox_39.setCheckable(False)
        self.groupBox_39.setObjectName(_fromUtf8("groupBox_39"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_39)
        self.gridLayout_9.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_9.setSpacing(0)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.tFELFreq = QFNumberEdit(self.groupBox_39)
        self.tFELFreq.setObjectName(_fromUtf8("tFELFreq"))
        self.gridLayout_9.addWidget(self.tFELFreq, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_39, 1, 0, 1, 1)
        self.groupBox_58 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_58.setFlat(True)
        self.groupBox_58.setObjectName(_fromUtf8("groupBox_58"))
        self.horizontalLayout_55 = QtGui.QHBoxLayout(self.groupBox_58)
        self.horizontalLayout_55.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_55.setObjectName(
            _fromUtf8("horizontalLayout_55"))
        self.tEffectiveField = QFNumberEdit(self.groupBox_58)
        self.tEffectiveField.setObjectName(_fromUtf8("tEffectiveField"))
        self.horizontalLayout_55.addWidget(self.tEffectiveField)
        self.gridLayout_2.addWidget(self.groupBox_58, 1, 3, 1, 1)
        self.groupBox_57 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_57.setFlat(True)
        self.groupBox_57.setObjectName(_fromUtf8("groupBox_57"))
        self.horizontalLayout_51 = QtGui.QHBoxLayout(self.groupBox_57)
        self.horizontalLayout_51.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_51.setObjectName(
            _fromUtf8("horizontalLayout_51"))
        self.tWindowTransmission = QFNumberEdit(self.groupBox_57)
        self.tWindowTransmission.setObjectName(
            _fromUtf8("tWindowTransmission"))
        self.horizontalLayout_51.addWidget(self.tWindowTransmission)
        self.gridLayout_2.addWidget(self.groupBox_57, 1, 2, 1, 1)
        self.groupBox_41 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_41.setFlat(True)
        self.groupBox_41.setCheckable(False)
        self.groupBox_41.setObjectName(_fromUtf8("groupBox_41"))
        self.gridLayout_11 = QtGui.QGridLayout(self.groupBox_41)
        self.gridLayout_11.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_11.setSpacing(0)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.tFELRR = QtGui.QLineEdit(self.groupBox_41)
        self.tFELRR.setObjectName(_fromUtf8("tFELRR"))
        self.gridLayout_11.addWidget(self.tFELRR, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_41, 1, 4, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_5.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.tFELPol = QtGui.QLineEdit(self.groupBox_3)
        self.tFELPol.setObjectName(_fromUtf8("tFELPol"))
        self.horizontalLayout_5.addWidget(self.tFELPol)
        self.gridLayout_2.addWidget(self.groupBox_3, 0, 4, 1, 1)
        self.groupBox_60 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_60.setEnabled(False)
        self.groupBox_60.setFlat(True)
        self.groupBox_60.setObjectName(_fromUtf8("groupBox_60"))
        self.horizontalLayout_57 = QtGui.QHBoxLayout(self.groupBox_60)
        self.horizontalLayout_57.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_57.setObjectName(
            _fromUtf8("horizontalLayout_57"))
        self.tIntensity = QtGui.QLineEdit(self.groupBox_60)
        self.tIntensity.setObjectName(_fromUtf8("tIntensity"))
        self.horizontalLayout_57.addWidget(self.tIntensity)
        self.gridLayout_2.addWidget(self.groupBox_60, 0, 3, 1, 1)
        self.groupBox_59 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_59.setEnabled(False)
        self.groupBox_59.setFlat(True)
        self.groupBox_59.setObjectName(_fromUtf8("groupBox_59"))
        self.horizontalLayout_56 = QtGui.QHBoxLayout(self.groupBox_59)
        self.horizontalLayout_56.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_56.setObjectName(
            _fromUtf8("horizontalLayout_56"))
        self.tEField = QtGui.QLineEdit(self.groupBox_59)
        self.tEField.setObjectName(_fromUtf8("tEField"))
        self.horizontalLayout_56.addWidget(self.tEField)
        self.gridLayout_2.addWidget(self.groupBox_59, 0, 2, 1, 1)
        self.groupBox_40 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_40.setFlat(True)
        self.groupBox_40.setCheckable(False)
        self.groupBox_40.setObjectName(_fromUtf8("groupBox_40"))
        self.gridLayout_10 = QtGui.QGridLayout(self.groupBox_40)
        self.gridLayout_10.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_10.setSpacing(0)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.tFELP = QFNumberEdit(self.groupBox_40)
        self.tFELP.setEnabled(False)
        self.tFELP.setReadOnly(True)
        self.tFELP.setObjectName(_fromUtf8("tFELP"))
        self.gridLayout_10.addWidget(self.tFELP, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_40, 0, 1, 1, 1)
        self.groupBox_4 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_6.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.tCalFactor = QFNumberEdit(self.groupBox_4)
        self.tCalFactor.setObjectName(_fromUtf8("tCalFactor"))
        self.horizontalLayout_6.addWidget(self.tCalFactor)
        self.gridLayout_2.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.oscControlsWidget = QtGui.QWidget(Oscilloscope)
        self.oscControlsWidget.setObjectName(_fromUtf8("oscControlsWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.oscControlsWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.bOPause = QtGui.QPushButton(self.oscControlsWidget)
        self.bOPause.setCheckable(True)
        self.bOPause.setChecked(True)
        self.bOPause.setObjectName(_fromUtf8("bOPause"))
        self.horizontalLayout.addWidget(self.bOPause)
        self.groupBox_31 = QtGui.QGroupBox(self.oscControlsWidget)
        self.groupBox_31.setFlat(True)
        self.groupBox_31.setObjectName(_fromUtf8("groupBox_31"))
        self.horizontalLayout_29 = QtGui.QHBoxLayout(self.groupBox_31)
        self.horizontalLayout_29.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_29.setObjectName(
            _fromUtf8("horizontalLayout_29"))
        self.cOGPIB = QtGui.QComboBox(self.groupBox_31)
        self.cOGPIB.setObjectName(_fromUtf8("cOGPIB"))
        self.horizontalLayout_29.addWidget(self.cOGPIB)
        self.horizontalLayout.addWidget(self.groupBox_31)
        self.groupBox_32 = QtGui.QGroupBox(self.oscControlsWidget)
        self.groupBox_32.setFlat(True)
        self.groupBox_32.setObjectName(_fromUtf8("groupBox_32"))
        self.horizontalLayout_30 = QtGui.QHBoxLayout(self.groupBox_32)
        self.horizontalLayout_30.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_30.setObjectName(
            _fromUtf8("horizontalLayout_30"))
        self.cOChannel = QtGui.QComboBox(self.groupBox_32)
        self.cOChannel.setObjectName(_fromUtf8("cOChannel"))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.horizontalLayout_30.addWidget(self.cOChannel)
        self.horizontalLayout.addWidget(self.groupBox_32)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem4)
        self.verticalLayout.addWidget(self.oscControlsWidget)

        self.retranslateUi(Oscilloscope)
        self.tabWidget.setCurrentIndex(0)
        self.cPyroMode.setCurrentIndex(1)
        self.cOChannel.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(Oscilloscope)
        Oscilloscope.setTabOrder(self.tBgSt, self.tFpSt)
        Oscilloscope.setTabOrder(self.tFpSt, self.tCdSt)
        Oscilloscope.setTabOrder(self.tCdSt, self.tBgEn)
        Oscilloscope.setTabOrder(self.tBgEn, self.tFpEn)
        Oscilloscope.setTabOrder(self.tFpEn, self.tCdEn)
        Oscilloscope.setTabOrder(self.tCdEn, self.tOscPulses)
        Oscilloscope.setTabOrder(self.tOscPulses, self.tOscCDRatio)
        Oscilloscope.setTabOrder(self.tOscCDRatio, self.cPyroMode)
        Oscilloscope.setTabOrder(self.cPyroMode, self.cFELCoupler)
        Oscilloscope.setTabOrder(self.cFELCoupler, self.tCalFactor)
        Oscilloscope.setTabOrder(self.tCalFactor, self.tFELP)
        Oscilloscope.setTabOrder(self.tFELP, self.tEField)
        Oscilloscope.setTabOrder(self.tEField, self.tIntensity)
        Oscilloscope.setTabOrder(self.tIntensity, self.tFELPol)
        Oscilloscope.setTabOrder(self.tFELPol, self.tFELFreq)
        Oscilloscope.setTabOrder(self.tFELFreq, self.tSpotSize)
        Oscilloscope.setTabOrder(self.tSpotSize, self.tWindowTransmission)
        Oscilloscope.setTabOrder(self.tWindowTransmission,
                                 self.tEffectiveField)
        Oscilloscope.setTabOrder(self.tEffectiveField, self.tFELRR)
        Oscilloscope.setTabOrder(self.tFELRR, self.bOPause)
        Oscilloscope.setTabOrder(self.bOPause, self.cOGPIB)
        Oscilloscope.setTabOrder(self.cOGPIB, self.cOChannel)
        Oscilloscope.setTabOrder(self.cOChannel, self.bLogDir)
        Oscilloscope.setTabOrder(self.bLogDir, self.bLogData)
        Oscilloscope.setTabOrder(self.bLogData, self.tabWidget)
        Oscilloscope.setTabOrder(self.tabWidget, self.gOsc)
        Oscilloscope.setTabOrder(self.gOsc, self.bOPop)
        Oscilloscope.setTabOrder(self.bOPop, self.bOscInit)

    def retranslateUi(self, Oscilloscope):
        Oscilloscope.setWindowTitle(_translate("Oscilloscope", "Form", None))
        self.bOscInit.setText(
            _translate("Oscilloscope", "Initialize Regions", None))
        self.bOPop.setText(_translate("Oscilloscope", "Pop Out", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("Oscilloscope", "Waveform", None))
        self.bLogDir.setText(_translate("Oscilloscope", "Choose Dir...", None))
        self.bLogData.setText(_translate("Oscilloscope", "Log Pulses", None))
        self.groupBox_29.setTitle(
            _translate("Oscilloscope", "Cavity Dump Start", None))
        self.groupBox_30.setTitle(
            _translate("Oscilloscope", "Cavity Dump End", None))
        self.groupBox_27.setTitle(
            _translate("Oscilloscope", "Front Porch Start", None))
        self.groupBox_28.setTitle(
            _translate("Oscilloscope", "Front Porch End", None))
        self.groupBox_25.setTitle(
            _translate("Oscilloscope", "Background Start", None))
        self.groupBox_26.setTitle(
            _translate("Oscilloscope", "Background End", None))
        self.groupBox_10.setTitle(
            _translate("Oscilloscope", "No. Pulses", None))
        self.groupBox.setTitle(_translate("Oscilloscope", "Pyro Mode", None))
        self.cPyroMode.setItemText(0,
                                   _translate("Oscilloscope", "Instant", None))
        self.cPyroMode.setItemText(
            1, _translate("Oscilloscope", "Integrating", None))
        self.groupBox_2.setTitle(_translate("Oscilloscope", "Coupler", None))
        self.cFELCoupler.setItemText(
            0, _translate("Oscilloscope", "Cavity Dump", None))
        self.cFELCoupler.setItemText(1, _translate("Oscilloscope", "Hole",
                                                   None))
        self.groupBox_53.setTitle(_translate("Oscilloscope", "CD Ratio", None))
        self.tOscCDRatio.setText(_translate("Oscilloscope", "0.007", None))
        self.groupBox_55.setTitle(
            _translate("Oscilloscope", "Spot Size(cm)", None))
        self.tSpotSize.setToolTip(
            _translate("Oscilloscope", "Radius of FEL spot size", None))
        self.tSpotSize.setText(_translate("Oscilloscope", "0.05", None))
        self.groupBox_39.setTitle(
            _translate("Oscilloscope", "FEL Freq (cm-1)", None))
        self.tFELFreq.setText(_translate("Oscilloscope", "0", None))
        self.groupBox_58.setTitle(
            _translate("Oscilloscope", "Sample E_eff", None))
        self.tEffectiveField.setText(_translate("Oscilloscope", "1.0", None))
        self.groupBox_57.setTitle(
            _translate("Oscilloscope", "Window Trans", None))
        self.tWindowTransmission.setText(
            _translate("Oscilloscope", "1.0", None))
        self.groupBox_41.setTitle(
            _translate("Oscilloscope", "Rep Rate (Hz)", None))
        self.tFELRR.setText(_translate("Oscilloscope", "1.07", None))
        self.groupBox_3.setTitle(_translate("Oscilloscope", "FEL Pol", None))
        self.tFELPol.setText(_translate("Oscilloscope", "H", None))
        self.groupBox_60.setTitle(
            _translate("Oscilloscope", "I (kW/cm2)", None))
        self.tIntensity.setText(_translate("Oscilloscope", "0.0", None))
        self.groupBox_59.setTitle(_translate("Oscilloscope", "E (kV/cm)",
                                             None))
        self.tEField.setText(_translate("Oscilloscope", "0.0", None))
        self.groupBox_40.setTitle(
            _translate("Oscilloscope", "FEL Energy (mJ)", None))
        self.tFELP.setText(_translate("Oscilloscope", "0", None))
        self.groupBox_4.setTitle(
            _translate("Oscilloscope", "Pyro Cal (mJ/mV)", None))
        self.tCalFactor.setText(_translate("Oscilloscope", "0", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_5),
            _translate("Oscilloscope", "Misc Settings", None))
        self.bOPause.setText(_translate("Oscilloscope", "Pause", None))
        self.groupBox_31.setTitle(_translate("Oscilloscope", "GPIB", None))
        self.cOGPIB.setToolTip(
            _translate("Oscilloscope", "GPIB0::5::INSTR", None))
        self.groupBox_32.setTitle(_translate("Oscilloscope", "Channel", None))
        self.cOChannel.setItemText(0, _translate("Oscilloscope", "1", None))
        self.cOChannel.setItemText(1, _translate("Oscilloscope", "2", None))
        self.cOChannel.setItemText(2, _translate("Oscilloscope", "3", None))
        self.cOChannel.setItemText(3, _translate("Oscilloscope", "4", None))
class Ui_ArduinoWavemeter(object):
    def setupUi(self, ArduinoWavemeter):
        ArduinoWavemeter.setObjectName(_fromUtf8("ArduinoWavemeter"))
        ArduinoWavemeter.resize(1093, 789)
        self.centralwidget = QtGui.QWidget(ArduinoWavemeter)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.splitter_2 = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth())
        self.splitter_2.setSizePolicy(sizePolicy)
        self.splitter_2.setOrientation(QtCore.Qt.Vertical)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.splitter = QtGui.QSplitter(self.splitter_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.gRealSpace = PlotWidget(self.splitter)
        self.gRealSpace.setObjectName(_fromUtf8("gRealSpace"))
        self.gFFT = PlotWidget(self.splitter)
        self.gFFT.setObjectName(_fromUtf8("gFFT"))
        self.gridLayoutWidget = QtGui.QWidget(self.splitter_2)
        self.gridLayoutWidget.setObjectName(_fromUtf8("gridLayoutWidget"))
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.groupBox_4 = QtGui.QGroupBox(self.gridLayoutWidget)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.cGPIB = QtGui.QComboBox(self.groupBox_4)
        self.cGPIB.setObjectName(_fromUtf8("cGPIB"))
        self.horizontalLayout_4.addWidget(self.cGPIB)
        self.gridLayout.addWidget(self.groupBox_4, 1, 1, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.gridLayoutWidget)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_3.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tExposure = QFNumberEdit(self.groupBox_3)
        self.tExposure.setObjectName(_fromUtf8("tExposure"))
        self.horizontalLayout_3.addWidget(self.tExposure)
        self.gridLayout.addWidget(self.groupBox_3, 1, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(self.gridLayoutWidget)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tWavelengthnm = QtGui.QLineEdit(self.groupBox)
        self.tWavelengthnm.setReadOnly(True)
        self.tWavelengthnm.setObjectName(_fromUtf8("tWavelengthnm"))
        self.horizontalLayout.addWidget(self.tWavelengthnm)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.gridLayoutWidget)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_2.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.tWavelengthcm = QtGui.QLineEdit(self.groupBox_2)
        self.tWavelengthcm.setReadOnly(True)
        self.tWavelengthcm.setObjectName(_fromUtf8("tWavelengthcm"))
        self.horizontalLayout_2.addWidget(self.tWavelengthcm)
        self.gridLayout.addWidget(self.groupBox_2, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 1, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 0, 2, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.gbSaveName = QtGui.QGroupBox(self.gridLayoutWidget)
        self.gbSaveName.setFlat(True)
        self.gbSaveName.setObjectName(_fromUtf8("gbSaveName"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.gbSaveName)
        self.horizontalLayout_7.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.tSaveName = QtGui.QLineEdit(self.gbSaveName)
        self.tSaveName.setObjectName(_fromUtf8("tSaveName"))
        self.horizontalLayout_7.addWidget(self.tSaveName)
        self.bSave = QtGui.QPushButton(self.gbSaveName)
        self.bSave.setObjectName(_fromUtf8("bSave"))
        self.horizontalLayout_7.addWidget(self.bSave)
        self.horizontalLayout_6.addWidget(self.gbSaveName)
        self.gridLayout.addLayout(self.horizontalLayout_6, 2, 2, 1, 1)
        self.gbSpacing = QtGui.QGroupBox(self.gridLayoutWidget)
        self.gbSpacing.setFlat(True)
        self.gbSpacing.setObjectName(_fromUtf8("gbSpacing"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout(self.gbSpacing)
        self.horizontalLayout_8.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.tSpacing = QtGui.QLineEdit(self.gbSpacing)
        self.tSpacing.setEnabled(False)
        self.tSpacing.setObjectName(_fromUtf8("tSpacing"))
        self.horizontalLayout_8.addWidget(self.tSpacing)
        self.gridLayout.addWidget(self.gbSpacing, 2, 0, 1, 1)
        self.gbPhase = QtGui.QGroupBox(self.gridLayoutWidget)
        self.gbPhase.setFlat(True)
        self.gbPhase.setObjectName(_fromUtf8("gbPhase"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.gbPhase)
        self.horizontalLayout_9.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.tPhase = QtGui.QLineEdit(self.gbPhase)
        self.tPhase.setEnabled(False)
        self.tPhase.setObjectName(_fromUtf8("tPhase"))
        self.horizontalLayout_9.addWidget(self.tPhase)
        self.gridLayout.addWidget(self.gbPhase, 2, 1, 1, 1)
        self.horizontalLayout_5.addWidget(self.splitter_2)
        ArduinoWavemeter.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(ArduinoWavemeter)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1093, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuExtras = QtGui.QMenu(self.menubar)
        self.menuExtras.setObjectName(_fromUtf8("menuExtras"))
        ArduinoWavemeter.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(ArduinoWavemeter)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        ArduinoWavemeter.setStatusBar(self.statusbar)
        self.mExtrasDebugmode = QtGui.QAction(ArduinoWavemeter)
        self.mExtrasDebugmode.setCheckable(True)
        self.mExtrasDebugmode.setObjectName(_fromUtf8("mExtrasDebugmode"))
        self.menuExtras.addAction(self.mExtrasDebugmode)
        self.menubar.addAction(self.menuExtras.menuAction())

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

    def retranslateUi(self, ArduinoWavemeter):
        ArduinoWavemeter.setWindowTitle(_translate("ArduinoWavemeter", "Arduino Wavemeter", None))
        self.groupBox_4.setTitle(_translate("ArduinoWavemeter", "GPIB", None))
        self.groupBox_3.setTitle(_translate("ArduinoWavemeter", "Exposure (ms)", None))
        self.tExposure.setText(_translate("ArduinoWavemeter", "50", None))
        self.groupBox.setTitle(_translate("ArduinoWavemeter", "Wavelength (nm)", None))
        self.tWavelengthnm.setText(_translate("ArduinoWavemeter", "0", None))
        self.groupBox_2.setTitle(_translate("ArduinoWavemeter", "Wavelength (cm-1)", None))
        self.tWavelengthcm.setText(_translate("ArduinoWavemeter", "0", None))
        self.gbSaveName.setTitle(_translate("ArduinoWavemeter", "Save Name", None))
        self.bSave.setText(_translate("ArduinoWavemeter", "Save", None))
        self.gbSpacing.setTitle(_translate("ArduinoWavemeter", "Spacing", None))
        self.gbPhase.setTitle(_translate("ArduinoWavemeter", "Phase", None))
        self.menuExtras.setTitle(_translate("ArduinoWavemeter", "Extras", None))
        self.mExtrasDebugmode.setText(_translate("ArduinoWavemeter", "Debug Mode", None))
Exemple #5
0
class Ui_Abs(object):
    def setupUi(self, Abs):
        Abs.setObjectName("Abs")
        Abs.resize(783, 662)
        self.verticalLayout = QtWidgets.QVBoxLayout(Abs)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitterAll = QtWidgets.QSplitter(Abs)
        self.splitterAll.setOrientation(QtCore.Qt.Vertical)
        self.splitterAll.setObjectName("splitterAll")
        self.splitterTop = QtWidgets.QSplitter(self.splitterAll)
        self.splitterTop.setOrientation(QtCore.Qt.Horizontal)
        self.splitterTop.setObjectName("splitterTop")
        self.tabWidget_3 = QtWidgets.QTabWidget(self.splitterTop)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget_3.sizePolicy().hasHeightForWidth())
        self.tabWidget_3.setSizePolicy(sizePolicy)
        self.tabWidget_3.setObjectName("tabWidget_3")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.tCCDRefNum = QINumberEdit(self.groupBox)
        self.tCCDRefNum.setObjectName("tCCDRefNum")
        self.horizontalLayout.addWidget(self.tCCDRefNum)
        self.bProcessReferenceSequence = QtWidgets.QToolButton(self.groupBox)
        self.bProcessReferenceSequence.setText("")
        self.bProcessReferenceSequence.setArrowType(QtCore.Qt.RightArrow)
        self.bProcessReferenceSequence.setObjectName("bProcessReferenceSequence")
        self.horizontalLayout.addWidget(self.bProcessReferenceSequence)
        self.gridLayout.addWidget(self.groupBox, 1, 2, 1, 1)
        self.groupBox_37 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_37.setFlat(True)
        self.groupBox_37.setCheckable(False)
        self.groupBox_37.setObjectName("groupBox_37")
        self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_37)
        self.gridLayout_7.setSpacing(0)
        self.gridLayout_7.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.tCCDImageNum = QINumberEdit(self.groupBox_37)
        self.tCCDImageNum.setObjectName("tCCDImageNum")
        self.gridLayout_7.addWidget(self.tCCDImageNum, 0, 0, 1, 1)
        self.bProcessImageSequence = QtWidgets.QToolButton(self.groupBox_37)
        self.bProcessImageSequence.setText("")
        self.bProcessImageSequence.setArrowType(QtCore.Qt.RightArrow)
        self.bProcessImageSequence.setObjectName("bProcessImageSequence")
        self.gridLayout_7.addWidget(self.bProcessImageSequence, 0, 1, 1, 1)
        self.gridLayout.addWidget(self.groupBox_37, 0, 2, 1, 1)
        self.groupBox_34 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_34.setFlat(True)
        self.groupBox_34.setObjectName("groupBox_34")
        self.horizontalLayout_32 = QtWidgets.QHBoxLayout(self.groupBox_34)
        self.horizontalLayout_32.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_32.setObjectName("horizontalLayout_32")
        self.tEMCCDExp = QFNumberEdit(self.groupBox_34)
        self.tEMCCDExp.setObjectName("tEMCCDExp")
        self.horizontalLayout_32.addWidget(self.tEMCCDExp)
        self.gridLayout.addWidget(self.groupBox_34, 1, 1, 1, 1)
        self.bCCDReference = QtWidgets.QPushButton(self.tab_3)
        self.bCCDReference.setObjectName("bCCDReference")
        self.gridLayout.addWidget(self.bCCDReference, 1, 0, 1, 1)
        self.bCCDImage = QtWidgets.QPushButton(self.tab_3)
        self.bCCDImage.setObjectName("bCCDImage")
        self.gridLayout.addWidget(self.bCCDImage, 0, 0, 1, 1)
        self.bCCDBack = QtWidgets.QPushButton(self.tab_3)
        self.bCCDBack.setObjectName("bCCDBack")
        self.gridLayout.addWidget(self.bCCDBack, 2, 0, 1, 1)
        self.groupBox_35 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_35.setFlat(True)
        self.groupBox_35.setObjectName("groupBox_35")
        self.horizontalLayout_33 = QtWidgets.QHBoxLayout(self.groupBox_35)
        self.horizontalLayout_33.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_33.setObjectName("horizontalLayout_33")
        self.tEMCCDGain = QINumberEdit(self.groupBox_35)
        self.tEMCCDGain.setObjectName("tEMCCDGain")
        self.horizontalLayout_33.addWidget(self.tEMCCDGain)
        self.gridLayout.addWidget(self.groupBox_35, 2, 1, 1, 1)
        self.groupBox_38 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_38.setFlat(True)
        self.groupBox_38.setCheckable(False)
        self.groupBox_38.setObjectName("groupBox_38")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_38)
        self.gridLayout_8.setSpacing(0)
        self.gridLayout_8.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.tCCDBGNum = QINumberEdit(self.groupBox_38)
        self.tCCDBGNum.setObjectName("tCCDBGNum")
        self.gridLayout_8.addWidget(self.tCCDBGNum, 0, 0, 1, 1)
        self.bProcessBackgroundSequence = QtWidgets.QToolButton(self.groupBox_38)
        self.bProcessBackgroundSequence.setText("")
        self.bProcessBackgroundSequence.setArrowType(QtCore.Qt.RightArrow)
        self.bProcessBackgroundSequence.setObjectName("bProcessBackgroundSequence")
        self.gridLayout_8.addWidget(self.bProcessBackgroundSequence, 0, 1, 1, 1)
        self.gridLayout.addWidget(self.groupBox_38, 2, 2, 1, 1)
        self.groupBox_42 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_42.setFlat(True)
        self.groupBox_42.setCheckable(False)
        self.groupBox_42.setObjectName("groupBox_42")
        self.gridLayout_12 = QtWidgets.QGridLayout(self.groupBox_42)
        self.gridLayout_12.setSpacing(0)
        self.gridLayout_12.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.tSampleName = QtWidgets.QLineEdit(self.groupBox_42)
        self.tSampleName.setToolTip("")
        self.tSampleName.setStatusTip("")
        self.tSampleName.setWhatsThis("")
        self.tSampleName.setAccessibleName("")
        self.tSampleName.setAccessibleDescription("")
        self.tSampleName.setInputMethodHints(QtCore.Qt.ImhNone)
        self.tSampleName.setText("")
        self.tSampleName.setObjectName("tSampleName")
        self.gridLayout_12.addWidget(self.tSampleName, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_42, 0, 1, 1, 1)
        self.gridLayout.setColumnStretch(0, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.groupBox_Series = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_Series.setFlat(True)
        self.groupBox_Series.setObjectName("groupBox_Series")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_Series)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.tCCDSeries = QtWidgets.QLineEdit(self.groupBox_Series)
        self.tCCDSeries.setObjectName("tCCDSeries")
        self.horizontalLayout_2.addWidget(self.tCCDSeries)
        self.horizontalLayout_5.addWidget(self.groupBox_Series)
        self.groupBox_4 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName("groupBox_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.tSpectrumStep = QtWidgets.QLineEdit(self.groupBox_4)
        self.tSpectrumStep.setObjectName("tSpectrumStep")
        self.horizontalLayout_3.addWidget(self.tSpectrumStep)
        self.horizontalLayout_5.addWidget(self.groupBox_4)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.groupBox_46 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_46.setFlat(True)
        self.groupBox_46.setObjectName("groupBox_46")
        self.horizontalLayout_37 = QtWidgets.QHBoxLayout(self.groupBox_46)
        self.horizontalLayout_37.setObjectName("horizontalLayout_37")
        self.tCCDComments = QtWidgets.QTextEdit(self.groupBox_46)
        self.tCCDComments.setObjectName("tCCDComments")
        self.horizontalLayout_37.addWidget(self.tCCDComments)
        self.verticalLayout_2.addWidget(self.groupBox_46)
        self.tabWidget_3.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_52 = QtWidgets.QHBoxLayout(self.tab_4)
        self.horizontalLayout_52.setObjectName("horizontalLayout_52")
        self.gridLayout_17 = QtWidgets.QGridLayout()
        self.gridLayout_17.setObjectName("gridLayout_17")
        self.groupBox_45 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_45.setFlat(True)
        self.groupBox_45.setCheckable(False)
        self.groupBox_45.setObjectName("groupBox_45")
        self.gridLayout_15 = QtWidgets.QGridLayout(self.groupBox_45)
        self.gridLayout_15.setSpacing(0)
        self.gridLayout_15.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_15.setObjectName("gridLayout_15")
        self.tCCDSlits = QtWidgets.QLineEdit(self.groupBox_45)
        self.tCCDSlits.setObjectName("tCCDSlits")
        self.gridLayout_15.addWidget(self.tCCDSlits, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_45, 0, 2, 1, 1)
        self.groupBox_43 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_43.setFlat(True)
        self.groupBox_43.setCheckable(False)
        self.groupBox_43.setObjectName("groupBox_43")
        self.gridLayout_13 = QtWidgets.QGridLayout(self.groupBox_43)
        self.gridLayout_13.setSpacing(0)
        self.gridLayout_13.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.tCCDYMin = QtWidgets.QLineEdit(self.groupBox_43)
        self.tCCDYMin.setObjectName("tCCDYMin")
        self.gridLayout_13.addWidget(self.tCCDYMin, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_43, 1, 0, 1, 1)
        self.groupBox_44 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_44.setFlat(True)
        self.groupBox_44.setCheckable(False)
        self.groupBox_44.setObjectName("groupBox_44")
        self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_44)
        self.gridLayout_14.setSpacing(0)
        self.gridLayout_14.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.tCCDYMax = QtWidgets.QLineEdit(self.groupBox_44)
        self.tCCDYMax.setObjectName("tCCDYMax")
        self.gridLayout_14.addWidget(self.tCCDYMax, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_44, 1, 2, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_44 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_44.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_44.setObjectName("horizontalLayout_44")
        self.tCCDSampleTemp = QtWidgets.QLineEdit(self.groupBox_2)
        self.tCCDSampleTemp.setObjectName("tCCDSampleTemp")
        self.horizontalLayout_44.addWidget(self.tCCDSampleTemp)
        self.gridLayout_17.addWidget(self.groupBox_2, 0, 0, 1, 1)
        self.groupBox_5 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_5.setFlat(True)
        self.groupBox_5.setObjectName("groupBox_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_5)
        self.horizontalLayout_4.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.tCCDLEDCurrent = QtWidgets.QLineEdit(self.groupBox_5)
        self.tCCDLEDCurrent.setObjectName("tCCDLEDCurrent")
        self.horizontalLayout_4.addWidget(self.tCCDLEDCurrent)
        self.gridLayout_17.addWidget(self.groupBox_5, 2, 0, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_6.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.tCCDLEDTemp = QtWidgets.QLineEdit(self.groupBox_3)
        self.tCCDLEDTemp.setObjectName("tCCDLEDTemp")
        self.horizontalLayout_6.addWidget(self.tCCDLEDTemp)
        self.gridLayout_17.addWidget(self.groupBox_3, 2, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_17.addItem(spacerItem, 4, 0, 1, 1)
        self.groupBox_6 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_6.setFlat(True)
        self.groupBox_6.setObjectName("groupBox_6")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_6)
        self.horizontalLayout_7.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.tCCDLEDPower = QtWidgets.QLineEdit(self.groupBox_6)
        self.tCCDLEDPower.setObjectName("tCCDLEDPower")
        self.horizontalLayout_7.addWidget(self.tCCDLEDPower)
        self.gridLayout_17.addWidget(self.groupBox_6, 3, 0, 1, 1)
        self.horizontalLayout_52.addLayout(self.gridLayout_17)
        self.tabWidget_3.addTab(self.tab_4, "")
        self.splitterImages = QtWidgets.QSplitter(self.splitterTop)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitterImages.sizePolicy().hasHeightForWidth())
        self.splitterImages.setSizePolicy(sizePolicy)
        self.splitterImages.setOrientation(QtCore.Qt.Vertical)
        self.splitterImages.setObjectName("splitterImages")
        self.gCCDImage = ImageViewWithPlotItemContainer(self.splitterImages)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.gCCDImage.sizePolicy().hasHeightForWidth())
        self.gCCDImage.setSizePolicy(sizePolicy)
        self.gCCDImage.setObjectName("gCCDImage")
        self.gCCDBack = ImageViewWithPlotItemContainer(self.splitterImages)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.gCCDBack.sizePolicy().hasHeightForWidth())
        self.gCCDBack.setSizePolicy(sizePolicy)
        self.gCCDBack.setObjectName("gCCDBack")
        self.gCCDBin = PlotWidget(self.splitterAll)
        self.gCCDBin.setObjectName("gCCDBin")
        self.layoutWidget = QtWidgets.QWidget(self.splitterAll)
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout_34 = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_34.setContentsMargins(-1, -1, -1, 0)
        self.horizontalLayout_34.setObjectName("horizontalLayout_34")
        self.pCCD = QtWidgets.QProgressBar(self.layoutWidget)
        self.pCCD.setProperty("value", 0)
        self.pCCD.setObjectName("pCCD")
        self.horizontalLayout_34.addWidget(self.pCCD)
        self.lCCDProg = QtWidgets.QLabel(self.layoutWidget)
        self.lCCDProg.setObjectName("lCCDProg")
        self.horizontalLayout_34.addWidget(self.lCCDProg)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_34.addItem(spacerItem1)
        self.horizontalLayout_34.setStretch(0, 9)
        self.horizontalLayout_34.setStretch(1, 1)
        self.horizontalLayout_34.setStretch(2, 1)
        self.verticalLayout.addWidget(self.splitterAll)

        self.retranslateUi(Abs)
        self.tabWidget_3.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Abs)

    def retranslateUi(self, Abs):
        Abs.setWindowTitle(_translate("Abs", "Form", None))
        self.groupBox.setTitle(_translate("Abs", "Ref Number", None))
        self.tCCDRefNum.setText(_translate("Abs", "0", None))
        self.groupBox_37.setTitle(_translate("Abs", "Image Number", None))
        self.tCCDImageNum.setText(_translate("Abs", "0", None))
        self.groupBox_34.setTitle(_translate("Abs", "Exp (s)", None))
        self.tEMCCDExp.setText(_translate("Abs", "0.5", None))
        self.bCCDReference.setText(_translate("Abs", "Take Reference", None))
        self.bCCDImage.setText(_translate("Abs", "Take Image", None))
        self.bCCDBack.setText(_translate("Abs", "Take Background", None))
        self.groupBox_35.setTitle(_translate("Abs", "Gain", None))
        self.tEMCCDGain.setText(_translate("Abs", "1", None))
        self.groupBox_38.setTitle(_translate("Abs", "Bg Number", None))
        self.tCCDBGNum.setText(_translate("Abs", "0", None))
        self.groupBox_42.setTitle(_translate("Abs", "Sample", None))
        self.groupBox_Series.setTitle(_translate("Abs", "Series", None))
        self.tCCDSeries.setToolTip(_translate("Abs", "NIRP, NIRW, FELF, FELP, SLITS, SPECL", None))
        self.groupBox_4.setTitle(_translate("Abs", "Spectrum step", None))
        self.groupBox_46.setTitle(_translate("Abs", "Comments", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_3), _translate("Abs", "Main Settings", None))
        self.groupBox_45.setTitle(_translate("Abs", "Slits", None))
        self.tCCDSlits.setText(_translate("Abs", "0", None))
        self.groupBox_43.setTitle(_translate("Abs", "Ymin", None))
        self.tCCDYMin.setText(_translate("Abs", "0", None))
        self.groupBox_44.setTitle(_translate("Abs", "Ymax", None))
        self.tCCDYMax.setText(_translate("Abs", "400", None))
        self.groupBox_2.setTitle(_translate("Abs", "Sample Temp", None))
        self.groupBox_5.setTitle(_translate("Abs", "LED Current (mA)", None))
        self.tCCDLEDCurrent.setText(_translate("Abs", "0", None))
        self.groupBox_3.setTitle(_translate("Abs", "LED Temp", None))
        self.tCCDLEDTemp.setText(_translate("Abs", "0", None))
        self.groupBox_6.setTitle(_translate("Abs", "LED Power (mW)", None))
        self.tCCDLEDPower.setText(_translate("Abs", "0", None))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_4), _translate("Abs", "Other Settings", None))
        self.lCCDProg.setText(_translate("Abs", "Done.", None))
Exemple #6
0
class Ui_HSG(object):
    def setupUi(self, HSG):
        HSG.setObjectName("HSG")
        HSG.resize(656, 636)
        self.horizontalLayout = QtWidgets.QHBoxLayout(HSG)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.splitterAll = QtWidgets.QSplitter(HSG)
        self.splitterAll.setOrientation(QtCore.Qt.Vertical)
        self.splitterAll.setObjectName("splitterAll")
        self.splitterTop = QtWidgets.QSplitter(self.splitterAll)
        self.splitterTop.setOrientation(QtCore.Qt.Horizontal)
        self.splitterTop.setObjectName("splitterTop")
        self.tabWidget_3 = QtWidgets.QTabWidget(self.splitterTop)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget_3.sizePolicy().hasHeightForWidth())
        self.tabWidget_3.setSizePolicy(sizePolicy)
        self.tabWidget_3.setObjectName("tabWidget_3")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout()
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox_42 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_42.setFlat(True)
        self.groupBox_42.setCheckable(False)
        self.groupBox_42.setObjectName("groupBox_42")
        self.gridLayout_12 = QtWidgets.QGridLayout(self.groupBox_42)
        self.gridLayout_12.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_12.setSpacing(0)
        self.gridLayout_12.setObjectName("gridLayout_12")
        self.tSampleName = QtWidgets.QLineEdit(self.groupBox_42)
        self.tSampleName.setToolTip("")
        self.tSampleName.setStatusTip("")
        self.tSampleName.setWhatsThis("")
        self.tSampleName.setAccessibleName("")
        self.tSampleName.setAccessibleDescription("")
        self.tSampleName.setInputMethodHints(QtCore.Qt.ImhNone)
        self.tSampleName.setText("")
        self.tSampleName.setObjectName("tSampleName")
        self.gridLayout_12.addWidget(self.tSampleName, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_42, 0, 2, 1, 1)
        self.groupBox_4 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setCheckable(False)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_3.setSpacing(0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.tCCDNIRP = QFNumberEdit(self.groupBox_4)
        self.tCCDNIRP.setObjectName("tCCDNIRP")
        self.gridLayout_3.addWidget(self.tCCDNIRP, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.bCCDBack = QtWidgets.QPushButton(self.tab_3)
        self.bCCDBack.setObjectName("bCCDBack")
        self.gridLayout.addWidget(self.bCCDBack, 4, 0, 1, 1)
        self.groupBox_35 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_35.setFlat(True)
        self.groupBox_35.setObjectName("groupBox_35")
        self.horizontalLayout_33 = QtWidgets.QHBoxLayout(self.groupBox_35)
        self.horizontalLayout_33.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_33.setObjectName("horizontalLayout_33")
        self.tEMCCDGain = QINumberEdit(self.groupBox_35)
        self.tEMCCDGain.setObjectName("tEMCCDGain")
        self.horizontalLayout_33.addWidget(self.tEMCCDGain)
        self.gridLayout.addWidget(self.groupBox_35, 4, 1, 1, 1)
        self.groupBox_38 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_38.setFlat(True)
        self.groupBox_38.setCheckable(False)
        self.groupBox_38.setObjectName("groupBox_38")
        self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_38)
        self.gridLayout_8.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_8.setSpacing(0)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.tCCDBGNum = QINumberEdit(self.groupBox_38)
        self.tCCDBGNum.setObjectName("tCCDBGNum")
        self.gridLayout_8.addWidget(self.tCCDBGNum, 0, 0, 1, 1)
        self.bProcessBackgroundSequence = QtWidgets.QToolButton(
            self.groupBox_38)
        self.bProcessBackgroundSequence.setArrowType(QtCore.Qt.RightArrow)
        self.bProcessBackgroundSequence.setObjectName(
            "bProcessBackgroundSequence")
        self.gridLayout_8.addWidget(self.bProcessBackgroundSequence, 0, 1, 1,
                                    1)
        self.gridLayout.addWidget(self.groupBox_38, 4, 2, 1, 1)
        self.bCCDImage = QtWidgets.QPushButton(self.tab_3)
        self.bCCDImage.setObjectName("bCCDImage")
        self.gridLayout.addWidget(self.bCCDImage, 3, 0, 1, 1)
        self.groupBox_34 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_34.setFlat(True)
        self.groupBox_34.setObjectName("groupBox_34")
        self.horizontalLayout_32 = QtWidgets.QHBoxLayout(self.groupBox_34)
        self.horizontalLayout_32.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_32.setObjectName("horizontalLayout_32")
        self.tEMCCDExp = QFNumberEdit(self.groupBox_34)
        self.tEMCCDExp.setObjectName("tEMCCDExp")
        self.horizontalLayout_32.addWidget(self.tEMCCDExp)
        self.gridLayout.addWidget(self.groupBox_34, 3, 1, 1, 1)
        self.groupBox_36 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_36.setFlat(True)
        self.groupBox_36.setCheckable(False)
        self.groupBox_36.setObjectName("groupBox_36")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_36)
        self.gridLayout_6.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_6.setSpacing(0)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.tCCDNIRwavelength = QFNumberEdit(self.groupBox_36)
        self.tCCDNIRwavelength.setObjectName("tCCDNIRwavelength")
        self.gridLayout_6.addWidget(self.tCCDNIRwavelength, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_36, 0, 1, 1, 1)
        self.groupBox_37 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_37.setFlat(True)
        self.groupBox_37.setCheckable(False)
        self.groupBox_37.setObjectName("groupBox_37")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_37)
        self.horizontalLayout_7.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.tCCDImageNum = QINumberEdit(self.groupBox_37)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tCCDImageNum.sizePolicy().hasHeightForWidth())
        self.tCCDImageNum.setSizePolicy(sizePolicy)
        self.tCCDImageNum.setObjectName("tCCDImageNum")
        self.horizontalLayout_7.addWidget(self.tCCDImageNum)
        self.bProcessImageSequence = QtWidgets.QToolButton(self.groupBox_37)
        self.bProcessImageSequence.setArrowType(QtCore.Qt.RightArrow)
        self.bProcessImageSequence.setObjectName("bProcessImageSequence")
        self.horizontalLayout_7.addWidget(self.bProcessImageSequence)
        self.gridLayout.addWidget(self.groupBox_37, 3, 2, 1, 1)
        self.gridLayout.setColumnStretch(0, 1)
        self.verticalLayout_9.addLayout(self.gridLayout)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox_Series = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_Series.setFlat(True)
        self.groupBox_Series.setObjectName("groupBox_Series")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_Series)
        self.horizontalLayout_5.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_5.setSpacing(0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.tCCDSeries = QtWidgets.QLineEdit(self.groupBox_Series)
        self.tCCDSeries.setObjectName("tCCDSeries")
        self.horizontalLayout_5.addWidget(self.tCCDSeries)
        self.horizontalLayout_3.addWidget(self.groupBox_Series)
        self.groupBox = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_6.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.tSpectrumStep = QtWidgets.QLineEdit(self.groupBox)
        self.tSpectrumStep.setObjectName("tSpectrumStep")
        self.horizontalLayout_6.addWidget(self.tSpectrumStep)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.verticalLayout_9.addLayout(self.horizontalLayout_3)
        self.groupBox_46 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_46.setFlat(True)
        self.groupBox_46.setObjectName("groupBox_46")
        self.horizontalLayout_37 = QtWidgets.QHBoxLayout(self.groupBox_46)
        self.horizontalLayout_37.setObjectName("horizontalLayout_37")
        self.tCCDComments = QtWidgets.QTextEdit(self.groupBox_46)
        self.tCCDComments.setObjectName("tCCDComments")
        self.horizontalLayout_37.addWidget(self.tCCDComments)
        self.verticalLayout_9.addWidget(self.groupBox_46)
        self.verticalLayout_9.setStretch(2, 1)
        self.verticalLayout.addLayout(self.verticalLayout_9)
        self.tabWidget_3.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_52 = QtWidgets.QHBoxLayout(self.tab_4)
        self.horizontalLayout_52.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_52.setObjectName("horizontalLayout_52")
        self.gridLayout_17 = QtWidgets.QGridLayout()
        self.gridLayout_17.setObjectName("gridLayout_17")
        self.groupBox_5 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_5.setFlat(True)
        self.groupBox_5.setObjectName("groupBox_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_5)
        self.horizontalLayout_4.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.tCCDNIRAlpha = QtWidgets.QLineEdit(self.groupBox_5)
        self.tCCDNIRAlpha.setObjectName("tCCDNIRAlpha")
        self.horizontalLayout_4.addWidget(self.tCCDNIRAlpha)
        self.gridLayout_17.addWidget(self.groupBox_5, 0, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_44 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_44.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_44.setObjectName("horizontalLayout_44")
        self.tCCDSampleTemp = QtWidgets.QLineEdit(self.groupBox_2)
        self.tCCDSampleTemp.setObjectName("tCCDSampleTemp")
        self.horizontalLayout_44.addWidget(self.tCCDSampleTemp)
        self.gridLayout_17.addWidget(self.groupBox_2, 1, 0, 1, 1)
        self.groupBox_44 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_44.setFlat(True)
        self.groupBox_44.setCheckable(False)
        self.groupBox_44.setObjectName("groupBox_44")
        self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_44)
        self.gridLayout_14.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_14.setSpacing(0)
        self.gridLayout_14.setObjectName("gridLayout_14")
        self.tCCDYMax = QtWidgets.QLineEdit(self.groupBox_44)
        self.tCCDYMax.setObjectName("tCCDYMax")
        self.gridLayout_14.addWidget(self.tCCDYMax, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_44, 1, 3, 1, 1)
        self.groupBox_43 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_43.setFlat(True)
        self.groupBox_43.setCheckable(False)
        self.groupBox_43.setObjectName("groupBox_43")
        self.gridLayout_13 = QtWidgets.QGridLayout(self.groupBox_43)
        self.gridLayout_13.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_13.setSpacing(0)
        self.gridLayout_13.setObjectName("gridLayout_13")
        self.tCCDYMin = QtWidgets.QLineEdit(self.groupBox_43)
        self.tCCDYMin.setObjectName("tCCDYMin")
        self.gridLayout_13.addWidget(self.tCCDYMin, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_43, 1, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_17.addItem(spacerItem, 3, 3, 1, 1)
        self.groupBox_45 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_45.setFlat(True)
        self.groupBox_45.setCheckable(False)
        self.groupBox_45.setObjectName("groupBox_45")
        self.gridLayout_15 = QtWidgets.QGridLayout(self.groupBox_45)
        self.gridLayout_15.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_15.setSpacing(0)
        self.gridLayout_15.setObjectName("gridLayout_15")
        self.tCCDSlits = QtWidgets.QLineEdit(self.groupBox_45)
        self.tCCDSlits.setObjectName("tCCDSlits")
        self.gridLayout_15.addWidget(self.tCCDSlits, 0, 0, 1, 1)
        self.gridLayout_17.addWidget(self.groupBox_45, 0, 3, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_2.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.tCCDNIRGamma = QtWidgets.QLineEdit(self.groupBox_3)
        self.tCCDNIRGamma.setObjectName("tCCDNIRGamma")
        self.horizontalLayout_2.addWidget(self.tCCDNIRGamma)
        self.gridLayout_17.addWidget(self.groupBox_3, 0, 2, 1, 1)
        self.horizontalLayout_52.addLayout(self.gridLayout_17)
        self.tabWidget_3.addTab(self.tab_4, "")
        self.splitterImages = QtWidgets.QSplitter(self.splitterTop)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(10)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.splitterImages.sizePolicy().hasHeightForWidth())
        self.splitterImages.setSizePolicy(sizePolicy)
        self.splitterImages.setOrientation(QtCore.Qt.Vertical)
        self.splitterImages.setObjectName("splitterImages")
        self.gCCDImage = ImageViewWithPlotItemContainer(self.splitterImages)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.gCCDImage.sizePolicy().hasHeightForWidth())
        self.gCCDImage.setSizePolicy(sizePolicy)
        self.gCCDImage.setObjectName("gCCDImage")
        self.gCCDBack = ImageViewWithPlotItemContainer(self.splitterImages)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.gCCDBack.sizePolicy().hasHeightForWidth())
        self.gCCDBack.setSizePolicy(sizePolicy)
        self.gCCDBack.setObjectName("gCCDBack")
        self.gCCDBin = PlotWidget(self.splitterAll)
        self.gCCDBin.setObjectName("gCCDBin")
        self.layoutWidget = QtWidgets.QWidget(self.splitterAll)
        self.layoutWidget.setObjectName("layoutWidget")
        self.horizontalLayout_34 = QtWidgets.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_34.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_34.setObjectName("horizontalLayout_34")
        self.pCCD = QtWidgets.QProgressBar(self.layoutWidget)
        self.pCCD.setProperty("value", 0)
        self.pCCD.setObjectName("pCCD")
        self.horizontalLayout_34.addWidget(self.pCCD)
        self.lCCDProg = QtWidgets.QLabel(self.layoutWidget)
        self.lCCDProg.setObjectName("lCCDProg")
        self.horizontalLayout_34.addWidget(self.lCCDProg)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_34.addItem(spacerItem1)
        self.groupBox_56 = QtWidgets.QGroupBox(self.layoutWidget)
        self.groupBox_56.setFlat(True)
        self.groupBox_56.setObjectName("groupBox_56")
        self.horizontalLayout_54 = QtWidgets.QHBoxLayout(self.groupBox_56)
        self.horizontalLayout_54.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_54.setObjectName("horizontalLayout_54")
        self.tCCDSidebandNumber = QFNumberEdit(self.groupBox_56)
        self.tCCDSidebandNumber.setObjectName("tCCDSidebandNumber")
        self.horizontalLayout_54.addWidget(self.tCCDSidebandNumber)
        self.horizontalLayout_34.addWidget(self.groupBox_56)
        self.groupBox_54 = QtWidgets.QGroupBox(self.layoutWidget)
        self.groupBox_54.setFlat(True)
        self.groupBox_54.setObjectName("groupBox_54")
        self.horizontalLayout_50 = QtWidgets.QHBoxLayout(self.groupBox_54)
        self.horizontalLayout_50.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_50.setObjectName("horizontalLayout_50")
        self.tCCDFELPulses = QtWidgets.QLineEdit(self.groupBox_54)
        self.tCCDFELPulses.setReadOnly(True)
        self.tCCDFELPulses.setObjectName("tCCDFELPulses")
        self.horizontalLayout_50.addWidget(self.tCCDFELPulses)
        self.horizontalLayout_34.addWidget(self.groupBox_54)
        self.horizontalLayout_34.setStretch(0, 9)
        self.horizontalLayout_34.setStretch(1, 1)
        self.horizontalLayout_34.setStretch(2, 1)
        self.horizontalLayout_34.setStretch(4, 1)
        self.horizontalLayout.addWidget(self.splitterAll)

        self.retranslateUi(HSG)
        self.tabWidget_3.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(HSG)
        HSG.setTabOrder(self.tCCDNIRP, self.tCCDNIRwavelength)
        HSG.setTabOrder(self.tCCDNIRwavelength, self.tSampleName)
        HSG.setTabOrder(self.tSampleName, self.bCCDImage)
        HSG.setTabOrder(self.bCCDImage, self.tEMCCDExp)
        HSG.setTabOrder(self.tEMCCDExp, self.tCCDImageNum)
        HSG.setTabOrder(self.tCCDImageNum, self.bCCDBack)
        HSG.setTabOrder(self.bCCDBack, self.tEMCCDGain)
        HSG.setTabOrder(self.tEMCCDGain, self.tCCDBGNum)
        HSG.setTabOrder(self.tCCDBGNum, self.tCCDSeries)
        HSG.setTabOrder(self.tCCDSeries, self.tSpectrumStep)
        HSG.setTabOrder(self.tSpectrumStep, self.tCCDComments)
        HSG.setTabOrder(self.tCCDComments, self.tCCDNIRAlpha)
        HSG.setTabOrder(self.tCCDNIRAlpha, self.tCCDNIRGamma)
        HSG.setTabOrder(self.tCCDNIRGamma, self.tCCDSlits)
        HSG.setTabOrder(self.tCCDSlits, self.tCCDSampleTemp)
        HSG.setTabOrder(self.tCCDSampleTemp, self.tCCDYMin)
        HSG.setTabOrder(self.tCCDYMin, self.tCCDYMax)
        HSG.setTabOrder(self.tCCDYMax, self.gCCDImage)
        HSG.setTabOrder(self.gCCDImage, self.tCCDFELPulses)
        HSG.setTabOrder(self.tCCDFELPulses, self.gCCDBin)
        HSG.setTabOrder(self.gCCDBin, self.bProcessBackgroundSequence)
        HSG.setTabOrder(self.bProcessBackgroundSequence,
                        self.bProcessImageSequence)
        HSG.setTabOrder(self.bProcessImageSequence, self.tCCDSidebandNumber)
        HSG.setTabOrder(self.tCCDSidebandNumber, self.gCCDBack)
        HSG.setTabOrder(self.gCCDBack, self.tabWidget_3)

    def retranslateUi(self, HSG):
        _translate = QtCore.QCoreApplication.translate
        HSG.setWindowTitle(_translate("HSG", "Form"))
        self.groupBox_42.setTitle(_translate("HSG", "Sample"))
        self.groupBox_4.setTitle(_translate("HSG", "NIR Power (mW)"))
        self.tCCDNIRP.setText(_translate("HSG", "0"))
        self.bCCDBack.setText(_translate("HSG", "Take Background"))
        self.groupBox_35.setTitle(_translate("HSG", "Gain"))
        self.tEMCCDGain.setText(_translate("HSG", "1"))
        self.groupBox_38.setTitle(_translate("HSG", "Bg Number"))
        self.tCCDBGNum.setText(_translate("HSG", "0"))
        self.bProcessBackgroundSequence.setText(_translate("HSG", "..."))
        self.bCCDImage.setText(_translate("HSG", "Take Image"))
        self.groupBox_34.setTitle(_translate("HSG", "Exp (s)"))
        self.tEMCCDExp.setText(_translate("HSG", "0.5"))
        self.groupBox_36.setTitle(_translate("HSG", "NIR Wl (nm)"))
        self.tCCDNIRwavelength.setText(_translate("HSG", "0"))
        self.groupBox_37.setTitle(_translate("HSG", "Image Number"))
        self.tCCDImageNum.setText(_translate("HSG", "0"))
        self.bProcessImageSequence.setText(_translate("HSG", "p"))
        self.groupBox_Series.setTitle(_translate("HSG", "Series"))
        self.tCCDSeries.setToolTip(
            _translate("HSG", "NIRP, NIRW, FELF, FELP, SLITS, SPECL"))
        self.groupBox.setTitle(_translate("HSG", "Spectrum step"))
        self.groupBox_46.setTitle(_translate("HSG", "Comments"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_3),
                                    _translate("HSG", "Main Settings"))
        self.groupBox_5.setTitle(_translate("HSG", "NIR α"))
        self.groupBox_2.setTitle(_translate("HSG", "Sample Temp"))
        self.groupBox_44.setTitle(_translate("HSG", "Ymax"))
        self.tCCDYMax.setText(_translate("HSG", "400"))
        self.groupBox_43.setTitle(_translate("HSG", "Ymin"))
        self.tCCDYMin.setText(_translate("HSG", "0"))
        self.groupBox_45.setTitle(_translate("HSG", "Slits"))
        self.tCCDSlits.setText(_translate("HSG", "0"))
        self.groupBox_3.setTitle(_translate("HSG", "NIR γ"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_4),
                                    _translate("HSG", "Other Settings"))
        self.lCCDProg.setText(_translate("HSG", "Done."))
        self.groupBox_56.setTitle(_translate("HSG", "SB #"))
        self.tCCDSidebandNumber.setText(_translate("HSG", "1"))
        self.groupBox_54.setTitle(_translate("HSG", "FEL Pulses"))
Exemple #7
0
class Ui_QuickSettings(object):
    def setupUi(self, QuickSettings):
        QuickSettings.setObjectName("QuickSettings")
        QuickSettings.resize(451, 125)
        self.verticalLayout = QtWidgets.QVBoxLayout(QuickSettings)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.lStartWN = QtWidgets.QLabel(QuickSettings)
        self.lStartWN.setObjectName("lStartWN")
        self.horizontalLayout_3.addWidget(self.lStartWN)
        self.tStartWN = QFNumberEdit(QuickSettings)
        self.tStartWN.setObjectName("tStartWN")
        self.horizontalLayout_3.addWidget(self.tStartWN)
        self.lStepWN = QtWidgets.QLabel(QuickSettings)
        self.lStepWN.setObjectName("lStepWN")
        self.horizontalLayout_3.addWidget(self.lStepWN)
        self.tStepWN = QFNumberEdit(QuickSettings)
        self.tStepWN.setObjectName("tStepWN")
        self.horizontalLayout_3.addWidget(self.tStepWN)
        self.lEndWN = QtWidgets.QLabel(QuickSettings)
        self.lEndWN.setObjectName("lEndWN")
        self.horizontalLayout_3.addWidget(self.lEndWN)
        self.tEndWN = QFNumberEdit(QuickSettings)
        self.tEndWN.setObjectName("tEndWN")
        self.horizontalLayout_3.addWidget(self.tEndWN)
        self.label_10 = QtWidgets.QLabel(QuickSettings)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_3.addWidget(self.label_10)
        self.tAverages = QINumberEdit(QuickSettings)
        self.tAverages.setObjectName("tAverages")
        self.horizontalLayout_3.addWidget(self.tAverages)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.label_18 = QtWidgets.QLabel(QuickSettings)
        self.label_18.setObjectName("label_18")
        self.horizontalLayout_11.addWidget(self.label_18)
        self.tGotoSB = QFNumberEdit(QuickSettings)
        self.tGotoSB.setObjectName("tGotoSB")
        self.horizontalLayout_11.addWidget(self.tGotoSB)
        self.label_19 = QtWidgets.QLabel(QuickSettings)
        self.label_19.setObjectName("label_19")
        self.horizontalLayout_11.addWidget(self.label_19)
        self.tGotoBound = QFNumberEdit(QuickSettings)
        self.tGotoBound.setObjectName("tGotoBound")
        self.horizontalLayout_11.addWidget(self.tGotoBound)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_13 = QtWidgets.QLabel(QuickSettings)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_7.addWidget(self.label_13)
        self.cbPMHV = QtWidgets.QComboBox(QuickSettings)
        self.cbPMHV.setObjectName("cbPMHV")
        self.cbPMHV.addItem("")
        self.cbPMHV.addItem("")
        self.horizontalLayout_7.addWidget(self.cbPMHV)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.cbFilterWhite = QtWidgets.QCheckBox(QuickSettings)
        self.cbFilterWhite.setObjectName("cbFilterWhite")
        self.horizontalLayout_7.addWidget(self.cbFilterWhite)
        self.cbFilterBlue = QtWidgets.QCheckBox(QuickSettings)
        self.cbFilterBlue.setObjectName("cbFilterBlue")
        self.horizontalLayout_7.addWidget(self.cbFilterBlue)
        self.cbFilterTriplet = QtWidgets.QCheckBox(QuickSettings)
        self.cbFilterTriplet.setObjectName("cbFilterTriplet")
        self.horizontalLayout_7.addWidget(self.cbFilterTriplet)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.buttonBox = QtWidgets.QDialogButtonBox(QuickSettings)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(QuickSettings)
        self.buttonBox.accepted.connect(QuickSettings.accept)
        self.buttonBox.rejected.connect(QuickSettings.reject)
        QtCore.QMetaObject.connectSlotsByName(QuickSettings)
        QuickSettings.setTabOrder(self.tStartWN, self.tStepWN)
        QuickSettings.setTabOrder(self.tStepWN, self.tEndWN)
        QuickSettings.setTabOrder(self.tEndWN, self.tAverages)
        QuickSettings.setTabOrder(self.tAverages, self.tGotoSB)
        QuickSettings.setTabOrder(self.tGotoSB, self.tGotoBound)
        QuickSettings.setTabOrder(self.tGotoBound, self.cbPMHV)
        QuickSettings.setTabOrder(self.cbPMHV, self.buttonBox)

    def retranslateUi(self, QuickSettings):
        QuickSettings.setWindowTitle(
            _translate("QuickSettings", "Scan Settings", None))
        self.lStartWN.setText(_translate("QuickSettings", "Starting WN", None))
        self.lStepWN.setText(_translate("QuickSettings", "Step", None))
        self.lEndWN.setText(_translate("QuickSettings", "Ending WN", None))
        self.label_10.setText(_translate("QuickSettings", "Average", None))
        self.label_18.setText(_translate("QuickSettings", "Go to SB #:", None))
        self.label_19.setText(_translate("QuickSettings", "+/-", None))
        self.label_13.setText(_translate("QuickSettings", "PM HV", None))
        self.cbPMHV.setItemText(0, _translate("QuickSettings", "700", None))
        self.cbPMHV.setItemText(1, _translate("QuickSettings", "1000", None))
        self.cbFilterWhite.setText(_translate("QuickSettings", "White", None))
        self.cbFilterBlue.setText(_translate("QuickSettings", "Blue", None))
        self.cbFilterTriplet.setText(
            _translate("QuickSettings", "Triplet", None))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(747, 683)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/test/SPEXIcon.jpg"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.splitter = QtWidgets.QSplitter(self.tab)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.layoutWidget = QtWidgets.QWidget(self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gSignal = PlotWidget(self.layoutWidget)
        self.gSignal.setObjectName("gSignal")
        self.verticalLayout_2.addWidget(self.gSignal)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tPmBgEn = QFNumberEdit(self.layoutWidget)
        self.tPmBgEn.setObjectName("tPmBgEn")
        self.gridLayout_2.addWidget(self.tPmBgEn, 1, 3, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.layoutWidget)
        self.label_11.setObjectName("label_11")
        self.gridLayout_2.addWidget(self.label_11, 1, 4, 1, 1)
        self.tPmBgSt = QFNumberEdit(self.layoutWidget)
        self.tPmBgSt.setObjectName("tPmBgSt")
        self.gridLayout_2.addWidget(self.tPmBgSt, 0, 3, 1, 1)
        self.tPmSgEn = QFNumberEdit(self.layoutWidget)
        self.tPmSgEn.setObjectName("tPmSgEn")
        self.gridLayout_2.addWidget(self.tPmSgEn, 1, 5, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.layoutWidget)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 1, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.layoutWidget)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 0, 4, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.layoutWidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 0, 2, 1, 1)
        self.bInitPMT = QtWidgets.QPushButton(self.layoutWidget)
        self.bInitPMT.setObjectName("bInitPMT")
        self.gridLayout_2.addWidget(self.bInitPMT, 1, 1, 1, 1)
        self.tPmSgSt = QFNumberEdit(self.layoutWidget)
        self.tPmSgSt.setObjectName("tPmSgSt")
        self.gridLayout_2.addWidget(self.tPmSgSt, 0, 5, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout_2)
        self.verticalLayout_5.addWidget(self.splitter)
        self.verticalLayout_5.setStretch(0, 100)
        self.horizontalLayout_2.addLayout(self.verticalLayout_5)
        self.tabWidget.addTab(self.tab, "")
        self.tabPC = QtWidgets.QWidget()
        self.tabPC.setObjectName("tabPC")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tabPC)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gPC = DoubleYPlot(self.tabPC)
        self.gPC.setObjectName("gPC")
        self.verticalLayout_4.addWidget(self.gPC)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.groupBox_4 = QtWidgets.QGroupBox(self.tabPC)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName("groupBox_4")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_8.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.tPCThreshold = QFNumberEdit(self.groupBox_4)
        self.tPCThreshold.setObjectName("tPCThreshold")
        self.horizontalLayout_8.addWidget(self.tPCThreshold)
        self.gridLayout_3.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout_3)
        self.tabWidget.addTab(self.tabPC, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gScan = ClickablePlotWidget(self.tab_2)
        self.gScan.setObjectName("gScan")
        self.verticalLayout_3.addWidget(self.gScan)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.bClearScan = QtWidgets.QPushButton(self.tab_2)
        self.bClearScan.setObjectName("bClearScan")
        self.horizontalLayout_4.addWidget(self.bClearScan)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.tabWidget.addTab(self.tab_2, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_7.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.tSeries = QtWidgets.QLineEdit(self.groupBox_3)
        self.tSeries.setPlaceholderText("")
        self.tSeries.setObjectName("tSeries")
        self.horizontalLayout_7.addWidget(self.tSeries)
        self.horizontalLayout.addWidget(self.groupBox_3)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_6.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.tSaveName = QtWidgets.QLineEdit(self.groupBox_2)
        self.tSaveName.setObjectName("tSaveName")
        self.horizontalLayout_6.addWidget(self.tSaveName)
        self.horizontalLayout.addWidget(self.groupBox_2)
        self.bChooseDirectory = QtWidgets.QPushButton(self.centralwidget)
        self.bChooseDirectory.setObjectName("bChooseDirectory")
        self.horizontalLayout.addWidget(self.bChooseDirectory)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_5.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.tSidebandNumber = QtWidgets.QLineEdit(self.groupBox)
        self.tSidebandNumber.setObjectName("tSidebandNumber")
        self.horizontalLayout_5.addWidget(self.tSidebandNumber)
        self.horizontalLayout.addWidget(self.groupBox)
        self.horizontalLayout_3.addLayout(self.horizontalLayout)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.bAbort = QtWidgets.QPushButton(self.centralwidget)
        self.bAbort.setObjectName("bAbort")
        self.gridLayout.addWidget(self.bAbort, 1, 2, 1, 1)
        self.bQuickStart = QtWidgets.QPushButton(self.centralwidget)
        self.bQuickStart.setObjectName("bQuickStart")
        self.gridLayout.addWidget(self.bQuickStart, 0, 2, 1, 1)
        self.bSaveWaveforms = QtWidgets.QPushButton(self.centralwidget)
        self.bSaveWaveforms.setObjectName("bSaveWaveforms")
        self.gridLayout.addWidget(self.bSaveWaveforms, 1, 0, 1, 1)
        self.bPause = QtWidgets.QPushButton(self.centralwidget)
        self.bPause.setCheckable(True)
        self.bPause.setObjectName("bPause")
        self.gridLayout.addWidget(self.bPause, 0, 0, 1, 1)
        self.bStart = QtWidgets.QPushButton(self.centralwidget)
        self.bStart.setObjectName("bStart")
        self.gridLayout.addWidget(self.bStart, 0, 1, 1, 1)
        self.horizontalLayout_3.addLayout(self.gridLayout)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 747, 21))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuSPEX = QtWidgets.QMenu(self.menubar)
        self.menuSPEX.setObjectName("menuSPEX")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.mFileSettings = QtWidgets.QAction(MainWindow)
        self.mFileSettings.setObjectName("mFileSettings")
        self.mFileExit = QtWidgets.QAction(MainWindow)
        self.mFileExit.setObjectName("mFileExit")
        self.actionInitialize = QtWidgets.QAction(MainWindow)
        self.actionInitialize.setObjectName("actionInitialize")
        self.actionGoto_Wavenumber = QtWidgets.QAction(MainWindow)
        self.actionGoto_Wavenumber.setObjectName("actionGoto_Wavenumber")
        self.mSpexOpen = QtWidgets.QAction(MainWindow)
        self.mSpexOpen.setObjectName("mSpexOpen")
        self.menuFile.addAction(self.mFileSettings)
        self.menuFile.addAction(self.mFileExit)
        self.menuSPEX.addAction(self.mSpexOpen)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSPEX.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.tPmBgSt, self.tPmBgEn)
        MainWindow.setTabOrder(self.tPmBgEn, self.tPmSgSt)
        MainWindow.setTabOrder(self.tPmSgSt, self.tPmSgEn)
        MainWindow.setTabOrder(self.tPmSgEn, self.bChooseDirectory)
        MainWindow.setTabOrder(self.bChooseDirectory, self.bPause)
        MainWindow.setTabOrder(self.bPause, self.bQuickStart)
        MainWindow.setTabOrder(self.bQuickStart, self.bSaveWaveforms)
        MainWindow.setTabOrder(self.bSaveWaveforms, self.bAbort)
        MainWindow.setTabOrder(self.bAbort, self.gSignal)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Sideband Measurements", None))
        self.tPmBgEn.setText(_translate("MainWindow", "0", None))
        self.label_11.setText(_translate("MainWindow", "PMT Sig En", None))
        self.tPmBgSt.setText(_translate("MainWindow", "0", None))
        self.tPmSgEn.setText(_translate("MainWindow", "0", None))
        self.label_10.setText(_translate("MainWindow", "PMT BG End", None))
        self.label_6.setText(_translate("MainWindow", "PMT Sig Start", None))
        self.label_5.setText(_translate("MainWindow", "PMT BG Start", None))
        self.bInitPMT.setText(_translate("MainWindow", "Init PMT", None))
        self.tPmSgSt.setText(_translate("MainWindow", "0", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            _translate("MainWindow", "Experimental Settings", None))
        self.groupBox_4.setTitle(_translate("MainWindow", "PC Threshold",
                                            None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tabPC),
            _translate("MainWindow", "Photon Counting", None))
        self.bClearScan.setText(_translate("MainWindow", "Clear", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("MainWindow", "Scan", None))
        self.groupBox_3.setTitle(_translate("MainWindow", "Series", None))
        self.tSeries.setToolTip(
            _translate("MainWindow", "{NIRP, NIRL, FELP, FELL, TEMP, PMHV}",
                       None))
        self.groupBox_2.setTitle(_translate("MainWindow", "Save Name", None))
        self.bChooseDirectory.setText(
            _translate("MainWindow", "Choose Directory", None))
        self.groupBox.setTitle(
            _translate("MainWindow", "Sideband Number", None))
        self.bAbort.setText(_translate("MainWindow", "Abort", None))
        self.bQuickStart.setText(_translate("MainWindow", "Quick Start", None))
        self.bSaveWaveforms.setText(
            _translate("MainWindow", "Save Waveforms", None))
        self.bPause.setText(_translate("MainWindow", "Pause", None))
        self.bStart.setText(_translate("MainWindow", "Start", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuSPEX.setTitle(_translate("MainWindow", "SPEX", None))
        self.mFileSettings.setText(_translate("MainWindow", "Settings", None))
        self.mFileExit.setText(_translate("MainWindow", "Exit", None))
        self.actionInitialize.setText(
            _translate("MainWindow", "Initialize...", None))
        self.actionGoto_Wavenumber.setText(
            _translate("MainWindow", "Goto Wavenumber...", None))
        self.mSpexOpen.setText(
            _translate("MainWindow", "Open SPEX Settings", None))
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(583, 525)
        self.horizontalLayout_8 = QtGui.QHBoxLayout(Form)
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.splitter = QtGui.QSplitter(Form)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.gPlot = PlotWidget(self.splitter)
        self.gPlot.setObjectName(_fromUtf8("gPlot"))
        self.widget = QtGui.QWidget(self.splitter)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout = QtGui.QGridLayout(self.widget)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.groupBox = QtGui.QGroupBox(self.widget)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tBGStart = QFNumberEdit(self.groupBox)
        self.tBGStart.setObjectName(_fromUtf8("tBGStart"))
        self.horizontalLayout.addWidget(self.tBGStart)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
        self.bInit = QtGui.QPushButton(self.widget)
        self.bInit.setObjectName(_fromUtf8("bInit"))
        self.gridLayout.addWidget(self.bInit, 0, 3, 1, 1)
        self.groupBox_4 = QtGui.QGroupBox(self.widget)
        self.groupBox_4.setFlat(True)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_4.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.tSGEnd = QFNumberEdit(self.groupBox_4)
        self.tSGEnd.setObjectName(_fromUtf8("tSGEnd"))
        self.horizontalLayout_4.addWidget(self.tSGEnd)
        self.gridLayout.addWidget(self.groupBox_4, 1, 1, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.widget)
        self.groupBox_3.setFlat(True)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_3.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tSGStart = QFNumberEdit(self.groupBox_3)
        self.tSGStart.setObjectName(_fromUtf8("tSGStart"))
        self.horizontalLayout_3.addWidget(self.tSGStart)
        self.gridLayout.addWidget(self.groupBox_3, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.widget)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_2.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.tBGEnd = QFNumberEdit(self.groupBox_2)
        self.tBGEnd.setObjectName(_fromUtf8("tBGEnd"))
        self.horizontalLayout_2.addWidget(self.tBGEnd)
        self.gridLayout.addWidget(self.groupBox_2, 0, 1, 1, 1)
        self.groupBox_5 = QtGui.QGroupBox(self.widget)
        self.groupBox_5.setEnabled(False)
        self.groupBox_5.setFlat(True)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.groupBox_5)
        self.horizontalLayout_5.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.tBGBoxcar = QFNumberEdit(self.groupBox_5)
        self.tBGBoxcar.setObjectName(_fromUtf8("tBGBoxcar"))
        self.horizontalLayout_5.addWidget(self.tBGBoxcar)
        self.gridLayout.addWidget(self.groupBox_5, 0, 2, 1, 1)
        self.groupBox_6 = QtGui.QGroupBox(self.widget)
        self.groupBox_6.setEnabled(False)
        self.groupBox_6.setFlat(True)
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.groupBox_6)
        self.horizontalLayout_6.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.tSGBoxcar = QFNumberEdit(self.groupBox_6)
        self.tSGBoxcar.setObjectName(_fromUtf8("tSGBoxcar"))
        self.horizontalLayout_6.addWidget(self.tSGBoxcar)
        self.gridLayout.addWidget(self.groupBox_6, 1, 2, 1, 1)
        self.groupBox_7 = QtGui.QGroupBox(self.widget)
        self.groupBox_7.setFlat(True)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_7.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.cSave = QtGui.QCheckBox(self.groupBox_7)
        self.cSave.setText(_fromUtf8(""))
        self.cSave.setChecked(True)
        self.cSave.setObjectName(_fromUtf8("cSave"))
        self.horizontalLayout_7.addWidget(self.cSave)
        self.gridLayout.addWidget(self.groupBox_7, 1, 3, 1, 1)
        self.horizontalLayout_8.addWidget(self.splitter)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.groupBox.setTitle(_translate("Form", "BG Start", None))
        self.tBGStart.setText(_translate("Form", "0", None))
        self.bInit.setText(_translate("Form", "Initialize", None))
        self.groupBox_4.setTitle(_translate("Form", "Sig End", None))
        self.tSGEnd.setText(_translate("Form", "0", None))
        self.groupBox_3.setTitle(_translate("Form", "Sig Start", None))
        self.tSGStart.setText(_translate("Form", "0", None))
        self.groupBox_2.setTitle(_translate("Form", "BG End", None))
        self.tBGEnd.setText(_translate("Form", "0", None))
        self.groupBox_5.setTitle(_translate("Form", "Value:", None))
        self.groupBox_6.setTitle(_translate("Form", "Value:", None))
        self.groupBox_7.setTitle(_translate("Form", "Save?", None))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(588, 146)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.bm10 = QtGui.QPushButton(self.centralwidget)
        self.bm10.setObjectName(_fromUtf8("bm10"))
        self.horizontalLayout_2.addWidget(self.bm10)
        self.bm05 = QtGui.QPushButton(self.centralwidget)
        self.bm05.setObjectName(_fromUtf8("bm05"))
        self.horizontalLayout_2.addWidget(self.bm05)
        self.bm01 = QtGui.QPushButton(self.centralwidget)
        self.bm01.setObjectName(_fromUtf8("bm01"))
        self.horizontalLayout_2.addWidget(self.bm01)
        self.sbAngle = SpinBox(self.centralwidget)
        self.sbAngle.setObjectName(_fromUtf8("sbAngle"))
        self.horizontalLayout_2.addWidget(self.sbAngle)
        self.bp01 = QtGui.QPushButton(self.centralwidget)
        self.bp01.setObjectName(_fromUtf8("bp01"))
        self.horizontalLayout_2.addWidget(self.bp01)
        self.bp05 = QtGui.QPushButton(self.centralwidget)
        self.bp05.setObjectName(_fromUtf8("bp05"))
        self.horizontalLayout_2.addWidget(self.bp05)
        self.bp10 = QtGui.QPushButton(self.centralwidget)
        self.bp10.setObjectName(_fromUtf8("bp10"))
        self.horizontalLayout_2.addWidget(self.bp10)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.bStop = QtGui.QPushButton(self.centralwidget)
        self.bStop.setObjectName(_fromUtf8("bStop"))
        self.horizontalLayout.addWidget(self.bStop)
        self.bGo = QtGui.QPushButton(self.centralwidget)
        self.bGo.setObjectName(_fromUtf8("bGo"))
        self.horizontalLayout.addWidget(self.bGo)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.bQuit = QtGui.QPushButton(self.centralwidget)
        self.bQuit.setObjectName(_fromUtf8("bQuit"))
        self.horizontalLayout.addWidget(self.bQuit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.tFitA = QFNumberEdit(self.centralwidget)
        self.tFitA.setMaximumSize(QtCore.QSize(30, 16777215))
        self.tFitA.setInputMask(_fromUtf8(""))
        self.tFitA.setFrame(False)
        self.tFitA.setAlignment(QtCore.Qt.AlignCenter)
        self.tFitA.setObjectName(_fromUtf8("tFitA"))
        self.horizontalLayout_3.addWidget(self.tFitA)
        self.labelCosCalc = QtGui.QLabel(self.centralwidget)
        self.labelCosCalc.setObjectName(_fromUtf8("labelCosCalc"))
        self.horizontalLayout_3.addWidget(self.labelCosCalc)
        self.tFitMu = QFNumberEdit(self.centralwidget)
        self.tFitMu.setMaximumSize(QtCore.QSize(30, 16777215))
        self.tFitMu.setInputMask(_fromUtf8(""))
        self.tFitMu.setFrame(False)
        self.tFitMu.setAlignment(QtCore.Qt.AlignCenter)
        self.tFitMu.setObjectName(_fromUtf8("tFitMu"))
        self.horizontalLayout_3.addWidget(self.tFitMu)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_3.addWidget(self.label)
        self.tFitC = QFNumberEdit(self.centralwidget)
        self.tFitC.setMaximumSize(QtCore.QSize(30, 16777215))
        self.tFitC.setInputMask(_fromUtf8(""))
        self.tFitC.setFrame(False)
        self.tFitC.setAlignment(QtCore.Qt.AlignCenter)
        self.tFitC.setObjectName(_fromUtf8("tFitC"))
        self.horizontalLayout_3.addWidget(self.tFitC)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_3.addWidget(self.label_2)
        self.tCosCalc = QFNumberEdit(self.centralwidget)
        self.tCosCalc.setMaximumSize(QtCore.QSize(60, 16777215))
        self.tCosCalc.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.tCosCalc.setReadOnly(True)
        self.tCosCalc.setObjectName(_fromUtf8("tCosCalc"))
        self.horizontalLayout_3.addWidget(self.tCosCalc)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.bCloseDevice = QtGui.QPushButton(self.centralwidget)
        self.bCloseDevice.setCheckable(True)
        self.bCloseDevice.setObjectName(_fromUtf8("bCloseDevice"))
        self.horizontalLayout_3.addWidget(self.bCloseDevice)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 588, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuMore = QtGui.QMenu(self.menubar)
        self.menuMore.setObjectName(_fromUtf8("menuMore"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.mMoreSettings = QtGui.QAction(MainWindow)
        self.mMoreSettings.setObjectName(_fromUtf8("mMoreSettings"))
        self.mMoreZero = QtGui.QAction(MainWindow)
        self.mMoreZero.setObjectName(_fromUtf8("mMoreZero"))
        self.menuMore.addAction(self.mMoreSettings)
        self.menuMore.addAction(self.mMoreZero)
        self.menubar.addAction(self.menuMore.menuAction())

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.bm10.setText(_translate("MainWindow", "-10°", None))
        self.bm05.setText(_translate("MainWindow", "-5°", None))
        self.bm01.setText(_translate("MainWindow", "-1°", None))
        self.bp01.setText(_translate("MainWindow", "+1°", None))
        self.bp05.setText(_translate("MainWindow", "+5°", None))
        self.bp10.setText(_translate("MainWindow", "+10°", None))
        self.bStop.setText(_translate("MainWindow", "Stop", None))
        self.bGo.setText(_translate("MainWindow", "Go", None))
        self.bQuit.setText(_translate("MainWindow", "Quit", None))
        self.tFitA.setText(_translate("MainWindow", "1.0", None))
        self.labelCosCalc.setText(
            _translate("MainWindow", "   cos<sup>4</sup>(θ+", None))
        self.tFitMu.setText(_translate("MainWindow", "0.0", None))
        self.label.setText(_translate("MainWindow", "°)+", None))
        self.tFitC.setText(_translate("MainWindow", "0.0", None))
        self.label_2.setText(_translate("MainWindow", " = ", None))
        self.tCosCalc.setText(_translate("MainWindow", "0.0", None))
        self.bCloseDevice.setText(_translate("MainWindow", "Open Device",
                                             None))
        self.menuMore.setTitle(_translate("MainWindow", "More", None))
        self.mMoreSettings.setText(
            _translate("MainWindow", "Control Panel", None))
        self.mMoreZero.setText(_translate("MainWindow", "Set Zero", None))
Exemple #11
0
class Ui_Oscilloscope(object):
    def setupUi(self, Oscilloscope):
        Oscilloscope.setObjectName(_fromUtf8("Oscilloscope"))
        Oscilloscope.resize(741, 543)
        self.verticalLayout = QtGui.QVBoxLayout(Oscilloscope)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(Oscilloscope)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.gOsc = PlotWidget(self.tab_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.gOsc.sizePolicy().hasHeightForWidth())
        self.gOsc.setSizePolicy(sizePolicy)
        self.gOsc.setObjectName(_fromUtf8("gOsc"))
        self.verticalLayout_2.addWidget(self.gOsc)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_5)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.gbAveraging = QtGui.QGroupBox(self.tab_5)
        self.gbAveraging.setFlat(True)
        self.gbAveraging.setCheckable(True)
        self.gbAveraging.setObjectName(_fromUtf8("gbAveraging"))
        self.horizontalLayout_53 = QtGui.QHBoxLayout(self.gbAveraging)
        self.horizontalLayout_53.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_53.setObjectName(
            _fromUtf8("horizontalLayout_53"))
        self.cbAveMode = QtGui.QComboBox(self.gbAveraging)
        self.cbAveMode.setObjectName(_fromUtf8("cbAveMode"))
        self.cbAveMode.addItem(_fromUtf8(""))
        self.cbAveMode.addItem(_fromUtf8(""))
        self.horizontalLayout_53.addWidget(self.cbAveMode)
        self.sbAveNum = QtGui.QSpinBox(self.gbAveraging)
        self.sbAveNum.setProperty("value", 4)
        self.sbAveNum.setObjectName(_fromUtf8("sbAveNum"))
        self.horizontalLayout_53.addWidget(self.sbAveNum)
        self.cbRolling = QtGui.QCheckBox(self.gbAveraging)
        self.cbRolling.setObjectName(_fromUtf8("cbRolling"))
        self.horizontalLayout_53.addWidget(self.cbRolling)
        self.gridLayout_2.addWidget(self.gbAveraging, 0, 1, 1, 1)
        self.groupBox_39 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_39.setFlat(True)
        self.groupBox_39.setCheckable(False)
        self.groupBox_39.setObjectName(_fromUtf8("groupBox_39"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_39)
        self.gridLayout_9.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_9.setSpacing(0)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.tFELFreq = QFNumberEdit(self.groupBox_39)
        self.tFELFreq.setObjectName(_fromUtf8("tFELFreq"))
        self.gridLayout_9.addWidget(self.tFELFreq, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_39, 0, 0, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem1, 0, 3, 1, 1)
        self.groupBox_40 = QtGui.QGroupBox(self.tab_5)
        self.groupBox_40.setFlat(True)
        self.groupBox_40.setCheckable(False)
        self.groupBox_40.setObjectName(_fromUtf8("groupBox_40"))
        self.gridLayout_10 = QtGui.QGridLayout(self.groupBox_40)
        self.gridLayout_10.setContentsMargins(0, 10, 0, 0)
        self.gridLayout_10.setSpacing(0)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.tRatio = QFNumberEdit(self.groupBox_40)
        self.tRatio.setObjectName(_fromUtf8("tRatio"))
        self.gridLayout_10.addWidget(self.tRatio, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_40, 0, 2, 1, 1)
        self.gridLayout_2.setColumnStretch(0, 3)
        self.gridLayout_2.setColumnStretch(1, 4)
        self.gridLayout_2.setColumnStretch(2, 3)
        self.gridLayout_2.setColumnStretch(3, 8)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.oscControlsWidget = QtGui.QWidget(Oscilloscope)
        self.oscControlsWidget.setObjectName(_fromUtf8("oscControlsWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.oscControlsWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.bOPause = QtGui.QPushButton(self.oscControlsWidget)
        self.bOPause.setCheckable(True)
        self.bOPause.setChecked(True)
        self.bOPause.setObjectName(_fromUtf8("bOPause"))
        self.horizontalLayout.addWidget(self.bOPause)
        self.groupBox_31 = QtGui.QGroupBox(self.oscControlsWidget)
        self.groupBox_31.setFlat(True)
        self.groupBox_31.setObjectName(_fromUtf8("groupBox_31"))
        self.horizontalLayout_29 = QtGui.QHBoxLayout(self.groupBox_31)
        self.horizontalLayout_29.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_29.setObjectName(
            _fromUtf8("horizontalLayout_29"))
        self.cOGPIB = QtGui.QComboBox(self.groupBox_31)
        self.cOGPIB.setObjectName(_fromUtf8("cOGPIB"))
        self.horizontalLayout_29.addWidget(self.cOGPIB)
        self.horizontalLayout.addWidget(self.groupBox_31)
        self.groupBox_32 = QtGui.QGroupBox(self.oscControlsWidget)
        self.groupBox_32.setFlat(True)
        self.groupBox_32.setObjectName(_fromUtf8("groupBox_32"))
        self.horizontalLayout_30 = QtGui.QHBoxLayout(self.groupBox_32)
        self.horizontalLayout_30.setContentsMargins(0, 10, 0, 0)
        self.horizontalLayout_30.setObjectName(
            _fromUtf8("horizontalLayout_30"))
        self.cOChannel = QtGui.QComboBox(self.groupBox_32)
        self.cOChannel.setObjectName(_fromUtf8("cOChannel"))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.cOChannel.addItem(_fromUtf8(""))
        self.horizontalLayout_30.addWidget(self.cOChannel)
        self.horizontalLayout.addWidget(self.groupBox_32)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.verticalLayout.addWidget(self.oscControlsWidget)

        self.retranslateUi(Oscilloscope)
        self.tabWidget.setCurrentIndex(0)
        self.cOChannel.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Oscilloscope)
        Oscilloscope.setTabOrder(self.tFELFreq, self.bOPause)
        Oscilloscope.setTabOrder(self.bOPause, self.cOGPIB)
        Oscilloscope.setTabOrder(self.cOGPIB, self.cOChannel)
        Oscilloscope.setTabOrder(self.cOChannel, self.gOsc)
        Oscilloscope.setTabOrder(self.gOsc, self.tabWidget)

    def retranslateUi(self, Oscilloscope):
        Oscilloscope.setWindowTitle(_translate("Oscilloscope", "Form", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("Oscilloscope", "Waveform", None))
        self.gbAveraging.setTitle(_translate("Oscilloscope", "Averaging",
                                             None))
        self.cbAveMode.setItemText(
            0, _translate("Oscilloscope", "Waveform", None))
        self.cbAveMode.setItemText(1, _translate("Oscilloscope", "Peaks",
                                                 None))
        self.cbRolling.setText(_translate("Oscilloscope", "Rolling", None))
        self.groupBox_39.setTitle(
            _translate("Oscilloscope", "FEL Freq (cm-1)", None))
        self.tFELFreq.setText(_translate("Oscilloscope", "0", None))
        self.groupBox_40.setTitle(_translate("Oscilloscope", "Ratio (%)",
                                             None))
        self.tRatio.setText(_translate("Oscilloscope", "0", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_5),
            _translate("Oscilloscope", "Misc Settings", None))
        self.bOPause.setText(_translate("Oscilloscope", "Pause", None))
        self.groupBox_31.setTitle(_translate("Oscilloscope", "GPIB", None))
        self.cOGPIB.setToolTip(
            _translate("Oscilloscope", "GPIB0::5::INSTR", None))
        self.groupBox_32.setTitle(_translate("Oscilloscope", "Channel", None))
        self.cOChannel.setItemText(0, _translate("Oscilloscope", "1", None))
        self.cOChannel.setItemText(1, _translate("Oscilloscope", "2", None))
        self.cOChannel.setItemText(2, _translate("Oscilloscope", "3", None))
        self.cOChannel.setItemText(3, _translate("Oscilloscope", "4", None))