summaryrefslogtreecommitdiffstats
path: root/kpacman/status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/status.cpp')
-rw-r--r--kpacman/status.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/kpacman/status.cpp b/kpacman/status.cpp
index e93111b..8ccb7ab 100644
--- a/kpacman/status.cpp
+++ b/kpacman/status.cpp
@@ -4,14 +4,14 @@
#include <status.h>
-#include <qpixmap.h>
-#include <qbitmap.h>
-#include <qstring.h>
-#include <qmsgbox.h>
-#include <qfileinfo.h>
-
-Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) :
- QWidget( parent, name )
+#include <ntqpixmap.h>
+#include <ntqbitmap.h>
+#include <ntqstring.h>
+#include <ntqmsgbox.h>
+#include <ntqfileinfo.h>
+
+Status::Status( TQWidget *parent, const char *name, int Scheme, int Mode ) :
+ TQWidget( parent, name )
{
actualLifes = 0;
actualLevel = 0;
@@ -26,24 +26,24 @@ Status::Status( QWidget *parent, const char *name, int Scheme, int Mode ) :
confScheme();
}
-QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName,
- QList<QPixmap> *pixmaps)
+TQList<TQPixmap> *Status::loadPixmap(TQWidget *parent, TQString pixmapName,
+ TQList<TQPixmap> *pixmaps)
{
if (pixmaps == NULL) {
- pixmaps = new QList<QPixmap>;
+ pixmaps = new TQList<TQPixmap>;
pixmaps->setAutoDelete(TRUE);
}
if (!pixmaps->isEmpty())
pixmaps->clear();
- QPixmap PIXMAP(pixmapName);
+ TQPixmap PIXMAP(pixmapName);
if (PIXMAP.isNull() || PIXMAP.mask() == NULL) {
- QString msg = i18n("The pixmap could not be contructed.\n\n"
+ TQString msg = i18n("The pixmap could not be contructed.\n\n"
"The file '@PIXMAPNAME@' does not exist,\n"
"or is of an unknown format.");
- msg.replace(QRegExp("@PIXMAPNAME@"), pixmapName);
- QMessageBox::information(parent, i18n("Initialization Error"),
+ msg.replace(TQRegExp("@PIXMAPNAME@"), pixmapName);
+ TQMessageBox::information(parent, i18n("Initialization Error"),
(const char *) msg);
return 0;
}
@@ -51,14 +51,14 @@ QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName,
int height = PIXMAP.height();
int width = (height == 0) ? 0 : PIXMAP.width()/(PIXMAP.width()/height);
- QBitmap BITMAP;
- QBitmap MASK;
+ TQBitmap BITMAP;
+ TQBitmap MASK;
BITMAP = *PIXMAP.mask();
MASK.resize(width, height);
for (int x = 0; x < PIXMAP.width()/width; x++) {
- QPixmap *pixmap = new QPixmap(width, height);
+ TQPixmap *pixmap = new TQPixmap(width, height);
pixmaps->append(pixmap);
bitBlt(pixmap, 0, 0, &PIXMAP, x*width, 0, width, height, CopyROP, TRUE);
bitBlt(&MASK, 0, 0, &BITMAP, x*width, 0, width, height, CopyROP, TRUE);
@@ -68,7 +68,7 @@ QList<QPixmap> *Status::loadPixmap(QWidget *parent, QString pixmapName,
return pixmaps;
}
-void Status::paintEvent( QPaintEvent *)
+void Status::paintEvent( TQPaintEvent *)
{
for (int x = 0; x < actualLifes && !lifesPix->isEmpty(); x++)
bitBlt(this, lifesPix->at(0)->width()+(lifesPix->at(0)->width()*x),
@@ -99,17 +99,17 @@ void Status::initPixmaps()
}
}
-QString Status::decodeHexOctString(QString s)
+TQString Status::decodeHexOctString(TQString s)
{
- QString value;
- QString valids;
+ TQString value;
+ TQString valids;
int pos, xpos = 0, opos = 0;
int v, len, leadin;
const char *ptr;
uchar c;
- while (((xpos = s.find(QRegExp("\\\\x[0-9a-fA-F]+"), xpos)) != -1) ||
- ((opos = s.find(QRegExp("\\\\[0-7]+"), opos)) != -1)) {
+ while (((xpos = s.find(TQRegExp("\\\\x[0-9a-fA-F]+"), xpos)) != -1) ||
+ ((opos = s.find(TQRegExp("\\\\[0-7]+"), opos)) != -1)) {
if (xpos != -1) {
valids = "0123456789abcdef";
leadin = 2;
@@ -137,12 +137,12 @@ QString Status::decodeHexOctString(QString s)
return s;
}
-void Status::fillArray(QArray<int> &array, QString values, int max)
+void Status::fillArray(TQArray<int> &array, TQString values, int max)
{
array.resize(max);
int last = 0;
bool ok;
- QString value;
+ TQString value;
for (uint i = 0; i < array.size(); i++) {
if (values.find(',') < 0 && values.length() > 0) {
@@ -161,13 +161,13 @@ void Status::fillArray(QArray<int> &array, QString values, int max)
}
}
-void Status::fillStrList(QStrList &list, QString values, int max)
+void Status::fillStrList(TQStrList &list, TQString values, int max)
{
if (!list.isEmpty())
list.clear();
- QString last = "";
- QString value;
+ TQString last = "";
+ TQString value;
for (uint i = 0; i < (uint) max; i++) {
if (values.find(',') < 0 && values.length() > 0) {
@@ -184,16 +184,16 @@ void Status::fillStrList(QStrList &list, QString values, int max)
}
}
-void Status::fillPixmapName(QStrList &pixmapName)
+void Status::fillPixmapName(TQStrList &pixmapName)
{
- QStrList list = pixmapName;
+ TQStrList list = pixmapName;
if (!pixmapName.isEmpty())
pixmapName.clear();
- QString pixmap;
+ TQString pixmap;
- QFileInfo fileInfo;
+ TQFileInfo fileInfo;
for (uint i = 0; i < list.count(); i++) {
pixmap = list.at(i);
@@ -240,8 +240,8 @@ void Status::confMisc(bool defGroup)
void Status::confScheme()
{
- QString oldgroup = kapp->config()->group();
- QString newgroup;
+ TQString oldgroup = kapp->config()->group();
+ TQString newgroup;
// if not set, read mode and scheme from the configfile
if (mode == -1 && scheme == -1) {