9 #ifndef UI_PQSPHEREPROPERTYWIDGET_H 10 #define UI_PQSPHEREPROPERTYWIDGET_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> 41 void setupUi(QWidget *SpherePropertyWidget)
43 if (SpherePropertyWidget->objectName().isEmpty())
44 SpherePropertyWidget->setObjectName(QString::fromUtf8(
"SpherePropertyWidget"));
45 SpherePropertyWidget->resize(402, 157);
46 gridLayout =
new QGridLayout(SpherePropertyWidget);
47 gridLayout->setSpacing(2);
48 gridLayout->setContentsMargins(0, 0, 0, 0);
49 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
50 show3DWidget =
new QCheckBox(SpherePropertyWidget);
51 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
52 show3DWidget->setChecked(
true);
54 gridLayout->addWidget(show3DWidget, 0, 0, 1, 2);
56 centerLabel =
new QLabel(SpherePropertyWidget);
57 centerLabel->setObjectName(QString::fromUtf8(
"centerLabel"));
59 gridLayout->addWidget(centerLabel, 1, 0, 1, 1);
62 centerX->setObjectName(QString::fromUtf8(
"centerX"));
64 gridLayout->addWidget(centerX, 1, 1, 1, 1);
67 centerY->setObjectName(QString::fromUtf8(
"centerY"));
69 gridLayout->addWidget(centerY, 1, 2, 1, 1);
72 centerZ->setObjectName(QString::fromUtf8(
"centerZ"));
74 gridLayout->addWidget(centerZ, 1, 3, 1, 1);
76 normalLabel =
new QLabel(SpherePropertyWidget);
77 normalLabel->setObjectName(QString::fromUtf8(
"normalLabel"));
79 gridLayout->addWidget(normalLabel, 2, 0, 1, 1);
82 normalX->setObjectName(QString::fromUtf8(
"normalX"));
84 gridLayout->addWidget(normalX, 2, 1, 1, 1);
87 normalY->setObjectName(QString::fromUtf8(
"normalY"));
89 gridLayout->addWidget(normalY, 2, 2, 1, 1);
92 normalZ->setObjectName(QString::fromUtf8(
"normalZ"));
94 gridLayout->addWidget(normalZ, 2, 3, 1, 1);
96 radiusLabel =
new QLabel(SpherePropertyWidget);
97 radiusLabel->setObjectName(QString::fromUtf8(
"radiusLabel"));
99 gridLayout->addWidget(radiusLabel, 3, 0, 1, 1);
102 radius->setObjectName(QString::fromUtf8(
"radius"));
104 gridLayout->addWidget(radius, 3, 1, 1, 1);
106 pickLabel =
new QLabel(SpherePropertyWidget);
107 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
111 pickLabel->setFont(font);
112 pickLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
113 pickLabel->setWordWrap(
true);
115 gridLayout->addWidget(pickLabel, 4, 0, 1, 4);
117 centerOnBounds =
new QPushButton(SpherePropertyWidget);
118 centerOnBounds->setObjectName(QString::fromUtf8(
"centerOnBounds"));
120 gridLayout->addWidget(centerOnBounds, 5, 0, 1, 4);
125 QMetaObject::connectSlotsByName(SpherePropertyWidget);
130 SpherePropertyWidget->setWindowTitle(QCoreApplication::translate(
"SpherePropertyWidget",
"Form",
nullptr));
131 #if QT_CONFIG(tooltip) 132 show3DWidget->setToolTip(QCoreApplication::translate(
"SpherePropertyWidget",
"Enable/disable showing the interactive sphere widget in the 3D render view.",
nullptr));
133 #endif // QT_CONFIG(tooltip) 134 show3DWidget->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Show Sphere",
nullptr));
135 centerLabel->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Center",
nullptr));
136 normalLabel->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Normal",
nullptr));
137 radiusLabel->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Radius",
nullptr));
138 pickLabel->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Note: Use 'P' to a '%1' on mesh or 'Ctrl+P' to snap to the closest mesh point",
nullptr));
139 centerOnBounds->setText(QCoreApplication::translate(
"SpherePropertyWidget",
"Center on Bounds",
nullptr));
150 #endif // UI_PQSPHEREPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive