chartdataset_p.h
36 lines
| 745 B
| text/x-c
|
CLexer
/ src / chartdataset_p.h
Michal Klocek
|
r131 | #ifndef CHARTENGINE_P_H_ | ||
#define CHARTENGINE_P_H_ | ||||
#include <qchartseries.h> | ||||
#include "domain_p.h" | ||||
#include <QVector> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class ChartDataSet : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
ChartDataSet(QObject* parent =0); | ||||
virtual ~ChartDataSet(); | ||||
void addSeries(QChartSeries* series); | ||||
Michal Klocek
|
r139 | void addDomain(const Domain& domain); | ||
bool nextDomain(); | ||||
bool previousDomain(); | ||||
void clearDomains(); | ||||
Michal Klocek
|
r131 | const Domain& domain() const; | ||
signals: | ||||
void seriesAdded(QChartSeries* series); | ||||
Michal Klocek
|
r139 | void domainChanged(const Domain& domain); | ||
Michal Klocek
|
r131 | |||
private: | ||||
QList<QChartSeries*> m_chartSeries; | ||||
QVector<Domain> m_domains; | ||||
int m_domainIndex; | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif /* CHARTENGINE_P_H_ */ | ||||