author | zautrix <zautrix> | 2004-10-22 08:27:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-22 08:27:03 (UTC) |
commit | e61ce30fc3f2376d8e9caff421495496344a8359 (patch) (unidiff) | |
tree | e82f8e5a0ecf3f21d246b0f441502cb8ee0e11a7 /kmicromail/mainwindow.cpp | |
parent | a0cd6749d41390ea832e2acd814fe117bdd39c37 (diff) | |
download | kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.zip kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.tar.gz kdepimpi-e61ce30fc3f2376d8e9caff421495496344a8359.tar.bz2 |
added translations
-rw-r--r-- | kmicromail/mainwindow.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index ddded2a..c77345b 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -19,81 +19,81 @@ | |||
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( i18n( "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( i18n( "Mail" ), mailMenu ); |
32 | settingsMenu = new QPopupMenu( menuBar ); | 32 | settingsMenu = new QPopupMenu( menuBar ); |
33 | menuBar->insertItem( tr( "Settings" ), settingsMenu ); | 33 | menuBar->insertItem( i18n( "Settings" ), settingsMenu ); |
34 | 34 | ||
35 | addToolBar( toolBar ); | 35 | addToolBar( toolBar ); |
36 | toolBar->setHorizontalStretchable( true ); | 36 | toolBar->setHorizontalStretchable( true ); |
37 | QAction* getMail = new QAction( tr( "Get all new mails" ), SmallIcon("enter"), | 37 | QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"), |
38 | 0, 0, this ); | 38 | 0, 0, this ); |
39 | connect(getMail, SIGNAL( activated() ), | 39 | connect(getMail, SIGNAL( activated() ), |
40 | SLOT( slotGetAllMail() ) ); | 40 | SLOT( slotGetAllMail() ) ); |
41 | getMail->addTo( mailMenu ); | 41 | getMail->addTo( mailMenu ); |
42 | 42 | ||
43 | getMail = new QAction( tr( "Get new messages" ), SmallIcon("add"), | 43 | getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"), |
44 | 0, 0, this ); | 44 | 0, 0, this ); |
45 | getMail->addTo( toolBar ); | 45 | getMail->addTo( toolBar ); |
46 | getMail->addTo( mailMenu ); | 46 | getMail->addTo( mailMenu ); |
47 | connect(getMail, SIGNAL( activated() ), | 47 | connect(getMail, SIGNAL( activated() ), |
48 | SLOT( slotGetMail() ) ); | 48 | SLOT( slotGetMail() ) ); |
49 | 49 | ||
50 | composeMail = new QAction( tr( "Compose new mail" ), SmallIcon("composemail"), | 50 | composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"), |
51 | 0, 0, this ); | 51 | 0, 0, this ); |
52 | composeMail->addTo( toolBar ); | 52 | composeMail->addTo( toolBar ); |
53 | composeMail->addTo( mailMenu ); | 53 | composeMail->addTo( mailMenu ); |
54 | 54 | ||
55 | sendQueued = new QAction( tr( "Send queued mails" ), SmallIcon("sendqueued") , | 55 | sendQueued = new QAction( i18n( "Send queued mails" ), SmallIcon("sendqueued") , |
56 | 0, 0, this ); | 56 | 0, 0, this ); |
57 | sendQueued->addTo( toolBar ); | 57 | sendQueued->addTo( toolBar ); |
58 | sendQueued->addTo( mailMenu ); | 58 | sendQueued->addTo( mailMenu ); |
59 | 59 | ||
60 | /* | 60 | /* |
61 | syncFolders = new QAction( tr( "Sync mailfolders" ), ICON_SYNC, | 61 | syncFolders = new QAction( i18n( "Sync mailfolders" ), ICON_SYNC, |
62 | 0, 0, this ); | 62 | 0, 0, this ); |
63 | syncFolders->addTo( toolBar ); | 63 | syncFolders->addTo( toolBar ); |
64 | syncFolders->addTo( mailMenu ); | 64 | syncFolders->addTo( mailMenu ); |
65 | */ | 65 | */ |
66 | 66 | ||
67 | showFolders = new QAction( tr( "Show/Hide folders" ), SmallIcon("showfolders") , | 67 | showFolders = new QAction( i18n( "Show/Hide folders" ), SmallIcon("showfolders") , |
68 | 0, 0, this, 0, true ); | 68 | 0, 0, this, 0, true ); |
69 | showFolders->addTo( toolBar ); | 69 | showFolders->addTo( toolBar ); |
70 | showFolders->addTo( mailMenu ); | 70 | showFolders->addTo( mailMenu ); |
71 | showFolders->setOn( true ); | 71 | showFolders->setOn( true ); |
72 | connect(showFolders, SIGNAL( toggled(bool) ), | 72 | connect(showFolders, SIGNAL( toggled(bool) ), |
73 | SLOT( slotShowFolders(bool) ) ); | 73 | SLOT( slotShowFolders(bool) ) ); |
74 | 74 | ||
75 | /* | 75 | /* |
76 | searchMails = new QAction( tr( "Search mails" ), SmallIcon("find") ), | 76 | searchMails = new QAction( i18n( "Search mails" ), SmallIcon("find") ), |
77 | 0, 0, this ); | 77 | 0, 0, this ); |
78 | searchMails->addTo( toolBar ); | 78 | searchMails->addTo( toolBar ); |
79 | searchMails->addTo( mailMenu ); | 79 | searchMails->addTo( mailMenu ); |
80 | */ | 80 | */ |
81 | 81 | ||
82 | deleteMails = new QAction(tr("Delete Mail"), SmallIcon("trash"), 0, 0, this); | 82 | deleteMails = new QAction(i18n("Delete Mail"), SmallIcon("trash"), 0, 0, this); |
83 | deleteMails->addTo( toolBar ); | 83 | deleteMails->addTo( toolBar ); |
84 | deleteMails->addTo( mailMenu ); | 84 | deleteMails->addTo( mailMenu ); |
85 | connect( deleteMails, SIGNAL( activated() ), | 85 | connect( deleteMails, SIGNAL( activated() ), |
86 | SLOT( slotDeleteMail() ) ); | 86 | SLOT( slotDeleteMail() ) ); |
87 | 87 | ||
88 | editSettings = new QAction( tr( "Edit settings" ), SmallIcon("SettingsIcon") , | 88 | editSettings = new QAction( i18n( "Edit settings" ), SmallIcon("SettingsIcon") , |
89 | 0, 0, this ); | 89 | 0, 0, this ); |
90 | editSettings->addTo( settingsMenu ); | 90 | editSettings->addTo( settingsMenu ); |
91 | connect( editSettings, SIGNAL( activated() ), | 91 | connect( editSettings, SIGNAL( activated() ), |
92 | SLOT( slotEditSettings() ) ); | 92 | SLOT( slotEditSettings() ) ); |
93 | editAccounts = new QAction( tr( "Configure accounts" ), SmallIcon("editaccounts") , | 93 | editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") , |
94 | 0, 0, this ); | 94 | 0, 0, this ); |
95 | editAccounts->addTo( settingsMenu ); | 95 | editAccounts->addTo( settingsMenu ); |
96 | 96 | ||
97 | //setCentralWidget( view ); | 97 | //setCentralWidget( view ); |
98 | 98 | ||
99 | QVBox* wrapperBox = new QVBox( this ); | 99 | QVBox* wrapperBox = new QVBox( this ); |
@@ -104,22 +104,22 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
104 | split->setMinimizeDirection( KDGanttMinimizeSplitter::Left); | 104 | split->setMinimizeDirection( KDGanttMinimizeSplitter::Left); |
105 | //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight ); | 105 | //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight ); |
106 | 106 | ||
107 | folderView = new AccountView( split ); | 107 | folderView = new AccountView( split ); |
108 | folderView->header()->hide(); | 108 | folderView->header()->hide(); |
109 | folderView->setRootIsDecorated( false ); | 109 | folderView->setRootIsDecorated( false ); |
110 | folderView->addColumn( tr( "Mailbox" ) ); | 110 | folderView->addColumn( i18n( "Mailbox" ) ); |
111 | 111 | ||
112 | //layout->addWidget( folderView ); | 112 | //layout->addWidget( folderView ); |
113 | 113 | ||
114 | mailView = new QListView( split ); | 114 | mailView = new QListView( split ); |
115 | mailView->addColumn( tr( " " ) ); | 115 | mailView->addColumn( i18n( " " ) ); |
116 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); | 116 | mailView->addColumn( i18n( "Subject" ),QListView::Manual ); |
117 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); | 117 | mailView->addColumn( i18n( "Sender" ),QListView::Manual ); |
118 | mailView->addColumn( tr( "Size" ),QListView::Manual); | 118 | mailView->addColumn( i18n( "Size" ),QListView::Manual); |
119 | mailView->addColumn( tr( "Date" ),QListView::Manual); | 119 | mailView->addColumn( i18n( "Date" ),QListView::Manual); |
120 | mailView->setAllColumnsShowFocus(true); | 120 | mailView->setAllColumnsShowFocus(true); |
121 | //mailView->setSorting(-1); | 121 | //mailView->setSorting(-1); |
122 | mailView->setRootIsDecorated( false ); | 122 | mailView->setRootIsDecorated( false ); |
123 | statusWidget = new StatusWidget( wrapperBox ); | 123 | statusWidget = new StatusWidget( wrapperBox ); |
124 | statusWidget->hide(); | 124 | statusWidget->hide(); |
125 | 125 | ||
@@ -156,28 +156,28 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
156 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 156 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
157 | mailView->setShowSortIndicator ( true ); | 157 | mailView->setShowSortIndicator ( true ); |
158 | QLabel *spacer = new QLabel( toolBar ); | 158 | QLabel *spacer = new QLabel( toolBar ); |
159 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 159 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
160 | toolBar->setStretchableWidget( spacer ); | 160 | toolBar->setStretchableWidget( spacer ); |
161 | 161 | ||
162 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 162 | QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); |
163 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 163 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
164 | if ( QApplication::desktop()->width() > 320 ) | 164 | if ( QApplication::desktop()->width() > 320 ) |
165 | closeMail->addTo(toolBar); | 165 | closeMail->addTo(toolBar); |
166 | closeMail->addTo(mailMenu); | 166 | closeMail->addTo(mailMenu); |
167 | 167 | ||
168 | 168 | ||
169 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 169 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
170 | menuBar->insertItem( tr( "Help" ), helpMenu ); | 170 | menuBar->insertItem( i18n( "Help" ), helpMenu ); |
171 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); | 171 | QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); |
172 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 172 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
173 | li->addTo(helpMenu); | 173 | li->addTo(helpMenu); |
174 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); | 174 | li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); |
175 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 175 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
176 | li->addTo(helpMenu); | 176 | li->addTo(helpMenu); |
177 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); | 177 | li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); |
178 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 178 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
179 | li->addTo(helpMenu); | 179 | li->addTo(helpMenu); |
180 | } | 180 | } |
181 | 181 | ||
182 | MainWindow::~MainWindow() | 182 | MainWindow::~MainWindow() |
183 | { | 183 | { |