Commit Graph

88 Commits

Author SHA1 Message Date
Aaron J. Seigo
3b16876d4a full popupapplet support
svn path=/trunk/KDE/kdebase/runtime/; revision=1097178
2010-02-28 16:11:48 +00:00
Aaron J. Seigo
befcae6884 minimal icon bindings, makes Plasma::IconWidget actually useful
svn path=/trunk/KDE/kdebase/runtime/; revision=1095318
2010-02-24 00:35:37 +00:00
Richard J. Moore
cc5c47e270 A fairly large patch, but mostly moving things. In order to allow
us to use QScriptEngines from other sources (such as QML) we need
to change the code so that we don't have a custom QScriptEngine
subclass - only one codebase can do that at a time. The scriptenv
is now a normal QObject and contains a QScriptEngine instead of
inheriting from it.

svn path=/trunk/KDE/kdebase/runtime/; revision=1094259
2010-02-22 11:33:21 +00:00
Aaron J. Seigo
66d58f1229 show file name in error message; can't backport this to the 4.4 branch since it changes a translated string, will do something slightly different in the 4.4 branch instead.
BUG:227137

svn path=/trunk/KDE/kdebase/runtime/; revision=1091105
2010-02-16 17:48:54 +00:00
Aaron J. Seigo
ce64431653 QRectF, so it can be used in the bindings
svn path=/trunk/KDE/kdebase/runtime/; revision=1090779
2010-02-16 00:10:30 +00:00
Aaron J. Seigo
361ffdbbb9 register the animation enums
svn path=/trunk/KDE/kdebase/runtime/; revision=1090654
2010-02-15 18:08:32 +00:00
Aaron J. Seigo
58c8a6cc0a share the dataengine bindings between applet and dataengine
svn path=/trunk/KDE/kdebase/runtime/; revision=1089372
2010-02-13 00:53:46 +00:00
Aaron J. Seigo
1072174a96 a bit more manual, but it works much better.DataEngine::serviceForSource actually works now, for instance
svn path=/trunk/KDE/kdebase/runtime/; revision=1089368
2010-02-13 00:32:26 +00:00
Aaron J. Seigo
0df331ac6c since dataengine objects are shared, we likely will already have a wrapper object for a dataengine so re-use them if they exist.
svn path=/trunk/KDE/kdebase/runtime/; revision=1083608
2010-02-01 16:18:49 +00:00
Aaron J. Seigo
1549eb3528 move DummyService to dataengine.h where so it doesn't need to be duplicated elsewhere
svn path=/trunk/KDE/kdebase/runtime/; revision=1077830
2010-01-20 23:25:24 +00:00
Aaron J. Seigo
59ca56a770 extenders
svn path=/trunk/KDE/kdebase/runtime/; revision=1077776
2010-01-20 21:40:55 +00:00
Aaron J. Seigo
f6d908b151 should be dataUpdated like everywhere else in plasma
svn path=/trunk/KDE/kdebase/runtime/; revision=1077767
2010-01-20 21:12:24 +00:00
Aaron J. Seigo
2095163074 missing enums on the Svg objects
svn path=/trunk/KDE/kdebase/runtime/; revision=1073879
2010-01-13 03:14:02 +00:00
Aaron J. Seigo
a44ebee80d easing curve is now necessary due to change in animation API from easingCurveType to easingCurve
svn path=/trunk/KDE/kdebase/runtime/; revision=1073846
2010-01-12 23:32:56 +00:00
Aaron J. Seigo
c3b9c61da1 able to fetch property animation; was missing in js relative to the c++
svn path=/trunk/KDE/kdebase/runtime/; revision=1073568
2010-01-12 11:16:33 +00:00
Aaron J. Seigo
88496997f9 moderately lame way to get conditional compilation of GUI features
svn path=/trunk/KDE/kdebase/runtime/; revision=1070943
2010-01-07 02:26:44 +00:00
Aaron J. Seigo
a85e29367a isolate out the common QScriptEngine setup that is sharable between the various ScriptEngines; this will prevent having to reimplement (or more likely copy and paste) the extensions loading, print, debug, etc. from the applet implementation to get that support in dataengines and runners.
svn path=/trunk/KDE/kdebase/runtime/; revision=1070936
2010-01-07 02:04:59 +00:00
Aaron J. Seigo
03da062151 adapt to Animation api change
svn path=/trunk/KDE/kdebase/runtime/; revision=1069734
2010-01-04 09:24:13 +00:00
Aaron J. Seigo
47deeea77c huge cleanup with lots of inter-twined changes, but this should be more or less ready for 4.4.0 at this point! changes include:
* discovered QByteArrays were completely opaque to the runtime, obviously not good seeing how many things use them. fortunately, Qt has bindings for them ... in the examples! so just pulled those over (license compatible, thankfully) and now that works
* implement the remaining security hooks so it knows the difference between different kinds of urls
* export KIO::Job into the runtime; i really wish we could have had more time to do something more elegant than just pushing the object wholesale into the runtime as it exposes a LOT of API, but this works, should be safe (security wise) and as we are in feature freeze there's really nothing better that can be done to replace it at this point in time
* move some of the utility bindings (i18n, DataEngine) into simplebindings/ for consistency
* break out the qvariant stuff that is used outside of the DataEngine bindings for clarity
* brea out a bunch of the bookkeeping setup stuff from simplejavascriptapplet.cpp (it was getting messy) and put it into a separate .cpp file

