Commit Graph

64 Commits

Author SHA1 Message Date
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
666ff44596 Making Animator factory method static.
svn path=/trunk/KDE/kdelibs/; revision=1038254
2009-10-20 21:54:48 +00:00
Adenilson Cavalcanti Da Silva
1379d29481 Improved factory, it will set the animation parent.
svn path=/trunk/KDE/kdelibs/; revision=1038248
2009-10-20 21:40:36 +00:00
Adenilson Cavalcanti Da Silva
5b9120cae1 Implementing the factory in plasma::Animator for new animation objects.
The user should call Animator::create() with the animation type desired
(e.g. FadeAnimation, GrowAnimation, PulseAnimation, etc).

Next: move animation classes to private directory and rename then
so we can use a proper enumeration name.


svn path=/trunk/KDE/kdelibs/; revision=1038194
2009-10-20 19:54:22 +00:00
Adenilson Cavalcanti Da Silva
c849327042 Adding some new enumerations to map to new animation classes.
The idea is to provide a factory to build those objects.


svn path=/trunk/KDE/kdelibs/; revision=1038185
2009-10-20 19:19:11 +00:00
Marco Martin
b2bb69732a provide the Animator::registerScrollingManager(qgraphicsidget) function.
the animator creates a kineticscroll and associates it with the widget.
in this way we can use kineticscroll outside of libplasma with a single
call.

svn path=/trunk/KDE/kdelibs/; revision=1037751
2009-10-19 22:10:25 +00:00
Adenilson Cavalcanti Da Silva
cb6dddf5cd Workaround to make kdelibs build in OSX 10.5.x (a.k.a. Leopard). Apple should
provide a newer compiler to its users.


svn path=/trunk/KDE/kdelibs/; revision=1036308
2009-10-16 23:32:08 +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
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
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Frederik Schwarzer
ee8d547da8 let me introduce: typo of the year "the the"
mostly seen as
"the the" -> "the"
"the the" -> "to the"
and in its best case
"a the the" -> "" :)

svn path=/trunk/KDE/kdelibs/; revision=864814
2008-09-25 15:05:22 +00:00
Alex Merry
e293d7d785 Specify includes in apidocs, so we get
#include <Plasma/Foo>
at the top of the apidocs pages.


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=852289
2008-08-25 17:47:48 +00:00
Richard Dale
dc878d9033 * Make the multiple inclusion header guard macros all start with PLASMA_
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842922
2008-08-06 09:19:29 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Marco Martin
aadef48088 new optional (so retrocompatible) parameter in the slot called by the custom animation:
the slot can be something like
void animationUpdate(qreal progress, int animId)
it's useful to keep track of multiple animations with a single slot

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=808853
2008-05-17 17:27:18 +00:00
Andreas Hartmetz
9117de06cf dashbot is such a sissy
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802621
2008-04-30 01:30:11 +00:00
Aaron J. Seigo
5482bad2ce protected slots -> Q_PRIVATE_SLOT
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802610
2008-04-29 23:27:17 +00:00
Aaron J. Seigo
67f44e6f0a * constructor + destructor private
* init -> pimpl

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802607
2008-04-29 23:24:09 +00:00
Aaron J. Seigo
0c2b74e11d * animateItem, moveItem return int
* add stopItemAnimation and stopItemMovement

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802605
2008-04-29 23:16:33 +00:00
Aaron J. Seigo
72db181c7c Phase -> Animator
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800875
2008-04-25 03:23:31 +00:00
Aaron J. Seigo
202e01e44d move animator.[c|cpp] -> animationdriver.[h|cpp]
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800872
2008-04-25 03:17:00 +00:00
Aaron J. Seigo
6e80fe4354 Phase becomes Animator
Animator becomes AnimationDriver

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800870
2008-04-25 03:11:59 +00:00
Davide Bettio
aa5f747305 API REVIEW: Phase -> AnimatorDriver
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800840
2008-04-24 23:21:17 +00:00
Davide Bettio
3bfaf57014 API REVIEW: Animation merges with ElementAnimation.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800825
2008-04-24 22:30:53 +00:00
Davide Bettio
84aa9fb8b0 FramesPerSecond -> FPS.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800816
2008-04-24 21:47:25 +00:00
Davide Bettio
ba4beb2835 API REVIEW: curve(element) -> elementAnimationCurve(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800750
2008-04-24 19:28:04 +00:00
Davide Bettio
0dc5009d81 API REVIEW: curve(movement) -> movementAnimationCurve(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800747
2008-04-24 19:22:44 +00:00
Davide Bettio
921afdb3db API REVIEW: curve(animation) -> animationCurve(animation)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800745
2008-04-24 19:18:28 +00:00
Davide Bettio
b1da29061c API REVIEW: duration(element) -> elementAnimationDuration(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800743
2008-04-24 19:11:12 +00:00
Davide Bettio
2c169f97ff API REVIEW: duration(movement) -> movementAnimationDuration(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800740
2008-04-24 19:05:51 +00:00
Davide Bettio
eb378c78fd animationFramesPerSecond(element) -> elementAnimationFramesPerSecond(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800735
2008-04-24 18:45:47 +00:00
Davide Bettio
27954bc347 API REVIEW: animationFramesPerSecond(movement) -> movementAnimationFramesPerSecond(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800733
2008-04-24 18:41:47 +00:00
Davide Bettio
ab377f4f18 API REVIEW: duration(animation) -> animationDuration(animation)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800723
2008-04-24 18:20:58 +00:00
Davide Bettio
aa31688da7 API REVIEW: framesPerSecond(element) -> animationFramesPerSecond(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800720
2008-04-24 18:15:57 +00:00
Davide Bettio
714755631d API REVIEW: framesPerSecond(movement) -> animationFramesPerSecond(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800715
2008-04-24 18:11:48 +00:00
Davide Bettio
16ef3e589c API REVIEW: FramesPerSecond() -> animationFramesPerSecond()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800711
2008-04-24 18:06:26 +00:00
Davide Bettio
b74b254741 API REVIEW: element*(qreal frame, ...) -> element*(qreal progress, ...)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800707
2008-04-24 17:57:56 +00:00
Davide Bettio
0b28813b3e API REVIEW: slideOut() -> itemSlideOut()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800706
2008-04-24 17:51:33 +00:00
Davide Bettio
b88c344091 API REVIEW: slideIn() -> itemSlideIn()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800702
2008-04-24 17:41:50 +00:00
Davide Bettio
16e79457e8 API REVIEW: activate() -> itemActivated()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800700
2008-04-24 17:36:44 +00:00
Davide Bettio
ae65cf26d5 API REVIEW: disappear() -> itemDisappear()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800698
2008-04-24 17:30:49 +00:00
Davide Bettio
45d4be4b8d API REVIEW: http://techbase.kde.org/index.php?title=Projects/Plasma/Tokamak1#Plasma::Animator
appear() -> itemAppear()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800696
2008-04-24 17:16:36 +00:00
Aaron J. Seigo
0dfb81a617 BINARY INCOMPATIBLE CHANGES
* const correctness in Animator
* remove the vestiges of the FrameAppear stuff in Phase we never used
* introduce FastSlide[In|Out]
* put the duration in the hands of the Animator with duration methods

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765004
2008-01-22 23:37:48 +00:00
Aaron J. Seigo
095b27e53b make slideIn and slideOut actually work, we needed the start point as well so i added that to the api.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724244
2007-10-11 20:19:51 +00:00
Aaron J. Seigo
e9517a938b remove dead code; background rendering ended up somewhere completely different
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723925
2007-10-11 04:43:13 +00:00
Aaron J. Seigo
e0f831373c SVN_SILENT: add "or later" clause. cleared with copyright holders, except for rich moore's ui loader which i need to ask him for permission for first.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712549
2007-09-14 19:06:18 +00:00
Aaron J. Seigo
904c1b13f8 move animator to the new plugin system
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=705975
2007-08-29 02:45:20 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00