Review Request: Added "pendulum" effect for plasma animations

Bruno Abinader brunoabinader at gmail.com
Wed Apr 7 19:18:12 CEST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3513/
-----------------------------------------------------------

(Updated 2010-04-07 17:18:12.561454)


Review request for Plasma, igorto and Adenilson Cavalcanti.


Changes
-------

This patch generated a discussion which ended up on a cooler idea (thanks notmart, Savago and igorto!) that is providing two properties on the Animation class in order to set up the pendulum behavior ("attenuation" for the amount of delta value decrement between each bounce step and "bounceCenter" to define from which point the target widget shall have the same distance throughout the whole animation).


Summary (updated)
-------

The "pendulum" effect should be a special set of properties, two of them will be added to Animator class and "loopCount" will be used to specify how many bounces the animation will have. These new properties are specified below:

- "attenuation": In a scale from 1 to 0, specifies a value which is used for decrementing the delta value used to calculate the animation frames;
- "bounceCenter": Specifies a QPointf from which the animation is centered;


Diffs
-----

  trunk/KDE/kdelibs/plasma/animations/rotation_p.h 1111462 
  trunk/KDE/kdelibs/plasma/animations/rotation.cpp 1111462 

Diff: http://reviewboard.kde.org/r/3513/diff


Testing (updated)
-------


Thanks,

Bruno



More information about the Plasma-devel mailing list