qmca  0.0.20
Public Slots | Public Member Functions | Private Attributes | List of all members
QmcaApplication Class Reference

#include <qmcaapplication.h>

Inheritance diagram for QmcaApplication:
Inheritance graph

Public Slots

void shutdownThreads ()
 

Public Member Functions

 QmcaApplication (int &argc, char **argv)
 
 ~QmcaApplication ()
 

Private Attributes

MCAMainWindowm_Window
 
MCAControllerm_Controller
 
QmcaEpicsInterfacem_EpicsInterface
 

Detailed Description

Definition at line 10 of file qmcaapplication.h.

Constructor & Destructor Documentation

QmcaApplication::QmcaApplication ( int &  argc,
char **  argv 
)

Definition at line 6 of file qmcaapplication.cpp.

References m_Controller, m_EpicsInterface, m_Window, and shutdownThreads().

7  : QApplication(argc, argv),
8  m_Window(NULL),
9  m_Controller(NULL),
10  m_EpicsInterface(NULL)
11 {
12  m_Window = new MCAMainWindow(this);
13 
15 
17 
18  for (int i=1; i<argc; i++) {
19  m_Controller -> addArgument(argv[i]);
20  }
21 
22  m_Window -> show();
23 
24  connect(this, SIGNAL(aboutToQuit()), this, SLOT(shutdownThreads()));
25 }
MCAMainWindow * m_Window
QmcaEpicsInterface * m_EpicsInterface
MCAController * m_Controller
QmcaApplication::~QmcaApplication ( )

Definition at line 27 of file qmcaapplication.cpp.

28 {
29 }

Member Function Documentation

void QmcaApplication::shutdownThreads ( )
slot

Definition at line 31 of file qmcaapplication.cpp.

References m_EpicsInterface.

Referenced by QmcaApplication().

32 {
33  m_EpicsInterface -> shutdown();
34 }
QmcaEpicsInterface * m_EpicsInterface

Member Data Documentation

MCAController* QmcaApplication::m_Controller
private

Definition at line 23 of file qmcaapplication.h.

Referenced by QmcaApplication().

QmcaEpicsInterface* QmcaApplication::m_EpicsInterface
private

Definition at line 24 of file qmcaapplication.h.

Referenced by QmcaApplication(), and shutdownThreads().

MCAMainWindow* QmcaApplication::m_Window
private

Definition at line 22 of file qmcaapplication.h.

Referenced by QmcaApplication().


The documentation for this class was generated from the following files: