00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "interfaceadvanced.h"
00010
00011 #include <qgroupbox.h>
00012 #include <qlabel.h>
00013 #include <qpushbutton.h>
00014 #include <qlayout.h>
00015 #include <qvariant.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018
00019
00020
00021
00022
00023 InterfaceAdvanced::InterfaceAdvanced( QWidget* parent, const char* name, WFlags fl )
00024 : QWidget( parent, name, fl )
00025 {
00026 if ( !name )
00027 setName( "InterfaceAdvanced" );
00028 resize( 214, 290 );
00029 setMaximumSize( QSize( 32767, 32767 ) );
00030 setCaption( tr( "Advanced Interface Information" ) );
00031 InterfaceAdvancedLayout = new QGridLayout( this );
00032 InterfaceAdvancedLayout->setSpacing( 6 );
00033 InterfaceAdvancedLayout->setMargin( 11 );
00034
00035 interfaceName = new QLabel( this, "interfaceName" );
00036 interfaceName->setFrameShape( QLabel::Panel );
00037 interfaceName->setFrameShadow( QLabel::Sunken );
00038 interfaceName->setText( tr( "eth0" ) );
00039
00040 InterfaceAdvancedLayout->addWidget( interfaceName, 0, 1 );
00041
00042 TextLabel3 = new QLabel( this, "TextLabel3" );
00043 TextLabel3->setText( tr( "IP Address" ) );
00044
00045 InterfaceAdvancedLayout->addWidget( TextLabel3, 1, 0 );
00046
00047 TextLabel7 = new QLabel( this, "TextLabel7" );
00048 TextLabel7->setText( tr( "Interface" ) );
00049
00050 InterfaceAdvancedLayout->addWidget( TextLabel7, 0, 0 );
00051
00052 TextLabel4 = new QLabel( this, "TextLabel4" );
00053 TextLabel4->setEnabled( TRUE );
00054 TextLabel4->setText( tr( "Subnet Mask" ) );
00055
00056 InterfaceAdvancedLayout->addWidget( TextLabel4, 2, 0 );
00057
00058 ipAddressLabel = new QLabel( this, "ipAddressLabel" );
00059 ipAddressLabel->setFrameShape( QLabel::Panel );
00060 ipAddressLabel->setFrameShadow( QLabel::Sunken );
00061 ipAddressLabel->setText( tr( "0.0.0.0" ) );
00062
00063 InterfaceAdvancedLayout->addWidget( ipAddressLabel, 1, 1 );
00064
00065 subnetMaskLabel = new QLabel( this, "subnetMaskLabel" );
00066 subnetMaskLabel->setFrameShape( QLabel::Panel );
00067 subnetMaskLabel->setFrameShadow( QLabel::Sunken );
00068 subnetMaskLabel->setText( tr( "0.0.0.0" ) );
00069
00070 InterfaceAdvancedLayout->addWidget( subnetMaskLabel, 2, 1 );
00071 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00072 InterfaceAdvancedLayout->addItem( spacer, 6, 1 );
00073
00074 dhcpInformation = new QGroupBox( this, "dhcpInformation" );
00075 dhcpInformation->setTitle( tr( "DHCP Information" ) );
00076 dhcpInformation->setColumnLayout(0, Qt::Vertical );
00077 dhcpInformation->layout()->setSpacing( 0 );
00078 dhcpInformation->layout()->setMargin( 0 );
00079 dhcpInformationLayout = new QGridLayout( dhcpInformation->layout() );
00080 dhcpInformationLayout->setAlignment( Qt::AlignTop );
00081 dhcpInformationLayout->setSpacing( 6 );
00082 dhcpInformationLayout->setMargin( 11 );
00083
00084 TextLabel6 = new QLabel( dhcpInformation, "TextLabel6" );
00085 TextLabel6->setText( tr( "DHCP Server" ) );
00086
00087 dhcpInformationLayout->addWidget( TextLabel6, 0, 0 );
00088
00089 leaseExpiresLabel = new QLabel( dhcpInformation, "leaseExpiresLabel" );
00090 leaseExpiresLabel->setFrameShape( QLabel::Panel );
00091 leaseExpiresLabel->setFrameShadow( QLabel::Sunken );
00092 leaseExpiresLabel->setText( tr( "" ) );
00093
00094 dhcpInformationLayout->addWidget( leaseExpiresLabel, 2, 1 );
00095
00096 leaseObtainedLabel = new QLabel( dhcpInformation, "leaseObtainedLabel" );
00097 leaseObtainedLabel->setFrameShape( QLabel::Panel );
00098 leaseObtainedLabel->setFrameShadow( QLabel::Sunken );
00099 leaseObtainedLabel->setText( tr( "" ) );
00100
00101 dhcpInformationLayout->addWidget( leaseObtainedLabel, 1, 1 );
00102
00103 TextLabel9 = new QLabel( dhcpInformation, "TextLabel9" );
00104 TextLabel9->setText( tr( "Lease Expires" ) );
00105
00106 dhcpInformationLayout->addWidget( TextLabel9, 2, 0 );
00107
00108 TextLabel8 = new QLabel( dhcpInformation, "TextLabel8" );
00109 TextLabel8->setText( tr( "Lease Obtained" ) );
00110
00111 dhcpInformationLayout->addWidget( TextLabel8, 1, 0 );
00112
00113 dhcpServerLabel = new QLabel( dhcpInformation, "dhcpServerLabel" );
00114 dhcpServerLabel->setFrameShape( QLabel::Panel );
00115 dhcpServerLabel->setFrameShadow( QLabel::Sunken );
00116 dhcpServerLabel->setText( tr( "" ) );
00117
00118 dhcpInformationLayout->addWidget( dhcpServerLabel, 0, 1 );
00119
00120 InterfaceAdvancedLayout->addMultiCellWidget( dhcpInformation, 5, 5, 0, 1 );
00121
00122 TextLabel2 = new QLabel( this, "TextLabel2" );
00123 TextLabel2->setText( tr( "Broadcast" ) );
00124
00125 InterfaceAdvancedLayout->addWidget( TextLabel2, 4, 0 );
00126
00127 broadcastLabel = new QLabel( this, "broadcastLabel" );
00128 broadcastLabel->setFrameShape( QLabel::Panel );
00129 broadcastLabel->setFrameShadow( QLabel::Sunken );
00130
00131 InterfaceAdvancedLayout->addWidget( broadcastLabel, 4, 1 );
00132
00133 TextLabel1 = new QLabel( this, "TextLabel1" );
00134 TextLabel1->setText( tr( "MAC Address" ) );
00135
00136 InterfaceAdvancedLayout->addWidget( TextLabel1, 3, 0 );
00137
00138 macAddressLabel = new QLabel( this, "macAddressLabel" );
00139 macAddressLabel->setFrameShape( QLabel::Panel );
00140 macAddressLabel->setFrameShadow( QLabel::Sunken );
00141 macAddressLabel->setText( tr( "00:00:00:00:00:00" ) );
00142
00143 InterfaceAdvancedLayout->addWidget( macAddressLabel, 3, 1 );
00144 }
00145
00146
00147
00148
00149 InterfaceAdvanced::~InterfaceAdvanced()
00150 {
00151
00152 }
00153