Commit Graph

72 Commits

Author SHA1 Message Date
Daniel Juyung Seo c4508b0cc3 elm genlist: Changed item mode APIs.
1. elm_genlist_item_mode_set -> elm_genlist_item_decorate_mode_set.
2. elm_genlist_mode_item_get -> elm_genlist_decorated_item_get.
3. elm_genlist_mode_type_get -> elm_genlist_decorate_type_get.

Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68992
2012-03-07 16:19:25 +00:00
Daniel Juyung Seo 005f2465d9 elm genlist: Deprecated elm_genlist_compress_mode_set/get and
elm_genlist_height_for_width_mode_set/get. Use
elm_genlist_mode_set(obj, ELM_LIST_COMPRESS) instead. This may
introduce bugs or performance issue but I will fix this soon.

Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68985
2012-03-07 16:07:34 +00:00
Mike Blumenkrantz aa78786616 rename elm object select mode values: whoever wrote this deserves spankies
SVN revision: 68982
2012-03-07 16:01:37 +00:00
Carsten Haitzler 8054ade720 xxx-- -> we need these as genlist/grid items hold data for these due
to realize/unrealize.



SVN revision: 68981
2012-03-07 16:01:15 +00:00
ChunEon Park 788c6dcaf4 elementary/genlist - fixed formatting
SVN revision: 68975
2012-03-07 15:45:52 +00:00
Daniel Juyung Seo 9f5a98dd60 elm genlist/gengrid: Fixed hilight -> highlight.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68967
2012-03-07 15:02:01 +00:00
Daniel Juyung Seo 7770910b78 elm genlist: Fixed enum
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68965
2012-03-07 14:48:12 +00:00
Daniel Juyung Seo 6cf43b0726 elm genlist: Updated documentation.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68961
2012-03-07 14:35:08 +00:00
Hyoyoung Chang 248f878f0d From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gen{list, grid} - add
no_highlight_mode_set/get

actually change it to hilight_mode/set/get with the inverse.



SVN revision: 68947
2012-03-07 13:37:18 +00:00
Sanjeev BA 8cc2af2d7c Renaming ITEMS_SUBITEMS to ITEMS_TREE.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68942
2012-03-07 12:57:13 +00:00
Sanjeev BA a311a4cc7d Add some more documentation.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68941
2012-03-07 12:57:06 +00:00
Hyoyoung Chang d1ab1c10e3 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gen{list, grid} - add elm_genlist_select_mode_set

As discussed in irc, I made a patch about unifying
always_select_mode_set and no_select_mode_set.

I'm introducing two apis in genlist (also in gengrid)

+EAPI void
+elm_genlist_select_mode_set(Evas_Object *obj,
Elm_Object_Select_Mode_Type mode)

+EAPI Elm_Object_Select_Mode_Type
+elm_genlist_select_mode_get(const Evas_Object *obj);

And added a enum in elm_general.h


+typedef enum
+{
+   ELM_OBJECT_NORMAL_SELECT = 0, /**< default select mode */
+   ELM_OBJECT_ALWAYS_SELECT, /**< always select mode */
+   ELM_OBJECT_NO_SELECT, /**< no select mode */
+
+   ELM_OBJECT_SELECT_MODE_MAX
+} Elm_Object_Select_Mode_Type;

After this is commited, i'll send a patch about examples and
edje_external.




SVN revision: 68937
2012-03-07 12:43:19 +00:00
chanwook jung 2fe90bc997 From: chanwook jung <jchanwook@gmail.com>
Subject: [E-devel] [Patch] elm_genlist : Add tree effect APIs

I made a patch for Tree Effect in elm_genlist.
This feature shows the flip effect when expand/contract the expandable
list.

External APIs :
+EAPI void               elm_genlist_tree_effect_enabled_set(Evas_Object
*obj, Eina_Bool enabled);
- Set Genlist tree effect

+EAPI Eina_Bool          elm_genlist_tree_effect_enabled_get(const
Evas_Object *obj);
- Get Genlist tree effect status

You can test it. "Genlist Tree Effect".



SVN revision: 68934
2012-03-07 12:15:36 +00:00
Sanjeev BA 1ece172c12 Refactor genlist and deprecate top/middle item_show() API.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68898
2012-03-07 08:29:32 +00:00
Sanjeev BA 3946d4a76b Merge bring_in, top_bring_in and middle_bring_in into bring_in with ELM_GENLIST_ITEM_SCROLLTO_*.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68897
2012-03-07 08:29:28 +00:00
Daniel Juyung Seo 6f413545c7 elm: Use lower case for xxx documentation to distinguish this from XXX(fixme)
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68877
2012-03-07 06:14:25 +00:00
Jiyoun Park 4c9501159b remove deprecated function related with elm_genlist_item
SVN revision: 68837
2012-03-06 15:04:55 +00:00
Hyoyoung Chang 2b5c91ba41 From: Hyoyoung Chang <hyoyoung@gmail.com>
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.


SVN revision: 68785
2012-03-06 07:33:23 +00:00
Carsten Haitzler bb0f97b520 and lets actually merge the gnelist/grid item class goop so when it
all just become sgenlsit we are all happen. elm_gen.h is just there as
a temporary common header until it all beocmes genlist (or genlist
under another name - gnengrid)



SVN revision: 68773
2012-03-06 06:09:20 +00:00
Carsten Haitzler c233923591 use version as an actual version and bring back macros for setting up
class header for those using const item class structs.



SVN revision: 68770
2012-03-06 05:02:36 +00:00
Daniel Juyung Seo bbcd343b89 elm genlist: Added more comments for flip mode.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68761
2012-03-06 02:13:28 +00:00
ChunEon Park 750601523b elementary/genlist - elm_genlist_item_contents_orphan -> elm_genlist_item_all_contents_unset
SVN revision: 68758
2012-03-06 01:29:42 +00:00
ChunEon Park 74d4a0149d elementary/genlist -
Elm_Genlist_Item_Flags -> Elm_Genlist_Item_Type
Elm_Genlist_Field_Flags -> Elm_Genlist_Field_Type
elm_genlist_item_flags_get() -> elm_genlist_item_type_get()



SVN revision: 68753
2012-03-06 00:49:28 +00:00
Daniel Juyung Seo 8977312e43 elm genlist: Added elm_genlist_item_flip_get/set APIs. Patch by
Hyoyoung Chang <hyoyoung@gmail.com>

On Wed, Feb 29, 2012 at 9:17 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear all.
>
> I made a patch to introduce new genlist item mode.
> Two public apis are added.
> +EAPI void elm_genlist_item_flip_set(Elm_Object_Item *it, Eina_Bool
flip);
> +EAPI Eina_Bool elm_genlist_item_flip_get(Elm_Object_Item *it);
>
> It provides on-the-flying item change. It works like that a new item
> added on existed item.
> In elementary test, you can test it.
> It's useful at adding widgets or show buttons in genlist item.
>
> Thanks.

On Mon, Mar 5, 2012 at 5:56 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Hello, I modifed fliP_set api to use ecore_job.
> It resolved version of mouse_{move, up} bugs.
>

SVN revision: 68727
2012-03-05 15:03:12 +00:00
ChunEon Park b4bfb8ecd3 elementary - updated XXX
SVN revision: 68705
2012-03-05 12:28:17 +00:00
Sanjeev BA 19bfb03a57 Fix some typos and documentation.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68667
2012-03-05 01:57:17 +00:00
Daniel Juyung Seo 75b760da92 elm: Random review of multibuttonentry and genlist.
Signed-off-by: Daniel Juyung Seo <seojuyung@gmail.com>

SVN revision: 68640
2012-03-03 06:11:56 +00:00
ChunEon Park 8b7e99754d elementary/genlist,gengrid - reorder the EAPIs in their headers to compare each other.
SVN revision: 68552
2012-02-29 12:13:40 +00:00
ChunEon Park 2b3dad09a2 elementary/gengrid - removed elm_gengrid_item_sorted_insert
and rename elm_gengrid_item_direct_sorted_insert to elm_gengrid_item_sorted_insert



SVN revision: 68545
2012-02-29 10:30:51 +00:00
ChunEon Park f2c4e9b2f5 elementary/genlist - renamed label field to text.
SVN revision: 68538
2012-02-29 06:52:05 +00:00
ChunEon Park ebd409c78a elementary/genlist, gengrid - more reviews
SVN revision: 68534
2012-02-29 06:22:59 +00:00
ChunEon Park c2a70894ad elementary/genlist - killed elm_genlist_item_sorted_insert.
renamed elm_genlist_item_direct_sorted_insert to elm_genlist_item_sorted_insert



SVN revision: 68496
2012-02-28 07:17:00 +00:00
ChunEon Park 1cbee6a1cc elementary/genlist - deprecated elm_genlist_item_object_get
SVN revision: 68490
2012-02-28 05:58:45 +00:00
ChunEon Park d9ead1fb26 elementary/genlist - reviewed.
SVN revision: 68488
2012-02-28 05:26:49 +00:00
Hyoyoung Chang a9dcddd041 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add edit_mode feature (3/3)

As we discussed in 2011 May (
http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32498.html
).
I post edit_mode patch.

It almost made by Seunggyun Kim. I fixed some bugs and complaint to
current genlist.
Two public apis are introduced.
+EAPI void               elm_genlist_edit_mode_set(Evas_Object *obj,
Eina_Bool edit_mode);
+EAPI Eina_Bool          elm_genlist_edit_mode_get(const Evas_Object
*obj);
And one attribute is added in genlist item class
+   const char *edit_item_style;

It can used for editing and deleting in genlist.



SVN revision: 68309
2012-02-23 07:39:10 +00:00
Hyoyoung Chang 7ab200383d From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_gengrid - add item class management api
(1/3)

As like genlist item class management api, I added 4 apis to
elm_gengrid.

+EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void);
+EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc);
+EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc);

gengrid item class is maintained by gengrid in automatic manner.
it maintains its reference count. and item_class_free api marks
"delete_me".
Unless item_class_free, item class will not be freed.



SVN revision: 68308
2012-02-23 07:36:12 +00:00
Daniel Juyung Seo b8683eb9d8 elm genlist: Added mode_item_style to Elm_Genlist_Item_Class and
removed elm_genlist_mode_item_style_get/set APIs. Patch by Hyoyoung
Chang <hyoyoung@gmail.com>

On Wed, Feb 22, 2012 at 8:55 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear all.
>
> genlist item class had mode_item_style.
> it used for mode styling (such as sweep mode).
> one genlist can have multiple mode style.
> And mode_item_style's an item's attribute.
>
> So it's better to move to item class from widget_data.
>
> Thank you.

SVN revision: 68294
2012-02-23 03:15:40 +00:00
Daniel Juyung Seo 90d8ee3b8d elm genlist: Added more documentation for longpressed smart callback.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68293
2012-02-23 02:57:00 +00:00
Daniel Juyung Seo 548f616eae elm genlist: elm_genlist_item_count -> elm_genlist_items_count
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68245
2012-02-22 03:22:10 +00:00
Mike Blumenkrantz 8fb0f58c98 add elm_genlist_item_count(), change (int)wd->count to (uint)wd->item_count, fix a shadow var
SVN revision: 68240
2012-02-21 23:59:25 +00:00
Jihoon Kim 98c0ae9d0f elm: fill in some parameter description in doxygen
SVN revision: 68173
2012-02-20 22:55:40 +00:00
Hyoyoung Chang 068985b187 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add item_class management
functions

I make controversial apis for item class management.
As raster and other guys suggest, I simplify APIs and its behaviors.

First, Two public apis and two internal apis are introduced

+EAPI Elm_Genlist_Item_Class *
+elm_genlist_item_class_new(void)

+EAPI void
+elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc)

+void
+_elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc)

+void
+_elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc)

genlist item class is maintained by genlist in automatic manner.

And three fields are introduced in genlist item class.
+   int version;
+   unsigned int refcount;
+   Eina_Bool delete_me;

Normally a user add a elm_genlist_item_class by
elm_genlist_item_class_new().
Then its reference counter is automatic maintained.
If the user wanna to remove the elm_genlist_item_class, then call
elm_genlist_item_class_free()
After refcount reaches to 0, it will be removed.



SVN revision: 68147
2012-02-20 08:26:17 +00:00
Jihoon Kim 1e34a3e568 elementary: fix some doxygen warnings
SVN revision: 68112
2012-02-18 15:40:39 +00:00
Sanjeev BA a1309b1a9e Fix typos in documentation #5
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

SVN revision: 67908
2012-02-14 08:50:33 +00:00
Hyoyoung Chang 6beb6c5703 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add a getting item flag
function

Sometimes it is needed to get genlist item's type.
It will help to get item's type.



SVN revision: 67890
2012-02-14 02:51:40 +00:00
ChunEon Park b1d49688dc elementary/genlist - +documentation.
SVN revision: 67597
2012-01-30 05:43:00 +00:00
ChunEon Park 42ddca9f31 elementary/genlist - deprecated elm_genlist_item_genlist_get()
please use elm_object_item_widget_get() instead.



SVN revision: 67596
2012-01-30 04:37:41 +00:00
ChunEon Park 1a9deee7df elementary/genlist - deprecated elm_genlist_item_del()
now let's use elm_object_item_del() API.

and deprecated elm_genlist_horizontal_get() APIS also.



SVN revision: 67566
2012-01-27 11:59:22 +00:00
ChunEon Park 4ee72ae553 elementary/genlsit, gengrid - removed duplicated disabled field.
deprecated elm_genlist_item_disabled_set/get, 
please use elm_object_item_disabled_set/get instead.



SVN revision: 67562
2012-01-27 07:36:36 +00:00
ChunEon Park d4ffe4c8c2 elementary/genlist - deprecated elm_genlist_item_data_set/get
but please use elm_object_item_data_set/get instead.


and what was purpose of this double casting? 

(int)(long) elm_genlist_item_data_get(gli);

these calls are used in some places. 

I removed the (long) casting because it looks useless.



SVN revision: 67546
2012-01-26 07:31:30 +00:00