##// END OF EJS Templates
Scatter API review: changed signal now private etc.
Scatter API review: changed signal now private etc.

File last commit:

r459:272f4a2e7431
r459:272f4a2e7431
Show More
qscatterseries.h
71 lines | 1.8 KiB | text/x-c | CLexer
Tero Ahola
Integrated scatter type series...
r42 #ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
Michal Klocek
Rename QChartSeries to QSeries
r360 #include "qseries.h"
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 #include <QRectF>
Tero Ahola
Draft implementation for setting color themes for a chart
r64 #include <QColor>
Tero Ahola
Integrated scatter type series...
r42
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QScatterSeriesPrivate;
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QScatterSeries : public QSeries
Tero Ahola
Integrated scatter type series...
r42 {
Q_OBJECT
Tero Ahola
Scatter series marker visuals
r195
public:
enum MarkerShape {
// TODO: to be defined by the graphics design
// TODO: marker shapes: "x", star, rectangle, tilted rect, triangle, circle, dot
MarkerShapeDefault = 0,
MarkerShapeX,
MarkerShapeRectangle,
Tero Ahola
Scatter API review: changed signal now private etc.
r459 MarkerShapeRoundedRectangle,
Tero Ahola
Scatter series marker visuals
r195 MarkerShapeTiltedRectangle,
MarkerShapeTriangle,
MarkerShapeCircle
};
Tero Ahola
Integrated scatter type series...
r42 public:
Tero Ahola
Refactored series creation with QChart
r61 QScatterSeries(QObject *parent = 0);
Tero Ahola
Integrated scatter type series...
r42 ~QScatterSeries();
public: // from QChartSeries
Michal Klocek
Rename QChartSeries to QSeries
r360 QSeriesType type() const { return QSeries::SeriesTypeScatter; }
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Integrated scatter again. Missing functionality....
r158 public:
Tero Ahola
Fixing review findings in QScatterSeries
r358 void add(qreal x, qreal y);
void add(QPointF value);
void add(QList<QPointF> points);
Tero Ahola
Scatter series documentation; now uses snippets
r300 void setData(QList<QPointF> points);
Tero Ahola
added stream operator to scatter series
r180 QScatterSeries& operator << (const QPointF &value);
Tero Ahola
Scatter series documentation; now uses snippets
r300 QScatterSeries& operator << (QList<QPointF> points);
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QList<QPointF> data();
Tero Ahola
Replace to QScatterSeries
r395 bool replace(int index, QPointF newPoint);
bool removeAt(int index);
Tero Ahola
Clicked, remove and clear to QScatterSeries
r394 int removeAll(QPointF point);
void clear();
int closestPoint(QPointF coordinate);
//TODO: insert, replace...?
Tero Ahola
Modifying QScatterSeries API
r179
Tero Ahola
Scatter API review: changed signal now private etc.
r459 QPen pen() const;
void setPen(const QPen &pen);
QBrush brush() const;
void setBrush(const QBrush &brush);
MarkerShape shape() const;
Tero Ahola
Fixing review findings in QScatterSeries
r358 void setShape(MarkerShape shape);
Tero Ahola
Scatter API review: changed signal now private etc.
r459 qreal size() const;
Tero Ahola
Added size customization to QScatterSeries
r397 void setSize(qreal size);
Tero Ahola
Modifying QScatterSeries API
r179
Tero Ahola
Integrated scatter again. Missing functionality....
r158 Q_SIGNALS:
Tero Ahola
Clicked, remove and clear to QScatterSeries
r394 void clicked(QPointF coordinate);
Tero Ahola
Integrated scatter again. Missing functionality....
r158
Tero Ahola
Integrated scatter type series...
r42 private:
Q_DECLARE_PRIVATE(QScatterSeries)
Q_DISABLE_COPY(QScatterSeries)
Tero Ahola
Scatter API review: changed signal now private etc.
r459 friend class ScatterPresenter;
QScatterSeriesPrivate *d;
Tero Ahola
Integrated scatter type series...
r42 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H