diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /kommander/widgets/aboutdialog.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/aboutdialog.h')
-rw-r--r-- | kommander/widgets/aboutdialog.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/kommander/widgets/aboutdialog.h b/kommander/widgets/aboutdialog.h new file mode 100644 index 00000000..0d0249a7 --- /dev/null +++ b/kommander/widgets/aboutdialog.h @@ -0,0 +1,72 @@ +// +// C++ Interface: aboutdialog +// +// Description: +// +// +// Author: Andras Mantia <amantia@kdewebdev.org>, (C) 2008 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef ABOUTDIALOG_H +#define ABOUTDIALOG_H + +#include <qlabel.h> +#include <kommanderwidget.h> + +class KAboutApplication; +class KAboutData; + +/** + @author Andras Mantia <amantia@kdewebdev.org> +*/ +class AboutDialog : public QLabel, public KommanderWidget +{ + Q_OBJECT + Q_PROPERTY(bool KommanderWidget READ isKommanderWidget) + Q_PROPERTY(QString populationText READ populationText WRITE setPopulationText DESIGNABLE false) + Q_PROPERTY(QStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) +public: + AboutDialog(QWidget *parent = 0, const char *name = 0); + + ~AboutDialog(); + + virtual bool isKommanderWidget() const; + virtual QString currentState() const; + virtual bool isFunctionSupported(int function); + virtual QString handleDCOP(int function, const QStringList& args); + virtual QString populationText() const; + virtual void setPopulationText(const QString&); + virtual QStringList associatedText() const; + virtual void setAssociatedText(const QStringList&); + +public slots: + virtual void populate(); + virtual void execute(); + +private: + void initialize(const QString& appName, const QString &icon, const QString& version, const QString& copyright); + void addAuthor(const QString& author, const QString &task, const QString& email, const QString &webAddress); + void addTranslator(const QString& author, const QString& email); + void setDescription(const QString& description); + void setHomepage(const QString &homepage); + void setBugAddress(const QString &bugAddress); + void setLicense(const QString &license); + + KAboutData *m_aboutData; + QString m_version; + QString m_appName; + QString m_copyright; + QString m_icon; + QString m_bugaddress; + QStringList m_authors; + QStringList m_emails; + QStringList m_tasks; + QStringList m_addresses; + QString m_description; + QString m_homepage; + QString m_license; +}; + +#endif |