2 * Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 group { name: "elm/button/base/default";
19 public mouse_down = 0;
20 public multi_down = 0;
26 description { state: "default" 0.0;
27 min: 0 BUTTON_HEIGHT_INC;
30 description { state: "pressed" 0.0;
31 inherit: "default" 0.0;
34 description { state: "disabled" 0.0;
35 inherit: "default" 0.0;
39 part { name: "padding_left_top";
42 description { state: "default" 0.0;
44 rel2.relative: 0.0 0.0;
45 min: BUTTON_PADDING_SIZE_INC;
49 part { name: "padding_right_bottom";
52 description { state: "default" 0.0;
54 rel1.relative: 1.0 1.0;
55 min: BUTTON_PADDING_SIZE_INC;
59 part { name: "icon_rect";
62 description { state: "default" 0.0;
66 to: "padding_left_top";
70 to_x: "padding_left_top";
71 to_y: "padding_right_bottom";
76 description { state: "visible" 0.0;
77 inherit: "default" 0.0;
78 min: BUTTON_ICON_SIZE_INC;
79 max: BUTTON_ICON_SIZE_INC;
83 part { name: "elm.swallow.content";
85 clip_to: "elm.swallow.content.clip";
87 description { state: "default" 0.0;
92 to: "padding_left_top";
96 to_x: "padding_left_top";
97 to_y: "padding_right_bottom";
101 description { state: "visible" 0.0;
103 min: BUTTON_ICON_SIZE_INC;
104 max: BUTTON_ICON_SIZE_INC;
109 to_y: "padding_left_top";
114 to_y: "padding_right_bottom";
117 description { state: "icononly" 0.0;
118 min: BUTTON_ICON_SIZE_INC;
119 max: BUTTON_ICON_SIZE_INC;
122 part { name: "elm.text";
126 description { state: "default" 0.0;
131 to_y: "padding_left_top";
135 to: "padding_right_bottom";
139 style: "button_general_text_normal";
142 description { state: "disabled" 0.0;
143 inherit: "default" 0.0;
144 text.style: "button_general_text_dim";
146 description { state: "pressed" 0.0;
147 inherit: "default" 0.0;
148 text.style: "button_general_text_press";
151 part { name: "elm.swallow.content.clip";
154 description { state: "default" 0.0;
155 color: 0 148 255 255;
157 description { state: "disabled" 0.0;
158 inherit: "default" 0.0;
159 color: 249 249 249 76;
162 part { name: "event";
165 description { state: "default" 0.0;
173 program { name: "pressed";
174 signal: "mouse,down,1*";
177 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
179 set_int(mouse_down, 1);
180 run_program(PROGRAM:"button_press1");
184 program { name: "button_press1";
188 get_state(PART:"bg", st, 30, vl);
189 if (strcmp(st, "disabled")) {
190 set_state(PART:"bg", "pressed", 0.0);
191 set_state(PART:"elm.text", "pressed", 0.0);
192 emit("elm,action,press", "");
196 program { name: "unpressed";
197 signal: "mouse,up,1";
200 if (get_int(mouse_down) == 1) {
201 set_int(mouse_down, 0);
202 run_program(PROGRAM:"button_unpress1");
206 program { name: "button_unpress1";
210 get_state(PART:"bg", st, 30, vl);
211 if (strcmp(st, "disabled")) {
212 set_state(PART:"bg", "default", 0.0);
213 set_state(PART:"elm.text", "default", 0.0);
214 emit("elm,action,unpress", "");
218 program { name: "touch_snd";
219 signal: "mouse,clicked,1";
224 if (get_int(multi_down) == 0) {
225 get_state(PART:"bg", st, 30, vl);
226 if (strcmp(st, "disabled")) {
227 run_program(PROGRAM:"play_sample");
228 emit("elm,action,click", "");
235 action: RUN_PLUGIN "touch_sound";
237 program { name: "text_show";
238 signal: "elm,state,text,visible";
243 get_state(PART:"elm.swallow.content", st, 30, vl);
244 if (!strcmp(st, "icononly"))
246 set_state(PART:"elm.swallow.content", "visible", 0.0);
247 set_state(PART:"icon_rect", "visible", 0.0);
249 get_state(PART:"bg", st, 30, vl);
250 if (strcmp(st, "disabled"))
251 set_state(PART:"elm.text", "default", 0.0);
253 set_state(PART:"elm.text", "disabled", 0.0);
256 program { name: "text_hide";
257 signal: "elm,state,text,hidden";
262 get_state(PART:"elm.swallow.content", st, 30, vl);
263 if (!strcmp(st, "visible"))
265 set_state(PART:"elm.swallow.content", "icononly", 0.0);
266 set_state(PART:"icon_rect", "default", 0.0);
268 set_state(PART:"elm.text", "default", 0.0);
271 program { name: "icon_show";
272 signal: "elm,state,icon,visible";
274 action: STATE_SET "visible" 0.0;
275 target: "elm.swallow.content";
278 program { name: "icon_hide";
279 signal: "elm,state,icon,hidden";
281 action: STATE_SET "default" 0.0;
282 target: "elm.swallow.content";
285 program { name: "disable";
286 signal: "elm,state,disabled";
288 action: STATE_SET "disabled" 0.0;
290 target: "elm.swallow.content.clip";
293 program { name: "enable";
294 signal: "elm,state,enabled";
296 action: STATE_SET "default" 0.0;
298 target: "elm.swallow.content.clip";
301 program { name: "multi_down";
302 signal: "elm,action,multi,down";
305 set_int(multi_down, 1);
308 program { name: "multi_up";
309 signal: "elm,action,multi,up";
312 set_int(multi_down, 0);
318 group { name: "elm/button/base/fastscroll";
320 image: "b_fast_scroll_rollover_bg.png" COMP;
326 description { state: "default" 0.0;
327 min: BUTTON_FASTSCROLL_CUE_BUTTON_SIZE_INC;
328 image.normal: "b_fast_scroll_rollover_bg.png";
331 description { state: "pressed" 0.0;
332 inherit: "default" 0.0;
335 description { state: "disabled" 0.0;
336 inherit: "default" 0.0;
340 part { name: "padding_right";
343 description { state: "default" 0.0;
345 rel1.relative: 1.0 0.0;
346 min: BUTTON_FASTSCROLL_CUE_RIGHT_PADDING_SIZE_INC;
347 max: BUTTON_FASTSCROLL_CUE_RIGHT_PADDING_SIZE_INC;
351 part { name: "elm.text";
355 description { state: "default" 0.0;
367 style: "button_fastscroll";
369 min: BUTTON_FASTSCROLL_CUE_TEXT_SIZE_INC;
370 max: BUTTON_FASTSCROLL_CUE_TEXT_SIZE_INC;
373 description { state: "disabled" 0.0;
374 inherit: "default" 0.0;
375 text.style: "button_general_text_dim";
377 description { state: "pressed" 0.0;
378 inherit: "default" 0.0;
379 text.style: "button_general_text_press";
385 group { name: "elm/button/base/popup/circle";
387 image: "tw_bottom_btn_press_bg.png" COMP;
390 public mouse_down = 0;
391 public multi_down = 0;
394 part { name: "padding";
398 description { state: "default" 0.0;
400 min: 0 BUTTON_POPUP_EFFECT_PADDING_SIZE_INC;
401 rel1.relative: 0.5 1.0;
402 rel2.relative: 0.5 1.0;
410 description { state: "default" 0.0;
412 min: BUTTON_POPUP_SIZE_INC;
413 image.normal: "tw_bottom_btn_press_bg.png";
415 rel1.relative: 0.5 1.0;
417 rel2.relative: 0.5 1.0;
421 description { state: "pressed" 0.0;
422 inherit: "default" 0.0;
423 rel1.relative: 0.5 0.0;
424 rel2.relative: 0.5 0.0;
425 color: 0 148 255 127;
427 description { state: "disabled" 0.0;
428 inherit: "default" 0.0;
432 part { name: "icon_rect_padding";
435 description { state: "default" 0.0;
437 min: 0 BUTTON_POPUP_ICON_TOP_PADDING_INC;
440 rel2.relative: 1.0 0.0;
443 description { state: "pressed" 0.0;
444 inherit: "default" 0.0;
447 part { name: "icon_rect";
450 description { state: "default" 0.0;
452 rel1.to: "icon_rect_padding";
453 rel1.relative: 0.0 1.0;
454 rel2.to: "icon_rect_padding";
455 min: BUTTON_POPUP_ICON_SIZE_INC;
456 max: BUTTON_POPUP_ICON_SIZE_INC;
460 part { name: "elm.swallow.content";
464 description { state: "default" 0.0;
466 rel1.to: "icon_rect";
467 rel2.to: "icon_rect";
469 description { state: "visible" 0.0;
470 rel1.to: "icon_rect";
471 rel2.to: "icon_rect";
473 description { state: "icononly" 0.0;
474 rel1.to: "icon_rect";
475 rel2.to: "icon_rect";
481 description { state: "default" 0.0;
482 rel1.to: "elm.swallow.content";
483 rel2.to: "elm.swallow.content";
484 color: 0 148 255 255;
486 description { state: "disabled" 0.0;
487 inherit: "default" 0.0;
488 color: 249 249 249 76;
491 part { name: "event";
494 description { state: "default" 0.0;
504 program { name: "pressed";
505 signal: "mouse,down,1*";
508 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
510 set_int(mouse_down, 1);
511 run_program(PROGRAM:"button_press1");
515 program { name: "button_press1";
519 get_state(PART:"bg", st, 30, vl);
520 if (strcmp(st, "disabled")) {
521 run_program(PROGRAM:"pressed_effect");
522 emit("elm,action,press", "");
526 program { name: "pressed_effect";
527 action: STATE_SET "pressed" 0.0;
528 transition: CUBIC_BEZIER 0.25 0.45 0.03 0.41 1.0;
530 target: "icon_rect_padding";
532 program { name: "unpressed";
533 signal: "mouse,up,1";
536 if (get_int(mouse_down) == 1) {
537 set_int(mouse_down, 0);
538 run_program(PROGRAM:"button_unpress1");
542 program { name: "button_unpress1";
546 get_state(PART:"bg", st, 30, vl);
547 if (strcmp(st, "disabled")) {
548 run_program(PROGRAM:"unpressed_effect");
549 emit("elm,action,unpress", "");
553 program { name: "unpressed_effect";
554 action: STATE_SET "default" 0.0;
555 transition: CUBIC_BEZIER 0.25 0.45 0.03 0.41 1.0;
557 target: "icon_rect_padding";
559 program { name: "touch_snd";
560 signal: "mouse,clicked,1";
565 if (get_int(multi_down) == 0) {
566 get_state(PART:"bg", st, 30, vl);
567 if (strcmp(st, "disabled")) {
568 run_program(PROGRAM:"play_sample");
569 emit("elm,action,click", "");
576 action: RUN_PLUGIN "touch_sound";
578 program { name: "text_show";
579 signal: "elm,state,text,visible";
584 get_state(PART:"elm.swallow.content", st, 30, vl);
585 if (!strcmp(st, "icononly"))
587 set_state(PART:"elm.swallow.content", "visible", 0.0);
588 set_state(PART:"icon_rect", "visible", 0.0);
590 get_state(PART:"bg", st, 30, vl);
593 program { name: "text_hide";
594 signal: "elm,state,text,hidden";
599 get_state(PART:"elm.swallow.content", st, 30, vl);
600 if (!strcmp(st, "visible"))
602 set_state(PART:"elm.swallow.content", "icononly", 0.0);
603 set_state(PART:"icon_rect", "default", 0.0);
607 program { name: "icon_show";
608 signal: "elm,state,icon,visible";
610 action: STATE_SET "visible" 0.0;
611 target: "elm.swallow.content";
614 program { name: "icon_hide";
615 signal: "elm,state,icon,hidden";
617 action: STATE_SET "default" 0.0;
618 target: "elm.swallow.content";
621 program { name: "disable";
622 signal: "elm,state,disabled";
624 action: STATE_SET "disabled" 0.0;
628 program { name: "enable";
629 signal: "elm,state,enabled";
631 action: STATE_SET "default" 0.0;
635 program { name: "multi_down";
636 signal: "elm,action,multi,down";
639 set_int(multi_down, 1);
642 program { name: "multi_up";
643 signal: "elm,action,multi,up";
646 set_int(multi_down, 0);
652 group { name: "elm/button/base/popup/circle/left";
653 inherit: "elm/button/base/popup/circle";
655 image: "tw_ic_popup_left_btn_press_bg.png" COMP;
658 part { name: "padding";
662 description { state: "default" 0.0;
664 min: BUTTON_POPUP_EFFECT_PADDING_SIZE_INC 0;
665 rel1.relative: 0.0 0.5;
666 rel2.relative: 0.0 0.5;
673 description { state: "default" 0.0;
674 image.normal: "tw_ic_popup_left_btn_press_bg.png";
676 min: BUTTON_POPUP_LR_SIZE_INC;
678 rel1.relative: 0.0 0.5;
680 rel2.relative: 0.0 0.5;
684 description { state: "pressed" 0.0;
685 inherit: "default" 0.0;
686 rel1.relative: 1.0 0.5;
687 rel2.relative: 1.0 0.5;
688 color: 0 148 255 127;
690 description { state: "disabled" 0.0;
691 inherit: "default" 0.0;
695 part { name: "icon_rect_padding";
698 description { state: "default" 0.0;
700 min: BUTTON_POPUP_ICON_LR_PADDING_INC 0;
703 rel2.relative: 0.0 1.0;
706 description { state: "pressed" 0.0;
707 inherit: "default" 0.0;
711 part { name: "icon_rect";
714 description { state: "default" 0.0;
716 rel1.to: "icon_rect_padding";
717 rel1.relative: 1.0 0.0;
718 rel2.to: "icon_rect_padding";
719 min: BUTTON_POPUP_ICON_SIZE_INC;
720 max: BUTTON_POPUP_ICON_SIZE_INC;
727 group { name: "elm/button/base/popup/circle/right";
728 inherit: "elm/button/base/popup/circle";
730 image: "tw_ic_popup_right_btn_press_bg.png" COMP;
733 part { name: "padding";
737 description { state: "default" 0.0;
739 min: BUTTON_POPUP_EFFECT_PADDING_SIZE_INC 0;
740 rel1.relative: 1.0 0.5;
741 rel2.relative: 1.0 0.5;
748 description { state: "default" 0.0;
749 image.normal: "tw_ic_popup_right_btn_press_bg.png";
751 min: BUTTON_POPUP_LR_SIZE_INC;
753 rel1.relative: 1.0 0.5;
755 rel2.relative: 1.0 0.5;
759 description { state: "pressed" 0.0;
760 inherit: "default" 0.0;
761 rel1.relative: 0.0 0.5;
762 rel2.relative: 0.0 0.5;
763 color: 0 148 255 127;
765 description { state: "disabled" 0.0;
766 inherit: "default" 0.0;
770 part { name: "icon_rect_padding";
773 description { state: "default" 0.0;
775 min: BUTTON_POPUP_ICON_LR_PADDING_INC 0;
777 rel1.relative: 1.0 0.0;
779 rel2.relative: 1.0 1.0;
782 description { state: "pressed" 0.0;
783 inherit: "default" 0.0;
787 part { name: "icon_rect";
790 description { state: "default" 0.0;
792 rel1.to: "icon_rect_padding";
793 rel1.relative: 0.0 0.0;
794 rel2.to: "icon_rect_padding";
795 rel2.relative: 0.0 1.0;
796 min: BUTTON_POPUP_ICON_SIZE_INC;
797 max: BUTTON_POPUP_ICON_SIZE_INC;
804 group { name: "elm/button/base/popup/circle/body";
806 image: "tw_popup_body_btn.png" COMP;
809 public mouse_down = 0;
810 public multi_down = 0;
816 description { state: "default" 0.0;
817 min: POPUP_BODY_BUTTON_WIDTH_INC POPUP_BODY_BUTTON_HEIGHT_INC;
818 max: POPUP_BODY_BUTTON_WIDTH_INC POPUP_BODY_BUTTON_HEIGHT_INC;
825 description { state: "default" 0.0;
826 image.normal: "tw_popup_body_btn.png";
831 description { state: "pressed" 0.0;
832 inherit: "default" 0.0;
833 color: 22 73 114 255;
835 description { state: "disabled" 0.0;
836 inherit: "default" 0.0;
840 part { name: "elm.text";
844 description { state: "default" 0.0;
859 style: "button_popup_body_text_normal";
863 part { name: "event";
866 description { state: "default" 0.0;
874 program { name: "pressed";
875 signal: "mouse,down,1*";
878 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
880 set_int(mouse_down, 1);
881 run_program(PROGRAM:"button_press1");
885 program { name: "button_press1";
889 get_state(PART:"bg", st, 30, vl);
890 if (strcmp(st, "disabled")) {
891 set_state(PART:"bg", "pressed", 0.0);
892 emit("elm,action,press", "");
896 program { name: "unpressed";
897 signal: "mouse,up,1";
900 if (get_int(mouse_down) == 1) {
901 set_int(mouse_down, 0);
902 run_program(PROGRAM:"button_unpress1");
906 program { name: "button_unpress1";
910 get_state(PART:"bg", st, 30, vl);
911 if (strcmp(st, "disabled")) {
912 set_state(PART:"bg", "default", 0.0);
913 emit("elm,action,unpress", "");
917 program { name: "touch_snd";
918 signal: "mouse,clicked,1";
923 if (get_int(multi_down) == 0) {
924 get_state(PART:"bg", st, 30, vl);
925 if (strcmp(st, "disabled")) {
926 run_program(PROGRAM:"play_sample");
927 emit("elm,action,click", "");
934 action: RUN_PLUGIN "touch_sound";
936 program { name: "disable";
937 signal: "elm,state,disabled";
939 action: STATE_SET "disabled" 0.0;
942 program { name: "enable";
943 signal: "elm,state,enabled";
945 action: STATE_SET "default" 0.0;
948 program { name: "multi_down";
949 signal: "elm,action,multi,down";
952 set_int(multi_down, 1);
955 program { name: "multi_up";
956 signal: "elm,action,multi,up";
959 set_int(multi_down, 0);
965 group { name: "elm/button/base/list_divider_btn";
966 inherit: "elm/button/base/default";
968 image: "b_ic_press_circle_bg.png" COMP;
974 description { state: "default" 0.0;
977 description { state: "disabled" 0.0;
978 inherit: "default" 0.0;
981 part { name: "bg_ef";
985 description { state: "default" 0.0;
987 image.normal: "b_ic_press_circle_bg.png";
989 rel1.to: "elm.swallow.content";
990 rel2.to: "elm.swallow.content";
991 min: BUTTON_DIVIDER_BTN_EFFECT_SIZE_INC;
992 max: BUTTON_DIVIDER_BTN_EFFECT_SIZE_INC;
994 color: 249 249 249 25;
996 description { state: "start_persp" 0.0;
997 inherit: "default" 0.0;
1004 description { state: "end_persp" 0.0;
1005 inherit: "default" 0.0;
1012 part { name: "left_padding";
1015 description { state: "default" 0.0;
1016 min: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE_INC 0;
1017 max: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE_INC -1;
1027 part { name: "right_padding";
1030 description { state: "default" 0.0;
1031 min: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE_INC 0;
1032 max: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE_INC -1;
1042 part { name: "elm.swallow.content";
1043 clip_to: "elm.swallow.content.clip";
1046 description { state: "default" 0.0;
1047 min: BUTTON_DIVIDER_BTN_ICON_SIZE_INC 0;
1048 max: BUTTON_DIVIDER_BTN_ICON_SIZE_INC -1;
1057 to: "right_padding";
1061 description { state: "visible" 0.0;
1062 inherit: "default" 0.0;
1064 description { state: "icononly" 0.0;
1065 inherit: "default" 0.0;
1068 part { name: "elm.swallow.content.clip";
1071 description { state: "default" 0.0;
1072 color: 0 148 255 255;
1074 description { state: "disabled" 0.0;
1075 inherit: "default" 0.0;
1076 color: 249 249 249 76;
1079 part { name: "event";
1083 description { state: "default" 0.0;
1086 description { state: "disabled" 0.0;
1087 inherit: "default" 0.0;
1092 program { name: "pressed";
1093 signal: "mouse,down,1*";
1098 get_state(PART:"event", st, 30, vl);
1099 if (strcmp(st, "disabled")) {
1100 set_state(PART:"bg_ef", "pressed_start", 0.0);
1101 run_program(PROGRAM:"start_persp");
1102 emit("elm,action,press", "");
1106 program { name: "start_persp";
1107 action: STATE_SET "start_persp" 0.0;
1108 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
1111 program { name: "end_persp";
1112 action: STATE_SET "end_persp" 0.0;
1113 transition: CUBIC_BEZIER 0.0 0.45 0.03 0.41 1.0;
1116 program { name: "unpressed";
1117 signal: "mouse,up,1";
1122 get_state(PART:"event", st, 30, vl);
1123 if (strcmp(st, "disabled")) {
1124 run_program(PROGRAM:"end_persp");
1125 emit("elm,action,unpress", "");
1129 program { name: "touch_snd";
1130 signal: "mouse,clicked,1";
1135 get_state(PART:"event", st, 30, vl);
1136 if (strcmp(st, "disabled")) {
1137 run_program(PROGRAM:"play_sample");
1138 emit("elm,action,click", "");
1143 name: "play_sample";
1144 action: RUN_PLUGIN "touch_sound";
1146 program { name: "disable";
1147 signal: "elm,state,disabled";
1149 action: STATE_SET "disabled" 0.0;
1153 program { name: "enable";
1154 signal: "elm,state,enabled";
1156 action: STATE_SET "default" 0.0;
1163 group { name: "elm/button/base/select_mode";
1164 alias: "elm/button/base/list_number";
1165 alias: "elm/button/base/edit_mode";
1167 image: "tw_list_number_bg.#.png" COMP;
1168 image: "tw_list_number_ef.#.png" COMP;
1171 public mouse_down = 0;
1172 public multi_down = 0;
1175 part { name: "base";
1178 description { state: "default" 0.0;
1179 min: BUTTON_LIST_SELECT_MODE_SIZE_INC;
1182 part { name: "lt_padding";
1185 description { state: "default" 0.0;
1195 min: BUTTON_LIST_SELECT_MODE_PADDING_LT_SIZE_INC;
1199 part { name: "rb_padding";
1202 description { state: "default" 0.0;
1212 min: BUTTON_LIST_SELECT_MODE_PADDING_RB_SIZE_INC;
1220 description { state: "default" 0.0;
1221 image.normal: "tw_list_number_bg.#.png";
1224 min: BUTTON_LIST_SELECT_MODE_SIZE_INC;
1225 color: 1 55 91 255; /*(Changeable UI) color_class: "B2011";*/
1227 description { state: "pressed" 0.0;
1228 inherit: "default" 0.0;
1229 color: 22 73 114 255; /*(Changeable UI) color_class: "B2011P";*/
1231 description { state: "disabled" 0.0;
1232 inherit: "default" 0.0;
1239 description { state: "default" 0.0;
1240 image.normal: "tw_list_number_ef.#.png";
1243 min: BUTTON_LIST_SELECT_MODE_SIZE_INC;
1244 color: 7 7 7 255; /*(Changeable UI) color_class: "B2013";*/
1246 description { state: "pressed" 0.0;
1247 inherit: "default" 0.0;
1249 description { state: "disabled" 0.0;
1250 inherit: "default" 0.0;
1253 part { name: "elm.swallow.content";
1255 clip_to: "elm.swallow.content.clip";
1257 description { state: "default" 0.0;
1261 min: 0 BUTTON_LIST_SELECT_MODE_BOTTOM_CONTENT_HEIGHT_INC;
1271 description { state: "visible" 0.0;
1272 inherit: "default" 0.0;
1274 description { state: "icononly" 0.0;
1275 inherit: "default" 0.0;
1278 part { name: "elm.text";
1282 description { state: "default" 0.0;
1284 min: 0 BUTTON_LIST_SELECT_MODE_TEXT_HEIGHT_INC;
1285 max: BUTTON_LIST_SELECT_MODE_TEXT_WIDTH_INC BUTTON_LIST_SELECT_MODE_TEXT_HEIGHT_INC;
1296 style: "button_list_select_mode_text_normal";
1299 description { state: "disabled" 0.0;
1300 inherit: "default" 0.0;
1302 description { state: "pressed" 0.0;
1303 inherit: "default" 0.0;
1304 text.style: "button_list_select_mode_text_press";
1306 } part { name: "elm.swallow.content.clip";
1309 description { state: "default" 0.0;
1311 description { state: "disabled" 0.0;
1312 inherit: "default" 0.0;
1315 part { name: "event";
1318 description { state: "default" 0.0;
1326 program { name: "pressed";
1327 signal: "mouse,down,1*";
1330 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1332 set_int(mouse_down, 1);
1333 run_program(PROGRAM:"button_press1");
1337 program { name: "button_press1";
1341 get_state(PART:"bg", st, 30, vl);
1342 if (strcmp(st, "disabled")) {
1343 set_state(PART:"bg", "pressed", 0.0);
1344 set_state(PART:"elm.text", "pressed", 0.0);
1345 emit("elm,action,press", "");
1349 program { name: "unpressed";
1350 signal: "mouse,up,1";
1353 if (get_int(mouse_down) == 1) {
1354 set_int(mouse_down, 0);
1355 run_program(PROGRAM:"button_unpress1");
1359 program { name: "button_unpress1";
1363 get_state(PART:"bg", st, 30, vl);
1364 if (strcmp(st, "disabled")) {
1365 set_state(PART:"bg", "default", 0.0);
1366 set_state(PART:"elm.text", "default", 0.0);
1367 emit("elm,action,unpress", "");
1371 program { name: "touch_snd";
1372 signal: "mouse,clicked,1";
1377 if (get_int(multi_down) == 0) {
1378 get_state(PART:"bg", st, 30, vl);
1379 if (strcmp(st, "disabled")) {
1380 run_program(PROGRAM:"play_sample");
1381 emit("elm,action,click", "");
1387 name: "play_sample";
1388 action: RUN_PLUGIN "touch_sound";
1390 program { name: "text_show";
1391 signal: "elm,state,text,visible";
1396 get_state(PART:"elm.swallow.content", st, 30, vl);
1397 if (!strcmp(st, "icononly"))
1399 set_state(PART:"elm.swallow.content", "visible", 0.0);
1401 get_state(PART:"bg", st, 30, vl);
1402 if (strcmp(st, "disabled"))
1403 set_state(PART:"elm.text", "default", 0.0);
1405 set_state(PART:"elm.text", "disabled", 0.0);
1408 program { name: "text_hide";
1409 signal: "elm,state,text,hidden";
1414 get_state(PART:"elm.swallow.content", st, 30, vl);
1415 if (!strcmp(st, "visible"))
1417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1419 set_state(PART:"elm.text", "default", 0.0);
1422 program { name: "icon_show";
1423 signal: "elm,state,icon,visible";
1425 action: STATE_SET "visible" 0.0;
1426 target: "elm.swallow.content";
1428 program { name: "icon_hide";
1429 signal: "elm,state,icon,hidden";
1431 action: STATE_SET "default" 0.0;
1432 target: "elm.swallow.content";
1434 program { name: "disable";
1435 signal: "elm,state,disabled";
1437 action: STATE_SET "disabled" 0.0;
1439 target: "elm.swallow.content.clip";
1442 program { name: "enable";
1443 signal: "elm,state,enabled";
1445 action: STATE_SET "default" 0.0;
1447 target: "elm.swallow.content.clip";
1450 program { name: "multi_down";
1451 signal: "elm,action,multi,down";
1454 set_int(multi_down, 1);
1457 program { name: "multi_up";
1458 signal: "elm,action,multi,up";
1461 set_int(multi_down, 0);
1467 /* This transparent button style is used by applications which use webview. */
1468 group{ name: "elm/button/base/transparent";
1470 public mouse_down = 0;
1471 public multi_down = 0;
1477 description { state: "default" 0.0;
1479 description { state: "disabled" 0.0;
1480 inherit: "default" 0.0;
1483 part { name: "elm.swallow.content";
1486 description { state: "default" 0.0;
1489 part { name: "event";
1492 /* Do not remove the following line.
1493 * elm.swallow.content part should receive mouse events. */
1495 description { state: "default" 0.0;
1501 program { name: "pressed";
1502 signal: "mouse,down,1*";
1505 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1507 set_int(mouse_down, 1);
1508 run_program(PROGRAM:"button_press1");
1512 program { name: "button_press1";
1516 get_state(PART:"bg", st, 30, vl);
1517 if (strcmp(st, "disabled")) {
1518 emit("elm,action,press", "");
1522 program { name: "unpressed";
1523 signal: "mouse,up,1";
1526 if (get_int(mouse_down) == 1) {
1527 set_int(mouse_down, 0);
1528 run_program(PROGRAM:"button_unpress1");
1532 program { name: "button_unpress1";
1536 get_state(PART:"bg", st, 30, vl);
1537 if (strcmp(st, "disabled")) {
1538 emit("elm,action,unpress", "");
1542 program { name: "touch_snd";
1543 signal: "mouse,clicked,1";
1548 if (get_int(multi_down) == 0) {
1549 get_state(PART:"bg", st, 30, vl);
1550 if (strcmp(st, "disabled")) {
1551 run_program(PROGRAM:"touch_sound");
1552 emit("elm,action,click", "");
1557 program { name: "touch_sound";
1558 action: RUN_PLUGIN "touch_sound";
1560 program { name: "disable";
1561 signal: "elm,state,disabled";
1563 action: STATE_SET "disabled" 0.0;
1566 program { name: "enable";
1567 signal: "elm,state,enabled";
1569 action: STATE_SET "default" 0.0;
1572 program { name: "multi_down";
1573 signal: "elm,action,multi,down";
1576 set_int(multi_down, 1);
1579 program { name: "multi_up";
1580 signal: "elm,action,multi,up";
1583 set_int(multi_down, 0);
1589 group { name: "elm/button/base/bottom";
1590 alias: "elm/button/base/bottom/queue";
1592 image: "tw_bottom_btn_press_bg.png" COMP;
1595 public mouse_down = 0;
1596 public multi_down = 0;
1599 part { name: "padding";
1603 description { state: "default" 0.0;
1605 min: 0 BUTTON_BOTTOM_EFFECT_PADDING_SIZE_INC;
1606 rel1.relative: 0.5 1.0;
1607 rel2.relative: 0.5 1.0;
1611 part { name: "elm.content.bg";
1615 description { state: "default" 0.0;
1617 min: BUTTON_BOTTOM_SIZE_INC;
1618 image.normal: "tw_bottom_btn_press_bg.png";
1620 rel1.relative: 0.5 1.0;
1622 rel2.relative: 0.5 1.0;
1624 color: 0 44 76 255; /*(Changeable UI) color_class: "B065L4";*/
1626 description { state: "pressed" 0.0;
1627 inherit: "default" 0.0;
1628 rel1.relative: 0.5 0.0;
1629 rel2.relative: 0.5 0.0;
1630 color: 0 148 255 127; /*(Changeable UI) color_class: "B065L4P";*/
1632 description { state: "disabled" 0.0;
1633 inherit: "default" 0.0;
1634 color: 33 33 33 255; /*(Changeable UI) color_class: "B065L4D";*/
1637 part { name: "icon_top_padding";
1640 description { state: "default" 0.0;
1641 min: 0 BUTTON_BOTTOM_ICON_TOP_PADDING_INC;
1642 max: -1 BUTTON_BOTTOM_ICON_TOP_PADDING_INC;
1643 rel1.to: "elm.content.bg";
1644 rel1.relative: 0.0 0.0;
1645 rel2.to: "elm.content.bg";
1646 rel2.relative: 1.0 0.0;
1650 part { name: "elm.swallow.content";
1652 clip_to: "elm.swallow.content.clip";
1654 description { state: "default" 0.0;
1659 to: "icon_top_padding";
1663 to: "icon_top_padding";
1665 min: BUTTON_BOTTOM_ICON_SIZE_INC;
1666 max: BUTTON_BOTTOM_ICON_SIZE_INC;
1670 part { name: "elm.swallow.content.clip";
1673 description { state: "default" 0.0;
1675 to: "elm.swallow.content";
1678 to: "elm.swallow.content";
1680 color: 0 148 255 255; /*(Changeable UI) color_class: "F022L1i";*/
1682 description { state: "disabled" 0.0;
1683 inherit: "default" 0.0;
1684 color: 249 249 249 76; /*(Changeable UI) color_class: "F022L1iD";*/
1687 part { name: "text_left_top_padding";
1690 description { state: "default" 0.0;
1691 min: BUTTON_BOTTOM_TEXT_LR_PADDING_INC BUTTON_BOTTOM_TEXT_TOP_PADDING_INC;
1692 max: BUTTON_BOTTOM_TEXT_LR_PADDING_INC BUTTON_BOTTOM_TEXT_TOP_PADDING_INC;
1693 rel1.to: "elm.content.bg";
1694 rel2.to: "elm.content.bg";
1699 part { name: "text_right_bottom_padding";
1702 description { state: "default" 0.0;
1703 min: BUTTON_BOTTOM_TEXT_LR_PADDING_INC BUTTON_BOTTOM_TEXT_BOTTOM_PADDING_INC;
1704 max: BUTTON_BOTTOM_TEXT_LR_PADDING_INC BUTTON_BOTTOM_TEXT_BOTTOM_PADDING_INC;
1705 rel1.to: "elm.content.bg";
1706 rel2.to: "elm.content.bg";
1711 part { name: "elm.text";
1715 description { state: "default" 0.0;
1718 min: 0 BUTTON_BOTTOM_TEXT_HEIGHT_INC;
1721 to: "text_left_top_padding";
1725 to: "text_right_bottom_padding";
1729 style: "button_general_text_normal";
1732 description { state: "disabled" 0.0;
1733 inherit: "default" 0.0;
1734 text.style: "button_general_text_dim";
1736 description { state: "pressed" 0.0;
1737 inherit: "default" 0.0;
1738 text.style: "button_general_text_press";
1741 part { name: "event";
1744 description { state: "default" 0.0;
1746 rel1.to: "elm.content.bg";
1747 rel2.to: "elm.content.bg";
1752 program { name: "pressed";
1753 signal: "mouse,down,1*";
1756 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) {
1757 set_int(mouse_down, 1);
1758 run_program(PROGRAM:"button_press1");
1762 program { name: "button_press1";
1766 get_state(PART:"elm.content.bg", st, 30, vl);
1767 if (strcmp(st, "disabled")) {
1768 run_program(PROGRAM:"pressed_effect");
1769 emit("elm,action,press", "");
1773 program { name: "pressed_effect";
1774 action: STATE_SET "pressed" 0.0;
1775 transition: CUBIC_BEZIER 0.25 0.45 0.03 0.41 1.0;
1776 target: "elm.content.bg";
1778 program { name: "unpressed";
1779 signal: "mouse,up,1";
1782 if (get_int(mouse_down) == 1) {
1783 set_int(mouse_down, 0);
1784 run_program(PROGRAM:"button_unpress1");
1788 program { name: "button_unpress1";
1792 get_state(PART:"elm.content.bg", st, 30, vl);
1793 if (strcmp(st, "disabled")) {
1794 run_program(PROGRAM:"unpressed_effect");
1795 emit("elm,action,unpress", "");
1799 program { name: "unpressed_effect";
1800 action: STATE_SET "default" 0.0;
1801 transition: CUBIC_BEZIER 0.25 0.45 0.03 0.41 1.0;
1802 target: "elm.content.bg";
1804 program { name: "touch_snd";
1805 signal: "mouse,clicked,1";
1810 if (get_int(multi_down) == 0) {
1811 get_state(PART:"elm.content.bg", st, 30, vl);
1812 if (strcmp(st, "disabled")) {
1813 run_program(PROGRAM:"play_sample");
1814 emit("elm,action,click", "");
1820 name: "play_sample";
1821 action: RUN_PLUGIN "touch_sound";
1823 program { name: "disable";
1824 signal: "elm,state,disabled";
1826 action: STATE_SET "disabled" 0.0;
1827 target: "elm.content.bg";
1828 target: "elm.swallow.content.clip";
1830 program { name: "enable";
1831 signal: "elm,state,enabled";
1833 action: STATE_SET "default" 0.0;
1834 target: "elm.content.bg";
1835 target: "elm.swallow.content.clip";
1837 program { name: "multi_down";
1838 signal: "elm,action,multi,down";
1841 set_int(multi_down, 1);
1844 program { name: "multi_up";
1845 signal: "elm,action,multi,up";
1848 set_int(multi_down, 0);
1853 group { name: "elm/button/base/action";
1855 image: "b_more_option_btn_bg.png" COMP;
1858 public mouse_down = 0;
1859 public multi_down = 0;
1862 part { name: "base";
1865 description { state: "default" 0.0;
1866 min: BUTTON_ACTION_WIDTH_INC BUTTON_ACTION_WIDTH_INC;
1867 max: BUTTON_ACTION_WIDTH_INC BUTTON_ACTION_WIDTH_INC;
1872 description { state: "default" 0.0;
1875 image.normal: "b_more_option_btn_bg.png";
1876 color: 249 249 249 255;
1879 description { state: "disabled" 0.0;
1880 inherit: "default" 0.0;
1881 color: 76 76 76 255;
1884 part { name: "press_bg";
1886 description { state: "default" 0.0;
1889 image.normal: "b_more_option_btn_bg.png";
1893 description { state: "pressed" 0.0;
1894 inherit: "default" 0.0;
1895 color: 127 127 127 255;
1901 description { state: "disabled" 0.0;
1902 inherit: "default" 0.0;
1904 description { state: "start_persp" 0.0;
1905 inherit: "default" 0.0;
1906 color: 127 127 127 255;
1912 description { state: "end_persp" 0.0;
1913 inherit: "default" 0.0;
1921 part { name: "elm.swallow.content";
1923 clip_to: "elm.swallow.content.clip";
1925 description { state: "default" 0.0;
1930 part { name: "elm.swallow.content.clip";
1933 description { state: "default" 0.0;
1934 color: 20 20 20 255;
1936 description { state: "pressed" 0.0;
1937 inherit: "default" 0.0;
1938 color: 20 20 20 255;
1940 description { state: "disabled" 0.0;
1941 inherit: "default" 0.0;
1942 color: 51 51 51 255;
1945 part { name: "event";
1948 description { state: "default" 0.0;
1956 program { name: "pressed";
1957 signal: "mouse,down,1*";
1960 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1962 set_int(mouse_down, 1);
1963 run_program(PROGRAM:"button_press1");
1967 program { name: "button_press1";
1971 get_state(PART:"bg", st, 30, vl);
1972 if (strcmp(st, "disabled")) {
1973 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1974 set_state(PART:"press_bg", "pressed", 0.0);
1975 run_program(PROGRAM:"start_persp");
1976 emit("elm,action,press", "");
1980 program { name: "unpressed";
1981 signal: "mouse,up,1";
1984 if (get_int(mouse_down) == 1) {
1985 set_int(mouse_down, 0);
1986 run_program(PROGRAM:"button_unpress1");
1990 program { name: "button_unpress1";
1994 get_state(PART:"bg", st, 30, vl);
1995 if (strcmp(st, "disabled")) {
1996 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1997 run_program(PROGRAM:"end_persp");
1998 emit("elm,action,unpress", "");
2002 program { name: "touch_snd";
2003 signal: "mouse,clicked,1";
2008 if (get_int(multi_down) == 0) {
2009 get_state(PART:"bg", st, 30, vl);
2010 if (strcmp(st, "disabled")) {
2011 run_program(PROGRAM:"play_sample");
2012 emit("elm,action,click", "");
2018 name: "play_sample";
2019 action: RUN_PLUGIN "touch_sound";
2021 program { name: "disable";
2022 signal: "elm,state,disabled";
2024 action: STATE_SET "disabled" 0.0;
2025 target: "elm.swallow.content.clip";
2028 program { name: "enable";
2029 signal: "elm,state,enabled";
2031 action: STATE_SET "default" 0.0;
2032 target: "elm.swallow.content.clip";
2035 program { name: "multi_down";
2036 signal: "elm,action,multi,down";
2039 set_int(multi_down, 1);
2042 program { name: "multi_up";
2043 signal: "elm,action,multi,up";
2046 set_int(multi_down, 0);
2049 program { name: "start_persp";
2050 action: STATE_SET "start_persp" 0.0;
2051 transition: CUBIC_BEZIER 0.2 0.45 0.03 0.41 1.0;
2054 program { name: "end_persp";
2055 action: STATE_SET "end_persp" 0.0;
2056 transition: CUBIC_BEZIER 0.2 0.45 0.03 0.41 1.0;
2062 group { name: "elm/button/base/effect";
2064 image: "b_ic_press_full_circle_bg.png" COMP;
2067 public mouse_down = 0;
2068 public mouse_click = 0;
2069 public multi_down = 0;
2070 public click_cnt = 0;
2071 public timer0(val) {
2073 run_program(PROGRAM:"change_opacity");
2075 run_program(PROGRAM:"change_opacity2");
2077 run_program(PROGRAM:"change_opacity3");
2079 run_program(PROGRAM:"change_opacity4");
2083 part { name: "base";
2086 description { state: "default" 0.0;
2092 description { state: "default" 0.0;
2097 part { name: "effect_bg";
2099 clip_to: "effect_bg_clip";
2100 description { state: "default" 0.0;
2103 image.normal: "b_ic_press_full_circle_bg.png";
2104 color: 249 249 249 10;
2107 description { state: "pressed" 0.0;
2108 inherit: "default" 0.0;
2109 color: 249 249 249 10;
2115 description { state: "disabled" 0.0;
2116 inherit: "default" 0.0;
2118 description { state: "start_persp" 0.0;
2119 inherit: "default" 0.0;
2120 color: 249 249 249 10;
2127 part { name: "effect_bg_clip";
2130 description { state: "default" 0.0;
2133 color: 255 255 255 0;
2135 description { state: "pressed" 0.0;
2136 inherit: "default" 0.0;
2137 color: 255 255 255 255;
2139 description { state: "disabled" 0.0;
2140 inherit: "default" 0.0;
2143 part { name: "effect_bg2";
2145 clip_to: "effect_bg_clip2";
2146 description { state: "default" 0.0;
2149 image.normal: "b_ic_press_full_circle_bg.png";
2153 description { state: "pressed" 0.0;
2154 inherit: "default" 0.0;
2155 color: 249 249 249 10;
2161 description { state: "disabled" 0.0;
2162 inherit: "default" 0.0;
2164 description { state: "start_persp" 0.0;
2165 inherit: "default" 0.0;
2166 color: 249 249 249 10;
2173 part { name: "effect_bg_clip2";
2176 description { state: "default" 0.0;
2179 color: 255 255 255 0;
2181 description { state: "pressed" 0.0;
2182 inherit: "default" 0.0;
2183 color: 255 255 255 255;
2185 description { state: "disabled" 0.0;
2186 inherit: "default" 0.0;
2189 part { name: "effect_bg3";
2191 clip_to: "effect_bg_clip3";
2192 description { state: "default" 0.0;
2195 image.normal: "b_ic_press_full_circle_bg.png";
2199 description { state: "pressed" 0.0;
2200 inherit: "default" 0.0;
2201 color: 249 249 249 10;
2207 description { state: "disabled" 0.0;
2208 inherit: "default" 0.0;
2210 description { state: "start_persp" 0.0;
2211 inherit: "default" 0.0;
2212 color: 249 249 249 10;
2219 part { name: "effect_bg_clip3";
2222 description { state: "default" 0.0;
2225 color: 255 255 255 0;
2227 description { state: "pressed" 0.0;
2228 inherit: "default" 0.0;
2229 color: 255 255 255 255;
2231 description { state: "disabled" 0.0;
2232 inherit: "default" 0.0;
2235 part { name: "effect_bg4";
2237 clip_to: "effect_bg_clip4";
2238 description { state: "default" 0.0;
2241 image.normal: "b_ic_press_full_circle_bg.png";
2245 description { state: "pressed" 0.0;
2246 inherit: "default" 0.0;
2247 color: 249 249 249 10;
2253 description { state: "disabled" 0.0;
2254 inherit: "default" 0.0;
2256 description { state: "start_persp" 0.0;
2257 inherit: "default" 0.0;
2258 color: 249 249 249 10;
2265 part { name: "effect_bg_clip4";
2268 description { state: "default" 0.0;
2271 color: 255 255 255 0;
2273 description { state: "pressed" 0.0;
2274 inherit: "default" 0.0;
2275 color: 255 255 255 255;
2277 description { state: "disabled" 0.0;
2278 inherit: "default" 0.0;
2281 part { name: "elm.swallow.content";
2283 clip_to: "elm.swallow.content.clip";
2285 description { state: "default" 0.0;
2288 part { name: "elm.swallow.content.clip";
2291 description { state: "default" 0.0;
2292 color: 249 249 249 255;
2294 description { state: "pressed" 0.0;
2295 inherit: "default" 0.0;
2296 color: 249 249 249 255;
2298 description { state: "disabled" 0.0;
2299 inherit: "default" 0.0;
2303 part { name: "event";
2306 description { state: "default" 0.0;
2314 program { name: "pressed";
2315 signal: "mouse,down,1*";
2318 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2320 set_int(mouse_down, 1);
2321 run_program(PROGRAM:"button_press1");
2325 program { name: "button_press1";
2329 get_state(PART:"effect_bg", st, 30, vl);
2330 if (strcmp(st, "disabled")) {
2331 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
2332 emit("elm,action,press", "");
2333 if(get_int(click_cnt) == 0) {
2334 set_state(PART:"effect_bg", "pressed", 0.0);
2335 set_state(PART:"effect_bg_clip", "pressed", 0.0);
2336 run_program(PROGRAM:"start_persp");
2337 timer(0.35, "timer0", 1);
2339 else if(get_int(click_cnt) == 1) {
2340 set_state(PART:"effect_bg2", "pressed", 0.0);
2341 set_state(PART:"effect_bg_clip2", "pressed", 0.0);
2342 run_program(PROGRAM:"start_persp2");
2343 timer(0.35, "timer0", 2);
2345 else if(get_int(click_cnt) == 2) {
2346 set_state(PART:"effect_bg3", "pressed", 0.0);
2347 set_state(PART:"effect_bg_clip3", "pressed", 0.0);
2348 run_program(PROGRAM:"start_persp3");
2349 timer(0.35, "timer0", 3);
2352 set_state(PART:"effect_bg4", "pressed", 0.0);
2353 set_state(PART:"effect_bg_clip4", "pressed", 0.0);
2354 run_program(PROGRAM:"start_persp4");
2355 timer(0.35, "timer0", 4);
2360 program { name: "unpressed";
2361 signal: "mouse,up,1";
2364 if (get_int(mouse_down) == 1) {
2365 set_int(mouse_down, 0);
2366 run_program(PROGRAM:"button_unpress1");
2370 program { name: "button_unpress1";
2374 get_state(PART:"effect_bg", st, 30, vl);
2375 if (strcmp(st, "disabled")) {
2376 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
2377 emit("elm,action,unpress", "");
2378 if(get_int(click_cnt) == 0)
2379 set_int(click_cnt, 1);
2380 else if(get_int(click_cnt) == 1)
2381 set_int(click_cnt, 2);
2382 else if(get_int(click_cnt) == 2)
2383 set_int(click_cnt, 3);
2385 set_int(click_cnt, 0);
2389 program { name: "touch_snd";
2390 signal: "mouse,clicked,1";
2395 if (get_int(multi_down) == 0) {
2396 get_state(PART:"effect_bg", st, 30, vl);
2397 if (strcmp(st, "disabled")) {
2398 run_program(PROGRAM:"play_sample");
2399 emit("elm,action,click", "");
2400 set_int(mouse_click, 0);
2406 name: "play_sample";
2407 action: RUN_PLUGIN "touch_sound";
2409 program { name: "disable";
2410 signal: "elm,state,disabled";
2412 action: STATE_SET "disabled" 0.0;
2413 target: "effect_bg";
2414 target: "elm.swallow.content.clip";
2416 program { name: "enable";
2417 signal: "elm,state,enabled";
2419 action: STATE_SET "default" 0.0;
2420 target: "effect_bg";
2421 target: "elm.swallow.content.clip";
2423 program { name: "multi_down";
2424 signal: "elm,action,multi,down";
2427 set_int(multi_down, 1);
2430 program { name: "multi_up";
2431 signal: "elm,action,multi,up";
2434 set_int(multi_down, 0);
2437 program { name: "start_persp";
2438 action: STATE_SET "start_persp" 0.0;
2439 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2440 target: "effect_bg";
2442 program { name: "change_opacity";
2443 action: STATE_SET "default" 0.0;
2444 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2445 target: "effect_bg_clip";
2447 program { name: "start_persp2";
2448 action: STATE_SET "start_persp" 0.0;
2449 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2450 target: "effect_bg2";
2452 program { name: "change_opacity2";
2453 action: STATE_SET "default" 0.0;
2454 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2455 target: "effect_bg_clip2";
2457 program { name: "start_persp3";
2458 action: STATE_SET "start_persp" 0.0;
2459 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2460 target: "effect_bg3";
2462 program { name: "change_opacity3";
2463 action: STATE_SET "default" 0.0;
2464 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2465 target: "effect_bg_clip3";
2467 program { name: "start_persp4";
2468 action: STATE_SET "start_persp" 0.0;
2469 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2470 target: "effect_bg4";
2472 program { name: "change_opacity4";
2473 action: STATE_SET "default" 0.0;
2474 transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
2475 target: "effect_bg_clip4";
2480 group { name: "elm/button/base/datetime/ampm";
2482 public mouse_down = 0;
2483 public multi_down = 0;
2486 part { name: "base";
2489 description { state: "default" 0.0;
2490 min: BUTTON_DATETIME_12HR_SIZE_INC;
2491 max: BUTTON_DATETIME_12HR_SIZE_INC;
2494 part { name: "top_padding";
2497 description { state: "default" 0.0;
2499 min: 0 BUTTON_DATETIME_12HR_TOP_PADDING_HEIGHT_INC;
2500 max: -1 BUTTON_DATETIME_12HR_TOP_PADDING_HEIGHT_INC;
2511 part { name: "bottom_padding";
2514 description { state: "default" 0.0;
2516 min: 0 BUTTON_DATETIME_12HR_BOTTOM_PADDING_HEIGHT_INC;
2517 max: -1 BUTTON_DATETIME_12HR_BOTTOM_PADDING_HEIGHT_INC;
2529 part { name: "text_bg";
2532 description { state: "default" 0.0;
2538 to: "bottom_padding";
2543 part { name: "clipper";
2547 description { state: "default" 0.0;
2554 color: 255 255 255 255;
2557 part { name: "elm.text";
2562 description { state: "default" 0.0;
2571 /*(Changeable UI) text_class: "T271";*/
2572 font: "Tizen:style=Light"; size: "45";
2573 text_class: "tizen";
2575 }/*(Changeable UI) color_class: "T271";*/
2576 color: 186 186 186 255;
2579 description { state: "pressed" 0.0;
2580 inherit: "default" 0.0;
2581 /*(Changeable UI) color_class: "T271P";*/
2582 color: 30 57 102 255;
2584 description { state: "disabled" 0.0;
2585 inherit: "default" 0.0;
2586 /*(Changeable UI) color_class: "T271D";*/
2587 color: 51 51 51 255;
2590 part { name: "event";
2594 description { state: "default" 0.0;
2601 part { name: "disabler";
2606 description { state: "default" 0.0;
2613 description { state: "disabled" 0.0;
2614 inherit: "default" 0.0;
2620 program { name: "touch_snd";
2621 signal: "mouse,clicked,1";
2626 if (get_int(multi_down) == 0) {
2627 get_state(PART:"elm.text", st, 30, vl);
2628 if (strcmp(st, "disabled")) {
2629 run_program(PROGRAM:"play_sample");
2630 emit("elm,action,click", "");
2635 program { name: "play_sample";
2636 action: RUN_PLUGIN "touch_sound";
2638 program { name: "disable";
2639 signal: "elm,state,disabled";
2641 action: STATE_SET "disabled" 0.0;
2645 program { name: "enable";
2646 signal: "elm,state,enabled";
2648 action: STATE_SET "default" 0.0;
2652 program { name: "multi_down";
2653 signal: "elm,action,multi,down";
2656 set_int(multi_down, 1);
2659 program { name: "multi_up";
2660 signal: "elm,action,multi,up";
2663 set_int(multi_down, 0);
2669 group { name: "elm/button/base/datetime/confirm";
2671 image: "timer_control_btn_bg.png" COMP;
2674 public mouse_down = 0;
2675 public multi_down = 0;
2681 description { state: "default" 0.0;
2682 min: BUTTON_DATETIME_CONFIRM_SIZE_INC;
2683 max: BUTTON_DATETIME_CONFIRM_SIZE_INC;
2687 part { name: "elm.content.bg";
2691 description { state: "default" 0.0;
2692 image.normal: "timer_control_btn_bg.png";
2696 min: BUTTON_DATETIME_CONFIRM_SIZE_INC;
2697 max: BUTTON_DATETIME_CONFIRM_SIZE_INC;
2698 color: 38 38 38 255;
2700 description { state: "pressed" 0.0;
2701 inherit: "default" 0.0;
2702 color: 6 127 209 255;
2704 description { state: "disabled" 0.0;
2705 inherit: "default" 0.0;
2706 color: 25 25 25 255;
2709 part { name: "elm.swallow.content";
2712 description { state: "default" 0.0;
2717 to: "elm.content.bg";
2721 to: "elm.content.bg";
2723 min: BUTTON_DATETIME_CONFIRM_ICON_SIZE_INC;
2724 max: BUTTON_DATETIME_CONFIRM_ICON_SIZE_INC;
2728 part { name: "event";
2731 description { state: "default" 0.0;
2740 program { name: "pressed";
2741 signal: "mouse,down,1*";
2744 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) {
2745 set_int(mouse_down, 1);
2746 run_program(PROGRAM:"button_press1");
2750 program { name: "button_press1";
2754 get_state(PART:"elm.content.bg", st, 30, vl);
2755 if (strcmp(st, "disabled")) {
2756 get_state(PART:"elm.content.bg", st, 30, vl);
2757 if(!strcmp(st, "default")) {
2758 set_state(PART:"elm.content.bg", "pressed", 0.0);
2760 emit("elm,action,press", "");
2764 program { name: "unpressed";
2765 signal: "mouse,up,1";
2768 if (get_int(mouse_down) == 1) {
2769 set_int(mouse_down, 0);
2770 run_program(PROGRAM:"button_unpress1");
2774 program { name: "button_unpress1";
2778 get_state(PART:"elm.content.bg", st, 30, vl);
2779 if (strcmp(st, "disabled")) {
2780 get_state(PART:"elm.content.bg", st, 30, vl);
2781 if(!strcmp(st, "pressed")) {
2782 set_state(PART:"elm.content.bg", "default", 0.0);
2784 emit("elm,action,unpress", "");
2788 program { name: "touch_snd";
2789 signal: "mouse,clicked,1";
2794 if (get_int(multi_down) == 0) {
2795 get_state(PART:"bg", st, 30, vl);
2796 if (strcmp(st, "disabled")) {
2797 run_program(PROGRAM:"play_sample");
2798 emit("elm,action,click", "");
2804 name: "play_sample";
2805 action: RUN_PLUGIN "touch_sound";
2807 program { name: "disable";
2808 signal: "elm,state,disabled";
2810 action: STATE_SET "disabled" 0.0;
2811 target: "elm.content.bg";
2813 program { name: "enable";
2814 signal: "elm,state,enabled";
2816 action: STATE_SET "default" 0.0;
2817 target: "elm.content.bg";
2819 program { name: "multi_down";
2820 signal: "elm,action,multi,down";
2823 set_int(multi_down, 1);
2826 program { name: "multi_up";
2827 signal: "elm,action,multi,up";
2830 set_int(multi_down, 0);
2836 group { name: "elm/button/base/naviframe/title_icon";
2838 public mouse_down = 0;
2839 public multi_down = 0;
2842 part { name: "button_bg";
2845 description { state: "default" 0.0;
2846 min: ACTIONBAR_TITLE_BTN_SIZE;
2847 max: ACTIONBAR_TITLE_BTN_SIZE;
2850 description { state: "pressed" 0.0;
2851 inherit: "default" 0.0;
2853 color: 34 73 124 255; /*(Changeable UI) color_class: "B0511P";*/
2855 description { state: "disabled" 0.0;
2856 inherit: "default" 0.0;
2859 part { name: "elm.swallow.content";
2862 clip_to: "elm.icon.clipper";
2863 description { state: "default" 0.0;
2866 description { state: "visible" 0.0;
2867 inherit: "default" 0.0;
2871 part { name: "elm.icon.clipper";
2873 description { state: "default" 0.0;
2874 color: 239 255 63 255; /*(Changeable UI) color_class: "B052L1";*/
2876 description { state: "clicked" 0.0;
2877 inherit: "default" 0.0;
2879 description { state: "disabled" 0.0;
2880 color: 239 255 63 51; /*(Changeable UI) color_class: "B052L1D";*/
2883 part { name: "over2";
2885 ignore_flags: ON_HOLD;
2886 description { state: "default" 0.0;
2890 part { name: "over3";
2893 description { state: "default" 0.0;
2897 part { name: "disabler";
2899 description { state: "default" 0.0;
2903 description { state: "disabled" 0.0;
2904 inherit: "default" 0.0;
2910 program { name: "button_click";
2911 signal: "mouse,down,1";
2914 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2916 set_int(mouse_down, 1);
2917 run_program(PROGRAM:"button_click1");
2921 program { name: "button_click1";
2922 action: SIGNAL_EMIT "elm,action,press" "";
2923 after: "button_click_anim";
2925 program { name: "button_click_anim";
2927 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
2928 set_state(PART:"button_bg", "pressed", 0.0);
2931 program { name: "button_double_click";
2932 signal: "mouse,down,1,double";
2935 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2937 set_int(mouse_down, 1);
2938 run_program(PROGRAM:"button_click_anim");
2942 program { name: "button_unpress";
2943 action: SIGNAL_EMIT "elm,action,unpress" "";
2944 after: "button_unclick_anim";
2946 program { name: "button_unclick_anim";
2947 action: STATE_SET "default" 0.0;
2948 target: "button_bg";
2950 program { name: "button_mouseout_clicked";
2951 signal: "mouse,up,1";
2954 if (get_int(mouse_down) == 1)
2956 set_int(mouse_down, 0);
2957 set_state(PART:"elm.icon.clipper", "default", 0.0);
2958 run_program(PROGRAM:"button_unpress");
2962 program { name: "touch_snd";
2963 signal: "mouse,clicked,1";
2966 if (get_int(multi_down) == 0) {
2967 run_program(PROGRAM:"play_sound");
2968 run_program(PROGRAM:"button_unclick3");
2972 program { name: "play_sound";
2973 action: RUN_PLUGIN "touch_sound";
2975 program { name: "button_unclick3";
2976 action: SIGNAL_EMIT "elm,action,click" "";
2978 program { name: "icon_show";
2979 signal: "elm,state,icon,visible";
2981 action: STATE_SET "visible" 0.0;
2982 target: "elm.swallow.content";
2984 program { name: "icon_hide";
2985 signal: "elm,state,icon,hidden";
2987 action: STATE_SET "default" 0.0;
2988 target: "elm.swallow.content";
2990 program { name: "disable";
2991 signal: "elm,state,disabled";
2993 action: STATE_SET "disabled" 0.0;
2995 target: "elm.icon.clipper";
2996 target: "button_bg";
2998 program { name: "enable";
2999 signal: "elm,state,enabled";
3001 action: STATE_SET "default" 0.0;
3003 target: "elm.icon.clipper";
3004 target: "button_bg";
3006 program { name: "multi_down";
3007 signal: "elm,action,multi,down";
3010 set_int(multi_down, 1);
3013 program { name: "multi_up";
3014 signal: "elm,action,multi,up";
3017 set_int(multi_down, 0);
3023 group { name: "elm/button/base/spinner/default";
3025 public mouse_down = 0;
3026 public multi_down = 0;
3027 public select_state = 0;
3033 description { state: "default" 0.0;
3036 part { name: "elm.text.title";
3040 description { state: "default" 0.0;
3041 min: 0 RADIO_DATETIME_FIELD_TITLE_HEIGHT_INC;
3051 font: "Tizen:style=Light"; size: "24"; /*(Changeable UI) text_class: "T273";*/
3052 text_class: "tizen";
3055 color: 102 102 102 255;
3058 description { state: "pressed" 0.0;
3059 inherit: "default" 0.0;
3060 color: 30 57 102 255;
3062 description { state: "disabled" 0.0;
3063 inherit: "default" 0.0;
3064 color: 51 51 51 255;
3066 description { state: "on" 0.0;
3067 inherit: "default" 0.0;
3068 color: 249 249 249 255;
3070 description { state: "on_pressed" 0.0;
3071 inherit: "default" 0.0;
3072 color: 75 143 252 255;
3074 description { state: "on_disabled" 0.0;
3075 inherit: "default" 0.0;
3076 color: 51 51 51 255;
3079 part { name: "elm.text";
3083 description { state: "default" 0.0;
3084 min: 0 RADIO_DATETIME_FIELD_HEIGHT_INC;
3095 font: "Tizen:style=Light"; size: "45"; /*(Changeable UI) text_class: "T271";*/
3096 text_class: "tizen";
3099 size_range: SPINNER_TEXT_SIZE_INC;
3101 color: 102 102 102 255;
3104 description { state: "pressed" 0.0;
3105 inherit: "default" 0.0;
3106 color: 30 57 102 255;
3108 description { state: "disabled" 0.0;
3109 inherit: "default" 0.0;
3110 color: 51 51 51 255;
3112 description { state: "on" 0.0;
3113 inherit: "default" 0.0;
3114 color: 249 249 249 255;
3116 description { state: "on_pressed" 0.0;
3117 inherit: "default" 0.0;
3118 color: 75 143 252 255;
3120 description { state: "on_disabled" 0.0;
3121 inherit: "default" 0.0;
3122 color: 51 51 51 255;
3125 part { name: "event";
3128 description { state: "default" 0.0;
3132 part { name: "disabler";
3137 description { state: "default" 0.0;
3144 description { state: "disabled" 0.0;
3145 inherit: "default" 0.0;
3151 program { name: "pressed";
3152 signal: "mouse,down,1*";
3155 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3157 set_int(mouse_down, 1);
3158 run_program(PROGRAM:"button_press1");
3162 program { name: "button_press1";
3166 get_state(PART:"bg", st, 30, vl);
3167 if (strcmp(st, "disabled")) {
3168 if (get_int(select_state) == 0) {
3169 set_state(PART:"elm.text.title", "pressed", 0.0);
3170 set_state(PART:"elm.text", "pressed", 0.0);
3173 set_state(PART:"elm.text.title", "on_pressed", 0.0);
3174 set_state(PART:"elm.text", "on_pressed", 0.0);
3176 emit("elm,action,press", "");
3180 program { name: "unpressed";
3181 signal: "mouse,up,1";
3184 if (get_int(mouse_down) == 1) {
3185 set_int(mouse_down, 0);
3186 run_program(PROGRAM:"button_unpress1");
3190 program { name: "button_unpress1";
3194 get_state(PART:"bg", st, 30, vl);
3195 if (strcmp(st, "disabled")) {
3196 if (get_int(select_state) == 0) {
3197 set_state(PART:"elm.text.title", "default", 0.0);
3198 set_state(PART:"elm.text", "default", 0.0);
3201 set_state(PART:"elm.text.title", "on", 0.0);
3202 set_state(PART:"elm.text", "on", 0.0);
3204 emit("elm,action,unpress", "");
3208 program { name: "touch_snd";
3209 signal: "mouse,clicked,1";
3214 if (get_int(multi_down) == 0) {
3215 get_state(PART:"bg", st, 30, vl);
3216 if (strcmp(st, "disabled")) {
3217 run_program(PROGRAM:"play_sample");
3218 emit("elm,action,click", "");
3224 name: "play_sample";
3225 action: RUN_PLUGIN "touch_sound";
3227 program { name: "disable";
3228 signal: "elm,state,disabled";
3230 action: STATE_SET "disabled" 0.0;
3231 target: "elm.text.title";
3235 program { name: "enable";
3236 signal: "elm,state,enabled";
3238 action: STATE_SET "default" 0.0;
3239 target: "elm.text.title";
3243 program { name: "multi_down";
3244 signal: "elm,action,multi,down";
3247 set_int(multi_down, 1);
3250 program { name: "multi_up";
3251 signal: "elm,action,multi,up";
3254 set_int(multi_down, 0);
3257 program { name: "select";
3258 signal: "elm,state,selected";
3261 set_int(select_state, 1);
3262 run_program(PROGRAM:"animate_on");
3265 program { name: "unselect";
3266 signal: "elm,state,unselected";
3269 set_int(select_state, 0);
3270 run_program(PROGRAM:"animate_off");
3273 program { name: "animate_on";
3274 action: STATE_SET "on" 0.0;
3275 transition: CUBIC_BEZIER 0.3 0.25 0.46 0.45 1.0;
3276 target: "elm.text.title";
3279 program { name: "animate_off";
3280 action: STATE_SET "default" 0.0;
3281 transition: CUBIC_BEZIER 0.3 0.25 0.46 0.45 1.0;
3282 target: "elm.text.title";
3288 group { name: "elm/button/base/spinner/circle";
3290 public mouse_down = 0;
3291 public multi_down = 0;
3292 public select_state = 0;
3293 public rotary_state = 0;
3299 description { state: "default" 0.0;
3301 description { state: "disabled" 0.0;
3302 inherit: "default" 0.0;
3305 part { name: "elm.text";
3309 description { state: "default" 0.0;
3310 min: 0 RADIO_DATETIME_FIELD_HEIGHT_INC;
3321 font: "SamsungSansNum-3T:style=Thin";
3326 color: 250 250 250 255;
3329 description { state: "pressed" 0.0;
3330 inherit: "default" 0.0;
3331 color: 76 143 252 255;
3333 description { state: "disabled" 0.0;
3334 inherit: "default" 0.0;
3335 color: 51 51 51 255;
3337 description { state: "on" 0.0;
3338 inherit: "default" 0.0;
3339 color: 250 250 250 255;
3341 description { state: "on_blink_off" 0.0;
3342 inherit: "default" 0.0;
3343 color: 102 102 102 255;
3346 part { name: "event";
3349 description { state: "default" 0.0;
3353 part { name: "disabler";
3358 description { state: "default" 0.0;
3365 description { state: "disabled" 0.0;
3366 inherit: "default" 0.0;
3372 program { name: "pressed";
3373 signal: "mouse,down,1*";
3376 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3378 set_int(mouse_down, 1);
3379 run_program(PROGRAM:"button_press1");
3383 program { name: "button_press1";
3387 get_state(PART:"bg", st, 30, vl);
3388 if (strcmp(st, "disabled")) {
3389 set_state(PART:"elm.text", "pressed", 0.0);
3390 //emit("elm,action,press", "");
3394 program { name: "unpressed";
3395 signal: "mouse,up,1";
3398 if (get_int(mouse_down) == 1) {
3399 set_int(mouse_down, 0);
3400 run_program(PROGRAM:"button_unpress1");
3404 program { name: "button_unpress1";
3408 get_state(PART:"bg", st, 30, vl);
3409 if (strcmp(st, "disabled")) {
3410 if (get_int(select_state) == 0) {
3411 set_state(PART:"elm.text", "default", 0.0);
3414 set_state(PART:"elm.text", "on", 0.0);
3415 run_program(PROGRAM:"blink_off_show");
3417 emit("elm,action,unpress", "");
3421 program { name: "touch_snd";
3422 signal: "mouse,clicked,1";
3427 if (get_int(multi_down) == 0) {
3428 get_state(PART:"bg", st, 30, vl);
3429 if (strcmp(st, "disabled")) {
3430 run_program(PROGRAM:"play_sample");
3436 name: "play_sample";
3437 action: RUN_PLUGIN "touch_sound";
3439 program { name: "disable";
3440 signal: "elm,state,disabled";
3442 action: STATE_SET "disabled" 0.0;
3447 program { name: "enable";
3448 signal: "elm,state,enabled";
3450 action: STATE_SET "default" 0.0;
3455 program { name: "multi_down";
3456 signal: "elm,action,multi,down";
3459 set_int(multi_down, 1);
3462 program { name: "multi_up";
3463 signal: "elm,action,multi,up";
3466 set_int(multi_down, 0);
3469 program { name: "select";
3470 signal: "elm,state,selected";
3475 get_state(PART:"bg", st, 30, vl);
3476 if (strcmp(st, "disabled")) {
3477 set_int(select_state, 1);
3478 set_int(rotary_state, 0);
3479 run_program(PROGRAM:"blink_off_show");
3483 program { name: "unselect";
3484 signal: "elm,state,unselected";
3489 get_state(PART:"bg", st, 30, vl);
3490 if (strcmp(st, "disabled")) {
3491 set_int(select_state, 0);
3492 run_program(PROGRAM:"unselect_effect");
3496 program { name: "rotary_activate";
3497 signal: "elm,state,rotary,active";
3502 get_state(PART:"bg", st, 30, vl);
3503 if (strcmp(st, "disabled")) {
3504 set_int(rotary_state, 1);
3505 run_program(PROGRAM:"select_effect");
3509 program { name: "rotary_inactivate";
3510 signal: "elm,state,rotary,inactive";
3515 get_state(PART:"bg", st, 30, vl);
3516 if (strcmp(st, "disabled")) {
3517 set_int(rotary_state, 0);
3518 run_program(PROGRAM:"blink_off_show");
3522 program { name: "select_effect";
3523 action: STATE_SET "on" 0.0;
3524 transition: CUBIC_BEZIER 0.15 0.25 0.46 0.45 1.0;
3527 program { name: "unselect_effect";
3528 action: STATE_SET "default" 0.0;
3529 transition: CUBIC_BEZIER 0.15 0.25 0.46 0.45 1.0;
3532 program { name: "blink_off_show";
3536 get_state(PART:"bg", st, 30, vl);
3537 if (strcmp(st, "disabled")) {
3538 if (get_int(select_state) == 1 && get_int(rotary_state) == 0)
3539 run_program(PROGRAM:"blink_off_show_effect");
3543 program { name: "blink_off_show_effect";
3544 action: STATE_SET "on_blink_off" 0.0;
3545 transition: CUBIC_BEZIER 0.3 0.25 0.46 0.45 1.0;
3549 program { name: "blink_off";
3553 get_state(PART:"bg", st, 30, vl);
3554 if (strcmp(st, "disabled")) {
3555 if (get_int(select_state) == 1 && get_int(rotary_state) == 0)
3556 run_program(PROGRAM:"blink_off_effect");
3560 program { name: "blink_off_effect";
3561 action: STATE_SET "on_blink_off" 0.0;
3562 transition: CUBIC_BEZIER 0.2 0.25 0.46 0.45 1.0;
3564 after: "blink_on_show";
3566 program { name: "blink_on_show";
3570 get_state(PART:"bg", st, 30, vl);
3571 if (strcmp(st, "disabled")) {
3572 if (get_int(select_state) == 1 && get_int(rotary_state) == 0)
3573 run_program(PROGRAM:"blink_on_show_effect");
3577 program { name: "blink_on_show_effect";
3578 action: STATE_SET "on" 0.0;
3579 transition: CUBIC_BEZIER 0.3 0.25 0.46 0.45 1.0;
3583 program { name: "blink_on";
3587 get_state(PART:"bg", st, 30, vl);
3588 if (strcmp(st, "disabled")) {
3589 if (get_int(select_state) == 1 && get_int(rotary_state) == 0)
3590 run_program(PROGRAM:"blink_on_effect");
3594 program { name: "blink_on_effect";
3595 action: STATE_SET "on" 0.0;
3596 transition: CUBIC_BEZIER 0.2 0.25 0.46 0.45 1.0;
3598 after: "blink_off_show";
3603 group { name: "elm/button/base/rotary_selector_item";
3605 public mouse_down = 0;
3606 public multi_down = 0;
3607 public selected = 0;
3610 part { name: "base";
3613 description { state: "default" 0.0;
3614 min: ROTARY_SELECTOR_ITEM_WIDTH_INC ROTARY_SELECTOR_ITEM_HEIGHT_INC;
3615 max: ROTARY_SELECTOR_ITEM_WIDTH_INC ROTARY_SELECTOR_ITEM_HEIGHT_INC;
3618 part { name: "item,bg_image";
3621 clip_to: "elm.swallow.bg_image.clip";
3622 description { state: "default" 0.0;
3627 description { state: "pressed" 0.0;
3628 inherit: "default" 0.0;
3630 description { state: "selected" 0.0;
3631 inherit: "default" 0.0;
3637 description { state: "disabled" 0.0;
3638 inherit: "default" 0.0;
3641 part { name: "elm.swallow.bg_image.clip";
3644 description { state: "default" 0.0;
3645 color: 250 250 250 255;
3646 rel1.relative : -0.2 -0.2;
3647 rel2.relative : 1.2 1.2;
3649 description { state: "pressed" 0.0;
3650 inherit: "default" 0.0;
3651 color: 191 191 191 255;
3653 description { state: "selected" 0.0;
3654 inherit: "default" 0.0;
3655 color: 250 250 250 255;
3657 description { state: "disabled" 0.0;
3658 inherit: "default" 0.0;
3659 color: 77 77 77 255;
3662 part { name: "item,icon";
3664 clip_to: "elm.swallow.icon.clip";
3666 description { state: "default" 0.0;
3671 description { state: "pressed" 0.0;
3672 inherit: "default" 0.0;
3674 description { state: "selected" 0.0;
3675 inherit: "default" 0.0;
3681 description { state: "disabled" 0.0;
3682 inherit: "default" 0.0;
3685 part { name: "elm.swallow.icon.clip";
3688 description { state: "default" 0.0;
3689 color: 20 20 20 255;
3691 description { state: "pressed" 0.0;
3692 inherit: "default" 0.0;
3693 color: 2 130 209 255;
3695 description { state: "selected" 0.0;
3696 inherit: "default" 0.0;
3697 color: 2 130 209 255;
3699 description { state: "disabled" 0.0;
3700 inherit: "default" 0.0;
3701 color: 51 51 51 255;
3704 part { name: "event";
3707 description { state: "default" 0.0;
3715 program { name: "pressed";
3716 signal: "mouse,down,1*";
3719 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3721 set_int(mouse_down, 1);
3722 run_program(PROGRAM:"button_press1");
3726 program { name: "button_press1";
3730 get_state(PART:"item,bg_image", st, 30, vl);
3731 if (strcmp(st, "disabled")) {
3732 set_state(PART:"elm.swallow.bg_image.clip", "pressed", 0.0);
3733 set_state(PART:"elm.swallow.icon.clip", "pressed", 0.0);
3734 emit("elm,action,press", "");
3738 program { name: "unpressed";
3739 signal: "mouse,up,1";
3742 if (get_int(mouse_down) == 1) {
3743 set_int(mouse_down, 0);
3744 run_program(PROGRAM:"button_unpress1");
3748 program { name: "button_unpress1";
3752 get_state(PART:"item,bg_image", st, 30, vl);
3753 if (strcmp(st, "disabled")) {
3754 set_state(PART:"elm.swallow.bg_image.clip", "default", 0.0);
3755 set_state(PART:"elm.swallow.icon.clip", "default", 0.0);
3756 emit("elm,action,unpress", "");
3760 program { name: "touch_snd";
3761 signal: "mouse,clicked,1";
3766 if (get_int(multi_down) == 0) {
3767 get_state(PART:"item,bg_image", st, 30, vl);
3768 if (strcmp(st, "disabled")) {
3769 if (get_int(selected) == 0)
3771 set_int(selected, 1);
3772 run_program(PROGRAM:"selected_ef");
3776 set_int(selected, 0);
3778 run_program(PROGRAM:"play_sample");
3779 emit("elm,action,click", "");
3784 program { name: "selected_mode";
3785 signal: "elm,action,button,selected";
3788 if (get_int(selected) == 0)
3790 set_int(selected, 1);
3791 run_program(PROGRAM:"selected_ef");
3795 program { name: "unselected_mode";
3796 signal: "elm,action,button,unselected";
3799 if (get_int(selected) == 1)
3801 set_int(selected, 0);
3802 run_program(PROGRAM:"unselected_ef");
3807 name: "play_sample";
3808 action: RUN_PLUGIN "touch_sound";
3810 program { name: "disable";
3811 signal: "elm,state,disabled";
3813 action: STATE_SET "disabled" 0.0;
3814 target: "item,bg_image";
3815 target: "elm.swallow.icon.clip";
3817 program { name: "enable";
3818 signal: "elm,state,enabled";
3820 action: STATE_SET "default" 0.0;
3821 target: "item,bg_image";
3822 target: "elm.swallow.icon.clip";
3824 program { name: "multi_down";
3825 signal: "elm,action,multi,down";
3828 set_int(multi_down, 1);
3831 program { name: "multi_up";
3832 signal: "elm,action,multi,up";
3835 set_int(multi_down, 0);
3838 program { name: "selected_ef";
3839 action: STATE_SET "selected" 0.0;
3840 target: "elm.swallow.bg_image.clip";
3841 target: "item,bg_image";
3842 target: "elm.swallow.icon.clip";
3843 target: "item,icon";
3844 transition: CUBIC_BEZIER 0.45 0.25 0.46 0.45 1.0;
3846 program { name: "unselected_ef";
3847 action: STATE_SET "default" 0.0;
3848 transition: CUBIC_BEZIER 0.45 0.25 0.46 0.45 1.0;
3849 target: "elm.swallow.bg_image.clip";
3850 target: "item,bg_image";
3851 target: "elm.swallow.icon.clip";
3852 target: "item,icon";
3857 // FIXME: style for focus UI (and temporally, for ctxpopup)
3858 // This style should have focus image for "focus_image" part after the image is added
3859 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name) \
3860 group { name: "elm/button/base/"style_name; \
3862 item: "focus_highlight" "on"; \
3865 public mouse_down = 0; \
3866 public multi_down = 0; \
3869 part { name: "elm.swallow.content"; \
3872 description { state: "default" 0.0; \
3875 part { name: "focus_image"; \
3880 description { state: "default" 0.0; \
3882 color: 0 0 0 0; /*(Changeable UI) color_class: "transparent";*/ \
3884 description { state: "focused" 0.0; \
3885 inherit: "default" 0.0; \
3889 part { name: "over2"; \
3892 ignore_flags: ON_HOLD; \
3893 description { state: "default" 0.0; \
3897 part { name: "over3"; \
3900 description { state: "default" 0.0; \
3906 program { name: "button_press"; \
3907 signal: "mouse,down,1*"; \
3910 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) \
3912 set_int(mouse_down, 1); \
3913 emit("elm,action,press", ""); \
3917 program { name: "button_unpress"; \
3918 signal: "mouse,up,1*"; \
3921 if (get_int(mouse_down) == 1) \
3923 set_int(mouse_down, 0); \
3924 emit("elm,action,unpress", ""); \
3928 program { name: "button_click"; \
3929 signal: "mouse,clicked,1"; \
3932 if (get_int(multi_down) == 0) { \
3933 emit("elm,action,click", ""); \
3937 program { name: "action_focus"; \
3938 signal: "elm,action,focus_highlight,show"; \
3940 action: STATE_SET "focused" 0.0; \
3941 target: "focus_image"; \
3943 program { name: "action_unfocus"; \
3944 signal: "elm,action,focus_highlight,hide"; \
3946 action: STATE_SET "default" 0.0; \
3947 target: "focus_image"; \
3950 name: "multi_down"; \
3951 signal: "elm,action,multi,down"; \
3954 set_int(multi_down, 1); \
3959 signal: "elm,action,multi,up"; \
3962 set_int(multi_down, 0); \
3968 BUTTON_DEFAULT_FOCUS_STYLES("focus")