Commit Graph

34 Commits

Author SHA1 Message Date
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
175cf065e7 API REVIEW: AnimId -> int
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800804
2008-04-24 21:26:36 +00:00
Davide Bettio
eba58a193d API REVIEW: *Slide* -> *Slide*Movement
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800796
2008-04-24 21:06:08 +00:00
Davide Bettio
d6995254db API REVIEW: animationResult() -> currentPixmap()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800784
2008-04-24 20:44:16 +00:00
Davide Bettio
3a150a6f6b API REVIEW: setAnimationPixmap() -> setInitialPixmap()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800782
2008-04-24 20:37:26 +00:00
Davide Bettio
077534dacb API REVIEW: http://techbase.kde.org/index.php?title=Projects/Plasma/Tokamak1#Plasma::Animator
*Completed -> *Finished()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800770
2008-04-24 20:16:40 +00:00
Rob Scheepmaker
54a3279aa7 ReAdded the isAnimating() function to Phase.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797010
2008-04-14 18:04:34 +00:00
Alexis Ménard
4467261c95 Merge woc branch to trunk, say good bye to old plasma, there is a lot of stuff to port
applets, 
please update to another revision to use the version that works

green flag from aaron


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796368
2008-04-13 13:23:39 +00:00
Rob Scheepmaker
3b21177823 Improvements to isAnimating().
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795851
2008-04-11 16:09:11 +00:00
Dmitry Suzdalev
9dc3a849bf Make isAnimated() to be const and also move a method comment to .h file, I guess it'll be more helpful there ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795840
2008-04-11 15:01:34 +00:00
Rob Scheepmaker
234171e753 Added the isAnimating() function to Phase. This way, applet/widgets can delay 'heavy' operations until all animations are finished to avoid stuttering animations.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=795821
2008-04-11 14:26:07 +00:00
Andre Duffeck
74416cc5ff fix signal signature
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=794108
2008-04-06 15:21:47 +00:00
Aaron J. Seigo
78b83142ad consistent signals at the end of all animations and ties QObject lifespan (when available) to all the animations including elementAnimation. Also prevents multiple connections to the destroyed slots (harmless, just cycle wasting) and mutes some remaining debug statements.
RB:131

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775010
2008-02-14 17:09:00 +00:00
Aaron J. Seigo
fa490e10a8 watch for object destruction. right now we only do this if the QGrahpicsItem itself is a QObject. however, the structs now hold onto a QObject* so this opens the door to attaching an animation to the lifespan of an arbitrary QObject. could be quite useful in future.
BUG:157647

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774360
2008-02-13 04:06:41 +00:00
Aaron J. Seigo
0dfb81a617 BINARY INCOMPATIBLE CHANGES
* const correctness in Animator
* remove the vestiges of the FrameAppear stuff in Phase we never used
* introduce FastSlide[In|Out]
* put the duration in the hands of the Animator with duration methods

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765004
2008-01-22 23:37:48 +00:00
Aaron J. Seigo
603130699a since signals/slots are pretty literal in their signatures, use the fully qualified name of the enum .. namespaces and all. makes this more easily usable from the outside
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=728721
2007-10-24 02:08:09 +00:00
Aaron J. Seigo
6b3764fa5f make this a bit more clear in the documentation as it even caught me =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724612
2007-10-12 20:27:51 +00:00
Aaron J. Seigo
7d29f75f4a * memory leak: delete all the outstanding movements
* add the ability to use Phase's coordinated tick for custom animations

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724392
2007-10-12 07:25:24 +00:00
Aaron J. Seigo
e9517a938b remove dead code; background rendering ended up somewhere completely different
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723925
2007-10-11 04:43:13 +00:00
Aaron J. Seigo
e0f831373c SVN_SILENT: add "or later" clause. cleared with copyright holders, except for rich moore's ui loader which i need to ask him for permission for first.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=712549
2007-09-14 19:06:18 +00:00
Aaron J. Seigo
db4a7ebe61 copyright cleanups:
* Copyright (C) -> Copyright
* add "or later" clause to files that i have the sole copyright on
* add current year (2007) to my copyrights where it was missing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696946
2007-08-06 11:20:02 +00:00
Richard J. Moore
705b7839f9 - Prepare for scripting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696314
2007-08-04 12:46:29 +00:00
Aaron J. Seigo
af043ca588 too tired to do much of anything else, i figured i could fix some ebn issues
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690173
2007-07-20 08:06:27 +00:00
Alexis Ménard
cf889b289b +add a signal when a movement animation is finished
+modify applet solid notifier to disappear when the notification is finished 



svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=689154
2007-07-17 19:23:33 +00:00
Pino Toscano
1633d8d791 use QtModule/QFoo includes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=687972
2007-07-14 22:40:00 +00:00
Alexis Ménard
fee185b328 +Add slideIn slideDown animation in plasma
Mail me if you want a simple applet wich use this animation

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=684432
2007-07-06 16:26:48 +00:00
Aaron J. Seigo
33d25b39d8 * sketch in movement animations
* add slideIn, slideOut
* change the name of the progress parameters in the animator header to
  reflect how they are actually used these days

CCMAIL:darktears31@gmail.com

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=683150
2007-07-04 09:36:50 +00:00
Aaron J. Seigo
45ee70aa26 * startElementAnimation -> animateElement
* animate -> animateItem
* frames -> framesPerSecond
* use the curve shape as provided by the animator
* get rid of the use of QTimeLine
    * this cuts down on the number of objects and timer events dramatically in the case of multiple simultaneous animations
    * all animations now update on the same tick
    * simplifies the management code a -lot- though now i need to do a lot more of the math

TODO: implement interval updating based on the curve shape; otherwise, works pretty well =)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679871
2007-06-25 06:01:34 +00:00
Aaron J. Seigo
30f07bb62c add the concept of element animation. right now it only provides support for modifying a pixmap; positioning needs to be added, but this at least shows that it works(tm)
the idea is that you register an element animation and get back an id. you can associate a pixmap with that id and off you go. the item gets update() calls whenever the anim changes and you can fetch your precious little pixmap back with a call to animationResult.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677782
2007-06-19 21:56:03 +00:00
Aaron J. Seigo
fab8953ccb * provide a Phase singleton
* use it in Corona

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=676831
2007-06-17 20:05:43 +00:00
Aaron J. Seigo
13a83e87f8 * add a set of "completed" methods to the animations so the animator can clean up
* instead of passing in the frame, pass in the % completed in a qreal (0.0 - 1.0), allowing the Animator to remain innocent of animation time elapse
* call the Animator immediately with 0% to allow it to start immediately and do setup

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673398
2007-06-10 07:09:07 +00:00
Aaron J. Seigo
eb330b2a79 * cleanup includes for external usage
* include KGenericFactory so subclasses don't have to
* move the plugin macro to Animator where it belongs

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673394
2007-06-10 06:02:38 +00:00
Aaron J. Seigo
2894a3403b initial 284LOC sketch of phase/animator. this includes the "null" animator base class, the phase manager and plugin loader.
tomorrow: an animator!

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672771
2007-06-08 05:24:19 +00:00