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

List:       kde-panel-devel
Subject:    Re: RFC: plasma2 and configuration
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2013-02-27 10:23:53
Message-ID: 2030046.r7tmOPAxB0 () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday, February 26, 2013 22:40:11 Marco Martin wrote:
> http://wstaw.org/m/2013/02/26/plasma-desktopzd2899.png
> (well, will have to look better, but as Emmet Brown would say "You'll have
> to forgive the crudeness of this model, I didn't have time to paint it or
> build it to scale." ;)

:)

> config.qml looks like this:
> QtObject {
> 
>     property list<QtObject> modules: [
>         QtObject {
>             property string name: "General"
>             property string icon: "plasma"
>             property Component component: Component {
>                 Item {
>                     .....
>                 }
>             }
>         },
>        QtObject {
>             property string name: "Page2"
>             property string icon: "buh"
>             property Component component: Component {
>                 Item {
>                     .....
>                 }
>             }
>       }
>     ]
> }
> 
> 
> it still looks a bit clunky, and perhaps a bit error prone as well, but
> something more refined can come from that...

definitely on the right track, imho ... and perhaps by creating a small set of 
components it can become more succinct and reliable like:

import org.kde.plasma.configuration as PlasmaConfiguration

PlasmaConfiguration.ModuleModel {
     modules: [
          PlasmaConfiguration.Page {
              name: i18n("General")
              icon: "plasma"
              component: MyComponentInAnotherFile
          },
	  ....
     ]
}

-- 
Aaron J. Seigo
["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