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
Marco Martin
107a3d5758
those conditions were actually on the other way around
...
should be backported?
CCMAIL:aseigo@kde.org
svn path=/trunk/KDE/kdebase/runtime/; revision=1178397
2010-09-22 22:22:37 +00:00
Script Kiddy
3a985eeb1a
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1177799
2010-09-21 10:01:09 +00:00
Aaron J. Seigo
f7c8bd278d
make maps-n-hashes in maps-n-hashes work
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1176437
2010-09-17 18:06:20 +00:00
Aaron J. Seigo
46c28dffcf
allow setting empty sources
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175923
2010-09-16 07:02:19 +00:00
Aaron J. Seigo
7db67d1164
improve support for arrays and objects passed in to setData
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175910
2010-09-16 05:36:28 +00:00
Aaron J. Seigo
0eb578462c
SVN_SILENT: ocd
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175909
2010-09-16 05:36:10 +00:00
Aaron J. Seigo
23364f9b16
bookkeeping for the dataengine
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175803
2010-09-16 01:14:08 +00:00
Aaron J. Seigo
91dafe9793
split out the gui and non-gui bookkeeping; improve the kconfig binding bit
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175801
2010-09-16 01:13:34 +00:00
Aaron J. Seigo
fae88be62e
typo
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175798
2010-09-16 00:33:09 +00:00
Script Kiddy
6456a4f3d6
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1175120
2010-09-14 09:27:13 +00:00
Script Kiddy
fa6c1b4ca6
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1173714
2010-09-10 09:05:39 +00:00
Script Kiddy
631c42cb01
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1172371
2010-09-07 06:20:25 +00:00
Aaron J. Seigo
7a533c24fb
support finding paths from the current context
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171722
2010-09-04 22:51:48 +00:00
Aaron J. Seigo
0c6ed54a52
use filePathFromScriptContext
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171721
2010-09-04 22:51:32 +00:00
Aaron J. Seigo
33c240ffa4
use filePathFromScriptContext
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171720
2010-09-04 22:51:13 +00:00
Aaron J. Seigo
f13c8b249c
add support for finding a file path from the current context and cleanups around the addons code now that this works reliably
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171716
2010-09-04 22:45:55 +00:00
Aaron J. Seigo
3ada6f78e9
allow sub-packages from addons
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171702
2010-09-04 22:22:40 +00:00
Laurent Montel
7a4560a677
Need to declare it (make it compile)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171528
2010-09-04 08:12:04 +00:00
Aaron J. Seigo
603096a318
make addon packages work with Svg objects as well (and just about everything else that we might need in future); need to replicate this for DataEngine and Runner now.
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171497
2010-09-04 00:27:45 +00:00
Aaron J. Seigo
de6c425f17
package is no longer needed, use the local package if there is one, falling back to the main one when it isn't. overhead is negligable (measured it)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171490
2010-09-04 00:06:18 +00:00
Aaron J. Seigo
d07baae46f
set a local package
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171489
2010-09-04 00:05:30 +00:00
Aaron J. Seigo
3878087674
define useful paths
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171488
2010-09-04 00:05:14 +00:00
Aaron J. Seigo
244ee38b05
simplify the code, less reliance on the applet interface now
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171487
2010-09-04 00:04:40 +00:00
Aaron J. Seigo
348343ee0f
fix i18np up, avoid fatal errors
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171475
2010-09-03 22:36:45 +00:00
Aaron J. Seigo
9b47926ebe
non fatal errors
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171474
2010-09-03 22:36:27 +00:00
Aaron J. Seigo
60bda70955
don't kill the entire plugin just because an addon fails
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171464
2010-09-03 22:00:12 +00:00
Aaron J. Seigo
bb4f213215
more simplifications thanks to ScriptEnv
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171463
2010-09-03 21:59:55 +00:00
Aaron J. Seigo
bf35cc9176
use the centralized global object methods from ScriptEnv in SimpleJavaScriptApplet; gets rid of a handful of code and makes it more consistent
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171438
2010-09-03 21:31:37 +00:00
Aaron J. Seigo
6a9b6a302c
save fetching the env multiple times when we already have it
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171426
2010-09-03 21:00:25 +00:00
Aaron J. Seigo
871d541d9f
avoid infinite loop when connecting to a dataengine, but not reimplementing dataUpdated in the js
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1171421
2010-09-03 20:42:52 +00:00
Aaron J. Seigo
c9b045fa86
themed colors
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1170430
2010-08-31 20:47:05 +00:00
Script Kiddy
0c5592a447
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1169873
2010-08-30 07:37:07 +00:00
Script Kiddy
d31a0e4708
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1167725
2010-08-25 07:27:29 +00:00
Script Kiddy
0797d724b4
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1166954
2010-08-23 07:32:57 +00:00
Albert Astals Cid
3822565caa
There is no *.cpp so the previous line failed
...
CCMAIL: aseigo@kde.org
svn path=/trunk/KDE/kdebase/runtime/; revision=1166640
2010-08-22 10:14:40 +00:00
Script Kiddy
81d022f960
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1166621
2010-08-22 08:58:31 +00:00
Script Kiddy
7b53ed0ad5
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1164597
2010-08-17 09:09:15 +00:00
Script Kiddy
6bf4e212d1
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1163863
2010-08-15 07:18:41 +00:00
Aaron J. Seigo
e82fb8db88
add a dash, noticed by Hayro
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1162802
2010-08-12 18:03:57 +00:00
Script Kiddy
bd370bc62d
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1162562
2010-08-12 07:07:02 +00:00
Script Kiddy
518b146916
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1162023
2010-08-11 07:27:16 +00:00
Script Kiddy
2805bd3aea
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1161505
2010-08-10 09:01:14 +00:00
Aaron J. Seigo
0c6a1d4672
plugin definition
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1161155
2010-08-09 20:40:56 +00:00
Aaron J. Seigo
39dfc72ef8
the .desktop file
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1161154
2010-08-09 20:40:38 +00:00
Aaron J. Seigo
4d6e335156
PackageStructure plugin for plasmapkg et al as well as some fixes to the addon package structure definition
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1161152
2010-08-09 20:40:13 +00:00
Script Kiddy
7ddf64ba43
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160881
2010-08-09 07:34:28 +00:00
Script Kiddy
e72905af5d
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160514
2010-08-08 07:03:06 +00:00
Script Kiddy
a846b69826
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160125
2010-08-07 07:07:22 +00:00
Yuri Chornoivan
307959c614
ws->was
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160118
2010-08-07 05:03:08 +00:00
Aaron J. Seigo
4c7b3462c1
new and improved jobs/services mechanisms
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160074
2010-08-06 23:07:52 +00:00
Aaron J. Seigo
2bdd15bc2d
control the exposed API better
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160008
2010-08-06 19:42:08 +00:00
Aaron J. Seigo
0c929d525d
Qt ownership of the service object: they are owned by the caller, and so must be deleted by them
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1160005
2010-08-06 19:34:59 +00:00
Script Kiddy
4ae8247c18
SVN_SILENT made messages (.desktop file, second try)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159765
2010-08-06 07:09:32 +00:00
Yuri Chornoivan
aa827630c2
Plasa->Plasma
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159746
2010-08-06 05:07:39 +00:00
Aaron J. Seigo
e09ceabfbd
JavaScript DataEngines with JavaScript Services. what's left? custom Jobs.
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159737
2010-08-06 04:21:42 +00:00
Aaron J. Seigo
b5669412c5
reorg the sources; was growing increasingly messy and was only going to get "worse" as DataEngine grows
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159715
2010-08-06 02:01:40 +00:00
Aaron J. Seigo
87d6ebf09a
correct output
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159696
2010-08-05 23:40:41 +00:00
Aaron J. Seigo
e68da09400
listAddons now returns an array of objects that contain information about the addons.
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159687
2010-08-05 23:17:07 +00:00
Aaron J. Seigo
e96c23c5e1
better return values
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159674
2010-08-05 23:00:45 +00:00
Aaron J. Seigo
fe8a1522be
* lean on the ScriptEnv for function calling
...
* allow for event listeners on source and update requests
svn path=/trunk/KDE/kdebase/runtime/; revision=1159648
2010-08-05 21:14:00 +00:00
Aaron J. Seigo
c7e5e9ce79
add a return value to callFunction
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159647
2010-08-05 21:13:13 +00:00
Aaron J. Seigo
14ec881538
* correct lower case of "addoncreated" for event listener calling
...
* semi-failed experiment on adding things to the object (would love to have them availabe when construct() is called). will need to consult with QtScript gurus in their mountaintop fortress dojo
svn path=/trunk/KDE/kdebase/runtime/; revision=1159621
2010-08-05 20:08:26 +00:00
Aaron J. Seigo
2922aec6a7
correct name
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159612
2010-08-05 19:41:21 +00:00
Aaron J. Seigo
522bbc4de0
we will want this in code/ .. addons may want to grab other data as well
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159611
2010-08-05 19:40:13 +00:00
Aaron J. Seigo
f6d9a84da1
register the servicetype
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1159609
2010-08-05 19:26:25 +00:00