2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
24 name: "touch_sound" AS_IS;
25 source: "S_Touch_30ms.wav";
29 ///////////////////////////////////////////////////////////////////////////////////////
30 group { name: "elm/button/base/style1";
31 alias: "elm/button/base/text_only/style1";
32 alias: "elm/button/base/center";
33 alias: "elm/button/base/icon_and_text/center";
34 alias: "elm/button/base/nocontents/search_button";
36 image: "00_button_01_normal.png" COMP;
37 image: "00_button_01_normal_press.png" COMP;
38 image: "00_button_01_normal_dim.png" COMP;
39 image: "00_button_01_normal_Focus.png" COMP;
42 public button_state = BUTTON_STATE_ENABLED;
45 part { name: "button_image";
47 description { state: "default" 0.0;
49 normal: "00_button_01_normal.png";
50 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
54 description { state: "clicked" 0.0;
55 inherit: "default" 0.0;
56 image.normal: "00_button_01_normal_press.png";
58 description { state: "disabled" 0.0;
59 inherit: "default" 0.0;
60 image.normal: "00_button_01_normal_dim.png";
62 description { state: "focused" 0.0;
63 inherit: "default" 0.0;
64 image.normal: "00_button_01_normal_Focus.png";
67 part { name: "padding_left_top";
71 description { state: "default" 0.0;
73 rel2.relative: 0.0 0.0;
74 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
83 description { state: "default" 0.0;
84 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
89 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
91 description { state: "icononly" 0.0;
92 inherit: "default" 0.0;
93 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
96 part { name: "padding_right_bottom";
100 description { state: "default" 0.0;
102 rel1.relative: 1.0 1.0;
103 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
108 part { name: "icon_rect";
112 description { state: "default" 0.0;
118 to: "padding_left_top";
122 to_x: "padding_left_top";
123 to_y: "padding_right_bottom";
127 description { state: "visible" 0.0;
129 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
130 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
134 to: "padding_left_top";
138 to_x: "padding_left_top";
139 to_y: "padding_right_bottom";
143 description { state: "icononly" 0.0;
144 inherit: "default" 0.0;
147 part { name: "padding_after_icon";
151 description { state: "default" 0.0; //when only icon or no icon is there
157 rel2.to: "icon_rect";
162 description { state: "visible" 0.0;
169 rel2.to: "icon_rect";
171 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
173 description { state: "icononly" 0.0;
174 inherit: "default" 0.0;
177 part { name: "padding_before_text";
181 description { state: "default" 0.0; //when only icon or no icon is there
186 to_y: "padding_left_top";
191 to_y: "padding_right_bottom";
194 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
198 part { name: "elm.swallow.content";
202 description { state: "default" 0.0;
207 to: "padding_left_top";
211 to_x: "padding_left_top";
212 to_y: "padding_right_bottom";
216 description { state: "visible" 0.0;
218 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
219 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
223 to_x: "padding_before_text";
224 to_y: "padding_left_top";
228 to_x: "padding_before_text";
229 to_y: "padding_right_bottom";
232 description { state: "icononly" 0.0;
233 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
234 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
237 part { name: "elm.text";
242 description { state: "default" 0.0;
246 to_x: "padding_after_icon";
247 to_y: "padding_left_top";
251 to: "padding_right_bottom";
253 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
255 font: "SLP:style=Medium";
256 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
259 text_class: "slp_medium";
262 description { state: "visible" 0.0;
263 inherit: "default" 0.0;
266 description { state: "clicked" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
271 description { state: "disabled" 0.0;
272 inherit: "default" 0.0;
275 description { state: "disabled_visible" 0.0;
276 inherit: "default" 0.0;
277 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
280 description { state: "focused" 0.0;
281 inherit: "default" 0.0;
283 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
286 part { name: "over2";
289 ignore_flags: ON_HOLD;
290 description { state: "default" 0.0;
294 part { name: "over3";
297 description { state: "default" 0.0;
301 part { name: "clipper";
303 description { state: "default" 0.0;
304 color: 255 255 255 255;
307 part { name: "disabler";
309 description { state: "default" 0.0;
313 description { state: "disabled" 0.0;
314 inherit: "default" 0.0;
320 program { name: "button_click";
321 signal: "mouse,down,1";
323 action: SIGNAL_EMIT "elm,action,press" "";
324 after: "button_click_anim";
326 program { name: "button_click_anim";
327 action: STATE_SET "clicked" 0.0;
328 target: "button_image";
329 after: "text_clicked";
331 program { name: "text_clicked";
335 get_state(PART:"elm.text", st, 30, vl);
336 if (!strcmp(st, "visible"))
337 set_state(PART:"elm.text", "clicked", 0.0);
340 program { name: "button_unpress";
341 action: SIGNAL_EMIT "elm,action,unpress" "";
343 program { name: "button_mouseout_clicked";
344 signal: "mouse,up,1";
349 get_state(PART:"elm.swallow.content", st, 30, vl);
350 if (strcmp(st, "icononly"))
352 emit("elm,action,default,text,set", "");
353 set_state(PART:"elm.text", "visible", 0.0);
355 if (get_int(button_state) != BUTTON_STATE_DISABLED)
356 set_state(PART:"button_image", "default", 0.0);
358 after: button_unpress;
360 program { name: "touch_snd";
361 signal: "mouse,clicked,1";
363 action: PLAY_SAMPLE "touch_sound" 1.0;
364 after: button_unclick3;
366 program { name: "button_unclick3";
367 action: SIGNAL_EMIT "elm,action,click" "";
369 program { name: "text_show";
370 signal: "elm,state,text,visible";
375 get_state(PART:"elm.swallow.content", st, 30, vl);
376 if (!strcmp(st, "icononly"))
378 set_state(PART:"elm.swallow.content", "visible", 0.0);
379 set_state(PART:"icon_rect", "visible", 0.0);
380 set_state(PART:"padding_after_icon", "visible", 0.0);
381 set_state(PART:"bg", "visible", 0.0);
383 if (get_int(button_state) != BUTTON_STATE_DISABLED)
384 set_state(PART:"elm.text", "visible", 0.0);
386 set_state(PART:"elm.text", "disabled_visible", 0.0);
389 program { name: "text_hide";
390 signal: "elm,state,text,hidden";
395 get_state(PART:"elm.swallow.content", st, 30, vl);
396 if (!strcmp(st, "visible"))
398 set_state(PART:"elm.swallow.content", "icononly", 0.0);
399 set_state(PART:"icon_rect", "icononly", 0.0);
400 set_state(PART:"padding_after_icon", "icononly", 0.0);
401 set_state(PART:"bg", "icononly", 0.0);
403 set_state(PART:"elm.text", "default", 0.0);
406 program { name: "icon_show";
407 signal: "elm,state,icon,visible";
412 get_state(PART:"elm.text", st, 30, vl);
413 if (!strcmp(st, "visible"))
415 set_state(PART:"elm.swallow.content", "visible", 0.0);
416 set_state(PART:"icon_rect", "visible", 0.0);
417 set_state(PART:"padding_after_icon", "visible", 0.0);
418 set_state(PART:"bg", "visible", 0.0);
422 set_state(PART:"elm.swallow.content", "icononly", 0.0);
423 set_state(PART:"icon_rect", "icononly", 0.0);
424 set_state(PART:"padding_after_icon", "icononly", 0.0);
425 set_state(PART:"bg", "icononly", 0.0);
429 program { name: "icon_hide";
430 signal: "elm,state,icon,hidden";
432 action: STATE_SET "default" 0.0;
433 target: "elm.swallow.content";
434 target: "padding_after_icon";
438 program { name: "disable";
439 signal: "elm,state,disabled";
441 action: STATE_SET "disabled" 0.0;
442 target: "button_image";
444 after: "disable_text";
446 program { name: "disable_text";
450 get_state(PART:"elm.text", st, 30, vl);
451 if (!strcmp(st, "visible"))
452 set_state(PART:"elm.text", "disabled_visible", 0.0);
454 set_state(PART:"elm.text", "disabled", 0.0);
455 set_int(button_state, BUTTON_STATE_DISABLED);
458 program { name: "enable";
459 signal: "elm,state,enabled";
461 action: STATE_SET "default" 0.0;
462 target: "button_image";
464 after: "enable_text";
466 program { name: "enable_text";
470 get_state(PART:"elm.text", st, 30, vl);
471 if (!strcmp(st, "disabled_visible"))
472 set_state(PART:"elm.text", "visible", 0.0);
474 set_state(PART:"elm.text", "default", 0.0);
475 set_int(button_state, BUTTON_STATE_ENABLED);
478 program { name: "focused";
479 //signal: "elm,action,focus";
481 action: STATE_SET "focused" 0.0;
482 target: "button_image";
485 program { name: "unfocused";
486 //signal: "elm,action,unfocus";
488 action: STATE_SET "default" 0.0;
489 target: "button_image";
490 after: "unfocus_text";
492 program { name: "unfocus_text";
493 action: STATE_SET "visible" 0.0;
499 //////////////////////////////////////////////////////////////
500 group { name: "elm/button/base/style1/auto_expand";
501 alias: "elm/button/base/datetime_ampm/default";
503 image: "00_button_01_normal.png" COMP;
504 image: "00_button_01_normal_press.png" COMP;
505 image: "00_button_01_normal_dim.png" COMP;
506 image: "00_button_01_normal_Focus.png" COMP;
509 public button_state = BUTTON_STATE_ENABLED;
512 part { name: "button_image";
514 description { state: "default" 0.0;
516 normal: "00_button_01_normal.png";
517 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
521 description { state: "clicked" 0.0;
522 inherit: "default" 0.0;
523 image.normal: "00_button_01_normal_press.png";
525 description { state: "disabled" 0.0;
526 inherit: "default" 0.0;
527 image.normal: "00_button_01_normal_dim.png";
529 description { state: "focused" 0.0;
530 inherit: "default" 0.0;
531 image.normal: "00_button_01_normal_Focus.png";
534 part { name: "padding_left_top";
538 description { state: "default" 0.0;
540 rel2.relative: 0.0 0.0;
541 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
550 description { state: "default" 0.0;
551 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
554 description { state: "visible" 0.0;
555 inherit: "default" 0.0;
556 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
558 description { state: "icononly" 0.0;
559 inherit: "default" 0.0;
560 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
563 part { name: "padding_right_bottom";
567 description { state: "default" 0.0;
569 rel1.relative: 1.0 1.0;
570 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
575 part { name: "icon_rect";
579 description { state: "default" 0.0;
585 to: "padding_left_top";
589 to_x: "padding_left_top";
590 to_y: "padding_right_bottom";
594 description { state: "visible" 0.0;
596 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
597 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
601 to: "padding_left_top";
605 to_x: "padding_left_top";
606 to_y: "padding_right_bottom";
610 description { state: "icononly" 0.0;
611 inherit: "default" 0.0;
614 part { name: "padding_after_icon";
618 description { state: "default" 0.0; //when only icon or no icon is there
624 rel2.to: "icon_rect";
629 description { state: "visible" 0.0;
636 rel2.to: "icon_rect";
638 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
640 description { state: "icononly" 0.0;
641 inherit: "default" 0.0;
644 part { name: "padding_before_text";
648 description { state: "default" 0.0; //when only icon or no icon is there
653 to_y: "padding_left_top";
658 to_y: "padding_right_bottom";
661 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
665 part { name: "elm.swallow.content";
669 description { state: "default" 0.0;
674 to: "padding_left_top";
678 to_x: "padding_left_top";
679 to_y: "padding_right_bottom";
683 description { state: "visible" 0.0;
685 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
686 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
690 to_x: "padding_before_text";
691 to_y: "padding_left_top";
695 to_x: "padding_before_text";
696 to_y: "padding_right_bottom";
699 description { state: "icononly" 0.0;
700 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
701 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
704 part { name: "elm.text";
709 description { state: "default" 0.0;
713 to_x: "padding_after_icon";
714 to_y: "padding_left_top";
718 to: "padding_right_bottom";
720 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
722 font: "SLP:style=Medium";
723 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
726 text_class: "slp_medium";
729 description { state: "visible" 0.0;
730 inherit: "default" 0.0;
733 description { state: "clicked" 0.0;
734 inherit: "default" 0.0;
736 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
738 description { state: "disabled" 0.0;
739 inherit: "default" 0.0;
742 description { state: "disabled_visible" 0.0;
743 inherit: "default" 0.0;
744 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
747 description { state: "focused" 0.0;
748 inherit: "default" 0.0;
750 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
753 part { name: "over2";
756 ignore_flags: ON_HOLD;
757 description { state: "default" 0.0;
761 part { name: "over3";
764 description { state: "default" 0.0;
768 part { name: "clipper";
770 description { state: "default" 0.0;
771 color: 255 255 255 255;
774 part { name: "disabler";
776 description { state: "default" 0.0;
780 description { state: "disabled" 0.0;
781 inherit: "default" 0.0;
787 program { name: "button_click";
788 signal: "mouse,down,1";
790 action: SIGNAL_EMIT "elm,action,press" "";
791 after: "button_click_anim";
793 program { name: "button_click_anim";
794 action: STATE_SET "clicked" 0.0;
795 target: "button_image";
796 after: "text_clicked";
798 program { name: "text_clicked";
802 get_state(PART:"elm.text", st, 30, vl);
803 if (!strcmp(st, "visible"))
804 set_state(PART:"elm.text", "clicked", 0.0);
807 program { name: "button_unpress";
808 action: SIGNAL_EMIT "elm,action,unpress" "";
810 program { name: "button_mouseout_clicked";
811 signal: "mouse,up,1";
816 get_state(PART:"elm.swallow.content", st, 30, vl);
817 if (strcmp(st, "icononly"))
819 emit("elm,action,default,text,set", "");
820 set_state(PART:"elm.text", "visible", 0.0);
822 if (get_int(button_state) != BUTTON_STATE_DISABLED)
823 set_state(PART:"button_image", "default", 0.0);
825 after: button_unpress;
827 program { name: "touch_snd";
828 signal: "mouse,clicked,1";
830 action: PLAY_SAMPLE "touch_sound" 1.0;
831 after: button_unclick3;
833 program { name: "button_unclick3";
834 action: SIGNAL_EMIT "elm,action,click" "";
836 program { name: "text_show";
837 signal: "elm,state,text,visible";
842 get_state(PART:"elm.swallow.content", st, 30, vl);
843 if (!strcmp(st, "icononly"))
845 set_state(PART:"elm.swallow.content", "visible", 0.0);
846 set_state(PART:"icon_rect", "visible", 0.0);
847 set_state(PART:"padding_after_icon", "visible", 0.0);
848 set_state(PART:"bg", "visible", 0.0);
850 if (get_int(button_state) != BUTTON_STATE_DISABLED)
851 set_state(PART:"elm.text", "visible", 0.0);
853 set_state(PART:"elm.text", "disabled_visible", 0.0);
856 program { name: "text_hide";
857 signal: "elm,state,text,hidden";
862 get_state(PART:"elm.swallow.content", st, 30, vl);
863 if (!strcmp(st, "visible"))
865 set_state(PART:"elm.swallow.content", "icononly", 0.0);
866 set_state(PART:"icon_rect", "icononly", 0.0);
867 set_state(PART:"padding_after_icon", "icononly", 0.0);
868 set_state(PART:"bg", "icononly", 0.0);
870 set_state(PART:"elm.text", "default", 0.0);
873 program { name: "icon_show";
874 signal: "elm,state,icon,visible";
879 get_state(PART:"elm.text", st, 30, vl);
880 if (!strcmp(st, "visible"))
882 set_state(PART:"elm.swallow.content", "visible", 0.0);
883 set_state(PART:"icon_rect", "visible", 0.0);
884 set_state(PART:"padding_after_icon", "visible", 0.0);
885 set_state(PART:"bg", "visible", 0.0);
889 set_state(PART:"elm.swallow.content", "icononly", 0.0);
890 set_state(PART:"icon_rect", "icononly", 0.0);
891 set_state(PART:"padding_after_icon", "icononly", 0.0);
892 set_state(PART:"bg", "icononly", 0.0);
896 program { name: "icon_hide";
897 signal: "elm,state,icon,hidden";
899 action: STATE_SET "default" 0.0;
900 target: "elm.swallow.content";
901 target: "padding_after_icon";
905 program { name: "disable";
906 signal: "elm,state,disabled";
908 action: STATE_SET "disabled" 0.0;
909 target: "button_image";
911 after: "disable_text";
913 program { name: "disable_text";
917 get_state(PART:"elm.text", st, 30, vl);
918 if (!strcmp(st, "visible"))
919 set_state(PART:"elm.text", "disabled_visible", 0.0);
921 set_state(PART:"elm.text", "disabled", 0.0);
922 set_int(button_state, BUTTON_STATE_DISABLED);
925 program { name: "enable";
926 signal: "elm,state,enabled";
928 action: STATE_SET "default" 0.0;
929 target: "button_image";
931 after: "enable_text";
933 program { name: "enable_text";
937 get_state(PART:"elm.text", st, 30, vl);
938 if (!strcmp(st, "disabled_visible"))
939 set_state(PART:"elm.text", "visible", 0.0);
941 set_state(PART:"elm.text", "default", 0.0);
942 set_int(button_state, BUTTON_STATE_ENABLED);
945 program { name: "focused";
946 //signal: "elm,action,focus";
948 action: STATE_SET "focused" 0.0;
949 target: "button_image";
952 program { name: "unfocused";
953 //signal: "elm,action,unfocus";
955 action: STATE_SET "default" 0.0;
956 target: "button_image";
957 after: "unfocus_text";
959 program { name: "unfocus_text";
960 action: STATE_SET "visible" 0.0;
966 //////////////////////////////////////////////////////////////////////////////////////
967 group { name: "elm/button/base/style1/multiline";
969 image: "00_button_01_normal.png" COMP;
970 image: "00_button_01_normal_press.png" COMP;
971 image: "00_button_01_normal_dim.png" COMP;
972 image: "00_button_01_normal_Focus.png" COMP;
975 style { name: "btn_style1_multiline";
976 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
983 public button_state = BUTTON_STATE_ENABLED;
986 part { name: "button_image";
988 description { state: "default" 0.0;
990 normal: "00_button_01_normal.png";
991 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
995 description { state: "clicked" 0.0;
996 inherit: "default" 0.0;
997 image.normal: "00_button_01_normal_press.png";
999 description { state: "disabled" 0.0;
1000 inherit: "default" 0.0;
1001 image.normal: "00_button_01_normal_dim.png";
1003 description { state: "focused" 0.0;
1004 inherit: "default" 0.0;
1005 image.normal: "00_button_01_normal_Focus.png";
1008 part { name: "padding_left_top";
1012 description { state: "default" 0.0;
1014 rel2.relative: 0.0 0.0;
1015 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1024 description { state: "default" 0.0;
1025 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1028 description { state: "visible" 0.0;
1029 inherit: "default" 0.0;
1030 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1032 description { state: "icononly" 0.0;
1033 inherit: "default" 0.0;
1034 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1037 part { name: "padding_right_bottom";
1041 description { state: "default" 0.0;
1043 rel1.relative: 1.0 1.0;
1044 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1049 part { name: "icon_rect";
1053 description { state: "default" 0.0;
1059 to: "padding_left_top";
1063 to_x: "padding_left_top";
1064 to_y: "padding_right_bottom";
1068 description { state: "visible" 0.0;
1070 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1071 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1075 to: "padding_left_top";
1079 to_x: "padding_left_top";
1080 to_y: "padding_right_bottom";
1084 description { state: "icononly" 0.0;
1085 inherit: "default" 0.0;
1088 part { name: "padding_after_icon";
1092 description { state: "default" 0.0; //when only icon or no icon is there
1098 rel2.to: "icon_rect";
1103 description { state: "visible" 0.0;
1110 rel2.to: "icon_rect";
1112 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1114 description { state: "icononly" 0.0;
1115 inherit: "default" 0.0;
1118 part { name: "padding_before_text";
1122 description { state: "default" 0.0; //when only icon or no icon is there
1127 to_y: "padding_left_top";
1132 to_y: "padding_right_bottom";
1135 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1139 part { name: "elm.swallow.content";
1143 description { state: "default" 0.0;
1148 to: "padding_left_top";
1152 to_x: "padding_left_top";
1153 to_y: "padding_right_bottom";
1157 description { state: "visible" 0.0;
1159 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1160 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1164 to_x: "padding_before_text";
1165 to_y: "padding_left_top";
1169 to_x: "padding_before_text";
1170 to_y: "padding_right_bottom";
1173 description { state: "icononly" 0.0;
1174 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1175 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1178 part { name: "elm.text";
1183 description { state: "default" 0.0;
1187 to_x: "padding_after_icon";
1188 to_y: "padding_left_top";
1192 to: "padding_right_bottom";
1194 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1196 style: "btn_style1_multiline";
1201 description { state: "visible" 0.0;
1202 inherit: "default" 0.0;
1205 description { state: "clicked" 0.0;
1206 inherit: "default" 0.0;
1208 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1210 description { state: "disabled" 0.0;
1211 inherit: "default" 0.0;
1214 description { state: "disabled_visible" 0.0;
1215 inherit: "default" 0.0;
1216 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1219 description { state: "focused" 0.0;
1220 inherit: "default" 0.0;
1222 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1225 part { name: "over2";
1228 ignore_flags: ON_HOLD;
1229 description { state: "default" 0.0;
1233 part { name: "over3";
1236 description { state: "default" 0.0;
1240 part { name: "clipper";
1242 description { state: "default" 0.0;
1243 color: 255 255 255 255;
1246 part { name: "disabler";
1248 description { state: "default" 0.0;
1252 description { state: "disabled" 0.0;
1253 inherit: "default" 0.0;
1259 program { name: "button_click";
1260 signal: "mouse,down,1";
1262 action: SIGNAL_EMIT "elm,action,press" "";
1263 after: "button_click_anim";
1265 program { name: "button_click_anim";
1266 action: STATE_SET "clicked" 0.0;
1267 target: "button_image";
1268 after: "text_clicked";
1270 program { name: "text_clicked";
1274 get_state(PART:"elm.text", st, 30, vl);
1275 if (!strcmp(st, "visible"))
1276 set_state(PART:"elm.text", "clicked", 0.0);
1279 program { name: "button_unpress";
1280 action: SIGNAL_EMIT "elm,action,unpress" "";
1282 program { name: "button_mouseout_clicked";
1283 signal: "mouse,up,1";
1288 get_state(PART:"elm.swallow.content", st, 30, vl);
1289 if (strcmp(st, "icononly"))
1291 emit("elm,action,default,text,set", "");
1292 set_state(PART:"elm.text", "visible", 0.0);
1294 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1295 set_state(PART:"button_image", "default", 0.0);
1297 after: button_unpress;
1299 program { name: "touch_snd";
1300 signal: "mouse,clicked,1";
1302 action: PLAY_SAMPLE "touch_sound" 1.0;
1303 after: button_unclick3;
1305 program { name: "button_unclick3";
1306 action: SIGNAL_EMIT "elm,action,click" "";
1308 program { name: "text_show";
1309 signal: "elm,state,text,visible";
1314 get_state(PART:"elm.swallow.content", st, 30, vl);
1315 if (!strcmp(st, "icononly"))
1317 set_state(PART:"elm.swallow.content", "visible", 0.0);
1318 set_state(PART:"icon_rect", "visible", 0.0);
1319 set_state(PART:"padding_after_icon", "visible", 0.0);
1320 set_state(PART:"bg", "visible", 0.0);
1322 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1323 set_state(PART:"elm.text", "visible", 0.0);
1325 set_state(PART:"elm.text", "disabled_visible", 0.0);
1328 program { name: "text_hide";
1329 signal: "elm,state,text,hidden";
1334 get_state(PART:"elm.swallow.content", st, 30, vl);
1335 if (!strcmp(st, "visible"))
1337 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1338 set_state(PART:"icon_rect", "icononly", 0.0);
1339 set_state(PART:"padding_after_icon", "icononly", 0.0);
1340 set_state(PART:"bg", "icononly", 0.0);
1342 set_state(PART:"elm.text", "default", 0.0);
1345 program { name: "icon_show";
1346 signal: "elm,state,icon,visible";
1351 get_state(PART:"elm.text", st, 30, vl);
1352 if (!strcmp(st, "visible"))
1354 set_state(PART:"elm.swallow.content", "visible", 0.0);
1355 set_state(PART:"icon_rect", "visible", 0.0);
1356 set_state(PART:"padding_after_icon", "visible", 0.0);
1357 set_state(PART:"bg", "visible", 0.0);
1361 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1362 set_state(PART:"icon_rect", "icononly", 0.0);
1363 set_state(PART:"padding_after_icon", "icononly", 0.0);
1364 set_state(PART:"bg", "icononly", 0.0);
1368 program { name: "icon_hide";
1369 signal: "elm,state,icon,hidden";
1371 action: STATE_SET "default" 0.0;
1372 target: "elm.swallow.content";
1373 target: "padding_after_icon";
1374 target: "icon_rect";
1377 program { name: "disable";
1378 signal: "elm,state,disabled";
1380 action: STATE_SET "disabled" 0.0;
1381 target: "button_image";
1383 after: "disable_text";
1385 program { name: "disable_text";
1389 get_state(PART:"elm.text", st, 30, vl);
1390 if (!strcmp(st, "visible"))
1391 set_state(PART:"elm.text", "disabled_visible", 0.0);
1393 set_state(PART:"elm.text", "disabled", 0.0);
1394 set_int(button_state, BUTTON_STATE_DISABLED);
1397 program { name: "enable";
1398 signal: "elm,state,enabled";
1400 action: STATE_SET "default" 0.0;
1401 target: "button_image";
1403 after: "enable_text";
1405 program { name: "enable_text";
1409 get_state(PART:"elm.text", st, 30, vl);
1410 if (!strcmp(st, "disabled_visible"))
1411 set_state(PART:"elm.text", "visible", 0.0);
1413 set_state(PART:"elm.text", "default", 0.0);
1414 set_int(button_state, BUTTON_STATE_ENABLED);
1417 program { name: "focused";
1418 //signal: "elm,action,focus";
1420 action: STATE_SET "focused" 0.0;
1421 target: "button_image";
1424 program { name: "unfocused";
1425 //signal: "elm,action,unfocus";
1427 action: STATE_SET "default" 0.0;
1428 target: "button_image";
1429 after: "unfocus_text";
1431 program { name: "unfocus_text";
1432 action: STATE_SET "visible" 0.0;
1438 ///////////////////////////////////////////////////////////////////////////////////////
1439 group { name: "elm/button/base/style2";
1440 alias: "elm/button/base/text_only/style2";
1442 image: "00_button_04_normal.png" COMP;
1443 image: "00_button_04_press.png" COMP;
1444 image: "00_button_04_dim.png" COMP;
1445 image: "00_button_04_normal_focus.png" COMP;
1448 public button_state = BUTTON_STATE_ENABLED;
1451 part { name: "button_image";
1453 description { state: "default" 0.0;
1455 normal: "00_button_04_normal.png";
1456 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1460 description { state: "clicked" 0.0;
1461 inherit: "default" 0.0;
1462 image.normal: "00_button_04_press.png";
1464 description { state: "disabled" 0.0;
1465 inherit: "default" 0.0;
1466 image.normal: "00_button_04_dim.png";
1468 description { state: "focused" 0.0;
1469 inherit: "default" 0.0;
1470 image.normal: "00_button_04_normal_focus.png";
1473 part { name: "padding_left_top";
1477 description { state: "default" 0.0;
1479 rel2.relative: 0.0 0.0;
1480 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1489 description { state: "default" 0.0;
1490 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1493 description { state: "visible" 0.0;
1494 inherit: "default" 0.0;
1495 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1497 description { state: "icononly" 0.0;
1498 inherit: "default" 0.0;
1499 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1502 part { name: "padding_right_bottom";
1506 description { state: "default" 0.0;
1508 rel1.relative: 1.0 1.0;
1509 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1514 part { name: "icon_rect";
1518 description { state: "default" 0.0;
1524 to: "padding_left_top";
1528 to_x: "padding_left_top";
1529 to_y: "padding_right_bottom";
1533 description { state: "visible" 0.0;
1535 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1536 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1540 to: "padding_left_top";
1544 to_x: "padding_left_top";
1545 to_y: "padding_right_bottom";
1549 description { state: "icononly" 0.0;
1550 inherit: "default" 0.0;
1553 part { name: "padding_after_icon";
1557 description { state: "default" 0.0; //when only icon or no icon is there
1563 rel2.to: "icon_rect";
1568 description { state: "visible" 0.0;
1575 rel2.to: "icon_rect";
1577 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1579 description { state: "icononly" 0.0;
1580 inherit: "default" 0.0;
1583 part { name: "padding_before_text";
1587 description { state: "default" 0.0; //when only icon or no icon is there
1592 to_y: "padding_left_top";
1597 to_y: "padding_right_bottom";
1600 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1604 part { name: "elm.swallow.content";
1608 description { state: "default" 0.0;
1613 to: "padding_left_top";
1617 to_x: "padding_left_top";
1618 to_y: "padding_right_bottom";
1622 description { state: "visible" 0.0;
1624 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1625 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1629 to_x: "padding_before_text";
1630 to_y: "padding_left_top";
1634 to_x: "padding_before_text";
1635 to_y: "padding_right_bottom";
1638 description { state: "icononly" 0.0;
1639 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1640 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1643 part { name: "elm.text";
1648 description { state: "default" 0.0;
1652 to_x: "padding_after_icon";
1653 to_y: "padding_left_top";
1657 to: "padding_right_bottom";
1659 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1661 font: "SLP:style=Medium";
1662 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1665 text_class: "slp_medium";
1668 description { state: "visible" 0.0;
1669 inherit: "default" 0.0;
1672 description { state: "clicked" 0.0;
1673 inherit: "default" 0.0;
1675 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1677 description { state: "disabled" 0.0;
1678 inherit: "default" 0.0;
1681 description { state: "disabled_visible" 0.0;
1682 inherit: "default" 0.0;
1683 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1686 description { state: "focused" 0.0;
1687 inherit: "default" 0.0;
1689 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1692 part { name: "over2";
1695 ignore_flags: ON_HOLD;
1696 description { state: "default" 0.0;
1700 part { name: "over3";
1703 description { state: "default" 0.0;
1707 part { name: "clipper";
1709 description { state: "default" 0.0;
1710 color: 255 255 255 255;
1713 part { name: "disabler";
1715 description { state: "default" 0.0;
1719 description { state: "disabled" 0.0;
1720 inherit: "default" 0.0;
1726 program { name: "button_click";
1727 signal: "mouse,down,1";
1729 action: SIGNAL_EMIT "elm,action,press" "";
1730 after: "button_click_anim";
1732 program { name: "button_click_anim";
1733 action: STATE_SET "clicked" 0.0;
1734 target: "button_image";
1735 after: "text_clicked";
1737 program { name: "text_clicked";
1741 get_state(PART:"elm.text", st, 30, vl);
1742 if (!strcmp(st, "visible"))
1743 set_state(PART:"elm.text", "clicked", 0.0);
1746 program { name: "button_unpress";
1747 action: SIGNAL_EMIT "elm,action,unpress" "";
1749 program { name: "button_mouseout_clicked";
1750 signal: "mouse,up,1";
1755 get_state(PART:"elm.swallow.content", st, 30, vl);
1756 if (strcmp(st, "icononly"))
1758 emit("elm,action,default,text,set", "");
1759 set_state(PART:"elm.text", "visible", 0.0);
1761 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1762 set_state(PART:"button_image", "default", 0.0);
1764 after: button_unpress;
1766 program { name: "touch_snd";
1767 signal: "mouse,clicked,1";
1769 action: PLAY_SAMPLE "touch_sound" 1.0;
1770 after: button_unclick3;
1772 program { name: "button_unclick3";
1773 action: SIGNAL_EMIT "elm,action,click" "";
1775 program { name: "text_show";
1776 signal: "elm,state,text,visible";
1781 get_state(PART:"elm.swallow.content", st, 30, vl);
1782 if (!strcmp(st, "icononly"))
1784 set_state(PART:"elm.swallow.content", "visible", 0.0);
1785 set_state(PART:"icon_rect", "visible", 0.0);
1786 set_state(PART:"padding_after_icon", "visible", 0.0);
1787 set_state(PART:"bg", "visible", 0.0);
1789 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1790 set_state(PART:"elm.text", "visible", 0.0);
1792 set_state(PART:"elm.text", "disabled_visible", 0.0);
1795 program { name: "text_hide";
1796 signal: "elm,state,text,hidden";
1801 get_state(PART:"elm.swallow.content", st, 30, vl);
1802 if (!strcmp(st, "visible"))
1804 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1805 set_state(PART:"icon_rect", "icononly", 0.0);
1806 set_state(PART:"padding_after_icon", "icononly", 0.0);
1807 set_state(PART:"bg", "icononly", 0.0);
1809 set_state(PART:"elm.text", "default", 0.0);
1812 program { name: "icon_show";
1813 signal: "elm,state,icon,visible";
1818 get_state(PART:"elm.text", st, 30, vl);
1819 if (!strcmp(st, "visible"))
1821 set_state(PART:"elm.swallow.content", "visible", 0.0);
1822 set_state(PART:"icon_rect", "visible", 0.0);
1823 set_state(PART:"padding_after_icon", "visible", 0.0);
1824 set_state(PART:"bg", "visible", 0.0);
1828 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1829 set_state(PART:"icon_rect", "icononly", 0.0);
1830 set_state(PART:"padding_after_icon", "icononly", 0.0);
1831 set_state(PART:"bg", "icononly", 0.0);
1835 program { name: "icon_hide";
1836 signal: "elm,state,icon,hidden";
1838 action: STATE_SET "default" 0.0;
1839 target: "elm.swallow.content";
1840 target: "padding_after_icon";
1841 target: "icon_rect";
1844 program { name: "disable";
1845 signal: "elm,state,disabled";
1847 action: STATE_SET "disabled" 0.0;
1848 target: "button_image";
1850 after: "disable_text";
1852 program { name: "disable_text";
1856 get_state(PART:"elm.text", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1858 set_state(PART:"elm.text", "disabled_visible", 0.0);
1860 set_state(PART:"elm.text", "disabled", 0.0);
1861 set_int(button_state, BUTTON_STATE_DISABLED);
1864 program { name: "enable";
1865 signal: "elm,state,enabled";
1867 action: STATE_SET "default" 0.0;
1868 target: "button_image";
1870 after: "enable_text";
1872 program { name: "enable_text";
1876 get_state(PART:"elm.text", st, 30, vl);
1877 if (!strcmp(st, "disabled_visible"))
1878 set_state(PART:"elm.text", "visible", 0.0);
1880 set_state(PART:"elm.text", "default", 0.0);
1881 set_int(button_state, BUTTON_STATE_ENABLED);
1884 program { name: "focused";
1885 //signal: "elm,action,focus";
1887 action: STATE_SET "focused" 0.0;
1888 target: "button_image";
1891 program { name: "unfocused";
1892 //signal: "elm,action,unfocus";
1894 action: STATE_SET "default" 0.0;
1895 target: "button_image";
1896 after: "unfocus_text";
1898 program { name: "unfocus_text";
1899 action: STATE_SET "visible" 0.0;
1905 ///////////////////////////////////////////////////////////////////////////////////////
1906 group { name: "elm/button/base/style2/multiline";
1908 image: "00_button_04_normal.png" COMP;
1909 image: "00_button_04_press.png" COMP;
1910 image: "00_button_04_dim.png" COMP;
1911 image: "00_button_04_normal_focus.png" COMP;
1914 style { name: "btn_style2_multiline";
1915 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE2_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1922 public button_state = BUTTON_STATE_ENABLED;
1925 part { name: "button_image";
1927 description { state: "default" 0.0;
1929 normal: "00_button_04_normal.png";
1930 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1934 description { state: "clicked" 0.0;
1935 inherit: "default" 0.0;
1936 image.normal: "00_button_04_press.png";
1938 description { state: "disabled" 0.0;
1939 inherit: "default" 0.0;
1940 image.normal: "00_button_04_dim.png";
1942 description { state: "focused" 0.0;
1943 inherit: "default" 0.0;
1944 image.normal: "00_button_04_normal_focus.png";
1947 part { name: "padding_left_top";
1951 description { state: "default" 0.0;
1953 rel2.relative: 0.0 0.0;
1954 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1963 description { state: "default" 0.0;
1964 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1967 description { state: "visible" 0.0;
1968 inherit: "default" 0.0;
1969 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1971 description { state: "icononly" 0.0;
1972 inherit: "default" 0.0;
1973 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1976 part { name: "padding_right_bottom";
1980 description { state: "default" 0.0;
1982 rel1.relative: 1.0 1.0;
1983 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1988 part { name: "icon_rect";
1992 description { state: "default" 0.0;
1998 to: "padding_left_top";
2002 to_x: "padding_left_top";
2003 to_y: "padding_right_bottom";
2007 description { state: "visible" 0.0;
2009 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2010 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2014 to: "padding_left_top";
2018 to_x: "padding_left_top";
2019 to_y: "padding_right_bottom";
2023 description { state: "icononly" 0.0;
2024 inherit: "default" 0.0;
2027 part { name: "padding_after_icon";
2031 description { state: "default" 0.0; //when only icon or no icon is there
2037 rel2.to: "icon_rect";
2042 description { state: "visible" 0.0;
2049 rel2.to: "icon_rect";
2051 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2053 description { state: "icononly" 0.0;
2054 inherit: "default" 0.0;
2057 part { name: "padding_before_text";
2061 description { state: "default" 0.0; //when only icon or no icon is there
2066 to_y: "padding_left_top";
2071 to_y: "padding_right_bottom";
2074 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2078 part { name: "elm.swallow.content";
2082 description { state: "default" 0.0;
2087 to: "padding_left_top";
2091 to_x: "padding_left_top";
2092 to_y: "padding_right_bottom";
2096 description { state: "visible" 0.0;
2098 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2099 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2103 to_x: "padding_before_text";
2104 to_y: "padding_left_top";
2108 to_x: "padding_before_text";
2109 to_y: "padding_right_bottom";
2112 description { state: "icononly" 0.0;
2113 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2114 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2117 part { name: "elm.text";
2122 description { state: "default" 0.0;
2126 to_x: "padding_after_icon";
2127 to_y: "padding_left_top";
2131 to: "padding_right_bottom";
2133 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2135 style: "btn_style2_multiline";
2140 description { state: "visible" 0.0;
2141 inherit: "default" 0.0;
2144 description { state: "clicked" 0.0;
2145 inherit: "default" 0.0;
2147 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2149 description { state: "disabled" 0.0;
2150 inherit: "default" 0.0;
2153 description { state: "disabled_visible" 0.0;
2154 inherit: "default" 0.0;
2155 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2158 description { state: "focused" 0.0;
2159 inherit: "default" 0.0;
2161 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
2164 part { name: "over2";
2167 ignore_flags: ON_HOLD;
2168 description { state: "default" 0.0;
2172 part { name: "over3";
2175 description { state: "default" 0.0;
2179 part { name: "clipper";
2181 description { state: "default" 0.0;
2182 color: 255 255 255 255;
2185 part { name: "disabler";
2187 description { state: "default" 0.0;
2191 description { state: "disabled" 0.0;
2192 inherit: "default" 0.0;
2198 program { name: "button_click";
2199 signal: "mouse,down,1";
2201 action: SIGNAL_EMIT "elm,action,press" "";
2202 after: "button_click_anim";
2204 program { name: "button_click_anim";
2205 action: STATE_SET "clicked" 0.0;
2206 target: "button_image";
2207 after: "text_clicked";
2209 program { name: "text_clicked";
2213 get_state(PART:"elm.text", st, 30, vl);
2214 if (!strcmp(st, "visible"))
2215 set_state(PART:"elm.text", "clicked", 0.0);
2218 program { name: "button_unpress";
2219 action: SIGNAL_EMIT "elm,action,unpress" "";
2221 program { name: "button_mouseout_clicked";
2222 signal: "mouse,up,1";
2227 get_state(PART:"elm.swallow.content", st, 30, vl);
2228 if (strcmp(st, "icononly"))
2230 emit("elm,action,default,text,set", "");
2231 set_state(PART:"elm.text", "visible", 0.0);
2233 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2234 set_state(PART:"button_image", "default", 0.0);
2236 after: button_unpress;
2238 program { name: "touch_snd";
2239 signal: "mouse,clicked,1";
2241 action: PLAY_SAMPLE "touch_sound" 1.0;
2242 after: button_unclick3;
2244 program { name: "button_unclick3";
2245 action: SIGNAL_EMIT "elm,action,click" "";
2247 program { name: "text_show";
2248 signal: "elm,state,text,visible";
2253 get_state(PART:"elm.swallow.content", st, 30, vl);
2254 if (!strcmp(st, "icononly"))
2256 set_state(PART:"elm.swallow.content", "visible", 0.0);
2257 set_state(PART:"icon_rect", "visible", 0.0);
2258 set_state(PART:"padding_after_icon", "visible", 0.0);
2259 set_state(PART:"bg", "visible", 0.0);
2261 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2262 set_state(PART:"elm.text", "visible", 0.0);
2264 set_state(PART:"elm.text", "disabled_visible", 0.0);
2267 program { name: "text_hide";
2268 signal: "elm,state,text,hidden";
2273 get_state(PART:"elm.swallow.content", st, 30, vl);
2274 if (!strcmp(st, "visible"))
2276 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2277 set_state(PART:"icon_rect", "icononly", 0.0);
2278 set_state(PART:"padding_after_icon", "icononly", 0.0);
2279 set_state(PART:"bg", "icononly", 0.0);
2281 set_state(PART:"elm.text", "default", 0.0);
2284 program { name: "icon_show";
2285 signal: "elm,state,icon,visible";
2290 get_state(PART:"elm.text", st, 30, vl);
2291 if (!strcmp(st, "visible"))
2293 set_state(PART:"elm.swallow.content", "visible", 0.0);
2294 set_state(PART:"icon_rect", "visible", 0.0);
2295 set_state(PART:"padding_after_icon", "visible", 0.0);
2296 set_state(PART:"bg", "visible", 0.0);
2300 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2301 set_state(PART:"icon_rect", "icononly", 0.0);
2302 set_state(PART:"padding_after_icon", "icononly", 0.0);
2303 set_state(PART:"bg", "icononly", 0.0);
2307 program { name: "icon_hide";
2308 signal: "elm,state,icon,hidden";
2310 action: STATE_SET "default" 0.0;
2311 target: "elm.swallow.content";
2312 target: "padding_after_icon";
2313 target: "icon_rect";
2316 program { name: "disable";
2317 signal: "elm,state,disabled";
2319 action: STATE_SET "disabled" 0.0;
2320 target: "button_image";
2322 after: "disable_text";
2324 program { name: "disable_text";
2328 get_state(PART:"elm.text", st, 30, vl);
2329 if (!strcmp(st, "visible"))
2330 set_state(PART:"elm.text", "disabled_visible", 0.0);
2332 set_state(PART:"elm.text", "disabled", 0.0);
2333 set_int(button_state, BUTTON_STATE_DISABLED);
2336 program { name: "enable";
2337 signal: "elm,state,enabled";
2339 action: STATE_SET "default" 0.0;
2340 target: "button_image";
2342 after: "enable_text";
2344 program { name: "enable_text";
2348 get_state(PART:"elm.text", st, 30, vl);
2349 if (!strcmp(st, "disabled_visible"))
2350 set_state(PART:"elm.text", "visible", 0.0);
2352 set_state(PART:"elm.text", "default", 0.0);
2353 set_int(button_state, BUTTON_STATE_ENABLED);
2356 program { name: "focused";
2357 //signal: "elm,action,focus";
2359 action: STATE_SET "focused" 0.0;
2360 target: "button_image";
2363 program { name: "unfocused";
2364 //signal: "elm,action,unfocus";
2366 action: STATE_SET "default" 0.0;
2367 target: "button_image";
2368 after: "unfocus_text";
2370 program { name: "unfocus_text";
2371 action: STATE_SET "visible" 0.0;
2377 ///////////////////////////////////////////////////////////////////////////////////////
2378 group { name: "elm/button/base/sweep";
2379 alias: "elm/button/base/text_only/sweep";
2381 image: "00_button_sweep.png" COMP;
2382 image: "00_button_sweep_press.png" COMP;
2383 image: "00_button_sweep_dim.png" COMP;
2384 image: "00_button_sweep_focus.png" COMP;
2387 public button_state = BUTTON_STATE_ENABLED;
2390 part { name: "button_image";
2392 description { state: "default" 0.0;
2393 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2395 normal: "00_button_sweep.png";
2396 border: BUTTON_SWEEP_BG_BORDER_INC;
2400 description { state: "clicked" 0.0;
2401 inherit: "default" 0.0;
2402 image.normal: "00_button_sweep_press.png";
2404 description { state: "disabled" 0.0;
2405 inherit: "default" 0.0;
2406 image.normal: "00_button_sweep_dim.png";
2408 description { state: "focused" 0.0;
2409 inherit: "default" 0.0;
2410 image.normal: "00_button_sweep_focus.png";
2413 part { name: "padding_left_top";
2417 description { state: "default" 0.0;
2419 rel2.relative: 0.0 0.0;
2420 min: BUTTON_SWEEP_PADDING_MIN_INC;
2425 part { name: "padding_right_bottom";
2429 description { state: "default" 0.0;
2431 rel1.relative: 1.0 1.0;
2432 min: BUTTON_SWEEP_PADDING_MIN_INC;
2437 part { name: "icon_rect";
2441 description { state: "default" 0.0;
2442 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2446 to_x: "elm.swallow.content";
2447 to_y: "padding_left_top";
2451 to_x: "elm.swallow.content";
2452 to_y: "padding_right_bottom";
2458 part { name: "padding_icon_text";
2462 description { state: "default" 0.0; //when only icon or no icon is there
2468 rel2.to: "icon_rect";
2473 description { state: "icononly" 0.0;
2474 inherit: "default" 0.0;
2476 description { state: "visible" 0.0; //when icon is visible
2482 rel2.to: "icon_rect";
2484 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2488 part { name: "elm.swallow.content";
2492 description { state: "default" 0.0;
2497 to: "padding_left_top";
2501 to_x: "padding_left_top";
2502 to_y: "padding_right_bottom";
2506 description { state: "visible" 0.0;
2511 to: "padding_left_top";
2515 to_x: "padding_left_top";
2516 to_y: "padding_right_bottom";
2519 aspect_preference: VERTICAL;
2521 description { state: "icononly" 0.0;
2522 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2525 to: "padding_left_top";
2529 to_x: "padding_left_top";
2530 to_y: "padding_right_bottom";
2534 part { name: "elm.text";
2539 description { state: "default" 0.0;
2543 to_x: "padding_icon_text";
2544 to_y: "padding_left_top";
2548 to: "padding_right_bottom";
2550 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2552 font: "SLP:style=Medium";
2553 size: BUTTON_SWEEP_FONT_SIZE_INC;
2555 text_class: "slp_medium";
2558 description { state: "visible" 0.0;
2559 inherit: "default" 0.0;
2561 min: BUTTON_SWEEP_TEXT_MIN_INC;
2563 description { state: "clicked" 0.0;
2564 inherit: "default" 0.0;
2567 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2569 description { state: "disabled" 0.0;
2570 inherit: "default" 0.0;
2573 description { state: "disabled_visible" 0.0;
2574 inherit: "default" 0.0;
2575 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2577 min: BUTTON_SWEEP_TEXT_MIN_INC;
2579 description { state: "focused" 0.0;
2580 inherit: "default" 0.0;
2583 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2586 part { name: "over2";
2589 ignore_flags: ON_HOLD;
2590 description { state: "default" 0.0;
2594 part { name: "over3";
2597 description { state: "default" 0.0;
2601 part { name: "clipper";
2603 description { state: "default" 0.0;
2604 color: 255 255 255 255;
2607 part { name: "disabler";
2609 description { state: "default" 0.0;
2613 description { state: "disabled" 0.0;
2614 inherit: "default" 0.0;
2620 program { name: "button_click";
2621 signal: "mouse,down,1";
2623 action: SIGNAL_EMIT "elm,action,press" "";
2624 after: "button_click_anim";
2626 program { name: "button_click_anim";
2627 action: STATE_SET "clicked" 0.0;
2628 target: "button_image";
2629 after: "text_clicked";
2631 program { name: "text_clicked";
2635 get_state(PART:"elm.text", st, 30, vl);
2636 if (!strcmp(st, "visible"))
2637 set_state(PART:"elm.text", "clicked", 0.0);
2640 program { name: "button_unpress";
2641 action: SIGNAL_EMIT "elm,action,unpress" "";
2643 program { name: "button_mouseout_clicked";
2644 signal: "mouse,up,1";
2649 get_state(PART:"elm.swallow.content", st, 30, vl);
2650 if (strcmp(st, "icononly"))
2652 emit("elm,action,default,text,set", "");
2653 set_state(PART:"elm.text", "visible", 0.0);
2655 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2656 set_state(PART:"button_image", "default", 0.0);
2658 after: button_unpress;
2660 program { name: "touch_snd";
2661 signal: "mouse,clicked,1";
2663 action: PLAY_SAMPLE "touch_sound" 1.0;
2664 after: button_unclick3;
2666 program { name: "button_unclick3";
2667 action: SIGNAL_EMIT "elm,action,click" "";
2669 program { name: "text_show";
2670 signal: "elm,state,text,visible";
2675 get_state(PART:"elm.swallow.content", st, 30, vl);
2676 if (!strcmp(st, "icononly"))
2678 set_state(PART:"elm.swallow.content", "visible", 0.0);
2679 set_state(PART:"padding_icon_text", "visible", 0.0);
2681 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2682 set_state(PART:"elm.text", "visible", 0.0);
2684 set_state(PART:"elm.text", "disabled_visible", 0.0);
2687 program { name: "text_hide";
2688 signal: "elm,state,text,hidden";
2693 get_state(PART:"elm.swallow.content", st, 30, vl);
2694 if (!strcmp(st, "visible"))
2696 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2697 set_state(PART:"padding_icon_text", "icononly", 0.0);
2699 set_state(PART:"elm.text", "default", 0.0);
2702 program { name: "icon_show";
2703 signal: "elm,state,icon,visible";
2708 get_state(PART:"elm.text", st, 30, vl);
2709 if (!strcmp(st, "visible"))
2711 set_state(PART:"elm.swallow.content", "visible", 0.0);
2712 set_state(PART:"padding_icon_text", "visible", 0.0);
2716 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2717 set_state(PART:"padding_icon_text", "icononly", 0.0);
2721 program { name: "icon_hide";
2722 signal: "elm,state,icon,hidden";
2724 action: STATE_SET "default" 0.0;
2725 target: "elm.swallow.content";
2726 target: "padding_icon_text";
2728 program { name: "disable";
2729 signal: "elm,state,disabled";
2731 action: STATE_SET "disabled" 0.0;
2732 target: "button_image";
2734 after: "disable_text";
2736 program { name: "disable_text";
2740 get_state(PART:"elm.text", st, 30, vl);
2741 if (!strcmp(st, "visible"))
2742 set_state(PART:"elm.text", "disabled_visible", 0.0);
2744 set_state(PART:"elm.text", "disabled", 0.0);
2745 set_int(button_state, BUTTON_STATE_DISABLED);
2748 program { name: "enable";
2749 signal: "elm,state,enabled";
2751 action: STATE_SET "default" 0.0;
2752 target: "button_image";
2754 after: "enable_text";
2756 program { name: "enable_text";
2760 get_state(PART:"elm.text", st, 30, vl);
2761 if (!strcmp(st, "disabled_visible"))
2762 set_state(PART:"elm.text", "visible", 0.0);
2764 set_state(PART:"elm.text", "default", 0.0);
2765 set_int(button_state, BUTTON_STATE_ENABLED);
2768 program { name: "focused";
2769 //signal: "elm,action,focus";
2771 action: STATE_SET "focused" 0.0;
2772 target: "button_image";
2775 program { name: "unfocused";
2776 //signal: "elm,action,unfocus";
2778 action: STATE_SET "default" 0.0;
2779 target: "button_image";
2780 after: "unfocus_text";
2782 program { name: "unfocus_text";
2783 action: STATE_SET "visible" 0.0;
2789 ///////////////////////////////////////////////////////////////////////////////////////
2790 group { name: "elm/button/base/sweep/multiline";
2792 image: "00_button_sweep.png" COMP;
2793 image: "00_button_sweep_press.png" COMP;
2794 image: "00_button_sweep_dim.png" COMP;
2795 image: "00_button_sweep_focus.png" COMP;
2798 style { name: "btn_sweep_multiline";
2799 base: "font=SLP:style=Roman font_size="BUTTON_SWEEP_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
2806 public button_state = BUTTON_STATE_ENABLED;
2809 part { name: "button_image";
2811 description { state: "default" 0.0;
2812 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2814 normal: "00_button_sweep.png";
2815 border: BUTTON_SWEEP_BG_BORDER_INC;
2819 description { state: "clicked" 0.0;
2820 inherit: "default" 0.0;
2821 image.normal: "00_button_sweep_press.png";
2823 description { state: "disabled" 0.0;
2824 inherit: "default" 0.0;
2825 image.normal: "00_button_sweep_dim.png";
2827 description { state: "focused" 0.0;
2828 inherit: "default" 0.0;
2829 image.normal: "00_button_sweep_focus.png";
2832 part { name: "padding_left_top";
2836 description { state: "default" 0.0;
2838 rel2.relative: 0.0 0.0;
2839 min: BUTTON_SWEEP_PADDING_MIN_INC;
2844 part { name: "padding_right_bottom";
2848 description { state: "default" 0.0;
2850 rel1.relative: 1.0 1.0;
2851 min: BUTTON_SWEEP_PADDING_MIN_INC;
2856 part { name: "icon_rect";
2860 description { state: "default" 0.0;
2861 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2865 to_x: "elm.swallow.content";
2866 to_y: "padding_left_top";
2870 to_x: "elm.swallow.content";
2871 to_y: "padding_right_bottom";
2877 part { name: "padding_icon_text";
2881 description { state: "default" 0.0; //when only icon or no icon is there
2887 rel2.to: "icon_rect";
2892 description { state: "icononly" 0.0;
2893 inherit: "default" 0.0;
2895 description { state: "visible" 0.0; //when icon is visible
2901 rel2.to: "icon_rect";
2903 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2907 part { name: "elm.swallow.content";
2911 description { state: "default" 0.0;
2916 to: "padding_left_top";
2920 to_x: "padding_left_top";
2921 to_y: "padding_right_bottom";
2925 description { state: "visible" 0.0;
2930 to: "padding_left_top";
2934 to_x: "padding_left_top";
2935 to_y: "padding_right_bottom";
2938 aspect_preference: VERTICAL;
2940 description { state: "icononly" 0.0;
2941 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2944 to: "padding_left_top";
2948 to_x: "padding_left_top";
2949 to_y: "padding_right_bottom";
2953 part { name: "elm.text";
2958 description { state: "default" 0.0;
2962 to_x: "padding_icon_text";
2963 to_y: "padding_left_top";
2967 to: "padding_right_bottom";
2969 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2971 style: "btn_sweep_multiline";
2976 description { state: "visible" 0.0;
2977 inherit: "default" 0.0;
2979 min: BUTTON_SWEEP_TEXT_MIN_INC;
2981 description { state: "clicked" 0.0;
2982 inherit: "default" 0.0;
2985 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2987 description { state: "disabled" 0.0;
2988 inherit: "default" 0.0;
2991 description { state: "disabled_visible" 0.0;
2992 inherit: "default" 0.0;
2993 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2995 min: BUTTON_SWEEP_TEXT_MIN_INC;
2997 description { state: "focused" 0.0;
2998 inherit: "default" 0.0;
3001 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3004 part { name: "over2";
3007 ignore_flags: ON_HOLD;
3008 description { state: "default" 0.0;
3012 part { name: "over3";
3015 description { state: "default" 0.0;
3019 part { name: "clipper";
3021 description { state: "default" 0.0;
3022 color: 255 255 255 255;
3025 part { name: "disabler";
3027 description { state: "default" 0.0;
3031 description { state: "disabled" 0.0;
3032 inherit: "default" 0.0;
3038 program { name: "button_click";
3039 signal: "mouse,down,1";
3041 action: SIGNAL_EMIT "elm,action,press" "";
3042 after: "button_click_anim";
3044 program { name: "button_click_anim";
3045 action: STATE_SET "clicked" 0.0;
3046 target: "button_image";
3047 after: "text_clicked";
3049 program { name: "text_clicked";
3053 get_state(PART:"elm.text", st, 30, vl);
3054 if (!strcmp(st, "visible"))
3055 set_state(PART:"elm.text", "clicked", 0.0);
3058 program { name: "button_unpress";
3059 action: SIGNAL_EMIT "elm,action,unpress" "";
3061 program { name: "button_mouseout_clicked";
3062 signal: "mouse,up,1";
3067 get_state(PART:"elm.swallow.content", st, 30, vl);
3068 if (strcmp(st, "icononly"))
3070 emit("elm,action,default,text,set", "");
3071 set_state(PART:"elm.text", "visible", 0.0);
3073 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3074 set_state(PART:"button_image", "default", 0.0);
3076 after: button_unpress;
3078 program { name: "touch_snd";
3079 signal: "mouse,clicked,1";
3081 action: PLAY_SAMPLE "touch_sound" 1.0;
3082 after: button_unclick3;
3084 program { name: "button_unclick3";
3085 action: SIGNAL_EMIT "elm,action,click" "";
3087 program { name: "text_show";
3088 signal: "elm,state,text,visible";
3093 get_state(PART:"elm.swallow.content", st, 30, vl);
3094 if (!strcmp(st, "icononly"))
3096 set_state(PART:"elm.swallow.content", "visible", 0.0);
3097 set_state(PART:"padding_icon_text", "visible", 0.0);
3099 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3100 set_state(PART:"elm.text", "visible", 0.0);
3102 set_state(PART:"elm.text", "disabled_visible", 0.0);
3105 program { name: "text_hide";
3106 signal: "elm,state,text,hidden";
3111 get_state(PART:"elm.swallow.content", st, 30, vl);
3112 if (!strcmp(st, "visible"))
3114 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3115 set_state(PART:"padding_icon_text", "icononly", 0.0);
3117 set_state(PART:"elm.text", "default", 0.0);
3120 program { name: "icon_show";
3121 signal: "elm,state,icon,visible";
3126 get_state(PART:"elm.text", st, 30, vl);
3127 if (!strcmp(st, "visible"))
3129 set_state(PART:"elm.swallow.content", "visible", 0.0);
3130 set_state(PART:"padding_icon_text", "visible", 0.0);
3134 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3135 set_state(PART:"padding_icon_text", "icononly", 0.0);
3139 program { name: "icon_hide";
3140 signal: "elm,state,icon,hidden";
3142 action: STATE_SET "default" 0.0;
3143 target: "elm.swallow.content";
3144 target: "padding_icon_text";
3146 program { name: "disable";
3147 signal: "elm,state,disabled";
3149 action: STATE_SET "disabled" 0.0;
3150 target: "button_image";
3152 after: "disable_text";
3154 program { name: "disable_text";
3158 get_state(PART:"elm.text", st, 30, vl);
3159 if (!strcmp(st, "visible"))
3160 set_state(PART:"elm.text", "disabled_visible", 0.0);
3162 set_state(PART:"elm.text", "disabled", 0.0);
3163 set_int(button_state, BUTTON_STATE_DISABLED);
3166 program { name: "enable";
3167 signal: "elm,state,enabled";
3169 action: STATE_SET "default" 0.0;
3170 target: "button_image";
3172 after: "enable_text";
3174 program { name: "enable_text";
3178 get_state(PART:"elm.text", st, 30, vl);
3179 if (!strcmp(st, "disabled_visible"))
3180 set_state(PART:"elm.text", "visible", 0.0);
3182 set_state(PART:"elm.text", "default", 0.0);
3183 set_int(button_state, BUTTON_STATE_ENABLED);
3186 program { name: "focused";
3187 //signal: "elm,action,focus";
3189 action: STATE_SET "focused" 0.0;
3190 target: "button_image";
3193 program { name: "unfocused";
3194 //signal: "elm,action,unfocus";
3196 action: STATE_SET "default" 0.0;
3197 target: "button_image";
3198 after: "unfocus_text";
3200 program { name: "unfocus_text";
3201 action: STATE_SET "visible" 0.0;
3207 ///////////////////////////////////////////////////////////////////////////////////////
3208 group { name: "elm/button/base/sweep/delete";
3210 image: "00_button_sweep_dim.png" COMP;
3211 image: "00_button_sweep_delete.png" COMP;
3212 image: "00_button_sweep_delete_press.png" COMP;
3213 image: "00_button_sweep_focus.png" COMP;
3216 public button_state = BUTTON_STATE_ENABLED;
3219 part { name: "button_image";
3221 description { state: "default" 0.0;
3222 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3224 normal: "00_button_sweep_delete.png";
3225 border: BUTTON_SWEEP_BG_BORDER_INC;
3229 description { state: "clicked" 0.0;
3230 inherit: "default" 0.0;
3231 image.normal: "00_button_sweep_delete_press.png";
3233 description { state: "disabled" 0.0;
3234 inherit: "default" 0.0;
3235 image.normal: "00_button_sweep_dim.png";
3237 description { state: "focused" 0.0;
3238 inherit: "default" 0.0;
3239 image.normal: "00_button_sweep_focus.png";
3242 part { name: "padding_left_top";
3246 description { state: "default" 0.0;
3248 rel2.relative: 0.0 0.0;
3249 min: BUTTON_SWEEP_PADDING_MIN_INC;
3254 part { name: "padding_right_bottom";
3258 description { state: "default" 0.0;
3260 rel1.relative: 1.0 1.0;
3261 min: BUTTON_SWEEP_PADDING_MIN_INC;
3266 part { name: "icon_rect";
3270 description { state: "default" 0.0;
3271 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3275 to_x: "elm.swallow.content";
3276 to_y: "padding_left_top";
3280 to_x: "elm.swallow.content";
3281 to_y: "padding_right_bottom";
3287 part { name: "padding_icon_text";
3291 description { state: "default" 0.0; //when only icon or no icon is there
3297 rel2.to: "icon_rect";
3302 description { state: "icononly" 0.0;
3303 inherit: "default" 0.0;
3305 description { state: "visible" 0.0; //when icon is visible
3311 rel2.to: "icon_rect";
3313 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3317 part { name: "elm.swallow.content";
3321 description { state: "default" 0.0;
3326 to: "padding_left_top";
3330 to_x: "padding_left_top";
3331 to_y: "padding_right_bottom";
3335 description { state: "visible" 0.0;
3340 to: "padding_left_top";
3344 to_x: "padding_left_top";
3345 to_y: "padding_right_bottom";
3348 aspect_preference: VERTICAL;
3350 description { state: "icononly" 0.0;
3351 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3354 to: "padding_left_top";
3358 to_x: "padding_left_top";
3359 to_y: "padding_right_bottom";
3363 part { name: "elm.text";
3368 description { state: "default" 0.0;
3371 to_x: "padding_icon_text";
3372 to_y: "padding_left_top";
3376 to: "padding_right_bottom";
3378 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3380 font: "SLP:style=Medium";
3381 size: BUTTON_SWEEP_FONT_SIZE_INC;
3385 text_class: "slp_medium";
3388 description { state: "visible" 0.0;
3389 inherit: "default" 0.0;
3391 description { state: "clicked" 0.0;
3392 inherit: "default" 0.0;
3393 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3395 description { state: "disabled" 0.0;
3396 inherit: "default" 0.0;
3399 description { state: "disabled_visible" 0.0;
3400 inherit: "default" 0.0;
3401 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3403 description { state: "focused" 0.0;
3404 inherit: "default" 0.0;
3407 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3410 part { name: "over2";
3413 ignore_flags: ON_HOLD;
3414 description { state: "default" 0.0;
3418 part { name: "over3";
3421 description { state: "default" 0.0;
3425 part { name: "clipper";
3427 description { state: "default" 0.0;
3428 color: 255 255 255 255;
3431 part { name: "disabler";
3433 description { state: "default" 0.0;
3437 description { state: "disabled" 0.0;
3438 inherit: "default" 0.0;
3444 program { name: "button_click";
3445 signal: "mouse,down,1";
3447 action: SIGNAL_EMIT "elm,action,press" "";
3448 after: "button_click_anim";
3450 program { name: "button_click_anim";
3451 action: STATE_SET "clicked" 0.0;
3452 target: "button_image";
3453 after: "text_clicked";
3455 program { name: "text_clicked";
3459 get_state(PART:"elm.text", st, 30, vl);
3460 if (!strcmp(st, "visible"))
3461 set_state(PART:"elm.text", "clicked", 0.0);
3464 program { name: "button_unpress";
3465 action: SIGNAL_EMIT "elm,action,unpress" "";
3467 program { name: "button_mouseout_clicked";
3468 signal: "mouse,up,1";
3473 get_state(PART:"elm.swallow.content", st, 30, vl);
3474 if (strcmp(st, "icononly"))
3476 emit("elm,action,default,text,set", "");
3477 set_state(PART:"elm.text", "visible", 0.0);
3479 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3480 set_state(PART:"button_image", "default", 0.0);
3482 after: button_unpress;
3484 program { name: "touch_snd";
3485 signal: "mouse,clicked,1";
3487 action: PLAY_SAMPLE "touch_sound" 1.0;
3488 after: button_unclick3;
3490 program { name: "button_unclick3";
3491 action: SIGNAL_EMIT "elm,action,click" "";
3493 program { name: "text_show";
3494 signal: "elm,state,text,visible";
3499 get_state(PART:"elm.swallow.content", st, 30, vl);
3500 if (!strcmp(st, "icononly"))
3502 set_state(PART:"elm.swallow.content", "visible", 0.0);
3503 set_state(PART:"padding_icon_text", "visible", 0.0);
3505 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3506 set_state(PART:"elm.text", "visible", 0.0);
3508 set_state(PART:"elm.text", "disabled_visible", 0.0);
3511 program { name: "text_hide";
3512 signal: "elm,state,text,hidden";
3517 get_state(PART:"elm.swallow.content", st, 30, vl);
3518 if (!strcmp(st, "visible"))
3520 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3521 set_state(PART:"padding_icon_text", "icononly", 0.0);
3523 set_state(PART:"elm.text", "default", 0.0);
3526 program { name: "icon_show";
3527 signal: "elm,state,icon,visible";
3532 get_state(PART:"elm.text", st, 30, vl);
3533 if (!strcmp(st, "visible"))
3535 set_state(PART:"elm.swallow.content", "visible", 0.0);
3536 set_state(PART:"padding_icon_text", "visible", 0.0);
3540 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3541 set_state(PART:"padding_icon_text", "icononly", 0.0);
3545 program { name: "icon_hide";
3546 signal: "elm,state,icon,hidden";
3548 action: STATE_SET "default" 0.0;
3549 target: "elm.swallow.content";
3550 target: "padding_icon_text";
3552 program { name: "disable";
3553 signal: "elm,state,disabled";
3555 action: STATE_SET "disabled" 0.0;
3556 target: "button_image";
3558 after: "disable_text";
3560 program { name: "disable_text";
3564 get_state(PART:"elm.text", st, 30, vl);
3565 if (!strcmp(st, "visible"))
3566 set_state(PART:"elm.text", "disabled_visible", 0.0);
3568 set_state(PART:"elm.text", "disabled", 0.0);
3569 set_int(button_state, BUTTON_STATE_DISABLED);
3572 program { name: "enable";
3573 signal: "elm,state,enabled";
3575 action: STATE_SET "default" 0.0;
3576 target: "button_image";
3578 after: "enable_text";
3580 program { name: "enable_text";
3584 get_state(PART:"elm.text", st, 30, vl);
3585 if (!strcmp(st, "disabled_visible"))
3586 set_state(PART:"elm.text", "visible", 0.0);
3588 set_state(PART:"elm.text", "default", 0.0);
3589 set_int(button_state, BUTTON_STATE_ENABLED);
3592 program { name: "focused";
3593 //signal: "elm,action,focus";
3595 action: STATE_SET "focused" 0.0;
3596 target: "button_image";
3599 program { name: "unfocused";
3600 //signal: "elm,action,unfocus";
3602 action: STATE_SET "default" 0.0;
3603 target: "button_image";
3604 after: "unfocus_text";
3606 program { name: "unfocus_text";
3607 action: STATE_SET "visible" 0.0;
3613 ///////////////////////////////////////////////////////////////////////////////////////
3614 group { name: "elm/button/base/popup_button/default";
3615 alias: "elm/button/base/popup_button/menustyle";
3616 alias: "elm/button/base/popup_button/liststyle";
3617 alias: "elm/button/base/popup_button/volumebarstyle";
3618 alias: "elm/button/base/popup_button/customstyle";
3619 alias: "elm/button/base/popup_button/verticalbuttonstyle";
3621 image: "00_button_popup_normal.png" COMP;
3622 image: "00_button_popup_press.png" COMP;
3623 image: "00_button_popup_normal_focus.png" COMP;
3624 image: "00_button_popup_dim.png" COMP;
3627 public button_state = BUTTON_STATE_ENABLED;
3630 part { name: "button_image";
3632 description { state: "default" 0.0;
3633 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
3635 normal: "00_button_popup_normal.png";
3636 border: BUTTON_POPUP_BG_BORDER_INC;
3640 description { state: "clicked" 0.0;
3641 inherit: "default" 0.0;
3642 image.normal: "00_button_popup_press.png";
3644 description { state: "disabled" 0.0;
3645 inherit: "default" 0.0;
3646 image.normal: "00_button_popup_dim.png";
3648 description { state: "focused" 0.0;
3649 inherit: "default" 0.0;
3650 image.normal: "00_button_popup_normal_focus.png";
3653 part { name: "padding_left_top";
3657 description { state: "default" 0.0;
3659 rel2.relative: 0.0 0.0;
3660 min: BUTTON_POPUP_PADDING_MIN_INC;
3665 part { name: "padding_right_bottom";
3668 description { state: "default" 0.0;
3670 rel1.relative: 1.0 1.0;
3671 min: BUTTON_POPUP_PADDING_MIN_INC;
3676 part { name: "padding_icon_text";
3679 description { state: "default" 0.0; //when only icon or no icon is there
3683 to: "elm.swallow.content";
3685 rel2.to: "elm.swallow.content";
3690 description { state: "icononly" 0.0;
3691 inherit: "default" 0.0;
3693 description { state: "visible" 0.0; //when icon is visible
3694 inherit: "default" 0.0;
3695 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3698 part { name: "elm.swallow.content";
3702 description { state: "default" 0.0;
3707 to: "padding_left_top";
3711 to_x: "padding_left_top";
3712 to_y: "padding_right_bottom";
3716 description { state: "visible" 0.0;
3717 inherit: "default" 0.0;
3721 aspect_preference: VERTICAL;
3723 description { state: "icononly" 0.0;
3724 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
3727 to: "padding_left_top";
3731 to_x: "padding_left_top";
3732 to_y: "padding_right_bottom";
3736 part { name: "elm.text";
3741 description { state: "default" 0.0;
3745 to_x: "padding_icon_text";
3746 to_y: "padding_left_top";
3750 to: "padding_right_bottom";
3752 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
3754 font: "SLP:style=Medium";
3755 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
3757 text_class: "slp_medium";
3760 description { state: "visible" 0.0;
3761 inherit: "default" 0.0;
3763 min: BUTTON_POPUP_TEXT_MIN_INC;
3765 description { state: "clicked" 0.0;
3766 inherit: "default" 0.0;
3769 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
3771 description { state: "disabled" 0.0;
3772 inherit: "default" 0.0;
3775 description { state: "disabled_visible" 0.0;
3776 inherit: "default" 0.0;
3777 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
3779 min: BUTTON_POPUP_TEXT_MIN_INC;
3781 description { state: "focused" 0.0;
3782 inherit: "default" 0.0;
3785 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3788 part { name: "over2";
3791 ignore_flags: ON_HOLD;
3792 description { state: "default" 0.0;
3796 part { name: "over3";
3799 description { state: "default" 0.0;
3803 part { name: "clipper";
3805 description { state: "default" 0.0;
3806 color: 255 255 255 255;
3809 part { name: "disabler";
3811 description { state: "default" 0.0;
3815 description { state: "disabled" 0.0;
3816 inherit: "default" 0.0;
3822 program { name: "button_click";
3823 signal: "mouse,down,1";
3825 action: SIGNAL_EMIT "elm,action,press" "";
3826 after: "button_click_anim";
3828 program { name: "button_click_anim";
3829 action: STATE_SET "clicked" 0.0;
3830 target: "button_image";
3831 after: "text_clicked";
3833 program { name: "text_clicked";
3837 get_state(PART:"elm.text", st, 30, vl);
3838 if (!strcmp(st, "visible"))
3839 set_state(PART:"elm.text", "clicked", 0.0);
3842 program { name: "button_unpress";
3843 action: SIGNAL_EMIT "elm,action,unpress" "";
3845 program { name: "button_mouseout_clicked";
3846 signal: "mouse,up,1";
3851 get_state(PART:"elm.swallow.content", st, 30, vl);
3852 if (strcmp(st, "icononly"))
3854 emit("elm,action,default,text,set", "");
3855 set_state(PART:"elm.text", "visible", 0.0);
3857 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3858 set_state(PART:"button_image", "default", 0.0);
3860 after: button_unpress;
3862 program { name: "touch_snd";
3863 signal: "mouse,clicked,1";
3865 action: PLAY_SAMPLE "touch_sound" 1.0;
3866 after: button_unclick3;
3868 program { name: "button_unclick3";
3869 action: SIGNAL_EMIT "elm,action,click" "";
3871 program { name: "text_show";
3872 signal: "elm,state,text,visible";
3877 get_state(PART:"elm.swallow.content", st, 30, vl);
3878 if (!strcmp(st, "icononly"))
3880 set_state(PART:"elm.swallow.content", "visible", 0.0);
3881 set_state(PART:"padding_icon_text", "visible", 0.0);
3883 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3884 set_state(PART:"elm.text", "visible", 0.0);
3886 set_state(PART:"elm.text", "disabled_visible", 0.0);
3889 program { name: "text_hide";
3890 signal: "elm,state,text,hidden";
3895 get_state(PART:"elm.swallow.content", st, 30, vl);
3896 if (!strcmp(st, "visible"))
3898 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3899 set_state(PART:"padding_icon_text", "icononly", 0.0);
3901 set_state(PART:"elm.text", "default", 0.0);
3904 program { name: "icon_show";
3905 signal: "elm,state,icon,visible";
3910 get_state(PART:"elm.text", st, 30, vl);
3911 if (!strcmp(st, "visible"))
3913 set_state(PART:"elm.swallow.content", "visible", 0.0);
3914 set_state(PART:"padding_icon_text", "visible", 0.0);
3918 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3919 set_state(PART:"padding_icon_text", "icononly", 0.0);
3923 program { name: "icon_hide";
3924 signal: "elm,state,icon,hidden";
3926 action: STATE_SET "default" 0.0;
3927 target: "elm.swallow.content";
3928 target: "padding_icon_text";
3930 program { name: "disable";
3931 signal: "elm,state,disabled";
3933 action: STATE_SET "disabled" 0.0;
3934 target: "button_image";
3936 after: "disable_text";
3938 program { name: "disable_text";
3942 get_state(PART:"elm.text", st, 30, vl);
3943 if (!strcmp(st, "visible"))
3944 set_state(PART:"elm.text", "disabled_visible", 0.0);
3946 set_state(PART:"elm.text", "disabled", 0.0);
3947 set_int(button_state, BUTTON_STATE_DISABLED);
3950 program { name: "enable";
3951 signal: "elm,state,enabled";
3953 action: STATE_SET "default" 0.0;
3954 target: "button_image";
3956 after: "enable_text";
3958 program { name: "enable_text";
3962 get_state(PART:"elm.text", st, 30, vl);
3963 if (!strcmp(st, "disabled_visible"))
3964 set_state(PART:"elm.text", "visible", 0.0);
3966 set_state(PART:"elm.text", "default", 0.0);
3967 set_int(button_state, BUTTON_STATE_ENABLED);
3970 program { name: "focused";
3971 //signal: "elm,action,focus";
3973 action: STATE_SET "focused" 0.0;
3974 target: "button_image";
3977 program { name: "unfocused";
3978 //signal: "elm,action,unfocus";
3980 action: STATE_SET "default" 0.0;
3981 target: "button_image";
3982 after: "unfocus_text";
3984 program { name: "unfocus_text";
3985 action: STATE_SET "visible" 0.0;
3990 ///////////////////////////////////////////////////////////////////////////////////////
3991 group { name: "elm/button/base/popup_button/default/multiline";
3993 image: "00_button_popup_normal.png" COMP;
3994 image: "00_button_popup_press.png" COMP;
3995 image: "00_button_popup_normal_focus.png" COMP;
3996 image: "00_button_popup_dim.png" COMP;
3999 style { name: "btn_popup_multiline_style";
4000 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4007 public button_state = BUTTON_STATE_ENABLED;
4010 part { name: "button_image";
4012 description { state: "default" 0.0;
4013 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4015 normal: "00_button_popup_normal.png";
4016 border: BUTTON_POPUP_BG_BORDER_INC;
4020 description { state: "clicked" 0.0;
4021 inherit: "default" 0.0;
4022 image.normal: "00_button_popup_press.png";
4024 description { state: "disabled" 0.0;
4025 inherit: "default" 0.0;
4026 image.normal: "00_button_popup_dim.png";
4028 description { state: "focused" 0.0;
4029 inherit: "default" 0.0;
4030 image.normal: "00_button_popup_normal_focus.png";
4033 part { name: "padding_left_top";
4037 description { state: "default" 0.0;
4039 rel2.relative: 0.0 0.0;
4040 min: BUTTON_POPUP_PADDING_MIN_INC;
4045 part { name: "padding_right_bottom";
4048 description { state: "default" 0.0;
4050 rel1.relative: 1.0 1.0;
4051 min: BUTTON_POPUP_PADDING_MIN_INC;
4056 part { name: "padding_icon_text";
4059 description { state: "default" 0.0; //when only icon or no icon is there
4063 to: "elm.swallow.content";
4065 rel2.to: "elm.swallow.content";
4070 description { state: "icononly" 0.0;
4071 inherit: "default" 0.0;
4073 description { state: "visible" 0.0; //when icon is visible
4074 inherit: "default" 0.0;
4075 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4078 part { name: "elm.swallow.content";
4082 description { state: "default" 0.0;
4087 to: "padding_left_top";
4091 to_x: "padding_left_top";
4092 to_y: "padding_right_bottom";
4096 description { state: "visible" 0.0;
4097 inherit: "default" 0.0;
4101 aspect_preference: VERTICAL;
4103 description { state: "icononly" 0.0;
4104 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4107 to: "padding_left_top";
4111 to_x: "padding_left_top";
4112 to_y: "padding_right_bottom";
4116 part { name: "elm.text";
4121 description { state: "default" 0.0;
4125 to_x: "padding_icon_text";
4126 to_y: "padding_left_top";
4130 to: "padding_right_bottom";
4132 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4134 style: "btn_popup_multiline_style";
4139 description { state: "visible" 0.0;
4140 inherit: "default" 0.0;
4142 min: BUTTON_POPUP_TEXT_MIN_INC;
4144 description { state: "clicked" 0.0;
4145 inherit: "default" 0.0;
4148 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4150 description { state: "disabled" 0.0;
4151 inherit: "default" 0.0;
4154 description { state: "disabled_visible" 0.0;
4155 inherit: "default" 0.0;
4156 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4158 min: BUTTON_POPUP_TEXT_MIN_INC;
4160 description { state: "focused" 0.0;
4161 inherit: "default" 0.0;
4164 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4167 part { name: "over2";
4170 ignore_flags: ON_HOLD;
4171 description { state: "default" 0.0;
4175 part { name: "over3";
4178 description { state: "default" 0.0;
4182 part { name: "clipper";
4184 description { state: "default" 0.0;
4185 color: 255 255 255 255;
4188 part { name: "disabler";
4190 description { state: "default" 0.0;
4194 description { state: "disabled" 0.0;
4195 inherit: "default" 0.0;
4201 program { name: "button_click";
4202 signal: "mouse,down,1";
4204 action: SIGNAL_EMIT "elm,action,press" "";
4205 after: "button_click_anim";
4207 program { name: "button_click_anim";
4208 action: STATE_SET "clicked" 0.0;
4209 target: "button_image";
4210 after: "text_clicked";
4212 program { name: "text_clicked";
4216 get_state(PART:"elm.text", st, 30, vl);
4217 if (!strcmp(st, "visible"))
4218 set_state(PART:"elm.text", "clicked", 0.0);
4221 program { name: "button_unpress";
4222 action: SIGNAL_EMIT "elm,action,unpress" "";
4224 program { name: "button_mouseout_clicked";
4225 signal: "mouse,up,1";
4230 get_state(PART:"elm.swallow.content", st, 30, vl);
4231 if (strcmp(st, "icononly"))
4233 emit("elm,action,default,text,set", "");
4234 set_state(PART:"elm.text", "visible", 0.0);
4236 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4237 set_state(PART:"button_image", "default", 0.0);
4239 after: button_unpress;
4241 program { name: "touch_snd";
4242 signal: "mouse,clicked,1";
4244 action: PLAY_SAMPLE "touch_sound" 1.0;
4245 after: button_unclick3;
4247 program { name: "button_unclick3";
4248 action: SIGNAL_EMIT "elm,action,click" "";
4250 program { name: "text_show";
4251 signal: "elm,state,text,visible";
4256 get_state(PART:"elm.swallow.content", st, 30, vl);
4257 if (!strcmp(st, "icononly"))
4259 set_state(PART:"elm.swallow.content", "visible", 0.0);
4260 set_state(PART:"padding_icon_text", "visible", 0.0);
4262 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4263 set_state(PART:"elm.text", "visible", 0.0);
4265 set_state(PART:"elm.text", "disabled_visible", 0.0);
4268 program { name: "text_hide";
4269 signal: "elm,state,text,hidden";
4274 get_state(PART:"elm.swallow.content", st, 30, vl);
4275 if (!strcmp(st, "visible"))
4277 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4278 set_state(PART:"padding_icon_text", "icononly", 0.0);
4280 set_state(PART:"elm.text", "default", 0.0);
4283 program { name: "icon_show";
4284 signal: "elm,state,icon,visible";
4289 get_state(PART:"elm.text", st, 30, vl);
4290 if (!strcmp(st, "visible"))
4292 set_state(PART:"elm.swallow.content", "visible", 0.0);
4293 set_state(PART:"padding_icon_text", "visible", 0.0);
4297 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4298 set_state(PART:"padding_icon_text", "icononly", 0.0);
4302 program { name: "icon_hide";
4303 signal: "elm,state,icon,hidden";
4305 action: STATE_SET "default" 0.0;
4306 target: "elm.swallow.content";
4307 target: "padding_icon_text";
4309 program { name: "disable";
4310 signal: "elm,state,disabled";
4312 action: STATE_SET "disabled" 0.0;
4313 target: "button_image";
4315 after: "disable_text";
4317 program { name: "disable_text";
4321 get_state(PART:"elm.text", st, 30, vl);
4322 if (!strcmp(st, "visible"))
4323 set_state(PART:"elm.text", "disabled_visible", 0.0);
4325 set_state(PART:"elm.text", "disabled", 0.0);
4326 set_int(button_state, BUTTON_STATE_DISABLED);
4329 program { name: "enable";
4330 signal: "elm,state,enabled";
4332 action: STATE_SET "default" 0.0;
4333 target: "button_image";
4335 after: "enable_text";
4337 program { name: "enable_text";
4341 get_state(PART:"elm.text", st, 30, vl);
4342 if (!strcmp(st, "disabled_visible"))
4343 set_state(PART:"elm.text", "visible", 0.0);
4345 set_state(PART:"elm.text", "default", 0.0);
4346 set_int(button_state, BUTTON_STATE_ENABLED);
4349 program { name: "focused";
4350 //signal: "elm,action,focus";
4352 action: STATE_SET "focused" 0.0;
4353 target: "button_image";
4356 program { name: "unfocused";
4357 //signal: "elm,action,unfocus";
4359 action: STATE_SET "default" 0.0;
4360 target: "button_image";
4361 after: "unfocus_text";
4363 program { name: "unfocus_text";
4364 action: STATE_SET "visible" 0.0;
4370 ///////////////////////////////////////////////////////////////////////////////////////
4371 #define BUTTON_CIRCLE_STYLES(style_name, circle_normal, circle_press, image_normal, image_press, min_width, min_height) \
4372 group { name: "elm/button/base/"style_name; \
4374 image: circle_normal COMP; \
4375 image: circle_press COMP; \
4376 image: image_normal COMP; \
4377 image: image_press COMP; \
4380 part { name: "button_image"; \
4382 description { state: "default" 0.0; \
4383 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4384 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4385 image.normal: circle_normal; \
4386 color: 255 255 255 255; \
4389 state: "clicked" 0.0; \
4390 inherit: "default" 0.0; \
4391 image.normal: circle_press; \
4394 state: "disabled" 0.0; \
4395 inherit: "default" 0.0; \
4396 color: 255 255 255 128; \
4399 part { name: "button_center_part"; \
4401 description { state: "default" 0.0; \
4402 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4403 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4404 image.normal: image_normal; \
4405 color: 255 255 255 255; \
4408 state: "clicked" 0.0; \
4409 inherit: "default" 0.0; \
4410 image.normal: image_press; \
4413 state: "disabled" 0.0; \
4414 inherit: "default" 0.0; \
4415 color: 255 255 255 128; \
4418 part { name: "over1"; \
4420 ignore_flags: ON_HOLD; \
4421 description { state: "default" 0.0; \
4423 min: min_width min_height; \
4426 part { name: "over2"; \
4428 description { state: "default" 0.0; \
4432 part { name: "disabler"; \
4434 description { state: "default" 0.0; \
4438 description { state: "disabled" 0.0; \
4439 inherit: "default" 0.0; \
4445 program { name: "button_click"; \
4446 signal: "mouse,down,1"; \
4448 action: SIGNAL_EMIT "elm,action,press" ""; \
4449 after: "button_click_anim"; \
4451 program { name: "button_click_anim"; \
4452 action: STATE_SET "clicked" 0.0; \
4453 target: "button_image"; \
4454 target: "button_center_part"; \
4456 program { name: "button_unclick"; \
4457 signal: "mouse,up,1"; \
4459 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4460 after: "button_unclick_anim"; \
4462 program { name: "button_unclick_anim"; \
4463 action: STATE_SET "default" 0.0; \
4464 target: "button_image"; \
4465 target: "button_center_part"; \
4467 program { name: "touch_snd"; \
4468 signal: "mouse,clicked,1"; \
4470 action: PLAY_SAMPLE "touch_sound" 1.0; \
4471 after: button_unclick3; \
4473 program { name: "button_unclick3"; \
4474 action: SIGNAL_EMIT "elm,action,click" ""; \
4476 program { name: "disable"; \
4477 signal: "elm,state,disabled"; \
4479 action: STATE_SET "disabled" 0.0; \
4480 target: "disabler"; \
4481 target: "button_image"; \
4482 target: "button_center_part"; \
4484 program { name: "enable"; \
4485 signal: "elm,state,enabled"; \
4487 action: STATE_SET "default" 0.0; \
4488 target: "disabler"; \
4489 target: "button_image"; \
4490 target: "button_center_part"; \
4495 ///////////////////////////////////////////////////////////////////////////////////////
4496 BUTTON_CIRCLE_STYLES("reveal", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4498 ///////////////////////////////////////////////////////////////////////////////////////
4499 BUTTON_CIRCLE_STYLES("reveal/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4501 ///////////////////////////////////////////////////////////////////////////////////////
4502 BUTTON_CIRCLE_STYLES("expand/closed", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4504 ///////////////////////////////////////////////////////////////////////////////////////
4505 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4507 ///////////////////////////////////////////////////////////////////////////////////////
4508 BUTTON_CIRCLE_STYLES("expand/opened", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4510 ///////////////////////////////////////////////////////////////////////////////////////
4511 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4513 ///////////////////////////////////////////////////////////////////////////////////////
4514 BUTTON_CIRCLE_STYLES("info", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4516 ///////////////////////////////////////////////////////////////////////////////////////
4517 BUTTON_CIRCLE_STYLES("info/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4519 ///////////////////////////////////////////////////////////////////////////////////////
4520 BUTTON_CIRCLE_STYLES("rename", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4522 ///////////////////////////////////////////////////////////////////////////////////////
4523 BUTTON_CIRCLE_STYLES("rename/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4525 ///////////////////////////////////////////////////////////////////////////////////////
4526 BUTTON_CIRCLE_STYLES("call", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4528 ///////////////////////////////////////////////////////////////////////////////////////
4529 BUTTON_CIRCLE_STYLES("call/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4531 ///////////////////////////////////////////////////////////////////////////////////////
4532 BUTTON_CIRCLE_STYLES("warning", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4534 ///////////////////////////////////////////////////////////////////////////////////////
4535 BUTTON_CIRCLE_STYLES("warning/extended", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4537 ///////////////////////////////////////////////////////////////////////////////////////
4538 BUTTON_CIRCLE_STYLES("plus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4540 ///////////////////////////////////////////////////////////////////////////////////////
4541 BUTTON_CIRCLE_STYLES("plus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4543 ///////////////////////////////////////////////////////////////////////////////////////
4544 BUTTON_CIRCLE_STYLES("minus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4546 ///////////////////////////////////////////////////////////////////////////////////////
4547 BUTTON_CIRCLE_STYLES("minus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4549 ///////////////////////////////////////////////////////////////////////////////////////
4550 BUTTON_CIRCLE_STYLES("cancel", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4552 ///////////////////////////////////////////////////////////////////////////////////////
4553 BUTTON_CIRCLE_STYLES("cancel/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4555 ///////////////////////////////////////////////////////////////////////////////////////
4556 BUTTON_CIRCLE_STYLES("send", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4558 ///////////////////////////////////////////////////////////////////////////////////////
4559 BUTTON_CIRCLE_STYLES("send/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4560 ///////////////////////////////////////////////////////////////////////////////////////
4562 group { name: "elm/button/base/circle/empty";
4564 image: "00_btn_circle_bg_normal.png" COMP;
4565 image: "00_btn_circle_bg_press.png" COMP;
4568 part { name: "button_image";
4570 description { state: "default" 0.0;
4571 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4572 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4574 image.normal: "00_btn_circle_bg_normal.png";
4575 color: 255 255 255 255;
4577 description { state: "clicked" 0.0;
4578 inherit: "default" 0.0;
4579 image.normal: "00_btn_circle_bg_press.png";
4581 description { state: "disabled" 0.0;
4582 inherit: "default" 0.0;
4583 color: 255 255 255 128;
4586 part { name: "elm.swallow.content";
4589 description { state: "default" 0.0;
4590 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
4591 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
4593 color: 255 255 255 255;
4596 state: "disabled" 0.0;
4597 inherit: "default" 0.0;
4598 color: 255 255 255 128;
4601 part { name: "over1";
4603 ignore_flags: ON_HOLD;
4604 description { state: "default" 0.0;
4608 part { name: "over2";
4610 description { state: "default" 0.0;
4614 part { name: "disabler";
4616 description { state: "default" 0.0;
4620 description { state: "disabled" 0.0;
4621 inherit: "default" 0.0;
4627 program { name: "button_click";
4628 signal: "mouse,down,1";
4630 action: SIGNAL_EMIT "elm,action,press" "";
4631 after: "button_click_anim";
4633 program { name: "button_click_anim";
4634 action: STATE_SET "clicked" 0.0;
4635 target: "button_image";
4637 program { name: "touch_snd";
4638 signal: "mouse,clicked,1";
4640 action: PLAY_SAMPLE "touch_sound" 1.0;
4641 after: button_unclick2;
4643 program { name: "button_unclick2";
4644 action: SIGNAL_EMIT "elm,action,click" "";
4646 program { name: "button_unclick";
4647 signal: "mouse,up,1";
4649 action: SIGNAL_EMIT "elm,action,unpress" "";
4650 after: "button_unclick_anim";
4652 program { name: "button_unclick_anim";
4653 action: STATE_SET "default" 0.0;
4654 target: "button_image";
4656 program { name: "disable";
4657 signal: "elm,state,disabled";
4659 action: STATE_SET "disabled" 0.0;
4661 target: "button_image";
4663 program { name: "enable";
4664 signal: "elm,state,enabled";
4666 action: STATE_SET "default" 0.0;
4668 target: "button_image";
4670 program { name: "icon_show";
4671 signal: "elm,state,icon,visible";
4673 action: STATE_SET "visible" 0.0;
4674 target: "elm.swallow.content";
4676 program { name: "icon_hide";
4677 signal: "elm,state,icon,hidden";
4679 action: STATE_SET "default" 0.0;
4680 target: "elm.swallow.content";
4685 ///////////////////////////////////////////////////////////////////////////////////////
4686 #define BUTTON_EDIT_STYLES(style_name, edit_normal, edit_press, image_normal, image_press, min_width, min_height) \
4687 group { name: "elm/button/base/contacts/"style_name; \
4688 alias: "elm/button/base/"style_name; \
4690 image: image_normal COMP; \
4691 image: image_press COMP; \
4692 image: edit_normal COMP; \
4693 image: edit_press COMP; \
4694 image: "00_button_edit_dim.png" COMP; \
4695 image: "00_button_edit_focus.png" COMP; \
4698 part { name: "button_image"; \
4700 description { state: "default" 0.0; \
4701 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
4702 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
4704 normal: edit_normal; \
4705 border: BUTTON_EDIT_STYLE_BORDER_INC; \
4710 state: "clicked" 0.0; \
4711 inherit: "default" 0.0; \
4712 image.normal: edit_press; \
4715 state: "disabled" 0.0; \
4716 inherit: "default" 0.0; \
4717 image.normal: "00_button_edit_dim.png"; \
4720 state: "focused" 0.0; \
4721 inherit: "default" 0.0; \
4722 image.normal: "00_button_edit_focus.png"; \
4725 part { name: "button_center_part"; \
4728 description { state: "default" 0.0; \
4729 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
4730 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
4732 normal: image_normal; \
4733 border: BUTTON_EDIT_STYLE_BORDER_INC; \
4738 state: "clicked" 0.0; \
4739 inherit: "default" 0.0; \
4740 image.normal: image_press; \
4743 part { name: "over1"; \
4746 ignore_flags: ON_HOLD; \
4747 description { state: "default" 0.0; \
4749 min: min_width min_height; \
4752 part { name: "over2"; \
4754 description { state: "default" 0.0; \
4758 part { name: "disabler"; \
4760 description { state: "default" 0.0; \
4764 description { state: "disabled" 0.0; \
4765 inherit: "default" 0.0; \
4771 program { name: "button_click"; \
4772 signal: "mouse,down,1"; \
4774 action: SIGNAL_EMIT "elm,action,press" ""; \
4775 after: "button_click_anim"; \
4777 program { name: "button_click_anim"; \
4778 action: STATE_SET "clicked" 0.0; \
4779 target: "button_image"; \
4780 target: "button_center_part"; \
4782 program { name: "button_unclick"; \
4783 signal: "mouse,up,1"; \
4785 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4786 after: "button_unclick_anim"; \
4788 program { name: "button_unclick_anim"; \
4789 action: STATE_SET "default" 0.0; \
4790 target: "button_image"; \
4791 target: "button_center_part"; \
4793 program { name: "touch_snd"; \
4794 signal: "mouse,clicked,1"; \
4796 action: PLAY_SAMPLE "touch_sound" 1.0; \
4797 after: button_unclick3; \
4799 program { name: "button_unclick3"; \
4800 action: SIGNAL_EMIT "elm,action,click" ""; \
4802 program { name: "disable"; \
4803 signal: "elm,state,disabled"; \
4805 action: STATE_SET "disabled" 0.0; \
4806 target: "disabler"; \
4807 target: "button_image"; \
4809 program { name: "enable"; \
4810 signal: "elm,state,enabled"; \
4812 action: STATE_SET "default" 0.0; \
4813 target: "disabler"; \
4814 target: "button_image"; \
4818 ///////////////////////////////////////////////////////////////////////////////////////
4819 BUTTON_EDIT_STYLES("icon_plus", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
4821 ///////////////////////////////////////////////////////////////////////////////////////
4822 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
4824 ///////////////////////////////////////////////////////////////////////////////////////
4825 BUTTON_EDIT_STYLES("icon_minus", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
4827 ///////////////////////////////////////////////////////////////////////////////////////
4828 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
4830 ///////////////////////////////////////////////////////////////////////////////////////
4831 BUTTON_EDIT_STYLES("icon_expand", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
4833 ///////////////////////////////////////////////////////////////////////////////////////
4834 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
4836 ///////////////////////////////////////////////////////////////////////////////////////
4837 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
4839 ///////////////////////////////////////////////////////////////////////////////////////
4840 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
4842 ///////////////////////////////////////////////////////////////////////////////////////
4843 group { name: "elm/button/base/contacts/delete";
4845 image: "00_button_edit_Delete.png" COMP;
4846 image: "00_button_edit_Delete_press.png" COMP;
4847 image: "00_button_edit_dim.png" COMP;
4848 image: "00_button_edit_focus.png" COMP;
4851 public button_state = BUTTON_STATE_ENABLED;
4854 part { name: "button_image";
4856 description { state: "default" 0.0;
4857 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
4859 normal: "00_button_edit_Delete.png";
4860 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
4864 description { state: "clicked" 0.0;
4865 inherit: "default" 0.0;
4866 image.normal: "00_button_edit_Delete_press.png";
4868 description { state: "disabled" 0.0;
4869 inherit: "default" 0.0;
4870 image.normal: "00_button_edit_dim.png";
4872 description { state: "focused" 0.0;
4873 inherit: "default" 0.0;
4874 image.normal: "00_button_edit_focus.png";
4877 part { name: "padding_left_top";
4881 description { state: "default" 0.0;
4883 rel2.relative: 0.0 0.0;
4884 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
4889 part { name: "padding_right_bottom";
4893 description { state: "default" 0.0;
4895 rel1.relative: 1.0 1.0;
4896 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
4901 part { name: "padding_icon_text";
4905 description { state: "default" 0.0; //when only icon or no icon is there
4909 to: "elm.swallow.content";
4911 rel2.to: "elm.swallow.content";
4916 description { state: "icononly" 0.0;
4917 inherit: "default" 0.0;
4919 description { state: "visible" 0.0; //when icon is visible
4920 inherit: "default" 0.0;
4921 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4924 part { name: "elm.swallow.content";
4928 description { state: "default" 0.0;
4933 to: "padding_left_top";
4937 to_x: "padding_left_top";
4938 to_y: "padding_right_bottom";
4942 description { state: "visible" 0.0;
4947 to: "padding_left_top";
4951 to_x: "padding_left_top";
4952 to_y: "padding_right_bottom";
4955 aspect_preference: VERTICAL;
4957 description { state: "icononly" 0.0;
4958 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
4961 to: "padding_left_top";
4965 to: "padding_right_bottom";
4968 aspect_preference: VERTICAL;
4971 part { name: "elm.text";
4976 description { state: "default" 0.0;
4979 to_x: "padding_icon_text";
4980 to_y: "padding_left_top";
4984 to: "padding_right_bottom";
4986 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
4988 font: "SLP:style=Medium";
4989 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
4993 text_class: "slp_medium";
4996 description { state: "visible" 0.0;
4997 inherit: "default" 0.0;
4999 description { state: "clicked" 0.0;
5000 inherit: "default" 0.0;
5001 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5003 description { state: "disabled" 0.0;
5004 inherit: "default" 0.0;
5007 description { state: "disabled_visible" 0.0;
5008 inherit: "default" 0.0;
5009 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5011 description { state: "focused" 0.0;
5012 inherit: "default" 0.0;
5014 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5017 part { name: "over2";
5020 ignore_flags: ON_HOLD;
5021 description { state: "default" 0.0;
5025 part { name: "over3";
5028 description { state: "default" 0.0;
5032 part { name: "clipper";
5034 description { state: "default" 0.0;
5035 color: 255 255 255 255;
5038 part { name: "disabler";
5040 description { state: "default" 0.0;
5044 description { state: "disabled" 0.0;
5045 inherit: "default" 0.0;
5051 program { name: "button_click";
5052 signal: "mouse,down,1";
5054 action: SIGNAL_EMIT "elm,action,press" "";
5055 after: "button_click_anim";
5057 program { name: "button_click_anim";
5058 action: STATE_SET "clicked" 0.0;
5059 target: "button_image";
5060 after: "text_clicked";
5062 program { name: "text_clicked";
5066 get_state(PART:"elm.text", st, 30, vl);
5067 if (!strcmp(st, "visible"))
5068 set_state(PART:"elm.text", "clicked", 0.0);
5071 program { name: "button_unpress";
5072 action: SIGNAL_EMIT "elm,action,unpress" "";
5074 program { name: "button_mouseout_clicked";
5075 signal: "mouse,up,1";
5080 get_state(PART:"elm.swallow.content", st, 30, vl);
5081 if (strcmp(st, "icononly"))
5083 emit("elm,action,default,text,set", "");
5084 set_state(PART:"elm.text", "visible", 0.0);
5086 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5087 set_state(PART:"button_image", "default", 0.0);
5089 after: button_unpress;
5091 program { name: "touch_snd";
5092 signal: "mouse,clicked,1";
5094 action: PLAY_SAMPLE "touch_sound" 1.0;
5095 after: button_unclick3;
5097 program { name: "button_unclick3";
5098 action: SIGNAL_EMIT "elm,action,click" "";
5100 program { name: "text_show";
5101 signal: "elm,state,text,visible";
5106 get_state(PART:"elm.swallow.content", st, 30, vl);
5107 if (!strcmp(st, "icononly"))
5109 set_state(PART:"elm.swallow.content", "visible", 0.0);
5110 set_state(PART:"padding_icon_text", "visible", 0.0);
5112 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5113 set_state(PART:"elm.text", "visible", 0.0);
5115 set_state(PART:"elm.text", "disabled_visible", 0.0);
5118 program { name: "text_hide";
5119 signal: "elm,state,text,hidden";
5124 get_state(PART:"elm.swallow.content", st, 30, vl);
5125 if (!strcmp(st, "visible"))
5127 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5128 set_state(PART:"padding_icon_text", "icononly", 0.0);
5130 set_state(PART:"elm.text", "default", 0.0);
5133 program { name: "icon_show";
5134 signal: "elm,state,icon,visible";
5139 get_state(PART:"elm.text", st, 30, vl);
5140 if (!strcmp(st, "visible"))
5142 set_state(PART:"elm.swallow.content", "visible", 0.0);
5143 set_state(PART:"padding_icon_text", "visible", 0.0);
5147 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5148 set_state(PART:"padding_icon_text", "icononly", 0.0);
5152 program { name: "icon_hide";
5153 signal: "elm,state,icon,hidden";
5155 action: STATE_SET "default" 0.0;
5156 target: "elm.swallow.content";
5157 target: "padding_icon_text";
5159 program { name: "disable";
5160 signal: "elm,state,disabled";
5162 action: STATE_SET "disabled" 0.0;
5163 target: "button_image";
5165 after: "disable_text";
5167 program { name: "disable_text";
5171 get_state(PART:"elm.text", st, 30, vl);
5172 if (!strcmp(st, "visible"))
5173 set_state(PART:"elm.text", "disabled_visible", 0.0);
5175 set_state(PART:"elm.text", "disabled", 0.0);
5176 set_int(button_state, BUTTON_STATE_DISABLED);
5179 program { name: "enable";
5180 signal: "elm,state,enabled";
5182 action: STATE_SET "default" 0.0;
5183 target: "button_image";
5185 after: "enable_text";
5187 program { name: "enable_text";
5191 get_state(PART:"elm.text", st, 30, vl);
5192 if (!strcmp(st, "disabled_visible"))
5193 set_state(PART:"elm.text", "visible", 0.0);
5195 set_state(PART:"elm.text", "default", 0.0);
5196 set_int(button_state, BUTTON_STATE_ENABLED);
5199 program { name: "focused";
5200 //signal: "elm,action,focus";
5202 action: STATE_SET "focused" 0.0;
5203 target: "button_image";
5206 program { name: "unfocused";
5207 //signal: "elm,action,unfocus";
5209 action: STATE_SET "default" 0.0;
5210 target: "button_image";
5211 after: "unfocus_text";
5213 program { name: "unfocus_text";
5214 action: STATE_SET "visible" 0.0;
5220 ///////////////////////////////////////////////////////////////////////////////////////
5221 group { name: "elm/button/base/multiline";
5222 alias: "elm/button/base/text_only/multiline";
5224 image: "00_button_04_normal.png" COMP;
5225 image: "00_button_04_press.png" COMP;
5226 image: "00_button_04_dim.png" COMP;
5227 image: "00_button_04_normal_focus.png" COMP;
5230 public button_state = BUTTON_STATE_ENABLED;
5233 style { name: "btn_multiline_style";
5234 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5241 part { name: "button_image";
5243 description { state: "default" 0.0;
5246 normal: "00_button_04_normal.png";
5251 description { state: "clicked" 0.0;
5252 inherit: "default" 0.0;
5253 image.normal: "00_button_04_press.png";
5255 description { state: "disabled" 0.0;
5256 inherit: "default" 0.0;
5257 image.normal: "00_button_04_dim.png";
5259 description { state: "focused" 0.0;
5260 inherit: "default" 0.0;
5261 image.normal: "00_button_04_normal_focus.png";
5264 part { name: "padding_left_top";
5268 description { state: "default" 0.0;
5270 rel2.relative: 0.0 0.0;
5276 part { name: "padding_right_bottom";
5280 description { state: "default" 0.0;
5282 rel1.relative: 1.0 1.0;
5288 part { name: "icon_rect";
5292 description { state: "default" 0.0;
5298 to_x: "elm.swallow.content";
5299 to_y: "padding_left_top";
5303 to_x: "elm.swallow.content";
5304 to_y: "padding_right_bottom";
5310 part { name: "padding_icon_text";
5314 description { state: "default" 0.0; //when only icon or no icon is there
5320 rel2.to: "icon_rect";
5325 description { state: "icononly" 0.0;
5326 inherit: "default" 0.0;
5328 description { state: "visible" 0.0; //when icon is visible
5334 rel2.to: "icon_rect";
5340 part { name: "elm.swallow.content";
5344 description { state: "default" 0.0;
5349 to: "padding_left_top";
5353 to_x: "padding_left_top";
5354 to_y: "padding_right_bottom";
5358 description { state: "visible" 0.0;
5363 to: "padding_left_top";
5367 to_x: "padding_left_top";
5368 to_y: "padding_right_bottom";
5371 aspect_preference: VERTICAL;
5373 description { state: "icononly" 0.0;
5377 to: "padding_left_top";
5381 to: "padding_right_bottom";
5384 aspect_preference: VERTICAL;
5387 part { name: "elm.text";
5392 description { state: "default" 0.0;
5396 to_x: "padding_icon_text";
5397 to_y: "padding_left_top";
5401 to: "padding_right_bottom";
5403 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5405 style: "btn_multiline_style";
5410 description { state: "visible" 0.0;
5411 inherit: "default" 0.0;
5415 description { state: "clicked" 0.0;
5416 inherit: "default" 0.0;
5419 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5421 description { state: "disabled" 0.0;
5422 inherit: "default" 0.0;
5425 description { state: "disabled_visible" 0.0;
5426 inherit: "default" 0.0;
5427 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5431 description { state: "focused" 0.0;
5432 inherit: "default" 0.0;
5435 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5438 part { name: "over2";
5441 ignore_flags: ON_HOLD;
5442 description { state: "default" 0.0;
5446 part { name: "over3";
5449 description { state: "default" 0.0;
5453 part { name: "clipper";
5455 description { state: "default" 0.0;
5456 color: 255 255 255 255;
5459 part { name: "disabler";
5461 description { state: "default" 0.0;
5465 description { state: "disabled" 0.0;
5466 inherit: "default" 0.0;
5472 program { name: "button_click";
5473 signal: "mouse,down,1";
5475 action: SIGNAL_EMIT "elm,action,press" "";
5476 after: "button_click_anim";
5478 program { name: "button_click_anim";
5479 action: STATE_SET "clicked" 0.0;
5480 target: "button_image";
5481 after: "text_clicked";
5483 program { name: "text_clicked";
5487 get_state(PART:"elm.text", st, 30, vl);
5488 if (!strcmp(st, "visible"))
5489 set_state(PART:"elm.text", "clicked", 0.0);
5492 program { name: "button_unpress";
5493 action: SIGNAL_EMIT "elm,action,unpress" "";
5495 program { name: "button_mouseout_clicked";
5496 signal: "mouse,up,1";
5501 get_state(PART:"elm.swallow.content", st, 30, vl);
5502 if (strcmp(st, "icononly"))
5504 emit("elm,action,default,text,set", "");
5505 set_state(PART:"elm.text", "visible", 0.0);
5507 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5508 set_state(PART:"button_image", "default", 0.0);
5510 after: button_unpress;
5512 program { name: "touch_snd";
5513 signal: "mouse,clicked,1";
5515 action: PLAY_SAMPLE "touch_sound" 1.0;
5516 after: button_unclick3;
5518 program { name: "button_unclick3";
5519 action: SIGNAL_EMIT "elm,action,click" "";
5521 program { name: "text_show";
5522 signal: "elm,state,text,visible";
5527 get_state(PART:"elm.swallow.content", st, 30, vl);
5528 if (!strcmp(st, "icononly"))
5530 set_state(PART:"elm.swallow.content", "visible", 0.0);
5531 set_state(PART:"padding_icon_text", "visible", 0.0);
5533 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5534 set_state(PART:"elm.text", "visible", 0.0);
5536 set_state(PART:"elm.text", "disabled_visible", 0.0);
5539 program { name: "text_hide";
5540 signal: "elm,state,text,hidden";
5545 get_state(PART:"elm.swallow.content", st, 30, vl);
5546 if (!strcmp(st, "visible"))
5548 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5549 set_state(PART:"padding_icon_text", "icononly", 0.0);
5551 set_state(PART:"elm.text", "default", 0.0);
5554 program { name: "icon_show";
5555 signal: "elm,state,icon,visible";
5560 get_state(PART:"elm.text", st, 30, vl);
5561 if (!strcmp(st, "visible"))
5563 set_state(PART:"elm.swallow.content", "visible", 0.0);
5564 set_state(PART:"padding_icon_text", "visible", 0.0);
5568 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5569 set_state(PART:"padding_icon_text", "icononly", 0.0);
5573 program { name: "icon_hide";
5574 signal: "elm,state,icon,hidden";
5576 action: STATE_SET "default" 0.0;
5577 target: "elm.swallow.content";
5578 target: "padding_icon_text";
5580 program { name: "disable";
5581 signal: "elm,state,disabled";
5583 action: STATE_SET "disabled" 0.0;
5584 target: "button_image";
5586 after: "disable_text";
5588 program { name: "disable_text";
5592 get_state(PART:"elm.text", st, 30, vl);
5593 if (!strcmp(st, "visible"))
5594 set_state(PART:"elm.text", "disabled_visible", 0.0);
5596 set_state(PART:"elm.text", "disabled", 0.0);
5597 set_int(button_state, BUTTON_STATE_DISABLED);
5600 program { name: "enable";
5601 signal: "elm,state,enabled";
5603 action: STATE_SET "default" 0.0;
5604 target: "button_image";
5606 after: "enable_text";
5608 program { name: "enable_text";
5612 get_state(PART:"elm.text", st, 30, vl);
5613 if (!strcmp(st, "disabled_visible"))
5614 set_state(PART:"elm.text", "visible", 0.0);
5616 set_state(PART:"elm.text", "default", 0.0);
5617 set_int(button_state, BUTTON_STATE_ENABLED);
5620 program { name: "focused";
5621 //signal: "elm,action,focus";
5623 action: STATE_SET "focused" 0.0;
5624 target: "button_image";
5627 program { name: "unfocused";
5628 //signal: "elm,action,unfocus";
5630 action: STATE_SET "default" 0.0;
5631 target: "button_image";
5632 after: "unfocus_text";
5634 program { name: "unfocus_text";
5635 action: STATE_SET "visible" 0.0;
5641 ///////////////////////////////////////////////////////////////////////////////////////
5642 group { name: "elm/button/base/default";
5643 alias: "elm/button/base/searchbar/default";
5645 image: "00_button_01_normal.png" COMP;
5646 image: "00_button_01_normal_press.png" COMP;
5647 image: "00_button_01_normal_dim.png" COMP;
5648 image: "00_button_01_normal_Focus.png" COMP;
5651 public button_state = BUTTON_STATE_ENABLED;
5654 part { name: "button_image";
5656 description { state: "default" 0.0;
5657 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
5659 normal: "00_button_01_normal.png";
5660 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
5664 description { state: "clicked" 0.0;
5665 inherit: "default" 0.0;
5666 image.normal: "00_button_01_normal_press.png";
5668 description { state: "disabled" 0.0;
5669 inherit: "default" 0.0;
5670 image.normal: "00_button_01_normal_dim.png";
5672 description { state: "focused" 0.0;
5673 inherit: "default" 0.0;
5674 image.normal: "00_button_01_normal_Focus.png";
5677 part { name: "padding_left_top";
5681 description { state: "default" 0.0;
5683 rel2.relative: 0.0 0.0;
5684 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
5689 part { name: "padding_right_bottom";
5693 description { state: "default" 0.0;
5695 rel1.relative: 1.0 1.0;
5696 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
5701 part { name: "padding_icon_text";
5705 description { state: "default" 0.0; //when only icon or no icon is there
5710 to: "elm.swallow.content";
5712 rel2.to: "elm.swallow.content";
5716 description { state: "icononly" 0.0;
5717 inherit: "default" 0.0;
5719 description { state: "visible" 0.0; //when icon is visible
5720 inherit: "default" 0.0;
5721 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5724 part { name: "elm.swallow.content";
5728 description { state: "default" 0.0;
5733 to: "padding_left_top";
5737 to_x: "padding_left_top";
5738 to_y: "padding_right_bottom";
5742 description { state: "visible" 0.0;
5747 to: "padding_left_top";
5751 to_x: "padding_left_top";
5752 to_y: "padding_right_bottom";
5755 aspect_preference: VERTICAL;
5757 description { state: "icononly" 0.0;
5758 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
5761 to_x: "padding_left_top";
5765 to_x: "padding_right_bottom";
5768 aspect_preference: VERTICAL;
5771 part { name: "elm.text";
5776 description { state: "default" 0.0;
5781 to_x: "padding_icon_text";
5782 to_y: "padding_left_top";
5786 to: "padding_right_bottom";
5788 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
5790 font: "SLP:style=Medium";
5791 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
5793 text_class: "slp_medium";
5796 description { state: "visible" 0.0;
5797 inherit: "default" 0.0;
5799 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
5801 description { state: "clicked" 0.0;
5802 inherit: "default" 0.0;
5804 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
5805 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
5807 description { state: "disabled" 0.0;
5808 inherit: "default" 0.0;
5810 description { state: "disabled_visible" 0.0;
5811 inherit: "default" 0.0;
5812 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
5814 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
5816 description { state: "focused" 0.0;
5817 inherit: "default" 0.0;
5820 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
5823 part { name: "over2";
5826 ignore_flags: ON_HOLD;
5827 description { state: "default" 0.0;
5831 part { name: "over3";
5834 description { state: "default" 0.0;
5838 part { name: "clipper";
5840 description { state: "default" 0.0;
5841 color: 255 255 255 255;
5844 part { name: "disabler";
5846 description { state: "default" 0.0;
5850 description { state: "disabled" 0.0;
5851 inherit: "default" 0.0;
5857 program { name: "button_click";
5858 signal: "mouse,down,1";
5860 action: SIGNAL_EMIT "elm,action,press" "";
5861 after: "button_click_anim";
5863 program { name: "button_click_anim";
5864 action: STATE_SET "clicked" 0.0;
5865 target: "button_image";
5866 after: "text_clicked";
5868 program { name: "text_clicked";
5872 get_state(PART:"elm.text", st, 30, vl);
5873 if (!strcmp(st, "visible"))
5874 set_state(PART:"elm.text", "clicked", 0.0);
5877 program { name: "button_unpress";
5878 action: SIGNAL_EMIT "elm,action,unpress" "";
5880 program { name: "button_mouseout_clicked";
5881 signal: "mouse,up,1";
5886 get_state(PART:"elm.swallow.content", st, 30, vl);
5887 if (strcmp(st, "icononly"))
5889 emit("elm,action,default,text,set", "");
5890 set_state(PART:"elm.text", "visible", 0.0);
5892 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5893 set_state(PART:"button_image", "default", 0.0);
5895 after: button_unpress;
5897 program { name: "touch_snd";
5898 signal: "mouse,clicked,1";
5900 action: PLAY_SAMPLE "touch_sound" 1.0;
5901 after: button_unclick3;
5903 program { name: "button_unclick3";
5904 action: SIGNAL_EMIT "elm,action,click" "";
5906 program { name: "text_show";
5907 signal: "elm,state,text,visible";
5912 get_state(PART:"elm.swallow.content", st, 30, vl);
5913 if (!strcmp(st, "icononly"))
5915 set_state(PART:"elm.swallow.content", "visible", 0.0);
5916 set_state(PART:"padding_icon_text", "visible", 0.0);
5918 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5919 set_state(PART:"elm.text", "visible", 0.0);
5921 set_state(PART:"elm.text", "disabled_visible", 0.0);
5924 program { name: "text_hide";
5925 signal: "elm,state,text,hidden";
5930 get_state(PART:"elm.swallow.content", st, 30, vl);
5931 if (!strcmp(st, "visible"))
5933 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5934 set_state(PART:"padding_icon_text", "icononly", 0.0);
5936 set_state(PART:"elm.text", "default", 0.0);
5939 program { name: "icon_show";
5940 signal: "elm,state,icon,visible";
5945 get_state(PART:"elm.text", st, 30, vl);
5946 if (!strcmp(st, "visible"))
5948 set_state(PART:"elm.swallow.content", "visible", 0.0);
5949 set_state(PART:"padding_icon_text", "visible", 0.0);
5953 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5954 set_state(PART:"padding_icon_text", "icononly", 0.0);
5958 program { name: "icon_hide";
5959 signal: "elm,state,icon,hidden";
5961 action: STATE_SET "default" 0.0;
5962 target: "elm.swallow.content";
5963 target: "padding_icon_text";
5965 program { name: "disable";
5966 signal: "elm,state,disabled";
5968 action: STATE_SET "disabled" 0.0;
5969 target: "button_image";
5971 after: "disable_text";
5973 program { name: "disable_text";
5977 get_state(PART:"elm.text", st, 30, vl);
5978 if (!strcmp(st, "visible"))
5979 set_state(PART:"elm.text", "disabled_visible", 0.0);
5981 set_state(PART:"elm.text", "disabled", 0.0);
5982 set_int(button_state, BUTTON_STATE_DISABLED);
5985 program { name: "enable";
5986 signal: "elm,state,enabled";
5988 action: STATE_SET "default" 0.0;
5989 target: "button_image";
5991 after: "enable_text";
5993 program { name: "enable_text";
5997 get_state(PART:"elm.text", st, 30, vl);
5998 if (!strcmp(st, "disabled_visible"))
5999 set_state(PART:"elm.text", "visible", 0.0);
6001 set_state(PART:"elm.text", "default", 0.0);
6002 set_int(button_state, BUTTON_STATE_ENABLED);
6005 program { name: "focused";
6006 //signal: "elm,action,focus";
6008 action: STATE_SET "focused" 0.0;
6009 target: "button_image";
6012 program { name: "unfocused";
6013 //signal: "elm,action,unfocus";
6015 action: STATE_SET "default" 0.0;
6016 target: "button_image";
6017 after: "unfocus_text";
6019 program { name: "unfocus_text";
6020 action: STATE_SET "visible" 0.0;
6026 ///////////////////////////////////////////////////////////////////////////////////////
6027 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6028 group { name: "elm/button/base/"style_name; \
6030 image: image_normal COMP; \
6031 image: image_press COMP; \
6032 image: image_disable COMP; \
6033 image: "00_button_01_normal.png" COMP; \
6034 image: "00_button_01_normal_press.png" COMP; \
6035 image: "00_button_01_normal_dim.png" COMP; \
6036 image: "00_button_01_normal_Focus.png" COMP; \
6039 part { name: "button_image"; \
6041 description { state: "default" 0.0; \
6042 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6043 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6045 normal: "00_button_01_normal.png"; \
6046 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6051 state: "clicked" 0.0; \
6052 inherit: "default" 0.0; \
6053 image.normal: "00_button_01_normal_press.png"; \
6056 state: "disabled" 0.0; \
6057 inherit: "default" 0.0; \
6058 image.normal: "00_button_01_normal_dim.png"; \
6061 state: "focused" 0.0; \
6062 inherit: "default" 0.0; \
6063 image.normal: "00_button_01_normal_Focus.png"; \
6066 part { name: "button_center_part"; \
6068 description { state: "default" 0.0; \
6069 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6070 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6071 image.normal: image_normal; \
6074 state: "clicked" 0.0; \
6075 inherit: "default" 0.0; \
6076 image.normal: image_press; \
6079 state: "disabled" 0.0; \
6080 inherit: "default" 0.0; \
6081 image.normal: image_disable; \
6084 part { name: "over1"; \
6086 ignore_flags: ON_HOLD; \
6087 description { state: "default" 0.0; \
6091 part { name: "over2"; \
6093 description { state: "default" 0.0; \
6097 part { name: "disabler"; \
6099 description { state: "default" 0.0; \
6103 description { state: "disabled" 0.0; \
6104 inherit: "default" 0.0; \
6110 program { name: "button_click"; \
6111 signal: "mouse,down,1"; \
6113 action: SIGNAL_EMIT "elm,action,press" ""; \
6114 after: "button_click_anim"; \
6116 program { name: "button_click_anim"; \
6117 action: STATE_SET "clicked" 0.0; \
6118 target: "button_image"; \
6119 target: "button_center_part"; \
6121 program { name: "button_unclick"; \
6122 signal: "mouse,up,1"; \
6124 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6125 after: "button_unclick_anim"; \
6127 program { name: "button_unclick_anim"; \
6128 action: STATE_SET "default" 0.0; \
6129 target: "button_image"; \
6130 target: "button_center_part"; \
6132 program { name: "touch_snd"; \
6133 signal: "mouse,clicked,1"; \
6135 action: PLAY_SAMPLE "touch_sound" 1.0; \
6136 after: button_unclick3; \
6138 program { name: "button_unclick3"; \
6139 action: SIGNAL_EMIT "elm,action,click" ""; \
6141 program { name: "disable"; \
6142 signal: "elm,state,disabled"; \
6144 action: STATE_SET "disabled" 0.0; \
6145 target: "disabler"; \
6146 target: "button_image"; \
6147 target: "button_center_part"; \
6149 program { name: "enable"; \
6150 signal: "elm,state,enabled"; \
6152 action: STATE_SET "default" 0.0; \
6153 target: "disabler"; \
6154 target: "button_image"; \
6155 target: "button_center_part"; \
6159 ///////////////////////////////////////////////////////////////////////////////////////
6160 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_color_picker_btn_left.png", "00_color_picker_btn_left_press.png", "00_color_picker_btn_left_dim.png")
6161 ///////////////////////////////////////////////////////////////////////////////////////
6162 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_color_picker_btn_right.png", "00_color_picker_btn_right_press.png", "00_color_picker_btn_right_dim.png")
6163 ///////////////////////////////////////////////////////////////////////////////////////
6164 group { name: "elm/button/base/hidden";
6166 image: "00_button_sweep.png" COMP;
6167 image: "00_button_sweep_press.png" COMP;
6168 image: "00_button_sweep_focus.png" COMP;
6169 image: "00_button_sweep_dim.png" COMP;
6172 public button_state = BUTTON_STATE_ENABLED;
6175 part { name: "button_image";
6177 description { state: "default" 0.0;
6178 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6180 normal: "00_button_sweep.png";
6181 border: BUTTON_HIDDEN_BG_BORDER_INC;
6185 description { state: "clicked" 0.0;
6186 inherit: "default" 0.0;
6187 image.normal: "00_button_sweep_press.png";
6189 description { state: "disabled" 0.0;
6190 inherit: "default" 0.0;
6191 image.normal: "00_button_sweep_dim.png";
6193 description { state: "focused" 0.0;
6194 inherit: "default" 0.0;
6195 image.normal: "00_button_sweep_focus.png";
6198 part { name: "padding_left_top";
6202 description { state: "default" 0.0;
6204 rel2.relative: 0.0 0.0;
6205 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6210 part { name: "padding_right_bottom";
6214 description { state: "default" 0.0;
6216 rel1.relative: 1.0 1.0;
6217 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6222 part { name: "icon_rect";
6226 description { state: "default" 0.0;
6227 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6231 to_x: "elm.swallow.content";
6232 to_y: "padding_left_top";
6236 to_x: "elm.swallow.content";
6237 to_y: "padding_right_bottom";
6243 part { name: "padding_icon_text";
6247 description { state: "default" 0.0; //when only icon or no icon is there
6253 rel2.to: "icon_rect";
6258 description { state: "icononly" 0.0;
6259 inherit: "default" 0.0;
6261 description { state: "visible" 0.0; //when icon is visible
6267 rel2.to: "icon_rect";
6269 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6273 part { name: "elm.swallow.content";
6277 description { state: "default" 0.0;
6282 to: "padding_left_top";
6286 to_x: "padding_left_top";
6287 to_y: "padding_right_bottom";
6291 description { state: "visible" 0.0;
6296 to: "padding_left_top";
6300 to_x: "padding_left_top";
6301 to_y: "padding_right_bottom";
6304 aspect_preference: VERTICAL;
6306 description { state: "icononly" 0.0;
6307 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6310 to: "padding_left_top";
6314 to_x: "padding_left_top";
6315 to_y: "padding_right_bottom";
6318 aspect_preference: VERTICAL;
6321 part { name: "elm.text";
6326 description { state: "default" 0.0;
6330 to_x: "padding_icon_text";
6331 to_y: "padding_left_top";
6335 to: "padding_right_bottom";
6337 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6339 font: "SLP:style=Medium";
6340 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6342 text_class: "slp_medium";
6345 description { state: "visible" 0.0;
6346 inherit: "default" 0.0;
6348 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6350 description { state: "clicked" 0.0;
6351 inherit: "default" 0.0;
6354 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6356 description { state: "disabled" 0.0;
6357 inherit: "default" 0.0;
6360 description { state: "disabled_visible" 0.0;
6361 inherit: "default" 0.0;
6362 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6364 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6366 description { state: "focused" 0.0;
6367 inherit: "default" 0.0;
6370 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6373 part { name: "over2";
6376 ignore_flags: ON_HOLD;
6377 description { state: "default" 0.0;
6381 part { name: "over3";
6384 description { state: "default" 0.0;
6388 part { name: "clipper";
6390 description { state: "default" 0.0;
6391 color: 255 255 255 255;
6394 part { name: "disabler";
6396 description { state: "default" 0.0;
6400 description { state: "disabled" 0.0;
6401 inherit: "default" 0.0;
6407 program { name: "button_click";
6408 signal: "mouse,down,1";
6410 action: SIGNAL_EMIT "elm,action,press" "";
6411 after: "button_click_anim";
6413 program { name: "button_click_anim";
6414 action: STATE_SET "clicked" 0.0;
6415 target: "button_image";
6416 after: "text_clicked";
6418 program { name: "text_clicked";
6422 get_state(PART:"elm.text", st, 30, vl);
6423 if (!strcmp(st, "visible"))
6424 set_state(PART:"elm.text", "clicked", 0.0);
6427 program { name: "button_unpress";
6428 action: SIGNAL_EMIT "elm,action,unpress" "";
6430 program { name: "button_mouseout_clicked";
6431 signal: "mouse,up,1";
6436 get_state(PART:"elm.swallow.content", st, 30, vl);
6437 if (strcmp(st, "icononly"))
6439 emit("elm,action,default,text,set", "");
6440 set_state(PART:"elm.text", "visible", 0.0);
6442 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6443 set_state(PART:"button_image", "default", 0.0);
6445 after: button_unpress;
6447 program { name: "touch_snd";
6448 signal: "mouse,clicked,1";
6450 action: PLAY_SAMPLE "touch_sound" 1.0;
6451 after: button_unclick3;
6453 program { name: "button_unclick3";
6454 action: SIGNAL_EMIT "elm,action,click" "";
6456 program { name: "text_show";
6457 signal: "elm,state,text,visible";
6462 get_state(PART:"elm.swallow.content", st, 30, vl);
6463 if (!strcmp(st, "icononly"))
6465 set_state(PART:"elm.swallow.content", "visible", 0.0);
6466 set_state(PART:"padding_icon_text", "visible", 0.0);
6468 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6469 set_state(PART:"elm.text", "visible", 0.0);
6471 set_state(PART:"elm.text", "disabled_visible", 0.0);
6474 program { name: "text_hide";
6475 signal: "elm,state,text,hidden";
6480 get_state(PART:"elm.swallow.content", st, 30, vl);
6481 if (!strcmp(st, "visible"))
6483 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6484 set_state(PART:"padding_icon_text", "icononly", 0.0);
6486 set_state(PART:"elm.text", "default", 0.0);
6489 program { name: "icon_show";
6490 signal: "elm,state,icon,visible";
6495 get_state(PART:"elm.text", st, 30, vl);
6496 if (!strcmp(st, "visible"))
6498 set_state(PART:"elm.swallow.content", "visible", 0.0);
6499 set_state(PART:"padding_icon_text", "visible", 0.0);
6503 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6504 set_state(PART:"padding_icon_text", "icononly", 0.0);
6508 program { name: "icon_hide";
6509 signal: "elm,state,icon,hidden";
6511 action: STATE_SET "default" 0.0;
6512 target: "elm.swallow.content";
6513 target: "padding_icon_text";
6515 program { name: "disable";
6516 signal: "elm,state,disabled";
6518 action: STATE_SET "disabled" 0.0;
6519 target: "button_image";
6521 after: "disable_text";
6523 program { name: "disable_text";
6527 get_state(PART:"elm.text", st, 30, vl);
6528 if (!strcmp(st, "visible"))
6529 set_state(PART:"elm.text", "disabled_visible", 0.0);
6531 set_state(PART:"elm.text", "disabled", 0.0);
6532 set_int(button_state, BUTTON_STATE_DISABLED);
6535 program { name: "enable";
6536 signal: "elm,state,enabled";
6538 action: STATE_SET "default" 0.0;
6539 target: "button_image";
6541 after: "enable_text";
6543 program { name: "enable_text";
6547 get_state(PART:"elm.text", st, 30, vl);
6548 if (!strcmp(st, "disabled_visible"))
6549 set_state(PART:"elm.text", "visible", 0.0);
6551 set_state(PART:"elm.text", "default", 0.0);
6552 set_int(button_state, BUTTON_STATE_ENABLED);
6555 program { name: "focused";
6556 //signal: "elm,action,focus";
6558 action: STATE_SET "focused" 0.0;
6559 target: "button_image";
6562 program { name: "unfocused";
6563 //signal: "elm,action,unfocus";
6565 action: STATE_SET "default" 0.0;
6566 target: "button_image";
6567 after: "unfocus_text";
6569 program { name: "unfocus_text";
6570 action: STATE_SET "visible" 0.0;
6576 ///////////////////////////////////////////////////////////////////////////////////////
6577 group { name: "elm/button/base/picker/bar/default";
6579 image: "00_picker_btn_normal.png" COMP;
6580 image: "00_picker_btn_press.png" COMP;
6581 image: "00_picker_btn_normal_focus.png" COMP;
6584 public button_state = BUTTON_STATE_ENABLED;
6587 part { name: "button_image";
6589 description { state: "default" 0.0;
6590 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
6592 normal: "00_picker_btn_normal.png";
6593 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
6597 description { state: "clicked" 0.0;
6598 inherit: "default" 0.0;
6599 image.normal: "00_picker_btn_press.png";
6601 description { state: "disabled" 0.0;
6602 inherit: "default" 0.0;
6604 description { state: "focused" 0.0;
6605 inherit: "default" 0.0;
6606 image.normal: "00_picker_btn_normal_focus.png";
6609 part { name: "padding_left_top";
6613 description { state: "default" 0.0;
6615 rel2.relative: 0.0 0.0;
6616 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
6621 part { name: "padding_right_bottom";
6625 description { state: "default" 0.0;
6627 rel1.relative: 1.0 1.0;
6628 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
6633 part { name: "icon_rect";
6637 description { state: "default" 0.0;
6638 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
6642 to_x: "elm.swallow.content";
6643 to_y: "padding_left_top";
6647 to_x: "elm.swallow.content";
6648 to_y: "padding_right_bottom";
6654 part { name: "padding_icon_text";
6658 description { state: "default" 0.0; //when only icon or no icon is there
6664 rel2.to: "icon_rect";
6669 description { state: "icononly" 0.0;
6670 inherit: "default" 0.0;
6672 description { state: "visible" 0.0; //when icon is visible
6678 rel2.to: "icon_rect";
6680 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
6684 part { name: "elm.swallow.content";
6688 description { state: "default" 0.0;
6693 to: "padding_left_top";
6697 to_x: "padding_left_top";
6698 to_y: "padding_right_bottom";
6702 description { state: "visible" 0.0;
6707 to: "padding_left_top";
6711 to_x: "padding_left_top";
6712 to_y: "padding_right_bottom";
6715 aspect_preference: VERTICAL;
6717 description { state: "icononly" 0.0;
6718 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
6721 to: "padding_left_top";
6725 to_x: "padding_left_top";
6726 to_y: "padding_right_bottom";
6729 aspect_preference: VERTICAL;
6732 part { name: "elm.text";
6737 description { state: "default" 0.0;
6741 to_x: "padding_icon_text";
6742 to_y: "padding_left_top";
6746 to: "padding_right_bottom";
6748 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
6750 font: "SLP:style=Medium";
6751 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
6754 text_class: "slp_medium";
6757 description { state: "visible" 0.0;
6758 inherit: "default" 0.0;
6760 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
6762 description { state: "clicked" 0.0;
6763 inherit: "default" 0.0;
6766 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
6768 description { state: "disabled" 0.0;
6769 inherit: "default" 0.0;
6770 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
6772 description { state: "disabled_visible" 0.0;
6773 inherit: "default" 0.0;
6774 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
6776 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
6778 description { state: "focused" 0.0;
6779 inherit: "default" 0.0;
6782 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
6785 part { name: "over2";
6788 ignore_flags: ON_HOLD;
6789 description { state: "default" 0.0;
6793 part { name: "over3";
6796 description { state: "default" 0.0;
6800 part { name: "clipper";
6802 description { state: "default" 0.0;
6803 color: 255 255 255 255;
6806 part { name: "disabler";
6808 description { state: "default" 0.0;
6812 description { state: "disabled" 0.0;
6813 inherit: "default" 0.0;
6819 program { name: "button_click";
6820 signal: "mouse,down,1";
6822 action: SIGNAL_EMIT "elm,action,press" "";
6823 after: "button_click_anim";
6825 program { name: "button_click_anim";
6826 action: STATE_SET "clicked" 0.0;
6827 target: "button_image";
6828 after: "text_clicked";
6830 program { name: "text_clicked";
6834 get_state(PART:"elm.text", st, 30, vl);
6835 if (!strcmp(st, "visible"))
6836 set_state(PART:"elm.text", "clicked", 0.0);
6839 program { name: "button_unpress";
6840 action: SIGNAL_EMIT "elm,action,unpress" "";
6842 program { name: "button_mouseout_clicked";
6843 signal: "mouse,up,1";
6848 get_state(PART:"elm.swallow.content", st, 30, vl);
6849 if (strcmp(st, "icononly"))
6851 emit("elm,action,default,text,set", "");
6852 set_state(PART:"elm.text", "visible", 0.0);
6854 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6855 set_state(PART:"button_image", "default", 0.0);
6857 after: button_unpress;
6859 program { name: "touch_snd";
6860 signal: "mouse,clicked,1";
6862 action: PLAY_SAMPLE "touch_sound" 1.0;
6863 after: button_unclick3;
6865 program { name: "button_unclick3";
6866 action: SIGNAL_EMIT "elm,action,click" "";
6868 program { name: "text_show";
6869 signal: "elm,state,text,visible";
6874 get_state(PART:"elm.swallow.content", st, 30, vl);
6875 if (!strcmp(st, "icononly"))
6877 set_state(PART:"elm.swallow.content", "visible", 0.0);
6878 set_state(PART:"padding_icon_text", "visible", 0.0);
6880 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6881 set_state(PART:"elm.text", "visible", 0.0);
6883 set_state(PART:"elm.text", "disabled_visible", 0.0);
6886 program { name: "text_hide";
6887 signal: "elm,state,text,hidden";
6892 get_state(PART:"elm.swallow.content", st, 30, vl);
6893 if (!strcmp(st, "visible"))
6895 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6896 set_state(PART:"padding_icon_text", "icononly", 0.0);
6898 set_state(PART:"elm.text", "default", 0.0);
6901 program { name: "icon_show";
6902 signal: "elm,state,icon,visible";
6907 get_state(PART:"elm.text", st, 30, vl);
6908 if (!strcmp(st, "visible"))
6910 set_state(PART:"elm.swallow.content", "visible", 0.0);
6911 set_state(PART:"padding_icon_text", "visible", 0.0);
6915 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6916 set_state(PART:"padding_icon_text", "icononly", 0.0);
6920 program { name: "icon_hide";
6921 signal: "elm,state,icon,hidden";
6923 action: STATE_SET "default" 0.0;
6924 target: "elm.swallow.content";
6925 target: "padding_icon_text";
6927 program { name: "disable";
6928 signal: "elm,state,disabled";
6930 action: STATE_SET "disabled" 0.0;
6931 target: "button_image";
6933 after: "disable_text";
6935 program { name: "disable_text";
6939 get_state(PART:"elm.text", st, 30, vl);
6940 if (!strcmp(st, "visible"))
6941 set_state(PART:"elm.text", "disabled_visible", 0.0);
6943 set_state(PART:"elm.text", "disabled", 0.0);
6944 set_int(button_state, BUTTON_STATE_DISABLED);
6947 program { name: "enable";
6948 signal: "elm,state,enabled";
6950 action: STATE_SET "default" 0.0;
6951 target: "button_image";
6953 after: "enable_text";
6955 program { name: "enable_text";
6959 get_state(PART:"elm.text", st, 30, vl);
6960 if (!strcmp(st, "disabled_visible"))
6961 set_state(PART:"elm.text", "visible", 0.0);
6963 set_state(PART:"elm.text", "default", 0.0);
6964 set_int(button_state, BUTTON_STATE_ENABLED);
6967 program { name: "focused";
6968 //signal: "elm,action,focus";
6970 action: STATE_SET "focused" 0.0;
6971 target: "button_image";
6974 program { name: "unfocused";
6975 //signal: "elm,action,unfocus";
6977 action: STATE_SET "default" 0.0;
6978 target: "button_image";
6979 after: "unfocus_text";
6981 program { name: "unfocus_text";
6982 action: STATE_SET "visible" 0.0;
6988 ///////////////////////////////////////////////////////////////////////////////////////
6989 group { name: "elm/button/base/picker/prev/text/default";
6990 alias: "elm/button/base/picker/next/text/default";
6992 image: "00_picker_btn_normal.png" COMP;
6993 image: "00_picker_btn_press.png" COMP;
6994 image: "00_picker_btn_normal_focus.png" COMP;
6997 public button_state = BUTTON_STATE_ENABLED;
7000 part { name: "button_image";
7002 description { state: "default" 0.0;
7003 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7005 normal: "00_picker_btn_normal.png";
7006 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7010 description { state: "clicked" 0.0;
7011 inherit: "default" 0.0;
7012 image.normal: "00_picker_btn_press.png";
7014 description { state: "disabled" 0.0;
7015 inherit: "default" 0.0;
7018 description { state: "focused" 0.0;
7019 inherit: "default" 0.0;
7020 image.normal: "00_picker_btn_normal_focus.png";
7023 part { name: "padding_left_top";
7027 description { state: "default" 0.0;
7029 rel2.relative: 0.0 0.0;
7030 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7035 part { name: "padding_right_bottom";
7039 description { state: "default" 0.0;
7041 rel1.relative: 1.0 1.0;
7042 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7047 part { name: "icon_rect";
7051 description { state: "default" 0.0;
7052 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7056 to_x: "elm.swallow.content";
7057 to_y: "padding_left_top";
7061 to_x: "elm.swallow.content";
7062 to_y: "padding_right_bottom";
7068 part { name: "padding_icon_text";
7072 description { state: "default" 0.0; //when only icon or no icon is there
7078 rel2.to: "icon_rect";
7083 description { state: "icononly" 0.0;
7084 inherit: "default" 0.0;
7086 description { state: "visible" 0.0; //when icon is visible
7092 rel2.to: "icon_rect";
7094 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7098 part { name: "elm.swallow.content";
7102 description { state: "default" 0.0;
7107 to: "padding_left_top";
7111 to_x: "padding_left_top";
7112 to_y: "padding_right_bottom";
7116 description { state: "visible" 0.0;
7121 to: "padding_left_top";
7125 to_x: "padding_left_top";
7126 to_y: "padding_right_bottom";
7129 aspect_preference: VERTICAL;
7131 description { state: "icononly" 0.0;
7132 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7135 to: "padding_left_top";
7139 to_x: "padding_left_top";
7140 to_y: "padding_right_bottom";
7143 aspect_preference: VERTICAL;
7146 part { name: "elm.text";
7151 description { state: "default" 0.0;
7155 to_x: "padding_icon_text";
7156 to_y: "padding_left_top";
7160 to: "padding_right_bottom";
7162 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7164 font: "SLP:style=Medium";
7165 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7168 text_class: "slp_medium";
7171 description { state: "visible" 0.0;
7172 inherit: "default" 0.0;
7174 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7176 description { state: "clicked" 0.0;
7177 inherit: "default" 0.0;
7180 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7182 description { state: "disabled" 0.0;
7183 inherit: "default" 0.0;
7184 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7186 description { state: "disabled_visible" 0.0;
7187 inherit: "default" 0.0;
7188 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7190 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7192 description { state: "focused" 0.0;
7193 inherit: "default" 0.0;
7196 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7199 part { name: "over2";
7202 ignore_flags: ON_HOLD;
7203 description { state: "default" 0.0;
7207 part { name: "over3";
7210 description { state: "default" 0.0;
7214 part { name: "clipper";
7216 description { state: "default" 0.0;
7217 color: 255 255 255 255;
7220 part { name: "disabler";
7222 description { state: "default" 0.0;
7226 description { state: "disabled" 0.0;
7227 inherit: "default" 0.0;
7233 program { name: "button_click";
7234 signal: "mouse,down,1";
7236 action: SIGNAL_EMIT "elm,action,press" "";
7237 after: "button_click_anim";
7239 program { name: "button_click_anim";
7240 action: STATE_SET "clicked" 0.0;
7241 target: "button_image";
7242 after: "text_clicked";
7244 program { name: "text_clicked";
7248 get_state(PART:"elm.text", st, 30, vl);
7249 if (!strcmp(st, "visible"))
7250 set_state(PART:"elm.text", "clicked", 0.0);
7253 program { name: "button_unpress";
7254 action: SIGNAL_EMIT "elm,action,unpress" "";
7256 program { name: "button_mouseout_clicked";
7257 signal: "mouse,up,1";
7262 get_state(PART:"elm.swallow.content", st, 30, vl);
7263 if (strcmp(st, "icononly"))
7265 emit("elm,action,default,text,set", "");
7266 set_state(PART:"elm.text", "visible", 0.0);
7268 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7269 set_state(PART:"button_image", "default", 0.0);
7271 after: button_unpress;
7273 program { name: "touch_snd";
7274 signal: "mouse,clicked,1";
7276 action: PLAY_SAMPLE "touch_sound" 1.0;
7277 after: button_unclick3;
7279 program { name: "button_unclick3";
7280 action: SIGNAL_EMIT "elm,action,click" "";
7282 program { name: "text_show";
7283 signal: "elm,state,text,visible";
7288 get_state(PART:"elm.swallow.content", st, 30, vl);
7289 if (!strcmp(st, "icononly"))
7291 set_state(PART:"elm.swallow.content", "visible", 0.0);
7292 set_state(PART:"padding_icon_text", "visible", 0.0);
7294 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7295 set_state(PART:"elm.text", "visible", 0.0);
7297 set_state(PART:"elm.text", "disabled_visible", 0.0);
7300 program { name: "text_hide";
7301 signal: "elm,state,text,hidden";
7306 get_state(PART:"elm.swallow.content", st, 30, vl);
7307 if (!strcmp(st, "visible"))
7309 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7310 set_state(PART:"padding_icon_text", "icononly", 0.0);
7312 set_state(PART:"elm.text", "default", 0.0);
7315 program { name: "icon_show";
7316 signal: "elm,state,icon,visible";
7321 get_state(PART:"elm.text", st, 30, vl);
7322 if (!strcmp(st, "visible"))
7324 set_state(PART:"elm.swallow.content", "visible", 0.0);
7325 set_state(PART:"padding_icon_text", "visible", 0.0);
7329 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7330 set_state(PART:"padding_icon_text", "icononly", 0.0);
7334 program { name: "icon_hide";
7335 signal: "elm,state,icon,hidden";
7337 action: STATE_SET "default" 0.0;
7338 target: "elm.swallow.content";
7339 target: "padding_icon_text";
7341 program { name: "disable";
7342 signal: "elm,state,disabled";
7344 action: STATE_SET "disabled" 0.0;
7345 target: "button_image";
7347 after: "disable_text";
7349 program { name: "disable_text";
7353 get_state(PART:"elm.text", st, 30, vl);
7354 if (!strcmp(st, "visible"))
7355 set_state(PART:"elm.text", "disabled_visible", 0.0);
7357 set_state(PART:"elm.text", "disabled", 0.0);
7358 set_int(button_state, BUTTON_STATE_DISABLED);
7361 program { name: "enable";
7362 signal: "elm,state,enabled";
7364 action: STATE_SET "default" 0.0;
7365 target: "button_image";
7367 after: "enable_text";
7369 program { name: "enable_text";
7373 get_state(PART:"elm.text", st, 30, vl);
7374 if (!strcmp(st, "disabled_visible"))
7375 set_state(PART:"elm.text", "visible", 0.0);
7377 set_state(PART:"elm.text", "default", 0.0);
7378 set_int(button_state, BUTTON_STATE_ENABLED);
7381 program { name: "focused";
7382 //signal: "elm,action,focus";
7384 action: STATE_SET "focused" 0.0;
7385 target: "button_image";
7388 program { name: "unfocused";
7389 //signal: "elm,action,unfocus";
7391 action: STATE_SET "default" 0.0;
7392 target: "button_image";
7393 after: "unfocus_text";
7395 program { name: "unfocus_text";
7396 action: STATE_SET "visible" 0.0;
7402 ///////////////////////////////////////////////////////////////////////////////////////
7403 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7404 group { name: "elm/button/base/contact/"style_name; \
7406 image: "00_contacts_circle_bg.png" COMP; \
7407 image: image_normal COMP; \
7408 image: image_press COMP; \
7411 part { name: "button_image"; \
7413 description { state: "default" 0.0; \
7414 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7415 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7416 image.normal: "00_contacts_circle_bg.png"; \
7417 color: 255 255 255 255; \
7420 state: "clicked" 0.0; \
7421 inherit: "default" 0.0; \
7422 image.normal: "00_contacts_circle_bg.png"; \
7425 state: "disabled" 0.0; \
7426 inherit: "default" 0.0; \
7427 color: 255 255 255 128; \
7430 part { name: "button_center_part"; \
7432 description { state: "default" 0.0; \
7433 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7434 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7435 image.normal: image_normal; \
7436 color: 255 255 255 255; \
7439 state: "clicked" 0.0; \
7440 inherit: "default" 0.0; \
7441 image.normal: image_press; \
7444 state: "disabled" 0.0; \
7445 inherit: "default" 0.0; \
7446 color: 255 255 255 128; \
7449 part { name: "over1"; \
7451 ignore_flags: ON_HOLD; \
7452 description { state: "default" 0.0; \
7456 part { name: "over2"; \
7458 description { state: "default" 0.0; \
7462 part { name: "disabler"; \
7464 description { state: "default" 0.0; \
7468 description { state: "disabled" 0.0; \
7469 inherit: "default" 0.0; \
7475 program { name: "button_click"; \
7476 signal: "mouse,down,1"; \
7478 action: SIGNAL_EMIT "elm,action,press" ""; \
7479 after: "button_click_anim"; \
7481 program { name: "button_click_anim"; \
7482 action: STATE_SET "clicked" 0.0; \
7483 target: "button_image"; \
7484 target: "button_center_part"; \
7486 program { name: "button_unclick"; \
7487 signal: "mouse,up,1"; \
7489 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7490 after: "button_unclick_anim"; \
7492 program { name: "button_unclick_anim"; \
7493 action: STATE_SET "default" 0.0; \
7494 target: "button_image"; \
7495 target: "button_center_part"; \
7497 program { name: "touch_snd"; \
7498 signal: "mouse,clicked,1"; \
7500 action: PLAY_SAMPLE "touch_sound" 1.0; \
7501 after: button_unclick3; \
7503 program { name: "button_unclick3"; \
7504 action: SIGNAL_EMIT "elm,action,click" ""; \
7506 program { name: "disable"; \
7507 signal: "elm,state,disabled"; \
7509 action: STATE_SET "disabled" 0.0; \
7510 target: "disabler"; \
7511 target: "button_image"; \
7512 target: "button_center_part"; \
7514 program { name: "enable"; \
7515 signal: "elm,state,enabled"; \
7517 action: STATE_SET "default" 0.0; \
7518 target: "disabler"; \
7519 target: "button_image"; \
7520 target: "button_center_part"; \
7525 ///////////////////////////////////////////////////////////////////////////////////////
7526 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7528 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7530 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7532 ///////////////////////////////////////////////////////////////////////////////////////
7533 group { name: "elm/button/base/contact";
7534 alias: "elm/button/base/text_only/contact";
7536 image: "00_contacts_button_bg.png" COMP;
7537 image: "00_contacts_button_bg_press.png" COMP;
7540 public button_state = BUTTON_STATE_ENABLED;
7543 part { name: "button_image";
7545 description { state: "default" 0.0;
7547 to_x: "padding.left";
7551 to_x: "padding.right";
7554 min: BUTTON_CONTACT_BG_MIN_INC;
7556 normal: "00_contacts_button_bg.png";
7557 border: BUTTON_CONTACT_BG_BORDER_INC;
7561 description { state: "clicked" 0.0;
7562 inherit: "default" 0.0;
7563 image.normal: "00_contacts_button_bg_press.png";
7565 description { state: "disabled" 0.0;
7566 inherit: "default" 0.0;
7569 description { state: "focused" 0.0;
7570 inherit: "default" 0.0;
7573 part { name: "padding.left";
7576 description { state: "default" 0.0;
7578 min: BUTTON_CONTACT_PADDING_MIN_INC;
7588 part { name: "padding.right";
7591 description { state: "default" 0.0;
7593 min: BUTTON_CONTACT_PADDING_MIN_INC;
7603 part { name: "elm.text";
7607 description { state: "default" 0.0;
7610 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
7612 font: "SLP:style=Medium";
7613 size: BUTTON_CONTACT_FONT_SIZE_INC;
7615 text_class: "slp_medium";
7618 description { state: "visible" 0.0;
7619 inherit: "default" 0.0;
7623 description { state: "clicked" 0.0;
7624 inherit: "default" 0.0;
7627 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
7629 description { state: "disabled" 0.0;
7630 inherit: "default" 0.0;
7633 description { state: "disabled_visible" 0.0;
7634 inherit: "default" 0.0;
7635 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
7639 description { state: "focused" 0.0;
7640 inherit: "default" 0.0;
7643 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
7646 part { name: "over1";
7648 description { state: "default" 0.0;
7649 rel2.relative: 1.0 0.5;
7652 part { name: "over2";
7654 ignore_flags: ON_HOLD;
7655 description { state: "default" 0.0;
7656 rel1.to: "button_image";
7657 rel2.to: "button_image";
7660 part { name: "over3";
7662 description { state: "default" 0.0;
7663 rel1.to: "button_image";
7664 rel2.to: "button_image";
7668 part { name: "disabler";
7670 description { state: "default" 0.0;
7671 rel1.to: "button_image";
7672 rel2.to: "button_image";
7676 description { state: "disabled" 0.0;
7677 inherit: "default" 0.0;
7683 program { name: "button_click";
7684 signal: "mouse,down,1";
7686 action: SIGNAL_EMIT "elm,action,press" "";
7687 after: "button_click_anim";
7689 program { name: "button_click_anim";
7690 action: STATE_SET "clicked" 0.0;
7691 target: "button_image";
7694 program { name: "button_unpress";
7695 action: SIGNAL_EMIT "elm,action,unpress" "";
7697 program { name: "button_mouseout_clicked";
7698 signal: "mouse,up,1";
7703 get_state(PART:"elm.text", st, 30, vl);
7704 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7706 emit("elm,action,default,text,set", "");
7707 set_state(PART:"elm.text", "visible", 0.0);
7709 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7710 set_state(PART:"button_image", "default", 0.0);
7712 after: button_unpress;
7714 program { name: "touch_snd";
7715 signal: "mouse,clicked,1";
7717 action: PLAY_SAMPLE "touch_sound" 1.0;
7718 after: button_unclick3;
7720 program { name: "button_unclick3";
7721 action: SIGNAL_EMIT "elm,action,click" "";
7723 program { name: "text_show";
7724 signal: "elm,state,text,visible";
7727 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7728 set_state(PART:"elm.text", "visible", 0.0);
7730 set_state(PART:"elm.text", "disabled_visible", 0.0);
7733 program { name: "text_hide";
7734 signal: "elm,state,text,hidden";
7736 action: STATE_SET "default" 0.0;
7739 program { name: "disable";
7740 signal: "elm,state,disabled";
7742 action: STATE_SET "disabled" 0.0;
7743 target: "button_image";
7745 after: "disable_text";
7747 program { name: "disable_text";
7751 get_state(PART:"elm.text", st, 30, vl);
7752 if (!strcmp(st, "visible"))
7753 set_state(PART:"elm.text", "disabled_visible", 0.0);
7755 set_state(PART:"elm.text", "disabled", 0.0);
7756 set_int(button_state, BUTTON_STATE_DISABLED);
7759 program { name: "enable";
7760 signal: "elm,state,enabled";
7762 action: STATE_SET "default" 0.0;
7763 target: "button_image";
7765 after: "enable_text";
7767 program { name: "enable_text";
7771 get_state(PART:"elm.text", st, 30, vl);
7772 if (!strcmp(st, "disabled_visible"))
7773 set_state(PART:"elm.text", "visible", 0.0);
7775 set_state(PART:"elm.text", "default", 0.0);
7776 set_int(button_state, BUTTON_STATE_ENABLED);
7779 program { name: "focused";
7780 //signal: "elm,action,focus";
7782 action: STATE_SET "focused" 0.0;
7783 target: "button_image";
7786 program { name: "unfocused";
7787 //signal: "elm,action,unfocus";
7789 action: STATE_SET "default" 0.0;
7790 target: "button_image";
7791 action: STATE_SET "visible" 0.0;
7797 ///////////////////////////////////////////////////////////////////////////////////////
7798 group { name: "elm/button/base/naviframe/back_btn/default";
7799 alias: "elm/button/base/naviframe/prev_btn/default";
7800 alias: "elm/button/base/naviframe/end_btn/default";
7802 image: "00_winset_toolbar_press.png" COMP;
7803 image: "00_winset_Back.png" COMP;
7806 public button_state = BUTTON_STATE_ENABLED;
7809 part { name: "button_image";
7811 description { state: "default" 0.0;
7812 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7813 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7816 description { state: "clicked" 0.0;
7817 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7818 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7820 normal: "00_winset_toolbar_press.png";
7821 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
7824 description { state: "disabled" 0.0;
7825 inherit: "default" 0.0;
7826 color: 127 127 127 127;
7828 description { state: "focused" 0.0;
7829 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7830 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
7832 normal: "00_winset_toolbar_press.png";
7833 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
7837 part { name: "back_button";
7840 description { state: "default" 0.0;
7841 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
7842 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
7843 rel1.to: "button_image";
7844 rel2.to: "button_image";
7845 image.normal: "00_winset_Back.png";
7847 description { state: "clicked" 0.0;
7848 inherit: "default" 0.0;
7850 description { state: "disabled" 0.0;
7851 inherit: "default" 0.0;
7852 color: 127 127 127 127;
7855 part { name: "over2";
7858 ignore_flags: ON_HOLD;
7859 description { state: "default" 0.0;
7863 part { name: "over3";
7866 description { state: "default" 0.0;
7870 part { name: "disabler";
7872 description { state: "default" 0.0;
7876 description { state: "disabled" 0.0;
7877 inherit: "default" 0.0;
7883 program { name: "button_click";
7884 signal: "mouse,down,1";
7886 action: SIGNAL_EMIT "elm,action,press" "";
7887 after: "button_click_anim";
7889 program { name: "button_click_anim";
7890 action: STATE_SET "clicked" 0.0;
7891 target: "button_image";
7893 program { name: "button_unpress";
7894 action: SIGNAL_EMIT "elm,action,unpress" "";
7896 program { name: "button_mouseout_clicked";
7897 signal: "mouse,up,1";
7900 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7901 set_state(PART:"button_image", "default", 0.0);
7903 after: button_unpress;
7905 program { name: "touch_snd";
7906 signal: "mouse,clicked,1";
7908 action: PLAY_SAMPLE "touch_sound" 1.0;
7909 after: button_unclick3;
7911 program { name: "button_unclick3";
7912 action: SIGNAL_EMIT "elm,action,click" "";
7914 program { name: "disable";
7915 signal: "elm,state,disabled";
7917 action: STATE_SET "disabled" 0.0;
7918 target: "button_image";
7920 target: "back_button";
7921 after: "disable_button";
7923 program { name: "disable_button";
7925 set_int(button_state, BUTTON_STATE_DISABLED);
7928 program { name: "enable";
7929 signal: "elm,state,enabled";
7931 action: STATE_SET "default" 0.0;
7932 target: "button_image";
7934 target: "back_button";
7935 after: "enable_button";
7937 program { name: "enable_button";
7939 set_int(button_state, BUTTON_STATE_ENABLED);
7942 program { name: "focused";
7943 //signal: "elm,action,focus";
7945 action: STATE_SET "focused" 0.0;
7946 target: "button_image";
7948 program { name: "unfocused";
7949 //signal: "elm,action,unfocus";
7951 action: STATE_SET "default" 0.0;
7952 target: "button_image";
7957 ///////////////////////////////////////////////////////////////////////////////////////
7958 group { name: "elm/button/base/picker/prev/icon/default";
7960 image: "00_picker_btn_normal.png" COMP;
7961 image: "00_picker_btn_press.png" COMP;
7962 image: "00_picker_btn_normal_focus.png" COMP;
7963 image: "00_picker_arrow_left.png" COMP;
7964 image: "00_picker_arrow_left_press.png" COMP;
7967 public button_state = BUTTON_STATE_ENABLED;
7970 part { name: "button_image";
7972 description { state: "default" 0.0;
7973 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
7974 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
7976 normal: "00_picker_btn_normal.png";
7977 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
7981 description { state: "clicked" 0.0;
7982 inherit: "default" 0.0;
7983 image.normal: "00_picker_btn_press.png";
7985 description { state: "disabled" 0.0;
7986 inherit: "default" 0.0;
7988 description { state: "focused" 0.0;
7989 inherit: "default" 0.0;
7990 image.normal: "00_picker_btn_normal_focus.png";
7993 part { name: "padding_left_top";
7997 description { state: "default" 0.0;
7999 rel2.relative: 0.0 0.0;
8000 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8005 part { name: "padding_right_bottom";
8009 description { state: "default" 0.0;
8011 rel1.relative: 1.0 1.0;
8012 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8017 part { name: "left_arrow";
8020 description { state: "default" 0.0;
8021 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8022 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8025 to: "padding_left_top";
8029 to: "padding_right_bottom";
8031 image.normal: "00_picker_arrow_left.png";
8033 description { state: "clicked" 0.0;
8034 inherit: "default" 0.0;
8035 image.normal: "00_picker_arrow_left_press.png";
8038 part { name: "over2";
8041 ignore_flags: ON_HOLD;
8042 description { state: "default" 0.0;
8046 part { name: "over3";
8049 description { state: "default" 0.0;
8053 part { name: "disabler";
8055 description { state: "default" 0.0;
8059 description { state: "disabled" 0.0;
8060 inherit: "default" 0.0;
8066 program { name: "button_click";
8067 signal: "mouse,down,1";
8069 action: SIGNAL_EMIT "elm,action,press" "";
8070 after: "button_click_anim";
8072 program { name: "button_click_anim";
8073 action: STATE_SET "clicked" 0.0;
8074 target: "button_image";
8076 program { name: "button_unpress";
8077 action: SIGNAL_EMIT "elm,action,unpress" "";
8079 program { name: "button_mouseout_clicked";
8080 signal: "mouse,up,1";
8083 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8084 set_state(PART:"button_image", "default", 0.0);
8086 after: button_unpress;
8088 program { name: "touch_snd";
8089 signal: "mouse,clicked,1";
8091 action: PLAY_SAMPLE "touch_sound" 1.0;
8092 after: button_unclick3;
8094 program { name: "button_unclick3";
8095 action: SIGNAL_EMIT "elm,action,click" "";
8097 program { name: "disable";
8098 signal: "elm,state,disabled";
8100 action: STATE_SET "disabled" 0.0;
8101 target: "button_image";
8103 after: "disable_button";
8105 program { name: "disable_button";
8107 set_int(button_state, BUTTON_STATE_DISABLED);
8110 program { name: "enable";
8111 signal: "elm,state,enabled";
8113 action: STATE_SET "default" 0.0;
8114 target: "button_image";
8116 after: "enable_button";
8118 program { name: "enable_button";
8120 set_int(button_state, BUTTON_STATE_ENABLED);
8123 program { name: "focused";
8124 //signal: "elm,action,focus";
8126 action: STATE_SET "focused" 0.0;
8127 target: "button_image";
8129 program { name: "unfocused";
8130 //signal: "elm,action,unfocus";
8132 action: STATE_SET "default" 0.0;
8133 target: "button_image";
8138 ///////////////////////////////////////////////////////////////////////////////////////
8139 group { name: "elm/button/base/picker/next/icon/default";
8141 image: "00_picker_btn_normal.png" COMP;
8142 image: "00_picker_btn_press.png" COMP;
8143 image: "00_picker_btn_normal_focus.png" COMP;
8144 image: "00_picker_arrow_right.png" COMP;
8145 image: "00_picker_arrow_right_press.png" COMP;
8148 public button_state = BUTTON_STATE_ENABLED;
8151 part { name: "button_image";
8153 description { state: "default" 0.0;
8154 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8155 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8157 normal: "00_picker_btn_normal.png";
8158 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8162 description { state: "clicked" 0.0;
8163 inherit: "default" 0.0;
8164 image.normal: "00_picker_btn_press.png";
8166 description { state: "disabled" 0.0;
8167 inherit: "default" 0.0;
8169 description { state: "focused" 0.0;
8170 inherit: "default" 0.0;
8171 image.normal: "00_picker_btn_normal_focus.png";
8174 part { name: "padding_left_top";
8178 description { state: "default" 0.0;
8180 rel2.relative: 0.0 0.0;
8181 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8186 part { name: "padding_right_bottom";
8190 description { state: "default" 0.0;
8192 rel1.relative: 1.0 1.0;
8193 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8198 part { name: "right_arrow";
8201 description { state: "default" 0.0;
8202 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8203 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8206 to: "padding_left_top";
8210 to: "padding_right_bottom";
8212 image.normal: "00_picker_arrow_right.png";
8214 description { state: "clicked" 0.0;
8215 inherit: "default" 0.0;
8216 image.normal: "00_picker_arrow_right_press.png";
8219 part { name: "over2";
8222 ignore_flags: ON_HOLD;
8223 description { state: "default" 0.0;
8227 part { name: "over3";
8230 description { state: "default" 0.0;
8234 part { name: "disabler";
8236 description { state: "default" 0.0;
8240 description { state: "disabled" 0.0;
8241 inherit: "default" 0.0;
8247 program { name: "button_click";
8248 signal: "mouse,down,1";
8250 action: SIGNAL_EMIT "elm,action,press" "";
8251 after: "button_click_anim";
8253 program { name: "button_click_anim";
8254 action: STATE_SET "clicked" 0.0;
8255 target: "button_image";
8257 program { name: "button_unpress";
8258 action: SIGNAL_EMIT "elm,action,unpress" "";
8260 program { name: "button_mouseout_clicked";
8261 signal: "mouse,up,1";
8264 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8265 set_state(PART:"button_image", "default", 0.0);
8267 after: button_unpress;
8269 program { name: "touch_snd";
8270 signal: "mouse,clicked,1";
8272 action: PLAY_SAMPLE "touch_sound" 1.0;
8273 after: button_unclick3;
8275 program { name: "button_unclick3";
8276 action: SIGNAL_EMIT "elm,action,click" "";
8278 program { name: "disable";
8279 signal: "elm,state,disabled";
8281 action: STATE_SET "disabled" 0.0;
8282 target: "button_image";
8284 after: "disable_button";
8286 program { name: "disable_button";
8288 set_int(button_state, BUTTON_STATE_DISABLED);
8291 program { name: "enable";
8292 signal: "elm,state,enabled";
8294 action: STATE_SET "default" 0.0;
8295 target: "button_image";
8297 after: "enable_button";
8299 program { name: "enable_button";
8301 set_int(button_state, BUTTON_STATE_ENABLED);
8304 program { name: "focused";
8305 //signal: "elm,action,focus";
8307 action: STATE_SET "focused" 0.0;
8308 target: "button_image";
8310 program { name: "unfocused";
8311 //signal: "elm,action,unfocus";
8313 action: STATE_SET "default" 0.0;
8314 target: "button_image";
8319 ///////////////////////////////////////////////////////////////////////////////////////
8320 group { name: "elm/button/base/naviframe_control/default";
8321 alias: "elm/button/base/naviframe_control/center";
8323 public button_state = BUTTON_STATE_ENABLED;
8326 image: "00_Option_header_bt.png" COMP;
8327 image: "00_Option_header_bt_dim.png" COMP;
8328 image: "00_Option_header_bt_press.png" COMP;
8329 image: "00_Option_header_bt_focus.png" COMP;
8332 part { name: "button_image";
8334 description { state: "default" 0.0;
8335 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8340 normal: "00_Option_header_bt.png";
8341 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8343 color: 255 255 255 255;
8345 description { state: "disabled" 0.0;
8346 inherit: "default" 0.0;
8347 image.normal: "00_Option_header_bt_dim.png";
8349 description { state: "clicked" 0.0;
8350 inherit: "default" 0.0;
8351 image.normal: "00_Option_header_bt_press.png";
8353 description { state: "focused" 0.0;
8354 inherit: "default" 0.0;
8355 image.normal: "00_Option_header_bt_focus.png";
8358 part { name: "padding_left_top";
8362 description { state: "default" 0.0;
8364 rel2.relative: 0.0 0.0;
8365 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8370 part { name: "padding_right_bottom";
8374 description { state: "default" 0.0;
8376 rel1.relative: 1.0 1.0;
8377 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8382 part { name: "icon_rect";
8386 description { state: "default" 0.0;
8391 to: "padding_left_top";
8395 to_x: "padding_left_top";
8396 to_y: "padding_right_bottom";
8401 description { state: "visible" 0.0;
8402 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8406 to: "padding_left_top";
8410 to_x: "padding_left_top";
8411 to_y: "padding_right_bottom";
8416 description { state: "icononly" 0.0;
8417 inherit: "default" 0.0;
8420 part { name: "padding_after_icon";
8424 description { state: "default" 0.0; //when only icon or no icon is there
8430 rel2.to: "icon_rect";
8435 description { state: "visible" 0.0;
8441 rel2.to: "icon_rect";
8443 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8446 description { state: "icononly" 0.0;
8447 inherit: "default" 0.0;
8450 part { name: "padding_before_text";
8454 description { state: "default" 0.0; //when only icon or no icon is there
8459 to_y: "padding_left_top";
8464 to_y: "padding_right_bottom";
8467 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8471 part { name: "elm.swallow.content";
8475 description { state: "default" 0.0;
8480 to: "padding_left_top";
8484 to_x: "padding_left_top";
8485 to_y: "padding_right_bottom";
8489 description { state: "visible" 0.0;
8491 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8492 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8496 to_x: "padding_before_text";
8497 to_y: "padding_left_top";
8501 to_x: "padding_before_text";
8502 to_y: "padding_right_bottom";
8505 aspect_preference: VERTICAL;
8507 description { state: "icononly" 0.0;
8508 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8509 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8512 to: "padding_left_top";
8516 to: "padding_right_bottom";
8519 aspect_preference: VERTICAL;
8522 part { name: "elm.text";
8527 description { state: "default" 0.0;
8531 to_x: "padding_after_icon";
8532 to_y: "padding_left_top";
8536 to: "padding_right_bottom";
8538 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8540 font: "SLP:style=Medium";
8541 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8544 text_class: "slp_medium";
8547 description { state: "visible" 0.0;
8548 inherit: "default" 0.0;
8551 description { state: "clicked" 0.0;
8552 inherit: "default" 0.0;
8556 description { state: "focused" 0.0;
8557 inherit: "default" 0.0;
8560 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8563 part { name: "over2";
8566 ignore_flags: ON_HOLD;
8567 description { state: "default" 0.0;
8571 part { name: "over3";
8574 description { state: "default" 0.0;
8578 part { name: "clipper";
8580 description { state: "default" 0.0;
8581 color: 255 255 255 255;
8583 description { state: "disabled" 0.0;
8584 color: 255 255 255 127;
8587 part { name: "disabler";
8589 description { state: "default" 0.0;
8593 description { state: "disabled" 0.0;
8594 inherit: "default" 0.0;
8600 program { name: "button_click";
8601 signal: "mouse,down,1";
8603 action: SIGNAL_EMIT "elm,action,press" "";
8604 after: "button_click_anim";
8606 program { name: "button_click_anim";
8607 action: STATE_SET "clicked" 0.0;
8608 target: "button_image";
8609 after: "text_clicked";
8611 program { name: "text_clicked";
8615 get_state(PART:"elm.text", st, 30, vl);
8616 if (!strcmp(st, "visible"))
8617 set_state(PART:"elm.text", "clicked", 0.0);
8620 program { name: "button_unpress";
8621 action: SIGNAL_EMIT "elm,action,unpress" "";
8623 program { name: "button_mouseout_clicked";
8624 signal: "mouse,up,1";
8629 get_state(PART:"elm.swallow.content", st, 30, vl);
8630 if (strcmp(st, "icononly"))
8632 emit("elm,action,default,text,set", "");
8633 set_state(PART:"elm.text", "visible", 0.0);
8635 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8636 set_state(PART:"button_image", "default", 0.0);
8638 after: button_unpress;
8640 program { name: "touch_snd";
8641 signal: "mouse,clicked,1";
8643 action: PLAY_SAMPLE "touch_sound" 1.0;
8644 after: button_unclick3;
8646 program { name: "button_unclick3";
8647 action: SIGNAL_EMIT "elm,action,click" "";
8649 program { name: "text_show";
8650 signal: "elm,state,text,visible";
8655 get_state(PART:"elm.swallow.content", st, 30, vl);
8656 if (!strcmp(st, "icononly"))
8658 set_state(PART:"elm.swallow.content", "visible", 0.0);
8659 set_state(PART:"icon_rect", "visible", 0.0);
8660 set_state(PART:"padding_after_icon", "visible", 0.0);
8662 set_state(PART:"elm.text", "visible", 0.0);
8665 program { name: "text_hide";
8666 signal: "elm,state,text,hidden";
8671 get_state(PART:"elm.swallow.content", st, 30, vl);
8672 if (!strcmp(st, "visible"))
8674 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8675 set_state(PART:"icon_rect", "icononly", 0.0);
8676 set_state(PART:"padding_after_icon", "icononly", 0.0);
8678 set_state(PART:"elm.text", "default", 0.0);
8681 program { name: "icon_show";
8682 signal: "elm,state,icon,visible";
8687 get_state(PART:"elm.text", st, 30, vl);
8688 if (!strcmp(st, "visible"))
8690 set_state(PART:"elm.swallow.content", "visible", 0.0);
8691 set_state(PART:"icon_rect", "visible", 0.0);
8692 set_state(PART:"padding_after_icon", "visible", 0.0);
8696 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8697 set_state(PART:"icon_rect", "icononly", 0.0);
8698 set_state(PART:"padding_after_icon", "icononly", 0.0);
8702 program { name: "icon_hide";
8703 signal: "elm,state,icon,hidden";
8705 action: STATE_SET "default" 0.0;
8706 target: "elm.swallow.content";
8707 target: "icon_rect";
8708 target: "padding_after_icon";
8710 program { name: "disable";
8711 signal: "elm,state,disabled";
8713 action: STATE_SET "disabled" 0.0;
8714 target: "button_image";
8717 after: "disable_text";
8719 program { name: "disable_text";
8723 set_int(button_state, BUTTON_STATE_DISABLED);
8724 get_state(PART:"elm.text", st, 30, vl);
8725 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8726 set_state(PART:"elm.text", "visible", 0.0);
8729 program { name: "enable";
8730 signal: "elm,state,enabled";
8732 action: STATE_SET "default" 0.0;
8733 target: "button_image";
8736 after: "enable_text";
8738 program { name: "enable_text";
8742 set_int(button_state, BUTTON_STATE_ENABLED);
8743 get_state(PART:"elm.text", st, 30, vl);
8744 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8745 set_state(PART:"elm.text", "visible", 0.0);
8748 program { name: "focused";
8749 //signal: "elm,action,focus";
8751 action: STATE_SET "focused" 0.0;
8752 target: "button_image";
8755 program { name: "unfocused";
8756 //signal: "elm,action,unfocus";
8758 action: STATE_SET "default" 0.0;
8759 target: "button_image";
8760 after: "unfocus_text";
8762 program { name: "unfocus_text";
8763 action: STATE_SET "visible" 0.0;
8769 ///////////////////////////////////////////////////////////////////////////////////////
8770 group { name: "elm/button/base/naviframe_control/multiline";
8772 public button_state = BUTTON_STATE_ENABLED;
8775 image: "00_Option_header_bt.png" COMP;
8776 image: "00_Option_header_bt_dim.png" COMP;
8777 image: "00_Option_header_bt_press.png" COMP;
8778 image: "00_Option_header_bt_focus.png" COMP;
8781 style { name: "btn_multiline_naviframe_controlbar_style";
8782 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
8789 part { name: "button_image";
8791 description { state: "default" 0.0;
8792 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8796 normal: "00_Option_header_bt.png";
8797 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8799 color: 255 255 255 255;
8801 description { state: "disabled" 0.0;
8802 inherit: "default" 0.0;
8803 image.normal: "00_Option_header_bt_dim.png";
8805 description { state: "clicked" 0.0;
8806 inherit: "default" 0.0;
8807 image.normal: "00_Option_header_bt_press.png";
8809 description { state: "focused" 0.0;
8810 inherit: "default" 0.0;
8811 image.normal: "00_Option_header_bt_focus.png";
8814 part { name: "padding_left_top";
8818 description { state: "default" 0.0;
8820 rel2.relative: 0.0 0.0;
8821 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8826 part { name: "padding_right_bottom";
8830 description { state: "default" 0.0;
8832 rel1.relative: 1.0 1.0;
8833 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8838 part { name: "icon_rect";
8842 description { state: "default" 0.0;
8848 to_x: "elm.swallow.content";
8849 to_y: "padding_left_top";
8853 to_x: "elm.swallow.content";
8854 to_y: "padding_right_bottom";
8859 part { name: "padding_icon_text";
8863 description { state: "default" 0.0; //when only icon or no icon is there
8877 description { state: "visible" 0.0;
8878 inherit: "default" 0.0;
8879 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8889 description { state: "icononly" 0.0;
8890 inherit: "default" 0.0;
8893 part { name: "elm.swallow.content";
8897 description { state: "default" 0.0;
8902 to: "padding_left_top";
8906 to_x: "padding_left_top";
8907 to_y: "padding_right_bottom";
8911 description { state: "visible" 0.0;
8913 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8914 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8918 to: "padding_left_top";
8922 to_x: "padding_left_top";
8923 to_y: "padding_right_bottom";
8926 description { state: "icononly" 0.0;
8927 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8928 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8931 to: "padding_left_top";
8935 to: "padding_right_bottom";
8939 part { name: "elm.text";
8944 description { state: "default" 0.0;
8948 to_x: "padding_icon_text";
8949 to_y: "padding_left_top";
8953 to: "padding_right_bottom";
8955 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8957 style: "btn_multiline_naviframe_controlbar_style";
8962 description { state: "visible" 0.0;
8963 inherit: "default" 0.0;
8967 description { state: "clicked" 0.0;
8968 inherit: "default" 0.0;
8972 description { state: "focused" 0.0;
8973 inherit: "default" 0.0;
8976 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8979 part { name: "over2";
8982 ignore_flags: ON_HOLD;
8983 description { state: "default" 0.0;
8987 part { name: "over3";
8990 description { state: "default" 0.0;
8994 part { name: "clipper";
8996 description { state: "default" 0.0;
8997 color: 255 255 255 255;
8999 description { state: "disabled" 0.0;
9000 color: 255 255 255 127;
9003 part { name: "disabler";
9005 description { state: "default" 0.0;
9009 description { state: "disabled" 0.0;
9010 inherit: "default" 0.0;
9016 program { name: "button_click";
9017 signal: "mouse,down,1";
9019 action: SIGNAL_EMIT "elm,action,press" "";
9020 after: "button_click_anim";
9022 program { name: "button_click_anim";
9023 action: STATE_SET "clicked" 0.0;
9024 target: "button_image";
9025 after: "text_clicked";
9027 program { name: "text_clicked";
9031 get_state(PART:"elm.text", st, 30, vl);
9032 if (!strcmp(st, "visible"))
9033 set_state(PART:"elm.text", "clicked", 0.0);
9036 program { name: "button_unpress";
9037 action: SIGNAL_EMIT "elm,action,unpress" "";
9039 program { name: "button_mouseout_clicked";
9040 signal: "mouse,up,1";
9045 get_state(PART:"elm.swallow.content", st, 30, vl);
9046 if (strcmp(st, "icononly"))
9048 emit("elm,action,default,text,set", "");
9049 set_state(PART:"elm.text", "visible", 0.0);
9051 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9052 set_state(PART:"button_image", "default", 0.0);
9054 after: button_unpress;
9056 program { name: "touch_snd";
9057 signal: "mouse,clicked,1";
9059 action: PLAY_SAMPLE "touch_sound" 1.0;
9060 after: button_unclick3;
9062 program { name: "button_unclick3";
9063 action: SIGNAL_EMIT "elm,action,click" "";
9065 program { name: "text_show";
9066 signal: "elm,state,text,visible";
9071 get_state(PART:"elm.swallow.content", st, 30, vl);
9072 if (!strcmp(st, "icononly"))
9074 set_state(PART:"elm.swallow.content", "visible", 0.0);
9075 set_state(PART:"padding_icon_text", "visible", 0.0);
9077 set_state(PART:"elm.text", "visible", 0.0);
9080 program { name: "text_hide";
9081 signal: "elm,state,text,hidden";
9086 get_state(PART:"elm.swallow.content", st, 30, vl);
9087 if (!strcmp(st, "visible"))
9089 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9090 set_state(PART:"padding_icon_text", "icononly", 0.0);
9092 set_state(PART:"elm.text", "default", 0.0);
9095 program { name: "icon_show";
9096 signal: "elm,state,icon,visible";
9101 get_state(PART:"elm.text", st, 30, vl);
9102 if (!strcmp(st, "visible"))
9104 set_state(PART:"elm.swallow.content", "visible", 0.0);
9105 set_state(PART:"padding_icon_text", "visible", 0.0);
9109 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9110 set_state(PART:"padding_icon_text", "icononly", 0.0);
9114 program { name: "icon_hide";
9115 signal: "elm,state,icon,hidden";
9117 action: STATE_SET "default" 0.0;
9118 target: "elm.swallow.content";
9119 target: "padding_icon_text";
9121 program { name: "disable";
9122 signal: "elm,state,disabled";
9124 action: STATE_SET "disabled" 0.0;
9125 target: "button_image";
9128 after: "disable_text";
9130 program { name: "disable_text";
9134 set_int(button_state, BUTTON_STATE_DISABLED);
9135 get_state(PART:"elm.text", st, 30, vl);
9136 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9137 set_state(PART:"elm.text", "visible", 0.0);
9140 program { name: "enable";
9141 signal: "elm,state,enabled";
9143 action: STATE_SET "default" 0.0;
9144 target: "button_image";
9147 after: "enable_text";
9149 program { name: "enable_text";
9153 set_int(button_state, BUTTON_STATE_ENABLED);
9154 get_state(PART:"elm.text", st, 30, vl);
9155 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9156 set_state(PART:"elm.text", "visible", 0.0);
9159 program { name: "focused";
9160 //signal: "elm,action,focus";
9162 action: STATE_SET "focused" 0.0;
9163 target: "button_image";
9166 program { name: "unfocused";
9167 //signal: "elm,action,unfocus";
9169 action: STATE_SET "default" 0.0;
9170 target: "button_image";
9171 after: "unfocus_text";
9173 program { name: "unfocus_text";
9174 action: STATE_SET "visible" 0.0;
9180 /////////////////////////////////////////////////////////////
9181 group { name: "elm/button/base/naviframe/title1/default";
9183 image: "00_winset_Back_btn_normal.png" COMP;
9184 image: "00_winset_Back_btn_press.png" COMP;
9185 image: "00_winset_Back_btn_normal_focus.png" COMP;
9188 public button_state = BUTTON_STATE_ENABLED;
9191 part { name: "button_image";
9193 description { state: "default" 0.0;
9194 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9196 normal: "00_winset_Back_btn_normal.png";
9197 border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9201 description { state: "clicked" 0.0;
9202 inherit: "default" 0.0;
9203 image.normal: "00_winset_Back_btn_press.png";
9205 description { state: "disabled" 0.0;
9206 inherit: "default" 0.0;
9207 color: 127 127 127 127;
9209 description { state: "focused" 0.0;
9210 inherit: "default" 0.0;
9211 image.normal: "00_winset_Back_btn_normal_focus.png";
9214 part { name: "padding_left_top";
9218 description { state: "default" 0.0;
9220 rel2.relative: 0.0 0.0;
9221 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9230 description { state: "default" 0.0;
9231 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9234 description { state: "visible" 0.0;
9235 inherit: "default" 0.0;
9236 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9238 description { state: "icononly" 0.0;
9239 inherit: "default" 0.0;
9240 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9243 part { name: "padding_right_bottom";
9247 description { state: "default" 0.0;
9249 rel1.relative: 1.0 1.0;
9250 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9255 part { name: "icon_rect";
9259 description { state: "default" 0.0;
9265 to: "padding_left_top";
9269 to_x: "padding_left_top";
9270 to_y: "padding_right_bottom";
9274 description { state: "visible" 0.0;
9276 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9277 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9281 to: "padding_left_top";
9285 to_x: "padding_left_top";
9286 to_y: "padding_right_bottom";
9290 description { state: "icononly" 0.0;
9291 inherit: "default" 0.0;
9294 part { name: "padding_after_icon";
9298 description { state: "default" 0.0; //when only icon or no icon is there
9304 rel2.to: "icon_rect";
9309 description { state: "visible" 0.0;
9316 rel2.to: "icon_rect";
9318 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9320 description { state: "icononly" 0.0;
9321 inherit: "default" 0.0;
9324 part { name: "padding_before_text";
9328 description { state: "default" 0.0; //when only icon or no icon is there
9333 to_y: "padding_left_top";
9338 to_y: "padding_right_bottom";
9341 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9345 part { name: "elm.swallow.content";
9349 description { state: "default" 0.0;
9354 to: "padding_left_top";
9358 to_x: "padding_left_top";
9359 to_y: "padding_right_bottom";
9363 description { state: "visible" 0.0;
9365 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9366 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9370 to_x: "padding_before_text";
9371 to_y: "padding_left_top";
9375 to_x: "padding_before_text";
9376 to_y: "padding_right_bottom";
9379 description { state: "icononly" 0.0;
9380 min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9381 max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9384 part { name: "elm.text";
9389 description { state: "default" 0.0;
9393 to_x: "padding_after_icon";
9394 to_y: "padding_left_top";
9398 to: "padding_right_bottom";
9400 color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9402 font: "SLP:style=Medium";
9403 size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9406 text_class: "slp_medium";
9409 description { state: "visible" 0.0;
9410 inherit: "default" 0.0;
9413 description { state: "clicked" 0.0;
9414 inherit: "default" 0.0;
9416 color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9418 description { state: "disabled" 0.0;
9419 inherit: "default" 0.0;
9422 description { state: "disabled_visible" 0.0;
9423 inherit: "default" 0.0;
9424 color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9427 description { state: "focused" 0.0;
9428 inherit: "default" 0.0;
9430 color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9433 part { name: "over2";
9436 ignore_flags: ON_HOLD;
9437 description { state: "default" 0.0;
9441 part { name: "over3";
9444 description { state: "default" 0.0;
9448 part { name: "clipper";
9450 description { state: "default" 0.0;
9451 color: 255 255 255 255;
9454 part { name: "disabler";
9456 description { state: "default" 0.0;
9460 description { state: "disabled" 0.0;
9461 inherit: "default" 0.0;
9467 program { name: "button_click";
9468 signal: "mouse,down,1";
9470 action: SIGNAL_EMIT "elm,action,press" "";
9471 after: "button_click_anim";
9473 program { name: "button_click_anim";
9474 action: STATE_SET "clicked" 0.0;
9475 target: "button_image";
9476 after: "text_clicked";
9478 program { name: "text_clicked";
9482 get_state(PART:"elm.text", st, 30, vl);
9483 if (!strcmp(st, "visible"))
9484 set_state(PART:"elm.text", "clicked", 0.0);
9487 program { name: "button_unpress";
9488 action: SIGNAL_EMIT "elm,action,unpress" "";
9490 program { name: "button_mouseout_clicked";
9491 signal: "mouse,up,1";
9496 get_state(PART:"elm.swallow.content", st, 30, vl);
9497 if (strcmp(st, "icononly"))
9499 emit("elm,action,default,text,set", "");
9500 set_state(PART:"elm.text", "visible", 0.0);
9502 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9503 set_state(PART:"button_image", "default", 0.0);
9505 after: button_unpress;
9507 program { name: "touch_snd";
9508 signal: "mouse,clicked,1";
9510 action: PLAY_SAMPLE "touch_sound" 1.0;
9511 after: button_unclick3;
9513 program { name: "button_unclick3";
9514 action: SIGNAL_EMIT "elm,action,click" "";
9516 program { name: "text_show";
9517 signal: "elm,state,text,visible";
9522 get_state(PART:"elm.swallow.content", st, 30, vl);
9523 if (!strcmp(st, "icononly"))
9525 set_state(PART:"elm.swallow.content", "visible", 0.0);
9526 set_state(PART:"icon_rect", "visible", 0.0);
9527 set_state(PART:"padding_after_icon", "visible", 0.0);
9528 set_state(PART:"bg", "visible", 0.0);
9530 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9531 set_state(PART:"elm.text", "visible", 0.0);
9533 set_state(PART:"elm.text", "disabled_visible", 0.0);
9536 program { name: "text_hide";
9537 signal: "elm,state,text,hidden";
9542 get_state(PART:"elm.swallow.content", st, 30, vl);
9543 if (!strcmp(st, "visible"))
9545 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9546 set_state(PART:"icon_rect", "icononly", 0.0);
9547 set_state(PART:"padding_after_icon", "icononly", 0.0);
9548 set_state(PART:"bg", "icononly", 0.0);
9550 set_state(PART:"elm.text", "default", 0.0);
9553 program { name: "icon_show";
9554 signal: "elm,state,icon,visible";
9559 get_state(PART:"elm.text", st, 30, vl);
9560 if (!strcmp(st, "visible"))
9562 set_state(PART:"elm.swallow.content", "visible", 0.0);
9563 set_state(PART:"icon_rect", "visible", 0.0);
9564 set_state(PART:"padding_after_icon", "visible", 0.0);
9565 set_state(PART:"bg", "visible", 0.0);
9569 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9570 set_state(PART:"icon_rect", "icononly", 0.0);
9571 set_state(PART:"padding_after_icon", "icononly", 0.0);
9572 set_state(PART:"bg", "icononly", 0.0);
9576 program { name: "icon_hide";
9577 signal: "elm,state,icon,hidden";
9579 action: STATE_SET "default" 0.0;
9580 target: "elm.swallow.content";
9581 target: "padding_after_icon";
9582 target: "icon_rect";
9585 program { name: "disable";
9586 signal: "elm,state,disabled";
9588 action: STATE_SET "disabled" 0.0;
9589 target: "button_image";
9591 after: "disable_text";
9593 program { name: "disable_text";
9597 get_state(PART:"elm.text", st, 30, vl);
9598 if (!strcmp(st, "visible"))
9599 set_state(PART:"elm.text", "disabled_visible", 0.0);
9601 set_state(PART:"elm.text", "disabled", 0.0);
9602 set_int(button_state, BUTTON_STATE_DISABLED);
9605 program { name: "enable";
9606 signal: "elm,state,enabled";
9608 action: STATE_SET "default" 0.0;
9609 target: "button_image";
9611 after: "enable_text";
9613 program { name: "enable_text";
9617 get_state(PART:"elm.text", st, 30, vl);
9618 if (!strcmp(st, "disabled_visible"))
9619 set_state(PART:"elm.text", "visible", 0.0);
9621 set_state(PART:"elm.text", "default", 0.0);
9622 set_int(button_state, BUTTON_STATE_ENABLED);
9625 program { name: "focused";
9626 //signal: "elm,action,focus";
9628 action: STATE_SET "focused" 0.0;
9629 target: "button_image";
9632 program { name: "unfocused";
9633 //signal: "elm,action,unfocus";
9635 action: STATE_SET "default" 0.0;
9636 target: "button_image";
9637 after: "unfocus_text";
9639 program { name: "unfocus_text";
9640 action: STATE_SET "visible" 0.0;
9646 //////////////////////////////////////////////////////////////
9647 group { name: "elm/button/base/naviframe/title/default";
9649 public button_state = BUTTON_STATE_ENABLED;
9652 image: "00_title_btn_bg_press.png" COMP;
9655 style { name: "btn_naviframe_style";
9656 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_medium";
9663 part { name: "button_image";
9665 description { state: "default" 0.0;
9666 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9667 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9670 description { state: "clicked" 0.0;
9671 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
9672 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
9674 normal: "00_title_btn_bg_press.png";
9675 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
9679 description { state: "disabled" 0.0;
9680 inherit: "default" 0.0;
9682 description { state: "focused" 0.0;
9683 inherit: "default" 0.0;
9686 part { name: "padding_left_top";
9690 description { state: "default" 0.0;
9692 rel2.relative: 0.0 0.0;
9693 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9698 part { name: "padding_right_bottom";
9702 description { state: "default" 0.0;
9704 rel1.relative: 1.0 1.0;
9705 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9710 part { name: "icon_rect";
9714 description { state: "default" 0.0;
9720 to: "padding_left_top";
9724 to_x: "padding_left_top";
9725 to_y: "padding_right_bottom";
9729 description { state: "visible" 0.0;
9731 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9732 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9736 to: "padding_left_top";
9740 to_x: "padding_left_top";
9741 to_y: "padding_right_bottom";
9745 description { state: "icononly" 0.0;
9746 inherit: "default" 0.0;
9749 part { name: "padding_after_icon";
9753 description { state: "default" 0.0; //when only icon or no icon is there
9759 rel2.to: "icon_rect";
9764 description { state: "visible" 0.0;
9771 rel2.to: "icon_rect";
9773 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9775 description { state: "icononly" 0.0;
9776 inherit: "default" 0.0;
9779 part { name: "padding_before_text";
9783 description { state: "default" 0.0; //when only icon or no icon is there
9788 to_y: "padding_left_top";
9793 to_y: "padding_right_bottom";
9796 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9800 part { name: "elm.swallow.content";
9804 description { state: "default" 0.0;
9809 to: "padding_left_top";
9813 to_x: "padding_left_top";
9814 to_y: "padding_right_bottom";
9818 description { state: "visible" 0.0;
9820 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9821 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9825 to_x: "padding_before_text";
9826 to_y: "padding_left_top";
9830 to_x: "padding_before_text";
9831 to_y: "padding_right_bottom";
9834 description { state: "icononly" 0.0;
9835 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9836 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9839 part { name: "elm.text";
9844 description { state: "default" 0.0;
9848 to_x: "padding_after_icon";
9849 to_y: "padding_left_top";
9853 to: "padding_right_bottom";
9855 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
9857 style: "btn_naviframe_style";
9862 description { state: "visible" 0.0;
9863 inherit: "default" 0.0;
9866 description { state: "clicked" 0.0;
9867 inherit: "default" 0.0;
9869 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
9871 description { state: "disabled" 0.0;
9872 inherit: "default" 0.0;
9875 description { state: "disabled_visible" 0.0;
9876 inherit: "default" 0.0;
9877 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
9880 description { state: "focused" 0.0;
9881 inherit: "default" 0.0;
9883 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
9886 part { name: "over2";
9889 ignore_flags: ON_HOLD;
9890 description { state: "default" 0.0;
9894 part { name: "over3";
9897 description { state: "default" 0.0;
9901 part { name: "clipper";
9903 description { state: "default" 0.0;
9904 color: 255 255 255 255;
9907 part { name: "disabler";
9909 description { state: "default" 0.0;
9913 description { state: "disabled" 0.0;
9914 inherit: "default" 0.0;
9920 program { name: "button_click";
9921 signal: "mouse,down,1";
9923 action: SIGNAL_EMIT "elm,action,press" "";
9924 after: "button_click_anim";
9926 program { name: "button_click_anim";
9927 action: STATE_SET "clicked" 0.0;
9928 target: "button_image";
9929 after: "text_clicked";
9931 program { name: "text_clicked";
9935 get_state(PART:"elm.text", st, 30, vl);
9936 if (!strcmp(st, "visible"))
9937 set_state(PART:"elm.text", "clicked", 0.0);
9940 program { name: "button_unpress";
9941 action: SIGNAL_EMIT "elm,action,unpress" "";
9943 program { name: "button_mouseout_clicked";
9944 signal: "mouse,up,1";
9949 get_state(PART:"elm.swallow.content", st, 30, vl);
9950 if (strcmp(st, "icononly"))
9952 emit("elm,action,default,text,set", "");
9953 set_state(PART:"elm.text", "visible", 0.0);
9955 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9956 set_state(PART:"button_image", "default", 0.0);
9958 after: button_unpress;
9960 program { name: "touch_snd";
9961 signal: "mouse,clicked,1";
9963 action: PLAY_SAMPLE "touch_sound" 1.0;
9964 after: button_unclick3;
9966 program { name: "button_unclick3";
9967 action: SIGNAL_EMIT "elm,action,click" "";
9969 program { name: "text_show";
9970 signal: "elm,state,text,visible";
9975 get_state(PART:"elm.swallow.content", st, 30, vl);
9976 if (!strcmp(st, "icononly"))
9978 set_state(PART:"elm.swallow.content", "visible", 0.0);
9979 set_state(PART:"icon_rect", "visible", 0.0);
9980 set_state(PART:"padding_after_icon", "visible", 0.0);
9982 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9983 set_state(PART:"elm.text", "visible", 0.0);
9985 set_state(PART:"elm.text", "disabled_visible", 0.0);
9988 program { name: "text_hide";
9989 signal: "elm,state,text,hidden";
9994 get_state(PART:"elm.swallow.content", st, 30, vl);
9995 if (!strcmp(st, "visible"))
9997 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9998 set_state(PART:"icon_rect", "icononly", 0.0);
9999 set_state(PART:"padding_after_icon", "icononly", 0.0);
10001 set_state(PART:"elm.text", "default", 0.0);
10004 program { name: "icon_show";
10005 signal: "elm,state,icon,visible";
10010 get_state(PART:"elm.text", st, 30, vl);
10011 if (!strcmp(st, "visible"))
10013 set_state(PART:"elm.swallow.content", "visible", 0.0);
10014 set_state(PART:"icon_rect", "visible", 0.0);
10015 set_state(PART:"padding_after_icon", "visible", 0.0);
10019 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10020 set_state(PART:"icon_rect", "icononly", 0.0);
10021 set_state(PART:"padding_after_icon", "icononly", 0.0);
10025 program { name: "icon_hide";
10026 signal: "elm,state,icon,hidden";
10028 action: STATE_SET "default" 0.0;
10029 target: "elm.swallow.content";
10030 target: "padding_after_icon";
10031 target: "icon_rect";
10033 program { name: "disable";
10034 signal: "elm,state,disabled";
10036 action: STATE_SET "disabled" 0.0;
10037 target: "button_image";
10038 target: "disabler";
10039 after: "disable_text";
10041 program { name: "disable_text";
10045 get_state(PART:"elm.text", st, 30, vl);
10046 if (!strcmp(st, "visible"))
10047 set_state(PART:"elm.text", "disabled_visible", 0.0);
10049 set_state(PART:"elm.text", "disabled", 0.0);
10050 set_int(button_state, BUTTON_STATE_DISABLED);
10053 program { name: "enable";
10054 signal: "elm,state,enabled";
10056 action: STATE_SET "default" 0.0;
10057 target: "button_image";
10058 target: "disabler";
10059 after: "enable_text";
10061 program { name: "enable_text";
10065 get_state(PART:"elm.text", st, 30, vl);
10066 if (!strcmp(st, "disabled_visible"))
10067 set_state(PART:"elm.text", "visible", 0.0);
10069 set_state(PART:"elm.text", "default", 0.0);
10070 set_int(button_state, BUTTON_STATE_ENABLED);
10073 program { name: "focused";
10074 //signal: "elm,action,focus";
10076 action: STATE_SET "focused" 0.0;
10077 target: "button_image";
10078 target: "elm.text";
10080 program { name: "unfocused";
10081 //signal: "elm,action,unfocus";
10083 action: STATE_SET "default" 0.0;
10084 target: "button_image";
10085 after: "unfocus_text";
10087 program { name: "unfocus_text";
10088 action: STATE_SET "visible" 0.0;
10089 target: "elm.text";
10094 ///////////////////////////////////////////////////////////////////////////////////////
10095 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10096 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10098 image: image_normal COMP; \
10099 image: image_press COMP; \
10100 image: "00_title_btn_bg_press.png" COMP; \
10103 part { name: "button_image"; \
10105 description { state: "default" 0.0; \
10106 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10107 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10111 state: "clicked" 0.0; \
10112 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10113 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10115 normal: "00_title_btn_bg_press.png"; \
10116 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10121 state: "disabled" 0.0; \
10122 inherit: "default" 0.0; \
10124 description { state: "focused" 0.0; \
10125 inherit: "default" 0.0;\
10128 part { name: "icon_part"; \
10130 description { state: "default" 0.0; \
10131 min: min_width min_height; \
10132 max: min_width min_height; \
10133 rel1.to: "button_image"; \
10134 rel2.to: "button_image"; \
10135 image.normal: image_normal; \
10138 state: "clicked" 0.0; \
10139 inherit: "default" 0.0; \
10140 image.normal: image_press; \
10143 state: "disabled" 0.0; \
10144 inherit: "default" 0.0; \
10145 color: 127 127 127 127; \
10148 part { name: "over1"; \
10150 ignore_flags: ON_HOLD; \
10151 description { state: "default" 0.0; \
10155 part { name: "over2"; \
10156 repeat_events: 1; \
10157 description { state: "default" 0.0; \
10161 part { name: "disabler"; \
10163 description { state: "default" 0.0; \
10167 description { state: "disabled" 0.0; \
10168 inherit: "default" 0.0; \
10174 program { name: "button_click"; \
10175 signal: "mouse,down,1"; \
10177 action: SIGNAL_EMIT "elm,action,press" ""; \
10178 after: "button_click_anim"; \
10180 program { name: "button_click_anim"; \
10181 action: STATE_SET "clicked" 0.0; \
10182 target: "button_image"; \
10183 target: "icon_part"; \
10185 program { name: "button_unclick"; \
10186 signal: "mouse,up,1"; \
10188 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10189 after: "button_unclick_anim"; \
10191 program { name: "button_unclick_anim"; \
10192 action: STATE_SET "default" 0.0; \
10193 target: "button_image"; \
10194 target: "icon_part"; \
10196 program { name: "touch_snd"; \
10197 signal: "mouse,clicked,1"; \
10199 action: PLAY_SAMPLE "touch_sound" 1.0; \
10200 after: button_unclick3; \
10202 program { name: "button_unclick3"; \
10203 action: SIGNAL_EMIT "elm,action,click" ""; \
10205 program { name: "disable"; \
10206 signal: "elm,state,disabled"; \
10208 action: STATE_SET "disabled" 0.0; \
10209 target: "disabler"; \
10210 target: "button_image"; \
10211 target: "icon_part"; \
10213 program { name: "enable"; \
10214 signal: "elm,state,enabled"; \
10216 action: STATE_SET "default" 0.0; \
10217 target: "disabler"; \
10218 target: "button_image"; \
10219 target: "icon_part"; \
10223 ///////////////////////////////////////////////////////////////////////////////////////
10224 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_HEIGHT_INC)
10226 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("plus", "00_button_plus.png", "00_button_plus_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_HEIGHT_INC)
10228 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("more", "00_winset_more.png", "00_winset_more_press.png", BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_HEIGHT_INC)
10230 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("search", "00_title_icon_search.png", "00_title_icon_search_press.png", BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_HEIGHT_INC)
10232 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("previous", "00_winset_Back.png", "00_winset_Back.png", BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_HEIGHT_INC)
10234 /////////////////////////////////////////////////////////////////////////////////////////
10235 group { name: "elm/button/base/naviframe/more/default";
10237 image: "00_winset_more.png" COMP;
10238 image: "00_winset_more_press.png" COMP;
10239 image: "00_title_btn_bg_press.png" COMP;
10242 part { name: "button_image";
10244 description { state: "default" 0.0;
10245 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10246 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10249 description { state: "clicked" 0.0;
10250 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10251 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10253 normal: "00_title_btn_bg_press.png";
10254 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10258 description { state: "disabled" 0.0;
10259 inherit: "default" 0.0;
10261 description { state: "focused" 0.0;
10262 inherit: "default" 0.0;
10265 part { name: "more_image";
10268 description { state: "default" 0.0;
10269 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10270 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10271 rel1.to: "button_image";
10272 rel2.to: "button_image";
10273 image.normal: "00_winset_more.png";
10275 description { state: "clicked" 0.0;
10276 inherit: "default" 0.0;
10277 image.normal: "00_winset_more_press.png";
10279 description { state: "disabled" 0.0;
10280 inherit: "default" 0.0;
10281 color: 255 255 255 127;
10284 part { name: "over2";
10287 ignore_flags: ON_HOLD;
10288 description { state: "default" 0.0;
10292 part { name: "over3";
10295 description { state: "default" 0.0;
10299 part { name: "disabler";
10301 description { state: "default" 0.0;
10305 description { state: "disabled" 0.0;
10306 inherit: "default" 0.0;
10312 program { name: "button_click";
10313 signal: "mouse,down,1";
10315 action: SIGNAL_EMIT "elm,action,press" "";
10316 after: "button_click_anim";
10318 program { name: "button_click_anim";
10319 action: STATE_SET "clicked" 0.0;
10320 target: "button_image";
10321 target: "more_image";
10323 program { name: "button_unclick";
10324 signal: "mouse,up,1";
10326 action: SIGNAL_EMIT "elm,action,unpress" "";
10327 after: "button_unclick_anim";
10329 program { name: "button_unclick_anim";
10330 action: STATE_SET "default" 0.0;
10331 target: "button_image";
10332 target: "more_image";
10334 program { name: "touch_snd";
10335 signal: "mouse,clicked,1";
10337 action: PLAY_SAMPLE "touch_sound" 1.0;
10338 after: button_unclick3;
10340 program { name: "button_unclick3";
10341 action: SIGNAL_EMIT "elm,action,click" "";
10343 program { name: "disable";
10344 signal: "elm,state,disabled";
10346 action: STATE_SET "disabled" 0.0;
10347 target: "disabler";
10348 target: "button_image";
10349 target: "more_image";
10351 program { name: "enable";
10352 signal: "elm,state,enabled";
10354 action: STATE_SET "default" 0.0;
10355 target: "disabler";
10356 target: "button_image";
10357 target: "more_image";
10362 ///////////////////////////////////////////////////////////////////////////////////////
10363 group { name: "elm/button/base/tickernoti";
10365 image: "00_button_06_normal.png" COMP;
10366 image: "00_button_06_press.png" COMP;
10367 image: "00_button_06_dim.png" COMP;
10368 image: "00_button_06_normal_focus.png" COMP;
10371 public button_state = BUTTON_STATE_ENABLED;
10374 part { name: "button_image";
10376 description { state: "default" 0.0;
10378 normal: "00_button_06_normal.png";
10379 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10383 description { state: "clicked" 0.0;
10384 inherit: "default" 0.0;
10385 image.normal: "00_button_06_press.png";
10387 description { state: "disabled" 0.0;
10388 inherit: "default" 0.0;
10389 image.normal: "00_button_06_dim.png";
10391 description { state: "focused" 0.0;
10392 inherit: "default" 0.0;
10393 image.normal: "00_button_06_normal_focus.png";
10396 part { name: "padding_left_top";
10400 description { state: "default" 0.0;
10402 rel2.relative: 0.0 0.0;
10403 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10412 description { state: "default" 0.0;
10413 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10416 description { state: "visible" 0.0;
10417 inherit: "default" 0.0;
10418 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10420 description { state: "icononly" 0.0;
10421 inherit: "default" 0.0;
10422 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10425 part { name: "padding_right_bottom";
10429 description { state: "default" 0.0;
10431 rel1.relative: 1.0 1.0;
10432 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10437 part { name: "icon_rect";
10441 description { state: "default" 0.0;
10447 to: "padding_left_top";
10451 to_x: "padding_left_top";
10452 to_y: "padding_right_bottom";
10456 description { state: "visible" 0.0;
10458 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10459 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10463 to: "padding_left_top";
10467 to_x: "padding_left_top";
10468 to_y: "padding_right_bottom";
10472 description { state: "icononly" 0.0;
10473 inherit: "default" 0.0;
10476 part { name: "padding_after_icon";
10480 description { state: "default" 0.0; //when only icon or no icon is there
10486 rel2.to: "icon_rect";
10491 description { state: "visible" 0.0;
10498 rel2.to: "icon_rect";
10500 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10502 description { state: "icononly" 0.0;
10503 inherit: "default" 0.0;
10506 part { name: "padding_before_text";
10510 description { state: "default" 0.0; //when only icon or no icon is there
10515 to_y: "padding_left_top";
10520 to_y: "padding_right_bottom";
10523 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10527 part { name: "elm.swallow.content";
10530 clip_to: "clipper";
10531 description { state: "default" 0.0;
10536 to: "padding_left_top";
10540 to_x: "padding_left_top";
10541 to_y: "padding_right_bottom";
10545 description { state: "visible" 0.0;
10547 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10548 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10552 to_x: "padding_before_text";
10553 to_y: "padding_left_top";
10557 to_x: "padding_before_text";
10558 to_y: "padding_right_bottom";
10561 description { state: "icononly" 0.0;
10562 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10563 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10566 part { name: "elm.text";
10570 clip_to: "clipper";
10571 description { state: "default" 0.0;
10575 to_x: "padding_after_icon";
10576 to_y: "padding_left_top";
10580 to: "padding_right_bottom";
10582 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
10584 font: "SLP:style=Medium";
10585 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
10588 text_class: "slp_medium";
10591 description { state: "visible" 0.0;
10592 inherit: "default" 0.0;
10595 description { state: "clicked" 0.0;
10596 inherit: "default" 0.0;
10598 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10600 description { state: "disabled" 0.0;
10601 inherit: "default" 0.0;
10604 description { state: "disabled_visible" 0.0;
10605 inherit: "default" 0.0;
10606 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
10609 description { state: "focused" 0.0;
10610 inherit: "default" 0.0;
10612 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10615 part { name: "over2";
10618 ignore_flags: ON_HOLD;
10619 description { state: "default" 0.0;
10623 part { name: "over3";
10626 description { state: "default" 0.0;
10630 part { name: "clipper";
10632 description { state: "default" 0.0;
10633 color: 255 255 255 255;
10636 part { name: "disabler";
10638 description { state: "default" 0.0;
10642 description { state: "disabled" 0.0;
10643 inherit: "default" 0.0;
10649 program { name: "button_click";
10650 signal: "mouse,down,1";
10652 action: SIGNAL_EMIT "elm,action,press" "";
10653 after: "button_click_anim";
10655 program { name: "button_click_anim";
10656 action: STATE_SET "clicked" 0.0;
10657 target: "button_image";
10658 after: "text_clicked";
10660 program { name: "text_clicked";
10664 get_state(PART:"elm.text", st, 30, vl);
10665 if (!strcmp(st, "visible"))
10666 set_state(PART:"elm.text", "clicked", 0.0);
10669 program { name: "button_unpress";
10670 action: SIGNAL_EMIT "elm,action,unpress" "";
10672 program { name: "button_mouseout_clicked";
10673 signal: "mouse,up,1";
10678 get_state(PART:"elm.swallow.content", st, 30, vl);
10679 if (strcmp(st, "icononly"))
10681 emit("elm,action,default,text,set", "");
10682 set_state(PART:"elm.text", "visible", 0.0);
10684 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10685 set_state(PART:"button_image", "default", 0.0);
10687 after: button_unpress;
10689 program { name: "touch_snd";
10690 signal: "mouse,clicked,1";
10692 action: PLAY_SAMPLE "touch_sound" 1.0;
10693 after: button_unclick3;
10695 program { name: "button_unclick3";
10696 action: SIGNAL_EMIT "elm,action,click" "";
10698 program { name: "text_show";
10699 signal: "elm,state,text,visible";
10704 get_state(PART:"elm.swallow.content", st, 30, vl);
10705 if (!strcmp(st, "icononly"))
10707 set_state(PART:"elm.swallow.content", "visible", 0.0);
10708 set_state(PART:"icon_rect", "visible", 0.0);
10709 set_state(PART:"padding_after_icon", "visible", 0.0);
10710 set_state(PART:"bg", "visible", 0.0);
10712 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10713 set_state(PART:"elm.text", "visible", 0.0);
10715 set_state(PART:"elm.text", "disabled_visible", 0.0);
10718 program { name: "text_hide";
10719 signal: "elm,state,text,hidden";
10724 get_state(PART:"elm.swallow.content", st, 30, vl);
10725 if (!strcmp(st, "visible"))
10727 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10728 set_state(PART:"icon_rect", "icononly", 0.0);
10729 set_state(PART:"padding_after_icon", "icononly", 0.0);
10730 set_state(PART:"bg", "icononly", 0.0);
10732 set_state(PART:"elm.text", "default", 0.0);
10735 program { name: "icon_show";
10736 signal: "elm,state,icon,visible";
10741 get_state(PART:"elm.text", st, 30, vl);
10742 if (!strcmp(st, "visible"))
10744 set_state(PART:"elm.swallow.content", "visible", 0.0);
10745 set_state(PART:"icon_rect", "visible", 0.0);
10746 set_state(PART:"padding_after_icon", "visible", 0.0);
10747 set_state(PART:"bg", "visible", 0.0);
10751 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10752 set_state(PART:"icon_rect", "icononly", 0.0);
10753 set_state(PART:"padding_after_icon", "icononly", 0.0);
10754 set_state(PART:"bg", "icononly", 0.0);
10758 program { name: "icon_hide";
10759 signal: "elm,state,icon,hidden";
10761 action: STATE_SET "default" 0.0;
10762 target: "elm.swallow.content";
10763 target: "padding_after_icon";
10764 target: "icon_rect";
10767 program { name: "disable";
10768 signal: "elm,state,disabled";
10770 action: STATE_SET "disabled" 0.0;
10771 target: "button_image";
10772 target: "disabler";
10773 after: "disable_text";
10775 program { name: "disable_text";
10779 get_state(PART:"elm.text", st, 30, vl);
10780 if (!strcmp(st, "visible"))
10781 set_state(PART:"elm.text", "disabled_visible", 0.0);
10783 set_state(PART:"elm.text", "disabled", 0.0);
10784 set_int(button_state, BUTTON_STATE_DISABLED);
10787 program { name: "enable";
10788 signal: "elm,state,enabled";
10790 action: STATE_SET "default" 0.0;
10791 target: "button_image";
10792 target: "disabler";
10793 after: "enable_text";
10795 program { name: "enable_text";
10799 get_state(PART:"elm.text", st, 30, vl);
10800 if (!strcmp(st, "disabled_visible"))
10801 set_state(PART:"elm.text", "visible", 0.0);
10803 set_state(PART:"elm.text", "default", 0.0);
10804 set_int(button_state, BUTTON_STATE_ENABLED);
10807 program { name: "focused";
10808 //signal: "elm,action,focus";
10810 action: STATE_SET "focused" 0.0;
10811 target: "button_image";
10812 target: "elm.text";
10814 program { name: "unfocused";
10815 //signal: "elm,action,unfocus";
10817 action: STATE_SET "default" 0.0;
10818 target: "button_image";
10819 after: "unfocus_text";
10821 program { name: "unfocus_text";
10822 action: STATE_SET "visible" 0.0;
10823 target: "elm.text";
10828 ///////////////////////////////////////////////////////////////////////////////////////
10829 group { name: "elm/button/base/expandable_number";
10830 alias: "elm/button/base/text_only/expandable_number";
10832 image: "00_button_05_normal.png" COMP;
10833 image: "00_button_05_press.png" COMP;
10834 image: "00_button_05_dim.png" COMP;
10835 image: "00_button_05_normal_focus.png" COMP;
10836 image: "00_arrow_expand.png" COMP;
10837 image: "00_arrow_expand_press.png" COMP;
10838 image: "00_arrow_expand_dim.png" COMP;
10841 public button_state = BUTTON_STATE_ENABLED;
10844 part { name: "button_image";
10846 description { state: "default" 0.0;
10847 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10848 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10850 normal: "00_button_05_normal.png";
10851 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
10855 description { state: "clicked" 0.0;
10856 inherit: "default" 0.0;
10857 image.normal: "00_button_05_press.png";
10859 description { state: "disabled" 0.0;
10860 inherit: "default" 0.0;
10861 image.normal: "00_button_05_dim.png";
10863 description { state: "focused" 0.0;
10864 inherit: "default" 0.0;
10865 image.normal: "00_button_05_normal_focus.png";
10868 part { name: "padding_left_top";
10872 description { state: "default" 0.0;
10874 rel2.relative: 0.0 0.0;
10875 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10880 part { name: "padding_right_bottom";
10884 description { state: "default" 0.0;
10886 rel1.relative: 1.0 1.0;
10887 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10892 part { name: "icon_rect";
10896 description { state: "default" 0.0;
10898 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10899 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10903 to_x: "padding_right_bottom";
10904 to_y: "padding_left_top";
10908 to: "padding_right_bottom";
10914 part { name: "arrow_expand";
10917 description { state: "default" 0.0;
10919 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10920 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10922 rel1.to: "icon_rect";
10923 rel2.to: "icon_rect";
10924 image.normal:"00_arrow_expand.png";
10926 description { state: "clicked" 0.0;
10927 inherit: "default" 0.0;
10928 image.normal:"00_arrow_expand_press.png";
10930 description { state: "disabled" 0.0;
10931 inherit: "default" 0.0;
10932 image.normal:"00_arrow_expand_dim.png";
10935 part { name: "elm.text";
10939 description { state: "default" 0.0;
10940 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10941 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10945 to: "padding_left_top";
10949 to_x:"padding_left_top";
10950 to_y:"padding_right_bottom";
10953 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10955 font: "SLP:style=Medium";
10956 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
10960 text_class: "slp_medium";
10963 description { state: "visible" 0.0;
10964 inherit: "default" 0.0;
10966 description { state: "clicked" 0.0;
10967 inherit: "default" 0.0;
10968 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10970 description { state: "disabled" 0.0;
10971 inherit: "default" 0.0;
10974 description { state: "disabled_visible" 0.0;
10975 inherit: "default" 0.0;
10976 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10978 description { state: "focused" 0.0;
10979 inherit: "default" 0.0;
10980 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10983 part { name: "over2";
10986 ignore_flags: ON_HOLD;
10987 description { state: "default" 0.0;
10991 part { name: "over3";
10994 description { state: "default" 0.0;
10998 part { name: "disabler";
11000 description { state: "default" 0.0;
11004 description { state: "disabled" 0.0;
11005 inherit: "default" 0.0;
11011 program { name: "button_click";
11012 signal: "mouse,down,1";
11014 action: SIGNAL_EMIT "elm,action,press" "";
11015 after: "button_click_anim";
11017 program { name: "button_click_anim";
11018 action: STATE_SET "clicked" 0.0;
11019 target: "button_image";
11020 target: "arrow_expand";
11021 after: "text_clicked";
11023 program { name: "text_clicked";
11027 get_state(PART:"elm.text", st, 30, vl);
11028 if (!strcmp(st, "visible"))
11029 set_state(PART:"elm.text", "clicked", 0.0);
11032 program { name: "button_unpress";
11033 action: SIGNAL_EMIT "elm,action,unpress" "";
11035 program { name: "button_mouseout_clicked";
11036 signal: "mouse,up,1";
11039 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11041 set_state(PART:"button_image", "default", 0.0);
11042 set_state(PART:"elm.text", "visible", 0.0);
11043 set_state(PART:"arrow_expand", "default", 0.0);
11046 after: button_unpress;
11048 program { name: "touch_snd";
11049 signal: "mouse,clicked,1";
11051 action: PLAY_SAMPLE "touch_sound" 1.0;
11052 after: button_unclick3;
11054 program { name: "button_unclick3";
11055 action: SIGNAL_EMIT "elm,action,click" "";
11057 program { name: "text_show";
11058 signal: "elm,state,text,visible";
11061 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11062 set_state(PART:"elm.text", "visible", 0.0);
11064 set_state(PART:"elm.text", "disabled_visible", 0.0);
11067 program { name: "text_hide";
11068 signal: "elm,state,text,hidden";
11071 set_state(PART:"elm.text", "default", 0.0);
11074 program { name: "disable";
11075 signal: "elm,state,disabled";
11077 action: STATE_SET "disabled" 0.0;
11078 target: "button_image";
11079 target: "disabler";
11080 after: "disable_text";
11082 program { name: "disable_text";
11086 get_state(PART:"elm.text", st, 30, vl);
11087 if (!strcmp(st, "visible"))
11088 set_state(PART:"elm.text", "disabled_visible", 0.0);
11090 set_state(PART:"elm.text", "disabled", 0.0);
11091 set_int(button_state, BUTTON_STATE_DISABLED);
11094 program { name: "enable";
11095 signal: "elm,state,enabled";
11097 action: STATE_SET "default" 0.0;
11098 target: "button_image";
11099 target: "disabler";
11100 after: "enable_text";
11102 program { name: "enable_text";
11106 get_state(PART:"elm.text", st, 30, vl);
11107 if (!strcmp(st, "disabled_visible"))
11108 set_state(PART:"elm.text", "visible", 0.0);
11110 set_state(PART:"elm.text", "default", 0.0);
11111 set_int(button_state, BUTTON_STATE_ENABLED);
11114 program { name: "focused";
11115 //signal: "elm,action,focus";
11117 action: STATE_SET "focused" 0.0;
11118 target: "button_image";
11119 target: "elm.text";
11121 program { name: "unfocused";
11122 //signal: "elm,action,unfocus";
11124 action: STATE_SET "default" 0.0;
11125 target: "button_image";
11126 after: "unfocus_text";
11128 program { name: "unfocus_text";
11129 action: STATE_SET "visible" 0.0;
11130 target: "elm.text";
11135 #undef BUTTON_STATE_ENABLED
11136 #undef BUTTON_STATE_DISABLED