From e6428d30a5dc90ed3ec6ca7e1cb3f92c81437cc0 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 30 Apr 2003 18:50:47 +0000 Subject: - autoscrolling for hex- and logwindow - revamped statistics window --- (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 0105e09..5ec9ee4 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -32,6 +32,7 @@ using namespace Opie; #include #include +#include #include #include #include @@ -257,23 +258,8 @@ void Wellenreiter::stopClicked() emit( stoppedSniffing() ); // print out statistics - statwindow->log( "-----------------------------------------" ); - statwindow->log( "- Wellenreiter II Capturing Statistic -" ); - statwindow->log( "-----------------------------------------" ); - statwindow->log( "Packet Type | Receive Count" ); - for( QMap::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) - { - QString left; - left.sprintf( "%s", (const char*) it.key() ); - left = left.leftJustify( 20 ); - left.append( '|' ); - QString right; - right.sprintf( "%d", it.data() ); - right = right.rightJustify( 7 ); - statwindow->log( left + right ); - } - + statwindow->updateCounter( it.key(), it.data() ); } -- cgit v0.9.0.2