@@ -1,6 +1,6 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by Qt Creator 2.4.1, 2013-0 |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-03T17:10:59. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
@@ -1,21 +1,21 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: lfrsgse |
|
2 | # Makefile for building: lfrsgse | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 10:56:56 2013 | |
4 | # Project: gselesia.pro |
|
4 | # Project: gselesia.pro | |
5 | # Template: app |
|
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 | ####### Compiler, tools and options |
|
9 | ####### Compiler, tools and options | |
10 |
|
10 | |||
11 | CC = gcc |
|
11 | CC = gcc | |
12 | CXX = g++ |
|
12 | CXX = g++ | |
13 |
DEFINES = |
|
13 | DEFINES = -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) |
|
14 | CFLAGS = -pipe -g -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) |
|
15 | CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) | |
16 | INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I../common_PLE -I../rmapplugin -I../../DEV_PLE/header -I/usr/include/lppmon/common -I/usr/include/lppmon/wfdisplay -I. |
|
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 | LINK = g++ |
|
17 | LINK = g++ | |
18 |
LFLAGS = |
|
18 | LFLAGS = | |
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread |
|
19 | LIBS = $(SUBLIBS) -L/usr/lib64 -llppmoncommon -lwfdisplay -lqwt5-qt4 -lQtXml -lQtGui -lQtNetwork -lQtCore -lpthread | |
20 | AR = ar cqs |
|
20 | AR = ar cqs | |
21 | RANLIB = |
|
21 | RANLIB = | |
@@ -100,8 +100,9 DIST = /usr/lib64/qt4/mkspecs/c | |||||
100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
100 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
101 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
102 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
103 |
/usr/lib64/qt4/mkspecs/features/ |
|
103 | /usr/lib64/qt4/mkspecs/features/debug.prf \ | |
104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
104 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
|
105 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \ | |||
105 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
106 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
106 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
107 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
107 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
108 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
@@ -143,6 +144,7 all: Makefile $(TARGET) | |||||
143 |
|
144 | |||
144 | $(TARGET): $(OBJECTS) |
|
145 | $(TARGET): $(OBJECTS) | |
145 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
|
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 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ |
|
149 | Makefile: gselesia.pro /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf /usr/lib64/qt4/mkspecs/common/unix.conf \ | |
148 | /usr/lib64/qt4/mkspecs/common/linux.conf \ |
|
150 | /usr/lib64/qt4/mkspecs/common/linux.conf \ | |
@@ -156,8 +158,9 Makefile: gselesia.pro /usr/lib64/qt4/m | |||||
156 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ |
|
158 | /usr/lib64/qt4/mkspecs/features/qt_config.prf \ | |
157 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ |
|
159 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \ | |
158 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ |
|
160 | /usr/lib64/qt4/mkspecs/features/default_pre.prf \ | |
159 |
/usr/lib64/qt4/mkspecs/features/ |
|
161 | /usr/lib64/qt4/mkspecs/features/debug.prf \ | |
160 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ |
|
162 | /usr/lib64/qt4/mkspecs/features/default_post.prf \ | |
|
163 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf \ | |||
161 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ |
|
164 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ | |
162 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ |
|
165 | /usr/lib64/qt4/mkspecs/features/warn_on.prf \ | |
163 | /usr/lib64/qt4/mkspecs/features/qt.prf \ |
|
166 | /usr/lib64/qt4/mkspecs/features/qt.prf \ | |
@@ -172,7 +175,7 Makefile: gselesia.pro /usr/lib64/qt4/m | |||||
172 | /usr/lib64/libQtCore.prl \ |
|
175 | /usr/lib64/libQtCore.prl \ | |
173 | /usr/lib64/libQtGui.prl \ |
|
176 | /usr/lib64/libQtGui.prl \ | |
174 | /usr/lib64/libQtNetwork.prl |
|
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 | /usr/lib64/qt4/mkspecs/common/unix.conf: |
|
179 | /usr/lib64/qt4/mkspecs/common/unix.conf: | |
177 | /usr/lib64/qt4/mkspecs/common/linux.conf: |
|
180 | /usr/lib64/qt4/mkspecs/common/linux.conf: | |
178 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: |
|
181 | /usr/lib64/qt4/mkspecs/common/gcc-base.conf: | |
@@ -185,8 +188,9 Makefile: gselesia.pro /usr/lib64/qt4/m | |||||
185 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: |
|
188 | /usr/lib64/qt4/mkspecs/features/qt_config.prf: | |
186 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: |
|
189 | /usr/lib64/qt4/mkspecs/features/exclusive_builds.prf: | |
187 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: |
|
190 | /usr/lib64/qt4/mkspecs/features/default_pre.prf: | |
188 |
/usr/lib64/qt4/mkspecs/features/ |
|
191 | /usr/lib64/qt4/mkspecs/features/debug.prf: | |
189 | /usr/lib64/qt4/mkspecs/features/default_post.prf: |
|
192 | /usr/lib64/qt4/mkspecs/features/default_post.prf: | |
|
193 | /usr/lib64/qt4/mkspecs/features/declarative_debug.prf: | |||
190 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: |
|
194 | /usr/lib64/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: | |
191 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: |
|
195 | /usr/lib64/qt4/mkspecs/features/warn_on.prf: | |
192 | /usr/lib64/qt4/mkspecs/features/qt.prf: |
|
196 | /usr/lib64/qt4/mkspecs/features/qt.prf: | |
@@ -202,7 +206,7 Makefile: gselesia.pro /usr/lib64/qt4/m | |||||
202 | /usr/lib64/libQtGui.prl: |
|
206 | /usr/lib64/libQtGui.prl: | |
203 | /usr/lib64/libQtNetwork.prl: |
|
207 | /usr/lib64/libQtNetwork.prl: | |
204 | qmake: FORCE |
|
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 | dist: |
|
211 | dist: | |
208 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0 |
|
212 | @$(CHK_DIR_EXISTS) .tmp/lfrsgse1.0.0 || $(MKDIR) .tmp/lfrsgse1.0.0 |
@@ -1,6 +1,6 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by Qt Creator 2.4.1, 2013-0 |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-04T12:07:39. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
@@ -52,7 +52,7 | |||||
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> |
|
52 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value> | |
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> |
|
53 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value> | |
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> |
|
54 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Target.DesktopTarget</value> | |
55 |
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration"> |
|
55 | <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value> | |
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> |
|
56 | <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value> | |
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> |
|
57 | <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value> | |
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> |
|
58 | <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0"> | |
@@ -63,7 +63,7 | |||||
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
63 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> |
|
64 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value> | |
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> |
|
65 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value> | |
66 |
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto"> |
|
66 | <value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibraryAuto">false</value> | |
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> |
|
67 | <value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value> | |
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> |
|
68 | <value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value> | |
69 | </valuemap> |
|
69 | </valuemap> | |
@@ -97,11 +97,11 | |||||
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value> | |
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GS |
|
104 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gse_lesia</value> | |
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
@@ -147,11 +147,11 | |||||
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Debug</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
154 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/GS |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/gselesia-build-desktop-Qt_4_8_3_in_PATH__System__Debug</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> |
@@ -9,13 +9,6 MainWindow::MainWindow(QWidget *parent) | |||||
9 | totalOfBytes = 0; |
|
9 | totalOfBytes = 0; | |
10 | totalOfPackets = 0; |
|
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 | // XML |
|
13 | // XML | |
21 | // xml handlers |
|
14 | // xml handlers | |
@@ -37,6 +30,13 MainWindow::MainWindow(QWidget *parent) | |||||
37 |
|
30 | |||
38 | this->setLayout(UI->layout()); |
|
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 | connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts())); |
|
40 | connect(this->UI->button_openServerTCTM, SIGNAL(clicked()), this, SLOT(listenOnTCTMPorts())); | |
41 | connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts())); |
|
41 | connect(this->UI->button_testServerTCTM, SIGNAL(clicked()), this, SLOT(testTCTMPorts())); | |
42 | connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer())); |
|
42 | connect(this->UI->button_openSocketEchoServer, SIGNAL(clicked()), this, SLOT(openEchoServer())); |
@@ -1,7 +1,6 | |||||
1 | #ifndef MAINWINDOW_H |
|
1 | #ifndef MAINWINDOW_H | |
2 | #define MAINWINDOW_H |
|
2 | #define MAINWINDOW_H | |
3 |
|
3 | |||
4 | #include <QtGui/QMainWindow> |
|
|||
5 | #include <QTcpServer> |
|
4 | #include <QTcpServer> | |
6 | #include <QTcpSocket> |
|
5 | #include <QTcpSocket> | |
7 | #include <QXmlSimpleReader> |
|
6 | #include <QXmlSimpleReader> |
@@ -14,15 +14,15 MainWindowUI::MainWindowUI(QWidget *pare | |||||
14 |
|
14 | |||
15 | console = new QTextEdit(); |
|
15 | console = new QTextEdit(); | |
16 |
|
16 | |||
17 | spwTabWidget = new QTabWidget; |
|
17 | spwTabWidget = new QTabWidget(); | |
18 | spwTabWidgetPage0 = new QWidget; |
|
18 | spwTabWidgetPage0 = new QWidget(); | |
19 | spwTabWidgetPage1 = new QWidget; |
|
19 | spwTabWidgetPage1 = new QWidget(); | |
20 | spwTabWidgetPage2 = new QWidget; |
|
20 | spwTabWidgetPage2 = new QWidget(); | |
21 | spwTabWidgetPage3 = new QWidget; |
|
21 | spwTabWidgetPage3 = new QWidget(); | |
22 | spwTabWidgetPage4 = new QWidget; |
|
22 | spwTabWidgetPage4 = new QWidget(); | |
23 | spwTabWidgetPage5 = new QWidget; // WFRM BURST |
|
23 | spwTabWidgetPage5 = new QWidget(); // WFRM BURST | |
24 | spwTabWidgetPage6 = new QWidget; // WFRM SBM1 |
|
24 | spwTabWidgetPage6 = new QWidget(); // WFRM SBM1 | |
25 | spwTabWidgetPage7 = new QWidget; // WFRM SBM2 |
|
25 | spwTabWidgetPage7 = new QWidget(); // WFRM SBM2 | |
26 |
|
26 | |||
27 | tmStatistics = new TMStatistics; |
|
27 | tmStatistics = new TMStatistics; | |
28 |
|
28 | |||
@@ -95,9 +95,9 MainWindowUI::MainWindowUI(QWidget *pare | |||||
95 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); |
|
95 | spwTabWidget->addTab(spwTabWidgetPage1, tr("TM Statistics")); | |
96 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); |
|
96 | spwTabWidget->addTab(spwTabWidgetPage3, tr("HK")); | |
97 | spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM")); |
|
97 | spwTabWidget->addTab(spwTabWidgetPage2, tr("WFRM NORM")); | |
98 |
spwTabWidget->addTab( |
|
98 | spwTabWidget->addTab((QWidget *) wfPageBurst, tr("WFRM BURST")); | |
99 |
spwTabWidget->addTab( |
|
99 | spwTabWidget->addTab((QWidget *) wfPageSBM1, tr("WFRM SBM1")); | |
100 |
spwTabWidget->addTab( |
|
100 | spwTabWidget->addTab((QWidget *) wfPageSBM2, tr("WFRM SBM2")); | |
101 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); |
|
101 | spwTabWidget->addTab(spwTabWidgetPage4, tr("Spectrograms")); | |
102 |
|
102 | |||
103 | spwTabWidgetPage0->setLayout(mainLayout); |
|
103 | spwTabWidgetPage0->setLayout(mainLayout); | |
@@ -105,9 +105,9 MainWindowUI::MainWindowUI(QWidget *pare | |||||
105 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); |
|
105 | spwTabWidgetPage2->setLayout(wfDisplay->layout()); | |
106 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); |
|
106 | spwTabWidgetPage3->setLayout(hkDisplay->layout()); | |
107 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); |
|
107 | spwTabWidgetPage4->setLayout(lfrSpectrogam->layout()); | |
108 | spwTabWidgetPage5->setLayout(wfPageBurst->layout()); |
|
108 | //spwTabWidgetPage5->setLayout(wfPageBurst->layout()); | |
109 | spwTabWidgetPage6->setLayout(wfPageSBM1->layout()); |
|
109 | //spwTabWidgetPage6->setLayout(wfPageSBM1->layout()); | |
110 | spwTabWidgetPage7->setLayout(wfPageSBM2->layout()); |
|
110 | //spwTabWidgetPage7->setLayout(wfPageSBM2->layout()); | |
111 |
|
111 | |||
112 | layout_overallLayout->addWidget(spwTabWidget); |
|
112 | layout_overallLayout->addWidget(spwTabWidget); | |
113 |
|
113 |
@@ -12,8 +12,9 | |||||
12 | #include <QTextEdit> |
|
12 | #include <QTextEdit> | |
13 | #include <QTabWidget> |
|
13 | #include <QTabWidget> | |
14 |
|
14 | |||
|
15 | #include <wfdisplay.h> | |||
|
16 | ||||
15 | #include "tmstatistics.h" |
|
17 | #include "tmstatistics.h" | |
16 | #include "wfdisplay.h" |
|
|||
17 | #include "hkdisplay.h" |
|
18 | #include "hkdisplay.h" | |
18 | #include "lfrspectrogram.h" |
|
19 | #include "lfrspectrogram.h" | |
19 |
|
20 |
@@ -7,7 +7,7 TMStatistics::TMStatistics(QWidget *pare | |||||
7 | { |
|
7 | { | |
8 | // Create Fonts |
|
8 | // Create Fonts | |
9 | QFont font; |
|
9 | QFont font; | |
10 |
|
|
10 | font = QFont(this->fontInfo().family(), STATISTICS_FONT_SIZE, QFont::Light); | |
11 |
|
11 | |||
12 | label_UNKNOWN = new QLabel("UNKNOWN"); |
|
12 | label_UNKNOWN = new QLabel("UNKNOWN"); | |
13 | label_UNKNOWN_nb = new QLabel("-"); |
|
13 | label_UNKNOWN_nb = new QLabel("-"); |
@@ -1,6 +1,6 | |||||
1 | ############################################################################# |
|
1 | ############################################################################# | |
2 | # Makefile for building: libwfdisplay.so.1.0.0 |
|
2 | # Makefile for building: libwfdisplay.so.1.0.0 | |
3 |
# Generated by qmake (2.01a) (Qt 4.8.4) on: |
|
3 | # Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 4 10:42:53 2013 | |
4 | # Project: wfdisplay.pro |
|
4 | # Project: wfdisplay.pro | |
5 | # Template: lib |
|
5 | # Template: lib | |
6 | # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro |
|
6 | # Command: /usr/bin/qmake-qt4 -o Makefile wfdisplay.pro | |
@@ -185,7 +185,7 qmake: FORCE | |||||
185 |
|
185 | |||
186 | dist: |
|
186 | dist: | |
187 | @$(CHK_DIR_EXISTS) .tmp/wfdisplay1.0.0 || $(MKDIR) .tmp/wfdisplay1.0.0 |
|
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 | clean:compiler_clean |
|
191 | clean:compiler_clean | |
@@ -213,15 +213,16 compiler_moc_header_clean: | |||||
213 | moc_wfdisplay.cpp: wfdisplay_global.h \ |
|
213 | moc_wfdisplay.cpp: wfdisplay_global.h \ | |
214 | wfpage.h \ |
|
214 | wfpage.h \ | |
215 | wfplot.h \ |
|
215 | wfplot.h \ | |
216 | params.h \ |
|
216 | wfdisplay_params.h \ | |
217 | wfdisplay.h |
|
217 | wfdisplay.h | |
218 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp |
|
218 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfdisplay.h -o moc_wfdisplay.cpp | |
219 |
|
219 | |||
220 | moc_wfplot.cpp: wfplot.h |
|
220 | moc_wfplot.cpp: wfplot.h | |
221 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp |
|
221 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfplot.h -o moc_wfplot.cpp | |
222 |
|
222 | |||
223 |
moc_wfpage.cpp: wf |
|
223 | moc_wfpage.cpp: wfdisplay_global.h \ | |
224 | params.h \ |
|
224 | wfplot.h \ | |
|
225 | wfdisplay_params.h \ | |||
225 | wfpage.h |
|
226 | wfpage.h | |
226 | /usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) wfpage.h -o moc_wfpage.cpp |
|
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 | wfdisplay_global.h \ |
|
249 | wfdisplay_global.h \ | |
249 | wfpage.h \ |
|
250 | wfpage.h \ | |
250 | wfplot.h \ |
|
251 | wfplot.h \ | |
251 | params.h |
|
252 | wfdisplay_params.h | |
252 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp |
|
253 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfdisplay.o wfdisplay.cpp | |
253 |
|
254 | |||
254 | wfplot.o: wfplot.cpp wfplot.h \ |
|
255 | wfplot.o: wfplot.cpp wfplot.h \ | |
255 | params.h |
|
256 | wfdisplay_params.h | |
256 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp |
|
257 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfplot.o wfplot.cpp | |
257 |
|
258 | |||
258 | wfpage.o: wfpage.cpp wfpage.h \ |
|
259 | wfpage.o: wfpage.cpp wfpage.h \ | |
|
260 | wfdisplay_global.h \ | |||
259 | wfplot.h \ |
|
261 | wfplot.h \ | |
260 | params.h |
|
262 | wfdisplay_params.h | |
261 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp |
|
263 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o wfpage.o wfpage.cpp | |
262 |
|
264 | |||
263 | moc_wfdisplay.o: moc_wfdisplay.cpp |
|
265 | moc_wfdisplay.o: moc_wfdisplay.cpp | |
@@ -276,12 +278,16 install_header: first FORCE | |||||
276 | -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
278 | -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
277 | -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
279 | -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfdisplay_global.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
278 | -$(INSTALL_FILE) /home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay/wfpage.h $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
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 | uninstall_header: FORCE |
|
285 | uninstall_header: FORCE | |
282 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h |
|
286 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay.h | |
283 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/wfdisplay_global.h |
|
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 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ |
|
291 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/include/lppmon/wfdisplay/ | |
286 |
|
292 | |||
287 |
|
293 |
@@ -8,10 +8,10 WFDisplay::WFDisplay(QWidget *parent) : | |||||
8 |
|
8 | |||
9 | spwTabWidget = new QTabWidget; |
|
9 | spwTabWidget = new QTabWidget; | |
10 |
|
10 | |||
11 | page_f0 = new WFPage; |
|
11 | page_f0 = new WFPage(); | |
12 | page_f1 = new WFPage; |
|
12 | page_f1 = new WFPage(); | |
13 | page_f2 = new WFPage; |
|
13 | page_f2 = new WFPage(); | |
14 | page_f3 = new WFPage; |
|
14 | page_f3 = new WFPage(); | |
15 |
|
15 | |||
16 | spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)")); |
|
16 | spwTabWidget->addTab(page_f0, tr("f0 (24576 Hz)")); | |
17 | spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz")); |
|
17 | spwTabWidget->addTab(page_f1, tr("f1 (4096 Hz")); |
@@ -6,8 +6,8 | |||||
6 | #include <QWidget> |
|
6 | #include <QWidget> | |
7 | #include <QGridLayout> |
|
7 | #include <QGridLayout> | |
8 | #include <QVBoxLayout> |
|
8 | #include <QVBoxLayout> | |
|
9 | #include <QTabWidget> | |||
9 | #include <wfpage.h> |
|
10 | #include <wfpage.h> | |
10 | #include <QTabWidget> |
|
|||
11 |
|
11 | |||
12 | #define XMAX 2048 |
|
12 | #define XMAX 2048 | |
13 |
|
13 |
@@ -24,14 +24,16 HEADERS += wfdisplay.h\ | |||||
24 | wfdisplay_global.h \ |
|
24 | wfdisplay_global.h \ | |
25 | wfplot.h \ |
|
25 | wfplot.h \ | |
26 | wfpage.h \ |
|
26 | wfpage.h \ | |
27 | params.h |
|
27 | wfdisplay_params.h | |
28 |
|
28 | |||
29 |
|
29 | |||
30 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay |
|
30 | header.path = $$[QT_INSTALL_HEADERS]/lppmon/wfdisplay | |
31 | header.files = \ |
|
31 | header.files = \ | |
32 | wfdisplay.h \ |
|
32 | wfdisplay.h \ | |
33 | wfdisplay_global.h \ |
|
33 | wfdisplay_global.h \ | |
34 | wfpage.h |
|
34 | wfpage.h \ | |
|
35 | wfplot.h \ | |||
|
36 | wfdisplay_params.h | |||
35 |
|
37 | |||
36 | target.path = $$[QT_INSTALL_LIBS] |
|
38 | target.path = $$[QT_INSTALL_LIBS] | |
37 | isEmpty(target.path) { |
|
39 | isEmpty(target.path) { |
@@ -1,6 +1,6 | |||||
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <!DOCTYPE QtCreatorProject> |
|
2 | <!DOCTYPE QtCreatorProject> | |
3 |
<!-- Written by Qt Creator 2.4.1, 2013-0 |
|
3 | <!-- Written by Qt Creator 2.4.1, 2013-07-04T12:07:00. --> | |
4 | <qtcreator> |
|
4 | <qtcreator> | |
5 | <data> |
|
5 | <data> | |
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> |
|
6 | <variable>ProjectExplorer.Project.ActiveTarget</variable> | |
@@ -97,11 +97,11 | |||||
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
97 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
98 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
99 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
100 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
100 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Debug</value> | |
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
101 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
102 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
103 |
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"> |
|
103 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value> | |
104 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_P |
|
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 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
105 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
106 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
107 | </valuemap> |
|
107 | </valuemap> | |
@@ -147,11 +147,11 | |||||
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> |
|
147 | <value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value> | |
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> |
|
148 | <value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value> | |
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> |
|
149 | <valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/> | |
150 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8. |
|
150 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Qt 4.8.3 in PATH (System) Release</value> | |
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
151 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> |
|
152 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value> | |
153 |
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration"> |
|
153 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value> | |
154 |
<value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/opt/LPPMON_PLUGINS_P |
|
154 | <value type="QString" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory">/home/admin/opt/LPPMON_PLUGINS_PLE/wfdisplay/wfdisplay-build-desktop-Qt_4_8_3_in_PATH__System__Release</value> | |
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> |
|
155 | <value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId">1</value> | |
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> |
|
156 | <value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">false</value> | |
157 | </valuemap> |
|
157 | </valuemap> | |
@@ -232,15 +232,16 | |||||
232 | <value type="int">13</value> |
|
232 | <value type="int">13</value> | |
233 | <value type="int">14</value> |
|
233 | <value type="int">14</value> | |
234 | </valuelist> |
|
234 | </valuelist> | |
235 |
<value type="QString" key="ProjectExplorer. |
|
235 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">wfdisplay</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> |
|
|||
242 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> |
|
236 | <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value> | |
243 |
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Project |
|
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 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> |
|
245 | <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value> | |
245 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> |
|
246 | <value type="bool" key="RunConfiguration.UseCppDebugger">true</value> | |
246 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> |
|
247 | <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> | |
@@ -255,7 +256,7 | |||||
255 | </data> |
|
256 | </data> | |
256 | <data> |
|
257 | <data> | |
257 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> |
|
258 | <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> | |
258 |
<value type="QString">{ |
|
259 | <value type="QString">{cdbf9cdc-1e84-406e-889b-c4feef49e75c}</value> | |
259 | </data> |
|
260 | </data> | |
260 | <data> |
|
261 | <data> | |
261 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
|
262 | <variable>ProjectExplorer.Project.Updater.FileVersion</variable> |
@@ -1,7 +1,7 | |||||
1 | #include "wfpage.h" |
|
1 | #include "wfpage.h" | |
2 |
|
2 | |||
3 | WFPage::WFPage(QWidget *parent) : |
|
3 | WFPage::WFPage(QWidget *parent) : | |
4 |
Q |
|
4 | QMainWindow(parent) | |
5 | { |
|
5 | { | |
6 | wfPlot_v = new WFPlot(); |
|
6 | wfPlot_v = new WFPlot(); | |
7 | wfPlot_e1 = new WFPlot(); |
|
7 | wfPlot_e1 = new WFPlot(); | |
@@ -17,15 +17,24 WFPage::WFPage(QWidget *parent) : | |||||
17 | wfPlot_b2->customPlot->setTitle("b2"); |
|
17 | wfPlot_b2->customPlot->setTitle("b2"); | |
18 | wfPlot_b3->customPlot->setTitle("b3"); |
|
18 | wfPlot_b3->customPlot->setTitle("b3"); | |
19 | // |
|
19 | // | |
20 | mainLayout = new QGridLayout; |
|
20 | /*mainLayout = new QGridLayout; | |
21 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); |
|
21 | mainLayout->addWidget(wfPlot_v, 0, 0, 1, 1); | |
22 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); |
|
22 | mainLayout->addWidget(wfPlot_e1, 0, 1, 1, 1); | |
23 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); |
|
23 | mainLayout->addWidget(wfPlot_e2, 0, 2, 1, 1); | |
24 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); |
|
24 | mainLayout->addWidget(wfPlot_b1, 1, 0, 1, 1); | |
25 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); |
|
25 | mainLayout->addWidget(wfPlot_b2, 1, 1, 1, 1); | |
26 |
|
|
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 | void WFPage::displayOnPlot(short *data, unsigned char num) |
|
40 | void WFPage::displayOnPlot(short *data, unsigned char num) | |
@@ -51,3 +60,352 void WFPage::displayOnPlot(short *data, | |||||
51 | break; |
|
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 | #ifndef WFPAGE_H |
|
1 | #ifndef WFPAGE_H | |
2 | #define WFPAGE_H |
|
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 | #include <wfplot.h> |
|
11 | #include <wfplot.h> | |
6 | #include <params.h> |
|
12 | #include <wfdisplay_params.h> | |
7 |
|
13 | |||
8 |
class WFPage : public Q |
|
14 | class WFDISPLAYSHARED_EXPORT WFPage : public QMainWindow | |
9 | { |
|
15 | { | |
10 | Q_OBJECT |
|
16 | Q_OBJECT | |
11 | public: |
|
17 | public: | |
12 | explicit WFPage(QWidget *parent = 0); |
|
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 | WFPlot *wfPlot_v; |
|
45 | WFPlot *wfPlot_v; | |
15 | WFPlot *wfPlot_e1; |
|
46 | WFPlot *wfPlot_e1; | |
16 | WFPlot *wfPlot_e2; |
|
47 | WFPlot *wfPlot_e2; | |
@@ -18,13 +49,20 public: | |||||
18 | WFPlot *wfPlot_b2; |
|
49 | WFPlot *wfPlot_b2; | |
19 | WFPlot *wfPlot_b3; |
|
50 | WFPlot *wfPlot_b3; | |
20 |
|
51 | |||
21 | QGridLayout *mainLayout; |
|
52 | //QGridLayout *mainLayout; | |
22 |
|
53 | |||
23 | void displayOnPlot(short *data, unsigned char num); |
|
54 | void displayOnPlot(short *data, unsigned char num); | |
24 |
|
55 | |||
25 | signals: |
|
56 | signals: | |
26 |
|
57 | |||
27 | public slots: |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now