Commit Graph

62 Commits

Author SHA1 Message Date
Marco Martin
84de302083 fix containment margins
signal availableScreenRegionChanged() too
2011-10-01 15:14:43 +02:00
Aaron Seigo
136ea88ec4 preserve order of actions 2011-09-28 08:50:43 +02:00
Aaron Seigo
7497948a2b if the applet has failed, then don't return actions for it 2011-09-22 22:44:17 +02:00
Aaron Seigo
691f590664 don't crash on failed launch 2011-09-22 22:44:17 +02:00
Aaron Seigo
a810cd2ab0 don't crash when the applet fails to init 2011-09-22 22:44:16 +02:00
Marco Martin
756b3f1685 crash-- move after first call to applet() 2011-07-11 22:44:05 +02:00
Marco Martin
1d5ec8c2e0 insert a catalog named as the plugin name 2011-07-11 21:24:26 +02:00
Aaron Seigo
e8258b9131 delete the NAM; it isn't deleted by the QDeclarativeEngine 2011-06-15 14:18:43 +02:00
Marco Martin
d2efdc34ee restore ability to register contextual actions 2011-06-09 14:31:35 +02:00
Marco Martin
ff47808ef2 check against a null qscriptengine 2011-05-17 16:41:42 +02:00
Marco Martin
4a906d4ed4 dataengine bindings are in DeclarativeWidget now 2011-04-30 14:37:43 +02:00
Marco Martin
388d61203f compatible signature in connect 2011-04-14 22:49:13 +02:00
Marco Martin
469f2076dd reorder together the other Plasma enums 2011-04-14 19:50:57 +02:00
Marco Martin
06f753173a n Applet the signal is newStatus 2011-04-14 17:08:11 +02:00
Marco Martin
2fc39865e3 forward the statusChanged() signal 2011-04-14 16:46:13 +02:00
Marco Martin
ef1ff5403e FEATURE:bind Applet::status() 2011-04-14 16:38:15 +02:00
Marco Martin
6f9f911c68 don't re-bind what was done in libkdeclarative 2011-04-07 23:27:05 +02:00
Marco Martin
2a54c9c416 use the engine access in DeclarativeWidget
now DeclarativeWidget itself steals the scriptengine, so use it instead of having the hack there
2011-04-07 22:39:18 +02:00
Marco Martin
2754c01add FEATURE: expose the activity name and id
expose activity name and activityid in the containment wrapper interface
2011-04-04 16:15:48 +02:00
Aaron Seigo
da186219ae give connectAllSources the same magic sauce connectSource does
thanks to emilsedgh for having the special super power of using precisely
what hasn't been properly implemented ... and then reporting it with
nice simple examples we can test with! THAT, my friends, is how it is done.
2011-04-04 14:43:40 +02:00
Marco Martin
264aa5e8fb bind setAssociatedApplication 2011-03-27 16:59:08 +02:00
Marco Martin
fcd51b4c67 support availableScreenregion()
FEATURE: bridge to Corona::availableScreenRegion(), as an array of rects
2011-03-13 17:26:59 +01:00
Marco Martin
f07062fae5 movableApplets property of Containment
just for scripted contaiments, C++ ones can easily implement it themselves
2011-03-07 20:17:52 +01:00
Marco Martin
33fe3f4874 export the QRectF as an objecy QtScript understand 2011-03-02 15:41:57 +01:00
Marco Martin
0dda9c72ee bind screen() and Corona::screenGeometry() 2011-03-02 15:41:57 +01:00
Marco Martin
15122a4d6e export action() 2011-02-28 20:42:24 +01:00
Marco Martin
a5636902e6 correctly register the type property 2011-02-25 22:12:41 +01:00
Marco Martin
888d964d22 register enums in the scriptengine 2011-02-25 22:11:11 +01:00
Marco Martin
b6f2751ba2 possible to set drawWallpaper and containmentType 2011-02-22 13:25:03 +01:00
Marco Martin
ea0b394a55 a simple binding for scripted containments 2011-02-20 19:45:40 +01:00
Aaron Reichman
4037ced032 Fixed spelling errors from krazy (all in comments or debug/warnings, no strings) 2011-02-07 12:29:08 -08:00
Aaron J. Seigo
906b55c050 unbreak update() method
svn path=/trunk/KDE/kdebase/runtime/; revision=1217812
2011-01-28 19:44:35 +00:00
Aaron J. Seigo
20d88def72 registerSimpleAppletMetaTypes no longer calls registerNonGuiMetaTypes, so call it explicitly. the i/o example/test plasmoids work again.
svn path=/trunk/KDE/kdebase/runtime/; revision=1206672
2010-12-15 11:15:26 +00:00
Marco Martin
63a8e6caec deactivate the internal import directory in a (futile?) attempt to prevent binary libraries into /share
svn path=/trunk/KDE/kdebase/runtime/; revision=1204751
2010-12-08 22:45:45 +00:00
Kevin Ottens
523d2e6128 Add missing debug includes.
svn path=/trunk/KDE/kdebase/runtime/; revision=1195229
2010-11-10 16:03:55 +00:00
Marco Martin
be83c17415 loadService in SimpleJavaScriptApplet
svn path=/trunk/KDE/kdebase/runtime/; revision=1189270
2010-10-24 12:17:22 +00:00
Marco Martin
dc0ab1345f loadService() function to load services without dataengines.
will be propagated to the js appletscript too

