Commit Graph

2020 Commits

Author SHA1 Message Date
Amitesh Singh eb3d69a8ec test_glview: Refractored the shader/program log code.
Summary:
Added a function print_glerror_log to handle both shaders and programs
logs.

Test Plan: elementary_test -> glview

Reviewers: raster, jpeg, seoz

Reviewed By: seoz

Subscribers: anand.km, seoz

Differential Revision: https://phab.enlightenment.org/D1826
2014-12-27 22:12:30 +09:00
ChunEon Park cf25180e0c transit: revise tween sample 2014-12-26 11:23:12 +09:00
Jee-Yong Um 30d8089ff5 elm_transit: Append Elm_Transit_Tween_Mode sample to elementary_test
Summary:
A sample for elm_transit_tween mode which can be executed via
"Effects"-"Transit Tween Mode" button in elementary_test

Reviewers: Hermet

Subscribers: Hermet

Differential Revision: https://phab.enlightenment.org/D1817
2014-12-26 10:27:15 +09:00
ChunEon Park ec9f950aa3 transit: revise sample 2014-12-18 20:11:36 +09:00
ChunEon Park b8887c6a1e transit: clean up beizer test code...
oh please, this must be the last touch!
2014-12-18 15:16:59 +09:00
ChunEon Park d2e2bd3f05 transit: print more detail control points message in the bezier sample 2014-12-18 14:51:30 +09:00
ChunEon Park 036bf49767 transit: adjust control point position range in the bezier sample 2014-12-18 14:37:39 +09:00
ChunEon Park 94e60a010e transit: add bezier curve tween mode example 2014-12-18 14:33:47 +09:00
ChunEon Park c8ca7e6ba9 transit: renamed to explicit examples. 2014-12-18 09:39:37 +09:00
Kairong Yin f2cf41dc1c Fix T1525 New Append/Prepend Gengrid Item cannot be seen in viewport
Reviewers: seoz, raster

Differential Revision: https://phab.enlightenment.org/D1392
2014-12-16 19:49:54 +09:00
Jyotiprakash Sahoo 17419ec81c genlist: added reorder feature on key events
Summary: This feature allows user to reorder items using up/down keys.

Test Plan: elementary_test -to "Genlist Reorder Mode"

Reviewers: singh.amitesh, raster, seoz, SanghyeonLee

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

Conflicts:
	src/bin/test_genlist.c
	src/lib/elm_genlist_legacy.h
2014-12-16 18:20:32 +09:00
woochan lee a5de98c5f6 test_check: deleted useless code.
Summary:
in this test sample, evas object size hint weight, align set API doesn't need to make view.
and line changed to code consistency.

Test Plan:
1. run elementary_test.
2. execution check test.
3. window resize.
   - some objects align to left side of window. in the other hands, some objects align to center of window.

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D1781
2014-12-16 16:10:37 +09:00
Daniel Juyung Seo e7726d8f01 test_genlist: Remove unused value.
This fixes coverity CID 1258428.
2014-12-14 12:07:06 +09:00
Daniel Juyung Seo 56bc2bddcb test_genlist: Refactor genlist focus test.
- Add more sample items.
- Clear genlist on focus callback only for the specified item.
- Fix broken item index handling
- Remove unnecessary app data structure members.
- Free unused item class.
2014-12-14 04:13:13 +09:00
Daniel Juyung Seo 7f9c8f3d76 test_win_state: Add win lower and deiconify samples. 2014-11-28 23:08:36 +09:00
Daniel Juyung Seo 1144058032 test_3d: Set indicator format explictly.
Indicator text is not visible if one does not set the indicator format.
This fixes T1867.
2014-11-26 20:47:58 +09:00
Daniel Juyung Seo fafd60b842 config: Refactor scrolling configuration dialog.
- Group thumb scroll configurations with frame.
- Move thumb scroll acceleration config below thumb scroll config.
2014-11-26 09:50:43 +09:00
Daniel Juyung Seo 7af14b914a test_photocam: Enhance photocam test.
- Remove wrong global variable usage. This becomes problematic when
you run multiple photocam test instances.
- Fix formatting.
- Add more comments.
2014-11-26 09:40:38 +09:00
Daniel Juyung Seo 3feb282c86 test_photocam: Remove unnecessary data set. 2014-11-26 09:22:23 +09:00
Anand 1a7d1e5f97 config: Fixed null return.
Reviewers: cedric, singh.amitesh, seoz

