chartitem_p.h
33 lines
| 706 B
| text/x-c
|
CLexer
/ src / chartitem_p.h
Tero Ahola
|
r104 | #ifndef CHARTITEM_H_ | ||
#define CHARTITEM_H_ | ||||
Michal Klocek
|
r131 | #include "domain_p.h" | ||
Tero Ahola
|
r104 | #include <QGraphicsItem> | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Tero Ahola
|
r108 | |||
Michal Klocek
|
r530 | class ChartAnimator; | ||
Michal Klocek
|
r131 | |||
Tero Ahola
|
r108 | class ChartItem : public QGraphicsItem | ||
Tero Ahola
|
r104 | { | ||
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM}; | ||||
public: | ||||
Michal Klocek
|
r530 | ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent), | ||
m_animator(0){}; | ||||
Michal Klocek
|
r223 | //TODO make pure | ||
virtual void handleGeometryChanged(const QRectF&){}; | ||||
Michal Klocek
|
r531 | virtual void handleDomainChanged(qreal,qreal,qreal,qreal){}; | ||
Michal Klocek
|
r530 | |||
void setAnimator(ChartAnimator* animator){ | ||||
m_animator=animator; | ||||
} | ||||
Tero Ahola
|
r104 | virtual ~ChartItem(){}; | ||
Michal Klocek
|
r530 | |||
protected: | ||||
ChartAnimator* m_animator; | ||||
Tero Ahola
|
r104 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif /* CHARTITEM_H_ */ | ||||