qabstractseries_p.h
105 lines
| 2.9 KiB
| text/x-c
|
CLexer
|
r938 | /**************************************************************************** | ||
** | ||||
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
|
r938 | ** All rights reserved. | ||
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
|
r938 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r938 | ** | ||
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
|
r2776 | ** agreement between you and The Qt Company. | ||
|
r938 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r938 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2574 | // This file is not part of the Qt Enterprise Chart API. It exists purely as an | ||
|
r938 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
|
r988 | #ifndef QABSTRACTSERIES_P_H | ||
#define QABSTRACTSERIES_P_H | ||||
|
r938 | |||
|
r2714 | #include <QtCharts/QAbstractSeries> | ||
#include <QtCharts/QChart> | ||||
#include <private/abstractdomain_p.h> | ||||
|
r2273 | |||
|
r2774 | QT_BEGIN_NAMESPACE | ||
|
r2273 | class QGraphicsItem; | ||
|
r2774 | QT_END_NAMESPACE | ||
|
r938 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r938 | |||
|
r943 | class ChartPresenter; | ||
|
r1736 | class ChartElement; | ||
|
r950 | class LegendMarker; | ||
class QLegend; | ||||
|
r1062 | class ChartDataSet; | ||
|
r1542 | class QAbstractAxis; | ||
|
r2163 | class QLegendMarker; | ||
|
r2273 | class ChartTheme; | ||
class ChartAnimation; | ||||
class ChartItem; | ||||
|
r2548 | class BoxPlotChartItem; | ||
|
r943 | |||
|
r988 | class QAbstractSeriesPrivate : public QObject | ||
|
r938 | { | ||
|
r974 | Q_OBJECT | ||
|
r943 | public: | ||
|
r988 | QAbstractSeriesPrivate(QAbstractSeries *q); | ||
~QAbstractSeriesPrivate(); | ||||
|
r943 | |||
|
r2273 | virtual void initializeDomain() = 0; | ||
virtual void initializeAxes() = 0; | ||||
virtual void initializeTheme(int index, ChartTheme* theme, bool forced = false) = 0; | ||||
virtual void initializeGraphics(QGraphicsItem* parent) = 0; | ||||
virtual void initializeAnimations(QChart::AnimationOptions options) = 0; | ||||
|
r2163 | virtual QList<QLegendMarker*> createLegendMarkers(QLegend* legend) = 0; | ||
|
r2273 | |||
|
r1695 | virtual QAbstractAxis::AxisType defaultAxisType(Qt::Orientation) const = 0; | ||
|
r2273 | virtual QAbstractAxis* createDefaultAxis(Qt::Orientation) const = 0; | ||
ChartItem* chartItem() { return m_item.data(); } | ||||
|
r2285 | virtual void setDomain(AbstractDomain* domain); | ||
AbstractDomain* domain() { return m_domain.data(); } | ||||
|
r2273 | |||
|
r2707 | virtual void setPresenter(ChartPresenter *presenter); | ||
ChartPresenter *presenter() const; | ||||
|
r2273 | QChart* chart() { return m_chart; } | ||
|
r943 | |||
|
r2081 | Q_SIGNALS: | ||
|
r2085 | void countChanged(); | ||
|
r2081 | |||
|
r943 | protected: | ||
|
r988 | QAbstractSeries *q_ptr; | ||
|
r1314 | QChart *m_chart; | ||
|
r2273 | QScopedPointer<ChartItem> m_item; | ||
QList<QAbstractAxis*> m_axes; | ||||
private: | ||||
|
r2285 | QScopedPointer<AbstractDomain> m_domain; | ||
|
r938 | QString m_name; | ||
|
r1342 | bool m_visible; | ||
|
r2067 | qreal m_opacity; | ||
|
r2707 | ChartPresenter *m_presenter; | ||
|
r943 | |||
|
r988 | friend class QAbstractSeries; | ||
|
r1062 | friend class ChartDataSet; | ||
|
r2273 | friend class ChartPresenter; | ||
|
r2085 | friend class QLegendPrivate; | ||
|
r2548 | friend class BoxPlotChartItem; | ||
|
r938 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r938 | |||
#endif | ||||