Commit Graph

61 Commits

Author SHA1 Message Date
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
Tom Hacohen 11f6738a6c Elm pager: remove all references from elm's tree.
SVN revision: 68016
2012-02-16 09:26:35 +00:00
ChunEon Park fd909fc341 elementary/list - deprecated elm_list_item_del()
please use elm_object_item_del().



SVN revision: 67598
2012-01-30 06:06:03 +00:00
ChunEon Park 11282d3953 Elementary/list - Elm_List_Item -> Elm_Object_Item
SVN revision: 67110
2012-01-12 03:03:56 +00:00
Daniel Juyung Seo 4a50aafa60 elm list: Applied recent list changes.
SVN revision: 66823
2012-01-04 01:28:33 +00:00
Carsten Haitzler f6a3fc40e1 stop using deprecated calls.
SVN revision: 66681
2011-12-30 10:02:19 +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 36be2846c9 Elm button: Fix the tests to use the new elm_object_text_set/get API.
SVN revision: 60800
2011-06-29 07:11:54 +00:00
Carsten Haitzler c44f45485f big move forward. scrolled entry and entry merge into entry. entry now
can be scrollable or not. scrolled entry now just calls entry calls
and is marked as dperecated to be killed off in the future so no need
to document it etc. edje external also goes.



SVN revision: 60438
2011-06-17 09:44:31 +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 7023c0006d Elementary bin: Use EINA_TRUE/EINA_FALSE for Eina_Bool parameters.
SVN revision: 58688
2011-04-15 11:44:05 +00:00
Daniel Juyung Seo ed5cfa443c Elementary test_list.c: Fixed formatting.
Use ecrustify and remove trailing whitespaces.


SVN revision: 58369
2011-04-06 01:10:19 +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
Bruno Dilly 715dbba805 This small patch allows to get a smart callback when the scrollers in an
elm_list or in an elm_genlist fire the edge,{top,bottom,left,right}
signals, backporting them to the list object.

The new smart callbacks called are:
 · "scroll,edge,top" - the list is scrolled until the top edge
 · "scroll,edge,bottom" - the list is scrolled until the bottom edge
 · "scroll,edge,left" - the list is scrolled until the left edge
 · "scroll,edge,right" - the list is scrolled until the right edge

SVN revision: 3



SVN revision: 54393
2010-11-10 02:48:59 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Gustavo Lima Chaves 7d4f42fe00 New list layout: horizontal.
Now one can set lists to dispose its items horizontally, too.
elm_list_horizontal_mode_set(), whose name was bogus and would
conflict with the new methods, got renamed to elm_mode_set(), along
with the getters.

This is coming along to help a widget using lists which has a
horizontal mode. The default theme for horizontal items is kinda ugly
for default lists, but one can always improve it :) (in a hurry
now).

Also, I'm introducing a new mode for Elementary lists: expand.



SVN revision: 53640
2010-10-19 20:19:12 +00:00