-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 12 | ||||
-rw-r--r-- | noncore/net/mail/mainwindow.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index c38392c..2a1f90d 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp | |||
@@ -158,48 +158,60 @@ void MainWindow::slotAdjustLayout() { | |||
158 | 158 | ||
159 | void MainWindow::slotAdjustColumns() | 159 | void MainWindow::slotAdjustColumns() |
160 | { | 160 | { |
161 | bool hidden = folderView->isHidden(); | 161 | bool hidden = folderView->isHidden(); |
162 | if ( hidden ) folderView->show(); | 162 | if ( hidden ) folderView->show(); |
163 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 163 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
164 | if ( hidden ) folderView->hide(); | 164 | if ( hidden ) folderView->hide(); |
165 | 165 | ||
166 | mailView->setColumnWidth( 0, 10 ); | 166 | mailView->setColumnWidth( 0, 10 ); |
167 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); | 167 | mailView->setColumnWidth( 1, mailView->visibleWidth() - 130 ); |
168 | mailView->setColumnWidth( 2, 80 ); | 168 | mailView->setColumnWidth( 2, 80 ); |
169 | mailView->setColumnWidth( 3, 50 ); | 169 | mailView->setColumnWidth( 3, 50 ); |
170 | mailView->setColumnWidth( 4, 50 ); | 170 | mailView->setColumnWidth( 4, 50 ); |
171 | } | 171 | } |
172 | 172 | ||
173 | void MainWindow::slotEditSettings() | 173 | void MainWindow::slotEditSettings() |
174 | { | 174 | { |
175 | } | 175 | } |
176 | 176 | ||
177 | void MainWindow::slotShowFolders( bool ) | 177 | void MainWindow::slotShowFolders( bool ) |
178 | { | 178 | { |
179 | qDebug( "slotShowFolders not reached" ); | 179 | qDebug( "slotShowFolders not reached" ); |
180 | } | 180 | } |
181 | 181 | ||
182 | void MainWindow::refreshMailView(QList<RecMail>*) | 182 | void MainWindow::refreshMailView(QList<RecMail>*) |
183 | { | 183 | { |
184 | qDebug( "refreshMailView not reached" ); | 184 | qDebug( "refreshMailView not reached" ); |
185 | } | 185 | } |
186 | 186 | ||
187 | void MainWindow::mailLeftClicked(int, QListViewItem *,const QPoint&,int ) | 187 | void MainWindow::mailLeftClicked(int, QListViewItem *,const QPoint&,int ) |
188 | { | 188 | { |
189 | qDebug( "mailLeftClicked not reached" ); | 189 | qDebug( "mailLeftClicked not reached" ); |
190 | } | 190 | } |
191 | 191 | ||
192 | void MainWindow::displayMail() | 192 | void MainWindow::displayMail() |
193 | { | 193 | { |
194 | qDebug("displayMail not reached"); | 194 | qDebug("displayMail not reached"); |
195 | } | 195 | } |
196 | 196 | ||
197 | void MainWindow::slotDeleteMail() | 197 | void MainWindow::slotDeleteMail() |
198 | { | 198 | { |
199 | qDebug("deleteMail not reached"); | 199 | qDebug("deleteMail not reached"); |
200 | } | 200 | } |
201 | 201 | ||
202 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) | 202 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) |
203 | { | 203 | { |
204 | qDebug("mailHold not reached"); | 204 | qDebug("mailHold not reached"); |
205 | } | 205 | } |
206 | |||
207 | void MainWindow::slotSendQueued() | ||
208 | { | ||
209 | } | ||
210 | |||
211 | void MainWindow::slotEditAccounts() | ||
212 | { | ||
213 | } | ||
214 | |||
215 | void MainWindow::slotComposeMail() | ||
216 | { | ||
217 | } | ||
diff --git a/noncore/net/mail/mainwindow.h b/noncore/net/mail/mainwindow.h index 20614cc..1ba6299 100644 --- a/noncore/net/mail/mainwindow.h +++ b/noncore/net/mail/mainwindow.h | |||
@@ -1,50 +1,53 @@ | |||
1 | #ifndef MAINWINDOW_H | 1 | #ifndef MAINWINDOW_H |
2 | #define MAINWINDOW_H | 2 | #define MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qlistview.h> | 5 | #include <qlistview.h> |
6 | #include <qaction.h> | 6 | #include <qaction.h> |
7 | 7 | ||
8 | #include <qtoolbar.h> | 8 | #include <qtoolbar.h> |
9 | #include <qmenubar.h> | 9 | #include <qmenubar.h> |
10 | 10 | ||
11 | #include "accountview.h" | 11 | #include "accountview.h" |
12 | #include "statuswidget.h" | 12 | #include "statuswidget.h" |
13 | 13 | ||
14 | class RecMail; | 14 | class RecMail; |
15 | 15 | ||
16 | class MainWindow : public QMainWindow | 16 | class MainWindow : public QMainWindow |
17 | { | 17 | { |
18 | Q_OBJECT | 18 | Q_OBJECT |
19 | 19 | ||
20 | public: | 20 | public: |
21 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 21 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); |
22 | virtual ~MainWindow(); | 22 | virtual ~MainWindow(); |
23 | 23 | ||
24 | public slots: | 24 | public slots: |
25 | virtual void slotAdjustColumns(); | 25 | virtual void slotAdjustColumns(); |
26 | virtual void appMessage(const QCString &msg, const QByteArray &data); | 26 | virtual void appMessage(const QCString &msg, const QByteArray &data); |
27 | virtual void slotComposeMail(); | ||
27 | 28 | ||
28 | protected slots: | 29 | protected slots: |
30 | virtual void slotSendQueued(); | ||
31 | virtual void slotEditAccounts(); | ||
29 | virtual void slotShowFolders( bool show ); | 32 | virtual void slotShowFolders( bool show ); |
30 | virtual void refreshMailView(QList<RecMail>*); | 33 | virtual void refreshMailView(QList<RecMail>*); |
31 | virtual void displayMail(); | 34 | virtual void displayMail(); |
32 | virtual void slotDeleteMail(); | 35 | virtual void slotDeleteMail(); |
33 | virtual void mailHold(int, QListViewItem *,const QPoint&,int); | 36 | virtual void mailHold(int, QListViewItem *,const QPoint&,int); |
34 | virtual void slotAdjustLayout(); | 37 | virtual void slotAdjustLayout(); |
35 | virtual void slotEditSettings(); | 38 | virtual void slotEditSettings(); |
36 | virtual void mailLeftClicked( int, QListViewItem *,const QPoint&,int ); | 39 | virtual void mailLeftClicked( int, QListViewItem *,const QPoint&,int ); |
37 | 40 | ||
38 | protected: | 41 | protected: |
39 | QToolBar *toolBar; | 42 | QToolBar *toolBar; |
40 | StatusWidget *statusWidget; | 43 | StatusWidget *statusWidget; |
41 | QMenuBar *menuBar; | 44 | QMenuBar *menuBar; |
42 | QPopupMenu *mailMenu, *settingsMenu; | 45 | QPopupMenu *mailMenu, *settingsMenu; |
43 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, | 46 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, |
44 | *editSettings, *editAccounts, *syncFolders; | 47 | *editSettings, *editAccounts, *syncFolders; |
45 | AccountView *folderView; | 48 | AccountView *folderView; |
46 | QListView *mailView; | 49 | QListView *mailView; |
47 | QBoxLayout *layout; | 50 | QBoxLayout *layout; |
48 | }; | 51 | }; |
49 | 52 | ||
50 | #endif | 53 | #endif |