author | mickeyl <mickeyl> | 2003-05-03 21:33:49 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-03 21:33:49 (UTC) |
commit | 031031a22a8482c674b250c9f32a758f11139aeb (patch) (side-by-side diff) | |
tree | 79126fc719c74361eb1966d774cdf75c04c82a7c /noncore/net/wellenreiter/gui/wellenreiter.cpp | |
parent | cbaa70d78b1dccce4dc54baba5fc35431467972f (diff) | |
download | opie-031031a22a8482c674b250c9f32a758f11139aeb.zip opie-031031a22a8482c674b250c9f32a758f11139aeb.tar.gz opie-031031a22a8482c674b250c9f32a758f11139aeb.tar.bz2 |
prepare for i18n
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index c061319..62bda91 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -169,9 +169,13 @@ void Wellenreiter::receivePacket(OPacket* p) netView()->addNewItem( type, essid, header->macAddress2().toString(), beacon->canPrivacy(), channel, 0 ); - // do we have a prism header? + // update graph window + if ( ds ) + { OPrismHeaderPacket* prism = static_cast<OPrismHeaderPacket*>( p->child( "Prism" ) ); - if ( ds && prism ) + if ( prism ) graphwindow->traffic( ds->channel(), prism->signalStrength() ); - + else + graphwindow->traffic( ds->channel(), 95 ); + } return; } @@ -260,5 +264,6 @@ void Wellenreiter::stopClicked() // message the user - QMessageBox::information( this, "Wellenreiter II", "Your wireless card\nshould now be usable again." ); + QMessageBox::information( this, "Wellenreiter II", + tr( "Your wireless card\nshould now be usable again." ) ); sniffing = false; @@ -281,5 +286,6 @@ void Wellenreiter::startClicked() if ( ( interface == "" ) || ( cardtype == 0 ) ) { - QMessageBox::information( this, "Wellenreiter II", "Your device is not\nproperly configured. Please reconfigure!" ); + QMessageBox::information( this, "Wellenreiter II", + tr( "Your device is not\nproperly configured. Please reconfigure!" ) ); return; } @@ -298,5 +304,5 @@ void Wellenreiter::startClicked() case DEVTYPE_HOSTAP: iface->setMonitoring( new OHostAPMonitoringInterface( iface ) ); break; case DEVTYPE_ORINOCO: iface->setMonitoring( new OOrinocoMonitoringInterface( iface ) ); break; - case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", "Bring your device into\nmonitor mode now." ); break; + case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; case DEVTYPE_FILE: qDebug( "Wellenreiter: Capturing from file '%s'", (const char*) interface ); break; default: assert( 0 ); // shouldn't reach this @@ -310,5 +316,6 @@ void Wellenreiter::startClicked() if ( !iface->monitorMode() ) { - QMessageBox::warning( this, "Wellenreiter II", "Can't set device into monitor mode." ); + QMessageBox::warning( this, "Wellenreiter II", + tr( "Can't set device into monitor mode." ) ); return; } @@ -318,5 +325,5 @@ void Wellenreiter::startClicked() if ( cardtype != DEVTYPE_FILE ) { - if ( configwindow->writeCaptureFile->isEnabled() ) + if ( configwindow->writeCaptureFile->isEnabled() ) //FIXME: bug!? { QString dumpname( configwindow->captureFileName->text() ); @@ -338,5 +345,6 @@ void Wellenreiter::startClicked() if ( !pcap->isOpen() ) { - QMessageBox::warning( this, "Wellenreiter II", "Can't open packet capturer:\n" + QString(strerror( errno ) )); + QMessageBox::warning( this, "Wellenreiter II", + tr( "Can't open packet capturer:\n" ) + QString(strerror( errno ) )); return; } @@ -368,5 +376,5 @@ void Wellenreiter::startClicked() { assert( parent() ); - ( (QMainWindow*) parent() )->setCaption( "Wellenreiter II - replaying capture file..." ); + ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) ); } } |