diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 18:34:16 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 18:34:16 -0500 |
commit | 58cefd2d0172e7c1b51e00472a87df03e52c66c3 (patch) | |
tree | e3277b21843dddd0006f7844ce9bda5d6ec1f532 /clients/tde/src/app | |
parent | a3e28da8e9b180a9a9552ee3e280e6520f53cc6b (diff) | |
download | ulab-58cefd2d0172e7c1b51e00472a87df03e52c66c3.tar.gz ulab-58cefd2d0172e7c1b51e00472a87df03e52c66c3.zip |
Add client image display windows to remotefpga viewer
Diffstat (limited to 'clients/tde/src/app')
-rw-r--r-- | clients/tde/src/app/views/Makefile.am | 3 | ||||
-rw-r--r-- | clients/tde/src/app/views/instrumentview.cpp | 4 | ||||
-rw-r--r-- | clients/tde/src/app/views/instrumentview.h | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/clients/tde/src/app/views/Makefile.am b/clients/tde/src/app/views/Makefile.am index fcb1de8..1ab5bf9 100644 --- a/clients/tde/src/app/views/Makefile.am +++ b/clients/tde/src/app/views/Makefile.am @@ -1,5 +1,4 @@ INCLUDES = -I$(top_srcdir)/src/part $(all_includes) $(KDE_INCLUDES)/tde METASOURCES = AUTO noinst_LTLIBRARIES = libinstrumentview.la -libinstrumentview_la_SOURCES = instrumentview.cpp - +libinstrumentview_la_SOURCES = instrumentview.cpp
\ No newline at end of file diff --git a/clients/tde/src/app/views/instrumentview.cpp b/clients/tde/src/app/views/instrumentview.cpp index 4a9acf9..e9f3f51 100644 --- a/clients/tde/src/app/views/instrumentview.cpp +++ b/clients/tde/src/app/views/instrumentview.cpp @@ -9,6 +9,7 @@ #include <kiconloader.h> #include <klocale.h> #include <kmessagebox.h> +#include <kmdimainfrm.h> namespace RemoteLab { @@ -19,6 +20,7 @@ InstrumentView::InstrumentView(const TQString &library, TQWidget *parentWidget, , m_fixedSize( false ) , m_canary( NULL ) { + m_mainForm = dynamic_cast<KMdiMainFrm*>(parentWidget); init(); } @@ -29,6 +31,7 @@ InstrumentView::InstrumentView(const TQString &library, const TQString &caption, , m_fixedSize( false ) , m_canary( NULL ) { + m_mainForm = dynamic_cast<KMdiMainFrm*>(parentWidget); init(); } @@ -47,6 +50,7 @@ void InstrumentView::init() { } else { m_instrumentPart = (InstrumentPart *)factory->create(TQT_TQOBJECT(this), "part", "KParts::RemoteInstrumentPart"); + m_instrumentPart->setMDIMainForm(m_mainForm); setIcon(SmallIcon(m_libraryName)); connect(m_instrumentPart, SIGNAL(statusMessageSet(const TQString&)), this, SLOT(setStatusMessage(const TQString&))); connect(m_instrumentPart, SIGNAL(usingFixedSizeChanged(bool)), this, SLOT(setUsingFixedSize(bool))); diff --git a/clients/tde/src/app/views/instrumentview.h b/clients/tde/src/app/views/instrumentview.h index fa4551a..a866b9d 100644 --- a/clients/tde/src/app/views/instrumentview.h +++ b/clients/tde/src/app/views/instrumentview.h @@ -46,6 +46,7 @@ class InstrumentView : public KMdiChildView private: void init(); + KMdiMainFrm* m_mainForm; TQString m_libraryName; RemoteLab::InstrumentPart *m_instrumentPart; bool m_fixedSize; |