-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscatterplotdialog.h
More file actions
51 lines (37 loc) · 1.03 KB
/
Copy pathscatterplotdialog.h
File metadata and controls
51 lines (37 loc) · 1.03 KB
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
#ifndef SCATTERPLOTDIALOG_H
#define SCATTERPLOTDIALOG_H
#include <QDialog>
#include <QtCharts/QChart>
#include "datalog/datalog.h"
#include <vector>
namespace Ui {
class ScatterPlotDialog;
}
class ScatterPlotDialog : public QDialog
{
Q_OBJECT
public:
explicit ScatterPlotDialog(QWidget *parent = 0);
~ScatterPlotDialog();
void AddTestSite(const std::vector<TestSite*>& site_list);
private:
void ClearPlotData();
void SetItemLabels();
private slots:
void on_PlotButton_clicked();
void on_SaveChartButton_clicked();
void on_ExitButton_clicked();
void on_comboBox_SiteName_currentIndexChanged(int index);
void on_comboBox_XItemLable_currentIndexChanged(int index);
void on_comboBox_YItemLabel_currentIndexChanged(int index);
private:
Ui::ScatterPlotDialog *ui;
std::vector<TestSite*> mSiteList;
TestSite* mCurrentSite;
TestItem* mCurrentXItem;
TestItem* mCurrentYItem;
bool chart_is_ok;
bool site_is_exist;
QtCharts::QChart* mChart;
};
#endif // SCATTERPLOTDIALOG_H