1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/animpoint.h Thu Apr 10 19:56:11 2008 +0000
1.3 @@ -0,0 +1,29 @@
1.4 +#ifndef ANIMPOINT_H
1.5 +#define ANIMPOINT_H
1.6 +
1.7 +#include <QPointF>
1.8 +
1.9 +class AnimPoint: public QPointF
1.10 +{
1.11 +public:
1.12 + AnimPoint();
1.13 + void operator= ( const AnimPoint & );
1.14 + void operator= ( const QPointF & );
1.15 + bool operator== ( const QPointF & );
1.16 + bool operator== ( AnimPoint );
1.17 + void init();
1.18 + void copy(AnimPoint other);
1.19 + void setDest (const QPointF &);
1.20 + void setAnimated(bool);
1.21 + bool isAnimated ();
1.22 + void animate();
1.23 +
1.24 +private:
1.25 + QPointF currentPos;
1.26 + QPointF destPos;
1.27 + qreal n;
1.28 + bool animated;
1.29 +
1.30 +};
1.31 +
1.32 +#endif