Commit Graph

743 Commits

Author SHA1 Message Date
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
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
Daniel Juyung Seo 2e8969d27f elm genlist: Fixed indentation.
SVN revision: 66472
2011-12-23 06:54:47 +00:00
Daniel Juyung Seo a6483d9264 elm genlist: Fixed item show apis.
SVN revision: 66359
2011-12-20 05:57:53 +00:00
Daniel Juyung Seo 02a95be24e elm genlist: Internal variable refactoring.
SVN revision: 66261
2011-12-15 15:24:17 +00:00
Daniel Juyung Seo 2f3a338139 elm genlist/gengrid: Changed 'labels' to 'texts' in edc.
SVN revision: 66205
2011-12-14 16:36:09 +00:00
정찬욱 1c1f6ef90a From: 정찬욱 <joey.jung@samsung.com>
Subject: [E-devel] [Patch] elm_genlist pan changed patch

This patch is to fix the problem that blinking is occured when
application use the ecore timer and
the rendering delay at pan resize/move using evas_object_smart_changed
instead of ecore_job_add.




SVN revision: 66132
2011-12-13 04:15:10 +00:00
Daniel Juyung Seo 1dbbe5553c elm: Reverted wrong commits. This was committed by mistake :( So
shame...;


SVN revision: 66123
2011-12-12 23:57:57 +00:00
Daniel Juyung Seo feda46e2f1 elm toolbar/naviframe: Added more documentation about elm_object and
elm_object_item common APIs support. This needs to be done for other
widgets which support elm_object/elm_object_item.


SVN revision: 66122
2011-12-12 23:53:26 +00:00
Daniel Juyung Seo 8c626b33ee elm genlist: Calculate expanded_depth in _item_new
SVN revision: 65932
2011-12-06 01:37:53 +00:00
Daniel Juyung Seo 8d0301505a elm genlist/gengrid: Added documentation. Fixed documentation. Fixed
formatting.

SVN revision: 65931
2011-12-06 01:23:55 +00:00
Daniel Juyung Seo 95f6ebae61 elm genlist/gengrid: Refactoring. Moved global function pointers to
widget data.

SVN revision: 65930
2011-12-06 01:19:12 +00:00
Mike Blumenkrantz 608d52ba61 missed some things with my tooltip api break
SVN revision: 65917
2011-12-05 17:14:07 +00:00
Cedric BAIL 8832e77e58 elementary: fix reordering bug.
NOTE: queue and item list should have the same order,
but that's not the case.



SVN revision: 65915
2011-12-05 16:43:29 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
Cedric BAIL 36f42652ca elementary: improve rendering stability by ordering queue like the displayed list.
SVN revision: 65826
2011-12-02 16:17:10 +00:00
Cedric BAIL 3270f81a6d elementary: prevent early death of items.
SVN revision: 65824
2011-12-02 16:00:41 +00:00
Daniel Juyung Seo d22eb91185 elm gen/genlist: Renamed elm_gen.h to elm_genlist.h. elm_gen will be removed and elm_genlist will survive.
SVN revision: 65815
2011-12-02 14:09:24 +00:00
Cedric BAIL 926e801b59 elementary: now elm_gen*_clear only destroy the item created before calling it.
NOTE: As side fix, both genlist and gengrid now share their Widget_Data. Need
a lot more work to be clean and match our quality standard.

NOTE2: Genclear is now faster as it doesn't require to mark all item that need
to be removed, but just increase one int.



SVN revision: 65811
2011-12-02 13:43:02 +00:00
Daniel Juyung Seo 9266096bdf elm gengrid/genlist: Changed 'label_get' to 'text_get' according to the
recent elementary api corrections.

I changed item class's 'label_get' to 'text_get'. But 'label_get' is still
supported by union structure. So 'label_get' will just give you
deprecated warnings while compiling but it's recommended to fix your
apps to 'text_get'. Sometimes when you initialize item class using
braces, you will get 'missing braces around initializer' but ignore
this. That warning will be gone after I remove 'label_get' backport. I
will remove this 'label_get' backport after I finish below
jobs.

[TODO]
1. Fix all apps in trunk.
2. Change edc "labels" to "texts" as well. I haven't done this yet.


SVN revision: 65751
2011-12-01 06:15:08 +00:00
Daniel Juyung Seo 3fd427b0d3 elm gen/gengrid/genlist: More clean ups.
SVN revision: 65724
2011-11-30 17:42:26 +00:00
Daniel Juyung Seo 35fc57e252 elm gen/gengrid/genlist: Moved more gen stuffs to genlist. Most of all gen stuffs were moved to genlist as of now. This is for elementary 1.0 release.
SVN revision: 65722
2011-11-30 17:31:01 +00:00
Daniel Juyung Seo 0cabbec4e1 elm gen/gengrid/genlist: Partially removing gen. Partially merging gengrid into genlist. (Season 2)
SVN revision: 65721
2011-11-30 17:13:57 +00:00
Daniel Juyung Seo 462f1dc43d elm gen/gengrid/genlist: Partially removing gen. Partially merging gengrid into genlist.
SVN revision: 65718
2011-11-30 16:03:03 +00:00
Daniel Juyung Seo d397598ab1 elm gen/gengrid/genlist: Fixed wrong elm_gen_clear changes.
SVN revision: 65717
2011-11-30 14:40:22 +00:00
Daniel Juyung Seo 6f1dd8c84d elm gen/gengrid/genlist: Undeprecate some gengrid/genlist APIs and
deprecate all elm_gen APIs.

We will merge gengrid into genlist later and remove elm_gen.
I updated http://trac.enlightenment.org/e/wiki/ElementaryChanges
I will fix other libraries/programs in trunk soon.


SVN revision: 65700
2011-11-30 00:59:19 +00:00
Daniel Juyung Seo 8b017483ea elm genlist: Added elm_genlist_item_fields_update(). Patch by Hyoyoung
Chang <hyoyoung.chang@samsung.com>

2011/10/27 Hyoyoung Chang <hyoyoung.chang@samsung.com>:
> Dear developers
>
> I made a patch to add elm_genlist_item_fields_update function.
> It can be used to updating genlist's item part without
realize/unrealize
> itself.
>
> Prototype is
> elm_genlist_item_fields_update
> (Elm_Genlist_Item *it, const char *part,
Elm_Genlist_Item_Field_Flags itf)
>
> Part supports globbing. Passing "*" to part means updating all parts.
> Item field can be one of icon, content and state.
> I think it's useful to speed up if an app updates frequently.
>
> Thanks


SVN revision: 65688
2011-11-29 14:03:14 +00:00
Daniel Juyung Seo c66f21a87a elm genlist: Changed int to Eina_Bool in case it uses 1 or 0.
SVN revision: 65679
2011-11-29 08:54:19 +00:00
ChunEon Park 43c470e6b9 elementary/genlist - patched by PRINCE KUMAR DUBEY<prince.dubey@samsung.com>
Hi,

On behalf of Rajeev Ranjan, I am submitting the elm_genlist patch.

Change Log:
a. Dead code removal in function _sizing_eval
b. Memory leak fix in function elm_genlist_item_insert_before due to return when wd->items is NULL and in this case, memory allocated for item was not getting free.
c. Memory leak fix in function elm_genlist_item_insert_after due to return when wd->items is NULL and in this case, memory allocated for item was not getting free.

Please review it.
I'd appreciate any comments on this.

Thank you,



SVN revision: 65662
2011-11-29 00:06:55 +00:00
Mike Blumenkrantz d37f2891dd add promote/demote functions for genlist
SVN revision: 65599
2011-11-25 20:27:27 +00:00
Daniel Juyung Seo 2a477fe8af elm gengrid/genlist: Remove deprecated signals.
This was already announced a month ago.
http://trac.enlightenment.org/e/changeset/64200


SVN revision: 65474
2011-11-21 08:06:40 +00:00
Daniel Juyung Seo d71872473a elm genlist: Refine codes.
SVN revision: 65380
2011-11-18 09:12:27 +00:00
Bluezery 84f0b47a95 From: Bluezery <ohpowel@gmail.com>
Subject: [E-devel] [elm_map] ecore_file_download_full() should be used
properly

elm_map only checked that returned job is NULL.
But ecore_file_download_full() returns EINA_FALSE when error occurred.
So return value should be checked for proper usage.
Please review this simple bug fix



SVN revision: 64794
2011-11-06 06:11:57 +00:00
Iván Briano d1a4b05805 Init state for inlist sorted insert with current items.
SVN revision: 64747
2011-11-04 20:34:41 +00:00
Mike Blumenkrantz f7aaa3aeff better use of internal variables
SVN revision: 64352
2011-10-24 03:40:54 +00:00
Daniel Juyung Seo 23de0435b9 elm genlist/gengrid: Applied genlist/gengrid icons -> contents changes
to themes. Changed detour-elm and darkness theme as well.
Tips) Change genlist/gengrid's "icons" to "contents" in edc.


SVN revision: 64345
2011-10-24 02:27:04 +00:00
Daniel Juyung Seo 2bb2b1f0ee elm gen/gengrid/genlist: Changed item class's icon_get to content_get.
Do not limit the swallowed objects to icon. This had to be done before
elm 1.0 and now it's time to break. This will break all applications
which are using gengrid/genlist. Please fix it icon_get -> content_get.