Differential Revision: https://phab.enlightenment.org/D1663
2014-11-26 07:35:04 +09:00
Daniel Juyung Seo dae6d34f39 test_menu: Fix wrong parent set.
Set elementary widget as an elementary widget's parent on its
creation.
2014-11-25 22:17:46 +09:00
ChunEon Park 667111c1e5 test/evasmap3d: let better quality as default. 2014-11-24 16:50:31 +09:00
Daniel Juyung Seo 805590526e test_notify,popup: Add key event reacting examples.
There is a bug in notify. This test reveals the bugs :)
2014-11-24 15:29:41 +09:00
Daniel Juyung Seo add8ef22a6 test_slider: Fix wrong slider description. 2014-11-23 20:42:10 +09:00
Daniel Juyung Seo 188297c5af test_genlist: Add elm_genlist_item_subitems_get sample. 2014-11-21 12:21:45 +09:00
Hosang Kim 008f37e18e Scroller: Add step size set API
Summary:
Application do not change step size because only interface API is existed.

@feature

Test Plan: elementary_test -> scroller -> change step size

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D1677
2014-11-20 20:29:41 +09:00
Daniel Juyung Seo 2f20ed2fcc test: Use ELM_SCALE_SIZE instead of elm_config_scale_get().
Newly introduced macro ELM_SCALE_SIZE at 1.12 makes your app more
scalable.
2014-11-13 00:08:42 +09:00
Daniel Juyung Seo 49fae24f74 test_progressbar: Fix weight/align size hints.
Also put weight set first. It is easier to understand logically.
2014-11-13 00:00:19 +09:00
woochan lee aec1bec0b9 test_progressbar: stop btn callback fixed, unnecessary code deleted
Reviewers: Hermet, seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D1664
2014-11-12 23:42:20 +09:00
ChunEon Park 6ba886cb1c example/evasmap3d: change to simpler call. 2014-11-10 20:15:16 +09:00
Youngbok Shin 40bc9198aa label: Reset sd->lastw as '-1' in some elm_label APIs for ensure the sizing_eval.
Summary:
In some cases, elm_label doesn't calculate its min size if it is not resized from outside.
It is happened when only elm_label used with elm_label_line_wrap_set API.
The following APIs can change min size of the widget, so we can't skip the sizing_eval func.

elm_label_line_wrap_set
elm_label_line_width_set
elm_object_text_set -> _elm_label_elm_layout_text_set will be called.

@fix

Test Plan:
I put a change to test_notify.c for test.
elementary_test notify
-> click "top" button. -> You can't see elm_label without the patch.

Reviewers: woohyun, tasn, seoz

Reviewed By: seoz

Subscribers: herdsman

Differential Revision: https://phab.enlightenment.org/D1652
2014-11-10 14:06:32 +09:00
Daniel Juyung Seo 0645ba436d test_box: Add box align test sample.
This shows how elm_box_align_set() works.
2014-11-09 18:36:29 +09:00
Daniel Juyung Seo d883aa2499 test_box: Remove unnecessary object resize.
- Do not resize window's resize object manually.
- Do not resize box's children objects manually.
2014-11-09 16:05:01 +09:00
ChunEon Park bdaf008d02 elementary_test/3d: improve sample.
since the previous cube hide the progressbar control,
user couldn't control it.

So make it cube transparency and pass events to progressbar.
2014-10-30 17:26:49 +09:00
ChunEon Park c38da29ec3 elementary_test/3d: remove dead code. 2014-10-30 17:22:43 +09:00
ChunEon Park 28bd64170e elementary_test: support --help command line. 2014-10-30 17:02:29 +09:00
Thiep Ha ada2b6abec entry/test: make scrollable entries visible
Summary:
Two scrollable entries' size is too small to view.
This patch expands window size to have suitable size for entries.

@fix

Reviewers: Hermet, seoz, woohyun, tasn

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D1597
2014-10-29 08:37:38 +00:00
Ryuan Choi 9ddd97c7ff Introduce current_name_{set|get}
Summary:
When fileselector is opened, it would be nice to be able to provide initial filename.
Like "Untitled Document" in Gedit, when save for the first time.

More details in Gedit,
Gedit provies default name, "Untitled Document" and does not change default name
while navigating directories.
Once we selected any file, Gedit changes value of name entry to selected filename and
it is not also changed while navigating directories.

@feature

Reviewers: seoz, yakov-g

Reviewed By: yakov-g

Subscribers: seoz

Maniphest Tasks: T1664

Differential Revision: https://phab.enlightenment.org/D1504
2014-10-06 08:08:24 +09:00
Tom Hacohen 236bab8d53 Change according to recent Eo changes, and fix related wrong unrefs.
eo_add()'s counterpart is eo_del, not eo_unref. Regardless of that, some
objects were being double-deleted which spew out some eo errors. These
things should now be fixed.

