Commit Graph

25 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
Marco Martin
ee20613e3d support rewind
svn path=/trunk/KDE/kdelibs/; revision=1059028
2009-12-05 15:25:44 +00:00
Marco Martin
6a91177566 setWidgetToanimate unneeded now
svn path=/trunk/KDE/kdelibs/; revision=1058992
2009-12-05 13:53:03 +00:00
Marco Martin
b5f3280566 remove the fixme, qt docs have been fixed now
svn path=/trunk/KDE/kdelibs/; revision=1058966
2009-12-05 12:50:41 +00:00
Marco Martin
9b0eb0538d now slide works as expected, important issue to investigate:
updateState(QAbstractAnimation::State oldState, QAbstractAnimation::State newState)
appears to have oldState and NewState swapped

svn path=/trunk/KDE/kdelibs/; revision=1058948
2009-12-05 12:08:08 +00:00
Marco Martin
ce6aea63c8 migrated the slide animation.
still some problems tough with the test plasmoid

svn path=/trunk/KDE/kdelibs/; revision=1058686
2009-12-04 23:00:05 +00:00
Igor Trindade Oliveira
6d360fd501 ops reverting ... my fault
svn path=/trunk/KDE/kdelibs/; revision=1058528
2009-12-04 16:06:05 +00:00
Igor Trindade Oliveira
f10d58bb53 leak--: disconnect signal
svn path=/trunk/KDE/kdelibs/; revision=1058175
2009-12-04 02:46:30 +00:00
Aaron J. Seigo
3efd2e6c85 * remove the obsoleted render() method (which was now empty anyways)
* don't crash if we don't have a widget when sync'ing the attributes

svn path=/trunk/KDE/kdelibs/; revision=1058155
2009-12-04 01:12:14 +00:00
Marco Martin
31704d2e6b remove render from slide, it will be removed from everywhere else too
svn path=/trunk/KDE/kdelibs/; revision=1058094
2009-12-03 22:42:34 +00:00
Adenilson Cavalcanti Da Silva
c2a7cf4947 Build++;
svn path=/trunk/KDE/kdelibs/; revision=1058004
2009-12-03 19:52:27 +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
151b9d92bb support more directions
svn path=/trunk/KDE/kdelibs/; revision=1041173
2009-10-27 14:33:17 +00:00
Igor Trindade Oliveira
28bab1f99d fix coding style
svn path=/trunk/KDE/kdelibs/; revision=1041163
2009-10-27 14:22:21 +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
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
00e5a53873 Clean ups.
svn path=/trunk/KDE/kdelibs/; revision=1036798
2009-10-17 19:47:36 +00:00
Adenilson Cavalcanti Da Silva
032640b8ab Coding style changes.
svn path=/trunk/KDE/kdelibs/; revision=1036797
2009-10-17 19:44:04 +00:00
Adenilson Cavalcanti Da Silva
10d9afacb4 SlideAnimation is done now.
svn path=/trunk/KDE/kdelibs/; revision=1036795
2009-10-17 19:40:44 +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
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