-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstartup.cpp
48 lines (43 loc) · 1.32 KB
/
startup.cpp
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
41
42
43
44
45
46
47
48
#include "startup.h"
#include "View/mainview.h"
#include "View/setuptab.h"
#include "View/controltab.h"
#include "utils.h"
#include "Model/settings.h"
#include "Model/provider.h"
#include "Model/instsocket.h"
#include "Model/instrument.h"
#include "ViewMgr/setupviewmanager.h"
#include "ViewMgr/controltabviewmanager.h"
namespace Ps {
Startup::Startup() :
QObject(NULL),
m_setupTab(*new SetupTab(NULL)),
m_controlTab(*new ControlTab(NULL)),
m_mainView(*new MainView(NULL,
m_setupTab,
m_controlTab)),
m_instrument(new Instrument(this,
*new InstSocket(this),
Provider::GetSettingsAsSingleton())),
m_setupVm(new SetupViewManager(this,
m_setupTab,
m_controlTab,
*m_instrument,
Provider::GetSettingsAsSingleton())),
m_controlVm(new ControlTabViewManager(this,
m_controlTab,
*m_instrument))
{
m_instrument->Disconnect();
}
Startup::~Startup()
{
Utils::DestructorMsg(this);
delete &m_mainView;
}
void Startup::show() const
{
m_mainView.show();
}
} // namespace