blob: f4ec07099702d774172503e1776ddc3de4de6924 (
plain)
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
67
68
69
70
71
72
|
#ifndef __INCLUDED_SUDOKUSOLVER_MAINWINDOW__
#define __INCLUDED_SUDOKUSOLVER_MAINWINDOW__
#include <QtWidgets>
#include <QMainWindow>
class SudokuWidget;
class QAction;
class QMenu;
class SolverWindow;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
private slots:
void updateTitle();
void updateStatus(const QString & text);
void doNew();
void doOpen();
void doSave();
void doSaveAs();
void doRevert();
void doQuit();
void doValidate();
void doShowHintUnique();
void doAbout();
private:
void initActions();
void initMenus();
void initStatus();
SolverWindow *mainwindow_solverwindow;
QMenu *mainwindow_gamemenu;
QMenu *mainwindow_movemenu;
QMenu *mainwindow_settingsmenu;
QMenu *mainwindow_helpmenu;
// Game menu actions
QAction *action_new;
QAction *action_open;
QAction *action_save;
QAction *action_saveas;
QAction *action_revert;
QAction *action_quit;
// Move menu actions
QAction *action_hint;
QAction *action_step;
QAction *action_guess;
QAction *action_solve;
QAction *action_search;
QAction *action_validate;
// Settings menu actions
QAction *action_hintunique;
// Help menu actions
QAction *action_about;
};
#endif // __INCLUDED_SUDOKUSOLVER_MAINWINDOW__
|