##// END OF EJS Templates
added _p to private class headers
added _p to private class headers

File last commit:

r360:6630f89603b4
r381:8ab9ba5c10bd
Show More
chartdataset_p.h
60 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
Rename QChartSeries to QSeries
r360 #include "qseries.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
Rename QChartSeries to QSeries
r360 void addSeries(QSeries* series,QChartAxis *axisY = 0);
void removeSeries(QSeries* series);
Michal Klocek
Adds RemoveAllSeries method to API
r258 void removeAllSeries();
Michal Klocek
Refactors axis handling...
r223 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;}
Michal Klocek
Adds animation settings handling
r298 void setDomain(int index);
Michal Klocek
Refactors axis handling...
r223
QChartAxis* axisX() const { return m_axisX;};
Michal Klocek
Rename QChartSeries to QSeries
r360 QChartAxis* axisY(QSeries* series = 0) const;
Michal Klocek
Refactors qchart , adds line animation...
r131
signals:
Michal Klocek
Rename QChartSeries to QSeries
r360 void seriesAdded(QSeries* series);
void seriesRemoved(QSeries* series);
Michal Klocek
Refactors axis handling...
r223 void axisAdded(QChartAxis* axis);
void axisRemoved(QChartAxis* axis);
void axisLabelsChanged(QChartAxis* axis, const QStringList& labels);
Michal Klocek
Rename QChartSeries to QSeries
r360 void seriesDomainChanged(QSeries* series,const Domain& domain);
Michal Klocek
Refactors axis handling...
r223
private slots:
void handleMinChanged(qreal min);
void handleMaxChanged(qreal max);
void handleTickChanged(QChartAxis*);
private:
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;
Michal Klocek
Rename QChartSeries to QSeries
r360 QMultiMap<QChartAxis*, QSeries*> m_seriesMap;
Michal Klocek
Refactors axis handling...
r223 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_ */