##// END OF EJS Templates
Adds area chart...
Adds area chart * adds area chart implementation * adds QAreaSeries * adds areachart example * adds documentation * updates "about" , "classes" and "example" documentation pages

File last commit:

r421:fe0a0dc06876
r421:fe0a0dc06876
Show More
charttheme_p.h
55 lines | 1.5 KiB | text/x-c | CLexer
#ifndef CHARTTHEME_H
#define CHARTTHEME_H
#include "qchartglobal.h"
#include "qchart.h"
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartItem;
class QSeries;
class LineChartItem;
class QLineSeries;
class BarPresenter;
class QBarSeries;
class StackedBarPresenter;
class QStackedBarSeries;
class QPercentBarSeries;
class PercentBarPresenter;
class QScatterSeries;
class ScatterPresenter;
class PiePresenter;
class QPieSeries;
class AreaChartItem;
class QAreaSeries;
class ChartTheme
{
protected:
explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeDefault);
public:
static ChartTheme* createTheme(QChart::ChartTheme theme);
QChart::ChartTheme id() const {return m_id;}
void decorate(QChart* chart);
void decorate(ChartItem* item, QSeries* series,int count);
void decorate(BarPresenter* item, QBarSeries* series,int count);
void decorate(StackedBarPresenter* item, QStackedBarSeries* series,int count);
void decorate(PercentBarPresenter* item, QPercentBarSeries* series,int count);
void decorate(LineChartItem* item, QLineSeries* series,int count);
void decorate(AreaChartItem* item, QAreaSeries* series,int count);
void decorate(ScatterPresenter* presenter, QScatterSeries* series, int count);
void decorate(PiePresenter* item, QPieSeries* series, int count);
void decorate(QChartAxis* axis,AxisItem* item);
protected:
QChart::ChartTheme m_id;
QColor m_gradientStartColor;
QColor m_gradientEndColor;
QList<QColor> m_seriesColor;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // CHARTTHEME_H