Commit Graph

43 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
daffafb9fe s/pulsershadow/widgetsnapshot
svn path=/trunk/KDE/kdelibs/; revision=1115254
2010-04-15 18:51:26 +00:00
Aaron J. Seigo
892d8ae1c0 use the easing curve in all of our animations
svn path=/trunk/KDE/kdelibs/; revision=1112612
2010-04-08 17:07:33 +00:00
Adenilson Cavalcanti Da Silva
af1a619c06 Including 'moc' files, should speed up compilation.
svn path=/trunk/KDE/kdelibs/; revision=1095303
2010-02-23 23:31:45 +00:00
Adenilson Cavalcanti Da Silva
02d3966f3c Setting the scale (it works now, there is a problem with centering).
svn path=/trunk/KDE/kdelibs/; revision=1094558
2010-02-22 22:17:17 +00:00
Adenilson Cavalcanti Da Silva
3b589bbd68 Implementing now the support for 'bigger icons' in the animation itself (it is
missing the setting of the scale factor), but at least there is not
any regression in the code.


svn path=/trunk/KDE/kdelibs/; revision=1094544
2010-02-22 22:06:05 +00:00
Aaron J. Seigo
0337eb0ae3 missing property
svn path=/trunk/KDE/kdelibs/; revision=1070127
2010-01-04 23:06:50 +00:00
Adenilson Cavalcanti Da Silva
29365773e2 Hides the shadowfake if the animation is stopped.
svn path=/trunk/KDE/kdelibs/; revision=1070124
2010-01-04 22:56:41 +00:00
Adenilson Cavalcanti Da Silva
2d08b8a2b2 Fixing double deletion by using QWeakPointer (suggestion by Aaron Seigo).
svn path=/trunk/KDE/kdelibs/; revision=1070099
2010-01-04 21:11:02 +00:00
Andreas Hartmetz
4b305cbf84 fix include path and build
svn path=/trunk/KDE/kdelibs/; revision=1069885
2010-01-04 11:18:22 +00:00
Aaron J. Seigo
f3063c4fa9 make sure we have an m_under object before using it
svn path=/trunk/KDE/kdelibs/; revision=1069733
2010-01-04 09:23:55 +00:00
Aaron J. Seigo
b931262030 * adapt to API changes
* don't leak the m_under object
* only paint what's necessary (the exposed rect)
* keep track of the target in PulserShadow

svn path=/trunk/KDE/kdelibs/; revision=1069729
2010-01-04 09:17:49 +00:00
Adenilson Cavalcanti Da Silva
ca35755ac0 Following the same function convention call in the remaining classes.
TODO: check which classes it makes sense to actually allow the user
to set the easing curve.


svn path=/trunk/KDE/kdelibs/; revision=1060689
2009-12-09 16:34:43 +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
Adenilson Cavalcanti Da Silva
6afab7d906 Moved all variables from a pimple to data members in pulse
(saves one new/delete operation).


svn path=/trunk/KDE/kdelibs/; revision=1060043
2009-12-07 22:55:56 +00:00
Adenilson Cavalcanti Da Silva
c25f50edba Cleaning up the code.
svn path=/trunk/KDE/kdelibs/; revision=1060028
2009-12-07 22:36:30 +00:00
Adenilson Cavalcanti Da Silva
215712e662 Removing unused code.
svn path=/trunk/KDE/kdelibs/; revision=1059976
2009-12-07 20:24:20 +00:00
Adenilson Cavalcanti Da Silva
6ecaf4ed67 Finished porting pulse animation to new Animation design.
svn path=/trunk/KDE/kdelibs/; revision=1059975
2009-12-07 20:21:50 +00:00
Adenilson Cavalcanti Da Silva
b6f4d1a518 Using stored scale factor.
svn path=/trunk/KDE/kdelibs/; revision=1059939
2009-12-07 18:21:33 +00:00
Adenilson Cavalcanti Da Silva
7a4193fa2a Reusing duration property from base class and storing target animation
scale factor.


svn path=/trunk/KDE/kdelibs/; revision=1059938
2009-12-07 18:16:33 +00:00
Adenilson Cavalcanti Da Silva
0e503cbc5f Some more cleanups.
svn path=/trunk/KDE/kdelibs/; revision=1059909
2009-12-07 16:41:40 +00:00
Adenilson Cavalcanti Da Silva
f4ff321b7a It is being quite some time that pulse doesn't use a geometry
animation.


