X-Git-Url: http://git.maemo.org/git/?p=impuzzle;a=blobdiff_plain;f=src%2Fpuzzleitem.h;h=3e8297e8a35a635ed65b854c71057a26242521a8;hp=0fb58276862615bb6e161196a4fa3372222b36bf;hb=fe6a84bdca195d7eae5f21447f4d9aad5226db49;hpb=e90ecb7db7b5d4d22fb08f8053db4423797b5afc;ds=sidebyside diff --git a/src/puzzleitem.h b/src/puzzleitem.h index 0fb5827..3e8297e 100644 --- a/src/puzzleitem.h +++ b/src/puzzleitem.h @@ -38,6 +38,13 @@ public: bool movable() const; void setMovable(bool canMove); void moveMeTo(const QPointF &location); + static int moveCount(); + static void resetMoveCount(); + 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); @@ -48,5 +55,8 @@ private: QPointF currentPlace_; bool movable_; QPropertyAnimation *moveAnimation_; + static int moveCount_; + int pieceNumber_; + bool drawNumber_; }; #endif