Commit Graph

52 Commits

Author SHA1 Message Date
Aaron J. Seigo
9d9d849d72 add a delayed gc() for convenience so one doesn't have to set up a timer in the script to do that (leaving the timer itself behind in all likliehood *sigh*)
svn path=/trunk/KDE/kdebase/runtime/; revision=1051138
2009-11-18 22:40:38 +00:00
Aaron J. Seigo
2105167c6c file dialogs work, as do extensions. wicked.
svn path=/trunk/KDE/kdebase/runtime/; revision=1050287
2009-11-17 03:56:06 +00:00
Darío Andrés Rodríguez
e4952b3639 - Reduce the ammount of unused vars/parameters warnings
svn path=/trunk/KDE/kdebase/runtime/; revision=1049628
2009-11-15 15:41:16 +00:00
Aaron J. Seigo
8ec33f16dd * move around some rather old code; debug() belongs to the plasmoid object, findResource is right out
* add a getter for the loaded extensions

svn path=/trunk/KDE/kdebase/runtime/; revision=1048913
2009-11-14 07:32:00 +00:00
Aaron J. Seigo
c3232a4d4b * internal 'extensions'
* rough in the file dialog

svn path=/trunk/KDE/kdebase/runtime/; revision=1048911
2009-11-14 07:28:16 +00:00
Aaron J. Seigo
09f29dc6b4 allow including other files in contents/code/ into the Plasmoid. huzzah.
svn path=/trunk/KDE/kdebase/runtime/; revision=1048899
2009-11-14 05:19:19 +00:00
Aaron J. Seigo
c3fbefdb38 stop using kdebug for prit
svn path=/trunk/KDE/kdebase/runtime/; revision=1048846
2009-11-14 01:09:44 +00:00
Aaron J. Seigo
8acb059ded some more constraints
svn path=/trunk/KDE/kdebase/runtime/; revision=1048762
2009-11-13 22:21:56 +00:00
Aaron J. Seigo
27f4697300 and optional ones now too
svn path=/trunk/KDE/kdebase/runtime/; revision=1047346
2009-11-11 02:12:40 +00:00
Aaron J. Seigo
9d91ea5a8c * use failed to launch of fatal errors
* error nicely in in it( )so there is more visible feedback with meaning to the user
* sketch in the beginnings of extension loading

svn path=/trunk/KDE/kdebase/runtime/; revision=1047344
2009-11-11 02:09:25 +00:00
Artur Duque de Souza
ad5e59fdeb Support for Anchor Layout (Qt 4.6)
Now we have support for anchor layout on javascript
plasmoids. This is at 90%. It's not working properly yet
as we need either a patch in Qt (being discussed) or another
not so beautiful approach. After this it will work 98%, and
I'll just need to do the QGraphicsAnchor bindings to support
spacing and size policies of anchors.


svn path=/trunk/KDE/kdebase/runtime/; revision=1044107
2009-11-03 03:06:04 +00:00
Aaron J. Seigo
03a314883f support pause
svn path=/trunk/KDE/kdebase/runtime/; revision=1038846
2009-10-22 03:59:07 +00:00
Aaron J. Seigo
d3abf0b709 qscriptvalue_cast doesn't work quite as expected
svn path=/trunk/KDE/kdebase/runtime/; revision=1038830
2009-10-22 01:55:53 +00:00
Aaron J. Seigo
f5cb7c67a7 AnimationGroup support and QGraphicsWidget* registration; one can now do things like:
l = new Label;
l.text = 'check this out'
fadeAnim = animation("fade")
fadeAnim.widgetToAnimate = l
rotateAnim = animation("rotate")
animGroup = new AnimationGroup
animGroup.parallel = true
animGroup.add(fadeAnim)
animGroup.add(rotateAnim)
animGroup.start()

and watch the label flip fade out while the whole plasmoid rotates. sweet.

svn path=/trunk/KDE/kdebase/runtime/; revision=1038372
2009-10-21 07:53:49 +00:00
Aaron J. Seigo
19fcbf7a74 hello, animations.
svn path=/trunk/KDE/kdebase/runtime/; revision=1038309
2009-10-21 02:26:44 +00:00
Aaron J. Seigo
b4a4c88985 fix svg-in-package
svn path=/trunk/KDE/kdebase/runtime/; revision=1038286
2009-10-21 00:01:26 +00:00
Aaron J. Seigo
bf7843b734 typo
svn path=/trunk/KDE/kdebase/runtime/; revision=1038280
2009-10-20 23:31:12 +00:00
Aaron J. Seigo
07f1255677 qpixmap
svn path=/trunk/KDE/kdebase/runtime/; revision=1038273
2009-10-20 23:15:33 +00:00
Aaron J. Seigo
d7c89e409e initial draft of a ECMAScript driven DataEngine.
TODO:
* testing
* binding Plasma::Service

svn path=/trunk/KDE/kdebase/runtime/; revision=991101
2009-07-04 04:30:57 +00:00
Aaron J. Seigo
71789306b7 ok, this time _really_ move it over. svn is sometimes a little too forgiving / sloppy :(
svn path=/trunk/KDE/kdebase/runtime/; revision=967245
2009-05-13 00:55:25 +00:00
Aaron J. Seigo
94cdfc4149 move javascript engine and plasmapkg to runtime; libplasma uses plasmapkg via knewstuff and 3rd party apps with to use both that and the javascript engine. no new dependencies on runtime are incurred with this change
svn path=/trunk/KDE/kdebase/runtime/; revision=966840
2009-05-11 23:40:57 +00:00
Pino Toscano
143696b16f SVN_SILENT slightly improve error messages
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=962287
2009-05-01 23:28:21 +00:00
Pino Toscano
da4ea3dbe7 encoding fixes for the i18n*() functions:
- take the arguments as utf8 for the ki18n* calls
- don't return a utf8 byte array, but just a plain string (should avoid implicit conversion back and forth to another encoding)

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=962285
2009-05-01 23:21:40 +00:00
Aaron J. Seigo
0a0b73ad8b i18nc, i18ncp
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=962276
2009-05-01 22:39:52 +00:00
Aaron J. Seigo
d30bb648aa support plurals and varaiable argument list lengths
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=962209
2009-05-01 18:46:02 +00:00
Aaron J. Seigo
420b3e445b export i18n into the runtime; now i need to figure out how to extract message files from the plasmoids and how to set the translation from a file on disk as part of the package
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=961936
2009-05-01 06:12:07 +00:00
Aaron J. Seigo
f9657ce683 * register the url class
* make sure all widgets always have a parent!

svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=960160
2009-04-28 02:13:21 +00:00
Albert Astals Cid
5d0e70291b const & for foreach 'iterators'
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=952187
2009-04-11 11:11:50 +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
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
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
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
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
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
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
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
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
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
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
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
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
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