##// END OF EJS Templates
Minor updates to the rmapplugin...
leroy -
r45:bff3fdf42776 default
parent child
Show More
@@ -0,0 +1,224
1 #include "parameterdump.h"
2
3 ParameterDump::ParameterDump(QWidget *parent) :
4 QWidget(parent)
5 {
6 this->buildTabParameterDump();
7
8 this->setLayout(layout_parameterDump);
9 }
10
11 void ParameterDump::buildTabParameterDump()
12 {
13 buildCOMM();
14 buildNORM();
15 buildBURST();
16 buildSBM1();
17 buildSBM2();
18
19 layout_parameterDump = new QGridLayout();
20
21 layout_parameterDump->addWidget(groupbox_COMM, 0, 0, 1, 1);
22 layout_parameterDump->addWidget(groupbox_NORM, 0, 1, 1, 1);
23 layout_parameterDump->addWidget(groupbox_BURST, 1, 0, 1, 1);
24 layout_parameterDump->addWidget(groupbox_SBM1,2 , 0, 1, 1);
25 layout_parameterDump->addWidget(groupbox_SBM2, 2, 1, 1, 1);
26
27 layout_parameterDump->setRowStretch(3, 1);
28 layout_parameterDump->setColumnStretch(2, 1);
29 }
30
31 void ParameterDump::buildCOMM()
32 {
33 groupbox_COMM = new QGroupBox(tr("COMMON_PAR"));
34 layout_COMM = new QGridLayout();
35
36 sy_lfr_bw = new QLabel("sy_lfr_bw ");
37 sy_lfr_sp0 = new QLabel("sy_lfr_sp0 ");
38 sy_lfr_sp1 = new QLabel("sy_lfr_sp1 ");
39 sy_lfr_r0 = new QLabel("sy_lfr_r0 ");
40 sy_lfr_r1 = new QLabel("sy_lfr_r1 ");
41
42 spinbox_sy_lfr_bw = new QSpinBox();
43 spinbox_sy_lfr_sp0 = new QSpinBox();
44 spinbox_sy_lfr_sp1 = new QSpinBox();
45 spinbox_sy_lfr_r0 = new QSpinBox();
46 spinbox_sy_lfr_r1 = new QSpinBox();
47
48 spinbox_sy_lfr_bw->setRange(0, 1);
49 spinbox_sy_lfr_sp0->setRange(0, 1);
50 spinbox_sy_lfr_sp1->setRange(0, 1);
51 spinbox_sy_lfr_r0->setRange(0, 1);
52 spinbox_sy_lfr_r1->setRange(0, 1);
53
54 spinbox_sy_lfr_bw->setValue(1);
55 spinbox_sy_lfr_sp0->setValue(0);
56 spinbox_sy_lfr_sp1->setValue(0);
57 spinbox_sy_lfr_r0->setValue(0);
58 spinbox_sy_lfr_r1->setValue(0);
59
60 layout_COMM->addWidget(sy_lfr_bw, 0, 0, 1, 1);
61 layout_COMM->addWidget(sy_lfr_sp0, 1, 0, 1, 1);
62 layout_COMM->addWidget(sy_lfr_sp1, 2, 0, 1, 1);
63 layout_COMM->addWidget(sy_lfr_r0, 3, 0, 1, 1);
64 layout_COMM->addWidget(sy_lfr_r1, 4, 0, 1, 1);
65
66 layout_COMM->addWidget(spinbox_sy_lfr_bw, 0, 1, 1, 1);
67 layout_COMM->addWidget(spinbox_sy_lfr_sp0, 1, 1, 1, 1);
68 layout_COMM->addWidget(spinbox_sy_lfr_sp1, 2, 1, 1, 1);
69 layout_COMM->addWidget(spinbox_sy_lfr_r0, 3, 1, 1, 1);
70 layout_COMM->addWidget(spinbox_sy_lfr_r1, 4, 1, 1, 1);
71
72 layout_COMM->setColumnStretch(2, 1);
73 layout_COMM->setRowStretch(5, 1);
74
75 groupbox_COMM->setLayout(layout_COMM);
76 }
77
78 void ParameterDump::buildNORM()
79 {
80 groupbox_NORM = new QGroupBox(tr("NORMAL_PAR"));
81 layout_NORM = new QGridLayout();
82
83 sy_lfr_n_swf_l = new QLabel("sy_lfr_n_swf_l ");
84 sy_lfr_n_swf_p = new QLabel("sy_lfr_n_swf_p ");
85 sy_lfr_n_asm_p = new QLabel("sy_lfr_n_asm_p ");
86 sy_lfr_n_bp_p0 = new QLabel("sy_lfr_n_bp_p0 ");
87 sy_lfr_n_bp_p1 = new QLabel("sy_lfr_n_bp_p1 ");
88
89 spinbox_sy_lfr_n_swf_l = new QSpinBox();
90 spinbox_sy_lfr_n_swf_p = new QSpinBox();
91 spinbox_sy_lfr_n_asm_p = new QSpinBox();
92 spinbox_sy_lfr_n_bp_p0 = new QSpinBox();
93 spinbox_sy_lfr_n_bp_p1 = new QSpinBox();
94
95 spinbox_sy_lfr_n_swf_l->setRange(256, 65535);
96 spinbox_sy_lfr_n_swf_p->setRange(16, 65535);
97 spinbox_sy_lfr_n_asm_p->setRange(16, 65535);
98 spinbox_sy_lfr_n_bp_p0->setRange(4, 3600);
99 spinbox_sy_lfr_n_bp_p1->setRange(20, 3600);
100
101 spinbox_sy_lfr_n_swf_l->setValue(2048);
102 spinbox_sy_lfr_n_swf_p->setValue(300);
103 spinbox_sy_lfr_n_asm_p->setValue(3600);
104 spinbox_sy_lfr_n_bp_p0->setValue(4);
105 spinbox_sy_lfr_n_bp_p1->setValue(20);
106
107 layout_NORM->addWidget(sy_lfr_n_swf_l, 0, 0, 1, 1);
108 layout_NORM->addWidget(sy_lfr_n_swf_p, 1, 0, 1, 1);
109 layout_NORM->addWidget(sy_lfr_n_asm_p, 2, 0, 1, 1);
110 layout_NORM->addWidget(sy_lfr_n_bp_p0, 3, 0, 1, 1);
111 layout_NORM->addWidget(sy_lfr_n_bp_p1, 4, 0, 1, 1);
112
113 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_l, 0, 1, 1, 1);
114 layout_NORM->addWidget(spinbox_sy_lfr_n_swf_p, 1, 1, 1, 1);
115 layout_NORM->addWidget(spinbox_sy_lfr_n_asm_p, 2, 1, 1, 1);
116 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p0, 3, 1, 1, 1);
117 layout_NORM->addWidget(spinbox_sy_lfr_n_bp_p1, 4, 1, 1, 1);
118
119 layout_NORM->setColumnStretch(2, 1);
120 layout_NORM->setRowStretch(5, 1);
121
122 groupbox_NORM->setLayout(layout_NORM);
123 }
124
125 void ParameterDump::buildBURST()
126 {
127 groupbox_BURST = new QGroupBox(tr("BURST_PAR"));
128 layout_BURST = new QGridLayout();
129
130 sy_lfr_b_bp_p0 = new QLabel("sy_lfr_b_bp_p0 ");
131 sy_lfr_b_bp_p1 = new QLabel("sy_lfr_b_bp_p1 ");
132
133 spinbox_sy_lfr_b_bp_p0 = new QSpinBox();
134 spinbox_sy_lfr_b_bp_p1 = new QSpinBox();
135
136 layout_BURST->addWidget(sy_lfr_b_bp_p0, 0, 0, 1, 1);
137 layout_BURST->addWidget(sy_lfr_b_bp_p1, 1, 0, 1, 1);
138 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p0, 0, 1, 1, 1);
139 layout_BURST->addWidget(spinbox_sy_lfr_b_bp_p1, 1, 1, 1, 1);
140
141 layout_BURST->setColumnStretch(2, 1);
142 layout_BURST->setRowStretch(3, 1);
143
144 groupbox_BURST->setLayout(layout_BURST);
145 }
146
147 void ParameterDump::buildSBM1()
148 {
149 groupbox_SBM1 = new QGroupBox(tr("SBM1_PAR"));
150 layout_SBM1 = new QGridLayout();
151
152 sy_lfr_s1_bp_p0 = new QLabel("sy_lfr_s1_bp_p0 ");
153 sy_lfr_s1_bp_p1 = new QLabel("sy_lfr_s1_bp_p1 ");
154
155 spinbox_sy_lfr_s1_bp_p0 = new QSpinBox();
156 spinbox_sy_lfr_s1_bp_p1 = new QSpinBox();
157
158 layout_SBM1->addWidget(sy_lfr_s1_bp_p0, 0, 0, 1, 1);
159 layout_SBM1->addWidget(sy_lfr_s1_bp_p1, 1, 0, 1, 1);
160 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p0, 0, 1, 1, 1);
161 layout_SBM1->addWidget(spinbox_sy_lfr_s1_bp_p1, 1, 1, 1, 1);
162
163 layout_SBM1->setColumnStretch(2, 1);
164 layout_SBM1->setRowStretch(3, 1);
165
166 groupbox_SBM1->setLayout(layout_SBM1);
167 }
168
169 void ParameterDump::buildSBM2()
170 {
171 groupbox_SBM2 = new QGroupBox(tr("SBM2_PAR"));
172 layout_SBM2 = new QGridLayout();
173
174 sy_lfr_s2_bp_p0 = new QLabel("sy_lfr_s2_bp_p0 ");
175 sy_lfr_s2_bp_p1 = new QLabel("sy_lfr_s2_bp_p1 ");
176
177 spinbox_sy_lfr_s2_bp_p0 = new QSpinBox();
178 spinbox_sy_lfr_s2_bp_p1 = new QSpinBox();
179
180 layout_SBM2->addWidget(sy_lfr_s2_bp_p0, 0, 0, 1, 1);
181 layout_SBM2->addWidget(sy_lfr_s2_bp_p1, 1, 0, 1, 1);
182 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p0, 0, 1, 1, 1);
183 layout_SBM2->addWidget(spinbox_sy_lfr_s2_bp_p1, 1, 1, 1, 1);
184
185 layout_SBM2->setColumnStretch(2, 1);
186 layout_SBM2->setRowStretch(3, 1);
187
188 groupbox_SBM2->setLayout(layout_SBM2);
189 }
190
191 void ParameterDump::updateParameterDump(TMPacketToRead *tmPacketToRead)
192 {
193
194 Packet_TM_LFR_PARAMETER_DUMP_t *parameterPacket;
195
196 parameterPacket = (Packet_TM_LFR_PARAMETER_DUMP_t *) tmPacketToRead->Value;
197
198 sy_lfr_bw->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x10 ) >> 4 ) );
199 sy_lfr_sp0->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x08 ) >> 3 ) );
200 sy_lfr_sp1->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x04 ) >> 2 ) );
201 sy_lfr_r0->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x02 ) >> 1 ) );
202 sy_lfr_r1->setText(" sy_lfr_bw: " + QString::number( (parameterPacket->bw_sp0_sp1_r0_r1 & 0x01 ) ) );
203
204 sy_lfr_n_swf_l->setText(" sy_lfr_n_swf_l: "
205 + QString::number( parameterPacket->sy_lfr_n_swf_l[0] * 256
206 + parameterPacket->sy_lfr_n_swf_l[1] ) );
207 sy_lfr_n_swf_p->setText(" sy_lfr_n_swf_p: "
208 + QString::number( parameterPacket->sy_lfr_n_swf_p[0] * 256
209 + parameterPacket->sy_lfr_n_swf_p[1] ) );
210 sy_lfr_n_asm_p->setText(" sy_lfr_n_asm_p: "
211 + QString::number( parameterPacket->sy_lfr_n_asm_p[0] * 256
212 + parameterPacket->sy_lfr_n_asm_p[1] ) );
213 sy_lfr_n_bp_p0->setText(" sy_lfr_n_bp_p0: " + QString::number( parameterPacket->sy_lfr_n_bp_p0 ) );
214 sy_lfr_n_bp_p1->setText(" sy_lfr_n_bp_p1: " + QString::number( parameterPacket->sy_lfr_n_bp_p1 ) );
215
216 sy_lfr_b_bp_p0->setText(" sy_lfr_b_p0: " + QString::number( parameterPacket->sy_lfr_b_bp_p0 ) );
217 sy_lfr_b_bp_p1->setText(" sy_lfr_b_p1: " + QString::number( parameterPacket->sy_lfr_b_bp_p1 ) );
218
219 sy_lfr_s1_bp_p0->setText(" sy_lfr_s1_p0: " + QString::number( parameterPacket->sy_lfr_s1_bp_p0 ) );
220 sy_lfr_s1_bp_p1->setText(" sy_lfr_s1_p1: " + QString::number( parameterPacket->sy_lfr_s1_bp_p1 ) );
221
222 sy_lfr_s2_bp_p0->setText(" sy_lfr_s2_p0: " + QString::number( parameterPacket->sy_lfr_s2_bp_p0 ) );
223 sy_lfr_s2_bp_p1->setText(" sy_lfr_s2_p1: " + QString::number( parameterPacket->sy_lfr_s2_bp_p1 ) );
224 }
@@ -0,0 +1,90
1 #ifndef PARAMETERDUMP_H
2 #define PARAMETERDUMP_H
3
4 #include <QWidget>
5 #include <QLabel>
6 #include <QGroupBox>
7 #include <QGridLayout>
8 #include <QSpinBox>
9
10 #include <tmpackettoread.h>
11 #include <ccsds_types.h>
12
13 class ParameterDump : public QWidget
14 {
15 Q_OBJECT
16 public:
17 explicit ParameterDump(QWidget *parent = 0);
18
19 void buildTabParameterDump();
20 void buildCOMM();
21 void buildNORM();
22 void buildBURST();
23 void buildSBM1();
24 void buildSBM2();
25 void updateParameterDump(TMPacketToRead *tmPacketToRead);
26
27 QGroupBox* groupbox_parameterDump;
28 QGroupBox* groupbox_COMM;
29 QGroupBox* groupbox_NORM;
30 QGroupBox* groupbox_BURST;
31 QGroupBox* groupbox_SBM1;
32 QGroupBox* groupbox_SBM2;
33
34 QGridLayout* layout_parameterDump;
35 QGridLayout* layout_COMM;
36 QGridLayout* layout_NORM;
37 QGridLayout* layout_BURST;
38 QGridLayout* layout_SBM1;
39 QGridLayout* layout_SBM2;
40 //
41 QLabel* sy_lfr_bw;
42 QLabel* sy_lfr_sp0;
43 QLabel* sy_lfr_sp1;
44 QLabel* sy_lfr_r0;
45 QLabel* sy_lfr_r1;
46 //
47 QLabel* sy_lfr_n_swf_l;
48 QLabel* sy_lfr_n_swf_p;
49 QLabel* sy_lfr_n_asm_p;
50 QLabel* sy_lfr_n_bp_p0;
51 QLabel* sy_lfr_n_bp_p1;
52 //
53 QLabel* sy_lfr_b_bp_p0;
54 QLabel* sy_lfr_b_bp_p1;
55 //
56 QLabel* sy_lfr_s1_bp_p0;
57 QLabel* sy_lfr_s1_bp_p1;
58 //
59 QLabel* sy_lfr_s2_bp_p0;
60 QLabel* sy_lfr_s2_bp_p1;
61
62 QSpinBox* spinbox_sy_lfr_bw;
63 QSpinBox* spinbox_sy_lfr_sp0;
64 QSpinBox* spinbox_sy_lfr_sp1;
65 QSpinBox* spinbox_sy_lfr_r0;
66 QSpinBox* spinbox_sy_lfr_r1;
67 //
68 QSpinBox* spinbox_sy_lfr_n_swf_l;
69 QSpinBox* spinbox_sy_lfr_n_swf_p;
70 QSpinBox* spinbox_sy_lfr_n_asm_p;
71 QSpinBox* spinbox_sy_lfr_n_bp_p0;
72 QSpinBox* spinbox_sy_lfr_n_bp_p1;
73 //
74 QSpinBox* spinbox_sy_lfr_b_bp_p0;
75 QSpinBox* spinbox_sy_lfr_b_bp_p1;
76 //
77 QSpinBox* spinbox_sy_lfr_s1_bp_p0;
78 QSpinBox* spinbox_sy_lfr_s1_bp_p1;
79 //
80 QSpinBox* spinbox_sy_lfr_s2_bp_p0;
81 QSpinBox* spinbox_sy_lfr_s2_bp_p1;
82
83 signals:
84
85 public slots:
86
87
88 };
89
90 #endif // PARAMETERDUMP_H
@@ -0,0 +1,33
1 #include "spectrapacket.h"
2
3 SpectraPacket::SpectraPacket(QObject *parent, unsigned int size) :
4 QObject(parent)
5 {
6 unsigned int i;
7
8 this->nbSamples = size;
9 //
10 s11 = (float*) malloc(sizeof(float) * size);
11 s22 = (float*) malloc(sizeof(float) * size);
12 s33 = (float*) malloc(sizeof(float) * size);
13 s44 = (float*) malloc(sizeof(float) * size);
14 s55 = (float*) malloc(sizeof(float) * size);
15
16 for (i=0; i< size; i++)
17 {
18 s11[i] = 0.;
19 s22[i] = 0.;
20 s33[i] = 0.;
21 s44[i] = 0.;
22 s55[i] = 0.;
23 }
24 }
25
26 SpectraPacket::~SpectraPacket()
27 {
28 free(s11);
29 free(s22);
30 free(s33);
31 free(s44);
32 free(s55);
33 }
@@ -0,0 +1,26
1 #ifndef SPECTRAPACKET_H
2 #define SPECTRAPACKET_H
3
4 #include <QObject>
5 #include <params.h>
6
7 class SpectraPacket : public QObject
8 {
9 Q_OBJECT
10 public:
11 explicit SpectraPacket(QObject *parent = 0, unsigned int size = 0);
12 ~SpectraPacket();
13 unsigned int nbSamples;
14 float *s11;
15 float *s22;
16 float *s33;
17 float *s44;
18 float *s55;
19
20 signals:
21
22 public slots:
23
24 };
25
26 #endif // SPECTRAPACKET_H
This diff has been collapsed as it changes many lines, (580 lines changed) Show them Hide them
@@ -0,0 +1,580
1 #include "pagespectra.h"
2 #include <stdio.h>
3
4 PageSpectra::PageSpectra(QWidget *parent) :
5 QMainWindow(parent)
6 {
7 unsigned int i = 0;
8
9 for (i = 0; i<6; i++)
10 {
11 localIndex[i] = 0;
12 }
13
14 pageTitle = "default";
15 wfPlot_v = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
16 wfPlot_e1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
17 wfPlot_e2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
18 wfPlot_b1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
19 wfPlot_b2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
20 //
21 wfPlot_v->customPlot->setTitle("s11");
22 wfPlot_e1->customPlot->setTitle("s22");
23 wfPlot_e2->customPlot->setTitle("s33");
24 wfPlot_b1->customPlot->setTitle("s44");
25 wfPlot_b2->customPlot->setTitle("s55");
26 //
27 /*mainLayout = new QGridLayout;
28 mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1);
29 mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1);
30 mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1);
31 mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1);
32 mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1);
33 mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);*/
34 //
35 dockV = NULL;
36 dockE1 = NULL;
37 dockE2 = NULL;
38 dockB1 = NULL;
39 dockB2 = NULL;
40
41 titleWidgetV = new QWidget();
42 titleWidgetE1 = new QWidget();
43 titleWidgetE2 = new QWidget();
44 titleWidgetB1 = new QWidget();
45 titleWidgetB2 = new QWidget();
46
47 logFileName = new QLabel();
48 logFile = new QFile();
49 logFileV = new QFile();
50 logFileE1 = new QFile();
51 logFileE2 = new QFile();
52 logFileB1 = new QFile();
53 logFileB2 = new QFile();
54
55 logFileEn = false;
56 storageEnabledV = false;
57 storageEnabledE1 = false;
58 storageEnabledE2 = false;
59 storageEnabledB1 = false;
60 storageEnabledB2 = false;
61
62 createToolBar();
63 readSettings();
64 }
65
66 void PageSpectra::displayOnPlot(short *data, unsigned char num)
67 {
68 QByteArray dataByteArray;
69 unsigned int i;
70
71 switch(num){
72 case 0:
73 wfPlot_v->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
74 if ( (storageEnabledV == true) && (logFileV->isOpen()) )
75 {
76 for (i=0; i<DEFAULT_SIZE; i++)
77 {
78 dataByteArray.clear();
79 dataByteArray.append(QByteArray::number(localIndex[0]));
80 dataByteArray.append(' ');
81 dataByteArray.append(QByteArray::number(data[i]));
82 *(this->logFileStrmV) << dataByteArray << endl;
83 localIndex[0]++;
84 }
85 }
86 break;
87 case 1:
88 wfPlot_e1->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
89 break;
90 case 2:
91 wfPlot_e2->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
92 break;
93 case 3:
94 wfPlot_b1->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
95 break;
96 case 4:
97 wfPlot_b2->displayOnPlot(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
98 break;
99 default:
100 break;
101 }
102 }
103
104 void PageSpectra::displayOnPlotFloat(float *data, unsigned char num)
105 {
106 QByteArray dataByteArray;
107 unsigned int i;
108
109 switch(num){
110 case 0:
111 wfPlot_v->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
112 if ( (storageEnabledV == true) && (logFileV->isOpen()) )
113 {
114 for (i=0; i<DEFAULT_SIZE; i++)
115 {
116 dataByteArray.clear();
117 dataByteArray.append(QByteArray::number(localIndex[0]));
118 dataByteArray.append(' ');
119 dataByteArray.append(QByteArray::number(data[i]));
120 *(this->logFileStrmV) << dataByteArray << endl;
121 localIndex[0]++;
122 }
123 }
124 break;
125 case 1:
126 wfPlot_e1->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
127 break;
128 case 2:
129 wfPlot_e2->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
130 break;
131 case 3:
132 wfPlot_b1->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
133 break;
134 case 4:
135 wfPlot_b2->displayOnPlotFloat(data, WFDISPLAY_DEFAULT_SPECTRA_SIZE);
136 break;
137 default:
138 break;
139 }
140 }
141
142 void PageSpectra::createToolBar()
143 {
144 radio_v = new QRadioButton(tr("s11"));
145 radio_e1 = new QRadioButton(tr("s22"));
146 radio_e2 = new QRadioButton(tr("s33"));
147 radio_b1 = new QRadioButton(tr("s44"));
148 radio_b2 = new QRadioButton(tr("s44"));
149 radio_tabify = new QRadioButton(tr("tabify"));
150
151 radio_v->setAutoExclusive(false);
152 radio_e1->setAutoExclusive(false);
153 radio_e2->setAutoExclusive(false);
154 radio_b1->setAutoExclusive(false);
155 radio_b2->setAutoExclusive(false);
156 radio_tabify->setAutoExclusive(false);
157
158 button_selectAll = new QPushButton(tr("select all"));
159 button_storeWfrm = new QPushButton(tr("REC"));
160 button_chooseDir = new QPushButton(tr("choose dir"));
161
162 myToolBar = new QToolBar("select");
163
164 myToolBar->addWidget(radio_v);
165 myToolBar->addWidget(radio_e1);
166 myToolBar->addWidget(radio_e2);
167 myToolBar->addWidget(radio_b1);
168 myToolBar->addWidget(radio_b2);
169 myToolBar->addSeparator();
170 myToolBar->addWidget(button_selectAll);
171 myToolBar->addWidget(radio_tabify);
172 myToolBar->addSeparator();
173 myToolBar->addWidget(button_storeWfrm);
174 myToolBar->addWidget(button_chooseDir);
175
176 addToolBar(Qt::LeftToolBarArea, myToolBar);
177
178 radio_tabify->setChecked(true);
179
180 connect(this->radio_v, SIGNAL(clicked(bool)), this, SLOT(actionRadioV(bool)));
181 connect(this->radio_e1, SIGNAL(clicked(bool)), this, SLOT(actionRadioE1(bool)));
182 connect(this->radio_e2, SIGNAL(clicked(bool)), this, SLOT(actionRadioE2(bool)));
183 connect(this->radio_b1, SIGNAL(clicked(bool)), this, SLOT(actionRadioB1(bool)));
184 connect(this->radio_b2, SIGNAL(clicked(bool)), this, SLOT(actionRadioB2(bool)));
185 connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll()));
186 connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks()));
187 connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm()));
188 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
189 }
190
191 void PageSpectra::actionRadioV(bool state)
192 {
193 if (state == true)
194 {
195 if (dockV == NULL)
196 {
197 dockV = new QDockWidget("V", this);
198 dockV->setWidget(wfPlot_v);
199 dockV->setTitleBarWidget(titleWidgetV);
200 }
201 }
202 else
203 {
204 this->removeDockWidget(dockV);
205 }
206 organizeDocks();
207 }
208
209 void PageSpectra::actionRadioE1(bool state)
210 {
211 if (state == true)
212 {
213 if (dockE1 == NULL)
214 {
215 dockE1 = new QDockWidget("E1", this);
216 dockE1->setWidget(wfPlot_e1);
217 dockE1->setTitleBarWidget(titleWidgetE1);
218 }
219 }
220 else
221 {
222 this->removeDockWidget(dockE1);
223 }
224 organizeDocks();
225 }
226
227 void PageSpectra::actionRadioE2(bool state)
228 {
229 if (state == true)
230 {
231 if (dockE2 == NULL)
232 {
233 dockE2 = new QDockWidget("E2", this);
234 dockE2->setWidget(wfPlot_e2);
235 dockE2->setTitleBarWidget(titleWidgetE2);
236 }
237 }
238 else
239 {
240 this->removeDockWidget(dockE2);
241 }
242 organizeDocks();
243 }
244
245 void PageSpectra::actionRadioB1(bool state)
246 {
247 if (state == true)
248 {
249 if (dockB1 == NULL)
250 {
251 dockB1 = new QDockWidget("B1", this);
252 dockB1->setWidget(wfPlot_b1);
253 dockB1->setTitleBarWidget(titleWidgetB1);
254 }
255 }
256 else
257 {
258 this->removeDockWidget(dockB1);
259 }
260 organizeDocks();
261 }
262
263 void PageSpectra::actionRadioB2(bool state)
264 {
265 if (state == true)
266 {
267 if (dockB2 == NULL)
268 {
269 dockB2 = new QDockWidget("B2", this);
270 dockB2->setWidget(wfPlot_b2);
271 dockB2->setTitleBarWidget(titleWidgetB2);
272 }
273 }
274 else
275 {
276 this->removeDockWidget(dockB2);
277 }
278 organizeDocks();
279 }
280
281 void PageSpectra::buildDockList()
282 {
283 dockList.clear();
284
285 if (radio_v->isChecked())
286 {
287 dockList.append(dockV);
288 removeDockWidget(dockV);
289 }
290 if (radio_e1->isChecked())
291 {
292 dockList.append(dockE1);
293 removeDockWidget(dockE1);
294 }
295 if (radio_e2->isChecked())
296 {
297 dockList.append(dockE2);
298 removeDockWidget(dockE2);
299 }
300 if (radio_b1->isChecked())
301 {
302 dockList.append(dockB1);
303 removeDockWidget(dockB1);
304 }
305 if (radio_b2->isChecked())
306 {
307 dockList.append(dockB2);
308 removeDockWidget(dockB2);
309 }
310 }
311
312 void PageSpectra::organizeDocks()
313 {
314 if (radio_tabify->isChecked())
315 {
316 tabify();
317 }
318 else
319 {
320 unTabify();
321 }
322 wfPlot_v->resize(wfPlot_v->minimumSizeHint());
323 wfPlot_e1->resize(wfPlot_e1->minimumSizeHint());
324 wfPlot_e2->resize(wfPlot_e2->minimumSizeHint());
325 wfPlot_b1->resize(wfPlot_b1->minimumSizeHint());
326 wfPlot_b2->resize(wfPlot_b2->minimumSizeHint());
327 this->resize(this->minimumSizeHint());
328 }
329
330 void PageSpectra::unTabify()
331 {
332 buildDockList();
333
334 switch(dockList.size())
335 {
336 case 0:
337 break;
338 case 1:
339 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
340 dockList.at(0)->show();
341 break;
342 case 2:
343 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
344 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
345 dockList.at(0)->show();
346 dockList.at(1)->show();
347 break;
348 case 3:
349 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
350 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
351 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
352 dockList.at(0)->show();
353 dockList.at(1)->show();
354 dockList.at(2)->show();
355 break;
356 case 4:
357 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
358 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
359 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
360 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
361 dockList.at(0)->show();
362 dockList.at(1)->show();
363 dockList.at(2)->show();
364 dockList.at(3)->show();
365 break;
366 case 5:
367 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
368 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
369 addDockWidget(Qt::TopDockWidgetArea, dockList.at(2));
370 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
371 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4));
372 dockList.at(0)->show();
373 dockList.at(1)->show();
374 dockList.at(2)->show();
375 dockList.at(3)->show();
376 dockList.at(4)->show();
377 break;
378 default:
379 break;
380 }
381 }
382
383 void PageSpectra::tabify()
384 {
385 buildDockList();
386
387 switch(dockList.size())
388 {
389 case 0:
390 break;
391 case 1:
392 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
393 dockList.at(0)->show();
394 break;
395 case 2:
396 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
397 tabifyDockWidget(dockList.at(0), dockList.at(1));
398 dockList.at(0)->show();
399 dockList.at(1)->show();
400 break;
401 case 3:
402 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
403 tabifyDockWidget(dockList.at(0), dockList.at(1));
404 tabifyDockWidget(dockList.at(1), dockList.at(2));
405 dockList.at(0)->show();
406 dockList.at(1)->show();
407 dockList.at(2)->show();
408 break;
409 case 4:
410 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
411 tabifyDockWidget(dockList.at(0), dockList.at(1));
412 tabifyDockWidget(dockList.at(1), dockList.at(2));
413 tabifyDockWidget(dockList.at(2), dockList.at(3));
414 dockList.at(0)->show();
415 dockList.at(1)->show();
416 dockList.at(2)->show();
417 dockList.at(3)->show();
418 break;
419 case 5:
420 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
421 tabifyDockWidget(dockList.at(0), dockList.at(1));
422 tabifyDockWidget(dockList.at(1), dockList.at(2));
423 tabifyDockWidget(dockList.at(2), dockList.at(3));
424 tabifyDockWidget(dockList.at(3), dockList.at(4));
425 dockList.at(0)->show();
426 dockList.at(1)->show();
427 dockList.at(2)->show();
428 dockList.at(3)->show();
429 dockList.at(4)->show();
430 break;
431 case 6:
432 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
433 tabifyDockWidget(dockList.at(0), dockList.at(1));
434 tabifyDockWidget(dockList.at(1), dockList.at(2));
435 tabifyDockWidget(dockList.at(2), dockList.at(3));
436 tabifyDockWidget(dockList.at(3), dockList.at(4));
437 tabifyDockWidget(dockList.at(4), dockList.at(5));
438 dockList.at(0)->show();
439 dockList.at(1)->show();
440 dockList.at(2)->show();
441 dockList.at(3)->show();
442 dockList.at(4)->show();
443 dockList.at(5)->show();
444 break;
445 default:
446 break;
447 }
448 }
449
450 void PageSpectra::selectAll()
451 {
452 radio_v->click();
453 radio_e1->click();
454 radio_e2->click();
455 radio_b1->click();
456 radio_b2->click();
457 }
458
459 void PageSpectra::storeWfrm()
460 {
461 if (logFileEn == false)
462 {
463 buildFileNames();
464 button_storeWfrm->setText(tr("STOP"));
465 logFileEn = true;
466 }
467 else
468 {
469 if(this->logFileV->isOpen()) this->logFileV->close();
470 if(this->logFileE1->isOpen()) this->logFileE1->close();
471 if(this->logFileE2->isOpen()) this->logFileE2->close();
472 // disable all storage
473 storageEnabledV = false;
474 storageEnabledE1 = false;
475 storageEnabledE2 = false;
476 storageEnabledB1 = false;
477 storageEnabledB2 = false;
478 button_storeWfrm->setText(tr("REC"));
479 logFileEn = false;
480 }
481 }
482
483 void PageSpectra::buildFileNames()
484 {
485 QString date;
486 QString time;
487 QString prefix;
488
489 date = QDate::currentDate().toString();
490 time = QTime::currentTime().toString();
491
492 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" + pageTitle ;
493
494 if (radio_v->isChecked())
495 {
496 if(this->logFileV->isOpen()) this->logFileV->close();
497 this->logFileV->setFileName( prefix + "_V.data");
498 if(this->logFileV->open(QIODevice::WriteOnly)) this->logFileStrmV = new QTextStream(this->logFileV);
499 storageEnabledV = true;
500 }
501 if (radio_e1->isChecked())
502 {
503 if(this->logFileE1->isOpen()) this->logFileE1->close();
504 this->logFileE1->setFileName( prefix + "_E1.data");
505 if(this->logFileE1->open(QIODevice::WriteOnly)) this->logFileStrmE1 = new QTextStream(this->logFileE1);
506 storageEnabledE1 = true;
507 }
508 if (radio_e2->isChecked())
509 {
510 if(this->logFileE2->isOpen()) this->logFileE2->close();
511 this->logFileE2->setFileName( prefix + "_E2.data");
512 if(this->logFileE2->open(QIODevice::WriteOnly)) this->logFileStrmE2 = new QTextStream(this->logFileE2);
513 storageEnabledE2 = true;
514 }
515 if (radio_b1->isChecked())
516 {
517
518 }
519 if (radio_b2->isChecked())
520 {
521
522 }
523 }
524
525 void PageSpectra::logFileEnDisable(bool state)
526 {
527 if(state==true)
528 {
529 this->logFileEn = true;
530 }
531 else if(state==false)
532 {
533 this->logFileEn = false;
534 }
535 }
536
537 bool PageSpectra::islogfileenable()
538 {
539 return this->logFileEn;
540 }
541
542 void PageSpectra::appendToLogFile(const QString & text)
543 {
544 if(this->logFileEn && this->logFile->isOpen())
545 {
546 *(this->logFileStrm) << text << endl;
547 }
548 }
549
550 void PageSpectra::closeEvent(QCloseEvent *event)
551 {
552 if(this->logFile->isOpen())
553 {
554 this->logFileStrm->flush();
555 this->logFile->waitForBytesWritten(3000);
556 this->logFile->close();
557 }
558 writeSettings();
559 event->accept();
560 }
561
562 void PageSpectra::readSettings()
563 {
564 QSettings settings("lpp", "lfrsgse");
565 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
566 }
567
568 void PageSpectra::writeSettings()
569 {
570 QSettings settings("lpp", "lfrsgse");
571 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
572 }
573
574 void PageSpectra::chooseDir()
575 {
576 defaultStorageDirectory = QFileDialog::getExistingDirectory(this,
577 "choose the directory",
578 QDir::homePath(),
579 QFileDialog::ShowDirsOnly);
580 }
@@ -0,0 +1,127
1 #ifndef PAGESPECTRA_H
2 #define PAGESPECTRA_H
3
4 #include "wfdisplay_global.h"
5
6 #include <QtGui/QMainWindow>
7 #include <QRadioButton>
8 #include <QPushButton>
9 #include <QDockWidget>
10 #include <QToolBar>
11 #include <QLabel>
12 #include <QFile>
13 #include <QTextStream>
14 #include <QFileDialog>
15 #include <QSettings>
16
17 #include <wfplot.h>
18 #include <wfdisplay_params.h>
19
20 class WFDISPLAYSHARED_EXPORT PageSpectra : public QMainWindow
21 {
22 Q_OBJECT
23 public:
24 explicit PageSpectra(QWidget *parent = 0);
25
26 void createToolBar();
27 void buildDockList();
28 void unTabify();
29 void tabify();
30 // STORE
31 void buildFileNames();
32 bool islogfileenable();
33 void appendToLogFile(const QString & text);
34 void closeEvent(QCloseEvent *event);
35 void readSettings();
36 void writeSettings();
37
38 bool logFileEn;
39 bool storageEnabledV;
40 bool storageEnabledE1;
41 bool storageEnabledE2;
42 bool storageEnabledB1;
43 bool storageEnabledB2;
44
45 QLabel *logFileName;
46 QLabel *logFileNameV;
47 QLabel *logFileNameE1;
48 QLabel *logFileNameE2;
49 QLabel *logFileNameB1;
50 QLabel *logFileNameB2;
51
52 QWidget *titleWidgetV;
53 QWidget *titleWidgetE1;
54 QWidget *titleWidgetE2;
55 QWidget *titleWidgetB1;
56 QWidget *titleWidgetB2;
57
58 QList<QDockWidget*> dockList;
59
60 QDockWidget *dockV;
61 QDockWidget *dockE1;
62 QDockWidget *dockE2;
63 QDockWidget *dockB1;
64 QDockWidget *dockB2;
65
66 QRadioButton *radio_v;
67 QRadioButton *radio_e1;
68 QRadioButton *radio_e2;
69 QRadioButton *radio_b1;
70 QRadioButton *radio_b2;
71 QRadioButton *radio_tabify;
72
73 QPushButton *button_selectAll;
74 QPushButton *button_storeWfrm;
75 QPushButton *button_chooseDir;
76
77 QToolBar *myToolBar;
78
79 WFPlot *wfPlot_v;
80 WFPlot *wfPlot_e1;
81 WFPlot *wfPlot_e2;
82 WFPlot *wfPlot_b1;
83 WFPlot *wfPlot_b2;
84
85 QFile *logFile;
86 QFile *logFileV;
87 QFile *logFileE1;
88 QFile *logFileE2;
89 QFile *logFileB1;
90 QFile *logFileB2;
91
92 QTextStream *logFileStrm;
93 QTextStream *logFileStrmV;
94 QTextStream *logFileStrmE1;
95 QTextStream *logFileStrmE2;
96 QTextStream *logFileStrmB1;
97 QTextStream *logFileStrmB2;
98
99 QString pageTitle;
100 QString defaultStorageDirectory;
101
102 unsigned int localIndex[5];
103
104 //QGridLayout *mainLayout;
105
106 void displayOnPlot(short *data, unsigned char num);
107 void displayOnPlotFloat(float *data, unsigned char num);
108
109 signals:
110 void setLogFileName(QString FileName);
111
112 public slots:
113 void actionRadioV(bool state);
114 void actionRadioE1(bool state);
115 void actionRadioE2(bool state);
116 void actionRadioB1(bool state);
117 void actionRadioB2(bool state);
118 void organizeDocks();
119 void selectAll();
120 void storeWfrm();
121 void logFileEnDisable(bool state);
122 void chooseDir();
123
124
125 };
126
127 #endif // PAGESPECTRA_H
@@ -1,6 +1,6
1 #############################################################################
1 #############################################################################
2 # Makefile for building: PAULs_LPPMON_PLUGINS
2 # Makefile for building: PAULs_LPPMON_PLUGINS
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jun 28 14:04:51 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 16:20:32 2013
4 # Project: PAULs_LPPMON_PLUGINS.pro
4 # Project: PAULs_LPPMON_PLUGINS.pro
5 # Template: subdirs
5 # Template: subdirs
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile PAULs_LPPMON_PLUGINS.pro
@@ -29,10 +29,10 SUBTARGETS = \
29
29
30 rmapplugin/$(MAKEFILE):
30 rmapplugin/$(MAKEFILE):
31 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
31 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
32 cd rmapplugin/ && $(QMAKE) /home/admin/opt/LPPMON_PLUGINS_PLE/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
32 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
33 sub-rmapplugin-qmake_all: FORCE
33 sub-rmapplugin-qmake_all: FORCE
34 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
34 @$(CHK_DIR_EXISTS) rmapplugin/ || $(MKDIR) rmapplugin/
35 cd rmapplugin/ && $(QMAKE) /home/admin/opt/LPPMON_PLUGINS_PLE/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
35 cd rmapplugin/ && $(QMAKE) /opt/LPPMON_PLUGINS_PAUL/rmapplugin/rmapplugin.pro -spec /usr/lib64/qt4/mkspecs/linux-g++ -o $(MAKEFILE)
36 sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE
36 sub-rmapplugin: rmapplugin/$(MAKEFILE) FORCE
37 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
37 cd rmapplugin/ && $(MAKE) -f $(MAKEFILE)
38 sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE
38 sub-rmapplugin-make_default-ordered: rmapplugin/$(MAKEFILE) FORCE
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-07-09T14:44:30. -->
3 <!-- Written by QtCreator 2.7.0, 2013-07-25T10:36:01. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -11,14 +11,15
11 <valuemap type="QVariantMap">
11 <valuemap type="QVariantMap">
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <value type="QString" key="language">Cpp</value>
16 <value type="QByteArray" key="language">Cpp</value>
16 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
17 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 </valuemap>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <value type="QString" key="language">QmlJS</value>
22 <value type="QByteArray" key="language">QmlJS</value>
22 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
23 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 </valuemap>
25 </valuemap>
@@ -27,6 +28,7
27 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
30 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
31 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
32 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
@@ -49,60 +51,69
49 <data>
51 <data>
50 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
51 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
52 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
53 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
56 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
55 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
56 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
58 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
59 <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
62 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
63 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
65 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
66 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
67 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
69 </valuemap>
71 </valuemap>
70 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
71 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
72 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
73 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
80 </valuelist>
74 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
75 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
76 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
77 </valuemap>
84 </valuemap>
78 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
79 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
80 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
81 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
82 </valuemap>
89 </valuemap>
83 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
84 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
85 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
95 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
99 </valuelist>
88 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
89 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
90 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
91 </valuemap>
103 </valuemap>
92 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
96 </valuemap>
108 </valuemap>
97 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
98 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
99 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
101 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
105 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
106 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
107 </valuemap>
118 </valuemap>
108 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
@@ -111,60 +122,29
111 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
115 </valuemap>
126 </valuemap>
116 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
117 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
118 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
119 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
120 </valuemap>
131 </valuemap>
121 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
122 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
123 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
134 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
124 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
125 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
126 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
135 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
127 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
128 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
129 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
130 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
131 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
132 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
133 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
134 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
135 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
137 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
141 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
138 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
139 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
140 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
141 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
142 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
146 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
149 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
147 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
150 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
151 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
152 <value type="int">0</value>
153 <value type="int">1</value>
154 <value type="int">2</value>
155 <value type="int">3</value>
156 <value type="int">4</value>
157 <value type="int">5</value>
158 <value type="int">6</value>
159 <value type="int">7</value>
160 <value type="int">8</value>
161 <value type="int">9</value>
162 <value type="int">10</value>
163 <value type="int">11</value>
164 <value type="int">12</value>
165 <value type="int">13</value>
166 <value type="int">14</value>
167 </valuelist>
168 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
148 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
169 <value type="int">0</value>
149 <value type="int">0</value>
170 <value type="int">1</value>
150 <value type="int">1</value>
@@ -184,15 +164,16
184 </valuelist>
164 </valuelist>
185 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
165 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
186 <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value>
166 <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value>
187 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
167 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
188 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
168 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
189 <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/>
169 <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/>
190 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
170 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
191 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
171 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
192 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
193 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
173 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
194 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
174 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
195 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
175 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
176 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
196 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
177 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
197 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
178 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
198 </valuemap>
179 </valuemap>
@@ -205,10 +186,10
205 </data>
186 </data>
206 <data>
187 <data>
207 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
188 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
208 <value type="QString">{cdbf9cdc-1e84-406e-889b-c4feef49e75c}</value>
189 <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
209 </data>
190 </data>
210 <data>
191 <data>
211 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
192 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
212 <value type="int">10</value>
193 <value type="int">12</value>
213 </data>
194 </data>
214 </qtcreator>
195 </qtcreator>
@@ -1,9 +1,9
1 #############################################################################
1 #############################################################################
2 # Makefile for building: lfrsgse
2 # Makefile for building: lfrsgse-dev
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jul 12 08:12:46 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 15:57:53 2013
4 # Project: gselesia.pro
4 # Project: gselesia.pro
5 # Template: app
5 # Template: app
6 # Command: /usr/bin/qmake-qt4 -o Makefile gselesia.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
7 #############################################################################
7 #############################################################################
8
8
9 ####### Compiler, tools and options
9 ####### Compiler, tools and options
@@ -11,8 +11,8
11 CC = gcc
11 CC = gcc
12 CXX = g++
12 CXX = g++
13 DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
13 DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I.
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I.
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
@@ -52,9 +52,11 SOURCES = main.cpp \
52 ../rmapplugin/tmstatistics.cpp \
52 ../rmapplugin/tmstatistics.cpp \
53 ../rmapplugin/tmpackettoread.cpp \
53 ../rmapplugin/tmpackettoread.cpp \
54 ../rmapplugin/wfpacket.cpp \
54 ../rmapplugin/wfpacket.cpp \
55 ../rmapplugin/spectrapacket.cpp \
55 ../common_PLE/hkdisplay.cpp \
56 ../common_PLE/hkdisplay.cpp \
56 lfrxmlparser.cpp \
57 lfrxmlparser.cpp \
57 lfrspectrogram.cpp moc_mainwindow.cpp \
58 lfrspectrogram.cpp \
59 parameterdump.cpp moc_mainwindow.cpp \
58 moc_mainwindowui.cpp \
60 moc_mainwindowui.cpp \
59 moc_qipdialogbox.cpp \
61 moc_qipdialogbox.cpp \
60 moc_lfrxmlhandler.cpp \
62 moc_lfrxmlhandler.cpp \
@@ -62,9 +64,11 SOURCES = main.cpp \
62 moc_tmstatistics.cpp \
64 moc_tmstatistics.cpp \
63 moc_tmpackettoread.cpp \
65 moc_tmpackettoread.cpp \
64 moc_wfpacket.cpp \
66 moc_wfpacket.cpp \
67 moc_spectrapacket.cpp \
65 moc_hkdisplay.cpp \
68 moc_hkdisplay.cpp \
66 moc_lfrxmlparser.cpp \
69 moc_lfrxmlparser.cpp \
67 moc_lfrspectrogram.cpp
70 moc_lfrspectrogram.cpp \
71 moc_parameterdump.cpp
68 OBJECTS = main.o \
72 OBJECTS = main.o \
69 mainwindow.o \
73 mainwindow.o \
70 mainwindowui.o \
74 mainwindowui.o \
@@ -74,9 +78,11 OBJECTS = main.o \
74 tmstatistics.o \
78 tmstatistics.o \
75 tmpackettoread.o \
79 tmpackettoread.o \
76 wfpacket.o \
80 wfpacket.o \
81 spectrapacket.o \
77 hkdisplay.o \
82 hkdisplay.o \
78 lfrxmlparser.o \
83 lfrxmlparser.o \
79 lfrspectrogram.o \
84 lfrspectrogram.o \
85 parameterdump.o \
80 moc_mainwindow.o \
86 moc_mainwindow.o \
81 moc_mainwindowui.o \
87 moc_mainwindowui.o \
82 moc_qipdialogbox.o \
88 moc_qipdialogbox.o \
@@ -85,9 +91,11 OBJECTS = main.o \
85 moc_tmstatistics.o \
91 moc_tmstatistics.o \
86 moc_tmpackettoread.o \
92 moc_tmpackettoread.o \
87 moc_wfpacket.o \
93 moc_wfpacket.o \
94 moc_spectrapacket.o \
88 moc_hkdisplay.o \
95 moc_hkdisplay.o \
89 moc_lfrxmlparser.o \
96 moc_lfrxmlparser.o \
90 moc_lfrspectrogram.o
97 moc_lfrspectrogram.o \
98 moc_parameterdump.o
91 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
99 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
92 /usr/lib64/qt4/mkspecs/common/linux.conf \
100 /usr/lib64/qt4/mkspecs/common/linux.conf \
93 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
101 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
@@ -113,9 +121,9 DIST = /usr/lib64/qt4/mkspecs/c
113 /usr/lib64/qt4/mkspecs/features/lex.prf \
121 /usr/lib64/qt4/mkspecs/features/lex.prf \
114 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
122 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
115 gselesia.pro
123 gselesia.pro
116 QMAKE_TARGET = lfrsgse
124 QMAKE_TARGET = lfrsgse-dev
117 DESTDIR =
125 DESTDIR =
118 TARGET = lfrsgse
126 TARGET = lfrsgse-dev
119
127
120 first: all
128 first: all
121 ####### Implicit rules
129 ####### Implicit rules
@@ -172,7 +180,7 Makefile: gselesia.pro /usr/lib64/qt4/m
172 /usr/lib64/libQtCore.prl \
180 /usr/lib64/libQtCore.prl \
173 /usr/lib64/libQtGui.prl \
181 /usr/lib64/libQtGui.prl \
174 /usr/lib64/libQtNetwork.prl
182 /usr/lib64/libQtNetwork.prl
175 $(QMAKE) -o Makefile gselesia.pro
183 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
176 /usr/lib64/qt4/mkspecs/common/unix.conf:
184 /usr/lib64/qt4/mkspecs/common/unix.conf:
177 /usr/lib64/qt4/mkspecs/common/linux.conf:
185 /usr/lib64/qt4/mkspecs/common/linux.conf:
178 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
186 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
@@ -202,11 +210,11 Makefile: gselesia.pro /usr/lib64/qt4/m
202 /usr/lib64/libQtGui.prl:
210 /usr/lib64/libQtGui.prl:
203 /usr/lib64/libQtNetwork.prl:
211 /usr/lib64/libQtNetwork.prl:
204 qmake: FORCE
212 qmake: FORCE
205 @$(QMAKE) -o Makefile gselesia.pro
213 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
206
214
207 dist:
215 dist:
208 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
216 @$(CHK_DIR_EXISTS) .tmp/lfrsgse-dev1.0.0 || $(MKDIR) .tmp/lfrsgse-dev1.0.0
209 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../common_PLE/qipdialogbox.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp ../common_PLE/qipdialogbox.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp lfrspectrogram.cpp .tmp/lfrsgse1.0.0/ && (cd `dirname .tmp/lfrsgse1.0.0` && $(TAR) lfrsgse1.0.0.tar lfrsgse1.0.0 && $(COMPRESS) lfrsgse1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse1.0.0`/lfrsgse1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse1.0.0
217 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse-dev1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h ../common_PLE/qipdialogbox.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h lfrspectrogram.h parameterdump.h .tmp/lfrsgse-dev1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp ../common_PLE/qipdialogbox.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp lfrspectrogram.cpp parameterdump.cpp .tmp/lfrsgse-dev1.0.0/ && (cd `dirname .tmp/lfrsgse-dev1.0.0` && $(TAR) lfrsgse-dev1.0.0.tar lfrsgse-dev1.0.0 && $(COMPRESS) lfrsgse-dev1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse-dev1.0.0`/lfrsgse-dev1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse-dev1.0.0
210
218
211
219
212 clean:compiler_clean
220 clean:compiler_clean
@@ -227,18 +235,20 mocclean: compiler_moc_header_clean comp
227
235
228 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
236 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
229
237
230 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
238 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp moc_parameterdump.cpp
231 compiler_moc_header_clean:
239 compiler_moc_header_clean:
232 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp
240 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp moc_parameterdump.cpp
233 moc_mainwindow.cpp: lfrxmlhandler.h \
241 moc_mainwindow.cpp: lfrxmlhandler.h \
234 lfrxmlwriter.h \
242 lfrxmlwriter.h \
235 mainwindowui.h \
243 mainwindowui.h \
236 lfrspectrogram.h \
244 lfrspectrogram.h \
245 parameterdump.h \
237 lfrxmlparser.h \
246 lfrxmlparser.h \
238 mainwindow.h
247 mainwindow.h
239 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
248 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
240
249
241 moc_mainwindowui.cpp: lfrspectrogram.h \
250 moc_mainwindowui.cpp: lfrspectrogram.h \
251 parameterdump.h \
242 mainwindowui.h
252 mainwindowui.h
243 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp
253 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp
244
254
@@ -260,6 +270,9 moc_tmpackettoread.cpp: ../rmapplugin/tm
260 moc_wfpacket.cpp: ../rmapplugin/wfpacket.h
270 moc_wfpacket.cpp: ../rmapplugin/wfpacket.h
261 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp
271 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp
262
272
273 moc_spectrapacket.cpp: ../rmapplugin/spectrapacket.h
274 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/spectrapacket.h -o moc_spectrapacket.cpp
275
263 moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h
276 moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h
264 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp
277 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp
265
278
@@ -269,6 +282,9 moc_lfrxmlparser.cpp: lfrxmlparser.h
269 moc_lfrspectrogram.cpp: lfrspectrogram.h
282 moc_lfrspectrogram.cpp: lfrspectrogram.h
270 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp
283 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp
271
284
285 moc_parameterdump.cpp: parameterdump.h
286 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) parameterdump.h -o moc_parameterdump.cpp
287
272 compiler_rcc_make_all:
288 compiler_rcc_make_all:
273 compiler_rcc_clean:
289 compiler_rcc_clean:
274 compiler_image_collection_make_all: qmake_image_collection.cpp
290 compiler_image_collection_make_all: qmake_image_collection.cpp
@@ -293,6 +309,7 main.o: main.cpp mainwindow.h \
293 lfrxmlwriter.h \
309 lfrxmlwriter.h \
294 mainwindowui.h \
310 mainwindowui.h \
295 lfrspectrogram.h \
311 lfrspectrogram.h \
312 parameterdump.h \
296 lfrxmlparser.h
313 lfrxmlparser.h
297 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
314 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
298
315
@@ -301,11 +318,13 mainwindow.o: mainwindow.cpp mainwindow.
301 lfrxmlwriter.h \
318 lfrxmlwriter.h \
302 mainwindowui.h \
319 mainwindowui.h \
303 lfrspectrogram.h \
320 lfrspectrogram.h \
321 parameterdump.h \
304 lfrxmlparser.h
322 lfrxmlparser.h
305 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
323 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
306
324
307 mainwindowui.o: mainwindowui.cpp mainwindowui.h \
325 mainwindowui.o: mainwindowui.cpp mainwindowui.h \
308 lfrspectrogram.h
326 lfrspectrogram.h \
327 parameterdump.h
309 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp
328 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp
310
329
311 qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
330 qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
@@ -326,6 +345,9 tmpackettoread.o: ../rmapplugin/tmpacket
326 wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h
345 wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h
327 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp
346 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp
328
347
348 spectrapacket.o: ../rmapplugin/spectrapacket.cpp ../rmapplugin/spectrapacket.h
349 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o spectrapacket.o ../rmapplugin/spectrapacket.cpp
350
329 hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h
351 hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h
330 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp
352 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp
331
353
@@ -335,6 +357,9 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlp
335 lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h
357 lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h
336 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp
358 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp
337
359
360 parameterdump.o: parameterdump.cpp parameterdump.h
361 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o parameterdump.o parameterdump.cpp
362
338 moc_mainwindow.o: moc_mainwindow.cpp
363 moc_mainwindow.o: moc_mainwindow.cpp
339 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
364 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
340
365
@@ -359,6 +384,9 moc_tmpackettoread.o: moc_tmpackettoread
359 moc_wfpacket.o: moc_wfpacket.cpp
384 moc_wfpacket.o: moc_wfpacket.cpp
360 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp
385 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp
361
386
387 moc_spectrapacket.o: moc_spectrapacket.cpp
388 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_spectrapacket.o moc_spectrapacket.cpp
389
362 moc_hkdisplay.o: moc_hkdisplay.cpp
390 moc_hkdisplay.o: moc_hkdisplay.cpp
363 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp
391 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp
364
392
@@ -368,6 +396,9 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
368 moc_lfrspectrogram.o: moc_lfrspectrogram.cpp
396 moc_lfrspectrogram.o: moc_lfrspectrogram.cpp
369 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp
397 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp
370
398
399 moc_parameterdump.o: moc_parameterdump.cpp
400 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_parameterdump.o moc_parameterdump.cpp
401
371 ####### Install
402 ####### Install
372
403
373 install: FORCE
404 install: FORCE
@@ -8,7 +8,7 QT += core gui
8 QT += network
8 QT += network
9 QT += xml
9 QT += xml
10
10
11 TARGET = lfrsgse
11 TARGET = lfrsgse-dev
12 TEMPLATE = app
12 TEMPLATE = app
13
13
14 INCLUDEPATH += \
14 INCLUDEPATH += \
@@ -30,9 +30,11 SOURCES += main.cpp\
30 ../rmapplugin/tmstatistics.cpp \
30 ../rmapplugin/tmstatistics.cpp \
31 ../rmapplugin/tmpackettoread.cpp \
31 ../rmapplugin/tmpackettoread.cpp \
32 ../rmapplugin/wfpacket.cpp \
32 ../rmapplugin/wfpacket.cpp \
33 ../rmapplugin/spectrapacket.cpp \
33 ../common_PLE/hkdisplay.cpp \
34 ../common_PLE/hkdisplay.cpp \
34 lfrxmlparser.cpp \
35 lfrxmlparser.cpp \
35 lfrspectrogram.cpp
36 lfrspectrogram.cpp \
37 parameterdump.cpp
36
38
37 HEADERS += mainwindow.h \
39 HEADERS += mainwindow.h \
38 mainwindowui.h \
40 mainwindowui.h \
@@ -42,11 +44,13 HEADERS += mainwindow.h \
42 ../rmapplugin/tmstatistics.h \
44 ../rmapplugin/tmstatistics.h \
43 ../rmapplugin/tmpackettoread.h \
45 ../rmapplugin/tmpackettoread.h \
44 ../rmapplugin/wfpacket.h \
46 ../rmapplugin/wfpacket.h \
47 ../rmapplugin/spectrapacket.h \
45 ../common_PLE/hkdisplay.h \
48 ../common_PLE/hkdisplay.h \
46 ../rmapplugin/params.h \
49 ../rmapplugin/params.h \
47 ../../DEV_PLE/header/ccsds_types.h \
50 ../../DEV_PLE/header/ccsds_types.h \
48 lfrxmlparser.h \
51 lfrxmlparser.h \
49 lfrspectrogram.h
52 lfrspectrogram.h \
53 parameterdump.h
50
54
51
55
52
56
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-07-12T14:03:51. -->
3 <!-- Written by QtCreator 2.7.0, 2013-07-25T10:23:24. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -11,14 +11,15
11 <valuemap type="QVariantMap">
11 <valuemap type="QVariantMap">
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <value type="QString" key="language">Cpp</value>
16 <value type="QByteArray" key="language">Cpp</value>
16 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
17 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 </valuemap>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <value type="QString" key="language">QmlJS</value>
22 <value type="QByteArray" key="language">QmlJS</value>
22 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
23 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 </valuemap>
25 </valuemap>
@@ -27,6 +28,7
27 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
30 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
31 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
32 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
@@ -49,60 +51,69
49 <data>
51 <data>
50 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
51 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
52 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
53 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
56 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
55 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
56 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
58 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
59 <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
62 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
63 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
65 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
66 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
67 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
69 </valuemap>
71 </valuemap>
70 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
71 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
72 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
73 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
80 </valuelist>
74 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
75 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
76 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
77 </valuemap>
84 </valuemap>
78 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
79 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
80 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
81 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
82 </valuemap>
89 </valuemap>
83 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
84 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
85 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
95 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
99 </valuelist>
88 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
89 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
90 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
91 </valuemap>
103 </valuemap>
92 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
96 </valuemap>
108 </valuemap>
97 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
98 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
99 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
101 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gse_lesia</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value>
105 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
106 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
107 </valuemap>
118 </valuemap>
108 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
@@ -111,60 +122,29
111 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
115 </valuemap>
126 </valuemap>
116 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
117 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
118 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
119 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
120 </valuemap>
131 </valuemap>
121 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
122 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
123 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
134 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
124 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
125 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
126 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
135 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
127 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
128 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
129 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
130 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
131 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
132 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
133 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
134 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
135 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
137 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
141 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
138 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
139 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
140 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
141 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
142 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
146 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
149 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
147 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
150 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
151 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
152 <value type="int">0</value>
153 <value type="int">1</value>
154 <value type="int">2</value>
155 <value type="int">3</value>
156 <value type="int">4</value>
157 <value type="int">5</value>
158 <value type="int">6</value>
159 <value type="int">7</value>
160 <value type="int">8</value>
161 <value type="int">9</value>
162 <value type="int">10</value>
163 <value type="int">11</value>
164 <value type="int">12</value>
165 <value type="int">13</value>
166 <value type="int">14</value>
167 </valuelist>
168 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
148 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
169 <value type="int">0</value>
149 <value type="int">0</value>
170 <value type="int">1</value>
150 <value type="int">1</value>
@@ -184,7 +164,7
184 </valuelist>
164 </valuelist>
185 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value>
165 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value>
186 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
166 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
187 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value>
167 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value>
188 <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
168 <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
189 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
169 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
190 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value>
170 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value>
@@ -194,6 +174,7
194 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
174 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
195 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
196 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
197 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
178 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
198 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
179 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
199 </valuemap>
180 </valuemap>
@@ -206,10 +187,10
206 </data>
187 </data>
207 <data>
188 <data>
208 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
189 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
209 <value type="QString">{cdbf9cdc-1e84-406e-889b-c4feef49e75c}</value>
190 <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
210 </data>
191 </data>
211 <data>
192 <data>
212 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
193 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
213 <value type="int">10</value>
194 <value type="int">12</value>
214 </data>
195 </data>
215 </qtcreator>
196 </qtcreator>
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -9,6 +9,8 MainWindow::MainWindow(QWidget *parent)
9 totalOfBytes = 0;
9 totalOfBytes = 0;
10 totalOfPackets = 0;
10 totalOfPackets = 0;
11
11
12 spectraPacketNormalSpectrumF0 = new SpectraPacket(this, 128);
13
12 //****
14 //****
13 // XML
15 // XML
14 // xml handlers
16 // xml handlers
@@ -254,149 +256,68 void MainWindow::preProcessPacket(TMPack
254
256
255 //*********************************
257 //*********************************
256 // get the parameters of the packet
258 // get the parameters of the packet
257 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
259 pid = this->UI->tmStatistics->getPID( packet );
258 cat = packet->Value[5] & 0x0f;
260 cat = this->UI->tmStatistics->getCAT( packet );
259 typ = packet->Value[11]; // TYPE
261 typ = this->UI->tmStatistics->getTYPE( packet );
260 sub = packet->Value[12]; // SUBTYPE
262 sub = this->UI->tmStatistics->getSUBTYPE( packet );
261 sid = 0;
263 length = this->UI->tmStatistics->getLENGTH( packet );
262 length = packet->Value[8] * 256 + packet->Value[9];
264 coarse_t = this->UI->tmStatistics->getCoarseTime( packet );
265 fine_t = this->UI->tmStatistics->getFineTime( packet );
266 sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub );
267
268 this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
269
263 // compare length in the packet with the size of the packet
270 // compare length in the packet with the size of the packet
264 if ( (length + 1 + 10) != (packet->size))
271 if ( (length + 1 + 10) != (packet->size))
265 {
272 {
266 displayOnConsole("reception of " + QString::number(packet->size)
273 displayOnConsole("reception of " + QString::number(packet->size)
267 + " bytes instead of " + QString::number(length + 1 + 10));
274 + " bytes instead of " + QString::number(length + 1 + 10));
268 }
275 }
269 coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
270 + packet->Value[16] * pow(2, 8) + packet->Value[17];
271 fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19];
272
273 if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8))
274 sid = packet->Value[20] * 256 + packet->Value[21];
275 else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25))
276 sid = 1;
277 else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3))
278 sid = packet->Value[20];
279 else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3))
280 sid = packet->Value[20];
281
282 this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
283
276
284 //***************************************************
277 //***************************************************
285 // if the packet is an HK packet, display its content
278 // if the packet is an HK packet, display its content
286 if ( (pid == 76) & (cat == 4) & (typ == TYPE_HK) & (sub == SUBTYPE_HK) )
279 if ( (pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK) )
287 {
280 {
288 this->UI->hkDisplay->displayPacket(packet);
281 this->UI->hkDisplay->displayPacket(packet);
289 }
282 }
290
283
284 //**************************************************************
285 // if the packet is a parameter dump packet, display its content
286 if ( (pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP) )
287 {
288 //this->UI->parameterDump->updateParameterDump(packet);
289 }
290
291 //****************************************
291 //****************************************
292 // if the packet is a waveform, display it
292 // if the packet is a waveform, display it
293 if ( (typ == 21) & (sub == 3) )
293 if ( (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE) )
294 {
294 {
295 sid = packet->Value[20]; // SID
295 sid = packet->Value[20]; // SID
296 switch (sid){
296 switch (sid){
297 case SID_NORMAL_SWF_F0:
297 case SID_NORMAL_SWF_F0:
298 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
298 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
299 break;
299 break;
300 case SID_NORMAL_SWF_F1:
300 case SID_NORMAL_SWF_F1:
301 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
301 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
302 break;
302 break;
303 case SID_NORMAL_SWF_F2:
303 case SID_NORMAL_SWF_F2:
304 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
304 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
305 break;
305 break;
306 case SID_NORMAL_CWF_F3:
306 case SID_NORMAL_CWF_F3:
307 buildWFAndDisplay(packet, &wfPacketNormal[3], 3);
307 buildWFAndDisplay(packet, &wfPacketNormal[3], 3);
308 break;
308 break;
309 case SID_BURST_CWF_F2:
309 case SID_BURST_CWF_F2:
310 buildWFAndDisplayBurst(packet, &wfPacketBurst);
310 buildWFAndDisplayBurst(packet, &wfPacketBurst);
311 break;
311 break;
312 case SID_SBM1_CWF_F1:
312 case SID_SBM1_CWF_F1:
313 buildWFAndDisplaySBM1(packet, &wfPacketSBM1);
313 buildWFAndDisplaySBM1(packet, &wfPacketSBM1);
314 break;
314 break;
315 case SID_SBM2_CWF_F2:
315 case SID_SBM2_CWF_F2:
316 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
316 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
317 break;
317 break;
318 }
318 case SID_NORMAL_ASM_F0:
319 }
319 buildSpectrumAndDisplayNORM_F0(packet, spectraPacketNormalSpectrumF0);
320 }
320 break;
321
322 void MainWindow::preProcessPacketLESIA(TMPacketToRead *packet)
323 {
324 unsigned char pid = 0;
325 unsigned char cat = 0;
326 unsigned char typ = 0;
327 unsigned char sub = 0;
328 unsigned int sid = 0;
329 unsigned int length = 0;
330 unsigned int coarse_t = 0;
331 unsigned int fine_t = 0;
332
333 unsigned int offset;
334
335 offset = 4;
336
337 //*********************************
338 // get the parameters of the packet
339 pid = ((packet->Value[4-offset] & 0x07) << 4) + ((packet->Value[5-offset] & 0xf0) >> 4);
340 cat = packet->Value[5-offset] & 0x0f;
341 typ = packet->Value[11-offset]; // TYPE
342 sub = packet->Value[12-offset]; // SUBTYPE
343 sid = 0;
344 length = packet->Value[8-offset] * 256 + packet->Value[9-offset];
345 // compare length in the packet with the size of the packet
346 if ( (length + 1 + 6) != (packet->size))
347 {
348 displayOnConsole("reception of " + QString::number(packet->size)
349 + " bytes instead of " + QString::number(length + 1 + 6));
350 }
351 coarse_t = packet->Value[14-offset] * pow(2, 24) + packet->Value[15-offset] * pow(2, 16)
352 + packet->Value[16-offset] * pow(2, 8) + packet->Value[17-offset];
353 fine_t = packet->Value[18-offset] * pow(2, 8) + packet->Value[19-offset];
354
355 if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8))
356 sid = packet->Value[20-offset] * 256 + packet->Value[21-offset];
357 else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25))
358 sid = 1;
359 else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3))
360 sid = packet->Value[20-offset];
361 else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3))
362 sid = packet->Value[20-offset];
363
364 this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
365
366 //***************************************************
367 // if the packet is an HK packet, display its content
368 if ( (pid == 76) & (4) & (typ == TYPE_HK) & (sub == SUBTYPE_HK) )
369 {
370 this->UI->hkDisplay->displayPacketLESIA(packet);
371 }
372
373 //****************************************
374 // if the packet is a waveform, display it
375 if ( (typ == 21) & (sub == 3) )
376 {
377 sid = packet->Value[20-offset]; // SID
378 switch (sid){
379 case SID_NORMAL_SWF_F0:
380 buildWFAndDisplay(packet, &wfPacketNormal[0], 0);
381 break;
382 case SID_NORMAL_SWF_F1:
383 buildWFAndDisplay(packet, &wfPacketNormal[1], 1);
384 break;
385 case SID_NORMAL_SWF_F2:
386 buildWFAndDisplay(packet, &wfPacketNormal[2], 2);
387 break;
388 case SID_NORMAL_CWF_F3:
389 buildWFAndDisplay(packet, &wfPacketNormal[3], 3);
390 break;
391 case SID_BURST_CWF_F2:
392 buildWFAndDisplayBurst(packet, &wfPacketBurst);
393 break;
394 case SID_SBM1_CWF_F1:
395 buildWFAndDisplaySBM1(packet, &wfPacketSBM1);
396 break;
397 case SID_SBM2_CWF_F2:
398 buildWFAndDisplaySBM2(packet, &wfPacketSBM2);
399 break;
400 }
321 }
401 }
322 }
402 }
323 }
@@ -476,12 +397,12 void MainWindow::buildWFAndDisplaySBM1(T
476 data = &packet->Value[30]; // start of the first data block;
397 data = &packet->Value[30]; // start of the first data block;
477 j = (pkt_nr-1) * 340;
398 j = (pkt_nr-1) * 340;
478 for ( i=0; i<blk_nr; i++ ){
399 for ( i=0; i<blk_nr; i++ ){
479 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
400 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) );
480 wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
401 wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) );
481 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
402 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) );
482 wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
403 wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) );
483 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
404 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) );
484 wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
405 wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) );
485 }
406 }
486 pkt_nr = pkt_nr + 1;
407 pkt_nr = pkt_nr + 1;
487 if (blk_nr == 8)
408 if (blk_nr == 8)
@@ -528,6 +449,47 void MainWindow::buildWFAndDisplaySBM2(T
528 }
449 }
529 }
450 }
530
451
452 void MainWindow::buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket)
453 {
454 unsigned int i = 0;
455 unsigned int j = 0;
456 unsigned char *data;
457 char *aux;
458 unsigned char nrASM;
459 unsigned int blkNR;
460
461 nrASM = packet->Value[23];
462 blkNR = packet->Value[30] * 256 + packet->Value[31];
463 data = &packet->Value[32]; // start of the first data block;
464
465 j = (nrASM-1) * blkNR;
466 for ( i=0; i<blkNR; i++ ){
467 aux = (char*) &spectraPacket->s11[j + i];
468 aux[3] = data[ (i * 50 + 2*0) ];
469 aux[2] = data[ (i * 50 + 2*0) + 1];
470 aux = (char*) &spectraPacket->s22[j + i];
471 aux[3] = data[ (i * 50 + 2*9) ];
472 aux[2] = data[ (i * 50 + 2*9) + 1];
473 aux = (char*) &spectraPacket->s33[j + i];
474 aux[3] = data[ (i * 50 + 2*16) ];
475 aux[2] = data[ (i * 50 + 2*16) + 1];
476 aux = (char*) &spectraPacket->s44[j + i];
477 aux[3] = data[ (i * 50 + 2*21) ];
478 aux[2] = data[ (i * 50 + 2*21) + 1];
479 aux = (char*) &spectraPacket->s55[j + i];
480 aux[3] = data[ (i * 50 + 2*24) ];
481 aux[2] = data[ (i * 50 + 2*24) + 1];
482 }
483 if (nrASM == 2)
484 {
485 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s11, 0);
486 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s22, 1);
487 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s33, 2);
488 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s44, 3);
489 this->UI->pageSpectraNORM->displayOnPlotFloat(spectraPacket->s55, 4);
490 }
491 }
492
531 void MainWindow::processIncomingPacket(TMPacketToRead *packet)
493 void MainWindow::processIncomingPacket(TMPacketToRead *packet)
532 {
494 {
533 totalOfBytes = totalOfBytes + packet->size;
495 totalOfBytes = totalOfBytes + packet->size;
@@ -13,6 +13,7
13 #include "tmpackettoread.h"
13 #include "tmpackettoread.h"
14 #include "wfpacket.h"
14 #include "wfpacket.h"
15 #include "lfrxmlparser.h"
15 #include "lfrxmlparser.h"
16 #include <spectrapacket.h>
16
17
17 class MainWindow : public QMainWindow
18 class MainWindow : public QMainWindow
18 {
19 {
@@ -24,12 +25,22 public:
24
25
25 void displayNetworkInterfaces();
26 void displayNetworkInterfaces();
26 void initSocketStatesList();
27 void initSocketStatesList();
28 //
27 void preProcessPacket(TMPacketToRead *packet);
29 void preProcessPacket(TMPacketToRead *packet);
28 void preProcessPacketLESIA(TMPacketToRead *packet);
30 unsigned char getPID(TMPacketToRead *packet);
31 unsigned char getCAT(TMPacketToRead *packet);
32 unsigned char getTYPE(TMPacketToRead *packet);
33 unsigned char getSUBTYPE(TMPacketToRead *packet);
34 unsigned int getLENGTH(TMPacketToRead *packet);
35 unsigned int getCoarseTime(TMPacketToRead *packet);
36 unsigned int getFineTime(TMPacketToRead *packet);
37 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
38 //
29 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
39 void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page);
30 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
40 void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket);
31 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
41 void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket);
32 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
42 void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket);
43 void buildSpectrumAndDisplayNORM_F0(TMPacketToRead *packet, SpectraPacket *spectraPacket);
33
44
34 protected:
45 protected:
35 void closeEvent(QCloseEvent *);
46 void closeEvent(QCloseEvent *);
@@ -72,6 +83,7 private:
72 WFPacket wfPacketBurst;
83 WFPacket wfPacketBurst;
73 WFPacket wfPacketSBM1;
84 WFPacket wfPacketSBM1;
74 WFPacket wfPacketSBM2;
85 WFPacket wfPacketSBM2;
86 SpectraPacket *spectraPacketNormalSpectrumF0;
75
87
76 bool parsingContinue;
88 bool parsingContinue;
77
89
@@ -30,6 +30,11 MainWindowUI::MainWindowUI(QWidget *pare
30 wfPageBurst = new WFPage();
30 wfPageBurst = new WFPage();
31 wfPageSBM1 = new WFPage();
31 wfPageSBM1 = new WFPage();
32 wfPageSBM2 = new WFPage();
32 wfPageSBM2 = new WFPage();
33 pageSpectraNORM = new PageSpectra();
34 wfPageBurst->pageTitle = "BURST_CWF_F2";
35 wfPageSBM1->pageTitle = "SBM1_CWF_F1";
36 wfPageSBM2->pageTitle = "SBM2_CWF_F2";
37 pageSpectraNORM->pageTitle = "ASM f0";
33 hkDisplay = new HKDisplay();
38 hkDisplay = new HKDisplay();
34 lfrSpectrogam = new LFRSpectrogram();
39 lfrSpectrogam = new LFRSpectrogram();
35
40
@@ -62,6 +67,8 MainWindowUI::MainWindowUI(QWidget *pare
62 layout_TMToForeignGSETester = new QVBoxLayout();
67 layout_TMToForeignGSETester = new QVBoxLayout();
63 mainLayout = new QGridLayout();
68 mainLayout = new QGridLayout();
64
69
70 parameterDump = new ParameterDump();
71
65 layout_TMEcho->addWidget(label_serverTMEcho);
72 layout_TMEcho->addWidget(label_serverTMEcho);
66 layout_TMEcho->addWidget(serverTMEchoDialogBox);
73 layout_TMEcho->addWidget(serverTMEchoDialogBox);
67 layout_TMEcho->addWidget(label_serverTMEchoPort);
74 layout_TMEcho->addWidget(label_serverTMEchoPort);
@@ -96,7 +103,9 MainWindowUI::MainWindowUI(QWidget *pare
96 spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection"));
103 spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection"));
97 spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics"));
104 spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics"));
98 spwTabWidget->addTab(spwTabWidgetPage3, tr("HK"));
105 spwTabWidget->addTab(spwTabWidgetPage3, tr("HK"));
106 spwTabWidget->addTab(parameterDump, tr("DUMP"));
99 spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM"));
107 spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM"));
108 spwTabWidget->addTab(pageSpectraNORM, tr("ASM f0"));
100 spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST"));
109 spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST"));
101 spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1"));
110 spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1"));
102 spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2"));
111 spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2"));
@@ -161,4 +170,3 void MainWindowUI::totalOfPacketsHasChan
161 "Received Packets: "
170 "Received Packets: "
162 + QString::number(nbPackets));
171 + QString::number(nbPackets));
163 }
172 }
164
@@ -13,10 +13,12
13 #include <QTabWidget>
13 #include <QTabWidget>
14
14
15 #include <wfdisplay.h>
15 #include <wfdisplay.h>
16 #include <pagespectra.h>
16
17
17 #include "tmstatistics.h"
18 #include "tmstatistics.h"
18 #include "hkdisplay.h"
19 #include "hkdisplay.h"
19 #include "lfrspectrogram.h"
20 #include "lfrspectrogram.h"
21 #include "parameterdump.h"
20
22
21 class MainWindowUI : public QWidget
23 class MainWindowUI : public QWidget
22 {
24 {
@@ -46,11 +48,14 public:
46 WFPage* wfPageBurst;
48 WFPage* wfPageBurst;
47 WFPage* wfPageSBM1;
49 WFPage* wfPageSBM1;
48 WFPage* wfPageSBM2;
50 WFPage* wfPageSBM2;
51 PageSpectra* pageSpectraNORM;
49 HKDisplay* hkDisplay;
52 HKDisplay* hkDisplay;
50 LFRSpectrogram* lfrSpectrogam;
53 LFRSpectrogram* lfrSpectrogam;
51
54
52 QWidget* widget_spectrogram;
55 QWidget* widget_spectrogram;
53
56
57 ParameterDump* parameterDump;
58
54 QPushButton *button_openServerTCTM;
59 QPushButton *button_openServerTCTM;
55 QPushButton *button_testServerTCTM;
60 QPushButton *button_testServerTCTM;
56 QPushButton *button_openSocketEchoServer;
61 QPushButton *button_openSocketEchoServer;
@@ -1,9 +1,9
1 #############################################################################
1 #############################################################################
2 # Makefile for building: librmapplugin.so.1.0.0
2 # Makefile for building: librmapplugin.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Mon Jul 8 14:56:42 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 16:21:25 2013
4 # Project: rmapplugin.pro
4 # Project: rmapplugin.pro
5 # Template: lib
5 # Template: lib
6 # Command: /usr/bin/qmake-qt4 -o Makefile rmapplugin.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
7 #############################################################################
7 #############################################################################
8
8
9 ####### Compiler, tools and options
9 ####### Compiler, tools and options
@@ -11,9 +11,9
11 CC = gcc
11 CC = gcc
12 CXX = g++
12 CXX = g++
13 DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.1\"" -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_CONFIG_PATH="QDir::homePath()+\"/.lppmon/config\"" -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
13 DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.1\"" -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_CONFIG_PATH="QDir::homePath()+\"/.lppmon/config\"" -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../../DEV_PLE/header -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1
19 LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lwfdisplay -lqwt5-qt4 -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
19 LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lwfdisplay -lqwt5-qt4 -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
@@ -211,7 +211,7 Makefile: rmapplugin.pro /usr/lib64/qt4
211 /usr/lib64/libQtCore.prl \
211 /usr/lib64/libQtCore.prl \
212 /usr/lib64/libQtGui.prl \
212 /usr/lib64/libQtGui.prl \
213 /usr/lib64/libQtNetwork.prl
213 /usr/lib64/libQtNetwork.prl
214 $(QMAKE) -o Makefile rmapplugin.pro
214 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
215 /usr/lib64/qt4/mkspecs/common/unix.conf:
215 /usr/lib64/qt4/mkspecs/common/unix.conf:
216 /usr/lib64/qt4/mkspecs/common/linux.conf:
216 /usr/lib64/qt4/mkspecs/common/linux.conf:
217 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
217 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
@@ -243,11 +243,11 Makefile: rmapplugin.pro /usr/lib64/qt4
243 /usr/lib64/libQtGui.prl:
243 /usr/lib64/libQtGui.prl:
244 /usr/lib64/libQtNetwork.prl:
244 /usr/lib64/libQtNetwork.prl:
245 qmake: FORCE
245 qmake: FORCE
246 @$(QMAKE) -o Makefile rmapplugin.pro
246 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile rmapplugin.pro
247
247
248 dist:
248 dist:
249 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
249 @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0
250 $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0
250 $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents ../../DEV_PLE/header/ccsds_types.h rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0
251
251
252
252
253 clean:compiler_clean
253 clean:compiler_clean
@@ -330,7 +330,8 moc/moc_tcpackettosend.cpp: tcpackettose
330 moc/moc_tmpackettoread.cpp: tmpackettoread.h
330 moc/moc_tmpackettoread.cpp: tmpackettoread.h
331 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
331 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp
332
332
333 moc/moc_tmstatistics.cpp: tmstatistics.h
333 moc/moc_tmstatistics.cpp: tmpackettoread.h \
334 tmstatistics.h
334 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp
335 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp
335
336
336 moc/moc_wfpacket.cpp: params.h \
337 moc/moc_wfpacket.cpp: params.h \
@@ -435,7 +436,8 obj/tcpackettosend.o: tcpackettosend.cpp
435 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
436 obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h
436 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
437 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp
437
438
438 obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h
439 obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h \
440 tmpackettoread.h
439 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp
441 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp
440
442
441 obj/wfpacket.o: wfpacket.cpp wfpacket.h \
443 obj/wfpacket.o: wfpacket.cpp wfpacket.h \
@@ -495,18 +497,18 obj/moc_lppmonplugin.o: moc/moc_lppmonpl
495 ####### Install
497 ####### Install
496
498
497 install_target: first FORCE
499 install_target: first FORCE
498 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/admin/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/admin/.lppmon/plugins/
500 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
499 -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET)"
501 -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
500 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET0)"
502 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
501 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET1)"
503 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
502 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET2)"
504 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
503
505
504 uninstall_target: FORCE
506 uninstall_target: FORCE
505 -$(DEL_FILE) "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET)"
507 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)"
506 -$(DEL_FILE) "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET0)"
508 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)"
507 -$(DEL_FILE) "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET1)"
509 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)"
508 -$(DEL_FILE) "$(INSTALL_ROOT)/home/admin/.lppmon/plugins/$(TARGET2)"
510 -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)"
509 -$(DEL_DIR) $(INSTALL_ROOT)/home/admin/.lppmon/plugins/
511 -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/
510
512
511
513
512 install: install_target FORCE
514 install: install_target FORCE
@@ -245,8 +245,7 void rmapplugin::receivePacketFromBridge
245 preProcessPacket(packet);
245 preProcessPacket(packet);
246
246
247 // Send the packet to the TM echo bridge for processing
247 // Send the packet to the TM echo bridge for processing
248 this->UI->tmEchoBridge->sendTMPacket(packet);
248 this->UI->tmEchoBridge->sendTMPacketLESIA(packet);
249 //this->UI->tmEchoBridge->sendTMPacket_alternative(packet);
250
249
251 this->generalCCSDSPacketStore.append(packet);
250 this->generalCCSDSPacketStore.append(packet);
252 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size()));
251 this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size()));
@@ -266,24 +265,14 void rmapplugin::preProcessPacket(TMPack
266
265
267 //*********************************
266 //*********************************
268 // get the parameters of the packet
267 // get the parameters of the packet
269 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
268 pid = this->UI->tmStatistics->getPID( packet );
270 cat = packet->Value[5] & 0x0f;
269 cat = this->UI->tmStatistics->getCAT( packet );
271 typ = packet->Value[11]; // TYPE
270 typ = this->UI->tmStatistics->getTYPE( packet );
272 sub = packet->Value[12]; // SUBTYPE
271 sub = this->UI->tmStatistics->getSUBTYPE( packet );
273 sid = 0;
272 length = this->UI->tmStatistics->getLENGTH( packet );
274 length = packet->Value[8] * 256 + packet->Value[9];
273 coarse_t = this->UI->tmStatistics->getCoarseTime( packet );
275 coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
274 fine_t = this->UI->tmStatistics->getFineTime( packet );
276 + packet->Value[16] * pow(2, 8) + packet->Value[17];
275 sid = this->UI->tmStatistics->getSID( packet, pid, cat, typ, sub );
277 fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19];
278
279 if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8))
280 sid = packet->Value[20] * 256 + packet->Value[21];
281 else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25))
282 sid = 1;
283 else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3))
284 sid = packet->Value[20];
285 else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3))
286 sid = packet->Value[20];
287
276
288 emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
277 emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t);
289
278
@@ -27,6 +27,7 LIBS += ../spw_usb_driver_v2.63/lib/x86_
27 INCLUDEPATH += \
27 INCLUDEPATH += \
28 $${PWD} \
28 $${PWD} \
29 ../common_PLE \
29 ../common_PLE \
30 ../../DEV_PLE/header \
30 ../spw_usb_driver_v2.63/inc \
31 ../spw_usb_driver_v2.63/inc \
31 $${QT_INSTALL_HEADER} \
32 $${QT_INSTALL_HEADER} \
32 $$[QT_INSTALL_HEADERS]/lppmon/common \
33 $$[QT_INSTALL_HEADERS]/lppmon/common \
@@ -36,6 +37,7 LIBS += -llppmoncommon -lwfdisplay -lqwt
36
37
37
38
38 HEADERS += \
39 HEADERS += \
40 ../../DEV_PLE/header/ccsds_types.h \
39 rmappluginui.h \
41 rmappluginui.h \
40 rmapplugin.h \
42 rmapplugin.h \
41 rmapoperations.h \
43 rmapoperations.h \
@@ -158,7 +158,6 void TMEchoBridge::sendXML_GSE_HK()
158 void TMEchoBridge::sendTMPacket(TMPacketToRead *tmPacketToRead)
158 void TMEchoBridge::sendTMPacket(TMPacketToRead *tmPacketToRead)
159 {
159 {
160 QByteArray ccsdsArray;
160 QByteArray ccsdsArray;
161 QTime echoBridgeTimeout;
162
161
163 if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState)
162 if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState)
164 {
163 {
@@ -191,6 +190,41 void TMEchoBridge::sendTMPacket(TMPacket
191 }
190 }
192 }
191 }
193
192
193 void TMEchoBridge::sendTMPacketLESIA(TMPacketToRead *tmPacketToRead)
194 {
195 QByteArray ccsdsArray;
196
197 if (tmEchoBridgeSocket->state() == QAbstractSocket::ConnectedState)
198 {
199 ccsdsArray.append("<Event>");
200
201 ccsdsArray.append("<EventDate>");
202 ccsdsArray.append("</EventDate>");
203
204 ccsdsArray.append("<EventTime>");
205 ccsdsArray.append("</EventTime>");
206
207 ccsdsArray.append("<EventBinary>");
208 ccsdsArray.append(QByteArray::fromRawData( (char*) &tmPacketToRead->Value[4], tmPacketToRead->size-4).toHex());
209 ccsdsArray.append("</EventBinary>");
210
211 ccsdsArray.append("</Event>");
212
213 tmEchoBridgeSocket->write(ccsdsArray);
214 tmEchoBridgeSocket->flush();
215
216 totalOfBytes = totalOfBytes + tmPacketToRead->size;
217 totalOfPackets = totalOfPackets + 1;
218 label_totalOfBytes->setText("Number of TM bytes sent: " + QString::number(totalOfBytes));
219 label_totalOfPackets->setText("Number of TM packets sent: " + QString::number(totalOfPackets));
220 }
221 else
222 {
223 totalOfPacketsDropped = totalOfPacketsDropped + 1;
224 label_totalOfPacketsDropped->setText("Number of TM packets dropped: " + QString::number(totalOfPacketsDropped));
225 }
226 }
227
194 void TMEchoBridge::clearConsole()
228 void TMEchoBridge::clearConsole()
195 {
229 {
196 this->console->clear();
230 this->console->clear();
@@ -32,6 +32,7 public slots:
32 void newConnectionOnTCServer();
32 void newConnectionOnTCServer();
33 void sendXML_GSE_HK();
33 void sendXML_GSE_HK();
34 void sendTMPacket(TMPacketToRead *tmPacketToRead);
34 void sendTMPacket(TMPacketToRead *tmPacketToRead);
35 void sendTMPacketLESIA(TMPacketToRead *tmPacketToRead);
35 void clearConsole();
36 void clearConsole();
36 void resetTMStatistics();
37 void resetTMStatistics();
37
38
@@ -29,6 +29,7 TMStatistics::TMStatistics(QWidget *pare
29 label_ERRO = new QLabel("ERROR");
29 label_ERRO = new QLabel("ERROR");
30 label_CORR = new QLabel("CORRUPTED");
30 label_CORR = new QLabel("CORRUPTED");
31 label_HK = new QLabel("TM_LFR_HK");
31 label_HK = new QLabel("TM_LFR_HK");
32 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
32 //
33 //
33 label_SUCC_nb = new QLabel("-");
34 label_SUCC_nb = new QLabel("-");
34 label_INCO_nb = new QLabel("-");
35 label_INCO_nb = new QLabel("-");
@@ -37,6 +38,7 TMStatistics::TMStatistics(QWidget *pare
37 label_ERRO_nb = new QLabel("-");
38 label_ERRO_nb = new QLabel("-");
38 label_CORR_nb = new QLabel("-");
39 label_CORR_nb = new QLabel("-");
39 label_HK_nb = new QLabel("-");
40 label_HK_nb = new QLabel("-");
41 label_DUMP_nb = new QLabel("-");
40
42
41 //***********************
43 //***********************
42 // TM_LFR_SCIENCE_NORMAL_
44 // TM_LFR_SCIENCE_NORMAL_
@@ -163,7 +165,7 void TMStatistics::initConstants()
163 {
165 {
164 UNKNOWN_nb = 0;
166 UNKNOWN_nb = 0;
165
167
166 // TM_LFR_SCIENCE_NORMAL_
168 // TM_LFR_TC_EXE_
167 SUCC_nb = 0;
169 SUCC_nb = 0;
168 INCO_nb = 0;
170 INCO_nb = 0;
169 NOTE_nb = 0;
171 NOTE_nb = 0;
@@ -171,6 +173,7 void TMStatistics::initConstants()
171 ERRO_nb = 0;
173 ERRO_nb = 0;
172 CORR_nb = 0;
174 CORR_nb = 0;
173 HK_nb = 0;
175 HK_nb = 0;
176 DUMP_nb = 0;
174
177
175 // TM_LFR_SCIENCE_NORMAL_
178 // TM_LFR_SCIENCE_NORMAL_
176 NORM_SWF_F0_nb = 0;
179 NORM_SWF_F0_nb = 0;
@@ -298,6 +301,7 void TMStatistics::buildMonitor()
298 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
301 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
299 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
302 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
300 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
303 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
304 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
301 //
305 //
302 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
306 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
303 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
307 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
@@ -306,6 +310,7 void TMStatistics::buildMonitor()
306 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
310 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
307 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
311 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
308 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
312 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
313 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
309
314
310 //********
315 //********
311 // LAST TM
316 // LAST TM
@@ -365,11 +370,13 void TMStatistics::resetStatistics()
365 label_ERRO_nb->setText("-");
370 label_ERRO_nb->setText("-");
366 label_CORR_nb->setText("-");
371 label_CORR_nb->setText("-");
367 label_HK_nb->setText("-");
372 label_HK_nb->setText("-");
373 label_DUMP_nb->setText("-");
368 //
374 //
369 label_NORM_SWF_F0_nb->setText("-");
375 label_NORM_SWF_F0_nb->setText("-");
370 label_NORM_SWF_F1_nb->setText("-");
376 label_NORM_SWF_F1_nb->setText("-");
371 label_NORM_SWF_F2_nb->setText("-");
377 label_NORM_SWF_F2_nb->setText("-");
372 label_NORM_CWF_F3_nb->setText("-");
378 label_NORM_CWF_F3_nb->setText("-");
379 label_NORM_ASM_F0_nb->setText("-");
373 //
380 //
374 label_BURST_CWF_F2_nb->setText("-");
381 label_BURST_CWF_F2_nb->setText("-");
375 //
382 //
@@ -395,36 +402,36 void TMStatistics::updateStatistics(unsi
395 {
402 {
396 if (cat == 1)
403 if (cat == 1)
397 {
404 {
398 if (typ == 1)
405 if (typ == TM_TYPE_TC_EXE)
399 {
406 {
400 if (sub == 7)
407 if (sub == TM_SUBTYPE_EXE_OK)
401 {
408 {
402 SUCC_nb = SUCC_nb + 1;
409 SUCC_nb = SUCC_nb + 1;
403 label_SUCC_nb->setText(QString::number(SUCC_nb));
410 label_SUCC_nb->setText(QString::number(SUCC_nb));
404 }
411 }
405 else if (sub == 8)
412 else if (sub == TM_SUBTYPE_EXE_NOK)
406 {
413 {
407 if (sid == 5)
414 if (sid == SID_EXE_INC)
408 {
415 {
409 INCO_nb = INCO_nb + 1;
416 INCO_nb = INCO_nb + 1;
410 label_INCO_nb->setText(QString::number(INCO_nb));
417 label_INCO_nb->setText(QString::number(INCO_nb));
411 }
418 }
412 else if (sid == 40000)
419 else if (sid == SID_NOT_EXE)
413 {
420 {
414 NOTE_nb = NOTE_nb + 1;
421 NOTE_nb = NOTE_nb + 1;
415 label_NOTE_nb->setText(QString::number(NOTE_nb));
422 label_NOTE_nb->setText(QString::number(NOTE_nb));
416 }
423 }
417 else if (sid == 40002)
424 else if (sid == SID_NOT_IMP)
418 {
425 {
419 NOTI_nb = NOTI_nb + 1;
426 NOTI_nb = NOTI_nb + 1;
420 label_NOTI_nb->setText(QString::number(NOTI_nb));
427 label_NOTI_nb->setText(QString::number(NOTI_nb));
421 }
428 }
422 else if (sid == 40003)
429 else if (sid == SID_EXE_ERR)
423 {
430 {
424 ERRO_nb = ERRO_nb + 1;
431 ERRO_nb = ERRO_nb + 1;
425 label_ERRO_nb->setText(QString::number(ERRO_nb));
432 label_ERRO_nb->setText(QString::number(ERRO_nb));
426 }
433 }
427 else if (sid == 40005)
434 else if (sid == SID_EXE_CORR)
428 {
435 {
429 CORR_nb = CORR_nb + 1;
436 CORR_nb = CORR_nb + 1;
430 label_CORR_nb->setText(QString::number(CORR_nb));
437 label_CORR_nb->setText(QString::number(CORR_nb));
@@ -438,10 +445,10 void TMStatistics::updateStatistics(unsi
438 }
445 }
439 else if (cat == 4)
446 else if (cat == 4)
440 {
447 {
441 if (typ == 3)
448 if (typ == TM_TYPE_HK)
442 {
449 {
443 if (sub == 25)
450 if (sub == TM_SUBTYPE_HK)
444 if (sid == 1)
451 if (sid == SID_HK)
445 {
452 {
446 HK_nb = HK_nb + 1;
453 HK_nb = HK_nb + 1;
447 label_HK_nb->setText(QString::number(HK_nb));
454 label_HK_nb->setText(QString::number(HK_nb));
@@ -460,43 +467,72 void TMStatistics::updateStatistics(unsi
460 incrementUnknown();
467 incrementUnknown();
461 }
468 }
462 }
469 }
470 else if (cat == 9)
471 {
472 if (typ == TM_TYPE_PARAMETER_DUMP)
473 {
474 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
475 if (sid == SID_PARAMETER_DUMP)
476 {
477 DUMP_nb = DUMP_nb + 1;
478 label_DUMP_nb->setText(QString::number(DUMP_nb));
479 }
480 else
481 {
482 incrementUnknown();
483 }
484 else
485 {
486 incrementUnknown();
487 }
488 }
489 else
490 {
491 incrementUnknown();
492 }
493 }
463 else if (cat == 12)
494 else if (cat == 12)
464 {
495 {
465 if (typ == 21)
496 if (typ == 21)
466 {
497 {
467 if (sub == 3)
498 if (sub == 3)
468 {
499 {
469 if (sid == 1)
500 if (sid == SID_NORM_CWF_F3)
470 {
501 {
471 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
502 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
472 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
503 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
473 }
504 }
474 else if (sid == 2)
505 else if (sid == SID_BURST_CWF_F2)
475 {
506 {
476 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
507 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
477 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
508 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
478 }
509 }
479 else if (sid == 3)
510 else if (sid == SID_NORM_SWF_F0)
480 {
511 {
481 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
512 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
482 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
513 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
483 }
514 }
484 else if (sid == 4)
515 else if (sid == SID_NORM_SWF_F1)
485 {
516 {
486 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
517 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
487 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
518 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
488 }
519 }
489 else if (sid == 5)
520 else if (sid == SID_NORM_SWF_F2)
490 {
521 {
491 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
522 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
492 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
523 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
493 }
524 }
494 else if (sid == 24)
525 else if (sid == SID_NORM_ASM_F0)
526 {
527 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
528 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
529 }
530 else if (sid == SID_SBM1_CWF_F1)
495 {
531 {
496 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
532 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
497 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
533 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
498 }
534 }
499 else if (sid == 25)
535 else if (sid == SID_SBM2_CWF_F2)
500 {
536 {
501 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
537 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
502 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
538 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
@@ -533,6 +569,89 void TMStatistics::incrementUnknown()
533 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
569 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
534 }
570 }
535
571
572 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
573 {
574 unsigned char pid = 0;
575
576 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
577
578 return pid;
579 }
580
581 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
582 {
583 unsigned char cat = 0;
584
585 cat = packet->Value[5] & 0x0f;
586
587 return cat;
588 }
589
590 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
591 {
592 unsigned char typ = 0;
593
594 typ = packet->Value[11]; // TYPE
595
596 return typ;
597 }
598
599 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
600 {
601 unsigned char sub = 0;
602
603 sub = packet->Value[12]; // SUBTYPE
604
605 return sub;
606 }
607
608 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
609 {
610 unsigned int length = 0;
611
612 length = packet->Value[8] * 256 + packet->Value[9];
613
614 return length;
615 }
616
617 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
618 {
619 unsigned int coarse = 0;
620
621 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
622 + packet->Value[16] * pow(2, 8) + packet->Value[17];
623
624 return coarse;
625 }
626
627 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
628 {
629 unsigned int fine = 0;
630
631 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
632
633 return fine;
634 }
635
636 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
637 unsigned char pid, unsigned char cat,
638 unsigned char typ, unsigned char sub)
639 {
640 unsigned int sid = 0;
641
642 if ((pid == 76) & (cat == 1) & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
643 sid = packet->Value[20] * 256 + packet->Value[21];
644 else if ((pid == 76) & (cat == 4) & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
645 sid = SID_HK;
646 else if ((pid == 76) & (cat == 9) & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
647 sid = SID_PARAMETER_DUMP;
648 else if ((pid == 76) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
649 sid = packet->Value[20];
650 else if ((pid == 79) & (cat == 12) & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
651 sid = packet->Value[20];
652
653 return sid;
654 }
536
655
537
656
538
657
@@ -7,6 +7,8
7 #include <QGridLayout>
7 #include <QGridLayout>
8 #include <QVBoxLayout>
8 #include <QVBoxLayout>
9 #include <QGroupBox>
9 #include <QGroupBox>
10 #include <tmpackettoread.h>
11 #include <ccsds_types.h>
10
12
11 #define STATISTICS_FONT_SIZE 9
13 #define STATISTICS_FONT_SIZE 9
12
14
@@ -23,6 +25,16 public:
23 void buildMonitor_NORM();
25 void buildMonitor_NORM();
24 void buildMonitor();
26 void buildMonitor();
25 void incrementUnknown();
27 void incrementUnknown();
28 //
29 void preProcessPacket(TMPacketToRead *packet);
30 unsigned char getPID(TMPacketToRead *packet);
31 unsigned char getCAT(TMPacketToRead *packet);
32 unsigned char getTYPE(TMPacketToRead *packet);
33 unsigned char getSUBTYPE(TMPacketToRead *packet);
34 unsigned int getLENGTH(TMPacketToRead *packet);
35 unsigned int getCoarseTime(TMPacketToRead *packet);
36 unsigned int getFineTime(TMPacketToRead *packet);
37 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
26
38
27 unsigned int UNKNOWN_nb;
39 unsigned int UNKNOWN_nb;
28 unsigned int SUCC_nb;
40 unsigned int SUCC_nb;
@@ -32,6 +44,7 public:
32 unsigned int ERRO_nb;
44 unsigned int ERRO_nb;
33 unsigned int CORR_nb;
45 unsigned int CORR_nb;
34 unsigned int HK_nb;
46 unsigned int HK_nb;
47 unsigned int DUMP_nb;
35 unsigned int NORM_SWF_F0_nb;
48 unsigned int NORM_SWF_F0_nb;
36 unsigned int NORM_SWF_F1_nb;
49 unsigned int NORM_SWF_F1_nb;
37 unsigned int NORM_SWF_F2_nb;
50 unsigned int NORM_SWF_F2_nb;
@@ -74,6 +87,7 public:
74 QLabel *label_ERRO;
87 QLabel *label_ERRO;
75 QLabel *label_CORR;
88 QLabel *label_CORR;
76 QLabel *label_HK;
89 QLabel *label_HK;
90 QLabel *label_DUMP;
77 //
91 //
78 QLabel *label_SUCC_nb;
92 QLabel *label_SUCC_nb;
79 QLabel *label_INCO_nb;
93 QLabel *label_INCO_nb;
@@ -82,6 +96,7 public:
82 QLabel *label_ERRO_nb;
96 QLabel *label_ERRO_nb;
83 QLabel *label_CORR_nb;
97 QLabel *label_CORR_nb;
84 QLabel *label_HK_nb;
98 QLabel *label_HK_nb;
99 QLabel *label_DUMP_nb;
85
100
86 //***********************
101 //***********************
87 // TM_LFR_SCIENCE_NORMAL_
102 // TM_LFR_SCIENCE_NORMAL_
@@ -1,9 +1,9
1 #############################################################################
1 #############################################################################
2 # Makefile for building: libwfdisplay.so.1.0.0
2 # Makefile for building: libwfdisplay.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jul 12 08:12:10 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 10:11:16 2013
4 # Project: wfdisplay.pro
4 # Project: wfdisplay.pro
5 # Template: lib
5 # Template: lib
6 # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
7 #############################################################################
7 #############################################################################
8
8
9 ####### Compiler, tools and options
9 ####### Compiler, tools and options
@@ -11,8 +11,8
11 CC = gcc
11 CC = gcc
12 CXX = g++
12 CXX = g++
13 DEFINES = -DWFDISPLAY_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
13 DEFINES = -DWFDISPLAY_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ilppmonplot -IQCustomPlot -I.
16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ilppmonplot -IQCustomPlot -I.
17 LINK = g++
17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libwfdisplay.so.1
18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libwfdisplay.so.1
@@ -47,21 +47,25 SOURCES = wfdisplay.cpp \
47 wfplot.cpp \
47 wfplot.cpp \
48 wfpage.cpp \
48 wfpage.cpp \
49 lppmonplot/lppmonplot.cpp \
49 lppmonplot/lppmonplot.cpp \
50 QCustomPlot/qcustomplot.cpp moc_wfdisplay.cpp \
50 QCustomPlot/qcustomplot.cpp \
51 pagespectra.cpp moc_wfdisplay.cpp \
51 moc_wfplot.cpp \
52 moc_wfplot.cpp \
52 moc_wfpage.cpp \
53 moc_wfpage.cpp \
53 moc_lppmonplot.cpp \
54 moc_lppmonplot.cpp \
54 moc_qcustomplot.cpp
55 moc_qcustomplot.cpp \
56 moc_pagespectra.cpp
55 OBJECTS = wfdisplay.o \
57 OBJECTS = wfdisplay.o \
56 wfplot.o \
58 wfplot.o \
57 wfpage.o \
59 wfpage.o \
58 lppmonplot.o \
60 lppmonplot.o \
59 qcustomplot.o \
61 qcustomplot.o \
62 pagespectra.o \
60 moc_wfdisplay.o \
63 moc_wfdisplay.o \
61 moc_wfplot.o \
64 moc_wfplot.o \
62 moc_wfpage.o \
65 moc_wfpage.o \
63 moc_lppmonplot.o \
66 moc_lppmonplot.o \
64 moc_qcustomplot.o
67 moc_qcustomplot.o \
68 moc_pagespectra.o
65 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
69 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
66 /usr/lib64/qt4/mkspecs/common/linux.conf \
70 /usr/lib64/qt4/mkspecs/common/linux.conf \
67 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
71 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
@@ -161,7 +165,7 Makefile: wfdisplay.pro /usr/lib64/qt4/
161 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
165 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
162 /usr/lib64/libQtGui.prl \
166 /usr/lib64/libQtGui.prl \
163 /usr/lib64/libQtCore.prl
167 /usr/lib64/libQtCore.prl
164 $(QMAKE) -o Makefile wfdisplay.pro
168 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
165 /usr/lib64/qt4/mkspecs/common/unix.conf:
169 /usr/lib64/qt4/mkspecs/common/unix.conf:
166 /usr/lib64/qt4/mkspecs/common/linux.conf:
170 /usr/lib64/qt4/mkspecs/common/linux.conf:
167 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
171 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
@@ -189,11 +193,11 Makefile: wfdisplay.pro /usr/lib64/qt4/
189 /usr/lib64/libQtGui.prl:
193 /usr/lib64/libQtGui.prl:
190 /usr/lib64/libQtCore.prl:
194 /usr/lib64/libQtCore.prl:
191 qmake: FORCE
195 qmake: FORCE
192 @$(QMAKE) -o Makefile wfdisplay.pro
196 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
193
197
194 dist:
198 dist:
195 @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0
199 @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0
196 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h lppmonplot/lppmonplot.h QCustomPlot/qcustomplot.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp lppmonplot/lppmonplot.cpp QCustomPlot/qcustomplot.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0
200 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h lppmonplot/lppmonplot.h QCustomPlot/qcustomplot.h pagespectra.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp lppmonplot/lppmonplot.cpp QCustomPlot/qcustomplot.cpp pagespectra.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0
197
201
198
202
199 clean:compiler_clean
203 clean:compiler_clean
@@ -215,9 +219,9 mocclean: compiler_moc_header_clean comp
215
219
216 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
220 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
217
221
218 compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp
222 compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp
219 compiler_moc_header_clean:
223 compiler_moc_header_clean:
220 -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp
224 -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp
221 moc_wfdisplay.cpp: wfdisplay_global.h \
225 moc_wfdisplay.cpp: wfdisplay_global.h \
222 wfpage.h \
226 wfpage.h \
223 wfplot.h \
227 wfplot.h \
@@ -240,6 +244,12 moc_lppmonplot.cpp: lppmonplot/lppmonplo
240 moc_qcustomplot.cpp: QCustomPlot/qcustomplot.h
244 moc_qcustomplot.cpp: QCustomPlot/qcustomplot.h
241 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) QCustomPlot/qcustomplot.h -o moc_qcustomplot.cpp
245 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) QCustomPlot/qcustomplot.h -o moc_qcustomplot.cpp
242
246
247 moc_pagespectra.cpp: wfdisplay_global.h \
248 wfplot.h \
249 wfdisplay_params.h \
250 pagespectra.h
251 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) pagespectra.h -o moc_pagespectra.cpp
252
243 compiler_rcc_make_all:
253 compiler_rcc_make_all:
244 compiler_rcc_clean:
254 compiler_rcc_clean:
245 compiler_image_collection_make_all: qmake_image_collection.cpp
255 compiler_image_collection_make_all: qmake_image_collection.cpp
@@ -282,6 +292,12 lppmonplot.o: lppmonplot/lppmonplot.cpp
282 qcustomplot.o: QCustomPlot/qcustomplot.cpp QCustomPlot/qcustomplot.h
292 qcustomplot.o: QCustomPlot/qcustomplot.cpp QCustomPlot/qcustomplot.h
283 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcustomplot.o QCustomPlot/qcustomplot.cpp
293 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcustomplot.o QCustomPlot/qcustomplot.cpp
284
294
295 pagespectra.o: pagespectra.cpp pagespectra.h \
296 wfdisplay_global.h \
297 wfplot.h \
298 wfdisplay_params.h
299 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pagespectra.o pagespectra.cpp
300
285 moc_wfdisplay.o: moc_wfdisplay.cpp
301 moc_wfdisplay.o: moc_wfdisplay.cpp
286 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp
302 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp
287
303
@@ -297,15 +313,19 moc_lppmonplot.o: moc_lppmonplot.cpp
297 moc_qcustomplot.o: moc_qcustomplot.cpp
313 moc_qcustomplot.o: moc_qcustomplot.cpp
298 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qcustomplot.o moc_qcustomplot.cpp
314 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qcustomplot.o moc_qcustomplot.cpp
299
315
316 moc_pagespectra.o: moc_pagespectra.cpp
317 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pagespectra.o moc_pagespectra.cpp
318
300 ####### Install
319 ####### Install
301
320
302 install_header: first FORCE
321 install_header: first FORCE
303 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
322 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
304 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
323 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
305 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
324 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
306 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
325 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
307 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
326 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
308 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
327 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
328 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/pagespectra.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
309
329
310
330
311 uninstall_header: FORCE
331 uninstall_header: FORCE
@@ -313,7 +333,8 uninstall_header: FORCE
313 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h
333 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h
314 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h
334 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h
315 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h
335 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h
316 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h
336 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h
337 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/pagespectra.h
317 -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
338 -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
318
339
319
340
@@ -13,6 +13,11 WFDisplay::WFDisplay(QWidget *parent) :
13 page_f2 = new WFPage();
13 page_f2 = new WFPage();
14 page_f3 = new WFPage();
14 page_f3 = new WFPage();
15
15
16 page_f0->pageTitle = "NORM_SWF_F0";
17 page_f1->pageTitle = "NORM_SWF_F1";
18 page_f2->pageTitle = "NORM_SWF_F2";
19 page_f3->pageTitle = "NORM_CWF_F3";
20
16 spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)"));
21 spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)"));
17 spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz"));
22 spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz"));
18 spwTabWidget->addTab(page_f2, tr("f2 (256 Hz)"));
23 spwTabWidget->addTab(page_f2, tr("f2 (256 Hz)"));
@@ -21,7 +21,8 SOURCES += wfdisplay.cpp \
21 wfplot.cpp \
21 wfplot.cpp \
22 wfpage.cpp \
22 wfpage.cpp \
23 lppmonplot/lppmonplot.cpp \
23 lppmonplot/lppmonplot.cpp \
24 QCustomPlot/qcustomplot.cpp
24 QCustomPlot/qcustomplot.cpp \
25 pagespectra.cpp
25
26
26
27
27 HEADERS += wfdisplay.h\
28 HEADERS += wfdisplay.h\
@@ -30,7 +31,8 HEADERS += wfdisplay.h\
30 wfpage.h \
31 wfpage.h \
31 wfdisplay_params.h \
32 wfdisplay_params.h \
32 lppmonplot/lppmonplot.h \
33 lppmonplot/lppmonplot.h \
33 QCustomPlot/qcustomplot.h
34 QCustomPlot/qcustomplot.h \
35 pagespectra.h
34
36
35
37
36 header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay
38 header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay
@@ -39,7 +41,8 header.files = \
39 wfdisplay_global.h \
41 wfdisplay_global.h \
40 wfpage.h \
42 wfpage.h \
41 wfplot.h \
43 wfplot.h \
42 wfdisplay_params.h
44 wfdisplay_params.h \
45 pagespectra.h
43
46
44 target.path = $$[QT_INSTALL_LIBS]
47 target.path = $$[QT_INSTALL_LIBS]
45 isEmpty(target.path) {
48 isEmpty(target.path) {
@@ -1,6 +1,6
1 <?xml version="1.0" encoding="UTF-8"?>
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE QtCreatorProject>
2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-07-12T07:39:41. -->
3 <!-- Written by QtCreator 2.7.0, 2013-07-24T16:26:20. -->
4 <qtcreator>
4 <qtcreator>
5 <data>
5 <data>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -11,14 +11,15
11 <valuemap type="QVariantMap">
11 <valuemap type="QVariantMap">
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
12 <value type="bool" key="EditorConfiguration.AutoIndent">true</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
13 <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <value type="QString" key="language">Cpp</value>
16 <value type="QByteArray" key="language">Cpp</value>
16 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
17 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 </valuemap>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <value type="QString" key="language">QmlJS</value>
22 <value type="QByteArray" key="language">QmlJS</value>
22 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
23 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 </valuemap>
25 </valuemap>
@@ -27,6 +28,7
27 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
30 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
31 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
32 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
@@ -49,60 +51,69
49 <data>
51 <data>
50 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
51 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
52 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
53 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
56 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
55 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
56 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
58 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
59 <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/lib64/ccache/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
62 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
63 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
65 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
66 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
67 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
69 </valuemap>
71 </valuemap>
70 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
71 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
72 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
73 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
80 </valuelist>
74 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
75 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
76 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
77 </valuemap>
84 </valuemap>
78 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
79 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
80 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
81 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
82 </valuemap>
89 </valuemap>
83 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
84 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
85 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
95 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
99 </valuelist>
88 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
89 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
90 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
91 </valuemap>
103 </valuemap>
92 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
96 </valuemap>
108 </valuemap>
97 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
98 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
99 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
101 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value>
105 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
106 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
107 </valuemap>
118 </valuemap>
108 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
@@ -111,60 +122,29
111 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
115 </valuemap>
126 </valuemap>
116 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
117 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
118 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
119 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
120 </valuemap>
131 </valuemap>
121 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
122 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
123 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
134 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
124 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
125 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
126 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
135 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
127 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
128 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
129 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
130 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
131 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
132 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
133 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
134 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
135 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
136 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
137 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
141 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
138 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
139 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
140 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
141 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
142 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
143 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
144 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
145 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
146 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
149 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
147 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
150 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
151 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
152 <value type="int">0</value>
153 <value type="int">1</value>
154 <value type="int">2</value>
155 <value type="int">3</value>
156 <value type="int">4</value>
157 <value type="int">5</value>
158 <value type="int">6</value>
159 <value type="int">7</value>
160 <value type="int">8</value>
161 <value type="int">9</value>
162 <value type="int">10</value>
163 <value type="int">11</value>
164 <value type="int">12</value>
165 <value type="int">13</value>
166 <value type="int">14</value>
167 </valuelist>
168 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
148 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
169 <value type="int">0</value>
149 <value type="int">0</value>
170 <value type="int">1</value>
150 <value type="int">1</value>
@@ -190,9 +170,10
190 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
170 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
191 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
171 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
192 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
193 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
173 <value type="QByteArray" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
194 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
174 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
195 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
175 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
176 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
196 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
177 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
197 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
178 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
198 </valuemap>
179 </valuemap>
@@ -209,6 +190,6
209 </data>
190 </data>
210 <data>
191 <data>
211 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
192 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
212 <value type="int">10</value>
193 <value type="int">12</value>
213 </data>
194 </data>
214 </qtcreator>
195 </qtcreator>
@@ -2,8 +2,9
2 #define WFDISPLAY_PARAMS_H
2 #define WFDISPLAY_PARAMS_H
3
3
4 #define FONT_SIZE_WAVEFORM_TITLE 10
4 #define FONT_SIZE_WAVEFORM_TITLE 10
5 #define XMAX 2048
5 #define WFDISPLAY_XMAX 2048
6 #define YMAX 15000
6 #define WFDISPLAY_YMAX 15000
7 #define DEFAULT_SIZE 2048
7 #define DEFAULT_SIZE 2048
8 #define WFDISPLAY_DEFAULT_SPECTRA_SIZE 128
8
9
9 #endif // WFDISPLAY_PARAMS_H
10 #endif // WFDISPLAY_PARAMS_H
@@ -1,14 +1,23
1 #include "wfpage.h"
1 #include "wfpage.h"
2 #include <stdio.h>
2
3
3 WFPage::WFPage(QWidget *parent) :
4 WFPage::WFPage(QWidget *parent) :
4 QMainWindow(parent)
5 QMainWindow(parent)
5 {
6 {
6 wfPlot_v = new WFPlot();
7 unsigned int i = 0;
7 wfPlot_e1 = new WFPlot();
8
8 wfPlot_e2 = new WFPlot();
9 for (i = 0; i<6; i++)
9 wfPlot_b1 = new WFPlot();
10 {
10 wfPlot_b2 = new WFPlot();
11 localIndex[i] = 0;
11 wfPlot_b3 = new WFPlot();
12 }
13
14 pageTitle = "default";
15 wfPlot_v = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
16 wfPlot_e1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
17 wfPlot_e2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
18 wfPlot_b1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
19 wfPlot_b2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
20 wfPlot_b3 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
12 //
21 //
13 wfPlot_v->customPlot->setTitle("v");
22 wfPlot_v->customPlot->setTitle("v");
14 wfPlot_e1->customPlot->setTitle("e1");
23 wfPlot_e1->customPlot->setTitle("e1");
@@ -47,20 +56,39 WFPage::WFPage(QWidget *parent) :
47 logFileB1 = new QFile();
56 logFileB1 = new QFile();
48 logFileB2 = new QFile();
57 logFileB2 = new QFile();
49 logFileB3 = new QFile();
58 logFileB3 = new QFile();
59
50 logFileEn = false;
60 logFileEn = false;
61 storageEnabledV = false;
62 storageEnabledE1 = false;
63 storageEnabledE2 = false;
64 storageEnabledB1 = false;
65 storageEnabledB2 = false;
66 storageEnabledB3 = false;
51
67
52 createToolBar();
68 createToolBar();
53
69 readSettings();
54 connect(this, SIGNAL(setLogFileName(QString)), this->logFileName, SLOT(setText(QString)));
55 //
56 //this->setLayout(mainLayout);
57 }
70 }
58
71
59 void WFPage::displayOnPlot(short *data, unsigned char num)
72 void WFPage::displayOnPlot(short *data, unsigned char num)
60 {
73 {
74 QByteArray dataByteArray;
75 unsigned int i;
76
61 switch(num){
77 switch(num){
62 case 0:
78 case 0:
63 wfPlot_v->displayOnPlot(data, DEFAULT_SIZE);
79 wfPlot_v->displayOnPlot(data, DEFAULT_SIZE);
80 if ( (storageEnabledV == true) && (logFileV->isOpen()) )
81 {
82 for (i=0; i<DEFAULT_SIZE; i++)
83 {
84 dataByteArray.clear();
85 dataByteArray.append(QByteArray::number(localIndex[0]));
86 dataByteArray.append(' ');
87 dataByteArray.append(QByteArray::number(data[i]));
88 *(this->logFileStrmV) << dataByteArray << endl;
89 localIndex[0]++;
90 }
91 }
64 break;
92 break;
65 case 1:
93 case 1:
66 wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE);
94 wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE);
@@ -100,6 +128,7 void WFPage::createToolBar()
100
128
101 button_selectAll = new QPushButton(tr("select all"));
129 button_selectAll = new QPushButton(tr("select all"));
102 button_storeWfrm = new QPushButton(tr("REC"));
130 button_storeWfrm = new QPushButton(tr("REC"));
131 button_chooseDir = new QPushButton(tr("choose dir"));
103
132
104 myToolBar = new QToolBar("select");
133 myToolBar = new QToolBar("select");
105
134
@@ -112,7 +141,9 void WFPage::createToolBar()
112 myToolBar->addSeparator();
141 myToolBar->addSeparator();
113 myToolBar->addWidget(button_selectAll);
142 myToolBar->addWidget(button_selectAll);
114 myToolBar->addWidget(radio_tabify);
143 myToolBar->addWidget(radio_tabify);
144 myToolBar->addSeparator();
115 myToolBar->addWidget(button_storeWfrm);
145 myToolBar->addWidget(button_storeWfrm);
146 myToolBar->addWidget(button_chooseDir);
116
147
117 addToolBar(Qt::LeftToolBarArea, myToolBar);
148 addToolBar(Qt::LeftToolBarArea, myToolBar);
118
149
@@ -127,6 +158,7 void WFPage::createToolBar()
127 connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll()));
158 connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll()));
128 connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks()));
159 connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks()));
129 connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm()));
160 connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm()));
161 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
130 }
162 }
131
163
132 void WFPage::actionRadioV(bool state)
164 void WFPage::actionRadioV(bool state)
@@ -440,12 +472,22 void WFPage::storeWfrm()
440 {
472 {
441 if (logFileEn == false)
473 if (logFileEn == false)
442 {
474 {
443 chooseLogFile();
475 buildFileNames();
444 button_storeWfrm->setText(tr("STOP"));
476 button_storeWfrm->setText(tr("STOP"));
445 logFileEn = true;
477 logFileEn = true;
446 }
478 }
447 else
479 else
448 {
480 {
481 if(this->logFileV->isOpen()) this->logFileV->close();
482 if(this->logFileE1->isOpen()) this->logFileE1->close();
483 if(this->logFileE2->isOpen()) this->logFileE2->close();
484 // disable all storage
485 storageEnabledV = false;
486 storageEnabledE1 = false;
487 storageEnabledE2 = false;
488 storageEnabledB1 = false;
489 storageEnabledB2 = false;
490 storageEnabledB3 = false;
449 button_storeWfrm->setText(tr("REC"));
491 button_storeWfrm->setText(tr("REC"));
450 logFileEn = false;
492 logFileEn = false;
451 }
493 }
@@ -455,22 +497,33 void WFPage::buildFileNames()
455 {
497 {
456 QString date;
498 QString date;
457 QString time;
499 QString time;
500 QString prefix;
458
501
459 date = QDate::currentDate().toString();
502 date = QDate::currentDate().toString();
460 time = QTime::currentTime().toString();
503 time = QTime::currentTime().toString();
461
504
505 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" + pageTitle ;
462
506
463 if (radio_v->isChecked())
507 if (radio_v->isChecked())
464 {
508 {
465
509 if(this->logFileV->isOpen()) this->logFileV->close();
510 this->logFileV->setFileName( prefix + "_V.data");
511 if(this->logFileV->open(QIODevice::WriteOnly)) this->logFileStrmV = new QTextStream(this->logFileV);
512 storageEnabledV = true;
466 }
513 }
467 if (radio_e1->isChecked())
514 if (radio_e1->isChecked())
468 {
515 {
469
516 if(this->logFileE1->isOpen()) this->logFileE1->close();
517 this->logFileE1->setFileName( prefix + "_E1.data");
518 if(this->logFileE1->open(QIODevice::WriteOnly)) this->logFileStrmE1 = new QTextStream(this->logFileE1);
519 storageEnabledE1 = true;
470 }
520 }
471 if (radio_e2->isChecked())
521 if (radio_e2->isChecked())
472 {
522 {
473
523 if(this->logFileE2->isOpen()) this->logFileE2->close();
524 this->logFileE2->setFileName( prefix + "_E2.data");
525 if(this->logFileE2->open(QIODevice::WriteOnly)) this->logFileStrmE2 = new QTextStream(this->logFileE2);
526 storageEnabledE2 = true;
474 }
527 }
475 if (radio_b1->isChecked())
528 if (radio_b1->isChecked())
476 {
529 {
@@ -486,42 +539,6 void WFPage::buildFileNames()
486 }
539 }
487 }
540 }
488
541
489 void WFPage::chooseLogFile()
490 {
491 QString date;
492 QString time;
493
494 date = QDate::currentDate().toString();
495 time = QTime::currentTime().toString();
496
497 if(this->logFile->isOpen())
498 {
499 this->logFile->close();
500 }
501
502 /*this->logFile->setFileName(QDir::homePath()
503 + "/"
504 + QDate::currentDate().toString()
505 + "_"
506 + QTime::currentTime().toString()
507 + "_rmapPluginUI.log",
508 tr("Log Files (*.txt *.log)"));*/
509 this->logFile->setFileName(QFileDialog::getSaveFileName(this,tr("Open Log file"),
510 QDir::homePath()
511 + "/"
512 + QDate::currentDate().toString()
513 + "_"
514 + QTime::currentTime().toString()
515 + "_rmapPluginUI.log",
516 tr("Log Files (*.txt *.log)")));
517
518 if(this->logFile->open(QIODevice::WriteOnly))
519 {
520 this->logFileStrm = new QTextStream(this->logFile);
521 emit this->setLogFileName(this->logFile->fileName());
522 }
523 }
524
525 void WFPage::logFileEnDisable(bool state)
542 void WFPage::logFileEnDisable(bool state)
526 {
543 {
527 if(state==true)
544 if(state==true)
@@ -555,5 +572,26 void WFPage::closeEvent(QCloseEvent *eve
555 this->logFile->waitForBytesWritten(3000);
572 this->logFile->waitForBytesWritten(3000);
556 this->logFile->close();
573 this->logFile->close();
557 }
574 }
575 writeSettings();
558 event->accept();
576 event->accept();
559 }
577 }
578
579 void WFPage::readSettings()
580 {
581 QSettings settings("lpp", "lfrsgse");
582 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
583 }
584
585 void WFPage::writeSettings()
586 {
587 QSettings settings("lpp", "lfrsgse");
588 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
589 }
590
591 void WFPage::chooseDir()
592 {
593 defaultStorageDirectory = QFileDialog::getExistingDirectory(this,
594 "choose the directory",
595 QDir::homePath(),
596 QFileDialog::ShowDirsOnly);
597 }
@@ -12,6 +12,7
12 #include <QFile>
12 #include <QFile>
13 #include <QTextStream>
13 #include <QTextStream>
14 #include <QFileDialog>
14 #include <QFileDialog>
15 #include <QSettings>
15
16
16 #include <wfplot.h>
17 #include <wfplot.h>
17 #include <wfdisplay_params.h>
18 #include <wfdisplay_params.h>
@@ -27,13 +28,28 public:
27 void unTabify();
28 void unTabify();
28 void tabify();
29 void tabify();
29 // STORE
30 // STORE
30 void chooseLogFile();
31 void buildFileNames();
31 void buildFileNames();
32 bool islogfileenable();
32 bool islogfileenable();
33 void appendToLogFile(const QString & text);
33 void appendToLogFile(const QString & text);
34 void closeEvent(QCloseEvent *event);
34 void closeEvent(QCloseEvent *event);
35 void readSettings();
36 void writeSettings();
37
38 bool logFileEn;
39 bool storageEnabledV;
40 bool storageEnabledE1;
41 bool storageEnabledE2;
42 bool storageEnabledB1;
43 bool storageEnabledB2;
44 bool storageEnabledB3;
35
45
36 QLabel *logFileName;
46 QLabel *logFileName;
47 QLabel *logFileNameV;
48 QLabel *logFileNameE1;
49 QLabel *logFileNameE2;
50 QLabel *logFileNameB1;
51 QLabel *logFileNameB2;
52 QLabel *logFileNameB3;
37
53
38 QWidget *titleWidgetV;
54 QWidget *titleWidgetV;
39 QWidget *titleWidgetE1;
55 QWidget *titleWidgetE1;
@@ -61,6 +77,7 public:
61
77
62 QPushButton *button_selectAll;
78 QPushButton *button_selectAll;
63 QPushButton *button_storeWfrm;
79 QPushButton *button_storeWfrm;
80 QPushButton *button_chooseDir;
64
81
65 QToolBar *myToolBar;
82 QToolBar *myToolBar;
66
83
@@ -87,7 +104,10 public:
87 QTextStream *logFileStrmB2;
104 QTextStream *logFileStrmB2;
88 QTextStream *logFileStrmB3;
105 QTextStream *logFileStrmB3;
89
106
90 bool logFileEn;
107 QString pageTitle;
108 QString defaultStorageDirectory;
109
110 unsigned int localIndex[5];
91
111
92 //QGridLayout *mainLayout;
112 //QGridLayout *mainLayout;
93
113
@@ -107,6 +127,7 public slots:
107 void selectAll();
127 void selectAll();
108 void storeWfrm();
128 void storeWfrm();
109 void logFileEnDisable(bool state);
129 void logFileEnDisable(bool state);
130 void chooseDir();
110
131
111 };
132 };
112
133
@@ -2,7 +2,7
2 #include <QFontInfo>
2 #include <QFontInfo>
3 #include <wfdisplay_params.h>
3 #include <wfdisplay_params.h>
4
4
5 WFPlot::WFPlot(QWidget *parent) :
5 WFPlot::WFPlot(QWidget *parent, unsigned int xmax, unsigned int ymax) :
6 QWidget(parent)
6 QWidget(parent)
7 {
7 {
8 // Create Fonts
8 // Create Fonts
@@ -11,8 +11,8 WFPlot::WFPlot(QWidget *parent) :
11 customPlot = new LppMonPlot();
11 customPlot = new LppMonPlot();
12 mainLayout = new QVBoxLayout();
12 mainLayout = new QVBoxLayout();
13
13
14 customPlot->setXaxisRange(0, XMAX);
14 customPlot->setXaxisRange(0, xmax);
15 customPlot->setYaxisRange(-YMAX, YMAX);
15 customPlot->setYaxisRange(-ymax, ymax);
16 //customPlot->setTitleFont(font);
16 //customPlot->setTitleFont(font);
17
17
18 customPlot->addGraph();
18 customPlot->addGraph();
@@ -38,12 +38,26 void WFPlot::displayOnPlot(short *data,
38 }
38 }
39
39
40 customPlot->setGraphData(0, qListX, qListY);
40 customPlot->setGraphData(0, qListX, qListY);
41 customPlot->rescaleAxis();
41 //customPlot->rescaleAxis();
42 customPlot->setGraphName(0, "v");
42 }
43
44 void WFPlot::displayOnPlotFloat(float *data, unsigned int size)
45 {
46 QList<QVariant> qListX;
47 QList<QVariant> qListY;
48 qListX.clear();
49 qListY.clear();
50
51 for (unsigned int i=0; i<size; ++i)
52 {
53 qListX.append(i);
54 qListY.append( (double) data[i] );
55 }
56
57 customPlot->setGraphData(0, qListX, qListY);
58 //customPlot->rescaleAxis();
43 }
59 }
44
60
45
61
46
62
47
63
48
49
@@ -9,9 +9,10 class WFPlot : public QWidget
9 {
9 {
10 Q_OBJECT
10 Q_OBJECT
11 public:
11 public:
12 explicit WFPlot(QWidget *parent = 0);
12 explicit WFPlot(QWidget *parent = 0, unsigned int xmax = 0, unsigned int ymax = 0);
13
13
14 void displayOnPlot(short *data, unsigned int size);
14 void displayOnPlot(short *data, unsigned int size);
15 void displayOnPlotFloat(float *data, unsigned int size);
15
16
16 LppMonPlot *customPlot;
17 LppMonPlot *customPlot;
17 QVBoxLayout *mainLayout;
18 QVBoxLayout *mainLayout;
General Comments 0
You need to be logged in to leave comments. Login now