9 #ifndef UI_PQCYLINDERPROPERTYWIDGET_H 10 #define UI_PQCYLINDERPROPERTYWIDGET_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> 50 void setupUi(QWidget *CylinderPropertyWidget)
52 if (CylinderPropertyWidget->objectName().isEmpty())
53 CylinderPropertyWidget->setObjectName(QString::fromUtf8(
"CylinderPropertyWidget"));
54 CylinderPropertyWidget->resize(372, 357);
55 layout1 =
new QGridLayout(CylinderPropertyWidget);
56 layout1->setSpacing(2);
57 layout1->setContentsMargins(0, 0, 0, 0);
58 layout1->setObjectName(QString::fromUtf8(
"layout1"));
59 show3DWidget =
new QCheckBox(CylinderPropertyWidget);
60 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
61 show3DWidget->setChecked(
true);
63 layout1->addWidget(show3DWidget, 0, 0, 1, 2);
65 gridLayout1 =
new QGridLayout();
66 gridLayout1->setSpacing(2);
67 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
68 outlineTranslation =
new QCheckBox(CylinderPropertyWidget);
69 outlineTranslation->setObjectName(QString::fromUtf8(
"outlineTranslation"));
71 gridLayout1->addWidget(outlineTranslation, 0, 0, 1, 1);
73 scaling =
new QCheckBox(CylinderPropertyWidget);
74 scaling->setObjectName(QString::fromUtf8(
"scaling"));
76 gridLayout1->addWidget(scaling, 0, 1, 1, 1);
79 layout1->addLayout(gridLayout1, 7, 0, 1, 2);
81 gridLayout2 =
new QGridLayout();
82 gridLayout2->setSpacing(2);
83 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
85 centerY->setObjectName(QString::fromUtf8(
"centerY"));
87 gridLayout2->addWidget(centerY, 0, 2, 1, 1);
89 radiusLabel =
new QLabel(CylinderPropertyWidget);
90 radiusLabel->setObjectName(QString::fromUtf8(
"radiusLabel"));
92 gridLayout2->addWidget(radiusLabel, 2, 0, 1, 1);
95 axisY->setObjectName(QString::fromUtf8(
"axisY"));
97 gridLayout2->addWidget(axisY, 1, 2, 1, 1);
99 axisLabel =
new QLabel(CylinderPropertyWidget);
100 axisLabel->setObjectName(QString::fromUtf8(
"axisLabel"));
102 gridLayout2->addWidget(axisLabel, 1, 0, 1, 1);
105 axisX->setObjectName(QString::fromUtf8(
"axisX"));
107 gridLayout2->addWidget(axisX, 1, 1, 1, 1);
110 radius->setObjectName(QString::fromUtf8(
"radius"));
112 gridLayout2->addWidget(radius, 2, 1, 1, 1);
115 axisZ->setObjectName(QString::fromUtf8(
"axisZ"));
117 gridLayout2->addWidget(axisZ, 1, 3, 1, 1);
119 centerLabel =
new QLabel(CylinderPropertyWidget);
120 centerLabel->setObjectName(QString::fromUtf8(
"centerLabel"));
122 gridLayout2->addWidget(centerLabel, 0, 0, 1, 1);
125 centerX->setObjectName(QString::fromUtf8(
"centerX"));
127 gridLayout2->addWidget(centerX, 0, 1, 1, 1);
130 centerZ->setObjectName(QString::fromUtf8(
"centerZ"));
132 gridLayout2->addWidget(centerZ, 0, 3, 1, 1);
135 layout1->addLayout(gridLayout2, 5, 0, 1, 2);
137 gridLayout3 =
new QGridLayout();
138 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
139 useXAxis =
new QPushButton(CylinderPropertyWidget);
140 useXAxis->setObjectName(QString::fromUtf8(
"useXAxis"));
142 gridLayout3->addWidget(useXAxis, 0, 0, 1, 1);
144 useYAxis =
new QPushButton(CylinderPropertyWidget);
145 useYAxis->setObjectName(QString::fromUtf8(
"useYAxis"));
147 gridLayout3->addWidget(useYAxis, 1, 0, 1, 1);
149 useZAxis =
new QPushButton(CylinderPropertyWidget);
150 useZAxis->setObjectName(QString::fromUtf8(
"useZAxis"));
152 gridLayout3->addWidget(useZAxis, 2, 0, 1, 1);
154 useCameraAxis =
new QPushButton(CylinderPropertyWidget);
155 useCameraAxis->setObjectName(QString::fromUtf8(
"useCameraAxis"));
157 gridLayout3->addWidget(useCameraAxis, 0, 1, 1, 1);
159 resetCameraToAxis =
new QPushButton(CylinderPropertyWidget);
160 resetCameraToAxis->setObjectName(QString::fromUtf8(
"resetCameraToAxis"));
162 gridLayout3->addWidget(resetCameraToAxis, 3, 0, 1, 2);
164 resetBounds =
new QPushButton(CylinderPropertyWidget);
165 resetBounds->setObjectName(QString::fromUtf8(
"resetBounds"));
167 gridLayout3->addWidget(resetBounds, 4, 0, 1, 2);
170 layout1->addLayout(gridLayout3, 6, 0, 1, 2);
172 QWidget::setTabOrder(show3DWidget, centerX);
173 QWidget::setTabOrder(centerX, centerY);
174 QWidget::setTabOrder(centerY, centerZ);
175 QWidget::setTabOrder(centerZ, axisX);
176 QWidget::setTabOrder(axisX, axisY);
177 QWidget::setTabOrder(axisY, axisZ);
178 QWidget::setTabOrder(axisZ, radius);
179 QWidget::setTabOrder(radius, outlineTranslation);
180 QWidget::setTabOrder(outlineTranslation, scaling);
184 QMetaObject::connectSlotsByName(CylinderPropertyWidget);
189 CylinderPropertyWidget->setWindowTitle(QCoreApplication::translate(
"CylinderPropertyWidget",
"Form",
nullptr));
190 #if QT_CONFIG(tooltip) 191 show3DWidget->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Enable/disable showing the interactive cylinder widget in the 3d render view.",
nullptr));
192 #endif // QT_CONFIG(tooltip) 193 show3DWidget->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Show Cylinder",
nullptr));
194 #if QT_CONFIG(tooltip) 195 outlineTranslation->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Enable/disable the ability to translate the bounding box by moving it with the mouse.",
nullptr));
196 #endif // QT_CONFIG(tooltip) 197 outlineTranslation->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Outline Translation",
nullptr));
198 #if QT_CONFIG(tooltip) 199 scaling->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Enable/disable the ability to scale the widget with the mouse.",
nullptr));
200 #endif // QT_CONFIG(tooltip) 201 scaling->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Scaling",
nullptr));
202 radiusLabel->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Radius",
nullptr));
203 axisLabel->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Axis",
nullptr));
204 axisZ->setText(QString());
205 centerLabel->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Center",
nullptr));
206 #if QT_CONFIG(tooltip) 207 useXAxis->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Use the X-axis as the cylinder's axis.",
nullptr));
208 #endif // QT_CONFIG(tooltip) 209 useXAxis->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Along X Axis",
nullptr));
210 #if QT_CONFIG(tooltip) 211 useYAxis->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Use the Y-axis as the cylinder's axis.",
nullptr));
212 #endif // QT_CONFIG(tooltip) 213 useYAxis->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Along Y Axis",
nullptr));
214 #if QT_CONFIG(tooltip) 215 useZAxis->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Use the Z-axis as the cylinder's axis.",
nullptr));
216 #endif // QT_CONFIG(tooltip) 217 useZAxis->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Along Z Axis",
nullptr));
218 #if QT_CONFIG(tooltip) 219 useCameraAxis->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Use the camera's view direction as the axis of the cylinder.",
nullptr));
220 #endif // QT_CONFIG(tooltip) 221 useCameraAxis->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Along Camera Axis",
nullptr));
222 #if QT_CONFIG(tooltip) 223 resetCameraToAxis->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Reset the camera to look along the cylinder's axis.",
nullptr));
224 #endif // QT_CONFIG(tooltip) 225 resetCameraToAxis->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Reset Camera to Axis",
nullptr));
226 #if QT_CONFIG(tooltip) 227 resetBounds->setToolTip(QCoreApplication::translate(
"CylinderPropertyWidget",
"Reset the cylinder's properties based on the data bounds.",
nullptr));
228 #endif // QT_CONFIG(tooltip) 229 resetBounds->setText(QCoreApplication::translate(
"CylinderPropertyWidget",
"Reset to Data Bounds",
nullptr));
240 #endif // UI_PQCYLINDERPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive