Commit Graph

984 Commits

Author SHA1 Message Date
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
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Rafael Fonseca a7790e9dd7 Better way of setting bounce from profile.
Change pointed out by k-s.



SVN revision: 53744
2010-10-21 19:57:43 +00:00
Rafael Fonseca 3eaa37aa3b Use bounce information from profile in the scrollers.
Instead of just setting the bounce property to its scroller, each widget now
first checks in the profile used whether bounce is enabled or not.



SVN revision: 53730
2010-10-21 18:54:47 +00:00
Brian Wang 85faa571ef Delete swipe timer when genlist is cleared
The swipe cancel timer isn't deleted in elm_genlist_clear right now. That will
cause invalid access later on.

Patch by: Brian Wang <brian.wang.0721@gmail.com>



SVN revision: 53589
2010-10-19 02:23:58 +00:00
Lucas De Marchi 473a59fbcd remove ugly chars
\t and trailing whitespaces, stay away from me



SVN revision: 53446
2010-10-15 11:51:15 +00:00
Lucas De Marchi 4261676ee0 swipe event for the elm_genlist
By: ceolin <flavio.ceolin@profusion.mobi>



SVN revision: 53441
2010-10-15 11:24:46 +00:00
Carsten Haitzler 3dca273fc1 never mind- brainfart!
SVN revision: 53440
2010-10-15 10:47:17 +00:00
Christopher Michael 340d0f2a22 Not sure what happened here, but elm_widget_display_only_get does not
exist. Comment out function call until this gets sorted, so @ least
elm will build. Did nobody compile this before commit again ??? :(



SVN revision: 53439
2010-10-15 10:32:29 +00:00
Carsten Haitzler d552f7cc56 display_only... dont allow user to select too.. ala disabled.
SVN revision: 53438
2010-10-15 08:36:57 +00:00
Bruno Dilly fcccd7dd5a Clean elm of null pointers dereferences
SVN revision: 53399
2010-10-14 14:12:26 +00:00
Rafael Fonseca fdcf18e462 Add safety checks to genlist and gengrid.
The insert_(before|after) functions require a relative item so let's check for
it and appropriately return if it is not given.



SVN revision: 53253
2010-10-11 02:09:36 +00:00
Gustavo Sverzut Barbieri 77b6c7a816 bugs--
SVN revision: 53249
2010-10-11 01:03:37 +00:00
Gustavo Sverzut Barbieri ada8ac0f82 gengrid more genlist-like.
use inlist so we don't have to find stuff to operate on.

export more methods, like elm_gengrid_item_next_get(),
elm_gengrid_item_prev_get() and elm_gengrid_first_item_get() and elm_gengrid_last_item_get()... so we don't expose elm_gengrid_items_get().

People using the old elm_gengrid_items_get() should move to
elm_gengrid_first_item_get() and then next variant.



SVN revision: 53248
2010-10-10 23:54:11 +00:00
Gustavo Sverzut Barbieri 93df5252df copy&paste left-overs
SVN revision: 53161
2010-10-07 20:01:42 +00:00
Gustavo Sverzut Barbieri 21f2f1c7c5 genlist's height-for-width mode is in.
I'll commit this to bring some attention to the topic, it is harmless
for people that do not use it, but for users it may be slow on list
resize.



SVN revision: 53160
2010-10-07 19:57:20 +00:00
서주영 49b72fa771 From: 서주영 <juyung.seo@samsung.com>
Subject: [EFL] Small Patch for Genlist : elm_genlist_item_expanded_depth_get() API

I added one API to genlist : elm_genlist_item_expanded_depth_get(). This is 
used to get an item's expanded depth. I tested this with latest SVN revision
53090.

Can you review this patch and apply this to upstream?
 


SVN revision: 53134
2010-10-07 06:45:36 +00:00
Tiago Rezende Campos Falcao c9ee489cd8 Genlist expanding items when press Return or Space
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

See elementary_test Genlist Tree

SVN revision: 53079
2010-10-05 19:10:11 +00:00
Tiago Rezende Campos Falcao 47f13424e2 Genlist with navigation between items
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Up and Down to navigate without multi selection. Hold shift + up/down to
multi select.

SVN revision: 53073
2010-10-05 19:09:55 +00:00
Tiago Rezende Campos Falcao bb5b808b76 Genlist with keyboard scroller
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

Keys:
up
kp_up
down
kp_down
left
kp_left
right
kp_right
Page Up
Page Down
Home
End

p.s.: kp = key pad

SVN revision: 52963
2010-10-01 19:03:12 +00:00
Tiago Rezende Campos Falcao 8ca4d18a0b Fixing can_focus to the widgets
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
anchorblock:    can_focus = EINA_TRUE
anchorview:     can_focus = EINA_TRUE
fileselector:   can_focus = EINA_FALSE
hoversel:       can_focus = EINA_FALSE
notepad:        can_focus = EINA_TRUE
scrolled_entry: can_focus = EINA_TRUE
bubble:         can_focus = EINA_FALSE
calendar:       can_focus = EINA_TRUE
clock:          can_focus = EINA_TRUE
conformant:     can_focus = EINA_FALSE
flip:           can_focus = EINA_FALSE
frame:          can_focus = EINA_FALSE
gengrid:        can_focus = EINA_TRUE
genlist:        can_focus = EINA_TRUE
index:          can_focus = EINA_FALSE
list:           can_focus = EINA_TRUE
layout:         can_focus = EINA_FALSE
map:            can_focus = EINA_TRUE
mapbuf:         can_focus = EINA_FALSE
menu:           can_focus = EINA_FALSE
notify:         can_focus = EINA_FALSE
pager:          can_focus = EINA_FALSE
panes:          can_focus = EINA_FALSE
progressbar:    can_focus = EINA_FALSE
photocam:       can_focus = EINA_TRUE
scroller:       can_focus = EINA_TRUE
table:          can_focus = EINA_FALSE
thumb:          can_focus = EINA_FALSE
win:            can_focus = EINA_FALSE

SVN revision: 52888
2010-09-29 12:22:30 +00:00
Carsten Haitzler 3262d51fba fmting
SVN revision: 52872
2010-09-29 01:53:43 +00:00
Carsten Haitzler dc9887471c fix limit horizontal mode for genlist
SVN revision: 52844
2010-09-28 08:46:08 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly 1014a0c5dc Tooltip / Mouse Cursor support for elm_genlist / elm_gengrid items
This patch add tooltip and mouse cursor support for items of genlist
and gengrid and extends the elementary tests for tooltips and
cursor

By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 52805
2010-09-27 18:18:37 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
Lucas De Marchi 6e219c81bf Fix typos
"he->the" where appropriate



SVN revision: 52493
2010-09-20 17:09:13 +00:00
Bruno Dilly 66e512552f Add support on Elm to customized cursors
Widgets can have customized cursors setting it with elm_object_cursor_set.
Widget's item can use elm_X_item_cursor_set to set a different cursor
for each item.
It will work only if HAVE_ELEMENTARY_X for now, but support for themeable
cursors is planned.



SVN revision: 52382
2010-09-17 18:24:10 +00:00
Gustavo Sverzut Barbieri 53cbc881c8 Missing "const void *data" -> "void *data" in the API
SVN revision: 52373
2010-09-17 16:34:11 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +00:00
Carsten Haitzler 8292b172f4 move check up.
SVN revision: 52281
2010-09-15 03:11:30 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +00:00
Gustavo Sverzut Barbieri 494c1a6dca Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.

The public API is basically the same, just the event_info is now NULL
to avoid confusion.

The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.

Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)

Widgets with items that makes sense to have tooltips got extra API:
  * toolbar
  * list
  * gengrid
  * genlist




SVN revision: 52173
2010-09-12 21:05:13 +00:00
Gustavo Sverzut Barbieri 9ed8bf92be Use elm_widget_item common base.
This patch changes all Elm_*_Item to use new infrastructure of
Elm_Widget_Item. This patch is basically a find-and-replace, but even
that was a bit tricky since every code had different names for the
same things, particularly for "view" and "widget" the names ranged
from "o"/"obj" to "base"/"o", quite confusing!

It is worth noting that Genlist and variants that adopted its "item
class" style such as Gengrid and Slideshow already provide a "del()"
callback there and I'm keeping them, however we should reconsider if
it is good to remove them and use elm_widget_item_del_cb_set()
instead. The drawback is that onde would have to set it, while the
other is done automatically when you create the object with the
class. Nonetheless this patch already introduces support to use
elm_widget_item_pre_notify_del(), but it will be void in such code as
nobody ever sets it.

Some new setters and getters were introduced to normalize code... and
they would be required once people write python-bindings for them,
like index and carousel.




SVN revision: 52118
2010-09-10 02:05:45 +00:00
Gustavo Sverzut Barbieri fa16ad1c31 Don't cast Eina_Inlist directly to Elm_Genlist_Item.
The correct way is to use EINA_INLIST_CONTAINER_GET() that allows the
Eina_Inlist structure to be moved around in the structure. Right now
it did work fine, but I want to change the Elm_Genlist_Item later and
this change will be required and it is better to come in a separate
patch.



