Gustavo wrote:
> On Tue, Mar 25, 2008 at 10:39 PM, Santiago Aguiar
> <[EMAIL PROTECTED]> wrote:
> > Hi everyone!
> >
> > I started working with edje yesterday (always a lover of e,
> > but I was amazed in Dave Andreoli's presentation at bossa
> > conference!) and second thing I wanted to do was to include
> > a group as a swallowed object of a part :) . I thought it was
> > a good way to reuse the group multiple times, and for example
> > define a button bar and use it in multiple places, but
> > constrained by the swallowing part geometry.
>
> Ah, great to hear Bossa is bringing new people to the project :-)
>
>
Sure is, and I'd bet many people would be interested in seeing
Dave's presentation as well. :)
> > I couldn't find how to do it using edje+embryo, but I was
> > able to do it using python-efl. So I wrote a patch to add
> > a part_swallow function to the edje exported embryo functions
> > as a way to do this directly without external code. Now I can
> > do something like:
> >
> > program {
> > name, "init";
> > signal, "load";
> > script {
> > part_swallow(PART:"button_bar", "Group_Button_Bar");
> > }
> > }
>
> Maybe we can find out some other use case for this function
> (ie: select which part based on some runtime parameter, like
> time, signals, messages...), but for instance the code you did
> there can be avoided by use of parts of "type: GROUP" using
> "source: "button_bar"", see
> http://docs.enlightenment.org/api/edje/html/edcref.html
> but it should look like:
>
> part {
> type: GROUP;
> source: "part_name";
> description { ... }
> }
>
That's right. The GROUP part type was added for two main
reasons: One was to begin to have some re-usability of components
in edje (at the edje/edc level at least), and the other was to allow
one to build trees of edje groups via the edje/edc syntax.
Brian (rephorm) and I had discussed several other enhancements
to edje to allow for such things as: a 'styling' mechanism that would
allow for changing part description attribute values, a notation for
such things as 'extending' or 'overriding' referenced group defs,
allowing for group parts to be referenced from group defs in other
files, more scripting power, and other things.
But we both got sidetracked with other things and never had
a chance to follow up this. :(
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel