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 @@ | |||
1 | #include <qlayout.h> | ||
2 | #include <qgroupbox.h> | ||
3 | |||
4 | |||
5 | #include "stationinfo.h" | ||
6 | |||
7 | |||
8 | StationInfo::StationInfo( const QString &ssid, const QString &type, const QString &channel, | ||
9 | const QString &maxrate, const QString &level, const QString &encryption, const QString &address, | ||
10 | const QString &vendor, const QString &time, | ||
11 | QWidget *parent, const char *name, bool modal, WFlags f) | ||
12 | : QDialog( parent, name, modal, f) | ||
13 | { | ||
14 | setCaption(tr("Station Details")); | ||
15 | |||
16 | QGridLayout *grid = new QGridLayout( this, 1, 2, 5); | ||
17 | QVBoxLayout *layLeft = new QVBoxLayout(0, 0, 6); | ||
18 | QVBoxLayout *layRight = new QVBoxLayout(0, 0, 6); | ||
19 | |||
20 | |||
21 | m_ssidLabel = new QLabel( tr("SSID:"), this ); | ||
22 | layLeft->addWidget(m_ssidLabel); | ||
23 | m_typeLabel = new QLabel( tr("Type:"), this ); | ||
24 | layLeft->addWidget(m_typeLabel); | ||
25 | m_channelLabel = new QLabel( tr("Channel:"), this ); | ||
26 | layLeft->addWidget(m_channelLabel); | ||
27 | m_maxRateLabel = new QLabel( tr("Max Rate"), this ); | ||
28 | layLeft->addWidget(m_maxRateLabel); | ||
29 | m_levelLabel = new QLabel( tr("Max Signal:"), this ); | ||
30 | layLeft->addWidget(m_levelLabel); | ||
31 | m_encLabel = new QLabel( tr("Encryption:"), this ); | ||
32 | layLeft->addWidget(m_encLabel); | ||
33 | m_addrLabel = new QLabel( tr("Address:"), this ); | ||
34 | layLeft->addWidget(m_addrLabel); | ||
35 | m_vendorLabel = new QLabel( tr("Vendor:"), this ); | ||
36 | layLeft->addWidget(m_vendorLabel); | ||
37 | m_timeLabel = new QLabel( tr("Last Time Seen:"), this ); | ||
38 | layLeft->addWidget(m_timeLabel); | ||
39 | |||
40 | |||
41 | m_ssid = new QLabel( ssid, this); | ||
42 | layRight->addWidget(m_ssid); | ||
43 | m_type = new QLabel( type, this); | ||
44 | layRight->addWidget(m_type); | ||
45 | m_channel = new QLabel( channel, this); | ||
46 | layRight->addWidget(m_channel); | ||
47 | m_maxRate = new QLabel( maxrate + " " + tr("Mb/s"), this ); | ||
48 | layRight->addWidget( m_maxRate ); | ||
49 | m_level = new QLabel( level, this); | ||
50 | layRight->addWidget(m_level); | ||
51 | m_encryption = new QLabel( encryption, this); | ||
52 | layRight->addWidget(m_encryption); | ||
53 | m_address = new QLabel( address, this); | ||
54 | layRight->addWidget(m_address); | ||
55 | m_vendor = new QLabel( vendor, this); | ||
56 | layRight->addWidget(m_vendor); | ||
57 | m_lastTime = new QLabel( time, this); | ||
58 | layRight->addWidget(m_lastTime); | ||
59 | |||
60 | |||
61 | grid->addLayout( layRight, 0, 1); | ||
62 | grid->addLayout( layLeft, 0, 0 ); | ||
63 | } | ||