Commit Graph

50 Commits

Author SHA1 Message Date
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
17215e3d33 delete old code that should be fixed in Qt4.4.0
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=796619
2008-04-13 21:52:04 +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
Rafael Fernández López
954352ae1b Animations enable/disable system wide. TODO: Do a proper GUI for the style KCM and the animations feature.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779390
2008-02-26 00:53:54 +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
Andre Duffeck
6961810f6a Fix crash on closing applets.
BUG:157617

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773932
2008-02-12 05:51:43 +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
İsmail Dönmez
251dd87666 avoid division by zero
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=764517
2008-01-21 23:55:28 +00:00
Aaron J. Seigo
ee32d3c996 remove the use of 1209 explicitly now that i have Winter's Magic Formula for default debug space. makes backporting way easier; sorry for the noise of the earlier commit. suppose i should read planetkde.org more closely ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758498
2008-01-08 01:25:09 +00:00
Aaron J. Seigo
12ef6308cb use the plasma debug area (1209); i considered wrapping this in Plasma::debug() but that seems overkill ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758415
2008-01-07 20:50:31 +00:00
Riccardo Iaconelli
a0026909d2 Better align time to the toolbox movement.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758309
2008-01-07 15:35:43 +00:00
Jason Stubbs
b97d76a52e Speed up the toolbox animations a bit. Arbitrary values, but 250ms still looks
smooth here whereas 200ms (what I really wanted) doesn't. Nothing else appears
to use Phase::moveItem() at the moment so am changing it directly. The duration
change in ToolBox is so that the moveItem() animation and customAnimation match
up exactly.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=756456
2008-01-03 09:43:13 +00:00
Aaron J. Seigo
94f0955d99 QGraphicsItem::update isn't virtual, but we have overridden it in Plasma::Widget to provide paint caching; this broke element animations completely so hack around this. this hack can be removed in 4.1 as noted in the FIXME
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755556
2008-01-01 20:52:11 +00:00
Marijn Kruisselbrink
a7dcbb5456 fixes for platforms where qreal is not a double
btw, wouldn't it be cleaner if all those qMin(0.0, qMax(1.0, foo)) calls are calls to qBound instead?

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=748283
2007-12-14 01:38:32 +00:00
Frerich Raabe
64a2b7bd9a - Don't leak memory; the "slot" string is allocated with qstrdup() with uses
new[] internally.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=740217
2007-11-22 20:30:24 +00:00
Andre Duffeck
e59c8c7241 At least set an interval of 1 or it sometimes crashes with division by zero
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735966
2007-11-13 06:29:46 +00:00
Alexis Ménard
ff958d897a change number of frame for sliding animation, just to test. I should add
a slown effect

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=729219
2007-10-25 10:15:06 +00:00
Aaron J. Seigo
108c3e323f ++quiet;
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724654
2007-10-12 22:45:41 +00:00
Aaron J. Seigo
18a42ef3b5 - replace nasty literal with a nice static const int
- make custon anims work properly

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724611
2007-10-12 20:26:07 +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
e6ca32da41 speed this up. .5s is way too long
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724314
2007-10-11 23:20:20 +00:00
Aaron J. Seigo
095b27e53b make slideIn and slideOut actually work, we needed the start point as well so i added that to the api.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=724244
2007-10-11 20:19:51 +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
06465f6cb1 more deprecated api removal; kservice seems almost OO now ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=717491
2007-09-26 23:06:17 +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
bf30d19c41 improve error reporting when a plugin fails to load
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=705985
2007-08-29 03:06:48 +00:00
Thiago Macieira
eca6dc90c0 Remove use of k_funcinfo
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=702583
2007-08-20 21:33:48 +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
Aaron J. Seigo
ac918ad4bf kdebug fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=695587
2007-08-02 13:12:59 +00:00
Aaron J. Seigo
6f850a1f66 * hide() items on completed dissapear
* emit signals on anim completion
* note that the slide anim needs to be rewritten

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=693277
2007-07-27 16:34:01 +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
Aaron J. Seigo
9303303aa2 SVN_SILENT: TODO is done, remove it
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690083
2007-07-20 02:01:56 +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
Alexis Ménard
44bf51c596 +Disable old medianotifier autostart, it now has to be loaded explicitely to be used.
+Add new applet solidnotifier wich will in future show new devices.I put it directly here because it was a 
default applet wich will be loaded on start. Send me email if problem.
+Modify solidnotifierengine in order to connect it with solid.Just connect signal, no filter and so
+Problem in solidnotifier applet->don't find the solidnotifier engine.See it later.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=684582
2007-07-06 23:54:56 +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
8c8012c1ce framesPerSecond is more obvious
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679782
2007-06-24 21:36:00 +00:00
Aaron J. Seigo
a45a0c2e5f since we are now using a range of 0-1, there's no real need for *Completed methods, just pass in 1
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679744
2007-06-24 20:22:19 +00:00
Aaron J. Seigo
ac1d10f987 so that people don't have to ask me how to turn on the anims =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=677882
2007-06-20 06:06:47 +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
2360b4b210 * actually start the timeline (durr!)
* open up the possiblity to change the CurveShape depending on the effect

svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=673396
2007-06-10 06:25:26 +00:00
Aaron J. Seigo
73ccedb42e make the frame rates per second by dividing by 1/duration. we will likely want different durations per anim, but i really like the idea of controlling the durations centrally as a means to .. guide (yeah, that's it!) Animator developers
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672786
2007-06-08 06:05:40 +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