From: Seunggyun Kim <sgyun.kim@samsung.com>
authorSeunggyun Kim <sgyun.kim@samsung.com>
Thu, 2 Jun 2011 03:10:11 +0000 (03:10 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 2 Jun 2011 03:10:11 +0000 (03:10 +0000)
commit41d5110582fb6e902201b9914451a8fe2772c22e
tree21e9a07dead2644ceae5aeb63e8839d0436dda79
parentcf8064480731d94e2f94838f59ee208c35c691c8
From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist - added new feature : genlist
reorder mode

I introduce a new feature "reorder mode" of genlist.
Using this feature, user can reoder genlist items dynamically.

[API]
==================================================================
- EAPI Eina_Bool   elm_genlist_item_rename_mode_get(Elm_Genlist_Item *it)
Get the rename mode state of an item. This gets the rename mode state
of an item

- EAPI void   elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode)
Set genlist reorder mode. This enables the item is moved to another
item.
==================================================================

After set this reorder api, if user press an item (long press), the item can
be moved another position.
Then if the user releases the item, the item will be reodered in genlist.
When the user releases the holding item, Elm_Genlist_Item_Class.func.moved
callback is also called.
If needed, the application can add some logic in that callback function.

SVN revision: 59883
src/bin/test.c
src/bin/test_genlist.c
src/lib/Elementary.h.in
src/lib/elm_genlist.c