9 #ifndef UI_PQANGLEPROPERTYWIDGET_H 10 #define UI_PQANGLEPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QWidget> 42 void setupUi(QWidget *AnglePropertyWidget)
44 if (AnglePropertyWidget->objectName().isEmpty())
45 AnglePropertyWidget->setObjectName(QString::fromUtf8(
"AnglePropertyWidget"));
46 AnglePropertyWidget->resize(379, 189);
47 gridLayout =
new QGridLayout(AnglePropertyWidget);
48 gridLayout->setSpacing(2);
49 gridLayout->setContentsMargins(0, 0, 0, 0);
50 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
51 labelAngle =
new QLabel(AnglePropertyWidget);
52 labelAngle->setObjectName(QString::fromUtf8(
"labelAngle"));
55 labelAngle->setFont(font);
57 gridLayout->addWidget(labelAngle, 1, 0, 1, 4);
59 show3DWidget =
new QCheckBox(AnglePropertyWidget);
60 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
61 show3DWidget->setChecked(
true);
63 gridLayout->addWidget(show3DWidget, 2, 0, 1, 3);
65 labelPoint1 =
new QLabel(AnglePropertyWidget);
66 labelPoint1->setObjectName(QString::fromUtf8(
"labelPoint1"));
67 labelPoint1->setWordWrap(
true);
69 gridLayout->addWidget(labelPoint1, 3, 0, 1, 1);
72 point1X->setObjectName(QString::fromUtf8(
"point1X"));
74 gridLayout->addWidget(point1X, 3, 1, 1, 1);
77 point1Y->setObjectName(QString::fromUtf8(
"point1Y"));
79 gridLayout->addWidget(point1Y, 3, 2, 1, 1);
82 point1Z->setObjectName(QString::fromUtf8(
"point1Z"));
84 gridLayout->addWidget(point1Z, 3, 3, 1, 1);
86 labelCenter =
new QLabel(AnglePropertyWidget);
87 labelCenter->setObjectName(QString::fromUtf8(
"labelCenter"));
88 labelCenter->setWordWrap(
true);
90 gridLayout->addWidget(labelCenter, 4, 0, 1, 1);
93 centerX->setObjectName(QString::fromUtf8(
"centerX"));
95 gridLayout->addWidget(centerX, 4, 1, 1, 1);
98 centerY->setObjectName(QString::fromUtf8(
"centerY"));
100 gridLayout->addWidget(centerY, 4, 2, 1, 1);
103 centerZ->setObjectName(QString::fromUtf8(
"centerZ"));
105 gridLayout->addWidget(centerZ, 4, 3, 1, 1);
107 labelPoint2 =
new QLabel(AnglePropertyWidget);
108 labelPoint2->setObjectName(QString::fromUtf8(
"labelPoint2"));
109 labelPoint2->setWordWrap(
true);
111 gridLayout->addWidget(labelPoint2, 5, 0, 1, 1);
114 point2X->setObjectName(QString::fromUtf8(
"point2X"));
116 gridLayout->addWidget(point2X, 5, 1, 1, 1);
119 point2Y->setObjectName(QString::fromUtf8(
"point2Y"));
121 gridLayout->addWidget(point2Y, 5, 2, 1, 1);
124 point2Z->setObjectName(QString::fromUtf8(
"point2Z"));
126 gridLayout->addWidget(point2Z, 5, 3, 1, 1);
128 pickLabel =
new QLabel(AnglePropertyWidget);
129 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
133 pickLabel->setFont(font1);
134 pickLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
135 pickLabel->setWordWrap(
true);
137 gridLayout->addWidget(pickLabel, 6, 0, 1, 4);
142 QMetaObject::connectSlotsByName(AnglePropertyWidget);
147 AnglePropertyWidget->setWindowTitle(QCoreApplication::translate(
"AnglePropertyWidget",
"Form",
nullptr));
148 labelAngle->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Angle: ",
nullptr));
149 show3DWidget->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Show Widget",
nullptr));
150 labelPoint1->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Point 1",
nullptr));
151 labelCenter->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Center",
nullptr));
152 labelPoint2->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Point 2",
nullptr));
153 pickLabel->setText(QCoreApplication::translate(
"AnglePropertyWidget",
"Note: Use '1'/'C'/'2' to place P1/Center/P2 on a mesh respectively. Combine with 'Ctrl' to snap to the closest mesh point.\n" 154 "Use 'X'/'Y'/'Z' to constrain the movement to the X / Y / Z axis respectively.",
nullptr));
165 #endif // UI_PQANGLEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive