diff options
Diffstat (limited to 'qt-widgets/solvercfgwidget.h')
| -rw-r--r-- | qt-widgets/solvercfgwidget.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/qt-widgets/solvercfgwidget.h b/qt-widgets/solvercfgwidget.h new file mode 100644 index 0000000..b6494c8 --- /dev/null +++ b/qt-widgets/solvercfgwidget.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | #ifndef SOLVERCFGWIDGET_H | ||
| 2 | #define SOLVERCFGWIDGET_H | ||
| 3 | |||
| 4 | #include "adapter.h" | ||
| 5 | |||
| 6 | #include <QWidget> | ||
| 7 | #include <QLineEdit> | ||
| 8 | #include <QPushButton> | ||
| 9 | #include <QString> | ||
| 10 | #include <QIntValidator> | ||
| 11 | |||
| 12 | QT_BEGIN_NAMESPACE | ||
| 13 | namespace Ui { | ||
| 14 | class SolverCfgWidget; | ||
| 15 | } | ||
| 16 | QT_END_NAMESPACE | ||
| 17 | |||
| 18 | class SolverCfgWidget : public QWidget | ||
| 19 | { | ||
| 20 | Q_OBJECT | ||
| 21 | |||
| 22 | public: | ||
| 23 | SolverCfgWidget(QWidget *parent); | ||
| 24 | ~SolverCfgWidget(); | ||
| 25 | |||
| 26 | void lockSubmit(); | ||
| 27 | void unlockSubmit(); | ||
| 28 | |||
| 29 | signals: | ||
| 30 | void solveRequest(const SolverConfiguration&); | ||
| 31 | |||
| 32 | private slots: | ||
| 33 | void onScrambleChanged(const QString&); | ||
| 34 | void onScrambleSubmitted(); | ||
| 35 | |||
| 36 | private: | ||
| 37 | bool submitLocked; | ||
| 38 | QIntValidator *nmovesValidator; | ||
| 39 | |||
| 40 | Ui::SolverCfgWidget *ui; | ||
| 41 | }; | ||
| 42 | |||
| 43 | #endif | ||
