summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
blob: 0054893ba7f4295bf1c4b8bf42469ab2286c465f (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

#ifndef __INCLUDED_SUDOKUSOLVER_MAINWINDOW__
#define __INCLUDED_SUDOKUSOLVER_MAINWINDOW__

#include <QtGui> 
#include <QMainWindow>

class SudokuWidget;
class QAction;
class QMenu;
class SolverWindow;

class MainWindow : public QMainWindow
{
	Q_OBJECT
	
public:
	MainWindow();

private:
	void initActions();
	
	void initMenus();
	
	void updateTitle();
	
	SolverWindow	*mainwindow_solverwindow;
	QMenu		*mainwindow_gamemenu;
	QMenu		*mainwindow_movemenu;
	
	// Game menu actions
	QAction		*action_new;
	QAction		*action_load;
	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;
	
private slots:
	
	void doNew();
	void doSave();
	void doSaveAs();
	void doLoad();
	
	void doValidate();

};

#endif // __INCLUDED_SUDOKUSOLVER_MAINWINDOW__