Diffstat (limited to 'noncore/unsupported/mail2/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/mainwindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/mainwindow.cpp b/noncore/unsupported/mail2/mainwindow.cpp index 2230dc0..652db94 100644 --- a/noncore/unsupported/mail2/mainwindow.cpp +++ b/noncore/unsupported/mail2/mainwindow.cpp | |||
@@ -9,57 +9,67 @@ | |||
9 | #include "configfile.h" | 9 | #include "configfile.h" |
10 | #include "searchdiag.h" | 10 | #include "searchdiag.h" |
11 | #include "mailtable.h" | 11 | #include "mailtable.h" |
12 | #include "composer.h" | 12 | #include "composer.h" |
13 | #include "viewmail.h" | 13 | #include "viewmail.h" |
14 | 14 | ||
15 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl) | 15 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl) |
16 | : MainWindowBase(parent, name, fl) | 16 | : MainWindowBase(parent, name, fl) |
17 | { | 17 | { |
18 | stop->setEnabled(false); | 18 | stop->setEnabled(false); |
19 | 19 | ||
20 | connect(folderView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); | 20 | connect(folderView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); |
21 | connect(folderView, SIGNAL(folderSelected(Folder)), mailView, SLOT(setFolder(Folder))); | 21 | connect(folderView, SIGNAL(folderSelected(Folder)), mailView, SLOT(setFolder(Folder))); |
22 | 22 | ||
23 | connect(mailView, SIGNAL(mailClicked(IMAPResponseFETCH, IMAPHandler *)), SLOT(mailClicked(IMAPResponseFETCH, IMAPHandler *))); | 23 | connect(mailView, SIGNAL(mailClicked(IMAPResponseFETCH, IMAPHandler *)), SLOT(mailClicked(IMAPResponseFETCH, IMAPHandler *))); |
24 | connect(mailView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); | 24 | connect(mailView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); |
25 | connect(mailView, SIGNAL(totalSteps(int)), statusProgress, SLOT(setTotalSteps(int))); | 25 | connect(mailView, SIGNAL(totalSteps(int)), statusProgress, SLOT(setTotalSteps(int))); |
26 | connect(mailView, SIGNAL(progress(int)), statusProgress, SLOT(setProgress(int))); | 26 | connect(mailView, SIGNAL(progress(int)), statusProgress, SLOT(setProgress(int))); |
27 | connect(mailView, SIGNAL(resetProgress()), statusProgress, SLOT(reset())); | 27 | connect(mailView, SIGNAL(resetProgress()), statusProgress, SLOT(reset())); |
28 | connect(mailView, SIGNAL(stopEnabled(bool)), stop, SLOT(setEnabled(bool))); | 28 | connect(mailView, SIGNAL(stopEnabled(bool)), stop, SLOT(setEnabled(bool))); |
29 | 29 | ||
30 | connect(stop, SIGNAL(activated()), mailView, SLOT(stop())); | 30 | connect(stop, SIGNAL(activated()), mailView, SLOT(stop())); |
31 | 31 | ||
32 | connect(compose, SIGNAL(activated()), SLOT(slotCompose())); | 32 | connect(compose, SIGNAL(activated()), SLOT(slotCompose())); |
33 | connect(sendQueue, SIGNAL(activated()), SLOT(slotSendQueued())); | ||
33 | connect(findmails, SIGNAL(activated()), SLOT(slotSearch())); | 34 | connect(findmails, SIGNAL(activated()), SLOT(slotSearch())); |
34 | connect(configure, SIGNAL(activated()), SLOT(slotConfigure())); | 35 | connect(configure, SIGNAL(activated()), SLOT(slotConfigure())); |
35 | } | 36 | } |
36 | 37 | ||
37 | void MainWindow::slotCompose() | 38 | void MainWindow::slotCompose() |
38 | { | 39 | { |
39 | Composer composer(this, 0, true); | 40 | Composer composer(this, 0, true); |
40 | composer.showMaximized(); | 41 | composer.showMaximized(); |
41 | composer.exec(); | 42 | composer.exec(); |
42 | } | 43 | } |
43 | 44 | ||
45 | void MainWindow::slotSendQueued() | ||
46 | { | ||
47 | Composer composer(this, 0, true, true); | ||
48 | // composer.sendQueue(); | ||
49 | composer.showMaximized(); | ||
50 | composer.exec(); | ||
51 | //composer.close(); | ||
52 | } | ||
53 | |||
44 | void MainWindow::slotSearch() | 54 | void MainWindow::slotSearch() |
45 | { | 55 | { |
46 | SearchDiag searchDiag(this, 0, true); | 56 | SearchDiag searchDiag(this, 0, true); |
47 | searchDiag.showMaximized(); | 57 | searchDiag.showMaximized(); |
48 | searchDiag.exec(); | 58 | searchDiag.exec(); |
49 | } | 59 | } |
50 | 60 | ||
51 | void MainWindow::slotConfigure() | 61 | void MainWindow::slotConfigure() |
52 | { | 62 | { |
53 | ConfigDiag configDiag(this, 0, true); | 63 | ConfigDiag configDiag(this, 0, true); |
54 | configDiag.showMaximized(); | 64 | configDiag.showMaximized(); |
55 | configDiag.exec(); | 65 | configDiag.exec(); |
56 | 66 | ||
57 | connect(&configDiag, SIGNAL(changed()), folderView, SLOT(update())); | 67 | connect(&configDiag, SIGNAL(changed()), folderView, SLOT(update())); |
58 | } | 68 | } |
59 | 69 | ||
60 | void MainWindow::mailClicked(IMAPResponseFETCH mail, IMAPHandler *handler) | 70 | void MainWindow::mailClicked(IMAPResponseFETCH mail, IMAPHandler *handler) |
61 | { | 71 | { |
62 | ViewMail viewMail(mail, handler, this, 0, true); | 72 | ViewMail viewMail(mail, handler, this, 0, true); |
63 | viewMail.showMaximized(); | 73 | viewMail.showMaximized(); |
64 | viewMail.exec(); | 74 | viewMail.exec(); |
65 | } | 75 | } |