summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/nexscope/nex.h
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/nexscope/nex.h')
-rw-r--r--noatun-plugins/nexscope/nex.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/noatun-plugins/nexscope/nex.h b/noatun-plugins/nexscope/nex.h
index 05c7f81..81fd680 100644
--- a/noatun-plugins/nexscope/nex.h
+++ b/noatun-plugins/nexscope/nex.h
@@ -1,16 +1,16 @@
#ifndef NEX_H
#define NEX_H
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
#include <stdint.h>
#include <vector>
-#include <qdict.h>
+#include <tqdict.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <iostream>
-#include <qdom.h>
+#include <tqdom.h>
#include "SDL.h"
#include "SDL_thread.h"
@@ -20,8 +20,8 @@ typedef uint8_t Byte;
#define COLOR(r,g,b) ((r<<16) | (g<<8) | (b))
#define COLORSTR(pixel) \
- QString("#%1%2%3").arg(QString::number((pixel>>16) & 8, 16)) \
- .arg(QString::number((pixel>>8) & 8, 16)).arg(QString::number(pixel& 8, 16))
+ TQString("#%1%2%3").arg(TQString::number((pixel>>16) & 8, 16)) \
+ .arg(TQString::number((pixel>>8) & 8, 16)).arg(TQString::number(pixel& 8, 16))
#define STRCOLOR(pixel) \
Pixel(((pixel.mid(1,2).toInt(0, 16)) <<16) \
@@ -76,10 +76,10 @@ class Spacer : public QWidget
{
Q_OBJECT
public:
- Spacer(QWidget *parent) : QWidget(parent)
+ Spacer(TQWidget *parent) : TQWidget(parent)
{
- setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,
- QSizePolicy::MinimumExpanding));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
+ TQSizePolicy::MinimumExpanding));
}
};
@@ -153,7 +153,7 @@ public:
private:
struct PoolItem;
- QPtrList<BitmapPool::PoolItem> mBitmaps;
+ TQPtrList<BitmapPool::PoolItem> mBitmaps;
Mutex mMutex;
};
@@ -198,7 +198,7 @@ private:
float fhtTab[(samples-256)*2];
bool ok;
- QObject *notifier;
+ TQObject *notifier;
};
class OutputSDL
@@ -217,14 +217,14 @@ private:
static SDL_Surface *surface;
};
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kcolorbutton.h>
class NexCheckBox : public QCheckBox
{
Q_OBJECT
public:
- NexCheckBox(QWidget *parent, const QString &, bool *v);
+ NexCheckBox(TQWidget *parent, const TQString &, bool *v);
private slots:
void change(bool b);
@@ -238,10 +238,10 @@ class NexColorButton : public KColorButton
{
Q_OBJECT
public:
- NexColorButton(QWidget *parent, Pixel *color);
+ NexColorButton(TQWidget *parent, Pixel *color);
private slots:
- void change(const QColor &c);
+ void change(const TQColor &c);
private:
Pixel *c;
@@ -255,11 +255,11 @@ public:
virtual Bitmap *render(float *pcm[4], Bitmap *source) = 0;
- virtual QWidget *configure(QWidget*) { return 0; }
+ virtual TQWidget *configure(TQWidget*) { return 0; }
- virtual void save(QDomElement &) {}
+ virtual void save(TQDomElement &) {}
- virtual void load(const QDomElement &) {}
+ virtual void load(const TQDomElement &) {}
};
class QCheckBox;
@@ -270,7 +270,7 @@ class RendererListConfigurator : public QWidget
{
Q_OBJECT
public:
- RendererListConfigurator(RendererList *l, QWidget *parent);
+ RendererListConfigurator(RendererList *l, TQWidget *parent);
~RendererListConfigurator();
public slots:
@@ -278,8 +278,8 @@ public slots:
void convolve(bool state);
private:
- QCheckBox *mErase;
- QMultiLineEdit *mComments;
+ TQCheckBox *mErase;
+ TQMultiLineEdit *mComments;
RendererList *mList;
};
@@ -293,22 +293,22 @@ public:
virtual ~RendererList();
virtual Bitmap *render(float *pcm[4], Bitmap *source);
- QPtrList<Renderer> &renderers() { return mRendererList; }
- const QPtrList<Renderer> &renderers() const { return mRendererList; }
+ TQPtrList<Renderer> &renderers() { return mRendererList; }
+ const TQPtrList<Renderer> &renderers() const { return mRendererList; }
bool clearAfter() const { return mClearAfter; }
void setClearAfter(bool b) { mClearAfter=b; }
- virtual QWidget *configure(QWidget *parent);
+ virtual TQWidget *configure(TQWidget *parent);
- virtual void save(QDomElement &e);
+ virtual void save(TQDomElement &e);
- virtual void load(const QDomElement &e);
+ virtual void load(const TQDomElement &e);
private:
- QPtrList<Renderer> mRendererList;
+ TQPtrList<Renderer> mRendererList;
volatile bool mClearAfter;
- QString mComments;
+ TQString mComments;
Bitmap *mFrame;
};
@@ -331,9 +331,9 @@ public:
Input *input() { return mInput; }
- Renderer *renderer(const QString &name);
+ Renderer *renderer(const TQString &name);
- QStringList renderers() const;
+ TQStringList renderers() const;
public:
static Nex *sNex;
@@ -343,7 +343,7 @@ private:
OutputSDL mOutput;
BitmapPool *mBitmapPool;
RendererList *mRendererList;
- QDict<CreatorSig*> mCreators;
+ TQDict<CreatorSig*> mCreators;
};
#define nex Nex::nex()