TODO
1. fix theme as well.
2. fix documents.


SVN revision: 64344
2011-10-24 02:10:35 +00:00
Daniel Juyung Seo 110ab53953 elm genlist: Removed dead code. Patch by Hyoyoung Chang
<hyoyoung@gmail.com>

On Sun, Oct 23, 2011 at 8:44 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> Dear developers
>
> When i compile elementary, i found something to remove.
> And this is for removing unused values in elm_genlist.
>
> Thank you.


SVN revision: 64331
2011-10-23 23:15:58 +00:00
Mike Blumenkrantz 81fb2abd7e deprecate all genlist/gengrid functions related to 64281
SVN revision: 64282
2011-10-22 00:26:21 +00:00
Mike Blumenkrantz 9cffa1a766 add bounce settings to genlist wd
SVN revision: 64280
2011-10-21 23:51:26 +00:00
Mike Blumenkrantz e22f36e214 deprecate elm_genlist/grid_item_selected_get -> elm_gen_item_selected_get
SVN revision: 64279
2011-10-21 23:22:26 +00:00
Mike Blumenkrantz b148562870 deprecate elm_genlist_item_selected_set and elm_gengrid_item_selected_set: use elm_gen_item_selected_set instead
SVN revision: 64277
2011-10-21 23:10:56 +00:00
Mike Blumenkrantz 82cfec36d5 deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
2011-10-21 23:05:02 +00:00
Mike Blumenkrantz 5852948858 more genlist/gengrid merging: select+clear are now abstracted
SVN revision: 64275
2011-10-21 22:55:45 +00:00
Mike Blumenkrantz ffed36961e even more reordering, also convert some evas coords to int
SVN revision: 64269
2011-10-21 21:04:06 +00:00
Mike Blumenkrantz 72700795f2 more reordering
SVN revision: 64268
2011-10-21 21:00:07 +00:00
Mike Blumenkrantz 132c0994e6 use WIDGET instead of parent for callbacks
SVN revision: 64266
2011-10-21 20:52:29 +00:00
Mike Blumenkrantz c8d41c70e3 reorder gen* wd bools
SVN revision: 64265
2011-10-21 20:45:14 +00:00
Daniel Juyung Seo f596776217 elm genlist/gengrid: No need to call elm_widget_data_get() if we know it. it->wd is a widget data.
SVN revision: 64263
2011-10-21 17:06:46 +00:00
Mike Blumenkrantz 35c8f40547 this commit marks step one of The Gengrid & Genlist Unification Project. these poor widget brothers were separated at birth, never knowing that they were almost exactly the same.
from here, it should be trivial to continually move more and more code into elm_gen.c and reduce duplication.
ideally we should be aiming for an elm_gen_* api where you differentiate between list/grid with style or something since the apis are almost identical


SVN revision: 64245
2011-10-21 08:52:03 +00:00
Mike Blumenkrantz 6026896d03 remove mode_item_style from item class, use genlist_mode_item_style_set() instead
SVN revision: 64228
2011-10-21 03:31:26 +00:00
Mike Blumenkrantz 5f5dd5f9e1 fix breakage #1 of the night
SVN revision: 64227
2011-10-21 03:23:42 +00:00
Mike Blumenkrantz 9744ff9f84 remove gross genlistitemmoved function thingy and implement smart cb
also removed relevant item on TODO


SVN revision: 64222
2011-10-21 01:49:15 +00:00
Mike Blumenkrantz 88bbad2635 add VIEW() and WIDGET() macros for use with Elm_Widget_Items to create more consistency, reduce typing, and increase readability
VIEW(X) = X->base.view (visible evas object)
  WIDGET(X) = X->base.widget (owner widget)

also a demo of the oxford comma for seoz


SVN revision: 64220
2011-10-21 01:08:01 +00:00
Mike Blumenkrantz 4ad1c5f0db create and use ELM_WIDGET_ITEM for elm widget structs to ensure location/name
SVN revision: 64218
2011-10-21 00:45:19 +00:00
Mike Blumenkrantz baf20fbec8 more reordering
SVN revision: 64213
2011-10-20 22:23:29 +00:00
Mike Blumenkrantz 4607b50c5e more unnoticeable internal movements
SVN revision: 64211
2011-10-20 21:49:54 +00:00
Mike Blumenkrantz 3bd72bfe23 rename some internal variables for consistency
SVN revision: 64210
2011-10-20 21:41:24 +00:00
Daniel Juyung Seo a9e92c7bc3 elm genlist/list/gengrid: Changed edge smart callback name. 'edge' callback is not scrolling. So "scroll,edge,up" -> "edge,up". elm_scroller already used this name.
SVN revision: 64200
2011-10-20 16:42:42 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Daniel Juyung Seo b5969dc2a3 elm genlist: Clear last_selected_item when last_selected_item is
deleted.


SVN revision: 64031
2011-10-13 03:47:57 +00:00
Daniel Juyung Seo 596df1a4fc elm genlist: Added comments for internal variables.
SVN revision: 64020
2011-10-12 15:23:55 +00:00
cnook 7716a26e4a From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch] elm_diskselector, set icon to added item

If the diskselector is round mode, the scroller of diskselector has
additional items for its rounding(carousel) effect.
Previously, elm_diskselector_item_icon_set(); did not care about
theses additional items.
Please review the attached patch that will care. Thanks.



SVN revision: 63957
2011-10-10 09:45:43 +00:00
Mike McCormack beafec3884 elementary: Improve include file modularity
Move stuff out of elm_priv.h

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 63900
2011-10-07 05:56:07 +00:00
Daniel Juyung Seo de4fb0b5e0 elm genlist: Raise genlist group index when the group's sub item mode
is changed.


SVN revision: 63898
2011-10-07 05:54:29 +00:00
Daniel Juyung Seo 1b3f3822fd elm genlist: Removed unnecessary local variable.
SVN revision: 63638
2011-09-28 05:56:28 +00:00
Daniel Juyung Seo b7a22247f2 elm genlist: Changed internal variable name. old_pan_y ->
reorder_old_pan_y.


SVN revision: 63561
2011-09-23 08:32:32 +00:00
Daniel Juyung Seo 8009f346e9 elm genlist: Added genlist event hook boundary check routine.
SVN revision: 63536
2011-09-22 12:39:49 +00:00
Cedric BAIL 8cd01e8068 elementary: use sorted state to improve gengrid and genlist.
SVN revision: 63217
2011-09-05 20:31:51 +00:00
Daniel Juyung Seo 2ec5417dfb elm genlist: Fixed reordering mode bug.
1. Fixed floating item bug while reordering.
2. Fixed moving an item out of range bug while reordering.


SVN revision: 63195
2011-09-05 12:16:36 +00:00
Daniel Juyung Seo b72f454618 elm genlist: Fixed formatting.
SVN revision: 63194
2011-09-05 12:14:20 +00:00
Daniel Juyung Seo 9e23119e41 elm: Refactoring. Modified elm_{widget}_scroller_policy_set() API.
SVN revision: 62957
2011-08-29 16:30:14 +00:00
Daniel Juyung Seo 24e9083fd6 elm genlist: Reverted r62645 patch. This needs to be refined.
SVN revision: 62855
2011-08-26 11:32:26 +00:00
Gustavo Lima Chaves 22d111e502 [elementary] genlist_nastiness--
http://www.youtube.com/watch?v=YaR9I7CEiJc



SVN revision: 62823
2011-08-25 14:32:02 +00:00
Carsten Haitzler 6c41db98dd fix bug if pan has been deleted - sd wil lbe null.
SVN revision: 62821
2011-08-25 14:22:26 +00:00
Jaehwan Kim 621c8232b5 From: Jaehwan Kim <jae.hwan.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist_clear

When items are added right after genlist clear, genlist is scrolled to the previous position.
If all item is deleted, the scroller have to locate 0, 0.
But scroller has wanted position to remembers the scrolled location.
So even if all item is deleted, it locate previous position.
Then I added elm_smart_scroller_child_region_show(wd->scr, 0, 0, 0, 0)
at the end of the elm_genlist_clear.




SVN revision: 62778
2011-08-25 05:20:59 +00:00
Gustavo Lima Chaves 802a12781f [elementary] Fixing list clearing inside item selection for
genlists.
When the items are made invalid, don't access rotten pointers! I think
I did it right, but it exposes a bug on genlist test 2, elementary
test. I'll let that fix to the authors of that specific code
(insert_after() and such).



SVN revision: 62763
2011-08-24 21:03:37 +00:00
Daniel Juyung Seo f899277816 elm genlist: Added "scroll,anim,start", "scroll,anim,stop",
"scroll,drag,start", "scroll,drag,stop" smart callbacks to genlist.
elm gengrid: Added "scroll,anim,start", "scroll,anim,stop" smart
callbacks to genlist.


SVN revision: 62710
2011-08-23 04:02:26 +00:00
Daniel Juyung Seo 5814a8b7cb elm genlist: Fixed elm_genlist_item_insert_after() bug. Patch by
Chanwook Jung <joey.jung@samsung.com>

From: 정찬욱 [mailto:joey.jung@samsung.com]
Sent: Friday, August 19, 2011 4:40 PM
Subject: [E-devel] [Patch] bug in elm_genlist_item_insert_after


Dear developers.

I found the problem when group item is added using
elm_genlist_item_insert_after in genlist.
The new group item is refer to the group item list not item list.
Therefore
it is inserted in the wrong place.
I modified that if the new group item is inserted, refer to the last
item
of the after group item.
Thanks.


SVN revision: 62645
2011-08-21 05:27:19 +00:00
Mike Blumenkrantz 5bde9e619c fix elm_object_item_text_part_get for genlist and gengrid
SVN revision: 62323
2011-08-10 23:51:20 +00:00
Gustavo Lima Chaves 31a3e6180a [elementary] All docs to elm's header, as Raster wishes.
Discomfitor, now it's time to split the header and/or write another novel.



SVN revision: 62315
2011-08-10 21:03:21 +00:00
Daniel Juyung Seo cd80368508 elm genlist: Modified genlist object reference checking.
On Thu, Aug 4, 2011 at 7:11 PM, Hyoyoung Chang
<hyoyoung.chang@samsung.com> wrote:
> Yeah, you're right.
> Could review improve version of previous patch?
> I attached it.


SVN revision: 62190
2011-08-08 05:42:29 +00:00
Daniel Juyung Seo 1d6ee07488 elm genlist: Added elm_genlist_horizontal_set/get() APIs. Deprecated
elm_genlist_horizontal_mode_set/get() for API name consistency. Use
new APIs.


SVN revision: 62117
2011-08-05 01:21:56 +00:00
Rafael Antognolli d54553f29b elementary/genlist - Adding genlist mode documentation.
SVN revision: 62107
2011-08-04 21:05:31 +00:00
Carsten Haitzler 5f84a1a170 indent fix
SVN revision: 62042
2011-08-03 07:16:20 +00:00
Hyoyoung Chang 92c35c1e5d From: Hyoyoung Chang <hyoyoung.chang@samsung.com>
Subject: [E-devel] [patch] elm_genlist - bugfix evas_object_del at
selected callback

This patch is about elm_genlist.
When a user delete genlist object at selected callback,
Genlist don't proper handle it.
Before genlist clearing, genlist delete its widget data.
So sometimes, it's crashed.

I made two point diffs
1. add genlist clearning at _del_hook
2. checking at _item_select, whether it's deleted or not.



SVN revision: 62040
2011-08-03 05:39:13 +00:00
Daniel Juyung Seo 48581ff328 elm genlist: Refactoring. Moved code for the readability.
SVN revision: 61983
2011-08-02 06:59:45 +00:00
Daniel Juyung Seo d77693c239 elm genlist: Added more guard code and moved some codes for the
readability.


SVN revision: 61981
2011-08-02 06:54:10 +00:00
Daniel Juyung Seo d01d8ba5e3 elm genlist: Fixed item addition routine for group child items.
SVN revision: 61980
2011-08-02 06:50:34 +00:00
Daniel Juyung Seo 1c6f5c265a elm genlist: Fixed comment typo.
SVN revision: 61979
2011-08-02 06:29:54 +00:00
Cedric BAIL e9b0c2b458 elementary: fix genlist sorted insert to not loose track of subitem.
SVN revision: 61901
2011-07-29 16:07:10 +00:00
Rafael Antognolli 7f3c05ef7e elementary/genlist - More functions moved from .c to .h
Most of them were reviewed and/or improved.



SVN revision: 61868
2011-07-28 21:27:23 +00:00
Cedric BAIL 1e78519913 elementary: fix some parental issue with genlist.
SVN revision: 61863
2011-07-28 16:43:15 +00:00
Mike Blumenkrantz 5d9cc6c464 properly set tooltip freesizing when object has not been realized in genlist/gengrid
SVN revision: 61834
2011-07-28 02:22:37 +00:00
Rafael Antognolli bd2f3e7dee elementary/genlist - Moving and improving docs of genlist functions.
Most of the functions deal with configuring the genlist, not the items.



SVN revision: 61768
2011-07-26 18:32:05 +00:00
Mike Blumenkrantz 54f1e32c17 THE MOST ANTICIPATED COMMIT OF 2011: HUGENORMOUS TOOLTIPS!!!!!!
these bad boys are so big and pixelthirsty they can't be constrained by a regular canvas or window, they use OVERRIDE REDIRECT WINDOWS. not only that, they totally exceed the boundaries of what a reasonable function name length could be. 50 character function name limit? puh-leeze. these guys don't care what side of the screen they're even on so long as they get to wade into the thick of the action and block out each and every crappy non-efl application behind them. and that's when they're in good moods. you don't even want to know what happens when you piss these guys off.


SVN revision: 61735
2011-07-26 09:38:23 +00:00
Mike Blumenkrantz 47574fccbf add new signal for list/genlist/gengrid: "activated"
this signal is called whenever an item receives either a double click or selection+(enter/spacebar/return)

this commit also unifies the click/enter/spacebar/etc event api for these widgets, including removing the double click signal from keypress events and removing the 'clicked' signal from double click events


SVN revision: 61720
2011-07-26 01:49:24 +00:00
Daniel Juyung Seo 053b225250 elm: Fixed document typo.
SVN revision: 61664
2011-07-25 06:36:59 +00:00
Rafael Antognolli e42e50e434 elm/genlist - Fix bounce option getter.
Try to get the bounce option from the internal els_scroller, and also
add checks on the els_scroller api to see if the arguments were given.



SVN revision: 61592
2011-07-22 17:15:33 +00:00
Daniel Juyung Seo 30c36efd24 elm genlist: Removed elm_genlist_item_update() from
elm_genlist_item_data_set(). So please call elm_genlist_item_update()
when you need it.


SVN revision: 61546
2011-07-21 07:10:17 +00:00
Daniel Juyung Seo afa5e90a77 elm genlist: Added _item_realize() function declaration.
SVN revision: 61359
2011-07-14 07:22:04 +00:00
Daniel Juyung Seo bc07b91b0e elm genlist/list/gengrid: Removed deprecated signal "clicked". Use
"clicked,double" instead.

The name was wrong and I added a proper signals few months ago. Not I
removed wrong signals.


SVN revision: 61115
2011-07-07 12:49:39 +00:00
Daniel Juyung Seo 9e9745616e elm genlist: Fixed delayed signal processing issue. Patch by Jaehwan Kim <jae.hwan.kim@samsung.com>
2011/7/5 Jaehwan Kim <jae.hwan.kim@samsung.com>:
>
> Dear all,
>
> In target, elm_genlist sometime blink while it realize again.
> It is why the signal like "elm,state,selected" isn't processed immediatly.
> So it show default state and then change to seleted state.
> _item_realize have to process the signals immediatly.
> It add a line "edje_object_message_signal_process" in the last of the _item_realize.
> Please check the patch.
>
> Thanks.


SVN revision: 61061
2011-07-05 17:17:14 +00:00
Mike McCormack 0295f4d56e elementary: elm_label_label_ -> elm_object_text
Clear deprecated warnings.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 60798
2011-06-29 06:41:31 +00:00
Daniel Juyung Seo f3085a3088 elm genlist: Removed unnecessary variable.
SVN revision: 60747
2011-06-28 07:13:28 +00:00
Daniel Juyung Seo 321c4c8daf elm genlist: Mark TODO to moved function.
Change moved callback in item class to smart callback.


SVN revision: 60717
2011-06-27 03:06:33 +00:00
Cedric BAIL 74dd82cf60 elementary: add some usefull function around sorted insert.
SVN revision: 60691
2011-06-25 23:20:22 +00:00
Daniel Juyung Seo 2a31563c8f elm genlist: Fixed indentation.
SVN revision: 60626
2011-06-23 09:51:03 +00:00
Daniel Juyung Seo dffab59e5e elm genlist, photocam, map: Fixed wrong signal emitting.
SVN revision: 60325
2011-06-15 05:30:23 +00:00
Seunggyun Kim dc4627227f From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist - added auto scroll function
when expanding items.

Now, The user don't know how many items are added when the item is expanded in tree view.
If the use want to know how many items are added, they have to scroll
genlist view.

So I added auto scroll function when the items is expanded on bottom of viewport.
Using this, the user can know expanded items although that is expanded
beyond the view port.



SVN revision: 60302
2011-06-14 09:18:54 +00:00
Cedric BAIL fda013920d elementary: add safety check to prevent some ill request.
SVN revision: 60261
2011-06-13 07:43:11 +00:00
Daniel Juyung Seo 6c68857b0e Elementary genlist: Indentation fix for reorder patch.
SVN revision: 60110
2011-06-09 02:54:04 +00:00
Daniel Juyung Seo e83f4fc000 Elementary genlist: Fixed "Genlist 4" test case.
Using evas_event_freeze/thaw in _item_realize, _item_block_recalc and _queue_process breaks "Genlist 4" test case which is using textblock.
We need to re-examine evas_event_freeze/thaw. They are so tricky :(


SVN revision: 60092
2011-06-08 16:56:50 +00:00
Daniel Juyung Seo da9848bc17 Elementary genlist: Refactoring.
1. Changed int for 0/1 to Eina_Bool.
2. Removed unnecessary variable. Don't need to assign macro to
variable. Just use macro.
3. Fixed indentation.


SVN revision: 60086
2011-06-08 10:58:00 +00:00
Daniel Juyung Seo 65a345438e Elementary genlist: Removed internal routine in _item_block_realize().
Genlist items are realized separately. So block realize doesn't mean
realizing all items in the block. This function and
_item_block_unrealize() will be refactored later again.


SVN revision: 60085
2011-06-08 10:48:20 +00:00
Daniel Juyung Seo b1185c152c Elementary gengrid,genlist: Sync genlist/gengrid signal name for
reorder.


SVN revision: 60013
2011-06-07 00:46:22 +00:00
Daniel Juyung Seo 6206f5f4a4 Elementary genlist: Code refactoring.
SVN revision: 59942
2011-06-04 01:52:08 +00:00
Daniel Juyung Seo 629a67e86b Elementary genlist: Applied reorder effect patch from Seunggyun
<sgyun.kim@samsung.com>. Now reorder effect is enalbed :)

