-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
66 lines (58 loc) · 1.5 KB
/
Copy pathmainwindow.h
File metadata and controls
66 lines (58 loc) · 1.5 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "BoardDelegate.h"
#include "numberpick.h"
#include <QLabel>
#include <QString>
#include <QShortcut>
#include "sudokusettings.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
Ui::MainWindow *ui;
private:
BoardDelegate *delegate;
SudokuClass *activeSudoku;
NumberPick *numberPick;
QLabel *numbersLeft;
QLabel *time;
QTimer *timer;
Cell *clickedCell;
SudokuSettings * settings;
std::vector<int> numbers;
long int seconds;
void numberClicked(int num);
void updateNumbers();
void startSudoku(SudokuStructure * newSudoku);
void stopSudoku();
void startNewSudoku();
QString timeToString();
private slots:
void on_boardView_clicked(const QModelIndex &index);
void on_num1_clicked();
void on_num2_clicked();
void on_num3_clicked();
void on_num4_clicked();
void on_num5_clicked();
void on_num6_clicked();
void on_num7_clicked();
void on_num8_clicked();
void on_num9_clicked();
void updateTime();
void endIt();
void on_actionZako_cz_program_triggered();
void on_actionPodpowied_triggered();
void on_actionZapisz_sudoku_do_pliku_triggered();
void on_actionO_aplikacji_triggered();
void on_actionNowe_sudoku_triggered();
void deleteSlot();
void numberClickedSlot(int number);
};
#endif // MAINWINDOW_H