aboutsummaryrefslogtreecommitdiff
path: root/qt-widgets/solvercfgwidget.h
blob: b6494c865f65a3431b186745c63c84815efe42ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef SOLVERCFGWIDGET_H
#define SOLVERCFGWIDGET_H

#include "adapter.h"

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QString>
#include <QIntValidator>

QT_BEGIN_NAMESPACE
namespace Ui {
class SolverCfgWidget;
}
QT_END_NAMESPACE

class SolverCfgWidget : public QWidget
{
	Q_OBJECT

public:
	SolverCfgWidget(QWidget *parent);
	~SolverCfgWidget();

	void lockSubmit();
	void unlockSubmit();

signals:
	void solveRequest(const SolverConfiguration&);

private slots:
	void onScrambleChanged(const QString&);
	void onScrambleSubmitted();

private:
	bool submitLocked;
	QIntValidator *nmovesValidator;

	Ui::SolverCfgWidget *ui;
};

#endif

Generated with cgit - Back to sebastiano.tronto.net