Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkSafeApplication.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QMITKSAFEAPPLICATION_H
18 #define QMITKSAFEAPPLICATION_H
19 
20 #include <MitkAppUtilExports.h>
21 
22 #include <QApplication>
23 #include <QMessageBox>
24 
25 class MITKAPPUTIL_EXPORT QmitkSafeApplication : public QApplication
26 {
27 public:
28  QmitkSafeApplication(int &argc, char **argv);
29 
37  bool notify(QObject *receiver, QEvent *event) override;
38 
39  void setSafeMode(bool safeMode);
40 
41  bool getSafeMode() const;
42 
43 private:
44  bool m_SafeMode;
45 };
46 
47 #endif // QMITKSAFEAPPLICATION_H
#define MITKAPPUTIL_EXPORT