Commit Graph

155 Commits

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