summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:18:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:18:13 -0600
commit2fb700f92bb787fab0845a63a541cd5640daa449 (patch)
treec6f769db55585dd47a9fd415a40ee8b86926f683 /languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
parentfd1d1e1064eb09ddbbd67d3597c39856f5c0bc76 (diff)
downloadtdevelop-2fb700f92bb787fab0845a63a541cd5640daa449.tar.gz
tdevelop-2fb700f92bb787fab0845a63a541cd5640daa449.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp')
-rw-r--r--languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
deleted file mode 100644
index d7c00001..00000000
--- a/languages/cpp/app_templates/kscons_kmdi/appkmdiView.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-%{CPP_TEMPLATE}
-
-#include <tqpixmap.h>
-#include <tqlayout.h>
-
-#include <kiconloader.h>
-#include <klocale.h>
-#include <kmdichildview.h>
-#include <kdebug.h>
-#include <klibloader.h>
-#include <kmessagebox.h>
-
-#include "%{APPNAMELC}kmdiView.h"
-
-
- %{APPNAMELC}kmdiView::%{APPNAMELC}kmdiView( TQWidget *parentWidget, const char *name )
-: KMdiChildView( parentWidget, name )
-{
- m_part = NULL;
-
- // this routine will find and load our Part. it finds the Part by
- // name which is a bad idea usually.. but it's alright in this
- // case since our Part is made for this Shell
- KLibFactory *factory = KLibLoader::self()->factory("lib%{APPNAMELC}part");
- //KLibFactory *factory = KLibLoader::self()->factory("libkatepart");
- if (factory)
- {
- // now that the Part is loaded, we cast it to a Part to get
- // our hands on it
- m_part = static_cast<KParts::ReadWritePart *>(factory->create(
- this, "katepart", "KParts::ReadWritePart" ));
-
- if (m_part)
- {
- part()->widget()->setFocus();
- setFocusProxy(part()->widget());
-
- TQBoxLayout* layout = new TQHBoxLayout(this, 0, -1, "kdissertviewlayout" );
- part()->widget()->reparent( this, TQPoint(0, 0) );
- layout->addWidget( part()->widget() );
-
- // connect( m_part, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(updateCaption()) );
- }
- else
- {
- KMessageBox::error(this, i18n("Could not find our part."));
- }
- }
- else
- {
- // if we couldn't find our Part, we exit since the Shell by
- // itself can't do anything useful
- KMessageBox::error(this, i18n("Could not find our part."));
- return;
- }
-}
-
-%{APPNAMELC}kmdiView::~%{APPNAMELC}kmdiView()
-{
- delete m_part->widget();
-}
-
-#include "%{APPNAMELC}kmdiView.moc"