##// END OF EJS Templates
fixed naming mixup with percent and stacked groups
fixed naming mixup with percent and stacked groups

File last commit:

r104:192e41096b68
r105:37fe9cea6214
Show More
xylinechartitem_p.h
44 lines | 976 B | text/x-c | CLexer
Michal Klocek
Refactor current draft to fit int current design specs...
r21 #ifndef XYLINECHARTITEM_H
#define XYLINECHARTITEM_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include "chartitem_p.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include "charttheme_p.h"
#include <QGraphicsItem>
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
class QXYChartSeries;
Tero Ahola
Refactoring continued: restored ChartItem class
r104 class XYLineChartItem : public ChartItem
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
public:
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0);
Michal Klocek
Add zoom support...
r67 ~ XYLineChartItem(){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
//from QGraphicsItem
Michal Klocek
Add zoom support...
r67 QRectF boundingRect() const;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){};
// virtual QPainterPath shape() const;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103
Tero Ahola
Refactoring continued: restored ChartItem class
r104 public: // from ChartObjectInterface
void setSize(const QSize &size);
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 void setTheme(ChartTheme *theme);
Michal Klocek
Add zoom support...
r67 void setPlotDomain(const PlotDomain& data);
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Add zoom support...
r67 private:
void updateGeometry();
Michal Klocek
Refactor current draft to fit int current design specs...
r21
private:
Michal Klocek
Add zoom support...
r67 QRect m_rect;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 QPolygonF m_polyline;
QXYChartSeries* m_series;
Michal Klocek
Add zoom support...
r67 PlotDomain m_plotDomain;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QGraphicsPathItem *m_pathItem;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 SeriesTheme m_theme;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
#endif