summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composerbase.h
blob: c14144b30ab0edb53751b35a730f1cb7e81c4ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef COMPOSERBASE_H
#define COMPOSERBASE_H

#include <qmainwindow.h>

class QMultiLineEdit;
class MailStatusBar;
class ListViewPlus;
class QPopupMenu;
class QToolBar;
class QMenuBar;
class QPopupMenu;
class QComboBox;
class QLineEdit;
class QAction;
class QLabel;

class ComposerBase : public QMainWindow
{
	Q_OBJECT

public:
	ComposerBase(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);

protected:
	static const int POPUP_FROM_FROM = 0;
	static const int POPUP_FROM_REPLYTO = 1;
	static const int POPUP_RECV_TO = 0;
	static const int POPUP_RECV_CC = 1;
	static const int POPUP_RECV_BCC = 2;
	static const int POPUP_SUBJ_SUBJECT = 0;
	static const int POPUP_SUBJ_PRIORITY = 1;
	static const int POPUP_PRIO_LOW = 0;
	static const int POPUP_PRIO_NORMAL = 1;
	static const int POPUP_PRIO_HIGH = 2;
	static const int POPUP_ATTACH_RENAME = 0;
	static const int POPUP_ATTACH_DESC = 1;
	static const int POPUP_ATTACH_REMOVE = 2;

	QMultiLineEdit *message;
	MailStatusBar *status;
	ListViewPlus *attachView;
	QMainWindow *attachWindow;
	QPopupMenu *attachPopup;
	QToolBar *toolbar, *attachToolbar;
 	QMenuBar *menubar;
	QPopupMenu *mailmenu;
	QComboBox *fromBox, *from, *receiversBox, *subjectBox, *priority;
	QLineEdit *replyto, *to, *cc, *bcc, *subject;
	QAction *sendmail, *queuemail, *attachfile, *addressbook, *abort, *addattach, *delattach;
	QLabel *fromLabel;

protected slots:
	void slotAttachfileChanged(bool toggled);
	void slotFromMenuChanged(int id);
	void slotReceiverMenuChanged(int id);
	void slotSubjectMenuChanged(int id);

};

#endif