bc6b6aa457 is the relevant EFL commit.
2014-09-30 14:54:52 +01:00
Tom Hacohen f72bcf2b64 Eo: Get rid of eo_add_custom.
This has been deprecated for a while and is now completely dropped.
2014-09-25 10:46:04 +01:00
Daniel Juyung Seo e072f17b5a test_genlist: Fixed wrong frame title in the genlist focus test.
Test Plan: elementary_test -> genlist focus

Reviewers: Hermet

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1479
2014-09-24 02:12:57 +09:00
Daniel Juyung Seo 88499a2660 test_radio: Did internal refactoring and added more group test example. 2014-09-20 17:23:03 +09:00
Daniel Juyung Seo 4bb375af97 test_radio: Added a changed callback to a radio group. 2014-09-19 02:49:30 +09:00
Daniel Juyung Seo 55050fef9d test_genlist: added a test to clear the genlist no item,focused call. 2014-09-17 16:37:55 -07:00
Daniel Juyung Seo 0d5dad908e test_genlist: Fixed typo in the check button. 2014-09-07 22:06:47 +09:00
Daniel Juyung Seo 9954b7391f test_gengrid: Added pressed and released callbacks for more tests. 2014-09-07 22:00:20 +09:00
Daniel Juyung Seo d5cfb8e0b3 test_genlist: Added more focus tests for popup creation on item mouse down and item select. 2014-09-07 19:43:24 +09:00
Daniel Juyung Seo e644c842e1 test_genlist: Added 'add more items' button to genlist focus test. 2014-09-07 18:46:15 +09:00
Daniel Juyung Seo 3518675d31 test_popup: Renamed focus highlight button name correctly. 2014-09-07 18:10:47 +09:00
Daniel Juyung Seo 79788f8c12 test_genlist: Refactored internal codes.
Created internal function _test_genlist_focus_option_panel_create() as it is
getting too big.
2014-09-07 17:49:33 +09:00
Daniel Juyung Seo 2533b0af79 test_genlist: Added genlist clear scenario on 5th item select. 2014-09-06 01:47:45 +09:00
Daniel Juyung Seo 13180c55d8 test_genlist: Removed unnecessary casting. 2014-09-06 01:33:22 +09:00
Vincent Torri ea6246a8ee autotools: simplify .pc.in.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-04 17:33:05 +02:00
Vincent Torri 8c705cac78 autotools: add m4 macro to check for options
This simplify autotools in elementary by recycling the same m4
and also compilation flags. Less code to read and maintain.
2014-09-04 17:33:05 +02:00
Vincent Torri 092f40579a configure.ac: Clean up and add macros for backend-checks.
Add an m4 macro and start using it (also fixes some issues).
2014-09-02 10:29:51 +01:00
Vincent Torri ea99904b1d Reorganise configure.ac layout (and simplify)
This includes:
Bumping versions of autoconf and automake.
Remove or replace deprecated macros.
Use correct paths.
2014-09-02 10:29:50 +01:00
Thiep Ha 8c0dcde37d label: Fix size calculation for wrapped label
Summary:
Label size is incorrectly calculated (text does not wrap) if
elm_label_line_wrap_set() is called before elm_label_wrap_width_set().

@fix

Test Plan:
The label3 test case is added to show the bug case.
In label3 test case, if we switch the calling sequence of
elm_label_line_wrap_set() and elm_label_wrap_width_set(),
the result is different.

Reviewers: raster, seoz, woohyun, Hermet

Differential Revision: https://phab.enlightenment.org/D1369
2014-09-01 23:05:30 +09:00
Carsten Haitzler 6c7619b0ea el - ELM_MAIN() cleanup. don't need shutdown in elm_main() anymore
this shouldnt be an abi or api break. it simply makes elm_shutdown
iside elm_main() optional. this is cleaner and more symmetric
2014-09-01 15:29:07 +09:00
yinsc 55cc03ef05 Fix T1482 Fix the issue:elementary_test will crashed after exist genlist tree
Summary: Removed all global variables for item class

Reviewers: zmike, raster, seoz

Maniphest Tasks: T1482

Differential Revision: https://phab.enlightenment.org/D1318
2014-08-28 03:53:24 +09:00
Carsten Haitzler 2f66f5a581 elm test - add dialog window test 2014-08-25 17:11:02 +09:00
Carsten Haitzler d14c0eca37 elm config tool - remove unnneeded elm engine code. 2014-08-23 12:44:21 +09:00
Davide Andreoli 4052f7521e Genlist: do not segv if the user clear the list on item double-click
@fix
moved the user callbacks call at the end of the function, so the user
is able to modify the list without making the code below the call to
fail miserably.

Also improved the Genlist Del test to also include this case.
2014-08-09 17:53:46 +02:00
Carsten Haitzler 3b9ecf8c80 elm config - expose vsync config so people can turn it on
just modifies config tool so vsync can go on as it should given efl
vsync work etc.
2014-08-06 00:08:44 +09:00
Carsten Haitzler f54afe89cc elm - add apis to deal with accel perference
this deals with an issue brought up today on irc - seemingly rage
asking for accel is causing segvs in vbox with its gl accel subsystem
- the only way to disable this is an env var, and this is unfriendly,
so make config gui and stuff to mess with accel preference to fix this.
2014-08-06 00:04:11 +09:00
Carsten Haitzler e741a19b21 fix genlist/grid search item patch to be simpler and just better
better - why?

1. no reliance on fnmatrch headers - have special enums for this so
fnmatch is an internal detail (casefole may not exist)
2. don't leak strduped strings - free them when done
3. have the same code for genlist and grid (dup for now until an
interface makes it the same search interface)
4. improve docs
5. get right @since version
6. use label get func in item class - providing a func won't work when
multiple items of multiple classes exist in the list
2014-07-24 12:41:33 +09:00
Jyotiprakash Sahoo d9f14f194b gengrid: Add function to search item by string.
Summary: This function allows user to search for item in Gengrid.

Test Plan: elementary_test -to "Gengrid Item Search By Text"

Reviewers: seoz, singh.amitesh, Hermet, raster

Differential Revision: https://phab.enlightenment.org/D1178
2014-07-23 11:35:20 +09:00
Ryuan Choi 39cde4d628 test_sys_notify: Refactoring to solve weird behavior when tested with more then two instances
- _ev_handler can't know whether elm_win still exists, so changed log style from notify to printf.
  In addition, release the callbacks when elm_win is destroyed.
- use elm_sys_notify_send instead of elm_sys_notify_simple_send to show more functionality.
- remove static variables not to print warnings when with more than two test_sys_notify pannel.
2014-07-23 11:01:41 +09: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 fb09956f86 test_toolbar: clean up clicked callback usage.
- Removed unselected handling routine. As this is clicked callback,
 there will be no unselected status for the clicked item in clicked
 callback.
- Removed check for event_info. In the clicked callback, event_info
 should be always valid.
- Changed internal variable name for the more item.
2014-07-20 01:52:48 +09:00
Daniel Juyung Seo fbf2c58127 toolbar: added selected and unselected smartcallbacks to toolbar.
- Item based widget should emit this signal. This is good for the
consistency and makes application developers easy to guess.
- Added test case to elementary_test -> toolbar

@feature
2014-07-20 01:46:35 +09:00
Daniel Juyung Seo bf13cdc72e test_toolbar: removed unnecessary EINA_UNUSED.
event_info is used.
2014-07-20 00:58:59 +09:00
Daniel Juyung Seo e36e9cf012 test_win_state: changed internal callback function name and splitted a focus callback for a better focus debug. 2014-07-15 01:05:47 +09:00
Daniel Juyung Seo 05854d4156 test_genlist: removed unnecessary spaces. 2014-07-10 00:30:48 +09:00
Carsten Haitzler 578d366d23 theme fix - fix disabled check, radio, toolbar with no label or icon 2014-07-07 16:58:00 +09:00
Jaeun Choi f5b762d5e8 panel: add scrollable feature
This implements scrollable interface in elm_panel so that users can drag open/close panel.
Tap & hold on the edge and panel handler will appear.

Left scrollable panel is implemented in elementary_test > Panel Scrollable.

@feature
2014-07-07 15:08:45 +09:00
Chinmaya 84f5de5a74 Gengrid: In reorder & sd->horizontal mode, the condition must be checked for item_loop_enable set or not. Also added a check button to enable reorder mode in gengrid 2.
Summary:
The bug was there when reorder mode and sd->horizontal mode is enabled but item_loop_enable
is not set, then also the loop was occuring with right key event.

Test Plan: elementary_test -to "gengrid 2"

Reviewers: raster, seoz, eagleeye, SanghyeonLee

CC: seoz

Differential Revision: https://phab.enlightenment.org/D1121
2014-07-07 12:30:21 +09:00
WooHyun Jung 70a33c9d11 focus: when focus_highlight is enabled, it should be shown immediately. 2014-07-04 11:16:59 +09:00
Jaeun Choi f9ef6ece32 Revert "panel: add scrollable feature"
This reverts commit a47eef78c4f8e41708d54ddea96fe7e7f5511df4.

This will be added after second merge window opens.
2014-06-26 14:33:41 +09:00
Jaeun Choi 3003957af8 panel: add scrollable feature
This implements scrollable interface in elm_panel so that users can drag open/close panel.
Tap & hold on the edge and panel handler will appear.

Left scrollable panel is implemented in elementary_test > Panel Scrollable.

@feature
2014-06-25 23:43:18 +09:00
Daniel Juyung Seo ddd3273cf8 test_progressbar: removed unnecessary null check. 2014-06-18 20:53:33 +09:00
Stefan Schmidt 16248748c6 test_progressbar: Verify incoming data object at the beginning
Align with how pd is checked for in other functions here. No need to
check before free() as it is done internally anyway.

CID: 1216621
2014-06-17 11:25:46 +02:00
Vincent Torri 0d6cacb743 backend: remove Windows CE support Windows CE is dead and buried and its gcc port is even more dead and I don't believe in zombies 2014-06-12 03:12:15 +02:00
Jean-Philippe Andre 2ffb942d5a Win32: Fix some compilation warnings
Reported by vtorri, thanks
2014-06-11 14:25:47 +09:00
Anil Kumar Nahak bdb51ddd45 genlist: Focus out of genlist viewport area on resize fixed
Summary:
The focus of genlist was coming out of genlist's viewport area on resizing(shrinking).
This is fixed in this patch.

Test Plan: elementary_test -to genlist5, elementary_test -to fileselector

Reviewers: seoz, singh.amitesh, nirajkr

Differential Revision: https://phab.enlightenment.org/D949
2014-06-10 19:29:47 +09:00
efl b087e80e9b Gengrid: Added horizontal item loop feature.
Summary:
If item loop is enabled, the item moves infinitely in
         horizontal manner (from right to left and from left to
         right).
         Need to implement:
             -for reorder mode and horizontal mode.
         @feature

DEPENDs On D841

Test Plan: elementary_test -to gengrid2

Reviewers: seoz, eagleeye, SanghyeonLee, raster

CC: seoz, raster

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

Conflicts:
	src/lib/elm_gengrid.c
2014-06-10 15:00:09 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Anil Kumar Nahak c72174031d fileselector: Added focus cycle feature.
Summary:
Previously there was no focus_direction & focus_next.
These functions are added in filesector winset for currect focus movement inside the winset.

Test Plan: elementary_test->"fileselector"

Reviewers: raster, seoz, nirajkr, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D913
2014-05-29 11:35:46 +09:00
bluezery 044b99a2f1 elm_map: Add new elm_map_region_zoom_bring_in() API
Summary:
By using this API, we  can do region show & bring in concurrently.
This needs some tuning more because some main layouting logic in map
needs to be modified to support more smooth animation.
I will spare my time to do that later.
@feature

Reviewers: Hermet, raster, stefan_schmidt

Reviewed By: raster

CC: Jaehyun

Differential Revision: https://phab.enlightenment.org/D887
2014-05-28 17:08:01 +09:00
Kateryna Fesyna 28e73198f7 Genlist: Add function to search item by string.
Summary:
This function allows user to search for item in Genlist.
It takes four search parameters:
1. pointer to function to get text of the item. It could be the same with item's
   get_text function. This parameter is added to let user use the specific search key
   and to avoid problems with setting item's text, that is not constant.
2. pointer to the item from which search should start.
3. search pattern.
4. fnmatch() flags.
To check it's usage the new test is added to the elementary_test (Genlist Item Search By Text)

Reviewers: cedric, seoz, raster

CC: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D566
2014-05-27 15:55:05 +09:00
wonguk.jeong c3c0c7abc3 test_progressbar: delete timer when progressbar is destroyed.
Summary:
elementary_test -> progressbar/progressbar2 -> press start -> close window
-> annoying message is shown due to API invoking for already free'd progressbar

Test Plan: elementary_test -> progressbar/progressbar2 -> press start -> close progressbar/progressbar2 window

Reviewers: raster, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D888
2014-05-26 15:25:28 +09:00
Jean-Philippe Andre 8e45bb869e elm_test: Set PACKAGE_LIB_DIR to fix windows runtime 2014-05-20 16:37:17 +09:00
Daniel Juyung Seo 4f056651ac focus: apply the focus API change during the development phase.
This fixes the commit 422b8717 which was pushed to master without
considering the API change.
2014-05-17 20:20:52 +09:00
Daniel Juyung Seo c3acc8d0db Revert "Revert "focus: Fixed the animation issue related to bring_in.""
This reverts commit e4ae67535672d04eec9eb368b71c72932cc0f757.

