summaryrefslogtreecommitdiffstats
path: root/knetworkconf/knetworkconf/kadddevicecontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knetworkconf/knetworkconf/kadddevicecontainer.cpp')
-rw-r--r--knetworkconf/knetworkconf/kadddevicecontainer.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/knetworkconf/knetworkconf/kadddevicecontainer.cpp b/knetworkconf/knetworkconf/kadddevicecontainer.cpp
index 7ed7e0f..129d5c9 100644
--- a/knetworkconf/knetworkconf/kadddevicecontainer.cpp
+++ b/knetworkconf/knetworkconf/kadddevicecontainer.cpp
@@ -17,7 +17,7 @@
***************************************************************************/
#include "kadddevicecontainer.h"
-KAddDeviceContainer::KAddDeviceContainer(QWidget *parent, const char *name)
+KAddDeviceContainer::KAddDeviceContainer(TQWidget *parent, const char *name)
: KDialog(parent, name)
{
_modified = false;
@@ -29,16 +29,16 @@ KAddDeviceContainer::KAddDeviceContainer(QWidget *parent, const char *name)
//Create dialog that contains the KAddDeviceDlg and KAddDeviceWifiExt (when
//configuring a wireless interface) widgets
- QPixmap activeEthernetDeviceImg(BarIcon("network_connected_lan_knc"));
+ TQPixmap activeEthernetDeviceImg(BarIcon("network_connected_lan_knc"));
setIcon(activeEthernetDeviceImg);
//First create a main QHBoxLayout
- mainLayout = new QVBoxLayout( this, 10, 2, "mainLayout");
+ mainLayout = new TQVBoxLayout( this, 10, 2, "mainLayout");
//Create the Addvanced settings, Ok and Cancel buttons and add them to a QHBoxLayout
- buttonsLayout = new QHBoxLayout( 0, 0, 4, "buttonsLayout");
+ buttonsLayout = new TQHBoxLayout( 0, 0, 4, "buttonsLayout");
kpbAdvanced = new KPushButton( this, "kpbAdvanced" );
buttonsLayout->addWidget( kpbAdvanced );
- buttonsSpacer = new QSpacerItem( 70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ buttonsSpacer = new TQSpacerItem( 70, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
buttonsLayout->addItem( buttonsSpacer );
kpbApply = new KPushButton( this, "kpbApply" );
@@ -49,47 +49,47 @@ KAddDeviceContainer::KAddDeviceContainer(QWidget *parent, const char *name)
kpbCancel = new KPushButton( this, "kpbCancel" );
buttonsLayout->addWidget( kpbCancel );
- setCaption( QString::null );
+ setCaption( TQString::null );
kpbAdvanced->setText( i18n( "&Advanced Settings" ) );
- QToolTip::add( kpbAdvanced, i18n( "Toggle between advanced and basic settings" ) );
- QWhatsThis::add( kpbAdvanced, i18n( "Toggle between advanced and basic settings" ) );
+ TQToolTip::add( kpbAdvanced, i18n( "Toggle between advanced and basic settings" ) );
+ TQWhatsThis::add( kpbAdvanced, i18n( "Toggle between advanced and basic settings" ) );
kpbApply->setText( i18n( "&OK" ) );
- QToolTip::add( kpbApply, i18n( "Apply changes" ) );
+ TQToolTip::add( kpbApply, i18n( "Apply changes" ) );
kpbCancel->setText( i18n( "&Cancel" ) );
- QToolTip::add( kpbCancel, i18n( "Forget changes" ) );
+ TQToolTip::add( kpbCancel, i18n( "Forget changes" ) );
//Creat and add the KAddDeviceDlg widget to the main layout
addDlg = new KAddDeviceDlg(this);
mainLayout->addWidget(addDlg);
- mainLayout->setResizeMode(QLayout::Auto);
+ mainLayout->setResizeMode(TQLayout::Auto);
//Setup connections
- connect((KAddDeviceDlgExtension*)extension(),SIGNAL(valueChangedSignal(int)),this,SLOT(toggleApplyButtonSlot(int)));
- connect(addDlg->kleIPAddress,SIGNAL(textChanged(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
-// connect(addDlg->kleGateway,SIGNAL(textChanged(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
- connect(addDlg->kcbNetmask,SIGNAL(activated(int)),this,SLOT(toggleApplyButtonSlot(int)));
- connect(addDlg->kcbAutoBootProto,SIGNAL(activated(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
- connect(addDlg->kcbstartAtBoot,SIGNAL(stateChanged(int)),this,SLOT(toggleApplyButtonSlot(int)));
- connect(addDlg->rbBootProtoAuto,SIGNAL(toggled(bool)),this,SLOT(toggleAdvancedOptionsSlot(bool)));
- connect(addDlg->rbBootProtoAuto,SIGNAL(toggled(bool)),kpbAdvanced,SLOT(setDisabled(bool)));
- connect(addDlg->rbBootProtoAuto,SIGNAL(stateChanged(int)),this,SLOT(toggleApplyButtonSlot(int)));
- // connect(addDlg->rbBootProtoAuto,SIGNAL(toggled(bool)),addDlg->kleIPAddress,SLOT(setDisabled(bool)));
- // connect(addDlg->rbBootProtoAuto,SIGNAL(toggled(bool)),addDlg->kcbNetmask,SLOT(setDisabled(bool)));
- // connect(addDlg->rbBootProtoManual,SIGNAL(toggled(bool)),addDlg->kcbAutoBootProto,SLOT(setDisabled(bool)));
- connect(kpbCancel,SIGNAL(clicked()),this,SLOT(cancelSlot()));
- connect(kpbApply,SIGNAL(clicked()),this,SLOT(verifyDeviceInfoSlot()));
- connect(kpbAdvanced,SIGNAL(clicked()),this,SLOT(advancedOptionsSlot()));
+ connect((KAddDeviceDlgExtension*)extension(),TQT_SIGNAL(valueChangedSignal(int)),this,TQT_SLOT(toggleApplyButtonSlot(int)));
+ connect(addDlg->kleIPAddress,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
+// connect(addDlg->kleGateway,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
+ connect(addDlg->kcbNetmask,TQT_SIGNAL(activated(int)),this,TQT_SLOT(toggleApplyButtonSlot(int)));
+ connect(addDlg->kcbAutoBootProto,TQT_SIGNAL(activated(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
+ connect(addDlg->kcbstartAtBoot,TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(toggleApplyButtonSlot(int)));
+ connect(addDlg->rbBootProtoAuto,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(toggleAdvancedOptionsSlot(bool)));
+ connect(addDlg->rbBootProtoAuto,TQT_SIGNAL(toggled(bool)),kpbAdvanced,TQT_SLOT(setDisabled(bool)));
+ connect(addDlg->rbBootProtoAuto,TQT_SIGNAL(stateChanged(int)),this,TQT_SLOT(toggleApplyButtonSlot(int)));
+ // connect(addDlg->rbBootProtoAuto,TQT_SIGNAL(toggled(bool)),addDlg->kleIPAddress,TQT_SLOT(setDisabled(bool)));
+ // connect(addDlg->rbBootProtoAuto,TQT_SIGNAL(toggled(bool)),addDlg->kcbNetmask,TQT_SLOT(setDisabled(bool)));
+ // connect(addDlg->rbBootProtoManual,TQT_SIGNAL(toggled(bool)),addDlg->kcbAutoBootProto,TQT_SLOT(setDisabled(bool)));
+ connect(kpbCancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(cancelSlot()));
+ connect(kpbApply,TQT_SIGNAL(clicked()),this,TQT_SLOT(verifyDeviceInfoSlot()));
+ connect(kpbAdvanced,TQT_SIGNAL(clicked()),this,TQT_SLOT(advancedOptionsSlot()));
}
void KAddDeviceContainer::addWirelessWidget(){
extDlg = new KAddDeviceWifiExt(this);
mainLayout->addWidget( extDlg );
- connect(extDlg->kleEssid,SIGNAL(textChanged(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
- connect(extDlg->kleWepKey,SIGNAL(textChanged(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
- connect(extDlg->qcbKeyType,SIGNAL(activated(const QString&)),this,SLOT(toggleApplyButtonSlot(const QString&)));
+ connect(extDlg->kleEssid,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
+ connect(extDlg->kleWepKey,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
+ connect(extDlg->qcbKeyType,TQT_SIGNAL(activated(const TQString&)),this,TQT_SLOT(toggleApplyButtonSlot(const TQString&)));
}
-void KAddDeviceContainer::toggleApplyButtonSlot( const QString & )
+void KAddDeviceContainer::toggleApplyButtonSlot( const TQString & )
{
toggleApplyButtonSlot(0);
}
@@ -119,10 +119,10 @@ void KAddDeviceContainer::verifyDeviceInfoSlot()
if (addDlg->rbBootProtoManual->isChecked())
{
- QString ipAddress = addDlg->kleIPAddress->text();
- QString netmask = addDlg->kcbNetmask->currentText();
- QString broadcast = advancedOptions->kleBroadcast->text();
- QString gateway = advancedOptions->kleGateway->text();
+ TQString ipAddress = addDlg->kleIPAddress->text();
+ TQString netmask = addDlg->kcbNetmask->currentText();
+ TQString broadcast = advancedOptions->kleBroadcast->text();
+ TQString gateway = advancedOptions->kleGateway->text();
if (!KAddressValidator::isValidIPAddress(ipAddress))
{
@@ -197,7 +197,7 @@ KAddDeviceContainer::~KAddDeviceContainer()
void KAddDeviceContainer::addButtons()
{
- widgetHSpacer = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ widgetHSpacer = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
mainLayout->addItem( widgetHSpacer );
mainLayout->addLayout( buttonsLayout );
}