summaryrefslogtreecommitdiffstats
path: root/kicker-applets/ktimemon/confdlg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/ktimemon/confdlg.cc')
-rw-r--r--kicker-applets/ktimemon/confdlg.cc96
1 files changed, 48 insertions, 48 deletions
diff --git a/kicker-applets/ktimemon/confdlg.cc b/kicker-applets/ktimemon/confdlg.cc
index ff5ab9d..df3fffe 100644
--- a/kicker-applets/ktimemon/confdlg.cc
+++ b/kicker-applets/ktimemon/confdlg.cc
@@ -11,14 +11,14 @@
#include <config.h>
#include <stdio.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qslider.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qvgroupbox.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqgroupbox.h>
+#include <tqlineedit.h>
+#include <tqslider.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <kcolorbutton.h>
#include <klineedit.h>
@@ -36,11 +36,11 @@ KConfDialog::KConfDialog(KTimeMon *t)
Ok|Cancel|Apply, Ok, t, 0, false ),
timemon(t)
{
- QFrame *page;
- QBoxLayout *bl;
- QGridLayout *gl;
- QLabel *l;
- QGroupBox *b;
+ TQFrame *page;
+ TQBoxLayout *bl;
+ TQGridLayout *gl;
+ TQLabel *l;
+ TQGroupBox *b;
KColorButton *cb;
unsigned i, j;
@@ -49,9 +49,9 @@ KConfDialog::KConfDialog(KTimeMon *t)
// first tab: general
page = addPage( i18n( "&General" ) );
- bl = new QVBoxLayout(page, 0, spacingHint());
+ bl = new TQVBoxLayout(page, 0, spacingHint());
- b = new QVGroupBox(i18n("Sample &Rate"), page);
+ b = new TQVGroupBox(i18n("Sample &Rate"), page);
bl->addWidget(b);
intervalEdit = new KIntNumInput(250, b);
@@ -59,13 +59,13 @@ KConfDialog::KConfDialog(KTimeMon *t)
intervalEdit->setSuffix(i18n(" msec"));
// scaling group box
- b = new QVGroupBox(i18n("Scaling"), page);
+ b = new TQVGroupBox(i18n("Scaling"), page);
bl->addWidget(b);
bl->addStretch();
- autoScaleBox = new QCheckBox(i18n("&Automatic"), b);
- connect(autoScaleBox, SIGNAL(toggled(bool)), this, SLOT(toggle(bool)));
+ autoScaleBox = new TQCheckBox(i18n("&Automatic"), b);
+ connect(autoScaleBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(toggle(bool)));
pageScaleEdit = new KIntNumInput(intervalEdit, 1000, b);
pageScaleEdit->setRange(10, 10000, 10);
@@ -84,7 +84,7 @@ KConfDialog::KConfDialog(KTimeMon *t)
// second tab: colours
page = addPage( i18n( "C&olors" ) );
- gl = new QGridLayout(page, 12, 10, 0, spacingHint());
+ gl = new TQGridLayout(page, 12, 10, 0, spacingHint());
gl->setColStretch(3, 1); gl->setColStretch(6, 1); // eat up horizontal space
gl->setRowStretch(11, 1); // eat up vertical space
@@ -94,85 +94,85 @@ KConfDialog::KConfDialog(KTimeMon *t)
gl->addColSpacing(0, 10); gl->addColSpacing(9, 25);
- QString cpuColourLabels[4];
+ TQString cpuColourLabels[4];
cpuColourLabels[0] = i18n("Kernel:");
cpuColourLabels[1] = i18n("User:");
cpuColourLabels[2] = i18n("Nice:");
cpuColourLabels[3] = i18n("IOWait:");
- QString memColourLabels[4];
+ TQString memColourLabels[4];
memColourLabels[0] = i18n("Kernel:");
memColourLabels[1] = i18n("Used:");
memColourLabels[2] = i18n("Buffers:");
memColourLabels[3] = i18n("Cached:");
KColorButton **cpuColourButtons[4] = { &kernelCB, &userCB, &niceCB, &iowaitCB };
- b = new QGroupBox(i18n("CPU"), page);
+ b = new TQGroupBox(i18n("CPU"), page);
gl->addMultiCellWidget(b, 0, 2, 0, 13);
for (j = 0; j < 4; j++) {
- l = new QLabel(cpuColourLabels[j], page);
+ l = new TQLabel(cpuColourLabels[j], page);
gl->addWidget(l, 1, 3*j+1, AlignVCenter | AlignRight);
cb = *cpuColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 1, 3*j+2, AlignCenter);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
}
KColorButton **memColourButtons[4] = { &mkernelCB, &usedCB, &buffersCB, &cachedCB };
- b = new QGroupBox(i18n("Memory"), page);
+ b = new TQGroupBox(i18n("Memory"), page);
gl->addMultiCellWidget(b, 4, 6, 0, 13);
for (j = 0; j < 4; j++) {
- l = new QLabel(memColourLabels[j], page);
+ l = new TQLabel(memColourLabels[j], page);
gl->addWidget(l, 5, 3*j+1, AlignVCenter | AlignRight);
cb = *memColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 5, 3*j+2, AlignCenter);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
}
- b = new QGroupBox(i18n("Swap"), page);
+ b = new TQGroupBox(i18n("Swap"), page);
gl->addMultiCellWidget(b, 8, 10, 0, 6);
- l = new QLabel(i18n("Swap:"), page);
+ l = new TQLabel(i18n("Swap:"), page);
gl->addWidget(l, 9, 1, AlignVCenter | AlignRight);
cb = swapCB = new KColorButton(red, page);
gl->addWidget(cb, 9, 2);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
- l = new QLabel(i18n("Backgd:"), page);
+ l = new TQLabel(i18n("Backgd:"), page);
gl->addWidget(l, 9, 4, AlignVCenter | AlignRight);
cb = bgCB = new KColorButton(blue, page);
gl->addWidget(cb, 9, 5);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
- //b = new QGroupBox(i18n("Sample"), page);
+ //b = new TQGroupBox(i18n("Sample"), page);
//gl->addMultiCellWidget(b, 8, 10, 7, 9);
// third tab: interaction
page = addPage( i18n( "&Interaction" ) );
- bl = new QVBoxLayout(page, 0, spacingHint());
+ bl = new TQVBoxLayout(page, 0, spacingHint());
- b = new QGroupBox(i18n("Mouse Events"), page);
+ b = new TQGroupBox(i18n("Mouse Events"), page);
b->setColumnLayout( 0, Qt::Vertical );
bl->addWidget(b);
bl->addStretch();
- QVBoxLayout *vbox = new QVBoxLayout( b->layout() );
+ TQVBoxLayout *vbox = new TQVBoxLayout( b->layout() );
- gl = new QGridLayout(b, MAX_MOUSE_ACTIONS + 1, 3, 0, 6 );
+ gl = new TQGridLayout(b, MAX_MOUSE_ACTIONS + 1, 3, 0, 6 );
vbox->addLayout( gl );
@@ -180,13 +180,13 @@ KConfDialog::KConfDialog(KTimeMon *t)
gl->setRowStretch(i, 1);
gl->setColStretch(2, 1);
- QString buttonText[MAX_MOUSE_ACTIONS] = { i18n("Left button:"),
+ TQString buttonText[MAX_MOUSE_ACTIONS] = { i18n("Left button:"),
i18n("Middle button:"),
i18n("Right button:") };
for (i = 0; i < (int) MAX_MOUSE_ACTIONS; i++) {
- l = new QLabel(buttonText[i], b);
+ l = new TQLabel(buttonText[i], b);
gl->addWidget(l, i+1, 0);
mouseC[i] = new KComboBox(false, b);
@@ -197,8 +197,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
mouseC[i]->insertItem(i18n("Starts"), KTimeMon::COMMAND - 1);
gl->addWidget(mouseC[i], i+1, 1);
- connect( mouseC[ i ], SIGNAL( activated( int ) ), this,
- SLOT( mouseCommandEnable() ) );
+ connect( mouseC[ i ], TQT_SIGNAL( activated( int ) ), this,
+ TQT_SLOT( mouseCommandEnable() ) );
mouseLE[i] = new KURLRequester(b);
mouseLE[i]->lineEdit()->setText(t->mouseActionCommand[i]);
@@ -209,12 +209,12 @@ KConfDialog::KConfDialog(KTimeMon *t)
resize(380, 300);
- connect(this, SIGNAL(applyClicked()), timemon, SLOT(apply()));
- connect(this, SIGNAL(okClicked()), timemon, SLOT(apply()));
+ connect(this, TQT_SIGNAL(applyClicked()), timemon, TQT_SLOT(apply()));
+ connect(this, TQT_SIGNAL(okClicked()), timemon, TQT_SLOT(apply()));
}
// Adjust the colours of the sample widget in the configuration dialog.
-void KConfDialog::updateSampleWidget(const QColor &)
+void KConfDialog::updateSampleWidget(const TQColor &)
{
#if 0
sample->kernelColour = kernelCB->color();