qabstractseries_p.h
116 lines
| 3.2 KiB
| text/x-c
|
CLexer
|
r2845 | /****************************************************************************** | ||
|
r938 | ** | ||
|
r2845 | ** Copyright (C) 2015 The Qt Company Ltd. | ||
** Contact: http://www.qt.io/licensing/ | ||||
|
r938 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r938 | ** | ||
|
r2845 | ** $QT_BEGIN_LICENSE:COMM$ | ||
|
r938 | ** | ||
|
r2845 | ** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||||
** accordance with the commercial license agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and The Qt Company. For licensing terms | ||||
** and conditions see http://www.qt.io/terms-conditions. For further | ||||
** information use the contact form at http://www.qt.io/contact-us. | ||||
|
r938 | ** | ||
|
r2845 | ** $QT_END_LICENSE$ | ||
** | ||||
******************************************************************************/ | ||||
|
r938 | |||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
|
r2807 | // This file is not part of the Qt 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; | ||||
|
r2804 | virtual void initializeAnimations(QChart::AnimationOptions options, int duration, | ||
QEasingCurve &curve) = 0; | ||||
|
r2273 | |||
|
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; } | ||
|
r2781 | bool reverseXAxis(); | ||
bool reverseYAxis(); | ||||
|
r943 | |||
|
r2820 | void setBlockOpenGL(bool enable); | ||
|
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; | ||||
|
r2781 | |||
|
r2273 | private: | ||
|
r2285 | QScopedPointer<AbstractDomain> m_domain; | ||
|
r938 | QString m_name; | ||
|
r1342 | bool m_visible; | ||
|
r2067 | qreal m_opacity; | ||
|
r2707 | ChartPresenter *m_presenter; | ||
|
r2820 | bool m_useOpenGL; | ||
bool m_blockOpenGL; | ||||
|
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 | ||||