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> 48 if (LinePropertyWidget->objectName().isEmpty())
49 LinePropertyWidget->setObjectName(QString::fromUtf8(
"LinePropertyWidget"));
50 LinePropertyWidget->resize(379, 189);
51 gridLayout =
new QGridLayout(LinePropertyWidget);
52 gridLayout->setSpacing(2);
53 gridLayout->setContentsMargins(0, 0, 0, 0);
54 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
55 labelPoint1 =
new QLabel(LinePropertyWidget);
56 labelPoint1->setObjectName(QString::fromUtf8(
"labelPoint1"));
57 labelPoint1->setWordWrap(
true);
59 gridLayout->addWidget(labelPoint1, 3, 0, 1, 1);
62 point1X->setObjectName(QString::fromUtf8(
"point1X"));
64 gridLayout->addWidget(point1X, 3, 1, 1, 1);
67 point1Y->setObjectName(QString::fromUtf8(
"point1Y"));
69 gridLayout->addWidget(point1Y, 3, 2, 1, 1);
72 point1Z->setObjectName(QString::fromUtf8(
"point1Z"));
74 gridLayout->addWidget(point1Z, 3, 3, 1, 1);
76 labelPoint2 =
new QLabel(LinePropertyWidget);
77 labelPoint2->setObjectName(QString::fromUtf8(
"labelPoint2"));
78 labelPoint2->setWordWrap(
true);
80 gridLayout->addWidget(labelPoint2, 4, 0, 1, 1);
83 point2X->setObjectName(QString::fromUtf8(
"point2X"));
85 gridLayout->addWidget(point2X, 4, 1, 1, 1);
88 point2Y->setObjectName(QString::fromUtf8(
"point2Y"));
90 gridLayout->addWidget(point2Y, 4, 2, 1, 1);
93 point2Z->setObjectName(QString::fromUtf8(
"point2Z"));
95 gridLayout->addWidget(point2Z, 4, 3, 1, 1);
97 flipP2 =
new QPushButton(LinePropertyWidget);
98 flipP2->setObjectName(QString::fromUtf8(
"flipP2"));
100 gridLayout->addWidget(flipP2, 5, 1, 1, 3);
102 pickLabel =
new QLabel(LinePropertyWidget);
103 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
107 pickLabel->setFont(font);
108 pickLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
109 pickLabel->setWordWrap(
true);
111 gridLayout->addWidget(pickLabel, 6, 0, 1, 4);
113 horizontalLayout =
new QHBoxLayout();
114 horizontalLayout->setSpacing(2);
115 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
116 xAxis =
new QPushButton(LinePropertyWidget);
117 xAxis->setObjectName(QString::fromUtf8(
"xAxis"));
119 horizontalLayout->addWidget(xAxis);
121 yAxis =
new QPushButton(LinePropertyWidget);
122 yAxis->setObjectName(QString::fromUtf8(
"yAxis"));
124 horizontalLayout->addWidget(yAxis);
126 zAxis =
new QPushButton(LinePropertyWidget);
127 zAxis->setObjectName(QString::fromUtf8(
"zAxis"));
129 horizontalLayout->addWidget(zAxis);
132 gridLayout->addLayout(horizontalLayout, 7, 0, 1, 4);
134 centerOnBounds =
new QPushButton(LinePropertyWidget);
135 centerOnBounds->setObjectName(QString::fromUtf8(
"centerOnBounds"));
137 gridLayout->addWidget(centerOnBounds, 8, 0, 1, 4);
139 show3DWidget =
new QCheckBox(LinePropertyWidget);
140 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
141 show3DWidget->setChecked(
true);
143 gridLayout->addWidget(show3DWidget, 2, 0, 1, 3);
145 labelLength =
new QLabel(LinePropertyWidget);
146 labelLength->setObjectName(QString::fromUtf8(
"labelLength"));
149 labelLength->setFont(font1);
151 gridLayout->addWidget(labelLength, 1, 0, 1, 4);
156 QMetaObject::connectSlotsByName(LinePropertyWidget);
161 LinePropertyWidget->setWindowTitle(QCoreApplication::translate(
"LinePropertyWidget",
"Form",
nullptr));
162 labelPoint1->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Point 1",
nullptr));
163 labelPoint2->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Point 2",
nullptr));
164 flipP2->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Flip Vector",
nullptr));
165 pickLabel->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Note: Use 'P' to place alternating points on mesh or 'Ctrl+P' to snap to the closest mesh point.\n" 166 "Use '1'/'Ctrl+1' for point 1 and '2'/'Ctrl+2' for point 2.\n" 167 "Use 'N' to place P1 on the mesh and make P1-P2 be the normal at the surface.\n" 168 "Use 'X'/'Y'/'Z'/'L' to constrain the movement to the X / Y / Z / Line axis respectively.",
nullptr));
169 xAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"X Axis",
nullptr));
170 yAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Y Axis",
nullptr));
171 zAxis->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Z Axis",
nullptr));
172 centerOnBounds->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Center on Bounds",
nullptr));
173 show3DWidget->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Show Line",
nullptr));
174 labelLength->setText(QCoreApplication::translate(
"LinePropertyWidget",
"Length: ",
nullptr));
185 #endif // UI_PQLINEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive