summaryrefslogtreecommitdiffabout
path: root/kmicromail
Unidiff
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/main.cpp3
-rw-r--r--kmicromail/mainwindow.cpp48
-rw-r--r--kmicromail/opiemail.cpp41
3 files changed, 47 insertions, 45 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp
index 5362f08..8947ff8 100644
--- a/kmicromail/main.cpp
+++ b/kmicromail/main.cpp
@@ -20,5 +20,5 @@
20#include "mainwindow.h" 20#include "mainwindow.h"
21#include "koprefs.h" 21#include "koprefs.h"
22 22void dumpMissing();
23//using namespace Opie::Core; 23//using namespace Opie::Core;
24int main( int argc, char **argv ) { 24int main( int argc, char **argv ) {
@@ -58,4 +58,5 @@ int main( int argc, char **argv ) {
58#endif 58#endif
59 int rv = a.exec(); 59 int rv = a.exec();
60 dumpMissing();
60 return rv; 61 return rv;
61 62
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index ddded2a..c77345b 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -23,5 +23,5 @@ 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();
@@ -29,11 +29,11 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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() ),
@@ -41,5 +41,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -48,10 +48,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -59,5 +59,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -65,5 +65,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -74,5 +74,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -80,5 +80,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -86,10 +86,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 );
@@ -108,14 +108,14 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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);
@@ -160,5 +160,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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 )
@@ -168,12 +168,12 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
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);
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp
index 164988c..3aa7905 100644
--- a/kmicromail/opiemail.cpp
+++ b/kmicromail/opiemail.cpp
@@ -12,4 +12,5 @@
12#include "accountitem.h" 12#include "accountitem.h"
13#include "koprefsdialog.h" 13#include "koprefsdialog.h"
14#include "klocale.h"
14 15
15#include <qmessagebox.h> 16#include <qmessagebox.h>
@@ -177,5 +178,5 @@ void OpieMail::slotSendQueued()
177 if (smtpList.count()==0) 178 if (smtpList.count()==0)
178 { 179 {
179 QMessageBox::information(0,tr("Info"),tr("Define a smtp account first!\n")); 180 QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n"));
180 return; 181 return;
181 } 182 }
@@ -200,5 +201,5 @@ void OpieMail::slotSendQueued()
200 if ( wrap->flushOutbox() ) 201 if ( wrap->flushOutbox() )
201 { 202 {
202 QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); 203 QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed"));
203 } 204 }
204 delete wrap; 205 delete wrap;
@@ -274,5 +275,5 @@ void OpieMail::slotDeleteMail()
274 if (!mailView->currentItem()) return; 275 if (!mailView->currentItem()) return;
275 RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); 276 RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data();
276 if ( QMessageBox::warning(this, tr("Delete Mail"), QString( tr("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) 277 if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
277 { 278 {
278 mail->Wrapper()->deleteMail( mail ); 279 mail->Wrapper()->deleteMail( mail );
@@ -284,5 +285,5 @@ void OpieMail::slotDeleteAllMail()
284 285
285 QValueList<RecMailP> t; 286 QValueList<RecMailP> t;
286 if ( QMessageBox::warning(this, tr("Delete All Mails"), tr("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) 287 if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
287 { 288 {
288 MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); 289 MailListViewItem* item = (MailListViewItem*)mailView->firstChild ();
@@ -321,20 +322,20 @@ void OpieMail::mailHold(int button, QListViewItem *item,const QPoint&,int )
321 { 322 {
322 if (mailtype==MAILLIB::A_NNTP) { 323 if (mailtype==MAILLIB::A_NNTP) {
323 m->insertItem(tr("Read this posting"),this,SLOT(displayMail())); 324 m->insertItem(i18n("Read this posting"),this,SLOT(displayMail()));
324 m->insertItem(tr("Copy this posting"),this,SLOT(slotMoveCopyMail())); 325 m->insertItem(i18n("Copy this posting"),this,SLOT(slotMoveCopyMail()));
325 m->insertSeparator(); 326 m->insertSeparator();
326 m->insertItem(tr("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail())); 327 m->insertItem(i18n("Copy all selected postings"),this,SLOT(slotMoveCopyAllMail()));
327 m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); 328 m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection()));
328 } else { 329 } else {
329 if (folderView->currentisDraft()) { 330 if (folderView->currentisDraft()) {
330 m->insertItem(tr("Edit this mail"),this,SLOT(reEditMail())); 331 m->insertItem(i18n("Edit this mail"),this,SLOT(reEditMail()));
331 } 332 }
332 m->insertItem(tr("Read this mail"),this,SLOT(displayMail())); 333 m->insertItem(i18n("Read this mail"),this,SLOT(displayMail()));
333 m->insertItem(tr("Move/Copy this mail"),this,SLOT(slotMoveCopyMail())); 334 m->insertItem(i18n("Move/Copy this mail"),this,SLOT(slotMoveCopyMail()));
334 m->insertItem(tr("Delete this mail"),this,SLOT(slotDeleteMail())); 335 m->insertItem(i18n("Delete this mail"),this,SLOT(slotDeleteMail()));
335 m->insertSeparator(); 336 m->insertSeparator();
336 m->insertItem(tr("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail())); 337 m->insertItem(i18n("Move/Copy all selected mail"),this,SLOT(slotMoveCopyAllMail()));
337 m->insertItem(tr("Delete all selected mails"),this,SLOT(slotDeleteAllMail())); 338 m->insertItem(i18n("Delete all selected mails"),this,SLOT(slotDeleteAllMail()));
338 m->insertItem(tr("Clear selection"),this,SLOT(clearSelection())); 339 m->insertItem(i18n("Clear selection"),this,SLOT(clearSelection()));
339 } 340 }
340 m->setFocus(); 341 m->setFocus();
@@ -401,6 +402,6 @@ void OpieMail::slotMoveCopyMail()
401 if (sels.newFolder() && !targetMail->createMbox(targetFolder)) 402 if (sels.newFolder() && !targetMail->createMbox(targetFolder))
402 { 403 {
403 QMessageBox::critical(0,tr("Error creating new Folder"), 404 QMessageBox::critical(0,i18n("Error creating new Folder"),
404 tr("<center>Error while creating<br>new folder - breaking.</center>")); 405 i18n("<center>Error while creating<br>new folder - breaking.</center>"));
405 return; 406 return;
406 } 407 }
@@ -417,5 +418,5 @@ void OpieMail::slotMoveCopyAllMail()
417 if (!mailView->currentItem()) return; 418 if (!mailView->currentItem()) return;
418 QValueList<RecMailP> t; 419 QValueList<RecMailP> t;
419 // if ( QMessageBox::warning(this, tr("Move/Copy all selected mails"), tr("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) 420 // if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes )
420 { 421 {
421 MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); 422 MailListViewItem* item = (MailListViewItem*)mailView->firstChild ();
@@ -446,6 +447,6 @@ void OpieMail::slotMoveCopyAllMail()
446 if (sels.newFolder() && !targetMail->createMbox(targetFolder)) 447 if (sels.newFolder() && !targetMail->createMbox(targetFolder))
447 { 448 {
448 QMessageBox::critical(0,tr("Error creating new Folder"), 449 QMessageBox::critical(0,i18n("Error creating new Folder"),
449 tr("<center>Error while creating<br>new folder - breaking.</center>")); 450 i18n("<center>Error while creating<br>new folder - breaking.</center>"));
450 return; 451 return;
451 } 452 }