Added dialog for HTML export. Grouping in Switchboard shortcuts
10 void AnimPoint::operator= ( const AnimPoint & other )
15 void AnimPoint::operator= ( const QPointF & other )
22 bool AnimPoint::operator== ( const QPointF& other )
28 bool AnimPoint::operator== ( AnimPoint other )
30 if (rx() != other.rx() ) return false;
31 if (ry() != other.ry() ) return false;
32 if (startPos != other.startPos) return false;
33 if (destPos != other.destPos) return false;
34 if (animated != other.animated ) return false;
39 void AnimPoint::init ()
43 startPos=QPointF(0,0);
49 void AnimPoint::copy (AnimPoint other)
53 startPos=other.startPos;
54 destPos=other.destPos;
56 animated=other.animated;
58 animTicks=other.animTicks;
61 void AnimPoint::setStart(const QPointF &p)
67 QPointF AnimPoint::getStart()
73 void AnimPoint::setDest(const QPointF &p)
79 QPointF AnimPoint::getDest()
84 void AnimPoint::setTicks (const uint &t)
89 uint AnimPoint::getTicks()
91 return (uint) animTicks;
94 void AnimPoint::setAnimated(bool b)
100 bool AnimPoint::isAnimated()
105 bool AnimPoint::animate()
107 if (!animated) return animated;
118 // Some math to slow down the movement in the end
119 qreal f=1-n/animTicks;
121 setX (startPos.x() + vector.x()*ff );
122 setY (startPos.y() + vector.y()*ff );
127 void AnimPoint::initVector()
129 vector.setX (destPos.x()-startPos.x() );
130 vector.setY (destPos.y()-startPos.y() );