Commit Graph

77 Commits

Author SHA1 Message Date
Davide Andreoli 62fe9c4964 List: new signal: clicked,right with simple test
@feature
2014-12-29 12:18:04 +01:00
Anil Kumar Nahak 76e3372531 Focus: first item should be focused when there is no focused/selected item
Summary: First item of widget should be focused when focus comes to the widget for first time.

Test Plan:
elementary_test -to "Genlist Focus"
elementary_test -to "Gengrid Focus"
elementary_test -to "List Focus"
elementary_test -to "toolbar Focus"

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D1135
2014-07-21 18:55:55 +09:00
Daniel Juyung Seo 45e8b4c82e focus: Change new API names related to focus auto scrolling.
elm_config_focus_auto_scroll_bring_in_enabled_get/set()
 ->
elm_config_focus_autoscroll_mode_get/set()

The main reason is that bring_in_enabled_get/set() APIs are too restricted
and thus not flexible. I got more requirements for the focus autoscrolling
such as none, wholely visible not just bring_in and show. So it is correct
to add mode_set/get() APIs for the focus auto scrolling.

Thanks god, we've found this before the release :)

@feature
2014-05-11 22:46:16 +09:00
Amitesh Singh 8e0ffb8332 config: Added two APIs to enable/disable focus auto scroll bring in feature.
Summary:
 Summary:
    - APIs
      - elm_config_focus_auto_scroll_bring_in_enabled_set
      - elm_config_focus_auto_scroll_bring_in_enabled_get
    - list/genlist/toolbar/gengrid: Using this feature for scrolling for focus movement.
    - Added test case in "List Focus", "Genlist Focus", "Toolbar Focus" and "Gengrid Focus"

    @feature

Test Plan: elementary_test->"List Focus", "Genlist Focus", "Toolbar Focus" & "Gengrid Focus".

Reviewers: raster, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D799
2014-04-27 04:15:26 +09:00
Daniel Juyung Seo 9607969c6a test_list: Removed wrong box packing from list focus example. 2014-04-07 00:58:22 +09:00
Amitesh Singh 68b3bc3583 focus: Renamed the config APIs _item_focus_on_selection_get/set to _item_select_on_focus_disabled_set/get()
Summary: - List: On Enter/Space/KP_Enter key press, focused item gets selected.

Test Plan: elementary_test->List Focus

Reviewers: seoz, raster

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D704
2014-04-06 00:10:55 +09:00
Amitesh Singh 73b16ef210 focus: Added optional focus feature - item focus on selection.
Summary:
Currenly focus and selection happens together. This patch makes item focus
on selection optional by configuration and API.

- configuration: "item_focus_on_selection".
- API: elm_config_item_focus_on_selection_get/set.
- Implemented item_focus_on_selection feature in elm list.
@feature

Test Plan: elementary_test->List focus

Reviewers: raster, seoz, woohyun

CC: seoz

Differential Revision: https://phab.enlightenment.org/D676
2014-04-03 19:11:57 +09:00
Hosang Kim 7b4a539e9e list: Add item loop feature
Summary:
If item loop feature is enabled, item is moved infinitely.

1. add new widget api - item_loop_enabled
2. add smart event using new config - elm_list.c
3. add demo - test_list.c/list_focus

Reviewers: seoz, woohyun, raster, jaehwan, Hermet

CC: singh.amitesh, c

Differential Revision: https://phab.enlightenment.org/D619
2014-03-24 17:35:07 +09:00
Daniel Juyung Seo e79bbb2fb5 list: Check disabled status of an item in nearest visible item.
Also added a test for it.
2014-03-24 01:52:07 +09:00
Daniel Juyung Seo f3e7478a08 test_list: Made the list focus window bigger for a better testing. 2014-03-23 21:40:56 +09:00
Amitesh Singh fd4ad3747a test_list,test_gengrid,test_genlist: Added disabled items for better testing.
Test Plan: elementary_test->genlist focus, list focus, gengrid focus

Reviewers: seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D651
2014-03-23 19:19:38 +09:00
Daniel Juyung Seo e69fc96dee test_list: Added focus move policy set example to test_list. 2014-03-23 02:04:16 +09:00
Daniel Juyung Seo e61185831d test_list: Added clicked callback to buttons and made focus highlight optional. 2014-03-22 19:17:01 +09:00
Daniel Juyung Seo ba25b75c3e test_list: Added focus/selection API test for list focus test case.
Added two buttons.
1. focus 3rd list item by elm_object_item_focus_set() API after 1.5 seconds.
2. select 3rd list item by elm_list_item_selected_set() API after 1.5 seconds.
2014-03-20 04:02:23 +09:00
Daniel Juyung Seo aa04d79e2e test_list: Used frame for focus option box. 2014-03-20 03:46:17 +09:00
Daniel Juyung Seo 067bf48b56 test_list: Refactor 'List Focus' test to reveal more focus related
bugs.

- Added Up, Down, Left, Right buttons around the list.
- Changed list focus test name.
  test_list8 -> test_list_focus
  test_list9 -> test_list_horiz_focus
- Incresed window size accordingly.
2014-03-09 20:11:29 +09:00
Daniel Juyung Seo f9559db8b5 test_list: Added more callbacks for a better testing. 2014-03-08 03:26:48 +09:00
Amitesh Singh 069a3de27d list: implemented widget item focus feature.
@feature

Summary:

  #    Added "item,focused" and "item,unfocused" smart callbacks.
  # Added elm_object_focused_item_get() in elm_widget
  # Added elm_object_item_focus_set and elm_object_item_focus_get() APIs for
  # Added one argument in existing _focus_highlight_geometry_get(...,is_next)
  This is required to find out previous and current widget item.
  # Added a elm_win function _focus_highlight_start() which starts the focus

Test Plan: elementary_test->List Focus , List Horizontal Focus

Reviewers: seoz, woohyun

Reviewers Comments: SeoZ - there are some known bugs. we will actively
fix them in a near future.

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D532
2014-02-26 01:26:22 +09:00
Daniel Juyung Seo 68a8e25672 test_list: Disabled 'focus on selection' as it is turned off by default.
- This can be enabled by checking the check buttons.
- Switches 'focus on selection' and 'focus animation' check buttons.
2014-02-18 03:49:19 +09:00
Carsten Haitzler f8da5f2282 list test - make test item never able to access invalid mem
fixes CID 1040020
2014-01-09 15:13:51 +09:00
Daniel Juyung Seo 04c2f9d32f test/diskselector,icon,image,list: Removed unnecessary image resizable
set true because resizable is already true by default.
2014-01-08 10:14:47 +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
Jihoon Kim 052cc50c57 elm_test: use EINA_TRUE or FALSE as parameter of elm_image_resizable_set 2013-12-19 19:20:20 +09:00
Daniel Juyung Seo d5a74454ee elm_test: call evas_object_show(win) after its content creation.
- refer commit 64fd5a825b24591aedb9cac695d03f5b4d867442 for the detail
explanation.
- also move evas_object_resize(win, xx) alongside evas_object_show(win).
2013-12-15 05:47:39 +09:00
Daniel Juyung Seo f122be13c2 test_list.c: Fixed list multi select internal structure name. 2013-11-06 13:11:41 +09:00
Daniel Juyung Seo 9399c0c3df test_list.c: Splitted list multi select example. 2013-11-06 03:23:41 +09:00
Daniel Juyung Seo a5c3b45e84 test_list.c: fix list focus example to enable the focus highlight and animation for the proper window. 2013-11-06 03:09:59 +09:00
Daniel Juyung Seo 23822e1288 test_list.c: Added elm_list_multi_select_mode_set() example. 2013-11-05 14:18:54 +09:00
Daniel Juyung Seo b2d3b02ffd test_list.c: Internal refactoring.
1. Use EINA_FALSE instead of 0
2. Set the parent widget correctly.
3. Remove unused multi_select_set.
4. Give a meaningful label to the first list item.
5. Call item_selected_set to the second item.
6. Remove unnecessary box.
2013-11-05 14:18:53 +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 46f28f5231 test_genlist.c test_list.c: Added focus highlight animate enable/disable button to genlist and list focus examples. 2013-08-11 19:09:49 +09:00
Daniel Juyung Seo 44c59ce40e test_list.c: added elm_object_item_part_text_set sample. 2013-07-13 16:05:59 +09:00
Carsten Haitzler 11d57a21f6 add disabled list items for horizontal lists in test 2013-07-07 10:56:36 +09:00
Yossi Kantor 2e1eacd0ba elementary: Focus improvement for elm_genlist and elm_list
Summary:
This patch applies automatic focus feature to elm_genlist and elm_list
containers.
Currently (prior to this patch), focusable widgets inside list items of both
containers receive focus by an explicit mouse click over them, and lose focus
when focus goes to someone else in the window.
This change also adds the ability to:
- focus by default on the first-from-right focusable widget upon items selection
- lose the focus when another item is selected (focused or not)
- move focus between focusable widgets inside the same item by left and right
arrow keys accordingly (up and down keys when elm_list is in horizontal mode)