Btw, I changed signal name before commit.


SVN revision: 59940
2011-06-04 01:17:52 +00:00
Daniel Juyung Seo 20acef07bc Elementary genlist: Fixed formatting.
SVN revision: 59887
2011-06-02 05:40:30 +00:00
Daniel Juyung Seo 665b5f07c6 Elementary: Fixed trailing whitespaces.
It looks like flip is not changed frequently now. I will check
whitespace and indentation from time to time. If this is not good,
please check codes before commit. Thanks.


SVN revision: 59884
2011-06-02 04:24:58 +00:00
Seunggyun Kim 265c83e5a5 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
2011-06-02 03:10:11 +00:00
Carsten Haitzler 967c430a52 get rid of freeze+thaw lockup for mode changed items
SVN revision: 59867
2011-06-01 13:15:08 +00:00
Carsten Haitzler 823e640632 seems 1 frereze+thaw causes slowdown... thanks dan! :)
SVN revision: 59866
2011-06-01 13:13:56 +00:00
Daniel Juyung Seo eac6ad1a56 Elementary genlist: Fixed event freeze problem with mode item.
SVN revision: 59864
2011-06-01 11:46:24 +00:00
Daniel Juyung Seo eeaf9ea360 Elementary lib: Removed trailing whitespaces except for flip.
SVN revision: 59796
2011-05-30 02:31:21 +00:00
Carsten Haitzler 5c1134e1f5 genlist -> improve performance by adding lots of freezes and thaws. :)
SVN revision: 59729
2011-05-27 10:30:56 +00:00
Daniel Juyung Seo ba463fcd39 Elementary genlist: Fixed warnings and removed unnecessary lines.
SVN revision: 59707
2011-05-27 01:02:16 +00:00
Michael BOUCHAUD c89bde9986 elementary: thanks to the recent add of eina_inlist_sorted_insert add elm_genlist_item_sorted_insert
SVN revision: 59672
2011-05-25 14:58:39 +00:00
Daniel Juyung Seo dbb3d5fb14 Elementary genlist: Fixed bug in single selection mode to prevent
multiple selection. Patch by Hyoyoung Chang <hyoyoung.chang@samsung.com>

On Tue, May 24, 2011 at 7:43 PM, Hyoyoung Chang
<hyoyoung.chang@samsung.com> wrote:
Dear Elementary developers.

I made a oneline patch.
It's about in single selection mode of elm_genlist.
In single selection mode, some multi touching can make multi selected items.

It can't easy reproduce at PC environment(like as mouse+keyboard), but if you have multi touching device you can easily reproduce.

Reproduce step is putting two pointing device on genlist.
1.      long pressing one pointer.
2.      Short press another one pointer.
3.      And repeat alternating press two device
Then you can find multi selected items in single selection mode.

So my approach is if a item is not selection and just only
highlighted, then make it with _item_unselection()


SVN revision: 59659
2011-05-25 03:01:51 +00:00
Daniel Juyung Seo a0ba6ba525 Elementary genlist: Refactoring. Separated _item_unhighlight() from
_item_unselect().

1. _item_select() and _item_highlight() are also separated. Each
function can be called separately. This will be introduced in later
commit.
2. 'unhighlight' sounds weird but there is no other good names.
3. Call _item_unhighlight() before _item_unselect() for selected items.


SVN revision: 59652
2011-05-24 11:41:00 +00:00
Daniel Juyung Seo 0321987096 Elementary genlist: Removed unnecessary height_for_width codes.
SVN revision: 59647
2011-05-24 10:51:26 +00:00
Daniel Juyung Seo c0fa29eccc Elementary genlist: Removed unnecessary/deprecated codes due to
internal changes.


SVN revision: 59622
2011-05-23 12:19:42 +00:00
Daniel Juyung Seo f1313a5458 Elementary genlist: Fixed elm_genlist_compress_mode_set().
If compress mode is false, homogeneous mode needs to be false too.


SVN revision: 59361
2011-05-13 06:10:13 +00:00
Daniel Juyung Seo 94cce60218 Elementary: Removed trailing whitespaces.
SVN revision: 59260
2011-05-07 08:37:47 +00:00
Daniel Juyung Seo 46f6247b9c Elementary genlist: Use signal callback table.
SVN revision: 59255
2011-05-07 00:30:39 +00:00
Daniel Juyung Seo 90990ed63e Elementary genlist: Fixed item disabled set bug more and fixed my
previous commit.


SVN revision: 59229
2011-05-06 02:59:49 +00:00
Daniel Juyung Seo c7e8085c9f Elementary genlist: Fixed item disabled set bug and disabled swallow
objects as well.


SVN revision: 59228
2011-05-06 02:07:00 +00:00
Daniel Juyung Seo 366265ee6f Elementary genlist: Fixed warning. Spank raster.
SVN revision: 59154
2011-05-03 17:32:18 +00:00
Carsten Haitzler bfc20e11a9 we don't need norender anymore since i changed the processing to use
an idle enterer.



SVN revision: 59147
2011-05-03 11:25:33 +00:00
Daniel Juyung Seo 22aeea6acf Elementary: Use !! to Eina_Bool substitution in EAPIs.
SVN revision: 58968
2011-04-27 16:06:11 +00:00
Carsten Haitzler 071c5747bf fix genlist processing items in idle time... idle entere instead :)
SVN revision: 58951
2011-04-27 10:17:26 +00:00
Daniel Juyung Seo 2893d8692e Elementary: Removed trailing whitespaces.
SVN revision: 58944
2011-04-27 02:42:50 +00:00
Daniel Juyung Seo e8a7ed8159 Elementary genlist: Moved signal doxygen to header file.
This is a first action of doxygen movement. All doxygen will be moved to
headers after all.


SVN revision: 58943
2011-04-27 02:41:11 +00:00
Cedric BAIL 90a70f1080 elementary: correctly fix scale on items.
SVN revision: 58831
2011-04-22 17:13:59 +00:00
Cedric BAIL 2ce921ba26 elementary: oops, merge mistake, only one assert header is needed.
SVN revision: 58830
2011-04-22 14:37:43 +00:00
Cedric BAIL b86180520d elementary: fix refactoring and assert.
SVN revision: 58828
2011-04-22 13:20:06 +00:00
Daniel Juyung Seo d49218d308 Elementary genlist: Fixed indentation.
Use space instead of tab.


SVN revision: 58827
2011-04-22 12:22:57 +00:00
Daniel Juyung Seo 71bc736a6f Elementary genlist: Fixed implicit declaration warning.
SVN revision: 58825
2011-04-22 11:54:29 +00:00
Cedric BAIL 97341eaa1f elementary: factorise code.
SVN revision: 58823
2011-04-22 09:56:49 +00:00
Cedric BAIL ac341c9687 elementary: elm_genlist now use edje signal for even/odd state.
NOTE: if you want to implement even/odd in your theme you know
need to listen to both signal :
	- elm,state,odd from elm
	- elm,state,even from elm
If you set data of "stacking_even" to "above" of you item group
it will raise the even object above the odd one (that's the default
behaviour).
You could also explicitly active/deactivate the stacking by setting
data of "stacking" to "no". Default is "yes".



SVN revision: 58822
2011-04-22 09:56:22 +00:00
Daniel Juyung Seo 45507ae70f Elementary genlist: Removed unnecesssary code.
SVN revision: 58794
2011-04-21 12:07:31 +00:00
Daniel Juyung Seo 3edeab7cb8 Elementary genlist: Refactoring for structure packing.
SVN revision: 58793
2011-04-21 12:05:02 +00:00
Daniel Juyung Seo 5229aed40b Elementary genlist: Added genlist mode feature.
I introduce a new concept to genlist.
I named it "genlist mode" after I discussed it with raster.
Using this feature, one can activate/deactivate any mode(effect) to an item.
The mode is defined in genlist item edc.

You can watch a sample video on youtube.
http://www.youtube.com/watch?v=ZPbwpzwwiS8
I created two sample mode: Slide and Rotate.

[Feature Description]
 - One can activate a specific mode to an item.
 - One item is activated at one time while others are deactivated.
 - Genlist handles deactivating other items when one item is activated.
 - There are two different view: before activated, after activated.
 - Genlist creates the second view when the first view is activated. Usually the first view is animated.
 - Genlist destroys the second view when the item finishes deactivating.
 - Creating/Destroying the second view on the fly gives performance enhancement because there is no reason to hold all objects in two views all the time.
 - Mode is defined in genlist edc so one can easily add it more.
 - Mode edc style is separated from normal genlist styles. One can combine any genlist style with mode edc style.

