1 #include "w-input-stt-button.edc"
3 #define VOICE_CANDIDATE_AREA_HEIGHT 56
4 #define BUTTON_TEXT_SIZE_INC 80
14 param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP";
15 /* 2014.06.11 updated from libsvi(feedback)
16 Above plugin will run below external function:
17 int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
19 param1: feedback_type_e
20 FEEDBACK_TYPE_NONE = 0,
21 FEEDBACK_TYPE_SOUND = 1,
22 FEEDBACK_TYPE_VIBRATION,
27 FEEDBACK_PATTERN_TAP = 0,
29 FEEDBACK_PATTERN_SIP_BACKSPACE,
30 FEEDBACK_PATTERN_SIP_FUNCTION,
31 FEEDBACK_PATTERN_SIP_FJKEY,
34 * Fore information, please refer the libsvi libraries.
35 * git: slp-info.sec.samsung.net:29418/magnolia/framework/system/libsvi
36 * web: http://slp-info.sec.samsung.net/gerrit/plugins/gitiles/magnolia/framework/system/libsvi
43 image, "./bg/B13_mic_bg.png" COMP;
44 image, "./icon/B13_mic.png" COMP;
45 image, "./icon/B13_mic_Que.png" COMP;
46 image, "./icon/B13_mic_Que_01.png" COMP;
47 image, "./icon/B13_mic_procecessing_bg.png" COMP;
49 image, "./input_ic_voice_mic.png" COMP;
50 image, "./w_sip_mask_bg.png" COMP;
51 image, "./tw_bottom_btn_bg.png" COMP;
53 image, "./w_mode_ic_bg.png" COMP;
54 image, "./wi_drawing_bg.png" COMP;
56 image, "./b_stt_text_fade_out.png" COMP;
57 image, "./b_stt_icon_btn.png" COMP;
58 image, "./b_stt_confirm_icon.png" COMP;
59 image, "./b_stt_send_icon.png" COMP;
60 image, "./wi_stt_icon_error.png" COMP;
158 color: 163 163 163 100;
163 color: 97 12 117 255;
173 color: 110 110 110 100;
188 color: 122 122 122 100;
298 color: 102 102 102 100;
384 color: 128 128 128 100;
434 color: 0 151 207 100;
450 style { name, "textblock_style";
451 base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF text_class=text_class wrap=word ellipsis=1.0";
454 tag, "hilight" "+ font=Tizen:style=Bold";
455 tag, "b" "+ font=Tizen:style=Bold";
458 style { name, "textblock_style_bottom";
459 base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF text_class=text_class wrap=word ellipsis=1.0";
462 tag, "hilight" "+ font=Tizen:style=Bold";
463 tag, "b" "+ font=Tizen:style=Bold";
466 style { name: "button_general_text_normal";
467 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
469 style { name: "button_general_text_dim";
470 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
472 style { name: "button_general_text_press";
473 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#888888 ellipsis=0.0 wrap=mixed";
475 style { name: "button_send_text_normal";
476 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF color_class=AT0117 ellipsis=0.0 wrap=mixed";
478 style { name: "button_cue_text_normal";
479 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF color_class=AT032 ellipsis=0.0 wrap=mixed";
481 style { name: "button_bottom_text_normal";
482 base: "font=Tizen:style=Regular font_size=26 align=center color=#FFFFFF color_class=AT0118";
498 state, "default" 0.0;
508 color_class, "AO0118";
518 state, "default" 0.0;
533 state, "default" 0.0;
572 state, "default" 0.0;
591 name, "left_panel_area";
595 state, "default" 0.0;
618 state, "default" 0.0;
623 relative, 0 (360-78)/360;
631 image.normal, "./tw_bottom_btn_bg.png";
632 color: 128 128 128 128;
646 relative, 1 (360+78)/360;
649 image.normal, "./tw_bottom_btn_bg.png";
650 color: 128 128 128 128;
655 state, "pressed" 0.0;
656 inherit, "default" 0.0;
657 color: 128 128 128 128;
662 inherit, "default" 0.0;
663 color: 128 128 128 128;
669 name, "EFFECT_BG_AREA";
673 state, "default" 0.0;
699 relative, 0 (360+64)/360;
705 relative, 1 (360+64)/360;
719 state, "default" 0.0;
724 to, "EFFECT_BG_AREA";
729 to, "EFFECT_BG_AREA";
734 state, "default" 0.1;
735 inherit, "default" 0.0;
740 //Part for mic button
743 name, "BOTTOM_BUTTON";
748 state, "default" 0.0;
754 relative, 35/360 0.0;
759 relative, 325/360 1.0;
766 name, "PROGRESS_BAR";
771 state, "default" 0.0;
777 relative, 155/360 27/100;
782 relative, 205/360 77/100;
788 state, "message" 0.0;
789 inherit, "default" 0.0;
793 state, "processing" 0.0;
794 inherit, "default" 0.0;
801 name, "cue_text_block";
805 state, "default" 0.0;
809 relative, 30/360 158/360;
814 relative, (360-30)/360 (158+43)/360;
822 name, "elm.text.cue";
828 state, "default" 0.0;
830 rel1.to, "cue_text_block";
831 rel2.to, "cue_text_block";
835 style, "button_cue_text_normal";
843 rel1.to, "cue_text_block";
844 rel2.to, "cue_text_block";
848 style, "button_cue_text_normal";
855 name, "guide_text_block_left_padding";
859 state, "default" 0.0;
866 relative, 0 (360-70)/360;
871 relative, 0 (360-33)/360;
879 name, "guide_text_block_right_padding";
883 state, "default" 0.0;
890 relative, 1 (360-70)/360;
895 relative, 1 (360-33)/360;
904 name, "guide_text_block";
908 state, "default" 0.0;
913 to, "guide_text_block_left_padding";
918 to, "guide_text_block_right_padding";
931 state, "default" 0.0;
941 style, "button_bottom_text_normal";
947 to, "guide_text_block";
952 to, "guide_text_block";
964 name, "guide_text_block_icon_padding";
968 state, "default" 0.0;
992 state, "default" 0.0;
999 to, "guide_text_block_icon_padding";
1004 to, "guide_text_block_icon_padding";
1006 image.normal, "./wi_stt_icon_error.png";
1007 color_class, "AO015";
1019 name, "send_text_block";
1023 state, "default" 0.0;
1027 relative, 105/360 5/78;
1032 relative, (360-105)/360 (78-38)/78;
1038 state, "expand" 0.0;
1042 relative, 84/360 18/78;
1047 relative, (360-82)/360 (78-23)/78;
1055 name, "elm.text.send";
1061 state, "default" 0.0;
1064 rel1.to, "send_text_block";
1065 rel2.to, "send_text_block";
1069 style, "button_send_text_normal";
1080 name, "initial_view";
1081 signal, "mouse,clicked,1";
1082 source, "background";
1084 after, "emit_signal1";
1089 name, "emit_signal1";
1090 action, SIGNAL_EMIT "idle,state,pulse,visible" "";
1095 name, "cue_text_show";
1096 signal, "idle,state,cue_text,visible";
1098 action, STATE_SET "show" 0.0;
1099 target, "elm.text.cue";
1100 after: "cue_text_hide";
1105 name, "cue_text_hide";
1106 signal, "idle,state,cue_text,hidden";
1109 action, STATE_SET "default" 0.0;
1110 target, "elm.text.cue";
1116 signal, "idle,state,text,visible";
1118 action, STATE_SET "show" 0.0;
1120 target, "error_icon";
1121 after: "text_hide_delayed";
1127 signal, "idle,state,text,hidden";
1129 action, STATE_SET "default" 0.0;
1131 target, "error_icon";
1136 name, "text_hide_delayed";
1137 signal, "idle,state,text,hidden,delayed";
1140 action, STATE_SET "default" 0.0;
1142 target, "error_icon";
1147 name, "contract_send_text";
1148 signal, "idle,state,send,text,contract";
1150 action, STATE_SET "default" 0.0;
1151 target, "send_text_block";
1156 name, "expand_send_text";
1157 signal, "idle,state,send,text,expand";
1159 action, STATE_SET "expand" 0.0;
1160 target, "send_text_block";
1165 name, "show_effect_part";
1166 signal, "elm,state,eq,show";
1168 action, STATE_SET "default" 0.1;
1169 target, "EFFECT_BG";
1174 name, "hide_effect_part";
1175 signal, "elm,state,eq,hide";
1177 action, STATE_SET "default" 0.0;
1178 target, "EFFECT_BG";
1184 name, "bottom_button_show";
1185 signal, "idle,state,show,bottom_button";
1187 action, STATE_SET "default" 0.0;
1188 target, "background";
1189 transition, DECELERATE 0.2;
1193 name, "bottom_button_show_delayed";
1194 signal, "idle,state,show,bottom_button,delayed";
1197 action, STATE_SET "default" 0.0;
1198 target, "background";
1199 transition, DECELERATE 0.2;
1204 name, "bottom_button_hide";
1205 signal, "idle,state,hide,bottom_button";
1207 action, STATE_SET "hide" 0.0;
1208 target, "background";
1209 transition, DECELERATE 0.2;
1214 name, "bottom_effect_show";
1215 signal, "idle,state,show,effect";
1217 action, STATE_SET "default" 0.0;
1218 target, "EFFECT_BG_AREA";
1219 transition, DECELERATE 0.2;
1223 name, "bottom_effect_hide";
1224 signal, "idle,state,hide,effect";
1226 action, STATE_SET "hide" 0.0;
1227 target, "EFFECT_BG_AREA";
1228 transition, DECELERATE 0.2;
1235 name: "option_more_index";
1245 state: "default" 0.0;
1257 state: "default" 0.0;
1269 state: "default" 0.0;
1275 rel1.relative: 0.0 0.0;
1277 rel2.relative: 1.0 0.0;
1285 name, "language_list";
1295 state, "default" 0.0;
1317 state, "default" 0.0;
1334 name: "layout_textblock";
1337 public timer_cb(val) {
1338 run_program(PROGRAM:"do_scroll");
1350 state, "default" 0.0;
1362 part { name: "elm.swallow.content";
1365 description { state: "default" 0.0;
1383 signal, "scrolling";
1386 timer(3/10, "timer_cb", 0);
1392 action, SIGNAL_EMIT "do_scroll" "entry";
1397 group{ name: "entry_focused_layout";
1406 state, "default" 0.0;
1419 part { name: "padding_top";
1423 state: "default" 0.0;
1425 rel1.relative: 0.0 0.0;
1426 rel2.relative: 1.0 0.0;
1431 part { name: "padding_left";
1435 state: "default" 0.0;
1437 rel1.relative: 0.0 0.0;
1438 rel2.relative: 0.0 1.0;
1443 part { name: "padding_right";
1447 state: "default" 0.0;
1449 rel1.relative: 1.0 0.0;
1450 rel2.relative: 1.0 1.0;
1460 state: "default" 0.0;
1461 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1462 rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top";}
1473 #define BUTTON_PADDING_SIZE_INC 20 0
1474 #define BUTTON_HEIGHT_INC 122
1475 #define BUTTON_ICON_SIZE_INC 60 60
1476 group { name: "elm/button/base/default";
1478 public mouse_down = 0;
1479 public multi_down = 0;
1485 description { state: "default" 0.0;
1486 min: 0 BUTTON_HEIGHT_INC;
1487 color_class: "W011";
1489 description { state: "pressed" 0.0;
1490 inherit: "default" 0.0;
1491 color_class: "W011P";
1493 description { state: "disabled" 0.0;
1494 inherit: "default" 0.0;
1495 color_class: "W011D";
1498 part { name: "padding_left_top";
1501 description { state: "default" 0.0;
1503 rel2.relative: 0.0 0.0;
1504 min: BUTTON_PADDING_SIZE_INC;
1508 part { name: "padding_right_bottom";
1511 description { state: "default" 0.0;
1513 rel1.relative: 1.0 1.0;
1514 min: BUTTON_PADDING_SIZE_INC;
1518 part { name: "icon_rect";
1521 description { state: "default" 0.0;
1525 to: "padding_left_top";
1529 to_x: "padding_left_top";
1530 to_y: "padding_right_bottom";
1535 description { state: "visible" 0.0;
1536 inherit: "default" 0.0;
1537 min: BUTTON_ICON_SIZE_INC;
1538 max: BUTTON_ICON_SIZE_INC;
1542 part { name: "elm.swallow.content";
1544 clip_to: "elm.swallow.content.clip";
1546 description { state: "default" 0.0;
1551 to: "padding_left_top";
1555 to_x: "padding_left_top";
1556 to_y: "padding_right_bottom";
1560 description { state: "visible" 0.0;
1562 min: BUTTON_ICON_SIZE_INC;
1563 max: BUTTON_ICON_SIZE_INC;
1568 to_y: "padding_left_top";
1573 to_y: "padding_right_bottom";
1576 description { state: "icononly" 0.0;
1577 min: BUTTON_ICON_SIZE_INC;
1578 max: BUTTON_ICON_SIZE_INC;
1581 part { name: "elm.text";
1585 description { state: "default" 0.0;
1590 to_y: "padding_left_top";
1594 to: "padding_right_bottom";
1598 style: "button_general_text_normal";
1601 description { state: "disabled" 0.0;
1602 inherit: "default" 0.0;
1603 text.style: "button_general_text_dim";
1605 description { state: "pressed" 0.0;
1606 inherit: "default" 0.0;
1607 text.style: "button_general_text_press";
1610 part { name: "elm.swallow.content.clip";
1613 description { state: "default" 0.0;
1614 color_class: "F022L1i";
1616 description { state: "disabled" 0.0;
1617 inherit: "default" 0.0;
1618 color_class: "F022L1iD";
1621 part { name: "event";
1624 description { state: "default" 0.0;
1632 program { name: "pressed";
1633 signal: "mouse,down,1*";
1636 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1638 set_int(mouse_down, 1);
1639 run_program(PROGRAM:"button_press1");
1643 program { name: "button_press1";
1647 get_state(PART:"bg", st, 30, vl);
1648 if (strcmp(st, "disabled")) {
1649 set_state(PART:"bg", "pressed", 0.0);
1650 //set_state(PART:"bg_image", "pressed", 0.0);
1651 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1652 emit("elm,action,press", "");
1656 program { name: "unpressed";
1657 signal: "mouse,up,1";
1660 if (get_int(mouse_down) == 1) {
1661 set_int(mouse_down, 0);
1662 run_program(PROGRAM:"button_unpress1");
1666 program { name: "button_unpress1";
1670 get_state(PART:"bg", st, 30, vl);
1671 if (strcmp(st, "disabled")) {
1672 set_state(PART:"bg", "default", 0.0);
1673 //set_state(PART:"bg_image", "default", 0.0);
1674 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1675 emit("elm,action,unpress", "");
1679 program { name: "touch_snd";
1680 signal: "mouse,clicked,1";
1685 if (get_int(multi_down) == 0) {
1686 get_state(PART:"bg", st, 30, vl);
1687 if (strcmp(st, "disabled")) {
1688 //run_program(PROGRAM:"play_sample");
1689 emit("elm,action,click", "");
1695 name: "play_sample";
1696 action: RUN_PLUGIN "touch_sound";
1698 program { name: "text_show";
1699 signal: "elm,state,text,visible";
1704 get_state(PART:"elm.swallow.content", st, 30, vl);
1705 if (!strcmp(st, "icononly"))
1707 set_state(PART:"elm.swallow.content", "visible", 0.0);
1708 set_state(PART:"icon_rect", "visible", 0.0);
1710 get_state(PART:"bg", st, 30, vl);
1711 if (strcmp(st, "disabled"))
1712 set_state(PART:"elm.text", "default", 0.0);
1714 set_state(PART:"elm.text", "disabled", 0.0);
1717 program { name: "text_hide";
1718 signal: "elm,state,text,hidden";
1723 get_state(PART:"elm.swallow.content", st, 30, vl);
1724 if (!strcmp(st, "visible"))
1726 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1727 set_state(PART:"icon_rect", "default", 0.0);
1729 set_state(PART:"elm.text", "default", 0.0);
1732 program { name: "icon_show";
1733 signal: "elm,state,icon,visible";
1735 action: STATE_SET "visible" 0.0;
1736 target: "elm.swallow.content";
1737 target: "icon_rect";
1739 program { name: "icon_hide";
1740 signal: "elm,state,icon,hidden";
1742 action: STATE_SET "visible" 0.0;
1743 target: "elm.swallow.content";
1744 target: "icon_rect";
1746 program { name: "disable";
1747 signal: "elm,state,disabled";
1749 action: STATE_SET "disabled" 0.0;
1751 target: "elm.swallow.content.clip";
1754 program { name: "enable";
1755 signal: "elm,state,enabled";
1757 action: STATE_SET "default" 0.0;
1759 target: "elm.swallow.content.clip";
1762 program { name: "multi_down";
1763 signal: "elm,action,multi,down";
1766 set_int(multi_down, 1);
1769 program { name: "multi_up";
1770 signal: "elm,action,multi,up";
1773 set_int(multi_down, 0);
1779 group { name: "elm/button/base/ime_transparent";
1780 inherit: "elm/button/base/default";
1785 description { state: "default" 0.0;
1789 description { state: "pressed" 0.0;
1790 inherit: "default" 0.0;
1792 description { state: "disabled" 0.0;
1793 inherit: "default" 0.0;
1799 group { name: "elm/button/base/ime_button";
1800 alias: "elm/button/base/ime_button_stt";
1801 inherit: "elm/button/base/default";
1806 description { state: "default" 0.0;
1808 color_class: "AO01153L1";
1810 image.normal: "./w_mode_ic_bg.png";
1812 description { state: "pressed" 0.0;
1813 inherit: "default" 0.0;
1814 color_class: "AO01153L1P";
1816 description { state: "disabled" 0.0;
1817 inherit: "default" 0.0;
1818 color_class: "W011D";
1821 part { name: "elm.swallow.content";
1824 clip_to: "elm.swallow.content.clip";
1825 description { state: "default" 0.0;
1828 rel1 { relative: 0.0 0.0; to: "bg";}
1829 rel2 { relative: 1.0 1.0; to: "bg";}
1832 description { state: "visible" 0.0;
1833 inherit: "default" 0.0;
1836 description { state: "icononly" 0.0;
1837 inherit: "default" 0.0;
1844 program { name: "pressed";
1845 signal: "mouse,down,1*";
1848 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1850 set_int(mouse_down, 1);
1851 run_program(PROGRAM:"button_press1");
1855 program { name: "button_press1";
1859 get_state(PART:"bg", st, 30, vl);
1860 if (strcmp(st, "disabled")) {
1861 set_state(PART:"bg", "pressed", 0.0);
1862 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1863 emit("elm,action,press", "");
1867 program { name: "unpressed";
1868 signal: "mouse,up,1";
1871 if (get_int(mouse_down) == 1) {
1872 set_int(mouse_down, 0);
1873 run_program(PROGRAM:"button_unpress1");
1877 program { name: "button_unpress1";
1881 get_state(PART:"bg", st, 30, vl);
1882 if (strcmp(st, "disabled")) {
1883 set_state(PART:"bg", "default", 0.0);
1884 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1885 emit("elm,action,unpress", "");
1892 group { name: "elm/button/base/ime_button_emoticon";
1893 inherit: "elm/button/base/ime_button";
1898 description { state: "default" 0.0;
1900 color_class: "AO01154L1";
1902 image.normal: "./w_mode_ic_bg.png";
1904 description { state: "pressed" 0.0;
1905 inherit: "default" 0.0;
1906 color_class: "AO01154L1P";
1908 description { state: "disabled" 0.0;
1909 inherit: "default" 0.0;
1910 color_class: "W011D";
1916 group { name: "elm/button/base/ime_button_keyboard";
1917 inherit: "elm/button/base/ime_button";
1922 description { state: "default" 0.0;
1924 color_class: "AO01155L1";
1926 image.normal: "./w_mode_ic_bg.png";
1928 description { state: "pressed" 0.0;
1929 inherit: "default" 0.0;
1930 color_class: "AO01155L1P";
1932 description { state: "disabled" 0.0;
1933 inherit: "default" 0.0;
1934 color_class: "W011D";
1940 group { name: "elm/button/base/ime_button_template";
1941 inherit: "elm/button/base/ime_button";
1946 description { state: "default" 0.0;
1949 color_class: "AO01161";
1951 image.normal: "./w_mode_ic_bg.png";
1953 description { state: "pressed" 0.0;
1954 inherit: "default" 0.0;
1955 color_class: "AO01161P";
1957 description { state: "disabled" 0.0;
1958 inherit: "default" 0.0;
1959 color_class: "AO01161D";
1962 part { name: "elm.swallow.content.clip";
1965 description { state: "default" 0.0;
1966 color_class: "AO01153L3";
1968 description { state: "pressed" 0.0;
1969 inherit: "default" 0.0;
1970 color_class: "AO01153L3P";
1972 description { state: "disabled" 0.0;
1973 inherit: "default" 0.0;
1974 color_class: "AO01153L3D";
1980 group { name: "elm/button/base/ime_button_drawing";
1981 inherit: "elm/button/base/ime_button";
1986 description { state: "default" 0.0;
1989 color_class: "AO0391";
1991 image.normal: "./wi_drawing_bg.png";
1993 description { state: "pressed" 0.0;
1994 inherit: "default" 0.0;
1995 color_class: "AO0391P";
1997 description { state: "disabled" 0.0;
1998 inherit: "default" 0.0;
1999 color_class: "AO0391D";
2005 group { name: "elm/button/base/touch_area";
2006 inherit: "elm/button/base/default";
2011 description { state: "default" 0.0;
2016 description { state: "pressed" 0.0;
2017 inherit: "default" 0.0;
2019 description { state: "disabled" 0.0;
2020 inherit: "default" 0.0;
2025 program { name: "touch_snd";
2026 signal: "mouse,clicked,1";
2031 if (get_int(multi_down) == 0) {
2032 get_state(PART:"bg", st, 30, vl);
2033 if (strcmp(st, "disabled")) {
2034 run_program(PROGRAM:"play_sample");
2035 emit("elm,action,click", "");
2043 group { name: "elm/button/base/emoticon";
2046 public mouse_down = 0;
2047 public multi_down = 0;
2053 description { state: "default" 0.0;
2056 description { state: "pressed" 0.0;
2057 inherit: "default" 0.0;
2059 description { state: "disabled" 0.0;
2060 inherit: "default" 0.0;
2063 part { name: "padding_left_top";
2066 description { state: "default" 0.0;
2068 rel2.relative: 0.0 0.0;
2072 //color: 255 0 0 100;
2075 part { name: "padding_right_bottom";
2078 description { state: "default" 0.0;
2080 rel1.relative: 1.0 1.0;
2084 //color: 0 255 0 100;
2087 part { name: "elm.text";
2091 description { state: "default" 0.0;
2095 to: "padding_left_top";
2099 to: "padding_right_bottom";
2103 style: "button_general_text_normal";
2106 description { state: "disabled" 0.0;
2107 inherit: "default" 0.0;
2108 text.style: "button_general_text_dim";
2110 description { state: "pressed" 0.0;
2111 inherit: "default" 0.0;
2112 text.style: "button_general_text_press";
2115 part { name: "event";
2118 description { state: "default" 0.0;
2126 program { name: "pressed";
2127 signal: "mouse,down,1*";
2130 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2132 set_int(mouse_down, 1);
2133 run_program(PROGRAM:"button_press1");
2137 program { name: "button_press1";
2141 get_state(PART:"bg", st, 30, vl);
2142 if (strcmp(st, "disabled")) {
2143 set_state(PART:"bg", "pressed", 0.0);
2144 set_state(PART:"elm.text", "pressed", 0.0);
2145 emit("elm,action,press", "");
2149 program { name: "unpressed";
2150 signal: "mouse,up,1";
2153 if (get_int(mouse_down) == 1) {
2154 set_int(mouse_down, 0);
2155 run_program(PROGRAM:"button_unpress1");
2159 program { name: "button_unpress1";
2163 get_state(PART:"bg", st, 30, vl);
2164 if (strcmp(st, "disabled")) {
2165 set_state(PART:"bg", "default", 0.0);
2166 set_state(PART:"elm.text", "default", 0.0);
2167 emit("elm,action,unpress", "");
2171 program { name: "touch_snd";
2172 signal: "mouse,clicked,1";
2177 if (get_int(multi_down) == 0) {
2178 get_state(PART:"bg", st, 30, vl);
2179 if (strcmp(st, "disabled")) {
2180 run_program(PROGRAM:"play_sample");
2181 emit("elm,action,click", "");
2187 name: "play_sample";
2188 action: RUN_PLUGIN "touch_sound";
2190 program { name: "disable";
2191 signal: "elm,state,disabled";
2193 action: STATE_SET "disabled" 0.0;
2197 program { name: "enable";
2198 signal: "elm,state,enabled";
2200 action: STATE_SET "default" 0.0;
2204 program { name: "multi_down";
2205 signal: "elm,action,multi,down";
2208 set_int(multi_down, 1);
2211 program { name: "multi_up";
2212 signal: "elm,action,multi,up";
2215 set_int(multi_down, 0);
2221 #define NAVIFRAME_VIEW_TRANS_TIME 0.4 //time for push and pop
2222 #define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
2223 #define NAVIFRAME_TITLE_EXPAND_TRANS_TIME 0.5 //Title Expansion transition time
2224 #define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
2225 #define ACTIONBAR_PADDING_SIZE_INC 64
2226 #define ACTIONBAR_HEIGHT_INC 115
2227 #define ACTIONBAR_TEXT_SIZE_INC 39
2228 #define ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC 51
2229 #define ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC 25
2230 #define ACTIONBAR_TEX_SLIDING_SPEED 0.006
2231 #define ACTIONBAR_TEX_SLIDING_START_WAITING_TIME 0.8
2232 #define HIDDEN_BUTTON_HEIGHT_INC 88
2234 #define STYLE_TAG_MATCH \
2235 tag: "match" "+ color=#ffffff color_class=T0212";
2238 style { name: "action_bar_title";
2239 base: "font=Tizen:style=Regular font_size="ACTIONBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T012 text_class=T012";
2244 group { name: "elm_naviframe_item_basic_customized";
2245 data.item: "tizen_zoom" 1;
2247 public g_mirrored = 0; //Mirrored on/off status
2248 public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
2250 public g_duration_1st;
2251 public g_duration_2nd;
2254 public g_sliding_start;
2256 public title_text_fade_out() {
2259 if (get_int(g_text_fade_out_calc_timer)) {
2260 cancel_timer(g_text_fade_out_calc_timer);
2261 set_int(g_text_fade_out_calc_timer, 0);
2264 get_geometry(PART:"elm.text.title", x, y, w, h);
2265 get_geometry(PART:"title_text_bg", x, y, w2, h);
2270 set_float(g_duration_1st, 0);
2271 set_float(g_duration_2nd, 0);
2272 set_int(g_timer_id, 0);
2273 set_int(g_anim_id, 0);
2274 set_int(g_sliding_start, 0);
2276 public slide_first_anim(val, Float:pos) {
2277 set_tween_state(PART:"elm.text.title", pos, "slide", 0.0, "slide_1", 0.0);
2279 cancel_anim(get_int(g_anim_id));
2280 set_int(g_anim_id, anim(get_float(g_duration_2nd), "slide_second_anim", 1));
2283 public slide_second_anim(val, Float:pos) {
2284 set_tween_state(PART:"elm.text.title", pos, "slide_2", 0.0, "slide", 0.0);
2288 public slide_first() {
2290 if (get_int(g_sliding_start)) {
2291 set_state(PART:"elm.text.title", "slide", 0.0);
2293 set_int(g_anim_id, anim(get_float(g_duration_1st), "slide_first_anim", 1));
2296 public slide_start() {
2297 set_int(g_timer_id, timer(ACTIONBAR_TEX_SLIDING_START_WAITING_TIME, "slide_first", 1));
2299 public slide_stop() {
2300 cancel_anim(get_int(g_anim_id));
2301 set_state(PART:"elm.text.title", "default", 0.0);
2302 set_int(g_sliding_start, 0);
2304 public check_size() {
2306 get_geometry(PART:"elm.text.title", x, y, w, h);
2307 get_geometry(PART:"title_text_clip", x, y, w1, h);
2309 set_int(g_sliding_start, 1);
2312 set_int(g_sliding_start, 0);
2315 public get_duration() {
2317 get_geometry(PART:"elm.text.title", x, y, w, h);
2318 get_geometry(PART:"title_text_clip", x, y, w1, h);
2319 set_float(g_duration_1st, w * ACTIONBAR_TEX_SLIDING_SPEED);
2320 set_float(g_duration_2nd, w1 * ACTIONBAR_TEX_SLIDING_SPEED);
2324 part { name: "clipper";
2326 description { state: "default" 0.0;
2329 description { state: "hide" 0.0;
2333 part { name: "base";
2338 description { state: "default" 0.0;
2339 color: 128 128 128 128;
2342 part { name: "title_expand";
2347 description { state: "default" 0.0;
2348 min: 0 HIDDEN_BUTTON_HEIGHT_INC;
2349 max: -1 HIDDEN_BUTTON_HEIGHT_INC;
2353 color: 255 255 255 0;
2354 rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
2355 rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
2357 description { state: "show" 0.0;
2358 inherit: "default" 0.0;
2363 part { name: "title_clip";
2366 description { state: "default" 0.0;
2368 rel1.to: "title_bg";
2369 rel2.to: "title_bg";
2371 description { state: "hide" 0.0;
2372 inherit: "default" 0.0;
2376 part { name: "title_bg";
2379 clip_to: "title_clip";
2380 description { state: "default" 0.0;
2381 min: 0 ACTIONBAR_HEIGHT_INC;
2382 max: -1 ACTIONBAR_HEIGHT_INC;
2385 rel1 { relative: 0.0 0.0; to: "base"; }
2386 rel2 { relative: 1.0 0.0; to: "base"; }
2387 color: 255 255 255 0;
2389 description { state: "hide_trans" 0.0;
2390 inherit: "default" 0.0;
2393 description { state: "hide" 0.0;
2394 inherit: "default" 0.0;
2399 part { name: "title_text_bg";
2402 description { state: "default" 0.0;
2403 rel1 { relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
2404 rel2 { relative: 0.0 0.0; to: "right_padding"; to_y: "bottom_padding"; }
2408 part { name: "title_text_clip";
2411 clip_to: "title_clip";
2412 description { state: "default" 0.0;
2413 rel1.to: "title_text_bg";
2414 rel2.to: "title_text_bg";
2417 part { name: "elm.text.title";
2420 clip_to: "title_text_clip";
2421 description { state: "default" 0.0;
2426 // fade_ellipsis: 1.0;
2427 style: "action_bar_title";
2431 rel1.to: "title_text_bg"; rel2.to: "title_text_bg";
2433 description { state: "slide" 0.0;
2434 inherit: "default" 0.0;
2438 to_x: "left_padding";
2439 to_y: "top_padding";
2443 to_x: "left_padding";
2444 to_y: "bottom_padding";
2448 description { state: "slide_1" 0.0;
2449 inherit: "default" 0.0;
2453 to_x: "left_padding";
2454 to_y: "top_padding";
2458 to_x: "left_padding";
2459 to_y: "bottom_padding";
2463 description { state: "slide_2" 0.0;
2464 inherit: "default" 0.0;
2468 to_x: "right_padding";
2469 to_y: "top_padding";
2473 to_x: "right_padding";
2474 to_y: "bottom_padding";
2479 part { name: "left_padding";
2482 description { state: "default" 0.0;
2483 min: ACTIONBAR_PADDING_SIZE_INC 0;
2484 max: ACTIONBAR_PADDING_SIZE_INC -1;
2487 rel1 { relative: 0.0 0.0; to: "title_bg"; }
2488 rel2 { relative: 0.0 1.0; to: "title_bg"; }
2491 part { name: "right_padding";
2494 description { state: "default" 0.0;
2495 min: ACTIONBAR_PADDING_SIZE_INC 0;
2496 max: ACTIONBAR_PADDING_SIZE_INC -1;
2499 rel1 { relative: 1.0 0.0; to: "title_bg"; }
2500 rel2 { relative: 1.0 1.0; to: "title_bg"; }
2503 part { name: "click_event_area";
2505 ignore_flags: ON_HOLD;
2506 description { state: "default" 0.0;
2507 rel1 { to: "title_bg"; }
2508 rel2 { to: "title_bg"; }
2512 part { name: "access.title";
2515 description { state: "default" 0.0;
2516 rel1.to: "title_bg";
2517 rel2.to: "title_bg";
2521 part { name: "top_padding";
2524 description { state: "default" 0.0;
2527 min: 0 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2528 max: -1 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2529 rel1 {relative: 0.0 0.0; to: "title_bg"; }
2530 rel2 {relative: 1.0 0.0; to: "title_bg"; }
2533 part { name: "bottom_padding";
2536 description { state: "default" 0.0;
2539 min: 0 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2540 max: -1 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2541 rel1 {relative: 0.0 1.0; to: "title_bg"; }
2542 rel2 {relative: 1.0 1.0; to: "title_bg"; }
2545 part { name: "left_padding_content";
2548 description { state: "default" 0.0;
2553 rel1 { relative: 0.0 0.0; to: "base"; }
2554 rel2 { relative: 0.0 1.0; to: "base"; }
2559 part { name: "right_padding_content";
2562 description { state: "default" 0.0;
2567 rel1 { relative: 1.0 0.0; to: "base"; }
2568 rel2 { relative: 1.0 1.0; to: "base"; }
2573 part { name: "elm.swallow.content";
2578 description { state: "default" 0.0;
2579 rel1 { relative: 1.0 1.0; to_x: "left_padding_content"; to_y: "title_expand"; }
2580 rel2 { relative: 0.0 0.0; to_x: "right_padding_content"; to_y: "button_padding"; }
2583 part { name: "elm.swallow.circle_bg";
2588 description { state: "default" 0.0; }
2590 part { name: "elm.swallow.circle";
2595 description { state: "default" 0.0; }
2597 part { name: "button_padding";
2600 description { state: "default" 0.0;
2605 rel1 {relative: 0.0 1.0; to: "base"; }
2606 rel2 {relative: 1.0 1.0; to: "base"; }
2611 program { name: "visible";
2612 signal: "elm,state,visible";
2615 set_state(PART:"base", "default", 0.0);
2616 set_state(PART:"clipper", "default", 0.0);
2619 run_program(PROGRAM:"title_text_fade_out");
2622 program { name: "invisible";
2623 signal: "elm,state,invisible";
2626 set_state(PART:"clipper", "hide", 0.0);
2629 program { name: "title_hide";
2630 signal: "elm,state,title,hide";
2633 set_state(PART:"title_bg", "hide", 0.0);
2634 set_state(PART:"title_clip", "hide", 0.0);
2637 program { name: "title_hide_trans";
2638 signal: "elm,action,title,hide";
2643 get_state(PART:"title_bg", st, 32, vl);
2644 if (!strcmp(st, "default")) {
2645 run_program(PROGRAM:"title_hide_trans2");
2649 program { name: "title_hide_trans2";
2650 action: STATE_SET "hide_trans" 0.0;
2652 transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2653 after: "title_hide_trans3";
2655 program { name: "title_hide_trans3";
2657 run_program(PROGRAM:"title_hide");
2659 after: "title_trans_finished";
2661 program { name: "title_trans_finished";
2662 action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
2664 program { name: "title_show";
2665 signal: "elm,state,title,show";
2668 set_state(PART:"title_bg", "default", 0.0);
2669 set_state(PART:"title_clip", "default", 0.0);
2670 run_program(PROGRAM:"title_text_fade_out");
2673 program { name: "title_show_trans";
2674 signal: "elm,action,title,show";
2679 get_state(PART:"title_bg", st, 32, vl);
2680 if (!strcmp(st, "hide")) {
2681 set_state(PART:"title_bg", "hide_trans", 0.0);
2682 set_state(PART:"title_clip", "default", 0.0);
2683 run_program(PROGRAM:"title_show_trans2");
2687 program { name: "title_show_trans2";
2688 action: STATE_SET "default" 0.0;
2690 transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2691 after: "title_trans_finished";
2693 program { name: "title_label_show";
2694 signal: "elm,state,title_label,show";
2697 run_program(PROGRAM:"title_text_fade_out");
2700 program { name: "title_label_hide";
2701 signal: "elm,state,title_label,hide";
2704 program { name: "title_expand_show";
2705 signal: "elm,state,title_expand,show";
2708 set_state(PART:"title_expand", "show", 0.0);
2711 program { name: "title_expand_hide";
2712 signal: "elm,state,title_expand,hide";
2715 set_state(PART:"title_expand", "default", 0.0);
2718 program { name: "hidden_btn_show_trans";
2719 signal: "elm,action,title_expand,show";
2721 action: STATE_SET "show" 0.0;
2722 target: "title_expand";
2723 transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2725 program { name: "title_expand_hide_trans";
2726 signal: "elm,action,title_expand,hide";
2728 action: STATE_SET "default" 0.0;
2729 target: "title_expand";
2730 transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2732 program { name: "title_clicked";
2733 signal: "mouse,clicked,1";
2734 source: "click_event_area";
2735 action: SIGNAL_EMIT "elm,action,title,clicked" "";
2738 name: "mirrored_on";
2739 signal: "edje,state,rtl";
2742 set_int(g_mirrored, 1);
2743 run_program(PROGRAM:"title_text_fade_out");
2747 name: "mirrored_off";
2748 signal: "edje,state,ltr";
2751 set_int(g_mirrored, 0);
2752 run_program(PROGRAM:"title_text_fade_out");
2756 name: "title_text_fade_out";
2758 if (get_int(g_text_fade_out_calc_timer)) {
2759 cancel_timer(g_text_fade_out_calc_timer);
2760 set_int(g_text_fade_out_calc_timer, 0);
2762 set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
2768 //////////////////////////////////////////////////////////////////////////////////
2769 // Customizing panel for send button.
2770 //////////////////////////////////////////////////////////////////////////////////
2772 // ***************************** Panel*****************************************/
2773 #define PANEL_LEFT_PADDING_SIZE_INC 8
2774 #define PANEL_RIGHT_PADDING_SIZE_INC 6
2775 #define PANEL_LEFT_IMAGE_SIZE_INC 29 36
2776 #define PANEL_RIGHT_IMAGE_SIZE_INC 16 36
2777 #define PANEL_RIGHT_CUE_SIZE_INC 32 158
2778 #define PANEL_RIGHT_CUE_IMAGE_SIZE_INC 158 158
2779 #define PANEL_RIGHT_EVENT_AREA_SIZE_INC 50 140
2780 #define PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC 100 140
2781 #define PANEL_RIGHT_CUE_EFFECT_SIZE_INC 200 200
2782 #define PANEL_LAYOUT_SIZE_INC 360 360
2785 image, "./b_more_option.png" COMP;
2786 image, "./b_more_option_ef.png" COMP;
2787 image, "./b_more_option_bg.png" COMP;
2788 image, "./b_ic_press_full_circle_bg.png" COMP;
2791 group { name: "elm/panel/right/default";
2793 public mouse_down = 0;
2794 public mouse_click = 0;
2795 public multi_down = 0;
2796 public click_cnt = 0;
2797 public event_down = 0;
2798 public cue_hide = 0;
2799 public timer0(val) {
2801 run_program(PROGRAM:"change_opacity");
2803 run_program(PROGRAM:"change_opacity2");
2810 description { state: "default" 0.0;
2811 min: PANEL_LAYOUT_SIZE_INC;
2812 max: PANEL_LAYOUT_SIZE_INC;
2813 //color_class: "transparent";
2817 part { name: "cue.padding";
2819 description { state: "default" 0.0;
2821 rel1.relative: 1.0 0.0;
2823 rel2.relative: 1.0 1.0;
2825 min: PANEL_RIGHT_PADDING_SIZE_INC 0;
2826 max: PANEL_RIGHT_PADDING_SIZE_INC -1;
2831 description { state: "default" 0.0;
2832 min: PANEL_RIGHT_IMAGE_SIZE_INC;
2833 max: PANEL_RIGHT_IMAGE_SIZE_INC;
2835 image.normal: "./b_more_option.png";
2836 color: 128 128 128 128;
2837 rel1.to: "cue.padding";
2838 rel1.relative: 0.0 0.0;
2839 rel2.to: "cue.padding";
2840 rel2.relative: 0.0 1.0;
2843 description { state: "hidden" 0.0;
2844 inherit: "default" 0.0;
2847 description { state: "disabled" 0.0;
2848 inherit: "default" 0.0;
2849 color: 128 128 128 128;
2852 part { name: "cue_ef";
2853 description { state: "default" 0.0;
2854 min: PANEL_RIGHT_IMAGE_SIZE_INC;
2855 max: PANEL_RIGHT_IMAGE_SIZE_INC;
2857 image.normal: "./b_more_option_ef.png";
2858 color: 128 128 128 128;
2862 description { state: "hidden" 0.0;
2863 inherit: "default" 0.0;
2867 part { name: "effect_bg";
2869 clip_to: "effect_bg_clip";
2871 description { state: "default" 0.0;
2872 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2873 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2875 rel1.relative: 1.0 0.0;
2877 rel2.relative: 1.0 1.0;
2880 image.normal: "./b_ic_press_full_circle_bg.png";
2881 color: 128 128 128 128;
2884 description { state: "pressed" 0.0;
2885 inherit: "default" 0.0;
2886 color: 128 128 128 128;
2892 description { state: "disabled" 0.0;
2893 inherit: "default" 0.0;
2895 description { state: "start_persp" 0.0;
2896 inherit: "default" 0.0;
2897 color: 128 128 128 128;
2904 part { name: "effect_bg_clip";
2908 description { state: "default" 0.0;
2909 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2910 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2912 rel1.relative: 1.0 0.0;
2914 rel2.relative: 1.0 1.0;
2917 color: 255 255 255 0;
2919 description { state: "pressed" 0.0;
2920 inherit: "default" 0.0;
2921 color: 255 255 255 255;
2923 description { state: "disabled" 0.0;
2924 inherit: "default" 0.0;
2927 part { name: "effect_bg2";
2929 clip_to: "effect_bg_clip2";
2931 description { state: "default" 0.0;
2932 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2933 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2935 rel1.relative: 1.0 0.0;
2937 rel2.relative: 1.0 1.0;
2940 image.normal: "./b_ic_press_full_circle_bg.png";
2941 //color_class: "transparent";
2945 description { state: "pressed" 0.0;
2946 inherit: "default" 0.0;
2947 color: 128 128 128 128;
2953 description { state: "disabled" 0.0;
2954 inherit: "default" 0.0;
2956 description { state: "start_persp" 0.0;
2957 inherit: "default" 0.0;
2958 color: 128 128 128 128;
2965 part { name: "effect_bg_clip2";
2969 description { state: "default" 0.0;
2970 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2971 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2973 rel1.relative: 1.0 0.0;
2975 rel2.relative: 1.0 1.0;
2978 color: 255 255 255 0;
2980 description { state: "pressed" 0.0;
2981 inherit: "default" 0.0;
2982 color: 255 255 255 255;
2984 description { state: "disabled" 0.0;
2985 inherit: "default" 0.0;
2988 part { name: "cue.event";
2991 description { state: "default" 0.0;
2992 min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2993 max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2995 //color_class: "transparent";
2998 rel1.relative: 1.0 0.0;
3000 rel2.relative: 1.0 1.0;
3003 description { state: "hidden" 0.0;
3004 inherit: "default" 0.0;
3008 part { name: "cue.release.event";
3011 description { state: "default" 0.0;
3012 min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3013 max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3015 //color_class: "transparent";
3018 rel1.relative: 1.0 0.0;
3020 rel2.relative: 1.0 1.0;
3023 description { state: "hidden" 0.0;
3024 inherit: "default" 0.0;
3028 part { name: "base";
3030 description { state: "default" 0.0;
3037 image.normal: "./b_more_option_bg.png";
3038 color: 128 128 128 128;
3051 description { state: "show" 0.0;
3052 inherit: "default" 0.0;
3059 color[0]: 255 255 255 255;
3060 color[1]: 255 255 255 255;
3061 color[2]: 255 255 255 255;
3062 color[3]: 255 255 255 255;
3066 part { name: "elm.swallow.content";
3068 description { state: "default" 0.0;
3085 description { state: "show" 0.0;
3086 inherit: "default" 0.0;
3093 color[0]: 255 255 255 255;
3094 color[1]: 255 255 255 255;
3095 color[2]: 255 255 255 255;
3096 color[3]: 255 255 255 255;
3102 program { name: "pressed";
3103 signal: "mouse,down,1*";
3104 source: "cue.event";
3106 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3108 set_int(mouse_down, 1);
3109 set_int(event_down, 1);
3110 run_program(PROGRAM:"button_press1");
3114 program { name: "button_press1";
3118 get_state(PART:"effect_bg", st, 30, vl);
3119 if (strcmp(st, "disabled")) {
3120 emit("elm,action,press", "");
3121 run_program(PROGRAM:"haptic");
3122 if(get_int(click_cnt) == 0) {
3123 set_state(PART:"effect_bg", "pressed", 0.0);
3124 set_state(PART:"effect_bg_clip", "pressed", 0.0);
3125 run_program(PROGRAM:"start_persp");
3126 timer(0.3, "timer0", 1);
3128 else if(get_int(click_cnt) == 1) {
3129 set_state(PART:"effect_bg2", "pressed", 0.0);
3130 set_state(PART:"effect_bg_clip2", "pressed", 0.0);
3131 run_program(PROGRAM:"start_persp2");
3132 timer(0.3, "timer0", 2);
3137 program { name: "unpressed";
3138 signal: "mouse,up,1";
3139 source: "cue.event";
3141 if (get_int(mouse_down) == 1) {
3142 set_int(mouse_down, 0);
3143 run_program(PROGRAM:"button_unpress1");
3147 program { name: "button_unpress1";
3151 get_state(PART:"effect_bg", st, 30, vl);
3152 if (strcmp(st, "disabled")) {
3153 if(get_int(click_cnt) == 0)
3154 set_int(click_cnt, 1);
3156 set_int(click_cnt, 0);
3160 program { name: "release.event_clicked";
3161 signal: "mouse,clicked,*";
3162 source: "cue.release.event";
3164 if (get_int(event_down) == 1) {
3165 set_int(event_down, 0);
3166 emit("cue,clicked", "elm");
3167 run_program(PROGRAM:"panel_toggle");
3168 run_program(PROGRAM:"play_sample");
3173 name: "play_sample";
3174 action: RUN_PLUGIN "touch_sound";
3176 program { name: "panel_toggle";
3177 action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
3181 action: RUN_PLUGIN "haptic_tap";
3183 program { name: "disable";
3184 signal: "elm,state,disabled";
3187 if (get_int(cue_hide) == 0)
3188 set_state(PART:"cue", "disabled", 0.0);
3189 set_state(PART:"effect_bg", "disabled", 0.0);
3190 set_state(PART:"cue.event", "hidden", 0.0);
3191 set_state(PART:"cue.release.event", "hidden", 0.0);
3194 program { name: "enable";
3195 signal: "elm,state,enabled";
3198 if (get_int(cue_hide) == 1) {
3199 set_state(PART:"cue", "hidden", 0.0);
3200 set_state(PART:"cue.event", "hidden", 0.0);
3201 set_state(PART:"cue.release.event", "hidden", 0.0);
3204 set_state(PART:"cue", "default", 0.0);
3205 set_state(PART:"cue.event", "default", 0.0);
3206 set_state(PART:"cue.release.event", "default", 0.0);
3208 set_state(PART:"effect_bg", "default", 0.0);
3211 program { name: "multi_down";
3212 signal: "elm,action,multi,down";
3215 set_int(multi_down, 1);
3218 program { name: "multi_up";
3219 signal: "elm,action,multi,up";
3222 set_int(multi_down, 0);
3225 program { name: "start_persp";
3226 action: STATE_SET "start_persp" 0.0;
3227 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3228 target: "effect_bg";
3230 program { name: "change_opacity";
3231 action: STATE_SET "default" 0.0;
3232 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3233 target: "effect_bg_clip";
3235 program { name: "start_persp2";
3236 action: STATE_SET "start_persp" 0.0;
3237 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3238 target: "effect_bg2";
3240 program { name: "change_opacity2";
3241 action: STATE_SET "default" 0.0;
3242 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3243 target: "effect_bg_clip2";
3246 signal: "elm,action,show";
3248 action: STATE_SET "show" 0.0;
3249 transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3250 target: "elm.swallow.content";
3252 after: "active,finished";
3255 signal: "elm,action,hide";
3257 action: STATE_SET "default" 0.0;
3258 transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3259 target: "elm.swallow.content";
3261 after: "inactive,finished";
3263 program { name: "active,finished";
3264 action: SIGNAL_EMIT "elm,state,active,finished" "elm";
3266 program { name: "inactive,finished";
3267 action: SIGNAL_EMIT "elm,state,inactive,finished" "elm";
3269 program { name: "cue,hide";
3273 set_int(cue_hide, 1);
3274 set_state(PART:"cue", "hidden", 0.0);
3275 set_state(PART:"cue_ef", "hidden", 0.0);
3276 set_state(PART:"cue.event", "hidden", 0.0);
3277 set_state(PART:"cue.release.event", "hidden", 0.0);
3280 program { name: "cue,show";
3284 set_int(cue_hide, 0);
3285 set_state(PART:"cue", "default", 0.0);
3286 set_state(PART:"cue_ef", "default", 0.0);
3287 set_state(PART:"cue.event", "default", 0.0);
3288 set_state(PART:"cue.release.event", "default", 0.0);
3294 group { name: "elm/panel/left/default";
3295 inherit: "elm/panel/right/default";
3297 part { name: "cue.padding";
3299 description { state: "default" 0.0;
3301 rel1.relative: 0.0 0.0;
3303 rel2.relative: 0.0 1.0;
3305 min: PANEL_RIGHT_PADDING_SIZE_INC 0;
3306 max: PANEL_RIGHT_PADDING_SIZE_INC -1;
3311 description { state: "default" 0.0;
3312 min: PANEL_RIGHT_IMAGE_SIZE_INC;
3313 max: PANEL_RIGHT_IMAGE_SIZE_INC;
3315 image.normal: "./b_more_option.png";
3316 color: 128 128 128 128;
3317 rel1.to: "cue.padding";
3318 rel1.relative: 1.0 0.0;
3319 rel2.to: "cue.padding";
3320 rel2.relative: 1.0 1.0;
3323 description { state: "hidden" 0.0;
3324 inherit: "default" 0.0;
3327 description { state: "disabled" 0.0;
3328 inherit: "default" 0.0;
3329 color: 128 128 128 128;
3332 part { name: "cue_ef";
3333 description { state: "default" 0.0;
3334 min: PANEL_RIGHT_IMAGE_SIZE_INC;
3335 max: PANEL_RIGHT_IMAGE_SIZE_INC;
3337 image.normal: "./b_more_option_ef.png";
3338 color: 128 128 128 128;
3342 description { state: "hidden" 0.0;
3343 inherit: "default" 0.0;
3347 part { name: "effect_bg";
3349 clip_to: "effect_bg_clip";
3351 description { state: "default" 0.0;
3352 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3353 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3355 rel1.relative: 0.0 0.0;
3357 rel2.relative: 0.0 1.0;
3360 image.normal: "./b_ic_press_full_circle_bg.png";
3361 color: 128 128 128 128;
3364 description { state: "pressed" 0.0;
3365 inherit: "default" 0.0;
3366 color: 128 128 128 128;
3372 description { state: "disabled" 0.0;
3373 inherit: "default" 0.0;
3375 description { state: "start_persp" 0.0;
3376 inherit: "default" 0.0;
3377 color: 128 128 128 128;
3384 part { name: "effect_bg_clip";
3388 description { state: "default" 0.0;
3389 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3390 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3392 rel1.relative: 0.0 0.0;
3394 rel2.relative: 0.0 1.0;
3397 color: 255 255 255 0;
3399 description { state: "pressed" 0.0;
3400 inherit: "default" 0.0;
3401 color: 255 255 255 255;
3403 description { state: "disabled" 0.0;
3404 inherit: "default" 0.0;
3407 part { name: "effect_bg2";
3409 clip_to: "effect_bg_clip2";
3411 description { state: "default" 0.0;
3412 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3413 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3415 rel1.relative: 0.0 0.0;
3417 rel2.relative: 0.0 1.0;
3420 image.normal: "./b_ic_press_full_circle_bg.png";
3421 //color_class: "transparent";
3425 description { state: "pressed" 0.0;
3426 inherit: "default" 0.0;
3427 color: 128 128 128 128;
3433 description { state: "disabled" 0.0;
3434 inherit: "default" 0.0;
3436 description { state: "start_persp" 0.0;
3437 inherit: "default" 0.0;
3438 color: 128 128 128 128;
3445 part { name: "effect_bg_clip2";
3449 description { state: "default" 0.0;
3450 min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3451 max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3453 rel1.relative: 0.0 0.0;
3455 rel2.relative: 0.0 1.0;
3458 color: 255 255 255 0;
3460 description { state: "pressed" 0.0;
3461 inherit: "default" 0.0;
3462 color: 255 255 255 255;
3464 description { state: "disabled" 0.0;
3465 inherit: "default" 0.0;
3468 part { name: "cue.event";
3470 description { state: "default" 0.0;
3471 min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3472 max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3474 //color_class: "transparent";
3477 rel1.relative: 0.0 0.0;
3479 rel2.relative: 0.0 1.0;
3482 description { state: "hidden" 0.0;
3483 inherit: "default" 0.0;
3487 part { name: "cue.release.event";
3490 description { state: "default" 0.0;
3491 min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3492 max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3494 //color_class: "transparent";
3497 rel1.relative: 0.0 0.0;
3499 rel2.relative: 0.0 1.0;
3502 description { state: "hidden" 0.0;
3503 inherit: "default" 0.0;
3510 group { name: "elm/panel/left/sending";
3511 inherit: "elm/panel/left/default";
3513 part { name: "cue.padding";
3515 description { state: "default" 0.0;
3517 rel1.relative: 0.0 0.0;
3519 rel2.relative: 0.0 1.0;
3521 min: 1 0;//PANEL_RIGHT_PADDING_SIZE_INC 0;
3522 max: 1 -1;//PANEL_RIGHT_PADDING_SIZE_INC -1;
3527 description { state: "default" 0.0;
3528 min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3529 max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3531 image.normal: "./b_stt_send_icon.png";
3532 color: 128 128 128 128;
3533 rel1.to: "cue.padding";
3534 rel1.relative: 1.0 0.0;
3535 rel2.to: "cue.padding";
3536 rel2.relative: 1.0 1.0;
3539 description { state: "hidden" 0.0;
3540 inherit: "default" 0.0;
3543 description { state: "disabled" 0.0;
3544 inherit: "default" 0.0;
3545 color_class: "AO015L2D";//"B052L1D";
3548 part { name: "cue_ef";
3549 description { state: "default" 0.0;
3550 min: PANEL_RIGHT_IMAGE_SIZE_INC;
3551 max: PANEL_RIGHT_IMAGE_SIZE_INC;
3554 image.normal: "./b_more_option_ef.png";
3555 color: 128 128 128 128;
3559 description { state: "hidden" 0.0;
3560 inherit: "default" 0.0;
3567 group { name: "elm/panel/left/confirm";
3568 inherit: "elm/panel/left/sending";
3571 description { state: "default" 0.0;
3572 min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3573 max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3575 image.normal: "./b_stt_confirm_icon.png";
3576 color: 128 128 128 128;
3577 rel1.to: "cue.padding";
3578 rel1.relative: 1.0 0.0;
3579 rel2.to: "cue.padding";
3580 rel2.relative: 1.0 1.0;
3583 description { state: "hidden" 0.0;
3584 inherit: "default" 0.0;
3587 description { state: "disabled" 0.0;
3588 inherit: "default" 0.0;
3589 color_class: "AO015L2D";//"B052L1D";