Networksettings API API Documentation

interfaceinformation.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'interfaceinformation.ui'
00003 **
00004 ** Created: Sun Jan 11 15:26:14 2004
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 #include "interfaceinformation.h"
00010 
00011 #include <qcheckbox.h>
00012 #include <qframe.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qlayout.h>
00016 #include <qvariant.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 
00020 /* 
00021  *  Constructs a InterfaceInformation which is a child of 'parent', with the 
00022  *  name 'name' and widget flags set to 'f' 
00023  */
00024 InterfaceInformation::InterfaceInformation( QWidget* parent,  const char* name, WFlags fl )
00025     : QWidget( parent, name, fl )
00026 {
00027     if ( !name )
00028     setName( "InterfaceInformation" );
00029     resize( 219, 323 ); 
00030     setCaption( tr( "Interface Information" ) );
00031     InterfaceInformationLayout = new QVBoxLayout( this ); 
00032     InterfaceInformationLayout->setSpacing( 3 );
00033     InterfaceInformationLayout->setMargin( 4 );
00034 
00035     TextLabel22 = new QLabel( this, "TextLabel22" );
00036     TextLabel22->setText( tr( "IP Address" ) );
00037     InterfaceInformationLayout->addWidget( TextLabel22 );
00038 
00039     ipAddressLabel = new QLabel( this, "ipAddressLabel" );
00040     ipAddressLabel->setFrameShape( QLabel::Panel );
00041     ipAddressLabel->setFrameShadow( QLabel::Sunken );
00042     ipAddressLabel->setText( tr( "0.0.0.0" ) );
00043     InterfaceInformationLayout->addWidget( ipAddressLabel );
00044 
00045     Line1 = new QFrame( this, "Line1" );
00046     Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
00047     InterfaceInformationLayout->addWidget( Line1 );
00048 
00049     TextLabel23 = new QLabel( this, "TextLabel23" );
00050     TextLabel23->setText( tr( "Subnet Mask" ) );
00051     InterfaceInformationLayout->addWidget( TextLabel23 );
00052 
00053     subnetMaskLabel = new QLabel( this, "subnetMaskLabel" );
00054     subnetMaskLabel->setFrameShape( QLabel::Panel );
00055     subnetMaskLabel->setFrameShadow( QLabel::Sunken );
00056     subnetMaskLabel->setText( tr( "0.0.0.0" ) );
00057     InterfaceInformationLayout->addWidget( subnetMaskLabel );
00058 
00059     macAddressLabel = new QLabel( this, "macAddressLabel" );
00060     macAddressLabel->setFrameShape( QLabel::Panel );
00061     macAddressLabel->setFrameShadow( QLabel::Sunken );
00062     macAddressLabel->setText( tr( "00:00:00:00:00:00" ) );
00063     InterfaceInformationLayout->addWidget( macAddressLabel );
00064 
00065     TextLabel21 = new QLabel( this, "TextLabel21" );
00066     TextLabel21->setText( tr( "MAC Address" ) );
00067     InterfaceInformationLayout->addWidget( TextLabel21 );
00068 
00069     broadcastLabel = new QLabel( this, "broadcastLabel" );
00070     broadcastLabel->setFrameShape( QLabel::Panel );
00071     broadcastLabel->setFrameShadow( QLabel::Sunken );
00072     broadcastLabel->setText( tr( "" ) );
00073     InterfaceInformationLayout->addWidget( broadcastLabel );
00074 
00075     TextLabel24 = new QLabel( this, "TextLabel24" );
00076     TextLabel24->setFrameShape( QLabel::MShape );
00077     TextLabel24->setFrameShadow( QLabel::MShadow );
00078     TextLabel24->setText( tr( "Broadcast" ) );
00079     InterfaceInformationLayout->addWidget( TextLabel24 );
00080 
00081     Layout1 = new QGridLayout; 
00082     Layout1->setSpacing( 6 );
00083     Layout1->setMargin( 0 );
00084 
00085     refreshButton = new QPushButton( this, "refreshButton" );
00086     refreshButton->setText( tr( "&Refresh" ) );
00087 
00088     Layout1->addWidget( refreshButton, 1, 0 );
00089 
00090     stopButton = new QPushButton( this, "stopButton" );
00091     stopButton->setText( tr( "S&top" ) );
00092 
00093     Layout1->addWidget( stopButton, 0, 1 );
00094 
00095     restartButton = new QPushButton( this, "restartButton" );
00096     restartButton->setText( tr( "R&estart" ) );
00097 
00098     Layout1->addWidget( restartButton, 1, 1 );
00099 
00100     startButton = new QPushButton( this, "startButton" );
00101     startButton->setText( tr( "&Start" ) );
00102 
00103     Layout1->addWidget( startButton, 0, 0 );
00104     InterfaceInformationLayout->addLayout( Layout1 );
00105 
00106     Line5 = new QFrame( this, "Line5" );
00107     Line5->setFrameStyle( QFrame::HLine | QFrame::Sunken );
00108     InterfaceInformationLayout->addWidget( Line5 );
00109 
00110     Layout2 = new QHBoxLayout; 
00111     Layout2->setSpacing( 6 );
00112     Layout2->setMargin( 0 );
00113     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00114     Layout2->addItem( spacer );
00115 
00116     advancedButton = new QPushButton( this, "advancedButton" );
00117     advancedButton->setText( tr( "&View Advanced Information" ) );
00118     Layout2->addWidget( advancedButton );
00119     InterfaceInformationLayout->addLayout( Layout2 );
00120     QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00121     InterfaceInformationLayout->addItem( spacer_2 );
00122 
00123     CheckBoxSilent = new QCheckBox( this, "CheckBoxSilent" );
00124     CheckBoxSilent->setText( tr( "be &silent" ) );
00125     InterfaceInformationLayout->addWidget( CheckBoxSilent );
00126 
00127     // tab order
00128     setTabOrder( startButton, stopButton );
00129     setTabOrder( stopButton, refreshButton );
00130     setTabOrder( refreshButton, restartButton );
00131     setTabOrder( restartButton, advancedButton );
00132 }
00133 
00134 /*  
00135  *  Destroys the object and frees any allocated resources
00136  */
00137 InterfaceInformation::~InterfaceInformation()
00138 {
00139     // no need to delete child widgets, Qt does it all for us
00140 }
00141 
KDE Logo
This file is part of the documentation for OPIE Version 1.0.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:44 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001