[API]
 - EAPI void elm_genlist_item_mode_set(Elm_Genlist_Item *it, const char *mode_type, Eina_Bool mode_set) EINA_ARG_NONNULL(1, 2);
   Activate/Deactivate a mode to an item.
 - EAPI const char *elm_genlist_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
   Get activated mode name.
 - EAPI const Elm_Genlist_Item *elm_genlist_mode_item_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
   Get activated item.
      
[Structure]
 - Elm_Genlist_Item 
   Added const char *mode_item_style;
	     
[Usage]
 - Set mode style name to genlist item class.
   itc.mode_item_style = "mode";
 - Activated mode to an item whenever you want.
   elm_genlist_item_mode_set(it, "slide", EINA_TRUE);


SVN revision: 58791
2011-04-21 11:47:36 +00:00
Cedric BAIL b4dd37cceb elementary: fix scale on genlist.
SVN revision: 58731
2011-04-19 13:40:25 +00:00
Daniel Juyung Seo f337cf0a31 Elementary genlist: Do not call "realized"/"unrealized" smart
callbacks if those are internal size calculation purpose.


SVN revision: 58660
2011-04-14 11:41:07 +00:00
Daniel Juyung Seo b4968b3572 Elementary genlist: Avoid bringing/showing items in a queue.
Items in a queue were not added to blocks yet. So it's impossible to
calculate its position.


SVN revision: 58612
2011-04-13 01:48:11 +00:00
Daniel Juyung Seo 77450413d7 Elementary src/lib: Removed all trailing whitespaces.
SVN revision: 58492
2011-04-08 14:36:29 +00:00
Daniel Juyung Seo 6983399bc9 Elementary genlist: Removed unnecessary blank lines.
SVN revision: 58459
2011-04-07 16:20:29 +00:00
Daniel Juyung Seo 35928fe87c Elementary genlist: Removed unnecessary 'const'.
SVN revision: 58458
2011-04-07 16:16:01 +00:00
Seunggyun Kim e64bfe7cf1 From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist :
elm_genlist_realized_items_update api added

I added elm_genlist_realized_items_update api.

elm_genlist_item_update api already exists.
But If the application want to change all realized items using this api, 
application always have to check genlist all realized items and call
elm_genlist_item_update api.

This routine is being used at many functions of application.

So I made elm_genlist_realized_items_update api.
This helps application to update easily all realized items at a time.



SVN revision: 58403
2011-04-07 04:35:08 +00:00
Daniel Juyung Seo 13877292d4 Elementary elm_genlist.c: Fixed formatting. Fits to ecrustify.
SVN revision: 58401
2011-04-07 00:58:29 +00:00
Michael BOUCHAUD 48c2737034 elementary: allow to emit a signal to a genlist. Thanks to Mikael Sans
SVN revision: 58391
2011-04-06 14:46:39 +00:00
ChunEon Park 880365feee elementary/genlist - updated signal callback list in doxygen
SVN revision: 58346
2011-04-05 06:01:28 +00:00
ChunEon Park d95b927bed elementary / genlist - updated signal callback list in the doxygen
SVN revision: 58345
2011-04-05 05:53:56 +00:00
Daniel Juyung Seo 9ef7f1f943 Elementary elm_genlist.c: Fixed genlist doxygen.
SVN revision: 58343
2011-04-05 04:30:34 +00:00
ChunEon Park 902a467b7e Elementary / genlist, slider, radio, win toolbar, thumb, toggle, scroller, slideshow, spinner
updated signall callback list in each doxygen 



SVN revision: 58342
2011-04-05 02:04:28 +00:00
Daniel Juyung Seo 16848f903d Elementary: Fixed wrong smart callback signal name. clicked -> clicked,double
Unified double-click smart callback signal name to "clicked,double".
Wrong signal name "clicked" is still there.
But this will be removed soon after fixing all codes in trunk.


SVN revision: 58293
2011-04-03 09:36:47 +00:00
Daniel Juyung Seo de0b570b30 Elementary elm_genlist.c: Fixed formatting.
Used ecrustify for formatting.


SVN revision: 58263
2011-04-01 16:33:58 +00:00
ChunEon Park b880342a74 elementary - entry, genlist, gengrid, image, icon, hover, frame, diskselector, index, layout, label, conform, flip, flipselector - removed white spaces
SVN revision: 58252
2011-04-01 11:32:33 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
Daniel Juyung Seo 0046369651 Elementary elm_genlist.c: Indentation fix by manual.
Ecrustify indentation needs to be fixed for the lines behind comments.


SVN revision: 58191
2011-03-30 01:35:15 +00:00
Daniel Juyung Seo d0fa2c13ad Elementary elm_genlist.c: Code refactoring and indentation fix.
SVN revision: 58178
2011-03-29 12:43:03 +00:00
Daniel Juyung Seo 9f7b0fe79a Elementary elm_genlist.c: Replaced unicode to ascii in genlist doxygen.
SVN revision: 58176
2011-03-29 10:38:51 +00:00
Seunggyun Kim 589a33d94a From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist - group index homogeneous mode
support

Current, genlist using group index can't use homogeneous mode.
So this is patch for support homogeneous mode when the genlist uses
group index.



SVN revision: 58173
2011-03-29 09:28:09 +00:00
Seunggyun Kim c8eb346a08 From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel]  elm_genlist - bug fix about _update_job

I found one bug in _update_job.

Now, when the elm_genlist_item_update is called, all realized items have
been updated.

In _update_job logic, item block is recalculated if it->minw and
itminw is
not same.
But before comparing that, itminw value is saved it->w. 
And it->minw value is saved in _item_realzie function.
Then there are different between it->minw and itminw value.

So the item block is recalculated and _item_block_position is called.

After applying below patch, elm_genlist_item_update api updates only one
item.



SVN revision: 58082
2011-03-25 04:27:47 +00:00
Daniel Juyung Seo af08009a99 Elementary elm_genlist.c: Formatting with ecrustify.
SVN revision: 57963
2011-03-22 07:54:24 +00:00
Daniel Juyung Seo bd65e03b1f Elementary genlist: Changed int calc to Eina_Bool calc.
calc decides whether this call is for calculation only or not.
So it's reasonable to change this to Eina_Bool.


SVN revision: 57851
2011-03-18 15:02:49 +00:00
Daniel Juyung Seo 3be327f239 Elementary genlist: Removed trailing white spaces and fixed indentation.
SVN revision: 57850
2011-03-18 14:29:48 +00:00
Daniel Juyung Seo a6f9c8a8da Elementary elm_genlist.c: Fixed typo. (hilight -> highlight)
SVN revision: 57679
2011-03-10 19:59:10 +00:00
Seunggyun Kim 39fe4f085b From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel]  elm_genlist - bug fix about del callback

I found one bug in elm_genlist_clear.

In case append lots of items in genlist, some items are still in genlist
item queue before it is processed in _item_queue.

At that time, if application calls elm_genlist_item_del api that has item in 
genlist queue and elm_genlist_clear is called at once, "func.del" callback
is called twice.

If application frees some memory in "func.del" callback, It occurs
double free memory problem.

For example, some application has many items. and all items are deleted. but
all items are not proceed in queue. then application is terminated.
In that case, double free problem is occured in application.

So, I fixed elm_genlist_clear code and made a patch.



SVN revision: 57371
2011-02-27 11:11:05 +00:00
Daniel Juyung Seo 4f789d9ade Elementary genlist: Blocked "swipe" and "clicked" events for display only and disabled modes.
SVN revision: 57222
2011-02-21 16:38:24 +00:00
Daniel Juyung Seo 6c27624bc6 Elementary genlist: Fixed doxygen typo.
SVN revision: 57219
2011-02-21 16:09:05 +00:00
Daniel Juyung Seo e53ef8eb25 Elementary genlist: Fixed item display only bug.
SVN revision: 57218
2011-02-21 16:08:23 +00:00
Daniel Juyung Seo 8f5b3f9dfb Elementayr genlist: Fixed item disabled bug.
SVN revision: 57217
2011-02-21 16:02:45 +00:00
Daniel Juyung Seo b658e5d4c6 Elementary: Fixed some NULL pointer reference bug in elementary.
SVN revision: 56985
2011-02-13 13:16:59 +00:00
Daniel Juyung Seo 9802915d85 Elementary genlist: Enabling _show_region_hook to handle the genlist item sub
objects hierarchical region show. Scroller pan geometry is included, as scrolelr
is smart object, not in genlist hierarchy.
Patch By Govindaraju SM <govi.sm@samsung.com>



SVN revision: 56981
2011-02-13 10:28:55 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Daniel Juyung Seo 6aad9f328d Elementary genlist: Fixed typo.
SVN revision: 56816
2011-02-08 16:26:22 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
Tom Hacohen 83cf78820d Elementary getlist: Fix places that weren't using ELM_GENLIST_ITEM_FROM_INLIST. Patch by Daniel Juyung Seo (SeoZ).
SVN revision: 56645
2011-02-02 08:37:33 +00:00
Daniel Juyung Seo cc3d766cfb From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: [E-devel]  [Patch] genlist item cache exception handling patch

