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<Animation*> *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: