Commit Graph

23 Commits

Author SHA1 Message Date
Adenilson Cavalcanti Da Silva
5a721b9bad Creating a QEasingCurve object in AnimationPrivate and allowing access to
it to all Animation derived classes.

The idea is that the user can select the easing curve (if the it makes sense
in the animation).


svn path=/trunk/KDE/kdelibs/; revision=1060687
2009-12-09 16:28:27 +00:00
Igor Trindade Oliveira
9e736804c9 add support for easing curves
svn path=/trunk/KDE/kdelibs/; revision=1060395
2009-12-08 19:29:03 +00:00
Igor Trindade Oliveira
daad380026 revert fade animation to revision: 1058158 and fix it: Qt 4.6 changes updateState arguments newState and oldState
svn path=/trunk/KDE/kdelibs/; revision=1058592
2009-12-04 19:06:01 +00:00
Igor Trindade Oliveira
68e65235bc Oops .. fix logic inversion added in last commit
svn path=/trunk/KDE/kdelibs/; revision=1058575
2009-12-04 18:15:59 +00:00
Igor Trindade Oliveira
7a39167564 fix: change qpropertyanimation start and end value when start and target values in fade animation changes
svn path=/trunk/KDE/kdelibs/; revision=1058569
2009-12-04 17:46:45 +00:00
Igor Trindade Oliveira
1e06025000 make fade animation works again using qpropertyanimation, when added in a group use the same group timer
svn path=/trunk/KDE/kdelibs/; revision=1058490
2009-12-04 14:56:19 +00:00
Aaron J. Seigo
a1b48efa16 port fade to the new api; much simpler and doesn't use a QPropertyAnimation (the two are related ;)
svn path=/trunk/KDE/kdelibs/; revision=1058158
2009-12-04 01:14:23 +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
Marco Martin
47a6082bf5 use opacity, not a qgraphicseffect, since an item can't have more than
one effect and the opacity property of the widget would lie.
if there will be graphics glitches it would be a qt problem that should
be resolved, not by a workaround

svn path=/trunk/KDE/kdelibs/; revision=1047550
2009-11-11 12:04:58 +00:00
Adenilson Cavalcanti Da Silva
1049afdab6 First step to improve new animations memory model.
Now the QAbstractAnimations will be cached when running an animation
(instead of creating and destroying them everytime the animation runs).

The next step is to cache *also* the configuration parameters (as aseigo suggested,
by having an event filter to detect changes in the animated widgets and reseting
the animation parameters as needed).


svn path=/trunk/KDE/kdelibs/; revision=1039531
2009-10-23 18:39:57 +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
Marco Martin
03bb063c62 migrate focusindicator to the new api
change the api of fade to be abe to set a start and an end taget
opacities

svn path=/trunk/KDE/kdelibs/; revision=1039087
2009-10-22 17:39:43 +00:00
Igor Trindade Oliveira
67ffbf7ff3 janitor job: make it works
svn path=/trunk/KDE/kdelibs/; revision=1039010
2009-10-22 13:58:35 +00:00
Aaron J. Seigo
27d61c2fca * standardize and add a parent in the ctor
* 1.0 is the proper start value when we're going towards 0

svn path=/trunk/KDE/kdelibs/; revision=1038855
2009-10-22 04:34:03 +00:00
Aaron J. Seigo
fd48743847 set start value; now it can go backwards too
svn path=/trunk/KDE/kdelibs/; revision=1038848
2009-10-22 03:59:46 +00:00
Giulio Camuffo
016d870394 use QGraphicsOpacityEffect instead of simple setOpacity. this solves a bug with Plasma::Label and possibly other
widgets

svn path=/trunk/KDE/kdelibs/; revision=1038688
2009-10-21 16:29:00 +00:00
Aaron J. Seigo
172e467929 SVN_SILENT: ws
svn path=/trunk/KDE/kdelibs/; revision=1038367
2009-10-21 07:47:05 +00:00
Aaron J. Seigo
353c7d9aca one more API shift
svn path=/trunk/KDE/kdelibs/; revision=1038236
2009-10-20 21:21:40 +00:00
Aaron J. Seigo
8b9830dc2b API cleanups
svn path=/trunk/KDE/kdelibs/; revision=1038232
2009-10-20 21:14:46 +00:00
Aaron J. Seigo
b29d0a79aa sort out the API a bit and don't have private classes that are named the same
svn path=/trunk/KDE/kdelibs/; revision=1038220
2009-10-20 21:04:49 +00:00
Adenilson Cavalcanti Da Silva
298998fa71 Changing remaining classes to use qreal instead of double or int.
svn path=/trunk/KDE/kdelibs/; revision=1036743
2009-10-17 17:52:19 +00:00
Adenilson Cavalcanti Da Silva
7ccf35e9fd Converting FadeAnimation and adding some todos: we must use qreal
since it is a typedef that falls back to float/double depending
on the cpu.


svn path=/trunk/KDE/kdelibs/; revision=1036741
2009-10-17 17:46:01 +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