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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/voltage_current_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(521, 609)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(Calibration)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        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.label_2 = QtWidgets.QLabel(Calibration)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.btn_cal_c = QtWidgets.QPushButton(Calibration)
        self.btn_cal_c.setObjectName("btn_cal_c")
        self.gridLayout.addWidget(self.btn_cal_c, 13, 0, 1, 2)
        self.lbl_voltage = QtWidgets.QLabel(Calibration)
        self.lbl_voltage.setObjectName("lbl_voltage")
        self.gridLayout.addWidget(self.lbl_voltage, 0, 1, 1, 1)
        self.lbl_current = QtWidgets.QLabel(Calibration)
        self.lbl_current.setObjectName("lbl_current")
        self.gridLayout.addWidget(self.lbl_current, 1, 1, 1, 1)
        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_11 = QtWidgets.QLabel(Calibration)
        self.label_11.setTextFormat(QtCore.Qt.RichText)
        self.label_11.setObjectName("label_11")
        self.gridLayout.addWidget(self.label_11, 11, 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.sbox_cal_c_mul = QtWidgets.QSpinBox(Calibration)
        self.sbox_cal_c_mul.setMinimum(1)
        self.sbox_cal_c_mul.setMaximum(65535)
        self.sbox_cal_c_mul.setProperty("value", 1)
        self.sbox_cal_c_mul.setObjectName("sbox_cal_c_mul")
        self.gridLayout.addWidget(self.sbox_cal_c_mul, 12, 1, 1, 1)
        self.btn_cal_rst = QtWidgets.QPushButton(Calibration)
        self.btn_cal_rst.setObjectName("btn_cal_rst")
        self.gridLayout.addWidget(self.btn_cal_rst, 5, 0, 1, 2)
        self.lbl_power = QtWidgets.QLabel(Calibration)
        self.lbl_power.setObjectName("lbl_power")
        self.gridLayout.addWidget(self.lbl_power, 2, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(Calibration)
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 12, 0, 1, 1)
        self.label = QtWidgets.QLabel(Calibration)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        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.btn_cal_v = QtWidgets.QPushButton(Calibration)
        self.btn_cal_v.setObjectName("btn_cal_v")
        self.gridLayout.addWidget(self.btn_cal_v, 9, 0, 1, 2)
        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.line_4 = QtWidgets.QFrame(Calibration)
        self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")
        self.gridLayout.addWidget(self.line_4, 10, 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.sbox_cal_v_mul = QtWidgets.QSpinBox(Calibration)
        self.sbox_cal_v_mul.setMinimum(1)
        self.sbox_cal_v_mul.setMaximum(65535)
        self.sbox_cal_v_mul.setObjectName("sbox_cal_v_mul")
        self.gridLayout.addWidget(self.sbox_cal_v_mul, 8, 1, 1, 1)
        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, 14, 0, 1, 2)
        self.btn_close = QtWidgets.QPushButton(Calibration)
        self.btn_close.setObjectName("btn_close")
        self.gridLayout.addWidget(self.btn_close, 16, 0, 1, 2)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 15, 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", "Voltage Current 2.0 Calibration"))
        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 then first calibrate the voltage and then the current.</p></body></html>"))
        self.label_2.setText(_translate("Calibration", "Current:"))
        self.btn_cal_c.setText(_translate("Calibration", "Calibrate Current"))
        self.lbl_voltage.setText(_translate("Calibration", "0"))
        self.lbl_current.setText(_translate("Calibration", "0"))
        self.label_5.setText(_translate("Calibration", "<html><head/><body><p><span style=\" font-weight:600;\">Step 2:</span> Voltage calibration.<br/><br/>A) Disconnect the load.<br/>B) Apply input voltage on the IN+ and IN- terminals.<br/>C) Measure the input voltage and enter the measured voltage below.<br/>D) Click &quot;Calibrate Voltage&quot;. </p></body></html>"))
        self.label_11.setText(_translate("Calibration", "<html><head/><body><p><span style=\" font-weight:600;\">Step 3:</span> Current calibration.<br/><br/>A) Connect a load on the OUT+ and OUT- terminals.<br/>B) Measure the load current and enter the current below.<br/>C) Click &quot;Calibrate Current&quot;. </p></body></html>"))
        self.label_3.setText(_translate("Calibration", "Power:"))
        self.sbox_cal_c_mul.setSuffix(_translate("Calibration", " mA"))
        self.btn_cal_rst.setText(_translate("Calibration", "Remove Old Calibration"))
        self.lbl_power.setText(_translate("Calibration", "0"))
        self.label_12.setText(_translate("Calibration", "Current:"))
        self.label.setText(_translate("Calibration", "Voltage:"))
        self.btn_cal_v.setText(_translate("Calibration", "Calibrate Voltage"))
        self.label_6.setText(_translate("Calibration", "Voltage:"))
        self.sbox_cal_v_mul.setSuffix(_translate("Calibration", " mV"))
        self.btn_close.setText(_translate("Calibration", "Close"))
