Commit Graph

437 Commits

Author SHA1 Message Date
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
Jiyoun Park 4c9501159b remove deprecated function related with elm_genlist_item
SVN revision: 68837
2012-03-06 15:04:55 +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 65b8d8872a elm genlist: 1. Mark EINA_DEPRECATED for deprecated api in c. 2. Do not use deprecated api in elementary.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68766
2012-03-06 03:11:13 +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
Daniel Juyung Seo 6f7006be6d elm genlist: Fixed flipmode cache issue. Renamed nocache to nocache_once and adopted nocache forever concept.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68756
2012-03-06 01:10:51 +00:00
Daniel Juyung Seo a50817b61e elm genlist: Fixed floating item bug. http://www.youtube.com/watch?v=ClbvYlG9U_o
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68755
2012-03-06 01:10:46 +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 8bdf6c8ded elm genlist: Removed spaces after casting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68729
2012-03-05 15:14:36 +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 b5c7288f05 elementary/genlist, gengrid - reverted item_class version checking.
The version field is not for preventing ABI break but just for checking allocator (to not free the item class created by user)



SVN revision: 68670
2012-03-05 02:46:29 +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
Mike Blumenkrantz 6a1fc7cecd stringshare_del(NULL) is okay and item_style can be NULL
SVN revision: 68609
2012-03-02 01:20:50 +00:00
Mike Blumenkrantz b4f0478492 not sure how this insanity made it in, spank spank to someone
SVN revision: 68608
2012-03-02 01:12:43 +00:00
ChunEon Park 0759538f5e elementary/genlist, gengrid - added itc version checking.
SVN revision: 68539
2012-02-29 07:51:23 +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 9b0dd3205e elementary/genlist - breaked edit mode. my fault.
thanks to hyoyoung for reporing it.



SVN revision: 68535
2012-02-29 06:30:54 +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
Daniel Juyung Seo dcd2cf453c elm genlist: Set expanded_item only when it's expanding or set NULL.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68469
2012-02-27 08:01:15 +00:00
Carsten Haitzler 4691a2efc6 fix freeing of item that frees the expanded item
SVN revision: 68468
2012-02-27 06:21:36 +00:00
Mike Blumenkrantz 215dfd7e18 home and end keys now actually SELECT the first/last genlist items instead of just moving viewport to them
this does NOT handle multiselect, since imo calling select callbacks on $TEXAS items would be pretty costly; probably need to job/timer it out or something


SVN revision: 68443
2012-02-25 11:53:35 +00:00
ChunEon Park c5232c4741 elementary - removed unnecessary checkings
SVN revision: 68393
2012-02-24 08:53:01 +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
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 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
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
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
Hyoyoung Chang 608e9664f3 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - bugfix at genlist rotation.

It's about genlist items which are backed from rotation.
After rotating and items width is extending, genlist doesn't shrink its items.
So adding some routines to check if item min width is bigger than genlist's width.
If then recalc items width.




SVN revision: 67876
2012-02-13 08:50:18 +00:00
Michael BOUCHAUD 6658eb7fa1 elementary: fix content set and unset hooks for genlist gengrid items
SVN revision: 67737
2012-02-07 16:33:22 +00:00
ChunEon Park cc7f2a51a9 elementary/genlist, gengrid - modified internal variable type to clean up the unnecessary casting
SVN revision: 67600
2012-01-30 10:39:32 +00:00
ChunEon Park 7c0738c762 elementary/gengrid - Elm_Gengrid_Item -> Elm_Object_Item
Be happy! now all widgets are using the Elm_Object_Item interface.



SVN revision: 67599
2012-01-30 10:29:51 +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 c192a46b38 elementary/genlist - removed usage of widget_item_del_cb_set
Because the API is exposed to users, don't use it internally.

And looks don't need to use it actually.



SVN revision: 67547
2012-01-26 10:01:48 +00:00
Cedric BAIL c9b5551660 elementary: match elm_list API.
SVN revision: 67499
2012-01-24 15:15:43 +00:00
Cedric BAIL 337f25b1ec elementary: revert r67371.
NOTE: gengrid and genlist code are still half merged. The specific
code for checking widget type is still needed.


SVN revision: 67470
2012-01-23 13:26:45 +00:00
ChunEon Park 660e97d1db elementary/genlist - removed unused codes
SVN revision: 67371
2012-01-20 06:51:50 +00:00
ChunEon Park da7b8465a3 elementary/genlist - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67370
2012-01-20 05:18:31 +00:00
Cedric BAIL 7c6f9e4f42 elm: reset state on item removal.
SVN revision: 67213
2012-01-14 22:28:45 +00:00
Carsten Haitzler 39f63f3bf6 split up all elm headers. not perfect, but a big start
SVN revision: 66662
2011-12-30 06:49:28 +00:00
Cedric BAIL 283a6658a4 elementary: add elm_genlist_item_index_get.
SVN revision: 66530
2011-12-26 14:30:21 +00:00
chanwook jung 91c9921fd7 From: chanwook jung <jchanwook@gmail.com>
Subject: [E-devel] [Patch] [genlist] modified _item_block_unrealize
postion in calc_job

Previously, group item did not unrealized at rotate.



SVN revision: 66510
2011-12-26 05:32:40 +00:00
Daniel Juyung Seo 81c0c5e6b0 elm genlist: Fixed function declaration formatting.
SVN revision: 66509
2011-12-26 05:15:21 +00:00
Daniel Juyung Seo 57213b618b elm genlist: Fixed genlist auto scroll bug. Patch by Chanwook Jung <joey.jung@samsung.com>
2011/12/23 Chan-Wook Jung <joey.jung@samsung.com>:
>
> I attached 2nd patch. There are some changes about auto scroll.
> In previous version did not support various bring_in mode in calc_job. So I added scrollto_type value.
> I changed the code to fix this promblem,
> If the bring_in item is in the queue and did not changed pan size, Bring_in function is not working properly.
> When using expandable list, If the last item is in the screen, The last item is located at the bottom and
> If the last item is out of the screen, the expanded_item is located at the top.
>
> Thanks
> Chanwook Jung

SVN revision: 66488
2011-12-24 04:20:18 +00:00