Commit Graph

484 Commits

Author SHA1 Message Date
Daniel Juyung Seo 09e15ebe04 elm genlist: Fixed tree effect bug. Patch by Chanwook Jung
<jchanwook@gmail.com>

On Wed, Mar 28, 2012 at 3:06 PM, chanwook jung <jchanwook@gmail.com>
wrote:
> Dear all,
>
> I added one line to fix the bug at tree effect. If the item is equal
to
> expanded_next_item, expanded_next_item set to NULL in _item_del
>
> Thanks,
> Joey

SVN revision: 69691
2012-03-28 06:23:18 +00:00
Hyoyoung Chang f406fbbadf From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add merging edc strings list

I add like a routine in previous patch.
It add merging routines to realize functions.
also i removed "elm_widget_stringlist_free(cons)"
because all of it is freed at item_unrealize.



SVN revision: 69598
2012-03-24 11:14:20 +00:00
chanwook jung a0ce8512b7 From: chanwook jung <jchanwook@gmail.com>
Subject: [E-devel] [Patch][Genlist] Tree effect bug fix

I found some bugs in tree effect. flickering, emit signal to unrealize
item... so I fix it.



SVN revision: 69582
2012-03-23 07:47:03 +00:00
Carsten Haitzler 20f3049d40 fix other bring in bug leif found.
SVN revision: 69581
2012-03-23 07:33:15 +00:00
Carsten Haitzler c19deffe6c and clean up formatting uglies i saw.
SVN revision: 69559
2012-03-22 09:34:57 +00:00
Carsten Haitzler f63dd7ed00 actually kno difference betwene show and bring-in in genlist if item
queued.



SVN revision: 69558
2012-03-22 09:33:29 +00:00
Carsten Haitzler e514faae6f fix initial bring in coord calc for genlist items if inside first
block (special case) and probably other stuff that goes wrong related
to geomtry being wrong at this stage.



SVN revision: 69557
2012-03-22 09:32:18 +00:00
Hyoyoung Chang 10c061ab3c From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - bugfix at item_state_update

I fixed minor error in _elm_genlist_item_state_update.
If item is selected, it sends signal to item and edit_obj.
But edit_obj is not checked by if statement.
I added a parenthesis for it.



SVN revision: 69538
2012-03-21 11:52:16 +00:00
chanwook jung d99ac5282c From: chanwook jung <jchanwook@gmail.com>
Subject: [E-devel] [Patch][Genlist] Add the moved.after/before signal
instead of moved

Some applications want to know moved.after or before and relative item
because of updating their own list. So I separated moved into
moved,after and move,before.



SVN revision: 69537
2012-03-21 11:50:33 +00:00
Hyoyoung Chang 5e4236f090 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - bugfix at flip_realize

I found a bug in _item_flip_realize.
It replaces previous string list without free.
this patch fixed for it.



SVN revision: 69536
2012-03-21 11:06:16 +00:00
Daniel Juyung Seo 2d181b7c96 elm genlist: Refine item callbacks. Patch by Hyoyoung Chang
<hyoyoung@gmail.com>

On Mon, Mar 19, 2012 at 11:48 AM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear all,
>
> I found a bug in decorate mode that selection callback is called
twice.
> Because two _mouse_down callbacks are added to a genlist item.
> I'm fixing this bug and some refactoring.
>
> Thanks.

