summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interfaceedit.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/interfaceedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaceedit.cpp141
1 files changed, 0 insertions, 141 deletions
diff --git a/noncore/settings/networksettings/interfaceedit.cpp b/noncore/settings/networksettings/interfaceedit.cpp
deleted file mode 100644
index 25599ef..0000000
--- a/noncore/settings/networksettings/interfaceedit.cpp
+++ b/dev/null
@@ -1,141 +0,0 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'interfaceedit.ui'
3**
4** Created: Mon Sep 23 12:18:55 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "interfaceedit.h"
10
11#include <qcheckbox.h>
12#include <qcombobox.h>
13#include <qframe.h>
14#include <qgroupbox.h>
15#include <qlabel.h>
16#include <qlineedit.h>
17#include <qpushbutton.h>
18#include <qspinbox.h>
19#include "qwidget.h"
20#include <qlayout.h>
21#include <qvariant.h>
22#include <qtooltip.h>
23#include <qwhatsthis.h>
24
25/*
26 * Constructs a InterfaceConfiguration which is a child of 'parent', with the
27 * name 'name' and widget flags set to 'f'
28 */
29InterfaceConfiguration::InterfaceConfiguration( QWidget* parent, const char* name, WFlags fl )
30 : QWidget( parent, name, fl )
31{
32 if ( !name )
33 setName( "InterfaceConfiguration" );
34 resize( 177, 306 );
35 setCaption( tr( "Interface Configuration" ) );
36 InterfaceConfigurationLayout = new QGridLayout( this );
37 InterfaceConfigurationLayout->setSpacing( 6 );
38 InterfaceConfigurationLayout->setMargin( 11 );
39
40 profile = new QComboBox( FALSE, this, "profile" );
41 profile->insertItem( tr( "All" ) );
42
43 InterfaceConfigurationLayout->addWidget( profile, 2, 1 );
44
45 TextLabel1 = new QLabel( this, "TextLabel1" );
46 TextLabel1->setText( tr( "Profile:" ) );
47
48 InterfaceConfigurationLayout->addWidget( TextLabel1, 2, 0 );
49
50 Line1 = new QFrame( this, "Line1" );
51 Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
52
53 InterfaceConfigurationLayout->addMultiCellWidget( Line1, 1, 1, 0, 1 );
54
55 CheckBox3 = new QCheckBox( this, "CheckBox3" );
56 CheckBox3->setText( tr( "Automaticly bring up" ) );
57
58 InterfaceConfigurationLayout->addMultiCellWidget( CheckBox3, 0, 0, 0, 1 );
59
60 dhcpCheckBox = new QCheckBox( this, "dhcpCheckBox" );
61 dhcpCheckBox->setText( tr( "DHCP" ) );
62
63 InterfaceConfigurationLayout->addMultiCellWidget( dhcpCheckBox, 3, 3, 0, 1 );
64
65 TextLabel3_3_2 = new QLabel( this, "TextLabel3_3_2" );
66 TextLabel3_3_2->setText( tr( "Lease Hours" ) );
67
68 InterfaceConfigurationLayout->addWidget( TextLabel3_3_2, 4, 0 );
69
70 SpinBox1_2 = new QSpinBox( this, "SpinBox1_2" );
71 SpinBox1_2->setMaxValue( 336 );
72 SpinBox1_2->setMinValue( 1 );
73 SpinBox1_2->setValue( 24 );
74
75 InterfaceConfigurationLayout->addWidget( SpinBox1_2, 4, 1 );
76 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
77 InterfaceConfigurationLayout->addItem( spacer, 11, 1 );
78
79 TextLabel4 = new QLabel( this, "TextLabel4" );
80 TextLabel4->setText( tr( "IP Address" ) );
81
82 InterfaceConfigurationLayout->addWidget( TextLabel4, 6, 0 );
83
84 ipAddressEdit = new QLineEdit( this, "ipAddressEdit" );
85
86 InterfaceConfigurationLayout->addWidget( ipAddressEdit, 6, 1 );
87
88 TextLabel5 = new QLabel( this, "TextLabel5" );
89 TextLabel5->setText( tr( "Subnet Mask" ) );
90
91 InterfaceConfigurationLayout->addWidget( TextLabel5, 7, 0 );
92
93 firstDNSLineEdit = new QLineEdit( this, "firstDNSLineEdit" );
94
95 InterfaceConfigurationLayout->addWidget( firstDNSLineEdit, 9, 1 );
96
97 TextLabel3 = new QLabel( this, "TextLabel3" );
98 TextLabel3->setText( tr( "Second DNS" ) );
99
100 InterfaceConfigurationLayout->addWidget( TextLabel3, 10, 0 );
101
102 subnetMaskEdit = new QLineEdit( this, "subnetMaskEdit" );
103
104 InterfaceConfigurationLayout->addWidget( subnetMaskEdit, 7, 1 );
105
106 gatewayEdit = new QLineEdit( this, "gatewayEdit" );
107
108 InterfaceConfigurationLayout->addWidget( gatewayEdit, 8, 1 );
109
110 TextLabel7 = new QLabel( this, "TextLabel7" );
111 TextLabel7->setText( tr( "Gateway" ) );
112
113 InterfaceConfigurationLayout->addWidget( TextLabel7, 8, 0 );
114
115 TextLabel2 = new QLabel( this, "TextLabel2" );
116 TextLabel2->setText( tr( "First DNS" ) );
117
118 InterfaceConfigurationLayout->addWidget( TextLabel2, 9, 0 );
119
120 secondDNSLineEdit = new QLineEdit( this, "secondDNSLineEdit" );
121
122 InterfaceConfigurationLayout->addWidget( secondDNSLineEdit, 10, 1 );
123
124 GroupBox2 = new QGroupBox( this, "GroupBox2" );
125 GroupBox2->setTitle( tr( "Static Ip Configuration" ) );
126
127 InterfaceConfigurationLayout->addMultiCellWidget( GroupBox2, 5, 5, 0, 1 );
128
129 // signals and slots connections
130 connect( dhcpCheckBox, SIGNAL( toggled(bool) ), SpinBox1_2, SLOT( setEnabled(bool) ) );
131 connect( dhcpCheckBox, SIGNAL( toggled(bool) ), GroupBox2, SLOT( setDisabled(bool) ) );
132}
133
134/*
135 * Destroys the object and frees any allocated resources
136 */
137InterfaceConfiguration::~InterfaceConfiguration()
138{
139 // no need to delete child widgets, Qt does it all for us
140}
141