X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fieldview.h;fp=fieldview.h;h=892fdf085ea17fb37d7f1a33784f718e25730e9b;hb=6c9fbeb1b4cda4d08076565aa30a3b0bf4d530ec;hp=197e830c62bb117c1d7e2019cee8bddc4897c63f;hpb=e60d95deae18bd37783394a78468e19bbe020bcd;p=vexed diff --git a/fieldview.h b/fieldview.h index 197e830..892fdf0 100644 --- a/fieldview.h +++ b/fieldview.h @@ -64,23 +64,33 @@ public: explicit FieldView(QWidget *parent = 0); PlayField* setPlayField(PlayField *pf); + void showSolution(); + void stop(); + private: PlayField *playField; int selX, selY; int moveX, moveY; bool moving; QList *moves; + QTimer *solutionTimer; void playMoves(); + void move(int x, int y, int dest_x); + + int solutionMove; + bool inSolution; signals: void solved(int moves); void updateMoves(int moves); + void animationEnd(); public slots: void cellMoved(int w, int h, int wnew, int hnew); void cellGone(int w, int h); void playMove(); void undo(); + void playSolutionMove(); protected: