Commit Graph

285 Commits

Author SHA1 Message Date
Aaron J. Seigo
ed6b876a71 coding style fixes
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=950746
2009-04-07 18:14:29 +00:00
Petri Damstén
0e5af26cb0 * Support KUrl, QUrl and QColor in script value conversion
* Use variantToScriptValue in readConfig

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=948060
2009-04-02 06:15:22 +00:00
Script Kiddy
8de938b689 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=944934
2009-03-26 14:43:45 +00:00
Script Kiddy
95433f81f8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=943873
2009-03-24 15:44:46 +00:00
Pino Toscano
c242667181 extract messages from the qtgui subdirectory as well
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=943734
2009-03-24 11:24:20 +00:00
Script Kiddy
dd6509ad05 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=942339
2009-03-21 15:26:07 +00:00
Script Kiddy
1c14ef2d3f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=940939
2009-03-18 14:28:37 +00:00
Script Kiddy
c9ab4f1827 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=940525
2009-03-17 15:51:17 +00:00
Script Kiddy
fd21ad2d4e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=939654

The following changes were in SVN, but were removed from git:

M	pics/oxygen/index.theme
2009-03-15 13:46:07 +00:00
Script Kiddy
c0bb2120ba SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=939259
2009-03-14 14:36:38 +00:00
Marco Martin
c2a53c12fc add WebView too in the supported widgets
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=936993
2009-03-08 20:07:22 +00:00
Script Kiddy
aa49cc2641 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=936838

The following changes were in SVN, but were removed from git:

M	pics/oxygen/index.theme
2009-03-08 14:36:22 +00:00
Script Kiddy
efe708f872 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=936375
2009-03-07 13:26:46 +00:00
Script Kiddy
296c1c6e63 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=935170
2009-03-04 15:51:12 +00:00
Script Kiddy
232e2e8f3f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=933233
2009-02-28 13:35:50 +00:00
Script Kiddy
4589d2bdff SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=932916
2009-02-27 15:36:31 +00:00
Script Kiddy
abecdb2cfe SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=931776
2009-02-25 19:33:07 +00:00
Script Kiddy
5614a961f1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=930427
2009-02-23 13:41:51 +00:00
Script Kiddy
b5361fc576 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=929949

The following changes were in SVN, but were removed from git:

M	pics/oxygen/index.theme
2009-02-22 13:03:29 +00:00
Marco Martin
5f75ed8359 auto registers all the enums in widgets declared as Q_ENUMS, accessed as
widget.EnumValue

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=928727
2009-02-19 22:06:16 +00:00
Script Kiddy
b0df57c67d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=927865
2009-02-18 13:16:56 +00:00
Script Kiddy
6a6a6fb880 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=927390
2009-02-17 12:09:45 +00:00
Script Kiddy
f41d8d9488 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=926453

The following changes were in SVN, but were removed from git:

M	pics/oxygen/index.theme
2009-02-15 13:05:13 +00:00
Script Kiddy
eb244ad0bb SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=926053
2009-02-14 16:04:31 +00:00
Marco Martin
3bc7fa7a01 make VideoWidget::setUsedControls work
separate the enum registering in its own function
use the default controls in the javascript mediaplayer

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=925912
2009-02-14 13:57:37 +00:00
Marco Martin
0589a221e2 revert the phonon check, it appears HAVE_PHONON isn't defined and phonon
is required anyways

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=924894
2009-02-11 21:31:26 +00:00
Script Kiddy
398c844dac SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=924734
2009-02-11 14:05:30 +00:00
Christopher Blauvelt
4b4141e4fa setProperty can't take (QString, Qstring) as arguments so convert the second QString to a
QScriptValue.  This allows kdebase to compile.


svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=924164
2009-02-10 10:39:03 +00:00
Marco Martin
ec7e1e0c73 throw an exception when someone tries to instantiate VideoWidgetwhen
Phonon is not compiled in
thanks richmoore :)

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923937
2009-02-09 19:10:26 +00:00
Marco Martin
a478c54582 don't try to use the videowidget if we don't have phonon
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923932
2009-02-09 18:47:16 +00:00
Marco Martin
de7ebc6d69 an example video player in FIVE lines of javascript code :P
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923866
2009-02-09 16:15:41 +00:00
Marco Martin
0a4aa1f37c add videowidget in UiLoader
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923749
2009-02-09 10:54:26 +00:00
Marco Martin
1f34041d86 now in javascript you can access the applet arguments with
startupArguments

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=923312
2009-02-08 15:27:53 +00:00
Chani Armitage
ee8f42c665 change the name of the one to be implemented in js too
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=922870
2009-02-07 17:55:08 +00:00
Chani Armitage
480e5f4fb7 remove unused function and name the config function properly so it works
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=922868
2009-02-07 17:51:13 +00:00
Script Kiddy
2547125e32 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=921684
2009-02-05 14:09:41 +00:00
Script Kiddy
acb1442645 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=920235
2009-02-02 15:35:50 +00:00
Script Kiddy
0ea1ae00b2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=919783
2009-02-01 16:24:40 +00:00
Script Kiddy
0b10517250 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=918487
2009-01-29 23:37:07 +00:00
Script Kiddy
714dbbe9c8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=917787

The following changes were in SVN, but were removed from git:

