9 #ifndef UI_PQCAMERATOOLBAR_H 10 #define UI_PQCAMERATOOLBAR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QToolBar> 39 if (pqCameraToolbar->objectName().isEmpty())
40 pqCameraToolbar->setObjectName(QString::fromUtf8(
"pqCameraToolbar"));
41 pqCameraToolbar->resize(336, 42);
42 pqCameraToolbar->setOrientation(Qt::Horizontal);
43 actionResetCamera =
new QAction(pqCameraToolbar);
44 actionResetCamera->setObjectName(QString::fromUtf8(
"actionResetCamera"));
45 actionResetCamera->setEnabled(
false);
47 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetCamera.svg"), QSize(), QIcon::Normal, QIcon::Off);
48 actionResetCamera->setIcon(icon);
49 actionPositiveX =
new QAction(pqCameraToolbar);
50 actionPositiveX->setObjectName(QString::fromUtf8(
"actionPositiveX"));
51 actionPositiveX->setEnabled(
false);
53 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqXPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
54 actionPositiveX->setIcon(icon1);
55 actionNegativeX =
new QAction(pqCameraToolbar);
56 actionNegativeX->setObjectName(QString::fromUtf8(
"actionNegativeX"));
57 actionNegativeX->setEnabled(
false);
59 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqXMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
60 actionNegativeX->setIcon(icon2);
61 actionPositiveY =
new QAction(pqCameraToolbar);
62 actionPositiveY->setObjectName(QString::fromUtf8(
"actionPositiveY"));
63 actionPositiveY->setEnabled(
false);
65 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqYPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
66 actionPositiveY->setIcon(icon3);
67 actionNegativeY =
new QAction(pqCameraToolbar);
68 actionNegativeY->setObjectName(QString::fromUtf8(
"actionNegativeY"));
69 actionNegativeY->setEnabled(
false);
71 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqYMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
72 actionNegativeY->setIcon(icon4);
73 actionPositiveZ =
new QAction(pqCameraToolbar);
74 actionPositiveZ->setObjectName(QString::fromUtf8(
"actionPositiveZ"));
75 actionPositiveZ->setEnabled(
false);
77 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
78 actionPositiveZ->setIcon(icon5);
79 actionNegativeZ =
new QAction(pqCameraToolbar);
80 actionNegativeZ->setObjectName(QString::fromUtf8(
"actionNegativeZ"));
81 actionNegativeZ->setEnabled(
false);
83 icon6.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
84 actionNegativeZ->setIcon(icon6);
85 actionIsometricView =
new QAction(pqCameraToolbar);
86 actionIsometricView->setObjectName(QString::fromUtf8(
"actionIsometricView"));
87 actionIsometricView->setEnabled(
false);
89 icon7.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqIsometricView.svg"), QSize(), QIcon::Normal, QIcon::Off);
90 actionIsometricView->setIcon(icon7);
91 actionRotate90degCW =
new QAction(pqCameraToolbar);
92 actionRotate90degCW->setObjectName(QString::fromUtf8(
"actionRotate90degCW"));
93 actionRotate90degCW->setEnabled(
false);
95 icon8.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRotateCameraCW.svg"), QSize(), QIcon::Normal, QIcon::Off);
96 actionRotate90degCW->setIcon(icon8);
97 actionRotate90degCCW =
new QAction(pqCameraToolbar);
98 actionRotate90degCCW->setObjectName(QString::fromUtf8(
"actionRotate90degCCW"));
99 actionRotate90degCCW->setEnabled(
false);
101 icon9.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRotateCameraCCW.svg"), QSize(), QIcon::Normal, QIcon::Off);
102 actionRotate90degCCW->setIcon(icon9);
103 actionZoomToBox =
new QAction(pqCameraToolbar);
104 actionZoomToBox->setObjectName(QString::fromUtf8(
"actionZoomToBox"));
105 actionZoomToBox->setCheckable(
true);
107 icon10.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZoomToSelection.svg"), QSize(), QIcon::Normal, QIcon::Off);
108 actionZoomToBox->setIcon(icon10);
109 actionZoomToData =
new QAction(pqCameraToolbar);
110 actionZoomToData->setObjectName(QString::fromUtf8(
"actionZoomToData"));
112 icon11.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZoomToData.svg"), QSize(), QIcon::Normal, QIcon::Off);
113 actionZoomToData->setIcon(icon11);
114 actionZoomClosestToData =
new QAction(pqCameraToolbar);
115 actionZoomClosestToData->setObjectName(QString::fromUtf8(
"actionZoomClosestToData"));
117 icon12.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZoomClosestToData.svg"), QSize(), QIcon::Normal, QIcon::Off);
118 actionZoomClosestToData->setIcon(icon12);
119 actionResetCameraClosest =
new QAction(pqCameraToolbar);
120 actionResetCameraClosest->setObjectName(QString::fromUtf8(
"actionResetCameraClosest"));
122 icon13.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetCameraClosest.svg"), QSize(), QIcon::Normal, QIcon::Off);
123 actionResetCameraClosest->setIcon(icon13);
125 pqCameraToolbar->addAction(actionResetCamera);
126 pqCameraToolbar->addAction(actionZoomToData);
127 pqCameraToolbar->addAction(actionResetCameraClosest);
128 pqCameraToolbar->addAction(actionZoomClosestToData);
129 pqCameraToolbar->addAction(actionZoomToBox);
130 pqCameraToolbar->addAction(actionPositiveX);
131 pqCameraToolbar->addAction(actionNegativeX);
132 pqCameraToolbar->addAction(actionPositiveY);
133 pqCameraToolbar->addAction(actionNegativeY);
134 pqCameraToolbar->addAction(actionPositiveZ);
135 pqCameraToolbar->addAction(actionNegativeZ);
136 pqCameraToolbar->addAction(actionIsometricView);
137 pqCameraToolbar->addAction(actionRotate90degCW);
138 pqCameraToolbar->addAction(actionRotate90degCCW);
142 QMetaObject::connectSlotsByName(pqCameraToolbar);
147 pqCameraToolbar->setWindowTitle(QCoreApplication::translate(
"pqCameraToolbar",
"Camera Controls",
nullptr));
148 actionResetCamera->setText(QCoreApplication::translate(
"pqCameraToolbar",
"&Reset",
nullptr));
149 actionResetCamera->setIconText(QCoreApplication::translate(
"pqCameraToolbar",
"Reset Camera",
nullptr));
150 #if QT_CONFIG(statustip) 151 actionResetCamera->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Reset Camera",
nullptr));
152 #endif // QT_CONFIG(statustip) 153 actionPositiveX->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+X",
nullptr));
154 #if QT_CONFIG(tooltip) 155 actionPositiveX->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +X",
nullptr));
156 #endif // QT_CONFIG(tooltip) 157 #if QT_CONFIG(statustip) 158 actionPositiveX->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +X",
nullptr));
159 #endif // QT_CONFIG(statustip) 160 actionNegativeX->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-X",
nullptr));
161 #if QT_CONFIG(tooltip) 162 actionNegativeX->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -X",
nullptr));
163 #endif // QT_CONFIG(tooltip) 164 #if QT_CONFIG(statustip) 165 actionNegativeX->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -X",
nullptr));
166 #endif // QT_CONFIG(statustip) 167 actionPositiveY->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+Y",
nullptr));
168 #if QT_CONFIG(tooltip) 169 actionPositiveY->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Y",
nullptr));
170 #endif // QT_CONFIG(tooltip) 171 #if QT_CONFIG(statustip) 172 actionPositiveY->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Y",
nullptr));
173 #endif // QT_CONFIG(statustip) 174 actionNegativeY->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-Y",
nullptr));
175 #if QT_CONFIG(tooltip) 176 actionNegativeY->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Y",
nullptr));
177 #endif // QT_CONFIG(tooltip) 178 #if QT_CONFIG(statustip) 179 actionNegativeY->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Y",
nullptr));
180 #endif // QT_CONFIG(statustip) 181 actionPositiveZ->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+Z",
nullptr));
182 #if QT_CONFIG(tooltip) 183 actionPositiveZ->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Z",
nullptr));
184 #endif // QT_CONFIG(tooltip) 185 #if QT_CONFIG(statustip) 186 actionPositiveZ->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Z",
nullptr));
187 #endif // QT_CONFIG(statustip) 188 actionNegativeZ->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-Z",
nullptr));
189 #if QT_CONFIG(tooltip) 190 actionNegativeZ->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Z",
nullptr));
191 #endif // QT_CONFIG(tooltip) 192 #if QT_CONFIG(statustip) 193 actionNegativeZ->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Z",
nullptr));
194 #endif // QT_CONFIG(statustip) 195 actionIsometricView->setText(QCoreApplication::translate(
"pqCameraToolbar",
"&Isometric",
nullptr));
196 #if QT_CONFIG(tooltip) 197 actionIsometricView->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Apply isometric view",
nullptr));
198 #endif // QT_CONFIG(tooltip) 199 #if QT_CONFIG(statustip) 200 actionIsometricView->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Apply isometric view",
nullptr));
201 #endif // QT_CONFIG(statustip) 202 actionRotate90degCW->setText(QString());
203 #if QT_CONFIG(tooltip) 204 actionRotate90degCW->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 clockwise",
nullptr));
205 #endif // QT_CONFIG(tooltip) 206 #if QT_CONFIG(statustip) 207 actionRotate90degCW->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 clockwise",
nullptr));
208 #endif // QT_CONFIG(statustip) 209 actionRotate90degCCW->setText(QString());
210 #if QT_CONFIG(tooltip) 211 actionRotate90degCCW->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 counterclockwise",
nullptr));
212 #endif // QT_CONFIG(tooltip) 213 #if QT_CONFIG(statustip) 214 actionRotate90degCCW->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 counterclockwise",
nullptr));
215 #endif // QT_CONFIG(statustip) 216 actionZoomToBox->setText(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom to Box",
nullptr));
217 #if QT_CONFIG(statustip) 218 actionZoomToBox->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom to Box",
nullptr));
219 #endif // QT_CONFIG(statustip) 220 actionZoomToData->setText(QCoreApplication::translate(
"pqCameraToolbar",
"ZTD",
nullptr));
221 #if QT_CONFIG(tooltip) 222 actionZoomToData->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom To Data",
nullptr));
223 #endif // QT_CONFIG(tooltip) 224 actionZoomClosestToData->setText(QCoreApplication::translate(
"pqCameraToolbar",
"ZCTD",
nullptr));
225 #if QT_CONFIG(tooltip) 226 actionZoomClosestToData->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom Closest To Data",
nullptr));
227 #endif // QT_CONFIG(tooltip) 228 actionResetCameraClosest->setText(QCoreApplication::translate(
"pqCameraToolbar",
"RCC",
nullptr));
229 #if QT_CONFIG(tooltip) 230 actionResetCameraClosest->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Reset Camera Closest",
nullptr));
231 #endif // QT_CONFIG(tooltip) 242 #endif // UI_PQCAMERATOOLBAR_H