declarativexyseries.h
54 lines
| 1.5 KiB
| text/x-c
|
CLexer
|
r830 | /**************************************************************************** | ||
** | ||||
|
r2433 | ** Copyright (C) 2013 Digia Plc | ||
|
r830 | ** 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$ | ||||
** | ||||
****************************************************************************/ | ||||
|
r732 | #ifndef DECLARATIVE_XY_SERIES_H | ||
#define DECLARATIVE_XY_SERIES_H | ||||
|
r1401 | #include <QXYSeries> | ||
|
r732 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QChart; | ||||
|
r988 | class QAbstractSeries; | ||
|
r732 | |||
|
r1117 | class DeclarativeXySeries | ||
|
r732 | { | ||
public: | ||||
|
r789 | explicit DeclarativeXySeries(); | ||
|
r732 | ~DeclarativeXySeries(); | ||
public: | ||||
|
r1278 | void classBegin(); | ||
void componentComplete(); | ||||
|
r1401 | virtual QXYSeries *xySeries() = 0; | ||
|
r1521 | |||
void append(qreal x, qreal y); | ||||
void replace(qreal oldX, qreal oldY, qreal newX, qreal newY); | ||||
|
r2496 | void replace(int index, qreal newX, qreal newY); | ||
|
r1521 | void remove(qreal x, qreal y); | ||
|
r2496 | void remove(int index); | ||
|
r1521 | void insert(int index, qreal x, qreal y); | ||
void clear(); | ||||
QPointF at(int index); | ||||
|
r732 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // DECLARATIVE_XY_SERIES_H | ||||