9 #ifndef UI_PQFILEMENUBUILDER_H 10 #define UI_PQFILEMENUBUILDER_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QAction> 15 #include <QtWidgets/QApplication> 16 #include <QtWidgets/QMenu> 46 if (pqFileMenuBuilder->objectName().isEmpty())
47 pqFileMenuBuilder->setObjectName(QString::fromUtf8(
"pqFileMenuBuilder"));
48 actionServerConnect =
new QAction(pqFileMenuBuilder);
49 actionServerConnect->setObjectName(QString::fromUtf8(
"actionServerConnect"));
51 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqConnect.svg"), QSize(), QIcon::Normal, QIcon::Off);
52 actionServerConnect->setIcon(icon);
53 actionServerDisconnect =
new QAction(pqFileMenuBuilder);
54 actionServerDisconnect->setObjectName(QString::fromUtf8(
"actionServerDisconnect"));
56 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqDisconnect.svg"), QSize(), QIcon::Normal, QIcon::Off);
57 actionServerDisconnect->setIcon(icon1);
58 actionFileSaveScreenshot =
new QAction(pqFileMenuBuilder);
59 actionFileSaveScreenshot->setObjectName(QString::fromUtf8(
"actionFileSaveScreenshot"));
61 icon2.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqCaptureScreenshot.svg"), QSize(), QIcon::Normal, QIcon::Off);
62 actionFileSaveScreenshot->setIcon(icon2);
63 actionFileSaveAnimation =
new QAction(pqFileMenuBuilder);
64 actionFileSaveAnimation->setObjectName(QString::fromUtf8(
"actionFileSaveAnimation"));
66 icon3.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSaveAnimation.svg"), QSize(), QIcon::Normal, QIcon::Off);
67 actionFileSaveAnimation->setIcon(icon3);
68 actionFileSaveAnimation->setProperty(
"PV_MUST_BE_MASTER_TO_SHOW", QVariant(
true));
69 actionFileSaveData =
new QAction(pqFileMenuBuilder);
70 actionFileSaveData->setObjectName(QString::fromUtf8(
"actionFileSaveData"));
72 icon4.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSave.svg"), QSize(), QIcon::Normal, QIcon::Off);
73 actionFileSaveData->setIcon(icon4);
74 actionFileSaveData->setProperty(
"PV_MUST_BE_MASTER_TO_SHOW", QVariant(
true));
75 actionFileLoadServerState =
new QAction(pqFileMenuBuilder);
76 actionFileLoadServerState->setObjectName(QString::fromUtf8(
"actionFileLoadServerState"));
78 icon5.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqLoadState.svg"), QSize(), QIcon::Normal, QIcon::Off);
79 actionFileLoadServerState->setIcon(icon5);
80 actionFileLoadServerState->setProperty(
"PV_MUST_BE_MASTER_TO_SHOW", QVariant(
true));
81 actionFileSaveServerState =
new QAction(pqFileMenuBuilder);
82 actionFileSaveServerState->setObjectName(QString::fromUtf8(
"actionFileSaveServerState"));
84 icon6.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSaveState.svg"), QSize(), QIcon::Normal, QIcon::Off);
85 actionFileSaveServerState->setIcon(icon6);
86 actionFileSaveCatalystState =
new QAction(pqFileMenuBuilder);
87 actionFileSaveCatalystState->setObjectName(QString::fromUtf8(
"actionFileSaveCatalystState"));
89 icon7.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqCatalyst.svg"), QSize(), QIcon::Normal, QIcon::Off);
90 actionFileSaveCatalystState->setIcon(icon7);
91 actionFileSaveGeometry =
new QAction(pqFileMenuBuilder);
92 actionFileSaveGeometry->setObjectName(QString::fromUtf8(
"actionFileSaveGeometry"));
93 actionFileSaveGeometry->setProperty(
"PV_MUST_BE_MASTER_TO_SHOW", QVariant(
true));
94 actionReloadFiles =
new QAction(pqFileMenuBuilder);
95 actionReloadFiles->setObjectName(QString::fromUtf8(
"actionReloadFiles"));
97 icon8.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqReloadFile.svg"), QSize(), QIcon::Normal, QIcon::Off);
98 actionReloadFiles->setIcon(icon8);
99 actionFileOpen =
new QAction(pqFileMenuBuilder);
100 actionFileOpen->setObjectName(QString::fromUtf8(
"actionFileOpen"));
102 icon9.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqOpen.svg"), QSize(), QIcon::Normal, QIcon::Off);
103 actionFileOpen->setIcon(icon9);
104 actionFileOpen->setProperty(
"PV_MUST_BE_MASTER_TO_SHOW", QVariant(
true));
105 actionFileExit =
new QAction(pqFileMenuBuilder);
106 actionFileExit->setObjectName(QString::fromUtf8(
"actionFileExit"));
108 icon10.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqExitApp.svg"), QSize(), QIcon::Normal, QIcon::Off);
109 actionFileExit->setIcon(icon10);
110 actionImport =
new QAction(pqFileMenuBuilder);
111 actionImport->setObjectName(QString::fromUtf8(
"actionImport"));
113 icon11.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqImportScene.svg"), QSize(), QIcon::Normal, QIcon::Off);
114 actionImport->setIcon(icon11);
115 actionExport =
new QAction(pqFileMenuBuilder);
116 actionExport->setObjectName(QString::fromUtf8(
"actionExport"));
118 icon12.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqExportScene.svg"), QSize(), QIcon::Normal, QIcon::Off);
119 actionExport->setIcon(icon12);
120 actionAnimatedExport =
new QAction(pqFileMenuBuilder);
121 actionAnimatedExport->setObjectName(QString::fromUtf8(
"actionAnimatedExport"));
123 icon13.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqExportAnimatedScene.svg"), QSize(), QIcon::Normal, QIcon::Off);
124 actionAnimatedExport->setIcon(icon13);
125 actionFileSaveWindowArrangement =
new QAction(pqFileMenuBuilder);
126 actionFileSaveWindowArrangement->setObjectName(QString::fromUtf8(
"actionFileSaveWindowArrangement"));
128 icon14.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqSaveWindow.svg"), QSize(), QIcon::Normal, QIcon::Off);
129 actionFileSaveWindowArrangement->setIcon(icon14);
130 actionFileLoadWindowArrangement =
new QAction(pqFileMenuBuilder);
131 actionFileLoadWindowArrangement->setObjectName(QString::fromUtf8(
"actionFileLoadWindowArrangement"));
133 icon15.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqLoadWindow.svg"), QSize(), QIcon::Normal, QIcon::Off);
134 actionFileLoadWindowArrangement->setIcon(icon15);
135 actionFileLoadMaterials =
new QAction(pqFileMenuBuilder);
136 actionFileLoadMaterials->setObjectName(QString::fromUtf8(
"actionFileLoadMaterials"));
137 actionFileSaveExtracts =
new QAction(pqFileMenuBuilder);
138 actionFileSaveExtracts->setObjectName(QString::fromUtf8(
"actionFileSaveExtracts"));
139 actionFileSaveExtracts->setIcon(icon12);
140 menuRecentFiles =
new QMenu(pqFileMenuBuilder);
141 menuRecentFiles->setObjectName(QString::fromUtf8(
"menuRecentFiles"));
143 icon16.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqRecentFile.svg"), QSize(), QIcon::Normal, QIcon::Off);
144 menuRecentFiles->setIcon(icon16);
146 pqFileMenuBuilder->addAction(actionFileOpen);
147 pqFileMenuBuilder->addAction(menuRecentFiles->menuAction());
148 pqFileMenuBuilder->addAction(actionReloadFiles);
149 pqFileMenuBuilder->addSeparator();
150 pqFileMenuBuilder->addAction(actionFileLoadServerState);
151 pqFileMenuBuilder->addAction(actionFileSaveServerState);
152 pqFileMenuBuilder->addAction(actionFileSaveCatalystState);
153 pqFileMenuBuilder->addSeparator();
154 pqFileMenuBuilder->addAction(actionFileSaveData);
155 pqFileMenuBuilder->addAction(actionFileSaveScreenshot);
156 pqFileMenuBuilder->addSeparator();
157 pqFileMenuBuilder->addAction(actionImport);
158 pqFileMenuBuilder->addAction(actionExport);
159 pqFileMenuBuilder->addAction(actionAnimatedExport);
160 pqFileMenuBuilder->addSeparator();
161 pqFileMenuBuilder->addAction(actionFileSaveAnimation);
162 pqFileMenuBuilder->addAction(actionFileSaveExtracts);
163 pqFileMenuBuilder->addAction(actionFileSaveGeometry);
164 pqFileMenuBuilder->addSeparator();
165 pqFileMenuBuilder->addAction(actionFileLoadMaterials);
166 pqFileMenuBuilder->addSeparator();
167 pqFileMenuBuilder->addAction(actionFileLoadWindowArrangement);
168 pqFileMenuBuilder->addAction(actionFileSaveWindowArrangement);
169 pqFileMenuBuilder->addSeparator();
170 pqFileMenuBuilder->addAction(actionServerConnect);
171 pqFileMenuBuilder->addAction(actionServerDisconnect);
172 pqFileMenuBuilder->addSeparator();
173 pqFileMenuBuilder->addAction(actionFileExit);
177 QMetaObject::connectSlotsByName(pqFileMenuBuilder);
182 pqFileMenuBuilder->setTitle(QCoreApplication::translate(
"pqFileMenuBuilder",
"&File",
nullptr));
183 actionServerConnect->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Connect...",
nullptr));
184 #if QT_CONFIG(statustip) 185 actionServerConnect->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Connect",
nullptr));
186 #endif // QT_CONFIG(statustip) 187 actionServerDisconnect->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Disconnect",
nullptr));
188 #if QT_CONFIG(statustip) 189 actionServerDisconnect->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Disconnect",
nullptr));
190 #endif // QT_CONFIG(statustip) 191 actionFileSaveScreenshot->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save Screenshot...",
nullptr));
192 actionFileSaveAnimation->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save &Animation...",
nullptr));
193 actionFileSaveData->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save Data...",
nullptr));
194 #if QT_CONFIG(shortcut) 195 actionFileSaveData->setShortcut(QCoreApplication::translate(
"pqFileMenuBuilder",
"Ctrl+S",
nullptr));
196 #endif // QT_CONFIG(shortcut) 197 actionFileLoadServerState->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Load State...",
nullptr));
198 actionFileSaveServerState->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Save State...",
nullptr));
199 actionFileSaveCatalystState->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save Catalyst State...",
nullptr));
200 actionFileSaveGeometry->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save &Geometry...",
nullptr));
201 actionReloadFiles->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Reload Files",
nullptr));
202 actionReloadFiles->setIconText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Reload Files",
nullptr));
203 #if QT_CONFIG(tooltip) 204 actionReloadFiles->setToolTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Reload data files in case they were changed externally.",
nullptr));
205 #endif // QT_CONFIG(tooltip) 206 #if QT_CONFIG(shortcut) 207 actionReloadFiles->setShortcut(QCoreApplication::translate(
"pqFileMenuBuilder",
"F5",
nullptr));
208 #endif // QT_CONFIG(shortcut) 209 actionFileOpen->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Open...",
nullptr));
210 #if QT_CONFIG(statustip) 211 actionFileOpen->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Open",
nullptr));
212 #endif // QT_CONFIG(statustip) 213 #if QT_CONFIG(shortcut) 214 actionFileOpen->setShortcut(QCoreApplication::translate(
"pqFileMenuBuilder",
"Ctrl+O",
nullptr));
215 #endif // QT_CONFIG(shortcut) 216 actionFileExit->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"E&xit",
nullptr));
217 #if QT_CONFIG(statustip) 218 actionFileExit->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Exit",
nullptr));
219 #endif // QT_CONFIG(statustip) 220 #if QT_CONFIG(shortcut) 221 actionFileExit->setShortcut(QCoreApplication::translate(
"pqFileMenuBuilder",
"Ctrl+Q",
nullptr));
222 #endif // QT_CONFIG(shortcut) 223 actionImport->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Import Scene...",
nullptr));
224 actionExport->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Export Scene...",
nullptr));
225 actionAnimatedExport->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Export Animated Scene...",
nullptr));
226 #if QT_CONFIG(tooltip) 227 actionAnimatedExport->setToolTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save scene for all timesteps by playing the animation step by step",
nullptr));
228 #endif // QT_CONFIG(tooltip) 229 #if QT_CONFIG(statustip) 230 actionAnimatedExport->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save scene for all timesteps",
nullptr));
231 #endif // QT_CONFIG(statustip) 232 actionFileSaveWindowArrangement->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save Window Arrangement...",
nullptr));
233 #if QT_CONFIG(tooltip) 234 actionFileSaveWindowArrangement->setToolTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save window arrangement to a file",
nullptr));
235 #endif // QT_CONFIG(tooltip) 236 #if QT_CONFIG(statustip) 237 actionFileSaveWindowArrangement->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save window arrangement to a file",
nullptr));
238 #endif // QT_CONFIG(statustip) 239 actionFileLoadWindowArrangement->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load Window Arrangement...",
nullptr));
240 #if QT_CONFIG(tooltip) 241 actionFileLoadWindowArrangement->setToolTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load window arrangement from a file",
nullptr));
242 #endif // QT_CONFIG(tooltip) 243 #if QT_CONFIG(statustip) 244 actionFileLoadWindowArrangement->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load window arrangement from a file",
nullptr));
245 #endif // QT_CONFIG(statustip) 246 actionFileLoadMaterials->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load Path Tracer Materials...",
nullptr));
247 #if QT_CONFIG(tooltip) 248 actionFileLoadMaterials->setToolTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load a Materials file that contains appearance settings for use in high quality rendering modes.",
nullptr));
249 #endif // QT_CONFIG(tooltip) 250 #if QT_CONFIG(statustip) 251 actionFileLoadMaterials->setStatusTip(QCoreApplication::translate(
"pqFileMenuBuilder",
"Load an Appearance Materials file",
nullptr));
252 #endif // QT_CONFIG(statustip) 253 actionFileSaveExtracts->setText(QCoreApplication::translate(
"pqFileMenuBuilder",
"Save Extracts...",
nullptr));
254 menuRecentFiles->setTitle(QCoreApplication::translate(
"pqFileMenuBuilder",
"&Recent Files",
nullptr));
265 #endif // UI_PQFILEMENUBUILDER_H