Commit Graph

38 Commits

Author SHA1 Message Date
Stephen Kelly
8d37df4b8f Remove moc includes that can be omitted.
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron J. Seigo
4502af56ad fix the moc
svn path=/trunk/KDE/kdelibs/; revision=1178380
2010-09-22 21:14:40 +00:00
Marco Martin
b959b74d36 this animtion is a slide, is not an absolute position target
svn path=/trunk/KDE/kdelibs/; revision=1137131
2010-06-11 18:38:58 +00:00
Bruno de Oliveira Abinader
75b66bdd8b Avoid double call for QEasingCurve's valueForProgress() (now executed by EasingAnimation before calling updateEffectiveTime), causing a minor corruption of the effective animation progress values.
svn path=/trunk/KDE/kdelibs/; revision=1117762
2010-04-22 23:10:29 +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
Bruno de Oliveira Abinader
d69885df4d MovementDirection and Reference enumerators are now QFlags (using Q_DECLARE_FLAGS), as suggested by aseigo
svn path=/trunk/KDE/kdelibs/; revision=1084090
2010-02-02 13:36:23 +00:00
Bruno de Oliveira Abinader
ed5c03e6b2 Added support for animation movement direction combinations (i.e. MoveUp|MoveLeft) to Slide
svn path=/trunk/KDE/kdelibs/; revision=1083640
2010-02-01 18:02:53 +00:00
Igor Trindade Oliveira
d42e7f8b7b SlideAnimation: add a new movement direction movement any, it is useful when the user just know where is the finish position of widget like tabbar slide animation
svn path=/trunk/KDE/kdelibs/; revision=1078733
2010-01-22 18:55:37 +00:00
Aaron J. Seigo
18640f63e3 * kill some memory leaks
* mark appropriate ctors with explicit
* Direction -> MovementDirection so it doesn't conflict with QAbstractAnimation::Direction

svn path=/trunk/KDE/kdelibs/; revision=1073809
2010-01-12 22:24:58 +00:00
Aaron J. Seigo
1bdc28c19e AnimationDirection should be Animation::Direction ... glad i caught this before 4.4.0 was rolled!
svn path=/trunk/KDE/kdelibs/; revision=1073436
2010-01-12 09:54:42 +00:00
Aaron J. Seigo
8ccd1a0d9c * adapt to API
* coding style fixes

svn path=/trunk/KDE/kdelibs/; revision=1069730
2010-01-04 09:18:11 +00:00
Adenilson Cavalcanti Da Silva
485635f07b Experimenting with easing curves.
svn path=/trunk/KDE/kdelibs/; revision=1061361
2009-12-11 15:09:32 +00:00
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