Fraxinus  18.10
An IGT application
cxApplication.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXAPPLICATION_H_
13 #define CXAPPLICATION_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include <QApplication>
18 
19 namespace cx
20 {
21 
32 class cxResource_EXPORT Application : public QApplication
33 {
34 public:
35  Application(int& argc, char** argv);
36  virtual ~Application() {}
37  virtual bool notify(QObject *rec, QEvent *ev);
38 private:
39  void reportException(QString text);
40  void force_C_locale_decimalseparator();
41 };
42 
43 void cxResource_EXPORT bringWindowToFront(QWidget* window);
44 cxResource_EXPORT QWidget* getMainWindow();
45 template<typename T>
46 cxResource_EXPORT T findMainWindowChildWithObjectName(QString objectName);
47 void cxResource_EXPORT triggerMainWindowActionWithObjectName(QString actionName);
48 
49 } // namespace cx
50 
51 #endif // CXAPPLICATION_H_
T findMainWindowChildWithObjectName(QString objectName)
virtual ~Application()
Definition: cxApplication.h:36
void bringWindowToFront(QWidget *window)
void triggerMainWindowActionWithObjectName(QString actionName)
QWidget * getMainWindow()
Namespace for all CustusX production code.