| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // W A R N I N G |
| 5 | // ------------- |
| 6 | // |
| 7 | // This file is not part of the Qt Chart API. It exists purely as an |
| 8 | // implementation detail. This header file may change from version to |
| 9 | // version without notice, or even be removed. |
| 10 | // |
| 11 | // We mean it. |
| 12 | |
| 13 | #ifndef CHARTELEMENT_H |
| 14 | #define CHARTELEMENT_H |
| 15 | |
| 16 | #include <QtCharts/QChartGlobal> |
| 17 | #include <QtCore/QObject> |
| 18 | #include <QtCore/QRect> |
| 19 | #include <QGraphicsObject> |
| 20 | #include <QtCharts/private/qchartglobal_p.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class ChartAnimator; |
| 25 | class ChartPresenter; |
| 26 | class ChartAnimation; |
| 27 | class ChartThemeManager; |
| 28 | class AbstractDomain; |
| 29 | class ChartDataSet; |
| 30 | |
| 31 | class Q_CHARTS_EXPORT ChartElement: public QGraphicsObject |
| 32 | { |
| 33 | |
| 34 | public: |
| 35 | explicit ChartElement(QGraphicsItem* item = 0); |
| 36 | |
| 37 | virtual ChartAnimation *animation() const { return 0; } |
| 38 | virtual void setPresenter(ChartPresenter *presenter); |
| 39 | ChartPresenter *presenter() const; |
| 40 | virtual void setThemeManager(ChartThemeManager *manager); |
| 41 | ChartThemeManager* themeManager() const; |
| 42 | virtual void setDataSet(ChartDataSet *dataSet); |
| 43 | ChartDataSet *dataSet() const; |
| 44 | |
| 45 | private: |
| 46 | ChartPresenter *m_presenter; |
| 47 | ChartThemeManager *m_themeManager; |
| 48 | ChartDataSet *m_dataSet; |
| 49 | }; |
| 50 | |
| 51 | QT_END_NAMESPACE |
| 52 | |
| 53 | #endif |
| 54 | |