##// END OF EJS Templates
Spline with problems
Spline with problems

File last commit:

r412:917c9ad18551
r419:1666cfa56d96
Show More
barchartmodel_p.h
62 lines | 1.4 KiB | text/x-c | CLexer
sauimone
model prototyping for bar chart
r159 #ifndef BARCHARTMODEL_H
#define BARCHARTMODEL_H
#include <QObject>
sauimone
replaced qbarcategory with qstringlist
r377 #include <QStringList>
sauimone
model delegate for bar series. updated examples
r161 #include "qchartglobal.h"
sauimone
refactored legend to qseries
r380 #include <qseries.h>
sauimone
model prototyping for bar chart
r159
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
model delegate for bar series. updated examples
r161 // Model for bar chart. Internal class.
sauimone
model prototyping for bar chart
r159 // TODO: Implement as QAbstractItemModel?
sauimone
proof of concept implementation for barset and barcategory
r169 class QBarSet;
sauimone
right click feature for bar series. Enables drilldown
r412 class BarCategory;
sauimone
proof of concept implementation for barset and barcategory
r169
sauimone
model prototyping for bar chart
r159 class BarChartModel : public QObject //, public QAbstractItemModel
{
Q_OBJECT
public:
sauimone
replaced qbarcategory with qstringlist
r377 explicit BarChartModel(QStringList categories, QObject *parent = 0);
sauimone
model prototyping for bar chart
r159
sauimone
replaced qbarcategory with qstringlist
r377 QStringList category();
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 void addBarSet(QBarSet *set);
void removeBarSet(QBarSet *set);
sauimone
floating values working now. bounding rect bug fixed
r273 QBarSet *setAt(int index);
sauimone
review fix: Removed iterator from barseries. Remove const from brush and pen. Renamed setters for tooltip, floating values and separators
r357 QList<QBarSet*> barSets();
sauimone
refactored legend to qseries
r380 QList<QSeries::Legend> legend();
sauimone
proof of concept implementation for barset and barcategory
r169
sauimone
Updated barchart examples and documentation. Also bug fix to barchart model
r387 int barsetCount(); // Number of sets in model
int categoryCount(); // Number of categories
sauimone
model prototyping for bar chart
r159
sauimone
Barset and barcategory implememtation. Updated test application
r171 qreal max(); // Maximum value of all sets
qreal min(); // Minimum value of all sets
qreal valueAt(int set, int category);
sauimone
Floating values to bar charts
r263 qreal percentageAt(int set, int category);
sauimone
model prototyping for bar chart
r159
sauimone
Floating values to bar charts
r263 qreal categorySum(int category);
sauimone
Barset and barcategory implememtation. Updated test application
r171 qreal maxCategorySum(); // returns maximum sum of sets in all categories.
sauimone
model delegate for bar series. updated examples
r161
sauimone
right click feature for bar series. Enables drilldown
r412 QString categoryName(int category);
BarCategory* categoryObject(int category);
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
model prototyping for bar chart
r159 signals:
void modelUpdated();
public slots:
private:
sauimone
Barset and barcategory implememtation. Updated test application
r171 QList<QBarSet*> mDataModel;
sauimone
replaced qbarcategory with qstringlist
r377 QStringList mCategory;
sauimone
right click feature for bar series. Enables drilldown
r412 QList<BarCategory*> mCategoryObjects;
sauimone
model prototyping for bar chart
r159
sauimone
Added pen & brush to QBarSet
r214 int mCurrentSet;
sauimone
model prototyping for bar chart
r159 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARCHARTMODEL_H