9 #ifndef UI_PQHANDLEPROPERTYWIDGET_H 10 #define UI_PQHANDLEPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QWidget> 36 void setupUi(QWidget *HandlePropertyWidget)
38 if (HandlePropertyWidget->objectName().isEmpty())
39 HandlePropertyWidget->setObjectName(QString::fromUtf8(
"HandlePropertyWidget"));
40 HandlePropertyWidget->resize(412, 127);
41 gridLayout =
new QGridLayout(HandlePropertyWidget);
42 gridLayout->setSpacing(2);
43 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
44 gridLayout->setContentsMargins(0, 0, 0, 0);
46 worldPositionY->setObjectName(QString::fromUtf8(
"worldPositionY"));
48 gridLayout->addWidget(worldPositionY, 1, 2, 1, 1);
50 show3DWidget =
new QCheckBox(HandlePropertyWidget);
51 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
52 show3DWidget->setChecked(
true);
54 gridLayout->addWidget(show3DWidget, 0, 0, 1, 2);
57 worldPositionZ->setObjectName(QString::fromUtf8(
"worldPositionZ"));
59 gridLayout->addWidget(worldPositionZ, 1, 3, 1, 1);
61 useCenterBounds =
new QPushButton(HandlePropertyWidget);
62 useCenterBounds->setObjectName(QString::fromUtf8(
"useCenterBounds"));
64 gridLayout->addWidget(useCenterBounds, 3, 0, 1, 4);
66 pickLabel =
new QLabel(HandlePropertyWidget);
67 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
71 pickLabel->setFont(font);
72 pickLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
73 pickLabel->setWordWrap(
true);
75 gridLayout->addWidget(pickLabel, 2, 0, 1, 4);
77 useSelectionCenter =
new QPushButton(HandlePropertyWidget);
78 useSelectionCenter->setObjectName(QString::fromUtf8(
"useSelectionCenter"));
80 gridLayout->addWidget(useSelectionCenter, 4, 0, 1, 4);
82 pointLabel =
new QLabel(HandlePropertyWidget);
83 pointLabel->setObjectName(QString::fromUtf8(
"pointLabel"));
85 gridLayout->addWidget(pointLabel, 1, 0, 1, 1);
88 worldPositionX->setObjectName(QString::fromUtf8(
"worldPositionX"));
90 gridLayout->addWidget(worldPositionX, 1, 1, 1, 1);
92 QWidget::setTabOrder(show3DWidget, worldPositionX);
93 QWidget::setTabOrder(worldPositionX, worldPositionY);
94 QWidget::setTabOrder(worldPositionY, worldPositionZ);
95 QWidget::setTabOrder(worldPositionZ, useCenterBounds);
96 QWidget::setTabOrder(useCenterBounds, useSelectionCenter);
100 QMetaObject::connectSlotsByName(HandlePropertyWidget);
105 HandlePropertyWidget->setWindowTitle(QCoreApplication::translate(
"HandlePropertyWidget",
"Form",
nullptr));
106 show3DWidget->setText(QCoreApplication::translate(
"HandlePropertyWidget",
"Show Point",
nullptr));
107 useCenterBounds->setText(QCoreApplication::translate(
"HandlePropertyWidget",
"Center on Bounds",
nullptr));
108 pickLabel->setText(QCoreApplication::translate(
"HandlePropertyWidget",
"Note: Use 'P' to pick '%1' on mesh or 'Ctrl+P' to snap to the closest mesh point",
nullptr));
109 useSelectionCenter->setText(QCoreApplication::translate(
"HandlePropertyWidget",
"Center on Selection",
nullptr));
110 pointLabel->setText(QCoreApplication::translate(
"HandlePropertyWidget",
"Point",
nullptr));
121 #endif // UI_PQHANDLEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive