##// END OF EJS Templates
Blocks auto test on win32
Blocks auto test on win32

File last commit:

r223:c82178b4ef05
r254:0045e32956f4
Show More
chartdataset_p.h
59 lines | 1.6 KiB | text/x-c | CLexer
/ src / chartdataset_p.h
Michal Klocek
Refactors axis handling...
r223 #ifndef CHARTDATASET_P_H_
#define CHARTDATASET_P_H_
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Refactors axis handling...
r223 #include "qchartseries.h"
Michal Klocek
Refactors qchart , adds line animation...
r131 #include "domain_p.h"
#include <QVector>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactors axis handling...
r223 class QChartAxis;
Michal Klocek
Refactors qchart , adds line animation...
r131 class ChartDataSet : public QObject
{
Q_OBJECT
public:
Michal Klocek
Refactors axis handling...
r223 ChartDataSet(QObject* parent=0);
Michal Klocek
Refactors qchart , adds line animation...
r131 virtual ~ChartDataSet();
Michal Klocek
Refactors axis handling...
r223 void addSeries(QChartSeries* series,QChartAxis *axisY = 0);
void removeSeries(QChartSeries* series);
void addDomain(const QRectF& rect, const QRectF& viewport);
Michal Klocek
Refactored for MVP...
r139 bool nextDomain();
bool previousDomain();
Michal Klocek
Refactors axis handling...
r223 void clearDomains(int toIndex =0);
const Domain domain(QChartAxis *axisY) const;
int domainIndex() const {return m_domainIndex;}
QChartAxis* axisX() const { return m_axisX;};
QChartAxis* axisY(QChartSeries* series = 0) const;
Michal Klocek
Refactors qchart , adds line animation...
r131
signals:
void seriesAdded(QChartSeries* series);
Michal Klocek
Refactors axis handling...
r223 void seriesRemoved(QChartSeries* series);
void axisAdded(QChartAxis* axis);
void axisRemoved(QChartAxis* axis);
void axisLabelsChanged(QChartAxis* axis, const QStringList& labels);
void seriesDomainChanged(QChartSeries* series,const Domain& domain);
private slots:
void handleMinChanged(qreal min);
void handleMaxChanged(qreal max);
void handleTickChanged(QChartAxis*);
private:
void setDomain(int index);
QStringList createLabels(QChartAxis* axis,qreal min, qreal max);
Michal Klocek
Refactors qchart , adds line animation...
r131
private:
Michal Klocek
Refactors axis handling...
r223 QMultiMap<QChartAxis*, Domain> m_domainMap;
QMultiMap<QChartAxis*, QChartSeries*> m_seriesMap;
QChartAxis* m_axisX;
QChartAxis* m_axisY;
Michal Klocek
Refactors qchart , adds line animation...
r131 int m_domainIndex;
Michal Klocek
Refactors axis handling...
r223 bool m_axisXInitialized;
Michal Klocek
Refactors qchart , adds line animation...
r131 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTENGINE_P_H_ */