I added "no cached item" handling.
In some case, items should not be cached and should not use caches.

For example, 
if there was a state change in item style, it should not be cached
because it remembers the state changes.
And if we use elm_genlist_item_item_class_update() API,
item should not be cached as well.
It needs to be a fresh item style without remembering the state changes.



SVN revision: 56585
2011-01-31 10:33:22 +00:00
Sohyun Kim 21e7457deb From: Sohyun Kim <anna1014.kim@samsung.com>
Subject: [E-devel] [Patch] elm_genlist patch regarding inlist

I made a patch for elm_genlist.
For getting genlist item from inlist, ELM_GENLIST_ITEM_FROM_INLIST macro
should be used.



SVN revision: 56582
2011-01-31 10:17:40 +00:00
Daniel Juyung Seo 867c0a730e From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: [E-devel]  [Patch] Removed dead code in elm_genlist.c

I removed dead macro LONGPRESS_TIMEOUT.
Genlist's longpress_time value is read from
_elm_config->longpress_timeout.




SVN revision: 56581
2011-01-31 10:15:22 +00:00
Daniel Juyung Seo 02c41ce22e From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: [E-devel] [Patch] elm_genlist patch for group index handling
and bug fix

I attached a small patch for elm_genlist.c

1. _item_block_position() fix
This patch realizes group index even there is no sub-items.
There was a request about this.
And it shows that there is no sub-items explicitly.

2. Bug Fix
Null check routine was wrong-placed.
I fixed it.



SVN revision: 56573
2011-01-31 08:30:11 +00:00
Gustavo Lima Chaves 6c9419dbbb We don't want this timer to cause race conditions with item deletion, eh?
SVN revision: 56057
2011-01-12 12:58:26 +00:00
Daniel Juyung Seo 5a8b288fe3 From: Daniel Juyung Seo <seojuyung2@gmail.com>
Subject: [E-devel]  [Patch] elm_genlist doxygen fix and addition.

I fixed some typos of Genlist doxygen and added more explanations.
Please review this and apply this to upstream.



SVN revision: 56017
2011-01-10 05:39:13 +00:00
Nicolas Aguirre 97e00d25bb Delete multi_timer of genlist when object is deleted.
SVN revision: 55992
2011-01-08 15:12:15 +00:00
Seunggyun Kim a01faf4d87 From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: RE: [E-devel] [Patch] Group index support

I added a small patch for Genlist group item clear.
And I changed git->minh to git->h in item_block_position function.
Thanks Govi



SVN revision: 55965
2011-01-07 04:58:37 +00:00
Daniel Juyung Seo 2f8ac1c9b3 From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: RE: [E-devel] [Patch] Group index support

I added a small patch for Genlist Group.
I missed one. Thanks Govi!
Can you review this and apply it to upstream?



SVN revision: 55929
2011-01-06 08:58:28 +00:00
Seunggyun Kim 73b7fe6228 From: Seunggyun Kim <sgyun.kim@samsung.com>
Subject: [E-devel]  [Patch] Group index support

I added group index feature.
This feature support to show item indicates group index.
I attached capture images showing group index.
As you can see attached png images, Group index item includes same group
items.

The group index is shown until every items that have same group index
are scrolled. so group index realize/unrealize is not excuteded in
_item_block_position function.
instead of the function, group index is controlled in _pan_calculate
function.

"Genlist Group" and "Genlist Group Tree" menu is added in
elementary_test. you can test group index operations in elementary_test.

This patch is not support elm_genlist_item_insert_before/after
operation of group index. We are now considering the operations in group index.,

This patch assumes that the previous 2 patches are already applied to upstream.
'[E-devel] [Patch] Tree support for elm_genlist_item_prepend() API.'
'[E-devel] [Patch] Tree support for
elm_genlist_item_insert_before/after() APIs',
So this patch does not include the changes of the previous patch.

I separated this patch.

- 004.elm_genlist.c.patch.txt
    Patch for src/lib/elm_genlist.c
- 005.test_genlist.c.patch.txt
    Patch for src/bin/test_genlist.c 
- 006.genlist.patch.txt
    Patch for data/theme/default.edc
            
And you have to add attached group_index.png file into 'data/themes'
'group_index.png' file is group index background image. 


Daniel Juyung Seo help make test code and refactoring group index code.



SVN revision: 55925
2011-01-06 05:13:11 +00:00
Jeonghyun Yun d2a48ca5a5 From: Jeonghyun Yun <jh0506.yun@samsung.com>
Subject: [E-devel]  [Patch] elm_genlist multi-touch smart callbacks
added

I added 6 multi-touch smart callbacks in elm_genlist, please refer to
below.

"multi,sweep,left" - Genlist has been multi-touch swept left.
"multi,sweep,right" - Genlist has been multi-touch swept right.
"multi,sweep,top" - Genlist has been multi-touch swept top.
"multi,sweep,bottom" - Genlist has been multi-touch swept bottom.
"multi,pinch,out" - Genlist has been multi-touch pinched out.
"multi,pinch,in" - Genlist has been multi-touch pinched in.

I think these smart callbacks are very useful for elm_genlist
multi-touch
effect.

If this patch have any issue, please let me know.



SVN revision: 55878
2011-01-05 10:28:23 +00:00
Daniel Juyung Seo 2c441b83a7 From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: [E-devel] [Patch] Tree support for
elm_genlist_item_insert_before/after() APIs

I added tree feature support to
elm_genlist_item_insert_before/after() APIs.

This patch assumes that the previous patch, '[E-devel] [Patch] Tree
support
for elm_genlist_item_prepend() API.', is already applied to upstream.
So this patch does not include the changes of the previous patch.

This patch includes API break. I added parent parameter.
To support genlist group index feature, it should have a parent
parameter
like elm_genlist_item_append/prepend() do.
Raster already agreed to this API break.
I or my co-worker will introduce genlist group index feature today.
But for the reviewer's convenience, I separated this patch.

- 001.elm_genlist.patch.txt
   Patch for src/lib/elm_genlist.c
- 002.elm_genlist.patch.txt
   Patch for src/lib/Elementary.h.in, src/bin/test_genlist.c
- 003.elm_genlist.patch.txt
   Due to API break, I changes other EFL libraries and applications on SVN. 



SVN revision: 55869
2011-01-05 06:03:43 +00:00
Daniel Juyung Seo c18254de7f From: Daniel Juyung Seo <juyung.seo@samsung.com>
Subject: [E-devel] [Patch] Tree support for elm_genlist_item_prepend()
API.

I added tree feature support to elm_genlist_item_prepend() API.
(elm_genlist_item_append() already supports tree.)
This patch is tested with elementary_test -> Genlist Tree.
Please review this and apply it to upstream.



SVN revision: 55868
2011-01-05 05:59:30 +00:00
Gustavo Lima Chaves 2a5caa915c Self spank?
SVN revision: 55695
2010-12-21 20:47:25 +00:00
Mike Blumenkrantz f821b8a797 Hello,
here is a patch for elm_genlist.

Fixing Eina_Bool in elm_genlist.
0 -> EINA_FALSE
1 -> EINA_TRUE
And fixed return value of _item_block_recalc from int to Eina_Bool.

Anybody can review this and apply it to upstream?

Thanks.
Daniel Juyung Seo (SeoZ)


SVN revision: 55673
2010-12-20 17:03:12 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
Gustavo Lima Chaves 68437b969b Indenting and removing bogus code blocks.
SVN revision: 55364
2010-12-07 19:18:14 +00:00
WooHyun Jung 34a3ad17b9 From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: [E-devel] [PATCH] Some modifications for adapting
elm_longpress_timeout_get().

 I made a patch for adapting elm_longpress_timeout_get() function to all
 winsets, using long press event. 
 
 And I checked one warning in elm_entry.c , so I modified it. 
 


SVN revision: 55339
2010-12-07 05:04:45 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Tiago Rezende Campos Falcao a609cc1b69 Elementary patch for supporting keypad
Author: Jihoon Kim <jihoon48.kim@samsung.com>

SVN revision: 55062
2010-11-29 13:56:33 +00:00
helen b994341879 func _pan_min_get, setting the parameter obj as unused
In this functions, the first parameter obj is not used, adding
__UNUSED__ to them

SVN revision: 55011
2010-11-26 13:35:30 +00:00
Carsten Haitzler e5fe7f8d53 fix anchor item nullification fun.
SVN revision: 54972
2010-11-25 07:07:39 +00:00
Rafael Fonseca f66f9b341e Make it possible to use origin besides (0,0) for pan object.
Although some widgets are modified in this patch there should not be any visible
change. Actually this patch is intended to fix a Gengrid issue (patch following).

In Gengrid when the items were bigger than the grid itself the scroll would not
work correctly when the alignment was other than 0.0. That happened because the
smart scroller object was assuming the pan origin to be (0,0) and doing some
miscalculations based on that.



SVN revision: 54902
2010-11-23 20:20:41 +00:00
Tiago Rezende Campos Falcao 80fc46f893 Add elm genlist scroller policy setter/getter
Author: "Marco Trevisan (Treviño)" <mail at 3v1n0.net>

