00001 #ifndef KDCHARTCUSTOMBOX_H 00002 #define KDCHARTCUSTOMBOX_H 00003 00004 #include <qobject.h> 00005 #include "KDChartCustomBox.h" 00006 class KDChartCustomBox; 00007 class KDChartTextPiece; 00008 class KDChartCustomBoxWrapper :public QObject 00009 { 00010 Q_OBJECT 00011 00012 public: 00013 KDChartCustomBoxWrapper( KDChartCustomBox* ); 00014 00015 public slots: 00016 const KDChartTextPiece* content() const; 00017 00018 00019 // These methods need to be here, for the enums to work. 00020 void setAnchorPosition( int position ) 00021 { 00022 _data->setAnchorPosition( (KDChartEnums::PositionFlag) position ); 00023 } 00024 00025 00026 00027 private: 00028 KDChartCustomBox* _data; 00029 }; 00030 00031 00032 #endif /* KDCHARTCUSTOMBOX_H */ 00033