charttheme_p.h
52 lines
| 1.4 KiB
| text/x-c
|
CLexer
/ src / charttheme_p.h
Tero Ahola
|
r103 | #ifndef CHARTTHEME_H | ||
#define CHARTTHEME_H | ||||
#include "qchartglobal.h" | ||||
Michal Klocek
|
r143 | #include "qchart.h" | ||
Tero Ahola
|
r103 | #include <QColor> | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Michal Klocek
|
r143 | class ChartItem; | ||
Michal Klocek
|
r360 | class QSeries; | ||
Michal Klocek
|
r145 | class LineChartItem; | ||
Michal Klocek
|
r349 | class QLineSeries; | ||
sauimone
|
r216 | class BarPresenter; | ||
sauimone
|
r338 | class QBarSeries; | ||
sauimone
|
r216 | class StackedBarPresenter; | ||
sauimone
|
r338 | class QStackedBarSeries; | ||
class QPercentBarSeries; | ||||
sauimone
|
r216 | class PercentBarPresenter; | ||
Tero Ahola
|
r182 | class QScatterSeries; | ||
class ScatterPresenter; | ||||
Jani Honkonen
|
r163 | class PiePresenter; | ||
class QPieSeries; | ||||
Michal Klocek
|
r143 | |||
class ChartTheme | ||||
Tero Ahola
|
r103 | { | ||
Michal Klocek
|
r143 | protected: | ||
Michal Klocek
|
r153 | explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeDefault); | ||
Tero Ahola
|
r103 | public: | ||
Michal Klocek
|
r153 | static ChartTheme* createTheme(QChart::ChartTheme theme); | ||
QChart::ChartTheme id() const {return m_id;} | ||||
Michal Klocek
|
r143 | void decorate(QChart* chart); | ||
Michal Klocek
|
r360 | void decorate(ChartItem* item, QSeries* series,int count); | ||
sauimone
|
r338 | void decorate(BarPresenter* item, QBarSeries* series,int count); | ||
void decorate(StackedBarPresenter* item, QStackedBarSeries* series,int count); | ||||
void decorate(PercentBarPresenter* item, QPercentBarSeries* series,int count); | ||||
Michal Klocek
|
r349 | void decorate(LineChartItem* item, QLineSeries*, int count); | ||
Tero Ahola
|
r182 | void decorate(ScatterPresenter* presenter, QScatterSeries* series, int count); | ||
Jani Honkonen
|
r163 | void decorate(PiePresenter* item, QPieSeries* series, int count); | ||
Michal Klocek
|
r223 | void decorate(QChartAxis* axis,AxisItem* item); | ||
Michal Klocek
|
r143 | |||
protected: | ||||
Michal Klocek
|
r153 | QChart::ChartTheme m_id; | ||
Tero Ahola
|
r103 | QColor m_gradientStartColor; | ||
QColor m_gradientEndColor; | ||||
Michal Klocek
|
r143 | QList<QColor> m_seriesColor; | ||
Tero Ahola
|
r103 | |||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // CHARTTHEME_H | ||||