Notes from "Async and representation"

Marco Martin notmart at gmail.com
Tue Jan 28 20:14:10 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140128/3cffa352/attachment.html>


More information about the Plasma-devel mailing list