Commit Graph

84 Commits

Author SHA1 Message Date
Aaron Seigo
2b3767a7b5 get rid of deprecate code in Animator
i wonder if we have any purpose for Animator at all in QML? perhaps
this moves out with the QGraphicsView stuff
2011-05-26 23:30:58 +02:00
Kevin Ottens
c09422cc8c Remove deprecated symbols from the build (if KDE_NO_DEPRECATED is defined).
svn path=/trunk/KDE/kdelibs/; revision=1192863
2010-11-04 08:06:43 +00:00
Marco Martin
dccc435d8b deprecate kineticscroll functions,
remove one that was added only for 4.5

svn path=/trunk/KDE/kdelibs/; revision=1123943
2010-05-07 12:32:35 +00:00
Aaron J. Seigo
46d0214df0 last anim enumeration
svn path=/trunk/KDE/kdelibs/; revision=1120787
2010-04-29 23:52:12 +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
ce3762373f add an explicit way to stop
svn path=/trunk/KDE/kdelibs/; revision=1094245
2010-02-22 11:21:30 +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
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
Marco Martin
fdae3f0d59 This patch forward the "stateChanged" signal emitted from the private kinetic scroll animation all the way to Plasma::ScrollWidget, which then forwards this signal to its childs. This enables an object which derives from Plasma::ScrollWidget to know the kinetic scrolling animation state.
Patch by Bruno Abinader

svn path=/trunk/KDE/kdelibs/; revision=1064768
2009-12-21 18:36:39 +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
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
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