Projects/Plasma/jsanim: Difference between revisions

From KDE TechBase
(tasks of js experiment)
 
(No difference)

Latest revision as of 20:44, 24 February 2010

Exposed methods

QGraphicsItem

The following properties are useful when creating animations (the ones that are already available in runtime/plasma/scriptengines/javascript/simplebindings/graphicsitem.cpp are marked with an ok).


- scale ....................................... ok

- visible ..................................... ok

- position

- size

- opacity

- angle

- origin

TODO: check Trolltech docs for other properties ..... done!

So we should start by adding those properties to the js bindings to make it accessible to javascript animations.


Utilities

- shadowpulse widget code

creating the pixmap representation of a widget and wrapping it with a QGraphicsWidget is tricky in js and might be quite useful.


An animation class properties

We have to expose the following in Plasma::Animation.

- duration ..................................... ok

- easing curve


Plasma changes

In the following topics I have already started. The question is where to host the patches? If done with care we could have it done in trunk without breaking anything (because we are adding code that is not used by kdelibs clients).

What do you guys say?

An alternative is to just copy the 'plasma' directory in playground or someplace.


Animations

- factory: Add a new method with the signature (type, parent, package) to support js animation and implement the factory for that (I think that the factory should supply a QString with the js contents to the js animation object)

- JSAnimation: implement the new class


Plasma theme

- support retrieve of path of an js animation file