##// END OF EJS Templates
Adds loosenumber algorithm...
Adds loosenumber algorithm * adds loose numbers , natvie numbers * rewrites zoom handling * remove zoom stack since loose numbers takes control * adds number of fractional digits to show

File last commit:

r676:2e47e5550be5
r678:e39e59ad9161
Show More
qpieseries.h
80 lines | 2.0 KiB | text/x-c | CLexer
Jani Honkonen
Pie chart refactoring
r142 #ifndef PIESERIES_H
#define PIESERIES_H
Jani Honkonen
Adding PIMPL to pie
r669 #include <qseries.h>
Jani Honkonen
Pie chart refactoring
r142
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Jani Honkonen
Adding PIMPL to pie
r669 class QPieSeriesPrivate;
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 class QPieSlice;
Jani Honkonen
Use signals from pieseries, visible hover and exploding slices
r157
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QPieSeries : public QSeries
Jani Honkonen
Pie chart refactoring
r142 {
Q_OBJECT
public:
QPieSeries(QObject *parent = 0);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 virtual ~QPieSeries();
Jani Honkonen
Pie chart refactoring
r142
public: // from QChartSeries
Michal Klocek
Rename QChartSeries to QSeries
r360 QSeriesType type() const;
Jani Honkonen
Pie chart refactoring
r142
public:
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437
// slice setters
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 void add(QPieSlice* slice);
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 void add(QList<QPieSlice*> slices);
Marek Rosa
Added insert pie slice function to QPieSeries
r604 void insert(int i, QPieSlice* slice);
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 void replace(QList<QPieSlice*> slices);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 void remove(QPieSlice* slice);
void clear();
Jani Honkonen
Pie chart refactoring
r142
Jani Honkonen
Adding PIMPL to pie
r669 // slice getters
Jani Honkonen
Add documentation to pie
r314 QList<QPieSlice*> slices() const;
Jani Honkonen
Refactoring piechart API (and internals)
r174
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 // calculated data
int count() const;
Jani Honkonen
Refactoring pie series and animations.
r621 bool isEmpty() const;
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 qreal total() const;
// pie customization
Jani Honkonen
Renamed the "factor" stuff from pie series API.
r498 void setPiePosition(qreal relativeHorizontalPosition, qreal relativeVerticalPosition);
qreal pieHorizontalPosition() const;
qreal pieVerticalPosition() const;
void setPieSize(qreal relativeSize);
qreal pieSize() const;
void setPieStartAngle(qreal startAngle);
qreal pieStartAngle() const;
void setPieEndAngle(qreal endAngle);
qreal pieEndAngle() const;
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203
Jani Honkonen
Added a pie chart customization example and refactoring the pie interface.
r437 // convenience function
QPieSeries& operator << (QPieSlice* slice);
QPieSlice* add(qreal value, QString name);
Jani Honkonen
Review corrections for pie
r386 void setLabelsVisible(bool visible = true);
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203
Marek Rosa
Added data from model support to QPieSeries(modify, remove). Data from model example updated
r597 // data from model
bool setModel(QAbstractItemModel* model);
void setModelMapping(int modelValuesLine, int modelLabelsLine, Qt::Orientation orientation = Qt::Vertical);
Jani Honkonen
Use signals from pieseries, visible hover and exploding slices
r157 Q_SIGNALS:
Jani Honkonen
Refactor pie (again). QPieSlice's now emit signals and no id's anymore. Just pointers in the interface.
r203 void clicked(QPieSlice* slice);
void hoverEnter(QPieSlice* slice);
void hoverLeave(QPieSlice* slice);
Jani Honkonen
Refactoring pie series and animations.
r621 void added(QList<QPieSlice*> slices);
void removed(QList<QPieSlice*> slices);
void piePositionChanged();
void pieSizeChanged();
Jani Honkonen
Implementing slice label
r181
Jani Honkonen
Refactoring piechart API (and internals)
r174 private:
Jani Honkonen
Adding PIMPL to pie
r669 QPieSeriesPrivate * const d_ptr;
Q_DECLARE_PRIVATE(QPieSeries)
Q_DISABLE_COPY(QPieSeries)
Jani Honkonen
Getting rid of friend classes in pie API
r676
public:
typedef QPieSeriesPrivate * const DataPtr;
inline DataPtr &data_ptr() { return d_ptr; }
Jani Honkonen
Pie chart refactoring
r142 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // PIESERIES_H