@@ -1,342 +1,342 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-06-1 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-18T15:14: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 | 66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</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 | 108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
109 | 109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
110 | 110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
111 | 111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
112 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
113 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 | 114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
115 | 115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
116 | 116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
117 | 117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
118 | 118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
119 | 119 | </valuemap> |
|
120 | 120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
121 | 121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
122 | 122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
123 | 123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
124 | 124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
125 | 125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
126 | 126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
127 | 127 | </valuemap> |
|
128 | 128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
129 | 129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
130 | 130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
131 | 131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
132 | 132 | </valuemap> |
|
133 | 133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
134 | 134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
135 | 135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
136 | 136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
137 | 137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
138 | 138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
139 | 139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
140 | 140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
141 | 141 | </valuemap> |
|
142 | 142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
143 | 143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
144 | 144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
145 | 145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
146 | 146 | </valuemap> |
|
147 | 147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
148 | 148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
149 | 149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
150 | 150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
151 | 151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
152 | 152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
153 | 153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
154 | 154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value> |
|
155 | 155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
156 | 156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
157 | 157 | </valuemap> |
|
158 | 158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
159 | 159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
160 | 160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
161 | 161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
162 | 162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
163 | 163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
164 | 164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
165 | 165 | </valuemap> |
|
166 | 166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
167 | 167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
168 | 168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | 169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
170 | 170 | </valuemap> |
|
171 | 171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
172 | 172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
173 | 173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | 174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
175 | 175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | 176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
177 | 177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | 178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
179 | 179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | 180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
181 | 181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | 182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
183 | 183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | 184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
185 | 185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | 186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
187 | 187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | 188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
189 | 189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | 190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
191 | 191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | 192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
193 | 193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | 194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
195 | 195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | 196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
197 | 197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | 198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
199 | 199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | 200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
201 | 201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
202 | 202 | <value type="int">0</value> |
|
203 | 203 | <value type="int">1</value> |
|
204 | 204 | <value type="int">2</value> |
|
205 | 205 | <value type="int">3</value> |
|
206 | 206 | <value type="int">4</value> |
|
207 | 207 | <value type="int">5</value> |
|
208 | 208 | <value type="int">6</value> |
|
209 | 209 | <value type="int">7</value> |
|
210 | 210 | <value type="int">8</value> |
|
211 | 211 | <value type="int">9</value> |
|
212 | 212 | <value type="int">10</value> |
|
213 | 213 | <value type="int">11</value> |
|
214 | 214 | <value type="int">12</value> |
|
215 | 215 | <value type="int">13</value> |
|
216 | 216 | <value type="int">14</value> |
|
217 | 217 | </valuelist> |
|
218 | 218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
219 | 219 | <value type="int">0</value> |
|
220 | 220 | <value type="int">1</value> |
|
221 | 221 | <value type="int">2</value> |
|
222 | 222 | <value type="int">3</value> |
|
223 | 223 | <value type="int">4</value> |
|
224 | 224 | <value type="int">5</value> |
|
225 | 225 | <value type="int">6</value> |
|
226 | 226 | <value type="int">7</value> |
|
227 | 227 | <value type="int">8</value> |
|
228 | 228 | <value type="int">9</value> |
|
229 | 229 | <value type="int">10</value> |
|
230 | 230 | <value type="int">11</value> |
|
231 | 231 | <value type="int">12</value> |
|
232 | 232 | <value type="int">13</value> |
|
233 | 233 | <value type="int">14</value> |
|
234 | 234 | </valuelist> |
|
235 | 235 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value> |
|
236 | 236 | <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value> |
|
237 | 237 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value> |
|
238 | 238 | <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value> |
|
239 | 239 | <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/> |
|
240 | 240 | <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value> |
|
241 | 241 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value> |
|
242 | 242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
243 | 243 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value> |
|
244 | 244 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
245 | 245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
246 | 246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
247 | 247 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
248 | 248 | </valuemap> |
|
249 | 249 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.1"> |
|
250 | 250 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
251 | 251 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
252 | 252 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
253 | 253 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
254 | 254 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
255 | 255 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
256 | 256 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
257 | 257 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
258 | 258 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
259 | 259 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
260 | 260 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
261 | 261 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
262 | 262 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
263 | 263 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
264 | 264 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
265 | 265 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
266 | 266 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
267 | 267 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
268 | 268 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
269 | 269 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
270 | 270 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
271 | 271 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
272 | 272 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
273 | 273 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
274 | 274 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
275 | 275 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
276 | 276 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
277 | 277 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
278 | 278 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
279 | 279 | <value type="int">0</value> |
|
280 | 280 | <value type="int">1</value> |
|
281 | 281 | <value type="int">2</value> |
|
282 | 282 | <value type="int">3</value> |
|
283 | 283 | <value type="int">4</value> |
|
284 | 284 | <value type="int">5</value> |
|
285 | 285 | <value type="int">6</value> |
|
286 | 286 | <value type="int">7</value> |
|
287 | 287 | <value type="int">8</value> |
|
288 | 288 | <value type="int">9</value> |
|
289 | 289 | <value type="int">10</value> |
|
290 | 290 | <value type="int">11</value> |
|
291 | 291 | <value type="int">12</value> |
|
292 | 292 | <value type="int">13</value> |
|
293 | 293 | <value type="int">14</value> |
|
294 | 294 | </valuelist> |
|
295 | 295 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
296 | 296 | <value type="int">0</value> |
|
297 | 297 | <value type="int">1</value> |
|
298 | 298 | <value type="int">2</value> |
|
299 | 299 | <value type="int">3</value> |
|
300 | 300 | <value type="int">4</value> |
|
301 | 301 | <value type="int">5</value> |
|
302 | 302 | <value type="int">6</value> |
|
303 | 303 | <value type="int">7</value> |
|
304 | 304 | <value type="int">8</value> |
|
305 | 305 | <value type="int">9</value> |
|
306 | 306 | <value type="int">10</value> |
|
307 | 307 | <value type="int">11</value> |
|
308 | 308 | <value type="int">12</value> |
|
309 | 309 | <value type="int">13</value> |
|
310 | 310 | <value type="int">14</value> |
|
311 | 311 | </valuelist> |
|
312 | 312 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">spwtimegenerator</value> |
|
313 | 313 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
314 | 314 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
315 | 315 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
316 | 316 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
317 | 317 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">spwtimegenerator/spwtimegenerator/spwtimegenerator.pro</value> |
|
318 | 318 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
319 | 319 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
320 | 320 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
321 | 321 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
322 | 322 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
323 | 323 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
324 | 324 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
325 | 325 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value> |
|
326 | 326 | </valuemap> |
|
327 | 327 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> |
|
328 | 328 | </valuemap> |
|
329 | 329 | </data> |
|
330 | 330 | <data> |
|
331 | 331 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
332 | 332 | <value type="int">1</value> |
|
333 | 333 | </data> |
|
334 | 334 | <data> |
|
335 | 335 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
336 | 336 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
337 | 337 | </data> |
|
338 | 338 | <data> |
|
339 | 339 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
340 | 340 | <value type="int">10</value> |
|
341 | 341 | </data> |
|
342 | 342 | </qtcreator> |
@@ -1,360 +1,378 | |||
|
1 | 1 | ############################################################################# |
|
2 | 2 | # Makefile for building: gselesia |
|
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Tue Jun 18 10:19:47 2013 | |
|
4 | 4 | # Project: gselesia.pro |
|
5 | 5 | # Template: app |
|
6 | 6 | # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -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_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 $(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 $(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 = -Wl,-O1 -Wl,-z,relro |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
|
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 |
lfrxmlparser.cpp |
|
|
56 | lfrxmlparser.cpp \ | |
|
57 | lfrspectrogram.cpp moc_mainwindow.cpp \ | |
|
57 | 58 | moc_mainwindowui.cpp \ |
|
58 | 59 | moc_qipdialogbox.cpp \ |
|
59 | 60 | moc_lfrxmlhandler.cpp \ |
|
60 | 61 | moc_lfrxmlwriter.cpp \ |
|
61 | 62 | moc_tmstatistics.cpp \ |
|
62 | 63 | moc_tmpackettoread.cpp \ |
|
63 | 64 | moc_wfpacket.cpp \ |
|
64 | 65 | moc_hkdisplay.cpp \ |
|
65 | moc_lfrxmlparser.cpp | |
|
66 | moc_lfrxmlparser.cpp \ | |
|
67 | moc_lfrspectrogram.cpp | |
|
66 | 68 | OBJECTS = main.o \ |
|
67 | 69 | mainwindow.o \ |
|
68 | 70 | mainwindowui.o \ |
|
69 | 71 | qipdialogbox.o \ |
|
70 | 72 | lfrxmlhandler.o \ |
|
71 | 73 | lfrxmlwriter.o \ |
|
72 | 74 | tmstatistics.o \ |
|
73 | 75 | tmpackettoread.o \ |
|
74 | 76 | wfpacket.o \ |
|
75 | 77 | hkdisplay.o \ |
|
76 | 78 | lfrxmlparser.o \ |
|
79 | lfrspectrogram.o \ | |
|
77 | 80 | moc_mainwindow.o \ |
|
78 | 81 | moc_mainwindowui.o \ |
|
79 | 82 | moc_qipdialogbox.o \ |
|
80 | 83 | moc_lfrxmlhandler.o \ |
|
81 | 84 | moc_lfrxmlwriter.o \ |
|
82 | 85 | moc_tmstatistics.o \ |
|
83 | 86 | moc_tmpackettoread.o \ |
|
84 | 87 | moc_wfpacket.o \ |
|
85 | 88 | moc_hkdisplay.o \ |
|
86 | moc_lfrxmlparser.o | |
|
89 | moc_lfrxmlparser.o \ | |
|
90 | moc_lfrspectrogram.o | |
|
87 | 91 | DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
88 | 92 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
89 | 93 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
90 | 94 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
91 | 95 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
92 | 96 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
93 | 97 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
94 | 98 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
95 | 99 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
96 | 100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
97 | 101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
98 | 102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
99 | 103 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
100 | 104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
101 | 105 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
102 | 106 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
103 | 107 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
104 | 108 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
105 | 109 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
106 | 110 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
107 | 111 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
108 | 112 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
109 | 113 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
110 | 114 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
111 | 115 | gselesia.pro |
|
112 | 116 | QMAKE_TARGET = gselesia |
|
113 | 117 | DESTDIR = |
|
114 | 118 | TARGET = gselesia |
|
115 | 119 | |
|
116 | 120 | first: all |
|
117 | 121 | ####### Implicit rules |
|
118 | 122 | |
|
119 | 123 | .SUFFIXES: .o .c .cpp .cc .cxx .C |
|
120 | 124 | |
|
121 | 125 | .cpp.o: |
|
122 | 126 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
123 | 127 | |
|
124 | 128 | .cc.o: |
|
125 | 129 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
126 | 130 | |
|
127 | 131 | .cxx.o: |
|
128 | 132 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
129 | 133 | |
|
130 | 134 | .C.o: |
|
131 | 135 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
|
132 | 136 | |
|
133 | 137 | .c.o: |
|
134 | 138 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
|
135 | 139 | |
|
136 | 140 | ####### Build rules |
|
137 | 141 | |
|
138 | 142 | all: Makefile $(TARGET) |
|
139 | 143 | |
|
140 | 144 | $(TARGET): $(OBJECTS) |
|
141 | 145 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
142 | 146 | |
|
143 | 147 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
144 | 148 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
145 | 149 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf \ |
|
146 | 150 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \ |
|
147 | 151 | /usr/lib64/qt4/mkspecs/common/g++-base.conf \ |
|
148 | 152 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf \ |
|
149 | 153 | /usr/lib64/qt4/mkspecs/qconfig.pri \ |
|
150 | 154 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \ |
|
151 | 155 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf \ |
|
152 | 156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
153 | 157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
154 | 158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
155 | 159 | /usr/lib64/qt4/mkspecs/features/release.prf \ |
|
156 | 160 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
157 | 161 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
158 | 162 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
159 | 163 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
160 | 164 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf \ |
|
161 | 165 | /usr/lib64/qt4/mkspecs/features/moc.prf \ |
|
162 | 166 | /usr/lib64/qt4/mkspecs/features/resources.prf \ |
|
163 | 167 | /usr/lib64/qt4/mkspecs/features/uic.prf \ |
|
164 | 168 | /usr/lib64/qt4/mkspecs/features/yacc.prf \ |
|
165 | 169 | /usr/lib64/qt4/mkspecs/features/lex.prf \ |
|
166 | 170 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \ |
|
167 | 171 | /usr/lib64/libQtXml.prl \ |
|
168 | 172 | /usr/lib64/libQtCore.prl \ |
|
169 | 173 | /usr/lib64/libQtGui.prl \ |
|
170 | 174 | /usr/lib64/libQtNetwork.prl |
|
171 | 175 | $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro |
|
172 | 176 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
173 | 177 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
174 | 178 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
175 | 179 | /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf: |
|
176 | 180 | /usr/lib64/qt4/mkspecs/common/g++-base.conf: |
|
177 | 181 | /usr/lib64/qt4/mkspecs/common/g++-unix.conf: |
|
178 | 182 | /usr/lib64/qt4/mkspecs/qconfig.pri: |
|
179 | 183 | /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri: |
|
180 | 184 | /usr/lib64/qt4/mkspecs/features/qt_functions.prf: |
|
181 | 185 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
182 | 186 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
183 | 187 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
184 | 188 | /usr/lib64/qt4/mkspecs/features/release.prf: |
|
185 | 189 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
186 | 190 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
187 | 191 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
188 | 192 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
189 | 193 | /usr/lib64/qt4/mkspecs/features/unix/thread.prf: |
|
190 | 194 | /usr/lib64/qt4/mkspecs/features/moc.prf: |
|
191 | 195 | /usr/lib64/qt4/mkspecs/features/resources.prf: |
|
192 | 196 | /usr/lib64/qt4/mkspecs/features/uic.prf: |
|
193 | 197 | /usr/lib64/qt4/mkspecs/features/yacc.prf: |
|
194 | 198 | /usr/lib64/qt4/mkspecs/features/lex.prf: |
|
195 | 199 | /usr/lib64/qt4/mkspecs/features/include_source_dir.prf: |
|
196 | 200 | /usr/lib64/libQtXml.prl: |
|
197 | 201 | /usr/lib64/libQtCore.prl: |
|
198 | 202 | /usr/lib64/libQtGui.prl: |
|
199 | 203 | /usr/lib64/libQtNetwork.prl: |
|
200 | 204 | qmake: FORCE |
|
201 | 205 | @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro |
|
202 | 206 | |
|
203 | 207 | dist: |
|
204 | 208 | @$(CHK_DIR_EXISTS) .tmp/gselesia1.0.0 || $(MKDIR) .tmp/gselesia1.0.0 |
|
205 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/gselesia1.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 .tmp/gselesia1.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 .tmp/gselesia1.0.0/ && (cd `dirname .tmp/gselesia1.0.0` && $(TAR) gselesia1.0.0.tar gselesia1.0.0 && $(COMPRESS) gselesia1.0.0.tar) && $(MOVE) `dirname .tmp/gselesia1.0.0`/gselesia1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/gselesia1.0.0 | |
|
209 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/gselesia1.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/gselesia1.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/gselesia1.0.0/ && (cd `dirname .tmp/gselesia1.0.0` && $(TAR) gselesia1.0.0.tar gselesia1.0.0 && $(COMPRESS) gselesia1.0.0.tar) && $(MOVE) `dirname .tmp/gselesia1.0.0`/gselesia1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/gselesia1.0.0 | |
|
206 | 210 | |
|
207 | 211 | |
|
208 | 212 | clean:compiler_clean |
|
209 | 213 | -$(DEL_FILE) $(OBJECTS) |
|
210 | 214 | -$(DEL_FILE) *~ core *.core |
|
211 | 215 | |
|
212 | 216 | |
|
213 | 217 | ####### Sub-libraries |
|
214 | 218 | |
|
215 | 219 | distclean: clean |
|
216 | 220 | -$(DEL_FILE) $(TARGET) |
|
217 | 221 | -$(DEL_FILE) Makefile |
|
218 | 222 | |
|
219 | 223 | |
|
220 | 224 | check: first |
|
221 | 225 | |
|
222 | 226 | mocclean: compiler_moc_header_clean compiler_moc_source_clean |
|
223 | 227 | |
|
224 | 228 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
|
225 | 229 | |
|
226 | 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 | |
|
230 | compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp | |
|
227 | 231 | compiler_moc_header_clean: |
|
228 | -$(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 | |
|
232 | -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_qipdialogbox.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp moc_lfrspectrogram.cpp | |
|
229 | 233 | moc_mainwindow.cpp: lfrxmlhandler.h \ |
|
230 | 234 | lfrxmlwriter.h \ |
|
231 | 235 | mainwindowui.h \ |
|
236 | lfrspectrogram.h \ | |
|
232 | 237 | lfrxmlparser.h \ |
|
233 | 238 | mainwindow.h |
|
234 | 239 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp |
|
235 | 240 | |
|
236 |
moc_mainwindowui.cpp: |
|
|
241 | moc_mainwindowui.cpp: lfrspectrogram.h \ | |
|
242 | mainwindowui.h | |
|
237 | 243 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp |
|
238 | 244 | |
|
239 | 245 | moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h |
|
240 | 246 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp |
|
241 | 247 | |
|
242 | 248 | moc_lfrxmlhandler.cpp: lfrxmlhandler.h |
|
243 | 249 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp |
|
244 | 250 | |
|
245 | 251 | moc_lfrxmlwriter.cpp: lfrxmlwriter.h |
|
246 | 252 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp |
|
247 | 253 | |
|
248 | 254 | moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h |
|
249 | 255 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp |
|
250 | 256 | |
|
251 | 257 | moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h |
|
252 | 258 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp |
|
253 | 259 | |
|
254 | 260 | moc_wfpacket.cpp: ../rmapplugin/wfpacket.h |
|
255 | 261 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp |
|
256 | 262 | |
|
257 | 263 | moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h |
|
258 | 264 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp |
|
259 | 265 | |
|
260 | 266 | moc_lfrxmlparser.cpp: lfrxmlparser.h |
|
261 | 267 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp |
|
262 | 268 | |
|
269 | moc_lfrspectrogram.cpp: lfrspectrogram.h | |
|
270 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrspectrogram.h -o moc_lfrspectrogram.cpp | |
|
271 | ||
|
263 | 272 | compiler_rcc_make_all: |
|
264 | 273 | compiler_rcc_clean: |
|
265 | 274 | compiler_image_collection_make_all: qmake_image_collection.cpp |
|
266 | 275 | compiler_image_collection_clean: |
|
267 | 276 | -$(DEL_FILE) qmake_image_collection.cpp |
|
268 | 277 | compiler_moc_source_make_all: |
|
269 | 278 | compiler_moc_source_clean: |
|
270 | 279 | compiler_uic_make_all: |
|
271 | 280 | compiler_uic_clean: |
|
272 | 281 | compiler_yacc_decl_make_all: |
|
273 | 282 | compiler_yacc_decl_clean: |
|
274 | 283 | compiler_yacc_impl_make_all: |
|
275 | 284 | compiler_yacc_impl_clean: |
|
276 | 285 | compiler_lex_make_all: |
|
277 | 286 | compiler_lex_clean: |
|
278 | 287 | compiler_clean: compiler_moc_header_clean |
|
279 | 288 | |
|
280 | 289 | ####### Compile |
|
281 | 290 | |
|
282 | 291 | main.o: main.cpp mainwindow.h \ |
|
283 | 292 | lfrxmlhandler.h \ |
|
284 | 293 | lfrxmlwriter.h \ |
|
285 | 294 | mainwindowui.h \ |
|
295 | lfrspectrogram.h \ | |
|
286 | 296 | lfrxmlparser.h |
|
287 | 297 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp |
|
288 | 298 | |
|
289 | 299 | mainwindow.o: mainwindow.cpp mainwindow.h \ |
|
290 | 300 | lfrxmlhandler.h \ |
|
291 | 301 | lfrxmlwriter.h \ |
|
292 | 302 | mainwindowui.h \ |
|
303 | lfrspectrogram.h \ | |
|
293 | 304 | lfrxmlparser.h |
|
294 | 305 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp |
|
295 | 306 | |
|
296 | mainwindowui.o: mainwindowui.cpp mainwindowui.h | |
|
307 | mainwindowui.o: mainwindowui.cpp mainwindowui.h \ | |
|
308 | lfrspectrogram.h | |
|
297 | 309 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp |
|
298 | 310 | |
|
299 | 311 | qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h |
|
300 | 312 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp |
|
301 | 313 | |
|
302 | 314 | lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h |
|
303 | 315 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp |
|
304 | 316 | |
|
305 | 317 | lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h |
|
306 | 318 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp |
|
307 | 319 | |
|
308 | 320 | tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h |
|
309 | 321 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp |
|
310 | 322 | |
|
311 | 323 | tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h |
|
312 | 324 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp |
|
313 | 325 | |
|
314 | 326 | wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h |
|
315 | 327 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp |
|
316 | 328 | |
|
317 | 329 | hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h |
|
318 | 330 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp |
|
319 | 331 | |
|
320 | 332 | lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h |
|
321 | 333 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp |
|
322 | 334 | |
|
335 | lfrspectrogram.o: lfrspectrogram.cpp lfrspectrogram.h | |
|
336 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrspectrogram.o lfrspectrogram.cpp | |
|
337 | ||
|
323 | 338 | moc_mainwindow.o: moc_mainwindow.cpp |
|
324 | 339 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp |
|
325 | 340 | |
|
326 | 341 | moc_mainwindowui.o: moc_mainwindowui.cpp |
|
327 | 342 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp |
|
328 | 343 | |
|
329 | 344 | moc_qipdialogbox.o: moc_qipdialogbox.cpp |
|
330 | 345 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp |
|
331 | 346 | |
|
332 | 347 | moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp |
|
333 | 348 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp |
|
334 | 349 | |
|
335 | 350 | moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp |
|
336 | 351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp |
|
337 | 352 | |
|
338 | 353 | moc_tmstatistics.o: moc_tmstatistics.cpp |
|
339 | 354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp |
|
340 | 355 | |
|
341 | 356 | moc_tmpackettoread.o: moc_tmpackettoread.cpp |
|
342 | 357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp |
|
343 | 358 | |
|
344 | 359 | moc_wfpacket.o: moc_wfpacket.cpp |
|
345 | 360 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp |
|
346 | 361 | |
|
347 | 362 | moc_hkdisplay.o: moc_hkdisplay.cpp |
|
348 | 363 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp |
|
349 | 364 | |
|
350 | 365 | moc_lfrxmlparser.o: moc_lfrxmlparser.cpp |
|
351 | 366 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp |
|
352 | 367 | |
|
368 | moc_lfrspectrogram.o: moc_lfrspectrogram.cpp | |
|
369 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrspectrogram.o moc_lfrspectrogram.cpp | |
|
370 | ||
|
353 | 371 | ####### Install |
|
354 | 372 | |
|
355 | 373 | install: FORCE |
|
356 | 374 | |
|
357 | 375 | uninstall: FORCE |
|
358 | 376 | |
|
359 | 377 | FORCE: |
|
360 | 378 |
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -1,50 +1,52 | |||
|
1 | 1 | #------------------------------------------------- |
|
2 | 2 | # |
|
3 | 3 | # Project created by QtCreator 2013-05-03T14:05:02 |
|
4 | 4 | # |
|
5 | 5 | #------------------------------------------------- |
|
6 | 6 | |
|
7 | 7 | QT += core gui |
|
8 | 8 | QT += network |
|
9 | 9 | QT += xml |
|
10 | 10 | |
|
11 | 11 | TARGET = gselesia |
|
12 | 12 | TEMPLATE = app |
|
13 | 13 | |
|
14 | 14 | INCLUDEPATH += \ |
|
15 | 15 | $${PWD} \ |
|
16 | 16 | ../common_PLE \ |
|
17 | 17 | ../rmapplugin \ |
|
18 | 18 | ../../DEV_PLE/header \ |
|
19 | 19 | $$[QT_INSTALL_HEADERS]/lppmon/common \ |
|
20 | 20 | $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay |
|
21 | 21 | |
|
22 | LIBS += -llppmoncommon -lwfdisplay | |
|
22 | LIBS += -llppmoncommon -lwfdisplay -lqwt5-qt4 | |
|
23 | 23 | |
|
24 | 24 | SOURCES += main.cpp\ |
|
25 | 25 | mainwindow.cpp \ |
|
26 | 26 | mainwindowui.cpp \ |
|
27 | 27 | ../common_PLE/qipdialogbox.cpp \ |
|
28 | 28 | lfrxmlhandler.cpp \ |
|
29 | 29 | lfrxmlwriter.cpp \ |
|
30 | 30 | ../rmapplugin/tmstatistics.cpp \ |
|
31 | 31 | ../rmapplugin/tmpackettoread.cpp \ |
|
32 | 32 | ../rmapplugin/wfpacket.cpp \ |
|
33 | 33 | ../common_PLE/hkdisplay.cpp \ |
|
34 | lfrxmlparser.cpp | |
|
34 | lfrxmlparser.cpp \ | |
|
35 | lfrspectrogram.cpp | |
|
35 | 36 | |
|
36 | 37 | HEADERS += mainwindow.h \ |
|
37 | 38 | mainwindowui.h \ |
|
38 | 39 | ../common_PLE/qipdialogbox.h \ |
|
39 | 40 | lfrxmlhandler.h \ |
|
40 | 41 | lfrxmlwriter.h \ |
|
41 | 42 | ../rmapplugin/tmstatistics.h \ |
|
42 | 43 | ../rmapplugin/tmpackettoread.h \ |
|
43 | 44 | ../rmapplugin/wfpacket.h \ |
|
44 | 45 | ../common_PLE/hkdisplay.h \ |
|
45 | 46 | ../rmapplugin/params.h \ |
|
46 | 47 | ../../DEV_PLE/header/ccsds_types.h \ |
|
47 | lfrxmlparser.h | |
|
48 | lfrxmlparser.h \ | |
|
49 | lfrspectrogram.h | |
|
48 | 50 | |
|
49 | 51 | |
|
50 | 52 |
@@ -1,265 +1,265 | |||
|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
|
2 | 2 | <!DOCTYPE QtCreatorProject> |
|
3 |
<!-- Written by Qt Creator 2.4.1, 2013-06-1 |
|
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-06-18T10:58:40. --> | |
|
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 | 66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</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/GSE_LESIA/gselesia</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 | 108 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1"> |
|
109 | 109 | <value type="QString" key="ProjectExplorer.BuildCOnfiguration.ToolChain">ProjectExplorer.ToolChain.Gcc:/usr/bin/g++.x86-linux-generic-elf-64bit./usr/bin/gdb</value> |
|
110 | 110 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
111 | 111 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
112 | 112 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value> |
|
113 | 113 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
114 | 114 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
115 | 115 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
116 | 116 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value> |
|
117 | 117 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
118 | 118 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
119 | 119 | </valuemap> |
|
120 | 120 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1"> |
|
121 | 121 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
122 | 122 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
123 | 123 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
124 | 124 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value> |
|
125 | 125 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value> |
|
126 | 126 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
127 | 127 | </valuemap> |
|
128 | 128 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value> |
|
129 | 129 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value> |
|
130 | 130 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
131 | 131 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value> |
|
132 | 132 | </valuemap> |
|
133 | 133 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1"> |
|
134 | 134 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0"> |
|
135 | 135 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value> |
|
136 | 136 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
137 | 137 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value> |
|
138 | 138 | <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value> |
|
139 | 139 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value> |
|
140 | 140 | <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value> |
|
141 | 141 | </valuemap> |
|
142 | 142 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value> |
|
143 | 143 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value> |
|
144 | 144 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
145 | 145 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value> |
|
146 | 146 | </valuemap> |
|
147 | 147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
148 | 148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
149 | 149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
150 | 150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value> |
|
151 | 151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
152 | 152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
153 | 153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
154 | 154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value> |
|
155 | 155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
156 | 156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
157 | 157 | </valuemap> |
|
158 | 158 | <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">2</value> |
|
159 | 159 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0"> |
|
160 | 160 | <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0"> |
|
161 | 161 | <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value> |
|
162 | 162 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value> |
|
163 | 163 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
164 | 164 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value> |
|
165 | 165 | </valuemap> |
|
166 | 166 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value> |
|
167 | 167 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value> |
|
168 | 168 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
169 | 169 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value> |
|
170 | 170 | </valuemap> |
|
171 | 171 | <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value> |
|
172 | 172 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0"> |
|
173 | 173 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
174 | 174 | <value type="bool" key="Analyzer.Project.UseGlobal">true</value> |
|
175 | 175 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
176 | 176 | <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/> |
|
177 | 177 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
178 | 178 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value> |
|
179 | 179 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
180 | 180 | <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value> |
|
181 | 181 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
182 | 182 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value> |
|
183 | 183 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
184 | 184 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value> |
|
185 | 185 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
186 | 186 | <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value> |
|
187 | 187 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
188 | 188 | <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value> |
|
189 | 189 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
190 | 190 | <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value> |
|
191 | 191 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
192 | 192 | <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value> |
|
193 | 193 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
194 | 194 | <value type="int" key="Analyzer.Valgrind.NumCallers">25</value> |
|
195 | 195 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
196 | 196 | <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/> |
|
197 | 197 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
198 | 198 | <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value> |
|
199 | 199 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
200 | 200 | <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value> |
|
201 | 201 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
202 | 202 | <value type="int">0</value> |
|
203 | 203 | <value type="int">1</value> |
|
204 | 204 | <value type="int">2</value> |
|
205 | 205 | <value type="int">3</value> |
|
206 | 206 | <value type="int">4</value> |
|
207 | 207 | <value type="int">5</value> |
|
208 | 208 | <value type="int">6</value> |
|
209 | 209 | <value type="int">7</value> |
|
210 | 210 | <value type="int">8</value> |
|
211 | 211 | <value type="int">9</value> |
|
212 | 212 | <value type="int">10</value> |
|
213 | 213 | <value type="int">11</value> |
|
214 | 214 | <value type="int">12</value> |
|
215 | 215 | <value type="int">13</value> |
|
216 | 216 | <value type="int">14</value> |
|
217 | 217 | </valuelist> |
|
218 | 218 | <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds"> |
|
219 | 219 | <value type="int">0</value> |
|
220 | 220 | <value type="int">1</value> |
|
221 | 221 | <value type="int">2</value> |
|
222 | 222 | <value type="int">3</value> |
|
223 | 223 | <value type="int">4</value> |
|
224 | 224 | <value type="int">5</value> |
|
225 | 225 | <value type="int">6</value> |
|
226 | 226 | <value type="int">7</value> |
|
227 | 227 | <value type="int">8</value> |
|
228 | 228 | <value type="int">9</value> |
|
229 | 229 | <value type="int">10</value> |
|
230 | 230 | <value type="int">11</value> |
|
231 | 231 | <value type="int">12</value> |
|
232 | 232 | <value type="int">13</value> |
|
233 | 233 | <value type="int">14</value> |
|
234 | 234 | </valuelist> |
|
235 | 235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value> |
|
236 | 236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
237 | 237 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value> |
|
238 | 238 | <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value> |
|
239 | 239 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value> |
|
240 | 240 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value> |
|
241 | 241 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value> |
|
242 | 242 | <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value> |
|
243 | 243 | <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/> |
|
244 | 244 | <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value> |
|
245 | 245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
246 | 246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
247 | 247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
248 | 248 | <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value> |
|
249 | 249 | </valuemap> |
|
250 | 250 | <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value> |
|
251 | 251 | </valuemap> |
|
252 | 252 | </data> |
|
253 | 253 | <data> |
|
254 | 254 | <variable>ProjectExplorer.Project.TargetCount</variable> |
|
255 | 255 | <value type="int">1</value> |
|
256 | 256 | </data> |
|
257 | 257 | <data> |
|
258 | 258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
259 | 259 | <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value> |
|
260 | 260 | </data> |
|
261 | 261 | <data> |
|
262 | 262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
263 | 263 | <value type="int">10</value> |
|
264 | 264 | </data> |
|
265 | 265 | </qtcreator> |
@@ -1,78 +1,79 | |||
|
1 | 1 | #ifndef MAINWINDOW_H |
|
2 | 2 | #define MAINWINDOW_H |
|
3 | 3 | |
|
4 | 4 | #include <QtGui/QMainWindow> |
|
5 | 5 | #include <QTcpServer> |
|
6 | 6 | #include <QTcpSocket> |
|
7 | 7 | #include <QXmlSimpleReader> |
|
8 | ||
|
8 | 9 | #include <lfrxmlhandler.h> |
|
9 | 10 | #include <lfrxmlwriter.h> |
|
10 | 11 | #include <mainwindowui.h> |
|
11 | 12 | #include "tmpackettoread.h" |
|
12 | 13 | #include "wfpacket.h" |
|
13 | 14 | #include "lfrxmlparser.h" |
|
14 | 15 | |
|
15 | 16 | class MainWindow : public QWidget |
|
16 | 17 | { |
|
17 | 18 | Q_OBJECT |
|
18 | 19 | |
|
19 | 20 | public: |
|
20 | 21 | MainWindow(QWidget *parent = 0); |
|
21 | 22 | ~MainWindow(); |
|
22 | 23 | |
|
23 | 24 | void displayNetworkInterfaces(); |
|
24 | 25 | void processIncomingData(const QString &ch); |
|
25 | 26 | void initSocketStatesList(); |
|
26 | 27 | void preProcessPacket(TMPacketToRead *packet); |
|
27 | 28 | void buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page); |
|
28 | 29 | |
|
29 | 30 | private: |
|
30 | 31 | QByteArray dataArray; |
|
31 | 32 | |
|
32 | 33 | QList<TMPacketToRead*> generalCCSDSPacketStore; |
|
33 | 34 | |
|
34 | 35 | QTcpServer *analyserSGSEServerTC; |
|
35 | 36 | QTcpServer *analyserSGSEServerTM; |
|
36 | 37 | QTcpSocket *socketTC; |
|
37 | 38 | QTcpSocket *socketTM; |
|
38 | 39 | QTcpSocket *socketEchoServer; |
|
39 | 40 | |
|
40 | 41 | unsigned int totalOfBytes; |
|
41 | 42 | unsigned int totalOfPackets; |
|
42 | 43 | |
|
43 | 44 | QXmlSimpleReader xmlReader; |
|
44 | 45 | QXmlInputSource *sourceTC; |
|
45 | 46 | LFRXmlHandler *xmlHandler; |
|
46 | 47 | LFRXmlParser *lfrXmlParser; |
|
47 | 48 | |
|
48 | 49 | QList<QString> socketStates; |
|
49 | 50 | |
|
50 | 51 | char *buffer; |
|
51 | 52 | |
|
52 | 53 | MainWindowUI *UI; |
|
53 | 54 | |
|
54 | 55 | LFRXmlWriter *lfrXmlWriter; |
|
55 | 56 | |
|
56 | 57 | WFPacket wfPacketNormal[4]; |
|
57 | 58 | |
|
58 | 59 | bool parsingContinue; |
|
59 | 60 | |
|
60 | 61 | signals: |
|
61 | 62 | void socketTMHasChanged(QTcpSocket *socket); |
|
62 | 63 | |
|
63 | 64 | public slots: |
|
64 | 65 | void displayOnConsole(QString message); |
|
65 | 66 | void listenOnTCTMPorts(); |
|
66 | 67 | void testTCTMPorts(); |
|
67 | 68 | void newConnectionOnTCServer(); |
|
68 | 69 | void newConnectionOnTMServer(); |
|
69 | 70 | void readDataOnTCPort(); |
|
70 | 71 | void readDataOnTMPort(); |
|
71 | 72 | void readDataOnSocketEchoServer(); |
|
72 | 73 | void openEchoServer(); |
|
73 | 74 | void socket_TMEcho_ServerHasChanged(); |
|
74 | 75 | void processIncomingPacket(TMPacketToRead *packet); |
|
75 | 76 | void resetStatistics(); |
|
76 | 77 | }; |
|
77 | 78 | |
|
78 | 79 | #endif // MAINWINDOW_H |
@@ -1,148 +1,151 | |||
|
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; |
|
24 | 24 | |
|
25 | 25 | tmStatistics = new TMStatistics; |
|
26 | 26 | |
|
27 | 27 | wfDisplay = new WFDisplay; |
|
28 | 28 | hkDisplay = new HKDisplay; |
|
29 | lfrSpectrogam = new LFRSpectrogram(); | |
|
29 | 30 | |
|
30 | 31 | spinbox_TMServerPort = new QSpinBox(); |
|
31 | 32 | spinbox_TCServerPort = new QSpinBox(); |
|
32 | 33 | spinbox_serverTMEchoPort = new QSpinBox(); |
|
33 | 34 | spinbox_TMServerPort->setRange(59000, 65535); |
|
34 | 35 | spinbox_TCServerPort->setRange(59001, 65535); |
|
35 | 36 | spinbox_serverTMEchoPort->setRange(59002, 65535); |
|
36 | 37 | |
|
37 | 38 | button_openServerTCTM = new QPushButton(tr("Open TC / TM Ports")); |
|
38 | 39 | button_testServerTCTM = new QPushButton(tr("Test TC / TM Ports")); |
|
39 | 40 | button_openSocketEchoServer = new QPushButton(tr("Open Echo Server")); |
|
40 | 41 | button_TCAcknowledgement = new QPushButton(tr("send TC Acknowledgement")); |
|
41 | 42 | button_TCRejection = new QPushButton(tr("send TC rejection")); |
|
42 | 43 | button_GSEHK = new QPushButton(tr("send GSE HK")); |
|
43 | 44 | button_clearConsole = new QPushButton(tr("Clear console")); |
|
44 | 45 | button_resetStatistics = new QPushButton(tr("Reset statistics")); |
|
45 | 46 | |
|
46 | 47 | serverTMEchoDialogBox = new QIPDialogBox(); |
|
47 | 48 | serverTMEchoDialogBox->setIP(127, 0, 0, 1); |
|
48 | 49 | |
|
49 | 50 | groupbox_TMEcho = new QGroupBox(tr("TM Echo Server")); |
|
50 | 51 | groupbox_ports = new QGroupBox(tr("Ports for the TM and TC Servers")); |
|
51 | 52 | groupbox_TMToForeignGSETester = new QGroupBox(tr("Send TM to the foreign GSE tester")); |
|
52 | 53 | |
|
53 | 54 | layout_TMEcho = new QVBoxLayout(); |
|
54 | 55 | layout_overallLayout = new QVBoxLayout(); |
|
55 | 56 | layout_ports = new QGridLayout(); |
|
56 | 57 | layout_TMToForeignGSETester = new QVBoxLayout(); |
|
57 | 58 | mainLayout = new QGridLayout(); |
|
58 | 59 | |
|
59 | 60 | layout_TMEcho->addWidget(label_serverTMEcho); |
|
60 | 61 | layout_TMEcho->addWidget(serverTMEchoDialogBox); |
|
61 | 62 | layout_TMEcho->addWidget(label_serverTMEchoPort); |
|
62 | 63 | layout_TMEcho->addWidget(spinbox_serverTMEchoPort); |
|
63 | 64 | layout_TMEcho->addWidget(button_openSocketEchoServer); |
|
64 | 65 | layout_TMEcho->addWidget(label_totalOfPackets); |
|
65 | 66 | layout_TMEcho->addWidget(label_totalOfBytes); |
|
66 | 67 | layout_TMEcho->addWidget(button_resetStatistics); |
|
67 | 68 | groupbox_TMEcho->setLayout(layout_TMEcho); |
|
68 | 69 | |
|
69 | 70 | layout_ports->addWidget(label_TMServerPort, 0, 0, 1, 1); |
|
70 | 71 | layout_ports->addWidget(spinbox_TMServerPort, 0, 1, 1, 1); |
|
71 | 72 | layout_ports->addWidget(label_TCServerPort, 1, 0, 1, 1); |
|
72 | 73 | layout_ports->addWidget(spinbox_TCServerPort, 1, 1, 1, 1); |
|
73 | 74 | layout_ports->addWidget(button_openServerTCTM, 2, 0, 1, 2); |
|
74 | 75 | layout_ports->addWidget(button_testServerTCTM, 3, 0, 1, 2); |
|
75 | 76 | groupbox_ports->setLayout(layout_ports); |
|
76 | 77 | |
|
77 | 78 | layout_TMToForeignGSETester->addWidget(button_TCAcknowledgement); |
|
78 | 79 | layout_TMToForeignGSETester->addWidget(button_TCRejection); |
|
79 | 80 | layout_TMToForeignGSETester->addWidget(button_GSEHK); |
|
80 | 81 | groupbox_TMToForeignGSETester->setLayout(layout_TMToForeignGSETester); |
|
81 | 82 | |
|
82 | 83 | mainLayout->addWidget(groupbox_TMEcho, 0, 0, 1, 1); |
|
83 | 84 | mainLayout->addWidget(groupbox_ports, 1, 0, 1, 1); |
|
84 | 85 | mainLayout->addWidget(groupbox_TMToForeignGSETester, 2, 0, 1, 1); |
|
85 | 86 | mainLayout->addWidget(console, 0, 1, 2, 2); |
|
86 | 87 | mainLayout->addWidget(button_clearConsole, 3, 1, 1, 2); |
|
87 | 88 | |
|
88 | 89 | spwTabWidget->addTab(spwTabWidgetPage0, tr("Connection")); |
|
89 | 90 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); |
|
90 | 91 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); |
|
91 | 92 | spwTabWidget->addTab(spwTabWidgetPage2, tr("Waveforms")); |
|
93 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); | |
|
92 | 94 | |
|
93 | 95 | spwTabWidgetPage0->setLayout(mainLayout); |
|
94 | 96 | spwTabWidgetPage1->setLayout(tmStatistics->layout()); |
|
95 | 97 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); |
|
96 | 98 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); |
|
99 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); | |
|
97 | 100 | |
|
98 | 101 | layout_overallLayout->addWidget(spwTabWidget); |
|
99 | 102 | |
|
100 | 103 | this->setLayout(layout_overallLayout); |
|
101 | 104 | |
|
102 | 105 | connect(this->button_clearConsole, SIGNAL(clicked()), this, SLOT(clearConsole())); |
|
103 | 106 | } |
|
104 | 107 | |
|
105 | 108 | QString MainWindowUI::getTMEchoServerAddress() |
|
106 | 109 | { |
|
107 | 110 | return(serverTMEchoDialogBox->getIP()); |
|
108 | 111 | } |
|
109 | 112 | |
|
110 | 113 | void MainWindowUI::setTCTMServerAddressIP(QString address) |
|
111 | 114 | { |
|
112 | 115 | label_currentTCTMServerIP->setText(address); |
|
113 | 116 | } |
|
114 | 117 | |
|
115 | 118 | int MainWindowUI::getTMPort() |
|
116 | 119 | { |
|
117 | 120 | return spinbox_TMServerPort->value(); |
|
118 | 121 | } |
|
119 | 122 | |
|
120 | 123 | int MainWindowUI::getTCPort() |
|
121 | 124 | { |
|
122 | 125 | return spinbox_TCServerPort->value(); |
|
123 | 126 | } |
|
124 | 127 | |
|
125 | 128 | void MainWindowUI::displayOnConsole(QString message) |
|
126 | 129 | { |
|
127 | 130 | console->append(message); |
|
128 | 131 | } |
|
129 | 132 | |
|
130 | 133 | void MainWindowUI::clearConsole() |
|
131 | 134 | { |
|
132 | 135 | console->clear(); |
|
133 | 136 | } |
|
134 | 137 | |
|
135 | 138 | void MainWindowUI::totalOfBytesHasChanged(unsigned int nbBytes) |
|
136 | 139 | { |
|
137 | 140 | label_totalOfBytes->setText( |
|
138 | 141 | "Received Bytes: " |
|
139 | 142 | + QString::number(nbBytes)); |
|
140 | 143 | } |
|
141 | 144 | |
|
142 | 145 | void MainWindowUI::totalOfPacketsHasChanged(unsigned int nbPackets) |
|
143 | 146 | { |
|
144 | 147 | label_totalOfPackets->setText( |
|
145 | 148 | "Received Packets: " |
|
146 | 149 | + QString::number(nbPackets)); |
|
147 | 150 | } |
|
148 | 151 |
@@ -1,91 +1,96 | |||
|
1 | 1 | #ifndef MAINWINDOWUI_H |
|
2 | 2 | #define MAINWINDOWUI_H |
|
3 | 3 | |
|
4 | 4 | #include <QWidget> |
|
5 | 5 | #include <qipdialogbox.h> |
|
6 | 6 | #include <QLabel> |
|
7 | 7 | #include <QPushButton> |
|
8 | 8 | #include <QGridLayout> |
|
9 | 9 | #include <QVBoxLayout> |
|
10 | 10 | #include <QGroupBox> |
|
11 | 11 | #include <QSpinBox> |
|
12 | 12 | #include <QTextEdit> |
|
13 | 13 | #include <QTabWidget> |
|
14 | ||
|
14 | 15 | #include "tmstatistics.h" |
|
15 | 16 | #include "wfdisplay.h" |
|
16 | 17 | #include "hkdisplay.h" |
|
18 | #include "lfrspectrogram.h" | |
|
17 | 19 | |
|
18 | 20 | class MainWindowUI : public QWidget |
|
19 | 21 | { |
|
20 | 22 | Q_OBJECT |
|
21 | 23 | public: |
|
22 | 24 | explicit MainWindowUI(QWidget *parent = 0); |
|
23 | 25 | |
|
24 | 26 | void setTCTMServerAddressIP(QString address); |
|
25 | 27 | QString getTMEchoServerAddress(); |
|
26 | 28 | int getTMPort(); |
|
27 | 29 | int getTCPort(); |
|
28 | 30 | void displayOnConsole(QString message); |
|
29 | 31 | |
|
30 | 32 | QTabWidget *spwTabWidget; |
|
31 | 33 | QWidget* spwTabWidgetPage0; |
|
32 | 34 | QWidget* spwTabWidgetPage1; |
|
33 | 35 | QWidget* spwTabWidgetPage2; |
|
34 | 36 | QWidget* spwTabWidgetPage3; |
|
35 | 37 | QWidget* spwTabWidgetPage4; |
|
36 | 38 | QWidget* spwTabWidgetPage5; |
|
37 | 39 | |
|
38 | 40 | TMStatistics* tmStatistics; |
|
39 | 41 | |
|
40 | 42 | WFDisplay* wfDisplay; |
|
41 | 43 | HKDisplay* hkDisplay; |
|
44 | LFRSpectrogram* lfrSpectrogam; | |
|
45 | ||
|
46 | QWidget* widget_spectrogram; | |
|
42 | 47 | |
|
43 | 48 | QPushButton *button_openServerTCTM; |
|
44 | 49 | QPushButton *button_testServerTCTM; |
|
45 | 50 | QPushButton *button_openSocketEchoServer; |
|
46 | 51 | QPushButton *button_TCAcknowledgement; |
|
47 | 52 | QPushButton *button_TCRejection; |
|
48 | 53 | QPushButton *button_GSEHK; |
|
49 | 54 | QPushButton *button_clearConsole; |
|
50 | 55 | QPushButton *button_resetStatistics; |
|
51 | 56 | |
|
52 | 57 | QIPDialogBox *serverTMEchoDialogBox; |
|
53 | 58 | |
|
54 | 59 | QSpinBox *spinbox_serverTMEchoPort; |
|
55 | 60 | |
|
56 | 61 | signals: |
|
57 | 62 | |
|
58 | 63 | public slots: |
|
59 | 64 | void clearConsole(); |
|
60 | 65 | void totalOfBytesHasChanged(unsigned int nbBytes); |
|
61 | 66 | void totalOfPacketsHasChanged(unsigned int nbPackets); |
|
62 | 67 | |
|
63 | 68 | private: |
|
64 | 69 | QLabel *label_serverTMEcho; |
|
65 | 70 | QLabel *label_serverTMEchoPort; |
|
66 | 71 | QLabel *label_TMServerPort; |
|
67 | 72 | QLabel *label_TCServerPort; |
|
68 | 73 | QLabel *label_currentTCTMServer; |
|
69 | 74 | QLabel *label_currentTCTMServerIP; |
|
70 | 75 | QLabel *label_totalOfBytes; |
|
71 | 76 | QLabel *label_totalOfPackets; |
|
72 | 77 | |
|
73 | 78 | QTextEdit *console; |
|
74 | 79 | |
|
75 | 80 | QSpinBox *spinbox_TMServerPort; |
|
76 | 81 | QSpinBox *spinbox_TCServerPort; |
|
77 | 82 | |
|
78 | 83 | QGroupBox *groupbox_TMEcho; |
|
79 | 84 | QGroupBox *groupbox_ports; |
|
80 | 85 | QGroupBox *groupbox_TMToForeignGSETester; |
|
81 | 86 | |
|
82 | 87 | QVBoxLayout *layout_TMEcho; |
|
83 | 88 | QVBoxLayout *layout_TMToForeignGSETester; |
|
84 | 89 | QVBoxLayout *layout_overallLayout; |
|
85 | 90 | |
|
86 | 91 | QGridLayout *mainLayout; |
|
87 | 92 | QGridLayout *layout_ports; |
|
88 | 93 | |
|
89 | 94 | }; |
|
90 | 95 | |
|
91 | 96 | #endif // MAINWINDOWUI_H |
@@ -1,404 +1,404 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the LPPMON Software |
|
3 | 3 | -- Copyright (C) 2012, 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 | #include "rmapplugin.h" |
|
23 | 23 | #include <QHostAddress> |
|
24 | 24 | #include <QIODevice> |
|
25 | 25 | #include <QApplication> |
|
26 | 26 | #include <rmappluginpythonwrapper.h> |
|
27 | 27 | #include <PythonQt.h> |
|
28 | 28 | #include <QTimer> |
|
29 | 29 | |
|
30 | 30 | rmapplugin::rmapplugin(QWidget *parent) |
|
31 | 31 | :lppmonplugin(parent,false) |
|
32 | 32 | { |
|
33 | 33 | this->UI = new rmapPluginUI(); |
|
34 | 34 | this->setWindowTitle(tr("RMAP and SPW Communication")); |
|
35 | 35 | this->setWidget((QWidget*)this->UI); |
|
36 | 36 | |
|
37 | 37 | timeCode = 0; |
|
38 | 38 | time_COARSE = 0; |
|
39 | 39 | time_FINE = 0; |
|
40 | 40 | currentBridge = selectedBridgeIsUnknown; |
|
41 | 41 | |
|
42 | 42 | //************** |
|
43 | 43 | //Python wrapper |
|
44 | 44 | this->pyObject = new rmappluginPythonWrapper(); |
|
45 | 45 | connect(this->pyObject,SIGNAL(ReadSig(uint*,uint,uint)),this,SLOT(Read(uint*,uint,uint))); |
|
46 | 46 | connect(this->pyObject,SIGNAL(WriteSig(uint*,uint,uint)),this,SLOT(Write(uint*,uint,uint))); |
|
47 | 47 | //** |
|
48 | 48 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( WriteSPWSig(char*,uint,char,char) ), |
|
49 | 49 | this, SLOT( WriteSPW(char*,uint,char,char)), Qt::DirectConnection ); |
|
50 | 50 | //** |
|
51 | 51 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateTargetAddress(unsigned char) ), |
|
52 | 52 | this, SLOT( setValueTargetAddress(unsigned char)) ); |
|
53 | 53 | //** |
|
54 | 54 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL( updateSourceAddress(unsigned char) ), |
|
55 | 55 | this, SLOT( setValueSourceAddress(unsigned char)) ); |
|
56 | 56 | //** |
|
57 | 57 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(sendMessage(QString)), |
|
58 | 58 | this, SLOT(displayOnConsole(QString)) ); |
|
59 | 59 | //** |
|
60 | 60 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(fetchPacketSig()), |
|
61 | 61 | this, SLOT(fetchPacket()), Qt::DirectConnection ); |
|
62 | 62 | //*** |
|
63 | 63 | connect( (rmappluginPythonWrapper*)this->pyObject, SIGNAL(nbPacketHasChanged(int)), |
|
64 | 64 | this, SLOT(nbPacketHasChanged(int))); |
|
65 | 65 | //************** |
|
66 | 66 | |
|
67 | 67 | //************** |
|
68 | 68 | // get a smart pointer to the __main__ module of the Python interpreter |
|
69 | 69 | PythonQtObjectPtr context = PythonQt::self()->getMainModule(); |
|
70 | 70 | // add a QObject as variable of name "BUTTON_rmapOpenCommunication" to the namespace of the __main__ module |
|
71 | 71 | context.addObject("BUTTON_rmapOpenCommunication", UI->rmapOpenCommunicationButton); |
|
72 | 72 | context.addObject("BUTTON_rmapCloseCommunication", UI->rmapCloseCommunicationButton); |
|
73 | 73 | context.addObject("BUTTON_selectStarDundee", UI->selectStarDundee_BUTTON); |
|
74 | 74 | context.addObject("BUTTON_selectGRESB", UI->selectGRESB_BUTTON); |
|
75 | 75 | context.addObject("GRESB_Bridge", UI->gresbBridge); |
|
76 | 76 | //************** |
|
77 | 77 | |
|
78 | 78 | connect(UI->rmapOpenCommunicationButton, SIGNAL(clicked()), this, SLOT(openBridge())); |
|
79 | 79 | connect(UI->rmapCloseCommunicationButton, SIGNAL(clicked()), this, SLOT(closeBridge())); |
|
80 | 80 | connect(this, SIGNAL( |
|
81 | 81 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
82 | 82 | ), |
|
83 | 83 | this->UI->tmStatistics, SLOT( |
|
84 | 84 | updateStatistics(unsigned char,unsigned char,unsigned char,unsigned char,uint,uint,uint,uint) |
|
85 | 85 | )); |
|
86 | 86 | |
|
87 | 87 | //****** |
|
88 | 88 | // GRESB |
|
89 | 89 | connect(this->UI->gresbBridge, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
90 | 90 | connect(this->UI->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
91 | 91 | connect(this->UI->gresbBridge, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
92 | 92 | connect(this->UI->gresbBridge, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
93 | 93 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->gresbBridge, SLOT(ccsdsPacketIsProcessed())); |
|
94 | 94 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
95 | 95 | this->UI->gresbBridge, SLOT(targetHasChanged(int))); |
|
96 | 96 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
97 | 97 | this->UI->gresbBridge, SLOT(sourceHasChanged(int))); |
|
98 | 98 | connect(this->UI->gresbBridge, SIGNAL(sendPacket(TMPacketToRead*)), |
|
99 | 99 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
100 | 100 | |
|
101 | 101 | //************ |
|
102 | 102 | // Star Dundee |
|
103 | 103 | connect(this->UI->starDundee, SIGNAL(sendMessage(QString)), this, SLOT(displayOnConsole(QString))); |
|
104 | 104 | connect(this->UI->starDundee, SIGNAL(isOpen(bool)), this, SLOT(activatePlugin(bool))); |
|
105 | 105 | connect(this->UI->starDundee, SIGNAL(RMAP_write_reply_setText(QString)), this, SLOT(RMAP_write_reply_setText(QString))); |
|
106 | 106 | connect(this->UI->starDundee, SIGNAL(appendToLog(QString)), this, SLOT(appendToLog(QString))); |
|
107 | 107 | connect(this, SIGNAL(ccsdsPacketIsProcessed()), this->UI->starDundee, SLOT(ccsdsPacketIsProcessed())); |
|
108 | 108 | connect(this->UI->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
109 | 109 | this->UI->starDundee, SLOT(targetHasChanged(int))); |
|
110 | 110 | connect(this->UI->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), |
|
111 | 111 | this->UI->starDundee, SLOT(sourceHasChanged(int))); |
|
112 | 112 | connect(this->UI->starDundee, SIGNAL(sendPacket(TMPacketToRead*)), |
|
113 | 113 | this, SLOT(receivePacketFromBridge(TMPacketToRead*)), Qt::DirectConnection); |
|
114 | 114 | |
|
115 | 115 | connect(this->UI, SIGNAL(bridgeHasChanged(selectedBridge)), this, SLOT(bridgeHasChanged(selectedBridge))); |
|
116 | 116 | |
|
117 | 117 | ((rmappluginPythonWrapper*)this->pyObject)->ccsdsPacketStore = &(this->generalCCSDSPacketStore); |
|
118 | 118 | } |
|
119 | 119 | |
|
120 | 120 | rmapplugin::~rmapplugin() |
|
121 | 121 | { |
|
122 | 122 | switch(currentBridge) |
|
123 | 123 | { |
|
124 | 124 | case selectedBridgeIsGRESB : |
|
125 | 125 | if (RMAPSend_SOCKET->isOpen()) RMAPSend_SOCKET->disconnectFromHost(); |
|
126 | 126 | if (RMAPReceive_SOCKET->isOpen()) RMAPReceive_SOCKET->disconnectFromHost(); |
|
127 | 127 | if (GRESBStatusQuery_SOCKET->isOpen()) GRESBStatusQuery_SOCKET->disconnectFromHost(); |
|
128 | 128 | break; |
|
129 | 129 | case selectedBridgeIsStarDundee : |
|
130 | 130 | break; |
|
131 | 131 | default: |
|
132 | 132 | break; |
|
133 | 133 | } |
|
134 | 134 | } |
|
135 | 135 | |
|
136 | 136 | unsigned int rmapplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) |
|
137 | 137 | { |
|
138 | 138 | unsigned int result; |
|
139 | 139 | switch(currentBridge) |
|
140 | 140 | { |
|
141 | 141 | case selectedBridgeIsGRESB : |
|
142 | 142 | result = UI->gresbBridge->Write(Value, count, address); |
|
143 | 143 | break; |
|
144 | 144 | case selectedBridgeIsStarDundee : |
|
145 | 145 | result = UI->starDundee->Write(Value, count, address); |
|
146 | 146 | break; |
|
147 | 147 | default: |
|
148 | 148 | result = 1; |
|
149 | 149 | break; |
|
150 | 150 | } |
|
151 | 151 | return result; |
|
152 | 152 | } |
|
153 | 153 | |
|
154 | 154 | unsigned int rmapplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) |
|
155 | 155 | { |
|
156 | 156 | unsigned int result; |
|
157 | 157 | switch(currentBridge) |
|
158 | 158 | { |
|
159 | 159 | case selectedBridgeIsGRESB : |
|
160 | 160 | result = UI->gresbBridge->Read(Value, count, address); |
|
161 | 161 | break; |
|
162 | 162 | case selectedBridgeIsStarDundee : |
|
163 | 163 | result = UI->starDundee->Read(Value, count, address); |
|
164 | 164 | break; |
|
165 | 165 | default: |
|
166 | 166 | result = 1; |
|
167 | 167 | break; |
|
168 | 168 | } |
|
169 | 169 | return result; |
|
170 | 170 | } |
|
171 | 171 | |
|
172 | 172 | //////// |
|
173 | 173 | // SLOTS |
|
174 | 174 | |
|
175 | 175 | unsigned int rmapplugin::WriteSPW(char *Value, unsigned int count, char targetLogicalAddress, char userApplication) // SLOT |
|
176 | 176 | { |
|
177 | 177 | unsigned int result; |
|
178 | 178 | switch(currentBridge) |
|
179 | 179 | { |
|
180 | 180 | case selectedBridgeIsGRESB : |
|
181 | 181 | result = UI->gresbBridge->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
182 | 182 | break; |
|
183 | 183 | case selectedBridgeIsStarDundee : |
|
184 | 184 | result = UI->starDundee->WriteSPW(Value, count, targetLogicalAddress, userApplication); |
|
185 | 185 | break; |
|
186 | 186 | default: |
|
187 | 187 | result = 1; |
|
188 | 188 | break; |
|
189 | 189 | } |
|
190 | 190 | return result; |
|
191 | 191 | } |
|
192 | 192 | |
|
193 | 193 | void rmapplugin::openBridge() |
|
194 | 194 | { |
|
195 | 195 | switch(currentBridge) |
|
196 | 196 | { |
|
197 | 197 | case selectedBridgeIsGRESB : |
|
198 | 198 | this->UI->gresbBridge->Open(); |
|
199 | 199 | break; |
|
200 | 200 | case selectedBridgeIsStarDundee : |
|
201 | 201 | this->UI->starDundee->Open(); |
|
202 | 202 | break; |
|
203 | 203 | default: |
|
204 | 204 | break; |
|
205 | 205 | } |
|
206 | 206 | } |
|
207 | 207 | |
|
208 | 208 | void rmapplugin::closeBridge() |
|
209 | 209 | { |
|
210 | 210 | switch(currentBridge) |
|
211 | 211 | { |
|
212 | 212 | case selectedBridgeIsGRESB : |
|
213 | 213 | this->UI->gresbBridge->Close(); |
|
214 | 214 | break; |
|
215 | 215 | case selectedBridgeIsStarDundee : |
|
216 | 216 | this->UI->starDundee->Close(); |
|
217 | 217 | break; |
|
218 | 218 | default: |
|
219 | 219 | break; |
|
220 | 220 | } |
|
221 | 221 | } |
|
222 | 222 | |
|
223 | 223 | void rmapplugin::RMAP_write_reply_setText(QString text) |
|
224 | 224 | { |
|
225 | 225 | this->UI->RMAP_write_reply->setText(text); |
|
226 | 226 | } |
|
227 | 227 | |
|
228 | 228 | void rmapplugin::appendToLog(QString text) |
|
229 | 229 | { |
|
230 | 230 | APPENDTOLOG(text); |
|
231 | 231 | } |
|
232 | 232 | |
|
233 | 233 | void rmapplugin::setValueTargetAddress(unsigned char newAddress) |
|
234 | 234 | { |
|
235 | 235 | this->UI->rmapTargetLogicalAddressSpinBox->setValue(newAddress); |
|
236 | 236 | } |
|
237 | 237 | |
|
238 | 238 | void rmapplugin::setValueSourceAddress(unsigned char newAddress) |
|
239 | 239 | { |
|
240 | 240 | this->UI->rmapSourceLogicalAddressSpinBox->setValue(newAddress); |
|
241 | 241 | } |
|
242 | 242 | |
|
243 | 243 | void rmapplugin::receivePacketFromBridge(TMPacketToRead *packet) |
|
244 | 244 | { |
|
245 | 245 | preProcessPacket(packet); |
|
246 | 246 | |
|
247 | 247 | // Send the packet to the TM echo bridge for processing |
|
248 | 248 | this->UI->tmEchoBridge->sendTMPacket_v2(packet); |
|
249 | 249 | //this->UI->tmEchoBridge->sendTMPacket_alternative(packet); |
|
250 | 250 | |
|
251 | 251 | this->generalCCSDSPacketStore.append(packet); |
|
252 | 252 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(generalCCSDSPacketStore.size())); |
|
253 | 253 | processPacketStore(); |
|
254 | 254 | } |
|
255 | 255 | |
|
256 | 256 | void rmapplugin::preProcessPacket(TMPacketToRead *packet) |
|
257 | 257 | { |
|
258 | 258 | unsigned char pid = 0; |
|
259 | 259 | unsigned char cat = 0; |
|
260 | 260 | unsigned char typ = 0; |
|
261 | 261 | unsigned char sub = 0; |
|
262 | 262 | unsigned int sid = 0; |
|
263 | 263 | unsigned int length = 0; |
|
264 | 264 | unsigned int coarse_t = 0; |
|
265 | 265 | unsigned int fine_t = 0; |
|
266 | 266 | |
|
267 | 267 | //********************************* |
|
268 | 268 | // get the parameters of the packet |
|
269 | 269 | pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4); |
|
270 | 270 | cat = packet->Value[5] & 0x0f; |
|
271 | 271 | typ = packet->Value[11]; // TYPE |
|
272 | 272 | sub = packet->Value[12]; // SUBTYPE |
|
273 | 273 | sid = 0; |
|
274 | 274 | length = packet->Value[8] * 256 + packet->Value[9]; |
|
275 | 275 | coarse_t = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16) |
|
276 | 276 | + packet->Value[16] * pow(2, 8) + packet->Value[17]; |
|
277 | 277 | fine_t = packet->Value[18] * pow(2, 8) + packet->Value[19]; |
|
278 | 278 | |
|
279 | 279 | if ((pid == 76) & (cat == 1) & (typ == 1) & (sub == 8)) |
|
280 | 280 | sid = packet->Value[20] * 256 + packet->Value[21]; |
|
281 | 281 | else if ((pid == 76) & (cat == 12) & (typ == 21) & (sub == 3)) |
|
282 | 282 | sid = packet->Value[20]; |
|
283 | 283 | else if ((pid == 76) & (cat == 4) & (typ == 3) & (sub == 25)) |
|
284 | 284 | sid = 1; |
|
285 | 285 | |
|
286 | 286 | emit updateStatistics(pid, cat, typ, sub, sid, length, coarse_t, fine_t); |
|
287 | 287 | |
|
288 | 288 | |
|
289 | 289 | //**************************************** |
|
290 | 290 | // if the packet is a waveform, display it |
|
291 | if ( (typ == 21) & (sub == 3) ) | |
|
291 | /*if ( (typ == 21) & (sub == 3) ) | |
|
292 | 292 | { |
|
293 | 293 | sid = packet->Value[20]; // SID |
|
294 | 294 | switch (sid){ |
|
295 | 295 | case SID_NORMAL_SWF_F0: |
|
296 | 296 | buildWFAndDisplay(packet, &wfPacketNormal[0], 0); |
|
297 | 297 | break; |
|
298 | 298 | case SID_NORMAL_SWF_F1: |
|
299 | 299 | buildWFAndDisplay(packet, &wfPacketNormal[1], 1); |
|
300 | 300 | break; |
|
301 | 301 | case SID_NORMAL_SWF_F2: |
|
302 | 302 | buildWFAndDisplay(packet, &wfPacketNormal[2], 2); |
|
303 | 303 | break; |
|
304 | 304 | case SID_NORMAL_CWF_F3: |
|
305 | 305 | buildWFAndDisplay(packet, &wfPacketNormal[3], 3); |
|
306 | 306 | break; |
|
307 | 307 | } |
|
308 |
|
|
|
308 | }*/ | |
|
309 | 309 | } |
|
310 | 310 | |
|
311 | 311 | void rmapplugin::nbPacketHasChanged(int nb) |
|
312 | 312 | { |
|
313 | 313 | this->UI->nbPacketInStore->setText("nb packets in store: " + QString::number(nb)); |
|
314 | 314 | } |
|
315 | 315 | |
|
316 | 316 | void rmapplugin::buildWFAndDisplay(TMPacketToRead *packet, WFPacket *wfPacket, unsigned char num_page) |
|
317 | 317 | { |
|
318 | 318 | unsigned int i = 0; |
|
319 | 319 | unsigned int j = 0; |
|
320 | 320 | unsigned char *data; |
|
321 | 321 | unsigned char pkt_nr = 0; |
|
322 | 322 | unsigned int blk_nr = 0; |
|
323 | 323 | |
|
324 | 324 | pkt_nr = packet->Value[23]; // PKT_NR |
|
325 | 325 | blk_nr = packet->Value[24] * 256 + packet->Value[25]; |
|
326 | 326 | data = &packet->Value[26]; // start of the first data block; |
|
327 | 327 | j = (pkt_nr-1) * 340; |
|
328 | 328 | for ( i=0; i<blk_nr; i++ ){ |
|
329 | 329 | wfPacket->wf_e1[j + i] = (short) ( (data[ (i * BLK_SIZE) ] << 8) + (data[ (i*BLK_SIZE) + 1]) ); |
|
330 | 330 | wfPacket->wf_v[j + i] = (short) ( (data[ (i * BLK_SIZE) + 2] << 8) + (data[ (i*BLK_SIZE) + 3]) ); |
|
331 | 331 | wfPacket->wf_b1[j + i] = (short) ( (data[ (i * BLK_SIZE) + 4] << 8) + (data[ (i*BLK_SIZE) + 5]) ); |
|
332 | 332 | wfPacket->wf_e2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 6] << 8) + (data[ (i*BLK_SIZE) + 7]) ); |
|
333 | 333 | wfPacket->wf_b3[j + i] = (short) ( (data[ (i * BLK_SIZE) + 8] << 8) + (data[ (i*BLK_SIZE) + 9]) ); |
|
334 | 334 | wfPacket->wf_b2[j + i] = (short) ( (data[ (i * BLK_SIZE) + 10] << 8) + (data[ (i*BLK_SIZE) + 11]) ); |
|
335 | 335 | } |
|
336 | 336 | if (pkt_nr == 7) |
|
337 | 337 | { |
|
338 | 338 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_v, num_page, 0); |
|
339 | 339 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e1, num_page, 1); |
|
340 | 340 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_e2, num_page, 2); |
|
341 | 341 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b1, num_page, 3); |
|
342 | 342 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b2, num_page, 4); |
|
343 | 343 | this->UI->wfDisplay->displayOnPlot(wfPacket->wf_b3, num_page, 5); |
|
344 | 344 | } |
|
345 | 345 | } |
|
346 | 346 | |
|
347 | 347 | ///////////////////// |
|
348 | 348 | // INTERNAL FUNCTIONS |
|
349 | 349 | |
|
350 | 350 | void rmapplugin::processCCSDSPacket(unsigned char *ccsdsPacket, unsigned int size) // SLOT |
|
351 | 351 | { |
|
352 | 352 | QString message; |
|
353 | 353 | unsigned int fine_time_value = 0; |
|
354 | 354 | fine_time_value = ((unsigned int) ccsdsPacket[7]<<24) |
|
355 | 355 | + ((unsigned int) ccsdsPacket[6]<<16) |
|
356 | 356 | + ((unsigned int) ccsdsPacket[5]<<8) |
|
357 | 357 | + ((unsigned int) ccsdsPacket[4]); |
|
358 | 358 | message.append(QTime::currentTime().toString() +":" + QString::number(QTime::currentTime().msec()) + ": "); |
|
359 | 359 | message.append("size " |
|
360 | 360 | + QString::number(size) |
|
361 | 361 | +" *** header " |
|
362 | 362 | + QString::number(ccsdsPacket[0], 16) |
|
363 | 363 | + " " |
|
364 | 364 | + QString::number(ccsdsPacket[1], 16) |
|
365 | 365 | + " " |
|
366 | 366 | + QString::number(ccsdsPacket[2], 16) |
|
367 | 367 | + " " |
|
368 | 368 | + QString::number(ccsdsPacket[3], 16) |
|
369 | 369 | + " *** coarse time " |
|
370 | 370 | + QString::number(fine_time_value)); |
|
371 | 371 | //+ QString::number(ccsdsPacket[4], 16) |
|
372 | 372 | //+" " |
|
373 | 373 | //+ QString::number(ccsdsPacket[5], 16) |
|
374 | 374 | //+" " |
|
375 | 375 | //+ QString::number(ccsdsPacket[6], 16) |
|
376 | 376 | //+" " |
|
377 | 377 | //+ QString::number(ccsdsPacket[7], 16)); |
|
378 | 378 | displayOnConsole(message); |
|
379 | 379 | //((rmappluginPythonWrapper*)this->pyObject)->storeCCSDSPacket(ccsdsPacket, size); |
|
380 | 380 | emit ccsdsPacketIsProcessed(); |
|
381 | 381 | } |
|
382 | 382 | |
|
383 | 383 | void rmapplugin::processPacketStore() |
|
384 | 384 | { |
|
385 | 385 | ((rmappluginPythonWrapper*)this->pyObject)->processPacketStore(); |
|
386 | 386 | } |
|
387 | 387 | |
|
388 | 388 | int rmapplugin::fetchPacket() |
|
389 | 389 | { |
|
390 | 390 | int ret = 0; |
|
391 | 391 | |
|
392 | 392 | switch(currentBridge) |
|
393 | 393 | { |
|
394 | 394 | case selectedBridgeIsGRESB : |
|
395 | 395 | break; |
|
396 | 396 | case selectedBridgeIsStarDundee : |
|
397 | 397 | ret = this->UI->starDundee->receiveSPWPacketLoop(); |
|
398 | 398 | break; |
|
399 | 399 | default: |
|
400 | 400 | break; |
|
401 | 401 | } |
|
402 | 402 | |
|
403 | 403 | return ret; |
|
404 | 404 | } |
@@ -1,296 +1,296 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the LPPMON Software |
|
3 | 3 | -- Copyright (C) 2011, Laboratory of Plasmas Physic - 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 : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@lpp.polytechnique.fr |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | #include "rmapplugin.h" |
|
23 | 23 | |
|
24 | 24 | rmapPluginUI::rmapPluginUI(QWidget *parent) : |
|
25 | 25 | QWidget(parent) |
|
26 | 26 | { |
|
27 | 27 | spwTabWidget = new QTabWidget; |
|
28 | 28 | // |
|
29 | 29 | QWidget* spwTabWidgetPage0 = new QWidget; |
|
30 | 30 | QWidget* spwTabWidgetPage2 = new QWidget; |
|
31 | 31 | QWidget* spwTabWidgetPage3 = new QWidget; |
|
32 | 32 | QWidget* spwTabWidgetPage4 = new QWidget; |
|
33 | 33 | QWidget* spwTabWidgetPage5 = new QWidget; |
|
34 | 34 | QWidget* spwTabWidgetPage6 = new QWidget; |
|
35 | 35 | // |
|
36 | 36 | bridgeWidget = new QWidget; |
|
37 | 37 | mainLayout = new QVBoxLayout; |
|
38 | 38 | ccsdsLayout = new QVBoxLayout; |
|
39 | 39 | consoleLayout = new QVBoxLayout; |
|
40 | 40 | selectionLayout = new QVBoxLayout; |
|
41 | 41 | connectionLayout = new QGridLayout; |
|
42 | 42 | bridgeSelection_LAYOUT = new QGridLayout; |
|
43 | 43 | generalParameters_LAYOUT = new QGridLayout; |
|
44 | 44 | |
|
45 | 45 | gresb_GROUPBOX = new QGroupBox(tr("GRESB bridge parameters")); |
|
46 | 46 | stardundee_GROUPBOX = new QGroupBox(tr("Star Dundee brick parameters")); |
|
47 | 47 | selection_GROUPBOX = new QGroupBox(tr("Bridge selection")); |
|
48 | 48 | generalParameters_GROUPBOX = new QGroupBox(tr("General parameters")); |
|
49 | 49 | |
|
50 | 50 | //*** QLABEL ***// |
|
51 | 51 | gresbBridgeIPLabel = new QLabel(tr("Bridge IP: ")); |
|
52 | 52 | gresbVirtualLinkLabel = new QLabel(tr("Virtual Link: ")); |
|
53 | 53 | spwLinkLabel = new QLabel(tr("SPW Link: ")); |
|
54 | 54 | rmapSourceLogicalAddressLabel = new QLabel(tr("RMAP Source Logical Address: ")); |
|
55 | 55 | rmapTargetLogicalAddressLabel = new QLabel(tr("RMAP Target Logical Address: ")); |
|
56 | 56 | logFileName = new QLabel; |
|
57 | 57 | gresbStatusQueryLabel = new QLabel(tr("Status query socket (port 3010): waiting for connection")); |
|
58 | 58 | gresbStatusQueryDialogLabel = new QLabel(tr("sockets opened but SpaceWire link not running")); |
|
59 | 59 | nbPacketInStore = new QLabel(tr("nb packets in store: -")); |
|
60 | 60 | |
|
61 | 61 | //*** QPUSHBUTTON ***// |
|
62 | 62 | rmapOpenCommunicationButton = new QPushButton(tr("Open selected bridge")); |
|
63 | 63 | rmapCloseCommunicationButton = new QPushButton(tr("Close selected bridge")); |
|
64 | 64 | rmapOpenCommunicationButton->setEnabled(false); |
|
65 | 65 | rmapCloseCommunicationButton->setEnabled(false); |
|
66 | 66 | logFileChooseButton = new QPushButton(tr("Choose file")); |
|
67 | 67 | gresbStatusQueryRetryButton = new QPushButton(tr("Retry")); |
|
68 | 68 | gresbStatusQueryAbortButton = new QPushButton(tr("Abort")); |
|
69 | 69 | clearConsoleButton = new QPushButton(tr("Clear")); |
|
70 | 70 | |
|
71 | 71 | selectGRESB_BUTTON = new QRadioButton(tr("GRESB")); |
|
72 | 72 | selectStarDundee_BUTTON = new QRadioButton(tr("Star Dundee")); |
|
73 | 73 | |
|
74 | 74 | //*** SPINBOX ***// |
|
75 | 75 | gresbVirtualLinkSpinBox = new QSpinBox; |
|
76 | 76 | rmapSourceLogicalAddressSpinBox = new QSpinBox; |
|
77 | 77 | rmapTargetLogicalAddressSpinBox = new QSpinBox; |
|
78 | 78 | spwLinkSpinBox = new QSpinBox;; |
|
79 | 79 | CCSDSTargetLogicalAddressSpinBox = new QSpinBox; |
|
80 | 80 | gresbVirtualLinkSpinBox->setRange(0, 4); |
|
81 | 81 | gresbVirtualLinkSpinBox->setValue(1); |
|
82 | 82 | rmapSourceLogicalAddressSpinBox->setRange(0, 255); |
|
83 | 83 | rmapTargetLogicalAddressSpinBox->setRange(0, 255); |
|
84 | 84 | spwLinkSpinBox->setRange(0, 2); |
|
85 | 85 | spwLinkSpinBox->setValue(0); |
|
86 | 86 | |
|
87 | 87 | //*** MISC **// |
|
88 | 88 | starDundee = new StarDundee; |
|
89 | 89 | gresbBridge = new gresb; |
|
90 | 90 | tmEchoBridge = new TMEchoBridge(); |
|
91 | 91 | console = new QTextEdit; |
|
92 | 92 | gresbStatusQueryDialog = new QDialog; |
|
93 | 93 | logEnableCheckBox = new QCheckBox(tr("Enable Logs")); |
|
94 | 94 | RMAP_write_verify = new QCheckBox(tr("data checked before write\nlimited to 4 bytes\nNOT IMPLEMENTED")); |
|
95 | 95 | RMAP_write_reply = new QCheckBox(tr("reply to the write command required\nlast reply status: unavailable")); |
|
96 | 96 | logFile = new QFile(); |
|
97 | 97 | wfDisplay = new WFDisplay(); |
|
98 | 98 | tmStatistics = new TMStatistics(); |
|
99 | 99 | |
|
100 | 100 | logFileEn = false; |
|
101 | 101 | |
|
102 | 102 | connectionLayout->setRowStretch(7, 1); |
|
103 | 103 | connectionLayout->setColumnStretch(2, 1); |
|
104 | 104 | |
|
105 | 105 | bridgeSelection_LAYOUT->addWidget(selectGRESB_BUTTON, 0, 0, 1, 1); |
|
106 | 106 | bridgeSelection_LAYOUT->addWidget(selectStarDundee_BUTTON, 0, 1, 1, 1); |
|
107 | 107 | |
|
108 | 108 | bridgeSelection_LAYOUT->setRowStretch(1, 1); |
|
109 | 109 | bridgeSelection_LAYOUT->setColumnStretch(2, 1); |
|
110 | 110 | |
|
111 | 111 | generalParameters_LAYOUT->addWidget(logEnableCheckBox, 0, 0, 1, 1); |
|
112 | 112 | generalParameters_LAYOUT->addWidget(logFileChooseButton, 0, 1, 1, 1); |
|
113 | 113 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressLabel, 1, 0, 0); |
|
114 | 114 | generalParameters_LAYOUT->addWidget(rmapSourceLogicalAddressSpinBox, 1, 1, 0); |
|
115 | 115 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressLabel, 2, 0, 0); |
|
116 | 116 | generalParameters_LAYOUT->addWidget(rmapTargetLogicalAddressSpinBox, 2, 1, 0); |
|
117 | 117 | generalParameters_LAYOUT->addWidget(rmapOpenCommunicationButton, 3, 0, 1, 1); |
|
118 | 118 | generalParameters_LAYOUT->addWidget(rmapCloseCommunicationButton, 3, 1, 1, 1); |
|
119 | 119 | generalParameters_LAYOUT->addWidget(RMAP_write_verify, 4, 0, 1, 2); |
|
120 | 120 | generalParameters_LAYOUT->addWidget(RMAP_write_reply, 5, 0, 1, 2); |
|
121 | 121 | |
|
122 | 122 | generalParameters_LAYOUT->setRowStretch(6, 1); |
|
123 | 123 | generalParameters_LAYOUT->setColumnStretch(2, 1); |
|
124 | 124 | |
|
125 | 125 | gresb_GROUPBOX->setLayout(gresbBridge->layout()); |
|
126 | 126 | gresb_GROUPBOX->setVisible(false); |
|
127 | 127 | stardundee_GROUPBOX->setLayout(starDundee->layout()); |
|
128 | 128 | stardundee_GROUPBOX->setVisible(false); |
|
129 | 129 | selection_GROUPBOX->setLayout(bridgeSelection_LAYOUT); |
|
130 | 130 | generalParameters_GROUPBOX->setLayout(generalParameters_LAYOUT); |
|
131 | 131 | selectionLayout->addWidget(selection_GROUPBOX); |
|
132 | 132 | selectionLayout->addWidget(generalParameters_GROUPBOX); |
|
133 | 133 | selectionLayout->addWidget(gresb_GROUPBOX); |
|
134 | 134 | selectionLayout->addWidget(stardundee_GROUPBOX); |
|
135 | 135 | |
|
136 | 136 | //******** |
|
137 | 137 | // CONSOLE |
|
138 | 138 | consoleLayout->addWidget(console); |
|
139 | 139 | consoleLayout->addWidget(clearConsoleButton); |
|
140 | 140 | consoleLayout->addWidget(nbPacketInStore); |
|
141 | 141 | |
|
142 | 142 | connect(this->logFileChooseButton, SIGNAL(clicked()), this, SLOT(chooseLogFile())); |
|
143 | 143 | connect(this, SIGNAL(setLogFileName(QString)), this->logFileName, SLOT(setText(QString))); |
|
144 | 144 | connect(this->logEnableCheckBox, SIGNAL(stateChanged(int)), this, SLOT(logFileEnDisable(int))); |
|
145 | 145 | |
|
146 | 146 | spwTabWidget->addTab(spwTabWidgetPage0, tr("connection")); |
|
147 | 147 | spwTabWidget->addTab(spwTabWidgetPage2, tr("status")); |
|
148 | 148 | spwTabWidget->addTab(spwTabWidgetPage3, tr("console")); |
|
149 | 149 | spwTabWidget->addTab(spwTabWidgetPage4, tr("TM statistics")); |
|
150 | spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms")); | |
|
150 | //spwTabWidget->addTab(spwTabWidgetPage5, tr("waveforms")); | |
|
151 | 151 | spwTabWidget->addTab(spwTabWidgetPage6, tr("TM Echo Bridge")); |
|
152 | 152 | |
|
153 | 153 | spwTabWidgetPage0->setLayout(selectionLayout); |
|
154 | 154 | spwTabWidgetPage2->setLayout(this->gresbBridge->spwLinkStatusEnquiry->mainLayout); |
|
155 | 155 | spwTabWidgetPage3->setLayout(consoleLayout); |
|
156 | 156 | spwTabWidgetPage4->setLayout(tmStatistics->layout()); |
|
157 | 157 | spwTabWidgetPage5->setLayout(wfDisplay->layout()); |
|
158 | 158 | spwTabWidgetPage6->setLayout(tmEchoBridge->layout()); |
|
159 | 159 | |
|
160 | 160 | mainLayout->addWidget(spwTabWidget); |
|
161 | 161 | setLayout(mainLayout); |
|
162 | 162 | |
|
163 | 163 | connect(this->clearConsoleButton, SIGNAL(clicked()), this->console, SLOT(clear())); |
|
164 | 164 | |
|
165 | 165 | // briges |
|
166 | 166 | connect(this->selectGRESB_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); |
|
167 | 167 | connect(this->selectStarDundee_BUTTON, SIGNAL(clicked()), this, SLOT(selectionBetweenGresbAndStarDundee())); |
|
168 | 168 | connect(this->starDundee, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); |
|
169 | 169 | connect(this->gresbBridge, SIGNAL(isOpen(bool)), this, SLOT(isOpen(bool))); |
|
170 | 170 | |
|
171 | 171 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(sourceHasChanged(int))); |
|
172 | 172 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->gresbBridge, SLOT(targetHasChanged(int))); |
|
173 | 173 | connect(this->rmapSourceLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(sourceHasChanged(int))); |
|
174 | 174 | connect(this->rmapTargetLogicalAddressSpinBox, SIGNAL(valueChanged(int)), this->starDundee, SLOT(targetHasChanged(int))); |
|
175 | 175 | |
|
176 | 176 | // command code |
|
177 | 177 | connect(this->RMAP_write_reply, SIGNAL(clicked()), this, SLOT(getCommandCode())); |
|
178 | 178 | connect(this->RMAP_write_verify, SIGNAL(clicked()), this, SLOT(getCommandCode())); |
|
179 | 179 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), |
|
180 | 180 | this->starDundee, SLOT(commandCodeHasChanged(RMAP_command_codes))); |
|
181 | 181 | connect(this, SIGNAL(commandCodeHasChanged(RMAP_command_codes)), |
|
182 | 182 | this->gresbBridge, SLOT(commandCodeHasChanged(RMAP_command_codes))); |
|
183 | 183 | |
|
184 | 184 | getCommandCode(); // init the command code value |
|
185 | 185 | rmapSourceLogicalAddressSpinBox->setValue(DEFAULT_SOURCE); |
|
186 | 186 | rmapTargetLogicalAddressSpinBox->setValue(DEFAULT_TARGET); |
|
187 | 187 | } |
|
188 | 188 | |
|
189 | 189 | rmapPluginUI::~rmapPluginUI() |
|
190 | 190 | { |
|
191 | 191 | //delete ui; |
|
192 | 192 | } |
|
193 | 193 | |
|
194 | 194 | void rmapPluginUI::chooseLogFile() |
|
195 | 195 | { |
|
196 | 196 | if(this->logFile->isOpen()) |
|
197 | 197 | this->logFile->close(); |
|
198 | 198 | this->logFile->setFileName(QFileDialog::getSaveFileName(this,tr("Open Log file"), |
|
199 | 199 | QDir::homePath() |
|
200 | 200 | + "/" |
|
201 | 201 | + QDate::currentDate().toString() |
|
202 | 202 | + "_" |
|
203 | 203 | + QTime::currentTime().toString() |
|
204 | 204 | + "_rmapPluginUI.log", |
|
205 | 205 | tr("Log Files (*.txt *.log)"))); |
|
206 | 206 | if(this->logFile->open(QIODevice::WriteOnly)) |
|
207 | 207 | { |
|
208 | 208 | this->logFileStrm = new QTextStream(this->logFile); |
|
209 | 209 | emit this->setLogFileName(this->logFile->fileName()); |
|
210 | 210 | } |
|
211 | 211 | } |
|
212 | 212 | |
|
213 | 213 | void rmapPluginUI::logFileEnDisable(int state) |
|
214 | 214 | { |
|
215 | 215 | if(state==Qt::Checked) |
|
216 | 216 | { |
|
217 | 217 | this->logFileEn = true; |
|
218 | 218 | } |
|
219 | 219 | else if(state==Qt::Unchecked) |
|
220 | 220 | { |
|
221 | 221 | this->logFileEn = false; |
|
222 | 222 | } |
|
223 | 223 | } |
|
224 | 224 | |
|
225 | 225 | bool rmapPluginUI::islogfileenable() |
|
226 | 226 | { |
|
227 | 227 | return this->logFileEn; |
|
228 | 228 | } |
|
229 | 229 | |
|
230 | 230 | void rmapPluginUI::appendToLogFile(const QString & text) |
|
231 | 231 | { |
|
232 | 232 | if(this->logFileEn && this->logFile->isOpen()) |
|
233 | 233 | { |
|
234 | 234 | *(this->logFileStrm) << text << endl; |
|
235 | 235 | } |
|
236 | 236 | } |
|
237 | 237 | |
|
238 | 238 | void rmapPluginUI::closeEvent(QCloseEvent *event) |
|
239 | 239 | { |
|
240 | 240 | if(this->logFile->isOpen()) |
|
241 | 241 | { |
|
242 | 242 | this->logFileStrm->flush(); |
|
243 | 243 | this->logFile->waitForBytesWritten(3000); |
|
244 | 244 | this->logFile->close(); |
|
245 | 245 | } |
|
246 | 246 | event->accept(); |
|
247 | 247 | } |
|
248 | 248 | |
|
249 | 249 | RMAP_command_codes rmapPluginUI::getCommandCode() |
|
250 | 250 | { |
|
251 | 251 | RMAP_command_codes commandCode = invalid0; |
|
252 | 252 | if (RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_rep; |
|
253 | 253 | if (RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_ver_noRep; |
|
254 | 254 | if (!RMAP_write_verify->isChecked() and RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_Rep; |
|
255 | 255 | if (!RMAP_write_verify->isChecked() and !RMAP_write_reply->isChecked()) commandCode = writeSingle_noVer_noRep; |
|
256 | 256 | emit commandCodeHasChanged(commandCode); |
|
257 | 257 | return commandCode; |
|
258 | 258 | } |
|
259 | 259 | |
|
260 | 260 | // SLOT |
|
261 | 261 | |
|
262 | 262 | void rmapPluginUI::selectionBetweenGresbAndStarDundee() //SLOT |
|
263 | 263 | { |
|
264 | 264 | if (selectGRESB_BUTTON->isChecked()) |
|
265 | 265 | { |
|
266 | 266 | gresb_GROUPBOX->setVisible(true); |
|
267 | 267 | stardundee_GROUPBOX->setVisible(false); |
|
268 | 268 | rmapOpenCommunicationButton->setEnabled(true); |
|
269 | 269 | emit bridgeHasChanged(selectedBridgeIsGRESB); |
|
270 | 270 | } |
|
271 | 271 | if (selectStarDundee_BUTTON->isChecked()) |
|
272 | 272 | { |
|
273 | 273 | stardundee_GROUPBOX->setVisible(true); |
|
274 | 274 | gresb_GROUPBOX->setVisible(false); |
|
275 | 275 | rmapOpenCommunicationButton->setEnabled(true); |
|
276 | 276 | emit bridgeHasChanged(selectedBridgeIsStarDundee); |
|
277 | 277 | } |
|
278 | 278 | } |
|
279 | 279 | |
|
280 | 280 | void rmapPluginUI::isOpen(bool flag) |
|
281 | 281 | { |
|
282 | 282 | if (flag == true) |
|
283 | 283 | { |
|
284 | 284 | selection_GROUPBOX->setEnabled(false); |
|
285 | 285 | this->rmapOpenCommunicationButton->setEnabled(false); |
|
286 | 286 | this->rmapCloseCommunicationButton->setEnabled(true); |
|
287 | 287 | } |
|
288 | 288 | if (flag == false) |
|
289 | 289 | { |
|
290 | 290 | selection_GROUPBOX->setEnabled(true); |
|
291 | 291 | this->rmapOpenCommunicationButton->setEnabled(true); |
|
292 | 292 | this->rmapCloseCommunicationButton->setEnabled(false); |
|
293 | 293 | } |
|
294 | 294 | } |
|
295 | 295 | |
|
296 | 296 |
General Comments 0
You need to be logged in to leave comments.
Login now