And add NULL check in elm_list scroller policy getter/setter.

SVN revision: 54797
2010-11-22 15:24:58 +00:00
Carsten Haitzler b8c9cd18b1 for now done select disabled, selected or expanded items in the cache
- resetting is problematic. need an edje reset thing - or actually may
want edje to have a cache like this...



SVN revision: 54744
2010-11-20 11:35:09 +00:00
Carsten Haitzler e10b7bba94 comments--
SVN revision: 54739
2010-11-20 10:59:26 +00:00
Carsten Haitzler 01e71a2649 well... many things - genlist, when it is processign quue, or u
add.del items will try and stick to viewing an acnhor item. it also
handles wrapping text properly now if style has such a thing - a test
style with that is there too (message style) for now - found isasue in
edje with textblock styles - doesnt change on state change. but anyway
- re-wrapping text works.. and it progressively processes the genlist
blocks to re-calc sizes etc. etc. so you dont block and so-on. i5ts
not too shabby. as for that - store has a generic struct type reader
now and is being tested... and get rid of unused var.



SVN revision: 54738
2010-11-20 08:43:43 +00:00
Bruno Dilly a69cc68c57 Add elm_genlist_item_item_class_update
1. elm_genlist_item_item_class_update() API
It is required to change an item's item class on run-time.
Applications want to change a certain item's style and callbacks
dynamically.
This looks ok because changing one item's style does not affect performance,
And this API uses elm_genlist_item_update internally.
API name follows elementary naming conventions.
I've also added test code to elementary_test, Genlist 7.

2. constant to macro.
I replaced 2 constants for max_item_per_block and longpress_timeout to
macros.
This could be used in other places of the code.

3. duplicated assignment.
In elm_genlist_item_append, it->before = 0 is written in if and else.
I put this statement out of if().

4. fix doxygen typo
I fixed elm_genlist_compress_mode_set doxygen.

By: Daniel Juyung Seo <juyung.seo@samsung.com>



SVN revision: 54639
2010-11-17 17:15:28 +00:00
Bruno Dilly 6e22d984ae Document recently added scroll,edge,X signals to elm_genlist
SVN revision: 54394
2010-11-10 03:01:15 +00:00
Bruno Dilly 715dbba805 This small patch allows to get a smart callback when the scrollers in an
elm_list or in an elm_genlist fire the edge,{top,bottom,left,right}
signals, backporting them to the list object.

The new smart callbacks called are:
 · "scroll,edge,top" - the list is scrolled until the top edge
 · "scroll,edge,bottom" - the list is scrolled until the bottom edge
 · "scroll,edge,left" - the list is scrolled until the left edge
 · "scroll,edge,right" - the list is scrolled until the right edge

SVN revision: 3



SVN revision: 54393
2010-11-10 02:48:59 +00:00
Carsten Haitzler 2fae4544b9 oops! item cache... has a bug. didnt actually delete old cb's.. was
edeleting from null! fix!



SVN revision: 54358
2010-11-09 06:28:26 +00:00
Carsten Haitzler 78cc8ef853 idea from seokjae but majorly changed patch - use on_hold as
originally intended for holding actions in this case, and also add
momentum acceleration at the same time.



SVN revision: 54356
2010-11-09 06:07:07 +00:00
Bruno Dilly 093996bb5c elm_genlist longpressed signal documentation
By: 서주영 <juyung.seo@samsung.com>



SVN revision: 54329
2010-11-08 14:07:33 +00:00
Carsten Haitzler fc2ce6239b oops printf--
SVN revision: 54286
2010-11-08 05:38:53 +00:00
Carsten Haitzler 703029e033 fix bug in glenlist 4 - item update. updates item vanishes.
SVN revision: 54284
2010-11-08 04:33:34 +00:00
Carsten Haitzler 84d429884f allo icons to be orphaned
SVN revision: 54218
2010-11-06 07:05:00 +00:00
Carsten Haitzler 5b86ca6447 unrealized callback too.
SVN revision: 54215
2010-11-06 06:14:21 +00:00
Carsten Haitzler a43c1d9ed1 improve genlist item realize/nrealize by almost 2x. (4.7->2.7 sec for
processing of a genlist queue of 20,000 items). added genlist item
cache to do this. yay!. also wil improve runtime scrolling -
realiz/unrealize will be also equivalently faster, so less add/del
overhead for the edje objects in gnelist itself. the icons that apps
swallow in still get deleted and created. this is another matter for
anothr day. ant be solved inside of genlist itself. probably need an
unrealize callback per item and a way to steal your icons back from
the item.



SVN revision: 54214
2010-11-06 06:02:22 +00:00
Carsten Haitzler caaa5fb709 oops - printf--
SVN revision: 54175
2010-11-05 11:02:52 +00:00
Carsten Haitzler 2241b00d79 fix genlist bug - was MEANT to realzie items as they appear - it
realized a whole block. fix.



SVN revision: 54174
2010-11-05 11:02:08 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Tiago Rezende Campos Falcao d7a4b3a6c1 Add checkers to genlist items
SVN revision: 54097
2010-11-02 11:27:07 +00:00
Tiago Rezende Campos Falcao ba89544efc list, genlist and gengrid, if no item is selected
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

If no item is selected, pressing up it will select the first and down
will select the last item

SVN revision: 53924
2010-10-27 14:38:57 +00:00
Tiago Rezende Campos Falcao bc44338213 Deselect all items when press Esc
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

list, genlist, gengrid: Using _deselect_all_item

SVN revision: 53923
2010-10-27 14:38:54 +00:00
Tiago Rezende Campos Falcao dd8f59fc6f Setter isn't const
SVN revision: 53922
2010-10-27 14:38:51 +00:00
Tiago Rezende Campos Falcao 15d0643b10 Getters should received const pointers
Only two getters continue without const:
* elm_theme_get
Need name review, or comportament.

* elm_toolbar_item_menu_get
Need comportament review, but will be fixed by bdilly.

SVN revision: 53874
2010-10-25 14:34:22 +00:00
Gustavo Sverzut Barbieri e763787e26 need to reset cached values when recalculating theme
SVN revision: 53843
2010-10-24 23:48:35 +00:00
Tiago Rezende Campos Falcao 4672a51b0c Remove tests == 0 and != 0
SVN revision: 53787
2010-10-22 21:41:27 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Rafael Fonseca a7790e9dd7 Better way of setting bounce from profile.
Change pointed out by k-s.



SVN revision: 53744
2010-10-21 19:57:43 +00:00
Rafael Fonseca 3eaa37aa3b Use bounce information from profile in the scrollers.
Instead of just setting the bounce property to its scroller, each widget now
first checks in the profile used whether bounce is enabled or not.



SVN revision: 53730
2010-10-21 18:54:47 +00:00
Brian Wang 85faa571ef Delete swipe timer when genlist is cleared
The swipe cancel timer isn't deleted in elm_genlist_clear right now. That will
cause invalid access later on.

Patch by: Brian Wang <brian.wang.0721@gmail.com>



SVN revision: 53589
2010-10-19 02:23:58 +00:00
Lucas De Marchi 473a59fbcd remove ugly chars
\t and trailing whitespaces, stay away from me



