-
Notifications
You must be signed in to change notification settings - Fork 313
/
mainwindow.h
77 lines (66 loc) · 2.15 KB
/
mainwindow.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
71
72
73
74
75
76
77
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTextEdit>
#include <QPlainTextEdit>
#include "include/runtime/qsolverjob.h"
#include "qstextedit.h"
#include "strategyexplorer.h"
#include "rangeselector.h"
#include <QMessageBox>
#include "boardselector.h"
#include "settingeditor.h"
#include "include/ui/rangeselectortablemodel.h"
#include "include/ui/rangeselectortabledelegate.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
static QSTextEdit * s_textEdit;
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
Ui::MainWindow * getPriUi();
QSTextEdit * getLogArea();
QSTextEdit * get_logwindow();
private slots:
void on_buttomSolve_clicked();
void on_clearLogButtom_clicked();
void on_buildTreeButtom_clicked();
void on_actionjson_triggered();
void on_actionimport_triggered();
void import_from_file(QString from);
void on_actionexport_triggered();
void on_actionSettings_triggered();
void on_actionclear_all_triggered();
void on_ip_range(QString range_text);
void on_copyButtom_clicked();
void on_showResultButton_clicked();
void on_stopSolvingButton_clicked();
void on_ipRangeSelectButtom_clicked();
void on_oopRangeSelectButtom_clicked();
void on_estimateMemoryButtom_clicked();
void on_selectBoardButton_clicked();
void on_openParametersFolderButton_clicked();
void item_clicked(const QModelIndex&);
void on_exportCurrentParameterButton_clicked();
void on_ipRangeText_textChanged();
void on_oopRangeText_textChanged();
void onExpanded(const QModelIndex& index);
private:
void clear_all_params();
Ui::MainWindow *ui = NULL;
QSolverJob* qSolverJob = NULL;
QFileSystemModel * qFileSystemModel = NULL;
StrategyExplorer* strategyExplorer = NULL;
RangeSelector* rangeSelector = NULL;
boardselector* boardSelector = NULL;
SettingEditor* settingEditor = NULL;
RangeSelectorTableDelegate * ip_delegate;
RangeSelectorTableDelegate * oop_delegate;
RangeSelectorTableModel * ip_model;
RangeSelectorTableModel * oop_model;
};
#endif // MAINWINDOW_H