summaryrefslogtreecommitdiffstats
path: root/kppp/edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/edit.cpp')
-rw-r--r--kppp/edit.cpp376
1 files changed, 188 insertions, 188 deletions
diff --git a/kppp/edit.cpp b/kppp/edit.cpp
index 7b47c1ba..cc26a889 100644
--- a/kppp/edit.cpp
+++ b/kppp/edit.cpp
@@ -25,16 +25,16 @@
#include <string.h>
#include <termios.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kmessagebox.h>
-#include <qwhatsthis.h>
-#include <qregexp.h>
+#include <tqwhatsthis.h>
+#include <tqregexp.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <kbuttonbox.h>
#include <klocale.h>
-#include <qvgroupbox.h>
-#include <qhbox.h>
+#include <tqvgroupbox.h>
+#include <tqhbox.h>
#include <kdialog.h>
#include <kwin.h>
@@ -44,61 +44,61 @@
#include "iplined.h"
#include "auth.h"
-DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name )
- : QWidget(parent, name)
+DialWidget::DialWidget( TQWidget *parent, bool isnewaccount, const char *name )
+ : TQWidget(parent, name)
{
const int GRIDROWS = 8;
- QGridLayout *tl = new QGridLayout(parent, GRIDROWS, 2, 0, KDialog::spacingHint());
+ TQGridLayout *tl = new TQGridLayout(parent, GRIDROWS, 2, 0, KDialog::spacingHint());
- connect_label = new QLabel(i18n("Connection &name:"), parent);
+ connect_label = new TQLabel(i18n("Connection &name:"), parent);
tl->addWidget(connect_label, 0, 0);
- connectname_l = new QLineEdit(parent);
+ connectname_l = new TQLineEdit(parent);
connectname_l->setMaxLength(ACCNAME_SIZE);
connect_label->setBuddy(connectname_l);
tl->addWidget(connectname_l, 0, 1);
- QString tmp = i18n("Type in a unique name for this connection");
+ TQString tmp = i18n("Type in a unique name for this connection");
- QWhatsThis::add(connect_label,tmp);
- QWhatsThis::add(connectname_l,tmp);
+ TQWhatsThis::add(connect_label,tmp);
+ TQWhatsThis::add(connectname_l,tmp);
- number_label = new QLabel(i18n("P&hone number:"), parent);
+ number_label = new TQLabel(i18n("P&hone number:"), parent);
number_label->setAlignment(AlignTop|AlignLeft);
tl->addWidget(number_label, 1, 0);
- QHBoxLayout *lpn = new QHBoxLayout(5);
+ TQHBoxLayout *lpn = new TQHBoxLayout(5);
tl->addLayout(lpn, 1, 1);
- numbers = new QListBox(parent);
+ numbers = new TQListBox(parent);
number_label->setBuddy(numbers);
numbers->setMinimumSize(120, 70);
lpn->addWidget(numbers);
- QVBoxLayout *lpn1 = new QVBoxLayout;
+ TQVBoxLayout *lpn1 = new QVBoxLayout;
lpn->addLayout(lpn1);
- add = new QPushButton(i18n("&Add..."), parent);
- del = new QPushButton(i18n("&Remove"), parent);
+ add = new TQPushButton(i18n("&Add..."), parent);
+ del = new TQPushButton(i18n("&Remove"), parent);
- up = new QPushButton(parent);
+ up = new TQPushButton(parent);
up->setIconSet(BarIconSet("up"));
- down = new QPushButton(parent);
+ down = new TQPushButton(parent);
down->setIconSet(BarIconSet("down"));
lpn1->addWidget(add);
lpn1->addWidget(del);
lpn1->addStretch(1);
lpn1->addWidget(up);
lpn1->addWidget(down);
- connect(add, SIGNAL(clicked()),
- this, SLOT(addNumber()));
- connect(del, SIGNAL(clicked()),
- this, SLOT(delNumber()));
- connect(up, SIGNAL(clicked()),
- this, SLOT(upNumber()));
- connect(down, SIGNAL(clicked()),
- this, SLOT(downNumber()));
- connect(numbers, SIGNAL(highlighted(int)),
- this, SLOT(selectionChanged(int)));
+ connect(add, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(addNumber()));
+ connect(del, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(delNumber()));
+ connect(up, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(upNumber()));
+ connect(down, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(downNumber()));
+ connect(numbers, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(selectionChanged(int)));
numbersChanged();
tmp = i18n("<p>Specifies the phone numbers to dial. You\n"
@@ -109,13 +109,13 @@ DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name )
"When a number is busy or fails, <i>kppp</i> will \n"
"try the next number and so on");
- QWhatsThis::add(number_label,tmp);
- QWhatsThis::add(numbers,tmp);
+ TQWhatsThis::add(number_label,tmp);
+ TQWhatsThis::add(numbers,tmp);
- auth_l = new QLabel(i18n("A&uthentication:"), parent);
+ auth_l = new TQLabel(i18n("A&uthentication:"), parent);
tl->addWidget(auth_l, 3, 0);
- auth = new QComboBox(parent);
+ auth = new TQComboBox(parent);
auth_l->setBuddy(auth);
auth->insertItem(i18n("Script-based"));
auth->insertItem(i18n("PAP"));
@@ -133,13 +133,13 @@ DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name )
"choose CHAP, because it's much safer. If you don't know\n"
"whether PAP or CHAP is right, choose PAP/CHAP.");
- QWhatsThis::add(auth_l,tmp);
- QWhatsThis::add(auth,tmp);
+ TQWhatsThis::add(auth_l,tmp);
+ TQWhatsThis::add(auth,tmp);
- store_password = new QCheckBox(i18n("Store &password"), parent);
+ store_password = new TQCheckBox(i18n("Store &password"), parent);
store_password->setChecked(true);
tl->addMultiCellWidget(store_password, 4, 4, 0, 1, AlignRight);
- QWhatsThis::add(store_password,
+ TQWhatsThis::add(store_password,
i18n("<p>When this is turned on, your ISP password\n"
"will be saved in <i>kppp</i>'s config file, so\n"
"you do not need to type it in every time.\n"
@@ -149,36 +149,36 @@ DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name )
"readable only to you. Make sure nobody\n"
"gains access to this file!"));
- cbtype_l = new QLabel(i18n("&Callback type:"), parent);
+ cbtype_l = new TQLabel(i18n("&Callback type:"), parent);
tl->addWidget(cbtype_l, 5, 0);
- cbtype = new QComboBox(parent);
+ cbtype = new TQComboBox(parent);
cbtype_l->setBuddy(cbtype);
cbtype->insertItem(i18n("None"));
cbtype->insertItem(i18n("Administrator-defined"));
cbtype->insertItem(i18n("User-defined"));
- connect(cbtype, SIGNAL(highlighted(int)),
- this, SLOT(cbtypeChanged(int)));
+ connect(cbtype, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(cbtypeChanged(int)));
tl->addWidget(cbtype, 5, 1);
tmp = i18n("Callback type");
- QWhatsThis::add(cbtype_l,tmp);
- QWhatsThis::add(cbtype,tmp);
+ TQWhatsThis::add(cbtype_l,tmp);
+ TQWhatsThis::add(cbtype,tmp);
- cbphone_l = new QLabel(i18n("Call&back number:"), parent);
+ cbphone_l = new TQLabel(i18n("Call&back number:"), parent);
tl->addWidget(cbphone_l, 6, 0);
- cbphone = new QLineEdit(parent);
+ cbphone = new TQLineEdit(parent);
cbphone_l->setBuddy(cbphone);
cbphone->setMaxLength(140);
tl->addWidget(cbphone, 6, 1);
tmp = i18n("Callback phone number");
- QWhatsThis::add(cbphone_l,tmp);
- QWhatsThis::add(cbphone,tmp);
+ TQWhatsThis::add(cbphone_l,tmp);
+ TQWhatsThis::add(cbphone,tmp);
- pppdargs = new QPushButton(i18n("Customize &pppd Arguments..."), parent);
- connect(pppdargs, SIGNAL(clicked()), SLOT(pppdargsbutton()));
+ pppdargs = new TQPushButton(i18n("Customize &pppd Arguments..."), parent);
+ connect(pppdargs, TQT_SIGNAL(clicked()), TQT_SLOT(pppdargsbutton()));
tl->addMultiCellWidget(pppdargs, 7, 7, 0, 1, AlignCenter);
// Set defaults if editing an existing connection
@@ -186,8 +186,8 @@ DialWidget::DialWidget( QWidget *parent, bool isnewaccount, const char *name )
connectname_l->setText(gpppdata.accname());
// insert the phone numbers into the listbox
- QString n = gpppdata.phonenumber();
- QString tmp = "";
+ TQString n = gpppdata.phonenumber();
+ TQString tmp = "";
uint idx = 0;
while(idx != n.length()) {
if(n[idx] == ':') {
@@ -226,7 +226,7 @@ bool DialWidget::save() {
} else {
gpppdata.setAccname(connectname_l->text());
- QString number = "";
+ TQString number = "";
for(uint i = 0; i < numbers->count(); i++) {
if(i != 0)
number += ":";
@@ -281,7 +281,7 @@ void DialWidget::delNumber() {
void DialWidget::upNumber() {
int idx = numbers->currentItem();
if(idx != -1) {
- QString item = numbers->text(idx);
+ TQString item = numbers->text(idx);
numbers->removeItem(idx);
numbers->insertItem(item, idx-1);
numbers->setCurrentItem(idx-1);
@@ -293,7 +293,7 @@ void DialWidget::upNumber() {
void DialWidget::downNumber() {
int idx = numbers->currentItem();
if(idx != -1) {
- QString item = numbers->text(idx);
+ TQString item = numbers->text(idx);
numbers->removeItem(idx);
numbers->insertItem(item, idx+1);
numbers->setCurrentItem(idx+1);
@@ -312,12 +312,12 @@ void DialWidget::pppdargsbutton() {
/////////////////////////////////////////////////////////////////////////////
// ExecWidget
/////////////////////////////////////////////////////////////////////////////
-ExecWidget::ExecWidget(QWidget *parent, bool isnewaccount, const char *name) :
- QWidget(parent, name)
+ExecWidget::ExecWidget(TQWidget *parent, bool isnewaccount, const char *name) :
+ TQWidget(parent, name)
{
- QVBoxLayout *tl = new QVBoxLayout(parent, 0, KDialog::spacingHint());
+ TQVBoxLayout *tl = new TQVBoxLayout(parent, 0, KDialog::spacingHint());
- QLabel *l = new QLabel(\
+ TQLabel *l = new TQLabel(\
i18n("Here you can select commands to run at certain stages of the\n"
"connection. The commands are run with your real user id, so\n"
"you cannot run any commands here requiring root permissions\n"
@@ -328,31 +328,31 @@ i18n("Here you can select commands to run at certain stages of the\n"
tl->addWidget(l);
tl->addStretch(1);
- QGridLayout *l1 = new QGridLayout(4, 2, 10);
+ TQGridLayout *l1 = new TQGridLayout(4, 2, 10);
tl->addLayout(l1);
l1->setColStretch(0, 0);
l1->setColStretch(1, 1);
- before_connect_l = new QLabel(i18n("&Before connect:"), parent);
+ before_connect_l = new TQLabel(i18n("&Before connect:"), parent);
before_connect_l->setAlignment(AlignVCenter);
l1->addWidget(before_connect_l, 0, 0);
- before_connect = new QLineEdit(parent);
+ before_connect = new TQLineEdit(parent);
before_connect_l->setBuddy(before_connect);
before_connect->setMaxLength(COMMAND_SIZE);
l1->addWidget(before_connect, 0, 1);
- QString tmp = i18n("Allows you to run a program <b>before</b> a connection\n"
+ TQString tmp = i18n("Allows you to run a program <b>before</b> a connection\n"
"is established. It is called immediately before\n"
"dialing has begun.\n\n"
"This might be useful, e.g. to stop HylaFAX blocking the\n"
"modem.");
- QWhatsThis::add(before_connect_l,tmp);
- QWhatsThis::add(before_connect,tmp);
+ TQWhatsThis::add(before_connect_l,tmp);
+ TQWhatsThis::add(before_connect,tmp);
- command_label = new QLabel(i18n("&Upon connect:"), parent);
+ command_label = new TQLabel(i18n("&Upon connect:"), parent);
command_label->setAlignment(AlignVCenter);
l1->addWidget(command_label, 1, 0);
- command = new QLineEdit(parent);
+ command = new TQLineEdit(parent);
command_label->setBuddy(command);
command->setMaxLength(COMMAND_SIZE);
l1->addWidget(command, 1, 1);
@@ -362,14 +362,14 @@ i18n("Here you can select commands to run at certain stages of the\n"
"\n"
"Very useful for fetching mail and news");
- QWhatsThis::add(command_label,tmp);
- QWhatsThis::add(command,tmp);
+ TQWhatsThis::add(command_label,tmp);
+ TQWhatsThis::add(command,tmp);
- predisconnect_label = new QLabel(i18n("Before &disconnect:"),
+ predisconnect_label = new TQLabel(i18n("Before &disconnect:"),
parent);
predisconnect_label->setAlignment(AlignVCenter);
l1->addWidget(predisconnect_label, 2, 0);
- predisconnect = new QLineEdit(parent);
+ predisconnect = new TQLineEdit(parent);
predisconnect_label->setBuddy(predisconnect);
predisconnect->setMaxLength(COMMAND_SIZE);
l1->addWidget(predisconnect, 2, 1);
@@ -377,23 +377,23 @@ i18n("Here you can select commands to run at certain stages of the\n"
"is closed. The connection will stay open until\n"
"the program exits.");
- QWhatsThis::add(predisconnect_label,tmp);
- QWhatsThis::add(predisconnect,tmp);
+ TQWhatsThis::add(predisconnect_label,tmp);
+ TQWhatsThis::add(predisconnect,tmp);
- discommand_label = new QLabel(i18n("U&pon disconnect:"),
+ discommand_label = new TQLabel(i18n("U&pon disconnect:"),
parent);
discommand_label->setAlignment(AlignVCenter);
l1->addWidget(discommand_label, 3, 0);
- discommand = new QLineEdit(parent);
+ discommand = new TQLineEdit(parent);
discommand_label->setBuddy(discommand);
discommand->setMaxLength(COMMAND_SIZE);
l1->addWidget(discommand, 3, 1);
tmp = i18n("Allows you to run a program <b>after</b> a connection\n"
"has been closed.");
- QWhatsThis::add(discommand_label,tmp);
- QWhatsThis::add(discommand,tmp);
+ TQWhatsThis::add(discommand_label,tmp);
+ TQWhatsThis::add(discommand,tmp);
// extra space between entries
l1->addRowSpacing(1, 5);
@@ -427,23 +427,23 @@ bool ExecWidget::save() {
// IPWidget
//
/////////////////////////////////////////////////////////////////////////////
-IPWidget::IPWidget( QWidget *parent, bool isnewaccount, const char *name )
- : QWidget(parent, name)
+IPWidget::IPWidget( TQWidget *parent, bool isnewaccount, const char *name )
+ : TQWidget(parent, name)
{
- QVBoxLayout *topLayout = new QVBoxLayout(parent);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(parent);
topLayout->setSpacing(KDialog::spacingHint());
- box = new QVGroupBox(i18n("C&onfiguration"), parent);
+ box = new TQVGroupBox(i18n("C&onfiguration"), parent);
box->setInsideSpacing(KDialog::spacingHint());
- rb = new QButtonGroup(parent);
+ rb = new TQButtonGroup(parent);
rb->hide();
- connect(rb, SIGNAL(clicked(int)),
- SLOT(hitIPSelect(int)));
+ connect(rb, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(hitIPSelect(int)));
- dynamicadd_rb = new QRadioButton(box);
+ dynamicadd_rb = new TQRadioButton(box);
dynamicadd_rb->setText(i18n("Dynamic IP address"));
- QWhatsThis::add(dynamicadd_rb,
+ TQWhatsThis::add(dynamicadd_rb,
i18n("Select this option when your computer gets an\n"
"internet address (IP) every time a\n"
"connection is made.\n"
@@ -451,23 +451,23 @@ IPWidget::IPWidget( QWidget *parent, bool isnewaccount, const char *name )
"Almost every Internet Service Provider uses\n"
"this method, so this should be turned on."));
- staticadd_rb = new QRadioButton(box);
+ staticadd_rb = new TQRadioButton(box);
staticadd_rb->setText(i18n("Static IP address"));
rb->insert(dynamicadd_rb, 0);
rb->insert(staticadd_rb, 1);
- QWhatsThis::add(staticadd_rb,
+ TQWhatsThis::add(staticadd_rb,
i18n("Select this option when your computer has a\n"
"fixed internet address (IP). Most computers\n"
"don't have this, so you should probably select\n"
"dynamic IP addressing unless you know what you\n"
"are doing."));
- QWidget *ipWidget = new QWidget(box);
- QGridLayout *ipLayout = new QGridLayout(ipWidget, 2, 2);
+ TQWidget *ipWidget = new TQWidget(box);
+ TQGridLayout *ipLayout = new TQGridLayout(ipWidget, 2, 2);
ipLayout->setSpacing(KDialog::spacingHint());
- ipaddress_label = new QLabel(i18n("&IP address:"), ipWidget);
- QString tmp = i18n("If your computer has a permanent internet\n"
+ ipaddress_label = new TQLabel(i18n("&IP address:"), ipWidget);
+ TQString tmp = i18n("If your computer has a permanent internet\n"
"address, you must supply your IP address here.");
ipLayout->addWidget(ipaddress_label, 0, 0);
@@ -475,10 +475,10 @@ IPWidget::IPWidget( QWidget *parent, bool isnewaccount, const char *name )
ipaddress_label->setBuddy(ipaddress_l);
ipLayout->addWidget(ipaddress_l, 0, 1);
- QWhatsThis::add(ipaddress_label,tmp);
- QWhatsThis::add(ipaddress_l,tmp);
+ TQWhatsThis::add(ipaddress_label,tmp);
+ TQWhatsThis::add(ipaddress_l,tmp);
- sub_label = new QLabel(i18n("&Subnet mask:"), ipWidget);
+ sub_label = new TQLabel(i18n("&Subnet mask:"), ipWidget);
tmp = i18n("<p>If your computer has a static Internet address,\n"
"you must supply a network mask here. In almost\n"
"all cases this netmask will be <b>255.255.255.0</b>,\n"
@@ -491,15 +491,15 @@ IPWidget::IPWidget( QWidget *parent, bool isnewaccount, const char *name )
sub_label->setBuddy(subnetmask_l);
ipLayout->addWidget(subnetmask_l, 1, 1);
- QWhatsThis::add(sub_label,tmp);
- QWhatsThis::add(subnetmask_l,tmp);
+ TQWhatsThis::add(sub_label,tmp);
+ TQWhatsThis::add(subnetmask_l,tmp);
- autoname = new QCheckBox(i18n("&Auto-configure hostname from this IP"), parent);
+ autoname = new TQCheckBox(i18n("&Auto-configure hostname from this IP"), parent);
autoname->setChecked(gpppdata.autoname());
- connect(autoname,SIGNAL(toggled(bool)),
- this,SLOT(autoname_t(bool)));
+ connect(autoname,TQT_SIGNAL(toggled(bool)),
+ this,TQT_SLOT(autoname_t(bool)));
- QWhatsThis::add(autoname,
+ TQWhatsThis::add(autoname,
i18n("<p>Whenever you connect, this reconfigures\n"
"your hostname to match the IP address you\n"
"got from the PPP server. This may be useful\n"
@@ -583,20 +583,20 @@ void IPWidget::hitIPSelect( int i ) {
-DNSWidget::DNSWidget( QWidget *parent, bool isnewaccount, const char *name )
- : QWidget(parent, name)
+DNSWidget::DNSWidget( TQWidget *parent, bool isnewaccount, const char *name )
+ : TQWidget(parent, name)
{
- // box = new QGroupBox(parent);
- QGridLayout *tl = new QGridLayout(parent, 7, 2, 0, KDialog::spacingHint());
+ // box = new TQGroupBox(parent);
+ TQGridLayout *tl = new TQGridLayout(parent, 7, 2, 0, KDialog::spacingHint());
- dnsdomain_label = new QLabel(i18n("Domain &name:"), parent);
+ dnsdomain_label = new TQLabel(i18n("Domain &name:"), parent);
tl->addWidget(dnsdomain_label, 0, 0);
- dnsdomain = new QLineEdit(parent);
+ dnsdomain = new TQLineEdit(parent);
dnsdomain_label->setBuddy(dnsdomain);
dnsdomain->setMaxLength(DOMAIN_SIZE);
tl->addWidget(dnsdomain, 0, 1);
- QString tmp = i18n("If you enter a domain name here, this domain\n"
+ TQString tmp = i18n("If you enter a domain name here, this domain\n"
"name is used for your computer while you are\n"
"connected. When the connection is closed, the\n"
"original domain name of your computer is\n"
@@ -605,39 +605,39 @@ DNSWidget::DNSWidget( QWidget *parent, bool isnewaccount, const char *name )
"If you leave this field blank, no changes are\n"
"made to the domain name.");
- QWhatsThis::add(dnsdomain_label,tmp);
- QWhatsThis::add(dnsdomain,tmp);
+ TQWhatsThis::add(dnsdomain_label,tmp);
+ TQWhatsThis::add(dnsdomain,tmp);
- conf_label = new QLabel(i18n("C&onfiguration:"), parent);
+ conf_label = new TQLabel(i18n("C&onfiguration:"), parent);
tl->addWidget(conf_label, 1, 0);
- bg = new QButtonGroup("Group", this);
+ bg = new TQButtonGroup("Group", this);
conf_label->setBuddy(bg);
- connect(bg, SIGNAL(clicked(int)), SLOT(DNS_Mode_Selected(int)));
+ connect(bg, TQT_SIGNAL(clicked(int)), TQT_SLOT(DNS_Mode_Selected(int)));
bg->hide();
- autodns = new QRadioButton(i18n("Automatic"), parent);
+ autodns = new TQRadioButton(i18n("Automatic"), parent);
bg->insert(autodns, 0);
tl->addWidget(autodns, 1, 1);
// no automatic DNS detection for pppd < 2.3.7
if(!gpppdata.pppdVersionMin(2, 3, 7))
autodns->setEnabled(false);
- mandns = new QRadioButton(i18n("Manual"), parent);
+ mandns = new TQRadioButton(i18n("Manual"), parent);
bg->insert(mandns, 1);
tl->addWidget(mandns, 2, 1);
- dns_label = new QLabel(i18n("DNS &IP address:"), parent);
+ dns_label = new TQLabel(i18n("DNS &IP address:"), parent);
tl->addWidget(dns_label, 3, 0);
- QHBoxLayout *l2 = new QHBoxLayout;
+ TQHBoxLayout *l2 = new QHBoxLayout;
tl->addLayout(l2, 3, 1);
dnsipaddr = new IPLineEdit(parent);
dns_label->setBuddy(dnsipaddr);
- connect(dnsipaddr, SIGNAL(returnPressed()),
- SLOT(adddns()));
- connect(dnsipaddr, SIGNAL(textChanged(const QString &)),
- SLOT(DNS_Edit_Changed(const QString &)));
+ connect(dnsipaddr, TQT_SIGNAL(returnPressed()),
+ TQT_SLOT(adddns()));
+ connect(dnsipaddr, TQT_SIGNAL(textChanged(const TQString &)),
+ TQT_SLOT(DNS_Edit_Changed(const TQString &)));
l2->addWidget(dnsipaddr, 1);
l2->addStretch(1);
tmp = i18n("<p>Allows you to specify a new DNS server to be\n"
@@ -648,56 +648,56 @@ DNSWidget::DNSWidget( QWidget *parent, bool isnewaccount, const char *name )
"To add a DNS server, type in the IP address of\n"
"the DNS server here and click on <b>Add</b>");
- QWhatsThis::add(dns_label, tmp);
- QWhatsThis::add(dnsipaddr, tmp);
+ TQWhatsThis::add(dns_label, tmp);
+ TQWhatsThis::add(dnsipaddr, tmp);
- QHBoxLayout *l1 = new QHBoxLayout;
+ TQHBoxLayout *l1 = new QHBoxLayout;
tl->addLayout(l1, 4, 1);
- add = new QPushButton(i18n("&Add"), parent);
- connect(add, SIGNAL(clicked()), SLOT(adddns()));
+ add = new TQPushButton(i18n("&Add"), parent);
+ connect(add, TQT_SIGNAL(clicked()), TQT_SLOT(adddns()));
int width = add->sizeHint().width();
width = QMAX(width,60);
add->setMinimumWidth(width);
l1->addWidget(add);
l1->addStretch(1);
- QWhatsThis::add(add,
+ TQWhatsThis::add(add,
i18n("Click this button to add the DNS server\n"
"specified in the field above. The entry\n"
"will then be added to the list below"));
- remove = new QPushButton(i18n("&Remove"), parent);
- connect(remove, SIGNAL(clicked()), SLOT(removedns()));
+ remove = new TQPushButton(i18n("&Remove"), parent);
+ connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removedns()));
width = remove->sizeHint().width();
width = QMAX(width,60);
remove->setMinimumWidth(width);
l1->addWidget(remove);
- QWhatsThis::add(remove,
+ TQWhatsThis::add(remove,
i18n("Click this button to remove the selected DNS\n"
"server entry from the list below"));
- servers_label = new QLabel(i18n("DNS address &list:"), parent);
+ servers_label = new TQLabel(i18n("DNS address &list:"), parent);
servers_label->setAlignment(AlignTop|AlignLeft);
tl->addWidget(servers_label, 5, 0);
- dnsservers = new QListBox(parent);
+ dnsservers = new TQListBox(parent);
servers_label->setBuddy(dnsservers);
dnsservers->setMinimumSize(150, 80);
- connect(dnsservers, SIGNAL(highlighted(int)),
- SLOT(DNS_Entry_Selected(int)));
+ connect(dnsservers, TQT_SIGNAL(highlighted(int)),
+ TQT_SLOT(DNS_Entry_Selected(int)));
tl->addWidget(dnsservers, 5, 1);
tmp = i18n("<p>This shows all defined DNS servers to use\n"
"while you are connected. Use the <b>Add</b> and\n"
"<b>Remove</b> buttons to modify the list");
- QWhatsThis::add(servers_label,tmp);
- QWhatsThis::add(dnsservers,tmp);
+ TQWhatsThis::add(servers_label,tmp);
+ TQWhatsThis::add(dnsservers,tmp);
- exdnsdisabled_toggle = new QCheckBox(i18n( \
+ exdnsdisabled_toggle = new TQCheckBox(i18n( \
"&Disable existing DNS servers during connection"),
parent);
exdnsdisabled_toggle->setChecked(gpppdata.exDNSDisabled());
tl->addMultiCellWidget(exdnsdisabled_toggle, 6, 6, 0, 1, AlignCenter);
- QWhatsThis::add(exdnsdisabled_toggle,
+ TQWhatsThis::add(exdnsdisabled_toggle,
i18n("<p>When this option is selected, all DNS\n"
"servers specified in <tt>/etc/resolv.conf</tt> are\n"
"temporary disabled while the dialup connection\n"
@@ -722,8 +722,8 @@ DNSWidget::DNSWidget( QWidget *parent, bool isnewaccount, const char *name )
tl->activate();
}
-void DNSWidget::DNS_Edit_Changed(const QString &text) {
- QRegExp r("[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+");
+void DNSWidget::DNS_Edit_Changed(const TQString &text) {
+ TQRegExp r("[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+");
add->setEnabled(text.find(r) != -1);
}
@@ -746,13 +746,13 @@ void DNSWidget::DNS_Mode_Selected(int mode) {
void DNSWidget::save() {
gpppdata.setAutoDNS(bg->id(bg->selected()) == 0);
- QStringList serverlist;
+ TQStringList serverlist;
for(uint i=0; i < dnsservers->count(); i++)
serverlist.append(dnsservers->text(i));
gpppdata.setDns(serverlist);
// strip leading dot
- QString s(dnsdomain->text());
+ TQString s(dnsdomain->text());
if(s.left(1) == ".")
gpppdata.setDomain(s.mid(1));
else
@@ -782,23 +782,23 @@ void DNSWidget::removedns() {
//
// GatewayWidget
//
-GatewayWidget::GatewayWidget( QWidget *parent, bool isnewaccount, const char *name )
- : QWidget(parent, name)
+GatewayWidget::GatewayWidget( TQWidget *parent, bool isnewaccount, const char *name )
+ : TQWidget(parent, name)
{
- QVBoxLayout *topLayout = new QVBoxLayout(parent);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(parent);
topLayout->setSpacing(KDialog::spacingHint());
- box = new QVGroupBox(i18n("C&onfiguration"), parent);
+ box = new TQVGroupBox(i18n("C&onfiguration"), parent);
box->setInsideSpacing(KDialog::spacingHint());
- rb = new QButtonGroup(parent);
+ rb = new TQButtonGroup(parent);
rb->hide();
- connect(rb, SIGNAL(clicked(int)), SLOT(hitGatewaySelect(int)));
+ connect(rb, TQT_SIGNAL(clicked(int)), TQT_SLOT(hitGatewaySelect(int)));
- defaultgateway = new QRadioButton(box);
+ defaultgateway = new TQRadioButton(box);
defaultgateway->setText(i18n("Default gateway"));
rb->insert(defaultgateway, 0);
- QWhatsThis::add(defaultgateway,
+ TQWhatsThis::add(defaultgateway,
i18n("This makes the PPP peer computer (the computer\n"
"you are connected to with your modem) to act as\n"
"a gateway. Your computer will send all packets not\n"
@@ -809,21 +809,21 @@ GatewayWidget::GatewayWidget( QWidget *parent, bool isnewaccount, const char *na
"probably leave this option on."));
- staticgateway = new QRadioButton(box);
+ staticgateway = new TQRadioButton(box);
staticgateway->setText(i18n("Static gateway"));
rb->insert(staticgateway, 1);
- QWhatsThis::add(staticgateway,
+ TQWhatsThis::add(staticgateway,
i18n("<p>Allows you to specify which computer you want\n"
"to use as gateway (see <i>Default Gateway</i> above)"));
- QHBox *gateBox = new QHBox(box);
- gate_label = new QLabel(i18n("Gateway &IP address:"), gateBox);
+ TQHBox *gateBox = new TQHBox(box);
+ gate_label = new TQLabel(i18n("Gateway &IP address:"), gateBox);
gatewayaddr = new IPLineEdit(gateBox);
gate_label->setBuddy(gatewayaddr);
- defaultroute = new QCheckBox(i18n("&Assign the default route to this gateway"),
+ defaultroute = new TQCheckBox(i18n("&Assign the default route to this gateway"),
parent);
- QWhatsThis::add(defaultroute,
+ TQWhatsThis::add(defaultroute,
i18n("If this option is enabled, all packets not\n"
"going to the local net are routed through\n"
"the PPP connection.\n"
@@ -874,42 +874,42 @@ void GatewayWidget::hitGatewaySelect( int i ) {
-ScriptWidget::ScriptWidget( QWidget *parent, bool isnewaccount, const char *name )
- : QWidget(parent, name)
+ScriptWidget::ScriptWidget( TQWidget *parent, bool isnewaccount, const char *name )
+ : TQWidget(parent, name)
{
- QVBoxLayout *tl = new QVBoxLayout(parent, 0, KDialog::spacingHint());
+ TQVBoxLayout *tl = new TQVBoxLayout(parent, 0, KDialog::spacingHint());
se = new ScriptEdit(parent);
- connect(se, SIGNAL(returnPressed()), SLOT(addButton()));
+ connect(se, TQT_SIGNAL(returnPressed()), TQT_SLOT(addButton()));
tl->addWidget(se);
// insert equal-sized buttons
KButtonBox *bbox = new KButtonBox(parent);
add = bbox->addButton(i18n("&Add"));
- connect(add, SIGNAL(clicked()), SLOT(addButton()));
+ connect(add, TQT_SIGNAL(clicked()), TQT_SLOT(addButton()));
bbox->addStretch(1);
insert = bbox->addButton(i18n("&Insert"));
- connect(insert, SIGNAL(clicked()), SLOT(insertButton()));
+ connect(insert, TQT_SIGNAL(clicked()), TQT_SLOT(insertButton()));
bbox->addStretch(1);
remove = bbox->addButton(i18n("&Remove"));
- connect(remove, SIGNAL(clicked()), SLOT(removeButton()));
+ connect(remove, TQT_SIGNAL(clicked()), TQT_SLOT(removeButton()));
bbox->layout();
tl->addWidget(bbox);
- QHBoxLayout *l12 = new QHBoxLayout(0);
+ TQHBoxLayout *l12 = new TQHBoxLayout(0);
tl->addLayout(l12);
- stl = new QListBox(parent);
- stl->setVScrollBarMode( QScrollView::AlwaysOff );
- connect(stl, SIGNAL(highlighted(int)), SLOT(stlhighlighted(int)));
- stl->setMinimumSize(QSize(70, 140));
+ stl = new TQListBox(parent);
+ stl->setVScrollBarMode( TQScrollView::AlwaysOff );
+ connect(stl, TQT_SIGNAL(highlighted(int)), TQT_SLOT(stlhighlighted(int)));
+ stl->setMinimumSize(TQSize(70, 140));
- sl = new QListBox(parent);
- sl->setVScrollBarMode( QScrollView::AlwaysOff );
- connect(sl, SIGNAL(highlighted(int)), SLOT(slhighlighted(int)));
- sl->setMinimumSize(QSize(150, 140));
+ sl = new TQListBox(parent);
+ sl->setVScrollBarMode( TQScrollView::AlwaysOff );
+ connect(sl, TQT_SIGNAL(highlighted(int)), TQT_SLOT(slhighlighted(int)));
+ sl->setMinimumSize(TQSize(150, 140));
- slb = new QScrollBar(parent);
+ slb = new TQScrollBar(parent);
slb->setFixedWidth(slb->sizeHint().width());
- connect(slb, SIGNAL(valueChanged(int)), SLOT(scrolling(int)));
+ connect(slb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrolling(int)));
l12->addWidget(stl, 1);
l12->addWidget(sl, 3);
@@ -917,10 +917,10 @@ ScriptWidget::ScriptWidget( QWidget *parent, bool isnewaccount, const char *name
//load data from gpppdata
if(!isnewaccount) {
- QStringList &comlist = gpppdata.scriptType();
- QStringList &arglist = gpppdata.script();
- QStringList::Iterator itcom = comlist.begin();
- QStringList::Iterator itarg = arglist.begin();
+ TQStringList &comlist = gpppdata.scriptType();
+ TQStringList &arglist = gpppdata.script();
+ TQStringList::Iterator itcom = comlist.begin();
+ TQStringList::Iterator itarg = arglist.begin();
for ( ;
itcom != comlist.end() && itarg != arglist.end();
@@ -959,7 +959,7 @@ bool ScriptWidget::check() {
void ScriptWidget::save() {
- QStringList typelist, arglist;
+ TQStringList typelist, arglist;
for(uint i=0; i < sl->count(); i++) {
typelist.append(stl->text(i));
arglist.append(sl->text(i));
@@ -1201,21 +1201,21 @@ void ScriptWidget::removeButton() {
// Used to specify a new phone number
//
/////////////////////////////////////////////////////////////////////////////
-PhoneNumberDialog::PhoneNumberDialog(QWidget *parent) : KDialogBase(parent, 0, true, i18n("Add Phone Number"), Ok|Cancel) {
+PhoneNumberDialog::PhoneNumberDialog(TQWidget *parent) : KDialogBase(parent, 0, true, i18n("Add Phone Number"), Ok|Cancel) {
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
- QHBox *hbox = new QHBox(this);
+ TQHBox *hbox = new TQHBox(this);
setMainWidget(hbox);
hbox->setSpacing(KDialog::spacingHint());
- new QLabel(i18n("Enter a phone number:"), hbox);
+ new TQLabel(i18n("Enter a phone number:"), hbox);
le = newLineEdit(14, hbox);
le->setMinimumWidth(125);
- connect(le, SIGNAL(textChanged(const QString &)),
- this, SLOT(textChanged(const QString &)));
+ connect(le, TQT_SIGNAL(textChanged(const TQString &)),
+ this, TQT_SLOT(textChanged(const TQString &)));
le->setFocus();
textChanged("");
@@ -1224,14 +1224,14 @@ PhoneNumberDialog::PhoneNumberDialog(QWidget *parent) : KDialogBase(parent, 0, t
}
-QString PhoneNumberDialog::phoneNumber() {
- QString s = le->text();
+TQString PhoneNumberDialog::phoneNumber() {
+ TQString s = le->text();
return s;
}
-void PhoneNumberDialog::textChanged(const QString &s) {
+void PhoneNumberDialog::textChanged(const TQString &s) {
enableButtonOK(s.length() > 0);
}