-
Notifications
You must be signed in to change notification settings - Fork 0
/
trackcircuit.cxx
55 lines (52 loc) · 917 Bytes
/
trackcircuit.cxx
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
#include "trackcircuit.hxx"
QMap<QString, EWRB::TrackCircuit*> EWRB::TrackCircuits(QWidget* parent) {
QMap<QString, TrackCircuit*> blocks_ = {};
QList<QString> block_names_ = {
"131_A_129_B",
"129_A",
"131_BC",
"133",
"175_A_173",
"177_A_175_B",
"177_B",
"AA",
"AB",
"AC",
"AD",
"AL",
"AM",
"AO",
"AJ",
"AK",
"AP",
"AV",
"AF",
"AG",
"AE",
"BP",
"AQ_AS",
"AX_AY_AZ",
"BA",
"BB",
"BC",
"BD",
"BE",
"BH",
"BN",
"BJ",
"BM",
"BL",
"BQ",
"BV_BT_BR",
"CA",
"UF",
"UH",
"UJ",
"UK",
"UL"
};
for(const QString& block : block_names_) {
blocks_[block] = new TrackCircuit(block, parent, ":/svgs/svgs/Block_"+block+".svg");
}
return blocks_;
}