summaryrefslogtreecommitdiffstats
path: root/kenolaba/Ball.h
diff options
context:
space:
mode:
Diffstat (limited to 'kenolaba/Ball.h')
-rw-r--r--kenolaba/Ball.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/kenolaba/Ball.h b/kenolaba/Ball.h
index 1a3e0d28..1fcf1b37 100644
--- a/kenolaba/Ball.h
+++ b/kenolaba/Ball.h
@@ -16,11 +16,11 @@
#ifndef _BALL_H_
#define _BALL_H_
-#include <qpixmap.h>
-#include <qimage.h>
-#include <qcolor.h>
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
+#include <tqcolor.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
/* textures for balls */
#define TEX_FLAT 0
@@ -29,13 +29,13 @@
class Ball {
public:
- Ball(const QColor& c, double a = 0.0, int t=TEX_RIPPLE );
+ Ball(const TQColor& c, double a = 0.0, int t=TEX_RIPPLE );
~Ball();
- QPixmap* pixmap();
+ TQPixmap* pixmap();
double angle() { return an; }
- QColor ballColor() { return bColor; }
+ TQColor ballColor() { return bColor; }
void setSpecials(double z, double f, double l)
{ zoom = z, flip=f, limit=l; }
@@ -43,7 +43,7 @@ class Ball {
static int h() { return sizeY; }
static void setSize(int x,int y);
static void setLight(int x=5, int y=3, int z=10,
- const QColor& c = QColor(200,230,255) );
+ const TQColor& c = TQColor(200,230,255) );
static void setTexture(double c=13., double d=.2);
private:
@@ -51,14 +51,14 @@ class Ball {
void render();
static void invalidate();
- //static QImage back;
+ //static TQImage back;
static int sizeX, sizeY;
static double lightX, lightY, lightZ;
- static QColor lightColor;
+ static TQColor lightColor;
static double rippleCount, rippleDepth;
- QPixmap pm;
- QColor bColor;
+ TQPixmap pm;
+ TQColor bColor;
double an, sina, cosa;
double zoom, flip, limit;
int tex;
@@ -73,7 +73,7 @@ class BallAnimation {
BallAnimation(int s, Ball*, Ball*);
int steps;
- QPtrList<Ball> balls;
+ TQPtrList<Ball> balls;
};
#define ANIMATION_STOPPED 0
@@ -99,7 +99,7 @@ class BallWidget : public QWidget
Q_OBJECT
public:
- BallWidget(int _freq, int bFr, QWidget *parent = 0, const char *name = 0);
+ BallWidget(int _freq, int bFr, TQWidget *parent = 0, const char *name = 0);
~BallWidget();
void createBlending(int, int, Ball* , Ball* );
@@ -108,10 +108,10 @@ class BallWidget : public QWidget
void startAnimation(int pos, int anim, int type=ANIMATION_FORWARD);
void stopAnimation(int pos);
- void paint(QPaintDevice *);
+ void paint(TQPaintDevice *);
- virtual void resizeEvent(QResizeEvent *);
- virtual void paintEvent(QPaintEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
+ virtual void paintEvent(TQPaintEvent *);
signals:
void animationFinished(int);
@@ -124,14 +124,14 @@ class BallWidget : public QWidget
void animate();
protected:
- QMemArray<BallPosition*> positions;
- QMemArray<BallAnimation*> animations;
+ TQMemArray<BallPosition*> positions;
+ TQMemArray<BallAnimation*> animations;
private:
int freq;
int xStart, yStart, realSize, ballFraction;
bool isRunning;
- QTimer *timer;
+ TQTimer *timer;
};
@@ -141,10 +141,10 @@ class BallTest: public BallWidget
{
Q_OBJECT
public:
- BallTest(QWidget *parent=0, const char *name=0 );
+ BallTest(TQWidget *parent=0, const char *name=0 );
protected:
- void mousePressEvent( QMouseEvent * );
- void mouseReleaseEvent( QMouseEvent * );
+ void mousePressEvent( TQMouseEvent * );
+ void mouseReleaseEvent( TQMouseEvent * );
};