00001 #include <qlayout.h>
00002 #include <qgroupbox.h>
00003
00004
00005 #include "stationinfo.h"
00006
00007
00008 StationInfo::StationInfo( const QString &ssid, const QString &type, const QString &channel,
00009 const QString &maxrate, const QString &level, const QString &encryption, const QString &address,
00010 const QString &vendor, const QString &time,
00011 QWidget *parent, const char *name, bool modal, WFlags f)
00012 : QDialog( parent, name, modal, f)
00013 {
00014 setCaption(tr("Station Details"));
00015
00016 QGridLayout *grid = new QGridLayout( this, 1, 2, 5);
00017 QVBoxLayout *layLeft = new QVBoxLayout(0, 0, 6);
00018 QVBoxLayout *layRight = new QVBoxLayout(0, 0, 6);
00019
00020
00021 m_ssidLabel = new QLabel( tr("SSID:"), this );
00022 layLeft->addWidget(m_ssidLabel);
00023 m_typeLabel = new QLabel( tr("Type:"), this );
00024 layLeft->addWidget(m_typeLabel);
00025 m_channelLabel = new QLabel( tr("Channel:"), this );
00026 layLeft->addWidget(m_channelLabel);
00027 m_maxRateLabel = new QLabel( tr("Max Rate"), this );
00028 layLeft->addWidget(m_maxRateLabel);
00029 m_levelLabel = new QLabel( tr("Max Signal:"), this );
00030 layLeft->addWidget(m_levelLabel);
00031 m_encLabel = new QLabel( tr("Encryption:"), this );
00032 layLeft->addWidget(m_encLabel);
00033 m_addrLabel = new QLabel( tr("Address:"), this );
00034 layLeft->addWidget(m_addrLabel);
00035 m_vendorLabel = new QLabel( tr("Vendor:"), this );
00036 layLeft->addWidget(m_vendorLabel);
00037 m_timeLabel = new QLabel( tr("Last Time Seen:"), this );
00038 layLeft->addWidget(m_timeLabel);
00039
00040
00041 m_ssid = new QLabel( ssid, this);
00042 layRight->addWidget(m_ssid);
00043 m_type = new QLabel( type, this);
00044 layRight->addWidget(m_type);
00045 m_channel = new QLabel( channel, this);
00046 layRight->addWidget(m_channel);
00047 m_maxRate = new QLabel( maxrate + " " + tr("Mb/s"), this );
00048 layRight->addWidget( m_maxRate );
00049 m_level = new QLabel( level, this);
00050 layRight->addWidget(m_level);
00051 m_encryption = new QLabel( encryption, this);
00052 layRight->addWidget(m_encryption);
00053 m_address = new QLabel( address, this);
00054 layRight->addWidget(m_address);
00055 m_vendor = new QLabel( vendor, this);
00056 layRight->addWidget(m_vendor);
00057 m_lastTime = new QLabel( time, this);
00058 layRight->addWidget(m_lastTime);
00059
00060
00061 grid->addLayout( layRight, 0, 1);
00062 grid->addLayout( layLeft, 0, 0 );
00063 }