Commit Graph

50 Commits

Author SHA1 Message Date
Carsten Haitzler fee7a0c645 fix another elm bug where arrows are not "clickable" for scrolling to
next/prev item - needed to add a feature to scrolelr (and accidentally
also to scrolled interface too :)) to make this work. now works.



SVN revision: 74969
2012-08-07 10:20:30 +00:00
Jaehwan Kim 564b6f13c8 Remove the APIs elm_toolbar_items_max_set/get.
Instead of them, add the APIs elm_toolbar_standard_priority_set/get.
The items which are lower than standard priority are located in more menu or panel.


SVN revision: 71777
2012-06-07 07:32:55 +00:00
Jaehwan Kim de1be9600b Toolbar: Add the more panel feature in toolbar. When it is the ELM_TOOLBAR_SHRINK_EXPAND mode and the max item is set, the items over max number are located in more panel.
The APIs are added for this feature.(elm_toolbar_more_item_get, elm_toolbar_items_max_set/get)


SVN revision: 71297
2012-05-22 05:18:12 +00:00
Daniel Juyung Seo 7f2fc8ef80 elm bin: Use convenient utility function elm_win_util_standard_add()
instead of elm_win_add() + elm_bg_add(). This is for normal style
(ELM_WIN_BASIC) window.

SVN revision: 69848
2012-04-02 06:20:28 +00:00
Daniel Juyung Seo e838d6d2f2 Revert a wrong commit. Un-wanted files are committed together.
Revert "elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window."

This reverts commit 31b24a0edb0028528d7c859070e03236ba42867b.

SVN revision: 69847
2012-04-02 06:20:22 +00:00
Daniel Juyung Seo b4308ab089 elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window.
SVN revision: 69845
2012-04-02 06:07:58 +00:00
Mike Blumenkrantz cf8ab5c674 for the last time: CONFIG.H ALWAYS GETS INCLUDED FIRST. AAAAAAAALLLLLLLLLLLLLLLLLLLLLLLWAAAAAAAAAAAAAAAAAAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYSSSSSSSSSSSSSSSSSSS
SVN revision: 69764
2012-03-29 19:27:13 +00:00
Mike Blumenkrantz ac56404920 fix name of tb7 test
SVN revision: 69375
2012-03-15 14:15:48 +00:00
Mike Blumenkrantz aa78786616 rename elm object select mode values: whoever wrote this deserves spankies
SVN revision: 68982
2012-03-07 16:01:37 +00:00
Hyoyoung Chang e479d536d6 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_toolbar - add elm_toolbar_select_mode_set

As already sent genlist select_mode_set patch,
I applied same apis to elm_toolbar.

+EAPI void
+elm_toolbar_select_mode_set(Evas_Object *obj,
Elm_Object_Select_Mode_Type mode)


+EAPI Elm_Object_Select_Mode_Type
+elm_toolbar_select_mode_get(const Evas_Object *obj)



SVN revision: 68945
2012-03-07 13:23:22 +00:00
Jaehwan Kim 044fc4bf03 Add the item_content_set/get/unset_hook for setting the object as the content of the toolbar item.
It's possible the objects(like slider or progressbar and so on) can be shown in toolbar.


SVN revision: 68805
2012-03-06 11:35:11 +00:00
Jaehwan Kim d6a8be7f95 Add the ELM_TOOLBAR_SHRINK_EXPAND mode. The items be expanded according the size of the toolbar when it's set.
SVN revision: 68653
2012-03-04 09:52:20 +00:00
Mike Blumenkrantz 33fbd34a85 replicate new bug from 68495
SVN revision: 68514
2012-02-28 20:14:56 +00:00
Carsten Haitzler d83ff51f71 test and fix up horizontal_item style for toolbar.
SVN revision: 68313
2012-02-23 08:22:24 +00:00
Carsten Haitzler ce4b795d8d toolbar vertical mode working right now.
SVN revision: 68267
2012-02-22 12:13:12 +00:00
Jihoon Kim dadded2e36 elementary_test: 0 -> EINA_FASE, 1 -> EINA_TRUE
SVN revision: 68028
2012-02-16 12:51:01 +00:00
Daniel Juyung Seo 31f21e31ec elm toolbar: Changed elm_toolbar_mode_shrink_set/get ->
elm_toolbar_shrink_mode_set/get.
Also updated http://trac.enlightenment.org/e/wiki/ElementaryChanges

