9 #ifndef UI_PQLINEPROPERTYWIDGET_H 10 #define UI_PQLINEPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QWidget> 47 if (LinePropertyWidget->objectName().isEmpty())
48 LinePropertyWidget->setObjectName(QString::fromUtf8(
"LinePropertyWidget"));
49 LinePropertyWidget->resize(379, 189);
50 gridLayout =
new QGridLayout(LinePropertyWidget);
51 gridLayout->setSpacing(2);
52 gridLayout->setContentsMargins(0, 0, 0, 0);
53 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
54 labelPoint1 =
new QLabel(LinePropertyWidget);
55 labelPoint1->setObjectName(QString::fromUtf8(
"labelPoint1"));
56 labelPoint1->setWordWrap(
true);
58 gridLayout->addWidget(labelPoint1, 3, 0, 1, 1);
61 point1X->setObjectName(QString::fromUtf8(
"point1X"));
63 gridLayout->addWidget(point1X, 3, 1, 1, 1);
66 point1Y->setObjectName(QString::fromUtf8(
"point1Y"));
68 gridLayout->addWidget(point1Y, 3, 2, 1, 1);
71 point1Z->setObjectName(QString::fromUtf8(
"point1Z"));
73 gridLayout->addWidget(point1Z, 3, 3, 1, 1);
75 labelPoint2 =
new QLabel(LinePropertyWidget);
76 labelPoint2->setObjectName(QString::fromUtf8(
"labelPoint2"));
77 labelPoint2->setWordWrap(
true);
79 gridLayout->addWidget(labelPoint2, 4, 0, 1, 1);
82 point2X->setObjectName(QString::fromUtf8(
"point2X"));
84 gridLayout->addWidget(point2X, 4, 1, 1, 1);
87 point2Y->setObjectName(QString::fromUtf8(
"point2Y"));
89 gridLayout->addWidget(point2Y, 4, 2, 1, 1);
92 point2Z->setObjectName(QString::fromUtf8(
"point2Z"));
94 gridLayout->addWidget(point2Z, 4, 3, 1, 1);
96 pickLabel =
new QLabel(LinePropertyWidget);
97 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
101 pickLabel->setFont(font);
102 pickLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
103 pickLabel->setWordWrap(
true);
105 gridLayout->addWidget(pickLabel, 5, 0, 1, 4);
107 horizontalLayout =
new QHBoxLayout();
108 horizontalLayout->setSpacing(2);
109 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
110 xAxis =
new QPushButton(LinePropertyWidget);
111 xAxis->setObjectName(QString::fromUtf8(
"xAxis"));
113 horizontalLayout->addWidget(xAxis);
115 yAxis =
new QPushButton(LinePropertyWidget);
116 yAxis->setObjectName(QString::fromUtf8(
"yAxis"));
118 horizontalLayout->addWidget(yAxis);
120 zAxis =
new QPushButton(LinePropertyWidget);
121 zAxis->setObjectName(QString::fromUtf8(
"zAxis"));
123 horizontalLayout->addWidget(zAxis);
126 gridLayout->addLayout(horizontalLayout, 6, 0, 1, 4);
128 centerOnBounds =
new QPushButton(LinePropertyWidget);
129 centerOnBounds->setObjectName(QString::fromUtf8(
"centerOnBounds"));
131 gridLayout->addWidget(centerOnBounds, 7, 0, 1, 4);
133 show3DWidget =
new QCheckBox(LinePropertyWidget);
134 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
135 show3DWidget->setChecked(
true);
137 gridLayout->addWidget(show3DWidget, 2, 0, 1, 3);
139 labelLength =
new QLabel(LinePropertyWidget);
140 labelLength->setObjectName(QString::fromUtf8(
"labelLength"));
142 gridLayout->addWidget(labelLength, 1, 0, 1, 4);
147 QMetaObject::connectSlotsByName(LinePropertyWidget);
152 LinePropertyWidget->setWindowTitle(QCoreApplication::translate(
"LinePropertyWidget",
"Form",
nullptr));
153 labelPoint1->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Point 1",
nullptr));
154 labelPoint2->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Point 2",
nullptr));
155 pickLabel->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Note: Use 'P' to place alternating points on mesh or 'Ctrl+P' to snap to the closest mesh point. Use '1'/'Ctrl+1' for point 1 and '2'/'Ctrl+2' for point 2.",
nullptr));
156 xAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"X Axis",
nullptr));
157 yAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Y Axis",
nullptr));
158 zAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Z Axis",
nullptr));
159 centerOnBounds->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Center on Bounds",
nullptr));
160 show3DWidget->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Show Line",
nullptr));
161 labelLength->setText(QCoreApplication::translate(
"LinePropertyWidget",
"<html><head/><body><p><span style=\" font-weight:600;\">Length: </span><span style=\" font-style:italic;\">na</span></p></body></html>",
nullptr));
172 #endif // UI_PQLINEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive