class Ui_devGui(object): def setupUi(self, devGui): devGui.setObjectName(_fromUtf8("devGui")) devGui.resize(126, 88) self.gridLayout = QtGui.QGridLayout(devGui) self.gridLayout.setSpacing(3) self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.modeCombo = QtGui.QComboBox(devGui) self.modeCombo.setObjectName(_fromUtf8("modeCombo")) self.gridLayout.addWidget(self.modeCombo, 0, 0, 1, 2) self.label = QtGui.QLabel(devGui) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.vcHoldingSpin = SpinBox(devGui) self.vcHoldingSpin.setObjectName(_fromUtf8("vcHoldingSpin")) self.gridLayout.addWidget(self.vcHoldingSpin, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(devGui) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.icHoldingSpin = SpinBox(devGui) self.icHoldingSpin.setObjectName(_fromUtf8("icHoldingSpin")) self.gridLayout.addWidget(self.icHoldingSpin, 2, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 3, 0, 1, 1) self.retranslateUi(devGui) QtCore.QMetaObject.connectSlotsByName(devGui) def retranslateUi(self, devGui): devGui.setWindowTitle(_translate("devGui", "Form", None)) self.label.setText(_translate("devGui", "VC Holding", None)) self.label_2.setText(_translate("devGui", "IC Holding", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(210, 159) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.offModeRadio = QtGui.QRadioButton(Form) self.offModeRadio.setChecked(False) self.offModeRadio.setObjectName(_fromUtf8("offModeRadio")) self.gridLayout.addWidget(self.offModeRadio, 0, 0, 1, 1) self.vcModeRadio = QtGui.QRadioButton(Form) self.vcModeRadio.setChecked(True) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.gridLayout.addWidget(self.vcModeRadio, 1, 0, 1, 1) self.vcPulseCheck = QtGui.QCheckBox(Form) self.vcPulseCheck.setChecked(True) self.vcPulseCheck.setObjectName(_fromUtf8("vcPulseCheck")) self.gridLayout.addWidget(self.vcPulseCheck, 1, 1, 1, 1) self.vcPulseSpin = SpinBox(Form) self.vcPulseSpin.setObjectName(_fromUtf8("vcPulseSpin")) self.gridLayout.addWidget(self.vcPulseSpin, 1, 2, 1, 1) self.vcHoldCheck = QtGui.QCheckBox(Form) self.vcHoldCheck.setObjectName(_fromUtf8("vcHoldCheck")) self.gridLayout.addWidget(self.vcHoldCheck, 2, 1, 1, 1) self.vcHoldSpin = SpinBox(Form) self.vcHoldSpin.setObjectName(_fromUtf8("vcHoldSpin")) self.gridLayout.addWidget(self.vcHoldSpin, 2, 2, 1, 1) self.icModeRadio = QtGui.QRadioButton(Form) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.gridLayout.addWidget(self.icModeRadio, 3, 0, 1, 1) self.icPulseCheck = QtGui.QCheckBox(Form) self.icPulseCheck.setChecked(True) self.icPulseCheck.setObjectName(_fromUtf8("icPulseCheck")) self.gridLayout.addWidget(self.icPulseCheck, 3, 1, 1, 1) self.icPulseSpin = SpinBox(Form) self.icPulseSpin.setObjectName(_fromUtf8("icPulseSpin")) self.gridLayout.addWidget(self.icPulseSpin, 3, 2, 1, 1) self.icHoldCheck = QtGui.QCheckBox(Form) self.icHoldCheck.setObjectName(_fromUtf8("icHoldCheck")) self.gridLayout.addWidget(self.icHoldCheck, 4, 1, 1, 1) self.icHoldSpin = SpinBox(Form) self.icHoldSpin.setObjectName(_fromUtf8("icHoldSpin")) self.gridLayout.addWidget(self.icHoldSpin, 4, 2, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.offModeRadio.setText(_translate("Form", "Off", None)) self.vcModeRadio.setText(_translate("Form", "VC", None)) self.vcPulseCheck.setText(_translate("Form", "Pulse", None)) self.vcPulseSpin.setSuffix(_translate("Form", "V", None)) self.vcHoldCheck.setText(_translate("Form", "Hold", None)) self.vcHoldSpin.setSuffix(_translate("Form", "V", None)) self.icModeRadio.setText(_translate("Form", "IC", None)) self.icPulseCheck.setText(_translate("Form", "Pulse", None)) self.icPulseSpin.setSuffix(_translate("Form", "A", None)) self.icHoldCheck.setText(_translate("Form", "Hold", None)) self.icHoldSpin.setSuffix(_translate("Form", "A", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(161, 72) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(15) self.verticalLayout.setObjectName("verticalLayout") self.devCtrlWidget = QtWidgets.QWidget(Form) self.devCtrlWidget.setObjectName("devCtrlWidget") self.gridLayout_4 = QtWidgets.QGridLayout(self.devCtrlWidget) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setObjectName("gridLayout_4") self.btnFullFrame = QtWidgets.QPushButton(self.devCtrlWidget) self.btnFullFrame.setObjectName("btnFullFrame") self.gridLayout_4.addWidget(self.btnFullFrame, 2, 0, 1, 2) self.label_3 = QtWidgets.QLabel(self.devCtrlWidget) self.label_3.setObjectName("label_3") self.gridLayout_4.addWidget(self.label_3, 1, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.devCtrlWidget) self.label_2.setObjectName("label_2") self.gridLayout_4.addWidget(self.label_2, 0, 0, 1, 1) self.spinExposure = SpinBox(self.devCtrlWidget) self.spinExposure.setMinimumSize(Qt.QSize(80, 0)) self.spinExposure.setObjectName("spinExposure") self.gridLayout_4.addWidget(self.spinExposure, 1, 1, 1, 1) self.binningCombo = QtWidgets.QComboBox(self.devCtrlWidget) self.binningCombo.setObjectName("binningCombo") self.gridLayout_4.addWidget(self.binningCombo, 0, 1, 1, 1) self.verticalLayout.addWidget(self.devCtrlWidget) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.btnFullFrame.setToolTip( _translate( "Form", "Set the region of interest to the maximum possible area.")) self.btnFullFrame.setText(_translate("Form", "Full Frame")) self.label_3.setText(_translate("Form", "Exposure")) self.label_2.setText(_translate("Form", "Binning")) self.spinExposure.setToolTip( _translate("Form", "Sets the exposure time for each frame."))
class Ui_devGui(object): def setupUi(self, devGui): devGui.setObjectName(_fromUtf8("devGui")) devGui.resize(126, 88) self.gridLayout = QtGui.QGridLayout(devGui) self.gridLayout.setMargin(0) self.gridLayout.setSpacing(3) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.modeCombo = QtGui.QComboBox(devGui) self.modeCombo.setObjectName(_fromUtf8("modeCombo")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.modeCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.modeCombo, 0, 0, 1, 2) self.label = QtGui.QLabel(devGui) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.vcHoldingSpin = SpinBox(devGui) self.vcHoldingSpin.setObjectName(_fromUtf8("vcHoldingSpin")) self.gridLayout.addWidget(self.vcHoldingSpin, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(devGui) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1) self.icHoldingSpin = SpinBox(devGui) self.icHoldingSpin.setObjectName(_fromUtf8("icHoldingSpin")) self.gridLayout.addWidget(self.icHoldingSpin, 2, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 3, 0, 1, 1) self.retranslateUi(devGui) QtCore.QMetaObject.connectSlotsByName(devGui) def retranslateUi(self, devGui): devGui.setWindowTitle(_translate("devGui", "Form", None)) self.modeCombo.setItemText(0, _translate("devGui", "V-Clamp", None)) self.modeCombo.setItemText(1, _translate("devGui", "I=0", None)) self.modeCombo.setItemText(2, _translate("devGui", "I-Clamp Normal", None)) self.modeCombo.setItemText(3, _translate("devGui", "I-Clamp Fast", None)) self.modeCombo.setItemText(4, _translate("devGui", "Track", None)) self.label.setText(_translate("devGui", "VC Holding", None)) self.label_2.setText(_translate("devGui", "IC Holding", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(529, 353) self.verticalLayout_3 = QtGui.QVBoxLayout(Form) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.groupBox = QtGui.QGroupBox(Form) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.groupBox.setFont(font) self.groupBox.setCheckable(True) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setContentsMargins(5, 0, 0, 0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.preSetCheck = QtGui.QCheckBox(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.preSetCheck.setFont(font) self.preSetCheck.setObjectName(_fromUtf8("preSetCheck")) self.gridLayout.addWidget(self.preSetCheck, 0, 0, 1, 1) self.preSetSpin = SpinBox(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.preSetSpin.setFont(font) self.preSetSpin.setMinimum(-999999999.0) self.preSetSpin.setMaximum(999999999.0) self.preSetSpin.setObjectName(_fromUtf8("preSetSpin")) self.gridLayout.addWidget(self.preSetSpin, 0, 1, 1, 1) self.holdingCheck = QtGui.QCheckBox(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.holdingCheck.setFont(font) self.holdingCheck.setObjectName(_fromUtf8("holdingCheck")) self.gridLayout.addWidget(self.holdingCheck, 1, 0, 1, 1) self.holdingSpin = SpinBox(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.holdingSpin.setFont(font) self.holdingSpin.setMinimum(-999999999.0) self.holdingSpin.setMaximum(999999999.0) self.holdingSpin.setObjectName(_fromUtf8("holdingSpin")) self.gridLayout.addWidget(self.holdingSpin, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.frame = QtGui.QFrame(self.groupBox) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.functionCheck = QtGui.QCheckBox(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.functionCheck.setFont(font) self.functionCheck.setObjectName(_fromUtf8("functionCheck")) self.horizontalLayout.addWidget(self.functionCheck) self.displayCheck = QtGui.QCheckBox(self.frame) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.displayCheck.setFont(font) self.displayCheck.setChecked(True) self.displayCheck.setObjectName(_fromUtf8("displayCheck")) self.horizontalLayout.addWidget(self.displayCheck) self.verticalLayout.addLayout(self.horizontalLayout) self.waveGeneratorWidget = StimGenerator(self.frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waveGeneratorWidget.sizePolicy().hasHeightForWidth()) self.waveGeneratorWidget.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.waveGeneratorWidget.setFont(font) self.waveGeneratorWidget.setObjectName(_fromUtf8("waveGeneratorWidget")) self.verticalLayout.addWidget(self.waveGeneratorWidget) self.verticalLayout_2.addWidget(self.frame) self.verticalLayout_3.addWidget(self.groupBox) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.groupBox.setTitle(_translate("Form", "GroupBox", None)) self.preSetCheck.setText(_translate("Form", "Pre-set", None)) self.holdingCheck.setText(_translate("Form", "Holding", None)) self.functionCheck.setText(_translate("Form", "Enable Function", None)) self.displayCheck.setText(_translate("Form", "Display", None))
class Ui_MockClampDevGui(object): def setupUi(self, MockClampDevGui): MockClampDevGui.setObjectName(_fromUtf8("MockClampDevGui")) MockClampDevGui.resize(459, 229) self.gridLayout = QtGui.QGridLayout(MockClampDevGui) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.groupBox_2 = QtGui.QGroupBox(MockClampDevGui) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.vcModeRadio = QtGui.QRadioButton(self.groupBox_2) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.horizontalLayout.addWidget(self.vcModeRadio) self.i0ModeRadio = QtGui.QRadioButton(self.groupBox_2) self.i0ModeRadio.setObjectName(_fromUtf8("i0ModeRadio")) self.horizontalLayout.addWidget(self.i0ModeRadio) self.icModeRadio = QtGui.QRadioButton(self.groupBox_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.horizontalLayout.addWidget(self.icModeRadio) self.gridLayout_3.addLayout(self.horizontalLayout, 0, 0, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1) self.vcHoldingSpin = SpinBox(self.groupBox_2) self.vcHoldingSpin.setObjectName(_fromUtf8("vcHoldingSpin")) self.gridLayout_3.addWidget(self.vcHoldingSpin, 1, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1) self.icHoldingSpin = SpinBox(self.groupBox_2) self.icHoldingSpin.setObjectName(_fromUtf8("icHoldingSpin")) self.gridLayout_3.addWidget(self.icHoldingSpin, 2, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 4, 0, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 3, 0, 1, 1) self.pipOffsetSpin = SpinBox(self.groupBox_2) self.pipOffsetSpin.setObjectName(_fromUtf8("pipOffsetSpin")) self.gridLayout_3.addWidget(self.pipOffsetSpin, 3, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 1) self.groupBox = QtGui.QGroupBox(MockClampDevGui) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.pipCapSpin = SpinBox(self.groupBox) self.pipCapSpin.setObjectName(_fromUtf8("pipCapSpin")) self.gridLayout_2.addWidget(self.pipCapSpin, 0, 1, 1, 2) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.pipResSpin = SpinBox(self.groupBox) self.pipResSpin.setObjectName(_fromUtf8("pipResSpin")) self.gridLayout_2.addWidget(self.pipResSpin, 1, 1, 1, 2) self.label_5 = QtGui.QLabel(self.groupBox) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1) self.pipJunctPotSpin = SpinBox(self.groupBox) self.pipJunctPotSpin.setObjectName(_fromUtf8("pipJunctPotSpin")) self.gridLayout_2.addWidget(self.pipJunctPotSpin, 2, 1, 1, 2) self.pipBathRadio = QtGui.QRadioButton(self.groupBox) self.pipBathRadio.setObjectName(_fromUtf8("pipBathRadio")) self.gridLayout_2.addWidget(self.pipBathRadio, 3, 0, 1, 3) self.pipAttachRadio = QtGui.QRadioButton(self.groupBox) self.pipAttachRadio.setObjectName(_fromUtf8("pipAttachRadio")) self.gridLayout_2.addWidget(self.pipAttachRadio, 5, 0, 1, 2) self.pipWholeRadio = QtGui.QRadioButton(self.groupBox) self.pipWholeRadio.setObjectName(_fromUtf8("pipWholeRadio")) self.gridLayout_2.addWidget(self.pipWholeRadio, 5, 2, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem1, 6, 0, 1, 1) self.comboBox = QtGui.QComboBox(self.groupBox) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.gridLayout_2.addWidget(self.comboBox, 4, 1, 1, 2) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_2.addWidget(self.label_7, 4, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1) self.retranslateUi(MockClampDevGui) QtCore.QMetaObject.connectSlotsByName(MockClampDevGui) def retranslateUi(self, MockClampDevGui): MockClampDevGui.setWindowTitle(_translate("MockClampDevGui", "Form", None)) self.groupBox_2.setTitle(_translate("MockClampDevGui", "Clamp", None)) self.vcModeRadio.setText(_translate("MockClampDevGui", "VC", None)) self.i0ModeRadio.setText(_translate("MockClampDevGui", "I=0", None)) self.icModeRadio.setText(_translate("MockClampDevGui", "IC", None)) self.label_3.setText(_translate("MockClampDevGui", "VC Holding", None)) self.label_4.setText(_translate("MockClampDevGui", "IC Holding", None)) self.label_6.setText(_translate("MockClampDevGui", "Pipette Offset", None)) self.groupBox.setTitle(_translate("MockClampDevGui", "Pipette", None)) self.label.setText(_translate("MockClampDevGui", "Capacitance", None)) self.label_2.setText(_translate("MockClampDevGui", "Resistance", None)) self.label_5.setText(_translate("MockClampDevGui", "Junct. Pot.", None)) self.pipBathRadio.setText(_translate("MockClampDevGui", "Bath", None)) self.pipAttachRadio.setText(_translate("MockClampDevGui", "On Cell", None)) self.pipWholeRadio.setText(_translate("MockClampDevGui", "Whole Cell", None)) self.label_7.setText(_translate("MockClampDevGui", "Cell", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(330, 97) Form.setAutoFillBackground(True) self.verticalLayout_3 = QtGui.QVBoxLayout(Form) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.splitter_2 = QtGui.QSplitter(Form) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName(_fromUtf8("splitter_2")) self.layoutWidget = QtGui.QWidget(self.splitter_2) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.frame_2 = QtGui.QFrame(self.layoutWidget) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.vcModeRadio = QtGui.QRadioButton(self.frame_2) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.horizontalLayout_2.addWidget(self.vcModeRadio) self.i0ModeRadio = QtGui.QRadioButton(self.frame_2) self.i0ModeRadio.setChecked(True) self.i0ModeRadio.setObjectName(_fromUtf8("i0ModeRadio")) self.horizontalLayout_2.addWidget(self.i0ModeRadio) self.icModeRadio = QtGui.QRadioButton(self.frame_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.horizontalLayout_2.addWidget(self.icModeRadio) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.holdingCheck = QtGui.QCheckBox(self.frame_2) self.holdingCheck.setObjectName(_fromUtf8("holdingCheck")) self.horizontalLayout_6.addWidget(self.holdingCheck) self.holdingSpin = SpinBox(self.frame_2) self.holdingSpin.setEnabled(False) self.holdingSpin.setMinimum(-1000000.0) self.holdingSpin.setMaximum(1000000.0) self.holdingSpin.setObjectName(_fromUtf8("holdingSpin")) self.horizontalLayout_6.addWidget(self.holdingSpin) self.horizontalLayout_2.addLayout(self.horizontalLayout_6) self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 2) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.primarySignalCheck = QtGui.QCheckBox(self.layoutWidget) self.primarySignalCheck.setObjectName(_fromUtf8("primarySignalCheck")) self.gridLayout.addWidget(self.primarySignalCheck, 0, 0, 1, 1) self.secondarySignalCheck = QtGui.QCheckBox(self.layoutWidget) self.secondarySignalCheck.setObjectName(_fromUtf8("secondarySignalCheck")) self.gridLayout.addWidget(self.secondarySignalCheck, 1, 0, 1, 1) self.primarySignalCombo = QtGui.QComboBox(self.layoutWidget) self.primarySignalCombo.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.primarySignalCombo.sizePolicy().hasHeightForWidth()) self.primarySignalCombo.setSizePolicy(sizePolicy) self.primarySignalCombo.setMinimumSize(QtCore.QSize(40, 0)) self.primarySignalCombo.setObjectName(_fromUtf8("primarySignalCombo")) self.primarySignalCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.primarySignalCombo, 0, 1, 1, 1) self.secondarySignalCombo = QtGui.QComboBox(self.layoutWidget) self.secondarySignalCombo.setEnabled(False) self.secondarySignalCombo.setMinimumSize(QtCore.QSize(40, 0)) self.secondarySignalCombo.setObjectName(_fromUtf8("secondarySignalCombo")) self.secondarySignalCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.secondarySignalCombo, 1, 1, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 2, 1) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setSpacing(0) self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.secondaryGainCheck = QtGui.QCheckBox(self.layoutWidget) self.secondaryGainCheck.setObjectName(_fromUtf8("secondaryGainCheck")) self.horizontalLayout_7.addWidget(self.secondaryGainCheck) self.secondaryGainSpin = QtGui.QSpinBox(self.layoutWidget) self.secondaryGainSpin.setEnabled(False) self.secondaryGainSpin.setMaximum(100000) self.secondaryGainSpin.setObjectName(_fromUtf8("secondaryGainSpin")) self.horizontalLayout_7.addWidget(self.secondaryGainSpin) self.gridLayout_2.addLayout(self.horizontalLayout_7, 2, 1, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setSpacing(0) self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.primaryGainCheck = QtGui.QCheckBox(self.layoutWidget) self.primaryGainCheck.setObjectName(_fromUtf8("primaryGainCheck")) self.horizontalLayout_5.addWidget(self.primaryGainCheck) self.primaryGainSpin = QtGui.QSpinBox(self.layoutWidget) self.primaryGainSpin.setEnabled(False) self.primaryGainSpin.setMaximum(100000) self.primaryGainSpin.setObjectName(_fromUtf8("primaryGainSpin")) self.horizontalLayout_5.addWidget(self.primaryGainSpin) self.gridLayout_2.addLayout(self.horizontalLayout_5, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_2) self.frame = QtGui.QFrame(self.layoutWidget) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.waveGeneratorLabel = QtGui.QLabel(self.frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waveGeneratorLabel.sizePolicy().hasHeightForWidth()) self.waveGeneratorLabel.setSizePolicy(sizePolicy) self.waveGeneratorLabel.setObjectName(_fromUtf8("waveGeneratorLabel")) self.verticalLayout.addWidget(self.waveGeneratorLabel) self.waveGeneratorWidget = StimGenerator(self.frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waveGeneratorWidget.sizePolicy().hasHeightForWidth()) self.waveGeneratorWidget.setSizePolicy(sizePolicy) self.waveGeneratorWidget.setObjectName(_fromUtf8("waveGeneratorWidget")) self.verticalLayout.addWidget(self.waveGeneratorWidget) self.verticalLayout_2.addWidget(self.frame) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.topPlotWidget = PlotWidget(self.splitter) self.topPlotWidget.setObjectName(_fromUtf8("topPlotWidget")) self.bottomPlotWidget = PlotWidget(self.splitter) self.bottomPlotWidget.setObjectName(_fromUtf8("bottomPlotWidget")) self.verticalLayout_3.addWidget(self.splitter_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.vcModeRadio.setText(_translate("Form", "VC", None)) self.i0ModeRadio.setText(_translate("Form", "I=0", None)) self.icModeRadio.setText(_translate("Form", "IC", None)) self.holdingCheck.setText(_translate("Form", "Holding", None)) self.primarySignalCheck.setText(_translate("Form", "Primary:", None)) self.secondarySignalCheck.setText(_translate("Form", "Secondary:", None)) self.primarySignalCombo.setItemText(0, _translate("Form", "MembranePotential", None)) self.secondarySignalCombo.setItemText(0, _translate("Form", "MembraneCurrent", None)) self.secondaryGainCheck.setText(_translate("Form", "Set Gain", None)) self.primaryGainCheck.setText(_translate("Form", "Set Gain", None)) self.waveGeneratorLabel.setText(_translate("Form", "Command Function (A)", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(280, 147) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.slicePlaneCombo = QtGui.QComboBox(Form) self.slicePlaneCombo.setObjectName(_fromUtf8("slicePlaneCombo")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.slicePlaneCombo, 0, 1, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.hemisphereCombo = QtGui.QComboBox(Form) self.hemisphereCombo.setObjectName(_fromUtf8("hemisphereCombo")) self.hemisphereCombo.addItem(_fromUtf8("")) self.hemisphereCombo.addItem(_fromUtf8("")) self.horizontalLayout_3.addWidget(self.hemisphereCombo) self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 2) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.photoCheck = QtGui.QCheckBox(Form) self.photoCheck.setObjectName(_fromUtf8("photoCheck")) self.horizontalLayout.addWidget(self.photoCheck) self.drawingCheck = QtGui.QCheckBox(Form) self.drawingCheck.setChecked(True) self.drawingCheck.setObjectName(_fromUtf8("drawingCheck")) self.horizontalLayout.addWidget(self.drawingCheck) self.flipCheck = QtGui.QCheckBox(Form) self.flipCheck.setObjectName(_fromUtf8("flipCheck")) self.horizontalLayout.addWidget(self.flipCheck) self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 2) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_3 = QtGui.QLabel(Form) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.thicknessSpin = SpinBox(Form) self.thicknessSpin.setObjectName(_fromUtf8("thicknessSpin")) self.horizontalLayout_2.addWidget(self.thicknessSpin) self.gridLayout.addLayout(self.horizontalLayout_2, 3, 0, 1, 2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label.setText(_translate("Form", "Slice Plane", None)) self.slicePlaneCombo.setItemText(0, _translate("Form", "Parasaggital", None)) self.slicePlaneCombo.setItemText(1, _translate("Form", "Coronal (AVCN-DCN)", None)) self.slicePlaneCombo.setItemText(2, _translate("Form", "Coronal (PVCN-DCN)", None)) self.slicePlaneCombo.setItemText(3, _translate("Form", "Horizontal (VCN)", None)) self.label_2.setText(_translate("Form", "Hemisphere", None)) self.hemisphereCombo.setItemText(0, _translate("Form", "Left", None)) self.hemisphereCombo.setItemText(1, _translate("Form", "Right", None)) self.photoCheck.setText(_translate("Form", "Photo", None)) self.drawingCheck.setText(_translate("Form", "Drawing", None)) self.flipCheck.setText(_translate("Form", "Flip", None)) self.label_3.setText(_translate("Form", "Thickness", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(200, 296) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.triggerDevList = QtGui.QComboBox(Form) self.triggerDevList.setObjectName(_fromUtf8("triggerDevList")) self.triggerDevList.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.triggerDevList, 1, 1, 1, 2) self.label_3 = QtGui.QLabel(Form) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.numPtsLabel = QtGui.QLabel(Form) self.numPtsLabel.setObjectName(_fromUtf8("numPtsLabel")) self.gridLayout.addWidget(self.numPtsLabel, 0, 1, 1, 1) self.groupBox = QtGui.QGroupBox(Form) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setMargin(0) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 0, 0, 1, 1) self.denoiseCombo = QtGui.QComboBox(self.groupBox) self.denoiseCombo.setObjectName(_fromUtf8("denoiseCombo")) self.denoiseCombo.addItem(_fromUtf8("")) self.denoiseCombo.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.denoiseCombo, 0, 1, 1, 1) self.denoiseStack = QtGui.QStackedWidget(self.groupBox) self.denoiseStack.setObjectName(_fromUtf8("denoiseStack")) self.page_4 = QtGui.QWidget() self.page_4.setObjectName(_fromUtf8("page_4")) self.denoiseStack.addWidget(self.page_4) self.page_3 = QtGui.QWidget() self.page_3.setObjectName(_fromUtf8("page_3")) self.gridLayout_7 = QtGui.QGridLayout(self.page_3) self.gridLayout_7.setMargin(0) self.gridLayout_7.setSpacing(0) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_13 = QtGui.QLabel(self.page_3) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_7.addWidget(self.label_13, 0, 0, 1, 1) self.denoiseThresholdSpin = QtGui.QDoubleSpinBox(self.page_3) self.denoiseThresholdSpin.setProperty("value", 4.0) self.denoiseThresholdSpin.setObjectName(_fromUtf8("denoiseThresholdSpin")) self.gridLayout_7.addWidget(self.denoiseThresholdSpin, 0, 1, 1, 1) self.label_16 = QtGui.QLabel(self.page_3) self.label_16.setObjectName(_fromUtf8("label_16")) self.gridLayout_7.addWidget(self.label_16, 1, 0, 1, 1) self.denoiseWidthSpin = QtGui.QSpinBox(self.page_3) self.denoiseWidthSpin.setMinimum(1) self.denoiseWidthSpin.setMaximum(100000) self.denoiseWidthSpin.setProperty("value", 1) self.denoiseWidthSpin.setObjectName(_fromUtf8("denoiseWidthSpin")) self.gridLayout_7.addWidget(self.denoiseWidthSpin, 1, 1, 1, 1) self.denoiseStack.addWidget(self.page_3) self.gridLayout_3.addWidget(self.denoiseStack, 1, 1, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_3.addWidget(self.label_9, 2, 0, 1, 1) self.filterCombo = QtGui.QComboBox(self.groupBox) self.filterCombo.setObjectName(_fromUtf8("filterCombo")) self.filterCombo.addItem(_fromUtf8("")) self.filterCombo.addItem(_fromUtf8("")) self.filterCombo.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.filterCombo, 2, 1, 1, 1) self.filterStack = QtGui.QStackedWidget(self.groupBox) self.filterStack.setObjectName(_fromUtf8("filterStack")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.gridLayout_6 = QtGui.QGridLayout(self.page) self.gridLayout_6.setMargin(0) self.gridLayout_6.setSpacing(0) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.filterStack.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.gridLayout_5 = QtGui.QGridLayout(self.page_2) self.gridLayout_5.setMargin(0) self.gridLayout_5.setSpacing(0) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_11 = QtGui.QLabel(self.page_2) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_5.addWidget(self.label_11, 0, 0, 1, 1) self.besselCutoffSpin = SpinBox(self.page_2) self.besselCutoffSpin.setProperty("value", 2.0) self.besselCutoffSpin.setObjectName(_fromUtf8("besselCutoffSpin")) self.gridLayout_5.addWidget(self.besselCutoffSpin, 0, 1, 1, 1) self.label_12 = QtGui.QLabel(self.page_2) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_5.addWidget(self.label_12, 1, 0, 1, 1) self.besselOrderSpin = QtGui.QSpinBox(self.page_2) self.besselOrderSpin.setMinimum(1) self.besselOrderSpin.setMaximum(16) self.besselOrderSpin.setProperty("value", 4) self.besselOrderSpin.setObjectName(_fromUtf8("besselOrderSpin")) self.gridLayout_5.addWidget(self.besselOrderSpin, 1, 1, 1, 1) self.filterStack.addWidget(self.page_2) self.page_5 = QtGui.QWidget() self.page_5.setObjectName(_fromUtf8("page_5")) self.gridLayout_4 = QtGui.QGridLayout(self.page_5) self.gridLayout_4.setMargin(0) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_14 = QtGui.QLabel(self.page_5) self.label_14.setObjectName(_fromUtf8("label_14")) self.gridLayout_4.addWidget(self.label_14, 0, 1, 1, 1) self.label_15 = QtGui.QLabel(self.page_5) self.label_15.setObjectName(_fromUtf8("label_15")) self.gridLayout_4.addWidget(self.label_15, 0, 2, 1, 2) self.label_5 = QtGui.QLabel(self.page_5) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_4.addWidget(self.label_5, 1, 0, 1, 1) self.butterworthPassbandSpin = SpinBox(self.page_5) self.butterworthPassbandSpin.setProperty("value", 1.0) self.butterworthPassbandSpin.setObjectName(_fromUtf8("butterworthPassbandSpin")) self.gridLayout_4.addWidget(self.butterworthPassbandSpin, 1, 1, 1, 1) self.butterworthPassDBSpin = QtGui.QDoubleSpinBox(self.page_5) self.butterworthPassDBSpin.setProperty("value", 2.0) self.butterworthPassDBSpin.setObjectName(_fromUtf8("butterworthPassDBSpin")) self.gridLayout_4.addWidget(self.butterworthPassDBSpin, 1, 2, 1, 2) self.label_6 = QtGui.QLabel(self.page_5) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_4.addWidget(self.label_6, 2, 0, 1, 1) self.butterworthStopbandSpin = SpinBox(self.page_5) self.butterworthStopbandSpin.setProperty("value", 2.0) self.butterworthStopbandSpin.setObjectName(_fromUtf8("butterworthStopbandSpin")) self.gridLayout_4.addWidget(self.butterworthStopbandSpin, 2, 1, 1, 1) self.butterworthStopDBSpin = QtGui.QDoubleSpinBox(self.page_5) self.butterworthStopDBSpin.setProperty("value", 10.0) self.butterworthStopDBSpin.setObjectName(_fromUtf8("butterworthStopDBSpin")) self.gridLayout_4.addWidget(self.butterworthStopDBSpin, 2, 2, 1, 2) self.filterStack.addWidget(self.page_5) self.gridLayout_3.addWidget(self.filterStack, 3, 1, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_3.addWidget(self.label_8, 4, 0, 1, 1) self.downsampleSpin = QtGui.QSpinBox(self.groupBox) self.downsampleSpin.setMinimum(1) self.downsampleSpin.setMaximum(10000000) self.downsampleSpin.setProperty("value", 1) self.downsampleSpin.setObjectName(_fromUtf8("downsampleSpin")) self.gridLayout_3.addWidget(self.downsampleSpin, 4, 1, 1, 1) self.gridLayout.addWidget(self.groupBox, 3, 0, 1, 3) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setMargin(0) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.groupBox_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.rateSpin = SpinBox(self.groupBox_2) self.rateSpin.setMinimum(0.01) self.rateSpin.setMaximum(1000000.0) self.rateSpin.setProperty("value", 40000.0) self.rateSpin.setObjectName(_fromUtf8("rateSpin")) self.gridLayout_2.addWidget(self.rateSpin, 0, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) self.periodSpin = SpinBox(self.groupBox_2) self.periodSpin.setMinimum(1.0) self.periodSpin.setMaximum(10000.0) self.periodSpin.setProperty("value", 1.0) self.periodSpin.setObjectName(_fromUtf8("periodSpin")) self.gridLayout_2.addWidget(self.periodSpin, 1, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 2, 0, 1, 3) self.retranslateUi(Form) self.denoiseStack.setCurrentIndex(0) self.filterStack.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label_2.setText(_translate("Form", "Trigger", None)) self.triggerDevList.setItemText(0, _translate("Form", "No Trigger", None)) self.label_3.setText(_translate("Form", "Points", None)) self.numPtsLabel.setText(_translate("Form", "0", None)) self.groupBox.setTitle(_translate("Form", "Post-processing", None)) self.label_7.setText(_translate("Form", "Denoise", None)) self.denoiseCombo.setToolTip(_translate("Form", "Denoise method to use.\n" "- Pointwise method compares each point to its neighbors", None)) self.denoiseCombo.setItemText(0, _translate("Form", "None", None)) self.denoiseCombo.setItemText(1, _translate("Form", "Pointwise", None)) self.label_13.setText(_translate("Form", "Threshold", None)) self.denoiseThresholdSpin.setToolTip(_translate("Form", "Minimum threshold of detected noise events", None)) self.label_16.setText(_translate("Form", "Width", None)) self.denoiseWidthSpin.setToolTip(_translate("Form", "Maximum radius of detected noise events", None)) self.label_9.setText(_translate("Form", "Filter", None)) self.filterCombo.setToolTip(_translate("Form", "Lowpass filter types to use for AI channels. Filter is applied before downsampling.", None)) self.filterCombo.setItemText(0, _translate("Form", "None", None)) self.filterCombo.setItemText(1, _translate("Form", "Bessel", None)) self.filterCombo.setItemText(2, _translate("Form", "Butterworth", None)) self.label_11.setText(_translate("Form", "Cutoff", None)) self.label_12.setText(_translate("Form", "Order", None)) self.label_14.setText(_translate("Form", "Freq.", None)) self.label_15.setText(_translate("Form", "dB", None)) self.label_5.setText(_translate("Form", "pass", None)) self.butterworthPassbandSpin.setToolTip(_translate("Form", "Upper frequency of butterworth passband in multiples of maximum nyquist frequency (sample rate / 2).", None)) self.butterworthPassDBSpin.setToolTip(_translate("Form", "Maximum amplitude of loss in passband", None)) self.label_6.setText(_translate("Form", "stop", None)) self.butterworthStopbandSpin.setToolTip(_translate("Form", "Lower frequency of butterworth stopband in multiples of maximum nyquist frequency (sample rate / 2).", None)) self.butterworthStopDBSpin.setToolTip(_translate("Form", "Minimum amplitude of loss in stopband", None)) self.label_8.setText(_translate("Form", "Downsample", None)) self.downsampleSpin.setToolTip(_translate("Form", "Amount DAQ data should be downsampled before returning results (output data is not downsampled before sending to the DAQ). DI/DO data is downsampled by subsampling, AI/AO data is downsampled by averaging. ", None)) self.downsampleSpin.setSuffix(_translate("Form", "x", None)) self.groupBox_2.setTitle(_translate("Form", "Timing", None)) self.label.setText(_translate("Form", "Rate", None)) self.rateSpin.setSuffix(_translate("Form", " Hz", None)) self.label_4.setText(_translate("Form", "Period", None)) self.periodSpin.setSuffix(_translate("Form", " μs", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(240, 194) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setMargin(0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.holdingSpin = SpinBox(Form) self.holdingSpin.setObjectName(_fromUtf8("holdingSpin")) self.gridLayout.addWidget(self.holdingSpin, 2, 2, 1, 1) self.scaleSpin = SpinBox(Form) self.scaleSpin.setObjectName(_fromUtf8("scaleSpin")) self.gridLayout.addWidget(self.scaleSpin, 3, 2, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.inputRadio = QtGui.QRadioButton(Form) self.inputRadio.setObjectName(_fromUtf8("inputRadio")) self.horizontalLayout_2.addWidget(self.inputRadio) self.outputRadio = QtGui.QRadioButton(Form) self.outputRadio.setObjectName(_fromUtf8("outputRadio")) self.horizontalLayout_2.addWidget(self.outputRadio) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 3, 1, 2) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.channelCombo = QtGui.QComboBox(Form) self.channelCombo.setObjectName(_fromUtf8("channelCombo")) self.horizontalLayout.addWidget(self.channelCombo) self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 3) self.scaleDefaultBtn = QtGui.QPushButton(Form) self.scaleDefaultBtn.setObjectName(_fromUtf8("scaleDefaultBtn")) self.gridLayout.addWidget(self.scaleDefaultBtn, 3, 3, 1, 1) self.offsetDefaultBtn = QtGui.QPushButton(Form) self.offsetDefaultBtn.setObjectName(_fromUtf8("offsetDefaultBtn")) self.gridLayout.addWidget(self.offsetDefaultBtn, 4, 3, 1, 1) self.invertCheck = QtGui.QCheckBox(Form) self.invertCheck.setObjectName(_fromUtf8("invertCheck")) self.gridLayout.addWidget(self.invertCheck, 2, 3, 1, 1) self.nameLabel = QtGui.QLabel(Form) font = QtGui.QFont() font.setPointSize(13) font.setBold(True) font.setWeight(75) self.nameLabel.setFont(font) self.nameLabel.setObjectName(_fromUtf8("nameLabel")) self.gridLayout.addWidget(self.nameLabel, 0, 0, 1, 3) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 5, 3, 1, 1) self.offsetSpin = SpinBox(Form) self.offsetSpin.setObjectName(_fromUtf8("offsetSpin")) self.gridLayout.addWidget(self.offsetSpin, 4, 2, 1, 1) self.holdingLabel = QtGui.QLabel(Form) self.holdingLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.holdingLabel.setObjectName(_fromUtf8("holdingLabel")) self.gridLayout.addWidget(self.holdingLabel, 2, 1, 1, 1) self.scaleLabel = QtGui.QLabel(Form) self.scaleLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.scaleLabel.setObjectName(_fromUtf8("scaleLabel")) self.gridLayout.addWidget(self.scaleLabel, 3, 1, 1, 1) self.offsetLabel = QtGui.QLabel(Form) self.offsetLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.offsetLabel.setObjectName(_fromUtf8("offsetLabel")) self.gridLayout.addWidget(self.offsetLabel, 4, 1, 1, 1) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 2, 0, 3, 1) spacerItem3 = QtGui.QSpacerItem(42, 1, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem3, 2, 4, 3, 1) self.gridLayout.setColumnStretch(1, 1) self.gridLayout.setColumnStretch(2, 2) self.gridLayout.setColumnStretch(3, 2) self.gridLayout.setColumnStretch(4, 4) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8)) self.inputRadio.setText(QtGui.QApplication.translate("Form", "Input", None, QtGui.QApplication.UnicodeUTF8)) self.outputRadio.setText(QtGui.QApplication.translate("Form", "Output", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Form", "Channel:", None, QtGui.QApplication.UnicodeUTF8)) self.scaleDefaultBtn.setText(QtGui.QApplication.translate("Form", "Default", None, QtGui.QApplication.UnicodeUTF8)) self.offsetDefaultBtn.setText(QtGui.QApplication.translate("Form", "Default", None, QtGui.QApplication.UnicodeUTF8)) self.invertCheck.setText(QtGui.QApplication.translate("Form", "Invert", None, QtGui.QApplication.UnicodeUTF8)) self.nameLabel.setText(QtGui.QApplication.translate("Form", "ChannelName", None, QtGui.QApplication.UnicodeUTF8)) self.holdingLabel.setText(QtGui.QApplication.translate("Form", "Holding:", None, QtGui.QApplication.UnicodeUTF8)) self.scaleLabel.setText(QtGui.QApplication.translate("Form", "Scale:", None, QtGui.QApplication.UnicodeUTF8)) self.offsetLabel.setText(QtGui.QApplication.translate("Form", "Offset:", None, QtGui.QApplication.UnicodeUTF8))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(384, 221) self.gridLayout_4 = QtGui.QGridLayout(Form) self.gridLayout_4.setMargin(3) self.gridLayout_4.setSpacing(3) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_3.setMargin(5) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.widget = QtGui.QWidget(self.groupBox_2) self.widget.setMinimumSize(QtCore.QSize(100, 0)) self.widget.setObjectName(_fromUtf8("widget")) self.gridLayout = QtGui.QGridLayout(self.widget) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(10) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_5 = QtGui.QLabel(self.widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1) self.xPosLabel = QtGui.QLabel(self.widget) self.xPosLabel.setObjectName(_fromUtf8("xPosLabel")) self.gridLayout.addWidget(self.xPosLabel, 0, 1, 1, 1) self.label_7 = QtGui.QLabel(self.widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth()) self.label_7.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.yPosLabel = QtGui.QLabel(self.widget) self.yPosLabel.setObjectName(_fromUtf8("yPosLabel")) self.gridLayout.addWidget(self.yPosLabel, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) self.label_8.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_8.setFont(font) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.zPosLabel = QtGui.QLabel(self.widget) self.zPosLabel.setObjectName(_fromUtf8("zPosLabel")) self.gridLayout.addWidget(self.zPosLabel, 2, 1, 1, 1) self.updatePosBtn = QtGui.QPushButton(self.widget) self.updatePosBtn.setObjectName(_fromUtf8("updatePosBtn")) self.gridLayout.addWidget(self.updatePosBtn, 3, 0, 1, 2) self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 1) self.joyBtn = JoystickButton(self.groupBox_2) self.joyBtn.setMinimumSize(QtCore.QSize(50, 50)) self.joyBtn.setText(_fromUtf8("")) self.joyBtn.setObjectName(_fromUtf8("joyBtn")) self.gridLayout_3.addWidget(self.joyBtn, 0, 2, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.fineStepRadio = QtGui.QRadioButton(self.groupBox_2) self.fineStepRadio.setChecked(True) self.fineStepRadio.setObjectName(_fromUtf8("fineStepRadio")) self.horizontalLayout_2.addWidget(self.fineStepRadio) self.coarseStepRadio = QtGui.QRadioButton(self.groupBox_2) self.coarseStepRadio.setObjectName(_fromUtf8("coarseStepRadio")) self.horizontalLayout_2.addWidget(self.coarseStepRadio) self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 3) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_3.addItem(spacerItem, 0, 1, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1) self.limitsGroup = QtGui.QGroupBox(Form) self.limitsGroup.setAlignment(QtCore.Qt.AlignCenter) self.limitsGroup.setCheckable(False) self.limitsGroup.setObjectName(_fromUtf8("limitsGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.limitsGroup) self.gridLayout_2.setSpacing(1) self.gridLayout_2.setContentsMargins(3, 0, 3, 0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.xMinBtn = QtGui.QPushButton(self.limitsGroup) self.xMinBtn.setMaximumSize(QtCore.QSize(70, 20)) self.xMinBtn.setObjectName(_fromUtf8("xMinBtn")) self.gridLayout_2.addWidget(self.xMinBtn, 0, 3, 1, 1) self.xMinLabel = QtGui.QLabel(self.limitsGroup) self.xMinLabel.setObjectName(_fromUtf8("xMinLabel")) self.gridLayout_2.addWidget(self.xMinLabel, 0, 4, 1, 1) self.xMaxLabel = QtGui.QLabel(self.limitsGroup) self.xMaxLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.xMaxLabel.setObjectName(_fromUtf8("xMaxLabel")) self.gridLayout_2.addWidget(self.xMaxLabel, 0, 6, 1, 1) self.xMaxBtn = QtGui.QPushButton(self.limitsGroup) self.xMaxBtn.setMaximumSize(QtCore.QSize(70, 20)) self.xMaxBtn.setObjectName(_fromUtf8("xMaxBtn")) self.gridLayout_2.addWidget(self.xMaxBtn, 0, 7, 1, 1) self.yMinBtn = QtGui.QPushButton(self.limitsGroup) self.yMinBtn.setMaximumSize(QtCore.QSize(70, 20)) self.yMinBtn.setObjectName(_fromUtf8("yMinBtn")) self.gridLayout_2.addWidget(self.yMinBtn, 1, 3, 1, 1) self.yMinLabel = QtGui.QLabel(self.limitsGroup) self.yMinLabel.setObjectName(_fromUtf8("yMinLabel")) self.gridLayout_2.addWidget(self.yMinLabel, 1, 4, 1, 1) self.label_3 = QtGui.QLabel(self.limitsGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 1, 5, 1, 1) self.yMaxLabel = QtGui.QLabel(self.limitsGroup) self.yMaxLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.yMaxLabel.setObjectName(_fromUtf8("yMaxLabel")) self.gridLayout_2.addWidget(self.yMaxLabel, 1, 6, 1, 1) self.yMaxBtn = QtGui.QPushButton(self.limitsGroup) self.yMaxBtn.setMaximumSize(QtCore.QSize(70, 20)) self.yMaxBtn.setObjectName(_fromUtf8("yMaxBtn")) self.gridLayout_2.addWidget(self.yMaxBtn, 1, 7, 1, 1) self.zMinBtn = QtGui.QPushButton(self.limitsGroup) self.zMinBtn.setMaximumSize(QtCore.QSize(70, 20)) self.zMinBtn.setObjectName(_fromUtf8("zMinBtn")) self.gridLayout_2.addWidget(self.zMinBtn, 2, 3, 1, 1) self.zMinLabel = QtGui.QLabel(self.limitsGroup) self.zMinLabel.setObjectName(_fromUtf8("zMinLabel")) self.gridLayout_2.addWidget(self.zMinLabel, 2, 4, 1, 1) self.label = QtGui.QLabel(self.limitsGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 5, 1, 1) self.zMaxLabel = QtGui.QLabel(self.limitsGroup) self.zMaxLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.zMaxLabel.setObjectName(_fromUtf8("zMaxLabel")) self.gridLayout_2.addWidget(self.zMaxLabel, 2, 6, 1, 1) self.zMaxBtn = QtGui.QPushButton(self.limitsGroup) self.zMaxBtn.setMaximumSize(QtCore.QSize(70, 20)) self.zMaxBtn.setObjectName(_fromUtf8("zMaxBtn")) self.gridLayout_2.addWidget(self.zMaxBtn, 2, 7, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_4 = QtGui.QLabel(self.limitsGroup) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_3.addWidget(self.label_4) self.maxSpeedSpin = SpinBox(self.limitsGroup) self.maxSpeedSpin.setObjectName(_fromUtf8("maxSpeedSpin")) self.horizontalLayout_3.addWidget(self.maxSpeedSpin) self.gridLayout_2.addLayout(self.horizontalLayout_3, 3, 3, 1, 5) self.xMinCheck = QtGui.QCheckBox(self.limitsGroup) self.xMinCheck.setText(_fromUtf8("")) self.xMinCheck.setObjectName(_fromUtf8("xMinCheck")) self.gridLayout_2.addWidget(self.xMinCheck, 0, 0, 1, 1) self.yMinCheck = QtGui.QCheckBox(self.limitsGroup) self.yMinCheck.setText(_fromUtf8("")) self.yMinCheck.setObjectName(_fromUtf8("yMinCheck")) self.gridLayout_2.addWidget(self.yMinCheck, 1, 0, 1, 1) self.zMinCheck = QtGui.QCheckBox(self.limitsGroup) self.zMinCheck.setText(_fromUtf8("")) self.zMinCheck.setObjectName(_fromUtf8("zMinCheck")) self.gridLayout_2.addWidget(self.zMinCheck, 2, 0, 1, 1) self.xMaxCheck = QtGui.QCheckBox(self.limitsGroup) self.xMaxCheck.setText(_fromUtf8("")) self.xMaxCheck.setObjectName(_fromUtf8("xMaxCheck")) self.gridLayout_2.addWidget(self.xMaxCheck, 0, 9, 1, 1) self.yMaxCheck = QtGui.QCheckBox(self.limitsGroup) self.yMaxCheck.setText(_fromUtf8("")) self.yMaxCheck.setObjectName(_fromUtf8("yMaxCheck")) self.gridLayout_2.addWidget(self.yMaxCheck, 1, 9, 1, 1) self.zMaxCheck = QtGui.QCheckBox(self.limitsGroup) self.zMaxCheck.setText(_fromUtf8("")) self.zMaxCheck.setObjectName(_fromUtf8("zMaxCheck")) self.gridLayout_2.addWidget(self.zMaxCheck, 2, 9, 1, 1) self.label_2 = QtGui.QLabel(self.limitsGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 0, 5, 1, 1) self.xMinSpin = SpinBox(self.limitsGroup) self.xMinSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.xMinSpin.setDecimals(3) self.xMinSpin.setMinimum(-25000.0) self.xMinSpin.setMaximum(25000.0) self.xMinSpin.setSingleStep(0.1) self.xMinSpin.setObjectName(_fromUtf8("xMinSpin")) self.gridLayout_2.addWidget(self.xMinSpin, 0, 2, 1, 1) self.yMinSpin = SpinBox(self.limitsGroup) self.yMinSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.yMinSpin.setDecimals(3) self.yMinSpin.setMinimum(-25000.0) self.yMinSpin.setMaximum(25000.0) self.yMinSpin.setSingleStep(0.1) self.yMinSpin.setObjectName(_fromUtf8("yMinSpin")) self.gridLayout_2.addWidget(self.yMinSpin, 1, 2, 1, 1) self.zMinSpin = SpinBox(self.limitsGroup) self.zMinSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.zMinSpin.setDecimals(3) self.zMinSpin.setMinimum(-25000.0) self.zMinSpin.setMaximum(25000.0) self.zMinSpin.setSingleStep(0.1) self.zMinSpin.setObjectName(_fromUtf8("zMinSpin")) self.gridLayout_2.addWidget(self.zMinSpin, 2, 2, 1, 1) self.xMaxSpin = SpinBox(self.limitsGroup) self.xMaxSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.xMaxSpin.setDecimals(3) self.xMaxSpin.setMinimum(-25000.0) self.xMaxSpin.setMaximum(25000.0) self.xMaxSpin.setSingleStep(0.1) self.xMaxSpin.setObjectName(_fromUtf8("xMaxSpin")) self.gridLayout_2.addWidget(self.xMaxSpin, 0, 8, 1, 1) self.yMaxSpin = SpinBox(self.limitsGroup) self.yMaxSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.yMaxSpin.setDecimals(3) self.yMaxSpin.setMinimum(-25000.0) self.yMaxSpin.setMaximum(25000.0) self.yMaxSpin.setSingleStep(0.1) self.yMaxSpin.setObjectName(_fromUtf8("yMaxSpin")) self.gridLayout_2.addWidget(self.yMaxSpin, 1, 8, 1, 1) self.zMaxSpin = SpinBox(self.limitsGroup) self.zMaxSpin.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.zMaxSpin.setDecimals(3) self.zMaxSpin.setMinimum(-25000.0) self.zMaxSpin.setMaximum(25000.0) self.zMaxSpin.setSingleStep(0.1) self.zMaxSpin.setObjectName(_fromUtf8("zMaxSpin")) self.gridLayout_2.addWidget(self.zMaxSpin, 2, 8, 1, 1) self.gridLayout_4.addWidget(self.limitsGroup, 1, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_4.addItem(spacerItem1, 1, 1, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.groupBox_2.setTitle(_translate("Form", "Position", None)) self.label_5.setText(_translate("Form", "X", None)) self.xPosLabel.setText(_translate("Form", "0", None)) self.label_7.setText(_translate("Form", "Y", None)) self.yPosLabel.setText(_translate("Form", "0", None)) self.label_8.setText(_translate("Form", "Z", None)) self.zPosLabel.setText(_translate("Form", "0", None)) self.updatePosBtn.setText(_translate("Form", "Update", None)) self.fineStepRadio.setText(_translate("Form", "Fine step", None)) self.coarseStepRadio.setText(_translate("Form", "Coarse step", None)) self.limitsGroup.setTitle(_translate("Form", "Limits", None)) self.xMinBtn.setText(_translate("Form", "get Current", None)) self.xMinLabel.setText(_translate("Form", "<--", None)) self.xMaxLabel.setText(_translate("Form", "-->", None)) self.xMaxBtn.setText(_translate("Form", "get Current", None)) self.yMinBtn.setText(_translate("Form", "get Current", None)) self.yMinLabel.setText(_translate("Form", "<--", None)) self.label_3.setText(_translate("Form", "Y", None)) self.yMaxLabel.setText(_translate("Form", "-->", None)) self.yMaxBtn.setText(_translate("Form", "get Current", None)) self.zMinBtn.setText(_translate("Form", "get Current", None)) self.zMinLabel.setText(_translate("Form", "<--", None)) self.label.setText(_translate("Form", "Z", None)) self.zMaxLabel.setText(_translate("Form", "-->", None)) self.zMaxBtn.setText(_translate("Form", "get Current", None)) self.label_4.setText(_translate("Form", "Max Speed", None)) self.label_2.setText(_translate("Form", "X", None)) self.xMinSpin.setSuffix(_translate("Form", " mm", None)) self.yMinSpin.setSuffix(_translate("Form", " mm", None)) self.zMinSpin.setSuffix(_translate("Form", " mm", None)) self.xMaxSpin.setSuffix(_translate("Form", " mm", None)) self.yMaxSpin.setSuffix(_translate("Form", " mm", None)) self.zMaxSpin.setSuffix(_translate("Form", " mm", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(267, 343) self.verticalLayout_2 = QtGui.QVBoxLayout(Form) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.splitter_3 = QtGui.QSplitter(Form) self.splitter_3.setOrientation(QtCore.Qt.Vertical) self.splitter_3.setObjectName(_fromUtf8("splitter_3")) self.splitter_2 = QtGui.QSplitter(self.splitter_3) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName(_fromUtf8("splitter_2")) self.layoutWidget = QtGui.QWidget(self.splitter_2) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox_2 = QtGui.QGroupBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setTitle(_fromUtf8("")) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setMargin(0) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.vcPulseCheck = QtGui.QCheckBox(self.groupBox_2) self.vcPulseCheck.setChecked(True) self.vcPulseCheck.setObjectName(_fromUtf8("vcPulseCheck")) self.gridLayout_2.addWidget(self.vcPulseCheck, 2, 1, 1, 1) self.vcHoldCheck = QtGui.QCheckBox(self.groupBox_2) self.vcHoldCheck.setObjectName(_fromUtf8("vcHoldCheck")) self.gridLayout_2.addWidget(self.vcHoldCheck, 3, 1, 1, 1) self.icPulseCheck = QtGui.QCheckBox(self.groupBox_2) self.icPulseCheck.setChecked(True) self.icPulseCheck.setObjectName(_fromUtf8("icPulseCheck")) self.gridLayout_2.addWidget(self.icPulseCheck, 4, 1, 1, 1) self.icHoldCheck = QtGui.QCheckBox(self.groupBox_2) self.icHoldCheck.setObjectName(_fromUtf8("icHoldCheck")) self.gridLayout_2.addWidget(self.icHoldCheck, 6, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 7, 1, 1, 1) self.label = QtGui.QLabel(self.groupBox_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 10, 0, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 9, 0, 1, 2) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 8, 0, 1, 2) self.icModeRadio = QtGui.QRadioButton(self.groupBox_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.gridLayout_2.addWidget(self.icModeRadio, 4, 0, 1, 1) self.vcModeRadio = QtGui.QRadioButton(self.groupBox_2) self.vcModeRadio.setChecked(True) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.gridLayout_2.addWidget(self.vcModeRadio, 2, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.startBtn = QtGui.QPushButton(self.groupBox_2) self.startBtn.setCheckable(True) self.startBtn.setObjectName(_fromUtf8("startBtn")) self.horizontalLayout.addWidget(self.startBtn) self.recordBtn = QtGui.QPushButton(self.groupBox_2) self.recordBtn.setCheckable(True) self.recordBtn.setObjectName(_fromUtf8("recordBtn")) self.horizontalLayout.addWidget(self.recordBtn) self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 3) self.icPulseSpin = SpinBox(self.groupBox_2) self.icPulseSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.icPulseSpin.setObjectName(_fromUtf8("icPulseSpin")) self.gridLayout_2.addWidget(self.icPulseSpin, 4, 2, 1, 1) self.pulseTimeSpin = SpinBox(self.groupBox_2) self.pulseTimeSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.pulseTimeSpin.setSingleStep(1.0) self.pulseTimeSpin.setObjectName(_fromUtf8("pulseTimeSpin")) self.gridLayout_2.addWidget(self.pulseTimeSpin, 9, 2, 1, 1) self.delayTimeSpin = SpinBox(self.groupBox_2) self.delayTimeSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.delayTimeSpin.setMinimum(1.0) self.delayTimeSpin.setMaximum(10000.0) self.delayTimeSpin.setSingleStep(1.0) self.delayTimeSpin.setObjectName(_fromUtf8("delayTimeSpin")) self.gridLayout_2.addWidget(self.delayTimeSpin, 8, 2, 1, 1) self.vcPulseSpin = SpinBox(self.groupBox_2) self.vcPulseSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.vcPulseSpin.setObjectName(_fromUtf8("vcPulseSpin")) self.gridLayout_2.addWidget(self.vcPulseSpin, 2, 2, 1, 1) self.icHoldSpin = SpinBox(self.groupBox_2) self.icHoldSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.icHoldSpin.setObjectName(_fromUtf8("icHoldSpin")) self.gridLayout_2.addWidget(self.icHoldSpin, 5, 2, 2, 1) self.cycleTimeSpin = SpinBox(self.groupBox_2) self.cycleTimeSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.cycleTimeSpin.setSingleStep(1.0) self.cycleTimeSpin.setProperty("value", 0.2) self.cycleTimeSpin.setObjectName(_fromUtf8("cycleTimeSpin")) self.gridLayout_2.addWidget(self.cycleTimeSpin, 10, 2, 1, 1) self.vcHoldSpin = SpinBox(self.groupBox_2) self.vcHoldSpin.setMaximumSize(QtCore.QSize(70, 16777215)) self.vcHoldSpin.setObjectName(_fromUtf8("vcHoldSpin")) self.gridLayout_2.addWidget(self.vcHoldSpin, 3, 2, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setContentsMargins(0, -1, -1, -1) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.bathModeBtn = QtGui.QToolButton(self.groupBox_2) self.bathModeBtn.setObjectName(_fromUtf8("bathModeBtn")) self.horizontalLayout_2.addWidget(self.bathModeBtn) self.patchModeBtn = QtGui.QToolButton(self.groupBox_2) self.patchModeBtn.setObjectName(_fromUtf8("patchModeBtn")) self.horizontalLayout_2.addWidget(self.patchModeBtn) self.cellModeBtn = QtGui.QToolButton(self.groupBox_2) self.cellModeBtn.setObjectName(_fromUtf8("cellModeBtn")) self.horizontalLayout_2.addWidget(self.cellModeBtn) self.monitorModeBtn = QtGui.QToolButton(self.groupBox_2) self.monitorModeBtn.setObjectName(_fromUtf8("monitorModeBtn")) self.horizontalLayout_2.addWidget(self.monitorModeBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 3) self.label_2 = QtGui.QLabel(self.groupBox_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 11, 0, 1, 1) self.averageSpin = QtGui.QSpinBox(self.groupBox_2) self.averageSpin.setMinimum(1) self.averageSpin.setMaximum(100) self.averageSpin.setProperty("value", 1) self.averageSpin.setObjectName(_fromUtf8("averageSpin")) self.gridLayout_2.addWidget(self.averageSpin, 11, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox = QtGui.QGroupBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setTitle(_fromUtf8("")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.formLayout = QtGui.QFormLayout(self.groupBox) self.formLayout.setMargin(0) self.formLayout.setSpacing(0) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.resetBtn = QtGui.QToolButton(self.groupBox) self.resetBtn.setObjectName(_fromUtf8("resetBtn")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.resetBtn) self.inputResistanceCheck = QtGui.QCheckBox(self.groupBox) font = QtGui.QFont() font.setPointSize(11) self.inputResistanceCheck.setFont(font) self.inputResistanceCheck.setChecked(True) self.inputResistanceCheck.setObjectName(_fromUtf8("inputResistanceCheck")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.inputResistanceCheck) self.inputResistanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.inputResistanceLabel.setFont(font) self.inputResistanceLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.inputResistanceLabel.setObjectName(_fromUtf8("inputResistanceLabel")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.inputResistanceLabel) self.accessResistanceCheck = QtGui.QCheckBox(self.groupBox) font = QtGui.QFont() font.setPointSize(11) self.accessResistanceCheck.setFont(font) self.accessResistanceCheck.setObjectName(_fromUtf8("accessResistanceCheck")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.accessResistanceCheck) self.accessResistanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.accessResistanceLabel.setFont(font) self.accessResistanceLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.accessResistanceLabel.setObjectName(_fromUtf8("accessResistanceLabel")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.accessResistanceLabel) self.restingPotentialCheck = QtGui.QCheckBox(self.groupBox) font = QtGui.QFont() font.setPointSize(11) self.restingPotentialCheck.setFont(font) self.restingPotentialCheck.setObjectName(_fromUtf8("restingPotentialCheck")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.restingPotentialCheck) self.restingPotentialLabel = QtGui.QLabel(self.groupBox) self.restingPotentialLabel.setMinimumSize(QtCore.QSize(140, 0)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.restingPotentialLabel.setFont(font) self.restingPotentialLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.restingPotentialLabel.setObjectName(_fromUtf8("restingPotentialLabel")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.restingPotentialLabel) self.restingCurrentCheck = QtGui.QCheckBox(self.groupBox) self.restingCurrentCheck.setObjectName(_fromUtf8("restingCurrentCheck")) self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.restingCurrentCheck) self.restingCurrentLabel = QtGui.QLabel(self.groupBox) self.restingCurrentLabel.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.restingCurrentLabel.setFont(font) self.restingCurrentLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.restingCurrentLabel.setObjectName(_fromUtf8("restingCurrentLabel")) self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.restingCurrentLabel) self.capacitanceCheck = QtGui.QCheckBox(self.groupBox) self.capacitanceCheck.setObjectName(_fromUtf8("capacitanceCheck")) self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.capacitanceCheck) self.capacitanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.capacitanceLabel.setFont(font) self.capacitanceLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.capacitanceLabel.setObjectName(_fromUtf8("capacitanceLabel")) self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.capacitanceLabel) self.fitErrorCheck = QtGui.QCheckBox(self.groupBox) self.fitErrorCheck.setObjectName(_fromUtf8("fitErrorCheck")) self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.fitErrorCheck) self.fitErrorLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.fitErrorLabel.setFont(font) self.fitErrorLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.fitErrorLabel.setObjectName(_fromUtf8("fitErrorLabel")) self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.fitErrorLabel) self.drawFitCheck = QtGui.QCheckBox(self.groupBox) self.drawFitCheck.setChecked(True) self.drawFitCheck.setObjectName(_fromUtf8("drawFitCheck")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.drawFitCheck) self.verticalLayout.addWidget(self.groupBox) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.patchPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.patchPlot.sizePolicy().hasHeightForWidth()) self.patchPlot.setSizePolicy(sizePolicy) self.patchPlot.setObjectName(_fromUtf8("patchPlot")) self.commandPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.commandPlot.sizePolicy().hasHeightForWidth()) self.commandPlot.setSizePolicy(sizePolicy) self.commandPlot.setObjectName(_fromUtf8("commandPlot")) self.layoutWidget1 = QtGui.QWidget(self.splitter_3) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.plotLayout = QtGui.QVBoxLayout(self.layoutWidget1) self.plotLayout.setSpacing(0) self.plotLayout.setMargin(0) self.plotLayout.setObjectName(_fromUtf8("plotLayout")) self.verticalLayout_2.addWidget(self.splitter_3) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Patch", None)) self.vcPulseCheck.setText(_translate("Form", "Pulse", None)) self.vcHoldCheck.setText(_translate("Form", "Hold", None)) self.icPulseCheck.setText(_translate("Form", "Pulse", None)) self.icHoldCheck.setText(_translate("Form", "Hold", None)) self.label.setText(_translate("Form", "Cycle Time", None)) self.label_3.setText(_translate("Form", "Pulse Length", None)) self.label_4.setText(_translate("Form", "Delay Length", None)) self.icModeRadio.setText(_translate("Form", "IC", None)) self.vcModeRadio.setText(_translate("Form", "VC", None)) self.startBtn.setText(_translate("Form", "Start", None)) self.recordBtn.setText(_translate("Form", "Record", None)) self.icPulseSpin.setSuffix(_translate("Form", "A", None)) self.pulseTimeSpin.setSuffix(_translate("Form", "s", None)) self.delayTimeSpin.setSuffix(_translate("Form", "s", None)) self.vcPulseSpin.setSuffix(_translate("Form", "V", None)) self.icHoldSpin.setSuffix(_translate("Form", "A", None)) self.cycleTimeSpin.setSuffix(_translate("Form", "s", None)) self.vcHoldSpin.setSuffix(_translate("Form", "V", None)) self.bathModeBtn.setText(_translate("Form", "Bath", None)) self.patchModeBtn.setText(_translate("Form", "Patch", None)) self.cellModeBtn.setText(_translate("Form", "Cell", None)) self.monitorModeBtn.setText(_translate("Form", "Monitor", None)) self.label_2.setText(_translate("Form", "Average", None)) self.resetBtn.setText(_translate("Form", "Reset History", None)) self.inputResistanceCheck.setText(_translate("Form", "Input Res.", None)) self.inputResistanceLabel.setText(_translate("Form", "0", None)) self.accessResistanceCheck.setText(_translate("Form", "Access Res.", None)) self.accessResistanceLabel.setText(_translate("Form", "0", None)) self.restingPotentialCheck.setText(_translate("Form", "Rest Potential", None)) self.restingPotentialLabel.setText(_translate("Form", "0", None)) self.restingCurrentCheck.setText(_translate("Form", "Rest Current", None)) self.restingCurrentLabel.setText(_translate("Form", "0", None)) self.capacitanceCheck.setText(_translate("Form", "Capacitance", None)) self.capacitanceLabel.setText(_translate("Form", "0", None)) self.fitErrorCheck.setText(_translate("Form", "Fit Error", None)) self.fitErrorLabel.setText(_translate("Form", "0", None)) self.drawFitCheck.setText(_translate("Form", "Draw Fit", None))
class Ui_MultiPatch(object): def setupUi(self, MultiPatch): MultiPatch.setObjectName(_fromUtf8("MultiPatch")) MultiPatch.resize(496, 283) self.gridLayout = QtGui.QGridLayout(MultiPatch) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.recordBtn = QtGui.QPushButton(MultiPatch) self.recordBtn.setCheckable(True) self.recordBtn.setObjectName(_fromUtf8("recordBtn")) self.gridLayout.addWidget(self.recordBtn, 7, 0, 1, 1) self.coarseSearchBtn = QtGui.QPushButton(MultiPatch) self.coarseSearchBtn.setObjectName(_fromUtf8("coarseSearchBtn")) self.gridLayout.addWidget(self.coarseSearchBtn, 1, 0, 1, 1) self.idleBtn = QtGui.QPushButton(MultiPatch) self.idleBtn.setObjectName(_fromUtf8("idleBtn")) self.gridLayout.addWidget(self.idleBtn, 2, 0, 1, 1) self.fineSearchBtn = QtGui.QPushButton(MultiPatch) self.fineSearchBtn.setObjectName(_fromUtf8("fineSearchBtn")) self.gridLayout.addWidget(self.fineSearchBtn, 1, 1, 1, 1) self.approachBtn = QtGui.QPushButton(MultiPatch) self.approachBtn.setObjectName(_fromUtf8("approachBtn")) self.gridLayout.addWidget(self.approachBtn, 2, 2, 1, 1) self.sealBtn = QtGui.QPushButton(MultiPatch) self.sealBtn.setObjectName(_fromUtf8("sealBtn")) self.gridLayout.addWidget(self.sealBtn, 4, 0, 1, 1) self.homeBtn = QtGui.QPushButton(MultiPatch) self.homeBtn.setObjectName(_fromUtf8("homeBtn")) self.gridLayout.addWidget(self.homeBtn, 0, 0, 1, 1) self.setTargetBtn = QtGui.QPushButton(MultiPatch) self.setTargetBtn.setCheckable(True) self.setTargetBtn.setObjectName(_fromUtf8("setTargetBtn")) self.gridLayout.addWidget(self.setTargetBtn, 0, 1, 1, 1) self.calibrateBtn = QtGui.QPushButton(MultiPatch) self.calibrateBtn.setCheckable(True) self.calibrateBtn.setObjectName(_fromUtf8("calibrateBtn")) self.gridLayout.addWidget(self.calibrateBtn, 1, 2, 1, 1) self.aboveTargetBtn = QtGui.QPushButton(MultiPatch) self.aboveTargetBtn.setObjectName(_fromUtf8("aboveTargetBtn")) self.gridLayout.addWidget(self.aboveTargetBtn, 2, 1, 1, 1) self.autoCalibrateBtn = QtGui.QPushButton(MultiPatch) self.autoCalibrateBtn.setObjectName(_fromUtf8("autoCalibrateBtn")) self.gridLayout.addWidget(self.autoCalibrateBtn, 0, 2, 1, 1) self.hideMarkersBtn = QtGui.QPushButton(MultiPatch) self.hideMarkersBtn.setCheckable(True) self.hideMarkersBtn.setObjectName(_fromUtf8("hideMarkersBtn")) self.gridLayout.addWidget(self.hideMarkersBtn, 4, 1, 1, 1) self.fastBtn = QtGui.QPushButton(MultiPatch) self.fastBtn.setCheckable(True) self.fastBtn.setObjectName(_fromUtf8("fastBtn")) self.gridLayout.addWidget(self.fastBtn, 3, 2, 1, 1) self.slowBtn = QtGui.QPushButton(MultiPatch) self.slowBtn.setCheckable(True) self.slowBtn.setObjectName(_fromUtf8("slowBtn")) self.gridLayout.addWidget(self.slowBtn, 3, 0, 1, 1) self.breakInBtn = QtGui.QPushButton(MultiPatch) self.breakInBtn.setObjectName(_fromUtf8("breakInBtn")) self.gridLayout.addWidget(self.breakInBtn, 4, 2, 1, 1) self.stepInBtn = QtGui.QPushButton(MultiPatch) self.stepInBtn.setObjectName(_fromUtf8("stepInBtn")) self.gridLayout.addWidget(self.stepInBtn, 5, 0, 1, 1) self.stepOutBtn = QtGui.QPushButton(MultiPatch) self.stepOutBtn.setObjectName(_fromUtf8("stepOutBtn")) self.gridLayout.addWidget(self.stepOutBtn, 5, 1, 1, 1) self.moveInBtn = QtGui.QPushButton(MultiPatch) self.moveInBtn.setObjectName(_fromUtf8("moveInBtn")) self.gridLayout.addWidget(self.moveInBtn, 5, 2, 1, 1) self.label = QtGui.QLabel(MultiPatch) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.stepSizeSpin = SpinBox(MultiPatch) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.stepSizeSpin.sizePolicy().hasHeightForWidth()) self.stepSizeSpin.setSizePolicy(sizePolicy) self.stepSizeSpin.setObjectName(_fromUtf8("stepSizeSpin")) self.gridLayout.addWidget(self.stepSizeSpin, 6, 1, 1, 1) self.toTargetBtn = QtGui.QPushButton(MultiPatch) self.toTargetBtn.setObjectName(_fromUtf8("toTargetBtn")) self.gridLayout.addWidget(self.toTargetBtn, 6, 2, 1, 1) self.resetBtn = QtGui.QPushButton(MultiPatch) self.resetBtn.setObjectName(_fromUtf8("resetBtn")) self.gridLayout.addWidget(self.resetBtn, 7, 2, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 8, 1, 1, 1) self.matrixWidget = QtGui.QWidget(MultiPatch) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.matrixWidget.sizePolicy().hasHeightForWidth()) self.matrixWidget.setSizePolicy(sizePolicy) self.matrixWidget.setObjectName(_fromUtf8("matrixWidget")) self.matrixLayout = QtGui.QGridLayout(self.matrixWidget) self.matrixLayout.setMargin(0) self.matrixLayout.setSpacing(0) self.matrixLayout.setObjectName(_fromUtf8("matrixLayout")) self.gridLayout.addWidget(self.matrixWidget, 0, 3, 9, 1) self.reSealBtn = QtGui.QPushButton(MultiPatch) self.reSealBtn.setObjectName(_fromUtf8("reSealBtn")) self.gridLayout.addWidget(self.reSealBtn, 7, 1, 1, 1) self.retranslateUi(MultiPatch) QtCore.QMetaObject.connectSlotsByName(MultiPatch) def retranslateUi(self, MultiPatch): MultiPatch.setWindowTitle(_translate("MultiPatch", "Form", None)) self.recordBtn.setText(_translate("MultiPatch", "Record", None)) self.coarseSearchBtn.setText( _translate("MultiPatch", "Coarse Search", None)) self.idleBtn.setText(_translate("MultiPatch", "Idle", None)) self.fineSearchBtn.setText( _translate("MultiPatch", "Fine Search", None)) self.approachBtn.setText(_translate("MultiPatch", "Approach", None)) self.sealBtn.setText(_translate("MultiPatch", "Seal", None)) self.homeBtn.setText(_translate("MultiPatch", "Home", None)) self.setTargetBtn.setText(_translate("MultiPatch", "Set target", None)) self.calibrateBtn.setText(_translate("MultiPatch", "Calibrate", None)) self.aboveTargetBtn.setText( _translate("MultiPatch", "Above target", None)) self.autoCalibrateBtn.setText( _translate("MultiPatch", "Auto cal.", None)) self.hideMarkersBtn.setText( _translate("MultiPatch", "Hide Markers", None)) self.fastBtn.setText(_translate("MultiPatch", "Fast", None)) self.slowBtn.setText(_translate("MultiPatch", "Slow", None)) self.breakInBtn.setText(_translate("MultiPatch", "Break In", None)) self.stepInBtn.setText(_translate("MultiPatch", "Step in", None)) self.stepOutBtn.setText(_translate("MultiPatch", "Step out", None)) self.moveInBtn.setText(_translate("MultiPatch", "Move in", None)) self.label.setText(_translate("MultiPatch", "Step size", None)) self.toTargetBtn.setText(_translate("MultiPatch", "To target", None)) self.resetBtn.setText(_translate("MultiPatch", "Reset History", None)) self.reSealBtn.setText(_translate("MultiPatch", "ReSeal", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(342, 103) self.gridLayout_3 = QtWidgets.QGridLayout(Form) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setSpacing(3) self.gridLayout_3.setObjectName("gridLayout_3") self.pauseBtn = QtWidgets.QPushButton(Form) self.pauseBtn.setCheckable(True) self.pauseBtn.setObjectName("pauseBtn") self.gridLayout_3.addWidget(self.pauseBtn, 1, 0, 1, 1) self.deviceCombo = ComboBox(Form) self.deviceCombo.setObjectName("deviceCombo") self.gridLayout_3.addWidget(self.deviceCombo, 2, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 4, 1, 1, 1) self.statusLabel = QtWidgets.QLabel(Form) self.statusLabel.setText("") self.statusLabel.setObjectName("statusLabel") self.gridLayout_3.addWidget(self.statusLabel, 3, 0, 1, 3) self.startBtn = QtWidgets.QPushButton(Form) self.startBtn.setCheckable(True) self.startBtn.setObjectName("startBtn") self.gridLayout_3.addWidget(self.startBtn, 0, 0, 1, 1) self.timelapseGroup = QtWidgets.QGroupBox(Form) self.timelapseGroup.setCheckable(True) self.timelapseGroup.setChecked(False) self.timelapseGroup.setObjectName("timelapseGroup") self.gridLayout_2 = QtWidgets.QGridLayout(self.timelapseGroup) self.gridLayout_2.setContentsMargins(3, 3, 3, 3) self.gridLayout_2.setSpacing(3) self.gridLayout_2.setObjectName("gridLayout_2") self.intervalSpin = SpinBox(self.timelapseGroup) self.intervalSpin.setMinimumSize(Qt.QSize(75, 0)) self.intervalSpin.setObjectName("intervalSpin") self.gridLayout_2.addWidget(self.intervalSpin, 0, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.timelapseGroup) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.timelapseGroup) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1) self.iterationsSpin = QtWidgets.QSpinBox(self.timelapseGroup) self.iterationsSpin.setObjectName("iterationsSpin") self.gridLayout_2.addWidget(self.iterationsSpin, 1, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem1, 2, 0, 1, 1) self.gridLayout_3.addWidget(self.timelapseGroup, 0, 1, 3, 1) self.zStackGroup = QtWidgets.QGroupBox(Form) self.zStackGroup.setCheckable(True) self.zStackGroup.setChecked(False) self.zStackGroup.setObjectName("zStackGroup") self.gridLayout = QtWidgets.QGridLayout(self.zStackGroup) self.gridLayout.setContentsMargins(3, 3, 3, 3) self.gridLayout.setHorizontalSpacing(3) self.gridLayout.setVerticalSpacing(1) self.gridLayout.setObjectName("gridLayout") self.zSpacingSpin = SpinBox(self.zStackGroup) self.zSpacingSpin.setObjectName("zSpacingSpin") self.gridLayout.addWidget(self.zSpacingSpin, 3, 2, 1, 1) self.zStartSpin = SpinBox(self.zStackGroup) self.zStartSpin.setMinimumSize(Qt.QSize(75, 0)) self.zStartSpin.setObjectName("zStartSpin") self.gridLayout.addWidget(self.zStartSpin, 0, 2, 1, 1) self.label = QtWidgets.QLabel(self.zStackGroup) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 3, 0, 1, 2) self.zEndSpin = SpinBox(self.zStackGroup) self.zEndSpin.setObjectName("zEndSpin") self.gridLayout.addWidget(self.zEndSpin, 1, 2, 2, 1) self.label_3 = QtWidgets.QLabel(self.zStackGroup) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label_2 = QtWidgets.QLabel(self.zStackGroup) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 2, 1) self.setStartBtn = QtWidgets.QPushButton(self.zStackGroup) self.setStartBtn.setMaximumSize(Qt.QSize(15, 20)) self.setStartBtn.setObjectName("setStartBtn") self.gridLayout.addWidget(self.setStartBtn, 0, 1, 1, 1) self.setEndBtn = QtWidgets.QPushButton(self.zStackGroup) self.setEndBtn.setMaximumSize(Qt.QSize(15, 20)) self.setEndBtn.setObjectName("setEndBtn") self.gridLayout.addWidget(self.setEndBtn, 2, 1, 1, 1) self.gridLayout_3.addWidget(self.zStackGroup, 0, 2, 3, 1) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.pauseBtn.setToolTip(_translate("Form", "<html><head/><body><p>Pause the sequence acquisition.</p><p>Click again to resume.</p></body></html>")) self.pauseBtn.setText(_translate("Form", "Pause")) self.deviceCombo.setToolTip(_translate("Form", "<html><head/><body><p>The imaging device to use during the sequence acquisition.</p></body></html>")) self.startBtn.setToolTip(_translate("Form", "<html><head/><body><p>Begin acquiring a sequence of images (timelapse, z-stack, or both).</p><p>Click again to interrupt a running sequence.</p></body></html>")) self.startBtn.setText(_translate("Form", "Start")) self.timelapseGroup.setToolTip(_translate("Form", "<html><head/><body><p>Enable/disable acquiring a timelapse series of images or z-stacks.</p></body></html>")) self.timelapseGroup.setTitle(_translate("Form", "Timelapse")) self.intervalSpin.setToolTip(_translate("Form", "<html><head/><body><p>The minimum time interval to wait between the start of subsequent acquisitions.</p><p>The actual interval may be longer if the image or z-stack acquisition is slow.</p></body></html>")) self.label_4.setText(_translate("Form", "Interval")) self.label_5.setText(_translate("Form", "Iterations")) self.iterationsSpin.setToolTip(_translate("Form", "<html><head/><body><p>The number of images or (z-stacks, if enabled) to acquire in the timelapse series.</p><p>If the values is "inf", then the acquisition will continue until the user clicks Stop.</p></body></html>")) self.iterationsSpin.setSpecialValueText(_translate("Form", "inf")) self.zStackGroup.setToolTip(_translate("Form", "<html><head/><body><p>Enable or disable acquiring a stack of images along a range of focus depths.</p><p>The entire stack is acquired once per timelapse iteration.</p></body></html>")) self.zStackGroup.setTitle(_translate("Form", "Z Stack")) self.zSpacingSpin.setToolTip(_translate("Form", "<html><head/><body><p>Spacing petween frames in the z-stack.</p></body></html>")) self.zStartSpin.setToolTip(_translate("Form", "<html><head/><body><p>The focus depth at the beginning of the z-stack.</p></body></html>")) self.label.setText(_translate("Form", "Spacing")) self.zEndSpin.setToolTip(_translate("Form", "<html><head/><body><p>The approximate focus depth at the end of the z-stack.</p><p>(The exact end point is the start point plus a multiple of the spacing)</p></body></html>")) self.label_3.setText(_translate("Form", "End")) self.label_2.setText(_translate("Form", "Start")) self.setStartBtn.setToolTip(_translate("Form", "<html><head/><body><p>Use the current focus depth as the z-stack start point.</p></body></html>")) self.setStartBtn.setText(_translate("Form", ">")) self.setEndBtn.setToolTip(_translate("Form", "<html><head/><body><p>Use the current focus depth as the z-stack endpoint.</p></body></html>")) self.setEndBtn.setText(_translate("Form", ">"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(302, 110) Form.setAutoFillBackground(True) self.verticalLayout_3 = QtGui.QVBoxLayout(Form) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.splitter_2 = QtGui.QSplitter(Form) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName(_fromUtf8("splitter_2")) self.layoutWidget = QtGui.QWidget(self.splitter_2) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.frame_2 = QtGui.QFrame(self.layoutWidget) self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtGui.QFrame.Raised) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.frame_2) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.icModeRadio = QtGui.QRadioButton(self.frame_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.horizontalLayout_2.addWidget(self.icModeRadio) self.i0ModeRadio = QtGui.QRadioButton(self.frame_2) self.i0ModeRadio.setChecked(True) self.i0ModeRadio.setObjectName(_fromUtf8("i0ModeRadio")) self.horizontalLayout_2.addWidget(self.i0ModeRadio) self.vcModeRadio = QtGui.QRadioButton(self.frame_2) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.horizontalLayout_2.addWidget(self.vcModeRadio) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.holdingCheck = QtGui.QCheckBox(self.frame_2) self.holdingCheck.setObjectName(_fromUtf8("holdingCheck")) self.horizontalLayout_6.addWidget(self.holdingCheck) self.holdingSpin = SpinBox(self.frame_2) self.holdingSpin.setEnabled(False) self.holdingSpin.setMinimum(-1000000.0) self.holdingSpin.setMaximum(1000000.0) self.holdingSpin.setObjectName(_fromUtf8("holdingSpin")) self.horizontalLayout_6.addWidget(self.holdingSpin) self.horizontalLayout_2.addLayout(self.horizontalLayout_6) self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 2) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.primarySignalCheck = QtGui.QCheckBox(self.layoutWidget) self.primarySignalCheck.setObjectName(_fromUtf8("primarySignalCheck")) self.gridLayout.addWidget(self.primarySignalCheck, 0, 0, 1, 1) self.secondarySignalCheck = QtGui.QCheckBox(self.layoutWidget) self.secondarySignalCheck.setObjectName(_fromUtf8("secondarySignalCheck")) self.gridLayout.addWidget(self.secondarySignalCheck, 1, 0, 1, 1) self.primarySignalCombo = QtGui.QComboBox(self.layoutWidget) self.primarySignalCombo.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.primarySignalCombo.sizePolicy().hasHeightForWidth()) self.primarySignalCombo.setSizePolicy(sizePolicy) self.primarySignalCombo.setMinimumSize(QtCore.QSize(40, 0)) self.primarySignalCombo.setObjectName(_fromUtf8("primarySignalCombo")) self.primarySignalCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.primarySignalCombo, 0, 1, 1, 1) self.secondarySignalCombo = QtGui.QComboBox(self.layoutWidget) self.secondarySignalCombo.setEnabled(False) self.secondarySignalCombo.setMinimumSize(QtCore.QSize(40, 0)) self.secondarySignalCombo.setObjectName(_fromUtf8("secondarySignalCombo")) self.secondarySignalCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.secondarySignalCombo, 1, 1, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 2, 1) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setSpacing(0) self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.secondaryGainCheck = QtGui.QCheckBox(self.layoutWidget) self.secondaryGainCheck.setObjectName(_fromUtf8("secondaryGainCheck")) self.horizontalLayout_7.addWidget(self.secondaryGainCheck) self.secondaryGainSpin = QtGui.QSpinBox(self.layoutWidget) self.secondaryGainSpin.setEnabled(False) self.secondaryGainSpin.setMaximum(100000) self.secondaryGainSpin.setObjectName(_fromUtf8("secondaryGainSpin")) self.horizontalLayout_7.addWidget(self.secondaryGainSpin) self.gridLayout_2.addLayout(self.horizontalLayout_7, 2, 1, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setSpacing(0) self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.primaryGainCheck = QtGui.QCheckBox(self.layoutWidget) self.primaryGainCheck.setObjectName(_fromUtf8("primaryGainCheck")) self.horizontalLayout_5.addWidget(self.primaryGainCheck) self.primaryGainSpin = QtGui.QSpinBox(self.layoutWidget) self.primaryGainSpin.setEnabled(False) self.primaryGainSpin.setMaximum(100000) self.primaryGainSpin.setObjectName(_fromUtf8("primaryGainSpin")) self.horizontalLayout_5.addWidget(self.primaryGainSpin) self.gridLayout_2.addLayout(self.horizontalLayout_5, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_2) self.frame = QtGui.QFrame(self.layoutWidget) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.waveGeneratorLabel = QtGui.QLabel(self.frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waveGeneratorLabel.sizePolicy().hasHeightForWidth()) self.waveGeneratorLabel.setSizePolicy(sizePolicy) self.waveGeneratorLabel.setObjectName(_fromUtf8("waveGeneratorLabel")) self.verticalLayout.addWidget(self.waveGeneratorLabel) self.waveGeneratorWidget = StimGenerator(self.frame) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.waveGeneratorWidget.sizePolicy().hasHeightForWidth()) self.waveGeneratorWidget.setSizePolicy(sizePolicy) self.waveGeneratorWidget.setObjectName(_fromUtf8("waveGeneratorWidget")) self.verticalLayout.addWidget(self.waveGeneratorWidget) self.verticalLayout_2.addWidget(self.frame) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.topPlotWidget = PlotWidget(self.splitter) self.topPlotWidget.setObjectName(_fromUtf8("topPlotWidget")) self.bottomPlotWidget = PlotWidget(self.splitter) self.bottomPlotWidget.setObjectName(_fromUtf8("bottomPlotWidget")) self.verticalLayout_3.addWidget(self.splitter_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.icModeRadio.setText(_translate("Form", "IC", None)) self.i0ModeRadio.setText(_translate("Form", "I=0", None)) self.vcModeRadio.setText(_translate("Form", "VC", None)) self.holdingCheck.setText(_translate("Form", "Holding", None)) self.primarySignalCheck.setText(_translate("Form", "Primary:", None)) self.secondarySignalCheck.setText(_translate("Form", "Secondary:", None)) self.primarySignalCombo.setItemText(0, _translate("Form", "MembranePotential", None)) self.secondarySignalCombo.setItemText(0, _translate("Form", "MembraneCurrent", None)) self.secondaryGainCheck.setText(_translate("Form", "Set Gain", None)) self.primaryGainCheck.setText(_translate("Form", "Set Gain", None)) self.waveGeneratorLabel.setText(_translate("Form", "Command Function (A)", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(315, 464) self.verticalLayout_2 = QtGui.QVBoxLayout(Form) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.splitter_3 = QtGui.QSplitter(Form) self.splitter_3.setOrientation(QtCore.Qt.Vertical) self.splitter_3.setObjectName(_fromUtf8("splitter_3")) self.splitter_2 = QtGui.QSplitter(self.splitter_3) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName(_fromUtf8("splitter_2")) self.layoutWidget = QtGui.QWidget(self.splitter_2) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox_2 = QtGui.QGroupBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setTitle(_fromUtf8("")) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setMargin(0) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.vcPulseCheck = QtGui.QCheckBox(self.groupBox_2) self.vcPulseCheck.setChecked(True) self.vcPulseCheck.setObjectName(_fromUtf8("vcPulseCheck")) self.gridLayout_2.addWidget(self.vcPulseCheck, 2, 1, 1, 1) self.vcHoldCheck = QtGui.QCheckBox(self.groupBox_2) self.vcHoldCheck.setObjectName(_fromUtf8("vcHoldCheck")) self.gridLayout_2.addWidget(self.vcHoldCheck, 3, 1, 1, 1) self.icPulseCheck = QtGui.QCheckBox(self.groupBox_2) self.icPulseCheck.setChecked(True) self.icPulseCheck.setObjectName(_fromUtf8("icPulseCheck")) self.gridLayout_2.addWidget(self.icPulseCheck, 4, 1, 1, 1) self.icHoldCheck = QtGui.QCheckBox(self.groupBox_2) self.icHoldCheck.setObjectName(_fromUtf8("icHoldCheck")) self.gridLayout_2.addWidget(self.icHoldCheck, 6, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 7, 1, 1, 1) self.label = QtGui.QLabel(self.groupBox_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 10, 0, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 9, 0, 1, 2) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 8, 0, 1, 2) self.icModeRadio = QtGui.QRadioButton(self.groupBox_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.gridLayout_2.addWidget(self.icModeRadio, 4, 0, 1, 1) self.vcModeRadio = QtGui.QRadioButton(self.groupBox_2) self.vcModeRadio.setChecked(True) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.gridLayout_2.addWidget(self.vcModeRadio, 2, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.startBtn = QtGui.QPushButton(self.groupBox_2) self.startBtn.setCheckable(True) self.startBtn.setObjectName(_fromUtf8("startBtn")) self.horizontalLayout.addWidget(self.startBtn) self.recordBtn = QtGui.QPushButton(self.groupBox_2) self.recordBtn.setCheckable(True) self.recordBtn.setObjectName(_fromUtf8("recordBtn")) self.horizontalLayout.addWidget(self.recordBtn) self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 3) self.icPulseSpin = SpinBox(self.groupBox_2) self.icPulseSpin.setObjectName(_fromUtf8("icPulseSpin")) self.gridLayout_2.addWidget(self.icPulseSpin, 4, 2, 1, 1) self.pulseTimeSpin = SpinBox(self.groupBox_2) self.pulseTimeSpin.setSingleStep(1.0) self.pulseTimeSpin.setObjectName(_fromUtf8("pulseTimeSpin")) self.gridLayout_2.addWidget(self.pulseTimeSpin, 9, 2, 1, 1) self.delayTimeSpin = SpinBox(self.groupBox_2) self.delayTimeSpin.setMinimum(1.0) self.delayTimeSpin.setMaximum(10000.0) self.delayTimeSpin.setSingleStep(1.0) self.delayTimeSpin.setObjectName(_fromUtf8("delayTimeSpin")) self.gridLayout_2.addWidget(self.delayTimeSpin, 8, 2, 1, 1) self.vcPulseSpin = SpinBox(self.groupBox_2) self.vcPulseSpin.setObjectName(_fromUtf8("vcPulseSpin")) self.gridLayout_2.addWidget(self.vcPulseSpin, 2, 2, 1, 1) self.icHoldSpin = SpinBox(self.groupBox_2) self.icHoldSpin.setObjectName(_fromUtf8("icHoldSpin")) self.gridLayout_2.addWidget(self.icHoldSpin, 5, 2, 2, 1) self.cycleTimeSpin = SpinBox(self.groupBox_2) self.cycleTimeSpin.setSingleStep(1.0) self.cycleTimeSpin.setProperty("value", 0.2) self.cycleTimeSpin.setObjectName(_fromUtf8("cycleTimeSpin")) self.gridLayout_2.addWidget(self.cycleTimeSpin, 10, 2, 1, 1) self.vcHoldSpin = SpinBox(self.groupBox_2) self.vcHoldSpin.setObjectName(_fromUtf8("vcHoldSpin")) self.gridLayout_2.addWidget(self.vcHoldSpin, 3, 2, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setContentsMargins(0, -1, -1, -1) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.bathModeBtn = QtGui.QToolButton(self.groupBox_2) self.bathModeBtn.setObjectName(_fromUtf8("bathModeBtn")) self.horizontalLayout_2.addWidget(self.bathModeBtn) self.patchModeBtn = QtGui.QToolButton(self.groupBox_2) self.patchModeBtn.setObjectName(_fromUtf8("patchModeBtn")) self.horizontalLayout_2.addWidget(self.patchModeBtn) self.cellModeBtn = QtGui.QToolButton(self.groupBox_2) self.cellModeBtn.setObjectName(_fromUtf8("cellModeBtn")) self.horizontalLayout_2.addWidget(self.cellModeBtn) self.monitorModeBtn = QtGui.QToolButton(self.groupBox_2) self.monitorModeBtn.setObjectName(_fromUtf8("monitorModeBtn")) self.horizontalLayout_2.addWidget(self.monitorModeBtn) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 3) self.label_2 = QtGui.QLabel(self.groupBox_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 11, 0, 1, 1) self.averageSpin = QtGui.QSpinBox(self.groupBox_2) self.averageSpin.setMinimum(1) self.averageSpin.setMaximum(100) self.averageSpin.setProperty("value", 1) self.averageSpin.setObjectName(_fromUtf8("averageSpin")) self.gridLayout_2.addWidget(self.averageSpin, 11, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox = QtGui.QGroupBox(self.layoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setTitle(_fromUtf8("")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout = QtGui.QGridLayout(self.groupBox) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(5) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.restingPotentialCheck = QtGui.QCheckBox(self.groupBox) self.restingPotentialCheck.setText(_fromUtf8("")) self.restingPotentialCheck.setObjectName( _fromUtf8("restingPotentialCheck")) self.gridLayout.addWidget(self.restingPotentialCheck, 3, 0, 1, 1) self.restingPotentialLabel = QtGui.QLabel(self.groupBox) self.restingPotentialLabel.setMinimumSize(QtCore.QSize(140, 0)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.restingPotentialLabel.setFont(font) self.restingPotentialLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.restingPotentialLabel.setObjectName( _fromUtf8("restingPotentialLabel")) self.gridLayout.addWidget(self.restingPotentialLabel, 3, 2, 1, 1) self.restingCurrentCheck = QtGui.QCheckBox(self.groupBox) self.restingCurrentCheck.setText(_fromUtf8("")) self.restingCurrentCheck.setObjectName( _fromUtf8("restingCurrentCheck")) self.gridLayout.addWidget(self.restingCurrentCheck, 4, 0, 1, 1) self.fitErrorCheck = QtGui.QCheckBox(self.groupBox) self.fitErrorCheck.setText(_fromUtf8("")) self.fitErrorCheck.setObjectName(_fromUtf8("fitErrorCheck")) self.gridLayout.addWidget(self.fitErrorCheck, 6, 0, 1, 1) self.fitErrorLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.fitErrorLabel.setFont(font) self.fitErrorLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fitErrorLabel.setObjectName(_fromUtf8("fitErrorLabel")) self.gridLayout.addWidget(self.fitErrorLabel, 6, 2, 1, 1) self.drawFitCheck = QtGui.QCheckBox(self.groupBox) self.drawFitCheck.setChecked(True) self.drawFitCheck.setObjectName(_fromUtf8("drawFitCheck")) self.gridLayout.addWidget(self.drawFitCheck, 0, 2, 1, 1) self.accessResistanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.accessResistanceLabel.setFont(font) self.accessResistanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.accessResistanceLabel.setObjectName( _fromUtf8("accessResistanceLabel")) self.gridLayout.addWidget(self.accessResistanceLabel, 2, 2, 1, 1) self.inputResistanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.inputResistanceLabel.setFont(font) self.inputResistanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.inputResistanceLabel.setObjectName( _fromUtf8("inputResistanceLabel")) self.gridLayout.addWidget(self.inputResistanceLabel, 1, 2, 1, 1) self.accessResistanceCheck = QtGui.QCheckBox(self.groupBox) self.accessResistanceCheck.setText(_fromUtf8("")) self.accessResistanceCheck.setObjectName( _fromUtf8("accessResistanceCheck")) self.gridLayout.addWidget(self.accessResistanceCheck, 2, 0, 1, 1) self.restingCurrentLabel = QtGui.QLabel(self.groupBox) self.restingCurrentLabel.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.restingCurrentLabel.setFont(font) self.restingCurrentLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.restingCurrentLabel.setObjectName( _fromUtf8("restingCurrentLabel")) self.gridLayout.addWidget(self.restingCurrentLabel, 4, 2, 1, 1) self.inputResistanceCheck = QtGui.QCheckBox(self.groupBox) self.inputResistanceCheck.setMaximumSize(QtCore.QSize(20, 16777215)) self.inputResistanceCheck.setText(_fromUtf8("")) self.inputResistanceCheck.setChecked(True) self.inputResistanceCheck.setObjectName( _fromUtf8("inputResistanceCheck")) self.gridLayout.addWidget(self.inputResistanceCheck, 1, 0, 1, 1) self.capacitanceCheck = QtGui.QCheckBox(self.groupBox) self.capacitanceCheck.setText(_fromUtf8("")) self.capacitanceCheck.setObjectName(_fromUtf8("capacitanceCheck")) self.gridLayout.addWidget(self.capacitanceCheck, 5, 0, 1, 1) self.capacitanceLabel = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.capacitanceLabel.setFont(font) self.capacitanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.capacitanceLabel.setObjectName(_fromUtf8("capacitanceLabel")) self.gridLayout.addWidget(self.capacitanceLabel, 5, 2, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 1, 1, 1, 1) self.resetBtn = QtGui.QToolButton(self.groupBox) self.resetBtn.setObjectName(_fromUtf8("resetBtn")) self.gridLayout.addWidget(self.resetBtn, 0, 0, 1, 2) self.label_6 = QtGui.QLabel(self.groupBox) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 2, 1, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 3, 1, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 4, 1, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 5, 1, 1, 1) self.label_10 = QtGui.QLabel(self.groupBox) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 6, 1, 1, 1) self.verticalLayout.addWidget(self.groupBox) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.patchPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.patchPlot.sizePolicy().hasHeightForWidth()) self.patchPlot.setSizePolicy(sizePolicy) self.patchPlot.setObjectName(_fromUtf8("patchPlot")) self.commandPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.commandPlot.sizePolicy().hasHeightForWidth()) self.commandPlot.setSizePolicy(sizePolicy) self.commandPlot.setObjectName(_fromUtf8("commandPlot")) self.layoutWidget1 = QtGui.QWidget(self.splitter_3) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.plotLayout = QtGui.QVBoxLayout(self.layoutWidget1) self.plotLayout.setSpacing(0) self.plotLayout.setMargin(0) self.plotLayout.setObjectName(_fromUtf8("plotLayout")) self.verticalLayout_2.addWidget(self.splitter_3) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Patch", None)) self.vcPulseCheck.setText(_translate("Form", "Pulse", None)) self.vcHoldCheck.setText(_translate("Form", "Hold", None)) self.icPulseCheck.setText(_translate("Form", "Pulse", None)) self.icHoldCheck.setText(_translate("Form", "Hold", None)) self.label.setText(_translate("Form", "Cycle Time", None)) self.label_3.setText(_translate("Form", "Pulse Length", None)) self.label_4.setText(_translate("Form", "Delay Length", None)) self.icModeRadio.setText(_translate("Form", "IC", None)) self.vcModeRadio.setText(_translate("Form", "VC", None)) self.startBtn.setText(_translate("Form", "Start", None)) self.recordBtn.setText(_translate("Form", "Record", None)) self.icPulseSpin.setSuffix(_translate("Form", "A", None)) self.pulseTimeSpin.setSuffix(_translate("Form", "s", None)) self.delayTimeSpin.setSuffix(_translate("Form", "s", None)) self.vcPulseSpin.setSuffix(_translate("Form", "V", None)) self.icHoldSpin.setSuffix(_translate("Form", "A", None)) self.cycleTimeSpin.setSuffix(_translate("Form", "s", None)) self.vcHoldSpin.setSuffix(_translate("Form", "V", None)) self.bathModeBtn.setText(_translate("Form", "Bath", None)) self.patchModeBtn.setText(_translate("Form", "Patch", None)) self.cellModeBtn.setText(_translate("Form", "Cell", None)) self.monitorModeBtn.setText(_translate("Form", "Monitor", None)) self.label_2.setText(_translate("Form", "Average", None)) self.restingPotentialLabel.setText(_translate("Form", "0", None)) self.fitErrorLabel.setText(_translate("Form", "0", None)) self.drawFitCheck.setText(_translate("Form", "Draw Fit", None)) self.accessResistanceLabel.setText(_translate("Form", "0", None)) self.inputResistanceLabel.setText(_translate("Form", "0", None)) self.restingCurrentLabel.setText(_translate("Form", "0", None)) self.capacitanceLabel.setText(_translate("Form", "0", None)) self.label_5.setText(_translate("Form", "Input Res.", None)) self.resetBtn.setText(_translate("Form", "Reset History", None)) self.label_6.setText(_translate("Form", "Access Res.", None)) self.label_7.setText(_translate("Form", "Rest Potential", None)) self.label_8.setText(_translate("Form", "Rest Current", None)) self.label_9.setText(_translate("Form", "Capacitance", None)) self.label_10.setText(_translate("Form", "Fit Error", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(208, 349) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.rateAverageSpin = SpinBox(Form) self.rateAverageSpin.setObjectName(_fromUtf8("rateAverageSpin")) self.gridLayout.addWidget(self.rateAverageSpin, 4, 1, 1, 1) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 4, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.poisMaxCheck = QtGui.QCheckBox(self.groupBox_2) self.poisMaxCheck.setObjectName(_fromUtf8("poisMaxCheck")) self.gridLayout_3.addWidget(self.poisMaxCheck, 2, 0, 1, 1) self.poisMaxAmpCheck = QtGui.QCheckBox(self.groupBox_2) self.poisMaxAmpCheck.setObjectName(_fromUtf8("poisMaxAmpCheck")) self.gridLayout_3.addWidget(self.poisMaxAmpCheck, 3, 0, 1, 1) self.chargeTransferCheck = QtGui.QCheckBox(self.groupBox_2) self.chargeTransferCheck.setObjectName(_fromUtf8("chargeTransferCheck")) self.gridLayout_3.addWidget(self.chargeTransferCheck, 0, 0, 1, 1) self.eventCountCheck = QtGui.QCheckBox(self.groupBox_2) self.eventCountCheck.setObjectName(_fromUtf8("eventCountCheck")) self.gridLayout_3.addWidget(self.eventCountCheck, 1, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 3, 0, 1, 2) self.groupBox = QtGui.QGroupBox(Form) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.excitatoryRadio = QtGui.QRadioButton(self.groupBox) self.excitatoryRadio.setObjectName(_fromUtf8("excitatoryRadio")) self.gridLayout_2.addWidget(self.excitatoryRadio, 0, 0, 1, 1) self.fitErrorSpin = SpinBox(self.groupBox) self.fitErrorSpin.setObjectName(_fromUtf8("fitErrorSpin")) self.gridLayout_2.addWidget(self.fitErrorSpin, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.inhibitoryRadio = QtGui.QRadioButton(self.groupBox) self.inhibitoryRadio.setObjectName(_fromUtf8("inhibitoryRadio")) self.gridLayout_2.addWidget(self.inhibitoryRadio, 0, 1, 1, 1) self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 2) self.groupBox_3 = QtGui.QGroupBox(Form) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_3 = QtGui.QLabel(self.groupBox_3) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1) self.thresholdSpin = SpinBox(self.groupBox_3) self.thresholdSpin.setObjectName(_fromUtf8("thresholdSpin")) self.gridLayout_4.addWidget(self.thresholdSpin, 0, 1, 1, 1) self.detectionHistogram = PlotWidget(self.groupBox_3) self.detectionHistogram.setObjectName(_fromUtf8("detectionHistogram")) self.gridLayout_4.addWidget(self.detectionHistogram, 1, 0, 1, 2) self.gridLayout.addWidget(self.groupBox_3, 5, 0, 1, 2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label.setText(_translate("Form", "Rate Average Window", None)) self.groupBox_2.setTitle(_translate("Form", "Detection Methods", None)) self.poisMaxCheck.setText(_translate("Form", "Poisson max probability", None)) self.poisMaxAmpCheck.setText(_translate("Form", "Poisson max + amplitude", None)) self.chargeTransferCheck.setText(_translate("Form", "Charge transfer z-score", None)) self.eventCountCheck.setText(_translate("Form", "Event Count", None)) self.groupBox.setTitle(_translate("Form", "Event Selection", None)) self.excitatoryRadio.setText(_translate("Form", "Excitatory", None)) self.label_2.setText(_translate("Form", "Fit Error Limit", None)) self.inhibitoryRadio.setText(_translate("Form", "Inhibitory", None)) self.label_3.setText(_translate("Form", "Detection Threshold", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(242, 159) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setMargin(0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.spotSizeLabel = QtGui.QLabel(Form) self.spotSizeLabel.setObjectName(_fromUtf8("spotSizeLabel")) self.gridLayout.addWidget(self.spotSizeLabel, 0, 0, 1, 1) self.sizeFromCalibrationRadio = QtGui.QRadioButton(Form) self.sizeFromCalibrationRadio.setChecked(True) self.sizeFromCalibrationRadio.setObjectName( _fromUtf8("sizeFromCalibrationRadio")) self.gridLayout.addWidget(self.sizeFromCalibrationRadio, 1, 0, 1, 3) self.sizeCustomRadio = QtGui.QRadioButton(Form) self.sizeCustomRadio.setObjectName(_fromUtf8("sizeCustomRadio")) self.gridLayout.addWidget(self.sizeCustomRadio, 2, 0, 1, 1) self.sizeSpin = SpinBox(Form) self.sizeSpin.setSuffix(_fromUtf8("")) self.sizeSpin.setMinimum(0.0) self.sizeSpin.setMaximum(100000.0) self.sizeSpin.setSingleStep(1e-06) self.sizeSpin.setProperty("value", 0.0) self.sizeSpin.setObjectName(_fromUtf8("sizeSpin")) self.gridLayout.addWidget(self.sizeSpin, 2, 1, 1, 2) self.loadSpotImagesBtn = QtGui.QPushButton(Form) self.loadSpotImagesBtn.setObjectName(_fromUtf8("loadSpotImagesBtn")) self.gridLayout.addWidget(self.loadSpotImagesBtn, 6, 0, 1, 3) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 7, 0, 1, 1) self.spotFrameSpin = QtGui.QSpinBox(Form) self.spotFrameSpin.setProperty("value", 1) self.spotFrameSpin.setObjectName(_fromUtf8("spotFrameSpin")) self.gridLayout.addWidget(self.spotFrameSpin, 7, 1, 1, 2) self.bgFrameCheck = QtGui.QCheckBox(Form) self.bgFrameCheck.setChecked(True) self.bgFrameCheck.setObjectName(_fromUtf8("bgFrameCheck")) self.gridLayout.addWidget(self.bgFrameCheck, 8, 0, 1, 1) self.bgFrameSpin = QtGui.QSpinBox(Form) self.bgFrameSpin.setObjectName(_fromUtf8("bgFrameSpin")) self.gridLayout.addWidget(self.bgFrameSpin, 8, 1, 1, 2) self.line = QtGui.QFrame(Form) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout.addWidget(self.line, 5, 0, 1, 3) self.line_2 = QtGui.QFrame(Form) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.gridLayout.addWidget(self.line_2, 3, 0, 1, 3) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1) self.outlineColorBtn = ColorButton(Form) self.outlineColorBtn.setText(_fromUtf8("")) self.outlineColorBtn.setObjectName(_fromUtf8("outlineColorBtn")) self.gridLayout.addWidget(self.outlineColorBtn, 4, 1, 1, 2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.spotSizeLabel.setText( _translate("Form", "Spot Display Size:", None)) self.sizeFromCalibrationRadio.setText( _translate("Form", "Use size from calibration", None)) self.sizeCustomRadio.setText( _translate("Form", "Use custom size:", None)) self.loadSpotImagesBtn.setToolTip( _translate( "Form", "Generates a single frame which combines the photostimulation spot images from each scan point. ", None)) self.loadSpotImagesBtn.setText( _translate("Form", "Load Spot Images", None)) self.label.setText(_translate("Form", "Spot Frame Number", None)) self.bgFrameCheck.setText(_translate("Form", "Background Frame", None)) self.label_2.setText(_translate("Form", "Outline Color", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(208, 349) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setObjectName("gridLayout") self.rateAverageSpin = SpinBox(Form) self.rateAverageSpin.setObjectName("rateAverageSpin") self.gridLayout.addWidget(self.rateAverageSpin, 4, 1, 1, 1) self.label = QtWidgets.QLabel(Form) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 4, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName("gridLayout_3") self.poisMaxCheck = QtWidgets.QCheckBox(self.groupBox_2) self.poisMaxCheck.setObjectName("poisMaxCheck") self.gridLayout_3.addWidget(self.poisMaxCheck, 2, 0, 1, 1) self.poisMaxAmpCheck = QtWidgets.QCheckBox(self.groupBox_2) self.poisMaxAmpCheck.setObjectName("poisMaxAmpCheck") self.gridLayout_3.addWidget(self.poisMaxAmpCheck, 3, 0, 1, 1) self.chargeTransferCheck = QtWidgets.QCheckBox(self.groupBox_2) self.chargeTransferCheck.setObjectName("chargeTransferCheck") self.gridLayout_3.addWidget(self.chargeTransferCheck, 0, 0, 1, 1) self.eventCountCheck = QtWidgets.QCheckBox(self.groupBox_2) self.eventCountCheck.setObjectName("eventCountCheck") self.gridLayout_3.addWidget(self.eventCountCheck, 1, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 3, 0, 1, 2) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.excitatoryRadio = QtWidgets.QRadioButton(self.groupBox) self.excitatoryRadio.setObjectName("excitatoryRadio") self.gridLayout_2.addWidget(self.excitatoryRadio, 0, 0, 1, 1) self.fitErrorSpin = SpinBox(self.groupBox) self.fitErrorSpin.setObjectName("fitErrorSpin") self.gridLayout_2.addWidget(self.fitErrorSpin, 1, 1, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.inhibitoryRadio = QtWidgets.QRadioButton(self.groupBox) self.inhibitoryRadio.setObjectName("inhibitoryRadio") self.gridLayout_2.addWidget(self.inhibitoryRadio, 0, 1, 1, 1) self.gridLayout.addWidget(self.groupBox, 2, 0, 1, 2) self.groupBox_3 = QtWidgets.QGroupBox(Form) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_4.setObjectName("gridLayout_4") self.label_3 = QtWidgets.QLabel(self.groupBox_3) self.label_3.setObjectName("label_3") self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1) self.thresholdSpin = SpinBox(self.groupBox_3) self.thresholdSpin.setObjectName("thresholdSpin") self.gridLayout_4.addWidget(self.thresholdSpin, 0, 1, 1, 1) self.detectionHistogram = PlotWidget(self.groupBox_3) self.detectionHistogram.setObjectName("detectionHistogram") self.gridLayout_4.addWidget(self.detectionHistogram, 1, 0, 1, 2) self.gridLayout.addWidget(self.groupBox_3, 5, 0, 1, 2) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label.setText(_translate("Form", "Rate Average Window")) self.groupBox_2.setTitle(_translate("Form", "Detection Methods")) self.poisMaxCheck.setText(_translate("Form", "Poisson max probability")) self.poisMaxAmpCheck.setText( _translate("Form", "Poisson max + amplitude")) self.chargeTransferCheck.setText( _translate("Form", "Charge transfer z-score")) self.eventCountCheck.setText(_translate("Form", "Event Count")) self.groupBox.setTitle(_translate("Form", "Event Selection")) self.excitatoryRadio.setText(_translate("Form", "Excitatory")) self.label_2.setText(_translate("Form", "Fit Error Limit")) self.inhibitoryRadio.setText(_translate("Form", "Inhibitory")) self.label_3.setText(_translate("Form", "Detection Threshold"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(198, 791) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setSpacing(15) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.recordCtrlWidget = QtGui.QWidget(Form) self.recordCtrlWidget.setObjectName(_fromUtf8("recordCtrlWidget")) self.gridLayout_3 = QtGui.QGridLayout(self.recordCtrlWidget) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.acquireVideoBtn = QtGui.QPushButton(self.recordCtrlWidget) self.acquireVideoBtn.setCheckable(True) self.acquireVideoBtn.setObjectName(_fromUtf8("acquireVideoBtn")) self.gridLayout_3.addWidget(self.acquireVideoBtn, 0, 1, 1, 1) self.acquireFrameBtn = QtGui.QPushButton(self.recordCtrlWidget) self.acquireFrameBtn.setObjectName(_fromUtf8("acquireFrameBtn")) self.gridLayout_3.addWidget(self.acquireFrameBtn, 0, 0, 1, 1) self.line = QtGui.QFrame(self.recordCtrlWidget) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout_3.addWidget(self.line, 4, 0, 1, 2) self.recordStackBtn = QtGui.QPushButton(self.recordCtrlWidget) self.recordStackBtn.setCheckable(True) self.recordStackBtn.setFlat(False) self.recordStackBtn.setObjectName(_fromUtf8("recordStackBtn")) self.gridLayout_3.addWidget(self.recordStackBtn, 6, 1, 1, 1) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.recordXframesCheck = QtGui.QCheckBox(self.recordCtrlWidget) self.recordXframesCheck.setObjectName(_fromUtf8("recordXframesCheck")) self.gridLayout.addWidget(self.recordXframesCheck, 0, 0, 1, 1) self.recordXframesSpin = QtGui.QSpinBox(self.recordCtrlWidget) self.recordXframesSpin.setEnabled(True) self.recordXframesSpin.setMinimum(1) self.recordXframesSpin.setMaximum(1000000) self.recordXframesSpin.setProperty("value", 100) self.recordXframesSpin.setObjectName(_fromUtf8("recordXframesSpin")) self.gridLayout.addWidget(self.recordXframesSpin, 0, 1, 1, 2) self.label_9 = QtGui.QLabel(self.recordCtrlWidget) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.stackSizeLabel = ValueLabel(self.recordCtrlWidget) self.stackSizeLabel.setObjectName(_fromUtf8("stackSizeLabel")) self.gridLayout.addWidget(self.stackSizeLabel, 1, 1, 1, 1) self.label = QtGui.QLabel(self.recordCtrlWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 2, 0, 1, 1) self.fpsLabel = ValueLabel(self.recordCtrlWidget) self.fpsLabel.setObjectName(_fromUtf8("fpsLabel")) self.gridLayout.addWidget(self.fpsLabel, 2, 1, 1, 1) self.label_7 = QtGui.QLabel(self.recordCtrlWidget) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.displayFpsLabel = ValueLabel(self.recordCtrlWidget) self.displayFpsLabel.setObjectName(_fromUtf8("displayFpsLabel")) self.gridLayout.addWidget(self.displayFpsLabel, 3, 1, 1, 1) self.displayPercentLabel = ValueLabel(self.recordCtrlWidget) self.displayPercentLabel.setObjectName(_fromUtf8("displayPercentLabel")) self.gridLayout.addWidget(self.displayPercentLabel, 3, 2, 1, 1) self.gridLayout_3.addLayout(self.gridLayout, 7, 0, 1, 2) self.saveFrameBtn = FeedbackButton(self.recordCtrlWidget) self.saveFrameBtn.setObjectName(_fromUtf8("saveFrameBtn")) self.gridLayout_3.addWidget(self.saveFrameBtn, 6, 0, 1, 1) self.frameToBgBtn = QtGui.QPushButton(self.recordCtrlWidget) self.frameToBgBtn.setObjectName(_fromUtf8("frameToBgBtn")) self.gridLayout_3.addWidget(self.frameToBgBtn, 3, 0, 1, 2) self.verticalLayout.addWidget(self.recordCtrlWidget) self.devCtrlWidget = QtGui.QWidget(Form) self.devCtrlWidget.setObjectName(_fromUtf8("devCtrlWidget")) self.gridLayout_4 = QtGui.QGridLayout(self.devCtrlWidget) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setContentsMargins(-1, 0, -1, -1) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.btnFullFrame = QtGui.QPushButton(self.devCtrlWidget) self.btnFullFrame.setObjectName(_fromUtf8("btnFullFrame")) self.gridLayout_4.addWidget(self.btnFullFrame, 2, 0, 1, 2) self.label_3 = QtGui.QLabel(self.devCtrlWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 1, 0, 1, 1) self.label_2 = QtGui.QLabel(self.devCtrlWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_4.addWidget(self.label_2, 0, 0, 1, 1) self.spinExposure = SpinBox(self.devCtrlWidget) self.spinExposure.setMinimumSize(QtCore.QSize(80, 0)) self.spinExposure.setObjectName(_fromUtf8("spinExposure")) self.gridLayout_4.addWidget(self.spinExposure, 1, 1, 1, 1) self.binningCombo = QtGui.QComboBox(self.devCtrlWidget) self.binningCombo.setObjectName(_fromUtf8("binningCombo")) self.gridLayout_4.addWidget(self.binningCombo, 0, 1, 1, 1) self.verticalLayout.addWidget(self.devCtrlWidget) self.displayCtrlWidget = QtGui.QWidget(Form) self.displayCtrlWidget.setObjectName(_fromUtf8("displayCtrlWidget")) self.gridLayout_2 = QtGui.QGridLayout(self.displayCtrlWidget) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setContentsMargins(-1, 0, -1, -1) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_8 = QtGui.QLabel(self.displayCtrlWidget) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_2.addWidget(self.label_8, 3, 0, 1, 1) self.zoomLiveBtn = QtGui.QPushButton(self.displayCtrlWidget) self.zoomLiveBtn.setObjectName(_fromUtf8("zoomLiveBtn")) self.gridLayout_2.addWidget(self.zoomLiveBtn, 6, 0, 1, 2) self.btnAutoGain = QtGui.QPushButton(self.displayCtrlWidget) self.btnAutoGain.setCheckable(True) self.btnAutoGain.setChecked(False) self.btnAutoGain.setObjectName(_fromUtf8("btnAutoGain")) self.gridLayout_2.addWidget(self.btnAutoGain, 1, 0, 1, 2) self.spinAutoGainCenterWeight = QtGui.QDoubleSpinBox(self.displayCtrlWidget) self.spinAutoGainCenterWeight.setMaximum(1.0) self.spinAutoGainCenterWeight.setSingleStep(0.1) self.spinAutoGainCenterWeight.setObjectName(_fromUtf8("spinAutoGainCenterWeight")) self.gridLayout_2.addWidget(self.spinAutoGainCenterWeight, 3, 1, 1, 1) self.spinAutoGainSpeed = QtGui.QDoubleSpinBox(self.displayCtrlWidget) self.spinAutoGainSpeed.setProperty("value", 2.0) self.spinAutoGainSpeed.setObjectName(_fromUtf8("spinAutoGainSpeed")) self.gridLayout_2.addWidget(self.spinAutoGainSpeed, 2, 1, 1, 1) self.histogram = HistogramLUTWidget(self.displayCtrlWidget) self.histogram.setObjectName(_fromUtf8("histogram")) self.gridLayout_2.addWidget(self.histogram, 0, 0, 1, 2) self.label_6 = QtGui.QLabel(self.displayCtrlWidget) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1) self.label_4 = QtGui.QLabel(self.displayCtrlWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 4, 0, 1, 2) self.alphaSlider = QtGui.QSlider(self.displayCtrlWidget) self.alphaSlider.setMaximum(100) self.alphaSlider.setSingleStep(1) self.alphaSlider.setProperty("value", 100) self.alphaSlider.setOrientation(QtCore.Qt.Horizontal) self.alphaSlider.setObjectName(_fromUtf8("alphaSlider")) self.gridLayout_2.addWidget(self.alphaSlider, 5, 0, 1, 2) self.verticalLayout.addWidget(self.displayCtrlWidget) self.bgSubtractWidget = QtGui.QWidget(Form) self.bgSubtractWidget.setObjectName(_fromUtf8("bgSubtractWidget")) self.gridLayout_5 = QtGui.QGridLayout(self.bgSubtractWidget) self.gridLayout_5.setSpacing(0) self.gridLayout_5.setContentsMargins(-1, 0, -1, -1) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.bgBlurSpin = QtGui.QDoubleSpinBox(self.bgSubtractWidget) self.bgBlurSpin.setProperty("value", 0.0) self.bgBlurSpin.setObjectName(_fromUtf8("bgBlurSpin")) self.gridLayout_5.addWidget(self.bgBlurSpin, 2, 1, 1, 1) self.divideBgBtn = QtGui.QPushButton(self.bgSubtractWidget) self.divideBgBtn.setCheckable(True) self.divideBgBtn.setAutoExclusive(False) self.divideBgBtn.setObjectName(_fromUtf8("divideBgBtn")) self.gridLayout_5.addWidget(self.divideBgBtn, 4, 0, 1, 2) self.label_5 = QtGui.QLabel(self.bgSubtractWidget) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_5.addWidget(self.label_5, 2, 0, 1, 1) self.contAvgBgCheck = QtGui.QCheckBox(self.bgSubtractWidget) self.contAvgBgCheck.setObjectName(_fromUtf8("contAvgBgCheck")) self.gridLayout_5.addWidget(self.contAvgBgCheck, 1, 0, 1, 2) self.subtractBgBtn = QtGui.QPushButton(self.bgSubtractWidget) self.subtractBgBtn.setCheckable(True) self.subtractBgBtn.setAutoExclusive(False) self.subtractBgBtn.setObjectName(_fromUtf8("subtractBgBtn")) self.gridLayout_5.addWidget(self.subtractBgBtn, 3, 0, 1, 2) self.collectBgBtn = QtGui.QPushButton(self.bgSubtractWidget) self.collectBgBtn.setCheckable(True) self.collectBgBtn.setObjectName(_fromUtf8("collectBgBtn")) self.gridLayout_5.addWidget(self.collectBgBtn, 0, 0, 1, 1) self.bgTimeSpin = QtGui.QDoubleSpinBox(self.bgSubtractWidget) self.bgTimeSpin.setDecimals(1) self.bgTimeSpin.setSingleStep(1.0) self.bgTimeSpin.setProperty("value", 3.0) self.bgTimeSpin.setObjectName(_fromUtf8("bgTimeSpin")) self.gridLayout_5.addWidget(self.bgTimeSpin, 0, 1, 1, 1) self.verticalLayout.addWidget(self.bgSubtractWidget) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.acquireVideoBtn.setToolTip(_translate("Form", "Start/stop camera acquisition.\n" "In general, this can just stay on always.", None)) self.acquireVideoBtn.setText(_translate("Form", "Acquire Video", None)) self.acquireFrameBtn.setText(_translate("Form", "Acquire Frame", None)) self.recordStackBtn.setToolTip(_translate("Form", "Start/stop recording frames as they are acquired. \n" "Frames are written to the current storage directory set in \n" "the data manager window.", None)) self.recordStackBtn.setText(_translate("Form", "Record Stack", None)) self.recordXframesCheck.setText(_translate("Form", "Stack Limit", None)) self.recordXframesSpin.setSuffix(_translate("Form", " frames", None)) self.label_9.setText(_translate("Form", "Stack Size:", None)) self.stackSizeLabel.setText(_translate("Form", "0 frames", None)) self.label.setText(_translate("Form", "Acquiring:", None)) self.fpsLabel.setText(_translate("Form", "0 fps", None)) self.label_7.setText(_translate("Form", "Displaying:", None)) self.displayFpsLabel.setText(_translate("Form", "0 fps", None)) self.displayPercentLabel.setText(_translate("Form", "(0%)", None)) self.saveFrameBtn.setText(_translate("Form", "Save Frame", None)) self.frameToBgBtn.setText(_translate("Form", "Last Frame → Background", None)) self.btnFullFrame.setToolTip(_translate("Form", "Set the region of interest to the maximum possible area.", None)) self.btnFullFrame.setText(_translate("Form", "Full Frame", None)) self.label_3.setText(_translate("Form", "Exposure", None)) self.label_2.setText(_translate("Form", "Binning", None)) self.spinExposure.setToolTip(_translate("Form", "Sets the exposure time for each frame.", None)) self.label_8.setText(_translate("Form", "Frame Center Weight", None)) self.zoomLiveBtn.setText(_translate("Form", "Zoom to Live Image", None)) self.btnAutoGain.setToolTip(_translate("Form", "Determines the behavior of the white/black level sliders.\n" "When enabled, the sliders maximum and minimum values are set\n" "to the maximum and minimum intensity values in the image.\n" "When disabled, the minimum is 0 and the maximum is the largest \n" "possible intensity given the bit depth of the camera.", None)) self.btnAutoGain.setText(_translate("Form", "Auto Gain", None)) self.spinAutoGainCenterWeight.setToolTip(_translate("Form", "Weights the auto gain measurement to the center 1/3 of\n" "the frame when set to 1.0. A value of 0.0 meters from \n" "the entire frame.", None)) self.spinAutoGainSpeed.setToolTip(_translate("Form", "Smooths out the auto gain control, prevents very\n" "brief flashes from affecting the gain. Larger values\n" "indicate more smoothing.\n" "", None)) self.label_6.setText(_translate("Form", "Auto Gain Delay", None)) self.label_4.setText(_translate("Form", "Transparency", None)) self.bgBlurSpin.setToolTip(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Blurs the background frame before dividing it from the current frame.</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Large blur values may cause performance to degrade.</span></p></body></html>", None)) self.divideBgBtn.setToolTip(_translate("Form", "Enables background division. \n" "Either a set of static background frames need to have already by collected\n" "(by pressing \'Static\' above) or \'Continuous\' needs to be pressed.", None)) self.divideBgBtn.setText(_translate("Form", "Divide Background", None)) self.label_5.setText(_translate("Form", "Blur Background.", None)) self.contAvgBgCheck.setText(_translate("Form", "Continuous Average", None)) self.subtractBgBtn.setText(_translate("Form", "Subtract Background", None)) self.collectBgBtn.setText(_translate("Form", "Collect Background", None)) self.bgTimeSpin.setToolTip(_translate("Form", "Sets the approximate number of frames to be averaged for\n" "background division.", None)) self.bgTimeSpin.setSuffix(_translate("Form", " s", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(259, 117) self.horizontalLayout = QtWidgets.QHBoxLayout(Form) self.horizontalLayout.setObjectName("horizontalLayout") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_2.addItem(spacerItem, 1, 2, 1, 1) self.vcHoldingLabel = QtWidgets.QLabel(Form) self.vcHoldingLabel.setText("") self.vcHoldingLabel.setObjectName("vcHoldingLabel") self.gridLayout_2.addWidget(self.vcHoldingLabel, 3, 2, 1, 1) self.icHoldingSpin = SpinBox(Form) self.icHoldingSpin.setMaximumSize(Qt.QSize(150, 16777215)) self.icHoldingSpin.setObjectName("icHoldingSpin") self.gridLayout_2.addWidget(self.icHoldingSpin, 4, 1, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setObjectName("label_6") self.gridLayout_2.addWidget(self.label_6, 0, 0, 1, 1) self.label = QtWidgets.QLabel(Form) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1) self.channelLabel = QtWidgets.QLabel(Form) self.channelLabel.setText("") self.channelLabel.setObjectName("channelLabel") self.gridLayout_2.addWidget(self.channelLabel, 0, 2, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 4, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.vcRadio = QtWidgets.QRadioButton(Form) self.vcRadio.setObjectName("vcRadio") self.horizontalLayout_2.addWidget(self.vcRadio) self.i0Radio = QtWidgets.QRadioButton(Form) self.i0Radio.setObjectName("i0Radio") self.horizontalLayout_2.addWidget(self.i0Radio) self.icRadio = QtWidgets.QRadioButton(Form) self.icRadio.setObjectName("icRadio") self.horizontalLayout_2.addWidget(self.icRadio) self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1) self.vcHoldingSpin = SpinBox(Form) self.vcHoldingSpin.setMaximumSize(Qt.QSize(150, 16777215)) self.vcHoldingSpin.setObjectName("vcHoldingSpin") self.gridLayout_2.addWidget(self.vcHoldingSpin, 3, 1, 1, 1) self.icHoldingLabel = QtWidgets.QLabel(Form) self.icHoldingLabel.setText("") self.icHoldingLabel.setObjectName("icHoldingLabel") self.gridLayout_2.addWidget(self.icHoldingLabel, 4, 2, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem1, 5, 0, 1, 1) self.horizontalLayout.addLayout(self.gridLayout_2) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label_6.setText(_translate("Form", "MultiClamp Channel:")) self.label.setText(_translate("Form", "Mode:")) self.label_3.setText(_translate("Form", "IC Holding:")) self.vcRadio.setText(_translate("Form", "VC")) self.i0Radio.setText(_translate("Form", "I=0")) self.icRadio.setText(_translate("Form", "IC")) self.label_2.setText(_translate("Form", "VC Holding:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(703, 428) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(4) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) self.gridLayout_4 = QtGui.QGridLayout(Form) self.gridLayout_4.setMargin(3) self.gridLayout_4.setHorizontalSpacing(9) self.gridLayout_4.setVerticalSpacing(2) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSizeConstraint(QtGui.QLayout.SetMaximumSize) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.simulateShutterCheck = QtGui.QCheckBox(Form) self.simulateShutterCheck.setObjectName(_fromUtf8("simulateShutterCheck")) self.gridLayout.addWidget(self.simulateShutterCheck, 2, 0, 1, 2) self.groupBox = QtGui.QGroupBox(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setMinimumSize(QtCore.QSize(190, 210)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setMargin(3) self.gridLayout_3.setSpacing(3) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.tdPlotWidget = PlotWidget(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tdPlotWidget.sizePolicy().hasHeightForWidth()) self.tdPlotWidget.setSizePolicy(sizePolicy) self.tdPlotWidget.setObjectName(_fromUtf8("tdPlotWidget")) self.gridLayout_3.addWidget(self.tdPlotWidget, 0, 0, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1) self.minTimeSpin = SpinBox(self.groupBox) self.minTimeSpin.setSuffix(_fromUtf8("")) self.minTimeSpin.setDecimals(2) self.minTimeSpin.setMaximum(1000000.0) self.minTimeSpin.setObjectName(_fromUtf8("minTimeSpin")) self.gridLayout_3.addWidget(self.minTimeSpin, 1, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1) self.minDistSpin = SpinBox(self.groupBox) self.minDistSpin.setSuffix(_fromUtf8("")) self.minDistSpin.setMaximum(1000000.0) self.minDistSpin.setObjectName(_fromUtf8("minDistSpin")) self.gridLayout_3.addWidget(self.minDistSpin, 2, 1, 1, 1) self.recomputeBtn = QtGui.QPushButton(self.groupBox) self.recomputeBtn.setObjectName(_fromUtf8("recomputeBtn")) self.gridLayout_3.addWidget(self.recomputeBtn, 5, 0, 1, 2) self.timeLabel = QtGui.QLabel(self.groupBox) self.timeLabel.setObjectName(_fromUtf8("timeLabel")) self.gridLayout_3.addWidget(self.timeLabel, 4, 0, 1, 2) self.gridLayout.addWidget(self.groupBox, 5, 0, 1, 2) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setMargin(3) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.sizeFromCalibrationRadio = QtGui.QRadioButton(self.groupBox_2) self.sizeFromCalibrationRadio.setChecked(True) self.sizeFromCalibrationRadio.setObjectName(_fromUtf8("sizeFromCalibrationRadio")) self.gridLayout_2.addWidget(self.sizeFromCalibrationRadio, 0, 0, 1, 2) self.sizeCustomRadio = QtGui.QRadioButton(self.groupBox_2) self.sizeCustomRadio.setObjectName(_fromUtf8("sizeCustomRadio")) self.gridLayout_2.addWidget(self.sizeCustomRadio, 1, 0, 1, 1) self.sizeSpin = SpinBox(self.groupBox_2) self.sizeSpin.setSuffix(_fromUtf8("")) self.sizeSpin.setMinimum(0.0) self.sizeSpin.setMaximum(100000.0) self.sizeSpin.setSingleStep(1e-06) self.sizeSpin.setProperty("value", 0.0) self.sizeSpin.setObjectName(_fromUtf8("sizeSpin")) self.gridLayout_2.addWidget(self.sizeSpin, 1, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 4, 0, 1, 2) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 6, 0, 1, 1) self.laserCombo = InterfaceCombo(Form) self.laserCombo.setObjectName(_fromUtf8("laserCombo")) self.gridLayout.addWidget(self.laserCombo, 1, 1, 1, 1) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.cameraCombo = InterfaceCombo(Form) self.cameraCombo.setObjectName(_fromUtf8("cameraCombo")) self.gridLayout.addWidget(self.cameraCombo, 0, 1, 1, 1) self.loadConfigBtn = QtGui.QPushButton(Form) self.loadConfigBtn.setObjectName(_fromUtf8("loadConfigBtn")) self.gridLayout.addWidget(self.loadConfigBtn, 7, 0, 1, 2) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 3, 0, 1, 1) self.gridLayout_4.addLayout(self.gridLayout, 0, 0, 2, 1) self.groupBox_3 = QtGui.QGroupBox(Form) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_5.setMargin(5) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.itemTree = ParameterTree(self.groupBox_3) self.itemTree.setObjectName(_fromUtf8("itemTree")) self.itemTree.headerItem().setText(0, _fromUtf8("1")) self.itemTree.header().setVisible(False) self.gridLayout_5.addWidget(self.itemTree, 0, 0, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.hideCheck = QtGui.QCheckBox(self.groupBox_3) self.hideCheck.setEnabled(True) self.hideCheck.setChecked(False) self.hideCheck.setObjectName(_fromUtf8("hideCheck")) self.horizontalLayout_5.addWidget(self.hideCheck) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.hideMarkerBtn = QtGui.QPushButton(self.groupBox_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hideMarkerBtn.sizePolicy().hasHeightForWidth()) self.hideMarkerBtn.setSizePolicy(sizePolicy) self.hideMarkerBtn.setObjectName(_fromUtf8("hideMarkerBtn")) self.horizontalLayout_5.addWidget(self.hideMarkerBtn) self.gridLayout_5.addLayout(self.horizontalLayout_5, 1, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_3, 0, 1, 2, 1) self.groupBox_4 = QtGui.QGroupBox(Form) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_4) self.gridLayout_6.setMargin(5) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.gridLayout_9 = QtGui.QGridLayout() self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_9.addItem(spacerItem3, 0, 0, 1, 1) self.previewBtn = QtGui.QPushButton(self.groupBox_4) self.previewBtn.setEnabled(False) self.previewBtn.setObjectName(_fromUtf8("previewBtn")) self.gridLayout_9.addWidget(self.previewBtn, 0, 1, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_9, 1, 0, 1, 1) self.programTree = ParameterTree(self.groupBox_4) self.programTree.setObjectName(_fromUtf8("programTree")) self.programTree.headerItem().setText(0, _fromUtf8("1")) self.programTree.header().setVisible(False) self.gridLayout_6.addWidget(self.programTree, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_4, 1, 2, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.simulateShutterCheck.setText(_translate("Form", "Simulate Shutter", None)) self.groupBox.setTitle(_translate("Form", "Spot Sequence", None)) self.label_3.setText(_translate("Form", "Minimum time", None)) self.minTimeSpin.setToolTip(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">When stimulating a sequence of points, this is the minimum amount of time that must pass before stimulating the same spot a second time. Points farther away will require smaller delays. Points farther than the minimum distance (specified below) will require no delay.</span></p></body></html>", None)) self.label_4.setText(_translate("Form", "Minimum distance", None)) self.minDistSpin.setToolTip(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">When stimulating a sequence of points, this is the minimum distance between two spots such that no time delay is required between stimulating them. Points closer than this distance will require some delay, which is determined in part by the minimum time specified above.</span></p></body></html>", None)) self.recomputeBtn.setText(_translate("Form", "Recompute Order", None)) self.timeLabel.setText(_translate("Form", "Total Time:", None)) self.groupBox_2.setTitle(_translate("Form", "Spot Display Size", None)) self.sizeFromCalibrationRadio.setToolTip(_translate("Form", "Causes target spots to be displayed at the size determined by the calibration file. Does not affect how data is collected.", None)) self.sizeFromCalibrationRadio.setText(_translate("Form", "Use size from calibration", None)) self.sizeCustomRadio.setToolTip(_translate("Form", "Lets the user change the display size of target spots. Does not change the way data is collected.", None)) self.sizeCustomRadio.setText(_translate("Form", "Use custom size:", None)) self.sizeSpin.setToolTip(_translate("Form", "Specifies the display size of the target spots. Does not change the way data is collected.", None)) self.label.setText(_translate("Form", "Camera Module:", None)) self.laserCombo.setToolTip(_translate("Form", "Selects the laser to be used.", None)) self.label_2.setText(_translate("Form", "Laser Device:", None)) self.cameraCombo.setToolTip(_translate("Form", "Selects the camera module to use with the scanner. This, along with the laser device, determines which calibration files will be used.", None)) self.loadConfigBtn.setText(_translate("Form", "Load Last Config", None)) self.groupBox_3.setTitle(_translate("Form", "Position Control Items", None)) self.hideCheck.setToolTip(_translate("Form", "Hide all items from view.", None)) self.hideCheck.setText(_translate("Form", "Hide items", None)) self.hideMarkerBtn.setText(_translate("Form", "Hide Spot Marker", None)) self.groupBox_4.setTitle(_translate("Form", "Program Controls", None)) self.previewBtn.setText(_translate("Form", "Preview", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(695, 563) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setMargin(6) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.powerGroup = QtGui.QGroupBox(Form) self.powerGroup.setTitle(_fromUtf8("")) self.powerGroup.setObjectName(_fromUtf8("powerGroup")) self.gridLayout_4 = QtGui.QGridLayout(self.powerGroup) self.gridLayout_4.setMargin(6) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_5 = QtGui.QLabel(self.powerGroup) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_4.addWidget(self.label_5, 0, 2, 1, 1) self.expectedPowerSpin = SpinBox(self.powerGroup) self.expectedPowerSpin.setMinimumSize(QtCore.QSize(75, 0)) self.expectedPowerSpin.setObjectName(_fromUtf8("expectedPowerSpin")) self.gridLayout_4.addWidget(self.expectedPowerSpin, 0, 3, 1, 1) self.toleranceSpin = SpinBox(self.powerGroup) self.toleranceSpin.setMinimumSize(QtCore.QSize(75, 0)) self.toleranceSpin.setObjectName(_fromUtf8("toleranceSpin")) self.gridLayout_4.addWidget(self.toleranceSpin, 1, 3, 1, 1) self.energyCalcGroup = QtGui.QGroupBox(self.powerGroup) self.energyCalcGroup.setObjectName(_fromUtf8("energyCalcGroup")) self.verticalLayout = QtGui.QVBoxLayout(self.energyCalcGroup) self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(-1, 0, 0, 0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.currentPowerRadio = QtGui.QRadioButton(self.energyCalcGroup) self.currentPowerRadio.setObjectName(_fromUtf8("currentPowerRadio")) self.verticalLayout.addWidget(self.currentPowerRadio) self.expectedPowerRadio = QtGui.QRadioButton(self.energyCalcGroup) self.expectedPowerRadio.setChecked(True) self.expectedPowerRadio.setObjectName(_fromUtf8("expectedPowerRadio")) self.verticalLayout.addWidget(self.expectedPowerRadio) self.gridLayout_4.addWidget(self.energyCalcGroup, 0, 4, 2, 1) self.label_4 = QtGui.QLabel(self.powerGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1) self.outputPowerLabel = QtGui.QLabel(self.powerGroup) font = QtGui.QFont() font.setPointSize(12) font.setBold(True) font.setWeight(75) self.outputPowerLabel.setFont(font) self.outputPowerLabel.setText(_fromUtf8("")) self.outputPowerLabel.setObjectName(_fromUtf8("outputPowerLabel")) self.gridLayout_4.addWidget(self.outputPowerLabel, 0, 1, 1, 1) self.samplePowerLabel = QtGui.QLabel(self.powerGroup) font = QtGui.QFont() font.setPointSize(11) font.setBold(False) font.setWeight(50) self.samplePowerLabel.setFont(font) self.samplePowerLabel.setText(_fromUtf8("")) self.samplePowerLabel.setObjectName(_fromUtf8("samplePowerLabel")) self.gridLayout_4.addWidget(self.samplePowerLabel, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.powerGroup) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1) self.powerAlertCheck = QtGui.QCheckBox(self.powerGroup) self.powerAlertCheck.setChecked(True) self.powerAlertCheck.setObjectName(_fromUtf8("powerAlertCheck")) self.gridLayout_4.addWidget(self.powerAlertCheck, 1, 2, 1, 1) self.gridLayout.addWidget(self.powerGroup, 0, 0, 1, 3) self.wavelengthGroup = QtGui.QGroupBox(Form) self.wavelengthGroup.setTitle(_fromUtf8("")) self.wavelengthGroup.setObjectName(_fromUtf8("wavelengthGroup")) self.gridLayout_5 = QtGui.QGridLayout(self.wavelengthGroup) self.gridLayout_5.setMargin(6) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_7 = QtGui.QLabel(self.wavelengthGroup) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_5.addWidget(self.label_7, 0, 0, 1, 1) self.wavelengthSpin = SpinBox(self.wavelengthGroup) self.wavelengthSpin.setSuffix(_fromUtf8("")) self.wavelengthSpin.setObjectName(_fromUtf8("wavelengthSpin")) self.gridLayout_5.addWidget(self.wavelengthSpin, 0, 1, 1, 1) self.wavelengthCombo = QtGui.QComboBox(self.wavelengthGroup) self.wavelengthCombo.setObjectName(_fromUtf8("wavelengthCombo")) self.wavelengthCombo.addItem(_fromUtf8("")) self.gridLayout_5.addWidget(self.wavelengthCombo, 0, 2, 1, 1) self.GDDEnableCheck = QtGui.QCheckBox(self.wavelengthGroup) self.GDDEnableCheck.setObjectName(_fromUtf8("GDDEnableCheck")) self.gridLayout_5.addWidget(self.GDDEnableCheck, 1, 0, 1, 1) self.GDDSpin = QtGui.QSpinBox(self.wavelengthGroup) self.GDDSpin.setMaximum(32000) self.GDDSpin.setObjectName(_fromUtf8("GDDSpin")) self.gridLayout_5.addWidget(self.GDDSpin, 1, 1, 1, 1) self.GDDLimits = QtGui.QLabel(self.wavelengthGroup) self.GDDLimits.setObjectName(_fromUtf8("GDDLimits")) self.gridLayout_5.addWidget(self.GDDLimits, 1, 2, 1, 1) self.gridLayout.addWidget(self.wavelengthGroup, 3, 0, 1, 3) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.calibrationList = QtGui.QTreeWidget(self.groupBox_2) font = QtGui.QFont() font.setPointSize(8) font.setBold(False) font.setWeight(50) self.calibrationList.setFont(font) self.calibrationList.setRootIsDecorated(False) self.calibrationList.setItemsExpandable(False) self.calibrationList.setObjectName(_fromUtf8("calibrationList")) self.calibrationList.header().setStretchLastSection(True) self.gridLayout_6.addWidget(self.calibrationList, 0, 0, 1, 5) self.groupBox = QtGui.QGroupBox(self.groupBox_2) self.groupBox.setAlignment(QtCore.Qt.AlignCenter) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setMargin(6) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setHorizontalSpacing(6) self.gridLayout_2.setVerticalSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.scanLabel = QtGui.QLabel(self.groupBox) self.scanLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.scanLabel.setObjectName(_fromUtf8("scanLabel")) self.gridLayout_2.addWidget(self.scanLabel, 1, 3, 1, 1) self.measurementSpin = SpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.measurementSpin.sizePolicy().hasHeightForWidth()) self.measurementSpin.setSizePolicy(sizePolicy) self.measurementSpin.setMinimum(0.0) self.measurementSpin.setMaximum(100.0) self.measurementSpin.setProperty("value", 1.0) self.measurementSpin.setObjectName(_fromUtf8("measurementSpin")) self.gridLayout_2.addWidget(self.measurementSpin, 1, 4, 1, 1) self.label = QtGui.QLabel(self.groupBox) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 3, 1, 1) self.settlingSpin = SpinBox(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(2) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.settlingSpin.sizePolicy().hasHeightForWidth()) self.settlingSpin.setSizePolicy(sizePolicy) self.settlingSpin.setObjectName(_fromUtf8("settlingSpin")) self.gridLayout_2.addWidget(self.settlingSpin, 2, 4, 1, 1) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1) self.meterCombo = InterfaceCombo(self.groupBox) self.meterCombo.setObjectName(_fromUtf8("meterCombo")) self.gridLayout_2.addWidget(self.meterCombo, 1, 1, 1, 1) self.label_12 = QtGui.QLabel(self.groupBox) self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_2.addWidget(self.label_12, 2, 0, 1, 1) self.channelCombo = QtGui.QComboBox(self.groupBox) self.channelCombo.setObjectName(_fromUtf8("channelCombo")) self.gridLayout_2.addWidget(self.channelCombo, 2, 1, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_2, 0, 0, 1, 1) self.pCellGroup = QtGui.QGroupBox(self.groupBox) self.pCellGroup.setAlignment(QtCore.Qt.AlignCenter) self.pCellGroup.setObjectName(_fromUtf8("pCellGroup")) self.gridLayout_8 = QtGui.QGridLayout(self.pCellGroup) self.gridLayout_8.setMargin(6) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.gridLayout_7 = QtGui.QGridLayout() self.gridLayout_7.setVerticalSpacing(0) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_9 = QtGui.QLabel(self.pCellGroup) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_7.addWidget(self.label_9, 0, 0, 1, 1) self.minVSpin = SpinBox(self.pCellGroup) self.minVSpin.setMinimum(-99.0) self.minVSpin.setSingleStep(0.01) self.minVSpin.setProperty("value", -0.2) self.minVSpin.setObjectName(_fromUtf8("minVSpin")) self.gridLayout_7.addWidget(self.minVSpin, 0, 1, 1, 1) self.label_11 = QtGui.QLabel(self.pCellGroup) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_7.addWidget(self.label_11, 0, 2, 1, 1) self.stepsSpin = SpinBox(self.pCellGroup) self.stepsSpin.setDecimals(0) self.stepsSpin.setMinimum(10.0) self.stepsSpin.setMaximum(1000.0) self.stepsSpin.setProperty("value", 20.0) self.stepsSpin.setObjectName(_fromUtf8("stepsSpin")) self.gridLayout_7.addWidget(self.stepsSpin, 0, 3, 1, 1) self.label_10 = QtGui.QLabel(self.pCellGroup) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_7.addWidget(self.label_10, 2, 0, 1, 1) self.maxVSpin = SpinBox(self.pCellGroup) self.maxVSpin.setSingleStep(0.01) self.maxVSpin.setProperty("value", 1.2) self.maxVSpin.setObjectName(_fromUtf8("maxVSpin")) self.gridLayout_7.addWidget(self.maxVSpin, 2, 1, 1, 1) self.recalibratePCellCheck = QtGui.QCheckBox(self.pCellGroup) self.recalibratePCellCheck.setObjectName(_fromUtf8("recalibratePCellCheck")) self.gridLayout_7.addWidget(self.recalibratePCellCheck, 2, 3, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_7, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.pCellGroup, 1, 0, 1, 1) self.gridLayout_6.addWidget(self.groupBox, 2, 0, 1, 5) self.deleteBtn = QtGui.QPushButton(self.groupBox_2) self.deleteBtn.setObjectName(_fromUtf8("deleteBtn")) self.gridLayout_6.addWidget(self.deleteBtn, 1, 4, 1, 1) self.calibrateBtn = QtGui.QPushButton(self.groupBox_2) self.calibrateBtn.setObjectName(_fromUtf8("calibrateBtn")) self.gridLayout_6.addWidget(self.calibrateBtn, 1, 0, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 4, 0, 1, 3) self.checkPowerBtn = QtGui.QPushButton(Form) self.checkPowerBtn.setObjectName(_fromUtf8("checkPowerBtn")) self.gridLayout.addWidget(self.checkPowerBtn, 2, 0, 1, 1) self.shutterBtn = QtGui.QPushButton(Form) self.shutterBtn.setCheckable(True) self.shutterBtn.setObjectName(_fromUtf8("shutterBtn")) self.gridLayout.addWidget(self.shutterBtn, 2, 1, 1, 1) self.qSwitchBtn = QtGui.QPushButton(Form) self.qSwitchBtn.setCheckable(True) self.qSwitchBtn.setObjectName(_fromUtf8("qSwitchBtn")) self.gridLayout.addWidget(self.qSwitchBtn, 2, 2, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label_5.setText(_translate("Form", "Expected Output Power:", None)) self.energyCalcGroup.setTitle(_translate("Form", "For energy calculations use:", None)) self.currentPowerRadio.setText(_translate("Form", "Current Power", None)) self.expectedPowerRadio.setText(_translate("Form", "Expected Power", None)) self.label_4.setText(_translate("Form", "Current Output Power:", None)) self.label_8.setText(_translate("Form", "Power at sample (calc.):", None)) self.powerAlertCheck.setText(_translate("Form", "Alert me to power changes larger than:", None)) self.label_7.setText(_translate("Form", "Current Wavelength: ", None)) self.wavelengthCombo.setItemText(0, _translate("Form", "Set wavelength for:", None)) self.GDDEnableCheck.setText(_translate("Form", "GDD Enable", None)) self.GDDLimits.setText(_translate("Form", "GDD Limits", None)) self.groupBox_2.setTitle(_translate("Form", "Power Calibration", None)) self.calibrationList.headerItem().setText(0, _translate("Form", "Optics", None)) self.calibrationList.headerItem().setText(1, _translate("Form", "Wavelength", None)) self.calibrationList.headerItem().setText(2, _translate("Form", "Transmission", None)) self.calibrationList.headerItem().setText(3, _translate("Form", "Power at Sample", None)) self.calibrationList.headerItem().setText(4, _translate("Form", "Date", None)) self.groupBox.setTitle(_translate("Form", "Calibration Parameters", None)) self.scanLabel.setText(_translate("Form", "Measurement Duration", None)) self.measurementSpin.setSuffix(_translate("Form", " s", None)) self.label.setText(_translate("Form", "Settling Duration:", None)) self.settlingSpin.setToolTip(_translate("Form", "Specify the time it takes for the selected power meter to settle on a value.", None)) self.label_3.setText(_translate("Form", "Power Meter:", None)) self.label_12.setText(_translate("Form", "Channel:", None)) self.pCellGroup.setTitle(_translate("Form", "Pockel Cell Parameters", None)) self.label_9.setText(_translate("Form", "Minimum Voltage:", None)) self.minVSpin.setSuffix(_translate("Form", "V", None)) self.label_11.setText(_translate("Form", "Number of Steps: ", None)) self.label_10.setText(_translate("Form", "Maximum Voltage:", None)) self.maxVSpin.setSuffix(_translate("Form", "V", None)) self.recalibratePCellCheck.setText(_translate("Form", "Re-Calibrate Pockel Cell", None)) self.deleteBtn.setText(_translate("Form", "Delete", None)) self.calibrateBtn.setText(_translate("Form", "Calibrate", None)) self.checkPowerBtn.setText(_translate("Form", "Check Power", None)) self.shutterBtn.setText(_translate("Form", "Open Shutter", None)) self.qSwitchBtn.setText(_translate("Form", "Turn On QSwitch", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(840, 504) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(4) sizePolicy.setVerticalStretch(1) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) self.gridLayout_4 = QtWidgets.QGridLayout(Form) self.gridLayout_4.setContentsMargins(3, 3, 3, 3) self.gridLayout_4.setHorizontalSpacing(9) self.gridLayout_4.setVerticalSpacing(2) self.gridLayout_4.setObjectName("gridLayout_4") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize) self.gridLayout.setObjectName("gridLayout") self.cameraCombo = InterfaceCombo(Form) self.cameraCombo.setObjectName("cameraCombo") self.gridLayout.addWidget(self.cameraCombo, 0, 1, 1, 1) self.loadConfigBtn = QtWidgets.QPushButton(Form) self.loadConfigBtn.setObjectName("loadConfigBtn") self.gridLayout.addWidget(self.loadConfigBtn, 6, 0, 1, 2) self.label = QtWidgets.QLabel(Form) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.laserCombo = InterfaceCombo(Form) self.laserCombo.setObjectName("laserCombo") self.gridLayout.addWidget(self.laserCombo, 1, 1, 1, 1) self.simulateShutterCheck = QtWidgets.QCheckBox(Form) self.simulateShutterCheck.setObjectName("simulateShutterCheck") self.gridLayout.addWidget(self.simulateShutterCheck, 2, 0, 1, 2) self.enablePosCtrlCheck = QtWidgets.QCheckBox(Form) self.enablePosCtrlCheck.setChecked(True) self.enablePosCtrlCheck.setObjectName("enablePosCtrlCheck") self.gridLayout.addWidget(self.enablePosCtrlCheck, 3, 0, 1, 2) self.enableScanProgCheck = QtWidgets.QCheckBox(Form) self.enableScanProgCheck.setChecked(True) self.enableScanProgCheck.setObjectName("enableScanProgCheck") self.gridLayout.addWidget(self.enableScanProgCheck, 4, 0, 1, 2) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 0, 1, 1) self.gridLayout_4.addLayout(self.gridLayout, 0, 0, 2, 1) self.positionCtrlGroup = QtWidgets.QGroupBox(Form) self.positionCtrlGroup.setCheckable(False) self.positionCtrlGroup.setChecked(False) self.positionCtrlGroup.setObjectName("positionCtrlGroup") self.gridLayout_5 = QtWidgets.QGridLayout(self.positionCtrlGroup) self.gridLayout_5.setContentsMargins(5, 5, 5, 5) self.gridLayout_5.setObjectName("gridLayout_5") self.showPosCtrlCheck = QtWidgets.QCheckBox(self.positionCtrlGroup) self.showPosCtrlCheck.setEnabled(True) self.showPosCtrlCheck.setChecked(True) self.showPosCtrlCheck.setObjectName("showPosCtrlCheck") self.gridLayout_5.addWidget(self.showPosCtrlCheck, 1, 0, 1, 1) self.spotDisplayGroup = GroupBox(self.positionCtrlGroup) self.spotDisplayGroup.setObjectName("spotDisplayGroup") self.gridLayout_2 = QtWidgets.QGridLayout(self.spotDisplayGroup) self.gridLayout_2.setContentsMargins(3, 3, 3, 3) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName("gridLayout_2") self.sizeFromCalibrationRadio = QtWidgets.QRadioButton(self.spotDisplayGroup) self.sizeFromCalibrationRadio.setChecked(True) self.sizeFromCalibrationRadio.setObjectName("sizeFromCalibrationRadio") self.gridLayout_2.addWidget(self.sizeFromCalibrationRadio, 0, 0, 1, 2) self.sizeCustomRadio = QtWidgets.QRadioButton(self.spotDisplayGroup) self.sizeCustomRadio.setObjectName("sizeCustomRadio") self.gridLayout_2.addWidget(self.sizeCustomRadio, 1, 0, 1, 1) self.sizeSpin = SpinBox(self.spotDisplayGroup) self.sizeSpin.setSuffix("") self.sizeSpin.setMinimum(0.0) self.sizeSpin.setMaximum(100000.0) self.sizeSpin.setSingleStep(1e-06) self.sizeSpin.setProperty("value", 0.0) self.sizeSpin.setObjectName("sizeSpin") self.gridLayout_2.addWidget(self.sizeSpin, 1, 1, 1, 1) self.showLastSpotCheck = QtWidgets.QCheckBox(self.spotDisplayGroup) self.showLastSpotCheck.setObjectName("showLastSpotCheck") self.gridLayout_2.addWidget(self.showLastSpotCheck, 2, 0, 1, 1) self.gridLayout_5.addWidget(self.spotDisplayGroup, 3, 0, 1, 1) self.spotSequenceGroup = GroupBox(self.positionCtrlGroup) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.spotSequenceGroup.sizePolicy().hasHeightForWidth()) self.spotSequenceGroup.setSizePolicy(sizePolicy) self.spotSequenceGroup.setObjectName("spotSequenceGroup") self.gridLayout_3 = QtWidgets.QGridLayout(self.spotSequenceGroup) self.gridLayout_3.setContentsMargins(3, 3, 3, 3) self.gridLayout_3.setSpacing(3) self.gridLayout_3.setObjectName("gridLayout_3") self.minTimeSpin = SpinBox(self.spotSequenceGroup) self.minTimeSpin.setSuffix("") self.minTimeSpin.setDecimals(2) self.minTimeSpin.setMaximum(1000000.0) self.minTimeSpin.setObjectName("minTimeSpin") self.gridLayout_3.addWidget(self.minTimeSpin, 1, 1, 1, 1) self.timeLabel = QtWidgets.QLabel(self.spotSequenceGroup) self.timeLabel.setObjectName("timeLabel") self.gridLayout_3.addWidget(self.timeLabel, 4, 0, 1, 2) self.minDistSpin = SpinBox(self.spotSequenceGroup) self.minDistSpin.setSuffix("") self.minDistSpin.setMaximum(1000000.0) self.minDistSpin.setObjectName("minDistSpin") self.gridLayout_3.addWidget(self.minDistSpin, 2, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.spotSequenceGroup) self.label_3.setObjectName("label_3") self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1) self.recomputeBtn = QtWidgets.QPushButton(self.spotSequenceGroup) self.recomputeBtn.setObjectName("recomputeBtn") self.gridLayout_3.addWidget(self.recomputeBtn, 5, 0, 1, 2) self.label_4 = QtWidgets.QLabel(self.spotSequenceGroup) self.label_4.setObjectName("label_4") self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1) self.tdPlotWidget = PlotWidget(self.spotSequenceGroup) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tdPlotWidget.sizePolicy().hasHeightForWidth()) self.tdPlotWidget.setSizePolicy(sizePolicy) self.tdPlotWidget.setMinimumSize(Qt.QSize(0, 100)) self.tdPlotWidget.setMaximumSize(Qt.QSize(16777215, 100)) self.tdPlotWidget.setObjectName("tdPlotWidget") self.gridLayout_3.addWidget(self.tdPlotWidget, 0, 0, 1, 2) self.gridLayout_5.addWidget(self.spotSequenceGroup, 2, 0, 1, 1) self.itemTree = ParameterTree(self.positionCtrlGroup) self.itemTree.setObjectName("itemTree") self.itemTree.headerItem().setText(0, "1") self.itemTree.header().setVisible(False) self.gridLayout_5.addWidget(self.itemTree, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.positionCtrlGroup, 0, 1, 2, 1) self.scanProgramGroup = QtWidgets.QGroupBox(Form) self.scanProgramGroup.setCheckable(False) self.scanProgramGroup.setChecked(False) self.scanProgramGroup.setObjectName("scanProgramGroup") self.gridLayout_6 = QtWidgets.QGridLayout(self.scanProgramGroup) self.gridLayout_6.setContentsMargins(5, 5, 5, 5) self.gridLayout_6.setObjectName("gridLayout_6") self.gridLayout_9 = QtWidgets.QGridLayout() self.gridLayout_9.setObjectName("gridLayout_9") self.previewBtn = QtWidgets.QPushButton(self.scanProgramGroup) self.previewBtn.setCheckable(True) self.previewBtn.setObjectName("previewBtn") self.gridLayout_9.addWidget(self.previewBtn, 1, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_9.addItem(spacerItem1, 1, 1, 1, 1) self.programPreviewSlider = QtWidgets.QSlider(self.scanProgramGroup) self.programPreviewSlider.setMaximum(999) self.programPreviewSlider.setProperty("value", 666) self.programPreviewSlider.setOrientation(Qt.Qt.Horizontal) self.programPreviewSlider.setTickPosition(QtWidgets.QSlider.TicksBelow) self.programPreviewSlider.setTickInterval(333) self.programPreviewSlider.setObjectName("programPreviewSlider") self.gridLayout_9.addWidget(self.programPreviewSlider, 1, 2, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_9, 1, 0, 1, 1) self.scanProgramSplitter = QtWidgets.QSplitter(self.scanProgramGroup) self.scanProgramSplitter.setOrientation(Qt.Qt.Vertical) self.scanProgramSplitter.setObjectName("scanProgramSplitter") self.programTree = ParameterTree(self.scanProgramSplitter) self.programTree.setObjectName("programTree") self.programTree.headerItem().setText(0, "1") self.programTree.header().setVisible(False) self.programTimeline = PlotWidget(self.scanProgramSplitter) self.programTimeline.setObjectName("programTimeline") self.gridLayout_6.addWidget(self.scanProgramSplitter, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.scanProgramGroup, 1, 2, 1, 1) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.cameraCombo.setToolTip(_translate("Form", "Selects the camera module to use with the scanner. This, along with the laser device, determines which calibration files will be used.")) self.loadConfigBtn.setText(_translate("Form", "Load Last Config")) self.label.setText(_translate("Form", "Camera Module:")) self.label_2.setText(_translate("Form", "Laser Device:")) self.laserCombo.setToolTip(_translate("Form", "Selects the laser to be used.")) self.simulateShutterCheck.setText(_translate("Form", "Simulate Shutter")) self.enablePosCtrlCheck.setText(_translate("Form", "Enable position controls")) self.enableScanProgCheck.setText(_translate("Form", "Enable scan programs")) self.positionCtrlGroup.setTitle(_translate("Form", "Position Controls")) self.showPosCtrlCheck.setToolTip(_translate("Form", "Hide all items from view.")) self.showPosCtrlCheck.setText(_translate("Form", "Show position controls")) self.spotDisplayGroup.setTitle(_translate("Form", "Spot Display")) self.sizeFromCalibrationRadio.setToolTip(_translate("Form", "Causes target spots to be displayed at the size determined by the calibration file. Does not affect how data is collected.")) self.sizeFromCalibrationRadio.setText(_translate("Form", "Use size from scanner calibration")) self.sizeCustomRadio.setToolTip(_translate("Form", "Lets the user change the display size of target spots. Does not change the way data is collected.")) self.sizeCustomRadio.setText(_translate("Form", "Use custom size:")) self.sizeSpin.setToolTip(_translate("Form", "Specifies the display size of the target spots. Does not change the way data is collected.")) self.showLastSpotCheck.setText(_translate("Form", "Show last spot")) self.spotSequenceGroup.setTitle(_translate("Form", "Spot Sequence")) self.minTimeSpin.setToolTip(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">When stimulating a sequence of points, this is the minimum amount of time that must pass before stimulating the same spot a second time. Points farther away will require smaller delays. Points farther than the minimum distance (specified below) will require no delay.</span></p></body></html>")) self.timeLabel.setText(_translate("Form", "Total Time:")) self.minDistSpin.setToolTip(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">When stimulating a sequence of points, this is the minimum distance between two spots such that no time delay is required between stimulating them. Points closer than this distance will require some delay, which is determined in part by the minimum time specified above.</span></p></body></html>")) self.label_3.setText(_translate("Form", "Minimum time")) self.recomputeBtn.setText(_translate("Form", "Recompute Order")) self.label_4.setText(_translate("Form", "Minimum distance")) self.scanProgramGroup.setTitle(_translate("Form", "Scan Program Controls")) self.previewBtn.setText(_translate("Form", "Preview"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(231, 366) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.triggerDevList = QtGui.QComboBox(Form) self.triggerDevList.setObjectName(_fromUtf8("triggerDevList")) self.triggerDevList.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.triggerDevList, 1, 1, 1, 2) self.label_3 = QtGui.QLabel(Form) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1) self.numPtsLabel = QtGui.QLabel(Form) self.numPtsLabel.setObjectName(_fromUtf8("numPtsLabel")) self.gridLayout.addWidget(self.numPtsLabel, 0, 1, 1, 1) self.groupBox = QtGui.QGroupBox(Form) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setMargin(0) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.denoiseCombo = QtGui.QComboBox(self.groupBox) self.denoiseCombo.setObjectName(_fromUtf8("denoiseCombo")) self.denoiseCombo.addItem(_fromUtf8("")) self.denoiseCombo.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.denoiseCombo, 0, 1, 1, 1) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 0, 0, 1, 1) self.label_9 = QtGui.QLabel(self.groupBox) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_3.addWidget(self.label_9, 2, 0, 1, 1) self.filterCombo = QtGui.QComboBox(self.groupBox) self.filterCombo.setObjectName(_fromUtf8("filterCombo")) self.filterCombo.addItem(_fromUtf8("")) self.filterCombo.addItem(_fromUtf8("")) self.filterCombo.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.filterCombo, 2, 1, 1, 1) self.label_8 = QtGui.QLabel(self.groupBox) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_3.addWidget(self.label_8, 5, 0, 1, 1) self.downsampleSpin = QtGui.QSpinBox(self.groupBox) self.downsampleSpin.setMinimum(1) self.downsampleSpin.setMaximum(10000000) self.downsampleSpin.setProperty("value", 1) self.downsampleSpin.setObjectName(_fromUtf8("downsampleSpin")) self.gridLayout_3.addWidget(self.downsampleSpin, 5, 1, 1, 1) self.butterworthCtrl = QtGui.QWidget(self.groupBox) self.butterworthCtrl.setObjectName(_fromUtf8("butterworthCtrl")) self.gridLayout_4 = QtGui.QGridLayout(self.butterworthCtrl) self.gridLayout_4.setMargin(0) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_15 = QtGui.QLabel(self.butterworthCtrl) self.label_15.setObjectName(_fromUtf8("label_15")) self.gridLayout_4.addWidget(self.label_15, 0, 3, 1, 1) self.butterworthPassbandSpin = SpinBox(self.butterworthCtrl) self.butterworthPassbandSpin.setMaximum(1000.0) self.butterworthPassbandSpin.setProperty("value", 1.0) self.butterworthPassbandSpin.setObjectName( _fromUtf8("butterworthPassbandSpin")) self.gridLayout_4.addWidget(self.butterworthPassbandSpin, 1, 1, 1, 2) self.label_14 = QtGui.QLabel(self.butterworthCtrl) self.label_14.setObjectName(_fromUtf8("label_14")) self.gridLayout_4.addWidget(self.label_14, 0, 1, 1, 2) self.label_5 = QtGui.QLabel(self.butterworthCtrl) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_4.addWidget(self.label_5, 1, 0, 1, 1) self.butterworthPassDBSpin = QtGui.QDoubleSpinBox(self.butterworthCtrl) self.butterworthPassDBSpin.setProperty("value", 3.0) self.butterworthPassDBSpin.setObjectName( _fromUtf8("butterworthPassDBSpin")) self.gridLayout_4.addWidget(self.butterworthPassDBSpin, 1, 3, 1, 1) self.label_6 = QtGui.QLabel(self.butterworthCtrl) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_4.addWidget(self.label_6, 2, 0, 1, 1) self.butterworthStopbandSpin = SpinBox(self.butterworthCtrl) self.butterworthStopbandSpin.setProperty("value", 2.0) self.butterworthStopbandSpin.setObjectName( _fromUtf8("butterworthStopbandSpin")) self.gridLayout_4.addWidget(self.butterworthStopbandSpin, 2, 1, 1, 2) self.butterworthStopDBSpin = QtGui.QDoubleSpinBox(self.butterworthCtrl) self.butterworthStopDBSpin.setProperty("value", 40.0) self.butterworthStopDBSpin.setObjectName( _fromUtf8("butterworthStopDBSpin")) self.gridLayout_4.addWidget(self.butterworthStopDBSpin, 2, 3, 1, 1) self.butterworthBidirCheck = QtGui.QCheckBox(self.butterworthCtrl) self.butterworthBidirCheck.setObjectName( _fromUtf8("butterworthBidirCheck")) self.gridLayout_4.addWidget(self.butterworthBidirCheck, 3, 1, 1, 2) self.gridLayout_3.addWidget(self.butterworthCtrl, 4, 1, 1, 1) self.besselCtrl = QtGui.QWidget(self.groupBox) self.besselCtrl.setObjectName(_fromUtf8("besselCtrl")) self.gridLayout_5 = QtGui.QGridLayout(self.besselCtrl) self.gridLayout_5.setMargin(0) self.gridLayout_5.setSpacing(0) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.besselCutoffSpin = SpinBox(self.besselCtrl) self.besselCutoffSpin.setProperty("value", 2.0) self.besselCutoffSpin.setObjectName(_fromUtf8("besselCutoffSpin")) self.gridLayout_5.addWidget(self.besselCutoffSpin, 0, 1, 1, 2) self.label_12 = QtGui.QLabel(self.besselCtrl) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_5.addWidget(self.label_12, 1, 0, 1, 1) self.label_11 = QtGui.QLabel(self.besselCtrl) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_5.addWidget(self.label_11, 0, 0, 1, 1) self.besselOrderSpin = QtGui.QSpinBox(self.besselCtrl) self.besselOrderSpin.setMinimum(1) self.besselOrderSpin.setMaximum(16) self.besselOrderSpin.setProperty("value", 4) self.besselOrderSpin.setObjectName(_fromUtf8("besselOrderSpin")) self.gridLayout_5.addWidget(self.besselOrderSpin, 1, 1, 1, 2) self.besselBidirCheck = QtGui.QCheckBox(self.besselCtrl) self.besselBidirCheck.setObjectName(_fromUtf8("besselBidirCheck")) self.gridLayout_5.addWidget(self.besselBidirCheck, 2, 1, 1, 2) self.gridLayout_3.addWidget(self.besselCtrl, 3, 1, 1, 1) self.denoiseCtrl = QtGui.QWidget(self.groupBox) self.denoiseCtrl.setObjectName(_fromUtf8("denoiseCtrl")) self.gridLayout_6 = QtGui.QGridLayout(self.denoiseCtrl) self.gridLayout_6.setMargin(0) self.gridLayout_6.setSpacing(0) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.label_13 = QtGui.QLabel(self.denoiseCtrl) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_6.addWidget(self.label_13, 0, 0, 1, 1) self.denoiseThresholdSpin = QtGui.QDoubleSpinBox(self.denoiseCtrl) self.denoiseThresholdSpin.setProperty("value", 4.0) self.denoiseThresholdSpin.setObjectName( _fromUtf8("denoiseThresholdSpin")) self.gridLayout_6.addWidget(self.denoiseThresholdSpin, 0, 1, 1, 1) self.label_16 = QtGui.QLabel(self.denoiseCtrl) self.label_16.setObjectName(_fromUtf8("label_16")) self.gridLayout_6.addWidget(self.label_16, 1, 0, 1, 1) self.denoiseWidthSpin = QtGui.QSpinBox(self.denoiseCtrl) self.denoiseWidthSpin.setMinimum(1) self.denoiseWidthSpin.setMaximum(100000) self.denoiseWidthSpin.setProperty("value", 1) self.denoiseWidthSpin.setObjectName(_fromUtf8("denoiseWidthSpin")) self.gridLayout_6.addWidget(self.denoiseWidthSpin, 1, 1, 1, 1) self.gridLayout_3.addWidget(self.denoiseCtrl, 1, 1, 1, 1) self.gridLayout.addWidget(self.groupBox, 3, 0, 1, 3) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setMargin(0) self.gridLayout_2.setSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.groupBox_2) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.rateSpin = SpinBox(self.groupBox_2) self.rateSpin.setMinimum(0.01) self.rateSpin.setMaximum(1000000.0) self.rateSpin.setProperty("value", 40000.0) self.rateSpin.setObjectName(_fromUtf8("rateSpin")) self.gridLayout_2.addWidget(self.rateSpin, 0, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) self.periodSpin = SpinBox(self.groupBox_2) self.periodSpin.setMinimum(1.0) self.periodSpin.setMaximum(10000.0) self.periodSpin.setProperty("value", 1.0) self.periodSpin.setObjectName(_fromUtf8("periodSpin")) self.gridLayout_2.addWidget(self.periodSpin, 1, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 2, 0, 1, 3) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label_2.setText(_translate("Form", "Trigger", None)) self.triggerDevList.setItemText(0, _translate("Form", "No Trigger", None)) self.label_3.setText(_translate("Form", "Points", None)) self.numPtsLabel.setText(_translate("Form", "0", None)) self.groupBox.setTitle(_translate("Form", "Post-processing", None)) self.denoiseCombo.setToolTip( _translate( "Form", "Denoise method to use.\n" "- Pointwise method compares each point to its neighbors", None)) self.denoiseCombo.setItemText(0, _translate("Form", "None", None)) self.denoiseCombo.setItemText(1, _translate("Form", "Pointwise", None)) self.label_7.setText(_translate("Form", "Denoise", None)) self.label_9.setText(_translate("Form", "Filter", None)) self.filterCombo.setToolTip( _translate( "Form", "Lowpass filter types to use for AI channels. Filter is applied before downsampling.", None)) self.filterCombo.setItemText(0, _translate("Form", "None", None)) self.filterCombo.setItemText(1, _translate("Form", "Bessel", None)) self.filterCombo.setItemText(2, _translate("Form", "Butterworth", None)) self.label_8.setText(_translate("Form", "Downsample", None)) self.downsampleSpin.setToolTip( _translate( "Form", "Amount DAQ data should be downsampled before returning results (output data is not downsampled before sending to the DAQ). DI/DO data is downsampled by subsampling, AI/AO data is downsampled by averaging. ", None)) self.downsampleSpin.setSuffix(_translate("Form", "x", None)) self.label_15.setText(_translate("Form", "dB", None)) self.butterworthPassbandSpin.setToolTip( _translate( "Form", "Upper frequency of butterworth passband in multiples of maximum nyquist frequency (sample rate / 2).", None)) self.label_14.setText(_translate("Form", "Freq.", None)) self.label_5.setText(_translate("Form", "pass", None)) self.butterworthPassDBSpin.setToolTip( _translate("Form", "Maximum amplitude of loss in passband", None)) self.label_6.setText(_translate("Form", "stop", None)) self.butterworthStopbandSpin.setToolTip( _translate( "Form", "Lower frequency of butterworth stopband in multiples of maximum nyquist frequency (sample rate / 2).", None)) self.butterworthStopDBSpin.setToolTip( _translate("Form", "Minimum amplitude of loss in stopband", None)) self.butterworthBidirCheck.setText( _translate("Form", "Bidirectional", None)) self.label_12.setText(_translate("Form", "Order", None)) self.label_11.setText(_translate("Form", "Cutoff", None)) self.besselBidirCheck.setText(_translate("Form", "Bidirectional", None)) self.label_13.setText(_translate("Form", "Threshold", None)) self.denoiseThresholdSpin.setToolTip( _translate("Form", "Minimum threshold of detected noise events", None)) self.label_16.setText(_translate("Form", "Width", None)) self.denoiseWidthSpin.setToolTip( _translate("Form", "Maximum radius of detected noise events", None)) self.groupBox_2.setTitle(_translate("Form", "Timing", None)) self.label.setText(_translate("Form", "Rate", None)) self.rateSpin.setSuffix(_translate("Form", " Hz", None)) self.label_4.setText(_translate("Form", "Period", None)) self.periodSpin.setSuffix(_translate("Form", " μs", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(198, 256) self.verticalLayout = QtGui.QVBoxLayout(Form) self.verticalLayout.setSpacing(15) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.recordCtrlWidget = QtGui.QWidget(Form) self.recordCtrlWidget.setObjectName(_fromUtf8("recordCtrlWidget")) self.gridLayout_3 = QtGui.QGridLayout(self.recordCtrlWidget) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.acquireVideoBtn = QtGui.QPushButton(self.recordCtrlWidget) self.acquireVideoBtn.setCheckable(True) self.acquireVideoBtn.setObjectName(_fromUtf8("acquireVideoBtn")) self.gridLayout_3.addWidget(self.acquireVideoBtn, 0, 1, 1, 1) self.acquireFrameBtn = QtGui.QPushButton(self.recordCtrlWidget) self.acquireFrameBtn.setObjectName(_fromUtf8("acquireFrameBtn")) self.gridLayout_3.addWidget(self.acquireFrameBtn, 0, 0, 1, 1) self.line = QtGui.QFrame(self.recordCtrlWidget) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout_3.addWidget(self.line, 4, 0, 1, 2) self.recordStackBtn = QtGui.QPushButton(self.recordCtrlWidget) self.recordStackBtn.setCheckable(True) self.recordStackBtn.setFlat(False) self.recordStackBtn.setObjectName(_fromUtf8("recordStackBtn")) self.gridLayout_3.addWidget(self.recordStackBtn, 6, 1, 1, 1) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.recordXframesCheck = QtGui.QCheckBox(self.recordCtrlWidget) self.recordXframesCheck.setObjectName(_fromUtf8("recordXframesCheck")) self.gridLayout.addWidget(self.recordXframesCheck, 0, 0, 1, 1) self.recordXframesSpin = QtGui.QSpinBox(self.recordCtrlWidget) self.recordXframesSpin.setEnabled(True) self.recordXframesSpin.setMinimum(1) self.recordXframesSpin.setMaximum(1000000) self.recordXframesSpin.setProperty("value", 100) self.recordXframesSpin.setObjectName(_fromUtf8("recordXframesSpin")) self.gridLayout.addWidget(self.recordXframesSpin, 0, 1, 1, 2) self.label_9 = QtGui.QLabel(self.recordCtrlWidget) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 1, 0, 1, 1) self.stackSizeLabel = ValueLabel(self.recordCtrlWidget) self.stackSizeLabel.setObjectName(_fromUtf8("stackSizeLabel")) self.gridLayout.addWidget(self.stackSizeLabel, 1, 1, 1, 1) self.label = QtGui.QLabel(self.recordCtrlWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 2, 0, 1, 1) self.fpsLabel = ValueLabel(self.recordCtrlWidget) self.fpsLabel.setObjectName(_fromUtf8("fpsLabel")) self.gridLayout.addWidget(self.fpsLabel, 2, 1, 1, 1) self.label_7 = QtGui.QLabel(self.recordCtrlWidget) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.displayFpsLabel = ValueLabel(self.recordCtrlWidget) self.displayFpsLabel.setObjectName(_fromUtf8("displayFpsLabel")) self.gridLayout.addWidget(self.displayFpsLabel, 3, 1, 1, 1) self.displayPercentLabel = ValueLabel(self.recordCtrlWidget) self.displayPercentLabel.setObjectName( _fromUtf8("displayPercentLabel")) self.gridLayout.addWidget(self.displayPercentLabel, 3, 2, 1, 1) self.gridLayout_3.addLayout(self.gridLayout, 7, 0, 1, 2) self.saveFrameBtn = FeedbackButton(self.recordCtrlWidget) self.saveFrameBtn.setObjectName(_fromUtf8("saveFrameBtn")) self.gridLayout_3.addWidget(self.saveFrameBtn, 6, 0, 1, 1) self.frameToBgBtn = QtGui.QPushButton(self.recordCtrlWidget) self.frameToBgBtn.setObjectName(_fromUtf8("frameToBgBtn")) self.gridLayout_3.addWidget(self.frameToBgBtn, 3, 0, 1, 2) self.verticalLayout.addWidget(self.recordCtrlWidget) self.devCtrlWidget = QtGui.QWidget(Form) self.devCtrlWidget.setObjectName(_fromUtf8("devCtrlWidget")) self.gridLayout_4 = QtGui.QGridLayout(self.devCtrlWidget) self.gridLayout_4.setSpacing(0) self.gridLayout_4.setContentsMargins(-1, 0, -1, -1) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.btnFullFrame = QtGui.QPushButton(self.devCtrlWidget) self.btnFullFrame.setObjectName(_fromUtf8("btnFullFrame")) self.gridLayout_4.addWidget(self.btnFullFrame, 2, 0, 1, 2) self.label_3 = QtGui.QLabel(self.devCtrlWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 1, 0, 1, 1) self.label_2 = QtGui.QLabel(self.devCtrlWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_4.addWidget(self.label_2, 0, 0, 1, 1) self.spinExposure = SpinBox(self.devCtrlWidget) self.spinExposure.setMinimumSize(QtCore.QSize(80, 0)) self.spinExposure.setObjectName(_fromUtf8("spinExposure")) self.gridLayout_4.addWidget(self.spinExposure, 1, 1, 1, 1) self.binningCombo = QtGui.QComboBox(self.devCtrlWidget) self.binningCombo.setObjectName(_fromUtf8("binningCombo")) self.gridLayout_4.addWidget(self.binningCombo, 0, 1, 1, 1) self.verticalLayout.addWidget(self.devCtrlWidget) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.acquireVideoBtn.setToolTip( _translate( "Form", "Start/stop camera acquisition.\n" "In general, this can just stay on always.", None)) self.acquireVideoBtn.setText(_translate("Form", "Acquire Video", None)) self.acquireFrameBtn.setText(_translate("Form", "Acquire Frame", None)) self.recordStackBtn.setToolTip( _translate( "Form", "Start/stop recording frames as they are acquired. \n" "Frames are written to the current storage directory set in \n" "the data manager window.", None)) self.recordStackBtn.setText(_translate("Form", "Record Stack", None)) self.recordXframesCheck.setText(_translate("Form", "Stack Limit", None)) self.recordXframesSpin.setSuffix(_translate("Form", " frames", None)) self.label_9.setText(_translate("Form", "Stack Size:", None)) self.stackSizeLabel.setText(_translate("Form", "0 frames", None)) self.label.setText(_translate("Form", "Acquiring:", None)) self.fpsLabel.setText(_translate("Form", "0 fps", None)) self.label_7.setText(_translate("Form", "Displaying:", None)) self.displayFpsLabel.setText(_translate("Form", "0 fps", None)) self.displayPercentLabel.setText(_translate("Form", "(0%)", None)) self.saveFrameBtn.setText(_translate("Form", "Save Frame", None)) self.frameToBgBtn.setText( _translate("Form", "Last Frame → Background", None)) self.btnFullFrame.setToolTip( _translate( "Form", "Set the region of interest to the maximum possible area.", None)) self.btnFullFrame.setText(_translate("Form", "Full Frame", None)) self.label_3.setText(_translate("Form", "Exposure", None)) self.label_2.setText(_translate("Form", "Binning", None)) self.spinExposure.setToolTip( _translate("Form", "Sets the exposure time for each frame.", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(240, 194) self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.holdingSpin = SpinBox(Form) self.holdingSpin.setObjectName("holdingSpin") self.gridLayout.addWidget(self.holdingSpin, 2, 2, 1, 1) self.scaleSpin = SpinBox(Form) self.scaleSpin.setObjectName("scaleSpin") self.gridLayout.addWidget(self.scaleSpin, 3, 2, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.inputRadio = QtWidgets.QRadioButton(Form) self.inputRadio.setObjectName("inputRadio") self.horizontalLayout_2.addWidget(self.inputRadio) self.outputRadio = QtWidgets.QRadioButton(Form) self.outputRadio.setObjectName("outputRadio") self.horizontalLayout_2.addWidget(self.outputRadio) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 3, 1, 2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(Form) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.channelCombo = QtWidgets.QComboBox(Form) self.channelCombo.setObjectName("channelCombo") self.horizontalLayout.addWidget(self.channelCombo) self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 3) self.scaleDefaultBtn = QtWidgets.QPushButton(Form) self.scaleDefaultBtn.setObjectName("scaleDefaultBtn") self.gridLayout.addWidget(self.scaleDefaultBtn, 3, 3, 1, 1) self.offsetDefaultBtn = QtWidgets.QPushButton(Form) self.offsetDefaultBtn.setObjectName("offsetDefaultBtn") self.gridLayout.addWidget(self.offsetDefaultBtn, 4, 3, 1, 1) self.invertCheck = QtWidgets.QCheckBox(Form) self.invertCheck.setObjectName("invertCheck") self.gridLayout.addWidget(self.invertCheck, 2, 3, 1, 1) self.nameLabel = QtWidgets.QLabel(Form) font = Qt.QFont() font.setPointSize(13) font.setBold(True) font.setWeight(75) self.nameLabel.setFont(font) self.nameLabel.setObjectName("nameLabel") self.gridLayout.addWidget(self.nameLabel, 0, 0, 1, 3) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 5, 3, 1, 1) self.offsetSpin = SpinBox(Form) self.offsetSpin.setObjectName("offsetSpin") self.gridLayout.addWidget(self.offsetSpin, 4, 2, 1, 1) self.holdingLabel = QtWidgets.QLabel(Form) self.holdingLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.holdingLabel.setObjectName("holdingLabel") self.gridLayout.addWidget(self.holdingLabel, 2, 1, 1, 1) self.scaleLabel = QtWidgets.QLabel(Form) self.scaleLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.scaleLabel.setObjectName("scaleLabel") self.gridLayout.addWidget(self.scaleLabel, 3, 1, 1, 1) self.offsetLabel = QtWidgets.QLabel(Form) self.offsetLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.offsetLabel.setObjectName("offsetLabel") self.gridLayout.addWidget(self.offsetLabel, 4, 1, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 2, 0, 3, 1) spacerItem3 = QtWidgets.QSpacerItem(42, 1, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem3, 2, 4, 3, 1) self.gridLayout.setColumnStretch(1, 1) self.gridLayout.setColumnStretch(2, 2) self.gridLayout.setColumnStretch(3, 2) self.gridLayout.setColumnStretch(4, 4) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.inputRadio.setText(_translate("Form", "Input")) self.outputRadio.setText(_translate("Form", "Output")) self.label.setText(_translate("Form", "Channel:")) self.scaleDefaultBtn.setText(_translate("Form", "Default")) self.offsetDefaultBtn.setText(_translate("Form", "Default")) self.invertCheck.setText(_translate("Form", "Invert")) self.nameLabel.setText(_translate("Form", "ChannelName")) self.holdingLabel.setText(_translate("Form", "Holding:")) self.scaleLabel.setText(_translate("Form", "Scale:")) self.offsetLabel.setText(_translate("Form", "Offset:"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(242, 159) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setMargin(0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.spotSizeLabel = QtGui.QLabel(Form) self.spotSizeLabel.setObjectName(_fromUtf8("spotSizeLabel")) self.gridLayout.addWidget(self.spotSizeLabel, 0, 0, 1, 1) self.sizeFromCalibrationRadio = QtGui.QRadioButton(Form) self.sizeFromCalibrationRadio.setChecked(True) self.sizeFromCalibrationRadio.setObjectName(_fromUtf8("sizeFromCalibrationRadio")) self.gridLayout.addWidget(self.sizeFromCalibrationRadio, 1, 0, 1, 3) self.sizeCustomRadio = QtGui.QRadioButton(Form) self.sizeCustomRadio.setObjectName(_fromUtf8("sizeCustomRadio")) self.gridLayout.addWidget(self.sizeCustomRadio, 2, 0, 1, 1) self.sizeSpin = SpinBox(Form) self.sizeSpin.setSuffix(_fromUtf8("")) self.sizeSpin.setMinimum(0.0) self.sizeSpin.setMaximum(100000.0) self.sizeSpin.setSingleStep(1e-06) self.sizeSpin.setProperty("value", 0.0) self.sizeSpin.setObjectName(_fromUtf8("sizeSpin")) self.gridLayout.addWidget(self.sizeSpin, 2, 1, 1, 2) self.loadSpotImagesBtn = QtGui.QPushButton(Form) self.loadSpotImagesBtn.setObjectName(_fromUtf8("loadSpotImagesBtn")) self.gridLayout.addWidget(self.loadSpotImagesBtn, 6, 0, 1, 3) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 7, 0, 1, 1) self.spotFrameSpin = QtGui.QSpinBox(Form) self.spotFrameSpin.setProperty("value", 1) self.spotFrameSpin.setObjectName(_fromUtf8("spotFrameSpin")) self.gridLayout.addWidget(self.spotFrameSpin, 7, 1, 1, 2) self.bgFrameCheck = QtGui.QCheckBox(Form) self.bgFrameCheck.setChecked(True) self.bgFrameCheck.setObjectName(_fromUtf8("bgFrameCheck")) self.gridLayout.addWidget(self.bgFrameCheck, 8, 0, 1, 1) self.bgFrameSpin = QtGui.QSpinBox(Form) self.bgFrameSpin.setObjectName(_fromUtf8("bgFrameSpin")) self.gridLayout.addWidget(self.bgFrameSpin, 8, 1, 1, 2) self.line = QtGui.QFrame(Form) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.gridLayout.addWidget(self.line, 5, 0, 1, 3) self.line_2 = QtGui.QFrame(Form) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.gridLayout.addWidget(self.line_2, 3, 0, 1, 3) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1) self.outlineColorBtn = ColorButton(Form) self.outlineColorBtn.setText(_fromUtf8("")) self.outlineColorBtn.setObjectName(_fromUtf8("outlineColorBtn")) self.gridLayout.addWidget(self.outlineColorBtn, 4, 1, 1, 2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.spotSizeLabel.setText(_translate("Form", "Spot Display Size:", None)) self.sizeFromCalibrationRadio.setText(_translate("Form", "Use size from calibration", None)) self.sizeCustomRadio.setText(_translate("Form", "Use custom size:", None)) self.loadSpotImagesBtn.setToolTip( _translate( "Form", "Generates a single frame which combines the photostimulation spot images from each scan point. ", None, ) ) self.loadSpotImagesBtn.setText(_translate("Form", "Load Spot Images", None)) self.label.setText(_translate("Form", "Spot Frame Number", None)) self.bgFrameCheck.setText(_translate("Form", "Background Frame", None)) self.label_2.setText(_translate("Form", "Outline Color", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(529, 353) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.groupBox = GroupBox(Form) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.groupBox.setFont(font) self.groupBox.setCheckable(False) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_2.setContentsMargins(5, 0, 0, 0) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.preSetCheck = QtWidgets.QCheckBox(self.groupBox) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.preSetCheck.setFont(font) self.preSetCheck.setObjectName("preSetCheck") self.gridLayout.addWidget(self.preSetCheck, 0, 0, 1, 1) self.preSetSpin = SpinBox(self.groupBox) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.preSetSpin.setFont(font) self.preSetSpin.setMinimum(-999999999.0) self.preSetSpin.setMaximum(999999999.0) self.preSetSpin.setObjectName("preSetSpin") self.gridLayout.addWidget(self.preSetSpin, 0, 1, 1, 1) self.holdingCheck = QtWidgets.QCheckBox(self.groupBox) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.holdingCheck.setFont(font) self.holdingCheck.setObjectName("holdingCheck") self.gridLayout.addWidget(self.holdingCheck, 1, 0, 1, 1) self.holdingSpin = SpinBox(self.groupBox) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.holdingSpin.setFont(font) self.holdingSpin.setMinimum(-999999999.0) self.holdingSpin.setMaximum(999999999.0) self.holdingSpin.setObjectName("holdingSpin") self.gridLayout.addWidget(self.holdingSpin, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.frame = QtWidgets.QFrame(self.groupBox) self.frame.setFrameShape(QtWidgets.QFrame.Box) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout = QtWidgets.QVBoxLayout(self.frame) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.functionCheck = QtWidgets.QCheckBox(self.frame) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.functionCheck.setFont(font) self.functionCheck.setObjectName("functionCheck") self.horizontalLayout.addWidget(self.functionCheck) self.displayCheck = QtWidgets.QCheckBox(self.frame) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.displayCheck.setFont(font) self.displayCheck.setChecked(True) self.displayCheck.setObjectName("displayCheck") self.horizontalLayout.addWidget(self.displayCheck) self.verticalLayout.addLayout(self.horizontalLayout) self.waveGeneratorWidget = StimGenerator(self.frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.waveGeneratorWidget.sizePolicy().hasHeightForWidth()) self.waveGeneratorWidget.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(False) font.setWeight(50) self.waveGeneratorWidget.setFont(font) self.waveGeneratorWidget.setObjectName("waveGeneratorWidget") self.verticalLayout.addWidget(self.waveGeneratorWidget) self.verticalLayout_2.addWidget(self.frame) self.verticalLayout_3.addWidget(self.groupBox) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox.setTitle(_translate("Form", "GroupBox")) self.preSetCheck.setText(_translate("Form", "Pre-set")) self.holdingCheck.setText(_translate("Form", "Holding")) self.functionCheck.setText(_translate("Form", "Enable Function")) self.displayCheck.setText(_translate("Form", "Display"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(384, 221) self.gridLayout_4 = QtWidgets.QGridLayout(Form) self.gridLayout_4.setContentsMargins(3, 3, 3, 3) self.gridLayout_4.setSpacing(3) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setAlignment(Qt.Qt.AlignCenter) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_3.setContentsMargins(5, 5, 5, 5) self.gridLayout_3.setObjectName("gridLayout_3") self.widget = QtWidgets.QWidget(self.groupBox_2) self.widget.setMinimumSize(Qt.QSize(100, 0)) self.widget.setObjectName("widget") self.gridLayout = QtWidgets.QGridLayout(self.widget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setHorizontalSpacing(10) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName("gridLayout") self.label_5 = QtWidgets.QLabel(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1) self.xPosLabel = QtWidgets.QLabel(self.widget) self.xPosLabel.setObjectName("xPosLabel") self.gridLayout.addWidget(self.xPosLabel, 0, 1, 1, 1) self.label_7 = QtWidgets.QLabel(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_7.sizePolicy().hasHeightForWidth()) self.label_7.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.yPosLabel = QtWidgets.QLabel(self.widget) self.yPosLabel.setObjectName("yPosLabel") self.gridLayout.addWidget(self.yPosLabel, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_8.sizePolicy().hasHeightForWidth()) self.label_8.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label_8.setFont(font) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.zPosLabel = QtWidgets.QLabel(self.widget) self.zPosLabel.setObjectName("zPosLabel") self.gridLayout.addWidget(self.zPosLabel, 2, 1, 1, 1) self.updatePosBtn = QtWidgets.QPushButton(self.widget) self.updatePosBtn.setObjectName("updatePosBtn") self.gridLayout.addWidget(self.updatePosBtn, 3, 0, 1, 2) self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 1) self.joyBtn = JoystickButton(self.groupBox_2) self.joyBtn.setMinimumSize(Qt.QSize(50, 50)) self.joyBtn.setText("") self.joyBtn.setObjectName("joyBtn") self.gridLayout_3.addWidget(self.joyBtn, 0, 2, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.fineStepRadio = QtWidgets.QRadioButton(self.groupBox_2) self.fineStepRadio.setChecked(True) self.fineStepRadio.setObjectName("fineStepRadio") self.horizontalLayout_2.addWidget(self.fineStepRadio) self.coarseStepRadio = QtWidgets.QRadioButton(self.groupBox_2) self.coarseStepRadio.setObjectName("coarseStepRadio") self.horizontalLayout_2.addWidget(self.coarseStepRadio) self.gridLayout_3.addLayout(self.horizontalLayout_2, 1, 0, 1, 3) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_3.addItem(spacerItem, 0, 1, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1) self.limitsGroup = QtWidgets.QGroupBox(Form) self.limitsGroup.setAlignment(Qt.Qt.AlignCenter) self.limitsGroup.setCheckable(False) self.limitsGroup.setObjectName("limitsGroup") self.gridLayout_2 = QtWidgets.QGridLayout(self.limitsGroup) self.gridLayout_2.setContentsMargins(3, 0, 3, 0) self.gridLayout_2.setSpacing(1) self.gridLayout_2.setObjectName("gridLayout_2") self.xMinBtn = QtWidgets.QPushButton(self.limitsGroup) self.xMinBtn.setMaximumSize(Qt.QSize(70, 20)) self.xMinBtn.setObjectName("xMinBtn") self.gridLayout_2.addWidget(self.xMinBtn, 0, 3, 1, 1) self.xMinLabel = QtWidgets.QLabel(self.limitsGroup) self.xMinLabel.setObjectName("xMinLabel") self.gridLayout_2.addWidget(self.xMinLabel, 0, 4, 1, 1) self.xMaxLabel = QtWidgets.QLabel(self.limitsGroup) self.xMaxLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.xMaxLabel.setObjectName("xMaxLabel") self.gridLayout_2.addWidget(self.xMaxLabel, 0, 6, 1, 1) self.xMaxBtn = QtWidgets.QPushButton(self.limitsGroup) self.xMaxBtn.setMaximumSize(Qt.QSize(70, 20)) self.xMaxBtn.setObjectName("xMaxBtn") self.gridLayout_2.addWidget(self.xMaxBtn, 0, 7, 1, 1) self.yMinBtn = QtWidgets.QPushButton(self.limitsGroup) self.yMinBtn.setMaximumSize(Qt.QSize(70, 20)) self.yMinBtn.setObjectName("yMinBtn") self.gridLayout_2.addWidget(self.yMinBtn, 1, 3, 1, 1) self.yMinLabel = QtWidgets.QLabel(self.limitsGroup) self.yMinLabel.setObjectName("yMinLabel") self.gridLayout_2.addWidget(self.yMinLabel, 1, 4, 1, 1) self.label_3 = QtWidgets.QLabel(self.limitsGroup) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 1, 5, 1, 1) self.yMaxLabel = QtWidgets.QLabel(self.limitsGroup) self.yMaxLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.yMaxLabel.setObjectName("yMaxLabel") self.gridLayout_2.addWidget(self.yMaxLabel, 1, 6, 1, 1) self.yMaxBtn = QtWidgets.QPushButton(self.limitsGroup) self.yMaxBtn.setMaximumSize(Qt.QSize(70, 20)) self.yMaxBtn.setObjectName("yMaxBtn") self.gridLayout_2.addWidget(self.yMaxBtn, 1, 7, 1, 1) self.zMinBtn = QtWidgets.QPushButton(self.limitsGroup) self.zMinBtn.setMaximumSize(Qt.QSize(70, 20)) self.zMinBtn.setObjectName("zMinBtn") self.gridLayout_2.addWidget(self.zMinBtn, 2, 3, 1, 1) self.zMinLabel = QtWidgets.QLabel(self.limitsGroup) self.zMinLabel.setObjectName("zMinLabel") self.gridLayout_2.addWidget(self.zMinLabel, 2, 4, 1, 1) self.label = QtWidgets.QLabel(self.limitsGroup) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 2, 5, 1, 1) self.zMaxLabel = QtWidgets.QLabel(self.limitsGroup) self.zMaxLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.zMaxLabel.setObjectName("zMaxLabel") self.gridLayout_2.addWidget(self.zMaxLabel, 2, 6, 1, 1) self.zMaxBtn = QtWidgets.QPushButton(self.limitsGroup) self.zMaxBtn.setMaximumSize(Qt.QSize(70, 20)) self.zMaxBtn.setObjectName("zMaxBtn") self.gridLayout_2.addWidget(self.zMaxBtn, 2, 7, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_4 = QtWidgets.QLabel(self.limitsGroup) self.label_4.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.horizontalLayout_3.addWidget(self.label_4) self.maxSpeedSpin = SpinBox(self.limitsGroup) self.maxSpeedSpin.setObjectName("maxSpeedSpin") self.horizontalLayout_3.addWidget(self.maxSpeedSpin) self.gridLayout_2.addLayout(self.horizontalLayout_3, 3, 3, 1, 5) self.xMinCheck = QtWidgets.QCheckBox(self.limitsGroup) self.xMinCheck.setText("") self.xMinCheck.setObjectName("xMinCheck") self.gridLayout_2.addWidget(self.xMinCheck, 0, 0, 1, 1) self.yMinCheck = QtWidgets.QCheckBox(self.limitsGroup) self.yMinCheck.setText("") self.yMinCheck.setObjectName("yMinCheck") self.gridLayout_2.addWidget(self.yMinCheck, 1, 0, 1, 1) self.zMinCheck = QtWidgets.QCheckBox(self.limitsGroup) self.zMinCheck.setText("") self.zMinCheck.setObjectName("zMinCheck") self.gridLayout_2.addWidget(self.zMinCheck, 2, 0, 1, 1) self.xMaxCheck = QtWidgets.QCheckBox(self.limitsGroup) self.xMaxCheck.setText("") self.xMaxCheck.setObjectName("xMaxCheck") self.gridLayout_2.addWidget(self.xMaxCheck, 0, 9, 1, 1) self.yMaxCheck = QtWidgets.QCheckBox(self.limitsGroup) self.yMaxCheck.setText("") self.yMaxCheck.setObjectName("yMaxCheck") self.gridLayout_2.addWidget(self.yMaxCheck, 1, 9, 1, 1) self.zMaxCheck = QtWidgets.QCheckBox(self.limitsGroup) self.zMaxCheck.setText("") self.zMaxCheck.setObjectName("zMaxCheck") self.gridLayout_2.addWidget(self.zMaxCheck, 2, 9, 1, 1) self.label_2 = QtWidgets.QLabel(self.limitsGroup) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) font = Qt.QFont() font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 0, 5, 1, 1) self.xMinSpin = SpinBox(self.limitsGroup) self.xMinSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.xMinSpin.setDecimals(3) self.xMinSpin.setMinimum(-25000.0) self.xMinSpin.setMaximum(25000.0) self.xMinSpin.setSingleStep(0.1) self.xMinSpin.setObjectName("xMinSpin") self.gridLayout_2.addWidget(self.xMinSpin, 0, 2, 1, 1) self.yMinSpin = SpinBox(self.limitsGroup) self.yMinSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.yMinSpin.setDecimals(3) self.yMinSpin.setMinimum(-25000.0) self.yMinSpin.setMaximum(25000.0) self.yMinSpin.setSingleStep(0.1) self.yMinSpin.setObjectName("yMinSpin") self.gridLayout_2.addWidget(self.yMinSpin, 1, 2, 1, 1) self.zMinSpin = SpinBox(self.limitsGroup) self.zMinSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.zMinSpin.setDecimals(3) self.zMinSpin.setMinimum(-25000.0) self.zMinSpin.setMaximum(25000.0) self.zMinSpin.setSingleStep(0.1) self.zMinSpin.setObjectName("zMinSpin") self.gridLayout_2.addWidget(self.zMinSpin, 2, 2, 1, 1) self.xMaxSpin = SpinBox(self.limitsGroup) self.xMaxSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.xMaxSpin.setDecimals(3) self.xMaxSpin.setMinimum(-25000.0) self.xMaxSpin.setMaximum(25000.0) self.xMaxSpin.setSingleStep(0.1) self.xMaxSpin.setObjectName("xMaxSpin") self.gridLayout_2.addWidget(self.xMaxSpin, 0, 8, 1, 1) self.yMaxSpin = SpinBox(self.limitsGroup) self.yMaxSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.yMaxSpin.setDecimals(3) self.yMaxSpin.setMinimum(-25000.0) self.yMaxSpin.setMaximum(25000.0) self.yMaxSpin.setSingleStep(0.1) self.yMaxSpin.setObjectName("yMaxSpin") self.gridLayout_2.addWidget(self.yMaxSpin, 1, 8, 1, 1) self.zMaxSpin = SpinBox(self.limitsGroup) self.zMaxSpin.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignTrailing | Qt.Qt.AlignVCenter) self.zMaxSpin.setDecimals(3) self.zMaxSpin.setMinimum(-25000.0) self.zMaxSpin.setMaximum(25000.0) self.zMaxSpin.setSingleStep(0.1) self.zMaxSpin.setObjectName("zMaxSpin") self.gridLayout_2.addWidget(self.zMaxSpin, 2, 8, 1, 1) self.gridLayout_4.addWidget(self.limitsGroup, 1, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_4.addItem(spacerItem1, 1, 1, 1, 1) self.retranslateUi(Form) Qt.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = Qt.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.groupBox_2.setTitle(_translate("Form", "Position")) self.label_5.setText(_translate("Form", "X")) self.xPosLabel.setText(_translate("Form", "0")) self.label_7.setText(_translate("Form", "Y")) self.yPosLabel.setText(_translate("Form", "0")) self.label_8.setText(_translate("Form", "Z")) self.zPosLabel.setText(_translate("Form", "0")) self.updatePosBtn.setText(_translate("Form", "Update")) self.fineStepRadio.setText(_translate("Form", "Fine step")) self.coarseStepRadio.setText(_translate("Form", "Coarse step")) self.limitsGroup.setTitle(_translate("Form", "Limits")) self.xMinBtn.setText(_translate("Form", "get Current")) self.xMinLabel.setText(_translate("Form", "<--")) self.xMaxLabel.setText(_translate("Form", "-->")) self.xMaxBtn.setText(_translate("Form", "get Current")) self.yMinBtn.setText(_translate("Form", "get Current")) self.yMinLabel.setText(_translate("Form", "<--")) self.label_3.setText(_translate("Form", "Y")) self.yMaxLabel.setText(_translate("Form", "-->")) self.yMaxBtn.setText(_translate("Form", "get Current")) self.zMinBtn.setText(_translate("Form", "get Current")) self.zMinLabel.setText(_translate("Form", "<--")) self.label.setText(_translate("Form", "Z")) self.zMaxLabel.setText(_translate("Form", "-->")) self.zMaxBtn.setText(_translate("Form", "get Current")) self.label_4.setText(_translate("Form", "Max Speed")) self.label_2.setText(_translate("Form", "X")) self.xMinSpin.setSuffix(_translate("Form", " mm")) self.yMinSpin.setSuffix(_translate("Form", " mm")) self.zMinSpin.setSuffix(_translate("Form", " mm")) self.xMaxSpin.setSuffix(_translate("Form", " mm")) self.yMaxSpin.setSuffix(_translate("Form", " mm")) self.zMaxSpin.setSuffix(_translate("Form", " mm"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(280, 147) self.gridLayout = QtGui.QGridLayout(Form) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(Form) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.slicePlaneCombo = QtGui.QComboBox(Form) self.slicePlaneCombo.setObjectName(_fromUtf8("slicePlaneCombo")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.slicePlaneCombo.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.slicePlaneCombo, 0, 1, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(Form) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.hemisphereCombo = QtGui.QComboBox(Form) self.hemisphereCombo.setObjectName(_fromUtf8("hemisphereCombo")) self.hemisphereCombo.addItem(_fromUtf8("")) self.hemisphereCombo.addItem(_fromUtf8("")) self.horizontalLayout_3.addWidget(self.hemisphereCombo) self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 2) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.photoCheck = QtGui.QCheckBox(Form) self.photoCheck.setObjectName(_fromUtf8("photoCheck")) self.horizontalLayout.addWidget(self.photoCheck) self.drawingCheck = QtGui.QCheckBox(Form) self.drawingCheck.setChecked(True) self.drawingCheck.setObjectName(_fromUtf8("drawingCheck")) self.horizontalLayout.addWidget(self.drawingCheck) self.flipCheck = QtGui.QCheckBox(Form) self.flipCheck.setObjectName(_fromUtf8("flipCheck")) self.horizontalLayout.addWidget(self.flipCheck) self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 2) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_3 = QtGui.QLabel(Form) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.thicknessSpin = SpinBox(Form) self.thicknessSpin.setObjectName(_fromUtf8("thicknessSpin")) self.horizontalLayout_2.addWidget(self.thicknessSpin) self.gridLayout.addLayout(self.horizontalLayout_2, 3, 0, 1, 2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.label.setText(_translate("Form", "Slice Plane", None)) self.slicePlaneCombo.setItemText( 0, _translate("Form", "Parasaggital", None)) self.slicePlaneCombo.setItemText( 1, _translate("Form", "Coronal (AVCN-DCN)", None)) self.slicePlaneCombo.setItemText( 2, _translate("Form", "Coronal (PVCN-DCN)", None)) self.slicePlaneCombo.setItemText( 3, _translate("Form", "Horizontal (VCN)", None)) self.label_2.setText(_translate("Form", "Hemisphere", None)) self.hemisphereCombo.setItemText(0, _translate("Form", "Left", None)) self.hemisphereCombo.setItemText(1, _translate("Form", "Right", None)) self.photoCheck.setText(_translate("Form", "Photo", None)) self.drawingCheck.setText(_translate("Form", "Drawing", None)) self.flipCheck.setText(_translate("Form", "Flip", None)) self.label_3.setText(_translate("Form", "Thickness", None))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1089, 309) MainWindow.setStyleSheet("") MainWindow.setDockNestingEnabled(True) self.centralwidget = QtWidgets.QWidget(MainWindow) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setObjectName("centralwidget") MainWindow.setCentralWidget(self.centralwidget) self.LoaderDock = QtWidgets.QDockWidget(MainWindow) self.LoaderDock.setFeatures( QtWidgets.QDockWidget.DockWidgetFloatable | QtWidgets.QDockWidget.DockWidgetMovable | QtWidgets.QDockWidget.DockWidgetVerticalTitleBar) self.LoaderDock.setAllowedAreas(Qt.Qt.BottomDockWidgetArea | Qt.Qt.TopDockWidgetArea) self.LoaderDock.setObjectName("LoaderDock") self.dockWidgetContents = QtWidgets.QWidget() self.dockWidgetContents.setObjectName("dockWidgetContents") self.LoaderDock.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(Qt.Qt.DockWidgetArea(4), self.LoaderDock) self.TaskDock = QtWidgets.QDockWidget(MainWindow) self.TaskDock.setEnabled(True) self.TaskDock.setFeatures( QtWidgets.QDockWidget.DockWidgetFloatable | QtWidgets.QDockWidget.DockWidgetMovable | QtWidgets.QDockWidget.DockWidgetVerticalTitleBar) self.TaskDock.setAllowedAreas(Qt.Qt.BottomDockWidgetArea | Qt.Qt.TopDockWidgetArea) self.TaskDock.setObjectName("TaskDock") self.dockWidgetContents_5 = QtWidgets.QWidget() self.dockWidgetContents_5.setObjectName("dockWidgetContents_5") self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents_5) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setHorizontalSpacing(5) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(self.dockWidgetContents_5) self.label.setAlignment(Qt.Qt.AlignCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.protoContinuousCheck = QtWidgets.QCheckBox( self.dockWidgetContents_5) self.protoContinuousCheck.setEnabled(False) self.protoContinuousCheck.setObjectName("protoContinuousCheck") self.gridLayout.addWidget(self.protoContinuousCheck, 0, 1, 1, 2) self.deviceList = QtWidgets.QListWidget(self.dockWidgetContents_5) self.deviceList.setObjectName("deviceList") self.gridLayout.addWidget(self.deviceList, 1, 0, 5, 1) self.label_8 = QtWidgets.QLabel(self.dockWidgetContents_5) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 1, 1, 1, 1) self.label_6 = QtWidgets.QLabel(self.dockWidgetContents_5) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 2, 1, 1, 1) self.protoLoopCheck = QtWidgets.QCheckBox(self.dockWidgetContents_5) self.protoLoopCheck.setObjectName("protoLoopCheck") self.gridLayout.addWidget(self.protoLoopCheck, 3, 1, 1, 1) self.label_7 = QtWidgets.QLabel(self.dockWidgetContents_5) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 4, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 91, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 2, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.testSingleBtn = QtWidgets.QPushButton(self.dockWidgetContents_5) self.testSingleBtn.setEnabled(True) self.testSingleBtn.setObjectName("testSingleBtn") self.horizontalLayout_2.addWidget(self.testSingleBtn) spacerItem1 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.runTaskBtn = QtWidgets.QPushButton(self.dockWidgetContents_5) self.runTaskBtn.setEnabled(True) self.runTaskBtn.setObjectName("runTaskBtn") self.horizontalLayout_2.addWidget(self.runTaskBtn) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.stopSingleBtn = QtWidgets.QPushButton(self.dockWidgetContents_5) self.stopSingleBtn.setObjectName("stopSingleBtn") self.horizontalLayout_2.addWidget(self.stopSingleBtn) self.gridLayout.addLayout(self.horizontalLayout_2, 6, 0, 1, 4) self.protoDurationSpin = SpinBox(self.dockWidgetContents_5) self.protoDurationSpin.setMinimumSize(Qt.QSize(60, 0)) self.protoDurationSpin.setProperty("value", 0.1) self.protoDurationSpin.setObjectName("protoDurationSpin") self.gridLayout.addWidget(self.protoDurationSpin, 1, 2, 1, 2) self.protoLeadTimeSpin = SpinBox(self.dockWidgetContents_5) self.protoLeadTimeSpin.setProperty("value", 0.01) self.protoLeadTimeSpin.setObjectName("protoLeadTimeSpin") self.gridLayout.addWidget(self.protoLeadTimeSpin, 2, 2, 1, 2) self.protoCycleTimeSpin = SpinBox(self.dockWidgetContents_5) self.protoCycleTimeSpin.setObjectName("protoCycleTimeSpin") self.gridLayout.addWidget(self.protoCycleTimeSpin, 4, 2, 1, 2) self.TaskDock.setWidget(self.dockWidgetContents_5) MainWindow.addDockWidget(Qt.Qt.DockWidgetArea(4), self.TaskDock) self.SequenceDock = QtWidgets.QDockWidget(MainWindow) self.SequenceDock.setEnabled(True) self.SequenceDock.setFeatures( QtWidgets.QDockWidget.DockWidgetFloatable | QtWidgets.QDockWidget.DockWidgetMovable | QtWidgets.QDockWidget.DockWidgetVerticalTitleBar) self.SequenceDock.setAllowedAreas(Qt.Qt.BottomDockWidgetArea | Qt.Qt.TopDockWidgetArea) self.SequenceDock.setObjectName("SequenceDock") self.dockWidgetContents_7 = QtWidgets.QWidget() self.dockWidgetContents_7.setObjectName("dockWidgetContents_7") self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents_7) self.gridLayout_2.setContentsMargins(0, 0, 0, 0) self.gridLayout_2.setHorizontalSpacing(5) self.gridLayout_2.setVerticalSpacing(0) self.gridLayout_2.setObjectName("gridLayout_2") self.label_10 = QtWidgets.QLabel(self.dockWidgetContents_7) self.label_10.setObjectName("label_10") self.gridLayout_2.addWidget(self.label_10, 0, 0, 1, 1) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.label_9 = QtWidgets.QLabel(self.dockWidgetContents_7) self.label_9.setObjectName("label_9") self.verticalLayout.addWidget(self.label_9) self.seqCycleTimeSpin = SpinBox(self.dockWidgetContents_7) self.seqCycleTimeSpin.setProperty("value", 1.0) self.seqCycleTimeSpin.setObjectName("seqCycleTimeSpin") self.verticalLayout.addWidget(self.seqCycleTimeSpin) self.label_11 = QtWidgets.QLabel(self.dockWidgetContents_7) self.label_11.setObjectName("label_11") self.verticalLayout.addWidget(self.label_11) self.seqRepetitionSpin = QtWidgets.QSpinBox(self.dockWidgetContents_7) self.seqRepetitionSpin.setMinimum(0) self.seqRepetitionSpin.setMaximum(1000000) self.seqRepetitionSpin.setObjectName("seqRepetitionSpin") self.verticalLayout.addWidget(self.seqRepetitionSpin) spacerItem3 = QtWidgets.QSpacerItem(17, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem3) self.label_2 = QtWidgets.QLabel(self.dockWidgetContents_7) self.label_2.setObjectName("label_2") self.verticalLayout.addWidget(self.label_2) self.paramSpaceLabel = QtWidgets.QLabel(self.dockWidgetContents_7) self.paramSpaceLabel.setObjectName("paramSpaceLabel") self.verticalLayout.addWidget(self.paramSpaceLabel) self.label_4 = QtWidgets.QLabel(self.dockWidgetContents_7) self.label_4.setObjectName("label_4") self.verticalLayout.addWidget(self.label_4) self.seqTimeLabel = QtWidgets.QLabel(self.dockWidgetContents_7) self.seqTimeLabel.setObjectName("seqTimeLabel") self.verticalLayout.addWidget(self.seqTimeLabel) self.seqCurrentLabel = QtWidgets.QLabel(self.dockWidgetContents_7) self.seqCurrentLabel.setText("") self.seqCurrentLabel.setObjectName("seqCurrentLabel") self.verticalLayout.addWidget(self.seqCurrentLabel) spacerItem4 = QtWidgets.QSpacerItem(13, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem4) self.gridLayout_2.addLayout(self.verticalLayout, 0, 1, 2, 1) self.sequenceParamList = ParamList(self.dockWidgetContents_7) self.sequenceParamList.setDragEnabled(True) self.sequenceParamList.setDragDropMode( QtWidgets.QAbstractItemView.InternalMove) self.sequenceParamList.setIndentation(10) self.sequenceParamList.setRootIsDecorated(True) self.sequenceParamList.setAnimated(True) self.sequenceParamList.setAllColumnsShowFocus(True) self.sequenceParamList.setObjectName("sequenceParamList") self.sequenceParamList.header().setDefaultSectionSize(30) self.sequenceParamList.header().setMinimumSectionSize(30) self.sequenceParamList.header().setStretchLastSection(False) self.gridLayout_2.addWidget(self.sequenceParamList, 1, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.testSequenceBtn = QtWidgets.QPushButton(self.dockWidgetContents_7) self.testSequenceBtn.setEnabled(False) self.testSequenceBtn.setObjectName("testSequenceBtn") self.horizontalLayout_3.addWidget(self.testSequenceBtn) spacerItem5 = QtWidgets.QSpacerItem(38, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem5) self.runSequenceBtn = QtWidgets.QPushButton(self.dockWidgetContents_7) self.runSequenceBtn.setEnabled(False) self.runSequenceBtn.setObjectName("runSequenceBtn") self.horizontalLayout_3.addWidget(self.runSequenceBtn) self.pauseSequenceBtn = QtWidgets.QPushButton( self.dockWidgetContents_7) self.pauseSequenceBtn.setMinimumSize(Qt.QSize(40, 0)) self.pauseSequenceBtn.setCheckable(True) self.pauseSequenceBtn.setObjectName("pauseSequenceBtn") self.horizontalLayout_3.addWidget(self.pauseSequenceBtn) spacerItem6 = QtWidgets.QSpacerItem(58, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem6) self.stopSequenceBtn = QtWidgets.QPushButton(self.dockWidgetContents_7) self.stopSequenceBtn.setObjectName("stopSequenceBtn") self.horizontalLayout_3.addWidget(self.stopSequenceBtn) self.gridLayout_2.addLayout(self.horizontalLayout_3, 2, 0, 1, 2) self.gridLayout_2.setColumnStretch(0, 5) self.gridLayout_2.setColumnStretch(1, 1) self.SequenceDock.setWidget(self.dockWidgetContents_7) MainWindow.addDockWidget(Qt.Qt.DockWidgetArea(4), self.SequenceDock) self.dockWidget = QtWidgets.QDockWidget(MainWindow) self.dockWidget.setFeatures( QtWidgets.QDockWidget.DockWidgetFloatable | QtWidgets.QDockWidget.DockWidgetMovable | QtWidgets.QDockWidget.DockWidgetVerticalTitleBar) self.dockWidget.setAllowedAreas(Qt.Qt.BottomDockWidgetArea | Qt.Qt.TopDockWidgetArea) self.dockWidget.setObjectName("dockWidget") self.dockWidgetContents_2 = QtWidgets.QWidget() self.dockWidgetContents_2.setObjectName("dockWidgetContents_2") self.horizontalLayout_4 = QtWidgets.QHBoxLayout( self.dockWidgetContents_2) self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_4.setSpacing(0) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.analysisList = QtWidgets.QListWidget(self.dockWidgetContents_2) self.analysisList.setObjectName("analysisList") self.horizontalLayout_4.addWidget(self.analysisList) self.dockWidget.setWidget(self.dockWidgetContents_2) MainWindow.addDockWidget(Qt.Qt.DockWidgetArea(4), self.dockWidget) self.statusBar = QtWidgets.QStatusBar(MainWindow) self.statusBar.setObjectName("statusBar") MainWindow.setStatusBar(self.statusBar) self.retranslateUi(MainWindow) Qt.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = Qt.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "Task Runner")) self.LoaderDock.setWindowTitle(_translate("MainWindow", "Loader")) self.TaskDock.setWindowTitle(_translate("MainWindow", "Task")) self.label.setText(_translate("MainWindow", "Devices")) self.protoContinuousCheck.setToolTip( _translate( "MainWindow", "Task runs continuously without \n" "gaps until stopped (not yet implemented).")) self.protoContinuousCheck.setText( _translate("MainWindow", "Continuous")) self.label_8.setText(_translate("MainWindow", "Duration")) self.label_6.setText(_translate("MainWindow", "Lead Time")) self.protoLoopCheck.setToolTip( _translate( "MainWindow", "Task will run repeatedly until stopped and \n" "waits a minimum of Cycle Time between episodes.\n" "Not the same as continuous acquisition (there \n" "will be a time gap between each recording).")) self.protoLoopCheck.setText(_translate("MainWindow", "Loop")) self.label_7.setText(_translate("MainWindow", "Cycle Time")) self.testSingleBtn.setText(_translate("MainWindow", "Test")) self.runTaskBtn.setText(_translate("MainWindow", "Record Single")) self.stopSingleBtn.setText(_translate("MainWindow", "Stop Single")) self.protoDurationSpin.setToolTip( _translate("MainWindow", "Duration of stimulus/acquisition in the task.")) self.protoLeadTimeSpin.setToolTip( _translate( "MainWindow", "Duration of time to wait before acquisition starts \n" "(the hardware is reserved so nothing else can \n" "run during this time).")) self.protoCycleTimeSpin.setToolTip( _translate( "MainWindow", "The minimum time to wait between recordings \n" "in loop mode.")) self.SequenceDock.setWindowTitle(_translate("MainWindow", "Sequence")) self.label_10.setText(_translate("MainWindow", "Sequence Parameters")) self.label_9.setText(_translate("MainWindow", "Cycle Time")) self.label_11.setText(_translate("MainWindow", "Repetitions")) self.label_2.setText(_translate("MainWindow", "Parameter Space: ")) self.paramSpaceLabel.setText(_translate("MainWindow", "0")) self.label_4.setText(_translate("MainWindow", "Total time:")) self.seqTimeLabel.setText(_translate("MainWindow", "0")) self.sequenceParamList.headerItem().setText( 0, _translate("MainWindow", "dev")) self.sequenceParamList.headerItem().setText( 1, _translate("MainWindow", "param")) self.sequenceParamList.headerItem().setText( 2, _translate("MainWindow", "len")) self.testSequenceBtn.setText(_translate("MainWindow", "Test")) self.runSequenceBtn.setText(_translate("MainWindow", "Record Sequence")) self.pauseSequenceBtn.setText(_translate("MainWindow", "Pause")) self.stopSequenceBtn.setText(_translate("MainWindow", "Stop Sequence")) self.dockWidget.setWindowTitle(_translate("MainWindow", "Analysis"))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1089, 309) MainWindow.setStyleSheet(_fromUtf8("")) MainWindow.setDockNestingEnabled(True) self.centralwidget = QtGui.QWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth()) self.centralwidget.setSizePolicy(sizePolicy) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) MainWindow.setCentralWidget(self.centralwidget) self.LoaderDock = QtGui.QDockWidget(MainWindow) self.LoaderDock.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.LoaderDock.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.TopDockWidgetArea) self.LoaderDock.setObjectName(_fromUtf8("LoaderDock")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.LoaderDock.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.LoaderDock) self.TaskDock = QtGui.QDockWidget(MainWindow) self.TaskDock.setEnabled(True) self.TaskDock.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.TaskDock.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.TopDockWidgetArea) self.TaskDock.setObjectName(_fromUtf8("TaskDock")) self.dockWidgetContents_5 = QtGui.QWidget() self.dockWidgetContents_5.setObjectName(_fromUtf8("dockWidgetContents_5")) self.gridLayout = QtGui.QGridLayout(self.dockWidgetContents_5) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(5) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(self.dockWidgetContents_5) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.protoContinuousCheck = QtGui.QCheckBox(self.dockWidgetContents_5) self.protoContinuousCheck.setEnabled(False) self.protoContinuousCheck.setObjectName(_fromUtf8("protoContinuousCheck")) self.gridLayout.addWidget(self.protoContinuousCheck, 0, 1, 1, 2) self.deviceList = QtGui.QListWidget(self.dockWidgetContents_5) self.deviceList.setObjectName(_fromUtf8("deviceList")) self.gridLayout.addWidget(self.deviceList, 1, 0, 5, 1) self.label_8 = QtGui.QLabel(self.dockWidgetContents_5) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 1, 1, 1, 1) self.label_6 = QtGui.QLabel(self.dockWidgetContents_5) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 2, 1, 1, 1) self.protoLoopCheck = QtGui.QCheckBox(self.dockWidgetContents_5) self.protoLoopCheck.setObjectName(_fromUtf8("protoLoopCheck")) self.gridLayout.addWidget(self.protoLoopCheck, 3, 1, 1, 1) self.label_7 = QtGui.QLabel(self.dockWidgetContents_5) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 4, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 91, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 5, 2, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.testSingleBtn = QtGui.QPushButton(self.dockWidgetContents_5) self.testSingleBtn.setEnabled(True) self.testSingleBtn.setObjectName(_fromUtf8("testSingleBtn")) self.horizontalLayout_2.addWidget(self.testSingleBtn) spacerItem1 = QtGui.QSpacerItem(13, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.runTaskBtn = QtGui.QPushButton(self.dockWidgetContents_5) self.runTaskBtn.setEnabled(True) self.runTaskBtn.setObjectName(_fromUtf8("runTaskBtn")) self.horizontalLayout_2.addWidget(self.runTaskBtn) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.stopSingleBtn = QtGui.QPushButton(self.dockWidgetContents_5) self.stopSingleBtn.setObjectName(_fromUtf8("stopSingleBtn")) self.horizontalLayout_2.addWidget(self.stopSingleBtn) self.gridLayout.addLayout(self.horizontalLayout_2, 6, 0, 1, 4) self.protoDurationSpin = SpinBox(self.dockWidgetContents_5) self.protoDurationSpin.setMinimumSize(QtCore.QSize(60, 0)) self.protoDurationSpin.setProperty("value", 0.1) self.protoDurationSpin.setObjectName(_fromUtf8("protoDurationSpin")) self.gridLayout.addWidget(self.protoDurationSpin, 1, 2, 1, 2) self.protoLeadTimeSpin = SpinBox(self.dockWidgetContents_5) self.protoLeadTimeSpin.setProperty("value", 0.01) self.protoLeadTimeSpin.setObjectName(_fromUtf8("protoLeadTimeSpin")) self.gridLayout.addWidget(self.protoLeadTimeSpin, 2, 2, 1, 2) self.protoCycleTimeSpin = SpinBox(self.dockWidgetContents_5) self.protoCycleTimeSpin.setObjectName(_fromUtf8("protoCycleTimeSpin")) self.gridLayout.addWidget(self.protoCycleTimeSpin, 4, 2, 1, 2) self.TaskDock.setWidget(self.dockWidgetContents_5) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.TaskDock) self.SequenceDock = QtGui.QDockWidget(MainWindow) self.SequenceDock.setEnabled(True) self.SequenceDock.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.SequenceDock.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.TopDockWidgetArea) self.SequenceDock.setObjectName(_fromUtf8("SequenceDock")) self.dockWidgetContents_7 = QtGui.QWidget() self.dockWidgetContents_7.setObjectName(_fromUtf8("dockWidgetContents_7")) self.gridLayout_2 = QtGui.QGridLayout(self.dockWidgetContents_7) self.gridLayout_2.setMargin(0) self.gridLayout_2.setHorizontalSpacing(5) self.gridLayout_2.setVerticalSpacing(0) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_10 = QtGui.QLabel(self.dockWidgetContents_7) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_2.addWidget(self.label_10, 0, 0, 1, 1) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_9 = QtGui.QLabel(self.dockWidgetContents_7) self.label_9.setObjectName(_fromUtf8("label_9")) self.verticalLayout.addWidget(self.label_9) self.seqCycleTimeSpin = SpinBox(self.dockWidgetContents_7) self.seqCycleTimeSpin.setProperty("value", 1.0) self.seqCycleTimeSpin.setObjectName(_fromUtf8("seqCycleTimeSpin")) self.verticalLayout.addWidget(self.seqCycleTimeSpin) self.label_11 = QtGui.QLabel(self.dockWidgetContents_7) self.label_11.setObjectName(_fromUtf8("label_11")) self.verticalLayout.addWidget(self.label_11) self.seqRepetitionSpin = QtGui.QSpinBox(self.dockWidgetContents_7) self.seqRepetitionSpin.setMinimum(0) self.seqRepetitionSpin.setMaximum(1000000) self.seqRepetitionSpin.setObjectName(_fromUtf8("seqRepetitionSpin")) self.verticalLayout.addWidget(self.seqRepetitionSpin) spacerItem3 = QtGui.QSpacerItem(17, 18, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem3) self.label_2 = QtGui.QLabel(self.dockWidgetContents_7) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.paramSpaceLabel = QtGui.QLabel(self.dockWidgetContents_7) self.paramSpaceLabel.setObjectName(_fromUtf8("paramSpaceLabel")) self.verticalLayout.addWidget(self.paramSpaceLabel) self.label_4 = QtGui.QLabel(self.dockWidgetContents_7) self.label_4.setObjectName(_fromUtf8("label_4")) self.verticalLayout.addWidget(self.label_4) self.seqTimeLabel = QtGui.QLabel(self.dockWidgetContents_7) self.seqTimeLabel.setObjectName(_fromUtf8("seqTimeLabel")) self.verticalLayout.addWidget(self.seqTimeLabel) self.seqCurrentLabel = QtGui.QLabel(self.dockWidgetContents_7) self.seqCurrentLabel.setText(_fromUtf8("")) self.seqCurrentLabel.setObjectName(_fromUtf8("seqCurrentLabel")) self.verticalLayout.addWidget(self.seqCurrentLabel) spacerItem4 = QtGui.QSpacerItem(13, 13, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem4) self.gridLayout_2.addLayout(self.verticalLayout, 0, 1, 2, 1) self.sequenceParamList = ParamList(self.dockWidgetContents_7) self.sequenceParamList.setDragEnabled(True) self.sequenceParamList.setDragDropMode(QtGui.QAbstractItemView.InternalMove) self.sequenceParamList.setIndentation(10) self.sequenceParamList.setRootIsDecorated(True) self.sequenceParamList.setAnimated(True) self.sequenceParamList.setAllColumnsShowFocus(True) self.sequenceParamList.setObjectName(_fromUtf8("sequenceParamList")) self.gridLayout_2.addWidget(self.sequenceParamList, 1, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.testSequenceBtn = QtGui.QPushButton(self.dockWidgetContents_7) self.testSequenceBtn.setEnabled(False) self.testSequenceBtn.setObjectName(_fromUtf8("testSequenceBtn")) self.horizontalLayout_3.addWidget(self.testSequenceBtn) spacerItem5 = QtGui.QSpacerItem(38, 17, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem5) self.runSequenceBtn = QtGui.QPushButton(self.dockWidgetContents_7) self.runSequenceBtn.setEnabled(False) self.runSequenceBtn.setObjectName(_fromUtf8("runSequenceBtn")) self.horizontalLayout_3.addWidget(self.runSequenceBtn) self.pauseSequenceBtn = QtGui.QPushButton(self.dockWidgetContents_7) self.pauseSequenceBtn.setMinimumSize(QtCore.QSize(40, 0)) self.pauseSequenceBtn.setCheckable(True) self.pauseSequenceBtn.setObjectName(_fromUtf8("pauseSequenceBtn")) self.horizontalLayout_3.addWidget(self.pauseSequenceBtn) spacerItem6 = QtGui.QSpacerItem(58, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem6) self.stopSequenceBtn = QtGui.QPushButton(self.dockWidgetContents_7) self.stopSequenceBtn.setObjectName(_fromUtf8("stopSequenceBtn")) self.horizontalLayout_3.addWidget(self.stopSequenceBtn) self.gridLayout_2.addLayout(self.horizontalLayout_3, 2, 0, 1, 2) self.SequenceDock.setWidget(self.dockWidgetContents_7) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.SequenceDock) self.dockWidget = QtGui.QDockWidget(MainWindow) self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.dockWidget.setAllowedAreas(QtCore.Qt.BottomDockWidgetArea|QtCore.Qt.TopDockWidgetArea) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents_2 = QtGui.QWidget() self.dockWidgetContents_2.setObjectName(_fromUtf8("dockWidgetContents_2")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.dockWidgetContents_2) self.horizontalLayout_4.setSpacing(0) self.horizontalLayout_4.setMargin(0) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.analysisList = QtGui.QListWidget(self.dockWidgetContents_2) self.analysisList.setObjectName(_fromUtf8("analysisList")) self.horizontalLayout_4.addWidget(self.analysisList) self.dockWidget.setWidget(self.dockWidgetContents_2) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.dockWidget) self.statusBar = QtGui.QStatusBar(MainWindow) self.statusBar.setObjectName(_fromUtf8("statusBar")) MainWindow.setStatusBar(self.statusBar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "Task Runner", None)) self.LoaderDock.setWindowTitle(_translate("MainWindow", "Loader", None)) self.TaskDock.setWindowTitle(_translate("MainWindow", "Task", None)) self.label.setText(_translate("MainWindow", "Devices", None)) self.protoContinuousCheck.setToolTip(_translate("MainWindow", "Task runs continuously without \n" "gaps until stopped (not yet implemented).", None)) self.protoContinuousCheck.setText(_translate("MainWindow", "Continuous", None)) self.label_8.setText(_translate("MainWindow", "Duration", None)) self.label_6.setText(_translate("MainWindow", "Lead Time", None)) self.protoLoopCheck.setToolTip(_translate("MainWindow", "Task will run repeatedly until stopped and \n" "waits a minimum of Cycle Time between episodes.\n" "Not the same as continuous acquisition (there \n" "will be a time gap between each recording).", None)) self.protoLoopCheck.setText(_translate("MainWindow", "Loop", None)) self.label_7.setText(_translate("MainWindow", "Cycle Time", None)) self.testSingleBtn.setText(_translate("MainWindow", "Test", None)) self.runTaskBtn.setText(_translate("MainWindow", "Record Single", None)) self.stopSingleBtn.setText(_translate("MainWindow", "Stop Single", None)) self.protoDurationSpin.setToolTip(_translate("MainWindow", "Duration of stimulus/acquisition in the task.", None)) self.protoLeadTimeSpin.setToolTip(_translate("MainWindow", "Duration of time to wait before acquisition starts \n" "(the hardware is reserved so nothing else can \n" "run during this time).", None)) self.protoCycleTimeSpin.setToolTip(_translate("MainWindow", "The minimum time to wait between recordings \n" "in loop mode.", None)) self.SequenceDock.setWindowTitle(_translate("MainWindow", "Sequence", None)) self.label_10.setText(_translate("MainWindow", "Sequence Parameters", None)) self.label_9.setText(_translate("MainWindow", "Cycle Time", None)) self.label_11.setText(_translate("MainWindow", "Repetitions", None)) self.label_2.setText(_translate("MainWindow", "Parameter Space: ", None)) self.paramSpaceLabel.setText(_translate("MainWindow", "0", None)) self.label_4.setText(_translate("MainWindow", "Total time:", None)) self.seqTimeLabel.setText(_translate("MainWindow", "0", None)) self.sequenceParamList.headerItem().setText(0, _translate("MainWindow", "dev", None)) self.sequenceParamList.headerItem().setText(1, _translate("MainWindow", "param", None)) self.sequenceParamList.headerItem().setText(2, _translate("MainWindow", "len", None)) self.testSequenceBtn.setText(_translate("MainWindow", "Test", None)) self.runSequenceBtn.setText(_translate("MainWindow", "Record Sequence", None)) self.pauseSequenceBtn.setText(_translate("MainWindow", "Pause", None)) self.stopSequenceBtn.setText(_translate("MainWindow", "Stop Sequence", None)) self.dockWidget.setWindowTitle(_translate("MainWindow", "Analysis", None))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(307, 609) self.verticalLayout_2 = QtGui.QVBoxLayout(Form) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.splitter_4 = QtGui.QSplitter(Form) self.splitter_4.setOrientation(QtCore.Qt.Vertical) self.splitter_4.setObjectName(_fromUtf8("splitter_4")) self.splitter_2 = QtGui.QSplitter(self.splitter_4) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName(_fromUtf8("splitter_2")) self.layoutWidget = QtGui.QWidget(self.splitter_2) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.startBtn = QtGui.QPushButton(self.layoutWidget) self.startBtn.setCheckable(True) self.startBtn.setObjectName(_fromUtf8("startBtn")) self.horizontalLayout.addWidget(self.startBtn) self.recordBtn = QtGui.QPushButton(self.layoutWidget) self.recordBtn.setCheckable(True) self.recordBtn.setObjectName(_fromUtf8("recordBtn")) self.horizontalLayout.addWidget(self.recordBtn) self.verticalLayout.addLayout(self.horizontalLayout) self.modeLayout = QtGui.QVBoxLayout() self.modeLayout.setObjectName(_fromUtf8("modeLayout")) self.verticalLayout.addLayout(self.modeLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_4 = QtGui.QLabel(self.layoutWidget) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_2.addWidget(self.label_4) self.delayTimeSpin = SpinBox(self.layoutWidget) self.delayTimeSpin.setMinimum(1.0) self.delayTimeSpin.setMaximum(10000.0) self.delayTimeSpin.setSingleStep(1.0) self.delayTimeSpin.setObjectName(_fromUtf8("delayTimeSpin")) self.horizontalLayout_2.addWidget(self.delayTimeSpin) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_3 = QtGui.QLabel(self.layoutWidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_3.addWidget(self.label_3) self.pulseTimeSpin = SpinBox(self.layoutWidget) self.pulseTimeSpin.setSingleStep(1.0) self.pulseTimeSpin.setObjectName(_fromUtf8("pulseTimeSpin")) self.horizontalLayout_3.addWidget(self.pulseTimeSpin) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label = QtGui.QLabel(self.layoutWidget) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_5.addWidget(self.label) self.cycleTimeSpin = SpinBox(self.layoutWidget) self.cycleTimeSpin.setSingleStep(1.0) self.cycleTimeSpin.setProperty("value", 0.2) self.cycleTimeSpin.setObjectName(_fromUtf8("cycleTimeSpin")) self.horizontalLayout_5.addWidget(self.cycleTimeSpin) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_2 = QtGui.QLabel(self.layoutWidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_4.addWidget(self.label_2) self.averageSpin = QtGui.QSpinBox(self.layoutWidget) self.averageSpin.setMinimum(1) self.averageSpin.setMaximum(100) self.averageSpin.setProperty("value", 1) self.averageSpin.setObjectName(_fromUtf8("averageSpin")) self.horizontalLayout_4.addWidget(self.averageSpin) self.verticalLayout.addLayout(self.horizontalLayout_4) spacerItem = QtGui.QSpacerItem(20, 13, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.tabWidget = QtGui.QTabWidget(self.layoutWidget) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.verticalLayout.addWidget(self.tabWidget) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName(_fromUtf8("splitter")) self.patchPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.patchPlot.sizePolicy().hasHeightForWidth()) self.patchPlot.setSizePolicy(sizePolicy) self.patchPlot.setObjectName(_fromUtf8("patchPlot")) self.commandPlot = PlotWidget(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.commandPlot.sizePolicy().hasHeightForWidth()) self.commandPlot.setSizePolicy(sizePolicy) self.commandPlot.setObjectName(_fromUtf8("commandPlot")) self.splitter_3 = QtGui.QSplitter(self.splitter_4) self.splitter_3.setOrientation(QtCore.Qt.Horizontal) self.splitter_3.setObjectName(_fromUtf8("splitter_3")) self.widget = QtGui.QWidget(self.splitter_3) self.widget.setObjectName(_fromUtf8("widget")) self.gridLayout = QtGui.QGridLayout(self.widget) self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.restingPotentialLabel = QtGui.QLabel(self.widget) self.restingPotentialLabel.setMinimumSize(QtCore.QSize(140, 0)) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.restingPotentialLabel.setFont(font) self.restingPotentialLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.restingPotentialLabel.setObjectName( _fromUtf8("restingPotentialLabel")) self.gridLayout.addWidget(self.restingPotentialLabel, 3, 1, 1, 1) self.fitErrorCheck = QtGui.QCheckBox(self.widget) self.fitErrorCheck.setObjectName(_fromUtf8("fitErrorCheck")) self.gridLayout.addWidget(self.fitErrorCheck, 6, 0, 1, 1) self.drawFitCheck = QtGui.QCheckBox(self.widget) self.drawFitCheck.setChecked(True) self.drawFitCheck.setObjectName(_fromUtf8("drawFitCheck")) self.gridLayout.addWidget(self.drawFitCheck, 0, 1, 1, 1) self.inputResistanceCheck = QtGui.QCheckBox(self.widget) font = QtGui.QFont() font.setPointSize(11) self.inputResistanceCheck.setFont(font) self.inputResistanceCheck.setChecked(True) self.inputResistanceCheck.setObjectName( _fromUtf8("inputResistanceCheck")) self.gridLayout.addWidget(self.inputResistanceCheck, 1, 0, 1, 1) self.accessResistanceLabel = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.accessResistanceLabel.setFont(font) self.accessResistanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.accessResistanceLabel.setObjectName( _fromUtf8("accessResistanceLabel")) self.gridLayout.addWidget(self.accessResistanceLabel, 2, 1, 1, 1) self.inputResistanceLabel = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.inputResistanceLabel.setFont(font) self.inputResistanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.inputResistanceLabel.setObjectName( _fromUtf8("inputResistanceLabel")) self.gridLayout.addWidget(self.inputResistanceLabel, 1, 1, 1, 1) self.accessResistanceCheck = QtGui.QCheckBox(self.widget) font = QtGui.QFont() font.setPointSize(11) self.accessResistanceCheck.setFont(font) self.accessResistanceCheck.setObjectName( _fromUtf8("accessResistanceCheck")) self.gridLayout.addWidget(self.accessResistanceCheck, 2, 0, 1, 1) self.restingCurrentLabel = QtGui.QLabel(self.widget) self.restingCurrentLabel.setMinimumSize(QtCore.QSize(120, 0)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.restingCurrentLabel.setFont(font) self.restingCurrentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.restingCurrentLabel.setObjectName( _fromUtf8("restingCurrentLabel")) self.gridLayout.addWidget(self.restingCurrentLabel, 4, 1, 1, 1) self.capacitanceCheck = QtGui.QCheckBox(self.widget) self.capacitanceCheck.setObjectName(_fromUtf8("capacitanceCheck")) self.gridLayout.addWidget(self.capacitanceCheck, 5, 0, 1, 1) self.restingPotentialCheck = QtGui.QCheckBox(self.widget) font = QtGui.QFont() font.setPointSize(11) self.restingPotentialCheck.setFont(font) self.restingPotentialCheck.setObjectName( _fromUtf8("restingPotentialCheck")) self.gridLayout.addWidget(self.restingPotentialCheck, 3, 0, 1, 1) self.restingCurrentCheck = QtGui.QCheckBox(self.widget) self.restingCurrentCheck.setObjectName( _fromUtf8("restingCurrentCheck")) self.gridLayout.addWidget(self.restingCurrentCheck, 4, 0, 1, 1) self.capacitanceLabel = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.capacitanceLabel.setFont(font) self.capacitanceLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.capacitanceLabel.setObjectName(_fromUtf8("capacitanceLabel")) self.gridLayout.addWidget(self.capacitanceLabel, 5, 1, 1, 1) self.fitErrorLabel = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.fitErrorLabel.setFont(font) self.fitErrorLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.fitErrorLabel.setObjectName(_fromUtf8("fitErrorLabel")) self.gridLayout.addWidget(self.fitErrorLabel, 6, 1, 1, 1) self.resetBtn = QtGui.QToolButton(self.widget) self.resetBtn.setObjectName(_fromUtf8("resetBtn")) self.gridLayout.addWidget(self.resetBtn, 0, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 7, 1, 1, 1) self.layoutWidget1 = QtGui.QWidget(self.splitter_3) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.plotLayout = QtGui.QVBoxLayout(self.layoutWidget1) self.plotLayout.setSpacing(0) self.plotLayout.setMargin(0) self.plotLayout.setObjectName(_fromUtf8("plotLayout")) self.verticalLayout_2.addWidget(self.splitter_4) self.retranslateUi(Form) self.tabWidget.setCurrentIndex(-1) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(_translate("Form", "Form", None)) self.startBtn.setText(_translate("Form", "Start", None)) self.recordBtn.setText(_translate("Form", "Record", None)) self.label_4.setText(_translate("Form", "Delay Length", None)) self.delayTimeSpin.setSuffix(_translate("Form", "s", None)) self.label_3.setText(_translate("Form", "Pulse Length", None)) self.pulseTimeSpin.setSuffix(_translate("Form", "s", None)) self.label.setText(_translate("Form", "Cycle Time", None)) self.cycleTimeSpin.setSuffix(_translate("Form", "s", None)) self.label_2.setText(_translate("Form", "Average", None)) self.restingPotentialLabel.setText(_translate("Form", "0", None)) self.fitErrorCheck.setText(_translate("Form", "Fit Error", None)) self.drawFitCheck.setText(_translate("Form", "Draw Fit", None)) self.inputResistanceCheck.setText( _translate("Form", "Input Res.", None)) self.accessResistanceLabel.setText(_translate("Form", "0", None)) self.inputResistanceLabel.setText(_translate("Form", "0", None)) self.accessResistanceCheck.setText( _translate("Form", "Access Res.", None)) self.restingCurrentLabel.setText(_translate("Form", "0", None)) self.capacitanceCheck.setText(_translate("Form", "Capacitance", None)) self.restingPotentialCheck.setText( _translate("Form", "Rest Potential", None)) self.restingCurrentCheck.setText( _translate("Form", "Rest Current", None)) self.capacitanceLabel.setText(_translate("Form", "0", None)) self.fitErrorLabel.setText(_translate("Form", "0", None)) self.resetBtn.setText(_translate("Form", "Reset History", None))
class Ui_MockClampDevGui(object): def setupUi(self, MockClampDevGui): MockClampDevGui.setObjectName(_fromUtf8("MockClampDevGui")) MockClampDevGui.resize(459, 243) self.gridLayout = QtGui.QGridLayout(MockClampDevGui) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.groupBox_2 = QtGui.QGroupBox(MockClampDevGui) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.vcModeRadio = QtGui.QRadioButton(self.groupBox_2) self.vcModeRadio.setObjectName(_fromUtf8("vcModeRadio")) self.horizontalLayout.addWidget(self.vcModeRadio) self.i0ModeRadio = QtGui.QRadioButton(self.groupBox_2) self.i0ModeRadio.setObjectName(_fromUtf8("i0ModeRadio")) self.horizontalLayout.addWidget(self.i0ModeRadio) self.icModeRadio = QtGui.QRadioButton(self.groupBox_2) self.icModeRadio.setObjectName(_fromUtf8("icModeRadio")) self.horizontalLayout.addWidget(self.icModeRadio) self.gridLayout_3.addLayout(self.horizontalLayout, 0, 0, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1) self.vcHoldingSpin = SpinBox(self.groupBox_2) self.vcHoldingSpin.setObjectName(_fromUtf8("vcHoldingSpin")) self.gridLayout_3.addWidget(self.vcHoldingSpin, 1, 1, 1, 1) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1) self.icHoldingSpin = SpinBox(self.groupBox_2) self.icHoldingSpin.setObjectName(_fromUtf8("icHoldingSpin")) self.gridLayout_3.addWidget(self.icHoldingSpin, 2, 1, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 4, 0, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 3, 0, 1, 1) self.pipOffsetSpin = SpinBox(self.groupBox_2) self.pipOffsetSpin.setObjectName(_fromUtf8("pipOffsetSpin")) self.gridLayout_3.addWidget(self.pipOffsetSpin, 3, 1, 1, 1) self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 1) self.groupBox = QtGui.QGroupBox(MockClampDevGui) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.pipCapSpin = SpinBox(self.groupBox) self.pipCapSpin.setObjectName(_fromUtf8("pipCapSpin")) self.gridLayout_2.addWidget(self.pipCapSpin, 0, 1, 1, 2) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.pipResSpin = SpinBox(self.groupBox) self.pipResSpin.setObjectName(_fromUtf8("pipResSpin")) self.gridLayout_2.addWidget(self.pipResSpin, 1, 1, 1, 2) self.label_5 = QtGui.QLabel(self.groupBox) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1) self.pipJunctPotSpin = SpinBox(self.groupBox) self.pipJunctPotSpin.setObjectName(_fromUtf8("pipJunctPotSpin")) self.gridLayout_2.addWidget(self.pipJunctPotSpin, 2, 1, 1, 2) self.pipBathRadio = QtGui.QRadioButton(self.groupBox) self.pipBathRadio.setObjectName(_fromUtf8("pipBathRadio")) self.gridLayout_2.addWidget(self.pipBathRadio, 3, 0, 1, 3) self.pipAttachRadio = QtGui.QRadioButton(self.groupBox) self.pipAttachRadio.setObjectName(_fromUtf8("pipAttachRadio")) self.gridLayout_2.addWidget(self.pipAttachRadio, 5, 0, 1, 2) self.pipWholeRadio = QtGui.QRadioButton(self.groupBox) self.pipWholeRadio.setObjectName(_fromUtf8("pipWholeRadio")) self.gridLayout_2.addWidget(self.pipWholeRadio, 5, 2, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem1, 6, 0, 1, 1) self.comboBox = QtGui.QComboBox(self.groupBox) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.comboBox.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.comboBox, 4, 1, 1, 2) self.label_7 = QtGui.QLabel(self.groupBox) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_2.addWidget(self.label_7, 4, 0, 1, 1) self.gridLayout.addWidget(self.groupBox, 0, 1, 1, 1) self.retranslateUi(MockClampDevGui) QtCore.QMetaObject.connectSlotsByName(MockClampDevGui) def retranslateUi(self, MockClampDevGui): MockClampDevGui.setWindowTitle( QtGui.QApplication.translate("MockClampDevGui", "Form", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_2.setTitle( QtGui.QApplication.translate("MockClampDevGui", "Clamp", None, QtGui.QApplication.UnicodeUTF8)) self.vcModeRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "VC", None, QtGui.QApplication.UnicodeUTF8)) self.i0ModeRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "I=0", None, QtGui.QApplication.UnicodeUTF8)) self.icModeRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "IC", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText( QtGui.QApplication.translate("MockClampDevGui", "VC Holding", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText( QtGui.QApplication.translate("MockClampDevGui", "IC Holding", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setText( QtGui.QApplication.translate("MockClampDevGui", "Pipette Offset", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setTitle( QtGui.QApplication.translate("MockClampDevGui", "Pipette", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText( QtGui.QApplication.translate("MockClampDevGui", "Capacitance", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText( QtGui.QApplication.translate("MockClampDevGui", "Resistance", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText( QtGui.QApplication.translate("MockClampDevGui", "Junct. Pot.", None, QtGui.QApplication.UnicodeUTF8)) self.pipBathRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "Bath", None, QtGui.QApplication.UnicodeUTF8)) self.pipAttachRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "On Cell", None, QtGui.QApplication.UnicodeUTF8)) self.pipWholeRadio.setText( QtGui.QApplication.translate("MockClampDevGui", "Whole Cell", None, QtGui.QApplication.UnicodeUTF8)) self.comboBox.setItemText( 0, QtGui.QApplication.translate("MockClampDevGui", "HH", None, QtGui.QApplication.UnicodeUTF8)) self.comboBox.setItemText( 1, QtGui.QApplication.translate("MockClampDevGui", "Type II", None, QtGui.QApplication.UnicodeUTF8)) self.comboBox.setItemText( 2, QtGui.QApplication.translate("MockClampDevGui", "Type I", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText( QtGui.QApplication.translate("MockClampDevGui", "Cell", None, QtGui.QApplication.UnicodeUTF8))
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.resize(1051, 877) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setMargin(0) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.graphicsView = GraphicsView(self.centralwidget) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.horizontalLayout_3.addWidget(self.graphicsView) MainWindow.setCentralWidget(self.centralwidget) self.statusbar = QtGui.QStatusBar(MainWindow) self.statusbar.setObjectName(_fromUtf8("statusbar")) MainWindow.setStatusBar(self.statusbar) self.dockWidget = QtGui.QDockWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidget.sizePolicy().hasHeightForWidth()) self.dockWidget.setSizePolicy(sizePolicy) self.dockWidget.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.dockWidget.setObjectName(_fromUtf8("dockWidget")) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.gridLayout_2 = QtGui.QGridLayout(self.dockWidgetContents) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.btnAcquire = QtGui.QPushButton(self.dockWidgetContents) self.btnAcquire.setCheckable(True) self.btnAcquire.setObjectName(_fromUtf8("btnAcquire")) self.horizontalLayout_5.addWidget(self.btnAcquire) self.btnSnap = FeedbackButton(self.dockWidgetContents) self.btnSnap.setObjectName(_fromUtf8("btnSnap")) self.horizontalLayout_5.addWidget(self.btnSnap) self.btnRecord = QtGui.QPushButton(self.dockWidgetContents) self.btnRecord.setEnabled(True) self.btnRecord.setCheckable(True) self.btnRecord.setFlat(False) self.btnRecord.setObjectName(_fromUtf8("btnRecord")) self.horizontalLayout_5.addWidget(self.btnRecord) self.recordXframesCheck = QtGui.QCheckBox(self.dockWidgetContents) self.recordXframesCheck.setObjectName(_fromUtf8("recordXframesCheck")) self.horizontalLayout_5.addWidget(self.recordXframesCheck) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.recordXframesSpin = QtGui.QSpinBox(self.dockWidgetContents) self.recordXframesSpin.setEnabled(True) self.recordXframesSpin.setMinimum(1) self.recordXframesSpin.setMaximum(1000000) self.recordXframesSpin.setProperty("value", 100) self.recordXframesSpin.setObjectName(_fromUtf8("recordXframesSpin")) self.horizontalLayout_4.addWidget(self.recordXframesSpin) self.framesLabel = QtGui.QLabel(self.dockWidgetContents) self.framesLabel.setEnabled(True) self.framesLabel.setObjectName(_fromUtf8("framesLabel")) self.horizontalLayout_4.addWidget(self.framesLabel) self.horizontalLayout_5.addLayout(self.horizontalLayout_4) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.gridLayout_2.addLayout(self.horizontalLayout_5, 0, 0, 1, 1) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setSpacing(6) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.label_2 = QtGui.QLabel(self.dockWidgetContents) self.label_2.setObjectName(_fromUtf8("label_2")) self.hboxlayout.addWidget(self.label_2) self.binningCombo = QtGui.QComboBox(self.dockWidgetContents) self.binningCombo.setObjectName(_fromUtf8("binningCombo")) self.hboxlayout.addWidget(self.binningCombo) self.label_3 = QtGui.QLabel(self.dockWidgetContents) self.label_3.setObjectName(_fromUtf8("label_3")) self.hboxlayout.addWidget(self.label_3) self.spinExposure = SpinBox(self.dockWidgetContents) self.spinExposure.setMinimumSize(QtCore.QSize(80, 0)) self.spinExposure.setObjectName(_fromUtf8("spinExposure")) self.hboxlayout.addWidget(self.spinExposure) self.btnFullFrame = QtGui.QPushButton(self.dockWidgetContents) self.btnFullFrame.setObjectName(_fromUtf8("btnFullFrame")) self.hboxlayout.addWidget(self.btnFullFrame) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout.addItem(spacerItem1) self.gridLayout_2.addLayout(self.hboxlayout, 1, 0, 1, 1) self.dockWidget.setWidget(self.dockWidgetContents) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.dockWidget) self.dockWidget_2 = QtGui.QDockWidget(MainWindow) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidget_2.sizePolicy().hasHeightForWidth()) self.dockWidget_2.setSizePolicy(sizePolicy) self.dockWidget_2.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.dockWidget_2.setObjectName(_fromUtf8("dockWidget_2")) self.dockWidgetContents_2 = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidgetContents_2.sizePolicy().hasHeightForWidth()) self.dockWidgetContents_2.setSizePolicy(sizePolicy) self.dockWidgetContents_2.setObjectName(_fromUtf8("dockWidgetContents_2")) self.vboxlayout = QtGui.QVBoxLayout(self.dockWidgetContents_2) self.vboxlayout.setSpacing(0) self.vboxlayout.setMargin(0) self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) self.histogram = HistogramLUTWidget(self.dockWidgetContents_2) self.histogram.setObjectName(_fromUtf8("histogram")) self.hboxlayout1.addWidget(self.histogram) self.vboxlayout.addLayout(self.hboxlayout1) self.btnAutoGain = QtGui.QPushButton(self.dockWidgetContents_2) self.btnAutoGain.setCheckable(True) self.btnAutoGain.setChecked(False) self.btnAutoGain.setObjectName(_fromUtf8("btnAutoGain")) self.vboxlayout.addWidget(self.btnAutoGain) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setHorizontalSpacing(6) self.gridlayout.setVerticalSpacing(0) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.label_6 = QtGui.QLabel(self.dockWidgetContents_2) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridlayout.addWidget(self.label_6, 0, 0, 1, 1) self.spinAutoGainSpeed = QtGui.QDoubleSpinBox(self.dockWidgetContents_2) self.spinAutoGainSpeed.setProperty("value", 2.0) self.spinAutoGainSpeed.setObjectName(_fromUtf8("spinAutoGainSpeed")) self.gridlayout.addWidget(self.spinAutoGainSpeed, 0, 1, 1, 1) self.label_8 = QtGui.QLabel(self.dockWidgetContents_2) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridlayout.addWidget(self.label_8, 1, 0, 1, 1) self.spinAutoGainCenterWeight = QtGui.QDoubleSpinBox(self.dockWidgetContents_2) self.spinAutoGainCenterWeight.setMaximum(1.0) self.spinAutoGainCenterWeight.setSingleStep(0.1) self.spinAutoGainCenterWeight.setObjectName(_fromUtf8("spinAutoGainCenterWeight")) self.gridlayout.addWidget(self.spinAutoGainCenterWeight, 1, 1, 1, 1) self.vboxlayout.addLayout(self.gridlayout) self.dockWidget_2.setWidget(self.dockWidgetContents_2) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget_2) self.dockWidget_4 = QtGui.QDockWidget(MainWindow) self.dockWidget_4.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable|QtGui.QDockWidget.DockWidgetVerticalTitleBar) self.dockWidget_4.setObjectName(_fromUtf8("dockWidget_4")) self.dockWidgetContents_4 = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidgetContents_4.sizePolicy().hasHeightForWidth()) self.dockWidgetContents_4.setSizePolicy(sizePolicy) self.dockWidgetContents_4.setObjectName(_fromUtf8("dockWidgetContents_4")) self.horizontalLayout = QtGui.QHBoxLayout(self.dockWidgetContents_4) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.checkEnableROIs = QtGui.QCheckBox(self.dockWidgetContents_4) self.checkEnableROIs.setObjectName(_fromUtf8("checkEnableROIs")) self.gridLayout.addWidget(self.checkEnableROIs, 0, 0, 1, 2) self.label_7 = QtGui.QLabel(self.dockWidgetContents_4) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1) self.spinROITime = QtGui.QDoubleSpinBox(self.dockWidgetContents_4) self.spinROITime.setSingleStep(0.1) self.spinROITime.setProperty("value", 5.0) self.spinROITime.setObjectName(_fromUtf8("spinROITime")) self.gridLayout.addWidget(self.spinROITime, 5, 1, 1, 1) spacerItem2 = QtGui.QSpacerItem(88, 17, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem2, 6, 0, 1, 2) self.btnAddROI = QtGui.QPushButton(self.dockWidgetContents_4) self.btnAddROI.setObjectName(_fromUtf8("btnAddROI")) self.gridLayout.addWidget(self.btnAddROI, 1, 0, 1, 1) self.btnClearROIs = QtGui.QPushButton(self.dockWidgetContents_4) self.btnClearROIs.setObjectName(_fromUtf8("btnClearROIs")) self.gridLayout.addWidget(self.btnClearROIs, 1, 1, 1, 1) self.horizontalLayout.addLayout(self.gridLayout) self.plotWidget = PlotWidget(self.dockWidgetContents_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.plotWidget.sizePolicy().hasHeightForWidth()) self.plotWidget.setSizePolicy(sizePolicy) self.plotWidget.setObjectName(_fromUtf8("plotWidget")) self.horizontalLayout.addWidget(self.plotWidget) self.dockWidget_4.setWidget(self.dockWidgetContents_4) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(4), self.dockWidget_4) self.dockWidget_5 = QtGui.QDockWidget(MainWindow) self.dockWidget_5.setFloating(False) self.dockWidget_5.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.dockWidget_5.setObjectName(_fromUtf8("dockWidget_5")) self.dockWidgetContents_5 = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidgetContents_5.sizePolicy().hasHeightForWidth()) self.dockWidgetContents_5.setSizePolicy(sizePolicy) self.dockWidgetContents_5.setObjectName(_fromUtf8("dockWidgetContents_5")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.dockWidgetContents_5) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.addFrameBtn = FeedbackButton(self.dockWidgetContents_5) self.addFrameBtn.setObjectName(_fromUtf8("addFrameBtn")) self.horizontalLayout_2.addWidget(self.addFrameBtn) self.clearFramesBtn = QtGui.QPushButton(self.dockWidgetContents_5) self.clearFramesBtn.setObjectName(_fromUtf8("clearFramesBtn")) self.horizontalLayout_2.addWidget(self.clearFramesBtn) self.dockWidget_5.setWidget(self.dockWidgetContents_5) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget_5) self.dockWidget_3 = QtGui.QDockWidget(MainWindow) self.dockWidget_3.setFloating(False) self.dockWidget_3.setFeatures(QtGui.QDockWidget.DockWidgetFloatable|QtGui.QDockWidget.DockWidgetMovable) self.dockWidget_3.setObjectName(_fromUtf8("dockWidget_3")) self.dockWidgetContents_3 = QtGui.QWidget() sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dockWidgetContents_3.sizePolicy().hasHeightForWidth()) self.dockWidgetContents_3.setSizePolicy(sizePolicy) self.dockWidgetContents_3.setObjectName(_fromUtf8("dockWidgetContents_3")) self.gridLayout_3 = QtGui.QGridLayout(self.dockWidgetContents_3) self.gridLayout_3.setMargin(0) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.dockWidgetContents_3) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 1, 0, 1, 1) spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem3, 6, 1, 1, 1) self.contAvgBgCheck = QtGui.QCheckBox(self.dockWidgetContents_3) self.contAvgBgCheck.setObjectName(_fromUtf8("contAvgBgCheck")) self.gridLayout_3.addWidget(self.contAvgBgCheck, 2, 0, 1, 4) self.bgTimeSpin = QtGui.QDoubleSpinBox(self.dockWidgetContents_3) self.bgTimeSpin.setDecimals(1) self.bgTimeSpin.setSingleStep(1.0) self.bgTimeSpin.setProperty("value", 3.0) self.bgTimeSpin.setObjectName(_fromUtf8("bgTimeSpin")) self.gridLayout_3.addWidget(self.bgTimeSpin, 1, 2, 1, 2) self.collectBgBtn = QtGui.QPushButton(self.dockWidgetContents_3) self.collectBgBtn.setCheckable(True) self.collectBgBtn.setObjectName(_fromUtf8("collectBgBtn")) self.gridLayout_3.addWidget(self.collectBgBtn, 0, 0, 1, 4) self.divideBgBtn = QtGui.QPushButton(self.dockWidgetContents_3) self.divideBgBtn.setCheckable(True) self.divideBgBtn.setAutoExclusive(False) self.divideBgBtn.setObjectName(_fromUtf8("divideBgBtn")) self.gridLayout_3.addWidget(self.divideBgBtn, 5, 0, 1, 4) self.label_5 = QtGui.QLabel(self.dockWidgetContents_3) self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_3.addWidget(self.label_5, 3, 0, 1, 1) self.bgBlurSpin = QtGui.QDoubleSpinBox(self.dockWidgetContents_3) self.bgBlurSpin.setProperty("value", 0.0) self.bgBlurSpin.setObjectName(_fromUtf8("bgBlurSpin")) self.gridLayout_3.addWidget(self.bgBlurSpin, 3, 2, 1, 2) self.subtractBgBtn = QtGui.QPushButton(self.dockWidgetContents_3) self.subtractBgBtn.setCheckable(True) self.subtractBgBtn.setAutoExclusive(False) self.subtractBgBtn.setObjectName(_fromUtf8("subtractBgBtn")) self.gridLayout_3.addWidget(self.subtractBgBtn, 4, 0, 1, 4) self.dockWidget_3.setWidget(self.dockWidgetContents_3) MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2), self.dockWidget_3) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_translate("MainWindow", "Camera", None)) self.dockWidget.setWindowTitle(_translate("MainWindow", "Camera", None)) self.btnAcquire.setToolTip(_translate("MainWindow", "Start/stop camera acquisition.\n" "In general, this can just stay on always.", None)) self.btnAcquire.setText(_translate("MainWindow", "Acquire", None)) self.btnSnap.setToolTip(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Record a single frame. </span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Image is written to the current storage directory set in </span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">the data manager window.</span></p></body></html>", None)) self.btnSnap.setText(_translate("MainWindow", "Snap", None)) self.btnRecord.setToolTip(_translate("MainWindow", "Start/stop recording frames as they are acquired. \n" "Frames are written to the current storage directory set in \n" "the data manager window.", None)) self.btnRecord.setText(_translate("MainWindow", "Record", None)) self.recordXframesCheck.setText(_translate("MainWindow", "Stop recording after", None)) self.framesLabel.setText(_translate("MainWindow", "frames.", None)) self.label_2.setText(_translate("MainWindow", "Binning", None)) self.label_3.setText(_translate("MainWindow", "Exposure", None)) self.spinExposure.setToolTip(_translate("MainWindow", "Sets the exposure time for each frame.", None)) self.btnFullFrame.setToolTip(_translate("MainWindow", "Set the region of interest to the maximum possible area.", None)) self.btnFullFrame.setText(_translate("MainWindow", "Full Frame", None)) self.dockWidget_2.setWindowTitle(_translate("MainWindow", "Display Gain", None)) self.btnAutoGain.setToolTip(_translate("MainWindow", "Determines the behavior of the white/black level sliders.\n" "When enabled, the sliders maximum and minimum values are set\n" "to the maximum and minimum intensity values in the image.\n" "When disabled, the minimum is 0 and the maximum is the largest \n" "possible intensity given the bit depth of the camera.", None)) self.btnAutoGain.setText(_translate("MainWindow", "Auto Gain", None)) self.label_6.setText(_translate("MainWindow", "Slow", None)) self.spinAutoGainSpeed.setToolTip(_translate("MainWindow", "Smooths out the auto gain control, prevents very\n" "brief flashes from affecting the gain. Larger values\n" "indicate more smoothing.\n" "", None)) self.label_8.setText(_translate("MainWindow", "Center Weight", None)) self.spinAutoGainCenterWeight.setToolTip(_translate("MainWindow", "Weights the auto gain measurement to the center 1/3 of\n" "the frame when set to 1.0. A value of 0.0 meters from \n" "the entire frame.", None)) self.dockWidget_4.setWindowTitle(_translate("MainWindow", "Plots", None)) self.checkEnableROIs.setToolTip(_translate("MainWindow", "Enables online calculation/plotting for ROIs.\n" "ROIs can be still be used as position markers \n" "if this box is unchecked.", None)) self.checkEnableROIs.setText(_translate("MainWindow", "Enable ROIs", None)) self.label_7.setText(_translate("MainWindow", "Time:", None)) self.spinROITime.setToolTip(_translate("MainWindow", "Sets the amount of time that ROI data is displayed in the plot.", None)) self.btnAddROI.setToolTip(_translate("MainWindow", "Adds an ROI to the canvas.", None)) self.btnAddROI.setText(_translate("MainWindow", "Add", None)) self.btnClearROIs.setToolTip(_translate("MainWindow", "Clears all ROIs from the canvas.", None)) self.btnClearROIs.setText(_translate("MainWindow", "Clear", None)) self.dockWidget_5.setWindowTitle(_translate("MainWindow", "Persistent Frames", None)) self.addFrameBtn.setToolTip(_translate("MainWindow", "Adds the current camera image to the canvas.\n" "", None)) self.addFrameBtn.setText(_translate("MainWindow", "Add", None)) self.clearFramesBtn.setToolTip(_translate("MainWindow", "Clears all images from the canvas.", None)) self.clearFramesBtn.setText(_translate("MainWindow", "Clear", None)) self.dockWidget_3.setWindowTitle(_translate("MainWindow", "Background Subtraction", None)) self.label_4.setText(_translate("MainWindow", "Average", None)) self.contAvgBgCheck.setText(_translate("MainWindow", "Continuous Average", None)) self.bgTimeSpin.setToolTip(_translate("MainWindow", "Sets the approximate number of frames to be averaged for\n" "background division.", None)) self.bgTimeSpin.setSuffix(_translate("MainWindow", " s", None)) self.collectBgBtn.setText(_translate("MainWindow", "Collect Background", None)) self.divideBgBtn.setToolTip(_translate("MainWindow", "Enables background division. \n" "Either a set of static background frames need to have already by collected\n" "(by pressing \'Static\' above) or \'Continuous\' needs to be pressed.", None)) self.divideBgBtn.setText(_translate("MainWindow", "Divide Background", None)) self.label_5.setText(_translate("MainWindow", "Blur Background.", None)) self.bgBlurSpin.setToolTip(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Blurs the background frame before dividing it from the current frame.</span></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Large blur values may cause performance to degrade.</span></p></body></html>", None)) self.subtractBgBtn.setText(_translate("MainWindow", "Subtract Background", None))