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_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))