<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/107232/">http://git.reviewboard.kde.org/r/107232/</a>
     </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Plasma.</div>
<div>By Sebastian Kügler.</div>







<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">ToolBox bindings for declarative containments

This adds the necessary bits, actions handling, showing / hiding of toolbox and a hooks for config interface and add widgets.


The interesting bits:

Toolbox separate on the scene
For declarative containments, we add a declarativewidget on top of the view which loads the "org.kde.toolbox" package. The toolbox can differ per platform, layout of toolbox and containment can not "leak" into each other.

ToolBox import
The most important and interesting bit is the list of actions the ToolBox exposes, it's collected from corona, containment. The latter is actually problematic, since we don't get access to the actions internally provided by Containment (ContainmentPrivate::addDefaultActions). Containment::setToolBox(AbstractToolBox) being protected, we cannot register our declarative ToolBoxProxy implementation to the containment, so we have to wire up settings and addwidgets separately. Sorting of the actions is "random", and expected to be done by the QML toolbox implementation, based on objectName strings.
</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Using this with QML Desktop Containment, works as advertised above.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>plasma/scriptengines/javascript/CMakeLists.txt <span style="color: grey">(fe065822398e94934772bff78db3db1e393718c6)</span></li>

 <li>plasma/scriptengines/javascript/declarative/toolboxproxy.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plasma/scriptengines/javascript/declarative/toolboxproxy.cpp <span style="color: grey">(PRE-CREATION)</span></li>

 <li>plasma/scriptengines/javascript/plasmoid/appletinterface.h <span style="color: grey">(6fc2d74ed602fcdee67f5d7eff9453da72375c66)</span></li>

 <li>plasma/scriptengines/javascript/plasmoid/appletinterface.cpp <span style="color: grey">(ed5c8ae64b94e08f6fd5611b5caf7b33edf73d77)</span></li>

 <li>plasma/scriptengines/javascript/plasmoid/declarativeappletscript.h <span style="color: grey">(57689ba0a5188451d5364358e8a8ed4212307d21)</span></li>

 <li>plasma/scriptengines/javascript/plasmoid/declarativeappletscript.cpp <span style="color: grey">(4caceb029f968563b7a24efb9300c87c7eb1c6af)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/107232/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>




  </div>
 </body>
</html>