##// END OF EJS Templates
Adds clicked(Point) to lineSeries, changes visible points handling
Adds clicked(Point) to lineSeries, changes visible points handling

File last commit:

r527:b700a12da54b
r544:e21e24989fda
Show More
qbarseries.h
82 lines | 2.4 KiB | text/x-c | CLexer
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 #ifndef BARSERIES_H
#define BARSERIES_H
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Michal Klocek
Rename QChartSeries to QSeries
r360 #include "qseries.h"
sauimone
replaced qbarcategory with qstringlist
r377 #include <QStringList>
sauimone
BarGroup and Bar as ChartItems instead of GraphicItems
r74
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
removed barchartseriesbase. functionality is now in model
r172 class QBarSet;
class BarChartModel;
sauimone
right click feature for bar series. Enables drilldown
r412 class BarCategory;
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Container for series
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QSeries
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 {
sauimone
Improved bar chart series
r71 Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
sauimone
replaced qbarcategory with qstringlist
r377 QBarSeries(QStringList categories, QObject* parent=0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
Michal Klocek
Rename QChartSeries to QSeries
r360 virtual QSeriesType type() const { return QSeries::SeriesTypeBar; }
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 void addBarSet(QBarSet *set); // Takes ownership of set
void removeBarSet(QBarSet *set); // Releases ownership, doesn't delete set
sauimone
review fixes. countCategories() -> categoryCount(). countSets -> barsetCount()
r366 int barsetCount();
int categoryCount();
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
framework for legend
r524 QList<QSeries::LegendEntry> legendEntries();
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280
Marek Rosa
QXYSeries: model data orientation added. QBarSeries: some model data function placeholders
r527 bool setModel(QAbstractItemModel* model);
QAbstractItemModel* modelExt() {return m_model;}
void setModelMappingCategories(int modelColumn);
void setModelMappingBarRange(int bottomBoundry, int topBoundry);
sauimone
moved tooltip to presenter
r288 public:
sauimone
fixed bug in category implementation. model now owns the category and sets
r173 // TODO: Functions below this are not part of api and will be moved
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // to private implementation, when we start using it
// TODO: TO PIMPL --->
sauimone
right click feature for bar series. Enables drilldown
r412 QBarSet* barsetAt(int index);
QString categoryName(int category);
sauimone
removed barchartseriesbase. functionality is now in model
r172 qreal min();
qreal max();
qreal valueAt(int set, int category);
sauimone
moved tooltip to presenter
r288 qreal percentageAt(int set, int category);
qreal categorySum(int category);
sauimone
removed barchartseriesbase. functionality is now in model
r172 qreal maxCategorySum();
BarChartModel& model();
sauimone
barchart separators fixed, layout fixed
r505 bool separatorsVisible();
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // <--- TO PIMPL
sauimone
removed barchartseriesbase. functionality is now in model
r172
signals:
sauimone
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
r425 //void changed(int index);
void clicked(QBarSet* barset, QString category); // Up to user of api, what to do with these signals
void rightClicked(QBarSet* barset, QString category);
sauimone
removed barchartseriesbase. functionality is now in model
r172
sauimone
moved tooltip to presenter
r288 // TODO: internal signals, these to private implementation.
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // TODO: TO PIMPL --->
sauimone
barchart separators fixed, layout fixed
r505 void enableSeparators(bool enable);
sauimone
moved tooltip to presenter
r288 void showToolTip(QPoint pos, QString tip);
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 // <--- TO PIMPL
public Q_SLOTS:
sauimone
review fix: Removed iterator from barseries. Remove const from brush and pen. Renamed setters for tooltip, floating values and separators
r357 void setToolTipEnabled(bool enabled=true); // enables tooltips
sauimone
barchart separators fixed, layout fixed
r505 void setSeparatorsVisible(bool visible=true); // enables separators between categories
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
r425 // TODO: TO PIMPL --->
void barsetClicked(QString category);
void barsetRightClicked(QString category);
// <--- TO PIMPL
sauimone
refactoring. QStackedBarSeries and QPercentBarSeries are now derived from QBarSeries.
r281 protected:
sauimone
removed barchartseriesbase. functionality is now in model
r172 BarChartModel* mModel;
sauimone
barchart separators fixed, layout fixed
r505 bool mSeparatorsVisible;
Marek Rosa
QXYSeries: model data orientation added. QBarSeries: some model data function placeholders
r527
QAbstractItemModel* m_model;
int m_mapCategories;
int m_mapBarBottom;
int m_mapBarTop;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 };
QTCOMMERCIALCHART_END_NAMESPACE
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 #endif // BARSERIES_H