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 | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /kbugbuster/gui/msginputdialog.h | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.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/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/msginputdialog.h')
-rw-r--r-- | kbugbuster/gui/msginputdialog.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kbugbuster/gui/msginputdialog.h b/kbugbuster/gui/msginputdialog.h new file mode 100644 index 00000000..9de767e3 --- /dev/null +++ b/kbugbuster/gui/msginputdialog.h @@ -0,0 +1,55 @@ +#ifndef MSGINPUTDIALOG_H +#define MSGINPUTDIALOG_H + +#include <kdialogbase.h> + +#include "bug.h" +#include "package.h" + +class KTextEdit; +class QSplitter; +class KListBox; + +class MsgInputDialog : public KDialogBase +{ + Q_OBJECT + public: + enum MessageType{ Close, Reply, ReplyPrivate }; + + MsgInputDialog( MessageType, const Bug &, const Package &, + const QString &, QWidget *parent=0); + virtual ~MsgInputDialog(); + + QString message() const; + + protected slots: + void slotOk(); + void slotCancel(); + + private slots: + void editPresets(); + void updatePresets(); + void slotPresetSelected( QListBoxItem * ); + void clearMessage(); + void queueCommand(); + + private: + void createButtons(); + void createLayout(); + + void readConfig(); + void writeConfig(); + + void insertQuotedMessage( const QString "edMsg ); + + QComboBox *mRecipient; + KTextEdit *mMessageEdit; + QSplitter *mSplitter; + KListBox *mPresets; + + Bug mBug; + Package mPackage; + MessageType mType; +}; + +#endif |