diff options
author | Stijn Buys <ingar@osirion.org> | 2013-07-12 13:45:53 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-07-12 13:45:53 +0000 |
commit | 1ee4d49f99e7925b9ac19aadc944007bd4320389 (patch) | |
tree | 5491f9d071edb09f1991e942511392fff0faa53d /src/solverwindow.h | |
parent | a613c9476b4a6f2aa4c9eaf3a2f0dd131594f373 (diff) |
Removes sidebar buttons,
adds current filename to the window title,
adds a Move -> Guess option to the menu bar,
adds messageboxes to the Step, Guess and Validate actions.
Diffstat (limited to 'src/solverwindow.h')
-rw-r--r-- | src/solverwindow.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/solverwindow.h b/src/solverwindow.h index 17cb55c..4520c9e 100644 --- a/src/solverwindow.h +++ b/src/solverwindow.h @@ -14,23 +14,53 @@ class SolverWindow : public QWidget public: SolverWindow(); + + inline const QString & filename() + { + return solverwindow_filename; + } public slots: void load(); + void save(); void saveas(); void revert(); + + /** + * @brief try to find a solution by using the rules only + * */ void solve(); + + /** + * @brief try to find a solution by guessing where required + * */ void search(); + + /** + * @brief try to solve a single cell by using the rules only + * */ void step(); + void step_constraints(); - void step_coverage(); + void step_coverage(); + + /** + * @brief try to solve a single cell by guessing where required + * */ + void guess(); + void clear(); + void validate(); private: + void saveToFile(const QString & filename); + void loadFromFile(const QString & filename); + SudokuWidget *solverwindow_sudokuwidget; Sudoku solverwindow_revertstate; + QString solverwindow_filename; }; #endif // __INCLUDED_SUDOKUSOLVER_SOLVERWINDOW__
\ No newline at end of file |