@ -71,10 +71,10 @@ TQString KAboutTranslator::emailAddress() const
return mEmail ;
}
class K AboutDataPrivate
class TDE AboutDataPrivate
{
public :
K AboutDataPrivate( )
TDE AboutDataPrivate( )
: translatorName ( " _: NAME OF TRANSLATORS \n Your names " )
, translatorEmail ( " _: EMAIL OF TRANSLATORS \n Your emails " )
, productName ( 0 )
@ -82,7 +82,7 @@ public:
, customAuthorTextEnabled ( false )
, mTranslatedProgramName ( 0 )
{ }
~ K AboutDataPrivate( )
~ TDE AboutDataPrivate( )
{
delete programLogo ;
delete [ ] mTranslatedProgramName ;
@ -96,9 +96,9 @@ public:
const char * mTranslatedProgramName ;
} ;
const char * K AboutData: : defaultBugTracker = " http://bugs.trinitydesktop.org " ;
const char * TDE AboutData: : defaultBugTracker = " http://bugs.trinitydesktop.org " ;
KAboutData: : K AboutData( const char * appName ,
TDEAboutData: : TDE AboutData( const char * appName ,
const char * programName ,
const char * version ,
const char * shortDescription ,
@ -118,7 +118,7 @@ KAboutData::KAboutData( const char *appName,
mBugEmailAddress ( ( bugsEmailAddress ! = 0 ) ? bugsEmailAddress : defaultBugTracker ) ,
mLicenseText ( 0 )
{
d = new K AboutDataPrivate;
d = new TDE AboutDataPrivate;
if ( appName ) {
const char * p = strrchr ( appName , ' / ' ) ;
@ -130,7 +130,7 @@ KAboutData::KAboutData( const char *appName,
mAppName = 0 ;
}
KAboutData: : ~ K AboutData( )
TDEAboutData: : ~ TDE AboutData( )
{
if ( mLicenseKey = = License_File )
delete [ ] mLicenseText ;
@ -138,109 +138,109 @@ KAboutData::~KAboutData()
}
void
K AboutData: : addAuthor ( const char * name , const char * task ,
TDE AboutData: : addAuthor ( const char * name , const char * task ,
const char * emailAddress , const char * webAddress )
{
mAuthorList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
}
void
K AboutData: : addCredit ( const char * name , const char * task ,
TDE AboutData: : addCredit ( const char * name , const char * task ,
const char * emailAddress , const char * webAddress )
{
mCreditList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
}
void
K AboutData: : setTranslator ( const char * name , const char * emailAddress )
TDE AboutData: : setTranslator ( const char * name , const char * emailAddress )
{
d - > translatorName = name ;
d - > translatorEmail = emailAddress ;
}
void
K AboutData: : setLicenseText ( const char * licenseText )
TDE AboutData: : setLicenseText ( const char * licenseText )
{
mLicenseText = licenseText ;
mLicenseKey = License_Custom ;
}
void
K AboutData: : setLicenseTextFile ( const TQString & file )
TDE AboutData: : setLicenseTextFile ( const TQString & file )
{
mLicenseText = tqstrdup ( TQFile : : encodeName ( file ) ) ;
mLicenseKey = License_File ;
}
void
K AboutData: : setAppName ( const char * appName )
TDE AboutData: : setAppName ( const char * appName )
{
mAppName = appName ;
}
void
K AboutData: : setProgramName ( const char * programName )
TDE AboutData: : setProgramName ( const char * programName )
{
mProgramName = programName ;
translateInternalProgramName ( ) ;
}
void
K AboutData: : setVersion ( const char * version )
TDE AboutData: : setVersion ( const char * version )
{
mVersion = version ;
}
void
K AboutData: : setShortDescription ( const char * shortDescription )
TDE AboutData: : setShortDescription ( const char * shortDescription )
{
mShortDescription = shortDescription ;
}
void
K AboutData: : setLicense ( LicenseKey licenseKey )
TDE AboutData: : setLicense ( LicenseKey licenseKey )
{
mLicenseKey = licenseKey ;
}
void
K AboutData: : setCopyrightStatement ( const char * copyrightStatement )
TDE AboutData: : setCopyrightStatement ( const char * copyrightStatement )
{
mCopyrightStatement = copyrightStatement ;
}
void
K AboutData: : setOtherText ( const char * otherText )
TDE AboutData: : setOtherText ( const char * otherText )
{
mOtherText = otherText ;
}
void
K AboutData: : setHomepage ( const char * homepage )
TDE AboutData: : setHomepage ( const char * homepage )
{
mHomepageAddress = homepage ;
}
void
K AboutData: : setBugAddress ( const char * bugAddress )
TDE AboutData: : setBugAddress ( const char * bugAddress )
{
mBugEmailAddress = bugAddress ;
}
void
K AboutData: : setProductName ( const char * productName )
TDE AboutData: : setProductName ( const char * productName )
{
d - > productName = productName ;
}
const char *
K AboutData: : appName ( ) const
TDE AboutData: : appName ( ) const
{
return mAppName ;
}
const char *
K AboutData: : productName ( ) const
TDE AboutData: : productName ( ) const
{
if ( d - > productName )
return d - > productName ;
@ -249,7 +249,7 @@ KAboutData::productName() const
}
TQString
K AboutData: : programName ( ) const
TDE AboutData: : programName ( ) const
{
if ( mProgramName & & * mProgramName )
return i18n ( mProgramName ) ;
@ -258,7 +258,7 @@ KAboutData::programName() const
}
const char *
K AboutData: : internalProgramName ( ) const
TDE AboutData: : internalProgramName ( ) const
{
if ( d - > mTranslatedProgramName )
return d - > mTranslatedProgramName ;
@ -270,7 +270,7 @@ KAboutData::internalProgramName() const
// because it may deadlock. Since i18n() needs it, when KLocale is available
// the i18n() call will be done here in advance.
void
K AboutData: : translateInternalProgramName ( ) const
TDE AboutData: : translateInternalProgramName ( ) const
{
delete [ ] d - > mTranslatedProgramName ;
d - > mTranslatedProgramName = 0 ;
@ -279,13 +279,13 @@ KAboutData::translateInternalProgramName() const
}
TQImage
K AboutData: : programLogo ( ) const
TDE AboutData: : programLogo ( ) const
{
return d - > programLogo ? ( * d - > programLogo ) : TQImage ( ) ;
}
void
K AboutData: : setProgramLogo ( const TQImage & image )
TDE AboutData: : setProgramLogo ( const TQImage & image )
{
if ( ! d - > programLogo )
d - > programLogo = new TQImage ( image ) ;
@ -294,13 +294,13 @@ KAboutData::setProgramLogo(const TQImage& image)
}
TQString
K AboutData: : version ( ) const
TDE AboutData: : version ( ) const
{
return TQString : : fromLatin1 ( mVersion ) ;
}
TQString
K AboutData: : shortDescription ( ) const
TDE AboutData: : shortDescription ( ) const
{
if ( mShortDescription & & * mShortDescription )
return i18n ( mShortDescription ) ;
@ -309,31 +309,31 @@ KAboutData::shortDescription() const
}
TQString
K AboutData: : homepage ( ) const
TDE AboutData: : homepage ( ) const
{
return TQString : : fromLatin1 ( mHomepageAddress ) ;
}
TQString
K AboutData: : bugAddress ( ) const
TDE AboutData: : bugAddress ( ) const
{
return TQString : : fromLatin1 ( mBugEmailAddress ) ;
}
const TQValueList < KAboutPerson >
K AboutData: : authors ( ) const
TDE AboutData: : authors ( ) const
{
return mAuthorList ;
}
const TQValueList < KAboutPerson >
K AboutData: : credits ( ) const
TDE AboutData: : credits ( ) const
{
return mCreditList ;
}
const TQValueList < KAboutTranslator >
K AboutData: : translators ( ) const
TDE AboutData: : translators ( ) const
{
TQValueList < KAboutTranslator > personList ;
@ -382,7 +382,7 @@ KAboutData::translators() const
}
TQString
K AboutData: : aboutTranslationTeam ( )
TDE AboutData: : aboutTranslationTeam ( )
{
return i18n ( " replace this with information about your translation team " ,
" <p>KDE is translated into many languages thanks to the work "
@ -393,7 +393,7 @@ KAboutData::aboutTranslationTeam()
}
TQString
K AboutData: : otherText ( ) const
TDE AboutData: : otherText ( ) const
{
if ( mOtherText & & * mOtherText )
return i18n ( mOtherText ) ;
@ -403,7 +403,7 @@ KAboutData::otherText() const
TQString
K AboutData: : license ( ) const
TDE AboutData: : license ( ) const
{
TQString result ;
if ( ! copyrightStatement ( ) . isEmpty ( ) )
@ -466,7 +466,7 @@ KAboutData::license() const
}
TQString
K AboutData: : copyrightStatement ( ) const
TDE AboutData: : copyrightStatement ( ) const
{
if ( mCopyrightStatement & & * mCopyrightStatement )
return i18n ( mCopyrightStatement ) ;
@ -475,25 +475,25 @@ KAboutData::copyrightStatement() const
}
TQString
K AboutData: : customAuthorPlainText ( ) const
TDE AboutData: : customAuthorPlainText ( ) const
{
return d - > customAuthorPlainText ;
}
TQString
K AboutData: : customAuthorRichText ( ) const
TDE AboutData: : customAuthorRichText ( ) const
{
return d - > customAuthorRichText ;
}
bool
K AboutData: : customAuthorTextEnabled ( ) const
TDE AboutData: : customAuthorTextEnabled ( ) const
{
return d - > customAuthorTextEnabled ;
}
void
K AboutData: : setCustomAuthorText ( const TQString & plainText , const TQString & richText )
TDE AboutData: : setCustomAuthorText ( const TQString & plainText , const TQString & richText )
{
d - > customAuthorPlainText = plainText ;
d - > customAuthorRichText = richText ;
@ -502,7 +502,7 @@ KAboutData::setCustomAuthorText(const TQString &plainText, const TQString &richT
}
void
K AboutData: : unsetCustomAuthorText ( )
TDE AboutData: : unsetCustomAuthorText ( )
{
d - > customAuthorPlainText = TQString : : null ;
d - > customAuthorRichText = TQString : : null ;