1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 );
}
|