From: discomfitor Date: Tue, 6 Mar 2012 07:33:23 +0000 (+0000) Subject: From: Hyoyoung Chang X-Git-Tag: REL_F_I9500_20120323_1~17^2~346 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64947762ebb7dc6f088496ac309e94c8f9363341;p=framework%2Fuifw%2Felementary.git From: Hyoyoung Chang Subject: [E-devel] [patch] elm_genlist - add comments for item class Date: Tue, 6 Mar 2012 16:26:37 +0900 Dear all. after working several hours, i made some comments. :P If it's only, plz comit it. Thanks. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68785 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_gen.h b/src/lib/elm_gen.h index 71ccc14..aa4275b 100644 --- a/src/lib/elm_gen.h +++ b/src/lib/elm_gen.h @@ -44,12 +44,12 @@ typedef void (*Elm_Gen_Item_Del_Cb)(void *data, Evas_Ob struct _Elm_Gen_Item_Class { - int version; /**< Set by elementary if you alloc an item class via elm_gengrid_item_class_new() or elm_genlist_item_class_new(), or if you sety your own class (must be const) then set it to ELM_GENGRID_ITEM_CLASS_VERSION */ + int version; /**< Set by elementary if you alloc an item class using elm_gengrid_item_class_new() or elm_genlist_item_class_new(), or if you set your own class (must be const) then set it to ELM_GENGRID_ITEM_CLASS_VERSION */ unsigned int refcount; /**< Set it to 0 if you use your own const class, or its managed for you by class ref/unref calls */ Eina_Bool delete_me : 1; /**< Leave this alone - set it to 0 if you have a const class of your own */ const char *item_style; /**< Name of the visual style to use for this item. If you don't know use "default" */ - const char *mode_item_style; /**< Style used if item is set to a specific mode. @see elm_genlist_item_mode_set() or NULL if you don't care */ - const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you dont care */ + const char *mode_item_style; /**< Style used if item is set to a specific mode. @see elm_genlist_item_mode_set() or NULL if you don't care. currenly it's used only in genlist. */ + const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you don't care. currenly it's used only in genlist. */ struct { Elm_Gen_Item_Text_Get_Cb text_get; /**< Text fetching class function for gengrid/list item classes.*/ Elm_Gen_Item_Content_Get_Cb content_get; /**< Content fetching class function for gengrid/list item classes. */ diff --git a/src/lib/elm_genlist.h b/src/lib/elm_genlist.h index 54540d9..70a35d6 100644 --- a/src/lib/elm_genlist.h +++ b/src/lib/elm_genlist.h @@ -31,7 +31,12 @@ * - @c item_style - This is a constant string and simply defines the name * of the item style. It @b must be specified and the default should be @c * "default". - * + * - @c mode_item_style - This is a constant string and simply defines the name + * of the mode item style. It is used to specify mode item style. It can be + * used to set sweep mode. + * - @c edit_item_style - This is a constant string and simply defines the name + * of the edit item style. It is used to specify edit item style. It can be + * used to set selection, checking and deletion mode. * - @c func - A struct with pointers to functions that will be called when * an item is going to be actually created. All of them receive a @c data * parameter that will point to the same data passed to