svn path=/trunk/KDE/kdebase/runtime/; revision=1063070
2009-12-16 22:05:46 +00:00
Aaron J. Seigo
52aaea24e7 make animation groups work again in javascript by subclassing the Qt classes and making the interesting methods scriptable in the subclasses and calling the parent class implementations.
svn path=/trunk/KDE/kdebase/runtime/; revision=1062484
2009-12-14 21:54:23 +00:00
Aaron J. Seigo
49f3bb58da * make sure we have an animation, return an error if we don't; makes this a bit more robust against changes in libplasma
* don't set the widget to aimate on an animation if the parent is automatically set to the applet; this has odd side-effects like Fade animations causing the plasmoid to disappear ;)

svn path=/trunk/KDE/kdebase/runtime/; revision=1062483
2009-12-14 21:52:40 +00:00
Aaron J. Seigo
c1cdc1ae40 add the new anims
svn path=/trunk/KDE/kdebase/runtime/; revision=1060137
2009-12-08 09:24:24 +00:00
Romain Pokrzywka
fd18bfc840 AnimationGroup is gone in kdelibs
svn path=/trunk/KDE/kdebase/runtime/; revision=1059559
2009-12-06 22:42:58 +00:00
Aaron J. Seigo
3c7b7a0992 * standardize parent extraction (accept a passed in argument, fall back to the applet)
* use Q[Sequential|Parallel]AniationGroup

svn path=/trunk/KDE/kdebase/runtime/; revision=1059416
2009-12-06 15:34:41 +00:00
Aaron J. Seigo
5b2a547c22 special case pause to use QPauseAnimation
svn path=/trunk/KDE/kdebase/runtime/; revision=1058595
2009-12-04 19:14:40 +00:00
Aaron J. Seigo
243a160dac improve some memory management
svn path=/trunk/KDE/kdebase/runtime/; revision=1058038
2009-12-03 20:58:17 +00:00
Adenilson Cavalcanti Da Silva
64b1a70362 Porting to new animation classes.
svn path=/trunk/KDE/kdebase/runtime/; revision=1058028
2009-12-03 20:42:13 +00:00
Adenilson Cavalcanti Da Silva
7d172a8607 Patches to make kdebase compile with current animation code.
svn path=/trunk/KDE/kdebase/runtime/; revision=1057994
2009-12-03 19:32:42 +00:00
Artur Duque de Souza
a356b3d452 Create bindings for QGraphicsGridLayout
We should definetely have a common header for the layout bindings
so we avoid duplicating the "layoutItem" function with different
names all around.

I created some macros to help creating the binding for GridLayout
that may be helpful in other scenarious. Maybe put this macros on
this shared header too ?

Anyway, the bindings for this class are ready if I didn't forget
any important functions and the code for layout item was a little
bit simplified trying to qscriptvalue_cast to QGraphicsLayout* instead
of each implementation of it.


svn path=/trunk/KDE/kdebase/runtime/; revision=1055930
2009-11-29 04:17:30 +00:00
Aaron J. Seigo
1a607dfab5 * actually process the optional list, not the required list, in the optional loop
* LaunchApp

