X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=animpoint.h;fp=animpoint.h;h=2e29673fb54633c44dd4cb44dbb67703f47639ea;hb=2f79edb68ae955de3c3118a7f9181c7a1f3b0d72;hp=0000000000000000000000000000000000000000;hpb=eeb718b059f8b14807b976ae6410a3021b2d4576;p=vym diff --git a/animpoint.h b/animpoint.h new file mode 100644 index 0000000..2e29673 --- /dev/null +++ b/animpoint.h @@ -0,0 +1,38 @@ +#ifndef ANIMPOINT_H +#define ANIMPOINT_H + +#include + +class AnimPoint: public QPointF +{ +public: + AnimPoint(); + void operator= ( const AnimPoint & ); + void operator= ( const QPointF & ); + bool operator== ( const QPointF & ); + bool operator== ( AnimPoint ); + void init(); + void copy(AnimPoint other); + void setStart (const QPointF &); + QPointF getStart(); + void setDest (const QPointF &); + QPointF getDest(); + void setTicks (const uint &t); + uint getTicks(); + void setAnimated(bool); + bool isAnimated (); + bool animate(); + +private: + void initVector(); + + QPointF startPos; + QPointF destPos; + QPointF vector; + qreal n; + qreal animTicks; + bool animated; + +}; + +#endif