-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.cpp
130 lines (93 loc) · 4.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include"NodeSystem/blackboard.h"
#include"NodeSystem/nodevaluefinder.h"
#include"NodeSystem/cursor.h"
#include"NodeSystem/Derived/printnode.h"
#include"NodeSystem/Derived/addnode.h"
#include"NodeSystem/Derived/var1d.h"
#include"NodeSystem/Derived/subtract.h"
#include"NodeSystem/Derived/multiplynode.h"
#include"NodeSystem/Derived/dividenode.h"
#include"NodeSystem/Derived/modulonode.h"
#include"NodeSystem/Derived/math/sinnode.h"
#include"NodeSystem/Derived/math/cosnode.h"
#include"NodeSystem/Derived/math/tannode.h"
#include"NodeSystem/Derived/math/atannode.h"
#include"NodeSystem/Derived/math/asinnode.h"
#include"NodeSystem/Derived/math/acosnode.h"
#include"NodeSystem/Derived/math/hypotnode.h"
#include"NodeSystem/Derived/math/atan2node.h"
#include"NodeSystem/Derived/math/hypotnode.h"
#include"NodeSystem/Derived/math/pownode.h"
#include"NodeSystem/Derived/math/lognode.h"
#include"NodeSystem/Derived/math/sqrtnode.h"
#include"NodeSystem/Derived/math/expnode.h"
#include"NodeSystem/Derived/math/sinhnode.h"
#include"NodeSystem/Derived/math/coshnode.h"
#include"NodeSystem/Derived/math/tanhnode.h"
#include"NodeSystem/Derived/math/atanhnode.h"
#include"NodeSystem/Derived/math/acoshnode.h"
#include"NodeSystem/Derived/math/asinhnode.h"
#include"NodeSystem/Derived/math/pinode.h"
#include"NodeSystem/Derived/math/econstnode.h"
#include"NodeSystem/Derived/math/degreesnode.h"
#include"NodeSystem/Derived/math/radiansnode.h"
#include"NodeSystem/Derived/math/lgammanode.h"
#include"NodeSystem/Derived/math/gammanode.h"
#include"NodeSystem/Derived/math/erfcnode.h"
#include"NodeSystem/Derived/math/erfnode.h"
#include"NodeSystem/Derived/math/ceilnode.h"
#include"NodeSystem/Derived/math/floornode.h"
#include"NodeSystem/Derived/math/factorialnode.h"
#include"NodeSystem/Derived/math/frexpnode.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
qmlRegisterType<BlackBoard>("blackBoard",1,0,"Board");
qmlRegisterType<NodeValueFinder>("noderesults",1,0,"Result");
qmlRegisterType<Cursor>("cursor",1,0,"Cursor");
qmlRegisterType<PrintNode>("printnode",1,0,"Print");
qmlRegisterType<Var1D>("var1d",1,0,"Var1D");
qmlRegisterType<AddNode>("addnode",1,0,"Add");
qmlRegisterType<Subtract>("subtractnode",1,0,"Subtract");
qmlRegisterType<Multiply>("multiplynode",1,0,"Multiply");
qmlRegisterType<Divide>("dividenode",1,0,"Divide");
qmlRegisterType<ModuloNode>("modulonode",1,0,"Modulo");
qmlRegisterType<SinNode>("sinnode",1,0,"Sin");
qmlRegisterType<cosnode>("cosnode",1,0,"Cos");
qmlRegisterType<tannode>("tannode",1,0,"Tan");
qmlRegisterType<ATan>("atannode",1,0,"ATan");
qmlRegisterType<ACosNode>("acosnode",1,0,"ACos");
qmlRegisterType<asinnode>("asinnode",1,0,"ASin");
qmlRegisterType<ATan2Node>("atan2node",1,0,"ATan2");
qmlRegisterType<HypotNode>("hypotnode",1,0,"Hypot");
qmlRegisterType<PowNode>("pownode",1,0,"Pow");
qmlRegisterType<LogNode>("lognode",1,0,"Log");
qmlRegisterType<ExpNode>("expnode",1,0,"Exp");
qmlRegisterType<SqrtNode>("sqrtnode",1,0,"Sqrt");
qmlRegisterType<ASinHNode>("sinhnode",1,0,"Sinh");
qmlRegisterType<CosHNode>("coshnode",1,0,"Cosh");
qmlRegisterType<TanHNode>("tanhnode",1,0,"Tanh");
qmlRegisterType<ATanHNode>("atanhnode",1,0,"ATanh");
qmlRegisterType<ACosHNode>("acoshnode",1,0,"ACosh");
qmlRegisterType<ASinHNode>("asinhnode",1,0,"ASinh");
qmlRegisterType<PiNode>("pinode",1,0,"PI");
qmlRegisterType<EconstNode>("econstnode",1,0,"E");
qmlRegisterType<DegreesNode>("degreesnode",1,0,"Degrees");
qmlRegisterType<RadiansNode>("radiansnode",1,0,"Radians");
qmlRegisterType<ErfNode>("erfnode",1,0,"Erf");
qmlRegisterType<ErfcNode>("erfcnode",1,0,"Ergc");
qmlRegisterType<GammaNode>("gammanode",1,0,"Gamma");
qmlRegisterType<ErfcNode>("lgammanode",1,0,"LGamma");
qmlRegisterType<FrexpNode>("frexpnode",1,0,"Frexp");
qmlRegisterType<FloorNode>("floornode",1,0,"Floor");
qmlRegisterType<CeilNode>("ceilnode",1,0,"Ceil");
qmlRegisterType<FactorialNode>("factorialnode",1,0,"Factorial");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}