##// END OF EJS Templates
Now using percent bar series in theme demo
Now using percent bar series in theme demo

File last commit:

r505:ffc461f7ce12
r521:1e41568aab09
Show More
barpresenterbase_p.h
67 lines | 1.8 KiB | text/x-c | CLexer
/ src / barchart / barpresenterbase_p.h
sauimone
moved presenter to private headers. code cleanup
r217 #ifndef BARPRESENTERBASE_H
#define BARPRESENTERBASE_H
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
#include "chartitem_p.h"
sauimone
Naming convention change for barcharts. QBarChartSeries is now QBarSeries etc.
r338 #include "qbarseries.h"
sauimone
brush support for bargroups
r183 #include <QPen>
#include <QBrush>
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 #include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 class Bar;
class Separator;
sauimone
Floating values to bar charts
r263 class BarValue;
sauimone
Labels for barchart to axis
r487 class QChartAxisCategories;
class QChart;
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256
// Common implemantation of different presenters. Not to be instantiated.
sauimone
code cleanup after refactoring. much nicer now.
r282 // TODO: combine this with BarPresenter and derive other presenters from it?
sauimone
Common naming convention for barcharts
r216 class BarPresenterBase : public QObject, public ChartItem
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 {
Michal Klocek
Refactored for MVP...
r139 Q_OBJECT
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 public:
sauimone
Labels for barchart to axis
r487 BarPresenterBase(QBarSeries *series, QChart *parent = 0);
sauimone
updating drilldown example. Needs some more thinking
r438 virtual ~BarPresenterBase();
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
sauimone
minor cleaning of unused code
r175 public:
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 // From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
sauimone
added labels to series, intergrated with test app. minor hack to test app
r167 // TODO: Consider the domain for layoutChanged. May be use case, may not be. If it is, then the derived classes need to implement it
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 virtual void dataChanged(); // data of series has changed -> need to recalculate bar sizes
virtual void layoutChanged() = 0; // layout has changed -> need to recalculate bar sizes
sauimone
Labels for barchart to axis
r487 protected:
void initAxisLabels();
Michal Klocek
Rewrite animation hadnling in line series...
r389 public slots:
Michal Klocek
Refactored for MVP...
r139 void handleModelChanged(int index);
void handleDomainChanged(const Domain& domain);
void handleGeometryChanged(const QRectF& size);
sauimone
moved tooltip to presenter
r288 // Internal slots
void showToolTip(QPoint pos, QString tip); // shows tooltip (if enabled)
sauimone
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
r296 void enableSeparators(bool enabled);
sauimone
barcharts: added legend to model. added signals for hover events (for tooltip). updated examples
r280
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 protected:
sauimone
model prototyping for bar chart
r159 // TODO: consider these.
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 int mHeight; // Layout spesific
int mWidth;
sauimone
Fixed layout for barcharts
r473 qreal mBarWidth;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
bool mLayoutSet; // True, if component has been laid out.
sauimone
moved tooltip to presenter
r288
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 // Not owned.
sauimone
Fixed layout for barcharts
r473 QBarSeries* mSeries;
sauimone
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
r256 QList<Bar*> mBars;
QList<Separator*> mSeparators;
sauimone
Floating values to bar charts
r263 QList<BarValue*> mFloatingValues;
sauimone
Labels for barchart to axis
r487 QChart* mChart;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 };
QTCOMMERCIALCHART_END_NAMESPACE
sauimone
moved presenter to private headers. code cleanup
r217 #endif // BARPRESENTERBASE_H