[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KJSEmbed and Kicker
From: Ian Reinhart Geiser <geiseri () yahoo ! com>
Date: 2003-11-18 19:16:55
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 18 November 2003 01:54 pm, Jason Keirstead wrote:
> On November 18, 2003 10:28 am, Ian Reinhart Geiser wrote:
> > Greetings,
> > If you are interested in programming KDE applications with something
> > other than C++. Have a look at KJSEmbed. Its starting to get stable
> > enough that we can build KDE components with it. As an example we have
> > built a kicker applet that can be extended in pure ECMAScript. For more
> > details see: http://www.kdedevelopers.org/node/view/240. Note that this
> > is a big thing because these same techniques can be used to build
> > KOffice, KDevelop, and Konqueror plugins in pure ECMAScript.
>
> This could be a good replacement for the perl scripting plugin I had in
> progress for Kopete ( the HORRIBLE perl scripting plugin I should say ).
>
> Although the thrid party support for perl scripts via CPAN is nice, the
> ability to use all of Qt and kdelibs via your scripts pretty much negates
> the need for most of that.
>
> I'll definitly look into this, from what i see form the tutorials it's
> really impressive.
Actually using this applet, im refactoring how we access the KJS part, this
should get infinitely simpler. Basicly:
new your JS Engine
jsengine->publish(your QObjects here);
jsengine->execute(set your code here);
and go...
to acces the members im cleaning up to look something like:
KJS::Value value = jsengine->call("functionName", args, jsobjectContext);
This should eliminate about 75% of the code when interacting with the script.
KJSEmbed so far is one of the most powerful embedded script engines I have
seen. I think it warrants some review by apps that wish to have their apps
extended by a lightweight script language.
Cheers
-ian reinhart geiser
- --
- --:Ian Reinhart Geiser <geiseri@yahoo.com>
- --:Public Key: http://geiseri.myip.org/~geiseri/publickey.asc
- --:Public Calender: http://geiseri.myip.org/~geiseri/publicevents.ics
- --:Jabber: geiseri@geiseri.myip.org
- --:Be an optimist -- at least until they start moving animals in
- --: pairs to Cape Canaveral. ~ Source Unknown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/unAoPy62TRm8dvgRAoqcAKCQOl1BrXnIj194fppnaUN/4e1gQQCgr3go
shQ3jYyJQlMvAhHuRfzwwRk=
=+xdu
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic