animpoint.h
author insilmaril
Fri Feb 01 15:28:35 2008 +0000 (2008-02-01)
changeset 663 827d334d55f1
child 688 d0086df58648
permissions -rw-r--r--
Added brasilian translation by Amadeu Júnior
insilmaril@461
     1
#ifndef ANIMPOINT_H
insilmaril@461
     2
#define ANIMPOINT_H
insilmaril@461
     3
insilmaril@461
     4
#include <QPointF>
insilmaril@461
     5
insilmaril@461
     6
class AnimPoint: public QPointF
insilmaril@461
     7
{
insilmaril@461
     8
public:
insilmaril@461
     9
    AnimPoint();
insilmaril@461
    10
	void operator= ( const AnimPoint & );
insilmaril@461
    11
	void operator= ( const QPointF & );
insilmaril@461
    12
	bool operator== ( const QPointF & );
insilmaril@461
    13
	bool operator== ( AnimPoint  );
insilmaril@461
    14
	void init();
insilmaril@461
    15
	void copy(AnimPoint other);
insilmaril@461
    16
	void setDest (const QPointF &);
insilmaril@461
    17
	void setAnimated(bool);
insilmaril@461
    18
	bool isAnimated ();
insilmaril@461
    19
	void animate();
insilmaril@461
    20
insilmaril@461
    21
private:
insilmaril@461
    22
	QPointF currentPos;
insilmaril@461
    23
	QPointF destPos;
insilmaril@461
    24
	qreal n;
insilmaril@461
    25
    bool animated;
insilmaril@461
    26
insilmaril@461
    27
};
insilmaril@461
    28
insilmaril@461
    29
#endif