##// END OF EJS Templates
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing

File last commit:

r794:4c76de65bbac
r1050:9c2134399082
Show More
xychartitem_p.h
85 lines | 2.3 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
Michal Klocek
Add missing files from previous commit
r466 #ifndef XYCHARTITEM_H
#define XYCHARTITEM_H
#include "qchartglobal.h"
#include "chartitem_p.h"
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartPresenter;
class QXYSeries;
Michal Klocek
Refactors chartitem...
r677 class XYChartItem : public ChartItem
Michal Klocek
Add missing files from previous commit
r466 {
Q_OBJECT
public:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 explicit XYChartItem(QXYSeries *series, ChartPresenter *presenter);
~XYChartItem(){};
Michal Klocek
Add missing files from previous commit
r466
QVector<QPointF> points() const {return m_points;}
QRectF clipRect() const { return m_clipRect;}
Michal Klocek
Refactors chartitem...
r677
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Add missing files from previous commit
r466 void handlePointAdded(int index);
void handlePointRemoved(int index);
void handlePointReplaced(int index);
void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void handleGeometryChanged(const QRectF &size);
Michal Klocek
Add missing files from previous commit
r466
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 void clicked(const QPointF& point);
Michal Klocek
Add missing files from previous commit
r466 protected:
Michal Klocek
Refactors chartitem...
r677
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 virtual void setLayout(QVector<QPointF> &points);
virtual void updateLayout(QVector<QPointF> &oldPoints,QVector<QPointF> &newPoints,int index = 0);
Michal Klocek
Refactors chartitem...
r677
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 QPointF calculateGeometryPoint(const QPointF &point) const;
Michal Klocek
Add missing files from previous commit
r466 QPointF calculateGeometryPoint(int index) const;
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 QPointF calculateDomainPoint(const QPointF &point) const;
Michal Klocek
Add missing files from previous commit
r466 QVector<QPointF> calculateGeometryPoints() const;
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void mousePressEvent(QGraphicsSceneMouseEvent *event);
Michal Klocek
Add missing files from previous commit
r466
private:
inline bool isEmpty();
private:
qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
QXYSeries* m_series;
QSizeF m_size;
QRectF m_clipRect;
QVector<QPointF> m_points;
Michal Klocek
Animation refactor...
r530 friend class XYAnimation;
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 friend class AreaChartItem;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif