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

List:       kde-panel-devel
Subject:    Re: Some help for recreating the Plasma Tool Box in QML
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2011-10-25 13:07:39
Message-ID: 11594357.YJ8khHgKzs () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
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