[Entry] Added sound when entry is clicked.
authorAmit Kamboj <amit.kamboj@samsung.com>
Wed, 24 Apr 2013 13:38:25 +0000 (19:08 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:08:50 +0000 (20:08 +0900)
Change-Id: I57264c29aa4a34164304b6bb8650c2c54548755b

themes/widgets/entry.edc

index b5eb072..73e8474 100644 (file)
 #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;
+      }
    }
 }