Commit Graph

274 Commits

Author SHA1 Message Date
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