@ -74,16 +74,16 @@ TQString KAboutTranslator::emailAddress() const
return mEmail ;
return mEmail ;
}
}
class K AboutDataPrivate
class TDE AboutDataPrivate
{
{
public :
public :
K AboutDataPrivate( )
TDE AboutDataPrivate( )
: translatorName ( " _: NAME OF TRANSLATORS \n Your names " )
: translatorName ( " _: NAME OF TRANSLATORS \n Your names " )
, translatorEmail ( " _: EMAIL OF TRANSLATORS \n Your emails " )
, translatorEmail ( " _: EMAIL OF TRANSLATORS \n Your emails " )
, productName ( 0 )
, productName ( 0 )
// , programLogo(0)
// , programLogo(0)
{ }
{ }
~ K AboutDataPrivate( )
~ TDE AboutDataPrivate( )
{
{
// delete programLogo;
// delete programLogo;
}
}
@ -95,7 +95,7 @@ public:
KAboutData: : K AboutData( const char * appName ,
TDEAboutData: : TDE AboutData( const char * appName ,
const char * programName ,
const char * programName ,
const char * version ,
const char * version ,
const char * shortDescription ,
const char * shortDescription ,
@ -115,7 +115,7 @@ KAboutData::KAboutData( const char *appName,
mBugEmailAddress ( bugsEmailAddress ) ,
mBugEmailAddress ( bugsEmailAddress ) ,
mLicenseText ( 0 )
mLicenseText ( 0 )
{
{
d = new K AboutDataPrivate;
d = new TDE AboutDataPrivate;
if ( appName ) {
if ( appName ) {
const char * p = strrchr ( appName , ' / ' ) ;
const char * p = strrchr ( appName , ' / ' ) ;
@ -127,7 +127,7 @@ KAboutData::KAboutData( const char *appName,
mAppName = 0 ;
mAppName = 0 ;
}
}
KAboutData: : ~ K AboutData( )
TDEAboutData: : ~ TDE AboutData( )
{
{
if ( mLicenseKey = = License_File )
if ( mLicenseKey = = License_File )
delete [ ] mLicenseText ;
delete [ ] mLicenseText ;
@ -135,108 +135,108 @@ KAboutData::~KAboutData()
}
}
void
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 )
const char * emailAddress , const char * webAddress )
{
{
mAuthorList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
mAuthorList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
}
}
void
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 )
const char * emailAddress , const char * webAddress )
{
{
mCreditList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
mCreditList . append ( KAboutPerson ( name , task , emailAddress , webAddress ) ) ;
}
}
void
void
K AboutData: : setTranslator ( const char * name , const char * emailAddress )
TDE AboutData: : setTranslator ( const char * name , const char * emailAddress )
{
{
d - > translatorName = name ;
d - > translatorName = name ;
d - > translatorEmail = emailAddress ;
d - > translatorEmail = emailAddress ;
}
}
void
void
K AboutData: : setLicenseText ( const char * licenseText )
TDE AboutData: : setLicenseText ( const char * licenseText )
{
{
mLicenseText = licenseText ;
mLicenseText = licenseText ;
mLicenseKey = License_Custom ;
mLicenseKey = License_Custom ;
}
}
void
void
K AboutData: : setLicenseTextFile ( const TQString & file )
TDE AboutData: : setLicenseTextFile ( const TQString & file )
{
{
mLicenseText = tqstrdup ( TQFile : : encodeName ( file ) ) ;
mLicenseText = tqstrdup ( TQFile : : encodeName ( file ) ) ;
mLicenseKey = License_File ;
mLicenseKey = License_File ;
}
}
void
void
K AboutData: : setAppName ( const char * appName )
TDE AboutData: : setAppName ( const char * appName )
{
{
mAppName = appName ;
mAppName = appName ;
}
}
void
void
K AboutData: : setProgramName ( const char * programName )
TDE AboutData: : setProgramName ( const char * programName )
{
{
mProgramName = programName ;
mProgramName = programName ;
}
}
void
void
K AboutData: : setVersion ( const char * version )
TDE AboutData: : setVersion ( const char * version )
{
{
mVersion = version ;
mVersion = version ;
}
}
void
void
K AboutData: : setShortDescription ( const char * shortDescription )
TDE AboutData: : setShortDescription ( const char * shortDescription )
{
{
mShortDescription = shortDescription ;
mShortDescription = shortDescription ;
}
}
void
void
K AboutData: : setLicense ( LicenseKey licenseKey )
TDE AboutData: : setLicense ( LicenseKey licenseKey )
{
{
mLicenseKey = licenseKey ;
mLicenseKey = licenseKey ;
}
}
void
void
K AboutData: : setCopyrightStatement ( const char * copyrightStatement )
TDE AboutData: : setCopyrightStatement ( const char * copyrightStatement )
{
{
mCopyrightStatement = copyrightStatement ;
mCopyrightStatement = copyrightStatement ;
}
}
void
void
K AboutData: : setOtherText ( const char * otherText )
TDE AboutData: : setOtherText ( const char * otherText )
{
{
mOtherText = otherText ;
mOtherText = otherText ;
}
}
void
void
K AboutData: : setHomepage ( const char * homepage )
TDE AboutData: : setHomepage ( const char * homepage )
{
{
mHomepageAddress = homepage ;
mHomepageAddress = homepage ;
}
}
void
void
K AboutData: : setBugAddress ( const char * bugAddress )
TDE AboutData: : setBugAddress ( const char * bugAddress )
{
{
mBugEmailAddress = bugAddress ;
mBugEmailAddress = bugAddress ;
}
}
void
void
K AboutData: : setProductName ( const char * productName )
TDE AboutData: : setProductName ( const char * productName )
{
{
d - > productName = productName ;
d - > productName = productName ;
}
}
const char *
const char *
K AboutData: : appName ( ) const
TDE AboutData: : appName ( ) const
{
{
return mAppName ;
return mAppName ;
}
}
const char *
const char *
K AboutData: : productName ( ) const
TDE AboutData: : productName ( ) const
{
{
if ( d - > productName )
if ( d - > productName )
return d - > productName ;
return d - > productName ;
@ -245,7 +245,7 @@ KAboutData::productName() const
}
}
TQString
TQString
K AboutData: : programName ( ) const
TDE AboutData: : programName ( ) const
{
{
if ( mProgramName & & * mProgramName )
if ( mProgramName & & * mProgramName )
return i18n ( mProgramName ) ;
return i18n ( mProgramName ) ;
@ -254,13 +254,13 @@ KAboutData::programName() const
}
}
/*
/*
TQImage
TQImage
K AboutData: : programLogo ( ) const
TDE AboutData: : programLogo ( ) const
{
{
return d - > programLogo ? ( * d - > programLogo ) : TQImage ( ) ;
return d - > programLogo ? ( * d - > programLogo ) : TQImage ( ) ;
}
}
void
void
K AboutData: : setProgramLogo ( const TQImage & image )
TDE AboutData: : setProgramLogo ( const TQImage & image )
{
{
if ( ! d - > programLogo )
if ( ! d - > programLogo )
d - > programLogo = new TQImage ( image ) ;
d - > programLogo = new TQImage ( image ) ;
@ -269,13 +269,13 @@ KAboutData::setProgramLogo(const TQImage& image)
}
}
*/
*/
TQString
TQString
K AboutData: : version ( ) const
TDE AboutData: : version ( ) const
{
{
return TQString : : fromLatin1 ( mVersion ) ;
return TQString : : fromLatin1 ( mVersion ) ;
}
}
TQString
TQString
K AboutData: : shortDescription ( ) const
TDE AboutData: : shortDescription ( ) const
{
{
if ( mShortDescription & & * mShortDescription )
if ( mShortDescription & & * mShortDescription )
return i18n ( mShortDescription ) ;
return i18n ( mShortDescription ) ;
@ -284,31 +284,31 @@ KAboutData::shortDescription() const
}
}
TQString
TQString
K AboutData: : homepage ( ) const
TDE AboutData: : homepage ( ) const
{
{
return TQString : : fromLatin1 ( mHomepageAddress ) ;
return TQString : : fromLatin1 ( mHomepageAddress ) ;
}
}
TQString
TQString
K AboutData: : bugAddress ( ) const
TDE AboutData: : bugAddress ( ) const
{
{
return TQString : : fromLatin1 ( mBugEmailAddress ) ;
return TQString : : fromLatin1 ( mBugEmailAddress ) ;
}
}
const TQValueList < KAboutPerson >
const TQValueList < KAboutPerson >
K AboutData: : authors ( ) const
TDE AboutData: : authors ( ) const
{
{
return mAuthorList ;
return mAuthorList ;
}
}
const TQValueList < KAboutPerson >
const TQValueList < KAboutPerson >
K AboutData: : credits ( ) const
TDE AboutData: : credits ( ) const
{
{
return mCreditList ;
return mCreditList ;
}
}
const TQValueList < KAboutTranslator >
const TQValueList < KAboutTranslator >
K AboutData: : translators ( ) const
TDE AboutData: : translators ( ) const
{
{
TQValueList < KAboutTranslator > personList ;
TQValueList < KAboutTranslator > personList ;
@ -369,7 +369,7 @@ KAboutData::translators() const
}
}
TQString
TQString
K AboutData: : aboutTranslationTeam ( )
TDE AboutData: : aboutTranslationTeam ( )
{
{
return i18n ( " replace this with information about your translation team " ,
return i18n ( " replace this with information about your translation team " ,
" <p>TDE is translated into many languages thanks to the work "
" <p>TDE is translated into many languages thanks to the work "
@ -377,7 +377,7 @@ KAboutData::aboutTranslationTeam()
}
}
TQString
TQString
K AboutData: : otherText ( ) const
TDE AboutData: : otherText ( ) const
{
{
if ( mOtherText & & * mOtherText )
if ( mOtherText & & * mOtherText )
return i18n ( mOtherText ) ;
return i18n ( mOtherText ) ;
@ -387,7 +387,7 @@ KAboutData::otherText() const
TQString
TQString
K AboutData: : license ( ) const
TDE AboutData: : license ( ) const
{
{
TQString result ;
TQString result ;
if ( ! copyrightStatement ( ) . isEmpty ( ) )
if ( ! copyrightStatement ( ) . isEmpty ( ) )
@ -458,7 +458,7 @@ KAboutData::license() const
}
}
TQString
TQString
K AboutData: : copyrightStatement ( ) const
TDE AboutData: : copyrightStatement ( ) const
{
{
if ( mCopyrightStatement & & * mCopyrightStatement )
if ( mCopyrightStatement & & * mCopyrightStatement )
return i18n ( mCopyrightStatement ) ;
return i18n ( mCopyrightStatement ) ;