summaryrefslogtreecommitdiffstats
path: root/kppp/general.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/general.cpp')
-rw-r--r--kppp/general.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/kppp/general.cpp b/kppp/general.cpp
index 49981474..5ed9c459 100644
--- a/kppp/general.cpp
+++ b/kppp/general.cpp
@@ -46,23 +46,23 @@
// Widget containing misc. configuration options
//
/////////////////////////////////////////////////////////////////////////////
-GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
- : TQWidget(tqparent, name)
+GeneralWidget::GeneralWidget( TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- TQVBoxLayout *tl = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint());
+ TQVBoxLayout *tl = new TQVBoxLayout(parent, 0, KDialog::spacingHint());
TQHBoxLayout *hbox = new TQHBoxLayout(tl);
TQLabel *label;
- label = new TQLabel(i18n("pppd version:"), tqparent);
+ label = new TQLabel(i18n("pppd version:"), parent);
hbox->addWidget(label);
TQString version = gpppdata.pppdVersion();
if(version == "0.0.0")
version = "unknown";
- label = new TQLabel(version, tqparent);
+ label = new TQLabel(version, parent);
label->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
hbox->addWidget(label);
- KIntNumInput *pppdTimeout = new KIntNumInput(gpppdata.pppdTimeout(), tqparent);
+ KIntNumInput *pppdTimeout = new KIntNumInput(gpppdata.pppdTimeout(), parent);
pppdTimeout->setLabel(i18n("pppd &timeout:"));
pppdTimeout->setRange(1, TIMEOUT_SIZE, 5, true);
pppdTimeout->setSuffix(i18n(" sec"));
@@ -79,7 +79,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
tl->addSpacing(10);
TQCheckBox *chkBox;
- chkBox = new TQCheckBox(i18n("Doc&k into panel on connect"), tqparent);
+ chkBox = new TQCheckBox(i18n("Doc&k into panel on connect"), parent);
TQWhatsThis::add(chkBox,
i18n("<p>After a connection is established, the\n"
"window is minimized and a small icon\n"
@@ -94,7 +94,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
this, TQT_SLOT(docking_toggled(bool)));
tl->addWidget(chkBox);
- chkBox = new TQCheckBox(i18n("A&utomatic redial on disconnect"), tqparent);
+ chkBox = new TQCheckBox(i18n("A&utomatic redial on disconnect"), parent);
chkBox->setChecked(gpppdata.automatic_redial());
connect(chkBox,TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(redial_toggled(bool)));
@@ -106,7 +106,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
"\n"
"See <a href=\"#redial\">here</a> for more on this topic."));
- chkBox = new TQCheckBox(i18n("Automatic redial on NO &CARRIER"), tqparent);
+ chkBox = new TQCheckBox(i18n("Automatic redial on NO &CARRIER"), parent);
chkBox->setChecked(gpppdata.get_redial_on_nocarrier());
connect(chkBox,TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(nocarrier_toggled(bool)));
@@ -117,7 +117,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
"instead of waiting for user to click <CANCEL>\n"
"button."));
- chkBox = new TQCheckBox(i18n("&Show clock on caption"), tqparent);
+ chkBox = new TQCheckBox(i18n("&Show clock on caption"), parent);
chkBox->setChecked(gpppdata.get_show_clock_on_caption());
connect(chkBox, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(caption_toggled(bool)));
@@ -128,7 +128,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
"was established. Very useful, so you \n"
"should turn this on"));
- chkBox = new TQCheckBox(i18n("Disco&nnect on X server shutdown"), tqparent);
+ chkBox = new TQCheckBox(i18n("Disco&nnect on X server shutdown"), parent);
chkBox->setChecked(gpppdata.get_xserver_exit_disconnect());
connect(chkBox, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(xserver_toggled(bool)));
@@ -141,7 +141,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
"\n"
"See <a href=\"#disxserver\">here</a> for more on this."));
- chkBox = new TQCheckBox(i18n("&Quit on disconnect"), tqparent);
+ chkBox = new TQCheckBox(i18n("&Quit on disconnect"), parent);
chkBox->setChecked(gpppdata.quit_on_disconnect());
connect(chkBox, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(quit_toggled(bool)));
@@ -150,7 +150,7 @@ GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name)
i18n("When this option is turned on, <i>kppp</i>\n"
"will be closed when you disconnect"));
- chkBox = new TQCheckBox(i18n("Minimi&ze window on connect"), tqparent);
+ chkBox = new TQCheckBox(i18n("Minimi&ze window on connect"), parent);
chkBox->setChecked(gpppdata.get_iconify_on_connect());
connect(chkBox,TQT_SIGNAL(toggled(bool)),
this,TQT_SLOT(iconify_toggled(bool)));
@@ -203,15 +203,15 @@ void GeneralWidget::pppdtimeoutchanged(int n) {
}
-ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
- : TQWidget(tqparent, name)
+ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name)
+ : TQWidget(parent, name)
{
- TQGridLayout *tl = new TQGridLayout(tqparent, 9, 2, 0, KDialog::spacingHint());
+ TQGridLayout *tl = new TQGridLayout(parent, 9, 2, 0, KDialog::spacingHint());
- connect_label = new TQLabel(i18n("Modem &name:"), tqparent);
+ connect_label = new TQLabel(i18n("Modem &name:"), parent);
tl->addWidget(connect_label, 0, 0);
- connectname_l = new TQLineEdit(tqparent);
+ connectname_l = new TQLineEdit(parent);
connectname_l->setMaxLength(ACCNAME_SIZE);
connect_label->setBuddy(connectname_l);
@@ -221,10 +221,10 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
TQWhatsThis::add(connect_label,tmp);
TQWhatsThis::add(connectname_l,tmp);
- label1 = new TQLabel(i18n("Modem de&vice:"), tqparent);
+ label1 = new TQLabel(i18n("Modem de&vice:"), parent);
tl->addWidget(label1, 1, 0);
- modemdevice = new TQComboBox(false, tqparent);
+ modemdevice = new TQComboBox(false, parent);
label1->setBuddy(modemdevice);
// ### deviceExist mechanism not functional right now
bool deviceExist = false;
@@ -252,10 +252,10 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
TQWhatsThis::add(modemdevice,tmp);
- label2 = new TQLabel(i18n("&Flow control:"), tqparent);
+ label2 = new TQLabel(i18n("&Flow control:"), parent);
tl->addWidget(label2, 2, 0);
- flowcontrol = new TQComboBox(false, tqparent);
+ flowcontrol = new TQComboBox(false, parent);
label2->setBuddy(flowcontrol);
flowcontrol->insertItem(i18n("Hardware [CRTSCTS]")); // sync with pppdata.cpp
flowcontrol->insertItem(i18n("Software [XON/XOFF]"));
@@ -278,10 +278,10 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
TQWhatsThis::add(label2,tmp);
TQWhatsThis::add(flowcontrol,tmp);
- labelenter = new TQLabel(i18n("&Line termination:"), tqparent);
+ labelenter = new TQLabel(i18n("&Line termination:"), parent);
tl->addWidget(labelenter, 3, 0);
- enter = new TQComboBox(false, tqparent);
+ enter = new TQComboBox(false, parent);
labelenter->setBuddy(enter);
enter->insertItem("CR");
enter->insertItem("LF");
@@ -299,9 +299,9 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
TQWhatsThis::add(labelenter,tmp);
TQWhatsThis::add(enter, tmp);
- baud_label = new TQLabel(i18n("Co&nnection speed:"), tqparent);
+ baud_label = new TQLabel(i18n("Co&nnection speed:"), parent);
tl->addWidget(baud_label, 4, 0);
- baud_c = new TQComboBox(tqparent);
+ baud_c = new TQComboBox(parent);
baud_label->setBuddy(baud_c);
static const char *baudrates[] = {
@@ -358,7 +358,7 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
tl->addRowSpacing(4, 10);
//Modem Lock File
- modemlockfile = new TQCheckBox(i18n("&Use lock file"), tqparent);
+ modemlockfile = new TQCheckBox(i18n("&Use lock file"), parent);
modemlockfile->setChecked(gpppdata.modemLockFile());
/* connect(modemlockfile, TQT_SIGNAL(toggled(bool)),
@@ -378,7 +378,7 @@ ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name)
// Modem Timeout Line Edit Box
- modemtimeout = new KIntNumInput(gpppdata.modemTimeout(), tqparent);
+ modemtimeout = new KIntNumInput(gpppdata.modemTimeout(), parent);
modemtimeout->setLabel(i18n("Modem &timeout:"));
modemtimeout->setRange(1, 120, 1);
modemtimeout->setSuffix(i18n(" sec"));
@@ -445,13 +445,13 @@ bool ModemWidget::save()
}
-ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
- : TQWidget(tqparent, name)
+ModemWidget2::ModemWidget2(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- TQVBoxLayout *l1 = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint());
+ TQVBoxLayout *l1 = new TQVBoxLayout(parent, 0, KDialog::spacingHint());
- waitfordt = new TQCheckBox(i18n("&Wait for dial tone before dialing"), tqparent);
+ waitfordt = new TQCheckBox(i18n("&Wait for dial tone before dialing"), parent);
waitfordt->setChecked(gpppdata.waitForDialTone());
// connect(waitfordt, TQT_SIGNAL(toggled(bool)), TQT_SLOT(waitfordtchanged(bool)));
l1->addWidget(waitfordt);
@@ -464,7 +464,7 @@ ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
"\n"
"<b>Default:</b>: On"));
- busywait = new KIntNumInput(gpppdata.busyWait(), tqparent);
+ busywait = new KIntNumInput(gpppdata.busyWait(), parent);
busywait->setLabel(i18n("B&usy wait:"));
busywait->setRange(0, 300, 5, true);
busywait->setSuffix(i18n(" sec"));
@@ -485,9 +485,9 @@ ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
TQHBoxLayout *hbl = new TQHBoxLayout;
hbl->setSpacing(KDialog::spacingHint());
- TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), tqparent);
+ TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), parent);
hbl->addWidget(volumeLabel);
- volume = new TQSlider(0, 2, 1, gpppdata.volume(), Qt::Horizontal, tqparent);
+ volume = new TQSlider(0, 2, 1, gpppdata.volume(), Qt::Horizontal, parent);
volumeLabel->setBuddy(volume);
volume->setTickmarks(TQSlider::Below);
hbl->addWidget(volume);
@@ -510,7 +510,7 @@ ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
l1->addSpacing(20);
#if 0
- chkbox1 = new TQCheckBox(i18n("Modem asserts CD line"), tqparent);
+ chkbox1 = new TQCheckBox(i18n("Modem asserts CD line"), parent);
chkbox1->setChecked(gpppdata.UseCDLine());
connect(chkbox1,TQT_SIGNAL(toggled(bool)),
this,TQT_SLOT(use_cdline_toggled(bool)));
@@ -525,12 +525,12 @@ ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
"<b>Default</b>: Off"));
#endif
- modemcmds = new TQPushButton(i18n("Mod&em Commands..."), tqparent);
+ modemcmds = new TQPushButton(i18n("Mod&em Commands..."), parent);
TQWhatsThis::add(modemcmds,
i18n("Allows you to change the AT command for\n"
"your modem."));
- modeminfo_button = new TQPushButton(i18n("&Query Modem..."), tqparent);
+ modeminfo_button = new TQPushButton(i18n("&Query Modem..."), parent);
TQWhatsThis::add(modeminfo_button,
i18n("Most modems support the ATI command set to\n"
"find out vendor and revision of your modem.\n"
@@ -539,7 +539,7 @@ ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name)
"this information. It can be useful to help\n"
"you set up the modem"));
- terminal_button = new TQPushButton(i18n("&Terminal..."), tqparent);
+ terminal_button = new TQPushButton(i18n("&Terminal..."), parent);
TQWhatsThis::add(terminal_button,
i18n("Opens the built-in terminal program. You\n"
"can use this if you want to play around\n"
@@ -607,20 +607,20 @@ bool ModemWidget2::save()
// Setup widget for the graph
//
/////////////////////////////////////////////////////////////////////////////
-GraphSetup::GraphSetup(TQWidget *tqparent, const char *name) :
- TQWidget(tqparent, name)
+GraphSetup::GraphSetup(TQWidget *parent, const char *name) :
+ TQWidget(parent, name)
{
- TQVBoxLayout *tl = new TQVBoxLayout(tqparent);
+ TQVBoxLayout *tl = new TQVBoxLayout(parent);
bool enable;
TQColor bg, text, in, out;
gpppdata.graphingOptions(enable, bg, text, in, out);
- enable_check = new TQCheckBox(i18n("&Enable throughput graph"), tqparent);
+ enable_check = new TQCheckBox(i18n("&Enable throughput graph"), parent);
tl->addWidget(enable_check);
grpColor = new TQGroupBox(2, Qt::Horizontal,
- i18n("Graph Colors"), tqparent);
+ i18n("Graph Colors"), parent);
tl->addWidget(grpColor);
TQLabel *label;