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

# Form implementation generated from reading ui file 'thermometer.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(386, 159)
        Form.setStyleSheet("#Form {border: 1px solid gray;}")
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.temperatureSensorBox = QtWidgets.QComboBox(Form)
        self.temperatureSensorBox.setObjectName("temperatureSensorBox")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.temperatureSensorBox.addItem("")
        self.gridLayout.addWidget(self.temperatureSensorBox, 2, 0, 1, 2)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 7, 0, 1, 1)
        self.titleLabel = QtWidgets.QLabel(Form)
        self.titleLabel.setObjectName("titleLabel")
        self.gridLayout.addWidget(self.titleLabel, 1, 0, 1, 2)
        self.manualTemperature = QtWidgets.QDoubleSpinBox(Form)
        self.manualTemperature.setDecimals(1)
        self.manualTemperature.setMinimum(-10.0)
        self.manualTemperature.setProperty("value", 25.0)
        self.manualTemperature.setObjectName("manualTemperature")
        self.gridLayout.addWidget(self.manualTemperature, 5, 2, 1, 2)
        self.pushButton_7 = QtWidgets.QPushButton(Form)
        self.pushButton_7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButton_7.setStyleSheet("background-color: rgb(192, 97, 203);")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/control/reset.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_7.setIcon(icon)
        self.pushButton_7.setObjectName("pushButton_7")
        self.gridLayout.addWidget(self.pushButton_7, 7, 2, 1, 2)
        self.frame = QtWidgets.QFrame(Form)
        self.frame.setMinimumSize(QtCore.QSize(0, 2))
        self.frame.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 0, 0, 255), stop:0.05 rgba(14, 8, 73, 255), stop:0.36 rgba(28, 17, 145, 255), stop:0.6 rgba(126, 14, 81, 255), stop:0.75 rgba(234, 11, 11, 255), stop:0.79 rgba(244, 70, 5, 255), stop:0.86 rgba(255, 136, 0, 255), stop:0.935 rgba(239, 236, 55, 255));")
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout.addWidget(self.frame, 4, 0, 1, 4)
        self.pushButton_9 = QtWidgets.QPushButton(Form)
        self.pushButton_9.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButton_9.setStyleSheet("background-color: rgb(192, 97, 203);")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/control/download.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_9.setIcon(icon1)
        self.pushButton_9.setObjectName("pushButton_9")
        self.gridLayout.addWidget(self.pushButton_9, 6, 1, 1, 1)
        self.pushButton_5 = QtWidgets.QPushButton(Form)
        self.pushButton_5.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButton_5.setStyleSheet("background-color: rgb(192, 97, 203);")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/control/search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_5.setIcon(icon2)
        self.pushButton_5.setObjectName("pushButton_5")
        self.gridLayout.addWidget(self.pushButton_5, 2, 2, 1, 2)
        self.tempLabel = QtWidgets.QLabel(Form)
        self.tempLabel.setObjectName("tempLabel")
        self.gridLayout.addWidget(self.tempLabel, 1, 2, 1, 2)
        self.frame_2 = QtWidgets.QFrame(Form)
        self.frame_2.setMinimumSize(QtCore.QSize(0, 3))
        self.frame_2.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 0, 0, 255), stop:0.05 rgba(14, 8, 73, 255), stop:0.36 rgba(28, 17, 145, 255), stop:0.6 rgba(126, 14, 81, 255), stop:0.75 rgba(234, 11, 11, 255), stop:0.79 rgba(244, 70, 5, 255), stop:0.86 rgba(255, 136, 0, 255), stop:0.935 rgba(239, 236, 55, 255));")
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.gridLayout.addWidget(self.frame_2, 8, 0, 1, 4)
        self.calibrationLabel = QtWidgets.QLabel(Form)
        self.calibrationLabel.setObjectName("calibrationLabel")
        self.gridLayout.addWidget(self.calibrationLabel, 7, 1, 1, 1)
        self.pushButton_6 = QtWidgets.QPushButton(Form)
        self.pushButton_6.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButton_6.setStyleSheet("background-color: rgb(192, 97, 203);")
        self.pushButton_6.setIcon(icon1)
        self.pushButton_6.setObjectName("pushButton_6")
        self.gridLayout.addWidget(self.pushButton_6, 6, 2, 1, 2)
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 5, 0, 1, 2)
        self.pushButton_8 = QtWidgets.QPushButton(Form)
        self.pushButton_8.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pushButton_8.setStyleSheet("background-color: rgb(192, 97, 203);")
        self.pushButton_8.setIcon(icon1)
        self.pushButton_8.setObjectName("pushButton_8")
        self.gridLayout.addWidget(self.pushButton_8, 6, 0, 1, 1)
        self.frame_3 = QtWidgets.QFrame(Form)
        self.frame_3.setMinimumSize(QtCore.QSize(0, 3))
        self.frame_3.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 0, 0, 255), stop:0.05 rgba(14, 8, 73, 255), stop:0.36 rgba(28, 17, 145, 255), stop:0.6 rgba(126, 14, 81, 255), stop:0.75 rgba(234, 11, 11, 255), stop:0.79 rgba(244, 70, 5, 255), stop:0.86 rgba(255, 136, 0, 255), stop:0.935 rgba(239, 236, 55, 255));")
        self.frame_3.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.gridLayout.addWidget(self.frame_3, 0, 0, 1, 4)
        self.gridLayout.setColumnStretch(0, 2)

        self.retranslateUi(Form)
        self.temperatureSensorBox.currentIndexChanged['int'].connect(Form.setThermometer) # type: ignore
        self.pushButton_5.clicked.connect(Form.guessThermometer) # type: ignore
        self.pushButton_6.clicked.connect(Form.addCalibrationPoint) # type: ignore
        self.pushButton_7.clicked.connect(Form.resetCalibration) # type: ignore
        self.pushButton_9.clicked.connect(Form.addCalibration100) # type: ignore
        self.pushButton_8.clicked.connect(Form.addCalibration0) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.temperatureSensorBox.setItemText(0, _translate("Form", "PT1000"))
        self.temperatureSensorBox.setItemText(1, _translate("Form", "PT100"))
        self.temperatureSensorBox.setItemText(2, _translate("Form", "MAX6675"))
        self.temperatureSensorBox.setItemText(3, _translate("Form", "BMP180"))
        self.temperatureSensorBox.setItemText(4, _translate("Form", "BMP280"))
        self.temperatureSensorBox.setItemText(5, _translate("Form", "LM35"))
        self.temperatureSensorBox.setItemText(6, _translate("Form", "NOT FOUND"))
        self.label_2.setText(_translate("Form", "Calibration:"))
        self.titleLabel.setText(_translate("Form", "Temperature Sensor"))
        self.manualTemperature.setSuffix(_translate("Form", " C"))
        self.pushButton_7.setText(_translate("Form", "Reset"))
        self.pushButton_9.setToolTip(_translate("Form", "First immerse in an ice bath, and click on calibrate\n"
"then immerse in boiling water, and click on calibrate"))
        self.pushButton_9.setText(_translate("Form", "Calibrate (100 C)"))
        self.pushButton_5.setText(_translate("Form", "Find"))
        self.tempLabel.setText(_translate("Form", "."))
        self.calibrationLabel.setText(_translate("Form", "y = 1*x + 0"))
        self.pushButton_6.setToolTip(_translate("Form", "Set the correct temperature in the above box, and click here"))
        self.pushButton_6.setText(_translate("Form", "Calibrate"))
        self.label.setText(_translate("Form", "Manually Enter Actual Temperature :"))
        self.pushButton_8.setToolTip(_translate("Form", "First immerse in an ice bath, and click on calibrate\n"
"then immerse in boiling water, and click on calibrate"))
        self.pushButton_8.setText(_translate("Form", "Calibrate (0 C)"))
from . import resplus_rc
