Diffstat (limited to 'noncore/unsupported/mail2/composerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/composerbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/composerbase.cpp b/noncore/unsupported/mail2/composerbase.cpp index 10d567d..6627701 100644 --- a/noncore/unsupported/mail2/composerbase.cpp +++ b/noncore/unsupported/mail2/composerbase.cpp | |||
@@ -1,76 +1,79 @@ | |||
1 | #include <qmultilineedit.h> | 1 | #include <qmultilineedit.h> |
2 | #include <qpopupmenu.h> | 2 | #include <qpopupmenu.h> |
3 | #include <qcombobox.h> | 3 | #include <qcombobox.h> |
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | #include <qaction.h> | 6 | #include <qaction.h> |
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <qvbox.h> | 8 | #include <qvbox.h> |
9 | 9 | ||
10 | #include <qpe/qpetoolbar.h> | 10 | #include <qpe/qpetoolbar.h> |
11 | #include <qpe/resource.h> | 11 | #include <qpe/resource.h> |
12 | 12 | ||
13 | #include "listviewplus.h" | 13 | #include "listviewplus.h" |
14 | #include "composerbase.h" | 14 | #include "composerbase.h" |
15 | 15 | ||
16 | ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) | 16 | ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl) |
17 | : QMainWindow(parent, name, fl) | 17 | : QMainWindow(parent, name, fl) |
18 | { | 18 | { |
19 | setCaption(tr("Compose Message")); | 19 | setCaption(tr("Compose Message")); |
20 | setToolBarsMovable(false); | 20 | setToolBarsMovable(false); |
21 | 21 | ||
22 | toolbar = new QPEToolBar(this); | 22 | toolbar = new QPEToolBar(this); |
23 | addToolBar(toolbar); | 23 | addToolBar(toolbar); |
24 | toolbar->setHorizontalStretchable(true); | 24 | toolbar->setHorizontalStretchable(true); |
25 | 25 | ||
26 | sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); | 26 | sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); |
27 | sendmail->addTo(toolbar); | 27 | sendmail->addTo(toolbar); |
28 | 28 | ||
29 | queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this); | ||
30 | queuemail->addTo(toolbar); | ||
31 | |||
29 | attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); | 32 | attachfile = new QAction(tr("Attach a file"), QIconSet(Resource::loadPixmap("mail/attach")), 0, 0, this, 0, true); |
30 | attachfile->addTo(toolbar); | 33 | attachfile->addTo(toolbar); |
31 | connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool))); | 34 | connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool))); |
32 | 35 | ||
33 | addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this); | 36 | addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this); |
34 | addressbook->addTo(toolbar); | 37 | addressbook->addTo(toolbar); |
35 | 38 | ||
36 | QLabel *spacer = new QLabel(toolbar); | 39 | QLabel *spacer = new QLabel(toolbar); |
37 | spacer->setBackgroundMode(QWidget::PaletteButton); | 40 | spacer->setBackgroundMode(QWidget::PaletteButton); |
38 | toolbar->setStretchableWidget(spacer); | 41 | toolbar->setStretchableWidget(spacer); |
39 | 42 | ||
40 | abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); | 43 | abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); |
41 | abort->addTo(toolbar); | 44 | abort->addTo(toolbar); |
42 | 45 | ||
43 | QWidget *main = new QWidget(this); | 46 | QWidget *main = new QWidget(this); |
44 | setCentralWidget(main); | 47 | setCentralWidget(main); |
45 | 48 | ||
46 | QGridLayout *layout = new QGridLayout(main); | 49 | QGridLayout *layout = new QGridLayout(main); |
47 | 50 | ||
48 | fromBox = new QComboBox(main); | 51 | fromBox = new QComboBox(main); |
49 | fromBox->insertItem(tr("From"), POPUP_FROM_FROM); | 52 | fromBox->insertItem(tr("From"), POPUP_FROM_FROM); |
50 | fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO); | 53 | fromBox->insertItem(tr("Reply"), POPUP_FROM_REPLYTO); |
51 | layout->addWidget(fromBox, 0, 0); | 54 | layout->addWidget(fromBox, 0, 0); |
52 | 55 | ||
53 | connect(fromBox, SIGNAL(activated(int)), SLOT(slotFromMenuChanged(int))); | 56 | connect(fromBox, SIGNAL(activated(int)), SLOT(slotFromMenuChanged(int))); |
54 | 57 | ||
55 | QHBoxLayout *fromLayout = new QHBoxLayout(); | 58 | QHBoxLayout *fromLayout = new QHBoxLayout(); |
56 | layout->addLayout(fromLayout, 0, 1); | 59 | layout->addLayout(fromLayout, 0, 1); |
57 | 60 | ||
58 | from = new QComboBox(main); | 61 | from = new QComboBox(main); |
59 | fromLayout->addWidget(from); | 62 | fromLayout->addWidget(from); |
60 | 63 | ||
61 | replyto = new QLineEdit(main); | 64 | replyto = new QLineEdit(main); |
62 | replyto->hide(); | 65 | replyto->hide(); |
63 | fromLayout->addWidget(replyto); | 66 | fromLayout->addWidget(replyto); |
64 | 67 | ||
65 | receiversBox = new QComboBox(main); | 68 | receiversBox = new QComboBox(main); |
66 | receiversBox->insertItem(tr("To"), POPUP_RECV_TO); | 69 | receiversBox->insertItem(tr("To"), POPUP_RECV_TO); |
67 | receiversBox->insertItem(tr("Cc"), POPUP_RECV_CC); | 70 | receiversBox->insertItem(tr("Cc"), POPUP_RECV_CC); |
68 | receiversBox->insertItem(tr("Bcc"), POPUP_RECV_BCC); | 71 | receiversBox->insertItem(tr("Bcc"), POPUP_RECV_BCC); |
69 | layout->addWidget(receiversBox, 1, 0); | 72 | layout->addWidget(receiversBox, 1, 0); |
70 | 73 | ||
71 | connect(receiversBox, SIGNAL(activated(int)), SLOT(slotReceiverMenuChanged(int))); | 74 | connect(receiversBox, SIGNAL(activated(int)), SLOT(slotReceiverMenuChanged(int))); |
72 | 75 | ||
73 | QHBoxLayout *receiverLayout = new QHBoxLayout(); | 76 | QHBoxLayout *receiverLayout = new QHBoxLayout(); |
74 | layout->addLayout(receiverLayout, 1, 1); | 77 | layout->addLayout(receiverLayout, 1, 1); |
75 | 78 | ||
76 | to = new QLineEdit(main); | 79 | to = new QLineEdit(main); |