SVN revision: 52112
2010-09-10 01:04:19 +00:00
Gustavo Sverzut Barbieri 9a2d660eb1 don't report callbacks on NULL object.
From _del_pre_hook() we first delete pan_smart and then call
elm_genlist_clear() to rip off children, however genlist_clear was
always doing evas_object_smart_callback_call() on it.



SVN revision: 52111
2010-09-10 00:28:47 +00:00
Iván Briano 530a645192 Don't drop selection when dragging from selected item
SVN revision: 50841
2010-08-05 18:17:05 +00:00
Lucas De Marchi 3fd31b24a0 Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 54531a69ed FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Carsten Haitzler 20490e70d8 handle clear being called from genlist item callback (eg selected)
SVN revision: 50590
2010-07-28 08:35:34 +00:00
Mike Blumenkrantz 7a15d7458e no return value
SVN revision: 50579
2010-07-28 03:29:48 +00:00
Daniele Ricci d6e7a21e30 From: Daniele Ricci <daniele.athome@gmail.com>
Subject: [E-devel] [PATCH] Genlist longpress timeout

Hello,
I've made a patch that makes the genlist capable of configuring the
timeout for the longpress event.

The patch compiles but I haven't tested it yet. However it's very
simple, it should work out of the box.
Patch is the output of "svn diff" from revision 49809.



SVN revision: 50558
2010-07-27 23:36:27 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Fabiano Fidêncio 7746e8b514 From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.
In Elementary too ...



SVN revision: 49470
2010-06-05 13:12:45 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 6ef532ddae and do the other instances too.
SVN revision: 48668
2010-05-07 13:24:29 +00:00
Carsten Haitzler 83286a1d84 scroller in scroller.... works! well with scrollers for now (elm_scroller).
need to fix up some other instances of use of elm_smart_scroller. it's a 1
liner.



SVN revision: 48667
2010-05-07 13:21:45 +00:00
Tiago Rezende Campos Falcao 58ffdf8254 Fix some bugs in Genlist/Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47823
2010-04-07 21:30:54 +00:00
Tiago Rezende Campos Falcao ffaa68c266 Added get functions in elm_genlist and added external Genlist support. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47784
2010-04-06 14:01:04 +00:00
Carsten Haitzler 2f17c7c339 avoid adding timer to item that is not realized...
SVN revision: 47582
2010-03-30 05:42:56 +00:00
Iván Briano d7517b304a Also kill timer on genlist_clear
SVN revision: 47580
2010-03-30 05:26:14 +00:00
Carsten Haitzler 2fd70ad255 eek 2 longtimer dels.. move to end anyway.
SVN revision: 47579
2010-03-30 05:22:34 +00:00
Carsten Haitzler 2ae3d5f457 long timer del - on item del. why didnt this happen before?
SVN revision: 47578
2010-03-30 05:19:00 +00:00
Iván Briano 9fc0f17a49 Delete long press timer on item deletion
SVN revision: 47576
2010-03-30 05:03:57 +00:00
Carsten Haitzler a22555c551 avoid norender when doing initial queued block - it's limited to 1 block
anyway.



SVN revision: 47550
2010-03-29 02:27:26 +00:00
Carsten Haitzler a9560949f5 fix unrealizesd dragging item issue.
SVN revision: 47502
2010-03-27 04:17:01 +00:00
Iván Briano b01e9fc400 NULL pointer after deleting timer to avoid bitching later
Patch by Brian Wang


