On Wed, 10 Nov 2010 00:55:47 -0200 Bruno Dilly <bdi...@profusion.mobi> said:

> I've applied it on svn.
> It may be interesting for cases when you may want to give some kind of
> feedback to users that the list is on the edge (maybe playing a sound,
> who knows =) )

indeed. the scroller cals these callbacks for just such a reason - it just
didn't get propagated outside of genlist/list - so this is indeed a good and
valid feature. :)

> But for adding / deleting items on the fly, please verify if genlist
> doesn't provide everything you need.

well to some extent genlist does it - but it comes at the cost of genlist
having to query and figure out the size of every element. if your data is
"expensive" to fetch you could use this for pagination of the content
yourself. though as such if fetching is "expensive" (heavy disk io, network io
etc.)  then it might be better to "add" items even though you dont have the
data yet from the other end and when requested you do an async fetch of the
item. return dummy empty strings/icons etc. until the result comes back (and
then cache the result and update the item(s) u got the result(s) for).

> >From elm_genlist doc:
> 
>  In order to implement the ability to add and delete items on the fly,
>  Genlist implements a class/callback system where the application provides
>  a structure with information about that type of item (genlist may contain
>  multiple different items with different classes, states and styles).
>  Genlist will call the functions in this struct (methods) when an item is
>  “realized” (that is created dynamically while scrolling). All objects will
>  simply be deleted  when no longer needed with evas_object_del().
> 
> These edge signals will be emitted after the scroller stops, and
> possibly bounces, what can leads you to a weird look and feel
> if the idea is to create a dynamic list, if I'm not missing something.
> 
> Best regards,
> 
> On Wed, Nov 10, 2010 at 12:05 AM, Daniel Juyung Seo
> <seojuyu...@gmail.com> wrote:
> > This idea looks excellent.
> > We needed this feature.
> > I would test this very soon on the phone.
> >
> > Thank you.
> >
> > Daniel Juyung Seo.
> >
> > On Wed, Nov 10, 2010 at 6:36 AM, Rui Miguel Silva Seabra <r...@1407.org>
> > wrote:
> >> Em 09-11-2010 20:07, Marco Trevisan (Treviño) escreveu:
> >>> This small patch allows to get a smart callback when the scrollers in an
> >>> elm_list or in an elm_genlist fire the edge,{top,bottom,left,right}
> >>> signals, backporting them to the list object.
> >>>
> >>> The new smart callbacks called are:
> >>>   · "scroll,edge,top" - the list is scrolled until the top edge
> >>>   · "scroll,edge,bottom" - the list is scrolled until the bottom edge
> >>>   · "scroll,edge,left" - the list is scrolled until the left edge
> >>>   · "scroll,edge,right" - the list is scrolled until the right edge
> >>>
> >>> I figure this could be useful for creating dynamic lists which get
> >>> updated (adding more items) when the bottom edge is reached...
> >>
> >> Yummy!
> >>
> >> Rui
> >>
> >> ------------------------------------------------------------------------------
> >> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> >> David G. Thomson, author of the best-selling book "Blueprint to a
> >> Billion" shares his insights and actions to help propel your
> >> business during the next growth cycle. Listen Now!
> >> http://p.sf.net/sfu/SAP-dev2dev
> >> _______________________________________________
> >> enlightenment-devel mailing list
> >> enlightenment-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >>
> >
> > ------------------------------------------------------------------------------
> > The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> > David G. Thomson, author of the best-selling book "Blueprint to a
> > Billion" shares his insights and actions to help propel your
> > business during the next growth cycle. Listen Now!
> > http://p.sf.net/sfu/SAP-dev2dev
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to