##// END OF EJS Templates
Fixing review findings in QScatterSeries
Fixing review findings in QScatterSeries

File last commit:

r357:82b904eaae07
r358:543ce926fdb7
Show More
qbarseries.h
66 lines | 1.9 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
sauimone
removed barchartseriesbase. functionality is now in model
r172 #include "qchartseries.h"
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 QBarCategory;
class QBarSet;
class BarChartModel;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Container for series
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QChartSeries
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
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 QBarSeries(QBarCategory *category, QObject* parent=0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeBar; }
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
Added pen & brush to QBarSet
r214 int countSets();
sauimone
exposing countcategories to user from barchartseries
r323 int countCategories();
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
Barset and barcategory implememtation. Updated test application
r171
sauimone
moved tooltip to presenter
r288 QList<QString> legend(); // Returns legend of series (ie. names of all sets in series)
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280
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
review fix: Removed iterator from barseries. Remove const from brush and pen. Renamed setters for tooltip, floating values and separators
r357 QBarSet *barsetAt(int index);
sauimone
Documentation for bar charts
r313 QString label(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
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:
void changed(int index);
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
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280 void floatingValuesEnabled(bool enabled);
sauimone
moved tooltip to presenter
r288 void toolTipEnabled(bool enabled);
void separatorsEnabled(bool enabled);
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 setFloatingValuesEnabled(bool enabled=true); // enables floating values on top of bars
void setToolTipEnabled(bool enabled=true); // enables tooltips
void setSeparatorsEnabled(bool enabled=true); // enables separators between categories
sauimone
Barset and barcategory implememtation. Updated test application
r171
sauimone
refactoring. QStackedBarSeries and QPercentBarSeries are now derived from QBarSeries.
r281 protected:
sauimone
removed barchartseriesbase. functionality is now in model
r172 BarChartModel* mModel;
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