##// END OF EJS Templates
Remove PlotDomain , use Domain insted...
Remove PlotDomain , use Domain insted * clean old setSize SetPlotDomain iterface * remove all PlotDomain references

File last commit:

r143:a0c24bcedc00
r149:23a271e217e1
Show More
chartpresenter_p.h
72 lines | 1.5 KiB | text/x-c | CLexer
/ src / chartpresenter_p.h
Michal Klocek
Refactors qchart , adds line animation...
r131 #ifndef CHARTPRESENTER_H_
#define CHARTPRESENTER_H_
#include "qchartglobal.h"
Michal Klocek
Refactor themes...
r143 #include "qchart.h" //becouse of QChart::ChartThemeId //TODO
Michal Klocek
Refactors qchart , adds line animation...
r131 #include <QRectF>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartItem;
class QChartSeries;
class ChartDataSet;
Michal Klocek
Refactor themes...
r143 //class QChart;
Michal Klocek
Refactors qchart , adds line animation...
r131 class Domain;
Michal Klocek
Adds refactored axis to presenter
r140 class AxisItem;
Michal Klocek
Refactor themes...
r143 class ChartTheme;
Michal Klocek
Refactors qchart , adds line animation...
r131
class ChartPresenter: public QObject
{
Q_OBJECT
public:
ChartPresenter(QChart* chart,ChartDataSet *dataset);
virtual ~ChartPresenter();
Michal Klocek
Refactored for MVP...
r139 /*
void setAxisX(const QChartAxis& axis);
void setAxisY(const QChartAxis& axis);
void setAxisY(const QList<QChartAxis>& axis);
*/
void setMargin(int margin);
int margin() const;
void zoomInToRect(const QRectF& rectangle);
void zoomIn();
void zoomOut();
void zoomReset();
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Refactor themes...
r143 void setTheme(QChart::ChartThemeId theme);
QChart::ChartThemeId theme();
Michal Klocek
Refactors qchart , adds line animation...
r131 private:
Michal Klocek
Adds refactored axis to presenter
r140 void createConnections();
void createDeafultAxis();
Michal Klocek
Refactors qchart , adds line animation...
r131
public slots:
void handleSeriesAdded(QChartSeries* series);
void handleSeriesRemoved(QChartSeries* series){};
void handleSeriesChanged(QChartSeries* series);
//void handleDomainChanged(Domain oldDomain,Domain newDomain);
void handleGeometryChanged();
Michal Klocek
Refactored for MVP...
r139 signals:
void geometryChanged(const QRectF& rect);
Michal Klocek
Refactors qchart , adds line animation...
r131
private:
QMap<QChartSeries*,ChartItem*> m_chartItems;
QChart* m_chart;
ChartDataSet* m_dataset;
Michal Klocek
Refactored for MVP...
r139 QVector<Domain> m_domains;
Michal Klocek
Adds refactored axis to presenter
r140 QList<AxisItem*> m_axis;
Michal Klocek
Refactor themes...
r143 ChartTheme *m_chartTheme;
Michal Klocek
Refactored for MVP...
r139 int m_domainIndex;
int m_marginSize;
Michal Klocek
Refactors qchart , adds line animation...
r131 QRectF m_rect;
Michal Klocek
Refactor themes...
r143
Michal Klocek
Refactors qchart , adds line animation...
r131 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTPRESENTER_H_ */