Some help for recreating the Plasma Tool Box in QML

Aaron J. Seigo aseigo at kde.org
Tue Oct 25 13:07:39 UTC 2011


On Tuesday, October 25, 2011 14:10:54 Mark wrote:
> - The tool box icon in the panel can be clicked -- where is that code
> hidden? --

kde-workspace/plasma/desktop/shell/toolbox/paneltoobox.*

which really should be in desktop/toolboxes imo, and not in with the shell. 
i'll fix that right now and then they will be in:

kde-workspace/plasma/desktop/toolboxes/paneltoobox.*

> - Once it's clicked it should open up a qml file... How do i do that inside
> the existing codebase?

this code is in desktop/shell/ in the PanelView and PanelController classes.

in PanelView, it connects to the containment this way:

    connect(containment, SIGNAL(toolBoxToggled()), this, 
SLOT(togglePanelController()));

so when the containment says its toolbox was toggled (e.g. when clicked) then 
PanelVIew::togglePanelController runs which shows a PanelController. 
PanelController is what would get replaced by your QML.

> That's about it. If i know that (specially the last one) then i can start
> hacking my way ^_^

cool :) if you have any further questions as you go, just ask!

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111025/fad53c64/attachment.sig>


More information about the Plasma-devel mailing list