charttheme_p.h
48 lines
| 1.3 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; | ||||
Michal Klocek
|
r143 | class BarGroup; | ||
class BarChartSeries; | ||||
class StackedBarGroup; | ||||
class StackedBarChartSeries; | ||||
class PercentBarChartSeries; | ||||
class PercentBarGroup; | ||||
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); | ||
Michal Klocek
|
r143 | void decorate(BarGroup* item, BarChartSeries* series,int count); | ||
void decorate(StackedBarGroup* item, StackedBarChartSeries* series,int count); | ||||
void decorate(PercentBarGroup* item, PercentBarChartSeries* series,int count); | ||||
Jani Honkonen
|
r163 | void decorate(PiePresenter* item, QPieSeries* series, int count); | ||
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 | ||||