summaryrefslogtreecommitdiffstats
path: root/karbon
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-22 19:55:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-22 19:55:40 -0600
commit73ff676f11662d6178c8854a7832ebffe2ae409d (patch)
tree9e89ea7d87940087d2d3c5db9b378ef989dd1346 /karbon
parentc2ba2f56121c21a762619faf195e8332ef5b224f (diff)
downloadkoffice-73ff676f11662d6178c8854a7832ebffe2ae409d.tar.gz
koffice-73ff676f11662d6178c8854a7832ebffe2ae409d.zip
Rename KInstance and KAboutData to avoid conflicts with KDE4
Diffstat (limited to 'karbon')
-rw-r--r--karbon/karbon_aboutdata.h6
-rw-r--r--karbon/karbon_factory.cc10
-rw-r--r--karbon/karbon_factory.h12
-rw-r--r--karbon/widgets/vtoolbox.cc2
-rw-r--r--karbon/widgets/vtoolbox.h2
5 files changed, 16 insertions, 16 deletions
diff --git a/karbon/karbon_aboutdata.h b/karbon/karbon_aboutdata.h
index 8d8e5217..c293baaf 100644
--- a/karbon/karbon_aboutdata.h
+++ b/karbon/karbon_aboutdata.h
@@ -10,14 +10,14 @@ static const char* version=VERSION;
// This is all implemented here so that the executable and the part can share it
// without sharing an object file.
-KAboutData * newKarbonAboutData()
+TDEAboutData * newKarbonAboutData()
{
- KAboutData * aboutData = new KAboutData(
+ TDEAboutData * aboutData = new TDEAboutData(
"karbon",
I18N_NOOP( "Karbon14" ),
version,
description,
- KAboutData::License_GPL,
+ TDEAboutData::License_GPL,
I18N_NOOP( "(c) 2001-2006, The Karbon Developers" ),
I18N_NOOP( "You are invited to participate in any way." ),
"http://www.koffice.org/karbon/");
diff --git a/karbon/karbon_factory.cc b/karbon/karbon_factory.cc
index 90c8c29a..6206926a 100644
--- a/karbon/karbon_factory.cc
+++ b/karbon/karbon_factory.cc
@@ -38,8 +38,8 @@
KarbonResourceServer* KarbonFactory::s_rserver = 0;
-KInstance* KarbonFactory::s_instance = 0L;
-KAboutData* KarbonFactory::s_aboutData = 0L;
+TDEInstance* KarbonFactory::s_instance = 0L;
+TDEAboutData* KarbonFactory::s_aboutData = 0L;
KarbonFactory::KarbonFactory( TQObject* parent, const char* name )
: KoFactory( parent, name )
@@ -95,7 +95,7 @@ KarbonFactory::createPartObject( TQWidget* parentWidget, const char* widgetName,
return part;
}
-KAboutData*
+TDEAboutData*
KarbonFactory::aboutData()
{
if( !s_aboutData )
@@ -103,12 +103,12 @@ KarbonFactory::aboutData()
return s_aboutData;
}
-KInstance*
+TDEInstance*
KarbonFactory::instance()
{
if( !s_instance )
{
- s_instance = new KInstance( aboutData() );
+ s_instance = new TDEInstance( aboutData() );
// Add any application-specific resource directories here
s_instance->dirs()->addResourceType( "kis_brushes",
diff --git a/karbon/karbon_factory.h b/karbon/karbon_factory.h
index fb7c09c6..a30bd608 100644
--- a/karbon/karbon_factory.h
+++ b/karbon/karbon_factory.h
@@ -22,8 +22,8 @@
#include <KoFactory.h>
#include <koffice_export.h>
-class KAboutData;
-class KInstance;
+class TDEAboutData;
+class TDEInstance;
class KarbonResourceServer;
@@ -41,14 +41,14 @@ public:
const char* widgetName = 0L, TQObject* parent = 0L, const char* name = 0L,
const char* classname = "KoDocument", const TQStringList& args = TQStringList() );
- static KInstance* instance();
- static KAboutData* aboutData();
+ static TDEInstance* instance();
+ static TDEAboutData* aboutData();
static KarbonResourceServer *rServer();
private:
- static KInstance* s_instance;
- static KAboutData* s_aboutData;
+ static TDEInstance* s_instance;
+ static TDEAboutData* s_aboutData;
static KarbonResourceServer* s_rserver;
};
diff --git a/karbon/widgets/vtoolbox.cc b/karbon/widgets/vtoolbox.cc
index 6146ae93..d3f12b7e 100644
--- a/karbon/widgets/vtoolbox.cc
+++ b/karbon/widgets/vtoolbox.cc
@@ -21,7 +21,7 @@
#include "vtoolbox.h"
#include "vtool.h"
-VToolBox::VToolBox( KMainWindow *mainWin, const char* name, KInstance* instance ) : KoToolBox( mainWin, name, instance, 5 )
+VToolBox::VToolBox( KMainWindow *mainWin, const char* name, TDEInstance* instance ) : KoToolBox( mainWin, name, instance, 5 )
{
}
diff --git a/karbon/widgets/vtoolbox.h b/karbon/widgets/vtoolbox.h
index b31a4cbb..857b72e7 100644
--- a/karbon/widgets/vtoolbox.h
+++ b/karbon/widgets/vtoolbox.h
@@ -31,7 +31,7 @@ class VToolBox : public KoToolBox
public:
- VToolBox( KMainWindow *mainWin, const char* name, KInstance* instance );
+ VToolBox( KMainWindow *mainWin, const char* name, TDEInstance* instance );
virtual ~VToolBox() {}
void registerTool( VTool * );