-
Notifications
You must be signed in to change notification settings - Fork 0
/
sudokuwidget.h
54 lines (46 loc) · 1007 Bytes
/
sudokuwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef SUDOKUWIDGET_H
#define SUDOKUWIDGET_H
#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QGroupBox>
#include <QPushButton>
#include <QFile>
#include <QList>
#include <QDebug>
#include <QTimer>
#include "sudoku.h"
#include "dragwidget.h"
class SudokuWidget : public QWidget
{
Q_OBJECT
public:
SudokuWidget(Sudoku *sudoku, QWidget *parent = 0);
~SudokuWidget();
Sudoku *sudoku;
QList<Sudoku*> base;
public slots:
void verifierGrille();
void trouverSolution();
void handleResult(bool solution);
void razGrille();
void fixerGrille();
void majTimer();
void nouvelleGrille();
signals:
void majGrille();
void grilleFixee();
void grilleDefixee();
private:
QPushButton *solution;
QPushButton *verifier;
QPushButton *fixer;
QPushButton *raz;
QPushButton *nouveau;
DragWidget *jeu[3][3];
QLabel *info;
QTimer *timer;
int compteur;
};
#endif // SUDOKUWIDGET_H