SVN revision: 47462
2010-03-26 03:17:05 +00:00
Carsten Haitzler 9ed7a42108 when adding items to genlist - if there is no block yet, or a block that is
incomplete - always calc a block worth immediately.



SVN revision: 47416
2010-03-24 10:00:50 +00:00
Carsten Haitzler 29e61e39cb longpress <- for dan!
SVN revision: 47414
2010-03-24 08:54:59 +00:00
Carsten Haitzler 9705f7dbe1 (remove useless edje_object_scale_sets's on objects that are not edje objects)
but more importantly - fix list to actually have a specific theme/base for it



SVN revision: 47381
2010-03-23 04:46:53 +00:00
Gustavo Sverzut Barbieri abe1f4275a Typedefs to help bindings, type less and make things easier to identify.
SVN revision: 47292
2010-03-16 15:31:38 +00:00
Carsten Haitzler 5ceae54321 fix more runtime wornings... added ELM_ERROR_ABORT! :)
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Carsten Haitzler 27a1fc9a9c more warning--
SVN revision: 47099
2010-03-10 06:46:28 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler 6e5836950a warning-- more
SVN revision: 47078
2010-03-09 14:42:41 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Carsten Haitzler 25d1ec7d80 fix genlist delete item in callback bug
SVN revision: 46781
2010-03-02 08:47:40 +00:00
Christopher Michael 69cb69d24b Fix doxy typo.
SVN revision: 46704
2010-03-01 16:20:39 +00:00
Carsten Haitzler 6a7271084d slight change in drag events vs scrolling on_hold to fix small "distance
race" issue.



SVN revision: 46505
2010-02-26 06:30:17 +00:00
Carsten Haitzler a9295a655d code+comments.
SVN revision: 45891
2010-02-05 06:14:50 +00:00
Carsten Haitzler fb06522eb4 allow genlist items to be "display only" - eg used as spacers or state
indicators, section markers etc.



SVN revision: 45862
2010-02-04 08:06:41 +00:00
Carsten Haitzler cb8c22cde4 genlist - get realized items call! add!
SVN revision: 45543
2010-01-25 05:54:31 +00:00
Carsten Haitzler dd7ed79b3c add test for floating objects (they can slide in etc. andnot be already
packed inside the view) and... fix issues with pan based objects clipping to
vieport etc. etc.



SVN revision: 45542
2010-01-25 03:53:36 +00:00
Carsten Haitzler 591957a330 1. brian wang's patch for setting item count in a block, and homogenous
genlist mode, button repeat stuff. thanks very muchly

also - i added calc idler self-timer check. if it spends more than 1
frametime (time between frames - this is what it deems as "too much") on
calculation, then it breaks the idle and goes back to mainloop. could make it
half a frametime - but this will do for now.



SVN revision: 45479
2010-01-23 09:07:20 +00:00
Christopher Michael 93edc1c626 Reduce elm noise (add #if 0 around printf).
SVN revision: 45470
2010-01-22 23:04:01 +00:00
Carsten Haitzler 419472ac52 oops - back to 4. should make this configurable. but solutions is in comments
atm



SVN revision: 45441
2010-01-22 12:38:42 +00:00
Carsten Haitzler 9427ae2682 move scroll back to event handling - test
SVN revision: 45439
2010-01-22 12:02:39 +00:00
Carsten Haitzler b400d33dfd fix longpress!
SVN revision: 45319
2010-01-19 06:54:27 +00:00
Carsten Haitzler 5da6adb481 use specific scroller edje groups for list and genlist - add aliases.
SVN revision: 45278
2010-01-18 06:56:06 +00:00
Carsten Haitzler 4dd7f4e799 fix build break!
SVN revision: 45214
2010-01-16 12:35:31 +00:00
Carsten Haitzler fe9ba3dd4c add more bounce controls
SVN revision: 44533
2009-12-18 02:30:01 +00:00
Carsten Haitzler a86f0b9ac6 flip widget! first go at it and still primitive. will expand! for flipping
between 2 bits of content (front and back).



SVN revision: 44352
2009-12-11 08:12:58 +00:00
Carsten Haitzler 074b91c5fe Treviño's patch for genlist compress mode - from tac bug #308
SVN revision: 43766
2009-11-18 03:09:04 +00:00
Gustavo Sverzut Barbieri 24d6072ecc fix valgrind reported problems.
GENERAL WARNING:

do NOT delete sub-objects (elm_widget_sub_object_add) or resize object
(elm_widget_resize_object_set) from del_hook()!! These are deleted
automatically before this function is called, thus you might double
free.

Fixed all occurrences I've spotted with valgrind. Please do not add more :-)




SVN revision: 43682
2009-11-13 22:22:05 +00:00
Davide Andreoli 2ddaccbe38 * Genlist: delete the long_press timer on _item_unrealize(), not on _item_del().
SVN revision: 43448
2009-11-04 11:09:02 +00:00
Jonathan Atton 947f7ffd37 Elm genlist: add elm_genlist_item_middle_bring_in/show(item)). Elm slideshow : fix a problem with the timer
SVN revision: 43087
2009-10-14 21:57:46 +00:00
Christopher Michael 7f83060158 Use ELM_NEW macro
SVN revision: 43052
2009-10-13 17:11:00 +00:00
Carsten Haitzler 0fe15aa512 remove commented out code.
SVN revision: 43009
2009-10-11 04:32:09 +00:00
Carsten Haitzler 08d2f2b3f7 fix scrolling in genlist and photocam
SVN revision: 43007
2009-10-11 03:10:36 +00:00
Carsten Haitzler de95cab53e if item is being dragged dont unrealize it + block. will get unrealised next
scroll.



