qareaseries.h
86 lines
| 2.5 KiB
| text/x-c
|
CLexer
|
r794 | /**************************************************************************** | ||
** | ||||
|
r2432 | ** Copyright (C) 2013 Digia Plc | ||
|
r794 | ** All rights reserved. | ||
** For any questions to Digia, please use contact form at http://qt.digia.com | ||||
** | ||||
|
r2574 | ** This file is part of the Qt Enterprise Charts Add-on. | ||
|
r794 | ** | ||
** $QT_BEGIN_LICENSE$ | ||||
|
r2574 | ** Licensees holding valid Qt Enterprise licenses may use this file in | ||
** accordance with the Qt Enterprise License Agreement provided with the | ||||
|
r794 | ** 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: | ||
|
r2264 | void clicked(const QPointF &point); | ||
void hovered(const QPointF &point, bool state); | ||||
|
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; | ||||
|
r2176 | friend class QAreaLegendMarkerPrivate; | ||
|
r421 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
|
r2046 | #endif // QAREASERIES_H | ||