From 1ee4d49f99e7925b9ac19aadc944007bd4320389 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Jul 2013 13:45:53 +0000 Subject: 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. --- src/solverwindow.h | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/solverwindow.h') 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 -- cgit v1.2.3