Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
ImpMainWindow.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
6 *
7 * Visit http://camitk.imag.fr for more information
8 *
9 * This file is part of CamiTK.
10 *
11 * CamiTK is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * CamiTK is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * $CAMITK_LICENCE_END$
24 ****************************************************************************/
25
26
27#ifndef IMP_MAINWINDOW_H
28#define IMP_MAINWINDOW_H
29
30// -- Core stuff
31#include <MainWindow.h>
32
42 Q_OBJECT
43
44public:
45
50
52 void aboutToShow() override;
53
55 virtual ~ImpMainWindow();
56
59
64 virtual void addDockViewer(Qt::DockWidgetArea, camitk::Viewer*) override final;
65
70 virtual void setCentralViewer(camitk::Viewer*) override final;
71
73 virtual void redirectToConsole(bool) override;
75
76public slots:
77
81 void openDataDirectory(QString plugin);
83
87 virtual void refresh() override;
89
94
96 void toggleMenuBar();
97
99 void resetWindows();
100
102 void showStatusBar(bool);
103
105 void saveHistoryAsSCXML();
106
108
112 void editSettings();
113
115
116protected:
117
121 void updateViewMenu();
122
125
128
130 void updateActionStates();
131
133 void initActions();
135
136private:
137
140
142 void initMenuBar();
143
145
146
147
150
151 QMenu* fileMenu;
152 QMenu* editMenu;
153 QMenu* helpMenu;
154 QMenu* fileOpenDataDirectoryMenu;
155 QAction* fileOpen;
156 QAction* fileClose;
157 QAction* fileCloseAll;
158 QAction* fileSave;
159 QAction* fileSaveAs;
160 QAction* fileSaveAll;
161 QAction* workspaceSave;
162 QAction* fileQuit;
163
166
167 QMenu* viewMenu;
168 QAction* viewMenuBar;
169 QAction* viewStatusBar;
170 QAction* viewResetWindows;
172
176 QAction* editApplicationSettings;
177 QAction* editClearSelection;
178 QAction* saveHistory;
180
183
188 QMenu* actionMenu;
189
192 QMenu* devMenu;
193 QAction* newExtensionFileAction;
194 QAction* openExtensionFileAction;
195 QAction* registerExtensionAction;
196 QAction* verifyOrRebuildOnStartup;
198
202 QAction* helpAboutApp;
203
205 QAction* helpShowConsole;
207
211 QAction* changeLanguage;
213
216
218 QList<QAction*> recentDocumentActions;
219
221 QAction* recentDocumentSeparator;
222
224 QAction* editMenuSeparator;
225
227 QAction* viewMenuSeparator;
228
230 QAction* devMenuSeparator;
231
233 QAction* helpMenuSeparator;
235
236private slots:
237
239 void openRecentDocuments();
240
242 void deferUpdateDevMenu();
243
245 void updateDevMenu();
246
247};
248
249#endif // IMP_MAINWINDOW_H
250
This Class describes the "historical" imp application.
Definition ImpMainWindow.h:41
void toggleMenuBar()
show or hide the menu bar
Definition ImpMainWindow.cpp:601
virtual void redirectToConsole(bool) override
use or not the application console (overriden to add an action to show the console window)
Definition ImpMainWindow.cpp:812
void updateActionStates()
set the current QAction enable state depending on the current selection, also update the dev menu
Definition ImpMainWindow.cpp:373
virtual ~ImpMainWindow()
destructor
Definition ImpMainWindow.cpp:114
void updateOpenDirectoryMenu()
update the open data directory menu depending on registered plugins
Definition ImpMainWindow.cpp:863
void editSettings()
Definition ImpMainWindow.cpp:782
virtual void setCentralViewer(camitk::Viewer *) override final
set the central Viewer of the application.
Definition ImpMainWindow.cpp:149
void openDataDirectory(QString plugin)
Definition ImpMainWindow.cpp:669
void initActions()
initializes all QActions of the application
Definition ImpMainWindow.cpp:156
virtual void refresh() override
Definition ImpMainWindow.cpp:131
void aboutToShow() override
overriden from MainWindow to automatically load last opened document if needed
Definition ImpMainWindow.cpp:118
void updateViewMenu()
Definition ImpMainWindow.cpp:702
void resetWindows()
reset all windows in their initial state
Definition ImpMainWindow.cpp:621
void saveHistoryAsSCXML()
Save the history of action as a SCXML file.
Definition ImpMainWindow.cpp:858
void updateRecentDocumentsMenu()
update the recent document menu
Definition ImpMainWindow.cpp:837
void showStatusBar(bool)
show or hide the status bar
Definition ImpMainWindow.cpp:616
virtual void addDockViewer(Qt::DockWidgetArea, camitk::Viewer *) override final
add a Viewer to the application as a docking widget and specify where it has to be docked MainWindow ...
Definition ImpMainWindow.cpp:142
ImpMainWindow()
Definition ImpMainWindow.cpp:62
Definition PersistenceManager.h:30
This class is the base class for your application.
Definition MainWindow.h:68
Viewer is an abstract class that is the base class for all viewers.
Definition Viewer.h:182