# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'CV.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.setProperty("modal", False)
        Form.resize(957, 606)
        font = QtGui.QFont()
        font.setPointSize(9)
        Form.setFont(font)
        Form.setAutoFillBackground(True)
        Form.setProperty("sizeGripEnabled", True)
        self.horizontalLayout = QtWidgets.QHBoxLayout(Form)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.splitter = QtWidgets.QSplitter(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setStyleSheet("QSplitter::handle { background-color: #772820; }")
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setHandleWidth(10)
        self.splitter.setObjectName("splitter")
        self.frame_2 = QtWidgets.QFrame(self.splitter)
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_2)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame_3 = QtWidgets.QFrame(self.frame_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.gaugeLayout = QtWidgets.QHBoxLayout(self.frame_3)
        self.gaugeLayout.setContentsMargins(2, 2, 2, 2)
        self.gaugeLayout.setSpacing(2)
        self.gaugeLayout.setObjectName("gaugeLayout")
        self.verticalLayout.addWidget(self.frame_3)
        self.frame_4 = QtWidgets.QFrame(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_4.sizePolicy().hasHeightForWidth())
        self.frame_4.setSizePolicy(sizePolicy)
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_4)
        self.gridLayout.setObjectName("gridLayout")
        self.rateBox = QtWidgets.QComboBox(self.frame_4)
        self.rateBox.setObjectName("rateBox")
        self.gridLayout.addWidget(self.rateBox, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.frame_4)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.frame_9 = QtWidgets.QFrame(self.frame_4)
        self.frame_9.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_9.setObjectName("frame_9")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_9)
        self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_7.setSpacing(2)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_4 = QtWidgets.QLabel(self.frame_9)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_7.addWidget(self.label_4)
        self.R1Box = QtWidgets.QLineEdit(self.frame_9)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.R1Box.sizePolicy().hasHeightForWidth())
        self.R1Box.setSizePolicy(sizePolicy)
        self.R1Box.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
        self.R1Box.setObjectName("R1Box")
        self.horizontalLayout_7.addWidget(self.R1Box)
        self.gridLayout.addWidget(self.frame_9, 2, 2, 1, 1)
        self.delayEdit = QtWidgets.QLineEdit(self.frame_4)
        self.delayEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
        self.delayEdit.setObjectName("delayEdit")
        self.gridLayout.addWidget(self.delayEdit, 2, 1, 1, 1)
        self.frame_6 = QtWidgets.QFrame(self.frame_4)
        self.frame_6.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_6)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(2)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.startEdit = QtWidgets.QLineEdit(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.startEdit.sizePolicy().hasHeightForWidth())
        self.startEdit.setSizePolicy(sizePolicy)
        self.startEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
        self.startEdit.setObjectName("startEdit")
        self.horizontalLayout_3.addWidget(self.startEdit)
        self.stopEdit = QtWidgets.QLineEdit(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stopEdit.sizePolicy().hasHeightForWidth())
        self.stopEdit.setSizePolicy(sizePolicy)
        self.stopEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
        self.stopEdit.setObjectName("stopEdit")
        self.horizontalLayout_3.addWidget(self.stopEdit)
        self.gridLayout.addWidget(self.frame_6, 1, 2, 1, 1)
        self.comboBox = QtWidgets.QComboBox(self.frame_4)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.gridLayout.addWidget(self.comboBox, 1, 0, 1, 1)
        self.frame_7 = QtWidgets.QFrame(self.frame_4)
        self.frame_7.setMinimumSize(QtCore.QSize(0, 10))
        self.frame_7.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_7)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setSpacing(2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.xLabel = QtWidgets.QLabel(self.frame_7)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.xLabel.setFont(font)
        self.xLabel.setObjectName("xLabel")
        self.horizontalLayout_4.addWidget(self.xLabel)
        self.yLabel = QtWidgets.QLabel(self.frame_7)
        font = QtGui.QFont()
        font.setPointSize(16)
        self.yLabel.setFont(font)
        self.yLabel.setObjectName("yLabel")
        self.horizontalLayout_4.addWidget(self.yLabel)
        self.gridLayout.addWidget(self.frame_7, 0, 0, 1, 3)
        self.cycleEdit = QtWidgets.QLineEdit(self.frame_4)
        self.cycleEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
        self.cycleEdit.setObjectName("cycleEdit")
        self.gridLayout.addWidget(self.cycleEdit, 3, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.frame_4)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
        self.frame_8 = QtWidgets.QFrame(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_8.sizePolicy().hasHeightForWidth())
        self.frame_8.setSizePolicy(sizePolicy)
        self.frame_8.setMinimumSize(QtCore.QSize(0, 20))
        self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame_8)
        self.horizontalLayout_5.setContentsMargins(1, 1, 1, 1)
        self.horizontalLayout_5.setSpacing(2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.playButton = QtWidgets.QPushButton(self.frame_8)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/controls/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.playButton.setIcon(icon)
        self.playButton.setObjectName("playButton")
        self.horizontalLayout_5.addWidget(self.playButton)
        self.pushButton_5 = QtWidgets.QPushButton(self.frame_8)
        self.pushButton_5.setMaximumSize(QtCore.QSize(50, 16777215))
        self.pushButton_5.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/controls/stop.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_5.setIcon(icon1)
        self.pushButton_5.setObjectName("pushButton_5")
        self.horizontalLayout_5.addWidget(self.pushButton_5)
        self.gridLayout.addWidget(self.frame_8, 3, 2, 1, 1)
        self.verticalLayout.addWidget(self.frame_4)
        self.frame = QtWidgets.QFrame(self.splitter)
        self.frame.setMinimumSize(QtCore.QSize(300, 0))
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.splitter_3 = QtWidgets.QSplitter(self.frame)
        self.splitter_3.setOrientation(QtCore.Qt.Vertical)
        self.splitter_3.setObjectName("splitter_3")
        self.cv_plot = PlotWidget(self.splitter_3)
        self.cv_plot.setObjectName("cv_plot")
        self.voltage_plot = PlotWidget(self.splitter_3)
        self.voltage_plot.setObjectName("voltage_plot")
        self.verticalLayout_2.addWidget(self.splitter_3)
        self.horizontalLayout.addWidget(self.splitter)

        self.retranslateUi(Form)
        self.playButton.clicked.connect(Form.toggleLogging) # type: ignore
        self.pushButton_5.clicked.connect(Form.stopLogging) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Configure Axis"))
        self.label_2.setText(_translate("Form", "Settling Delay (mS): "))
        self.label_4.setText(_translate("Form", "R1 (Ohms)"))
        self.R1Box.setText(_translate("Form", "1000"))
        self.R1Box.setPlaceholderText(_translate("Form", "Stop Freq"))
        self.delayEdit.setText(_translate("Form", "20"))
        self.delayEdit.setPlaceholderText(_translate("Form", "Settling Delay(ms)"))
        self.startEdit.setText(_translate("Form", "-3.3"))
        self.startEdit.setPlaceholderText(_translate("Form", "Start Freq"))
        self.stopEdit.setText(_translate("Form", "3.0"))
        self.stopEdit.setPlaceholderText(_translate("Form", "Stop Freq"))
        self.comboBox.setItemText(0, _translate("Form", "PV1"))
        self.comboBox.setItemText(1, _translate("Form", "PV2"))
        self.xLabel.setText(_translate("Form", "V(A1-A2)"))
        self.yLabel.setText(_translate("Form", "I (PV2-A1)/R1 mA"))
        self.cycleEdit.setText(_translate("Form", "2"))
        self.cycleEdit.setPlaceholderText(_translate("Form", "Settling Delay(ms)"))
        self.label_3.setText(_translate("Form", "Cycles"))
        self.playButton.setText(_translate("Form", "START"))
from pyqtgraph import PlotWidget
from . import res_rc
