##// END OF EJS Templates
QDockWidgets used for the waveform displays...
admin@pc-p-leroy3.LAB-LPP.LOCAL -
r34:b602c6989615 default
parent child
Show More
@@ -1,6 +1,6
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-06-28T14:42:54. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-07-03T17:10:59. -->
4 4 <qtcreator>
5 5 <data>
6 6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -1,21 +1,21
1 1 #############################################################################
2 2 # Makefile for building: lfrsgse
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jun 28 15:45:35 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 10:56:56 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 -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro
7 7 #############################################################################
8 8
9 9 ####### Compiler, tools and options
10 10
11 11 CC = gcc
12 12 CXX = g++
13 DEFINES = -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT $(DEFINES)
13 DEFINES = -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
14 CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
15 CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
16 16 INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I.
17 17 LINK = g++
18 LFLAGS = -Wl,-O1 -Wl,-z,relro
18 LFLAGS =
19 19 LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread
20 20 AR = ar cqs
21 21 RANLIB =
@@ -100,8 +100,9 DIST = /usr/lib64/qt4/mkspecs/c
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 /usr/lib64/qt4/mkspecs/features/release.prf \
103 /usr/lib64/qt4/mkspecs/features/debug.prf \
104 104 /usr/lib64/qt4/mkspecs/features/default_post.prf \
105 /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \
105 106 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
106 107 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
107 108 /usr/lib64/qt4/mkspecs/features/qt.prf \
@@ -143,6 +144,7 all: Makefile $(TARGET)
143 144
144 145 $(TARGET): $(OBJECTS)
145 146 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
147 { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true
146 148
147 149 Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \
148 150 /usr/lib64/qt4/mkspecs/common/linux.conf \
@@ -156,8 +158,9 Makefile: gselesia.pro /usr/lib64/qt4/m
156 158 /usr/lib64/qt4/mkspecs/features/qt_config.prf \
157 159 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
158 160 /usr/lib64/qt4/mkspecs/features/default_pre.prf \
159 /usr/lib64/qt4/mkspecs/features/release.prf \
161 /usr/lib64/qt4/mkspecs/features/debug.prf \
160 162 /usr/lib64/qt4/mkspecs/features/default_post.prf \
163 /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \
161 164 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
162 165 /usr/lib64/qt4/mkspecs/features/warn_on.prf \
163 166 /usr/lib64/qt4/mkspecs/features/qt.prf \
@@ -172,7 +175,7 Makefile: gselesia.pro /usr/lib64/qt4/m
172 175 /usr/lib64/libQtCore.prl \
173 176 /usr/lib64/libQtGui.prl \
174 177 /usr/lib64/libQtNetwork.prl
175 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
178 $(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro
176 179 /usr/lib64/qt4/mkspecs/common/unix.conf:
177 180 /usr/lib64/qt4/mkspecs/common/linux.conf:
178 181 /usr/lib64/qt4/mkspecs/common/gcc-base.conf:
@@ -185,8 +188,9 Makefile: gselesia.pro /usr/lib64/qt4/m
185 188 /usr/lib64/qt4/mkspecs/features/qt_config.prf:
186 189 /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
187 190 /usr/lib64/qt4/mkspecs/features/default_pre.prf:
188 /usr/lib64/qt4/mkspecs/features/release.prf:
191 /usr/lib64/qt4/mkspecs/features/debug.prf:
189 192 /usr/lib64/qt4/mkspecs/features/default_post.prf:
193 /usr/lib64/qt4/mkspecs/features/declarative_debug.prf:
190 194 /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
191 195 /usr/lib64/qt4/mkspecs/features/warn_on.prf:
192 196 /usr/lib64/qt4/mkspecs/features/qt.prf:
@@ -202,7 +206,7 Makefile: gselesia.pro /usr/lib64/qt4/m
202 206 /usr/lib64/libQtGui.prl:
203 207 /usr/lib64/libQtNetwork.prl:
204 208 qmake: FORCE
205 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ -o Makefile gselesia.pro
209 @$(QMAKE) -spec /usr/lib64/qt4/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile gselesia.pro
206 210
207 211 dist:
208 212 @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0
@@ -1,6 +1,6
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-06-28T17:29:18. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-07-04T12:07:39. -->
4 4 <qtcreator>
5 5 <data>
6 6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -52,7 +52,7
52 52 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
53 53 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
54 54 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value>
55 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
55 <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
56 56 <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
57 57 <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
58 58 <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
@@ -63,7 +63,7
63 63 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
64 64 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
65 65 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
66 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">true</value>
66 <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value>
67 67 <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
68 68 <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
69 69 </valuemap>
@@ -97,11 +97,11
97 97 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
98 98 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
99 99 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value>
101 101 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102 102 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
103 103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gse_lesia</value>
105 105 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
106 106 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
107 107 </valuemap>
@@ -147,11 +147,11
147 147 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
148 148 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
149 149 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
150 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value>
150 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Debug</value>
151 151 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
152 152 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
153 153 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
154 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GSE_LESIA/gselesia</value>
154 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gselesia-build-desktop-Qt_4_8_3_in_PATH__System__Debug</value>
155 155 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
156 156 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
157 157 </valuemap>
@@ -9,13 +9,6 MainWindow::MainWindow(QWidget *parent)
9 9 totalOfBytes = 0;
10 10 totalOfPackets = 0;
11 11
12 analyserSGSEServerTC = new QTcpServer();
13 analyserSGSEServerTM = new QTcpServer();
14
15 socketTC = NULL;
16 socketTM = NULL;
17 socketEchoServer = new QTcpSocket();
18
19 12 //****
20 13 // XML
21 14 // xml handlers
@@ -37,6 +30,13 MainWindow::MainWindow(QWidget *parent)
37 30
38 31 this->setLayout(UI->layout());
39 32
33 analyserSGSEServerTC = new QTcpServer();
34 analyserSGSEServerTM = new QTcpServer();
35
36 socketTC = NULL;
37 socketTM = NULL;
38 socketEchoServer = new QTcpSocket();
39
40 40 connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts()));
41 41 connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts()));
42 42 connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer()));
@@ -1,7 +1,6
1 1 #ifndef MAINWINDOW_H
2 2 #define MAINWINDOW_H
3 3
4 #include <QtGui/QMainWindow>
5 4 #include <QTcpServer>
6 5 #include <QTcpSocket>
7 6 #include <QXmlSimpleReader>
@@ -14,15 +14,15 MainWindowUI::MainWindowUI(QWidget *pare
14 14
15 15 console = new QTextEdit();
16 16
17 spwTabWidget = new QTabWidget;
18 spwTabWidgetPage0 = new QWidget;
19 spwTabWidgetPage1 = new QWidget;
20 spwTabWidgetPage2 = new QWidget;
21 spwTabWidgetPage3 = new QWidget;
22 spwTabWidgetPage4 = new QWidget;
23 spwTabWidgetPage5 = new QWidget; // WFRM BURST
24 spwTabWidgetPage6 = new QWidget; // WFRM SBM1
25 spwTabWidgetPage7 = new QWidget; // WFRM SBM2
17 spwTabWidget = new QTabWidget();
18 spwTabWidgetPage0 = new QWidget();
19 spwTabWidgetPage1 = new QWidget();
20 spwTabWidgetPage2 = new QWidget();
21 spwTabWidgetPage3 = new QWidget();
22 spwTabWidgetPage4 = new QWidget();
23 spwTabWidgetPage5 = new QWidget(); // WFRM BURST
24 spwTabWidgetPage6 = new QWidget(); // WFRM SBM1
25 spwTabWidgetPage7 = new QWidget(); // WFRM SBM2
26 26
27 27 tmStatistics = new TMStatistics;
28 28
@@ -95,9 +95,9 MainWindowUI::MainWindowUI(QWidget *pare
95 95 spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics"));
96 96 spwTabWidget->addTab(spwTabWidgetPage3, tr("HK"));
97 97 spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM"));
98 spwTabWidget->addTab(spwTabWidgetPage5, tr("WFRM BURST"));
99 spwTabWidget->addTab(spwTabWidgetPage6, tr("WFRM SBM1"));
100 spwTabWidget->addTab(spwTabWidgetPage7, tr("WFRM SBM2"));
98 spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST"));
99 spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1"));
100 spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2"));
101 101 spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms"));
102 102
103 103 spwTabWidgetPage0->setLayout(mainLayout);
@@ -105,9 +105,9 MainWindowUI::MainWindowUI(QWidget *pare
105 105 spwTabWidgetPage2->setLayout(wfDisplay->layout());
106 106 spwTabWidgetPage3->setLayout(hkDisplay->layout());
107 107 spwTabWidgetPage4->setLayout(lfrSpectrogam->layout());
108 spwTabWidgetPage5->setLayout(wfPageBurst->layout());
109 spwTabWidgetPage6->setLayout(wfPageSBM1->layout());
110 spwTabWidgetPage7->setLayout(wfPageSBM2->layout());
108 //spwTabWidgetPage5->setLayout(wfPageBurst->layout());
109 //spwTabWidgetPage6->setLayout(wfPageSBM1->layout());
110 //spwTabWidgetPage7->setLayout(wfPageSBM2->layout());
111 111
112 112 layout_overallLayout->addWidget(spwTabWidget);
113 113
@@ -12,8 +12,9
12 12 #include <QTextEdit>
13 13 #include <QTabWidget>
14 14
15 #include <wfdisplay.h>
16
15 17 #include "tmstatistics.h"
16 #include "wfdisplay.h"
17 18 #include "hkdisplay.h"
18 19 #include "lfrspectrogram.h"
19 20
@@ -7,7 +7,7 TMStatistics::TMStatistics(QWidget *pare
7 7 {
8 8 // Create Fonts
9 9 QFont font;
10 //font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
10 font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light);
11 11
12 12 label_UNKNOWN = new QLabel("UNKNOWN");
13 13 label_UNKNOWN_nb = new QLabel("-");
@@ -1,6 +1,6
1 1 #############################################################################
2 2 # Makefile for building: libwfdisplay.so.1.0.0
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Fri Jun 28 15:43:38 2013
3 # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 10:42:53 2013
4 4 # Project: wfdisplay.pro
5 5 # Template: lib
6 6 # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro
@@ -185,7 +185,7 qmake: FORCE
185 185
186 186 dist:
187 187 @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0
188 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h params.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0
188 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.h wfdisplay_global.h wfplot.h wfpage.h wfdisplay_params.h .tmp/wfdisplay1.0.0/ && $(COPY_FILE) --parents wfdisplay.cpp wfplot.cpp wfpage.cpp .tmp/wfdisplay1.0.0/ && (cd `dirname .tmp/wfdisplay1.0.0` && $(TAR) wfdisplay1.0.0.tar wfdisplay1.0.0 && $(COMPRESS) wfdisplay1.0.0.tar) && $(MOVE) `dirname .tmp/wfdisplay1.0.0`/wfdisplay1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/wfdisplay1.0.0
189 189
190 190
191 191 clean:compiler_clean
@@ -213,15 +213,16 compiler_moc_header_clean:
213 213 moc_wfdisplay.cpp: wfdisplay_global.h \
214 214 wfpage.h \
215 215 wfplot.h \
216 params.h \
216 wfdisplay_params.h \
217 217 wfdisplay.h
218 218 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp
219 219
220 220 moc_wfplot.cpp: wfplot.h
221 221 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp
222 222
223 moc_wfpage.cpp: wfplot.h \
224 params.h \
223 moc_wfpage.cpp: wfdisplay_global.h \
224 wfplot.h \
225 wfdisplay_params.h \
225 226 wfpage.h
226 227 /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp
227 228
@@ -248,16 +249,17 wfdisplay.o: wfdisplay.cpp wfdisplay.h \
248 249 wfdisplay_global.h \
249 250 wfpage.h \
250 251 wfplot.h \
251 params.h
252 wfdisplay_params.h
252 253 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp
253 254
254 255 wfplot.o: wfplot.cpp wfplot.h \
255 params.h
256 wfdisplay_params.h
256 257 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp
257 258
258 259 wfpage.o: wfpage.cpp wfpage.h \
260 wfdisplay_global.h \
259 261 wfplot.h \
260 params.h
262 wfdisplay_params.h
261 263 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp
262 264
263 265 moc_wfdisplay.o: moc_wfdisplay.cpp
@@ -276,12 +278,16 install_header: first FORCE
276 278 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
277 279 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
278 280 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
281 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfplot.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
282 -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_params.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
279 283
280 284
281 285 uninstall_header: FORCE
282 286 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h
283 287 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h
284 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h
288 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfpage.h
289 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfplot.h
290 -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_params.h
285 291 -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/
286 292
287 293
@@ -8,10 +8,10 WFDisplay::WFDisplay(QWidget *parent) :
8 8
9 9 spwTabWidget = new QTabWidget;
10 10
11 page_f0 = new WFPage;
12 page_f1 = new WFPage;
13 page_f2 = new WFPage;
14 page_f3 = new WFPage;
11 page_f0 = new WFPage();
12 page_f1 = new WFPage();
13 page_f2 = new WFPage();
14 page_f3 = new WFPage();
15 15
16 16 spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)"));
17 17 spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz"));
@@ -6,8 +6,8
6 6 #include <QWidget>
7 7 #include <QGridLayout>
8 8 #include <QVBoxLayout>
9 #include <QTabWidget>
9 10 #include <wfpage.h>
10 #include <QTabWidget>
11 11
12 12 #define XMAX 2048
13 13
@@ -24,14 +24,16 HEADERS += wfdisplay.h\
24 24 wfdisplay_global.h \
25 25 wfplot.h \
26 26 wfpage.h \
27 params.h
27 wfdisplay_params.h
28 28
29 29
30 30 header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay
31 31 header.files = \
32 32 wfdisplay.h \
33 33 wfdisplay_global.h \
34 wfpage.h
34 wfpage.h \
35 wfplot.h \
36 wfdisplay_params.h
35 37
36 38 target.path = $$[QT_INSTALL_LIBS]
37 39 isEmpty(target.path) {
@@ -1,6 +1,6
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE QtCreatorProject>
3 <!-- Written by Qt Creator 2.4.1, 2013-06-28T13:26:54. -->
3 <!-- Written by Qt Creator 2.4.1, 2013-07-04T12:07:00. -->
4 4 <qtcreator>
5 5 <data>
6 6 <variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -97,11 +97,11
97 97 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
98 98 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
99 99 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Release</value>
100 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Debug</value>
101 101 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
102 102 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value>
103 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
104 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay-build-desktop-Qt_4_8_3_in_PATH__System__Debug</value>
105 105 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
106 106 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
107 107 </valuemap>
@@ -147,11 +147,11
147 147 <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
148 148 <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
149 149 <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
150 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.2 in PATH (System) Debug</value>
150 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value>
151 151 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
152 152 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
153 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
154 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_PAUL/wfdisplay/wfdisplay</value>
153 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
154 <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay-build-desktop-Qt_4_8_3_in_PATH__System__Release</value>
155 155 <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value>
156 156 <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value>
157 157 </valuemap>
@@ -232,15 +232,16
232 232 <value type="int">13</value>
233 233 <value type="int">14</value>
234 234 </valuelist>
235 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
236 <value type="int" key="ProjectExplorer.CustomExecutableRunConfiguration.BaseEnvironmentBase">2</value>
237 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
238 <value type="bool" key="ProjectExplorer.CustomExecutableRunConfiguration.UseTerminal">false</value>
239 <valuelist type="QVariantList" key="ProjectExplorer.CustomExecutableRunConfiguration.UserEnvironmentChanges"/>
240 <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
241 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
235 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">wfdisplay</value>
242 236 <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
243 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
237 <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration</value>
238 <value type="int" key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase">2</value>
239 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
240 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">wfdisplay.pro</value>
241 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
242 <value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
243 <valuelist type="QVariantList" key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges"/>
244 <value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
244 245 <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
245 246 <value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
246 247 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
@@ -255,7 +256,7
255 256 </data>
256 257 <data>
257 258 <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
258 <value type="QString">{2e58a81f-9962-4bba-ae6b-760177f0656c}</value>
259 <value type="QString">{cdbf9cdc-1e84-406e-889b-c4feef49e75c}</value>
259 260 </data>
260 261 <data>
261 262 <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
@@ -1,7 +1,7
1 1 #include "wfpage.h"
2 2
3 3 WFPage::WFPage(QWidget *parent) :
4 QWidget(parent)
4 QMainWindow(parent)
5 5 {
6 6 wfPlot_v = new WFPlot();
7 7 wfPlot_e1 = new WFPlot();
@@ -17,15 +17,24 WFPage::WFPage(QWidget *parent) :
17 17 wfPlot_b2->customPlot->setTitle("b2");
18 18 wfPlot_b3->customPlot->setTitle("b3");
19 19 //
20 mainLayout = new QGridLayout;
20 /*mainLayout = new QGridLayout;
21 21 mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1);
22 22 mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1);
23 23 mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1);
24 24 mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1);
25 25 mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1);
26 mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);
26 mainLayout->addWidget(wfPlot_b3, 1, 2, 1, 1);*/
27 27 //
28 this->setLayout(mainLayout);
28 dockV = NULL;
29 dockE1 = NULL;
30 dockE2 = NULL;
31 dockB1 = NULL;
32 dockB2 = NULL;
33 dockB3 = NULL;
34
35 createToolBar();
36 //
37 //this->setLayout(mainLayout);
29 38 }
30 39
31 40 void WFPage::displayOnPlot(short *data, unsigned char num)
@@ -51,3 +60,352 void WFPage::displayOnPlot(short *data,
51 60 break;
52 61 }
53 62 }
63
64 void WFPage::createDockWindows()
65 {
66 dockV = new QDockWidget(tr("V"), this);
67 dockE1 = new QDockWidget(tr("E1"), this);
68 dockE2 = new QDockWidget(tr("E2"), this);
69 dockB1 = new QDockWidget(tr("B1"), this);
70 dockB2 = new QDockWidget(tr("B2"), this);
71 dockB3 = new QDockWidget(tr("B3"), this);
72 }
73
74 void WFPage::createToolBar()
75 {
76 radio_v = new QRadioButton(tr("v"));
77 radio_e1 = new QRadioButton(tr("e1"));
78 radio_e2 = new QRadioButton(tr("e2"));
79 radio_b1 = new QRadioButton(tr("b1"));
80 radio_b2 = new QRadioButton(tr("b2"));
81 radio_b3 = new QRadioButton(tr("b3"));
82 radio_tabify = new QRadioButton(tr("tabify"));
83
84 radio_v->setAutoExclusive(false);
85 radio_e1->setAutoExclusive(false);
86 radio_e2->setAutoExclusive(false);
87 radio_b1->setAutoExclusive(false);
88 radio_b2->setAutoExclusive(false);
89 radio_b3->setAutoExclusive(false);
90 radio_tabify->setAutoExclusive(false);
91
92 myToolBar = new QToolBar("select");
93
94 myToolBar->addWidget(radio_v);
95 myToolBar->addWidget(radio_e1);
96 myToolBar->addWidget(radio_e2);
97 myToolBar->addWidget(radio_b1);
98 myToolBar->addWidget(radio_b2);
99 myToolBar->addWidget(radio_b3);
100 myToolBar->addSeparator();
101 myToolBar->addWidget(radio_tabify);
102
103 addToolBar(Qt::LeftToolBarArea, myToolBar);
104
105 radio_tabify->setChecked(true);
106
107 connect(this->radio_v, SIGNAL(clicked(bool)), this, SLOT(actionRadioV(bool)));
108 connect(this->radio_e1, SIGNAL(clicked(bool)), this, SLOT(actionRadioE1(bool)));
109 connect(this->radio_e2, SIGNAL(clicked(bool)), this, SLOT(actionRadioE2(bool)));
110 connect(this->radio_b1, SIGNAL(clicked(bool)), this, SLOT(actionRadioB1(bool)));
111 connect(this->radio_b2, SIGNAL(clicked(bool)), this, SLOT(actionRadioB2(bool)));
112 connect(this->radio_b3, SIGNAL(clicked(bool)), this, SLOT(actionRadioB3(bool)));
113 connect(this->radio_tabify, SIGNAL(clicked(bool)), this, SLOT(organizeDocks()));
114 }
115
116 void WFPage::actionRadioV(bool state)
117 {
118 if (state == true)
119 {
120 if (dockV == NULL)
121 {
122 dockV = new QDockWidget("V", this);
123 dockV->setWidget(wfPlot_v);
124 }
125 }
126 else
127 {
128 this->removeDockWidget(dockV);
129 }
130 organizeDocks();
131 }
132
133 void WFPage::actionRadioE1(bool state)
134 {
135 if (state == true)
136 {
137 if (dockE1 == NULL)
138 {
139 dockE1 = new QDockWidget("E1", this);
140 dockE1->setWidget(wfPlot_e1);
141 }
142 addDockWidget(Qt::TopDockWidgetArea, dockE1);
143 dockE1->show();
144 }
145 else
146 {
147 this->removeDockWidget(dockE1);
148 }
149 organizeDocks();
150 }
151
152 void WFPage::actionRadioE2(bool state)
153 {
154 if (state == true)
155 {
156 if (dockE2 == NULL)
157 {
158 dockE2 = new QDockWidget("E2", this);
159 dockE2->setWidget(wfPlot_e2);
160 }
161 addDockWidget(Qt::TopDockWidgetArea, dockE2);
162 dockE2->show();
163 }
164 else
165 {
166 this->removeDockWidget(dockE2);
167 }
168 organizeDocks();
169 }
170
171 void WFPage::actionRadioB1(bool state)
172 {
173 if (state == true)
174 {
175 if (dockB1 == NULL)
176 {
177 dockB1 = new QDockWidget("B1", this);
178 dockB1->setWidget(wfPlot_b1);
179 }
180 }
181 else
182 {
183 this->removeDockWidget(dockB1);
184 }
185 organizeDocks();
186 }
187
188 void WFPage::actionRadioB2(bool state)
189 {
190 if (state == true)
191 {
192 if (dockB2 == NULL)
193 {
194 dockB2 = new QDockWidget("B2", this);
195 dockB2->setWidget(wfPlot_b2);
196 }
197 }
198 else
199 {
200 this->removeDockWidget(dockB2);
201 }
202 organizeDocks();
203 }
204
205 void WFPage::actionRadioB3(bool state)
206 {
207 if (state == true)
208 {
209 if (dockB3 == NULL)
210 {
211 dockB3 = new QDockWidget("B3", this);
212 dockB3->setWidget(wfPlot_b3);
213 }
214 }
215 else
216 {
217 this->removeDockWidget(dockB3);
218 }
219 organizeDocks();
220 }
221
222 void WFPage::buildDockList()
223 {
224 dockList.clear();
225
226 if (radio_v->isChecked())
227 {
228 dockList.append(dockV);
229 removeDockWidget(dockV);
230 }
231 if (radio_e1->isChecked())
232 {
233 dockList.append(dockE1);
234 removeDockWidget(dockE1);
235 }
236 if (radio_e2->isChecked())
237 {
238 dockList.append(dockE2);
239 removeDockWidget(dockE2);
240 }
241 if (radio_b1->isChecked())
242 {
243 dockList.append(dockB1);
244 removeDockWidget(dockB1);
245 }
246 if (radio_b2->isChecked())
247 {
248 dockList.append(dockB2);
249 removeDockWidget(dockB2);
250 }
251 if (radio_b3->isChecked())
252 {
253 dockList.append(dockB3);
254 removeDockWidget(dockB3);
255 }
256 }
257
258 void WFPage::organizeDocks()
259 {
260 if (radio_tabify->isChecked())
261 {
262 tabify();
263 this->resize(1.2*this->minimumSizeHint());
264 }
265 else
266 {
267 unTabify();
268 wfPlot_v->resize(wfPlot_v->minimumSizeHint());
269 wfPlot_e1->resize(wfPlot_e1->minimumSizeHint());
270 wfPlot_e2->resize(wfPlot_e2->minimumSizeHint());
271 wfPlot_b1->resize(wfPlot_b1->minimumSizeHint());
272 wfPlot_b2->resize(wfPlot_b2->minimumSizeHint());
273 wfPlot_b3->resize(wfPlot_b3->minimumSizeHint());
274 this->resize(this->minimumSizeHint());
275 }
276 }
277
278 void WFPage::unTabify()
279 {
280 buildDockList();
281
282 switch(dockList.size())
283 {
284 case 0:
285 break;
286 case 1:
287 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
288 dockList.at(0)->show();
289 break;
290 case 2:
291 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
292 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
293 dockList.at(0)->show();
294 dockList.at(1)->show();
295 break;
296 case 3:
297 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
298 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
299 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
300 dockList.at(0)->show();
301 dockList.at(1)->show();
302 dockList.at(2)->show();
303 break;
304 case 4:
305 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
306 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
307 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(2));
308 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
309 dockList.at(0)->show();
310 dockList.at(1)->show();
311 dockList.at(2)->show();
312 dockList.at(3)->show();
313 break;
314 case 5:
315 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
316 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
317 addDockWidget(Qt::TopDockWidgetArea, dockList.at(2));
318 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
319 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4));
320 dockList.at(0)->show();
321 dockList.at(1)->show();
322 dockList.at(2)->show();
323 dockList.at(3)->show();
324 dockList.at(4)->show();
325 break;
326 case 6:
327 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
328 addDockWidget(Qt::TopDockWidgetArea, dockList.at(1));
329 addDockWidget(Qt::TopDockWidgetArea, dockList.at(2));
330 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(3));
331 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(4));
332 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(5));
333 dockList.at(0)->show();
334 dockList.at(1)->show();
335 dockList.at(2)->show();
336 dockList.at(3)->show();
337 dockList.at(4)->show();
338 dockList.at(5)->show();
339 break;
340 default:
341 break;
342 }
343 }
344
345 void WFPage::tabify()
346 {
347 buildDockList();
348
349 switch(dockList.size())
350 {
351 case 0:
352 break;
353 case 1:
354 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
355 dockList.at(0)->show();
356 break;
357 case 2:
358 addDockWidget(Qt::TopDockWidgetArea, dockList.at(0));
359 tabifyDockWidget(dockList.at(0), dockList.at(1));
360 dockList.at(0)->show();
361 dockList.at(1)->show();
362 break;
363 case 3:
364 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
365 tabifyDockWidget(dockList.at(0), dockList.at(1));
366 tabifyDockWidget(dockList.at(1), dockList.at(2));
367 dockList.at(0)->show();
368 dockList.at(1)->show();
369 dockList.at(2)->show();
370 break;
371 case 4:
372 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
373 tabifyDockWidget(dockList.at(0), dockList.at(1));
374 tabifyDockWidget(dockList.at(1), dockList.at(2));
375 tabifyDockWidget(dockList.at(2), dockList.at(3));
376 dockList.at(0)->show();
377 dockList.at(1)->show();
378 dockList.at(2)->show();
379 dockList.at(3)->show();
380 break;
381 case 5:
382 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
383 tabifyDockWidget(dockList.at(0), dockList.at(1));
384 tabifyDockWidget(dockList.at(1), dockList.at(2));
385 tabifyDockWidget(dockList.at(2), dockList.at(3));
386 tabifyDockWidget(dockList.at(3), dockList.at(4));
387 dockList.at(0)->show();
388 dockList.at(1)->show();
389 dockList.at(2)->show();
390 dockList.at(3)->show();
391 dockList.at(4)->show();
392 break;
393 case 6:
394 addDockWidget(Qt::BottomDockWidgetArea, dockList.at(0));
395 tabifyDockWidget(dockList.at(0), dockList.at(1));
396 tabifyDockWidget(dockList.at(1), dockList.at(2));
397 tabifyDockWidget(dockList.at(2), dockList.at(3));
398 tabifyDockWidget(dockList.at(3), dockList.at(4));
399 tabifyDockWidget(dockList.at(4), dockList.at(5));
400 dockList.at(0)->show();
401 dockList.at(1)->show();
402 dockList.at(2)->show();
403 dockList.at(3)->show();
404 dockList.at(4)->show();
405 dockList.at(5)->show();
406 break;
407 default:
408 break;
409 }
410 }
411
@@ -1,16 +1,47
1 1 #ifndef WFPAGE_H
2 2 #define WFPAGE_H
3 3
4 #include <QWidget>
4 #include "wfdisplay_global.h"
5
6 #include <QtGui/QMainWindow>
7 #include <QRadioButton>
8 #include <QDockWidget>
9 #include <QToolBar>
10
5 11 #include <wfplot.h>
6 #include <params.h>
12 #include <wfdisplay_params.h>
7 13
8 class WFPage : public QWidget
14 class WFDISPLAYSHARED_EXPORT WFPage : public QMainWindow
9 15 {
10 16 Q_OBJECT
11 17 public:
12 18 explicit WFPage(QWidget *parent = 0);
13 19
20 void createDockWindows();
21 void createToolBar();
22 void buildDockList();
23 void unTabify();
24 void tabify();
25
26 QList<QDockWidget*> dockList;
27
28 QDockWidget *dockV;
29 QDockWidget *dockE1;
30 QDockWidget *dockE2;
31 QDockWidget *dockB1;
32 QDockWidget *dockB2;
33 QDockWidget *dockB3;
34
35 QRadioButton *radio_v;
36 QRadioButton *radio_e1;
37 QRadioButton *radio_e2;
38 QRadioButton *radio_b1;
39 QRadioButton *radio_b2;
40 QRadioButton *radio_b3;
41 QRadioButton *radio_tabify;
42
43 QToolBar *myToolBar;
44
14 45 WFPlot *wfPlot_v;
15 46 WFPlot *wfPlot_e1;
16 47 WFPlot *wfPlot_e2;
@@ -18,13 +49,20 public:
18 49 WFPlot *wfPlot_b2;
19 50 WFPlot *wfPlot_b3;
20 51
21 QGridLayout *mainLayout;
52 //QGridLayout *mainLayout;
22 53
23 54 void displayOnPlot(short *data, unsigned char num);
24 55
25 56 signals:
26 57
27 58 public slots:
59 void actionRadioV(bool state);
60 void actionRadioE1(bool state);
61 void actionRadioE2(bool state);
62 void actionRadioB1(bool state);
63 void actionRadioB2(bool state);
64 void actionRadioB3(bool state);
65 void organizeDocks();
28 66
29 67 };
30 68
@@ -1,6 +1,6
1 1 #include "wfplot.h"
2 2 #include <QFontInfo>
3 #include <params.h>
3 #include <wfdisplay_params.h>
4 4
5 5 WFPlot::WFPlot(QWidget *parent) :
6 6 QWidget(parent)
General Comments 0
You need to be logged in to leave comments. Login now