This will be fixed in a next commit.
2014-05-17 20:20:07 +09:00
Carsten Haitzler e7563a179c cursor test - make button expand to test window edges with cursor 2014-05-16 19:04:37 +09:00
SangHyeon Lee c565ec1cde [Gengrid] Fix gengrid item position update bug, when item is reordered or deleted.
Summary:
When gengrid item is reordered or deleted, gengrid didn't update item's position.
         This Patch update item's position when item is placed. if middle of item deleted,
         every item after the deleted one, will re-postion on _item_place function, so they
         will be update there position well.

Test Plan:
modify test_gengrid grid_sel fuction to print there position. so when item selected,
           they print there position and it works fine both horizontal and vertical.

Reviewers: bluezery, seoz, raster

Reviewed By: raster

CC: Hermet, chinmaya061

Differential Revision: https://phab.enlightenment.org/D855
2014-05-15 12:13:23 +09:00
Youngbok Shin be3e33171f entry: Fix a test case for editable, non-editable entry.
Summary:
elm_entry_context_menu_disabled_set API is called to wrong entry.
It should be called to "en2" that added for testing the API.
@fix

Test Plan: 1. elementary -to entry7

Reviewers: woohyun, seoz, tasn

Reviewed By: seoz

CC: herdsman

Differential Revision: https://phab.enlightenment.org/D852
2014-05-13 15:50:05 +09:00
Carsten Haitzler 52dacc461f Revert "focus: Fixed the animation issue related to bring_in."
This reverts commit 422b8717660853ff099359dc3cd926e56f1b1665.
2014-05-13 11:32:00 +09:00
Anand 94bc3ce471 focus: Fixed the animation issue related to bring_in.
Summary:
Calculating the coordinate of the object to retain the focus with in view port.
Earlier focus was moving out of view port.

Test Plan:
elementary_test-> "Focus 3". Enable the Focus Auto scroll bring in and use
keys to move focused item.

Reviewers: raster, seoz, singh.amitesh, nirajkr

Differential Revision: https://phab.enlightenment.org/D822
2014-05-13 11:24:20 +09:00
Jean-Philippe Andre e3b0582c8d test_dnd: Fix build for windows
There is no strndup (with our compilation flags).
2014-05-12 19:34:07 +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
Daniel Juyung Seo 774e32be36 test_naviframe: added a test for event freeze checking. 2014-05-10 14:01:33 +09:00
Anil Kumar Nahak cae2b831a1 test_gengrid: Added a checkbox for enable/disable of reorder_mode feature
Summary: reorder mode can be enable/disable by clicking "'Reorder mode enable" checkbox

Test Plan: elementary_test->"GenGrid"

Reviewers: raster, seoz, nirajkr, singh.amitesh

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D829
2014-05-10 01:09:27 +09:00
Daniel Juyung Seo cfb42e0502 test_focus: initialize focus related check states correctly.
Fetch the current focus config status.
2014-05-01 21:54:24 +09:00
Daniel Juyung Seo e9644d6882 elm_config: added focus menu to elementary_config.
This helps focus debugging by changing the global configuration.
2014-05-01 21:30:14 +09:00
Daniel Juyung Seo 5769f3954c config: apply CHECK_ADD macro to elementary_config. 2014-05-01 18:51:24 +09:00
Daniel Juyung Seo 00a0457aad config: introduced a global CHECK_ADD macro for elementary config. 2014-05-01 18:38:02 +09:00
Daniel Juyung Seo 75736227cd test_dnd: removed dead code.
This fixes coverity CID 1210426.
2014-04-30 16:14:53 +09:00
Daniel Juyung Seo 8002e0e518 test_popup: Added more align usages to reveal popup align bug.
Actually the bugs are from notify.
2014-04-30 01:21:55 +09:00
Thiep Ha e005cb7895 test_dnd: Change sending data to be compatible with other apps
Summary:
The sending data used # character, it is not compatible with other apps, so we should change it.

Change sending data to use newline character to be compatible with other apps, able to correctly drag to other apps like EFM, chrome, ...

Reviewers: JackDanielZ, seoz, raster, woohyun

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D751
2014-04-29 16:28:13 +09:00
WooHyun Jung d0fc678c1a notify_test: When elm_notify is shown, set focus to it. 2014-04-29 15:39:41 +09:00
Daniel Juyung Seo 535fe6bd97 gengrid: Added elm_gengrid_wheel_disabled_set/get() APIs.
Summary:
The basic idea is from Abhinandan Aryadipta and I implemented this in
upstream.
Special thanks to JackDanielZ for eolian madness.

