9 #ifndef UI_PQFRUSTUMPROPERTYWIDGET_H 10 #define UI_PQFRUSTUMPROPERTYWIDGET_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> 46 void setupUi(QWidget *FrustumPropertyWidget)
48 if (FrustumPropertyWidget->objectName().isEmpty())
49 FrustumPropertyWidget->setObjectName(QString::fromUtf8(
"FrustumPropertyWidget"));
50 FrustumPropertyWidget->resize(372, 357);
51 layout1 =
new QGridLayout(FrustumPropertyWidget);
52 layout1->setSpacing(2);
53 layout1->setContentsMargins(0, 0, 0, 0);
54 layout1->setObjectName(QString::fromUtf8(
"layout1"));
55 show3DWidget =
new QCheckBox(FrustumPropertyWidget);
56 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
57 show3DWidget->setChecked(
true);
59 layout1->addWidget(show3DWidget, 0, 0, 1, 2);
61 gridLayout2 =
new QGridLayout();
62 gridLayout2->setSpacing(2);
63 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
65 originY->setObjectName(QString::fromUtf8(
"originY"));
67 gridLayout2->addWidget(originY, 0, 2, 1, 1);
69 horizontalAngleLabel =
new QLabel(FrustumPropertyWidget);
70 horizontalAngleLabel->setObjectName(QString::fromUtf8(
"horizontalAngleLabel"));
72 gridLayout2->addWidget(horizontalAngleLabel, 2, 0, 1, 1);
74 verticalAngleLabel =
new QLabel(FrustumPropertyWidget);
75 verticalAngleLabel->setObjectName(QString::fromUtf8(
"verticalAngleLabel"));
77 gridLayout2->addWidget(verticalAngleLabel, 3, 0, 1, 1);
79 nearPlaneDistanceLabel =
new QLabel(FrustumPropertyWidget);
80 nearPlaneDistanceLabel->setObjectName(QString::fromUtf8(
"nearPlaneDistanceLabel"));
82 gridLayout2->addWidget(nearPlaneDistanceLabel, 4, 0, 1, 1);
85 orientationY->setObjectName(QString::fromUtf8(
"orientationY"));
87 gridLayout2->addWidget(orientationY, 1, 2, 1, 1);
89 orientationLabel =
new QLabel(FrustumPropertyWidget);
90 orientationLabel->setObjectName(QString::fromUtf8(
"orientationLabel"));
92 gridLayout2->addWidget(orientationLabel, 1, 0, 1, 1);
95 orientationX->setObjectName(QString::fromUtf8(
"orientationX"));
97 gridLayout2->addWidget(orientationX, 1, 1, 1, 1);
100 horizontalAngle->setObjectName(QString::fromUtf8(
"horizontalAngle"));
102 gridLayout2->addWidget(horizontalAngle, 2, 1, 1, 1);
105 verticalAngle->setObjectName(QString::fromUtf8(
"verticalAngle"));
107 gridLayout2->addWidget(verticalAngle, 3, 1, 1, 1);
110 nearPlaneDistance->setObjectName(QString::fromUtf8(
"nearPlaneDistance"));
112 gridLayout2->addWidget(nearPlaneDistance, 4, 1, 1, 1);
115 orientationZ->setObjectName(QString::fromUtf8(
"orientationZ"));
117 gridLayout2->addWidget(orientationZ, 1, 3, 1, 1);
119 originLabel =
new QLabel(FrustumPropertyWidget);
120 originLabel->setObjectName(QString::fromUtf8(
"originLabel"));
122 gridLayout2->addWidget(originLabel, 0, 0, 1, 1);
125 originX->setObjectName(QString::fromUtf8(
"originX"));
127 gridLayout2->addWidget(originX, 0, 1, 1, 1);
130 originZ->setObjectName(QString::fromUtf8(
"originZ"));
132 gridLayout2->addWidget(originZ, 0, 3, 1, 1);
135 layout1->addLayout(gridLayout2, 5, 0, 1, 2);
137 gridLayout3 =
new QGridLayout();
138 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
139 resetBounds =
new QPushButton(FrustumPropertyWidget);
140 resetBounds->setObjectName(QString::fromUtf8(
"resetBounds"));
142 gridLayout3->addWidget(resetBounds, 0, 0, 1, 2);
145 layout1->addLayout(gridLayout3, 6, 0, 1, 2);
147 QWidget::setTabOrder(show3DWidget, originX);
148 QWidget::setTabOrder(originX, originY);
149 QWidget::setTabOrder(originY, originZ);
150 QWidget::setTabOrder(originZ, orientationX);
151 QWidget::setTabOrder(orientationX, orientationY);
152 QWidget::setTabOrder(orientationY, orientationZ);
153 QWidget::setTabOrder(orientationZ, horizontalAngle);
154 QWidget::setTabOrder(horizontalAngle, verticalAngle);
155 QWidget::setTabOrder(verticalAngle, nearPlaneDistance);
159 QMetaObject::connectSlotsByName(FrustumPropertyWidget);
164 FrustumPropertyWidget->setWindowTitle(QCoreApplication::translate(
"FrustumPropertyWidget",
"Form",
nullptr));
165 #if QT_CONFIG(tooltip) 166 show3DWidget->setToolTip(QCoreApplication::translate(
"FrustumPropertyWidget",
"Enable/disable showing the interactive frustum widget in the 3d render view.",
nullptr));
167 #endif // QT_CONFIG(tooltip) 168 show3DWidget->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Show Frustum",
nullptr));
169 horizontalAngleLabel->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Horizontal Angle",
nullptr));
170 verticalAngleLabel->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Vertical Angle",
nullptr));
171 nearPlaneDistanceLabel->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Near Plane Distance",
nullptr));
172 orientationLabel->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Orientation",
nullptr));
173 orientationZ->setText(QString());
174 originLabel->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Origin",
nullptr));
175 #if QT_CONFIG(tooltip) 176 resetBounds->setToolTip(QCoreApplication::translate(
"FrustumPropertyWidget",
"Reset the frustum's properties based on the data bounds.",
nullptr));
177 #endif // QT_CONFIG(tooltip) 178 resetBounds->setText(QCoreApplication::translate(
"FrustumPropertyWidget",
"Reset to Data Bounds",
nullptr));
189 #endif // UI_PQFRUSTUMPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive