|
|
@ -29,17 +29,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Statistics::Statistics( KNetStatsView* tqparent, const char *name )
|
|
|
|
Statistics::Statistics( KNetStatsView* parent, const char *name )
|
|
|
|
: StatisticsBase( tqparent, name ), mInterface(tqparent->interface()), mParent(tqparent) {
|
|
|
|
: StatisticsBase( parent, name ), mInterface(parent->interface()), mParent(parent) {
|
|
|
|
setCaption( i18n( "Details of %1" ).tqarg( mInterface ) );
|
|
|
|
setCaption( i18n( "Details of %1" ).tqarg( mInterface ) );
|
|
|
|
|
|
|
|
|
|
|
|
TQBoxLayout* l = new TQHBoxLayout( mChart );
|
|
|
|
TQBoxLayout* l = new TQHBoxLayout( mChart );
|
|
|
|
l->setAutoAdd( true );
|
|
|
|
l->setAutoAdd( true );
|
|
|
|
Chart* chart = new Chart(mChart, tqparent->speedHistoryTx(), tqparent->speedHistoryRx(), tqparent->historyBufferSize(), tqparent->historyPointer(), tqparent->maxSpeed());
|
|
|
|
Chart* chart = new Chart(mChart, parent->speedHistoryTx(), parent->speedHistoryRx(), parent->historyBufferSize(), parent->historyPointer(), parent->maxSpeed());
|
|
|
|
mMAC->setText(mParent->readInterfaceStringValue("address", 18));
|
|
|
|
mMAC->setText(mParent->readInterfaceStringValue("address", 18));
|
|
|
|
mIP->tqsetAlignment(TQt::AlignRight);
|
|
|
|
mIP->tqsetAlignment(TQt::AlignRight);
|
|
|
|
mMAC->tqsetAlignment(TQt::AlignRight);
|
|
|
|
mMAC->tqsetAlignment(TQt::AlignRight);
|
|
|
|
mNettqmask->tqsetAlignment(TQt::AlignRight);
|
|
|
|
mNetmask->tqsetAlignment(TQt::AlignRight);
|
|
|
|
update();
|
|
|
|
update();
|
|
|
|
|
|
|
|
|
|
|
|
mTimer = new TQTimer( this );
|
|
|
|
mTimer = new TQTimer( this );
|
|
|
@ -64,7 +64,7 @@ void Statistics::show() {
|
|
|
|
// Update details...
|
|
|
|
// Update details...
|
|
|
|
mMTU->setText(mParent->readInterfaceStringValue("mtu", 6));
|
|
|
|
mMTU->setText(mParent->readInterfaceStringValue("mtu", 6));
|
|
|
|
mIP->setText( mParent->getIp() );
|
|
|
|
mIP->setText( mParent->getIp() );
|
|
|
|
mNettqmask->setText( mParent->getNettqmask() );
|
|
|
|
mNetmask->setText( mParent->getNetmask() );
|
|
|
|
|
|
|
|
|
|
|
|
mTimer->start( mParent->updateInterval() );
|
|
|
|
mTimer->start( mParent->updateInterval() );
|
|
|
|
StatisticsBase::show();
|
|
|
|
StatisticsBase::show();
|
|
|
|