equal
deleted
inserted
replaced
72 Q_INTERFACES(QDeclarativePropertyValueSource) |
72 Q_INTERFACES(QDeclarativePropertyValueSource) |
73 Q_ENUMS(Loops) |
73 Q_ENUMS(Loops) |
74 Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged) |
74 Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged) |
75 Q_PROPERTY(bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged) |
75 Q_PROPERTY(bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged) |
76 Q_PROPERTY(bool alwaysRunToEnd READ alwaysRunToEnd WRITE setAlwaysRunToEnd NOTIFY alwaysRunToEndChanged) |
76 Q_PROPERTY(bool alwaysRunToEnd READ alwaysRunToEnd WRITE setAlwaysRunToEnd NOTIFY alwaysRunToEndChanged) |
77 Q_PROPERTY(int loops READ loops WRITE setLoops NOTIFY loopsChanged) |
77 Q_PROPERTY(int loops READ loops WRITE setLoops NOTIFY loopCountChanged) |
78 Q_CLASSINFO("DefaultMethod", "start()") |
78 Q_CLASSINFO("DefaultMethod", "start()") |
79 |
79 |
80 public: |
80 public: |
81 QDeclarativeAbstractAnimation(QObject *parent=0); |
81 QDeclarativeAbstractAnimation(QObject *parent=0); |
82 virtual ~QDeclarativeAbstractAnimation(); |
82 virtual ~QDeclarativeAbstractAnimation(); |
195 { |
195 { |
196 Q_OBJECT |
196 Q_OBJECT |
197 Q_DECLARE_PRIVATE(QDeclarativePropertyAction) |
197 Q_DECLARE_PRIVATE(QDeclarativePropertyAction) |
198 |
198 |
199 Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged) |
199 Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged) |
200 Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY targetChanged) |
200 Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged) |
201 Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged) |
201 Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged) |
202 Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets) |
202 Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets) |
203 Q_PROPERTY(QDeclarativeListProperty<QObject> exclude READ exclude) |
203 Q_PROPERTY(QDeclarativeListProperty<QObject> exclude READ exclude) |
204 Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged) |
204 Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged) |
205 |
205 |
223 void setValue(const QVariant &); |
223 void setValue(const QVariant &); |
224 |
224 |
225 Q_SIGNALS: |
225 Q_SIGNALS: |
226 void valueChanged(const QVariant &); |
226 void valueChanged(const QVariant &); |
227 void propertiesChanged(const QString &); |
227 void propertiesChanged(const QString &); |
228 void targetChanged(QObject *, const QString &); |
228 void targetChanged(); |
|
229 void propertyChanged(); |
229 |
230 |
230 protected: |
231 protected: |
231 virtual void transition(QDeclarativeStateActions &actions, |
232 virtual void transition(QDeclarativeStateActions &actions, |
232 QDeclarativeProperties &modified, |
233 QDeclarativeProperties &modified, |
233 TransitionDirection direction); |
234 TransitionDirection direction); |
244 Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged) |
245 Q_PROPERTY(int duration READ duration WRITE setDuration NOTIFY durationChanged) |
245 Q_PROPERTY(QVariant from READ from WRITE setFrom NOTIFY fromChanged) |
246 Q_PROPERTY(QVariant from READ from WRITE setFrom NOTIFY fromChanged) |
246 Q_PROPERTY(QVariant to READ to WRITE setTo NOTIFY toChanged) |
247 Q_PROPERTY(QVariant to READ to WRITE setTo NOTIFY toChanged) |
247 Q_PROPERTY(QEasingCurve easing READ easing WRITE setEasing NOTIFY easingChanged) |
248 Q_PROPERTY(QEasingCurve easing READ easing WRITE setEasing NOTIFY easingChanged) |
248 Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged) |
249 Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged) |
249 Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY targetChanged) |
250 Q_PROPERTY(QString property READ property WRITE setProperty NOTIFY propertyChanged) |
250 Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged) |
251 Q_PROPERTY(QString properties READ properties WRITE setProperties NOTIFY propertiesChanged) |
251 Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets) |
252 Q_PROPERTY(QDeclarativeListProperty<QObject> targets READ targets) |
252 Q_PROPERTY(QDeclarativeListProperty<QObject> exclude READ exclude) |
253 Q_PROPERTY(QDeclarativeListProperty<QObject> exclude READ exclude) |
253 |
254 |
254 public: |
255 public: |
290 void durationChanged(int); |
291 void durationChanged(int); |
291 void fromChanged(QVariant); |
292 void fromChanged(QVariant); |
292 void toChanged(QVariant); |
293 void toChanged(QVariant); |
293 void easingChanged(const QEasingCurve &); |
294 void easingChanged(const QEasingCurve &); |
294 void propertiesChanged(const QString &); |
295 void propertiesChanged(const QString &); |
295 void targetChanged(QObject *, const QString &); |
296 void targetChanged(); |
|
297 void propertyChanged(); |
296 }; |
298 }; |
297 |
299 |
298 class Q_AUTOTEST_EXPORT QDeclarativeColorAnimation : public QDeclarativePropertyAnimation |
300 class Q_AUTOTEST_EXPORT QDeclarativeColorAnimation : public QDeclarativePropertyAnimation |
299 { |
301 { |
300 Q_OBJECT |
302 Q_OBJECT |
301 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
303 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
302 Q_PROPERTY(QColor from READ from WRITE setFrom NOTIFY fromChanged) |
304 Q_PROPERTY(QColor from READ from WRITE setFrom) |
303 Q_PROPERTY(QColor to READ to WRITE setTo NOTIFY toChanged) |
305 Q_PROPERTY(QColor to READ to WRITE setTo) |
304 |
306 |
305 public: |
307 public: |
306 QDeclarativeColorAnimation(QObject *parent=0); |
308 QDeclarativeColorAnimation(QObject *parent=0); |
307 virtual ~QDeclarativeColorAnimation(); |
309 virtual ~QDeclarativeColorAnimation(); |
308 |
310 |
316 class Q_AUTOTEST_EXPORT QDeclarativeNumberAnimation : public QDeclarativePropertyAnimation |
318 class Q_AUTOTEST_EXPORT QDeclarativeNumberAnimation : public QDeclarativePropertyAnimation |
317 { |
319 { |
318 Q_OBJECT |
320 Q_OBJECT |
319 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
321 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
320 |
322 |
321 Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged) |
323 Q_PROPERTY(qreal from READ from WRITE setFrom) |
322 Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged) |
324 Q_PROPERTY(qreal to READ to WRITE setTo) |
323 |
325 |
324 public: |
326 public: |
325 QDeclarativeNumberAnimation(QObject *parent=0); |
327 QDeclarativeNumberAnimation(QObject *parent=0); |
326 virtual ~QDeclarativeNumberAnimation(); |
328 virtual ~QDeclarativeNumberAnimation(); |
327 |
329 |
341 class Q_AUTOTEST_EXPORT QDeclarativeVector3dAnimation : public QDeclarativePropertyAnimation |
343 class Q_AUTOTEST_EXPORT QDeclarativeVector3dAnimation : public QDeclarativePropertyAnimation |
342 { |
344 { |
343 Q_OBJECT |
345 Q_OBJECT |
344 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
346 Q_DECLARE_PRIVATE(QDeclarativePropertyAnimation) |
345 |
347 |
346 Q_PROPERTY(QVector3D from READ from WRITE setFrom NOTIFY fromChanged) |
348 Q_PROPERTY(QVector3D from READ from WRITE setFrom) |
347 Q_PROPERTY(QVector3D to READ to WRITE setTo NOTIFY toChanged) |
349 Q_PROPERTY(QVector3D to READ to WRITE setTo) |
348 |
350 |
349 public: |
351 public: |
350 QDeclarativeVector3dAnimation(QObject *parent=0); |
352 QDeclarativeVector3dAnimation(QObject *parent=0); |
351 virtual ~QDeclarativeVector3dAnimation(); |
353 virtual ~QDeclarativeVector3dAnimation(); |
352 |
354 |
362 { |
364 { |
363 Q_OBJECT |
365 Q_OBJECT |
364 Q_DECLARE_PRIVATE(QDeclarativeRotationAnimation) |
366 Q_DECLARE_PRIVATE(QDeclarativeRotationAnimation) |
365 Q_ENUMS(RotationDirection) |
367 Q_ENUMS(RotationDirection) |
366 |
368 |
367 Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged) |
369 Q_PROPERTY(qreal from READ from WRITE setFrom) |
368 Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged) |
370 Q_PROPERTY(qreal to READ to WRITE setTo) |
369 Q_PROPERTY(RotationDirection direction READ direction WRITE setDirection NOTIFY directionChanged) |
371 Q_PROPERTY(RotationDirection direction READ direction WRITE setDirection NOTIFY directionChanged) |
370 |
372 |
371 public: |
373 public: |
372 QDeclarativeRotationAnimation(QObject *parent=0); |
374 QDeclarativeRotationAnimation(QObject *parent=0); |
373 virtual ~QDeclarativeRotationAnimation(); |
375 virtual ~QDeclarativeRotationAnimation(); |