00001 #ifndef COMPOSERBASE_H
00002 #define COMPOSERBASE_H
00003
00004 #include <qmainwindow.h>
00005
00006 class QMultiLineEdit;
00007 class MailStatusBar;
00008 class ListViewPlus;
00009 class QPopupMenu;
00010 class QToolBar;
00011 class QMenuBar;
00012 class QPopupMenu;
00013 class QComboBox;
00014 class QLineEdit;
00015 class QAction;
00016 class QLabel;
00017
00018 class ComposerBase : public QMainWindow
00019 {
00020 Q_OBJECT
00021
00022 public:
00023 ComposerBase(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
00024
00025 protected:
00026 static const int POPUP_FROM_FROM = 0;
00027 static const int POPUP_FROM_REPLYTO = 1;
00028 static const int POPUP_RECV_TO = 0;
00029 static const int POPUP_RECV_CC = 1;
00030 static const int POPUP_RECV_BCC = 2;
00031 static const int POPUP_SUBJ_SUBJECT = 0;
00032 static const int POPUP_SUBJ_PRIORITY = 1;
00033 static const int POPUP_PRIO_LOW = 0;
00034 static const int POPUP_PRIO_NORMAL = 1;
00035 static const int POPUP_PRIO_HIGH = 2;
00036 static const int POPUP_ATTACH_RENAME = 0;
00037 static const int POPUP_ATTACH_DESC = 1;
00038 static const int POPUP_ATTACH_REMOVE = 2;
00039
00040 QMultiLineEdit *message;
00041 MailStatusBar *status;
00042 ListViewPlus *attachView;
00043 QMainWindow *attachWindow;
00044 QPopupMenu *attachPopup;
00045 QToolBar *toolbar, *attachToolbar;
00046 QMenuBar *menubar;
00047 QPopupMenu *mailmenu;
00048 QComboBox *fromBox, *from, *receiversBox, *subjectBox, *priority;
00049 QLineEdit *replyto, *to, *cc, *bcc, *subject;
00050 QAction *sendmail, *queuemail, *attachfile, *addressbook, *abort, *addattach, *delattach;
00051 QLabel *fromLabel;
00052
00053 protected slots:
00054 void slotAttachfileChanged(bool toggled);
00055 void slotFromMenuChanged(int id);
00056 void slotReceiverMenuChanged(int id);
00057 void slotSubjectMenuChanged(int id);
00058
00059 };
00060
00061 #endif