SVN revision: 42942
2009-10-07 14:02:55 +00:00
Christopher Michael 2093e12af3 Formatting.
SVN revision: 42724
2009-09-26 18:24:06 +00:00
Jonathan Atton 82a9eb4bc5 elementary, new widget: slideshow. See elementary_test
SVN revision: 42660
2009-09-23 22:56:47 +00:00
Carsten Haitzler c49e5d8800 fix genlist tree insert bug. (actually not treee bug - general one)
SVN revision: 42636
2009-09-23 05:48:59 +00:00
Carsten Haitzler d3ec3dbaaf genlist - get item at xy. handy for dnd. skips blocks that dont intersect
SVN revision: 42635
2009-09-23 03:22:07 +00:00
Carsten Haitzler aaa40f1ccd use itb - it not set yet
SVN revision: 42620
2009-09-22 14:23:29 +00:00
Iván Briano e8bf64d566 Improve documentation for Evas, Ecore, Edje and Elementary.
Work by:
 - Thiago R. Masaki (mostly)
 - Fabiano Fidencio
 - Gustavo Lima


SVN revision: 42553
2009-09-17 22:39:18 +00:00
Carsten Haitzler 7f46b38388 more efficient update
SVN revision: 42479
2009-09-14 02:53:03 +00:00
Carsten Haitzler 00a77eb122 fix realize callback
SVN revision: 42478
2009-09-14 01:17:16 +00:00
Carsten Haitzler b08873a42d 1. box has clear.
2. photocam widget++



SVN revision: 42405
2009-09-11 13:43:02 +00:00
Carsten Haitzler 51e1595773 index all happy worky fun fun!
SVN revision: 42379
2009-09-10 09:25:11 +00:00
Carsten Haitzler 046d4dfa7f test callbacks and fix select on drag
SVN revision: 42344
2009-09-08 06:35:14 +00:00
Carsten Haitzler 2f9bbcae45 fix drag start and ad drag callback too
SVN revision: 42343
2009-09-08 06:22:11 +00:00
Carsten Haitzler 3167305fa7 fix scroll freeze and propagate to built-in scrollers. also genlist now knows
about dragging items. callbacks for that.



SVN revision: 42342
2009-09-08 06:20:32 +00:00
Carsten Haitzler e7c398372a add realized call to genlist + call to get item object
SVN revision: 42335
2009-09-08 02:09:13 +00:00
Christopher Michael 34b0e68a3b Fix some formatting. Cleanup some snprintf's.
SVN revision: 42247
2009-09-04 15:39:30 +00:00
Carsten Haitzler e173cf51a2 fix genlist item show!
SVN revision: 42233
2009-09-04 03:55:08 +00:00
Carsten Haitzler 5781ad4a3e 1. add scroller test
2. add pagination concept to scroller (only scroll by pages)
3. add longpress callback for list + genlist
4. scroller docs and some empty api calls. 



