Commit Graph

136 Commits

Author SHA1 Message Date
Gustavo Lima Chaves bbf0a4345e [elm] And now remove deprecated calls usage (WRT
icon/image thing).



SVN revision: 71473
2012-05-28 21:50:11 +00:00
Daniel Juyung Seo e791e88d01 elm test_genlist.c: Merged tree effect test to tree test. You can enable/disable the effect with the radio button.
SVN revision: 70518
2012-04-27 11:08:58 +00:00
Daniel Juyung Seo 4eafb0990e elm test_genlist.c: Use proper test name for genlist decorate item/all modes.
SVN revision: 69895
2012-04-03 12:53:23 +00:00
Daniel Juyung Seo d58e04ad9c elm genlist: Changed internal variables correctly. Patch by Hyoyoung
Chang <hyoyoung@gmail.com>

On Fri, Mar 30, 2012 at 5:17 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
> I talked with seoz. and agreed with previous naming changing is
insufficient.
>
> so changed like this
> "mode_" -> "deco_it_"
> "edit_" -> "deco_all_"
>
> Thanks
>
> On Fri, Mar 30, 2012 at 3:33 PM, Hyoyoung Chang <hyoyoung@gmail.com>
wrote:
>> Dear all,
>>
>> After edit mode naming is changed, some legacy naming is remained.
>> I changed naming to follow API naming changes.
>>
>> "edit_" -> "deco_"
>> and also some explicit edc part names are changed.
>>
>> Some naming are remained as is, I'll fix at next patches.
>>
>> Thanks.
>

SVN revision: 69836
2012-04-02 02:37:05 +00:00
Daniel Juyung Seo 768a4ad35f elm genlist: Reverted Hyoyoung's first patch. He sent another patch
for this change.
Revert "After edit mode naming is changed, some legacy naming is remained."

This reverts commit 5e1aa3c8b0382a0ca471150f4c219cd32dbdbe22.

SVN revision: 69835
2012-04-02 02:36:55 +00:00
Carsten Haitzler 63ae97a5d7 After edit mode naming is changed, some legacy naming is remained.
I changed naming to follow API naming changes.

"edit_" -> "deco_" and also some explicit edc part names are changed.

Some naming are remained as is, I'll fix at next patches.



SVN revision: 69793
2012-03-30 10:34:31 +00:00
Mike Blumenkrantz cf8ab5c674 for the last time: CONFIG.H ALWAYS GETS INCLUDED FIRST. AAAAAAAALLLLLLLLLLLLLLLLLLLLLLLWAAAAAAAAAAAAAAAAAAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYSSSSSSSSSSSSSSSSSSS
SVN revision: 69764
2012-03-29 19:27:13 +00:00
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +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
Daniel Juyung Seo 660dc809a0 elm test_genlist.c: Fixed wrong item class assignment. Anybody who wrote this code must be spanked.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69363
2012-03-15 08:52:19 +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 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 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 f3f5696016 elm genlist: Applied genlist item mode API changes.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68995
2012-03-07 16:29:26 +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 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
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
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 c5c06a40f2 Fix warnings.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68901
2012-03-07 08:38:32 +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
Carsten Haitzler 7a5a301a63 rename a whole host of config-related functions to be elm_config_*
now. yes - no deprecation. no time to do that.



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

SVN revision: 68761
2012-03-06 02:13:28 +00:00
Daniel Juyung Seo 9c3fa866f5 elm: Applied icon/image API changes.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68728
2012-03-05 15:10:59 +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
Daniel Juyung Seo 47d0b62238 elm test_genlist.c: Revised test code.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68625
2012-03-02 12:07:55 +00:00
Sanjeev BA 22fe352509 Scope change for variable.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

SVN revision: 68560
2012-03-01 03:38:45 +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 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
Carsten Haitzler 070d1fb0c8 shush some warnings on 64bit - distracts from real warnings.
SVN revision: 68433
2012-02-25 05:19:59 +00:00
Aharon Hillel cb31e1367d elementary: updated sources to fix warnings.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68336
2012-02-23 13:58:49 +00:00
Aharon Hillel 8ff136be56 elementary: Updated test_genlist.c to do API testing
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68330
2012-02-23 13:58:32 +00:00
Carsten Haitzler e04656c5bf and do gl15 test right with item class/pointers passed to item_append
SVN revision: 68311
2012-02-23 07:47:59 +00:00
Carsten Haitzler d4f750b00e eek - compile again.
SVN revision: 68310
2012-02-23 07:46:05 +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 278458bb59 elm test_genlist.c: Revised codes.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68255
2012-02-22 09:31:37 +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
Daniel Juyung Seo 350c6c3235 elm cache: elm_all_flush() -> elm_cache_all_flush()
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68051
2012-02-17 05:12:56 +00:00
Tom Hacohen 11f6738a6c Elm pager: remove all references from elm's tree.
SVN revision: 68016
2012-02-16 09:26:35 +00:00
ChunEon Park 42ddca9f31 elementary/genlist - deprecated elm_genlist_item_genlist_get()
please use elm_object_item_widget_get() instead.



SVN revision: 67596
2012-01-30 04:37:41 +00:00
ChunEon Park aa280f290c elementary/genlist - reverted 67546.
SVN revision: 67595
2012-01-30 01:08:54 +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 5d0dc2e727 elementary/genlist - sorry, this line should be applied yet.
SVN revision: 67561
2012-01-27 06:47:20 +00:00
ChunEon Park e990948db8 elementary/genlist - changed to use ssize_t type for the 16/32/64 bits compatibility.
SVN revision: 67560
2012-01-27 06:09:01 +00:00
ChunEon Park d4ffe4c8c2 elementary/genlist - deprecated elm_genlist_item_data_set/get
but please use elm_object_item_data_set/get instead.


and what was purpose of this double casting? 

(int)(long) elm_genlist_item_data_get(gli);

these calls are used in some places. 

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



SVN revision: 67546
2012-01-26 07:31:30 +00:00
ChunEon Park da7b8465a3 elementary/genlist - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67370
2012-01-20 05:18:31 +00:00