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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/barometer_v2/ui/calibration.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_Calibration(object):
    def setupUi(self, Calibration):
        Calibration.setObjectName("Calibration")
        Calibration.resize(468, 440)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(Calibration)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_5 = QtWidgets.QLabel(Calibration)
        self.label_5.setTextFormat(QtCore.Qt.RichText)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 7, 0, 1, 2)
        self.label_2 = QtWidgets.QLabel(Calibration)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.line_3 = QtWidgets.QFrame(Calibration)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.gridLayout.addWidget(self.line_3, 6, 0, 1, 2)
        self.label_6 = QtWidgets.QLabel(Calibration)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 8, 0, 1, 1)
        self.lbl_altitude = QtWidgets.QLabel(Calibration)
        self.lbl_altitude.setObjectName("lbl_altitude")
        self.gridLayout.addWidget(self.lbl_altitude, 1, 1, 1, 1)
        self.btn_cal_calibrate = QtWidgets.QPushButton(Calibration)
        self.btn_cal_calibrate.setObjectName("btn_cal_calibrate")
        self.gridLayout.addWidget(self.btn_cal_calibrate, 9, 0, 1, 2)
        self.line = QtWidgets.QFrame(Calibration)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 3, 0, 1, 2)
        self.label_3 = QtWidgets.QLabel(Calibration)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.lbl_temperature = QtWidgets.QLabel(Calibration)
        self.lbl_temperature.setObjectName("lbl_temperature")
        self.gridLayout.addWidget(self.lbl_temperature, 2, 1, 1, 1)
        self.btn_cal_remove = QtWidgets.QPushButton(Calibration)
        self.btn_cal_remove.setObjectName("btn_cal_remove")
        self.gridLayout.addWidget(self.btn_cal_remove, 5, 0, 1, 2)
        self.label = QtWidgets.QLabel(Calibration)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(Calibration)
        self.label_4.setTextFormat(QtCore.Qt.RichText)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 4, 0, 1, 2)
        self.lbl_air_pressure = QtWidgets.QLabel(Calibration)
        self.lbl_air_pressure.setObjectName("lbl_air_pressure")
        self.gridLayout.addWidget(self.lbl_air_pressure, 0, 1, 1, 1)
        self.sbox_cal_actual_air_pressure = QtWidgets.QDoubleSpinBox(Calibration)
        self.sbox_cal_actual_air_pressure.setDecimals(3)
        self.sbox_cal_actual_air_pressure.setMinimum(260.0)
        self.sbox_cal_actual_air_pressure.setMaximum(1260.0)
        self.sbox_cal_actual_air_pressure.setSingleStep(1.0)
        self.sbox_cal_actual_air_pressure.setProperty("value", 1013.25)
        self.sbox_cal_actual_air_pressure.setObjectName("sbox_cal_actual_air_pressure")
        self.gridLayout.addWidget(self.sbox_cal_actual_air_pressure, 8, 1, 1, 1)
        self.btn_close = QtWidgets.QPushButton(Calibration)
        self.btn_close.setObjectName("btn_close")
        self.gridLayout.addWidget(self.btn_close, 12, 0, 1, 2)
        self.line_2 = QtWidgets.QFrame(Calibration)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout.addWidget(self.line_2, 10, 0, 1, 2)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 11, 0, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)

        self.retranslateUi(Calibration)
        QtCore.QMetaObject.connectSlotsByName(Calibration)

    def retranslateUi(self, Calibration):
        _translate = QtCore.QCoreApplication.translate
        Calibration.setWindowTitle(_translate("Calibration", "Barometer 2.0 Calibration"))
        self.label_5.setText(_translate("Calibration", "<html><head/><body><p><span style=\" font-weight:600;\">Step 2:</span> Air pressure calibration.<br/><br/>A) Measure the air pressure with a precise barometer.<br/>B) Enter the measured air pressure below in hPa.<br/>C) Click \"Calibrate Air Pressure\". </p></body></html>\n"
""))
        self.label_2.setText(_translate("Calibration", "Altitude:"))
        self.label_6.setText(_translate("Calibration", "Actual Air Pressure:"))
        self.lbl_altitude.setText(_translate("Calibration", "0"))
        self.btn_cal_calibrate.setText(_translate("Calibration", "Calibrate Air Pressure"))
        self.label_3.setText(_translate("Calibration", "Temperature:"))
        self.lbl_temperature.setText(_translate("Calibration", "0"))
        self.btn_cal_remove.setText(_translate("Calibration", "Remove Old Calibration"))
        self.label.setText(_translate("Calibration", "Air Pressure:"))
        self.label_4.setText(_translate("Calibration", "<html><head/><body><p><span style=\" font-weight:600;\">Step 1:</span> To recalibrate the Bricklet you have to remove the old <br/>calibration.</p></body></html>"))
        self.lbl_air_pressure.setText(_translate("Calibration", "0"))
        self.sbox_cal_actual_air_pressure.setSuffix(_translate("Calibration", " hPa"))
        self.btn_close.setText(_translate("Calibration", "Close"))