SVN revision: 69520
2012-03-20 07:58:42 +00:00
Daniel Juyung Seo 93ca410915 elm genlist: Refactoring. Create spacer object only when it is needed.
SVN revision: 69518
2012-03-20 05:44:18 +00:00
Leif Middelschulte 9ef789ec28 Replace repetetive if(type== with switch/case
SVN revision: 69512
2012-03-20 03:19:13 +00:00
Daniel Juyung Seo 423b7ef0fb elm genlist: Refactoring. Use correct name item_moving_effect_timer -> tree_effect_animator.
SVN revision: 69453
2012-03-16 08:24:43 +00:00
Daniel Juyung Seo 7e43cd1abd elm genlist: Fixed evas_object_unref position problem. Patch by
Chanwook Jung <jchanwook@gmail.com>

On Thu, Mar 15, 2012 at 7:25 PM, chanwook jung <jchanwook@gmail.com>
wrote:
> Dear all,
>
> This patch is evas_object_unref position change properly in
_item_select.
>
> Thanks
> Joey

SVN revision: 69373
2012-03-15 11:24:20 +00:00
Daniel Juyung Seo f49349b9e0 elm genlist: Refactored _sizing_eval.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69372
2012-03-15 11:18:17 +00:00
Daniel Juyung Seo 873f029d13 elm genlist: Fixed elm_genlist_item_index_get(). Patch by Chanwook
Jung <jchanwook@gmail.com> But this will never be correct without
performance issue.

On Thu, Mar 15, 2012 at 4:43 PM, chanwook jung <jchanwook@gmail.com>
wrote:
> Dear all,
>
> I made the patch to fix index bug.
>
> Thanks,
> Joey

SVN revision: 69366
2012-03-15 10:12:59 +00:00
Daniel Juyung Seo 93257dd84a elm genlist: Fixed compress mode sizing bug. Patch by Chanwook Jung
<jchanwook@gmail.com>

On Thu, Mar 15, 2012 at 2:47 PM, chanwook jung <jchanwook@gmail.com>
wrote:
> Dear all,
>
> I made a simple patch. If ELM_LIST_COMPRESS mode, did not recalc
minw/minh
> in _sizing_eval.
>
> Thanks,
> Joey.

SVN revision: 69365
2012-03-15 09:56:43 +00:00
Jiyoun Park f34d80f6eb remove deprecated code related with
elm_genlist_item_display_only_get/set
function


SVN revision: 69359
2012-03-15 08:38:49 +00:00
Jiyoun Park 55db5ec08c remove deprecated code
related with elm_genlist_item_object_get


SVN revision: 69357
2012-03-15 06:54:56 +00:00
Jiyoun Park 631f8d31f5 remove deprecated with
elm_genlist_always_select_mode_get/set
elm_genlist_no_select_mode_get/set
function


SVN revision: 69355
2012-03-15 06:22:25 +00:00
Daniel Juyung Seo cd2d93ded2 elm genlist: Added show_item check routine. Patch by Hyoyoung Chang <
hyoyoung@gmail.com>. I committed his patch except for _calc_job diff.

On Wed, Mar 14, 2012 at 3:09 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear all.
>
> This patch include two changes
>
> 1. at _scroll_item, added to check show_item is null or not.
> 2. at _calc_job, added to check genlist type
>   because calc_job is added anytime, but some genlist clearing is can
> be done before doing calc_job.
>
> Thanks.

SVN revision: 69349
2012-03-15 04:03:10 +00:00
Daniel Juyung Seo b5f70c370a elm genlist: Check object magic in EAPI.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69323
2012-03-14 07:38:55 +00:00
Daniel Juyung Seo 7c19a4c122 elm genlist: Fixed item select bug. Patch by Hyoyoung Chang
<hyoyoung@gmail.com>

On Tue, Mar 13, 2012 at 6:52 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear all,
>
> In _item_select, some if conditional is not working as user intention.
> always_select mode checking is reversed and no-select mode is not
checked.
> I add and fix it.
> Thanks

SVN revision: 69292
2012-03-13 10:16:37 +00:00
Daniel Juyung Seo f9c86c1086 elm genlist/gengrid: Fixed item signal emit hook bug.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69290
2012-03-13 08:54:33 +00:00
Jiyoun Park 547d66da57 remove deprecated code related with
elm_genlist_item_flags_get
elm_genlist_item_contents_orphan
function.


SVN revision: 69284
2012-03-13 06:58:07 +00:00
Jiyoun Park cc0e8f5304 remove deprecated code related with
elm_genlist_item_top_bring_in
elm_genlist_item_middle_bring_in
elm_genlist_item_middle_show
elm_genlist_item_top_show
function.


SVN revision: 69282
2012-03-13 05:46:23 +00:00
Daniel Juyung Seo 5df37b215e elm genlist: Added signal emit hook. Patch by Hyoyoung Change <hyoyoung@gmail.com>
On Fri, Mar 9, 2012 at 5:49 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote:
> Dear all.
>
> This is a patch about genlist to add item signal emit hook.
> due to elm_genlist_item_object_get is deprecated,
> item sinal emit hook should be supported.
> So it's added.
>
> +   elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook);
>
> Thanks

SVN revision: 69111
2012-03-09 16:27:03 +00:00
Daniel Juyung Seo c1d0908120 elm genlist: Fixed wrong member name. 'edit_item_style' -> 'decorate_all_item_style'
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69097
2012-03-09 12:00:28 +00:00
Daniel Juyung Seo 5e6a70c7d8 elm genlist: Fixed wrong member name. 'mode_item_style' -> 'decorate_item_style'
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69096
2012-03-09 12:00:11 +00:00
Daniel Juyung Seo 830c30b9d3 elm gen: Moved Elm_Genlist_Item_Move_Effect_Mode to elm_gen_common.h
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69094
2012-03-09 11:39:13 +00:00
Daniel Juyung Seo 02838dfe25 elm genlist: Moved internal enum from elm_genlist.h to elm_genlist.c
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69085
2012-03-09 10:54:03 +00:00
Daniel Juyung Seo bea13e990e elm gen*: Changed local variable 'no_highlight' -> 'highlight' correctly.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69050
2012-03-08 10:58:32 +00:00
Daniel Juyung Seo f935b1eabd elm gen*: Fixed formatting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69049
2012-03-08 10:58:29 +00:00
Daniel Juyung Seo 86244f433d elm genlist: Fixed API bug. API change introduced API bug.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69037
2012-03-08 04:19:06 +00:00
Daniel Juyung Seo 0c208f325d elm genlist: Changed elm_genlist_edit_mode_get/set ->
elm_genlist_decorate_mode_get/set.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69006
2012-03-07 16:56:21 +00:00
Daniel Juyung Seo cc20f1cf72 elm genlist: Fixed wrong API. elm_genlist_decorate_type_get -> elm_genlist_decorate_mode_get
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68996
2012-03-07 16:32:17 +00:00
Hyoyoung Chang dff33d0aa4 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add item_select_mode_set/get

I added two apis for item selecting mode.
It almost same with elm_genlist_select_mode.


+EAPI void
+elm_genlist_item_select_mode_set(Elm_Object_Item *it,
+                                 Elm_Object_Select_Mode_Type mode)
+EAPI Elm_Object_Select_Mode_Type
+elm_genlist_item_select_mode_get(const Elm_Object_Item *it)

And display_only apis is unfied with item_select_mode.

+EINA_DEPRECATED EAPI void
elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool
display_only);
+EINA_DEPRECATED EAPI Eina_Bool
elm_genlist_item_display_only_get(const Elm_Object_Item *it);



SVN revision: 68993
2012-03-07 16:22:58 +00:00
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
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
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
Carsten Haitzler 660e160726 better not have an else... :)
SVN revision: 68938
2012-03-07 12:46:22 +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