Commit Graph

109 Commits

Author SHA1 Message Date
Aaron J. Seigo
1f216930ce quiet up some debug that isn't really needed and only gives people concern :)
svn path=/trunk/KDE/kdelibs/; revision=1134913
2010-06-05 17:35:12 +00:00
Adenilson Cavalcanti Da Silva
e6e20afd70 Fixing javascript animation mapping.
svn path=/trunk/KDE/kdelibs/; revision=1123281
2010-05-05 19:43:45 +00:00
Aaron J. Seigo
d28ae88ed4 this allows the anims to actually be defined in the theme successfully without pre-loading anything
svn path=/trunk/KDE/kdelibs/; revision=1120261
2010-04-28 18:14:37 +00:00
Aaron J. Seigo
cea78a8dd1 catch mappings of js to stock anims
svn path=/trunk/KDE/kdelibs/; revision=1120258
2010-04-28 18:10:01 +00:00
Aaron J. Seigo
736c381bbe * move script file loading from Animator to AnimationScriptEngine
* don't use camel case includes for kdelibs classes in files which are themselves in kdelibs
* add my copyright to these files since they are approaching 100% code written by me

svn path=/trunk/KDE/kdelibs/; revision=1120250
2010-04-28 17:51:46 +00:00
Aaron J. Seigo
0cf62abb09 * constness in create method signature
* use the create method for javascript from the create method for stock anims when the stock anim is mapped to a js anim

svn path=/trunk/KDE/kdelibs/; revision=1120245
2010-04-28 17:45:24 +00:00
Aaron J. Seigo
34a0cf1719 * respect animation mappings
* allow loading of javascript anims

svn path=/trunk/KDE/kdelibs/; revision=1120242
2010-04-28 17:41:16 +00:00
Adenilson Cavalcanti Da Silva
94d804635a Adding an overloaded factory create method.
svn path=/trunk/KDE/kdelibs/; revision=1119264
2010-04-26 21:30:55 +00:00
Aaron J. Seigo
c08007f131 make the naming consistent
svn path=/trunk/KDE/kdelibs/; revision=1118099
2010-04-23 22:36:17 +00:00
Bruno de Oliveira Abinader
51a9b1ac72 Added Plasma::Animator::easingCurve() pre-defined easing curves factory.
Using this, Plasma::PendulumCurve now longer needs to be public :-)

svn path=/trunk/KDE/kdelibs/; revision=1118090
2010-04-23 20:55:46 +00:00
Bruno de Oliveira Abinader
a8975d2e2d Initial WaterAnimation implementation
This water animation uses the RippleEffect class to simulate a cool water animation on the target widget

svn path=/trunk/KDE/kdelibs/; revision=1116474
2010-04-19 15:09:36 +00:00
Marco Martin
586df4c6ac a class to handle transitions betwen pixmap.
puhbutton port in the works too


