summaryrefslogtreecommitdiffstats
path: root/kturtle/src/canvas.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kturtle/src/canvas.h
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kturtle/src/canvas.h')
-rw-r--r--kturtle/src/canvas.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kturtle/src/canvas.h b/kturtle/src/canvas.h
index 349e610d..0dd5bb13 100644
--- a/kturtle/src/canvas.h
+++ b/kturtle/src/canvas.h
@@ -19,7 +19,7 @@
#ifndef _CANVAS_H_
#define _CANVAS_H_
-#include <qcanvas.h>
+#include <tqcanvas.h>
class Canvas : public QCanvasView
@@ -27,10 +27,10 @@ class Canvas : public QCanvasView
Q_OBJECT
public:
- Canvas(QWidget *parent = 0, const char *name = 0);
+ Canvas(TQWidget *parent = 0, const char *name = 0);
~Canvas();
- QPixmap* canvas2Pixmap();
+ TQPixmap* canvas2Pixmap();
public slots:
@@ -56,8 +56,8 @@ class Canvas : public QCanvasView
void slotSpritePress();
void slotSpriteChange(int x);
- void slotPrint(QString text);
- void slotFontType(QString family, QString extra);
+ void slotPrint(TQString text);
+ void slotFontType(TQString family, TQString extra);
void slotFontSize(int px);
void slotWrapOn();
void slotWrapOff();
@@ -73,20 +73,20 @@ class Canvas : public QCanvasView
void line(double xa, double ya, double xb, double yb);
void lineShell(double xa, double ya, double xb, double yb);
- bool endlessLoop(QPoint begin, QPoint end);
+ bool endlessLoop(TQPoint begin, TQPoint end);
bool pointInRange(double px, double py, double xa, double ya, double xb, double yb);
- QPoint offset(int x, int y);
- QPoint translationFactor(double xa, double ya, double xb, double yb);
+ TQPoint offset(int x, int y);
+ TQPoint translationFactor(double xa, double ya, double xb, double yb);
- void loadSpriteFrames(QString name);
+ void loadSpriteFrames(TQString name);
void updateSpritePos();
void updateSpriteAngle();
- QCanvas *canvas;
- QPixmap pixmap;
- QCanvasSprite *sprite;
- QCanvasPixmapArray *spriteFrames;
- QFont font;
+ TQCanvas *canvas;
+ TQPixmap pixmap;
+ TQCanvasSprite *sprite;
+ TQCanvasPixmapArray *spriteFrames;
+ TQFont font;
double posX, posY;
int canvasWidth, canvasHeight;
int penWidth;
@@ -95,7 +95,7 @@ class Canvas : public QCanvasView
bool pen;
bool wrap;
bool cutLoop;
- QPoint prevStartPos3, prevStartPos2, prevStartPos1, prevEndPos3, prevEndPos2, prevEndPos1;
+ TQPoint prevStartPos3, prevStartPos2, prevStartPos1, prevEndPos3, prevEndPos2, prevEndPos1;
};
#endif // _CANVAS_H_