diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/general.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/general.cpp')
-rw-r--r-- | kppp/general.cpp | 280 |
1 files changed, 140 insertions, 140 deletions
diff --git a/kppp/general.cpp b/kppp/general.cpp index e136a1b5..f6a88bfd 100644 --- a/kppp/general.cpp +++ b/kppp/general.cpp @@ -26,10 +26,10 @@ #include <termios.h> #include <string.h> -#include <qwhatsthis.h> +#include <tqwhatsthis.h> #include <knuminput.h> -#include <qslider.h> +#include <tqslider.h> #include "general.h" #include "version.h" #include "miniterm.h" @@ -38,49 +38,49 @@ #include "devices.h" #include "pppdata.h" #include <klocale.h> -#include <qlayout.h> -#include <qgrid.h> +#include <tqlayout.h> +#include <tqgrid.h> ///////////////////////////////////////////////////////////////////////////// // // Widget containing misc. configuration options // ///////////////////////////////////////////////////////////////////////////// -GeneralWidget::GeneralWidget( QWidget *parent, const char *name) - : QWidget(parent, name) +GeneralWidget::GeneralWidget( TQWidget *parent, const char *name) + : TQWidget(parent, name) { - QVBoxLayout *tl = new QVBoxLayout(parent, 0, KDialog::spacingHint()); + TQVBoxLayout *tl = new TQVBoxLayout(parent, 0, KDialog::spacingHint()); - QHBoxLayout *hbox = new QHBoxLayout(tl); - QLabel *label; - label = new QLabel(i18n("pppd version:"), parent); + TQHBoxLayout *hbox = new TQHBoxLayout(tl); + TQLabel *label; + label = new TQLabel(i18n("pppd version:"), parent); hbox->addWidget(label); - QString version = gpppdata.pppdVersion(); + TQString version = gpppdata.pppdVersion(); if(version == "0.0.0") version = "unknown"; - label = new QLabel(version, parent); - label->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); + label = new TQLabel(version, parent); + label->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); hbox->addWidget(label); KIntNumInput *pppdTimeout = new KIntNumInput(gpppdata.pppdTimeout(), parent); pppdTimeout->setLabel(i18n("pppd &timeout:")); pppdTimeout->setRange(1, TIMEOUT_SIZE, 5, true); pppdTimeout->setSuffix(i18n(" sec")); - connect(pppdTimeout, SIGNAL(valueChanged(int)), - SLOT(pppdtimeoutchanged(int))); + connect(pppdTimeout, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(pppdtimeoutchanged(int))); tl->addWidget(pppdTimeout); - QString tmp = i18n("<i>kppp</i> will wait this number of seconds\n" + TQString tmp = i18n("<i>kppp</i> will wait this number of seconds\n" "to see if a PPP connection is established.\n" "If no connection is made in this time frame,\n" "<i>kppp</i> will give up and kill pppd."); - QWhatsThis::add(pppdTimeout,tmp); + TQWhatsThis::add(pppdTimeout,tmp); label->setBuddy(pppdTimeout); tl->addSpacing(10); - QCheckBox *chkBox; - chkBox = new QCheckBox(i18n("Doc&k into panel on connect"), parent); - QWhatsThis::add(chkBox, + TQCheckBox *chkBox; + 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" "in the KDE panel represents this window.\n" @@ -90,50 +90,50 @@ GeneralWidget::GeneralWidget( QWidget *parent, const char *name) "size.")); chkBox->setChecked(gpppdata.get_dock_into_panel()); - connect(chkBox,SIGNAL(toggled(bool)), - this, SLOT(docking_toggled(bool))); + connect(chkBox,TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(docking_toggled(bool))); tl->addWidget(chkBox); - chkBox = new QCheckBox(i18n("A&utomatic redial on disconnect"), parent); + chkBox = new TQCheckBox(i18n("A&utomatic redial on disconnect"), parent); chkBox->setChecked(gpppdata.automatic_redial()); - connect(chkBox,SIGNAL(toggled(bool)), - this, SLOT(redial_toggled(bool))); + connect(chkBox,TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(redial_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("<p>When a connection is established and\n" "it somehow gets disconnected, <i>kppp</i>\n" "will try to reconnect to the same account.\n" "\n" "See <a href=\"#redial\">here</a> for more on this topic.")); - chkBox = new QCheckBox(i18n("Automatic redial on NO &CARRIER"), parent); + chkBox = new TQCheckBox(i18n("Automatic redial on NO &CARRIER"), parent); chkBox->setChecked(gpppdata.get_redial_on_nocarrier()); - connect(chkBox,SIGNAL(toggled(bool)), - this, SLOT(nocarrier_toggled(bool))); + connect(chkBox,TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(nocarrier_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("<p>When dialing if modem returns NO CARRIER\n" "the program will make a new attempt to redial\n" "instead of waiting for user to click <CANCEL>\n" "button.")); - chkBox = new QCheckBox(i18n("&Show clock on caption"), parent); + chkBox = new TQCheckBox(i18n("&Show clock on caption"), parent); chkBox->setChecked(gpppdata.get_show_clock_on_caption()); - connect(chkBox, SIGNAL(toggled(bool)), - this, SLOT(caption_toggled(bool))); + connect(chkBox, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(caption_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("When this option is checked, the window\n" "title shows the time since a connection\n" "was established. Very useful, so you \n" "should turn this on")); - chkBox = new QCheckBox(i18n("Disco&nnect on X server shutdown"), parent); + chkBox = new TQCheckBox(i18n("Disco&nnect on X server shutdown"), parent); chkBox->setChecked(gpppdata.get_xserver_exit_disconnect()); - connect(chkBox, SIGNAL(toggled(bool)), - this, SLOT(xserver_toggled(bool))); + connect(chkBox, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(xserver_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("<p>Checking this option will close any\n" "open connection when the X-server is\n" "shut down. You should enable this option\n" @@ -141,21 +141,21 @@ GeneralWidget::GeneralWidget( QWidget *parent, const char *name) "\n" "See <a href=\"#disxserver\">here</a> for more on this.")); - chkBox = new QCheckBox(i18n("&Quit on disconnect"), parent); + chkBox = new TQCheckBox(i18n("&Quit on disconnect"), parent); chkBox->setChecked(gpppdata.quit_on_disconnect()); - connect(chkBox, SIGNAL(toggled(bool)), - this, SLOT(quit_toggled(bool))); + connect(chkBox, TQT_SIGNAL(toggled(bool)), + this, TQT_SLOT(quit_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("When this option is turned on, <i>kppp</i>\n" "will be closed when you disconnect")); - chkBox = new QCheckBox(i18n("Minimi&ze window on connect"), parent); + chkBox = new TQCheckBox(i18n("Minimi&ze window on connect"), parent); chkBox->setChecked(gpppdata.get_iconify_on_connect()); - connect(chkBox,SIGNAL(toggled(bool)), - this,SLOT(iconify_toggled(bool))); + connect(chkBox,TQT_SIGNAL(toggled(bool)), + this,TQT_SLOT(iconify_toggled(bool))); tl->addWidget(chkBox); - QWhatsThis::add(chkBox, + TQWhatsThis::add(chkBox, i18n("Iconifies <i>kppp</i>'s window when a\n" "connection is established")); @@ -203,28 +203,28 @@ void GeneralWidget::pppdtimeoutchanged(int n) { } -ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) - : QWidget(parent, name) +ModemWidget::ModemWidget(TQWidget *parent, bool isnewmodem, const char *name) + : TQWidget(parent, name) { - QGridLayout *tl = new QGridLayout(parent, 9, 2, 0, KDialog::spacingHint()); + TQGridLayout *tl = new TQGridLayout(parent, 9, 2, 0, KDialog::spacingHint()); - connect_label = new QLabel(i18n("Modem &name:"), parent); + connect_label = new TQLabel(i18n("Modem &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 modem"); + TQString tmp = i18n("Type in a unique name for this modem"); - QWhatsThis::add(connect_label,tmp); - QWhatsThis::add(connectname_l,tmp); + TQWhatsThis::add(connect_label,tmp); + TQWhatsThis::add(connectname_l,tmp); - label1 = new QLabel(i18n("Modem de&vice:"), parent); + label1 = new TQLabel(i18n("Modem de&vice:"), parent); tl->addWidget(label1, 1, 0); - modemdevice = new QComboBox(false, parent); + modemdevice = new TQComboBox(false, parent); label1->setBuddy(modemdevice); // ### deviceExist mechanism not functional right now bool deviceExist = false; @@ -238,8 +238,8 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) modemdevice->insertItem(gpppdata.modemDevice()); tl->addWidget(modemdevice, 1, 1); -/* connect(modemdevice, SIGNAL(activated(int)), - SLOT(setmodemdc(int)));*/ +/* connect(modemdevice, TQT_SIGNAL(activated(int)), + TQT_SLOT(setmodemdc(int)));*/ tmp = i18n("This specifies the serial port your modem is attached \n" "to. On Linux/x86, typically this is either /dev/ttyS0 \n" "(COM1 under DOS) or /dev/ttyS1 (COM2 under DOS).\n" @@ -248,14 +248,14 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) "emulation (most cards under Linux support this), you\n" "should select one of the /dev/ttyIx devices."); - QWhatsThis::add(label1,tmp); - QWhatsThis::add(modemdevice,tmp); + TQWhatsThis::add(label1,tmp); + TQWhatsThis::add(modemdevice,tmp); - label2 = new QLabel(i18n("&Flow control:"), parent); + label2 = new TQLabel(i18n("&Flow control:"), parent); tl->addWidget(label2, 2, 0); - flowcontrol = new QComboBox(false, parent); + flowcontrol = new TQComboBox(false, parent); label2->setBuddy(flowcontrol); flowcontrol->insertItem(i18n("Hardware [CRTSCTS]")); // sync with pppdata.cpp flowcontrol->insertItem(i18n("Software [XON/XOFF]")); @@ -266,8 +266,8 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) flowListItem << "None"; tl->addWidget(flowcontrol, 2, 1); - /*connect(flowcontrol, SIGNAL(activated(int)), - SLOT(setflowcontrol(int)));*/ + /*connect(flowcontrol, TQT_SIGNAL(activated(int)), + TQT_SLOT(setflowcontrol(int)));*/ tmp = i18n("<p>Specifies how the serial port and modem\n" "communicate. You should not change this unless\n" @@ -275,19 +275,19 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) "\n" "<b>Default</b>: CRTSCTS"); - QWhatsThis::add(label2,tmp); - QWhatsThis::add(flowcontrol,tmp); + TQWhatsThis::add(label2,tmp); + TQWhatsThis::add(flowcontrol,tmp); - labelenter = new QLabel(i18n("&Line termination:"), parent); + labelenter = new TQLabel(i18n("&Line termination:"), parent); tl->addWidget(labelenter, 3, 0); - enter = new QComboBox(false, parent); + enter = new TQComboBox(false, parent); labelenter->setBuddy(enter); enter->insertItem("CR"); enter->insertItem("LF"); enter->insertItem("CR/LF"); tl->addWidget(enter, 3, 1); - /* connect(enter, SIGNAL(activated(int)), SLOT(setenter(int)));*/ + /* connect(enter, TQT_SIGNAL(activated(int)), TQT_SLOT(setenter(int)));*/ tmp = i18n("<p>Specifies how AT commands are sent to your\n" "modem. Most modems will work fine with the\n" "default <i>CR/LF</i>. If your modem does not react\n" @@ -296,12 +296,12 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) "\n" "<b>Default</b>: CR/LF"); - QWhatsThis::add(labelenter,tmp); - QWhatsThis::add(enter, tmp); + TQWhatsThis::add(labelenter,tmp); + TQWhatsThis::add(enter, tmp); - baud_label = new QLabel(i18n("Co&nnection speed:"), parent); + baud_label = new TQLabel(i18n("Co&nnection speed:"), parent); tl->addWidget(baud_label, 4, 0); - baud_c = new QComboBox(parent); + baud_c = new TQComboBox(parent); baud_label->setBuddy(baud_c); static const char *baudrates[] = { @@ -336,8 +336,8 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) baud_c->insertItem(baudrates[k]); baud_c->setCurrentItem(3); - /*connect(baud_c, SIGNAL(activated(int)), - this, SLOT(speed_selection(int)));*/ + /*connect(baud_c, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(speed_selection(int)));*/ tl->addWidget(baud_c, 4, 1); tmp = i18n("Specifies the speed your modem and the serial\n" @@ -347,8 +347,8 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) "If you have connection problems, try to reduce\n" "this value."); - QWhatsThis::add(baud_label,tmp); - QWhatsThis::add(baud_c,tmp); + TQWhatsThis::add(baud_label,tmp); + TQWhatsThis::add(baud_c,tmp); for(int i=0; i <= enter->count()-1; i++) { if(gpppdata.enter() == enter->text(i)) @@ -358,14 +358,14 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) tl->addRowSpacing(4, 10); //Modem Lock File - modemlockfile = new QCheckBox(i18n("&Use lock file"), parent); + modemlockfile = new TQCheckBox(i18n("&Use lock file"), parent); modemlockfile->setChecked(gpppdata.modemLockFile()); -/* connect(modemlockfile, SIGNAL(toggled(bool)), - SLOT(modemlockfilechanged(bool)));*/ +/* connect(modemlockfile, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(modemlockfilechanged(bool)));*/ tl->addMultiCellWidget(modemlockfile, 5, 5, 0, 1); // l12->addStretch(1); - QWhatsThis::add(modemlockfile, + TQWhatsThis::add(modemlockfile, i18n("<p>To prevent other programs from accessing the\n" "modem while a connection is established, a\n" "file can be created to indicate that the modem\n" @@ -382,11 +382,11 @@ ModemWidget::ModemWidget(QWidget *parent, bool isnewmodem, const char *name) modemtimeout->setLabel(i18n("Modem &timeout:")); modemtimeout->setRange(1, 120, 1); modemtimeout->setSuffix(i18n(" sec")); -/* connect(modemtimeout, SIGNAL(valueChanged(int)), - SLOT(modemtimeoutchanged(int)));*/ +/* connect(modemtimeout, TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(modemtimeoutchanged(int)));*/ tl->addMultiCellWidget(modemtimeout, 6, 6, 0, 1); - QWhatsThis::add(modemtimeout, + TQWhatsThis::add(modemtimeout, i18n("This specifies how long <i>kppp</i> waits for a\n" "<i>CONNECT</i> response from your modem. The\n" "recommended value is 30 seconds.")); @@ -445,17 +445,17 @@ bool ModemWidget::save() } -ModemWidget2::ModemWidget2(QWidget *parent, const char *name) - : QWidget(parent, name) +ModemWidget2::ModemWidget2(TQWidget *parent, const char *name) + : TQWidget(parent, name) { - QVBoxLayout *l1 = new QVBoxLayout(parent, 0, KDialog::spacingHint()); + TQVBoxLayout *l1 = new TQVBoxLayout(parent, 0, KDialog::spacingHint()); - waitfordt = new QCheckBox(i18n("&Wait for dial tone before dialing"), parent); + waitfordt = new TQCheckBox(i18n("&Wait for dial tone before dialing"), parent); waitfordt->setChecked(gpppdata.waitForDialTone()); - // connect(waitfordt, SIGNAL(toggled(bool)), SLOT(waitfordtchanged(bool))); + // connect(waitfordt, TQT_SIGNAL(toggled(bool)), TQT_SLOT(waitfordtchanged(bool))); l1->addWidget(waitfordt); - QWhatsThis::add(waitfordt, + TQWhatsThis::add(waitfordt, i18n("<p>Normally the modem waits for a dial tone\n" "from your phone line, indicating that it can\n" "start to dial a number. If your modem does not\n" @@ -468,10 +468,10 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) busywait->setLabel(i18n("B&usy wait:")); busywait->setRange(0, 300, 5, true); busywait->setSuffix(i18n(" sec")); - // connect(busywait, SIGNAL(valueChanged(int)), SLOT(busywaitchanged(int))); + // connect(busywait, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(busywaitchanged(int))); l1->addWidget(busywait); - QWhatsThis::add(busywait, + TQWhatsThis::add(busywait, i18n("Specifies the number of seconds to wait before\n" "redial if all dialed numbers are busy. This is\n" "necessary because some modems get stuck if the\n" @@ -482,21 +482,21 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) l1->addSpacing(10); - QHBoxLayout *hbl = new QHBoxLayout; + TQHBoxLayout *hbl = new QHBoxLayout; hbl->setSpacing(KDialog::spacingHint()); - QLabel *volumeLabel = new QLabel(i18n("Modem &volume:"), parent); + TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), parent); hbl->addWidget(volumeLabel); - volume = new QSlider(0, 2, 1, gpppdata.volume(), QSlider::Horizontal, parent); + volume = new TQSlider(0, 2, 1, gpppdata.volume(), TQSlider::Horizontal, parent); volumeLabel->setBuddy(volume); - volume->setTickmarks(QSlider::Below); + volume->setTickmarks(TQSlider::Below); hbl->addWidget(volume); l1->addLayout(hbl); - /* connect(volume, SIGNAL(valueChanged(int)), - this, SLOT(volumeChanged(int)));*/ - QString tmp = i18n("Most modems have a speaker which makes\n" + /* connect(volume, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(volumeChanged(int)));*/ + TQString tmp = i18n("Most modems have a speaker which makes\n" "a lot of noise when dialing. Here you can\n" "either turn this completely off or select a\n" "lower volume.\n" @@ -504,20 +504,20 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) "If this does not work for your modem,\n" "you must modify the modem volume command."); - QWhatsThis::add(volumeLabel,tmp); - QWhatsThis::add(volume, tmp); + TQWhatsThis::add(volumeLabel,tmp); + TQWhatsThis::add(volume, tmp); l1->addSpacing(20); #if 0 - chkbox1 = new QCheckBox(i18n("Modem asserts CD line"), parent); + chkbox1 = new TQCheckBox(i18n("Modem asserts CD line"), parent); chkbox1->setChecked(gpppdata.UseCDLine()); - connect(chkbox1,SIGNAL(toggled(bool)), - this,SLOT(use_cdline_toggled(bool))); + connect(chkbox1,TQT_SIGNAL(toggled(bool)), + this,TQT_SLOT(use_cdline_toggled(bool))); l12->addWidget(chkbox1); l12->addStretch(1); l1->addStretch(1); - QWhatsThis::add(chkbox1, + TQWhatsThis::add(chkbox1, i18n("This controls how <i>kppp</i> detects that the modem\n" "is not responding. Unless you are having\n" "problems with this, do not modify this setting.\n" @@ -525,13 +525,13 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) "<b>Default</b>: Off")); #endif - modemcmds = new QPushButton(i18n("Mod&em Commands..."), parent); - QWhatsThis::add(modemcmds, + 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 QPushButton(i18n("&Query Modem..."), parent); - QWhatsThis::add(modeminfo_button, + 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" "\n" @@ -539,16 +539,16 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) "this information. It can be useful to help\n" "you set up the modem")); - terminal_button = new QPushButton(i18n("&Terminal..."), parent); - QWhatsThis::add(terminal_button, + 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" "with your modem's AT command set")); - QHBoxLayout *hbox = new QHBoxLayout(); + TQHBoxLayout *hbox = new TQHBoxLayout(); l1->addLayout(hbox); hbox->addStretch(1); - QVBoxLayout *vbox = new QVBoxLayout(); + TQVBoxLayout *vbox = new TQVBoxLayout(); hbox->addLayout(vbox); vbox->addWidget(modemcmds); @@ -558,12 +558,12 @@ ModemWidget2::ModemWidget2(QWidget *parent, const char *name) hbox->addStretch(1); l1->addStretch(1); - connect(modemcmds, SIGNAL(clicked()), - SLOT(modemcmdsbutton())); - connect(modeminfo_button, SIGNAL(clicked()), - SLOT(query_modem())); - connect(terminal_button, SIGNAL(clicked()), - SLOT(terminal())); + connect(modemcmds, TQT_SIGNAL(clicked()), + TQT_SLOT(modemcmdsbutton())); + connect(modeminfo_button, TQT_SIGNAL(clicked()), + TQT_SLOT(query_modem())); + connect(terminal_button, TQT_SIGNAL(clicked()), + TQT_SLOT(terminal())); // Create the Modem Command so if the window is not opened they are autosaved anyway mc = new ModemCommands(this); @@ -607,55 +607,55 @@ bool ModemWidget2::save() // Setup widget for the graph // ///////////////////////////////////////////////////////////////////////////// -GraphSetup::GraphSetup(QWidget *parent, const char *name) : - QWidget(parent, name) +GraphSetup::GraphSetup(TQWidget *parent, const char *name) : + TQWidget(parent, name) { - QVBoxLayout *tl = new QVBoxLayout(parent); + TQVBoxLayout *tl = new TQVBoxLayout(parent); bool enable; - QColor bg, text, in, out; + TQColor bg, text, in, out; gpppdata.graphingOptions(enable, bg, text, in, out); - enable_check = new QCheckBox(i18n("&Enable throughput graph"), parent); + enable_check = new TQCheckBox(i18n("&Enable throughput graph"), parent); tl->addWidget(enable_check); - grpColor = new QGroupBox(2, Qt::Horizontal, + grpColor = new TQGroupBox(2, Qt::Horizontal, i18n("Graph Colors"), parent); tl->addWidget(grpColor); - QLabel *label; + TQLabel *label; - label = new QLabel(i18n("Bac&kground:"), grpColor); + label = new TQLabel(i18n("Bac&kground:"), grpColor); bg_color = new KColorButton(bg, grpColor); bg_color->setFixedSize(80, 24); label->setBuddy(bg_color); - label = new QLabel(i18n("&Text:"), grpColor); + label = new TQLabel(i18n("&Text:"), grpColor); text_color = new KColorButton(text, grpColor); text_color->setFixedSize(80, 24); label->setBuddy(text_color); - label = new QLabel(i18n("I&nput bytes:"), grpColor); + label = new TQLabel(i18n("I&nput bytes:"), grpColor); in_color = new KColorButton(in, grpColor); in_color->setFixedSize(80, 24); label->setBuddy(in_color); - label = new QLabel(i18n("O&utput bytes:"), grpColor); + label = new TQLabel(i18n("O&utput bytes:"), grpColor); out_color = new KColorButton(out, grpColor); out_color->setFixedSize(80, 24); label->setBuddy(out_color); tl->addStretch(); - connect(enable_check, SIGNAL(toggled(bool)), this, SLOT(enableToggled(bool))); - connect(bg_color, SIGNAL(changed(const QColor &)), - SLOT(colorChanged(const QColor&))); - connect(text_color, SIGNAL(changed(const QColor &)), - SLOT(colorChanged(const QColor&))); - connect(in_color, SIGNAL(changed(const QColor &)), - SLOT(colorChanged(const QColor&))); - connect(out_color, SIGNAL(changed(const QColor &)), - SLOT(colorChanged(const QColor&))); + connect(enable_check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(enableToggled(bool))); + connect(bg_color, TQT_SIGNAL(changed(const TQColor &)), + TQT_SLOT(colorChanged(const TQColor&))); + connect(text_color, TQT_SIGNAL(changed(const TQColor &)), + TQT_SLOT(colorChanged(const TQColor&))); + connect(in_color, TQT_SIGNAL(changed(const TQColor &)), + TQT_SLOT(colorChanged(const TQColor&))); + connect(out_color, TQT_SIGNAL(changed(const TQColor &)), + TQT_SLOT(colorChanged(const TQColor&))); tl->activate(); @@ -669,7 +669,7 @@ void GraphSetup::enableToggled(bool b) { } -void GraphSetup::colorChanged(const QColor &) { +void GraphSetup::colorChanged(const TQColor &) { save(); } |