-
Notifications
You must be signed in to change notification settings - Fork 1
/
AIOptionsWidget.h
45 lines (34 loc) · 935 Bytes
/
AIOptionsWidget.h
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
44
45
#ifndef AIOPTIONSWIDGET_H
#define AIOPTIONSWIDGET_H
#include <QWidget>
namespace Ui {
class AIOptionsWidget;
}
struct AIOptions
{
quint8 blackSearchDepth;
quint8 whiteSearchDepth;
};
class AIOptionsWidget : public QWidget
{
Q_OBJECT
public:
explicit AIOptionsWidget(QWidget *parent = 0);
~AIOptionsWidget();
void setBlackSearchDepth(quint8 depth);
void setWhiteSearchDepth(quint8 depth);
quint8 getBlackSearchDepth() const;
quint8 getWhiteSearchDepth() const;
signals:
void blackSearchDepthChanged(quint8 depth);
void whiteSearchDepthChanged(quint8 depth);
void AIOptionsChanged(AIOptions newOptions);
private slots:
void on_blackAIDepthSpinbox_valueChanged(int arg1);
void on_whiteAIDepthSpinbox_valueChanged(int arg1);
//void AIOptionsChanged(AIOptions newOptions);
private:
Ui::AIOptionsWidget *ui;
AIOptions options;
};
#endif // AIOPTIONSWIDGET_H