[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-active
Subject: Re: Re: components components components
From: Martin =?ISO-8859-1?Q?Gr=E4=DFlin?= <mgraesslin () kde ! org>
Date: 2011-11-04 19:04:46
Message-ID: 21668912.2HvqbZstVo () martin-desktop
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 04 November 2011 18:15:52 Marco Martin wrote:
> On Friday 04 November 2011, Sebastian Kügler wrote:
> > On Thursday, November 03, 2011 20:26:58 Marco Martin wrote:
> > > the second solution seems more elegant, but much more error prone since
> > > every c++ app the uses qml will have to add the import paths in the
> > > proper order or crazy problems will happen
> >
> > We should factor out the C++ parts we duplicate in our apps and make a
> > generic class from it, Plasma::ActiveApp, that one would be the toplevel
> > view for our apps and do the importing accordingly.
> >
> > I think there's enough "not entirely straight-forward" code in there that
> > this would be a good idea. API can be pretty minimal, I think.
>
> yep, i agree.
>
> for plasmoids it doesn't matter, all can be enveloped in
> Plasma::DeclarativeWidgets, for applications, perhaps a class that gives you
> a view with a main qml component loaded from a package with all the right
> things(tm) done to the engine could be nice.
This would be really nice. Would save lots of unneaded code duplication,
so strong +1
>
> for the device specific components:
> what about installing them in
> /usr/lib/kde4/platformimports/desktop
> /usr/lib/kde4/platformimports/tablet
>
> then /usr/lib/kde4/platformimports/tablet or
> /usr/lib/kde4/platformimports/desktop could be used depending to some
> configuration file
>
> this means also a change in the standard cmake files to have a
> ${PLATFORMIMPORTS_INSTALL_DIR} global variable
>
> everybody ok with this?
>
> Cheers,
> Marco Martin
> _______________________________________________
> Active mailing list
> Active@kde.org
> https://mail.kde.org/mailman/listinfo/active
["signature.asc" (application/pgp-signature)]
_______________________________________________
Active mailing list
Active@kde.org
https://mail.kde.org/mailman/listinfo/active
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic