##// END OF EJS Templates
PieSliceItem bounding rect fix
PieSliceItem bounding rect fix

File last commit:

r701:0d46cd22e84d
r718:7a2556deb83d
Show More
barchartitem_p.h
75 lines | 2.0 KiB | text/x-c | CLexer
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 #ifndef BARCHARTITEM_H
#define BARCHARTITEM_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;
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
sauimone
barchart animation mechanics working. still some todo
r681 //typedef QVector<QRectF> BarLayout;
sauimone
Animation framework for barchart.
r671
Michal Klocek
Refactors barchart axis hadnling...
r679 class BarChartItem : 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:
Michal Klocek
Refactors chartitem...
r677 BarChartItem(QBarSeries *series, ChartPresenter *presenter);
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 virtual ~BarChartItem();
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
Michal Klocek
Refactors chartitem...
r677 // Common implemantation of different presenters. Not to be instantiated.
// TODO: combine this with BarPresenter and derive other presenters from it?
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
Marek Rosa
Barchart updates on BarSet->SetValue now
r655 private slots:
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
sauimone
Animation framework for barchart.
r671 public:
sauimone
animations to stacked and percent barchart
r694 virtual QVector<QRectF> calculateLayout();
sauimone
barchart animation mechanics working. still some todo
r681 void applyLayout(const QVector<QRectF> &layout);
void setLayout(const QVector<QRectF> &layout);
void updateLayout(const QVector<QRectF> &layout);
sauimone
Animation framework for barchart.
r671
Michal Klocek
Refactors barchart axis hadnling...
r679 QRectF geometry() const { return m_rect;}
Michal Klocek
Rewrite animation hadnling in line series...
r389 public slots:
Michal Klocek
Refactored for MVP...
r139 void handleModelChanged(int index);
Tero Ahola
Squashed bunch of warnings
r611 void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
Michal Klocek
Refactored for MVP...
r139 void handleGeometryChanged(const QRectF& size);
sauimone
Animation framework for barchart.
r671 void handleLayoutChanged();
Michal Klocek
Refactored for MVP...
r139
sauimone
moved tooltip to presenter
r288 // Internal slots
void showToolTip(QPoint pos, QString tip); // shows tooltip (if 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
barchart domain fix
r674 qreal mDomainMinX;
qreal mDomainMaxX;
qreal mDomainMinY;
qreal mDomainMaxY;
Michal Klocek
Refactors barchart axis hadnling...
r679 QRectF m_rect;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 bool mLayoutSet; // True, if component has been laid out.
sauimone
barchart animation mechanics working. still some todo
r681 QVector<QRectF> mLayout;
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;
sauimone
Floating values to bar charts
r263 QList<BarValue*> mFloatingValues;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 };
QTCOMMERCIALCHART_END_NAMESPACE
sauimone
combined barpresenterbase and barpresenter. renamed barchartpresenters to barchartitems
r666 #endif // BARCHARTITEM_H