@@ -55,6 +55,9 public: | |||||
55 | QBarCategories categories() const; |
|
55 | QBarCategories categories() const; | |
56 |
|
56 | |||
57 | void setLabelsVisible(bool visible = true); |
|
57 | void setLabelsVisible(bool visible = true); | |
|
58 | // TODO: | |||
|
59 | // void setGroupedDrawing(bool on = true); // By default this is on. Bars are grouped next to each other. If off, bars are drawn at their x-position (propably on top of each other) | |||
|
60 | // void setBarMargin(int margin); // Margin that is left between bars (if drawn as grouped bars) | |||
58 |
|
61 | |||
59 | bool setModel(QAbstractItemModel *model); |
|
62 | bool setModel(QAbstractItemModel *model); | |
60 | void setModelMapping(int categories, int bottomBoundary, int topBoundary, Qt::Orientation orientation = Qt::Vertical); |
|
63 | void setModelMapping(int categories, int bottomBoundary, int topBoundary, Qt::Orientation orientation = Qt::Vertical); |
@@ -39,10 +39,21 public: | |||||
39 |
|
39 | |||
40 | void setName(const QString name); |
|
40 | void setName(const QString name); | |
41 | QString name() const; |
|
41 | QString name() const; | |
42 | void append(const qreal value); |
|
42 | ||
43 | QBarSet& operator << (const qreal &value); |
|
43 | // TODO: | |
44 | void insert(const int index, const qreal value); |
|
44 | // void append(const QPointF value); // Appends bar with x-value | |
45 | void remove(const int index); |
|
45 | // void append(const QList<QPointF> value); // Same with list | |
|
46 | void append(const qreal value); // TODO: change so, that count becomes x-value | |||
|
47 | ||||
|
48 | // TODO: | |||
|
49 | // void append(const QList<qreal> values); // Append list of values. Using index as x-value | |||
|
50 | ||||
|
51 | QBarSet& operator << (const qreal &value); // TODO: change implementations so, that count becomes x-value | |||
|
52 | // TODO: | |||
|
53 | // QBarSet& operator << (const QPointF &value); // Appends bar with x-value | |||
|
54 | ||||
|
55 | void insert(const int index, const qreal value); // TODO: internal reindexing (what happens, if there are points with real x values?) | |||
|
56 | void remove(const int index); // TODO: internal reindexing (what happens, if there are points with real x values?) | |||
46 | void replace(const int index, const qreal value); |
|
57 | void replace(const int index, const qreal value); | |
47 | qreal at(const int index) const; |
|
58 | qreal at(const int index) const; | |
48 | qreal operator [] (int index) const; |
|
59 | qreal operator [] (int index) const; |
General Comments 0
You need to be logged in to leave comments.
Login now