Commit Graph

231 Commits

Author SHA1 Message Date
Aaron J. Seigo
b9ff1cb689 make these properties read-only
svn path=/trunk/KDE/kdelibs/; revision=1120793
2010-04-30 00:06:43 +00:00
Aaron J. Seigo
af0963e236 * don't pass in anything to the ctor, instead set properties
* don't set properties on m_instance unless it's a success
* set the duration and target propreties on each pass through start

svn path=/trunk/KDE/kdelibs/; revision=1120786
2010-04-29 23:51:32 +00:00
Aaron J. Seigo
c5748b3719 make the JS anims an easing curve anim
svn path=/trunk/KDE/kdelibs/; revision=1120782
2010-04-29 23:40:30 +00:00
Aaron J. Seigo
6c44a1e8a4 access to other animations
svn path=/trunk/KDE/kdelibs/; revision=1120776
2010-04-29 23:01:48 +00:00
Aaron J. Seigo
a06b2bf70d access to easing curves
svn path=/trunk/KDE/kdelibs/; revision=1120770
2010-04-29 22:29:26 +00:00
Aaron J. Seigo
a246be9d42 * get rid of some manual memory management
* get rid of some members that were really only used as local members
* make the fps stuff optional (and off by default)

svn path=/trunk/KDE/kdelibs/; revision=1120750
2010-04-29 21:17:43 +00:00
Aaron J. Seigo
736c381bbe * move script file loading from Animator to AnimationScriptEngine
* don't use camel case includes for kdelibs classes in files which are themselves in kdelibs
* add my copyright to these files since they are approaching 100% code written by me

svn path=/trunk/KDE/kdelibs/; revision=1120250
2010-04-28 17:51:46 +00:00
Aaron J. Seigo
03bc2d587e allow clearing the animations, checking for whether an animation is registered and make it first-come, first-serve to avoid anims overriding each other
svn path=/trunk/KDE/kdelibs/; revision=1120236
2010-04-28 17:38:27 +00:00
Aaron J. Seigo
cbd94fc434 buld
svn path=/trunk/KDE/kdelibs/; revision=1119246
2010-04-26 21:00:21 +00:00
Aaron J. Seigo
a5c793691b proper file names, AnimationEngine -> AnimationScriptEngine, and it becomes a namespace
svn path=/trunk/KDE/kdelibs/; revision=1119242
2010-04-26 20:56:15 +00:00
Aaron J. Seigo
d38dc61819 clean up the copyright headers
svn path=/trunk/KDE/kdelibs/; revision=1119236
2010-04-26 20:46:36 +00:00
Adenilson Cavalcanti Da Silva
058713d07a Adding jsanim classes (next, change object factory to address jsanim
object creation).


svn path=/trunk/KDE/kdelibs/; revision=1119231
2010-04-26 20:37:43 +00:00
Bruno de Oliveira Abinader
51a9b1ac72 Added Plasma::Animator::easingCurve() pre-defined easing curves factory.
Using this, Plasma::PendulumCurve now longer needs to be public :-)

svn path=/trunk/KDE/kdelibs/; revision=1118090
2010-04-23 20:55:46 +00:00
Bruno de Oliveira Abinader
2375cd6ce8 Added Plasma::PendulumCurve class plus make it work with RotationAnimation
svn path=/trunk/KDE/kdelibs/; revision=1117942
2010-04-23 13:39:34 +00:00
Bruno de Oliveira Abinader
abd0dd20b5 Missed RotationStacked QEasingCurve double call fix :-)
svn path=/trunk/KDE/kdelibs/; revision=1117941
2010-04-23 13:38:38 +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
Bruno de Oliveira Abinader
a8975d2e2d Initial WaterAnimation implementation
This water animation uses the RippleEffect class to simulate a cool water animation on the target widget

svn path=/trunk/KDE/kdelibs/; revision=1116474
2010-04-19 15:09:36 +00:00
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
Bruno de Oliveira Abinader
4f301b339f Reverting "Added bouncing effect for Rotation animation"
svn path=/trunk/KDE/kdelibs/; revision=1112210
2010-04-07 15:56:21 +00:00
Bruno de Oliveira Abinader
7507808e7c Added bouncing effect for Rotation animation
svn path=/trunk/KDE/kdelibs/; revision=1112192
2010-04-07 15:19:07 +00:00
Marco Martin
8269a5055e fix fade out
svn path=/trunk/KDE/kdelibs/; revision=1109248
2010-03-30 21:24:04 +00:00
Zack Rusin
a0fe64f519 Reduce debugging output a bit
especially since it's unconditional
SVN_SILENT


