Commit Graph

9739 Commits

Author SHA1 Message Date
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 Zaoui 3788c314a5 Eolian: Integration of Map and Map_Pan 2014-03-24 08:50:04 +02:00
Lukasz Stanislawski 9814ddc4bc atspi: move component interface implementation to separate file.
Summary: After eolian integration component interface declaration was moved to separate  ".eo" file. However its implemetation was not. This patch adds new "elm_interface_atspi_compoment.c" with interface implementation.

Reviewers: raster, seoz, JackDanielZ

Reviewed By: JackDanielZ

Differential Revision: https://phab.enlightenment.org/D648
2014-03-24 15:19:06 +09:00
Carsten Haitzler 391d52b7e5 fix hoversel colorclasses 2014-03-24 14:41:17 +09:00
Carsten Haitzler b03fe5b9d9 fix button color classes/colors after colorclass intro 2014-03-24 14:29:45 +09:00
Daniel Juyung Seo 4f29cd1d32 gengrid: Check disabled status of an item in nearest visible item. 2014-03-24 02:10:59 +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 9930b6ef43 mailmap: Updated mailmap for Amitesh. 2014-03-24 01:37:40 +09:00
Amitesh Singh d37c8dccb1 genlist: removed printf from commit. b72db5c19
Reviewers: seoz

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D652
2014-03-24 01:20:46 +09:00
Daniel Juyung Seo 1f319f3e2d genlist: Fixed item multi/single selection routine to skip disabled item
correctly.

@fix
2014-03-24 00:49:06 +09:00
Daniel Juyung Seo e5f9c254bd list: Fixed item multi/single selection routine to skip disabled item correctly.
@fix
2014-03-24 00:48:11 +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
zmike ea088ab21f genlist no longer crashes if a selected item is deleted during deselect_all 2014-03-23 10:39:47 -04:00
Daniel Juyung Seo 7f0f50fbc6 list/genlist/gengrid: Internal refactoring of item_focused/unfocused
codes.

- Added a check for focus highlight enable status before calling focus
signal to edje.
- Used obj instead of WIDGET(it) because that is used many times.
2014-03-23 23:29:16 +09:00
Daniel Juyung Seo 26f4d3fcd9 list: Removed unnecessary check in focused_item_get.
focused_item is NULL if the list is unfocused so do not need to check if
the list is focused. Just return focused_item.
2014-03-23 23:28:26 +09:00
Daniel Zaoui 7780b975ad Eolian: Integration of Label 2014-03-23 15:01:33 +02:00
Daniel Zaoui 3ba96095e6 Eolian: Integration of Inwin 2014-03-23 15:01:33 +02: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
Daniel Juyung Seo 32cd38f89d genlist: Fixed focus object hidden bug on re-focus.
On smart_on_focus, genlist calls elm_object_item_focus_set. That API
internally calls _elm_widget_focus_highlight_start() but we need to call
this function once again because of the weird focus behavior.

Condition: enable focus highlight and focus highlight animation.
The first _elm_widget_focus_highlight_start() triggers
_elm_win_focus_highlight_simple_setup, and second call triggers
_elm_win_focus_highlight_anim_setup. But the first call does not show
the focus highlight object properly.

Reproduction scenario:
1. elementary_test -> genlist focus
2. click an item
3. scroll the genlist and move the focused item away from the viewport.
4. move the mouse pointer to another window
5. move the mouse pointer to the genlist window back again.
6. focus highlight object is now shown correctly.

By the way, this bug will be hidden when the focus highlight never
scrolls away. I will add this feature soon.
2014-03-23 21:37:55 +09:00
Daniel Juyung Seo 8fa5dad5f9 gengrid: Fixed annoying gengrid scrolling issue when focus is back to gengrid.
This patch is a gengrid version of genlist patch cc827fef6.

Now, gengrid does not autoscroll to last focused/selected item when the gengrid
is focused. It tries to find the nearest visible item instead of the
last focused/selected item.
2014-03-23 21:37:55 +09:00
Daniel Zaoui 5a9067953d Eolian: Integration of Index 2014-03-23 14:17:38 +02:00
Daniel Zaoui c7fae6f3f3 Eolian: Integration of Icon 2014-03-23 14:17:38 +02:00
Daniel Zaoui fceca47f28 Eolian: Integration of Image 2014-03-23 14:17:38 +02:00
Daniel Zaoui c48c2e2608 Eolian: Integration of Hoversel 2014-03-23 14:17:38 +02:00
Daniel Zaoui 5cb8eedddd Eolian: Integration of Grid 2014-03-23 14:17:38 +02:00
Daniel Zaoui 2fe064a1ec Eolian: Integration of GLView 2014-03-23 14:17:38 +02:00
Daniel Zaoui 809fbeda4d Eolian: Integration of Gesture Layer 2014-03-23 14:17:38 +02:00
Daniel Zaoui db2ab8c3e4 Eolian: Integration of Flip 2014-03-23 14:17:38 +02:00
Daniel Juyung Seo 1572444238 elm: Fixed shadow variable warnings during compilation.
elm_bubble.eo.c:110:14: warning: declaration of 'access' shadows a
global declaration [-Wshadow]

