##// END OF EJS Templates
Added few properties to QAbstractAxis. Some are still missing. Its needs to be decided how the Brush and Pen should be supported
Added few properties to QAbstractAxis. Some are still missing. Its needs to be decided how the Brush and Pen should be supported

File last commit:

r2104:f8a933676fbd
r2203:edb022f7374a
Show More
xychart_p.h
106 lines | 2.9 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$
**
****************************************************************************/
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
// This file is not part of the QtCommercial Chart API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Jani Honkonen
Fix Krazy issues
r1935 #ifndef XYCHART_H
#define XYCHART_H
Michal Klocek
Add missing files from previous commit
r466
#include "qchartglobal.h"
#include "chartitem_p.h"
Michal Klocek
Refactors animation handling for xyseries
r1217 #include "xyanimation_p.h"
Marek Rosa
renamed QValueAxis related files
r1805 #include "qvalueaxis.h"
Michal Klocek
Add missing files from previous commit
r466 #include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartPresenter;
class QXYSeries;
Michal Klocek
Refactors Chart to ChartElement
r1736 class XYChart : public ChartElement
Michal Klocek
Add missing files from previous commit
r466 {
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 Q_OBJECT
Michal Klocek
Add missing files from previous commit
r466 public:
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 explicit XYChart(QXYSeries *series, ChartPresenter *presenter);
Tero Ahola
Minor: extra colons, commented out code
r1782 ~XYChart() {}
Michal Klocek
Add missing files from previous commit
r466
Michal Klocek
Refactors axis animation, line animations
r1241 void setGeometryPoints(const QVector<QPointF>& points);
Michal Klocek
Refactors animation handling for xyseries
r1217 QVector<QPointF> geometryPoints() const { return m_points; }
Michal Klocek
Add missing files from previous commit
r466
Michal Klocek
Refactors animation handling for xyseries
r1217 void setClipRect(const QRectF &rect);
QRectF clipRect() const { return m_clipRect; }
Michal Klocek
Refactor xychartitem -> xychart
r1218 QSizeF size() const { return m_size; }
QPointF origin() const { return m_origin; }
Jani Honkonen
more coding style fixes for src-folder...
r2104 void setAnimation(XYAnimation *animation);
ChartAnimation *animation() const { return m_animation; }
Michal Klocek
Refactor xychartitem -> xychart
r1218 virtual void updateGeometry() = 0;
Michal Klocek
Refactors chartitem...
r677
Michal Klocek
Refactors axis animation, line animations
r1241 bool isDirty() const { return m_dirty; }
void setDirty(bool dirty);
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);
Tero Ahola
Added a new QXYSeries::replace override for performance reasons....
r1783 void handlePointsReplaced();
Michal Klocek
Refactors Domain and Axis...
r1698 void handleDomainUpdated();
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:
Jani Honkonen
more coding style fixes for src-folder...
r2104 void clicked(const QPointF &point);
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571
Michal Klocek
Add missing files from previous commit
r466 protected:
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 virtual void updateChart(QVector<QPointF> &oldPoints, QVector<QPointF> &newPoints, int index = -1);
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;
private:
inline bool isEmpty();
Tero Ahola
Minor: extra colons, commented out code
r1782 protected:
Michal Klocek
Add missing files from previous commit
r466 qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
Jani Honkonen
more coding style fixes for src-folder...
r2104 QXYSeries *m_series;
Michal Klocek
Add missing files from previous commit
r466 QSizeF m_size;
Michal Klocek
Refactor xychartitem -> xychart
r1218 QPointF m_origin;
Michal Klocek
Add missing files from previous commit
r466 QRectF m_clipRect;
QVector<QPointF> m_points;
Jani Honkonen
more coding style fixes for src-folder...
r2104 XYAnimation *m_animation;
Michal Klocek
Refactors axis animation, line animations
r1241 bool m_dirty;
Michal Klocek
Add missing files from previous commit
r466
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 friend class AreaChartItem;
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif