Commit Graph

140 Commits

Author SHA1 Message Date
Daniel Juyung Seo 8d779d2aaa elm toolbar: Fixed build warnings.
SVN revision: 62736
2011-08-24 08:10:48 +00:00
Carsten Haitzler 27d751a236 and now add custom access info for items too and clean up nicely.
SVN revision: 62734
2011-08-24 06:39:29 +00:00
Carsten Haitzler dbb4cbed93 and now do toolbar - showing how to add access stuff to items in a
widget



SVN revision: 62733
2011-08-24 06:29:13 +00:00
Mike Blumenkrantz ef51692042 damn inconsistent safety check macros
SVN revision: 62173
2011-08-07 03:54:23 +00:00
Mike Blumenkrantz 3e27658e51 whoops forgot to remove my debug printfs
SVN revision: 62172
2011-08-07 03:43:33 +00:00
Mike Blumenkrantz cf033a8c7a more useless elm stuff: vertical toolbar orientation (by cedric's request) along with toolbar test 6 as a demo. still pretty buggy but I'm tired and don't know when/if I'll get around to fixing it up. play with the toolbar weight in the test to find more bugs!
SVN revision: 62171
2011-08-07 03:42:28 +00:00
Tom Hacohen 4ba312a387 Elm toolbar: Fixed item_separator_set.
SVN revision: 62087
2011-08-04 09:39:25 +00:00
Bruno Dilly 85aa1ef9f2 Elementary: Toolbar Documentation
SVN revision: 61955
2011-08-01 14:51:18 +00:00
Daniel Juyung Seo 04b491da11 Elementary: Changed homogenous to homogeneous.
Deprecated existing APIs but not removed them. They will be removed
sometime later or when elm 1.0 is released. And added new APIs.
I fixed box, table and toolbar. I will modify other codes in trunk soon.


SVN revision: 59160
2011-05-04 04:53:39 +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 9420b44918 elementary/segment_control, panes, photocam, photo, win, toolbar, thumb, slideshow, spinner - updated signal callbacks.
made them use signal callbacks description table. 
removed never-called signals
updated doxygen. 




SVN revision: 58816
2011-04-22 00:42:32 +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
ChunEon Park 22588576be elementary/theme, widget, win, toolbar, thumb, toggle, util, box - removed white spaces
SVN revision: 58249
2011-04-01 11:20:18 +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
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
Michael BOUCHAUD 0f80e8a743 elementary: avoid stack corruption unselect item toolbar before del it
SVN revision: 56335
2011-01-27 22:14:32 +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 ee43dafc16 elm_toolbar_item_icon_get should return the icon string.
Also improves documentation related to icon_set/icon_get.

SVN revision: 55182
2010-12-03 10:58:46 +00:00
Otávio Pontes ec86a81a78 Emiting signal to icon to unselect it. (bug fix)
SVN revision: 54874
2010-11-23 12:57:00 +00:00
Bruno Dilly d485668cb2 Fixing resize problems in toolbar.
Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54468
2010-11-11 18:05:36 +00:00
Bruno Dilly d2874eecec Calling _resize function after functions that can change item size.
By: Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54404
2010-11-10 12:38:47 +00:00
Bruno Dilly 2e5b0450ab Passing correct parameters when clicking in item in more menu.
Event info should be an Elm_Toolbar_Item.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54403
2010-11-10 12:37:06 +00:00
Bruno Dilly 6d30d387e8 Removing more_item from wd->items on elm_toolbar
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54385
2010-11-09 21:21:46 +00:00
Bruno Dilly 317226eef6 Fix ingroup in elm_toolbar doc
SVN revision: 54378
2010-11-09 20:27:07 +00:00
Bruno Dilly 0f4950bb1d Getting toolbar icon size in theme.
Uses icon_size from elm_config as fallback.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54347
2010-11-08 19:59:22 +00:00
Bruno Dilly 998d6de755 Adding functions to toolbar to set icon lookup order
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54346
2010-11-08 19:58:46 +00:00
Bruno Dilly 4cfed9e8c0 Remove hardcoded max icon size restrition on toolbar
If it was added to mask a bug, we are unmasking it, so we can
solve it and use the toolbar for programs that want more than
48 pixels.



SVN revision: 54336
2010-11-08 17:25:06 +00:00
Bruno Dilly e6178d5892 Checking widtype on eapi elm_toolbar_item_label_set
SVN revision: 54335
2010-11-08 16:55:26 +00:00
Bruno Dilly a737b92bd3 Adding some missing const on getters on elm
SVN revision: 54333
2010-11-08 16:39:07 +00:00
Bruno Dilly 90d1ad6b4c Emit different signals when changing states forward or backward.
This is used to perform diferent animations when going forward or
backward.

By:  Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54190
2010-11-05 18:23:59 +00:00
Bruno Dilly 8538a6fe3f Adding a no select mode to toolbar.
In no select mode, toolbar items don't stay selected after click.


SVN revision: 54189
2010-11-05 18:23:15 +00:00
Bruno Dilly 8a118ee12e Don't show more menu if there is only one button in it.
If there is only one item inside more menu and if this item is smaller
than more item, the toolbar wont show the more menu.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54187
2010-11-05 18:21:01 +00:00
Carsten Haitzler e60e467053 fmting.
SVN revision: 54172
2010-11-05 09:44:05 +00:00
Carsten Haitzler c08c722195 do scale right for toolbar...
SVN revision: 54171
2010-11-05 09:43:13 +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 9abd5ca805 Add checkers to toolbar items
SVN revision: 54094
2010-11-02 11:26:59 +00:00
Bruno Dilly 1712bf1148 Add functions to create states for elm_toolbar_items.
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54009
2010-10-29 18:57:55 +00:00
Bruno Dilly f94f6fb3ee Send signal informing changes in icon state.
Inform that the item was disabled, highlighted or selected.
If a toolbar icon is an edje it can receive this signal and change the
icon image to a disabled image.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54006
2010-10-29 18:42:01 +00:00
Bruno Dilly 1d23d0ae54 Perform an animation when changing label/icon from a toolbar item.
When functions to change icon or labels are called a signal is sent to
edje that can perform an animation.

By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54005
2010-10-29 18:40:59 +00:00
Bruno Dilly f8f377cd5f Small fixes on elm toolbar docs
SVN revision: 53899
2010-10-26 13:15:51 +00:00
Bruno Dilly a544658e28 Add toolbar item data getter / setter
Useful for bindings


SVN revision: 53898
2010-10-26 13:15:32 +00:00
Bruno Dilly 473d8bfc3f Add a new shrink mode to elm_toolbar: SHRINK_HIDE
And fix the docs related to shrink mode:
SHRINK_HIDE -> hide excess items
SHRINK_NONE -> set toolbar minimun size to fit all the items



SVN revision: 53895
2010-10-26 10:30:45 +00:00
Bruno Dilly 01d04e55e0 Change toolbar API for consistency with other widgets
BIG FAT WARNING: lots of changes on toolbar API

Trying to get a lib with easy to use API, I'm changing toolbar API
to be consistent with genlist / gengrid widgets and to be more concise.

Functions select_next, select_first, select_last, unselect, unselect_all
get all are gone.
You can do this calling a combination of the others functions.

This commit changes toolbar to use inlist, and previous items can be
get.

So now we have:
Elm_Toolbar_Item *elm_toolbar_first_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_last_item_get(const Evas_Object *obj)
Elm_Toolbar_Item *elm_toolbar_item_next_get(const Elm_Toolbar_Item *it)
Elm_Toolbar_Item *elm_toolbar_item_prev_get(const Elm_Toolbar_Item *it)
Eina_Bool elm_toolbar_item_selected_get(const Elm_Toolbar_Item)
void elm_toolbar_item_selected_set(Elm_Toolbar_Item *item, Eina_Bool selected)
Elm_Toolbar_Item *elm_toolbar_selected_item_get(const Evas_Object *obj)

With these functions you can iterate over the items list getting /
selecting the item you need.

Another big change is that elm_toolbar_item_add is gone. Now you can
insert items in the position you want, with the functions append,
prepend, insert after, insert before (a relative item).

If you don't like any changes or have a case of use for something
that should be different, please ping me.

At last, includes ELM_TOOLBAR_ITEM_CHECK_OR_RETURN on EAPI that
receives items.



SVN revision: 53894
2010-10-26 10:29:24 +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
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 a5b772f9a5 Use shrink mode info from profile on elm_toolbar.
The default shrink mode for desktops is Scroll and for mobiles is Menu.



SVN revision: 53738
2010-10-21 19:24:43 +00:00
Rafael Fonseca 6a16cad7d6 Get icon_size from profile.
Toolbar and Carousel widgets now use the default icon_size set in the profile.



SVN revision: 53735
2010-10-21 18:59:45 +00:00