##// END OF EJS Templates
Colors of the darker theme
Colors of the darker theme

File last commit:

r597:fed5cb29c884
r608:9ab5701700a1
Show More
qseries.h
56 lines | 1.2 KiB | text/x-c | CLexer
Michal Klocek
Rename QChartSeries to QSeries
r360 #ifndef QSERIES_H
#define QSERIES_H
Michal Klocek
Fix missing file from one of the prvious commits...
r23
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Fix missing file from one of the prvious commits...
r23 #include <QObject>
sauimone
Improved bar chart series
r71 #include <QAbstractItemModel>
sauimone
refactored legend to qseries
r380 #include <QPen>
Michal Klocek
Fix missing file from one of the prvious commits...
r23
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Fix missing file from one of the prvious commits...
r23
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QSeries : public QObject
Michal Klocek
Fix missing file from one of the prvious commits...
r23 {
sauimone
Improved bar chart series
r71 Q_OBJECT
Michal Klocek
Fix missing file from one of the prvious commits...
r23 public:
Michal Klocek
Rename QChartSeries to QSeries
r360 enum QSeriesType {
Tero Ahola
Proof-of-concept for QML api...
r120 SeriesTypeLine,
Tero Ahola
qdoc for QChartSeries
r309 SeriesTypeArea,
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 SeriesTypeBar,
sauimone
added stacked bar chart
r94 SeriesTypeStackedBar,
sauimone
percent bar chart
r101 SeriesTypePercentBar,
Tero Ahola
Integrated draft version of pie series
r51 SeriesTypePie,
Tero Ahola
qdoc for QChartSeries
r309 SeriesTypeScatter,
SeriesTypeSpline
Tero Ahola
Renamed to QtCommercialChart
r30 };
Michal Klocek
Fix missing file from one of the prvious commits...
r23
sauimone
refactored legend to qseries
r380 // Helper class to contain legend and color for it
sauimone
First version of legend. Simple markers and serie names. Using drilldown as example for now.
r529 // TODO: This is actually quite close to current LegendMarker.. combine them?
sauimone
removed old legend prototry functions
r595 /* class LegendEntry {
sauimone
framework for legend
r524 public:
sauimone
refactored legend to qseries
r380 QString mName;
sauimone
removed old legend prototry functions
r595 /QBrush mBrush;
};*/
sauimone
refactored legend to qseries
r380
Michal Klocek
Fix missing file from one of the prvious commits...
r23 protected:
Marek Rosa
Added data from model support to QPieSeries(modify, remove). Data from model example updated
r597 QSeries(QObject *parent = 0) : QObject(parent) {m_model = NULL;}
Michal Klocek
Fix missing file from one of the prvious commits...
r23
public:
Michal Klocek
Rename QChartSeries to QSeries
r360 virtual ~QSeries() {}
virtual QSeriesType type() const = 0;
sauimone
more intelligent legend. fixed compiler warning in bar.cpp
r565 QString name() { return QString("TODO: Name QSeries"); }
Tero Ahola
qdoc for QChartSeries
r309 // TODO
sauimone
minor cleaning of unused code
r175 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
sauimone
refactored legend to qseries
r380
Jani Honkonen
Add title to QSeries
r405 void setTitle(QString title) { m_title = title; }
QString title() { return m_title; }
Marek Rosa
Added data from model support to QPieSeries(modify, remove). Data from model example updated
r597 protected:
QAbstractItemModel* m_model;
Jani Honkonen
Add title to QSeries
r405 private:
QString m_title;
Michal Klocek
Fix missing file from one of the prvious commits...
r23 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Fix missing file from one of the prvious commits...
r23
#endif