-
Notifications
You must be signed in to change notification settings - Fork 312
/
boardselector.h
46 lines (34 loc) · 1.08 KB
/
boardselector.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
46
#ifndef BOARDSELECTOR_H
#define BOARDSELECTOR_H
#include <QDialog>
#include "include/runtime/qsolverjob.h"
#include <QTextEdit>
#include <QWidget>
#include <QStringList>
#include "include/ui/boardselectortablemodel.h"
#include "include/ui/boardselectortabledelegate.h"
namespace Ui {
class boardselector;
}
class boardselector : public QDialog
{
Q_OBJECT
public:
explicit boardselector(QTextEdit* boardEdit,QSolverJob::Mode mode = QSolverJob::Mode::HOLDEM,QWidget *parent = 0);
~boardselector();
private slots:
void on_boardSelectorTable_clicked(const QModelIndex &index);
void on_boardEdit_textEdited(const QString &arg1);
void on_boardEdit_textChanged(const QString &arg1);
void on_confirmButton_clicked();
void on_cancelButton_clicked();
void on_clearBoardButton_clicked();
private:
Ui::boardselector *ui;
QTextEdit* boardEdit = NULL;
QSolverJob::Mode mode;
QStringList rank_list;
BoardSelectorTableModel * boardSelectorTableModel = NULL;
BoardSelectorTableDelegate * boardSelectorTableDelegate = NULL;
};
#endif // BOARDSELECTOR_H