@feature

Reviewers: JackDanielZ

Differential Revision: https://phab.enlightenment.org/D803
2014-04-27 13:54:37 +09:00
Daniel Juyung Seo ecc89e2c4a test_gengrid: renamed stupid long internal variable names shorter. 2014-04-27 13:12:21 +09:00
Amitesh Singh 31fd782ab0 gengrid: Implemented item_select_on_focus feature.
Summary:
This is based on bb1e8afd.
@feature

Test Plan: elementary_test->"Gengrid Focus"

Reviewers: seoz, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D702
2014-04-27 13:08:15 +09:00
Daniel Juyung Seo b4093d2310 test_genlist: renamed stupid long internal variable names shorter. 2014-04-27 13:04:26 +09:00
Amitesh Singh 8405b15b2b genlist: Implemented item_select_on_focus feature.
Summary: @feature

Test Plan: elementary_test->Genlist Focus

Reviewers: seoz, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D705
2014-04-27 12:40:17 +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
Hosang Kim 0f636e890a genlist: Add item loop feature
Summary:
If item loop feature is enabled, item is moved infinitely.

    1. Refactor direction key event handling routine
      - added internal function _elm_genlist_elm_widget_event_direction.
    2. Add looping feature for genlist
      - added Eolian function _elm_genlist_elm_widget_item_loop_enabled_set/get.
    3. Add demo - test_genlist.c / genlist focus

Reviewers: seoz, woohyun, jaehwan, Hermet, raster

Reviewed By: Hermet

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

Conflicts:

	src/lib/elm_widget_genlist.h
2014-04-24 14:17:35 +09:00
Amitesh Singh f3ad4cd3c4 gengrid: item moving feature with keys.
Summary:
- Added two APIs elm_gengrid_reorder_mode_start/stop
- Add two smart callbacks
  - "item,reorder,anim,start" - This is called when a gengrid item movement
     has just started by keys in reorder mode.
  - "item,reorder,anim,stop" - This is called when a gengrid item movement just
     stopped in reorder mode.

@feature

Test Plan: elementary_test->Gengrid Focus

Reviewers: raster, seoz, SanghyeonLee

CC: seoz

Differential Revision: https://phab.enlightenment.org/D723
2014-04-23 21:13:57 +09:00
Ryuan Choi c71dd81883 web2: Implemented alert/confirm/prompt
Added test cases for alert/confirm/prompt
2014-04-22 01:42:53 +09:00
Lukasz Stanislawski 85c5216205 atspi: separate atspi mode from access mode.
Since elm_access provides its own support for screen reader, access mode
and atspi mode must be separated.

https://phab.enlightenment.org/D726
2014-04-21 15:01:11 +09:00
Daniel Juyung Seo 237d8dd624 test_genlist: Initialize internal variable.
This fixes coverity CID 1193249.
2014-04-13 01:40:27 +09:00
Daniel Juyung Seo ac10d9ac6e test_gengrid: Refactor gengrid test code.
- Added 'unselected' callback to reveal multiselect bug.
- Passed 'gengrid' directly instead of passing 'api' structure and using it indirectly.
- Added more box to make the GUI cleaner.
- Removed unnecessary comments and added more important comment.
2014-04-13 01:37:38 +09:00
Tom Hacohen f6ee6c772f test task switcher: Adjusted to Eo2. 2014-04-10 09:39:32 +01:00
Tom Hacohen 5e48645b3d test systray: Adjusted to Eo2. 2014-04-10 09:39:32 +01:00
Tom Hacohen a97d2ab019 test application server: Adjusted to Eo2. 2014-04-10 09:39:32 +01: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
wonguk.jeong c2e8ef52ad plug: fix SEGV of elementary_test during reconnecting
Summary:
problem:
1. open window socket
2. open window plug
3. close window socket
4. open window socket
5. SEGV

there was invalid timer deletion due to dangling pointer.

@fix

Test Plan: elementary_test -> open window socket -> open window plug -> close window socket -> open window socket ->SEGV

Reviewers: raster, seoz

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D699
2014-04-04 12:18:48 +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
Amitesh Singh 81ff09a877 test_gengrid: Added more test cases to reveal bugs in horizontal mode.
Summary:
- Added focus highlight, focus animation & horizontal mode option to enable/disable.
- Removed unnecessary frame and label from test code.

Test Plan: elementary_test -to "Gengrid Focus"

Reviewers: seoz, raster

