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, circle_normal, circle_press, image_normal, image_press, min_width, min_height) \
4794 group { name: "elm/button/base/"style_name; \
4796 image: circle_normal COMP; \
4797 image: circle_press 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: circle_normal; \
4808 color: 255 255 255 255; \
4811 state: "clicked" 0.0; \
4812 inherit: "default" 0.0; \
4813 image.normal: circle_press; \
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_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
4920 ///////////////////////////////////////////////////////////////////////////////////////
4921 BUTTON_CIRCLE_STYLES("reveal/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
4923 ///////////////////////////////////////////////////////////////////////////////////////
4924 BUTTON_CIRCLE_STYLES("expand/closed", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
4926 ///////////////////////////////////////////////////////////////////////////////////////
4927 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
4929 ///////////////////////////////////////////////////////////////////////////////////////
4930 BUTTON_CIRCLE_STYLES("expand/opened", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
4932 ///////////////////////////////////////////////////////////////////////////////////////
4933 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
4935 ///////////////////////////////////////////////////////////////////////////////////////
4936 BUTTON_CIRCLE_STYLES("info", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", 40, 40)
4938 ///////////////////////////////////////////////////////////////////////////////////////
4939 BUTTON_CIRCLE_STYLES("info/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", 60, 70)
4941 ///////////////////////////////////////////////////////////////////////////////////////
4942 BUTTON_CIRCLE_STYLES("rename", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
4944 ///////////////////////////////////////////////////////////////////////////////////////
4945 BUTTON_CIRCLE_STYLES("rename/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
4947 ///////////////////////////////////////////////////////////////////////////////////////
4948 BUTTON_CIRCLE_STYLES("call", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", 40, 40)
4950 ///////////////////////////////////////////////////////////////////////////////////////
4951 BUTTON_CIRCLE_STYLES("call/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", 60, 70)
4953 ///////////////////////////////////////////////////////////////////////////////////////
4954 BUTTON_CIRCLE_STYLES("warning", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
4956 ///////////////////////////////////////////////////////////////////////////////////////
4957 BUTTON_CIRCLE_STYLES("warning/extended", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
4959 ///////////////////////////////////////////////////////////////////////////////////////
4960 BUTTON_CIRCLE_STYLES("plus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
4962 ///////////////////////////////////////////////////////////////////////////////////////
4963 BUTTON_CIRCLE_STYLES("plus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
4965 ///////////////////////////////////////////////////////////////////////////////////////
4966 BUTTON_CIRCLE_STYLES("minus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
4968 ///////////////////////////////////////////////////////////////////////////////////////
4969 BUTTON_CIRCLE_STYLES("minus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
4971 ///////////////////////////////////////////////////////////////////////////////////////
4972 BUTTON_CIRCLE_STYLES("cancel", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
4974 ///////////////////////////////////////////////////////////////////////////////////////
4975 BUTTON_CIRCLE_STYLES("cancel/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
4977 ///////////////////////////////////////////////////////////////////////////////////////
4978 BUTTON_CIRCLE_STYLES("send", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", 40, 40)
4980 ///////////////////////////////////////////////////////////////////////////////////////
4981 BUTTON_CIRCLE_STYLES("send/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", 60, 70)
4982 ///////////////////////////////////////////////////////////////////////////////////////
4984 group { name: "elm/button/base/circle/empty";
4986 image: "00_btn_circle_bg_normal.png" COMP;
4987 image: "00_btn_circle_bg_press.png" COMP;
4990 part { name: "button_image";
4992 description { state: "default" 0.0;
4993 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4994 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4996 image.normal: "00_btn_circle_bg_normal.png";
4997 color: 255 255 255 255;
4999 description { state: "clicked" 0.0;
5000 inherit: "default" 0.0;
5001 image.normal: "00_btn_circle_bg_press.png";
5003 description { state: "disabled" 0.0;
5004 inherit: "default" 0.0;
5005 color: 255 255 255 128;
5008 part { name: "elm.swallow.content";
5011 description { state: "default" 0.0;
5012 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5013 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5015 color: 255 255 255 255;
5018 state: "disabled" 0.0;
5019 inherit: "default" 0.0;
5020 color: 255 255 255 128;
5023 part { name: "over1";
5025 ignore_flags: ON_HOLD;
5026 description { state: "default" 0.0;
5030 part { name: "over2";
5032 description { state: "default" 0.0;
5036 part { name: "disabler";
5038 description { state: "default" 0.0;
5042 description { state: "disabled" 0.0;
5043 inherit: "default" 0.0;
5049 program { name: "button_click";
5050 signal: "mouse,down,1";
5052 action: SIGNAL_EMIT "elm,action,press" "";
5053 after: "button_click_anim";
5055 program { name: "button_click_anim";
5056 action: STATE_SET "clicked" 0.0;
5057 target: "button_image";
5059 program { name: "touch_snd";
5060 signal: "mouse,clicked,1";
5062 action: PLAY_SAMPLE "touch_sound" 1.0;
5063 after: button_unclick2;
5065 program { name: "button_unclick2";
5066 action: SIGNAL_EMIT "elm,action,click" "";
5068 program { name: "button_unclick";
5069 signal: "mouse,up,1";
5071 action: SIGNAL_EMIT "elm,action,unpress" "";
5072 after: "button_unclick_anim";
5074 program { name: "button_unclick_anim";
5075 action: STATE_SET "default" 0.0;
5076 target: "button_image";
5078 program { name: "disable";
5079 signal: "elm,state,disabled";
5081 action: STATE_SET "disabled" 0.0;
5083 target: "button_image";
5085 program { name: "enable";
5086 signal: "elm,state,enabled";
5088 action: STATE_SET "default" 0.0;
5090 target: "button_image";
5092 program { name: "icon_show";
5093 signal: "elm,state,icon,visible";
5095 action: STATE_SET "visible" 0.0;
5096 target: "elm.swallow.content";
5098 program { name: "icon_hide";
5099 signal: "elm,state,icon,hidden";
5101 action: STATE_SET "default" 0.0;
5102 target: "elm.swallow.content";
5107 ///////////////////////////////////////////////////////////////////////////////////////
5108 #define BUTTON_EDIT_STYLES(style_name, edit_normal, edit_press, image_normal, image_press, min_width, min_height) \
5109 group { name: "elm/button/base/contacts/"style_name; \
5110 alias: "elm/button/base/"style_name; \
5112 image: image_normal COMP; \
5113 image: image_press COMP; \
5114 image: edit_normal COMP; \
5115 image: edit_press COMP; \
5116 image: "00_button_edit_dim.png" COMP; \
5117 image: "00_button_edit_focus.png" COMP; \
5120 part { name: "button_image"; \
5122 description { state: "default" 0.0; \
5123 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5124 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5126 normal: edit_normal; \
5127 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5132 state: "clicked" 0.0; \
5133 inherit: "default" 0.0; \
5134 image.normal: edit_press; \
5137 state: "disabled" 0.0; \
5138 inherit: "default" 0.0; \
5139 image.normal: "00_button_edit_dim.png"; \
5142 state: "focused" 0.0; \
5143 inherit: "default" 0.0; \
5144 image.normal: "00_button_edit_focus.png"; \
5147 part { name: "button_center_part"; \
5150 description { state: "default" 0.0; \
5151 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5152 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5154 normal: image_normal; \
5155 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5160 state: "clicked" 0.0; \
5161 inherit: "default" 0.0; \
5162 image.normal: image_press; \
5165 part { name: "over1"; \
5168 ignore_flags: ON_HOLD; \
5169 description { state: "default" 0.0; \
5171 min: min_width min_height; \
5174 part { name: "over2"; \
5176 description { state: "default" 0.0; \
5180 part { name: "disabler"; \
5182 description { state: "default" 0.0; \
5186 description { state: "disabled" 0.0; \
5187 inherit: "default" 0.0; \
5193 program { name: "button_click"; \
5194 signal: "mouse,down,1"; \
5196 action: SIGNAL_EMIT "elm,action,press" ""; \
5197 after: "button_click_anim"; \
5199 program { name: "button_click_anim"; \
5200 action: STATE_SET "clicked" 0.0; \
5201 target: "button_image"; \
5202 target: "button_center_part"; \
5204 program { name: "button_unclick"; \
5205 signal: "mouse,up,1"; \
5207 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5208 after: "button_unclick_anim"; \
5210 program { name: "button_unclick_anim"; \
5211 action: STATE_SET "default" 0.0; \
5212 target: "button_image"; \
5213 target: "button_center_part"; \
5215 program { name: "touch_snd"; \
5216 signal: "mouse,clicked,1"; \
5218 action: PLAY_SAMPLE "touch_sound" 1.0; \
5219 after: button_unclick3; \
5221 program { name: "button_unclick3"; \
5222 action: SIGNAL_EMIT "elm,action,click" ""; \
5224 program { name: "disable"; \
5225 signal: "elm,state,disabled"; \
5227 action: STATE_SET "disabled" 0.0; \
5228 target: "disabler"; \
5229 target: "button_image"; \
5231 program { name: "enable"; \
5232 signal: "elm,state,enabled"; \
5234 action: STATE_SET "default" 0.0; \
5235 target: "disabler"; \
5236 target: "button_image"; \
5240 ///////////////////////////////////////////////////////////////////////////////////////
5241 BUTTON_EDIT_STYLES("icon_plus", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5243 ///////////////////////////////////////////////////////////////////////////////////////
5244 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5246 ///////////////////////////////////////////////////////////////////////////////////////
5247 BUTTON_EDIT_STYLES("icon_minus", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5249 ///////////////////////////////////////////////////////////////////////////////////////
5250 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5252 ///////////////////////////////////////////////////////////////////////////////////////
5253 BUTTON_EDIT_STYLES("icon_expand", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5255 ///////////////////////////////////////////////////////////////////////////////////////
5256 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5258 ///////////////////////////////////////////////////////////////////////////////////////
5259 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5261 ///////////////////////////////////////////////////////////////////////////////////////
5262 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5264 ///////////////////////////////////////////////////////////////////////////////////////
5265 group { name: "elm/button/base/contacts/delete";
5267 image: "00_button_edit_Delete.png" COMP;
5268 image: "00_button_edit_Delete_press.png" COMP;
5269 image: "00_button_edit_dim.png" COMP;
5270 image: "00_button_edit_focus.png" COMP;
5273 public button_state = BUTTON_STATE_ENABLED;
5276 part { name: "button_image";
5278 description { state: "default" 0.0;
5279 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5281 normal: "00_button_edit_Delete.png";
5282 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5286 description { state: "clicked" 0.0;
5287 inherit: "default" 0.0;
5288 image.normal: "00_button_edit_Delete_press.png";
5290 description { state: "disabled" 0.0;
5291 inherit: "default" 0.0;
5292 image.normal: "00_button_edit_dim.png";
5294 description { state: "focused" 0.0;
5295 inherit: "default" 0.0;
5296 image.normal: "00_button_edit_focus.png";
5299 part { name: "padding_left_top";
5303 description { state: "default" 0.0;
5305 rel2.relative: 0.0 0.0;
5306 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5311 part { name: "padding_right_bottom";
5315 description { state: "default" 0.0;
5317 rel1.relative: 1.0 1.0;
5318 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5323 part { name: "padding_icon_text";
5327 description { state: "default" 0.0; //when only icon or no icon is there
5331 to: "elm.swallow.content";
5333 rel2.to: "elm.swallow.content";
5338 description { state: "icononly" 0.0;
5339 inherit: "default" 0.0;
5341 description { state: "visible" 0.0; //when icon is visible
5342 inherit: "default" 0.0;
5343 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5346 part { name: "elm.swallow.content";
5350 description { state: "default" 0.0;
5355 to: "padding_left_top";
5359 to_x: "padding_left_top";
5360 to_y: "padding_right_bottom";
5364 description { state: "visible" 0.0;
5369 to: "padding_left_top";
5373 to_x: "padding_left_top";
5374 to_y: "padding_right_bottom";
5377 aspect_preference: VERTICAL;
5379 description { state: "icononly" 0.0;
5380 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5383 to: "padding_left_top";
5387 to: "padding_right_bottom";
5390 aspect_preference: VERTICAL;
5393 part { name: "elm.text";
5398 description { state: "default" 0.0;
5401 to_x: "padding_icon_text";
5402 to_y: "padding_left_top";
5406 to: "padding_right_bottom";
5408 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5410 font: "SLP:style=Medium";
5411 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5415 text_class: "slp_medium";
5418 description { state: "visible" 0.0;
5419 inherit: "default" 0.0;
5421 description { state: "clicked" 0.0;
5422 inherit: "default" 0.0;
5423 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5425 description { state: "disabled" 0.0;
5426 inherit: "default" 0.0;
5429 description { state: "disabled_visible" 0.0;
5430 inherit: "default" 0.0;
5431 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5433 description { state: "focused" 0.0;
5434 inherit: "default" 0.0;
5436 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5439 part { name: "over2";
5442 ignore_flags: ON_HOLD;
5443 description { state: "default" 0.0;
5447 part { name: "over3";
5450 description { state: "default" 0.0;
5454 part { name: "clipper";
5456 description { state: "default" 0.0;
5457 color: 255 255 255 255;
5460 part { name: "disabler";
5462 description { state: "default" 0.0;
5466 description { state: "disabled" 0.0;
5467 inherit: "default" 0.0;
5473 program { name: "button_click";
5474 signal: "mouse,down,1";
5476 action: SIGNAL_EMIT "elm,action,press" "";
5477 after: "button_click_anim";
5479 program { name: "button_click_anim";
5480 action: STATE_SET "clicked" 0.0;
5481 target: "button_image";
5482 after: "text_clicked";
5484 program { name: "text_clicked";
5488 get_state(PART:"elm.text", st, 30, vl);
5489 if (!strcmp(st, "visible"))
5490 set_state(PART:"elm.text", "clicked", 0.0);
5493 program { name: "button_unpress";
5494 action: SIGNAL_EMIT "elm,action,unpress" "";
5496 program { name: "button_mouseout_clicked";
5497 signal: "mouse,up,1";
5502 get_state(PART:"elm.swallow.content", st, 30, vl);
5503 if (strcmp(st, "icononly"))
5505 emit("elm,action,default,text,set", "");
5506 set_state(PART:"elm.text", "visible", 0.0);
5508 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5509 set_state(PART:"button_image", "default", 0.0);
5511 after: button_unpress;
5513 program { name: "touch_snd";
5514 signal: "mouse,clicked,1";
5516 action: PLAY_SAMPLE "touch_sound" 1.0;
5517 after: button_unclick3;
5519 program { name: "button_unclick3";
5520 action: SIGNAL_EMIT "elm,action,click" "";
5522 program { name: "text_show";
5523 signal: "elm,state,text,visible";
5528 get_state(PART:"elm.swallow.content", st, 30, vl);
5529 if (!strcmp(st, "icononly"))
5531 set_state(PART:"elm.swallow.content", "visible", 0.0);
5532 set_state(PART:"padding_icon_text", "visible", 0.0);
5534 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5535 set_state(PART:"elm.text", "visible", 0.0);
5537 set_state(PART:"elm.text", "disabled_visible", 0.0);
5540 program { name: "text_hide";
5541 signal: "elm,state,text,hidden";
5546 get_state(PART:"elm.swallow.content", st, 30, vl);
5547 if (!strcmp(st, "visible"))
5549 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5550 set_state(PART:"padding_icon_text", "icononly", 0.0);
5552 set_state(PART:"elm.text", "default", 0.0);
5555 program { name: "icon_show";
5556 signal: "elm,state,icon,visible";
5561 get_state(PART:"elm.text", st, 30, vl);
5562 if (!strcmp(st, "visible"))
5564 set_state(PART:"elm.swallow.content", "visible", 0.0);
5565 set_state(PART:"padding_icon_text", "visible", 0.0);
5569 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5570 set_state(PART:"padding_icon_text", "icononly", 0.0);
5574 program { name: "icon_hide";
5575 signal: "elm,state,icon,hidden";
5577 action: STATE_SET "default" 0.0;
5578 target: "elm.swallow.content";
5579 target: "padding_icon_text";
5581 program { name: "disable";
5582 signal: "elm,state,disabled";
5584 action: STATE_SET "disabled" 0.0;
5585 target: "button_image";
5587 after: "disable_text";
5589 program { name: "disable_text";
5593 get_state(PART:"elm.text", st, 30, vl);
5594 if (!strcmp(st, "visible"))
5595 set_state(PART:"elm.text", "disabled_visible", 0.0);
5597 set_state(PART:"elm.text", "disabled", 0.0);
5598 set_int(button_state, BUTTON_STATE_DISABLED);
5601 program { name: "enable";
5602 signal: "elm,state,enabled";
5604 action: STATE_SET "default" 0.0;
5605 target: "button_image";
5607 after: "enable_text";
5609 program { name: "enable_text";
5613 get_state(PART:"elm.text", st, 30, vl);
5614 if (!strcmp(st, "disabled_visible"))
5615 set_state(PART:"elm.text", "visible", 0.0);
5617 set_state(PART:"elm.text", "default", 0.0);
5618 set_int(button_state, BUTTON_STATE_ENABLED);
5621 program { name: "focused";
5622 //signal: "elm,action,focus";
5624 action: STATE_SET "focused" 0.0;
5625 target: "button_image";
5628 program { name: "unfocused";
5629 //signal: "elm,action,unfocus";
5631 action: STATE_SET "default" 0.0;
5632 target: "button_image";
5633 after: "unfocus_text";
5635 program { name: "unfocus_text";
5636 action: STATE_SET "visible" 0.0;
5642 ///////////////////////////////////////////////////////////////////////////////////////
5643 group { name: "elm/button/base/multiline";
5644 alias: "elm/button/base/text_only/multiline";
5646 image: "00_button_04_normal.png" COMP;
5647 image: "00_button_04_press.png" COMP;
5648 image: "00_button_04_dim.png" COMP;
5649 image: "00_button_04_normal_focus.png" COMP;
5652 public button_state = BUTTON_STATE_ENABLED;
5655 style { name: "btn_multiline_style";
5656 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5663 part { name: "button_image";
5665 description { state: "default" 0.0;
5668 normal: "00_button_04_normal.png";
5673 description { state: "clicked" 0.0;
5674 inherit: "default" 0.0;
5675 image.normal: "00_button_04_press.png";
5677 description { state: "disabled" 0.0;
5678 inherit: "default" 0.0;
5679 image.normal: "00_button_04_dim.png";
5681 description { state: "focused" 0.0;
5682 inherit: "default" 0.0;
5683 image.normal: "00_button_04_normal_focus.png";
5686 part { name: "padding_left_top";
5690 description { state: "default" 0.0;
5692 rel2.relative: 0.0 0.0;
5698 part { name: "padding_right_bottom";
5702 description { state: "default" 0.0;
5704 rel1.relative: 1.0 1.0;
5710 part { name: "icon_rect";
5714 description { state: "default" 0.0;
5720 to_x: "elm.swallow.content";
5721 to_y: "padding_left_top";
5725 to_x: "elm.swallow.content";
5726 to_y: "padding_right_bottom";
5732 part { name: "padding_icon_text";
5736 description { state: "default" 0.0; //when only icon or no icon is there
5742 rel2.to: "icon_rect";
5747 description { state: "icononly" 0.0;
5748 inherit: "default" 0.0;
5750 description { state: "visible" 0.0; //when icon is visible
5756 rel2.to: "icon_rect";
5762 part { name: "elm.swallow.content";
5766 description { state: "default" 0.0;
5771 to: "padding_left_top";
5775 to_x: "padding_left_top";
5776 to_y: "padding_right_bottom";
5780 description { state: "visible" 0.0;
5785 to: "padding_left_top";
5789 to_x: "padding_left_top";
5790 to_y: "padding_right_bottom";
5793 aspect_preference: VERTICAL;
5795 description { state: "icononly" 0.0;
5799 to: "padding_left_top";
5803 to: "padding_right_bottom";
5806 aspect_preference: VERTICAL;
5809 part { name: "elm.text";
5814 description { state: "default" 0.0;
5818 to_x: "padding_icon_text";
5819 to_y: "padding_left_top";
5823 to: "padding_right_bottom";
5825 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5827 style: "btn_multiline_style";
5832 description { state: "visible" 0.0;
5833 inherit: "default" 0.0;
5837 description { state: "clicked" 0.0;
5838 inherit: "default" 0.0;
5841 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5843 description { state: "disabled" 0.0;
5844 inherit: "default" 0.0;
5847 description { state: "disabled_visible" 0.0;
5848 inherit: "default" 0.0;
5849 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5853 description { state: "focused" 0.0;
5854 inherit: "default" 0.0;
5857 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5860 part { name: "over2";
5863 ignore_flags: ON_HOLD;
5864 description { state: "default" 0.0;
5868 part { name: "over3";
5871 description { state: "default" 0.0;
5875 part { name: "clipper";
5877 description { state: "default" 0.0;
5878 color: 255 255 255 255;
5881 part { name: "disabler";
5883 description { state: "default" 0.0;
5887 description { state: "disabled" 0.0;
5888 inherit: "default" 0.0;
5894 program { name: "button_click";
5895 signal: "mouse,down,1";
5897 action: SIGNAL_EMIT "elm,action,press" "";
5898 after: "button_click_anim";
5900 program { name: "button_click_anim";
5901 action: STATE_SET "clicked" 0.0;
5902 target: "button_image";
5903 after: "text_clicked";
5905 program { name: "text_clicked";
5909 get_state(PART:"elm.text", st, 30, vl);
5910 if (!strcmp(st, "visible"))
5911 set_state(PART:"elm.text", "clicked", 0.0);
5914 program { name: "button_unpress";
5915 action: SIGNAL_EMIT "elm,action,unpress" "";
5917 program { name: "button_mouseout_clicked";
5918 signal: "mouse,up,1";
5923 get_state(PART:"elm.swallow.content", st, 30, vl);
5924 if (strcmp(st, "icononly"))
5926 emit("elm,action,default,text,set", "");
5927 set_state(PART:"elm.text", "visible", 0.0);
5929 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5930 set_state(PART:"button_image", "default", 0.0);
5932 after: button_unpress;
5934 program { name: "touch_snd";
5935 signal: "mouse,clicked,1";
5937 action: PLAY_SAMPLE "touch_sound" 1.0;
5938 after: button_unclick3;
5940 program { name: "button_unclick3";
5941 action: SIGNAL_EMIT "elm,action,click" "";
5943 program { name: "text_show";
5944 signal: "elm,state,text,visible";
5949 get_state(PART:"elm.swallow.content", st, 30, vl);
5950 if (!strcmp(st, "icononly"))
5952 set_state(PART:"elm.swallow.content", "visible", 0.0);
5953 set_state(PART:"padding_icon_text", "visible", 0.0);
5955 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5956 set_state(PART:"elm.text", "visible", 0.0);
5958 set_state(PART:"elm.text", "disabled_visible", 0.0);
5961 program { name: "text_hide";
5962 signal: "elm,state,text,hidden";
5967 get_state(PART:"elm.swallow.content", st, 30, vl);
5968 if (!strcmp(st, "visible"))
5970 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5971 set_state(PART:"padding_icon_text", "icononly", 0.0);
5973 set_state(PART:"elm.text", "default", 0.0);
5976 program { name: "icon_show";
5977 signal: "elm,state,icon,visible";
5982 get_state(PART:"elm.text", st, 30, vl);
5983 if (!strcmp(st, "visible"))
5985 set_state(PART:"elm.swallow.content", "visible", 0.0);
5986 set_state(PART:"padding_icon_text", "visible", 0.0);
5990 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5991 set_state(PART:"padding_icon_text", "icononly", 0.0);
5995 program { name: "icon_hide";
5996 signal: "elm,state,icon,hidden";
5998 action: STATE_SET "default" 0.0;
5999 target: "elm.swallow.content";
6000 target: "padding_icon_text";
6002 program { name: "disable";
6003 signal: "elm,state,disabled";
6005 action: STATE_SET "disabled" 0.0;
6006 target: "button_image";
6008 after: "disable_text";
6010 program { name: "disable_text";
6014 get_state(PART:"elm.text", st, 30, vl);
6015 if (!strcmp(st, "visible"))
6016 set_state(PART:"elm.text", "disabled_visible", 0.0);
6018 set_state(PART:"elm.text", "disabled", 0.0);
6019 set_int(button_state, BUTTON_STATE_DISABLED);
6022 program { name: "enable";
6023 signal: "elm,state,enabled";
6025 action: STATE_SET "default" 0.0;
6026 target: "button_image";
6028 after: "enable_text";
6030 program { name: "enable_text";
6034 get_state(PART:"elm.text", st, 30, vl);
6035 if (!strcmp(st, "disabled_visible"))
6036 set_state(PART:"elm.text", "visible", 0.0);
6038 set_state(PART:"elm.text", "default", 0.0);
6039 set_int(button_state, BUTTON_STATE_ENABLED);
6042 program { name: "focused";
6043 //signal: "elm,action,focus";
6045 action: STATE_SET "focused" 0.0;
6046 target: "button_image";
6049 program { name: "unfocused";
6050 //signal: "elm,action,unfocus";
6052 action: STATE_SET "default" 0.0;
6053 target: "button_image";
6054 after: "unfocus_text";
6056 program { name: "unfocus_text";
6057 action: STATE_SET "visible" 0.0;
6063 ///////////////////////////////////////////////////////////////////////////////////////
6064 group { name: "elm/button/base/default";
6066 image: "00_button_01_normal.png" COMP;
6067 image: "00_button_01_normal_press.png" COMP;
6068 image: "00_button_01_normal_dim.png" COMP;
6069 image: "00_button_01_normal_Focus.png" COMP;
6072 public button_state = BUTTON_STATE_ENABLED;
6075 part { name: "button_image";
6077 description { state: "default" 0.0;
6078 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6080 normal: "00_button_01_normal.png";
6081 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6085 description { state: "clicked" 0.0;
6086 inherit: "default" 0.0;
6087 image.normal: "00_button_01_normal_press.png";
6089 description { state: "disabled" 0.0;
6090 inherit: "default" 0.0;
6091 image.normal: "00_button_01_normal_dim.png";
6093 description { state: "focused" 0.0;
6094 inherit: "default" 0.0;
6095 image.normal: "00_button_01_normal_Focus.png";
6098 part { name: "padding_left_top";
6102 description { state: "default" 0.0;
6104 rel2.relative: 0.0 0.0;
6105 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6110 part { name: "padding_right_bottom";
6114 description { state: "default" 0.0;
6116 rel1.relative: 1.0 1.0;
6117 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6122 part { name: "padding_icon_text";
6126 description { state: "default" 0.0; //when only icon or no icon is there
6131 to: "elm.swallow.content";
6133 rel2.to: "elm.swallow.content";
6137 description { state: "icononly" 0.0;
6138 inherit: "default" 0.0;
6140 description { state: "visible" 0.0; //when icon is visible
6141 inherit: "default" 0.0;
6142 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6145 part { name: "elm.swallow.content";
6149 description { state: "default" 0.0;
6154 to: "padding_left_top";
6158 to_x: "padding_left_top";
6159 to_y: "padding_right_bottom";
6163 description { state: "visible" 0.0;
6168 to: "padding_left_top";
6172 to_x: "padding_left_top";
6173 to_y: "padding_right_bottom";
6176 aspect_preference: VERTICAL;
6178 description { state: "icononly" 0.0;
6179 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6182 to_x: "padding_left_top";
6186 to_x: "padding_right_bottom";
6189 aspect_preference: VERTICAL;
6192 part { name: "elm.text";
6197 description { state: "default" 0.0;
6202 to_x: "padding_icon_text";
6203 to_y: "padding_left_top";
6207 to: "padding_right_bottom";
6209 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6211 font: "SLP:style=Medium";
6212 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6214 text_class: "slp_medium";
6217 description { state: "visible" 0.0;
6218 inherit: "default" 0.0;
6220 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6222 description { state: "clicked" 0.0;
6223 inherit: "default" 0.0;
6225 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6226 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6228 description { state: "disabled" 0.0;
6229 inherit: "default" 0.0;
6231 description { state: "disabled_visible" 0.0;
6232 inherit: "default" 0.0;
6233 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6235 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6237 description { state: "focused" 0.0;
6238 inherit: "default" 0.0;
6241 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6244 part { name: "over2";
6247 ignore_flags: ON_HOLD;
6248 description { state: "default" 0.0;
6252 part { name: "over3";
6255 description { state: "default" 0.0;
6259 part { name: "clipper";
6261 description { state: "default" 0.0;
6262 color: 255 255 255 255;
6265 part { name: "disabler";
6267 description { state: "default" 0.0;
6271 description { state: "disabled" 0.0;
6272 inherit: "default" 0.0;
6278 program { name: "button_click";
6279 signal: "mouse,down,1";
6281 action: SIGNAL_EMIT "elm,action,press" "";
6282 after: "button_click_anim";
6284 program { name: "button_click_anim";
6285 action: STATE_SET "clicked" 0.0;
6286 target: "button_image";
6287 after: "text_clicked";
6289 program { name: "text_clicked";
6293 get_state(PART:"elm.text", st, 30, vl);
6294 if (!strcmp(st, "visible"))
6295 set_state(PART:"elm.text", "clicked", 0.0);
6298 program { name: "button_unpress";
6299 action: SIGNAL_EMIT "elm,action,unpress" "";
6301 program { name: "button_mouseout_clicked";
6302 signal: "mouse,up,1";
6307 get_state(PART:"elm.swallow.content", st, 30, vl);
6308 if (strcmp(st, "icononly"))
6310 emit("elm,action,default,text,set", "");
6311 set_state(PART:"elm.text", "visible", 0.0);
6313 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6314 set_state(PART:"button_image", "default", 0.0);
6316 after: button_unpress;
6318 program { name: "touch_snd";
6319 signal: "mouse,clicked,1";
6321 action: PLAY_SAMPLE "touch_sound" 1.0;
6322 after: button_unclick3;
6324 program { name: "button_unclick3";
6325 action: SIGNAL_EMIT "elm,action,click" "";
6327 program { name: "text_show";
6328 signal: "elm,state,text,visible";
6333 get_state(PART:"elm.swallow.content", st, 30, vl);
6334 if (!strcmp(st, "icononly"))
6336 set_state(PART:"elm.swallow.content", "visible", 0.0);
6337 set_state(PART:"padding_icon_text", "visible", 0.0);
6339 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6340 set_state(PART:"elm.text", "visible", 0.0);
6342 set_state(PART:"elm.text", "disabled_visible", 0.0);
6345 program { name: "text_hide";
6346 signal: "elm,state,text,hidden";
6351 get_state(PART:"elm.swallow.content", st, 30, vl);
6352 if (!strcmp(st, "visible"))
6354 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6355 set_state(PART:"padding_icon_text", "icononly", 0.0);
6357 set_state(PART:"elm.text", "default", 0.0);
6360 program { name: "icon_show";
6361 signal: "elm,state,icon,visible";
6366 get_state(PART:"elm.text", st, 30, vl);
6367 if (!strcmp(st, "visible"))
6369 set_state(PART:"elm.swallow.content", "visible", 0.0);
6370 set_state(PART:"padding_icon_text", "visible", 0.0);
6374 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6375 set_state(PART:"padding_icon_text", "icononly", 0.0);
6379 program { name: "icon_hide";
6380 signal: "elm,state,icon,hidden";
6382 action: STATE_SET "default" 0.0;
6383 target: "elm.swallow.content";
6384 target: "padding_icon_text";
6386 program { name: "disable";
6387 signal: "elm,state,disabled";
6389 action: STATE_SET "disabled" 0.0;
6390 target: "button_image";
6392 after: "disable_text";
6394 program { name: "disable_text";
6398 get_state(PART:"elm.text", st, 30, vl);
6399 if (!strcmp(st, "visible"))
6400 set_state(PART:"elm.text", "disabled_visible", 0.0);
6402 set_state(PART:"elm.text", "disabled", 0.0);
6403 set_int(button_state, BUTTON_STATE_DISABLED);
6406 program { name: "enable";
6407 signal: "elm,state,enabled";
6409 action: STATE_SET "default" 0.0;
6410 target: "button_image";
6412 after: "enable_text";
6414 program { name: "enable_text";
6418 get_state(PART:"elm.text", st, 30, vl);
6419 if (!strcmp(st, "disabled_visible"))
6420 set_state(PART:"elm.text", "visible", 0.0);
6422 set_state(PART:"elm.text", "default", 0.0);
6423 set_int(button_state, BUTTON_STATE_ENABLED);
6426 program { name: "focused";
6427 //signal: "elm,action,focus";
6429 action: STATE_SET "focused" 0.0;
6430 target: "button_image";
6433 program { name: "unfocused";
6434 //signal: "elm,action,unfocus";
6436 action: STATE_SET "default" 0.0;
6437 target: "button_image";
6438 after: "unfocus_text";
6440 program { name: "unfocus_text";
6441 action: STATE_SET "visible" 0.0;
6447 ///////////////////////////////////////////////////////////////////////////////////////
6448 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6449 group { name: "elm/button/base/"style_name; \
6451 image: image_normal COMP; \
6452 image: image_press COMP; \
6453 image: image_disable COMP; \
6454 image: "00_button_01_normal.png" COMP; \
6455 image: "00_button_01_normal_press.png" COMP; \
6456 image: "00_button_01_normal_dim.png" COMP; \
6457 image: "00_button_01_normal_Focus.png" COMP; \
6460 part { name: "button_image"; \
6462 description { state: "default" 0.0; \
6463 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6464 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6466 normal: "00_button_01_normal.png"; \
6467 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6472 state: "clicked" 0.0; \
6473 inherit: "default" 0.0; \
6474 image.normal: "00_button_01_normal_press.png"; \
6477 state: "disabled" 0.0; \
6478 inherit: "default" 0.0; \
6479 image.normal: "00_button_01_normal_dim.png"; \
6482 state: "focused" 0.0; \
6483 inherit: "default" 0.0; \
6484 image.normal: "00_button_01_normal_Focus.png"; \
6487 part { name: "button_center_part"; \
6489 description { state: "default" 0.0; \
6490 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6491 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6492 image.normal: image_normal; \
6495 state: "clicked" 0.0; \
6496 inherit: "default" 0.0; \
6497 image.normal: image_press; \
6500 state: "disabled" 0.0; \
6501 inherit: "default" 0.0; \
6502 image.normal: image_disable; \
6505 part { name: "over1"; \
6507 ignore_flags: ON_HOLD; \
6508 description { state: "default" 0.0; \
6512 part { name: "over2"; \
6514 description { state: "default" 0.0; \
6518 part { name: "disabler"; \
6520 description { state: "default" 0.0; \
6524 description { state: "disabled" 0.0; \
6525 inherit: "default" 0.0; \
6531 program { name: "button_click"; \
6532 signal: "mouse,down,1"; \
6534 action: SIGNAL_EMIT "elm,action,press" ""; \
6535 after: "button_click_anim"; \
6537 program { name: "button_click_anim"; \
6538 action: STATE_SET "clicked" 0.0; \
6539 target: "button_image"; \
6540 target: "button_center_part"; \
6542 program { name: "button_unclick"; \
6543 signal: "mouse,up,1"; \
6545 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6546 after: "button_unclick_anim"; \
6548 program { name: "button_unclick_anim"; \
6549 action: STATE_SET "default" 0.0; \
6550 target: "button_image"; \
6551 target: "button_center_part"; \
6553 program { name: "touch_snd"; \
6554 signal: "mouse,clicked,1"; \
6556 action: PLAY_SAMPLE "touch_sound" 1.0; \
6557 after: button_unclick3; \
6559 program { name: "button_unclick3"; \
6560 action: SIGNAL_EMIT "elm,action,click" ""; \
6562 program { name: "disable"; \
6563 signal: "elm,state,disabled"; \
6565 action: STATE_SET "disabled" 0.0; \
6566 target: "disabler"; \
6567 target: "button_image"; \
6568 target: "button_center_part"; \
6570 program { name: "enable"; \
6571 signal: "elm,state,enabled"; \
6573 action: STATE_SET "default" 0.0; \
6574 target: "disabler"; \
6575 target: "button_image"; \
6576 target: "button_center_part"; \
6580 ///////////////////////////////////////////////////////////////////////////////////////
6581 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")
6582 ///////////////////////////////////////////////////////////////////////////////////////
6583 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")
6584 ///////////////////////////////////////////////////////////////////////////////////////
6585 group { name: "elm/button/base/hidden";
6587 image: "00_button_sweep.png" COMP;
6588 image: "00_button_sweep_press.png" COMP;
6589 image: "00_button_sweep_focus.png" COMP;
6590 image: "00_button_sweep_dim.png" COMP;
6593 public button_state = BUTTON_STATE_ENABLED;
6596 part { name: "button_image";
6598 description { state: "default" 0.0;
6599 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6601 normal: "00_button_sweep.png";
6602 border: BUTTON_HIDDEN_BG_BORDER_INC;
6606 description { state: "clicked" 0.0;
6607 inherit: "default" 0.0;
6608 image.normal: "00_button_sweep_press.png";
6610 description { state: "disabled" 0.0;
6611 inherit: "default" 0.0;
6612 image.normal: "00_button_sweep_dim.png";
6614 description { state: "focused" 0.0;
6615 inherit: "default" 0.0;
6616 image.normal: "00_button_sweep_focus.png";
6619 part { name: "padding_left_top";
6623 description { state: "default" 0.0;
6625 rel2.relative: 0.0 0.0;
6626 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6631 part { name: "padding_right_bottom";
6635 description { state: "default" 0.0;
6637 rel1.relative: 1.0 1.0;
6638 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6643 part { name: "icon_rect";
6647 description { state: "default" 0.0;
6648 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6652 to_x: "elm.swallow.content";
6653 to_y: "padding_left_top";
6657 to_x: "elm.swallow.content";
6658 to_y: "padding_right_bottom";
6664 part { name: "padding_icon_text";
6668 description { state: "default" 0.0; //when only icon or no icon is there
6674 rel2.to: "icon_rect";
6679 description { state: "icononly" 0.0;
6680 inherit: "default" 0.0;
6682 description { state: "visible" 0.0; //when icon is visible
6688 rel2.to: "icon_rect";
6690 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6694 part { name: "elm.swallow.content";
6698 description { state: "default" 0.0;
6703 to: "padding_left_top";
6707 to_x: "padding_left_top";
6708 to_y: "padding_right_bottom";
6712 description { state: "visible" 0.0;
6717 to: "padding_left_top";
6721 to_x: "padding_left_top";
6722 to_y: "padding_right_bottom";
6725 aspect_preference: VERTICAL;
6727 description { state: "icononly" 0.0;
6728 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6731 to: "padding_left_top";
6735 to_x: "padding_left_top";
6736 to_y: "padding_right_bottom";
6739 aspect_preference: VERTICAL;
6742 part { name: "elm.text";
6747 description { state: "default" 0.0;
6751 to_x: "padding_icon_text";
6752 to_y: "padding_left_top";
6756 to: "padding_right_bottom";
6758 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6760 font: "SLP:style=Medium";
6761 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6763 text_class: "slp_medium";
6766 description { state: "visible" 0.0;
6767 inherit: "default" 0.0;
6769 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6771 description { state: "clicked" 0.0;
6772 inherit: "default" 0.0;
6775 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6777 description { state: "disabled" 0.0;
6778 inherit: "default" 0.0;
6781 description { state: "disabled_visible" 0.0;
6782 inherit: "default" 0.0;
6783 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6785 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6787 description { state: "focused" 0.0;
6788 inherit: "default" 0.0;
6791 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6794 part { name: "over2";
6797 ignore_flags: ON_HOLD;
6798 description { state: "default" 0.0;
6802 part { name: "over3";
6805 description { state: "default" 0.0;
6809 part { name: "clipper";
6811 description { state: "default" 0.0;
6812 color: 255 255 255 255;
6815 part { name: "disabler";
6817 description { state: "default" 0.0;
6821 description { state: "disabled" 0.0;
6822 inherit: "default" 0.0;
6828 program { name: "button_click";
6829 signal: "mouse,down,1";
6831 action: SIGNAL_EMIT "elm,action,press" "";
6832 after: "button_click_anim";
6834 program { name: "button_click_anim";
6835 action: STATE_SET "clicked" 0.0;
6836 target: "button_image";
6837 after: "text_clicked";
6839 program { name: "text_clicked";
6843 get_state(PART:"elm.text", st, 30, vl);
6844 if (!strcmp(st, "visible"))
6845 set_state(PART:"elm.text", "clicked", 0.0);
6848 program { name: "button_unpress";
6849 action: SIGNAL_EMIT "elm,action,unpress" "";
6851 program { name: "button_mouseout_clicked";
6852 signal: "mouse,up,1";
6857 get_state(PART:"elm.swallow.content", st, 30, vl);
6858 if (strcmp(st, "icononly"))
6860 emit("elm,action,default,text,set", "");
6861 set_state(PART:"elm.text", "visible", 0.0);
6863 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6864 set_state(PART:"button_image", "default", 0.0);
6866 after: button_unpress;
6868 program { name: "touch_snd";
6869 signal: "mouse,clicked,1";
6871 action: PLAY_SAMPLE "touch_sound" 1.0;
6872 after: button_unclick3;
6874 program { name: "button_unclick3";
6875 action: SIGNAL_EMIT "elm,action,click" "";
6877 program { name: "text_show";
6878 signal: "elm,state,text,visible";
6883 get_state(PART:"elm.swallow.content", st, 30, vl);
6884 if (!strcmp(st, "icononly"))
6886 set_state(PART:"elm.swallow.content", "visible", 0.0);
6887 set_state(PART:"padding_icon_text", "visible", 0.0);
6889 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6890 set_state(PART:"elm.text", "visible", 0.0);
6892 set_state(PART:"elm.text", "disabled_visible", 0.0);
6895 program { name: "text_hide";
6896 signal: "elm,state,text,hidden";
6901 get_state(PART:"elm.swallow.content", st, 30, vl);
6902 if (!strcmp(st, "visible"))
6904 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6905 set_state(PART:"padding_icon_text", "icononly", 0.0);
6907 set_state(PART:"elm.text", "default", 0.0);
6910 program { name: "icon_show";
6911 signal: "elm,state,icon,visible";
6916 get_state(PART:"elm.text", st, 30, vl);
6917 if (!strcmp(st, "visible"))
6919 set_state(PART:"elm.swallow.content", "visible", 0.0);
6920 set_state(PART:"padding_icon_text", "visible", 0.0);
6924 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6925 set_state(PART:"padding_icon_text", "icononly", 0.0);
6929 program { name: "icon_hide";
6930 signal: "elm,state,icon,hidden";
6932 action: STATE_SET "default" 0.0;
6933 target: "elm.swallow.content";
6934 target: "padding_icon_text";
6936 program { name: "disable";
6937 signal: "elm,state,disabled";
6939 action: STATE_SET "disabled" 0.0;
6940 target: "button_image";
6942 after: "disable_text";
6944 program { name: "disable_text";
6948 get_state(PART:"elm.text", st, 30, vl);
6949 if (!strcmp(st, "visible"))
6950 set_state(PART:"elm.text", "disabled_visible", 0.0);
6952 set_state(PART:"elm.text", "disabled", 0.0);
6953 set_int(button_state, BUTTON_STATE_DISABLED);
6956 program { name: "enable";
6957 signal: "elm,state,enabled";
6959 action: STATE_SET "default" 0.0;
6960 target: "button_image";
6962 after: "enable_text";
6964 program { name: "enable_text";
6968 get_state(PART:"elm.text", st, 30, vl);
6969 if (!strcmp(st, "disabled_visible"))
6970 set_state(PART:"elm.text", "visible", 0.0);
6972 set_state(PART:"elm.text", "default", 0.0);
6973 set_int(button_state, BUTTON_STATE_ENABLED);
6976 program { name: "focused";
6977 //signal: "elm,action,focus";
6979 action: STATE_SET "focused" 0.0;
6980 target: "button_image";
6983 program { name: "unfocused";
6984 //signal: "elm,action,unfocus";
6986 action: STATE_SET "default" 0.0;
6987 target: "button_image";
6988 after: "unfocus_text";
6990 program { name: "unfocus_text";
6991 action: STATE_SET "visible" 0.0;
6997 ///////////////////////////////////////////////////////////////////////////////////////
6998 group { name: "elm/button/base/picker/bar/default";
7000 image: "00_picker_btn_normal.png" COMP;
7001 image: "00_picker_btn_press.png" COMP;
7002 image: "00_picker_btn_normal_focus.png" COMP;
7005 public button_state = BUTTON_STATE_ENABLED;
7008 part { name: "button_image";
7010 description { state: "default" 0.0;
7011 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7013 normal: "00_picker_btn_normal.png";
7014 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7018 description { state: "clicked" 0.0;
7019 inherit: "default" 0.0;
7020 image.normal: "00_picker_btn_press.png";
7022 description { state: "disabled" 0.0;
7023 inherit: "default" 0.0;
7025 description { state: "focused" 0.0;
7026 inherit: "default" 0.0;
7027 image.normal: "00_picker_btn_normal_focus.png";
7030 part { name: "padding_left_top";
7034 description { state: "default" 0.0;
7036 rel2.relative: 0.0 0.0;
7037 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7042 part { name: "padding_right_bottom";
7046 description { state: "default" 0.0;
7048 rel1.relative: 1.0 1.0;
7049 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7054 part { name: "icon_rect";
7058 description { state: "default" 0.0;
7059 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7063 to_x: "elm.swallow.content";
7064 to_y: "padding_left_top";
7068 to_x: "elm.swallow.content";
7069 to_y: "padding_right_bottom";
7075 part { name: "padding_icon_text";
7079 description { state: "default" 0.0; //when only icon or no icon is there
7085 rel2.to: "icon_rect";
7090 description { state: "icononly" 0.0;
7091 inherit: "default" 0.0;
7093 description { state: "visible" 0.0; //when icon is visible
7099 rel2.to: "icon_rect";
7101 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7105 part { name: "elm.swallow.content";
7109 description { state: "default" 0.0;
7114 to: "padding_left_top";
7118 to_x: "padding_left_top";
7119 to_y: "padding_right_bottom";
7123 description { state: "visible" 0.0;
7128 to: "padding_left_top";
7132 to_x: "padding_left_top";
7133 to_y: "padding_right_bottom";
7136 aspect_preference: VERTICAL;
7138 description { state: "icononly" 0.0;
7139 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7142 to: "padding_left_top";
7146 to_x: "padding_left_top";
7147 to_y: "padding_right_bottom";
7150 aspect_preference: VERTICAL;
7153 part { name: "elm.text";
7158 description { state: "default" 0.0;
7162 to_x: "padding_icon_text";
7163 to_y: "padding_left_top";
7167 to: "padding_right_bottom";
7169 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7171 font: "SLP:style=Medium";
7172 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7175 text_class: "slp_medium";
7178 description { state: "visible" 0.0;
7179 inherit: "default" 0.0;
7181 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7183 description { state: "clicked" 0.0;
7184 inherit: "default" 0.0;
7187 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7189 description { state: "disabled" 0.0;
7190 inherit: "default" 0.0;
7191 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7193 description { state: "disabled_visible" 0.0;
7194 inherit: "default" 0.0;
7195 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7197 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7199 description { state: "focused" 0.0;
7200 inherit: "default" 0.0;
7203 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7206 part { name: "over2";
7209 ignore_flags: ON_HOLD;
7210 description { state: "default" 0.0;
7214 part { name: "over3";
7217 description { state: "default" 0.0;
7221 part { name: "clipper";
7223 description { state: "default" 0.0;
7224 color: 255 255 255 255;
7227 part { name: "disabler";
7229 description { state: "default" 0.0;
7233 description { state: "disabled" 0.0;
7234 inherit: "default" 0.0;
7240 program { name: "button_click";
7241 signal: "mouse,down,1";
7243 action: SIGNAL_EMIT "elm,action,press" "";
7244 after: "button_click_anim";
7246 program { name: "button_click_anim";
7247 action: STATE_SET "clicked" 0.0;
7248 target: "button_image";
7249 after: "text_clicked";
7251 program { name: "text_clicked";
7255 get_state(PART:"elm.text", st, 30, vl);
7256 if (!strcmp(st, "visible"))
7257 set_state(PART:"elm.text", "clicked", 0.0);
7260 program { name: "button_unpress";
7261 action: SIGNAL_EMIT "elm,action,unpress" "";
7263 program { name: "button_mouseout_clicked";
7264 signal: "mouse,up,1";
7269 get_state(PART:"elm.swallow.content", st, 30, vl);
7270 if (strcmp(st, "icononly"))
7272 emit("elm,action,default,text,set", "");
7273 set_state(PART:"elm.text", "visible", 0.0);
7275 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7276 set_state(PART:"button_image", "default", 0.0);
7278 after: button_unpress;
7280 program { name: "touch_snd";
7281 signal: "mouse,clicked,1";
7283 action: PLAY_SAMPLE "touch_sound" 1.0;
7284 after: button_unclick3;
7286 program { name: "button_unclick3";
7287 action: SIGNAL_EMIT "elm,action,click" "";
7289 program { name: "text_show";
7290 signal: "elm,state,text,visible";
7295 get_state(PART:"elm.swallow.content", st, 30, vl);
7296 if (!strcmp(st, "icononly"))
7298 set_state(PART:"elm.swallow.content", "visible", 0.0);
7299 set_state(PART:"padding_icon_text", "visible", 0.0);
7301 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7302 set_state(PART:"elm.text", "visible", 0.0);
7304 set_state(PART:"elm.text", "disabled_visible", 0.0);
7307 program { name: "text_hide";
7308 signal: "elm,state,text,hidden";
7313 get_state(PART:"elm.swallow.content", st, 30, vl);
7314 if (!strcmp(st, "visible"))
7316 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7317 set_state(PART:"padding_icon_text", "icononly", 0.0);
7319 set_state(PART:"elm.text", "default", 0.0);
7322 program { name: "icon_show";
7323 signal: "elm,state,icon,visible";
7328 get_state(PART:"elm.text", st, 30, vl);
7329 if (!strcmp(st, "visible"))
7331 set_state(PART:"elm.swallow.content", "visible", 0.0);
7332 set_state(PART:"padding_icon_text", "visible", 0.0);
7336 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7337 set_state(PART:"padding_icon_text", "icononly", 0.0);
7341 program { name: "icon_hide";
7342 signal: "elm,state,icon,hidden";
7344 action: STATE_SET "default" 0.0;
7345 target: "elm.swallow.content";
7346 target: "padding_icon_text";
7348 program { name: "disable";
7349 signal: "elm,state,disabled";
7351 action: STATE_SET "disabled" 0.0;
7352 target: "button_image";
7354 after: "disable_text";
7356 program { name: "disable_text";
7360 get_state(PART:"elm.text", st, 30, vl);
7361 if (!strcmp(st, "visible"))
7362 set_state(PART:"elm.text", "disabled_visible", 0.0);
7364 set_state(PART:"elm.text", "disabled", 0.0);
7365 set_int(button_state, BUTTON_STATE_DISABLED);
7368 program { name: "enable";
7369 signal: "elm,state,enabled";
7371 action: STATE_SET "default" 0.0;
7372 target: "button_image";
7374 after: "enable_text";
7376 program { name: "enable_text";
7380 get_state(PART:"elm.text", st, 30, vl);
7381 if (!strcmp(st, "disabled_visible"))
7382 set_state(PART:"elm.text", "visible", 0.0);
7384 set_state(PART:"elm.text", "default", 0.0);
7385 set_int(button_state, BUTTON_STATE_ENABLED);
7388 program { name: "focused";
7389 //signal: "elm,action,focus";
7391 action: STATE_SET "focused" 0.0;
7392 target: "button_image";
7395 program { name: "unfocused";
7396 //signal: "elm,action,unfocus";
7398 action: STATE_SET "default" 0.0;
7399 target: "button_image";
7400 after: "unfocus_text";
7402 program { name: "unfocus_text";
7403 action: STATE_SET "visible" 0.0;
7409 ///////////////////////////////////////////////////////////////////////////////////////
7410 group { name: "elm/button/base/picker/prev/text/default";
7411 alias: "elm/button/base/picker/next/text/default";
7413 image: "00_picker_btn_normal.png" COMP;
7414 image: "00_picker_btn_press.png" COMP;
7415 image: "00_picker_btn_normal_focus.png" COMP;
7418 public button_state = BUTTON_STATE_ENABLED;
7421 part { name: "button_image";
7423 description { state: "default" 0.0;
7424 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7426 normal: "00_picker_btn_normal.png";
7427 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7431 description { state: "clicked" 0.0;
7432 inherit: "default" 0.0;
7433 image.normal: "00_picker_btn_press.png";
7435 description { state: "disabled" 0.0;
7436 inherit: "default" 0.0;
7439 description { state: "focused" 0.0;
7440 inherit: "default" 0.0;
7441 image.normal: "00_picker_btn_normal_focus.png";
7444 part { name: "padding_left_top";
7448 description { state: "default" 0.0;
7450 rel2.relative: 0.0 0.0;
7451 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7456 part { name: "padding_right_bottom";
7460 description { state: "default" 0.0;
7462 rel1.relative: 1.0 1.0;
7463 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7468 part { name: "icon_rect";
7472 description { state: "default" 0.0;
7473 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7477 to_x: "elm.swallow.content";
7478 to_y: "padding_left_top";
7482 to_x: "elm.swallow.content";
7483 to_y: "padding_right_bottom";
7489 part { name: "padding_icon_text";
7493 description { state: "default" 0.0; //when only icon or no icon is there
7499 rel2.to: "icon_rect";
7504 description { state: "icononly" 0.0;
7505 inherit: "default" 0.0;
7507 description { state: "visible" 0.0; //when icon is visible
7513 rel2.to: "icon_rect";
7515 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7519 part { name: "elm.swallow.content";
7523 description { state: "default" 0.0;
7528 to: "padding_left_top";
7532 to_x: "padding_left_top";
7533 to_y: "padding_right_bottom";
7537 description { state: "visible" 0.0;
7542 to: "padding_left_top";
7546 to_x: "padding_left_top";
7547 to_y: "padding_right_bottom";
7550 aspect_preference: VERTICAL;
7552 description { state: "icononly" 0.0;
7553 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7556 to: "padding_left_top";
7560 to_x: "padding_left_top";
7561 to_y: "padding_right_bottom";
7564 aspect_preference: VERTICAL;
7567 part { name: "elm.text";
7572 description { state: "default" 0.0;
7576 to_x: "padding_icon_text";
7577 to_y: "padding_left_top";
7581 to: "padding_right_bottom";
7583 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7585 font: "SLP:style=Medium";
7586 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7589 text_class: "slp_medium";
7592 description { state: "visible" 0.0;
7593 inherit: "default" 0.0;
7595 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7597 description { state: "clicked" 0.0;
7598 inherit: "default" 0.0;
7601 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7603 description { state: "disabled" 0.0;
7604 inherit: "default" 0.0;
7605 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7607 description { state: "disabled_visible" 0.0;
7608 inherit: "default" 0.0;
7609 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7611 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7613 description { state: "focused" 0.0;
7614 inherit: "default" 0.0;
7617 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7620 part { name: "over2";
7623 ignore_flags: ON_HOLD;
7624 description { state: "default" 0.0;
7628 part { name: "over3";
7631 description { state: "default" 0.0;
7635 part { name: "clipper";
7637 description { state: "default" 0.0;
7638 color: 255 255 255 255;
7641 part { name: "disabler";
7643 description { state: "default" 0.0;
7647 description { state: "disabled" 0.0;
7648 inherit: "default" 0.0;
7654 program { name: "button_click";
7655 signal: "mouse,down,1";
7657 action: SIGNAL_EMIT "elm,action,press" "";
7658 after: "button_click_anim";
7660 program { name: "button_click_anim";
7661 action: STATE_SET "clicked" 0.0;
7662 target: "button_image";
7663 after: "text_clicked";
7665 program { name: "text_clicked";
7669 get_state(PART:"elm.text", st, 30, vl);
7670 if (!strcmp(st, "visible"))
7671 set_state(PART:"elm.text", "clicked", 0.0);
7674 program { name: "button_unpress";
7675 action: SIGNAL_EMIT "elm,action,unpress" "";
7677 program { name: "button_mouseout_clicked";
7678 signal: "mouse,up,1";
7683 get_state(PART:"elm.swallow.content", st, 30, vl);
7684 if (strcmp(st, "icononly"))
7686 emit("elm,action,default,text,set", "");
7687 set_state(PART:"elm.text", "visible", 0.0);
7689 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7690 set_state(PART:"button_image", "default", 0.0);
7692 after: button_unpress;
7694 program { name: "touch_snd";
7695 signal: "mouse,clicked,1";
7697 action: PLAY_SAMPLE "touch_sound" 1.0;
7698 after: button_unclick3;
7700 program { name: "button_unclick3";
7701 action: SIGNAL_EMIT "elm,action,click" "";
7703 program { name: "text_show";
7704 signal: "elm,state,text,visible";
7709 get_state(PART:"elm.swallow.content", st, 30, vl);
7710 if (!strcmp(st, "icononly"))
7712 set_state(PART:"elm.swallow.content", "visible", 0.0);
7713 set_state(PART:"padding_icon_text", "visible", 0.0);
7715 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7716 set_state(PART:"elm.text", "visible", 0.0);
7718 set_state(PART:"elm.text", "disabled_visible", 0.0);
7721 program { name: "text_hide";
7722 signal: "elm,state,text,hidden";
7727 get_state(PART:"elm.swallow.content", st, 30, vl);
7728 if (!strcmp(st, "visible"))
7730 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7731 set_state(PART:"padding_icon_text", "icononly", 0.0);
7733 set_state(PART:"elm.text", "default", 0.0);
7736 program { name: "icon_show";
7737 signal: "elm,state,icon,visible";
7742 get_state(PART:"elm.text", st, 30, vl);
7743 if (!strcmp(st, "visible"))
7745 set_state(PART:"elm.swallow.content", "visible", 0.0);
7746 set_state(PART:"padding_icon_text", "visible", 0.0);
7750 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7751 set_state(PART:"padding_icon_text", "icononly", 0.0);
7755 program { name: "icon_hide";
7756 signal: "elm,state,icon,hidden";
7758 action: STATE_SET "default" 0.0;
7759 target: "elm.swallow.content";
7760 target: "padding_icon_text";
7762 program { name: "disable";
7763 signal: "elm,state,disabled";
7765 action: STATE_SET "disabled" 0.0;
7766 target: "button_image";
7768 after: "disable_text";
7770 program { name: "disable_text";
7774 get_state(PART:"elm.text", st, 30, vl);
7775 if (!strcmp(st, "visible"))
7776 set_state(PART:"elm.text", "disabled_visible", 0.0);
7778 set_state(PART:"elm.text", "disabled", 0.0);
7779 set_int(button_state, BUTTON_STATE_DISABLED);
7782 program { name: "enable";
7783 signal: "elm,state,enabled";
7785 action: STATE_SET "default" 0.0;
7786 target: "button_image";
7788 after: "enable_text";
7790 program { name: "enable_text";
7794 get_state(PART:"elm.text", st, 30, vl);
7795 if (!strcmp(st, "disabled_visible"))
7796 set_state(PART:"elm.text", "visible", 0.0);
7798 set_state(PART:"elm.text", "default", 0.0);
7799 set_int(button_state, BUTTON_STATE_ENABLED);
7802 program { name: "focused";
7803 //signal: "elm,action,focus";
7805 action: STATE_SET "focused" 0.0;
7806 target: "button_image";
7809 program { name: "unfocused";
7810 //signal: "elm,action,unfocus";
7812 action: STATE_SET "default" 0.0;
7813 target: "button_image";
7814 after: "unfocus_text";
7816 program { name: "unfocus_text";
7817 action: STATE_SET "visible" 0.0;
7823 ///////////////////////////////////////////////////////////////////////////////////////
7824 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7825 group { name: "elm/button/base/contact/"style_name; \
7827 image: "00_contacts_circle_bg.png" COMP; \
7828 image: image_normal COMP; \
7829 image: image_press COMP; \
7832 part { name: "button_image"; \
7834 description { state: "default" 0.0; \
7835 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7836 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7837 image.normal: "00_contacts_circle_bg.png"; \
7838 color: 255 255 255 255; \
7841 state: "clicked" 0.0; \
7842 inherit: "default" 0.0; \
7843 image.normal: "00_contacts_circle_bg.png"; \
7846 state: "disabled" 0.0; \
7847 inherit: "default" 0.0; \
7848 color: 255 255 255 128; \
7851 part { name: "button_center_part"; \
7853 description { state: "default" 0.0; \
7854 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7855 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7856 image.normal: image_normal; \
7857 color: 255 255 255 255; \
7860 state: "clicked" 0.0; \
7861 inherit: "default" 0.0; \
7862 image.normal: image_press; \
7865 state: "disabled" 0.0; \
7866 inherit: "default" 0.0; \
7867 color: 255 255 255 128; \
7870 part { name: "over1"; \
7872 ignore_flags: ON_HOLD; \
7873 description { state: "default" 0.0; \
7877 part { name: "over2"; \
7879 description { state: "default" 0.0; \
7883 part { name: "disabler"; \
7885 description { state: "default" 0.0; \
7889 description { state: "disabled" 0.0; \
7890 inherit: "default" 0.0; \
7896 program { name: "button_click"; \
7897 signal: "mouse,down,1"; \
7899 action: SIGNAL_EMIT "elm,action,press" ""; \
7900 after: "button_click_anim"; \
7902 program { name: "button_click_anim"; \
7903 action: STATE_SET "clicked" 0.0; \
7904 target: "button_image"; \
7905 target: "button_center_part"; \
7907 program { name: "button_unclick"; \
7908 signal: "mouse,up,1"; \
7910 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7911 after: "button_unclick_anim"; \
7913 program { name: "button_unclick_anim"; \
7914 action: STATE_SET "default" 0.0; \
7915 target: "button_image"; \
7916 target: "button_center_part"; \
7918 program { name: "touch_snd"; \
7919 signal: "mouse,clicked,1"; \
7921 action: PLAY_SAMPLE "touch_sound" 1.0; \
7922 after: button_unclick3; \
7924 program { name: "button_unclick3"; \
7925 action: SIGNAL_EMIT "elm,action,click" ""; \
7927 program { name: "disable"; \
7928 signal: "elm,state,disabled"; \
7930 action: STATE_SET "disabled" 0.0; \
7931 target: "disabler"; \
7932 target: "button_image"; \
7933 target: "button_center_part"; \
7935 program { name: "enable"; \
7936 signal: "elm,state,enabled"; \
7938 action: STATE_SET "default" 0.0; \
7939 target: "disabler"; \
7940 target: "button_image"; \
7941 target: "button_center_part"; \
7946 ///////////////////////////////////////////////////////////////////////////////////////
7947 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7949 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7951 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7953 ///////////////////////////////////////////////////////////////////////////////////////
7954 group { name: "elm/button/base/contact";
7955 alias: "elm/button/base/text_only/contact";
7957 image: "00_contacts_button_bg.png" COMP;
7958 image: "00_contacts_button_bg_press.png" COMP;
7961 public button_state = BUTTON_STATE_ENABLED;
7964 part { name: "button_image";
7966 description { state: "default" 0.0;
7968 to_x: "padding.left";
7972 to_x: "padding.right";
7975 min: BUTTON_CONTACT_BG_MIN_INC;
7977 normal: "00_contacts_button_bg.png";
7978 border: BUTTON_CONTACT_BG_BORDER_INC;
7982 description { state: "clicked" 0.0;
7983 inherit: "default" 0.0;
7984 image.normal: "00_contacts_button_bg_press.png";
7986 description { state: "disabled" 0.0;
7987 inherit: "default" 0.0;
7990 description { state: "focused" 0.0;
7991 inherit: "default" 0.0;
7994 part { name: "padding.left";
7997 description { state: "default" 0.0;
7999 min: BUTTON_CONTACT_PADDING_MIN_INC;
8009 part { name: "padding.right";
8012 description { state: "default" 0.0;
8014 min: BUTTON_CONTACT_PADDING_MIN_INC;
8024 part { name: "elm.text";
8028 description { state: "default" 0.0;
8031 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8033 font: "SLP:style=Medium";
8034 size: BUTTON_CONTACT_FONT_SIZE_INC;
8036 text_class: "slp_medium";
8039 description { state: "visible" 0.0;
8040 inherit: "default" 0.0;
8044 description { state: "clicked" 0.0;
8045 inherit: "default" 0.0;
8048 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8050 description { state: "disabled" 0.0;
8051 inherit: "default" 0.0;
8054 description { state: "disabled_visible" 0.0;
8055 inherit: "default" 0.0;
8056 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8060 description { state: "focused" 0.0;
8061 inherit: "default" 0.0;
8064 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8067 part { name: "over1";
8069 description { state: "default" 0.0;
8070 rel2.relative: 1.0 0.5;
8073 part { name: "over2";
8075 ignore_flags: ON_HOLD;
8076 description { state: "default" 0.0;
8077 rel1.to: "button_image";
8078 rel2.to: "button_image";
8081 part { name: "over3";
8083 description { state: "default" 0.0;
8084 rel1.to: "button_image";
8085 rel2.to: "button_image";
8089 part { name: "disabler";
8091 description { state: "default" 0.0;
8092 rel1.to: "button_image";
8093 rel2.to: "button_image";
8097 description { state: "disabled" 0.0;
8098 inherit: "default" 0.0;
8104 program { name: "button_click";
8105 signal: "mouse,down,1";
8107 action: SIGNAL_EMIT "elm,action,press" "";
8108 after: "button_click_anim";
8110 program { name: "button_click_anim";
8111 action: STATE_SET "clicked" 0.0;
8112 target: "button_image";
8115 program { name: "button_unpress";
8116 action: SIGNAL_EMIT "elm,action,unpress" "";
8118 program { name: "button_mouseout_clicked";
8119 signal: "mouse,up,1";
8124 get_state(PART:"elm.text", st, 30, vl);
8125 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8127 emit("elm,action,default,text,set", "");
8128 set_state(PART:"elm.text", "visible", 0.0);
8130 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8131 set_state(PART:"button_image", "default", 0.0);
8133 after: button_unpress;
8135 program { name: "touch_snd";
8136 signal: "mouse,clicked,1";
8138 action: PLAY_SAMPLE "touch_sound" 1.0;
8139 after: button_unclick3;
8141 program { name: "button_unclick3";
8142 action: SIGNAL_EMIT "elm,action,click" "";
8144 program { name: "text_show";
8145 signal: "elm,state,text,visible";
8148 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8149 set_state(PART:"elm.text", "visible", 0.0);
8151 set_state(PART:"elm.text", "disabled_visible", 0.0);
8154 program { name: "text_hide";
8155 signal: "elm,state,text,hidden";
8157 action: STATE_SET "default" 0.0;
8160 program { name: "disable";
8161 signal: "elm,state,disabled";
8163 action: STATE_SET "disabled" 0.0;
8164 target: "button_image";
8166 after: "disable_text";
8168 program { name: "disable_text";
8172 get_state(PART:"elm.text", st, 30, vl);
8173 if (!strcmp(st, "visible"))
8174 set_state(PART:"elm.text", "disabled_visible", 0.0);
8176 set_state(PART:"elm.text", "disabled", 0.0);
8177 set_int(button_state, BUTTON_STATE_DISABLED);
8180 program { name: "enable";
8181 signal: "elm,state,enabled";
8183 action: STATE_SET "default" 0.0;
8184 target: "button_image";
8186 after: "enable_text";
8188 program { name: "enable_text";
8192 get_state(PART:"elm.text", st, 30, vl);
8193 if (!strcmp(st, "disabled_visible"))
8194 set_state(PART:"elm.text", "visible", 0.0);
8196 set_state(PART:"elm.text", "default", 0.0);
8197 set_int(button_state, BUTTON_STATE_ENABLED);
8200 program { name: "focused";
8201 //signal: "elm,action,focus";
8203 action: STATE_SET "focused" 0.0;
8204 target: "button_image";
8207 program { name: "unfocused";
8208 //signal: "elm,action,unfocus";
8210 action: STATE_SET "default" 0.0;
8211 target: "button_image";
8212 action: STATE_SET "visible" 0.0;
8218 ///////////////////////////////////////////////////////////////////////////////////////
8219 group { name: "elm/button/base/naviframe/back_btn/default";
8220 alias: "elm/button/base/naviframe/prev_btn/default";
8221 alias: "elm/button/base/naviframe/end_btn/default";
8223 image: "00_winset_toolbar_press.png" COMP;
8224 image: "00_winset_Back.png" COMP;
8227 public button_state = BUTTON_STATE_ENABLED;
8230 part { name: "button_image";
8232 description { state: "default" 0.0;
8233 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8234 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8237 description { state: "clicked" 0.0;
8238 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8239 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8241 normal: "00_winset_toolbar_press.png";
8242 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8245 description { state: "disabled" 0.0;
8246 inherit: "default" 0.0;
8247 color: 127 127 127 127;
8249 description { state: "focused" 0.0;
8250 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8251 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8253 normal: "00_winset_toolbar_press.png";
8254 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8258 part { name: "back_button";
8261 description { state: "default" 0.0;
8262 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8263 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8264 rel1.to: "button_image";
8265 rel2.to: "button_image";
8266 image.normal: "00_winset_Back.png";
8268 description { state: "clicked" 0.0;
8269 inherit: "default" 0.0;
8271 description { state: "disabled" 0.0;
8272 inherit: "default" 0.0;
8273 color: 127 127 127 127;
8276 part { name: "over2";
8279 ignore_flags: ON_HOLD;
8280 description { state: "default" 0.0;
8284 part { name: "over3";
8287 description { state: "default" 0.0;
8291 part { name: "disabler";
8293 description { state: "default" 0.0;
8297 description { state: "disabled" 0.0;
8298 inherit: "default" 0.0;
8304 program { name: "button_click";
8305 signal: "mouse,down,1";
8307 action: SIGNAL_EMIT "elm,action,press" "";
8308 after: "button_click_anim";
8310 program { name: "button_click_anim";
8311 action: STATE_SET "clicked" 0.0;
8312 target: "button_image";
8314 program { name: "button_unpress";
8315 action: SIGNAL_EMIT "elm,action,unpress" "";
8317 program { name: "button_mouseout_clicked";
8318 signal: "mouse,up,1";
8321 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8322 set_state(PART:"button_image", "default", 0.0);
8324 after: button_unpress;
8326 program { name: "touch_snd";
8327 signal: "mouse,clicked,1";
8329 action: PLAY_SAMPLE "touch_sound" 1.0;
8330 after: button_unclick3;
8332 program { name: "button_unclick3";
8333 action: SIGNAL_EMIT "elm,action,click" "";
8335 program { name: "disable";
8336 signal: "elm,state,disabled";
8338 action: STATE_SET "disabled" 0.0;
8339 target: "button_image";
8341 target: "back_button";
8342 after: "disable_button";
8344 program { name: "disable_button";
8346 set_int(button_state, BUTTON_STATE_DISABLED);
8349 program { name: "enable";
8350 signal: "elm,state,enabled";
8352 action: STATE_SET "default" 0.0;
8353 target: "button_image";
8355 target: "back_button";
8356 after: "enable_button";
8358 program { name: "enable_button";
8360 set_int(button_state, BUTTON_STATE_ENABLED);
8363 program { name: "focused";
8364 //signal: "elm,action,focus";
8366 action: STATE_SET "focused" 0.0;
8367 target: "button_image";
8369 program { name: "unfocused";
8370 //signal: "elm,action,unfocus";
8372 action: STATE_SET "default" 0.0;
8373 target: "button_image";
8378 ///////////////////////////////////////////////////////////////////////////////////////
8379 group { name: "elm/button/base/picker/prev/icon/default";
8381 image: "00_picker_btn_normal.png" COMP;
8382 image: "00_picker_btn_press.png" COMP;
8383 image: "00_picker_btn_normal_focus.png" COMP;
8384 image: "00_picker_arrow_left.png" COMP;
8385 image: "00_picker_arrow_left_press.png" COMP;
8388 public button_state = BUTTON_STATE_ENABLED;
8391 part { name: "button_image";
8393 description { state: "default" 0.0;
8394 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8395 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8397 normal: "00_picker_btn_normal.png";
8398 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8402 description { state: "clicked" 0.0;
8403 inherit: "default" 0.0;
8404 image.normal: "00_picker_btn_press.png";
8406 description { state: "disabled" 0.0;
8407 inherit: "default" 0.0;
8409 description { state: "focused" 0.0;
8410 inherit: "default" 0.0;
8411 image.normal: "00_picker_btn_normal_focus.png";
8414 part { name: "padding_left_top";
8418 description { state: "default" 0.0;
8420 rel2.relative: 0.0 0.0;
8421 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8426 part { name: "padding_right_bottom";
8430 description { state: "default" 0.0;
8432 rel1.relative: 1.0 1.0;
8433 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8438 part { name: "left_arrow";
8441 description { state: "default" 0.0;
8442 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8443 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8446 to: "padding_left_top";
8450 to: "padding_right_bottom";
8452 image.normal: "00_picker_arrow_left.png";
8454 description { state: "clicked" 0.0;
8455 inherit: "default" 0.0;
8456 image.normal: "00_picker_arrow_left_press.png";
8459 part { name: "over2";
8462 ignore_flags: ON_HOLD;
8463 description { state: "default" 0.0;
8467 part { name: "over3";
8470 description { state: "default" 0.0;
8474 part { name: "disabler";
8476 description { state: "default" 0.0;
8480 description { state: "disabled" 0.0;
8481 inherit: "default" 0.0;
8487 program { name: "button_click";
8488 signal: "mouse,down,1";
8490 action: SIGNAL_EMIT "elm,action,press" "";
8491 after: "button_click_anim";
8493 program { name: "button_click_anim";
8494 action: STATE_SET "clicked" 0.0;
8495 target: "button_image";
8497 program { name: "button_unpress";
8498 action: SIGNAL_EMIT "elm,action,unpress" "";
8500 program { name: "button_mouseout_clicked";
8501 signal: "mouse,up,1";
8504 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8505 set_state(PART:"button_image", "default", 0.0);
8507 after: button_unpress;
8509 program { name: "touch_snd";
8510 signal: "mouse,clicked,1";
8512 action: PLAY_SAMPLE "touch_sound" 1.0;
8513 after: button_unclick3;
8515 program { name: "button_unclick3";
8516 action: SIGNAL_EMIT "elm,action,click" "";
8518 program { name: "disable";
8519 signal: "elm,state,disabled";
8521 action: STATE_SET "disabled" 0.0;
8522 target: "button_image";
8524 after: "disable_button";
8526 program { name: "disable_button";
8528 set_int(button_state, BUTTON_STATE_DISABLED);
8531 program { name: "enable";
8532 signal: "elm,state,enabled";
8534 action: STATE_SET "default" 0.0;
8535 target: "button_image";
8537 after: "enable_button";
8539 program { name: "enable_button";
8541 set_int(button_state, BUTTON_STATE_ENABLED);
8544 program { name: "focused";
8545 //signal: "elm,action,focus";
8547 action: STATE_SET "focused" 0.0;
8548 target: "button_image";
8550 program { name: "unfocused";
8551 //signal: "elm,action,unfocus";
8553 action: STATE_SET "default" 0.0;
8554 target: "button_image";
8559 ///////////////////////////////////////////////////////////////////////////////////////
8560 group { name: "elm/button/base/picker/next/icon/default";
8562 image: "00_picker_btn_normal.png" COMP;
8563 image: "00_picker_btn_press.png" COMP;
8564 image: "00_picker_btn_normal_focus.png" COMP;
8565 image: "00_picker_arrow_right.png" COMP;
8566 image: "00_picker_arrow_right_press.png" COMP;
8569 public button_state = BUTTON_STATE_ENABLED;
8572 part { name: "button_image";
8574 description { state: "default" 0.0;
8575 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8576 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8578 normal: "00_picker_btn_normal.png";
8579 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8583 description { state: "clicked" 0.0;
8584 inherit: "default" 0.0;
8585 image.normal: "00_picker_btn_press.png";
8587 description { state: "disabled" 0.0;
8588 inherit: "default" 0.0;
8590 description { state: "focused" 0.0;
8591 inherit: "default" 0.0;
8592 image.normal: "00_picker_btn_normal_focus.png";
8595 part { name: "padding_left_top";
8599 description { state: "default" 0.0;
8601 rel2.relative: 0.0 0.0;
8602 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8607 part { name: "padding_right_bottom";
8611 description { state: "default" 0.0;
8613 rel1.relative: 1.0 1.0;
8614 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8619 part { name: "right_arrow";
8622 description { state: "default" 0.0;
8623 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8624 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8627 to: "padding_left_top";
8631 to: "padding_right_bottom";
8633 image.normal: "00_picker_arrow_right.png";
8635 description { state: "clicked" 0.0;
8636 inherit: "default" 0.0;
8637 image.normal: "00_picker_arrow_right_press.png";
8640 part { name: "over2";
8643 ignore_flags: ON_HOLD;
8644 description { state: "default" 0.0;
8648 part { name: "over3";
8651 description { state: "default" 0.0;
8655 part { name: "disabler";
8657 description { state: "default" 0.0;
8661 description { state: "disabled" 0.0;
8662 inherit: "default" 0.0;
8668 program { name: "button_click";
8669 signal: "mouse,down,1";
8671 action: SIGNAL_EMIT "elm,action,press" "";
8672 after: "button_click_anim";
8674 program { name: "button_click_anim";
8675 action: STATE_SET "clicked" 0.0;
8676 target: "button_image";
8678 program { name: "button_unpress";
8679 action: SIGNAL_EMIT "elm,action,unpress" "";
8681 program { name: "button_mouseout_clicked";
8682 signal: "mouse,up,1";
8685 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8686 set_state(PART:"button_image", "default", 0.0);
8688 after: button_unpress;
8690 program { name: "touch_snd";
8691 signal: "mouse,clicked,1";
8693 action: PLAY_SAMPLE "touch_sound" 1.0;
8694 after: button_unclick3;
8696 program { name: "button_unclick3";
8697 action: SIGNAL_EMIT "elm,action,click" "";
8699 program { name: "disable";
8700 signal: "elm,state,disabled";
8702 action: STATE_SET "disabled" 0.0;
8703 target: "button_image";
8705 after: "disable_button";
8707 program { name: "disable_button";
8709 set_int(button_state, BUTTON_STATE_DISABLED);
8712 program { name: "enable";
8713 signal: "elm,state,enabled";
8715 action: STATE_SET "default" 0.0;
8716 target: "button_image";
8718 after: "enable_button";
8720 program { name: "enable_button";
8722 set_int(button_state, BUTTON_STATE_ENABLED);
8725 program { name: "focused";
8726 //signal: "elm,action,focus";
8728 action: STATE_SET "focused" 0.0;
8729 target: "button_image";
8731 program { name: "unfocused";
8732 //signal: "elm,action,unfocus";
8734 action: STATE_SET "default" 0.0;
8735 target: "button_image";
8740 ///////////////////////////////////////////////////////////////////////////////////////
8741 group { name: "elm/button/base/naviframe_control/default";
8742 alias: "elm/button/base/naviframe_control/center";
8744 public button_state = BUTTON_STATE_ENABLED;
8747 image: "00_Option_header_bt.png" COMP;
8748 image: "00_Option_header_bt_dim.png" COMP;
8749 image: "00_Option_header_bt_press.png" COMP;
8750 image: "00_Option_header_bt_focus.png" COMP;
8753 part { name: "button_image";
8755 description { state: "default" 0.0;
8756 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8761 normal: "00_Option_header_bt.png";
8762 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8764 color: 255 255 255 255;
8766 description { state: "disabled" 0.0;
8767 inherit: "default" 0.0;
8768 image.normal: "00_Option_header_bt_dim.png";
8770 description { state: "clicked" 0.0;
8771 inherit: "default" 0.0;
8772 image.normal: "00_Option_header_bt_press.png";
8774 description { state: "focused" 0.0;
8775 inherit: "default" 0.0;
8776 image.normal: "00_Option_header_bt_focus.png";
8779 part { name: "padding_left_top";
8783 description { state: "default" 0.0;
8785 rel2.relative: 0.0 0.0;
8786 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8791 part { name: "padding_right_bottom";
8795 description { state: "default" 0.0;
8797 rel1.relative: 1.0 1.0;
8798 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8803 part { name: "icon_rect";
8807 description { state: "default" 0.0;
8812 to: "padding_left_top";
8816 to_x: "padding_left_top";
8817 to_y: "padding_right_bottom";
8822 description { state: "visible" 0.0;
8823 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8827 to: "padding_left_top";
8831 to_x: "padding_left_top";
8832 to_y: "padding_right_bottom";
8837 description { state: "icononly" 0.0;
8838 inherit: "default" 0.0;
8841 part { name: "padding_after_icon";
8845 description { state: "default" 0.0; //when only icon or no icon is there
8851 rel2.to: "icon_rect";
8856 description { state: "visible" 0.0;
8862 rel2.to: "icon_rect";
8864 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8867 description { state: "icononly" 0.0;
8868 inherit: "default" 0.0;
8871 part { name: "padding_before_text";
8875 description { state: "default" 0.0; //when only icon or no icon is there
8880 to_y: "padding_left_top";
8885 to_y: "padding_right_bottom";
8888 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8892 part { name: "elm.swallow.content";
8896 description { state: "default" 0.0;
8901 to: "padding_left_top";
8905 to_x: "padding_left_top";
8906 to_y: "padding_right_bottom";
8910 description { state: "visible" 0.0;
8912 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8913 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8917 to_x: "padding_before_text";
8918 to_y: "padding_left_top";
8922 to_x: "padding_before_text";
8923 to_y: "padding_right_bottom";
8926 aspect_preference: VERTICAL;
8928 description { state: "icononly" 0.0;
8929 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8930 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8933 to: "padding_left_top";
8937 to: "padding_right_bottom";
8940 aspect_preference: VERTICAL;
8943 part { name: "elm.text";
8948 description { state: "default" 0.0;
8952 to_x: "padding_after_icon";
8953 to_y: "padding_left_top";
8957 to: "padding_right_bottom";
8959 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8961 font: "SLP:style=Medium";
8962 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8965 text_class: "slp_medium";
8968 description { state: "visible" 0.0;
8969 inherit: "default" 0.0;
8972 description { state: "clicked" 0.0;
8973 inherit: "default" 0.0;
8977 description { state: "focused" 0.0;
8978 inherit: "default" 0.0;
8981 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8984 part { name: "over2";
8987 ignore_flags: ON_HOLD;
8988 description { state: "default" 0.0;
8992 part { name: "over3";
8995 description { state: "default" 0.0;
8999 part { name: "clipper";
9001 description { state: "default" 0.0;
9002 color: 255 255 255 255;
9004 description { state: "disabled" 0.0;
9005 color: 255 255 255 127;
9008 part { name: "disabler";
9010 description { state: "default" 0.0;
9014 description { state: "disabled" 0.0;
9015 inherit: "default" 0.0;
9021 program { name: "button_click";
9022 signal: "mouse,down,1";
9024 action: SIGNAL_EMIT "elm,action,press" "";
9025 after: "button_click_anim";
9027 program { name: "button_click_anim";
9028 action: STATE_SET "clicked" 0.0;
9029 target: "button_image";
9030 after: "text_clicked";
9032 program { name: "text_clicked";
9036 get_state(PART:"elm.text", st, 30, vl);
9037 if (!strcmp(st, "visible"))
9038 set_state(PART:"elm.text", "clicked", 0.0);
9041 program { name: "button_unpress";
9042 action: SIGNAL_EMIT "elm,action,unpress" "";
9044 program { name: "button_mouseout_clicked";
9045 signal: "mouse,up,1";
9050 get_state(PART:"elm.swallow.content", st, 30, vl);
9051 if (strcmp(st, "icononly"))
9053 emit("elm,action,default,text,set", "");
9054 set_state(PART:"elm.text", "visible", 0.0);
9056 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9057 set_state(PART:"button_image", "default", 0.0);
9059 after: button_unpress;
9061 program { name: "touch_snd";
9062 signal: "mouse,clicked,1";
9064 action: PLAY_SAMPLE "touch_sound" 1.0;
9065 after: button_unclick3;
9067 program { name: "button_unclick3";
9068 action: SIGNAL_EMIT "elm,action,click" "";
9070 program { name: "text_show";
9071 signal: "elm,state,text,visible";
9076 get_state(PART:"elm.swallow.content", st, 30, vl);
9077 if (!strcmp(st, "icononly"))
9079 set_state(PART:"elm.swallow.content", "visible", 0.0);
9080 set_state(PART:"icon_rect", "visible", 0.0);
9081 set_state(PART:"padding_after_icon", "visible", 0.0);
9083 set_state(PART:"elm.text", "visible", 0.0);
9086 program { name: "text_hide";
9087 signal: "elm,state,text,hidden";
9092 get_state(PART:"elm.swallow.content", st, 30, vl);
9093 if (!strcmp(st, "visible"))
9095 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9096 set_state(PART:"icon_rect", "icononly", 0.0);
9097 set_state(PART:"padding_after_icon", "icononly", 0.0);
9099 set_state(PART:"elm.text", "default", 0.0);
9102 program { name: "icon_show";
9103 signal: "elm,state,icon,visible";
9108 get_state(PART:"elm.text", st, 30, vl);
9109 if (!strcmp(st, "visible"))
9111 set_state(PART:"elm.swallow.content", "visible", 0.0);
9112 set_state(PART:"icon_rect", "visible", 0.0);
9113 set_state(PART:"padding_after_icon", "visible", 0.0);
9117 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9118 set_state(PART:"icon_rect", "icononly", 0.0);
9119 set_state(PART:"padding_after_icon", "icononly", 0.0);
9123 program { name: "icon_hide";
9124 signal: "elm,state,icon,hidden";
9126 action: STATE_SET "default" 0.0;
9127 target: "elm.swallow.content";
9128 target: "icon_rect";
9129 target: "padding_after_icon";
9131 program { name: "disable";
9132 signal: "elm,state,disabled";
9134 action: STATE_SET "disabled" 0.0;
9135 target: "button_image";
9138 after: "disable_text";
9140 program { name: "disable_text";
9144 set_int(button_state, BUTTON_STATE_DISABLED);
9145 get_state(PART:"elm.text", st, 30, vl);
9146 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9147 set_state(PART:"elm.text", "visible", 0.0);
9150 program { name: "enable";
9151 signal: "elm,state,enabled";
9153 action: STATE_SET "default" 0.0;
9154 target: "button_image";
9157 after: "enable_text";
9159 program { name: "enable_text";
9163 set_int(button_state, BUTTON_STATE_ENABLED);
9164 get_state(PART:"elm.text", st, 30, vl);
9165 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9166 set_state(PART:"elm.text", "visible", 0.0);
9169 program { name: "focused";
9170 //signal: "elm,action,focus";
9172 action: STATE_SET "focused" 0.0;
9173 target: "button_image";
9176 program { name: "unfocused";
9177 //signal: "elm,action,unfocus";
9179 action: STATE_SET "default" 0.0;
9180 target: "button_image";
9181 after: "unfocus_text";
9183 program { name: "unfocus_text";
9184 action: STATE_SET "visible" 0.0;
9190 ///////////////////////////////////////////////////////////////////////////////////////
9191 group { name: "elm/button/base/naviframe_control/multiline";
9193 public button_state = BUTTON_STATE_ENABLED;
9196 image: "00_Option_header_bt.png" COMP;
9197 image: "00_Option_header_bt_dim.png" COMP;
9198 image: "00_Option_header_bt_press.png" COMP;
9199 image: "00_Option_header_bt_focus.png" COMP;
9202 style { name: "btn_multiline_naviframe_controlbar_style";
9203 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9210 part { name: "button_image";
9212 description { state: "default" 0.0;
9213 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9217 normal: "00_Option_header_bt.png";
9218 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9220 color: 255 255 255 255;
9222 description { state: "disabled" 0.0;
9223 inherit: "default" 0.0;
9224 image.normal: "00_Option_header_bt_dim.png";
9226 description { state: "clicked" 0.0;
9227 inherit: "default" 0.0;
9228 image.normal: "00_Option_header_bt_press.png";
9230 description { state: "focused" 0.0;
9231 inherit: "default" 0.0;
9232 image.normal: "00_Option_header_bt_focus.png";
9235 part { name: "padding_left_top";
9239 description { state: "default" 0.0;
9241 rel2.relative: 0.0 0.0;
9242 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9247 part { name: "padding_right_bottom";
9251 description { state: "default" 0.0;
9253 rel1.relative: 1.0 1.0;
9254 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9259 part { name: "icon_rect";
9263 description { state: "default" 0.0;
9269 to_x: "elm.swallow.content";
9270 to_y: "padding_left_top";
9274 to_x: "elm.swallow.content";
9275 to_y: "padding_right_bottom";
9280 part { name: "padding_icon_text";
9284 description { state: "default" 0.0; //when only icon or no icon is there
9298 description { state: "visible" 0.0;
9299 inherit: "default" 0.0;
9300 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9310 description { state: "icononly" 0.0;
9311 inherit: "default" 0.0;
9314 part { name: "elm.swallow.content";
9318 description { state: "default" 0.0;
9323 to: "padding_left_top";
9327 to_x: "padding_left_top";
9328 to_y: "padding_right_bottom";
9332 description { state: "visible" 0.0;
9334 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9335 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9339 to: "padding_left_top";
9343 to_x: "padding_left_top";
9344 to_y: "padding_right_bottom";
9347 description { state: "icononly" 0.0;
9348 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9349 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9352 to: "padding_left_top";
9356 to: "padding_right_bottom";
9360 part { name: "elm.text";
9365 description { state: "default" 0.0;
9369 to_x: "padding_icon_text";
9370 to_y: "padding_left_top";
9374 to: "padding_right_bottom";
9376 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9378 style: "btn_multiline_naviframe_controlbar_style";
9383 description { state: "visible" 0.0;
9384 inherit: "default" 0.0;
9388 description { state: "clicked" 0.0;
9389 inherit: "default" 0.0;
9393 description { state: "focused" 0.0;
9394 inherit: "default" 0.0;
9397 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9400 part { name: "over2";
9403 ignore_flags: ON_HOLD;
9404 description { state: "default" 0.0;
9408 part { name: "over3";
9411 description { state: "default" 0.0;
9415 part { name: "clipper";
9417 description { state: "default" 0.0;
9418 color: 255 255 255 255;
9420 description { state: "disabled" 0.0;
9421 color: 255 255 255 127;
9424 part { name: "disabler";
9426 description { state: "default" 0.0;
9430 description { state: "disabled" 0.0;
9431 inherit: "default" 0.0;
9437 program { name: "button_click";
9438 signal: "mouse,down,1";
9440 action: SIGNAL_EMIT "elm,action,press" "";
9441 after: "button_click_anim";
9443 program { name: "button_click_anim";
9444 action: STATE_SET "clicked" 0.0;
9445 target: "button_image";
9446 after: "text_clicked";
9448 program { name: "text_clicked";
9452 get_state(PART:"elm.text", st, 30, vl);
9453 if (!strcmp(st, "visible"))
9454 set_state(PART:"elm.text", "clicked", 0.0);
9457 program { name: "button_unpress";
9458 action: SIGNAL_EMIT "elm,action,unpress" "";
9460 program { name: "button_mouseout_clicked";
9461 signal: "mouse,up,1";
9466 get_state(PART:"elm.swallow.content", st, 30, vl);
9467 if (strcmp(st, "icononly"))
9469 emit("elm,action,default,text,set", "");
9470 set_state(PART:"elm.text", "visible", 0.0);
9472 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9473 set_state(PART:"button_image", "default", 0.0);
9475 after: button_unpress;
9477 program { name: "touch_snd";
9478 signal: "mouse,clicked,1";
9480 action: PLAY_SAMPLE "touch_sound" 1.0;
9481 after: button_unclick3;
9483 program { name: "button_unclick3";
9484 action: SIGNAL_EMIT "elm,action,click" "";
9486 program { name: "text_show";
9487 signal: "elm,state,text,visible";
9492 get_state(PART:"elm.swallow.content", st, 30, vl);
9493 if (!strcmp(st, "icononly"))
9495 set_state(PART:"elm.swallow.content", "visible", 0.0);
9496 set_state(PART:"padding_icon_text", "visible", 0.0);
9498 set_state(PART:"elm.text", "visible", 0.0);
9501 program { name: "text_hide";
9502 signal: "elm,state,text,hidden";
9507 get_state(PART:"elm.swallow.content", st, 30, vl);
9508 if (!strcmp(st, "visible"))
9510 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9511 set_state(PART:"padding_icon_text", "icononly", 0.0);
9513 set_state(PART:"elm.text", "default", 0.0);
9516 program { name: "icon_show";
9517 signal: "elm,state,icon,visible";
9522 get_state(PART:"elm.text", st, 30, vl);
9523 if (!strcmp(st, "visible"))
9525 set_state(PART:"elm.swallow.content", "visible", 0.0);
9526 set_state(PART:"padding_icon_text", "visible", 0.0);
9530 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9531 set_state(PART:"padding_icon_text", "icononly", 0.0);
9535 program { name: "icon_hide";
9536 signal: "elm,state,icon,hidden";
9538 action: STATE_SET "default" 0.0;
9539 target: "elm.swallow.content";
9540 target: "padding_icon_text";
9542 program { name: "disable";
9543 signal: "elm,state,disabled";
9545 action: STATE_SET "disabled" 0.0;
9546 target: "button_image";
9549 after: "disable_text";
9551 program { name: "disable_text";
9555 set_int(button_state, BUTTON_STATE_DISABLED);
9556 get_state(PART:"elm.text", st, 30, vl);
9557 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9558 set_state(PART:"elm.text", "visible", 0.0);
9561 program { name: "enable";
9562 signal: "elm,state,enabled";
9564 action: STATE_SET "default" 0.0;
9565 target: "button_image";
9568 after: "enable_text";
9570 program { name: "enable_text";
9574 set_int(button_state, BUTTON_STATE_ENABLED);
9575 get_state(PART:"elm.text", st, 30, vl);
9576 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9577 set_state(PART:"elm.text", "visible", 0.0);
9580 program { name: "focused";
9581 //signal: "elm,action,focus";
9583 action: STATE_SET "focused" 0.0;
9584 target: "button_image";
9587 program { name: "unfocused";
9588 //signal: "elm,action,unfocus";
9590 action: STATE_SET "default" 0.0;
9591 target: "button_image";
9592 after: "unfocus_text";
9594 program { name: "unfocus_text";
9595 action: STATE_SET "visible" 0.0;
9601 /////////////////////////////////////////////////////////////
9602 group { name: "elm/button/base/naviframe/title1/default";
9604 image: "00_winset_Back_btn_normal.png" COMP;
9605 image: "00_winset_Back_btn_press.png" COMP;
9606 image: "00_winset_Back_btn_normal_focus.png" COMP;
9609 public button_state = BUTTON_STATE_ENABLED;
9612 part { name: "button_image";
9614 description { state: "default" 0.0;
9615 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9617 normal: "00_winset_Back_btn_normal.png";
9618 border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9622 description { state: "clicked" 0.0;
9623 inherit: "default" 0.0;
9624 image.normal: "00_winset_Back_btn_press.png";
9626 description { state: "disabled" 0.0;
9627 inherit: "default" 0.0;
9628 color: 127 127 127 127;
9630 description { state: "focused" 0.0;
9631 inherit: "default" 0.0;
9632 image.normal: "00_winset_Back_btn_normal_focus.png";
9635 part { name: "padding_left_top";
9639 description { state: "default" 0.0;
9641 rel2.relative: 0.0 0.0;
9642 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9651 description { state: "default" 0.0;
9652 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9655 description { state: "visible" 0.0;
9656 inherit: "default" 0.0;
9657 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9659 description { state: "icononly" 0.0;
9660 inherit: "default" 0.0;
9661 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9664 part { name: "padding_right_bottom";
9668 description { state: "default" 0.0;
9670 rel1.relative: 1.0 1.0;
9671 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9676 part { name: "icon_rect";
9680 description { state: "default" 0.0;
9686 to: "padding_left_top";
9690 to_x: "padding_left_top";
9691 to_y: "padding_right_bottom";
9695 description { state: "visible" 0.0;
9697 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9698 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9702 to: "padding_left_top";
9706 to_x: "padding_left_top";
9707 to_y: "padding_right_bottom";
9711 description { state: "icononly" 0.0;
9712 inherit: "default" 0.0;
9715 part { name: "padding_after_icon";
9719 description { state: "default" 0.0; //when only icon or no icon is there
9725 rel2.to: "icon_rect";
9730 description { state: "visible" 0.0;
9737 rel2.to: "icon_rect";
9739 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9741 description { state: "icononly" 0.0;
9742 inherit: "default" 0.0;
9745 part { name: "padding_before_text";
9749 description { state: "default" 0.0; //when only icon or no icon is there
9754 to_y: "padding_left_top";
9759 to_y: "padding_right_bottom";
9762 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9766 part { name: "elm.swallow.content";
9770 description { state: "default" 0.0;
9775 to: "padding_left_top";
9779 to_x: "padding_left_top";
9780 to_y: "padding_right_bottom";
9784 description { state: "visible" 0.0;
9786 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9787 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9791 to_x: "padding_before_text";
9792 to_y: "padding_left_top";
9796 to_x: "padding_before_text";
9797 to_y: "padding_right_bottom";
9800 description { state: "icononly" 0.0;
9801 min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9802 max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9805 part { name: "elm.text";
9810 description { state: "default" 0.0;
9814 to_x: "padding_after_icon";
9815 to_y: "padding_left_top";
9819 to: "padding_right_bottom";
9821 color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9823 font: "SLP:style=Medium";
9824 size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9827 text_class: "slp_medium";
9830 description { state: "visible" 0.0;
9831 inherit: "default" 0.0;
9834 description { state: "clicked" 0.0;
9835 inherit: "default" 0.0;
9837 color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9839 description { state: "disabled" 0.0;
9840 inherit: "default" 0.0;
9843 description { state: "disabled_visible" 0.0;
9844 inherit: "default" 0.0;
9845 color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9848 description { state: "focused" 0.0;
9849 inherit: "default" 0.0;
9851 color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9854 part { name: "over2";
9857 ignore_flags: ON_HOLD;
9858 description { state: "default" 0.0;
9862 part { name: "over3";
9865 description { state: "default" 0.0;
9869 part { name: "clipper";
9871 description { state: "default" 0.0;
9872 color: 255 255 255 255;
9875 part { name: "disabler";
9877 description { state: "default" 0.0;
9881 description { state: "disabled" 0.0;
9882 inherit: "default" 0.0;
9888 program { name: "button_click";
9889 signal: "mouse,down,1";
9891 action: SIGNAL_EMIT "elm,action,press" "";
9892 after: "button_click_anim";
9894 program { name: "button_click_anim";
9895 action: STATE_SET "clicked" 0.0;
9896 target: "button_image";
9897 after: "text_clicked";
9899 program { name: "text_clicked";
9903 get_state(PART:"elm.text", st, 30, vl);
9904 if (!strcmp(st, "visible"))
9905 set_state(PART:"elm.text", "clicked", 0.0);
9908 program { name: "button_unpress";
9909 action: SIGNAL_EMIT "elm,action,unpress" "";
9911 program { name: "button_mouseout_clicked";
9912 signal: "mouse,up,1";
9917 get_state(PART:"elm.swallow.content", st, 30, vl);
9918 if (strcmp(st, "icononly"))
9920 emit("elm,action,default,text,set", "");
9921 set_state(PART:"elm.text", "visible", 0.0);
9923 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9924 set_state(PART:"button_image", "default", 0.0);
9926 after: button_unpress;
9928 program { name: "touch_snd";
9929 signal: "mouse,clicked,1";
9931 action: PLAY_SAMPLE "touch_sound" 1.0;
9932 after: button_unclick3;
9934 program { name: "button_unclick3";
9935 action: SIGNAL_EMIT "elm,action,click" "";
9937 program { name: "text_show";
9938 signal: "elm,state,text,visible";
9943 get_state(PART:"elm.swallow.content", st, 30, vl);
9944 if (!strcmp(st, "icononly"))
9946 set_state(PART:"elm.swallow.content", "visible", 0.0);
9947 set_state(PART:"icon_rect", "visible", 0.0);
9948 set_state(PART:"padding_after_icon", "visible", 0.0);
9949 set_state(PART:"bg", "visible", 0.0);
9951 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9952 set_state(PART:"elm.text", "visible", 0.0);
9954 set_state(PART:"elm.text", "disabled_visible", 0.0);
9957 program { name: "text_hide";
9958 signal: "elm,state,text,hidden";
9963 get_state(PART:"elm.swallow.content", st, 30, vl);
9964 if (!strcmp(st, "visible"))
9966 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9967 set_state(PART:"icon_rect", "icononly", 0.0);
9968 set_state(PART:"padding_after_icon", "icononly", 0.0);
9969 set_state(PART:"bg", "icononly", 0.0);
9971 set_state(PART:"elm.text", "default", 0.0);
9974 program { name: "icon_show";
9975 signal: "elm,state,icon,visible";
9980 get_state(PART:"elm.text", st, 30, vl);
9981 if (!strcmp(st, "visible"))
9983 set_state(PART:"elm.swallow.content", "visible", 0.0);
9984 set_state(PART:"icon_rect", "visible", 0.0);
9985 set_state(PART:"padding_after_icon", "visible", 0.0);
9986 set_state(PART:"bg", "visible", 0.0);
9990 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9991 set_state(PART:"icon_rect", "icononly", 0.0);
9992 set_state(PART:"padding_after_icon", "icononly", 0.0);
9993 set_state(PART:"bg", "icononly", 0.0);
9997 program { name: "icon_hide";
9998 signal: "elm,state,icon,hidden";
10000 action: STATE_SET "default" 0.0;
10001 target: "elm.swallow.content";
10002 target: "padding_after_icon";
10003 target: "icon_rect";
10006 program { name: "disable";
10007 signal: "elm,state,disabled";
10009 action: STATE_SET "disabled" 0.0;
10010 target: "button_image";
10011 target: "disabler";
10012 after: "disable_text";
10014 program { name: "disable_text";
10018 get_state(PART:"elm.text", st, 30, vl);
10019 if (!strcmp(st, "visible"))
10020 set_state(PART:"elm.text", "disabled_visible", 0.0);
10022 set_state(PART:"elm.text", "disabled", 0.0);
10023 set_int(button_state, BUTTON_STATE_DISABLED);
10026 program { name: "enable";
10027 signal: "elm,state,enabled";
10029 action: STATE_SET "default" 0.0;
10030 target: "button_image";
10031 target: "disabler";
10032 after: "enable_text";
10034 program { name: "enable_text";
10038 get_state(PART:"elm.text", st, 30, vl);
10039 if (!strcmp(st, "disabled_visible"))
10040 set_state(PART:"elm.text", "visible", 0.0);
10042 set_state(PART:"elm.text", "default", 0.0);
10043 set_int(button_state, BUTTON_STATE_ENABLED);
10046 program { name: "focused";
10047 //signal: "elm,action,focus";
10049 action: STATE_SET "focused" 0.0;
10050 target: "button_image";
10051 target: "elm.text";
10053 program { name: "unfocused";
10054 //signal: "elm,action,unfocus";
10056 action: STATE_SET "default" 0.0;
10057 target: "button_image";
10058 after: "unfocus_text";
10060 program { name: "unfocus_text";
10061 action: STATE_SET "visible" 0.0;
10062 target: "elm.text";
10067 //////////////////////////////////////////////////////////////
10068 group { name: "elm/button/base/naviframe/title/default";
10070 public button_state = BUTTON_STATE_ENABLED;
10073 image: "00_title_btn_bg_press.png" COMP;
10076 style { name: "btn_naviframe_style";
10077 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";
10084 part { name: "button_image";
10086 description { state: "default" 0.0;
10087 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10088 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10091 description { state: "clicked" 0.0;
10092 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10093 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10095 normal: "00_title_btn_bg_press.png";
10096 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
10100 description { state: "disabled" 0.0;
10101 inherit: "default" 0.0;
10103 description { state: "focused" 0.0;
10104 inherit: "default" 0.0;
10107 part { name: "padding_left_top";
10111 description { state: "default" 0.0;
10113 rel2.relative: 0.0 0.0;
10114 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10119 part { name: "padding_right_bottom";
10123 description { state: "default" 0.0;
10125 rel1.relative: 1.0 1.0;
10126 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10131 part { name: "icon_rect";
10135 description { state: "default" 0.0;
10141 to: "padding_left_top";
10145 to_x: "padding_left_top";
10146 to_y: "padding_right_bottom";
10150 description { state: "visible" 0.0;
10152 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10153 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10157 to: "padding_left_top";
10161 to_x: "padding_left_top";
10162 to_y: "padding_right_bottom";
10166 description { state: "icononly" 0.0;
10167 inherit: "default" 0.0;
10170 part { name: "padding_after_icon";
10174 description { state: "default" 0.0; //when only icon or no icon is there
10180 rel2.to: "icon_rect";
10185 description { state: "visible" 0.0;
10192 rel2.to: "icon_rect";
10194 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10196 description { state: "icononly" 0.0;
10197 inherit: "default" 0.0;
10200 part { name: "padding_before_text";
10204 description { state: "default" 0.0; //when only icon or no icon is there
10209 to_y: "padding_left_top";
10214 to_y: "padding_right_bottom";
10217 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10221 part { name: "elm.swallow.content";
10224 clip_to: "clipper";
10225 description { state: "default" 0.0;
10230 to: "padding_left_top";
10234 to_x: "padding_left_top";
10235 to_y: "padding_right_bottom";
10239 description { state: "visible" 0.0;
10241 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10242 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10246 to_x: "padding_before_text";
10247 to_y: "padding_left_top";
10251 to_x: "padding_before_text";
10252 to_y: "padding_right_bottom";
10255 description { state: "icononly" 0.0;
10256 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10257 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10260 part { name: "elm.text";
10264 clip_to: "clipper";
10265 description { state: "default" 0.0;
10269 to_x: "padding_after_icon";
10270 to_y: "padding_left_top";
10274 to: "padding_right_bottom";
10276 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
10278 style: "btn_naviframe_style";
10283 description { state: "visible" 0.0;
10284 inherit: "default" 0.0;
10287 description { state: "clicked" 0.0;
10288 inherit: "default" 0.0;
10290 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
10292 description { state: "disabled" 0.0;
10293 inherit: "default" 0.0;
10296 description { state: "disabled_visible" 0.0;
10297 inherit: "default" 0.0;
10298 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
10301 description { state: "focused" 0.0;
10302 inherit: "default" 0.0;
10304 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
10307 part { name: "over2";
10310 ignore_flags: ON_HOLD;
10311 description { state: "default" 0.0;
10315 part { name: "over3";
10318 description { state: "default" 0.0;
10322 part { name: "clipper";
10324 description { state: "default" 0.0;
10325 color: 255 255 255 255;
10328 part { name: "disabler";
10330 description { state: "default" 0.0;
10334 description { state: "disabled" 0.0;
10335 inherit: "default" 0.0;
10341 program { name: "button_click";
10342 signal: "mouse,down,1";
10344 action: SIGNAL_EMIT "elm,action,press" "";
10345 after: "button_click_anim";
10347 program { name: "button_click_anim";
10348 action: STATE_SET "clicked" 0.0;
10349 target: "button_image";
10350 after: "text_clicked";
10352 program { name: "text_clicked";
10356 get_state(PART:"elm.text", st, 30, vl);
10357 if (!strcmp(st, "visible"))
10358 set_state(PART:"elm.text", "clicked", 0.0);
10361 program { name: "button_unpress";
10362 action: SIGNAL_EMIT "elm,action,unpress" "";
10364 program { name: "button_mouseout_clicked";
10365 signal: "mouse,up,1";
10370 get_state(PART:"elm.swallow.content", st, 30, vl);
10371 if (strcmp(st, "icononly"))
10373 emit("elm,action,default,text,set", "");
10374 set_state(PART:"elm.text", "visible", 0.0);
10376 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10377 set_state(PART:"button_image", "default", 0.0);
10379 after: button_unpress;
10381 program { name: "touch_snd";
10382 signal: "mouse,clicked,1";
10384 action: PLAY_SAMPLE "touch_sound" 1.0;
10385 after: button_unclick3;
10387 program { name: "button_unclick3";
10388 action: SIGNAL_EMIT "elm,action,click" "";
10390 program { name: "text_show";
10391 signal: "elm,state,text,visible";
10396 get_state(PART:"elm.swallow.content", st, 30, vl);
10397 if (!strcmp(st, "icononly"))
10399 set_state(PART:"elm.swallow.content", "visible", 0.0);
10400 set_state(PART:"icon_rect", "visible", 0.0);
10401 set_state(PART:"padding_after_icon", "visible", 0.0);
10403 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10404 set_state(PART:"elm.text", "visible", 0.0);
10406 set_state(PART:"elm.text", "disabled_visible", 0.0);
10409 program { name: "text_hide";
10410 signal: "elm,state,text,hidden";
10415 get_state(PART:"elm.swallow.content", st, 30, vl);
10416 if (!strcmp(st, "visible"))
10418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10419 set_state(PART:"icon_rect", "icononly", 0.0);
10420 set_state(PART:"padding_after_icon", "icononly", 0.0);
10422 set_state(PART:"elm.text", "default", 0.0);
10425 program { name: "icon_show";
10426 signal: "elm,state,icon,visible";
10431 get_state(PART:"elm.text", st, 30, vl);
10432 if (!strcmp(st, "visible"))
10434 set_state(PART:"elm.swallow.content", "visible", 0.0);
10435 set_state(PART:"icon_rect", "visible", 0.0);
10436 set_state(PART:"padding_after_icon", "visible", 0.0);
10440 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10441 set_state(PART:"icon_rect", "icononly", 0.0);
10442 set_state(PART:"padding_after_icon", "icononly", 0.0);
10446 program { name: "icon_hide";
10447 signal: "elm,state,icon,hidden";
10449 action: STATE_SET "default" 0.0;
10450 target: "elm.swallow.content";
10451 target: "padding_after_icon";
10452 target: "icon_rect";
10454 program { name: "disable";
10455 signal: "elm,state,disabled";
10457 action: STATE_SET "disabled" 0.0;
10458 target: "button_image";
10459 target: "disabler";
10460 after: "disable_text";
10462 program { name: "disable_text";
10466 get_state(PART:"elm.text", st, 30, vl);
10467 if (!strcmp(st, "visible"))
10468 set_state(PART:"elm.text", "disabled_visible", 0.0);
10470 set_state(PART:"elm.text", "disabled", 0.0);
10471 set_int(button_state, BUTTON_STATE_DISABLED);
10474 program { name: "enable";
10475 signal: "elm,state,enabled";
10477 action: STATE_SET "default" 0.0;
10478 target: "button_image";
10479 target: "disabler";
10480 after: "enable_text";
10482 program { name: "enable_text";
10486 get_state(PART:"elm.text", st, 30, vl);
10487 if (!strcmp(st, "disabled_visible"))
10488 set_state(PART:"elm.text", "visible", 0.0);
10490 set_state(PART:"elm.text", "default", 0.0);
10491 set_int(button_state, BUTTON_STATE_ENABLED);
10494 program { name: "focused";
10495 //signal: "elm,action,focus";
10497 action: STATE_SET "focused" 0.0;
10498 target: "button_image";
10499 target: "elm.text";
10501 program { name: "unfocused";
10502 //signal: "elm,action,unfocus";
10504 action: STATE_SET "default" 0.0;
10505 target: "button_image";
10506 after: "unfocus_text";
10508 program { name: "unfocus_text";
10509 action: STATE_SET "visible" 0.0;
10510 target: "elm.text";
10515 ///////////////////////////////////////////////////////////////////////////////////////
10516 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10517 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10519 image: image_normal COMP; \
10520 image: image_press COMP; \
10521 image: "00_title_btn_bg_press.png" COMP; \
10524 part { name: "button_image"; \
10526 description { state: "default" 0.0; \
10527 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10528 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10532 state: "clicked" 0.0; \
10533 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10534 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10536 normal: "00_title_btn_bg_press.png"; \
10537 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10542 state: "disabled" 0.0; \
10543 inherit: "default" 0.0; \
10545 description { state: "focused" 0.0; \
10546 inherit: "default" 0.0;\
10549 part { name: "icon_part"; \
10551 description { state: "default" 0.0; \
10552 min: min_width min_height; \
10553 max: min_width min_height; \
10554 rel1.to: "button_image"; \
10555 rel2.to: "button_image"; \
10556 image.normal: image_normal; \
10559 state: "clicked" 0.0; \
10560 inherit: "default" 0.0; \
10561 image.normal: image_press; \
10564 state: "disabled" 0.0; \
10565 inherit: "default" 0.0; \
10566 color: 127 127 127 127; \
10569 part { name: "over1"; \
10571 ignore_flags: ON_HOLD; \
10572 description { state: "default" 0.0; \
10576 part { name: "over2"; \
10577 repeat_events: 1; \
10578 description { state: "default" 0.0; \
10582 part { name: "disabler"; \
10584 description { state: "default" 0.0; \
10588 description { state: "disabled" 0.0; \
10589 inherit: "default" 0.0; \
10595 program { name: "button_click"; \
10596 signal: "mouse,down,1"; \
10598 action: SIGNAL_EMIT "elm,action,press" ""; \
10599 after: "button_click_anim"; \
10601 program { name: "button_click_anim"; \
10602 action: STATE_SET "clicked" 0.0; \
10603 target: "button_image"; \
10604 target: "icon_part"; \
10606 program { name: "button_unclick"; \
10607 signal: "mouse,up,1"; \
10609 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10610 after: "button_unclick_anim"; \
10612 program { name: "button_unclick_anim"; \
10613 action: STATE_SET "default" 0.0; \
10614 target: "button_image"; \
10615 target: "icon_part"; \
10617 program { name: "touch_snd"; \
10618 signal: "mouse,clicked,1"; \
10620 action: PLAY_SAMPLE "touch_sound" 1.0; \
10621 after: button_unclick3; \
10623 program { name: "button_unclick3"; \
10624 action: SIGNAL_EMIT "elm,action,click" ""; \
10626 program { name: "disable"; \
10627 signal: "elm,state,disabled"; \
10629 action: STATE_SET "disabled" 0.0; \
10630 target: "disabler"; \
10631 target: "button_image"; \
10632 target: "icon_part"; \
10634 program { name: "enable"; \
10635 signal: "elm,state,enabled"; \
10637 action: STATE_SET "default" 0.0; \
10638 target: "disabler"; \
10639 target: "button_image"; \
10640 target: "icon_part"; \
10644 ///////////////////////////////////////////////////////////////////////////////////////
10645 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)
10647 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)
10649 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)
10651 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)
10653 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)
10655 /////////////////////////////////////////////////////////////////////////////////////////
10656 group { name: "elm/button/base/naviframe/more/default";
10658 image: "00_winset_more.png" COMP;
10659 image: "00_winset_more_press.png" COMP;
10660 image: "00_title_btn_bg_press.png" COMP;
10663 part { name: "button_image";
10665 description { state: "default" 0.0;
10666 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10667 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10670 description { state: "clicked" 0.0;
10671 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10672 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10674 normal: "00_title_btn_bg_press.png";
10675 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10679 description { state: "disabled" 0.0;
10680 inherit: "default" 0.0;
10682 description { state: "focused" 0.0;
10683 inherit: "default" 0.0;
10686 part { name: "more_image";
10689 description { state: "default" 0.0;
10690 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10691 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10692 rel1.to: "button_image";
10693 rel2.to: "button_image";
10694 image.normal: "00_winset_more.png";
10696 description { state: "clicked" 0.0;
10697 inherit: "default" 0.0;
10698 image.normal: "00_winset_more_press.png";
10700 description { state: "disabled" 0.0;
10701 inherit: "default" 0.0;
10702 color: 255 255 255 127;
10705 part { name: "over2";
10708 ignore_flags: ON_HOLD;
10709 description { state: "default" 0.0;
10713 part { name: "over3";
10716 description { state: "default" 0.0;
10720 part { name: "disabler";
10722 description { state: "default" 0.0;
10726 description { state: "disabled" 0.0;
10727 inherit: "default" 0.0;
10733 program { name: "button_click";
10734 signal: "mouse,down,1";
10736 action: SIGNAL_EMIT "elm,action,press" "";
10737 after: "button_click_anim";
10739 program { name: "button_click_anim";
10740 action: STATE_SET "clicked" 0.0;
10741 target: "button_image";
10742 target: "more_image";
10744 program { name: "button_unclick";
10745 signal: "mouse,up,1";
10747 action: SIGNAL_EMIT "elm,action,unpress" "";
10748 after: "button_unclick_anim";
10750 program { name: "button_unclick_anim";
10751 action: STATE_SET "default" 0.0;
10752 target: "button_image";
10753 target: "more_image";
10755 program { name: "touch_snd";
10756 signal: "mouse,clicked,1";
10758 action: PLAY_SAMPLE "touch_sound" 1.0;
10759 after: button_unclick3;
10761 program { name: "button_unclick3";
10762 action: SIGNAL_EMIT "elm,action,click" "";
10764 program { name: "disable";
10765 signal: "elm,state,disabled";
10767 action: STATE_SET "disabled" 0.0;
10768 target: "disabler";
10769 target: "button_image";
10770 target: "more_image";
10772 program { name: "enable";
10773 signal: "elm,state,enabled";
10775 action: STATE_SET "default" 0.0;
10776 target: "disabler";
10777 target: "button_image";
10778 target: "more_image";
10783 ///////////////////////////////////////////////////////////////////////////////////////
10784 group { name: "elm/button/base/tickernoti";
10786 image: "00_button_06_normal.png" COMP;
10787 image: "00_button_06_press.png" COMP;
10788 image: "00_button_06_dim.png" COMP;
10789 image: "00_button_06_normal_focus.png" COMP;
10792 public button_state = BUTTON_STATE_ENABLED;
10795 part { name: "button_image";
10797 description { state: "default" 0.0;
10799 normal: "00_button_06_normal.png";
10800 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10804 description { state: "clicked" 0.0;
10805 inherit: "default" 0.0;
10806 image.normal: "00_button_06_press.png";
10808 description { state: "disabled" 0.0;
10809 inherit: "default" 0.0;
10810 image.normal: "00_button_06_dim.png";
10812 description { state: "focused" 0.0;
10813 inherit: "default" 0.0;
10814 image.normal: "00_button_06_normal_focus.png";
10817 part { name: "padding_left_top";
10821 description { state: "default" 0.0;
10823 rel2.relative: 0.0 0.0;
10824 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10833 description { state: "default" 0.0;
10834 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10837 description { state: "visible" 0.0;
10838 inherit: "default" 0.0;
10839 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10841 description { state: "icononly" 0.0;
10842 inherit: "default" 0.0;
10843 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10846 part { name: "padding_right_bottom";
10850 description { state: "default" 0.0;
10852 rel1.relative: 1.0 1.0;
10853 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10858 part { name: "icon_rect";
10862 description { state: "default" 0.0;
10868 to: "padding_left_top";
10872 to_x: "padding_left_top";
10873 to_y: "padding_right_bottom";
10877 description { state: "visible" 0.0;
10879 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10880 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10884 to: "padding_left_top";
10888 to_x: "padding_left_top";
10889 to_y: "padding_right_bottom";
10893 description { state: "icononly" 0.0;
10894 inherit: "default" 0.0;
10897 part { name: "padding_after_icon";
10901 description { state: "default" 0.0; //when only icon or no icon is there
10907 rel2.to: "icon_rect";
10912 description { state: "visible" 0.0;
10919 rel2.to: "icon_rect";
10921 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10923 description { state: "icononly" 0.0;
10924 inherit: "default" 0.0;
10927 part { name: "padding_before_text";
10931 description { state: "default" 0.0; //when only icon or no icon is there
10936 to_y: "padding_left_top";
10941 to_y: "padding_right_bottom";
10944 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10948 part { name: "elm.swallow.content";
10951 clip_to: "clipper";
10952 description { state: "default" 0.0;
10957 to: "padding_left_top";
10961 to_x: "padding_left_top";
10962 to_y: "padding_right_bottom";
10966 description { state: "visible" 0.0;
10968 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10969 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10973 to_x: "padding_before_text";
10974 to_y: "padding_left_top";
10978 to_x: "padding_before_text";
10979 to_y: "padding_right_bottom";
10982 description { state: "icononly" 0.0;
10983 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10984 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10987 part { name: "elm.text";
10991 clip_to: "clipper";
10992 description { state: "default" 0.0;
10996 to_x: "padding_after_icon";
10997 to_y: "padding_left_top";
11001 to: "padding_right_bottom";
11003 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
11005 font: "SLP:style=Medium";
11006 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
11009 text_class: "slp_medium";
11012 description { state: "visible" 0.0;
11013 inherit: "default" 0.0;
11016 description { state: "clicked" 0.0;
11017 inherit: "default" 0.0;
11019 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11021 description { state: "disabled" 0.0;
11022 inherit: "default" 0.0;
11025 description { state: "disabled_visible" 0.0;
11026 inherit: "default" 0.0;
11027 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
11030 description { state: "focused" 0.0;
11031 inherit: "default" 0.0;
11033 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11036 part { name: "over2";
11039 ignore_flags: ON_HOLD;
11040 description { state: "default" 0.0;
11044 part { name: "over3";
11047 description { state: "default" 0.0;
11051 part { name: "clipper";
11053 description { state: "default" 0.0;
11054 color: 255 255 255 255;
11057 part { name: "disabler";
11059 description { state: "default" 0.0;
11063 description { state: "disabled" 0.0;
11064 inherit: "default" 0.0;
11070 program { name: "button_click";
11071 signal: "mouse,down,1";
11073 action: SIGNAL_EMIT "elm,action,press" "";
11074 after: "button_click_anim";
11076 program { name: "button_click_anim";
11077 action: STATE_SET "clicked" 0.0;
11078 target: "button_image";
11079 after: "text_clicked";
11081 program { name: "text_clicked";
11085 get_state(PART:"elm.text", st, 30, vl);
11086 if (!strcmp(st, "visible"))
11087 set_state(PART:"elm.text", "clicked", 0.0);
11090 program { name: "button_unpress";
11091 action: SIGNAL_EMIT "elm,action,unpress" "";
11093 program { name: "button_mouseout_clicked";
11094 signal: "mouse,up,1";
11099 get_state(PART:"elm.swallow.content", st, 30, vl);
11100 if (strcmp(st, "icononly"))
11102 emit("elm,action,default,text,set", "");
11103 set_state(PART:"elm.text", "visible", 0.0);
11105 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11106 set_state(PART:"button_image", "default", 0.0);
11108 after: button_unpress;
11110 program { name: "touch_snd";
11111 signal: "mouse,clicked,1";
11113 action: PLAY_SAMPLE "touch_sound" 1.0;
11114 after: button_unclick3;
11116 program { name: "button_unclick3";
11117 action: SIGNAL_EMIT "elm,action,click" "";
11119 program { name: "text_show";
11120 signal: "elm,state,text,visible";
11125 get_state(PART:"elm.swallow.content", st, 30, vl);
11126 if (!strcmp(st, "icononly"))
11128 set_state(PART:"elm.swallow.content", "visible", 0.0);
11129 set_state(PART:"icon_rect", "visible", 0.0);
11130 set_state(PART:"padding_after_icon", "visible", 0.0);
11131 set_state(PART:"bg", "visible", 0.0);
11133 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11134 set_state(PART:"elm.text", "visible", 0.0);
11136 set_state(PART:"elm.text", "disabled_visible", 0.0);
11139 program { name: "text_hide";
11140 signal: "elm,state,text,hidden";
11145 get_state(PART:"elm.swallow.content", st, 30, vl);
11146 if (!strcmp(st, "visible"))
11148 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11149 set_state(PART:"icon_rect", "icononly", 0.0);
11150 set_state(PART:"padding_after_icon", "icononly", 0.0);
11151 set_state(PART:"bg", "icononly", 0.0);
11153 set_state(PART:"elm.text", "default", 0.0);
11156 program { name: "icon_show";
11157 signal: "elm,state,icon,visible";
11162 get_state(PART:"elm.text", st, 30, vl);
11163 if (!strcmp(st, "visible"))
11165 set_state(PART:"elm.swallow.content", "visible", 0.0);
11166 set_state(PART:"icon_rect", "visible", 0.0);
11167 set_state(PART:"padding_after_icon", "visible", 0.0);
11168 set_state(PART:"bg", "visible", 0.0);
11172 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11173 set_state(PART:"icon_rect", "icononly", 0.0);
11174 set_state(PART:"padding_after_icon", "icononly", 0.0);
11175 set_state(PART:"bg", "icononly", 0.0);
11179 program { name: "icon_hide";
11180 signal: "elm,state,icon,hidden";
11182 action: STATE_SET "default" 0.0;
11183 target: "elm.swallow.content";
11184 target: "padding_after_icon";
11185 target: "icon_rect";
11188 program { name: "disable";
11189 signal: "elm,state,disabled";
11191 action: STATE_SET "disabled" 0.0;
11192 target: "button_image";
11193 target: "disabler";
11194 after: "disable_text";
11196 program { name: "disable_text";
11200 get_state(PART:"elm.text", st, 30, vl);
11201 if (!strcmp(st, "visible"))
11202 set_state(PART:"elm.text", "disabled_visible", 0.0);
11204 set_state(PART:"elm.text", "disabled", 0.0);
11205 set_int(button_state, BUTTON_STATE_DISABLED);
11208 program { name: "enable";
11209 signal: "elm,state,enabled";
11211 action: STATE_SET "default" 0.0;
11212 target: "button_image";
11213 target: "disabler";
11214 after: "enable_text";
11216 program { name: "enable_text";
11220 get_state(PART:"elm.text", st, 30, vl);
11221 if (!strcmp(st, "disabled_visible"))
11222 set_state(PART:"elm.text", "visible", 0.0);
11224 set_state(PART:"elm.text", "default", 0.0);
11225 set_int(button_state, BUTTON_STATE_ENABLED);
11228 program { name: "focused";
11229 //signal: "elm,action,focus";
11231 action: STATE_SET "focused" 0.0;
11232 target: "button_image";
11233 target: "elm.text";
11235 program { name: "unfocused";
11236 //signal: "elm,action,unfocus";
11238 action: STATE_SET "default" 0.0;
11239 target: "button_image";
11240 after: "unfocus_text";
11242 program { name: "unfocus_text";
11243 action: STATE_SET "visible" 0.0;
11244 target: "elm.text";
11249 ///////////////////////////////////////////////////////////////////////////////////////
11250 group { name: "elm/button/base/expandable_number";
11251 alias: "elm/button/base/text_only/expandable_number";
11253 image: "00_button_05_normal.png" COMP;
11254 image: "00_button_05_press.png" COMP;
11255 image: "00_button_05_dim.png" COMP;
11256 image: "00_button_05_normal_focus.png" COMP;
11257 image: "00_arrow_expand.png" COMP;
11258 image: "00_arrow_expand_press.png" COMP;
11259 image: "00_arrow_expand_dim.png" COMP;
11262 public button_state = BUTTON_STATE_ENABLED;
11265 part { name: "button_image";
11267 description { state: "default" 0.0;
11268 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11269 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11271 normal: "00_button_05_normal.png";
11272 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
11276 description { state: "clicked" 0.0;
11277 inherit: "default" 0.0;
11278 image.normal: "00_button_05_press.png";
11280 description { state: "disabled" 0.0;
11281 inherit: "default" 0.0;
11282 image.normal: "00_button_05_dim.png";
11284 description { state: "focused" 0.0;
11285 inherit: "default" 0.0;
11286 image.normal: "00_button_05_normal_focus.png";
11289 part { name: "padding_left_top";
11293 description { state: "default" 0.0;
11295 rel2.relative: 0.0 0.0;
11296 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11301 part { name: "padding_right_bottom";
11305 description { state: "default" 0.0;
11307 rel1.relative: 1.0 1.0;
11308 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11313 part { name: "icon_rect";
11317 description { state: "default" 0.0;
11319 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11320 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11324 to_x: "padding_right_bottom";
11325 to_y: "padding_left_top";
11329 to: "padding_right_bottom";
11335 part { name: "arrow_expand";
11338 description { state: "default" 0.0;
11340 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11341 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11343 rel1.to: "icon_rect";
11344 rel2.to: "icon_rect";
11345 image.normal:"00_arrow_expand.png";
11347 description { state: "clicked" 0.0;
11348 inherit: "default" 0.0;
11349 image.normal:"00_arrow_expand_press.png";
11351 description { state: "disabled" 0.0;
11352 inherit: "default" 0.0;
11353 image.normal:"00_arrow_expand_dim.png";
11356 part { name: "elm.text";
11360 description { state: "default" 0.0;
11361 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11362 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11366 to: "padding_left_top";
11370 to_x:"padding_left_top";
11371 to_y:"padding_right_bottom";
11374 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
11376 font: "SLP:style=Medium";
11377 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
11381 text_class: "slp_medium";
11384 description { state: "visible" 0.0;
11385 inherit: "default" 0.0;
11387 description { state: "clicked" 0.0;
11388 inherit: "default" 0.0;
11389 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
11391 description { state: "disabled" 0.0;
11392 inherit: "default" 0.0;
11395 description { state: "disabled_visible" 0.0;
11396 inherit: "default" 0.0;
11397 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
11399 description { state: "focused" 0.0;
11400 inherit: "default" 0.0;
11401 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
11404 part { name: "over2";
11407 ignore_flags: ON_HOLD;
11408 description { state: "default" 0.0;
11412 part { name: "over3";
11415 description { state: "default" 0.0;
11419 part { name: "disabler";
11421 description { state: "default" 0.0;
11425 description { state: "disabled" 0.0;
11426 inherit: "default" 0.0;
11432 program { name: "button_click";
11433 signal: "mouse,down,1";
11435 action: SIGNAL_EMIT "elm,action,press" "";
11436 after: "button_click_anim";
11438 program { name: "button_click_anim";
11439 action: STATE_SET "clicked" 0.0;
11440 target: "button_image";
11441 target: "arrow_expand";
11442 after: "text_clicked";
11444 program { name: "text_clicked";
11448 get_state(PART:"elm.text", st, 30, vl);
11449 if (!strcmp(st, "visible"))
11450 set_state(PART:"elm.text", "clicked", 0.0);
11453 program { name: "button_unpress";
11454 action: SIGNAL_EMIT "elm,action,unpress" "";
11456 program { name: "button_mouseout_clicked";
11457 signal: "mouse,up,1";
11460 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11462 set_state(PART:"button_image", "default", 0.0);
11463 set_state(PART:"elm.text", "visible", 0.0);
11464 set_state(PART:"arrow_expand", "default", 0.0);
11467 after: button_unpress;
11469 program { name: "touch_snd";
11470 signal: "mouse,clicked,1";
11472 action: PLAY_SAMPLE "touch_sound" 1.0;
11473 after: button_unclick3;
11475 program { name: "button_unclick3";
11476 action: SIGNAL_EMIT "elm,action,click" "";
11478 program { name: "text_show";
11479 signal: "elm,state,text,visible";
11482 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11483 set_state(PART:"elm.text", "visible", 0.0);
11485 set_state(PART:"elm.text", "disabled_visible", 0.0);
11488 program { name: "text_hide";
11489 signal: "elm,state,text,hidden";
11492 set_state(PART:"elm.text", "default", 0.0);
11495 program { name: "disable";
11496 signal: "elm,state,disabled";
11498 action: STATE_SET "disabled" 0.0;
11499 target: "button_image";
11500 target: "disabler";
11501 after: "disable_text";
11503 program { name: "disable_text";
11507 get_state(PART:"elm.text", st, 30, vl);
11508 if (!strcmp(st, "visible"))
11509 set_state(PART:"elm.text", "disabled_visible", 0.0);
11511 set_state(PART:"elm.text", "disabled", 0.0);
11512 set_int(button_state, BUTTON_STATE_DISABLED);
11515 program { name: "enable";
11516 signal: "elm,state,enabled";
11518 action: STATE_SET "default" 0.0;
11519 target: "button_image";
11520 target: "disabler";
11521 after: "enable_text";
11523 program { name: "enable_text";
11527 get_state(PART:"elm.text", st, 30, vl);
11528 if (!strcmp(st, "disabled_visible"))
11529 set_state(PART:"elm.text", "visible", 0.0);
11531 set_state(PART:"elm.text", "default", 0.0);
11532 set_int(button_state, BUTTON_STATE_ENABLED);
11535 program { name: "focused";
11536 //signal: "elm,action,focus";
11538 action: STATE_SET "focused" 0.0;
11539 target: "button_image";
11540 target: "elm.text";
11542 program { name: "unfocused";
11543 //signal: "elm,action,unfocus";
11545 action: STATE_SET "default" 0.0;
11546 target: "button_image";
11547 after: "unfocus_text";
11549 program { name: "unfocus_text";
11550 action: STATE_SET "visible" 0.0;
11551 target: "elm.text";
11556 #undef BUTTON_STATE_ENABLED
11557 #undef BUTTON_STATE_DISABLED