X-Git-Url: http://git.maemo.org/git/?p=impuzzle;a=blobdiff_plain;f=src%2Fpuzzleitem.h;h=a6830faeb4f1f54a71ccef0c062b1dd563e97e91;hp=8cf4819f7201e122347ad3bee2f9641dd4fd4176;hb=79ce16073d2c39d9973ffdddfbae8a94439dbd43;hpb=a27dea60eebff3d5bd0068f31e7d042e8c7d0048 diff --git a/src/puzzleitem.h b/src/puzzleitem.h index 8cf4819..a6830fa 100644 --- a/src/puzzleitem.h +++ b/src/puzzleitem.h @@ -39,7 +39,14 @@ public: void setMovable(bool canMove); void moveMeTo(const QPointF &location); static int moveCount(); + static void setMoveCount(const int count); static void resetMoveCount(); + static void setManuallyMovable(const bool manuallyMovable); + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); + void setPieceNumber(const int pieceNumber); + int pieceNumber() const; + void setDrawNumber(bool value); + bool drawNumber() const; protected: void mousePressEvent(QGraphicsSceneMouseEvent *event); @@ -51,5 +58,8 @@ private: bool movable_; QPropertyAnimation *moveAnimation_; static int moveCount_; + static bool manuallyMovable_; + int pieceNumber_; + bool drawNumber_; }; #endif