On Thu, Jan 21, 2010 at 2:53 PM, Michael 'Mickey' Lauer <mic...@vanille-media.de> wrote: > Am Donnerstag, den 21.01.2010, 10:26 -0200 schrieb Gustavo Sverzut > Barbieri: >> And to say more, just like I did with Guarana's list, we should >> abstract the model it uses, providing functions to check the number of >> items and get items given its index. That way we can write those >> functions that query SQL and no need to actually create a list with >> 1000 elements in order to show it. > > Yep. This is actually how other modern MVC-toolkits are doing that -- > the UITableView in Cocoa Touch is an amazing example for it.
Yes, it's simple and actually implemented in Guarana. Just need someone with time (don't look at me!) to go and port it to Elementary. http://local.profusion.mobi:8081/cgit.cgi/guarana.git/tree/src/lib/widgets more specifically: http://local.profusion.mobi:8081/cgit.cgi/guarana.git/tree/src/lib/widgets/base_list.c (grn_base_list_model_api_set) http://local.profusion.mobi:8081/cgit.cgi/guarana.git/tree/src/lib/widgets/single_selection_list.c the bad thing atm is that it does not play elm_scroller panning interface, implementing its own. Then you can either port it to use that, or add the model_api_set() to genlist (probably easier) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel