From 1559ffa67d9731b7192adcbf7f997229a259c88b Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Wed, 24 Apr 2013 19:08:25 +0530 Subject: [PATCH] [Entry] Added sound when entry is clicked. Change-Id: I57264c29aa4a34164304b6bb8650c2c54548755b --- themes/widgets/entry.edc | 197 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 152 insertions(+), 45 deletions(-) diff --git a/themes/widgets/entry.edc b/themes/widgets/entry.edc index b5eb072..73e8474 100644 --- a/themes/widgets/entry.edc +++ b/themes/widgets/entry.edc @@ -21,6 +21,13 @@ #define ENTRY_BLOCK_HANDLE_SOURCE10 "elm/entry/selection/block_handle_edge_left" #define ENTRY_BLOCK_HANDLE_SOURCE11 "elm/entry/selection/block_handle_edge_right" +sounds { + sample { + name: "touch_sound" AS_IS; + source: "S_Touch_30ms.wav"; + } +} + group { name: "elm/entry/base/default"; alias: "elm/entry/base-mixedwrap/default"; data.item: "default_font_size" "24"; @@ -159,6 +166,11 @@ group { name: "elm/entry/base/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -271,7 +283,7 @@ group { name: "elm/entry/base-charwrap/default"; } programs { program { name: "focus"; - signal: "load"; + signal: "load"; source: ""; action: FOCUS_SET; target: "elm.text"; @@ -288,20 +300,25 @@ group { name: "elm/entry/base-charwrap/default"; action: STATE_SET "default" 0.0; target: "elm.text"; } - program { name: "gdisable"; - signal: "elm,guide,disabled"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "elm.guide"; - } - program { name: "genable"; - signal: "elm,guide,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.guide"; - } - } - } + program { name: "gdisable"; + signal: "elm,guide,disabled"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guide"; + } + program { name: "genable"; + signal: "elm,guide,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guide"; + } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } + } +} group { name: "elm/entry/base-nowrap/default"; data.item: "default_font_size" "24"; @@ -394,6 +411,11 @@ group { name: "elm/entry/base-nowrap/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -541,6 +563,11 @@ group { name: "elm/entry/base/editfield"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -687,6 +714,11 @@ group { name: "elm/entry/base-charwrap/editfield"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -829,6 +861,11 @@ group { name: "elm/entry/base-single/editfield"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -922,6 +959,11 @@ group { name: "elm/entry/base-single/editfield/searchbar/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1061,6 +1103,11 @@ group { name: "elm/entry/base-single/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1153,6 +1200,11 @@ group { name: "elm/entry/base-single-noedit/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1246,6 +1298,11 @@ group { name: "elm/entry/base-noedit/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1309,36 +1366,41 @@ group { name: "elm/entry/base-noedit/default"; } } programs { - program { name: "focus"; - signal: "load"; - source: ""; - action: FOCUS_SET; - target: "elm.text"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "gdisable"; - signal: "elm,guide,disabled"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "elm.guide"; - } - program { name: "genable"; - signal: "elm,guide,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.guide"; - } + program { name: "focus"; + signal: "load"; + source: ""; + action: FOCUS_SET; + target: "elm.text"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "elm.text"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + } + program { name: "gdisable"; + signal: "elm,guide,disabled"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guide"; + } + program { name: "genable"; + signal: "elm,guide,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guide"; + } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1431,6 +1493,11 @@ group { name: "elm/entry/base-noedit/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1525,6 +1592,11 @@ group { name: "elm/entry/base-noedit/default"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -1664,6 +1736,11 @@ group { name: "elm/entry/base-password/popup"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -4253,6 +4330,11 @@ group { name: "elm/entry/base/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -4348,6 +4430,11 @@ group { name: "elm/entry/base-noedit/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -4496,6 +4583,11 @@ group { name: "elm/entry/base-charwrap/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -4642,6 +4734,11 @@ group { name: "elm/entry/base-single/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } @@ -4735,6 +4832,11 @@ group { name: "elm/entry/base-single-noedit/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } group { name: "elm/entry/base-single/font_color_black/tizen_text_class"; @@ -4908,6 +5010,11 @@ group { name: "elm/entry/base-password/font_color_black"; action: STATE_SET "default" 0.0; target: "elm.guide"; } + program { name: "touch_snd"; + signal: "mouse,clicked,1"; + source: "elm.text"; + action: PLAY_SAMPLE "touch_sound" 1.0; + } } } -- 2.7.4