dodalem probe basic
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import linuxcnc
|
||||
|
||||
from qtpy import uic
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import QWidget
|
||||
|
||||
from qtpyvcp.plugins import getPlugin
|
||||
from qtpyvcp.utilities import logger
|
||||
|
||||
LOG = logger.getLogger(__name__)
|
||||
|
||||
STATUS = getPlugin('status')
|
||||
TOOL_TABLE = getPlugin('tooltable')
|
||||
|
||||
INI_FILE = linuxcnc.ini(os.getenv('INI_FILE_NAME'))
|
||||
|
||||
|
||||
class UserDRO(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super(UserDRO, self).__init__(parent)
|
||||
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
2148
configs/probe_basic_lathe/user_dro_display/user_dros/dros_user.ui
Normal file
2148
configs/probe_basic_lathe/user_dro_display/user_dros/dros_user.ui
Normal file
File diff suppressed because it is too large
Load Diff
1047
configs/probe_basic_lathe/user_dro_display/user_dros/dros_user_ui.py
Normal file
1047
configs/probe_basic_lathe/user_dro_display/user_dros/dros_user_ui.py
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import linuxcnc
|
||||
|
||||
from qtpy import uic
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import QWidget
|
||||
|
||||
from qtpyvcp.plugins import getPlugin
|
||||
from qtpyvcp.utilities import logger
|
||||
|
||||
LOG = logger.getLogger(__name__)
|
||||
|
||||
STATUS = getPlugin('status')
|
||||
TOOL_TABLE = getPlugin('tooltable')
|
||||
|
||||
INI_FILE = linuxcnc.ini(os.getenv('INI_FILE_NAME'))
|
||||
|
||||
|
||||
class UserDRO(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super(UserDRO, self).__init__(parent)
|
||||
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
1555
configs/probe_basic_lathe/user_dro_display/xyzc_dros/dros_xyzc.ui
Normal file
1555
configs/probe_basic_lathe/user_dro_display/xyzc_dros/dros_xyzc.ui
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,788 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xyzc_dros/dros_xyzc.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_dros_xyzc(object):
|
||||
def setupUi(self, dros_xyzc):
|
||||
dros_xyzc.setObjectName("dros_xyzc")
|
||||
dros_xyzc.resize(479, 315)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(dros_xyzc.sizePolicy().hasHeightForWidth())
|
||||
dros_xyzc.setSizePolicy(sizePolicy)
|
||||
dros_xyzc.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(dros_xyzc)
|
||||
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout.setSpacing(0)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.widget_xyzc = QtWidgets.QWidget(dros_xyzc)
|
||||
self.widget_xyzc.setObjectName("widget_xyzc")
|
||||
self.verticalLayout_55 = QtWidgets.QVBoxLayout(self.widget_xyzc)
|
||||
self.verticalLayout_55.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout_55.setSpacing(19)
|
||||
self.verticalLayout_55.setObjectName("verticalLayout_55")
|
||||
self.dros_header_layout = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.dros_header_layout.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.dros_header_layout.setObjectName("dros_header_layout")
|
||||
self.horizontalLayout_79 = QtWidgets.QHBoxLayout(self.dros_header_layout)
|
||||
self.horizontalLayout_79.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout_79.setObjectName("horizontalLayout_79")
|
||||
self.zero_all_button = MDIButton(self.dros_header_layout)
|
||||
self.zero_all_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_all_button.setSizePolicy(sizePolicy)
|
||||
self.zero_all_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_all_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.zero_all_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_all_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 14pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(":/images/zero.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.zero_all_button.setIcon(icon)
|
||||
self.zero_all_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_all_button.setObjectName("zero_all_button")
|
||||
self.horizontalLayout_79.addWidget(self.zero_all_button)
|
||||
self.column_header_frame = QtWidgets.QFrame(self.dros_header_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.column_header_frame.sizePolicy().hasHeightForWidth())
|
||||
self.column_header_frame.setSizePolicy(sizePolicy)
|
||||
self.column_header_frame.setMinimumSize(QtCore.QSize(0, 40))
|
||||
self.column_header_frame.setMaximumSize(QtCore.QSize(16777215, 40))
|
||||
self.column_header_frame.setStyleSheet(".QFrame{\n"
|
||||
" border-style: solid;\n"
|
||||
" border-color: rgb(176, 179,172);\n"
|
||||
" border-width: 1px;\n"
|
||||
" border-radius: 4px;\n"
|
||||
" background-color: rgb(90, 90, 90);\n"
|
||||
" padding: -5px;\n"
|
||||
"}")
|
||||
self.column_header_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||||
self.column_header_frame.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||
self.column_header_frame.setObjectName("column_header_frame")
|
||||
self.horizontalLayout_168 = QtWidgets.QHBoxLayout(self.column_header_frame)
|
||||
self.horizontalLayout_168.setContentsMargins(9, -1, 0, -1)
|
||||
self.horizontalLayout_168.setSpacing(18)
|
||||
self.horizontalLayout_168.setObjectName("horizontalLayout_168")
|
||||
self.work_column_header = StatusLabel(self.column_header_frame)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.work_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.work_column_header.setSizePolicy(sizePolicy)
|
||||
self.work_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
" padding-left: 6px;\n"
|
||||
"}")
|
||||
self.work_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.work_column_header.setObjectName("work_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.work_column_header)
|
||||
self.machine_column_header = QtWidgets.QLabel(self.column_header_frame)
|
||||
self.machine_column_header.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.machine_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.machine_column_header.setSizePolicy(sizePolicy)
|
||||
self.machine_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.machine_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.machine_column_header.setObjectName("machine_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.machine_column_header)
|
||||
self.dtg_column_header = QtWidgets.QLabel(self.column_header_frame)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dtg_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.dtg_column_header.setSizePolicy(sizePolicy)
|
||||
self.dtg_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.dtg_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.dtg_column_header.setObjectName("dtg_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.dtg_column_header)
|
||||
self.horizontalLayout_79.addWidget(self.column_header_frame)
|
||||
self.ref_all_button = ActionButton(self.dros_header_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_all_button.setSizePolicy(sizePolicy)
|
||||
self.ref_all_button.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_all_button.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_all_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_all_button.setObjectName("ref_all_button")
|
||||
self.horizontalLayout_79.addWidget(self.ref_all_button)
|
||||
self.verticalLayout_55.addWidget(self.dros_header_layout)
|
||||
self.dros_x_layout = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.dros_x_layout.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.dros_x_layout.setObjectName("dros_x_layout")
|
||||
self.x_axis_dro_layout_3 = QtWidgets.QHBoxLayout(self.dros_x_layout)
|
||||
self.x_axis_dro_layout_3.setContentsMargins(0, 2, 0, 2)
|
||||
self.x_axis_dro_layout_3.setSpacing(8)
|
||||
self.x_axis_dro_layout_3.setObjectName("x_axis_dro_layout_3")
|
||||
self.zero_x_button = MDIButton(self.dros_x_layout)
|
||||
self.zero_x_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_x_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_x_button.setSizePolicy(sizePolicy)
|
||||
self.zero_x_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_x_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_x_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_x_button.setObjectName("zero_x_button")
|
||||
self.x_axis_dro_layout_3.addWidget(self.zero_x_button)
|
||||
self.dro_entry_x_main = DROLineEdit(self.dros_x_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_x_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_x_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_x_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_x_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_x_main.setStyleSheet("DROLineEdit{\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_x_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_x_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_x_main.setProperty("axisNumber", 0)
|
||||
self.dro_entry_x_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_x_main.setObjectName("dro_entry_x_main")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_entry_x_main)
|
||||
self.drolabel_machine_x = DROLabel(self.dros_x_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_x.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_x.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_x.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_x.setProperty("axisNumber", 0)
|
||||
self.drolabel_machine_x.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_x.setObjectName("drolabel_machine_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.drolabel_machine_x)
|
||||
self.dro_dtg_x = DROLabel(self.dros_x_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_x.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_x.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_x.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_x.setProperty("referenceType", 2)
|
||||
self.dro_dtg_x.setProperty("axisNumber", 0)
|
||||
self.dro_dtg_x.setProperty("latheMode", 0)
|
||||
self.dro_dtg_x.setObjectName("dro_dtg_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_dtg_x)
|
||||
self.ref_x_button_2 = ActionButton(self.dros_x_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_x_button_2.sizePolicy().hasHeightForWidth())
|
||||
self.ref_x_button_2.setSizePolicy(sizePolicy)
|
||||
self.ref_x_button_2.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_x_button_2.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_x_button_2.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_x_button_2.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_x_button_2.setObjectName("ref_x_button_2")
|
||||
self.x_axis_dro_layout_3.addWidget(self.ref_x_button_2)
|
||||
self.verticalLayout_55.addWidget(self.dros_x_layout)
|
||||
self.dros_y_layout = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.dros_y_layout.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.dros_y_layout.setObjectName("dros_y_layout")
|
||||
self.z_axis_dro_layout_7 = QtWidgets.QHBoxLayout(self.dros_y_layout)
|
||||
self.z_axis_dro_layout_7.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_7.setSpacing(8)
|
||||
self.z_axis_dro_layout_7.setObjectName("z_axis_dro_layout_7")
|
||||
self.zero_y_button = MDIButton(self.dros_y_layout)
|
||||
self.zero_y_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_y_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_y_button.setSizePolicy(sizePolicy)
|
||||
self.zero_y_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_y_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_y_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_y_button.setIcon(icon)
|
||||
self.zero_y_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_y_button.setObjectName("zero_y_button")
|
||||
self.z_axis_dro_layout_7.addWidget(self.zero_y_button)
|
||||
self.dro_entry_y_main = DROLineEdit(self.dros_y_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_y_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_y_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_y_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_y_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_y_main.setStyleSheet("DROLineEdit{\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_y_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_y_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_y_main.setProperty("axisNumber", 1)
|
||||
self.dro_entry_y_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_y_main.setObjectName("dro_entry_y_main")
|
||||
self.z_axis_dro_layout_7.addWidget(self.dro_entry_y_main)
|
||||
self.drolabel_machine_y = DROLabel(self.dros_y_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_y.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_y.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_y.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_y.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_y.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_y.setProperty("axisNumber", 1)
|
||||
self.drolabel_machine_y.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_y.setObjectName("drolabel_machine_y")
|
||||
self.z_axis_dro_layout_7.addWidget(self.drolabel_machine_y)
|
||||
self.drolabel_12 = DROLabel(self.dros_y_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_12.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_12.setSizePolicy(sizePolicy)
|
||||
self.drolabel_12.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_12.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_12.setProperty("referenceType", 2)
|
||||
self.drolabel_12.setProperty("axisNumber", 1)
|
||||
self.drolabel_12.setProperty("latheMode", 0)
|
||||
self.drolabel_12.setObjectName("drolabel_12")
|
||||
self.z_axis_dro_layout_7.addWidget(self.drolabel_12)
|
||||
self.ref_y_button_2 = ActionButton(self.dros_y_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_y_button_2.sizePolicy().hasHeightForWidth())
|
||||
self.ref_y_button_2.setSizePolicy(sizePolicy)
|
||||
self.ref_y_button_2.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_y_button_2.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_y_button_2.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_y_button_2.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_y_button_2.setObjectName("ref_y_button_2")
|
||||
self.z_axis_dro_layout_7.addWidget(self.ref_y_button_2)
|
||||
self.verticalLayout_55.addWidget(self.dros_y_layout)
|
||||
self.dros_z_layout = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.dros_z_layout.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.dros_z_layout.setObjectName("dros_z_layout")
|
||||
self.z_axis_dro_layout_6 = QtWidgets.QHBoxLayout(self.dros_z_layout)
|
||||
self.z_axis_dro_layout_6.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_6.setSpacing(8)
|
||||
self.z_axis_dro_layout_6.setObjectName("z_axis_dro_layout_6")
|
||||
self.zero_z_button = MDIButton(self.dros_z_layout)
|
||||
self.zero_z_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_z_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_z_button.setSizePolicy(sizePolicy)
|
||||
self.zero_z_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_z_button.setIcon(icon)
|
||||
self.zero_z_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_z_button.setObjectName("zero_z_button")
|
||||
self.z_axis_dro_layout_6.addWidget(self.zero_z_button)
|
||||
self.dro_entry_z_main = DROLineEdit(self.dros_z_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_z_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_z_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_z_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_z_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_z_main.setStyleSheet("DROLineEdit{\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_z_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_z_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_z_main.setProperty("axisNumber", 2)
|
||||
self.dro_entry_z_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_z_main.setObjectName("dro_entry_z_main")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_entry_z_main)
|
||||
self.drolabel_machine_z = DROLabel(self.dros_z_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_z.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_z.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_z.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_z.setProperty("axisNumber", 2)
|
||||
self.drolabel_machine_z.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_z.setObjectName("drolabel_machine_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.drolabel_machine_z)
|
||||
self.dro_dtg_z = DROLabel(self.dros_z_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_z.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_z.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_z.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_z.setProperty("referenceType", 2)
|
||||
self.dro_dtg_z.setProperty("axisNumber", 2)
|
||||
self.dro_dtg_z.setProperty("latheMode", 0)
|
||||
self.dro_dtg_z.setObjectName("dro_dtg_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_dtg_z)
|
||||
self.ref_z_button_2 = ActionButton(self.dros_z_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_z_button_2.sizePolicy().hasHeightForWidth())
|
||||
self.ref_z_button_2.setSizePolicy(sizePolicy)
|
||||
self.ref_z_button_2.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_z_button_2.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_z_button_2.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_z_button_2.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_z_button_2.setObjectName("ref_z_button_2")
|
||||
self.z_axis_dro_layout_6.addWidget(self.ref_z_button_2)
|
||||
self.verticalLayout_55.addWidget(self.dros_z_layout)
|
||||
self.dros_c_layout = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.dros_c_layout.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.dros_c_layout.setObjectName("dros_c_layout")
|
||||
self.z_axis_dro_layout_10 = QtWidgets.QHBoxLayout(self.dros_c_layout)
|
||||
self.z_axis_dro_layout_10.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_10.setSpacing(8)
|
||||
self.z_axis_dro_layout_10.setObjectName("z_axis_dro_layout_10")
|
||||
self.zero_c_button = MDIButton(self.dros_c_layout)
|
||||
self.zero_c_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_c_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_c_button.setSizePolicy(sizePolicy)
|
||||
self.zero_c_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_c_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_c_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_c_button.setIcon(icon)
|
||||
self.zero_c_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_c_button.setObjectName("zero_c_button")
|
||||
self.z_axis_dro_layout_10.addWidget(self.zero_c_button)
|
||||
self.dro_entry_c_main = DROLineEdit(self.dros_c_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_c_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_c_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_c_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_c_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_c_main.setStyleSheet("DROLineEdit{\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_c_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_c_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_c_main.setProperty("axisNumber", 5)
|
||||
self.dro_entry_c_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_c_main.setObjectName("dro_entry_c_main")
|
||||
self.z_axis_dro_layout_10.addWidget(self.dro_entry_c_main)
|
||||
self.drolabel_machine_c = DROLabel(self.dros_c_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_c.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_c.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_c.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_c.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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_c.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_c.setProperty("axisNumber", 5)
|
||||
self.drolabel_machine_c.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_c.setObjectName("drolabel_machine_c")
|
||||
self.z_axis_dro_layout_10.addWidget(self.drolabel_machine_c)
|
||||
self.dro_dtg_c = DROLabel(self.dros_c_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_c.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_c.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_c.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_c.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_c.setProperty("referenceType", 2)
|
||||
self.dro_dtg_c.setProperty("axisNumber", 5)
|
||||
self.dro_dtg_c.setProperty("latheMode", 0)
|
||||
self.dro_dtg_c.setObjectName("dro_dtg_c")
|
||||
self.z_axis_dro_layout_10.addWidget(self.dro_dtg_c)
|
||||
self.ref_c_button_2 = ActionButton(self.dros_c_layout)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_c_button_2.sizePolicy().hasHeightForWidth())
|
||||
self.ref_c_button_2.setSizePolicy(sizePolicy)
|
||||
self.ref_c_button_2.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_c_button_2.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_c_button_2.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_c_button_2.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_c_button_2.setObjectName("ref_c_button_2")
|
||||
self.z_axis_dro_layout_10.addWidget(self.ref_c_button_2)
|
||||
self.verticalLayout_55.addWidget(self.dros_c_layout)
|
||||
self.spacer_widget = QtWidgets.QWidget(self.widget_xyzc)
|
||||
self.spacer_widget.setObjectName("spacer_widget")
|
||||
self.verticalLayout_55.addWidget(self.spacer_widget)
|
||||
self.verticalLayout.addWidget(self.widget_xyzc)
|
||||
|
||||
self.retranslateUi(dros_xyzc)
|
||||
QtCore.QMetaObject.connectSlotsByName(dros_xyzc)
|
||||
|
||||
def retranslateUi(self, dros_xyzc):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
dros_xyzc.setWindowTitle(_translate("dros_xyzc", "dros_xyzc"))
|
||||
self.zero_all_button.setText(_translate("dros_xyzc", "ALL"))
|
||||
self.zero_all_button.setProperty("rules", _translate("dros_xyzc", "[\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_all_button.setProperty("MDICommand", _translate("dros_xyzc", "G10 L20 P{ch[0]} X0.0 Z0.0"))
|
||||
self.work_column_header.setProperty("rules", _translate("dros_xyzc", "[{\"channels\": [{\"url\": \"status:g5x_index?text\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"ch[0] + \' WORK\'\\n\", \"name\": \"WCS Header\"}]"))
|
||||
self.machine_column_header.setText(_translate("dros_xyzc", "MACHINE"))
|
||||
self.dtg_column_header.setText(_translate("dros_xyzc", "DTG"))
|
||||
self.ref_all_button.setText(_translate("dros_xyzc", "REF ALL"))
|
||||
self.ref_all_button.setProperty("rules", _translate("dros_xyzc", "[{\"channels\": [{\"url\": \"status:all_axes_homed\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'HOMED\' if ch[0] else \'REF ALL\'\", \"name\": \"reference_all\"}, {\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2] or ch[3])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_all_button.setProperty("actionName", _translate("dros_xyzc", "machine.home.all"))
|
||||
self.zero_x_button.setText(_translate("dros_xyzc", "X RAD"))
|
||||
self.zero_x_button.setProperty("rules", _translate("dros_xyzc", "[{\"channels\": [{\"url\": \"status:g5x_index\", \"trigger\": true, \"type\": \"int\"}], \"property\": \"None\", \"expression\": \"\", \"name\": \"G5x Index\"}, {\"channels\": [{\"url\": \"status:gcodes\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'X DIA\' if \'G7\' in ch[0] else \'X RAD\'\", \"name\": \"diam_rad_mode_display\"}]"))
|
||||
self.zero_x_button.setProperty("MDICommand", _translate("dros_xyzc", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.dro_entry_x_main.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_entry_x_main.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_entry_x_main.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.drolabel_machine_x.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.drolabel_machine_x.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.drolabel_machine_x.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.dro_dtg_x.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_dtg_x.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_dtg_x.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.ref_x_button_2.setText(_translate("dros_xyzc", "REF X"))
|
||||
self.ref_x_button_2.setProperty("rules", _translate("dros_xyzc", "[{\"name\": \"home_prohibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2] or ch[3])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_x_button_2.setProperty("actionName", _translate("dros_xyzc", "machine.home.axis:x"))
|
||||
self.zero_y_button.setText(_translate("dros_xyzc", "Y"))
|
||||
self.zero_y_button.setProperty("rules", _translate("dros_xyzc", "[\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.setProperty("MDICommand", _translate("dros_xyzc", "G10 L20 P{ch[0]} Y0.0"))
|
||||
self.dro_entry_y_main.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_entry_y_main.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_entry_y_main.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.drolabel_machine_y.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.drolabel_machine_y.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.drolabel_machine_y.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.drolabel_12.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.drolabel_12.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.drolabel_12.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.ref_y_button_2.setText(_translate("dros_xyzc", "REF Y"))
|
||||
self.ref_y_button_2.setProperty("rules", _translate("dros_xyzc", "[{\"name\": \"home_prohibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2] or ch[3])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_y_button_2.setProperty("actionName", _translate("dros_xyzc", "machine.home.axis:y"))
|
||||
self.zero_z_button.setText(_translate("dros_xyzc", "Z"))
|
||||
self.zero_z_button.setProperty("rules", _translate("dros_xyzc", "[\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.setProperty("MDICommand", _translate("dros_xyzc", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.dro_entry_z_main.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_entry_z_main.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_entry_z_main.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.drolabel_machine_z.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.drolabel_machine_z.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.drolabel_machine_z.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.dro_dtg_z.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_dtg_z.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_dtg_z.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.ref_z_button_2.setText(_translate("dros_xyzc", "REF Z"))
|
||||
self.ref_z_button_2.setProperty("rules", _translate("dros_xyzc", "[{\"name\": \"home_prohibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2] or ch[3])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_z_button_2.setProperty("actionName", _translate("dros_xyzc", "machine.home.axis:z"))
|
||||
self.zero_c_button.setText(_translate("dros_xyzc", "C"))
|
||||
self.zero_c_button.setProperty("rules", _translate("dros_xyzc", "[\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_c_button.setProperty("MDICommand", _translate("dros_xyzc", "G10 L20 P{ch[0]} C0.0"))
|
||||
self.dro_entry_c_main.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_entry_c_main.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_entry_c_main.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.drolabel_machine_c.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.drolabel_machine_c.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.drolabel_machine_c.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.dro_dtg_c.setProperty("inchFormat", _translate("dros_xyzc", "%9.4f"))
|
||||
self.dro_dtg_c.setProperty("millimeterFormat", _translate("dros_xyzc", "%10.3f"))
|
||||
self.dro_dtg_c.setProperty("degreeFormat", _translate("dros_xyzc", "%10.2f"))
|
||||
self.ref_c_button_2.setText(_translate("dros_xyzc", "REF C"))
|
||||
self.ref_c_button_2.setProperty("rules", _translate("dros_xyzc", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2] or ch[3])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_c_button_2.setProperty("actionName", _translate("dros_xyzc", "machine.home.axis:c"))
|
||||
from qtpyvcp.widgets.button_widgets.action_button import ActionButton
|
||||
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_lathe_rc
|
||||
import probe_basic_rc
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,744 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xyzc_dros/offset_dros_xyzc.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_xyzc(object):
|
||||
def setupUi(self, offset_dros_xyzc):
|
||||
offset_dros_xyzc.setObjectName("offset_dros_xyzc")
|
||||
offset_dros_xyzc.resize(493, 263)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(offset_dros_xyzc.sizePolicy().hasHeightForWidth())
|
||||
offset_dros_xyzc.setSizePolicy(sizePolicy)
|
||||
offset_dros_xyzc.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(offset_dros_xyzc)
|
||||
self.verticalLayout.setSpacing(15)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.x_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.x_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.x_axis_dro_layout.setSpacing(12)
|
||||
self.x_axis_dro_layout.setObjectName("x_axis_dro_layout")
|
||||
self.zero_x_button_offset = MDIButton(offset_dros_xyzc)
|
||||
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.addWidget(self.zero_x_button_offset)
|
||||
self.axis_label_x = QtWidgets.QLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.axis_label_x)
|
||||
self.dro_entry_offset_x = DROLineEdit(offset_dros_xyzc)
|
||||
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.addWidget(self.dro_entry_offset_x)
|
||||
self.drolabel_work_x = DROLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.drolabel_work_x)
|
||||
self.work_offset_x = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.work_offset_x)
|
||||
self.g52_g92_x = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.g52_g92_x)
|
||||
self.tool_offset_x = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.tool_offset_x)
|
||||
self.verticalLayout.addLayout(self.x_axis_dro_layout)
|
||||
self.y_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.y_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.y_axis_dro_layout.setSpacing(12)
|
||||
self.y_axis_dro_layout.setObjectName("y_axis_dro_layout")
|
||||
self.zero_y_button_offset = MDIButton(offset_dros_xyzc)
|
||||
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.addWidget(self.zero_y_button_offset)
|
||||
self.axis_label_y = QtWidgets.QLabel(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.axis_label_y.sizePolicy().hasHeightForWidth())
|
||||
self.axis_label_y.setSizePolicy(sizePolicy)
|
||||
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.addWidget(self.axis_label_y)
|
||||
self.dro_entry_offset_y = DROLineEdit(offset_dros_xyzc)
|
||||
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("referenceType", 1)
|
||||
self.dro_entry_offset_y.setProperty("axisNumber", 1)
|
||||
self.dro_entry_offset_y.setProperty("latheMode", 0)
|
||||
self.dro_entry_offset_y.setObjectName("dro_entry_offset_y")
|
||||
self.y_axis_dro_layout.addWidget(self.dro_entry_offset_y)
|
||||
self.drolabel_work_y = DROLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.drolabel_work_y)
|
||||
self.work_offset_y = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.work_offset_y)
|
||||
self.g52_g92_y = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.g52_g92_y)
|
||||
self.tool_offset_y = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.tool_offset_y)
|
||||
self.verticalLayout.addLayout(self.y_axis_dro_layout)
|
||||
self.z_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.z_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.z_axis_dro_layout.setSpacing(12)
|
||||
self.z_axis_dro_layout.setObjectName("z_axis_dro_layout")
|
||||
self.zero_z_button_offset = MDIButton(offset_dros_xyzc)
|
||||
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.addWidget(self.zero_z_button_offset)
|
||||
self.axis_label_z = QtWidgets.QLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.axis_label_z)
|
||||
self.dro_entry_offset_z = DROLineEdit(offset_dros_xyzc)
|
||||
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.addWidget(self.dro_entry_offset_z)
|
||||
self.drolabel_work_z = DROLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.drolabel_work_z)
|
||||
self.work_offset_z = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.work_offset_z)
|
||||
self.g52_g92_z = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.g52_g92_z)
|
||||
self.tool_offset_z = StatusLabel(offset_dros_xyzc)
|
||||
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.addWidget(self.tool_offset_z)
|
||||
self.verticalLayout.addLayout(self.z_axis_dro_layout)
|
||||
self.c_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.c_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.c_axis_dro_layout.setSpacing(12)
|
||||
self.c_axis_dro_layout.setObjectName("c_axis_dro_layout")
|
||||
self.zero_c_button_offset = MDIButton(offset_dros_xyzc)
|
||||
self.zero_c_button_offset.setEnabled(False)
|
||||
self.zero_c_button_offset.setMinimumSize(QtCore.QSize(55, 38))
|
||||
self.zero_c_button_offset.setMaximumSize(QtCore.QSize(55, 38))
|
||||
self.zero_c_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.zero_c_button_offset.setStyleSheet("MDIButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_c_button_offset.setObjectName("zero_c_button_offset")
|
||||
self.c_axis_dro_layout.addWidget(self.zero_c_button_offset)
|
||||
self.axis_label_c = QtWidgets.QLabel(offset_dros_xyzc)
|
||||
self.axis_label_c.setMinimumSize(QtCore.QSize(45, 35))
|
||||
self.axis_label_c.setMaximumSize(QtCore.QSize(45, 35))
|
||||
self.axis_label_c.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_c.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.axis_label_c.setObjectName("axis_label_c")
|
||||
self.c_axis_dro_layout.addWidget(self.axis_label_c)
|
||||
self.dro_entry_offset_c = DROLineEdit(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_offset_c.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.dro_entry_offset_c.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_c.setFont(font)
|
||||
self.dro_entry_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_offset_c.setProperty("axisNumber", 5)
|
||||
self.dro_entry_offset_c.setObjectName("dro_entry_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.dro_entry_offset_c)
|
||||
self.drolabel_work_c = DROLabel(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_work_c.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_work_c.setSizePolicy(sizePolicy)
|
||||
self.drolabel_work_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.drolabel_work_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.drolabel_work_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_work_c.setProperty("referenceType", 0)
|
||||
self.drolabel_work_c.setProperty("axisNumber", 5)
|
||||
self.drolabel_work_c.setProperty("latheMode", 0)
|
||||
self.drolabel_work_c.setObjectName("drolabel_work_c")
|
||||
self.c_axis_dro_layout.addWidget(self.drolabel_work_c)
|
||||
self.work_offset_c = StatusLabel(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.work_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.work_offset_c.setSizePolicy(sizePolicy)
|
||||
self.work_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.work_offset_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.work_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.work_offset_c.setObjectName("work_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.work_offset_c)
|
||||
self.g52_g92_c = StatusLabel(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.g52_g92_c.sizePolicy().hasHeightForWidth())
|
||||
self.g52_g92_c.setSizePolicy(sizePolicy)
|
||||
self.g52_g92_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.g52_g92_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.g52_g92_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.g52_g92_c.setObjectName("g52_g92_c")
|
||||
self.c_axis_dro_layout.addWidget(self.g52_g92_c)
|
||||
self.tool_offset_c = StatusLabel(offset_dros_xyzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.tool_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.tool_offset_c.setSizePolicy(sizePolicy)
|
||||
self.tool_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.tool_offset_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.tool_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.tool_offset_c.setObjectName("tool_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.tool_offset_c)
|
||||
self.verticalLayout.addLayout(self.c_axis_dro_layout)
|
||||
|
||||
self.retranslateUi(offset_dros_xyzc)
|
||||
QtCore.QMetaObject.connectSlotsByName(offset_dros_xyzc)
|
||||
|
||||
def retranslateUi(self, offset_dros_xyzc):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
offset_dros_xyzc.setWindowTitle(_translate("offset_dros_xyzc", "offset_dros_xyzc"))
|
||||
self.zero_x_button_offset.setText(_translate("offset_dros_xyzc", "ZERO"))
|
||||
self.zero_x_button_offset.setProperty("rules", _translate("offset_dros_xyzc", "[\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_xyzc", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.axis_label_x.setText(_translate("offset_dros_xyzc", "X"))
|
||||
self.drolabel_work_x.setProperty("inchFormat", _translate("offset_dros_xyzc", "%9.4f"))
|
||||
self.drolabel_work_x.setProperty("millimeterFormat", _translate("offset_dros_xyzc", "%10.3f"))
|
||||
self.drolabel_work_x.setProperty("degreeFormat", _translate("offset_dros_xyzc", "%10.2f"))
|
||||
self.work_offset_x.setProperty("rules", _translate("offset_dros_xyzc", "[{\"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_xyzc", "[{\"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_xyzc", "[{\"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_xyzc", "ZERO"))
|
||||
self.zero_y_button_offset.setProperty("rules", _translate("offset_dros_xyzc", "[\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_xyzc", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.axis_label_y.setText(_translate("offset_dros_xyzc", "Y"))
|
||||
self.dro_entry_offset_y.setProperty("inchFormat", _translate("offset_dros_xyzc", "%9.4f"))
|
||||
self.dro_entry_offset_y.setProperty("millimeterFormat", _translate("offset_dros_xyzc", "%10.3f"))
|
||||
self.dro_entry_offset_y.setProperty("degreeFormat", _translate("offset_dros_xyzc", "%10.2f"))
|
||||
self.drolabel_work_y.setProperty("inchFormat", _translate("offset_dros_xyzc", "%9.4f"))
|
||||
self.drolabel_work_y.setProperty("millimeterFormat", _translate("offset_dros_xyzc", "%10.3f"))
|
||||
self.drolabel_work_y.setProperty("degreeFormat", _translate("offset_dros_xyzc", "%10.2f"))
|
||||
self.work_offset_y.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:g5x_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
|
||||
self.g52_g92_y.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:g92_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
|
||||
self.tool_offset_y.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][1])\", \"name\": \"New Rule\"}]"))
|
||||
self.zero_z_button_offset.setText(_translate("offset_dros_xyzc", "ZERO"))
|
||||
self.zero_z_button_offset.setProperty("rules", _translate("offset_dros_xyzc", "[\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_xyzc", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.axis_label_z.setText(_translate("offset_dros_xyzc", "Z"))
|
||||
self.drolabel_work_z.setProperty("inchFormat", _translate("offset_dros_xyzc", "%9.4f"))
|
||||
self.drolabel_work_z.setProperty("millimeterFormat", _translate("offset_dros_xyzc", "%10.3f"))
|
||||
self.drolabel_work_z.setProperty("degreeFormat", _translate("offset_dros_xyzc", "%10.2f"))
|
||||
self.work_offset_z.setProperty("rules", _translate("offset_dros_xyzc", "[{\"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_xyzc", "[{\"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_xyzc", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"tool offset\"}]"))
|
||||
self.zero_c_button_offset.setText(_translate("offset_dros_xyzc", "ZERO"))
|
||||
self.zero_c_button_offset.setProperty("rules", _translate("offset_dros_xyzc", "[\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_c_button_offset.setProperty("MDICommand", _translate("offset_dros_xyzc", "G10 L20 P{ch[0]} C0.0"))
|
||||
self.axis_label_c.setText(_translate("offset_dros_xyzc", "C"))
|
||||
self.drolabel_work_c.setProperty("inchFormat", _translate("offset_dros_xyzc", "%9.4f"))
|
||||
self.drolabel_work_c.setProperty("millimeterFormat", _translate("offset_dros_xyzc", "%10.3f"))
|
||||
self.drolabel_work_c.setProperty("degreeFormat", _translate("offset_dros_xyzc", "%10.2f"))
|
||||
self.work_offset_c.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:g5x_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]"))
|
||||
self.g52_g92_c.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:g92_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]"))
|
||||
self.tool_offset_c.setProperty("rules", _translate("offset_dros_xyzc", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"tool offset\"}]"))
|
||||
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
|
||||
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import linuxcnc
|
||||
|
||||
from qtpy import uic
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import QWidget
|
||||
|
||||
from qtpyvcp.plugins import getPlugin
|
||||
from qtpyvcp.utilities import logger
|
||||
|
||||
LOG = logger.getLogger(__name__)
|
||||
|
||||
STATUS = getPlugin('status')
|
||||
TOOL_TABLE = getPlugin('tooltable')
|
||||
|
||||
INI_FILE = linuxcnc.ini(os.getenv('INI_FILE_NAME'))
|
||||
|
||||
|
||||
class UserDRO(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super(UserDRO, self).__init__(parent)
|
||||
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
1096
configs/probe_basic_lathe/user_dro_display/xz_dros/dros_xz.ui
Normal file
1096
configs/probe_basic_lathe/user_dro_display/xz_dros/dros_xz.ui
Normal file
File diff suppressed because it is too large
Load Diff
543
configs/probe_basic_lathe/user_dro_display/xz_dros/dros_xz_ui.py
Normal file
543
configs/probe_basic_lathe/user_dro_display/xz_dros/dros_xz_ui.py
Normal file
@@ -0,0 +1,543 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xz_dros/dros_xz.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_dros_xz(object):
|
||||
def setupUi(self, dros_xz):
|
||||
dros_xz.setObjectName("dros_xz")
|
||||
dros_xz.resize(491, 308)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(dros_xz.sizePolicy().hasHeightForWidth())
|
||||
dros_xz.setSizePolicy(sizePolicy)
|
||||
dros_xz.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(dros_xz)
|
||||
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout.setSpacing(0)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.widget_xz = QtWidgets.QWidget(dros_xz)
|
||||
self.widget_xz.setObjectName("widget_xz")
|
||||
self.verticalLayout_55 = QtWidgets.QVBoxLayout(self.widget_xz)
|
||||
self.verticalLayout_55.setContentsMargins(0, 2, 0, 0)
|
||||
self.verticalLayout_55.setSpacing(15)
|
||||
self.verticalLayout_55.setObjectName("verticalLayout_55")
|
||||
self.widget_87 = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget_87.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_87.setObjectName("widget_87")
|
||||
self.horizontalLayout_79 = QtWidgets.QHBoxLayout(self.widget_87)
|
||||
self.horizontalLayout_79.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout_79.setObjectName("horizontalLayout_79")
|
||||
self.frame_53 = QtWidgets.QFrame(self.widget_87)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.frame_53.sizePolicy().hasHeightForWidth())
|
||||
self.frame_53.setSizePolicy(sizePolicy)
|
||||
self.frame_53.setMinimumSize(QtCore.QSize(0, 40))
|
||||
self.frame_53.setMaximumSize(QtCore.QSize(16777215, 40))
|
||||
self.frame_53.setStyleSheet(".QFrame{\n"
|
||||
" border-style: solid;\n"
|
||||
" border-color: rgb(176, 179,172);\n"
|
||||
" border-width: 1px;\n"
|
||||
" border-radius: 4px;\n"
|
||||
" background-color: rgb(90, 90, 90);\n"
|
||||
" padding: -5px;\n"
|
||||
"}")
|
||||
self.frame_53.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||||
self.frame_53.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||
self.frame_53.setObjectName("frame_53")
|
||||
self.horizontalLayout_168 = QtWidgets.QHBoxLayout(self.frame_53)
|
||||
self.horizontalLayout_168.setContentsMargins(9, -1, 0, -1)
|
||||
self.horizontalLayout_168.setSpacing(18)
|
||||
self.horizontalLayout_168.setObjectName("horizontalLayout_168")
|
||||
self.machine_column_header_2 = QtWidgets.QLabel(self.frame_53)
|
||||
self.machine_column_header_2.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.machine_column_header_2.sizePolicy().hasHeightForWidth())
|
||||
self.machine_column_header_2.setSizePolicy(sizePolicy)
|
||||
self.machine_column_header_2.setMinimumSize(QtCore.QSize(48, 17))
|
||||
self.machine_column_header_2.setMaximumSize(QtCore.QSize(48, 17))
|
||||
self.machine_column_header_2.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.machine_column_header_2.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.machine_column_header_2.setObjectName("machine_column_header_2")
|
||||
self.horizontalLayout_168.addWidget(self.machine_column_header_2)
|
||||
self.work_column_header = StatusLabel(self.frame_53)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.work_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.work_column_header.setSizePolicy(sizePolicy)
|
||||
self.work_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
" padding-left: 6px;\n"
|
||||
"}")
|
||||
self.work_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.work_column_header.setObjectName("work_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.work_column_header)
|
||||
self.machine_column_header = QtWidgets.QLabel(self.frame_53)
|
||||
self.machine_column_header.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.machine_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.machine_column_header.setSizePolicy(sizePolicy)
|
||||
self.machine_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.machine_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.machine_column_header.setObjectName("machine_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.machine_column_header)
|
||||
self.dtg_column_header = QtWidgets.QLabel(self.frame_53)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dtg_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.dtg_column_header.setSizePolicy(sizePolicy)
|
||||
self.dtg_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.dtg_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.dtg_column_header.setObjectName("dtg_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.dtg_column_header)
|
||||
self.machine_column_header_3 = QtWidgets.QLabel(self.frame_53)
|
||||
self.machine_column_header_3.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.machine_column_header_3.sizePolicy().hasHeightForWidth())
|
||||
self.machine_column_header_3.setSizePolicy(sizePolicy)
|
||||
self.machine_column_header_3.setMinimumSize(QtCore.QSize(60, 17))
|
||||
self.machine_column_header_3.setMaximumSize(QtCore.QSize(60, 17))
|
||||
self.machine_column_header_3.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.machine_column_header_3.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.machine_column_header_3.setObjectName("machine_column_header_3")
|
||||
self.horizontalLayout_168.addWidget(self.machine_column_header_3)
|
||||
self.horizontalLayout_79.addWidget(self.frame_53)
|
||||
self.verticalLayout_55.addWidget(self.widget_87)
|
||||
self.widget_88 = QtWidgets.QWidget(self.widget_xz)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(1)
|
||||
sizePolicy.setHeightForWidth(self.widget_88.sizePolicy().hasHeightForWidth())
|
||||
self.widget_88.setSizePolicy(sizePolicy)
|
||||
self.widget_88.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_88.setObjectName("widget_88")
|
||||
self.x_axis_dro_layout_3 = QtWidgets.QHBoxLayout(self.widget_88)
|
||||
self.x_axis_dro_layout_3.setContentsMargins(0, 2, 0, 2)
|
||||
self.x_axis_dro_layout_3.setSpacing(8)
|
||||
self.x_axis_dro_layout_3.setObjectName("x_axis_dro_layout_3")
|
||||
self.zero_x_button = MDIButton(self.widget_88)
|
||||
self.zero_x_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_x_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_x_button.setSizePolicy(sizePolicy)
|
||||
self.zero_x_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_x_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_x_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_x_button.setObjectName("zero_x_button")
|
||||
self.x_axis_dro_layout_3.addWidget(self.zero_x_button)
|
||||
self.dro_entry_x_main = DROLineEdit(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_x_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_x_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_x_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_x_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_x_main.setStyleSheet("DROLineEdit{\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_x_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_x_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_x_main.setProperty("axisNumber", 0)
|
||||
self.dro_entry_x_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_x_main.setObjectName("dro_entry_x_main")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_entry_x_main)
|
||||
self.drolabel_machine_x = DROLabel(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_x.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_x.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_x.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_x.setProperty("axisNumber", 0)
|
||||
self.drolabel_machine_x.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_x.setObjectName("drolabel_machine_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.drolabel_machine_x)
|
||||
self.dro_dtg_x = DROLabel(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_x.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_x.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_x.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_x.setProperty("referenceType", 2)
|
||||
self.dro_dtg_x.setProperty("axisNumber", 0)
|
||||
self.dro_dtg_x.setProperty("latheMode", 0)
|
||||
self.dro_dtg_x.setObjectName("dro_dtg_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_dtg_x)
|
||||
self.ref_x_button = ActionButton(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_x_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_x_button.setSizePolicy(sizePolicy)
|
||||
self.ref_x_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.ref_x_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.ref_x_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_x_button.setObjectName("ref_x_button")
|
||||
self.x_axis_dro_layout_3.addWidget(self.ref_x_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_88)
|
||||
self.widget_89 = QtWidgets.QWidget(self.widget_xz)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(1)
|
||||
sizePolicy.setHeightForWidth(self.widget_89.sizePolicy().hasHeightForWidth())
|
||||
self.widget_89.setSizePolicy(sizePolicy)
|
||||
self.widget_89.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_89.setObjectName("widget_89")
|
||||
self.z_axis_dro_layout_6 = QtWidgets.QHBoxLayout(self.widget_89)
|
||||
self.z_axis_dro_layout_6.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_6.setSpacing(8)
|
||||
self.z_axis_dro_layout_6.setObjectName("z_axis_dro_layout_6")
|
||||
self.zero_z_button = MDIButton(self.widget_89)
|
||||
self.zero_z_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_z_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_z_button.setSizePolicy(sizePolicy)
|
||||
self.zero_z_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(":/images/zero.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.zero_z_button.setIcon(icon)
|
||||
self.zero_z_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_z_button.setObjectName("zero_z_button")
|
||||
self.z_axis_dro_layout_6.addWidget(self.zero_z_button)
|
||||
self.dro_entry_z_main = DROLineEdit(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_z_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_z_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_z_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_z_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_z_main.setStyleSheet("DROLineEdit{\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_z_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_z_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_z_main.setProperty("axisNumber", 2)
|
||||
self.dro_entry_z_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_z_main.setObjectName("dro_entry_z_main")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_entry_z_main)
|
||||
self.drolabel_machine_z = DROLabel(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_z.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_z.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_z.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_z.setProperty("axisNumber", 2)
|
||||
self.drolabel_machine_z.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_z.setObjectName("drolabel_machine_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.drolabel_machine_z)
|
||||
self.dro_dtg_z = DROLabel(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_z.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_z.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_z.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_z.setProperty("referenceType", 2)
|
||||
self.dro_dtg_z.setProperty("axisNumber", 2)
|
||||
self.dro_dtg_z.setProperty("latheMode", 0)
|
||||
self.dro_dtg_z.setObjectName("dro_dtg_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_dtg_z)
|
||||
self.ref_z_button = ActionButton(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_z_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_z_button.setSizePolicy(sizePolicy)
|
||||
self.ref_z_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.ref_z_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.ref_z_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_z_button.setObjectName("ref_z_button")
|
||||
self.z_axis_dro_layout_6.addWidget(self.ref_z_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_89)
|
||||
self.widget_2 = QtWidgets.QWidget(self.widget_xz)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(1)
|
||||
sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
|
||||
self.widget_2.setSizePolicy(sizePolicy)
|
||||
self.widget_2.setObjectName("widget_2")
|
||||
self.verticalLayout_55.addWidget(self.widget_2)
|
||||
self.line_5 = QtWidgets.QFrame(self.widget_xz)
|
||||
self.line_5.setMaximumSize(QtCore.QSize(16777215, 2))
|
||||
self.line_5.setLineWidth(0)
|
||||
self.line_5.setMidLineWidth(1)
|
||||
self.line_5.setFrameShape(QtWidgets.QFrame.HLine)
|
||||
self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||||
self.line_5.setObjectName("line_5")
|
||||
self.verticalLayout_55.addWidget(self.line_5)
|
||||
self.widget = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget.setMaximumSize(QtCore.QSize(16777215, 45))
|
||||
self.widget.setObjectName("widget")
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
|
||||
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout.setSpacing(30)
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.zero_all_button = MDIButton(self.widget)
|
||||
self.zero_all_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_all_button.setSizePolicy(sizePolicy)
|
||||
self.zero_all_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_all_button.setMaximumSize(QtCore.QSize(16777215, 40))
|
||||
self.zero_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.zero_all_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_all_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 14pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_all_button.setIcon(icon)
|
||||
self.zero_all_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_all_button.setObjectName("zero_all_button")
|
||||
self.horizontalLayout.addWidget(self.zero_all_button)
|
||||
self.ref_all_button = ActionButton(self.widget)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_all_button.setSizePolicy(sizePolicy)
|
||||
self.ref_all_button.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_all_button.setMaximumSize(QtCore.QSize(16777215, 40))
|
||||
self.ref_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_all_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_all_button.setObjectName("ref_all_button")
|
||||
self.horizontalLayout.addWidget(self.ref_all_button)
|
||||
self.verticalLayout_55.addWidget(self.widget)
|
||||
self.verticalLayout.addWidget(self.widget_xz)
|
||||
|
||||
self.retranslateUi(dros_xz)
|
||||
QtCore.QMetaObject.connectSlotsByName(dros_xz)
|
||||
|
||||
def retranslateUi(self, dros_xz):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
dros_xz.setWindowTitle(_translate("dros_xz", "dros_xz"))
|
||||
self.machine_column_header_2.setText(_translate("dros_xz", "AXIS"))
|
||||
self.work_column_header.setProperty("rules", _translate("dros_xz", "[{\"channels\": [{\"url\": \"status:g5x_index?text\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"ch[0] + \' WORK\'\\n\", \"name\": \"WCS Header\"}]"))
|
||||
self.machine_column_header.setText(_translate("dros_xz", "MACHINE"))
|
||||
self.dtg_column_header.setText(_translate("dros_xz", "DTG"))
|
||||
self.machine_column_header_3.setText(_translate("dros_xz", "REF"))
|
||||
self.zero_x_button.setText(_translate("dros_xz", "X RAD"))
|
||||
self.zero_x_button.setProperty("rules", _translate("dros_xz", "[{\"channels\": [{\"url\": \"status:g5x_index\", \"trigger\": true, \"type\": \"int\"}], \"property\": \"None\", \"expression\": \"\", \"name\": \"G5x Index\"}, {\"channels\": [{\"url\": \"status:gcodes\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'X DIA\' if \'G7\' in ch[0] else \'X RAD\'\", \"name\": \"diam_rad_mode_display\"}]"))
|
||||
self.zero_x_button.setProperty("MDICommand", _translate("dros_xz", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.dro_entry_x_main.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.dro_entry_x_main.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.dro_entry_x_main.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.drolabel_machine_x.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.drolabel_machine_x.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.drolabel_machine_x.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.dro_dtg_x.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.dro_dtg_x.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.dro_dtg_x.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.ref_x_button.setText(_translate("dros_xz", "REF X"))
|
||||
self.ref_x_button.setProperty("rules", _translate("dros_xz", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_x_button.setProperty("actionName", _translate("dros_xz", "machine.home.axis:x"))
|
||||
self.zero_z_button.setText(_translate("dros_xz", "Z"))
|
||||
self.zero_z_button.setProperty("rules", _translate("dros_xz", "[\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.setProperty("MDICommand", _translate("dros_xz", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.dro_entry_z_main.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.dro_entry_z_main.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.dro_entry_z_main.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.drolabel_machine_z.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.drolabel_machine_z.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.drolabel_machine_z.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.dro_dtg_z.setProperty("inchFormat", _translate("dros_xz", "%9.4f"))
|
||||
self.dro_dtg_z.setProperty("millimeterFormat", _translate("dros_xz", "%10.3f"))
|
||||
self.dro_dtg_z.setProperty("degreeFormat", _translate("dros_xz", "%10.2f"))
|
||||
self.ref_z_button.setText(_translate("dros_xz", "REF Z"))
|
||||
self.ref_z_button.setProperty("rules", _translate("dros_xz", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_z_button.setProperty("actionName", _translate("dros_xz", "machine.home.axis:z"))
|
||||
self.zero_all_button.setText(_translate("dros_xz", "ALL"))
|
||||
self.zero_all_button.setProperty("rules", _translate("dros_xz", "[\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_all_button.setProperty("MDICommand", _translate("dros_xz", "G10 L20 P{ch[0]} X0.0 Z0.0"))
|
||||
self.ref_all_button.setText(_translate("dros_xz", "REF ALL"))
|
||||
self.ref_all_button.setProperty("rules", _translate("dros_xz", "[{\"channels\": [{\"url\": \"status:all_axes_homed\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'HOMED\' if ch[0] else \'REF ALL\'\", \"name\": \"reference_all\"}, {\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_all_button.setProperty("actionName", _translate("dros_xz", "machine.home.all"))
|
||||
from qtpyvcp.widgets.button_widgets.action_button import ActionButton
|
||||
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_lathe_rc
|
||||
import probe_basic_rc
|
||||
@@ -0,0 +1,706 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>offset_dros_xyz</class>
|
||||
<widget class="QWidget" name="offset_dros_xyz">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>493</width>
|
||||
<height>138</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>offset_dros_xyz</string>
|
||||
</property>
|
||||
<property name="layoutDirection">
|
||||
<enum>Qt::LeftToRight</enum>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>15</number>
|
||||
</property>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="x_axis_dro_layout">
|
||||
<property name="spacing">
|
||||
<number>12</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="MDIButton" name="zero_x_button_offset">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>55</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>55</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">MDIButton {
|
||||
font: 15pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>ZERO</string>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[
|
||||
{
|
||||
"channels": [
|
||||
{
|
||||
"url": "status:g5x_index",
|
||||
"trigger": true,
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"expression": "",
|
||||
"name": "G5x Index",
|
||||
"property": "None"
|
||||
}
|
||||
]</string>
|
||||
</property>
|
||||
<property name="MDICommand" stdset="0">
|
||||
<string>G10 L20 P{ch[0]} X0.0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="axis_label_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel{
|
||||
border-style: solid;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: rgb(238, 238, 236);
|
||||
font: 18pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>X</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="DROLineEdit" name="dro_entry_offset_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Bebas Kai</family>
|
||||
<pointsize>17</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLineEdit{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
padding-right: 2px;
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="DROLabel" name="drolabel_work_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel{
|
||||
border-style: transparent;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
QLabel[style="unhomed"]{
|
||||
color: red;
|
||||
}
|
||||
|
||||
QLabel[style="homing"]{
|
||||
color: rgb(196, 160, 0);
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="referenceType" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="axisNumber" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="inchFormat" stdset="0">
|
||||
<string>%9.4f</string>
|
||||
</property>
|
||||
<property name="millimeterFormat" stdset="0">
|
||||
<string>%10.3f</string>
|
||||
</property>
|
||||
<property name="degreeFormat" stdset="0">
|
||||
<string>%10.2f</string>
|
||||
</property>
|
||||
<property name="latheMode" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="work_offset_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"trigger": true, "type": "tuple", "url": "status:g5x_offset"}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][0])", "name": "New Rule"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="g52_g92_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"trigger": true, "type": "tuple", "url": "status:g92_offset"}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][0])", "name": "New Rule"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="tool_offset_x">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"trigger": true, "type": "tuple", "url": "status:tool_offset"}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][0])", "name": "New Rule"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="z_axis_dro_layout">
|
||||
<property name="spacing">
|
||||
<number>12</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="MDIButton" name="zero_z_button_offset">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>55</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>55</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">MDIButton {
|
||||
font: 15pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>ZERO</string>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[
|
||||
{
|
||||
"channels": [
|
||||
{
|
||||
"url": "status:g5x_index",
|
||||
"trigger": true,
|
||||
"type": "int"
|
||||
}
|
||||
],
|
||||
"expression": "",
|
||||
"name": "G5x Index",
|
||||
"property": "None"
|
||||
}
|
||||
]</string>
|
||||
</property>
|
||||
<property name="MDICommand" stdset="0">
|
||||
<string>G10 L20 P{ch[0]} Z0.0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="axis_label_z">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>35</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel{
|
||||
border-style: solid;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: rgb(238, 238, 236);
|
||||
font: 18pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Z</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="DROLineEdit" name="dro_entry_offset_z">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Bebas Kai</family>
|
||||
<pointsize>17</pointsize>
|
||||
<weight>50</weight>
|
||||
<italic>false</italic>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLineEdit{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
padding-right: 2px;
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="axisNumber" stdset="0">
|
||||
<number>2</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="DROLabel" name="drolabel_work_z">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel{
|
||||
border-style: transparent;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
QLabel[style="unhomed"]{
|
||||
color: red;
|
||||
}
|
||||
|
||||
QLabel[style="homing"]{
|
||||
color: rgb(196, 160, 0);
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="referenceType" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="axisNumber" stdset="0">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="inchFormat" stdset="0">
|
||||
<string>%9.4f</string>
|
||||
</property>
|
||||
<property name="millimeterFormat" stdset="0">
|
||||
<string>%10.3f</string>
|
||||
</property>
|
||||
<property name="degreeFormat" stdset="0">
|
||||
<string>%10.2f</string>
|
||||
</property>
|
||||
<property name="latheMode" stdset="0">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="work_offset_z">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"trigger": true, "type": "tuple", "url": "status:g5x_offset"}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][2])", "name": "New Rule"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="g52_g92_z">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"trigger": true, "type": "tuple", "url": "status:g92_offset"}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][2])", "name": "New Rule"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="StatusLabel" name="tool_offset_z">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>38</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">StatusLabel{
|
||||
border-style: transparant;
|
||||
border-color: rgb(235, 235, 235);
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
color: black;
|
||||
background: rgb(235, 235, 235);
|
||||
font: 17pt "Bebas Kai";
|
||||
}</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="rules" stdset="0">
|
||||
<string>[{"channels": [{"url": "status:tool_offset", "trigger": true}], "property": "Text", "expression": "\"{:.4f}\".format(ch[0][2])", "name": "tool offset"}]</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>MDIButton</class>
|
||||
<extends>QPushButton</extends>
|
||||
<header>qtpyvcp.widgets.button_widgets.mdi_button</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>StatusLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>qtpyvcp.widgets.display_widgets.status_label</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>DROLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>qtpyvcp.widgets.display_widgets.dro_label</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>DROLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header>qtpyvcp.widgets.input_widgets.dro_line_edit</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../../../../src/probe_basic/probe_basic.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
@@ -0,0 +1,388 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xz_dros/offset_dros_xz.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_xyz(object):
|
||||
def setupUi(self, offset_dros_xyz):
|
||||
offset_dros_xyz.setObjectName("offset_dros_xyz")
|
||||
offset_dros_xyz.resize(493, 138)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(offset_dros_xyz.sizePolicy().hasHeightForWidth())
|
||||
offset_dros_xyz.setSizePolicy(sizePolicy)
|
||||
offset_dros_xyz.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(offset_dros_xyz)
|
||||
self.verticalLayout.setSpacing(15)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.x_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.x_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.x_axis_dro_layout.setSpacing(12)
|
||||
self.x_axis_dro_layout.setObjectName("x_axis_dro_layout")
|
||||
self.zero_x_button_offset = MDIButton(offset_dros_xyz)
|
||||
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.addWidget(self.zero_x_button_offset)
|
||||
self.axis_label_x = QtWidgets.QLabel(offset_dros_xyz)
|
||||
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.addWidget(self.axis_label_x)
|
||||
self.dro_entry_offset_x = DROLineEdit(offset_dros_xyz)
|
||||
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.addWidget(self.dro_entry_offset_x)
|
||||
self.drolabel_work_x = DROLabel(offset_dros_xyz)
|
||||
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.addWidget(self.drolabel_work_x)
|
||||
self.work_offset_x = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.work_offset_x)
|
||||
self.g52_g92_x = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.g52_g92_x)
|
||||
self.tool_offset_x = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.tool_offset_x)
|
||||
self.verticalLayout.addLayout(self.x_axis_dro_layout)
|
||||
self.z_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.z_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.z_axis_dro_layout.setSpacing(12)
|
||||
self.z_axis_dro_layout.setObjectName("z_axis_dro_layout")
|
||||
self.zero_z_button_offset = MDIButton(offset_dros_xyz)
|
||||
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.addWidget(self.zero_z_button_offset)
|
||||
self.axis_label_z = QtWidgets.QLabel(offset_dros_xyz)
|
||||
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.addWidget(self.axis_label_z)
|
||||
self.dro_entry_offset_z = DROLineEdit(offset_dros_xyz)
|
||||
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.addWidget(self.dro_entry_offset_z)
|
||||
self.drolabel_work_z = DROLabel(offset_dros_xyz)
|
||||
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.addWidget(self.drolabel_work_z)
|
||||
self.work_offset_z = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.work_offset_z)
|
||||
self.g52_g92_z = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.g52_g92_z)
|
||||
self.tool_offset_z = StatusLabel(offset_dros_xyz)
|
||||
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.addWidget(self.tool_offset_z)
|
||||
self.verticalLayout.addLayout(self.z_axis_dro_layout)
|
||||
|
||||
self.retranslateUi(offset_dros_xyz)
|
||||
QtCore.QMetaObject.connectSlotsByName(offset_dros_xyz)
|
||||
|
||||
def retranslateUi(self, offset_dros_xyz):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
offset_dros_xyz.setWindowTitle(_translate("offset_dros_xyz", "offset_dros_xyz"))
|
||||
self.zero_x_button_offset.setText(_translate("offset_dros_xyz", "ZERO"))
|
||||
self.zero_x_button_offset.setProperty("rules", _translate("offset_dros_xyz", "[\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_xyz", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.axis_label_x.setText(_translate("offset_dros_xyz", "X"))
|
||||
self.drolabel_work_x.setProperty("inchFormat", _translate("offset_dros_xyz", "%9.4f"))
|
||||
self.drolabel_work_x.setProperty("millimeterFormat", _translate("offset_dros_xyz", "%10.3f"))
|
||||
self.drolabel_work_x.setProperty("degreeFormat", _translate("offset_dros_xyz", "%10.2f"))
|
||||
self.work_offset_x.setProperty("rules", _translate("offset_dros_xyz", "[{\"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_xyz", "[{\"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_xyz", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]"))
|
||||
self.zero_z_button_offset.setText(_translate("offset_dros_xyz", "ZERO"))
|
||||
self.zero_z_button_offset.setProperty("rules", _translate("offset_dros_xyz", "[\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_xyz", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.axis_label_z.setText(_translate("offset_dros_xyz", "Z"))
|
||||
self.drolabel_work_z.setProperty("inchFormat", _translate("offset_dros_xyz", "%9.4f"))
|
||||
self.drolabel_work_z.setProperty("millimeterFormat", _translate("offset_dros_xyz", "%10.3f"))
|
||||
self.drolabel_work_z.setProperty("degreeFormat", _translate("offset_dros_xyz", "%10.2f"))
|
||||
self.work_offset_z.setProperty("rules", _translate("offset_dros_xyz", "[{\"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_xyz", "[{\"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_xyz", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"tool offset\"}]"))
|
||||
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
|
||||
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import linuxcnc
|
||||
|
||||
from qtpy import uic
|
||||
from qtpy.QtCore import Qt
|
||||
from qtpy.QtWidgets import QWidget
|
||||
|
||||
from qtpyvcp.plugins import getPlugin
|
||||
from qtpyvcp.utilities import logger
|
||||
|
||||
LOG = logger.getLogger(__name__)
|
||||
|
||||
STATUS = getPlugin('status')
|
||||
TOOL_TABLE = getPlugin('tooltable')
|
||||
|
||||
INI_FILE = linuxcnc.ini(os.getenv('INI_FILE_NAME'))
|
||||
|
||||
|
||||
class UserDRO(QWidget):
|
||||
def __init__(self, parent=None):
|
||||
super(UserDRO, self).__init__(parent)
|
||||
ui_file = os.path.splitext(os.path.basename(__file__))[0] + ".ui"
|
||||
uic.loadUi(os.path.join(os.path.dirname(__file__), ui_file), self)
|
||||
1250
configs/probe_basic_lathe/user_dro_display/xzc_dros/dros_xzc.ui
Normal file
1250
configs/probe_basic_lathe/user_dro_display/xzc_dros/dros_xzc.ui
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,631 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xzc_dros/dros_xzc.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_dros_xzc(object):
|
||||
def setupUi(self, dros_xzc):
|
||||
dros_xzc.setObjectName("dros_xzc")
|
||||
dros_xzc.resize(479, 254)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(dros_xzc.sizePolicy().hasHeightForWidth())
|
||||
dros_xzc.setSizePolicy(sizePolicy)
|
||||
dros_xzc.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(dros_xzc)
|
||||
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout.setSpacing(0)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.widget_xz = QtWidgets.QWidget(dros_xzc)
|
||||
self.widget_xz.setObjectName("widget_xz")
|
||||
self.verticalLayout_55 = QtWidgets.QVBoxLayout(self.widget_xz)
|
||||
self.verticalLayout_55.setContentsMargins(0, 0, 0, 0)
|
||||
self.verticalLayout_55.setSpacing(19)
|
||||
self.verticalLayout_55.setObjectName("verticalLayout_55")
|
||||
self.widget_87 = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget_87.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_87.setObjectName("widget_87")
|
||||
self.horizontalLayout_79 = QtWidgets.QHBoxLayout(self.widget_87)
|
||||
self.horizontalLayout_79.setContentsMargins(0, 0, 0, 0)
|
||||
self.horizontalLayout_79.setObjectName("horizontalLayout_79")
|
||||
self.zero_all_button = MDIButton(self.widget_87)
|
||||
self.zero_all_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_all_button.setSizePolicy(sizePolicy)
|
||||
self.zero_all_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_all_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.zero_all_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_all_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 14pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(":/images/zero.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||
self.zero_all_button.setIcon(icon)
|
||||
self.zero_all_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_all_button.setObjectName("zero_all_button")
|
||||
self.horizontalLayout_79.addWidget(self.zero_all_button)
|
||||
self.frame_53 = QtWidgets.QFrame(self.widget_87)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.frame_53.sizePolicy().hasHeightForWidth())
|
||||
self.frame_53.setSizePolicy(sizePolicy)
|
||||
self.frame_53.setMinimumSize(QtCore.QSize(0, 40))
|
||||
self.frame_53.setMaximumSize(QtCore.QSize(16777215, 40))
|
||||
self.frame_53.setStyleSheet(".QFrame{\n"
|
||||
" border-style: solid;\n"
|
||||
" border-color: rgb(176, 179,172);\n"
|
||||
" border-width: 1px;\n"
|
||||
" border-radius: 4px;\n"
|
||||
" background-color: rgb(90, 90, 90);\n"
|
||||
" padding: -5px;\n"
|
||||
"}")
|
||||
self.frame_53.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||||
self.frame_53.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||
self.frame_53.setObjectName("frame_53")
|
||||
self.horizontalLayout_168 = QtWidgets.QHBoxLayout(self.frame_53)
|
||||
self.horizontalLayout_168.setContentsMargins(9, -1, 0, -1)
|
||||
self.horizontalLayout_168.setSpacing(18)
|
||||
self.horizontalLayout_168.setObjectName("horizontalLayout_168")
|
||||
self.work_column_header = StatusLabel(self.frame_53)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.work_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.work_column_header.setSizePolicy(sizePolicy)
|
||||
self.work_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.work_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
" padding-left: 6px;\n"
|
||||
"}")
|
||||
self.work_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.work_column_header.setObjectName("work_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.work_column_header)
|
||||
self.machine_column_header = QtWidgets.QLabel(self.frame_53)
|
||||
self.machine_column_header.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.machine_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.machine_column_header.setSizePolicy(sizePolicy)
|
||||
self.machine_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.machine_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.machine_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.machine_column_header.setObjectName("machine_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.machine_column_header)
|
||||
self.dtg_column_header = QtWidgets.QLabel(self.frame_53)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dtg_column_header.sizePolicy().hasHeightForWidth())
|
||||
self.dtg_column_header.setSizePolicy(sizePolicy)
|
||||
self.dtg_column_header.setMinimumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setMaximumSize(QtCore.QSize(100, 17))
|
||||
self.dtg_column_header.setStyleSheet("QLabel{\n"
|
||||
" color: rgb(238, 238, 236);\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.dtg_column_header.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.dtg_column_header.setObjectName("dtg_column_header")
|
||||
self.horizontalLayout_168.addWidget(self.dtg_column_header)
|
||||
self.horizontalLayout_79.addWidget(self.frame_53)
|
||||
self.ref_all_button = ActionButton(self.widget_87)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_all_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_all_button.setSizePolicy(sizePolicy)
|
||||
self.ref_all_button.setMinimumSize(QtCore.QSize(62, 40))
|
||||
self.ref_all_button.setMaximumSize(QtCore.QSize(62, 40))
|
||||
self.ref_all_button.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.ref_all_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_all_button.setObjectName("ref_all_button")
|
||||
self.horizontalLayout_79.addWidget(self.ref_all_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_87)
|
||||
self.widget_88 = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget_88.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_88.setObjectName("widget_88")
|
||||
self.x_axis_dro_layout_3 = QtWidgets.QHBoxLayout(self.widget_88)
|
||||
self.x_axis_dro_layout_3.setContentsMargins(0, 2, 0, 2)
|
||||
self.x_axis_dro_layout_3.setSpacing(8)
|
||||
self.x_axis_dro_layout_3.setObjectName("x_axis_dro_layout_3")
|
||||
self.zero_x_button = MDIButton(self.widget_88)
|
||||
self.zero_x_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_x_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_x_button.setSizePolicy(sizePolicy)
|
||||
self.zero_x_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_x_button.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.zero_x_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 16pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_x_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_x_button.setObjectName("zero_x_button")
|
||||
self.x_axis_dro_layout_3.addWidget(self.zero_x_button)
|
||||
self.dro_entry_x_main = DROLineEdit(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_x_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_x_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_x_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_x_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_x_main.setStyleSheet("DROLineEdit{\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_x_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_x_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_x_main.setProperty("axisNumber", 0)
|
||||
self.dro_entry_x_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_x_main.setObjectName("dro_entry_x_main")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_entry_x_main)
|
||||
self.drolabel_machine_x = DROLabel(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_x.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_x.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_x.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_x.setProperty("axisNumber", 0)
|
||||
self.drolabel_machine_x.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_x.setObjectName("drolabel_machine_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.drolabel_machine_x)
|
||||
self.dro_dtg_x = DROLabel(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_x.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_x.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_x.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_x.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_x.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_x.setProperty("referenceType", 2)
|
||||
self.dro_dtg_x.setProperty("axisNumber", 0)
|
||||
self.dro_dtg_x.setProperty("latheMode", 0)
|
||||
self.dro_dtg_x.setObjectName("dro_dtg_x")
|
||||
self.x_axis_dro_layout_3.addWidget(self.dro_dtg_x)
|
||||
self.ref_x_button = ActionButton(self.widget_88)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_x_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_x_button.setSizePolicy(sizePolicy)
|
||||
self.ref_x_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.ref_x_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.ref_x_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_x_button.setObjectName("ref_x_button")
|
||||
self.x_axis_dro_layout_3.addWidget(self.ref_x_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_88)
|
||||
self.widget_89 = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget_89.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_89.setObjectName("widget_89")
|
||||
self.z_axis_dro_layout_6 = QtWidgets.QHBoxLayout(self.widget_89)
|
||||
self.z_axis_dro_layout_6.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_6.setSpacing(8)
|
||||
self.z_axis_dro_layout_6.setObjectName("z_axis_dro_layout_6")
|
||||
self.zero_z_button = MDIButton(self.widget_89)
|
||||
self.zero_z_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_z_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_z_button.setSizePolicy(sizePolicy)
|
||||
self.zero_z_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_z_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_z_button.setIcon(icon)
|
||||
self.zero_z_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_z_button.setObjectName("zero_z_button")
|
||||
self.z_axis_dro_layout_6.addWidget(self.zero_z_button)
|
||||
self.dro_entry_z_main = DROLineEdit(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_z_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_z_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_z_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_z_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_z_main.setStyleSheet("DROLineEdit{\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_z_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_z_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_z_main.setProperty("axisNumber", 2)
|
||||
self.dro_entry_z_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_z_main.setObjectName("dro_entry_z_main")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_entry_z_main)
|
||||
self.drolabel_machine_z = DROLabel(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_z.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_z.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_z.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_z.setProperty("axisNumber", 2)
|
||||
self.drolabel_machine_z.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_z.setObjectName("drolabel_machine_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.drolabel_machine_z)
|
||||
self.dro_dtg_z = DROLabel(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_z.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_z.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_z.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_z.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_z.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_z.setProperty("referenceType", 2)
|
||||
self.dro_dtg_z.setProperty("axisNumber", 2)
|
||||
self.dro_dtg_z.setProperty("latheMode", 0)
|
||||
self.dro_dtg_z.setObjectName("dro_dtg_z")
|
||||
self.z_axis_dro_layout_6.addWidget(self.dro_dtg_z)
|
||||
self.ref_z_button = ActionButton(self.widget_89)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_z_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_z_button.setSizePolicy(sizePolicy)
|
||||
self.ref_z_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.ref_z_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.ref_z_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_z_button.setObjectName("ref_z_button")
|
||||
self.z_axis_dro_layout_6.addWidget(self.ref_z_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_89)
|
||||
self.widget_93 = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget_93.setMinimumSize(QtCore.QSize(0, 42))
|
||||
self.widget_93.setObjectName("widget_93")
|
||||
self.z_axis_dro_layout_10 = QtWidgets.QHBoxLayout(self.widget_93)
|
||||
self.z_axis_dro_layout_10.setContentsMargins(0, 2, 0, 2)
|
||||
self.z_axis_dro_layout_10.setSpacing(8)
|
||||
self.z_axis_dro_layout_10.setObjectName("z_axis_dro_layout_10")
|
||||
self.zero_c_button = MDIButton(self.widget_93)
|
||||
self.zero_c_button.setEnabled(False)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.zero_c_button.sizePolicy().hasHeightForWidth())
|
||||
self.zero_c_button.setSizePolicy(sizePolicy)
|
||||
self.zero_c_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.zero_c_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.zero_c_button.setStyleSheet("MDIButton {\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_c_button.setIcon(icon)
|
||||
self.zero_c_button.setIconSize(QtCore.QSize(20, 20))
|
||||
self.zero_c_button.setObjectName("zero_c_button")
|
||||
self.z_axis_dro_layout_10.addWidget(self.zero_c_button)
|
||||
self.dro_entry_c_main = DROLineEdit(self.widget_93)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_c_main.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_c_main.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_c_main.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_entry_c_main.setFocusPolicy(QtCore.Qt.ClickFocus)
|
||||
self.dro_entry_c_main.setStyleSheet("DROLineEdit{\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_c_main.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_c_main.setProperty("referenceType", 1)
|
||||
self.dro_entry_c_main.setProperty("axisNumber", 5)
|
||||
self.dro_entry_c_main.setProperty("latheMode", 0)
|
||||
self.dro_entry_c_main.setObjectName("dro_entry_c_main")
|
||||
self.z_axis_dro_layout_10.addWidget(self.dro_entry_c_main)
|
||||
self.drolabel_machine_c = DROLabel(self.widget_93)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_machine_c.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_machine_c.setSizePolicy(sizePolicy)
|
||||
self.drolabel_machine_c.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.drolabel_machine_c.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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.drolabel_machine_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_machine_c.setProperty("referenceType", 0)
|
||||
self.drolabel_machine_c.setProperty("axisNumber", 5)
|
||||
self.drolabel_machine_c.setProperty("latheMode", 0)
|
||||
self.drolabel_machine_c.setObjectName("drolabel_machine_c")
|
||||
self.z_axis_dro_layout_10.addWidget(self.drolabel_machine_c)
|
||||
self.dro_dtg_c = DROLabel(self.widget_93)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_dtg_c.sizePolicy().hasHeightForWidth())
|
||||
self.dro_dtg_c.setSizePolicy(sizePolicy)
|
||||
self.dro_dtg_c.setMinimumSize(QtCore.QSize(100, 35))
|
||||
self.dro_dtg_c.setStyleSheet("DROLabel{\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;\n"
|
||||
" padding-right: 2px;\n"
|
||||
" font: 17pt \"Bebas Kai\";\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"unhomed\"]{\n"
|
||||
" color: red;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"DROLabel[style=\"homing\"]{\n"
|
||||
" color: rgb(196, 160, 0);\n"
|
||||
"}")
|
||||
self.dro_dtg_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_dtg_c.setProperty("referenceType", 2)
|
||||
self.dro_dtg_c.setProperty("axisNumber", 5)
|
||||
self.dro_dtg_c.setProperty("latheMode", 0)
|
||||
self.dro_dtg_c.setObjectName("dro_dtg_c")
|
||||
self.z_axis_dro_layout_10.addWidget(self.dro_dtg_c)
|
||||
self.ref_c_button = ActionButton(self.widget_93)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.ref_c_button.sizePolicy().hasHeightForWidth())
|
||||
self.ref_c_button.setSizePolicy(sizePolicy)
|
||||
self.ref_c_button.setMinimumSize(QtCore.QSize(60, 40))
|
||||
self.ref_c_button.setMaximumSize(QtCore.QSize(60, 40))
|
||||
self.ref_c_button.setStyleSheet("QPushButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.ref_c_button.setObjectName("ref_c_button")
|
||||
self.z_axis_dro_layout_10.addWidget(self.ref_c_button)
|
||||
self.verticalLayout_55.addWidget(self.widget_93)
|
||||
self.widget = QtWidgets.QWidget(self.widget_xz)
|
||||
self.widget.setObjectName("widget")
|
||||
self.verticalLayout_55.addWidget(self.widget)
|
||||
self.verticalLayout.addWidget(self.widget_xz)
|
||||
|
||||
self.retranslateUi(dros_xzc)
|
||||
QtCore.QMetaObject.connectSlotsByName(dros_xzc)
|
||||
|
||||
def retranslateUi(self, dros_xzc):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
dros_xzc.setWindowTitle(_translate("dros_xzc", "dros_xzc"))
|
||||
self.zero_all_button.setText(_translate("dros_xzc", "ALL"))
|
||||
self.zero_all_button.setProperty("rules", _translate("dros_xzc", "[\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_all_button.setProperty("MDICommand", _translate("dros_xzc", "G10 L20 P{ch[0]} X0.0 Z0.0"))
|
||||
self.work_column_header.setProperty("rules", _translate("dros_xzc", "[{\"channels\": [{\"url\": \"status:g5x_index?text\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"ch[0] + \' WORK\'\\n\", \"name\": \"WCS Header\"}]"))
|
||||
self.machine_column_header.setText(_translate("dros_xzc", "MACHINE"))
|
||||
self.dtg_column_header.setText(_translate("dros_xzc", "DTG"))
|
||||
self.ref_all_button.setText(_translate("dros_xzc", "REF ALL"))
|
||||
self.ref_all_button.setProperty("rules", _translate("dros_xzc", "[{\"channels\": [{\"url\": \"status:all_axes_homed\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'HOMED\' if ch[0] else \'REF ALL\'\", \"name\": \"reference_all\"}, {\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_all_button.setProperty("actionName", _translate("dros_xzc", "machine.home.all"))
|
||||
self.zero_x_button.setText(_translate("dros_xzc", "X RAD"))
|
||||
self.zero_x_button.setProperty("rules", _translate("dros_xzc", "[{\"channels\": [{\"url\": \"status:g5x_index\", \"trigger\": true, \"type\": \"int\"}], \"property\": \"None\", \"expression\": \"\", \"name\": \"G5x Index\"}, {\"channels\": [{\"url\": \"status:gcodes\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\'X DIA\' if \'G7\' in ch[0] else \'X RAD\'\", \"name\": \"diam_rad_mode_display\"}]"))
|
||||
self.zero_x_button.setProperty("MDICommand", _translate("dros_xzc", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.dro_entry_x_main.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_entry_x_main.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_entry_x_main.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.drolabel_machine_x.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.drolabel_machine_x.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.drolabel_machine_x.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.dro_dtg_x.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_dtg_x.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_dtg_x.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.ref_x_button.setText(_translate("dros_xzc", "REF X"))
|
||||
self.ref_x_button.setProperty("rules", _translate("dros_xzc", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.3.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_x_button.setProperty("actionName", _translate("dros_xzc", "machine.home.axis:x"))
|
||||
self.zero_z_button.setText(_translate("dros_xzc", "Z"))
|
||||
self.zero_z_button.setProperty("rules", _translate("dros_xzc", "[\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.setProperty("MDICommand", _translate("dros_xzc", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.dro_entry_z_main.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_entry_z_main.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_entry_z_main.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.drolabel_machine_z.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.drolabel_machine_z.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.drolabel_machine_z.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.dro_dtg_z.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_dtg_z.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_dtg_z.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.ref_z_button.setText(_translate("dros_xzc", "REF Z"))
|
||||
self.ref_z_button.setProperty("rules", _translate("dros_xzc", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_z_button.setProperty("actionName", _translate("dros_xzc", "machine.home.axis:z"))
|
||||
self.zero_c_button.setText(_translate("dros_xzc", "C"))
|
||||
self.zero_c_button.setProperty("rules", _translate("dros_xzc", "[\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_c_button.setProperty("MDICommand", _translate("dros_xzc", "G10 L20 P{ch[0]} C0.0"))
|
||||
self.dro_entry_c_main.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_entry_c_main.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_entry_c_main.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.drolabel_machine_c.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.drolabel_machine_c.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.drolabel_machine_c.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.dro_dtg_c.setProperty("inchFormat", _translate("dros_xzc", "%9.4f"))
|
||||
self.dro_dtg_c.setProperty("millimeterFormat", _translate("dros_xzc", "%10.3f"))
|
||||
self.dro_dtg_c.setProperty("degreeFormat", _translate("dros_xzc", "%10.2f"))
|
||||
self.ref_c_button.setText(_translate("dros_xzc", "REF C"))
|
||||
self.ref_c_button.setProperty("rules", _translate("dros_xzc", "[{\"name\": \"home_inhibit\", \"property\": \"Enable\", \"expression\": \"not (ch[0] or ch[1] or ch[2])\", \"channels\": [{\"url\": \"status:joint.0.homing\", \"trigger\": true}, {\"url\": \"status:joint.1.homing\", \"trigger\": true}, {\"url\": \"status:joint.2.homing\", \"trigger\": true}]}]"))
|
||||
self.ref_c_button.setProperty("actionName", _translate("dros_xzc", "machine.home.axis:c"))
|
||||
from qtpyvcp.widgets.button_widgets.action_button import ActionButton
|
||||
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_lathe_rc
|
||||
import probe_basic_rc
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,561 @@
|
||||
# -*- 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/probe_basic_lathe/user_dro_display/xzc_dros/offset_dros_xzc.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_xzc(object):
|
||||
def setupUi(self, offset_dros_xzc):
|
||||
offset_dros_xzc.setObjectName("offset_dros_xzc")
|
||||
offset_dros_xzc.resize(493, 178)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(offset_dros_xzc.sizePolicy().hasHeightForWidth())
|
||||
offset_dros_xzc.setSizePolicy(sizePolicy)
|
||||
offset_dros_xzc.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(offset_dros_xzc)
|
||||
self.verticalLayout.setSpacing(15)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.x_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.x_axis_dro_layout.setContentsMargins(-1, 6, -1, 6)
|
||||
self.x_axis_dro_layout.setSpacing(12)
|
||||
self.x_axis_dro_layout.setObjectName("x_axis_dro_layout")
|
||||
self.zero_x_button_offset = MDIButton(offset_dros_xzc)
|
||||
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.addWidget(self.zero_x_button_offset)
|
||||
self.axis_label_x = QtWidgets.QLabel(offset_dros_xzc)
|
||||
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.addWidget(self.axis_label_x)
|
||||
self.dro_entry_offset_x = DROLineEdit(offset_dros_xzc)
|
||||
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.addWidget(self.dro_entry_offset_x)
|
||||
self.drolabel_work_x = DROLabel(offset_dros_xzc)
|
||||
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.addWidget(self.drolabel_work_x)
|
||||
self.work_offset_x = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.work_offset_x)
|
||||
self.g52_g92_x = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.g52_g92_x)
|
||||
self.tool_offset_x = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.tool_offset_x)
|
||||
self.verticalLayout.addLayout(self.x_axis_dro_layout)
|
||||
self.z_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.z_axis_dro_layout.setContentsMargins(-1, 1, -1, 1)
|
||||
self.z_axis_dro_layout.setSpacing(12)
|
||||
self.z_axis_dro_layout.setObjectName("z_axis_dro_layout")
|
||||
self.zero_z_button_offset = MDIButton(offset_dros_xzc)
|
||||
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.addWidget(self.zero_z_button_offset)
|
||||
self.axis_label_z = QtWidgets.QLabel(offset_dros_xzc)
|
||||
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.addWidget(self.axis_label_z)
|
||||
self.dro_entry_offset_z = DROLineEdit(offset_dros_xzc)
|
||||
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.addWidget(self.dro_entry_offset_z)
|
||||
self.drolabel_work_z = DROLabel(offset_dros_xzc)
|
||||
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.addWidget(self.drolabel_work_z)
|
||||
self.work_offset_z = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.work_offset_z)
|
||||
self.g52_g92_z = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.g52_g92_z)
|
||||
self.tool_offset_z = StatusLabel(offset_dros_xzc)
|
||||
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.addWidget(self.tool_offset_z)
|
||||
self.verticalLayout.addLayout(self.z_axis_dro_layout)
|
||||
self.c_axis_dro_layout = QtWidgets.QHBoxLayout()
|
||||
self.c_axis_dro_layout.setContentsMargins(-1, 1, -1, 1)
|
||||
self.c_axis_dro_layout.setSpacing(12)
|
||||
self.c_axis_dro_layout.setObjectName("c_axis_dro_layout")
|
||||
self.zero_c_button_offset = MDIButton(offset_dros_xzc)
|
||||
self.zero_c_button_offset.setEnabled(False)
|
||||
self.zero_c_button_offset.setMinimumSize(QtCore.QSize(55, 38))
|
||||
self.zero_c_button_offset.setMaximumSize(QtCore.QSize(55, 38))
|
||||
self.zero_c_button_offset.setFocusPolicy(QtCore.Qt.NoFocus)
|
||||
self.zero_c_button_offset.setStyleSheet("MDIButton {\n"
|
||||
" font: 15pt \"Bebas Kai\";\n"
|
||||
"}")
|
||||
self.zero_c_button_offset.setObjectName("zero_c_button_offset")
|
||||
self.c_axis_dro_layout.addWidget(self.zero_c_button_offset)
|
||||
self.axis_label_c = QtWidgets.QLabel(offset_dros_xzc)
|
||||
self.axis_label_c.setMinimumSize(QtCore.QSize(45, 35))
|
||||
self.axis_label_c.setMaximumSize(QtCore.QSize(45, 35))
|
||||
self.axis_label_c.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_c.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.axis_label_c.setObjectName("axis_label_c")
|
||||
self.c_axis_dro_layout.addWidget(self.axis_label_c)
|
||||
self.dro_entry_offset_c = DROLineEdit(offset_dros_xzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.dro_entry_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.dro_entry_offset_c.setSizePolicy(sizePolicy)
|
||||
self.dro_entry_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.dro_entry_offset_c.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_c.setFont(font)
|
||||
self.dro_entry_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.dro_entry_offset_c.setProperty("axisNumber", 5)
|
||||
self.dro_entry_offset_c.setObjectName("dro_entry_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.dro_entry_offset_c)
|
||||
self.drolabel_work_c = DROLabel(offset_dros_xzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.drolabel_work_c.sizePolicy().hasHeightForWidth())
|
||||
self.drolabel_work_c.setSizePolicy(sizePolicy)
|
||||
self.drolabel_work_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.drolabel_work_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.drolabel_work_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.drolabel_work_c.setProperty("referenceType", 0)
|
||||
self.drolabel_work_c.setProperty("axisNumber", 5)
|
||||
self.drolabel_work_c.setProperty("latheMode", 0)
|
||||
self.drolabel_work_c.setObjectName("drolabel_work_c")
|
||||
self.c_axis_dro_layout.addWidget(self.drolabel_work_c)
|
||||
self.work_offset_c = StatusLabel(offset_dros_xzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.work_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.work_offset_c.setSizePolicy(sizePolicy)
|
||||
self.work_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.work_offset_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.work_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.work_offset_c.setObjectName("work_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.work_offset_c)
|
||||
self.g52_g92_c = StatusLabel(offset_dros_xzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.g52_g92_c.sizePolicy().hasHeightForWidth())
|
||||
self.g52_g92_c.setSizePolicy(sizePolicy)
|
||||
self.g52_g92_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.g52_g92_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.g52_g92_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.g52_g92_c.setObjectName("g52_g92_c")
|
||||
self.c_axis_dro_layout.addWidget(self.g52_g92_c)
|
||||
self.tool_offset_c = StatusLabel(offset_dros_xzc)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(1)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.tool_offset_c.sizePolicy().hasHeightForWidth())
|
||||
self.tool_offset_c.setSizePolicy(sizePolicy)
|
||||
self.tool_offset_c.setMinimumSize(QtCore.QSize(0, 38))
|
||||
self.tool_offset_c.setMaximumSize(QtCore.QSize(16777215, 38))
|
||||
self.tool_offset_c.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_c.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||||
self.tool_offset_c.setObjectName("tool_offset_c")
|
||||
self.c_axis_dro_layout.addWidget(self.tool_offset_c)
|
||||
self.verticalLayout.addLayout(self.c_axis_dro_layout)
|
||||
|
||||
self.retranslateUi(offset_dros_xzc)
|
||||
QtCore.QMetaObject.connectSlotsByName(offset_dros_xzc)
|
||||
|
||||
def retranslateUi(self, offset_dros_xzc):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
offset_dros_xzc.setWindowTitle(_translate("offset_dros_xzc", "offset_dros_xzc"))
|
||||
self.zero_x_button_offset.setText(_translate("offset_dros_xzc", "ZERO"))
|
||||
self.zero_x_button_offset.setProperty("rules", _translate("offset_dros_xzc", "[\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_xzc", "G10 L20 P{ch[0]} X0.0"))
|
||||
self.axis_label_x.setText(_translate("offset_dros_xzc", "X"))
|
||||
self.drolabel_work_x.setProperty("inchFormat", _translate("offset_dros_xzc", "%9.4f"))
|
||||
self.drolabel_work_x.setProperty("millimeterFormat", _translate("offset_dros_xzc", "%10.3f"))
|
||||
self.drolabel_work_x.setProperty("degreeFormat", _translate("offset_dros_xzc", "%10.2f"))
|
||||
self.work_offset_x.setProperty("rules", _translate("offset_dros_xzc", "[{\"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_xzc", "[{\"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_xzc", "[{\"channels\": [{\"trigger\": true, \"type\": \"tuple\", \"url\": \"status:tool_offset\"}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][0])\", \"name\": \"New Rule\"}]"))
|
||||
self.zero_z_button_offset.setText(_translate("offset_dros_xzc", "ZERO"))
|
||||
self.zero_z_button_offset.setProperty("rules", _translate("offset_dros_xzc", "[\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_xzc", "G10 L20 P{ch[0]} Z0.0"))
|
||||
self.axis_label_z.setText(_translate("offset_dros_xzc", "Z"))
|
||||
self.drolabel_work_z.setProperty("inchFormat", _translate("offset_dros_xzc", "%9.4f"))
|
||||
self.drolabel_work_z.setProperty("millimeterFormat", _translate("offset_dros_xzc", "%10.3f"))
|
||||
self.drolabel_work_z.setProperty("degreeFormat", _translate("offset_dros_xzc", "%10.2f"))
|
||||
self.work_offset_z.setProperty("rules", _translate("offset_dros_xzc", "[{\"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_xzc", "[{\"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_xzc", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][2])\", \"name\": \"tool offset\"}]"))
|
||||
self.zero_c_button_offset.setText(_translate("offset_dros_xzc", "ZERO"))
|
||||
self.zero_c_button_offset.setProperty("rules", _translate("offset_dros_xzc", "[\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_c_button_offset.setProperty("MDICommand", _translate("offset_dros_xzc", "G10 L20 P{ch[0]} C0.0"))
|
||||
self.axis_label_c.setText(_translate("offset_dros_xzc", "C"))
|
||||
self.drolabel_work_c.setProperty("inchFormat", _translate("offset_dros_xzc", "%9.4f"))
|
||||
self.drolabel_work_c.setProperty("millimeterFormat", _translate("offset_dros_xzc", "%10.3f"))
|
||||
self.drolabel_work_c.setProperty("degreeFormat", _translate("offset_dros_xzc", "%10.2f"))
|
||||
self.work_offset_c.setProperty("rules", _translate("offset_dros_xzc", "[{\"channels\": [{\"url\": \"status:g5x_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]"))
|
||||
self.g52_g92_c.setProperty("rules", _translate("offset_dros_xzc", "[{\"channels\": [{\"url\": \"status:g92_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"New Rule\"}]"))
|
||||
self.tool_offset_c.setProperty("rules", _translate("offset_dros_xzc", "[{\"channels\": [{\"url\": \"status:tool_offset\", \"trigger\": true}], \"property\": \"Text\", \"expression\": \"\\\"{:.4f}\\\".format(ch[0][5])\", \"name\": \"tool offset\"}]"))
|
||||
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
|
||||
Reference in New Issue
Block a user