You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesdk/kbugbuster/gui/msginputdialog.h

57 lines
1.0 KiB

#ifndef MSGINPUTDIALOG_H
#define MSGINPUTDIALOG_H
#include <kdialogbase.h>
#include "bug.h"
#include "package.h"
class KTextEdit;
class TQSplitter;
class KListBox;
class MsgInputDialog : public KDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
enum MessageType{ Close, Reply, ReplyPrivate };
MsgInputDialog( MessageType, const Bug &, const Package &,
const TQString &, TQWidget *parent=0);
virtual ~MsgInputDialog();
TQString message() const;
protected slots:
void slotOk();
void slotCancel();
private slots:
void editPresets();
void updatePresets();
void slotPresetSelected( TQListBoxItem * );
void clearMessage();
void queueCommand();
private:
void createButtons();
void createLayout();
void readConfig();
void writeConfig();
void insertQuotedMessage( const TQString &quotedMsg );
TQComboBox *mRecipient;
KTextEdit *mMessageEdit;
TQSplitter *mSplitter;
KListBox *mPresets;
Bug mBug;
Package mPackage;
MessageType mType;
};
#endif