Commit Graph

120 Commits

Author SHA1 Message Date
Mike Blumenkrantz f3100ad3c6 don't require "menu/" prefix for menu icons, fall back on regular icon name
SVN revision: 63335
2011-09-12 03:14:53 +00:00
Mike Blumenkrantz 342330e063 really? part 2: really? with a vengeance.
SVN revision: 62155
2011-08-05 23:07:18 +00:00
Mike Blumenkrantz 7460ae79e8 as promised, deprecated menu api functions have now been removed
SVN revision: 62149
2011-08-05 19:40:14 +00:00
Daniel Juyung Seo 4879118510 elm: Removed trailing whitespaces before I work on.
SVN revision: 61933
2011-08-01 06:46:43 +00:00
Jonas M. Gastal 22ea003fdd Elementary: elm_menu documentation.
SVN revision: 61910
2011-07-29 21:40:54 +00:00
Mike Blumenkrantz 506710c9d1 unbreak elm_menu_item api
the following functions are now DEPRECATED and will be removed on 5 AUG 2011:
elm_menu_item_object_icon_get -> elm_menu_item_object_content_get
elm_menu_item_icon_get -> elm_menu_item_object_icon_name_get
elm_menu_item_icon_set -> elm_menu_item_object_icon_name_set

added the following NEW functions:
elm_menu_item_object_content_set
elm_menu_item_menu_get (this will probably be replaced by an eventual elm_object_item_owner_get() or whatever it gets named)


SVN revision: 61899
2011-07-29 15:08:56 +00:00
Mike Blumenkrantz a801e3f3fe helper function for menu item creation to deduplicate code
SVN revision: 61893
2011-07-29 14:04:54 +00:00
Mike Blumenkrantz 5db3d88170 +elm_menu_item_index_get
SVN revision: 61892
2011-07-29 14:00:31 +00:00
Mike Blumenkrantz 6139715778 remove const from return of some menu item_get functions
SVN revision: 61891
2011-07-29 13:29:04 +00:00
Mike Blumenkrantz ae8211afbf add note regarding swallowed content in items to elm_menu_item_object_icon_get
SVN revision: 61721
2011-07-26 01:51:50 +00:00
Mike Blumenkrantz 2139708729 radio buttons: GET IN MAH MENUS!!!!
added elm_menu_item_add_object which allows a user to directly add an arbitrary evas_object to be swallowed as a menu item, added radio item as test


SVN revision: 61717
2011-07-26 01:17:09 +00:00
Mike Blumenkrantz d67e39149a fix annoying but harmless safety check error with toolbar menus
SVN revision: 61663
2011-07-25 04:05:58 +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
ChunEon Park d45f0154cf elementary / menu, list, index, pager - modified to use signal callback table.
SVN revision: 58807
2011-04-21 15:57:03 +00:00
Daniel Juyung Seo 77450413d7 Elementary src/lib: Removed all trailing whitespaces.
SVN revision: 58492
2011-04-08 14:36:29 +00:00
ChunEon Park 3761fc17f5 elementary / menu, gengrid, slider, separator, photocam, index, toggle
updated signal callback list in the doxygen



SVN revision: 58347
2011-04-05 07:04:09 +00:00
ChunEon Park c7c99ddea6 elementry / entry, menu, notify, list, gengrid, actionslider, image, icon, anchorview, fileselector_button, calendar, photocam, anchorblock,
button, map, colorselector, hover, photo, diskselector, index, bubble, pager, hoversel, check, scrolled_entry, clock, flipselector

	    updated signal callback list in the  doxygen. 

            should update genlist, progressbar ... 



SVN revision: 58335
2011-04-04 16:34:18 +00:00
ChunEon Park 160084626b elementary / menu, notify, list, panes, module, map, pager, panel, mapbuf - removed white spaces
SVN revision: 58251
2011-04-01 11:26:58 +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
Tristan Lelong ab35bb5667 From: Tristan Lelong <tristan.lelong@blunderer.org>
Subject: [E-devel] [PATCH]: keyboard navigation in menus

I was using elementary on a target that only has a keyboard, and I add
to do several modification on the elm_menu to handle keyboard
navigation.
- patch 1: discard a menu from C source code
- patch 2: add accessors for menu items and add the ability to handle
selected item from C source code



SVN revision: 58084
2011-03-25 04:42:12 +00:00
Tristan Lelong 23b7dd8b8b From: Tristan Lelong <tristan.lelong@blunderer.org>
>>> Hello,
>>>
>>> I was using elementary on a target that only has a keyboard, and I add
>>> to do several modification on the elm_menu to handle keyboard
>>> navigation.
>>> - patch 2: add accessors for menu items and add the ability to handle
>>> selected item from C source code



SVN revision: 57957
2011-03-22 02:29:26 +00:00
Carsten Haitzler 551bbe375d menu api was the wrong name..
SVN revision: 57954
2011-03-22 02:08:38 +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
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +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
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
Otávio Pontes 1618a95058 Separator parent can be null
SVN revision: 55184
2010-12-03 11:18:36 +00:00
Carsten Haitzler 1fcddfebdb fix valgrind problems with elm menu. oooh not tracking things right.
bad elm menu! bad!