svn path=/trunk/KDE/kdebase/runtime/; revision=1055423
2009-11-28 00:42:22 +00:00
Aaron J. Seigo
66c5852fb7 don't import extensions twice
svn path=/trunk/KDE/kdebase/runtime/; revision=1055411
2009-11-27 23:58:20 +00:00
Aaron J. Seigo
71b2a8243b failing to load an optional extension shouldn't fail the widget
svn path=/trunk/KDE/kdebase/runtime/; revision=1055409
2009-11-27 23:49:53 +00:00
Aaron J. Seigo
e28fc530cc provide adjustSize support; annoying and hackish, but it's the only way
svn path=/trunk/KDE/kdebase/runtime/; revision=1055319
2009-11-27 20:47:31 +00:00
Aaron J. Seigo
0ab7db4524 pen, without which painter is a lot less useful
svn path=/trunk/KDE/kdebase/runtime/; revision=1055311
2009-11-27 20:29:14 +00:00
Aaron J. Seigo
24133e0882 move AppletInterface into the simplebindings dir
svn path=/trunk/KDE/kdebase/runtime/; revision=1055288
2009-11-27 19:34:04 +00:00
Aaron J. Seigo
b0287c853b Svg and FrameSvg; the Plasma prefix seems superfluous, but keep them for compatibility
svn path=/trunk/KDE/kdebase/runtime/; revision=1054889
2009-11-27 02:21:49 +00:00
Aaron J. Seigo
9d9d849d72 add a delayed gc() for convenience so one doesn't have to set up a timer in the script to do that (leaving the timer itself behind in all likliehood *sigh*)
svn path=/trunk/KDE/kdebase/runtime/; revision=1051138
2009-11-18 22:40:38 +00:00
Aaron J. Seigo
2105167c6c file dialogs work, as do extensions. wicked.
svn path=/trunk/KDE/kdebase/runtime/; revision=1050287
2009-11-17 03:56:06 +00:00
Darío Andrés Rodríguez
e4952b3639 - Reduce the ammount of unused vars/parameters warnings
svn path=/trunk/KDE/kdebase/runtime/; revision=1049628
2009-11-15 15:41:16 +00:00
Aaron J. Seigo
8ec33f16dd * move around some rather old code; debug() belongs to the plasmoid object, findResource is right out
* add a getter for the loaded extensions

svn path=/trunk/KDE/kdebase/runtime/; revision=1048913
2009-11-14 07:32:00 +00:00
Aaron J. Seigo
c3232a4d4b * internal 'extensions'
* rough in the file dialog

svn path=/trunk/KDE/kdebase/runtime/; revision=1048911
2009-11-14 07:28:16 +00:00
Aaron J. Seigo
09f29dc6b4 allow including other files in contents/code/ into the Plasmoid. huzzah.
svn path=/trunk/KDE/kdebase/runtime/; revision=1048899
2009-11-14 05:19:19 +00:00
Aaron J. Seigo
c3fbefdb38 stop using kdebug for prit
svn path=/trunk/KDE/kdebase/runtime/; revision=1048846
2009-11-14 01:09:44 +00:00
Aaron J. Seigo
8acb059ded some more constraints
svn path=/trunk/KDE/kdebase/runtime/; revision=1048762
2009-11-13 22:21:56 +00:00
Aaron J. Seigo
27f4697300 and optional ones now too
svn path=/trunk/KDE/kdebase/runtime/; revision=1047346
2009-11-11 02:12:40 +00:00
Aaron J. Seigo
9d91ea5a8c * use failed to launch of fatal errors
* error nicely in in it( )so there is more visible feedback with meaning to the user
* sketch in the beginnings of extension loading

svn path=/trunk/KDE/kdebase/runtime/; revision=1047344
2009-11-11 02:09:25 +00:00
Artur Duque de Souza
ad5e59fdeb Support for Anchor Layout (Qt 4.6)
Now we have support for anchor layout on javascript
plasmoids. This is at 90%. It's not working properly yet
as we need either a patch in Qt (being discussed) or another
not so beautiful approach. After this it will work 98%, and
I'll just need to do the QGraphicsAnchor bindings to support
spacing and size policies of anchors.


svn path=/trunk/KDE/kdebase/runtime/; revision=1044107
2009-11-03 03:06:04 +00:00
Aaron J. Seigo
03a314883f support pause
svn path=/trunk/KDE/kdebase/runtime/; revision=1038846
2009-10-22 03:59:07 +00:00
Aaron J. Seigo
d3abf0b709 qscriptvalue_cast doesn't work quite as expected
svn path=/trunk/KDE/kdebase/runtime/; revision=1038830
2009-10-22 01:55:53 +00:00
Aaron J. Seigo
f5cb7c67a7 AnimationGroup support and QGraphicsWidget* registration; one can now do things like:
l = new Label;
l.text = 'check this out'
fadeAnim = animation("fade")
fadeAnim.widgetToAnimate = l
rotateAnim = animation("rotate")
animGroup = new AnimationGroup
animGroup.parallel = true
animGroup.add(fadeAnim)
animGroup.add(rotateAnim)
animGroup.start()

and watch the label flip fade out while the whole plasmoid rotates. sweet.

svn path=/trunk/KDE/kdebase/runtime/; revision=1038372
2009-10-21 07:53:49 +00:00