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;
3206 ///////////////////////////////////////////////////////////////////////////////////////
3207 group { name: "elm/button/base/searchbar/default";
3209 image: "00_search_input_field_bg.png" COMP;
3210 image: "00_button_sweep_press.png" COMP;
3211 image: "00_button_sweep_dim.png" COMP;
3212 image: "00_button_sweep_focus.png" COMP;
3215 public button_state = BUTTON_STATE_ENABLED;
3218 part { name: "button_image";
3220 description { state: "default" 0.0;
3221 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
3223 normal: "00_search_input_field_bg.png";
3224 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
3228 description { state: "clicked" 0.0;
3229 inherit: "default" 0.0;
3231 normal: "00_button_sweep_press.png";
3232 border: BUTTON_SWEEP_BG_BORDER_INC;
3236 description { state: "disabled" 0.0;
3237 inherit: "default" 0.0;
3239 normal: "00_button_sweep_dim.png";
3240 border: BUTTON_SWEEP_BG_BORDER_INC;
3244 description { state: "focused" 0.0;
3245 inherit: "default" 0.0;
3247 normal: "00_button_sweep_focus.png";
3248 border: BUTTON_SWEEP_BG_BORDER_INC;
3253 part { name: "padding_left_top";
3257 description { state: "default" 0.0;
3259 rel2.relative: 0.0 0.0;
3260 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3265 part { name: "padding_right_bottom";
3269 description { state: "default" 0.0;
3271 rel1.relative: 1.0 1.0;
3272 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3277 part { name: "icon_rect";
3281 description { state: "default" 0.0;
3282 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3286 to_x: "elm.swallow.content";
3287 to_y: "padding_left_top";
3291 to_x: "elm.swallow.content";
3292 to_y: "padding_right_bottom";
3298 part { name: "padding_icon_text";
3302 description { state: "default" 0.0; //when only icon or no icon is there
3308 rel2.to: "icon_rect";
3313 description { state: "icononly" 0.0;
3314 inherit: "default" 0.0;
3316 description { state: "visible" 0.0; //when icon is visible
3322 rel2.to: "icon_rect";
3324 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3328 part { name: "elm.swallow.content";
3332 description { state: "default" 0.0;
3337 to: "padding_left_top";
3341 to_x: "padding_left_top";
3342 to_y: "padding_right_bottom";
3346 description { state: "visible" 0.0;
3351 to: "padding_left_top";
3355 to_x: "padding_left_top";
3356 to_y: "padding_right_bottom";
3359 aspect_preference: VERTICAL;
3361 description { state: "icononly" 0.0;
3362 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3365 to: "padding_left_top";
3369 to_x: "padding_left_top";
3370 to_y: "padding_right_bottom";
3374 part { name: "elm.text";
3379 description { state: "default" 0.0;
3383 to_x: "padding_icon_text";
3384 to_y: "padding_left_top";
3388 to: "padding_right_bottom";
3390 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3392 font: "SLP:style=Medium";
3393 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3395 text_class: "slp_medium";
3398 description { state: "visible" 0.0;
3399 inherit: "default" 0.0;
3401 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3403 description { state: "clicked" 0.0;
3404 inherit: "default" 0.0;
3407 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3409 description { state: "disabled" 0.0;
3410 inherit: "default" 0.0;
3413 description { state: "disabled_visible" 0.0;
3414 inherit: "default" 0.0;
3415 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3417 min: BUTTON_SWEEP_TEXT_MIN_INC;
3419 description { state: "focused" 0.0;
3420 inherit: "default" 0.0;
3423 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3426 part { name: "over2";
3429 ignore_flags: ON_HOLD;
3430 description { state: "default" 0.0;
3434 part { name: "over3";
3437 description { state: "default" 0.0;
3441 part { name: "clipper";
3443 description { state: "default" 0.0;
3444 color: 255 255 255 255;
3447 part { name: "disabler";
3449 description { state: "default" 0.0;
3453 description { state: "disabled" 0.0;
3454 inherit: "default" 0.0;
3460 program { name: "button_click";
3461 signal: "mouse,down,1";
3463 action: SIGNAL_EMIT "elm,action,press" "";
3464 after: "button_click_anim";
3466 program { name: "button_click_anim";
3467 action: STATE_SET "clicked" 0.0;
3468 target: "button_image";
3469 after: "text_clicked";
3471 program { name: "text_clicked";
3475 get_state(PART:"elm.text", st, 30, vl);
3476 if (!strcmp(st, "visible"))
3477 set_state(PART:"elm.text", "clicked", 0.0);
3480 program { name: "button_unpress";
3481 action: SIGNAL_EMIT "elm,action,unpress" "";
3483 program { name: "button_mouseout_clicked";
3484 signal: "mouse,up,1";
3489 get_state(PART:"elm.swallow.content", st, 30, vl);
3490 if (strcmp(st, "icononly"))
3492 emit("elm,action,default,text,set", "");
3493 set_state(PART:"elm.text", "visible", 0.0);
3495 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3496 set_state(PART:"button_image", "default", 0.0);
3498 after: button_unpress;
3500 program { name: "touch_snd";
3501 signal: "mouse,clicked,1";
3503 action: PLAY_SAMPLE "touch_sound" 1.0;
3504 after: button_unclick3;
3506 program { name: "button_unclick3";
3507 action: SIGNAL_EMIT "elm,action,click" "";
3509 program { name: "text_show";
3510 signal: "elm,state,text,visible";
3515 get_state(PART:"elm.swallow.content", st, 30, vl);
3516 if (!strcmp(st, "icononly"))
3518 set_state(PART:"elm.swallow.content", "visible", 0.0);
3519 set_state(PART:"padding_icon_text", "visible", 0.0);
3521 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3522 set_state(PART:"elm.text", "visible", 0.0);
3524 set_state(PART:"elm.text", "disabled_visible", 0.0);
3527 program { name: "text_hide";
3528 signal: "elm,state,text,hidden";
3533 get_state(PART:"elm.swallow.content", st, 30, vl);
3534 if (!strcmp(st, "visible"))
3536 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3537 set_state(PART:"padding_icon_text", "icononly", 0.0);
3539 set_state(PART:"elm.text", "default", 0.0);
3542 program { name: "icon_show";
3543 signal: "elm,state,icon,visible";
3548 get_state(PART:"elm.text", st, 30, vl);
3549 if (!strcmp(st, "visible"))
3551 set_state(PART:"elm.swallow.content", "visible", 0.0);
3552 set_state(PART:"padding_icon_text", "visible", 0.0);
3556 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3557 set_state(PART:"padding_icon_text", "icononly", 0.0);
3561 program { name: "icon_hide";
3562 signal: "elm,state,icon,hidden";
3564 action: STATE_SET "default" 0.0;
3565 target: "elm.swallow.content";
3566 target: "padding_icon_text";
3568 program { name: "disable";
3569 signal: "elm,state,disabled";
3571 action: STATE_SET "disabled" 0.0;
3572 target: "button_image";
3574 after: "disable_text";
3576 program { name: "disable_text";
3580 get_state(PART:"elm.text", st, 30, vl);
3581 if (!strcmp(st, "visible"))
3582 set_state(PART:"elm.text", "disabled_visible", 0.0);
3584 set_state(PART:"elm.text", "disabled", 0.0);
3585 set_int(button_state, BUTTON_STATE_DISABLED);
3588 program { name: "enable";
3589 signal: "elm,state,enabled";
3591 action: STATE_SET "default" 0.0;
3592 target: "button_image";
3594 after: "enable_text";
3596 program { name: "enable_text";
3600 get_state(PART:"elm.text", st, 30, vl);
3601 if (!strcmp(st, "disabled_visible"))
3602 set_state(PART:"elm.text", "visible", 0.0);
3604 set_state(PART:"elm.text", "default", 0.0);
3605 set_int(button_state, BUTTON_STATE_ENABLED);
3608 program { name: "focused";
3609 //signal: "elm,action,focus";
3611 action: STATE_SET "focused" 0.0;
3612 target: "button_image";
3615 program { name: "unfocused";
3616 //signal: "elm,action,unfocus";
3618 action: STATE_SET "default" 0.0;
3619 target: "button_image";
3620 after: "unfocus_text";
3622 program { name: "unfocus_text";
3623 action: STATE_SET "visible" 0.0;
3629 ///////////////////////////////////////////////////////////////////////////////////////
3630 group { name: "elm/button/base/sweep/delete";
3632 image: "00_button_sweep_dim.png" COMP;
3633 image: "00_button_sweep_delete.png" COMP;
3634 image: "00_button_sweep_delete_press.png" COMP;
3635 image: "00_button_sweep_focus.png" COMP;
3638 public button_state = BUTTON_STATE_ENABLED;
3641 part { name: "button_image";
3643 description { state: "default" 0.0;
3644 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3646 normal: "00_button_sweep_delete.png";
3647 border: BUTTON_SWEEP_BG_BORDER_INC;
3651 description { state: "clicked" 0.0;
3652 inherit: "default" 0.0;
3653 image.normal: "00_button_sweep_delete_press.png";
3655 description { state: "disabled" 0.0;
3656 inherit: "default" 0.0;
3657 image.normal: "00_button_sweep_dim.png";
3659 description { state: "focused" 0.0;
3660 inherit: "default" 0.0;
3661 image.normal: "00_button_sweep_focus.png";
3664 part { name: "padding_left_top";
3668 description { state: "default" 0.0;
3670 rel2.relative: 0.0 0.0;
3671 min: BUTTON_SWEEP_PADDING_MIN_INC;
3676 part { name: "padding_right_bottom";
3680 description { state: "default" 0.0;
3682 rel1.relative: 1.0 1.0;
3683 min: BUTTON_SWEEP_PADDING_MIN_INC;
3688 part { name: "icon_rect";
3692 description { state: "default" 0.0;
3693 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3697 to_x: "elm.swallow.content";
3698 to_y: "padding_left_top";
3702 to_x: "elm.swallow.content";
3703 to_y: "padding_right_bottom";
3709 part { name: "padding_icon_text";
3713 description { state: "default" 0.0; //when only icon or no icon is there
3719 rel2.to: "icon_rect";
3724 description { state: "icononly" 0.0;
3725 inherit: "default" 0.0;
3727 description { state: "visible" 0.0; //when icon is visible
3733 rel2.to: "icon_rect";
3735 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3739 part { name: "elm.swallow.content";
3743 description { state: "default" 0.0;
3748 to: "padding_left_top";
3752 to_x: "padding_left_top";
3753 to_y: "padding_right_bottom";
3757 description { state: "visible" 0.0;
3762 to: "padding_left_top";
3766 to_x: "padding_left_top";
3767 to_y: "padding_right_bottom";
3770 aspect_preference: VERTICAL;
3772 description { state: "icononly" 0.0;
3773 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3776 to: "padding_left_top";
3780 to_x: "padding_left_top";
3781 to_y: "padding_right_bottom";
3785 part { name: "elm.text";
3790 description { state: "default" 0.0;
3793 to_x: "padding_icon_text";
3794 to_y: "padding_left_top";
3798 to: "padding_right_bottom";
3800 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3802 font: "SLP:style=Medium";
3803 size: BUTTON_SWEEP_FONT_SIZE_INC;
3807 text_class: "slp_medium";
3810 description { state: "visible" 0.0;
3811 inherit: "default" 0.0;
3813 description { state: "clicked" 0.0;
3814 inherit: "default" 0.0;
3815 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3817 description { state: "disabled" 0.0;
3818 inherit: "default" 0.0;
3821 description { state: "disabled_visible" 0.0;
3822 inherit: "default" 0.0;
3823 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3825 description { state: "focused" 0.0;
3826 inherit: "default" 0.0;
3829 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3832 part { name: "over2";
3835 ignore_flags: ON_HOLD;
3836 description { state: "default" 0.0;
3840 part { name: "over3";
3843 description { state: "default" 0.0;
3847 part { name: "clipper";
3849 description { state: "default" 0.0;
3850 color: 255 255 255 255;
3853 part { name: "disabler";
3855 description { state: "default" 0.0;
3859 description { state: "disabled" 0.0;
3860 inherit: "default" 0.0;
3866 program { name: "button_click";
3867 signal: "mouse,down,1";
3869 action: SIGNAL_EMIT "elm,action,press" "";
3870 after: "button_click_anim";
3872 program { name: "button_click_anim";
3873 action: STATE_SET "clicked" 0.0;
3874 target: "button_image";
3875 after: "text_clicked";
3877 program { name: "text_clicked";
3881 get_state(PART:"elm.text", st, 30, vl);
3882 if (!strcmp(st, "visible"))
3883 set_state(PART:"elm.text", "clicked", 0.0);
3886 program { name: "button_unpress";
3887 action: SIGNAL_EMIT "elm,action,unpress" "";
3889 program { name: "button_mouseout_clicked";
3890 signal: "mouse,up,1";
3895 get_state(PART:"elm.swallow.content", st, 30, vl);
3896 if (strcmp(st, "icononly"))
3898 emit("elm,action,default,text,set", "");
3899 set_state(PART:"elm.text", "visible", 0.0);
3901 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3902 set_state(PART:"button_image", "default", 0.0);
3904 after: button_unpress;
3906 program { name: "touch_snd";
3907 signal: "mouse,clicked,1";
3909 action: PLAY_SAMPLE "touch_sound" 1.0;
3910 after: button_unclick3;
3912 program { name: "button_unclick3";
3913 action: SIGNAL_EMIT "elm,action,click" "";
3915 program { name: "text_show";
3916 signal: "elm,state,text,visible";
3921 get_state(PART:"elm.swallow.content", st, 30, vl);
3922 if (!strcmp(st, "icononly"))
3924 set_state(PART:"elm.swallow.content", "visible", 0.0);
3925 set_state(PART:"padding_icon_text", "visible", 0.0);
3927 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3928 set_state(PART:"elm.text", "visible", 0.0);
3930 set_state(PART:"elm.text", "disabled_visible", 0.0);
3933 program { name: "text_hide";
3934 signal: "elm,state,text,hidden";
3939 get_state(PART:"elm.swallow.content", st, 30, vl);
3940 if (!strcmp(st, "visible"))
3942 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3943 set_state(PART:"padding_icon_text", "icononly", 0.0);
3945 set_state(PART:"elm.text", "default", 0.0);
3948 program { name: "icon_show";
3949 signal: "elm,state,icon,visible";
3954 get_state(PART:"elm.text", st, 30, vl);
3955 if (!strcmp(st, "visible"))
3957 set_state(PART:"elm.swallow.content", "visible", 0.0);
3958 set_state(PART:"padding_icon_text", "visible", 0.0);
3962 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3963 set_state(PART:"padding_icon_text", "icononly", 0.0);
3967 program { name: "icon_hide";
3968 signal: "elm,state,icon,hidden";
3970 action: STATE_SET "default" 0.0;
3971 target: "elm.swallow.content";
3972 target: "padding_icon_text";
3974 program { name: "disable";
3975 signal: "elm,state,disabled";
3977 action: STATE_SET "disabled" 0.0;
3978 target: "button_image";
3980 after: "disable_text";
3982 program { name: "disable_text";
3986 get_state(PART:"elm.text", st, 30, vl);
3987 if (!strcmp(st, "visible"))
3988 set_state(PART:"elm.text", "disabled_visible", 0.0);
3990 set_state(PART:"elm.text", "disabled", 0.0);
3991 set_int(button_state, BUTTON_STATE_DISABLED);
3994 program { name: "enable";
3995 signal: "elm,state,enabled";
3997 action: STATE_SET "default" 0.0;
3998 target: "button_image";
4000 after: "enable_text";
4002 program { name: "enable_text";
4006 get_state(PART:"elm.text", st, 30, vl);
4007 if (!strcmp(st, "disabled_visible"))
4008 set_state(PART:"elm.text", "visible", 0.0);
4010 set_state(PART:"elm.text", "default", 0.0);
4011 set_int(button_state, BUTTON_STATE_ENABLED);
4014 program { name: "focused";
4015 //signal: "elm,action,focus";
4017 action: STATE_SET "focused" 0.0;
4018 target: "button_image";
4021 program { name: "unfocused";
4022 //signal: "elm,action,unfocus";
4024 action: STATE_SET "default" 0.0;
4025 target: "button_image";
4026 after: "unfocus_text";
4028 program { name: "unfocus_text";
4029 action: STATE_SET "visible" 0.0;
4035 ///////////////////////////////////////////////////////////////////////////////////////
4036 group { name: "elm/button/base/popup_button/default";
4037 alias: "elm/button/base/popup_button/menustyle";
4038 alias: "elm/button/base/popup_button/liststyle";
4039 alias: "elm/button/base/popup_button/volumebarstyle";
4040 alias: "elm/button/base/popup_button/customstyle";
4041 alias: "elm/button/base/popup_button/verticalbuttonstyle";
4043 image: "00_button_popup_normal.png" COMP;
4044 image: "00_button_popup_press.png" COMP;
4045 image: "00_button_popup_normal_focus.png" COMP;
4046 image: "00_button_popup_dim.png" COMP;
4049 public button_state = BUTTON_STATE_ENABLED;
4052 part { name: "button_image";
4054 description { state: "default" 0.0;
4055 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4057 normal: "00_button_popup_normal.png";
4058 border: BUTTON_POPUP_BG_BORDER_INC;
4062 description { state: "clicked" 0.0;
4063 inherit: "default" 0.0;
4064 image.normal: "00_button_popup_press.png";
4066 description { state: "disabled" 0.0;
4067 inherit: "default" 0.0;
4068 image.normal: "00_button_popup_dim.png";
4070 description { state: "focused" 0.0;
4071 inherit: "default" 0.0;
4072 image.normal: "00_button_popup_normal_focus.png";
4075 part { name: "padding_left_top";
4079 description { state: "default" 0.0;
4081 rel2.relative: 0.0 0.0;
4082 min: BUTTON_POPUP_PADDING_MIN_INC;
4087 part { name: "padding_right_bottom";
4090 description { state: "default" 0.0;
4092 rel1.relative: 1.0 1.0;
4093 min: BUTTON_POPUP_PADDING_MIN_INC;
4098 part { name: "padding_icon_text";
4101 description { state: "default" 0.0; //when only icon or no icon is there
4105 to: "elm.swallow.content";
4107 rel2.to: "elm.swallow.content";
4112 description { state: "icononly" 0.0;
4113 inherit: "default" 0.0;
4115 description { state: "visible" 0.0; //when icon is visible
4116 inherit: "default" 0.0;
4117 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4120 part { name: "elm.swallow.content";
4124 description { state: "default" 0.0;
4129 to: "padding_left_top";
4133 to_x: "padding_left_top";
4134 to_y: "padding_right_bottom";
4138 description { state: "visible" 0.0;
4139 inherit: "default" 0.0;
4143 aspect_preference: VERTICAL;
4145 description { state: "icononly" 0.0;
4146 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4149 to: "padding_left_top";
4153 to_x: "padding_left_top";
4154 to_y: "padding_right_bottom";
4158 part { name: "elm.text";
4163 description { state: "default" 0.0;
4167 to_x: "padding_icon_text";
4168 to_y: "padding_left_top";
4172 to: "padding_right_bottom";
4174 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4176 font: "SLP:style=Medium";
4177 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4179 text_class: "slp_medium";
4182 description { state: "visible" 0.0;
4183 inherit: "default" 0.0;
4185 min: BUTTON_POPUP_TEXT_MIN_INC;
4187 description { state: "clicked" 0.0;
4188 inherit: "default" 0.0;
4191 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4193 description { state: "disabled" 0.0;
4194 inherit: "default" 0.0;
4197 description { state: "disabled_visible" 0.0;
4198 inherit: "default" 0.0;
4199 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4201 min: BUTTON_POPUP_TEXT_MIN_INC;
4203 description { state: "focused" 0.0;
4204 inherit: "default" 0.0;
4207 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4210 part { name: "over2";
4213 ignore_flags: ON_HOLD;
4214 description { state: "default" 0.0;
4218 part { name: "over3";
4221 description { state: "default" 0.0;
4225 part { name: "clipper";
4227 description { state: "default" 0.0;
4228 color: 255 255 255 255;
4231 part { name: "disabler";
4233 description { state: "default" 0.0;
4237 description { state: "disabled" 0.0;
4238 inherit: "default" 0.0;
4244 program { name: "button_click";
4245 signal: "mouse,down,1";
4247 action: SIGNAL_EMIT "elm,action,press" "";
4248 after: "button_click_anim";
4250 program { name: "button_click_anim";
4251 action: STATE_SET "clicked" 0.0;
4252 target: "button_image";
4253 after: "text_clicked";
4255 program { name: "text_clicked";
4259 get_state(PART:"elm.text", st, 30, vl);
4260 if (!strcmp(st, "visible"))
4261 set_state(PART:"elm.text", "clicked", 0.0);
4264 program { name: "button_unpress";
4265 action: SIGNAL_EMIT "elm,action,unpress" "";
4267 program { name: "button_mouseout_clicked";
4268 signal: "mouse,up,1";
4273 get_state(PART:"elm.swallow.content", st, 30, vl);
4274 if (strcmp(st, "icononly"))
4276 emit("elm,action,default,text,set", "");
4277 set_state(PART:"elm.text", "visible", 0.0);
4279 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4280 set_state(PART:"button_image", "default", 0.0);
4282 after: button_unpress;
4284 program { name: "touch_snd";
4285 signal: "mouse,clicked,1";
4287 action: PLAY_SAMPLE "touch_sound" 1.0;
4288 after: button_unclick3;
4290 program { name: "button_unclick3";
4291 action: SIGNAL_EMIT "elm,action,click" "";
4293 program { name: "text_show";
4294 signal: "elm,state,text,visible";
4299 get_state(PART:"elm.swallow.content", st, 30, vl);
4300 if (!strcmp(st, "icononly"))
4302 set_state(PART:"elm.swallow.content", "visible", 0.0);
4303 set_state(PART:"padding_icon_text", "visible", 0.0);
4305 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4306 set_state(PART:"elm.text", "visible", 0.0);
4308 set_state(PART:"elm.text", "disabled_visible", 0.0);
4311 program { name: "text_hide";
4312 signal: "elm,state,text,hidden";
4317 get_state(PART:"elm.swallow.content", st, 30, vl);
4318 if (!strcmp(st, "visible"))
4320 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4321 set_state(PART:"padding_icon_text", "icononly", 0.0);
4323 set_state(PART:"elm.text", "default", 0.0);
4326 program { name: "icon_show";
4327 signal: "elm,state,icon,visible";
4332 get_state(PART:"elm.text", st, 30, vl);
4333 if (!strcmp(st, "visible"))
4335 set_state(PART:"elm.swallow.content", "visible", 0.0);
4336 set_state(PART:"padding_icon_text", "visible", 0.0);
4340 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4341 set_state(PART:"padding_icon_text", "icononly", 0.0);
4345 program { name: "icon_hide";
4346 signal: "elm,state,icon,hidden";
4348 action: STATE_SET "default" 0.0;
4349 target: "elm.swallow.content";
4350 target: "padding_icon_text";
4352 program { name: "disable";
4353 signal: "elm,state,disabled";
4355 action: STATE_SET "disabled" 0.0;
4356 target: "button_image";
4358 after: "disable_text";
4360 program { name: "disable_text";
4364 get_state(PART:"elm.text", st, 30, vl);
4365 if (!strcmp(st, "visible"))
4366 set_state(PART:"elm.text", "disabled_visible", 0.0);
4368 set_state(PART:"elm.text", "disabled", 0.0);
4369 set_int(button_state, BUTTON_STATE_DISABLED);
4372 program { name: "enable";
4373 signal: "elm,state,enabled";
4375 action: STATE_SET "default" 0.0;
4376 target: "button_image";
4378 after: "enable_text";
4380 program { name: "enable_text";
4384 get_state(PART:"elm.text", st, 30, vl);
4385 if (!strcmp(st, "disabled_visible"))
4386 set_state(PART:"elm.text", "visible", 0.0);
4388 set_state(PART:"elm.text", "default", 0.0);
4389 set_int(button_state, BUTTON_STATE_ENABLED);
4392 program { name: "focused";
4393 //signal: "elm,action,focus";
4395 action: STATE_SET "focused" 0.0;
4396 target: "button_image";
4399 program { name: "unfocused";
4400 //signal: "elm,action,unfocus";
4402 action: STATE_SET "default" 0.0;
4403 target: "button_image";
4404 after: "unfocus_text";
4406 program { name: "unfocus_text";
4407 action: STATE_SET "visible" 0.0;
4412 ///////////////////////////////////////////////////////////////////////////////////////
4413 group { name: "elm/button/base/popup_button/default/multiline";
4415 image: "00_button_popup_normal.png" COMP;
4416 image: "00_button_popup_press.png" COMP;
4417 image: "00_button_popup_normal_focus.png" COMP;
4418 image: "00_button_popup_dim.png" COMP;
4421 style { name: "btn_popup_multiline_style";
4422 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4429 public button_state = BUTTON_STATE_ENABLED;
4432 part { name: "button_image";
4434 description { state: "default" 0.0;
4435 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4437 normal: "00_button_popup_normal.png";
4438 border: BUTTON_POPUP_BG_BORDER_INC;
4442 description { state: "clicked" 0.0;
4443 inherit: "default" 0.0;
4444 image.normal: "00_button_popup_press.png";
4446 description { state: "disabled" 0.0;
4447 inherit: "default" 0.0;
4448 image.normal: "00_button_popup_dim.png";
4450 description { state: "focused" 0.0;
4451 inherit: "default" 0.0;
4452 image.normal: "00_button_popup_normal_focus.png";
4455 part { name: "padding_left_top";
4459 description { state: "default" 0.0;
4461 rel2.relative: 0.0 0.0;
4462 min: BUTTON_POPUP_PADDING_MIN_INC;
4467 part { name: "padding_right_bottom";
4470 description { state: "default" 0.0;
4472 rel1.relative: 1.0 1.0;
4473 min: BUTTON_POPUP_PADDING_MIN_INC;
4478 part { name: "padding_icon_text";
4481 description { state: "default" 0.0; //when only icon or no icon is there
4485 to: "elm.swallow.content";
4487 rel2.to: "elm.swallow.content";
4492 description { state: "icononly" 0.0;
4493 inherit: "default" 0.0;
4495 description { state: "visible" 0.0; //when icon is visible
4496 inherit: "default" 0.0;
4497 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4500 part { name: "elm.swallow.content";
4504 description { state: "default" 0.0;
4509 to: "padding_left_top";
4513 to_x: "padding_left_top";
4514 to_y: "padding_right_bottom";
4518 description { state: "visible" 0.0;
4519 inherit: "default" 0.0;
4523 aspect_preference: VERTICAL;
4525 description { state: "icononly" 0.0;
4526 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4529 to: "padding_left_top";
4533 to_x: "padding_left_top";
4534 to_y: "padding_right_bottom";
4538 part { name: "elm.text";
4543 description { state: "default" 0.0;
4547 to_x: "padding_icon_text";
4548 to_y: "padding_left_top";
4552 to: "padding_right_bottom";
4554 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4556 style: "btn_popup_multiline_style";
4561 description { state: "visible" 0.0;
4562 inherit: "default" 0.0;
4564 min: BUTTON_POPUP_TEXT_MIN_INC;
4566 description { state: "clicked" 0.0;
4567 inherit: "default" 0.0;
4570 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4572 description { state: "disabled" 0.0;
4573 inherit: "default" 0.0;
4576 description { state: "disabled_visible" 0.0;
4577 inherit: "default" 0.0;
4578 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4580 min: BUTTON_POPUP_TEXT_MIN_INC;
4582 description { state: "focused" 0.0;
4583 inherit: "default" 0.0;
4586 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4589 part { name: "over2";
4592 ignore_flags: ON_HOLD;
4593 description { state: "default" 0.0;
4597 part { name: "over3";
4600 description { state: "default" 0.0;
4604 part { name: "clipper";
4606 description { state: "default" 0.0;
4607 color: 255 255 255 255;
4610 part { name: "disabler";
4612 description { state: "default" 0.0;
4616 description { state: "disabled" 0.0;
4617 inherit: "default" 0.0;
4623 program { name: "button_click";
4624 signal: "mouse,down,1";
4626 action: SIGNAL_EMIT "elm,action,press" "";
4627 after: "button_click_anim";
4629 program { name: "button_click_anim";
4630 action: STATE_SET "clicked" 0.0;
4631 target: "button_image";
4632 after: "text_clicked";
4634 program { name: "text_clicked";
4638 get_state(PART:"elm.text", st, 30, vl);
4639 if (!strcmp(st, "visible"))
4640 set_state(PART:"elm.text", "clicked", 0.0);
4643 program { name: "button_unpress";
4644 action: SIGNAL_EMIT "elm,action,unpress" "";
4646 program { name: "button_mouseout_clicked";
4647 signal: "mouse,up,1";
4652 get_state(PART:"elm.swallow.content", st, 30, vl);
4653 if (strcmp(st, "icononly"))
4655 emit("elm,action,default,text,set", "");
4656 set_state(PART:"elm.text", "visible", 0.0);
4658 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4659 set_state(PART:"button_image", "default", 0.0);
4661 after: button_unpress;
4663 program { name: "touch_snd";
4664 signal: "mouse,clicked,1";
4666 action: PLAY_SAMPLE "touch_sound" 1.0;
4667 after: button_unclick3;
4669 program { name: "button_unclick3";
4670 action: SIGNAL_EMIT "elm,action,click" "";
4672 program { name: "text_show";
4673 signal: "elm,state,text,visible";
4678 get_state(PART:"elm.swallow.content", st, 30, vl);
4679 if (!strcmp(st, "icononly"))
4681 set_state(PART:"elm.swallow.content", "visible", 0.0);
4682 set_state(PART:"padding_icon_text", "visible", 0.0);
4684 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4685 set_state(PART:"elm.text", "visible", 0.0);
4687 set_state(PART:"elm.text", "disabled_visible", 0.0);
4690 program { name: "text_hide";
4691 signal: "elm,state,text,hidden";
4696 get_state(PART:"elm.swallow.content", st, 30, vl);
4697 if (!strcmp(st, "visible"))
4699 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4700 set_state(PART:"padding_icon_text", "icononly", 0.0);
4702 set_state(PART:"elm.text", "default", 0.0);
4705 program { name: "icon_show";
4706 signal: "elm,state,icon,visible";
4711 get_state(PART:"elm.text", st, 30, vl);
4712 if (!strcmp(st, "visible"))
4714 set_state(PART:"elm.swallow.content", "visible", 0.0);
4715 set_state(PART:"padding_icon_text", "visible", 0.0);
4719 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4720 set_state(PART:"padding_icon_text", "icononly", 0.0);
4724 program { name: "icon_hide";
4725 signal: "elm,state,icon,hidden";
4727 action: STATE_SET "default" 0.0;
4728 target: "elm.swallow.content";
4729 target: "padding_icon_text";
4731 program { name: "disable";
4732 signal: "elm,state,disabled";
4734 action: STATE_SET "disabled" 0.0;
4735 target: "button_image";
4737 after: "disable_text";
4739 program { name: "disable_text";
4743 get_state(PART:"elm.text", st, 30, vl);
4744 if (!strcmp(st, "visible"))
4745 set_state(PART:"elm.text", "disabled_visible", 0.0);
4747 set_state(PART:"elm.text", "disabled", 0.0);
4748 set_int(button_state, BUTTON_STATE_DISABLED);
4751 program { name: "enable";
4752 signal: "elm,state,enabled";
4754 action: STATE_SET "default" 0.0;
4755 target: "button_image";
4757 after: "enable_text";
4759 program { name: "enable_text";
4763 get_state(PART:"elm.text", st, 30, vl);
4764 if (!strcmp(st, "disabled_visible"))
4765 set_state(PART:"elm.text", "visible", 0.0);
4767 set_state(PART:"elm.text", "default", 0.0);
4768 set_int(button_state, BUTTON_STATE_ENABLED);
4771 program { name: "focused";
4772 //signal: "elm,action,focus";
4774 action: STATE_SET "focused" 0.0;
4775 target: "button_image";
4778 program { name: "unfocused";
4779 //signal: "elm,action,unfocus";
4781 action: STATE_SET "default" 0.0;
4782 target: "button_image";
4783 after: "unfocus_text";
4785 program { name: "unfocus_text";
4786 action: STATE_SET "visible" 0.0;
4792 ///////////////////////////////////////////////////////////////////////////////////////
4793 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
4794 group { name: "elm/button/base/"style_name; \
4796 image: "00_btn_circle_bg_normal.png" COMP; \
4797 image: "00_btn_circle_bg_press.png" COMP; \
4798 image: image_normal COMP; \
4799 image: image_press COMP; \
4802 part { name: "button_image"; \
4804 description { state: "default" 0.0; \
4805 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4806 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4807 image.normal: "00_btn_circle_bg_normal.png"; \
4808 color: 255 255 255 255; \
4811 state: "clicked" 0.0; \
4812 inherit: "default" 0.0; \
4813 image.normal: "00_btn_circle_bg_press.png"; \
4816 state: "disabled" 0.0; \
4817 inherit: "default" 0.0; \
4818 color: 255 255 255 128; \
4821 part { name: "button_center_part"; \
4823 description { state: "default" 0.0; \
4824 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4825 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4826 image.normal: image_normal; \
4827 color: 255 255 255 255; \
4830 state: "clicked" 0.0; \
4831 inherit: "default" 0.0; \
4832 image.normal: image_press; \
4835 state: "disabled" 0.0; \
4836 inherit: "default" 0.0; \
4837 color: 255 255 255 128; \
4840 part { name: "over1"; \
4842 ignore_flags: ON_HOLD; \
4843 description { state: "default" 0.0; \
4845 min: min_width min_height; \
4848 part { name: "over2"; \
4850 description { state: "default" 0.0; \
4854 part { name: "disabler"; \
4856 description { state: "default" 0.0; \
4860 description { state: "disabled" 0.0; \
4861 inherit: "default" 0.0; \
4867 program { name: "button_click"; \
4868 signal: "mouse,down,1"; \
4870 action: SIGNAL_EMIT "elm,action,press" ""; \
4871 after: "button_click_anim"; \
4873 program { name: "button_click_anim"; \
4874 action: STATE_SET "clicked" 0.0; \
4875 target: "button_image"; \
4876 target: "button_center_part"; \
4878 program { name: "button_unclick"; \
4879 signal: "mouse,up,1"; \
4881 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4882 after: "button_unclick_anim"; \
4884 program { name: "button_unclick_anim"; \
4885 action: STATE_SET "default" 0.0; \
4886 target: "button_image"; \
4887 target: "button_center_part"; \
4889 program { name: "touch_snd"; \
4890 signal: "mouse,clicked,1"; \
4892 action: PLAY_SAMPLE "touch_sound" 1.0; \
4893 after: button_unclick3; \
4895 program { name: "button_unclick3"; \
4896 action: SIGNAL_EMIT "elm,action,click" ""; \
4898 program { name: "disable"; \
4899 signal: "elm,state,disabled"; \
4901 action: STATE_SET "disabled" 0.0; \
4902 target: "disabler"; \
4903 target: "button_image"; \
4904 target: "button_center_part"; \
4906 program { name: "enable"; \
4907 signal: "elm,state,enabled"; \
4909 action: STATE_SET "default" 0.0; \
4910 target: "disabler"; \
4911 target: "button_image"; \
4912 target: "button_center_part"; \
4917 ///////////////////////////////////////////////////////////////////////////////////////
4918 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
4920 ///////////////////////////////////////////////////////////////////////////////////////
4921 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
4923 ///////////////////////////////////////////////////////////////////////////////////////
4924 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
4926 ///////////////////////////////////////////////////////////////////////////////////////
4927 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
4929 ///////////////////////////////////////////////////////////////////////////////////////
4930 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
4932 ///////////////////////////////////////////////////////////////////////////////////////
4933 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
4935 ///////////////////////////////////////////////////////////////////////////////////////
4936 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
4938 ///////////////////////////////////////////////////////////////////////////////////////
4939 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
4941 ///////////////////////////////////////////////////////////////////////////////////////
4942 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
4944 ///////////////////////////////////////////////////////////////////////////////////////
4945 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
4947 ///////////////////////////////////////////////////////////////////////////////////////
4948 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
4950 ///////////////////////////////////////////////////////////////////////////////////////
4951 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
4953 ///////////////////////////////////////////////////////////////////////////////////////
4954 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
4956 ///////////////////////////////////////////////////////////////////////////////////////
4957 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
4959 ///////////////////////////////////////////////////////////////////////////////////////
4960 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
4962 ///////////////////////////////////////////////////////////////////////////////////////
4963 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
4965 ///////////////////////////////////////////////////////////////////////////////////////
4966 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
4968 ///////////////////////////////////////////////////////////////////////////////////////
4969 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
4971 ///////////////////////////////////////////////////////////////////////////////////////
4972 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
4974 ///////////////////////////////////////////////////////////////////////////////////////
4975 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
4977 ///////////////////////////////////////////////////////////////////////////////////////
4978 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
4980 ///////////////////////////////////////////////////////////////////////////////////////
4981 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
4982 ///////////////////////////////////////////////////////////////////////////////////////
4983 group { name: "elm/button/base/circle/empty";
4985 image: "00_btn_circle_bg_normal.png" COMP;
4986 image: "00_btn_circle_bg_press.png" COMP;
4989 part { name: "button_image";
4991 description { state: "default" 0.0;
4992 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4993 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4995 image.normal: "00_btn_circle_bg_normal.png";
4996 color: 255 255 255 255;
4998 description { state: "clicked" 0.0;
4999 inherit: "default" 0.0;
5000 image.normal: "00_btn_circle_bg_press.png";
5002 description { state: "disabled" 0.0;
5003 inherit: "default" 0.0;
5004 color: 255 255 255 128;
5007 part { name: "elm.swallow.content";
5010 description { state: "default" 0.0;
5011 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5012 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5014 color: 255 255 255 255;
5017 state: "disabled" 0.0;
5018 inherit: "default" 0.0;
5019 color: 255 255 255 128;
5022 part { name: "over1";
5024 ignore_flags: ON_HOLD;
5025 description { state: "default" 0.0;
5029 part { name: "over2";
5031 description { state: "default" 0.0;
5035 part { name: "disabler";
5037 description { state: "default" 0.0;
5041 description { state: "disabled" 0.0;
5042 inherit: "default" 0.0;
5048 program { name: "button_click";
5049 signal: "mouse,down,1";
5051 action: SIGNAL_EMIT "elm,action,press" "";
5052 after: "button_click_anim";
5054 program { name: "button_click_anim";
5055 action: STATE_SET "clicked" 0.0;
5056 target: "button_image";
5058 program { name: "touch_snd";
5059 signal: "mouse,clicked,1";
5061 action: PLAY_SAMPLE "touch_sound" 1.0;
5062 after: button_unclick2;
5064 program { name: "button_unclick2";
5065 action: SIGNAL_EMIT "elm,action,click" "";
5067 program { name: "button_unclick";
5068 signal: "mouse,up,1";
5070 action: SIGNAL_EMIT "elm,action,unpress" "";
5071 after: "button_unclick_anim";
5073 program { name: "button_unclick_anim";
5074 action: STATE_SET "default" 0.0;
5075 target: "button_image";
5077 program { name: "disable";
5078 signal: "elm,state,disabled";
5080 action: STATE_SET "disabled" 0.0;
5082 target: "button_image";
5084 program { name: "enable";
5085 signal: "elm,state,enabled";
5087 action: STATE_SET "default" 0.0;
5089 target: "button_image";
5091 program { name: "icon_show";
5092 signal: "elm,state,icon,visible";
5094 action: STATE_SET "visible" 0.0;
5095 target: "elm.swallow.content";
5097 program { name: "icon_hide";
5098 signal: "elm,state,icon,hidden";
5100 action: STATE_SET "default" 0.0;
5101 target: "elm.swallow.content";
5106 ///////////////////////////////////////////////////////////////////////////////////////
5107 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
5108 group { name: "elm/button/base/contacts/"style_name; \
5109 alias: "elm/button/base/"style_name; \
5111 image: image_normal COMP; \
5112 image: image_press COMP; \
5113 image: "00_button_edit.png" COMP; \
5114 image: "00_button_edit_press.png" COMP; \
5115 image: "00_button_edit_dim.png" COMP; \
5116 image: "00_button_edit_focus.png" COMP; \
5119 part { name: "button_image"; \
5121 description { state: "default" 0.0; \
5122 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5123 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5125 normal: "00_button_edit.png"; \
5126 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5131 state: "clicked" 0.0; \
5132 inherit: "default" 0.0; \
5133 image.normal: "00_button_edit_press.png"; \
5136 state: "disabled" 0.0; \
5137 inherit: "default" 0.0; \
5138 image.normal: "00_button_edit_dim.png"; \
5141 state: "focused" 0.0; \
5142 inherit: "default" 0.0; \
5143 image.normal: "00_button_edit_focus.png"; \
5146 part { name: "button_center_part"; \
5149 description { state: "default" 0.0; \
5150 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5151 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5153 normal: image_normal; \
5154 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5159 state: "clicked" 0.0; \
5160 inherit: "default" 0.0; \
5161 image.normal: image_press; \
5164 part { name: "over1"; \
5167 ignore_flags: ON_HOLD; \
5168 description { state: "default" 0.0; \
5170 min: min_width min_height; \
5173 part { name: "over2"; \
5175 description { state: "default" 0.0; \
5179 part { name: "disabler"; \
5181 description { state: "default" 0.0; \
5185 description { state: "disabled" 0.0; \
5186 inherit: "default" 0.0; \
5192 program { name: "button_click"; \
5193 signal: "mouse,down,1"; \
5195 action: SIGNAL_EMIT "elm,action,press" ""; \
5196 after: "button_click_anim"; \
5198 program { name: "button_click_anim"; \
5199 action: STATE_SET "clicked" 0.0; \
5200 target: "button_image"; \
5201 target: "button_center_part"; \
5203 program { name: "button_unclick"; \
5204 signal: "mouse,up,1"; \
5206 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5207 after: "button_unclick_anim"; \
5209 program { name: "button_unclick_anim"; \
5210 action: STATE_SET "default" 0.0; \
5211 target: "button_image"; \
5212 target: "button_center_part"; \
5214 program { name: "touch_snd"; \
5215 signal: "mouse,clicked,1"; \
5217 action: PLAY_SAMPLE "touch_sound" 1.0; \
5218 after: button_unclick3; \
5220 program { name: "button_unclick3"; \
5221 action: SIGNAL_EMIT "elm,action,click" ""; \
5223 program { name: "disable"; \
5224 signal: "elm,state,disabled"; \
5226 action: STATE_SET "disabled" 0.0; \
5227 target: "disabler"; \
5228 target: "button_image"; \
5230 program { name: "enable"; \
5231 signal: "elm,state,enabled"; \
5233 action: STATE_SET "default" 0.0; \
5234 target: "disabler"; \
5235 target: "button_image"; \
5239 ///////////////////////////////////////////////////////////////////////////////////////
5240 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5242 ///////////////////////////////////////////////////////////////////////////////////////
5243 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5245 ///////////////////////////////////////////////////////////////////////////////////////
5246 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5248 ///////////////////////////////////////////////////////////////////////////////////////
5249 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5251 ///////////////////////////////////////////////////////////////////////////////////////
5252 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5254 ///////////////////////////////////////////////////////////////////////////////////////
5255 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5257 ///////////////////////////////////////////////////////////////////////////////////////
5258 BUTTON_EDIT_STYLES("icon_expand_closed", "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)
5260 ///////////////////////////////////////////////////////////////////////////////////////
5261 BUTTON_EDIT_STYLES("icon_expand_opened", "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)
5263 ///////////////////////////////////////////////////////////////////////////////////////
5264 group { name: "elm/button/base/contacts/delete";
5266 image: "00_button_edit.png" COMP;
5267 image: "00_button_edit_press.png" COMP;
5268 image: "00_button_edit_dim.png" COMP;
5269 image: "00_button_edit_focus.png" COMP;
5272 public button_state = BUTTON_STATE_ENABLED;
5275 part { name: "button_image";
5277 description { state: "default" 0.0;
5278 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5280 normal: "00_button_edit.png";
5281 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5285 description { state: "clicked" 0.0;
5286 inherit: "default" 0.0;
5287 image.normal: "00_button_edit_press.png";
5289 description { state: "disabled" 0.0;
5290 inherit: "default" 0.0;
5291 image.normal: "00_button_edit_dim.png";
5293 description { state: "focused" 0.0;
5294 inherit: "default" 0.0;
5295 image.normal: "00_button_edit_focus.png";
5298 part { name: "padding_left_top";
5302 description { state: "default" 0.0;
5304 rel2.relative: 0.0 0.0;
5305 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5310 part { name: "padding_right_bottom";
5314 description { state: "default" 0.0;
5316 rel1.relative: 1.0 1.0;
5317 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5322 part { name: "padding_icon_text";
5326 description { state: "default" 0.0; //when only icon or no icon is there
5330 to: "elm.swallow.content";
5332 rel2.to: "elm.swallow.content";
5337 description { state: "icononly" 0.0;
5338 inherit: "default" 0.0;
5340 description { state: "visible" 0.0; //when icon is visible
5341 inherit: "default" 0.0;
5342 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5345 part { name: "elm.swallow.content";
5349 description { state: "default" 0.0;
5354 to: "padding_left_top";
5358 to_x: "padding_left_top";
5359 to_y: "padding_right_bottom";
5363 description { state: "visible" 0.0;
5368 to: "padding_left_top";
5372 to_x: "padding_left_top";
5373 to_y: "padding_right_bottom";
5376 aspect_preference: VERTICAL;
5378 description { state: "icononly" 0.0;
5379 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5382 to: "padding_left_top";
5386 to: "padding_right_bottom";
5389 aspect_preference: VERTICAL;
5392 part { name: "elm.text";
5397 description { state: "default" 0.0;
5400 to_x: "padding_icon_text";
5401 to_y: "padding_left_top";
5405 to: "padding_right_bottom";
5407 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5409 font: "SLP:style=Medium";
5410 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5414 text_class: "slp_medium";
5417 description { state: "visible" 0.0;
5418 inherit: "default" 0.0;
5420 description { state: "clicked" 0.0;
5421 inherit: "default" 0.0;
5422 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5424 description { state: "disabled" 0.0;
5425 inherit: "default" 0.0;
5428 description { state: "disabled_visible" 0.0;
5429 inherit: "default" 0.0;
5430 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5432 description { state: "focused" 0.0;
5433 inherit: "default" 0.0;
5435 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_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/multiline";
5643 alias: "elm/button/base/text_only/multiline";
5645 image: "00_button_04_normal.png" COMP;
5646 image: "00_button_04_press.png" COMP;
5647 image: "00_button_04_dim.png" COMP;
5648 image: "00_button_04_normal_focus.png" COMP;
5651 public button_state = BUTTON_STATE_ENABLED;
5654 style { name: "btn_multiline_style";
5655 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5662 part { name: "button_image";
5664 description { state: "default" 0.0;
5667 normal: "00_button_04_normal.png";
5672 description { state: "clicked" 0.0;
5673 inherit: "default" 0.0;
5674 image.normal: "00_button_04_press.png";
5676 description { state: "disabled" 0.0;
5677 inherit: "default" 0.0;
5678 image.normal: "00_button_04_dim.png";
5680 description { state: "focused" 0.0;
5681 inherit: "default" 0.0;
5682 image.normal: "00_button_04_normal_focus.png";
5685 part { name: "padding_left_top";
5689 description { state: "default" 0.0;
5691 rel2.relative: 0.0 0.0;
5697 part { name: "padding_right_bottom";
5701 description { state: "default" 0.0;
5703 rel1.relative: 1.0 1.0;
5709 part { name: "icon_rect";
5713 description { state: "default" 0.0;
5719 to_x: "elm.swallow.content";
5720 to_y: "padding_left_top";
5724 to_x: "elm.swallow.content";
5725 to_y: "padding_right_bottom";
5731 part { name: "padding_icon_text";
5735 description { state: "default" 0.0; //when only icon or no icon is there
5741 rel2.to: "icon_rect";
5746 description { state: "icononly" 0.0;
5747 inherit: "default" 0.0;
5749 description { state: "visible" 0.0; //when icon is visible
5755 rel2.to: "icon_rect";
5761 part { name: "elm.swallow.content";
5765 description { state: "default" 0.0;
5770 to: "padding_left_top";
5774 to_x: "padding_left_top";
5775 to_y: "padding_right_bottom";
5779 description { state: "visible" 0.0;
5784 to: "padding_left_top";
5788 to_x: "padding_left_top";
5789 to_y: "padding_right_bottom";
5792 aspect_preference: VERTICAL;
5794 description { state: "icononly" 0.0;
5798 to: "padding_left_top";
5802 to: "padding_right_bottom";
5805 aspect_preference: VERTICAL;
5808 part { name: "elm.text";
5813 description { state: "default" 0.0;
5817 to_x: "padding_icon_text";
5818 to_y: "padding_left_top";
5822 to: "padding_right_bottom";
5824 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5826 style: "btn_multiline_style";
5831 description { state: "visible" 0.0;
5832 inherit: "default" 0.0;
5836 description { state: "clicked" 0.0;
5837 inherit: "default" 0.0;
5840 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5842 description { state: "disabled" 0.0;
5843 inherit: "default" 0.0;
5846 description { state: "disabled_visible" 0.0;
5847 inherit: "default" 0.0;
5848 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5852 description { state: "focused" 0.0;
5853 inherit: "default" 0.0;
5856 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5859 part { name: "over2";
5862 ignore_flags: ON_HOLD;
5863 description { state: "default" 0.0;
5867 part { name: "over3";
5870 description { state: "default" 0.0;
5874 part { name: "clipper";
5876 description { state: "default" 0.0;
5877 color: 255 255 255 255;
5880 part { name: "disabler";
5882 description { state: "default" 0.0;
5886 description { state: "disabled" 0.0;
5887 inherit: "default" 0.0;
5893 program { name: "button_click";
5894 signal: "mouse,down,1";
5896 action: SIGNAL_EMIT "elm,action,press" "";
5897 after: "button_click_anim";
5899 program { name: "button_click_anim";
5900 action: STATE_SET "clicked" 0.0;
5901 target: "button_image";
5902 after: "text_clicked";
5904 program { name: "text_clicked";
5908 get_state(PART:"elm.text", st, 30, vl);
5909 if (!strcmp(st, "visible"))
5910 set_state(PART:"elm.text", "clicked", 0.0);
5913 program { name: "button_unpress";
5914 action: SIGNAL_EMIT "elm,action,unpress" "";
5916 program { name: "button_mouseout_clicked";
5917 signal: "mouse,up,1";
5922 get_state(PART:"elm.swallow.content", st, 30, vl);
5923 if (strcmp(st, "icononly"))
5925 emit("elm,action,default,text,set", "");
5926 set_state(PART:"elm.text", "visible", 0.0);
5928 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5929 set_state(PART:"button_image", "default", 0.0);
5931 after: button_unpress;
5933 program { name: "touch_snd";
5934 signal: "mouse,clicked,1";
5936 action: PLAY_SAMPLE "touch_sound" 1.0;
5937 after: button_unclick3;
5939 program { name: "button_unclick3";
5940 action: SIGNAL_EMIT "elm,action,click" "";
5942 program { name: "text_show";
5943 signal: "elm,state,text,visible";
5948 get_state(PART:"elm.swallow.content", st, 30, vl);
5949 if (!strcmp(st, "icononly"))
5951 set_state(PART:"elm.swallow.content", "visible", 0.0);
5952 set_state(PART:"padding_icon_text", "visible", 0.0);
5954 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5955 set_state(PART:"elm.text", "visible", 0.0);
5957 set_state(PART:"elm.text", "disabled_visible", 0.0);
5960 program { name: "text_hide";
5961 signal: "elm,state,text,hidden";
5966 get_state(PART:"elm.swallow.content", st, 30, vl);
5967 if (!strcmp(st, "visible"))
5969 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5970 set_state(PART:"padding_icon_text", "icononly", 0.0);
5972 set_state(PART:"elm.text", "default", 0.0);
5975 program { name: "icon_show";
5976 signal: "elm,state,icon,visible";
5981 get_state(PART:"elm.text", st, 30, vl);
5982 if (!strcmp(st, "visible"))
5984 set_state(PART:"elm.swallow.content", "visible", 0.0);
5985 set_state(PART:"padding_icon_text", "visible", 0.0);
5989 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5990 set_state(PART:"padding_icon_text", "icononly", 0.0);
5994 program { name: "icon_hide";
5995 signal: "elm,state,icon,hidden";
5997 action: STATE_SET "default" 0.0;
5998 target: "elm.swallow.content";
5999 target: "padding_icon_text";
6001 program { name: "disable";
6002 signal: "elm,state,disabled";
6004 action: STATE_SET "disabled" 0.0;
6005 target: "button_image";
6007 after: "disable_text";
6009 program { name: "disable_text";
6013 get_state(PART:"elm.text", st, 30, vl);
6014 if (!strcmp(st, "visible"))
6015 set_state(PART:"elm.text", "disabled_visible", 0.0);
6017 set_state(PART:"elm.text", "disabled", 0.0);
6018 set_int(button_state, BUTTON_STATE_DISABLED);
6021 program { name: "enable";
6022 signal: "elm,state,enabled";
6024 action: STATE_SET "default" 0.0;
6025 target: "button_image";
6027 after: "enable_text";
6029 program { name: "enable_text";
6033 get_state(PART:"elm.text", st, 30, vl);
6034 if (!strcmp(st, "disabled_visible"))
6035 set_state(PART:"elm.text", "visible", 0.0);
6037 set_state(PART:"elm.text", "default", 0.0);
6038 set_int(button_state, BUTTON_STATE_ENABLED);
6041 program { name: "focused";
6042 //signal: "elm,action,focus";
6044 action: STATE_SET "focused" 0.0;
6045 target: "button_image";
6048 program { name: "unfocused";
6049 //signal: "elm,action,unfocus";
6051 action: STATE_SET "default" 0.0;
6052 target: "button_image";
6053 after: "unfocus_text";
6055 program { name: "unfocus_text";
6056 action: STATE_SET "visible" 0.0;
6062 ///////////////////////////////////////////////////////////////////////////////////////
6063 group { name: "elm/button/base/default";
6065 image: "00_button_01_normal.png" COMP;
6066 image: "00_button_01_normal_press.png" COMP;
6067 image: "00_button_01_normal_dim.png" COMP;
6068 image: "00_button_01_normal_Focus.png" COMP;
6071 public button_state = BUTTON_STATE_ENABLED;
6074 part { name: "button_image";
6076 description { state: "default" 0.0;
6077 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6079 normal: "00_button_01_normal.png";
6080 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6084 description { state: "clicked" 0.0;
6085 inherit: "default" 0.0;
6086 image.normal: "00_button_01_normal_press.png";
6088 description { state: "disabled" 0.0;
6089 inherit: "default" 0.0;
6090 image.normal: "00_button_01_normal_dim.png";
6092 description { state: "focused" 0.0;
6093 inherit: "default" 0.0;
6094 image.normal: "00_button_01_normal_Focus.png";
6097 part { name: "padding_left_top";
6101 description { state: "default" 0.0;
6103 rel2.relative: 0.0 0.0;
6104 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6109 part { name: "padding_right_bottom";
6113 description { state: "default" 0.0;
6115 rel1.relative: 1.0 1.0;
6116 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6121 part { name: "padding_icon_text";
6125 description { state: "default" 0.0; //when only icon or no icon is there
6130 to: "elm.swallow.content";
6132 rel2.to: "elm.swallow.content";
6136 description { state: "icononly" 0.0;
6137 inherit: "default" 0.0;
6139 description { state: "visible" 0.0; //when icon is visible
6140 inherit: "default" 0.0;
6141 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6144 part { name: "elm.swallow.content";
6148 description { state: "default" 0.0;
6153 to: "padding_left_top";
6157 to_x: "padding_left_top";
6158 to_y: "padding_right_bottom";
6162 description { state: "visible" 0.0;
6167 to: "padding_left_top";
6171 to_x: "padding_left_top";
6172 to_y: "padding_right_bottom";
6175 aspect_preference: VERTICAL;
6177 description { state: "icononly" 0.0;
6178 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6181 to_x: "padding_left_top";
6185 to_x: "padding_right_bottom";
6188 aspect_preference: VERTICAL;
6191 part { name: "elm.text";
6196 description { state: "default" 0.0;
6201 to_x: "padding_icon_text";
6202 to_y: "padding_left_top";
6206 to: "padding_right_bottom";
6208 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6210 font: "SLP:style=Medium";
6211 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6213 text_class: "slp_medium";
6216 description { state: "visible" 0.0;
6217 inherit: "default" 0.0;
6219 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6221 description { state: "clicked" 0.0;
6222 inherit: "default" 0.0;
6224 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6225 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6227 description { state: "disabled" 0.0;
6228 inherit: "default" 0.0;
6230 description { state: "disabled_visible" 0.0;
6231 inherit: "default" 0.0;
6232 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6234 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6236 description { state: "focused" 0.0;
6237 inherit: "default" 0.0;
6240 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6243 part { name: "over2";
6246 ignore_flags: ON_HOLD;
6247 description { state: "default" 0.0;
6251 part { name: "over3";
6254 description { state: "default" 0.0;
6258 part { name: "clipper";
6260 description { state: "default" 0.0;
6261 color: 255 255 255 255;
6264 part { name: "disabler";
6266 description { state: "default" 0.0;
6270 description { state: "disabled" 0.0;
6271 inherit: "default" 0.0;
6277 program { name: "button_click";
6278 signal: "mouse,down,1";
6280 action: SIGNAL_EMIT "elm,action,press" "";
6281 after: "button_click_anim";
6283 program { name: "button_click_anim";
6284 action: STATE_SET "clicked" 0.0;
6285 target: "button_image";
6286 after: "text_clicked";
6288 program { name: "text_clicked";
6292 get_state(PART:"elm.text", st, 30, vl);
6293 if (!strcmp(st, "visible"))
6294 set_state(PART:"elm.text", "clicked", 0.0);
6297 program { name: "button_unpress";
6298 action: SIGNAL_EMIT "elm,action,unpress" "";
6300 program { name: "button_mouseout_clicked";
6301 signal: "mouse,up,1";
6306 get_state(PART:"elm.swallow.content", st, 30, vl);
6307 if (strcmp(st, "icononly"))
6309 emit("elm,action,default,text,set", "");
6310 set_state(PART:"elm.text", "visible", 0.0);
6312 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6313 set_state(PART:"button_image", "default", 0.0);
6315 after: button_unpress;
6317 program { name: "touch_snd";
6318 signal: "mouse,clicked,1";
6320 action: PLAY_SAMPLE "touch_sound" 1.0;
6321 after: button_unclick3;
6323 program { name: "button_unclick3";
6324 action: SIGNAL_EMIT "elm,action,click" "";
6326 program { name: "text_show";
6327 signal: "elm,state,text,visible";
6332 get_state(PART:"elm.swallow.content", st, 30, vl);
6333 if (!strcmp(st, "icononly"))
6335 set_state(PART:"elm.swallow.content", "visible", 0.0);
6336 set_state(PART:"padding_icon_text", "visible", 0.0);
6338 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6339 set_state(PART:"elm.text", "visible", 0.0);
6341 set_state(PART:"elm.text", "disabled_visible", 0.0);
6344 program { name: "text_hide";
6345 signal: "elm,state,text,hidden";
6350 get_state(PART:"elm.swallow.content", st, 30, vl);
6351 if (!strcmp(st, "visible"))
6353 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6354 set_state(PART:"padding_icon_text", "icononly", 0.0);
6356 set_state(PART:"elm.text", "default", 0.0);
6359 program { name: "icon_show";
6360 signal: "elm,state,icon,visible";
6365 get_state(PART:"elm.text", st, 30, vl);
6366 if (!strcmp(st, "visible"))
6368 set_state(PART:"elm.swallow.content", "visible", 0.0);
6369 set_state(PART:"padding_icon_text", "visible", 0.0);
6373 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6374 set_state(PART:"padding_icon_text", "icononly", 0.0);
6378 program { name: "icon_hide";
6379 signal: "elm,state,icon,hidden";
6381 action: STATE_SET "default" 0.0;
6382 target: "elm.swallow.content";
6383 target: "padding_icon_text";
6385 program { name: "disable";
6386 signal: "elm,state,disabled";
6388 action: STATE_SET "disabled" 0.0;
6389 target: "button_image";
6391 after: "disable_text";
6393 program { name: "disable_text";
6397 get_state(PART:"elm.text", st, 30, vl);
6398 if (!strcmp(st, "visible"))
6399 set_state(PART:"elm.text", "disabled_visible", 0.0);
6401 set_state(PART:"elm.text", "disabled", 0.0);
6402 set_int(button_state, BUTTON_STATE_DISABLED);
6405 program { name: "enable";
6406 signal: "elm,state,enabled";
6408 action: STATE_SET "default" 0.0;
6409 target: "button_image";
6411 after: "enable_text";
6413 program { name: "enable_text";
6417 get_state(PART:"elm.text", st, 30, vl);
6418 if (!strcmp(st, "disabled_visible"))
6419 set_state(PART:"elm.text", "visible", 0.0);
6421 set_state(PART:"elm.text", "default", 0.0);
6422 set_int(button_state, BUTTON_STATE_ENABLED);
6425 program { name: "focused";
6426 //signal: "elm,action,focus";
6428 action: STATE_SET "focused" 0.0;
6429 target: "button_image";
6432 program { name: "unfocused";
6433 //signal: "elm,action,unfocus";
6435 action: STATE_SET "default" 0.0;
6436 target: "button_image";
6437 after: "unfocus_text";
6439 program { name: "unfocus_text";
6440 action: STATE_SET "visible" 0.0;
6446 ///////////////////////////////////////////////////////////////////////////////////////
6447 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6448 group { name: "elm/button/base/"style_name; \
6450 image: image_normal COMP; \
6451 image: image_press COMP; \
6452 image: image_disable COMP; \
6453 image: "00_button_01_normal.png" COMP; \
6454 image: "00_button_01_normal_press.png" COMP; \
6455 image: "00_button_01_normal_dim.png" COMP; \
6456 image: "00_button_01_normal_Focus.png" COMP; \
6459 part { name: "button_image"; \
6461 description { state: "default" 0.0; \
6462 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6463 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6465 normal: "00_button_01_normal.png"; \
6466 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6471 state: "clicked" 0.0; \
6472 inherit: "default" 0.0; \
6473 image.normal: "00_button_01_normal_press.png"; \
6476 state: "disabled" 0.0; \
6477 inherit: "default" 0.0; \
6478 image.normal: "00_button_01_normal_dim.png"; \
6481 state: "focused" 0.0; \
6482 inherit: "default" 0.0; \
6483 image.normal: "00_button_01_normal_Focus.png"; \
6486 part { name: "button_center_part"; \
6488 description { state: "default" 0.0; \
6489 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6490 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6491 image.normal: image_normal; \
6494 state: "clicked" 0.0; \
6495 inherit: "default" 0.0; \
6496 image.normal: image_press; \
6499 state: "disabled" 0.0; \
6500 inherit: "default" 0.0; \
6501 image.normal: image_disable; \
6504 part { name: "over1"; \
6506 ignore_flags: ON_HOLD; \
6507 description { state: "default" 0.0; \
6511 part { name: "over2"; \
6513 description { state: "default" 0.0; \
6517 part { name: "disabler"; \
6519 description { state: "default" 0.0; \
6523 description { state: "disabled" 0.0; \
6524 inherit: "default" 0.0; \
6530 program { name: "button_click"; \
6531 signal: "mouse,down,1"; \
6533 action: SIGNAL_EMIT "elm,action,press" ""; \
6534 after: "button_click_anim"; \
6536 program { name: "button_click_anim"; \
6537 action: STATE_SET "clicked" 0.0; \
6538 target: "button_image"; \
6539 target: "button_center_part"; \
6541 program { name: "button_unclick"; \
6542 signal: "mouse,up,1"; \
6544 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6545 after: "button_unclick_anim"; \
6547 program { name: "button_unclick_anim"; \
6548 action: STATE_SET "default" 0.0; \
6549 target: "button_image"; \
6550 target: "button_center_part"; \
6552 program { name: "touch_snd"; \
6553 signal: "mouse,clicked,1"; \
6555 action: PLAY_SAMPLE "touch_sound" 1.0; \
6556 after: button_unclick3; \
6558 program { name: "button_unclick3"; \
6559 action: SIGNAL_EMIT "elm,action,click" ""; \
6561 program { name: "disable"; \
6562 signal: "elm,state,disabled"; \
6564 action: STATE_SET "disabled" 0.0; \
6565 target: "disabler"; \
6566 target: "button_image"; \
6567 target: "button_center_part"; \
6569 program { name: "enable"; \
6570 signal: "elm,state,enabled"; \
6572 action: STATE_SET "default" 0.0; \
6573 target: "disabler"; \
6574 target: "button_image"; \
6575 target: "button_center_part"; \
6579 ///////////////////////////////////////////////////////////////////////////////////////
6580 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")
6581 ///////////////////////////////////////////////////////////////////////////////////////
6582 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")
6583 ///////////////////////////////////////////////////////////////////////////////////////
6584 group { name: "elm/button/base/hidden";
6586 image: "00_button_sweep.png" COMP;
6587 image: "00_button_sweep_press.png" COMP;
6588 image: "00_button_sweep_focus.png" COMP;
6589 image: "00_button_sweep_dim.png" COMP;
6592 public button_state = BUTTON_STATE_ENABLED;
6595 part { name: "button_image";
6597 description { state: "default" 0.0;
6598 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6600 normal: "00_button_sweep.png";
6601 border: BUTTON_HIDDEN_BG_BORDER_INC;
6605 description { state: "clicked" 0.0;
6606 inherit: "default" 0.0;
6607 image.normal: "00_button_sweep_press.png";
6609 description { state: "disabled" 0.0;
6610 inherit: "default" 0.0;
6611 image.normal: "00_button_sweep_dim.png";
6613 description { state: "focused" 0.0;
6614 inherit: "default" 0.0;
6615 image.normal: "00_button_sweep_focus.png";
6618 part { name: "padding_left_top";
6622 description { state: "default" 0.0;
6624 rel2.relative: 0.0 0.0;
6625 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6630 part { name: "padding_right_bottom";
6634 description { state: "default" 0.0;
6636 rel1.relative: 1.0 1.0;
6637 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6642 part { name: "icon_rect";
6646 description { state: "default" 0.0;
6647 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6651 to_x: "elm.swallow.content";
6652 to_y: "padding_left_top";
6656 to_x: "elm.swallow.content";
6657 to_y: "padding_right_bottom";
6663 part { name: "padding_icon_text";
6667 description { state: "default" 0.0; //when only icon or no icon is there
6673 rel2.to: "icon_rect";
6678 description { state: "icononly" 0.0;
6679 inherit: "default" 0.0;
6681 description { state: "visible" 0.0; //when icon is visible
6687 rel2.to: "icon_rect";
6689 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6693 part { name: "elm.swallow.content";
6697 description { state: "default" 0.0;
6702 to: "padding_left_top";
6706 to_x: "padding_left_top";
6707 to_y: "padding_right_bottom";
6711 description { state: "visible" 0.0;
6716 to: "padding_left_top";
6720 to_x: "padding_left_top";
6721 to_y: "padding_right_bottom";
6724 aspect_preference: VERTICAL;
6726 description { state: "icononly" 0.0;
6727 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6730 to: "padding_left_top";
6734 to_x: "padding_left_top";
6735 to_y: "padding_right_bottom";
6738 aspect_preference: VERTICAL;
6741 part { name: "elm.text";
6746 description { state: "default" 0.0;
6750 to_x: "padding_icon_text";
6751 to_y: "padding_left_top";
6755 to: "padding_right_bottom";
6757 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6759 font: "SLP:style=Medium";
6760 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6762 text_class: "slp_medium";
6765 description { state: "visible" 0.0;
6766 inherit: "default" 0.0;
6768 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6770 description { state: "clicked" 0.0;
6771 inherit: "default" 0.0;
6774 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6776 description { state: "disabled" 0.0;
6777 inherit: "default" 0.0;
6780 description { state: "disabled_visible" 0.0;
6781 inherit: "default" 0.0;
6782 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6784 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6786 description { state: "focused" 0.0;
6787 inherit: "default" 0.0;
6790 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6793 part { name: "over2";
6796 ignore_flags: ON_HOLD;
6797 description { state: "default" 0.0;
6801 part { name: "over3";
6804 description { state: "default" 0.0;
6808 part { name: "clipper";
6810 description { state: "default" 0.0;
6811 color: 255 255 255 255;
6814 part { name: "disabler";
6816 description { state: "default" 0.0;
6820 description { state: "disabled" 0.0;
6821 inherit: "default" 0.0;
6827 program { name: "button_click";
6828 signal: "mouse,down,1";
6830 action: SIGNAL_EMIT "elm,action,press" "";
6831 after: "button_click_anim";
6833 program { name: "button_click_anim";
6834 action: STATE_SET "clicked" 0.0;
6835 target: "button_image";
6836 after: "text_clicked";
6838 program { name: "text_clicked";
6842 get_state(PART:"elm.text", st, 30, vl);
6843 if (!strcmp(st, "visible"))
6844 set_state(PART:"elm.text", "clicked", 0.0);
6847 program { name: "button_unpress";
6848 action: SIGNAL_EMIT "elm,action,unpress" "";
6850 program { name: "button_mouseout_clicked";
6851 signal: "mouse,up,1";
6856 get_state(PART:"elm.swallow.content", st, 30, vl);
6857 if (strcmp(st, "icononly"))
6859 emit("elm,action,default,text,set", "");
6860 set_state(PART:"elm.text", "visible", 0.0);
6862 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6863 set_state(PART:"button_image", "default", 0.0);
6865 after: button_unpress;
6867 program { name: "touch_snd";
6868 signal: "mouse,clicked,1";
6870 action: PLAY_SAMPLE "touch_sound" 1.0;
6871 after: button_unclick3;
6873 program { name: "button_unclick3";
6874 action: SIGNAL_EMIT "elm,action,click" "";
6876 program { name: "text_show";
6877 signal: "elm,state,text,visible";
6882 get_state(PART:"elm.swallow.content", st, 30, vl);
6883 if (!strcmp(st, "icononly"))
6885 set_state(PART:"elm.swallow.content", "visible", 0.0);
6886 set_state(PART:"padding_icon_text", "visible", 0.0);
6888 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6889 set_state(PART:"elm.text", "visible", 0.0);
6891 set_state(PART:"elm.text", "disabled_visible", 0.0);
6894 program { name: "text_hide";
6895 signal: "elm,state,text,hidden";
6900 get_state(PART:"elm.swallow.content", st, 30, vl);
6901 if (!strcmp(st, "visible"))
6903 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6904 set_state(PART:"padding_icon_text", "icononly", 0.0);
6906 set_state(PART:"elm.text", "default", 0.0);
6909 program { name: "icon_show";
6910 signal: "elm,state,icon,visible";
6915 get_state(PART:"elm.text", st, 30, vl);
6916 if (!strcmp(st, "visible"))
6918 set_state(PART:"elm.swallow.content", "visible", 0.0);
6919 set_state(PART:"padding_icon_text", "visible", 0.0);
6923 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6924 set_state(PART:"padding_icon_text", "icononly", 0.0);
6928 program { name: "icon_hide";
6929 signal: "elm,state,icon,hidden";
6931 action: STATE_SET "default" 0.0;
6932 target: "elm.swallow.content";
6933 target: "padding_icon_text";
6935 program { name: "disable";
6936 signal: "elm,state,disabled";
6938 action: STATE_SET "disabled" 0.0;
6939 target: "button_image";
6941 after: "disable_text";
6943 program { name: "disable_text";
6947 get_state(PART:"elm.text", st, 30, vl);
6948 if (!strcmp(st, "visible"))
6949 set_state(PART:"elm.text", "disabled_visible", 0.0);
6951 set_state(PART:"elm.text", "disabled", 0.0);
6952 set_int(button_state, BUTTON_STATE_DISABLED);
6955 program { name: "enable";
6956 signal: "elm,state,enabled";
6958 action: STATE_SET "default" 0.0;
6959 target: "button_image";
6961 after: "enable_text";
6963 program { name: "enable_text";
6967 get_state(PART:"elm.text", st, 30, vl);
6968 if (!strcmp(st, "disabled_visible"))
6969 set_state(PART:"elm.text", "visible", 0.0);
6971 set_state(PART:"elm.text", "default", 0.0);
6972 set_int(button_state, BUTTON_STATE_ENABLED);
6975 program { name: "focused";
6976 //signal: "elm,action,focus";
6978 action: STATE_SET "focused" 0.0;
6979 target: "button_image";
6982 program { name: "unfocused";
6983 //signal: "elm,action,unfocus";
6985 action: STATE_SET "default" 0.0;
6986 target: "button_image";
6987 after: "unfocus_text";
6989 program { name: "unfocus_text";
6990 action: STATE_SET "visible" 0.0;
6996 ///////////////////////////////////////////////////////////////////////////////////////
6997 group { name: "elm/button/base/picker/bar/default";
6999 image: "00_picker_btn_normal.png" COMP;
7000 image: "00_picker_btn_press.png" COMP;
7001 image: "00_picker_btn_normal_focus.png" COMP;
7004 public button_state = BUTTON_STATE_ENABLED;
7007 part { name: "button_image";
7009 description { state: "default" 0.0;
7010 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7012 normal: "00_picker_btn_normal.png";
7013 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7017 description { state: "clicked" 0.0;
7018 inherit: "default" 0.0;
7019 image.normal: "00_picker_btn_press.png";
7021 description { state: "disabled" 0.0;
7022 inherit: "default" 0.0;
7024 description { state: "focused" 0.0;
7025 inherit: "default" 0.0;
7026 image.normal: "00_picker_btn_normal_focus.png";
7029 part { name: "padding_left_top";
7033 description { state: "default" 0.0;
7035 rel2.relative: 0.0 0.0;
7036 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7041 part { name: "padding_right_bottom";
7045 description { state: "default" 0.0;
7047 rel1.relative: 1.0 1.0;
7048 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7053 part { name: "icon_rect";
7057 description { state: "default" 0.0;
7058 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7062 to_x: "elm.swallow.content";
7063 to_y: "padding_left_top";
7067 to_x: "elm.swallow.content";
7068 to_y: "padding_right_bottom";
7074 part { name: "padding_icon_text";
7078 description { state: "default" 0.0; //when only icon or no icon is there
7084 rel2.to: "icon_rect";
7089 description { state: "icononly" 0.0;
7090 inherit: "default" 0.0;
7092 description { state: "visible" 0.0; //when icon is visible
7098 rel2.to: "icon_rect";
7100 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7104 part { name: "elm.swallow.content";
7108 description { state: "default" 0.0;
7113 to: "padding_left_top";
7117 to_x: "padding_left_top";
7118 to_y: "padding_right_bottom";
7122 description { state: "visible" 0.0;
7127 to: "padding_left_top";
7131 to_x: "padding_left_top";
7132 to_y: "padding_right_bottom";
7135 aspect_preference: VERTICAL;
7137 description { state: "icononly" 0.0;
7138 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7141 to: "padding_left_top";
7145 to_x: "padding_left_top";
7146 to_y: "padding_right_bottom";
7149 aspect_preference: VERTICAL;
7152 part { name: "elm.text";
7157 description { state: "default" 0.0;
7161 to_x: "padding_icon_text";
7162 to_y: "padding_left_top";
7166 to: "padding_right_bottom";
7168 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7170 font: "SLP:style=Medium";
7171 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7174 text_class: "slp_medium";
7177 description { state: "visible" 0.0;
7178 inherit: "default" 0.0;
7180 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7182 description { state: "clicked" 0.0;
7183 inherit: "default" 0.0;
7186 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7188 description { state: "disabled" 0.0;
7189 inherit: "default" 0.0;
7190 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7192 description { state: "disabled_visible" 0.0;
7193 inherit: "default" 0.0;
7194 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7196 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7198 description { state: "focused" 0.0;
7199 inherit: "default" 0.0;
7202 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7205 part { name: "over2";
7208 ignore_flags: ON_HOLD;
7209 description { state: "default" 0.0;
7213 part { name: "over3";
7216 description { state: "default" 0.0;
7220 part { name: "clipper";
7222 description { state: "default" 0.0;
7223 color: 255 255 255 255;
7226 part { name: "disabler";
7228 description { state: "default" 0.0;
7232 description { state: "disabled" 0.0;
7233 inherit: "default" 0.0;
7239 program { name: "button_click";
7240 signal: "mouse,down,1";
7242 action: SIGNAL_EMIT "elm,action,press" "";
7243 after: "button_click_anim";
7245 program { name: "button_click_anim";
7246 action: STATE_SET "clicked" 0.0;
7247 target: "button_image";
7248 after: "text_clicked";
7250 program { name: "text_clicked";
7254 get_state(PART:"elm.text", st, 30, vl);
7255 if (!strcmp(st, "visible"))
7256 set_state(PART:"elm.text", "clicked", 0.0);
7259 program { name: "button_unpress";
7260 action: SIGNAL_EMIT "elm,action,unpress" "";
7262 program { name: "button_mouseout_clicked";
7263 signal: "mouse,up,1";
7268 get_state(PART:"elm.swallow.content", st, 30, vl);
7269 if (strcmp(st, "icononly"))
7271 emit("elm,action,default,text,set", "");
7272 set_state(PART:"elm.text", "visible", 0.0);
7274 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7275 set_state(PART:"button_image", "default", 0.0);
7277 after: button_unpress;
7279 program { name: "touch_snd";
7280 signal: "mouse,clicked,1";
7282 action: PLAY_SAMPLE "touch_sound" 1.0;
7283 after: button_unclick3;
7285 program { name: "button_unclick3";
7286 action: SIGNAL_EMIT "elm,action,click" "";
7288 program { name: "text_show";
7289 signal: "elm,state,text,visible";
7294 get_state(PART:"elm.swallow.content", st, 30, vl);
7295 if (!strcmp(st, "icononly"))
7297 set_state(PART:"elm.swallow.content", "visible", 0.0);
7298 set_state(PART:"padding_icon_text", "visible", 0.0);
7300 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7301 set_state(PART:"elm.text", "visible", 0.0);
7303 set_state(PART:"elm.text", "disabled_visible", 0.0);
7306 program { name: "text_hide";
7307 signal: "elm,state,text,hidden";
7312 get_state(PART:"elm.swallow.content", st, 30, vl);
7313 if (!strcmp(st, "visible"))
7315 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7316 set_state(PART:"padding_icon_text", "icononly", 0.0);
7318 set_state(PART:"elm.text", "default", 0.0);
7321 program { name: "icon_show";
7322 signal: "elm,state,icon,visible";
7327 get_state(PART:"elm.text", st, 30, vl);
7328 if (!strcmp(st, "visible"))
7330 set_state(PART:"elm.swallow.content", "visible", 0.0);
7331 set_state(PART:"padding_icon_text", "visible", 0.0);
7335 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7336 set_state(PART:"padding_icon_text", "icononly", 0.0);
7340 program { name: "icon_hide";
7341 signal: "elm,state,icon,hidden";
7343 action: STATE_SET "default" 0.0;
7344 target: "elm.swallow.content";
7345 target: "padding_icon_text";
7347 program { name: "disable";
7348 signal: "elm,state,disabled";
7350 action: STATE_SET "disabled" 0.0;
7351 target: "button_image";
7353 after: "disable_text";
7355 program { name: "disable_text";
7359 get_state(PART:"elm.text", st, 30, vl);
7360 if (!strcmp(st, "visible"))
7361 set_state(PART:"elm.text", "disabled_visible", 0.0);
7363 set_state(PART:"elm.text", "disabled", 0.0);
7364 set_int(button_state, BUTTON_STATE_DISABLED);
7367 program { name: "enable";
7368 signal: "elm,state,enabled";
7370 action: STATE_SET "default" 0.0;
7371 target: "button_image";
7373 after: "enable_text";
7375 program { name: "enable_text";
7379 get_state(PART:"elm.text", st, 30, vl);
7380 if (!strcmp(st, "disabled_visible"))
7381 set_state(PART:"elm.text", "visible", 0.0);
7383 set_state(PART:"elm.text", "default", 0.0);
7384 set_int(button_state, BUTTON_STATE_ENABLED);
7387 program { name: "focused";
7388 //signal: "elm,action,focus";
7390 action: STATE_SET "focused" 0.0;
7391 target: "button_image";
7394 program { name: "unfocused";
7395 //signal: "elm,action,unfocus";
7397 action: STATE_SET "default" 0.0;
7398 target: "button_image";
7399 after: "unfocus_text";
7401 program { name: "unfocus_text";
7402 action: STATE_SET "visible" 0.0;
7408 ///////////////////////////////////////////////////////////////////////////////////////
7409 group { name: "elm/button/base/picker/prev/text/default";
7410 alias: "elm/button/base/picker/next/text/default";
7412 image: "00_picker_btn_normal.png" COMP;
7413 image: "00_picker_btn_press.png" COMP;
7414 image: "00_picker_btn_normal_focus.png" COMP;
7417 public button_state = BUTTON_STATE_ENABLED;
7420 part { name: "button_image";
7422 description { state: "default" 0.0;
7423 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7425 normal: "00_picker_btn_normal.png";
7426 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7430 description { state: "clicked" 0.0;
7431 inherit: "default" 0.0;
7432 image.normal: "00_picker_btn_press.png";
7434 description { state: "disabled" 0.0;
7435 inherit: "default" 0.0;
7438 description { state: "focused" 0.0;
7439 inherit: "default" 0.0;
7440 image.normal: "00_picker_btn_normal_focus.png";
7443 part { name: "padding_left_top";
7447 description { state: "default" 0.0;
7449 rel2.relative: 0.0 0.0;
7450 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7455 part { name: "padding_right_bottom";
7459 description { state: "default" 0.0;
7461 rel1.relative: 1.0 1.0;
7462 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7467 part { name: "icon_rect";
7471 description { state: "default" 0.0;
7472 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7476 to_x: "elm.swallow.content";
7477 to_y: "padding_left_top";
7481 to_x: "elm.swallow.content";
7482 to_y: "padding_right_bottom";
7488 part { name: "padding_icon_text";
7492 description { state: "default" 0.0; //when only icon or no icon is there
7498 rel2.to: "icon_rect";
7503 description { state: "icononly" 0.0;
7504 inherit: "default" 0.0;
7506 description { state: "visible" 0.0; //when icon is visible
7512 rel2.to: "icon_rect";
7514 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7518 part { name: "elm.swallow.content";
7522 description { state: "default" 0.0;
7527 to: "padding_left_top";
7531 to_x: "padding_left_top";
7532 to_y: "padding_right_bottom";
7536 description { state: "visible" 0.0;
7541 to: "padding_left_top";
7545 to_x: "padding_left_top";
7546 to_y: "padding_right_bottom";
7549 aspect_preference: VERTICAL;
7551 description { state: "icononly" 0.0;
7552 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7555 to: "padding_left_top";
7559 to_x: "padding_left_top";
7560 to_y: "padding_right_bottom";
7563 aspect_preference: VERTICAL;
7566 part { name: "elm.text";
7571 description { state: "default" 0.0;
7575 to_x: "padding_icon_text";
7576 to_y: "padding_left_top";
7580 to: "padding_right_bottom";
7582 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7584 font: "SLP:style=Medium";
7585 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7588 text_class: "slp_medium";
7591 description { state: "visible" 0.0;
7592 inherit: "default" 0.0;
7594 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7596 description { state: "clicked" 0.0;
7597 inherit: "default" 0.0;
7600 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7602 description { state: "disabled" 0.0;
7603 inherit: "default" 0.0;
7604 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7606 description { state: "disabled_visible" 0.0;
7607 inherit: "default" 0.0;
7608 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7610 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7612 description { state: "focused" 0.0;
7613 inherit: "default" 0.0;
7616 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7619 part { name: "over2";
7622 ignore_flags: ON_HOLD;
7623 description { state: "default" 0.0;
7627 part { name: "over3";
7630 description { state: "default" 0.0;
7634 part { name: "clipper";
7636 description { state: "default" 0.0;
7637 color: 255 255 255 255;
7640 part { name: "disabler";
7642 description { state: "default" 0.0;
7646 description { state: "disabled" 0.0;
7647 inherit: "default" 0.0;
7653 program { name: "button_click";
7654 signal: "mouse,down,1";
7656 action: SIGNAL_EMIT "elm,action,press" "";
7657 after: "button_click_anim";
7659 program { name: "button_click_anim";
7660 action: STATE_SET "clicked" 0.0;
7661 target: "button_image";
7662 after: "text_clicked";
7664 program { name: "text_clicked";
7668 get_state(PART:"elm.text", st, 30, vl);
7669 if (!strcmp(st, "visible"))
7670 set_state(PART:"elm.text", "clicked", 0.0);
7673 program { name: "button_unpress";
7674 action: SIGNAL_EMIT "elm,action,unpress" "";
7676 program { name: "button_mouseout_clicked";
7677 signal: "mouse,up,1";
7682 get_state(PART:"elm.swallow.content", st, 30, vl);
7683 if (strcmp(st, "icononly"))
7685 emit("elm,action,default,text,set", "");
7686 set_state(PART:"elm.text", "visible", 0.0);
7688 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7689 set_state(PART:"button_image", "default", 0.0);
7691 after: button_unpress;
7693 program { name: "touch_snd";
7694 signal: "mouse,clicked,1";
7696 action: PLAY_SAMPLE "touch_sound" 1.0;
7697 after: button_unclick3;
7699 program { name: "button_unclick3";
7700 action: SIGNAL_EMIT "elm,action,click" "";
7702 program { name: "text_show";
7703 signal: "elm,state,text,visible";
7708 get_state(PART:"elm.swallow.content", st, 30, vl);
7709 if (!strcmp(st, "icononly"))
7711 set_state(PART:"elm.swallow.content", "visible", 0.0);
7712 set_state(PART:"padding_icon_text", "visible", 0.0);
7714 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7715 set_state(PART:"elm.text", "visible", 0.0);
7717 set_state(PART:"elm.text", "disabled_visible", 0.0);
7720 program { name: "text_hide";
7721 signal: "elm,state,text,hidden";
7726 get_state(PART:"elm.swallow.content", st, 30, vl);
7727 if (!strcmp(st, "visible"))
7729 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7730 set_state(PART:"padding_icon_text", "icononly", 0.0);
7732 set_state(PART:"elm.text", "default", 0.0);
7735 program { name: "icon_show";
7736 signal: "elm,state,icon,visible";
7741 get_state(PART:"elm.text", st, 30, vl);
7742 if (!strcmp(st, "visible"))
7744 set_state(PART:"elm.swallow.content", "visible", 0.0);
7745 set_state(PART:"padding_icon_text", "visible", 0.0);
7749 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7750 set_state(PART:"padding_icon_text", "icononly", 0.0);
7754 program { name: "icon_hide";
7755 signal: "elm,state,icon,hidden";
7757 action: STATE_SET "default" 0.0;
7758 target: "elm.swallow.content";
7759 target: "padding_icon_text";
7761 program { name: "disable";
7762 signal: "elm,state,disabled";
7764 action: STATE_SET "disabled" 0.0;
7765 target: "button_image";
7767 after: "disable_text";
7769 program { name: "disable_text";
7773 get_state(PART:"elm.text", st, 30, vl);
7774 if (!strcmp(st, "visible"))
7775 set_state(PART:"elm.text", "disabled_visible", 0.0);
7777 set_state(PART:"elm.text", "disabled", 0.0);
7778 set_int(button_state, BUTTON_STATE_DISABLED);
7781 program { name: "enable";
7782 signal: "elm,state,enabled";
7784 action: STATE_SET "default" 0.0;
7785 target: "button_image";
7787 after: "enable_text";
7789 program { name: "enable_text";
7793 get_state(PART:"elm.text", st, 30, vl);
7794 if (!strcmp(st, "disabled_visible"))
7795 set_state(PART:"elm.text", "visible", 0.0);
7797 set_state(PART:"elm.text", "default", 0.0);
7798 set_int(button_state, BUTTON_STATE_ENABLED);
7801 program { name: "focused";
7802 //signal: "elm,action,focus";
7804 action: STATE_SET "focused" 0.0;
7805 target: "button_image";
7808 program { name: "unfocused";
7809 //signal: "elm,action,unfocus";
7811 action: STATE_SET "default" 0.0;
7812 target: "button_image";
7813 after: "unfocus_text";
7815 program { name: "unfocus_text";
7816 action: STATE_SET "visible" 0.0;
7822 ///////////////////////////////////////////////////////////////////////////////////////
7823 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7824 group { name: "elm/button/base/contact/"style_name; \
7826 image: "00_contacts_circle_bg.png" COMP; \
7827 image: image_normal COMP; \
7828 image: image_press COMP; \
7831 part { name: "button_image"; \
7833 description { state: "default" 0.0; \
7834 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7835 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7836 image.normal: "00_contacts_circle_bg.png"; \
7837 color: 255 255 255 255; \
7840 state: "clicked" 0.0; \
7841 inherit: "default" 0.0; \
7842 image.normal: "00_contacts_circle_bg.png"; \
7845 state: "disabled" 0.0; \
7846 inherit: "default" 0.0; \
7847 color: 255 255 255 128; \
7850 part { name: "button_center_part"; \
7852 description { state: "default" 0.0; \
7853 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7854 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7855 image.normal: image_normal; \
7856 color: 255 255 255 255; \
7859 state: "clicked" 0.0; \
7860 inherit: "default" 0.0; \
7861 image.normal: image_press; \
7864 state: "disabled" 0.0; \
7865 inherit: "default" 0.0; \
7866 color: 255 255 255 128; \
7869 part { name: "over1"; \
7871 ignore_flags: ON_HOLD; \
7872 description { state: "default" 0.0; \
7876 part { name: "over2"; \
7878 description { state: "default" 0.0; \
7882 part { name: "disabler"; \
7884 description { state: "default" 0.0; \
7888 description { state: "disabled" 0.0; \
7889 inherit: "default" 0.0; \
7895 program { name: "button_click"; \
7896 signal: "mouse,down,1"; \
7898 action: SIGNAL_EMIT "elm,action,press" ""; \
7899 after: "button_click_anim"; \
7901 program { name: "button_click_anim"; \
7902 action: STATE_SET "clicked" 0.0; \
7903 target: "button_image"; \
7904 target: "button_center_part"; \
7906 program { name: "button_unclick"; \
7907 signal: "mouse,up,1"; \
7909 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7910 after: "button_unclick_anim"; \
7912 program { name: "button_unclick_anim"; \
7913 action: STATE_SET "default" 0.0; \
7914 target: "button_image"; \
7915 target: "button_center_part"; \
7917 program { name: "touch_snd"; \
7918 signal: "mouse,clicked,1"; \
7920 action: PLAY_SAMPLE "touch_sound" 1.0; \
7921 after: button_unclick3; \
7923 program { name: "button_unclick3"; \
7924 action: SIGNAL_EMIT "elm,action,click" ""; \
7926 program { name: "disable"; \
7927 signal: "elm,state,disabled"; \
7929 action: STATE_SET "disabled" 0.0; \
7930 target: "disabler"; \
7931 target: "button_image"; \
7932 target: "button_center_part"; \
7934 program { name: "enable"; \
7935 signal: "elm,state,enabled"; \
7937 action: STATE_SET "default" 0.0; \
7938 target: "disabler"; \
7939 target: "button_image"; \
7940 target: "button_center_part"; \
7945 ///////////////////////////////////////////////////////////////////////////////////////
7946 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7948 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7950 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7952 ///////////////////////////////////////////////////////////////////////////////////////
7953 group { name: "elm/button/base/contact";
7954 alias: "elm/button/base/text_only/contact";
7956 image: "00_contacts_button_bg.png" COMP;
7957 image: "00_contacts_button_bg_press.png" COMP;
7960 public button_state = BUTTON_STATE_ENABLED;
7963 part { name: "button_image";
7965 description { state: "default" 0.0;
7967 to_x: "padding.left";
7971 to_x: "padding.right";
7974 min: BUTTON_CONTACT_BG_MIN_INC;
7976 normal: "00_contacts_button_bg.png";
7977 border: BUTTON_CONTACT_BG_BORDER_INC;
7981 description { state: "clicked" 0.0;
7982 inherit: "default" 0.0;
7983 image.normal: "00_contacts_button_bg_press.png";
7985 description { state: "disabled" 0.0;
7986 inherit: "default" 0.0;
7989 description { state: "focused" 0.0;
7990 inherit: "default" 0.0;
7993 part { name: "padding.left";
7996 description { state: "default" 0.0;
7998 min: BUTTON_CONTACT_PADDING_MIN_INC;
8008 part { name: "padding.right";
8011 description { state: "default" 0.0;
8013 min: BUTTON_CONTACT_PADDING_MIN_INC;
8023 part { name: "elm.text";
8027 description { state: "default" 0.0;
8030 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8032 font: "SLP:style=Medium";
8033 size: BUTTON_CONTACT_FONT_SIZE_INC;
8035 text_class: "slp_medium";
8038 description { state: "visible" 0.0;
8039 inherit: "default" 0.0;
8043 description { state: "clicked" 0.0;
8044 inherit: "default" 0.0;
8047 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8049 description { state: "disabled" 0.0;
8050 inherit: "default" 0.0;
8053 description { state: "disabled_visible" 0.0;
8054 inherit: "default" 0.0;
8055 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8059 description { state: "focused" 0.0;
8060 inherit: "default" 0.0;
8063 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8066 part { name: "over1";
8068 description { state: "default" 0.0;
8069 rel2.relative: 1.0 0.5;
8072 part { name: "over2";
8074 ignore_flags: ON_HOLD;
8075 description { state: "default" 0.0;
8076 rel1.to: "button_image";
8077 rel2.to: "button_image";
8080 part { name: "over3";
8082 description { state: "default" 0.0;
8083 rel1.to: "button_image";
8084 rel2.to: "button_image";
8088 part { name: "disabler";
8090 description { state: "default" 0.0;
8091 rel1.to: "button_image";
8092 rel2.to: "button_image";
8096 description { state: "disabled" 0.0;
8097 inherit: "default" 0.0;
8103 program { name: "button_click";
8104 signal: "mouse,down,1";
8106 action: SIGNAL_EMIT "elm,action,press" "";
8107 after: "button_click_anim";
8109 program { name: "button_click_anim";
8110 action: STATE_SET "clicked" 0.0;
8111 target: "button_image";
8114 program { name: "button_unpress";
8115 action: SIGNAL_EMIT "elm,action,unpress" "";
8117 program { name: "button_mouseout_clicked";
8118 signal: "mouse,up,1";
8123 get_state(PART:"elm.text", st, 30, vl);
8124 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8126 emit("elm,action,default,text,set", "");
8127 set_state(PART:"elm.text", "visible", 0.0);
8129 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8130 set_state(PART:"button_image", "default", 0.0);
8132 after: button_unpress;
8134 program { name: "touch_snd";
8135 signal: "mouse,clicked,1";
8137 action: PLAY_SAMPLE "touch_sound" 1.0;
8138 after: button_unclick3;
8140 program { name: "button_unclick3";
8141 action: SIGNAL_EMIT "elm,action,click" "";
8143 program { name: "text_show";
8144 signal: "elm,state,text,visible";
8147 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8148 set_state(PART:"elm.text", "visible", 0.0);
8150 set_state(PART:"elm.text", "disabled_visible", 0.0);
8153 program { name: "text_hide";
8154 signal: "elm,state,text,hidden";
8156 action: STATE_SET "default" 0.0;
8159 program { name: "disable";
8160 signal: "elm,state,disabled";
8162 action: STATE_SET "disabled" 0.0;
8163 target: "button_image";
8165 after: "disable_text";
8167 program { name: "disable_text";
8171 get_state(PART:"elm.text", st, 30, vl);
8172 if (!strcmp(st, "visible"))
8173 set_state(PART:"elm.text", "disabled_visible", 0.0);
8175 set_state(PART:"elm.text", "disabled", 0.0);
8176 set_int(button_state, BUTTON_STATE_DISABLED);
8179 program { name: "enable";
8180 signal: "elm,state,enabled";
8182 action: STATE_SET "default" 0.0;
8183 target: "button_image";
8185 after: "enable_text";
8187 program { name: "enable_text";
8191 get_state(PART:"elm.text", st, 30, vl);
8192 if (!strcmp(st, "disabled_visible"))
8193 set_state(PART:"elm.text", "visible", 0.0);
8195 set_state(PART:"elm.text", "default", 0.0);
8196 set_int(button_state, BUTTON_STATE_ENABLED);
8199 program { name: "focused";
8200 //signal: "elm,action,focus";
8202 action: STATE_SET "focused" 0.0;
8203 target: "button_image";
8206 program { name: "unfocused";
8207 //signal: "elm,action,unfocus";
8209 action: STATE_SET "default" 0.0;
8210 target: "button_image";
8211 action: STATE_SET "visible" 0.0;
8217 ///////////////////////////////////////////////////////////////////////////////////////
8218 group { name: "elm/button/base/naviframe/back_btn/default";
8219 alias: "elm/button/base/naviframe/prev_btn/default";
8220 alias: "elm/button/base/naviframe/end_btn/default";
8222 image: "00_winset_Back_btn_normal.png" COMP;
8223 image: "00_winset_Back_btn_press.png" COMP;
8224 image: "00_winset_Back_btn_normal_focus.png" COMP;
8225 image: "00_winset_Back.png" COMP;
8228 public button_state = BUTTON_STATE_ENABLED;
8231 part { name: "button_image";
8233 description { state: "default" 0.0;
8234 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8235 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8237 normal: "00_winset_Back_btn_normal.png";
8238 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8242 description { state: "clicked" 0.0;
8243 inherit: "default" 0.0;
8244 image.normal: "00_winset_Back_btn_press.png";
8246 description { state: "disabled" 0.0;
8247 inherit: "default" 0.0;
8249 description { state: "focused" 0.0;
8250 inherit: "default" 0.0;
8251 image.normal: "00_winset_Back_btn_normal_focus.png";
8254 part { name: "back_button";
8257 description { state: "default" 0.0;
8258 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8259 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8260 rel1.to: "button_image";
8261 rel2.to: "button_image";
8262 image.normal: "00_winset_Back.png";
8264 description { state: "clicked" 0.0;
8265 inherit: "default" 0.0;
8267 description { state: "disabled" 0.0;
8268 inherit: "default" 0.0;
8269 color: 127 127 127 127;
8272 part { name: "over2";
8275 ignore_flags: ON_HOLD;
8276 description { state: "default" 0.0;
8280 part { name: "over3";
8283 description { state: "default" 0.0;
8287 part { name: "disabler";
8289 description { state: "default" 0.0;
8293 description { state: "disabled" 0.0;
8294 inherit: "default" 0.0;
8300 program { name: "button_click";
8301 signal: "mouse,down,1";
8303 action: SIGNAL_EMIT "elm,action,press" "";
8304 after: "button_click_anim";
8306 program { name: "button_click_anim";
8307 action: STATE_SET "clicked" 0.0;
8308 target: "button_image";
8310 program { name: "button_unpress";
8311 action: SIGNAL_EMIT "elm,action,unpress" "";
8313 program { name: "button_mouseout_clicked";
8314 signal: "mouse,up,1";
8317 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8318 set_state(PART:"button_image", "default", 0.0);
8320 after: button_unpress;
8322 program { name: "touch_snd";
8323 signal: "mouse,clicked,1";
8325 action: PLAY_SAMPLE "touch_sound" 1.0;
8326 after: button_unclick3;
8328 program { name: "button_unclick3";
8329 action: SIGNAL_EMIT "elm,action,click" "";
8331 program { name: "disable";
8332 signal: "elm,state,disabled";
8334 action: STATE_SET "disabled" 0.0;
8335 target: "button_image";
8337 target: "back_button";
8338 after: "disable_button";
8340 program { name: "disable_button";
8342 set_int(button_state, BUTTON_STATE_DISABLED);
8345 program { name: "enable";
8346 signal: "elm,state,enabled";
8348 action: STATE_SET "default" 0.0;
8349 target: "button_image";
8351 target: "back_button";
8352 after: "enable_button";
8354 program { name: "enable_button";
8356 set_int(button_state, BUTTON_STATE_ENABLED);
8359 program { name: "focused";
8360 //signal: "elm,action,focus";
8362 action: STATE_SET "focused" 0.0;
8363 target: "button_image";
8365 program { name: "unfocused";
8366 //signal: "elm,action,unfocus";
8368 action: STATE_SET "default" 0.0;
8369 target: "button_image";
8374 ///////////////////////////////////////////////////////////////////////////////////////
8375 group { name: "elm/button/base/picker/prev/icon/default";
8377 image: "00_picker_btn_normal.png" COMP;
8378 image: "00_picker_btn_press.png" COMP;
8379 image: "00_picker_btn_normal_focus.png" COMP;
8380 image: "00_picker_arrow_left.png" COMP;
8381 image: "00_picker_arrow_left_press.png" COMP;
8384 public button_state = BUTTON_STATE_ENABLED;
8387 part { name: "button_image";
8389 description { state: "default" 0.0;
8390 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8391 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8393 normal: "00_picker_btn_normal.png";
8394 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8398 description { state: "clicked" 0.0;
8399 inherit: "default" 0.0;
8400 image.normal: "00_picker_btn_press.png";
8402 description { state: "disabled" 0.0;
8403 inherit: "default" 0.0;
8405 description { state: "focused" 0.0;
8406 inherit: "default" 0.0;
8407 image.normal: "00_picker_btn_normal_focus.png";
8410 part { name: "padding_left_top";
8414 description { state: "default" 0.0;
8416 rel2.relative: 0.0 0.0;
8417 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8422 part { name: "padding_right_bottom";
8426 description { state: "default" 0.0;
8428 rel1.relative: 1.0 1.0;
8429 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8434 part { name: "left_arrow";
8437 description { state: "default" 0.0;
8438 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8439 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8442 to: "padding_left_top";
8446 to: "padding_right_bottom";
8448 image.normal: "00_picker_arrow_left.png";
8450 description { state: "clicked" 0.0;
8451 inherit: "default" 0.0;
8452 image.normal: "00_picker_arrow_left_press.png";
8455 part { name: "over2";
8458 ignore_flags: ON_HOLD;
8459 description { state: "default" 0.0;
8463 part { name: "over3";
8466 description { state: "default" 0.0;
8470 part { name: "disabler";
8472 description { state: "default" 0.0;
8476 description { state: "disabled" 0.0;
8477 inherit: "default" 0.0;
8483 program { name: "button_click";
8484 signal: "mouse,down,1";
8486 action: SIGNAL_EMIT "elm,action,press" "";
8487 after: "button_click_anim";
8489 program { name: "button_click_anim";
8490 action: STATE_SET "clicked" 0.0;
8491 target: "button_image";
8493 program { name: "button_unpress";
8494 action: SIGNAL_EMIT "elm,action,unpress" "";
8496 program { name: "button_mouseout_clicked";
8497 signal: "mouse,up,1";
8500 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8501 set_state(PART:"button_image", "default", 0.0);
8503 after: button_unpress;
8505 program { name: "touch_snd";
8506 signal: "mouse,clicked,1";
8508 action: PLAY_SAMPLE "touch_sound" 1.0;
8509 after: button_unclick3;
8511 program { name: "button_unclick3";
8512 action: SIGNAL_EMIT "elm,action,click" "";
8514 program { name: "disable";
8515 signal: "elm,state,disabled";
8517 action: STATE_SET "disabled" 0.0;
8518 target: "button_image";
8520 after: "disable_button";
8522 program { name: "disable_button";
8524 set_int(button_state, BUTTON_STATE_DISABLED);
8527 program { name: "enable";
8528 signal: "elm,state,enabled";
8530 action: STATE_SET "default" 0.0;
8531 target: "button_image";
8533 after: "enable_button";
8535 program { name: "enable_button";
8537 set_int(button_state, BUTTON_STATE_ENABLED);
8540 program { name: "focused";
8541 //signal: "elm,action,focus";
8543 action: STATE_SET "focused" 0.0;
8544 target: "button_image";
8546 program { name: "unfocused";
8547 //signal: "elm,action,unfocus";
8549 action: STATE_SET "default" 0.0;
8550 target: "button_image";
8555 ///////////////////////////////////////////////////////////////////////////////////////
8556 group { name: "elm/button/base/picker/next/icon/default";
8558 image: "00_picker_btn_normal.png" COMP;
8559 image: "00_picker_btn_press.png" COMP;
8560 image: "00_picker_btn_normal_focus.png" COMP;
8561 image: "00_picker_arrow_right.png" COMP;
8562 image: "00_picker_arrow_right_press.png" COMP;
8565 public button_state = BUTTON_STATE_ENABLED;
8568 part { name: "button_image";
8570 description { state: "default" 0.0;
8571 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8572 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8574 normal: "00_picker_btn_normal.png";
8575 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8579 description { state: "clicked" 0.0;
8580 inherit: "default" 0.0;
8581 image.normal: "00_picker_btn_press.png";
8583 description { state: "disabled" 0.0;
8584 inherit: "default" 0.0;
8586 description { state: "focused" 0.0;
8587 inherit: "default" 0.0;
8588 image.normal: "00_picker_btn_normal_focus.png";
8591 part { name: "padding_left_top";
8595 description { state: "default" 0.0;
8597 rel2.relative: 0.0 0.0;
8598 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8603 part { name: "padding_right_bottom";
8607 description { state: "default" 0.0;
8609 rel1.relative: 1.0 1.0;
8610 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8615 part { name: "right_arrow";
8618 description { state: "default" 0.0;
8619 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8620 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8623 to: "padding_left_top";
8627 to: "padding_right_bottom";
8629 image.normal: "00_picker_arrow_right.png";
8631 description { state: "clicked" 0.0;
8632 inherit: "default" 0.0;
8633 image.normal: "00_picker_arrow_right_press.png";
8636 part { name: "over2";
8639 ignore_flags: ON_HOLD;
8640 description { state: "default" 0.0;
8644 part { name: "over3";
8647 description { state: "default" 0.0;
8651 part { name: "disabler";
8653 description { state: "default" 0.0;
8657 description { state: "disabled" 0.0;
8658 inherit: "default" 0.0;
8664 program { name: "button_click";
8665 signal: "mouse,down,1";
8667 action: SIGNAL_EMIT "elm,action,press" "";
8668 after: "button_click_anim";
8670 program { name: "button_click_anim";
8671 action: STATE_SET "clicked" 0.0;
8672 target: "button_image";
8674 program { name: "button_unpress";
8675 action: SIGNAL_EMIT "elm,action,unpress" "";
8677 program { name: "button_mouseout_clicked";
8678 signal: "mouse,up,1";
8681 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8682 set_state(PART:"button_image", "default", 0.0);
8684 after: button_unpress;
8686 program { name: "touch_snd";
8687 signal: "mouse,clicked,1";
8689 action: PLAY_SAMPLE "touch_sound" 1.0;
8690 after: button_unclick3;
8692 program { name: "button_unclick3";
8693 action: SIGNAL_EMIT "elm,action,click" "";
8695 program { name: "disable";
8696 signal: "elm,state,disabled";
8698 action: STATE_SET "disabled" 0.0;
8699 target: "button_image";
8701 after: "disable_button";
8703 program { name: "disable_button";
8705 set_int(button_state, BUTTON_STATE_DISABLED);
8708 program { name: "enable";
8709 signal: "elm,state,enabled";
8711 action: STATE_SET "default" 0.0;
8712 target: "button_image";
8714 after: "enable_button";
8716 program { name: "enable_button";
8718 set_int(button_state, BUTTON_STATE_ENABLED);
8721 program { name: "focused";
8722 //signal: "elm,action,focus";
8724 action: STATE_SET "focused" 0.0;
8725 target: "button_image";
8727 program { name: "unfocused";
8728 //signal: "elm,action,unfocus";
8730 action: STATE_SET "default" 0.0;
8731 target: "button_image";
8736 ///////////////////////////////////////////////////////////////////////////////////////
8737 group { name: "elm/button/base/naviframe_control/default";
8738 alias: "elm/button/base/naviframe_control/center";
8740 public button_state = BUTTON_STATE_ENABLED;
8743 image: "00_Option_header_bt.png" COMP;
8744 image: "00_Option_header_bt_dim.png" COMP;
8745 image: "00_Option_header_bt_press.png" COMP;
8746 image: "00_Option_header_bt_focus.png" COMP;
8749 part { name: "button_image";
8751 description { state: "default" 0.0;
8752 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8757 normal: "00_Option_header_bt.png";
8758 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8760 color: 255 255 255 255;
8762 description { state: "disabled" 0.0;
8763 inherit: "default" 0.0;
8764 image.normal: "00_Option_header_bt_dim.png";
8766 description { state: "clicked" 0.0;
8767 inherit: "default" 0.0;
8768 image.normal: "00_Option_header_bt_press.png";
8770 description { state: "focused" 0.0;
8771 inherit: "default" 0.0;
8772 image.normal: "00_Option_header_bt_focus.png";
8775 part { name: "padding_left_top";
8779 description { state: "default" 0.0;
8781 rel2.relative: 0.0 0.0;
8782 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8787 part { name: "padding_right_bottom";
8791 description { state: "default" 0.0;
8793 rel1.relative: 1.0 1.0;
8794 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8799 part { name: "icon_rect";
8803 description { state: "default" 0.0;
8808 to: "padding_left_top";
8812 to_x: "padding_left_top";
8813 to_y: "padding_right_bottom";
8818 description { state: "visible" 0.0;
8819 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8823 to: "padding_left_top";
8827 to_x: "padding_left_top";
8828 to_y: "padding_right_bottom";
8833 description { state: "icononly" 0.0;
8834 inherit: "default" 0.0;
8837 part { name: "padding_after_icon";
8841 description { state: "default" 0.0; //when only icon or no icon is there
8847 rel2.to: "icon_rect";
8852 description { state: "visible" 0.0;
8858 rel2.to: "icon_rect";
8860 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8863 description { state: "icononly" 0.0;
8864 inherit: "default" 0.0;
8867 part { name: "padding_before_text";
8871 description { state: "default" 0.0; //when only icon or no icon is there
8876 to_y: "padding_left_top";
8881 to_y: "padding_right_bottom";
8884 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8888 part { name: "elm.swallow.content";
8892 description { state: "default" 0.0;
8897 to: "padding_left_top";
8901 to_x: "padding_left_top";
8902 to_y: "padding_right_bottom";
8906 description { state: "visible" 0.0;
8908 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8909 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8913 to_x: "padding_before_text";
8914 to_y: "padding_left_top";
8918 to_x: "padding_before_text";
8919 to_y: "padding_right_bottom";
8922 aspect_preference: VERTICAL;
8924 description { state: "icononly" 0.0;
8925 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8926 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8929 to: "padding_left_top";
8933 to: "padding_right_bottom";
8936 aspect_preference: VERTICAL;
8939 part { name: "elm.text";
8944 description { state: "default" 0.0;
8948 to_x: "padding_after_icon";
8949 to_y: "padding_left_top";
8953 to: "padding_right_bottom";
8955 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8957 font: "SLP:style=Medium";
8958 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8961 text_class: "slp_medium";
8964 description { state: "visible" 0.0;
8965 inherit: "default" 0.0;
8968 description { state: "clicked" 0.0;
8969 inherit: "default" 0.0;
8973 description { state: "focused" 0.0;
8974 inherit: "default" 0.0;
8977 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8980 part { name: "over2";
8983 ignore_flags: ON_HOLD;
8984 description { state: "default" 0.0;
8988 part { name: "over3";
8991 description { state: "default" 0.0;
8995 part { name: "clipper";
8997 description { state: "default" 0.0;
8998 color: 255 255 255 255;
9000 description { state: "disabled" 0.0;
9001 color: 255 255 255 127;
9004 part { name: "disabler";
9006 description { state: "default" 0.0;
9010 description { state: "disabled" 0.0;
9011 inherit: "default" 0.0;
9017 program { name: "button_click";
9018 signal: "mouse,down,1";
9020 action: SIGNAL_EMIT "elm,action,press" "";
9021 after: "button_click_anim";
9023 program { name: "button_click_anim";
9024 action: STATE_SET "clicked" 0.0;
9025 target: "button_image";
9026 after: "text_clicked";
9028 program { name: "text_clicked";
9032 get_state(PART:"elm.text", st, 30, vl);
9033 if (!strcmp(st, "visible"))
9034 set_state(PART:"elm.text", "clicked", 0.0);
9037 program { name: "button_unpress";
9038 action: SIGNAL_EMIT "elm,action,unpress" "";
9040 program { name: "button_mouseout_clicked";
9041 signal: "mouse,up,1";
9046 get_state(PART:"elm.swallow.content", st, 30, vl);
9047 if (strcmp(st, "icononly"))
9049 emit("elm,action,default,text,set", "");
9050 set_state(PART:"elm.text", "visible", 0.0);
9052 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9053 set_state(PART:"button_image", "default", 0.0);
9055 after: button_unpress;
9057 program { name: "touch_snd";
9058 signal: "mouse,clicked,1";
9060 action: PLAY_SAMPLE "touch_sound" 1.0;
9061 after: button_unclick3;
9063 program { name: "button_unclick3";
9064 action: SIGNAL_EMIT "elm,action,click" "";
9066 program { name: "text_show";
9067 signal: "elm,state,text,visible";
9072 get_state(PART:"elm.swallow.content", st, 30, vl);
9073 if (!strcmp(st, "icononly"))
9075 set_state(PART:"elm.swallow.content", "visible", 0.0);
9076 set_state(PART:"icon_rect", "visible", 0.0);
9077 set_state(PART:"padding_after_icon", "visible", 0.0);
9079 set_state(PART:"elm.text", "visible", 0.0);
9082 program { name: "text_hide";
9083 signal: "elm,state,text,hidden";
9088 get_state(PART:"elm.swallow.content", st, 30, vl);
9089 if (!strcmp(st, "visible"))
9091 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9092 set_state(PART:"icon_rect", "icononly", 0.0);
9093 set_state(PART:"padding_after_icon", "icononly", 0.0);
9095 set_state(PART:"elm.text", "default", 0.0);
9098 program { name: "icon_show";
9099 signal: "elm,state,icon,visible";
9104 get_state(PART:"elm.text", st, 30, vl);
9105 if (!strcmp(st, "visible"))
9107 set_state(PART:"elm.swallow.content", "visible", 0.0);
9108 set_state(PART:"icon_rect", "visible", 0.0);
9109 set_state(PART:"padding_after_icon", "visible", 0.0);
9113 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9114 set_state(PART:"icon_rect", "icononly", 0.0);
9115 set_state(PART:"padding_after_icon", "icononly", 0.0);
9119 program { name: "icon_hide";
9120 signal: "elm,state,icon,hidden";
9122 action: STATE_SET "default" 0.0;
9123 target: "elm.swallow.content";
9124 target: "icon_rect";
9125 target: "padding_after_icon";
9127 program { name: "disable";
9128 signal: "elm,state,disabled";
9130 action: STATE_SET "disabled" 0.0;
9131 target: "button_image";
9134 after: "disable_text";
9136 program { name: "disable_text";
9140 set_int(button_state, BUTTON_STATE_DISABLED);
9141 get_state(PART:"elm.text", st, 30, vl);
9142 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9143 set_state(PART:"elm.text", "visible", 0.0);
9146 program { name: "enable";
9147 signal: "elm,state,enabled";
9149 action: STATE_SET "default" 0.0;
9150 target: "button_image";
9153 after: "enable_text";
9155 program { name: "enable_text";
9159 set_int(button_state, BUTTON_STATE_ENABLED);
9160 get_state(PART:"elm.text", st, 30, vl);
9161 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9162 set_state(PART:"elm.text", "visible", 0.0);
9165 program { name: "focused";
9166 //signal: "elm,action,focus";
9168 action: STATE_SET "focused" 0.0;
9169 target: "button_image";
9172 program { name: "unfocused";
9173 //signal: "elm,action,unfocus";
9175 action: STATE_SET "default" 0.0;
9176 target: "button_image";
9177 after: "unfocus_text";
9179 program { name: "unfocus_text";
9180 action: STATE_SET "visible" 0.0;
9186 ///////////////////////////////////////////////////////////////////////////////////////
9187 group { name: "elm/button/base/naviframe_control/multiline";
9189 public button_state = BUTTON_STATE_ENABLED;
9192 image: "00_Option_header_bt.png" COMP;
9193 image: "00_Option_header_bt_dim.png" COMP;
9194 image: "00_Option_header_bt_press.png" COMP;
9195 image: "00_Option_header_bt_focus.png" COMP;
9198 style { name: "btn_multiline_naviframe_controlbar_style";
9199 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9206 part { name: "button_image";
9208 description { state: "default" 0.0;
9209 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9213 normal: "00_Option_header_bt.png";
9214 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9216 color: 255 255 255 255;
9218 description { state: "disabled" 0.0;
9219 inherit: "default" 0.0;
9220 image.normal: "00_Option_header_bt_dim.png";
9222 description { state: "clicked" 0.0;
9223 inherit: "default" 0.0;
9224 image.normal: "00_Option_header_bt_press.png";
9226 description { state: "focused" 0.0;
9227 inherit: "default" 0.0;
9228 image.normal: "00_Option_header_bt_focus.png";
9231 part { name: "padding_left_top";
9235 description { state: "default" 0.0;
9237 rel2.relative: 0.0 0.0;
9238 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9243 part { name: "padding_right_bottom";
9247 description { state: "default" 0.0;
9249 rel1.relative: 1.0 1.0;
9250 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9255 part { name: "icon_rect";
9259 description { state: "default" 0.0;
9265 to_x: "elm.swallow.content";
9266 to_y: "padding_left_top";
9270 to_x: "elm.swallow.content";
9271 to_y: "padding_right_bottom";
9276 part { name: "padding_icon_text";
9280 description { state: "default" 0.0; //when only icon or no icon is there
9294 description { state: "visible" 0.0;
9295 inherit: "default" 0.0;
9296 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9306 description { state: "icononly" 0.0;
9307 inherit: "default" 0.0;
9310 part { name: "elm.swallow.content";
9314 description { state: "default" 0.0;
9319 to: "padding_left_top";
9323 to_x: "padding_left_top";
9324 to_y: "padding_right_bottom";
9328 description { state: "visible" 0.0;
9330 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9331 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9335 to: "padding_left_top";
9339 to_x: "padding_left_top";
9340 to_y: "padding_right_bottom";
9343 description { state: "icononly" 0.0;
9344 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9345 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9348 to: "padding_left_top";
9352 to: "padding_right_bottom";
9356 part { name: "elm.text";
9361 description { state: "default" 0.0;
9365 to_x: "padding_icon_text";
9366 to_y: "padding_left_top";
9370 to: "padding_right_bottom";
9372 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9374 style: "btn_multiline_naviframe_controlbar_style";
9379 description { state: "visible" 0.0;
9380 inherit: "default" 0.0;
9384 description { state: "clicked" 0.0;
9385 inherit: "default" 0.0;
9389 description { state: "focused" 0.0;
9390 inherit: "default" 0.0;
9393 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9396 part { name: "over2";
9399 ignore_flags: ON_HOLD;
9400 description { state: "default" 0.0;
9404 part { name: "over3";
9407 description { state: "default" 0.0;
9411 part { name: "clipper";
9413 description { state: "default" 0.0;
9414 color: 255 255 255 255;
9416 description { state: "disabled" 0.0;
9417 color: 255 255 255 127;
9420 part { name: "disabler";
9422 description { state: "default" 0.0;
9426 description { state: "disabled" 0.0;
9427 inherit: "default" 0.0;
9433 program { name: "button_click";
9434 signal: "mouse,down,1";
9436 action: SIGNAL_EMIT "elm,action,press" "";
9437 after: "button_click_anim";
9439 program { name: "button_click_anim";
9440 action: STATE_SET "clicked" 0.0;
9441 target: "button_image";
9442 after: "text_clicked";
9444 program { name: "text_clicked";
9448 get_state(PART:"elm.text", st, 30, vl);
9449 if (!strcmp(st, "visible"))
9450 set_state(PART:"elm.text", "clicked", 0.0);
9453 program { name: "button_unpress";
9454 action: SIGNAL_EMIT "elm,action,unpress" "";
9456 program { name: "button_mouseout_clicked";
9457 signal: "mouse,up,1";
9462 get_state(PART:"elm.swallow.content", st, 30, vl);
9463 if (strcmp(st, "icononly"))
9465 emit("elm,action,default,text,set", "");
9466 set_state(PART:"elm.text", "visible", 0.0);
9468 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9469 set_state(PART:"button_image", "default", 0.0);
9471 after: button_unpress;
9473 program { name: "touch_snd";
9474 signal: "mouse,clicked,1";
9476 action: PLAY_SAMPLE "touch_sound" 1.0;
9477 after: button_unclick3;
9479 program { name: "button_unclick3";
9480 action: SIGNAL_EMIT "elm,action,click" "";
9482 program { name: "text_show";
9483 signal: "elm,state,text,visible";
9488 get_state(PART:"elm.swallow.content", st, 30, vl);
9489 if (!strcmp(st, "icononly"))
9491 set_state(PART:"elm.swallow.content", "visible", 0.0);
9492 set_state(PART:"padding_icon_text", "visible", 0.0);
9494 set_state(PART:"elm.text", "visible", 0.0);
9497 program { name: "text_hide";
9498 signal: "elm,state,text,hidden";
9503 get_state(PART:"elm.swallow.content", st, 30, vl);
9504 if (!strcmp(st, "visible"))
9506 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9507 set_state(PART:"padding_icon_text", "icononly", 0.0);
9509 set_state(PART:"elm.text", "default", 0.0);
9512 program { name: "icon_show";
9513 signal: "elm,state,icon,visible";
9518 get_state(PART:"elm.text", st, 30, vl);
9519 if (!strcmp(st, "visible"))
9521 set_state(PART:"elm.swallow.content", "visible", 0.0);
9522 set_state(PART:"padding_icon_text", "visible", 0.0);
9526 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9527 set_state(PART:"padding_icon_text", "icononly", 0.0);
9531 program { name: "icon_hide";
9532 signal: "elm,state,icon,hidden";
9534 action: STATE_SET "default" 0.0;
9535 target: "elm.swallow.content";
9536 target: "padding_icon_text";
9538 program { name: "disable";
9539 signal: "elm,state,disabled";
9541 action: STATE_SET "disabled" 0.0;
9542 target: "button_image";
9545 after: "disable_text";
9547 program { name: "disable_text";
9551 set_int(button_state, BUTTON_STATE_DISABLED);
9552 get_state(PART:"elm.text", st, 30, vl);
9553 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9554 set_state(PART:"elm.text", "visible", 0.0);
9557 program { name: "enable";
9558 signal: "elm,state,enabled";
9560 action: STATE_SET "default" 0.0;
9561 target: "button_image";
9564 after: "enable_text";
9566 program { name: "enable_text";
9570 set_int(button_state, BUTTON_STATE_ENABLED);
9571 get_state(PART:"elm.text", st, 30, vl);
9572 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9573 set_state(PART:"elm.text", "visible", 0.0);
9576 program { name: "focused";
9577 //signal: "elm,action,focus";
9579 action: STATE_SET "focused" 0.0;
9580 target: "button_image";
9583 program { name: "unfocused";
9584 //signal: "elm,action,unfocus";
9586 action: STATE_SET "default" 0.0;
9587 target: "button_image";
9588 after: "unfocus_text";
9590 program { name: "unfocus_text";
9591 action: STATE_SET "visible" 0.0;
9597 /////////////////////////////////////////////////////////////
9598 group { name: "elm/button/base/naviframe/title1/default";
9600 image: "00_winset_Back_btn_normal.png" COMP;
9601 image: "00_winset_Back_btn_press.png" COMP;
9602 image: "00_winset_Back_btn_normal_focus.png" COMP;
9605 public button_state = BUTTON_STATE_ENABLED;
9608 part { name: "button_image";
9610 description { state: "default" 0.0;
9611 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9613 normal: "00_winset_Back_btn_normal.png";
9614 border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9618 description { state: "clicked" 0.0;
9619 inherit: "default" 0.0;
9620 image.normal: "00_winset_Back_btn_press.png";
9622 description { state: "disabled" 0.0;
9623 inherit: "default" 0.0;
9624 color: 127 127 127 127;
9626 description { state: "focused" 0.0;
9627 inherit: "default" 0.0;
9628 image.normal: "00_winset_Back_btn_normal_focus.png";
9631 part { name: "padding_left_top";
9635 description { state: "default" 0.0;
9637 rel2.relative: 0.0 0.0;
9638 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9647 description { state: "default" 0.0;
9648 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9651 description { state: "visible" 0.0;
9652 inherit: "default" 0.0;
9653 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9655 description { state: "icononly" 0.0;
9656 inherit: "default" 0.0;
9657 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9660 part { name: "padding_right_bottom";
9664 description { state: "default" 0.0;
9666 rel1.relative: 1.0 1.0;
9667 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9672 part { name: "icon_rect";
9676 description { state: "default" 0.0;
9682 to: "padding_left_top";
9686 to_x: "padding_left_top";
9687 to_y: "padding_right_bottom";
9691 description { state: "visible" 0.0;
9693 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9694 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9698 to: "padding_left_top";
9702 to_x: "padding_left_top";
9703 to_y: "padding_right_bottom";
9707 description { state: "icononly" 0.0;
9708 inherit: "default" 0.0;
9711 part { name: "padding_after_icon";
9715 description { state: "default" 0.0; //when only icon or no icon is there
9721 rel2.to: "icon_rect";
9726 description { state: "visible" 0.0;
9733 rel2.to: "icon_rect";
9735 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9737 description { state: "icononly" 0.0;
9738 inherit: "default" 0.0;
9741 part { name: "padding_before_text";
9745 description { state: "default" 0.0; //when only icon or no icon is there
9750 to_y: "padding_left_top";
9755 to_y: "padding_right_bottom";
9758 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9762 part { name: "elm.swallow.content";
9766 description { state: "default" 0.0;
9771 to: "padding_left_top";
9775 to_x: "padding_left_top";
9776 to_y: "padding_right_bottom";
9780 description { state: "visible" 0.0;
9782 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9783 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9787 to_x: "padding_before_text";
9788 to_y: "padding_left_top";
9792 to_x: "padding_before_text";
9793 to_y: "padding_right_bottom";
9796 description { state: "icononly" 0.0;
9797 min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9798 max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9801 part { name: "elm.text";
9806 description { state: "default" 0.0;
9810 to_x: "padding_after_icon";
9811 to_y: "padding_left_top";
9815 to: "padding_right_bottom";
9817 color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9819 font: "SLP:style=Medium";
9820 size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9823 text_class: "slp_medium";
9826 description { state: "visible" 0.0;
9827 inherit: "default" 0.0;
9830 description { state: "clicked" 0.0;
9831 inherit: "default" 0.0;
9833 color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9835 description { state: "disabled" 0.0;
9836 inherit: "default" 0.0;
9839 description { state: "disabled_visible" 0.0;
9840 inherit: "default" 0.0;
9841 color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9844 description { state: "focused" 0.0;
9845 inherit: "default" 0.0;
9847 color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9850 part { name: "over2";
9853 ignore_flags: ON_HOLD;
9854 description { state: "default" 0.0;
9858 part { name: "over3";
9861 description { state: "default" 0.0;
9865 part { name: "clipper";
9867 description { state: "default" 0.0;
9868 color: 255 255 255 255;
9871 part { name: "disabler";
9873 description { state: "default" 0.0;
9877 description { state: "disabled" 0.0;
9878 inherit: "default" 0.0;
9884 program { name: "button_click";
9885 signal: "mouse,down,1";
9887 action: SIGNAL_EMIT "elm,action,press" "";
9888 after: "button_click_anim";
9890 program { name: "button_click_anim";
9891 action: STATE_SET "clicked" 0.0;
9892 target: "button_image";
9893 after: "text_clicked";
9895 program { name: "text_clicked";
9899 get_state(PART:"elm.text", st, 30, vl);
9900 if (!strcmp(st, "visible"))
9901 set_state(PART:"elm.text", "clicked", 0.0);
9904 program { name: "button_unpress";
9905 action: SIGNAL_EMIT "elm,action,unpress" "";
9907 program { name: "button_mouseout_clicked";
9908 signal: "mouse,up,1";
9913 get_state(PART:"elm.swallow.content", st, 30, vl);
9914 if (strcmp(st, "icononly"))
9916 emit("elm,action,default,text,set", "");
9917 set_state(PART:"elm.text", "visible", 0.0);
9919 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9920 set_state(PART:"button_image", "default", 0.0);
9922 after: button_unpress;
9924 program { name: "touch_snd";
9925 signal: "mouse,clicked,1";
9927 action: PLAY_SAMPLE "touch_sound" 1.0;
9928 after: button_unclick3;
9930 program { name: "button_unclick3";
9931 action: SIGNAL_EMIT "elm,action,click" "";
9933 program { name: "text_show";
9934 signal: "elm,state,text,visible";
9939 get_state(PART:"elm.swallow.content", st, 30, vl);
9940 if (!strcmp(st, "icononly"))
9942 set_state(PART:"elm.swallow.content", "visible", 0.0);
9943 set_state(PART:"icon_rect", "visible", 0.0);
9944 set_state(PART:"padding_after_icon", "visible", 0.0);
9945 set_state(PART:"bg", "visible", 0.0);
9947 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9948 set_state(PART:"elm.text", "visible", 0.0);
9950 set_state(PART:"elm.text", "disabled_visible", 0.0);
9953 program { name: "text_hide";
9954 signal: "elm,state,text,hidden";
9959 get_state(PART:"elm.swallow.content", st, 30, vl);
9960 if (!strcmp(st, "visible"))
9962 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9963 set_state(PART:"icon_rect", "icononly", 0.0);
9964 set_state(PART:"padding_after_icon", "icononly", 0.0);
9965 set_state(PART:"bg", "icononly", 0.0);
9967 set_state(PART:"elm.text", "default", 0.0);
9970 program { name: "icon_show";
9971 signal: "elm,state,icon,visible";
9976 get_state(PART:"elm.text", st, 30, vl);
9977 if (!strcmp(st, "visible"))
9979 set_state(PART:"elm.swallow.content", "visible", 0.0);
9980 set_state(PART:"icon_rect", "visible", 0.0);
9981 set_state(PART:"padding_after_icon", "visible", 0.0);
9982 set_state(PART:"bg", "visible", 0.0);
9986 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9987 set_state(PART:"icon_rect", "icononly", 0.0);
9988 set_state(PART:"padding_after_icon", "icononly", 0.0);
9989 set_state(PART:"bg", "icononly", 0.0);
9993 program { name: "icon_hide";
9994 signal: "elm,state,icon,hidden";
9996 action: STATE_SET "default" 0.0;
9997 target: "elm.swallow.content";
9998 target: "padding_after_icon";
9999 target: "icon_rect";
10002 program { name: "disable";
10003 signal: "elm,state,disabled";
10005 action: STATE_SET "disabled" 0.0;
10006 target: "button_image";
10007 target: "disabler";
10008 after: "disable_text";
10010 program { name: "disable_text";
10014 get_state(PART:"elm.text", st, 30, vl);
10015 if (!strcmp(st, "visible"))
10016 set_state(PART:"elm.text", "disabled_visible", 0.0);
10018 set_state(PART:"elm.text", "disabled", 0.0);
10019 set_int(button_state, BUTTON_STATE_DISABLED);
10022 program { name: "enable";
10023 signal: "elm,state,enabled";
10025 action: STATE_SET "default" 0.0;
10026 target: "button_image";
10027 target: "disabler";
10028 after: "enable_text";
10030 program { name: "enable_text";
10034 get_state(PART:"elm.text", st, 30, vl);
10035 if (!strcmp(st, "disabled_visible"))
10036 set_state(PART:"elm.text", "visible", 0.0);
10038 set_state(PART:"elm.text", "default", 0.0);
10039 set_int(button_state, BUTTON_STATE_ENABLED);
10042 program { name: "focused";
10043 //signal: "elm,action,focus";
10045 action: STATE_SET "focused" 0.0;
10046 target: "button_image";
10047 target: "elm.text";
10049 program { name: "unfocused";
10050 //signal: "elm,action,unfocus";
10052 action: STATE_SET "default" 0.0;
10053 target: "button_image";
10054 after: "unfocus_text";
10056 program { name: "unfocus_text";
10057 action: STATE_SET "visible" 0.0;
10058 target: "elm.text";
10063 //////////////////////////////////////////////////////////////
10064 group { name: "elm/button/base/naviframe/title/default";
10066 public button_state = BUTTON_STATE_ENABLED;
10069 image: "00_title_btn_bg_press.png" COMP;
10072 style { name: "btn_naviframe_style";
10073 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";
10080 part { name: "button_image";
10082 description { state: "default" 0.0;
10083 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10084 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10087 description { state: "clicked" 0.0;
10088 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10089 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10091 normal: "00_title_btn_bg_press.png";
10092 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
10096 description { state: "disabled" 0.0;
10097 inherit: "default" 0.0;
10099 description { state: "focused" 0.0;
10100 inherit: "default" 0.0;
10103 part { name: "padding_left_top";
10107 description { state: "default" 0.0;
10109 rel2.relative: 0.0 0.0;
10110 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10115 part { name: "padding_right_bottom";
10119 description { state: "default" 0.0;
10121 rel1.relative: 1.0 1.0;
10122 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10127 part { name: "icon_rect";
10131 description { state: "default" 0.0;
10137 to: "padding_left_top";
10141 to_x: "padding_left_top";
10142 to_y: "padding_right_bottom";
10146 description { state: "visible" 0.0;
10148 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10149 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10153 to: "padding_left_top";
10157 to_x: "padding_left_top";
10158 to_y: "padding_right_bottom";
10162 description { state: "icononly" 0.0;
10163 inherit: "default" 0.0;
10166 part { name: "padding_after_icon";
10170 description { state: "default" 0.0; //when only icon or no icon is there
10176 rel2.to: "icon_rect";
10181 description { state: "visible" 0.0;
10188 rel2.to: "icon_rect";
10190 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10192 description { state: "icononly" 0.0;
10193 inherit: "default" 0.0;
10196 part { name: "padding_before_text";
10200 description { state: "default" 0.0; //when only icon or no icon is there
10205 to_y: "padding_left_top";
10210 to_y: "padding_right_bottom";
10213 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10217 part { name: "elm.swallow.content";
10220 clip_to: "clipper";
10221 description { state: "default" 0.0;
10226 to: "padding_left_top";
10230 to_x: "padding_left_top";
10231 to_y: "padding_right_bottom";
10235 description { state: "visible" 0.0;
10237 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10238 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10242 to_x: "padding_before_text";
10243 to_y: "padding_left_top";
10247 to_x: "padding_before_text";
10248 to_y: "padding_right_bottom";
10251 description { state: "icononly" 0.0;
10252 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10253 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10256 part { name: "elm.text";
10260 clip_to: "clipper";
10261 description { state: "default" 0.0;
10265 to_x: "padding_after_icon";
10266 to_y: "padding_left_top";
10270 to: "padding_right_bottom";
10272 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
10274 style: "btn_naviframe_style";
10279 description { state: "visible" 0.0;
10280 inherit: "default" 0.0;
10283 description { state: "clicked" 0.0;
10284 inherit: "default" 0.0;
10286 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
10288 description { state: "disabled" 0.0;
10289 inherit: "default" 0.0;
10292 description { state: "disabled_visible" 0.0;
10293 inherit: "default" 0.0;
10294 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
10297 description { state: "focused" 0.0;
10298 inherit: "default" 0.0;
10300 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
10303 part { name: "over2";
10306 ignore_flags: ON_HOLD;
10307 description { state: "default" 0.0;
10311 part { name: "over3";
10314 description { state: "default" 0.0;
10318 part { name: "clipper";
10320 description { state: "default" 0.0;
10321 color: 255 255 255 255;
10324 part { name: "disabler";
10326 description { state: "default" 0.0;
10330 description { state: "disabled" 0.0;
10331 inherit: "default" 0.0;
10337 program { name: "button_click";
10338 signal: "mouse,down,1";
10340 action: SIGNAL_EMIT "elm,action,press" "";
10341 after: "button_click_anim";
10343 program { name: "button_click_anim";
10344 action: STATE_SET "clicked" 0.0;
10345 target: "button_image";
10346 after: "text_clicked";
10348 program { name: "text_clicked";
10352 get_state(PART:"elm.text", st, 30, vl);
10353 if (!strcmp(st, "visible"))
10354 set_state(PART:"elm.text", "clicked", 0.0);
10357 program { name: "button_unpress";
10358 action: SIGNAL_EMIT "elm,action,unpress" "";
10360 program { name: "button_mouseout_clicked";
10361 signal: "mouse,up,1";
10366 get_state(PART:"elm.swallow.content", st, 30, vl);
10367 if (strcmp(st, "icononly"))
10369 emit("elm,action,default,text,set", "");
10370 set_state(PART:"elm.text", "visible", 0.0);
10372 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10373 set_state(PART:"button_image", "default", 0.0);
10375 after: button_unpress;
10377 program { name: "touch_snd";
10378 signal: "mouse,clicked,1";
10380 action: PLAY_SAMPLE "touch_sound" 1.0;
10381 after: button_unclick3;
10383 program { name: "button_unclick3";
10384 action: SIGNAL_EMIT "elm,action,click" "";
10386 program { name: "text_show";
10387 signal: "elm,state,text,visible";
10392 get_state(PART:"elm.swallow.content", st, 30, vl);
10393 if (!strcmp(st, "icononly"))
10395 set_state(PART:"elm.swallow.content", "visible", 0.0);
10396 set_state(PART:"icon_rect", "visible", 0.0);
10397 set_state(PART:"padding_after_icon", "visible", 0.0);
10399 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10400 set_state(PART:"elm.text", "visible", 0.0);
10402 set_state(PART:"elm.text", "disabled_visible", 0.0);
10405 program { name: "text_hide";
10406 signal: "elm,state,text,hidden";
10411 get_state(PART:"elm.swallow.content", st, 30, vl);
10412 if (!strcmp(st, "visible"))
10414 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10415 set_state(PART:"icon_rect", "icononly", 0.0);
10416 set_state(PART:"padding_after_icon", "icononly", 0.0);
10418 set_state(PART:"elm.text", "default", 0.0);
10421 program { name: "icon_show";
10422 signal: "elm,state,icon,visible";
10427 get_state(PART:"elm.text", st, 30, vl);
10428 if (!strcmp(st, "visible"))
10430 set_state(PART:"elm.swallow.content", "visible", 0.0);
10431 set_state(PART:"icon_rect", "visible", 0.0);
10432 set_state(PART:"padding_after_icon", "visible", 0.0);
10436 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10437 set_state(PART:"icon_rect", "icononly", 0.0);
10438 set_state(PART:"padding_after_icon", "icononly", 0.0);
10442 program { name: "icon_hide";
10443 signal: "elm,state,icon,hidden";
10445 action: STATE_SET "default" 0.0;
10446 target: "elm.swallow.content";
10447 target: "padding_after_icon";
10448 target: "icon_rect";
10450 program { name: "disable";
10451 signal: "elm,state,disabled";
10453 action: STATE_SET "disabled" 0.0;
10454 target: "button_image";
10455 target: "disabler";
10456 after: "disable_text";
10458 program { name: "disable_text";
10462 get_state(PART:"elm.text", st, 30, vl);
10463 if (!strcmp(st, "visible"))
10464 set_state(PART:"elm.text", "disabled_visible", 0.0);
10466 set_state(PART:"elm.text", "disabled", 0.0);
10467 set_int(button_state, BUTTON_STATE_DISABLED);
10470 program { name: "enable";
10471 signal: "elm,state,enabled";
10473 action: STATE_SET "default" 0.0;
10474 target: "button_image";
10475 target: "disabler";
10476 after: "enable_text";
10478 program { name: "enable_text";
10482 get_state(PART:"elm.text", st, 30, vl);
10483 if (!strcmp(st, "disabled_visible"))
10484 set_state(PART:"elm.text", "visible", 0.0);
10486 set_state(PART:"elm.text", "default", 0.0);
10487 set_int(button_state, BUTTON_STATE_ENABLED);
10490 program { name: "focused";
10491 //signal: "elm,action,focus";
10493 action: STATE_SET "focused" 0.0;
10494 target: "button_image";
10495 target: "elm.text";
10497 program { name: "unfocused";
10498 //signal: "elm,action,unfocus";
10500 action: STATE_SET "default" 0.0;
10501 target: "button_image";
10502 after: "unfocus_text";
10504 program { name: "unfocus_text";
10505 action: STATE_SET "visible" 0.0;
10506 target: "elm.text";
10511 ///////////////////////////////////////////////////////////////////////////////////////
10512 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10513 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10515 image: image_normal COMP; \
10516 image: image_press COMP; \
10517 image: "00_title_btn_bg_press.png" COMP; \
10520 part { name: "button_image"; \
10522 description { state: "default" 0.0; \
10523 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10524 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10528 state: "clicked" 0.0; \
10529 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10530 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10532 normal: "00_title_btn_bg_press.png"; \
10533 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10538 state: "disabled" 0.0; \
10539 inherit: "default" 0.0; \
10541 description { state: "focused" 0.0; \
10542 inherit: "default" 0.0;\
10545 part { name: "icon_part"; \
10547 description { state: "default" 0.0; \
10548 min: min_width min_height; \
10549 max: min_width min_height; \
10550 rel1.to: "button_image"; \
10551 rel2.to: "button_image"; \
10552 image.normal: image_normal; \
10555 state: "clicked" 0.0; \
10556 inherit: "default" 0.0; \
10557 image.normal: image_press; \
10560 state: "disabled" 0.0; \
10561 inherit: "default" 0.0; \
10562 color: 127 127 127 127; \
10565 part { name: "over1"; \
10567 ignore_flags: ON_HOLD; \
10568 description { state: "default" 0.0; \
10572 part { name: "over2"; \
10573 repeat_events: 1; \
10574 description { state: "default" 0.0; \
10578 part { name: "disabler"; \
10580 description { state: "default" 0.0; \
10584 description { state: "disabled" 0.0; \
10585 inherit: "default" 0.0; \
10591 program { name: "button_click"; \
10592 signal: "mouse,down,1"; \
10594 action: SIGNAL_EMIT "elm,action,press" ""; \
10595 after: "button_click_anim"; \
10597 program { name: "button_click_anim"; \
10598 action: STATE_SET "clicked" 0.0; \
10599 target: "button_image"; \
10600 target: "icon_part"; \
10602 program { name: "button_unclick"; \
10603 signal: "mouse,up,1"; \
10605 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10606 after: "button_unclick_anim"; \
10608 program { name: "button_unclick_anim"; \
10609 action: STATE_SET "default" 0.0; \
10610 target: "button_image"; \
10611 target: "icon_part"; \
10613 program { name: "touch_snd"; \
10614 signal: "mouse,clicked,1"; \
10616 action: PLAY_SAMPLE "touch_sound" 1.0; \
10617 after: button_unclick3; \
10619 program { name: "button_unclick3"; \
10620 action: SIGNAL_EMIT "elm,action,click" ""; \
10622 program { name: "disable"; \
10623 signal: "elm,state,disabled"; \
10625 action: STATE_SET "disabled" 0.0; \
10626 target: "disabler"; \
10627 target: "button_image"; \
10628 target: "icon_part"; \
10630 program { name: "enable"; \
10631 signal: "elm,state,enabled"; \
10633 action: STATE_SET "default" 0.0; \
10634 target: "disabler"; \
10635 target: "button_image"; \
10636 target: "icon_part"; \
10640 ///////////////////////////////////////////////////////////////////////////////////////
10641 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)
10643 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)
10645 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)
10647 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)
10649 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)
10651 /////////////////////////////////////////////////////////////////////////////////////////
10652 group { name: "elm/button/base/naviframe/more/default";
10654 image: "00_winset_more.png" COMP;
10655 image: "00_winset_more_press.png" COMP;
10656 image: "00_title_btn_bg_press.png" COMP;
10659 part { name: "button_image";
10661 description { state: "default" 0.0;
10662 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10663 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10666 description { state: "clicked" 0.0;
10667 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10668 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10670 normal: "00_title_btn_bg_press.png";
10671 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10675 description { state: "disabled" 0.0;
10676 inherit: "default" 0.0;
10678 description { state: "focused" 0.0;
10679 inherit: "default" 0.0;
10682 part { name: "more_image";
10685 description { state: "default" 0.0;
10686 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10687 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10688 rel1.to: "button_image";
10689 rel2.to: "button_image";
10690 image.normal: "00_winset_more.png";
10692 description { state: "clicked" 0.0;
10693 inherit: "default" 0.0;
10694 image.normal: "00_winset_more_press.png";
10696 description { state: "disabled" 0.0;
10697 inherit: "default" 0.0;
10698 color: 255 255 255 127;
10701 part { name: "over2";
10704 ignore_flags: ON_HOLD;
10705 description { state: "default" 0.0;
10709 part { name: "over3";
10712 description { state: "default" 0.0;
10716 part { name: "disabler";
10718 description { state: "default" 0.0;
10722 description { state: "disabled" 0.0;
10723 inherit: "default" 0.0;
10729 program { name: "button_click";
10730 signal: "mouse,down,1";
10732 action: SIGNAL_EMIT "elm,action,press" "";
10733 after: "button_click_anim";
10735 program { name: "button_click_anim";
10736 action: STATE_SET "clicked" 0.0;
10737 target: "button_image";
10738 target: "more_image";
10740 program { name: "button_unclick";
10741 signal: "mouse,up,1";
10743 action: SIGNAL_EMIT "elm,action,unpress" "";
10744 after: "button_unclick_anim";
10746 program { name: "button_unclick_anim";
10747 action: STATE_SET "default" 0.0;
10748 target: "button_image";
10749 target: "more_image";
10751 program { name: "touch_snd";
10752 signal: "mouse,clicked,1";
10754 action: PLAY_SAMPLE "touch_sound" 1.0;
10755 after: button_unclick3;
10757 program { name: "button_unclick3";
10758 action: SIGNAL_EMIT "elm,action,click" "";
10760 program { name: "disable";
10761 signal: "elm,state,disabled";
10763 action: STATE_SET "disabled" 0.0;
10764 target: "disabler";
10765 target: "button_image";
10766 target: "more_image";
10768 program { name: "enable";
10769 signal: "elm,state,enabled";
10771 action: STATE_SET "default" 0.0;
10772 target: "disabler";
10773 target: "button_image";
10774 target: "more_image";
10779 ///////////////////////////////////////////////////////////////////////////////////////
10780 group { name: "elm/button/base/tickernoti";
10782 image: "00_button_06_normal.png" COMP;
10783 image: "00_button_06_press.png" COMP;
10784 image: "00_button_06_dim.png" COMP;
10785 image: "00_button_06_normal_focus.png" COMP;
10788 public button_state = BUTTON_STATE_ENABLED;
10791 part { name: "button_image";
10793 description { state: "default" 0.0;
10795 normal: "00_button_06_normal.png";
10796 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10800 description { state: "clicked" 0.0;
10801 inherit: "default" 0.0;
10802 image.normal: "00_button_06_press.png";
10804 description { state: "disabled" 0.0;
10805 inherit: "default" 0.0;
10806 image.normal: "00_button_06_dim.png";
10808 description { state: "focused" 0.0;
10809 inherit: "default" 0.0;
10810 image.normal: "00_button_06_normal_focus.png";
10813 part { name: "padding_left_top";
10817 description { state: "default" 0.0;
10819 rel2.relative: 0.0 0.0;
10820 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10829 description { state: "default" 0.0;
10830 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10833 description { state: "visible" 0.0;
10834 inherit: "default" 0.0;
10835 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10837 description { state: "icononly" 0.0;
10838 inherit: "default" 0.0;
10839 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10842 part { name: "padding_right_bottom";
10846 description { state: "default" 0.0;
10848 rel1.relative: 1.0 1.0;
10849 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10854 part { name: "icon_rect";
10858 description { state: "default" 0.0;
10864 to: "padding_left_top";
10868 to_x: "padding_left_top";
10869 to_y: "padding_right_bottom";
10873 description { state: "visible" 0.0;
10875 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10876 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10880 to: "padding_left_top";
10884 to_x: "padding_left_top";
10885 to_y: "padding_right_bottom";
10889 description { state: "icononly" 0.0;
10890 inherit: "default" 0.0;
10893 part { name: "padding_after_icon";
10897 description { state: "default" 0.0; //when only icon or no icon is there
10903 rel2.to: "icon_rect";
10908 description { state: "visible" 0.0;
10915 rel2.to: "icon_rect";
10917 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10919 description { state: "icononly" 0.0;
10920 inherit: "default" 0.0;
10923 part { name: "padding_before_text";
10927 description { state: "default" 0.0; //when only icon or no icon is there
10932 to_y: "padding_left_top";
10937 to_y: "padding_right_bottom";
10940 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10944 part { name: "elm.swallow.content";
10947 clip_to: "clipper";
10948 description { state: "default" 0.0;
10953 to: "padding_left_top";
10957 to_x: "padding_left_top";
10958 to_y: "padding_right_bottom";
10962 description { state: "visible" 0.0;
10964 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10965 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10969 to_x: "padding_before_text";
10970 to_y: "padding_left_top";
10974 to_x: "padding_before_text";
10975 to_y: "padding_right_bottom";
10978 description { state: "icononly" 0.0;
10979 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10980 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10983 part { name: "elm.text";
10987 clip_to: "clipper";
10988 description { state: "default" 0.0;
10992 to_x: "padding_after_icon";
10993 to_y: "padding_left_top";
10997 to: "padding_right_bottom";
10999 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
11001 font: "SLP:style=Medium";
11002 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
11005 text_class: "slp_medium";
11008 description { state: "visible" 0.0;
11009 inherit: "default" 0.0;
11012 description { state: "clicked" 0.0;
11013 inherit: "default" 0.0;
11015 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11017 description { state: "disabled" 0.0;
11018 inherit: "default" 0.0;
11021 description { state: "disabled_visible" 0.0;
11022 inherit: "default" 0.0;
11023 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
11026 description { state: "focused" 0.0;
11027 inherit: "default" 0.0;
11029 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11032 part { name: "over2";
11035 ignore_flags: ON_HOLD;
11036 description { state: "default" 0.0;
11040 part { name: "over3";
11043 description { state: "default" 0.0;
11047 part { name: "clipper";
11049 description { state: "default" 0.0;
11050 color: 255 255 255 255;
11053 part { name: "disabler";
11055 description { state: "default" 0.0;
11059 description { state: "disabled" 0.0;
11060 inherit: "default" 0.0;
11066 program { name: "button_click";
11067 signal: "mouse,down,1";
11069 action: SIGNAL_EMIT "elm,action,press" "";
11070 after: "button_click_anim";
11072 program { name: "button_click_anim";
11073 action: STATE_SET "clicked" 0.0;
11074 target: "button_image";
11075 after: "text_clicked";
11077 program { name: "text_clicked";
11081 get_state(PART:"elm.text", st, 30, vl);
11082 if (!strcmp(st, "visible"))
11083 set_state(PART:"elm.text", "clicked", 0.0);
11086 program { name: "button_unpress";
11087 action: SIGNAL_EMIT "elm,action,unpress" "";
11089 program { name: "button_mouseout_clicked";
11090 signal: "mouse,up,1";
11095 get_state(PART:"elm.swallow.content", st, 30, vl);
11096 if (strcmp(st, "icononly"))
11098 emit("elm,action,default,text,set", "");
11099 set_state(PART:"elm.text", "visible", 0.0);
11101 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11102 set_state(PART:"button_image", "default", 0.0);
11104 after: button_unpress;
11106 program { name: "touch_snd";
11107 signal: "mouse,clicked,1";
11109 action: PLAY_SAMPLE "touch_sound" 1.0;
11110 after: button_unclick3;
11112 program { name: "button_unclick3";
11113 action: SIGNAL_EMIT "elm,action,click" "";
11115 program { name: "text_show";
11116 signal: "elm,state,text,visible";
11121 get_state(PART:"elm.swallow.content", st, 30, vl);
11122 if (!strcmp(st, "icononly"))
11124 set_state(PART:"elm.swallow.content", "visible", 0.0);
11125 set_state(PART:"icon_rect", "visible", 0.0);
11126 set_state(PART:"padding_after_icon", "visible", 0.0);
11127 set_state(PART:"bg", "visible", 0.0);
11129 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11130 set_state(PART:"elm.text", "visible", 0.0);
11132 set_state(PART:"elm.text", "disabled_visible", 0.0);
11135 program { name: "text_hide";
11136 signal: "elm,state,text,hidden";
11141 get_state(PART:"elm.swallow.content", st, 30, vl);
11142 if (!strcmp(st, "visible"))
11144 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11145 set_state(PART:"icon_rect", "icononly", 0.0);
11146 set_state(PART:"padding_after_icon", "icononly", 0.0);
11147 set_state(PART:"bg", "icononly", 0.0);
11149 set_state(PART:"elm.text", "default", 0.0);
11152 program { name: "icon_show";
11153 signal: "elm,state,icon,visible";
11158 get_state(PART:"elm.text", st, 30, vl);
11159 if (!strcmp(st, "visible"))
11161 set_state(PART:"elm.swallow.content", "visible", 0.0);
11162 set_state(PART:"icon_rect", "visible", 0.0);
11163 set_state(PART:"padding_after_icon", "visible", 0.0);
11164 set_state(PART:"bg", "visible", 0.0);
11168 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11169 set_state(PART:"icon_rect", "icononly", 0.0);
11170 set_state(PART:"padding_after_icon", "icononly", 0.0);
11171 set_state(PART:"bg", "icononly", 0.0);
11175 program { name: "icon_hide";
11176 signal: "elm,state,icon,hidden";
11178 action: STATE_SET "default" 0.0;
11179 target: "elm.swallow.content";
11180 target: "padding_after_icon";
11181 target: "icon_rect";
11184 program { name: "disable";
11185 signal: "elm,state,disabled";
11187 action: STATE_SET "disabled" 0.0;
11188 target: "button_image";
11189 target: "disabler";
11190 after: "disable_text";
11192 program { name: "disable_text";
11196 get_state(PART:"elm.text", st, 30, vl);
11197 if (!strcmp(st, "visible"))
11198 set_state(PART:"elm.text", "disabled_visible", 0.0);
11200 set_state(PART:"elm.text", "disabled", 0.0);
11201 set_int(button_state, BUTTON_STATE_DISABLED);
11204 program { name: "enable";
11205 signal: "elm,state,enabled";
11207 action: STATE_SET "default" 0.0;
11208 target: "button_image";
11209 target: "disabler";
11210 after: "enable_text";
11212 program { name: "enable_text";
11216 get_state(PART:"elm.text", st, 30, vl);
11217 if (!strcmp(st, "disabled_visible"))
11218 set_state(PART:"elm.text", "visible", 0.0);
11220 set_state(PART:"elm.text", "default", 0.0);
11221 set_int(button_state, BUTTON_STATE_ENABLED);
11224 program { name: "focused";
11225 //signal: "elm,action,focus";
11227 action: STATE_SET "focused" 0.0;
11228 target: "button_image";
11229 target: "elm.text";
11231 program { name: "unfocused";
11232 //signal: "elm,action,unfocus";
11234 action: STATE_SET "default" 0.0;
11235 target: "button_image";
11236 after: "unfocus_text";
11238 program { name: "unfocus_text";
11239 action: STATE_SET "visible" 0.0;
11240 target: "elm.text";
11245 ///////////////////////////////////////////////////////////////////////////////////////
11246 group { name: "elm/button/base/expandable_number";
11247 alias: "elm/button/base/text_only/expandable_number";
11249 image: "00_button_05_normal.png" COMP;
11250 image: "00_button_05_press.png" COMP;
11251 image: "00_button_05_dim.png" COMP;
11252 image: "00_button_05_normal_focus.png" COMP;
11253 image: "00_arrow_expand.png" COMP;
11254 image: "00_arrow_expand_press.png" COMP;
11255 image: "00_arrow_expand_dim.png" COMP;
11258 public button_state = BUTTON_STATE_ENABLED;
11261 part { name: "button_image";
11263 description { state: "default" 0.0;
11264 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11265 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11267 normal: "00_button_05_normal.png";
11268 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
11272 description { state: "clicked" 0.0;
11273 inherit: "default" 0.0;
11274 image.normal: "00_button_05_press.png";
11276 description { state: "disabled" 0.0;
11277 inherit: "default" 0.0;
11278 image.normal: "00_button_05_dim.png";
11280 description { state: "focused" 0.0;
11281 inherit: "default" 0.0;
11282 image.normal: "00_button_05_normal_focus.png";
11285 part { name: "padding_left_top";
11289 description { state: "default" 0.0;
11291 rel2.relative: 0.0 0.0;
11292 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11297 part { name: "padding_right_bottom";
11301 description { state: "default" 0.0;
11303 rel1.relative: 1.0 1.0;
11304 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11309 part { name: "icon_rect";
11313 description { state: "default" 0.0;
11315 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11316 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11320 to_x: "padding_right_bottom";
11321 to_y: "padding_left_top";
11325 to: "padding_right_bottom";
11331 part { name: "arrow_expand";
11334 description { state: "default" 0.0;
11336 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11337 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11339 rel1.to: "icon_rect";
11340 rel2.to: "icon_rect";
11341 image.normal:"00_arrow_expand.png";
11343 description { state: "clicked" 0.0;
11344 inherit: "default" 0.0;
11345 image.normal:"00_arrow_expand_press.png";
11347 description { state: "disabled" 0.0;
11348 inherit: "default" 0.0;
11349 image.normal:"00_arrow_expand_dim.png";
11352 part { name: "elm.text";
11356 description { state: "default" 0.0;
11357 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11358 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11362 to: "padding_left_top";
11366 to_x:"padding_left_top";
11367 to_y:"padding_right_bottom";
11370 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
11372 font: "SLP:style=Medium";
11373 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
11377 text_class: "slp_medium";
11380 description { state: "visible" 0.0;
11381 inherit: "default" 0.0;
11383 description { state: "clicked" 0.0;
11384 inherit: "default" 0.0;
11385 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
11387 description { state: "disabled" 0.0;
11388 inherit: "default" 0.0;
11391 description { state: "disabled_visible" 0.0;
11392 inherit: "default" 0.0;
11393 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
11395 description { state: "focused" 0.0;
11396 inherit: "default" 0.0;
11397 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
11400 part { name: "over2";
11403 ignore_flags: ON_HOLD;
11404 description { state: "default" 0.0;
11408 part { name: "over3";
11411 description { state: "default" 0.0;
11415 part { name: "disabler";
11417 description { state: "default" 0.0;
11421 description { state: "disabled" 0.0;
11422 inherit: "default" 0.0;
11428 program { name: "button_click";
11429 signal: "mouse,down,1";
11431 action: SIGNAL_EMIT "elm,action,press" "";
11432 after: "button_click_anim";
11434 program { name: "button_click_anim";
11435 action: STATE_SET "clicked" 0.0;
11436 target: "button_image";
11437 target: "arrow_expand";
11438 after: "text_clicked";
11440 program { name: "text_clicked";
11444 get_state(PART:"elm.text", st, 30, vl);
11445 if (!strcmp(st, "visible"))
11446 set_state(PART:"elm.text", "clicked", 0.0);
11449 program { name: "button_unpress";
11450 action: SIGNAL_EMIT "elm,action,unpress" "";
11452 program { name: "button_mouseout_clicked";
11453 signal: "mouse,up,1";
11456 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11458 set_state(PART:"button_image", "default", 0.0);
11459 set_state(PART:"elm.text", "visible", 0.0);
11460 set_state(PART:"arrow_expand", "default", 0.0);
11463 after: button_unpress;
11465 program { name: "touch_snd";
11466 signal: "mouse,clicked,1";
11468 action: PLAY_SAMPLE "touch_sound" 1.0;
11469 after: button_unclick3;
11471 program { name: "button_unclick3";
11472 action: SIGNAL_EMIT "elm,action,click" "";
11474 program { name: "text_show";
11475 signal: "elm,state,text,visible";
11478 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11479 set_state(PART:"elm.text", "visible", 0.0);
11481 set_state(PART:"elm.text", "disabled_visible", 0.0);
11484 program { name: "text_hide";
11485 signal: "elm,state,text,hidden";
11488 set_state(PART:"elm.text", "default", 0.0);
11491 program { name: "disable";
11492 signal: "elm,state,disabled";
11494 action: STATE_SET "disabled" 0.0;
11495 target: "button_image";
11496 target: "disabler";
11497 after: "disable_text";
11499 program { name: "disable_text";
11503 get_state(PART:"elm.text", st, 30, vl);
11504 if (!strcmp(st, "visible"))
11505 set_state(PART:"elm.text", "disabled_visible", 0.0);
11507 set_state(PART:"elm.text", "disabled", 0.0);
11508 set_int(button_state, BUTTON_STATE_DISABLED);
11511 program { name: "enable";
11512 signal: "elm,state,enabled";
11514 action: STATE_SET "default" 0.0;
11515 target: "button_image";
11516 target: "disabler";
11517 after: "enable_text";
11519 program { name: "enable_text";
11523 get_state(PART:"elm.text", st, 30, vl);
11524 if (!strcmp(st, "disabled_visible"))
11525 set_state(PART:"elm.text", "visible", 0.0);
11527 set_state(PART:"elm.text", "default", 0.0);
11528 set_int(button_state, BUTTON_STATE_ENABLED);
11531 program { name: "focused";
11532 //signal: "elm,action,focus";
11534 action: STATE_SET "focused" 0.0;
11535 target: "button_image";
11536 target: "elm.text";
11538 program { name: "unfocused";
11539 //signal: "elm,action,unfocus";
11541 action: STATE_SET "default" 0.0;
11542 target: "button_image";
11543 after: "unfocus_text";
11545 program { name: "unfocus_text";
11546 action: STATE_SET "visible" 0.0;
11547 target: "elm.text";
11552 #undef BUTTON_STATE_ENABLED
11553 #undef BUTTON_STATE_DISABLED