Commit Graph

47 Commits

Author SHA1 Message Date
Davide Andreoli dae6d87af4 Hoversel: add a test for the populate-on-click scenario 2016-01-18 19:49:28 +01:00
Jee-Yong Um 9fd9a33b7a hoversel: auto update hoversel after dismiss animation finished.
Summary:
If auto_update feature changes hoversel width,
dismiss animation seems awful because hoversel contents move to
changed position in an instant.
This patch makes hoversel update its content with clicked item
after dismiss animation finished.

Test Plan: elementary_test hoversel

Reviewers: raster, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3519

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-01-04 15:17:26 -08:00
godly.talias 087529298b hoversel: add item disabling support.
Summary:
Hoversel items can be disabled using elm_object_item_disabled_set
@feature

Test Plan: elementary_test

Reviewers: prince.dubey, shilpasingh, raster, Hermet, conr2d, cedric

Subscribers: poornima.srinivasan, rajeshps

Differential Revision: https://phab.enlightenment.org/D3122

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-10 15:15:31 -08:00
Jee-Yong Um d0b244313e hoversel: remove scrollable_set/get() API
Summary:
Hoversel scrollability can be considered as default behavior of hoversel.
These APIs are not necessary any more.

Reviewers: cedric, DaveMDS

Subscribers: DaveMDS, cedric

Differential Revision: https://phab.enlightenment.org/D3241

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-30 07:05:12 +01:00
Jee-Yong Um e71b32cf60 hoversel: expands scrollable hoversel as large as it can
Summary:
In D2063, "max_size" data item is added to limit the number of items
to show at a time when hoversel is expanded.
However, it limits the number of items too few, so makes scrollable
function useless.
This patch removes limitation of hoversel size with pixels,
but if it needs, developers can set the limitation yet.
(By theme customization)

Test Plan:
elementary_test "hoversel"
click the second hoversel

Reviewers: DaveMDS, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3223

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-26 01:47:46 +01:00
Cedric BAIL a3806857ca hoversel: rename label_auto_changed -> auto_update
Thanks to Davide Andreoli for his review and suggestion.
2015-10-19 11:55:30 -07:00
Jee-Yong Um 60ff0a3c6e elm_hoversel: add elm_hoversel_label_auto_changed_set/get() API
Summary:
Hoversel can be used like dropdown or pulldown menu.
In that case, changing hoversel label into selected item lable can be
considered as common usage of hoversel.
This API automatizes changing label.

Reviewers: SanghyeonLee, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2963

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 15:10:29 +02:00
Jee-Yong Um 9a9cc71a8a elm_hoversel: refine hoversel scrollability function
Summary:
Some modifications for hoversel scrollability are applied.
For example,
The logic for generating scroller is changed. (newly added during activation)
If hoversel's contents are larger than hover,they will be resized to fit hover.
If hoversel is moved (by window rotation etc.), scroller will be resized.
Reduandant code are removed from popup for scrollability.

Test Plan:
You can see the sample for scrollable hoversel in second one
of "elementary_test hoversel".

Reviewers: Hermet, SanghyeonLee, cedric

Reviewed By: cedric

Subscribers: godlytalias, Hermet

Differential Revision: https://phab.enlightenment.org/D2926

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-04 14:56:54 +02:00
ChunEon Park 72d214a21f hoversel: rename api scroll_enabled_set to scrollable_set
modify api for consistency.
scrollable_set is more closed to other similar apis.
2015-09-07 20:41:34 +09:00
Jee-Yong Um a249d77d1d elm_hoversel: add elm_hoversel_scroll_enabled_set/get() API
Summary:
Currently, hoversel shows all items at the same time, but to limit
the size of contents and make it scrollable is neccesary to some users.
elm_hoversel_scroll_enabled_set/get() API makes the contents of hoversel
scrollable or not.

Test Plan:
The newly added scroll function is enabled for the second hoversel
in "hoversel" sample of elementary_test.

Reviewers: Hermet, raster, herdsman, cedric, tasn

Subscribers: JackDanielZ, cedric, Hermet

Differential Revision: https://phab.enlightenment.org/D2603

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04 15:51:39 +02:00
Amitesh Singh 64901de655 test_hoversel: add example of setting focus to item 2015-07-31 09:18:23 +05:30
Amitesh Singh d8ec1e5dde hoversel: Added "item,focused" and "item,unfocused" smart events for widget items.
@feature

Test Plan: elementary_test->hoversel focus

Reviewers: seoz, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D564
2014-02-26 01:26:49 +09:00
Daniel Juyung Seo f79a003b6b test_hoversel: Change the hoversel button text when an hoversel item is
selected.

This reveals hoversel bug on mobile profile that changes the size of
text parts on continuous item change.
2014-01-23 01:51:04 +09:00
Jihoon Kim 8de371066e elm_test: use EINA_TRUE or FALSE instead of 1 or 0 2014-01-07 16:48:58 +09:00
ami 02edf1abdb [hoversel] - Added evas smart signal "expanded" in hoversel. This patch depends on D373.
Test Plan: elementary_test -to Hoversel, Click on "Custom Item Style".

