42 #ifndef QDECLARATIVEANIMATION_P_H 43 #define QDECLARATIVEANIMATION_P_H 56 #include "private/qdeclarativeanimation_p.h" 58 #include "private/qdeclarativenullablevalue_p_p.h" 59 #include "private/qdeclarativetimeline_p_p.h" 65 #include <QtCore/QPauseAnimation> 66 #include <QtCore/QVariantAnimation> 67 #include <QtCore/QAnimationGroup> 68 #include <QtGui/QColor> 71 #include <private/qobject_p.h> 72 #include <private/qvariantanimation_p.h> 87 template<
class T,
void (T::*method)()>
110 if (state() == Running)
112 if (policy == DeleteWhenStopped)
122 if (newState == Running) {
124 animAction->doAction();
125 if (state() == Stopped && policy == DeleteWhenStopped) {
142 virtual void setValue(
qreal value) = 0;
154 if (state() == Running)
156 if (policy == DeleteWhenStopped)
172 animValue->setValue(value.
toReal());
177 if (newState == Running) {
180 *fromSourced =
false;
191 template<
class T,
void (T::*method)(
int)>
210 : running(false), paused(false), alwaysRunToEnd(false),
211 connectedTimeLine(false), componentComplete(true),
212 avoidPropertyValueSourceStart(false), disableUserControl(false),
213 registered(false), loopCount(1), group(0) {}
307 rangeIsSet(false), defaultToInterpolatorType(0), interpolatorType(0), interpolator(0), va(0), actions(0) {}
353 via(0), topLevelGroup(0), startAction(0), endAction(0) {}
392 void setValue(
qreal v);
397 #endif // QDECLARATIVEANIMATION_P_H The QVariant class acts like a union for the most common Qt data types.
QDeclarativePauseAnimationPrivate()
void setAnimValue(QDeclarativeBulkValueUpdater *value, DeletionPolicy p)
QList< QObject * > targets
QDeclarativeStateActions * actions
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeAnchorAnimationPrivate()
QSequentialAnimationGroup * topLevelGroup
virtual int duration() const
QActionAnimation * startAction
The QSequentialAnimationGroup class provides a sequential group of animations.
QList< QDeclarativeItem * > targets
The QPointF class defines a point in the plane using floating point precision.
QActionAnimation(QAbstractAnimationAction *action, QObject *parent=0)
The QPauseAnimation class provides a pause for QSequentialAnimationGroup.
QVariantAnimation::Interpolator interpolator
QDeclarativePropertyActionPrivate()
QDeclarativeAbstractAnimationPrivate()
QVariantAnimation::Interpolator interpolator
The QString class provides a Unicode character string.
virtual void updateCurrentTime(int)
This pure virtual function is called every time the animation's currentTime changes.
QDeclarativeBulkValueUpdater * animValue
The QObject class is the base class of all Qt objects.
virtual void updateState(State newState, State oldState)
virtual ~QDeclarativeBulkValueUpdater()
QVariant(* Interpolator)(const void *from, const void *to, qreal progress)
virtual int duration() const
QDeclarativeNullableValue< QVariant > value
virtual void updateState(State newState, State)
QAnimationActionProxy(T *p)
QDeclarativeScriptString runScriptScript
virtual void doAction()=0
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTickAnimationProxy(T *p, QObject *parent=0)
QAnimationActionProxy< QDeclarativeScriptActionPrivate, &QDeclarativeScriptActionPrivate::execute > proxy
The QDeclarativeScriptString class encapsulates a script and its context.
QDeclarativeBulkValueAnimator * va
QDeclarativeProperty defaultProperty
QDeclarativeBulkValueAnimator * va
The QDeclarativeItem class provides the most basic of all visual items in QML.
The QVariantAnimation class provides an abstract base class for animations.
QDeclarativePropertyAnimationPrivate()
QDeclarativeAnimationGroup * group
QList< QObject * > targets
QAbstractAnimationAction * animAction
QString defaultProperties
~QDeclarativeBulkValueAnimator()
QDeclarativeAnimationPropertyUpdater()
QList< QDeclarativeAbstractAnimation * > animations
bool avoidPropertyValueSourceStart
The State element defines configurations of objects and properties.
The QAbstractAnimation class is the base of all animations.
QDeclarativeParentAnimationPrivate()
QActionAnimation(QObject *parent=0)
QVariantAnimation::Interpolator interpolator
QDeclarativeBulkValueAnimator(QObject *parent=0)
TransformOrigin
Controls the point about which simple transforms like scale apply.
QDeclarativeRotationAnimation::RotationDirection direction
#define Q_DECLARE_PUBLIC(Class)
QDeclarativeAnimationGroupPrivate()
virtual void updateCurrentTime(int msec)
This pure virtual function is called every time the animation's currentTime changes.
QDeclarativeRotationAnimationPrivate()
void setAnimAction(QAbstractAnimationAction *action, DeletionPolicy p)
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
Reimplemented Function
#define Q_AUTOTEST_EXPORT
QDeclarativeItem * newParent
QList< QObject * > exclude
QList< QObject * > exclude
void setFromSourcedValue(bool *value)
The QDeclarativeProperty class abstracts accessing properties on objects created from QML...
virtual ~QAbstractAnimationAction()
virtual void updateCurrentValue(const QVariant &value)
This pure virtual function is called every time the animation's current value changes.
~QDeclarativeAnimationPropertyUpdater()
bool defaultToInterpolatorType
The QAnimationGroup class is an abstract base class for groups of animations.
QDeclarativeItem * target
QActionAnimation * endAction
qreal toReal(bool *ok=0) const
Returns the variant as a qreal if the variant has type() Double , QMetaType::Float ...
QDeclarativeScriptString script
The QList class is a template class that provides lists.
QDeclarativeStateActions actions
Qt::LayoutDirection direction