CC: seoz, nirajkr

Differential Revision: https://phab.enlightenment.org/D683
2014-04-03 18:39:30 +09:00
Carsten Haitzler ca266bdbd5 add hand1 cursor theme element and ensure elm cursor code actually works
this adds a hand1 sample cursor theme/image so the theme can find
cursors, (more should be added later), and now actually makes the elm
cursor handling properly set the cursor and update the hotx/y as
needed by tracking the hot swallow object. this relies on a fix in efl
as well.
2014-04-02 20:48:32 +09:00
Carsten Haitzler db64dffca4 oops - printfs snuck in. remove 2014-04-02 18:09:55 +09:00
Cedric BAIL 588c9edd5c autotools: fix build when Ecore_Drm is enable. 2014-04-02 17:00:16 +09:00
Amitesh Singh d593ad85e2 toolbar: Added focus movement on widget items by mouse in.
Summary:
- Added a test case in "Toolbar Focus".
@feature

Test Plan: elementary_test->Toolbar Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D665
2014-04-01 20:26:33 +09:00
Amitesh Singh a090a1cc1f gengrid: Added focus movement on widget items by mouse in.
Summary:
- Added a test case in "Gengrid Focus".
@feature

Test Plan: elementary_test->Gengrid Focus

Reviewers: raster, cedric, woohyun

Reviewed By: raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D664
2014-04-01 20:26:13 +09:00
WooHyun Jung 75909f8654 elm win - fix wrong resizing of focus highlight obj.
When focus highlight animation is enabled, focus highlight can be
resized only by animator inside edje. So, if there is no animation
by some reasons, focus highlight just keeps its original.
@fix
2014-03-28 14:17:02 +09:00
Sung W. Park 65549dbffe ELM_GLView: added glview_manygears example to elementary_test
Added a more complex glview example to the elementary test.

- the gears lighting matches the original glx gears example.
- Added a background image to show that Glview works well with existing
  ELM winsets.
- Added 5 gears and buttons to increase/decrease gear teeth
2014-03-26 00:39:49 +09:00
Carsten Haitzler c263d9c4d6 add test cb to listen to all signals on layout obj 2014-03-24 19:53:18 +09:00
Carsten Haitzler 2291c37875 Revert "adding focus direction for gengrid"
This reverts commit 4fe82cc740eda0c6b50ee09aedcf173aac1e775d.
2014-03-24 18:02:03 +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
m.zielonka 32751ac33b adding focus direction for gengrid
Summary:
It is implementation of focus_direction method for gengrid widget.

We need it in our project. We must service focus by
directions and we want to use gengrid widget. Additionally we must
support changing focus by keyboard (TV remote).
Unfortunately gengrid hasn't default implementation to present its
sub-objects as candidates for focus direction.

Our solution can search for focusable sub-objects (from realized items)
and change then focused and last selected variables in gengrid. If this
candidate wins then object will receive focus.

Reviewers: cedric, raster

CC: raster, seoz

Differential Revision: https://phab.enlightenment.org/D449
2014-03-24 16:38:27 +09:00
Amitesh Singh 35ead0992d toolbar: Check disabled status of an item in nearest visible item.
Summary:
Also
- corrected the code for getting the toolbar item from the list.
- added a test for it.

Test Plan: elementary_test -> "Toolbar Focus"

Reviewers: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D653
2014-03-24 15:55:46 +09:00
Daniel Juyung Seo dcdd697c70 genlist: Check disabled status of an item in nearest visible item.
Also added a test for it.
2014-03-24 02:07:41 +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 813016d0e6 test_genlist: Added focus move policy option to genlist focus test.
And removed unnecessary void * casting.
2014-03-24 00:48:11 +09:00
Amitesh Singh ffa7f989d7 toolbar: implemented widget item focus feature.
Summary:
1. Added "item,focused" and "item,unfocused" smart callbacks.
2. Added _elm_toolbar_focus_highlight_geometry_get().
3. Implemented elm_object_item_focus_set() and elm_object_item_focus_get().
4. Implemented elm_object_focused_item_get()
5. Ported _elm_toolbar_nearest_visible_item_get from cc827fef6.
6. Added Test Case "Toolbar Focus".

@feature

Test Plan: elementary_test->Toolbar Item Focus

Reviewers: seoz, woohyun, raster

CC: nirajkr, raster

Differential Revision: https://phab.enlightenment.org/D555
2014-03-24 00:22:32 +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 0306188ecc test_genlist, test_gengrid: Added more callbacks to genlist/gengrid for a
better testing.
2014-03-23 16:53:08 +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