00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KDCHART_PIE_ATTRIBUTES_H
00027 #define KDCHART_PIE_ATTRIBUTES_H
00028
00029 #include <QMetaType>
00030 #include "KDChartAbstractThreeDAttributes.h"
00031 #include "KDChartGlobal.h"
00032
00033 namespace KDChart {
00034
00038 class KDCHART_EXPORT PieAttributes
00039 {
00040 public:
00041 PieAttributes();
00042 PieAttributes( const PieAttributes& );
00043 PieAttributes &operator= ( const PieAttributes& );
00044
00045 ~PieAttributes();
00046
00058 void setExplode( bool explode );
00059
00061 bool explode() const;
00062
00069 void setExplodeFactor( qreal factor );
00070
00072 qreal explodeFactor() const;
00073
00074 bool operator==( const PieAttributes& ) const;
00075 inline bool operator!=( const PieAttributes& other ) const { return !operator==(other); }
00076
00077 private:
00078 KDCHART_DECLARE_PRIVATE_BASE_VALUE( PieAttributes )
00079 };
00080
00081 }
00082
00083 #if !defined(QT_NO_DEBUG_STREAM)
00084 KDCHART_EXPORT QDebug operator<<(QDebug, const KDChart::PieAttributes& );
00085 #endif
00086
00087
00088 Q_DECLARE_METATYPE( KDChart::PieAttributes )
00089 Q_DECLARE_TYPEINFO( KDChart::PieAttributes, Q_MOVABLE_TYPE );
00090 KDCHART_DECLARE_SWAP_SPECIALISATION( KDChart::PieAttributes )
00091
00092 #endif // KDCHART_PIE_ATTRIBUTES_H