summaryrefslogtreecommitdiffstats
path: root/kppp/modemcmds.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/modemcmds.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-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/modemcmds.cpp')
-rw-r--r--kppp/modemcmds.cpp154
1 files changed, 77 insertions, 77 deletions
diff --git a/kppp/modemcmds.cpp b/kppp/modemcmds.cpp
index 3a34bb4d..04767ede 100644
--- a/kppp/modemcmds.cpp
+++ b/kppp/modemcmds.cpp
@@ -24,8 +24,8 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qslider.h>
+#include <tqlayout.h>
+#include <tqslider.h>
#include <kbuttonbox.h>
#include <stdlib.h>
#include <kapplication.h> // for getMiniIcon()
@@ -34,220 +34,220 @@
#include "pppdata.h"
#include <kwin.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qlabel.h>
+#include <tqgroupbox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqlabel.h>
#define ADJUSTEDIT(e) e->setText("XXXXXXXXqy"); e->setMinimumSize(e->sizeHint()); e->setFixedHeight(e->sizeHint().height()); e->setText(""); e->setMaxLength(MODEMSTR_SIZE);
// a little trick to make the label look like a disabled lineedit
-#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(QLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(QFrame::WinPanel|QFrame::Sunken); l->setLineWidth(2);
+#define FORMATSLIDERLABEL(l) l->setFixedWidth(l->sizeHint().width()); l->setFixedHeight(TQLineEdit(dummyWidget).sizeHint().height()); l->setAlignment(AlignCenter); l->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); l->setLineWidth(2);
-ModemCommands::ModemCommands(QWidget *parent, const char *name)
+ModemCommands::ModemCommands(TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n("Edit Modem Commands"), Ok|Cancel)
{
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
- QWidget *dummyWidget = new QWidget(this);
+ TQWidget *dummyWidget = new TQWidget(this);
setMainWidget(dummyWidget);
const int GRIDROWS = 22;
int row = 0;
// toplevel layout
- QVBoxLayout *tl = new QVBoxLayout(dummyWidget, 10, 4);
+ TQVBoxLayout *tl = new TQVBoxLayout(dummyWidget, 10, 4);
// add grid + frame
- QGridLayout *l1 = new QGridLayout(GRIDROWS, 4);
+ TQGridLayout *l1 = new TQGridLayout(GRIDROWS, 4);
tl->addLayout(l1);
- box = new QGroupBox(dummyWidget, "box");
+ box = new TQGroupBox(dummyWidget, "box");
l1->addMultiCellWidget(box, row++, GRIDROWS, 0, 3);
// put slider and label into a separate H-Box
- QHBoxLayout *l2 = new QHBoxLayout;
+ TQHBoxLayout *l2 = new QHBoxLayout;
l1->addLayout(l2, row, 2);
- lpreinitslider = new QLabel("MMMM", dummyWidget);
+ lpreinitslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(lpreinitslider);
- preinitslider = new QSlider(0, 300, 1, 0,
- QSlider::Horizontal, dummyWidget);
+ preinitslider = new TQSlider(0, 300, 1, 0,
+ TQSlider::Horizontal, dummyWidget);
preinitslider->setFixedHeight(preinitslider->sizeHint().height());
- connect(preinitslider, SIGNAL(valueChanged(int)),
- lpreinitslider, SLOT(setNum(int)));
+ connect(preinitslider, TQT_SIGNAL(valueChanged(int)),
+ lpreinitslider, TQT_SLOT(setNum(int)));
l2->addWidget(lpreinitslider, 0);
l2->addWidget(preinitslider, 1);
- lpreinit = new QLabel(i18n("Pre-init delay (sec/100):"), dummyWidget);
+ lpreinit = new TQLabel(i18n("Pre-init delay (sec/100):"), dummyWidget);
l1->addWidget(lpreinit, row++, 1);
for(int i = 0; i < PPPData::NumInitStrings; i++) {
- initstr[i] = new QLineEdit(dummyWidget);
- QLabel *initLabel = new QLabel(i18n("Initialization string %1:").arg(i + 1),
+ initstr[i] = new TQLineEdit(dummyWidget);
+ TQLabel *initLabel = new TQLabel(i18n("Initialization string %1:").arg(i + 1),
dummyWidget);
ADJUSTEDIT(initstr[i]);
l1->addWidget(initLabel, row, 1);
l1->addWidget(initstr[i], row++, 2);
}
- QHBoxLayout *l3 = new QHBoxLayout;
+ TQHBoxLayout *l3 = new QHBoxLayout;
l1->addLayout(l3, row, 2);
- linitslider = new QLabel("MMMM", dummyWidget);
+ linitslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(linitslider);
- initslider = new QSlider(1, 300, 1, 0,
- QSlider::Horizontal, dummyWidget);
+ initslider = new TQSlider(1, 300, 1, 0,
+ TQSlider::Horizontal, dummyWidget);
initslider->setFixedHeight(initslider->sizeHint().height());
- connect(initslider, SIGNAL(valueChanged(int)),
- linitslider, SLOT(setNum(int)));
+ connect(initslider, TQT_SIGNAL(valueChanged(int)),
+ linitslider, TQT_SLOT(setNum(int)));
l3->addWidget(linitslider, 0);
l3->addWidget(initslider, 1);
- label3 = new QLabel(i18n("Post-init delay (sec/100):"), dummyWidget);
+ label3 = new TQLabel(i18n("Post-init delay (sec/100):"), dummyWidget);
l1->addWidget(label3, row++, 1);
/* Set ATS11 (Dial tone duration) between 0-255 (Default ~ 70) */
- QHBoxLayout *l4 = new QHBoxLayout;
+ TQHBoxLayout *l4 = new QHBoxLayout;
l1->addLayout(l4, row, 2);
- ldurationslider = new QLabel("MMMM", dummyWidget);
+ ldurationslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(ldurationslider);
- durationslider = new QSlider(1, 255, 1, 0,
- QSlider::Horizontal, dummyWidget);
+ durationslider = new TQSlider(1, 255, 1, 0,
+ TQSlider::Horizontal, dummyWidget);
durationslider->setFixedHeight(durationslider->sizeHint().height());
- connect(durationslider, SIGNAL(valueChanged(int)),
- ldurationslider, SLOT(setNum(int)));
+ connect(durationslider, TQT_SIGNAL(valueChanged(int)),
+ ldurationslider, TQT_SLOT(setNum(int)));
l4->addWidget(ldurationslider, 0);
l4->addWidget(durationslider, 1);
- lduration = new QLabel(i18n("Dialing speed (sec/100):"), dummyWidget);
+ lduration = new TQLabel(i18n("Dialing speed (sec/100):"), dummyWidget);
l1->addWidget(lduration, row++, 1);
- initresp = new QLineEdit(dummyWidget);
- label2 = new QLabel(i18n("Init &response:"), dummyWidget);
+ initresp = new TQLineEdit(dummyWidget);
+ label2 = new TQLabel(i18n("Init &response:"), dummyWidget);
label2->setBuddy(initresp);
ADJUSTEDIT(initresp);
l1->addWidget(label2, row, 1);
l1->addWidget(initresp, row++, 2);
- nodetectdialtone = new QLineEdit(dummyWidget);
- lnodetectdialtone = new QLabel(i18n("No di&al tone detection:"), dummyWidget);
+ nodetectdialtone = new TQLineEdit(dummyWidget);
+ lnodetectdialtone = new TQLabel(i18n("No di&al tone detection:"), dummyWidget);
lnodetectdialtone->setBuddy(nodetectdialtone);
ADJUSTEDIT(nodetectdialtone);
l1->addWidget(lnodetectdialtone, row, 1);
l1->addWidget(nodetectdialtone, row++, 2);
- dialstr = new QLineEdit(dummyWidget);
- label4 = new QLabel(i18n("Dial &string:"),dummyWidget);
+ dialstr = new TQLineEdit(dummyWidget);
+ label4 = new TQLabel(i18n("Dial &string:"),dummyWidget);
label4->setBuddy(dialstr);
ADJUSTEDIT(dialstr);
l1->addWidget(label4, row, 1);
l1->addWidget(dialstr, row++, 2);
- connectresp = new QLineEdit(dummyWidget);
- label5 = new QLabel(i18n("Co&nnect response:"), dummyWidget);
+ connectresp = new TQLineEdit(dummyWidget);
+ label5 = new TQLabel(i18n("Co&nnect response:"), dummyWidget);
label5->setBuddy(connectresp);
ADJUSTEDIT(connectresp);
l1->addWidget(label5, row, 1);
l1->addWidget(connectresp, row++, 2);
- busyresp = new QLineEdit(dummyWidget);
- label6 = new QLabel(i18n("Busy response:"), dummyWidget);
+ busyresp = new TQLineEdit(dummyWidget);
+ label6 = new TQLabel(i18n("Busy response:"), dummyWidget);
ADJUSTEDIT(busyresp);
l1->addWidget(label6, row, 1);
l1->addWidget(busyresp, row++, 2);
- nocarrierresp = new QLineEdit(dummyWidget);
- label7 = new QLabel(i18n("No carr&ier response:"), dummyWidget);
+ nocarrierresp = new TQLineEdit(dummyWidget);
+ label7 = new TQLabel(i18n("No carr&ier response:"), dummyWidget);
label7->setBuddy(nocarrierresp);
ADJUSTEDIT(nocarrierresp);
l1->addWidget(label7, row, 1);
l1->addWidget(nocarrierresp, row++, 2);
- nodialtoneresp = new QLineEdit(dummyWidget);
- label8 = new QLabel(i18n("No dial tone response:"), dummyWidget);
+ nodialtoneresp = new TQLineEdit(dummyWidget);
+ label8 = new TQLabel(i18n("No dial tone response:"), dummyWidget);
ADJUSTEDIT(nodialtoneresp);
l1->addWidget(label8, row, 1);
l1->addWidget(nodialtoneresp, row++, 2);
- hangupstr = new QLineEdit(dummyWidget);
- label9 = new QLabel(i18n("&Hangup string:"), dummyWidget);
+ hangupstr = new TQLineEdit(dummyWidget);
+ label9 = new TQLabel(i18n("&Hangup string:"), dummyWidget);
label9->setBuddy(hangupstr);
ADJUSTEDIT(hangupstr);
l1->addWidget(label9, row, 1);
l1->addWidget(hangupstr, row++, 2);
- hangupresp = new QLineEdit(dummyWidget);
- label10 = new QLabel(i18n("Hangup response:"), dummyWidget);
+ hangupresp = new TQLineEdit(dummyWidget);
+ label10 = new TQLabel(i18n("Hangup response:"), dummyWidget);
ADJUSTEDIT(hangupresp);
l1->addWidget(label10, row, 1);
l1->addWidget(hangupresp, row++, 2);
- answerstr = new QLineEdit(dummyWidget);
- label11 = new QLabel(i18n("Answ&er string:"), dummyWidget);
+ answerstr = new TQLineEdit(dummyWidget);
+ label11 = new TQLabel(i18n("Answ&er string:"), dummyWidget);
label11->setBuddy(answerstr);
ADJUSTEDIT(answerstr);
l1->addWidget(label11, row, 1);
l1->addWidget(answerstr, row++, 2);
- ringresp = new QLineEdit(dummyWidget);
- label12 = new QLabel(i18n("Ring response:"), dummyWidget);
+ ringresp = new TQLineEdit(dummyWidget);
+ label12 = new TQLabel(i18n("Ring response:"), dummyWidget);
ADJUSTEDIT(ringresp);
l1->addWidget(label12, row, 1);
l1->addWidget(ringresp, row++, 2);
- answerresp = new QLineEdit(dummyWidget);
- label13 = new QLabel(i18n("Ans&wer response:"), dummyWidget);
+ answerresp = new TQLineEdit(dummyWidget);
+ label13 = new TQLabel(i18n("Ans&wer response:"), dummyWidget);
label13->setBuddy(answerresp);
ADJUSTEDIT(answerresp);
l1->addWidget(label13, row, 1);
l1->addWidget(answerresp, row++, 2);
- dlpresp = new QLineEdit(dummyWidget);
- label17 = new QLabel(i18n("DLP response:"), dummyWidget);
+ dlpresp = new TQLineEdit(dummyWidget);
+ label17 = new TQLabel(i18n("DLP response:"), dummyWidget);
ADJUSTEDIT(dlpresp);
l1->addWidget(label17, row, 1);
l1->addWidget(dlpresp, row++, 2);
- escapestr = new QLineEdit(dummyWidget);
- label14 = new QLabel(i18n("Escape strin&g:"), dummyWidget);
+ escapestr = new TQLineEdit(dummyWidget);
+ label14 = new TQLabel(i18n("Escape strin&g:"), dummyWidget);
label14->setBuddy(escapestr);
ADJUSTEDIT(escapestr);
l1->addWidget(label14, row, 1);
l1->addWidget(escapestr, row++, 2);
- escaperesp = new QLineEdit(dummyWidget);
- label15 = new QLabel(i18n("Escape response:"), dummyWidget);
+ escaperesp = new TQLineEdit(dummyWidget);
+ label15 = new TQLabel(i18n("Escape response:"), dummyWidget);
ADJUSTEDIT(escaperesp);
l1->addWidget(label15, row, 1);
l1->addWidget(escaperesp, row++, 2);
- QHBoxLayout *l5 = new QHBoxLayout;
+ TQHBoxLayout *l5 = new QHBoxLayout;
l1->addLayout(l5, row, 2);
- lslider = new QLabel("MMMM", dummyWidget);
+ lslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(lslider);
- slider = new QSlider(0, 255, 1, 0,
- QSlider::Horizontal, dummyWidget);
+ slider = new TQSlider(0, 255, 1, 0,
+ TQSlider::Horizontal, dummyWidget);
slider->setFixedHeight(slider->sizeHint().height());
- connect(slider, SIGNAL(valueChanged(int)),
- lslider, SLOT(setNum(int)));
+ connect(slider, TQT_SIGNAL(valueChanged(int)),
+ lslider, TQT_SLOT(setNum(int)));
l5->addWidget(lslider, 0);
l5->addWidget(slider, 1);
- label16 = new QLabel(i18n("Guard time (sec/50):"), dummyWidget);
+ label16 = new TQLabel(i18n("Guard time (sec/50):"), dummyWidget);
l1->addWidget(label16, row++, 1);
- QLabel *l = new QLabel(i18n("Volume off/low/high:"), dummyWidget);
+ TQLabel *l = new TQLabel(i18n("Volume off/low/high:"), dummyWidget);
l1->addWidget(l, row, 1);
- QHBoxLayout *l6 = new QHBoxLayout;
+ TQHBoxLayout *l6 = new QHBoxLayout;
l1->addLayout(l6, row++, 2);
- volume_off = new QLineEdit(dummyWidget);
+ volume_off = new TQLineEdit(dummyWidget);
volume_off->setFixedHeight(volume_off->sizeHint().height());
volume_off->setMinimumWidth((int)(volume_off->sizeHint().width() / 2));
- volume_medium = new QLineEdit(dummyWidget);
+ volume_medium = new TQLineEdit(dummyWidget);
volume_medium->setFixedHeight(volume_medium->sizeHint().height());
volume_medium->setMinimumWidth((int)(volume_medium->sizeHint().width() / 2));
- volume_high = new QLineEdit(dummyWidget);
+ volume_high = new TQLineEdit(dummyWidget);
volume_high->setFixedHeight(volume_high->sizeHint().height());
volume_high->setMinimumWidth((int)(volume_high->sizeHint().width() / 2));
l6->addWidget(volume_off);