38#include <qstringlist.h>
39#include <qtabwidget.h>
40#include <qdockwidget.h>
62class QStandardItemModel;
131 void AddMenu(
const char*,
const char*);
136 void AddButton(
const char*,
const char*,
const char*);
142 void AddIcon(
const char* userLabel,
const char* iconFile,
const char* command,
const char* file_name=
"");
149 void OutputStyle (
const char*,
const char*,
const char*);
168 return fViewerTabWidget;
183 return fMoveSelected;
186 return fRotateSelected;
189 return fPickSelected;
192 return fZoomInSelected;
195 return fZoomOutSelected;
226 return fCoutDockWidget->widget();
231 return fCoutDockWidget;
236 return fUIDockWidget;
246 return fHistoryTBWidget;
251 return fHelpTBWidget;
272 void CreateHelpWidget();
273 void InitHelpTreeAndVisParametersWidget();
275 void UpdateCommandCompleter();
277 virtual void ExitHelp()
const;
278 void SetDefaultIconsToolbar();
281 QTreeWidgetItem* FindTreeItem(QTreeWidgetItem *,
const QString&);
286 bool eventFilter(QObject*,QEvent*);
288#if QT_VERSION < 0x050F00
289 QMap<G4int,QString> LookForHelpStringInChildTree(
G4UIcommandTree *,
const QString&);
291 QMultiMap<G4int,QString> LookForHelpStringInChildTree(
G4UIcommandTree *,
const QString&);
293 QWidget* CreateVisParametersTBWidget();
294 QWidget* CreateHelpTBWidget();
296 QWidget* CreateHistoryTBWidget();
298 QWidget* CreateSceneTreeWidget();
299 void CreateViewerWidget();
300 void OpenHelpTreeOnCommand(
const QString &);
301 QString GetShortCommandPath(QString);
302 QString GetLongCommandPath(QTreeWidgetItem*);
306 void CreateViewerPropertiesDialog();
307 void CreatePickInfosDialog();
308#ifdef G4MULTITHREADED
309 void UpdateCoutThreadFilter();
311 void FilterAllOutputTextArea();
312 QString FilterOutput(
const G4UIOutputString&,
const QString&,
const QString&);
314 G4bool CheckG4EnvironmentVariable(
char* txt,
char* version);
315 QStandardItemModel* CreateCompleterModel(
G4String aCmd);
316 void CreateEmptyViewerPropertiesWidget();
317 void CreateEmptyPickInfosWidget();
320 QMainWindow * fMainWindow;
321 QLabel *fCommandLabel;
322 QLineEdit * fCommandArea;
323 QTextEdit *fCoutTBTextArea;
324 QTabWidget* fUITabWidget;
325 std::vector <G4UIOutputString> fG4OutputString;
326 QLineEdit * fCoutFilter;
327 QCompleter* fCompleter;
330 QListWidget *fHistoryTBTableList;
331 QTreeWidget *fHelpTreeWidget;
332 QWidget* fHelpTBWidget;
333 QWidget* fHistoryTBWidget;
336 QWidget* fSceneTreeWidget;
337 QWidget* fViewerPropertiesWidget;
338 QWidget* fPickInfosWidget;
339 QLineEdit* fHelpLine;
342 QTextBrowser *fStartPage;
343 QSplitter * fHelpVSplitter;
344 QTextEdit* fParameterHelpLabel;
345 QTableWidget* fParameterHelpTable;
347 QToolBar *fToolbarApp;
348 QToolBar *fToolbarUser;
349 QString fStringSeparator;
351 QString fLastOpenPath;
352 QToolButton* fViewModePopupButton;
353 QToolButton* fSurfaceModePopupButton;
355 QPixmap* fSearchIcon;
360 QPixmap* fRotateIcon;
362 QPixmap* fZoomInIcon;
363 QPixmap* fZoomOutIcon;
364 QPixmap* fWireframeIcon;
366 QPixmap* fHiddenLineRemovalIcon;
367 QPixmap* fHiddenLineAndSurfaceRemovalIcon;
368 QPixmap* fPerspectiveIcon;
370 QPixmap* fCommandIcon;
374 QPixmap* fPickTargetIcon;
377#ifdef G4MULTITHREADED
378 QComboBox* fThreadsFilterComboBox;
380 std::string fDefaultViewerFirstPageHTMLText;
382 QDialog* fViewerPropertiesDialog;
383 QDialog* fPickInfosDialog;
384 QString fLastCompleteCommand;
393 std::map<G4String,G4UIQtStyle> fOutputStyles;
397 void ClearButtonCallback();
398 void SaveOutputCallback();
399 void CommandEnteredCallback();
400 void CommandEditedCallback(
const QString & text);
401 void ButtonCallback(
const QString&);
402 void HelpTreeClicCallback();
403 void HelpTreeDoubleClicCallback();
404 void ShowHelpCallback();
405 void CommandHistoryCallback();
406 void LookForHelpStringCallback();
407 void UpdateTabWidget(
G4int);
408 void ResizeTabWidget( QResizeEvent* );
409 void CoutFilterCallback(
const QString&);
410 void ThreadComboBoxCallback(
G4int);
411 void TabCloseCallback(
G4int);
412 void ToolBoxActivated(
G4int);
413 void VisParameterCallback(QWidget*);
414 void ChangeColorCallback(QWidget*);
415 void ChangeCursorAction(
const QString&);
416 void ChangeSurfaceStyle(
const QString&);
417 void OpenIconCallback(
const QString&);
418 void SaveIconCallback(
const QString&);
419 void ViewerPropertiesIconCallback(
G4int);
420 void ChangePerspectiveOrtho(
const QString&);
G4bool IsSplitterReleased()
QMainWindow * GetMainWindow()
void SetIconPickSelected()
G4bool AddTabWidget(QWidget *, QString)
QWidget * GetViewerPropertiesWidget()
void SetIconOrthoSelected()
void SetStartPage(const std::string &)
QWidget * GetCoutWidget()
G4bool IsIconRotateSelected()
G4bool IsIconZoomInSelected()
G4bool AddViewerTabFromFile(std::string fileName, std::string title)
virtual void PauseSessionStart(const G4String &)
G4bool IsIconMoveSelected()
void SetIconZoomInSelected()
QPixmap * getSearchIcon()
G4bool IsIconZoomOutSelected()
QWidget * GetSceneTreeWidget()
G4UIDockWidget * GetUserInterfaceWidget()
void SetIconZoomOutSelected()
G4UIDockWidget * GetCoutDockWidget()
void SetIconHLRSelected()
void SetIconPerspectiveSelected()
virtual G4int ReceiveG4cout(const G4String &)
QTabWidget * GetViewerTabWidget()
virtual G4int ReceiveG4cerr(const G4String &)
G4UIsession * SessionStart()
QWidget * GetPickInfosWidget()
void SetIconSolidSelected()
void DefaultIcons(G4bool aVal)
QWidget * GetHelpWidget()
void NativeMenu(G4bool aVal)
void SetIconRotateSelected()
void AddButton(const char *, const char *, const char *)
G4bool IsIconPickSelected()
QTabWidget * GetUITabWidget()
void AddMenu(const char *, const char *)
void AddIcon(const char *userLabel, const char *iconFile, const char *command, const char *file_name="")
void SetIconWireframeSelected()
void SetIconMoveSelected()
G4bool AddViewerTab(QWidget *w, std::string title)
void SetIconHLHSRSelected()
void OutputStyle(const char *, const char *, const char *)
QWidget * GetHistoryWidget()