svn path=/trunk/KDE/kdebase/runtime/; revision=1189005
2010-10-23 17:30:10 +00:00
Marco Martin
58adcad0a2 add loadUi from the js engine
svn path=/trunk/KDE/kdebase/runtime/; revision=1188406
2010-10-22 10:12:35 +00:00
Marco Martin
bc13065f9a make the authorization global
svn path=/trunk/KDE/kdebase/runtime/; revision=1188264
2010-10-21 20:37:47 +00:00
Marco Martin
155dc2d056 use a custom network access manager, based on the kio one, but has a
special handling for package:/foo  urls

svn path=/trunk/KDE/kdebase/runtime/; revision=1188205
2010-10-21 17:39:05 +00:00
Marco Martin
5dd5d716dc add the package folder (script) as valid imports dir (will probably have to be contents/imports
svn path=/trunk/KDE/kdebase/runtime/; revision=1187952
2010-10-20 20:55:35 +00:00
Marco Martin
3b219d6e39 if the parsing fails, set failed to launch with a reasonable message
svn path=/trunk/KDE/kdebase/runtime/; revision=1186305
2010-10-15 18:56:30 +00:00
Marco Martin
9a02b74797 move in the proper place
svn path=/trunk/KDE/kdebase/runtime/; revision=1185948
2010-10-14 18:36:09 +00:00
Marco Martin
9de619ed86 remove the QVariant workaround since the QScriptEngine::newVariant() should be fixed now in qt.
it seems to work for now, will keep the js scriptengine unchanged for a while to check for eventual problems.
if this work out will make the merge with the qml engine way easier

svn path=/trunk/KDE/kdebase/runtime/; revision=1185556
2010-10-13 18:08:07 +00:00
Marco Martin
ac8de83bbd first important part for the ml bindings merge:
make appletInterface more generic it could work with QML too
simplejavascriptapplet inherits from an abstract ckass that provides just the virtuals of functions needed by appletinterface so a different scriptengine implementation can be used as well.

The behaviour of the current js bindings should be completely unchanged.

svn path=/trunk/KDE/kdebase/runtime/; revision=1185532
2010-10-13 16:12:43 +00:00
Marco Martin
30072e63a3 use args for dataupdated too
svn path=/trunk/KDE/kdebase/runtime/; revision=1182724
2010-10-05 13:32:14 +00:00
Marco Martin
11f05f4df3 don't forget to pass the args
svn path=/trunk/KDE/kdebase/runtime/; revision=1182721
2010-10-05 13:30:38 +00:00
Aaron J. Seigo
a12455114f moved to ScriptEnv some time ago
svn path=/trunk/KDE/kdebase/runtime/; revision=1182527
2010-10-04 20:25:07 +00:00
Aaron J. Seigo
f968cb8033 fix a small hole whereby a JS applet could load any SVG from disk (or any file, for that matter, though not gain any access to the data therein) instead of being confined just to its package(s) and the Plasma::Theme
svn path=/trunk/KDE/kdebase/runtime/; revision=1179255
2010-09-24 22:51:16 +00:00
Marco Martin
5b0441484c the event is called configchanged
svn path=/trunk/KDE/kdebase/runtime/; revision=1178639
2010-09-23 12:13:08 +00:00