##// END OF EJS Templates
Fixed area series handling in chartwidgettest
Fixed area series handling in chartwidgettest

File last commit:

r490:5facde66eb08
r517:ff848436837e
Show More
chartpresenter_p.h
82 lines | 1.8 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
Adds more axis handling...
r176 #include "qchartaxis.h"
Michal Klocek
Refactors qchart , adds line animation...
r131 #include <QRectF>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartItem;
Michal Klocek
Rename QChartSeries to QSeries
r360 class QSeries;
Michal Klocek
Refactors qchart , adds line animation...
r131 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:
Tero Ahola
Fixed drawing issues in Scatter
r375 enum ZValues {
BackgroundZValue = -1,
ShadesZValue,
GridZValue,
AxisZValue,
LineChartZValue,
Tero Ahola
Z order for pie
r490 ScatterSeriesZValue,
PieSeriesZValue
Tero Ahola
Fixed drawing issues in Scatter
r375 };
Michal Klocek
Adds ZOrder enum to presenter
r262
Michal Klocek
Refactors qchart , adds line animation...
r131 ChartPresenter(QChart* chart,ChartDataSet *dataset);
virtual ~ChartPresenter();
Michal Klocek
Refactored for MVP...
r139
void setMargin(int margin);
int margin() const;
Michal Klocek
Refactors axis handling...
r223 QRectF geometry() const;
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Adds missing ids to theme classes
r153 void setChartTheme(QChart::ChartTheme theme);
QChart::ChartTheme chartTheme();
Michal Klocek
Refactor themes...
r143
Michal Klocek
Adds animation settings handling
r298 void setAnimationOptions(QChart::AnimationOptions options);
QChart::AnimationOptions animationOptions() const;
Michal Klocek
Refactor domain model...
r439 void zoomIn();
void zoomIn(const QRectF& rect);
void zoomOut();
void zoomReset();
Michal Klocek
Refactors qchart , adds line animation...
r131 private:
Michal Klocek
Adds refactored axis to presenter
r140 void createConnections();
Michal Klocek
Refactors qchart , adds line animation...
r131
public slots:
Michal Klocek
Refactor domain model...
r439 void handleSeriesAdded(QSeries* series,Domain* domain);
Michal Klocek
Rename QChartSeries to QSeries
r360 void handleSeriesRemoved(QSeries* series);
Michal Klocek
Refactor domain model...
r439 void handleAxisAdded(QChartAxis* axis,Domain* domain);
Michal Klocek
Refactors axis handling...
r223 void handleAxisRemoved(QChartAxis* axis);
Michal Klocek
Refactors qchart , adds line animation...
r131 void handleGeometryChanged();
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Refactored for MVP...
r139 signals:
void geometryChanged(const QRectF& rect);
Michal Klocek
Refactor domain model...
r439
Michal Klocek
Refactors qchart , adds line animation...
r131 private:
QChart* m_chart;
ChartDataSet* m_dataset;
Michal Klocek
Refactor themes...
r143 ChartTheme *m_chartTheme;
Michal Klocek
Refactor domain model...
r439 int m_zoomIndex;
Michal Klocek
Refactored for MVP...
r139 int m_marginSize;
Michal Klocek
Refactor domain model...
r439 QMap<QSeries*,ChartItem*> m_chartItems;
QMap<QChartAxis*,AxisItem*> m_axisItems;
QVector<QRectF> m_zoomStack;
Michal Klocek
Refactors qchart , adds line animation...
r131 QRectF m_rect;
Michal Klocek
Adds animation settings handling
r298 QChart::AnimationOptions m_options;
Michal Klocek
Refactor themes...
r143
Michal Klocek
Refactors qchart , adds line animation...
r131 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTPRESENTER_H_ */