author | skyhusker <skyhusker> | 2005-04-20 10:25:20 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-04-20 10:25:20 (UTC) |
commit | e439d0e6eaa6704a8b1b89ea32aa8a0520738a04 (patch) (side-by-side diff) | |
tree | 18c8b1eba5e1836f757765e4204d638500aa79f2 /noncore/net/opiestumbler/stationinfo.cpp | |
parent | f6b9c85c09692f298ffa5ee95e1f171a9e158502 (diff) | |
download | opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.zip opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.tar.gz opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.tar.bz2 |
First commit of OpieStumbler, an application which performs wireless networks scanning using Wireless Extensions
Diffstat (limited to 'noncore/net/opiestumbler/stationinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opiestumbler/stationinfo.cpp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/net/opiestumbler/stationinfo.cpp b/noncore/net/opiestumbler/stationinfo.cpp new file mode 100644 index 0000000..926610e --- a/dev/null +++ b/noncore/net/opiestumbler/stationinfo.cpp @@ -0,0 +1,63 @@ +#include <qlayout.h> +#include <qgroupbox.h> + + +#include "stationinfo.h" + + +StationInfo::StationInfo( const QString &ssid, const QString &type, const QString &channel, + const QString &maxrate, const QString &level, const QString &encryption, const QString &address, + const QString &vendor, const QString &time, + QWidget *parent, const char *name, bool modal, WFlags f) + : QDialog( parent, name, modal, f) +{ + setCaption(tr("Station Details")); + + QGridLayout *grid = new QGridLayout( this, 1, 2, 5); + QVBoxLayout *layLeft = new QVBoxLayout(0, 0, 6); + QVBoxLayout *layRight = new QVBoxLayout(0, 0, 6); + + + m_ssidLabel = new QLabel( tr("SSID:"), this ); + layLeft->addWidget(m_ssidLabel); + m_typeLabel = new QLabel( tr("Type:"), this ); + layLeft->addWidget(m_typeLabel); + m_channelLabel = new QLabel( tr("Channel:"), this ); + layLeft->addWidget(m_channelLabel); + m_maxRateLabel = new QLabel( tr("Max Rate"), this ); + layLeft->addWidget(m_maxRateLabel); + m_levelLabel = new QLabel( tr("Max Signal:"), this ); + layLeft->addWidget(m_levelLabel); + m_encLabel = new QLabel( tr("Encryption:"), this ); + layLeft->addWidget(m_encLabel); + m_addrLabel = new QLabel( tr("Address:"), this ); + layLeft->addWidget(m_addrLabel); + m_vendorLabel = new QLabel( tr("Vendor:"), this ); + layLeft->addWidget(m_vendorLabel); + m_timeLabel = new QLabel( tr("Last Time Seen:"), this ); + layLeft->addWidget(m_timeLabel); + + + m_ssid = new QLabel( ssid, this); + layRight->addWidget(m_ssid); + m_type = new QLabel( type, this); + layRight->addWidget(m_type); + m_channel = new QLabel( channel, this); + layRight->addWidget(m_channel); + m_maxRate = new QLabel( maxrate + " " + tr("Mb/s"), this ); + layRight->addWidget( m_maxRate ); + m_level = new QLabel( level, this); + layRight->addWidget(m_level); + m_encryption = new QLabel( encryption, this); + layRight->addWidget(m_encryption); + m_address = new QLabel( address, this); + layRight->addWidget(m_address); + m_vendor = new QLabel( vendor, this); + layRight->addWidget(m_vendor); + m_lastTime = new QLabel( time, this); + layRight->addWidget(m_lastTime); + + + grid->addLayout( layRight, 0, 1); + grid->addLayout( layLeft, 0, 0 ); +} |