135 void AddMenu(
const char*,
const char*)
override;
142 void AddButton(
const char*,
const char*,
const char*)
override;
151 void AddIcon(
const char* userLabel,
const char* iconFile,
const char* command,
152 const char* file_name =
"")
override;
157 void SetOutputStyle(
const char* destination,
const char* style)
override;
255 void CreateHelpWidget();
256 void InitHelpTreeAndVisParametersWidget();
258 void UpdateCommandCompleter();
260 void ExitHelp()
const override;
261 void SetDefaultIconsToolbar();
264 QTreeWidgetItem* FindTreeItem(QTreeWidgetItem*,
const QString&);
267 QWidget* CreateSceneTreeWidget();
272 void CreateNewSceneTreeWidget();
274 void BuildPVQTree(
const G4SceneTreeItem& g4stItem, QTreeWidgetItem* qtwItem);
276 void SceneTreeItemClicked(QTreeWidgetItem*);
277 void SceneTreeItemDoubleClicked(QTreeWidgetItem*);
278 void SceneTreeItemExpanded(QTreeWidgetItem*);
279 void SceneTreeItemCollapsed(QTreeWidgetItem*);
281 struct NewSceneTreeItemTreeWidget:
public QTreeWidget {
282 void mousePressEvent(QMouseEvent*)
override;
294 bool eventFilter(QObject*, QEvent*)
override;
296#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
297 QMap<G4int, QString> LookForHelpStringInChildTree(
G4UIcommandTree*,
const QString&);
299 QMultiMap<G4int, QString> LookForHelpStringInChildTree(
G4UIcommandTree*,
const QString&);
301 QWidget* CreateVisParametersTBWidget();
302 QWidget* CreateHelpTBWidget();
304 QWidget* CreateHistoryTBWidget();
306 void CreateViewerWidget();
307 void OpenHelpTreeOnCommand(
const QString&);
308 QString GetShortCommandPath(QString);
309 QString GetLongCommandPath(QTreeWidgetItem*);
313 void CreateViewerPropertiesDialog();
314 void CreatePickInfosDialog();
315#ifdef G4MULTITHREADED
316 void UpdateCoutThreadFilter();
318 void FilterAllOutputTextArea();
319 QString FilterOutput(
const G4UIOutputString&,
const QString&,
const QString&);
321 G4bool CheckG4EnvironmentVariable(
char* txt,
char* version);
322 QStandardItemModel* CreateCompleterModel(
G4String aCmd);
323 void CreateEmptyViewerPropertiesWidget();
324 void CreateEmptyPickInfosWidget();
327 QMainWindow* fMainWindow;
328 QLabel* fCommandLabel;
329 QLineEdit* fCommandArea;
330 QTextEdit* fCoutTBTextArea;
331 QTabWidget* fUITabWidget;
332 std::vector<G4UIOutputString> fG4OutputString;
333 QLineEdit* fCoutFilter;
334 QCompleter* fCompleter;
337 QListWidget* fHistoryTBTableList;
338 QTreeWidget* fHelpTreeWidget;
339 QWidget* fHelpTBWidget;
340 QWidget* fHistoryTBWidget;
343 QWidget* fSceneTreeWidget;
344 QWidget* fNewSceneTreeWidget;
345 NewSceneTreeItemTreeWidget* fNewSceneTreeItemTreeWidget;
346 QWidget* fViewerPropertiesWidget;
347 QWidget* fPickInfosWidget;
348 QLineEdit* fHelpLine;
351 QTextBrowser* fStartPage;
352 QSplitter* fHelpVSplitter;
353 QTextEdit* fParameterHelpLabel;
354 QTableWidget* fParameterHelpTable;
356 QToolBar* fToolbarApp;
357 QToolBar* fToolbarUser;
358 QString fStringSeparator;
360 QString fLastOpenPath;
362 QPixmap* fSearchIcon;
367 QPixmap* fRotateIcon;
369 QPixmap* fZoomInIcon;
370 QPixmap* fZoomOutIcon;
371 QPixmap* fWireframeIcon;
373 QPixmap* fHiddenLineRemovalIcon;
374 QPixmap* fHiddenLineAndSurfaceRemovalIcon;
375 QPixmap* fPerspectiveIcon;
377 QPixmap* fCommandIcon;
381 QPixmap* fPickTargetIcon;
384#ifdef G4MULTITHREADED
385 QComboBox* fThreadsFilterComboBox;
387 std::string fDefaultViewerFirstPageHTMLText;
389 QDialog* fViewerPropertiesDialog;
390 QDialog* fPickInfosDialog;
391 QString fLastCompleteCommand;
400 void ClearButtonCallback();
401 void SaveOutputCallback();
402 void CommandEnteredCallback();
403 void CommandEditedCallback(
const QString& text);
404 void ButtonCallback(
const QString&);
405 void HelpTreeClicCallback();
406 void HelpTreeDoubleClicCallback();
407 void ShowHelpCallback();
408 void CommandHistoryCallback();
409 void LookForHelpStringCallback();
410 void UpdateTabWidget(
int);
411 void ResizeTabWidget(QResizeEvent*);
412 void CoutFilterCallback(
const QString&);
413 void ThreadComboBoxCallback(
int);
414 void TabCloseCallback(
int);
415 void ToolBoxActivated(
int);
416 void VisParameterCallback(QWidget*);
417 void ChangeColorCallback(QWidget*);
418 void ChangeCursorAction(
const QString&);
419 void ChangeSurfaceStyle(
const QString&);
420 void OpenIconCallback(
const QString&);
421 void SaveIconCallback(
const QString&);
422 void ViewerPropertiesIconCallback(
int);
423 void ChangePerspectiveOrtho(
const QString&);