svn path=/trunk/KDE/kdelibs/; revision=1077924
2010-01-21 07:23:18 +00:00
Igor Trindade Oliveira
e2cf011103 plasma animations: removing custom animation. the animations done by custom can be done adding a property and using qpropertyanimation
svn path=/trunk/KDE/kdelibs/; revision=1073191
2010-01-11 20:06:14 +00:00
Andreas Hartmetz
ee374de18f build
svn path=/trunk/KDE/kdelibs/; revision=1073148
2010-01-11 18:24:44 +00:00
Igor Trindade Oliveira
196172bc19 add custom animation in animator factory
svn path=/trunk/KDE/kdelibs/; revision=1073140
2010-01-11 17:53:35 +00:00
John Layt
6e9943e36c krazy fixes, mostly include guards and copyright tags
svn path=/trunk/KDE/kdelibs/; revision=1066779
2009-12-27 22:16:11 +00:00
Aaron J. Seigo
939449050f everytime i look in this file and scoot by these lines i think "uh oh, memory leak?" until i glance a few dozen lines further down; just stick to the idioms
svn path=/trunk/KDE/kdelibs/; revision=1063023
2009-12-16 18:41:08 +00:00
Aaron J. Seigo
bc7ac9cd23 geo -> geometry (let's not be lazy :)
svn path=/trunk/KDE/kdelibs/; revision=1060136
2009-12-08 09:22:51 +00:00
Adenilson Cavalcanti Da Silva
df6a9b7a36 Renaming stackedrotation header file.
svn path=/trunk/KDE/kdelibs/; revision=1060049
2009-12-07 23:26:24 +00:00
Igor Trindade Oliveira
6cc357bb94 add zoom animation to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1059117
2009-12-05 20:23:13 +00:00
Igor Trindade Oliveira
49e27b8396 add GeoAnimation to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1059087
2009-12-05 19:54:27 +00:00
Aaron J. Seigo
358a456a9d no need for pause now that Plasma::Animator isn't a factory for QAbAnim but IsA QAbAnim (with Plasma::Animator being the only factory)
svn path=/trunk/KDE/kdelibs/; revision=1058597
2009-12-04 19:16:46 +00:00
Adenilson Cavalcanti Da Silva
818e93a576 Amazon sized patch... So many changes that I can hardly remember what they are,
but this is the list from what I can recall:
- removing expand animation (it is a case of grow animation)
- removing AbstractAnimation and using QAbstractAnimation as the common base
- animations are non longer factories, but real animation (so it is just no
issue to mesh then with user created animations)
- animation group will correctly revert the direction of all subanimations
(useful for rewinding an animation)
- fixed opacity effect in pulse animation (now it works correctly)
- there is not 'forward' property, but animation 'direction' (this is how
rewinding an animation must be done)
- direction now is movementDirection property (used in SlideAnimation and RotationStacked)
- the weakpointer for the actual animaiton is non longer in AnimationPrivate but
in each specialized animation class
- hide property is being removed (in progress) since it really is a case of Fade

I guess this is it, now is just a matter of iron out the remaining bugs and polish
the public API.



svn path=/trunk/KDE/kdelibs/; revision=1057993
2009-12-03 19:30:02 +00:00
Igor Trindade Oliveira
e90e2d54b7 add rotationstackedanimation in animator factory
svn path=/trunk/KDE/kdelibs/; revision=1039221
2009-10-23 02:46:55 +00:00
Aaron J. Seigo
33b5a8f082 mark the private headers as such
svn path=/trunk/KDE/kdelibs/; revision=1039133
2009-10-22 19:46:16 +00:00
Aaron J. Seigo
545164b5b8 add PauseAnimation
svn path=/trunk/KDE/kdelibs/; revision=1038847
2009-10-22 03:59:27 +00:00
Aaron J. Seigo
73b60b9a55 * keep the non-deprecated stuff out of deprecated/, such as the new animator factory method
* don't be lazy with the names (Anim->Animation)

svn path=/trunk/KDE/kdelibs/; revision=1038307
2009-10-21 01:51:31 +00:00
Adenilson Cavalcanti Da Silva
a4b408277c Merging Mehmet Ali Akmanalp new plasma::Animator code. It uses the new and shiny
Qt 4.6 animation API (a.k.a. kinetic) to implement effects.

Current implemented animations: fade, slide, expand, grow (next will be
pulse and rotation).

Further discussion is here:
http://reviewboard.kde.org/r/1512/


svn path=/trunk/KDE/kdelibs/; revision=1035749
2009-10-15 19:36:38 +00:00
Aaron J. Seigo
e1f9f6739a catch when items are scheduled for deletion and are in the next items up in the animation cycle. certainy a potential problem, and possibly/likely the cause of 198338
CCBUG:198338

svn path=/trunk/KDE/kdelibs/; revision=990658
2009-07-02 22:30:47 +00:00
Aaron J. Seigo
df45adfbe9 fix my fix: we can't add items more than once otherwise we double delete them.
BUG:195943

svn path=/trunk/KDE/kdelibs/; revision=979973
2009-06-10 20:31:15 +00:00
Aaron J. Seigo
c250642e44 always remove the item we're going to delete from the main collection, however
svn path=/trunk/KDE/kdelibs/; revision=979140
2009-06-09 03:39:37 +00:00
Aaron J. Seigo
74a6212595 don't delete states when we're running animations: we call into other objects which may decide to stop or start other animations, which would cause double deletes. this one's bugged me (and our users; it's bee reported at least 18 times!) for a good long while, and finally tonight i figured it out :)
BUG:192066

svn path=/trunk/KDE/kdelibs/; revision=979139
2009-06-09 03:37:22 +00:00
Aaron J. Seigo
6804f6fe65 ensure frameInterval isn't zero, prevents div-by-zero
BUG:190218

svn path=/trunk/KDE/kdelibs/; revision=957201
2009-04-21 15:19:43 +00:00
Aaron J. Seigo
18211150b2 update using the real frame interval to get a proper distribution across the frame range of custom animations
svn path=/trunk/KDE/kdelibs/; revision=950439
2009-04-07 07:43:24 +00:00
Aaron J. Seigo
599fcdd138 ignore timer id's that aren't ours
svn path=/trunk/KDE/kdelibs/; revision=944581
2009-03-25 19:10:02 +00:00
Frederik Schwarzer
83f2503169 global typo fix
svn path=/trunk/KDE/kdelibs/; revision=922431
2009-02-07 01:12:28 +00:00
Laurent Montel
eebb6178a5 Fix iterator
svn path=/trunk/KDE/kdelibs/; revision=906617
2009-01-06 13:09:05 +00:00
Aaron J. Seigo
25b3937022 wow, that was massively broken!
svn path=/trunk/KDE/kdelibs/; revision=893519
2008-12-06 18:58:32 +00:00
Michel Hermier
69a3b53112 Don't leak the animator driver of the animator instance.
svn path=/trunk/KDE/kdelibs/; revision=883002
2008-11-11 21:14:32 +00:00
Dmitry Suzdalev
4de7d13a16 Qt docs for qstrdup() say:
"Ownership is passed to the caller, so the returned string must be deleted using delete[]"

Thanks go to valgrind for helping to find this nasty crash! :)

svn path=/trunk/KDE/kdelibs/; revision=881260
2008-11-07 16:09:52 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Allen Winter
214ac5f91f clean up some kDebugs and kWarnings.
shorten some extra long lines.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870290
2008-10-12 10:20:02 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
a680170b8f * fix div-by-zero
* based frame count on the animation duration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863639
2008-09-22 18:34:58 +00:00
Aaron J. Seigo
2753276dbb increase quality of anims
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862847
2008-09-20 05:46:45 +00:00
Aaron J. Seigo
88ac98fdb0 fix up the rest of the math here, now anims are appropriately smooth according to the AnimationDriver settings
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862832
2008-09-20 01:02:20 +00:00
Aaron J. Seigo
12443b7d98 curves ... no longer just a place for women to work out.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859643
2008-09-10 20:51:53 +00:00
Aaron J. Seigo
8b3510bf7e * fix a math error in the movement framerate calc
* increase the quality of movements (more frames)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859588
2008-09-10 18:42:11 +00:00