-
Notifications
You must be signed in to change notification settings - Fork 312
/
strategyexplorer.h
70 lines (63 loc) · 2.19 KB
/
strategyexplorer.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
62
63
64
65
66
67
68
69
70
#ifndef STRATEGYEXPLORER_H
#define STRATEGYEXPLORER_H
#include <QDialog>
#include <QTimer>
#include <QMouseEvent>
#include <QEvent>
#include <QMouseEvent>
#include "include/runtime/qsolverjob.h"
#include "QItemSelection"
#include "include/ui/worditemdelegate.h"
#include "include/ui/tablestrategymodel.h"
#include "include/ui/strategyitemdelegate.h"
#include "include/ui/detailwindowsetting.h"
#include "include/Card.h"
#include "include/ui/detailviewermodel.h"
#include "include/ui/detailitemdelegate.h"
#include "include/ui/roughstrategyviewermodel.h"
#include "include/ui/roughstrategyitemdelegate.h"
#include "include/nodes/GameTreeNode.h"
#include "include/nodes/ActionNode.h"
#include "include/nodes/ChanceNode.h"
#include "include/nodes/TerminalNode.h"
#include "include/nodes/ShowdownNode.h"
namespace Ui {
class StrategyExplorer;
}
class StrategyExplorer : public QDialog
{
Q_OBJECT
public:
explicit StrategyExplorer(QWidget *parent = 0,QSolverJob * qSolverJob=nullptr);
~StrategyExplorer();
private:
DetailWindowSetting detailWindowSetting;
QTimer *timer;
Ui::StrategyExplorer *ui;
QSolverJob * qSolverJob;
StrategyItemDelegate * delegate_strategy;
TableStrategyModel * tableStrategyModel;
DetailViewerModel * detailViewerModel;
DetailItemDelegate * detailItemItemDelegate;
RoughStrategyViewerModel * roughStrategyViewerModel;
RoughStrategyItemDelegate * roughStrategyItemDelegate;
vector<Card> cards;
void process_treeclick(TreeItem* treeitem);
void process_board(TreeItem* treeitem);
public slots:
void item_expanded(const QModelIndex& index);
void item_clicked(const QModelIndex& index);
void selection_changed(const QItemSelection &selected,
const QItemSelection &deselected);
private slots:
void on_turnCardBox_currentIndexChanged(int index);
void on_riverCardBox_currentIndexChanged(int index);
void update_second();
void onMouseMoveEvent(int i,int j);
void on_strategyModeButtom_clicked();
void on_ipRangeButtom_clicked();
void on_oopRangeButtom_clicked();
void on_evModeButtom_clicked();
void on_evOnlyModeButtom_clicked();
};
#endif // STRATEGYEXPLORER_H