Commit Graph

590 Commits

Author SHA1 Message Date
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
Aaron Seigo
841aca3d3e up the API v# 2011-04-09 21:00:08 +02:00
Aaron Seigo
4d2bd9e799 openUrl for http urls when http extension is requested 2011-04-09 21:00:08 +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
Script Kiddy
cb3424f3cb SVN_SILENT made messages (.desktop file) 2011-03-31 07:41:49 +02:00
Script Kiddy
0c29d7611c SVN_SILENT made messages (.desktop file) 2011-03-30 08:45:32 +02:00
Script Kiddy
7f4abfc7a5 SVN_SILENT made messages (.desktop file) 2011-03-29 09:36:56 +02:00
Marco Martin
19ff95e3a1 relicense under LGPL upon author's permission 2011-03-28 16:54:24 +02:00
Marco Martin
264aa5e8fb bind setAssociatedApplication 2011-03-27 16:59:08 +02:00
Marco Martin
2acf29889e update the license
After asking for an explicit permission by the author and the copyright holder (Nokia)
update the license from GPL to LGPL
2011-03-27 12:38:01 +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
Script Kiddy
dde9d31775 SVN_SILENT made messages (.desktop file) 2011-03-02 08:39:29 +01:00
Marco Martin
15122a4d6e export action() 2011-02-28 20:42:24 +01:00
Script Kiddy
2af794b302 SVN_SILENT made messages (.desktop file) 2011-02-27 08:11:06 +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
Script Kiddy
5abc23e105 SVN_SILENT made messages (.desktop file) 2011-02-14 16:29:30 +01:00
Script Kiddy
df96956c7b SVN_SILENT made messages (.desktop file) 2011-02-13 20:32:05 +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
Script Kiddy
45a8784f4c SVN_SILENT made messages (.desktop file) 2011-02-03 07:25:02 +01:00
Script Kiddy
d720a8024e SVN_SILENT made messages (.desktop file) 2011-02-02 08:25:29 +01:00
Aaron J. Seigo
906b55c050 unbreak update() method
svn path=/trunk/KDE/kdebase/runtime/; revision=1217812
2011-01-28 19:44:35 +00:00
Marco Martin
ff6234b2ac no spaces before #
svn path=/trunk/KDE/kdebase/runtime/; revision=1216700
2011-01-24 09:34:03 +00:00
Marco Martin
583e3c168b fix setters and getters: set the proper stuff, copy and paste--
svn path=/trunk/KDE/kdebase/runtime/; revision=1216118
2011-01-21 13:29:29 +00:00
Script Kiddy
b6698c3349 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1215655
2011-01-19 06:32:58 +00:00
Script Kiddy
a13812359a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1213663
2011-01-11 09:07:40 +00:00
Script Kiddy
87d649665e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1207957
2010-12-20 06:25:07 +00:00
Script Kiddy
b20086135b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1207443
2010-12-18 06:01:23 +00:00
Script Kiddy
e2fffbfce0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1207224
2010-12-17 06:24:18 +00:00
Script Kiddy
b8821d3aab SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1206942
2010-12-16 06:59:18 +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
Aaron J. Seigo
ad61d813f7 add an explicity conversion to utf8
svn path=/trunk/KDE/kdebase/runtime/; revision=1206671
2010-12-15 11:13:13 +00:00
Script Kiddy
feaa077f5c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1206377
2010-12-14 07:32:10 +00:00
Aaron J. Seigo
8b17af2880 yes, not used anymore
svn path=/trunk/KDE/kdebase/runtime/; revision=1205344
2010-12-10 22:50:02 +00:00
Aaron J. Seigo
abe038a09e new KRun -> magic. thanks to dfaure for jogging my poor brain.
svn path=/trunk/KDE/kdebase/runtime/; revision=1205333
2010-12-10 22:09:06 +00:00
Script Kiddy
8b67c15937 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1204797
2010-12-09 05:34:09 +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
Marco Martin
4c6b625f62 don't ue kio on mobile profile
svn path=/trunk/KDE/kdebase/runtime/; revision=1203934
2010-12-05 18:38:36 +00:00
Script Kiddy
c87b8e35b6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1201312
2010-11-27 10:52:06 +00:00
Script Kiddy
f1f36d19a5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1199629
2010-11-22 09:54:10 +00:00
Script Kiddy
48307f25d4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1198064
2010-11-17 09:42:13 +00:00
Christian Ehrlicher
aaf33b765d link on windows
svn path=/trunk/KDE/kdebase/runtime/; revision=1195234
2010-11-10 16:09:18 +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
Script Kiddy
a525eb7bba SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1194642
2010-11-09 11:22:01 +00:00
Script Kiddy
5cc73ecf16 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1193823
2010-11-07 09:46:18 +00:00
Script Kiddy
1696ca5d8a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1193244
2010-11-05 09:45:47 +00:00
Script Kiddy
b62bbf4180 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1191852
2010-11-01 09:55:38 +00:00
Script Kiddy
0fe7693cf0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1191511
2010-10-31 09:11:11 +00:00
Marco Martin
c0cb2a9b2c use m_package->filePath() to resolve the path, includes already security checks (and eventual future fallback)
svn path=/trunk/KDE/kdebase/runtime/; revision=1191099
2010-10-29 15:14:47 +00:00
Script Kiddy
711676009b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1189884
2010-10-26 09:57:26 +00:00
Marco Martin
2e374dbd8c use a normal QNetworkAccessManager in case of plasmapackage:/
svn path=/trunk/KDE/kdebase/runtime/; revision=1189297
2010-10-24 14:01:56 +00:00
Marco Martin
be83c17415 loadService in SimpleJavaScriptApplet
svn path=/trunk/KDE/kdebase/runtime/; revision=1189270
2010-10-24 12:17:22 +00:00
Script Kiddy
144997ee13 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1189214
2010-10-24 09:03:07 +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
Script Kiddy
61b3302821 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1188900
2010-10-23 09:30:54 +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
ade2a71286 check with the authorization manager whether to allow the import of a certain url (unfortunatel doesn't seem to be any way to block local absolute paths :/)
svn path=/trunk/KDE/kdebase/runtime/; revision=1188241
2010-10-21 19:02:29 +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
Script Kiddy
2586f3ecb8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1188056
2010-10-21 08:44:18 +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
e054fbb8aa don't register print() in the declarative bindings: t' already there
svn path=/trunk/KDE/kdebase/runtime/; revision=1187930
2010-10-20 19:40:30 +00:00
Script Kiddy
81879c1cf4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1187411
2010-10-19 09:48:57 +00:00
Andreas Hartmetz
f25a4e438f Fix the same typo in CMakeLists.txt
svn path=/trunk/KDE/kdebase/runtime/; revision=1186855
2010-10-17 18:53:53 +00:00
Marco Martin
fd677e7423 correct typo
svn path=/trunk/KDE/kdebase/runtime/; revision=1186804
2010-10-17 16:01:34 +00:00
Script Kiddy
dea66b2269 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1186710
2010-10-17 09:10:25 +00:00
Script Kiddy
ed1935d4ef SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1186391
2010-10-16 08:32:59 +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
Script Kiddy
5d1f73a693 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1186160
2010-10-15 09:10:36 +00:00
Marco Martin
ac187bfc50 build the declarative engine in its new location
svn path=/trunk/KDE/kdebase/runtime/; revision=1185950
2010-10-14 18:43:25 +00:00
Marco Martin
d12cab235a move in runtime
svn path=/trunk/KDE/kdebase/runtime/; revision=1185949
2010-10-14 18:36:53 +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
0ad5112af4 move in runtime
svn path=/trunk/KDE/kdebase/runtime/; revision=1185947
2010-10-14 18:34:46 +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
Script Kiddy
017f67bc86 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1184436
2010-10-10 08:43:51 +00:00
Marco Martin
5c3c9106be if event listeners are case insensitive, make them really case
insensitive

svn path=/trunk/KDE/kdebase/runtime/; revision=1182727
2010-10-05 13:36:05 +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
Script Kiddy
fb9a7394af SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1182661
2010-10-05 10:15:44 +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
Marco Martin
65f7d021d1 add QList<double> as the known types: the plotter needs it
svn path=/trunk/KDE/kdebase/runtime/; revision=1182468
2010-10-04 17:23:21 +00:00
Script Kiddy
724af8a44b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1182318
2010-10-04 08:21:13 +00:00
Aaron J. Seigo
92dce059a1 add activate(), since QGraphicsLayout often does it at rather inopportune times and requires manual intervention
svn path=/trunk/KDE/kdebase/runtime/; revision=1181766
2010-10-02 02:09:38 +00:00
Aaron J. Seigo
a421a1bd6a make it possible to instantiate a plain QGraphicsWidget
svn path=/trunk/KDE/kdebase/runtime/; revision=1181765
2010-10-02 02:05:57 +00:00
Script Kiddy
4b2f78731a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1180602
2010-09-28 10:17:49 +00:00
Script Kiddy
ad72afdc47 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1179826
2010-09-26 09:11:16 +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
Script Kiddy
e7bab22a0a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1178980
2010-09-24 08:56:03 +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