Rename KInstance and KAboutData to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 3b7e8b0792
commit 3e0cba977f

@ -159,8 +159,8 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
KAboutData aboutData("convert-presets", I18N_NOOP("convert-presets"), TDEAboutData aboutData("convert-presets", I18N_NOOP("convert-presets"),
VERSION, description, KAboutData::License_GPL, VERSION, description, TDEAboutData::License_GPL,
"(c) 2003-2005 Martin Witte", "(c) 2003-2005 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -201,11 +201,11 @@ ConfigPageInfo AlsaSoundDevice::createConfigurationPage()
AboutPageInfo AlsaSoundDevice::createAboutPage() AboutPageInfo AlsaSoundDevice::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("ALSA Sound Plugin for KRadio"), I18N_NOOP("ALSA Sound Plugin for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2005 Martin Witte", "(c) 2005 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -185,11 +185,11 @@ ConfigPageInfo RadioDocking::createConfigurationPage()
AboutPageInfo RadioDocking::createAboutPage() AboutPageInfo RadioDocking::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Docking Menu for KRadio"), I18N_NOOP("Docking Menu for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -145,11 +145,11 @@ ConfigPageInfo QuickBar::createConfigurationPage()
AboutPageInfo QuickBar::createAboutPage() AboutPageInfo QuickBar::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Quickback for KRadio"), I18N_NOOP("Quickback for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -600,11 +600,11 @@ void RadioView::addCommonConfigurationTab(TQTabWidget *c)
AboutPageInfo RadioView::createAboutPage() AboutPageInfo RadioView::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Standard Radio Display for KRadio"), I18N_NOOP("Standard Radio Display for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -336,11 +336,11 @@ ConfigPageInfo LircSupport::createConfigurationPage()
AboutPageInfo LircSupport::createAboutPage() AboutPageInfo LircSupport::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Linux Infrared Remote Control Support for KRadio"), I18N_NOOP("Linux Infrared Remote Control Support for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte", "(c) 2002-2005 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -177,11 +177,11 @@ ConfigPageInfo OSSSoundDevice::createConfigurationPage()
AboutPageInfo OSSSoundDevice::createAboutPage() AboutPageInfo OSSSoundDevice::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("OSS Sound Plugin for KRadio"), I18N_NOOP("OSS Sound Plugin for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2004 Martin Witte", "(c) 2004 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -122,11 +122,11 @@ ConfigPageInfo Radio::createConfigurationPage()
AboutPageInfo Radio::createAboutPage() AboutPageInfo Radio::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Radio Device Multiplexer and Station Management for KRadio"), I18N_NOOP("Radio Device Multiplexer and Station Management for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -156,11 +156,11 @@ ConfigPageInfo RecordingMonitor::createConfigurationPage()
AboutPageInfo RecordingMonitor::createAboutPage() AboutPageInfo RecordingMonitor::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Recording Monitor Plugin for KRadio"), I18N_NOOP("Recording Monitor Plugin for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte", "(c) 2002-2005 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -136,11 +136,11 @@ ConfigPageInfo Recording::createConfigurationPage()
AboutPageInfo Recording::createAboutPage() AboutPageInfo Recording::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Recording Monitor for KRadio"), I18N_NOOP("Recording Monitor for KRadio"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte", "(c) 2002-2005 Martin Witte",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -273,14 +273,14 @@ ConfigPageInfo TimeControl::createConfigurationPage()
AboutPageInfo TimeControl::createAboutPage() AboutPageInfo TimeControl::createAboutPage()
{ {
/* KAboutData aboutData("kradio", /* TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("Time Control Plugin for KRadio." I18N_NOOP("Time Control Plugin for KRadio."
"<P>" "<P>"
"Provides Alarms and Sleep Countdown" "Provides Alarms and Sleep Countdown"
"<P>"), "<P>"),
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -1082,7 +1082,7 @@ ConfigPageInfo V4LRadio::createConfigurationPage()
AboutPageInfo V4LRadio::createAboutPage() AboutPageInfo V4LRadio::createAboutPage()
{ {
KAboutData aboutData("kradio", TDEAboutData aboutData("kradio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("V4L/V4L2 Plugin for KRadio." I18N_NOOP("V4L/V4L2 Plugin for KRadio."
@ -1090,7 +1090,7 @@ AboutPageInfo V4LRadio::createAboutPage()
"Provides Support for V4L/V4L2 based Radio Cards" "Provides Support for V4L/V4L2 based Radio Cards"
"<P>"), "<P>"),
0, 0,
//KAboutData::License_GPL, //TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass", "(c) 2002-2005 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -54,7 +54,7 @@ public:
// copied (renamed and extended) from kaboutdialog.cpp // copied (renamed and extended) from kaboutdialog.cpp
// original: KAboutContainerBase // original: KAboutContainerBase
KRadioAboutWidget::KRadioAboutWidget(const KAboutData &aboutData, int layoutType, TQWidget *_parent, KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutType, TQWidget *_parent,
char *_name ) char *_name )
: TQWidget( _parent, _name ), : TQWidget( _parent, _name ),
mImageLabel(0), mTitleLabel(0), mIconLabel(0),mVersionLabel(0), mImageLabel(0), mTitleLabel(0), mIconLabel(0),mVersionLabel(0),
@ -489,9 +489,9 @@ void KRadioAboutWidget::slotMailClick( const TQString &/*_name*/,
// copied (and renamed) from kaboutapplication.cpp // copied (and renamed) from kaboutapplication.cpp
// original: KAboutApplication::buildDialog // original: KAboutApplication::buildDialog
void KRadioAboutWidget::setAboutData(const KAboutData &_aboutData) void KRadioAboutWidget::setAboutData(const TDEAboutData &_aboutData)
{ {
const KAboutData *aboutData = &_aboutData; const TDEAboutData *aboutData = &_aboutData;
if (aboutData->programName().length()) { if (aboutData->programName().length()) {
setProduct( aboutData->programName(), aboutData->version(), setProduct( aboutData->programName(), aboutData->version(),
TQString(), TQString() ); TQString(), TQString() );
@ -560,7 +560,7 @@ void KRadioAboutWidget::setAboutData(const KAboutData &_aboutData)
0,0); 0,0);
} }
TQLabel *label = new TQLabel(KAboutData::aboutTranslationTeam(), TQLabel *label = new TQLabel(TDEAboutData::aboutTranslationTeam(),
translatorPage); translatorPage);
label->adjustSize(); label->adjustSize();
label->setMinimumSize(label->sizeHint()); label->setMinimumSize(label->sizeHint());

@ -34,7 +34,7 @@ class TQFrame;
class KAboutContainer; class KAboutContainer;
class TQTabWidget; class TQTabWidget;
class TQVBoxLayout; class TQVBoxLayout;
class KAboutData; class TDEAboutData;
#include <tqlabel.h> #include <tqlabel.h>
@ -92,11 +92,11 @@ class KRadioAboutWidget : public TQWidget
}; };
public: public:
KRadioAboutWidget(const KAboutData &abtData, int layoutType, TQWidget *parent = 0, char *name = 0); KRadioAboutWidget(const TDEAboutData &abtData, int layoutType, TQWidget *parent = 0, char *name = 0);
virtual void show( void ); virtual void show( void );
virtual TQSize sizeHint( void ) const; virtual TQSize sizeHint( void ) const;
void setAboutData(const KAboutData &abtData); void setAboutData(const TDEAboutData &abtData);
void setTitle( const TQString &title ); void setTitle( const TQString &title );
void setImage( const TQString &fileName ); void setImage( const TQString &fileName );

@ -55,10 +55,10 @@ AboutPageInfo KRadioAbout::createAboutPage ()
"<P>" "<P>"
); );
KAboutData aboutData("kradio", "KRadio", TDEAboutData aboutData("kradio", "KRadio",
VERSION, VERSION,
description, description,
KAboutData::License_GPL, TDEAboutData::License_GPL,
"(c) 2002-2006 Martin Witte, Klas Kalass", "(c) 2002-2006 Martin Witte, Klas Kalass",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

@ -33,8 +33,8 @@ int main(int argc, char *argv[])
{ {
BlockProfiler profiler_about("main::aboutdata"); BlockProfiler profiler_about("main::aboutdata");
KAboutData aboutData("kradio", I18N_NOOP("KRadio"), TDEAboutData aboutData("kradio", I18N_NOOP("KRadio"),
KRADIO_VERSION, "KRadio", KAboutData::License_GPL, KRADIO_VERSION, "KRadio", TDEAboutData::License_GPL,
"(c) 2002-2005 Martin Witte, Klas Kalass, Frank Schwanz", "(c) 2002-2005 Martin Witte, Klas Kalass, Frank Schwanz",
0, 0,
"http://sourceforge.net/projects/kradio", "http://sourceforge.net/projects/kradio",

Loading…
Cancel
Save