Rename KInstance and KAboutData to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent e5ce3b4175
commit f71394031a

@ -67,7 +67,7 @@ extern "C"
int kdemain(int argc, char **argv)
{
KInstance instance("kio_kamera");
TDEInstance instance("kio_kamera");
if(argc != 4) {
kdDebug(7123) << "Usage: kio_kamera protocol "

@ -44,8 +44,8 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[])
{
KLocale::setMainCatalogue("tdelibs");
KAboutData aboutData( "kcolorchooser", I18N_NOOP("KColorChooser"),
version, description, KAboutData::License_BSD,
TDEAboutData aboutData( "kcolorchooser", I18N_NOOP("KColorChooser"),
version, description, TDEAboutData::License_BSD,
"(c) 2000, Waldo Bastian");
aboutData.addAuthor("Waldo Bastian",0, "bastian@kde.org");
TDECmdLineArgs::init( argc, argv, &aboutData );

@ -37,8 +37,8 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[])
{
KAboutData aboutData( "kcoloredit", I18N_NOOP("KColorEdit"),
VERSION, description, KAboutData::License_GPL,
TDEAboutData aboutData( "kcoloredit", I18N_NOOP("KColorEdit"),
VERSION, description, TDEAboutData::License_GPL,
"(c) 2000, Artur Rataj");
aboutData.addAuthor("Artur Rataj",0, "art@zeus.polsl.gliwice.pl");
aboutData.addCredit( "Nadeem Hasan", I18N_NOOP( "Rewrote UI code "

@ -96,11 +96,11 @@ KDVIMultiPage::~KDVIMultiPage()
}
KAboutData* KDVIMultiPage::createAboutData()
TDEAboutData* KDVIMultiPage::createAboutData()
{
KAboutData* about = new KAboutData("kdvi", I18N_NOOP("KDVI"), "1.3",
TDEAboutData* about = new TDEAboutData("kdvi", I18N_NOOP("KDVI"), "1.3",
I18N_NOOP("A previewer for Device Independent files (DVI files) produced by the TeX typesetting system."),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"Markku Hinhala, Stephan Kebekus",
I18N_NOOP("This program displays Device Independent (DVI) files which are produced by the TeX typesetting system.\n"
"KDVI 1.3 is based on original code from KDVI version 0.43 and xdvik."));

@ -34,7 +34,7 @@ public:
virtual void addConfigDialogs(KConfigDialog* configDialog);
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
private:
virtual DocumentWidget* createDocumentWidget();

@ -31,8 +31,8 @@ static const char description[] = I18N_NOOP("A previewer for Device Independent
int main(int argc, char** argv)
{
KAboutData about ("kdvi", I18N_NOOP("KDVI"), "1.4",
description, KAboutData::License_GPL,
TDEAboutData about ("kdvi", I18N_NOOP("KDVI"), "1.4",
description, TDEAboutData::License_GPL,
"Markku Hinhala, Stephan Kebekus",
I18N_NOOP("This program displays Device Independent (DVI) files which are produced by the TeX typesetting system.\n"
"This KDVI version is based on original code from KDVI version 0.43 and xdvik."));

@ -1649,8 +1649,8 @@ static KCmdLineOptions options[] =
int main (int argc, char **argv)
{
KAboutData aboutData( "kfax", I18N_NOOP("KFax"),
KFAXVERSION, description, KAboutData::License_GPL,
TDEAboutData aboutData( "kfax", I18N_NOOP("KFax"),
KFAXVERSION, description, TDEAboutData::License_GPL,
"(c) 1997-98 Bernd Johannes Wuebben");
aboutData.addAuthor( "Bernd Johannes Wuebben", 0, "wuebben@kde.org" );
aboutData.addCredit( "Nadeem Hasan", I18N_NOOP( "UI Rewrite, lots of code "

@ -55,12 +55,12 @@ FaxMultiPage::~FaxMultiPage()
}
KAboutData* FaxMultiPage::createAboutData()
TDEAboutData* FaxMultiPage::createAboutData()
{
/* You obviously want to change this to match your setup */
KAboutData* about = new KAboutData("kfaxview", I18N_NOOP("KFaxView"), "0.1",
TDEAboutData* about = new TDEAboutData("kfaxview", I18N_NOOP("KFaxView"), "0.1",
I18N_NOOP("KViewshell Fax Plugin."),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"Stefan Kebekus",
I18N_NOOP("This program previews fax (g3) files."));

@ -111,7 +111,7 @@ public:
This member returns a structure that contains information about the
authors of the implementation
*/
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
private:
/** This member holds the renderer which is used by the demo implementation */

@ -50,8 +50,8 @@ static const char description[] = I18N_NOOP("A previewer for Fax files.");
int main(int argc, char** argv)
{
KAboutData about ("kfaxview", I18N_NOOP("KFaxView"), "3.5",
description, KAboutData::License_GPL,
TDEAboutData about ("kfaxview", I18N_NOOP("KFaxView"), "3.5",
description, TDEAboutData::License_GPL,
"Stephan Kebekus, Helge Deller",
I18N_NOOP("Fax-G3 plugin for the KViewShell document viewer framework."));

@ -364,12 +364,12 @@ KGVPart::~KGVPart()
writeSettings();
}
KAboutData* KGVPart::createAboutData()
TDEAboutData* KGVPart::createAboutData()
{
KAboutData* about = new KAboutData( "kghostview", I18N_NOOP( "KGhostView"),
TDEAboutData* about = new TDEAboutData( "kghostview", I18N_NOOP( "KGhostView"),
KGHOSTVIEW_VERSION,
I18N_NOOP( "Viewer for PostScript (.ps, .eps) and Portable Document Format (.pdf) files"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(C) 1998 Mark Donohoe, (C) 1999-2000 David Sweet, "
"(C) 2000-2003 Wilco Greven",
I18N_NOOP( "KGhostView displays, prints, and saves "

@ -31,11 +31,11 @@
class TQFrame;
class TQWidget;
class KAboutData;
class TDEAboutData;
class KAction;
class KActionCollection;
class KDirWatch;
class KInstance;
class TDEInstance;
class KPopupMenu;
class KSelectAction;
class KToggleAction;
@ -77,7 +77,7 @@ public:
*/
virtual bool closeURL();
KDE_EXPORT static KAboutData* createAboutData();
KDE_EXPORT static TDEAboutData* createAboutData();
public slots:
/**

@ -42,15 +42,15 @@ KGVFactory::~KGVFactory()
s_self = 0;
}
KInstance *KGVFactory::createInstance()
TDEInstance *KGVFactory::createInstance()
{
KInstance* res = new KInstance( aboutData() );
TDEInstance* res = new TDEInstance( aboutData() );
return res;
}
KGVFactory *KGVFactory::s_self;
KInstance *KGVFactory::s_instance;
KAboutData *KGVFactory::s_aboutData;
TDEInstance *KGVFactory::s_instance;
TDEAboutData *KGVFactory::s_aboutData;
KParts::Part *KGVFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name,
@ -84,19 +84,19 @@ KParts::Part *KGVFactory::createPartObject( TQWidget *parentWidget, const char *
return part;
}
KInstance *KGVFactory::instance()
TDEInstance *KGVFactory::instance()
{
if ( !s_instance )
{
if ( s_self )
s_instance = s_self->createInstance();
else
s_instance = new KInstance( aboutData() );
s_instance = new TDEInstance( aboutData() );
}
return s_instance;
}
KAboutData *KGVFactory::aboutData()
TDEAboutData *KGVFactory::aboutData()
{
if ( !s_aboutData )
s_aboutData = KGVPart::createAboutData();

@ -22,16 +22,16 @@
#include <kparts/factory.h>
#include <kparts/part.h>
class KInstance;
class KAboutData;
class TDEInstance;
class TDEAboutData;
class KDE_EXPORT KGVFactory : public KParts::Factory
{
public:
KGVFactory();
virtual ~KGVFactory();
static KInstance *instance();
static KAboutData *aboutData();
static TDEInstance *instance();
static TDEAboutData *aboutData();
virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name,
@ -39,11 +39,11 @@ class KDE_EXPORT KGVFactory : public KParts::Factory
const TQStringList &args );
protected:
virtual KInstance *createInstance();
virtual TDEInstance *createInstance();
private:
static KGVFactory*s_self;
static KInstance *s_instance;
static KAboutData *s_aboutData;
static TDEInstance *s_instance;
static TDEAboutData *s_aboutData;
};
#endif

@ -42,8 +42,8 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KAboutData aboutData( "kiconedit", I18N_NOOP("KIconEdit"),
VERSION, description, KAboutData::License_GPL,
TDEAboutData aboutData( "kiconedit", I18N_NOOP("KIconEdit"),
VERSION, description, TDEAboutData::License_GPL,
"(c) 1998, Thomas Tanghus");
aboutData.addAuthor("Thomas Tanghus",0, "tanghus@kde.org");

@ -46,12 +46,12 @@ K_EXPORT_COMPONENT_FACTORY( kcm_kmrml, MrmlFactory("kmrml") )
KCMKMrml::KCMKMrml(TQWidget *parent, const char *name, const TQStringList & ):
KCModule(MrmlFactory::instance(), parent, name)
{
KAboutData* ab = new KAboutData(
TDEAboutData* ab = new TDEAboutData(
"kcmkmrml",
I18N_NOOP("KCMKMrml"),
KMRML_VERSION,
I18N_NOOP("Advanced Search Control Module"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP( "Copyright 2002, Carsten Pfeiffer" ),
0,
"http://devel-home.kde.org/~pfeiffer/kmrml/" );

@ -21,7 +21,7 @@
#include <kcmodule.h>
class KAboutData;
class TDEAboutData;
class KURLRequester;
namespace KMrmlConfig

@ -39,7 +39,7 @@ extern "C" {
KDE_EXPORT int kdemain( int argc, char **argv )
{
KLocale::setMainCatalogue("tdelibs");
KInstance instance( "kio_mrml" );
TDEInstance instance( "kio_mrml" );
KGlobal::locale()->insertCatalogue( "kmrml" );
kdDebug() << "Starting MRML " << getpid() << endl;

@ -66,7 +66,7 @@ extern "C"
}
}
KInstance * PartFactory::s_instance = 0L;
TDEInstance * PartFactory::s_instance = 0L;
PartFactory::PartFactory()
: KParts::Factory()
@ -81,10 +81,10 @@ PartFactory::~PartFactory()
s_instance = 0L;
}
KInstance * PartFactory::instance()
TDEInstance * PartFactory::instance()
{
if ( !s_instance ) {
s_instance = new KInstance( "kmrml" );
s_instance = new TDEInstance( "kmrml" );
KGlobal::locale()->insertCatalogue( "kmrml" );
}
return s_instance;
@ -830,14 +830,14 @@ void MrmlPart::restoreState( TQDataStream& stream )
m_url = url;
}
KAboutData * MrmlPart::createAboutData()
TDEAboutData * MrmlPart::createAboutData()
{
KAboutData *data = new KAboutData(
TDEAboutData *data = new TDEAboutData(
"kmrml",
I18N_NOOP("MRML Client for TDE"),
KMRML_VERSION,
I18N_NOOP("A tool to search for images by their content"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP("(c) 2001-2002, Carsten Pfeiffer"),
0,
I18N_NOOP("http://devel-home.kde.org/~pfeiffer/kmrml/") );

@ -34,7 +34,7 @@ class TQCheckBox;
class TQHGroupBox;
class TQPushButton;
class KAboutData;
class TDEAboutData;
class KComboBox;
class KIntNumInput;
@ -69,7 +69,7 @@ public:
void saveState( TQDataStream& stream );
void restoreState( TQDataStream& stream );
static KAboutData *createAboutData();
static TDEAboutData *createAboutData();
public slots:
virtual bool openURL( const KURL& );
@ -157,7 +157,7 @@ public:
PartFactory();
~PartFactory();
static KInstance * instance();
static TDEInstance * instance();
protected:
virtual KParts::Part * createPartObject( TQWidget *parentWidget = 0,
@ -168,7 +168,7 @@ protected:
const TQStringList& args = TQStringList() );
private:
static KInstance * s_instance;
static TDEInstance * s_instance;
};

@ -55,7 +55,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv )
query.append( path );
}
KInstance instance( "kio_mrml" );
TDEInstance instance( "kio_mrml" );
KMrml::Config config( instance.config() );
KMrml::ServerSettings settings = config.defaultSettings();

@ -57,20 +57,20 @@ static const KCmdLineOptions cmdLineOptions [] =
int main (int argc, char *argv [])
{
KAboutData aboutData
TDEAboutData aboutData
(
"kolourpaint",
I18N_NOOP ("KolourPaint"),
kpVersionText,
I18N_NOOP ("Paint Program for TDE"),
KAboutData::License_Custom,
TDEAboutData::License_Custom,
0/*copyright statement - see licence instead*/,
0/*no free text*/,
"http://www.kolourpaint.org/"
);
// this is _not_ the same as KAboutData::License_BSD
// this is _not_ the same as TDEAboutData::License_BSD
aboutData.setLicenseText (kpLicenseText);

@ -73,8 +73,8 @@ static KCmdLineOptions options[] =
int main( int argc, char *argv[] )
{
KAboutData about("kooka", I18N_NOOP("Kooka"), KOOKA_VERSION, I18N_NOOP(description),
KAboutData::License_GPL_V2, "(C) 2000 Klaas Freitag", 0,
TDEAboutData about("kooka", I18N_NOOP("Kooka"), KOOKA_VERSION, I18N_NOOP(description),
TDEAboutData::License_GPL_V2, "(C) 2000 Klaas Freitag", 0,
I18N_NOOP("http://kooka.kde.org"));
about.addAuthor( "Klaas Freitag", I18N_NOOP("developer"), "freitag@suse.de" );

@ -383,12 +383,12 @@ KURL Part::currentDocument()
}
//this don't go anywhere but is required by genericfactory.h
KAboutData* Part::createAboutData()
TDEAboutData* Part::createAboutData()
{
// the non-i18n name here must be the same as the directory in
// which the part's rc file is installed ('partrcdir' in the
// Makefile)
KAboutData* aboutData = new KAboutData("kpdfpart", I18N_NOOP("KPDF::Part"), "0.1");
TDEAboutData* aboutData = new TDEAboutData("kpdfpart", I18N_NOOP("KPDF::Part"), "0.1");
aboutData->addAuthor("Wilco Greven", 0, "greven@kde.org");
return aboutData;
}

@ -33,7 +33,7 @@ class KConfig;
class KDirWatch;
class KToggleAction;
class KSelectAction;
class KAboutData;
class TDEAboutData;
class KPrinter;
class ThumbnailList;
@ -73,7 +73,7 @@ public:
uint observerId() const { return PART_ID; }
void notifyViewportChanged( bool smoothMove );
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
ASYNC goToPage(uint page);
ASYNC openDocument(KURL doc);

@ -31,12 +31,12 @@ static KCmdLineOptions options[] =
int main(int argc, char** argv)
{
KAboutData about(
TDEAboutData about(
"kpdf",
I18N_NOOP("KPDF"),
version,
description,
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(C) 2002 Wilco Greven, Christophe Devriese\n(C) 2004-2005 Albert Astals Cid, Enrico Ros");
about.addAuthor("Wilco Greven", 0, "greven@kde.org");

@ -35,8 +35,8 @@ extern "C"
static const char description[] = I18N_NOOP( "Modeler for POV-Ray Scenes" );
KInstance* PMFactory::s_instance = 0L;
KAboutData* PMFactory::s_aboutData = 0L;
TDEInstance* PMFactory::s_instance = 0L;
TDEAboutData* PMFactory::s_aboutData = 0L;
PMFactory::PMFactory( )
{
@ -71,21 +71,21 @@ KParts::Part* PMFactory::createPartObject( TQWidget* parentWidget,
return part;
}
KInstance* PMFactory::instance( )
TDEInstance* PMFactory::instance( )
{
if( !s_instance )
s_instance = new KInstance( aboutData( ) );
s_instance = new TDEInstance( aboutData( ) );
return s_instance;
}
const KAboutData* PMFactory::aboutData( )
const TDEAboutData* PMFactory::aboutData( )
{
if( !s_aboutData )
{
s_aboutData =
new KAboutData( "kpovmodeler", I18N_NOOP( "KPovModeler" ),
new TDEAboutData( "kpovmodeler", I18N_NOOP( "KPovModeler" ),
KPOVMODELER_VERSION, description,
KAboutData::License_GPL, "(c) 2001-2006, Andreas Zehender" );
TDEAboutData::License_GPL, "(c) 2001-2006, Andreas Zehender" );
s_aboutData->addAuthor( "Andreas Zehender", 0,
"zehender@kde.org", "http://www.azweb.de" );
s_aboutData->addAuthor( "Luis Passos Carvalho", I18N_NOOP( "Textures" ),

@ -22,8 +22,8 @@
#include <kparts/factory.h>
class KAboutData;
class KInstance;
class TDEAboutData;
class TDEInstance;
class PMFactory : public KParts::Factory
{
@ -39,11 +39,11 @@ public:
const char* classname,
const TQStringList& args );
static KInstance* instance( );
static const KAboutData* aboutData( );
static TDEInstance* instance( );
static const TDEAboutData* aboutData( );
private:
static KInstance* s_instance;
static KAboutData* s_aboutData;
static TDEInstance* s_instance;
static TDEAboutData* s_aboutData;
};
#endif

@ -38,7 +38,7 @@ class PMPluginWorkaround : public Plugin
{
public:
PMPluginWorkaround( ) : Plugin( 0, 0 ) { };
static TQValueList<Plugin::PluginInfo> installedPlugins( const KInstance* instance )
static TQValueList<Plugin::PluginInfo> installedPlugins( const TDEInstance* instance )
{
return pluginInfos( instance );
}

@ -37,10 +37,10 @@ int main(int argc, char *argv[])
{
KAboutData aboutData( "kruler", I18N_NOOP("TDE Screen Ruler"),
TDEAboutData aboutData( "kruler", I18N_NOOP("TDE Screen Ruler"),
VERSION,
I18N_NOOP("A screen ruler for the Trinity Desktop Environment"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"(c) 2000, Till Krech",
freeFormText,
homePageURL);

@ -42,8 +42,8 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"),
KSNAPVERSION, description, KAboutData::License_GPL,
TDEAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"),
KSNAPVERSION, description, TDEAboutData::License_GPL,
"(c) 1997-2004, Richard J. Moore,\n(c) 2000, Matthias Ettrich,\n(c) 2002-2003 Aaron J. Seigo");
aboutData.addAuthor("Richard J. Moore",0, "rich@kde.org");
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");

@ -40,8 +40,8 @@ extern "C"
}
}
KInstance *KSVGPluginFactory::s_instance = 0;
KAboutData *KSVGPluginFactory::s_about = 0;
TDEInstance *KSVGPluginFactory::s_instance = 0;
TDEAboutData *KSVGPluginFactory::s_about = 0;
KSVGPluginFactory::KSVGPluginFactory(TQObject *parent, const char *name) : KParts::Factory(parent, name)
{
@ -75,16 +75,16 @@ KParts::Part *KSVGPluginFactory::createPartObject(TQWidget *parentWidget, const
return new KSVGPlugin(parentWidget, wname, parent, name, width, height);
}
KInstance *KSVGPluginFactory::instance()
TDEInstance *KSVGPluginFactory::instance()
{
if(!s_instance)
{
s_about = new KAboutData("ksvg", I18N_NOOP("KSVG"), "0.1", "KSVG\nFreedom for veKtors",KAboutData::License_GPL_V2,"(c) 2001-2003, The KSVG Team",0,"http://svg.kde.org");
s_about = new TDEAboutData("ksvg", I18N_NOOP("KSVG"), "0.1", "KSVG\nFreedom for veKtors",TDEAboutData::License_GPL_V2,"(c) 2001-2003, The KSVG Team",0,"http://svg.kde.org");
s_about->addAuthor("Rob Buis", 0, "buis@kde.org");
s_about->addAuthor("Nikolas Zimmermann", 0, "wildfox@kde.org");
s_about->addCredit("Adrian Page", 0);
s_about->addCredit("Andreas Streichardt", 0, "mop@spaceregents.de");
s_instance = new KInstance(s_about);
s_instance = new TDEInstance(s_about);
}
return s_instance;

@ -24,8 +24,8 @@
#include <kparts/factory.h>
#include <kparts/browserextension.h>
class KAboutData;
class KInstance;
class TDEAboutData;
class TDEInstance;
class KSVGPluginFactory : public KParts::Factory
{
@ -37,11 +37,11 @@ public:
virtual KParts::Part *createPartObject(TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList());
static KInstance *instance();
static TDEInstance *instance();
private:
static KInstance *s_instance;
static KAboutData *s_about;
static TDEInstance *s_instance;
static TDEAboutData *s_about;
};
class KSVGPluginBrowserExtension : public KParts::BrowserExtension

@ -46,7 +46,7 @@ void Worker::slotParsingFinished(bool, const TQString &)
int main(int argc, char **argv)
{
KAboutData *about = new KAboutData("KSVG printNode test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG printNode test app"));
TDEAboutData *about = new TDEAboutData("KSVG printNode test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG printNode test app"));
TDECmdLineArgs::init(argc, argv, about);
TDECmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -13,7 +13,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KAboutData *about = new KAboutData( "KSVG test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG standalone test app") );
TDEAboutData *about = new TDEAboutData( "KSVG test app", I18N_NOOP("KSVG test"), "0.1", I18N_NOOP("KSVG standalone test app") );
TDECmdLineArgs::init(argc, argv, about);
TDECmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -38,10 +38,10 @@ static KCmdLineOptions options[] =
extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
{
KAboutData about(
TDEAboutData about(
"kuickshow", I18N_NOOP( "KuickShow" ), KUICKSHOWVERSION,
I18N_NOOP("A fast and versatile image viewer" ),
KAboutData::License_GPL, "(c) 1998-2006, Carsten Pfeiffer",
TDEAboutData::License_GPL, "(c) 1998-2006, Carsten Pfeiffer",
0 /*text*/, "http://devel-home.kde.org/~pfeiffer/" );
about.addAuthor( "Carsten Pfeiffer", 0, "pfeiffer@kde.org",

@ -10,7 +10,7 @@
* kimagecanvas.cpp:
Fix checkBounds() to always keep the aspect ratio.
Create the factory with it's own KInstance.
Create the factory with it's own TDEInstance.
* kimagecanvas.{h,cpp}:
New method boundImageTo( QSize ). Fits the image into the
requested width and height.

@ -17,7 +17,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KAboutData about("kimageviewertest", I18N_NOOP("KImageViewerTest"), version, description, KAboutData::License_GPL, "(C) 2001 Matthias Kretz", 0, 0, "kretz@kde.org");
TDEAboutData about("kimageviewertest", I18N_NOOP("KImageViewerTest"), version, description, TDEAboutData::License_GPL, "(C) 2001 Matthias Kretz", 0, 0, "kretz@kde.org");
about.addAuthor( "Matthias Kretz", 0, "kretz@kde.org" );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );

@ -167,11 +167,11 @@ KViewViewer::~KViewViewer()
delete m_pBuffer;
}
KAboutData * KViewViewer::createAboutData()
TDEAboutData * KViewViewer::createAboutData()
{
KAboutData * aboutData = new KAboutData( "kviewviewer", I18N_NOOP( "KView" ),
TDEAboutData * aboutData = new TDEAboutData( "kviewviewer", I18N_NOOP( "KView" ),
KVIEW_VERSION, I18N_NOOP( "TDE Image Viewer Part" ),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP("(c) 1997-2002, The KView Developers") );
aboutData->addAuthor( "Matthias Kretz", I18N_NOOP( "Maintainer" ), "kretz@kde.org" );
aboutData->addAuthor( "Sirtaj Singh Kang", I18N_NOOP( "started it all" ), "taj@kde.org" );
@ -743,7 +743,7 @@ void KViewViewer::slotDel()
class PopupGUIClient : public KXMLGUIClient
{
public:
PopupGUIClient( KInstance *inst, const TQString &doc )
PopupGUIClient( TDEInstance *inst, const TQString &doc )
{
setInstance( inst );
setXML( doc );

@ -35,7 +35,7 @@ class KAction;
class KActionMenu;
class KToggleAction;
class KSelectAction;
class KAboutData;
class TDEAboutData;
class TQBuffer;
class TQSize;
class KDirWatch;
@ -54,7 +54,7 @@ class KDE_EXPORT KViewViewer : public KImageViewer::Viewer, public KViewViewerIf
virtual ~KViewViewer();
KImageViewer::Canvas * canvas() const { return m_pCanvas; }
static KAboutData * createAboutData();
static TDEAboutData * createAboutData();
virtual void setReadWrite( bool readwrite = true );
KParts::BrowserExtension * browserExtension() const { return m_pExtension; }

@ -17,7 +17,7 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KAboutData about("kviewviewertest", I18N_NOOP("KView Viewer Test"), version, description, KAboutData::License_GPL, "(C) 2001 Matthias Kretz", 0, 0, "kretz@kde.org");
TDEAboutData about("kviewviewertest", I18N_NOOP("KView Viewer Test"), version, description, TDEAboutData::License_GPL, "(C) 2001 Matthias Kretz", 0, 0, "kretz@kde.org");
about.addAuthor( "Matthias Kretz", 0, "kretz@kde.org" );
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );

@ -33,9 +33,9 @@ static KCmdLineOptions options[] =
extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
{
KAboutData about( "kview", I18N_NOOP( "KView" ),
TDEAboutData about( "kview", I18N_NOOP( "KView" ),
KVIEW_VERSION, description,
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP( "(c) 1997-2002, The KView Developers" ) );
about.addAuthor( "Matthias Kretz", I18N_NOOP( "Maintainer" ), "kretz@kde.org" );
about.addAuthor( "Sirtaj Singh Kang", I18N_NOOP( "started it all" ), "taj@kde.org" );

@ -262,12 +262,12 @@ bool PhotoBookPart::openURL(const KURL &url)
}
KAboutData* PhotoBookPart::createAboutData()
TDEAboutData* PhotoBookPart::createAboutData()
{
return new KAboutData(
return new TDEAboutData(
"photobook", I18N_NOOP("Photo Book"),
"1.0", I18N_NOOP("Easily browse a folder of photographs"),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP("Copyright (c) 2004,2005 Charles Samuels <charles@kde.org>")
);
}

@ -122,7 +122,7 @@ public:
~PhotoBookPart();
virtual bool openURL(const KURL &url);
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
virtual bool openFile();
public slots:

@ -37,11 +37,11 @@ EmptyMultiPage::EmptyMultiPage(TQWidget* parentWidget, const char* widgetName, T
setRenderer(&emptyRenderer);
}
KAboutData* EmptyMultiPage::createAboutData()
TDEAboutData* EmptyMultiPage::createAboutData()
{
return new KAboutData("emptymultipage", I18N_NOOP("Empty Multipage"),
return new TDEAboutData("emptymultipage", I18N_NOOP("Empty Multipage"),
"1.0", I18N_NOOP(""),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP("Copyright (c) 2005 Wilfried Huss"));
}

@ -41,7 +41,7 @@ public:
/// opens a file
virtual bool openFile() { return false; }
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
private:
EmptyRenderer emptyRenderer;

@ -1404,11 +1404,11 @@ void KViewPart::setStatusBarTextFromMultiPage( const TQString &msg )
emit setStatusBarText(msg);
}
KAboutData* KViewPart::createAboutData()
TDEAboutData* KViewPart::createAboutData()
{
return new KAboutData("kviewerpart", I18N_NOOP("Document Viewer Part"),
return new TDEAboutData("kviewerpart", I18N_NOOP("Document Viewer Part"),
"0.6", I18N_NOOP(""),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
I18N_NOOP("Copyright (c) 2005 Wilfried Huss"));
}

@ -9,13 +9,13 @@
#include <kparts/browserextension.h>
#include <tqtimer.h>
class KAboutData;
class TDEAboutData;
class KAboutDialog;
class KAccel;
class KAction;
class KConfig;
class KDirWatch;
class KInstance;
class TDEInstance;
class KMultiPage;
class KRadioAction;
class KSelectAction;
@ -38,7 +38,7 @@ public:
const char *name, const TQStringList& args);
virtual ~KViewPart();
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
bool isValid() { return multiPage; }

@ -34,8 +34,8 @@ static const char description[] = I18N_NOOP("Generic framework for viewer applic
int main(int argc, char **argv)
{
KAboutData about ("kviewshell", I18N_NOOP("KViewShell"), "0.6",
description, KAboutData::License_GPL,
TDEAboutData about ("kviewshell", I18N_NOOP("KViewShell"), "0.6",
description, TDEAboutData::License_GPL,
"(C) 2000, Matthias Hoelzer-Kluepfel\n"
"(C) 2004-2005, Wilfried Huss",
I18N_NOOP("Displays various document formats. "

@ -89,12 +89,12 @@ DjVuMultiPage::~DjVuMultiPage()
}
KAboutData* DjVuMultiPage::createAboutData()
TDEAboutData* DjVuMultiPage::createAboutData()
{
/* You obviously want to change this to match your setup */
KAboutData* about = new KAboutData("djvumultipage", I18N_NOOP("KDjView"), "0.1",
TDEAboutData* about = new TDEAboutData("djvumultipage", I18N_NOOP("KDjView"), "0.1",
I18N_NOOP("KViewshell DjVu Plugin."),
KAboutData::License_GPL,
TDEAboutData::License_GPL,
"Wilfried Huss",
I18N_NOOP("This program displays DjVu files."));

@ -119,7 +119,7 @@ public:
This member returns a structure that contains information about the
authors of the implementation
*/
static KAboutData* createAboutData();
static TDEAboutData* createAboutData();
/** Re-implementation of the print method */
virtual void print();

Loading…
Cancel
Save