SVN revision: 53446
2010-10-15 11:51:15 +00:00
Lucas De Marchi 4261676ee0 swipe event for the elm_genlist
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 53441
2010-10-15 11:24:46 +00:00
Carsten Haitzler 3dca273fc1 never mind- brainfart!
SVN revision: 53440
2010-10-15 10:47:17 +00:00
Christopher Michael 340d0f2a22 Not sure what happened here, but elm_widget_display_only_get does not
exist. Comment out function call until this gets sorted, so @ least
elm will build. Did nobody compile this before commit again ??? :(



SVN revision: 53439
2010-10-15 10:32:29 +00:00
Carsten Haitzler d552f7cc56 display_only... dont allow user to select too.. ala disabled.
SVN revision: 53438
2010-10-15 08:36:57 +00:00
Bruno Dilly fcccd7dd5a Clean elm of null pointers dereferences
SVN revision: 53399
2010-10-14 14:12:26 +00:00
Rafael Fonseca fdcf18e462 Add safety checks to genlist and gengrid.
The insert_(before|after) functions require a relative item so let's check for
it and appropriately return if it is not given.



SVN revision: 53253
2010-10-11 02:09:36 +00:00
Gustavo Sverzut Barbieri 77b6c7a816 bugs--
SVN revision: 53249
2010-10-11 01:03:37 +00:00
Gustavo Sverzut Barbieri ada8ac0f82 gengrid more genlist-like.
use inlist so we don't have to find stuff to operate on.

export more methods, like elm_gengrid_item_next_get(),
elm_gengrid_item_prev_get() and elm_gengrid_first_item_get() and elm_gengrid_last_item_get()... so we don't expose elm_gengrid_items_get().

People using the old elm_gengrid_items_get() should move to
elm_gengrid_first_item_get() and then next variant.



SVN revision: 53248
2010-10-10 23:54:11 +00:00
Gustavo Sverzut Barbieri 93df5252df copy&paste left-overs
SVN revision: 53161
2010-10-07 20:01:42 +00:00
Gustavo Sverzut Barbieri 21f2f1c7c5 genlist's height-for-width mode is in.
I'll commit this to bring some attention to the topic, it is harmless
for people that do not use it, but for users it may be slow on list
resize.



SVN revision: 53160
2010-10-07 19:57:20 +00:00
서주영 49b72fa771 From: 서주영 <juyung.seo@samsung.com>
Subject: [EFL] Small Patch for Genlist : elm_genlist_item_expanded_depth_get() API

I added one API to genlist : elm_genlist_item_expanded_depth_get(). This is 
used to get an item's expanded depth. I tested this with latest SVN revision
53090.

Can you review this patch and apply this to upstream?
 


SVN revision: 53134
2010-10-07 06:45:36 +00:00
Tiago Rezende Campos Falcao c9ee489cd8 Genlist expanding items when press Return or Space
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

See elementary_test Genlist Tree

SVN revision: 53079
2010-10-05 19:10:11 +00:00
Tiago Rezende Campos Falcao 47f13424e2 Genlist with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift + up/down to
multi select.

SVN revision: 53073
2010-10-05 19:09:55 +00:00
Tiago Rezende Campos Falcao bb5b808b76 Genlist with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 52963
2010-10-01 19:03:12 +00:00
Tiago Rezende Campos Falcao 8ca4d18a0b Fixing can_focus to the widgets
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
anchorblock:    can_focus = EINA_TRUE
anchorview:     can_focus = EINA_TRUE
fileselector:   can_focus = EINA_FALSE
hoversel:       can_focus = EINA_FALSE
notepad:        can_focus = EINA_TRUE
scrolled_entry: can_focus = EINA_TRUE
bubble:         can_focus = EINA_FALSE
calendar:       can_focus = EINA_TRUE
clock:          can_focus = EINA_TRUE
conformant:     can_focus = EINA_FALSE
flip:           can_focus = EINA_FALSE
frame:          can_focus = EINA_FALSE
gengrid:        can_focus = EINA_TRUE
genlist:        can_focus = EINA_TRUE
index:          can_focus = EINA_FALSE
list:           can_focus = EINA_TRUE
layout:         can_focus = EINA_FALSE
map:            can_focus = EINA_TRUE
mapbuf:         can_focus = EINA_FALSE
menu:           can_focus = EINA_FALSE
notify:         can_focus = EINA_FALSE
pager:          can_focus = EINA_FALSE
panes:          can_focus = EINA_FALSE
progressbar:    can_focus = EINA_FALSE
photocam:       can_focus = EINA_TRUE
scroller:       can_focus = EINA_TRUE
table:          can_focus = EINA_FALSE
thumb:          can_focus = EINA_FALSE
win:            can_focus = EINA_FALSE

SVN revision: 52888
2010-09-29 12:22:30 +00:00
Carsten Haitzler 3262d51fba fmting
SVN revision: 52872
2010-09-29 01:53:43 +00:00
Carsten Haitzler dc9887471c fix limit horizontal mode for genlist
SVN revision: 52844
2010-09-28 08:46:08 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly 1014a0c5dc Tooltip / Mouse Cursor support for elm_genlist / elm_gengrid items
This patch add tooltip and mouse cursor support for items of genlist
and gengrid and extends the elementary tests for tooltips and
cursor

By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 52805
2010-09-27 18:18:37 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
Lucas De Marchi 6e219c81bf Fix typos
"he->the" where appropriate



SVN revision: 52493
2010-09-20 17:09:13 +00:00
Bruno Dilly 66e512552f Add support on Elm to customized cursors
Widgets can have customized cursors setting it with elm_object_cursor_set.
Widget's item can use elm_X_item_cursor_set to set a different cursor
for each item.
It will work only if HAVE_ELEMENTARY_X for now, but support for themeable
cursors is planned.



SVN revision: 52382
2010-09-17 18:24:10 +00:00
Gustavo Sverzut Barbieri 53cbc881c8 Missing "const void *data" -> "void *data" in the API
SVN revision: 52373
2010-09-17 16:34:11 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +00:00
Carsten Haitzler 8292b172f4 move check up.
SVN revision: 52281
2010-09-15 03:11:30 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +00:00
Gustavo Sverzut Barbieri 494c1a6dca Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.

The public API is basically the same, just the event_info is now NULL
to avoid confusion.

The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.

Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)

Widgets with items that makes sense to have tooltips got extra API:
  * toolbar
  * list
  * gengrid
  * genlist




SVN revision: 52173
2010-09-12 21:05:13 +00:00
Gustavo Sverzut Barbieri 9ed8bf92be Use elm_widget_item common base.
This patch changes all Elm_*_Item to use new infrastructure of
Elm_Widget_Item. This patch is basically a find-and-replace, but even
that was a bit tricky since every code had different names for the
same things, particularly for "view" and "widget" the names ranged
from "o"/"obj" to "base"/"o", quite confusing!

It is worth noting that Genlist and variants that adopted its "item
class" style such as Gengrid and Slideshow already provide a "del()"
callback there and I'm keeping them, however we should reconsider if
it is good to remove them and use elm_widget_item_del_cb_set()
instead. The drawback is that onde would have to set it, while the
other is done automatically when you create the object with the
class. Nonetheless this patch already introduces support to use
elm_widget_item_pre_notify_del(), but it will be void in such code as
nobody ever sets it.

Some new setters and getters were introduced to normalize code... and
they would be required once people write python-bindings for them,
like index and carousel.




SVN revision: 52118
2010-09-10 02:05:45 +00:00
Gustavo Sverzut Barbieri fa16ad1c31 Don't cast Eina_Inlist directly to Elm_Genlist_Item.
The correct way is to use EINA_INLIST_CONTAINER_GET() that allows the
Eina_Inlist structure to be moved around in the structure. Right now
it did work fine, but I want to change the Elm_Genlist_Item later and
this change will be required and it is better to come in a separate
patch.



SVN revision: 52112
2010-09-10 01:04:19 +00:00
Gustavo Sverzut Barbieri 9a2d660eb1 don't report callbacks on NULL object.
From _del_pre_hook() we first delete pan_smart and then call
elm_genlist_clear() to rip off children, however genlist_clear was
always doing evas_object_smart_callback_call() on it.



SVN revision: 52111
2010-09-10 00:28:47 +00:00
Iván Briano 530a645192 Don't drop selection when dragging from selected item
SVN revision: 50841
2010-08-05 18:17:05 +00:00
Lucas De Marchi 3fd31b24a0 Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 54531a69ed FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Carsten Haitzler 20490e70d8 handle clear being called from genlist item callback (eg selected)
SVN revision: 50590
2010-07-28 08:35:34 +00:00
Mike Blumenkrantz 7a15d7458e no return value
SVN revision: 50579
2010-07-28 03:29:48 +00:00
Daniele Ricci d6e7a21e30 From: Daniele Ricci <daniele.athome@gmail.com>
Subject: [E-devel] [PATCH] Genlist longpress timeout

Hello,
I've made a patch that makes the genlist capable of configuring the
timeout for the longpress event.

The patch compiles but I haven't tested it yet. However it's very
simple, it should work out of the box.
Patch is the output of "svn diff" from revision 49809.



SVN revision: 50558
2010-07-27 23:36:27 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Fabiano Fidêncio 7746e8b514 From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.
In Elementary too ...



SVN revision: 49470
2010-06-05 13:12:45 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 6ef532ddae and do the other instances too.
SVN revision: 48668
2010-05-07 13:24:29 +00:00
Carsten Haitzler 83286a1d84 scroller in scroller.... works! well with scrollers for now (elm_scroller).
need to fix up some other instances of use of elm_smart_scroller. it's a 1
liner.



SVN revision: 48667
2010-05-07 13:21:45 +00:00
Tiago Rezende Campos Falcao 58ffdf8254 Fix some bugs in Genlist/Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47823
2010-04-07 21:30:54 +00:00
Tiago Rezende Campos Falcao ffaa68c266 Added get functions in elm_genlist and added external Genlist support. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47784
2010-04-06 14:01:04 +00:00
Carsten Haitzler 2f17c7c339 avoid adding timer to item that is not realized...
SVN revision: 47582
2010-03-30 05:42:56 +00:00
Iván Briano d7517b304a Also kill timer on genlist_clear
SVN revision: 47580
2010-03-30 05:26:14 +00:00
Carsten Haitzler 2fd70ad255 eek 2 longtimer dels.. move to end anyway.
SVN revision: 47579
2010-03-30 05:22:34 +00:00
Carsten Haitzler 2ae3d5f457 long timer del - on item del. why didnt this happen before?
SVN revision: 47578
2010-03-30 05:19:00 +00:00
Iván Briano 9fc0f17a49 Delete long press timer on item deletion
SVN revision: 47576
2010-03-30 05:03:57 +00:00
Carsten Haitzler a22555c551 avoid norender when doing initial queued block - it's limited to 1 block
anyway.



SVN revision: 47550
2010-03-29 02:27:26 +00:00
Carsten Haitzler a9560949f5 fix unrealizesd dragging item issue.
SVN revision: 47502
2010-03-27 04:17:01 +00:00
Iván Briano b01e9fc400 NULL pointer after deleting timer to avoid bitching later
Patch by Brian Wang


SVN revision: 47462
2010-03-26 03:17:05 +00:00