qseries.h
48 lines
| 1000 B
| text/x-c
|
CLexer
/ src / qseries.h
Michal Klocek
|
r360 | #ifndef QSERIES_H | ||
#define QSERIES_H | ||||
Michal Klocek
|
r23 | |||
Tero Ahola
|
r30 | #include "qchartglobal.h" | ||
Michal Klocek
|
r23 | #include <QObject> | ||
sauimone
|
r71 | #include <QAbstractItemModel> | ||
sauimone
|
r380 | #include <QPen> | ||
Michal Klocek
|
r23 | |||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
Michal Klocek
|
r23 | |||
Michal Klocek
|
r360 | class QTCOMMERCIALCHART_EXPORT QSeries : public QObject | ||
Michal Klocek
|
r23 | { | ||
sauimone
|
r71 | Q_OBJECT | ||
Michal Klocek
|
r23 | public: | ||
Michal Klocek
|
r360 | enum QSeriesType { | ||
Tero Ahola
|
r120 | SeriesTypeLine, | ||
Tero Ahola
|
r309 | SeriesTypeArea, | ||
sauimone
|
r56 | SeriesTypeBar, | ||
sauimone
|
r94 | SeriesTypeStackedBar, | ||
sauimone
|
r101 | SeriesTypePercentBar, | ||
Tero Ahola
|
r51 | SeriesTypePie, | ||
Tero Ahola
|
r309 | SeriesTypeScatter, | ||
SeriesTypeSpline | ||||
Tero Ahola
|
r30 | }; | ||
Michal Klocek
|
r23 | |||
protected: | ||||
Marek Rosa
|
r597 | QSeries(QObject *parent = 0) : QObject(parent) {m_model = NULL;} | ||
Michal Klocek
|
r23 | |||
public: | ||||
Michal Klocek
|
r360 | virtual ~QSeries() {} | ||
virtual QSeriesType type() const = 0; | ||||
sauimone
|
r565 | QString name() { return QString("TODO: Name QSeries"); } | ||
Tero Ahola
|
r309 | // TODO | ||
sauimone
|
r175 | virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } | ||
sauimone
|
r380 | |||
Jani Honkonen
|
r405 | void setTitle(QString title) { m_title = title; } | ||
QString title() { return m_title; } | ||||
Marek Rosa
|
r597 | protected: | ||
QAbstractItemModel* m_model; | ||||
Jani Honkonen
|
r405 | private: | ||
QString m_title; | ||||
Michal Klocek
|
r23 | }; | ||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
Michal Klocek
|
r23 | |||
#endif | ||||