##// END OF EJS Templates
Added size factor property to pie
Added size factor property to pie

File last commit:

r56:c2f871dd8e7e
r60:0be2c26f8dc1
Show More
qchart.h
67 lines | 1.7 KiB | text/x-c | CLexer
Michal Klocek
adds missing files form previous commit
r12 #ifndef CHART_H
#define CHART_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include <qchartglobal.h>
Tero Ahola
Integrated scatter type series...
r42 #include <qchartseries.h>
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 #include <QGraphicsObject>
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
Michal Klocek
Refactor current draft to fit int current design specs...
r21 class Axis;
class XYGrid;
class QChartSeries;
Michal Klocek
Refactor xyplotdata...
r25 class XYPlotDomain;
Michal Klocek
Removes PIMPL for now...
r53 class XYLineChartItem;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 class BarGroup;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Integrated scatter type series...
r42 // TODO: We don't need to have QChart tied to QGraphicsItem:
//class QTCOMMERCIALCHART_EXPORT QChart
//class QTCOMMERCIALCHART_EXPORT QChartGraphicsItem : public QGraphicsItem {
// public: QChartGraphicsItem(QChart &chart);
/*!
* TODO: define the responsibilities
*/
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 class QTCOMMERCIALCHART_EXPORT QChart : public QGraphicsObject
Tero Ahola
Integrated scatter series...
r38 {
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 Q_OBJECT
Michal Klocek
adds missing files form previous commit
r12 public:
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 QChart(QGraphicsObject* parent = 0);
~QChart();
Michal Klocek
adds missing files form previous commit
r12
Michal Klocek
Refactor current draft to fit int current design specs...
r21 //from QGraphicsItem
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
void addSeries(QChartSeries* series);
Tero Ahola
Integrated scatter type series...
r42 //TODO: QChartSeries* createSeries(QSeriesData *data, QChartSeries::QChartSeriesType type);
// TODO: who owns the series now? maybe owned by chart and returned a reference instead...
QChartSeries* createSeries(QList<qreal> x, QList<qreal> y, QChartSeries::QChartSeriesType type);
Michal Klocek
adds missing files form previous commit
r12
Michal Klocek
Refactor current draft to fit int current design specs...
r21 virtual void setSize(const QSizeF& rect);
Michal Klocek
adds missing files form previous commit
r12 void setMargin(int margin);
Michal Klocek
Adds pimpl to qchart class
r28 int margin() const;
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 signals:
Tero Ahola
Removed scale from chart's sizeChanged signals
r54 void sizeChanged(QRectF rect);
void scaleChanged(qreal xscale, qreal yscale);
Michal Klocek
adds missing files form previous commit
r12
private:
Michal Klocek
Adds pimpl to qchart class
r28 Q_DISABLE_COPY(QChart)
Michal Klocek
Removes PIMPL for now...
r53 Axis* m_axisX;
Axis* m_axisY;
XYGrid* m_grid;
QRect m_rect;
QList<const QChartSeries*> m_series;
QList<XYPlotDomain> m_plotDomainList;
QList<XYLineChartItem*> m_xyLineChartItems;
QList<QGraphicsItem*> m_items;
int m_plotDataIndex;
int m_marginSize;
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
QList<BarGroup*> m_BarGroupItems;
Michal Klocek
adds missing files form previous commit
r12 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
#endif