[Kommander-devel] Connecting Kommander with Kross
Eric Laffoon
eric at kdewebdev.org
Thu Oct 19 15:33:32 EDT 2006
On Thursday 19 October 2006 10:41 am, Michal Rudolf wrote:
> There are a few new features:
> * there are some new execute() slots of ScriptObject that match most common
> signal parameters, f. e.:
> LineEdit::textChanged(QString) -> ScriptObject::execute(QString)
> * in ScriptObject's script you can access those parameters via item(index)
> * you can also get the number of parameters by count()
> * you can call ScriptObject manually, passing parameters that way:
> ScriptObject::execute(param1, param2, params3)
Does this mean it will be done on a case by case basis per widget? I ask
because the rich text and table widgets would benefit greatly from this and
also would have more work involved. It would be nice to spread this power
without making yourself crazy.
>
> One mostly unrelated new feature is that you can use 'self' as a currrent
> widget, for example instead of:
> ScriptObject1.item(1)
> you can use Self.item(1)
Thanks! This is nice and also adds the advantage that self referenced widgets
will at least not have problems in their KT area if renamed.
Am I correct in assuming the new functionality is exclusively in the new
parser?
--
Eric Laffoon
Project Lead - kdewebdev module
More information about the Kommander-devel
mailing list