SVN revision: 42147
2009-09-01 10:42:52 +00:00
Davide Andreoli 9bd9876fbc * miss doxy for new API
SVN revision: 41793
2009-08-15 18:24:58 +00:00
Davide Andreoli e0992b5ac8 * Genlist: Add a new method to set the data of an item.
SVN revision: 41792
2009-08-15 18:20:28 +00:00
Gustavo Sverzut Barbieri d65e18c875 data_get returns void*, not const void*
It is the convention for generic user data to get as const and return
as not const to avoid useless casts all around.



SVN revision: 41741
2009-08-13 15:15:18 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Cedric BAIL 29adfe9fc8 * elementary: Full switch to Eina data type.
SVN revision: 41081
2009-06-17 15:35:19 +00:00
Carsten Haitzler d7a3bd786d more... DOCS!
SVN revision: 40868
2009-05-31 21:59:31 +00:00
Carsten Haitzler a4bf81cef2 elementary doc
SVN revision: 40781
2009-05-22 21:01:46 +00:00
Carsten Haitzler 9d7db82782 documentation... more! build! look vaguely ok
SVN revision: 40734
2009-05-19 09:29:20 +00:00
Carsten Haitzler b68636289b hmm more select issues - put in hilights
SVN revision: 40724
2009-05-18 14:14:33 +00:00
Carsten Haitzler f2a75b0f05 1. configure.ac finally
2. add docsbuilding infra
3. fix list/genlist on code-based select.



SVN revision: 40667
2009-05-15 11:45:14 +00:00
Carsten Haitzler 26b4f340b6 actually give widgets type name strings and set parent by default
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler 0523f39faa make lists handle drag+select logic better
SVN revision: 40598
2009-05-12 10:16:49 +00:00
Carsten Haitzler 84e589e5ed genlis - create and del as items come into view.
SVN revision: 40588
2009-05-11 13:10:19 +00:00
Carsten Haitzler 5c7e2ec144 1. fix box as it didnt hide clipper when it gets empty
2. add bouncing at ends for scroller and config for it
3. fix quicklaunch to be cserver-freidnly thanks to its fork tricks
4. add signals to scroller when scrolling and hitting edges
5. pants.



SVN revision: 40549
2009-05-08 11:27:32 +00:00
Carsten Haitzler 6eeaf7eb1a 1.fix always_select mode
2. fix double_label style tohave selected text color for 2nd txt field
3. test always select and multi-select



SVN revision: 40332
2009-04-23 17:29:07 +00:00
Carsten Haitzler af12fa8bb2 a bunch of adds and improvements around gnelist
SVN revision: 40323
2009-04-23 08:51:07 +00:00
Carsten Haitzler 73f3de55f4 patch from victor to make styles generic - not all widgets support them
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.



SVN revision: 40317
2009-04-23 04:03:27 +00:00
Carsten Haitzler 5eb759a0e9 and fix the updates for vala
SVN revision: 39487
2009-03-15 04:13:08 +00:00
Carsten Haitzler e730cb0364 indent tree items... not perfect... but good
add rotation api call.



SVN revision: 39480
2009-03-14 18:03:19 +00:00
Carsten Haitzler 6e0c99e69f fixes for some bugs i found, tree ability in genlist (basic not fully done
visually yet), and some win util calls added.



SVN revision: 39456
2009-03-13 05:50:38 +00:00
Jaime Thomas 3e1edbcf4f Match the other changes.
SVN revision: 39221
2009-02-25 23:17:01 +00:00
Gustavo Sverzut Barbieri d7829ccd3c use EINA_LIST_FREE()
This macro helps releasing a list of elements in efficient and safe way.



SVN revision: 39217
2009-02-25 20:18:38 +00:00
Gustavo Sverzut Barbieri d1d91b99df Move eina list iterations to EINA_LIST_FOREACH variants.
By using these macros we can avoid errors and if we need to change
things, we do just in the macro definitions.



SVN revision: 39216
2009-02-25 19:50:45 +00:00
Gustavo Sverzut Barbieri 47c6288efc Safer use of Eina_Inlist.
Avoid doing casts on it, use EINA_INLIST to define the struct and
EINA_INLIST_GET() to access members, this way if you misused the types
compiler will be able to warn you.

