##// END OF EJS Templates
QML model mapper documentation for pie and xy
QML model mapper documentation for pie and xy

File last commit:

r1366:afd786091804
r1516:267764825d23
Show More
charttheme_p.h
111 lines | 3.1 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
// This file is not part of the QtCommercial Chart API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #ifndef CHARTTHEME_H
#define CHARTTHEME_H
#include "qchartglobal.h"
Michal Klocek
Refactor themes...
r143 #include "qchart.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include <QColor>
Jani Honkonen
Adding list of series gradients to theme.
r494 #include <QGradientStops>
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor themes...
r143 class ChartItem;
Michal Klocek
Fix previous broken commit
r145 class LineChartItem;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QLineSeries;
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 class BarChartItem;
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 class QBarSeries;
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 class StackedBarChartItem;
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 class QStackedBarSeries;
class QPercentBarSeries;
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 class PercentBarChartItem;
Tero Ahola
Enabled theme colors in scatter again
r182 class QScatterSeries;
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 class ScatterChartItem;
Jani Honkonen
Rename piepresenter -> piechartitem
r568 class PieChartItem;
Jani Honkonen
Make pie work better with chartwidgettest
r163 class QPieSeries;
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 class SplineChartItem;
Marek Rosa
Spline working somewhat
r401 class QSplineSeries;
Michal Klocek
Adds area chart...
r421 class AreaChartItem;
class QAreaSeries;
Michal Klocek
Refactor themes...
r143
class ChartTheme
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 {
Tero Ahola
Added axis related modifiers to theme
r548 public:
enum BackgroundShadesMode {
BackgroundShadesNone = 0,
BackgroundShadesVertical,
BackgroundShadesHorizontal,
BackgroundShadesBoth
};
Michal Klocek
Refactor themes...
r143 protected:
Tero Ahola
Removed default theme, now using light as the default
r853 explicit ChartTheme(QChart::ChartTheme id = QChart::ChartThemeLight);
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 public:
Marek Rosa
White spaces fixes in Theme and animation classes
r948 static ChartTheme *createTheme(QChart::ChartTheme theme);
Michal Klocek
Adds missing ids to theme classes
r153 QChart::ChartTheme id() const {return m_id;}
Marek Rosa
White spaces fixes in Theme and animation classes
r948 void decorate(QChart *chart);
void decorate(QLegend *legend);
void decorate(QBarSeries *series, int index);
void decorate(QLineSeries *series, int index);
void decorate(QAreaSeries *series, int index);
void decorate(QScatterSeries *series, int index);
void decorate(QPieSeries *series, int index);
void decorate(QSplineSeries *series, int index);
Michal Klocek
Changes QChartAxis -> QAxis
r1006 void decorate(QAxis *axis, bool axisX);
Michal Klocek
Refactor to use qseries private for implmentation interface...
r943 void setForced(bool enabled);
bool isForced() { return m_force; }
Michal Klocek
Refactor themes...
r143
Jani Honkonen
Adding list of series gradients to theme.
r494 public: // utils
Tero Ahola
Theme gradients now generated from a single base color
r507 void generateSeriesGradients();
Jani Honkonen
Adding list of series gradients to theme.
r494 static QColor colorAt(const QColor &start, const QColor &end, qreal pos);
static QColor colorAt(const QGradient &gradient, qreal pos);
Michal Klocek
Refactor themes...
r143 protected:
Michal Klocek
Adds missing ids to theme classes
r153 QChart::ChartTheme m_id;
Jani Honkonen
Adding list of series gradients to theme.
r494 QList<QColor> m_seriesColors;
QList<QGradient> m_seriesGradients;
Tero Ahola
New theme with light colors, chartview background
r584 QLinearGradient m_chartBackgroundGradient;
Tero Ahola
Theme gradients now generated from a single base color
r507
Tero Ahola
Added axis related modifiers to theme
r548 QFont m_masterFont;
Tero Ahola
Defined point sizes for fonts
r717 QFont m_labelFont;
Tero Ahola
Fonts and background of the themes...
r614 QBrush m_titleBrush;
Tero Ahola
Added axis related modifiers to theme
r548 QPen m_axisLinePen;
QBrush m_axisLabelBrush;
QPen m_backgroundShadesPen;
QBrush m_backgroundShadesBrush;
BackgroundShadesMode m_backgroundShades;
Tero Ahola
Added drop shadow effect for light themes
r1001 bool m_backgroundDropShadowEnabled;
Tero Ahola
Added axis related modifiers to theme
r548 QPen m_gridLinePen;
Michal Klocek
Refactor to use qseries private for implmentation interface...
r943 bool m_force;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // CHARTTHEME_H