author | conber <conber> | 2002-08-06 16:32:49 (UTC) |
---|---|---|
committer | conber <conber> | 2002-08-06 16:32:49 (UTC) |
commit | 8084d002de5e310491eec7fac0713ef29d0cf30f (patch) (unidiff) | |
tree | fe74e3cf2ee2f7d87e74910fbf4bfa34b9a439a0 /noncore/unsupported/mail2/mainwindow.cpp | |
parent | e6a512dc2e0602298f8a745036d25eb171ced977 (diff) | |
download | opie-8084d002de5e310491eec7fac0713ef29d0cf30f.zip opie-8084d002de5e310491eec7fac0713ef29d0cf30f.tar.gz opie-8084d002de5e310491eec7fac0713ef29d0cf30f.tar.bz2 |
ui improvements
Diffstat (limited to 'noncore/unsupported/mail2/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/mainwindow.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/noncore/unsupported/mail2/mainwindow.cpp b/noncore/unsupported/mail2/mainwindow.cpp index 0044693..047c54b 100644 --- a/noncore/unsupported/mail2/mainwindow.cpp +++ b/noncore/unsupported/mail2/mainwindow.cpp | |||
@@ -1,76 +1,74 @@ | |||
1 | #include <qprogressbar.h> | ||
2 | #include <qmessagebox.h> | 1 | #include <qmessagebox.h> |
3 | #include <qtoolbutton.h> | ||
4 | #include <qaction.h> | 2 | #include <qaction.h> |
5 | #include <qlabel.h> | ||
6 | 3 | ||
4 | #include "mailstatusbar.h" | ||
7 | #include "folderwidget.h" | 5 | #include "folderwidget.h" |
8 | #include "mainwindow.h" | 6 | #include "mainwindow.h" |
9 | #include "configdiag.h" | 7 | #include "configdiag.h" |
10 | #include "configfile.h" | 8 | #include "configfile.h" |
11 | #include "searchdiag.h" | 9 | #include "searchdiag.h" |
12 | #include "mailtable.h" | 10 | #include "mailtable.h" |
13 | #include "composer.h" | 11 | #include "composer.h" |
14 | #include "viewmail.h" | 12 | #include "viewmail.h" |
15 | 13 | ||
16 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl) | 14 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl) |
17 | : MainWindowBase(parent, name, fl) | 15 | : MainWindowBase(parent, name, fl) |
18 | { | 16 | { |
19 | stopButton->setEnabled(false); | 17 | status->setStopEnabled(false); |
20 | 18 | ||
21 | connect(folderView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); | 19 | connect(folderView, SIGNAL(status(const QString &)), status, SLOT(setStatusText(const QString &))); |
22 | connect(folderView, SIGNAL(folderSelected(Folder)), mailView, SLOT(setFolder(Folder))); | 20 | connect(folderView, SIGNAL(folderSelected(Folder)), mailView, SLOT(setFolder(Folder))); |
23 | 21 | ||
24 | connect(mailView, SIGNAL(mailClicked(IMAPResponseFETCH, IMAPHandler *)), SLOT(mailClicked(IMAPResponseFETCH, IMAPHandler *))); | 22 | connect(mailView, SIGNAL(mailClicked(IMAPResponseFETCH, IMAPHandler *)), SLOT(mailClicked(IMAPResponseFETCH, IMAPHandler *))); |
25 | connect(mailView, SIGNAL(status(const QString &)), statusLabel, SLOT(setText(const QString &))); | 23 | connect(mailView, SIGNAL(status(const QString &)), status, SLOT(setStatusText(const QString &))); |
26 | connect(mailView, SIGNAL(totalSteps(int)), statusProgress, SLOT(setTotalSteps(int))); | 24 | connect(mailView, SIGNAL(totalSteps(int)), status, SLOT(setProgressTotalSteps(int))); |
27 | connect(mailView, SIGNAL(progress(int)), statusProgress, SLOT(setProgress(int))); | 25 | connect(mailView, SIGNAL(progress(int)), status, SLOT(setProgress(int))); |
28 | connect(mailView, SIGNAL(resetProgress()), statusProgress, SLOT(reset())); | 26 | connect(mailView, SIGNAL(resetProgress()), status, SLOT(resetProgress())); |
29 | connect(mailView, SIGNAL(stopEnabled(bool)), stopButton, SLOT(setEnabled(bool))); | 27 | connect(mailView, SIGNAL(stopEnabled(bool)), status, SLOT(setStopEnabled(bool))); |
30 | 28 | ||
31 | connect(stopButton, SIGNAL(clicked()), mailView, SLOT(stop())); | 29 | connect(status, SIGNAL(stop()), mailView, SLOT(stop())); |
32 | 30 | ||
33 | connect(compose, SIGNAL(activated()), SLOT(slotCompose())); | 31 | connect(compose, SIGNAL(activated()), SLOT(slotCompose())); |
34 | connect(sendQueue, SIGNAL(activated()), SLOT(slotSendQueued())); | 32 | connect(sendQueue, SIGNAL(activated()), SLOT(slotSendQueued())); |
35 | connect(findmails, SIGNAL(activated()), SLOT(slotSearch())); | 33 | connect(findmails, SIGNAL(activated()), SLOT(slotSearch())); |
36 | connect(configure, SIGNAL(activated()), SLOT(slotConfigure())); | 34 | connect(configure, SIGNAL(activated()), SLOT(slotConfigure())); |
37 | } | 35 | } |
38 | 36 | ||
39 | void MainWindow::slotCompose() | 37 | void MainWindow::slotCompose() |
40 | { | 38 | { |
41 | Composer composer(this, 0, true); | 39 | Composer composer(this, 0, true); |
42 | composer.showMaximized(); | 40 | composer.showMaximized(); |
43 | composer.exec(); | 41 | composer.exec(); |
44 | } | 42 | } |
45 | 43 | ||
46 | void MainWindow::slotSendQueued() | 44 | void MainWindow::slotSendQueued() |
47 | { | 45 | { |
48 | Composer composer(this, 0, true, true); | 46 | Composer composer(this, 0, true, true); |
49 | // composer.sendQueue(); | 47 | // composer.sendQueue(); |
50 | composer.showMaximized(); | 48 | composer.showMaximized(); |
51 | composer.exec(); | 49 | composer.exec(); |
52 | //composer.close(); | 50 | //composer.close(); |
53 | } | 51 | } |
54 | 52 | ||
55 | void MainWindow::slotSearch() | 53 | void MainWindow::slotSearch() |
56 | { | 54 | { |
57 | SearchDiag searchDiag(this, 0, true); | 55 | SearchDiag searchDiag(this, 0, true); |
58 | searchDiag.showMaximized(); | 56 | searchDiag.showMaximized(); |
59 | searchDiag.exec(); | 57 | searchDiag.exec(); |
60 | } | 58 | } |
61 | 59 | ||
62 | void MainWindow::slotConfigure() | 60 | void MainWindow::slotConfigure() |
63 | { | 61 | { |
64 | ConfigDiag configDiag(this, 0, true); | 62 | ConfigDiag configDiag(this, 0, true); |
65 | configDiag.showMaximized(); | 63 | configDiag.showMaximized(); |
66 | configDiag.exec(); | 64 | configDiag.exec(); |
67 | 65 | ||
68 | connect(&configDiag, SIGNAL(changed()), folderView, SLOT(update())); | 66 | connect(&configDiag, SIGNAL(changed()), folderView, SLOT(update())); |
69 | } | 67 | } |
70 | 68 | ||
71 | void MainWindow::mailClicked(IMAPResponseFETCH mail, IMAPHandler *handler) | 69 | void MainWindow::mailClicked(IMAPResponseFETCH mail, IMAPHandler *handler) |
72 | { | 70 | { |
73 | ViewMail viewMail(mail, handler, this, 0, true); | 71 | ViewMail viewMail(mail, handler, this, 0, true); |
74 | viewMail.showMaximized(); | 72 | viewMail.showMaximized(); |
75 | viewMail.exec(); | 73 | viewMail.exec(); |
76 | } | 74 | } |