author | harlekin <harlekin> | 2003-12-20 00:05:37 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-20 00:05:37 (UTC) |
commit | dc088ad432189b4883f7654ef6b2c1e2f69112cc (patch) (unidiff) | |
tree | 090f6afd960e644d7da1fae3b8c8ffa97b669b59 /noncore/net/mail/mainwindow.cpp | |
parent | 00a0c8cf03fe746c1e3ba608bf298c8e66d065f9 (diff) | |
download | opie-dc088ad432189b4883f7654ef6b2c1e2f69112cc.zip opie-dc088ad432189b4883f7654ef6b2c1e2f69112cc.tar.gz opie-dc088ad432189b4883f7654ef6b2c1e2f69112cc.tar.bz2 |
- beginning of a settings dialog
- button for switching between html and plain text view of the mail
- hide some unused icons
- completed alwins idea about status icons ( alwin you missed the one that sets the read icon .-) )
- beginning of a status widget
-
Diffstat (limited to 'noncore/net/mail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 9a37510..d3b9c34 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -13,2 +13,3 @@ | |||
13 | #include "mainwindow.h" | 13 | #include "mainwindow.h" |
14 | #include "settingsdialog.h" | ||
14 | #include "viewmail.h" | 15 | #include "viewmail.h" |
@@ -17,2 +18,3 @@ | |||
17 | 18 | ||
19 | |||
18 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | 20 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) |
@@ -47,2 +49,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
47 | 49 | ||
50 | /* | ||
48 | syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, | 51 | syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, |
@@ -51,2 +54,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
51 | syncFolders->addTo( mailMenu ); | 54 | syncFolders->addTo( mailMenu ); |
55 | */ | ||
52 | 56 | ||
@@ -60,3 +64,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
60 | 64 | ||
61 | searchMails = new QAction( tr( "Search mails" ), ICON_SEARCHMAILS, | 65 | /* |
66 | searchMails = new QAction( tr( "Search mails" ), ICON_SEARCHMAILS, | ||
62 | 0, 0, this ); | 67 | 0, 0, this ); |
@@ -64,2 +69,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
64 | searchMails->addTo( mailMenu ); | 69 | searchMails->addTo( mailMenu ); |
70 | */ | ||
65 | 71 | ||
@@ -74,2 +80,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
74 | editSettings->addTo( settingsMenu ); | 80 | editSettings->addTo( settingsMenu ); |
81 | connect( editSettings, SIGNAL( activated() ), | ||
82 | SLOT( slotEditSettings() ) ); | ||
75 | 83 | ||
@@ -79,3 +87,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
79 | 87 | ||
80 | QWidget *view = new QWidget( this ); | 88 | QWidget *view = new QWidget( this ); |
81 | setCentralWidget( view ); | 89 | setCentralWidget( view ); |
@@ -101,3 +109,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
101 | 109 | ||
110 | statusWidget = new StatusWidget( view ); | ||
111 | |||
102 | layout->addWidget( mailView ); | 112 | layout->addWidget( mailView ); |
113 | layout->addWidget( statusWidget ); | ||
103 | layout->setStretchFactor( folderView, 1 ); | 114 | layout->setStretchFactor( folderView, 1 ); |
@@ -105,2 +116,3 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
105 | 116 | ||
117 | |||
106 | slotAdjustLayout(); | 118 | slotAdjustLayout(); |
@@ -143,2 +155,8 @@ void MainWindow::slotAdjustColumns() | |||
143 | 155 | ||
156 | void MainWindow::slotEditSettings() { | ||
157 | SettingsDialog settingsDialog( this, 0, true ); | ||
158 | settingsDialog.showMaximized(); | ||
159 | settingsDialog.exec(); | ||
160 | } | ||
161 | |||
144 | void MainWindow::slotShowFolders( bool show ) | 162 | void MainWindow::slotShowFolders( bool show ) |
@@ -181,3 +199,3 @@ void MainWindow::displayMail(QListViewItem*item) | |||
181 | } else { | 199 | } else { |
182 | ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "mail/kmmsgunseen") ); | 200 | ( (MailListViewItem*)item )->setPixmap( 0, Resource::loadPixmap( "") ); |
183 | } | 201 | } |