M	pics/oxygen/index.theme
2009-01-28 15:01:35 +00:00
Aaron J. Seigo
22226ba142 make this a lot less chattier on start up
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=909641
2009-01-11 22:49:48 +00:00
Chani Armitage
a242c26cab don't force a size, it overrides config values
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=908614
2009-01-10 00:34:12 +00:00
Chani Armitage
c8dc2925f0 don't need that config function any more
remove an old FIXME too

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=908506
2009-01-09 20:47:29 +00:00
Laurent Montel
6c903f678b Not necessary
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907577
2009-01-08 12:37:15 +00:00
Aaron J. Seigo
7a47d0ded7 * share the one UiLoader amongst all javascript applets
* use function ptrs to make it a lot easier to add new widget and a lot faster to make them

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907298
2009-01-07 20:35:28 +00:00
Aaron J. Seigo
14a52775bb apparently we have to force writing out the config
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907294
2009-01-07 20:31:26 +00:00
Aaron J. Seigo
082e15e6f7 typo; use the value!
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907291
2009-01-07 20:28:30 +00:00
Aaron J. Seigo
bd9131acfa actually test writing to the config
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907290
2009-01-07 20:28:10 +00:00
Aaron J. Seigo
6d15d9d27e some more i18n'ing
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907241
2009-01-07 17:54:50 +00:00
Aaron J. Seigo
21725fcbff i18n these now
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=907238
2009-01-07 17:51:37 +00:00
Script Kiddy
4b59063abe SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=906580
2009-01-06 12:52:00 +00:00
Aaron J. Seigo
74aee54777 this is what happens when you let c++ devs write javascript. ;)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906404
2009-01-06 07:37:55 +00:00
Aaron J. Seigo
adf212324f even prettier!
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906400
2009-01-06 07:20:56 +00:00
Aaron J. Seigo
d8fcdb2a08 don't bother parenting the svg now that The Right Thing Magically Happens
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906381
2009-01-06 03:57:03 +00:00
Aaron J. Seigo
ec3560411e move this where its useful in its capacity as a test
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906380
2009-01-06 03:55:42 +00:00
Aaron J. Seigo
f50517cb87 if no parent is given, make the applet the parent of the svgs
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906379
2009-01-06 03:53:04 +00:00
Aaron J. Seigo
3394124002 allow setting of config values
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906374
2009-01-06 03:04:31 +00:00
Aaron J. Seigo
ddc7609369 tidies
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906371
2009-01-06 02:40:30 +00:00
Carlo Segato
599cffec5b no need for EXPORT macro in a plugin
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906362
2009-01-06 01:04:07 +00:00
Aaron J. Seigo
4d8ac571a9 allow for non-main.xml configs as well
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906351
2009-01-06 00:11:31 +00:00
Aaron J. Seigo
9cf1237aee allow access to configuration
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906336
2009-01-05 23:27:55 +00:00
Aaron J. Seigo
728f6cbfcf a little config tester
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906334
2009-01-05 23:27:19 +00:00
Marco Martin
a794f4b1ff prettier
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906321
2009-01-05 22:44:21 +00:00
Marco Martin
8ddb49f755 mapping of Qt::Orientation to be used in linear layouts
update slider position in dataUpdate

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906312
2009-01-05 22:30:30 +00:00
Marco Martin
8040abf0b9 now service -really- works.
to attest that, beginnings of a progress slider to control the elapsed
song time, and seems to not be possible to put it horizontal, that's the
next problem

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906299
2009-01-05 21:52:23 +00:00
Marco Martin
eb42130a45 reconstruct an hopefully correct kconfiggroup
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906280
2009-01-05 20:53:39 +00:00
Aaron J. Seigo
2c325585e3 update test
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906277
2009-01-05 20:49:26 +00:00
Aaron J. Seigo
6a930aea43 make Service work by introducing service("engine", "source")
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906276
2009-01-05 20:48:22 +00:00
Laurent Montel
4d64a905ce Fix iterator
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906249
2009-01-05 20:02:11 +00:00
Aaron J. Seigo
931d9a2869 we don't need the layout stuff; we require the layouts to have a parent, so one just does nw Layout(plasmoid)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906210
2009-01-05 19:20:18 +00:00
Marco Martin
35a255722e an embryo of Service access
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906206
2009-01-05 19:16:44 +00:00
Aaron J. Seigo
c83a293c40 use applet(), it's shorter and clearer to read
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906201
2009-01-05 19:12:58 +00:00
Script Kiddy
c53a800502 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/runtime/; revision=906032
2009-01-05 13:05:11 +00:00
Marco Martin
617a0b0707 a stop button, fake for now
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906028
2009-01-05 12:58:05 +00:00
Marco Martin
a78c297a30 added a now playing applet, will be the simplest way to test services
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=906016
2009-01-05 12:53:01 +00:00
Laurent Montel
d86e988bc6 Fix class
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905944
2009-01-05 12:26:42 +00:00
Aaron J. Seigo
8b7869e906 correct include directive
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905896
2009-01-05 11:09:17 +00:00
Aaron J. Seigo
4f5b971ff3 pull UiLoader out of the Plasma namespace
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905895
2009-01-05 11:07:43 +00:00
Aaron J. Seigo
a1549299d7 update the test so others can enjoy it too
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905894
2009-01-05 11:04:04 +00:00
Aaron J. Seigo
bd0da5302b make dataengines work:
* replace spaces with _s in property names
* fix time types
* the function will be called dataUpdate instead of dataUpdated unless someone can come up with a brilliant solution (AppletInterface *has* a dataUpdated alread, and that causes problems!)

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905892
2009-01-05 11:01:28 +00:00
Aaron J. Seigo
57f3358108 simple binding of QGraphicsLinearLayout; will do Grid later
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905862
2009-01-05 09:58:26 +00:00
Aaron J. Seigo
b27afeb94d add uiloader to the gang, add the layouts to API, but now i have a new challenge ... layouts aren't qobjects. oh nos.
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905832
2009-01-05 08:34:14 +00:00
Aaron J. Seigo
299ca62104 no point in having a class with just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905828
2009-01-05 08:28:23 +00:00
Aaron J. Seigo
1884106cfa no point in having a class in the main lib for just one consumer (esp now that we require BC)
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905827
2009-01-05 08:27:53 +00:00
Aaron J. Seigo
e0e01efa94 qtscript->javascript
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905822
2009-01-05 08:08:38 +00:00