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> 36 if (pqCameraToolbar->objectName().isEmpty())
37 pqCameraToolbar->setObjectName(QString::fromUtf8(
"pqCameraToolbar"));
38 pqCameraToolbar->resize(336, 42);
39 pqCameraToolbar->setOrientation(Qt::Horizontal);
40 actionResetCamera =
new QAction(pqCameraToolbar);
41 actionResetCamera->setObjectName(QString::fromUtf8(
"actionResetCamera"));
42 actionResetCamera->setEnabled(
false);
44 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqResetCamera.svg"), QSize(), QIcon::Normal, QIcon::Off);
45 actionResetCamera->setIcon(icon);
46 actionPositiveX =
new QAction(pqCameraToolbar);
47 actionPositiveX->setObjectName(QString::fromUtf8(
"actionPositiveX"));
48 actionPositiveX->setEnabled(
false);
50 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqXPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
51 actionPositiveX->setIcon(icon1);
52 actionNegativeX =
new QAction(pqCameraToolbar);
53 actionNegativeX->setObjectName(QString::fromUtf8(
"actionNegativeX"));
54 actionNegativeX->setEnabled(
false);
56 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqXMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
57 actionNegativeX->setIcon(icon2);
58 actionPositiveY =
new QAction(pqCameraToolbar);
59 actionPositiveY->setObjectName(QString::fromUtf8(
"actionPositiveY"));
60 actionPositiveY->setEnabled(
false);
62 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqYPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
63 actionPositiveY->setIcon(icon3);
64 actionNegativeY =
new QAction(pqCameraToolbar);
65 actionNegativeY->setObjectName(QString::fromUtf8(
"actionNegativeY"));
66 actionNegativeY->setEnabled(
false);
68 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqYMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
69 actionNegativeY->setIcon(icon4);
70 actionPositiveZ =
new QAction(pqCameraToolbar);
71 actionPositiveZ->setObjectName(QString::fromUtf8(
"actionPositiveZ"));
72 actionPositiveZ->setEnabled(
false);
74 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
75 actionPositiveZ->setIcon(icon5);
76 actionNegativeZ =
new QAction(pqCameraToolbar);
77 actionNegativeZ->setObjectName(QString::fromUtf8(
"actionNegativeZ"));
78 actionNegativeZ->setEnabled(
false);
80 icon6.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
81 actionNegativeZ->setIcon(icon6);
82 actionRotate90degCW =
new QAction(pqCameraToolbar);
83 actionRotate90degCW->setObjectName(QString::fromUtf8(
"actionRotate90degCW"));
84 actionRotate90degCW->setEnabled(
false);
86 icon7.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRotateCameraCW.svg"), QSize(), QIcon::Normal, QIcon::Off);
87 actionRotate90degCW->setIcon(icon7);
88 actionRotate90degCCW =
new QAction(pqCameraToolbar);
89 actionRotate90degCCW->setObjectName(QString::fromUtf8(
"actionRotate90degCCW"));
90 actionRotate90degCCW->setEnabled(
false);
92 icon8.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRotateCameraCCW.svg"), QSize(), QIcon::Normal, QIcon::Off);
93 actionRotate90degCCW->setIcon(icon8);
94 actionZoomToBox =
new QAction(pqCameraToolbar);
95 actionZoomToBox->setObjectName(QString::fromUtf8(
"actionZoomToBox"));
96 actionZoomToBox->setCheckable(
true);
98 icon9.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZoomToSelection.svg"), QSize(), QIcon::Normal, QIcon::Off);
99 actionZoomToBox->setIcon(icon9);
100 actionZoomToData =
new QAction(pqCameraToolbar);
101 actionZoomToData->setObjectName(QString::fromUtf8(
"actionZoomToData"));
103 icon10.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqZoomToData.svg"), QSize(), QIcon::Normal, QIcon::Off);
104 actionZoomToData->setIcon(icon10);
106 pqCameraToolbar->addAction(actionResetCamera);
107 pqCameraToolbar->addAction(actionZoomToData);
108 pqCameraToolbar->addAction(actionZoomToBox);
109 pqCameraToolbar->addAction(actionPositiveX);
110 pqCameraToolbar->addAction(actionNegativeX);
111 pqCameraToolbar->addAction(actionPositiveY);
112 pqCameraToolbar->addAction(actionNegativeY);
113 pqCameraToolbar->addAction(actionPositiveZ);
114 pqCameraToolbar->addAction(actionNegativeZ);
115 pqCameraToolbar->addAction(actionRotate90degCW);
116 pqCameraToolbar->addAction(actionRotate90degCCW);
120 QMetaObject::connectSlotsByName(pqCameraToolbar);
125 pqCameraToolbar->setWindowTitle(QCoreApplication::translate(
"pqCameraToolbar",
"Camera Controls",
nullptr));
126 actionResetCamera->setText(QCoreApplication::translate(
"pqCameraToolbar",
"&Reset",
nullptr));
127 actionResetCamera->setIconText(QCoreApplication::translate(
"pqCameraToolbar",
"Reset Camera",
nullptr));
128 #if QT_CONFIG(statustip) 129 actionResetCamera->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Reset Camera",
nullptr));
130 #endif // QT_CONFIG(statustip) 131 actionPositiveX->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+X",
nullptr));
132 #if QT_CONFIG(tooltip) 133 actionPositiveX->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +X",
nullptr));
134 #endif // QT_CONFIG(tooltip) 135 #if QT_CONFIG(statustip) 136 actionPositiveX->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +X",
nullptr));
137 #endif // QT_CONFIG(statustip) 138 #if QT_CONFIG(whatsthis) 139 actionPositiveX->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +X",
nullptr));
140 #endif // QT_CONFIG(whatsthis) 141 actionNegativeX->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-X",
nullptr));
142 #if QT_CONFIG(tooltip) 143 actionNegativeX->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -X",
nullptr));
144 #endif // QT_CONFIG(tooltip) 145 #if QT_CONFIG(statustip) 146 actionNegativeX->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -X",
nullptr));
147 #endif // QT_CONFIG(statustip) 148 #if QT_CONFIG(whatsthis) 149 actionNegativeX->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -X",
nullptr));
150 #endif // QT_CONFIG(whatsthis) 151 actionPositiveY->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+Y",
nullptr));
152 #if QT_CONFIG(tooltip) 153 actionPositiveY->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Y",
nullptr));
154 #endif // QT_CONFIG(tooltip) 155 #if QT_CONFIG(statustip) 156 actionPositiveY->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Y",
nullptr));
157 #endif // QT_CONFIG(statustip) 158 #if QT_CONFIG(whatsthis) 159 actionPositiveY->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Y",
nullptr));
160 #endif // QT_CONFIG(whatsthis) 161 actionNegativeY->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-Y",
nullptr));
162 #if QT_CONFIG(tooltip) 163 actionNegativeY->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Y",
nullptr));
164 #endif // QT_CONFIG(tooltip) 165 #if QT_CONFIG(statustip) 166 actionNegativeY->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Y",
nullptr));
167 #endif // QT_CONFIG(statustip) 168 #if QT_CONFIG(whatsthis) 169 actionNegativeY->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Y",
nullptr));
170 #endif // QT_CONFIG(whatsthis) 171 actionPositiveZ->setText(QCoreApplication::translate(
"pqCameraToolbar",
"+Z",
nullptr));
172 #if QT_CONFIG(tooltip) 173 actionPositiveZ->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Z",
nullptr));
174 #endif // QT_CONFIG(tooltip) 175 #if QT_CONFIG(statustip) 176 actionPositiveZ->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Z",
nullptr));
177 #endif // QT_CONFIG(statustip) 178 #if QT_CONFIG(whatsthis) 179 actionPositiveZ->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to +Z",
nullptr));
180 #endif // QT_CONFIG(whatsthis) 181 actionNegativeZ->setText(QCoreApplication::translate(
"pqCameraToolbar",
"-Z",
nullptr));
182 #if QT_CONFIG(tooltip) 183 actionNegativeZ->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Z",
nullptr));
184 #endif // QT_CONFIG(tooltip) 185 #if QT_CONFIG(statustip) 186 actionNegativeZ->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Z",
nullptr));
187 #endif // QT_CONFIG(statustip) 188 #if QT_CONFIG(whatsthis) 189 actionNegativeZ->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Set view direction to -Z",
nullptr));
190 #endif // QT_CONFIG(whatsthis) 191 actionRotate90degCW->setText(QString());
192 #if QT_CONFIG(tooltip) 193 actionRotate90degCW->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 clockwise",
nullptr));
194 #endif // QT_CONFIG(tooltip) 195 #if QT_CONFIG(statustip) 196 actionRotate90degCW->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 clockwise",
nullptr));
197 #endif // QT_CONFIG(statustip) 198 #if QT_CONFIG(whatsthis) 199 actionRotate90degCW->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 clockwise",
nullptr));
200 #endif // QT_CONFIG(whatsthis) 201 actionRotate90degCCW->setText(QString());
202 #if QT_CONFIG(tooltip) 203 actionRotate90degCCW->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 counterclockwise",
nullptr));
204 #endif // QT_CONFIG(tooltip) 205 #if QT_CONFIG(statustip) 206 actionRotate90degCCW->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 counterclockwise",
nullptr));
207 #endif // QT_CONFIG(statustip) 208 #if QT_CONFIG(whatsthis) 209 actionRotate90degCCW->setWhatsThis(QCoreApplication::translate(
"pqCameraToolbar",
"Rotate 90\302\260 counterclockwise",
nullptr));
210 #endif // QT_CONFIG(whatsthis) 211 actionZoomToBox->setText(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom to Box",
nullptr));
212 #if QT_CONFIG(statustip) 213 actionZoomToBox->setStatusTip(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom to Box",
nullptr));
214 #endif // QT_CONFIG(statustip) 215 actionZoomToData->setText(QCoreApplication::translate(
"pqCameraToolbar",
"ZTD",
nullptr));
216 #if QT_CONFIG(tooltip) 217 actionZoomToData->setToolTip(QCoreApplication::translate(
"pqCameraToolbar",
"Zoom To Data",
nullptr));
218 #endif // QT_CONFIG(tooltip) 229 #endif // UI_PQCAMERATOOLBAR_H