This repository was archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
50 lines (44 loc) · 1.59 KB
/
main.cpp
File metadata and controls
50 lines (44 loc) · 1.59 KB
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
49
50
#include <QtGui/QApplication>
#include <QTextCodec>
#include <QTextStream>
#include <QSplashScreen>
#include "mainwindow.h"
#include "comm.h"
#include "model/singletarget.h"
#include "model/TargetGroup.h"
#include "datasource/targetgenerator.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF8"));
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF8"));
QSplashScreen* splash = new QSplashScreen;
splash -> setPixmap(QPixmap(":/images/images/splash.png"));
splash -> show();
Qt::Alignment bottomRight = Qt::AlignRight | Qt::AlignBottom;
splash -> showMessage(QObject::tr("加载中..."), bottomRight, Qt::white);
MainWindow w(splash);
return a.exec();
// QTextStream out(stdout);
// TargetGenerator generator(2, 3);
// generator.go(1);
// out << "current states : " << endl;
// std::vector<State> states = generator.getCurrentStates();
// std::vector<State>::iterator iter;
// for (iter = states.begin(); iter != states.end(); ++iter) {
// (*iter).print(out);
// }
// generator.go(1);
// out << "current states : " << endl;
// states = generator.getCurrentStates();
// for (iter = states.begin(); iter != states.end(); ++iter) {
// (*iter).print(out);
// }
// generator.go(1);
// out << "current states : " << endl;
// states = generator.getCurrentStates();
// for (iter = states.begin(); iter != states.end(); ++iter) {
// (*iter).print(out);
// }
}