21 #ifndef __qSlicerMainWindow_h 22 #define __qSlicerMainWindow_h 25 #include <QMainWindow> 26 #include <QVariantMap> 29 #include <ctkErrorLogModel.h> 32 #include "qSlicerBaseQTAppExport.h" 34 #include "vtkSlicerConfigure.h" 36 class ctkErrorLogWidget;
37 class ctkPythonConsole;
39 class qSlicerMainWindowPrivate;
57 #ifdef Slicer_USE_PYTHONQT 58 Q_INVOKABLE ctkPythonConsole* pythonConsole()
const;
62 Q_INVOKABLE ctkErrorLogWidget* errorLogWidget()
const;
70 virtual void setHomeModuleCurrent();
71 virtual void restoreToolbars();
73 virtual void on_FileFavoriteModulesAction_triggered();
74 virtual void on_FileAddDataAction_triggered();
75 virtual void on_FileLoadDataAction_triggered();
76 virtual void on_FileImportSceneAction_triggered();
77 virtual void on_FileLoadSceneAction_triggered();
78 virtual void on_FileAddVolumeAction_triggered();
79 virtual void on_FileAddTransformAction_triggered();
80 virtual void on_FileSaveSceneAction_triggered();
81 virtual void on_FileExitAction_triggered();
82 virtual void onFileRecentLoadedActionTriggered();
83 virtual void on_SDBSaveToDirectoryAction_triggered();
84 virtual void on_SDBSaveToMRBAction_triggered();
85 virtual void on_FileCloseSceneAction_triggered();
86 virtual void on_LoadDICOMAction_triggered();
88 virtual void on_EditRecordMacroAction_triggered();
89 virtual void on_EditPlayMacroAction_triggered();
90 virtual void on_EditUndoAction_triggered();
91 virtual void on_EditRedoAction_triggered();
93 virtual void on_ModuleHomeAction_triggered();
95 virtual void onLayoutActionTriggered(QAction* action);
96 virtual void onLayoutCompareActionTriggered(QAction* action);
97 virtual void onLayoutCompareWidescreenActionTriggered(QAction* action);
98 virtual void onLayoutCompareGridActionTriggered(QAction* action);
101 virtual void setLayout(
int);
107 virtual void setLayoutNumberOfCompareViewRows(
int);
108 virtual void setLayoutNumberOfCompareViewColumns(
int);
110 virtual void onPythonConsoleToggled(
bool);
112 virtual void on_WindowErrorLogAction_triggered();
113 virtual void on_WindowToolbarsResetToDefaultAction_triggered();
115 virtual void on_EditApplicationSettingsAction_triggered();
116 virtual void on_CutAction_triggered();
117 virtual void on_CopyAction_triggered();
118 virtual void on_PasteAction_triggered();
119 virtual void on_ViewExtensionsManagerAction_triggered();
121 virtual void on_ShowStatusBarAction_triggered(
bool);
133 virtual void saveGUIState(
bool force=
false);
137 virtual void restoreGUIState(
bool force=
false);
142 virtual void on_FavoriteModulesChanged();
147 void initialWindowShown();
150 virtual void onModuleLoaded(
const QString& moduleName);
151 virtual void onModuleAboutToBeUnloaded(
const QString& moduleName);
155 virtual void onMRMLSceneModified(vtkObject*);
156 virtual void onLayoutChanged(
int);
157 virtual void onWarningsOrErrorsOccurred(ctkErrorLogLevel::LogLevel logLevel);
160 void setExtensionUpdatesAvailable(
bool updateAvailable);
162 #ifdef Slicer_USE_PYTHONQT 163 virtual void onPythonConsoleUserInput(
const QString&);
168 virtual void setupMenuActions();
171 virtual void pythonConsoleInitialDisplay();
174 virtual void disclaimer();
179 void dragEnterEvent(QDragEnterEvent *event)
override;
183 void dropEvent(QDropEvent *event)
override;
191 bool eventFilter(QObject*
object, QEvent* event)
override;
193 void closeEvent(QCloseEvent *event)
override;
194 void showEvent(QShowEvent *event)
override;
196 void changeEvent(QEvent* event)
override;
199 QScopedPointer<qSlicerMainWindowPrivate>
d_ptr;
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
QScopedPointer< qSlicerMainWindowPrivate > d_ptr