Commit Graph

301 Commits

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