[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Plasma Educational Desktop GSoC:Executing the class layout
From:       karan pratap singh <wizard.karan () gmail ! com>
Date:       2011-08-10 19:20:22
Message-ID: CAKLp9t4MeVyNZAMxyX+0+BZa8eUqVJXatubHDHuudMLHQcFN3g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Wed, Aug 10, 2011 at 5:19 PM, Aaron J. Seigo <aseigo@kde.org> wrote:

> On Tuesday, August 9, 2011 03:16:49 you wrote:
> > need to restart plasma-desktopto make the new script run....How do I
> restart
> > plasma-desktop from withinthe student containment??
>
> plasma-desktop does not need to restart. what is needed is to invoke
> libplasmagenericshell's ScriptEngine::evaluateScript(). this is not exposed
> to
> Containments, however .. and for good reasons :)
>
> this should not use the full desktop scripting for this. instead, the
> scripting from kde-runtime/plasma/kpart/scripting/ should be taken, adapted
> as
> needed, and used from within the Classroom containment directly. note that
> it
> too includes a ScriptEngine class.
>
>
ah... okay! :)


> the code flow would then end up looking something like the following
> pseudocode:
>
> script := loadScriptFromNetwork
> if script is not empty
>        delete all widgets
>        ScriptEngine evaluateScript script
>
>

-- 
regards,
Karan Pratap Singh

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 5:19 PM, Aaron J. Seigo \
<span dir="ltr">&lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> On Tuesday, August 9, 2011 03:16:49 you wrote:<br>
&gt; need to restart plasma-desktopto make the new script run....How do I restart<br>
<div class="im">&gt; plasma-desktop from withinthe student containment??<br>
<br>
</div>plasma-desktop does not need to restart. what is needed is to invoke<br>
libplasmagenericshell&#39;s ScriptEngine::evaluateScript(). this is not exposed \
to<br> Containments, however .. and for good reasons :)<br>
<br>
this should not use the full desktop scripting for this. instead, the<br>
scripting from kde-runtime/plasma/kpart/scripting/ should be taken, adapted as<br>
needed, and used from within the Classroom containment directly. note that it<br>
too includes a ScriptEngine class.<br>
<br></blockquote><div><br></div><div>ah... okay! :)</div><div> </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"> the code flow would then end up looking something like the \
following<br> pseudocode:<br>
<br>
script := loadScriptFromNetwork<br>
if script is not empty<br>
        delete all widgets<br>
        ScriptEngine evaluateScript script<br><font class="Apple-style-span" \
color="#888888"><br></font></blockquote></div><div><br></div><div><br></div>-- \
<br>regards,<br>Karan Pratap Singh<br><br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic