summaryrefslogtreecommitdiffstats
path: root/lanbrowsing/kcmlisa/kcmreslisa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lanbrowsing/kcmlisa/kcmreslisa.cpp')
-rw-r--r--lanbrowsing/kcmlisa/kcmreslisa.cpp130
1 files changed, 65 insertions, 65 deletions
diff --git a/lanbrowsing/kcmlisa/kcmreslisa.cpp b/lanbrowsing/kcmlisa/kcmreslisa.cpp
index 7e92b199..fcaf104c 100644
--- a/lanbrowsing/kcmlisa/kcmreslisa.cpp
+++ b/lanbrowsing/kcmlisa/kcmreslisa.cpp
@@ -20,15 +20,15 @@
#include "kcmreslisa.h"
#include "findnic.h"
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qvbox.h>
-#include <qpushbutton.h>
-#include <qgrid.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qlayout.h>
-#include <qvbuttongroup.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqvbox.h>
+#include <tqpushbutton.h>
+#include <tqgrid.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
+#include <tqvbuttongroup.h>
#include <kdialogbase.h>
#include <klocale.h>
@@ -36,7 +36,7 @@
#include <krestrictedline.h>
#include <keditlistbox.h>
-ResLisaSettings::ResLisaSettings(const QString& config, QWidget *parent)
+ResLisaSettings::ResLisaSettings(const TQString& config, TQWidget *parent)
: KCModule(parent)
,m_config(config,false,true)
,m_kiolanConfig("kio_lanrc",false,true)
@@ -53,90 +53,90 @@ ResLisaSettings::ResLisaSettings(const QString& config, QWidget *parent)
,m_maxPingsAtOnce(0)
,m_reslisaAdvancedDlg(0)
{
- QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *gb=new QVButtonGroup(i18n("Tell ResLISa Daemon How to Search for Hosts"),this);
+ TQVButtonGroup *gb=new TQVButtonGroup(i18n("Tell ResLISa Daemon How to Search for Hosts"),this);
gb->setInsideSpacing(10);
- m_useNmblookup=new QCheckBox(i18n("Send &NetBIOS broadcasts using &nmblookup"),gb);
- QToolTip::add(m_useNmblookup,i18n("Only hosts running SMB servers will answer"));
+ m_useNmblookup=new TQCheckBox(i18n("Send &NetBIOS broadcasts using &nmblookup"),gb);
+ TQToolTip::add(m_useNmblookup,i18n("Only hosts running SMB servers will answer"));
m_pingNames=new KEditListBox(i18n("A&dditionally Check These Hosts"),gb,"a",false, KEditListBox::Add|KEditListBox::Remove);
- QToolTip::add(m_pingNames,i18n("The hosts listed here will be pinged."));
+ TQToolTip::add(m_pingNames,i18n("The hosts listed here will be pinged."));
- QHBox *hbox=new QHBox(this);
+ TQHBox *hbox=new TQHBox(this);
hbox->setSpacing(10);
- QLabel *label=new QLabel(i18n("&Trusted addresses:"),hbox);
- QString comment = i18n("Usually your network address/subnet mask (e.g. 192.168.0.0/255.255.255.0;)");
- QToolTip::add(label, comment);
+ TQLabel *label=new TQLabel(i18n("&Trusted addresses:"),hbox);
+ TQString comment = i18n("Usually your network address/subnet mask (e.g. 192.168.0.0/255.255.255.0;)");
+ TQToolTip::add(label, comment);
m_allowedAddresses=new KRestrictedLine(hbox,"a","0123456789./;");
- QToolTip::add(m_allowedAddresses,comment);
+ TQToolTip::add(m_allowedAddresses,comment);
label->setBuddy(m_allowedAddresses);
- m_rlanSidebar = new QCheckBox(i18n("Use &rlan:/ instead of lan:/ in Konqueror's navigation panel"), this);
+ m_rlanSidebar = new TQCheckBox(i18n("Use &rlan:/ instead of lan:/ in Konqueror's navigation panel"), this);
- hbox = new QHBox(this);
- m_suggestSettings=new QPushButton(i18n("&Suggest Settings"),hbox);
+ hbox = new TQHBox(this);
+ m_suggestSettings=new TQPushButton(i18n("&Suggest Settings"),hbox);
- new QWidget(hbox);
+ new TQWidget(hbox);
- m_advancedSettingsButton=new QPushButton(i18n("Ad&vanced Settings"),hbox);
+ m_advancedSettingsButton=new TQPushButton(i18n("Ad&vanced Settings"),hbox);
m_reslisaAdvancedDlg=new KDialogBase(0,0,true,i18n("Advanced Settings for ResLISa"),KDialogBase::Close, KDialogBase::Close);
- connect(m_advancedSettingsButton,SIGNAL(clicked()),m_reslisaAdvancedDlg,SLOT(show()));
+ connect(m_advancedSettingsButton,TQT_SIGNAL(clicked()),m_reslisaAdvancedDlg,TQT_SLOT(show()));
- QVBox *vbox=m_reslisaAdvancedDlg->makeVBoxMainWidget();
+ TQVBox *vbox=m_reslisaAdvancedDlg->makeVBoxMainWidget();
- m_deliverUnnamedHosts=new QCheckBox(i18n("Show &hosts without DNS names"),vbox);
+ m_deliverUnnamedHosts=new TQCheckBox(i18n("Show &hosts without DNS names"),vbox);
- QGrid *advGrid = new QGrid(2, Qt::Horizontal, vbox);
+ TQGrid *advGrid = new TQGrid(2, Qt::Horizontal, vbox);
advGrid->setSpacing(10);
- label=new QLabel(i18n("Host list update interval:"),advGrid);
- QToolTip::add(label,i18n("Search hosts after this number of seconds"));
- m_updatePeriod=new QSpinBox(30,1800,10,advGrid);
+ label=new TQLabel(i18n("Host list update interval:"),advGrid);
+ TQToolTip::add(label,i18n("Search hosts after this number of seconds"));
+ m_updatePeriod=new TQSpinBox(30,1800,10,advGrid);
m_updatePeriod->setSuffix(i18n(" sec"));
- QToolTip::add(m_updatePeriod,i18n("Search hosts after this number of seconds"));
+ TQToolTip::add(m_updatePeriod,i18n("Search hosts after this number of seconds"));
- m_secondScan=new QCheckBox(i18n("Always check twice for hosts when searching"),advGrid);
- new QWidget(advGrid);
+ m_secondScan=new TQCheckBox(i18n("Always check twice for hosts when searching"),advGrid);
+ new TQWidget(advGrid);
- label=new QLabel(i18n("Wait for replies from hosts after first scan:"),advGrid);
- QToolTip::add(label,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
- m_firstWait=new QSpinBox(10,1000,50,advGrid);
+ label=new TQLabel(i18n("Wait for replies from hosts after first scan:"),advGrid);
+ TQToolTip::add(label,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
+ m_firstWait=new TQSpinBox(10,1000,50,advGrid);
m_firstWait->setSuffix(i18n(" ms"));
- QToolTip::add(m_firstWait,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
+ TQToolTip::add(m_firstWait,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
- label=new QLabel(i18n("Wait for replies from hosts after second scan:"),advGrid);
- QToolTip::add(label,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
- m_secondWait=new QSpinBox(0,1000,50,advGrid);
+ label=new TQLabel(i18n("Wait for replies from hosts after second scan:"),advGrid);
+ TQToolTip::add(label,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
+ m_secondWait=new TQSpinBox(0,1000,50,advGrid);
m_secondWait->setSuffix(i18n(" ms"));
- QToolTip::add(m_secondWait,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
+ TQToolTip::add(m_secondWait,i18n("How long to wait for replies to the ICMP echo requests from hosts"));
- label=new QLabel(i18n("Max. number of ping packets to send at once:"),advGrid);
- m_maxPingsAtOnce=new QSpinBox(8,1024,5,advGrid);
+ label=new TQLabel(i18n("Max. number of ping packets to send at once:"),advGrid);
+ m_maxPingsAtOnce=new TQSpinBox(8,1024,5,advGrid);
- QWidget *dummy=new QWidget(advGrid);
+ TQWidget *dummy=new TQWidget(advGrid);
dummy->setMinimumHeight(10);
- connect(m_secondScan,SIGNAL(toggled(bool)),m_secondWait,SLOT(setEnabled(bool)));
+ connect(m_secondScan,TQT_SIGNAL(toggled(bool)),m_secondWait,TQT_SLOT(setEnabled(bool)));
- connect(m_allowedAddresses,SIGNAL(textChanged(const QString&)),this,SIGNAL(changed()));
+ connect(m_allowedAddresses,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SIGNAL(changed()));
- connect(m_allowedAddresses,SIGNAL(returnPressed()),this,SIGNAL(changed()));
+ connect(m_allowedAddresses,TQT_SIGNAL(returnPressed()),this,TQT_SIGNAL(changed()));
- connect(m_firstWait,SIGNAL(valueChanged(int)),this,SIGNAL(changed()));
- connect(m_secondWait,SIGNAL(valueChanged(int)),this,SIGNAL(changed()));
- connect(m_maxPingsAtOnce,SIGNAL(valueChanged(int)),this,SIGNAL(changed()));
- connect(m_secondScan,SIGNAL(toggled(bool)),this,SIGNAL(changed()));
- connect(m_deliverUnnamedHosts,SIGNAL(toggled(bool)),this,SIGNAL(changed()));
- connect(m_updatePeriod,SIGNAL(valueChanged(int)),this,SIGNAL(changed()));
- connect(m_pingNames,SIGNAL(changed()),this,SIGNAL(changed()));
- connect(m_useNmblookup,SIGNAL(toggled(bool)),this,SIGNAL(changed()));
- connect(m_suggestSettings,SIGNAL(clicked()),this,SLOT(suggestSettings()));
- connect(m_rlanSidebar,SIGNAL(clicked()),this,SIGNAL(changed()));
+ connect(m_firstWait,TQT_SIGNAL(valueChanged(int)),this,TQT_SIGNAL(changed()));
+ connect(m_secondWait,TQT_SIGNAL(valueChanged(int)),this,TQT_SIGNAL(changed()));
+ connect(m_maxPingsAtOnce,TQT_SIGNAL(valueChanged(int)),this,TQT_SIGNAL(changed()));
+ connect(m_secondScan,TQT_SIGNAL(toggled(bool)),this,TQT_SIGNAL(changed()));
+ connect(m_deliverUnnamedHosts,TQT_SIGNAL(toggled(bool)),this,TQT_SIGNAL(changed()));
+ connect(m_updatePeriod,TQT_SIGNAL(valueChanged(int)),this,TQT_SIGNAL(changed()));
+ connect(m_pingNames,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed()));
+ connect(m_useNmblookup,TQT_SIGNAL(toggled(bool)),this,TQT_SIGNAL(changed()));
+ connect(m_suggestSettings,TQT_SIGNAL(clicked()),this,TQT_SLOT(suggestSettings()));
+ connect(m_rlanSidebar,TQT_SIGNAL(clicked()),this,TQT_SIGNAL(changed()));
load();
}
@@ -193,7 +193,7 @@ void ResLisaSettings::save()
m_config.writeEntry("UpdatePeriod",m_updatePeriod->value());
m_config.writeEntry("AllowedAddresses",m_allowedAddresses->text());
//m_config.writeEntry("BroadcastNetwork",m_broadcastNetwork->text());
- QStringList writeStuff;
+ TQStringList writeStuff;
for (int i=0; i<m_pingNames->count(); i++)
writeStuff.append(m_pingNames->text(i));
m_config.writeEntry("PingNames",writeStuff,';');
@@ -217,8 +217,8 @@ void ResLisaSettings::suggestSettings()
}
MyNIC *nic=nics->first();
- QString address = nic->addr;
- QString netmask = nic->netmask;
+ TQString address = nic->addr;
+ TQString netmask = nic->netmask;
m_allowedAddresses->setText(address+"/"+netmask+";");
m_secondWait->setValue(0);
m_secondScan->setChecked(FALSE);
@@ -229,7 +229,7 @@ void ResLisaSettings::suggestSettings()
m_useNmblookup->setChecked(true);
if (nics->count()>1)
{
- QString msg(i18n("You have more than one network interface installed.<br>"
+ TQString msg(i18n("You have more than one network interface installed.<br>"
"Please make sure the suggested settings are correct.<br>"
"<br>The following interfaces were found:<br><br>"));
//not that easy to handle
@@ -237,9 +237,9 @@ void ResLisaSettings::suggestSettings()
{
msg+="<b>"+tmp->name+": </b>"+tmp->addr+"/"+tmp->netmask+";<br>";
}
- KMessageBox::information(0,QString("<html>%1</html>").arg(msg));
+ KMessageBox::information(0,TQString("<html>%1</html>").arg(msg));
}
- KMessageBox::information(0,QString("<html>%1</html>").arg(i18n("The ResLISa daemon is now configured "
+ KMessageBox::information(0,TQString("<html>%1</html>").arg(i18n("The ResLISa daemon is now configured "
"correctly, hopefully.<br>Make sure that the reslisa binary is installed <i>suid root</i>.")));
emit changed();