21 #ifndef __qSlicerMainWindow_h 22 #define __qSlicerMainWindow_h 25 #include <QMainWindow> 26 #include <QVariantMap> 29 #include <ctkErrorLogModel.h> 30 class ctkErrorLogWidget;
31 class ctkPythonConsole;
34 #include "qSlicerBaseQTAppExport.h" 36 #include "vtkSlicerConfigure.h" 39 class qSlicerMainWindowPrivate;
58 #ifdef Slicer_USE_PYTHONQT 59 Q_INVOKABLE ctkPythonConsole* pythonConsole()
const;
63 Q_INVOKABLE ctkErrorLogWidget* errorLogWidget()
const;
68 virtual void setHomeModuleCurrent();
69 virtual void restoreToolbars();
71 virtual void on_FileAddDataAction_triggered();
72 virtual void on_FileLoadDataAction_triggered();
73 virtual void on_FileImportSceneAction_triggered();
74 virtual void on_FileLoadSceneAction_triggered();
75 virtual void on_FileAddVolumeAction_triggered();
76 virtual void on_FileAddTransformAction_triggered();
77 virtual void on_FileSaveSceneAction_triggered();
78 virtual void on_FileExitAction_triggered();
79 virtual void onFileRecentLoadedActionTriggered();
80 virtual void on_SDBSaveToDirectoryAction_triggered();
81 virtual void on_SDBSaveToMRBAction_triggered();
82 virtual void on_SDBSaveToDCMAction_triggered();
83 virtual void on_FileCloseSceneAction_triggered();
84 virtual void on_LoadDICOMAction_triggered();
86 virtual void on_EditRecordMacroAction_triggered();
87 virtual void on_EditPlayMacroAction_triggered();
88 virtual void on_EditUndoAction_triggered();
89 virtual void on_EditRedoAction_triggered();
91 virtual void on_ModuleHomeAction_triggered();
93 virtual void onLayoutActionTriggered(QAction* action);
94 virtual void onLayoutCompareActionTriggered(QAction* action);
95 virtual void onLayoutCompareWidescreenActionTriggered(QAction* action);
96 virtual void onLayoutCompareGridActionTriggered(QAction* action);
98 virtual void setLayout(
int);
99 virtual void setLayoutNumberOfCompareViewRows(
int);
100 virtual void setLayoutNumberOfCompareViewColumns(
int);
102 virtual void onPythonConsoleToggled(
bool);
104 virtual void on_WindowErrorLogAction_triggered();
105 virtual void on_WindowToolbarsResetToDefaultAction_triggered();
107 virtual void on_EditApplicationSettingsAction_triggered();
108 virtual void on_CutAction_triggered();
109 virtual void on_CopyAction_triggered();
110 virtual void on_PasteAction_triggered();
111 virtual void on_ViewExtensionsManagerAction_triggered();
116 void initialWindowShown();
119 virtual void onModuleLoaded(
const QString& moduleName);
120 virtual void onModuleAboutToBeUnloaded(
const QString& moduleName);
123 virtual void onMRMLSceneModified(vtkObject*);
124 virtual void onLayoutChanged(
int);
125 virtual void onWarningsOrErrorsOccurred(ctkErrorLogLevel::LogLevel logLevel);
127 #ifdef Slicer_USE_PYTHONQT 128 virtual void onPythonConsoleUserInput(
const QString&);
133 virtual void setupMenuActions();
136 virtual void pythonConsoleInitialDisplay();
139 virtual void disclaimer();
144 virtual void dragEnterEvent(QDragEnterEvent *event);
148 virtual void dropEvent(QDropEvent *event);
156 virtual bool eventFilter(QObject*
object, QEvent* event);
158 virtual void closeEvent(QCloseEvent *event);
159 virtual void showEvent(QShowEvent *event);
162 QScopedPointer<qSlicerMainWindowPrivate>
d_ptr;
QScopedPointer< qSlicerMainWindowPrivate > d_ptr