qabstractseries_p.h
105 lines
| 2.9 KiB
| text/x-c
|
CLexer
/ src / qabstractseries_p.h
|
r938 | /**************************************************************************** | ||
** | ||||
|
r2688 | ** Copyright (C) 2014 Digia Plc | ||
|
r938 | ** 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. | ||
|
r938 | ** | ||
** $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 | ||||
|
r938 | ** 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$ | ||||
** | ||||
****************************************************************************/ | ||||
// 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 | |||
|
r988 | #include "qabstractseries.h" | ||
|
r2273 | #include "qchart.h" | ||
|
r2275 | #include "abstractdomain_p.h" | ||
|
r2273 | |||
class QGraphicsItem; | ||||
|
r938 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
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 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif | ||||