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

# Form implementation generated from reading ui file '/home/buildbot/buildbot/worker/probe_basic-dev/sources/debian/python3-probe-basic/usr/share/configs/machine_setup_files/user_dro_display/xyza_dros/offset_dros_xyza.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_offset_dros_xyza(object):
    def setupUi(self, offset_dros_xyza):
        offset_dros_xyza.setObjectName("offset_dros_xyza")
        offset_dros_xyza.resize(493, 220)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(offset_dros_xyza.sizePolicy().hasHeightForWidth())
        offset_dros_xyza.setSizePolicy(sizePolicy)
        offset_dros_xyza.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.verticalLayout = QtWidgets.QVBoxLayout(offset_dros_xyza)
        self.verticalLayout.setContentsMargins(9, 9, 9, 9)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.x_axis_dro_layout_6 = QtWidgets.QHBoxLayout()
        self.x_axis_dro_layout_6.setContentsMargins(-1, 4, -1, 4)
        self.x_axis_dro_layout_6.setSpacing(12)
        self.x_axis_dro_layout_6.setObjectName("x_axis_dro_layout_6")
        self.zero_x_button_offset = MDIButton(offset_dros_xyza)
        self.zero_x_button_offset.setEnabled(False)
        self.zero_x_button_offset.setMinimumSize(QtCore.QSize(55, 38))
        self.zero_x_button_offset.setMaximumSize(QtCore.QSize(55, 38))
        self.zero_x_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
        self.zero_x_button_offset.setStyleSheet("MDIButton {\n"
"       font: 15pt \"Bebas Kai\";\n"
"}")
        self.zero_x_button_offset.setObjectName("zero_x_button_offset")
        self.x_axis_dro_layout_6.addWidget(self.zero_x_button_offset)
        self.axis_label_x = QtWidgets.QLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.axis_label_x.sizePolicy().hasHeightForWidth())
        self.axis_label_x.setSizePolicy(sizePolicy)
        self.axis_label_x.setMinimumSize(QtCore.QSize(45, 35))
        self.axis_label_x.setMaximumSize(QtCore.QSize(45, 35))
        self.axis_label_x.setStyleSheet("QLabel{\n"
"    border-style: solid;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: rgb(238, 238, 236);\n"
"    font: 18pt \"Bebas Kai\";\n"
"}")
        self.axis_label_x.setAlignment(QtCore.Qt.AlignCenter)
        self.axis_label_x.setObjectName("axis_label_x")
        self.x_axis_dro_layout_6.addWidget(self.axis_label_x)
        self.dro_entry_offset_x = DROLineEdit(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dro_entry_offset_x.sizePolicy().hasHeightForWidth())
        self.dro_entry_offset_x.setSizePolicy(sizePolicy)
        self.dro_entry_offset_x.setMinimumSize(QtCore.QSize(0, 38))
        self.dro_entry_offset_x.setMaximumSize(QtCore.QSize(16777215, 38))
        font = QtGui.QFont()
        font.setFamily("Bebas Kai")
        font.setPointSize(17)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.dro_entry_offset_x.setFont(font)
        self.dro_entry_offset_x.setStyleSheet("QLineEdit{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    padding-right: 2px;\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.dro_entry_offset_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dro_entry_offset_x.setObjectName("dro_entry_offset_x")
        self.x_axis_dro_layout_6.addWidget(self.dro_entry_offset_x)
        self.drolabel_work_x = DROLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.drolabel_work_x.sizePolicy().hasHeightForWidth())
        self.drolabel_work_x.setSizePolicy(sizePolicy)
        self.drolabel_work_x.setMinimumSize(QtCore.QSize(0, 38))
        self.drolabel_work_x.setMaximumSize(QtCore.QSize(16777215, 38))
        self.drolabel_work_x.setStyleSheet("QLabel{\n"
"    border-style: transparent;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"    padding-right: 2px;\n"
"}\n"
"\n"
"QLabel[style=\"unhomed\"]{\n"
"   color: red;\n"
"}\n"
"\n"
"QLabel[style=\"homing\"]{\n"
"   color: rgb(196, 160, 0);\n"
"}")
        self.drolabel_work_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.drolabel_work_x.setProperty("referenceType", 0)
        self.drolabel_work_x.setProperty("axisNumber", 0)
        self.drolabel_work_x.setProperty("latheMode", 0)
        self.drolabel_work_x.setObjectName("drolabel_work_x")
        self.x_axis_dro_layout_6.addWidget(self.drolabel_work_x)
        self.work_offset_x = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.work_offset_x.sizePolicy().hasHeightForWidth())
        self.work_offset_x.setSizePolicy(sizePolicy)
        self.work_offset_x.setMinimumSize(QtCore.QSize(0, 38))
        self.work_offset_x.setMaximumSize(QtCore.QSize(16777215, 38))
        self.work_offset_x.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.work_offset_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.work_offset_x.setObjectName("work_offset_x")
        self.x_axis_dro_layout_6.addWidget(self.work_offset_x)
        self.g52_g92_x = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.g52_g92_x.sizePolicy().hasHeightForWidth())
        self.g52_g92_x.setSizePolicy(sizePolicy)
        self.g52_g92_x.setMinimumSize(QtCore.QSize(0, 38))
        self.g52_g92_x.setMaximumSize(QtCore.QSize(16777215, 38))
        self.g52_g92_x.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.g52_g92_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.g52_g92_x.setObjectName("g52_g92_x")
        self.x_axis_dro_layout_6.addWidget(self.g52_g92_x)
        self.tool_offset_x = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tool_offset_x.sizePolicy().hasHeightForWidth())
        self.tool_offset_x.setSizePolicy(sizePolicy)
        self.tool_offset_x.setMinimumSize(QtCore.QSize(0, 38))
        self.tool_offset_x.setMaximumSize(QtCore.QSize(16777215, 38))
        self.tool_offset_x.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.tool_offset_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tool_offset_x.setObjectName("tool_offset_x")
        self.x_axis_dro_layout_6.addWidget(self.tool_offset_x)
        self.verticalLayout.addLayout(self.x_axis_dro_layout_6)
        self.y_axis_dro_layout_6 = QtWidgets.QHBoxLayout()
        self.y_axis_dro_layout_6.setContentsMargins(-1, 4, -1, 4)
        self.y_axis_dro_layout_6.setSpacing(12)
        self.y_axis_dro_layout_6.setObjectName("y_axis_dro_layout_6")
        self.zero_y_button_offset = MDIButton(offset_dros_xyza)
        self.zero_y_button_offset.setEnabled(False)
        self.zero_y_button_offset.setMinimumSize(QtCore.QSize(55, 38))
        self.zero_y_button_offset.setMaximumSize(QtCore.QSize(55, 38))
        self.zero_y_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
        self.zero_y_button_offset.setStyleSheet("MDIButton {\n"
"       font: 15pt \"Bebas Kai\";\n"
"}")
        self.zero_y_button_offset.setObjectName("zero_y_button_offset")
        self.y_axis_dro_layout_6.addWidget(self.zero_y_button_offset)
        self.axis_label_y = QtWidgets.QLabel(offset_dros_xyza)
        self.axis_label_y.setMinimumSize(QtCore.QSize(45, 35))
        self.axis_label_y.setMaximumSize(QtCore.QSize(45, 35))
        self.axis_label_y.setStyleSheet("QLabel{\n"
"    border-style: solid;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: rgb(238, 238, 236);\n"
"    font: 18pt \"Bebas Kai\";\n"
"}")
        self.axis_label_y.setAlignment(QtCore.Qt.AlignCenter)
        self.axis_label_y.setObjectName("axis_label_y")
        self.y_axis_dro_layout_6.addWidget(self.axis_label_y)
        self.dro_entry_offset_y = DROLineEdit(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dro_entry_offset_y.sizePolicy().hasHeightForWidth())
        self.dro_entry_offset_y.setSizePolicy(sizePolicy)
        self.dro_entry_offset_y.setMinimumSize(QtCore.QSize(0, 38))
        self.dro_entry_offset_y.setMaximumSize(QtCore.QSize(16777215, 38))
        font = QtGui.QFont()
        font.setFamily("Bebas Kai")
        font.setPointSize(17)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.dro_entry_offset_y.setFont(font)
        self.dro_entry_offset_y.setStyleSheet("QLineEdit{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    padding-right: 2px;\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.dro_entry_offset_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dro_entry_offset_y.setProperty("axisNumber", 1)
        self.dro_entry_offset_y.setObjectName("dro_entry_offset_y")
        self.y_axis_dro_layout_6.addWidget(self.dro_entry_offset_y)
        self.drolabel_work_y = DROLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.drolabel_work_y.sizePolicy().hasHeightForWidth())
        self.drolabel_work_y.setSizePolicy(sizePolicy)
        self.drolabel_work_y.setMinimumSize(QtCore.QSize(0, 38))
        self.drolabel_work_y.setMaximumSize(QtCore.QSize(16777215, 38))
        self.drolabel_work_y.setStyleSheet("QLabel{\n"
"    border-style: transparent;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"    padding-right: 2px;\n"
"}\n"
"\n"
"QLabel[style=\"unhomed\"]{\n"
"   color: red;\n"
"}\n"
"\n"
"QLabel[style=\"homing\"]{\n"
"   color: rgb(196, 160, 0);\n"
"}")
        self.drolabel_work_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.drolabel_work_y.setProperty("referenceType", 0)
        self.drolabel_work_y.setProperty("axisNumber", 1)
        self.drolabel_work_y.setProperty("latheMode", 0)
        self.drolabel_work_y.setObjectName("drolabel_work_y")
        self.y_axis_dro_layout_6.addWidget(self.drolabel_work_y)
        self.work_offset_y = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.work_offset_y.sizePolicy().hasHeightForWidth())
        self.work_offset_y.setSizePolicy(sizePolicy)
        self.work_offset_y.setMinimumSize(QtCore.QSize(0, 38))
        self.work_offset_y.setMaximumSize(QtCore.QSize(16777215, 38))
        self.work_offset_y.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.work_offset_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.work_offset_y.setObjectName("work_offset_y")
        self.y_axis_dro_layout_6.addWidget(self.work_offset_y)
        self.g52_g92_y = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.g52_g92_y.sizePolicy().hasHeightForWidth())
        self.g52_g92_y.setSizePolicy(sizePolicy)
        self.g52_g92_y.setMinimumSize(QtCore.QSize(0, 38))
        self.g52_g92_y.setMaximumSize(QtCore.QSize(16777215, 38))
        self.g52_g92_y.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.g52_g92_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.g52_g92_y.setObjectName("g52_g92_y")
        self.y_axis_dro_layout_6.addWidget(self.g52_g92_y)
        self.tool_offset_y = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tool_offset_y.sizePolicy().hasHeightForWidth())
        self.tool_offset_y.setSizePolicy(sizePolicy)
        self.tool_offset_y.setMinimumSize(QtCore.QSize(0, 38))
        self.tool_offset_y.setMaximumSize(QtCore.QSize(16777215, 38))
        self.tool_offset_y.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.tool_offset_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tool_offset_y.setObjectName("tool_offset_y")
        self.y_axis_dro_layout_6.addWidget(self.tool_offset_y)
        self.verticalLayout.addLayout(self.y_axis_dro_layout_6)
        self.z_axis_dro_layout_6 = QtWidgets.QHBoxLayout()
        self.z_axis_dro_layout_6.setContentsMargins(-1, 4, -1, 4)
        self.z_axis_dro_layout_6.setSpacing(12)
        self.z_axis_dro_layout_6.setObjectName("z_axis_dro_layout_6")
        self.zero_z_button_offset = MDIButton(offset_dros_xyza)
        self.zero_z_button_offset.setEnabled(False)
        self.zero_z_button_offset.setMinimumSize(QtCore.QSize(55, 38))
        self.zero_z_button_offset.setMaximumSize(QtCore.QSize(55, 38))
        self.zero_z_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
        self.zero_z_button_offset.setStyleSheet("MDIButton {\n"
"       font: 15pt \"Bebas Kai\";\n"
"}")
        self.zero_z_button_offset.setObjectName("zero_z_button_offset")
        self.z_axis_dro_layout_6.addWidget(self.zero_z_button_offset)
        self.axis_label_z = QtWidgets.QLabel(offset_dros_xyza)
        self.axis_label_z.setMinimumSize(QtCore.QSize(45, 35))
        self.axis_label_z.setMaximumSize(QtCore.QSize(45, 35))
        self.axis_label_z.setStyleSheet("QLabel{\n"
"    border-style: solid;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: rgb(238, 238, 236);\n"
"    font: 18pt \"Bebas Kai\";\n"
"}")
        self.axis_label_z.setAlignment(QtCore.Qt.AlignCenter)
        self.axis_label_z.setObjectName("axis_label_z")
        self.z_axis_dro_layout_6.addWidget(self.axis_label_z)
        self.dro_entry_offset_z = DROLineEdit(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dro_entry_offset_z.sizePolicy().hasHeightForWidth())
        self.dro_entry_offset_z.setSizePolicy(sizePolicy)
        self.dro_entry_offset_z.setMinimumSize(QtCore.QSize(0, 38))
        self.dro_entry_offset_z.setMaximumSize(QtCore.QSize(16777215, 38))
        font = QtGui.QFont()
        font.setFamily("Bebas Kai")
        font.setPointSize(17)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.dro_entry_offset_z.setFont(font)
        self.dro_entry_offset_z.setStyleSheet("QLineEdit{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    padding-right: 2px;\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.dro_entry_offset_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dro_entry_offset_z.setProperty("axisNumber", 2)
        self.dro_entry_offset_z.setObjectName("dro_entry_offset_z")
        self.z_axis_dro_layout_6.addWidget(self.dro_entry_offset_z)
        self.drolabel_work_z = DROLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.drolabel_work_z.sizePolicy().hasHeightForWidth())
        self.drolabel_work_z.setSizePolicy(sizePolicy)
        self.drolabel_work_z.setMinimumSize(QtCore.QSize(0, 38))
        self.drolabel_work_z.setMaximumSize(QtCore.QSize(16777215, 38))
        self.drolabel_work_z.setStyleSheet("QLabel{\n"
"    border-style: transparent;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"    padding-right: 2px;\n"
"}\n"
"\n"
"QLabel[style=\"unhomed\"]{\n"
"   color: red;\n"
"}\n"
"\n"
"QLabel[style=\"homing\"]{\n"
"   color: rgb(196, 160, 0);\n"
"}")
        self.drolabel_work_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.drolabel_work_z.setProperty("referenceType", 0)
        self.drolabel_work_z.setProperty("axisNumber", 2)
        self.drolabel_work_z.setProperty("latheMode", 0)
        self.drolabel_work_z.setObjectName("drolabel_work_z")
        self.z_axis_dro_layout_6.addWidget(self.drolabel_work_z)
        self.work_offset_z = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.work_offset_z.sizePolicy().hasHeightForWidth())
        self.work_offset_z.setSizePolicy(sizePolicy)
        self.work_offset_z.setMinimumSize(QtCore.QSize(0, 38))
        self.work_offset_z.setMaximumSize(QtCore.QSize(16777215, 38))
        self.work_offset_z.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.work_offset_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.work_offset_z.setObjectName("work_offset_z")
        self.z_axis_dro_layout_6.addWidget(self.work_offset_z)
        self.g52_g92_z = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.g52_g92_z.sizePolicy().hasHeightForWidth())
        self.g52_g92_z.setSizePolicy(sizePolicy)
        self.g52_g92_z.setMinimumSize(QtCore.QSize(0, 38))
        self.g52_g92_z.setMaximumSize(QtCore.QSize(16777215, 38))
        self.g52_g92_z.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.g52_g92_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.g52_g92_z.setObjectName("g52_g92_z")
        self.z_axis_dro_layout_6.addWidget(self.g52_g92_z)
        self.tool_offset_z = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tool_offset_z.sizePolicy().hasHeightForWidth())
        self.tool_offset_z.setSizePolicy(sizePolicy)
        self.tool_offset_z.setMinimumSize(QtCore.QSize(0, 38))
        self.tool_offset_z.setMaximumSize(QtCore.QSize(16777215, 38))
        self.tool_offset_z.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.tool_offset_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tool_offset_z.setObjectName("tool_offset_z")
        self.z_axis_dro_layout_6.addWidget(self.tool_offset_z)
        self.verticalLayout.addLayout(self.z_axis_dro_layout_6)
        self.a_axis_dro_layout_5 = QtWidgets.QHBoxLayout()
        self.a_axis_dro_layout_5.setContentsMargins(-1, 4, -1, 4)
        self.a_axis_dro_layout_5.setSpacing(12)
        self.a_axis_dro_layout_5.setObjectName("a_axis_dro_layout_5")
        self.zero_a_button_offset = MDIButton(offset_dros_xyza)
        self.zero_a_button_offset.setEnabled(False)
        self.zero_a_button_offset.setMinimumSize(QtCore.QSize(55, 38))
        self.zero_a_button_offset.setMaximumSize(QtCore.QSize(55, 38))
        self.zero_a_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
        self.zero_a_button_offset.setStyleSheet("MDIButton {\n"
"       font: 15pt \"Bebas Kai\";\n"
"}")
        self.zero_a_button_offset.setObjectName("zero_a_button_offset")
        self.a_axis_dro_layout_5.addWidget(self.zero_a_button_offset)
        self.axis_label_a = QtWidgets.QLabel(offset_dros_xyza)
        self.axis_label_a.setMinimumSize(QtCore.QSize(45, 35))
        self.axis_label_a.setMaximumSize(QtCore.QSize(45, 35))
        self.axis_label_a.setStyleSheet("QLabel{\n"
"    border-style: solid;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: rgb(238, 238, 236);\n"
"    font: 18pt \"Bebas Kai\";\n"
"}")
        self.axis_label_a.setAlignment(QtCore.Qt.AlignCenter)
        self.axis_label_a.setObjectName("axis_label_a")
        self.a_axis_dro_layout_5.addWidget(self.axis_label_a)
        self.dro_entry_offset_a = DROLineEdit(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dro_entry_offset_a.sizePolicy().hasHeightForWidth())
        self.dro_entry_offset_a.setSizePolicy(sizePolicy)
        self.dro_entry_offset_a.setMinimumSize(QtCore.QSize(0, 38))
        self.dro_entry_offset_a.setMaximumSize(QtCore.QSize(16777215, 38))
        font = QtGui.QFont()
        font.setFamily("Bebas Kai")
        font.setPointSize(17)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.dro_entry_offset_a.setFont(font)
        self.dro_entry_offset_a.setStyleSheet("QLineEdit{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    padding-right: 2px;\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.dro_entry_offset_a.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.dro_entry_offset_a.setProperty("axisNumber", 3)
        self.dro_entry_offset_a.setObjectName("dro_entry_offset_a")
        self.a_axis_dro_layout_5.addWidget(self.dro_entry_offset_a)
        self.drolabel_work_a = DROLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.drolabel_work_a.sizePolicy().hasHeightForWidth())
        self.drolabel_work_a.setSizePolicy(sizePolicy)
        self.drolabel_work_a.setMinimumSize(QtCore.QSize(0, 38))
        self.drolabel_work_a.setMaximumSize(QtCore.QSize(16777215, 38))
        self.drolabel_work_a.setStyleSheet("QLabel{\n"
"    border-style: transparent;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"    padding-right: 2px;\n"
"}\n"
"\n"
"QLabel[style=\"unhomed\"]{\n"
"   color: red;\n"
"}\n"
"\n"
"QLabel[style=\"homing\"]{\n"
"   color: rgb(196, 160, 0);\n"
"}")
        self.drolabel_work_a.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.drolabel_work_a.setProperty("referenceType", 0)
        self.drolabel_work_a.setProperty("axisNumber", 3)
        self.drolabel_work_a.setProperty("latheMode", 0)
        self.drolabel_work_a.setObjectName("drolabel_work_a")
        self.a_axis_dro_layout_5.addWidget(self.drolabel_work_a)
        self.work_offset_a = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.work_offset_a.sizePolicy().hasHeightForWidth())
        self.work_offset_a.setSizePolicy(sizePolicy)
        self.work_offset_a.setMinimumSize(QtCore.QSize(0, 38))
        self.work_offset_a.setMaximumSize(QtCore.QSize(16777215, 38))
        self.work_offset_a.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.work_offset_a.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.work_offset_a.setObjectName("work_offset_a")
        self.a_axis_dro_layout_5.addWidget(self.work_offset_a)
        self.g52_g92_a = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.g52_g92_a.sizePolicy().hasHeightForWidth())
        self.g52_g92_a.setSizePolicy(sizePolicy)
        self.g52_g92_a.setMinimumSize(QtCore.QSize(0, 38))
        self.g52_g92_a.setMaximumSize(QtCore.QSize(16777215, 38))
        self.g52_g92_a.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.g52_g92_a.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.g52_g92_a.setObjectName("g52_g92_a")
        self.a_axis_dro_layout_5.addWidget(self.g52_g92_a)
        self.tool_offset_a = StatusLabel(offset_dros_xyza)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tool_offset_a.sizePolicy().hasHeightForWidth())
        self.tool_offset_a.setSizePolicy(sizePolicy)
        self.tool_offset_a.setMinimumSize(QtCore.QSize(0, 38))
        self.tool_offset_a.setMaximumSize(QtCore.QSize(16777215, 38))
        self.tool_offset_a.setStyleSheet("StatusLabel{\n"
"    border-style: transparant;\n"
"    border-color: rgb(235, 235, 235);\n"
"    border-width: 1px;\n"
"    border-radius: 5px;\n"
"    color: black;\n"
"    background: rgb(235, 235, 235);\n"
"    font: 17pt \"Bebas Kai\";\n"
"}")
        self.tool_offset_a.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.tool_offset_a.setObjectName("tool_offset_a")
        self.a_axis_dro_layout_5.addWidget(self.tool_offset_a)
        self.verticalLayout.addLayout(self.a_axis_dro_layout_5)

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

    def retranslateUi(self, offset_dros_xyza):
        _translate = QtCore.QCoreApplication.translate
        offset_dros_xyza.setWindowTitle(_translate("offset_dros_xyza", "offset_dros_xyza"))
        self.zero_x_button_offset.setText(_translate("offset_dros_xyza", "ZERO"))
        self.zero_x_button_offset.setProperty("rules", _translate("offset_dros_xyza", "[\n"
"    {\n"
"        \"channels\": [\n"
"            {\n"
"                \"url\": \"status:g5x_index\",\n"
"                \"trigger\": true,\n"
"                \"type\": \"int\"\n"
"            }\n"
"        ],\n"
"        \"expression\": \"\",\n"
"        \"name\": \"G5x Index\",\n"
"        \"property\": \"None\"\n"
"    }\n"
"]"))
        self.zero_x_button_offset.setProperty("MDICommand", _translate("offset_dros_xyza", "G10 L20 P{ch[0]} X0.0"))
        self.axis_label_x.setText(_translate("offset_dros_xyza", "X"))
        self.drolabel_work_x.setProperty("inchFormat", _translate("offset_dros_xyza", "%9.4f"))
        self.drolabel_work_x.setProperty("millimeterFormat", _translate("offset_dros_xyza", "%10.3f"))
        self.drolabel_work_x.setProperty("degreeFormat", _translate("offset_dros_xyza", "%10.2f"))
        self.work_offset_x.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]"))
        self.g52_g92_x.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]"))
        self.tool_offset_x.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]"))
        self.zero_y_button_offset.setText(_translate("offset_dros_xyza", "ZERO"))
        self.zero_y_button_offset.setProperty("rules", _translate("offset_dros_xyza", "[\n"
"    {\n"
"        \"channels\": [\n"
"            {\n"
"                \"url\": \"status:g5x_index\",\n"
"                \"trigger\": true,\n"
"                \"type\": \"int\"\n"
"            }\n"
"        ],\n"
"        \"expression\": \"\",\n"
"        \"name\": \"G5x Index\",\n"
"        \"property\": \"None\"\n"
"    }\n"
"]"))
        self.zero_y_button_offset.setProperty("MDICommand", _translate("offset_dros_xyza", "G10 L20 P{ch[0]} Y0.0"))
        self.axis_label_y.setText(_translate("offset_dros_xyza", "Y"))
        self.drolabel_work_y.setProperty("inchFormat", _translate("offset_dros_xyza", "%9.4f"))
        self.drolabel_work_y.setProperty("millimeterFormat", _translate("offset_dros_xyza", "%10.3f"))
        self.drolabel_work_y.setProperty("degreeFormat", _translate("offset_dros_xyza", "%10.2f"))
        self.work_offset_y.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
        self.g52_g92_y.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
        self.tool_offset_y.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
        self.zero_z_button_offset.setText(_translate("offset_dros_xyza", "ZERO"))
        self.zero_z_button_offset.setProperty("rules", _translate("offset_dros_xyza", "[\n"
"    {\n"
"        \"channels\": [\n"
"            {\n"
"                \"url\": \"status:g5x_index\",\n"
"                \"trigger\": true,\n"
"                \"type\": \"int\"\n"
"            }\n"
"        ],\n"
"        \"expression\": \"\",\n"
"        \"name\": \"G5x Index\",\n"
"        \"property\": \"None\"\n"
"    }\n"
"]"))
        self.zero_z_button_offset.setProperty("MDICommand", _translate("offset_dros_xyza", "G10 L20 P{ch[0]} Z0.0"))
        self.axis_label_z.setText(_translate("offset_dros_xyza", "Z"))
        self.drolabel_work_z.setProperty("inchFormat", _translate("offset_dros_xyza", "%9.4f"))
        self.drolabel_work_z.setProperty("millimeterFormat", _translate("offset_dros_xyza", "%10.3f"))
        self.drolabel_work_z.setProperty("degreeFormat", _translate("offset_dros_xyza", "%10.2f"))
        self.work_offset_z.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"New Rule\"}]"))
        self.g52_g92_z.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"New Rule\"}]"))
        self.tool_offset_z.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"tool offset\"}]"))
        self.zero_a_button_offset.setText(_translate("offset_dros_xyza", "ZERO"))
        self.zero_a_button_offset.setProperty("rules", _translate("offset_dros_xyza", "[\n"
"    {\n"
"        \"channels\": [\n"
"            {\n"
"                \"url\": \"status:g5x_index\",\n"
"                \"trigger\": true\n"
"            }\n"
"        ],\n"
"        \"expression\": \"\",\n"
"        \"name\": \"G5x Index\",\n"
"        \"property\": \"None\"\n"
"    }\n"
"]"))
        self.zero_a_button_offset.setProperty("MDICommand", _translate("offset_dros_xyza", "G10 L20 P{ch[0]} A0.0"))
        self.axis_label_a.setText(_translate("offset_dros_xyza", "A"))
        self.drolabel_work_a.setProperty("inchFormat", _translate("offset_dros_xyza", "%9.4f"))
        self.drolabel_work_a.setProperty("millimeterFormat", _translate("offset_dros_xyza", "%10.3f"))
        self.drolabel_work_a.setProperty("degreeFormat", _translate("offset_dros_xyza", "%10.2f"))
        self.work_offset_a.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][3])\", \"name\": \"New Rule\"}]"))
        self.g52_g92_a.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][3])\", \"name\": \"New Rule\"}]"))
        self.tool_offset_a.setProperty("rules", _translate("offset_dros_xyza", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][3])\", \"name\": \"New Rule\"}]"))
from qtpyvcp.widgets.button_widgets.mdi_button import MDIButton
from qtpyvcp.widgets.display_widgets.dro_label import DROLabel
from qtpyvcp.widgets.display_widgets.status_label import StatusLabel
from qtpyvcp.widgets.input_widgets.dro_line_edit import DROLineEdit
import probe_basic_rc
