21 #ifndef __qSlicerAppMainWindow_h 22 #define __qSlicerAppMainWindow_h 25 #include <QMainWindow> 26 #include <QVariantMap> 29 #include <ctkErrorLogModel.h> 30 class ctkErrorLogWidget;
31 class ctkPythonConsole;
34 #include "qSlicerAppExport.h" 36 #include "vtkSlicerConfigure.h" 39 class qSlicerAppMainWindowPrivate;
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_HelpKeyboardShortcutsAction_triggered();
108 virtual void on_HelpBrowseTutorialsAction_triggered();
109 virtual void on_HelpInterfaceDocumentationAction_triggered();
110 virtual void on_HelpSlicerPublicationsAction_triggered();
111 virtual void on_HelpVisualBlogAction_triggered();
113 virtual void on_HelpReportBugOrFeatureRequestAction_triggered();
114 virtual void on_HelpAboutSlicerAppAction_triggered();
116 virtual void on_EditApplicationSettingsAction_triggered();
117 virtual void on_CutAction_triggered();
118 virtual void on_CopyAction_triggered();
119 virtual void on_PasteAction_triggered();
120 virtual void on_ViewExtensionsManagerAction_triggered();
125 void initialWindowShown();
128 virtual void onModuleLoaded(
const QString& moduleName);
129 virtual void onModuleAboutToBeUnloaded(
const QString& moduleName);
132 virtual void onMRMLSceneModified(vtkObject*);
133 virtual void onLayoutChanged(
int);
134 virtual void onWarningsOrErrorsOccurred(ctkErrorLogLevel::LogLevel logLevel);
136 #ifdef Slicer_USE_PYTHONQT 137 virtual void onPythonConsoleUserInput(
const QString&);
142 virtual void setupMenuActions();
145 virtual void pythonConsoleInitialDisplay();
148 virtual void disclaimer();
153 virtual void dragEnterEvent(QDragEnterEvent *event);
157 virtual void dropEvent(QDropEvent *event);
165 virtual bool eventFilter(QObject*
object, QEvent* event);
167 virtual void closeEvent(QCloseEvent *event);
168 virtual void showEvent(QShowEvent *event);
171 QScopedPointer<qSlicerAppMainWindowPrivate>
d_ptr;
QScopedPointer< qSlicerAppMainWindowPrivate > d_ptr