forked from bupticybee/TexasSolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rangeselector.h
61 lines (56 loc) · 1.74 KB
/
rangeselector.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef RANGESELECTOR_H
#define RANGESELECTOR_H
#include <QDialog>
#include <QString>
#include <QStringList>
#include "include/nodes/GameTreeNode.h"
#include "include/runtime/qsolverjob.h"
#include "include/ui/rangeselectortablemodel.h"
#include "include/ui/rangeselectortabledelegate.h"
#include <QModelIndex>
#include <QTimer>
#include <QFileDialog>
#include <QMessageBox>
#include <QFileSystemModel>
#include <QDesktopServices>
namespace Ui {
class RangeSelector;
}
class RangeSelector : public QDialog
{
Q_OBJECT
public:
explicit RangeSelector(QTextEdit* rangeEdit,QWidget *parent = 0,PokerMode mode = PokerMode::HOLDEM);
~RangeSelector();
signals:
void confirm_text(QString content);
private:
int max_val = 1000;
float range_num = 1;
PokerMode mode;
Ui::RangeSelector *ui;
QStringList rank_list;
RangeSelectorTableModel * rangeSelectorTableModel = NULL;
RangeSelectorTableDelegate * rangeSelectorTableDelegate = NULL;
QTextEdit* rangeEdit = NULL;
QTimer * timer;
QFileSystemModel * qFileSystemModel;
void import_range(QString fileName);
private slots:
void on_confirmButtom_clicked();
void on_rangeNumberSlider_valueChanged(int value);
void grid_pressed(int i,int j);
void grid_area(int i1,int j1,int i2,int j2);
void grid_release(int i,int j);
void item_clicked(const QModelIndex&);
void update_second();
void on_rangeNumberEdit_textEdited(const QString &arg1);
void on_clearRangeButtom_clicked();
void on_textEdit_textChanged();
void on_exportRangeButton_clicked();
void on_cancelButton_clicked();
void on_importRangeButton_clicked();
void on_openRangeFolderButton_clicked();
void onExpanded(const QModelIndex& index);
};
#endif // RANGESELECTOR_H