AppletScript & configAccepted

Richard Dale richard.j.dale at gmail.com
Thu Sep 11 16:32:21 CEST 2008


2008/9/11 Aaron J. Seigo <aseigo at kde.org>

> On Thursday 11 September 2008, Richard Dale wrote:
> > 2008/9/11 Petri Damstén <petri.damsten at gmail.com>
> >
> > > Hi,
> > >
> > > I have been playing with webkit AppletScript. There is a small example
> > > (webkit/code/test.html) using plasma dataengines so I have added more
> > > functions (init(), engine.connectSource(), etc.) and plasma package
> > > support so
> > > it looks more like a normal plasma applet.
> > >
> > > Applets connect to apply & ok to know when user accepted config, but if
> > > AppletScript uses configxml there seems to be no way to do that? Maybe
> > > configAccepted signal in applet? I guess this could be good for Applets
> > > too so
> > > they don't have to rely parent to have ok/apply.
> >
> > The biggest problem with using configxml with script engine based applets
> > is in this code where it tests 'if (d->script) {' and then leaves early.
>
> after checking if there is a configXml object, yes.
>
> > I've no idea what script engine applets would want to do that is
> different
> > from a normal applet as the whole point of configxml is that it is a sort
> > of 'fire and forget' api that doesn't actually need any programmer
> > intervention to use.
>
> for widgets that don't use the native configuration system, such as
> non-native
> widgets. we support a couple of those now.

Then those wouldn't have any configXml object and this part of the logic
would never be entered. I'm afraid I still don't see what the early exit
code is doing.

-- Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20080911/03fe5283/attachment.htm 


More information about the Plasma-devel mailing list