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

# Form implementation generated from reading ui file 'thermoelectric.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.resize(1051, 663)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widgetFrameOuter = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widgetFrameOuter.sizePolicy().hasHeightForWidth())
        self.widgetFrameOuter.setSizePolicy(sizePolicy)
        self.widgetFrameOuter.setStyleSheet("")
        self.widgetFrameOuter.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.widgetFrameOuter.setFrameShadow(QtWidgets.QFrame.Raised)
        self.widgetFrameOuter.setObjectName("widgetFrameOuter")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widgetFrameOuter)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.frame_4 = QtWidgets.QFrame(self.widgetFrameOuter)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(1)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.frame_6 = QtWidgets.QFrame(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_6.sizePolicy().hasHeightForWidth())
        self.frame_6.setSizePolicy(sizePolicy)
        self.frame_6.setMinimumSize(QtCore.QSize(0, 50))
        self.frame_6.setStyleSheet("")
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.gridLayout = QtWidgets.QGridLayout(self.frame_6)
        self.gridLayout.setContentsMargins(5, 5, 5, 2)
        self.gridLayout.setHorizontalSpacing(5)
        self.gridLayout.setVerticalSpacing(10)
        self.gridLayout.setObjectName("gridLayout")
        self.intervalBox = QtWidgets.QDoubleSpinBox(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.intervalBox.sizePolicy().hasHeightForWidth())
        self.intervalBox.setSizePolicy(sizePolicy)
        self.intervalBox.setMinimum(0.01)
        self.intervalBox.setMaximum(5.0)
        self.intervalBox.setProperty("value", 1.0)
        self.intervalBox.setObjectName("intervalBox")
        self.gridLayout.addWidget(self.intervalBox, 1, 0, 1, 1)
        self.graph = PlotWidget(self.frame_6)
        self.graph.setObjectName("graph")
        self.gridLayout.addWidget(self.graph, 2, 1, 6, 3)
        self.pushButton = QtWidgets.QPushButton(self.frame_6)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 8, 3, 1, 1)
        self.frame_5 = QtWidgets.QFrame(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth())
        self.frame_5.setSizePolicy(sizePolicy)
        self.frame_5.setMinimumSize(QtCore.QSize(0, 250))
        self.frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.gaugeLayout = QtWidgets.QGridLayout(self.frame_5)
        self.gaugeLayout.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
        self.gaugeLayout.setContentsMargins(0, 0, 0, 0)
        self.gaugeLayout.setHorizontalSpacing(0)
        self.gaugeLayout.setVerticalSpacing(1)
        self.gaugeLayout.setObjectName("gaugeLayout")
        self.gridLayout.addWidget(self.frame_5, 5, 0, 1, 1)
        self.addPointButton = QtWidgets.QPushButton(self.frame_6)
        self.addPointButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.addPointButton.setStyleSheet("background-color: rgb(192, 97, 203);")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/control/plus.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.addPointButton.setIcon(icon)
        self.addPointButton.setObjectName("addPointButton")
        self.gridLayout.addWidget(self.addPointButton, 10, 0, 1, 1)
        self.thermometerFrame = QtWidgets.QFrame(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.thermometerFrame.sizePolicy().hasHeightForWidth())
        self.thermometerFrame.setSizePolicy(sizePolicy)
        self.thermometerFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.thermometerFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.thermometerFrame.setObjectName("thermometerFrame")
        self.thermometerLayout = QtWidgets.QVBoxLayout(self.thermometerFrame)
        self.thermometerLayout.setContentsMargins(2, 2, 2, 2)
        self.thermometerLayout.setSpacing(2)
        self.thermometerLayout.setObjectName("thermometerLayout")
        self.gridLayout.addWidget(self.thermometerFrame, 4, 0, 1, 1)
        self.msgwin = QtWidgets.QLabel(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.msgwin.sizePolicy().hasHeightForWidth())
        self.msgwin.setSizePolicy(sizePolicy)
        self.msgwin.setText("")
        self.msgwin.setObjectName("msgwin")
        self.gridLayout.addWidget(self.msgwin, 8, 1, 1, 2)
        self.msgwin_2 = QtWidgets.QLabel(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.msgwin_2.sizePolicy().hasHeightForWidth())
        self.msgwin_2.setSizePolicy(sizePolicy)
        self.msgwin_2.setAlignment(QtCore.Qt.AlignCenter)
        self.msgwin_2.setObjectName("msgwin_2")
        self.gridLayout.addWidget(self.msgwin_2, 0, 0, 1, 4)
        self.confVMeter = QtWidgets.QPushButton(self.frame_6)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/control/settings.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.confVMeter.setIcon(icon1)
        self.confVMeter.setObjectName("confVMeter")
        self.gridLayout.addWidget(self.confVMeter, 2, 0, 1, 1)
        self.valueTable = QtWidgets.QTableWidget(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.valueTable.sizePolicy().hasHeightForWidth())
        self.valueTable.setSizePolicy(sizePolicy)
        self.valueTable.setMaximumSize(QtCore.QSize(16777215, 350))
        self.valueTable.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.valueTable.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.valueTable.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
        self.valueTable.setSelectionMode(QtWidgets.QAbstractItemView.ContiguousSelection)
        self.valueTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.valueTable.setRowCount(2)
        self.valueTable.setColumnCount(2)
        self.valueTable.setObjectName("valueTable")
        self.valueTable.horizontalHeader().setDefaultSectionSize(120)
        self.valueTable.horizontalHeader().setHighlightSections(True)
        self.valueTable.horizontalHeader().setMinimumSectionSize(80)
        self.valueTable.horizontalHeader().setSortIndicatorShown(False)
        self.valueTable.horizontalHeader().setStretchLastSection(True)
        self.valueTable.verticalHeader().setVisible(True)
        self.valueTable.verticalHeader().setStretchLastSection(True)
        self.gridLayout.addWidget(self.valueTable, 7, 0, 3, 1)
        self.logButton = QtWidgets.QPushButton(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.logButton.sizePolicy().hasHeightForWidth())
        self.logButton.setSizePolicy(sizePolicy)
        self.logButton.setMinimumSize(QtCore.QSize(150, 25))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/control/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.logButton.setIcon(icon2)
        self.logButton.setObjectName("logButton")
        self.gridLayout.addWidget(self.logButton, 1, 1, 1, 3)
        self.frame = QtWidgets.QFrame(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.formLayout = QtWidgets.QFormLayout(self.frame)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.frame)
        self.label.setObjectName("label")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label)
        self.sensitivityEdit = QtWidgets.QLineEdit(self.frame)
        self.sensitivityEdit.setText("")
        self.sensitivityEdit.setObjectName("sensitivityEdit")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.sensitivityEdit)
        self.label_2 = QtWidgets.QLabel(self.frame)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.roomEdit = QtWidgets.QLineEdit(self.frame)
        self.roomEdit.setText("")
        self.roomEdit.setObjectName("roomEdit")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.roomEdit)
        self.pushButton_2 = QtWidgets.QPushButton(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
        self.pushButton_2.setSizePolicy(sizePolicy)
        self.pushButton_2.setObjectName("pushButton_2")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.pushButton_2)
        self.gridLayout.addWidget(self.frame, 9, 1, 2, 3)
        self.gridLayout.setColumnStretch(0, 1)
        self.gridLayout.setColumnStretch(1, 2)
        self.gridLayout.setRowStretch(0, 1)
        self.gridLayout.setRowStretch(1, 1)
        self.gridLayout.setRowStretch(2, 1)
        self.gridLayout.setRowStretch(3, 2)
        self.gridLayout.setRowStretch(4, 1)
        self.gridLayout.setRowStretch(5, 1)
        self.gridLayout.setRowStretch(6, 4)
        self.gridLayout.setRowStretch(7, 1)
        self.gridLayout.setRowStretch(8, 1)
        self.gridLayout.setRowStretch(9, 1)
        self.gridLayout.setRowStretch(10, 1)
        self.verticalLayout_5.addWidget(self.frame_6)
        self.verticalLayout_4.addWidget(self.frame_4)
        self.verticalLayout.addWidget(self.widgetFrameOuter)

        self.retranslateUi(Form)
        self.pushButton_2.clicked.connect(Form.linearFit) # type: ignore
        self.logButton.clicked.connect(Form.toggleLogging) # type: ignore
        self.pushButton.clicked.connect(Form.saveData) # type: ignore
        self.confVMeter.clicked.connect(Form.configureVoltmeter) # type: ignore
        self.addPointButton.clicked.connect(Form.addDatapoint) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        Form.setProperty("class", _translate("Form", "mainbg"))
        self.widgetFrameOuter.setProperty("class", _translate("Form", "PeripheralCollection"))
        self.frame_6.setProperty("class", _translate("Form", "PeripheralCollectionInner"))
        self.intervalBox.setPrefix(_translate("Form", "Record Every "))
        self.intervalBox.setSuffix(_translate("Form", "C"))
        self.pushButton.setText(_translate("Form", "SAVE"))
        self.pushButton.setShortcut(_translate("Form", "Ctrl+S"))
        self.addPointButton.setText(_translate("Form", "Add Datapoint"))
        self.addPointButton.setShortcut(_translate("Form", "+"))
        self.msgwin_2.setText(_translate("Form", "Thermo-Electric Coefficient Measurement"))
        self.confVMeter.setText(_translate("Form", "VOLTMETER: A3"))
        self.logButton.setText(_translate("Form", "START MEASUREMENTS"))
        self.logButton.setShortcut(_translate("Form", "S"))
        self.label.setText(_translate("Form", "Sensitivity (uV/C)"))
        self.label_2.setText(_translate("Form", "Estimated Room T"))
        self.pushButton_2.setText(_translate("Form", "LINEAR FIT"))
        self.pushButton_2.setShortcut(_translate("Form", "F"))
from pyqtgraph import PlotWidget
from . import resplus_rc
