Commit Graph

94 Commits

Author SHA1 Message Date
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
Daniel Juyung Seo 7976fe8db1 elm: Fixed formatting.
SVN revision: 67038
2012-01-11 03:16:50 +00:00
Gustavo Sverzut Barbieri 9b860dffdd genlist: one more bug, relative insertion of subitems.
relative insertion of sub items does not work either, add test case.



SVN revision: 66951
2012-01-07 02:02:02 +00:00
Gustavo Sverzut Barbieri 302c07c6cc oops, too much printf
SVN revision: 66948
2012-01-06 23:39:06 +00:00
Gustavo Sverzut Barbieri ba72c6d81f show genlist's inserted sort is completely broken.
Sad, but it's unusable if you use it with subitems:

 * insert top-level item sorted mixes with children;

 * insert children item sorted screws the order

This is also true for groups, is holding my changes to enjoy :-(



SVN revision: 66947
2012-01-06 23:38:33 +00:00
Carsten Haitzler f6a3fc40e1 stop using deprecated calls.
SVN revision: 66681
2011-12-30 10:02:19 +00:00
Tom Hacohen c45ce564dc Elm test: Update tests to use the new self-closing textblock tags.
SVN revision: 66026
2011-12-08 12:39:18 +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 c6b3a7b863 elm gen/gengrid/genlist: Applied gen deprecation and gengrid/genlist undeprecation.
SVN revision: 65716
2011-11-30 14:19:29 +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
ChunEon Park f3066c815f elemetary - notify, factory, frame, panel, mapbuf
applied content_set/get/unset. 

do it later for the remainder. 



SVN revision: 64502
2011-10-29 04:32:24 +00:00
Bruno Dilly cee4098e1f Elementary: remove vars set but not used
Remove almost all of them. Remaining:
  - device on _event_history_clear, elm_gesture_layer
  - config has a hand of these cases.
  - ctxpopup var inside macro
  - segment control edje external (it's unfinished)



SVN revision: 64365
2011-10-24 23:43:34 +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
Mike Blumenkrantz 81fb2abd7e deprecate all genlist/gengrid functions related to 64281
SVN revision: 64282
2011-10-22 00:26:21 +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 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 e35721c1ba fix compile with latest changes
SVN revision: 64224
2011-10-21 02:43:08 +00:00
Mike Blumenkrantz 82df90462a remove all use of elm_toggle_ api
SVN revision: 64207
2011-10-20 21:27:15 +00:00
Mike Blumenkrantz 2f3ec838ef yeah, using vague numbers instead of clearly named enum values! best choice!
no wait...that's the OPPOSITE of the best choice.


SVN revision: 63706
2011-09-30 03:44:46 +00:00
Daniel Juyung Seo d59325d285 elm test_genlist.c: I introduce "Genlist Textblock" test case into
elementary_test. This will help test textblock with genlist. Enjoy it!


SVN revision: 63291
2011-09-08 10:21:04 +00:00
Jérémy Zurcher a0366f0ef1 From: Jérémy Zurcher <jeremy@asynk.ch>
Subject: [E-devel] patch : eina_prefix + elementary_test

please find attached a small patch for eina_prefix

it prevent segfault when for instance
no elm_app_compile_*_dir_set is called prior to elm_app_info_set

and another one for elementary/src/bin/test*.c which tends to replace
usage of PACKAGE_DATA_DIR with elm_app_data_dir_get



SVN revision: 62796
2011-08-25 10:01:59 +00:00
Daniel Juyung Seo d473e343eb elm test: Refactoring. Changed 1 to EINA_TRUE for Eina_Bool parameter of elm_win_autodel_set() API.
SVN revision: 61695
2011-07-25 14:22:19 +00:00
Tom Hacohen 6979f9bfae Elm radio: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60987
2011-07-04 10:13:46 +00:00
Tom Hacohen 8df2bb821d Elm frame: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60806
2011-06-29 09:11:48 +00:00
Tom Hacohen f0b79d1347 Elm toggle: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60803
2011-06-29 08:57:43 +00:00
Tom Hacohen 36be2846c9 Elm button: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60800
2011-06-29 07:11:54 +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
Carsten Haitzler c44f45485f big move forward. scrolled entry and entry merge into entry. entry now
can be scrollable or not. scrolled entry now just calls entry calls
and is marked as dperecated to be killed off in the future so no need
to document it etc. edje external also goes.



SVN revision: 60438
2011-06-17 09:44:31 +00:00
Daniel Juyung Seo 4cc3d06442 elm genlist: Fixed indentation.
SVN revision: 60323
2011-06-15 04:58:14 +00:00
Carsten Haitzler 1e062e2b30 use width for height mode in genlist 4
SVN revision: 60175
2011-06-10 06:18:56 +00:00
Daniel Juyung Seo 5f1d8a6201 Elementary test_genlist.c: Added evas_object_event_propagate_set() for check object. And changed parameter 0 to EINA_FALSE for Eina_Bool type.
SVN revision: 60093
2011-06-08 16:58:08 +00:00
Daniel Juyung Seo 6206f5f4a4 Elementary genlist: Code refactoring.
SVN revision: 59942
2011-06-04 01:52:08 +00:00
Carsten Haitzler a02679b95f dont need to show actuallyu returning objects - genlist will do that
for u when it gets them.



SVN revision: 59891
2011-06-02 07:07:22 +00:00
Daniel Juyung Seo 205abde67d Elementary genlist: Fixed genlist reorder.
1. Added reorder APIs to Elementary.h.in header.
2. Fixed wrong declaration of moved callback.
3. Fixed warnings.

And I think 'moved' function needs to be changed to smartcallback.
This is not related to item class structure.


SVN revision: 59885
2011-06-02 04:41:04 +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
Daniel Juyung Seo 04b491da11 Elementary: Changed homogenous to homogeneous.
Deprecated existing APIs but not removed them. They will be removed
sometime later or when elm 1.0 is released. And added new APIs.
I fixed box, table and toolbar. I will modify other codes in trunk soon.


SVN revision: 59160
2011-05-04 04:53:39 +00:00
Carsten Haitzler a45f22567d back to 2000 items in test.
SVN revision: 58952
2011-04-27 10:18:08 +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 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
Daniel Juyung Seo 7023c0006d Elementary bin: Use EINA_TRUE/EINA_FALSE for Eina_Bool parameters.
SVN revision: 58688
2011-04-15 11:44:05 +00:00
Daniel Juyung Seo aff74489cc Elementary: Applied "clicked" signal name change for gengrid/list/genlist.
SVN revision: 58596
2011-04-12 17:29:59 +00:00
Daniel Juyung Seo d6f2e4c45f Elementary test_genlist.c: Removed trailing white spaces.
SVN revision: 58164
2011-03-29 00:51:56 +00:00