summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-04-18 21:53:29 +0000
committerStijn Buys <ingar@osirion.org>2013-04-18 21:53:29 +0000
commit1bdd9ddbfdd021284201bd0a1f5da41be3dc9578 (patch)
tree00a8769924e32d6afbd9f67ab7d939ef36f55b15 /src/mainwindow.h
parent96205403612c73f4c4a3247d7d96560d3d8f92e8 (diff)
Added ui menus, added solve() method.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 19d45c8..9eb16ea 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -6,6 +6,9 @@
#include <QMainWindow>
class SudokuWidget;
+class QAction;
+class QMenu;
+class SolverWindow;
class MainWindow : public QMainWindow
{
@@ -13,6 +16,29 @@ class MainWindow : public QMainWindow
public:
MainWindow();
+
+private:
+ void initActions();
+
+ void initMenus();
+
+ 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_quit;
+
+ // Move menu actions
+ QAction *action_hint;
+ QAction *action_step;
+ QAction *action_solve;
+
};
-#endif // __INCLUDED_SUDOKUSOLVER_MAINWINDOW__ \ No newline at end of file
+#endif // __INCLUDED_SUDOKUSOLVER_MAINWINDOW__
+