##// END OF EJS Templates
Rename axisLabelsChanged to axisRangeChanged
Rename axisLabelsChanged to axisRangeChanged

File last commit:

r392:938f3d3eaf7c
r399:91816cf9fc5c
Show More
linechartitem_p.h
61 lines | 1.6 KiB | text/x-c | CLexer
Michal Klocek
Fix naming convention for lineseries...
r144 #ifndef LINECHARTITEM_H
#define LINECHARTITEM_H
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include "chartitem_p.h"
Michal Klocek
Refactored for MVP...
r139 #include <QPen>
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
Michal Klocek
Refactors qchart , adds line animation...
r131 class ChartPresenter;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QLineSeries;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Fix naming convention for lineseries...
r144 class LineChartItem : public QObject , public ChartItem
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Michal Klocek
Refactors qchart , adds line animation...
r131 Q_OBJECT
Michal Klocek
Refactor current draft to fit int current design specs...
r21 public:
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 LineChartItem(ChartPresenter* presenter, QLineSeries* series,QGraphicsItem *parent = 0);
Michal Klocek
Fix naming convention for lineseries...
r144 ~ LineChartItem(){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
//from QGraphicsItem
Michal Klocek
Add zoom support...
r67 QRectF boundingRect() const;
Tero Ahola
One more alternative for changing themes
r108 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
Michal Klocek
Refactors qchart , adds line animation...
r131 QPainterPath shape() const;
Michal Klocek
Refactored for MVP...
r139
void setPen(const QPen& pen);
Michal Klocek
Rewrite animation hadnling in line series...
r389 void setPointsVisible(bool visible);
public slots:
void handlePointAdded(int index);
void handlePointRemoved(int index);
void handlePointReplaced(int index);
Michal Klocek
Adds updated handling for line series
r392 void handleUpdated();
Michal Klocek
Rewrite animation hadnling in line series...
r389 void handleDomainChanged(const Domain& domain);
void handleGeometryChanged(const QRectF& size);
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 public:
virtual void updateItem(QVector<QPointF>& oldPoints,QVector<QPointF>& newPoints);
virtual void updateItem(QVector<QPointF>& oldPoints,int index,QPointF& newPoint);
void applyGeometry(QVector<QPointF>& points);
void createPoints(int count);
void clearPoints(int count);
QPointF calculateGeometryPoint(int index) const;
QVector<QPointF> calculateGeometryPoints() const;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
private:
Michal Klocek
Refactors qchart , adds line animation...
r131 ChartPresenter* m_presenter;
QPainterPath m_path;
Michal Klocek
Adds updated handling for line series
r392 QLineSeries* m_series;
Michal Klocek
Refactors qchart , adds line animation...
r131 QSizeF m_size;
QRectF m_rect;
Michal Klocek
Adds cliping and proper zoom handling for line chart
r150 QRectF m_clipRect;
Michal Klocek
Refactors qchart , adds line animation...
r131 Domain m_domain;
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 QGraphicsItemGroup m_items;
Michal Klocek
Rewrite animation hadnling in line series...
r389 QVector<QPointF> m_points;
Michal Klocek
Refactored for MVP...
r139 QPen m_pen;
Michal Klocek
Refactors qchart , adds line animation...
r131
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