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_FileCloseSceneAction_triggered();
83 virtual void on_LoadDICOMAction_triggered();
85 virtual void on_EditRecordMacroAction_triggered();
86 virtual void on_EditPlayMacroAction_triggered();
87 virtual void on_EditUndoAction_triggered();
88 virtual void on_EditRedoAction_triggered();
90 virtual void on_ModuleHomeAction_triggered();
92 virtual void onLayoutActionTriggered(QAction* action);
93 virtual void onLayoutCompareActionTriggered(QAction* action);
94 virtual void onLayoutCompareWidescreenActionTriggered(QAction* action);
95 virtual void onLayoutCompareGridActionTriggered(QAction* action);
97 virtual void setLayout(
int);
98 virtual void setLayoutNumberOfCompareViewRows(
int);
99 virtual void setLayoutNumberOfCompareViewColumns(
int);
101 virtual void onPythonConsoleToggled(
bool);
103 virtual void on_WindowErrorLogAction_triggered();
104 virtual void on_WindowToolbarsResetToDefaultAction_triggered();
106 virtual void on_EditApplicationSettingsAction_triggered();
107 virtual void on_CutAction_triggered();
108 virtual void on_CopyAction_triggered();
109 virtual void on_PasteAction_triggered();
110 virtual void on_ViewExtensionsManagerAction_triggered();
115 void initialWindowShown();
118 virtual void onModuleLoaded(
const QString& moduleName);
119 virtual void onModuleAboutToBeUnloaded(
const QString& moduleName);
122 virtual void onMRMLSceneModified(vtkObject*);
123 virtual void onLayoutChanged(
int);
124 virtual void onWarningsOrErrorsOccurred(ctkErrorLogLevel::LogLevel logLevel);
126 #ifdef Slicer_USE_PYTHONQT 127 virtual void onPythonConsoleUserInput(
const QString&);
132 virtual void setupMenuActions();
135 virtual void pythonConsoleInitialDisplay();
138 virtual void disclaimer();
143 void dragEnterEvent(QDragEnterEvent *event)
override;
147 void dropEvent(QDropEvent *event)
override;
155 bool eventFilter(QObject*
object, QEvent* event)
override;
157 void closeEvent(QCloseEvent *event)
override;
158 void showEvent(QShowEvent *event)
override;
160 void changeEvent(QEvent* event)
override;
163 QScopedPointer<qSlicerMainWindowPrivate>
d_ptr;
QScopedPointer< qSlicerMainWindowPrivate > d_ptr