[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:       Mark <markg85 () gmail ! com>
Date:       2011-10-25 13:22:16
Message-ID: CAPd6JnH+EQ_T+f0xphhqt6U0QW=8vHaO=J-WnD1-Bzn1YZTXCQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Oct 25, 2011 at 3:07 PM, Aaron J. Seigo <aseigo@kde.org> wrote:

> 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.*
>

Oke. Just wondering if you could explain why..? I have no clue why one is
either good or bad :p

>
> > - 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.
>

Awesome! That certainly gets me started,

>
> > 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!
>

Ohh i will ^_-

>
> --
> 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
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>

[Attachment #5 (text/html)]

<div class="gmail_quote">On Tue, Oct 25, 2011 at 3:07 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;">

<div class="im">On Tuesday, October 25, 2011 14:10:54 Mark wrote:<br>
&gt; - The tool box icon in the panel can be clicked -- where is that code<br>
&gt; hidden? --<br>
<br>
</div>kde-workspace/plasma/desktop/shell/toolbox/paneltoobox.*<br>
<br>
which really should be in desktop/toolboxes imo, and not in with the shell.<br>
i&#39;ll fix that right now and then they will be in:<br>
<br>
kde-workspace/plasma/desktop/toolboxes/paneltoobox.*<br></blockquote><div><br></div><div>Oke. \
Just wondering if you could explain why..? I have no clue why one is either good or \
bad :p</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">


<div class="im"><br>
&gt; - Once it&#39;s clicked it should open up a qml file... How do i do that \
inside<br> &gt; the existing codebase?<br>
<br>
</div>this code is in desktop/shell/ in the PanelView and PanelController \
classes.<br> <br>
in PanelView, it connects to the containment this way:<br>
<br>
    connect(containment, SIGNAL(toolBoxToggled()), this,<br>
SLOT(togglePanelController()));<br>
<br>
so when the containment says its toolbox was toggled (e.g. when clicked) then<br>
PanelVIew::togglePanelController runs which shows a PanelController.<br>
PanelController is what would get replaced by your \
QML.<br></blockquote><div><br></div><div>Awesome! That certainly gets me started, \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">


<div class="im"><br>
&gt; That&#39;s about it. If i know that (specially the last one) then i can \
start<br> &gt; hacking my way ^_^<br>
<br>
</div>cool :) if you have any further questions as you go, just \
ask!<br></blockquote><div><br></div><div>Ohh i will ^_- </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">


<div><div></div><div class="h5"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Development Frameworks<br>
</div></div><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><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