##// END OF EJS Templates
Add demos to docs
Add demos to docs

File last commit:

r900:4e59f6549e80
r921:d7675a9f645d
Show More
qxyseries.h
104 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$
**
****************************************************************************/
Michal Klocek
Add missing files from previous commit
r466 #ifndef QXYSERIES_H_
#define QXYSERIES_H_
Jani Honkonen
Change includes in public headers from #include "xxx" -> #include <xxx>
r697 #include <qchartglobal.h>
#include <qseries.h>
Michal Klocek
Add missing files from previous commit
r466 #include <QPen>
#include <QBrush>
Marek Rosa
BarSeries - renamed internal model getter to modelInternal. Some smaller changes to other files to have in headers forward declarations for model related members instead of include
r877 class QModelIndex;
Michal Klocek
Add missing files from previous commit
r466 QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QXYSeries : public QSeries
{
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 Q_OBJECT
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 protected:
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 QXYSeries(QObject *parent = 0);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 virtual ~QXYSeries();
Michal Klocek
Add missing files from previous commit
r466
public:
Jani Honkonen
rename functions add() -> append()
r796 void append(qreal x, qreal y);
void append(const QPointF &point);
void append(const QList<QPointF> points);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void replace(qreal x,qreal y);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void replace(const QPointF &point);
Michal Klocek
Improves spline interpolation...
r622 void remove(qreal x);
Michal Klocek
Adds missing scatter intercation implementation...
r541 void remove(qreal x, qreal y);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void remove(const QPointF &point);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void removeAll();
int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
QList<QPointF> data();
QXYSeries& operator << (const QPointF &point);
QXYSeries& operator << (const QList<QPointF> points);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void setPen(const QPen &pen);
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QPen pen() const {return m_pen;}
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 void setBrush(const QBrush &brush);
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 QBrush brush() const {return m_brush;}
Michal Klocek
Spline series windows compilation fix
r467
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 bool setModel(QAbstractItemModel *model);
Marek Rosa
Table model data example
r519
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical);
Marek Rosa
Fixed: qareaseries - commented out code (model stuff.. this will be implemented, right?). Also some commented out code removed from SplineSeries
r863 virtual void setModelMappingRange(int first, int count = 0);
Marek Rosa
XYSeries model with limits working.
r833 int mapFirst() const { return m_mapFirst; }
Marek Rosa
Added documentation for model related funtions
r900 int mapCount() const { return m_mapCount; }
Marek Rosa
Table model data example
r519
sauimone
Q_SIGNALS and Q_SLOTS
r775 private Q_SLOTS:
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 void modelUpdated(QModelIndex topLeft, QModelIndex bottomRight);
void modelDataAboutToBeAdded(QModelIndex parent, int start, int end);
void modelDataAdded(QModelIndex parent, int start, int end);
void modelDataAboutToBeRemoved(QModelIndex parent, int start, int end);
void modelDataRemoved(QModelIndex parent, int start, int end);
Marek Rosa
Table model data example
r519
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void clicked(const QPointF &point);
Michal Klocek
Refactor qledgend handling...
r855 void selected();
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 void updated();
void pointReplaced(int index);
void pointRemoved(int index);
void pointAdded(int index);
Michal Klocek
Add missing files from previous commit
r466
protected:
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QVector<qreal> m_x;
QVector<qreal> m_y;
Marek Rosa
Table model data example
r519
Tero Ahola
Added data getter for XY series; example for customizing the looks
r491 QPen m_pen;
QBrush m_brush;
Marek Rosa
Table model data example
r519
Michal Klocek
Refactor qledgend handling...
r855 int m_mapX;
Marek Rosa
Table model data example
r519 int m_mapY;
Marek Rosa
XYSeries: added support for limited mapping area
r734 int m_mapFirst;
int m_mapCount;
bool m_mapLimited;
Qt::Orientation m_mapOrientation;
int tempItemsRemoved;
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif