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

List:       kde-panel-devel
Subject:    Re: Notes from "Async and representation"
From:       Marco Martin <notmart () gmail ! com>
Date:       2014-01-28 20:14:10
Message-ID: CAD6_Bos09y32s-BkqKB5NXTu_0HfHwJDmTHNrXUBu6PQBE0e3w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all,

New prototype, completely different direction :)  (and that's one i
actually like)

mart/AppletAttached branch.
the root item of an applet can still be whatever item one wants, just as
current master,
but plasmoid becomes an attached property, so it would be possible to do
things like
Item {
    Plasmoid.title: i18n("stuff")
    Plasmoid.onFormFactorChanged: {...}
}

besides not having a weird Applet component that may be instantiable from
anywhere, another advantage is that the porting can be scriptable,since
Property Item compactRepresentation: can be replaced with
Plasmoid.compactRepresentation
property int minimumWidth with Layout.minimumWidth and so on.

I would make a fullRepresentation property available as well, but to
fallback to consider the root object the full representation if not
provided. this way less porting is needed and containments' main.qml won't
look completely stupid.

in any case both if this one or the other one is chosen, the systray will
have to be quite refactored, but i *may* have an idea to remove completely
appletinterface from the systray implementation

Cheers,
Marco Martin

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi \
all,</div><div><br></div><div>New prototype, completely different direction :)   (and \
that&#39;s one i actually like)</div><div><br></div><div>mart/AppletAttached \
branch.<br> </div><div>the root item of an applet can still be whatever item one \
wants, just as current master,</div><div>but plasmoid becomes an attached property, \
so it would be possible to do things like<br></div><div>Item {</div> <div>      \
Plasmoid.title: i18n(&quot;stuff&quot;)</div><div>      Plasmoid.onFormFactorChanged: \
{...}</div><div>}</div><div><br></div><div>besides not having a weird Applet \
component that may be instantiable from anywhere, another advantage is that the \
porting can be scriptable,since</div> <div>Property Item compactRepresentation: can \
be replaced with Plasmoid.compactRepresentation</div><div>property int minimumWidth \
with Layout.minimumWidth and so on.</div><div><br></div><div>I would make a \
fullRepresentation property available as well, but to fallback to consider the root \
object the full representation if not provided. this way less porting is needed and \
containments&#39; main.qml won&#39;t look completely stupid.</div> \
<div><br></div><div>in any case both if this one or the other one is chosen, the \
systray will have to be quite refactored, but i *may* have an idea to remove \
completely appletinterface from the systray implementation</div> \
<div><br></div><div>Cheers,</div><div>Marco Martin</div></div><br></div></div>



_______________________________________________
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