summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/mainwindow.cpp
authormickeyl <mickeyl>2003-05-03 21:33:49 (UTC)
committer mickeyl <mickeyl>2003-05-03 21:33:49 (UTC)
commit031031a22a8482c674b250c9f32a758f11139aeb (patch) (unidiff)
tree79126fc719c74361eb1966d774cdf75c04c82a7c /noncore/net/wellenreiter/gui/mainwindow.cpp
parentcbaa70d78b1dccce4dc54baba5fc35431467972f (diff)
downloadopie-031031a22a8482c674b250c9f32a758f11139aeb.zip
opie-031031a22a8482c674b250c9f32a758f11139aeb.tar.gz
opie-031031a22a8482c674b250c9f32a758f11139aeb.tar.bz2
prepare for i18n
Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp43
1 files changed, 22 insertions, 21 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index 6cd364c..c4a8fbc 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -102,40 +102,40 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
102 QMenuBar* mb = menuBar(); 102 QMenuBar* mb = menuBar();
103 103
104 QPopupMenu* fileSave = new QPopupMenu( mb ); 104 QPopupMenu* fileSave = new QPopupMenu( mb );
105 fileSave->insertItem( "&Session...", this, SLOT( fileSaveSession() ) ); 105 fileSave->insertItem( tr( "&Session..." ), this, SLOT( fileSaveSession() ) );
106 fileSave->insertItem( "&Text Log...", this, SLOT( fileSaveLog() ) ); 106 fileSave->insertItem( tr( "&Text Log..." ), this, SLOT( fileSaveLog() ) );
107 fileSave->insertItem( "&Hex Log...", this, SLOT( fileSaveHex() ) ); 107 fileSave->insertItem( tr( "&Hex Log..." ), this, SLOT( fileSaveHex() ) );
108 108
109 QPopupMenu* fileLoad = new QPopupMenu( mb ); 109 QPopupMenu* fileLoad = new QPopupMenu( mb );
110 fileLoad->insertItem( "&Session...", this, SLOT( fileLoadSession() ) ); 110 fileLoad->insertItem( tr( "&Session..." ), this, SLOT( fileLoadSession() ) );
111 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); 111 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) );
112 112
113 QPopupMenu* file = new QPopupMenu( mb ); 113 QPopupMenu* file = new QPopupMenu( mb );
114 file->insertItem( "&New", this, SLOT( fileNew() ) ); 114 file->insertItem( tr( "&New" ), this, SLOT( fileNew() ) );
115 id = file->insertItem( "&Load", fileLoad ); 115 id = file->insertItem( tr( "&Load" ), fileLoad );
116 file->insertItem( "&Save", fileSave ); 116 file->insertItem( tr( "&Save" ), fileSave );
117 file->insertSeparator(); 117 file->insertSeparator();
118 file->insertItem( "&Exit", qApp, SLOT( quit() ) ); 118 file->insertItem( tr( "&Exit" ), qApp, SLOT( quit() ) );
119 119
120 QPopupMenu* view = new QPopupMenu( mb ); 120 QPopupMenu* view = new QPopupMenu( mb );
121 view->insertItem( "&Configure..." ); 121 view->insertItem( tr( "&Configure..." ) );
122 122
123 QPopupMenu* sniffer = new QPopupMenu( mb ); 123 QPopupMenu* sniffer = new QPopupMenu( mb );
124 sniffer->insertItem( "&Configure...", this, SLOT( showConfigure() ) ); 124 sniffer->insertItem( tr( "&Configure..." ), this, SLOT( showConfigure() ) );
125 sniffer->insertSeparator(); 125 sniffer->insertSeparator();
126 startID = sniffer->insertItem( "&Start", mw, SLOT( startClicked() ) ); 126 startID = sniffer->insertItem( tr( "&Start" ), mw, SLOT( startClicked() ) );
127 sniffer->setItemEnabled( startID, false ); 127 sniffer->setItemEnabled( startID, false );
128 stopID = sniffer->insertItem( "Sto&p", mw, SLOT( stopClicked() ) ); 128 stopID = sniffer->insertItem( tr( "Sto&p" ), mw, SLOT( stopClicked() ) );
129 sniffer->setItemEnabled( stopID, false ); 129 sniffer->setItemEnabled( stopID, false );
130 130
131 QPopupMenu* demo = new QPopupMenu( mb ); 131 QPopupMenu* demo = new QPopupMenu( mb );
132 demo->insertItem( "&Add something", this, SLOT( demoAddStations() ) ); 132 demo->insertItem( tr( "&Add something" ), this, SLOT( demoAddStations() ) );
133 133
134 id = mb->insertItem( "&File", file ); 134 id = mb->insertItem( tr( "&File" ), file );
135 id = mb->insertItem( "&View", view ); 135 id = mb->insertItem( tr( "&View" ), view );
136 mb->setItemEnabled( id, false ); 136 mb->setItemEnabled( id, false );
137 id = mb->insertItem( "&Sniffer", sniffer ); 137 id = mb->insertItem( tr( "&Sniffer" ), sniffer );
138 id = mb->insertItem( "&Demo", demo ); 138 id = mb->insertItem( tr( "&Demo" ), demo );
139 mb->setItemEnabled( id, true ); 139 mb->setItemEnabled( id, true );
140 140
141 #ifdef QWS 141 #ifdef QWS
@@ -155,7 +155,7 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
155 // setup status bar (for now only on X11) 155 // setup status bar (for now only on X11)
156 156
157 #ifndef QWS 157 #ifndef QWS
158 statusBar()->message( "Ready." ); 158 statusBar()->message( tr( "Ready." ) );
159 #endif 159 #endif
160 160
161 connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) ); 161 connect( mw, SIGNAL( startedSniffing() ), this, SLOT( changedSniffingState() ) );
@@ -230,9 +230,9 @@ QString WellenreiterMainWindow::getFileName( bool save )
230 map.insert( tr("All"), QStringList() ); 230 map.insert( tr("All"), QStringList() );
231 QStringList text; 231 QStringList text;
232 text << "text/*"; 232 text << "text/*";
233 map.insert(tr("Text"), text ); 233 map.insert( tr("Text"), text );
234 text << "*"; 234 text << "*";
235 map.insert(tr("All"), text ); 235 map.insert( tr("All"), text );
236 236
237 QString str; 237 QString str;
238 if ( save ) 238 if ( save )
@@ -351,7 +351,8 @@ void WellenreiterMainWindow::closeEvent( QCloseEvent* e )
351{ 351{
352 if ( mw->isDaemonRunning() ) 352 if ( mw->isDaemonRunning() )
353 { 353 {
354 QMessageBox::warning( this, "Wellenreiter/Opie", "Sniffing in progress!\nPlease stop sniffing before closing." ); 354 QMessageBox::warning( this, "Wellenreiter/Opie",
355 tr( "Sniffing in progress!\nPlease stop sniffing before closing." ) );
355 e->ignore(); 356 e->ignore();
356 } 357 }
357 else 358 else