@@ -0,0 +1,66 | |||||
|
1 | #include "lfrspectrogram.h" | |||
|
2 | ||||
|
3 | class SpectrogramData: public QwtRasterData | |||
|
4 | { | |||
|
5 | public: | |||
|
6 | SpectrogramData(): | |||
|
7 | QwtRasterData(QwtDoubleRect(-1.5, -1.5, 3.0, 3.0)) | |||
|
8 | { | |||
|
9 | } | |||
|
10 | ||||
|
11 | virtual QwtRasterData *copy() const | |||
|
12 | { | |||
|
13 | return new SpectrogramData(); | |||
|
14 | } | |||
|
15 | ||||
|
16 | virtual QwtDoubleInterval range() const | |||
|
17 | { | |||
|
18 | return QwtDoubleInterval(0.0, 10.0); | |||
|
19 | } | |||
|
20 | ||||
|
21 | virtual double value(double x, double y) const | |||
|
22 | { | |||
|
23 | const double c = 0.842; | |||
|
24 | ||||
|
25 | const double v1 = x * x + (y-c) * (y+c); | |||
|
26 | const double v2 = x * (y+c) + x * (y+c); | |||
|
27 | ||||
|
28 | return 1.0 / (v1 * v1 + v2 * v2); | |||
|
29 | } | |||
|
30 | }; | |||
|
31 | ||||
|
32 | LFRSpectrogram::LFRSpectrogram(QWidget *parent) : | |||
|
33 | QWidget(parent) | |||
|
34 | { | |||
|
35 | mainLayout = new QVBoxLayout(); | |||
|
36 | plot_spectrogram = new QwtPlot(); | |||
|
37 | spectrogram = new QwtPlotSpectrogram(tr("spectrogram")); | |||
|
38 | ||||
|
39 | QwtLinearColorMap colorMap(Qt::darkCyan, Qt::red); | |||
|
40 | colorMap.addColorStop(0.1, Qt::cyan); | |||
|
41 | colorMap.addColorStop(0.6, Qt::green); | |||
|
42 | colorMap.addColorStop(0.95, Qt::yellow); | |||
|
43 | ||||
|
44 | spectrogram->setColorMap(colorMap); | |||
|
45 | spectrogram->setData( SpectrogramData() ); | |||
|
46 | spectrogram->attach(plot_spectrogram); | |||
|
47 | ||||
|
48 | // A color bar on the right axis | |||
|
49 | QwtScaleWidget *rightAxis = plot_spectrogram->axisWidget(QwtPlot::yRight); | |||
|
50 | rightAxis->setTitle("Intensity"); | |||
|
51 | rightAxis->setColorBarEnabled(true); | |||
|
52 | rightAxis->setColorMap(spectrogram->data().range(), | |||
|
53 | spectrogram->colorMap()); | |||
|
54 | ||||
|
55 | plot_spectrogram->setAxisScale(QwtPlot::yRight, | |||
|
56 | spectrogram->data().range().minValue(), | |||
|
57 | spectrogram->data().range().maxValue() ); | |||
|
58 | plot_spectrogram->enableAxis(QwtPlot::yRight); | |||
|
59 | ||||
|
60 | plot_spectrogram->plotLayout()->setAlignCanvasToScales(true); | |||
|
61 | plot_spectrogram->replot(); | |||
|
62 | ||||
|
63 | mainLayout->addWidget(plot_spectrogram); | |||
|
64 | ||||
|
65 | this->setLayout(mainLayout); | |||
|
66 | } |
@@ -0,0 +1,34 | |||||
|
1 | #ifndef LFRSPECTROGRAM_H | |||
|
2 | #define LFRSPECTROGRAM_H | |||
|
3 | ||||
|
4 | #include <QWidget> | |||
|
5 | #include <QVBoxLayout> | |||
|
6 | ||||
|
7 | #include <qwt5-qt4/qwt_plot.h> | |||
|
8 | #include <qwt5-qt4/qwt_plot_spectrogram.h> | |||
|
9 | #include <qwt5-qt4/qwt_color_map.h> | |||
|
10 | #include <qwt5-qt4/qwt_scale_widget.h> | |||
|
11 | #include <qwt5-qt4/qwt_plot_layout.h> | |||
|
12 | ||||
|
13 | class LFRSpectrogram : public QWidget | |||
|
14 | { | |||
|
15 | Q_OBJECT | |||
|
16 | public: | |||
|
17 | explicit LFRSpectrogram(QWidget *parent = 0); | |||
|
18 | ||||
|
19 | signals: | |||
|
20 | ||||
|
21 | public slots: | |||
|
22 | ||||
|
23 | private: | |||
|
24 | ||||
|
25 | QVBoxLayout* mainLayout; | |||
|
26 | QwtPlot* plot_spectrogram; | |||
|
27 | QwtPlotSpectrogram* spectrogram; | |||
|
28 | ||||
|
29 | QwtPlotLayout *plotLayout(); | |||
|
30 | const QwtPlotLayout *plotLayout() const; | |||
|
31 | ||||
|
32 | }; | |||
|
33 | ||||
|
34 | #endif // LFRSPECTROGRAM_H |
@@ -1,342 +1,342 | |||||
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-06- |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-27T15:10:56. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
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 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
15 | <value type="QString" key="language">Cpp</value> |
|
15 | <value type="QString" key="language">Cpp</value> | |
16 | <valuemap type="QVariantMap" key="value"> |
|
16 | <valuemap type="QVariantMap" key="value"> | |
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
18 | </valuemap> |
|
18 | </valuemap> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
21 | <value type="QString" key="language">QmlJS</value> |
|
21 | <value type="QString" key="language">QmlJS</value> | |
22 | <valuemap type="QVariantMap" key="value"> |
|
22 | <valuemap type="QVariantMap" key="value"> | |
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
24 | </valuemap> |
|
24 | </valuemap> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
43 | </valuemap> |
|
43 | </valuemap> | |
44 | </data> |
|
44 | </data> | |
45 | <data> |
|
45 | <data> | |
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
47 | <valuemap type="QVariantMap"/> |
|
47 | <valuemap type="QVariantMap"/> | |
48 | </data> |
|
48 | </data> | |
49 | <data> |
|
49 | <data> | |
50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |
51 | <valuemap type="QVariantMap"> |
|
51 | <valuemap type="QVariantMap"> | |
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
58 | <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> |
|
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"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
69 | </valuemap> | |
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
77 | </valuemap> |
|
77 | </valuemap> | |
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
82 | </valuemap> |
|
82 | </valuemap> | |
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
91 | </valuemap> |
|
91 | </valuemap> | |
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
96 | </valuemap> |
|
96 | </valuemap> | |
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
100 | <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> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
119 | </valuemap> |
|
119 | </valuemap> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
127 | </valuemap> |
|
127 | </valuemap> | |
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
132 | </valuemap> |
|
132 | </valuemap> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
141 | </valuemap> |
|
141 | </valuemap> | |
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
146 | </valuemap> |
|
146 | </valuemap> | |
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> | |
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
165 | </valuemap> |
|
165 | </valuemap> | |
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
170 | </valuemap> |
|
170 | </valuemap> | |
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
202 | <value type="int">0</value> |
|
202 | <value type="int">0</value> | |
203 | <value type="int">1</value> |
|
203 | <value type="int">1</value> | |
204 | <value type="int">2</value> |
|
204 | <value type="int">2</value> | |
205 | <value type="int">3</value> |
|
205 | <value type="int">3</value> | |
206 | <value type="int">4</value> |
|
206 | <value type="int">4</value> | |
207 | <value type="int">5</value> |
|
207 | <value type="int">5</value> | |
208 | <value type="int">6</value> |
|
208 | <value type="int">6</value> | |
209 | <value type="int">7</value> |
|
209 | <value type="int">7</value> | |
210 | <value type="int">8</value> |
|
210 | <value type="int">8</value> | |
211 | <value type="int">9</value> |
|
211 | <value type="int">9</value> | |
212 | <value type="int">10</value> |
|
212 | <value type="int">10</value> | |
213 | <value type="int">11</value> |
|
213 | <value type="int">11</value> | |
214 | <value type="int">12</value> |
|
214 | <value type="int">12</value> | |
215 | <value type="int">13</value> |
|
215 | <value type="int">13</value> | |
216 | <value type="int">14</value> |
|
216 | <value type="int">14</value> | |
217 | </valuelist> |
|
217 | </valuelist> | |
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
219 | <value type="int">0</value> |
|
219 | <value type="int">0</value> | |
220 | <value type="int">1</value> |
|
220 | <value type="int">1</value> | |
221 | <value type="int">2</value> |
|
221 | <value type="int">2</value> | |
222 | <value type="int">3</value> |
|
222 | <value type="int">3</value> | |
223 | <value type="int">4</value> |
|
223 | <value type="int">4</value> | |
224 | <value type="int">5</value> |
|
224 | <value type="int">5</value> | |
225 | <value type="int">6</value> |
|
225 | <value type="int">6</value> | |
226 | <value type="int">7</value> |
|
226 | <value type="int">7</value> | |
227 | <value type="int">8</value> |
|
227 | <value type="int">8</value> | |
228 | <value type="int">9</value> |
|
228 | <value type="int">9</value> | |
229 | <value type="int">10</value> |
|
229 | <value type="int">10</value> | |
230 | <value type="int">11</value> |
|
230 | <value type="int">11</value> | |
231 | <value type="int">12</value> |
|
231 | <value type="int">12</value> | |
232 | <value type="int">13</value> |
|
232 | <value type="int">13</value> | |
233 | <value type="int">14</value> |
|
233 | <value type="int">14</value> | |
234 | </valuelist> |
|
234 | </valuelist> | |
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> |
|
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> | |
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> |
|
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> | |
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> |
|
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> | |
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> |
|
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> | |
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
248 | </valuemap> |
|
248 | </valuemap> | |
249 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> |
|
249 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> | |
250 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
250 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
251 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
251 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
252 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
252 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
253 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
253 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
254 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
254 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
255 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
255 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
256 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
256 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
257 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
257 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
258 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
258 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
259 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
259 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
260 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
260 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
261 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
261 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
262 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
262 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
263 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
263 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
264 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
264 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
265 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
265 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
266 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
266 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
267 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
267 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
268 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
268 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
269 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
269 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
270 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
270 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
271 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
271 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
272 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
272 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
273 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
273 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
274 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
274 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
275 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
275 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
276 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
276 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
277 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
277 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
278 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
278 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
279 | <value type="int">0</value> |
|
279 | <value type="int">0</value> | |
280 | <value type="int">1</value> |
|
280 | <value type="int">1</value> | |
281 | <value type="int">2</value> |
|
281 | <value type="int">2</value> | |
282 | <value type="int">3</value> |
|
282 | <value type="int">3</value> | |
283 | <value type="int">4</value> |
|
283 | <value type="int">4</value> | |
284 | <value type="int">5</value> |
|
284 | <value type="int">5</value> | |
285 | <value type="int">6</value> |
|
285 | <value type="int">6</value> | |
286 | <value type="int">7</value> |
|
286 | <value type="int">7</value> | |
287 | <value type="int">8</value> |
|
287 | <value type="int">8</value> | |
288 | <value type="int">9</value> |
|
288 | <value type="int">9</value> | |
289 | <value type="int">10</value> |
|
289 | <value type="int">10</value> | |
290 | <value type="int">11</value> |
|
290 | <value type="int">11</value> | |
291 | <value type="int">12</value> |
|
291 | <value type="int">12</value> | |
292 | <value type="int">13</value> |
|
292 | <value type="int">13</value> | |
293 | <value type="int">14</value> |
|
293 | <value type="int">14</value> | |
294 | </valuelist> |
|
294 | </valuelist> | |
295 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
295 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
296 | <value type="int">0</value> |
|
296 | <value type="int">0</value> | |
297 | <value type="int">1</value> |
|
297 | <value type="int">1</value> | |
298 | <value type="int">2</value> |
|
298 | <value type="int">2</value> | |
299 | <value type="int">3</value> |
|
299 | <value type="int">3</value> | |
300 | <value type="int">4</value> |
|
300 | <value type="int">4</value> | |
301 | <value type="int">5</value> |
|
301 | <value type="int">5</value> | |
302 | <value type="int">6</value> |
|
302 | <value type="int">6</value> | |
303 | <value type="int">7</value> |
|
303 | <value type="int">7</value> | |
304 | <value type="int">8</value> |
|
304 | <value type="int">8</value> | |
305 | <value type="int">9</value> |
|
305 | <value type="int">9</value> | |
306 | <value type="int">10</value> |
|
306 | <value type="int">10</value> | |
307 | <value type="int">11</value> |
|
307 | <value type="int">11</value> | |
308 | <value type="int">12</value> |
|
308 | <value type="int">12</value> | |
309 | <value type="int">13</value> |
|
309 | <value type="int">13</value> | |
310 | <value type="int">14</value> |
|
310 | <value type="int">14</value> | |
311 | </valuelist> |
|
311 | </valuelist> | |
312 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> |
|
312 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> | |
313 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
313 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
314 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
314 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> | |
315 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
315 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> | |
316 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
316 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
317 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator/spwtimegenerator/spwtimegenerator.pro</value> |
|
317 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator/spwtimegenerator/spwtimegenerator.pro</value> | |
318 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
318 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
319 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
319 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |
320 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
320 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> | |
321 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
321 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
322 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
322 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
323 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
323 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
324 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
324 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
325 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> |
|
325 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> | |
326 | </valuemap> |
|
326 | </valuemap> | |
327 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> |
|
327 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> | |
328 | </valuemap> |
|
328 | </valuemap> | |
329 | </data> |
|
329 | </data> | |
330 | <data> |
|
330 | <data> | |
331 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
331 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
332 | <value type="int">1</value> |
|
332 | <value type="int">1</value> | |
333 | </data> |
|
333 | </data> | |
334 | <data> |
|
334 | <data> | |
335 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
335 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
336 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
336 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
337 | </data> |
|
337 | </data> | |
338 | <data> |
|
338 | <data> | |
339 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
339 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
340 | <value type="int">10</value> |
|
340 | <value type="int">10</value> | |
341 | </data> |
|
341 | </data> | |
342 | </qtcreator> |
|
342 | </qtcreator> |
@@ -1,205 +1,398 | |||||
1 | #include "hkdisplay.h" |
|
1 | #include "hkdisplay.h" | |
2 |
|
2 | |||
3 | HKDisplay::HKDisplay(QWidget *parent) : |
|
3 | HKDisplay::HKDisplay(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | mainLayout = new QGridLayout(); |
|
6 | mainLayout = new QGridLayout(); | |
7 |
|
7 | |||
|
8 | setupLFRStatusWord(); | |||
|
9 | setupLFRSWVersion(); | |||
|
10 | setupTCStatistics(); | |||
|
11 | setupAnomalyStatistics(); | |||
|
12 | setupSpaceWireIFStatistics(); | |||
|
13 | setupErrorCountersSpaceWire(); | |||
|
14 | ||||
|
15 | mainLayout->addWidget(groupbox_lfrStatusWord, 0,0,1,1); | |||
|
16 | mainLayout->addWidget(groupbox_lfrSWVersion, 0,1,1,1); | |||
|
17 | mainLayout->addWidget(groupbox_tcStatistics, 1,0,1,1); | |||
|
18 | mainLayout->addWidget(groupbox_anomalyStatistics, 1,1,1,1); | |||
|
19 | mainLayout->addWidget(groupbox_spacewireIFStatisctics, 1, 2, 1, 1); | |||
|
20 | mainLayout->addWidget(groupbox_errorCountersSpaceWire, 1, 3, 1, 1); | |||
|
21 | mainLayout->setColumnStretch(4, 1); | |||
|
22 | ||||
|
23 | this->setLayout(mainLayout); | |||
|
24 | } | |||
|
25 | ||||
|
26 | void HKDisplay::setupLFRStatusWord() | |||
|
27 | { | |||
8 | groupbox_lfrStatusWord = new QGroupBox("LFR Status Word"); |
|
28 | groupbox_lfrStatusWord = new QGroupBox("LFR Status Word"); | |
9 | box_lfrStatusWord = new QVBoxLayout(); |
|
29 | box_lfrStatusWord = new QVBoxLayout(); | |
10 | hk_lfr_mode = new QLabel("hk_lfr_mode: -"); |
|
30 | hk_lfr_mode = new QLabel("hk_lfr_mode: -"); | |
11 | hk_lfr_dpu_spw_enabled = new QLabel("hk_lfr_dpu_spw_enabled: -"); |
|
31 | hk_lfr_dpu_spw_enabled = new QLabel("hk_lfr_dpu_spw_enabled: -"); | |
12 | hk_lfr_dpu_link_state = new QLabel("hk_lfr_dpu_link_state: -"); |
|
32 | hk_lfr_dpu_link_state = new QLabel("hk_lfr_dpu_link_state: -"); | |
13 | sy_lfr_watchdog_enabled = new QLabel("sy_lfr_watchdog_enabled: -"); |
|
33 | sy_lfr_watchdog_enabled = new QLabel("sy_lfr_watchdog_enabled: -"); | |
14 | hk_lfr_calib_enabled = new QLabel("hk_lfr_calib_enabled: -"); |
|
34 | hk_lfr_calib_enabled = new QLabel("hk_lfr_calib_enabled: -"); | |
15 | hk_lfr_reset_cause = new QLabel("hk_lfr_reset_cause: -"); |
|
35 | hk_lfr_reset_cause = new QLabel("hk_lfr_reset_cause: -"); | |
16 | box_lfrStatusWord->addWidget(hk_lfr_mode); |
|
36 | box_lfrStatusWord->addWidget(hk_lfr_mode); | |
17 | box_lfrStatusWord->addWidget(hk_lfr_dpu_spw_enabled); |
|
37 | box_lfrStatusWord->addWidget(hk_lfr_dpu_spw_enabled); | |
18 | box_lfrStatusWord->addWidget(hk_lfr_dpu_link_state); |
|
38 | box_lfrStatusWord->addWidget(hk_lfr_dpu_link_state); | |
19 | box_lfrStatusWord->addWidget(sy_lfr_watchdog_enabled); |
|
39 | box_lfrStatusWord->addWidget(sy_lfr_watchdog_enabled); | |
20 | box_lfrStatusWord->addWidget(hk_lfr_calib_enabled); |
|
40 | box_lfrStatusWord->addWidget(hk_lfr_calib_enabled); | |
21 | box_lfrStatusWord->addWidget(hk_lfr_reset_cause); |
|
41 | box_lfrStatusWord->addWidget(hk_lfr_reset_cause); | |
22 | box_lfrStatusWord->insertStretch(6); |
|
42 | box_lfrStatusWord->insertStretch(6); | |
23 | groupbox_lfrStatusWord->setLayout(box_lfrStatusWord); |
|
43 | groupbox_lfrStatusWord->setLayout(box_lfrStatusWord); | |
|
44 | } | |||
24 |
|
45 | |||
|
46 | void HKDisplay::setupLFRSWVersion() | |||
|
47 | { | |||
25 | groupbox_lfrSWVersion = new QGroupBox("LFR Software Version"); |
|
48 | groupbox_lfrSWVersion = new QGroupBox("LFR Software Version"); | |
26 | box_lfrSWVersion = new QVBoxLayout(); |
|
49 | box_lfrSWVersion = new QVBoxLayout(); | |
27 | sy_lfr_sw_version_n1 = new QLabel("sy_lfr_sw_version_n1: -"); |
|
50 | sy_lfr_sw_version_n1 = new QLabel("sy_lfr_sw_version_n1: -"); | |
28 | sy_lfr_sw_version_n2 = new QLabel("sy_lfr_sw_version_n2: -"); |
|
51 | sy_lfr_sw_version_n2 = new QLabel("sy_lfr_sw_version_n2: -"); | |
29 | sy_lfr_sw_version_n3 = new QLabel("sy_lfr_sw_version_n3: -"); |
|
52 | sy_lfr_sw_version_n3 = new QLabel("sy_lfr_sw_version_n3: -"); | |
30 | sy_lfr_sw_version_n4 = new QLabel("sy_lfr_sw_version_n4: -"); |
|
53 | sy_lfr_sw_version_n4 = new QLabel("sy_lfr_sw_version_n4: -"); | |
31 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n1); |
|
54 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n1); | |
32 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n2); |
|
55 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n2); | |
33 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n3); |
|
56 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n3); | |
34 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n4); |
|
57 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n4); | |
35 | box_lfrSWVersion->insertStretch(4); |
|
58 | box_lfrSWVersion->insertStretch(4); | |
36 | groupbox_lfrSWVersion->setLayout(box_lfrSWVersion); |
|
59 | groupbox_lfrSWVersion->setLayout(box_lfrSWVersion); | |
|
60 | } | |||
37 |
|
61 | |||
|
62 | void HKDisplay::setupTCStatistics() | |||
|
63 | { | |||
38 | groupbox_tcStatistics = new QGroupBox("TC Statistics"); |
|
64 | groupbox_tcStatistics = new QGroupBox("TC Statistics"); | |
39 | box_tcStatistics = new QVBoxLayout(); |
|
65 | box_tcStatistics = new QVBoxLayout(); | |
40 | hk_lfr_update_info_tc_cnt = new QLabel("hk_lfr_update_info_tc_cnt: -"); |
|
66 | hk_lfr_update_info_tc_cnt = new QLabel("hk_lfr_update_info_tc_cnt: -"); | |
41 | hk_lfr_update_time_tc_cnt = new QLabel("hk_lfr_update_time_tc_cnt: -"); |
|
67 | hk_lfr_update_time_tc_cnt = new QLabel("hk_lfr_update_time_tc_cnt: -"); | |
42 | hk_dpu_exe_tc_lfr_cnt = new QLabel("hk_dpu_exe_tc_lfr_cnt: -"); |
|
68 | hk_dpu_exe_tc_lfr_cnt = new QLabel("hk_dpu_exe_tc_lfr_cnt: -"); | |
43 | hk_dpu_rej_tc_lfr_cnt = new QLabel("hk_dpu_rej_tc_lfr_cnt: -"); |
|
69 | hk_dpu_rej_tc_lfr_cnt = new QLabel("hk_dpu_rej_tc_lfr_cnt: -"); | |
44 | hk_lfr_last_exe_tc_id = new QLabel("hk_lfr_last_exe_tc_id: -"); |
|
70 | hk_lfr_last_exe_tc_id = new QLabel("hk_lfr_last_exe_tc_id: -"); | |
45 | hk_lfr_last_exe_tc_type = new QLabel("hk_lfr_last_exe_tc_type: -"); |
|
71 | hk_lfr_last_exe_tc_type = new QLabel("hk_lfr_last_exe_tc_type: -"); | |
46 | hk_lfr_last_exe_tc_subtype = new QLabel("hk_lfr_last_exe_tc_subtype: -"); |
|
72 | hk_lfr_last_exe_tc_subtype = new QLabel("hk_lfr_last_exe_tc_subtype: -"); | |
47 | hk_lfr_last_exe_tc_time = new QLabel("hk_lfr_last_exe_tc_time: -"); |
|
73 | hk_lfr_last_exe_tc_time = new QLabel("hk_lfr_last_exe_tc_time: -"); | |
48 | hk_lfr_last_rej_tc_id = new QLabel("hk_lfr_last_rej_tc_id: -"); |
|
74 | hk_lfr_last_rej_tc_id = new QLabel("hk_lfr_last_rej_tc_id: -"); | |
49 | hk_lfr_last_rej_tc_type = new QLabel("hk_lfr_last_rej_tc_type: -"); |
|
75 | hk_lfr_last_rej_tc_type = new QLabel("hk_lfr_last_rej_tc_type: -"); | |
50 | hk_lfr_last_rej_tc_subtype = new QLabel("hk_lfr_last_rej_tc_subtype: -"); |
|
76 | hk_lfr_last_rej_tc_subtype = new QLabel("hk_lfr_last_rej_tc_subtype: -"); | |
51 | hk_lfr_last_rej_tc_time = new QLabel("hk_lfr_last_rej_tc_time: -"); |
|
77 | hk_lfr_last_rej_tc_time = new QLabel("hk_lfr_last_rej_tc_time: -"); | |
52 | box_tcStatistics->addWidget(hk_lfr_update_info_tc_cnt); |
|
78 | box_tcStatistics->addWidget(hk_lfr_update_info_tc_cnt); | |
53 | box_tcStatistics->addWidget(hk_lfr_update_time_tc_cnt); |
|
79 | box_tcStatistics->addWidget(hk_lfr_update_time_tc_cnt); | |
54 | box_tcStatistics->addWidget(hk_dpu_exe_tc_lfr_cnt); |
|
80 | box_tcStatistics->addWidget(hk_dpu_exe_tc_lfr_cnt); | |
55 | box_tcStatistics->addWidget(hk_dpu_rej_tc_lfr_cnt); |
|
81 | box_tcStatistics->addWidget(hk_dpu_rej_tc_lfr_cnt); | |
56 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_id); |
|
82 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_id); | |
57 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_type); |
|
83 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_type); | |
58 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_subtype); |
|
84 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_subtype); | |
59 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_time); |
|
85 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_time); | |
60 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_id); |
|
86 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_id); | |
61 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_type); |
|
87 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_type); | |
62 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_subtype); |
|
88 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_subtype); | |
63 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_time); |
|
89 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_time); | |
64 | box_tcStatistics->insertStretch(12, 1); |
|
90 | box_tcStatistics->insertStretch(12, 1); | |
65 | groupbox_tcStatistics->setLayout(box_tcStatistics); |
|
91 | groupbox_tcStatistics->setLayout(box_tcStatistics); | |
|
92 | } | |||
66 |
|
93 | |||
|
94 | void HKDisplay::setupAnomalyStatistics() | |||
|
95 | { | |||
67 | groupbox_anomalyStatistics = new QGroupBox("Anomaly Statistics"); |
|
96 | groupbox_anomalyStatistics = new QGroupBox("Anomaly Statistics"); | |
68 | box_anomalyStatistics = new QVBoxLayout(); |
|
97 | box_anomalyStatistics = new QVBoxLayout(); | |
69 | hk_lfr_le_cnt = new QLabel("hk_lfr_le_cnt: -"); |
|
98 | hk_lfr_le_cnt = new QLabel("hk_lfr_le_cnt: -"); | |
70 | hk_lfr_me_cnt = new QLabel("hk_lfr_me_cnt: -"); |
|
99 | hk_lfr_me_cnt = new QLabel("hk_lfr_me_cnt: -"); | |
71 | hk_lfr_he_cnt = new QLabel("hk_lfr_he_cnt: -"); |
|
100 | hk_lfr_he_cnt = new QLabel("hk_lfr_he_cnt: -"); | |
72 | hk_lfr_last_er_rid = new QLabel("hk_lfr_last_er_rid: -"); |
|
101 | hk_lfr_last_er_rid = new QLabel("hk_lfr_last_er_rid: -"); | |
73 | hk_lfr_last_er_code = new QLabel("hk_lfr_last_er_code: -"); |
|
102 | hk_lfr_last_er_code = new QLabel("hk_lfr_last_er_code: -"); | |
74 | hk_lfr_last_er_time = new QLabel("hk_lfr_last_er_time: -"); |
|
103 | hk_lfr_last_er_time = new QLabel("hk_lfr_last_er_time: -"); | |
75 | box_anomalyStatistics->addWidget(hk_lfr_le_cnt); |
|
104 | box_anomalyStatistics->addWidget(hk_lfr_le_cnt); | |
76 | box_anomalyStatistics->addWidget(hk_lfr_me_cnt); |
|
105 | box_anomalyStatistics->addWidget(hk_lfr_me_cnt); | |
77 | box_anomalyStatistics->addWidget(hk_lfr_he_cnt); |
|
106 | box_anomalyStatistics->addWidget(hk_lfr_he_cnt); | |
78 | box_anomalyStatistics->addWidget(hk_lfr_last_er_rid); |
|
107 | box_anomalyStatistics->addWidget(hk_lfr_last_er_rid); | |
79 | box_anomalyStatistics->addWidget(hk_lfr_last_er_code); |
|
108 | box_anomalyStatistics->addWidget(hk_lfr_last_er_code); | |
80 | box_anomalyStatistics->addWidget(hk_lfr_last_er_time); |
|
109 | box_anomalyStatistics->addWidget(hk_lfr_last_er_time); | |
81 | box_anomalyStatistics->insertStretch(6, 1); |
|
110 | box_anomalyStatistics->insertStretch(6, 1); | |
82 | groupbox_anomalyStatistics->setLayout(box_anomalyStatistics); |
|
111 | groupbox_anomalyStatistics->setLayout(box_anomalyStatistics); | |
|
112 | } | |||
83 |
|
113 | |||
84 | mainLayout->addWidget(groupbox_lfrStatusWord, 0,0,1,1); |
|
114 | void HKDisplay::setupSpaceWireIFStatistics() | |
85 | mainLayout->addWidget(groupbox_lfrSWVersion, 0,1,1,1); |
|
115 | { | |
86 | mainLayout->addWidget(groupbox_tcStatistics, 1,0,1,1); |
|
116 | groupbox_spacewireIFStatisctics = new QGroupBox("SpaceWire IF Statistics"); | |
87 | mainLayout->addWidget(groupbox_anomalyStatistics, 1,1,1,1); |
|
117 | box_spacewireIFStatisctics = new QVBoxLayout(); | |
|
118 | ||||
|
119 | hk_lfr_dpu_spw_pkt_rcv_cnt = new QLabel("hk_lfr_dpu_spw_pkt_rcv_cnt: -"); | |||
|
120 | hk_lfr_dpu_spw_pkt_sent_cnt = new QLabel("hk_lfr_dpu_spw_pkt_sent_cnt: -"); | |||
|
121 | hk_lfr_dpu_spw_tick_out_cnt = new QLabel("hk_lfr_dpu_spw_tick_out_cnt: -"); | |||
|
122 | hk_lfr_dpu_spw_last_timc = new QLabel("hk_lfr_dpu_spw_last_timc: -"); | |||
|
123 | ||||
|
124 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_rcv_cnt); | |||
|
125 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_sent_cnt); | |||
|
126 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_tick_out_cnt); | |||
|
127 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_last_timc); | |||
|
128 | box_spacewireIFStatisctics->insertStretch(5); | |||
|
129 | ||||
|
130 | groupbox_spacewireIFStatisctics->setLayout(box_spacewireIFStatisctics->layout()); | |||
|
131 | } | |||
|
132 | ||||
|
133 | void HKDisplay::setupErrorCountersSpaceWire() | |||
|
134 | { | |||
|
135 | groupbox_errorCountersSpaceWire = new QGroupBox("SpaceWire Error Counters"); | |||
|
136 | box_errorCountersSpaceWire = new QVBoxLayout(); | |||
88 |
|
137 | |||
89 | this->setLayout(mainLayout); |
|
138 | hk_lfr_dpu_spw_parity = new QLabel("hk_lfr_dpu_spw_parity: -"); | |
|
139 | hk_lfr_dpu_spw_disconnect = new QLabel("hk_lfr_dpu_spw_disconnect: -"); | |||
|
140 | hk_lfr_dpu_spw_escape = new QLabel("hk_lfr_dpu_spw_escape: -"); | |||
|
141 | hk_lfr_dpu_spw_credit = new QLabel("hk_lfr_dpu_spw_credit: -"); | |||
|
142 | hk_lfr_dpu_spw_write_sync = new QLabel("hk_lfr_dpu_spw_write_sync: -"); | |||
|
143 | hk_lfr_dpu_spw_rx_ahb = new QLabel("hk_lfr_dpu_spw_rx_ahb: -"); | |||
|
144 | hk_lfr_dpu_spw_tx_ahb = new QLabel("hk_lfr_dpu_spw_tx_ahb: -"); | |||
|
145 | hk_lfr_dpu_spw_header_crc = new QLabel("hk_lfr_dpu_spw_header_crc: -"); | |||
|
146 | hk_lfr_dpu_spw_data_crc = new QLabel("hk_lfr_dpu_spw_data_crc: -"); | |||
|
147 | hk_lfr_dpu_spw_early_eop = new QLabel("hk_lfr_dpu_spw_early_eop: -"); | |||
|
148 | hk_lfr_dpu_spw_invalid_addr = new QLabel("hk_lfr_dpu_spw_invalid_addr: -"); | |||
|
149 | hk_lfr_dpu_spw_eep = new QLabel("hk_lfr_dpu_spw_eep: -"); | |||
|
150 | hk_lfr_dpu_spw_rx_too_big = new QLabel("hk_lfr_dpu_spw_rx_too_big: -"); | |||
|
151 | ||||
|
152 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_parity); | |||
|
153 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_disconnect); | |||
|
154 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_escape); | |||
|
155 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_credit); | |||
|
156 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_write_sync); | |||
|
157 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_ahb); | |||
|
158 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_tx_ahb); | |||
|
159 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_header_crc); | |||
|
160 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_data_crc); | |||
|
161 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_early_eop); | |||
|
162 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_invalid_addr); | |||
|
163 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_eep); | |||
|
164 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_too_big); | |||
|
165 | ||||
|
166 | groupbox_errorCountersSpaceWire->setLayout(box_errorCountersSpaceWire->layout()); | |||
90 | } |
|
167 | } | |
91 |
|
168 | |||
92 | void HKDisplay::displayPacket(TMPacketToRead *tmPacketToRead) |
|
169 | void HKDisplay::displayPacket(TMPacketToRead *tmPacketToRead) | |
93 | { |
|
170 | { | |
94 | Packet_TM_LFR_HK_t *housekeepingPacket; |
|
171 | Packet_TM_LFR_HK_t *housekeepingPacket; | |
95 | if (tmPacketToRead->size != HK_PACKET_SIZE) { |
|
172 | if (tmPacketToRead->size != HK_PACKET_SIZE) { | |
96 | emit displayMessage("in displayPacket *** HK packet size is " |
|
173 | emit displayMessage("in displayPacket *** HK packet size is " | |
97 | + QString::number(tmPacketToRead->size) |
|
174 | + QString::number(tmPacketToRead->size) | |
98 | + " instead of " |
|
175 | + " instead of " | |
99 | + QString::number(HK_PACKET_SIZE)); |
|
176 | + QString::number(HK_PACKET_SIZE)); | |
100 | } |
|
177 | } | |
101 | else { |
|
178 | else { | |
102 | housekeepingPacket = (Packet_TM_LFR_HK_t *) tmPacketToRead->Value; |
|
179 | housekeepingPacket = (Packet_TM_LFR_HK_t *) tmPacketToRead->Value; | |
103 |
|
180 | |||
104 | updateLFRMode(housekeepingPacket); |
|
181 | updateLFRMode(housekeepingPacket); | |
105 |
|
||||
106 | updateSWVersion(housekeepingPacket); |
|
182 | updateSWVersion(housekeepingPacket); | |
107 |
|
||||
108 | updateTCStatistics(housekeepingPacket); |
|
183 | updateTCStatistics(housekeepingPacket); | |
|
184 | updateAnomalyStatistics(housekeepingPacket); | |||
|
185 | updateSpaceWireIFStatistics(housekeepingPacket); | |||
|
186 | updateErrorCountersSpaceWire(housekeepingPacket); | |||
109 | } |
|
187 | } | |
110 | } |
|
188 | } | |
111 |
|
189 | |||
112 | void HKDisplay::updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
190 | void HKDisplay::updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket) | |
113 | { |
|
191 | { | |
114 | hk_lfr_mode->setText("hk_lfr_mode: " |
|
192 | hk_lfr_mode->setText("hk_lfr_mode: " | |
115 | +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x70) >> 4 ) ) |
|
193 | +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x70) >> 4 ) ) | |
116 | ); |
|
194 | ); | |
117 |
|
195 | |||
118 | } |
|
196 | } | |
119 |
|
197 | |||
120 | void HKDisplay::updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
198 | void HKDisplay::updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket) | |
121 | { |
|
199 | { | |
122 | sy_lfr_sw_version_n1->setText("sy_lfr_sw_version_n1: " |
|
200 | sy_lfr_sw_version_n1->setText("sy_lfr_sw_version_n1: " | |
123 | +QString::number( housekeepingPacket->lfr_sw_version[0] ) |
|
201 | +QString::number( housekeepingPacket->lfr_sw_version[0] ) | |
124 | ); |
|
202 | ); | |
125 | sy_lfr_sw_version_n2->setText("sy_lfr_sw_version_n2: " |
|
203 | sy_lfr_sw_version_n2->setText("sy_lfr_sw_version_n2: " | |
126 | +QString::number( housekeepingPacket->lfr_sw_version[1] ) |
|
204 | +QString::number( housekeepingPacket->lfr_sw_version[1] ) | |
127 | ); |
|
205 | ); | |
128 | sy_lfr_sw_version_n3->setText("sy_lfr_sw_version_n3: " |
|
206 | sy_lfr_sw_version_n3->setText("sy_lfr_sw_version_n3: " | |
129 | +QString::number( housekeepingPacket->lfr_sw_version[2] ) |
|
207 | +QString::number( housekeepingPacket->lfr_sw_version[2] ) | |
130 | ); |
|
208 | ); | |
131 | sy_lfr_sw_version_n4->setText("sy_lfr_sw_version_n4: " |
|
209 | sy_lfr_sw_version_n4->setText("sy_lfr_sw_version_n4: " | |
132 | +QString::number( housekeepingPacket->lfr_sw_version[3] ) |
|
210 | +QString::number( housekeepingPacket->lfr_sw_version[3] ) | |
133 | ); |
|
211 | ); | |
134 | } |
|
212 | } | |
135 |
|
213 | |||
136 | void HKDisplay::updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
214 | void HKDisplay::updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) | |
137 | { |
|
215 | { | |
138 | // TC Statistics |
|
216 | // TC Statistics | |
139 | hk_lfr_update_info_tc_cnt->setText("hk_lfr_update_info_tc_cnt: " |
|
217 | hk_lfr_update_info_tc_cnt->setText("hk_lfr_update_info_tc_cnt: " | |
140 | + QString::number( |
|
218 | + QString::number( | |
141 | housekeepingPacket->hk_lfr_update_info_tc_cnt[0] * 256 |
|
219 | housekeepingPacket->hk_lfr_update_info_tc_cnt[0] * 256 | |
142 | + housekeepingPacket->hk_lfr_update_info_tc_cnt[1]) |
|
220 | + housekeepingPacket->hk_lfr_update_info_tc_cnt[1]) | |
143 | ); |
|
221 | ); | |
144 | hk_lfr_update_time_tc_cnt->setText("hk_lfr_update_time_tc_cnt: " |
|
222 | hk_lfr_update_time_tc_cnt->setText("hk_lfr_update_time_tc_cnt: " | |
145 | + QString::number( |
|
223 | + QString::number( | |
146 | housekeepingPacket->hk_lfr_update_time_tc_cnt[0] * 256 |
|
224 | housekeepingPacket->hk_lfr_update_time_tc_cnt[0] * 256 | |
147 | + housekeepingPacket->hk_lfr_update_time_tc_cnt[1]) |
|
225 | + housekeepingPacket->hk_lfr_update_time_tc_cnt[1]) | |
148 | ); |
|
226 | ); | |
149 | hk_dpu_exe_tc_lfr_cnt->setText("hk_dpu_exe_tc_lfr_cnt: " |
|
227 | hk_dpu_exe_tc_lfr_cnt->setText("hk_dpu_exe_tc_lfr_cnt: " | |
150 | + QString::number( |
|
228 | + QString::number( | |
151 | housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[0] * 256 |
|
229 | housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[0] * 256 | |
152 | + housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[1]) |
|
230 | + housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[1]) | |
153 | ); |
|
231 | ); | |
154 | hk_dpu_rej_tc_lfr_cnt->setText("hk_dpu_rej_tc_lfr_cnt: " |
|
232 | hk_dpu_rej_tc_lfr_cnt->setText("hk_dpu_rej_tc_lfr_cnt: " | |
155 | + QString::number( |
|
233 | + QString::number( | |
156 | housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[0] * 256 |
|
234 | housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[0] * 256 | |
157 | + housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[1]) |
|
235 | + housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[1]) | |
158 | ); |
|
236 | ); | |
159 | hk_lfr_last_exe_tc_id->setText("hk_lfr_last_exe_tc_id: " |
|
237 | hk_lfr_last_exe_tc_id->setText("hk_lfr_last_exe_tc_id: " | |
160 | + QString::number( |
|
238 | + QString::number( | |
161 | housekeepingPacket->hk_lfr_last_exe_tc_id[0] * 256 |
|
239 | housekeepingPacket->hk_lfr_last_exe_tc_id[0] * 256 | |
162 | + housekeepingPacket->hk_lfr_last_exe_tc_id[1], 16) |
|
240 | + housekeepingPacket->hk_lfr_last_exe_tc_id[1], 16) | |
163 | ); |
|
241 | ); | |
164 | hk_lfr_last_exe_tc_type->setText("hk_lfr_last_exe_tc_type: " |
|
242 | hk_lfr_last_exe_tc_type->setText("hk_lfr_last_exe_tc_type: " | |
165 | + QString::number( |
|
243 | + QString::number( | |
166 | housekeepingPacket->hk_lfr_last_exe_tc_type[0] * 256 |
|
244 | housekeepingPacket->hk_lfr_last_exe_tc_type[0] * 256 | |
167 | + housekeepingPacket->hk_lfr_last_exe_tc_type[1]) |
|
245 | + housekeepingPacket->hk_lfr_last_exe_tc_type[1]) | |
168 | ); |
|
246 | ); | |
169 | hk_lfr_last_exe_tc_subtype->setText("hk_lfr_last_exe_tc_subtype: " |
|
247 | hk_lfr_last_exe_tc_subtype->setText("hk_lfr_last_exe_tc_subtype: " | |
170 | + QString::number( |
|
248 | + QString::number( | |
171 | housekeepingPacket->hk_lfr_last_exe_tc_subtype[0] * 256 |
|
249 | housekeepingPacket->hk_lfr_last_exe_tc_subtype[0] * 256 | |
172 | + housekeepingPacket->hk_lfr_last_exe_tc_subtype[1]) |
|
250 | + housekeepingPacket->hk_lfr_last_exe_tc_subtype[1]) | |
173 | ); |
|
251 | ); | |
174 | hk_lfr_last_exe_tc_time->setText("hk_lfr_last_exe_tc_time: " |
|
252 | hk_lfr_last_exe_tc_time->setText("hk_lfr_last_exe_tc_time: " | |
175 | + QString::number( |
|
253 | + QString::number( | |
176 | (housekeepingPacket->hk_lfr_last_exe_tc_time[0] << 24) |
|
254 | (housekeepingPacket->hk_lfr_last_exe_tc_time[0] << 24) | |
177 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[1] << 16) |
|
255 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[1] << 16) | |
178 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[2] << 8) |
|
256 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[2] << 8) | |
179 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[3]), 16 |
|
257 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[3]), 16 | |
180 | ) |
|
258 | ) | |
181 | ); |
|
259 | ); | |
182 | hk_lfr_last_rej_tc_id->setText("hk_lfr_last_rej_tc_id: " |
|
260 | hk_lfr_last_rej_tc_id->setText("hk_lfr_last_rej_tc_id: " | |
183 | + QString::number( |
|
261 | + QString::number( | |
184 | housekeepingPacket->hk_lfr_last_rej_tc_id[0] * 256 |
|
262 | housekeepingPacket->hk_lfr_last_rej_tc_id[0] * 256 | |
185 | + housekeepingPacket->hk_lfr_last_rej_tc_id[1], 16) |
|
263 | + housekeepingPacket->hk_lfr_last_rej_tc_id[1], 16) | |
186 | ); |
|
264 | ); | |
187 | hk_lfr_last_rej_tc_type->setText("hk_lfr_last_rej_tc_type: " |
|
265 | hk_lfr_last_rej_tc_type->setText("hk_lfr_last_rej_tc_type: " | |
188 | + QString::number( |
|
266 | + QString::number( | |
189 | housekeepingPacket->hk_lfr_last_rej_tc_type[0] * 256 |
|
267 | housekeepingPacket->hk_lfr_last_rej_tc_type[0] * 256 | |
190 | + housekeepingPacket->hk_lfr_last_rej_tc_type[1]) |
|
268 | + housekeepingPacket->hk_lfr_last_rej_tc_type[1]) | |
191 | ); |
|
269 | ); | |
192 | hk_lfr_last_rej_tc_subtype->setText("hk_lfr_last_rej_tc_subtype: " |
|
270 | hk_lfr_last_rej_tc_subtype->setText("hk_lfr_last_rej_tc_subtype: " | |
193 | + QString::number( |
|
271 | + QString::number( | |
194 | housekeepingPacket->hk_lfr_last_rej_tc_subtype[0] * 256 |
|
272 | housekeepingPacket->hk_lfr_last_rej_tc_subtype[0] * 256 | |
195 | + housekeepingPacket->hk_lfr_last_rej_tc_subtype[1]) |
|
273 | + housekeepingPacket->hk_lfr_last_rej_tc_subtype[1]) | |
196 | ); |
|
274 | ); | |
197 | hk_lfr_last_rej_tc_time->setText("hk_lfr_last_rej_tc_time: " |
|
275 | hk_lfr_last_rej_tc_time->setText("hk_lfr_last_rej_tc_time: " | |
198 | + QString::number( |
|
276 | + QString::number( | |
199 | (housekeepingPacket->hk_lfr_last_rej_tc_time[0] << 24) |
|
277 | (housekeepingPacket->hk_lfr_last_rej_tc_time[0] << 24) | |
200 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[1] << 16) |
|
278 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[1] << 16) | |
201 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[2] << 8) |
|
279 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[2] << 8) | |
202 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[3]), 16 |
|
280 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[3]), 16 | |
203 | ) |
|
281 | ) | |
204 | ); |
|
282 | ); | |
205 | } |
|
283 | } | |
|
284 | ||||
|
285 | void HKDisplay::updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) | |||
|
286 | { | |||
|
287 | // Anomaly Statistics | |||
|
288 | hk_lfr_le_cnt->setText("hk_lfr_le_cnt: " | |||
|
289 | + QString::number( | |||
|
290 | housekeepingPacket->hk_lfr_le_cnt[0] * 256 | |||
|
291 | + housekeepingPacket->hk_lfr_le_cnt[1]) | |||
|
292 | ); | |||
|
293 | hk_lfr_me_cnt->setText("hk_lfr_me_cnt: " | |||
|
294 | + QString::number( | |||
|
295 | housekeepingPacket->hk_lfr_me_cnt[0] * 256 | |||
|
296 | + housekeepingPacket->hk_lfr_me_cnt[1]) | |||
|
297 | ); | |||
|
298 | hk_lfr_he_cnt->setText("hk_lfr_he_cnt: " | |||
|
299 | + QString::number( | |||
|
300 | housekeepingPacket->hk_lfr_he_cnt[0] * 256 | |||
|
301 | + housekeepingPacket->hk_lfr_he_cnt[1]) | |||
|
302 | ); | |||
|
303 | hk_lfr_last_er_rid->setText("hk_lfr_last_er_rid: " | |||
|
304 | + QString::number( | |||
|
305 | housekeepingPacket->hk_lfr_last_er_rid[0] * 256 | |||
|
306 | + housekeepingPacket->hk_lfr_last_er_rid[1]) | |||
|
307 | ); | |||
|
308 | hk_lfr_last_er_code->setText("hk_lfr_last_er_code: " | |||
|
309 | + QString::number( | |||
|
310 | housekeepingPacket->hk_lfr_last_er_code) | |||
|
311 | ); | |||
|
312 | hk_lfr_last_er_time->setText("hk_lfr_last_er_time: " | |||
|
313 | + QString::number( | |||
|
314 | (housekeepingPacket->hk_lfr_last_er_time[0] << 24) | |||
|
315 | + (housekeepingPacket->hk_lfr_last_er_time[1] << 16) | |||
|
316 | + (housekeepingPacket->hk_lfr_last_er_time[2] << 8) | |||
|
317 | + (housekeepingPacket->hk_lfr_last_er_time[3]), 16 | |||
|
318 | ) | |||
|
319 | ); | |||
|
320 | } | |||
|
321 | ||||
|
322 | void HKDisplay::updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) | |||
|
323 | { | |||
|
324 | hk_lfr_dpu_spw_pkt_rcv_cnt->setText("hk_lfr_dpu_spw_pkt_rcv_cnt: " | |||
|
325 | + QString::number( | |||
|
326 | housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[0] * 256 | |||
|
327 | + housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[1]) | |||
|
328 | ); | |||
|
329 | hk_lfr_dpu_spw_pkt_sent_cnt->setText("hk_lfr_dpu_spw_pkt_sent_cnt: " | |||
|
330 | + QString::number( | |||
|
331 | housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[0] * 256 | |||
|
332 | + housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[1]) | |||
|
333 | ); | |||
|
334 | hk_lfr_dpu_spw_tick_out_cnt->setText("hk_lfr_dpu_spw_tick_out_cnt: " | |||
|
335 | + QString::number( | |||
|
336 | housekeepingPacket->hk_lfr_dpu_spw_tick_out_cnt) | |||
|
337 | ); | |||
|
338 | hk_lfr_dpu_spw_last_timc->setText("hk_lfr_dpu_spw_last_timc: " | |||
|
339 | + QString::number( | |||
|
340 | housekeepingPacket->hk_lfr_dpu_spw_last_timc) | |||
|
341 | ); | |||
|
342 | } | |||
|
343 | ||||
|
344 | void HKDisplay::updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket) | |||
|
345 | { | |||
|
346 | hk_lfr_dpu_spw_parity->setText("hk_lfr_dpu_spw_parity: " | |||
|
347 | + QString::number( | |||
|
348 | housekeepingPacket->hk_lfr_dpu_spw_parity) | |||
|
349 | ); | |||
|
350 | hk_lfr_dpu_spw_disconnect->setText("hk_lfr_dpu_spw_disconnect: " | |||
|
351 | + QString::number( | |||
|
352 | housekeepingPacket->hk_lfr_dpu_spw_disconnect) | |||
|
353 | ); | |||
|
354 | hk_lfr_dpu_spw_escape->setText("hk_lfr_dpu_spw_escape: " | |||
|
355 | + QString::number( | |||
|
356 | housekeepingPacket->hk_lfr_dpu_spw_escape) | |||
|
357 | ); | |||
|
358 | hk_lfr_dpu_spw_credit->setText("hk_lfr_dpu_spw_credit: " | |||
|
359 | + QString::number( | |||
|
360 | housekeepingPacket->hk_lfr_dpu_spw_credit) | |||
|
361 | ); | |||
|
362 | hk_lfr_dpu_spw_write_sync->setText("hk_lfr_dpu_spw_write_sync: " | |||
|
363 | + QString::number( | |||
|
364 | housekeepingPacket->hk_lfr_dpu_spw_write_sync) | |||
|
365 | ); | |||
|
366 | hk_lfr_dpu_spw_rx_ahb->setText("hk_lfr_dpu_spw_rx_ahb: " | |||
|
367 | + QString::number( | |||
|
368 | housekeepingPacket->hk_lfr_dpu_spw_rx_ahb) | |||
|
369 | ); | |||
|
370 | hk_lfr_dpu_spw_tx_ahb->setText("hk_lfr_dpu_spw_tx_ahb: " | |||
|
371 | + QString::number( | |||
|
372 | housekeepingPacket->hk_lfr_dpu_spw_tx_ahb) | |||
|
373 | ); | |||
|
374 | hk_lfr_dpu_spw_header_crc->setText("hk_lfr_dpu_spw_header_crc: " | |||
|
375 | + QString::number( | |||
|
376 | housekeepingPacket->hk_lfr_dpu_spw_header_crc) | |||
|
377 | ); | |||
|
378 | hk_lfr_dpu_spw_data_crc->setText("hk_lfr_dpu_spw_data_crc: " | |||
|
379 | + QString::number( | |||
|
380 | housekeepingPacket->hk_lfr_dpu_spw_data_crc) | |||
|
381 | ); | |||
|
382 | hk_lfr_dpu_spw_early_eop->setText("hk_lfr_dpu_spw_early_eop: " | |||
|
383 | + QString::number( | |||
|
384 | housekeepingPacket->hk_lfr_dpu_spw_early_eop) | |||
|
385 | ); | |||
|
386 | hk_lfr_dpu_spw_invalid_addr->setText("hk_lfr_dpu_spw_invalid_addr: " | |||
|
387 | + QString::number( | |||
|
388 | housekeepingPacket->hk_lfr_dpu_spw_invalid_addr) | |||
|
389 | ); | |||
|
390 | hk_lfr_dpu_spw_eep->setText("hk_lfr_dpu_spw_eep: " | |||
|
391 | + QString::number( | |||
|
392 | housekeepingPacket->hk_lfr_dpu_spw_eep) | |||
|
393 | ); | |||
|
394 | hk_lfr_dpu_spw_rx_too_big->setText("hk_lfr_dpu_spw_rx_too_big: " | |||
|
395 | + QString::number( | |||
|
396 | housekeepingPacket->hk_lfr_dpu_spw_rx_too_big) | |||
|
397 | ); | |||
|
398 | } |
@@ -1,157 +1,168 | |||||
1 | #ifndef HKDISPLAY_H |
|
1 | #ifndef HKDISPLAY_H | |
2 | #define HKDISPLAY_H |
|
2 | #define HKDISPLAY_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QLabel> |
|
5 | #include <QLabel> | |
6 | #include <QGroupBox> |
|
6 | #include <QGroupBox> | |
7 | #include <QVBoxLayout> |
|
7 | #include <QVBoxLayout> | |
8 | #include <QGridLayout> |
|
8 | #include <QGridLayout> | |
9 | #include "tmpackettoread.h" |
|
9 | #include "tmpackettoread.h" | |
10 | #include "ccsds_types.h" |
|
10 | #include "ccsds_types.h" | |
11 |
|
11 | |||
12 | #define HK_PACKET_SIZE 126 + 4 |
|
12 | #define HK_PACKET_SIZE 126 + 4 | |
13 |
|
13 | |||
14 | class HKDisplay : public QWidget |
|
14 | class HKDisplay : public QWidget | |
15 | { |
|
15 | { | |
16 | Q_OBJECT |
|
16 | Q_OBJECT | |
17 | public: |
|
17 | public: | |
18 | explicit HKDisplay(QWidget *parent = 0); |
|
18 | explicit HKDisplay(QWidget *parent = 0); | |
19 | void displayPacket(TMPacketToRead *tmPacketToRead); |
|
19 | void displayPacket(TMPacketToRead *tmPacketToRead); | |
|
20 | ||||
|
21 | void setupLFRStatusWord(); | |||
|
22 | void setupLFRSWVersion(); | |||
|
23 | void setupTCStatistics(); | |||
|
24 | void setupAnomalyStatistics(); | |||
|
25 | void setupSpaceWireIFStatistics(); | |||
|
26 | void setupErrorCountersSpaceWire(); | |||
|
27 | ||||
20 | void updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
28 | void updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket); | |
21 | void updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
29 | void updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket); | |
22 | void updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
30 | void updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); | |
|
31 | void updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); | |||
|
32 | void updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); | |||
|
33 | void updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket); | |||
23 |
|
34 | |||
24 | signals: |
|
35 | signals: | |
25 | void displayMessage(QString message); |
|
36 | void displayMessage(QString message); | |
26 |
|
37 | |||
27 | public slots: |
|
38 | public slots: | |
28 |
|
39 | |||
29 | private: |
|
40 | private: | |
30 | QGroupBox *groupbox_lfrStatusWord; |
|
41 | QGroupBox *groupbox_lfrStatusWord; | |
31 | QGroupBox *groupbox_lfrSWVersion; |
|
42 | QGroupBox *groupbox_lfrSWVersion; | |
32 | QGroupBox *groupbox_tcStatistics; |
|
43 | QGroupBox *groupbox_tcStatistics; | |
33 | QGroupBox *groupbox_anomalyStatistics; |
|
44 | QGroupBox *groupbox_anomalyStatistics; | |
34 | //*********************************** |
|
45 | //*********************************** | |
35 | //*********************************** |
|
46 | //*********************************** | |
36 | QGroupBox *groupbox_vhdlBlockStatus; |
|
47 | QGroupBox *groupbox_vhdlBlockStatus; | |
37 | QGroupBox *groupbox_spacewireIFStatisctics; |
|
48 | QGroupBox *groupbox_spacewireIFStatisctics; | |
38 | QGroupBox *groupbox_ahbErrorStatistics; |
|
49 | QGroupBox *groupbox_ahbErrorStatistics; | |
39 | QGroupBox *groupbox_temperatures; |
|
50 | QGroupBox *groupbox_temperatures; | |
40 | QGroupBox *groupbox_errorCountersSpaceWire; |
|
51 | QGroupBox *groupbox_errorCountersSpaceWire; | |
41 | QGroupBox *groupbox_errorCountersTime; |
|
52 | QGroupBox *groupbox_errorCountersTime; | |
42 |
|
53 | |||
43 | QGridLayout *mainLayout; |
|
54 | QGridLayout *mainLayout; | |
44 | QVBoxLayout *box_lfrStatusWord; |
|
55 | QVBoxLayout *box_lfrStatusWord; | |
45 | QVBoxLayout *box_lfrSWVersion; |
|
56 | QVBoxLayout *box_lfrSWVersion; | |
46 | QVBoxLayout *box_tcStatistics; |
|
57 | QVBoxLayout *box_tcStatistics; | |
47 | QVBoxLayout *box_anomalyStatistics; |
|
58 | QVBoxLayout *box_anomalyStatistics; | |
48 | //*********************************** |
|
59 | //*********************************** | |
49 | //*********************************** |
|
60 | //*********************************** | |
50 | QVBoxLayout *box_vhdlBlockStatus; |
|
61 | QVBoxLayout *box_vhdlBlockStatus; | |
51 | QVBoxLayout *box_spacewireIFStatisctics; |
|
62 | QVBoxLayout *box_spacewireIFStatisctics; | |
52 | QVBoxLayout *box_ahbErrorStatistics; |
|
63 | QVBoxLayout *box_ahbErrorStatistics; | |
53 | QVBoxLayout *box_temperatures; |
|
64 | QVBoxLayout *box_temperatures; | |
54 | QVBoxLayout *box_errorCountersSpaceWire; |
|
65 | QVBoxLayout *box_errorCountersSpaceWire; | |
55 | QVBoxLayout *box_errorCountersTime; |
|
66 | QVBoxLayout *box_errorCountersTime; | |
56 |
|
67 | |||
57 | QLabel *hk_lfr_mode; |
|
68 | QLabel *hk_lfr_mode; | |
58 | QLabel *hk_lfr_dpu_spw_enabled; |
|
69 | QLabel *hk_lfr_dpu_spw_enabled; | |
59 | QLabel *hk_lfr_dpu_link_state; |
|
70 | QLabel *hk_lfr_dpu_link_state; | |
60 | QLabel *sy_lfr_watchdog_enabled; |
|
71 | QLabel *sy_lfr_watchdog_enabled; | |
61 | QLabel *hk_lfr_calib_enabled; |
|
72 | QLabel *hk_lfr_calib_enabled; | |
62 | QLabel *hk_lfr_reset_cause; |
|
73 | QLabel *hk_lfr_reset_cause; | |
63 | // sy_lfr_sw_version_ |
|
74 | // sy_lfr_sw_version_ | |
64 | QLabel *sy_lfr_sw_version_n1; |
|
75 | QLabel *sy_lfr_sw_version_n1; | |
65 | QLabel *sy_lfr_sw_version_n2; |
|
76 | QLabel *sy_lfr_sw_version_n2; | |
66 | QLabel *sy_lfr_sw_version_n3; |
|
77 | QLabel *sy_lfr_sw_version_n3; | |
67 | QLabel *sy_lfr_sw_version_n4; |
|
78 | QLabel *sy_lfr_sw_version_n4; | |
68 | QLabel *hk_lfr_update_info_tc_cnt; |
|
79 | QLabel *hk_lfr_update_info_tc_cnt; | |
69 | QLabel *hk_lfr_update_time_tc_cnt; |
|
80 | QLabel *hk_lfr_update_time_tc_cnt; | |
70 | QLabel *hk_dpu_exe_tc_lfr_cnt; |
|
81 | QLabel *hk_dpu_exe_tc_lfr_cnt; | |
71 | QLabel *hk_dpu_rej_tc_lfr_cnt; |
|
82 | QLabel *hk_dpu_rej_tc_lfr_cnt; | |
72 | // hk_lfr_last_exe_tc_ |
|
83 | // hk_lfr_last_exe_tc_ | |
73 | QLabel *hk_lfr_last_exe_tc_id; |
|
84 | QLabel *hk_lfr_last_exe_tc_id; | |
74 | QLabel *hk_lfr_last_exe_tc_type; |
|
85 | QLabel *hk_lfr_last_exe_tc_type; | |
75 | QLabel *hk_lfr_last_exe_tc_subtype; |
|
86 | QLabel *hk_lfr_last_exe_tc_subtype; | |
76 | QLabel *hk_lfr_last_exe_tc_time; |
|
87 | QLabel *hk_lfr_last_exe_tc_time; | |
77 | // hk_lfr_last_rej_tc_ |
|
88 | // hk_lfr_last_rej_tc_ | |
78 | QLabel *hk_lfr_last_rej_tc_id; |
|
89 | QLabel *hk_lfr_last_rej_tc_id; | |
79 | QLabel *hk_lfr_last_rej_tc_type; |
|
90 | QLabel *hk_lfr_last_rej_tc_type; | |
80 | QLabel *hk_lfr_last_rej_tc_subtype; |
|
91 | QLabel *hk_lfr_last_rej_tc_subtype; | |
81 | QLabel *hk_lfr_last_rej_tc_time; |
|
92 | QLabel *hk_lfr_last_rej_tc_time; | |
82 |
|
93 | |||
83 | QLabel *hk_lfr_le_cnt; |
|
94 | QLabel *hk_lfr_le_cnt; | |
84 | QLabel *hk_lfr_me_cnt; |
|
95 | QLabel *hk_lfr_me_cnt; | |
85 | QLabel *hk_lfr_he_cnt; |
|
96 | QLabel *hk_lfr_he_cnt; | |
86 | // hk_lfr_last_er |
|
97 | // hk_lfr_last_er | |
87 | QLabel *hk_lfr_last_er_rid; |
|
98 | QLabel *hk_lfr_last_er_rid; | |
88 | QLabel *hk_lfr_last_er_code; |
|
99 | QLabel *hk_lfr_last_er_code; | |
89 | QLabel *hk_lfr_last_er_time; |
|
100 | QLabel *hk_lfr_last_er_time; | |
90 | //*********************************** |
|
101 | //*********************************** | |
91 | //*********************************** |
|
102 | //*********************************** | |
92 | //hk_lfr_vhdl_ |
|
103 | //hk_lfr_vhdl_ | |
93 | QLabel *hk_lfr_vhdl_aa; |
|
104 | QLabel *hk_lfr_vhdl_aa; | |
94 | QLabel *hk_lfr_vhdl_sm; |
|
105 | QLabel *hk_lfr_vhdl_sm; | |
95 | QLabel *hk_lfr_vhdl_fft; |
|
106 | QLabel *hk_lfr_vhdl_fft; | |
96 | QLabel *hk_lfr_vhdl_sr; |
|
107 | QLabel *hk_lfr_vhdl_sr; | |
97 | QLabel *hk_lfr_vhdl_cic; |
|
108 | QLabel *hk_lfr_vhdl_cic; | |
98 | QLabel *hk_lfr_vhdl_hk; |
|
109 | QLabel *hk_lfr_vhdl_hk; | |
99 | QLabel *hk_lfr_vhdl_iir; |
|
110 | QLabel *hk_lfr_vhdl_iir; | |
100 | QLabel *hk_lfr_vhdl_cal; |
|
111 | QLabel *hk_lfr_vhdl_cal; | |
101 | // hk_lfr_dpu_spw_ |
|
112 | // hk_lfr_dpu_spw_ | |
102 | QLabel *hk_lfr_dpu_spw_pkt_rcv_cnt; |
|
113 | QLabel *hk_lfr_dpu_spw_pkt_rcv_cnt; | |
103 | QLabel *hk_lfr_dpu_spw_pkt_sent_cnt; |
|
114 | QLabel *hk_lfr_dpu_spw_pkt_sent_cnt; | |
104 | QLabel *hk_lfr_dpu_spw_tick_out_cnt; |
|
115 | QLabel *hk_lfr_dpu_spw_tick_out_cnt; | |
105 | QLabel *hk_lfr_dpu_spw_last_timc; |
|
116 | QLabel *hk_lfr_dpu_spw_last_timc; | |
106 | // hk_lfr_last_fail_addr |
|
117 | // hk_lfr_last_fail_addr | |
107 | QLabel *hk_lfr_last_fail_addr; |
|
118 | QLabel *hk_lfr_last_fail_addr; | |
108 | // hk_lfr_temp_ |
|
119 | // hk_lfr_temp_ | |
109 | QLabel *hk_lfr_temp_scm; |
|
120 | QLabel *hk_lfr_temp_scm; | |
110 | QLabel *hk_lfr_temp_pcb; |
|
121 | QLabel *hk_lfr_temp_pcb; | |
111 | QLabel *hk_lfr_temp_fpga; |
|
122 | QLabel *hk_lfr_temp_fpga; | |
112 | // hk_lfr_dpu_spw_ |
|
123 | // hk_lfr_dpu_spw_ | |
113 | QLabel *hk_lfr_dpu_spw_parity; |
|
124 | QLabel *hk_lfr_dpu_spw_parity; | |
114 | QLabel *hk_lfr_dpu_spw_disconnect; |
|
125 | QLabel *hk_lfr_dpu_spw_disconnect; | |
115 | QLabel *hk_lfr_dpu_spw_escape; |
|
126 | QLabel *hk_lfr_dpu_spw_escape; | |
116 | QLabel *hk_lfr_dpu_spw_credit; |
|
127 | QLabel *hk_lfr_dpu_spw_credit; | |
117 | QLabel *hk_lfr_dpu_spw_write_sync; |
|
128 | QLabel *hk_lfr_dpu_spw_write_sync; | |
118 | QLabel *hk_lfr_dpu_spw_rx_ahb; |
|
129 | QLabel *hk_lfr_dpu_spw_rx_ahb; | |
119 | QLabel *hk_lfr_dpu_spw_tx_ahb; |
|
130 | QLabel *hk_lfr_dpu_spw_tx_ahb; | |
120 | QLabel *hk_lfr_dpu_spw_header_crc; |
|
131 | QLabel *hk_lfr_dpu_spw_header_crc; | |
121 | QLabel *hk_lfr_dpu_spw_data_crc; |
|
132 | QLabel *hk_lfr_dpu_spw_data_crc; | |
122 | QLabel *hk_lfr_dpu_spw_early_eop; |
|
133 | QLabel *hk_lfr_dpu_spw_early_eop; | |
123 | QLabel *hk_lfr_dpu_spw_invalid_addr; |
|
134 | QLabel *hk_lfr_dpu_spw_invalid_addr; | |
124 | QLabel *hk_lfr_dpu_spw_eep; |
|
135 | QLabel *hk_lfr_dpu_spw_eep; | |
125 | QLabel *hk_lfr_dpu_spw_rx_too_big; |
|
136 | QLabel *hk_lfr_dpu_spw_rx_too_big; | |
126 | // hk_lfr_timecode_ |
|
137 | // hk_lfr_timecode_ | |
127 | QLabel *hk_lfr_timecode_erroneous; |
|
138 | QLabel *hk_lfr_timecode_erroneous; | |
128 | QLabel *hk_lfr_timecode_missing; |
|
139 | QLabel *hk_lfr_timecode_missing; | |
129 | QLabel *hk_lfr_timecode_invalid; |
|
140 | QLabel *hk_lfr_timecode_invalid; | |
130 | // hk_lfr_time_ |
|
141 | // hk_lfr_time_ | |
131 | QLabel *hk_lfr_time_timecode_it; |
|
142 | QLabel *hk_lfr_time_timecode_it; | |
132 | QLabel *hk_lfr_time_not_synchro; |
|
143 | QLabel *hk_lfr_time_not_synchro; | |
133 | QLabel *hk_lfr_time_timecode_ctr; |
|
144 | QLabel *hk_lfr_time_timecode_ctr; | |
134 | // hk_lfr_buffer_dpu_ |
|
145 | // hk_lfr_buffer_dpu_ | |
135 | QLabel *hk_lfr_buffer_dpu_tc_fifo; |
|
146 | QLabel *hk_lfr_buffer_dpu_tc_fifo; | |
136 | QLabel *hk_lfr_buffer_dpu_tm_fifo; |
|
147 | QLabel *hk_lfr_buffer_dpu_tm_fifo; | |
137 | // hk_lfr_ahb_ |
|
148 | // hk_lfr_ahb_ | |
138 | QLabel *hk_lfr_ahb_correctable; |
|
149 | QLabel *hk_lfr_ahb_correctable; | |
139 | QLabel *hk_lfr_ahb_uncorrectable; |
|
150 | QLabel *hk_lfr_ahb_uncorrectable; | |
140 | QLabel *hk_lfr_ahb_fails_trans; |
|
151 | QLabel *hk_lfr_ahb_fails_trans; | |
141 | // hk_lfr_adc_ |
|
152 | // hk_lfr_adc_ | |
142 | QLabel *hk_lfr_adc_failure; |
|
153 | QLabel *hk_lfr_adc_failure; | |
143 | QLabel *hk_lfr_adc_timeout; |
|
154 | QLabel *hk_lfr_adc_timeout; | |
144 | QLabel *hk_lfr_toomany_err; |
|
155 | QLabel *hk_lfr_toomany_err; | |
145 | // hk_lfr_cpu_ |
|
156 | // hk_lfr_cpu_ | |
146 | QLabel *hk_lfr_cpu_write_err; |
|
157 | QLabel *hk_lfr_cpu_write_err; | |
147 | QLabel *hk_lfr_cpu_ins_access_err; |
|
158 | QLabel *hk_lfr_cpu_ins_access_err; | |
148 | QLabel *hk_lfr_cpu_illegal_ins; |
|
159 | QLabel *hk_lfr_cpu_illegal_ins; | |
149 | QLabel *hk_lfr_cpu_privilegied_ins; |
|
160 | QLabel *hk_lfr_cpu_privilegied_ins; | |
150 | QLabel *hk_lfr_cpu_register_hw; |
|
161 | QLabel *hk_lfr_cpu_register_hw; | |
151 | QLabel *hk_lfr_cpu_not_aligned; |
|
162 | QLabel *hk_lfr_cpu_not_aligned; | |
152 | QLabel *hk_lfr_cpu_data_exception; |
|
163 | QLabel *hk_lfr_cpu_data_exception; | |
153 | QLabel *hk_lfr_cpu_div_exception; |
|
164 | QLabel *hk_lfr_cpu_div_exception; | |
154 | QLabel *hk_lfr_cpu_arith_overflow; |
|
165 | QLabel *hk_lfr_cpu_arith_overflow; | |
155 | }; |
|
166 | }; | |
156 |
|
167 | |||
157 | #endif // HKDISPLAY_H |
|
168 | #endif // HKDISPLAY_H |
@@ -1,378 +1,378 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 |
# Makefile for building: gse |
|
2 | # Makefile for building: lfrsgse | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jun 28 13:46:55 2013 | |
4 | # Project: gselesia.pro |
|
4 | # Project: gselesia.pro | |
5 | # Template: app |
|
5 | # Template: app | |
6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -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 | |
10 |
|
10 | |||
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 -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 -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 | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = |
|
29 | STRIP = | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = ./ |
|
42 | OBJECTS_DIR = ./ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = main.cpp \ |
|
46 | SOURCES = main.cpp \ | |
47 | mainwindow.cpp \ |
|
47 | mainwindow.cpp \ | |
48 | mainwindowui.cpp \ |
|
48 | mainwindowui.cpp \ | |
49 | ../common_PLE/qipdialogbox.cpp \ |
|
49 | ../common_PLE/qipdialogbox.cpp \ | |
50 | lfrxmlhandler.cpp \ |
|
50 | lfrxmlhandler.cpp \ | |
51 | lfrxmlwriter.cpp \ |
|
51 | lfrxmlwriter.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 | ../common_PLE/hkdisplay.cpp \ |
|
55 | ../common_PLE/hkdisplay.cpp \ | |
56 | lfrxmlparser.cpp \ |
|
56 | lfrxmlparser.cpp \ | |
57 | lfrspectrogram.cpp moc_mainwindow.cpp \ |
|
57 | lfrspectrogram.cpp moc_mainwindow.cpp \ | |
58 | moc_mainwindowui.cpp \ |
|
58 | moc_mainwindowui.cpp \ | |
59 | moc_qipdialogbox.cpp \ |
|
59 | moc_qipdialogbox.cpp \ | |
60 | moc_lfrxmlhandler.cpp \ |
|
60 | moc_lfrxmlhandler.cpp \ | |
61 | moc_lfrxmlwriter.cpp \ |
|
61 | moc_lfrxmlwriter.cpp \ | |
62 | moc_tmstatistics.cpp \ |
|
62 | moc_tmstatistics.cpp \ | |
63 | moc_tmpackettoread.cpp \ |
|
63 | moc_tmpackettoread.cpp \ | |
64 | moc_wfpacket.cpp \ |
|
64 | moc_wfpacket.cpp \ | |
65 | moc_hkdisplay.cpp \ |
|
65 | moc_hkdisplay.cpp \ | |
66 | moc_lfrxmlparser.cpp \ |
|
66 | moc_lfrxmlparser.cpp \ | |
67 | moc_lfrspectrogram.cpp |
|
67 | moc_lfrspectrogram.cpp | |
68 | OBJECTS = main.o \ |
|
68 | OBJECTS = main.o \ | |
69 | mainwindow.o \ |
|
69 | mainwindow.o \ | |
70 | mainwindowui.o \ |
|
70 | mainwindowui.o \ | |
71 | qipdialogbox.o \ |
|
71 | qipdialogbox.o \ | |
72 | lfrxmlhandler.o \ |
|
72 | lfrxmlhandler.o \ | |
73 | lfrxmlwriter.o \ |
|
73 | lfrxmlwriter.o \ | |
74 | tmstatistics.o \ |
|
74 | tmstatistics.o \ | |
75 | tmpackettoread.o \ |
|
75 | tmpackettoread.o \ | |
76 | wfpacket.o \ |
|
76 | wfpacket.o \ | |
77 | hkdisplay.o \ |
|
77 | hkdisplay.o \ | |
78 | lfrxmlparser.o \ |
|
78 | lfrxmlparser.o \ | |
79 | lfrspectrogram.o \ |
|
79 | lfrspectrogram.o \ | |
80 | moc_mainwindow.o \ |
|
80 | moc_mainwindow.o \ | |
81 | moc_mainwindowui.o \ |
|
81 | moc_mainwindowui.o \ | |
82 | moc_qipdialogbox.o \ |
|
82 | moc_qipdialogbox.o \ | |
83 | moc_lfrxmlhandler.o \ |
|
83 | moc_lfrxmlhandler.o \ | |
84 | moc_lfrxmlwriter.o \ |
|
84 | moc_lfrxmlwriter.o \ | |
85 | moc_tmstatistics.o \ |
|
85 | moc_tmstatistics.o \ | |
86 | moc_tmpackettoread.o \ |
|
86 | moc_tmpackettoread.o \ | |
87 | moc_wfpacket.o \ |
|
87 | moc_wfpacket.o \ | |
88 | moc_hkdisplay.o \ |
|
88 | moc_hkdisplay.o \ | |
89 | moc_lfrxmlparser.o \ |
|
89 | moc_lfrxmlparser.o \ | |
90 | moc_lfrspectrogram.o |
|
90 | moc_lfrspectrogram.o | |
91 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
91 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
92 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
92 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
93 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
93 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
94 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
94 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
95 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
95 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
96 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
96 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
97 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
97 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
98 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
98 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
99 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
99 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
103 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
103 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
105 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
105 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
106 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
106 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
107 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
107 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
108 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
108 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
109 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
109 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
110 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
110 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
111 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
111 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
112 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
112 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
113 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
113 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
114 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
114 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
115 | gselesia.pro |
|
115 | gselesia.pro | |
116 |
QMAKE_TARGET = gse |
|
116 | QMAKE_TARGET = lfrsgse | |
117 | DESTDIR = |
|
117 | DESTDIR = | |
118 |
TARGET = gse |
|
118 | TARGET = lfrsgse | |
119 |
|
119 | |||
120 | first: all |
|
120 | first: all | |
121 | ####### Implicit rules |
|
121 | ####### Implicit rules | |
122 |
|
122 | |||
123 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
123 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
124 |
|
124 | |||
125 | .cpp.o: |
|
125 | .cpp.o: | |
126 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
126 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
127 |
|
127 | |||
128 | .cc.o: |
|
128 | .cc.o: | |
129 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
129 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
130 |
|
130 | |||
131 | .cxx.o: |
|
131 | .cxx.o: | |
132 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
132 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
133 |
|
133 | |||
134 | .C.o: |
|
134 | .C.o: | |
135 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
135 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
136 |
|
136 | |||
137 | .c.o: |
|
137 | .c.o: | |
138 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
138 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
139 |
|
139 | |||
140 | ####### Build rules |
|
140 | ####### Build rules | |
141 |
|
141 | |||
142 | all: Makefile $(TARGET) |
|
142 | all: Makefile $(TARGET) | |
143 |
|
143 | |||
144 | $(TARGET): $(OBJECTS) |
|
144 | $(TARGET): $(OBJECTS) | |
145 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
145 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | |
146 |
|
146 | |||
147 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
147 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
148 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
148 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
149 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
149 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
150 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
150 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
151 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
151 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
152 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
152 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
153 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
153 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
154 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
154 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
155 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
155 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
159 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
159 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
160 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
160 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
161 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
161 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
162 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
162 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
163 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
163 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
164 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
164 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
165 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
165 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
166 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
166 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
167 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
167 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
168 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
168 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
169 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
169 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
170 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
170 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
171 | /usr/lib64/libQtXml.prl \ |
|
171 | /usr/lib64/libQtXml.prl \ | |
172 | /usr/lib64/libQtCore.prl \ |
|
172 | /usr/lib64/libQtCore.prl \ | |
173 | /usr/lib64/libQtGui.prl \ |
|
173 | /usr/lib64/libQtGui.prl \ | |
174 | /usr/lib64/libQtNetwork.prl |
|
174 | /usr/lib64/libQtNetwork.prl | |
175 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro |
|
175 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro | |
176 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
176 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
177 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
177 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
178 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
178 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
179 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
179 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
180 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
180 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
181 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
181 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
182 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
182 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
183 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
183 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
184 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
184 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
185 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
185 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
186 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
186 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
187 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
187 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
188 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
188 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
189 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
189 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
190 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
190 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
191 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
191 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
192 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
192 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
193 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
193 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
194 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
194 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
195 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
195 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
196 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
196 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
197 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
197 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
198 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
198 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
199 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
199 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
200 | /usr/lib64/libQtXml.prl: |
|
200 | /usr/lib64/libQtXml.prl: | |
201 | /usr/lib64/libQtCore.prl: |
|
201 | /usr/lib64/libQtCore.prl: | |
202 | /usr/lib64/libQtGui.prl: |
|
202 | /usr/lib64/libQtGui.prl: | |
203 | /usr/lib64/libQtNetwork.prl: |
|
203 | /usr/lib64/libQtNetwork.prl: | |
204 | qmake: FORCE |
|
204 | qmake: FORCE | |
205 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro |
|
205 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro | |
206 |
|
206 | |||
207 | dist: |
|
207 | dist: | |
208 |
@$(CHK_DIR_EXISTS) .tmp/gse |
|
208 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0 | |
209 |
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/gse |
|
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 | |
210 |
|
210 | |||
211 |
|
211 | |||
212 | clean:compiler_clean |
|
212 | clean:compiler_clean | |
213 | -$(DEL_FILE) $(OBJECTS) |
|
213 | -$(DEL_FILE) $(OBJECTS) | |
214 | -$(DEL_FILE) *~ core *.core |
|
214 | -$(DEL_FILE) *~ core *.core | |
215 |
|
215 | |||
216 |
|
216 | |||
217 | ####### Sub-libraries |
|
217 | ####### Sub-libraries | |
218 |
|
218 | |||
219 | distclean: clean |
|
219 | distclean: clean | |
220 | -$(DEL_FILE) $(TARGET) |
|
220 | -$(DEL_FILE) $(TARGET) | |
221 | -$(DEL_FILE) Makefile |
|
221 | -$(DEL_FILE) Makefile | |
222 |
|
222 | |||
223 |
|
223 | |||
224 | check: first |
|
224 | check: first | |
225 |
|
225 | |||
226 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
226 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
227 |
|
227 | |||
228 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
228 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
229 |
|
229 | |||
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 |
|
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 | |
231 | compiler_moc_header_clean: |
|
231 | 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 |
|
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 | |
233 | moc_mainwindow.cpp: lfrxmlhandler.h \ |
|
233 | moc_mainwindow.cpp: lfrxmlhandler.h \ | |
234 | lfrxmlwriter.h \ |
|
234 | lfrxmlwriter.h \ | |
235 | mainwindowui.h \ |
|
235 | mainwindowui.h \ | |
236 | lfrspectrogram.h \ |
|
236 | lfrspectrogram.h \ | |
237 | lfrxmlparser.h \ |
|
237 | lfrxmlparser.h \ | |
238 | mainwindow.h |
|
238 | mainwindow.h | |
239 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp |
|
239 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp | |
240 |
|
240 | |||
241 | moc_mainwindowui.cpp: lfrspectrogram.h \ |
|
241 | moc_mainwindowui.cpp: lfrspectrogram.h \ | |
242 | mainwindowui.h |
|
242 | mainwindowui.h | |
243 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp |
|
243 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp | |
244 |
|
244 | |||
245 | moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
245 | moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h | |
246 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp |
|
246 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp | |
247 |
|
247 | |||
248 | moc_lfrxmlhandler.cpp: lfrxmlhandler.h |
|
248 | moc_lfrxmlhandler.cpp: lfrxmlhandler.h | |
249 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp |
|
249 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp | |
250 |
|
250 | |||
251 | moc_lfrxmlwriter.cpp: lfrxmlwriter.h |
|
251 | moc_lfrxmlwriter.cpp: lfrxmlwriter.h | |
252 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp |
|
252 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp | |
253 |
|
253 | |||
254 | moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h |
|
254 | moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h | |
255 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp |
|
255 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp | |
256 |
|
256 | |||
257 | moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h |
|
257 | moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h | |
258 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp |
|
258 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp | |
259 |
|
259 | |||
260 | moc_wfpacket.cpp: ../rmapplugin/wfpacket.h |
|
260 | moc_wfpacket.cpp: ../rmapplugin/wfpacket.h | |
261 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp |
|
261 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp | |
262 |
|
262 | |||
263 | moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h |
|
263 | moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h | |
264 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp |
|
264 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp | |
265 |
|
265 | |||
266 | moc_lfrxmlparser.cpp: lfrxmlparser.h |
|
266 | moc_lfrxmlparser.cpp: lfrxmlparser.h | |
267 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp |
|
267 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp | |
268 |
|
268 | |||
269 | moc_lfrspectrogram.cpp: lfrspectrogram.h |
|
269 | moc_lfrspectrogram.cpp: lfrspectrogram.h | |
270 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp |
|
270 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp | |
271 |
|
271 | |||
272 | compiler_rcc_make_all: |
|
272 | compiler_rcc_make_all: | |
273 | compiler_rcc_clean: |
|
273 | compiler_rcc_clean: | |
274 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
274 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
275 | compiler_image_collection_clean: |
|
275 | compiler_image_collection_clean: | |
276 | -$(DEL_FILE) qmake_image_collection.cpp |
|
276 | -$(DEL_FILE) qmake_image_collection.cpp | |
277 | compiler_moc_source_make_all: |
|
277 | compiler_moc_source_make_all: | |
278 | compiler_moc_source_clean: |
|
278 | compiler_moc_source_clean: | |
279 | compiler_uic_make_all: |
|
279 | compiler_uic_make_all: | |
280 | compiler_uic_clean: |
|
280 | compiler_uic_clean: | |
281 | compiler_yacc_decl_make_all: |
|
281 | compiler_yacc_decl_make_all: | |
282 | compiler_yacc_decl_clean: |
|
282 | compiler_yacc_decl_clean: | |
283 | compiler_yacc_impl_make_all: |
|
283 | compiler_yacc_impl_make_all: | |
284 | compiler_yacc_impl_clean: |
|
284 | compiler_yacc_impl_clean: | |
285 | compiler_lex_make_all: |
|
285 | compiler_lex_make_all: | |
286 | compiler_lex_clean: |
|
286 | compiler_lex_clean: | |
287 | compiler_clean: compiler_moc_header_clean |
|
287 | compiler_clean: compiler_moc_header_clean | |
288 |
|
288 | |||
289 | ####### Compile |
|
289 | ####### Compile | |
290 |
|
290 | |||
291 | main.o: main.cpp mainwindow.h \ |
|
291 | main.o: main.cpp mainwindow.h \ | |
292 | lfrxmlhandler.h \ |
|
292 | lfrxmlhandler.h \ | |
293 | lfrxmlwriter.h \ |
|
293 | lfrxmlwriter.h \ | |
294 | mainwindowui.h \ |
|
294 | mainwindowui.h \ | |
295 | lfrspectrogram.h \ |
|
295 | lfrspectrogram.h \ | |
296 | lfrxmlparser.h |
|
296 | lfrxmlparser.h | |
297 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp |
|
297 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp | |
298 |
|
298 | |||
299 | mainwindow.o: mainwindow.cpp mainwindow.h \ |
|
299 | mainwindow.o: mainwindow.cpp mainwindow.h \ | |
300 | lfrxmlhandler.h \ |
|
300 | lfrxmlhandler.h \ | |
301 | lfrxmlwriter.h \ |
|
301 | lfrxmlwriter.h \ | |
302 | mainwindowui.h \ |
|
302 | mainwindowui.h \ | |
303 | lfrspectrogram.h \ |
|
303 | lfrspectrogram.h \ | |
304 | lfrxmlparser.h |
|
304 | lfrxmlparser.h | |
305 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp |
|
305 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp | |
306 |
|
306 | |||
307 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ |
|
307 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ | |
308 | lfrspectrogram.h |
|
308 | lfrspectrogram.h | |
309 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp |
|
309 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp | |
310 |
|
310 | |||
311 | qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
311 | qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h | |
312 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
312 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp | |
313 |
|
313 | |||
314 | lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h |
|
314 | lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h | |
315 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp |
|
315 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp | |
316 |
|
316 | |||
317 | lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h |
|
317 | lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h | |
318 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp |
|
318 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp | |
319 |
|
319 | |||
320 | tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h |
|
320 | tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h | |
321 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp |
|
321 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp | |
322 |
|
322 | |||
323 | tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h |
|
323 | tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h | |
324 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp |
|
324 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp | |
325 |
|
325 | |||
326 | wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h |
|
326 | wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h | |
327 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp |
|
327 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp | |
328 |
|
328 | |||
329 | hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h |
|
329 | hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h | |
330 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp |
|
330 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp | |
331 |
|
331 | |||
332 | lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h |
|
332 | lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h | |
333 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp |
|
333 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp | |
334 |
|
334 | |||
335 | lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h |
|
335 | lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h | |
336 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp |
|
336 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp | |
337 |
|
337 | |||
338 | moc_mainwindow.o: moc_mainwindow.cpp |
|
338 | moc_mainwindow.o: moc_mainwindow.cpp | |
339 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp |
|
339 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp | |
340 |
|
340 | |||
341 | moc_mainwindowui.o: moc_mainwindowui.cpp |
|
341 | moc_mainwindowui.o: moc_mainwindowui.cpp | |
342 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp |
|
342 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp | |
343 |
|
343 | |||
344 | moc_qipdialogbox.o: moc_qipdialogbox.cpp |
|
344 | moc_qipdialogbox.o: moc_qipdialogbox.cpp | |
345 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp |
|
345 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp | |
346 |
|
346 | |||
347 | moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp |
|
347 | moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp | |
348 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp |
|
348 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp | |
349 |
|
349 | |||
350 | moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp |
|
350 | moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp | |
351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp |
|
351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp | |
352 |
|
352 | |||
353 | moc_tmstatistics.o: moc_tmstatistics.cpp |
|
353 | moc_tmstatistics.o: moc_tmstatistics.cpp | |
354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp |
|
354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp | |
355 |
|
355 | |||
356 | moc_tmpackettoread.o: moc_tmpackettoread.cpp |
|
356 | moc_tmpackettoread.o: moc_tmpackettoread.cpp | |
357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp |
|
357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp | |
358 |
|
358 | |||
359 | moc_wfpacket.o: moc_wfpacket.cpp |
|
359 | moc_wfpacket.o: moc_wfpacket.cpp | |
360 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp |
|
360 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp | |
361 |
|
361 | |||
362 | moc_hkdisplay.o: moc_hkdisplay.cpp |
|
362 | moc_hkdisplay.o: moc_hkdisplay.cpp | |
363 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp |
|
363 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp | |
364 |
|
364 | |||
365 | moc_lfrxmlparser.o: moc_lfrxmlparser.cpp |
|
365 | moc_lfrxmlparser.o: moc_lfrxmlparser.cpp | |
366 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp |
|
366 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp | |
367 |
|
367 | |||
368 | moc_lfrspectrogram.o: moc_lfrspectrogram.cpp |
|
368 | moc_lfrspectrogram.o: moc_lfrspectrogram.cpp | |
369 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp |
|
369 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp | |
370 |
|
370 | |||
371 | ####### Install |
|
371 | ####### Install | |
372 |
|
372 | |||
373 | install: FORCE |
|
373 | install: FORCE | |
374 |
|
374 | |||
375 | uninstall: FORCE |
|
375 | uninstall: FORCE | |
376 |
|
376 | |||
377 | FORCE: |
|
377 | FORCE: | |
378 |
|
378 |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,265 +1,265 | |||||
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-06- |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-28T13:47:27. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
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 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
15 | <value type="QString" key="language">Cpp</value> |
|
15 | <value type="QString" key="language">Cpp</value> | |
16 | <valuemap type="QVariantMap" key="value"> |
|
16 | <valuemap type="QVariantMap" key="value"> | |
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
18 | </valuemap> |
|
18 | </valuemap> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
21 | <value type="QString" key="language">QmlJS</value> |
|
21 | <value type="QString" key="language">QmlJS</value> | |
22 | <valuemap type="QVariantMap" key="value"> |
|
22 | <valuemap type="QVariantMap" key="value"> | |
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
24 | </valuemap> |
|
24 | </valuemap> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
43 | </valuemap> |
|
43 | </valuemap> | |
44 | </data> |
|
44 | </data> | |
45 | <data> |
|
45 | <data> | |
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
47 | <valuemap type="QVariantMap"/> |
|
47 | <valuemap type="QVariantMap"/> | |
48 | </data> |
|
48 | </data> | |
49 | <data> |
|
49 | <data> | |
50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |
51 | <valuemap type="QVariantMap"> |
|
51 | <valuemap type="QVariantMap"> | |
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
58 | <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> |
|
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"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
69 | </valuemap> | |
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
77 | </valuemap> |
|
77 | </valuemap> | |
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
82 | </valuemap> |
|
82 | </valuemap> | |
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
91 | </valuemap> |
|
91 | </valuemap> | |
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
96 | </valuemap> |
|
96 | </valuemap> | |
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
100 | <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> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value> |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
119 | </valuemap> |
|
119 | </valuemap> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
127 | </valuemap> |
|
127 | </valuemap> | |
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
132 | </valuemap> |
|
132 | </valuemap> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
141 | </valuemap> |
|
141 | </valuemap> | |
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
146 | </valuemap> |
|
146 | </valuemap> | |
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value> |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> | |
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
165 | </valuemap> |
|
165 | </valuemap> | |
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
170 | </valuemap> |
|
170 | </valuemap> | |
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
202 | <value type="int">0</value> |
|
202 | <value type="int">0</value> | |
203 | <value type="int">1</value> |
|
203 | <value type="int">1</value> | |
204 | <value type="int">2</value> |
|
204 | <value type="int">2</value> | |
205 | <value type="int">3</value> |
|
205 | <value type="int">3</value> | |
206 | <value type="int">4</value> |
|
206 | <value type="int">4</value> | |
207 | <value type="int">5</value> |
|
207 | <value type="int">5</value> | |
208 | <value type="int">6</value> |
|
208 | <value type="int">6</value> | |
209 | <value type="int">7</value> |
|
209 | <value type="int">7</value> | |
210 | <value type="int">8</value> |
|
210 | <value type="int">8</value> | |
211 | <value type="int">9</value> |
|
211 | <value type="int">9</value> | |
212 | <value type="int">10</value> |
|
212 | <value type="int">10</value> | |
213 | <value type="int">11</value> |
|
213 | <value type="int">11</value> | |
214 | <value type="int">12</value> |
|
214 | <value type="int">12</value> | |
215 | <value type="int">13</value> |
|
215 | <value type="int">13</value> | |
216 | <value type="int">14</value> |
|
216 | <value type="int">14</value> | |
217 | </valuelist> |
|
217 | </valuelist> | |
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
219 | <value type="int">0</value> |
|
219 | <value type="int">0</value> | |
220 | <value type="int">1</value> |
|
220 | <value type="int">1</value> | |
221 | <value type="int">2</value> |
|
221 | <value type="int">2</value> | |
222 | <value type="int">3</value> |
|
222 | <value type="int">3</value> | |
223 | <value type="int">4</value> |
|
223 | <value type="int">4</value> | |
224 | <value type="int">5</value> |
|
224 | <value type="int">5</value> | |
225 | <value type="int">6</value> |
|
225 | <value type="int">6</value> | |
226 | <value type="int">7</value> |
|
226 | <value type="int">7</value> | |
227 | <value type="int">8</value> |
|
227 | <value type="int">8</value> | |
228 | <value type="int">9</value> |
|
228 | <value type="int">9</value> | |
229 | <value type="int">10</value> |
|
229 | <value type="int">10</value> | |
230 | <value type="int">11</value> |
|
230 | <value type="int">11</value> | |
231 | <value type="int">12</value> |
|
231 | <value type="int">12</value> | |
232 | <value type="int">13</value> |
|
232 | <value type="int">13</value> | |
233 | <value type="int">14</value> |
|
233 | <value type="int">14</value> | |
234 | </valuelist> |
|
234 | </valuelist> | |
235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> |
|
235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> | |
236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
237 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
237 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> | |
238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> | |
239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> |
|
240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> | |
241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |
243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> | |
244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
248 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
248 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
249 | </valuemap> |
|
249 | </valuemap> | |
250 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
250 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
251 | </valuemap> |
|
251 | </valuemap> | |
252 | </data> |
|
252 | </data> | |
253 | <data> |
|
253 | <data> | |
254 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
254 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
255 | <value type="int">1</value> |
|
255 | <value type="int">1</value> | |
256 | </data> |
|
256 | </data> | |
257 | <data> |
|
257 | <data> | |
258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
259 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
259 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
260 | </data> |
|
260 | </data> | |
261 | <data> |
|
261 | <data> | |
262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
263 | <value type="int">10</value> |
|
263 | <value type="int">10</value> | |
264 | </data> |
|
264 | </data> | |
265 | </qtcreator> |
|
265 | </qtcreator> |
@@ -1,63 +1,65 | |||||
1 | #include "lfrxmlparser.h" |
|
1 | #include "lfrxmlparser.h" | |
2 |
|
2 | |||
3 | LFRXmlParser::LFRXmlParser(QObject *parent) : |
|
3 | LFRXmlParser::LFRXmlParser(QObject *parent) : | |
4 | QObject(parent) |
|
4 | QObject(parent) | |
5 | { |
|
5 | { | |
6 | } |
|
6 | } | |
7 |
|
7 | |||
8 | void LFRXmlParser::processIncomingStr(QString incomingStr) |
|
8 | void LFRXmlParser::processIncomingStr(QString incomingStr) | |
9 | { |
|
9 | { | |
10 | int indexOfStartStr; |
|
10 | int indexOfStartStr; | |
11 | int indexOfStopStr; |
|
11 | int indexOfStopStr; | |
12 | int result; |
|
12 | int result; | |
13 | QString eventBinaryStr; |
|
13 | QString eventBinaryStr; | |
14 | QString startStr = "<EventBinary>"; |
|
14 | QString startStr = "<EventBinary>"; | |
15 | QString stopStr = "</EventBinary>"; |
|
15 | QString stopStr = "</EventBinary>"; | |
16 |
|
16 | |||
17 | xmlBuffer.append(incomingStr); |
|
17 | xmlBuffer.append(incomingStr); | |
18 |
|
18 | |||
19 | result = findPattern( startStr, stopStr, &indexOfStartStr, &indexOfStopStr); |
|
19 | result = findPattern( startStr, stopStr, &indexOfStartStr, &indexOfStopStr); | |
20 | while( result !=-1 ) |
|
20 | while( result !=-1 ) | |
21 | { |
|
21 | { | |
22 | eventBinaryStr = xmlBuffer.mid( |
|
22 | eventBinaryStr = xmlBuffer.mid( | |
23 | indexOfStartStr + startStr.size(), |
|
23 | indexOfStartStr + startStr.size(), | |
24 | indexOfStopStr - (indexOfStartStr + startStr.size() ) ); |
|
24 | indexOfStopStr - (indexOfStartStr + startStr.size() ) ); | |
25 | processIncomingData( eventBinaryStr ); |
|
25 | processIncomingData( eventBinaryStr ); | |
26 | xmlBuffer.remove(0, indexOfStopStr + stopStr.size()); |
|
26 | xmlBuffer.remove(0, indexOfStopStr + stopStr.size()); | |
27 | result = findPattern( startStr, stopStr, &indexOfStartStr, &indexOfStopStr); |
|
27 | result = findPattern( startStr, stopStr, &indexOfStartStr, &indexOfStopStr); | |
28 | } |
|
28 | } | |
|
29 | emit processPacketStore(); | |||
29 | } |
|
30 | } | |
30 |
|
31 | |||
31 | int LFRXmlParser::findPattern(QString startStr, QString stopStr, int *indexOfStartStr, int *indexOfStopStr) |
|
32 | int LFRXmlParser::findPattern(QString startStr, QString stopStr, int *indexOfStartStr, int *indexOfStopStr) | |
32 | { |
|
33 | { | |
33 | *indexOfStartStr = xmlBuffer.indexOf(startStr); |
|
34 | *indexOfStartStr = xmlBuffer.indexOf(startStr); | |
34 | *indexOfStopStr = xmlBuffer.indexOf(stopStr); |
|
35 | *indexOfStopStr = xmlBuffer.indexOf(stopStr); | |
35 |
|
36 | |||
36 | if ( (*indexOfStartStr==-1) | (*indexOfStopStr==-1) | (*indexOfStartStr > *indexOfStopStr) ) |
|
37 | if ( (*indexOfStartStr==-1) | (*indexOfStopStr==-1) | (*indexOfStartStr > *indexOfStopStr) ) | |
37 | { |
|
38 | { | |
38 | return -1; |
|
39 | return -1; | |
39 | } |
|
40 | } | |
40 | else |
|
41 | else | |
41 | { |
|
42 | { | |
42 | return 0; |
|
43 | return 0; | |
43 | } |
|
44 | } | |
44 | } |
|
45 | } | |
45 |
|
46 | |||
46 | void LFRXmlParser::processIncomingData(const QString &ch) |
|
47 | void LFRXmlParser::processIncomingData(const QString &ch) | |
47 | { |
|
48 | { | |
48 | QByteArray newdat; |
|
49 | QByteArray newdat; | |
49 | char *values; |
|
50 | char *values; | |
50 | unsigned char *ccsdsData; |
|
51 | unsigned char *ccsdsData; | |
51 | unsigned int ccsdsSize = 0; |
|
52 | unsigned int ccsdsSize = 0; | |
52 |
|
53 | |||
53 | TMPacketToRead *incomingPacket; |
|
54 | TMPacketToRead *incomingPacket; | |
54 |
|
55 | |||
55 | newdat = QByteArray::fromHex(ch.toAscii()); |
|
56 | newdat = QByteArray::fromHex(ch.toAscii()); | |
56 |
|
57 | |||
57 | values = (char*) newdat.data(); |
|
58 | values = (char*) newdat.data(); | |
58 | ccsdsSize = newdat.size(); |
|
59 | ccsdsSize = newdat.size(); | |
59 | ccsdsData = (unsigned char *) values; |
|
60 | ccsdsData = (unsigned char *) values; | |
60 |
|
61 | |||
61 | incomingPacket = new TMPacketToRead(ccsdsData, ccsdsSize); |
|
62 | incomingPacket = new TMPacketToRead(ccsdsData, ccsdsSize); | |
62 | emit sendPacket( incomingPacket ); |
|
63 | ||
|
64 | generalCCSDSPacketStore->append(incomingPacket); | |||
63 | } |
|
65 | } |
@@ -1,27 +1,28 | |||||
1 | #ifndef LFRXMLPARSER_H |
|
1 | #ifndef LFRXMLPARSER_H | |
2 | #define LFRXMLPARSER_H |
|
2 | #define LFRXMLPARSER_H | |
3 |
|
3 | |||
4 | #include <QObject> |
|
4 | #include <QObject> | |
5 | #include <tmpackettoread.h> |
|
5 | #include <tmpackettoread.h> | |
6 |
|
6 | |||
7 | class LFRXmlParser : public QObject |
|
7 | class LFRXmlParser : public QObject | |
8 | { |
|
8 | { | |
9 | Q_OBJECT |
|
9 | Q_OBJECT | |
10 | public: |
|
10 | public: | |
11 | explicit LFRXmlParser(QObject *parent = 0); |
|
11 | explicit LFRXmlParser(QObject *parent = 0); | |
12 | void processIncomingStr(QString incomingStr); |
|
12 | void processIncomingStr(QString incomingStr); | |
13 | int findPattern(QString startStr, QString stopStr, int *indexOfStartStr, int *indexOfStopStr); |
|
13 | int findPattern(QString startStr, QString stopStr, int *indexOfStartStr, int *indexOfStopStr); | |
14 | void processIncomingData(const QString &ch); |
|
14 | void processIncomingData(const QString &ch); | |
|
15 | QList<TMPacketToRead*> *generalCCSDSPacketStore; | |||
15 |
|
16 | |||
16 | signals: |
|
17 | signals: | |
17 | void sendMessage(QString); |
|
18 | void sendMessage(QString); | |
18 | void sendPacket(TMPacketToRead *incomingPacket); |
|
19 | void processPacketStore(); | |
19 |
|
20 | |||
20 | public slots: |
|
21 | public slots: | |
21 |
|
22 | |||
22 | private: |
|
23 | private: | |
23 | QString xmlBuffer; |
|
24 | QString xmlBuffer; | |
24 |
|
25 | |||
25 | }; |
|
26 | }; | |
26 |
|
27 | |||
27 | #endif // LFRXMLPARSER_H |
|
28 | #endif // LFRXMLPARSER_H |
@@ -1,366 +1,472 | |||||
1 | #include "mainwindow.h" |
|
1 | #include "mainwindow.h" | |
2 | #include <iostream> |
|
2 | #include <iostream> | |
3 | #include <QNetworkInterface> |
|
3 | #include <QNetworkInterface> | |
4 |
|
4 | |||
5 | MainWindow::MainWindow(QWidget *parent) |
|
5 | MainWindow::MainWindow(QWidget *parent) | |
6 | : QWidget(parent) |
|
6 | : QWidget(parent) | |
7 | { |
|
7 | { | |
8 | parsingContinue = false; |
|
8 | parsingContinue = false; | |
9 | totalOfBytes = 0; |
|
9 | totalOfBytes = 0; | |
10 | totalOfPackets = 0; |
|
10 | totalOfPackets = 0; | |
11 |
|
11 | |||
12 | analyserSGSEServerTC = new QTcpServer(); |
|
12 | analyserSGSEServerTC = new QTcpServer(); | |
13 | analyserSGSEServerTM = new QTcpServer(); |
|
13 | analyserSGSEServerTM = new QTcpServer(); | |
14 |
|
14 | |||
15 | socketTC = NULL; |
|
15 | socketTC = NULL; | |
16 | socketTM = NULL; |
|
16 | socketTM = NULL; | |
17 | socketEchoServer = new QTcpSocket(); |
|
17 | socketEchoServer = new QTcpSocket(); | |
18 |
|
18 | |||
19 | //**** |
|
19 | //**** | |
20 | // XML |
|
20 | // XML | |
21 | // xml handlers |
|
21 | // xml handlers | |
22 | xmlHandler = new LFRXmlHandler(); |
|
22 | xmlHandler = new LFRXmlHandler(); | |
23 | // xml sources |
|
23 | // xml sources | |
24 | sourceTC = new QXmlInputSource(); |
|
24 | sourceTC = new QXmlInputSource(); | |
25 | // xml writer |
|
25 | // xml writer | |
26 | lfrXmlWriter = new LFRXmlWriter(); |
|
26 | lfrXmlWriter = new LFRXmlWriter(); | |
27 | // setup xml parser for the echo bridge |
|
27 | // setup xml parser for the echo bridge | |
28 | lfrXmlParser = new LFRXmlParser(); |
|
28 | lfrXmlParser = new LFRXmlParser(); | |
29 |
|
29 | |||
30 | UI = new MainWindowUI(); |
|
30 | UI = new MainWindowUI(); | |
31 |
|
31 | |||
|
32 | lfrXmlParser->generalCCSDSPacketStore = &this->generalCCSDSPacketStore; | |||
|
33 | ||||
32 | initSocketStatesList(); |
|
34 | initSocketStatesList(); | |
33 |
|
35 | |||
34 | this->setLayout(UI->layout()); |
|
36 | this->setLayout(UI->layout()); | |
35 |
|
37 | |||
36 | connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts())); |
|
38 | connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts())); | |
37 | connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts())); |
|
39 | connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts())); | |
38 | connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer())); |
|
40 | connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer())); | |
39 | // |
|
41 | // | |
40 | connect(this->analyserSGSEServerTC, SIGNAL(newConnection()), this, SLOT(newConnectionOnTCServer())); |
|
42 | connect(this->analyserSGSEServerTC, SIGNAL(newConnection()), this, SLOT(newConnectionOnTCServer())); | |
41 | connect(this->analyserSGSEServerTM, SIGNAL(newConnection()), this, SLOT(newConnectionOnTMServer())); |
|
43 | connect(this->analyserSGSEServerTM, SIGNAL(newConnection()), this, SLOT(newConnectionOnTMServer())); | |
42 | // |
|
44 | // | |
43 | connect(this, SIGNAL(socketTMHasChanged(QTcpSocket*)), this->lfrXmlWriter, SLOT(setSocketTM(QTcpSocket*))); |
|
45 | connect(this, SIGNAL(socketTMHasChanged(QTcpSocket*)), this->lfrXmlWriter, SLOT(setSocketTM(QTcpSocket*))); | |
44 | connect(this->UI->button_TCAcknowledgement, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_Acknowledgment())); |
|
46 | connect(this->UI->button_TCAcknowledgement, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_Acknowledgment())); | |
45 | connect(this->UI->button_TCRejection, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_rejection())); |
|
47 | connect(this->UI->button_TCRejection, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_rejection())); | |
46 | connect(this->UI->button_GSEHK, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_GSE_HK())); |
|
48 | connect(this->UI->button_GSEHK, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_GSE_HK())); | |
47 |
|
49 | |||
48 | // socket echo server |
|
50 | // socket echo server | |
49 | connect(this->socketEchoServer, SIGNAL(stateChanged(QAbstractSocket::SocketState)), |
|
51 | connect(this->socketEchoServer, SIGNAL(stateChanged(QAbstractSocket::SocketState)), | |
50 | this, SLOT(socket_TMEcho_ServerHasChanged())); |
|
52 | this, SLOT(socket_TMEcho_ServerHasChanged())); | |
51 | connect(this->socketEchoServer, SIGNAL(readyRead()), |
|
53 | connect(this->socketEchoServer, SIGNAL(readyRead()), | |
52 | this, SLOT(readDataOnSocketEchoServer())); |
|
54 | this, SLOT(readDataOnSocketEchoServer())); | |
53 |
|
55 | |||
54 | // display on console |
|
56 | // display on console | |
55 | connect(this->xmlHandler, SIGNAL(displayMessage(QString)), |
|
57 | connect(this->xmlHandler, SIGNAL(displayMessage(QString)), | |
56 | this, SLOT(displayOnConsole(QString))); |
|
58 | this, SLOT(displayOnConsole(QString))); | |
57 | connect(this->UI->hkDisplay, SIGNAL(displayMessage(QString)), |
|
59 | connect(this->UI->hkDisplay, SIGNAL(displayMessage(QString)), | |
58 | this, SLOT(displayOnConsole(QString))); |
|
60 | this, SLOT(displayOnConsole(QString))); | |
59 | connect(this->lfrXmlParser, SIGNAL(sendMessage(QString)), |
|
61 | connect(this->lfrXmlParser, SIGNAL(sendMessage(QString)), | |
60 | this, SLOT(displayOnConsole(QString))); |
|
62 | this, SLOT(displayOnConsole(QString))); | |
61 | // |
|
63 | // | |
62 |
connect(this->lfrXmlParser, SIGNAL( |
|
64 | connect(this->lfrXmlParser, SIGNAL(processPacketStore()), | |
63 |
this, SLOT(process |
|
65 | this, SLOT(processPacketStore())); | |
64 | // |
|
66 | // | |
65 | connect(this->UI->button_resetStatistics, SIGNAL(clicked()), |
|
67 | connect(this->UI->button_resetStatistics, SIGNAL(clicked()), | |
66 | this, SLOT(resetStatistics())); |
|
68 | this, SLOT(resetStatistics())); | |
67 |
|
69 | |||
68 | displayNetworkInterfaces(); |
|
70 | displayNetworkInterfaces(); | |
69 |
|
71 | |||
70 | this->xmlHandler->packetStoreHasChanged(&generalCCSDSPacketStore); |
|
72 | this->xmlHandler->packetStoreHasChanged(&generalCCSDSPacketStore); | |
71 | }; |
|
73 | }; | |
72 |
|
74 | |||
73 | MainWindow::~MainWindow() |
|
75 | MainWindow::~MainWindow() | |
74 | { |
|
76 | { | |
75 |
|
77 | |||
76 | } |
|
78 | } | |
77 |
|
79 | |||
78 | void MainWindow::displayNetworkInterfaces() |
|
80 | void MainWindow::displayNetworkInterfaces() | |
79 | { |
|
81 | { | |
80 | QList<QHostAddress> list = QNetworkInterface::allAddresses(); |
|
82 | QList<QHostAddress> list = QNetworkInterface::allAddresses(); | |
81 | this->displayOnConsole("Network interfaces:"); |
|
83 | this->displayOnConsole("Network interfaces:"); | |
82 | for(int nIter=0; nIter<list.count(); nIter++) |
|
84 | for(int nIter=0; nIter<list.count(); nIter++) | |
83 | { |
|
85 | { | |
84 | this->UI->displayOnConsole(list[nIter].toString()); |
|
86 | this->UI->displayOnConsole(list[nIter].toString()); | |
85 | } |
|
87 | } | |
86 | } |
|
88 | } | |
87 |
|
89 | |||
88 | void MainWindow::listenOnTCTMPorts() |
|
90 | void MainWindow::listenOnTCTMPorts() | |
89 | { |
|
91 | { | |
90 | QString str; |
|
92 | QString str; | |
91 |
|
93 | |||
92 | //*** |
|
94 | //*** | |
93 | // TC |
|
95 | // TC | |
94 | analyserSGSEServerTC->listen(QHostAddress::Any, this->UI->getTCPort()); |
|
96 | analyserSGSEServerTC->listen(QHostAddress::Any, this->UI->getTCPort()); | |
95 | str = analyserSGSEServerTC->errorString(); |
|
97 | str = analyserSGSEServerTC->errorString(); | |
96 | if (!str.isEmpty()) |
|
98 | if (!str.isEmpty()) | |
97 | { |
|
99 | { | |
98 | this->displayOnConsole(str); |
|
100 | this->displayOnConsole(str); | |
99 | } |
|
101 | } | |
100 | this->displayOnConsole("Listening TC on port " |
|
102 | this->displayOnConsole("Listening TC on port " | |
101 | + QString::number(this->UI->getTCPort()) |
|
103 | + QString::number(this->UI->getTCPort()) | |
102 | ); |
|
104 | ); | |
103 |
|
105 | |||
104 | //*** |
|
106 | //*** | |
105 | // TM |
|
107 | // TM | |
106 | analyserSGSEServerTM->listen(QHostAddress::Any, this->UI->getTMPort()); |
|
108 | analyserSGSEServerTM->listen(QHostAddress::Any, this->UI->getTMPort()); | |
107 | str = analyserSGSEServerTM->errorString(); |
|
109 | str = analyserSGSEServerTM->errorString(); | |
108 | if (!str.isEmpty()) |
|
110 | if (!str.isEmpty()) | |
109 | { |
|
111 | { | |
110 | this->displayOnConsole(str); |
|
112 | this->displayOnConsole(str); | |
111 | } |
|
113 | } | |
112 | this->displayOnConsole("Listening TM on port " |
|
114 | this->displayOnConsole("Listening TM on port " | |
113 | + QString::number(this->UI->getTMPort()) |
|
115 | + QString::number(this->UI->getTMPort()) | |
114 | ); |
|
116 | ); | |
115 | } |
|
117 | } | |
116 |
|
118 | |||
117 | void MainWindow::testTCTMPorts() |
|
119 | void MainWindow::testTCTMPorts() | |
118 | { |
|
120 | { | |
119 | if (socketTC != NULL) |
|
121 | if (socketTC != NULL) | |
120 | { |
|
122 | { | |
121 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); |
|
123 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); | |
122 | } |
|
124 | } | |
123 | else |
|
125 | else | |
124 | { |
|
126 | { | |
125 | this->displayOnConsole("TC socket *** not tested, (socketTC) is NULL" ); |
|
127 | this->displayOnConsole("TC socket *** not tested, (socketTC) is NULL" ); | |
126 | } |
|
128 | } | |
127 | if (socketTM != NULL) |
|
129 | if (socketTM != NULL) | |
128 | { |
|
130 | { | |
129 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); |
|
131 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); | |
130 | } |
|
132 | } | |
131 | else |
|
133 | else | |
132 | { |
|
134 | { | |
133 | this->displayOnConsole("TM socket *** not tested, (socketTM) is NULL" ); |
|
135 | this->displayOnConsole("TM socket *** not tested, (socketTM) is NULL" ); | |
134 | } |
|
136 | } | |
135 | } |
|
137 | } | |
136 |
|
138 | |||
137 | void MainWindow::newConnectionOnTCServer() |
|
139 | void MainWindow::newConnectionOnTCServer() | |
138 | { |
|
140 | { | |
139 | this->displayOnConsole("got new connection on TC port"); |
|
141 | this->displayOnConsole("got new connection on TC port"); | |
140 | socketTC = analyserSGSEServerTC->nextPendingConnection(); |
|
142 | socketTC = analyserSGSEServerTC->nextPendingConnection(); | |
141 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); |
|
143 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); | |
142 | connect(this->socketTC, SIGNAL(readyRead()), this, SLOT(readDataOnTCPort())); |
|
144 | connect(this->socketTC, SIGNAL(readyRead()), this, SLOT(readDataOnTCPort())); | |
143 | } |
|
145 | } | |
144 |
|
146 | |||
145 | void MainWindow::newConnectionOnTMServer() |
|
147 | void MainWindow::newConnectionOnTMServer() | |
146 | { |
|
148 | { | |
147 | this->displayOnConsole("got new connection on TM port"); |
|
149 | this->displayOnConsole("got new connection on TM port"); | |
148 | socketTM = analyserSGSEServerTM->nextPendingConnection(); |
|
150 | socketTM = analyserSGSEServerTM->nextPendingConnection(); | |
149 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); |
|
151 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); | |
150 | connect(this->socketTM, SIGNAL(readyRead()), this, SLOT(readDataOnTMPort())); |
|
152 | connect(this->socketTM, SIGNAL(readyRead()), this, SLOT(readDataOnTMPort())); | |
151 |
|
153 | |||
152 | emit socketTMHasChanged(this->socketTM); |
|
154 | emit socketTMHasChanged(this->socketTM); | |
153 | } |
|
155 | } | |
154 |
|
156 | |||
155 | void MainWindow::readDataOnTCPort() |
|
157 | void MainWindow::readDataOnTCPort() | |
156 | { |
|
158 | { | |
157 | bool ok; |
|
159 | bool ok; | |
158 | int nbBytesAvailable = 0; |
|
160 | int nbBytesAvailable = 0; | |
159 |
|
161 | |||
160 | nbBytesAvailable = socketTC->bytesAvailable(); |
|
162 | nbBytesAvailable = socketTC->bytesAvailable(); | |
161 | buffer = (char *) malloc(nbBytesAvailable); |
|
163 | buffer = (char *) malloc(nbBytesAvailable); | |
162 | socketTC->read(buffer, nbBytesAvailable); |
|
164 | socketTC->read(buffer, nbBytesAvailable); | |
163 |
|
165 | |||
164 | this->displayOnConsole("readDataOnTCPort *** " |
|
166 | this->displayOnConsole("readDataOnTCPort *** " | |
165 | + QString::number(nbBytesAvailable) |
|
167 | + QString::number(nbBytesAvailable) | |
166 | + " read"); |
|
168 | + " read"); | |
167 |
|
169 | |||
168 | QByteArray xmlData( buffer, nbBytesAvailable); |
|
170 | QByteArray xmlData( buffer, nbBytesAvailable); | |
169 |
|
171 | |||
170 | free(buffer); |
|
172 | free(buffer); | |
171 |
|
173 | |||
172 | sourceTC->setData( xmlData ); |
|
174 | sourceTC->setData( xmlData ); | |
173 |
|
175 | |||
174 | xmlReader.setContentHandler(xmlHandler); |
|
176 | xmlReader.setContentHandler(xmlHandler); | |
175 | xmlReader.setErrorHandler(xmlHandler); |
|
177 | xmlReader.setErrorHandler(xmlHandler); | |
176 |
|
178 | |||
177 | ok = xmlReader.parse(sourceTC); |
|
179 | ok = xmlReader.parse(sourceTC); | |
178 | if (!ok) { |
|
180 | if (!ok) { | |
179 | std::cout << "Parsing failed." << std::endl; |
|
181 | std::cout << "Parsing failed." << std::endl; | |
180 | } |
|
182 | } | |
181 | else { |
|
183 | else { | |
182 | QStringList names = xmlHandler->names(); |
|
184 | QStringList names = xmlHandler->names(); | |
183 | QList<int> indentations = xmlHandler->indentations(); |
|
185 | QList<int> indentations = xmlHandler->indentations(); | |
184 |
|
186 | |||
185 | int items = names.count(); |
|
187 | int items = names.count(); | |
186 |
|
188 | |||
187 | for (int i = 0; i < items; ++i) { |
|
189 | for (int i = 0; i < items; ++i) { | |
188 | displayOnConsole( |
|
190 | displayOnConsole( | |
189 | names[i] |
|
191 | names[i] | |
190 | + " --- identations: " |
|
192 | + " --- identations: " | |
191 | + QString::number(indentations[i])); |
|
193 | + QString::number(indentations[i])); | |
192 | } |
|
194 | } | |
193 | } |
|
195 | } | |
194 | } |
|
196 | } | |
195 |
|
197 | |||
196 | void MainWindow::readDataOnTMPort() |
|
198 | void MainWindow::readDataOnTMPort() | |
197 | { |
|
199 | { | |
198 | this->displayOnConsole("TM data received, begin parsing"); |
|
200 | this->displayOnConsole("TM data received, begin parsing"); | |
199 | } |
|
201 | } | |
200 |
|
202 | |||
201 | void MainWindow::readDataOnSocketEchoServer() |
|
203 | void MainWindow::readDataOnSocketEchoServer() | |
202 | { |
|
204 | { | |
203 | QString dataString; |
|
205 | QString dataString; | |
204 |
|
206 | |||
205 | dataArray.append(socketEchoServer->readAll()); |
|
207 | dataArray.append(socketEchoServer->readAll()); | |
206 | dataString = QString::fromAscii(dataArray); |
|
208 | dataString = QString::fromAscii(dataArray); | |
207 | this->lfrXmlParser->processIncomingStr(dataString); |
|
209 | this->lfrXmlParser->processIncomingStr(dataString); | |
208 | dataArray.clear(); |
|
210 | dataArray.clear(); | |
209 | } |
|
211 | } | |
210 |
|
212 | |||
211 | void MainWindow::processIncomingData(const QString &ch) |
|
|||
212 | { |
|
|||
213 | QByteArray newdat; |
|
|||
214 | char *values; |
|
|||
215 | unsigned char *ccsdsData; |
|
|||
216 | unsigned int ccsdsSize = 0; |
|
|||
217 |
|
||||
218 | TMPacketToRead *incomingPacket; |
|
|||
219 |
|
||||
220 | newdat = QByteArray::fromHex(ch.toAscii()); |
|
|||
221 |
|
||||
222 | values = (char*) newdat.data(); |
|
|||
223 | ccsdsSize = newdat.size(); |
|
|||
224 | ccsdsData = (unsigned char *) values; |
|
|||
225 |
|
||||
226 | incomingPacket = new TMPacketToRead(ccsdsData, ccsdsSize); |
|
|||
227 | processIncomingPacket( incomingPacket ); |
|
|||
228 | } |
|
|||
229 |
|
||||
230 | void MainWindow::displayOnConsole(QString message) |
|
213 | void MainWindow::displayOnConsole(QString message) | |
231 | { |
|
214 | { | |
232 | this->UI->displayOnConsole( message ); |
|
215 | this->UI->displayOnConsole( message ); | |
233 | } |
|
216 | } | |
234 |
|
217 | |||
235 | void MainWindow::initSocketStatesList() |
|
218 | void MainWindow::initSocketStatesList() | |
236 | { |
|
219 | { | |
237 | socketStates.append("The socket is not connected"); |
|
220 | socketStates.append("The socket is not connected"); | |
238 | socketStates.append("The socket is performing a host name lookup"); |
|
221 | socketStates.append("The socket is performing a host name lookup"); | |
239 | socketStates.append("The socket has started establishing a connection"); |
|
222 | socketStates.append("The socket has started establishing a connection"); | |
240 | socketStates.append("A connection is established"); |
|
223 | socketStates.append("A connection is established"); | |
241 | socketStates.append("The socket is bound to an address and port (for servers)"); |
|
224 | socketStates.append("The socket is bound to an address and port (for servers)"); | |
242 | socketStates.append("The socket is about to close (data may still be waiting to be written)"); |
|
225 | socketStates.append("The socket is about to close (data may still be waiting to be written)"); | |
243 | socketStates.append("For internal use only"); |
|
226 | socketStates.append("For internal use only"); | |
244 | } |
|
227 | } | |
245 |
|
228 | |||
246 | void MainWindow::openEchoServer() |
|
229 | void MainWindow::openEchoServer() | |
247 | { |
|
230 | { | |
248 | socketEchoServer->connectToHost(this->UI->serverTMEchoDialogBox->getIP(), |
|
231 | socketEchoServer->connectToHost(this->UI->serverTMEchoDialogBox->getIP(), | |
249 | this->UI->spinbox_serverTMEchoPort->value()); |
|
232 | this->UI->spinbox_serverTMEchoPort->value()); | |
250 | //socketEchoServer->open(); |
|
233 | //socketEchoServer->open(); | |
251 | } |
|
234 | } | |
252 |
|
235 | |||
253 | void MainWindow::socket_TMEcho_ServerHasChanged() |
|
236 | void MainWindow::socket_TMEcho_ServerHasChanged() | |
254 | { |
|
237 | { | |
255 | this->displayOnConsole("TM Echo Socket socket *** " + socketStates.at(socketEchoServer->state()) ); |
|
238 | this->displayOnConsole("TM Echo Socket socket *** " + socketStates.at(socketEchoServer->state()) ); | |
256 | } |
|
239 | } | |
257 |
|
240 | |||
258 | void MainWindow::preProcessPacket(TMPacketToRead *packet) |
|
241 | void MainWindow::preProcessPacket(TMPacketToRead *packet) | |
259 | { |
|
242 | { | |
260 | unsigned char pid = 0; |
|
243 | unsigned char pid = 0; | |
261 | unsigned char cat = 0; |
|
244 | unsigned char cat = 0; | |
262 | unsigned char typ = 0; |
|
245 | unsigned char typ = 0; | |
263 | unsigned char sub = 0; |
|
246 | unsigned char sub = 0; | |
264 | unsigned int sid = 0; |
|
247 | unsigned int sid = 0; | |
265 | unsigned int length = 0; |
|
248 | unsigned int length = 0; | |
266 | unsigned int coarse_t = 0; |
|
249 | unsigned int coarse_t = 0; | |
267 | unsigned int fine_t = 0; |
|
250 | unsigned int fine_t = 0; | |
268 |
|
251 | |||
269 | //********************************* |
|
252 | //********************************* | |
270 | // get the parameters of the packet |
|
253 | // get the parameters of the packet | |
271 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); |
|
254 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
272 | cat = packet->Value[5] & 0x0f; |
|
255 | cat = packet->Value[5] & 0x0f; | |
273 | typ = packet->Value[11]; // TYPE |
|
256 | typ = packet->Value[11]; // TYPE | |
274 | sub = packet->Value[12]; // SUBTYPE |
|
257 | sub = packet->Value[12]; // SUBTYPE | |
275 | sid = 0; |
|
258 | sid = 0; | |
276 | length = packet->Value[8] * 256 + packet->Value[9]; |
|
259 | length = packet->Value[8] * 256 + packet->Value[9]; | |
|
260 | // compare length in the packet with the size of the packet | |||
|
261 | if ( (length + 1 + 10) != (packet->size)) | |||
|
262 | { | |||
|
263 | displayOnConsole("reception of " + QString::number(packet->size) | |||
|
264 | + " bytes instead of " + QString::number(length + 1 + 10)); | |||
|
265 | } | |||
277 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) |
|
266 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
278 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; |
|
267 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
279 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; |
|
268 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
280 |
|
269 | |||
281 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) |
|
270 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) | |
282 | sid = packet->Value[20] * 256 + packet->Value[21]; |
|
271 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
|
272 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) | |||
|
273 | sid = 1; | |||
283 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) |
|
274 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) | |
284 | sid = packet->Value[20]; |
|
275 | sid = packet->Value[20]; | |
285 |
else if ((pid == 7 |
|
276 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) | |
286 |
sid = |
|
277 | sid = packet->Value[20]; | |
287 |
|
278 | |||
288 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
279 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
289 |
|
280 | |||
290 | //*************************************************** |
|
281 | //*************************************************** | |
291 | // if the packet is an HK packet, display its content |
|
282 | // if the packet is an HK packet, display its content | |
292 | if ( (typ == TYPE_HK) & (sub == SUBTYPE_HK) ) |
|
283 | if ( (typ == TYPE_HK) & (sub == SUBTYPE_HK) ) | |
293 | { |
|
284 | { | |
294 | this->UI->hkDisplay->displayPacket(packet); |
|
285 | this->UI->hkDisplay->displayPacket(packet); | |
295 | } |
|
286 | } | |
296 |
|
287 | |||
297 | //**************************************** |
|
288 | //**************************************** | |
298 | // if the packet is a waveform, display it |
|
289 | // if the packet is a waveform, display it | |
299 | if ( (typ == 21) & (sub == 3) ) |
|
290 | if ( (typ == 21) & (sub == 3) ) | |
300 | { |
|
291 | { | |
301 | sid = packet->Value[20]; // SID |
|
292 | sid = packet->Value[20]; // SID | |
302 | switch (sid){ |
|
293 | switch (sid){ | |
303 | case SID_NORMAL_SWF_F0: |
|
294 | case SID_NORMAL_SWF_F0: | |
304 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); |
|
295 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); | |
305 | break; |
|
296 | break; | |
306 | case SID_NORMAL_SWF_F1: |
|
297 | case SID_NORMAL_SWF_F1: | |
307 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); |
|
298 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); | |
308 | break; |
|
299 | break; | |
309 | case SID_NORMAL_SWF_F2: |
|
300 | case SID_NORMAL_SWF_F2: | |
310 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); |
|
301 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); | |
311 | break; |
|
302 | break; | |
312 | case SID_NORMAL_CWF_F3: |
|
303 | case SID_NORMAL_CWF_F3: | |
313 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); |
|
304 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); | |
314 | break; |
|
305 | break; | |
|
306 | case SID_BURST_CWF_F2: | |||
|
307 | buildWFAndDisplayBurst(packet, &wfPacketBurst); | |||
|
308 | break; | |||
|
309 | case SID_SBM1_CWF_F1: | |||
|
310 | buildWFAndDisplaySBM1(packet, &wfPacketSBM1); | |||
|
311 | break; | |||
|
312 | case SID_SBM2_CWF_F2: | |||
|
313 | buildWFAndDisplaySBM2(packet, &wfPacketSBM2); | |||
|
314 | break; | |||
315 | } |
|
315 | } | |
316 | } |
|
316 | } | |
317 | } |
|
317 | } | |
318 |
|
318 | |||
319 | void MainWindow::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) |
|
319 | void MainWindow::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) | |
320 | { |
|
320 | { | |
321 | unsigned int i = 0; |
|
321 | unsigned int i = 0; | |
322 | unsigned int j = 0; |
|
322 | unsigned int j = 0; | |
323 | unsigned char *data; |
|
323 | unsigned char *data; | |
324 | unsigned char pkt_nr = 0; |
|
324 | unsigned char pkt_nr = 0; | |
325 | unsigned int blk_nr = 0; |
|
325 | unsigned int blk_nr = 0; | |
326 |
|
326 | |||
327 | pkt_nr = packet->Value[23]; // PKT_NR |
|
327 | pkt_nr = packet->Value[23]; // PKT_NR | |
328 |
blk_nr = packet->Value[ |
|
328 | blk_nr = packet->Value[30] * 256 + packet->Value[31]; | |
329 |
data = &packet->Value[2 |
|
329 | data = &packet->Value[32]; // start of the first data block; | |
330 | j = (pkt_nr-1) * 340; |
|
330 | j = (pkt_nr-1) * 340; | |
331 | for ( i=0; i<blk_nr; i++ ){ |
|
331 | for ( i=0; i<blk_nr; i++ ){ | |
332 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
332 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |
333 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
333 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |
334 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
334 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |
335 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
335 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |
336 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
336 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |
337 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
337 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |
338 | } |
|
338 | } | |
339 | if (pkt_nr == 7) |
|
339 | if (pkt_nr == 7) | |
340 | { |
|
340 | { | |
341 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); |
|
341 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); | |
342 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); |
|
342 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); | |
343 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); |
|
343 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); | |
344 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); |
|
344 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); | |
345 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); |
|
345 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); | |
346 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); |
|
346 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); | |
347 | } |
|
347 | } | |
348 | } |
|
348 | } | |
349 |
|
349 | |||
|
350 | void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket) | |||
|
351 | { | |||
|
352 | unsigned int i = 0; | |||
|
353 | unsigned int j = 0; | |||
|
354 | unsigned char *data; | |||
|
355 | static unsigned char pkt_nr = 1; | |||
|
356 | unsigned int blk_nr = 0; | |||
|
357 | ||||
|
358 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; | |||
|
359 | data = &packet->Value[30]; // start of the first data block; | |||
|
360 | j = (pkt_nr-1) * 340; | |||
|
361 | for ( i=0; i<blk_nr; i++ ){ | |||
|
362 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |||
|
363 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |||
|
364 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |||
|
365 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |||
|
366 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |||
|
367 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |||
|
368 | } | |||
|
369 | pkt_nr = pkt_nr + 1; | |||
|
370 | if (blk_nr == 8) | |||
|
371 | { | |||
|
372 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0); | |||
|
373 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1); | |||
|
374 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2); | |||
|
375 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3); | |||
|
376 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4); | |||
|
377 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5); | |||
|
378 | pkt_nr = 1; | |||
|
379 | } | |||
|
380 | } | |||
|
381 | ||||
|
382 | void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket) | |||
|
383 | { | |||
|
384 | unsigned int i = 0; | |||
|
385 | unsigned int j = 0; | |||
|
386 | unsigned char *data; | |||
|
387 | static unsigned char pkt_nr = 1; | |||
|
388 | unsigned int blk_nr = 0; | |||
|
389 | ||||
|
390 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; | |||
|
391 | data = &packet->Value[30]; // start of the first data block; | |||
|
392 | j = (pkt_nr-1) * 340; | |||
|
393 | for ( i=0; i<blk_nr; i++ ){ | |||
|
394 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |||
|
395 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |||
|
396 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |||
|
397 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |||
|
398 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |||
|
399 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |||
|
400 | } | |||
|
401 | pkt_nr = pkt_nr + 1; | |||
|
402 | if (blk_nr == 8) | |||
|
403 | { | |||
|
404 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0); | |||
|
405 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1); | |||
|
406 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2); | |||
|
407 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3); | |||
|
408 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4); | |||
|
409 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5); | |||
|
410 | pkt_nr = 1; | |||
|
411 | } | |||
|
412 | } | |||
|
413 | ||||
|
414 | void MainWindow::buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket) | |||
|
415 | { | |||
|
416 | unsigned int i = 0; | |||
|
417 | unsigned int j = 0; | |||
|
418 | unsigned char *data; | |||
|
419 | static unsigned char pkt_nr = 1; | |||
|
420 | unsigned int blk_nr = 0; | |||
|
421 | ||||
|
422 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; | |||
|
423 | data = &packet->Value[30]; // start of the first data block; | |||
|
424 | j = (pkt_nr-1) * 340; | |||
|
425 | for ( i=0; i<blk_nr; i++ ){ | |||
|
426 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |||
|
427 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |||
|
428 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |||
|
429 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |||
|
430 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |||
|
431 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |||
|
432 | } | |||
|
433 | pkt_nr = pkt_nr + 1; | |||
|
434 | if (blk_nr == 8) | |||
|
435 | { | |||
|
436 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_v, 0); | |||
|
437 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e1, 1); | |||
|
438 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e2, 2); | |||
|
439 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b1, 3); | |||
|
440 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b2, 4); | |||
|
441 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b3, 5); | |||
|
442 | pkt_nr = 1; | |||
|
443 | } | |||
|
444 | } | |||
|
445 | ||||
350 | void MainWindow::processIncomingPacket(TMPacketToRead *packet) |
|
446 | void MainWindow::processIncomingPacket(TMPacketToRead *packet) | |
351 | { |
|
447 | { | |
352 | totalOfBytes = totalOfBytes + packet->size; |
|
448 | totalOfBytes = totalOfBytes + packet->size; | |
353 | totalOfPackets = totalOfPackets + 1; |
|
449 | totalOfPackets = totalOfPackets + 1; | |
354 | this->UI->totalOfBytesHasChanged(totalOfBytes); |
|
450 | this->UI->totalOfBytesHasChanged(totalOfBytes); | |
355 | this->UI->totalOfPacketsHasChanged(totalOfPackets); |
|
451 | this->UI->totalOfPacketsHasChanged(totalOfPackets); | |
356 | preProcessPacket(packet); |
|
452 | preProcessPacket(packet); | |
357 | packet->deleteLater(); |
|
|||
358 | } |
|
453 | } | |
359 |
|
454 | |||
360 | void MainWindow::resetStatistics() |
|
455 | void MainWindow::resetStatistics() | |
361 | { |
|
456 | { | |
362 | totalOfBytes = 0; |
|
457 | totalOfBytes = 0; | |
363 | totalOfPackets = 0; |
|
458 | totalOfPackets = 0; | |
364 | this->UI->totalOfBytesHasChanged(totalOfBytes); |
|
459 | this->UI->totalOfBytesHasChanged(totalOfBytes); | |
365 | this->UI->totalOfPacketsHasChanged(totalOfPackets); |
|
460 | this->UI->totalOfPacketsHasChanged(totalOfPackets); | |
366 | } |
|
461 | } | |
|
462 | ||||
|
463 | void MainWindow::processPacketStore() | |||
|
464 | { | |||
|
465 | TMPacketToRead *packet; | |||
|
466 | while(!generalCCSDSPacketStore.isEmpty()) | |||
|
467 | { | |||
|
468 | packet = generalCCSDSPacketStore.takeFirst(); | |||
|
469 | processIncomingPacket(packet); | |||
|
470 | delete(packet); | |||
|
471 | } | |||
|
472 | } |
@@ -1,79 +1,85 | |||||
1 | #ifndef MAINWINDOW_H |
|
1 | #ifndef MAINWINDOW_H | |
2 | #define MAINWINDOW_H |
|
2 | #define MAINWINDOW_H | |
3 |
|
3 | |||
4 | #include <QtGui/QMainWindow> |
|
4 | #include <QtGui/QMainWindow> | |
5 | #include <QTcpServer> |
|
5 | #include <QTcpServer> | |
6 | #include <QTcpSocket> |
|
6 | #include <QTcpSocket> | |
7 | #include <QXmlSimpleReader> |
|
7 | #include <QXmlSimpleReader> | |
8 |
|
8 | |||
9 | #include <lfrxmlhandler.h> |
|
9 | #include <lfrxmlhandler.h> | |
10 | #include <lfrxmlwriter.h> |
|
10 | #include <lfrxmlwriter.h> | |
11 | #include <mainwindowui.h> |
|
11 | #include <mainwindowui.h> | |
12 | #include "tmpackettoread.h" |
|
12 | #include "tmpackettoread.h" | |
13 | #include "wfpacket.h" |
|
13 | #include "wfpacket.h" | |
14 | #include "lfrxmlparser.h" |
|
14 | #include "lfrxmlparser.h" | |
15 |
|
15 | |||
16 | class MainWindow : public QWidget |
|
16 | class MainWindow : public QWidget | |
17 | { |
|
17 | { | |
18 | Q_OBJECT |
|
18 | Q_OBJECT | |
19 |
|
19 | |||
20 | public: |
|
20 | public: | |
21 | MainWindow(QWidget *parent = 0); |
|
21 | MainWindow(QWidget *parent = 0); | |
22 | ~MainWindow(); |
|
22 | ~MainWindow(); | |
23 |
|
23 | |||
24 | void displayNetworkInterfaces(); |
|
24 | void displayNetworkInterfaces(); | |
25 | void processIncomingData(const QString &ch); |
|
|||
26 | void initSocketStatesList(); |
|
25 | void initSocketStatesList(); | |
27 | void preProcessPacket(TMPacketToRead *packet); |
|
26 | void preProcessPacket(TMPacketToRead *packet); | |
28 | void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page); |
|
27 | void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page); | |
|
28 | void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket); | |||
|
29 | void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket); | |||
|
30 | void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket); | |||
29 |
|
31 | |||
30 | private: |
|
32 | private: | |
31 | QByteArray dataArray; |
|
33 | QByteArray dataArray; | |
32 |
|
34 | |||
33 | QList<TMPacketToRead*> generalCCSDSPacketStore; |
|
35 | QList<TMPacketToRead*> generalCCSDSPacketStore; | |
34 |
|
36 | |||
35 | QTcpServer *analyserSGSEServerTC; |
|
37 | QTcpServer *analyserSGSEServerTC; | |
36 | QTcpServer *analyserSGSEServerTM; |
|
38 | QTcpServer *analyserSGSEServerTM; | |
37 | QTcpSocket *socketTC; |
|
39 | QTcpSocket *socketTC; | |
38 | QTcpSocket *socketTM; |
|
40 | QTcpSocket *socketTM; | |
39 | QTcpSocket *socketEchoServer; |
|
41 | QTcpSocket *socketEchoServer; | |
40 |
|
42 | |||
41 | unsigned int totalOfBytes; |
|
43 | unsigned int totalOfBytes; | |
42 | unsigned int totalOfPackets; |
|
44 | unsigned int totalOfPackets; | |
43 |
|
45 | |||
44 | QXmlSimpleReader xmlReader; |
|
46 | QXmlSimpleReader xmlReader; | |
45 | QXmlInputSource *sourceTC; |
|
47 | QXmlInputSource *sourceTC; | |
46 | LFRXmlHandler *xmlHandler; |
|
48 | LFRXmlHandler *xmlHandler; | |
47 | LFRXmlParser *lfrXmlParser; |
|
49 | LFRXmlParser *lfrXmlParser; | |
48 |
|
50 | |||
49 | QList<QString> socketStates; |
|
51 | QList<QString> socketStates; | |
50 |
|
52 | |||
51 | char *buffer; |
|
53 | char *buffer; | |
52 |
|
54 | |||
53 | MainWindowUI *UI; |
|
55 | MainWindowUI *UI; | |
54 |
|
56 | |||
55 | LFRXmlWriter *lfrXmlWriter; |
|
57 | LFRXmlWriter *lfrXmlWriter; | |
56 |
|
58 | |||
57 | WFPacket wfPacketNormal[4]; |
|
59 | WFPacket wfPacketNormal[4]; | |
|
60 | WFPacket wfPacketBurst; | |||
|
61 | WFPacket wfPacketSBM1; | |||
|
62 | WFPacket wfPacketSBM2; | |||
58 |
|
63 | |||
59 | bool parsingContinue; |
|
64 | bool parsingContinue; | |
60 |
|
65 | |||
61 | signals: |
|
66 | signals: | |
62 | void socketTMHasChanged(QTcpSocket *socket); |
|
67 | void socketTMHasChanged(QTcpSocket *socket); | |
63 |
|
68 | |||
64 | public slots: |
|
69 | public slots: | |
65 | void displayOnConsole(QString message); |
|
70 | void displayOnConsole(QString message); | |
66 | void listenOnTCTMPorts(); |
|
71 | void listenOnTCTMPorts(); | |
67 | void testTCTMPorts(); |
|
72 | void testTCTMPorts(); | |
68 | void newConnectionOnTCServer(); |
|
73 | void newConnectionOnTCServer(); | |
69 | void newConnectionOnTMServer(); |
|
74 | void newConnectionOnTMServer(); | |
70 | void readDataOnTCPort(); |
|
75 | void readDataOnTCPort(); | |
71 | void readDataOnTMPort(); |
|
76 | void readDataOnTMPort(); | |
72 | void readDataOnSocketEchoServer(); |
|
77 | void readDataOnSocketEchoServer(); | |
73 | void openEchoServer(); |
|
78 | void openEchoServer(); | |
74 | void socket_TMEcho_ServerHasChanged(); |
|
79 | void socket_TMEcho_ServerHasChanged(); | |
75 | void processIncomingPacket(TMPacketToRead *packet); |
|
80 | void processIncomingPacket(TMPacketToRead *packet); | |
76 | void resetStatistics(); |
|
81 | void resetStatistics(); | |
|
82 | void processPacketStore(); | |||
77 | }; |
|
83 | }; | |
78 |
|
84 | |||
79 | #endif // MAINWINDOW_H |
|
85 | #endif // MAINWINDOW_H |
@@ -1,151 +1,162 | |||||
1 | #include "mainwindowui.h" |
|
1 | #include "mainwindowui.h" | |
2 |
|
2 | |||
3 | MainWindowUI::MainWindowUI(QWidget *parent) : |
|
3 | MainWindowUI::MainWindowUI(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | label_serverTMEcho = new QLabel(tr("TM Echo Server address")); |
|
6 | label_serverTMEcho = new QLabel(tr("TM Echo Server address")); | |
7 | label_serverTMEchoPort = new QLabel(tr("TM Echo Server Port")); |
|
7 | label_serverTMEchoPort = new QLabel(tr("TM Echo Server Port")); | |
8 | label_TMServerPort = new QLabel(tr("TM Server Port:")); |
|
8 | label_TMServerPort = new QLabel(tr("TM Server Port:")); | |
9 | label_TCServerPort = new QLabel(tr("TC Server Port:")); |
|
9 | label_TCServerPort = new QLabel(tr("TC Server Port:")); | |
10 | label_currentTCTMServer = new QLabel(tr("Current IP address:")); |
|
10 | label_currentTCTMServer = new QLabel(tr("Current IP address:")); | |
11 | label_currentTCTMServerIP = new QLabel(tr("-")); |
|
11 | label_currentTCTMServerIP = new QLabel(tr("-")); | |
12 | label_totalOfBytes = new QLabel(tr("Received Bytes: -")); |
|
12 | label_totalOfBytes = new QLabel(tr("Received Bytes: -")); | |
13 | label_totalOfPackets = new QLabel(tr("Received Packets: -")); |
|
13 | label_totalOfPackets = new QLabel(tr("Received Packets: -")); | |
14 |
|
14 | |||
15 | console = new QTextEdit(); |
|
15 | console = new QTextEdit(); | |
16 |
|
16 | |||
17 | spwTabWidget = new QTabWidget; |
|
17 | spwTabWidget = new QTabWidget; | |
18 | spwTabWidgetPage0 = new QWidget; |
|
18 | spwTabWidgetPage0 = new QWidget; | |
19 | spwTabWidgetPage1 = new QWidget; |
|
19 | spwTabWidgetPage1 = new QWidget; | |
20 | spwTabWidgetPage2 = new QWidget; |
|
20 | spwTabWidgetPage2 = new QWidget; | |
21 | spwTabWidgetPage3 = new QWidget; |
|
21 | spwTabWidgetPage3 = new QWidget; | |
22 | spwTabWidgetPage4 = new QWidget; |
|
22 | spwTabWidgetPage4 = new QWidget; | |
23 | spwTabWidgetPage5 = new QWidget; |
|
23 | spwTabWidgetPage5 = new QWidget; // WFRM BURST | |
|
24 | spwTabWidgetPage6 = new QWidget; // WFRM SBM1 | |||
|
25 | spwTabWidgetPage7 = new QWidget; // WFRM SBM2 | |||
24 |
|
26 | |||
25 | tmStatistics = new TMStatistics; |
|
27 | tmStatistics = new TMStatistics; | |
26 |
|
28 | |||
27 | wfDisplay = new WFDisplay; |
|
29 | wfDisplay = new WFDisplay(); | |
28 | hkDisplay = new HKDisplay; |
|
30 | wfPageBurst = new WFPage(); | |
|
31 | wfPageSBM1 = new WFPage(); | |||
|
32 | wfPageSBM2 = new WFPage(); | |||
|
33 | hkDisplay = new HKDisplay(); | |||
29 | lfrSpectrogam = new LFRSpectrogram(); |
|
34 | lfrSpectrogam = new LFRSpectrogram(); | |
30 |
|
35 | |||
31 | spinbox_TMServerPort = new QSpinBox(); |
|
36 | spinbox_TMServerPort = new QSpinBox(); | |
32 | spinbox_TCServerPort = new QSpinBox(); |
|
37 | spinbox_TCServerPort = new QSpinBox(); | |
33 | spinbox_serverTMEchoPort = new QSpinBox(); |
|
38 | spinbox_serverTMEchoPort = new QSpinBox(); | |
34 | spinbox_TMServerPort->setRange(59000, 65535); |
|
39 | spinbox_TMServerPort->setRange(59000, 65535); | |
35 | spinbox_TCServerPort->setRange(59001, 65535); |
|
40 | spinbox_TCServerPort->setRange(59001, 65535); | |
36 | spinbox_serverTMEchoPort->setRange(59002, 65535); |
|
41 | spinbox_serverTMEchoPort->setRange(59002, 65535); | |
37 |
|
42 | |||
38 | button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports")); |
|
43 | button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports")); | |
39 | button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports")); |
|
44 | button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports")); | |
40 | button_openSocketEchoServer = new QPushButton(tr("Open Echo Server")); |
|
45 | button_openSocketEchoServer = new QPushButton(tr("Open Echo Server")); | |
41 | button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement")); |
|
46 | button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement")); | |
42 | button_TCRejection = new QPushButton(tr("send TC rejection")); |
|
47 | button_TCRejection = new QPushButton(tr("send TC rejection")); | |
43 | button_GSEHK = new QPushButton(tr("send GSE HK")); |
|
48 | button_GSEHK = new QPushButton(tr("send GSE HK")); | |
44 | button_clearConsole = new QPushButton(tr("Clear console")); |
|
49 | button_clearConsole = new QPushButton(tr("Clear console")); | |
45 | button_resetStatistics = new QPushButton(tr("Reset statistics")); |
|
50 | button_resetStatistics = new QPushButton(tr("Reset statistics")); | |
46 |
|
51 | |||
47 | serverTMEchoDialogBox = new QIPDialogBox(); |
|
52 | serverTMEchoDialogBox = new QIPDialogBox(); | |
48 | serverTMEchoDialogBox->setIP(127, 0, 0, 1); |
|
53 | serverTMEchoDialogBox->setIP(127, 0, 0, 1); | |
49 |
|
54 | |||
50 | groupbox_TMEcho = new QGroupBox(tr("TM Echo Server")); |
|
55 | groupbox_TMEcho = new QGroupBox(tr("TM Echo Server")); | |
51 | groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers")); |
|
56 | groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers")); | |
52 | groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester")); |
|
57 | groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester")); | |
53 |
|
58 | |||
54 | layout_TMEcho = new QVBoxLayout(); |
|
59 | layout_TMEcho = new QVBoxLayout(); | |
55 | layout_overallLayout = new QVBoxLayout(); |
|
60 | layout_overallLayout = new QVBoxLayout(); | |
56 | layout_ports = new QGridLayout(); |
|
61 | layout_ports = new QGridLayout(); | |
57 | layout_TMToForeignGSETester = new QVBoxLayout(); |
|
62 | layout_TMToForeignGSETester = new QVBoxLayout(); | |
58 | mainLayout = new QGridLayout(); |
|
63 | mainLayout = new QGridLayout(); | |
59 |
|
64 | |||
60 | layout_TMEcho->addWidget(label_serverTMEcho); |
|
65 | layout_TMEcho->addWidget(label_serverTMEcho); | |
61 | layout_TMEcho->addWidget(serverTMEchoDialogBox); |
|
66 | layout_TMEcho->addWidget(serverTMEchoDialogBox); | |
62 | layout_TMEcho->addWidget(label_serverTMEchoPort); |
|
67 | layout_TMEcho->addWidget(label_serverTMEchoPort); | |
63 | layout_TMEcho->addWidget(spinbox_serverTMEchoPort); |
|
68 | layout_TMEcho->addWidget(spinbox_serverTMEchoPort); | |
64 | layout_TMEcho->addWidget(button_openSocketEchoServer); |
|
69 | layout_TMEcho->addWidget(button_openSocketEchoServer); | |
65 | layout_TMEcho->addWidget(label_totalOfPackets); |
|
70 | layout_TMEcho->addWidget(label_totalOfPackets); | |
66 | layout_TMEcho->addWidget(label_totalOfBytes); |
|
71 | layout_TMEcho->addWidget(label_totalOfBytes); | |
67 | layout_TMEcho->addWidget(button_resetStatistics); |
|
72 | layout_TMEcho->addWidget(button_resetStatistics); | |
68 | groupbox_TMEcho->setLayout(layout_TMEcho); |
|
73 | groupbox_TMEcho->setLayout(layout_TMEcho); | |
69 |
|
74 | |||
70 | layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1); |
|
75 | layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1); | |
71 | layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1); |
|
76 | layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1); | |
72 | layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1); |
|
77 | layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1); | |
73 | layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1); |
|
78 | layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1); | |
74 | layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2); |
|
79 | layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2); | |
75 | layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2); |
|
80 | layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2); | |
76 | groupbox_ports->setLayout(layout_ports); |
|
81 | groupbox_ports->setLayout(layout_ports); | |
77 |
|
82 | |||
78 | layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement); |
|
83 | layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement); | |
79 | layout_TMToForeignGSETester->addWidget(button_TCRejection); |
|
84 | layout_TMToForeignGSETester->addWidget(button_TCRejection); | |
80 | layout_TMToForeignGSETester->addWidget(button_GSEHK); |
|
85 | layout_TMToForeignGSETester->addWidget(button_GSEHK); | |
81 | groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester); |
|
86 | groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester); | |
82 |
|
87 | |||
83 | mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1); |
|
88 | mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1); | |
84 | mainLayout->addWidget(groupbox_ports, 1, 0, 1, 1); |
|
89 | mainLayout->addWidget(groupbox_ports, 1, 0, 1, 1); | |
85 | mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 0, 1, 1); |
|
90 | mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 0, 1, 1); | |
86 | mainLayout->addWidget(console, 0, 1, 2, 2); |
|
91 | mainLayout->addWidget(console, 0, 1, 2, 2); | |
87 | mainLayout->addWidget(button_clearConsole, 3, 1, 1, 2); |
|
92 | mainLayout->addWidget(button_clearConsole, 3, 1, 1, 2); | |
88 |
|
93 | |||
89 | spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection")); |
|
94 | spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection")); | |
90 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); |
|
95 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); | |
91 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); |
|
96 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); | |
92 |
spwTabWidget->addTab(spwTabWidgetPage2, tr("W |
|
97 | spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM")); | |
|
98 | spwTabWidget->addTab(spwTabWidgetPage5, tr("WFRM BURST")); | |||
|
99 | spwTabWidget->addTab(spwTabWidgetPage6, tr("WFRM SBM1")); | |||
|
100 | spwTabWidget->addTab(spwTabWidgetPage7, tr("WFRM SBM2")); | |||
93 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); |
|
101 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); | |
94 |
|
102 | |||
95 | spwTabWidgetPage0->setLayout(mainLayout); |
|
103 | spwTabWidgetPage0->setLayout(mainLayout); | |
96 | spwTabWidgetPage1->setLayout(tmStatistics->layout()); |
|
104 | spwTabWidgetPage1->setLayout(tmStatistics->layout()); | |
97 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); |
|
105 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); | |
98 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); |
|
106 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); | |
99 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); |
|
107 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); | |
|
108 | spwTabWidgetPage5->setLayout(wfPageBurst->layout()); | |||
|
109 | spwTabWidgetPage6->setLayout(wfPageSBM1->layout()); | |||
|
110 | spwTabWidgetPage7->setLayout(wfPageSBM2->layout()); | |||
100 |
|
111 | |||
101 | layout_overallLayout->addWidget(spwTabWidget); |
|
112 | layout_overallLayout->addWidget(spwTabWidget); | |
102 |
|
113 | |||
103 | this->setLayout(layout_overallLayout); |
|
114 | this->setLayout(layout_overallLayout); | |
104 |
|
115 | |||
105 | connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole())); |
|
116 | connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole())); | |
106 | } |
|
117 | } | |
107 |
|
118 | |||
108 | QString MainWindowUI::getTMEchoServerAddress() |
|
119 | QString MainWindowUI::getTMEchoServerAddress() | |
109 | { |
|
120 | { | |
110 | return(serverTMEchoDialogBox->getIP()); |
|
121 | return(serverTMEchoDialogBox->getIP()); | |
111 | } |
|
122 | } | |
112 |
|
123 | |||
113 | void MainWindowUI::setTCTMServerAddressIP(QString address) |
|
124 | void MainWindowUI::setTCTMServerAddressIP(QString address) | |
114 | { |
|
125 | { | |
115 | label_currentTCTMServerIP->setText(address); |
|
126 | label_currentTCTMServerIP->setText(address); | |
116 | } |
|
127 | } | |
117 |
|
128 | |||
118 | int MainWindowUI::getTMPort() |
|
129 | int MainWindowUI::getTMPort() | |
119 | { |
|
130 | { | |
120 | return spinbox_TMServerPort->value(); |
|
131 | return spinbox_TMServerPort->value(); | |
121 | } |
|
132 | } | |
122 |
|
133 | |||
123 | int MainWindowUI::getTCPort() |
|
134 | int MainWindowUI::getTCPort() | |
124 | { |
|
135 | { | |
125 | return spinbox_TCServerPort->value(); |
|
136 | return spinbox_TCServerPort->value(); | |
126 | } |
|
137 | } | |
127 |
|
138 | |||
128 | void MainWindowUI::displayOnConsole(QString message) |
|
139 | void MainWindowUI::displayOnConsole(QString message) | |
129 | { |
|
140 | { | |
130 | console->append(message); |
|
141 | console->append(message); | |
131 | } |
|
142 | } | |
132 |
|
143 | |||
133 | void MainWindowUI::clearConsole() |
|
144 | void MainWindowUI::clearConsole() | |
134 | { |
|
145 | { | |
135 | console->clear(); |
|
146 | console->clear(); | |
136 | } |
|
147 | } | |
137 |
|
148 | |||
138 | void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes) |
|
149 | void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes) | |
139 | { |
|
150 | { | |
140 | label_totalOfBytes->setText( |
|
151 | label_totalOfBytes->setText( | |
141 | "Received Bytes: " |
|
152 | "Received Bytes: " | |
142 | + QString::number(nbBytes)); |
|
153 | + QString::number(nbBytes)); | |
143 | } |
|
154 | } | |
144 |
|
155 | |||
145 | void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets) |
|
156 | void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets) | |
146 | { |
|
157 | { | |
147 | label_totalOfPackets->setText( |
|
158 | label_totalOfPackets->setText( | |
148 | "Received Packets: " |
|
159 | "Received Packets: " | |
149 | + QString::number(nbPackets)); |
|
160 | + QString::number(nbPackets)); | |
150 | } |
|
161 | } | |
151 |
|
162 |
@@ -1,96 +1,101 | |||||
1 | #ifndef MAINWINDOWUI_H |
|
1 | #ifndef MAINWINDOWUI_H | |
2 | #define MAINWINDOWUI_H |
|
2 | #define MAINWINDOWUI_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <qipdialogbox.h> |
|
5 | #include <qipdialogbox.h> | |
6 | #include <QLabel> |
|
6 | #include <QLabel> | |
7 | #include <QPushButton> |
|
7 | #include <QPushButton> | |
8 | #include <QGridLayout> |
|
8 | #include <QGridLayout> | |
9 | #include <QVBoxLayout> |
|
9 | #include <QVBoxLayout> | |
10 | #include <QGroupBox> |
|
10 | #include <QGroupBox> | |
11 | #include <QSpinBox> |
|
11 | #include <QSpinBox> | |
12 | #include <QTextEdit> |
|
12 | #include <QTextEdit> | |
13 | #include <QTabWidget> |
|
13 | #include <QTabWidget> | |
14 |
|
14 | |||
15 | #include "tmstatistics.h" |
|
15 | #include "tmstatistics.h" | |
16 | #include "wfdisplay.h" |
|
16 | #include "wfdisplay.h" | |
17 | #include "hkdisplay.h" |
|
17 | #include "hkdisplay.h" | |
18 | #include "lfrspectrogram.h" |
|
18 | #include "lfrspectrogram.h" | |
19 |
|
19 | |||
20 | class MainWindowUI : public QWidget |
|
20 | class MainWindowUI : public QWidget | |
21 | { |
|
21 | { | |
22 | Q_OBJECT |
|
22 | Q_OBJECT | |
23 | public: |
|
23 | public: | |
24 | explicit MainWindowUI(QWidget *parent = 0); |
|
24 | explicit MainWindowUI(QWidget *parent = 0); | |
25 |
|
25 | |||
26 | void setTCTMServerAddressIP(QString address); |
|
26 | void setTCTMServerAddressIP(QString address); | |
27 | QString getTMEchoServerAddress(); |
|
27 | QString getTMEchoServerAddress(); | |
28 | int getTMPort(); |
|
28 | int getTMPort(); | |
29 | int getTCPort(); |
|
29 | int getTCPort(); | |
30 | void displayOnConsole(QString message); |
|
30 | void displayOnConsole(QString message); | |
31 |
|
31 | |||
32 | QTabWidget *spwTabWidget; |
|
32 | QTabWidget *spwTabWidget; | |
33 | QWidget* spwTabWidgetPage0; |
|
33 | QWidget* spwTabWidgetPage0; | |
34 | QWidget* spwTabWidgetPage1; |
|
34 | QWidget* spwTabWidgetPage1; | |
35 | QWidget* spwTabWidgetPage2; |
|
35 | QWidget* spwTabWidgetPage2; | |
36 | QWidget* spwTabWidgetPage3; |
|
36 | QWidget* spwTabWidgetPage3; | |
37 | QWidget* spwTabWidgetPage4; |
|
37 | QWidget* spwTabWidgetPage4; | |
38 | QWidget* spwTabWidgetPage5; |
|
38 | QWidget* spwTabWidgetPage5; | |
|
39 | QWidget* spwTabWidgetPage6; | |||
|
40 | QWidget* spwTabWidgetPage7; | |||
39 |
|
41 | |||
40 | TMStatistics* tmStatistics; |
|
42 | TMStatistics* tmStatistics; | |
41 |
|
43 | |||
42 | WFDisplay* wfDisplay; |
|
44 | WFDisplay* wfDisplay; | |
|
45 | WFPage* wfPageBurst; | |||
|
46 | WFPage* wfPageSBM1; | |||
|
47 | WFPage* wfPageSBM2; | |||
43 | HKDisplay* hkDisplay; |
|
48 | HKDisplay* hkDisplay; | |
44 | LFRSpectrogram* lfrSpectrogam; |
|
49 | LFRSpectrogram* lfrSpectrogam; | |
45 |
|
50 | |||
46 | QWidget* widget_spectrogram; |
|
51 | QWidget* widget_spectrogram; | |
47 |
|
52 | |||
48 | QPushButton *button_openServerTCTM; |
|
53 | QPushButton *button_openServerTCTM; | |
49 | QPushButton *button_testServerTCTM; |
|
54 | QPushButton *button_testServerTCTM; | |
50 | QPushButton *button_openSocketEchoServer; |
|
55 | QPushButton *button_openSocketEchoServer; | |
51 | QPushButton *button_TCAcknowledgement; |
|
56 | QPushButton *button_TCAcknowledgement; | |
52 | QPushButton *button_TCRejection; |
|
57 | QPushButton *button_TCRejection; | |
53 | QPushButton *button_GSEHK; |
|
58 | QPushButton *button_GSEHK; | |
54 | QPushButton *button_clearConsole; |
|
59 | QPushButton *button_clearConsole; | |
55 | QPushButton *button_resetStatistics; |
|
60 | QPushButton *button_resetStatistics; | |
56 |
|
61 | |||
57 | QIPDialogBox *serverTMEchoDialogBox; |
|
62 | QIPDialogBox *serverTMEchoDialogBox; | |
58 |
|
63 | |||
59 | QSpinBox *spinbox_serverTMEchoPort; |
|
64 | QSpinBox *spinbox_serverTMEchoPort; | |
60 |
|
65 | |||
61 | signals: |
|
66 | signals: | |
62 |
|
67 | |||
63 | public slots: |
|
68 | public slots: | |
64 | void clearConsole(); |
|
69 | void clearConsole(); | |
65 | void totalOfBytesHasChanged(unsigned int nbBytes); |
|
70 | void totalOfBytesHasChanged(unsigned int nbBytes); | |
66 | void totalOfPacketsHasChanged(unsigned int nbPackets); |
|
71 | void totalOfPacketsHasChanged(unsigned int nbPackets); | |
67 |
|
72 | |||
68 | private: |
|
73 | private: | |
69 | QLabel *label_serverTMEcho; |
|
74 | QLabel *label_serverTMEcho; | |
70 | QLabel *label_serverTMEchoPort; |
|
75 | QLabel *label_serverTMEchoPort; | |
71 | QLabel *label_TMServerPort; |
|
76 | QLabel *label_TMServerPort; | |
72 | QLabel *label_TCServerPort; |
|
77 | QLabel *label_TCServerPort; | |
73 | QLabel *label_currentTCTMServer; |
|
78 | QLabel *label_currentTCTMServer; | |
74 | QLabel *label_currentTCTMServerIP; |
|
79 | QLabel *label_currentTCTMServerIP; | |
75 | QLabel *label_totalOfBytes; |
|
80 | QLabel *label_totalOfBytes; | |
76 | QLabel *label_totalOfPackets; |
|
81 | QLabel *label_totalOfPackets; | |
77 |
|
82 | |||
78 | QTextEdit *console; |
|
83 | QTextEdit *console; | |
79 |
|
84 | |||
80 | QSpinBox *spinbox_TMServerPort; |
|
85 | QSpinBox *spinbox_TMServerPort; | |
81 | QSpinBox *spinbox_TCServerPort; |
|
86 | QSpinBox *spinbox_TCServerPort; | |
82 |
|
87 | |||
83 | QGroupBox *groupbox_TMEcho; |
|
88 | QGroupBox *groupbox_TMEcho; | |
84 | QGroupBox *groupbox_ports; |
|
89 | QGroupBox *groupbox_ports; | |
85 | QGroupBox *groupbox_TMToForeignGSETester; |
|
90 | QGroupBox *groupbox_TMToForeignGSETester; | |
86 |
|
91 | |||
87 | QVBoxLayout *layout_TMEcho; |
|
92 | QVBoxLayout *layout_TMEcho; | |
88 | QVBoxLayout *layout_TMToForeignGSETester; |
|
93 | QVBoxLayout *layout_TMToForeignGSETester; | |
89 | QVBoxLayout *layout_overallLayout; |
|
94 | QVBoxLayout *layout_overallLayout; | |
90 |
|
95 | |||
91 | QGridLayout *mainLayout; |
|
96 | QGridLayout *mainLayout; | |
92 | QGridLayout *layout_ports; |
|
97 | QGridLayout *layout_ports; | |
93 |
|
98 | |||
94 | }; |
|
99 | }; | |
95 |
|
100 | |||
96 | #endif // MAINWINDOWUI_H |
|
101 | #endif // MAINWINDOWUI_H |
@@ -1,404 +1,406 | |||||
1 | /*------------------------------------------------------------------------------ |
|
1 | /*------------------------------------------------------------------------------ | |
2 | -- This file is a part of the LPPMON Software |
|
2 | -- This file is a part of the LPPMON Software | |
3 | -- Copyright (C) 2012, Laboratory of Plasma Physics - CNRS |
|
3 | -- Copyright (C) 2012, Laboratory of Plasma Physics - CNRS | |
4 | -- |
|
4 | -- | |
5 | -- This program is free software; you can redistribute it and/or modify |
|
5 | -- This program is free software; you can redistribute it and/or modify | |
6 | -- it under the terms of the GNU General Public License as published by |
|
6 | -- it under the terms of the GNU General Public License as published by | |
7 | -- the Free Software Foundation; either version 3 of the License, or |
|
7 | -- the Free Software Foundation; either version 3 of the License, or | |
8 | -- (at your option) any later version. |
|
8 | -- (at your option) any later version. | |
9 | -- |
|
9 | -- | |
10 | -- This program is distributed in the hope that it will be useful, |
|
10 | -- This program is distributed in the hope that it will be useful, | |
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | -- GNU General Public License for more details. |
|
13 | -- GNU General Public License for more details. | |
14 | -- |
|
14 | -- | |
15 | -- You should have received a copy of the GNU General Public License |
|
15 | -- You should have received a copy of the GNU General Public License | |
16 | -- along with this program; if not, write to the Free Software |
|
16 | -- along with this program; if not, write to the Free Software | |
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | -------------------------------------------------------------------------------*/ |
|
18 | -------------------------------------------------------------------------------*/ | |
19 | /*-- Author : Paul LEROY |
|
19 | /*-- Author : Paul LEROY | |
20 | -- Mail : paul.leroy@lpp.polytechnique.fr |
|
20 | -- Mail : paul.leroy@lpp.polytechnique.fr | |
21 | ----------------------------------------------------------------------------*/ |
|
21 | ----------------------------------------------------------------------------*/ | |
22 | #include "rmapplugin.h" |
|
22 | #include "rmapplugin.h" | |
23 | #include <QHostAddress> |
|
23 | #include <QHostAddress> | |
24 | #include <QIODevice> |
|
24 | #include <QIODevice> | |
25 | #include <QApplication> |
|
25 | #include <QApplication> | |
26 | #include <rmappluginpythonwrapper.h> |
|
26 | #include <rmappluginpythonwrapper.h> | |
27 | #include <PythonQt.h> |
|
27 | #include <PythonQt.h> | |
28 | #include <QTimer> |
|
28 | #include <QTimer> | |
29 |
|
29 | |||
30 | rmapplugin::rmapplugin(QWidget *parent) |
|
30 | rmapplugin::rmapplugin(QWidget *parent) | |
31 | :lppmonplugin(parent,false) |
|
31 | :lppmonplugin(parent,false) | |
32 | { |
|
32 | { | |
33 | this->UI = new rmapPluginUI(); |
|
33 | this->UI = new rmapPluginUI(); | |
34 | this->setWindowTitle(tr("RMAP and SPW Communication")); |
|
34 | this->setWindowTitle(tr("RMAP and SPW Communication")); | |
35 | this->setWidget((QWidget*)this->UI); |
|
35 | this->setWidget((QWidget*)this->UI); | |
36 |
|
36 | |||
37 | timeCode = 0; |
|
37 | timeCode = 0; | |
38 | time_COARSE = 0; |
|
38 | time_COARSE = 0; | |
39 | time_FINE = 0; |
|
39 | time_FINE = 0; | |
40 | currentBridge = selectedBridgeIsUnknown; |
|
40 | currentBridge = selectedBridgeIsUnknown; | |
41 |
|
41 | |||
42 | //************** |
|
42 | //************** | |
43 | //Python wrapper |
|
43 | //Python wrapper | |
44 | this->pyObject = new rmappluginPythonWrapper(); |
|
44 | this->pyObject = new rmappluginPythonWrapper(); | |
45 | connect(this->pyObject,SIGNAL(ReadSig(uint*,uint,uint)),this,SLOT(Read(uint*,uint,uint))); |
|
45 | connect(this->pyObject,SIGNAL(ReadSig(uint*,uint,uint)),this,SLOT(Read(uint*,uint,uint))); | |
46 | connect(this->pyObject,SIGNAL(WriteSig(uint*,uint,uint)),this,SLOT(Write(uint*,uint,uint))); |
|
46 | connect(this->pyObject,SIGNAL(WriteSig(uint*,uint,uint)),this,SLOT(Write(uint*,uint,uint))); | |
47 | //** |
|
47 | //** | |
48 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( WriteSPWSig(char*,uint,char,char) ), |
|
48 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( WriteSPWSig(char*,uint,char,char) ), | |
49 | this, SLOT( WriteSPW(char*,uint,char,char)), Qt::DirectConnection ); |
|
49 | this, SLOT( WriteSPW(char*,uint,char,char)), Qt::DirectConnection ); | |
50 | //** |
|
50 | //** | |
51 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateTargetAddress(unsigned char) ), |
|
51 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateTargetAddress(unsigned char) ), | |
52 | this, SLOT( setValueTargetAddress(unsigned char)) ); |
|
52 | this, SLOT( setValueTargetAddress(unsigned char)) ); | |
53 | //** |
|
53 | //** | |
54 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateSourceAddress(unsigned char) ), |
|
54 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateSourceAddress(unsigned char) ), | |
55 | this, SLOT( setValueSourceAddress(unsigned char)) ); |
|
55 | this, SLOT( setValueSourceAddress(unsigned char)) ); | |
56 | //** |
|
56 | //** | |
57 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(sendMessage(QString)), |
|
57 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(sendMessage(QString)), | |
58 | this, SLOT(displayOnConsole(QString)) ); |
|
58 | this, SLOT(displayOnConsole(QString)) ); | |
59 | //** |
|
59 | //** | |
60 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()), |
|
60 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()), | |
61 | this, SLOT(fetchPacket()), Qt::DirectConnection ); |
|
61 | this, SLOT(fetchPacket()), Qt::DirectConnection ); | |
62 | //*** |
|
62 | //*** | |
63 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)), |
|
63 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)), | |
64 | this, SLOT(nbPacketHasChanged(int))); |
|
64 | this, SLOT(nbPacketHasChanged(int))); | |
65 | //************** |
|
65 | //************** | |
66 |
|
66 | |||
67 | //************** |
|
67 | //************** | |
68 | // get a smart pointer to the __main__ module of the Python interpreter |
|
68 | // get a smart pointer to the __main__ module of the Python interpreter | |
69 | PythonQtObjectPtr context = PythonQt::self()->getMainModule(); |
|
69 | PythonQtObjectPtr context = PythonQt::self()->getMainModule(); | |
70 | // add a QObject as variable of name "BUTTON_rmapOpenCommunication" to the namespace of the __main__ module |
|
70 | // add a QObject as variable of name "BUTTON_rmapOpenCommunication" to the namespace of the __main__ module | |
71 | context.addObject("BUTTON_rmapOpenCommunication", UI->rmapOpenCommunicationButton); |
|
71 | context.addObject("BUTTON_rmapOpenCommunication", UI->rmapOpenCommunicationButton); | |
72 | context.addObject("BUTTON_rmapCloseCommunication", UI->rmapCloseCommunicationButton); |
|
72 | context.addObject("BUTTON_rmapCloseCommunication", UI->rmapCloseCommunicationButton); | |
73 | context.addObject("BUTTON_selectStarDundee", UI->selectStarDundee_BUTTON); |
|
73 | context.addObject("BUTTON_selectStarDundee", UI->selectStarDundee_BUTTON); | |
74 | context.addObject("BUTTON_selectGRESB", UI->selectGRESB_BUTTON); |
|
74 | context.addObject("BUTTON_selectGRESB", UI->selectGRESB_BUTTON); | |
75 | context.addObject("GRESB_Bridge", UI->gresbBridge); |
|
75 | context.addObject("GRESB_Bridge", UI->gresbBridge); | |
76 | //************** |
|
76 | //************** | |
77 |
|
77 | |||
78 | connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge())); |
|
78 | connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge())); | |
79 | connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge())); |
|
79 | connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge())); | |
80 | connect(this, SIGNAL( |
|
80 | connect(this, SIGNAL( | |
81 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
81 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) | |
82 | ), |
|
82 | ), | |
83 | this->UI->tmStatistics, SLOT( |
|
83 | this->UI->tmStatistics, SLOT( | |
84 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
84 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) | |
85 | )); |
|
85 | )); | |
86 |
|
86 | |||
87 | //****** |
|
87 | //****** | |
88 | // GRESB |
|
88 | // GRESB | |
89 | connect(this->UI->gresbBridge, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
89 | connect(this->UI->gresbBridge, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); | |
90 | connect(this->UI->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
90 | connect(this->UI->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); | |
91 | connect(this->UI->gresbBridge, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
91 | connect(this->UI->gresbBridge, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); | |
92 | connect(this->UI->gresbBridge, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
92 | connect(this->UI->gresbBridge, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); | |
93 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->gresbBridge, SLOT(ccsdsPacketIsProcessed())); |
|
93 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->gresbBridge, SLOT(ccsdsPacketIsProcessed())); | |
94 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
94 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
95 | this->UI->gresbBridge, SLOT(targetHasChanged(int))); |
|
95 | this->UI->gresbBridge, SLOT(targetHasChanged(int))); | |
96 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
96 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
97 | this->UI->gresbBridge, SLOT(sourceHasChanged(int))); |
|
97 | this->UI->gresbBridge, SLOT(sourceHasChanged(int))); | |
98 | connect(this->UI->gresbBridge, SIGNAL(sendPacket(TMPacketToRead*)), |
|
98 | connect(this->UI->gresbBridge, SIGNAL(sendPacket(TMPacketToRead*)), | |
99 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
99 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); | |
100 |
|
100 | |||
101 | //************ |
|
101 | //************ | |
102 | // Star Dundee |
|
102 | // Star Dundee | |
103 | connect(this->UI->starDundee, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
103 | connect(this->UI->starDundee, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); | |
104 | connect(this->UI->starDundee, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
104 | connect(this->UI->starDundee, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); | |
105 | connect(this->UI->starDundee, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
105 | connect(this->UI->starDundee, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); | |
106 | connect(this->UI->starDundee, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
106 | connect(this->UI->starDundee, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); | |
107 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->starDundee, SLOT(ccsdsPacketIsProcessed())); |
|
107 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->starDundee, SLOT(ccsdsPacketIsProcessed())); | |
108 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
108 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
109 | this->UI->starDundee, SLOT(targetHasChanged(int))); |
|
109 | this->UI->starDundee, SLOT(targetHasChanged(int))); | |
110 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
110 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), | |
111 | this->UI->starDundee, SLOT(sourceHasChanged(int))); |
|
111 | this->UI->starDundee, SLOT(sourceHasChanged(int))); | |
112 | connect(this->UI->starDundee, SIGNAL(sendPacket(TMPacketToRead*)), |
|
112 | connect(this->UI->starDundee, SIGNAL(sendPacket(TMPacketToRead*)), | |
113 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
113 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); | |
114 |
|
114 | |||
115 | connect(this->UI, SIGNAL(bridgeHasChanged(selectedBridge)), this, SLOT(bridgeHasChanged(selectedBridge))); |
|
115 | connect(this->UI, SIGNAL(bridgeHasChanged(selectedBridge)), this, SLOT(bridgeHasChanged(selectedBridge))); | |
116 |
|
116 | |||
117 | ((rmappluginPythonWrapper*)this->pyObject)->ccsdsPacketStore = &(this->generalCCSDSPacketStore); |
|
117 | ((rmappluginPythonWrapper*)this->pyObject)->ccsdsPacketStore = &(this->generalCCSDSPacketStore); | |
118 | } |
|
118 | } | |
119 |
|
119 | |||
120 | rmapplugin::~rmapplugin() |
|
120 | rmapplugin::~rmapplugin() | |
121 | { |
|
121 | { | |
122 | switch(currentBridge) |
|
122 | switch(currentBridge) | |
123 | { |
|
123 | { | |
124 | case selectedBridgeIsGRESB : |
|
124 | case selectedBridgeIsGRESB : | |
125 | if (RMAPSend_SOCKET->isOpen()) RMAPSend_SOCKET->disconnectFromHost(); |
|
125 | if (RMAPSend_SOCKET->isOpen()) RMAPSend_SOCKET->disconnectFromHost(); | |
126 | if (RMAPReceive_SOCKET->isOpen()) RMAPReceive_SOCKET->disconnectFromHost(); |
|
126 | if (RMAPReceive_SOCKET->isOpen()) RMAPReceive_SOCKET->disconnectFromHost(); | |
127 | if (GRESBStatusQuery_SOCKET->isOpen()) GRESBStatusQuery_SOCKET->disconnectFromHost(); |
|
127 | if (GRESBStatusQuery_SOCKET->isOpen()) GRESBStatusQuery_SOCKET->disconnectFromHost(); | |
128 | break; |
|
128 | break; | |
129 | case selectedBridgeIsStarDundee : |
|
129 | case selectedBridgeIsStarDundee : | |
130 | break; |
|
130 | break; | |
131 | default: |
|
131 | default: | |
132 | break; |
|
132 | break; | |
133 | } |
|
133 | } | |
134 | } |
|
134 | } | |
135 |
|
135 | |||
136 | unsigned int rmapplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) |
|
136 | unsigned int rmapplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) | |
137 | { |
|
137 | { | |
138 | unsigned int result; |
|
138 | unsigned int result; | |
139 | switch(currentBridge) |
|
139 | switch(currentBridge) | |
140 | { |
|
140 | { | |
141 | case selectedBridgeIsGRESB : |
|
141 | case selectedBridgeIsGRESB : | |
142 | result = UI->gresbBridge->Write(Value, count, address); |
|
142 | result = UI->gresbBridge->Write(Value, count, address); | |
143 | break; |
|
143 | break; | |
144 | case selectedBridgeIsStarDundee : |
|
144 | case selectedBridgeIsStarDundee : | |
145 | result = UI->starDundee->Write(Value, count, address); |
|
145 | result = UI->starDundee->Write(Value, count, address); | |
146 | break; |
|
146 | break; | |
147 | default: |
|
147 | default: | |
148 | result = 1; |
|
148 | result = 1; | |
149 | break; |
|
149 | break; | |
150 | } |
|
150 | } | |
151 | return result; |
|
151 | return result; | |
152 | } |
|
152 | } | |
153 |
|
153 | |||
154 | unsigned int rmapplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) |
|
154 | unsigned int rmapplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) | |
155 | { |
|
155 | { | |
156 | unsigned int result; |
|
156 | unsigned int result; | |
157 | switch(currentBridge) |
|
157 | switch(currentBridge) | |
158 | { |
|
158 | { | |
159 | case selectedBridgeIsGRESB : |
|
159 | case selectedBridgeIsGRESB : | |
160 | result = UI->gresbBridge->Read(Value, count, address); |
|
160 | result = UI->gresbBridge->Read(Value, count, address); | |
161 | break; |
|
161 | break; | |
162 | case selectedBridgeIsStarDundee : |
|
162 | case selectedBridgeIsStarDundee : | |
163 | result = UI->starDundee->Read(Value, count, address); |
|
163 | result = UI->starDundee->Read(Value, count, address); | |
164 | break; |
|
164 | break; | |
165 | default: |
|
165 | default: | |
166 | result = 1; |
|
166 | result = 1; | |
167 | break; |
|
167 | break; | |
168 | } |
|
168 | } | |
169 | return result; |
|
169 | return result; | |
170 | } |
|
170 | } | |
171 |
|
171 | |||
172 | //////// |
|
172 | //////// | |
173 | // SLOTS |
|
173 | // SLOTS | |
174 |
|
174 | |||
175 | unsigned int rmapplugin::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) // SLOT |
|
175 | unsigned int rmapplugin::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) // SLOT | |
176 | { |
|
176 | { | |
177 | unsigned int result; |
|
177 | unsigned int result; | |
178 | switch(currentBridge) |
|
178 | switch(currentBridge) | |
179 | { |
|
179 | { | |
180 | case selectedBridgeIsGRESB : |
|
180 | case selectedBridgeIsGRESB : | |
181 | result = UI->gresbBridge->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
181 | result = UI->gresbBridge->WriteSPW(Value, count, targetLogicalAddress, userApplication); | |
182 | break; |
|
182 | break; | |
183 | case selectedBridgeIsStarDundee : |
|
183 | case selectedBridgeIsStarDundee : | |
184 | result = UI->starDundee->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
184 | result = UI->starDundee->WriteSPW(Value, count, targetLogicalAddress, userApplication); | |
185 | break; |
|
185 | break; | |
186 | default: |
|
186 | default: | |
187 | result = 1; |
|
187 | result = 1; | |
188 | break; |
|
188 | break; | |
189 | } |
|
189 | } | |
190 | return result; |
|
190 | return result; | |
191 | } |
|
191 | } | |
192 |
|
192 | |||
193 | void rmapplugin::openBridge() |
|
193 | void rmapplugin::openBridge() | |
194 | { |
|
194 | { | |
195 | switch(currentBridge) |
|
195 | switch(currentBridge) | |
196 | { |
|
196 | { | |
197 | case selectedBridgeIsGRESB : |
|
197 | case selectedBridgeIsGRESB : | |
198 | this->UI->gresbBridge->Open(); |
|
198 | this->UI->gresbBridge->Open(); | |
199 | break; |
|
199 | break; | |
200 | case selectedBridgeIsStarDundee : |
|
200 | case selectedBridgeIsStarDundee : | |
201 | this->UI->starDundee->Open(); |
|
201 | this->UI->starDundee->Open(); | |
202 | break; |
|
202 | break; | |
203 | default: |
|
203 | default: | |
204 | break; |
|
204 | break; | |
205 | } |
|
205 | } | |
206 | } |
|
206 | } | |
207 |
|
207 | |||
208 | void rmapplugin::closeBridge() |
|
208 | void rmapplugin::closeBridge() | |
209 | { |
|
209 | { | |
210 | switch(currentBridge) |
|
210 | switch(currentBridge) | |
211 | { |
|
211 | { | |
212 | case selectedBridgeIsGRESB : |
|
212 | case selectedBridgeIsGRESB : | |
213 | this->UI->gresbBridge->Close(); |
|
213 | this->UI->gresbBridge->Close(); | |
214 | break; |
|
214 | break; | |
215 | case selectedBridgeIsStarDundee : |
|
215 | case selectedBridgeIsStarDundee : | |
216 | this->UI->starDundee->Close(); |
|
216 | this->UI->starDundee->Close(); | |
217 | break; |
|
217 | break; | |
218 | default: |
|
218 | default: | |
219 | break; |
|
219 | break; | |
220 | } |
|
220 | } | |
221 | } |
|
221 | } | |
222 |
|
222 | |||
223 | void rmapplugin::RMAP_write_reply_setText(QString text) |
|
223 | void rmapplugin::RMAP_write_reply_setText(QString text) | |
224 | { |
|
224 | { | |
225 | this->UI->RMAP_write_reply->setText(text); |
|
225 | this->UI->RMAP_write_reply->setText(text); | |
226 | } |
|
226 | } | |
227 |
|
227 | |||
228 | void rmapplugin::appendToLog(QString text) |
|
228 | void rmapplugin::appendToLog(QString text) | |
229 | { |
|
229 | { | |
230 | APPENDTOLOG(text); |
|
230 | APPENDTOLOG(text); | |
231 | } |
|
231 | } | |
232 |
|
232 | |||
233 | void rmapplugin::setValueTargetAddress(unsigned char newAddress) |
|
233 | void rmapplugin::setValueTargetAddress(unsigned char newAddress) | |
234 | { |
|
234 | { | |
235 | this->UI->rmapTargetLogicalAddressSpinBox->setValue(newAddress); |
|
235 | this->UI->rmapTargetLogicalAddressSpinBox->setValue(newAddress); | |
236 | } |
|
236 | } | |
237 |
|
237 | |||
238 | void rmapplugin::setValueSourceAddress(unsigned char newAddress) |
|
238 | void rmapplugin::setValueSourceAddress(unsigned char newAddress) | |
239 | { |
|
239 | { | |
240 | this->UI->rmapSourceLogicalAddressSpinBox->setValue(newAddress); |
|
240 | this->UI->rmapSourceLogicalAddressSpinBox->setValue(newAddress); | |
241 | } |
|
241 | } | |
242 |
|
242 | |||
243 | void rmapplugin::receivePacketFromBridge(TMPacketToRead *packet) |
|
243 | void rmapplugin::receivePacketFromBridge(TMPacketToRead *packet) | |
244 | { |
|
244 | { | |
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_v2(packet); |
|
248 | this->UI->tmEchoBridge->sendTMPacket_v2(packet); | |
249 | //this->UI->tmEchoBridge->sendTMPacket_alternative(packet); |
|
249 | //this->UI->tmEchoBridge->sendTMPacket_alternative(packet); | |
250 |
|
250 | |||
251 | this->generalCCSDSPacketStore.append(packet); |
|
251 | this->generalCCSDSPacketStore.append(packet); | |
252 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); |
|
252 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); | |
253 | processPacketStore(); |
|
253 | processPacketStore(); | |
254 | } |
|
254 | } | |
255 |
|
255 | |||
256 | void rmapplugin::preProcessPacket(TMPacketToRead *packet) |
|
256 | void rmapplugin::preProcessPacket(TMPacketToRead *packet) | |
257 | { |
|
257 | { | |
258 | unsigned char pid = 0; |
|
258 | unsigned char pid = 0; | |
259 | unsigned char cat = 0; |
|
259 | unsigned char cat = 0; | |
260 | unsigned char typ = 0; |
|
260 | unsigned char typ = 0; | |
261 | unsigned char sub = 0; |
|
261 | unsigned char sub = 0; | |
262 | unsigned int sid = 0; |
|
262 | unsigned int sid = 0; | |
263 | unsigned int length = 0; |
|
263 | unsigned int length = 0; | |
264 | unsigned int coarse_t = 0; |
|
264 | unsigned int coarse_t = 0; | |
265 | unsigned int fine_t = 0; |
|
265 | unsigned int fine_t = 0; | |
266 |
|
266 | |||
267 | //********************************* |
|
267 | //********************************* | |
268 | // get the parameters of the packet |
|
268 | // get the parameters of the packet | |
269 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); |
|
269 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); | |
270 | cat = packet->Value[5] & 0x0f; |
|
270 | cat = packet->Value[5] & 0x0f; | |
271 | typ = packet->Value[11]; // TYPE |
|
271 | typ = packet->Value[11]; // TYPE | |
272 | sub = packet->Value[12]; // SUBTYPE |
|
272 | sub = packet->Value[12]; // SUBTYPE | |
273 | sid = 0; |
|
273 | sid = 0; | |
274 | length = packet->Value[8] * 256 + packet->Value[9]; |
|
274 | length = packet->Value[8] * 256 + packet->Value[9]; | |
275 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) |
|
275 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) | |
276 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; |
|
276 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; | |
277 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; |
|
277 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; | |
278 |
|
278 | |||
279 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) |
|
279 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) | |
280 | sid = packet->Value[20] * 256 + packet->Value[21]; |
|
280 | sid = packet->Value[20] * 256 + packet->Value[21]; | |
|
281 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) | |||
|
282 | sid = 1; | |||
281 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) |
|
283 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) | |
282 | sid = packet->Value[20]; |
|
284 | sid = packet->Value[20]; | |
283 |
else if ((pid == 7 |
|
285 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) | |
284 |
sid = |
|
286 | sid = packet->Value[20]; | |
285 |
|
287 | |||
286 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
288 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); | |
287 |
|
289 | |||
288 |
|
290 | |||
289 | //**************************************** |
|
291 | //**************************************** | |
290 | // if the packet is a waveform, display it |
|
292 | // if the packet is a waveform, display it | |
291 | /*if ( (typ == 21) & (sub == 3) ) |
|
293 | /*if ( (typ == 21) & (sub == 3) ) | |
292 | { |
|
294 | { | |
293 | sid = packet->Value[20]; // SID |
|
295 | sid = packet->Value[20]; // SID | |
294 | switch (sid){ |
|
296 | switch (sid){ | |
295 | case SID_NORMAL_SWF_F0: |
|
297 | case SID_NORMAL_SWF_F0: | |
296 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); |
|
298 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); | |
297 | break; |
|
299 | break; | |
298 | case SID_NORMAL_SWF_F1: |
|
300 | case SID_NORMAL_SWF_F1: | |
299 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); |
|
301 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); | |
300 | break; |
|
302 | break; | |
301 | case SID_NORMAL_SWF_F2: |
|
303 | case SID_NORMAL_SWF_F2: | |
302 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); |
|
304 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); | |
303 | break; |
|
305 | break; | |
304 | case SID_NORMAL_CWF_F3: |
|
306 | case SID_NORMAL_CWF_F3: | |
305 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); |
|
307 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); | |
306 | break; |
|
308 | break; | |
307 | } |
|
309 | } | |
308 | }*/ |
|
310 | }*/ | |
309 | } |
|
311 | } | |
310 |
|
312 | |||
311 | void rmapplugin::nbPacketHasChanged(int nb) |
|
313 | void rmapplugin::nbPacketHasChanged(int nb) | |
312 | { |
|
314 | { | |
313 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb)); |
|
315 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb)); | |
314 | } |
|
316 | } | |
315 |
|
317 | |||
316 | void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) |
|
318 | void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) | |
317 | { |
|
319 | { | |
318 | unsigned int i = 0; |
|
320 | unsigned int i = 0; | |
319 | unsigned int j = 0; |
|
321 | unsigned int j = 0; | |
320 | unsigned char *data; |
|
322 | unsigned char *data; | |
321 | unsigned char pkt_nr = 0; |
|
323 | unsigned char pkt_nr = 0; | |
322 | unsigned int blk_nr = 0; |
|
324 | unsigned int blk_nr = 0; | |
323 |
|
325 | |||
324 | pkt_nr = packet->Value[23]; // PKT_NR |
|
326 | pkt_nr = packet->Value[23]; // PKT_NR | |
325 | blk_nr = packet->Value[24] * 256 + packet->Value[25]; |
|
327 | blk_nr = packet->Value[24] * 256 + packet->Value[25]; | |
326 | data = &packet->Value[26]; // start of the first data block; |
|
328 | data = &packet->Value[26]; // start of the first data block; | |
327 | j = (pkt_nr-1) * 340; |
|
329 | j = (pkt_nr-1) * 340; | |
328 | for ( i=0; i<blk_nr; i++ ){ |
|
330 | for ( i=0; i<blk_nr; i++ ){ | |
329 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
331 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); | |
330 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
332 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); | |
331 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
333 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); | |
332 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
334 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); | |
333 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
335 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); | |
334 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
336 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); | |
335 | } |
|
337 | } | |
336 | if (pkt_nr == 7) |
|
338 | if (pkt_nr == 7) | |
337 | { |
|
339 | { | |
338 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); |
|
340 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); | |
339 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); |
|
341 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); | |
340 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); |
|
342 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); | |
341 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); |
|
343 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); | |
342 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); |
|
344 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); | |
343 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); |
|
345 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); | |
344 | } |
|
346 | } | |
345 | } |
|
347 | } | |
346 |
|
348 | |||
347 | ///////////////////// |
|
349 | ///////////////////// | |
348 | // INTERNAL FUNCTIONS |
|
350 | // INTERNAL FUNCTIONS | |
349 |
|
351 | |||
350 | void rmapplugin::processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size) // SLOT |
|
352 | void rmapplugin::processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size) // SLOT | |
351 | { |
|
353 | { | |
352 | QString message; |
|
354 | QString message; | |
353 | unsigned int fine_time_value = 0; |
|
355 | unsigned int fine_time_value = 0; | |
354 | fine_time_value = ((unsigned int) ccsdsPacket[7]<<24) |
|
356 | fine_time_value = ((unsigned int) ccsdsPacket[7]<<24) | |
355 | + ((unsigned int) ccsdsPacket[6]<<16) |
|
357 | + ((unsigned int) ccsdsPacket[6]<<16) | |
356 | + ((unsigned int) ccsdsPacket[5]<<8) |
|
358 | + ((unsigned int) ccsdsPacket[5]<<8) | |
357 | + ((unsigned int) ccsdsPacket[4]); |
|
359 | + ((unsigned int) ccsdsPacket[4]); | |
358 | message.append(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": "); |
|
360 | message.append(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": "); | |
359 | message.append("size " |
|
361 | message.append("size " | |
360 | + QString::number(size) |
|
362 | + QString::number(size) | |
361 | +" *** header " |
|
363 | +" *** header " | |
362 | + QString::number(ccsdsPacket[0], 16) |
|
364 | + QString::number(ccsdsPacket[0], 16) | |
363 | + " " |
|
365 | + " " | |
364 | + QString::number(ccsdsPacket[1], 16) |
|
366 | + QString::number(ccsdsPacket[1], 16) | |
365 | + " " |
|
367 | + " " | |
366 | + QString::number(ccsdsPacket[2], 16) |
|
368 | + QString::number(ccsdsPacket[2], 16) | |
367 | + " " |
|
369 | + " " | |
368 | + QString::number(ccsdsPacket[3], 16) |
|
370 | + QString::number(ccsdsPacket[3], 16) | |
369 | + " *** coarse time " |
|
371 | + " *** coarse time " | |
370 | + QString::number(fine_time_value)); |
|
372 | + QString::number(fine_time_value)); | |
371 | //+ QString::number(ccsdsPacket[4], 16) |
|
373 | //+ QString::number(ccsdsPacket[4], 16) | |
372 | //+" " |
|
374 | //+" " | |
373 | //+ QString::number(ccsdsPacket[5], 16) |
|
375 | //+ QString::number(ccsdsPacket[5], 16) | |
374 | //+" " |
|
376 | //+" " | |
375 | //+ QString::number(ccsdsPacket[6], 16) |
|
377 | //+ QString::number(ccsdsPacket[6], 16) | |
376 | //+" " |
|
378 | //+" " | |
377 | //+ QString::number(ccsdsPacket[7], 16)); |
|
379 | //+ QString::number(ccsdsPacket[7], 16)); | |
378 | displayOnConsole(message); |
|
380 | displayOnConsole(message); | |
379 | //((rmappluginPythonWrapper*)this->pyObject)->storeCCSDSPacket(ccsdsPacket, size); |
|
381 | //((rmappluginPythonWrapper*)this->pyObject)->storeCCSDSPacket(ccsdsPacket, size); | |
380 | emit ccsdsPacketIsProcessed(); |
|
382 | emit ccsdsPacketIsProcessed(); | |
381 | } |
|
383 | } | |
382 |
|
384 | |||
383 | void rmapplugin::processPacketStore() |
|
385 | void rmapplugin::processPacketStore() | |
384 | { |
|
386 | { | |
385 | ((rmappluginPythonWrapper*)this->pyObject)->processPacketStore(); |
|
387 | ((rmappluginPythonWrapper*)this->pyObject)->processPacketStore(); | |
386 | } |
|
388 | } | |
387 |
|
389 | |||
388 | int rmapplugin::fetchPacket() |
|
390 | int rmapplugin::fetchPacket() | |
389 | { |
|
391 | { | |
390 | int ret = 0; |
|
392 | int ret = 0; | |
391 |
|
393 | |||
392 | switch(currentBridge) |
|
394 | switch(currentBridge) | |
393 | { |
|
395 | { | |
394 | case selectedBridgeIsGRESB : |
|
396 | case selectedBridgeIsGRESB : | |
395 | break; |
|
397 | break; | |
396 | case selectedBridgeIsStarDundee : |
|
398 | case selectedBridgeIsStarDundee : | |
397 | ret = this->UI->starDundee->receiveSPWPacketLoop(); |
|
399 | ret = this->UI->starDundee->receiveSPWPacketLoop(); | |
398 | break; |
|
400 | break; | |
399 | default: |
|
401 | default: | |
400 | break; |
|
402 | break; | |
401 | } |
|
403 | } | |
402 |
|
404 | |||
403 | return ret; |
|
405 | return ret; | |
404 | } |
|
406 | } |
@@ -1,519 +1,540 | |||||
1 | #include "tmstatistics.h" |
|
1 | #include "tmstatistics.h" | |
2 | #include <QtGui> |
|
2 | #include <QtGui> | |
3 | #include <QFontInfo> |
|
3 | #include <QFontInfo> | |
4 |
|
4 | |||
5 | TMStatistics::TMStatistics(QWidget *parent) : |
|
5 | TMStatistics::TMStatistics(QWidget *parent) : | |
6 | QWidget(parent) |
|
6 | QWidget(parent) | |
7 | { |
|
7 | { | |
8 | // Create Fonts |
|
8 | // Create Fonts | |
9 | QFont font; |
|
9 | QFont font; | |
10 | font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light); |
|
10 | //font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light); | |
11 |
|
11 | |||
12 | label_UNKNOWN = new QLabel("UNKNOWN"); |
|
12 | label_UNKNOWN = new QLabel("UNKNOWN"); | |
13 | label_UNKNOWN_nb = new QLabel("-"); |
|
13 | label_UNKNOWN_nb = new QLabel("-"); | |
14 |
|
14 | |||
15 | mainLayout = new QGridLayout(); |
|
15 | mainLayout = new QGridLayout(); | |
16 | layout_stat = new QGridLayout(); // TM stastictics |
|
16 | layout_stat = new QGridLayout(); // TM stastictics | |
17 | layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_ |
|
17 | layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_ | |
18 | layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_ |
|
18 | layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_ | |
19 | layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_ |
|
19 | layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_ | |
20 | layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_ |
|
20 | layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_ | |
21 | layout_last = new QGridLayout(); // last TM description |
|
21 | layout_last = new QGridLayout(); // last TM description | |
22 |
|
22 | |||
23 | //*************** |
|
23 | //*************** | |
24 | // TM_LFR_TC_EXE_ |
|
24 | // TM_LFR_TC_EXE_ | |
25 | label_SUCC = new QLabel("SUCCESS"); |
|
25 | label_SUCC = new QLabel("SUCCESS"); | |
26 | label_INCO = new QLabel("INCONSISTENT"); |
|
26 | label_INCO = new QLabel("INCONSISTENT"); | |
27 | label_NOTE = new QLabel("NOT_EXECUTABLE"); |
|
27 | label_NOTE = new QLabel("NOT_EXECUTABLE"); | |
28 | label_NOTI = new QLabel("NOT_IMPLEMENTED"); |
|
28 | label_NOTI = new QLabel("NOT_IMPLEMENTED"); | |
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 | // |
|
32 | // | |
33 | label_SUCC_nb = new QLabel("-"); |
|
33 | label_SUCC_nb = new QLabel("-"); | |
34 | label_INCO_nb = new QLabel("-"); |
|
34 | label_INCO_nb = new QLabel("-"); | |
35 | label_NOTE_nb = new QLabel("-"); |
|
35 | label_NOTE_nb = new QLabel("-"); | |
36 | label_NOTI_nb = new QLabel("-"); |
|
36 | label_NOTI_nb = new QLabel("-"); | |
37 | label_ERRO_nb = new QLabel("-"); |
|
37 | label_ERRO_nb = new QLabel("-"); | |
38 | label_CORR_nb = new QLabel("-"); |
|
38 | label_CORR_nb = new QLabel("-"); | |
39 | label_HK_nb = new QLabel("-"); |
|
39 | label_HK_nb = new QLabel("-"); | |
40 |
|
40 | |||
41 | //*********************** |
|
41 | //*********************** | |
42 | // TM_LFR_SCIENCE_NORMAL_ |
|
42 | // TM_LFR_SCIENCE_NORMAL_ | |
43 | label_NORM_SWF_F0 = new QLabel("SWF_F0"); |
|
43 | label_NORM_SWF_F0 = new QLabel("SWF_F0"); | |
44 | label_NORM_SWF_F1 = new QLabel("SWF_F1"); |
|
44 | label_NORM_SWF_F1 = new QLabel("SWF_F1"); | |
45 | label_NORM_SWF_F2 = new QLabel("SWF_F2"); |
|
45 | label_NORM_SWF_F2 = new QLabel("SWF_F2"); | |
46 | label_NORM_CWF_F3 = new QLabel("CWF_F3"); |
|
46 | label_NORM_CWF_F3 = new QLabel("CWF_F3"); | |
47 | label_NORM_ASM_F0 = new QLabel("ASM_F0"); |
|
47 | label_NORM_ASM_F0 = new QLabel("ASM_F0"); | |
48 | label_NORM_ASM_F1 = new QLabel("ASM_F1"); |
|
48 | label_NORM_ASM_F1 = new QLabel("ASM_F1"); | |
49 | label_NORM_ASM_F2 = new QLabel("ASM_F2"); |
|
49 | label_NORM_ASM_F2 = new QLabel("ASM_F2"); | |
50 | label_NORM_BP1_F0 = new QLabel("BP1_F0"); |
|
50 | label_NORM_BP1_F0 = new QLabel("BP1_F0"); | |
51 | label_NORM_BP1_F1 = new QLabel("BP1_F1"); |
|
51 | label_NORM_BP1_F1 = new QLabel("BP1_F1"); | |
52 | label_NORM_BP1_F2 = new QLabel("BP1_F2"); |
|
52 | label_NORM_BP1_F2 = new QLabel("BP1_F2"); | |
53 | label_NORM_BP2_F0 = new QLabel("BP2_F0"); |
|
53 | label_NORM_BP2_F0 = new QLabel("BP2_F0"); | |
54 | label_NORM_BP2_F1 = new QLabel("BP2_F1"); |
|
54 | label_NORM_BP2_F1 = new QLabel("BP2_F1"); | |
55 | label_NORM_BP2_F2 = new QLabel("BP2_F2"); |
|
55 | label_NORM_BP2_F2 = new QLabel("BP2_F2"); | |
56 | // |
|
56 | // | |
57 | label_NORM_SWF_F0_nb = new QLabel("-"); |
|
57 | label_NORM_SWF_F0_nb = new QLabel("-"); | |
58 | label_NORM_SWF_F1_nb = new QLabel("-"); |
|
58 | label_NORM_SWF_F1_nb = new QLabel("-"); | |
59 | label_NORM_SWF_F2_nb = new QLabel("-"); |
|
59 | label_NORM_SWF_F2_nb = new QLabel("-"); | |
60 | label_NORM_CWF_F3_nb = new QLabel("-"); |
|
60 | label_NORM_CWF_F3_nb = new QLabel("-"); | |
61 | label_NORM_ASM_F0_nb = new QLabel("-"); |
|
61 | label_NORM_ASM_F0_nb = new QLabel("-"); | |
62 | label_NORM_ASM_F1_nb = new QLabel("-"); |
|
62 | label_NORM_ASM_F1_nb = new QLabel("-"); | |
63 | label_NORM_ASM_F2_nb = new QLabel("-"); |
|
63 | label_NORM_ASM_F2_nb = new QLabel("-"); | |
64 | label_NORM_BP1_F0_nb = new QLabel("-"); |
|
64 | label_NORM_BP1_F0_nb = new QLabel("-"); | |
65 | label_NORM_BP1_F1_nb = new QLabel("-"); |
|
65 | label_NORM_BP1_F1_nb = new QLabel("-"); | |
66 | label_NORM_BP1_F2_nb = new QLabel("-"); |
|
66 | label_NORM_BP1_F2_nb = new QLabel("-"); | |
67 | label_NORM_BP2_F0_nb = new QLabel("-"); |
|
67 | label_NORM_BP2_F0_nb = new QLabel("-"); | |
68 | label_NORM_BP2_F1_nb = new QLabel("-"); |
|
68 | label_NORM_BP2_F1_nb = new QLabel("-"); | |
69 | label_NORM_BP2_F2_nb = new QLabel("-"); |
|
69 | label_NORM_BP2_F2_nb = new QLabel("-"); | |
70 |
|
70 | |||
71 | //********************** |
|
71 | //********************** | |
72 | // TM_LFR_SCIENCE_BURST_ |
|
72 | // TM_LFR_SCIENCE_BURST_ | |
73 |
label_BURST_CWF_F2 = new QLabel("CWF_F |
|
73 | label_BURST_CWF_F2 = new QLabel("CWF_F2"); | |
74 | label_BURST_BP1_F0 = new QLabel("BP1_F0"); |
|
74 | label_BURST_BP1_F0 = new QLabel("BP1_F0"); | |
75 | label_BURST_BP2_F0 = new QLabel("BP2_F0"); |
|
75 | label_BURST_BP2_F0 = new QLabel("BP2_F0"); | |
76 | label_BURST_BP1_F1 = new QLabel("BP1_F1"); |
|
76 | label_BURST_BP1_F1 = new QLabel("BP1_F1"); | |
77 | label_BURST_BP2_F1 = new QLabel("BP2_F1"); |
|
77 | label_BURST_BP2_F1 = new QLabel("BP2_F1"); | |
78 | // |
|
78 | // | |
79 | label_BURST_CWF_F2_nb = new QLabel("-"); |
|
79 | label_BURST_CWF_F2_nb = new QLabel("-"); | |
80 | label_BURST_BP1_F0_nb = new QLabel("-"); |
|
80 | label_BURST_BP1_F0_nb = new QLabel("-"); | |
81 | label_BURST_BP2_F0_nb = new QLabel("-"); |
|
81 | label_BURST_BP2_F0_nb = new QLabel("-"); | |
82 | label_BURST_BP1_F1_nb = new QLabel("-"); |
|
82 | label_BURST_BP1_F1_nb = new QLabel("-"); | |
83 | label_BURST_BP2_F1_nb = new QLabel("-"); |
|
83 | label_BURST_BP2_F1_nb = new QLabel("-"); | |
84 |
|
84 | |||
85 | //********************* |
|
85 | //********************* | |
86 | // TM_LFR_SCIENCE_SBM1_ |
|
86 | // TM_LFR_SCIENCE_SBM1_ | |
87 | label_SBM1_CWF_F1 = new QLabel("CWF_F1"); |
|
87 | label_SBM1_CWF_F1 = new QLabel("CWF_F1"); | |
88 | label_SBM1_BP1_F0 = new QLabel("BP1_F0"); |
|
88 | label_SBM1_BP1_F0 = new QLabel("BP1_F0"); | |
89 | label_SBM1_BP2_F0 = new QLabel("BP2_F0"); |
|
89 | label_SBM1_BP2_F0 = new QLabel("BP2_F0"); | |
90 | // |
|
90 | // | |
91 | label_SBM1_CWF_F1_nb = new QLabel("-"); |
|
91 | label_SBM1_CWF_F1_nb = new QLabel("-"); | |
92 | label_SBM1_BP1_F0_nb = new QLabel("-"); |
|
92 | label_SBM1_BP1_F0_nb = new QLabel("-"); | |
93 | label_SBM1_BP2_F0_nb = new QLabel("-"); |
|
93 | label_SBM1_BP2_F0_nb = new QLabel("-"); | |
94 |
|
94 | |||
95 | //********************* |
|
95 | //********************* | |
96 | // TM_LFR_SCIENCE_SBM2_ |
|
96 | // TM_LFR_SCIENCE_SBM2_ | |
97 | label_SBM2_CWF_F2 = new QLabel("CWF_F2"); |
|
97 | label_SBM2_CWF_F2 = new QLabel("CWF_F2"); | |
98 | label_SBM2_BP1_F0 = new QLabel("BP1_F0"); |
|
98 | label_SBM2_BP1_F0 = new QLabel("BP1_F0"); | |
99 | label_SBM2_BP2_F0 = new QLabel("BP2_F0"); |
|
99 | label_SBM2_BP2_F0 = new QLabel("BP2_F0"); | |
100 | label_SBM2_BP1_F1 = new QLabel("BP1_F1"); |
|
100 | label_SBM2_BP1_F1 = new QLabel("BP1_F1"); | |
101 | label_SBM2_BP2_F1 = new QLabel("BP2_F1"); |
|
101 | label_SBM2_BP2_F1 = new QLabel("BP2_F1"); | |
102 | // |
|
102 | // | |
103 | label_SBM2_CWF_F2_nb = new QLabel("-"); |
|
103 | label_SBM2_CWF_F2_nb = new QLabel("-"); | |
104 | label_SBM2_BP1_F0_nb = new QLabel("-"); |
|
104 | label_SBM2_BP1_F0_nb = new QLabel("-"); | |
105 | label_SBM2_BP2_F0_nb = new QLabel("-"); |
|
105 | label_SBM2_BP2_F0_nb = new QLabel("-"); | |
106 | label_SBM2_BP1_F1_nb = new QLabel("-"); |
|
106 | label_SBM2_BP1_F1_nb = new QLabel("-"); | |
107 | label_SBM2_BP2_F1_nb = new QLabel("-"); |
|
107 | label_SBM2_BP2_F1_nb = new QLabel("-"); | |
108 |
|
108 | |||
109 | //******** |
|
109 | //******** | |
110 | // LAST TM |
|
110 | // LAST TM | |
111 | label_PID = new QLabel("PID"); |
|
111 | label_PID = new QLabel("PID"); | |
112 | label_CAT = new QLabel("CAT"); |
|
112 | label_CAT = new QLabel("CAT"); | |
113 | label_TYP = new QLabel("Type"); |
|
113 | label_TYP = new QLabel("Type"); | |
114 | label_SUB = new QLabel("Subtype"); |
|
114 | label_SUB = new QLabel("Subtype"); | |
115 | label_SID = new QLabel("SID"); |
|
115 | label_SID = new QLabel("SID"); | |
116 | label_SIZ = new QLabel("Length"); |
|
116 | label_SIZ = new QLabel("Length"); | |
117 | label_coarse_time = new QLabel("Coarse time: "); |
|
117 | label_coarse_time = new QLabel("Coarse time: "); | |
118 | label_fine_time = new QLabel("Fine time: "); |
|
118 | label_fine_time = new QLabel("Fine time: "); | |
119 | // |
|
119 | // | |
120 | label_PID_is = new QLabel("-"); |
|
120 | label_PID_is = new QLabel("-"); | |
121 | label_CAT_is = new QLabel("-"); |
|
121 | label_CAT_is = new QLabel("-"); | |
122 | label_TYP_is = new QLabel("-"); |
|
122 | label_TYP_is = new QLabel("-"); | |
123 | label_SUB_is = new QLabel("-"); |
|
123 | label_SUB_is = new QLabel("-"); | |
124 | label_SID_is = new QLabel("-"); |
|
124 | label_SID_is = new QLabel("-"); | |
125 | label_SIZ_is = new QLabel("-"); |
|
125 | label_SIZ_is = new QLabel("-"); | |
126 | label_coarse_time_val = new QLabel("-"); |
|
126 | label_coarse_time_val = new QLabel("-"); | |
127 | label_fine_time_val = new QLabel("-"); |
|
127 | label_fine_time_val = new QLabel("-"); | |
128 |
|
128 | |||
129 | // QPushButton |
|
129 | // QPushButton | |
130 | button_reset_stat = new QPushButton("reset stat"); |
|
130 | button_reset_stat = new QPushButton("reset stat"); | |
131 |
|
131 | |||
132 | //********** |
|
132 | //********** | |
133 | // QGroupBox |
|
133 | // QGroupBox | |
134 | this->setStyleSheet("QGroupBox {border: 1px solid black; }"); |
|
134 | this->setStyleSheet("QGroupBox {border: 1px solid black; }"); | |
135 |
|
135 | |||
136 | groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_"); |
|
136 | groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_"); | |
137 | groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_"); |
|
137 | groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_"); | |
138 | groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_"); |
|
138 | groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_"); | |
139 | groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_"); |
|
139 | groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_"); | |
140 | groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_"); |
|
140 | groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_"); | |
141 | groupbox_last = new QGroupBox("Last TM received"); |
|
141 | groupbox_last = new QGroupBox("Last TM received"); | |
142 |
|
142 | |||
143 | groupbox_stat->setFont(font); |
|
143 | groupbox_stat->setFont(font); | |
144 | groupbox_NORM->setFont(font); |
|
144 | groupbox_NORM->setFont(font); | |
145 | groupbox_BURST->setFont(font); |
|
145 | groupbox_BURST->setFont(font); | |
146 | groupbox_SBM1->setFont(font); |
|
146 | groupbox_SBM1->setFont(font); | |
147 | groupbox_SBM2->setFont(font); |
|
147 | groupbox_SBM2->setFont(font); | |
148 | groupbox_last->setFont(font); |
|
148 | groupbox_last->setFont(font); | |
149 |
|
149 | |||
150 | initConstants(); |
|
150 | initConstants(); | |
151 |
|
151 | |||
152 | buildMonitor_NORM(); |
|
152 | buildMonitor_NORM(); | |
153 | buildMonitor_BURST(); |
|
153 | buildMonitor_BURST(); | |
154 | buildMonitor_SBM1(); |
|
154 | buildMonitor_SBM1(); | |
155 | buildMonitor_SBM2(); |
|
155 | buildMonitor_SBM2(); | |
156 | buildMonitor(); |
|
156 | buildMonitor(); | |
157 |
|
157 | |||
158 | connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics())); |
|
158 | connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics())); | |
159 |
|
159 | |||
160 | } |
|
160 | } | |
161 |
|
161 | |||
162 | void TMStatistics::initConstants() |
|
162 | void TMStatistics::initConstants() | |
163 | { |
|
163 | { | |
164 | UNKNOWN_nb = 0; |
|
164 | UNKNOWN_nb = 0; | |
165 |
|
165 | |||
166 | // TM_LFR_SCIENCE_NORMAL_ |
|
166 | // TM_LFR_SCIENCE_NORMAL_ | |
167 | SUCC_nb = 0; |
|
167 | SUCC_nb = 0; | |
168 | INCO_nb = 0; |
|
168 | INCO_nb = 0; | |
169 | NOTE_nb = 0; |
|
169 | NOTE_nb = 0; | |
170 | NOTI_nb = 0; |
|
170 | NOTI_nb = 0; | |
171 | ERRO_nb = 0; |
|
171 | ERRO_nb = 0; | |
172 | CORR_nb = 0; |
|
172 | CORR_nb = 0; | |
173 | HK_nb = 0; |
|
173 | HK_nb = 0; | |
174 |
|
174 | |||
175 | // TM_LFR_SCIENCE_NORMAL_ |
|
175 | // TM_LFR_SCIENCE_NORMAL_ | |
176 | NORM_SWF_F0_nb = 0; |
|
176 | NORM_SWF_F0_nb = 0; | |
177 | NORM_SWF_F1_nb = 0; |
|
177 | NORM_SWF_F1_nb = 0; | |
178 | NORM_SWF_F2_nb = 0; |
|
178 | NORM_SWF_F2_nb = 0; | |
179 | NORM_CWF_F3_nb = 0; |
|
179 | NORM_CWF_F3_nb = 0; | |
180 | NORM_ASM_F0_nb = 0; |
|
180 | NORM_ASM_F0_nb = 0; | |
181 | NORM_ASM_F1_nb = 0; |
|
181 | NORM_ASM_F1_nb = 0; | |
182 | NORM_ASM_F2_nb = 0; |
|
182 | NORM_ASM_F2_nb = 0; | |
183 | NORM_BP1_F0_nb = 0; |
|
183 | NORM_BP1_F0_nb = 0; | |
184 | NORM_BP1_F1_nb = 0; |
|
184 | NORM_BP1_F1_nb = 0; | |
185 | NORM_BP1_F2_nb = 0; |
|
185 | NORM_BP1_F2_nb = 0; | |
186 | NORM_BP2_F0_nb = 0; |
|
186 | NORM_BP2_F0_nb = 0; | |
187 | NORM_BP2_F1_nb = 0; |
|
187 | NORM_BP2_F1_nb = 0; | |
188 | NORM_BP2_F2_nb = 0; |
|
188 | NORM_BP2_F2_nb = 0; | |
189 |
|
189 | |||
190 | BURST_CWF_F2_nb = 0; |
|
190 | BURST_CWF_F2_nb = 0; | |
191 | BURST_BP1_F0_nb = 0; |
|
191 | BURST_BP1_F0_nb = 0; | |
192 | BURST_BP2_F0_nb = 0; |
|
192 | BURST_BP2_F0_nb = 0; | |
193 | BURST_BP1_F1_nb = 0; |
|
193 | BURST_BP1_F1_nb = 0; | |
194 | BURST_BP2_F1_nb = 0; |
|
194 | BURST_BP2_F1_nb = 0; | |
195 |
SBM1_CWF_F |
|
195 | SBM1_CWF_F1_nb = 0; | |
196 | SBM1_BP1_F0_nb = 0; |
|
196 | SBM1_BP1_F0_nb = 0; | |
197 | SBM1_BP2_F0_nb = 0; |
|
197 | SBM1_BP2_F0_nb = 0; | |
198 | SBM2_CWF_F2_nb = 0; |
|
198 | SBM2_CWF_F2_nb = 0; | |
199 | SBM2_BP1_F0_nb = 0; |
|
199 | SBM2_BP1_F0_nb = 0; | |
200 | SBM2_BP2_F0_nb = 0; |
|
200 | SBM2_BP2_F0_nb = 0; | |
201 | SBM2_BP1_F1_nb = 0; |
|
201 | SBM2_BP1_F1_nb = 0; | |
202 | SBM2_BP2_F1_nb = 0; |
|
202 | SBM2_BP2_F1_nb = 0; | |
203 | } |
|
203 | } | |
204 |
|
204 | |||
205 | void TMStatistics::buildMonitor_NORM() |
|
205 | void TMStatistics::buildMonitor_NORM() | |
206 | { |
|
206 | { | |
207 | layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1); |
|
207 | layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1); | |
208 | layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1); |
|
208 | layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1); | |
209 | layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1); |
|
209 | layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1); | |
210 | layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1); |
|
210 | layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1); | |
211 | // |
|
211 | // | |
212 | layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1); |
|
212 | layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1); | |
213 | layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1); |
|
213 | layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1); | |
214 | layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1); |
|
214 | layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1); | |
215 | layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1); |
|
215 | layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1); | |
216 | // |
|
216 | // | |
217 | layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1); |
|
217 | layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1); | |
218 | layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1); |
|
218 | layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1); | |
219 | layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1); |
|
219 | layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1); | |
220 | // |
|
220 | // | |
221 | layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1); |
|
221 | layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1); | |
222 | layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1); |
|
222 | layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1); | |
223 | layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1); |
|
223 | layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1); | |
224 | // |
|
224 | // | |
225 | layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1); |
|
225 | layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1); | |
226 | layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1); |
|
226 | layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1); | |
227 | layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1); |
|
227 | layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1); | |
228 | layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1); |
|
228 | layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1); | |
229 | layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1); |
|
229 | layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1); | |
230 | layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1); |
|
230 | layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1); | |
231 | // |
|
231 | // | |
232 | layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1); |
|
232 | layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1); | |
233 | layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1); |
|
233 | layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1); | |
234 | layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1); |
|
234 | layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1); | |
235 | layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1); |
|
235 | layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1); | |
236 | layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1); |
|
236 | layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1); | |
237 | layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1); |
|
237 | layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1); | |
238 | } |
|
238 | } | |
239 |
|
239 | |||
240 | void TMStatistics::buildMonitor_BURST() |
|
240 | void TMStatistics::buildMonitor_BURST() | |
241 | { |
|
241 | { | |
242 | layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1); |
|
242 | layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1); | |
243 | layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1); |
|
243 | layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1); | |
244 | layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1); |
|
244 | layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1); | |
245 | layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1); |
|
245 | layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1); | |
246 | layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1); |
|
246 | layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1); | |
247 | // |
|
247 | // | |
248 | layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1); |
|
248 | layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1); | |
249 | layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1); |
|
249 | layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1); | |
250 | layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1); |
|
250 | layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1); | |
251 | layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1); |
|
251 | layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1); | |
252 | layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1); |
|
252 | layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1); | |
253 | // |
|
253 | // | |
254 | layout_BURST->setRowStretch(5, 1); |
|
254 | layout_BURST->setRowStretch(5, 1); | |
255 | layout_BURST->setColumnStretch(2,1); |
|
255 | layout_BURST->setColumnStretch(2,1); | |
256 | } |
|
256 | } | |
257 |
|
257 | |||
258 | void TMStatistics::buildMonitor_SBM1() |
|
258 | void TMStatistics::buildMonitor_SBM1() | |
259 | { |
|
259 | { | |
260 | layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1); |
|
260 | layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1); | |
261 | layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1); |
|
261 | layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1); | |
262 | layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1); |
|
262 | layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1); | |
263 | // |
|
263 | // | |
264 | layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1); |
|
264 | layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1); | |
265 | layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1); |
|
265 | layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1); | |
266 | layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1); |
|
266 | layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1); | |
267 | // |
|
267 | // | |
268 | layout_SBM1->setRowStretch(3, 1); |
|
268 | layout_SBM1->setRowStretch(3, 1); | |
269 | layout_SBM1->setColumnStretch(2,1); |
|
269 | layout_SBM1->setColumnStretch(2,1); | |
270 | } |
|
270 | } | |
271 |
|
271 | |||
272 | void TMStatistics::buildMonitor_SBM2() |
|
272 | void TMStatistics::buildMonitor_SBM2() | |
273 | { |
|
273 | { | |
274 | layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1); |
|
274 | layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1); | |
275 | layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1); |
|
275 | layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1); | |
276 | layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1); |
|
276 | layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1); | |
277 | layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1); |
|
277 | layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1); | |
278 | layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1); |
|
278 | layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1); | |
279 | // |
|
279 | // | |
280 | layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1); |
|
280 | layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1); | |
281 | layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1); |
|
281 | layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1); | |
282 | layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1); |
|
282 | layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1); | |
283 | layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1); |
|
283 | layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1); | |
284 | layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1); |
|
284 | layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1); | |
285 | // |
|
285 | // | |
286 | layout_SBM2->setRowStretch(5, 1); |
|
286 | layout_SBM2->setRowStretch(5, 1); | |
287 | layout_SBM2->setColumnStretch(2,1); |
|
287 | layout_SBM2->setColumnStretch(2,1); | |
288 | } |
|
288 | } | |
289 |
|
289 | |||
290 | void TMStatistics::buildMonitor() |
|
290 | void TMStatistics::buildMonitor() | |
291 | { |
|
291 | { | |
292 | //*************** |
|
292 | //*************** | |
293 | // TM_LFR_TC_EXE_ |
|
293 | // TM_LFR_TC_EXE_ | |
294 | layout_stat->addWidget(label_SUCC, 0, 0, 1, 1); |
|
294 | layout_stat->addWidget(label_SUCC, 0, 0, 1, 1); | |
295 | layout_stat->addWidget(label_INCO, 1, 0, 1, 1); |
|
295 | layout_stat->addWidget(label_INCO, 1, 0, 1, 1); | |
296 | layout_stat->addWidget(label_NOTE, 2, 0, 1, 1); |
|
296 | layout_stat->addWidget(label_NOTE, 2, 0, 1, 1); | |
297 | layout_stat->addWidget(label_NOTI, 3, 0, 1, 1); |
|
297 | layout_stat->addWidget(label_NOTI, 3, 0, 1, 1); | |
298 | layout_stat->addWidget(label_ERRO, 4, 0, 1, 1); |
|
298 | layout_stat->addWidget(label_ERRO, 4, 0, 1, 1); | |
299 | layout_stat->addWidget(label_CORR, 5, 0, 1, 1); |
|
299 | layout_stat->addWidget(label_CORR, 5, 0, 1, 1); | |
300 | layout_stat->addWidget(label_HK, 6, 0, 1, 1); |
|
300 | layout_stat->addWidget(label_HK, 6, 0, 1, 1); | |
301 | // |
|
301 | // | |
302 | layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1); |
|
302 | layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1); | |
303 | layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1); |
|
303 | layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1); | |
304 | layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1); |
|
304 | layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1); | |
305 | layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1); |
|
305 | layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1); | |
306 | layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1); |
|
306 | layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1); | |
307 | layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1); |
|
307 | layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1); | |
308 | layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1); |
|
308 | layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1); | |
309 |
|
309 | |||
310 | //******** |
|
310 | //******** | |
311 | // LAST TM |
|
311 | // LAST TM | |
312 | layout_last->addWidget(label_PID, 0, 0, 1, 1); |
|
312 | layout_last->addWidget(label_PID, 0, 0, 1, 1); | |
313 | layout_last->addWidget(label_CAT, 0, 1, 1, 1); |
|
313 | layout_last->addWidget(label_CAT, 0, 1, 1, 1); | |
314 | layout_last->addWidget(label_TYP, 0, 2, 1, 1); |
|
314 | layout_last->addWidget(label_TYP, 0, 2, 1, 1); | |
315 | layout_last->addWidget(label_SUB, 0, 3, 1, 1); |
|
315 | layout_last->addWidget(label_SUB, 0, 3, 1, 1); | |
316 | layout_last->addWidget(label_SID, 0, 4, 1, 1); |
|
316 | layout_last->addWidget(label_SID, 0, 4, 1, 1); | |
317 | layout_last->addWidget(label_SIZ, 0, 5, 1, 1); |
|
317 | layout_last->addWidget(label_SIZ, 0, 5, 1, 1); | |
318 | // |
|
318 | // | |
319 | layout_last->addWidget(label_PID_is, 1, 0, 1, 1); |
|
319 | layout_last->addWidget(label_PID_is, 1, 0, 1, 1); | |
320 | layout_last->addWidget(label_CAT_is, 1, 1, 1, 1); |
|
320 | layout_last->addWidget(label_CAT_is, 1, 1, 1, 1); | |
321 | layout_last->addWidget(label_TYP_is, 1, 2, 1, 1); |
|
321 | layout_last->addWidget(label_TYP_is, 1, 2, 1, 1); | |
322 | layout_last->addWidget(label_SUB_is, 1, 3, 1, 1); |
|
322 | layout_last->addWidget(label_SUB_is, 1, 3, 1, 1); | |
323 | layout_last->addWidget(label_SID_is, 1, 4, 1, 1); |
|
323 | layout_last->addWidget(label_SID_is, 1, 4, 1, 1); | |
324 | layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1); |
|
324 | layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1); | |
325 | // |
|
325 | // | |
326 | layout_last->addWidget(label_coarse_time, 2, 0, 1, 1); |
|
326 | layout_last->addWidget(label_coarse_time, 2, 0, 1, 1); | |
327 | layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1); |
|
327 | layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1); | |
328 | layout_last->addWidget(label_fine_time, 2, 2, 1, 1); |
|
328 | layout_last->addWidget(label_fine_time, 2, 2, 1, 1); | |
329 | layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1); |
|
329 | layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1); | |
330 | // |
|
330 | // | |
331 | layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1); |
|
331 | layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1); | |
332 | layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1); |
|
332 | layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1); | |
333 |
|
333 | |||
334 | //*********** |
|
334 | //*********** | |
335 | // groupboxes |
|
335 | // groupboxes | |
336 | groupbox_stat->setLayout(layout_stat); |
|
336 | groupbox_stat->setLayout(layout_stat); | |
337 | groupbox_NORM->setLayout(layout_NORM); |
|
337 | groupbox_NORM->setLayout(layout_NORM); | |
338 | groupbox_BURST->setLayout(layout_BURST); |
|
338 | groupbox_BURST->setLayout(layout_BURST); | |
339 | groupbox_SBM1->setLayout(layout_SBM1); |
|
339 | groupbox_SBM1->setLayout(layout_SBM1); | |
340 | groupbox_SBM2->setLayout(layout_SBM2); |
|
340 | groupbox_SBM2->setLayout(layout_SBM2); | |
341 | groupbox_last->setLayout(layout_last); |
|
341 | groupbox_last->setLayout(layout_last); | |
342 | // |
|
342 | // | |
343 | mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1); |
|
343 | mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1); | |
344 | mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1); |
|
344 | mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1); | |
345 | mainLayout->addWidget(groupbox_last, 2, 0, 1, 2); |
|
345 | mainLayout->addWidget(groupbox_last, 2, 0, 1, 2); | |
346 | mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1); |
|
346 | mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1); | |
347 | mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1); |
|
347 | mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1); | |
348 | mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1); |
|
348 | mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1); | |
349 | mainLayout->addWidget(button_reset_stat, 3, 0, 1, 2); |
|
349 | mainLayout->addWidget(button_reset_stat, 3, 0, 1, 2); | |
350 | mainLayout->setColumnStretch(3, 1); |
|
350 | mainLayout->setColumnStretch(3, 1); | |
351 | mainLayout->setRowStretch(4, 1); |
|
351 | mainLayout->setRowStretch(4, 1); | |
352 | // |
|
352 | // | |
353 | this->setLayout(mainLayout); |
|
353 | this->setLayout(mainLayout); | |
354 | } |
|
354 | } | |
355 |
|
355 | |||
356 | void TMStatistics::resetStatistics() |
|
356 | void TMStatistics::resetStatistics() | |
357 | { |
|
357 | { | |
358 | initConstants(); |
|
358 | initConstants(); | |
359 | // |
|
359 | // | |
360 | label_UNKNOWN_nb->setText("-"); |
|
360 | label_UNKNOWN_nb->setText("-"); | |
361 | label_SUCC_nb->setText("-"); |
|
361 | label_SUCC_nb->setText("-"); | |
362 | label_INCO_nb->setText("-"); |
|
362 | label_INCO_nb->setText("-"); | |
363 | label_NOTE_nb->setText("-"); |
|
363 | label_NOTE_nb->setText("-"); | |
364 | label_NOTI_nb->setText("-"); |
|
364 | label_NOTI_nb->setText("-"); | |
365 | label_ERRO_nb->setText("-"); |
|
365 | label_ERRO_nb->setText("-"); | |
366 | label_CORR_nb->setText("-"); |
|
366 | label_CORR_nb->setText("-"); | |
367 | label_HK_nb->setText("-"); |
|
367 | label_HK_nb->setText("-"); | |
368 | // |
|
368 | // | |
369 | label_NORM_SWF_F0_nb->setText("-"); |
|
369 | label_NORM_SWF_F0_nb->setText("-"); | |
370 | label_NORM_SWF_F1_nb->setText("-"); |
|
370 | label_NORM_SWF_F1_nb->setText("-"); | |
371 | label_NORM_SWF_F2_nb->setText("-"); |
|
371 | label_NORM_SWF_F2_nb->setText("-"); | |
372 | label_NORM_CWF_F3_nb->setText("-"); |
|
372 | label_NORM_CWF_F3_nb->setText("-"); | |
373 | // |
|
373 | // | |
|
374 | label_BURST_CWF_F2_nb->setText("-"); | |||
|
375 | // | |||
|
376 | label_SBM1_CWF_F1_nb->setText("-"); | |||
|
377 | // | |||
|
378 | label_SBM2_CWF_F2_nb->setText("-"); | |||
|
379 | // | |||
374 | label_PID_is->setText("-"); |
|
380 | label_PID_is->setText("-"); | |
375 | label_CAT_is->setText("-"); |
|
381 | label_CAT_is->setText("-"); | |
376 | label_TYP_is->setText("-"); |
|
382 | label_TYP_is->setText("-"); | |
377 | label_SUB_is->setText("-"); |
|
383 | label_SUB_is->setText("-"); | |
378 | label_SID_is->setText("-"); |
|
384 | label_SID_is->setText("-"); | |
379 | label_SIZ_is->setText("-"); |
|
385 | label_SIZ_is->setText("-"); | |
380 | // |
|
386 | // | |
381 | label_coarse_time_val->setText("-"); |
|
387 | label_coarse_time_val->setText("-"); | |
382 | label_fine_time_val->setText("-"); |
|
388 | label_fine_time_val->setText("-"); | |
383 | } |
|
389 | } | |
384 |
|
390 | |||
385 | void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat, |
|
391 | void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat, | |
386 | unsigned char typ, unsigned char sub, |
|
392 | unsigned char typ, unsigned char sub, | |
387 | unsigned int sid, unsigned int length, |
|
393 | unsigned int sid, unsigned int length, | |
388 | unsigned int coarse_t, unsigned int fine_t) |
|
394 | unsigned int coarse_t, unsigned int fine_t) | |
389 | { |
|
395 | { | |
390 | if (cat == 1) |
|
396 | if (cat == 1) | |
391 | { |
|
397 | { | |
392 | if (typ == 1) |
|
398 | if (typ == 1) | |
393 | { |
|
399 | { | |
394 | if (sub == 7) |
|
400 | if (sub == 7) | |
395 | { |
|
401 | { | |
396 | SUCC_nb = SUCC_nb + 1; |
|
402 | SUCC_nb = SUCC_nb + 1; | |
397 | label_SUCC_nb->setText(QString::number(SUCC_nb)); |
|
403 | label_SUCC_nb->setText(QString::number(SUCC_nb)); | |
398 | } |
|
404 | } | |
399 | else if (sub == 8) |
|
405 | else if (sub == 8) | |
400 | { |
|
406 | { | |
401 | if (sid == 5) |
|
407 | if (sid == 5) | |
402 | { |
|
408 | { | |
403 | INCO_nb = INCO_nb + 1; |
|
409 | INCO_nb = INCO_nb + 1; | |
404 | label_INCO_nb->setText(QString::number(INCO_nb)); |
|
410 | label_INCO_nb->setText(QString::number(INCO_nb)); | |
405 | } |
|
411 | } | |
406 | else if (sid == 40000) |
|
412 | else if (sid == 40000) | |
407 | { |
|
413 | { | |
408 | NOTE_nb = NOTE_nb + 1; |
|
414 | NOTE_nb = NOTE_nb + 1; | |
409 | label_NOTE_nb->setText(QString::number(NOTE_nb)); |
|
415 | label_NOTE_nb->setText(QString::number(NOTE_nb)); | |
410 | } |
|
416 | } | |
411 | else if (sid == 40002) |
|
417 | else if (sid == 40002) | |
412 | { |
|
418 | { | |
413 | NOTI_nb = NOTI_nb + 1; |
|
419 | NOTI_nb = NOTI_nb + 1; | |
414 | label_NOTI_nb->setText(QString::number(NOTI_nb)); |
|
420 | label_NOTI_nb->setText(QString::number(NOTI_nb)); | |
415 | } |
|
421 | } | |
416 | else if (sid == 40003) |
|
422 | else if (sid == 40003) | |
417 | { |
|
423 | { | |
418 | ERRO_nb = ERRO_nb + 1; |
|
424 | ERRO_nb = ERRO_nb + 1; | |
419 | label_ERRO_nb->setText(QString::number(ERRO_nb)); |
|
425 | label_ERRO_nb->setText(QString::number(ERRO_nb)); | |
420 | } |
|
426 | } | |
421 | else if (sid == 40005) |
|
427 | else if (sid == 40005) | |
422 | { |
|
428 | { | |
423 | CORR_nb = CORR_nb + 1; |
|
429 | CORR_nb = CORR_nb + 1; | |
424 | label_CORR_nb->setText(QString::number(CORR_nb)); |
|
430 | label_CORR_nb->setText(QString::number(CORR_nb)); | |
425 | } |
|
431 | } | |
426 | else incrementUnknown(); |
|
432 | else incrementUnknown(); | |
427 | } |
|
433 | } | |
428 | else incrementUnknown(); |
|
434 | else incrementUnknown(); | |
429 | } |
|
435 | } | |
430 | else |
|
436 | else | |
431 | incrementUnknown(); |
|
437 | incrementUnknown(); | |
432 | } |
|
438 | } | |
433 | else if (cat == 4) |
|
439 | else if (cat == 4) | |
434 | { |
|
440 | { | |
435 | if (typ == 3) |
|
441 | if (typ == 3) | |
436 | { |
|
442 | { | |
437 | if (sub == 25) |
|
443 | if (sub == 25) | |
438 | if (sid == 1) |
|
444 | if (sid == 1) | |
439 | { |
|
445 | { | |
440 | HK_nb = HK_nb + 1; |
|
446 | HK_nb = HK_nb + 1; | |
441 | label_HK_nb->setText(QString::number(HK_nb)); |
|
447 | label_HK_nb->setText(QString::number(HK_nb)); | |
442 | } |
|
448 | } | |
443 | else |
|
449 | else | |
444 | { |
|
450 | { | |
445 | incrementUnknown(); |
|
451 | incrementUnknown(); | |
446 | } |
|
452 | } | |
447 | else |
|
453 | else | |
448 | { |
|
454 | { | |
449 | incrementUnknown(); |
|
455 | incrementUnknown(); | |
450 | } |
|
456 | } | |
451 | } |
|
457 | } | |
452 | else |
|
458 | else | |
453 | { |
|
459 | { | |
454 | incrementUnknown(); |
|
460 | incrementUnknown(); | |
455 | } |
|
461 | } | |
456 | } |
|
462 | } | |
457 | else if (cat == 12) |
|
463 | else if (cat == 12) | |
458 | { |
|
464 | { | |
459 | if (typ == 21) |
|
465 | if (typ == 21) | |
460 | { |
|
466 | { | |
461 | if (sub == 3) |
|
467 | if (sub == 3) | |
462 | { |
|
468 | { | |
463 | if (sid == 1) |
|
469 | if (sid == 1) | |
464 | { |
|
470 | { | |
465 | NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1; |
|
471 | NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1; | |
466 | label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb)); |
|
472 | label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb)); | |
467 | } |
|
473 | } | |
|
474 | else if (sid == 2) | |||
|
475 | { | |||
|
476 | BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1; | |||
|
477 | label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb)); | |||
|
478 | } | |||
468 | else if (sid == 3) |
|
479 | else if (sid == 3) | |
469 | { |
|
480 | { | |
470 | NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1; |
|
481 | NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1; | |
471 | label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb)); |
|
482 | label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb)); | |
472 | } |
|
483 | } | |
473 | else if (sid == 4) |
|
484 | else if (sid == 4) | |
474 | { |
|
485 | { | |
475 | NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1; |
|
486 | NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1; | |
476 | label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb)); |
|
487 | label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb)); | |
477 | } |
|
488 | } | |
478 | else if (sid == 5) |
|
489 | else if (sid == 5) | |
479 | { |
|
490 | { | |
480 | NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1; |
|
491 | NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1; | |
481 | label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb)); |
|
492 | label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb)); | |
482 | } |
|
493 | } | |
|
494 | else if (sid == 24) | |||
|
495 | { | |||
|
496 | SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1; | |||
|
497 | label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb)); | |||
|
498 | } | |||
|
499 | else if (sid == 25) | |||
|
500 | { | |||
|
501 | SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1; | |||
|
502 | label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb)); | |||
|
503 | } | |||
483 | else |
|
504 | else | |
484 | { |
|
505 | { | |
485 | incrementUnknown(); |
|
506 | incrementUnknown(); | |
486 | } |
|
507 | } | |
487 | } |
|
508 | } | |
488 | } |
|
509 | } | |
489 | else |
|
510 | else | |
490 | { |
|
511 | { | |
491 | incrementUnknown(); |
|
512 | incrementUnknown(); | |
492 | } |
|
513 | } | |
493 | } |
|
514 | } | |
494 | else |
|
515 | else | |
495 | { |
|
516 | { | |
496 | incrementUnknown(); |
|
517 | incrementUnknown(); | |
497 | } |
|
518 | } | |
498 |
|
519 | |||
499 | label_PID_is->setText(QString::number(pid)); |
|
520 | label_PID_is->setText(QString::number(pid)); | |
500 | label_CAT_is->setText(QString::number(cat)); |
|
521 | label_CAT_is->setText(QString::number(cat)); | |
501 | label_TYP_is->setText(QString::number(typ)); |
|
522 | label_TYP_is->setText(QString::number(typ)); | |
502 | label_SUB_is->setText(QString::number(sub)); |
|
523 | label_SUB_is->setText(QString::number(sub)); | |
503 | label_SID_is->setText(QString::number(sid)); |
|
524 | label_SID_is->setText(QString::number(sid)); | |
504 | label_SIZ_is->setText(QString::number(length)); |
|
525 | label_SIZ_is->setText(QString::number(length)); | |
505 | label_coarse_time_val->setText(QString::number(coarse_t, 16)); |
|
526 | label_coarse_time_val->setText(QString::number(coarse_t, 16)); | |
506 | label_fine_time_val->setText(QString::number(fine_t, 16)); |
|
527 | label_fine_time_val->setText(QString::number(fine_t, 16)); | |
507 | } |
|
528 | } | |
508 |
|
529 | |||
509 | void TMStatistics::incrementUnknown() |
|
530 | void TMStatistics::incrementUnknown() | |
510 | { |
|
531 | { | |
511 | UNKNOWN_nb = UNKNOWN_nb + 1; |
|
532 | UNKNOWN_nb = UNKNOWN_nb + 1; | |
512 | label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb)); |
|
533 | label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb)); | |
513 | } |
|
534 | } | |
514 |
|
535 | |||
515 |
|
536 | |||
516 |
|
537 | |||
517 |
|
538 | |||
518 |
|
539 | |||
519 |
|
540 |
@@ -1,205 +1,205 | |||||
1 | #ifndef TMSTATISTICS_H |
|
1 | #ifndef TMSTATISTICS_H | |
2 | #define TMSTATISTICS_H |
|
2 | #define TMSTATISTICS_H | |
3 |
|
3 | |||
4 | #include <QWidget> |
|
4 | #include <QWidget> | |
5 | #include <QLabel> |
|
5 | #include <QLabel> | |
6 | #include <QPushButton> |
|
6 | #include <QPushButton> | |
7 | #include <QGridLayout> |
|
7 | #include <QGridLayout> | |
8 | #include <QVBoxLayout> |
|
8 | #include <QVBoxLayout> | |
9 | #include <QGroupBox> |
|
9 | #include <QGroupBox> | |
10 |
|
10 | |||
11 | #define STATISTICS_FONT_SIZE 9 |
|
11 | #define STATISTICS_FONT_SIZE 9 | |
12 |
|
12 | |||
13 | class TMStatistics : public QWidget |
|
13 | class TMStatistics : public QWidget | |
14 | { |
|
14 | { | |
15 | Q_OBJECT |
|
15 | Q_OBJECT | |
16 | public: |
|
16 | public: | |
17 |
|
17 | |||
18 | explicit TMStatistics(QWidget *parent = 0); |
|
18 | explicit TMStatistics(QWidget *parent = 0); | |
19 | void initConstants(); |
|
19 | void initConstants(); | |
20 | void buildMonitor_BURST(); |
|
20 | void buildMonitor_BURST(); | |
21 | void buildMonitor_SBM1(); |
|
21 | void buildMonitor_SBM1(); | |
22 | void buildMonitor_SBM2(); |
|
22 | void buildMonitor_SBM2(); | |
23 | void buildMonitor_NORM(); |
|
23 | void buildMonitor_NORM(); | |
24 | void buildMonitor(); |
|
24 | void buildMonitor(); | |
25 | void incrementUnknown(); |
|
25 | void incrementUnknown(); | |
26 |
|
26 | |||
27 | unsigned int UNKNOWN_nb; |
|
27 | unsigned int UNKNOWN_nb; | |
28 | unsigned int SUCC_nb; |
|
28 | unsigned int SUCC_nb; | |
29 | unsigned int INCO_nb; |
|
29 | unsigned int INCO_nb; | |
30 | unsigned int NOTE_nb; |
|
30 | unsigned int NOTE_nb; | |
31 | unsigned int NOTI_nb; |
|
31 | unsigned int NOTI_nb; | |
32 | unsigned int ERRO_nb; |
|
32 | unsigned int ERRO_nb; | |
33 | unsigned int CORR_nb; |
|
33 | unsigned int CORR_nb; | |
34 | unsigned int HK_nb; |
|
34 | unsigned int HK_nb; | |
35 | unsigned int NORM_SWF_F0_nb; |
|
35 | unsigned int NORM_SWF_F0_nb; | |
36 | unsigned int NORM_SWF_F1_nb; |
|
36 | unsigned int NORM_SWF_F1_nb; | |
37 | unsigned int NORM_SWF_F2_nb; |
|
37 | unsigned int NORM_SWF_F2_nb; | |
38 | unsigned int NORM_CWF_F3_nb; |
|
38 | unsigned int NORM_CWF_F3_nb; | |
39 | unsigned int NORM_ASM_F0_nb; |
|
39 | unsigned int NORM_ASM_F0_nb; | |
40 | unsigned int NORM_ASM_F1_nb; |
|
40 | unsigned int NORM_ASM_F1_nb; | |
41 | unsigned int NORM_ASM_F2_nb; |
|
41 | unsigned int NORM_ASM_F2_nb; | |
42 | unsigned int NORM_BP1_F0_nb; |
|
42 | unsigned int NORM_BP1_F0_nb; | |
43 | unsigned int NORM_BP1_F1_nb; |
|
43 | unsigned int NORM_BP1_F1_nb; | |
44 | unsigned int NORM_BP1_F2_nb; |
|
44 | unsigned int NORM_BP1_F2_nb; | |
45 | unsigned int NORM_BP2_F0_nb; |
|
45 | unsigned int NORM_BP2_F0_nb; | |
46 | unsigned int NORM_BP2_F1_nb; |
|
46 | unsigned int NORM_BP2_F1_nb; | |
47 | unsigned int NORM_BP2_F2_nb; |
|
47 | unsigned int NORM_BP2_F2_nb; | |
48 | // |
|
48 | // | |
49 | unsigned int BURST_CWF_F2_nb; |
|
49 | unsigned int BURST_CWF_F2_nb; | |
50 | unsigned int BURST_BP1_F0_nb; |
|
50 | unsigned int BURST_BP1_F0_nb; | |
51 | unsigned int BURST_BP2_F0_nb; |
|
51 | unsigned int BURST_BP2_F0_nb; | |
52 | unsigned int BURST_BP1_F1_nb; |
|
52 | unsigned int BURST_BP1_F1_nb; | |
53 | unsigned int BURST_BP2_F1_nb; |
|
53 | unsigned int BURST_BP2_F1_nb; | |
54 |
unsigned int SBM1_CWF_F |
|
54 | unsigned int SBM1_CWF_F1_nb; | |
55 | unsigned int SBM1_BP1_F0_nb; |
|
55 | unsigned int SBM1_BP1_F0_nb; | |
56 | unsigned int SBM1_BP2_F0_nb; |
|
56 | unsigned int SBM1_BP2_F0_nb; | |
57 | unsigned int SBM2_CWF_F2_nb; |
|
57 | unsigned int SBM2_CWF_F2_nb; | |
58 | unsigned int SBM2_BP1_F0_nb; |
|
58 | unsigned int SBM2_BP1_F0_nb; | |
59 | unsigned int SBM2_BP2_F0_nb; |
|
59 | unsigned int SBM2_BP2_F0_nb; | |
60 | unsigned int SBM2_BP1_F1_nb; |
|
60 | unsigned int SBM2_BP1_F1_nb; | |
61 | unsigned int SBM2_BP2_F1_nb; |
|
61 | unsigned int SBM2_BP2_F1_nb; | |
62 |
|
62 | |||
63 | //******* |
|
63 | //******* | |
64 | // QLabel |
|
64 | // QLabel | |
65 | QLabel *label_UNKNOWN; |
|
65 | QLabel *label_UNKNOWN; | |
66 | QLabel *label_UNKNOWN_nb; |
|
66 | QLabel *label_UNKNOWN_nb; | |
67 |
|
67 | |||
68 | //*************** |
|
68 | //*************** | |
69 | // TM_LFR_TC_EXE_ |
|
69 | // TM_LFR_TC_EXE_ | |
70 | QLabel *label_SUCC; |
|
70 | QLabel *label_SUCC; | |
71 | QLabel *label_INCO; |
|
71 | QLabel *label_INCO; | |
72 | QLabel *label_NOTE; |
|
72 | QLabel *label_NOTE; | |
73 | QLabel *label_NOTI; |
|
73 | QLabel *label_NOTI; | |
74 | QLabel *label_ERRO; |
|
74 | QLabel *label_ERRO; | |
75 | QLabel *label_CORR; |
|
75 | QLabel *label_CORR; | |
76 | QLabel *label_HK; |
|
76 | QLabel *label_HK; | |
77 | // |
|
77 | // | |
78 | QLabel *label_SUCC_nb; |
|
78 | QLabel *label_SUCC_nb; | |
79 | QLabel *label_INCO_nb; |
|
79 | QLabel *label_INCO_nb; | |
80 | QLabel *label_NOTE_nb; |
|
80 | QLabel *label_NOTE_nb; | |
81 | QLabel *label_NOTI_nb; |
|
81 | QLabel *label_NOTI_nb; | |
82 | QLabel *label_ERRO_nb; |
|
82 | QLabel *label_ERRO_nb; | |
83 | QLabel *label_CORR_nb; |
|
83 | QLabel *label_CORR_nb; | |
84 | QLabel *label_HK_nb; |
|
84 | QLabel *label_HK_nb; | |
85 |
|
85 | |||
86 | //*********************** |
|
86 | //*********************** | |
87 | // TM_LFR_SCIENCE_NORMAL_ |
|
87 | // TM_LFR_SCIENCE_NORMAL_ | |
88 | QLabel *label_NORM_SWF_F0; |
|
88 | QLabel *label_NORM_SWF_F0; | |
89 | QLabel *label_NORM_SWF_F1; |
|
89 | QLabel *label_NORM_SWF_F1; | |
90 | QLabel *label_NORM_SWF_F2; |
|
90 | QLabel *label_NORM_SWF_F2; | |
91 | QLabel *label_NORM_CWF_F3; |
|
91 | QLabel *label_NORM_CWF_F3; | |
92 | QLabel *label_NORM_ASM_F0; |
|
92 | QLabel *label_NORM_ASM_F0; | |
93 | QLabel *label_NORM_ASM_F1; |
|
93 | QLabel *label_NORM_ASM_F1; | |
94 | QLabel *label_NORM_ASM_F2; |
|
94 | QLabel *label_NORM_ASM_F2; | |
95 | QLabel *label_NORM_BP1_F0; |
|
95 | QLabel *label_NORM_BP1_F0; | |
96 | QLabel *label_NORM_BP1_F1; |
|
96 | QLabel *label_NORM_BP1_F1; | |
97 | QLabel *label_NORM_BP1_F2; |
|
97 | QLabel *label_NORM_BP1_F2; | |
98 | QLabel *label_NORM_BP2_F0; |
|
98 | QLabel *label_NORM_BP2_F0; | |
99 | QLabel *label_NORM_BP2_F1; |
|
99 | QLabel *label_NORM_BP2_F1; | |
100 | QLabel *label_NORM_BP2_F2; |
|
100 | QLabel *label_NORM_BP2_F2; | |
101 | // |
|
101 | // | |
102 | QLabel *label_NORM_SWF_F0_nb; |
|
102 | QLabel *label_NORM_SWF_F0_nb; | |
103 | QLabel *label_NORM_SWF_F1_nb; |
|
103 | QLabel *label_NORM_SWF_F1_nb; | |
104 | QLabel *label_NORM_SWF_F2_nb; |
|
104 | QLabel *label_NORM_SWF_F2_nb; | |
105 | QLabel *label_NORM_CWF_F3_nb; |
|
105 | QLabel *label_NORM_CWF_F3_nb; | |
106 | QLabel *label_NORM_ASM_F0_nb; |
|
106 | QLabel *label_NORM_ASM_F0_nb; | |
107 | QLabel *label_NORM_ASM_F1_nb; |
|
107 | QLabel *label_NORM_ASM_F1_nb; | |
108 | QLabel *label_NORM_ASM_F2_nb; |
|
108 | QLabel *label_NORM_ASM_F2_nb; | |
109 | QLabel *label_NORM_BP1_F0_nb; |
|
109 | QLabel *label_NORM_BP1_F0_nb; | |
110 | QLabel *label_NORM_BP1_F1_nb; |
|
110 | QLabel *label_NORM_BP1_F1_nb; | |
111 | QLabel *label_NORM_BP1_F2_nb; |
|
111 | QLabel *label_NORM_BP1_F2_nb; | |
112 | QLabel *label_NORM_BP2_F0_nb; |
|
112 | QLabel *label_NORM_BP2_F0_nb; | |
113 | QLabel *label_NORM_BP2_F1_nb; |
|
113 | QLabel *label_NORM_BP2_F1_nb; | |
114 | QLabel *label_NORM_BP2_F2_nb; |
|
114 | QLabel *label_NORM_BP2_F2_nb; | |
115 |
|
115 | |||
116 | //********************** |
|
116 | //********************** | |
117 | // TM_LFR_SCIENCE_BURST_ |
|
117 | // TM_LFR_SCIENCE_BURST_ | |
118 | QLabel *label_BURST_CWF_F2; |
|
118 | QLabel *label_BURST_CWF_F2; | |
119 | QLabel *label_BURST_BP1_F0; |
|
119 | QLabel *label_BURST_BP1_F0; | |
120 | QLabel *label_BURST_BP2_F0; |
|
120 | QLabel *label_BURST_BP2_F0; | |
121 | QLabel *label_BURST_BP1_F1; |
|
121 | QLabel *label_BURST_BP1_F1; | |
122 | QLabel *label_BURST_BP2_F1; |
|
122 | QLabel *label_BURST_BP2_F1; | |
123 | // |
|
123 | // | |
124 | QLabel *label_BURST_CWF_F2_nb; |
|
124 | QLabel *label_BURST_CWF_F2_nb; | |
125 | QLabel *label_BURST_BP1_F0_nb; |
|
125 | QLabel *label_BURST_BP1_F0_nb; | |
126 | QLabel *label_BURST_BP2_F0_nb; |
|
126 | QLabel *label_BURST_BP2_F0_nb; | |
127 | QLabel *label_BURST_BP1_F1_nb; |
|
127 | QLabel *label_BURST_BP1_F1_nb; | |
128 | QLabel *label_BURST_BP2_F1_nb; |
|
128 | QLabel *label_BURST_BP2_F1_nb; | |
129 |
|
129 | |||
130 | //********************* |
|
130 | //********************* | |
131 | // TM_LFR_SCIENCE_SBM1_ |
|
131 | // TM_LFR_SCIENCE_SBM1_ | |
132 | QLabel *label_SBM1_CWF_F1; |
|
132 | QLabel *label_SBM1_CWF_F1; | |
133 | QLabel *label_SBM1_BP1_F0; |
|
133 | QLabel *label_SBM1_BP1_F0; | |
134 | QLabel *label_SBM1_BP2_F0; |
|
134 | QLabel *label_SBM1_BP2_F0; | |
135 | // |
|
135 | // | |
136 | QLabel *label_SBM1_CWF_F1_nb; |
|
136 | QLabel *label_SBM1_CWF_F1_nb; | |
137 | QLabel *label_SBM1_BP1_F0_nb; |
|
137 | QLabel *label_SBM1_BP1_F0_nb; | |
138 | QLabel *label_SBM1_BP2_F0_nb; |
|
138 | QLabel *label_SBM1_BP2_F0_nb; | |
139 |
|
139 | |||
140 | //********************* |
|
140 | //********************* | |
141 | // TM_LFR_SCIENCE_SBM2_ |
|
141 | // TM_LFR_SCIENCE_SBM2_ | |
142 | QLabel *label_SBM2_CWF_F2; |
|
142 | QLabel *label_SBM2_CWF_F2; | |
143 | QLabel *label_SBM2_BP1_F0; |
|
143 | QLabel *label_SBM2_BP1_F0; | |
144 | QLabel *label_SBM2_BP2_F0; |
|
144 | QLabel *label_SBM2_BP2_F0; | |
145 | QLabel *label_SBM2_BP1_F1; |
|
145 | QLabel *label_SBM2_BP1_F1; | |
146 | QLabel *label_SBM2_BP2_F1; |
|
146 | QLabel *label_SBM2_BP2_F1; | |
147 | // |
|
147 | // | |
148 | QLabel *label_SBM2_CWF_F2_nb; |
|
148 | QLabel *label_SBM2_CWF_F2_nb; | |
149 | QLabel *label_SBM2_BP1_F0_nb; |
|
149 | QLabel *label_SBM2_BP1_F0_nb; | |
150 | QLabel *label_SBM2_BP2_F0_nb; |
|
150 | QLabel *label_SBM2_BP2_F0_nb; | |
151 | QLabel *label_SBM2_BP1_F1_nb; |
|
151 | QLabel *label_SBM2_BP1_F1_nb; | |
152 | QLabel *label_SBM2_BP2_F1_nb; |
|
152 | QLabel *label_SBM2_BP2_F1_nb; | |
153 |
|
153 | |||
154 | //******** |
|
154 | //******** | |
155 | // LAST TM |
|
155 | // LAST TM | |
156 | QLabel *label_PID; |
|
156 | QLabel *label_PID; | |
157 | QLabel *label_CAT; |
|
157 | QLabel *label_CAT; | |
158 | QLabel *label_TYP; |
|
158 | QLabel *label_TYP; | |
159 | QLabel *label_SUB; |
|
159 | QLabel *label_SUB; | |
160 | QLabel *label_SID; |
|
160 | QLabel *label_SID; | |
161 | QLabel *label_SIZ; |
|
161 | QLabel *label_SIZ; | |
162 | QLabel *label_coarse_time; |
|
162 | QLabel *label_coarse_time; | |
163 | QLabel *label_fine_time; |
|
163 | QLabel *label_fine_time; | |
164 | // |
|
164 | // | |
165 | QLabel *label_PID_is; |
|
165 | QLabel *label_PID_is; | |
166 | QLabel *label_CAT_is; |
|
166 | QLabel *label_CAT_is; | |
167 | QLabel *label_TYP_is; |
|
167 | QLabel *label_TYP_is; | |
168 | QLabel *label_SUB_is; |
|
168 | QLabel *label_SUB_is; | |
169 | QLabel *label_SID_is; |
|
169 | QLabel *label_SID_is; | |
170 | QLabel *label_SIZ_is; |
|
170 | QLabel *label_SIZ_is; | |
171 | QLabel *label_coarse_time_val; |
|
171 | QLabel *label_coarse_time_val; | |
172 | QLabel *label_fine_time_val; |
|
172 | QLabel *label_fine_time_val; | |
173 |
|
173 | |||
174 | // Layouts |
|
174 | // Layouts | |
175 | QGridLayout *mainLayout; |
|
175 | QGridLayout *mainLayout; | |
176 | QGridLayout *layout_stat; // TM stastictics |
|
176 | QGridLayout *layout_stat; // TM stastictics | |
177 | QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_ |
|
177 | QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_ | |
178 | QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_ |
|
178 | QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_ | |
179 | QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_ |
|
179 | QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_ | |
180 | QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_ |
|
180 | QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_ | |
181 | QGridLayout *layout_last; // last TM description |
|
181 | QGridLayout *layout_last; // last TM description | |
182 |
|
182 | |||
183 | // QPushButton |
|
183 | // QPushButton | |
184 | QPushButton *button_reset_stat; |
|
184 | QPushButton *button_reset_stat; | |
185 |
|
185 | |||
186 | // QGroupBox |
|
186 | // QGroupBox | |
187 | QGroupBox *groupbox_stat; |
|
187 | QGroupBox *groupbox_stat; | |
188 | QGroupBox *groupbox_NORM; |
|
188 | QGroupBox *groupbox_NORM; | |
189 | QGroupBox *groupbox_BURST; |
|
189 | QGroupBox *groupbox_BURST; | |
190 | QGroupBox *groupbox_SBM1; |
|
190 | QGroupBox *groupbox_SBM1; | |
191 | QGroupBox *groupbox_SBM2; |
|
191 | QGroupBox *groupbox_SBM2; | |
192 | QGroupBox *groupbox_last; |
|
192 | QGroupBox *groupbox_last; | |
193 |
|
193 | |||
194 | signals: |
|
194 | signals: | |
195 |
|
195 | |||
196 | public slots: |
|
196 | public slots: | |
197 | void resetStatistics(); |
|
197 | void resetStatistics(); | |
198 | void updateStatistics(unsigned char pid, unsigned char cat, |
|
198 | void updateStatistics(unsigned char pid, unsigned char cat, | |
199 | unsigned char typ, unsigned char sub, |
|
199 | unsigned char typ, unsigned char sub, | |
200 | unsigned int sid, unsigned int length, |
|
200 | unsigned int sid, unsigned int length, | |
201 | unsigned int coarse_t, unsigned int fine_t); |
|
201 | unsigned int coarse_t, unsigned int fine_t); | |
202 |
|
202 | |||
203 | }; |
|
203 | }; | |
204 |
|
204 | |||
205 | #endif // TMSTATISTICS_H |
|
205 | #endif // TMSTATISTICS_H |
@@ -1,308 +1,308 | |||||
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 |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jun 28 09:02:23 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 -o Makefile wfdisplay.pro | |
7 | ############################################################################# |
|
7 | ############################################################################# | |
8 |
|
8 | |||
9 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
10 |
|
10 | |||
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 -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 -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. -I/usr/include/lppmon/common -I. |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -I/usr/include/lppmon/common -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 | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lQtGui -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lQtGui -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
22 | QMAKE = /usr/bin/qmake-qt4 |
|
22 | QMAKE = /usr/bin/qmake-qt4 | |
23 | TAR = tar -cf |
|
23 | TAR = tar -cf | |
24 | COMPRESS = gzip -9f |
|
24 | COMPRESS = gzip -9f | |
25 | COPY = cp -f |
|
25 | COPY = cp -f | |
26 | SED = sed |
|
26 | SED = sed | |
27 | COPY_FILE = $(COPY) |
|
27 | COPY_FILE = $(COPY) | |
28 | COPY_DIR = $(COPY) -r |
|
28 | COPY_DIR = $(COPY) -r | |
29 | STRIP = |
|
29 | STRIP = | |
30 | INSTALL_FILE = install -m 644 -p |
|
30 | INSTALL_FILE = install -m 644 -p | |
31 | INSTALL_DIR = $(COPY_DIR) |
|
31 | INSTALL_DIR = $(COPY_DIR) | |
32 | INSTALL_PROGRAM = install -m 755 -p |
|
32 | INSTALL_PROGRAM = install -m 755 -p | |
33 | DEL_FILE = rm -f |
|
33 | DEL_FILE = rm -f | |
34 | SYMLINK = ln -f -s |
|
34 | SYMLINK = ln -f -s | |
35 | DEL_DIR = rmdir |
|
35 | DEL_DIR = rmdir | |
36 | MOVE = mv -f |
|
36 | MOVE = mv -f | |
37 | CHK_DIR_EXISTS= test -d |
|
37 | CHK_DIR_EXISTS= test -d | |
38 | MKDIR = mkdir -p |
|
38 | MKDIR = mkdir -p | |
39 |
|
39 | |||
40 | ####### Output directory |
|
40 | ####### Output directory | |
41 |
|
41 | |||
42 | OBJECTS_DIR = ./ |
|
42 | OBJECTS_DIR = ./ | |
43 |
|
43 | |||
44 | ####### Files |
|
44 | ####### Files | |
45 |
|
45 | |||
46 | SOURCES = wfdisplay.cpp \ |
|
46 | SOURCES = wfdisplay.cpp \ | |
47 | wfplot.cpp \ |
|
47 | wfplot.cpp \ | |
48 | wfpage.cpp moc_wfdisplay.cpp \ |
|
48 | wfpage.cpp moc_wfdisplay.cpp \ | |
49 | moc_wfplot.cpp \ |
|
49 | moc_wfplot.cpp \ | |
50 | moc_wfpage.cpp |
|
50 | moc_wfpage.cpp | |
51 | OBJECTS = wfdisplay.o \ |
|
51 | OBJECTS = wfdisplay.o \ | |
52 | wfplot.o \ |
|
52 | wfplot.o \ | |
53 | wfpage.o \ |
|
53 | wfpage.o \ | |
54 | moc_wfdisplay.o \ |
|
54 | moc_wfdisplay.o \ | |
55 | moc_wfplot.o \ |
|
55 | moc_wfplot.o \ | |
56 | moc_wfpage.o |
|
56 | moc_wfpage.o | |
57 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
57 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
58 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
58 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
59 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
59 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
60 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
60 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
61 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
61 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
62 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
62 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
63 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
63 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
64 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
64 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
65 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
65 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
66 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
66 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
67 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
67 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
68 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
68 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
69 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
69 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
70 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
70 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
71 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
71 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
72 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
72 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
73 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
73 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
74 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
74 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
75 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
75 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
76 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
76 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
77 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
77 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
78 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
78 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
79 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
79 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
80 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
80 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
81 | wfdisplay.pro |
|
81 | wfdisplay.pro | |
82 | QMAKE_TARGET = wfdisplay |
|
82 | QMAKE_TARGET = wfdisplay | |
83 | DESTDIR = |
|
83 | DESTDIR = | |
84 | TARGET = libwfdisplay.so.1.0.0 |
|
84 | TARGET = libwfdisplay.so.1.0.0 | |
85 | TARGETA = libwfdisplay.a |
|
85 | TARGETA = libwfdisplay.a | |
86 | TARGETD = libwfdisplay.so.1.0.0 |
|
86 | TARGETD = libwfdisplay.so.1.0.0 | |
87 | TARGET0 = libwfdisplay.so |
|
87 | TARGET0 = libwfdisplay.so | |
88 | TARGET1 = libwfdisplay.so.1 |
|
88 | TARGET1 = libwfdisplay.so.1 | |
89 | TARGET2 = libwfdisplay.so.1.0 |
|
89 | TARGET2 = libwfdisplay.so.1.0 | |
90 |
|
90 | |||
91 | first: all |
|
91 | first: all | |
92 | ####### Implicit rules |
|
92 | ####### Implicit rules | |
93 |
|
93 | |||
94 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
94 | .SUFFIXES: .o .c .cpp .cc .cxx .C | |
95 |
|
95 | |||
96 | .cpp.o: |
|
96 | .cpp.o: | |
97 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
97 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
98 |
|
98 | |||
99 | .cc.o: |
|
99 | .cc.o: | |
100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
101 |
|
101 | |||
102 | .cxx.o: |
|
102 | .cxx.o: | |
103 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
103 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
104 |
|
104 | |||
105 | .C.o: |
|
105 | .C.o: | |
106 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
106 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | |
107 |
|
107 | |||
108 | .c.o: |
|
108 | .c.o: | |
109 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
109 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | |
110 |
|
110 | |||
111 | ####### Build rules |
|
111 | ####### Build rules | |
112 |
|
112 | |||
113 | all: Makefile $(TARGET) |
|
113 | all: Makefile $(TARGET) | |
114 |
|
114 | |||
115 | $(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) |
|
115 | $(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) | |
116 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) |
|
116 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) | |
117 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) |
|
117 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) | |
118 | -ln -s $(TARGET) $(TARGET0) |
|
118 | -ln -s $(TARGET) $(TARGET0) | |
119 | -ln -s $(TARGET) $(TARGET1) |
|
119 | -ln -s $(TARGET) $(TARGET1) | |
120 | -ln -s $(TARGET) $(TARGET2) |
|
120 | -ln -s $(TARGET) $(TARGET2) | |
121 |
|
121 | |||
122 |
|
122 | |||
123 |
|
123 | |||
124 | staticlib: $(TARGETA) |
|
124 | staticlib: $(TARGETA) | |
125 |
|
125 | |||
126 | $(TARGETA): $(OBJECTS) $(OBJCOMP) |
|
126 | $(TARGETA): $(OBJECTS) $(OBJCOMP) | |
127 | -$(DEL_FILE) $(TARGETA) |
|
127 | -$(DEL_FILE) $(TARGETA) | |
128 | $(AR) $(TARGETA) $(OBJECTS) |
|
128 | $(AR) $(TARGETA) $(OBJECTS) | |
129 |
|
129 | |||
130 | Makefile: wfdisplay.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
130 | Makefile: wfdisplay.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
131 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
131 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
132 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
132 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ | |
133 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
133 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ | |
134 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
134 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ | |
135 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
135 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ | |
136 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
136 | /usr/lib64/qt4/mkspecs/qconfig.pri \ | |
137 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
137 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ | |
138 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
138 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ | |
139 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
139 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
140 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
140 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
141 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
141 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
142 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
142 | /usr/lib64/qt4/mkspecs/features/release.prf \ | |
143 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
143 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
144 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
144 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
145 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
145 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
146 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
146 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
147 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
147 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ | |
148 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
148 | /usr/lib64/qt4/mkspecs/features/moc.prf \ | |
149 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
149 | /usr/lib64/qt4/mkspecs/features/resources.prf \ | |
150 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
150 | /usr/lib64/qt4/mkspecs/features/uic.prf \ | |
151 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
151 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ | |
152 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
152 | /usr/lib64/qt4/mkspecs/features/lex.prf \ | |
153 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
153 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ | |
154 | /usr/lib64/libQtGui.prl \ |
|
154 | /usr/lib64/libQtGui.prl \ | |
155 | /usr/lib64/libQtCore.prl |
|
155 | /usr/lib64/libQtCore.prl | |
156 | $(QMAKE) -o Makefile wfdisplay.pro |
|
156 | $(QMAKE) -o Makefile wfdisplay.pro | |
157 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
157 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
158 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
158 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
159 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
159 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
160 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
160 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: | |
161 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
161 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: | |
162 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
162 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: | |
163 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
163 | /usr/lib64/qt4/mkspecs/qconfig.pri: | |
164 |
/usr/lib64/qt4/mkspecs/modules/qt_webkit |
|
164 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: | |
165 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
165 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: | |
166 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
166 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
167 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
167 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
168 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
168 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
169 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
169 | /usr/lib64/qt4/mkspecs/features/release.prf: | |
170 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
170 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
171 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
171 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
172 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
172 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
173 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
173 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
174 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
174 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: | |
175 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
175 | /usr/lib64/qt4/mkspecs/features/moc.prf: | |
176 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
176 | /usr/lib64/qt4/mkspecs/features/resources.prf: | |
177 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
177 | /usr/lib64/qt4/mkspecs/features/uic.prf: | |
178 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
178 | /usr/lib64/qt4/mkspecs/features/yacc.prf: | |
179 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
179 | /usr/lib64/qt4/mkspecs/features/lex.prf: | |
180 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
180 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: | |
181 | /usr/lib64/libQtGui.prl: |
|
181 | /usr/lib64/libQtGui.prl: | |
182 | /usr/lib64/libQtCore.prl: |
|
182 | /usr/lib64/libQtCore.prl: | |
183 | qmake: FORCE |
|
183 | qmake: FORCE | |
184 | @$(QMAKE) -o Makefile wfdisplay.pro |
|
184 | @$(QMAKE) -o Makefile wfdisplay.pro | |
185 |
|
185 | |||
186 | dist: |
|
186 | dist: | |
187 | @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0 |
|
187 | @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0 | |
188 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h params.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.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 |
|
188 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h params.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.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 | |
189 |
|
189 | |||
190 |
|
190 | |||
191 | clean:compiler_clean |
|
191 | clean:compiler_clean | |
192 | -$(DEL_FILE) $(OBJECTS) |
|
192 | -$(DEL_FILE) $(OBJECTS) | |
193 | -$(DEL_FILE) *~ core *.core |
|
193 | -$(DEL_FILE) *~ core *.core | |
194 |
|
194 | |||
195 |
|
195 | |||
196 | ####### Sub-libraries |
|
196 | ####### Sub-libraries | |
197 |
|
197 | |||
198 | distclean: clean |
|
198 | distclean: clean | |
199 | -$(DEL_FILE) $(TARGET) |
|
199 | -$(DEL_FILE) $(TARGET) | |
200 | -$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) |
|
200 | -$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) | |
201 | -$(DEL_FILE) Makefile |
|
201 | -$(DEL_FILE) Makefile | |
202 |
|
202 | |||
203 |
|
203 | |||
204 | check: first |
|
204 | check: first | |
205 |
|
205 | |||
206 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
206 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | |
207 |
|
207 | |||
208 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
208 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | |
209 |
|
209 | |||
210 | compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp |
|
210 | compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp | |
211 | compiler_moc_header_clean: |
|
211 | compiler_moc_header_clean: | |
212 | -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp |
|
212 | -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp | |
213 | moc_wfdisplay.cpp: wfdisplay_global.h \ |
|
213 | moc_wfdisplay.cpp: wfdisplay_global.h \ | |
214 | wfpage.h \ |
|
214 | wfpage.h \ | |
215 | wfplot.h \ |
|
215 | wfplot.h \ | |
216 | params.h \ |
|
216 | params.h \ | |
217 | wfdisplay.h |
|
217 | wfdisplay.h | |
218 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp |
|
218 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp | |
219 |
|
219 | |||
220 | moc_wfplot.cpp: wfplot.h |
|
220 | moc_wfplot.cpp: wfplot.h | |
221 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp |
|
221 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp | |
222 |
|
222 | |||
223 | moc_wfpage.cpp: wfplot.h \ |
|
223 | moc_wfpage.cpp: wfplot.h \ | |
224 | params.h \ |
|
224 | params.h \ | |
225 | wfpage.h |
|
225 | wfpage.h | |
226 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp |
|
226 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp | |
227 |
|
227 | |||
228 | compiler_rcc_make_all: |
|
228 | compiler_rcc_make_all: | |
229 | compiler_rcc_clean: |
|
229 | compiler_rcc_clean: | |
230 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
230 | compiler_image_collection_make_all: qmake_image_collection.cpp | |
231 | compiler_image_collection_clean: |
|
231 | compiler_image_collection_clean: | |
232 | -$(DEL_FILE) qmake_image_collection.cpp |
|
232 | -$(DEL_FILE) qmake_image_collection.cpp | |
233 | compiler_moc_source_make_all: |
|
233 | compiler_moc_source_make_all: | |
234 | compiler_moc_source_clean: |
|
234 | compiler_moc_source_clean: | |
235 | compiler_uic_make_all: |
|
235 | compiler_uic_make_all: | |
236 | compiler_uic_clean: |
|
236 | compiler_uic_clean: | |
237 | compiler_yacc_decl_make_all: |
|
237 | compiler_yacc_decl_make_all: | |
238 | compiler_yacc_decl_clean: |
|
238 | compiler_yacc_decl_clean: | |
239 | compiler_yacc_impl_make_all: |
|
239 | compiler_yacc_impl_make_all: | |
240 | compiler_yacc_impl_clean: |
|
240 | compiler_yacc_impl_clean: | |
241 | compiler_lex_make_all: |
|
241 | compiler_lex_make_all: | |
242 | compiler_lex_clean: |
|
242 | compiler_lex_clean: | |
243 | compiler_clean: compiler_moc_header_clean |
|
243 | compiler_clean: compiler_moc_header_clean | |
244 |
|
244 | |||
245 | ####### Compile |
|
245 | ####### Compile | |
246 |
|
246 | |||
247 | wfdisplay.o: wfdisplay.cpp wfdisplay.h \ |
|
247 | wfdisplay.o: wfdisplay.cpp wfdisplay.h \ | |
248 | wfdisplay_global.h \ |
|
248 | wfdisplay_global.h \ | |
249 | wfpage.h \ |
|
249 | wfpage.h \ | |
250 | wfplot.h \ |
|
250 | wfplot.h \ | |
251 | params.h |
|
251 | params.h | |
252 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp |
|
252 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp | |
253 |
|
253 | |||
254 | wfplot.o: wfplot.cpp wfplot.h \ |
|
254 | wfplot.o: wfplot.cpp wfplot.h \ | |
255 | params.h |
|
255 | params.h | |
256 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp |
|
256 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp | |
257 |
|
257 | |||
258 | wfpage.o: wfpage.cpp wfpage.h \ |
|
258 | wfpage.o: wfpage.cpp wfpage.h \ | |
259 | wfplot.h \ |
|
259 | wfplot.h \ | |
260 | params.h |
|
260 | params.h | |
261 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp |
|
261 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp | |
262 |
|
262 | |||
263 | moc_wfdisplay.o: moc_wfdisplay.cpp |
|
263 | moc_wfdisplay.o: moc_wfdisplay.cpp | |
264 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp |
|
264 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp | |
265 |
|
265 | |||
266 | moc_wfplot.o: moc_wfplot.cpp |
|
266 | moc_wfplot.o: moc_wfplot.cpp | |
267 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfplot.o moc_wfplot.cpp |
|
267 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfplot.o moc_wfplot.cpp | |
268 |
|
268 | |||
269 | moc_wfpage.o: moc_wfpage.cpp |
|
269 | moc_wfpage.o: moc_wfpage.cpp | |
270 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpage.o moc_wfpage.cpp |
|
270 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpage.o moc_wfpage.cpp | |
271 |
|
271 | |||
272 | ####### Install |
|
272 | ####### Install | |
273 |
|
273 | |||
274 | install_header: first FORCE |
|
274 | install_header: first FORCE | |
275 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
275 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
276 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
276 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
277 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
277 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
278 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
278 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
279 |
|
279 | |||
280 |
|
280 | |||
281 | uninstall_header: FORCE |
|
281 | uninstall_header: FORCE | |
282 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h |
|
282 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h | |
283 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h |
|
283 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h | |
284 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h |
|
284 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h | |
285 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
285 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
286 |
|
286 | |||
287 |
|
287 | |||
288 | install_target: first FORCE |
|
288 | install_target: first FORCE | |
289 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib64/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib64/ |
|
289 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib64/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib64/ | |
290 | -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" |
|
290 | -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" | |
291 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" |
|
291 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" | |
292 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" |
|
292 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" | |
293 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" |
|
293 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" | |
294 |
|
294 | |||
295 | uninstall_target: FORCE |
|
295 | uninstall_target: FORCE | |
296 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" |
|
296 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" | |
297 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" |
|
297 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" | |
298 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" |
|
298 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" | |
299 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" |
|
299 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" | |
300 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib64/ |
|
300 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib64/ | |
301 |
|
301 | |||
302 |
|
302 | |||
303 | install: install_header install_target FORCE |
|
303 | install: install_header install_target FORCE | |
304 |
|
304 | |||
305 | uninstall: uninstall_header uninstall_target FORCE |
|
305 | uninstall: uninstall_header uninstall_target FORCE | |
306 |
|
306 | |||
307 | FORCE: |
|
307 | FORCE: | |
308 |
|
308 |
@@ -1,51 +1,51 | |||||
1 | #include "wfdisplay.h" |
|
1 | #include "wfdisplay.h" | |
2 |
|
2 | |||
3 |
|
3 | |||
4 | WFDisplay::WFDisplay(QWidget *parent) : |
|
4 | WFDisplay::WFDisplay(QWidget *parent) : | |
5 | QWidget(parent) |
|
5 | QWidget(parent) | |
6 | { |
|
6 | { | |
7 | waveforms_LAYOUT = new QVBoxLayout; |
|
7 | waveforms_LAYOUT = new QVBoxLayout; | |
8 |
|
8 | |||
9 | spwTabWidget = new QTabWidget; |
|
9 | spwTabWidget = new QTabWidget; | |
10 |
|
10 | |||
11 | page_f0 = new WFPage; |
|
11 | page_f0 = new WFPage; | |
12 | page_f1 = new WFPage; |
|
12 | page_f1 = new WFPage; | |
13 | page_f2 = new WFPage; |
|
13 | page_f2 = new WFPage; | |
14 | page_f3 = new WFPage; |
|
14 | page_f3 = new WFPage; | |
15 |
|
15 | |||
16 | spwTabWidget->addTab(page_f0, tr("f0")); |
|
16 | spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)")); | |
17 | spwTabWidget->addTab(page_f1, tr("f1")); |
|
17 | spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz")); | |
18 | spwTabWidget->addTab(page_f2, tr("f2")); |
|
18 | spwTabWidget->addTab(page_f2, tr("f2 (256 Hz)")); | |
19 | spwTabWidget->addTab(page_f3, tr("f3")); |
|
19 | spwTabWidget->addTab(page_f3, tr("f3 (16 Hz)")); | |
20 |
|
20 | |||
21 | waveforms_LAYOUT->addWidget(spwTabWidget); |
|
21 | waveforms_LAYOUT->addWidget(spwTabWidget); | |
22 |
|
22 | |||
23 | this->setLayout(waveforms_LAYOUT); |
|
23 | this->setLayout(waveforms_LAYOUT); | |
24 |
|
24 | |||
25 | } |
|
25 | } | |
26 |
|
26 | |||
27 | void WFDisplay::displayOnPlot(short *data, unsigned char num_page, unsigned char num) |
|
27 | void WFDisplay::displayOnPlot(short *data, unsigned char num_page, unsigned char num) | |
28 | { |
|
28 | { | |
29 | QVector<double> x(XMAX), y(XMAX); |
|
29 | QVector<double> x(XMAX), y(XMAX); | |
30 |
|
30 | |||
31 | for (int i=0; i<XMAX; ++i) |
|
31 | for (int i=0; i<XMAX; ++i) | |
32 | { |
|
32 | { | |
33 | x[i] = i; |
|
33 | x[i] = i; | |
34 | y[i] = (double) data[i]; |
|
34 | y[i] = (double) data[i]; | |
35 | } |
|
35 | } | |
36 | switch(num_page){ |
|
36 | switch(num_page){ | |
37 | case 0: |
|
37 | case 0: | |
38 | page_f0->displayOnPlot(data, num); |
|
38 | page_f0->displayOnPlot(data, num); | |
39 | break; |
|
39 | break; | |
40 | case 1: |
|
40 | case 1: | |
41 | page_f1->displayOnPlot(data, num); |
|
41 | page_f1->displayOnPlot(data, num); | |
42 | break; |
|
42 | break; | |
43 | case 2: |
|
43 | case 2: | |
44 | page_f2->displayOnPlot(data, num); |
|
44 | page_f2->displayOnPlot(data, num); | |
45 | break; |
|
45 | break; | |
46 | case 3: |
|
46 | case 3: | |
47 | page_f3->displayOnPlot(data, num); |
|
47 | page_f3->displayOnPlot(data, num); | |
48 | break; |
|
48 | break; | |
49 | } |
|
49 | } | |
50 |
|
50 | |||
51 | } |
|
51 | } |
@@ -1,264 +1,264 | |||||
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-0 |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-28T13:26:54. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
7 | <value type="int">0</value> |
|
7 | <value type="int">0</value> | |
8 | </data> |
|
8 | </data> | |
9 | <data> |
|
9 | <data> | |
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
10 | <variable>ProjectExplorer.Project.EditorSettings</variable> | |
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 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> | |
15 | <value type="QString" key="language">Cpp</value> |
|
15 | <value type="QString" key="language">Cpp</value> | |
16 | <valuemap type="QVariantMap" key="value"> |
|
16 | <valuemap type="QVariantMap" key="value"> | |
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> | |
18 | </valuemap> |
|
18 | </valuemap> | |
19 | </valuemap> |
|
19 | </valuemap> | |
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> | |
21 | <value type="QString" key="language">QmlJS</value> |
|
21 | <value type="QString" key="language">QmlJS</value> | |
22 | <valuemap type="QVariantMap" key="value"> |
|
22 | <valuemap type="QVariantMap" key="value"> | |
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> | |
24 | </valuemap> |
|
24 | </valuemap> | |
25 | </valuemap> |
|
25 | </valuemap> | |
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> | |
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> | |
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> | |
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> | |
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> | |
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> | |
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> | |
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> | |
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> | |
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> | |
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
36 | <value type="int" key="EditorConfiguration.TabSize">8</value> | |
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> | |
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> | |
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> | |
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> | |
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> | |
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> | |
43 | </valuemap> |
|
43 | </valuemap> | |
44 | </data> |
|
44 | </data> | |
45 | <data> |
|
45 | <data> | |
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
46 | <variable>ProjectExplorer.Project.PluginSettings</variable> | |
47 | <valuemap type="QVariantMap"/> |
|
47 | <valuemap type="QVariantMap"/> | |
48 | </data> |
|
48 | </data> | |
49 | <data> |
|
49 | <data> | |
50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
50 | <variable>ProjectExplorer.Project.Target.0</variable> | |
51 | <valuemap type="QVariantMap"> |
|
51 | <valuemap type="QVariantMap"> | |
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
58 | <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> |
|
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"> |
|
60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
69 | </valuemap> | |
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
77 | </valuemap> |
|
77 | </valuemap> | |
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
82 | </valuemap> |
|
82 | </valuemap> | |
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
91 | </valuemap> |
|
91 | </valuemap> | |
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
96 | </valuemap> |
|
96 | </valuemap> | |
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
100 | <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> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value> |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> | |
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> | |
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
119 | </valuemap> |
|
119 | </valuemap> | |
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
127 | </valuemap> |
|
127 | </valuemap> | |
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
132 | </valuemap> |
|
132 | </valuemap> | |
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
141 | </valuemap> |
|
141 | </valuemap> | |
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
146 | </valuemap> |
|
146 | </valuemap> | |
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value> |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> | |
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> | |
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> | |
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> | |
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> | |
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> | |
165 | </valuemap> |
|
165 | </valuemap> | |
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> | |
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> | |
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> | |
170 | </valuemap> |
|
170 | </valuemap> | |
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> | |
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> | |
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> | |
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> | |
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> | |
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> | |
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> | |
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> | |
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> | |
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
202 | <value type="int">0</value> |
|
202 | <value type="int">0</value> | |
203 | <value type="int">1</value> |
|
203 | <value type="int">1</value> | |
204 | <value type="int">2</value> |
|
204 | <value type="int">2</value> | |
205 | <value type="int">3</value> |
|
205 | <value type="int">3</value> | |
206 | <value type="int">4</value> |
|
206 | <value type="int">4</value> | |
207 | <value type="int">5</value> |
|
207 | <value type="int">5</value> | |
208 | <value type="int">6</value> |
|
208 | <value type="int">6</value> | |
209 | <value type="int">7</value> |
|
209 | <value type="int">7</value> | |
210 | <value type="int">8</value> |
|
210 | <value type="int">8</value> | |
211 | <value type="int">9</value> |
|
211 | <value type="int">9</value> | |
212 | <value type="int">10</value> |
|
212 | <value type="int">10</value> | |
213 | <value type="int">11</value> |
|
213 | <value type="int">11</value> | |
214 | <value type="int">12</value> |
|
214 | <value type="int">12</value> | |
215 | <value type="int">13</value> |
|
215 | <value type="int">13</value> | |
216 | <value type="int">14</value> |
|
216 | <value type="int">14</value> | |
217 | </valuelist> |
|
217 | </valuelist> | |
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
219 | <value type="int">0</value> |
|
219 | <value type="int">0</value> | |
220 | <value type="int">1</value> |
|
220 | <value type="int">1</value> | |
221 | <value type="int">2</value> |
|
221 | <value type="int">2</value> | |
222 | <value type="int">3</value> |
|
222 | <value type="int">3</value> | |
223 | <value type="int">4</value> |
|
223 | <value type="int">4</value> | |
224 | <value type="int">5</value> |
|
224 | <value type="int">5</value> | |
225 | <value type="int">6</value> |
|
225 | <value type="int">6</value> | |
226 | <value type="int">7</value> |
|
226 | <value type="int">7</value> | |
227 | <value type="int">8</value> |
|
227 | <value type="int">8</value> | |
228 | <value type="int">9</value> |
|
228 | <value type="int">9</value> | |
229 | <value type="int">10</value> |
|
229 | <value type="int">10</value> | |
230 | <value type="int">11</value> |
|
230 | <value type="int">11</value> | |
231 | <value type="int">12</value> |
|
231 | <value type="int">12</value> | |
232 | <value type="int">13</value> |
|
232 | <value type="int">13</value> | |
233 | <value type="int">14</value> |
|
233 | <value type="int">14</value> | |
234 | </valuelist> |
|
234 | </valuelist> | |
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> |
|
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> | |
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> |
|
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> | |
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> |
|
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> | |
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> |
|
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> | |
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
247 |
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto"> |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
248 | </valuemap> |
|
248 | </valuemap> | |
249 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
249 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
250 | </valuemap> |
|
250 | </valuemap> | |
251 | </data> |
|
251 | </data> | |
252 | <data> |
|
252 | <data> | |
253 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
253 | <variable>ProjectExplorer.Project.TargetCount</variable> | |
254 | <value type="int">1</value> |
|
254 | <value type="int">1</value> | |
255 | </data> |
|
255 | </data> | |
256 | <data> |
|
256 | <data> | |
257 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
257 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
258 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
258 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
259 | </data> |
|
259 | </data> | |
260 | <data> |
|
260 | <data> | |
261 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
261 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> | |
262 | <value type="int">10</value> |
|
262 | <value type="int">10</value> | |
263 | </data> |
|
263 | </data> | |
264 | </qtcreator> |
|
264 | </qtcreator> |
@@ -1,55 +1,53 | |||||
1 | #include "wfpage.h" |
|
1 | #include "wfpage.h" | |
2 |
|
2 | |||
3 | WFPage::WFPage(QWidget *parent) : |
|
3 | WFPage::WFPage(QWidget *parent) : | |
4 | QWidget(parent) |
|
4 | QWidget(parent) | |
5 | { |
|
5 | { | |
6 | wfPlot_v = new WFPlot(); |
|
6 | wfPlot_v = new WFPlot(); | |
7 | wfPlot_e1 = new WFPlot(); |
|
7 | wfPlot_e1 = new WFPlot(); | |
8 | wfPlot_e2 = new WFPlot(); |
|
8 | wfPlot_e2 = new WFPlot(); | |
9 | wfPlot_b1 = new WFPlot(); |
|
9 | wfPlot_b1 = new WFPlot(); | |
10 | wfPlot_b2 = new WFPlot(); |
|
10 | wfPlot_b2 = new WFPlot(); | |
11 | wfPlot_b3 = new WFPlot(); |
|
11 | wfPlot_b3 = new WFPlot(); | |
12 | // |
|
12 | // | |
13 |
|
|
13 | wfPlot_v->customPlot->setTitle("v"); | |
14 |
wfPlot_ |
|
14 | wfPlot_e1->customPlot->setTitle("e1"); | |
15 | //wfPlot_e1->customPlot->setTitle("e1"); |
|
|||
16 | wfPlot_e1->customPlot->setGraphName(0, "e1"); |
|
|||
17 | wfPlot_e2->customPlot->setTitle("e2"); |
|
15 | wfPlot_e2->customPlot->setTitle("e2"); | |
18 | wfPlot_b1->customPlot->setTitle("b1"); |
|
16 | wfPlot_b1->customPlot->setTitle("b1"); | |
19 | wfPlot_b2->customPlot->setTitle("b2"); |
|
17 | wfPlot_b2->customPlot->setTitle("b2"); | |
20 | wfPlot_b3->customPlot->setTitle("b3"); |
|
18 | wfPlot_b3->customPlot->setTitle("b3"); | |
21 | // |
|
19 | // | |
22 | mainLayout = new QGridLayout; |
|
20 | mainLayout = new QGridLayout; | |
23 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); |
|
21 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); | |
24 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); |
|
22 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); | |
25 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); |
|
23 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); | |
26 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); |
|
24 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); | |
27 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); |
|
25 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); | |
28 | mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1); |
|
26 | mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1); | |
29 | // |
|
27 | // | |
30 | this->setLayout(mainLayout); |
|
28 | this->setLayout(mainLayout); | |
31 | } |
|
29 | } | |
32 |
|
30 | |||
33 | void WFPage::displayOnPlot(short *data, unsigned char num) |
|
31 | void WFPage::displayOnPlot(short *data, unsigned char num) | |
34 | { |
|
32 | { | |
35 | switch(num){ |
|
33 | switch(num){ | |
36 | case 0: |
|
34 | case 0: | |
37 | wfPlot_v->displayOnPlot(data, DEFAULT_SIZE); |
|
35 | wfPlot_v->displayOnPlot(data, DEFAULT_SIZE); | |
38 | break; |
|
36 | break; | |
39 | case 1: |
|
37 | case 1: | |
40 | wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE); |
|
38 | wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE); | |
41 | break; |
|
39 | break; | |
42 | case 2: |
|
40 | case 2: | |
43 | wfPlot_e2->displayOnPlot(data, DEFAULT_SIZE); |
|
41 | wfPlot_e2->displayOnPlot(data, DEFAULT_SIZE); | |
44 | break; |
|
42 | break; | |
45 | case 3: |
|
43 | case 3: | |
46 | wfPlot_b1->displayOnPlot(data, DEFAULT_SIZE); |
|
44 | wfPlot_b1->displayOnPlot(data, DEFAULT_SIZE); | |
47 | break; |
|
45 | break; | |
48 | case 4: |
|
46 | case 4: | |
49 | wfPlot_b2->displayOnPlot(data, DEFAULT_SIZE); |
|
47 | wfPlot_b2->displayOnPlot(data, DEFAULT_SIZE); | |
50 | break; |
|
48 | break; | |
51 | case 5: |
|
49 | case 5: | |
52 | wfPlot_b3->displayOnPlot(data, DEFAULT_SIZE); |
|
50 | wfPlot_b3->displayOnPlot(data, DEFAULT_SIZE); | |
53 | break; |
|
51 | break; | |
54 | } |
|
52 | } | |
55 | } |
|
53 | } |
General Comments 0
You need to be logged in to leave comments.
Login now