-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
57 lines (36 loc) · 1.09 KB
/
main.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
49
50
51
52
53
54
55
56
57
#include <QtWidgets/QApplication>
#include <QGuiApplication>
#include "interface/InterfaceWindow.h"
#include "interface/RenderingWidget.h"
#include "core/Network/Network.h"
#ifdef test_itself
#include "core/test/allTests.h"
#include "core/test/Debug_inspector.h"
using namespace test;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
core::Network network;
test::Network test_network(network);
test_network.init_common_data_for_all_tests();
//test::Input input(network);
//input.bring_inputs_to_representation_of_network();
//input.init_input_characteristics();
render::RenderingWidget renderingWindow(network);
renderingWindow.show();
//InterfaceWindow interfaceWindow(network);
//interfaceWindow.show();
return app.exec();
//test_network.work_of_network();
debug.write_resume();
}
#else
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Network *network = new Network();
InterfaceWindow* interfaceWindow = new InterfaceWindow();
interfaceWindow->show();
return a.exec();
}
#endif