summaryrefslogtreecommitdiffstats
path: root/kenolaba/BoardWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'kenolaba/BoardWidget.h')
-rw-r--r--kenolaba/BoardWidget.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/kenolaba/BoardWidget.h b/kenolaba/BoardWidget.h
index 8fc0a317..f3cfd969 100644
--- a/kenolaba/BoardWidget.h
+++ b/kenolaba/BoardWidget.h
@@ -1,8 +1,8 @@
#ifndef _BOARDWIDGET_H_
#define _BOARDWIDGET_H_
-#include <qwidget.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
#include "Ball.h"
#include "Move.h"
@@ -17,19 +17,19 @@ class BoardWidget : public BallWidget
Q_OBJECT
public:
- BoardWidget(Board&, QWidget *parent = 0, const char *name = 0);
+ BoardWidget(Board&, TQWidget *parent = 0, const char *name = 0);
~BoardWidget();
void createPos(int , int , int , Ball*);
void initBalls();
void updateBalls();
- virtual void resizeEvent(QResizeEvent *);
- virtual void moveEvent(QMoveEvent *);
- virtual void paintEvent(QPaintEvent *);
- virtual void mousePressEvent( QMouseEvent* pEvent );
- virtual void mouseReleaseEvent( QMouseEvent* pEvent );
- virtual void mouseMoveEvent( QMouseEvent* pEvent );
+ virtual void resizeEvent(TQResizeEvent *);
+ virtual void moveEvent(TQMoveEvent *);
+ virtual void paintEvent(TQPaintEvent *);
+ virtual void mousePressEvent( TQMouseEvent* pEvent );
+ virtual void mouseReleaseEvent( TQMouseEvent* pEvent );
+ virtual void mouseMoveEvent( TQMouseEvent* pEvent );
void renderBalls(bool r);
@@ -73,18 +73,18 @@ class BoardWidget : public BallWidget
signals:
void moveChoosen(Move&);
- void rightButtonPressed(int,const QPoint&);
- void updateSpy(QString);
+ void rightButtonPressed(int,const TQPoint&);
+ void updateSpy(TQString);
void edited(int);
protected:
- virtual QSize sizeHint() const;
+ virtual TQSize sizeHint() const;
private:
int positionOf(int x, int y);
bool isValidStart(int pos, bool);
bool isValidEnd(int pos);
- QPixmap pm, boardPM;
+ TQPixmap pm, boardPM;
Board& board;
int actValue;
@@ -102,8 +102,8 @@ class BoardWidget : public BallWidget
bool gettingMove, mbDown, startValid, startShown;
int startPos, actPos, oldPos, shownDirection;
int startField, startField2, actField, oldField, startType;
- QColor *boardColor, *redColor, *yellowColor, *redHColor, *yellowHColor;
- QCursor *arrowAll, *arrow[7];
+ TQColor *boardColor, *redColor, *yellowColor, *redHColor, *yellowHColor;
+ TQCursor *arrowAll, *arrow[7];
Ball *n1, *n2, *h1, *h2, *d1, *d2; //, *e;