##// END OF EJS Templates
Function added to the plugin to store packets in CSV format.
leroy -
r55:4ea52012da18 default
parent child
Show More
@@ -1,197 +1,197
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.1, 2013-11-07T12:53:04. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-14T14:43:39. -->
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 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 16 <value type="QString" key="language">Cpp</value>
17 17 <valuemap type="QVariantMap" key="value">
18 18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 19 </valuemap>
20 20 </valuemap>
21 21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 22 <value type="QString" key="language">QmlJS</value>
23 23 <valuemap type="QVariantMap" key="value">
24 24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 25 </valuemap>
26 26 </valuemap>
27 27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 45 </valuemap>
46 46 </data>
47 47 <data>
48 48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 49 <valuemap type="QVariantMap"/>
50 50 </data>
51 51 <data>
52 52 <variable>ProjectExplorer.Project.Target.0</variable>
53 53 <valuemap type="QVariantMap">
54 54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 71 </valuemap>
72 72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 78 <value type="QString">-w</value>
79 79 <value type="QString">-r</value>
80 80 </valuelist>
81 81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 84 </valuemap>
85 85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 89 </valuemap>
90 90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
94 94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 97 <value type="QString">-w</value>
98 98 <value type="QString">-r</value>
99 99 </valuelist>
100 100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 103 </valuemap>
104 104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 108 </valuemap>
109 109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
113 113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL</value>
117 117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 118 </valuemap>
119 119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 126 </valuemap>
127 127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 131 </valuemap>
132 132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 150 <value type="int">0</value>
151 151 <value type="int">1</value>
152 152 <value type="int">2</value>
153 153 <value type="int">3</value>
154 154 <value type="int">4</value>
155 155 <value type="int">5</value>
156 156 <value type="int">6</value>
157 157 <value type="int">7</value>
158 158 <value type="int">8</value>
159 159 <value type="int">9</value>
160 160 <value type="int">10</value>
161 161 <value type="int">11</value>
162 162 <value type="int">12</value>
163 163 <value type="int">13</value>
164 164 <value type="int">14</value>
165 165 </valuelist>
166 166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
169 169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable">lppmon</value>
170 170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
171 171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
172 172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Run lppmon</value>
173 173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
174 174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
175 175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
176 176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
178 178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
179 179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
180 180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
181 181 </valuemap>
182 182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
183 183 </valuemap>
184 184 </data>
185 185 <data>
186 186 <variable>ProjectExplorer.Project.TargetCount</variable>
187 187 <value type="int">1</value>
188 188 </data>
189 189 <data>
190 190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
191 191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
192 192 </data>
193 193 <data>
194 194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
195 195 <value type="int">14</value>
196 196 </data>
197 197 </qtcreator>
@@ -1,381 +1,376
1 1 #############################################################################
2 2 # Makefile for building: lfrsgse
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Thu Oct 10 08:44:30 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Tue Nov 12 11:16:36 2013
4 4 # Project: gselesia.pro
5 5 # Template: app
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
6 # Command: /usr/bin/qmake-qt4 -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 -grecord-gcc-switches -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 -grecord-gcc-switches -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/usr/include/lppmon/parameterdump -I.
17 17 LINK = g++
18 18 LFLAGS = -Wl,-O1 -Wl,-z,relro
19 19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lparameterdump -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 lfrxmlhandler.cpp \
50 50 lfrxmlwriter.cpp \
51 51 ../rmapplugin/tmstatistics.cpp \
52 52 ../rmapplugin/tmpackettoread.cpp \
53 53 ../rmapplugin/wfpacket.cpp \
54 54 ../rmapplugin/spectrapacket.cpp \
55 55 ../common_PLE/qipdialogbox.cpp \
56 56 ../common_PLE/hkdisplay.cpp \
57 57 lfrxmlparser.cpp moc_mainwindow.cpp \
58 58 moc_mainwindowui.cpp \
59 59 moc_lfrxmlhandler.cpp \
60 60 moc_lfrxmlwriter.cpp \
61 61 moc_tmstatistics.cpp \
62 62 moc_tmpackettoread.cpp \
63 63 moc_wfpacket.cpp \
64 64 moc_spectrapacket.cpp \
65 65 moc_qipdialogbox.cpp \
66 66 moc_hkdisplay.cpp \
67 67 moc_lfrxmlparser.cpp
68 68 OBJECTS = main.o \
69 69 mainwindow.o \
70 70 mainwindowui.o \
71 71 lfrxmlhandler.o \
72 72 lfrxmlwriter.o \
73 73 tmstatistics.o \
74 74 tmpackettoread.o \
75 75 wfpacket.o \
76 76 spectrapacket.o \
77 77 qipdialogbox.o \
78 78 hkdisplay.o \
79 79 lfrxmlparser.o \
80 80 moc_mainwindow.o \
81 81 moc_mainwindowui.o \
82 82 moc_lfrxmlhandler.o \
83 83 moc_lfrxmlwriter.o \
84 84 moc_tmstatistics.o \
85 85 moc_tmpackettoread.o \
86 86 moc_wfpacket.o \
87 87 moc_spectrapacket.o \
88 88 moc_qipdialogbox.o \
89 89 moc_hkdisplay.o \
90 90 moc_lfrxmlparser.o
91 91 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
92 92 /usr/lib64/qt4/mkspecs/common/linux.conf \
93 93 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
94 94 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
95 95 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
96 96 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
97 97 /usr/lib64/qt4/mkspecs/qconfig.pri \
98 98 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
99 99 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
100 100 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
101 101 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
102 102 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
103 103 /usr/lib64/qt4/mkspecs/features/release.prf \
104 104 /usr/lib64/qt4/mkspecs/features/default_post.prf \
105 105 /usr/lib64/qt4/mkspecs/features/shared.prf \
106 106 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
107 107 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
108 108 /usr/lib64/qt4/mkspecs/features/qt.prf \
109 109 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
110 110 /usr/lib64/qt4/mkspecs/features/moc.prf \
111 111 /usr/lib64/qt4/mkspecs/features/resources.prf \
112 112 /usr/lib64/qt4/mkspecs/features/uic.prf \
113 113 /usr/lib64/qt4/mkspecs/features/yacc.prf \
114 114 /usr/lib64/qt4/mkspecs/features/lex.prf \
115 115 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
116 116 gselesia.pro
117 117 QMAKE_TARGET = lfrsgse
118 118 DESTDIR =
119 119 TARGET = lfrsgse
120 120
121 121 first: all
122 122 ####### Implicit rules
123 123
124 124 .SUFFIXES: .o .c .cpp .cc .cxx .C
125 125
126 126 .cpp.o:
127 127 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
128 128
129 129 .cc.o:
130 130 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
131 131
132 132 .cxx.o:
133 133 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
134 134
135 135 .C.o:
136 136 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
137 137
138 138 .c.o:
139 139 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
140 140
141 141 ####### Build rules
142 142
143 143 all: Makefile $(TARGET)
144 144
145 145 $(TARGET): $(OBJECTS)
146 146 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
147 147
148 148 Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
149 149 /usr/lib64/qt4/mkspecs/common/linux.conf \
150 150 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
151 151 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
152 152 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
153 153 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
154 154 /usr/lib64/qt4/mkspecs/qconfig.pri \
155 155 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
156 156 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
157 157 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
158 158 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
159 159 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
160 160 /usr/lib64/qt4/mkspecs/features/release.prf \
161 161 /usr/lib64/qt4/mkspecs/features/default_post.prf \
162 162 /usr/lib64/qt4/mkspecs/features/shared.prf \
163 163 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
164 164 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
165 165 /usr/lib64/qt4/mkspecs/features/qt.prf \
166 166 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
167 167 /usr/lib64/qt4/mkspecs/features/moc.prf \
168 168 /usr/lib64/qt4/mkspecs/features/resources.prf \
169 169 /usr/lib64/qt4/mkspecs/features/uic.prf \
170 170 /usr/lib64/qt4/mkspecs/features/yacc.prf \
171 171 /usr/lib64/qt4/mkspecs/features/lex.prf \
172 172 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
173 173 /usr/lib64/libQtXml.prl \
174 174 /usr/lib64/libQtCore.prl \
175 175 /usr/lib64/libQtGui.prl \
176 176 /usr/lib64/libQtNetwork.prl
177 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
177 $(QMAKE) -o Makefile gselesia.pro
178 178 /usr/lib64/qt4/mkspecs/common/unix.conf:
179 179 /usr/lib64/qt4/mkspecs/common/linux.conf:
180 180 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
181 181 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
182 182 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
183 183 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
184 184 /usr/lib64/qt4/mkspecs/qconfig.pri:
185 185 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
186 186 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
187 187 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
188 188 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
189 189 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
190 190 /usr/lib64/qt4/mkspecs/features/release.prf:
191 191 /usr/lib64/qt4/mkspecs/features/default_post.prf:
192 192 /usr/lib64/qt4/mkspecs/features/shared.prf:
193 193 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
194 194 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
195 195 /usr/lib64/qt4/mkspecs/features/qt.prf:
196 196 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
197 197 /usr/lib64/qt4/mkspecs/features/moc.prf:
198 198 /usr/lib64/qt4/mkspecs/features/resources.prf:
199 199 /usr/lib64/qt4/mkspecs/features/uic.prf:
200 200 /usr/lib64/qt4/mkspecs/features/yacc.prf:
201 201 /usr/lib64/qt4/mkspecs/features/lex.prf:
202 202 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
203 203 /usr/lib64/libQtXml.prl:
204 204 /usr/lib64/libQtCore.prl:
205 205 /usr/lib64/libQtGui.prl:
206 206 /usr/lib64/libQtNetwork.prl:
207 207 qmake: FORCE
208 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
208 @$(QMAKE) -o Makefile gselesia.pro
209 209
210 210 dist:
211 211 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
212 212 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents mainwindow.h mainwindowui.h lfrxmlhandler.h lfrxmlwriter.h ../rmapplugin/tmstatistics.h ../rmapplugin/tmpackettoread.h ../rmapplugin/wfpacket.h ../rmapplugin/spectrapacket.h ../common_PLE/qipdialogbox.h ../common_PLE/hkdisplay.h ../rmapplugin/params.h ../../DEV_PLE/header/TC_types.h ../../DEV_PLE/header/ccsds_types.h lfrxmlparser.h .tmp/lfrsgse1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp mainwindowui.cpp lfrxmlhandler.cpp lfrxmlwriter.cpp ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmpackettoread.cpp ../rmapplugin/wfpacket.cpp ../rmapplugin/spectrapacket.cpp ../common_PLE/qipdialogbox.cpp ../common_PLE/hkdisplay.cpp lfrxmlparser.cpp .tmp/lfrsgse1.0.0/ && (cd `dirname .tmp/lfrsgse1.0.0` && $(TAR) lfrsgse1.0.0.tar lfrsgse1.0.0 && $(COMPRESS) lfrsgse1.0.0.tar) && $(MOVE) `dirname .tmp/lfrsgse1.0.0`/lfrsgse1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lfrsgse1.0.0
213 213
214 214
215 215 clean:compiler_clean
216 216 -$(DEL_FILE) $(OBJECTS)
217 217 -$(DEL_FILE) *~ core *.core
218 218
219 219
220 220 ####### Sub-libraries
221 221
222 222 distclean: clean
223 223 -$(DEL_FILE) $(TARGET)
224 224 -$(DEL_FILE) Makefile
225 225
226 226
227 227 check: first
228 228
229 229 mocclean: compiler_moc_header_clean compiler_moc_source_clean
230 230
231 231 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
232 232
233 233 compiler_moc_header_make_all: moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
234 234 compiler_moc_header_clean:
235 235 -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindowui.cpp moc_lfrxmlhandler.cpp moc_lfrxmlwriter.cpp moc_tmstatistics.cpp moc_tmpackettoread.cpp moc_wfpacket.cpp moc_spectrapacket.cpp moc_qipdialogbox.cpp moc_hkdisplay.cpp moc_lfrxmlparser.cpp
236 236 moc_mainwindow.cpp: lfrxmlhandler.h \
237 237 lfrxmlwriter.h \
238 238 mainwindowui.h \
239 lfrspectrogram.h \
240 239 lfrxmlparser.h \
241 240 mainwindow.h
242 241 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
243 242
244 moc_mainwindowui.cpp: lfrspectrogram.h \
245 mainwindowui.h
243 moc_mainwindowui.cpp: mainwindowui.h
246 244 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) mainwindowui.h -o moc_mainwindowui.cpp
247 245
248 246 moc_lfrxmlhandler.cpp: lfrxmlhandler.h
249 247 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlhandler.h -o moc_lfrxmlhandler.cpp
250 248
251 249 moc_lfrxmlwriter.cpp: lfrxmlwriter.h
252 250 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlwriter.h -o moc_lfrxmlwriter.cpp
253 251
254 252 moc_tmstatistics.cpp: ../rmapplugin/tmstatistics.h
255 253 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmstatistics.h -o moc_tmstatistics.cpp
256 254
257 255 moc_tmpackettoread.cpp: ../rmapplugin/tmpackettoread.h
258 256 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/tmpackettoread.h -o moc_tmpackettoread.cpp
259 257
260 258 moc_wfpacket.cpp: ../rmapplugin/wfpacket.h
261 259 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/wfpacket.h -o moc_wfpacket.cpp
262 260
263 261 moc_spectrapacket.cpp: ../rmapplugin/spectrapacket.h
264 262 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../rmapplugin/spectrapacket.h -o moc_spectrapacket.cpp
265 263
266 264 moc_qipdialogbox.cpp: ../common_PLE/qipdialogbox.h
267 265 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/qipdialogbox.h -o moc_qipdialogbox.cpp
268 266
269 267 moc_hkdisplay.cpp: ../common_PLE/hkdisplay.h
270 268 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) ../common_PLE/hkdisplay.h -o moc_hkdisplay.cpp
271 269
272 270 moc_lfrxmlparser.cpp: lfrxmlparser.h
273 271 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lfrxmlparser.h -o moc_lfrxmlparser.cpp
274 272
275 273 compiler_rcc_make_all:
276 274 compiler_rcc_clean:
277 275 compiler_image_collection_make_all: qmake_image_collection.cpp
278 276 compiler_image_collection_clean:
279 277 -$(DEL_FILE) qmake_image_collection.cpp
280 278 compiler_moc_source_make_all:
281 279 compiler_moc_source_clean:
282 280 compiler_uic_make_all:
283 281 compiler_uic_clean:
284 282 compiler_yacc_decl_make_all:
285 283 compiler_yacc_decl_clean:
286 284 compiler_yacc_impl_make_all:
287 285 compiler_yacc_impl_clean:
288 286 compiler_lex_make_all:
289 287 compiler_lex_clean:
290 288 compiler_clean: compiler_moc_header_clean
291 289
292 290 ####### Compile
293 291
294 292 main.o: main.cpp mainwindow.h \
295 293 lfrxmlhandler.h \
296 294 lfrxmlwriter.h \
297 295 mainwindowui.h \
298 lfrspectrogram.h \
299 296 lfrxmlparser.h
300 297 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
301 298
302 299 mainwindow.o: mainwindow.cpp mainwindow.h \
303 300 lfrxmlhandler.h \
304 301 lfrxmlwriter.h \
305 302 mainwindowui.h \
306 lfrspectrogram.h \
307 303 lfrxmlparser.h
308 304 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
309 305
310 mainwindowui.o: mainwindowui.cpp mainwindowui.h \
311 lfrspectrogram.h
306 mainwindowui.o: mainwindowui.cpp mainwindowui.h
312 307 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindowui.o mainwindowui.cpp
313 308
314 309 lfrxmlhandler.o: lfrxmlhandler.cpp lfrxmlhandler.h
315 310 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlhandler.o lfrxmlhandler.cpp
316 311
317 312 lfrxmlwriter.o: lfrxmlwriter.cpp lfrxmlwriter.h
318 313 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlwriter.o lfrxmlwriter.cpp
319 314
320 315 tmstatistics.o: ../rmapplugin/tmstatistics.cpp ../rmapplugin/tmstatistics.h
321 316 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmstatistics.o ../rmapplugin/tmstatistics.cpp
322 317
323 318 tmpackettoread.o: ../rmapplugin/tmpackettoread.cpp ../rmapplugin/tmpackettoread.h
324 319 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmpackettoread.o ../rmapplugin/tmpackettoread.cpp
325 320
326 321 wfpacket.o: ../rmapplugin/wfpacket.cpp ../rmapplugin/wfpacket.h
327 322 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpacket.o ../rmapplugin/wfpacket.cpp
328 323
329 324 spectrapacket.o: ../rmapplugin/spectrapacket.cpp ../rmapplugin/spectrapacket.h
330 325 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o spectrapacket.o ../rmapplugin/spectrapacket.cpp
331 326
332 327 qipdialogbox.o: ../common_PLE/qipdialogbox.cpp ../common_PLE/qipdialogbox.h
333 328 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qipdialogbox.o ../common_PLE/qipdialogbox.cpp
334 329
335 330 hkdisplay.o: ../common_PLE/hkdisplay.cpp ../common_PLE/hkdisplay.h
336 331 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o hkdisplay.o ../common_PLE/hkdisplay.cpp
337 332
338 333 lfrxmlparser.o: lfrxmlparser.cpp lfrxmlparser.h
339 334 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lfrxmlparser.o lfrxmlparser.cpp
340 335
341 336 moc_mainwindow.o: moc_mainwindow.cpp
342 337 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
343 338
344 339 moc_mainwindowui.o: moc_mainwindowui.cpp
345 340 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindowui.o moc_mainwindowui.cpp
346 341
347 342 moc_lfrxmlhandler.o: moc_lfrxmlhandler.cpp
348 343 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlhandler.o moc_lfrxmlhandler.cpp
349 344
350 345 moc_lfrxmlwriter.o: moc_lfrxmlwriter.cpp
351 346 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlwriter.o moc_lfrxmlwriter.cpp
352 347
353 348 moc_tmstatistics.o: moc_tmstatistics.cpp
354 349 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmstatistics.o moc_tmstatistics.cpp
355 350
356 351 moc_tmpackettoread.o: moc_tmpackettoread.cpp
357 352 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tmpackettoread.o moc_tmpackettoread.cpp
358 353
359 354 moc_wfpacket.o: moc_wfpacket.cpp
360 355 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpacket.o moc_wfpacket.cpp
361 356
362 357 moc_spectrapacket.o: moc_spectrapacket.cpp
363 358 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_spectrapacket.o moc_spectrapacket.cpp
364 359
365 360 moc_qipdialogbox.o: moc_qipdialogbox.cpp
366 361 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qipdialogbox.o moc_qipdialogbox.cpp
367 362
368 363 moc_hkdisplay.o: moc_hkdisplay.cpp
369 364 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_hkdisplay.o moc_hkdisplay.cpp
370 365
371 366 moc_lfrxmlparser.o: moc_lfrxmlparser.cpp
372 367 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lfrxmlparser.o moc_lfrxmlparser.cpp
373 368
374 369 ####### Install
375 370
376 371 install: FORCE
377 372
378 373 uninstall: FORCE
379 374
380 375 FORCE:
381 376
@@ -1,198 +1,198
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.1, 2013-11-07T14:48:17. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-12T11:12:03. -->
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 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 16 <value type="QString" key="language">Cpp</value>
17 17 <valuemap type="QVariantMap" key="value">
18 18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 19 </valuemap>
20 20 </valuemap>
21 21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 22 <value type="QString" key="language">QmlJS</value>
23 23 <valuemap type="QVariantMap" key="value">
24 24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 25 </valuemap>
26 26 </valuemap>
27 27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 45 </valuemap>
46 46 </data>
47 47 <data>
48 48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 49 <valuemap type="QVariantMap"/>
50 50 </data>
51 51 <data>
52 52 <variable>ProjectExplorer.Project.Target.0</variable>
53 53 <valuemap type="QVariantMap">
54 54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 71 </valuemap>
72 72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 78 <value type="QString">-w</value>
79 79 <value type="QString">-r</value>
80 80 </valuelist>
81 81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 84 </valuemap>
85 85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 89 </valuemap>
90 90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
94 94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 97 <value type="QString">-w</value>
98 98 <value type="QString">-r</value>
99 99 </valuelist>
100 100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 103 </valuemap>
104 104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 108 </valuemap>
109 109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
113 113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/gse_lesia</value>
117 117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 118 </valuemap>
119 119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 126 </valuemap>
127 127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 131 </valuemap>
132 132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 150 <value type="int">0</value>
151 151 <value type="int">1</value>
152 152 <value type="int">2</value>
153 153 <value type="int">3</value>
154 154 <value type="int">4</value>
155 155 <value type="int">5</value>
156 156 <value type="int">6</value>
157 157 <value type="int">7</value>
158 158 <value type="int">8</value>
159 159 <value type="int">9</value>
160 160 <value type="int">10</value>
161 161 <value type="int">11</value>
162 162 <value type="int">12</value>
163 163 <value type="int">13</value>
164 164 <value type="int">14</value>
165 165 </valuelist>
166 166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 168 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">gselesia</value>
169 169 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
170 170 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/opt/LPPMON_PLUGINS_PAUL/gse_lesia/gselesia.pro</value>
171 171 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
172 172 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">gselesia.pro</value>
173 173 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
174 174 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
175 175 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
176 176 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
177 177 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
178 178 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
179 179 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
180 180 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
181 181 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
182 182 </valuemap>
183 183 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
184 184 </valuemap>
185 185 </data>
186 186 <data>
187 187 <variable>ProjectExplorer.Project.TargetCount</variable>
188 188 <value type="int">1</value>
189 189 </data>
190 190 <data>
191 191 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
192 192 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
193 193 </data>
194 194 <data>
195 195 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
196 196 <value type="int">14</value>
197 197 </data>
198 198 </qtcreator>
1 NO CONTENT: modified file, binary diff hidden
@@ -1,270 +1,270
1 1 #include "entermode.h"
2 2
3 3 EnterMode::EnterMode(QWidget *parent) :
4 4 QWidget(parent)
5 5 {
6 6 button_enterModeStandby = new QPushButton(tr("STANDBY"));
7 7 button_enterModeNormal = new QPushButton(tr("NORMAL"));
8 8 button_enterModeBurst = new QPushButton(tr("BURST"));
9 9 button_enterModeSBM1 = new QPushButton(tr("SBM1"));
10 10 button_enterModeSBM2 = new QPushButton(tr("SBM2"));
11 11
12 12 button_reset = new QPushButton(tr("RESET"));
13 13 button_updateInfo = new QPushButton(tr("UPDATE_INFO"));
14 14 button_enableCalibration = new QPushButton(tr("ENABLE_CAL"));
15 15 button_disableCalibration = new QPushButton(tr("DISABLE_CAL"));
16 16 button_updateTime = new QPushButton(tr("UPDATE_TIME"));
17 17
18 18 mainLayout = new QGridLayout();
19 19 overallLayout = new QGridLayout();
20 20
21 21 layout_updateTime = new QVBoxLayout();
22 22 layout_otherTC = new QVBoxLayout();
23 23
24 24 arbitraryTime = new ArbitraryTime(0);
25 25
26 26 layout_otherTC->addWidget(button_reset);
27 27 layout_otherTC->addWidget(button_updateInfo);
28 28 layout_otherTC->addWidget(button_enableCalibration);
29 29 layout_otherTC->addWidget(button_disableCalibration);
30 30 layout_otherTC->addStretch();
31 31
32 32 layout_updateTime->addWidget(button_updateTime);
33 33 layout_updateTime->addWidget(arbitraryTime);
34 34 layout_updateTime->addStretch();
35 35
36 36 groupBox = new QGroupBox(tr("ENTER_MODE"));
37 37 groupBox_updateTime = new QGroupBox(tr("UPDATE_TIME"));
38 38 groupBox_otherTC = new QGroupBox(tr("OTHER TC"));
39 39
40 40 mainLayout->addWidget(button_enterModeStandby, 0, 0, 1, 1);
41 41 mainLayout->addWidget(button_enterModeNormal, 1, 0, 1, 1);
42 42 mainLayout->addWidget(button_enterModeBurst, 2, 0, 1, 1);
43 43 mainLayout->addWidget(button_enterModeSBM1, 3, 0, 1, 1);
44 44 mainLayout->addWidget(button_enterModeSBM2, 4, 0, 1, 1);
45 45
46 46 mainLayout->setColumnStretch(1, 1);
47 47 mainLayout->setRowStretch(5, 1);
48 48
49 49 groupBox->setLayout(mainLayout);
50 50 groupBox_otherTC->setLayout(layout_otherTC);
51 51 groupBox_updateTime->setLayout(layout_updateTime);
52 52
53 53 parameterDump = new ParameterDump();
54 54
55 55 connect(this->button_reset, SIGNAL(clicked()), this, SLOT(sendReset()));
56 56
57 57 connect(this->button_enterModeStandby, SIGNAL(clicked()), this, SLOT(enterModeStandby()));
58 58 connect(this->button_enterModeNormal, SIGNAL(clicked()), this, SLOT(enterModeNormal()));
59 59 connect(this->button_enterModeBurst, SIGNAL(clicked()), this, SLOT(enterModeBurst()));
60 60 connect(this->button_enterModeSBM1, SIGNAL(clicked()), this, SLOT(enterModeSBM1()));
61 61 connect(this->button_enterModeSBM2, SIGNAL(clicked()), this, SLOT(enterModeSBM2()));
62 62
63 63 connect(this->button_updateInfo, SIGNAL(clicked()), this, SLOT(sendUpdateInfo()));
64 64 connect(this->button_enableCalibration, SIGNAL(clicked()), this, SLOT(sendEnableCalibration()));
65 65 connect(this->button_disableCalibration, SIGNAL(clicked()), this, SLOT(sendDisableCalibration()));
66 66 connect(this->button_updateTime, SIGNAL(clicked()), this->arbitraryTime, SLOT(sendCurrentTimeToSend()));
67 67
68 68 overallLayout->addWidget(groupBox, 0, 0, 1, 1);
69 69 overallLayout->addWidget(groupBox_updateTime, 1, 0, 1, 1);
70 70 overallLayout->addWidget(groupBox_otherTC, 2, 0, 1, 1);
71 71
72 72 this->setLayout(overallLayout);
73 73 }
74 74
75 75 void EnterMode::sendEnterMode( unsigned char mode)
76 76 {
77 77 Packet_TC_LFR_ENTER_MODE_t packet;
78 78 unsigned char crcAsTwoBytes[2];
79 79
80 80 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
81 81 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
82 82 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
83 83 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
84 84 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE >> 8);
85 85 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENTER_MODE );
86 86
87 87 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
88 88 packet.serviceType = TC_TYPE_DEFAULT;
89 89 packet.serviceSubType = TC_SUBTYPE_ENTER_MODE;
90 packet.sourceID = SID_TC_DEFAULT;
90 packet.sourceID = SID_TC_GROUND;
91 91 packet.spare = 0x00;
92 92 packet.mode = mode;
93 93 packet.enterModeTime[0] = 0x00;
94 94 packet.enterModeTime[1] = 0x00;
95 95 packet.enterModeTime[2] = 0x00;
96 96 packet.enterModeTime[3] = 0x00;
97 97 packet.enterModeTime[4] = 0x00;
98 98 packet.enterModeTime[5] = 0x00;
99 99
100 100 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
101 101 PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET - 2);
102 102 packet.crc[0] = crcAsTwoBytes[0];
103 103 packet.crc[1] = crcAsTwoBytes[1];
104 104
105 105 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENTER_MODE + CCSDS_TC_TM_PACKET_OFFSET,
106 106 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
107 107 }
108 108
109 109 void EnterMode::enterModeStandby()
110 110 {
111 111 sendEnterMode( 0 );
112 112 }
113 113
114 114 void EnterMode::enterModeNormal()
115 115 {
116 116 sendEnterMode( 1 );
117 117 }
118 118
119 119 void EnterMode::enterModeBurst()
120 120 {
121 121 sendEnterMode( 2 );
122 122 }
123 123
124 124 void EnterMode::enterModeSBM1()
125 125 {
126 126 sendEnterMode( 3 );
127 127 }
128 128
129 129 void EnterMode::enterModeSBM2()
130 130 {
131 131 sendEnterMode( 4 );
132 132 }
133 133
134 134 void EnterMode::sendReset()
135 135 {
136 136 Packet_TC_LFR_RESET_t packet;
137 137 unsigned char crcAsTwoBytes[2];
138 138
139 139 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
140 140 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
141 141 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
142 142 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
143 143 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET >> 8);
144 144 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_RESET );
145 145
146 146 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
147 147 packet.serviceType = TC_TYPE_DEFAULT;
148 148 packet.serviceSubType = TC_SUBTYPE_RESET;
149 packet.sourceID = SID_TC_DEFAULT;
149 packet.sourceID = SID_TC_GROUND;
150 150
151 151 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
152 152 PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET - 2);
153 153 packet.crc[0] = crcAsTwoBytes[0];
154 154 packet.crc[1] = crcAsTwoBytes[1];
155 155
156 156 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_RESET + CCSDS_TC_TM_PACKET_OFFSET,
157 157 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
158 158 }
159 159
160 160 void EnterMode::sendUpdateInfo()
161 161 {
162 162 Packet_TC_LFR_UPDATE_INFO_t packet;
163 163 unsigned char crcAsTwoBytes[2];
164 164
165 165 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
166 166 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
167 167 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
168 168 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
169 169 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO >> 8);
170 170 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_UPDATE_INFO );
171 171
172 172 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
173 173 packet.serviceType = TC_TYPE_DEFAULT;
174 174 packet.serviceSubType = TC_SUBTYPE_UPDATE_INFO;
175 packet.sourceID = SID_TC_DEFAULT;
175 packet.sourceID = SID_TC_GROUND;
176 176
177 177 packet.set1 = 0x00;
178 178 packet.set2 = 0x00;
179 179 packet.set3_bias_setting_set1[0] = 0x00;
180 180 packet.set3_bias_setting_set1[1] = 0x00;
181 181 packet.set3_bias_setting_set1[2] = 0x00;
182 182 packet.set3_bias_setting_set1[3] = 0x00;
183 183 packet.set3_bias_setting_set1[4] = 0x00;
184 184 packet.set3_bias_setting_set2[5] = 0x00;
185 185 packet.set3_bias_voltage[0] = 0x00;
186 186 packet.set3_bias_voltage[1] = 0x00;
187 187 packet.set3_bias_voltage[2] = 0x00;
188 188 packet.set3_bias_voltage[3] = 0x00;
189 189 packet.set4[0] = 0x00;
190 190 packet.set4[1] = 0x00;
191 191 packet.set4[2] = 0x00;
192 192 packet.set4[3] = 0x00;
193 193 packet.set4[4] = 0x00;
194 194 packet.set4[5] = 0x00;
195 195 packet.set4[6] = 0x00;
196 196 packet.set4[7] = 0x00;
197 197 packet.set5 = 0x00;
198 198 packet.set6 = 0x00;
199 199 packet.set7[0] = 0x00;
200 200 packet.set7[1] = 0x00;
201 201 packet.set7[2] = 0x00;
202 202 packet.set7[3] = 0x00;
203 203 packet.set7[4] = 0x00;
204 204 packet.set7[5] = 0x00;
205 205 packet.set7[6] = 0x00;
206 206 packet.set7[7] = 0x00;
207 207
208 208 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
209 209 PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET - 2);
210 210 packet.crc[0] = crcAsTwoBytes[0];
211 211 packet.crc[1] = crcAsTwoBytes[1];
212 212
213 213 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_UPDATE_INFO + CCSDS_TC_TM_PACKET_OFFSET,
214 214 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
215 215 }
216 216
217 217 void EnterMode::sendEnableCalibration()
218 218 {
219 219 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
220 220 unsigned char crcAsTwoBytes[2];
221 221
222 222 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
223 223 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
224 224 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
225 225 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
226 226 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION >> 8);
227 227 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION );
228 228
229 229 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
230 230 packet.serviceType = TC_TYPE_DEFAULT;
231 231 packet.serviceSubType = TC_SUBTYPE_ENABLE_CALIBRATION;
232 packet.sourceID = SID_TC_DEFAULT;
232 packet.sourceID = SID_TC_GROUND;
233 233
234 234 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
235 235 PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
236 236 packet.crc[0] = crcAsTwoBytes[0];
237 237 packet.crc[1] = crcAsTwoBytes[1];
238 238
239 239 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_ENABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
240 240 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
241 241 }
242 242
243 243 void EnterMode::sendDisableCalibration()
244 244 {
245 245 Packet_TC_LFR_ENABLE_DISABLE_CALIBRATION_t packet;
246 246 unsigned char crcAsTwoBytes[2];
247 247
248 248 packet.packetID[0] = (unsigned char) (TC_LFR_PACKET_ID >> 8);
249 249 packet.packetID[1] = (unsigned char) (TC_LFR_PACKET_ID );
250 250 packet.packetSequenceControl[0] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL >> 8);
251 251 packet.packetSequenceControl[1] = (unsigned char) (TC_LFR_PACKET_SEQUENCE_CONTROL );
252 252 packet.packetLength[0] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION >> 8);
253 253 packet.packetLength[1] = (unsigned char) (PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION );
254 254
255 255 packet.ccsdsSecHeaderFlag_pusVersion_ack = 0x19;
256 256 packet.serviceType = TC_TYPE_DEFAULT;
257 257 packet.serviceSubType = TC_SUBTYPE_DISABLE_CALIBRATION;
258 packet.sourceID = SID_TC_DEFAULT;
258 packet.sourceID = SID_TC_GROUND;
259 259
260 260 parameterDump->GetCRCAsTwoBytes((unsigned char*) &packet, crcAsTwoBytes,
261 261 PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET - 2);
262 262 packet.crc[0] = crcAsTwoBytes[0];
263 263 packet.crc[1] = crcAsTwoBytes[1];
264 264
265 265 emit WriteSPWSig((char*) &packet, PACKET_LENGTH_TC_LFR_DISABLE_CALIBRATION + CCSDS_TC_TM_PACKET_OFFSET,
266 266 CCSDS_NODE_ADDRESS, CCSDS_USER_APP);
267 267 }
268 268
269 269
270 270
@@ -1,903 +1,967
1 1 #include "tmstatistics.h"
2 2 #include <QtGui>
3 3 #include <QFontInfo>
4 4 #include <stdio.h>
5 5
6 6 TMStatistics::TMStatistics(QWidget *parent) :
7 7 QWidget(parent)
8 8 {
9 9 // Create Fonts
10 10 QFont font;
11 11 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
12 12
13 13 label_UNKNOWN = new QLabel("UNKNOWN");
14 14 label_UNKNOWN_nb = new QLabel("-");
15 15
16 16 mainLayout = new QGridLayout();
17 17 layout_stat = new QGridLayout(); // TM stastictics
18 18 layout_NORM = new QGridLayout(); // TM_LFR_SCIENCE_NORMAL_
19 19 layout_BURST = new QGridLayout(); // TM_LFR_SCIENCE_BURST_
20 20 layout_SBM1 = new QGridLayout(); // TM_LFR_SCIENCE_SBM1_
21 21 layout_SBM2 = new QGridLayout(); // TM_LFR_SCIENCE_SBM2_
22 22 layout_last = new QGridLayout(); // last TM description
23 23 layout_record = new QVBoxLayout();
24 24
25 25 //***************
26 26 // TM_LFR_TC_EXE_
27 27 label_SUCC = new QLabel("SUCCESS");
28 28 label_INCO = new QLabel("INCONSISTENT");
29 29 label_NOTE = new QLabel("NOT_EXECUTABLE");
30 30 label_NOTI = new QLabel("NOT_IMPLEMENTED");
31 31 label_ERRO = new QLabel("ERROR");
32 32 label_CORR = new QLabel("CORRUPTED");
33 33 label_HK = new QLabel("TM_LFR_HK");
34 34 label_DUMP = new QLabel("TM_LFR_PARAMETER_DUMP");
35 35 //
36 36 label_SUCC_nb = new QLabel("-");
37 37 label_INCO_nb = new QLabel("-");
38 38 label_NOTE_nb = new QLabel("-");
39 39 label_NOTI_nb = new QLabel("-");
40 40 label_ERRO_nb = new QLabel("-");
41 41 label_CORR_nb = new QLabel("-");
42 42 label_HK_nb = new QLabel("-");
43 43 label_DUMP_nb = new QLabel("-");
44 44
45 45 //***********************
46 46 // TM_LFR_SCIENCE_NORMAL_
47 47 label_NORM_SWF_F0 = new QLabel("SWF_F0");
48 48 label_NORM_SWF_F1 = new QLabel("SWF_F1");
49 49 label_NORM_SWF_F2 = new QLabel("SWF_F2");
50 50 label_NORM_CWF_F3 = new QLabel("CWF_F3");
51 51 label_NORM_ASM_F0 = new QLabel("ASM_F0");
52 52 label_NORM_ASM_F1 = new QLabel("ASM_F1");
53 53 label_NORM_ASM_F2 = new QLabel("ASM_F2");
54 54 label_NORM_BP1_F0 = new QLabel("BP1_F0");
55 55 label_NORM_BP1_F1 = new QLabel("BP1_F1");
56 56 label_NORM_BP1_F2 = new QLabel("BP1_F2");
57 57 label_NORM_BP2_F0 = new QLabel("BP2_F0");
58 58 label_NORM_BP2_F1 = new QLabel("BP2_F1");
59 59 label_NORM_BP2_F2 = new QLabel("BP2_F2");
60 60 //
61 61 label_NORM_SWF_F0_nb = new QLabel("-");
62 62 label_NORM_SWF_F1_nb = new QLabel("-");
63 63 label_NORM_SWF_F2_nb = new QLabel("-");
64 64 label_NORM_CWF_F3_nb = new QLabel("-");
65 65 label_NORM_ASM_F0_nb = new QLabel("-");
66 66 label_NORM_ASM_F1_nb = new QLabel("-");
67 67 label_NORM_ASM_F2_nb = new QLabel("-");
68 68 label_NORM_BP1_F0_nb = new QLabel("-");
69 69 label_NORM_BP1_F1_nb = new QLabel("-");
70 70 label_NORM_BP1_F2_nb = new QLabel("-");
71 71 label_NORM_BP2_F0_nb = new QLabel("-");
72 72 label_NORM_BP2_F1_nb = new QLabel("-");
73 73 label_NORM_BP2_F2_nb = new QLabel("-");
74 74
75 75 //**********************
76 76 // TM_LFR_SCIENCE_BURST_
77 77 label_BURST_CWF_F2 = new QLabel("CWF_F2");
78 78 label_BURST_BP1_F0 = new QLabel("BP1_F0");
79 79 label_BURST_BP2_F0 = new QLabel("BP2_F0");
80 80 label_BURST_BP1_F1 = new QLabel("BP1_F1");
81 81 label_BURST_BP2_F1 = new QLabel("BP2_F1");
82 82 //
83 83 label_BURST_CWF_F2_nb = new QLabel("-");
84 84 label_BURST_BP1_F0_nb = new QLabel("-");
85 85 label_BURST_BP2_F0_nb = new QLabel("-");
86 86 label_BURST_BP1_F1_nb = new QLabel("-");
87 87 label_BURST_BP2_F1_nb = new QLabel("-");
88 88
89 89 //*********************
90 90 // TM_LFR_SCIENCE_SBM1_
91 91 label_SBM1_CWF_F1 = new QLabel("CWF_F1");
92 92 label_SBM1_BP1_F0 = new QLabel("BP1_F0");
93 93 label_SBM1_BP2_F0 = new QLabel("BP2_F0");
94 94 //
95 95 label_SBM1_CWF_F1_nb = new QLabel("-");
96 96 label_SBM1_BP1_F0_nb = new QLabel("-");
97 97 label_SBM1_BP2_F0_nb = new QLabel("-");
98 98
99 99 //*********************
100 100 // TM_LFR_SCIENCE_SBM2_
101 101 label_SBM2_CWF_F2 = new QLabel("CWF_F2");
102 102 label_SBM2_BP1_F0 = new QLabel("BP1_F0");
103 103 label_SBM2_BP2_F0 = new QLabel("BP2_F0");
104 104 label_SBM2_BP1_F1 = new QLabel("BP1_F1");
105 105 label_SBM2_BP2_F1 = new QLabel("BP2_F1");
106 106 //
107 107 label_SBM2_CWF_F2_nb = new QLabel("-");
108 108 label_SBM2_BP1_F0_nb = new QLabel("-");
109 109 label_SBM2_BP2_F0_nb = new QLabel("-");
110 110 label_SBM2_BP1_F1_nb = new QLabel("-");
111 111 label_SBM2_BP2_F1_nb = new QLabel("-");
112 112
113 113 //********
114 114 // LAST TM
115 115 label_PID = new QLabel("PID");
116 116 label_CAT = new QLabel("CAT");
117 117 label_TYP = new QLabel("Type");
118 118 label_SUB = new QLabel("Subtype");
119 119 label_SID = new QLabel("SID");
120 120 label_SIZ = new QLabel("Length");
121 121 label_coarse_time = new QLabel("Coarse time: ");
122 122 label_fine_time = new QLabel("Fine time: ");
123 123 //
124 124 label_PID_is = new QLabel("-");
125 125 label_CAT_is = new QLabel("-");
126 126 label_TYP_is = new QLabel("-");
127 127 label_SUB_is = new QLabel("-");
128 128 label_SID_is = new QLabel("-");
129 129 label_SIZ_is = new QLabel("-");
130 130 label_coarse_time_val = new QLabel("-");
131 131 label_fine_time_val = new QLabel("-");
132 132
133 133 // QPushButton
134 134 button_reset_stat = new QPushButton("reset stat");
135 135 button_chooseDir = new QPushButton("choose dir");
136 136
137 137 //QCheckBox
138 checkbox_record = new QCheckBox("Record packets");
139 138 checkbox_packetLog = new QCheckBox("Log packets");
139 checkbox_packetRecording = new QCheckBox("Store packets (RAW)");
140 checkbox_CSVPacketRecording = new QCheckBox("Store Packets (CSV)");
140 141 label_currentDir = new QLabel("Current Dir: -");
141 142
142 143 //**********
143 144 // QGroupBox
144 145 this->setStyleSheet("QGroupBox {border: 1px solid black; }");
145 146
146 147 groupbox_stat = new QGroupBox("TM_LFR_TC_EXE_");
147 148 groupbox_NORM = new QGroupBox("TM_LFR_SCIENCE_NORMAL_");
148 149 groupbox_BURST = new QGroupBox("TM_LFR_SCIENCE_BURST_");
149 150 groupbox_SBM1 = new QGroupBox("TM_LFR_SCIENCE_SBM1_");
150 151 groupbox_SBM2 = new QGroupBox("TM_LFR_SCIENCE_SBM2_");
151 152 groupbox_last = new QGroupBox("Last TM received");
152 153 groupbox_record = new QGroupBox("Packet recording");
153 154
154 155 readSettings();
155 156 logFile = new QFile();
156 157 packetLogFile = new QFile();
158 csvPacketRecordFile = new QFile();
157 159 logFileEn = false;
158 160 packetLogFileEn = false;
161 csvPacketRecordFileEn = false;
159 162
160 163 initConstants();
161 164
162 165 buildMonitor_NORM();
163 166 buildMonitor_BURST();
164 167 buildMonitor_SBM1();
165 168 buildMonitor_SBM2();
166 169 buildMonitor();
167 170
168 171 groupbox_stat->setFont(font);
169 172 groupbox_NORM->setFont(font);
170 173 groupbox_BURST->setFont(font);
171 174 groupbox_SBM1->setFont(font);
172 175 groupbox_SBM2->setFont(font);
173 176 groupbox_last->setFont(font);
174 177 groupbox_record->setFont(font);
175 178
176 179 connect(this->button_reset_stat, SIGNAL(clicked()), this, SLOT(resetStatistics()));
177 180 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
178 181
179 connect(this->checkbox_record, SIGNAL(stateChanged(int)), this, SLOT(storePackets(int)));
180 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)), this, SLOT(logPackets(int)));
182 connect(this->checkbox_packetLog, SIGNAL(stateChanged(int)),
183 this, SLOT(logPackets(int)));
184 connect(this->checkbox_packetRecording, SIGNAL(stateChanged(int)),
185 this, SLOT(storePackets(int)));
186 connect(this->checkbox_CSVPacketRecording, SIGNAL(stateChanged(int)),
187 this, SLOT(storeCSVPackets(int)));
181 188 }
182 189
183 190 void TMStatistics::initConstants()
184 191 {
185 192 UNKNOWN_nb = 0;
186 193
187 194 // TM_LFR_TC_EXE_
188 195 SUCC_nb = 0;
189 196 INCO_nb = 0;
190 197 NOTE_nb = 0;
191 198 NOTI_nb = 0;
192 199 ERRO_nb = 0;
193 200 CORR_nb = 0;
194 201 HK_nb = 0;
195 202 DUMP_nb = 0;
196 203
197 204 // TM_LFR_SCIENCE_NORMAL_
198 205 NORM_SWF_F0_nb = 0;
199 206 NORM_SWF_F1_nb = 0;
200 207 NORM_SWF_F2_nb = 0;
201 208 NORM_CWF_F3_nb = 0;
202 209 NORM_ASM_F0_nb = 0;
203 210 NORM_ASM_F1_nb = 0;
204 211 NORM_ASM_F2_nb = 0;
205 212 NORM_BP1_F0_nb = 0;
206 213 NORM_BP1_F1_nb = 0;
207 214 NORM_BP1_F2_nb = 0;
208 215 NORM_BP2_F0_nb = 0;
209 216 NORM_BP2_F1_nb = 0;
210 217 NORM_BP2_F2_nb = 0;
211 218
212 219 BURST_CWF_F2_nb = 0;
213 220 BURST_BP1_F0_nb = 0;
214 221 BURST_BP2_F0_nb = 0;
215 222 BURST_BP1_F1_nb = 0;
216 223 BURST_BP2_F1_nb = 0;
217 224 SBM1_CWF_F1_nb = 0;
218 225 SBM1_BP1_F0_nb = 0;
219 226 SBM1_BP2_F0_nb = 0;
220 227 SBM2_CWF_F2_nb = 0;
221 228 SBM2_BP1_F0_nb = 0;
222 229 SBM2_BP2_F0_nb = 0;
223 230 SBM2_BP1_F1_nb = 0;
224 231 SBM2_BP2_F1_nb = 0;
225 232 }
226 233
227 234 void TMStatistics::buildMonitor_NORM()
228 235 {
229 236 layout_NORM->addWidget(label_NORM_SWF_F0, 0, 0, 1, 1);
230 237 layout_NORM->addWidget(label_NORM_SWF_F1, 1, 0, 1, 1);
231 238 layout_NORM->addWidget(label_NORM_SWF_F2, 2, 0, 1, 1);
232 239 layout_NORM->addWidget(label_NORM_CWF_F3, 3, 0, 1, 1);
233 240 //
234 241 layout_NORM->addWidget(label_NORM_SWF_F0_nb, 0, 1, 1, 1);
235 242 layout_NORM->addWidget(label_NORM_SWF_F1_nb, 1, 1, 1, 1);
236 243 layout_NORM->addWidget(label_NORM_SWF_F2_nb, 2, 1, 1, 1);
237 244 layout_NORM->addWidget(label_NORM_CWF_F3_nb, 3, 1, 1, 1);
238 245 //
239 246 layout_NORM->addWidget(label_NORM_ASM_F0, 4, 0, 1, 1);
240 247 layout_NORM->addWidget(label_NORM_ASM_F1, 5, 0, 1, 1);
241 248 layout_NORM->addWidget(label_NORM_ASM_F2, 6, 0, 1, 1);
242 249 //
243 250 layout_NORM->addWidget(label_NORM_ASM_F0_nb, 4, 1, 1, 1);
244 251 layout_NORM->addWidget(label_NORM_ASM_F1_nb, 5, 1, 1, 1);
245 252 layout_NORM->addWidget(label_NORM_ASM_F2_nb, 6, 1, 1, 1);
246 253 //
247 254 layout_NORM->addWidget(label_NORM_BP1_F0, 0, 2, 1, 1);
248 255 layout_NORM->addWidget(label_NORM_BP1_F1, 1, 2, 1, 1);
249 256 layout_NORM->addWidget(label_NORM_BP1_F2, 2, 2, 1, 1);
250 257 layout_NORM->addWidget(label_NORM_BP2_F0, 3, 2, 1, 1);
251 258 layout_NORM->addWidget(label_NORM_BP2_F1, 4, 2, 1, 1);
252 259 layout_NORM->addWidget(label_NORM_BP2_F2, 5, 2, 1, 1);
253 260 //
254 261 layout_NORM->addWidget(label_NORM_BP1_F0_nb, 0, 3, 1, 1);
255 262 layout_NORM->addWidget(label_NORM_BP1_F1_nb, 1, 3, 1, 1);
256 263 layout_NORM->addWidget(label_NORM_BP1_F2_nb, 2, 3, 1, 1);
257 264 layout_NORM->addWidget(label_NORM_BP2_F0_nb, 3, 3, 1, 1);
258 265 layout_NORM->addWidget(label_NORM_BP2_F1_nb, 4, 3, 1, 1);
259 266 layout_NORM->addWidget(label_NORM_BP2_F2_nb, 5, 3, 1, 1);
260 267 }
261 268
262 269 void TMStatistics::buildMonitor_BURST()
263 270 {
264 271 layout_BURST->addWidget(label_BURST_CWF_F2, 0, 0, 1, 1);
265 272 layout_BURST->addWidget(label_BURST_BP1_F0, 1, 0, 1, 1);
266 273 layout_BURST->addWidget(label_BURST_BP2_F0, 2, 0, 1, 1);
267 274 layout_BURST->addWidget(label_BURST_BP1_F1, 3, 0, 1, 1);
268 275 layout_BURST->addWidget(label_BURST_BP2_F1, 4, 0, 1, 1);
269 276 //
270 277 layout_BURST->addWidget(label_BURST_CWF_F2_nb, 0, 1, 1, 1);
271 278 layout_BURST->addWidget(label_BURST_BP1_F0_nb, 1, 1, 1, 1);
272 279 layout_BURST->addWidget(label_BURST_BP2_F0_nb, 2, 1, 1, 1);
273 280 layout_BURST->addWidget(label_BURST_BP1_F1_nb, 3, 1, 1, 1);
274 281 layout_BURST->addWidget(label_BURST_BP2_F1_nb, 4, 1, 1, 1);
275 282 //
276 283 layout_BURST->setRowStretch(5, 1);
277 284 layout_BURST->setColumnStretch(2,1);
278 285 }
279 286
280 287 void TMStatistics::buildMonitor_SBM1()
281 288 {
282 289 layout_SBM1->addWidget(label_SBM1_CWF_F1, 0, 0, 1, 1);
283 290 layout_SBM1->addWidget(label_SBM1_BP1_F0, 1, 0, 1, 1);
284 291 layout_SBM1->addWidget(label_SBM1_BP2_F0, 2, 0, 1, 1);
285 292 //
286 293 layout_SBM1->addWidget(label_SBM1_CWF_F1_nb, 0, 1, 1, 1);
287 294 layout_SBM1->addWidget(label_SBM1_BP1_F0_nb, 1, 1, 1, 1);
288 295 layout_SBM1->addWidget(label_SBM1_BP2_F0_nb, 2, 1, 1, 1);
289 296 //
290 297 layout_SBM1->setRowStretch(3, 1);
291 298 layout_SBM1->setColumnStretch(2,1);
292 299 }
293 300
294 301 void TMStatistics::buildMonitor_SBM2()
295 302 {
296 303 layout_SBM2->addWidget(label_SBM2_CWF_F2, 0, 0, 1, 1);
297 304 layout_SBM2->addWidget(label_SBM2_BP1_F0, 1, 0, 1, 1);
298 305 layout_SBM2->addWidget(label_SBM2_BP2_F0, 2, 0, 1, 1);
299 306 layout_SBM2->addWidget(label_SBM2_BP1_F1, 3, 0, 1, 1);
300 307 layout_SBM2->addWidget(label_SBM2_BP2_F1, 4, 0, 1, 1);
301 308 //
302 309 layout_SBM2->addWidget(label_SBM2_CWF_F2_nb, 0, 1, 1, 1);
303 310 layout_SBM2->addWidget(label_SBM2_BP1_F0_nb, 1, 1, 1, 1);
304 311 layout_SBM2->addWidget(label_SBM2_BP2_F0_nb, 2, 1, 1, 1);
305 312 layout_SBM2->addWidget(label_SBM2_BP1_F1_nb, 3, 1, 1, 1);
306 313 layout_SBM2->addWidget(label_SBM2_BP2_F1_nb, 4, 1, 1, 1);
307 314 //
308 315 layout_SBM2->setRowStretch(5, 1);
309 316 layout_SBM2->setColumnStretch(2,1);
310 317 }
311 318
312 319 void TMStatistics::buildMonitor()
313 320 {
314 321 //***************
315 322 // TM_LFR_TC_EXE_
316 323 layout_stat->addWidget(label_SUCC, 0, 0, 1, 1);
317 324 layout_stat->addWidget(label_INCO, 1, 0, 1, 1);
318 325 layout_stat->addWidget(label_NOTE, 2, 0, 1, 1);
319 326 layout_stat->addWidget(label_NOTI, 3, 0, 1, 1);
320 327 layout_stat->addWidget(label_ERRO, 4, 0, 1, 1);
321 328 layout_stat->addWidget(label_CORR, 5, 0, 1, 1);
322 329 layout_stat->addWidget(label_HK, 6, 0, 1, 1);
323 330 layout_stat->addWidget(label_DUMP, 7, 0, 1, 1);
324 331 //
325 332 layout_stat->addWidget(label_SUCC_nb, 0, 1, 1, 1);
326 333 layout_stat->addWidget(label_INCO_nb, 1, 1, 1, 1);
327 334 layout_stat->addWidget(label_NOTE_nb, 2, 1, 1, 1);
328 335 layout_stat->addWidget(label_NOTI_nb, 3, 1, 1, 1);
329 336 layout_stat->addWidget(label_ERRO_nb, 4, 1, 1, 1);
330 337 layout_stat->addWidget(label_CORR_nb, 5, 1, 1, 1);
331 338 layout_stat->addWidget(label_HK_nb, 6, 1, 1, 1);
332 339 layout_stat->addWidget(label_DUMP_nb, 7, 1, 1, 1);
333 340
334 341 //********
335 342 // LAST TM
336 343 layout_last->addWidget(label_PID, 0, 0, 1, 1);
337 344 layout_last->addWidget(label_CAT, 0, 1, 1, 1);
338 345 layout_last->addWidget(label_TYP, 0, 2, 1, 1);
339 346 layout_last->addWidget(label_SUB, 0, 3, 1, 1);
340 347 layout_last->addWidget(label_SID, 0, 4, 1, 1);
341 348 layout_last->addWidget(label_SIZ, 0, 5, 1, 1);
342 349 //
343 350 layout_last->addWidget(label_PID_is, 1, 0, 1, 1);
344 351 layout_last->addWidget(label_CAT_is, 1, 1, 1, 1);
345 352 layout_last->addWidget(label_TYP_is, 1, 2, 1, 1);
346 353 layout_last->addWidget(label_SUB_is, 1, 3, 1, 1);
347 354 layout_last->addWidget(label_SID_is, 1, 4, 1, 1);
348 355 layout_last->addWidget(label_SIZ_is, 1, 5, 1, 1);
349 356 //
350 357 layout_last->addWidget(label_coarse_time, 2, 0, 1, 1);
351 358 layout_last->addWidget(label_coarse_time_val, 2, 1, 1, 1);
352 359 layout_last->addWidget(label_fine_time, 2, 2, 1, 1);
353 360 layout_last->addWidget(label_fine_time_val, 2, 3, 1, 1);
354 361 //
355 362 layout_last->addWidget(label_UNKNOWN, 3, 0, 1, 1);
356 363 layout_last->addWidget(label_UNKNOWN_nb, 3, 1, 1, 1);
357 364
358 layout_record->addWidget(checkbox_record);
359 365 layout_record->addWidget(checkbox_packetLog);
366 layout_record->addWidget(checkbox_packetRecording);
367 layout_record->addWidget(checkbox_CSVPacketRecording);
360 368 layout_record->addWidget(button_chooseDir);
361 369 layout_record->addWidget(label_currentDir);
362 370 layout_record->insertStretch(4, 1);
363 371
364 372 //***********
365 373 // groupboxes
366 374 groupbox_stat->setLayout(layout_stat);
367 375 groupbox_NORM->setLayout(layout_NORM);
368 376 groupbox_BURST->setLayout(layout_BURST);
369 377 groupbox_SBM1->setLayout(layout_SBM1);
370 378 groupbox_SBM2->setLayout(layout_SBM2);
371 379 groupbox_last->setLayout(layout_last);
372 380 groupbox_record->setLayout(layout_record);
373 381 //
374 382 mainLayout->addWidget(groupbox_stat, 0, 0, 1, 1);
375 383 mainLayout->addWidget(groupbox_NORM, 1, 0, 1, 1);
376 384 mainLayout->addWidget(groupbox_last, 2, 0, 1, 2);
377 385 mainLayout->addWidget(groupbox_SBM1, 0, 1, 1, 1);
378 386 mainLayout->addWidget(groupbox_SBM2, 0, 2, 1, 1);
379 387 mainLayout->addWidget(groupbox_BURST, 1, 1, 1, 1);
380 388 mainLayout->addWidget(groupbox_record, 1, 2, 1, 1);
381 389 mainLayout->addWidget(button_reset_stat, 3, 0, 1, 3);
382 390 mainLayout->setColumnStretch(3, 1);
383 391 mainLayout->setRowStretch(4, 1);
384 392 //
385 393 this->setLayout(mainLayout);
386 394 }
387 395
388 396 void TMStatistics::resetStatistics()
389 397 {
390 398 initConstants();
391 399 //
392 400 label_UNKNOWN_nb->setText("-");
393 401 label_SUCC_nb->setText("-");
394 402 label_INCO_nb->setText("-");
395 403 label_NOTE_nb->setText("-");
396 404 label_NOTI_nb->setText("-");
397 405 label_ERRO_nb->setText("-");
398 406 label_CORR_nb->setText("-");
399 407 label_HK_nb->setText("-");
400 408 label_DUMP_nb->setText("-");
401 409 //
402 410 label_NORM_SWF_F0_nb->setText("-");
403 411 label_NORM_SWF_F1_nb->setText("-");
404 412 label_NORM_SWF_F2_nb->setText("-");
405 413 label_NORM_CWF_F3_nb->setText("-");
406 414 label_NORM_ASM_F0_nb->setText("-");
407 415 //
408 416 label_BURST_CWF_F2_nb->setText("-");
409 417 //
410 418 label_SBM1_CWF_F1_nb->setText("-");
411 419 //
412 420 label_SBM2_CWF_F2_nb->setText("-");
413 421 //
414 422 label_PID_is->setText("-");
415 423 label_CAT_is->setText("-");
416 424 label_TYP_is->setText("-");
417 425 label_SUB_is->setText("-");
418 426 label_SID_is->setText("-");
419 427 label_SIZ_is->setText("-");
420 428 //
421 429 label_coarse_time_val->setText("-");
422 430 label_fine_time_val->setText("-");
423 431 }
424 432
425 433 void TMStatistics::updateStatistics(unsigned char pid, unsigned char cat,
426 434 unsigned char typ, unsigned char sub,
427 435 unsigned int sid, unsigned int length,
428 436 unsigned int coarse_t, unsigned int fine_t)
429 437 {
430 438 if (cat == TM_PACKET_CAT_TC_EXE)
431 439 {
432 440 if (typ == TM_TYPE_TC_EXE)
433 441 {
434 442 if (sub == TM_SUBTYPE_EXE_OK)
435 443 {
436 444 SUCC_nb = SUCC_nb + 1;
437 445 label_SUCC_nb->setText(QString::number(SUCC_nb));
438 446 }
439 447 else if (sub == TM_SUBTYPE_EXE_NOK)
440 448 {
441 449 if (sid == WRONG_APP_DATA)
442 450 {
443 451 INCO_nb = INCO_nb + 1;
444 452 label_INCO_nb->setText(QString::number(INCO_nb));
445 453 }
446 454 else if (sid == TC_NOT_EXE)
447 455 {
448 456 NOTE_nb = NOTE_nb + 1;
449 457 label_NOTE_nb->setText(QString::number(NOTE_nb));
450 458 }
451 459 else if (sid == FUNCT_NOT_IMPL)
452 460 {
453 461 NOTI_nb = NOTI_nb + 1;
454 462 label_NOTI_nb->setText(QString::number(NOTI_nb));
455 463 }
456 464 else if (sid == FAIL_DETECTED)
457 465 {
458 466 ERRO_nb = ERRO_nb + 1;
459 467 label_ERRO_nb->setText(QString::number(ERRO_nb));
460 468 }
461 469 else if (sid == CORRUPTED)
462 470 {
463 471 CORR_nb = CORR_nb + 1;
464 472 label_CORR_nb->setText(QString::number(CORR_nb));
465 473 }
466 474 else incrementUnknown();
467 475 }
468 476 else incrementUnknown();
469 477 }
470 478 else
471 479 incrementUnknown();
472 480 }
473 481 else if (cat == TM_PACKET_CAT_HK)
474 482 {
475 483 if (typ == TM_TYPE_HK)
476 484 {
477 485 if (sub == TM_SUBTYPE_HK)
478 486 if (sid == SID_HK)
479 487 {
480 488 HK_nb = HK_nb + 1;
481 489 label_HK_nb->setText(QString::number(HK_nb));
482 490 }
483 491 else
484 492 {
485 493 incrementUnknown();
486 494 }
487 495 else
488 496 {
489 497 incrementUnknown();
490 498 }
491 499 }
492 500 else
493 501 {
494 502 incrementUnknown();
495 503 }
496 504 }
497 505 else if (cat == TM_PACKET_CAT_PARAMETER_DUMP)
498 506 {
499 507 if (typ == TM_TYPE_PARAMETER_DUMP)
500 508 {
501 509 if (sub == TM_SUBTYPE_PARAMETER_DUMP)
502 510 if (sid == SID_PARAMETER_DUMP)
503 511 {
504 512 DUMP_nb = DUMP_nb + 1;
505 513 label_DUMP_nb->setText(QString::number(DUMP_nb));
506 514 }
507 515 else
508 516 {
509 517 incrementUnknown();
510 518 }
511 519 else
512 520 {
513 521 incrementUnknown();
514 522 }
515 523 }
516 524 else
517 525 {
518 526 incrementUnknown();
519 527 }
520 528 }
521 529 else if (cat == TM_PACKET_CAT_SCIENCE)
522 530 {
523 531 if (typ == TM_TYPE_LFR_SCIENCE)
524 532 {
525 533 if (sub == TM_SUBTYPE_SCIENCE)
526 534 {
527 535 if (sid == SID_NORM_CWF_F3)
528 536 {
529 537 NORM_CWF_F3_nb = NORM_CWF_F3_nb + 1;
530 538 label_NORM_CWF_F3_nb->setText(QString::number(NORM_CWF_F3_nb));
531 539 }
532 540 else if (sid == SID_BURST_CWF_F2)
533 541 {
534 542 BURST_CWF_F2_nb = BURST_CWF_F2_nb + 1;
535 543 label_BURST_CWF_F2_nb->setText(QString::number(BURST_CWF_F2_nb));
536 544 }
537 545 else if (sid == SID_NORM_SWF_F0)
538 546 {
539 547 NORM_SWF_F0_nb = NORM_SWF_F0_nb + 1;
540 548 label_NORM_SWF_F0_nb->setText(QString::number(NORM_SWF_F0_nb));
541 549 }
542 550 else if (sid == SID_NORM_SWF_F1)
543 551 {
544 552 NORM_SWF_F1_nb = NORM_SWF_F1_nb + 1;
545 553 label_NORM_SWF_F1_nb->setText(QString::number(NORM_SWF_F1_nb));
546 554 }
547 555 else if (sid == SID_NORM_SWF_F2)
548 556 {
549 557 NORM_SWF_F2_nb = NORM_SWF_F2_nb + 1;
550 558 label_NORM_SWF_F2_nb->setText(QString::number(NORM_SWF_F2_nb));
551 559 }
552 560 else if (sid == SID_NORM_ASM_F0)
553 561 {
554 562 NORM_ASM_F0_nb = NORM_ASM_F0_nb + 1;
555 563 label_NORM_ASM_F0_nb->setText(QString::number(NORM_ASM_F0_nb));
556 564 }
557 565 else if (sid == SID_SBM1_CWF_F1)
558 566 {
559 567 SBM1_CWF_F1_nb = SBM1_CWF_F1_nb + 1;
560 568 label_SBM1_CWF_F1_nb->setText(QString::number(SBM1_CWF_F1_nb));
561 569 }
562 570 else if (sid == SID_SBM2_CWF_F2)
563 571 {
564 572 SBM2_CWF_F2_nb = SBM2_CWF_F2_nb + 1;
565 573 label_SBM2_CWF_F2_nb->setText(QString::number(SBM2_CWF_F2_nb));
566 574 }
567 575 else
568 576 {
569 577 incrementUnknown();
570 578 }
571 579 }
572 580 }
573 581 else
574 582 {
575 583 incrementUnknown();
576 584 }
577 585 }
578 586 else
579 587 {
580 588 incrementUnknown();
581 589 }
582 590
583 591 label_PID_is->setText(QString::number(pid));
584 592 label_CAT_is->setText(QString::number(cat));
585 593 label_TYP_is->setText(QString::number(typ));
586 594 label_SUB_is->setText(QString::number(sub));
587 595 label_SID_is->setText(QString::number(sid));
588 596 label_SIZ_is->setText(QString::number(length));
589 597 label_coarse_time_val->setText(QString::number(coarse_t, 16));
590 598 label_fine_time_val->setText(QString::number(fine_t, 16));
591 599 }
592 600
593 601 void TMStatistics::incrementUnknown()
594 602 {
595 603 UNKNOWN_nb = UNKNOWN_nb + 1;
596 604 label_UNKNOWN_nb->setText(QString::number(UNKNOWN_nb));
597 605 }
598 606
599 607 unsigned char TMStatistics::getPID(TMPacketToRead *packet)
600 608 {
601 609 unsigned char pid = 0;
602 610
603 611 pid = ((packet->Value[4] & 0x07) << 4) + ((packet->Value[5] & 0xf0) >> 4);
604 612
605 613 return pid;
606 614 }
607 615
608 616 unsigned char TMStatistics::getCAT(TMPacketToRead *packet)
609 617 {
610 618 unsigned char cat = 0;
611 619
612 620 cat = packet->Value[5] & 0x0f;
613 621
614 622 return cat;
615 623 }
616 624
617 625 unsigned char TMStatistics::getSegmentationGroupingFlag(TMPacketToRead *packet)
618 626 {
619 627 unsigned char segmentationGroupingFlag;
620 628
621 629 segmentationGroupingFlag = (unsigned char) (packet->Value[6] >> 6);
622 630
623 631 return segmentationGroupingFlag;
624 632 }
625 633
626 634 unsigned char TMStatistics::getTYPE(TMPacketToRead *packet)
627 635 {
628 636 unsigned char typ = 0;
629 637
630 638 typ = packet->Value[11]; // TYPE
631 639
632 640 return typ;
633 641 }
634 642
635 643 unsigned char TMStatistics::getSUBTYPE(TMPacketToRead *packet)
636 644 {
637 645 unsigned char sub = 0;
638 646
639 647 sub = packet->Value[12]; // SUBTYPE
640 648
641 649 return sub;
642 650 }
643 651
644 652 unsigned int TMStatistics::getLENGTH(TMPacketToRead *packet)
645 653 {
646 654 unsigned int length = 0;
647 655
648 656 length = packet->Value[8] * 256 + packet->Value[9];
649 657
650 658 return length;
651 659 }
652 660
653 661 unsigned int TMStatistics::getCoarseTime(TMPacketToRead *packet)
654 662 {
655 663 unsigned int coarse = 0;
656 664
657 665 coarse = packet->Value[14] * pow(2, 24) + packet->Value[15] * pow(2, 16)
658 666 + packet->Value[16] * pow(2, 8) + packet->Value[17];
659 667
660 668 return coarse;
661 669 }
662 670
663 671 unsigned int TMStatistics::getFineTime(TMPacketToRead *packet)
664 672 {
665 673 unsigned int fine = 0;
666 674
667 675 fine = packet->Value[18] * pow(2, 8) + packet->Value[19];
668 676
669 677 return fine;
670 678 }
671 679
672 680 unsigned int TMStatistics::getSID(TMPacketToRead *packet,
673 681 unsigned char pid, unsigned char cat,
674 682 unsigned char typ, unsigned char sub)
675 683 {
676 684 unsigned int sid = 0;
677 QByteArray packetAsAnArray;
678 685 QString packetName;
679 686 QTime currentTime;
680 687 QDate currentDate;
688 unsigned int i;
681 689
682 690 if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_TC_EXE)
683 691 & (typ == TM_TYPE_TC_EXE) & (sub == TM_SUBTYPE_EXE_NOK))
684 692 sid = packet->Value[20] * 256 + packet->Value[21];
685 693 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_HK)
686 694 & (typ == TM_TYPE_HK) & (sub == TM_SUBTYPE_HK))
687 695 sid = SID_HK;
688 696 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_PARAMETER_DUMP)
689 697 & (typ == TM_TYPE_PARAMETER_DUMP) & (sub == TM_SUBTYPE_PARAMETER_DUMP))
690 698 sid = SID_PARAMETER_DUMP;
691 699 else if ((pid == TM_PACKET_PID_DEFAULT) & (cat == TM_PACKET_CAT_SCIENCE)
692 700 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
693 701 sid = packet->Value[20];
694 702 else if ((pid == TM_PACKET_PID_BURST_SBM1_SBM2) & (cat == TM_PACKET_CAT_SCIENCE)
695 703 & (typ == TM_TYPE_LFR_SCIENCE) & (sub == TM_SUBTYPE_LFR_SCIENCE))
696 704 sid = packet->Value[20];
697 705
698 706 if (logFileEn == true)
699 707 {
700 // packetAsAnArray = QByteArray::fromRawData((char *) &packet->Value[4], (packet->size-4));
701 708 logFile->write((char *) &packet->Value[4], (packet->size-4));
702 // *(this->logFileStrm)
703 // << packetAsAnArray;
704 709 }
705 710
711 currentTime = QTime::currentTime();
712 currentDate = QDate::currentDate();
713
706 714 if (packetLogFileEn == true)
707 715 {
708 currentTime = QTime::currentTime();
709 currentDate = QDate::currentDate();
710 716 packetName = getPacketName( typ, sub, sid);
711 717
712 718 *(this->packetLogFileStrm)
713 719 << QString::number(currentDate.year()) + " "
714 720 << QString::number(currentDate.month()) + " "
715 721 << QString::number(currentDate.day()) + " "
716 722 << QTime::currentTime().toString() + ":"
717 723 << QString::number(currentTime.msec()) + " "
718 724 << packetName
719 725 << " time = 0x " + QString::number(
720 726 (packet->Value[14] << 24) + (packet->Value[15] << 16) + (packet->Value[16] << 8) + packet->Value[17],
721 727 16).right(8)
722 728 << " " + QString::number( (packet->Value[18] << 8) + packet->Value[19], 16)
723 729 << endl;
724 730 }
725 731
732 if (csvPacketRecordFileEn == true)
733 {
734 *(this->packetLogFileStrm)
735 << QString::number(currentDate.year()) + " "
736 << QString::number(currentDate.month()) + " "
737 << QString::number(currentDate.day()) + " "
738 << QTime::currentTime().toString() + ":"
739 << QString::number(currentTime.msec());
740 for (i=0; i< packet->size; i++)
741 {
742 *(this->packetLogFileStrm)
743 << ", " + QString::number( packet->Value[i] );
744 }
745 *(this->packetLogFileStrm)
746 << endl;
747 }
748
726 749 return sid;
727 750 }
728 751
729 752 void TMStatistics::buildFileName()
730 753 {
731 754 QTime time;
732 755 QDate date;
733 756 QString dateTime;
734 757 QString prefix;
735 758
736 759 date = QDate::currentDate();
737 760 time = QTime::currentTime();
738 761
739 762 dateTime = QString::number( date.year() ) + "_"
740 763 + QString::number( date.month() ) + "_"
741 764 + QString::number( date.day() ) + "-"
742 765 + QString::number( time.hour() ) + "_"
743 766 + QString::number( time.minute() ) + "_"
744 767 + QString::number( time.second() );
745 768
746 769 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
747 770
748 771 if(this->logFile->isOpen()) this->logFile->close();
749 772 this->logFile->setFileName( prefix + "packet_record.data");
750 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
773 if(this->logFile->open(QIODevice::WriteOnly))
774 this->logFileStrm = new QTextStream(this->logFile);
751 775 }
752 776
753 777 void TMStatistics::buildPacketLogFileName()
754 778 {
755 779 QTime time;
756 780 QDate date;
757 781 QString dateTime;
758 782 QString prefix;
759 783
760 784 date = QDate::currentDate();
761 785 time = QTime::currentTime();
762 786
763 787 dateTime = QString::number( date.year() ) + "_"
764 788 + QString::number( date.month() ) + "_"
765 789 + QString::number( date.day() ) + "-"
766 790 + QString::number( time.hour() ) + "_"
767 791 + QString::number( time.minute() ) + "_"
768 792 + QString::number( time.second() );
769 793
770 794 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
771 795
772 796 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
773 797 this->packetLogFile->setFileName( prefix + "packet_log.data");
774 if(this->packetLogFile->open(QIODevice::WriteOnly)) this->packetLogFileStrm = new QTextStream(this->packetLogFile);
798 if(this->packetLogFile->open(QIODevice::WriteOnly))
799 this->packetLogFileStrm = new QTextStream(this->packetLogFile);
800 }
801
802 void TMStatistics::buildCSVPacketRecordFileName()
803 {
804 QTime time;
805 QDate date;
806 QString dateTime;
807 QString prefix;
808
809 date = QDate::currentDate();
810 time = QTime::currentTime();
811
812 dateTime = QString::number( date.year() ) + "_"
813 + QString::number( date.month() ) + "_"
814 + QString::number( date.day() ) + "-"
815 + QString::number( time.hour() ) + "_"
816 + QString::number( time.minute() ) + "_"
817 + QString::number( time.second() );
818
819 prefix = defaultStorageDirectory + "/" + dateTime + "_" ;
820
821 if(this->csvPacketRecordFile->isOpen()) this->csvPacketRecordFile->close();
822 this->csvPacketRecordFile->setFileName( prefix + "packet_record.csv");
823 if(this->csvPacketRecordFile->open(QIODevice::WriteOnly))
824 this->csvPacketRecordFileStrm = new QTextStream(this->csvPacketRecordFile);
775 825 }
776 826
777 827 void TMStatistics::storePackets( int state )
778 828 {
779 829 if (state == Qt::Checked)
780 830 {
781 831 buildFileName();
782 832 logFileEn = true;
783 833 }
784 834 else
785 835 {
786 836 if(this->logFile->isOpen()) this->logFile->close();
787 837 logFileEn = false;
788 838 }
789 839 }
790 840
841 void TMStatistics::storeCSVPackets( int state )
842 {
843 if (state == Qt::Checked)
844 {
845 buildCSVPacketRecordFileName();
846 csvPacketRecordFileEn = true;
847 }
848 else
849 {
850 if(this->csvPacketRecordFile->isOpen()) this->csvPacketRecordFile->close();
851 csvPacketRecordFileEn = false;
852 }
853 }
854
791 855 void TMStatistics::logPackets( int state )
792 856 {
793 857 if (state == Qt::Checked)
794 858 {
795 859 buildPacketLogFileName();
796 860 packetLogFileEn = true;
797 861 }
798 862 else
799 863 {
800 864 if(this->packetLogFile->isOpen()) this->packetLogFile->close();
801 865 packetLogFileEn = false;
802 866 }
803 867 }
804 868
805 869 void TMStatistics::chooseDir()
806 870 {
807 871 QString tmpDefaultStorageDirectory;
808 872 tmpDefaultStorageDirectory = QFileDialog::getExistingDirectory(this,
809 873 "choose the directory",
810 874 QDir::homePath(),
811 875 QFileDialog::ShowDirsOnly);
812 876
813 877 if( !tmpDefaultStorageDirectory.isEmpty() )
814 878 {
815 879 defaultStorageDirectory = tmpDefaultStorageDirectory;
816 880 }
817 881
818 882 label_currentDir->setText(defaultStorageDirectory);
819 883 }
820 884
821 885 void TMStatistics::closeEvent(QCloseEvent *event)
822 886 {
823 887 if(this->logFile->isOpen())
824 888 {
825 889 this->logFileStrm->flush();
826 890 this->logFile->waitForBytesWritten(3000);
827 891 this->logFile->close();
828 892 }
829 893 writeSettings();
830 894 event->accept();
831 895 }
832 896
833 897 QString TMStatistics::getPacketName(unsigned char type, unsigned char subtype, unsigned int sid)
834 898 {
835 899 QString packetName = "default";
836 900 if (type == TM_TYPE_TC_EXE)
837 901 {
838 902 if (subtype== TM_SUBTYPE_EXE_OK) packetName = "TM_LFR_TC_EXE_SUCCESS";
839 903 if (subtype == TM_SUBTYPE_EXE_NOK)
840 904 {
841 905 if (sid == WRONG_APP_DATA) packetName = "TM_LFR_TC_EXE_INCONSISTENT";
842 906 if (sid == TC_NOT_EXE) packetName = "TM_LFR_TC_EXE_NOT_EXECUTABLE";
843 907 if (sid == FUNCT_NOT_IMPL) packetName = "TM_LFR_TC_EXE_NOT_IMPLEMENTED";
844 908 if (sid == FAIL_DETECTED) packetName = "TM_LFR_TC_EXE_ERROR";
845 909 if (sid == CORRUPTED) packetName = "TM_LFR_TC_EXE_CORRUPTED";
846 910 }
847 911 }
848 912 if (type == TM_TYPE_HK)
849 913 {
850 914 if (subtype == TM_SUBTYPE_HK)
851 915 {
852 916 if (sid == SID_HK) packetName = "TM_LFR_HK";
853 917 if (sid == SID_PARAMETER_DUMP) packetName = "TM_LFR_PARAMETER_DUMP";
854 918 }
855 919 }
856 920 if (type == TM_TYPE_LFR_SCIENCE)
857 921 {
858 922 if (subtype == TM_SUBTYPE_SCIENCE)
859 923 {
860 924 if (sid == SID_NORM_SWF_F0) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F0";
861 925 if (sid == SID_NORM_SWF_F1) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F1";
862 926 if (sid == SID_NORM_SWF_F2) packetName = "TM_LFR_SCIENCE_NORMAL_SWF_F2";
863 927 if (sid == SID_NORM_CWF_F3) packetName = "TM_LFR_SCIENCE_NORMAL_CWF_F3";
864 928 if (sid == SID_BURST_CWF_F2) packetName = "TM_LFR_SCIENCE_BURST_CWF_F2";
865 929 if (sid == SID_SBM1_CWF_F1) packetName = "TM_LFR_SCIENCE_SBM1_CWF_F1";
866 930 if (sid == SID_SBM2_CWF_F2) packetName = "TM_LFR_SCIENCE_SBM2_CWF_F2";
867 931 if (sid == SID_NORM_ASM_F0) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F0";
868 932 if (sid == SID_NORM_ASM_F1) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F1";
869 933 if (sid == SID_NORM_ASM_F2) packetName = "TM_LFR_SCIENCE_NORMAL_ASM_F2";
870 934 if (sid == SID_NORM_BP1_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F0";
871 935 if (sid == SID_NORM_BP1_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F1";
872 936 if (sid == SID_NORM_BP1_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP1_F2";
873 937 if (sid == SID_NORM_BP2_F0) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F0";
874 938 if (sid == SID_NORM_BP2_F1) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F1";
875 939 if (sid == SID_NORM_BP2_F2) packetName = "TM_LFR_SCIENCE_NORMAL_BP2_F2";
876 940 if (sid == SID_BURST_BP1_F0) packetName = "TM_LFR_SCIENCE_BURST_BP1_F0";
877 941 if (sid == SID_BURST_BP2_F0) packetName = "TM_LFR_SCIENCE_BURST_BP2_F0";
878 942 if (sid == SID_BURST_BP1_F1) packetName = "TM_LFR_SCIENCE_BURST_BP1_F1";
879 943 if (sid == SID_BURST_BP2_F1) packetName = "TM_LFR_SCIENCE_BURST_BP2_F1";
880 944 if (sid == SID_SBM1_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP1_F0";
881 945 if (sid == SID_SBM1_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM1_BP2_F0";
882 946 if (sid == SID_SBM2_BP1_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F0";
883 947 if (sid == SID_SBM2_BP2_F0) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F0";
884 948 if (sid == SID_SBM2_BP1_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP1_F1";
885 949 if (sid == SID_SBM2_BP2_F1) packetName = "TM_LFR_SCIENCE_SBM2_BP2_F1";
886 950 }
887 951 }
888 952
889 953 return packetName;
890 954 }
891 955
892 956 void TMStatistics::readSettings()
893 957 {
894 958 QSettings settings("lpp", "lfrsgse");
895 959 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
896 960 label_currentDir->setText(defaultStorageDirectory);
897 961 }
898 962
899 963 void TMStatistics::writeSettings()
900 964 {
901 965 QSettings settings("lpp", "lfrsgse");
902 966 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
903 967 }
@@ -1,250 +1,256
1 1 #ifndef TMSTATISTICS_H
2 2 #define TMSTATISTICS_H
3 3
4 4 #include <QWidget>
5 5 #include <QLabel>
6 6 #include <QPushButton>
7 7 #include <QGridLayout>
8 8 #include <QVBoxLayout>
9 9 #include <QGroupBox>
10 10 #include <QFile>
11 11 #include <QTextStream>
12 12 #include <tmpackettoread.h>
13 13 #include <ccsds_types.h>
14 14 #include <QMap>
15 15 #include <QCheckBox>
16 16
17 17 #define STATISTICS_FONT_SIZE 9
18 18
19 19 class TMStatistics : public QWidget
20 20 {
21 21 Q_OBJECT
22 22 public:
23 23
24 24 explicit TMStatistics(QWidget *parent = 0);
25 25 void initConstants();
26 26 void buildMonitor_BURST();
27 27 void buildMonitor_SBM1();
28 28 void buildMonitor_SBM2();
29 29 void buildMonitor_NORM();
30 30 void buildMonitor();
31 31 void incrementUnknown();
32 32 //
33 33 void preProcessPacket(TMPacketToRead *packet);
34 34 unsigned char getPID(TMPacketToRead *packet);
35 35 unsigned char getCAT(TMPacketToRead *packet);
36 36 unsigned char getSegmentationGroupingFlag(TMPacketToRead *Packet_TM_LFR_HK_str);
37 37 unsigned char getTYPE(TMPacketToRead *packet);
38 38 unsigned char getSUBTYPE(TMPacketToRead *packet);
39 39 unsigned int getLENGTH(TMPacketToRead *packet);
40 40 unsigned int getCoarseTime(TMPacketToRead *packet);
41 41 unsigned int getFineTime(TMPacketToRead *packet);
42 42 unsigned int getSID(TMPacketToRead *packet, unsigned char pid, unsigned char cat, unsigned char typ, unsigned char sub);
43 43 QString getPacketName(unsigned char type, unsigned char subtype, unsigned int sid);
44 44 void closeEvent(QCloseEvent *event);
45 45
46 46 unsigned int UNKNOWN_nb;
47 47 unsigned int SUCC_nb;
48 48 unsigned int INCO_nb;
49 49 unsigned int NOTE_nb;
50 50 unsigned int NOTI_nb;
51 51 unsigned int ERRO_nb;
52 52 unsigned int CORR_nb;
53 53 unsigned int HK_nb;
54 54 unsigned int DUMP_nb;
55 55 unsigned int NORM_SWF_F0_nb;
56 56 unsigned int NORM_SWF_F1_nb;
57 57 unsigned int NORM_SWF_F2_nb;
58 58 unsigned int NORM_CWF_F3_nb;
59 59 unsigned int NORM_ASM_F0_nb;
60 60 unsigned int NORM_ASM_F1_nb;
61 61 unsigned int NORM_ASM_F2_nb;
62 62 unsigned int NORM_BP1_F0_nb;
63 63 unsigned int NORM_BP1_F1_nb;
64 64 unsigned int NORM_BP1_F2_nb;
65 65 unsigned int NORM_BP2_F0_nb;
66 66 unsigned int NORM_BP2_F1_nb;
67 67 unsigned int NORM_BP2_F2_nb;
68 68 //
69 69 unsigned int BURST_CWF_F2_nb;
70 70 unsigned int BURST_BP1_F0_nb;
71 71 unsigned int BURST_BP2_F0_nb;
72 72 unsigned int BURST_BP1_F1_nb;
73 73 unsigned int BURST_BP2_F1_nb;
74 74 unsigned int SBM1_CWF_F1_nb;
75 75 unsigned int SBM1_BP1_F0_nb;
76 76 unsigned int SBM1_BP2_F0_nb;
77 77 unsigned int SBM2_CWF_F2_nb;
78 78 unsigned int SBM2_BP1_F0_nb;
79 79 unsigned int SBM2_BP2_F0_nb;
80 80 unsigned int SBM2_BP1_F1_nb;
81 81 unsigned int SBM2_BP2_F1_nb;
82 82
83 83 //*******
84 84 // QLabel
85 85 QLabel *label_UNKNOWN;
86 86 QLabel *label_UNKNOWN_nb;
87 87 QLabel *label_currentDir;
88 88
89 89 //***************
90 90 // TM_LFR_TC_EXE_
91 91 QLabel *label_SUCC;
92 92 QLabel *label_INCO;
93 93 QLabel *label_NOTE;
94 94 QLabel *label_NOTI;
95 95 QLabel *label_ERRO;
96 96 QLabel *label_CORR;
97 97 QLabel *label_HK;
98 98 QLabel *label_DUMP;
99 99 //
100 100 QLabel *label_SUCC_nb;
101 101 QLabel *label_INCO_nb;
102 102 QLabel *label_NOTE_nb;
103 103 QLabel *label_NOTI_nb;
104 104 QLabel *label_ERRO_nb;
105 105 QLabel *label_CORR_nb;
106 106 QLabel *label_HK_nb;
107 107 QLabel *label_DUMP_nb;
108 108
109 109 //***********************
110 110 // TM_LFR_SCIENCE_NORMAL_
111 111 QLabel *label_NORM_SWF_F0;
112 112 QLabel *label_NORM_SWF_F1;
113 113 QLabel *label_NORM_SWF_F2;
114 114 QLabel *label_NORM_CWF_F3;
115 115 QLabel *label_NORM_ASM_F0;
116 116 QLabel *label_NORM_ASM_F1;
117 117 QLabel *label_NORM_ASM_F2;
118 118 QLabel *label_NORM_BP1_F0;
119 119 QLabel *label_NORM_BP1_F1;
120 120 QLabel *label_NORM_BP1_F2;
121 121 QLabel *label_NORM_BP2_F0;
122 122 QLabel *label_NORM_BP2_F1;
123 123 QLabel *label_NORM_BP2_F2;
124 124 //
125 125 QLabel *label_NORM_SWF_F0_nb;
126 126 QLabel *label_NORM_SWF_F1_nb;
127 127 QLabel *label_NORM_SWF_F2_nb;
128 128 QLabel *label_NORM_CWF_F3_nb;
129 129 QLabel *label_NORM_ASM_F0_nb;
130 130 QLabel *label_NORM_ASM_F1_nb;
131 131 QLabel *label_NORM_ASM_F2_nb;
132 132 QLabel *label_NORM_BP1_F0_nb;
133 133 QLabel *label_NORM_BP1_F1_nb;
134 134 QLabel *label_NORM_BP1_F2_nb;
135 135 QLabel *label_NORM_BP2_F0_nb;
136 136 QLabel *label_NORM_BP2_F1_nb;
137 137 QLabel *label_NORM_BP2_F2_nb;
138 138
139 139 //**********************
140 140 // TM_LFR_SCIENCE_BURST_
141 141 QLabel *label_BURST_CWF_F2;
142 142 QLabel *label_BURST_BP1_F0;
143 143 QLabel *label_BURST_BP2_F0;
144 144 QLabel *label_BURST_BP1_F1;
145 145 QLabel *label_BURST_BP2_F1;
146 146 //
147 147 QLabel *label_BURST_CWF_F2_nb;
148 148 QLabel *label_BURST_BP1_F0_nb;
149 149 QLabel *label_BURST_BP2_F0_nb;
150 150 QLabel *label_BURST_BP1_F1_nb;
151 151 QLabel *label_BURST_BP2_F1_nb;
152 152
153 153 //*********************
154 154 // TM_LFR_SCIENCE_SBM1_
155 155 QLabel *label_SBM1_CWF_F1;
156 156 QLabel *label_SBM1_BP1_F0;
157 157 QLabel *label_SBM1_BP2_F0;
158 158 //
159 159 QLabel *label_SBM1_CWF_F1_nb;
160 160 QLabel *label_SBM1_BP1_F0_nb;
161 161 QLabel *label_SBM1_BP2_F0_nb;
162 162
163 163 //*********************
164 164 // TM_LFR_SCIENCE_SBM2_
165 165 QLabel *label_SBM2_CWF_F2;
166 166 QLabel *label_SBM2_BP1_F0;
167 167 QLabel *label_SBM2_BP2_F0;
168 168 QLabel *label_SBM2_BP1_F1;
169 169 QLabel *label_SBM2_BP2_F1;
170 170 //
171 171 QLabel *label_SBM2_CWF_F2_nb;
172 172 QLabel *label_SBM2_BP1_F0_nb;
173 173 QLabel *label_SBM2_BP2_F0_nb;
174 174 QLabel *label_SBM2_BP1_F1_nb;
175 175 QLabel *label_SBM2_BP2_F1_nb;
176 176
177 177 //********
178 178 // LAST TM
179 179 QLabel *label_PID;
180 180 QLabel *label_CAT;
181 181 QLabel *label_TYP;
182 182 QLabel *label_SUB;
183 183 QLabel *label_SID;
184 184 QLabel *label_SIZ;
185 185 QLabel *label_coarse_time;
186 186 QLabel *label_fine_time;
187 187 //
188 188 QLabel *label_PID_is;
189 189 QLabel *label_CAT_is;
190 190 QLabel *label_TYP_is;
191 191 QLabel *label_SUB_is;
192 192 QLabel *label_SID_is;
193 193 QLabel *label_SIZ_is;
194 194 QLabel *label_coarse_time_val;
195 195 QLabel *label_fine_time_val;
196 196
197 197 // Layouts
198 198 QGridLayout *mainLayout;
199 199 QGridLayout *layout_stat; // TM stastictics
200 200 QGridLayout *layout_NORM; // TM_LFR_SCIENCE_NORMAL_
201 201 QGridLayout *layout_BURST; // TM_LFR_SCIENCE_BURST_
202 202 QGridLayout *layout_SBM1; // TM_LFR_SCIENCE_SBM1_
203 203 QGridLayout *layout_SBM2; // TM_LFR_SCIENCE_SBM2_
204 204 QGridLayout *layout_last; // last TM description
205 205 QVBoxLayout *layout_record;
206 206
207 207 // QPushButton
208 208 QPushButton *button_reset_stat;
209 209 QPushButton *button_chooseDir;
210 210
211 211 //QCheckBox
212 QCheckBox *checkbox_record;
212 QCheckBox *checkbox_packetRecording;
213 213 QCheckBox *checkbox_packetLog;
214 QCheckBox *checkbox_CSVPacketRecording;
214 215
215 216 QFile *logFile;
216 217 QFile *packetLogFile;
218 QFile *csvPacketRecordFile;
217 219 QTextStream *logFileStrm;
218 220 QTextStream *packetLogFileStrm;
221 QTextStream *csvPacketRecordFileStrm;
219 222 bool logFileEn;
220 223 bool packetLogFileEn;
224 bool csvPacketRecordFileEn;
221 225 QString defaultStorageDirectory;
222 226
223 227 // QGroupBox
224 228 QGroupBox *groupbox_stat;
225 229 QGroupBox *groupbox_NORM;
226 230 QGroupBox *groupbox_BURST;
227 231 QGroupBox *groupbox_SBM1;
228 232 QGroupBox *groupbox_SBM2;
229 233 QGroupBox *groupbox_last;
230 234 QGroupBox *groupbox_record;
231 235
232 236 signals:
233 237
234 238 public slots:
235 239 void resetStatistics();
236 240 void updateStatistics(unsigned char pid, unsigned char cat,
237 241 unsigned char typ, unsigned char sub,
238 242 unsigned int sid, unsigned int length,
239 243 unsigned int coarse_t, unsigned int fine_t);
240 244 void storePackets(int state);
245 void storeCSVPackets( int state );
241 246 void logPackets(int state);
242 247 void buildFileName();
243 248 void buildPacketLogFileName();
249 void buildCSVPacketRecordFileName();
244 250 void readSettings();
245 251 void writeSettings();
246 252 void chooseDir();
247 253
248 254 };
249 255
250 256 #endif // TMSTATISTICS_H
@@ -1,361 +1,367
1 1 #############################################################################
2 2 # Makefile for building: libwfdisplay.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Wed Jul 24 10:11:16 2013
3 # Generated by qmake (2.01a) (Qt 4.8.5) on: Tue Nov 12 11:17:03 2013
4 4 # Project: wfdisplay.pro
5 5 # Template: lib
6 # Command: /usr/bin/qmake-qt4 -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
6 # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro
7 7 #############################################################################
8 8
9 9 ####### Compiler, tools and options
10 10
11 11 CC = gcc
12 12 CXX = g++
13 13 DEFINES = -DWFDISPLAY_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14 14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
15 15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
16 16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Ilppmonplot -IQCustomPlot -I.
17 17 LINK = g++
18 18 LFLAGS = -Wl,-O1 -Wl,-z,relro -shared -Wl,-soname,libwfdisplay.so.1
19 19 LIBS = $(SUBLIBS) -L/usr/lib64 -lQtGui -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 = wfdisplay.cpp \
47 47 wfplot.cpp \
48 48 wfpage.cpp \
49 49 lppmonplot/lppmonplot.cpp \
50 50 QCustomPlot/qcustomplot.cpp \
51 51 pagespectra.cpp moc_wfdisplay.cpp \
52 52 moc_wfplot.cpp \
53 53 moc_wfpage.cpp \
54 54 moc_lppmonplot.cpp \
55 55 moc_qcustomplot.cpp \
56 56 moc_pagespectra.cpp
57 57 OBJECTS = wfdisplay.o \
58 58 wfplot.o \
59 59 wfpage.o \
60 60 lppmonplot.o \
61 61 qcustomplot.o \
62 62 pagespectra.o \
63 63 moc_wfdisplay.o \
64 64 moc_wfplot.o \
65 65 moc_wfpage.o \
66 66 moc_lppmonplot.o \
67 67 moc_qcustomplot.o \
68 68 moc_pagespectra.o
69 69 DIST = /usr/lib64/qt4/mkspecs/common/unix.conf \
70 70 /usr/lib64/qt4/mkspecs/common/linux.conf \
71 71 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
72 72 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
73 73 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
74 74 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
75 75 /usr/lib64/qt4/mkspecs/qconfig.pri \
76 76 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
77 77 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
78 78 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
79 79 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
80 80 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
81 81 /usr/lib64/qt4/mkspecs/features/release.prf \
82 82 /usr/lib64/qt4/mkspecs/features/default_post.prf \
83 /usr/lib64/qt4/mkspecs/features/shared.prf \
84 /usr/lib64/qt4/mkspecs/features/dll.prf \
83 85 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
84 86 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
85 87 /usr/lib64/qt4/mkspecs/features/qt.prf \
86 88 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
87 89 /usr/lib64/qt4/mkspecs/features/moc.prf \
88 90 /usr/lib64/qt4/mkspecs/features/resources.prf \
89 91 /usr/lib64/qt4/mkspecs/features/uic.prf \
90 92 /usr/lib64/qt4/mkspecs/features/yacc.prf \
91 93 /usr/lib64/qt4/mkspecs/features/lex.prf \
92 94 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
93 95 wfdisplay.pro
94 96 QMAKE_TARGET = wfdisplay
95 97 DESTDIR =
96 98 TARGET = libwfdisplay.so.1.0.0
97 99 TARGETA = libwfdisplay.a
98 100 TARGETD = libwfdisplay.so.1.0.0
99 101 TARGET0 = libwfdisplay.so
100 102 TARGET1 = libwfdisplay.so.1
101 103 TARGET2 = libwfdisplay.so.1.0
102 104
103 105 first: all
104 106 ####### Implicit rules
105 107
106 108 .SUFFIXES: .o .c .cpp .cc .cxx .C
107 109
108 110 .cpp.o:
109 111 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
110 112
111 113 .cc.o:
112 114 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
113 115
114 116 .cxx.o:
115 117 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
116 118
117 119 .C.o:
118 120 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
119 121
120 122 .c.o:
121 123 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
122 124
123 125 ####### Build rules
124 126
125 127 all: Makefile $(TARGET)
126 128
127 129 $(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
128 130 -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
129 131 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
130 132 -ln -s $(TARGET) $(TARGET0)
131 133 -ln -s $(TARGET) $(TARGET1)
132 134 -ln -s $(TARGET) $(TARGET2)
133 135
134 136
135 137
136 138 staticlib: $(TARGETA)
137 139
138 140 $(TARGETA): $(OBJECTS) $(OBJCOMP)
139 141 -$(DEL_FILE) $(TARGETA)
140 142 $(AR) $(TARGETA) $(OBJECTS)
141 143
142 144 Makefile: wfdisplay.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
143 145 /usr/lib64/qt4/mkspecs/common/linux.conf \
144 146 /usr/lib64/qt4/mkspecs/common/gcc-base.conf \
145 147 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf \
146 148 /usr/lib64/qt4/mkspecs/common/g++-base.conf \
147 149 /usr/lib64/qt4/mkspecs/common/g++-unix.conf \
148 150 /usr/lib64/qt4/mkspecs/qconfig.pri \
149 151 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri \
150 152 /usr/lib64/qt4/mkspecs/features/qt_functions.prf \
151 153 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
152 154 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
153 155 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
154 156 /usr/lib64/qt4/mkspecs/features/release.prf \
155 157 /usr/lib64/qt4/mkspecs/features/default_post.prf \
158 /usr/lib64/qt4/mkspecs/features/shared.prf \
159 /usr/lib64/qt4/mkspecs/features/dll.prf \
156 160 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
157 161 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
158 162 /usr/lib64/qt4/mkspecs/features/qt.prf \
159 163 /usr/lib64/qt4/mkspecs/features/unix/thread.prf \
160 164 /usr/lib64/qt4/mkspecs/features/moc.prf \
161 165 /usr/lib64/qt4/mkspecs/features/resources.prf \
162 166 /usr/lib64/qt4/mkspecs/features/uic.prf \
163 167 /usr/lib64/qt4/mkspecs/features/yacc.prf \
164 168 /usr/lib64/qt4/mkspecs/features/lex.prf \
165 169 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
166 170 /usr/lib64/libQtGui.prl \
167 171 /usr/lib64/libQtCore.prl
168 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
172 $(QMAKE) -o Makefile wfdisplay.pro
169 173 /usr/lib64/qt4/mkspecs/common/unix.conf:
170 174 /usr/lib64/qt4/mkspecs/common/linux.conf:
171 175 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
172 176 /usr/lib64/qt4/mkspecs/common/gcc-base-unix.conf:
173 177 /usr/lib64/qt4/mkspecs/common/g++-base.conf:
174 178 /usr/lib64/qt4/mkspecs/common/g++-unix.conf:
175 179 /usr/lib64/qt4/mkspecs/qconfig.pri:
176 180 /usr/lib64/qt4/mkspecs/modules/qt_webkit.pri:
177 181 /usr/lib64/qt4/mkspecs/features/qt_functions.prf:
178 182 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
179 183 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
180 184 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
181 185 /usr/lib64/qt4/mkspecs/features/release.prf:
182 186 /usr/lib64/qt4/mkspecs/features/default_post.prf:
187 /usr/lib64/qt4/mkspecs/features/shared.prf:
188 /usr/lib64/qt4/mkspecs/features/dll.prf:
183 189 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
184 190 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
185 191 /usr/lib64/qt4/mkspecs/features/qt.prf:
186 192 /usr/lib64/qt4/mkspecs/features/unix/thread.prf:
187 193 /usr/lib64/qt4/mkspecs/features/moc.prf:
188 194 /usr/lib64/qt4/mkspecs/features/resources.prf:
189 195 /usr/lib64/qt4/mkspecs/features/uic.prf:
190 196 /usr/lib64/qt4/mkspecs/features/yacc.prf:
191 197 /usr/lib64/qt4/mkspecs/features/lex.prf:
192 198 /usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
193 199 /usr/lib64/libQtGui.prl:
194 200 /usr/lib64/libQtCore.prl:
195 201 qmake: FORCE
196 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile wfdisplay.pro
202 @$(QMAKE) -o Makefile wfdisplay.pro
197 203
198 204 dist:
199 205 @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0
200 206 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h lppmonplot/lppmonplot.h QCustomPlot/qcustomplot.h pagespectra.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp lppmonplot/lppmonplot.cpp QCustomPlot/qcustomplot.cpp pagespectra.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0
201 207
202 208
203 209 clean:compiler_clean
204 210 -$(DEL_FILE) $(OBJECTS)
205 211 -$(DEL_FILE) *~ core *.core
206 212
207 213
208 214 ####### Sub-libraries
209 215
210 216 distclean: clean
211 217 -$(DEL_FILE) $(TARGET)
212 218 -$(DEL_FILE) $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA)
213 219 -$(DEL_FILE) Makefile
214 220
215 221
216 222 check: first
217 223
218 224 mocclean: compiler_moc_header_clean compiler_moc_source_clean
219 225
220 226 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
221 227
222 228 compiler_moc_header_make_all: moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp
223 229 compiler_moc_header_clean:
224 230 -$(DEL_FILE) moc_wfdisplay.cpp moc_wfplot.cpp moc_wfpage.cpp moc_lppmonplot.cpp moc_qcustomplot.cpp moc_pagespectra.cpp
225 231 moc_wfdisplay.cpp: wfdisplay_global.h \
226 232 wfpage.h \
227 233 wfplot.h \
228 234 wfdisplay_params.h \
229 235 wfdisplay.h
230 236 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp
231 237
232 238 moc_wfplot.cpp: wfplot.h
233 239 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp
234 240
235 241 moc_wfpage.cpp: wfdisplay_global.h \
236 242 wfplot.h \
237 243 wfdisplay_params.h \
238 244 wfpage.h
239 245 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp
240 246
241 247 moc_lppmonplot.cpp: lppmonplot/lppmonplot.h
242 248 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) lppmonplot/lppmonplot.h -o moc_lppmonplot.cpp
243 249
244 250 moc_qcustomplot.cpp: QCustomPlot/qcustomplot.h
245 251 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) QCustomPlot/qcustomplot.h -o moc_qcustomplot.cpp
246 252
247 253 moc_pagespectra.cpp: wfdisplay_global.h \
248 254 wfplot.h \
249 255 wfdisplay_params.h \
250 256 pagespectra.h
251 257 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) pagespectra.h -o moc_pagespectra.cpp
252 258
253 259 compiler_rcc_make_all:
254 260 compiler_rcc_clean:
255 261 compiler_image_collection_make_all: qmake_image_collection.cpp
256 262 compiler_image_collection_clean:
257 263 -$(DEL_FILE) qmake_image_collection.cpp
258 264 compiler_moc_source_make_all:
259 265 compiler_moc_source_clean:
260 266 compiler_uic_make_all:
261 267 compiler_uic_clean:
262 268 compiler_yacc_decl_make_all:
263 269 compiler_yacc_decl_clean:
264 270 compiler_yacc_impl_make_all:
265 271 compiler_yacc_impl_clean:
266 272 compiler_lex_make_all:
267 273 compiler_lex_clean:
268 274 compiler_clean: compiler_moc_header_clean
269 275
270 276 ####### Compile
271 277
272 278 wfdisplay.o: wfdisplay.cpp wfdisplay.h \
273 279 wfdisplay_global.h \
274 280 wfpage.h \
275 281 wfplot.h \
276 282 wfdisplay_params.h
277 283 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp
278 284
279 285 wfplot.o: wfplot.cpp wfplot.h \
280 286 wfdisplay_params.h
281 287 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp
282 288
283 289 wfpage.o: wfpage.cpp wfpage.h \
284 290 wfdisplay_global.h \
285 291 wfplot.h \
286 292 wfdisplay_params.h
287 293 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp
288 294
289 295 lppmonplot.o: lppmonplot/lppmonplot.cpp lppmonplot/lppmonplot.h
290 296 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o lppmonplot.o lppmonplot/lppmonplot.cpp
291 297
292 298 qcustomplot.o: QCustomPlot/qcustomplot.cpp QCustomPlot/qcustomplot.h
293 299 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qcustomplot.o QCustomPlot/qcustomplot.cpp
294 300
295 301 pagespectra.o: pagespectra.cpp pagespectra.h \
296 302 wfdisplay_global.h \
297 303 wfplot.h \
298 304 wfdisplay_params.h
299 305 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pagespectra.o pagespectra.cpp
300 306
301 307 moc_wfdisplay.o: moc_wfdisplay.cpp
302 308 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfdisplay.o moc_wfdisplay.cpp
303 309
304 310 moc_wfplot.o: moc_wfplot.cpp
305 311 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfplot.o moc_wfplot.cpp
306 312
307 313 moc_wfpage.o: moc_wfpage.cpp
308 314 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_wfpage.o moc_wfpage.cpp
309 315
310 316 moc_lppmonplot.o: moc_lppmonplot.cpp
311 317 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lppmonplot.o moc_lppmonplot.cpp
312 318
313 319 moc_qcustomplot.o: moc_qcustomplot.cpp
314 320 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qcustomplot.o moc_qcustomplot.cpp
315 321
316 322 moc_pagespectra.o: moc_pagespectra.cpp
317 323 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pagespectra.o moc_pagespectra.cpp
318 324
319 325 ####### Install
320 326
321 327 install_header: first FORCE
322 328 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ || $(MKDIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
323 329 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
324 330 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
325 331 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
326 332 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
327 333 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
328 334 -$(INSTALL_FILE) /opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay/pagespectra.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
329 335
330 336
331 337 uninstall_header: FORCE
332 338 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h
333 339 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h
334 340 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h
335 341 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h
336 342 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h
337 343 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/pagespectra.h
338 344 -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
339 345
340 346
341 347 install_target: first FORCE
342 348 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib64/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib64/
343 349 -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET)"
344 350 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)"
345 351 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)"
346 352 -$(SYMLINK) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)"
347 353
348 354 uninstall_target: FORCE
349 355 -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET)"
350 356 -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET0)"
351 357 -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET1)"
352 358 -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib64/$(TARGET2)"
353 359 -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib64/
354 360
355 361
356 362 install: install_header install_target FORCE
357 363
358 364 uninstall: uninstall_header uninstall_target FORCE
359 365
360 366 FORCE:
361 367
@@ -1,197 +1,197
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by QtCreator 2.8.0, 2013-10-08T12:38:17. -->
3 <!-- Written by QtCreator 2.8.1, 2013-11-12T11:16:00. -->
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 <value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
15 15 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
16 16 <value type="QString" key="language">Cpp</value>
17 17 <valuemap type="QVariantMap" key="value">
18 18 <value type="QString" key="CurrentPreferences">CppGlobal</value>
19 19 </valuemap>
20 20 </valuemap>
21 21 <valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
22 22 <value type="QString" key="language">QmlJS</value>
23 23 <valuemap type="QVariantMap" key="value">
24 24 <value type="QString" key="CurrentPreferences">QmlJSGlobal</value>
25 25 </valuemap>
26 26 </valuemap>
27 27 <value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
28 28 <value type="QByteArray" key="EditorConfiguration.Codec">System</value>
29 29 <value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
30 30 <value type="int" key="EditorConfiguration.IndentSize">4</value>
31 31 <value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32 32 <value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
33 33 <value type="int" key="EditorConfiguration.PaddingMode">1</value>
34 34 <value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
35 35 <value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
36 36 <value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
37 37 <value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
38 38 <value type="int" key="EditorConfiguration.TabSize">8</value>
39 39 <value type="bool" key="EditorConfiguration.UseGlobal">true</value>
40 40 <value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
41 41 <value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
42 42 <value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
43 43 <value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
44 44 <value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
45 45 </valuemap>
46 46 </data>
47 47 <data>
48 48 <variable>ProjectExplorer.Project.PluginSettings</variable>
49 49 <valuemap type="QVariantMap"/>
50 50 </data>
51 51 <data>
52 52 <variable>ProjectExplorer.Project.Target.0</variable>
53 53 <valuemap type="QVariantMap">
54 54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
55 55 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop-Qt 4.8.2 in PATH (System)</value>
56 56 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{5289e843-9ef2-45ce-88c6-ad27d8e08def}</value>
57 57 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
58 58 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
59 59 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
60 60 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
61 61 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
62 62 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
63 63 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
64 64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
65 65 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
66 66 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
67 67 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
68 68 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
69 69 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
70 70 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
71 71 </valuemap>
72 72 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
73 73 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
74 74 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
75 75 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
76 76 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
77 77 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
78 78 <value type="QString">-w</value>
79 79 <value type="QString">-r</value>
80 80 </valuelist>
81 81 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
82 82 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w </value>
83 83 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
84 84 </valuemap>
85 85 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
86 86 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Build</value>
87 87 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
88 88 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
89 89 </valuemap>
90 90 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
91 91 <valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
92 92 <value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
93 93 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Make</value>
94 94 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
95 95 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
96 96 <valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
97 97 <value type="QString">-w</value>
98 98 <value type="QString">-r</value>
99 99 </valuelist>
100 100 <value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
101 101 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-r -w clean</value>
102 102 <value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
103 103 </valuemap>
104 104 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
105 105 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Clean</value>
106 106 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
107 107 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
108 108 </valuemap>
109 109 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
110 110 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
111 111 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
112 112 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
113 113 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
114 114 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
115 115 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
116 116 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value>
117 117 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
118 118 </valuemap>
119 119 <value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
120 120 <valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
121 121 <valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
122 122 <value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
123 123 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
124 124 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
125 125 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
126 126 </valuemap>
127 127 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
128 128 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">No deployment</value>
129 129 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
130 130 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
131 131 </valuemap>
132 132 <value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
133 133 <valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
134 134 <valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
135 135 <value type="bool" key="Analyzer.Project.UseGlobal">true</value>
136 136 <valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
137 137 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
138 138 <value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
139 139 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
140 140 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
141 141 <value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
142 142 <value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
143 143 <value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
144 144 <value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
145 145 <value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
146 146 <valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
147 147 <value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
148 148 <value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
149 149 <valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
150 150 <value type="int">0</value>
151 151 <value type="int">1</value>
152 152 <value type="int">2</value>
153 153 <value type="int">3</value>
154 154 <value type="int">4</value>
155 155 <value type="int">5</value>
156 156 <value type="int">6</value>
157 157 <value type="int">7</value>
158 158 <value type="int">8</value>
159 159 <value type="int">9</value>
160 160 <value type="int">10</value>
161 161 <value type="int">11</value>
162 162 <value type="int">12</value>
163 163 <value type="int">13</value>
164 164 <value type="int">14</value>
165 165 </valuelist>
166 166 <value type="int" key="PE.EnvironmentAspect.Base">2</value>
167 167 <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
168 168 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
169 169 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
170 170 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
171 171 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
172 172 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
173 173 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
174 174 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
175 175 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
176 176 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
177 177 <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
178 178 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
179 179 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
180 180 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">false</value>
181 181 </valuemap>
182 182 <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
183 183 </valuemap>
184 184 </data>
185 185 <data>
186 186 <variable>ProjectExplorer.Project.TargetCount</variable>
187 187 <value type="int">1</value>
188 188 </data>
189 189 <data>
190 190 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
191 191 <value type="QByteArray">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
192 192 </data>
193 193 <data>
194 194 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
195 195 <value type="int">14</value>
196 196 </data>
197 197 </qtcreator>
@@ -1,594 +1,602
1 1 #include "wfpage.h"
2 2 #include <stdio.h>
3 3
4 4 WFPage::WFPage(QWidget *parent) :
5 5 QMainWindow(parent)
6 6 {
7 7
8 8 pageTitle = "default";
9 9 wfPlot_v = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
10 10 wfPlot_e1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
11 11 wfPlot_e2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
12 12 wfPlot_b1 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
13 13 wfPlot_b2 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
14 14 wfPlot_b3 = new WFPlot(this, WFDISPLAY_XMAX, WFDISPLAY_YMAX);
15 15 //
16 16 wfPlot_v->customPlot->setTitle("v");
17 17 wfPlot_e1->customPlot->setTitle("e1");
18 18 wfPlot_e2->customPlot->setTitle("e2");
19 19 wfPlot_b1->customPlot->setTitle("b1");
20 20 wfPlot_b2->customPlot->setTitle("b2");
21 21 wfPlot_b3->customPlot->setTitle("b3");
22 22 //
23 23 /*mainLayout = new QGridLayout;
24 24 mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1);
25 25 mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1);
26 26 mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1);
27 27 mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1);
28 28 mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1);
29 29 mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);*/
30 30 //
31 31 dockV = NULL;
32 32 dockE1 = NULL;
33 33 dockE2 = NULL;
34 34 dockB1 = NULL;
35 35 dockB2 = NULL;
36 36 dockB3 = NULL;
37 37
38 38 titleWidgetV = new QWidget();
39 39 titleWidgetE1 = new QWidget();
40 40 titleWidgetE2 = new QWidget();
41 41 titleWidgetB1 = new QWidget();
42 42 titleWidgetB2 = new QWidget();
43 43 titleWidgetB3 = new QWidget();
44 44
45 45 logFileName = new QLabel();
46 46 logFile = new QFile();
47 47
48 48 logFileEn = false;
49 49 storageEnabled = false;
50 50 allowDataStorage = false;
51 51
52 52 indexOffset = 0;
53 53
54 54 createToolBar();
55 55 readSettings();
56 56 }
57 57
58 58 void WFPage::displayOnPlot(short *data, unsigned char num)
59 59 {
60 60 fillDataBuffer( data, num );
61 61
62 62 switch(num){
63 63 case 0:
64 64 wfPlot_v->displayOnPlot(data, DEFAULT_SIZE);
65 65 break;
66 66
67 67 case 1:
68 68 wfPlot_e1->displayOnPlot(data, DEFAULT_SIZE);
69 69 break;
70 70
71 71 case 2:
72 72 wfPlot_e2->displayOnPlot(data, DEFAULT_SIZE);
73 73 break;
74 74
75 75 case 3:
76 76 wfPlot_b1->displayOnPlot(data, DEFAULT_SIZE);
77 77 break;
78 78
79 79 case 4:
80 80 wfPlot_b2->displayOnPlot(data, DEFAULT_SIZE);
81 81 break;
82 82
83 83 case 5:
84 84 wfPlot_b3->displayOnPlot(data, DEFAULT_SIZE);
85 85 break;
86 86 }
87 87 }
88 88
89 89 void WFPage::initDataBuffer()
90 90 {
91 91 for (unsigned int i = 0; i < DEFAULT_SIZE; i++)
92 92 {
93 93 dataBuffer[i].clear();
94 94 }
95 95 }
96 96
97 97 void WFPage::fillDataBuffer(short *data, unsigned char num)
98 98 {
99 99 if ( (storageEnabled == true) | (allowDataStorage==true) ) // store data in buffers
100 100 {
101 101 switch(num) {
102 102
103 103 case 0 :
104 104 initDataBuffer();
105 105 for (unsigned int i=0; i<DEFAULT_SIZE; i++)
106 106 {
107 107 dataBuffer[i].append(QByteArray::number(data[i]));
108 108 dataBuffer[i].append(' ');
109 109 }
110 110 allowDataStorage = true;
111 111 break;
112 112
113 113 case 1 :
114 114 case 2 :
115 115 case 3 :
116 116 case 4 :
117 117 if (allowDataStorage==true) {
118 118 for (unsigned int i=0; i<DEFAULT_SIZE; i++)
119 119 {
120 120 dataBuffer[i].append(QByteArray::number(data[i]));
121 121 dataBuffer[i].append(' ');
122 122 }
123 123 }
124 124 break;
125 125
126 126 case 5 :
127 127 if (allowDataStorage==true) {
128 128 for (unsigned int i=0; i<DEFAULT_SIZE; i++)
129 129 {
130 130 dataBuffer[i].append(QByteArray::number(data[i]));
131 131 dataBuffer[i].append(' ');
132 132 }
133 133 storeDataBuffer();
134 134 allowDataStorage = false;
135 135 }
136 136 break;
137 137
138 138 default:
139 139 break;
140 140
141 141 }
142 142 }
143 143 }
144 144
145 145 void WFPage::storeDataBuffer()
146 146 {
147 147 for (int i = 0; i < DEFAULT_SIZE; i++ )
148 148 {
149 149 *(this->logFileStrm) << (i + indexOffset) << " " << dataBuffer[i] << endl;
150 150 }
151 151 indexOffset = indexOffset + DEFAULT_SIZE;
152 152 if (storageEnabled == false){
153 153 this->logFileStrm->flush();
154 154 this->logFile->waitForBytesWritten(3000);
155 155 this->logFile->close();
156 156 }
157 157 }
158 158
159 159 void WFPage::createToolBar()
160 160 {
161 161 radio_v = new QRadioButton(tr("v"));
162 162 radio_e1 = new QRadioButton(tr("e1"));
163 163 radio_e2 = new QRadioButton(tr("e2"));
164 164 radio_b1 = new QRadioButton(tr("b1"));
165 165 radio_b2 = new QRadioButton(tr("b2"));
166 166 radio_b3 = new QRadioButton(tr("b3"));
167 167 radio_tabify = new QRadioButton(tr("tabify"));
168 168
169 169 radio_v->setAutoExclusive(false);
170 170 radio_e1->setAutoExclusive(false);
171 171 radio_e2->setAutoExclusive(false);
172 172 radio_b1->setAutoExclusive(false);
173 173 radio_b2->setAutoExclusive(false);
174 174 radio_b3->setAutoExclusive(false);
175 175 radio_tabify->setAutoExclusive(false);
176 176
177 177 button_selectAll = new QPushButton(tr("select all"));
178 178 button_storeWfrm = new QPushButton(tr("REC"));
179 179 button_chooseDir = new QPushButton(tr("choose dir"));
180 180
181 181 myToolBar = new QToolBar("select");
182 182
183 183 myToolBar->addWidget(radio_v);
184 184 myToolBar->addWidget(radio_e1);
185 185 myToolBar->addWidget(radio_e2);
186 186 myToolBar->addWidget(radio_b1);
187 187 myToolBar->addWidget(radio_b2);
188 188 myToolBar->addWidget(radio_b3);
189 189 myToolBar->addSeparator();
190 190 myToolBar->addWidget(button_selectAll);
191 191 myToolBar->addWidget(radio_tabify);
192 192 myToolBar->addSeparator();
193 193 myToolBar->addWidget(button_storeWfrm);
194 194 myToolBar->addWidget(button_chooseDir);
195 195
196 196 addToolBar(Qt::LeftToolBarArea, myToolBar);
197 197
198 198 radio_tabify->setChecked(true);
199 199
200 200 connect(this->radio_v, SIGNAL(clicked(bool)), this, SLOT(actionRadioV(bool)));
201 201 connect(this->radio_e1, SIGNAL(clicked(bool)), this, SLOT(actionRadioE1(bool)));
202 202 connect(this->radio_e2, SIGNAL(clicked(bool)), this, SLOT(actionRadioE2(bool)));
203 203 connect(this->radio_b1, SIGNAL(clicked(bool)), this, SLOT(actionRadioB1(bool)));
204 204 connect(this->radio_b2, SIGNAL(clicked(bool)), this, SLOT(actionRadioB2(bool)));
205 205 connect(this->radio_b3, SIGNAL(clicked(bool)), this, SLOT(actionRadioB3(bool)));
206 206 connect(this->button_selectAll, SIGNAL(clicked()), this, SLOT(selectAll()));
207 207 connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks()));
208 208 connect(this->button_storeWfrm, SIGNAL(clicked()), this, SLOT(storeWfrm()));
209 209 connect(this->button_chooseDir, SIGNAL(clicked()), this, SLOT(chooseDir()));
210 210 }
211 211
212 212 void WFPage::actionRadioV(bool state)
213 213 {
214 214 if (state == true)
215 215 {
216 216 if (dockV == NULL)
217 217 {
218 218 dockV = new QDockWidget("V", this);
219 219 dockV->setWidget(wfPlot_v);
220 220 dockV->setTitleBarWidget(titleWidgetV);
221 221 }
222 222 }
223 223 else
224 224 {
225 225 this->removeDockWidget(dockV);
226 226 }
227 227 organizeDocks();
228 228 }
229 229
230 230 void WFPage::actionRadioE1(bool state)
231 231 {
232 232 if (state == true)
233 233 {
234 234 if (dockE1 == NULL)
235 235 {
236 236 dockE1 = new QDockWidget("E1", this);
237 237 dockE1->setWidget(wfPlot_e1);
238 238 dockE1->setTitleBarWidget(titleWidgetE1);
239 239 }
240 240 }
241 241 else
242 242 {
243 243 this->removeDockWidget(dockE1);
244 244 }
245 245 organizeDocks();
246 246 }
247 247
248 248 void WFPage::actionRadioE2(bool state)
249 249 {
250 250 if (state == true)
251 251 {
252 252 if (dockE2 == NULL)
253 253 {
254 254 dockE2 = new QDockWidget("E2", this);
255 255 dockE2->setWidget(wfPlot_e2);
256 256 dockE2->setTitleBarWidget(titleWidgetE2);
257 257 }
258 258 }
259 259 else
260 260 {
261 261 this->removeDockWidget(dockE2);
262 262 }
263 263 organizeDocks();
264 264 }
265 265
266 266 void WFPage::actionRadioB1(bool state)
267 267 {
268 268 if (state == true)
269 269 {
270 270 if (dockB1 == NULL)
271 271 {
272 272 dockB1 = new QDockWidget("B1", this);
273 273 dockB1->setWidget(wfPlot_b1);
274 274 dockB1->setTitleBarWidget(titleWidgetB1);
275 275 }
276 276 }
277 277 else
278 278 {
279 279 this->removeDockWidget(dockB1);
280 280 }
281 281 organizeDocks();
282 282 }
283 283
284 284 void WFPage::actionRadioB2(bool state)
285 285 {
286 286 if (state == true)
287 287 {
288 288 if (dockB2 == NULL)
289 289 {
290 290 dockB2 = new QDockWidget("B2", this);
291 291 dockB2->setWidget(wfPlot_b2);
292 292 dockB2->setTitleBarWidget(titleWidgetB2);
293 293 }
294 294 }
295 295 else
296 296 {
297 297 this->removeDockWidget(dockB2);
298 298 }
299 299 organizeDocks();
300 300 }
301 301
302 302 void WFPage::actionRadioB3(bool state)
303 303 {
304 304 if (state == true)
305 305 {
306 306 if (dockB3 == NULL)
307 307 {
308 308 dockB3 = new QDockWidget("B3", this);
309 309 dockB3->setWidget(wfPlot_b3);
310 310 dockB3->setTitleBarWidget(titleWidgetB3);
311 311 }
312 312 }
313 313 else
314 314 {
315 315 this->removeDockWidget(dockB3);
316 316 }
317 317 organizeDocks();
318 318 }
319 319
320 320 void WFPage::buildDockList()
321 321 {
322 322 dockList.clear();
323 323
324 324 if (radio_v->isChecked())
325 325 {
326 326 dockList.append(dockV);
327 327 removeDockWidget(dockV);
328 328 }
329 329 if (radio_e1->isChecked())
330 330 {
331 331 dockList.append(dockE1);
332 332 removeDockWidget(dockE1);
333 333 }
334 334 if (radio_e2->isChecked())
335 335 {
336 336 dockList.append(dockE2);
337 337 removeDockWidget(dockE2);
338 338 }
339 339 if (radio_b1->isChecked())
340 340 {
341 341 dockList.append(dockB1);
342 342 removeDockWidget(dockB1);
343 343 }
344 344 if (radio_b2->isChecked())
345 345 {
346 346 dockList.append(dockB2);
347 347 removeDockWidget(dockB2);
348 348 }
349 349 if (radio_b3->isChecked())
350 350 {
351 351 dockList.append(dockB3);
352 352 removeDockWidget(dockB3);
353 353 }
354 354 }
355 355
356 356 void WFPage::organizeDocks()
357 357 {
358 358 if (radio_tabify->isChecked())
359 359 {
360 360 tabify();
361 361 }
362 362 else
363 363 {
364 364 unTabify();
365 365 }
366 366 wfPlot_v->resize(wfPlot_v->minimumSizeHint());
367 367 wfPlot_e1->resize(wfPlot_e1->minimumSizeHint());
368 368 wfPlot_e2->resize(wfPlot_e2->minimumSizeHint());
369 369 wfPlot_b1->resize(wfPlot_b1->minimumSizeHint());
370 370 wfPlot_b2->resize(wfPlot_b2->minimumSizeHint());
371 371 wfPlot_b3->resize(wfPlot_b3->minimumSizeHint());
372 372 this->resize(this->minimumSizeHint());
373 373 }
374 374
375 375 void WFPage::unTabify()
376 376 {
377 377 buildDockList();
378 378
379 379 switch(dockList.size())
380 380 {
381 381 case 0:
382 382 break;
383 383 case 1:
384 384 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
385 385 dockList.at(0)->show();
386 386 break;
387 387 case 2:
388 388 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
389 389 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
390 390 dockList.at(0)->show();
391 391 dockList.at(1)->show();
392 392 break;
393 393 case 3:
394 394 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
395 395 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
396 396 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
397 397 dockList.at(0)->show();
398 398 dockList.at(1)->show();
399 399 dockList.at(2)->show();
400 400 break;
401 401 case 4:
402 402 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
403 403 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
404 404 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
405 405 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
406 406 dockList.at(0)->show();
407 407 dockList.at(1)->show();
408 408 dockList.at(2)->show();
409 409 dockList.at(3)->show();
410 410 break;
411 411 case 5:
412 412 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
413 413 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
414 414 addDockWidget(Qt::TopDockWidgetArea, dockList.at(2));
415 415 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
416 416 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4));
417 417 dockList.at(0)->show();
418 418 dockList.at(1)->show();
419 419 dockList.at(2)->show();
420 420 dockList.at(3)->show();
421 421 dockList.at(4)->show();
422 422 break;
423 423 case 6:
424 424 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
425 425 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
426 426 addDockWidget(Qt::TopDockWidgetArea, dockList.at(2));
427 427 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
428 428 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4));
429 429 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(5));
430 430 dockList.at(0)->show();
431 431 dockList.at(1)->show();
432 432 dockList.at(2)->show();
433 433 dockList.at(3)->show();
434 434 dockList.at(4)->show();
435 435 dockList.at(5)->show();
436 436 break;
437 437 default:
438 438 break;
439 439 }
440 440 }
441 441
442 442 void WFPage::tabify()
443 443 {
444 444 buildDockList();
445 445
446 446 switch(dockList.size())
447 447 {
448 448 case 0:
449 449 break;
450 450 case 1:
451 451 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
452 452 dockList.at(0)->show();
453 453 break;
454 454 case 2:
455 455 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
456 456 tabifyDockWidget(dockList.at(0), dockList.at(1));
457 457 dockList.at(0)->show();
458 458 dockList.at(1)->show();
459 459 break;
460 460 case 3:
461 461 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
462 462 tabifyDockWidget(dockList.at(0), dockList.at(1));
463 463 tabifyDockWidget(dockList.at(1), dockList.at(2));
464 464 dockList.at(0)->show();
465 465 dockList.at(1)->show();
466 466 dockList.at(2)->show();
467 467 break;
468 468 case 4:
469 469 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
470 470 tabifyDockWidget(dockList.at(0), dockList.at(1));
471 471 tabifyDockWidget(dockList.at(1), dockList.at(2));
472 472 tabifyDockWidget(dockList.at(2), dockList.at(3));
473 473 dockList.at(0)->show();
474 474 dockList.at(1)->show();
475 475 dockList.at(2)->show();
476 476 dockList.at(3)->show();
477 477 break;
478 478 case 5:
479 479 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
480 480 tabifyDockWidget(dockList.at(0), dockList.at(1));
481 481 tabifyDockWidget(dockList.at(1), dockList.at(2));
482 482 tabifyDockWidget(dockList.at(2), dockList.at(3));
483 483 tabifyDockWidget(dockList.at(3), dockList.at(4));
484 484 dockList.at(0)->show();
485 485 dockList.at(1)->show();
486 486 dockList.at(2)->show();
487 487 dockList.at(3)->show();
488 488 dockList.at(4)->show();
489 489 break;
490 490 case 6:
491 491 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
492 492 tabifyDockWidget(dockList.at(0), dockList.at(1));
493 493 tabifyDockWidget(dockList.at(1), dockList.at(2));
494 494 tabifyDockWidget(dockList.at(2), dockList.at(3));
495 495 tabifyDockWidget(dockList.at(3), dockList.at(4));
496 496 tabifyDockWidget(dockList.at(4), dockList.at(5));
497 497 dockList.at(0)->show();
498 498 dockList.at(1)->show();
499 499 dockList.at(2)->show();
500 500 dockList.at(3)->show();
501 501 dockList.at(4)->show();
502 502 dockList.at(5)->show();
503 503 break;
504 504 default:
505 505 break;
506 506 }
507 507 }
508 508
509 509 void WFPage::selectAll()
510 510 {
511 511 radio_v->click();
512 512 radio_e1->click();
513 513 radio_e2->click();
514 514 radio_b1->click();
515 515 radio_b2->click();
516 516 radio_b3->click();
517 517 }
518 518
519 519 void WFPage::storeWfrm()
520 520 {
521 521 if (logFileEn == false)
522 522 {
523 523 buildFileName();
524 524 indexOffset = 0;
525 525 button_storeWfrm->setText(tr("STOP"));
526 526 logFileEn = true;
527 527 }
528 528 else
529 529 {
530 530 // disable storage
531 531 storageEnabled = false;
532 532 button_storeWfrm->setText(tr("REC"));
533 533 logFileEn = false;
534 534 }
535 535 }
536 536
537 537 void WFPage::buildFileName()
538 538 {
539 QString date;
540 QString time;
539 QTime time;
540 QDate date;
541 QString dateTime;
541 542 QString prefix;
542 543
543 date = QDate::currentDate().toString();
544 time = QTime::currentTime().toString();
544 date = QDate::currentDate();
545 time = QTime::currentTime();
545 546
546 prefix = defaultStorageDirectory + "/" + date + "_" + time + "_" + pageTitle ;
547 dateTime = QString::number( date.year() ) + "_"
548 + QString::number( date.month() ) + "_"
549 + QString::number( date.day() ) + "-"
550 + QString::number( time.hour() ) + "_"
551 + QString::number( time.minute() ) + "_"
552 + QString::number( time.second() );
553
554 prefix = defaultStorageDirectory + "/" + dateTime + "_" + pageTitle ;
547 555
548 556 if(this->logFile->isOpen()) this->logFile->close();
549 557 this->logFile->setFileName( prefix + ".data");
550 558 if(this->logFile->open(QIODevice::WriteOnly)) this->logFileStrm = new QTextStream(this->logFile);
551 559
552 560 *(this->logFileStrm) << "time V E1 E2 B1 B2 B3 " << endl;
553 561
554 562 storageEnabled = true;
555 563
556 564 }
557 565
558 566 void WFPage::logFileEnDisable(bool state)
559 567 {
560 568 if(state==true)
561 569 {
562 570 this->logFileEn = true;
563 571 }
564 572 else if(state==false)
565 573 {
566 574 this->logFileEn = false;
567 575 }
568 576 }
569 577
570 578 void WFPage::closeEvent(QCloseEvent *event)
571 579 {
572 580 writeSettings();
573 581 event->accept();
574 582 }
575 583
576 584 void WFPage::readSettings()
577 585 {
578 586 QSettings settings("lpp", "lfrsgse");
579 587 defaultStorageDirectory = settings.value("defaultStorageDirectory", QDir::homePath()).toString();
580 588 }
581 589
582 590 void WFPage::writeSettings()
583 591 {
584 592 QSettings settings("lpp", "lfrsgse");
585 593 settings.setValue("defaultStorageDirectory", defaultStorageDirectory);
586 594 }
587 595
588 596 void WFPage::chooseDir()
589 597 {
590 598 defaultStorageDirectory = QFileDialog::getExistingDirectory(this,
591 599 "choose the directory",
592 600 QDir::homePath(),
593 601 QFileDialog::ShowDirsOnly);
594 602 }
General Comments 0
You need to be logged in to leave comments. Login now