-rw-r--r-- | kmicromail/mainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 21edfd2..5f777a3 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -6,65 +6,70 @@ | |||
6 | #include <qtimer.h> | 6 | #include <qtimer.h> |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <kdialog.h> | 8 | #include <kdialog.h> |
9 | #include <kiconloader.h> | 9 | #include <kiconloader.h> |
10 | #include <kapplication.h> | 10 | #include <kapplication.h> |
11 | 11 | ||
12 | #ifndef DESKTOP_VERSION | 12 | #ifndef DESKTOP_VERSION |
13 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
14 | #endif | 14 | #endif |
15 | #include "defines.h" | 15 | #include "defines.h" |
16 | #include "mainwindow.h" | 16 | #include "mainwindow.h" |
17 | #include <KDGanttMinimizeSplitter.h> | 17 | #include <KDGanttMinimizeSplitter.h> |
18 | 18 | ||
19 | 19 | ||
20 | #include <kabc/stdaddressbook.h> | 20 | #include <kabc/stdaddressbook.h> |
21 | 21 | ||
22 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | 22 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) |
23 | : QMainWindow( parent, name ) //, flags ) | 23 | : QMainWindow( parent, name ) //, flags ) |
24 | { | 24 | { |
25 | setCaption( tr( "KOpieMail/Pi" ) ); | 25 | setCaption( tr( "KOpieMail/Pi" ) ); |
26 | setToolBarsMovable( false ); | 26 | setToolBarsMovable( false ); |
27 | //KABC::StdAddressBook::self(); | 27 | //KABC::StdAddressBook::self(); |
28 | toolBar = new QToolBar( this ); | 28 | toolBar = new QToolBar( this ); |
29 | menuBar = new QPEMenuBar( toolBar ); | 29 | menuBar = new QPEMenuBar( toolBar ); |
30 | mailMenu = new QPopupMenu( menuBar ); | 30 | mailMenu = new QPopupMenu( menuBar ); |
31 | menuBar->insertItem( tr( "Mail" ), mailMenu ); | 31 | menuBar->insertItem( tr( "Mail" ), mailMenu ); |
32 | settingsMenu = new QPopupMenu( menuBar ); | 32 | settingsMenu = new QPopupMenu( menuBar ); |
33 | menuBar->insertItem( tr( "Settings" ), settingsMenu ); | 33 | menuBar->insertItem( tr( "Settings" ), settingsMenu ); |
34 | 34 | ||
35 | addToolBar( toolBar ); | 35 | addToolBar( toolBar ); |
36 | toolBar->setHorizontalStretchable( true ); | 36 | toolBar->setHorizontalStretchable( true ); |
37 | 37 | ||
38 | 38 | QAction* getMail = new QAction( tr( "Get new mail" ), SmallIcon("add"), | |
39 | 0, 0, this ); | ||
40 | getMail->addTo( toolBar ); | ||
41 | getMail->addTo( mailMenu ); | ||
42 | connect(getMail, SIGNAL( activated() ), | ||
43 | SLOT( slotGetMail() ) ); | ||
39 | 44 | ||
40 | composeMail = new QAction( tr( "Compose new mail" ), SmallIcon("composemail"), | 45 | composeMail = new QAction( tr( "Compose new mail" ), SmallIcon("composemail"), |
41 | 0, 0, this ); | 46 | 0, 0, this ); |
42 | composeMail->addTo( toolBar ); | 47 | composeMail->addTo( toolBar ); |
43 | composeMail->addTo( mailMenu ); | 48 | composeMail->addTo( mailMenu ); |
44 | 49 | ||
45 | sendQueued = new QAction( tr( "Send queued mails" ), SmallIcon("sendqueued") , | 50 | sendQueued = new QAction( tr( "Send queued mails" ), SmallIcon("sendqueued") , |
46 | 0, 0, this ); | 51 | 0, 0, this ); |
47 | sendQueued->addTo( toolBar ); | 52 | sendQueued->addTo( toolBar ); |
48 | sendQueued->addTo( mailMenu ); | 53 | sendQueued->addTo( mailMenu ); |
49 | 54 | ||
50 | /* | 55 | /* |
51 | syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, | 56 | syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, |
52 | 0, 0, this ); | 57 | 0, 0, this ); |
53 | syncFolders->addTo( toolBar ); | 58 | syncFolders->addTo( toolBar ); |
54 | syncFolders->addTo( mailMenu ); | 59 | syncFolders->addTo( mailMenu ); |
55 | */ | 60 | */ |
56 | 61 | ||
57 | showFolders = new QAction( tr( "Show/Hide folders" ), SmallIcon("showfolders") , | 62 | showFolders = new QAction( tr( "Show/Hide folders" ), SmallIcon("showfolders") , |
58 | 0, 0, this, 0, true ); | 63 | 0, 0, this, 0, true ); |
59 | showFolders->addTo( toolBar ); | 64 | showFolders->addTo( toolBar ); |
60 | showFolders->addTo( mailMenu ); | 65 | showFolders->addTo( mailMenu ); |
61 | showFolders->setOn( true ); | 66 | showFolders->setOn( true ); |
62 | connect(showFolders, SIGNAL( toggled(bool) ), | 67 | connect(showFolders, SIGNAL( toggled(bool) ), |
63 | SLOT( slotShowFolders(bool) ) ); | 68 | SLOT( slotShowFolders(bool) ) ); |
64 | 69 | ||
65 | /* | 70 | /* |
66 | searchMails = new QAction( tr( "Search mails" ), SmallIcon("find") ), | 71 | searchMails = new QAction( tr( "Search mails" ), SmallIcon("find") ), |
67 | 0, 0, this ); | 72 | 0, 0, this ); |
68 | searchMails->addTo( toolBar ); | 73 | searchMails->addTo( toolBar ); |
69 | searchMails->addTo( mailMenu ); | 74 | searchMails->addTo( mailMenu ); |
70 | */ | 75 | */ |