diff options
Diffstat (limited to 'kppp/general.cpp')
-rw-r--r-- | kppp/general.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/kppp/general.cpp b/kppp/general.cpp index 929f6321..49981474 100644 --- a/kppp/general.cpp +++ b/kppp/general.cpp @@ -46,23 +46,23 @@ // Widget containing misc. configuration options // ///////////////////////////////////////////////////////////////////////////// -GeneralWidget::GeneralWidget( TQWidget *parent, const char *name) - : TQWidget(parent, name) +GeneralWidget::GeneralWidget( TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { - TQVBoxLayout *tl = new TQVBoxLayout(parent, 0, KDialog::spacingHint()); + TQVBoxLayout *tl = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint()); TQHBoxLayout *hbox = new TQHBoxLayout(tl); TQLabel *label; - label = new TQLabel(i18n("pppd version:"), parent); + label = new TQLabel(i18n("pppd version:"), tqparent); hbox->addWidget(label); TQString version = gpppdata.pppdVersion(); if(version == "0.0.0") version = "unknown"; - label = new TQLabel(version, parent); + label = new TQLabel(version, tqparent); label->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); hbox->addWidget(label); - KIntNumInput *pppdTimeout = new KIntNumInput(gpppdata.pppdTimeout(), parent); + KIntNumInput *pppdTimeout = new KIntNumInput(gpppdata.pppdTimeout(), tqparent); pppdTimeout->setLabel(i18n("pppd &timeout:")); pppdTimeout->setRange(1, TIMEOUT_SIZE, 5, true); pppdTimeout->setSuffix(i18n(" sec")); @@ -79,7 +79,7 @@ GeneralWidget::GeneralWidget( TQWidget *parent, const char *name) tl->addSpacing(10); TQCheckBox *chkBox; - chkBox = new TQCheckBox(i18n("Doc&k into panel on connect"), parent); + chkBox = new TQCheckBox(i18n("Doc&k into panel on connect"), tqparent); 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 *parent, const char *name) this, TQT_SLOT(docking_toggled(bool))); tl->addWidget(chkBox); - chkBox = new TQCheckBox(i18n("A&utomatic redial on disconnect"), parent); + chkBox = new TQCheckBox(i18n("A&utomatic redial on disconnect"), tqparent); chkBox->setChecked(gpppdata.automatic_redial()); connect(chkBox,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(redial_toggled(bool))); @@ -106,7 +106,7 @@ GeneralWidget::GeneralWidget( TQWidget *parent, const char *name) "\n" "See <a href=\"#redial\">here</a> for more on this topic.")); - chkBox = new TQCheckBox(i18n("Automatic redial on NO &CARRIER"), parent); + chkBox = new TQCheckBox(i18n("Automatic redial on NO &CARRIER"), tqparent); 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 *parent, const char *name) "instead of waiting for user to click <CANCEL>\n" "button.")); - chkBox = new TQCheckBox(i18n("&Show clock on caption"), parent); + chkBox = new TQCheckBox(i18n("&Show clock on caption"), tqparent); 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 *parent, const char *name) "was established. Very useful, so you \n" "should turn this on")); - chkBox = new TQCheckBox(i18n("Disco&nnect on X server shutdown"), parent); + chkBox = new TQCheckBox(i18n("Disco&nnect on X server shutdown"), tqparent); 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 *parent, const char *name) "\n" "See <a href=\"#disxserver\">here</a> for more on this.")); - chkBox = new TQCheckBox(i18n("&Quit on disconnect"), parent); + chkBox = new TQCheckBox(i18n("&Quit on disconnect"), tqparent); 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 *parent, 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"), parent); + chkBox = new TQCheckBox(i18n("Minimi&ze window on connect"), tqparent); 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 *parent, bool isnewmodem, const char *name) - : TQWidget(parent, name) +ModemWidget::ModemWidget(TQWidget *tqparent, bool isnewmodem, const char *name) + : TQWidget(tqparent, name) { - TQGridLayout *tl = new TQGridLayout(parent, 9, 2, 0, KDialog::spacingHint()); + TQGridLayout *tl = new TQGridLayout(tqparent, 9, 2, 0, KDialog::spacingHint()); - connect_label = new TQLabel(i18n("Modem &name:"), parent); + connect_label = new TQLabel(i18n("Modem &name:"), tqparent); tl->addWidget(connect_label, 0, 0); - connectname_l = new TQLineEdit(parent); + connectname_l = new TQLineEdit(tqparent); connectname_l->setMaxLength(ACCNAME_SIZE); connect_label->setBuddy(connectname_l); @@ -221,10 +221,10 @@ ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) TQWhatsThis::add(connect_label,tmp); TQWhatsThis::add(connectname_l,tmp); - label1 = new TQLabel(i18n("Modem de&vice:"), parent); + label1 = new TQLabel(i18n("Modem de&vice:"), tqparent); tl->addWidget(label1, 1, 0); - modemdevice = new TQComboBox(false, parent); + modemdevice = new TQComboBox(false, tqparent); label1->setBuddy(modemdevice); // ### deviceExist mechanism not functional right now bool deviceExist = false; @@ -252,10 +252,10 @@ ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) TQWhatsThis::add(modemdevice,tmp); - label2 = new TQLabel(i18n("&Flow control:"), parent); + label2 = new TQLabel(i18n("&Flow control:"), tqparent); tl->addWidget(label2, 2, 0); - flowcontrol = new TQComboBox(false, parent); + flowcontrol = new TQComboBox(false, tqparent); 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 *parent, bool isnewmodem, const char *name) TQWhatsThis::add(label2,tmp); TQWhatsThis::add(flowcontrol,tmp); - labelenter = new TQLabel(i18n("&Line termination:"), parent); + labelenter = new TQLabel(i18n("&Line termination:"), tqparent); tl->addWidget(labelenter, 3, 0); - enter = new TQComboBox(false, parent); + enter = new TQComboBox(false, tqparent); labelenter->setBuddy(enter); enter->insertItem("CR"); enter->insertItem("LF"); @@ -299,9 +299,9 @@ ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) TQWhatsThis::add(labelenter,tmp); TQWhatsThis::add(enter, tmp); - baud_label = new TQLabel(i18n("Co&nnection speed:"), parent); + baud_label = new TQLabel(i18n("Co&nnection speed:"), tqparent); tl->addWidget(baud_label, 4, 0); - baud_c = new TQComboBox(parent); + baud_c = new TQComboBox(tqparent); baud_label->setBuddy(baud_c); static const char *baudrates[] = { @@ -358,7 +358,7 @@ ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) tl->addRowSpacing(4, 10); //Modem Lock File - modemlockfile = new TQCheckBox(i18n("&Use lock file"), parent); + modemlockfile = new TQCheckBox(i18n("&Use lock file"), tqparent); modemlockfile->setChecked(gpppdata.modemLockFile()); /* connect(modemlockfile, TQT_SIGNAL(toggled(bool)), @@ -378,7 +378,7 @@ ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) // Modem Timeout Line Edit Box - modemtimeout = new KIntNumInput(gpppdata.modemTimeout(), parent); + modemtimeout = new KIntNumInput(gpppdata.modemTimeout(), tqparent); modemtimeout->setLabel(i18n("Modem &timeout:")); modemtimeout->setRange(1, 120, 1); modemtimeout->setSuffix(i18n(" sec")); @@ -445,13 +445,13 @@ bool ModemWidget::save() } -ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) - : TQWidget(parent, name) +ModemWidget2::ModemWidget2(TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { - TQVBoxLayout *l1 = new TQVBoxLayout(parent, 0, KDialog::spacingHint()); + TQVBoxLayout *l1 = new TQVBoxLayout(tqparent, 0, KDialog::spacingHint()); - waitfordt = new TQCheckBox(i18n("&Wait for dial tone before dialing"), parent); + waitfordt = new TQCheckBox(i18n("&Wait for dial tone before dialing"), tqparent); waitfordt->setChecked(gpppdata.waitForDialTone()); // connect(waitfordt, TQT_SIGNAL(toggled(bool)), TQT_SLOT(waitfordtchanged(bool))); l1->addWidget(waitfordt); @@ -464,7 +464,7 @@ ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) "\n" "<b>Default:</b>: On")); - busywait = new KIntNumInput(gpppdata.busyWait(), parent); + busywait = new KIntNumInput(gpppdata.busyWait(), tqparent); busywait->setLabel(i18n("B&usy wait:")); busywait->setRange(0, 300, 5, true); busywait->setSuffix(i18n(" sec")); @@ -485,9 +485,9 @@ ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) TQHBoxLayout *hbl = new TQHBoxLayout; hbl->setSpacing(KDialog::spacingHint()); - TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), parent); + TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), tqparent); hbl->addWidget(volumeLabel); - volume = new TQSlider(0, 2, 1, gpppdata.volume(), TQSlider::Horizontal, parent); + volume = new TQSlider(0, 2, 1, gpppdata.volume(), Qt::Horizontal, tqparent); volumeLabel->setBuddy(volume); volume->setTickmarks(TQSlider::Below); hbl->addWidget(volume); @@ -510,7 +510,7 @@ ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) l1->addSpacing(20); #if 0 - chkbox1 = new TQCheckBox(i18n("Modem asserts CD line"), parent); + chkbox1 = new TQCheckBox(i18n("Modem asserts CD line"), tqparent); chkbox1->setChecked(gpppdata.UseCDLine()); connect(chkbox1,TQT_SIGNAL(toggled(bool)), this,TQT_SLOT(use_cdline_toggled(bool))); @@ -525,12 +525,12 @@ ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) "<b>Default</b>: Off")); #endif - modemcmds = new TQPushButton(i18n("Mod&em Commands..."), parent); + modemcmds = new TQPushButton(i18n("Mod&em Commands..."), tqparent); TQWhatsThis::add(modemcmds, i18n("Allows you to change the AT command for\n" "your modem.")); - modeminfo_button = new TQPushButton(i18n("&Query Modem..."), parent); + modeminfo_button = new TQPushButton(i18n("&Query Modem..."), tqparent); 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 *parent, const char *name) "this information. It can be useful to help\n" "you set up the modem")); - terminal_button = new TQPushButton(i18n("&Terminal..."), parent); + terminal_button = new TQPushButton(i18n("&Terminal..."), tqparent); 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 *parent, const char *name) : - TQWidget(parent, name) +GraphSetup::GraphSetup(TQWidget *tqparent, const char *name) : + TQWidget(tqparent, name) { - TQVBoxLayout *tl = new TQVBoxLayout(parent); + TQVBoxLayout *tl = new TQVBoxLayout(tqparent); bool enable; TQColor bg, text, in, out; gpppdata.graphingOptions(enable, bg, text, in, out); - enable_check = new TQCheckBox(i18n("&Enable throughput graph"), parent); + enable_check = new TQCheckBox(i18n("&Enable throughput graph"), tqparent); tl->addWidget(enable_check); grpColor = new TQGroupBox(2, Qt::Horizontal, - i18n("Graph Colors"), parent); + i18n("Graph Colors"), tqparent); tl->addWidget(grpColor); TQLabel *label; |