forked from palindromiq/YATE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysiswindow.h
54 lines (41 loc) · 1.03 KB
/
analysiswindow.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
#ifndef ANALYSISWINDOW_H
#define ANALYSISWINDOW_H
#include <QMainWindow>
#include <QImage>
#include <QAtomicInt>
namespace Ui {
class AnalysisWindow;
}
namespace Yate {
class AnalysisViewModel;
class HuntInfo;
class AnalysisWindow : public QMainWindow
{
Q_OBJECT
public:
explicit AnalysisWindow(QWidget *parent = nullptr);
~AnalysisWindow();
HuntInfo *hunt() const;
void setHunt(HuntInfo *newHunt);
HuntInfo *createDummyHunt();
private slots:
void on_btnClose_clicked();
void on_treAnalysisView_clicked(const QModelIndex &index);
void highlightNight(int night);
void unhighlightNight();
void on_btnExport_clicked();
void exportFinished(bool);
void generateFinished(QImage);
void on_btnExportTimeline_clicked();
void on_btnCopyTimeline_clicked();
void on_btnCopyImg_clicked();
private:
Ui::AnalysisWindow *ui;
AnalysisViewModel *model_;
HuntInfo *hunt_;
int selectedNight_;
QAtomicInt isGenerating_;
QString savePath_;
};
}
#endif // ANALYSISWINDOW_H