qchart.h
45 lines
| 920 B
| text/x-c
|
CLexer
/ src / qchart.h
Michal Klocek
|
r12 | #ifndef CHART_H | ||
#define CHART_H | ||||
#include <qchartconfig.h> | ||||
#include <QGraphicsItem> | ||||
QCHART_BEGIN_NAMESPACE | ||||
Michal Klocek
|
r21 | class Axis; | ||
class XYGrid; | ||||
class QChartSeries; | ||||
Michal Klocek
|
r25 | class XYPlotDomain; | ||
Michal Klocek
|
r21 | |||
Michal Klocek
|
r12 | class QCHART_EXPORT QChart : public QGraphicsItem | ||
{ | ||||
public: | ||||
Michal Klocek
|
r21 | QChart(QGraphicsItem* parent = 0); | ||
Michal Klocek
|
r12 | virtual ~QChart(); | ||
Michal Klocek
|
r21 | //from QGraphicsItem | ||
virtual QRectF boundingRect() const; | ||||
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){}; | ||||
void addSeries(QChartSeries* series); | ||||
Michal Klocek
|
r12 | |||
Michal Klocek
|
r21 | virtual void setSize(const QSizeF& rect); | ||
Michal Klocek
|
r12 | void setMargin(int margin); | ||
int margin() const { return m_marginSize;} | ||||
private: | ||||
Michal Klocek
|
r21 | QRect m_rect; | ||
QList<const QChartSeries*> m_series; | ||||
Axis* m_axisX; | ||||
Axis* m_axisY; | ||||
XYGrid* m_grid; | ||||
Michal Klocek
|
r25 | QList<XYPlotDomain*> m_plotDataList; | ||
Michal Klocek
|
r21 | QList<QGraphicsItem*> m_items; | ||
int m_plotDataIndex; | ||||
Michal Klocek
|
r12 | int m_marginSize; | ||
}; | ||||
QCHART_END_NAMESPACE | ||||
#endif | ||||