svn path=/trunk/KDE/kdelibs/; revision=1059907
2009-12-07 16:38:34 +00:00
Adenilson Cavalcanti Da Silva
831bd97941 Making pulse animation work again with new design. It is still
using an internal animation group (got to try to fix this later).


svn path=/trunk/KDE/kdelibs/; revision=1059906
2009-12-07 16:37:23 +00:00
Aaron J. Seigo
51bd953798 coding style, simplify a bit
svn path=/trunk/KDE/kdelibs/; revision=1059412
2009-12-06 15:24:09 +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
Adenilson Cavalcanti Da Silva
62f15dae7a I'm non longer animating the geometry, so no need to have a copy
of it around.


svn path=/trunk/KDE/kdelibs/; revision=1051114
2009-11-18 21:53:40 +00:00
Adenilson Cavalcanti Da Silva
de36a7c42f Fixing pulser position while animating (with less and more efficient
code). Suggestion by notmart.


svn path=/trunk/KDE/kdelibs/; revision=1051108
2009-11-18 21:33:24 +00:00
Adenilson Cavalcanti Da Silva
29295e9343 Transform origin point is setted in ShadowFake::copyTarget.
svn path=/trunk/KDE/kdelibs/; revision=1050952
2009-11-18 12:49:19 +00:00
Adenilson Cavalcanti Da Silva
acda971fa0 Set of changes:
- moved transformation reference inside of the the shadow pulse
class
 - ensuring that the local pointer in pulser will correctly point to the
shadow object
 - recreating the pixmap if the animated widget geometry has changed


svn path=/trunk/KDE/kdelibs/; revision=1050711
2009-11-17 22:53:08 +00:00
Adenilson Cavalcanti Da Silva
702920c810 Starting to implement pixmap based pulse animation. The first implementation
assumed that there would exist a complete copy of the animated widget to
do the pulse (where another object is kept translucent and when the animation
is triggered, it will expand and fade at same time).

But is expensive to copy the whole widget, so the idea is to draw the target
widget in a pixmap and then do the pulse effect on the pixmap itself.

It is still broken, for some reason the opacity is failing to animate (should
fix this tomorrow).


svn path=/trunk/KDE/kdelibs/; revision=1048277
2009-11-13 01:20:51 +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
c18c6188e3 Workaround for deforming animated widget if a new pulse event
was triggered while the animation was running and *before*
it was over.

For while, it will just ignore the geometry calculus and return
(but ideally it should listen for the event emited when the animation
is over and then recalculate the geometries).


svn path=/trunk/KDE/kdelibs/; revision=1039630
2009-10-24 03:04:17 +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
51c2785743 obey the duration
svn path=/trunk/KDE/kdelibs/; revision=1038833
2009-10-22 02:59:24 +00:00
Aaron J. Seigo
3abdca0a1b start() is virtual and so we crash; if we need a pre-starting method, that should go into the animation class returned?
svn path=/trunk/KDE/kdelibs/; revision=1038832
2009-10-22 02:50:58 +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
7bc808c132 PulserAnimation done.
svn path=/trunk/KDE/kdelibs/; revision=1036805
2009-10-17 20:04:58 +00:00
Adenilson Cavalcanti Da Silva
66dff7cf72 Unbreaking pulse animation. It will handle the case where there
is no 'shadow' widget (and thus not set the widget itself as
its parent).

By connecting a slot to the signal emited by animation end, it will
also restore original opacity back.

TODO: instead of a copy of object, the shadow should be an image
where the animated widget was painted. This will solve a lot
of issues and make this class easier to use.


svn path=/trunk/KDE/kdelibs/; revision=1036351
2009-10-17 05:17:05 +00:00
Aaron J. Seigo
cbb1a5e686 * asQAnimation (i still wonder if that's the best of names or even strictly needed?)
* coding style

svn path=/trunk/KDE/kdelibs/; revision=1036121
2009-10-16 16:36:22 +00:00
Adenilson Cavalcanti Da Silva
50796b91a5 Adapting pulser animation to the resource management model used by
plasma::Animator.


svn path=/trunk/KDE/kdelibs/; revision=1035814
2009-10-15 22:29:21 +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