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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/load_cell_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(440, 282)
        self.verticalLayout = QtWidgets.QVBoxLayout(Calibration)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.spin_weight = QtWidgets.QSpinBox(Calibration)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spin_weight.sizePolicy().hasHeightForWidth())
        self.spin_weight.setSizePolicy(sizePolicy)
        self.spin_weight.setMinimum(100)
        self.spin_weight.setMaximum(1000000000)
        self.spin_weight.setSingleStep(100)
        self.spin_weight.setObjectName("spin_weight")
        self.gridLayout.addWidget(self.spin_weight, 4, 2, 1, 1)
        self.button_weight = QtWidgets.QPushButton(Calibration)
        self.button_weight.setObjectName("button_weight")
        self.gridLayout.addWidget(self.button_weight, 5, 1, 1, 3)
        self.button_zero = QtWidgets.QPushButton(Calibration)
        self.button_zero.setObjectName("button_zero")
        self.gridLayout.addWidget(self.button_zero, 1, 1, 1, 3)
        self.label_3 = QtWidgets.QLabel(Calibration)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 3, 1, 1)
        self.label_step1 = QtWidgets.QLabel(Calibration)
        self.label_step1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_step1.setObjectName("label_step1")
        self.gridLayout.addWidget(self.label_step1, 0, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(Calibration)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 0, 1, 1, 3)
        self.label_step2 = QtWidgets.QLabel(Calibration)
        self.label_step2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_step2.setObjectName("label_step2")
        self.gridLayout.addWidget(self.label_step2, 3, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(Calibration)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 3, 1, 1, 3)
        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, 2, 0, 1, 4)
        self.label_status = QtWidgets.QLabel(Calibration)
        self.label_status.setWordWrap(True)
        self.label_status.setObjectName("label_status")
        self.gridLayout.addWidget(self.label_status, 7, 1, 1, 3)
        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, 6, 0, 1, 4)
        self.label_2 = QtWidgets.QLabel(Calibration)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 4, 1, 1, 1)
        self.button_close = QtWidgets.QPushButton(Calibration)
        self.button_close.setObjectName("button_close")
        self.gridLayout.addWidget(self.button_close, 10, 1, 1, 3)
        spacerItem = QtWidgets.QSpacerItem(20, 15, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 8, 1, 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, 9, 0, 1, 4)
        self.verticalLayout.addLayout(self.gridLayout)

        self.retranslateUi(Calibration)
        QtCore.QMetaObject.connectSlotsByName(Calibration)
        Calibration.setTabOrder(self.button_zero, self.spin_weight)
        Calibration.setTabOrder(self.spin_weight, self.button_weight)

    def retranslateUi(self, Calibration):
        _translate = QtCore.QCoreApplication.translate
        Calibration.setWindowTitle(_translate("Calibration", "Load Cell Calibration"))
        self.button_weight.setText(_translate("Calibration", "Calibrate Weight"))
        self.button_zero.setText(_translate("Calibration", "Calibrate Zero"))
        self.label_3.setText(_translate("Calibration", "gram"))
        self.label_step1.setText(_translate("Calibration", "Step 1:"))
        self.label_6.setText(_translate("Calibration", "Empty the scale and click \"Calibrate Zero\"."))
        self.label_step2.setText(_translate("Calibration", "Step 2:"))
        self.label_7.setText(_translate("Calibration", "Add a known weight to the scale, enter it as \"Current Weight\" and click \"Calibrate Weight\"."))
        self.label_status.setText(_translate("Calibration", "<status>"))
        self.label_2.setText(_translate("Calibration", "Current Weight:"))
        self.button_close.setText(_translate("Calibration", "Close"))