Reviewers: seoz, raster, cedric

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D381
2013-12-28 17:48:11 +09:00
ami 7dbda5f2d3 [hoversel] - Removed focus_direction since focus_cycle is applied on sd->hover.
Summary: removed focus_direction

Test Plan: elementary_test -> hoversel

Reviewers: seoz, raster

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D359
2013-11-30 15:34:55 +09:00
Amitesh Singh 08936d7f38 [hoversel] - Added focus support on hoversel items.
Summary: Focus support on hoversel items.

Test Plan: elementary_test->hoversel2

Reviewers: seoz, raster, Hermet

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D316
2013-11-13 20:39:48 +09:00
Daniel Juyung Seo 109c41b0f1 test_hoversel.c: print out hoversel item's text when it's selected. 2013-11-13 09:34:58 +09:00
Daniel Juyung Seo 5fae0149ca test_hoversel.c: removed unnecessary weight/align set. 2013-11-13 09:32:20 +09:00
Jean-Philippe Andre 877e122e7a elementary_test: remove ELM_LIB_QUICKLAUNCH
Refer to the previous commits for the reason.
Remove all #ifndef ELM_LIB_QUICKLAUNCH from the test files.
2013-11-05 10:05:01 +09:00
Daniel Juyung Seo 83db5ad972 elm_test: __UNUSED__ -> EINA_UNUSED. 2013-09-01 10:18:03 +09:00
Daniel Juyung Seo 3e8e2b2abd hoversel: flurish hoversel source/example/documentation a little bit more.
1. fixed documentation to be more descriptive.
2. added hoversel smart callback examples.
3. added internal callback description.
2013-08-30 18:31:29 +09:00
Daniel Juyung Seo 45d3dd116b test_hoversel.c: fixed wrong use case.
Do not set window resize object here and there.
Use elm_win_resize_object_add() only when you intended and needed.
2013-04-18 17:12:27 +09:00
Daniel Juyung Seo 069acc38d8 test hoversel/slider: use Eina_Bool for horizontal setter parameters. 2013-04-09 14:28:03 +09:00
Daniel Juyung Seo dc672e0d9a test_hoversel.c: make the test window larget to adopt the big hover object. 2013-04-03 20:06:32 +09:00
ChunEon Park 6941e2aca4 elementary/hoversel - renamed internal variable.
SVN revision: 84274
2013-02-21 04:46:28 +00:00
Daniel Juyung Seo ab4a5c11a8 elm test_hoversel.c: Remove unset icons.
SVN revision: 80080
2012-12-03 16:26:46 +00:00
Daniel Juyung Seo 264bbe0d8f elm test: Correct elm_win_resize_object_set() usage. Call evas_object_size_hint_weight_set() before calling elm_win_resize_object_set().
SVN revision: 79281
2012-11-14 10:49:45 +00:00
Carsten Haitzler 4b84720636 fix Ticket #1122
SVN revision: 73614
2012-07-12 11:11:21 +00:00
Gustavo Lima Chaves bbf0a4345e [elm] And now remove deprecated calls usage (WRT
icon/image thing).



SVN revision: 71473
2012-05-28 21:50:11 +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
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +00:00
Aharon Hillel d68601c04d elementary: Updated test_hoversel.c to do API testing
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68332
2012-02-23 13:58:37 +00:00
ChunEon Park b62129c878 elemenatry/hoversel - updated doc. deprecated APIs
elm_hoversel_icon_set
elm_hoversel_icon_get
elm_hoversel_icon_unset
elm_hoversel_item_data_get
elm_hoversel_item_label_get



SVN revision: 66350
2011-12-20 02:44:46 +00:00
Daniel Juyung Seo a817b43d33 elm: Removed all trailing whitespaces.
Why they are added even I'm removing them arbitrarily.


SVN revision: 63083
2011-09-02 04:09:17 +00:00
Carsten Haitzler 2283962009 make note of horizontal hoversel
SVN revision: 62802
2011-08-25 10:42:42 +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
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
Tom Hacohen 2bf521e3b6 Elm hoversel: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60861
2011-06-30 05:43:59 +00:00
Bruno Dilly 4ea66676b3 Fix some Wextra complains on elm bin
SVN revision: 53636
2010-10-19 18:25:22 +00:00
Christopher Michael 4edc6ac299 EVAS_HINT_EXPAND/EVAS_HINT_FILL changes in mass.
(Built and tested)



SVN revision: 42779
2009-09-28 19:23:33 +00:00
Carsten Haitzler d16c275e55 fix some more
SVN revision: 42482
2009-09-14 04:21:52 +00:00
Viktor Kojouharov 91dcee72db add disabled state for the hoversel widget
SVN revision: 42020
2009-08-26 16:43:17 +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