|
|
@ -27,7 +27,6 @@
|
|
|
|
#ifndef _TDEABOUTDATA_H_
|
|
|
|
#ifndef _TDEABOUTDATA_H_
|
|
|
|
#define _TDEABOUTDATA_H_
|
|
|
|
#define _TDEABOUTDATA_H_
|
|
|
|
|
|
|
|
|
|
|
|
class TDEAboutPersonPrivate;
|
|
|
|
|
|
|
|
class TDEAboutDataPrivate;
|
|
|
|
class TDEAboutDataPrivate;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -67,19 +66,14 @@ public:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param webAddress Home page of the person.
|
|
|
|
* @param webAddress Home page of the person.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TDEAboutPerson( const char *name, const char *task,
|
|
|
|
TDEAboutPerson(const char *name = nullptr, const char *task = nullptr,
|
|
|
|
const char *emailAddress, const char *webAddress )
|
|
|
|
const char *emailAddress = nullptr, const char *webAddress = nullptr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mName = name;
|
|
|
|
mName = name;
|
|
|
|
mTask = task;
|
|
|
|
mTask = task;
|
|
|
|
mEmailAddress = emailAddress;
|
|
|
|
mEmailAddress = emailAddress;
|
|
|
|
mWebAddress = webAddress;
|
|
|
|
mWebAddress = webAddress;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @internal
|
|
|
|
|
|
|
|
* Don't use. Required by QValueList
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
TDEAboutPerson() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* The person's name
|
|
|
|
* The person's name
|
|
|
@ -109,16 +103,13 @@ public:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TQString webAddress() const;
|
|
|
|
TQString webAddress() const;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
protected:
|
|
|
|
const char *mName;
|
|
|
|
TQCString mName;
|
|
|
|
const char *mTask;
|
|
|
|
TQCString mTask;
|
|
|
|
const char *mEmailAddress;
|
|
|
|
TQCString mEmailAddress;
|
|
|
|
const char *mWebAddress;
|
|
|
|
TQCString mWebAddress;
|
|
|
|
|
|
|
|
|
|
|
|
TDEAboutPersonPrivate *d;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class TDEAboutTranslatorPrivate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* This structure is used to store information about a translator.
|
|
|
|
* This structure is used to store information about a translator.
|
|
|
|
* It can store the translator's name and an email address.
|
|
|
|
* It can store the translator's name and an email address.
|
|
|
@ -161,7 +152,6 @@ public:
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
TQString mName;
|
|
|
|
TQString mName;
|
|
|
|
TQString mEmail;
|
|
|
|
TQString mEmail;
|
|
|
|
TDEAboutTranslatorPrivate* d;
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -237,16 +227,16 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* This defaults to the trinitydesktop.org bug system.
|
|
|
|
* This defaults to the trinitydesktop.org bug system.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TDEAboutData( const char *appName,
|
|
|
|
TDEAboutData(const char *appName,
|
|
|
|
const char *programName,
|
|
|
|
const char *programName,
|
|
|
|
const char *version,
|
|
|
|
const char *version,
|
|
|
|
const char *shortDescription = 0,
|
|
|
|
const char *shortDescription = nullptr,
|
|
|
|
int licenseType = License_Unknown,
|
|
|
|
int licenseType = License_Unknown,
|
|
|
|
const char *copyrightStatement = 0,
|
|
|
|
const char *copyrightStatement = nullptr,
|
|
|
|
const char *text = 0,
|
|
|
|
const char *text = nullptr,
|
|
|
|
const char *homePageAddress = 0,
|
|
|
|
const char *homePageAddress = nullptr,
|
|
|
|
const char *bugsEmailAddress = 0
|
|
|
|
const char *bugsEmailAddress = nullptr
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
~TDEAboutData();
|
|
|
|
~TDEAboutData();
|
|
|
|
|
|
|
|
|
|
|
@ -270,9 +260,9 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void addAuthor( const char *name,
|
|
|
|
void addAuthor( const char *name,
|
|
|
|
const char *task=0,
|
|
|
|
const char *task=0,
|
|
|
|
const char *emailAddress=0,
|
|
|
|
const char *emailAddress=0,
|
|
|
|
const char *webAddress=0 );
|
|
|
|
const char *webAddress=0 );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines a person that deserves credit. You can call this function
|
|
|
|
* Defines a person that deserves credit. You can call this function
|
|
|
@ -295,8 +285,8 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void addCredit( const char *name,
|
|
|
|
void addCredit( const char *name,
|
|
|
|
const char *task=0,
|
|
|
|
const char *task=0,
|
|
|
|
const char *emailAddress=0,
|
|
|
|
const char *emailAddress=0,
|
|
|
|
const char *webAddress=0 );
|
|
|
|
const char *webAddress=0 );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets the name of the translator of the gui. Since this depends
|
|
|
|
* Sets the name of the translator of the gui. Since this depends
|
|
|
@ -354,7 +344,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* @param appName The application name. Example: "kate".
|
|
|
|
* @param appName The application name. Example: "kate".
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setAppName( const char *appName );
|
|
|
|
void setAppName( const char *appName );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the displayable program name string.
|
|
|
|
* Defines the displayable program name string.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -367,7 +357,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the program logo.
|
|
|
|
* Defines the program logo.
|
|
|
|
* Use this if you need to have application logo
|
|
|
|
* Use this if you need to have application logo
|
|
|
|
* in AboutData other than application icon.
|
|
|
|
* in AboutData other than application icon.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param image logo image.
|
|
|
|
* @param image logo image.
|
|
|
@ -382,7 +372,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* @param version The program version.
|
|
|
|
* @param version The program version.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setVersion( const char* version );
|
|
|
|
void setVersion( const char* version );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines a short description of what the program does.
|
|
|
|
* Defines a short description of what the program does.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -391,14 +381,14 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* with syntax highlithing support.").
|
|
|
|
* with syntax highlithing support.").
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setShortDescription( const char *shortDescription );
|
|
|
|
void setShortDescription( const char *shortDescription );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the license identifier.
|
|
|
|
* Defines the license identifier.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param licenseKey The license identifier.
|
|
|
|
* @param licenseKey The license identifier.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setLicense( LicenseKey licenseKey);
|
|
|
|
void setLicense( LicenseKey licenseKey);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the copyright statement to show when displaying the license.
|
|
|
|
* Defines the copyright statement to show when displaying the license.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -408,7 +398,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* is not used.
|
|
|
|
* is not used.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setCopyrightStatement( const char *copyrightStatement );
|
|
|
|
void setCopyrightStatement( const char *copyrightStatement );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the additional text to show in the about dialog.
|
|
|
|
* Defines the additional text to show in the about dialog.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -417,7 +407,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* should be marked for translation.
|
|
|
|
* should be marked for translation.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setOtherText( const char *otherText );
|
|
|
|
void setOtherText( const char *otherText );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the program homepage.
|
|
|
|
* Defines the program homepage.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -426,7 +416,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* is correct, "kate-editor.org" is not.
|
|
|
|
* is correct, "kate-editor.org" is not.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setHomepage( const char *homepage );
|
|
|
|
void setHomepage( const char *homepage );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the address where bug reports should be sent.
|
|
|
|
* Defines the address where bug reports should be sent.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -434,7 +424,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* This defaults to the kde.org bug system.
|
|
|
|
* This defaults to the kde.org bug system.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setBugAddress( const char *bugAddress );
|
|
|
|
void setBugAddress( const char *bugAddress );
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defines the product name wich will be used in the KBugReport dialog.
|
|
|
|
* Defines the product name wich will be used in the KBugReport dialog.
|
|
|
|
* By default it's the appName, but you can overwrite it here to provide
|
|
|
|
* By default it's the appName, but you can overwrite it here to provide
|
|
|
@ -455,7 +445,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* Returns the application's product name, which will be used in KBugReport
|
|
|
|
* Returns the application's product name, which will be used in KBugReport
|
|
|
|
* dialog. By default it returns appName(), otherwise the one which is set
|
|
|
|
* dialog. By default it returns appName(), otherwise the one which is set
|
|
|
|
* with setProductName()
|
|
|
|
* with setProductName()
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return the product name.
|
|
|
|
* @return the product name.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const char *productName() const;
|
|
|
|
const char *productName() const;
|
|
|
@ -476,8 +466,8 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
void translateInternalProgramName() const;
|
|
|
|
void translateInternalProgramName() const;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns the program logo image.
|
|
|
|
* Returns the program logo image.
|
|
|
|
* @return the program logo data or null image if there is
|
|
|
|
* @return the program logo data or null image if there is
|
|
|
|
* no custom application logo defined.
|
|
|
|
* no custom application logo defined.
|
|
|
|
* @since 3.4
|
|
|
|
* @since 3.4
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -513,7 +503,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* @return the email address where to report bugs.
|
|
|
|
* @return the email address where to report bugs.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TQString bugAddress() const;
|
|
|
|
TQString bugAddress() const;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @internal
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -590,7 +580,7 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* authors.
|
|
|
|
* authors.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
bool customAuthorTextEnabled() const;
|
|
|
|
bool customAuthorTextEnabled() const;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets the custom text displayed around the list of authors instead
|
|
|
|
* Sets the custom text displayed around the list of authors instead
|
|
|
|
* of the default message telling users to send bug reports to bugAddress().
|
|
|
|
* of the default message telling users to send bug reports to bugAddress().
|
|
|
@ -602,28 +592,28 @@ class TDECORE_EXPORT TDEAboutData
|
|
|
|
* all. Call unsetCustomAuthorText() to revert to the default mesage.
|
|
|
|
* all. Call unsetCustomAuthorText() to revert to the default mesage.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void setCustomAuthorText(const TQString &plainText, const TQString &richText);
|
|
|
|
void setCustomAuthorText(const TQString &plainText, const TQString &richText);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Clears any custom text displayed around the list of authors and falls
|
|
|
|
* Clears any custom text displayed around the list of authors and falls
|
|
|
|
* back to the default message telling users to send bug reports to
|
|
|
|
* back to the default message telling users to send bug reports to
|
|
|
|
* bugAddress().
|
|
|
|
* bugAddress().
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void unsetCustomAuthorText();
|
|
|
|
void unsetCustomAuthorText();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
const char *mAppName;
|
|
|
|
TQCString mAppName;
|
|
|
|
const char *mProgramName;
|
|
|
|
TQCString mProgramName;
|
|
|
|
const char *mVersion;
|
|
|
|
TQCString mVersion;
|
|
|
|
const char *mShortDescription;
|
|
|
|
TQCString mShortDescription;
|
|
|
|
int mLicenseKey;
|
|
|
|
int mLicenseKey;
|
|
|
|
const char *mCopyrightStatement;
|
|
|
|
TQCString mCopyrightStatement;
|
|
|
|
const char *mOtherText;
|
|
|
|
TQCString mOtherText;
|
|
|
|
const char *mHomepageAddress;
|
|
|
|
TQCString mHomepageAddress;
|
|
|
|
const char *mBugEmailAddress;
|
|
|
|
TQCString mBugEmailAddress;
|
|
|
|
TQValueList<TDEAboutPerson> mAuthorList;
|
|
|
|
TQValueList<TDEAboutPerson> mAuthorList;
|
|
|
|
TQValueList<TDEAboutPerson> mCreditList;
|
|
|
|
TQValueList<TDEAboutPerson> mCreditList;
|
|
|
|
const char *mLicenseText;
|
|
|
|
TQCString mLicenseText;
|
|
|
|
static const char *defaultBugTracker;
|
|
|
|
static TQCString defaultBugTracker;
|
|
|
|
|
|
|
|
|
|
|
|
TDEAboutDataPrivate *d;
|
|
|
|
TDEAboutDataPrivate *d;
|
|
|
|
};
|
|
|
|
};
|
|
|
|