##// END OF EJS Templates
Wrong name of the project in test.pro
Wrong name of the project in test.pro

File last commit:

r794:4c76de65bbac
r964:3d3abf0fb029
Show More
piechartitem_p.h
78 lines | 2.3 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
Jani Honkonen
Rename piepresenter -> piechartitem
r568 #ifndef PIECHARTITEM_H
#define PIECHARTITEM_H
Jani Honkonen
Pie chart refactoring
r142
#include "qpieseries.h"
Jani Honkonen
Refactoring the pie for animations (no actual animations yet)
r566 #include "chartitem_p.h"
Jani Honkonen
rename PieSlice -> PieSliceItem
r673 #include "piesliceitem_p.h"
Jani Honkonen
Pie chart refactoring
r142
class QGraphicsItem;
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Jani Honkonen
Refactoring the pie for animations (no actual animations yet)
r566 class QPieSlice;
Jani Honkonen
Fix add/remove animation for pie and apply colors from theme when adding/removing
r659 class ChartPresenter;
Jani Honkonen
Pie chart refactoring
r142
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 typedef QHash<QPieSlice*, PieSliceData> PieLayout;
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629
Michal Klocek
Refactors chartitem...
r677 class PieChartItem : public ChartItem
Jani Honkonen
Pie chart refactoring
r142 {
Q_OBJECT
public:
// TODO: use a generic data class instead of x and y
Michal Klocek
Refactors chartitem...
r677 PieChartItem(QPieSeries *series, ChartPresenter *presenter);
Jani Honkonen
Rename piepresenter -> piechartitem
r568 ~PieChartItem();
Jani Honkonen
Pie chart refactoring
r142
Jani Honkonen
Use signals from pieseries, visible hover and exploding slices
r157 public: // from QGraphicsItem
Jani Honkonen
Pie chart refactoring
r142 QRectF boundingRect() const { return m_rect; }
Jani Honkonen
Refactoring piechart API (and internals)
r174 void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
Jani Honkonen
Pie chart refactoring
r142
public Q_SLOTS:
Jani Honkonen
Refactoring pie series and animations.
r621 void initialize();
void handleSlicesAdded(QList<QPieSlice*> slices);
void handleSlicesRemoved(QList<QPieSlice*> slices);
void handlePieLayoutChanged();
Jani Honkonen
Refactoring the pie for animations (no actual animations yet)
r566 void handleSliceChanged();
void handleDomainChanged(qreal, qreal, qreal, qreal);
Jani Honkonen
Pie chart refactoring
r142 void handleGeometryChanged(const QRectF& rect);
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 public:
Jani Honkonen
Refactoring pie series and animations.
r621 void calculatePieLayout();
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 PieSliceData sliceData(QPieSlice *slice);
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629 PieLayout calculateLayout();
void applyLayout(const PieLayout &layout);
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 void updateLayout(QPieSlice *slice, const PieSliceData &sliceData);
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629 void setLayout(const PieLayout &layout);
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 void setLayout(QPieSlice *slice, const PieSliceData &sliceData);
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 void destroySlice(QPieSlice *slice);
Jani Honkonen
Refactoring piechart API (and internals)
r174
Jani Honkonen
Pie chart refactoring
r142 private:
Jani Honkonen
rename PieSlice -> PieSliceItem
r673 friend class PieSliceItem;
QHash<QPieSlice*, PieSliceItem*> m_slices;
Jani Honkonen
Refactoring piechart API (and internals)
r174 QPieSeries *m_series;
Jani Honkonen
Pie chart refactoring
r142 QRectF m_rect;
Jani Honkonen
Introducing vertical and horizontal factors to control the position of the pie.
r454 QPointF m_pieCenter;
qreal m_pieRadius;
Jani Honkonen
Pie chart refactoring
r142 };
QTCOMMERCIALCHART_END_NAMESPACE
Jani Honkonen
Rename piepresenter -> piechartitem
r568 #endif // PIECHARTITEM_H