@@ -1,342 +1,215 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-07-0 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-04T13:25:30. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
7 | 7 | <value type="int">0</value> |
|
8 | 8 | </data> |
|
9 | 9 | <data> |
|
10 | 10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | 14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | 15 | <value type="QString" key="language">Cpp</value> |
|
16 | 16 | <valuemap type="QVariantMap" key="value"> |
|
17 | 17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 18 | </valuemap> |
|
19 | 19 | </valuemap> |
|
20 | 20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | 21 | <value type="QString" key="language">QmlJS</value> |
|
22 | 22 | <valuemap type="QVariantMap" key="value"> |
|
23 | 23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 24 | </valuemap> |
|
25 | 25 | </valuemap> |
|
26 | 26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | 27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | 30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
33 | 33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
34 | 34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
35 | 35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
36 | 36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
37 | 37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
38 | 38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
39 | 39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
40 | 40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
41 | 41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
42 | 42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
43 | 43 | </valuemap> |
|
44 | 44 | </data> |
|
45 | 45 | <data> |
|
46 | 46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
47 | 47 | <valuemap type="QVariantMap"/> |
|
48 | 48 | </data> |
|
49 | 49 | <data> |
|
50 | 50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 51 | <valuemap type="QVariantMap"> |
|
52 | 52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
53 | 53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
54 | 54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
55 | 55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
56 | 56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
59 | 59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
60 | 60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | 62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
65 | 65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
66 |
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto"> |
|
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
|
67 | 67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 69 | </valuemap> |
|
70 | 70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
71 | 71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 | 73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
74 | 74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
75 | 75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
76 | 76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 77 | </valuemap> |
|
78 | 78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 | 81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
82 | 82 | </valuemap> |
|
83 | 83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
85 | 85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
88 | 88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
89 | 89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
90 | 90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 91 | </valuemap> |
|
92 | 92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 | 95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
96 | 96 | </valuemap> |
|
97 | 97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 | 100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> |
|
101 | 101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 | 102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
103 | 103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
104 | 104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
105 | 105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
106 | 106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 107 | </valuemap> |
|
108 |
<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"> | |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
|
119 | </valuemap> | |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
127 | </valuemap> | |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
132 | </valuemap> | |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
141 | </valuemap> | |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
146 | </valuemap> | |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
|
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> | |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> | |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
|
157 | </valuemap> | |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
|
108 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | |
|
159 | 109 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
160 | 110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
161 | 111 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
162 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
163 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
164 | 114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
165 | 115 | </valuemap> |
|
166 | 116 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
167 | 117 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
168 | 118 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | 119 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
170 | 120 | </valuemap> |
|
171 | 121 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
172 | 122 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
173 | 123 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | 124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
175 | 125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | 126 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
177 | 127 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | 128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
179 | 129 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | 130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
181 | 131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | 132 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
183 | 133 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | 134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
185 | 135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
187 | 137 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | 138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
189 | 139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | 140 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
191 | 141 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | 142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
193 | 143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
195 | 145 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | 146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
197 | 147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | 148 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
199 | 149 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | 150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
201 | 151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
202 | 152 | <value type="int">0</value> |
|
203 | 153 | <value type="int">1</value> |
|
204 | 154 | <value type="int">2</value> |
|
205 | 155 | <value type="int">3</value> |
|
206 | 156 | <value type="int">4</value> |
|
207 | 157 | <value type="int">5</value> |
|
208 | 158 | <value type="int">6</value> |
|
209 | 159 | <value type="int">7</value> |
|
210 | 160 | <value type="int">8</value> |
|
211 | 161 | <value type="int">9</value> |
|
212 | 162 | <value type="int">10</value> |
|
213 | 163 | <value type="int">11</value> |
|
214 | 164 | <value type="int">12</value> |
|
215 | 165 | <value type="int">13</value> |
|
216 | 166 | <value type="int">14</value> |
|
217 | 167 | </valuelist> |
|
218 | 168 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
219 | 169 | <value type="int">0</value> |
|
220 | 170 | <value type="int">1</value> |
|
221 | 171 | <value type="int">2</value> |
|
222 | 172 | <value type="int">3</value> |
|
223 | 173 | <value type="int">4</value> |
|
224 | 174 | <value type="int">5</value> |
|
225 | 175 | <value type="int">6</value> |
|
226 | 176 | <value type="int">7</value> |
|
227 | 177 | <value type="int">8</value> |
|
228 | 178 | <value type="int">9</value> |
|
229 | 179 | <value type="int">10</value> |
|
230 | 180 | <value type="int">11</value> |
|
231 | 181 | <value type="int">12</value> |
|
232 | 182 | <value type="int">13</value> |
|
233 | 183 | <value type="int">14</value> |
|
234 | 184 | </valuelist> |
|
235 |
<value type="QString" key="ProjectExplorer. |
|
|
236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> | |
|
237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> | |
|
238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
|
239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> | |
|
240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
|
241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> | |
|
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
|
244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
|
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
|
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> | |
|
248 | </valuemap> | |
|
249 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> | |
|
250 | <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"/> | |
|
253 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> | |
|
254 | <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> | |
|
257 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> | |
|
258 | <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> | |
|
261 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> | |
|
262 | <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> | |
|
265 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> | |
|
266 | <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> | |
|
269 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> | |
|
270 | <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"/> | |
|
273 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> | |
|
274 | <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> | |
|
277 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> | |
|
278 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
|
279 | <value type="int">0</value> | |
|
280 | <value type="int">1</value> | |
|
281 | <value type="int">2</value> | |
|
282 | <value type="int">3</value> | |
|
283 | <value type="int">4</value> | |
|
284 | <value type="int">5</value> | |
|
285 | <value type="int">6</value> | |
|
286 | <value type="int">7</value> | |
|
287 | <value type="int">8</value> | |
|
288 | <value type="int">9</value> | |
|
289 | <value type="int">10</value> | |
|
290 | <value type="int">11</value> | |
|
291 | <value type="int">12</value> | |
|
292 | <value type="int">13</value> | |
|
293 | <value type="int">14</value> | |
|
294 | </valuelist> | |
|
295 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> | |
|
296 | <value type="int">0</value> | |
|
297 | <value type="int">1</value> | |
|
298 | <value type="int">2</value> | |
|
299 | <value type="int">3</value> | |
|
300 | <value type="int">4</value> | |
|
301 | <value type="int">5</value> | |
|
302 | <value type="int">6</value> | |
|
303 | <value type="int">7</value> | |
|
304 | <value type="int">8</value> | |
|
305 | <value type="int">9</value> | |
|
306 | <value type="int">10</value> | |
|
307 | <value type="int">11</value> | |
|
308 | <value type="int">12</value> | |
|
309 | <value type="int">13</value> | |
|
310 | <value type="int">14</value> | |
|
311 | </valuelist> | |
|
312 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> | |
|
185 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">rmapplugin</value> | |
|
313 | 186 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
314 | 187 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
315 | 188 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
316 | 189 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
317 |
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile"> |
|
|
190 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">rmapplugin/rmapplugin.pro</value> | |
|
318 | 191 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
319 | 192 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
320 | 193 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
321 | 194 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
322 | 195 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
323 | 196 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
324 | 197 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
325 | 198 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> |
|
326 | 199 | </valuemap> |
|
327 |
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount"> |
|
|
200 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> | |
|
328 | 201 | </valuemap> |
|
329 | 202 | </data> |
|
330 | 203 | <data> |
|
331 | 204 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
332 | 205 | <value type="int">1</value> |
|
333 | 206 | </data> |
|
334 | 207 | <data> |
|
335 | 208 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
336 |
<value type="QString">{ |
|
|
209 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
|
337 | 210 | </data> |
|
338 | 211 | <data> |
|
339 | 212 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
340 | 213 | <value type="int">10</value> |
|
341 | 214 | </data> |
|
342 | 215 | </qtcreator> |
@@ -1,398 +1,409 | |||
|
1 | 1 | #include "hkdisplay.h" |
|
2 | 2 | |
|
3 | 3 | HKDisplay::HKDisplay(QWidget *parent) : |
|
4 | 4 | QWidget(parent) |
|
5 | 5 | { |
|
6 | QFont font; | |
|
7 | font = QFont(this->fontInfo().family(), HK_INFORMATION_FONT_SIZE, QFont::Light); | |
|
8 | ||
|
6 | 9 | mainLayout = new QGridLayout(); |
|
7 | 10 | |
|
8 | 11 | setupLFRStatusWord(); |
|
9 | 12 | setupLFRSWVersion(); |
|
10 | 13 | setupTCStatistics(); |
|
11 | 14 | setupAnomalyStatistics(); |
|
12 | 15 | setupSpaceWireIFStatistics(); |
|
13 | 16 | setupErrorCountersSpaceWire(); |
|
14 | 17 | |
|
18 | groupbox_lfrStatusWord->setFont(font); | |
|
19 | groupbox_lfrSWVersion->setFont(font); | |
|
20 | groupbox_tcStatistics->setFont(font); | |
|
21 | groupbox_anomalyStatistics->setFont(font); | |
|
22 | groupbox_spacewireIFStatisctics->setFont(font); | |
|
23 | groupbox_errorCountersSpaceWire->setFont(font); | |
|
24 | ||
|
15 | 25 | mainLayout->addWidget(groupbox_lfrStatusWord, 0,0,1,1); |
|
16 | 26 | mainLayout->addWidget(groupbox_lfrSWVersion, 0,1,1,1); |
|
27 | mainLayout->addWidget(groupbox_anomalyStatistics, 0,2,1,1); | |
|
17 | 28 | mainLayout->addWidget(groupbox_tcStatistics, 1,0,1,1); |
|
18 |
mainLayout->addWidget(groupbox_ |
|
|
19 |
mainLayout->addWidget(groupbox_ |
|
|
20 | mainLayout->addWidget(groupbox_errorCountersSpaceWire, 1, 3, 1, 1); | |
|
21 |
mainLayout->set |
|
|
29 | mainLayout->addWidget(groupbox_spacewireIFStatisctics, 1, 1, 1, 1); | |
|
30 | mainLayout->addWidget(groupbox_errorCountersSpaceWire, 1, 2, 1, 1); | |
|
31 | mainLayout->setColumnStretch(3, 1); | |
|
32 | mainLayout->setRowStretch(2, 1); | |
|
22 | 33 | |
|
23 | 34 | this->setLayout(mainLayout); |
|
24 | 35 | } |
|
25 | 36 | |
|
26 | 37 | void HKDisplay::setupLFRStatusWord() |
|
27 | 38 | { |
|
28 | 39 | groupbox_lfrStatusWord = new QGroupBox("LFR Status Word"); |
|
29 | 40 | box_lfrStatusWord = new QVBoxLayout(); |
|
30 | 41 | hk_lfr_mode = new QLabel("hk_lfr_mode: -"); |
|
31 | 42 | hk_lfr_dpu_spw_enabled = new QLabel("hk_lfr_dpu_spw_enabled: -"); |
|
32 | 43 | hk_lfr_dpu_link_state = new QLabel("hk_lfr_dpu_link_state: -"); |
|
33 | 44 | sy_lfr_watchdog_enabled = new QLabel("sy_lfr_watchdog_enabled: -"); |
|
34 | 45 | hk_lfr_calib_enabled = new QLabel("hk_lfr_calib_enabled: -"); |
|
35 | 46 | hk_lfr_reset_cause = new QLabel("hk_lfr_reset_cause: -"); |
|
36 | 47 | box_lfrStatusWord->addWidget(hk_lfr_mode); |
|
37 | 48 | box_lfrStatusWord->addWidget(hk_lfr_dpu_spw_enabled); |
|
38 | 49 | box_lfrStatusWord->addWidget(hk_lfr_dpu_link_state); |
|
39 | 50 | box_lfrStatusWord->addWidget(sy_lfr_watchdog_enabled); |
|
40 | 51 | box_lfrStatusWord->addWidget(hk_lfr_calib_enabled); |
|
41 | 52 | box_lfrStatusWord->addWidget(hk_lfr_reset_cause); |
|
42 | 53 | box_lfrStatusWord->insertStretch(6); |
|
43 | 54 | groupbox_lfrStatusWord->setLayout(box_lfrStatusWord); |
|
44 | 55 | } |
|
45 | 56 | |
|
46 | 57 | void HKDisplay::setupLFRSWVersion() |
|
47 | 58 | { |
|
48 | 59 | groupbox_lfrSWVersion = new QGroupBox("LFR Software Version"); |
|
49 | 60 | box_lfrSWVersion = new QVBoxLayout(); |
|
50 | 61 | sy_lfr_sw_version_n1 = new QLabel("sy_lfr_sw_version_n1: -"); |
|
51 | 62 | sy_lfr_sw_version_n2 = new QLabel("sy_lfr_sw_version_n2: -"); |
|
52 | 63 | sy_lfr_sw_version_n3 = new QLabel("sy_lfr_sw_version_n3: -"); |
|
53 | 64 | sy_lfr_sw_version_n4 = new QLabel("sy_lfr_sw_version_n4: -"); |
|
54 | 65 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n1); |
|
55 | 66 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n2); |
|
56 | 67 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n3); |
|
57 | 68 | box_lfrSWVersion->addWidget(sy_lfr_sw_version_n4); |
|
58 | 69 | box_lfrSWVersion->insertStretch(4); |
|
59 | 70 | groupbox_lfrSWVersion->setLayout(box_lfrSWVersion); |
|
60 | 71 | } |
|
61 | 72 | |
|
62 | 73 | void HKDisplay::setupTCStatistics() |
|
63 | 74 | { |
|
64 | 75 | groupbox_tcStatistics = new QGroupBox("TC Statistics"); |
|
65 | 76 | box_tcStatistics = new QVBoxLayout(); |
|
66 | 77 | hk_lfr_update_info_tc_cnt = new QLabel("hk_lfr_update_info_tc_cnt: -"); |
|
67 | 78 | hk_lfr_update_time_tc_cnt = new QLabel("hk_lfr_update_time_tc_cnt: -"); |
|
68 | 79 | hk_dpu_exe_tc_lfr_cnt = new QLabel("hk_dpu_exe_tc_lfr_cnt: -"); |
|
69 | 80 | hk_dpu_rej_tc_lfr_cnt = new QLabel("hk_dpu_rej_tc_lfr_cnt: -"); |
|
70 | 81 | hk_lfr_last_exe_tc_id = new QLabel("hk_lfr_last_exe_tc_id: -"); |
|
71 | 82 | hk_lfr_last_exe_tc_type = new QLabel("hk_lfr_last_exe_tc_type: -"); |
|
72 | 83 | hk_lfr_last_exe_tc_subtype = new QLabel("hk_lfr_last_exe_tc_subtype: -"); |
|
73 | 84 | hk_lfr_last_exe_tc_time = new QLabel("hk_lfr_last_exe_tc_time: -"); |
|
74 | 85 | hk_lfr_last_rej_tc_id = new QLabel("hk_lfr_last_rej_tc_id: -"); |
|
75 | 86 | hk_lfr_last_rej_tc_type = new QLabel("hk_lfr_last_rej_tc_type: -"); |
|
76 | 87 | hk_lfr_last_rej_tc_subtype = new QLabel("hk_lfr_last_rej_tc_subtype: -"); |
|
77 | 88 | hk_lfr_last_rej_tc_time = new QLabel("hk_lfr_last_rej_tc_time: -"); |
|
78 | 89 | box_tcStatistics->addWidget(hk_lfr_update_info_tc_cnt); |
|
79 | 90 | box_tcStatistics->addWidget(hk_lfr_update_time_tc_cnt); |
|
80 | 91 | box_tcStatistics->addWidget(hk_dpu_exe_tc_lfr_cnt); |
|
81 | 92 | box_tcStatistics->addWidget(hk_dpu_rej_tc_lfr_cnt); |
|
82 | 93 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_id); |
|
83 | 94 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_type); |
|
84 | 95 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_subtype); |
|
85 | 96 | box_tcStatistics->addWidget(hk_lfr_last_exe_tc_time); |
|
86 | 97 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_id); |
|
87 | 98 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_type); |
|
88 | 99 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_subtype); |
|
89 | 100 | box_tcStatistics->addWidget(hk_lfr_last_rej_tc_time); |
|
90 | 101 | box_tcStatistics->insertStretch(12, 1); |
|
91 | 102 | groupbox_tcStatistics->setLayout(box_tcStatistics); |
|
92 | 103 | } |
|
93 | 104 | |
|
94 | 105 | void HKDisplay::setupAnomalyStatistics() |
|
95 | 106 | { |
|
96 | 107 | groupbox_anomalyStatistics = new QGroupBox("Anomaly Statistics"); |
|
97 | 108 | box_anomalyStatistics = new QVBoxLayout(); |
|
98 | 109 | hk_lfr_le_cnt = new QLabel("hk_lfr_le_cnt: -"); |
|
99 | 110 | hk_lfr_me_cnt = new QLabel("hk_lfr_me_cnt: -"); |
|
100 | 111 | hk_lfr_he_cnt = new QLabel("hk_lfr_he_cnt: -"); |
|
101 | 112 | hk_lfr_last_er_rid = new QLabel("hk_lfr_last_er_rid: -"); |
|
102 | 113 | hk_lfr_last_er_code = new QLabel("hk_lfr_last_er_code: -"); |
|
103 | 114 | hk_lfr_last_er_time = new QLabel("hk_lfr_last_er_time: -"); |
|
104 | 115 | box_anomalyStatistics->addWidget(hk_lfr_le_cnt); |
|
105 | 116 | box_anomalyStatistics->addWidget(hk_lfr_me_cnt); |
|
106 | 117 | box_anomalyStatistics->addWidget(hk_lfr_he_cnt); |
|
107 | 118 | box_anomalyStatistics->addWidget(hk_lfr_last_er_rid); |
|
108 | 119 | box_anomalyStatistics->addWidget(hk_lfr_last_er_code); |
|
109 | 120 | box_anomalyStatistics->addWidget(hk_lfr_last_er_time); |
|
110 | 121 | box_anomalyStatistics->insertStretch(6, 1); |
|
111 | 122 | groupbox_anomalyStatistics->setLayout(box_anomalyStatistics); |
|
112 | 123 | } |
|
113 | 124 | |
|
114 | 125 | void HKDisplay::setupSpaceWireIFStatistics() |
|
115 | 126 | { |
|
116 | 127 | groupbox_spacewireIFStatisctics = new QGroupBox("SpaceWire IF Statistics"); |
|
117 | 128 | box_spacewireIFStatisctics = new QVBoxLayout(); |
|
118 | 129 | |
|
119 | 130 | hk_lfr_dpu_spw_pkt_rcv_cnt = new QLabel("hk_lfr_dpu_spw_pkt_rcv_cnt: -"); |
|
120 | 131 | hk_lfr_dpu_spw_pkt_sent_cnt = new QLabel("hk_lfr_dpu_spw_pkt_sent_cnt: -"); |
|
121 | 132 | hk_lfr_dpu_spw_tick_out_cnt = new QLabel("hk_lfr_dpu_spw_tick_out_cnt: -"); |
|
122 | 133 | hk_lfr_dpu_spw_last_timc = new QLabel("hk_lfr_dpu_spw_last_timc: -"); |
|
123 | 134 | |
|
124 | 135 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_rcv_cnt); |
|
125 | 136 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_pkt_sent_cnt); |
|
126 | 137 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_tick_out_cnt); |
|
127 | 138 | box_spacewireIFStatisctics->addWidget(hk_lfr_dpu_spw_last_timc); |
|
128 | 139 | box_spacewireIFStatisctics->insertStretch(5); |
|
129 | 140 | |
|
130 | 141 | groupbox_spacewireIFStatisctics->setLayout(box_spacewireIFStatisctics->layout()); |
|
131 | 142 | } |
|
132 | 143 | |
|
133 | 144 | void HKDisplay::setupErrorCountersSpaceWire() |
|
134 | 145 | { |
|
135 | 146 | groupbox_errorCountersSpaceWire = new QGroupBox("SpaceWire Error Counters"); |
|
136 | 147 | box_errorCountersSpaceWire = new QVBoxLayout(); |
|
137 | 148 | |
|
138 | 149 | hk_lfr_dpu_spw_parity = new QLabel("hk_lfr_dpu_spw_parity: -"); |
|
139 | 150 | hk_lfr_dpu_spw_disconnect = new QLabel("hk_lfr_dpu_spw_disconnect: -"); |
|
140 | 151 | hk_lfr_dpu_spw_escape = new QLabel("hk_lfr_dpu_spw_escape: -"); |
|
141 | 152 | hk_lfr_dpu_spw_credit = new QLabel("hk_lfr_dpu_spw_credit: -"); |
|
142 | 153 | hk_lfr_dpu_spw_write_sync = new QLabel("hk_lfr_dpu_spw_write_sync: -"); |
|
143 | 154 | hk_lfr_dpu_spw_rx_ahb = new QLabel("hk_lfr_dpu_spw_rx_ahb: -"); |
|
144 | 155 | hk_lfr_dpu_spw_tx_ahb = new QLabel("hk_lfr_dpu_spw_tx_ahb: -"); |
|
145 | 156 | hk_lfr_dpu_spw_header_crc = new QLabel("hk_lfr_dpu_spw_header_crc: -"); |
|
146 | 157 | hk_lfr_dpu_spw_data_crc = new QLabel("hk_lfr_dpu_spw_data_crc: -"); |
|
147 | 158 | hk_lfr_dpu_spw_early_eop = new QLabel("hk_lfr_dpu_spw_early_eop: -"); |
|
148 | 159 | hk_lfr_dpu_spw_invalid_addr = new QLabel("hk_lfr_dpu_spw_invalid_addr: -"); |
|
149 | 160 | hk_lfr_dpu_spw_eep = new QLabel("hk_lfr_dpu_spw_eep: -"); |
|
150 | 161 | hk_lfr_dpu_spw_rx_too_big = new QLabel("hk_lfr_dpu_spw_rx_too_big: -"); |
|
151 | 162 | |
|
152 | 163 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_parity); |
|
153 | 164 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_disconnect); |
|
154 | 165 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_escape); |
|
155 | 166 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_credit); |
|
156 | 167 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_write_sync); |
|
157 | 168 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_ahb); |
|
158 | 169 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_tx_ahb); |
|
159 | 170 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_header_crc); |
|
160 | 171 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_data_crc); |
|
161 | 172 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_early_eop); |
|
162 | 173 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_invalid_addr); |
|
163 | 174 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_eep); |
|
164 | 175 | box_errorCountersSpaceWire->addWidget(hk_lfr_dpu_spw_rx_too_big); |
|
165 | 176 | |
|
166 | 177 | groupbox_errorCountersSpaceWire->setLayout(box_errorCountersSpaceWire->layout()); |
|
167 | 178 | } |
|
168 | 179 | |
|
169 | 180 | void HKDisplay::displayPacket(TMPacketToRead *tmPacketToRead) |
|
170 | 181 | { |
|
171 | 182 | Packet_TM_LFR_HK_t *housekeepingPacket; |
|
172 | 183 | if (tmPacketToRead->size != HK_PACKET_SIZE) { |
|
173 | 184 | emit displayMessage("in displayPacket *** HK packet size is " |
|
174 | 185 | + QString::number(tmPacketToRead->size) |
|
175 | 186 | + " instead of " |
|
176 | 187 | + QString::number(HK_PACKET_SIZE)); |
|
177 | 188 | } |
|
178 | 189 | else { |
|
179 | 190 | housekeepingPacket = (Packet_TM_LFR_HK_t *) tmPacketToRead->Value; |
|
180 | 191 | |
|
181 | 192 | updateLFRMode(housekeepingPacket); |
|
182 | 193 | updateSWVersion(housekeepingPacket); |
|
183 | 194 | updateTCStatistics(housekeepingPacket); |
|
184 | 195 | updateAnomalyStatistics(housekeepingPacket); |
|
185 | 196 | updateSpaceWireIFStatistics(housekeepingPacket); |
|
186 | 197 | updateErrorCountersSpaceWire(housekeepingPacket); |
|
187 | 198 | } |
|
188 | 199 | } |
|
189 | 200 | |
|
190 | 201 | void HKDisplay::updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
191 | 202 | { |
|
192 | 203 | hk_lfr_mode->setText("hk_lfr_mode: " |
|
193 | 204 | +QString::number( ( (housekeepingPacket->lfr_status_word[0] & 0x70) >> 4 ) ) |
|
194 | 205 | ); |
|
195 | 206 | |
|
196 | 207 | } |
|
197 | 208 | |
|
198 | 209 | void HKDisplay::updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
199 | 210 | { |
|
200 | 211 | sy_lfr_sw_version_n1->setText("sy_lfr_sw_version_n1: " |
|
201 | 212 | +QString::number( housekeepingPacket->lfr_sw_version[0] ) |
|
202 | 213 | ); |
|
203 | 214 | sy_lfr_sw_version_n2->setText("sy_lfr_sw_version_n2: " |
|
204 | 215 | +QString::number( housekeepingPacket->lfr_sw_version[1] ) |
|
205 | 216 | ); |
|
206 | 217 | sy_lfr_sw_version_n3->setText("sy_lfr_sw_version_n3: " |
|
207 | 218 | +QString::number( housekeepingPacket->lfr_sw_version[2] ) |
|
208 | 219 | ); |
|
209 | 220 | sy_lfr_sw_version_n4->setText("sy_lfr_sw_version_n4: " |
|
210 | 221 | +QString::number( housekeepingPacket->lfr_sw_version[3] ) |
|
211 | 222 | ); |
|
212 | 223 | } |
|
213 | 224 | |
|
214 | 225 | void HKDisplay::updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
215 | 226 | { |
|
216 | 227 | // TC Statistics |
|
217 | 228 | hk_lfr_update_info_tc_cnt->setText("hk_lfr_update_info_tc_cnt: " |
|
218 | 229 | + QString::number( |
|
219 | 230 | housekeepingPacket->hk_lfr_update_info_tc_cnt[0] * 256 |
|
220 | 231 | + housekeepingPacket->hk_lfr_update_info_tc_cnt[1]) |
|
221 | 232 | ); |
|
222 | 233 | hk_lfr_update_time_tc_cnt->setText("hk_lfr_update_time_tc_cnt: " |
|
223 | 234 | + QString::number( |
|
224 | 235 | housekeepingPacket->hk_lfr_update_time_tc_cnt[0] * 256 |
|
225 | 236 | + housekeepingPacket->hk_lfr_update_time_tc_cnt[1]) |
|
226 | 237 | ); |
|
227 | 238 | hk_dpu_exe_tc_lfr_cnt->setText("hk_dpu_exe_tc_lfr_cnt: " |
|
228 | 239 | + QString::number( |
|
229 | 240 | housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[0] * 256 |
|
230 | 241 | + housekeepingPacket->hk_dpu_exe_tc_lfr_cnt[1]) |
|
231 | 242 | ); |
|
232 | 243 | hk_dpu_rej_tc_lfr_cnt->setText("hk_dpu_rej_tc_lfr_cnt: " |
|
233 | 244 | + QString::number( |
|
234 | 245 | housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[0] * 256 |
|
235 | 246 | + housekeepingPacket->hk_dpu_rej_tc_lfr_cnt[1]) |
|
236 | 247 | ); |
|
237 | 248 | hk_lfr_last_exe_tc_id->setText("hk_lfr_last_exe_tc_id: " |
|
238 | 249 | + QString::number( |
|
239 | 250 | housekeepingPacket->hk_lfr_last_exe_tc_id[0] * 256 |
|
240 | 251 | + housekeepingPacket->hk_lfr_last_exe_tc_id[1], 16) |
|
241 | 252 | ); |
|
242 | 253 | hk_lfr_last_exe_tc_type->setText("hk_lfr_last_exe_tc_type: " |
|
243 | 254 | + QString::number( |
|
244 | 255 | housekeepingPacket->hk_lfr_last_exe_tc_type[0] * 256 |
|
245 | 256 | + housekeepingPacket->hk_lfr_last_exe_tc_type[1]) |
|
246 | 257 | ); |
|
247 | 258 | hk_lfr_last_exe_tc_subtype->setText("hk_lfr_last_exe_tc_subtype: " |
|
248 | 259 | + QString::number( |
|
249 | 260 | housekeepingPacket->hk_lfr_last_exe_tc_subtype[0] * 256 |
|
250 | 261 | + housekeepingPacket->hk_lfr_last_exe_tc_subtype[1]) |
|
251 | 262 | ); |
|
252 | 263 | hk_lfr_last_exe_tc_time->setText("hk_lfr_last_exe_tc_time: " |
|
253 | 264 | + QString::number( |
|
254 | 265 | (housekeepingPacket->hk_lfr_last_exe_tc_time[0] << 24) |
|
255 | 266 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[1] << 16) |
|
256 | 267 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[2] << 8) |
|
257 | 268 | + (housekeepingPacket->hk_lfr_last_exe_tc_time[3]), 16 |
|
258 | 269 | ) |
|
259 | 270 | ); |
|
260 | 271 | hk_lfr_last_rej_tc_id->setText("hk_lfr_last_rej_tc_id: " |
|
261 | 272 | + QString::number( |
|
262 | 273 | housekeepingPacket->hk_lfr_last_rej_tc_id[0] * 256 |
|
263 | 274 | + housekeepingPacket->hk_lfr_last_rej_tc_id[1], 16) |
|
264 | 275 | ); |
|
265 | 276 | hk_lfr_last_rej_tc_type->setText("hk_lfr_last_rej_tc_type: " |
|
266 | 277 | + QString::number( |
|
267 | 278 | housekeepingPacket->hk_lfr_last_rej_tc_type[0] * 256 |
|
268 | 279 | + housekeepingPacket->hk_lfr_last_rej_tc_type[1]) |
|
269 | 280 | ); |
|
270 | 281 | hk_lfr_last_rej_tc_subtype->setText("hk_lfr_last_rej_tc_subtype: " |
|
271 | 282 | + QString::number( |
|
272 | 283 | housekeepingPacket->hk_lfr_last_rej_tc_subtype[0] * 256 |
|
273 | 284 | + housekeepingPacket->hk_lfr_last_rej_tc_subtype[1]) |
|
274 | 285 | ); |
|
275 | 286 | hk_lfr_last_rej_tc_time->setText("hk_lfr_last_rej_tc_time: " |
|
276 | 287 | + QString::number( |
|
277 | 288 | (housekeepingPacket->hk_lfr_last_rej_tc_time[0] << 24) |
|
278 | 289 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[1] << 16) |
|
279 | 290 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[2] << 8) |
|
280 | 291 | + (housekeepingPacket->hk_lfr_last_rej_tc_time[3]), 16 |
|
281 | 292 | ) |
|
282 | 293 | ); |
|
283 | 294 | } |
|
284 | 295 | |
|
285 | 296 | void HKDisplay::updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
286 | 297 | { |
|
287 | 298 | // Anomaly Statistics |
|
288 | 299 | hk_lfr_le_cnt->setText("hk_lfr_le_cnt: " |
|
289 | 300 | + QString::number( |
|
290 | 301 | housekeepingPacket->hk_lfr_le_cnt[0] * 256 |
|
291 | 302 | + housekeepingPacket->hk_lfr_le_cnt[1]) |
|
292 | 303 | ); |
|
293 | 304 | hk_lfr_me_cnt->setText("hk_lfr_me_cnt: " |
|
294 | 305 | + QString::number( |
|
295 | 306 | housekeepingPacket->hk_lfr_me_cnt[0] * 256 |
|
296 | 307 | + housekeepingPacket->hk_lfr_me_cnt[1]) |
|
297 | 308 | ); |
|
298 | 309 | hk_lfr_he_cnt->setText("hk_lfr_he_cnt: " |
|
299 | 310 | + QString::number( |
|
300 | 311 | housekeepingPacket->hk_lfr_he_cnt[0] * 256 |
|
301 | 312 | + housekeepingPacket->hk_lfr_he_cnt[1]) |
|
302 | 313 | ); |
|
303 | 314 | hk_lfr_last_er_rid->setText("hk_lfr_last_er_rid: " |
|
304 | 315 | + QString::number( |
|
305 | 316 | housekeepingPacket->hk_lfr_last_er_rid[0] * 256 |
|
306 | 317 | + housekeepingPacket->hk_lfr_last_er_rid[1]) |
|
307 | 318 | ); |
|
308 | 319 | hk_lfr_last_er_code->setText("hk_lfr_last_er_code: " |
|
309 | 320 | + QString::number( |
|
310 | 321 | housekeepingPacket->hk_lfr_last_er_code) |
|
311 | 322 | ); |
|
312 | 323 | hk_lfr_last_er_time->setText("hk_lfr_last_er_time: " |
|
313 | 324 | + QString::number( |
|
314 | 325 | (housekeepingPacket->hk_lfr_last_er_time[0] << 24) |
|
315 | 326 | + (housekeepingPacket->hk_lfr_last_er_time[1] << 16) |
|
316 | 327 | + (housekeepingPacket->hk_lfr_last_er_time[2] << 8) |
|
317 | 328 | + (housekeepingPacket->hk_lfr_last_er_time[3]), 16 |
|
318 | 329 | ) |
|
319 | 330 | ); |
|
320 | 331 | } |
|
321 | 332 | |
|
322 | 333 | void HKDisplay::updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
323 | 334 | { |
|
324 | 335 | hk_lfr_dpu_spw_pkt_rcv_cnt->setText("hk_lfr_dpu_spw_pkt_rcv_cnt: " |
|
325 | 336 | + QString::number( |
|
326 | 337 | housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[0] * 256 |
|
327 | 338 | + housekeepingPacket->hk_lfr_dpu_spw_pkt_rcv_cnt[1]) |
|
328 | 339 | ); |
|
329 | 340 | hk_lfr_dpu_spw_pkt_sent_cnt->setText("hk_lfr_dpu_spw_pkt_sent_cnt: " |
|
330 | 341 | + QString::number( |
|
331 | 342 | housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[0] * 256 |
|
332 | 343 | + housekeepingPacket->hk_lfr_dpu_spw_pkt_sent_cnt[1]) |
|
333 | 344 | ); |
|
334 | 345 | hk_lfr_dpu_spw_tick_out_cnt->setText("hk_lfr_dpu_spw_tick_out_cnt: " |
|
335 | 346 | + QString::number( |
|
336 | 347 | housekeepingPacket->hk_lfr_dpu_spw_tick_out_cnt) |
|
337 | 348 | ); |
|
338 | 349 | hk_lfr_dpu_spw_last_timc->setText("hk_lfr_dpu_spw_last_timc: " |
|
339 | 350 | + QString::number( |
|
340 | 351 | housekeepingPacket->hk_lfr_dpu_spw_last_timc) |
|
341 | 352 | ); |
|
342 | 353 | } |
|
343 | 354 | |
|
344 | 355 | void HKDisplay::updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket) |
|
345 | 356 | { |
|
346 | 357 | hk_lfr_dpu_spw_parity->setText("hk_lfr_dpu_spw_parity: " |
|
347 | 358 | + QString::number( |
|
348 | 359 | housekeepingPacket->hk_lfr_dpu_spw_parity) |
|
349 | 360 | ); |
|
350 | 361 | hk_lfr_dpu_spw_disconnect->setText("hk_lfr_dpu_spw_disconnect: " |
|
351 | 362 | + QString::number( |
|
352 | 363 | housekeepingPacket->hk_lfr_dpu_spw_disconnect) |
|
353 | 364 | ); |
|
354 | 365 | hk_lfr_dpu_spw_escape->setText("hk_lfr_dpu_spw_escape: " |
|
355 | 366 | + QString::number( |
|
356 | 367 | housekeepingPacket->hk_lfr_dpu_spw_escape) |
|
357 | 368 | ); |
|
358 | 369 | hk_lfr_dpu_spw_credit->setText("hk_lfr_dpu_spw_credit: " |
|
359 | 370 | + QString::number( |
|
360 | 371 | housekeepingPacket->hk_lfr_dpu_spw_credit) |
|
361 | 372 | ); |
|
362 | 373 | hk_lfr_dpu_spw_write_sync->setText("hk_lfr_dpu_spw_write_sync: " |
|
363 | 374 | + QString::number( |
|
364 | 375 | housekeepingPacket->hk_lfr_dpu_spw_write_sync) |
|
365 | 376 | ); |
|
366 | 377 | hk_lfr_dpu_spw_rx_ahb->setText("hk_lfr_dpu_spw_rx_ahb: " |
|
367 | 378 | + QString::number( |
|
368 | 379 | housekeepingPacket->hk_lfr_dpu_spw_rx_ahb) |
|
369 | 380 | ); |
|
370 | 381 | hk_lfr_dpu_spw_tx_ahb->setText("hk_lfr_dpu_spw_tx_ahb: " |
|
371 | 382 | + QString::number( |
|
372 | 383 | housekeepingPacket->hk_lfr_dpu_spw_tx_ahb) |
|
373 | 384 | ); |
|
374 | 385 | hk_lfr_dpu_spw_header_crc->setText("hk_lfr_dpu_spw_header_crc: " |
|
375 | 386 | + QString::number( |
|
376 | 387 | housekeepingPacket->hk_lfr_dpu_spw_header_crc) |
|
377 | 388 | ); |
|
378 | 389 | hk_lfr_dpu_spw_data_crc->setText("hk_lfr_dpu_spw_data_crc: " |
|
379 | 390 | + QString::number( |
|
380 | 391 | housekeepingPacket->hk_lfr_dpu_spw_data_crc) |
|
381 | 392 | ); |
|
382 | 393 | hk_lfr_dpu_spw_early_eop->setText("hk_lfr_dpu_spw_early_eop: " |
|
383 | 394 | + QString::number( |
|
384 | 395 | housekeepingPacket->hk_lfr_dpu_spw_early_eop) |
|
385 | 396 | ); |
|
386 | 397 | hk_lfr_dpu_spw_invalid_addr->setText("hk_lfr_dpu_spw_invalid_addr: " |
|
387 | 398 | + QString::number( |
|
388 | 399 | housekeepingPacket->hk_lfr_dpu_spw_invalid_addr) |
|
389 | 400 | ); |
|
390 | 401 | hk_lfr_dpu_spw_eep->setText("hk_lfr_dpu_spw_eep: " |
|
391 | 402 | + QString::number( |
|
392 | 403 | housekeepingPacket->hk_lfr_dpu_spw_eep) |
|
393 | 404 | ); |
|
394 | 405 | hk_lfr_dpu_spw_rx_too_big->setText("hk_lfr_dpu_spw_rx_too_big: " |
|
395 | 406 | + QString::number( |
|
396 | 407 | housekeepingPacket->hk_lfr_dpu_spw_rx_too_big) |
|
397 | 408 | ); |
|
398 | 409 | } |
@@ -1,168 +1,169 | |||
|
1 | 1 | #ifndef HKDISPLAY_H |
|
2 | 2 | #define HKDISPLAY_H |
|
3 | 3 | |
|
4 | 4 | #include <QWidget> |
|
5 | 5 | #include <QLabel> |
|
6 | 6 | #include <QGroupBox> |
|
7 | 7 | #include <QVBoxLayout> |
|
8 | 8 | #include <QGridLayout> |
|
9 | 9 | #include "tmpackettoread.h" |
|
10 | 10 | #include "ccsds_types.h" |
|
11 | 11 | |
|
12 | 12 | #define HK_PACKET_SIZE 126 + 4 |
|
13 | #define HK_INFORMATION_FONT_SIZE 9 | |
|
13 | 14 | |
|
14 | 15 | class HKDisplay : public QWidget |
|
15 | 16 | { |
|
16 | 17 | Q_OBJECT |
|
17 | 18 | public: |
|
18 | 19 | explicit HKDisplay(QWidget *parent = 0); |
|
19 | 20 | void displayPacket(TMPacketToRead *tmPacketToRead); |
|
20 | 21 | |
|
21 | 22 | void setupLFRStatusWord(); |
|
22 | 23 | void setupLFRSWVersion(); |
|
23 | 24 | void setupTCStatistics(); |
|
24 | 25 | void setupAnomalyStatistics(); |
|
25 | 26 | void setupSpaceWireIFStatistics(); |
|
26 | 27 | void setupErrorCountersSpaceWire(); |
|
27 | 28 | |
|
28 | 29 | void updateLFRMode(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
29 | 30 | void updateSWVersion(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
30 | 31 | void updateTCStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
31 | 32 | void updateAnomalyStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
32 | 33 | void updateSpaceWireIFStatistics(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
33 | 34 | void updateErrorCountersSpaceWire(Packet_TM_LFR_HK_t *housekeepingPacket); |
|
34 | 35 | |
|
35 | 36 | signals: |
|
36 | 37 | void displayMessage(QString message); |
|
37 | 38 | |
|
38 | 39 | public slots: |
|
39 | 40 | |
|
40 | 41 | private: |
|
41 | 42 | QGroupBox *groupbox_lfrStatusWord; |
|
42 | 43 | QGroupBox *groupbox_lfrSWVersion; |
|
43 | 44 | QGroupBox *groupbox_tcStatistics; |
|
44 | 45 | QGroupBox *groupbox_anomalyStatistics; |
|
45 | 46 | //*********************************** |
|
46 | 47 | //*********************************** |
|
47 | 48 | QGroupBox *groupbox_vhdlBlockStatus; |
|
48 | 49 | QGroupBox *groupbox_spacewireIFStatisctics; |
|
49 | 50 | QGroupBox *groupbox_ahbErrorStatistics; |
|
50 | 51 | QGroupBox *groupbox_temperatures; |
|
51 | 52 | QGroupBox *groupbox_errorCountersSpaceWire; |
|
52 | 53 | QGroupBox *groupbox_errorCountersTime; |
|
53 | 54 | |
|
54 | 55 | QGridLayout *mainLayout; |
|
55 | 56 | QVBoxLayout *box_lfrStatusWord; |
|
56 | 57 | QVBoxLayout *box_lfrSWVersion; |
|
57 | 58 | QVBoxLayout *box_tcStatistics; |
|
58 | 59 | QVBoxLayout *box_anomalyStatistics; |
|
59 | 60 | //*********************************** |
|
60 | 61 | //*********************************** |
|
61 | 62 | QVBoxLayout *box_vhdlBlockStatus; |
|
62 | 63 | QVBoxLayout *box_spacewireIFStatisctics; |
|
63 | 64 | QVBoxLayout *box_ahbErrorStatistics; |
|
64 | 65 | QVBoxLayout *box_temperatures; |
|
65 | 66 | QVBoxLayout *box_errorCountersSpaceWire; |
|
66 | 67 | QVBoxLayout *box_errorCountersTime; |
|
67 | 68 | |
|
68 | 69 | QLabel *hk_lfr_mode; |
|
69 | 70 | QLabel *hk_lfr_dpu_spw_enabled; |
|
70 | 71 | QLabel *hk_lfr_dpu_link_state; |
|
71 | 72 | QLabel *sy_lfr_watchdog_enabled; |
|
72 | 73 | QLabel *hk_lfr_calib_enabled; |
|
73 | 74 | QLabel *hk_lfr_reset_cause; |
|
74 | 75 | // sy_lfr_sw_version_ |
|
75 | 76 | QLabel *sy_lfr_sw_version_n1; |
|
76 | 77 | QLabel *sy_lfr_sw_version_n2; |
|
77 | 78 | QLabel *sy_lfr_sw_version_n3; |
|
78 | 79 | QLabel *sy_lfr_sw_version_n4; |
|
79 | 80 | QLabel *hk_lfr_update_info_tc_cnt; |
|
80 | 81 | QLabel *hk_lfr_update_time_tc_cnt; |
|
81 | 82 | QLabel *hk_dpu_exe_tc_lfr_cnt; |
|
82 | 83 | QLabel *hk_dpu_rej_tc_lfr_cnt; |
|
83 | 84 | // hk_lfr_last_exe_tc_ |
|
84 | 85 | QLabel *hk_lfr_last_exe_tc_id; |
|
85 | 86 | QLabel *hk_lfr_last_exe_tc_type; |
|
86 | 87 | QLabel *hk_lfr_last_exe_tc_subtype; |
|
87 | 88 | QLabel *hk_lfr_last_exe_tc_time; |
|
88 | 89 | // hk_lfr_last_rej_tc_ |
|
89 | 90 | QLabel *hk_lfr_last_rej_tc_id; |
|
90 | 91 | QLabel *hk_lfr_last_rej_tc_type; |
|
91 | 92 | QLabel *hk_lfr_last_rej_tc_subtype; |
|
92 | 93 | QLabel *hk_lfr_last_rej_tc_time; |
|
93 | 94 | |
|
94 | 95 | QLabel *hk_lfr_le_cnt; |
|
95 | 96 | QLabel *hk_lfr_me_cnt; |
|
96 | 97 | QLabel *hk_lfr_he_cnt; |
|
97 | 98 | // hk_lfr_last_er |
|
98 | 99 | QLabel *hk_lfr_last_er_rid; |
|
99 | 100 | QLabel *hk_lfr_last_er_code; |
|
100 | 101 | QLabel *hk_lfr_last_er_time; |
|
101 | 102 | //*********************************** |
|
102 | 103 | //*********************************** |
|
103 | 104 | //hk_lfr_vhdl_ |
|
104 | 105 | QLabel *hk_lfr_vhdl_aa; |
|
105 | 106 | QLabel *hk_lfr_vhdl_sm; |
|
106 | 107 | QLabel *hk_lfr_vhdl_fft; |
|
107 | 108 | QLabel *hk_lfr_vhdl_sr; |
|
108 | 109 | QLabel *hk_lfr_vhdl_cic; |
|
109 | 110 | QLabel *hk_lfr_vhdl_hk; |
|
110 | 111 | QLabel *hk_lfr_vhdl_iir; |
|
111 | 112 | QLabel *hk_lfr_vhdl_cal; |
|
112 | 113 | // hk_lfr_dpu_spw_ |
|
113 | 114 | QLabel *hk_lfr_dpu_spw_pkt_rcv_cnt; |
|
114 | 115 | QLabel *hk_lfr_dpu_spw_pkt_sent_cnt; |
|
115 | 116 | QLabel *hk_lfr_dpu_spw_tick_out_cnt; |
|
116 | 117 | QLabel *hk_lfr_dpu_spw_last_timc; |
|
117 | 118 | // hk_lfr_last_fail_addr |
|
118 | 119 | QLabel *hk_lfr_last_fail_addr; |
|
119 | 120 | // hk_lfr_temp_ |
|
120 | 121 | QLabel *hk_lfr_temp_scm; |
|
121 | 122 | QLabel *hk_lfr_temp_pcb; |
|
122 | 123 | QLabel *hk_lfr_temp_fpga; |
|
123 | 124 | // hk_lfr_dpu_spw_ |
|
124 | 125 | QLabel *hk_lfr_dpu_spw_parity; |
|
125 | 126 | QLabel *hk_lfr_dpu_spw_disconnect; |
|
126 | 127 | QLabel *hk_lfr_dpu_spw_escape; |
|
127 | 128 | QLabel *hk_lfr_dpu_spw_credit; |
|
128 | 129 | QLabel *hk_lfr_dpu_spw_write_sync; |
|
129 | 130 | QLabel *hk_lfr_dpu_spw_rx_ahb; |
|
130 | 131 | QLabel *hk_lfr_dpu_spw_tx_ahb; |
|
131 | 132 | QLabel *hk_lfr_dpu_spw_header_crc; |
|
132 | 133 | QLabel *hk_lfr_dpu_spw_data_crc; |
|
133 | 134 | QLabel *hk_lfr_dpu_spw_early_eop; |
|
134 | 135 | QLabel *hk_lfr_dpu_spw_invalid_addr; |
|
135 | 136 | QLabel *hk_lfr_dpu_spw_eep; |
|
136 | 137 | QLabel *hk_lfr_dpu_spw_rx_too_big; |
|
137 | 138 | // hk_lfr_timecode_ |
|
138 | 139 | QLabel *hk_lfr_timecode_erroneous; |
|
139 | 140 | QLabel *hk_lfr_timecode_missing; |
|
140 | 141 | QLabel *hk_lfr_timecode_invalid; |
|
141 | 142 | // hk_lfr_time_ |
|
142 | 143 | QLabel *hk_lfr_time_timecode_it; |
|
143 | 144 | QLabel *hk_lfr_time_not_synchro; |
|
144 | 145 | QLabel *hk_lfr_time_timecode_ctr; |
|
145 | 146 | // hk_lfr_buffer_dpu_ |
|
146 | 147 | QLabel *hk_lfr_buffer_dpu_tc_fifo; |
|
147 | 148 | QLabel *hk_lfr_buffer_dpu_tm_fifo; |
|
148 | 149 | // hk_lfr_ahb_ |
|
149 | 150 | QLabel *hk_lfr_ahb_correctable; |
|
150 | 151 | QLabel *hk_lfr_ahb_uncorrectable; |
|
151 | 152 | QLabel *hk_lfr_ahb_fails_trans; |
|
152 | 153 | // hk_lfr_adc_ |
|
153 | 154 | QLabel *hk_lfr_adc_failure; |
|
154 | 155 | QLabel *hk_lfr_adc_timeout; |
|
155 | 156 | QLabel *hk_lfr_toomany_err; |
|
156 | 157 | // hk_lfr_cpu_ |
|
157 | 158 | QLabel *hk_lfr_cpu_write_err; |
|
158 | 159 | QLabel *hk_lfr_cpu_ins_access_err; |
|
159 | 160 | QLabel *hk_lfr_cpu_illegal_ins; |
|
160 | 161 | QLabel *hk_lfr_cpu_privilegied_ins; |
|
161 | 162 | QLabel *hk_lfr_cpu_register_hw; |
|
162 | 163 | QLabel *hk_lfr_cpu_not_aligned; |
|
163 | 164 | QLabel *hk_lfr_cpu_data_exception; |
|
164 | 165 | QLabel *hk_lfr_cpu_div_exception; |
|
165 | 166 | QLabel *hk_lfr_cpu_arith_overflow; |
|
166 | 167 | }; |
|
167 | 168 | |
|
168 | 169 | #endif // HKDISPLAY_H |
@@ -1,382 +1,382 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: lfrsgse |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 1 |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 13:26:49 2013 | |
|
4 | 4 | # Project: gselesia.pro |
|
5 | 5 | # Template: app |
|
6 | 6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro |
|
7 | 7 | ############################################################################# |
|
8 | 8 | |
|
9 | 9 | ####### Compiler, tools and options |
|
10 | 10 | |
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 13 | DEFINES = -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED |
|
14 | 14 | CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) |
|
15 | 15 | CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) |
|
16 | 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 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = |
|
19 | 19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread |
|
20 | 20 | AR = ar cqs |
|
21 | 21 | RANLIB = |
|
22 | 22 | QMAKE = /usr/bin/qmake-qt4 |
|
23 | 23 | TAR = tar -cf |
|
24 | 24 | COMPRESS = gzip -9f |
|
25 | 25 | COPY = cp -f |
|
26 | 26 | SED = sed |
|
27 | 27 | COPY_FILE = $(COPY) |
|
28 | 28 | COPY_DIR = $(COPY) -r |
|
29 | 29 | STRIP = |
|
30 | 30 | INSTALL_FILE = install -m 644 -p |
|
31 | 31 | INSTALL_DIR = $(COPY_DIR) |
|
32 | 32 | INSTALL_PROGRAM = install -m 755 -p |
|
33 | 33 | DEL_FILE = rm -f |
|
34 | 34 | SYMLINK = ln -f -s |
|
35 | 35 | DEL_DIR = rmdir |
|
36 | 36 | MOVE = mv -f |
|
37 | 37 | CHK_DIR_EXISTS= test -d |
|
38 | 38 | MKDIR = mkdir -p |
|
39 | 39 | |
|
40 | 40 | ####### Output directory |
|
41 | 41 | |
|
42 | 42 | OBJECTS_DIR = ./ |
|
43 | 43 | |
|
44 | 44 | ####### Files |
|
45 | 45 | |
|
46 | 46 | SOURCES = main.cpp \ |
|
47 | 47 | mainwindow.cpp \ |
|
48 | 48 | mainwindowui.cpp \ |
|
49 | 49 | ../common_PLE/qipdialogbox.cpp \ |
|
50 | 50 | lfrxmlhandler.cpp \ |
|
51 | 51 | lfrxmlwriter.cpp \ |
|
52 | 52 | ../rmapplugin/tmstatistics.cpp \ |
|
53 | 53 | ../rmapplugin/tmpackettoread.cpp \ |
|
54 | 54 | ../rmapplugin/wfpacket.cpp \ |
|
55 | 55 | ../common_PLE/hkdisplay.cpp \ |
|
56 | 56 | lfrxmlparser.cpp \ |
|
57 | 57 | lfrspectrogram.cpp moc_mainwindow.cpp \ |
|
58 | 58 | moc_mainwindowui.cpp \ |
|
59 | 59 | moc_qipdialogbox.cpp \ |
|
60 | 60 | moc_lfrxmlhandler.cpp \ |
|
61 | 61 | moc_lfrxmlwriter.cpp \ |
|
62 | 62 | moc_tmstatistics.cpp \ |
|
63 | 63 | moc_tmpackettoread.cpp \ |
|
64 | 64 | moc_wfpacket.cpp \ |
|
65 | 65 | moc_hkdisplay.cpp \ |
|
66 | 66 | moc_lfrxmlparser.cpp \ |
|
67 | 67 | moc_lfrspectrogram.cpp |
|
68 | 68 | OBJECTS = main.o \ |
|
69 | 69 | mainwindow.o \ |
|
70 | 70 | mainwindowui.o \ |
|
71 | 71 | qipdialogbox.o \ |
|
72 | 72 | lfrxmlhandler.o \ |
|
73 | 73 | lfrxmlwriter.o \ |
|
74 | 74 | tmstatistics.o \ |
|
75 | 75 | tmpackettoread.o \ |
|
76 | 76 | wfpacket.o \ |
|
77 | 77 | hkdisplay.o \ |
|
78 | 78 | lfrxmlparser.o \ |
|
79 | 79 | lfrspectrogram.o \ |
|
80 | 80 | moc_mainwindow.o \ |
|
81 | 81 | moc_mainwindowui.o \ |
|
82 | 82 | moc_qipdialogbox.o \ |
|
83 | 83 | moc_lfrxmlhandler.o \ |
|
84 | 84 | moc_lfrxmlwriter.o \ |
|
85 | 85 | moc_tmstatistics.o \ |
|
86 | 86 | moc_tmpackettoread.o \ |
|
87 | 87 | moc_wfpacket.o \ |
|
88 | 88 | moc_hkdisplay.o \ |
|
89 | 89 | moc_lfrxmlparser.o \ |
|
90 | 90 | moc_lfrspectrogram.o |
|
91 | 91 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
92 | 92 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
93 | 93 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
94 | 94 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
95 | 95 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
96 | 96 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
97 | 97 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
98 | 98 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
99 | 99 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
100 | 100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
101 | 101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
102 | 102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
103 | 103 | /usr/lib64/qt4/mkspecs/features/debug.prf \ |
|
104 | 104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
105 | 105 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \ |
|
106 | 106 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
107 | 107 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
108 | 108 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
109 | 109 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
110 | 110 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
111 | 111 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
112 | 112 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
113 | 113 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
114 | 114 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
115 | 115 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
116 | 116 | gselesia.pro |
|
117 | 117 | QMAKE_TARGET = lfrsgse |
|
118 | 118 | DESTDIR = |
|
119 | 119 | TARGET = lfrsgse |
|
120 | 120 | |
|
121 | 121 | first: all |
|
122 | 122 | ####### Implicit rules |
|
123 | 123 | |
|
124 | 124 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
125 | 125 | |
|
126 | 126 | .cpp.o: |
|
127 | 127 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
128 | 128 | |
|
129 | 129 | .cc.o: |
|
130 | 130 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
131 | 131 | |
|
132 | 132 | .cxx.o: |
|
133 | 133 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
134 | 134 | |
|
135 | 135 | .C.o: |
|
136 | 136 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
137 | 137 | |
|
138 | 138 | .c.o: |
|
139 | 139 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
140 | 140 | |
|
141 | 141 | ####### Build rules |
|
142 | 142 | |
|
143 | 143 | all: Makefile $(TARGET) |
|
144 | 144 | |
|
145 | 145 | $(TARGET): $(OBJECTS) |
|
146 | 146 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
147 | 147 | { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true |
|
148 | 148 | |
|
149 | 149 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
150 | 150 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
151 | 151 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
152 | 152 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
153 | 153 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
154 | 154 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
155 | 155 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
156 | 156 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
157 | 157 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
158 | 158 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
159 | 159 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
160 | 160 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
161 | 161 | /usr/lib64/qt4/mkspecs/features/debug.prf \ |
|
162 | 162 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
163 | 163 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \ |
|
164 | 164 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
165 | 165 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
166 | 166 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
167 | 167 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
168 | 168 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
169 | 169 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
170 | 170 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
171 | 171 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
172 | 172 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
173 | 173 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
174 | 174 | /usr/lib64/libQtXml.prl \ |
|
175 | 175 | /usr/lib64/libQtCore.prl \ |
|
176 | 176 | /usr/lib64/libQtGui.prl \ |
|
177 | 177 | /usr/lib64/libQtNetwork.prl |
|
178 | 178 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro |
|
179 | 179 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
180 | 180 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
181 | 181 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
182 | 182 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
183 | 183 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
184 | 184 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
185 | 185 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
186 | 186 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
187 | 187 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
188 | 188 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
189 | 189 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
190 | 190 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
191 | 191 | /usr/lib64/qt4/mkspecs/features/debug.prf: |
|
192 | 192 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
193 | 193 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf: |
|
194 | 194 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
195 | 195 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
196 | 196 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
197 | 197 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
198 | 198 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
199 | 199 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
200 | 200 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
201 | 201 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
202 | 202 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
203 | 203 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
204 | 204 | /usr/lib64/libQtXml.prl: |
|
205 | 205 | /usr/lib64/libQtCore.prl: |
|
206 | 206 | /usr/lib64/libQtGui.prl: |
|
207 | 207 | /usr/lib64/libQtNetwork.prl: |
|
208 | 208 | qmake: FORCE |
|
209 | 209 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro |
|
210 | 210 | |
|
211 | 211 | dist: |
|
212 | 212 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0 |
|
213 | 213 | $(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 |
|
214 | 214 | |
|
215 | 215 | |
|
216 | 216 | clean:compiler_clean |
|
217 | 217 | -$(DEL_FILE) $(OBJECTS) |
|
218 | 218 | -$(DEL_FILE) *~ core *.core |
|
219 | 219 | |
|
220 | 220 | |
|
221 | 221 | ####### Sub-libraries |
|
222 | 222 | |
|
223 | 223 | distclean: clean |
|
224 | 224 | -$(DEL_FILE) $(TARGET) |
|
225 | 225 | -$(DEL_FILE) Makefile |
|
226 | 226 | |
|
227 | 227 | |
|
228 | 228 | check: first |
|
229 | 229 | |
|
230 | 230 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
231 | 231 | |
|
232 | 232 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
233 | 233 | |
|
234 | 234 | 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 |
|
235 | 235 | compiler_moc_header_clean: |
|
236 | 236 | -$(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 |
|
237 | 237 | moc_mainwindow.cpp: lfrxmlhandler.h \ |
|
238 | 238 | lfrxmlwriter.h \ |
|
239 | 239 | mainwindowui.h \ |
|
240 | 240 | lfrspectrogram.h \ |
|
241 | 241 | lfrxmlparser.h \ |
|
242 | 242 | mainwindow.h |
|
243 | 243 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp |
|
244 | 244 | |
|
245 | 245 | moc_mainwindowui.cpp: lfrspectrogram.h \ |
|
246 | 246 | mainwindowui.h |
|
247 | 247 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp |
|
248 | 248 | |
|
249 | 249 | moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
250 | 250 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp |
|
251 | 251 | |
|
252 | 252 | moc_lfrxmlhandler.cpp: lfrxmlhandler.h |
|
253 | 253 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp |
|
254 | 254 | |
|
255 | 255 | moc_lfrxmlwriter.cpp: lfrxmlwriter.h |
|
256 | 256 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp |
|
257 | 257 | |
|
258 | 258 | moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h |
|
259 | 259 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp |
|
260 | 260 | |
|
261 | 261 | moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h |
|
262 | 262 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp |
|
263 | 263 | |
|
264 | 264 | moc_wfpacket.cpp: ../rmapplugin/wfpacket.h |
|
265 | 265 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp |
|
266 | 266 | |
|
267 | 267 | moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h |
|
268 | 268 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp |
|
269 | 269 | |
|
270 | 270 | moc_lfrxmlparser.cpp: lfrxmlparser.h |
|
271 | 271 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp |
|
272 | 272 | |
|
273 | 273 | moc_lfrspectrogram.cpp: lfrspectrogram.h |
|
274 | 274 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp |
|
275 | 275 | |
|
276 | 276 | compiler_rcc_make_all: |
|
277 | 277 | compiler_rcc_clean: |
|
278 | 278 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
279 | 279 | compiler_image_collection_clean: |
|
280 | 280 | -$(DEL_FILE) qmake_image_collection.cpp |
|
281 | 281 | compiler_moc_source_make_all: |
|
282 | 282 | compiler_moc_source_clean: |
|
283 | 283 | compiler_uic_make_all: |
|
284 | 284 | compiler_uic_clean: |
|
285 | 285 | compiler_yacc_decl_make_all: |
|
286 | 286 | compiler_yacc_decl_clean: |
|
287 | 287 | compiler_yacc_impl_make_all: |
|
288 | 288 | compiler_yacc_impl_clean: |
|
289 | 289 | compiler_lex_make_all: |
|
290 | 290 | compiler_lex_clean: |
|
291 | 291 | compiler_clean: compiler_moc_header_clean |
|
292 | 292 | |
|
293 | 293 | ####### Compile |
|
294 | 294 | |
|
295 | 295 | main.o: main.cpp mainwindow.h \ |
|
296 | 296 | lfrxmlhandler.h \ |
|
297 | 297 | lfrxmlwriter.h \ |
|
298 | 298 | mainwindowui.h \ |
|
299 | 299 | lfrspectrogram.h \ |
|
300 | 300 | lfrxmlparser.h |
|
301 | 301 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp |
|
302 | 302 | |
|
303 | 303 | mainwindow.o: mainwindow.cpp mainwindow.h \ |
|
304 | 304 | lfrxmlhandler.h \ |
|
305 | 305 | lfrxmlwriter.h \ |
|
306 | 306 | mainwindowui.h \ |
|
307 | 307 | lfrspectrogram.h \ |
|
308 | 308 | lfrxmlparser.h |
|
309 | 309 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp |
|
310 | 310 | |
|
311 | 311 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ |
|
312 | 312 | lfrspectrogram.h |
|
313 | 313 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp |
|
314 | 314 | |
|
315 | 315 | qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
316 | 316 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
317 | 317 | |
|
318 | 318 | lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h |
|
319 | 319 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp |
|
320 | 320 | |
|
321 | 321 | lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h |
|
322 | 322 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp |
|
323 | 323 | |
|
324 | 324 | tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h |
|
325 | 325 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp |
|
326 | 326 | |
|
327 | 327 | tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h |
|
328 | 328 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp |
|
329 | 329 | |
|
330 | 330 | wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h |
|
331 | 331 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp |
|
332 | 332 | |
|
333 | 333 | hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h |
|
334 | 334 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp |
|
335 | 335 | |
|
336 | 336 | lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h |
|
337 | 337 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp |
|
338 | 338 | |
|
339 | 339 | lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h |
|
340 | 340 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp |
|
341 | 341 | |
|
342 | 342 | moc_mainwindow.o: moc_mainwindow.cpp |
|
343 | 343 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp |
|
344 | 344 | |
|
345 | 345 | moc_mainwindowui.o: moc_mainwindowui.cpp |
|
346 | 346 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp |
|
347 | 347 | |
|
348 | 348 | moc_qipdialogbox.o: moc_qipdialogbox.cpp |
|
349 | 349 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp |
|
350 | 350 | |
|
351 | 351 | moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp |
|
352 | 352 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp |
|
353 | 353 | |
|
354 | 354 | moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp |
|
355 | 355 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp |
|
356 | 356 | |
|
357 | 357 | moc_tmstatistics.o: moc_tmstatistics.cpp |
|
358 | 358 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp |
|
359 | 359 | |
|
360 | 360 | moc_tmpackettoread.o: moc_tmpackettoread.cpp |
|
361 | 361 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp |
|
362 | 362 | |
|
363 | 363 | moc_wfpacket.o: moc_wfpacket.cpp |
|
364 | 364 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp |
|
365 | 365 | |
|
366 | 366 | moc_hkdisplay.o: moc_hkdisplay.cpp |
|
367 | 367 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp |
|
368 | 368 | |
|
369 | 369 | moc_lfrxmlparser.o: moc_lfrxmlparser.cpp |
|
370 | 370 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp |
|
371 | 371 | |
|
372 | 372 | moc_lfrspectrogram.o: moc_lfrspectrogram.cpp |
|
373 | 373 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp |
|
374 | 374 | |
|
375 | 375 | ####### Install |
|
376 | 376 | |
|
377 | 377 | install: FORCE |
|
378 | 378 | |
|
379 | 379 | uninstall: FORCE |
|
380 | 380 | |
|
381 | 381 | FORCE: |
|
382 | 382 |
@@ -1,265 +1,215 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-07-04T1 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-04T13:53:51. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
7 | 7 | <value type="int">0</value> |
|
8 | 8 | </data> |
|
9 | 9 | <data> |
|
10 | 10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | 14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | 15 | <value type="QString" key="language">Cpp</value> |
|
16 | 16 | <valuemap type="QVariantMap" key="value"> |
|
17 | 17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 18 | </valuemap> |
|
19 | 19 | </valuemap> |
|
20 | 20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | 21 | <value type="QString" key="language">QmlJS</value> |
|
22 | 22 | <valuemap type="QVariantMap" key="value"> |
|
23 | 23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 24 | </valuemap> |
|
25 | 25 | </valuemap> |
|
26 | 26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | 27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | 30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
33 | 33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
34 | 34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
35 | 35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
36 | 36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
37 | 37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
38 | 38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
39 | 39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
40 | 40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
41 | 41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
42 | 42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
43 | 43 | </valuemap> |
|
44 | 44 | </data> |
|
45 | 45 | <data> |
|
46 | 46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
47 | 47 | <valuemap type="QVariantMap"/> |
|
48 | 48 | </data> |
|
49 | 49 | <data> |
|
50 | 50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 51 | <valuemap type="QVariantMap"> |
|
52 | 52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
53 | 53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
54 | 54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
55 |
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration"> |
|
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> | |
|
56 | 56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
59 | 59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
60 | 60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | 62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
65 |
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary"> |
|
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value> | |
|
66 | 66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> |
|
67 | 67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 69 | </valuemap> |
|
70 | 70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
71 | 71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 | 73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
74 | 74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
75 | 75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
76 | 76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 77 | </valuemap> |
|
78 | 78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 | 81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
82 | 82 | </valuemap> |
|
83 | 83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
85 | 85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
88 | 88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
89 | 89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
90 | 90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 91 | </valuemap> |
|
92 | 92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 | 95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
96 | 96 | </valuemap> |
|
97 | 97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> | |
|
101 | 101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 | 102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
103 |
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"> |
|
|
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/ |
|
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value> | |
|
105 | 105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
106 | 106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 107 | </valuemap> |
|
108 |
<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"> | |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
|
119 | </valuemap> | |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
127 | </valuemap> | |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
132 | </valuemap> | |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
141 | </valuemap> | |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
146 | </valuemap> | |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Debug</value> | |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gselesia-build-desktop-Qt_4_8_3_in_PATH__System__Debug</value> | |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
|
157 | </valuemap> | |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
|
108 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | |
|
159 | 109 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
160 | 110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
161 | 111 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
162 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
163 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
164 | 114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
165 | 115 | </valuemap> |
|
166 | 116 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
167 | 117 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
168 | 118 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | 119 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
170 | 120 | </valuemap> |
|
171 | 121 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
172 | 122 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
173 | 123 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | 124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
175 | 125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | 126 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
177 | 127 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | 128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
179 | 129 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | 130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
181 | 131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | 132 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
183 | 133 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | 134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
185 | 135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
187 | 137 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | 138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
189 | 139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | 140 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
191 | 141 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | 142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
193 | 143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
195 | 145 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | 146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
197 | 147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | 148 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
199 | 149 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | 150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
201 | 151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
202 | 152 | <value type="int">0</value> |
|
203 | 153 | <value type="int">1</value> |
|
204 | 154 | <value type="int">2</value> |
|
205 | 155 | <value type="int">3</value> |
|
206 | 156 | <value type="int">4</value> |
|
207 | 157 | <value type="int">5</value> |
|
208 | 158 | <value type="int">6</value> |
|
209 | 159 | <value type="int">7</value> |
|
210 | 160 | <value type="int">8</value> |
|
211 | 161 | <value type="int">9</value> |
|
212 | 162 | <value type="int">10</value> |
|
213 | 163 | <value type="int">11</value> |
|
214 | 164 | <value type="int">12</value> |
|
215 | 165 | <value type="int">13</value> |
|
216 | 166 | <value type="int">14</value> |
|
217 | 167 | </valuelist> |
|
218 | 168 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
219 | 169 | <value type="int">0</value> |
|
220 | 170 | <value type="int">1</value> |
|
221 | 171 | <value type="int">2</value> |
|
222 | 172 | <value type="int">3</value> |
|
223 | 173 | <value type="int">4</value> |
|
224 | 174 | <value type="int">5</value> |
|
225 | 175 | <value type="int">6</value> |
|
226 | 176 | <value type="int">7</value> |
|
227 | 177 | <value type="int">8</value> |
|
228 | 178 | <value type="int">9</value> |
|
229 | 179 | <value type="int">10</value> |
|
230 | 180 | <value type="int">11</value> |
|
231 | 181 | <value type="int">12</value> |
|
232 | 182 | <value type="int">13</value> |
|
233 | 183 | <value type="int">14</value> |
|
234 | 184 | </valuelist> |
|
235 | 185 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> |
|
236 | 186 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
237 | 187 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
238 | 188 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
239 | 189 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
240 | 190 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> |
|
241 | 191 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
242 | 192 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
243 | 193 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
244 | 194 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
245 | 195 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
246 | 196 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
247 | 197 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
248 | 198 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
249 | 199 | </valuemap> |
|
250 | 200 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
251 | 201 | </valuemap> |
|
252 | 202 | </data> |
|
253 | 203 | <data> |
|
254 | 204 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
255 | 205 | <value type="int">1</value> |
|
256 | 206 | </data> |
|
257 | 207 | <data> |
|
258 | 208 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
259 |
<value type="QString">{ |
|
|
209 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
|
260 | 210 | </data> |
|
261 | 211 | <data> |
|
262 | 212 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
263 | 213 | <value type="int">10</value> |
|
264 | 214 | </data> |
|
265 | 215 | </qtcreator> |
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -1,497 +1,498 | |||
|
1 | 1 | #include "mainwindow.h" |
|
2 | 2 | #include <iostream> |
|
3 | 3 | #include <QNetworkInterface> |
|
4 | 4 | |
|
5 | 5 | MainWindow::MainWindow(QWidget *parent) |
|
6 |
: Q |
|
|
6 | : QMainWindow(parent) | |
|
7 | 7 | { |
|
8 | 8 | parsingContinue = false; |
|
9 | 9 | totalOfBytes = 0; |
|
10 | 10 | totalOfPackets = 0; |
|
11 | 11 | |
|
12 | 12 | //**** |
|
13 | 13 | // XML |
|
14 | 14 | // xml handlers |
|
15 | 15 | xmlHandler = new LFRXmlHandler(); |
|
16 | 16 | // xml sources |
|
17 | 17 | sourceTC = new QXmlInputSource(); |
|
18 | 18 | // xml writer |
|
19 | 19 | lfrXmlWriter = new LFRXmlWriter(); |
|
20 | 20 | // setup xml parser for the echo bridge |
|
21 | 21 | lfrXmlParser = new LFRXmlParser(); |
|
22 | 22 | |
|
23 | 23 | UI = new MainWindowUI(); |
|
24 | 24 | readSettings(); |
|
25 | 25 | this->UI->serverTMEchoDialogBox->setIP(echoBridgeIP0, echoBridgeIP1, echoBridgeIP2, echoBridgeIP3); |
|
26 | 26 | |
|
27 | 27 | lfrXmlParser->generalCCSDSPacketStore = &this->generalCCSDSPacketStore; |
|
28 | 28 | |
|
29 | 29 | initSocketStatesList(); |
|
30 | 30 | |
|
31 | this->setLayout(UI->layout()); | |
|
31 | this->setCentralWidget(this->UI); | |
|
32 | //this->setLayout(UI->layout()); | |
|
32 | 33 | |
|
33 | 34 | analyserSGSEServerTC = new QTcpServer(); |
|
34 | 35 | analyserSGSEServerTM = new QTcpServer(); |
|
35 | 36 | |
|
36 | 37 | socketTC = NULL; |
|
37 | 38 | socketTM = NULL; |
|
38 | 39 | socketEchoServer = new QTcpSocket(); |
|
39 | 40 | |
|
40 | 41 | connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts())); |
|
41 | 42 | connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts())); |
|
42 | 43 | connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer())); |
|
43 | 44 | // |
|
44 | 45 | connect(this->analyserSGSEServerTC, SIGNAL(newConnection()), this, SLOT(newConnectionOnTCServer())); |
|
45 | 46 | connect(this->analyserSGSEServerTM, SIGNAL(newConnection()), this, SLOT(newConnectionOnTMServer())); |
|
46 | 47 | // |
|
47 | 48 | connect(this, SIGNAL(socketTMHasChanged(QTcpSocket*)), this->lfrXmlWriter, SLOT(setSocketTM(QTcpSocket*))); |
|
48 | 49 | connect(this->UI->button_TCAcknowledgement, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_Acknowledgment())); |
|
49 | 50 | connect(this->UI->button_TCRejection, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_TC_rejection())); |
|
50 | 51 | connect(this->UI->button_GSEHK, SIGNAL(clicked()), this->lfrXmlWriter, SLOT(sendXML_GSE_HK())); |
|
51 | 52 | |
|
52 | 53 | // socket echo server |
|
53 | 54 | connect(this->socketEchoServer, SIGNAL(stateChanged(QAbstractSocket::SocketState)), |
|
54 | 55 | this, SLOT(socket_TMEcho_ServerHasChanged())); |
|
55 | 56 | connect(this->socketEchoServer, SIGNAL(readyRead()), |
|
56 | 57 | this, SLOT(readDataOnSocketEchoServer())); |
|
57 | 58 | |
|
58 | 59 | // display on console |
|
59 | 60 | connect(this->xmlHandler, SIGNAL(displayMessage(QString)), |
|
60 | 61 | this, SLOT(displayOnConsole(QString))); |
|
61 | 62 | connect(this->UI->hkDisplay, SIGNAL(displayMessage(QString)), |
|
62 | 63 | this, SLOT(displayOnConsole(QString))); |
|
63 | 64 | connect(this->lfrXmlParser, SIGNAL(sendMessage(QString)), |
|
64 | 65 | this, SLOT(displayOnConsole(QString))); |
|
65 | 66 | // |
|
66 | 67 | connect(this->lfrXmlParser, SIGNAL(processPacketStore()), |
|
67 | 68 | this, SLOT(processPacketStore())); |
|
68 | 69 | // |
|
69 | 70 | connect(this->UI->button_resetStatistics, SIGNAL(clicked()), |
|
70 | 71 | this, SLOT(resetStatistics())); |
|
71 | 72 | |
|
72 | 73 | displayNetworkInterfaces(); |
|
73 | 74 | |
|
74 | 75 | this->xmlHandler->packetStoreHasChanged(&generalCCSDSPacketStore); |
|
75 | 76 | }; |
|
76 | 77 | |
|
77 | 78 | MainWindow::~MainWindow() |
|
78 | 79 | { |
|
79 | 80 | |
|
80 | 81 | } |
|
81 | 82 | |
|
82 | 83 | void MainWindow::displayNetworkInterfaces() |
|
83 | 84 | { |
|
84 | 85 | QList<QHostAddress> list = QNetworkInterface::allAddresses(); |
|
85 | 86 | this->displayOnConsole("Network interfaces:"); |
|
86 | 87 | for(int nIter=0; nIter<list.count(); nIter++) |
|
87 | 88 | { |
|
88 | 89 | this->UI->displayOnConsole(list[nIter].toString()); |
|
89 | 90 | } |
|
90 | 91 | } |
|
91 | 92 | |
|
92 | 93 | void MainWindow::listenOnTCTMPorts() |
|
93 | 94 | { |
|
94 | 95 | QString str; |
|
95 | 96 | |
|
96 | 97 | //*** |
|
97 | 98 | // TC |
|
98 | 99 | analyserSGSEServerTC->listen(QHostAddress::Any, this->UI->getTCPort()); |
|
99 | 100 | str = analyserSGSEServerTC->errorString(); |
|
100 | 101 | if (!str.isEmpty()) |
|
101 | 102 | { |
|
102 | 103 | this->displayOnConsole(str); |
|
103 | 104 | } |
|
104 | 105 | this->displayOnConsole("Listening TC on port " |
|
105 | 106 | + QString::number(this->UI->getTCPort()) |
|
106 | 107 | ); |
|
107 | 108 | |
|
108 | 109 | //*** |
|
109 | 110 | // TM |
|
110 | 111 | analyserSGSEServerTM->listen(QHostAddress::Any, this->UI->getTMPort()); |
|
111 | 112 | str = analyserSGSEServerTM->errorString(); |
|
112 | 113 | if (!str.isEmpty()) |
|
113 | 114 | { |
|
114 | 115 | this->displayOnConsole(str); |
|
115 | 116 | } |
|
116 | 117 | this->displayOnConsole("Listening TM on port " |
|
117 | 118 | + QString::number(this->UI->getTMPort()) |
|
118 | 119 | ); |
|
119 | 120 | } |
|
120 | 121 | |
|
121 | 122 | void MainWindow::testTCTMPorts() |
|
122 | 123 | { |
|
123 | 124 | if (socketTC != NULL) |
|
124 | 125 | { |
|
125 | 126 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); |
|
126 | 127 | } |
|
127 | 128 | else |
|
128 | 129 | { |
|
129 | 130 | this->displayOnConsole("TC socket *** not tested, (socketTC) is NULL" ); |
|
130 | 131 | } |
|
131 | 132 | if (socketTM != NULL) |
|
132 | 133 | { |
|
133 | 134 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); |
|
134 | 135 | } |
|
135 | 136 | else |
|
136 | 137 | { |
|
137 | 138 | this->displayOnConsole("TM socket *** not tested, (socketTM) is NULL" ); |
|
138 | 139 | } |
|
139 | 140 | } |
|
140 | 141 | |
|
141 | 142 | void MainWindow::newConnectionOnTCServer() |
|
142 | 143 | { |
|
143 | 144 | this->displayOnConsole("got new connection on TC port"); |
|
144 | 145 | socketTC = analyserSGSEServerTC->nextPendingConnection(); |
|
145 | 146 | this->displayOnConsole("TC socket *** " + socketStates.at(socketTC->state()) ); |
|
146 | 147 | connect(this->socketTC, SIGNAL(readyRead()), this, SLOT(readDataOnTCPort())); |
|
147 | 148 | } |
|
148 | 149 | |
|
149 | 150 | void MainWindow::newConnectionOnTMServer() |
|
150 | 151 | { |
|
151 | 152 | this->displayOnConsole("got new connection on TM port"); |
|
152 | 153 | socketTM = analyserSGSEServerTM->nextPendingConnection(); |
|
153 | 154 | this->displayOnConsole("TM socket *** " + socketStates.at(socketTM->state()) ); |
|
154 | 155 | connect(this->socketTM, SIGNAL(readyRead()), this, SLOT(readDataOnTMPort())); |
|
155 | 156 | |
|
156 | 157 | emit socketTMHasChanged(this->socketTM); |
|
157 | 158 | } |
|
158 | 159 | |
|
159 | 160 | void MainWindow::readDataOnTCPort() |
|
160 | 161 | { |
|
161 | 162 | bool ok; |
|
162 | 163 | int nbBytesAvailable = 0; |
|
163 | 164 | |
|
164 | 165 | nbBytesAvailable = socketTC->bytesAvailable(); |
|
165 | 166 | buffer = (char *) malloc(nbBytesAvailable); |
|
166 | 167 | socketTC->read(buffer, nbBytesAvailable); |
|
167 | 168 | |
|
168 | 169 | this->displayOnConsole("readDataOnTCPort *** " |
|
169 | 170 | + QString::number(nbBytesAvailable) |
|
170 | 171 | + " read"); |
|
171 | 172 | |
|
172 | 173 | QByteArray xmlData( buffer, nbBytesAvailable); |
|
173 | 174 | |
|
174 | 175 | free(buffer); |
|
175 | 176 | |
|
176 | 177 | sourceTC->setData( xmlData ); |
|
177 | 178 | |
|
178 | 179 | xmlReader.setContentHandler(xmlHandler); |
|
179 | 180 | xmlReader.setErrorHandler(xmlHandler); |
|
180 | 181 | |
|
181 | 182 | ok = xmlReader.parse(sourceTC); |
|
182 | 183 | if (!ok) { |
|
183 | 184 | std::cout << "Parsing failed." << std::endl; |
|
184 | 185 | } |
|
185 | 186 | else { |
|
186 | 187 | QStringList names = xmlHandler->names(); |
|
187 | 188 | QList<int> indentations = xmlHandler->indentations(); |
|
188 | 189 | |
|
189 | 190 | int items = names.count(); |
|
190 | 191 | |
|
191 | 192 | for (int i = 0; i < items; ++i) { |
|
192 | 193 | displayOnConsole( |
|
193 | 194 | names[i] |
|
194 | 195 | + " --- identations: " |
|
195 | 196 | + QString::number(indentations[i])); |
|
196 | 197 | } |
|
197 | 198 | } |
|
198 | 199 | } |
|
199 | 200 | |
|
200 | 201 | void MainWindow::readDataOnTMPort() |
|
201 | 202 | { |
|
202 | 203 | this->displayOnConsole("TM data received, begin parsing"); |
|
203 | 204 | } |
|
204 | 205 | |
|
205 | 206 | void MainWindow::readDataOnSocketEchoServer() |
|
206 | 207 | { |
|
207 | 208 | QString dataString; |
|
208 | 209 | |
|
209 | 210 | dataArray.append(socketEchoServer->readAll()); |
|
210 | 211 | dataString = QString::fromAscii(dataArray); |
|
211 | 212 | this->lfrXmlParser->processIncomingStr(dataString); |
|
212 | 213 | dataArray.clear(); |
|
213 | 214 | } |
|
214 | 215 | |
|
215 | 216 | void MainWindow::displayOnConsole(QString message) |
|
216 | 217 | { |
|
217 | 218 | this->UI->displayOnConsole( message ); |
|
218 | 219 | } |
|
219 | 220 | |
|
220 | 221 | void MainWindow::initSocketStatesList() |
|
221 | 222 | { |
|
222 | 223 | socketStates.append("The socket is not connected"); |
|
223 | 224 | socketStates.append("The socket is performing a host name lookup"); |
|
224 | 225 | socketStates.append("The socket has started establishing a connection"); |
|
225 | 226 | socketStates.append("A connection is established"); |
|
226 | 227 | socketStates.append("The socket is bound to an address and port (for servers)"); |
|
227 | 228 | socketStates.append("The socket is about to close (data may still be waiting to be written)"); |
|
228 | 229 | socketStates.append("For internal use only"); |
|
229 | 230 | } |
|
230 | 231 | |
|
231 | 232 | void MainWindow::openEchoServer() |
|
232 | 233 | { |
|
233 | 234 | socketEchoServer->connectToHost(this->UI->serverTMEchoDialogBox->getIP(), |
|
234 | 235 | this->UI->spinbox_serverTMEchoPort->value()); |
|
235 | 236 | //socketEchoServer->open(); |
|
236 | 237 | } |
|
237 | 238 | |
|
238 | 239 | void MainWindow::socket_TMEcho_ServerHasChanged() |
|
239 | 240 | { |
|
240 | 241 | this->displayOnConsole("TM Echo Socket socket *** " + socketStates.at(socketEchoServer->state()) ); |
|
241 | 242 | } |
|
242 | 243 | |
|
243 | 244 | void MainWindow::preProcessPacket(TMPacketToRead *packet) |
|
244 | 245 | { |
|
245 | 246 | unsigned char pid = 0; |
|
246 | 247 | unsigned char cat = 0; |
|
247 | 248 | unsigned char typ = 0; |
|
248 | 249 | unsigned char sub = 0; |
|
249 | 250 | unsigned int sid = 0; |
|
250 | 251 | unsigned int length = 0; |
|
251 | 252 | unsigned int coarse_t = 0; |
|
252 | 253 | unsigned int fine_t = 0; |
|
253 | 254 | |
|
254 | 255 | //********************************* |
|
255 | 256 | // get the parameters of the packet |
|
256 | 257 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); |
|
257 | 258 | cat = packet->Value[5] & 0x0f; |
|
258 | 259 | typ = packet->Value[11]; // TYPE |
|
259 | 260 | sub = packet->Value[12]; // SUBTYPE |
|
260 | 261 | sid = 0; |
|
261 | 262 | length = packet->Value[8] * 256 + packet->Value[9]; |
|
262 | 263 | // compare length in the packet with the size of the packet |
|
263 | 264 | if ( (length + 1 + 10) != (packet->size)) |
|
264 | 265 | { |
|
265 | 266 | displayOnConsole("reception of " + QString::number(packet->size) |
|
266 | 267 | + " bytes instead of " + QString::number(length + 1 + 10)); |
|
267 | 268 | } |
|
268 | 269 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) |
|
269 | 270 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; |
|
270 | 271 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; |
|
271 | 272 | |
|
272 | 273 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) |
|
273 | 274 | sid = packet->Value[20] * 256 + packet->Value[21]; |
|
274 | 275 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) |
|
275 | 276 | sid = 1; |
|
276 | 277 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) |
|
277 | 278 | sid = packet->Value[20]; |
|
278 | 279 | else if ((pid == 79) & (cat == 12) & (typ == 21) & (sub == 3)) |
|
279 | 280 | sid = packet->Value[20]; |
|
280 | 281 | |
|
281 | 282 | this->UI->tmStatistics->updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
282 | 283 | |
|
283 | 284 | //*************************************************** |
|
284 | 285 | // if the packet is an HK packet, display its content |
|
285 | 286 | if ( (typ == TYPE_HK) & (sub == SUBTYPE_HK) ) |
|
286 | 287 | { |
|
287 | 288 | this->UI->hkDisplay->displayPacket(packet); |
|
288 | 289 | } |
|
289 | 290 | |
|
290 | 291 | //**************************************** |
|
291 | 292 | // if the packet is a waveform, display it |
|
292 | 293 | if ( (typ == 21) & (sub == 3) ) |
|
293 | 294 | { |
|
294 | 295 | sid = packet->Value[20]; // SID |
|
295 | 296 | switch (sid){ |
|
296 | 297 | case SID_NORMAL_SWF_F0: |
|
297 | 298 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); |
|
298 | 299 | break; |
|
299 | 300 | case SID_NORMAL_SWF_F1: |
|
300 | 301 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); |
|
301 | 302 | break; |
|
302 | 303 | case SID_NORMAL_SWF_F2: |
|
303 | 304 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); |
|
304 | 305 | break; |
|
305 | 306 | case SID_NORMAL_CWF_F3: |
|
306 | 307 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); |
|
307 | 308 | break; |
|
308 | 309 | case SID_BURST_CWF_F2: |
|
309 | 310 | buildWFAndDisplayBurst(packet, &wfPacketBurst); |
|
310 | 311 | break; |
|
311 | 312 | case SID_SBM1_CWF_F1: |
|
312 | 313 | buildWFAndDisplaySBM1(packet, &wfPacketSBM1); |
|
313 | 314 | break; |
|
314 | 315 | case SID_SBM2_CWF_F2: |
|
315 | 316 | buildWFAndDisplaySBM2(packet, &wfPacketSBM2); |
|
316 | 317 | break; |
|
317 | 318 | } |
|
318 | 319 | } |
|
319 | 320 | } |
|
320 | 321 | |
|
321 | 322 | void MainWindow::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) |
|
322 | 323 | { |
|
323 | 324 | unsigned int i = 0; |
|
324 | 325 | unsigned int j = 0; |
|
325 | 326 | unsigned char *data; |
|
326 | 327 | unsigned char pkt_nr = 0; |
|
327 | 328 | unsigned int blk_nr = 0; |
|
328 | 329 | |
|
329 | 330 | pkt_nr = packet->Value[23]; // PKT_NR |
|
330 | 331 | blk_nr = packet->Value[30] * 256 + packet->Value[31]; |
|
331 | 332 | data = &packet->Value[32]; // start of the first data block; |
|
332 | 333 | j = (pkt_nr-1) * 340; |
|
333 | 334 | for ( i=0; i<blk_nr; i++ ){ |
|
334 | 335 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
335 | 336 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
336 | 337 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
337 | 338 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
338 | 339 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
339 | 340 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
340 | 341 | } |
|
341 | 342 | if (pkt_nr == 7) |
|
342 | 343 | { |
|
343 | 344 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); |
|
344 | 345 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); |
|
345 | 346 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); |
|
346 | 347 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); |
|
347 | 348 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); |
|
348 | 349 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); |
|
349 | 350 | } |
|
350 | 351 | } |
|
351 | 352 | |
|
352 | 353 | void MainWindow::buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket) |
|
353 | 354 | { |
|
354 | 355 | unsigned int i = 0; |
|
355 | 356 | unsigned int j = 0; |
|
356 | 357 | unsigned char *data; |
|
357 | 358 | static unsigned char pkt_nr = 1; |
|
358 | 359 | unsigned int blk_nr = 0; |
|
359 | 360 | |
|
360 | 361 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; |
|
361 | 362 | data = &packet->Value[30]; // start of the first data block; |
|
362 | 363 | j = (pkt_nr-1) * 340; |
|
363 | 364 | for ( i=0; i<blk_nr; i++ ){ |
|
364 | 365 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
365 | 366 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
366 | 367 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
367 | 368 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
368 | 369 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
369 | 370 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
370 | 371 | } |
|
371 | 372 | pkt_nr = pkt_nr + 1; |
|
372 | 373 | if (blk_nr == 8) |
|
373 | 374 | { |
|
374 | 375 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_v, 0); |
|
375 | 376 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e1, 1); |
|
376 | 377 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_e2, 2); |
|
377 | 378 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b1, 3); |
|
378 | 379 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b2, 4); |
|
379 | 380 | this->UI->wfPageBurst->displayOnPlot(wfPacket->wf_b3, 5); |
|
380 | 381 | pkt_nr = 1; |
|
381 | 382 | } |
|
382 | 383 | } |
|
383 | 384 | |
|
384 | 385 | void MainWindow::buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket) |
|
385 | 386 | { |
|
386 | 387 | unsigned int i = 0; |
|
387 | 388 | unsigned int j = 0; |
|
388 | 389 | unsigned char *data; |
|
389 | 390 | static unsigned char pkt_nr = 1; |
|
390 | 391 | unsigned int blk_nr = 0; |
|
391 | 392 | |
|
392 | 393 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; |
|
393 | 394 | data = &packet->Value[30]; // start of the first data block; |
|
394 | 395 | j = (pkt_nr-1) * 340; |
|
395 | 396 | for ( i=0; i<blk_nr; i++ ){ |
|
396 | 397 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
397 | 398 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
398 | 399 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
399 | 400 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
400 | 401 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
401 | 402 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
402 | 403 | } |
|
403 | 404 | pkt_nr = pkt_nr + 1; |
|
404 | 405 | if (blk_nr == 8) |
|
405 | 406 | { |
|
406 | 407 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_v, 0); |
|
407 | 408 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e1, 1); |
|
408 | 409 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_e2, 2); |
|
409 | 410 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b1, 3); |
|
410 | 411 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b2, 4); |
|
411 | 412 | this->UI->wfPageSBM1->displayOnPlot(wfPacket->wf_b3, 5); |
|
412 | 413 | pkt_nr = 1; |
|
413 | 414 | } |
|
414 | 415 | } |
|
415 | 416 | |
|
416 | 417 | void MainWindow::buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket) |
|
417 | 418 | { |
|
418 | 419 | unsigned int i = 0; |
|
419 | 420 | unsigned int j = 0; |
|
420 | 421 | unsigned char *data; |
|
421 | 422 | static unsigned char pkt_nr = 1; |
|
422 | 423 | unsigned int blk_nr = 0; |
|
423 | 424 | |
|
424 | 425 | blk_nr = packet->Value[28] * 256 + packet->Value[29]; |
|
425 | 426 | data = &packet->Value[30]; // start of the first data block; |
|
426 | 427 | j = (pkt_nr-1) * 340; |
|
427 | 428 | for ( i=0; i<blk_nr; i++ ){ |
|
428 | 429 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
429 | 430 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
430 | 431 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
431 | 432 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
432 | 433 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
433 | 434 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
434 | 435 | } |
|
435 | 436 | pkt_nr = pkt_nr + 1; |
|
436 | 437 | if (blk_nr == 8) |
|
437 | 438 | { |
|
438 | 439 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_v, 0); |
|
439 | 440 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e1, 1); |
|
440 | 441 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_e2, 2); |
|
441 | 442 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b1, 3); |
|
442 | 443 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b2, 4); |
|
443 | 444 | this->UI->wfPageSBM2->displayOnPlot(wfPacket->wf_b3, 5); |
|
444 | 445 | pkt_nr = 1; |
|
445 | 446 | } |
|
446 | 447 | } |
|
447 | 448 | |
|
448 | 449 | void MainWindow::processIncomingPacket(TMPacketToRead *packet) |
|
449 | 450 | { |
|
450 | 451 | totalOfBytes = totalOfBytes + packet->size; |
|
451 | 452 | totalOfPackets = totalOfPackets + 1; |
|
452 | 453 | this->UI->totalOfBytesHasChanged(totalOfBytes); |
|
453 | 454 | this->UI->totalOfPacketsHasChanged(totalOfPackets); |
|
454 | 455 | preProcessPacket(packet); |
|
455 | 456 | } |
|
456 | 457 | |
|
457 | 458 | void MainWindow::resetStatistics() |
|
458 | 459 | { |
|
459 | 460 | totalOfBytes = 0; |
|
460 | 461 | totalOfPackets = 0; |
|
461 | 462 | this->UI->totalOfBytesHasChanged(totalOfBytes); |
|
462 | 463 | this->UI->totalOfPacketsHasChanged(totalOfPackets); |
|
463 | 464 | } |
|
464 | 465 | |
|
465 | 466 | void MainWindow::processPacketStore() |
|
466 | 467 | { |
|
467 | 468 | TMPacketToRead *packet; |
|
468 | 469 | while(!generalCCSDSPacketStore.isEmpty()) |
|
469 | 470 | { |
|
470 | 471 | packet = generalCCSDSPacketStore.takeFirst(); |
|
471 | 472 | processIncomingPacket(packet); |
|
472 | 473 | delete(packet); |
|
473 | 474 | } |
|
474 | 475 | } |
|
475 | 476 | |
|
476 | 477 | void MainWindow::readSettings() |
|
477 | 478 | { |
|
478 | 479 | QSettings settings("lpp", "lfrsgse"); |
|
479 | 480 | echoBridgeIP0 = (unsigned char) settings.value("echoBridgeIP0", 127).toInt(); |
|
480 | 481 | echoBridgeIP1 = (unsigned char) settings.value("echoBridgeIP1", 0).toInt(); |
|
481 | 482 | echoBridgeIP2 = (unsigned char) settings.value("echoBridgeIP2", 0).toInt(); |
|
482 | 483 | echoBridgeIP3 = (unsigned char) settings.value("echoBridgeIP3", 1).toInt(); |
|
483 | 484 | } |
|
484 | 485 | |
|
485 | 486 | void MainWindow::writeSettings() |
|
486 | 487 | { |
|
487 | 488 | QSettings settings("lpp", "lfrsgse"); |
|
488 | 489 | settings.setValue("echoBridgeIP0", this->UI->serverTMEchoDialogBox->get_addressPart1()); |
|
489 | 490 | settings.setValue("echoBridgeIP1", this->UI->serverTMEchoDialogBox->get_addressPart2()); |
|
490 | 491 | settings.setValue("echoBridgeIP2", this->UI->serverTMEchoDialogBox->get_addressPart3()); |
|
491 | 492 | settings.setValue("echoBridgeIP3", this->UI->serverTMEchoDialogBox->get_addressPart4()); |
|
492 | 493 | } |
|
493 | 494 | |
|
494 | 495 | void MainWindow::closeEvent(QCloseEvent *) |
|
495 | 496 | { |
|
496 | 497 | writeSettings(); |
|
497 | 498 | } |
@@ -1,95 +1,96 | |||
|
1 | 1 | #ifndef MAINWINDOW_H |
|
2 | 2 | #define MAINWINDOW_H |
|
3 | 3 | |
|
4 | 4 | #include <QTcpServer> |
|
5 | 5 | #include <QTcpSocket> |
|
6 | 6 | #include <QXmlSimpleReader> |
|
7 | 7 | #include <QSettings> |
|
8 | #include <QMainWindow> | |
|
8 | 9 | |
|
9 | 10 | #include <lfrxmlhandler.h> |
|
10 | 11 | #include <lfrxmlwriter.h> |
|
11 | 12 | #include <mainwindowui.h> |
|
12 | 13 | #include "tmpackettoread.h" |
|
13 | 14 | #include "wfpacket.h" |
|
14 | 15 | #include "lfrxmlparser.h" |
|
15 | 16 | |
|
16 |
class MainWindow : public Q |
|
|
17 | class MainWindow : public QMainWindow | |
|
17 | 18 | { |
|
18 | 19 | Q_OBJECT |
|
19 | 20 | |
|
20 | 21 | public: |
|
21 | 22 | MainWindow(QWidget *parent = 0); |
|
22 | 23 | ~MainWindow(); |
|
23 | 24 | |
|
24 | 25 | void displayNetworkInterfaces(); |
|
25 | 26 | void initSocketStatesList(); |
|
26 | 27 | void preProcessPacket(TMPacketToRead *packet); |
|
27 | 28 | void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page); |
|
28 | 29 | void buildWFAndDisplayBurst(TMPacketToRead *packet, WFPacket *wfPacket); |
|
29 | 30 | void buildWFAndDisplaySBM1(TMPacketToRead *packet, WFPacket *wfPacket); |
|
30 | 31 | void buildWFAndDisplaySBM2(TMPacketToRead *packet, WFPacket *wfPacket); |
|
31 | 32 | |
|
32 | 33 | protected: |
|
33 | 34 | void closeEvent(QCloseEvent *); |
|
34 | 35 | |
|
35 | 36 | private: |
|
36 | 37 | void readSettings(); |
|
37 | 38 | void writeSettings(); |
|
38 | 39 | unsigned char echoBridgeIP0; |
|
39 | 40 | unsigned char echoBridgeIP1; |
|
40 | 41 | unsigned char echoBridgeIP2; |
|
41 | 42 | unsigned char echoBridgeIP3; |
|
42 | 43 | |
|
43 | 44 | QByteArray dataArray; |
|
44 | 45 | |
|
45 | 46 | QList<TMPacketToRead*> generalCCSDSPacketStore; |
|
46 | 47 | |
|
47 | 48 | QTcpServer *analyserSGSEServerTC; |
|
48 | 49 | QTcpServer *analyserSGSEServerTM; |
|
49 | 50 | QTcpSocket *socketTC; |
|
50 | 51 | QTcpSocket *socketTM; |
|
51 | 52 | QTcpSocket *socketEchoServer; |
|
52 | 53 | |
|
53 | 54 | unsigned int totalOfBytes; |
|
54 | 55 | unsigned int totalOfPackets; |
|
55 | 56 | |
|
56 | 57 | QXmlSimpleReader xmlReader; |
|
57 | 58 | QXmlInputSource *sourceTC; |
|
58 | 59 | LFRXmlHandler *xmlHandler; |
|
59 | 60 | LFRXmlParser *lfrXmlParser; |
|
60 | 61 | |
|
61 | 62 | QList<QString> socketStates; |
|
62 | 63 | |
|
63 | 64 | char *buffer; |
|
64 | 65 | |
|
65 | 66 | MainWindowUI *UI; |
|
66 | 67 | |
|
67 | 68 | LFRXmlWriter *lfrXmlWriter; |
|
68 | 69 | |
|
69 | 70 | WFPacket wfPacketNormal[4]; |
|
70 | 71 | WFPacket wfPacketBurst; |
|
71 | 72 | WFPacket wfPacketSBM1; |
|
72 | 73 | WFPacket wfPacketSBM2; |
|
73 | 74 | |
|
74 | 75 | bool parsingContinue; |
|
75 | 76 | |
|
76 | 77 | signals: |
|
77 | 78 | void socketTMHasChanged(QTcpSocket *socket); |
|
78 | 79 | |
|
79 | 80 | public slots: |
|
80 | 81 | void displayOnConsole(QString message); |
|
81 | 82 | void listenOnTCTMPorts(); |
|
82 | 83 | void testTCTMPorts(); |
|
83 | 84 | void newConnectionOnTCServer(); |
|
84 | 85 | void newConnectionOnTMServer(); |
|
85 | 86 | void readDataOnTCPort(); |
|
86 | 87 | void readDataOnTMPort(); |
|
87 | 88 | void readDataOnSocketEchoServer(); |
|
88 | 89 | void openEchoServer(); |
|
89 | 90 | void socket_TMEcho_ServerHasChanged(); |
|
90 | 91 | void processIncomingPacket(TMPacketToRead *packet); |
|
91 | 92 | void resetStatistics(); |
|
92 | 93 | void processPacketStore(); |
|
93 | 94 | }; |
|
94 | 95 | |
|
95 | 96 | #endif // MAINWINDOW_H |
@@ -1,162 +1,162 | |||
|
1 | 1 | #include "mainwindowui.h" |
|
2 | 2 | |
|
3 | 3 | MainWindowUI::MainWindowUI(QWidget *parent) : |
|
4 | 4 | QWidget(parent) |
|
5 | 5 | { |
|
6 | 6 | label_serverTMEcho = new QLabel(tr("TM Echo Server address")); |
|
7 | 7 | label_serverTMEchoPort = new QLabel(tr("TM Echo Server Port")); |
|
8 | 8 | label_TMServerPort = new QLabel(tr("TM Server Port:")); |
|
9 | 9 | label_TCServerPort = new QLabel(tr("TC Server Port:")); |
|
10 | 10 | label_currentTCTMServer = new QLabel(tr("Current IP address:")); |
|
11 | 11 | label_currentTCTMServerIP = new QLabel(tr("-")); |
|
12 | 12 | label_totalOfBytes = new QLabel(tr("Received Bytes: -")); |
|
13 | 13 | label_totalOfPackets = new QLabel(tr("Received Packets: -")); |
|
14 | 14 | |
|
15 | 15 | console = new QTextEdit(); |
|
16 | 16 | |
|
17 | 17 | spwTabWidget = new QTabWidget(); |
|
18 | 18 | spwTabWidgetPage0 = new QWidget(); |
|
19 | 19 | spwTabWidgetPage1 = new QWidget(); |
|
20 | 20 | spwTabWidgetPage2 = new QWidget(); |
|
21 | 21 | spwTabWidgetPage3 = new QWidget(); |
|
22 | 22 | spwTabWidgetPage4 = new QWidget(); |
|
23 | 23 | spwTabWidgetPage5 = new QWidget(); // WFRM BURST |
|
24 | 24 | spwTabWidgetPage6 = new QWidget(); // WFRM SBM1 |
|
25 | 25 | spwTabWidgetPage7 = new QWidget(); // WFRM SBM2 |
|
26 | 26 | |
|
27 | 27 | tmStatistics = new TMStatistics; |
|
28 | 28 | |
|
29 | 29 | wfDisplay = new WFDisplay(); |
|
30 | 30 | wfPageBurst = new WFPage(); |
|
31 | 31 | wfPageSBM1 = new WFPage(); |
|
32 | 32 | wfPageSBM2 = new WFPage(); |
|
33 | 33 | hkDisplay = new HKDisplay(); |
|
34 | 34 | lfrSpectrogam = new LFRSpectrogram(); |
|
35 | 35 | |
|
36 | 36 | spinbox_TMServerPort = new QSpinBox(); |
|
37 | 37 | spinbox_TCServerPort = new QSpinBox(); |
|
38 | 38 | spinbox_serverTMEchoPort = new QSpinBox(); |
|
39 | 39 | spinbox_TMServerPort->setRange(59000, 65535); |
|
40 | 40 | spinbox_TCServerPort->setRange(59001, 65535); |
|
41 | 41 | spinbox_serverTMEchoPort->setRange(59002, 65535); |
|
42 | 42 | |
|
43 | 43 | button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports")); |
|
44 | 44 | button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports")); |
|
45 | 45 | button_openSocketEchoServer = new QPushButton(tr("Open Echo Server")); |
|
46 | 46 | button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement")); |
|
47 | 47 | button_TCRejection = new QPushButton(tr("send TC rejection")); |
|
48 | 48 | button_GSEHK = new QPushButton(tr("send GSE HK")); |
|
49 | 49 | button_clearConsole = new QPushButton(tr("Clear console")); |
|
50 | 50 | button_resetStatistics = new QPushButton(tr("Reset statistics")); |
|
51 | 51 | |
|
52 | 52 | serverTMEchoDialogBox = new QIPDialogBox(); |
|
53 | 53 | serverTMEchoDialogBox->setIP(127, 0, 0, 1); |
|
54 | 54 | |
|
55 | 55 | groupbox_TMEcho = new QGroupBox(tr("TM Echo Server")); |
|
56 | 56 | groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers")); |
|
57 | 57 | groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester")); |
|
58 | 58 | |
|
59 | 59 | layout_TMEcho = new QVBoxLayout(); |
|
60 | 60 | layout_overallLayout = new QVBoxLayout(); |
|
61 | 61 | layout_ports = new QGridLayout(); |
|
62 | 62 | layout_TMToForeignGSETester = new QVBoxLayout(); |
|
63 | 63 | mainLayout = new QGridLayout(); |
|
64 | 64 | |
|
65 | 65 | layout_TMEcho->addWidget(label_serverTMEcho); |
|
66 | 66 | layout_TMEcho->addWidget(serverTMEchoDialogBox); |
|
67 | 67 | layout_TMEcho->addWidget(label_serverTMEchoPort); |
|
68 | 68 | layout_TMEcho->addWidget(spinbox_serverTMEchoPort); |
|
69 | 69 | layout_TMEcho->addWidget(button_openSocketEchoServer); |
|
70 | 70 | layout_TMEcho->addWidget(label_totalOfPackets); |
|
71 | 71 | layout_TMEcho->addWidget(label_totalOfBytes); |
|
72 | 72 | layout_TMEcho->addWidget(button_resetStatistics); |
|
73 | 73 | groupbox_TMEcho->setLayout(layout_TMEcho); |
|
74 | 74 | |
|
75 | 75 | layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1); |
|
76 | 76 | layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1); |
|
77 | 77 | layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1); |
|
78 | 78 | layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1); |
|
79 | 79 | layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2); |
|
80 | 80 | layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2); |
|
81 | 81 | groupbox_ports->setLayout(layout_ports); |
|
82 | 82 | |
|
83 | 83 | layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement); |
|
84 | 84 | layout_TMToForeignGSETester->addWidget(button_TCRejection); |
|
85 | 85 | layout_TMToForeignGSETester->addWidget(button_GSEHK); |
|
86 | 86 | groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester); |
|
87 | 87 | |
|
88 | 88 | mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1); |
|
89 | 89 | mainLayout->addWidget(groupbox_ports, 1, 0, 1, 1); |
|
90 | 90 | mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 0, 1, 1); |
|
91 | 91 | mainLayout->addWidget(console, 0, 1, 2, 2); |
|
92 | 92 | mainLayout->addWidget(button_clearConsole, 3, 1, 1, 2); |
|
93 | 93 | |
|
94 | 94 | spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection")); |
|
95 | 95 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); |
|
96 | 96 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); |
|
97 | 97 | spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM")); |
|
98 | 98 | spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST")); |
|
99 | 99 | spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1")); |
|
100 | 100 | spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2")); |
|
101 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); | |
|
101 | //spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); | |
|
102 | 102 | |
|
103 | 103 | spwTabWidgetPage0->setLayout(mainLayout); |
|
104 | 104 | spwTabWidgetPage1->setLayout(tmStatistics->layout()); |
|
105 | 105 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); |
|
106 | 106 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); |
|
107 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); | |
|
107 | //spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); | |
|
108 | 108 | //spwTabWidgetPage5->setLayout(wfPageBurst->layout()); |
|
109 | 109 | //spwTabWidgetPage6->setLayout(wfPageSBM1->layout()); |
|
110 | 110 | //spwTabWidgetPage7->setLayout(wfPageSBM2->layout()); |
|
111 | 111 | |
|
112 | 112 | layout_overallLayout->addWidget(spwTabWidget); |
|
113 | 113 | |
|
114 | 114 | this->setLayout(layout_overallLayout); |
|
115 | 115 | |
|
116 | 116 | connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole())); |
|
117 | 117 | } |
|
118 | 118 | |
|
119 | 119 | QString MainWindowUI::getTMEchoServerAddress() |
|
120 | 120 | { |
|
121 | 121 | return(serverTMEchoDialogBox->getIP()); |
|
122 | 122 | } |
|
123 | 123 | |
|
124 | 124 | void MainWindowUI::setTCTMServerAddressIP(QString address) |
|
125 | 125 | { |
|
126 | 126 | label_currentTCTMServerIP->setText(address); |
|
127 | 127 | } |
|
128 | 128 | |
|
129 | 129 | int MainWindowUI::getTMPort() |
|
130 | 130 | { |
|
131 | 131 | return spinbox_TMServerPort->value(); |
|
132 | 132 | } |
|
133 | 133 | |
|
134 | 134 | int MainWindowUI::getTCPort() |
|
135 | 135 | { |
|
136 | 136 | return spinbox_TCServerPort->value(); |
|
137 | 137 | } |
|
138 | 138 | |
|
139 | 139 | void MainWindowUI::displayOnConsole(QString message) |
|
140 | 140 | { |
|
141 | 141 | console->append(message); |
|
142 | 142 | } |
|
143 | 143 | |
|
144 | 144 | void MainWindowUI::clearConsole() |
|
145 | 145 | { |
|
146 | 146 | console->clear(); |
|
147 | 147 | } |
|
148 | 148 | |
|
149 | 149 | void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes) |
|
150 | 150 | { |
|
151 | 151 | label_totalOfBytes->setText( |
|
152 | 152 | "Received Bytes: " |
|
153 | 153 | + QString::number(nbBytes)); |
|
154 | 154 | } |
|
155 | 155 | |
|
156 | 156 | void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets) |
|
157 | 157 | { |
|
158 | 158 | label_totalOfPackets->setText( |
|
159 | 159 | "Received Packets: " |
|
160 | 160 | + QString::number(nbPackets)); |
|
161 | 161 | } |
|
162 | 162 |
@@ -1,580 +1,517 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: librmapplugin.so.1.0.0 |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 12:50:48 2013 | |
|
4 | 4 | # Project: rmapplugin.pro |
|
5 | 5 | # Template: lib |
|
6 |
# Command: /usr/bin/qmake-qt4 - |
|
|
6 | # Command: /usr/bin/qmake-qt4 -o Makefile rmapplugin.pro | |
|
7 | 7 | ############################################################################# |
|
8 | 8 | |
|
9 | 9 | ####### Compiler, tools and options |
|
10 | 10 | |
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 13 | DEFINES = -DPLUGIN=rmapplugin -DPLUGINHEADER="\"rmapplugin.h\"" -Ddriver_Name="\"RMAPPlugin\"" -Ddriver_Author="\"Paul Leroy paul.leroy@lpp.polytechnique.fr\"" -Ddriver_Version="\"1.1.2\"" -Ddriver_Description="\"AHB bus controler, works with Gaisler's AHB plugn' play bus.\"" -Ddriver_can_be_root=1 -Ddriver_can_be_child=0 -Ddriver_VID=0 -Ddriver_PID=0 -DLPPMON_VERSION="\"0.0.1\"" -DUNIXTRANSLATIONPATH -DLPPMON_PLUGINS_INSTALL_PATH="QDir::homePath()+\"/.lppmon/plugins\"" -DLPPMON_CONFIG_PATH="QDir::homePath()+\"/.lppmon/config\"" -DLPPMON_TRANSLATION_PATH="\"/etc/lppmon/translations\"" -DLPPMONPLUGIN_LIBRARY -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED |
|
14 | 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 | 15 | CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -W -D_REENTRANT -fPIC $(DEFINES) |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
|
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../spw_usb_driver_v2.63/inc -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I/usr/include/lppmon/common -I/usr/include/lppmon -I/usr/include/lppmon/pluginsInterface -I/usr/include/PythonQt -Imoc | |
|
17 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,librmapplugin.so.1 |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so -llppmoncommon -lwfdisplay -lqwt5-qt4 -ldl -lutil -lm -lpython2.7 -lPythonQt_QtAll -lPythonQt -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
|
20 | 20 | AR = ar cqs |
|
21 | 21 | RANLIB = |
|
22 | 22 | QMAKE = /usr/bin/qmake-qt4 |
|
23 | 23 | TAR = tar -cf |
|
24 | 24 | COMPRESS = gzip -9f |
|
25 | 25 | COPY = cp -f |
|
26 | 26 | SED = sed |
|
27 | 27 | COPY_FILE = $(COPY) |
|
28 | 28 | COPY_DIR = $(COPY) -r |
|
29 | 29 | STRIP = |
|
30 | 30 | INSTALL_FILE = install -m 644 -p |
|
31 | 31 | INSTALL_DIR = $(COPY_DIR) |
|
32 | 32 | INSTALL_PROGRAM = install -m 755 -p |
|
33 | 33 | DEL_FILE = rm -f |
|
34 | 34 | SYMLINK = ln -f -s |
|
35 | 35 | DEL_DIR = rmdir |
|
36 | 36 | MOVE = mv -f |
|
37 | 37 | CHK_DIR_EXISTS= test -d |
|
38 | 38 | MKDIR = mkdir -p |
|
39 | 39 | |
|
40 | 40 | ####### Output directory |
|
41 | 41 | |
|
42 | 42 | OBJECTS_DIR = obj/ |
|
43 | 43 | |
|
44 | 44 | ####### Files |
|
45 | 45 | |
|
46 | 46 | SOURCES = rmapplugin.cpp \ |
|
47 | 47 | rmappluginui.cpp \ |
|
48 | 48 | rmapoperations.cpp \ |
|
49 | 49 | ccsds.cpp \ |
|
50 | 50 | ../common_PLE/qipdialogbox.cpp \ |
|
51 | 51 | ../common_PLE/gresbstatusenquiry.cpp \ |
|
52 | 52 | rmappluginpythonwrapper.cpp \ |
|
53 | 53 | stardundee.cpp \ |
|
54 | 54 | gresb.cpp \ |
|
55 | 55 | tcpackettosend.cpp \ |
|
56 | 56 | tmpackettoread.cpp \ |
|
57 | wfdisplay.cpp \ | |
|
58 | 57 | tmstatistics.cpp \ |
|
59 | wfplot.cpp \ | |
|
60 | wfpage.cpp \ | |
|
61 | 58 | wfpacket.cpp \ |
|
62 | 59 | tmechobridge.cpp \ |
|
63 | 60 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp moc/moc_rmappluginui.cpp \ |
|
64 | 61 | moc/moc_rmapplugin.cpp \ |
|
65 | 62 | moc/moc_qipdialogbox.cpp \ |
|
66 | 63 | moc/moc_gresbstatusenquiry.cpp \ |
|
67 | 64 | moc/moc_rmappluginpythonwrapper.cpp \ |
|
68 | 65 | moc/moc_stardundee.cpp \ |
|
69 | 66 | moc/moc_gresb.cpp \ |
|
70 | 67 | moc/moc_tcpackettosend.cpp \ |
|
71 | 68 | moc/moc_tmpackettoread.cpp \ |
|
72 | moc/moc_wfdisplay.cpp \ | |
|
73 | 69 | moc/moc_tmstatistics.cpp \ |
|
74 | moc/moc_wfplot.cpp \ | |
|
75 | moc/moc_wfpage.cpp \ | |
|
76 | 70 | moc/moc_wfpacket.cpp \ |
|
77 | 71 | moc/moc_tmechobridge.cpp \ |
|
78 | 72 | moc/moc_genericPySysdriver.cpp \ |
|
79 | 73 | moc/moc_lppmonplugin.cpp |
|
80 | 74 | OBJECTS = obj/rmapplugin.o \ |
|
81 | 75 | obj/rmappluginui.o \ |
|
82 | 76 | obj/rmapoperations.o \ |
|
83 | 77 | obj/ccsds.o \ |
|
84 | 78 | obj/qipdialogbox.o \ |
|
85 | 79 | obj/gresbstatusenquiry.o \ |
|
86 | 80 | obj/rmappluginpythonwrapper.o \ |
|
87 | 81 | obj/stardundee.o \ |
|
88 | 82 | obj/gresb.o \ |
|
89 | 83 | obj/tcpackettosend.o \ |
|
90 | 84 | obj/tmpackettoread.o \ |
|
91 | obj/wfdisplay.o \ | |
|
92 | 85 | obj/tmstatistics.o \ |
|
93 | obj/wfplot.o \ | |
|
94 | obj/wfpage.o \ | |
|
95 | 86 | obj/wfpacket.o \ |
|
96 | 87 | obj/tmechobridge.o \ |
|
97 | 88 | obj/lppmonplugininterface.o \ |
|
98 | 89 | obj/moc_rmappluginui.o \ |
|
99 | 90 | obj/moc_rmapplugin.o \ |
|
100 | 91 | obj/moc_qipdialogbox.o \ |
|
101 | 92 | obj/moc_gresbstatusenquiry.o \ |
|
102 | 93 | obj/moc_rmappluginpythonwrapper.o \ |
|
103 | 94 | obj/moc_stardundee.o \ |
|
104 | 95 | obj/moc_gresb.o \ |
|
105 | 96 | obj/moc_tcpackettosend.o \ |
|
106 | 97 | obj/moc_tmpackettoread.o \ |
|
107 | obj/moc_wfdisplay.o \ | |
|
108 | 98 | obj/moc_tmstatistics.o \ |
|
109 | obj/moc_wfplot.o \ | |
|
110 | obj/moc_wfpage.o \ | |
|
111 | 99 | obj/moc_wfpacket.o \ |
|
112 | 100 | obj/moc_tmechobridge.o \ |
|
113 | 101 | obj/moc_genericPySysdriver.o \ |
|
114 | 102 | obj/moc_lppmonplugin.o |
|
115 | 103 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
116 | 104 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
117 | 105 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
118 | 106 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
119 | 107 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
120 | 108 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
121 | 109 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
122 | 110 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
123 | 111 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
124 | 112 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
125 | 113 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
126 | 114 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
127 | 115 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
128 | 116 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
129 | 117 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
130 | 118 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
131 | 119 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
132 | 120 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
133 | 121 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
134 | 122 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
135 | 123 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
136 | 124 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
137 | 125 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
138 | 126 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
139 | 127 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
140 | 128 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
141 | 129 | rmapplugin.pro |
|
142 | 130 | QMAKE_TARGET = rmapplugin |
|
143 | 131 | DESTDIR = bin/ |
|
144 | 132 | TARGET = librmapplugin.so.1.0.0 |
|
145 | 133 | TARGETA = bin/librmapplugin.a |
|
146 | 134 | TARGETD = librmapplugin.so.1.0.0 |
|
147 | 135 | TARGET0 = librmapplugin.so |
|
148 | 136 | TARGET1 = librmapplugin.so.1 |
|
149 | 137 | TARGET2 = librmapplugin.so.1.0 |
|
150 | 138 | |
|
151 | 139 | first: all |
|
152 | 140 | ####### Implicit rules |
|
153 | 141 | |
|
154 | 142 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
155 | 143 | |
|
156 | 144 | .cpp.o: |
|
157 | 145 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
158 | 146 | |
|
159 | 147 | .cc.o: |
|
160 | 148 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
161 | 149 | |
|
162 | 150 | .cxx.o: |
|
163 | 151 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
164 | 152 | |
|
165 | 153 | .C.o: |
|
166 | 154 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
167 | 155 | |
|
168 | 156 | .c.o: |
|
169 | 157 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
170 | 158 | |
|
171 | 159 | ####### Build rules |
|
172 | 160 | |
|
173 | 161 | all: Makefile bin/$(TARGET) |
|
174 | 162 | |
|
175 | 163 | bin/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) |
|
176 | 164 | @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/ |
|
177 | 165 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) |
|
178 | 166 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) |
|
179 | 167 | -ln -s $(TARGET) $(TARGET0) |
|
180 | 168 | -ln -s $(TARGET) $(TARGET1) |
|
181 | 169 | -ln -s $(TARGET) $(TARGET2) |
|
182 | 170 | -$(DEL_FILE) bin/$(TARGET) |
|
183 | 171 | -$(DEL_FILE) bin/$(TARGET0) |
|
184 | 172 | -$(DEL_FILE) bin/$(TARGET1) |
|
185 | 173 | -$(DEL_FILE) bin/$(TARGET2) |
|
186 | 174 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) bin/ |
|
187 | 175 | |
|
188 | 176 | |
|
189 | 177 | |
|
190 | 178 | staticlib: $(TARGETA) |
|
191 | 179 | |
|
192 | 180 | $(TARGETA): $(OBJECTS) $(OBJCOMP) |
|
193 | 181 | -$(DEL_FILE) $(TARGETA) |
|
194 | 182 | $(AR) $(TARGETA) $(OBJECTS) |
|
195 | 183 | |
|
196 | 184 | Makefile: rmapplugin.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
197 | 185 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
198 | 186 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
199 | 187 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
200 | 188 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
201 | 189 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
202 | 190 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
203 | 191 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
204 | 192 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
205 | 193 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
206 | 194 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
207 | 195 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
208 | 196 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
209 | 197 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
210 | 198 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf \ |
|
211 | 199 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf \ |
|
212 | 200 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
213 | 201 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
214 | 202 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
215 | 203 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
216 | 204 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
217 | 205 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
218 | 206 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
219 | 207 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
220 | 208 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
221 | 209 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
222 | 210 | /usr/lib64/libQtXml.prl \ |
|
223 | 211 | /usr/lib64/libQtCore.prl \ |
|
224 | 212 | /usr/lib64/libQtGui.prl \ |
|
225 | 213 | /usr/lib64/libQtNetwork.prl |
|
226 |
$(QMAKE) |
|
|
214 | $(QMAKE) -o Makefile rmapplugin.pro | |
|
227 | 215 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
228 | 216 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
229 | 217 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
230 | 218 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
231 | 219 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
232 | 220 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
233 | 221 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
234 | 222 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
235 | 223 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
236 | 224 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
237 | 225 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
238 | 226 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
239 | 227 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
240 | 228 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
241 | 229 | /usr/lib64/qt4/mkspecs/features/lppmonplugin.prf: |
|
242 | 230 | /usr/lib64/qt4/mkspecs/features/pythonqt.prf: |
|
243 | 231 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
244 | 232 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
245 | 233 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
246 | 234 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
247 | 235 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
248 | 236 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
249 | 237 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
250 | 238 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
251 | 239 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
252 | 240 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
253 | 241 | /usr/lib64/libQtXml.prl: |
|
254 | 242 | /usr/lib64/libQtCore.prl: |
|
255 | 243 | /usr/lib64/libQtGui.prl: |
|
256 | 244 | /usr/lib64/libQtNetwork.prl: |
|
257 | 245 | qmake: FORCE |
|
258 |
@$(QMAKE) |
|
|
246 | @$(QMAKE) -o Makefile rmapplugin.pro | |
|
259 | 247 | |
|
260 | 248 | dist: |
|
261 | 249 | @$(CHK_DIR_EXISTS) obj/rmapplugin1.0.0 || $(MKDIR) obj/rmapplugin1.0.0 |
|
262 |
$(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h |
|
|
250 | $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmappluginui.h rmapplugin.h rmapoperations.h ccsds.h ../common_PLE/qipdialogbox.h ../common_PLE/gresbstatusenquiry.h rmappluginpythonwrapper.h stardundee.h ../spw_usb_driver_v2.61/inc/spw_usb_api.h ../spw_usb_driver_v2.61/inc/spw_config_library.h gresb.h tcpackettosend.h tmpackettoread.h tmstatistics.h wfpacket.h params.h tmechobridge.h /usr/include/lppmon/genericPySysdriver.h /usr/include/lppmon/lppmonplugin.h obj/rmapplugin1.0.0/ && $(COPY_FILE) --parents rmapplugin.cpp rmappluginui.cpp rmapoperations.cpp ccsds.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/gresbstatusenquiry.cpp rmappluginpythonwrapper.cpp stardundee.cpp gresb.cpp tcpackettosend.cpp tmpackettoread.cpp tmstatistics.cpp wfpacket.cpp tmechobridge.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp obj/rmapplugin1.0.0/ && (cd `dirname obj/rmapplugin1.0.0` && $(TAR) rmapplugin1.0.0.tar rmapplugin1.0.0 && $(COMPRESS) rmapplugin1.0.0.tar) && $(MOVE) `dirname obj/rmapplugin1.0.0`/rmapplugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/rmapplugin1.0.0 | |
|
263 | 251 | |
|
264 | 252 | |
|
265 | 253 | clean:compiler_clean |
|
266 | 254 | -$(DEL_FILE) $(OBJECTS) |
|
267 | 255 | -$(DEL_FILE) *~ core *.core |
|
268 | 256 | |
|
269 | 257 | |
|
270 | 258 | ####### Sub-libraries |
|
271 | 259 | |
|
272 | 260 | distclean: clean |
|
273 | 261 | -$(DEL_FILE) bin/$(TARGET) |
|
274 | 262 | -$(DEL_FILE) bin/$(TARGET0) bin/$(TARGET1) bin/$(TARGET2) $(TARGETA) |
|
275 | 263 | -$(DEL_FILE) Makefile |
|
276 | 264 | |
|
277 | 265 | |
|
278 | 266 | check: first |
|
279 | 267 | |
|
280 | 268 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
281 | 269 | |
|
282 | 270 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
283 | 271 | |
|
284 |
compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/ |
|
|
272 | compiler_moc_header_make_all: moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
|
285 | 273 | compiler_moc_header_clean: |
|
286 |
-$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp |
|
|
274 | -$(DEL_FILE) moc/moc_rmappluginui.cpp moc/moc_rmapplugin.cpp moc/moc_qipdialogbox.cpp moc/moc_gresbstatusenquiry.cpp moc/moc_rmappluginpythonwrapper.cpp moc/moc_stardundee.cpp moc/moc_gresb.cpp moc/moc_tcpackettosend.cpp moc/moc_tmpackettoread.cpp moc/moc_tmstatistics.cpp moc/moc_wfpacket.cpp moc/moc_tmechobridge.cpp moc/moc_genericPySysdriver.cpp moc/moc_lppmonplugin.cpp | |
|
287 | 275 | moc/moc_rmappluginui.cpp: rmapoperations.h \ |
|
288 | 276 | params.h \ |
|
289 | 277 | stardundee.h \ |
|
290 | 278 | ccsds.h \ |
|
291 | 279 | tmpackettoread.h \ |
|
292 | 280 | gresb.h \ |
|
293 | wfdisplay.h \ | |
|
294 | wfplot.h \ | |
|
295 | wfpage.h \ | |
|
296 | 281 | tmstatistics.h \ |
|
297 | 282 | tmechobridge.h \ |
|
298 | 283 | rmappluginui.h |
|
299 | 284 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginui.h -o moc/moc_rmappluginui.cpp |
|
300 | 285 | |
|
301 | 286 | moc/moc_rmapplugin.cpp: rmappluginui.h \ |
|
302 | 287 | rmapoperations.h \ |
|
303 | 288 | params.h \ |
|
304 | 289 | stardundee.h \ |
|
305 | 290 | ccsds.h \ |
|
306 | 291 | tmpackettoread.h \ |
|
307 | 292 | gresb.h \ |
|
308 | wfdisplay.h \ | |
|
309 | wfplot.h \ | |
|
310 | wfpage.h \ | |
|
311 | 293 | tmstatistics.h \ |
|
312 | 294 | tmechobridge.h \ |
|
313 | 295 | wfpacket.h \ |
|
314 | 296 | rmapplugin.h |
|
315 | 297 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmapplugin.h -o moc/moc_rmapplugin.cpp |
|
316 | 298 | |
|
317 | 299 | moc/moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
318 | 300 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc/moc_qipdialogbox.cpp |
|
319 | 301 | |
|
320 | 302 | moc/moc_gresbstatusenquiry.cpp: ../common_PLE/gresbstatusenquiry.h |
|
321 | 303 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/gresbstatusenquiry.h -o moc/moc_gresbstatusenquiry.cpp |
|
322 | 304 | |
|
323 | 305 | moc/moc_rmappluginpythonwrapper.cpp: rmapoperations.h \ |
|
324 | 306 | params.h \ |
|
325 | 307 | ccsds.h \ |
|
326 | 308 | tcpackettosend.h \ |
|
327 | 309 | tmpackettoread.h \ |
|
328 | 310 | rmappluginpythonwrapper.h |
|
329 | 311 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) rmappluginpythonwrapper.h -o moc/moc_rmappluginpythonwrapper.cpp |
|
330 | 312 | |
|
331 | 313 | moc/moc_stardundee.cpp: rmapoperations.h \ |
|
332 | 314 | params.h \ |
|
333 | 315 | ccsds.h \ |
|
334 | 316 | tmpackettoread.h \ |
|
335 | 317 | stardundee.h |
|
336 | 318 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) stardundee.h -o moc/moc_stardundee.cpp |
|
337 | 319 | |
|
338 | 320 | moc/moc_gresb.cpp: rmapoperations.h \ |
|
339 | 321 | params.h \ |
|
340 | 322 | ccsds.h \ |
|
341 | 323 | tmpackettoread.h \ |
|
342 | 324 | gresb.h |
|
343 | 325 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) gresb.h -o moc/moc_gresb.cpp |
|
344 | 326 | |
|
345 | 327 | moc/moc_tcpackettosend.cpp: tcpackettosend.h |
|
346 | 328 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tcpackettosend.h -o moc/moc_tcpackettosend.cpp |
|
347 | 329 | |
|
348 | 330 | moc/moc_tmpackettoread.cpp: tmpackettoread.h |
|
349 | 331 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmpackettoread.h -o moc/moc_tmpackettoread.cpp |
|
350 | 332 | |
|
351 | moc/moc_wfdisplay.cpp: wfplot.h \ | |
|
352 | params.h \ | |
|
353 | wfpage.h \ | |
|
354 | wfdisplay.h | |
|
355 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc/moc_wfdisplay.cpp | |
|
356 | ||
|
357 | 333 | moc/moc_tmstatistics.cpp: tmstatistics.h |
|
358 | 334 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmstatistics.h -o moc/moc_tmstatistics.cpp |
|
359 | 335 | |
|
360 | moc/moc_wfplot.cpp: params.h \ | |
|
361 | wfplot.h | |
|
362 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc/moc_wfplot.cpp | |
|
363 | ||
|
364 | moc/moc_wfpage.cpp: wfplot.h \ | |
|
365 | params.h \ | |
|
366 | wfpage.h | |
|
367 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc/moc_wfpage.cpp | |
|
368 | ||
|
369 | 336 | moc/moc_wfpacket.cpp: params.h \ |
|
370 | 337 | wfpacket.h |
|
371 | 338 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpacket.h -o moc/moc_wfpacket.cpp |
|
372 | 339 | |
|
373 | 340 | moc/moc_tmechobridge.cpp: tmpackettoread.h \ |
|
374 | 341 | tmechobridge.h |
|
375 | 342 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) tmechobridge.h -o moc/moc_tmechobridge.cpp |
|
376 | 343 | |
|
377 | 344 | moc/moc_genericPySysdriver.cpp: /usr/include/lppmon/genericPySysdriver.h |
|
378 | 345 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/genericPySysdriver.h -o moc/moc_genericPySysdriver.cpp |
|
379 | 346 | |
|
380 | 347 | moc/moc_lppmonplugin.cpp: /usr/include/lppmon/lppmonplugin.h |
|
381 | 348 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) /usr/include/lppmon/lppmonplugin.h -o moc/moc_lppmonplugin.cpp |
|
382 | 349 | |
|
383 | 350 | compiler_rcc_make_all: |
|
384 | 351 | compiler_rcc_clean: |
|
385 | 352 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
386 | 353 | compiler_image_collection_clean: |
|
387 | 354 | -$(DEL_FILE) qmake_image_collection.cpp |
|
388 | 355 | compiler_moc_source_make_all: |
|
389 | 356 | compiler_moc_source_clean: |
|
390 | 357 | compiler_uic_make_all: |
|
391 | 358 | compiler_uic_clean: |
|
392 | 359 | compiler_yacc_decl_make_all: |
|
393 | 360 | compiler_yacc_decl_clean: |
|
394 | 361 | compiler_yacc_impl_make_all: |
|
395 | 362 | compiler_yacc_impl_clean: |
|
396 | 363 | compiler_lex_make_all: |
|
397 | 364 | compiler_lex_clean: |
|
398 | 365 | compiler_clean: compiler_moc_header_clean |
|
399 | 366 | |
|
400 | 367 | ####### Compile |
|
401 | 368 | |
|
402 | 369 | obj/rmapplugin.o: rmapplugin.cpp rmapplugin.h \ |
|
403 | 370 | rmappluginui.h \ |
|
404 | 371 | rmapoperations.h \ |
|
405 | 372 | params.h \ |
|
406 | 373 | stardundee.h \ |
|
407 | 374 | ccsds.h \ |
|
408 | 375 | tmpackettoread.h \ |
|
409 | 376 | gresb.h \ |
|
410 | wfdisplay.h \ | |
|
411 | wfplot.h \ | |
|
412 | wfpage.h \ | |
|
413 | 377 | tmstatistics.h \ |
|
414 | 378 | tmechobridge.h \ |
|
415 | 379 | wfpacket.h \ |
|
416 | 380 | rmappluginpythonwrapper.h \ |
|
417 | 381 | tcpackettosend.h |
|
418 | 382 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapplugin.o rmapplugin.cpp |
|
419 | 383 | |
|
420 | 384 | obj/rmappluginui.o: rmappluginui.cpp rmapplugin.h \ |
|
421 | 385 | rmappluginui.h \ |
|
422 | 386 | rmapoperations.h \ |
|
423 | 387 | params.h \ |
|
424 | 388 | stardundee.h \ |
|
425 | 389 | ccsds.h \ |
|
426 | 390 | tmpackettoread.h \ |
|
427 | 391 | gresb.h \ |
|
428 | wfdisplay.h \ | |
|
429 | wfplot.h \ | |
|
430 | wfpage.h \ | |
|
431 | 392 | tmstatistics.h \ |
|
432 | 393 | tmechobridge.h \ |
|
433 | 394 | wfpacket.h |
|
434 | 395 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginui.o rmappluginui.cpp |
|
435 | 396 | |
|
436 | 397 | obj/rmapoperations.o: rmapoperations.cpp rmapoperations.h \ |
|
437 | 398 | params.h |
|
438 | 399 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmapoperations.o rmapoperations.cpp |
|
439 | 400 | |
|
440 | 401 | obj/ccsds.o: ccsds.cpp ccsds.h |
|
441 | 402 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/ccsds.o ccsds.cpp |
|
442 | 403 | |
|
443 | 404 | obj/qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
444 | 405 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
445 | 406 | |
|
446 | 407 | obj/gresbstatusenquiry.o: ../common_PLE/gresbstatusenquiry.cpp ../common_PLE/gresbstatusenquiry.h |
|
447 | 408 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresbstatusenquiry.o ../common_PLE/gresbstatusenquiry.cpp |
|
448 | 409 | |
|
449 | 410 | obj/rmappluginpythonwrapper.o: rmappluginpythonwrapper.cpp rmappluginpythonwrapper.h \ |
|
450 | 411 | rmapoperations.h \ |
|
451 | 412 | params.h \ |
|
452 | 413 | ccsds.h \ |
|
453 | 414 | tcpackettosend.h \ |
|
454 | 415 | tmpackettoread.h |
|
455 | 416 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/rmappluginpythonwrapper.o rmappluginpythonwrapper.cpp |
|
456 | 417 | |
|
457 | 418 | obj/stardundee.o: stardundee.cpp stardundee.h \ |
|
458 | 419 | rmapoperations.h \ |
|
459 | 420 | params.h \ |
|
460 | 421 | ccsds.h \ |
|
461 | 422 | tmpackettoread.h |
|
462 | 423 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/stardundee.o stardundee.cpp |
|
463 | 424 | |
|
464 | 425 | obj/gresb.o: gresb.cpp gresb.h \ |
|
465 | 426 | rmapoperations.h \ |
|
466 | 427 | params.h \ |
|
467 | 428 | ccsds.h \ |
|
468 | 429 | tmpackettoread.h |
|
469 | 430 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/gresb.o gresb.cpp |
|
470 | 431 | |
|
471 | 432 | obj/tcpackettosend.o: tcpackettosend.cpp tcpackettosend.h |
|
472 | 433 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tcpackettosend.o tcpackettosend.cpp |
|
473 | 434 | |
|
474 | 435 | obj/tmpackettoread.o: tmpackettoread.cpp tmpackettoread.h |
|
475 | 436 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmpackettoread.o tmpackettoread.cpp |
|
476 | 437 | |
|
477 | obj/wfdisplay.o: wfdisplay.cpp wfdisplay.h \ | |
|
478 | wfplot.h \ | |
|
479 | params.h \ | |
|
480 | wfpage.h | |
|
481 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfdisplay.o wfdisplay.cpp | |
|
482 | ||
|
483 | 438 | obj/tmstatistics.o: tmstatistics.cpp tmstatistics.h |
|
484 | 439 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmstatistics.o tmstatistics.cpp |
|
485 | 440 | |
|
486 | obj/wfplot.o: wfplot.cpp wfplot.h \ | |
|
487 | params.h | |
|
488 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfplot.o wfplot.cpp | |
|
489 | ||
|
490 | obj/wfpage.o: wfpage.cpp wfpage.h \ | |
|
491 | wfplot.h \ | |
|
492 | params.h | |
|
493 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpage.o wfpage.cpp | |
|
494 | ||
|
495 | 441 | obj/wfpacket.o: wfpacket.cpp wfpacket.h \ |
|
496 | 442 | params.h |
|
497 | 443 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/wfpacket.o wfpacket.cpp |
|
498 | 444 | |
|
499 | 445 | obj/tmechobridge.o: tmechobridge.cpp tmechobridge.h \ |
|
500 | 446 | tmpackettoread.h |
|
501 | 447 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/tmechobridge.o tmechobridge.cpp |
|
502 | 448 | |
|
503 | 449 | obj/lppmonplugininterface.o: /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp /usr/include/lppmon/pluginsInterface/lppmonplugininterface.h \ |
|
504 | 450 | /usr/include/lppmon/pluginsInterface/lppmonplugininterface_global.h |
|
505 | 451 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/lppmonplugininterface.o /usr/include/lppmon/pluginsInterface/lppmonplugininterface.cpp |
|
506 | 452 | |
|
507 | 453 | obj/moc_rmappluginui.o: moc/moc_rmappluginui.cpp |
|
508 | 454 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginui.o moc/moc_rmappluginui.cpp |
|
509 | 455 | |
|
510 | 456 | obj/moc_rmapplugin.o: moc/moc_rmapplugin.cpp |
|
511 | 457 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmapplugin.o moc/moc_rmapplugin.cpp |
|
512 | 458 | |
|
513 | 459 | obj/moc_qipdialogbox.o: moc/moc_qipdialogbox.cpp |
|
514 | 460 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_qipdialogbox.o moc/moc_qipdialogbox.cpp |
|
515 | 461 | |
|
516 | 462 | obj/moc_gresbstatusenquiry.o: moc/moc_gresbstatusenquiry.cpp |
|
517 | 463 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresbstatusenquiry.o moc/moc_gresbstatusenquiry.cpp |
|
518 | 464 | |
|
519 | 465 | obj/moc_rmappluginpythonwrapper.o: moc/moc_rmappluginpythonwrapper.cpp |
|
520 | 466 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_rmappluginpythonwrapper.o moc/moc_rmappluginpythonwrapper.cpp |
|
521 | 467 | |
|
522 | 468 | obj/moc_stardundee.o: moc/moc_stardundee.cpp |
|
523 | 469 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_stardundee.o moc/moc_stardundee.cpp |
|
524 | 470 | |
|
525 | 471 | obj/moc_gresb.o: moc/moc_gresb.cpp |
|
526 | 472 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_gresb.o moc/moc_gresb.cpp |
|
527 | 473 | |
|
528 | 474 | obj/moc_tcpackettosend.o: moc/moc_tcpackettosend.cpp |
|
529 | 475 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tcpackettosend.o moc/moc_tcpackettosend.cpp |
|
530 | 476 | |
|
531 | 477 | obj/moc_tmpackettoread.o: moc/moc_tmpackettoread.cpp |
|
532 | 478 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmpackettoread.o moc/moc_tmpackettoread.cpp |
|
533 | 479 | |
|
534 | obj/moc_wfdisplay.o: moc/moc_wfdisplay.cpp | |
|
535 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfdisplay.o moc/moc_wfdisplay.cpp | |
|
536 | ||
|
537 | 480 | obj/moc_tmstatistics.o: moc/moc_tmstatistics.cpp |
|
538 | 481 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmstatistics.o moc/moc_tmstatistics.cpp |
|
539 | 482 | |
|
540 | obj/moc_wfplot.o: moc/moc_wfplot.cpp | |
|
541 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfplot.o moc/moc_wfplot.cpp | |
|
542 | ||
|
543 | obj/moc_wfpage.o: moc/moc_wfpage.cpp | |
|
544 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpage.o moc/moc_wfpage.cpp | |
|
545 | ||
|
546 | 483 | obj/moc_wfpacket.o: moc/moc_wfpacket.cpp |
|
547 | 484 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_wfpacket.o moc/moc_wfpacket.cpp |
|
548 | 485 | |
|
549 | 486 | obj/moc_tmechobridge.o: moc/moc_tmechobridge.cpp |
|
550 | 487 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_tmechobridge.o moc/moc_tmechobridge.cpp |
|
551 | 488 | |
|
552 | 489 | obj/moc_genericPySysdriver.o: moc/moc_genericPySysdriver.cpp |
|
553 | 490 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_genericPySysdriver.o moc/moc_genericPySysdriver.cpp |
|
554 | 491 | |
|
555 | 492 | obj/moc_lppmonplugin.o: moc/moc_lppmonplugin.cpp |
|
556 | 493 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_lppmonplugin.o moc/moc_lppmonplugin.cpp |
|
557 | 494 | |
|
558 | 495 | ####### Install |
|
559 | 496 | |
|
560 | 497 | install_target: first FORCE |
|
561 |
@$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/ |
|
|
562 |
-$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
563 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
564 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
565 |
-$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/ |
|
|
498 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ || $(MKDIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
|
499 | -$(INSTALL_PROGRAM) "bin/$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
|
500 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
|
501 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
|
502 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
|
566 | 503 | |
|
567 | 504 | uninstall_target: FORCE |
|
568 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
569 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
570 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
571 |
-$(DEL_FILE) "$(INSTALL_ROOT)/home/ |
|
|
572 |
-$(DEL_DIR) $(INSTALL_ROOT)/home/ |
|
|
505 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET)" | |
|
506 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET0)" | |
|
507 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET1)" | |
|
508 | -$(DEL_FILE) "$(INSTALL_ROOT)/home/paul/.lppmon/plugins/$(TARGET2)" | |
|
509 | -$(DEL_DIR) $(INSTALL_ROOT)/home/paul/.lppmon/plugins/ | |
|
573 | 510 | |
|
574 | 511 | |
|
575 | 512 | install: install_target FORCE |
|
576 | 513 | |
|
577 | 514 | uninstall: uninstall_target FORCE |
|
578 | 515 | |
|
579 | 516 | FORCE: |
|
580 | 517 |
@@ -1,83 +1,82 | |||
|
1 | 1 | # |
|
2 | 2 | # Project created by QtCreator 2011-09-20T08:15:30 |
|
3 | 3 | # |
|
4 | 4 | #------------------------------------------------- |
|
5 | 5 | |
|
6 | 6 | #include(/etc/lppmon/lppmonplugin.prf) |
|
7 | 7 | CONFIG += lppmonplugin |
|
8 | 8 | TARGET = rmapplugin |
|
9 | 9 | |
|
10 | 10 | DEFINES += PLUGIN=rmapplugin |
|
11 | 11 | DEFINES += PLUGINHEADER="\"\\\"rmapplugin.h"\\\"\" |
|
12 | 12 | DEFINES += driver_Name="\"\\\"RMAPPlugin"\\\"\" |
|
13 | 13 | DEFINES += driver_Author="\"\\\"Paul Leroy paul.leroy@lpp.polytechnique.fr"\\\"\" |
|
14 | 14 | DEFINES += driver_Version="\"\\\"1.1.2"\\\"\" |
|
15 | 15 | DEFINES += driver_Description="\"\\\"AHB bus controler, works with Gaisler's AHB plugn' play bus."\\\"\" |
|
16 | 16 | DEFINES += driver_can_be_root=1 |
|
17 | 17 | DEFINES += driver_can_be_child=0 |
|
18 | 18 | DEFINES += driver_VID=0 |
|
19 | 19 | DEFINES += driver_PID=0 |
|
20 | 20 | |
|
21 | 21 | QT += network |
|
22 | 22 | |
|
23 | 23 | LIBS += ../spw_usb_driver_v2.63/lib/x86_64/libSpaceWireUSBAPI.so \ |
|
24 | 24 | ../spw_usb_driver_v2.63/lib/x86_64/libConfigLibraryUSB.so |
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | INCLUDEPATH += \ |
|
28 | 28 | $${PWD} \ |
|
29 | 29 | ../common_PLE \ |
|
30 | ../spw_usb_driver_v2.63/inc | |
|
30 | ../spw_usb_driver_v2.63/inc \ | |
|
31 | $${QT_INSTALL_HEADER} \ | |
|
32 | $$[QT_INSTALL_HEADERS]/lppmon/common \ | |
|
33 | $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay | |
|
34 | ||
|
35 | LIBS += -llppmoncommon -lwfdisplay -lqwt5-qt4 | |
|
31 | 36 | |
|
32 | 37 | |
|
33 | 38 | HEADERS += \ |
|
34 | 39 | rmappluginui.h \ |
|
35 | 40 | rmapplugin.h \ |
|
36 | 41 | rmapoperations.h \ |
|
37 | 42 | ccsds.h \ |
|
38 | 43 | ../common_PLE/qipdialogbox.h \ |
|
39 | 44 | ../common_PLE/gresbstatusenquiry.h \ |
|
40 | 45 | rmappluginpythonwrapper.h \ |
|
41 | 46 | stardundee.h \ |
|
42 | 47 | ../spw_usb_driver_v2.61/inc/spw_usb_api.h \ |
|
43 | 48 | ../spw_usb_driver_v2.61/inc/spw_config_library.h \ |
|
44 | 49 | gresb.h \ |
|
45 | 50 | tcpackettosend.h \ |
|
46 | 51 | tmpackettoread.h \ |
|
47 | wfdisplay.h \ | |
|
48 | 52 | tmstatistics.h \ |
|
49 | wfplot.h \ | |
|
50 | wfpage.h \ | |
|
51 | 53 | wfpacket.h \ |
|
52 | 54 | params.h \ |
|
53 | 55 | tmechobridge.h |
|
54 | 56 | |
|
55 | 57 | |
|
56 | 58 | SOURCES += \ |
|
57 | 59 | rmapplugin.cpp \ |
|
58 | 60 | rmappluginui.cpp \ |
|
59 | 61 | rmapoperations.cpp \ |
|
60 | 62 | ccsds.cpp \ |
|
61 | 63 | ../common_PLE/qipdialogbox.cpp \ |
|
62 | 64 | ../common_PLE/gresbstatusenquiry.cpp \ |
|
63 | 65 | rmappluginpythonwrapper.cpp \ |
|
64 | 66 | stardundee.cpp \ |
|
65 | 67 | gresb.cpp \ |
|
66 | 68 | tcpackettosend.cpp \ |
|
67 | 69 | tmpackettoread.cpp \ |
|
68 | wfdisplay.cpp \ | |
|
69 | 70 | tmstatistics.cpp \ |
|
70 | wfplot.cpp \ | |
|
71 | wfpage.cpp \ | |
|
72 | 71 | wfpacket.cpp \ |
|
73 | 72 | tmechobridge.cpp |
|
74 | 73 | |
|
75 | 74 | |
|
76 | 75 | |
|
77 | 76 | |
|
78 | 77 | |
|
79 | 78 | |
|
80 | 79 | |
|
81 | 80 | |
|
82 | 81 | |
|
83 | 82 |
@@ -1,164 +1,166 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the LPPMON Software |
|
3 | 3 | -- Copyright (C) 20011, Laboratory of Plasma Physics - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 3 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Paul Leroy |
|
20 | 20 | -- Mail : paul.leroy@lpp.polytechnique.fr |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | #ifndef RMAPPLUGINUI_H |
|
23 | 23 | #define RMAPPLUGINUI_H |
|
24 | 24 | |
|
25 | 25 | #include <QWidget> |
|
26 | 26 | #include <QPushButton> |
|
27 | 27 | #include <QLabel> |
|
28 | 28 | #include <QSlider> |
|
29 | 29 | #include <QSpinBox> |
|
30 | 30 | #include <QGridLayout> |
|
31 | 31 | #include <QCheckBox> |
|
32 | 32 | #include <QFile> |
|
33 | 33 | #include <QTextStream> |
|
34 | 34 | #include <QFileDialog> |
|
35 | 35 | #include <QDir> |
|
36 | 36 | #include <QDialog> |
|
37 | 37 | #include <QCloseEvent> |
|
38 | 38 | #include <QTabWidget> |
|
39 | #include "qipdialogbox.h" | |
|
39 | #include <QTextEdit> | |
|
40 | #include <QRadioButton> | |
|
41 | #include <QGroupBox> | |
|
42 | ||
|
40 | 43 | #include <rmapoperations.h> |
|
41 | 44 | #include <gresbstatusenquiry.h> |
|
42 | #include <QTextEdit> | |
|
43 | 45 | #include <stardundee.h> |
|
44 | 46 | #include <gresb.h> |
|
45 | #include <QRadioButton> | |
|
46 | #include <QGroupBox> | |
|
47 |
#include " |
|
|
47 | #include <wfdisplay.h> | |
|
48 | ||
|
49 | #include "qipdialogbox.h" | |
|
48 | 50 | #include "tmstatistics.h" |
|
49 | 51 | #include "tmechobridge.h" |
|
50 | 52 | |
|
51 | 53 | enum selectedBridge{ |
|
52 | 54 | selectedBridgeIsUnknown, |
|
53 | 55 | selectedBridgeIsGRESB, |
|
54 | 56 | selectedBridgeIsStarDundee |
|
55 | 57 | }; |
|
56 | 58 | |
|
57 | 59 | class rmapPluginUI : public QWidget |
|
58 | 60 | { |
|
59 | 61 | Q_OBJECT |
|
60 | 62 | |
|
61 | 63 | public: |
|
62 | 64 | explicit rmapPluginUI(QWidget *parent = 0); |
|
63 | 65 | ~rmapPluginUI(); |
|
64 | 66 | |
|
65 | 67 | QPushButton* rmapOpenCommunicationButton; |
|
66 | 68 | QPushButton* rmapCloseCommunicationButton; |
|
67 | 69 | QPushButton* logFileChooseButton; |
|
68 | 70 | QPushButton* gresbStatusQueryRetryButton; |
|
69 | 71 | QPushButton* gresbStatusQueryAbortButton; |
|
70 | 72 | QPushButton* sendCCSDSCommandButton; |
|
71 | 73 | QPushButton* send_TC_LFR_UPDATE_TIME_Button; |
|
72 | 74 | QPushButton* reset_TC_LFR_UPDATE_TIME_Button; |
|
73 | 75 | QPushButton* clearConsoleButton; |
|
74 | 76 | |
|
75 | 77 | QRadioButton* selectGRESB_BUTTON; |
|
76 | 78 | QRadioButton* selectStarDundee_BUTTON; |
|
77 | 79 | |
|
78 | 80 | QGroupBox *selection_GROUPBOX; |
|
79 | 81 | |
|
80 | 82 | QSpinBox* gresbVirtualLinkSpinBox; |
|
81 | 83 | QSpinBox* spwLinkSpinBox; |
|
82 | 84 | QSpinBox* rmapSourceLogicalAddressSpinBox; |
|
83 | 85 | QSpinBox* rmapTargetLogicalAddressSpinBox; |
|
84 | 86 | QSpinBox* CCSDSTargetLogicalAddressSpinBox; |
|
85 | 87 | |
|
86 | 88 | QCheckBox *logEnableCheckBox; |
|
87 | 89 | QCheckBox *RMAP_write_verify; |
|
88 | 90 | QCheckBox *RMAP_write_reply; |
|
89 | 91 | |
|
90 | 92 | QLabel* rmapSendStateLabel; |
|
91 | 93 | QLabel* rmapReceiveStateLabel; |
|
92 | 94 | QLabel* gresbStatusQueryLabel; |
|
93 | 95 | QLabel* gresbStatusQueryDialogLabel; |
|
94 | 96 | QLabel* sendCCSDSCommandLabel; |
|
95 | 97 | QLabel* nbPacketInStore; |
|
96 | 98 | |
|
97 | 99 | QDialog* gresbStatusQueryDialog; |
|
98 | 100 | |
|
99 | 101 | QTextEdit* console; |
|
100 | 102 | |
|
101 | 103 | WFDisplay* wfDisplay; |
|
102 | 104 | |
|
103 | 105 | TMStatistics* tmStatistics; |
|
104 | 106 | |
|
105 | 107 | // SPACEWIRE BRIDGES |
|
106 | 108 | StarDundee *starDundee; |
|
107 | 109 | gresb *gresbBridge; |
|
108 | 110 | |
|
109 | 111 | // TM Echo Bridge |
|
110 | 112 | TMEchoBridge * tmEchoBridge; |
|
111 | 113 | |
|
112 | 114 | bool islogfileenable(); |
|
113 | 115 | void appendToLogFile(const QString & text); |
|
114 | 116 | void closeEvent(QCloseEvent *event); |
|
115 | 117 | |
|
116 | 118 | public slots: |
|
117 | 119 | void chooseLogFile(); |
|
118 | 120 | void logFileEnDisable(int state); |
|
119 | 121 | RMAP_command_codes getCommandCode(); |
|
120 | 122 | |
|
121 | 123 | private slots: |
|
122 | 124 | void selectionBetweenGresbAndStarDundee(); |
|
123 | 125 | void isOpen(bool flag); |
|
124 | 126 | |
|
125 | 127 | signals: |
|
126 | 128 | void connectPortsig(QString PortName,int baudrate); |
|
127 | 129 | void setLogFileName(QString FileName); |
|
128 | 130 | void commandCodeHasChanged(RMAP_command_codes commandCode); |
|
129 | 131 | void bridgeHasChanged(selectedBridge bridge); |
|
130 | 132 | void targetHasChanged(unsigned char target); |
|
131 | 133 | void sourceHasChanged(unsigned char source); |
|
132 | 134 | |
|
133 | 135 | private: |
|
134 | 136 | QLabel *gresbBridgeIPLabel; |
|
135 | 137 | QLabel *gresbVirtualLinkLabel; |
|
136 | 138 | QLabel *spwLinkLabel; |
|
137 | 139 | QLabel *rmapSourceLogicalAddressLabel; |
|
138 | 140 | QLabel *rmapTargetLogicalAddressLabel; |
|
139 | 141 | QLabel *logFileName; |
|
140 | 142 | |
|
141 | 143 | QGridLayout *bridgeSelection_LAYOUT; |
|
142 | 144 | QGridLayout *connectionLayout; |
|
143 | 145 | QGridLayout *gresbStatusQueryDialogLayout; |
|
144 | 146 | QGridLayout *generalParameters_LAYOUT; |
|
145 | 147 | QVBoxLayout *selectionLayout; |
|
146 | 148 | QVBoxLayout *mainLayout; |
|
147 | 149 | QVBoxLayout *ccsdsLayout; |
|
148 | 150 | QVBoxLayout *consoleLayout; |
|
149 | 151 | |
|
150 | 152 | QTabWidget *spwTabWidget; |
|
151 | 153 | |
|
152 | 154 | QWidget* bridgeWidget; |
|
153 | 155 | |
|
154 | 156 | QGroupBox *gresb_GROUPBOX; |
|
155 | 157 | QGroupBox *stardundee_GROUPBOX; |
|
156 | 158 | QGroupBox *generalParameters_GROUPBOX; |
|
157 | 159 | |
|
158 | 160 | QFile *logFile; |
|
159 | 161 | QTextStream *logFileStrm; |
|
160 | 162 | bool logFileEn; |
|
161 | 163 | |
|
162 | 164 | }; |
|
163 | 165 | |
|
164 | 166 | #endif // RMAPPLUGINUI_H |
@@ -1,314 +1,314 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: libwfdisplay.so.1.0.0 |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 1 |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 13:53:16 2013 | |
|
4 | 4 | # Project: wfdisplay.pro |
|
5 | 5 | # Template: lib |
|
6 |
# Command: / |
|
|
6 | # Command: /bin/qmake-qt4 -o Makefile wfdisplay.pro | |
|
7 | 7 | ############################################################################# |
|
8 | 8 | |
|
9 | 9 | ####### Compiler, tools and options |
|
10 | 10 | |
|
11 | 11 | CC = gcc |
|
12 | 12 | CXX = g++ |
|
13 | 13 | DEFINES = -DWFDISPLAY_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED |
|
14 | 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 | 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 | 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 | 17 | LINK = g++ |
|
18 | 18 | LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libwfdisplay.so.1 |
|
19 | 19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lQtGui -lQtCore -lpthread |
|
20 | 20 | AR = ar cqs |
|
21 | 21 | RANLIB = |
|
22 |
QMAKE = |
|
|
22 | QMAKE = /bin/qmake-qt4 | |
|
23 | 23 | TAR = tar -cf |
|
24 | 24 | COMPRESS = gzip -9f |
|
25 | 25 | COPY = cp -f |
|
26 | 26 | SED = sed |
|
27 | 27 | COPY_FILE = $(COPY) |
|
28 | 28 | COPY_DIR = $(COPY) -r |
|
29 | 29 | STRIP = |
|
30 | 30 | INSTALL_FILE = install -m 644 -p |
|
31 | 31 | INSTALL_DIR = $(COPY_DIR) |
|
32 | 32 | INSTALL_PROGRAM = install -m 755 -p |
|
33 | 33 | DEL_FILE = rm -f |
|
34 | 34 | SYMLINK = ln -f -s |
|
35 | 35 | DEL_DIR = rmdir |
|
36 | 36 | MOVE = mv -f |
|
37 | 37 | CHK_DIR_EXISTS= test -d |
|
38 | 38 | MKDIR = mkdir -p |
|
39 | 39 | |
|
40 | 40 | ####### Output directory |
|
41 | 41 | |
|
42 | 42 | OBJECTS_DIR = ./ |
|
43 | 43 | |
|
44 | 44 | ####### Files |
|
45 | 45 | |
|
46 | 46 | SOURCES = wfdisplay.cpp \ |
|
47 | 47 | wfplot.cpp \ |
|
48 | 48 | wfpage.cpp moc_wfdisplay.cpp \ |
|
49 | 49 | moc_wfplot.cpp \ |
|
50 | 50 | moc_wfpage.cpp |
|
51 | 51 | OBJECTS = wfdisplay.o \ |
|
52 | 52 | wfplot.o \ |
|
53 | 53 | wfpage.o \ |
|
54 | 54 | moc_wfdisplay.o \ |
|
55 | 55 | moc_wfplot.o \ |
|
56 | 56 | moc_wfpage.o |
|
57 | 57 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
58 | 58 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
59 | 59 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
60 | 60 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
61 | 61 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
62 | 62 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
63 | 63 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
64 | 64 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
65 | 65 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
66 | 66 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
67 | 67 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
68 | 68 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
69 | 69 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
70 | 70 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
71 | 71 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
72 | 72 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
73 | 73 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
74 | 74 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
75 | 75 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
76 | 76 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
77 | 77 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
78 | 78 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
79 | 79 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
80 | 80 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
81 | 81 | wfdisplay.pro |
|
82 | 82 | QMAKE_TARGET = wfdisplay |
|
83 | 83 | DESTDIR = |
|
84 | 84 | TARGET = libwfdisplay.so.1.0.0 |
|
85 | 85 | TARGETA = libwfdisplay.a |
|
86 | 86 | TARGETD = libwfdisplay.so.1.0.0 |
|
87 | 87 | TARGET0 = libwfdisplay.so |
|
88 | 88 | TARGET1 = libwfdisplay.so.1 |
|
89 | 89 | TARGET2 = libwfdisplay.so.1.0 |
|
90 | 90 | |
|
91 | 91 | first: all |
|
92 | 92 | ####### Implicit rules |
|
93 | 93 | |
|
94 | 94 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
95 | 95 | |
|
96 | 96 | .cpp.o: |
|
97 | 97 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
98 | 98 | |
|
99 | 99 | .cc.o: |
|
100 | 100 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
101 | 101 | |
|
102 | 102 | .cxx.o: |
|
103 | 103 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
104 | 104 | |
|
105 | 105 | .C.o: |
|
106 | 106 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
107 | 107 | |
|
108 | 108 | .c.o: |
|
109 | 109 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
110 | 110 | |
|
111 | 111 | ####### Build rules |
|
112 | 112 | |
|
113 | 113 | all: Makefile $(TARGET) |
|
114 | 114 | |
|
115 | 115 | $(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) |
|
116 | 116 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) |
|
117 | 117 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) |
|
118 | 118 | -ln -s $(TARGET) $(TARGET0) |
|
119 | 119 | -ln -s $(TARGET) $(TARGET1) |
|
120 | 120 | -ln -s $(TARGET) $(TARGET2) |
|
121 | 121 | |
|
122 | 122 | |
|
123 | 123 | |
|
124 | 124 | staticlib: $(TARGETA) |
|
125 | 125 | |
|
126 | 126 | $(TARGETA): $(OBJECTS) $(OBJCOMP) |
|
127 | 127 | -$(DEL_FILE) $(TARGETA) |
|
128 | 128 | $(AR) $(TARGETA) $(OBJECTS) |
|
129 | 129 | |
|
130 | 130 | Makefile: wfdisplay.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
131 | 131 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
132 | 132 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
133 | 133 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
134 | 134 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
135 | 135 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
136 | 136 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
137 | 137 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
138 | 138 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
139 | 139 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
140 | 140 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
141 | 141 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
142 | 142 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
143 | 143 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
144 | 144 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
145 | 145 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
146 | 146 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
147 | 147 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
148 | 148 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
149 | 149 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
150 | 150 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
151 | 151 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
152 | 152 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
153 | 153 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
154 | 154 | /usr/lib64/libQtGui.prl \ |
|
155 | 155 | /usr/lib64/libQtCore.prl |
|
156 | 156 | $(QMAKE) -o Makefile wfdisplay.pro |
|
157 | 157 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
158 | 158 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
159 | 159 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
160 | 160 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
161 | 161 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
162 | 162 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
163 | 163 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
164 | 164 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
165 | 165 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
166 | 166 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
167 | 167 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
168 | 168 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
169 | 169 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
170 | 170 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
171 | 171 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
172 | 172 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
173 | 173 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
174 | 174 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
175 | 175 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
176 | 176 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
177 | 177 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
178 | 178 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
179 | 179 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
180 | 180 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
181 | 181 | /usr/lib64/libQtGui.prl: |
|
182 | 182 | /usr/lib64/libQtCore.prl: |
|
183 | 183 | qmake: FORCE |
|
184 | 184 | @$(QMAKE) -o Makefile wfdisplay.pro |
|
185 | 185 | |
|
186 | 186 | dist: |
|
187 | 187 | @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0 |
|
188 | 188 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_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 | 191 | clean:compiler_clean |
|
192 | 192 | -$(DEL_FILE) $(OBJECTS) |
|
193 | 193 | -$(DEL_FILE) *~ core *.core |
|
194 | 194 | |
|
195 | 195 | |
|
196 | 196 | ####### Sub-libraries |
|
197 | 197 | |
|
198 | 198 | distclean: clean |
|
199 | 199 | -$(DEL_FILE) $(TARGET) |
|
200 | 200 | -$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) |
|
201 | 201 | -$(DEL_FILE) Makefile |
|
202 | 202 | |
|
203 | 203 | |
|
204 | 204 | check: first |
|
205 | 205 | |
|
206 | 206 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
207 | 207 | |
|
208 | 208 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
209 | 209 | |
|
210 | 210 | compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp |
|
211 | 211 | compiler_moc_header_clean: |
|
212 | 212 | -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp |
|
213 | 213 | moc_wfdisplay.cpp: wfdisplay_global.h \ |
|
214 | 214 | wfpage.h \ |
|
215 | 215 | wfplot.h \ |
|
216 | 216 | wfdisplay_params.h \ |
|
217 | 217 | wfdisplay.h |
|
218 | 218 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp |
|
219 | 219 | |
|
220 | 220 | moc_wfplot.cpp: wfplot.h |
|
221 | 221 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp |
|
222 | 222 | |
|
223 | 223 | moc_wfpage.cpp: wfdisplay_global.h \ |
|
224 | 224 | wfplot.h \ |
|
225 | 225 | wfdisplay_params.h \ |
|
226 | 226 | wfpage.h |
|
227 | 227 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp |
|
228 | 228 | |
|
229 | 229 | compiler_rcc_make_all: |
|
230 | 230 | compiler_rcc_clean: |
|
231 | 231 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
232 | 232 | compiler_image_collection_clean: |
|
233 | 233 | -$(DEL_FILE) qmake_image_collection.cpp |
|
234 | 234 | compiler_moc_source_make_all: |
|
235 | 235 | compiler_moc_source_clean: |
|
236 | 236 | compiler_uic_make_all: |
|
237 | 237 | compiler_uic_clean: |
|
238 | 238 | compiler_yacc_decl_make_all: |
|
239 | 239 | compiler_yacc_decl_clean: |
|
240 | 240 | compiler_yacc_impl_make_all: |
|
241 | 241 | compiler_yacc_impl_clean: |
|
242 | 242 | compiler_lex_make_all: |
|
243 | 243 | compiler_lex_clean: |
|
244 | 244 | compiler_clean: compiler_moc_header_clean |
|
245 | 245 | |
|
246 | 246 | ####### Compile |
|
247 | 247 | |
|
248 | 248 | wfdisplay.o: wfdisplay.cpp wfdisplay.h \ |
|
249 | 249 | wfdisplay_global.h \ |
|
250 | 250 | wfpage.h \ |
|
251 | 251 | wfplot.h \ |
|
252 | 252 | wfdisplay_params.h |
|
253 | 253 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp |
|
254 | 254 | |
|
255 | 255 | wfplot.o: wfplot.cpp wfplot.h \ |
|
256 | 256 | wfdisplay_params.h |
|
257 | 257 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp |
|
258 | 258 | |
|
259 | 259 | wfpage.o: wfpage.cpp wfpage.h \ |
|
260 | 260 | wfdisplay_global.h \ |
|
261 | 261 | wfplot.h \ |
|
262 | 262 | wfdisplay_params.h |
|
263 | 263 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp |
|
264 | 264 | |
|
265 | 265 | moc_wfdisplay.o: moc_wfdisplay.cpp |
|
266 | 266 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp |
|
267 | 267 | |
|
268 | 268 | moc_wfplot.o: moc_wfplot.cpp |
|
269 | 269 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfplot.o moc_wfplot.cpp |
|
270 | 270 | |
|
271 | 271 | moc_wfpage.o: moc_wfpage.cpp |
|
272 | 272 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpage.o moc_wfpage.cpp |
|
273 | 273 | |
|
274 | 274 | ####### Install |
|
275 | 275 | |
|
276 | 276 | install_header: first FORCE |
|
277 | 277 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
278 |
-$(INSTALL_FILE) |
|
|
279 |
-$(INSTALL_FILE) |
|
|
280 |
-$(INSTALL_FILE) |
|
|
281 |
-$(INSTALL_FILE) |
|
|
282 |
-$(INSTALL_FILE) |
|
|
278 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
279 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
280 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
281 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
282 | -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
|
283 | 283 | |
|
284 | 284 | |
|
285 | 285 | uninstall_header: FORCE |
|
286 | 286 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h |
|
287 | 287 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h |
|
288 | 288 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h |
|
289 | 289 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h |
|
290 | 290 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h |
|
291 | 291 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
292 | 292 | |
|
293 | 293 | |
|
294 | 294 | install_target: first FORCE |
|
295 | 295 | @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib64/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib64/ |
|
296 | 296 | -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" |
|
297 | 297 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" |
|
298 | 298 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" |
|
299 | 299 | -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" |
|
300 | 300 | |
|
301 | 301 | uninstall_target: FORCE |
|
302 | 302 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET)" |
|
303 | 303 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)" |
|
304 | 304 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)" |
|
305 | 305 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)" |
|
306 | 306 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib64/ |
|
307 | 307 | |
|
308 | 308 | |
|
309 | 309 | install: install_header install_target FORCE |
|
310 | 310 | |
|
311 | 311 | uninstall: uninstall_header uninstall_target FORCE |
|
312 | 312 | |
|
313 | 313 | FORCE: |
|
314 | 314 |
@@ -1,265 +1,214 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-07-04T1 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-04T13:53:51. --> | |
|
4 | 4 | <qtcreator> |
|
5 | 5 | <data> |
|
6 | 6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
7 | 7 | <value type="int">0</value> |
|
8 | 8 | </data> |
|
9 | 9 | <data> |
|
10 | 10 | <variable>ProjectExplorer.Project.EditorSettings</variable> |
|
11 | 11 | <valuemap type="QVariantMap"> |
|
12 | 12 | <value type="bool" key="EditorConfiguration.AutoIndent">true</value> |
|
13 | 13 | <value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value> |
|
14 | 14 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0"> |
|
15 | 15 | <value type="QString" key="language">Cpp</value> |
|
16 | 16 | <valuemap type="QVariantMap" key="value"> |
|
17 | 17 | <value type="QString" key="CurrentPreferences">CppGlobal</value> |
|
18 | 18 | </valuemap> |
|
19 | 19 | </valuemap> |
|
20 | 20 | <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1"> |
|
21 | 21 | <value type="QString" key="language">QmlJS</value> |
|
22 | 22 | <valuemap type="QVariantMap" key="value"> |
|
23 | 23 | <value type="QString" key="CurrentPreferences">QmlJSGlobal</value> |
|
24 | 24 | </valuemap> |
|
25 | 25 | </valuemap> |
|
26 | 26 | <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value> |
|
27 | 27 | <value type="QByteArray" key="EditorConfiguration.Codec">System</value> |
|
28 | 28 | <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value> |
|
29 | 29 | <value type="int" key="EditorConfiguration.IndentSize">4</value> |
|
30 | 30 | <value type="bool" key="EditorConfiguration.MouseNavigation">true</value> |
|
31 | 31 | <value type="int" key="EditorConfiguration.PaddingMode">1</value> |
|
32 | 32 | <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value> |
|
33 | 33 | <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value> |
|
34 | 34 | <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value> |
|
35 | 35 | <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value> |
|
36 | 36 | <value type="int" key="EditorConfiguration.TabSize">8</value> |
|
37 | 37 | <value type="bool" key="EditorConfiguration.UseGlobal">true</value> |
|
38 | 38 | <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value> |
|
39 | 39 | <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value> |
|
40 | 40 | <value type="bool" key="EditorConfiguration.cleanIndentation">true</value> |
|
41 | 41 | <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value> |
|
42 | 42 | <value type="bool" key="EditorConfiguration.inEntireDocument">false</value> |
|
43 | 43 | </valuemap> |
|
44 | 44 | </data> |
|
45 | 45 | <data> |
|
46 | 46 | <variable>ProjectExplorer.Project.PluginSettings</variable> |
|
47 | 47 | <valuemap type="QVariantMap"/> |
|
48 | 48 | </data> |
|
49 | 49 | <data> |
|
50 | 50 | <variable>ProjectExplorer.Project.Target.0</variable> |
|
51 | 51 | <valuemap type="QVariantMap"> |
|
52 | 52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
53 | 53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
54 | 54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
55 | 55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value> |
|
56 | 56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
57 | 57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
58 | 58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
59 | 59 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
60 | 60 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
61 | 61 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
62 | 62 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
63 | 63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
64 | 64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
65 | 65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
66 |
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto"> |
|
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
|
67 | 67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
68 | 68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
69 | 69 | </valuemap> |
|
70 | 70 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
71 | 71 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
72 | 72 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
73 | 73 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
74 | 74 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
75 | 75 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
76 | 76 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
77 | 77 | </valuemap> |
|
78 | 78 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
79 | 79 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
80 | 80 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
81 | 81 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
82 | 82 | </valuemap> |
|
83 | 83 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
84 | 84 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
85 | 85 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
86 | 86 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
87 | 87 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
88 | 88 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
89 | 89 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
90 | 90 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
91 | 91 | </valuemap> |
|
92 | 92 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
93 | 93 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
94 | 94 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
95 | 95 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
96 | 96 | </valuemap> |
|
97 | 97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
98 | 98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
99 | 99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value> | |
|
101 | 101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
102 | 102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
103 |
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"> |
|
|
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/ |
|
|
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> | |
|
105 | 105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
106 | 106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
107 | 107 | </valuemap> |
|
108 |
<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"> | |
|
111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> | |
|
113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
|
115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
|
116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> | |
|
117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
|
118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
|
119 | </valuemap> | |
|
120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> | |
|
121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> | |
|
125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> | |
|
126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
127 | </valuemap> | |
|
128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> | |
|
129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> | |
|
130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> | |
|
132 | </valuemap> | |
|
133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> | |
|
134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> | |
|
135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> | |
|
136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> | |
|
138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> | |
|
139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> | |
|
140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> | |
|
141 | </valuemap> | |
|
142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> | |
|
143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> | |
|
144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> | |
|
146 | </valuemap> | |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value> | |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay-build-desktop-Qt_4_8_3_in_PATH__System__Release</value> | |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
|
157 | </valuemap> | |
|
158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> | |
|
108 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value> | |
|
159 | 109 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
160 | 110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
161 | 111 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
162 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
163 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
164 | 114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
165 | 115 | </valuemap> |
|
166 | 116 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
167 | 117 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
168 | 118 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | 119 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
170 | 120 | </valuemap> |
|
171 | 121 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
172 | 122 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
173 | 123 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | 124 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
175 | 125 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | 126 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
177 | 127 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | 128 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
179 | 129 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | 130 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
181 | 131 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | 132 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
183 | 133 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | 134 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
185 | 135 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | 136 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
187 | 137 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | 138 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
189 | 139 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | 140 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
191 | 141 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | 142 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
193 | 143 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | 144 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
195 | 145 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | 146 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
197 | 147 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | 148 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
199 | 149 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | 150 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
201 | 151 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
202 | 152 | <value type="int">0</value> |
|
203 | 153 | <value type="int">1</value> |
|
204 | 154 | <value type="int">2</value> |
|
205 | 155 | <value type="int">3</value> |
|
206 | 156 | <value type="int">4</value> |
|
207 | 157 | <value type="int">5</value> |
|
208 | 158 | <value type="int">6</value> |
|
209 | 159 | <value type="int">7</value> |
|
210 | 160 | <value type="int">8</value> |
|
211 | 161 | <value type="int">9</value> |
|
212 | 162 | <value type="int">10</value> |
|
213 | 163 | <value type="int">11</value> |
|
214 | 164 | <value type="int">12</value> |
|
215 | 165 | <value type="int">13</value> |
|
216 | 166 | <value type="int">14</value> |
|
217 | 167 | </valuelist> |
|
218 | 168 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
219 | 169 | <value type="int">0</value> |
|
220 | 170 | <value type="int">1</value> |
|
221 | 171 | <value type="int">2</value> |
|
222 | 172 | <value type="int">3</value> |
|
223 | 173 | <value type="int">4</value> |
|
224 | 174 | <value type="int">5</value> |
|
225 | 175 | <value type="int">6</value> |
|
226 | 176 | <value type="int">7</value> |
|
227 | 177 | <value type="int">8</value> |
|
228 | 178 | <value type="int">9</value> |
|
229 | 179 | <value type="int">10</value> |
|
230 | 180 | <value type="int">11</value> |
|
231 | 181 | <value type="int">12</value> |
|
232 | 182 | <value type="int">13</value> |
|
233 | 183 | <value type="int">14</value> |
|
234 | 184 | </valuelist> |
|
235 |
<value type="QString" key="ProjectExplorer. |
|
|
185 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> | |
|
186 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> | |
|
187 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value> | |
|
188 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> | |
|
189 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> | |
|
190 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> | |
|
191 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value> | |
|
236 | 192 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
237 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id"> |
|
|
238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> | |
|
239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> | |
|
240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">wfdisplay.pro</value> | |
|
241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> | |
|
242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> | |
|
243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> | |
|
244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> | |
|
193 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> | |
|
245 | 194 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
246 | 195 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
247 | 196 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
248 | 197 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
249 | 198 | </valuemap> |
|
250 | 199 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
251 | 200 | </valuemap> |
|
252 | 201 | </data> |
|
253 | 202 | <data> |
|
254 | 203 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
255 | 204 | <value type="int">1</value> |
|
256 | 205 | </data> |
|
257 | 206 | <data> |
|
258 | 207 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
259 |
<value type="QString">{ |
|
|
208 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> | |
|
260 | 209 | </data> |
|
261 | 210 | <data> |
|
262 | 211 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
263 | 212 | <value type="int">10</value> |
|
264 | 213 | </data> |
|
265 | 214 | </qtcreator> |
@@ -1,411 +1,410 | |||
|
1 | 1 | #include "wfpage.h" |
|
2 | 2 | |
|
3 | 3 | WFPage::WFPage(QWidget *parent) : |
|
4 | 4 | QMainWindow(parent) |
|
5 | 5 | { |
|
6 | 6 | wfPlot_v = new WFPlot(); |
|
7 | 7 | wfPlot_e1 = new WFPlot(); |
|
8 | 8 | wfPlot_e2 = new WFPlot(); |
|
9 | 9 | wfPlot_b1 = new WFPlot(); |
|
10 | 10 | wfPlot_b2 = new WFPlot(); |
|
11 | 11 | wfPlot_b3 = new WFPlot(); |
|
12 | 12 | // |
|
13 | 13 | wfPlot_v->customPlot->setTitle("v"); |
|
14 | 14 | wfPlot_e1->customPlot->setTitle("e1"); |
|
15 | 15 | wfPlot_e2->customPlot->setTitle("e2"); |
|
16 | 16 | wfPlot_b1->customPlot->setTitle("b1"); |
|
17 | 17 | wfPlot_b2->customPlot->setTitle("b2"); |
|
18 | 18 | wfPlot_b3->customPlot->setTitle("b3"); |
|
19 | 19 | // |
|
20 | 20 | /*mainLayout = new QGridLayout; |
|
21 | 21 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); |
|
22 | 22 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); |
|
23 | 23 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); |
|
24 | 24 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); |
|
25 | 25 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); |
|
26 | 26 | mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);*/ |
|
27 | 27 | // |
|
28 | 28 | dockV = NULL; |
|
29 | 29 | dockE1 = NULL; |
|
30 | 30 | dockE2 = NULL; |
|
31 | 31 | dockB1 = NULL; |
|
32 | 32 | dockB2 = NULL; |
|
33 | 33 | dockB3 = NULL; |
|
34 | 34 | |
|
35 | 35 | createToolBar(); |
|
36 | 36 | // |
|
37 | 37 | //this->setLayout(mainLayout); |
|
38 | 38 | } |
|
39 | 39 | |
|
40 | 40 | void WFPage::displayOnPlot(short *data, unsigned char num) |
|
41 | 41 | { |
|
42 | 42 | switch(num){ |
|
43 | 43 | case 0: |
|
44 | 44 | wfPlot_v->displayOnPlot(data, DEFAULT_SIZE); |
|
45 | 45 | break; |
|
46 | 46 | case 1: |
|
47 | 47 | wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE); |
|
48 | 48 | break; |
|
49 | 49 | case 2: |
|
50 | 50 | wfPlot_e2->displayOnPlot(data, DEFAULT_SIZE); |
|
51 | 51 | break; |
|
52 | 52 | case 3: |
|
53 | 53 | wfPlot_b1->displayOnPlot(data, DEFAULT_SIZE); |
|
54 | 54 | break; |
|
55 | 55 | case 4: |
|
56 | 56 | wfPlot_b2->displayOnPlot(data, DEFAULT_SIZE); |
|
57 | 57 | break; |
|
58 | 58 | case 5: |
|
59 | 59 | wfPlot_b3->displayOnPlot(data, DEFAULT_SIZE); |
|
60 | 60 | break; |
|
61 | 61 | } |
|
62 | 62 | } |
|
63 | 63 | |
|
64 | 64 | void WFPage::createDockWindows() |
|
65 | 65 | { |
|
66 | 66 | dockV = new QDockWidget(tr("V"), this); |
|
67 | 67 | dockE1 = new QDockWidget(tr("E1"), this); |
|
68 | 68 | dockE2 = new QDockWidget(tr("E2"), this); |
|
69 | 69 | dockB1 = new QDockWidget(tr("B1"), this); |
|
70 | 70 | dockB2 = new QDockWidget(tr("B2"), this); |
|
71 | 71 | dockB3 = new QDockWidget(tr("B3"), this); |
|
72 | 72 | } |
|
73 | 73 | |
|
74 | 74 | void WFPage::createToolBar() |
|
75 | 75 | { |
|
76 | 76 | radio_v = new QRadioButton(tr("v")); |
|
77 | 77 | radio_e1 = new QRadioButton(tr("e1")); |
|
78 | 78 | radio_e2 = new QRadioButton(tr("e2")); |
|
79 | 79 | radio_b1 = new QRadioButton(tr("b1")); |
|
80 | 80 | radio_b2 = new QRadioButton(tr("b2")); |
|
81 | 81 | radio_b3 = new QRadioButton(tr("b3")); |
|
82 | 82 | radio_tabify = new QRadioButton(tr("tabify")); |
|
83 | 83 | |
|
84 | 84 | radio_v->setAutoExclusive(false); |
|
85 | 85 | radio_e1->setAutoExclusive(false); |
|
86 | 86 | radio_e2->setAutoExclusive(false); |
|
87 | 87 | radio_b1->setAutoExclusive(false); |
|
88 | 88 | radio_b2->setAutoExclusive(false); |
|
89 | 89 | radio_b3->setAutoExclusive(false); |
|
90 | 90 | radio_tabify->setAutoExclusive(false); |
|
91 | 91 | |
|
92 | 92 | myToolBar = new QToolBar("select"); |
|
93 | 93 | |
|
94 | 94 | myToolBar->addWidget(radio_v); |
|
95 | 95 | myToolBar->addWidget(radio_e1); |
|
96 | 96 | myToolBar->addWidget(radio_e2); |
|
97 | 97 | myToolBar->addWidget(radio_b1); |
|
98 | 98 | myToolBar->addWidget(radio_b2); |
|
99 | 99 | myToolBar->addWidget(radio_b3); |
|
100 | 100 | myToolBar->addSeparator(); |
|
101 | 101 | myToolBar->addWidget(radio_tabify); |
|
102 | 102 | |
|
103 | 103 | addToolBar(Qt::LeftToolBarArea, myToolBar); |
|
104 | 104 | |
|
105 | 105 | radio_tabify->setChecked(true); |
|
106 | 106 | |
|
107 | 107 | connect(this->radio_v, SIGNAL(clicked(bool)), this, SLOT(actionRadioV(bool))); |
|
108 | 108 | connect(this->radio_e1, SIGNAL(clicked(bool)), this, SLOT(actionRadioE1(bool))); |
|
109 | 109 | connect(this->radio_e2, SIGNAL(clicked(bool)), this, SLOT(actionRadioE2(bool))); |
|
110 | 110 | connect(this->radio_b1, SIGNAL(clicked(bool)), this, SLOT(actionRadioB1(bool))); |
|
111 | 111 | connect(this->radio_b2, SIGNAL(clicked(bool)), this, SLOT(actionRadioB2(bool))); |
|
112 | 112 | connect(this->radio_b3, SIGNAL(clicked(bool)), this, SLOT(actionRadioB3(bool))); |
|
113 | 113 | connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks())); |
|
114 | 114 | } |
|
115 | 115 | |
|
116 | 116 | void WFPage::actionRadioV(bool state) |
|
117 | 117 | { |
|
118 | 118 | if (state == true) |
|
119 | 119 | { |
|
120 | 120 | if (dockV == NULL) |
|
121 | 121 | { |
|
122 | 122 | dockV = new QDockWidget("V", this); |
|
123 | 123 | dockV->setWidget(wfPlot_v); |
|
124 | 124 | } |
|
125 | 125 | } |
|
126 | 126 | else |
|
127 | 127 | { |
|
128 | 128 | this->removeDockWidget(dockV); |
|
129 | 129 | } |
|
130 | 130 | organizeDocks(); |
|
131 | 131 | } |
|
132 | 132 | |
|
133 | 133 | void WFPage::actionRadioE1(bool state) |
|
134 | 134 | { |
|
135 | 135 | if (state == true) |
|
136 | 136 | { |
|
137 | 137 | if (dockE1 == NULL) |
|
138 | 138 | { |
|
139 | 139 | dockE1 = new QDockWidget("E1", this); |
|
140 | 140 | dockE1->setWidget(wfPlot_e1); |
|
141 | 141 | } |
|
142 | 142 | addDockWidget(Qt::TopDockWidgetArea, dockE1); |
|
143 | 143 | dockE1->show(); |
|
144 | 144 | } |
|
145 | 145 | else |
|
146 | 146 | { |
|
147 | 147 | this->removeDockWidget(dockE1); |
|
148 | 148 | } |
|
149 | 149 | organizeDocks(); |
|
150 | 150 | } |
|
151 | 151 | |
|
152 | 152 | void WFPage::actionRadioE2(bool state) |
|
153 | 153 | { |
|
154 | 154 | if (state == true) |
|
155 | 155 | { |
|
156 | 156 | if (dockE2 == NULL) |
|
157 | 157 | { |
|
158 | 158 | dockE2 = new QDockWidget("E2", this); |
|
159 | 159 | dockE2->setWidget(wfPlot_e2); |
|
160 | 160 | } |
|
161 | 161 | addDockWidget(Qt::TopDockWidgetArea, dockE2); |
|
162 | 162 | dockE2->show(); |
|
163 | 163 | } |
|
164 | 164 | else |
|
165 | 165 | { |
|
166 | 166 | this->removeDockWidget(dockE2); |
|
167 | 167 | } |
|
168 | 168 | organizeDocks(); |
|
169 | 169 | } |
|
170 | 170 | |
|
171 | 171 | void WFPage::actionRadioB1(bool state) |
|
172 | 172 | { |
|
173 | 173 | if (state == true) |
|
174 | 174 | { |
|
175 | 175 | if (dockB1 == NULL) |
|
176 | 176 | { |
|
177 | 177 | dockB1 = new QDockWidget("B1", this); |
|
178 | 178 | dockB1->setWidget(wfPlot_b1); |
|
179 | 179 | } |
|
180 | 180 | } |
|
181 | 181 | else |
|
182 | 182 | { |
|
183 | 183 | this->removeDockWidget(dockB1); |
|
184 | 184 | } |
|
185 | 185 | organizeDocks(); |
|
186 | 186 | } |
|
187 | 187 | |
|
188 | 188 | void WFPage::actionRadioB2(bool state) |
|
189 | 189 | { |
|
190 | 190 | if (state == true) |
|
191 | 191 | { |
|
192 | 192 | if (dockB2 == NULL) |
|
193 | 193 | { |
|
194 | 194 | dockB2 = new QDockWidget("B2", this); |
|
195 | 195 | dockB2->setWidget(wfPlot_b2); |
|
196 | 196 | } |
|
197 | 197 | } |
|
198 | 198 | else |
|
199 | 199 | { |
|
200 | 200 | this->removeDockWidget(dockB2); |
|
201 | 201 | } |
|
202 | 202 | organizeDocks(); |
|
203 | 203 | } |
|
204 | 204 | |
|
205 | 205 | void WFPage::actionRadioB3(bool state) |
|
206 | 206 | { |
|
207 | 207 | if (state == true) |
|
208 | 208 | { |
|
209 | 209 | if (dockB3 == NULL) |
|
210 | 210 | { |
|
211 | 211 | dockB3 = new QDockWidget("B3", this); |
|
212 | 212 | dockB3->setWidget(wfPlot_b3); |
|
213 | 213 | } |
|
214 | 214 | } |
|
215 | 215 | else |
|
216 | 216 | { |
|
217 | 217 | this->removeDockWidget(dockB3); |
|
218 | 218 | } |
|
219 | 219 | organizeDocks(); |
|
220 | 220 | } |
|
221 | 221 | |
|
222 | 222 | void WFPage::buildDockList() |
|
223 | 223 | { |
|
224 | 224 | dockList.clear(); |
|
225 | 225 | |
|
226 | 226 | if (radio_v->isChecked()) |
|
227 | 227 | { |
|
228 | 228 | dockList.append(dockV); |
|
229 | 229 | removeDockWidget(dockV); |
|
230 | 230 | } |
|
231 | 231 | if (radio_e1->isChecked()) |
|
232 | 232 | { |
|
233 | 233 | dockList.append(dockE1); |
|
234 | 234 | removeDockWidget(dockE1); |
|
235 | 235 | } |
|
236 | 236 | if (radio_e2->isChecked()) |
|
237 | 237 | { |
|
238 | 238 | dockList.append(dockE2); |
|
239 | 239 | removeDockWidget(dockE2); |
|
240 | 240 | } |
|
241 | 241 | if (radio_b1->isChecked()) |
|
242 | 242 | { |
|
243 | 243 | dockList.append(dockB1); |
|
244 | 244 | removeDockWidget(dockB1); |
|
245 | 245 | } |
|
246 | 246 | if (radio_b2->isChecked()) |
|
247 | 247 | { |
|
248 | 248 | dockList.append(dockB2); |
|
249 | 249 | removeDockWidget(dockB2); |
|
250 | 250 | } |
|
251 | 251 | if (radio_b3->isChecked()) |
|
252 | 252 | { |
|
253 | 253 | dockList.append(dockB3); |
|
254 | 254 | removeDockWidget(dockB3); |
|
255 | 255 | } |
|
256 | 256 | } |
|
257 | 257 | |
|
258 | 258 | void WFPage::organizeDocks() |
|
259 | 259 | { |
|
260 | 260 | if (radio_tabify->isChecked()) |
|
261 | 261 | { |
|
262 | 262 | tabify(); |
|
263 | this->resize(1.2*this->minimumSizeHint()); | |
|
264 | 263 | } |
|
265 | 264 | else |
|
266 | 265 | { |
|
267 | 266 | unTabify(); |
|
268 | wfPlot_v->resize(wfPlot_v->minimumSizeHint()); | |
|
269 | wfPlot_e1->resize(wfPlot_e1->minimumSizeHint()); | |
|
270 | wfPlot_e2->resize(wfPlot_e2->minimumSizeHint()); | |
|
271 | wfPlot_b1->resize(wfPlot_b1->minimumSizeHint()); | |
|
272 | wfPlot_b2->resize(wfPlot_b2->minimumSizeHint()); | |
|
273 | wfPlot_b3->resize(wfPlot_b3->minimumSizeHint()); | |
|
274 | this->resize(this->minimumSizeHint()); | |
|
275 | 267 | } |
|
268 | wfPlot_v->resize(wfPlot_v->minimumSizeHint()); | |
|
269 | wfPlot_e1->resize(wfPlot_e1->minimumSizeHint()); | |
|
270 | wfPlot_e2->resize(wfPlot_e2->minimumSizeHint()); | |
|
271 | wfPlot_b1->resize(wfPlot_b1->minimumSizeHint()); | |
|
272 | wfPlot_b2->resize(wfPlot_b2->minimumSizeHint()); | |
|
273 | wfPlot_b3->resize(wfPlot_b3->minimumSizeHint()); | |
|
274 | this->resize(this->minimumSizeHint()); | |
|
276 | 275 | } |
|
277 | 276 | |
|
278 | 277 | void WFPage::unTabify() |
|
279 | 278 | { |
|
280 | 279 | buildDockList(); |
|
281 | 280 | |
|
282 | 281 | switch(dockList.size()) |
|
283 | 282 | { |
|
284 | 283 | case 0: |
|
285 | 284 | break; |
|
286 | 285 | case 1: |
|
287 | 286 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
288 | 287 | dockList.at(0)->show(); |
|
289 | 288 | break; |
|
290 | 289 | case 2: |
|
291 | 290 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
292 | 291 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); |
|
293 | 292 | dockList.at(0)->show(); |
|
294 | 293 | dockList.at(1)->show(); |
|
295 | 294 | break; |
|
296 | 295 | case 3: |
|
297 | 296 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
298 | 297 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); |
|
299 | 298 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2)); |
|
300 | 299 | dockList.at(0)->show(); |
|
301 | 300 | dockList.at(1)->show(); |
|
302 | 301 | dockList.at(2)->show(); |
|
303 | 302 | break; |
|
304 | 303 | case 4: |
|
305 | 304 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
306 | 305 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); |
|
307 | 306 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2)); |
|
308 | 307 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3)); |
|
309 | 308 | dockList.at(0)->show(); |
|
310 | 309 | dockList.at(1)->show(); |
|
311 | 310 | dockList.at(2)->show(); |
|
312 | 311 | dockList.at(3)->show(); |
|
313 | 312 | break; |
|
314 | 313 | case 5: |
|
315 | 314 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
316 | 315 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); |
|
317 | 316 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(2)); |
|
318 | 317 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3)); |
|
319 | 318 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4)); |
|
320 | 319 | dockList.at(0)->show(); |
|
321 | 320 | dockList.at(1)->show(); |
|
322 | 321 | dockList.at(2)->show(); |
|
323 | 322 | dockList.at(3)->show(); |
|
324 | 323 | dockList.at(4)->show(); |
|
325 | 324 | break; |
|
326 | 325 | case 6: |
|
327 | 326 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
328 | 327 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(1)); |
|
329 | 328 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(2)); |
|
330 | 329 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3)); |
|
331 | 330 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4)); |
|
332 | 331 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(5)); |
|
333 | 332 | dockList.at(0)->show(); |
|
334 | 333 | dockList.at(1)->show(); |
|
335 | 334 | dockList.at(2)->show(); |
|
336 | 335 | dockList.at(3)->show(); |
|
337 | 336 | dockList.at(4)->show(); |
|
338 | 337 | dockList.at(5)->show(); |
|
339 | 338 | break; |
|
340 | 339 | default: |
|
341 | 340 | break; |
|
342 | 341 | } |
|
343 | 342 | } |
|
344 | 343 | |
|
345 | 344 | void WFPage::tabify() |
|
346 | 345 | { |
|
347 | 346 | buildDockList(); |
|
348 | 347 | |
|
349 | 348 | switch(dockList.size()) |
|
350 | 349 | { |
|
351 | 350 | case 0: |
|
352 | 351 | break; |
|
353 | 352 | case 1: |
|
354 | 353 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
355 | 354 | dockList.at(0)->show(); |
|
356 | 355 | break; |
|
357 | 356 | case 2: |
|
358 | 357 | addDockWidget(Qt::TopDockWidgetArea, dockList.at(0)); |
|
359 | 358 | tabifyDockWidget(dockList.at(0), dockList.at(1)); |
|
360 | 359 | dockList.at(0)->show(); |
|
361 | 360 | dockList.at(1)->show(); |
|
362 | 361 | break; |
|
363 | 362 | case 3: |
|
364 | 363 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); |
|
365 | 364 | tabifyDockWidget(dockList.at(0), dockList.at(1)); |
|
366 | 365 | tabifyDockWidget(dockList.at(1), dockList.at(2)); |
|
367 | 366 | dockList.at(0)->show(); |
|
368 | 367 | dockList.at(1)->show(); |
|
369 | 368 | dockList.at(2)->show(); |
|
370 | 369 | break; |
|
371 | 370 | case 4: |
|
372 | 371 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); |
|
373 | 372 | tabifyDockWidget(dockList.at(0), dockList.at(1)); |
|
374 | 373 | tabifyDockWidget(dockList.at(1), dockList.at(2)); |
|
375 | 374 | tabifyDockWidget(dockList.at(2), dockList.at(3)); |
|
376 | 375 | dockList.at(0)->show(); |
|
377 | 376 | dockList.at(1)->show(); |
|
378 | 377 | dockList.at(2)->show(); |
|
379 | 378 | dockList.at(3)->show(); |
|
380 | 379 | break; |
|
381 | 380 | case 5: |
|
382 | 381 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); |
|
383 | 382 | tabifyDockWidget(dockList.at(0), dockList.at(1)); |
|
384 | 383 | tabifyDockWidget(dockList.at(1), dockList.at(2)); |
|
385 | 384 | tabifyDockWidget(dockList.at(2), dockList.at(3)); |
|
386 | 385 | tabifyDockWidget(dockList.at(3), dockList.at(4)); |
|
387 | 386 | dockList.at(0)->show(); |
|
388 | 387 | dockList.at(1)->show(); |
|
389 | 388 | dockList.at(2)->show(); |
|
390 | 389 | dockList.at(3)->show(); |
|
391 | 390 | dockList.at(4)->show(); |
|
392 | 391 | break; |
|
393 | 392 | case 6: |
|
394 | 393 | addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0)); |
|
395 | 394 | tabifyDockWidget(dockList.at(0), dockList.at(1)); |
|
396 | 395 | tabifyDockWidget(dockList.at(1), dockList.at(2)); |
|
397 | 396 | tabifyDockWidget(dockList.at(2), dockList.at(3)); |
|
398 | 397 | tabifyDockWidget(dockList.at(3), dockList.at(4)); |
|
399 | 398 | tabifyDockWidget(dockList.at(4), dockList.at(5)); |
|
400 | 399 | dockList.at(0)->show(); |
|
401 | 400 | dockList.at(1)->show(); |
|
402 | 401 | dockList.at(2)->show(); |
|
403 | 402 | dockList.at(3)->show(); |
|
404 | 403 | dockList.at(4)->show(); |
|
405 | 404 | dockList.at(5)->show(); |
|
406 | 405 | break; |
|
407 | 406 | default: |
|
408 | 407 | break; |
|
409 | 408 | } |
|
410 | 409 | } |
|
411 | 410 |
General Comments 0
You need to be logged in to leave comments.
Login now