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 | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /atlantikdesigner/designer/boardinfo.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.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/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/boardinfo.h')
-rw-r--r-- | atlantikdesigner/designer/boardinfo.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/atlantikdesigner/designer/boardinfo.h b/atlantikdesigner/designer/boardinfo.h new file mode 100644 index 0000000..00825a5 --- /dev/null +++ b/atlantikdesigner/designer/boardinfo.h @@ -0,0 +1,74 @@ +#ifndef ATLANTIK_BOARDINFO_H +#define ATLANTIK_BOARDINFO_H + +#include <qcolor.h> +#include <qstring.h> +#include <qstringlist.h> +#include <qptrlist.h> +#include <qwidget.h> + +#include <kdialogbase.h> + +class KColorButton; +class KLineEdit; +class KURLLabel; + +class QVBoxLayout; + +struct BoardInfo +{ + BoardInfo() { bgColor = Qt::lightGray; } + QString name; + QStringList authors; + QStringList credits; + QString description; + QString url; + QString version; + QColor bgColor; +}; + +class LotsaEdits : public QWidget +{ + Q_OBJECT + + public: + LotsaEdits(bool, QStringList=QStringList(), QWidget *parent=0, const char *name=0); + + public slots: + QStringList save(); + + private slots: + void more(); + void less(); + + private: + bool editable; + QPtrList<QWidget> list; + QVBoxLayout *layout; +}; + +class BoardInfoDlg : public KDialogBase +{ + Q_OBJECT + + public: + BoardInfoDlg(bool editable, BoardInfo *, QWidget *parent=0, const char *_name=0, bool = true); + + protected slots: + void slotOk(); + void slotApply(); + + private: + KLineEdit *name; + KLineEdit *url; + KLineEdit *version; + KLineEdit *description; + KColorButton *bgColor; + + LotsaEdits *authors; + LotsaEdits *credits; + + BoardInfo *info; +}; + +#endif |