svn path=/trunk/KDE/kdelibs/; revision=1106171
2010-03-22 03:19:37 +00:00
Adenilson Cavalcanti Da Silva
3958e203be Paint only if the item is visible.
svn path=/trunk/KDE/kdelibs/; revision=1105303
2010-03-19 19:47:52 +00:00
Igor Trindade Oliveira
65ee24a2a3 use qfuzzycompare to resolse black frame in pixmap transitions
svn path=/trunk/KDE/kdelibs/; revision=1095410
2010-02-24 08:53:10 +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
6265ebb629 We no longer need this to be a slot.
svn path=/trunk/KDE/kdelibs/; revision=1095302
2010-02-23 23:31:20 +00:00
Adenilson Cavalcanti Da Silva
4dec145f85 Safeguards in case of invalid image.
svn path=/trunk/KDE/kdelibs/; revision=1094589
2010-02-22 23:18:30 +00:00
Adenilson Cavalcanti Da Silva
5506f87e55 Trying to get the center right.
svn path=/trunk/KDE/kdelibs/; revision=1094577
2010-02-22 22:31:14 +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
Adenilson Cavalcanti Da Silva
04e16a4261 Implementing support for larger pre-scaled widget raster representation.
svn path=/trunk/KDE/kdelibs/; revision=1094534
2010-02-22 21:58:21 +00:00
Adenilson Cavalcanti Da Silva
24ea07b548 Fixing behavior showed in IconWidget (thanks aseigo for helping, I owne you
ein WEISSBIER!).


svn path=/trunk/KDE/kdelibs/; revision=1094514
2010-02-22 21:38:22 +00:00
Adenilson Cavalcanti Da Silva
ee1b3166f7 Adding a todo.
svn path=/trunk/KDE/kdelibs/; revision=1094499
2010-02-22 21:22:08 +00:00
Adenilson Cavalcanti Da Silva
ed33fab95e Same case.
svn path=/trunk/KDE/kdelibs/; revision=1094498
2010-02-22 21:21:27 +00:00
Adenilson Cavalcanti Da Silva
c64e8beb83 Adding missing documentation.
svn path=/trunk/KDE/kdelibs/; revision=1094497
2010-02-22 21:20:53 +00:00
Alexis Ménard
d4683537c9 Build fix on ARM.
svn path=/trunk/KDE/kdelibs/; revision=1092055
2010-02-18 07:39:28 +00:00
Marco Martin
ef3e69f672 never make the pixmap fully opaque, because the alpha channel would get disabled, obtaining a so pretty black rectangle
svn path=/trunk/KDE/kdelibs/; revision=1088460
2010-02-10 21:54:12 +00:00
Bruno de Oliveira Abinader
262289bd48 Fix a glitch when the action widget pixmap alpha reaches near 100%
svn path=/trunk/KDE/kdelibs/; revision=1087295
2010-02-08 19:24:47 +00:00
Bruno de Oliveira Abinader
68bb384587 Fixed QPainter debug message when m_currentTarget was not set and m_startPixmap is null
svn path=/trunk/KDE/kdelibs/; revision=1087268
2010-02-08 18:36:11 +00:00
Marco Martin
afb1279b21 center the pixmaps in the first anim frame too
svn path=/trunk/KDE/kdelibs/; revision=1084667
2010-02-03 12:46:54 +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
38bf1d8725 Removed implicit enumerated animation movement direction combinations (i.e. MoveUpRight) and added support for combinations (i.e. MoveUp|MoveLeft). Currently used by RotationStacked and Slide animations, which were previously adapted to this clean design
svn path=/trunk/KDE/kdelibs/; revision=1083641
2010-02-01 18:06:01 +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
Bruno de Oliveira Abinader
cb7f6a2f2b Added support for animation movement direction combinations (i.e. MoveUp|MoveLeft) to RotationStacked
svn path=/trunk/KDE/kdelibs/; revision=1083639
2010-02-01 18:01:40 +00:00
Aaron J. Seigo
1e6e5e7469 --compileWarnings;
svn path=/trunk/KDE/kdelibs/; revision=1083237
2010-01-31 21:44:11 +00:00
Bruno de Oliveira Abinader
6086b03de5 Moved sideAngle to be a static const member
svn path=/trunk/KDE/kdelibs/; revision=1083081
2010-01-31 15:54:14 +00:00
Bruno de Oliveira Abinader
f820ea872d Fix segfault at plasma_applet_animation_example from kdeexamples
Patch-by: Andre L. V. Loureiro <loureiro.andrew@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1082144
2010-01-29 20:36:32 +00:00
Marco Martin
54eeaa5f91 support for fade in/fade out to transparent
svn path=/trunk/KDE/kdelibs/; revision=1081537
2010-01-28 17:08:07 +00:00
Bruno de Oliveira Abinader
0c442d4834 Fixed Plasma::RotationStackedAnimation animation origin for the following cases:
- Front and back widgets have different sizes;
 - Front and back widgets changes their sizes after creating the animation;


svn path=/trunk/KDE/kdelibs/; revision=1081150
2010-01-27 20:43:56 +00:00