-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.h
50 lines (39 loc) · 1 KB
/
chart.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
#ifndef CHART_H
#define CHART_H
#include <QWidget>
#include <QLineSeries>
#include <QChart>
#include <QChartView>
#include <QList>
#include <QString>
#include <QCheckBox>
#include <QDebug>
using namespace QtCharts;
namespace Ui {
class Chart;
}
class Chart : public QWidget
{
Q_OBJECT
public:
explicit Chart(QWidget *parent = nullptr);
~Chart();
public slots:
void AddDataSeries(QString SeriesName, QLineSeries* Series);
void ShowSeriesCheckToggled();
bool GetCheckboxState(QString SeriesName);
void SetChartName(QString Name);
private slots:
void on_DeleteButton_released();
signals:
void Delete(Chart* ChartPointer);
private:
Ui::Chart *ui;
QChartView *ChartView = nullptr;
QChart *ChartPointer = nullptr;
QList<QLineSeries*> DataSeries;
QList<QString> DataSeriesLabels;
QList<QCheckBox*> DataSeriesCheckbox;
QList<bool> DataSeriesCheckState;
};
#endif // CHART_H