SVN revision: 54362
2010-11-09 10:41:09 +00:00
Tiago Rezende Campos Falcao 2374b34c2a Add checkers to menu items
SVN revision: 54092
2010-11-02 11:26:53 +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
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Leandro Pereira d617653e47 [Elementary] Disallow adding more than one separator item in a row.
(This fixes certain cases not covered by r53466)

SVN revision: 53696
2010-10-20 21:30:05 +00:00
Leandro Pereira a8b171115c [Elementary] Add menu buttons as submenus in Elm_Toolbar "More" button.
Previously, if there were buttons with menus in the toolbar, they would be
added but not its menu items.  Even though this is working fine, this is a
hack, since Elm_Menu should really offer reparenting or something like that
-- and this will destroy and recreate the whole menu structure on every
toolbar resize.

SVN revision: 53695
2010-10-20 21:30:03 +00:00
Leandro Pereira 5174660ea7 [Elementary] Use elm_icon_standard_set() on Elm_Menu items.
This breaks the API *and* the ABI, but this should be consistent with
Elm_Toolbar.  We'll probably need a tweak here and there, but I really
think Elm_Menu should be rewritten.

SVN revision: 53694
2010-10-20 21:30:00 +00:00
Bruno Dilly 9e09bbc80a Fixes for clang warnings
SVN revision: 53576
2010-10-18 18:15:59 +00:00
Leandro Pereira 7a2f2df54f [Elementary] Elm_Menu separator items tweaks.
Do not allow adding more than one separator in a row, or adding a separator
as the first element of the menu (separators are for separating stuff, not
to decorate).

SVN revision: 53466
2010-10-15 19:08:45 +00:00
Tiago Rezende Campos Falcao 738bfaa747 Review of content setters, getters and unsetters
Revised the parent, icon, end and content setter and getters of
elementary objects.
Review to smart objects and widgets items will be the next steps.

SVN revision: 53425
2010-10-14 18:54:42 +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
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 c559b06577 Just delete children and related from del_pre_hook, not del_hook!
At del_hook() stuff are already gone and invalid access may
happen. Doing it from del_pre_hook you still have things working nice.

Also refactor the destructor to do recursion and stop allocate list
nodes to avoid it... simpler.



SVN revision: 52114
2010-09-10 01:35:46 +00:00
Gustavo Sverzut Barbieri 3c71cada93 Add Elm prefix to struct _Menu_Item.
I've noticed this while grepping the code.



SVN revision: 52098
2010-09-09 19:34:56 +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
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +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
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
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
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 58f0a50c45 more warning -- - and fix a lot of formatting in elm_map and some bugs lurking.
SVN revision: 47082
2010-03-09 16:27:46 +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 f7a8067a66 more launcher test code.... and mapbuf object used by launcher test code.
SVN revision: 45575
2010-01-26 08:17:26 +00:00
Boris Faure 03dde19ac8 add elm_menu_item_data_set
SVN revision: 45256
2010-01-17 10:36:19 +00:00
Boris Faure 1d63301682 add elm_menu_item_data_get
SVN revision: 45253
2010-01-17 10:33:45 +00:00
Boris Faure 599e1cc424 add del_cb to menu items
SVN revision: 45010
2010-01-09 23:15:43 +00:00
Carsten Haitzler 958aad8241 fix swallows to happen after u added hint change cb
SVN revision: 44245
2009-12-07 14:19:20 +00:00
Jonathan Atton fca192b469 Elm menu, slideshow and notify: remove warnings
SVN revision: 43993
2009-11-25 21:06:23 +00:00
Christopher Michael 41b3e9fc8e Formatting.
SVN revision: 43576
2009-11-09 12:46:31 +00:00
Andreas Volz c0fef3e01c implemented elm_menu_object_get
SVN revision: 43455
2009-11-04 21:00:56 +00:00
Jonathan Atton 359474bcec Elb menu: Fix bug. add the callback in the end else they can be called before all data are ready.
SVN revision: 43364
2009-10-31 09:27:22 +00:00
Jonathan Atton 5533c2a8f9 Elm menu: do not delete this items
SVN revision: 43347
2009-10-30 12:26:31 +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 2b6e62ee2c Use elm_widget_del_pre_hook_set for setting pre-delete hook on menu.
SVN revision: 43153
2009-10-18 16:59:51 +00:00
Christopher Michael 50f9647f7e Formatting.
SVN revision: 43152
2009-10-18 16:55:31 +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 26d43ce773 elm slideshow: s/elm_widget_disabled_set/elm_object_disabled_set
SVN revision: 43061
2009-10-13 18:27:35 +00:00
Christopher Michael e472033c3b Fix some really weird formatting.
Use ELM_NEW instead of calloc directly.
No need to retrieve Widget_Data in certain functions so commented out.



SVN revision: 43060
2009-10-13 18:13:25 +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