Move most Eina_Inlist loops to EINA_INLIST_FOREACH(), this way it is
more clear and if we want to change something we just change the
macro.

Needs new code in Eina!!! (fix EINA_INLIST_GET() macro)



SVN revision: 39209
2009-02-25 16:22:29 +00:00
Gustavo Sverzut Barbieri 2e62b41b1b major warning + cast cleanup.
* casts: remove internal "Item" and use "Elm_XXXX_Item" for carousel,
   list, genlist and toolbar.

 * warning: fix const on lots of getter apis, the object should be
   const, and not the return! Of course lists that are returned and
   are not supposed to be modified are still returned as const, but
   maybe we should return iterators!

 * list/genlist: fix selected_set() to be a bit (marginally)
   faster. Do not operate if state has not changed and if it did
   changed we're sure we're not in the object->selected list.




SVN revision: 39208
2009-02-25 15:54:26 +00:00
Carsten Haitzler 017cc96515 fix next/prev bug.
SVN revision: 39186
2009-02-25 00:41:57 +00:00
Carsten Haitzler 31c76226ea and fix some genlist bugs i spotted!
SVN revision: 39177
2009-02-24 13:08:21 +00:00
Carsten Haitzler 8af44b2483 and back to 10k test, and only insert 8 items from the queue at a time.
SVN revision: 39089
2009-02-19 06:29:07 +00:00
Carsten Haitzler 20ab3d1d84 printf--
SVN revision: 39088
2009-02-19 06:02:56 +00:00
Carsten Haitzler 78b673c9cb fix some insertion/append/prepend stuff. wasn't working. hunted bug. now
insert queue is slow. need to check.



SVN revision: 39086
2009-02-19 04:37:06 +00:00
Carsten Haitzler f9fb1d3f0f make scroller stay in the exact pixel pos when resizign - unless at the end.
SVN revision: 39080
2009-02-18 13:42:56 +00:00
Carsten Haitzler cab8dc9942 handle dynamic theme and scale changes in genlist
SVN revision: 39079
2009-02-18 13:13:10 +00:00
Carsten Haitzler 145967f4ee insert and prepend calls work... at least in my tests.
SVN revision: 39077
2009-02-18 12:41:45 +00:00
Carsten Haitzler f5ae19e69f genlist items can enable/disable
SVN revision: 39074
2009-02-18 04:51:22 +00:00
Carsten Haitzler 385fcff490 add clear call. fix free to have less leaks
SVN revision: 39073
2009-02-18 04:27:49 +00:00
Carsten Haitzler 0c40d9a0a8 fix up some dynamic add/del and showing code.
SVN revision: 39072
2009-02-18 04:18:25 +00:00
Carsten Haitzler d6c75b5cad more genlist work.
SVN revision: 39059
2009-02-17 14:39:08 +00:00
Carsten Haitzler 00f0b4c9cc more genlist testing - deletign items works. not perfect - but working... in
small tests.



SVN revision: 39056
2009-02-17 07:50:35 +00:00
Carsten Haitzler 1d36bea662 use new fill mode, fix bug in object tracking and deletion - nasty one. more
genlist work too.



SVN revision: 39021
2009-02-15 02:53:56 +00:00
Carsten Haitzler bb9742a604 more work on genlist!
SVN revision: 39002
2009-02-12 13:39:43 +00:00
Carsten Haitzler 1099280784 fix some min size calc issues.
fix some theme size calc issues
make all widgets able to... do finger size! this way a ui can be tweaked with
1 value (finger size) if it is to be finger or mouse/stylus driven. and it
was so simple to add in.
work on genlist - beginning to display items and scroll.



SVN revision: 38995
2009-02-11 11:49:43 +00:00
Carsten Haitzler fc5d7b65e9 adjust slider theme a bit and test app. some skleton work on genlist.
SVN revision: 38992
2009-02-10 11:57:47 +00:00
Carsten Haitzler 86ebf4591c more work on slider - i think its complete now vertical mode works. might be
some buglts to clear up though.
fix scroller to scroll only at animator framerate.. using an animator making
scrolling much better.
begin genlist (geeric but complicated) list.



SVN revision: 38979
2009-02-09 11:23:59 +00:00