-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
43 lines (30 loc) · 953 Bytes
/
Copy pathmain.cpp
File metadata and controls
43 lines (30 loc) · 953 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
41
42
43
#include <QApplication>
#include <QDebug>
#include <iostream>
#include <view/space.h>
#include <view/blueprintview.h>
#include <view/info.h>
#include <view/window.h>
#include <core/alignment.h>
#include <control/blueprint.h>
#include <control/commandline.h>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
Control::CommandLine parser(app);
const QStringList imageNames = parser.GetImageNames();
Core::Alignment::initSingleton();
Control::Blueprint::initSingleton();
View::BlueprintView *views[Core::ImageType::MAX];
for (unsigned short i = 0; i < Core::ImageType::MAX; ++i) {
const QString &name = imageNames[i];
views[i] = new View::BlueprintView(name, (Core::ImageType::Type)i);
}
View::Space *space = new View::Space(imageNames);
View::Info *info = new View::Info();
View::Window window(space, info, views);
app.exec();
for (unsigned short i = 0; i < Core::ImageType::MAX; ++i) {
delete views[i];
}
}