Focus is supported for horizontal and vertical lists.

Tests have been added for genlists and lists to check focus feature.
2013-05-12 15:32:33 +03:00
Daniel Juyung Seo 6df68b490d test_list.c, test_genlist.c: fixed wrong edge,top/bottom/left/right smart callback usecases.
1. use correct name: scroll,edge,top -> edge,top.
2. use edge callbacks in the right test case.
2013-04-17 14:16:57 +09:00
Daniel Juyung Seo f4e8c92f0d elm list: Fixed list separator size bug. Patch by Thiep Ha <thiep.ha@samsung.com>
On Sun, Dec 9, 2012 at 11:11 AM, thiep ha <thiep.ha@samsung.com> wrote:

    Dear All,

    In elementary list, the separator is not correctly set.
    I would like to send a patch to correct the list with separator.
    I also add an example named "List Separator" to test it.

    Please review this patch.

    Best Regards,
    Thiep Ha

SVN revision: 82040
2013-01-03 06:23:33 +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
Bruno Dilly 7ae6b9605c Elementary: add test exposing issue on list with ELM_OBJECT_SELECT_MODE_ALWAYS
Items callbacks are called twice.

Going to investigate that, since it is breaking ephysics_test.



SVN revision: 73375
2012-07-05 19:00:21 +00:00
Gustavo Lima Chaves d4f88af273 [elm] Elm list is now a SCROLLABLE layout.
This means it inherits from the layout class and implements the
scrollable interface.



SVN revision: 73310
2012-07-04 21:43:05 +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 397215dc27 elm test_list.c: Revised code.
SVN revision: 70317
2012-04-19 06:52:42 +00:00
Daniel Juyung Seo 243f5ab36f elm test_list.c: Removed unwanted/unexpected codes from r70265
SVN revision: 70316
2012-04-19 06:52:38 +00:00
cnook 45aad4044a From: cnook <kimcinoo@gmail.com>
Subject: [E-devel] [Patch][elementary_test] test_list

I had added test code for the elementary. but I made a pause it
because of
some reasons and just started again.
Today I have attached a patch for the elm_list which does not have test
code for the API elm_list_item_prev();
Please review the attached patch and give any feedbacks. I'll be back
with
other patches. Thanks!



SVN revision: 70265
2012-04-17 10:59:16 +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
Daniel Juyung Seo ca0f384460 elm test_list.c: Changed to use elm_win_util_standard_add() for normal cases.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 69053
2012-03-08 11:25:36 +00:00
Daniel Juyung Seo 9c3fa866f5 elm: Applied icon/image API changes.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68728
2012-03-05 15:10:59 +00:00
Jihoon Kim c3e40612c1 elementary_test: change deprecated APIs
SVN revision: 68429
2012-02-25 00:35:32 +00:00
Aharon Hillel 49299c709e elementary: Updated test_list.c to do API testing
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68335
2012-02-23 13:58:46 +00:00