Commit Graph

78 Commits

Author SHA1 Message Date
김지훈 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 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
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 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
Christopher Michael 03ddd89f5a Set boolean to 1.
SVN revision: 50824
2010-08-04 19:20:52 +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
Christopher Michael 05574a433f Don't allow toolbar to be dragable w/ the mouse if scrollable is set
to False.



SVN revision: 49602
2010-06-10 01:21:39 +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
Mike Blumenkrantz 2c44eda4e0 kill off some unused variables, return values on some widtype check fails
SVN revision: 49222
2010-05-27 09:01:41 +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
Michael Blumenkrantz e571b14068 From: Michael Blumenkrantz <mike@zentific.com>
elm.diff is a patch which implements a number of convenience functions
for various widgets, as well as some new features for toolbar and panel.
With the panel widget, I've written a number of calls related to
toolbar items and the selected item in particular, allowing
manipulation of the selection and toolbar items more easily. These
functions are as follows:
+elm_toolbar_item_get_all() returns a Eina_List* of all the toolbar
items
+elm_toolbar_item_get_first() returns the first toolbar item
+elm_toolbar_item_get_last() returns the last toolbar item
+elm_toolbar_item_get_next() returns the item after the
currently selected item
+elm_toolbar_item_select_next() moves the selection to the next valid
item
+elm_toolbar_item_select_first() selects the first valid item
+elm_toolbar_item_select_last() selects the last valid item
+elm_toolbar_item_find_by_label() returns the first Elm_Toolbar_Item
matching "label"

The new panel functions I have written allow for control of the panel's
state from code, and are as follows:
+elm_panel_hidden_set() sets the panel's toggle state to a bool value
and runs the animation
+elm_panel_hidden_get() returns whether the panel is hidden
+elm_panel_toggle() toggles the panel to its other state

The remainder of the functions are just general wd->data returns which
were missing, the functionality of which may be of use to people.



SVN revision: 48355
2010-04-27 05:43:54 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Cedric BAIL 341d5cff52 * elementary: Add elm_toolbar_item_selected_get and some const.
Patch by Mike Blumenkrantz (zmike) <mike@zentific.com>.


SVN revision: 47629
2010-03-31 16:38:37 +00:00
Tiago Rezende Campos Falcao 5884ebfb18 Toolbar External
SVN revision: 47608
2010-03-30 20:42:01 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +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
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +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 d32e700fe3 more warning fixes!
SVN revision: 47076
2010-03-09 11:42:53 +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
Vincent Torri e939816544 fix returned values
SVN revision: 46081
2010-02-11 16:13:41 +00:00
Boris Faure 61d8b6ea71 typo in comment
SVN revision: 45252
2010-01-17 10:33:22 +00:00
Boris Faure 158a917bc3 elementary: add del_cb to toolbar items
SVN revision: 43862
2009-11-21 16:21:35 +00:00
Christopher Michael 4d62ebac5b Add missing function prototypes.
SVN revision: 43696
2009-11-15 01:52:40 +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
Christopher Michael eb489c6809 Formatting.
Use EVAS_HINT_EXPAND/FILL.
Remove unused variables.
Reduce duplicated code.



SVN revision: 43598
2009-11-10 02:03:52 +00:00
Christopher Michael 8e41d90a0e Use EVAS_HINT_EXPAND/EVAS_HINT_FILL.
SVN revision: 43583
2009-11-09 13:14:05 +00:00
Jonathan Atton 100f4724c0 Elm toosbar : fix item_label_set(), recalc the min size
SVN revision: 43351
2009-10-30 14:10:41 +00:00
Jonathan Atton f7c963cad5 Elm toolbar : If the icon is bigger than the text fit to the icon size
SVN revision: 43350
2009-10-30 13:13:21 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Christopher Michael 77ed1224ab Fix more formatting, *sigh*
Use ELM_NEW instead of calloc directly



SVN revision: 43155
2009-10-18 17:20:18 +00:00
Jonathan Atton d434116d77 Elm : delete some added callback. The callbacks associated to the parent by the hover was not deleted when the parent is deleted
SVN revision: 43102
2009-10-15 20:48:00 +00:00
Jonathan Atton 2dc274cc02 elm menu+toolbar: Rewrite the menu, add separator and submenus. Fix the separator in the toolbar
SVN revision: 43019
2009-10-11 13:37:01 +00:00
Jonathan Atton 142f0f04d9 Elemetary : add a new widget: menu. See elementary_test. submenu will coming soon. Rewrite the toolbar to use this new widget
SVN revision: 42943
2009-10-07 17:11:41 +00:00
Jonathan Atton a3105e664e elm toolbar: little fix to avoid a infinite loop
SVN revision: 42924
2009-10-06 22:24:24 +00:00
Jonathan Atton 72e5eb0517 elm toolbar: fix the position of the menu
SVN revision: 42922
2009-10-06 21:46:11 +00:00
Jonathan Atton 48a16579fc elm toolbar: add elm_toolbar_align_set(), set the alignment of the items. Defalt is 0.5 (center)
SVN revision: 42920
2009-10-06 20:14:46 +00:00
Jonathan Atton 9029e6ed9e elm toolbar: add item_unselect_all(). Automatically unselect the item when the menu is closed.
SVN revision: 42917
2009-10-06 18:18:21 +00:00
Jonathan Atton 145c90a7e4 elm toolbar: add menu. See the last item in the tollbar test. Thi implementation is simple: each item are a button with a custom style
SVN revision: 42904
2009-10-06 15:08:41 +00:00
Iván Briano a95ba2636d Hacky move to evas_box
Evas_Box layouts don't get along with what elm expects,
so for now, it's using the old els_box calculate functions
as a custom layout.


SVN revision: 42863
2009-10-02 19:22:40 +00:00
Jonathan Atton 58b8005d51 elm toolbar : rewrite/fix _sizing_eval
SVN revision: 42818
2009-09-30 11:26:26 +00:00
Jonathan Atton a00f198b0f elm toolbar : add homogenous_set
SVN revision: 42817
2009-09-30 10:53:08 +00:00
Carsten Haitzler 111735b63d 1. add elm module internal code. will be used later for things like:
* putting policy into modules
* multitouch handling being able to be farmed off to modules
* farming off things that are not compatible with license/code of elm into a
3rd party piece of code via a clean defined interface API

2. fix doc image - dont need it

3. fix toolbar bounce settings. was wrong



SVN revision: 42793
2009-09-29 04:35:35 +00:00
Christopher Michael b5532973b0 Cleanup some commented out lines that were left there on last commit.
SVN revision: 42111
2009-08-30 16:57:14 +00:00
Christopher Michael 04f996d5ff Add ability for toolbar to have a separator item. Still a problem here in
that the toolbar box sets everything homogenous.

Fix some formatting.
Reduce register use in certain places.
Reduce number of calculations to get scale in certain places.



SVN revision: 42109
2009-08-30 16:54:15 +00:00