##// END OF EJS Templates
Commit before binary format packet storage
leroy -
r51:4524f64c9393 default
parent child
Show More
@@ -1,197 +1,197
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 QtCreator 2.8.0, 2013-10-01T11:19:54. -->
3 <!-- Written by QtCreator 2.8.0, 2013-10-03T07:18:57. -->
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 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
14 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 <value type="QString" key="language">Cpp</value>
16 <value type="QString" key="language">Cpp</value>
17 <valuemap type="QVariantMap" key="value">
17 <valuemap type="QVariantMap" key="value">
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 </valuemap>
19 </valuemap>
20 </valuemap>
20 </valuemap>
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 <value type="QString" key="language">QmlJS</value>
22 <value type="QString" key="language">QmlJS</value>
23 <valuemap type="QVariantMap" key="value">
23 <valuemap type="QVariantMap" key="value">
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 </valuemap>
25 </valuemap>
26 </valuemap>
26 </valuemap>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 </valuemap>
45 </valuemap>
46 </data>
46 </data>
47 <data>
47 <data>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 <valuemap type="QVariantMap"/>
49 <valuemap type="QVariantMap"/>
50 </data>
50 </data>
51 <data>
51 <data>
52 <variable>ProjectExplorer.Project.Target.0</variable>
52 <variable>ProjectExplorer.Project.Target.0</variable>
53 <valuemap type="QVariantMap">
53 <valuemap type="QVariantMap">
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 </valuemap>
71 </valuemap>
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 <value type="QString">-w</value>
78 <value type="QString">-w</value>
79 <value type="QString">-r</value>
79 <value type="QString">-r</value>
80 </valuelist>
80 </valuelist>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 </valuemap>
84 </valuemap>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 </valuemap>
89 </valuemap>
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</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">Qt4ProjectManager.MakeStep</value>
95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 <value type="QString">-w</value>
97 <value type="QString">-w</value>
98 <value type="QString">-r</value>
98 <value type="QString">-r</value>
99 </valuelist>
99 </valuelist>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 </valuemap>
103 </valuemap>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 </valuemap>
108 </valuemap>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
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">Qt4ProjectManager.Qt4BuildConfiguration</value>
114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 </valuemap>
118 </valuemap>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 </valuemap>
126 </valuemap>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 </valuemap>
131 </valuemap>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 <value type="int">0</value>
150 <value type="int">0</value>
151 <value type="int">1</value>
151 <value type="int">1</value>
152 <value type="int">2</value>
152 <value type="int">2</value>
153 <value type="int">3</value>
153 <value type="int">3</value>
154 <value type="int">4</value>
154 <value type="int">4</value>
155 <value type="int">5</value>
155 <value type="int">5</value>
156 <value type="int">6</value>
156 <value type="int">6</value>
157 <value type="int">7</value>
157 <value type="int">7</value>
158 <value type="int">8</value>
158 <value type="int">8</value>
159 <value type="int">9</value>
159 <value type="int">9</value>
160 <value type="int">10</value>
160 <value type="int">10</value>
161 <value type="int">11</value>
161 <value type="int">11</value>
162 <value type="int">12</value>
162 <value type="int">12</value>
163 <value type="int">13</value>
163 <value type="int">13</value>
164 <value type="int">14</value>
164 <value type="int">14</value>
165 </valuelist>
165 </valuelist>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
181 </valuemap>
181 </valuemap>
182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
183 </valuemap>
183 </valuemap>
184 </data>
184 </data>
185 <data>
185 <data>
186 <variable>ProjectExplorer.Project.TargetCount</variable>
186 <variable>ProjectExplorer.Project.TargetCount</variable>
187 <value type="int">1</value>
187 <value type="int">1</value>
188 </data>
188 </data>
189 <data>
189 <data>
190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
192 </data>
192 </data>
193 <data>
193 <data>
194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
195 <value type="int">14</value>
195 <value type="int">14</value>
196 </data>
196 </data>
197 </qtcreator>
197 </qtcreator>
@@ -1,874 +1,881
1 #include "tmstatistics.h"
1 #include "tmstatistics.h"
2 #include <QtGui>
2 #include <QtGui>
3 #include <QFontInfo>
3 #include <QFontInfo>
4 #include <stdio.h>
4 #include <stdio.h>
5
5
6 TMStatistics::TMStatistics(QWidget *parent) :
6 TMStatistics::TMStatistics(QWidget *parent) :
7 QWidget(parent)
7 QWidget(parent)
8 {
8 {
9 // Create Fonts
9 // Create Fonts
10 QFont font;
10 QFont font;
11 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
11 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
12
12
13 label_UNKNOWN = new QLabel("UNKNOWN");
13 label_UNKNOWN = new QLabel("UNKNOWN");
14 label_UNKNOWN_nb = new QLabel("-");
14 label_UNKNOWN_nb = new QLabel("-");
15
15
16 mainLayout = new QGridLayout();
16 mainLayout = new QGridLayout();
17 layout_stat = new QGridLayout(); // TM stastictics
17 layout_stat = new QGridLayout(); // TM stastictics
18 layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_
18 layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_
19 layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_
19 layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_
20 layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_
20 layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_
21 layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_
21 layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_
22 layout_last = new QGridLayout(); // last TM description
22 layout_last = new QGridLayout(); // last TM description
23 layout_record = new QVBoxLayout();
23 layout_record = new QVBoxLayout();
24
24
25 //***************
25 //***************
26 // TM_LFR_TC_EXE_
26 // TM_LFR_TC_EXE_
27 label_SUCC = new QLabel("SUCCESS");
27 label_SUCC = new QLabel("SUCCESS");
28 label_INCO = new QLabel("INCONSISTENT");
28 label_INCO = new QLabel("INCONSISTENT");
29 label_NOTE = new QLabel("NOT_EXECUTABLE");
29 label_NOTE = new QLabel("NOT_EXECUTABLE");
30 label_NOTI = new QLabel("NOT_IMPLEMENTED");
30 label_NOTI = new QLabel("NOT_IMPLEMENTED");
31 label_ERRO = new QLabel("ERROR");
31 label_ERRO = new QLabel("ERROR");
32 label_CORR = new QLabel("CORRUPTED");
32 label_CORR = new QLabel("CORRUPTED");
33 label_HK = new QLabel("TM_LFR_HK");
33 label_HK = new QLabel("TM_LFR_HK");
34 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
34 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
35 //
35 //
36 label_SUCC_nb = new QLabel("-");
36 label_SUCC_nb = new QLabel("-");
37 label_INCO_nb = new QLabel("-");
37 label_INCO_nb = new QLabel("-");
38 label_NOTE_nb = new QLabel("-");
38 label_NOTE_nb = new QLabel("-");
39 label_NOTI_nb = new QLabel("-");
39 label_NOTI_nb = new QLabel("-");
40 label_ERRO_nb = new QLabel("-");
40 label_ERRO_nb = new QLabel("-");
41 label_CORR_nb = new QLabel("-");
41 label_CORR_nb = new QLabel("-");
42 label_HK_nb = new QLabel("-");
42 label_HK_nb = new QLabel("-");
43 label_DUMP_nb = new QLabel("-");
43 label_DUMP_nb = new QLabel("-");
44
44
45 //***********************
45 //***********************
46 // TM_LFR_SCIENCE_NORMAL_
46 // TM_LFR_SCIENCE_NORMAL_
47 label_NORM_SWF_F0 = new QLabel("SWF_F0");
47 label_NORM_SWF_F0 = new QLabel("SWF_F0");
48 label_NORM_SWF_F1 = new QLabel("SWF_F1");
48 label_NORM_SWF_F1 = new QLabel("SWF_F1");
49 label_NORM_SWF_F2 = new QLabel("SWF_F2");
49 label_NORM_SWF_F2 = new QLabel("SWF_F2");
50 label_NORM_CWF_F3 = new QLabel("CWF_F3");
50 label_NORM_CWF_F3 = new QLabel("CWF_F3");
51 label_NORM_ASM_F0 = new QLabel("ASM_F0");
51 label_NORM_ASM_F0 = new QLabel("ASM_F0");
52 label_NORM_ASM_F1 = new QLabel("ASM_F1");
52 label_NORM_ASM_F1 = new QLabel("ASM_F1");
53 label_NORM_ASM_F2 = new QLabel("ASM_F2");
53 label_NORM_ASM_F2 = new QLabel("ASM_F2");
54 label_NORM_BP1_F0 = new QLabel("BP1_F0");
54 label_NORM_BP1_F0 = new QLabel("BP1_F0");
55 label_NORM_BP1_F1 = new QLabel("BP1_F1");
55 label_NORM_BP1_F1 = new QLabel("BP1_F1");
56 label_NORM_BP1_F2 = new QLabel("BP1_F2");
56 label_NORM_BP1_F2 = new QLabel("BP1_F2");
57 label_NORM_BP2_F0 = new QLabel("BP2_F0");
57 label_NORM_BP2_F0 = new QLabel("BP2_F0");
58 label_NORM_BP2_F1 = new QLabel("BP2_F1");
58 label_NORM_BP2_F1 = new QLabel("BP2_F1");
59 label_NORM_BP2_F2 = new QLabel("BP2_F2");
59 label_NORM_BP2_F2 = new QLabel("BP2_F2");
60 //
60 //
61 label_NORM_SWF_F0_nb = new QLabel("-");
61 label_NORM_SWF_F0_nb = new QLabel("-");
62 label_NORM_SWF_F1_nb = new QLabel("-");
62 label_NORM_SWF_F1_nb = new QLabel("-");
63 label_NORM_SWF_F2_nb = new QLabel("-");
63 label_NORM_SWF_F2_nb = new QLabel("-");
64 label_NORM_CWF_F3_nb = new QLabel("-");
64 label_NORM_CWF_F3_nb = new QLabel("-");
65 label_NORM_ASM_F0_nb = new QLabel("-");
65 label_NORM_ASM_F0_nb = new QLabel("-");
66 label_NORM_ASM_F1_nb = new QLabel("-");
66 label_NORM_ASM_F1_nb = new QLabel("-");
67 label_NORM_ASM_F2_nb = new QLabel("-");
67 label_NORM_ASM_F2_nb = new QLabel("-");
68 label_NORM_BP1_F0_nb = new QLabel("-");
68 label_NORM_BP1_F0_nb = new QLabel("-");
69 label_NORM_BP1_F1_nb = new QLabel("-");
69 label_NORM_BP1_F1_nb = new QLabel("-");
70 label_NORM_BP1_F2_nb = new QLabel("-");
70 label_NORM_BP1_F2_nb = new QLabel("-");
71 label_NORM_BP2_F0_nb = new QLabel("-");
71 label_NORM_BP2_F0_nb = new QLabel("-");
72 label_NORM_BP2_F1_nb = new QLabel("-");
72 label_NORM_BP2_F1_nb = new QLabel("-");
73 label_NORM_BP2_F2_nb = new QLabel("-");
73 label_NORM_BP2_F2_nb = new QLabel("-");
74
74
75 //**********************
75 //**********************
76 // TM_LFR_SCIENCE_BURST_
76 // TM_LFR_SCIENCE_BURST_
77 label_BURST_CWF_F2 = new QLabel("CWF_F2");
77 label_BURST_CWF_F2 = new QLabel("CWF_F2");
78 label_BURST_BP1_F0 = new QLabel("BP1_F0");
78 label_BURST_BP1_F0 = new QLabel("BP1_F0");
79 label_BURST_BP2_F0 = new QLabel("BP2_F0");
79 label_BURST_BP2_F0 = new QLabel("BP2_F0");
80 label_BURST_BP1_F1 = new QLabel("BP1_F1");
80 label_BURST_BP1_F1 = new QLabel("BP1_F1");
81 label_BURST_BP2_F1 = new QLabel("BP2_F1");
81 label_BURST_BP2_F1 = new QLabel("BP2_F1");
82 //
82 //
83 label_BURST_CWF_F2_nb = new QLabel("-");
83 label_BURST_CWF_F2_nb = new QLabel("-");
84 label_BURST_BP1_F0_nb = new QLabel("-");
84 label_BURST_BP1_F0_nb = new QLabel("-");
85 label_BURST_BP2_F0_nb = new QLabel("-");
85 label_BURST_BP2_F0_nb = new QLabel("-");
86 label_BURST_BP1_F1_nb = new QLabel("-");
86 label_BURST_BP1_F1_nb = new QLabel("-");
87 label_BURST_BP2_F1_nb = new QLabel("-");
87 label_BURST_BP2_F1_nb = new QLabel("-");
88
88
89 //*********************
89 //*********************
90 // TM_LFR_SCIENCE_SBM1_
90 // TM_LFR_SCIENCE_SBM1_
91 label_SBM1_CWF_F1 = new QLabel("CWF_F1");
91 label_SBM1_CWF_F1 = new QLabel("CWF_F1");
92 label_SBM1_BP1_F0 = new QLabel("BP1_F0");
92 label_SBM1_BP1_F0 = new QLabel("BP1_F0");
93 label_SBM1_BP2_F0 = new QLabel("BP2_F0");
93 label_SBM1_BP2_F0 = new QLabel("BP2_F0");
94 //
94 //
95 label_SBM1_CWF_F1_nb = new QLabel("-");
95 label_SBM1_CWF_F1_nb = new QLabel("-");
96 label_SBM1_BP1_F0_nb = new QLabel("-");
96 label_SBM1_BP1_F0_nb = new QLabel("-");
97 label_SBM1_BP2_F0_nb = new QLabel("-");
97 label_SBM1_BP2_F0_nb = new QLabel("-");
98
98
99 //*********************
99 //*********************
100 // TM_LFR_SCIENCE_SBM2_
100 // TM_LFR_SCIENCE_SBM2_
101 label_SBM2_CWF_F2 = new QLabel("CWF_F2");
101 label_SBM2_CWF_F2 = new QLabel("CWF_F2");
102 label_SBM2_BP1_F0 = new QLabel("BP1_F0");
102 label_SBM2_BP1_F0 = new QLabel("BP1_F0");
103 label_SBM2_BP2_F0 = new QLabel("BP2_F0");
103 label_SBM2_BP2_F0 = new QLabel("BP2_F0");
104 label_SBM2_BP1_F1 = new QLabel("BP1_F1");
104 label_SBM2_BP1_F1 = new QLabel("BP1_F1");
105 label_SBM2_BP2_F1 = new QLabel("BP2_F1");
105 label_SBM2_BP2_F1 = new QLabel("BP2_F1");
106 //
106 //
107 label_SBM2_CWF_F2_nb = new QLabel("-");
107 label_SBM2_CWF_F2_nb = new QLabel("-");
108 label_SBM2_BP1_F0_nb = new QLabel("-");
108 label_SBM2_BP1_F0_nb = new QLabel("-");
109 label_SBM2_BP2_F0_nb = new QLabel("-");
109 label_SBM2_BP2_F0_nb = new QLabel("-");
110 label_SBM2_BP1_F1_nb = new QLabel("-");
110 label_SBM2_BP1_F1_nb = new QLabel("-");
111 label_SBM2_BP2_F1_nb = new QLabel("-");
111 label_SBM2_BP2_F1_nb = new QLabel("-");
112
112
113 //********
113 //********
114 // LAST TM
114 // LAST TM
115 label_PID = new QLabel("PID");
115 label_PID = new QLabel("PID");
116 label_CAT = new QLabel("CAT");
116 label_CAT = new QLabel("CAT");
117 label_TYP = new QLabel("Type");
117 label_TYP = new QLabel("Type");
118 label_SUB = new QLabel("Subtype");
118 label_SUB = new QLabel("Subtype");
119 label_SID = new QLabel("SID");
119 label_SID = new QLabel("SID");
120 label_SIZ = new QLabel("Length");
120 label_SIZ = new QLabel("Length");
121 label_coarse_time = new QLabel("Coarse time: ");
121 label_coarse_time = new QLabel("Coarse time: ");
122 label_fine_time = new QLabel("Fine time: ");
122 label_fine_time = new QLabel("Fine time: ");
123 //
123 //
124 label_PID_is = new QLabel("-");
124 label_PID_is = new QLabel("-");
125 label_CAT_is = new QLabel("-");
125 label_CAT_is = new QLabel("-");
126 label_TYP_is = new QLabel("-");
126 label_TYP_is = new QLabel("-");
127 label_SUB_is = new QLabel("-");
127 label_SUB_is = new QLabel("-");
128 label_SID_is = new QLabel("-");
128 label_SID_is = new QLabel("-");
129 label_SIZ_is = new QLabel("-");
129 label_SIZ_is = new QLabel("-");
130 label_coarse_time_val = new QLabel("-");
130 label_coarse_time_val = new QLabel("-");
131 label_fine_time_val = new QLabel("-");
131 label_fine_time_val = new QLabel("-");
132
132
133 // QPushButton
133 // QPushButton
134 button_reset_stat = new QPushButton("reset stat");
134 button_reset_stat = new QPushButton("reset stat");
135 button_chooseDir = new QPushButton("choose dir");
135 button_chooseDir = new QPushButton("choose dir");
136
136
137 //QCheckBox
137 //QCheckBox
138 checkbox_record = new QCheckBox("Record packets");
138 checkbox_record = new QCheckBox("Record packets");
139 checkbox_packetLog = new QCheckBox("Log packets");
139 checkbox_packetLog = new QCheckBox("Log packets");
140 label_currentDir = new QLabel("Current Dir: -");
140 label_currentDir = new QLabel("Current Dir: -");
141
141
142 //**********
142 //**********
143 // QGroupBox
143 // QGroupBox
144 this->setStyleSheet("QGroupBox {border: 1px solid black; }");
144 this->setStyleSheet("QGroupBox {border: 1px solid black; }");
145
145
146 groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_");
146 groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_");
147 groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_");
147 groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_");
148 groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_");
148 groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_");
149 groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_");
149 groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_");
150 groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_");
150 groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_");
151 groupbox_last = new QGroupBox("Last TM received");
151 groupbox_last = new QGroupBox("Last TM received");
152 groupbox_record = new QGroupBox("Packet recording");
152 groupbox_record = new QGroupBox("Packet recording");
153
153
154 readSettings();
154 readSettings();
155 logFile = new QFile();
155 logFile = new QFile();
156 packetLogFile = new QFile();
156 packetLogFile = new QFile();
157 logFileEn = false;
157 logFileEn = false;
158 packetLogFileEn = false;
158 packetLogFileEn = false;
159
159
160 initConstants();
160 initConstants();
161
161
162 buildMonitor_NORM();
162 buildMonitor_NORM();
163 buildMonitor_BURST();
163 buildMonitor_BURST();
164 buildMonitor_SBM1();
164 buildMonitor_SBM1();
165 buildMonitor_SBM2();
165 buildMonitor_SBM2();
166 buildMonitor();
166 buildMonitor();
167
167
168 groupbox_stat->setFont(font);
168 groupbox_stat->setFont(font);
169 groupbox_NORM->setFont(font);
169 groupbox_NORM->setFont(font);
170 groupbox_BURST->setFont(font);
170 groupbox_BURST->setFont(font);
171 groupbox_SBM1->setFont(font);
171 groupbox_SBM1->setFont(font);
172 groupbox_SBM2->setFont(font);
172 groupbox_SBM2->setFont(font);
173 groupbox_last->setFont(font);
173 groupbox_last->setFont(font);
174 groupbox_record->setFont(font);
174 groupbox_record->setFont(font);
175
175
176 connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics()));
176 connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics()));
177 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
177 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
178
178
179 connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int)));
179 connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int)));
180 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int)));
180 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int)));
181 }
181 }
182
182
183 void TMStatistics::initConstants()
183 void TMStatistics::initConstants()
184 {
184 {
185 UNKNOWN_nb = 0;
185 UNKNOWN_nb = 0;
186
186
187 // TM_LFR_TC_EXE_
187 // TM_LFR_TC_EXE_
188 SUCC_nb = 0;
188 SUCC_nb = 0;
189 INCO_nb = 0;
189 INCO_nb = 0;
190 NOTE_nb = 0;
190 NOTE_nb = 0;
191 NOTI_nb = 0;
191 NOTI_nb = 0;
192 ERRO_nb = 0;
192 ERRO_nb = 0;
193 CORR_nb = 0;
193 CORR_nb = 0;
194 HK_nb = 0;
194 HK_nb = 0;
195 DUMP_nb = 0;
195 DUMP_nb = 0;
196
196
197 // TM_LFR_SCIENCE_NORMAL_
197 // TM_LFR_SCIENCE_NORMAL_
198 NORM_SWF_F0_nb = 0;
198 NORM_SWF_F0_nb = 0;
199 NORM_SWF_F1_nb = 0;
199 NORM_SWF_F1_nb = 0;
200 NORM_SWF_F2_nb = 0;
200 NORM_SWF_F2_nb = 0;
201 NORM_CWF_F3_nb = 0;
201 NORM_CWF_F3_nb = 0;
202 NORM_ASM_F0_nb = 0;
202 NORM_ASM_F0_nb = 0;
203 NORM_ASM_F1_nb = 0;
203 NORM_ASM_F1_nb = 0;
204 NORM_ASM_F2_nb = 0;
204 NORM_ASM_F2_nb = 0;
205 NORM_BP1_F0_nb = 0;
205 NORM_BP1_F0_nb = 0;
206 NORM_BP1_F1_nb = 0;
206 NORM_BP1_F1_nb = 0;
207 NORM_BP1_F2_nb = 0;
207 NORM_BP1_F2_nb = 0;
208 NORM_BP2_F0_nb = 0;
208 NORM_BP2_F0_nb = 0;
209 NORM_BP2_F1_nb = 0;
209 NORM_BP2_F1_nb = 0;
210 NORM_BP2_F2_nb = 0;
210 NORM_BP2_F2_nb = 0;
211
211
212 BURST_CWF_F2_nb = 0;
212 BURST_CWF_F2_nb = 0;
213 BURST_BP1_F0_nb = 0;
213 BURST_BP1_F0_nb = 0;
214 BURST_BP2_F0_nb = 0;
214 BURST_BP2_F0_nb = 0;
215 BURST_BP1_F1_nb = 0;
215 BURST_BP1_F1_nb = 0;
216 BURST_BP2_F1_nb = 0;
216 BURST_BP2_F1_nb = 0;
217 SBM1_CWF_F1_nb = 0;
217 SBM1_CWF_F1_nb = 0;
218 SBM1_BP1_F0_nb = 0;
218 SBM1_BP1_F0_nb = 0;
219 SBM1_BP2_F0_nb = 0;
219 SBM1_BP2_F0_nb = 0;
220 SBM2_CWF_F2_nb = 0;
220 SBM2_CWF_F2_nb = 0;
221 SBM2_BP1_F0_nb = 0;
221 SBM2_BP1_F0_nb = 0;
222 SBM2_BP2_F0_nb = 0;
222 SBM2_BP2_F0_nb = 0;
223 SBM2_BP1_F1_nb = 0;
223 SBM2_BP1_F1_nb = 0;
224 SBM2_BP2_F1_nb = 0;
224 SBM2_BP2_F1_nb = 0;
225 }
225 }
226
226
227 void TMStatistics::buildMonitor_NORM()
227 void TMStatistics::buildMonitor_NORM()
228 {
228 {
229 layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1);
229 layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1);
230 layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1);
230 layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1);
231 layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1);
231 layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1);
232 layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1);
232 layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1);
233 //
233 //
234 layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1);
234 layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1);
235 layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1);
235 layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1);
236 layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1);
236 layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1);
237 layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1);
237 layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1);
238 //
238 //
239 layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1);
239 layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1);
240 layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1);
240 layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1);
241 layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1);
241 layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1);
242 //
242 //
243 layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1);
243 layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1);
244 layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1);
244 layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1);
245 layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1);
245 layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1);
246 //
246 //
247 layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1);
247 layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1);
248 layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1);
248 layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1);
249 layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1);
249 layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1);
250 layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1);
250 layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1);
251 layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1);
251 layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1);
252 layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1);
252 layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1);
253 //
253 //
254 layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1);
254 layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1);
255 layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1);
255 layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1);
256 layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1);
256 layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1);
257 layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1);
257 layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1);
258 layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1);
258 layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1);
259 layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1);
259 layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1);
260 }
260 }
261
261
262 void TMStatistics::buildMonitor_BURST()
262 void TMStatistics::buildMonitor_BURST()
263 {
263 {
264 layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1);
264 layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1);
265 layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1);
265 layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1);
266 layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1);
266 layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1);
267 layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1);
267 layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1);
268 layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1);
268 layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1);
269 //
269 //
270 layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1);
270 layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1);
271 layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1);
271 layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1);
272 layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1);
272 layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1);
273 layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1);
273 layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1);
274 layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1);
274 layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1);
275 //
275 //
276 layout_BURST->setRowStretch(5, 1);
276 layout_BURST->setRowStretch(5, 1);
277 layout_BURST->setColumnStretch(2,1);
277 layout_BURST->setColumnStretch(2,1);
278 }
278 }
279
279
280 void TMStatistics::buildMonitor_SBM1()
280 void TMStatistics::buildMonitor_SBM1()
281 {
281 {
282 layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1);
282 layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1);
283 layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1);
283 layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1);
284 layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1);
284 layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1);
285 //
285 //
286 layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1);
286 layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1);
287 layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1);
287 layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1);
288 layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1);
288 layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1);
289 //
289 //
290 layout_SBM1->setRowStretch(3, 1);
290 layout_SBM1->setRowStretch(3, 1);
291 layout_SBM1->setColumnStretch(2,1);
291 layout_SBM1->setColumnStretch(2,1);
292 }
292 }
293
293
294 void TMStatistics::buildMonitor_SBM2()
294 void TMStatistics::buildMonitor_SBM2()
295 {
295 {
296 layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1);
296 layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1);
297 layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1);
297 layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1);
298 layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1);
298 layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1);
299 layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1);
299 layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1);
300 layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1);
300 layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1);
301 //
301 //
302 layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1);
302 layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1);
303 layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1);
303 layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1);
304 layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1);
304 layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1);
305 layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1);
305 layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1);
306 layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1);
306 layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1);
307 //
307 //
308 layout_SBM2->setRowStretch(5, 1);
308 layout_SBM2->setRowStretch(5, 1);
309 layout_SBM2->setColumnStretch(2,1);
309 layout_SBM2->setColumnStretch(2,1);
310 }
310 }
311
311
312 void TMStatistics::buildMonitor()
312 void TMStatistics::buildMonitor()
313 {
313 {
314 //***************
314 //***************
315 // TM_LFR_TC_EXE_
315 // TM_LFR_TC_EXE_
316 layout_stat->addWidget(label_SUCC, 0, 0, 1, 1);
316 layout_stat->addWidget(label_SUCC, 0, 0, 1, 1);
317 layout_stat->addWidget(label_INCO, 1, 0, 1, 1);
317 layout_stat->addWidget(label_INCO, 1, 0, 1, 1);
318 layout_stat->addWidget(label_NOTE, 2, 0, 1, 1);
318 layout_stat->addWidget(label_NOTE, 2, 0, 1, 1);
319 layout_stat->addWidget(label_NOTI, 3, 0, 1, 1);
319 layout_stat->addWidget(label_NOTI, 3, 0, 1, 1);
320 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
320 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
321 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
321 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
322 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
322 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
323 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
323 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
324 //
324 //
325 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
325 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
326 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
326 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
327 layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1);
327 layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1);
328 layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1);
328 layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1);
329 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
329 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
330 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
330 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
331 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
331 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
332 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
332 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
333
333
334 //********
334 //********
335 // LAST TM
335 // LAST TM
336 layout_last->addWidget(label_PID, 0, 0, 1, 1);
336 layout_last->addWidget(label_PID, 0, 0, 1, 1);
337 layout_last->addWidget(label_CAT, 0, 1, 1, 1);
337 layout_last->addWidget(label_CAT, 0, 1, 1, 1);
338 layout_last->addWidget(label_TYP, 0, 2, 1, 1);
338 layout_last->addWidget(label_TYP, 0, 2, 1, 1);
339 layout_last->addWidget(label_SUB, 0, 3, 1, 1);
339 layout_last->addWidget(label_SUB, 0, 3, 1, 1);
340 layout_last->addWidget(label_SID, 0, 4, 1, 1);
340 layout_last->addWidget(label_SID, 0, 4, 1, 1);
341 layout_last->addWidget(label_SIZ, 0, 5, 1, 1);
341 layout_last->addWidget(label_SIZ, 0, 5, 1, 1);
342 //
342 //
343 layout_last->addWidget(label_PID_is, 1, 0, 1, 1);
343 layout_last->addWidget(label_PID_is, 1, 0, 1, 1);
344 layout_last->addWidget(label_CAT_is, 1, 1, 1, 1);
344 layout_last->addWidget(label_CAT_is, 1, 1, 1, 1);
345 layout_last->addWidget(label_TYP_is, 1, 2, 1, 1);
345 layout_last->addWidget(label_TYP_is, 1, 2, 1, 1);
346 layout_last->addWidget(label_SUB_is, 1, 3, 1, 1);
346 layout_last->addWidget(label_SUB_is, 1, 3, 1, 1);
347 layout_last->addWidget(label_SID_is, 1, 4, 1, 1);
347 layout_last->addWidget(label_SID_is, 1, 4, 1, 1);
348 layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1);
348 layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1);
349 //
349 //
350 layout_last->addWidget(label_coarse_time, 2, 0, 1, 1);
350 layout_last->addWidget(label_coarse_time, 2, 0, 1, 1);
351 layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1);
351 layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1);
352 layout_last->addWidget(label_fine_time, 2, 2, 1, 1);
352 layout_last->addWidget(label_fine_time, 2, 2, 1, 1);
353 layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1);
353 layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1);
354 //
354 //
355 layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1);
355 layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1);
356 layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1);
356 layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1);
357
357
358 layout_record->addWidget(checkbox_record);
358 layout_record->addWidget(checkbox_record);
359 layout_record->addWidget(checkbox_packetLog);
359 layout_record->addWidget(checkbox_packetLog);
360 layout_record->addWidget(button_chooseDir);
360 layout_record->addWidget(button_chooseDir);
361 layout_record->addWidget(label_currentDir);
361 layout_record->addWidget(label_currentDir);
362 layout_record->insertStretch(4, 1);
362 layout_record->insertStretch(4, 1);
363
363
364 //***********
364 //***********
365 // groupboxes
365 // groupboxes
366 groupbox_stat->setLayout(layout_stat);
366 groupbox_stat->setLayout(layout_stat);
367 groupbox_NORM->setLayout(layout_NORM);
367 groupbox_NORM->setLayout(layout_NORM);
368 groupbox_BURST->setLayout(layout_BURST);
368 groupbox_BURST->setLayout(layout_BURST);
369 groupbox_SBM1->setLayout(layout_SBM1);
369 groupbox_SBM1->setLayout(layout_SBM1);
370 groupbox_SBM2->setLayout(layout_SBM2);
370 groupbox_SBM2->setLayout(layout_SBM2);
371 groupbox_last->setLayout(layout_last);
371 groupbox_last->setLayout(layout_last);
372 groupbox_record->setLayout(layout_record);
372 groupbox_record->setLayout(layout_record);
373 //
373 //
374 mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1);
374 mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1);
375 mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1);
375 mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1);
376 mainLayout->addWidget(groupbox_last, 2, 0, 1, 2);
376 mainLayout->addWidget(groupbox_last, 2, 0, 1, 2);
377 mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1);
377 mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1);
378 mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1);
378 mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1);
379 mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1);
379 mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1);
380 mainLayout->addWidget(groupbox_record, 1, 2, 1, 1);
380 mainLayout->addWidget(groupbox_record, 1, 2, 1, 1);
381 mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3);
381 mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3);
382 mainLayout->setColumnStretch(3, 1);
382 mainLayout->setColumnStretch(3, 1);
383 mainLayout->setRowStretch(4, 1);
383 mainLayout->setRowStretch(4, 1);
384 //
384 //
385 this->setLayout(mainLayout);
385 this->setLayout(mainLayout);
386 }
386 }
387
387
388 void TMStatistics::resetStatistics()
388 void TMStatistics::resetStatistics()
389 {
389 {
390 initConstants();
390 initConstants();
391 //
391 //
392 label_UNKNOWN_nb->setText("-");
392 label_UNKNOWN_nb->setText("-");
393 label_SUCC_nb->setText("-");
393 label_SUCC_nb->setText("-");
394 label_INCO_nb->setText("-");
394 label_INCO_nb->setText("-");
395 label_NOTE_nb->setText("-");
395 label_NOTE_nb->setText("-");
396 label_NOTI_nb->setText("-");
396 label_NOTI_nb->setText("-");
397 label_ERRO_nb->setText("-");
397 label_ERRO_nb->setText("-");
398 label_CORR_nb->setText("-");
398 label_CORR_nb->setText("-");
399 label_HK_nb->setText("-");
399 label_HK_nb->setText("-");
400 label_DUMP_nb->setText("-");
400 label_DUMP_nb->setText("-");
401 //
401 //
402 label_NORM_SWF_F0_nb->setText("-");
402 label_NORM_SWF_F0_nb->setText("-");
403 label_NORM_SWF_F1_nb->setText("-");
403 label_NORM_SWF_F1_nb->setText("-");
404 label_NORM_SWF_F2_nb->setText("-");
404 label_NORM_SWF_F2_nb->setText("-");
405 label_NORM_CWF_F3_nb->setText("-");
405 label_NORM_CWF_F3_nb->setText("-");
406 label_NORM_ASM_F0_nb->setText("-");
406 label_NORM_ASM_F0_nb->setText("-");
407 //
407 //
408 label_BURST_CWF_F2_nb->setText("-");
408 label_BURST_CWF_F2_nb->setText("-");
409 //
409 //
410 label_SBM1_CWF_F1_nb->setText("-");
410 label_SBM1_CWF_F1_nb->setText("-");
411 //
411 //
412 label_SBM2_CWF_F2_nb->setText("-");
412 label_SBM2_CWF_F2_nb->setText("-");
413 //
413 //
414 label_PID_is->setText("-");
414 label_PID_is->setText("-");
415 label_CAT_is->setText("-");
415 label_CAT_is->setText("-");
416 label_TYP_is->setText("-");
416 label_TYP_is->setText("-");
417 label_SUB_is->setText("-");
417 label_SUB_is->setText("-");
418 label_SID_is->setText("-");
418 label_SID_is->setText("-");
419 label_SIZ_is->setText("-");
419 label_SIZ_is->setText("-");
420 //
420 //
421 label_coarse_time_val->setText("-");
421 label_coarse_time_val->setText("-");
422 label_fine_time_val->setText("-");
422 label_fine_time_val->setText("-");
423 }
423 }
424
424
425 void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat,
425 void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat,
426 unsigned char typ, unsigned char sub,
426 unsigned char typ, unsigned char sub,
427 unsigned int sid, unsigned int length,
427 unsigned int sid, unsigned int length,
428 unsigned int coarse_t, unsigned int fine_t)
428 unsigned int coarse_t, unsigned int fine_t)
429 {
429 {
430 if (cat == TM_PACKET_CAT_TC_EXE)
430 if (cat == TM_PACKET_CAT_TC_EXE)
431 {
431 {
432 if (typ == TM_TYPE_TC_EXE)
432 if (typ == TM_TYPE_TC_EXE)
433 {
433 {
434 if (sub == TM_SUBTYPE_EXE_OK)
434 if (sub == TM_SUBTYPE_EXE_OK)
435 {
435 {
436 SUCC_nb = SUCC_nb + 1;
436 SUCC_nb = SUCC_nb + 1;
437 label_SUCC_nb->setText(QString::number(SUCC_nb));
437 label_SUCC_nb->setText(QString::number(SUCC_nb));
438 }
438 }
439 else if (sub == TM_SUBTYPE_EXE_NOK)
439 else if (sub == TM_SUBTYPE_EXE_NOK)
440 {
440 {
441 if (sid == SID_EXE_INC)
441 if (sid == SID_EXE_INC)
442 {
442 {
443 INCO_nb = INCO_nb + 1;
443 INCO_nb = INCO_nb + 1;
444 label_INCO_nb->setText(QString::number(INCO_nb));
444 label_INCO_nb->setText(QString::number(INCO_nb));
445 }
445 }
446 else if (sid == SID_NOT_EXE)
446 else if (sid == SID_NOT_EXE)
447 {
447 {
448 NOTE_nb = NOTE_nb + 1;
448 NOTE_nb = NOTE_nb + 1;
449 label_NOTE_nb->setText(QString::number(NOTE_nb));
449 label_NOTE_nb->setText(QString::number(NOTE_nb));
450 }
450 }
451 else if (sid == SID_NOT_IMP)
451 else if (sid == SID_NOT_IMP)
452 {
452 {
453 NOTI_nb = NOTI_nb + 1;
453 NOTI_nb = NOTI_nb + 1;
454 label_NOTI_nb->setText(QString::number(NOTI_nb));
454 label_NOTI_nb->setText(QString::number(NOTI_nb));
455 }
455 }
456 else if (sid == SID_EXE_ERR)
456 else if (sid == SID_EXE_ERR)
457 {
457 {
458 ERRO_nb = ERRO_nb + 1;
458 ERRO_nb = ERRO_nb + 1;
459 label_ERRO_nb->setText(QString::number(ERRO_nb));
459 label_ERRO_nb->setText(QString::number(ERRO_nb));
460 }
460 }
461 else if (sid == SID_EXE_CORR)
461 else if (sid == SID_EXE_CORR)
462 {
462 {
463 CORR_nb = CORR_nb + 1;
463 CORR_nb = CORR_nb + 1;
464 label_CORR_nb->setText(QString::number(CORR_nb));
464 label_CORR_nb->setText(QString::number(CORR_nb));
465 }
465 }
466 else incrementUnknown();
466 else incrementUnknown();
467 }
467 }
468 else incrementUnknown();
468 else incrementUnknown();
469 }
469 }
470 else
470 else
471 incrementUnknown();
471 incrementUnknown();
472 }
472 }
473 else if (cat == TM_PACKET_CAT_HK)
473 else if (cat == TM_PACKET_CAT_HK)
474 {
474 {
475 if (typ == TM_TYPE_HK)
475 if (typ == TM_TYPE_HK)
476 {
476 {
477 if (sub == TM_SUBTYPE_HK)
477 if (sub == TM_SUBTYPE_HK)
478 if (sid == SID_HK)
478 if (sid == SID_HK)
479 {
479 {
480 HK_nb = HK_nb + 1;
480 HK_nb = HK_nb + 1;
481 label_HK_nb->setText(QString::number(HK_nb));
481 label_HK_nb->setText(QString::number(HK_nb));
482 }
482 }
483 else
483 else
484 {
484 {
485 incrementUnknown();
485 incrementUnknown();
486 }
486 }
487 else
487 else
488 {
488 {
489 incrementUnknown();
489 incrementUnknown();
490 }
490 }
491 }
491 }
492 else
492 else
493 {
493 {
494 incrementUnknown();
494 incrementUnknown();
495 }
495 }
496 }
496 }
497 else if (cat == TM_PACKET_CAT_PARAMETER_DUMP)
497 else if (cat == TM_PACKET_CAT_PARAMETER_DUMP)
498 {
498 {
499 if (typ == TM_TYPE_PARAMETER_DUMP)
499 if (typ == TM_TYPE_PARAMETER_DUMP)
500 {
500 {
501 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
501 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
502 if (sid == SID_PARAMETER_DUMP)
502 if (sid == SID_PARAMETER_DUMP)
503 {
503 {
504 DUMP_nb = DUMP_nb + 1;
504 DUMP_nb = DUMP_nb + 1;
505 label_DUMP_nb->setText(QString::number(DUMP_nb));
505 label_DUMP_nb->setText(QString::number(DUMP_nb));
506 }
506 }
507 else
507 else
508 {
508 {
509 incrementUnknown();
509 incrementUnknown();
510 }
510 }
511 else
511 else
512 {
512 {
513 incrementUnknown();
513 incrementUnknown();
514 }
514 }
515 }
515 }
516 else
516 else
517 {
517 {
518 incrementUnknown();
518 incrementUnknown();
519 }
519 }
520 }
520 }
521 else if (cat == TM_PACKET_CAT_SCIENCE)
521 else if (cat == TM_PACKET_CAT_SCIENCE)
522 {
522 {
523 if (typ == TM_TYPE_LFR_SCIENCE)
523 if (typ == TM_TYPE_LFR_SCIENCE)
524 {
524 {
525 if (sub == TM_SUBTYPE_SCIENCE)
525 if (sub == TM_SUBTYPE_SCIENCE)
526 {
526 {
527 if (sid == SID_NORM_CWF_F3)
527 if (sid == SID_NORM_CWF_F3)
528 {
528 {
529 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
529 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
530 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
530 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
531 }
531 }
532 else if (sid == SID_BURST_CWF_F2)
532 else if (sid == SID_BURST_CWF_F2)
533 {
533 {
534 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
534 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
535 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
535 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
536 }
536 }
537 else if (sid == SID_NORM_SWF_F0)
537 else if (sid == SID_NORM_SWF_F0)
538 {
538 {
539 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
539 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
540 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
540 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
541 }
541 }
542 else if (sid == SID_NORM_SWF_F1)
542 else if (sid == SID_NORM_SWF_F1)
543 {
543 {
544 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
544 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
545 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
545 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
546 }
546 }
547 else if (sid == SID_NORM_SWF_F2)
547 else if (sid == SID_NORM_SWF_F2)
548 {
548 {
549 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
549 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
550 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
550 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
551 }
551 }
552 else if (sid == SID_NORM_ASM_F0)
552 else if (sid == SID_NORM_ASM_F0)
553 {
553 {
554 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
554 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
555 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
555 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
556 }
556 }
557 else if (sid == SID_SBM1_CWF_F1)
557 else if (sid == SID_SBM1_CWF_F1)
558 {
558 {
559 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
559 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
560 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
560 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
561 }
561 }
562 else if (sid == SID_SBM2_CWF_F2)
562 else if (sid == SID_SBM2_CWF_F2)
563 {
563 {
564 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
564 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
565 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
565 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
566 }
566 }
567 else
567 else
568 {
568 {
569 incrementUnknown();
569 incrementUnknown();
570 }
570 }
571 }
571 }
572 }
572 }
573 else
573 else
574 {
574 {
575 incrementUnknown();
575 incrementUnknown();
576 }
576 }
577 }
577 }
578 else
578 else
579 {
579 {
580 incrementUnknown();
580 incrementUnknown();
581 }
581 }
582
582
583 label_PID_is->setText(QString::number(pid));
583 label_PID_is->setText(QString::number(pid));
584 label_CAT_is->setText(QString::number(cat));
584 label_CAT_is->setText(QString::number(cat));
585 label_TYP_is->setText(QString::number(typ));
585 label_TYP_is->setText(QString::number(typ));
586 label_SUB_is->setText(QString::number(sub));
586 label_SUB_is->setText(QString::number(sub));
587 label_SID_is->setText(QString::number(sid));
587 label_SID_is->setText(QString::number(sid));
588 label_SIZ_is->setText(QString::number(length));
588 label_SIZ_is->setText(QString::number(length));
589 label_coarse_time_val->setText(QString::number(coarse_t, 16));
589 label_coarse_time_val->setText(QString::number(coarse_t, 16));
590 label_fine_time_val->setText(QString::number(fine_t, 16));
590 label_fine_time_val->setText(QString::number(fine_t, 16));
591 }
591 }
592
592
593 void TMStatistics::incrementUnknown()
593 void TMStatistics::incrementUnknown()
594 {
594 {
595 UNKNOWN_nb = UNKNOWN_nb + 1;
595 UNKNOWN_nb = UNKNOWN_nb + 1;
596 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
596 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
597 }
597 }
598
598
599 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
599 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
600 {
600 {
601 unsigned char pid = 0;
601 unsigned char pid = 0;
602
602
603 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
603 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
604
604
605 return pid;
605 return pid;
606 }
606 }
607
607
608 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
608 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
609 {
609 {
610 unsigned char cat = 0;
610 unsigned char cat = 0;
611
611
612 cat = packet->Value[5] & 0x0f;
612 cat = packet->Value[5] & 0x0f;
613
613
614 return cat;
614 return cat;
615 }
615 }
616
616
617 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
617 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
618 {
618 {
619 unsigned char typ = 0;
619 unsigned char typ = 0;
620
620
621 typ = packet->Value[11]; // TYPE
621 typ = packet->Value[11]; // TYPE
622
622
623 return typ;
623 return typ;
624 }
624 }
625
625
626 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
626 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
627 {
627 {
628 unsigned char sub = 0;
628 unsigned char sub = 0;
629
629
630 sub = packet->Value[12]; // SUBTYPE
630 sub = packet->Value[12]; // SUBTYPE
631
631
632 return sub;
632 return sub;
633 }
633 }
634
634
635 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
635 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
636 {
636 {
637 unsigned int length = 0;
637 unsigned int length = 0;
638
638
639 length = packet->Value[8] * 256 + packet->Value[9];
639 length = packet->Value[8] * 256 + packet->Value[9];
640
640
641 return length;
641 return length;
642 }
642 }
643
643
644 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
644 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
645 {
645 {
646 unsigned int coarse = 0;
646 unsigned int coarse = 0;
647
647
648 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
648 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
649 + packet->Value[16] * pow(2, 8) + packet->Value[17];
649 + packet->Value[16] * pow(2, 8) + packet->Value[17];
650
650
651 return coarse;
651 return coarse;
652 }
652 }
653
653
654 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
654 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
655 {
655 {
656 unsigned int fine = 0;
656 unsigned int fine = 0;
657
657
658 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
658 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
659
659
660 return fine;
660 return fine;
661 }
661 }
662
662
663 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
663 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
664 unsigned char pid, unsigned char cat,
664 unsigned char pid, unsigned char cat,
665 unsigned char typ, unsigned char sub)
665 unsigned char typ, unsigned char sub)
666 {
666 {
667 unsigned int sid = 0;
667 unsigned int sid = 0;
668 QByteArray packetAsAnArray;
668 QByteArray packetAsAnArray;
669 QString packetName;
669 QString packetName;
670 QTime currentTime;
670 QTime currentTime;
671 QDate currentDate;
671 QDate currentDate;
672
672
673 if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE)
673 if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE)
674 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
674 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
675 sid = packet->Value[20] * 256 + packet->Value[21];
675 sid = packet->Value[20] * 256 + packet->Value[21];
676 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
676 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
677 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
677 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
678 sid = SID_HK;
678 sid = SID_HK;
679 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
679 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
680 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
680 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
681 sid = SID_PARAMETER_DUMP;
681 sid = SID_PARAMETER_DUMP;
682 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE)
682 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE)
683 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
683 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
684 sid = packet->Value[20];
684 sid = packet->Value[20];
685 else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE)
685 else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE)
686 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
686 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
687 sid = packet->Value[20];
687 sid = packet->Value[20];
688
688
689 if (logFileEn == true)
689 if (logFileEn == true)
690 {
690 {
691 packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex();
691 packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4)).toHex();
692 *(this->logFileStrm)
692 *(this->logFileStrm)
693 << QDate::currentDate().toString() + " "
693 << QDate::currentDate().toString() + " "
694 << QTime::currentTime().toString() << endl
694 << QTime::currentTime().toString() << endl
695 << packetAsAnArray
695 << packetAsAnArray
696 << endl
696 << endl
697 << endl;
697 << endl;
698 }
698 }
699
699
700 if (packetLogFileEn == true)
700 if (packetLogFileEn == true)
701 {
701 {
702 currentTime = QTime::currentTime();
702 currentTime = QTime::currentTime();
703 currentDate = QDate::currentDate();
703 currentDate = QDate::currentDate();
704 packetName = getPacketName( typ, sub, sid);
704 packetName = getPacketName( typ, sub, sid);
705
705
706 *(this->packetLogFileStrm)
706 *(this->packetLogFileStrm)
707 << QString::number(currentDate.year()) + " "
707 << QString::number(currentDate.year()) + " "
708 << QString::number(currentDate.month()) + " "
708 << QString::number(currentDate.month()) + " "
709 << QString::number(currentDate.day()) + " "
709 << QString::number(currentDate.day()) + " "
710 << QTime::currentTime().toString() + ":"
710 << QTime::currentTime().toString() + ":"
711 << QString::number(currentTime.msec()) + " "
711 << QString::number(currentTime.msec()) + " "
712 << packetName
712 << packetName
713 << " time = 0x " + QString::number(
713 << " time = 0x " + QString::number(
714 (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17],
714 (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17],
715 16).right(8)
715 16).right(8)
716 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
716 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
717 << endl;
717 << endl;
718 }
718 }
719
719
720 return sid;
720 return sid;
721 }
721 }
722
722
723 void TMStatistics::buildFileName()
723 void TMStatistics::buildFileName()
724 {
724 {
725 QString date;
725 QString date;
726 QString time;
726 QString time;
727 QString prefix;
727 QString prefix;
728
728
729 date = QDate::currentDate().toString();
729 date = QDate::currentDate().toString();
730 time = QTime::currentTime().toString();
730 time = QTime::currentTime().toString();
731
731
732 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
732 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
733
733
734 if(this->logFile->isOpen()) this->logFile->close();
734 if(this->logFile->isOpen()) this->logFile->close();
735 this->logFile->setFileName( prefix + "packet_record.data");
735 this->logFile->setFileName( prefix + "packet_record.data");
736 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
736 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
737 }
737 }
738
738
739 void TMStatistics::buildPacketLogFileName()
739 void TMStatistics::buildPacketLogFileName()
740 {
740 {
741 QString date;
741 QString date;
742 QString time;
742 QString time;
743 QString prefix;
743 QString prefix;
744
744
745 date = QDate::currentDate().toString();
745 date = QDate::currentDate().toString();
746 time = QTime::currentTime().toString();
746 time = QTime::currentTime().toString();
747
747
748 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
748 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" ;
749
749
750 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
750 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
751 this->packetLogFile->setFileName( prefix + "packet_log.data");
751 this->packetLogFile->setFileName( prefix + "packet_log.data");
752 if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile);
752 if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile);
753 }
753 }
754
754
755 void TMStatistics::storePackets( int state )
755 void TMStatistics::storePackets( int state )
756 {
756 {
757 if (state == Qt::Checked)
757 if (state == Qt::Checked)
758 {
758 {
759 buildFileName();
759 buildFileName();
760 logFileEn = true;
760 logFileEn = true;
761 }
761 }
762 else
762 else
763 {
763 {
764 if(this->logFile->isOpen()) this->logFile->close();
764 if(this->logFile->isOpen()) this->logFile->close();
765 logFileEn = false;
765 logFileEn = false;
766 }
766 }
767 }
767 }
768
768
769 void TMStatistics::logPackets( int state )
769 void TMStatistics::logPackets( int state )
770 {
770 {
771 if (state == Qt::Checked)
771 if (state == Qt::Checked)
772 {
772 {
773 buildPacketLogFileName();
773 buildPacketLogFileName();
774 packetLogFileEn = true;
774 packetLogFileEn = true;
775 }
775 }
776 else
776 else
777 {
777 {
778 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
778 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
779 packetLogFileEn = false;
779 packetLogFileEn = false;
780 }
780 }
781 }
781 }
782
782
783 void TMStatistics::readSettings()
784 {
785 QSettings settings("lpp", "lfrsgse");
786 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
787 label_currentDir->setText(defaultStorageDirectory);
788 }
789
790 void TMStatistics::writeSettings()
791 {
792 QSettings settings("lpp", "lfrsgse");
793 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
794 }
795
796 void TMStatistics::chooseDir()
783 void TMStatistics::chooseDir()
797 {
784 {
798 defaultStorageDirectory = QFileDialog::getExistingDirectory(this,
785 QString tmpDefaultStorageDirectory;
786 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
799 "choose the directory",
787 "choose the directory",
800 QDir::homePath(),
788 QDir::homePath(),
801 QFileDialog::ShowDirsOnly);
789 QFileDialog::ShowDirsOnly);
790
791 if( !tmpDefaultStorageDirectory.isEmpty() )
792 {
793 defaultStorageDirectory = tmpDefaultStorageDirectory;
794 }
795
802 label_currentDir->setText(defaultStorageDirectory);
796 label_currentDir->setText(defaultStorageDirectory);
803 }
797 }
804
798
805 void TMStatistics::closeEvent(QCloseEvent *event)
799 void TMStatistics::closeEvent(QCloseEvent *event)
806 {
800 {
807 if(this->logFile->isOpen())
801 if(this->logFile->isOpen())
808 {
802 {
809 this->logFileStrm->flush();
803 this->logFileStrm->flush();
810 this->logFile->waitForBytesWritten(3000);
804 this->logFile->waitForBytesWritten(3000);
811 this->logFile->close();
805 this->logFile->close();
812 }
806 }
813 writeSettings();
807 writeSettings();
814 event->accept();
808 event->accept();
815 }
809 }
816
810
817 QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid)
811 QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid)
818 {
812 {
819 QString packetName = "default";
813 QString packetName = "default";
820 if (type == TM_TYPE_TC_EXE)
814 if (type == TM_TYPE_TC_EXE)
821 {
815 {
822 if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS";
816 if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS";
823 if (subtype == TM_SUBTYPE_EXE_NOK)
817 if (subtype == TM_SUBTYPE_EXE_NOK)
824 {
818 {
825 if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
819 if (sid == SID_EXE_INC) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
826 if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
820 if (sid == SID_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
827 if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
821 if (sid == SID_NOT_IMP) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
828 if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR";
822 if (sid == SID_EXE_ERR) packetName = "TM_LFR_TC_EXE_ERROR";
829 if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED";
823 if (sid == SID_EXE_CORR) packetName = "TM_LFR_TC_EXE_CORRUPTED";
830 }
824 }
831 }
825 }
832 if (type == TM_TYPE_HK)
826 if (type == TM_TYPE_HK)
833 {
827 {
834 if (subtype == TM_SUBTYPE_HK)
828 if (subtype == TM_SUBTYPE_HK)
835 {
829 {
836 if (sid == SID_HK) packetName = "TM_LFR_HK";
830 if (sid == SID_HK) packetName = "TM_LFR_HK";
837 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
831 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
838 }
832 }
839 }
833 }
840 if (type == TM_TYPE_LFR_SCIENCE)
834 if (type == TM_TYPE_LFR_SCIENCE)
841 {
835 {
842 if (subtype == TM_SUBTYPE_SCIENCE)
836 if (subtype == TM_SUBTYPE_SCIENCE)
843 {
837 {
844 if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0";
838 if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0";
845 if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1";
839 if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1";
846 if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2";
840 if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2";
847 if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3";
841 if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3";
848 if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2";
842 if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2";
849 if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1";
843 if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1";
850 if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2";
844 if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2";
851 if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0";
845 if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0";
852 if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1";
846 if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1";
853 if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2";
847 if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2";
854 if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0";
848 if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0";
855 if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1";
849 if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1";
856 if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2";
850 if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2";
857 if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0";
851 if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0";
858 if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1";
852 if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1";
859 if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2";
853 if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2";
860 if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0";
854 if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0";
861 if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0";
855 if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0";
862 if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1";
856 if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1";
863 if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1";
857 if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1";
864 if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0";
858 if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0";
865 if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0";
859 if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0";
866 if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0";
860 if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0";
867 if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0";
861 if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0";
868 if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1";
862 if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1";
869 if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1";
863 if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1";
870 }
864 }
871 }
865 }
872
866
873 return packetName;
867 return packetName;
874 }
868 }
869
870 void TMStatistics::readSettings()
871 {
872 QSettings settings("lpp", "lfrsgse");
873 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
874 label_currentDir->setText(defaultStorageDirectory);
875 }
876
877 void TMStatistics::writeSettings()
878 {
879 QSettings settings("lpp", "lfrsgse");
880 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
881 }
General Comments 0
You need to be logged in to leave comments. Login now