summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/app/views
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-01 15:46:30 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-01 15:46:30 -0500
commite9dafbb9d016a1aa5e90bb12c63c12b8521cf059 (patch)
tree4cf6a0b2ae2fde33df1a8eb8f0d01deb4299caf9 /clients/tde/src/app/views
parentb6eb80309781bd02b9b66808d29508f23881de66 (diff)
downloadulab-e9dafbb9d016a1aa5e90bb12c63c12b8521cf059.tar.gz
ulab-e9dafbb9d016a1aa5e90bb12c63c12b8521cf059.zip
Add ability for instruments to add menu options to the main window
Diffstat (limited to 'clients/tde/src/app/views')
-rw-r--r--clients/tde/src/app/views/Makefile.am2
-rw-r--r--clients/tde/src/app/views/instrumentview.cpp4
-rw-r--r--clients/tde/src/app/views/instrumentview.h10
3 files changed, 12 insertions, 4 deletions
diff --git a/clients/tde/src/app/views/Makefile.am b/clients/tde/src/app/views/Makefile.am
index fa77152..fcb1de8 100644
--- a/clients/tde/src/app/views/Makefile.am
+++ b/clients/tde/src/app/views/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)/src/part $(all_includes)
+INCLUDES = -I$(top_srcdir)/src/part $(all_includes) $(KDE_INCLUDES)/tde
METASOURCES = AUTO
noinst_LTLIBRARIES = libinstrumentview.la
libinstrumentview_la_SOURCES = instrumentview.cpp
diff --git a/clients/tde/src/app/views/instrumentview.cpp b/clients/tde/src/app/views/instrumentview.cpp
index 52ce172..0d287a7 100644
--- a/clients/tde/src/app/views/instrumentview.cpp
+++ b/clients/tde/src/app/views/instrumentview.cpp
@@ -48,6 +48,10 @@ void InstrumentView::init() {
}
}
+TQPtrList<KAction> InstrumentView::menuActionList() {
+ return m_instrumentPart->menuActionList();
+}
+
void InstrumentView::setStatusMessage(const TQString& message) {
emit(statusMessageSet(message));
}
diff --git a/clients/tde/src/app/views/instrumentview.h b/clients/tde/src/app/views/instrumentview.h
index c0343c8..6482fd1 100644
--- a/clients/tde/src/app/views/instrumentview.h
+++ b/clients/tde/src/app/views/instrumentview.h
@@ -1,18 +1,20 @@
//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012
//Copyright: See COPYING file that comes with this distribution
-#ifndef SPECTRUMANALYZERVIEW_H
-#define SPECTRUMANALYZERVIEW_H
+#ifndef INSTRUMENTVIEW_H
+#define INSTRUMENTVIEW_H
#include <kconfig.h>
#include <kparts/part.h>
#include <kmdichildview.h>
+#include <tqtrla.h>
+
class KAction;
namespace RemoteLab {
-typedef KParts::ReadOnlyPart InstrumentPart;
+typedef KParts::RemoteInstrumentPart InstrumentPart;
class InstrumentView : public KMdiChildView
{
@@ -24,6 +26,8 @@ class InstrumentView : public KMdiChildView
~InstrumentView();
void connectServer(TQString server);
void closeConnections();
+
+ TQPtrList<KAction> menuActionList();
protected:
virtual void saveProperties(KConfig *);