Commit Graph

206 Commits

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