qmca  0.0.20
qmcaapplication.cpp
Go to the documentation of this file.
1 #include "qmcaapplication.h"
2 #include "mcamainwindow.h"
3 #include "mcacontroller.h"
4 #include "qmcaepicsinterface.h"
5 
6 QmcaApplication::QmcaApplication(int &argc, char **argv)
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 }
26 
28 {
29 }
30 
32 {
33  m_EpicsInterface -> shutdown();
34 }
35 
MCAMainWindow * m_Window
QmcaEpicsInterface * m_EpicsInterface
MCAController * m_Controller
QmcaApplication(int &argc, char **argv)