##// END OF EJS Templates
barchart animation mechanics working. still some todo
barchart animation mechanics working. still some todo

File last commit:

r680:86b5fb2a7994
r681:223051b363f0
Show More
chart_p.h
35 lines | 798 B | text/x-c | CLexer
Michal Klocek
Add missing files from previous commit
r680 #ifndef CHART_H_
#define CHART_H_
#include "qchartglobal.h"
#include <QObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartAnimator;
class ChartPresenter;
class Chart: public QObject
{
Q_OBJECT
public:
explicit Chart(ChartPresenter *presenter);
public slots:
virtual void handleGeometryChanged(const QRectF& rect);
virtual void handleDomainChanged(qreal minX,qreal maxX,qreal minY,qreal maxY);
virtual void rangeXChanged(qreal min, qreal max, int tickXCount);
virtual void rangeYChanged(qreal min, qreal max, int tickYCount);
void setAnimator(ChartAnimator* animator);
ChartAnimator* animator() const;
ChartPresenter* presenter() const;
private:
ChartAnimator* m_animator;
ChartPresenter* m_presenter;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif