Commit Graph

485 Commits

Author SHA1 Message Date
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
Aaron J. Seigo
003d75fadb allow the common properties implemented in ScriptEnv (for code sharing, consistency) to be assigned to any object (e.g. the m_self/m_iface script values created in the DataEngine and Runner ScriptEngines)
svn path=/trunk/KDE/kdebase/runtime/; revision=1159605
2010-08-05 19:05:37 +00:00
Aaron J. Seigo
7e92e302af correct signal connection
svn path=/trunk/KDE/kdebase/runtime/; revision=1159601
2010-08-05 18:44:51 +00:00
Aaron J. Seigo
e24fd94056 actually into data this time; not sure how svn managed to get that move wrong
svn path=/trunk/KDE/kdebase/runtime/; revision=1159335
2010-08-05 04:44:20 +00:00
Aaron J. Seigo
f46d99ceec bring back the old hack
svn path=/trunk/KDE/kdebase/runtime/; revision=1159334
2010-08-05 04:42:39 +00:00
Aaron J. Seigo
076c25883d in data/ now
svn path=/trunk/KDE/kdebase/runtime/; revision=1159333
2010-08-05 04:42:21 +00:00
Aaron J. Seigo
6df1d10c0b too much copy and paste :)
svn path=/trunk/KDE/kdebase/runtime/; revision=1159166
2010-08-04 15:46:44 +00:00
Aaron J. Seigo
948fa2720f move the event listener concept to the scriptenv, introduce the concept of addons for javascript components
svn path=/trunk/KDE/kdebase/runtime/; revision=1158928
2010-08-04 03:53:41 +00:00
Script Kiddy
3d8bedb45a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1158610
2010-08-03 08:28:40 +00:00
Aaron J. Seigo
814448e8ac it's ok if it is an array as well
svn path=/trunk/KDE/kdebase/runtime/; revision=1158468
2010-08-02 19:59:49 +00:00
Script Kiddy
39c4c8d3c6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1155392
2010-07-27 09:11:06 +00:00
Script Kiddy
d99a645979 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1144877
2010-07-01 06:52:15 +00:00
Aaron J. Seigo
0e4d7f18f4 include()
svn path=/trunk/KDE/kdebase/runtime/; revision=1144460
2010-06-29 23:44:27 +00:00
Aaron J. Seigo
e36fc57156 include functionality
svn path=/trunk/KDE/kdebase/runtime/; revision=1144434
2010-06-29 22:11:15 +00:00
Aaron J. Seigo
c567598828 load the main script
svn path=/trunk/KDE/kdebase/runtime/; revision=1141021
2010-06-22 02:08:33 +00:00
Aaron J. Seigo
b15e66d188 javascript dataengines now actually work
svn path=/trunk/KDE/kdebase/runtime/; revision=1141016
2010-06-22 01:55:53 +00:00
Script Kiddy
cad340213b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1137475
2010-06-13 06:22:19 +00:00
Script Kiddy
12727c90c9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1131891
2010-05-29 06:53:39 +00:00
Script Kiddy
d920725c79 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1130726
2010-05-26 06:47:45 +00:00
Aaron J. Seigo
f2ebfa98e3 --buildWarnings;
svn path=/trunk/KDE/kdebase/runtime/; revision=1129249
2010-05-21 18:49:40 +00:00
Aaron J. Seigo
a0822e0beb make Qt::MouseButton in signals work
svn path=/trunk/KDE/kdebase/runtime/; revision=1129248
2010-05-21 18:48:09 +00:00
Aaron J. Seigo
cd753894be support setting full arrays of data
svn path=/trunk/KDE/kdebase/runtime/; revision=1128673
2010-05-19 22:22:52 +00:00
Aaron J. Seigo
a52bd2b9fb avoid an infinite loop
svn path=/trunk/KDE/kdebase/runtime/; revision=1128665
2010-05-19 21:58:18 +00:00
Alex Merry
01c231b642 Remove a Q_DECLARE_METATYPE for DataEngine* - this is now in dataengine.h
svn path=/trunk/KDE/kdebase/runtime/; revision=1126824
2010-05-14 23:17:01 +00:00
Aaron J. Seigo
5b66232873 hook up the JS engine to the JS animation support, and don't make animation loading failure a fatal error
svn path=/trunk/KDE/kdebase/runtime/; revision=1126036
2010-05-13 00:53:49 +00:00
Aaron J. Seigo
d1451eeca0 report and clear exceptions, even when caused by a method connected to a signal
BUG:234811

svn path=/trunk/KDE/kdebase/runtime/; revision=1124155
2010-05-07 23:37:25 +00:00
Aaron J. Seigo
e11acef040 support javascript animations
svn path=/trunk/KDE/kdebase/runtime/; revision=1120789
2010-04-29 23:58:01 +00:00
Aaron J. Seigo
47406f1250 some janitoring
svn path=/trunk/KDE/kdebase/runtime/; revision=1120759
2010-04-29 22:00:19 +00:00
Script Kiddy
9367040052 SVN_SILENT made messages (.desktop file, second try)
svn path=/trunk/KDE/kdebase/runtime/; revision=1115707
2010-04-17 06:30:04 +00:00
Aaron J. Seigo
be24205109 key modifiers enum
svn path=/trunk/KDE/kdebase/runtime/; revision=1110136
2010-04-02 01:04:06 +00:00
Aaron J. Seigo
dc7f4d59b6 event objects; not sure if this is the fastest way, but in my measuring it takes well under a millisecond per event to do the entire event handling sequence, so the event object reation can't be slow bit ;)
svn path=/trunk/KDE/kdebase/runtime/; revision=1110135
2010-04-02 01:03:55 +00:00
Aaron J. Seigo
282a4f833e ensure the value passed to stretch is always > 0
svn path=/trunk/KDE/kdebase/runtime/; revision=1110071
2010-04-01 19:57:13 +00:00
Aaron J. Seigo
34faad3c3f keep it consistent with the name of callback in the plasmoid object
svn path=/trunk/KDE/kdebase/runtime/; revision=1109758
2010-04-01 00:59:14 +00:00
Aaron J. Seigo
611d61d73f * event handlers, w3c style, for all the plasma callbacks
* added mouse and keyboard events

svn path=/trunk/KDE/kdebase/runtime/; revision=1109755
2010-04-01 00:46:44 +00:00
Aaron J. Seigo
9d78e417c2 save some code; if profiling later shows it too expensive to set up the args lists for some of these calls, then we can check for the existence of the callbacks after first script evaluation and go from there
svn path=/trunk/KDE/kdebase/runtime/; revision=1109723
2010-03-31 21:32:27 +00:00
Aaron J. Seigo
99945e5a99 QSizePolicy, need to make size policy setting possible
svn path=/trunk/KDE/kdebase/runtime/; revision=1107165
2010-03-24 23:56:07 +00:00
Aaron J. Seigo
d362ce9245 make registerEnums static
svn path=/trunk/KDE/kdebase/runtime/; revision=1107158
2010-03-24 23:31:08 +00:00
Script Kiddy
d10862ddb6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1104643
2010-03-18 06:54:13 +00:00
Script Kiddy
fd3c8cdaf2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=1101859
2010-03-11 06:51:07 +00:00
Aaron J. Seigo
8df3489f24 allow connecting engine sources to pretty much anything in the script
svn path=/trunk/KDE/kdebase/runtime/; revision=1101799
2010-03-10 23:10:33 +00:00
Aaron J. Seigo
7b3c875217 IntervalAlignment
svn path=/trunk/KDE/kdebase/runtime/; revision=1101332
2010-03-09 22:29:08 +00:00