summaryrefslogtreecommitdiff
path: root/src/solverwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solverwindow.h')
-rw-r--r--src/solverwindow.h32
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