Special thanks to Jack DanielZ
2014-03-23 20:22:09 +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 0288e89f17 list: Fixed annoying list scrolling issue when focus is back to list.
This patch is a list version of genlist patch cc827fef6.

Now, list does not autoscroll to last focused/selected item when the list
is focused. It tries to find the nearest visible item instead of the
last focused/selected item.
2014-03-23 19:14:18 +09:00
Daniel Juyung Seo 1343551e2a genlist: Fixed typo for _elm_genlist_nearest_visible_item_get comments. 2014-03-23 19:14:18 +09:00
Daniel Juyung Seo efd5f59d80 macros: Fixed wrong ELM_RECTS_INCLUDE logic. 2014-03-23 19:14:18 +09:00
Daniel Zaoui f660fc7456 Eolian: Integration of Entry 2014-03-23 10:56:44 +02:00
Daniel Zaoui 702396e282 Eolian: Integration of Disk Selector 2014-03-23 10:56:44 +02:00
Daniel Zaoui ebaeb19625 Eolian: Integration of Day Selector 2014-03-23 10:56:44 +02: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 fad3a2dfc4 list/genlist/gengrid: Handle on_focus event on focus set only for key
event.

When you use mouse(touch) that triggers mouse up event, the
focus/selection movement is done by mouse up callback, so don't need to
handle on_focus event when mouse(touch) is used.

You can reproduce the bug by the following step.
1. launch elementary_test -> list focus, genlist focus, gengrid focus
2. focus an item (by touch, by key)
3. move focus to left button (by touch, by key)
4. click an another item (by touch)
5. previously focused item will be unfocused again even it was unfocused
at step #3/

Special thanks to Amitesh for the report.
2014-03-23 16:48:10 +09:00
zmike 5b07498ba1 genlist needs to iterate exactly once over a fixed list when deselcting all items
the selected items list can be modified during deselect from the smart callback, which can cause an infinite loop here

@fix
2014-03-23 03:11:14 -04:00
Daniel Juyung Seo 0008452aba gengrid: Commented out some temporarily unused code.
This code will be used later when the item selection on key press becomes
optional. So do not remove this.
2014-03-23 02:07:20 +09:00
Daniel Juyung Seo c8309645ed elm: Fixed shadow variable build warning.
declaration of 'access' shadows a global declaration
2014-03-23 02:05:18 +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 46506cf22e focus: Added optional focus feature - focus movement by mouse_in.
Focus is moved by mouse click by default. This patch makes moving focus
by mouse_in optionally by configuration and API. Widget item focus
movement is not applied yet. Need to do that as well.

- configuration: "focus_move_policy"
- API: elm_config_focus_move_policy_set/get
- enum
  ELM_FOCUS_MOVE_POLICY_CLICK
  ELM_FOCUS_MOVE_POLICY_IN

@feature
2014-03-23 02:04:16 +09:00
Daniel Juyung Seo 88776125a9 test_genlist/gengrid: Renamed 'item focus' test to just 'focus'. 2014-03-23 00:49:41 +09:00
Daniel Juyung Seo 3881d02167 focus: Set the focus target as NULL on focus highlight init.
Only elementary object can be a candidate for elementary focus.
2014-03-23 00:42:59 +09:00
Daniel Juyung Seo a6063a3c9c test_genlist: Flourish genlist focus test case to reveal more bugs.
- Added focus highlight enable/disable option.
- Added a button to set the focus to 2nd item after 1.5 seconds.
- Added a button to select the 2nd item after 1.5 seconds.
- Removed unnecessary frame and lable for the test.
2014-03-23 00:38:01 +09:00
Daniel Juyung Seo 31e81c1ecd test_genlist: Merged 'Genlist Focus' and 'Genlist Item Focus' test.
There is no reason to have two different focus example for genlist.
2014-03-23 00:13:58 +09:00
Daniel Juyung Seo 3aef035f1d gengrid: Fixed broken gengrid item focus support.
This commit is a gengrid version of 7d43205a0.
Now it works so much better than before.
- Fixed the separate behavior between selected item and focused item.
- Fixed wrong focus set when gengrid is focused first time by mouse.
- Fixed wrong scroll movement when the focus highlight is disabled.
- Item selection sets that item focused. So when an item is selected, do
not need to set the focus again.
2014-03-22 23:51:52 +09:00