qareaseries.h
84 lines
| 2.4 KiB
| text/x-c
|
CLexer
|
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$ | ||||
** | ||||
****************************************************************************/ | ||||
|
r969 | #ifndef QAREASERIES_H | ||
#define QAREASERIES_H | ||||
|
r421 | |||
|
r697 | #include <qchartglobal.h> | ||
|
r988 | #include <qabstractseries.h> | ||
|
r421 | #include <QPen> | ||
#include <QBrush> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QLineSeries; | ||||
|
r938 | class QAreaSeriesPrivate; | ||
|
r421 | |||
|
r988 | class QTCOMMERCIALCHART_EXPORT QAreaSeries : public QAbstractSeries | ||
|
r421 | { | ||
Q_OBJECT | ||||
|
r1498 | Q_PROPERTY(QLineSeries *upperSeries READ upperSeries) | ||
Q_PROPERTY(QLineSeries *lowerSeries READ lowerSeries) | ||||
|
r1481 | Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged) | ||
Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged) | ||||
|
r1308 | |||
|
r421 | public: | ||
|
r1202 | explicit QAreaSeries(QObject *parent = 0); | ||
|
r970 | explicit QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0); | ||
~QAreaSeries(); | ||||
|
r421 | |||
|
r938 | public: | ||
|
r1107 | QAbstractSeries::SeriesType type() const; | ||
|
r421 | |||
|
r2104 | void setUpperSeries(QLineSeries *series); | ||
QLineSeries *upperSeries() const; | ||||
void setLowerSeries(QLineSeries *series); | ||||
QLineSeries *lowerSeries() const; | ||||
|
r421 | |||
|
r743 | void setPen(const QPen &pen); | ||
|
r938 | QPen pen() const; | ||
|
r421 | |||
|
r743 | void setBrush(const QBrush &brush); | ||
|
r938 | QBrush brush() const; | ||
|
r421 | |||
|
r1481 | void setColor(const QColor &color); | ||
QColor color() const; | ||||
void setBorderColor(const QColor &color); | ||||
QColor borderColor() const; | ||||
|
r987 | void setPointsVisible(bool visible = true); | ||
|
r938 | bool pointsVisible() const; | ||
|
r775 | Q_SIGNALS: | ||
|
r743 | void clicked(const QPointF &point); | ||
|
r855 | void selected(); | ||
|
r1481 | void colorChanged(QColor color); | ||
void borderColorChanged(QColor color); | ||||
|
r421 | |||
private: | ||||
|
r1481 | Q_DECLARE_PRIVATE(QAreaSeries) | ||
Q_DISABLE_COPY(QAreaSeries) | ||||
|
r938 | friend class AreaLegendMarker; | ||
friend class AreaChartItem; | ||||
|
r421 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
|
r2046 | #endif // QAREASERIES_H | ||