SVN revision: 66927
2012-01-06 06:42:10 +00:00
ChunEon Park 1120f143aa elementary/toolbar - deprecate APIs.
elm_toolbar_item_data_get
elm_toolbar_item_data_set
elm_toolbar_item_toolbar_get
elm_toolbar_item_label_get
elm_toolbar_item_label_set
elm_toolbar_item_disabled_get
elm_toolbar_item_disabled_set



SVN revision: 66057
2011-12-09 05:26:33 +00:00
ChunEon Park befb09c131 elementary/toolbar - Elm_Toolbar_Item -> Elm_Object_Item
tweet: API Changes. This change may cause build break.



SVN revision: 65708
2011-11-30 05:10:23 +00:00
ChunEon Park 468985fa84 elementary/menu - Elm_Menu_Item -> Elm_Object_Item
SVN revision: 65596
2011-11-25 10:57:39 +00:00
Michael BOUCHAUD 88c82b457f elementary: Ooops, I made a mistake. Return to the original test
SVN revision: 64575
2011-10-31 16:01:29 +00:00
Michael BOUCHAUD 4052a4cf82 elementary: switch to elm_toolbar_horizontal_set in test
SVN revision: 64565
2011-10-31 14:50:00 +00:00
Jérémy Zurcher a0366f0ef1 From: Jérémy Zurcher <jeremy@asynk.ch>
Subject: [E-devel] patch : eina_prefix + elementary_test

please find attached a small patch for eina_prefix

it prevent segfault when for instance
no elm_app_compile_*_dir_set is called prior to elm_app_info_set

and another one for elementary/src/bin/test*.c which tends to replace
usage of PACKAGE_DATA_DIR with elm_app_data_dir_get



SVN revision: 62796
2011-08-25 10:01:59 +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
Daniel Juyung Seo d473e343eb elm test: Refactoring. Changed 1 to EINA_TRUE for Eina_Bool parameter of elm_win_autodel_set() API.
SVN revision: 61695
2011-07-25 14:22:19 +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 64ff85f610 Elementary src/bin: Removed all trailing whitespaces.
SVN revision: 58491
2011-04-08 14:30:48 +00:00
Daniel Juyung Seo 84145a320e Elementary test: Fixed window name and window title name.
Unified window name like "genlist2", "genlist-group".
Unified window title name like "Genlist 2", "Genlist Group".


SVN revision: 57214
2011-02-21 15:33:40 +00:00
Daniel Juyung Seo 06d93733d7 Elementary toolbar test: Fixed window name and window title name.
SVN revision: 57180
2011-02-20 03:33:32 +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 53aba73f94 Loading icon image from files if absolute path is provided
By: Otavio Pontes <otavio@profusion.mobi>


SVN revision: 54188
2010-11-05 18:22:42 +00:00
Bruno Dilly 78c083a530 Adding in test_toolbar one example of multiple state items.
By: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 54010
2010-10-29 18:58:54 +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
Bruno Dilly 7cc73d7568 Remove unused vars from test_toolbar
SVN revision: 53724
2010-10-21 18:12:21 +00:00
Rafael Fonseca ba4d8b532d Add tests to elementary_test to exercise toolbar's shrink modes.
Now that toolbar has 3 shrink modes I've added one test for each one. The first
one shows the menu mode which is responsible for adding a More button when the
toolbar size is not large enough to hold all items. The second one is scroll
mode in which the items can be scrolled when the length is not enough. The last
one, none mode, does nothing.



SVN revision: 53718
2010-10-21 15:37:02 +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 4ea66676b3 Fix some Wextra complains on elm bin
SVN revision: 53636
2010-10-19 18:25:22 +00:00
Leandro Pereira c563ef2370 [Elementary] Make it possible to lookup icons from Freedesktop in Elm_Icon.
With these changes, Elm_Icon will also look up icons from the chosen
Freedesktop (fd.o) icon theme.  Since this might incur in some performance
penalties if you're sure only theme icons will be used, icon lookup order
may be specified with the elm_icon_order_lookup_set() function call; using
the lookup parameter as follows:

 - ELM_ICON_ORDER_FDO_THEME (default) will look up first fd.o, then the theme;
 - ELM_ICON_ORDER_THEME_FDO will look up first the theme, then fd.o;
 - ELM_ICON_ORDER_FDO will look up only fd.o; and
 - ELM_ICON_ORDER_THEME (old behaviour) will lookup only from the theme.

Elm_Icon will also try to use a different resolution image if the widget is
resized and the image source is fd.o.

fd.o support requires Efreet, but it should work nicely (falling back to the
old behaviour) if it isn't available.

SVN revision: 53433
2010-10-14 22:21:43 +00:00
Leandro Pereira 5c10641510 [Elementary] Use themeable icons in Elm_Toolbar.
This allows having themeable icons for toolbar items -- inclusing lower
resolution ones for the More menu button. Changes to Elm_Menu_Item in the
same spirit will follow.

SVN revision: 53407
2010-10-14 15:27:31 +00:00
Leandro Pereira 00c778f00b [Elementary] Implement priority in Elm_Toolbar.
Toolbars can now be scrollable, non-scrollable, or hide icons selectively
according to a priority.  This changed the API slightly, thus

   elm_toolbar_scrollable_set(obj, 1)

Should be

   elm_toolbar_mode_expand_set(obj, ELM_TOOLBAR_EXPAND_SCROLL)

Values for non-scrollable and scrollable remain the same, so if constants
aren't being used, just the function name should be changed.

The new mode, ELM_TOOLBAR_EXPAND_MENU, will create a menu of items when the
space isn't large enough to hold all the items.  Which items will be kept on
the toolbar or which items will be added to the menu is controlled by the
priority of each item: higher ones will be kept if possible, lower ones will
be tratored on the first opportunity.

SVN revision: 53406
2010-10-14 15:27:25 +00:00
Bruno Dilly 9fa9c659e5 Remove dead assignments from elementary
The only one remaining is on index code, related to the not yet
implemented horizontal mode.



SVN revision: 53396
2010-10-14 14:10:33 +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 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 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
Carsten Haitzler 492258e12e use some of the new macros and #defines i put into evas - they will help the
code to be more understandable, bgut i haven't done all of them. there are a
lot. they'll get done over time.



SVN revision: 42756
2009-09-28 05:53:28 +00:00
Carsten Haitzler 32a0cf3238 and more
SVN revision: 42484
2009-09-14 04:22:27 +00:00
Christopher Michael d4528aa391 Add a method to disable a toolbar item.
Add a couple of blank lines in elm_toolbar.c to separate variables from code
in certain functions.

Set first button in Toolbar Test to be disabled (just so Elm develops can
see how it looks & acts)

NB: The theme/colors for disabled text may need/warrant work. Not sure how
Elementary people want the disabled text to look, so I used the disabled
text colors from elm_button for now.

(Hopefully the code here is acceptable ;) If not, please let me know what
needs fixing)



SVN revision: 41990
2009-08-25 22:46:19 +00:00
Davide Andreoli cf6f01b171 * Split up elementary test.c in several files, one per widget
SVN revision: 41749
2009-08-13 22:41:43 +00:00