From d0d87d596d64cc1d5ef6322896c68883e4dfb5d0 Mon Sep 17 00:00:00 2001 From: benmeyer Date: Fri, 25 Oct 2002 15:41:48 +0000 Subject: Automaticly update the wlaninfo --- (limited to 'noncore/settings/networksettings') diff --git a/noncore/settings/networksettings/wlan/info.ui b/noncore/settings/networksettings/wlan/info.ui index 52d3a43..1e3e8b5 100644 --- a/noncore/settings/networksettings/wlan/info.ui +++ b/noncore/settings/networksettings/wlan/info.ui @@ -11,13 +11,13 @@ 0 0 - 279 - 292 + 242 + 316 caption - WLAN Information + Interface Information @@ -183,7 +183,7 @@ Sunken - + name Spacer7 @@ -204,92 +204,61 @@ - - - - QWidget - - name - tab - - - title - Statistics - - - - margin - 11 - - - spacing - 6 - - - - name - Spacer2 - - - orientation - Vertical - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - + QProgressBar name signalProgressBar - + QProgressBar name noiseProgressBar - + QProgressBar name qualityProgressBar - + QLabel name - TextLabel1_2 + rateLabel - text - Signal + sizePolicy + + 7 + 1 + + + + frameShape + Panel + + + frameShadow + Sunken - + QLabel name - TextLabel2_2 + TextLabel4_2 text - Noise + Rate - + QLabel name @@ -300,37 +269,26 @@ Quality - + QLabel name - TextLabel4_2 + TextLabel2_2 text - Rate + Noise - + QLabel name - rateLabel - - - sizePolicy - - 7 - 1 - - - - frameShape - Panel + TextLabel1_2 - frameShadow - Sunken + text + Signal diff --git a/noncore/settings/networksettings/wlan/wlan.pro b/noncore/settings/networksettings/wlan/wlan.pro index 432a096..f28feb2 100644 --- a/noncore/settings/networksettings/wlan/wlan.pro +++ b/noncore/settings/networksettings/wlan/wlan.pro @@ -2,8 +2,8 @@ TEMPLATE = lib CONFIG += qt warn_on release #CONFIG += qt warn_on debug DESTDIR = $(OPIEDIR)/plugins/networksetup -HEADERS = wlanimp.h wlanmodule.h wextensions.h -SOURCES = wlanimp.cpp wlanmodule.cpp wextensions.cpp +HEADERS = wlanimp.h infoimp.h wlanmodule.h wextensions.h +SOURCES = wlanimp.cpp infoimp.cpp wlanmodule.cpp wextensions.cpp INCLUDEPATH += $(OPIEDIR)/include ../ DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp index bf2589e..3993ca0 100644 --- a/noncore/settings/networksettings/wlan/wlanmodule.cpp +++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp @@ -1,6 +1,6 @@ #include "wlanmodule.h" #include "wlanimp.h" -#include "info.h" +#include "infoimp.h" #include "wextensions.h" #include @@ -72,22 +72,8 @@ QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){ if(!we.doesHaveWirelessExtensions()) return NULL; - WlanInfo *info = new WlanInfo(0, "wireless info", Qt::WDestructiveClose); + WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose); (*tabWidget) = info->tabWidget; - - info->essidLabel->setText(we.essid()); - info->apLabel->setText(we.ap()); - info->stationLabel->setText(we.station()); - info->modeLabel->setText(we.mode()); - info->freqLabel->setText(QString("%1 GHz").arg(we.frequency())); - int signal = 0; - int noise = 0; - int quality = 0; - we.stats(signal, noise, quality); - info->signalProgressBar->setProgress(signal); - info->noiseProgressBar->setProgress(noise); - info->qualityProgressBar->setProgress(quality); - info->rateLabel->setText(QString("%1 Mb/s").arg(we.rate())); return info; } -- cgit v0.9.0.2