charttheme_p.h
52 lines
| 1.5 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; | ||
class QChartSeries; | ||||
Michal Klocek
|
r145 | class LineChartItem; | ||
class QLineChartSeries; | ||||
sauimone
|
r216 | class BarPresenter; | ||
class QBarChartSeries; | ||||
class StackedBarPresenter; | ||||
class QStackedBarChartSeries; | ||||
class QPercentBarChartSeries; | ||||
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); | ||
void decorate(ChartItem* item, QChartSeries* series,int count); | ||||
Michal Klocek
|
r145 | void decorate(LineChartItem* item, QLineChartSeries*, int count); | ||
sauimone
|
r216 | void decorate(BarPresenter* item, QBarChartSeries* series,int count); | ||
void decorate(StackedBarPresenter* item, QStackedBarChartSeries* series,int count); | ||||
void decorate(PercentBarPresenter* item, QPercentBarChartSeries* series,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 | ||||