Files
mayo-mill-probasic/user_dro_display/xyzbc_dros/offset_dros_xyzbc_ui.py
2026-06-23 09:12:27 +02:00

666 lines
40 KiB
Python

# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'offset_dros_xyzbc.ui'
##
## Created by: Qt User Interface Compiler version 6.8.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QHBoxLayout, QLabel, QSizePolicy,
QVBoxLayout, QWidget)
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
class Ui_offset_dros_xyzbc(object):
def setupUi(self, offset_dros_xyzbc):
if not offset_dros_xyzbc.objectName():
offset_dros_xyzbc.setObjectName(u"offset_dros_xyzbc")
offset_dros_xyzbc.resize(493, 280)
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(offset_dros_xyzbc.sizePolicy().hasHeightForWidth())
offset_dros_xyzbc.setSizePolicy(sizePolicy)
offset_dros_xyzbc.setLayoutDirection(Qt.LayoutDirection.LeftToRight)
self.verticalLayout = QVBoxLayout(offset_dros_xyzbc)
self.verticalLayout.setSpacing(6)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(9, 9, 9, 9)
self.x_axis_dro_layout = QHBoxLayout()
self.x_axis_dro_layout.setSpacing(12)
self.x_axis_dro_layout.setObjectName(u"x_axis_dro_layout")
self.x_axis_dro_layout.setContentsMargins(-1, 4, -1, 4)
self.zero_x_button = MDIButton(offset_dros_xyzbc)
self.zero_x_button.setObjectName(u"zero_x_button")
self.zero_x_button.setEnabled(False)
self.zero_x_button.setMinimumSize(QSize(55, 38))
self.zero_x_button.setMaximumSize(QSize(55, 38))
self.zero_x_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
self.zero_x_button.setStyleSheet(u"MDIButton {\n"
" font: 15pt \"Probe Basic Bebas Mono\";\n"
"}")
self.x_axis_dro_layout.addWidget(self.zero_x_button)
self.axis_label_x = QLabel(offset_dros_xyzbc)
self.axis_label_x.setObjectName(u"axis_label_x")
sizePolicy.setHeightForWidth(self.axis_label_x.sizePolicy().hasHeightForWidth())
self.axis_label_x.setSizePolicy(sizePolicy)
self.axis_label_x.setMinimumSize(QSize(45, 35))
self.axis_label_x.setMaximumSize(QSize(45, 35))
self.axis_label_x.setStyleSheet(u"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 \"Probe Basic Bebas Mono\";\n"
"}")
self.axis_label_x.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.x_axis_dro_layout.addWidget(self.axis_label_x)
self.dro_entry_offset_x = DROLineEdit(offset_dros_xyzbc)
self.dro_entry_offset_x.setObjectName(u"dro_entry_offset_x")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
sizePolicy1.setHorizontalStretch(1)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.dro_entry_offset_x.sizePolicy().hasHeightForWidth())
self.dro_entry_offset_x.setSizePolicy(sizePolicy1)
self.dro_entry_offset_x.setMinimumSize(QSize(0, 38))
self.dro_entry_offset_x.setMaximumSize(QSize(16777215, 38))
font = QFont()
font.setFamilies([u"Probe Basic Bebas Mono"])
font.setPointSize(17)
font.setBold(False)
font.setItalic(False)
self.dro_entry_offset_x.setFont(font)
self.dro_entry_offset_x.setFocusPolicy(Qt.FocusPolicy.ClickFocus)
self.dro_entry_offset_x.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.x_axis_dro_layout.addWidget(self.dro_entry_offset_x)
self.drolabel_work_x = DROLabel(offset_dros_xyzbc)
self.drolabel_work_x.setObjectName(u"drolabel_work_x")
sizePolicy1.setHeightForWidth(self.drolabel_work_x.sizePolicy().hasHeightForWidth())
self.drolabel_work_x.setSizePolicy(sizePolicy1)
self.drolabel_work_x.setMinimumSize(QSize(0, 38))
self.drolabel_work_x.setMaximumSize(QSize(16777215, 38))
self.drolabel_work_x.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.drolabel_work_x.setProperty(u"referenceType", 0)
self.drolabel_work_x.setProperty(u"axisNumber", 0)
self.drolabel_work_x.setProperty(u"latheMode", 0)
self.x_axis_dro_layout.addWidget(self.drolabel_work_x)
self.work_offset_x = StatusLabel(offset_dros_xyzbc)
self.work_offset_x.setObjectName(u"work_offset_x")
sizePolicy1.setHeightForWidth(self.work_offset_x.sizePolicy().hasHeightForWidth())
self.work_offset_x.setSizePolicy(sizePolicy1)
self.work_offset_x.setMinimumSize(QSize(0, 38))
self.work_offset_x.setMaximumSize(QSize(16777215, 38))
self.work_offset_x.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.x_axis_dro_layout.addWidget(self.work_offset_x)
self.g52_g92_x = StatusLabel(offset_dros_xyzbc)
self.g52_g92_x.setObjectName(u"g52_g92_x")
sizePolicy1.setHeightForWidth(self.g52_g92_x.sizePolicy().hasHeightForWidth())
self.g52_g92_x.setSizePolicy(sizePolicy1)
self.g52_g92_x.setMinimumSize(QSize(0, 38))
self.g52_g92_x.setMaximumSize(QSize(16777215, 38))
self.g52_g92_x.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.x_axis_dro_layout.addWidget(self.g52_g92_x)
self.tool_offset_x = StatusLabel(offset_dros_xyzbc)
self.tool_offset_x.setObjectName(u"tool_offset_x")
sizePolicy1.setHeightForWidth(self.tool_offset_x.sizePolicy().hasHeightForWidth())
self.tool_offset_x.setSizePolicy(sizePolicy1)
self.tool_offset_x.setMinimumSize(QSize(0, 38))
self.tool_offset_x.setMaximumSize(QSize(16777215, 38))
self.tool_offset_x.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.x_axis_dro_layout.addWidget(self.tool_offset_x)
self.verticalLayout.addLayout(self.x_axis_dro_layout)
self.y_axis_dro_layout = QHBoxLayout()
self.y_axis_dro_layout.setSpacing(12)
self.y_axis_dro_layout.setObjectName(u"y_axis_dro_layout")
self.y_axis_dro_layout.setContentsMargins(-1, 4, -1, 4)
self.zero_y_button = MDIButton(offset_dros_xyzbc)
self.zero_y_button.setObjectName(u"zero_y_button")
self.zero_y_button.setEnabled(False)
self.zero_y_button.setMinimumSize(QSize(55, 38))
self.zero_y_button.setMaximumSize(QSize(55, 38))
self.zero_y_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
self.zero_y_button.setStyleSheet(u"MDIButton {\n"
" font: 15pt \"Probe Basic Bebas Mono\";\n"
"}")
self.y_axis_dro_layout.addWidget(self.zero_y_button)
self.axis_label_y = QLabel(offset_dros_xyzbc)
self.axis_label_y.setObjectName(u"axis_label_y")
self.axis_label_y.setMinimumSize(QSize(45, 35))
self.axis_label_y.setMaximumSize(QSize(45, 35))
self.axis_label_y.setStyleSheet(u"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 \"Probe Basic Bebas Mono\";\n"
"}")
self.axis_label_y.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.y_axis_dro_layout.addWidget(self.axis_label_y)
self.dro_entry_offset_y = DROLineEdit(offset_dros_xyzbc)
self.dro_entry_offset_y.setObjectName(u"dro_entry_offset_y")
sizePolicy1.setHeightForWidth(self.dro_entry_offset_y.sizePolicy().hasHeightForWidth())
self.dro_entry_offset_y.setSizePolicy(sizePolicy1)
self.dro_entry_offset_y.setMinimumSize(QSize(0, 38))
self.dro_entry_offset_y.setMaximumSize(QSize(16777215, 38))
self.dro_entry_offset_y.setFont(font)
self.dro_entry_offset_y.setFocusPolicy(Qt.FocusPolicy.ClickFocus)
self.dro_entry_offset_y.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.dro_entry_offset_y.setProperty(u"axisNumber", 1)
self.y_axis_dro_layout.addWidget(self.dro_entry_offset_y)
self.drolabel_work_y = DROLabel(offset_dros_xyzbc)
self.drolabel_work_y.setObjectName(u"drolabel_work_y")
sizePolicy1.setHeightForWidth(self.drolabel_work_y.sizePolicy().hasHeightForWidth())
self.drolabel_work_y.setSizePolicy(sizePolicy1)
self.drolabel_work_y.setMinimumSize(QSize(0, 38))
self.drolabel_work_y.setMaximumSize(QSize(16777215, 38))
self.drolabel_work_y.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.drolabel_work_y.setProperty(u"referenceType", 0)
self.drolabel_work_y.setProperty(u"axisNumber", 1)
self.drolabel_work_y.setProperty(u"latheMode", 0)
self.y_axis_dro_layout.addWidget(self.drolabel_work_y)
self.work_offset_y = StatusLabel(offset_dros_xyzbc)
self.work_offset_y.setObjectName(u"work_offset_y")
sizePolicy1.setHeightForWidth(self.work_offset_y.sizePolicy().hasHeightForWidth())
self.work_offset_y.setSizePolicy(sizePolicy1)
self.work_offset_y.setMinimumSize(QSize(0, 38))
self.work_offset_y.setMaximumSize(QSize(16777215, 38))
self.work_offset_y.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.y_axis_dro_layout.addWidget(self.work_offset_y)
self.g52_g92_y = StatusLabel(offset_dros_xyzbc)
self.g52_g92_y.setObjectName(u"g52_g92_y")
sizePolicy1.setHeightForWidth(self.g52_g92_y.sizePolicy().hasHeightForWidth())
self.g52_g92_y.setSizePolicy(sizePolicy1)
self.g52_g92_y.setMinimumSize(QSize(0, 38))
self.g52_g92_y.setMaximumSize(QSize(16777215, 38))
self.g52_g92_y.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.y_axis_dro_layout.addWidget(self.g52_g92_y)
self.tool_offset_y = StatusLabel(offset_dros_xyzbc)
self.tool_offset_y.setObjectName(u"tool_offset_y")
sizePolicy1.setHeightForWidth(self.tool_offset_y.sizePolicy().hasHeightForWidth())
self.tool_offset_y.setSizePolicy(sizePolicy1)
self.tool_offset_y.setMinimumSize(QSize(0, 38))
self.tool_offset_y.setMaximumSize(QSize(16777215, 38))
self.tool_offset_y.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.y_axis_dro_layout.addWidget(self.tool_offset_y)
self.verticalLayout.addLayout(self.y_axis_dro_layout)
self.z_axis_dro_layout = QHBoxLayout()
self.z_axis_dro_layout.setSpacing(12)
self.z_axis_dro_layout.setObjectName(u"z_axis_dro_layout")
self.z_axis_dro_layout.setContentsMargins(-1, 4, -1, 4)
self.zero_z_button = MDIButton(offset_dros_xyzbc)
self.zero_z_button.setObjectName(u"zero_z_button")
self.zero_z_button.setEnabled(False)
self.zero_z_button.setMinimumSize(QSize(55, 38))
self.zero_z_button.setMaximumSize(QSize(55, 38))
self.zero_z_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
self.zero_z_button.setStyleSheet(u"MDIButton {\n"
" font: 15pt \"Probe Basic Bebas Mono\";\n"
"}")
self.z_axis_dro_layout.addWidget(self.zero_z_button)
self.axis_label_z = QLabel(offset_dros_xyzbc)
self.axis_label_z.setObjectName(u"axis_label_z")
self.axis_label_z.setMinimumSize(QSize(45, 35))
self.axis_label_z.setMaximumSize(QSize(45, 35))
self.axis_label_z.setStyleSheet(u"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 \"Probe Basic Bebas Mono\";\n"
"}")
self.axis_label_z.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.z_axis_dro_layout.addWidget(self.axis_label_z)
self.dro_entry_offset_z = DROLineEdit(offset_dros_xyzbc)
self.dro_entry_offset_z.setObjectName(u"dro_entry_offset_z")
sizePolicy1.setHeightForWidth(self.dro_entry_offset_z.sizePolicy().hasHeightForWidth())
self.dro_entry_offset_z.setSizePolicy(sizePolicy1)
self.dro_entry_offset_z.setMinimumSize(QSize(0, 38))
self.dro_entry_offset_z.setMaximumSize(QSize(16777215, 38))
self.dro_entry_offset_z.setFont(font)
self.dro_entry_offset_z.setFocusPolicy(Qt.FocusPolicy.ClickFocus)
self.dro_entry_offset_z.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.dro_entry_offset_z.setProperty(u"axisNumber", 2)
self.z_axis_dro_layout.addWidget(self.dro_entry_offset_z)
self.drolabel_work_z = DROLabel(offset_dros_xyzbc)
self.drolabel_work_z.setObjectName(u"drolabel_work_z")
sizePolicy1.setHeightForWidth(self.drolabel_work_z.sizePolicy().hasHeightForWidth())
self.drolabel_work_z.setSizePolicy(sizePolicy1)
self.drolabel_work_z.setMinimumSize(QSize(0, 38))
self.drolabel_work_z.setMaximumSize(QSize(16777215, 38))
self.drolabel_work_z.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.drolabel_work_z.setProperty(u"referenceType", 0)
self.drolabel_work_z.setProperty(u"axisNumber", 2)
self.drolabel_work_z.setProperty(u"latheMode", 0)
self.z_axis_dro_layout.addWidget(self.drolabel_work_z)
self.work_offset_z = StatusLabel(offset_dros_xyzbc)
self.work_offset_z.setObjectName(u"work_offset_z")
sizePolicy1.setHeightForWidth(self.work_offset_z.sizePolicy().hasHeightForWidth())
self.work_offset_z.setSizePolicy(sizePolicy1)
self.work_offset_z.setMinimumSize(QSize(0, 38))
self.work_offset_z.setMaximumSize(QSize(16777215, 38))
self.work_offset_z.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.z_axis_dro_layout.addWidget(self.work_offset_z)
self.g52_g92_z = StatusLabel(offset_dros_xyzbc)
self.g52_g92_z.setObjectName(u"g52_g92_z")
sizePolicy1.setHeightForWidth(self.g52_g92_z.sizePolicy().hasHeightForWidth())
self.g52_g92_z.setSizePolicy(sizePolicy1)
self.g52_g92_z.setMinimumSize(QSize(0, 38))
self.g52_g92_z.setMaximumSize(QSize(16777215, 38))
self.g52_g92_z.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.z_axis_dro_layout.addWidget(self.g52_g92_z)
self.tool_offset_z = StatusLabel(offset_dros_xyzbc)
self.tool_offset_z.setObjectName(u"tool_offset_z")
sizePolicy1.setHeightForWidth(self.tool_offset_z.sizePolicy().hasHeightForWidth())
self.tool_offset_z.setSizePolicy(sizePolicy1)
self.tool_offset_z.setMinimumSize(QSize(0, 38))
self.tool_offset_z.setMaximumSize(QSize(16777215, 38))
self.tool_offset_z.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.z_axis_dro_layout.addWidget(self.tool_offset_z)
self.verticalLayout.addLayout(self.z_axis_dro_layout)
self.b_axis_dro_layout = QHBoxLayout()
self.b_axis_dro_layout.setSpacing(12)
self.b_axis_dro_layout.setObjectName(u"b_axis_dro_layout")
self.b_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
self.zero_b_button = MDIButton(offset_dros_xyzbc)
self.zero_b_button.setObjectName(u"zero_b_button")
self.zero_b_button.setEnabled(False)
self.zero_b_button.setMinimumSize(QSize(55, 38))
self.zero_b_button.setMaximumSize(QSize(55, 38))
self.zero_b_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
self.zero_b_button.setStyleSheet(u"MDIButton {\n"
" font: 15pt \"Probe Basic Bebas Mono\";\n"
"}")
self.b_axis_dro_layout.addWidget(self.zero_b_button)
self.axis_label_b = QLabel(offset_dros_xyzbc)
self.axis_label_b.setObjectName(u"axis_label_b")
self.axis_label_b.setMinimumSize(QSize(45, 35))
self.axis_label_b.setMaximumSize(QSize(45, 35))
self.axis_label_b.setStyleSheet(u"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 \"Probe Basic Bebas Mono\";\n"
"}")
self.axis_label_b.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.b_axis_dro_layout.addWidget(self.axis_label_b)
self.dro_entry_offset_b = DROLineEdit(offset_dros_xyzbc)
self.dro_entry_offset_b.setObjectName(u"dro_entry_offset_b")
sizePolicy1.setHeightForWidth(self.dro_entry_offset_b.sizePolicy().hasHeightForWidth())
self.dro_entry_offset_b.setSizePolicy(sizePolicy1)
self.dro_entry_offset_b.setMinimumSize(QSize(0, 38))
self.dro_entry_offset_b.setMaximumSize(QSize(16777215, 38))
self.dro_entry_offset_b.setFont(font)
self.dro_entry_offset_b.setFocusPolicy(Qt.FocusPolicy.ClickFocus)
self.dro_entry_offset_b.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.dro_entry_offset_b.setProperty(u"referenceType", 1)
self.dro_entry_offset_b.setProperty(u"axisNumber", 4)
self.dro_entry_offset_b.setProperty(u"latheMode", 0)
self.b_axis_dro_layout.addWidget(self.dro_entry_offset_b)
self.drolabel_work_b = DROLabel(offset_dros_xyzbc)
self.drolabel_work_b.setObjectName(u"drolabel_work_b")
sizePolicy1.setHeightForWidth(self.drolabel_work_b.sizePolicy().hasHeightForWidth())
self.drolabel_work_b.setSizePolicy(sizePolicy1)
self.drolabel_work_b.setMinimumSize(QSize(0, 38))
self.drolabel_work_b.setMaximumSize(QSize(16777215, 38))
self.drolabel_work_b.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.drolabel_work_b.setProperty(u"referenceType", 0)
self.drolabel_work_b.setProperty(u"axisNumber", 4)
self.drolabel_work_b.setProperty(u"latheMode", 0)
self.b_axis_dro_layout.addWidget(self.drolabel_work_b)
self.work_offset_b = StatusLabel(offset_dros_xyzbc)
self.work_offset_b.setObjectName(u"work_offset_b")
sizePolicy1.setHeightForWidth(self.work_offset_b.sizePolicy().hasHeightForWidth())
self.work_offset_b.setSizePolicy(sizePolicy1)
self.work_offset_b.setMinimumSize(QSize(0, 38))
self.work_offset_b.setMaximumSize(QSize(16777215, 38))
self.work_offset_b.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.b_axis_dro_layout.addWidget(self.work_offset_b)
self.g52_g92_b = StatusLabel(offset_dros_xyzbc)
self.g52_g92_b.setObjectName(u"g52_g92_b")
sizePolicy1.setHeightForWidth(self.g52_g92_b.sizePolicy().hasHeightForWidth())
self.g52_g92_b.setSizePolicy(sizePolicy1)
self.g52_g92_b.setMinimumSize(QSize(0, 38))
self.g52_g92_b.setMaximumSize(QSize(16777215, 38))
self.g52_g92_b.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.b_axis_dro_layout.addWidget(self.g52_g92_b)
self.tool_offset_b = StatusLabel(offset_dros_xyzbc)
self.tool_offset_b.setObjectName(u"tool_offset_b")
sizePolicy1.setHeightForWidth(self.tool_offset_b.sizePolicy().hasHeightForWidth())
self.tool_offset_b.setSizePolicy(sizePolicy1)
self.tool_offset_b.setMinimumSize(QSize(0, 38))
self.tool_offset_b.setMaximumSize(QSize(16777215, 38))
self.tool_offset_b.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.b_axis_dro_layout.addWidget(self.tool_offset_b)
self.verticalLayout.addLayout(self.b_axis_dro_layout)
self.c_axis_dro_layout = QHBoxLayout()
self.c_axis_dro_layout.setSpacing(12)
self.c_axis_dro_layout.setObjectName(u"c_axis_dro_layout")
self.c_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
self.zero_c_button = MDIButton(offset_dros_xyzbc)
self.zero_c_button.setObjectName(u"zero_c_button")
self.zero_c_button.setEnabled(False)
self.zero_c_button.setMinimumSize(QSize(55, 38))
self.zero_c_button.setMaximumSize(QSize(55, 38))
self.zero_c_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
self.zero_c_button.setStyleSheet(u"MDIButton {\n"
" font: 15pt \"Probe Basic Bebas Mono\";\n"
"}")
self.c_axis_dro_layout.addWidget(self.zero_c_button)
self.axis_label_c = QLabel(offset_dros_xyzbc)
self.axis_label_c.setObjectName(u"axis_label_c")
self.axis_label_c.setMinimumSize(QSize(45, 35))
self.axis_label_c.setMaximumSize(QSize(45, 35))
self.axis_label_c.setStyleSheet(u"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 \"Probe Basic Bebas Mono\";\n"
"}")
self.axis_label_c.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.c_axis_dro_layout.addWidget(self.axis_label_c)
self.dro_entry_offset_c = DROLineEdit(offset_dros_xyzbc)
self.dro_entry_offset_c.setObjectName(u"dro_entry_offset_c")
sizePolicy1.setHeightForWidth(self.dro_entry_offset_c.sizePolicy().hasHeightForWidth())
self.dro_entry_offset_c.setSizePolicy(sizePolicy1)
self.dro_entry_offset_c.setMinimumSize(QSize(0, 38))
self.dro_entry_offset_c.setMaximumSize(QSize(16777215, 38))
self.dro_entry_offset_c.setFont(font)
self.dro_entry_offset_c.setFocusPolicy(Qt.FocusPolicy.ClickFocus)
self.dro_entry_offset_c.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.dro_entry_offset_c.setProperty(u"referenceType", 1)
self.dro_entry_offset_c.setProperty(u"axisNumber", 5)
self.dro_entry_offset_c.setProperty(u"latheMode", 0)
self.c_axis_dro_layout.addWidget(self.dro_entry_offset_c)
self.drolabel_work_c = DROLabel(offset_dros_xyzbc)
self.drolabel_work_c.setObjectName(u"drolabel_work_c")
sizePolicy1.setHeightForWidth(self.drolabel_work_c.sizePolicy().hasHeightForWidth())
self.drolabel_work_c.setSizePolicy(sizePolicy1)
self.drolabel_work_c.setMinimumSize(QSize(0, 38))
self.drolabel_work_c.setMaximumSize(QSize(16777215, 38))
self.drolabel_work_c.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.drolabel_work_c.setProperty(u"referenceType", 0)
self.drolabel_work_c.setProperty(u"axisNumber", 5)
self.drolabel_work_c.setProperty(u"latheMode", 0)
self.c_axis_dro_layout.addWidget(self.drolabel_work_c)
self.work_offset_c = StatusLabel(offset_dros_xyzbc)
self.work_offset_c.setObjectName(u"work_offset_c")
sizePolicy1.setHeightForWidth(self.work_offset_c.sizePolicy().hasHeightForWidth())
self.work_offset_c.setSizePolicy(sizePolicy1)
self.work_offset_c.setMinimumSize(QSize(0, 38))
self.work_offset_c.setMaximumSize(QSize(16777215, 38))
self.work_offset_c.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.c_axis_dro_layout.addWidget(self.work_offset_c)
self.g52_g92_c = StatusLabel(offset_dros_xyzbc)
self.g52_g92_c.setObjectName(u"g52_g92_c")
sizePolicy1.setHeightForWidth(self.g52_g92_c.sizePolicy().hasHeightForWidth())
self.g52_g92_c.setSizePolicy(sizePolicy1)
self.g52_g92_c.setMinimumSize(QSize(0, 38))
self.g52_g92_c.setMaximumSize(QSize(16777215, 38))
self.g52_g92_c.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.c_axis_dro_layout.addWidget(self.g52_g92_c)
self.tool_offset_c = StatusLabel(offset_dros_xyzbc)
self.tool_offset_c.setObjectName(u"tool_offset_c")
sizePolicy1.setHeightForWidth(self.tool_offset_c.sizePolicy().hasHeightForWidth())
self.tool_offset_c.setSizePolicy(sizePolicy1)
self.tool_offset_c.setMinimumSize(QSize(0, 38))
self.tool_offset_c.setMaximumSize(QSize(16777215, 38))
self.tool_offset_c.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.c_axis_dro_layout.addWidget(self.tool_offset_c)
self.verticalLayout.addLayout(self.c_axis_dro_layout)
self.retranslateUi(offset_dros_xyzbc)
QMetaObject.connectSlotsByName(offset_dros_xyzbc)
# setupUi
def retranslateUi(self, offset_dros_xyzbc):
offset_dros_xyzbc.setWindowTitle(QCoreApplication.translate("offset_dros_xyzbc", u"offset_dros_xyzbc", None))
self.zero_x_button.setText(QCoreApplication.translate("offset_dros_xyzbc", u"ZERO", None))
self.zero_x_button.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[\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"
"]", None))
self.zero_x_button.setProperty(u"MDICommand", QCoreApplication.translate("offset_dros_xyzbc", u"G10 L20 P{ch[0]} X0.0", None))
self.axis_label_x.setText(QCoreApplication.translate("offset_dros_xyzbc", u"X", None))
self.dro_entry_offset_x.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.drolabel_work_x.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.drolabel_work_x.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.drolabel_work_x.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.drolabel_work_x.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.work_offset_x.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]", None))
self.work_offset_x.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.g52_g92_x.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]", None))
self.g52_g92_x.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.tool_offset_x.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]", None))
self.tool_offset_x.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.zero_y_button.setText(QCoreApplication.translate("offset_dros_xyzbc", u"ZERO", None))
self.zero_y_button.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[\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"
"]", None))
self.zero_y_button.setProperty(u"MDICommand", QCoreApplication.translate("offset_dros_xyzbc", u"G10 L20 P{ch[0]} Y0.0", None))
self.axis_label_y.setText(QCoreApplication.translate("offset_dros_xyzbc", u"Y", None))
self.dro_entry_offset_y.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.drolabel_work_y.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.drolabel_work_y.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.drolabel_work_y.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.drolabel_work_y.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.work_offset_y.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]", None))
self.work_offset_y.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.g52_g92_y.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]", None))
self.g52_g92_y.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.tool_offset_y.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]", None))
self.tool_offset_y.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.zero_z_button.setText(QCoreApplication.translate("offset_dros_xyzbc", u"ZERO", None))
self.zero_z_button.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[\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"
"]", None))
self.zero_z_button.setProperty(u"MDICommand", QCoreApplication.translate("offset_dros_xyzbc", u"G10 L20 P{ch[0]} Z0.0", None))
self.axis_label_z.setText(QCoreApplication.translate("offset_dros_xyzbc", u"Z", None))
self.dro_entry_offset_z.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.drolabel_work_z.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.drolabel_work_z.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.drolabel_work_z.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.drolabel_work_z.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.work_offset_z.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"New Rule\"}]", None))
self.work_offset_z.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.g52_g92_z.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"New Rule\"}]", None))
self.g52_g92_z.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.tool_offset_z.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"tool offset\"}]", None))
self.tool_offset_z.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.zero_b_button.setText(QCoreApplication.translate("offset_dros_xyzbc", u"ZERO", None))
self.zero_b_button.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[\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"
"]", None))
self.zero_b_button.setProperty(u"MDICommand", QCoreApplication.translate("offset_dros_xyzbc", u"G10 L20 P{ch[0]} B0.0", None))
self.axis_label_b.setText(QCoreApplication.translate("offset_dros_xyzbc", u"B", None))
self.dro_entry_offset_b.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.dro_entry_offset_b.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.dro_entry_offset_b.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.dro_entry_offset_b.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.drolabel_work_b.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.drolabel_work_b.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.drolabel_work_b.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.drolabel_work_b.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.work_offset_b.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"url\": \"status:g92_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][4])\", \"name\": \"New Rule\"}]", None))
self.work_offset_b.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.g52_g92_b.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"url\": \"status:g5x_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][4])\", \"name\": \"New Rule\"}]", None))
self.g52_g92_b.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.tool_offset_b.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][4])\", \"name\": \"New Rule\"}]", None))
self.tool_offset_b.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.zero_c_button.setText(QCoreApplication.translate("offset_dros_xyzbc", u"ZERO", None))
self.zero_c_button.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[\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"
"]", None))
self.zero_c_button.setProperty(u"MDICommand", QCoreApplication.translate("offset_dros_xyzbc", u"G10 L20 P{ch[0]} C0.0", None))
self.axis_label_c.setText(QCoreApplication.translate("offset_dros_xyzbc", u"C", None))
self.dro_entry_offset_c.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.dro_entry_offset_c.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.dro_entry_offset_c.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.dro_entry_offset_c.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.drolabel_work_c.setProperty(u"inchFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%9.4f", None))
self.drolabel_work_c.setProperty(u"millimeterFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.3f", None))
self.drolabel_work_c.setProperty(u"degreeFormat", QCoreApplication.translate("offset_dros_xyzbc", u"%10.2f", None))
self.drolabel_work_c.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.work_offset_c.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g92_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]", None))
self.work_offset_c.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.g52_g92_c.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:g5x_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]", None))
self.g52_g92_c.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
self.tool_offset_c.setProperty(u"rules", QCoreApplication.translate("offset_dros_xyzbc", u"[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]", None))
self.tool_offset_c.setProperty(u"styleSet", QCoreApplication.translate("offset_dros_xyzbc", u"dataField17", None))
# retranslateUi