-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.h
More file actions
40 lines (31 loc) · 802 Bytes
/
Copy pathApplication.h
File metadata and controls
40 lines (31 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file Application.h
* @author Dan R. Lipsa
* @date 27 August 2010
* @ingroup ui
* @brief Implements the singleton design pattern to access a global
* application pointer.
*
*/
#ifndef __APPLICATION_H__
#define __APPLICATION_H__
/**
* @brief Implements the singleton design pattern to access a global
* application pointer.
*/
class Application: public QVTKApplication
{
public:
Application(int& c, char** v);
virtual bool notify(QObject *rec, QEvent *ev);
public:
static boost::shared_ptr<Application> Get (int& c, char** v);
static boost::shared_ptr<Application> Get ();
static void release ();
private:
static boost::shared_ptr<Application> m_application;
};
#endif //__APPLICATION_H__
// Local Variables:
// mode: c++
// End: