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_button_01_normal.png" COMP;
3210 image: "00_button_01_normal_press.png" COMP;
3211 image: "00_button_01_normal_dim.png" COMP;
3212 image: "00_button_01_normal_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_button_01_normal.png";
3224 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3228 description { state: "clicked" 0.0;
3229 inherit: "default" 0.0;
3230 image.normal: "00_button_01_normal_press.png";
3232 description { state: "disabled" 0.0;
3233 inherit: "default" 0.0;
3234 image.normal: "00_button_01_normal_dim.png";
3236 description { state: "focused" 0.0;
3237 inherit: "default" 0.0;
3238 image.normal: "00_button_01_normal_Focus.png";
3241 part { name: "padding_left_top";
3245 description { state: "default" 0.0;
3247 rel2.relative: 0.0 0.0;
3248 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3253 part { name: "padding_right_bottom";
3257 description { state: "default" 0.0;
3259 rel1.relative: 1.0 1.0;
3260 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3265 part { name: "icon_rect";
3269 description { state: "default" 0.0;
3270 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3274 to_x: "elm.swallow.content";
3275 to_y: "padding_left_top";
3279 to_x: "elm.swallow.content";
3280 to_y: "padding_right_bottom";
3286 part { name: "padding_icon_text";
3290 description { state: "default" 0.0; //when only icon or no icon is there
3296 rel2.to: "icon_rect";
3301 description { state: "icononly" 0.0;
3302 inherit: "default" 0.0;
3304 description { state: "visible" 0.0; //when icon is visible
3310 rel2.to: "icon_rect";
3312 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3316 part { name: "elm.swallow.content";
3320 description { state: "default" 0.0;
3325 to: "padding_left_top";
3329 to_x: "padding_left_top";
3330 to_y: "padding_right_bottom";
3334 description { state: "visible" 0.0;
3339 to: "padding_left_top";
3343 to_x: "padding_left_top";
3344 to_y: "padding_right_bottom";
3347 aspect_preference: VERTICAL;
3349 description { state: "icononly" 0.0;
3350 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3353 to: "padding_left_top";
3357 to_x: "padding_left_top";
3358 to_y: "padding_right_bottom";
3362 part { name: "elm.text";
3367 description { state: "default" 0.0;
3371 to_x: "padding_icon_text";
3372 to_y: "padding_left_top";
3376 to: "padding_right_bottom";
3378 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3380 font: "SLP:style=Medium";
3381 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3383 text_class: "slp_medium";
3386 description { state: "visible" 0.0;
3387 inherit: "default" 0.0;
3389 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3391 description { state: "clicked" 0.0;
3392 inherit: "default" 0.0;
3395 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3397 description { state: "disabled" 0.0;
3398 inherit: "default" 0.0;
3401 description { state: "disabled_visible" 0.0;
3402 inherit: "default" 0.0;
3403 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3405 min: BUTTON_SWEEP_TEXT_MIN_INC;
3407 description { state: "focused" 0.0;
3408 inherit: "default" 0.0;
3411 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3414 part { name: "over2";
3417 ignore_flags: ON_HOLD;
3418 description { state: "default" 0.0;
3422 part { name: "over3";
3425 description { state: "default" 0.0;
3429 part { name: "clipper";
3431 description { state: "default" 0.0;
3432 color: 255 255 255 255;
3435 part { name: "disabler";
3437 description { state: "default" 0.0;
3441 description { state: "disabled" 0.0;
3442 inherit: "default" 0.0;
3448 program { name: "button_click";
3449 signal: "mouse,down,1";
3451 action: SIGNAL_EMIT "elm,action,press" "";
3452 after: "button_click_anim";
3454 program { name: "button_click_anim";
3455 action: STATE_SET "clicked" 0.0;
3456 target: "button_image";
3457 after: "text_clicked";
3459 program { name: "text_clicked";
3463 get_state(PART:"elm.text", st, 30, vl);
3464 if (!strcmp(st, "visible"))
3465 set_state(PART:"elm.text", "clicked", 0.0);
3468 program { name: "button_unpress";
3469 action: SIGNAL_EMIT "elm,action,unpress" "";
3471 program { name: "button_mouseout_clicked";
3472 signal: "mouse,up,1";
3477 get_state(PART:"elm.swallow.content", st, 30, vl);
3478 if (strcmp(st, "icononly"))
3480 emit("elm,action,default,text,set", "");
3481 set_state(PART:"elm.text", "visible", 0.0);
3483 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3484 set_state(PART:"button_image", "default", 0.0);
3486 after: button_unpress;
3488 program { name: "touch_snd";
3489 signal: "mouse,clicked,1";
3491 action: PLAY_SAMPLE "touch_sound" 1.0;
3492 after: button_unclick3;
3494 program { name: "button_unclick3";
3495 action: SIGNAL_EMIT "elm,action,click" "";
3497 program { name: "text_show";
3498 signal: "elm,state,text,visible";
3503 get_state(PART:"elm.swallow.content", st, 30, vl);
3504 if (!strcmp(st, "icononly"))
3506 set_state(PART:"elm.swallow.content", "visible", 0.0);
3507 set_state(PART:"padding_icon_text", "visible", 0.0);
3509 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3510 set_state(PART:"elm.text", "visible", 0.0);
3512 set_state(PART:"elm.text", "disabled_visible", 0.0);
3515 program { name: "text_hide";
3516 signal: "elm,state,text,hidden";
3521 get_state(PART:"elm.swallow.content", st, 30, vl);
3522 if (!strcmp(st, "visible"))
3524 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3525 set_state(PART:"padding_icon_text", "icononly", 0.0);
3527 set_state(PART:"elm.text", "default", 0.0);
3530 program { name: "icon_show";
3531 signal: "elm,state,icon,visible";
3536 get_state(PART:"elm.text", st, 30, vl);
3537 if (!strcmp(st, "visible"))
3539 set_state(PART:"elm.swallow.content", "visible", 0.0);
3540 set_state(PART:"padding_icon_text", "visible", 0.0);
3544 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3545 set_state(PART:"padding_icon_text", "icononly", 0.0);
3549 program { name: "icon_hide";
3550 signal: "elm,state,icon,hidden";
3552 action: STATE_SET "default" 0.0;
3553 target: "elm.swallow.content";
3554 target: "padding_icon_text";
3556 program { name: "disable";
3557 signal: "elm,state,disabled";
3559 action: STATE_SET "disabled" 0.0;
3560 target: "button_image";
3562 after: "disable_text";
3564 program { name: "disable_text";
3568 get_state(PART:"elm.text", st, 30, vl);
3569 if (!strcmp(st, "visible"))
3570 set_state(PART:"elm.text", "disabled_visible", 0.0);
3572 set_state(PART:"elm.text", "disabled", 0.0);
3573 set_int(button_state, BUTTON_STATE_DISABLED);
3576 program { name: "enable";
3577 signal: "elm,state,enabled";
3579 action: STATE_SET "default" 0.0;
3580 target: "button_image";
3582 after: "enable_text";
3584 program { name: "enable_text";
3588 get_state(PART:"elm.text", st, 30, vl);
3589 if (!strcmp(st, "disabled_visible"))
3590 set_state(PART:"elm.text", "visible", 0.0);
3592 set_state(PART:"elm.text", "default", 0.0);
3593 set_int(button_state, BUTTON_STATE_ENABLED);
3596 program { name: "focused";
3597 //signal: "elm,action,focus";
3599 action: STATE_SET "focused" 0.0;
3600 target: "button_image";
3603 program { name: "unfocused";
3604 //signal: "elm,action,unfocus";
3606 action: STATE_SET "default" 0.0;
3607 target: "button_image";
3608 after: "unfocus_text";
3610 program { name: "unfocus_text";
3611 action: STATE_SET "visible" 0.0;
3617 ///////////////////////////////////////////////////////////////////////////////////////
3618 group { name: "elm/button/base/sweep/delete";
3620 image: "00_button_sweep_dim.png" COMP;
3621 image: "00_button_sweep_delete.png" COMP;
3622 image: "00_button_sweep_delete_press.png" COMP;
3623 image: "00_button_sweep_focus.png" COMP;
3626 public button_state = BUTTON_STATE_ENABLED;
3629 part { name: "button_image";
3631 description { state: "default" 0.0;
3632 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3634 normal: "00_button_sweep_delete.png";
3635 border: BUTTON_SWEEP_BG_BORDER_INC;
3639 description { state: "clicked" 0.0;
3640 inherit: "default" 0.0;
3641 image.normal: "00_button_sweep_delete_press.png";
3643 description { state: "disabled" 0.0;
3644 inherit: "default" 0.0;
3645 image.normal: "00_button_sweep_dim.png";
3647 description { state: "focused" 0.0;
3648 inherit: "default" 0.0;
3649 image.normal: "00_button_sweep_focus.png";
3652 part { name: "padding_left_top";
3656 description { state: "default" 0.0;
3658 rel2.relative: 0.0 0.0;
3659 min: BUTTON_SWEEP_PADDING_MIN_INC;
3664 part { name: "padding_right_bottom";
3668 description { state: "default" 0.0;
3670 rel1.relative: 1.0 1.0;
3671 min: BUTTON_SWEEP_PADDING_MIN_INC;
3676 part { name: "icon_rect";
3680 description { state: "default" 0.0;
3681 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3685 to_x: "elm.swallow.content";
3686 to_y: "padding_left_top";
3690 to_x: "elm.swallow.content";
3691 to_y: "padding_right_bottom";
3697 part { name: "padding_icon_text";
3701 description { state: "default" 0.0; //when only icon or no icon is there
3707 rel2.to: "icon_rect";
3712 description { state: "icononly" 0.0;
3713 inherit: "default" 0.0;
3715 description { state: "visible" 0.0; //when icon is visible
3721 rel2.to: "icon_rect";
3723 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3727 part { name: "elm.swallow.content";
3731 description { state: "default" 0.0;
3736 to: "padding_left_top";
3740 to_x: "padding_left_top";
3741 to_y: "padding_right_bottom";
3745 description { state: "visible" 0.0;
3750 to: "padding_left_top";
3754 to_x: "padding_left_top";
3755 to_y: "padding_right_bottom";
3758 aspect_preference: VERTICAL;
3760 description { state: "icononly" 0.0;
3761 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3764 to: "padding_left_top";
3768 to_x: "padding_left_top";
3769 to_y: "padding_right_bottom";
3773 part { name: "elm.text";
3778 description { state: "default" 0.0;
3781 to_x: "padding_icon_text";
3782 to_y: "padding_left_top";
3786 to: "padding_right_bottom";
3788 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3790 font: "SLP:style=Medium";
3791 size: BUTTON_SWEEP_FONT_SIZE_INC;
3795 text_class: "slp_medium";
3798 description { state: "visible" 0.0;
3799 inherit: "default" 0.0;
3801 description { state: "clicked" 0.0;
3802 inherit: "default" 0.0;
3803 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3805 description { state: "disabled" 0.0;
3806 inherit: "default" 0.0;
3809 description { state: "disabled_visible" 0.0;
3810 inherit: "default" 0.0;
3811 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3813 description { state: "focused" 0.0;
3814 inherit: "default" 0.0;
3817 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3820 part { name: "over2";
3823 ignore_flags: ON_HOLD;
3824 description { state: "default" 0.0;
3828 part { name: "over3";
3831 description { state: "default" 0.0;
3835 part { name: "clipper";
3837 description { state: "default" 0.0;
3838 color: 255 255 255 255;
3841 part { name: "disabler";
3843 description { state: "default" 0.0;
3847 description { state: "disabled" 0.0;
3848 inherit: "default" 0.0;
3854 program { name: "button_click";
3855 signal: "mouse,down,1";
3857 action: SIGNAL_EMIT "elm,action,press" "";
3858 after: "button_click_anim";
3860 program { name: "button_click_anim";
3861 action: STATE_SET "clicked" 0.0;
3862 target: "button_image";
3863 after: "text_clicked";
3865 program { name: "text_clicked";
3869 get_state(PART:"elm.text", st, 30, vl);
3870 if (!strcmp(st, "visible"))
3871 set_state(PART:"elm.text", "clicked", 0.0);
3874 program { name: "button_unpress";
3875 action: SIGNAL_EMIT "elm,action,unpress" "";
3877 program { name: "button_mouseout_clicked";
3878 signal: "mouse,up,1";
3883 get_state(PART:"elm.swallow.content", st, 30, vl);
3884 if (strcmp(st, "icononly"))
3886 emit("elm,action,default,text,set", "");
3887 set_state(PART:"elm.text", "visible", 0.0);
3889 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3890 set_state(PART:"button_image", "default", 0.0);
3892 after: button_unpress;
3894 program { name: "touch_snd";
3895 signal: "mouse,clicked,1";
3897 action: PLAY_SAMPLE "touch_sound" 1.0;
3898 after: button_unclick3;
3900 program { name: "button_unclick3";
3901 action: SIGNAL_EMIT "elm,action,click" "";
3903 program { name: "text_show";
3904 signal: "elm,state,text,visible";
3909 get_state(PART:"elm.swallow.content", st, 30, vl);
3910 if (!strcmp(st, "icononly"))
3912 set_state(PART:"elm.swallow.content", "visible", 0.0);
3913 set_state(PART:"padding_icon_text", "visible", 0.0);
3915 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3916 set_state(PART:"elm.text", "visible", 0.0);
3918 set_state(PART:"elm.text", "disabled_visible", 0.0);
3921 program { name: "text_hide";
3922 signal: "elm,state,text,hidden";
3927 get_state(PART:"elm.swallow.content", st, 30, vl);
3928 if (!strcmp(st, "visible"))
3930 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3931 set_state(PART:"padding_icon_text", "icononly", 0.0);
3933 set_state(PART:"elm.text", "default", 0.0);
3936 program { name: "icon_show";
3937 signal: "elm,state,icon,visible";
3942 get_state(PART:"elm.text", st, 30, vl);
3943 if (!strcmp(st, "visible"))
3945 set_state(PART:"elm.swallow.content", "visible", 0.0);
3946 set_state(PART:"padding_icon_text", "visible", 0.0);
3950 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3951 set_state(PART:"padding_icon_text", "icononly", 0.0);
3955 program { name: "icon_hide";
3956 signal: "elm,state,icon,hidden";
3958 action: STATE_SET "default" 0.0;
3959 target: "elm.swallow.content";
3960 target: "padding_icon_text";
3962 program { name: "disable";
3963 signal: "elm,state,disabled";
3965 action: STATE_SET "disabled" 0.0;
3966 target: "button_image";
3968 after: "disable_text";
3970 program { name: "disable_text";
3974 get_state(PART:"elm.text", st, 30, vl);
3975 if (!strcmp(st, "visible"))
3976 set_state(PART:"elm.text", "disabled_visible", 0.0);
3978 set_state(PART:"elm.text", "disabled", 0.0);
3979 set_int(button_state, BUTTON_STATE_DISABLED);
3982 program { name: "enable";
3983 signal: "elm,state,enabled";
3985 action: STATE_SET "default" 0.0;
3986 target: "button_image";
3988 after: "enable_text";
3990 program { name: "enable_text";
3994 get_state(PART:"elm.text", st, 30, vl);
3995 if (!strcmp(st, "disabled_visible"))
3996 set_state(PART:"elm.text", "visible", 0.0);
3998 set_state(PART:"elm.text", "default", 0.0);
3999 set_int(button_state, BUTTON_STATE_ENABLED);
4002 program { name: "focused";
4003 //signal: "elm,action,focus";
4005 action: STATE_SET "focused" 0.0;
4006 target: "button_image";
4009 program { name: "unfocused";
4010 //signal: "elm,action,unfocus";
4012 action: STATE_SET "default" 0.0;
4013 target: "button_image";
4014 after: "unfocus_text";
4016 program { name: "unfocus_text";
4017 action: STATE_SET "visible" 0.0;
4023 ///////////////////////////////////////////////////////////////////////////////////////
4024 group { name: "elm/button/base/popup_button/default";
4025 alias: "elm/button/base/popup_button/menustyle";
4026 alias: "elm/button/base/popup_button/liststyle";
4027 alias: "elm/button/base/popup_button/volumebarstyle";
4028 alias: "elm/button/base/popup_button/customstyle";
4029 alias: "elm/button/base/popup_button/verticalbuttonstyle";
4031 image: "00_button_popup_normal.png" COMP;
4032 image: "00_button_popup_press.png" COMP;
4033 image: "00_button_popup_normal_focus.png" COMP;
4034 image: "00_button_popup_dim.png" COMP;
4037 public button_state = BUTTON_STATE_ENABLED;
4040 part { name: "button_image";
4042 description { state: "default" 0.0;
4043 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4045 normal: "00_button_popup_normal.png";
4046 border: BUTTON_POPUP_BG_BORDER_INC;
4050 description { state: "clicked" 0.0;
4051 inherit: "default" 0.0;
4052 image.normal: "00_button_popup_press.png";
4054 description { state: "disabled" 0.0;
4055 inherit: "default" 0.0;
4056 image.normal: "00_button_popup_dim.png";
4058 description { state: "focused" 0.0;
4059 inherit: "default" 0.0;
4060 image.normal: "00_button_popup_normal_focus.png";
4063 part { name: "padding_left_top";
4067 description { state: "default" 0.0;
4069 rel2.relative: 0.0 0.0;
4070 min: BUTTON_POPUP_PADDING_MIN_INC;
4075 part { name: "padding_right_bottom";
4078 description { state: "default" 0.0;
4080 rel1.relative: 1.0 1.0;
4081 min: BUTTON_POPUP_PADDING_MIN_INC;
4086 part { name: "padding_icon_text";
4089 description { state: "default" 0.0; //when only icon or no icon is there
4093 to: "elm.swallow.content";
4095 rel2.to: "elm.swallow.content";
4100 description { state: "icononly" 0.0;
4101 inherit: "default" 0.0;
4103 description { state: "visible" 0.0; //when icon is visible
4104 inherit: "default" 0.0;
4105 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4108 part { name: "elm.swallow.content";
4112 description { state: "default" 0.0;
4117 to: "padding_left_top";
4121 to_x: "padding_left_top";
4122 to_y: "padding_right_bottom";
4126 description { state: "visible" 0.0;
4127 inherit: "default" 0.0;
4131 aspect_preference: VERTICAL;
4133 description { state: "icononly" 0.0;
4134 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4137 to: "padding_left_top";
4141 to_x: "padding_left_top";
4142 to_y: "padding_right_bottom";
4146 part { name: "elm.text";
4151 description { state: "default" 0.0;
4155 to_x: "padding_icon_text";
4156 to_y: "padding_left_top";
4160 to: "padding_right_bottom";
4162 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4164 font: "SLP:style=Medium";
4165 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4167 text_class: "slp_medium";
4170 description { state: "visible" 0.0;
4171 inherit: "default" 0.0;
4173 min: BUTTON_POPUP_TEXT_MIN_INC;
4175 description { state: "clicked" 0.0;
4176 inherit: "default" 0.0;
4179 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4181 description { state: "disabled" 0.0;
4182 inherit: "default" 0.0;
4185 description { state: "disabled_visible" 0.0;
4186 inherit: "default" 0.0;
4187 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4189 min: BUTTON_POPUP_TEXT_MIN_INC;
4191 description { state: "focused" 0.0;
4192 inherit: "default" 0.0;
4195 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4198 part { name: "over2";
4201 ignore_flags: ON_HOLD;
4202 description { state: "default" 0.0;
4206 part { name: "over3";
4209 description { state: "default" 0.0;
4213 part { name: "clipper";
4215 description { state: "default" 0.0;
4216 color: 255 255 255 255;
4219 part { name: "disabler";
4221 description { state: "default" 0.0;
4225 description { state: "disabled" 0.0;
4226 inherit: "default" 0.0;
4232 program { name: "button_click";
4233 signal: "mouse,down,1";
4235 action: SIGNAL_EMIT "elm,action,press" "";
4236 after: "button_click_anim";
4238 program { name: "button_click_anim";
4239 action: STATE_SET "clicked" 0.0;
4240 target: "button_image";
4241 after: "text_clicked";
4243 program { name: "text_clicked";
4247 get_state(PART:"elm.text", st, 30, vl);
4248 if (!strcmp(st, "visible"))
4249 set_state(PART:"elm.text", "clicked", 0.0);
4252 program { name: "button_unpress";
4253 action: SIGNAL_EMIT "elm,action,unpress" "";
4255 program { name: "button_mouseout_clicked";
4256 signal: "mouse,up,1";
4261 get_state(PART:"elm.swallow.content", st, 30, vl);
4262 if (strcmp(st, "icononly"))
4264 emit("elm,action,default,text,set", "");
4265 set_state(PART:"elm.text", "visible", 0.0);
4267 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4268 set_state(PART:"button_image", "default", 0.0);
4270 after: button_unpress;
4272 program { name: "touch_snd";
4273 signal: "mouse,clicked,1";
4275 action: PLAY_SAMPLE "touch_sound" 1.0;
4276 after: button_unclick3;
4278 program { name: "button_unclick3";
4279 action: SIGNAL_EMIT "elm,action,click" "";
4281 program { name: "text_show";
4282 signal: "elm,state,text,visible";
4287 get_state(PART:"elm.swallow.content", st, 30, vl);
4288 if (!strcmp(st, "icononly"))
4290 set_state(PART:"elm.swallow.content", "visible", 0.0);
4291 set_state(PART:"padding_icon_text", "visible", 0.0);
4293 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4294 set_state(PART:"elm.text", "visible", 0.0);
4296 set_state(PART:"elm.text", "disabled_visible", 0.0);
4299 program { name: "text_hide";
4300 signal: "elm,state,text,hidden";
4305 get_state(PART:"elm.swallow.content", st, 30, vl);
4306 if (!strcmp(st, "visible"))
4308 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4309 set_state(PART:"padding_icon_text", "icononly", 0.0);
4311 set_state(PART:"elm.text", "default", 0.0);
4314 program { name: "icon_show";
4315 signal: "elm,state,icon,visible";
4320 get_state(PART:"elm.text", st, 30, vl);
4321 if (!strcmp(st, "visible"))
4323 set_state(PART:"elm.swallow.content", "visible", 0.0);
4324 set_state(PART:"padding_icon_text", "visible", 0.0);
4328 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4329 set_state(PART:"padding_icon_text", "icononly", 0.0);
4333 program { name: "icon_hide";
4334 signal: "elm,state,icon,hidden";
4336 action: STATE_SET "default" 0.0;
4337 target: "elm.swallow.content";
4338 target: "padding_icon_text";
4340 program { name: "disable";
4341 signal: "elm,state,disabled";
4343 action: STATE_SET "disabled" 0.0;
4344 target: "button_image";
4346 after: "disable_text";
4348 program { name: "disable_text";
4352 get_state(PART:"elm.text", st, 30, vl);
4353 if (!strcmp(st, "visible"))
4354 set_state(PART:"elm.text", "disabled_visible", 0.0);
4356 set_state(PART:"elm.text", "disabled", 0.0);
4357 set_int(button_state, BUTTON_STATE_DISABLED);
4360 program { name: "enable";
4361 signal: "elm,state,enabled";
4363 action: STATE_SET "default" 0.0;
4364 target: "button_image";
4366 after: "enable_text";
4368 program { name: "enable_text";
4372 get_state(PART:"elm.text", st, 30, vl);
4373 if (!strcmp(st, "disabled_visible"))
4374 set_state(PART:"elm.text", "visible", 0.0);
4376 set_state(PART:"elm.text", "default", 0.0);
4377 set_int(button_state, BUTTON_STATE_ENABLED);
4380 program { name: "focused";
4381 //signal: "elm,action,focus";
4383 action: STATE_SET "focused" 0.0;
4384 target: "button_image";
4387 program { name: "unfocused";
4388 //signal: "elm,action,unfocus";
4390 action: STATE_SET "default" 0.0;
4391 target: "button_image";
4392 after: "unfocus_text";
4394 program { name: "unfocus_text";
4395 action: STATE_SET "visible" 0.0;
4400 ///////////////////////////////////////////////////////////////////////////////////////
4401 group { name: "elm/button/base/popup_button/default/multiline";
4403 image: "00_button_popup_normal.png" COMP;
4404 image: "00_button_popup_press.png" COMP;
4405 image: "00_button_popup_normal_focus.png" COMP;
4406 image: "00_button_popup_dim.png" COMP;
4409 style { name: "btn_popup_multiline_style";
4410 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4417 public button_state = BUTTON_STATE_ENABLED;
4420 part { name: "button_image";
4422 description { state: "default" 0.0;
4423 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4425 normal: "00_button_popup_normal.png";
4426 border: BUTTON_POPUP_BG_BORDER_INC;
4430 description { state: "clicked" 0.0;
4431 inherit: "default" 0.0;
4432 image.normal: "00_button_popup_press.png";
4434 description { state: "disabled" 0.0;
4435 inherit: "default" 0.0;
4436 image.normal: "00_button_popup_dim.png";
4438 description { state: "focused" 0.0;
4439 inherit: "default" 0.0;
4440 image.normal: "00_button_popup_normal_focus.png";
4443 part { name: "padding_left_top";
4447 description { state: "default" 0.0;
4449 rel2.relative: 0.0 0.0;
4450 min: BUTTON_POPUP_PADDING_MIN_INC;
4455 part { name: "padding_right_bottom";
4458 description { state: "default" 0.0;
4460 rel1.relative: 1.0 1.0;
4461 min: BUTTON_POPUP_PADDING_MIN_INC;
4466 part { name: "padding_icon_text";
4469 description { state: "default" 0.0; //when only icon or no icon is there
4473 to: "elm.swallow.content";
4475 rel2.to: "elm.swallow.content";
4480 description { state: "icononly" 0.0;
4481 inherit: "default" 0.0;
4483 description { state: "visible" 0.0; //when icon is visible
4484 inherit: "default" 0.0;
4485 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4488 part { name: "elm.swallow.content";
4492 description { state: "default" 0.0;
4497 to: "padding_left_top";
4501 to_x: "padding_left_top";
4502 to_y: "padding_right_bottom";
4506 description { state: "visible" 0.0;
4507 inherit: "default" 0.0;
4511 aspect_preference: VERTICAL;
4513 description { state: "icononly" 0.0;
4514 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4517 to: "padding_left_top";
4521 to_x: "padding_left_top";
4522 to_y: "padding_right_bottom";
4526 part { name: "elm.text";
4531 description { state: "default" 0.0;
4535 to_x: "padding_icon_text";
4536 to_y: "padding_left_top";
4540 to: "padding_right_bottom";
4542 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4544 style: "btn_popup_multiline_style";
4549 description { state: "visible" 0.0;
4550 inherit: "default" 0.0;
4552 min: BUTTON_POPUP_TEXT_MIN_INC;
4554 description { state: "clicked" 0.0;
4555 inherit: "default" 0.0;
4558 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4560 description { state: "disabled" 0.0;
4561 inherit: "default" 0.0;
4564 description { state: "disabled_visible" 0.0;
4565 inherit: "default" 0.0;
4566 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4568 min: BUTTON_POPUP_TEXT_MIN_INC;
4570 description { state: "focused" 0.0;
4571 inherit: "default" 0.0;
4574 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4577 part { name: "over2";
4580 ignore_flags: ON_HOLD;
4581 description { state: "default" 0.0;
4585 part { name: "over3";
4588 description { state: "default" 0.0;
4592 part { name: "clipper";
4594 description { state: "default" 0.0;
4595 color: 255 255 255 255;
4598 part { name: "disabler";
4600 description { state: "default" 0.0;
4604 description { state: "disabled" 0.0;
4605 inherit: "default" 0.0;
4611 program { name: "button_click";
4612 signal: "mouse,down,1";
4614 action: SIGNAL_EMIT "elm,action,press" "";
4615 after: "button_click_anim";
4617 program { name: "button_click_anim";
4618 action: STATE_SET "clicked" 0.0;
4619 target: "button_image";
4620 after: "text_clicked";
4622 program { name: "text_clicked";
4626 get_state(PART:"elm.text", st, 30, vl);
4627 if (!strcmp(st, "visible"))
4628 set_state(PART:"elm.text", "clicked", 0.0);
4631 program { name: "button_unpress";
4632 action: SIGNAL_EMIT "elm,action,unpress" "";
4634 program { name: "button_mouseout_clicked";
4635 signal: "mouse,up,1";
4640 get_state(PART:"elm.swallow.content", st, 30, vl);
4641 if (strcmp(st, "icononly"))
4643 emit("elm,action,default,text,set", "");
4644 set_state(PART:"elm.text", "visible", 0.0);
4646 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4647 set_state(PART:"button_image", "default", 0.0);
4649 after: button_unpress;
4651 program { name: "touch_snd";
4652 signal: "mouse,clicked,1";
4654 action: PLAY_SAMPLE "touch_sound" 1.0;
4655 after: button_unclick3;
4657 program { name: "button_unclick3";
4658 action: SIGNAL_EMIT "elm,action,click" "";
4660 program { name: "text_show";
4661 signal: "elm,state,text,visible";
4666 get_state(PART:"elm.swallow.content", st, 30, vl);
4667 if (!strcmp(st, "icononly"))
4669 set_state(PART:"elm.swallow.content", "visible", 0.0);
4670 set_state(PART:"padding_icon_text", "visible", 0.0);
4672 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4673 set_state(PART:"elm.text", "visible", 0.0);
4675 set_state(PART:"elm.text", "disabled_visible", 0.0);
4678 program { name: "text_hide";
4679 signal: "elm,state,text,hidden";
4684 get_state(PART:"elm.swallow.content", st, 30, vl);
4685 if (!strcmp(st, "visible"))
4687 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4688 set_state(PART:"padding_icon_text", "icononly", 0.0);
4690 set_state(PART:"elm.text", "default", 0.0);
4693 program { name: "icon_show";
4694 signal: "elm,state,icon,visible";
4699 get_state(PART:"elm.text", st, 30, vl);
4700 if (!strcmp(st, "visible"))
4702 set_state(PART:"elm.swallow.content", "visible", 0.0);
4703 set_state(PART:"padding_icon_text", "visible", 0.0);
4707 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4708 set_state(PART:"padding_icon_text", "icononly", 0.0);
4712 program { name: "icon_hide";
4713 signal: "elm,state,icon,hidden";
4715 action: STATE_SET "default" 0.0;
4716 target: "elm.swallow.content";
4717 target: "padding_icon_text";
4719 program { name: "disable";
4720 signal: "elm,state,disabled";
4722 action: STATE_SET "disabled" 0.0;
4723 target: "button_image";
4725 after: "disable_text";
4727 program { name: "disable_text";
4731 get_state(PART:"elm.text", st, 30, vl);
4732 if (!strcmp(st, "visible"))
4733 set_state(PART:"elm.text", "disabled_visible", 0.0);
4735 set_state(PART:"elm.text", "disabled", 0.0);
4736 set_int(button_state, BUTTON_STATE_DISABLED);
4739 program { name: "enable";
4740 signal: "elm,state,enabled";
4742 action: STATE_SET "default" 0.0;
4743 target: "button_image";
4745 after: "enable_text";
4747 program { name: "enable_text";
4751 get_state(PART:"elm.text", st, 30, vl);
4752 if (!strcmp(st, "disabled_visible"))
4753 set_state(PART:"elm.text", "visible", 0.0);
4755 set_state(PART:"elm.text", "default", 0.0);
4756 set_int(button_state, BUTTON_STATE_ENABLED);
4759 program { name: "focused";
4760 //signal: "elm,action,focus";
4762 action: STATE_SET "focused" 0.0;
4763 target: "button_image";
4766 program { name: "unfocused";
4767 //signal: "elm,action,unfocus";
4769 action: STATE_SET "default" 0.0;
4770 target: "button_image";
4771 after: "unfocus_text";
4773 program { name: "unfocus_text";
4774 action: STATE_SET "visible" 0.0;
4780 ///////////////////////////////////////////////////////////////////////////////////////
4781 #define BUTTON_CIRCLE_STYLES(style_name, circle_normal, circle_press, image_normal, image_press, min_width, min_height) \
4782 group { name: "elm/button/base/"style_name; \
4784 image: circle_normal COMP; \
4785 image: circle_press COMP; \
4786 image: image_normal COMP; \
4787 image: image_press COMP; \
4790 part { name: "button_image"; \
4792 description { state: "default" 0.0; \
4793 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4794 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4795 image.normal: circle_normal; \
4796 color: 255 255 255 255; \
4799 state: "clicked" 0.0; \
4800 inherit: "default" 0.0; \
4801 image.normal: circle_press; \
4804 state: "disabled" 0.0; \
4805 inherit: "default" 0.0; \
4806 color: 255 255 255 128; \
4809 part { name: "button_center_part"; \
4811 description { state: "default" 0.0; \
4812 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4813 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4814 image.normal: image_normal; \
4815 color: 255 255 255 255; \
4818 state: "clicked" 0.0; \
4819 inherit: "default" 0.0; \
4820 image.normal: image_press; \
4823 state: "disabled" 0.0; \
4824 inherit: "default" 0.0; \
4825 color: 255 255 255 128; \
4828 part { name: "over1"; \
4830 ignore_flags: ON_HOLD; \
4831 description { state: "default" 0.0; \
4833 min: min_width min_height; \
4836 part { name: "over2"; \
4838 description { state: "default" 0.0; \
4842 part { name: "disabler"; \
4844 description { state: "default" 0.0; \
4848 description { state: "disabled" 0.0; \
4849 inherit: "default" 0.0; \
4855 program { name: "button_click"; \
4856 signal: "mouse,down,1"; \
4858 action: SIGNAL_EMIT "elm,action,press" ""; \
4859 after: "button_click_anim"; \
4861 program { name: "button_click_anim"; \
4862 action: STATE_SET "clicked" 0.0; \
4863 target: "button_image"; \
4864 target: "button_center_part"; \
4866 program { name: "button_unclick"; \
4867 signal: "mouse,up,1"; \
4869 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4870 after: "button_unclick_anim"; \
4872 program { name: "button_unclick_anim"; \
4873 action: STATE_SET "default" 0.0; \
4874 target: "button_image"; \
4875 target: "button_center_part"; \
4877 program { name: "touch_snd"; \
4878 signal: "mouse,clicked,1"; \
4880 action: PLAY_SAMPLE "touch_sound" 1.0; \
4881 after: button_unclick3; \
4883 program { name: "button_unclick3"; \
4884 action: SIGNAL_EMIT "elm,action,click" ""; \
4886 program { name: "disable"; \
4887 signal: "elm,state,disabled"; \
4889 action: STATE_SET "disabled" 0.0; \
4890 target: "disabler"; \
4891 target: "button_image"; \
4892 target: "button_center_part"; \
4894 program { name: "enable"; \
4895 signal: "elm,state,enabled"; \
4897 action: STATE_SET "default" 0.0; \
4898 target: "disabler"; \
4899 target: "button_image"; \
4900 target: "button_center_part"; \
4905 ///////////////////////////////////////////////////////////////////////////////////////
4906 BUTTON_CIRCLE_STYLES("reveal", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4908 ///////////////////////////////////////////////////////////////////////////////////////
4909 BUTTON_CIRCLE_STYLES("reveal/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4911 ///////////////////////////////////////////////////////////////////////////////////////
4912 BUTTON_CIRCLE_STYLES("expand/closed", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4914 ///////////////////////////////////////////////////////////////////////////////////////
4915 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4917 ///////////////////////////////////////////////////////////////////////////////////////
4918 BUTTON_CIRCLE_STYLES("expand/opened", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4920 ///////////////////////////////////////////////////////////////////////////////////////
4921 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4923 ///////////////////////////////////////////////////////////////////////////////////////
4924 BUTTON_CIRCLE_STYLES("info", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4926 ///////////////////////////////////////////////////////////////////////////////////////
4927 BUTTON_CIRCLE_STYLES("info/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4929 ///////////////////////////////////////////////////////////////////////////////////////
4930 BUTTON_CIRCLE_STYLES("rename", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4932 ///////////////////////////////////////////////////////////////////////////////////////
4933 BUTTON_CIRCLE_STYLES("rename/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4935 ///////////////////////////////////////////////////////////////////////////////////////
4936 BUTTON_CIRCLE_STYLES("call", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4938 ///////////////////////////////////////////////////////////////////////////////////////
4939 BUTTON_CIRCLE_STYLES("call/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4941 ///////////////////////////////////////////////////////////////////////////////////////
4942 BUTTON_CIRCLE_STYLES("warning", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4944 ///////////////////////////////////////////////////////////////////////////////////////
4945 BUTTON_CIRCLE_STYLES("warning/extended", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4947 ///////////////////////////////////////////////////////////////////////////////////////
4948 BUTTON_CIRCLE_STYLES("plus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4950 ///////////////////////////////////////////////////////////////////////////////////////
4951 BUTTON_CIRCLE_STYLES("plus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4953 ///////////////////////////////////////////////////////////////////////////////////////
4954 BUTTON_CIRCLE_STYLES("minus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4956 ///////////////////////////////////////////////////////////////////////////////////////
4957 BUTTON_CIRCLE_STYLES("minus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4959 ///////////////////////////////////////////////////////////////////////////////////////
4960 BUTTON_CIRCLE_STYLES("cancel", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4962 ///////////////////////////////////////////////////////////////////////////////////////
4963 BUTTON_CIRCLE_STYLES("cancel/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4965 ///////////////////////////////////////////////////////////////////////////////////////
4966 BUTTON_CIRCLE_STYLES("send", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4968 ///////////////////////////////////////////////////////////////////////////////////////
4969 BUTTON_CIRCLE_STYLES("send/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4970 ///////////////////////////////////////////////////////////////////////////////////////
4972 group { name: "elm/button/base/circle/empty";
4974 image: "00_btn_circle_bg_normal.png" COMP;
4975 image: "00_btn_circle_bg_press.png" COMP;
4978 part { name: "button_image";
4980 description { state: "default" 0.0;
4981 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4982 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4984 image.normal: "00_btn_circle_bg_normal.png";
4985 color: 255 255 255 255;
4987 description { state: "clicked" 0.0;
4988 inherit: "default" 0.0;
4989 image.normal: "00_btn_circle_bg_press.png";
4991 description { state: "disabled" 0.0;
4992 inherit: "default" 0.0;
4993 color: 255 255 255 128;
4996 part { name: "elm.swallow.content";
4999 description { state: "default" 0.0;
5000 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5001 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5003 color: 255 255 255 255;
5006 state: "disabled" 0.0;
5007 inherit: "default" 0.0;
5008 color: 255 255 255 128;
5011 part { name: "over1";
5013 ignore_flags: ON_HOLD;
5014 description { state: "default" 0.0;
5018 part { name: "over2";
5020 description { state: "default" 0.0;
5024 part { name: "disabler";
5026 description { state: "default" 0.0;
5030 description { state: "disabled" 0.0;
5031 inherit: "default" 0.0;
5037 program { name: "button_click";
5038 signal: "mouse,down,1";
5040 action: SIGNAL_EMIT "elm,action,press" "";
5041 after: "button_click_anim";
5043 program { name: "button_click_anim";
5044 action: STATE_SET "clicked" 0.0;
5045 target: "button_image";
5047 program { name: "touch_snd";
5048 signal: "mouse,clicked,1";
5050 action: PLAY_SAMPLE "touch_sound" 1.0;
5051 after: button_unclick2;
5053 program { name: "button_unclick2";
5054 action: SIGNAL_EMIT "elm,action,click" "";
5056 program { name: "button_unclick";
5057 signal: "mouse,up,1";
5059 action: SIGNAL_EMIT "elm,action,unpress" "";
5060 after: "button_unclick_anim";
5062 program { name: "button_unclick_anim";
5063 action: STATE_SET "default" 0.0;
5064 target: "button_image";
5066 program { name: "disable";
5067 signal: "elm,state,disabled";
5069 action: STATE_SET "disabled" 0.0;
5071 target: "button_image";
5073 program { name: "enable";
5074 signal: "elm,state,enabled";
5076 action: STATE_SET "default" 0.0;
5078 target: "button_image";
5080 program { name: "icon_show";
5081 signal: "elm,state,icon,visible";
5083 action: STATE_SET "visible" 0.0;
5084 target: "elm.swallow.content";
5086 program { name: "icon_hide";
5087 signal: "elm,state,icon,hidden";
5089 action: STATE_SET "default" 0.0;
5090 target: "elm.swallow.content";
5095 ///////////////////////////////////////////////////////////////////////////////////////
5096 #define BUTTON_EDIT_STYLES(style_name, edit_normal, edit_press, image_normal, image_press, min_width, min_height) \
5097 group { name: "elm/button/base/contacts/"style_name; \
5098 alias: "elm/button/base/"style_name; \
5100 image: image_normal COMP; \
5101 image: image_press COMP; \
5102 image: edit_normal COMP; \
5103 image: edit_press COMP; \
5104 image: "00_button_edit_dim.png" COMP; \
5105 image: "00_button_edit_focus.png" COMP; \
5108 part { name: "button_image"; \
5110 description { state: "default" 0.0; \
5111 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5112 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5114 normal: edit_normal; \
5115 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5120 state: "clicked" 0.0; \
5121 inherit: "default" 0.0; \
5122 image.normal: edit_press; \
5125 state: "disabled" 0.0; \
5126 inherit: "default" 0.0; \
5127 image.normal: "00_button_edit_dim.png"; \
5130 state: "focused" 0.0; \
5131 inherit: "default" 0.0; \
5132 image.normal: "00_button_edit_focus.png"; \
5135 part { name: "button_center_part"; \
5138 description { state: "default" 0.0; \
5139 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5140 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5142 normal: image_normal; \
5143 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5148 state: "clicked" 0.0; \
5149 inherit: "default" 0.0; \
5150 image.normal: image_press; \
5153 part { name: "over1"; \
5156 ignore_flags: ON_HOLD; \
5157 description { state: "default" 0.0; \
5159 min: min_width min_height; \
5162 part { name: "over2"; \
5164 description { state: "default" 0.0; \
5168 part { name: "disabler"; \
5170 description { state: "default" 0.0; \
5174 description { state: "disabled" 0.0; \
5175 inherit: "default" 0.0; \
5181 program { name: "button_click"; \
5182 signal: "mouse,down,1"; \
5184 action: SIGNAL_EMIT "elm,action,press" ""; \
5185 after: "button_click_anim"; \
5187 program { name: "button_click_anim"; \
5188 action: STATE_SET "clicked" 0.0; \
5189 target: "button_image"; \
5190 target: "button_center_part"; \
5192 program { name: "button_unclick"; \
5193 signal: "mouse,up,1"; \
5195 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5196 after: "button_unclick_anim"; \
5198 program { name: "button_unclick_anim"; \
5199 action: STATE_SET "default" 0.0; \
5200 target: "button_image"; \
5201 target: "button_center_part"; \
5203 program { name: "touch_snd"; \
5204 signal: "mouse,clicked,1"; \
5206 action: PLAY_SAMPLE "touch_sound" 1.0; \
5207 after: button_unclick3; \
5209 program { name: "button_unclick3"; \
5210 action: SIGNAL_EMIT "elm,action,click" ""; \
5212 program { name: "disable"; \
5213 signal: "elm,state,disabled"; \
5215 action: STATE_SET "disabled" 0.0; \
5216 target: "disabler"; \
5217 target: "button_image"; \
5219 program { name: "enable"; \
5220 signal: "elm,state,enabled"; \
5222 action: STATE_SET "default" 0.0; \
5223 target: "disabler"; \
5224 target: "button_image"; \
5228 ///////////////////////////////////////////////////////////////////////////////////////
5229 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)
5231 ///////////////////////////////////////////////////////////////////////////////////////
5232 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)
5234 ///////////////////////////////////////////////////////////////////////////////////////
5235 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)
5237 ///////////////////////////////////////////////////////////////////////////////////////
5238 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)
5240 ///////////////////////////////////////////////////////////////////////////////////////
5241 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)
5243 ///////////////////////////////////////////////////////////////////////////////////////
5244 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)
5246 ///////////////////////////////////////////////////////////////////////////////////////
5247 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)
5249 ///////////////////////////////////////////////////////////////////////////////////////
5250 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)
5252 ///////////////////////////////////////////////////////////////////////////////////////
5253 group { name: "elm/button/base/contacts/delete";
5255 image: "00_button_edit_Delete.png" COMP;
5256 image: "00_button_edit_Delete_press.png" COMP;
5257 image: "00_button_edit_dim.png" COMP;
5258 image: "00_button_edit_focus.png" COMP;
5261 public button_state = BUTTON_STATE_ENABLED;
5264 part { name: "button_image";
5266 description { state: "default" 0.0;
5267 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5269 normal: "00_button_edit_Delete.png";
5270 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5274 description { state: "clicked" 0.0;
5275 inherit: "default" 0.0;
5276 image.normal: "00_button_edit_Delete_press.png";
5278 description { state: "disabled" 0.0;
5279 inherit: "default" 0.0;
5280 image.normal: "00_button_edit_dim.png";
5282 description { state: "focused" 0.0;
5283 inherit: "default" 0.0;
5284 image.normal: "00_button_edit_focus.png";
5287 part { name: "padding_left_top";
5291 description { state: "default" 0.0;
5293 rel2.relative: 0.0 0.0;
5294 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5299 part { name: "padding_right_bottom";
5303 description { state: "default" 0.0;
5305 rel1.relative: 1.0 1.0;
5306 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5311 part { name: "padding_icon_text";
5315 description { state: "default" 0.0; //when only icon or no icon is there
5319 to: "elm.swallow.content";
5321 rel2.to: "elm.swallow.content";
5326 description { state: "icononly" 0.0;
5327 inherit: "default" 0.0;
5329 description { state: "visible" 0.0; //when icon is visible
5330 inherit: "default" 0.0;
5331 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5334 part { name: "elm.swallow.content";
5338 description { state: "default" 0.0;
5343 to: "padding_left_top";
5347 to_x: "padding_left_top";
5348 to_y: "padding_right_bottom";
5352 description { state: "visible" 0.0;
5357 to: "padding_left_top";
5361 to_x: "padding_left_top";
5362 to_y: "padding_right_bottom";
5365 aspect_preference: VERTICAL;
5367 description { state: "icononly" 0.0;
5368 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5371 to: "padding_left_top";
5375 to: "padding_right_bottom";
5378 aspect_preference: VERTICAL;
5381 part { name: "elm.text";
5386 description { state: "default" 0.0;
5389 to_x: "padding_icon_text";
5390 to_y: "padding_left_top";
5394 to: "padding_right_bottom";
5396 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5398 font: "SLP:style=Medium";
5399 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5403 text_class: "slp_medium";
5406 description { state: "visible" 0.0;
5407 inherit: "default" 0.0;
5409 description { state: "clicked" 0.0;
5410 inherit: "default" 0.0;
5411 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5413 description { state: "disabled" 0.0;
5414 inherit: "default" 0.0;
5417 description { state: "disabled_visible" 0.0;
5418 inherit: "default" 0.0;
5419 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5421 description { state: "focused" 0.0;
5422 inherit: "default" 0.0;
5424 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5427 part { name: "over2";
5430 ignore_flags: ON_HOLD;
5431 description { state: "default" 0.0;
5435 part { name: "over3";
5438 description { state: "default" 0.0;
5442 part { name: "clipper";
5444 description { state: "default" 0.0;
5445 color: 255 255 255 255;
5448 part { name: "disabler";
5450 description { state: "default" 0.0;
5454 description { state: "disabled" 0.0;
5455 inherit: "default" 0.0;
5461 program { name: "button_click";
5462 signal: "mouse,down,1";
5464 action: SIGNAL_EMIT "elm,action,press" "";
5465 after: "button_click_anim";
5467 program { name: "button_click_anim";
5468 action: STATE_SET "clicked" 0.0;
5469 target: "button_image";
5470 after: "text_clicked";
5472 program { name: "text_clicked";
5476 get_state(PART:"elm.text", st, 30, vl);
5477 if (!strcmp(st, "visible"))
5478 set_state(PART:"elm.text", "clicked", 0.0);
5481 program { name: "button_unpress";
5482 action: SIGNAL_EMIT "elm,action,unpress" "";
5484 program { name: "button_mouseout_clicked";
5485 signal: "mouse,up,1";
5490 get_state(PART:"elm.swallow.content", st, 30, vl);
5491 if (strcmp(st, "icononly"))
5493 emit("elm,action,default,text,set", "");
5494 set_state(PART:"elm.text", "visible", 0.0);
5496 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5497 set_state(PART:"button_image", "default", 0.0);
5499 after: button_unpress;
5501 program { name: "touch_snd";
5502 signal: "mouse,clicked,1";
5504 action: PLAY_SAMPLE "touch_sound" 1.0;
5505 after: button_unclick3;
5507 program { name: "button_unclick3";
5508 action: SIGNAL_EMIT "elm,action,click" "";
5510 program { name: "text_show";
5511 signal: "elm,state,text,visible";
5516 get_state(PART:"elm.swallow.content", st, 30, vl);
5517 if (!strcmp(st, "icononly"))
5519 set_state(PART:"elm.swallow.content", "visible", 0.0);
5520 set_state(PART:"padding_icon_text", "visible", 0.0);
5522 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5523 set_state(PART:"elm.text", "visible", 0.0);
5525 set_state(PART:"elm.text", "disabled_visible", 0.0);
5528 program { name: "text_hide";
5529 signal: "elm,state,text,hidden";
5534 get_state(PART:"elm.swallow.content", st, 30, vl);
5535 if (!strcmp(st, "visible"))
5537 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5538 set_state(PART:"padding_icon_text", "icononly", 0.0);
5540 set_state(PART:"elm.text", "default", 0.0);
5543 program { name: "icon_show";
5544 signal: "elm,state,icon,visible";
5549 get_state(PART:"elm.text", st, 30, vl);
5550 if (!strcmp(st, "visible"))
5552 set_state(PART:"elm.swallow.content", "visible", 0.0);
5553 set_state(PART:"padding_icon_text", "visible", 0.0);
5557 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5558 set_state(PART:"padding_icon_text", "icononly", 0.0);
5562 program { name: "icon_hide";
5563 signal: "elm,state,icon,hidden";
5565 action: STATE_SET "default" 0.0;
5566 target: "elm.swallow.content";
5567 target: "padding_icon_text";
5569 program { name: "disable";
5570 signal: "elm,state,disabled";
5572 action: STATE_SET "disabled" 0.0;
5573 target: "button_image";
5575 after: "disable_text";
5577 program { name: "disable_text";
5581 get_state(PART:"elm.text", st, 30, vl);
5582 if (!strcmp(st, "visible"))
5583 set_state(PART:"elm.text", "disabled_visible", 0.0);
5585 set_state(PART:"elm.text", "disabled", 0.0);
5586 set_int(button_state, BUTTON_STATE_DISABLED);
5589 program { name: "enable";
5590 signal: "elm,state,enabled";
5592 action: STATE_SET "default" 0.0;
5593 target: "button_image";
5595 after: "enable_text";
5597 program { name: "enable_text";
5601 get_state(PART:"elm.text", st, 30, vl);
5602 if (!strcmp(st, "disabled_visible"))
5603 set_state(PART:"elm.text", "visible", 0.0);
5605 set_state(PART:"elm.text", "default", 0.0);
5606 set_int(button_state, BUTTON_STATE_ENABLED);
5609 program { name: "focused";
5610 //signal: "elm,action,focus";
5612 action: STATE_SET "focused" 0.0;
5613 target: "button_image";
5616 program { name: "unfocused";
5617 //signal: "elm,action,unfocus";
5619 action: STATE_SET "default" 0.0;
5620 target: "button_image";
5621 after: "unfocus_text";
5623 program { name: "unfocus_text";
5624 action: STATE_SET "visible" 0.0;
5630 ///////////////////////////////////////////////////////////////////////////////////////
5631 group { name: "elm/button/base/multiline";
5632 alias: "elm/button/base/text_only/multiline";
5634 image: "00_button_04_normal.png" COMP;
5635 image: "00_button_04_press.png" COMP;
5636 image: "00_button_04_dim.png" COMP;
5637 image: "00_button_04_normal_focus.png" COMP;
5640 public button_state = BUTTON_STATE_ENABLED;
5643 style { name: "btn_multiline_style";
5644 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5651 part { name: "button_image";
5653 description { state: "default" 0.0;
5656 normal: "00_button_04_normal.png";
5661 description { state: "clicked" 0.0;
5662 inherit: "default" 0.0;
5663 image.normal: "00_button_04_press.png";
5665 description { state: "disabled" 0.0;
5666 inherit: "default" 0.0;
5667 image.normal: "00_button_04_dim.png";
5669 description { state: "focused" 0.0;
5670 inherit: "default" 0.0;
5671 image.normal: "00_button_04_normal_focus.png";
5674 part { name: "padding_left_top";
5678 description { state: "default" 0.0;
5680 rel2.relative: 0.0 0.0;
5686 part { name: "padding_right_bottom";
5690 description { state: "default" 0.0;
5692 rel1.relative: 1.0 1.0;
5698 part { name: "icon_rect";
5702 description { state: "default" 0.0;
5708 to_x: "elm.swallow.content";
5709 to_y: "padding_left_top";
5713 to_x: "elm.swallow.content";
5714 to_y: "padding_right_bottom";
5720 part { name: "padding_icon_text";
5724 description { state: "default" 0.0; //when only icon or no icon is there
5730 rel2.to: "icon_rect";
5735 description { state: "icononly" 0.0;
5736 inherit: "default" 0.0;
5738 description { state: "visible" 0.0; //when icon is visible
5744 rel2.to: "icon_rect";
5750 part { name: "elm.swallow.content";
5754 description { state: "default" 0.0;
5759 to: "padding_left_top";
5763 to_x: "padding_left_top";
5764 to_y: "padding_right_bottom";
5768 description { state: "visible" 0.0;
5773 to: "padding_left_top";
5777 to_x: "padding_left_top";
5778 to_y: "padding_right_bottom";
5781 aspect_preference: VERTICAL;
5783 description { state: "icononly" 0.0;
5787 to: "padding_left_top";
5791 to: "padding_right_bottom";
5794 aspect_preference: VERTICAL;
5797 part { name: "elm.text";
5802 description { state: "default" 0.0;
5806 to_x: "padding_icon_text";
5807 to_y: "padding_left_top";
5811 to: "padding_right_bottom";
5813 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5815 style: "btn_multiline_style";
5820 description { state: "visible" 0.0;
5821 inherit: "default" 0.0;
5825 description { state: "clicked" 0.0;
5826 inherit: "default" 0.0;
5829 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5831 description { state: "disabled" 0.0;
5832 inherit: "default" 0.0;
5835 description { state: "disabled_visible" 0.0;
5836 inherit: "default" 0.0;
5837 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5841 description { state: "focused" 0.0;
5842 inherit: "default" 0.0;
5845 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5848 part { name: "over2";
5851 ignore_flags: ON_HOLD;
5852 description { state: "default" 0.0;
5856 part { name: "over3";
5859 description { state: "default" 0.0;
5863 part { name: "clipper";
5865 description { state: "default" 0.0;
5866 color: 255 255 255 255;
5869 part { name: "disabler";
5871 description { state: "default" 0.0;
5875 description { state: "disabled" 0.0;
5876 inherit: "default" 0.0;
5882 program { name: "button_click";
5883 signal: "mouse,down,1";
5885 action: SIGNAL_EMIT "elm,action,press" "";
5886 after: "button_click_anim";
5888 program { name: "button_click_anim";
5889 action: STATE_SET "clicked" 0.0;
5890 target: "button_image";
5891 after: "text_clicked";
5893 program { name: "text_clicked";
5897 get_state(PART:"elm.text", st, 30, vl);
5898 if (!strcmp(st, "visible"))
5899 set_state(PART:"elm.text", "clicked", 0.0);
5902 program { name: "button_unpress";
5903 action: SIGNAL_EMIT "elm,action,unpress" "";
5905 program { name: "button_mouseout_clicked";
5906 signal: "mouse,up,1";
5911 get_state(PART:"elm.swallow.content", st, 30, vl);
5912 if (strcmp(st, "icononly"))
5914 emit("elm,action,default,text,set", "");
5915 set_state(PART:"elm.text", "visible", 0.0);
5917 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5918 set_state(PART:"button_image", "default", 0.0);
5920 after: button_unpress;
5922 program { name: "touch_snd";
5923 signal: "mouse,clicked,1";
5925 action: PLAY_SAMPLE "touch_sound" 1.0;
5926 after: button_unclick3;
5928 program { name: "button_unclick3";
5929 action: SIGNAL_EMIT "elm,action,click" "";
5931 program { name: "text_show";
5932 signal: "elm,state,text,visible";
5937 get_state(PART:"elm.swallow.content", st, 30, vl);
5938 if (!strcmp(st, "icononly"))
5940 set_state(PART:"elm.swallow.content", "visible", 0.0);
5941 set_state(PART:"padding_icon_text", "visible", 0.0);
5943 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5944 set_state(PART:"elm.text", "visible", 0.0);
5946 set_state(PART:"elm.text", "disabled_visible", 0.0);
5949 program { name: "text_hide";
5950 signal: "elm,state,text,hidden";
5955 get_state(PART:"elm.swallow.content", st, 30, vl);
5956 if (!strcmp(st, "visible"))
5958 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5959 set_state(PART:"padding_icon_text", "icononly", 0.0);
5961 set_state(PART:"elm.text", "default", 0.0);
5964 program { name: "icon_show";
5965 signal: "elm,state,icon,visible";
5970 get_state(PART:"elm.text", st, 30, vl);
5971 if (!strcmp(st, "visible"))
5973 set_state(PART:"elm.swallow.content", "visible", 0.0);
5974 set_state(PART:"padding_icon_text", "visible", 0.0);
5978 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5979 set_state(PART:"padding_icon_text", "icononly", 0.0);
5983 program { name: "icon_hide";
5984 signal: "elm,state,icon,hidden";
5986 action: STATE_SET "default" 0.0;
5987 target: "elm.swallow.content";
5988 target: "padding_icon_text";
5990 program { name: "disable";
5991 signal: "elm,state,disabled";
5993 action: STATE_SET "disabled" 0.0;
5994 target: "button_image";
5996 after: "disable_text";
5998 program { name: "disable_text";
6002 get_state(PART:"elm.text", st, 30, vl);
6003 if (!strcmp(st, "visible"))
6004 set_state(PART:"elm.text", "disabled_visible", 0.0);
6006 set_state(PART:"elm.text", "disabled", 0.0);
6007 set_int(button_state, BUTTON_STATE_DISABLED);
6010 program { name: "enable";
6011 signal: "elm,state,enabled";
6013 action: STATE_SET "default" 0.0;
6014 target: "button_image";
6016 after: "enable_text";
6018 program { name: "enable_text";
6022 get_state(PART:"elm.text", st, 30, vl);
6023 if (!strcmp(st, "disabled_visible"))
6024 set_state(PART:"elm.text", "visible", 0.0);
6026 set_state(PART:"elm.text", "default", 0.0);
6027 set_int(button_state, BUTTON_STATE_ENABLED);
6030 program { name: "focused";
6031 //signal: "elm,action,focus";
6033 action: STATE_SET "focused" 0.0;
6034 target: "button_image";
6037 program { name: "unfocused";
6038 //signal: "elm,action,unfocus";
6040 action: STATE_SET "default" 0.0;
6041 target: "button_image";
6042 after: "unfocus_text";
6044 program { name: "unfocus_text";
6045 action: STATE_SET "visible" 0.0;
6051 ///////////////////////////////////////////////////////////////////////////////////////
6052 group { name: "elm/button/base/default";
6054 image: "00_button_01_normal.png" COMP;
6055 image: "00_button_01_normal_press.png" COMP;
6056 image: "00_button_01_normal_dim.png" COMP;
6057 image: "00_button_01_normal_Focus.png" COMP;
6060 public button_state = BUTTON_STATE_ENABLED;
6063 part { name: "button_image";
6065 description { state: "default" 0.0;
6066 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6068 normal: "00_button_01_normal.png";
6069 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6073 description { state: "clicked" 0.0;
6074 inherit: "default" 0.0;
6075 image.normal: "00_button_01_normal_press.png";
6077 description { state: "disabled" 0.0;
6078 inherit: "default" 0.0;
6079 image.normal: "00_button_01_normal_dim.png";
6081 description { state: "focused" 0.0;
6082 inherit: "default" 0.0;
6083 image.normal: "00_button_01_normal_Focus.png";
6086 part { name: "padding_left_top";
6090 description { state: "default" 0.0;
6092 rel2.relative: 0.0 0.0;
6093 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6098 part { name: "padding_right_bottom";
6102 description { state: "default" 0.0;
6104 rel1.relative: 1.0 1.0;
6105 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6110 part { name: "padding_icon_text";
6114 description { state: "default" 0.0; //when only icon or no icon is there
6119 to: "elm.swallow.content";
6121 rel2.to: "elm.swallow.content";
6125 description { state: "icononly" 0.0;
6126 inherit: "default" 0.0;
6128 description { state: "visible" 0.0; //when icon is visible
6129 inherit: "default" 0.0;
6130 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6133 part { name: "elm.swallow.content";
6137 description { state: "default" 0.0;
6142 to: "padding_left_top";
6146 to_x: "padding_left_top";
6147 to_y: "padding_right_bottom";
6151 description { state: "visible" 0.0;
6156 to: "padding_left_top";
6160 to_x: "padding_left_top";
6161 to_y: "padding_right_bottom";
6164 aspect_preference: VERTICAL;
6166 description { state: "icononly" 0.0;
6167 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6170 to_x: "padding_left_top";
6174 to_x: "padding_right_bottom";
6177 aspect_preference: VERTICAL;
6180 part { name: "elm.text";
6185 description { state: "default" 0.0;
6190 to_x: "padding_icon_text";
6191 to_y: "padding_left_top";
6195 to: "padding_right_bottom";
6197 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6199 font: "SLP:style=Medium";
6200 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6202 text_class: "slp_medium";
6205 description { state: "visible" 0.0;
6206 inherit: "default" 0.0;
6208 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6210 description { state: "clicked" 0.0;
6211 inherit: "default" 0.0;
6213 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6214 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6216 description { state: "disabled" 0.0;
6217 inherit: "default" 0.0;
6219 description { state: "disabled_visible" 0.0;
6220 inherit: "default" 0.0;
6221 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6223 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6225 description { state: "focused" 0.0;
6226 inherit: "default" 0.0;
6229 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6232 part { name: "over2";
6235 ignore_flags: ON_HOLD;
6236 description { state: "default" 0.0;
6240 part { name: "over3";
6243 description { state: "default" 0.0;
6247 part { name: "clipper";
6249 description { state: "default" 0.0;
6250 color: 255 255 255 255;
6253 part { name: "disabler";
6255 description { state: "default" 0.0;
6259 description { state: "disabled" 0.0;
6260 inherit: "default" 0.0;
6266 program { name: "button_click";
6267 signal: "mouse,down,1";
6269 action: SIGNAL_EMIT "elm,action,press" "";
6270 after: "button_click_anim";
6272 program { name: "button_click_anim";
6273 action: STATE_SET "clicked" 0.0;
6274 target: "button_image";
6275 after: "text_clicked";
6277 program { name: "text_clicked";
6281 get_state(PART:"elm.text", st, 30, vl);
6282 if (!strcmp(st, "visible"))
6283 set_state(PART:"elm.text", "clicked", 0.0);
6286 program { name: "button_unpress";
6287 action: SIGNAL_EMIT "elm,action,unpress" "";
6289 program { name: "button_mouseout_clicked";
6290 signal: "mouse,up,1";
6295 get_state(PART:"elm.swallow.content", st, 30, vl);
6296 if (strcmp(st, "icononly"))
6298 emit("elm,action,default,text,set", "");
6299 set_state(PART:"elm.text", "visible", 0.0);
6301 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6302 set_state(PART:"button_image", "default", 0.0);
6304 after: button_unpress;
6306 program { name: "touch_snd";
6307 signal: "mouse,clicked,1";
6309 action: PLAY_SAMPLE "touch_sound" 1.0;
6310 after: button_unclick3;
6312 program { name: "button_unclick3";
6313 action: SIGNAL_EMIT "elm,action,click" "";
6315 program { name: "text_show";
6316 signal: "elm,state,text,visible";
6321 get_state(PART:"elm.swallow.content", st, 30, vl);
6322 if (!strcmp(st, "icononly"))
6324 set_state(PART:"elm.swallow.content", "visible", 0.0);
6325 set_state(PART:"padding_icon_text", "visible", 0.0);
6327 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6328 set_state(PART:"elm.text", "visible", 0.0);
6330 set_state(PART:"elm.text", "disabled_visible", 0.0);
6333 program { name: "text_hide";
6334 signal: "elm,state,text,hidden";
6339 get_state(PART:"elm.swallow.content", st, 30, vl);
6340 if (!strcmp(st, "visible"))
6342 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6343 set_state(PART:"padding_icon_text", "icononly", 0.0);
6345 set_state(PART:"elm.text", "default", 0.0);
6348 program { name: "icon_show";
6349 signal: "elm,state,icon,visible";
6354 get_state(PART:"elm.text", st, 30, vl);
6355 if (!strcmp(st, "visible"))
6357 set_state(PART:"elm.swallow.content", "visible", 0.0);
6358 set_state(PART:"padding_icon_text", "visible", 0.0);
6362 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6363 set_state(PART:"padding_icon_text", "icononly", 0.0);
6367 program { name: "icon_hide";
6368 signal: "elm,state,icon,hidden";
6370 action: STATE_SET "default" 0.0;
6371 target: "elm.swallow.content";
6372 target: "padding_icon_text";
6374 program { name: "disable";
6375 signal: "elm,state,disabled";
6377 action: STATE_SET "disabled" 0.0;
6378 target: "button_image";
6380 after: "disable_text";
6382 program { name: "disable_text";
6386 get_state(PART:"elm.text", st, 30, vl);
6387 if (!strcmp(st, "visible"))
6388 set_state(PART:"elm.text", "disabled_visible", 0.0);
6390 set_state(PART:"elm.text", "disabled", 0.0);
6391 set_int(button_state, BUTTON_STATE_DISABLED);
6394 program { name: "enable";
6395 signal: "elm,state,enabled";
6397 action: STATE_SET "default" 0.0;
6398 target: "button_image";
6400 after: "enable_text";
6402 program { name: "enable_text";
6406 get_state(PART:"elm.text", st, 30, vl);
6407 if (!strcmp(st, "disabled_visible"))
6408 set_state(PART:"elm.text", "visible", 0.0);
6410 set_state(PART:"elm.text", "default", 0.0);
6411 set_int(button_state, BUTTON_STATE_ENABLED);
6414 program { name: "focused";
6415 //signal: "elm,action,focus";
6417 action: STATE_SET "focused" 0.0;
6418 target: "button_image";
6421 program { name: "unfocused";
6422 //signal: "elm,action,unfocus";
6424 action: STATE_SET "default" 0.0;
6425 target: "button_image";
6426 after: "unfocus_text";
6428 program { name: "unfocus_text";
6429 action: STATE_SET "visible" 0.0;
6435 ///////////////////////////////////////////////////////////////////////////////////////
6436 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6437 group { name: "elm/button/base/"style_name; \
6439 image: image_normal COMP; \
6440 image: image_press COMP; \
6441 image: image_disable COMP; \
6442 image: "00_button_01_normal.png" COMP; \
6443 image: "00_button_01_normal_press.png" COMP; \
6444 image: "00_button_01_normal_dim.png" COMP; \
6445 image: "00_button_01_normal_Focus.png" COMP; \
6448 part { name: "button_image"; \
6450 description { state: "default" 0.0; \
6451 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6452 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6454 normal: "00_button_01_normal.png"; \
6455 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6460 state: "clicked" 0.0; \
6461 inherit: "default" 0.0; \
6462 image.normal: "00_button_01_normal_press.png"; \
6465 state: "disabled" 0.0; \
6466 inherit: "default" 0.0; \
6467 image.normal: "00_button_01_normal_dim.png"; \
6470 state: "focused" 0.0; \
6471 inherit: "default" 0.0; \
6472 image.normal: "00_button_01_normal_Focus.png"; \
6475 part { name: "button_center_part"; \
6477 description { state: "default" 0.0; \
6478 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6479 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6480 image.normal: image_normal; \
6483 state: "clicked" 0.0; \
6484 inherit: "default" 0.0; \
6485 image.normal: image_press; \
6488 state: "disabled" 0.0; \
6489 inherit: "default" 0.0; \
6490 image.normal: image_disable; \
6493 part { name: "over1"; \
6495 ignore_flags: ON_HOLD; \
6496 description { state: "default" 0.0; \
6500 part { name: "over2"; \
6502 description { state: "default" 0.0; \
6506 part { name: "disabler"; \
6508 description { state: "default" 0.0; \
6512 description { state: "disabled" 0.0; \
6513 inherit: "default" 0.0; \
6519 program { name: "button_click"; \
6520 signal: "mouse,down,1"; \
6522 action: SIGNAL_EMIT "elm,action,press" ""; \
6523 after: "button_click_anim"; \
6525 program { name: "button_click_anim"; \
6526 action: STATE_SET "clicked" 0.0; \
6527 target: "button_image"; \
6528 target: "button_center_part"; \
6530 program { name: "button_unclick"; \
6531 signal: "mouse,up,1"; \
6533 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6534 after: "button_unclick_anim"; \
6536 program { name: "button_unclick_anim"; \
6537 action: STATE_SET "default" 0.0; \
6538 target: "button_image"; \
6539 target: "button_center_part"; \
6541 program { name: "touch_snd"; \
6542 signal: "mouse,clicked,1"; \
6544 action: PLAY_SAMPLE "touch_sound" 1.0; \
6545 after: button_unclick3; \
6547 program { name: "button_unclick3"; \
6548 action: SIGNAL_EMIT "elm,action,click" ""; \
6550 program { name: "disable"; \
6551 signal: "elm,state,disabled"; \
6553 action: STATE_SET "disabled" 0.0; \
6554 target: "disabler"; \
6555 target: "button_image"; \
6556 target: "button_center_part"; \
6558 program { name: "enable"; \
6559 signal: "elm,state,enabled"; \
6561 action: STATE_SET "default" 0.0; \
6562 target: "disabler"; \
6563 target: "button_image"; \
6564 target: "button_center_part"; \
6568 ///////////////////////////////////////////////////////////////////////////////////////
6569 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")
6570 ///////////////////////////////////////////////////////////////////////////////////////
6571 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")
6572 ///////////////////////////////////////////////////////////////////////////////////////
6573 group { name: "elm/button/base/hidden";
6575 image: "00_button_sweep.png" COMP;
6576 image: "00_button_sweep_press.png" COMP;
6577 image: "00_button_sweep_focus.png" COMP;
6578 image: "00_button_sweep_dim.png" COMP;
6581 public button_state = BUTTON_STATE_ENABLED;
6584 part { name: "button_image";
6586 description { state: "default" 0.0;
6587 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6589 normal: "00_button_sweep.png";
6590 border: BUTTON_HIDDEN_BG_BORDER_INC;
6594 description { state: "clicked" 0.0;
6595 inherit: "default" 0.0;
6596 image.normal: "00_button_sweep_press.png";
6598 description { state: "disabled" 0.0;
6599 inherit: "default" 0.0;
6600 image.normal: "00_button_sweep_dim.png";
6602 description { state: "focused" 0.0;
6603 inherit: "default" 0.0;
6604 image.normal: "00_button_sweep_focus.png";
6607 part { name: "padding_left_top";
6611 description { state: "default" 0.0;
6613 rel2.relative: 0.0 0.0;
6614 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6619 part { name: "padding_right_bottom";
6623 description { state: "default" 0.0;
6625 rel1.relative: 1.0 1.0;
6626 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6631 part { name: "icon_rect";
6635 description { state: "default" 0.0;
6636 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6640 to_x: "elm.swallow.content";
6641 to_y: "padding_left_top";
6645 to_x: "elm.swallow.content";
6646 to_y: "padding_right_bottom";
6652 part { name: "padding_icon_text";
6656 description { state: "default" 0.0; //when only icon or no icon is there
6662 rel2.to: "icon_rect";
6667 description { state: "icononly" 0.0;
6668 inherit: "default" 0.0;
6670 description { state: "visible" 0.0; //when icon is visible
6676 rel2.to: "icon_rect";
6678 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6682 part { name: "elm.swallow.content";
6686 description { state: "default" 0.0;
6691 to: "padding_left_top";
6695 to_x: "padding_left_top";
6696 to_y: "padding_right_bottom";
6700 description { state: "visible" 0.0;
6705 to: "padding_left_top";
6709 to_x: "padding_left_top";
6710 to_y: "padding_right_bottom";
6713 aspect_preference: VERTICAL;
6715 description { state: "icononly" 0.0;
6716 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6719 to: "padding_left_top";
6723 to_x: "padding_left_top";
6724 to_y: "padding_right_bottom";
6727 aspect_preference: VERTICAL;
6730 part { name: "elm.text";
6735 description { state: "default" 0.0;
6739 to_x: "padding_icon_text";
6740 to_y: "padding_left_top";
6744 to: "padding_right_bottom";
6746 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6748 font: "SLP:style=Medium";
6749 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6751 text_class: "slp_medium";
6754 description { state: "visible" 0.0;
6755 inherit: "default" 0.0;
6757 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6759 description { state: "clicked" 0.0;
6760 inherit: "default" 0.0;
6763 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6765 description { state: "disabled" 0.0;
6766 inherit: "default" 0.0;
6769 description { state: "disabled_visible" 0.0;
6770 inherit: "default" 0.0;
6771 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6773 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6775 description { state: "focused" 0.0;
6776 inherit: "default" 0.0;
6779 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6782 part { name: "over2";
6785 ignore_flags: ON_HOLD;
6786 description { state: "default" 0.0;
6790 part { name: "over3";
6793 description { state: "default" 0.0;
6797 part { name: "clipper";
6799 description { state: "default" 0.0;
6800 color: 255 255 255 255;
6803 part { name: "disabler";
6805 description { state: "default" 0.0;
6809 description { state: "disabled" 0.0;
6810 inherit: "default" 0.0;
6816 program { name: "button_click";
6817 signal: "mouse,down,1";
6819 action: SIGNAL_EMIT "elm,action,press" "";
6820 after: "button_click_anim";
6822 program { name: "button_click_anim";
6823 action: STATE_SET "clicked" 0.0;
6824 target: "button_image";
6825 after: "text_clicked";
6827 program { name: "text_clicked";
6831 get_state(PART:"elm.text", st, 30, vl);
6832 if (!strcmp(st, "visible"))
6833 set_state(PART:"elm.text", "clicked", 0.0);
6836 program { name: "button_unpress";
6837 action: SIGNAL_EMIT "elm,action,unpress" "";
6839 program { name: "button_mouseout_clicked";
6840 signal: "mouse,up,1";
6845 get_state(PART:"elm.swallow.content", st, 30, vl);
6846 if (strcmp(st, "icononly"))
6848 emit("elm,action,default,text,set", "");
6849 set_state(PART:"elm.text", "visible", 0.0);
6851 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6852 set_state(PART:"button_image", "default", 0.0);
6854 after: button_unpress;
6856 program { name: "touch_snd";
6857 signal: "mouse,clicked,1";
6859 action: PLAY_SAMPLE "touch_sound" 1.0;
6860 after: button_unclick3;
6862 program { name: "button_unclick3";
6863 action: SIGNAL_EMIT "elm,action,click" "";
6865 program { name: "text_show";
6866 signal: "elm,state,text,visible";
6871 get_state(PART:"elm.swallow.content", st, 30, vl);
6872 if (!strcmp(st, "icononly"))
6874 set_state(PART:"elm.swallow.content", "visible", 0.0);
6875 set_state(PART:"padding_icon_text", "visible", 0.0);
6877 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6878 set_state(PART:"elm.text", "visible", 0.0);
6880 set_state(PART:"elm.text", "disabled_visible", 0.0);
6883 program { name: "text_hide";
6884 signal: "elm,state,text,hidden";
6889 get_state(PART:"elm.swallow.content", st, 30, vl);
6890 if (!strcmp(st, "visible"))
6892 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6893 set_state(PART:"padding_icon_text", "icononly", 0.0);
6895 set_state(PART:"elm.text", "default", 0.0);
6898 program { name: "icon_show";
6899 signal: "elm,state,icon,visible";
6904 get_state(PART:"elm.text", st, 30, vl);
6905 if (!strcmp(st, "visible"))
6907 set_state(PART:"elm.swallow.content", "visible", 0.0);
6908 set_state(PART:"padding_icon_text", "visible", 0.0);
6912 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6913 set_state(PART:"padding_icon_text", "icononly", 0.0);
6917 program { name: "icon_hide";
6918 signal: "elm,state,icon,hidden";
6920 action: STATE_SET "default" 0.0;
6921 target: "elm.swallow.content";
6922 target: "padding_icon_text";
6924 program { name: "disable";
6925 signal: "elm,state,disabled";
6927 action: STATE_SET "disabled" 0.0;
6928 target: "button_image";
6930 after: "disable_text";
6932 program { name: "disable_text";
6936 get_state(PART:"elm.text", st, 30, vl);
6937 if (!strcmp(st, "visible"))
6938 set_state(PART:"elm.text", "disabled_visible", 0.0);
6940 set_state(PART:"elm.text", "disabled", 0.0);
6941 set_int(button_state, BUTTON_STATE_DISABLED);
6944 program { name: "enable";
6945 signal: "elm,state,enabled";
6947 action: STATE_SET "default" 0.0;
6948 target: "button_image";
6950 after: "enable_text";
6952 program { name: "enable_text";
6956 get_state(PART:"elm.text", st, 30, vl);
6957 if (!strcmp(st, "disabled_visible"))
6958 set_state(PART:"elm.text", "visible", 0.0);
6960 set_state(PART:"elm.text", "default", 0.0);
6961 set_int(button_state, BUTTON_STATE_ENABLED);
6964 program { name: "focused";
6965 //signal: "elm,action,focus";
6967 action: STATE_SET "focused" 0.0;
6968 target: "button_image";
6971 program { name: "unfocused";
6972 //signal: "elm,action,unfocus";
6974 action: STATE_SET "default" 0.0;
6975 target: "button_image";
6976 after: "unfocus_text";
6978 program { name: "unfocus_text";
6979 action: STATE_SET "visible" 0.0;
6985 ///////////////////////////////////////////////////////////////////////////////////////
6986 group { name: "elm/button/base/picker/bar/default";
6988 image: "00_picker_btn_normal.png" COMP;
6989 image: "00_picker_btn_press.png" COMP;
6990 image: "00_picker_btn_normal_focus.png" COMP;
6993 public button_state = BUTTON_STATE_ENABLED;
6996 part { name: "button_image";
6998 description { state: "default" 0.0;
6999 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7001 normal: "00_picker_btn_normal.png";
7002 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7006 description { state: "clicked" 0.0;
7007 inherit: "default" 0.0;
7008 image.normal: "00_picker_btn_press.png";
7010 description { state: "disabled" 0.0;
7011 inherit: "default" 0.0;
7013 description { state: "focused" 0.0;
7014 inherit: "default" 0.0;
7015 image.normal: "00_picker_btn_normal_focus.png";
7018 part { name: "padding_left_top";
7022 description { state: "default" 0.0;
7024 rel2.relative: 0.0 0.0;
7025 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7030 part { name: "padding_right_bottom";
7034 description { state: "default" 0.0;
7036 rel1.relative: 1.0 1.0;
7037 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7042 part { name: "icon_rect";
7046 description { state: "default" 0.0;
7047 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7051 to_x: "elm.swallow.content";
7052 to_y: "padding_left_top";
7056 to_x: "elm.swallow.content";
7057 to_y: "padding_right_bottom";
7063 part { name: "padding_icon_text";
7067 description { state: "default" 0.0; //when only icon or no icon is there
7073 rel2.to: "icon_rect";
7078 description { state: "icononly" 0.0;
7079 inherit: "default" 0.0;
7081 description { state: "visible" 0.0; //when icon is visible
7087 rel2.to: "icon_rect";
7089 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7093 part { name: "elm.swallow.content";
7097 description { state: "default" 0.0;
7102 to: "padding_left_top";
7106 to_x: "padding_left_top";
7107 to_y: "padding_right_bottom";
7111 description { state: "visible" 0.0;
7116 to: "padding_left_top";
7120 to_x: "padding_left_top";
7121 to_y: "padding_right_bottom";
7124 aspect_preference: VERTICAL;
7126 description { state: "icononly" 0.0;
7127 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7130 to: "padding_left_top";
7134 to_x: "padding_left_top";
7135 to_y: "padding_right_bottom";
7138 aspect_preference: VERTICAL;
7141 part { name: "elm.text";
7146 description { state: "default" 0.0;
7150 to_x: "padding_icon_text";
7151 to_y: "padding_left_top";
7155 to: "padding_right_bottom";
7157 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7159 font: "SLP:style=Medium";
7160 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7163 text_class: "slp_medium";
7166 description { state: "visible" 0.0;
7167 inherit: "default" 0.0;
7169 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7171 description { state: "clicked" 0.0;
7172 inherit: "default" 0.0;
7175 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7177 description { state: "disabled" 0.0;
7178 inherit: "default" 0.0;
7179 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7181 description { state: "disabled_visible" 0.0;
7182 inherit: "default" 0.0;
7183 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7185 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7187 description { state: "focused" 0.0;
7188 inherit: "default" 0.0;
7191 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7194 part { name: "over2";
7197 ignore_flags: ON_HOLD;
7198 description { state: "default" 0.0;
7202 part { name: "over3";
7205 description { state: "default" 0.0;
7209 part { name: "clipper";
7211 description { state: "default" 0.0;
7212 color: 255 255 255 255;
7215 part { name: "disabler";
7217 description { state: "default" 0.0;
7221 description { state: "disabled" 0.0;
7222 inherit: "default" 0.0;
7228 program { name: "button_click";
7229 signal: "mouse,down,1";
7231 action: SIGNAL_EMIT "elm,action,press" "";
7232 after: "button_click_anim";
7234 program { name: "button_click_anim";
7235 action: STATE_SET "clicked" 0.0;
7236 target: "button_image";
7237 after: "text_clicked";
7239 program { name: "text_clicked";
7243 get_state(PART:"elm.text", st, 30, vl);
7244 if (!strcmp(st, "visible"))
7245 set_state(PART:"elm.text", "clicked", 0.0);
7248 program { name: "button_unpress";
7249 action: SIGNAL_EMIT "elm,action,unpress" "";
7251 program { name: "button_mouseout_clicked";
7252 signal: "mouse,up,1";
7257 get_state(PART:"elm.swallow.content", st, 30, vl);
7258 if (strcmp(st, "icononly"))
7260 emit("elm,action,default,text,set", "");
7261 set_state(PART:"elm.text", "visible", 0.0);
7263 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7264 set_state(PART:"button_image", "default", 0.0);
7266 after: button_unpress;
7268 program { name: "touch_snd";
7269 signal: "mouse,clicked,1";
7271 action: PLAY_SAMPLE "touch_sound" 1.0;
7272 after: button_unclick3;
7274 program { name: "button_unclick3";
7275 action: SIGNAL_EMIT "elm,action,click" "";
7277 program { name: "text_show";
7278 signal: "elm,state,text,visible";
7283 get_state(PART:"elm.swallow.content", st, 30, vl);
7284 if (!strcmp(st, "icononly"))
7286 set_state(PART:"elm.swallow.content", "visible", 0.0);
7287 set_state(PART:"padding_icon_text", "visible", 0.0);
7289 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7290 set_state(PART:"elm.text", "visible", 0.0);
7292 set_state(PART:"elm.text", "disabled_visible", 0.0);
7295 program { name: "text_hide";
7296 signal: "elm,state,text,hidden";
7301 get_state(PART:"elm.swallow.content", st, 30, vl);
7302 if (!strcmp(st, "visible"))
7304 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7305 set_state(PART:"padding_icon_text", "icononly", 0.0);
7307 set_state(PART:"elm.text", "default", 0.0);
7310 program { name: "icon_show";
7311 signal: "elm,state,icon,visible";
7316 get_state(PART:"elm.text", st, 30, vl);
7317 if (!strcmp(st, "visible"))
7319 set_state(PART:"elm.swallow.content", "visible", 0.0);
7320 set_state(PART:"padding_icon_text", "visible", 0.0);
7324 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7325 set_state(PART:"padding_icon_text", "icononly", 0.0);
7329 program { name: "icon_hide";
7330 signal: "elm,state,icon,hidden";
7332 action: STATE_SET "default" 0.0;
7333 target: "elm.swallow.content";
7334 target: "padding_icon_text";
7336 program { name: "disable";
7337 signal: "elm,state,disabled";
7339 action: STATE_SET "disabled" 0.0;
7340 target: "button_image";
7342 after: "disable_text";
7344 program { name: "disable_text";
7348 get_state(PART:"elm.text", st, 30, vl);
7349 if (!strcmp(st, "visible"))
7350 set_state(PART:"elm.text", "disabled_visible", 0.0);
7352 set_state(PART:"elm.text", "disabled", 0.0);
7353 set_int(button_state, BUTTON_STATE_DISABLED);
7356 program { name: "enable";
7357 signal: "elm,state,enabled";
7359 action: STATE_SET "default" 0.0;
7360 target: "button_image";
7362 after: "enable_text";
7364 program { name: "enable_text";
7368 get_state(PART:"elm.text", st, 30, vl);
7369 if (!strcmp(st, "disabled_visible"))
7370 set_state(PART:"elm.text", "visible", 0.0);
7372 set_state(PART:"elm.text", "default", 0.0);
7373 set_int(button_state, BUTTON_STATE_ENABLED);
7376 program { name: "focused";
7377 //signal: "elm,action,focus";
7379 action: STATE_SET "focused" 0.0;
7380 target: "button_image";
7383 program { name: "unfocused";
7384 //signal: "elm,action,unfocus";
7386 action: STATE_SET "default" 0.0;
7387 target: "button_image";
7388 after: "unfocus_text";
7390 program { name: "unfocus_text";
7391 action: STATE_SET "visible" 0.0;
7397 ///////////////////////////////////////////////////////////////////////////////////////
7398 group { name: "elm/button/base/picker/prev/text/default";
7399 alias: "elm/button/base/picker/next/text/default";
7401 image: "00_picker_btn_normal.png" COMP;
7402 image: "00_picker_btn_press.png" COMP;
7403 image: "00_picker_btn_normal_focus.png" COMP;
7406 public button_state = BUTTON_STATE_ENABLED;
7409 part { name: "button_image";
7411 description { state: "default" 0.0;
7412 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7414 normal: "00_picker_btn_normal.png";
7415 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7419 description { state: "clicked" 0.0;
7420 inherit: "default" 0.0;
7421 image.normal: "00_picker_btn_press.png";
7423 description { state: "disabled" 0.0;
7424 inherit: "default" 0.0;
7427 description { state: "focused" 0.0;
7428 inherit: "default" 0.0;
7429 image.normal: "00_picker_btn_normal_focus.png";
7432 part { name: "padding_left_top";
7436 description { state: "default" 0.0;
7438 rel2.relative: 0.0 0.0;
7439 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7444 part { name: "padding_right_bottom";
7448 description { state: "default" 0.0;
7450 rel1.relative: 1.0 1.0;
7451 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7456 part { name: "icon_rect";
7460 description { state: "default" 0.0;
7461 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7465 to_x: "elm.swallow.content";
7466 to_y: "padding_left_top";
7470 to_x: "elm.swallow.content";
7471 to_y: "padding_right_bottom";
7477 part { name: "padding_icon_text";
7481 description { state: "default" 0.0; //when only icon or no icon is there
7487 rel2.to: "icon_rect";
7492 description { state: "icononly" 0.0;
7493 inherit: "default" 0.0;
7495 description { state: "visible" 0.0; //when icon is visible
7501 rel2.to: "icon_rect";
7503 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7507 part { name: "elm.swallow.content";
7511 description { state: "default" 0.0;
7516 to: "padding_left_top";
7520 to_x: "padding_left_top";
7521 to_y: "padding_right_bottom";
7525 description { state: "visible" 0.0;
7530 to: "padding_left_top";
7534 to_x: "padding_left_top";
7535 to_y: "padding_right_bottom";
7538 aspect_preference: VERTICAL;
7540 description { state: "icononly" 0.0;
7541 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7544 to: "padding_left_top";
7548 to_x: "padding_left_top";
7549 to_y: "padding_right_bottom";
7552 aspect_preference: VERTICAL;
7555 part { name: "elm.text";
7560 description { state: "default" 0.0;
7564 to_x: "padding_icon_text";
7565 to_y: "padding_left_top";
7569 to: "padding_right_bottom";
7571 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7573 font: "SLP:style=Medium";
7574 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7577 text_class: "slp_medium";
7580 description { state: "visible" 0.0;
7581 inherit: "default" 0.0;
7583 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7585 description { state: "clicked" 0.0;
7586 inherit: "default" 0.0;
7589 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7591 description { state: "disabled" 0.0;
7592 inherit: "default" 0.0;
7593 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7595 description { state: "disabled_visible" 0.0;
7596 inherit: "default" 0.0;
7597 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7599 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7601 description { state: "focused" 0.0;
7602 inherit: "default" 0.0;
7605 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7608 part { name: "over2";
7611 ignore_flags: ON_HOLD;
7612 description { state: "default" 0.0;
7616 part { name: "over3";
7619 description { state: "default" 0.0;
7623 part { name: "clipper";
7625 description { state: "default" 0.0;
7626 color: 255 255 255 255;
7629 part { name: "disabler";
7631 description { state: "default" 0.0;
7635 description { state: "disabled" 0.0;
7636 inherit: "default" 0.0;
7642 program { name: "button_click";
7643 signal: "mouse,down,1";
7645 action: SIGNAL_EMIT "elm,action,press" "";
7646 after: "button_click_anim";
7648 program { name: "button_click_anim";
7649 action: STATE_SET "clicked" 0.0;
7650 target: "button_image";
7651 after: "text_clicked";
7653 program { name: "text_clicked";
7657 get_state(PART:"elm.text", st, 30, vl);
7658 if (!strcmp(st, "visible"))
7659 set_state(PART:"elm.text", "clicked", 0.0);
7662 program { name: "button_unpress";
7663 action: SIGNAL_EMIT "elm,action,unpress" "";
7665 program { name: "button_mouseout_clicked";
7666 signal: "mouse,up,1";
7671 get_state(PART:"elm.swallow.content", st, 30, vl);
7672 if (strcmp(st, "icononly"))
7674 emit("elm,action,default,text,set", "");
7675 set_state(PART:"elm.text", "visible", 0.0);
7677 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7678 set_state(PART:"button_image", "default", 0.0);
7680 after: button_unpress;
7682 program { name: "touch_snd";
7683 signal: "mouse,clicked,1";
7685 action: PLAY_SAMPLE "touch_sound" 1.0;
7686 after: button_unclick3;
7688 program { name: "button_unclick3";
7689 action: SIGNAL_EMIT "elm,action,click" "";
7691 program { name: "text_show";
7692 signal: "elm,state,text,visible";
7697 get_state(PART:"elm.swallow.content", st, 30, vl);
7698 if (!strcmp(st, "icononly"))
7700 set_state(PART:"elm.swallow.content", "visible", 0.0);
7701 set_state(PART:"padding_icon_text", "visible", 0.0);
7703 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7704 set_state(PART:"elm.text", "visible", 0.0);
7706 set_state(PART:"elm.text", "disabled_visible", 0.0);
7709 program { name: "text_hide";
7710 signal: "elm,state,text,hidden";
7715 get_state(PART:"elm.swallow.content", st, 30, vl);
7716 if (!strcmp(st, "visible"))
7718 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7719 set_state(PART:"padding_icon_text", "icononly", 0.0);
7721 set_state(PART:"elm.text", "default", 0.0);
7724 program { name: "icon_show";
7725 signal: "elm,state,icon,visible";
7730 get_state(PART:"elm.text", st, 30, vl);
7731 if (!strcmp(st, "visible"))
7733 set_state(PART:"elm.swallow.content", "visible", 0.0);
7734 set_state(PART:"padding_icon_text", "visible", 0.0);
7738 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7739 set_state(PART:"padding_icon_text", "icononly", 0.0);
7743 program { name: "icon_hide";
7744 signal: "elm,state,icon,hidden";
7746 action: STATE_SET "default" 0.0;
7747 target: "elm.swallow.content";
7748 target: "padding_icon_text";
7750 program { name: "disable";
7751 signal: "elm,state,disabled";
7753 action: STATE_SET "disabled" 0.0;
7754 target: "button_image";
7756 after: "disable_text";
7758 program { name: "disable_text";
7762 get_state(PART:"elm.text", st, 30, vl);
7763 if (!strcmp(st, "visible"))
7764 set_state(PART:"elm.text", "disabled_visible", 0.0);
7766 set_state(PART:"elm.text", "disabled", 0.0);
7767 set_int(button_state, BUTTON_STATE_DISABLED);
7770 program { name: "enable";
7771 signal: "elm,state,enabled";
7773 action: STATE_SET "default" 0.0;
7774 target: "button_image";
7776 after: "enable_text";
7778 program { name: "enable_text";
7782 get_state(PART:"elm.text", st, 30, vl);
7783 if (!strcmp(st, "disabled_visible"))
7784 set_state(PART:"elm.text", "visible", 0.0);
7786 set_state(PART:"elm.text", "default", 0.0);
7787 set_int(button_state, BUTTON_STATE_ENABLED);
7790 program { name: "focused";
7791 //signal: "elm,action,focus";
7793 action: STATE_SET "focused" 0.0;
7794 target: "button_image";
7797 program { name: "unfocused";
7798 //signal: "elm,action,unfocus";
7800 action: STATE_SET "default" 0.0;
7801 target: "button_image";
7802 after: "unfocus_text";
7804 program { name: "unfocus_text";
7805 action: STATE_SET "visible" 0.0;
7811 ///////////////////////////////////////////////////////////////////////////////////////
7812 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7813 group { name: "elm/button/base/contact/"style_name; \
7815 image: "00_contacts_circle_bg.png" COMP; \
7816 image: image_normal COMP; \
7817 image: image_press COMP; \
7820 part { name: "button_image"; \
7822 description { state: "default" 0.0; \
7823 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7824 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7825 image.normal: "00_contacts_circle_bg.png"; \
7826 color: 255 255 255 255; \
7829 state: "clicked" 0.0; \
7830 inherit: "default" 0.0; \
7831 image.normal: "00_contacts_circle_bg.png"; \
7834 state: "disabled" 0.0; \
7835 inherit: "default" 0.0; \
7836 color: 255 255 255 128; \
7839 part { name: "button_center_part"; \
7841 description { state: "default" 0.0; \
7842 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7843 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7844 image.normal: image_normal; \
7845 color: 255 255 255 255; \
7848 state: "clicked" 0.0; \
7849 inherit: "default" 0.0; \
7850 image.normal: image_press; \
7853 state: "disabled" 0.0; \
7854 inherit: "default" 0.0; \
7855 color: 255 255 255 128; \
7858 part { name: "over1"; \
7860 ignore_flags: ON_HOLD; \
7861 description { state: "default" 0.0; \
7865 part { name: "over2"; \
7867 description { state: "default" 0.0; \
7871 part { name: "disabler"; \
7873 description { state: "default" 0.0; \
7877 description { state: "disabled" 0.0; \
7878 inherit: "default" 0.0; \
7884 program { name: "button_click"; \
7885 signal: "mouse,down,1"; \
7887 action: SIGNAL_EMIT "elm,action,press" ""; \
7888 after: "button_click_anim"; \
7890 program { name: "button_click_anim"; \
7891 action: STATE_SET "clicked" 0.0; \
7892 target: "button_image"; \
7893 target: "button_center_part"; \
7895 program { name: "button_unclick"; \
7896 signal: "mouse,up,1"; \
7898 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7899 after: "button_unclick_anim"; \
7901 program { name: "button_unclick_anim"; \
7902 action: STATE_SET "default" 0.0; \
7903 target: "button_image"; \
7904 target: "button_center_part"; \
7906 program { name: "touch_snd"; \
7907 signal: "mouse,clicked,1"; \
7909 action: PLAY_SAMPLE "touch_sound" 1.0; \
7910 after: button_unclick3; \
7912 program { name: "button_unclick3"; \
7913 action: SIGNAL_EMIT "elm,action,click" ""; \
7915 program { name: "disable"; \
7916 signal: "elm,state,disabled"; \
7918 action: STATE_SET "disabled" 0.0; \
7919 target: "disabler"; \
7920 target: "button_image"; \
7921 target: "button_center_part"; \
7923 program { name: "enable"; \
7924 signal: "elm,state,enabled"; \
7926 action: STATE_SET "default" 0.0; \
7927 target: "disabler"; \
7928 target: "button_image"; \
7929 target: "button_center_part"; \
7934 ///////////////////////////////////////////////////////////////////////////////////////
7935 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7937 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7939 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7941 ///////////////////////////////////////////////////////////////////////////////////////
7942 group { name: "elm/button/base/contact";
7943 alias: "elm/button/base/text_only/contact";
7945 image: "00_contacts_button_bg.png" COMP;
7946 image: "00_contacts_button_bg_press.png" COMP;
7949 public button_state = BUTTON_STATE_ENABLED;
7952 part { name: "button_image";
7954 description { state: "default" 0.0;
7956 to_x: "padding.left";
7960 to_x: "padding.right";
7963 min: BUTTON_CONTACT_BG_MIN_INC;
7965 normal: "00_contacts_button_bg.png";
7966 border: BUTTON_CONTACT_BG_BORDER_INC;
7970 description { state: "clicked" 0.0;
7971 inherit: "default" 0.0;
7972 image.normal: "00_contacts_button_bg_press.png";
7974 description { state: "disabled" 0.0;
7975 inherit: "default" 0.0;
7978 description { state: "focused" 0.0;
7979 inherit: "default" 0.0;
7982 part { name: "padding.left";
7985 description { state: "default" 0.0;
7987 min: BUTTON_CONTACT_PADDING_MIN_INC;
7997 part { name: "padding.right";
8000 description { state: "default" 0.0;
8002 min: BUTTON_CONTACT_PADDING_MIN_INC;
8012 part { name: "elm.text";
8016 description { state: "default" 0.0;
8019 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8021 font: "SLP:style=Medium";
8022 size: BUTTON_CONTACT_FONT_SIZE_INC;
8024 text_class: "slp_medium";
8027 description { state: "visible" 0.0;
8028 inherit: "default" 0.0;
8032 description { state: "clicked" 0.0;
8033 inherit: "default" 0.0;
8036 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8038 description { state: "disabled" 0.0;
8039 inherit: "default" 0.0;
8042 description { state: "disabled_visible" 0.0;
8043 inherit: "default" 0.0;
8044 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8048 description { state: "focused" 0.0;
8049 inherit: "default" 0.0;
8052 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8055 part { name: "over1";
8057 description { state: "default" 0.0;
8058 rel2.relative: 1.0 0.5;
8061 part { name: "over2";
8063 ignore_flags: ON_HOLD;
8064 description { state: "default" 0.0;
8065 rel1.to: "button_image";
8066 rel2.to: "button_image";
8069 part { name: "over3";
8071 description { state: "default" 0.0;
8072 rel1.to: "button_image";
8073 rel2.to: "button_image";
8077 part { name: "disabler";
8079 description { state: "default" 0.0;
8080 rel1.to: "button_image";
8081 rel2.to: "button_image";
8085 description { state: "disabled" 0.0;
8086 inherit: "default" 0.0;
8092 program { name: "button_click";
8093 signal: "mouse,down,1";
8095 action: SIGNAL_EMIT "elm,action,press" "";
8096 after: "button_click_anim";
8098 program { name: "button_click_anim";
8099 action: STATE_SET "clicked" 0.0;
8100 target: "button_image";
8103 program { name: "button_unpress";
8104 action: SIGNAL_EMIT "elm,action,unpress" "";
8106 program { name: "button_mouseout_clicked";
8107 signal: "mouse,up,1";
8112 get_state(PART:"elm.text", st, 30, vl);
8113 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8115 emit("elm,action,default,text,set", "");
8116 set_state(PART:"elm.text", "visible", 0.0);
8118 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8119 set_state(PART:"button_image", "default", 0.0);
8121 after: button_unpress;
8123 program { name: "touch_snd";
8124 signal: "mouse,clicked,1";
8126 action: PLAY_SAMPLE "touch_sound" 1.0;
8127 after: button_unclick3;
8129 program { name: "button_unclick3";
8130 action: SIGNAL_EMIT "elm,action,click" "";
8132 program { name: "text_show";
8133 signal: "elm,state,text,visible";
8136 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8137 set_state(PART:"elm.text", "visible", 0.0);
8139 set_state(PART:"elm.text", "disabled_visible", 0.0);
8142 program { name: "text_hide";
8143 signal: "elm,state,text,hidden";
8145 action: STATE_SET "default" 0.0;
8148 program { name: "disable";
8149 signal: "elm,state,disabled";
8151 action: STATE_SET "disabled" 0.0;
8152 target: "button_image";
8154 after: "disable_text";
8156 program { name: "disable_text";
8160 get_state(PART:"elm.text", st, 30, vl);
8161 if (!strcmp(st, "visible"))
8162 set_state(PART:"elm.text", "disabled_visible", 0.0);
8164 set_state(PART:"elm.text", "disabled", 0.0);
8165 set_int(button_state, BUTTON_STATE_DISABLED);
8168 program { name: "enable";
8169 signal: "elm,state,enabled";
8171 action: STATE_SET "default" 0.0;
8172 target: "button_image";
8174 after: "enable_text";
8176 program { name: "enable_text";
8180 get_state(PART:"elm.text", st, 30, vl);
8181 if (!strcmp(st, "disabled_visible"))
8182 set_state(PART:"elm.text", "visible", 0.0);
8184 set_state(PART:"elm.text", "default", 0.0);
8185 set_int(button_state, BUTTON_STATE_ENABLED);
8188 program { name: "focused";
8189 //signal: "elm,action,focus";
8191 action: STATE_SET "focused" 0.0;
8192 target: "button_image";
8195 program { name: "unfocused";
8196 //signal: "elm,action,unfocus";
8198 action: STATE_SET "default" 0.0;
8199 target: "button_image";
8200 action: STATE_SET "visible" 0.0;
8206 ///////////////////////////////////////////////////////////////////////////////////////
8207 group { name: "elm/button/base/naviframe/back_btn/default";
8208 alias: "elm/button/base/naviframe/prev_btn/default";
8209 alias: "elm/button/base/naviframe/end_btn/default";
8211 image: "00_winset_toolbar_press.png" COMP;
8212 image: "00_winset_Back.png" COMP;
8215 public button_state = BUTTON_STATE_ENABLED;
8218 part { name: "button_image";
8220 description { state: "default" 0.0;
8221 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8222 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8225 description { state: "clicked" 0.0;
8226 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8227 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8229 normal: "00_winset_toolbar_press.png";
8230 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8233 description { state: "disabled" 0.0;
8234 inherit: "default" 0.0;
8235 color: 127 127 127 127;
8237 description { state: "focused" 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;
8246 part { name: "back_button";
8249 description { state: "default" 0.0;
8250 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8251 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8252 rel1.to: "button_image";
8253 rel2.to: "button_image";
8254 image.normal: "00_winset_Back.png";
8256 description { state: "clicked" 0.0;
8257 inherit: "default" 0.0;
8259 description { state: "disabled" 0.0;
8260 inherit: "default" 0.0;
8261 color: 127 127 127 127;
8264 part { name: "over2";
8267 ignore_flags: ON_HOLD;
8268 description { state: "default" 0.0;
8272 part { name: "over3";
8275 description { state: "default" 0.0;
8279 part { name: "disabler";
8281 description { state: "default" 0.0;
8285 description { state: "disabled" 0.0;
8286 inherit: "default" 0.0;
8292 program { name: "button_click";
8293 signal: "mouse,down,1";
8295 action: SIGNAL_EMIT "elm,action,press" "";
8296 after: "button_click_anim";
8298 program { name: "button_click_anim";
8299 action: STATE_SET "clicked" 0.0;
8300 target: "button_image";
8302 program { name: "button_unpress";
8303 action: SIGNAL_EMIT "elm,action,unpress" "";
8305 program { name: "button_mouseout_clicked";
8306 signal: "mouse,up,1";
8309 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8310 set_state(PART:"button_image", "default", 0.0);
8312 after: button_unpress;
8314 program { name: "touch_snd";
8315 signal: "mouse,clicked,1";
8317 action: PLAY_SAMPLE "touch_sound" 1.0;
8318 after: button_unclick3;
8320 program { name: "button_unclick3";
8321 action: SIGNAL_EMIT "elm,action,click" "";
8323 program { name: "disable";
8324 signal: "elm,state,disabled";
8326 action: STATE_SET "disabled" 0.0;
8327 target: "button_image";
8329 target: "back_button";
8330 after: "disable_button";
8332 program { name: "disable_button";
8334 set_int(button_state, BUTTON_STATE_DISABLED);
8337 program { name: "enable";
8338 signal: "elm,state,enabled";
8340 action: STATE_SET "default" 0.0;
8341 target: "button_image";
8343 target: "back_button";
8344 after: "enable_button";
8346 program { name: "enable_button";
8348 set_int(button_state, BUTTON_STATE_ENABLED);
8351 program { name: "focused";
8352 //signal: "elm,action,focus";
8354 action: STATE_SET "focused" 0.0;
8355 target: "button_image";
8357 program { name: "unfocused";
8358 //signal: "elm,action,unfocus";
8360 action: STATE_SET "default" 0.0;
8361 target: "button_image";
8366 ///////////////////////////////////////////////////////////////////////////////////////
8367 group { name: "elm/button/base/picker/prev/icon/default";
8369 image: "00_picker_btn_normal.png" COMP;
8370 image: "00_picker_btn_press.png" COMP;
8371 image: "00_picker_btn_normal_focus.png" COMP;
8372 image: "00_picker_arrow_left.png" COMP;
8373 image: "00_picker_arrow_left_press.png" COMP;
8376 public button_state = BUTTON_STATE_ENABLED;
8379 part { name: "button_image";
8381 description { state: "default" 0.0;
8382 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8383 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8385 normal: "00_picker_btn_normal.png";
8386 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8390 description { state: "clicked" 0.0;
8391 inherit: "default" 0.0;
8392 image.normal: "00_picker_btn_press.png";
8394 description { state: "disabled" 0.0;
8395 inherit: "default" 0.0;
8397 description { state: "focused" 0.0;
8398 inherit: "default" 0.0;
8399 image.normal: "00_picker_btn_normal_focus.png";
8402 part { name: "padding_left_top";
8406 description { state: "default" 0.0;
8408 rel2.relative: 0.0 0.0;
8409 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8414 part { name: "padding_right_bottom";
8418 description { state: "default" 0.0;
8420 rel1.relative: 1.0 1.0;
8421 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8426 part { name: "left_arrow";
8429 description { state: "default" 0.0;
8430 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8431 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8434 to: "padding_left_top";
8438 to: "padding_right_bottom";
8440 image.normal: "00_picker_arrow_left.png";
8442 description { state: "clicked" 0.0;
8443 inherit: "default" 0.0;
8444 image.normal: "00_picker_arrow_left_press.png";
8447 part { name: "over2";
8450 ignore_flags: ON_HOLD;
8451 description { state: "default" 0.0;
8455 part { name: "over3";
8458 description { state: "default" 0.0;
8462 part { name: "disabler";
8464 description { state: "default" 0.0;
8468 description { state: "disabled" 0.0;
8469 inherit: "default" 0.0;
8475 program { name: "button_click";
8476 signal: "mouse,down,1";
8478 action: SIGNAL_EMIT "elm,action,press" "";
8479 after: "button_click_anim";
8481 program { name: "button_click_anim";
8482 action: STATE_SET "clicked" 0.0;
8483 target: "button_image";
8485 program { name: "button_unpress";
8486 action: SIGNAL_EMIT "elm,action,unpress" "";
8488 program { name: "button_mouseout_clicked";
8489 signal: "mouse,up,1";
8492 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8493 set_state(PART:"button_image", "default", 0.0);
8495 after: button_unpress;
8497 program { name: "touch_snd";
8498 signal: "mouse,clicked,1";
8500 action: PLAY_SAMPLE "touch_sound" 1.0;
8501 after: button_unclick3;
8503 program { name: "button_unclick3";
8504 action: SIGNAL_EMIT "elm,action,click" "";
8506 program { name: "disable";
8507 signal: "elm,state,disabled";
8509 action: STATE_SET "disabled" 0.0;
8510 target: "button_image";
8512 after: "disable_button";
8514 program { name: "disable_button";
8516 set_int(button_state, BUTTON_STATE_DISABLED);
8519 program { name: "enable";
8520 signal: "elm,state,enabled";
8522 action: STATE_SET "default" 0.0;
8523 target: "button_image";
8525 after: "enable_button";
8527 program { name: "enable_button";
8529 set_int(button_state, BUTTON_STATE_ENABLED);
8532 program { name: "focused";
8533 //signal: "elm,action,focus";
8535 action: STATE_SET "focused" 0.0;
8536 target: "button_image";
8538 program { name: "unfocused";
8539 //signal: "elm,action,unfocus";
8541 action: STATE_SET "default" 0.0;
8542 target: "button_image";
8547 ///////////////////////////////////////////////////////////////////////////////////////
8548 group { name: "elm/button/base/picker/next/icon/default";
8550 image: "00_picker_btn_normal.png" COMP;
8551 image: "00_picker_btn_press.png" COMP;
8552 image: "00_picker_btn_normal_focus.png" COMP;
8553 image: "00_picker_arrow_right.png" COMP;
8554 image: "00_picker_arrow_right_press.png" COMP;
8557 public button_state = BUTTON_STATE_ENABLED;
8560 part { name: "button_image";
8562 description { state: "default" 0.0;
8563 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8564 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8566 normal: "00_picker_btn_normal.png";
8567 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8571 description { state: "clicked" 0.0;
8572 inherit: "default" 0.0;
8573 image.normal: "00_picker_btn_press.png";
8575 description { state: "disabled" 0.0;
8576 inherit: "default" 0.0;
8578 description { state: "focused" 0.0;
8579 inherit: "default" 0.0;
8580 image.normal: "00_picker_btn_normal_focus.png";
8583 part { name: "padding_left_top";
8587 description { state: "default" 0.0;
8589 rel2.relative: 0.0 0.0;
8590 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8595 part { name: "padding_right_bottom";
8599 description { state: "default" 0.0;
8601 rel1.relative: 1.0 1.0;
8602 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8607 part { name: "right_arrow";
8610 description { state: "default" 0.0;
8611 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8612 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8615 to: "padding_left_top";
8619 to: "padding_right_bottom";
8621 image.normal: "00_picker_arrow_right.png";
8623 description { state: "clicked" 0.0;
8624 inherit: "default" 0.0;
8625 image.normal: "00_picker_arrow_right_press.png";
8628 part { name: "over2";
8631 ignore_flags: ON_HOLD;
8632 description { state: "default" 0.0;
8636 part { name: "over3";
8639 description { state: "default" 0.0;
8643 part { name: "disabler";
8645 description { state: "default" 0.0;
8649 description { state: "disabled" 0.0;
8650 inherit: "default" 0.0;
8656 program { name: "button_click";
8657 signal: "mouse,down,1";
8659 action: SIGNAL_EMIT "elm,action,press" "";
8660 after: "button_click_anim";
8662 program { name: "button_click_anim";
8663 action: STATE_SET "clicked" 0.0;
8664 target: "button_image";
8666 program { name: "button_unpress";
8667 action: SIGNAL_EMIT "elm,action,unpress" "";
8669 program { name: "button_mouseout_clicked";
8670 signal: "mouse,up,1";
8673 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8674 set_state(PART:"button_image", "default", 0.0);
8676 after: button_unpress;
8678 program { name: "touch_snd";
8679 signal: "mouse,clicked,1";
8681 action: PLAY_SAMPLE "touch_sound" 1.0;
8682 after: button_unclick3;
8684 program { name: "button_unclick3";
8685 action: SIGNAL_EMIT "elm,action,click" "";
8687 program { name: "disable";
8688 signal: "elm,state,disabled";
8690 action: STATE_SET "disabled" 0.0;
8691 target: "button_image";
8693 after: "disable_button";
8695 program { name: "disable_button";
8697 set_int(button_state, BUTTON_STATE_DISABLED);
8700 program { name: "enable";
8701 signal: "elm,state,enabled";
8703 action: STATE_SET "default" 0.0;
8704 target: "button_image";
8706 after: "enable_button";
8708 program { name: "enable_button";
8710 set_int(button_state, BUTTON_STATE_ENABLED);
8713 program { name: "focused";
8714 //signal: "elm,action,focus";
8716 action: STATE_SET "focused" 0.0;
8717 target: "button_image";
8719 program { name: "unfocused";
8720 //signal: "elm,action,unfocus";
8722 action: STATE_SET "default" 0.0;
8723 target: "button_image";
8728 ///////////////////////////////////////////////////////////////////////////////////////
8729 group { name: "elm/button/base/naviframe_control/default";
8730 alias: "elm/button/base/naviframe_control/center";
8732 public button_state = BUTTON_STATE_ENABLED;
8735 image: "00_Option_header_bt.png" COMP;
8736 image: "00_Option_header_bt_dim.png" COMP;
8737 image: "00_Option_header_bt_press.png" COMP;
8738 image: "00_Option_header_bt_focus.png" COMP;
8741 part { name: "button_image";
8743 description { state: "default" 0.0;
8744 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8749 normal: "00_Option_header_bt.png";
8750 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8752 color: 255 255 255 255;
8754 description { state: "disabled" 0.0;
8755 inherit: "default" 0.0;
8756 image.normal: "00_Option_header_bt_dim.png";
8758 description { state: "clicked" 0.0;
8759 inherit: "default" 0.0;
8760 image.normal: "00_Option_header_bt_press.png";
8762 description { state: "focused" 0.0;
8763 inherit: "default" 0.0;
8764 image.normal: "00_Option_header_bt_focus.png";
8767 part { name: "padding_left_top";
8771 description { state: "default" 0.0;
8773 rel2.relative: 0.0 0.0;
8774 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8779 part { name: "padding_right_bottom";
8783 description { state: "default" 0.0;
8785 rel1.relative: 1.0 1.0;
8786 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8791 part { name: "icon_rect";
8795 description { state: "default" 0.0;
8800 to: "padding_left_top";
8804 to_x: "padding_left_top";
8805 to_y: "padding_right_bottom";
8810 description { state: "visible" 0.0;
8811 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8815 to: "padding_left_top";
8819 to_x: "padding_left_top";
8820 to_y: "padding_right_bottom";
8825 description { state: "icononly" 0.0;
8826 inherit: "default" 0.0;
8829 part { name: "padding_after_icon";
8833 description { state: "default" 0.0; //when only icon or no icon is there
8839 rel2.to: "icon_rect";
8844 description { state: "visible" 0.0;
8850 rel2.to: "icon_rect";
8852 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8855 description { state: "icononly" 0.0;
8856 inherit: "default" 0.0;
8859 part { name: "padding_before_text";
8863 description { state: "default" 0.0; //when only icon or no icon is there
8868 to_y: "padding_left_top";
8873 to_y: "padding_right_bottom";
8876 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8880 part { name: "elm.swallow.content";
8884 description { state: "default" 0.0;
8889 to: "padding_left_top";
8893 to_x: "padding_left_top";
8894 to_y: "padding_right_bottom";
8898 description { state: "visible" 0.0;
8900 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8901 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8905 to_x: "padding_before_text";
8906 to_y: "padding_left_top";
8910 to_x: "padding_before_text";
8911 to_y: "padding_right_bottom";
8914 aspect_preference: VERTICAL;
8916 description { state: "icononly" 0.0;
8917 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8918 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8921 to: "padding_left_top";
8925 to: "padding_right_bottom";
8928 aspect_preference: VERTICAL;
8931 part { name: "elm.text";
8936 description { state: "default" 0.0;
8940 to_x: "padding_after_icon";
8941 to_y: "padding_left_top";
8945 to: "padding_right_bottom";
8947 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8949 font: "SLP:style=Medium";
8950 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8953 text_class: "slp_medium";
8956 description { state: "visible" 0.0;
8957 inherit: "default" 0.0;
8960 description { state: "clicked" 0.0;
8961 inherit: "default" 0.0;
8965 description { state: "focused" 0.0;
8966 inherit: "default" 0.0;
8969 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8972 part { name: "over2";
8975 ignore_flags: ON_HOLD;
8976 description { state: "default" 0.0;
8980 part { name: "over3";
8983 description { state: "default" 0.0;
8987 part { name: "clipper";
8989 description { state: "default" 0.0;
8990 color: 255 255 255 255;
8992 description { state: "disabled" 0.0;
8993 color: 255 255 255 127;
8996 part { name: "disabler";
8998 description { state: "default" 0.0;
9002 description { state: "disabled" 0.0;
9003 inherit: "default" 0.0;
9009 program { name: "button_click";
9010 signal: "mouse,down,1";
9012 action: SIGNAL_EMIT "elm,action,press" "";
9013 after: "button_click_anim";
9015 program { name: "button_click_anim";
9016 action: STATE_SET "clicked" 0.0;
9017 target: "button_image";
9018 after: "text_clicked";
9020 program { name: "text_clicked";
9024 get_state(PART:"elm.text", st, 30, vl);
9025 if (!strcmp(st, "visible"))
9026 set_state(PART:"elm.text", "clicked", 0.0);
9029 program { name: "button_unpress";
9030 action: SIGNAL_EMIT "elm,action,unpress" "";
9032 program { name: "button_mouseout_clicked";
9033 signal: "mouse,up,1";
9038 get_state(PART:"elm.swallow.content", st, 30, vl);
9039 if (strcmp(st, "icononly"))
9041 emit("elm,action,default,text,set", "");
9042 set_state(PART:"elm.text", "visible", 0.0);
9044 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9045 set_state(PART:"button_image", "default", 0.0);
9047 after: button_unpress;
9049 program { name: "touch_snd";
9050 signal: "mouse,clicked,1";
9052 action: PLAY_SAMPLE "touch_sound" 1.0;
9053 after: button_unclick3;
9055 program { name: "button_unclick3";
9056 action: SIGNAL_EMIT "elm,action,click" "";
9058 program { name: "text_show";
9059 signal: "elm,state,text,visible";
9064 get_state(PART:"elm.swallow.content", st, 30, vl);
9065 if (!strcmp(st, "icononly"))
9067 set_state(PART:"elm.swallow.content", "visible", 0.0);
9068 set_state(PART:"icon_rect", "visible", 0.0);
9069 set_state(PART:"padding_after_icon", "visible", 0.0);
9071 set_state(PART:"elm.text", "visible", 0.0);
9074 program { name: "text_hide";
9075 signal: "elm,state,text,hidden";
9080 get_state(PART:"elm.swallow.content", st, 30, vl);
9081 if (!strcmp(st, "visible"))
9083 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9084 set_state(PART:"icon_rect", "icononly", 0.0);
9085 set_state(PART:"padding_after_icon", "icononly", 0.0);
9087 set_state(PART:"elm.text", "default", 0.0);
9090 program { name: "icon_show";
9091 signal: "elm,state,icon,visible";
9096 get_state(PART:"elm.text", st, 30, vl);
9097 if (!strcmp(st, "visible"))
9099 set_state(PART:"elm.swallow.content", "visible", 0.0);
9100 set_state(PART:"icon_rect", "visible", 0.0);
9101 set_state(PART:"padding_after_icon", "visible", 0.0);
9105 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9106 set_state(PART:"icon_rect", "icononly", 0.0);
9107 set_state(PART:"padding_after_icon", "icononly", 0.0);
9111 program { name: "icon_hide";
9112 signal: "elm,state,icon,hidden";
9114 action: STATE_SET "default" 0.0;
9115 target: "elm.swallow.content";
9116 target: "icon_rect";
9117 target: "padding_after_icon";
9119 program { name: "disable";
9120 signal: "elm,state,disabled";
9122 action: STATE_SET "disabled" 0.0;
9123 target: "button_image";
9126 after: "disable_text";
9128 program { name: "disable_text";
9132 set_int(button_state, BUTTON_STATE_DISABLED);
9133 get_state(PART:"elm.text", st, 30, vl);
9134 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9135 set_state(PART:"elm.text", "visible", 0.0);
9138 program { name: "enable";
9139 signal: "elm,state,enabled";
9141 action: STATE_SET "default" 0.0;
9142 target: "button_image";
9145 after: "enable_text";
9147 program { name: "enable_text";
9151 set_int(button_state, BUTTON_STATE_ENABLED);
9152 get_state(PART:"elm.text", st, 30, vl);
9153 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9154 set_state(PART:"elm.text", "visible", 0.0);
9157 program { name: "focused";
9158 //signal: "elm,action,focus";
9160 action: STATE_SET "focused" 0.0;
9161 target: "button_image";
9164 program { name: "unfocused";
9165 //signal: "elm,action,unfocus";
9167 action: STATE_SET "default" 0.0;
9168 target: "button_image";
9169 after: "unfocus_text";
9171 program { name: "unfocus_text";
9172 action: STATE_SET "visible" 0.0;
9178 ///////////////////////////////////////////////////////////////////////////////////////
9179 group { name: "elm/button/base/naviframe_control/multiline";
9181 public button_state = BUTTON_STATE_ENABLED;
9184 image: "00_Option_header_bt.png" COMP;
9185 image: "00_Option_header_bt_dim.png" COMP;
9186 image: "00_Option_header_bt_press.png" COMP;
9187 image: "00_Option_header_bt_focus.png" COMP;
9190 style { name: "btn_multiline_naviframe_controlbar_style";
9191 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9198 part { name: "button_image";
9200 description { state: "default" 0.0;
9201 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9205 normal: "00_Option_header_bt.png";
9206 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9208 color: 255 255 255 255;
9210 description { state: "disabled" 0.0;
9211 inherit: "default" 0.0;
9212 image.normal: "00_Option_header_bt_dim.png";
9214 description { state: "clicked" 0.0;
9215 inherit: "default" 0.0;
9216 image.normal: "00_Option_header_bt_press.png";
9218 description { state: "focused" 0.0;
9219 inherit: "default" 0.0;
9220 image.normal: "00_Option_header_bt_focus.png";
9223 part { name: "padding_left_top";
9227 description { state: "default" 0.0;
9229 rel2.relative: 0.0 0.0;
9230 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9235 part { name: "padding_right_bottom";
9239 description { state: "default" 0.0;
9241 rel1.relative: 1.0 1.0;
9242 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9247 part { name: "icon_rect";
9251 description { state: "default" 0.0;
9257 to_x: "elm.swallow.content";
9258 to_y: "padding_left_top";
9262 to_x: "elm.swallow.content";
9263 to_y: "padding_right_bottom";
9268 part { name: "padding_icon_text";
9272 description { state: "default" 0.0; //when only icon or no icon is there
9286 description { state: "visible" 0.0;
9287 inherit: "default" 0.0;
9288 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9298 description { state: "icononly" 0.0;
9299 inherit: "default" 0.0;
9302 part { name: "elm.swallow.content";
9306 description { state: "default" 0.0;
9311 to: "padding_left_top";
9315 to_x: "padding_left_top";
9316 to_y: "padding_right_bottom";
9320 description { state: "visible" 0.0;
9322 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9323 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9327 to: "padding_left_top";
9331 to_x: "padding_left_top";
9332 to_y: "padding_right_bottom";
9335 description { state: "icononly" 0.0;
9336 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9337 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9340 to: "padding_left_top";
9344 to: "padding_right_bottom";
9348 part { name: "elm.text";
9353 description { state: "default" 0.0;
9357 to_x: "padding_icon_text";
9358 to_y: "padding_left_top";
9362 to: "padding_right_bottom";
9364 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9366 style: "btn_multiline_naviframe_controlbar_style";
9371 description { state: "visible" 0.0;
9372 inherit: "default" 0.0;
9376 description { state: "clicked" 0.0;
9377 inherit: "default" 0.0;
9381 description { state: "focused" 0.0;
9382 inherit: "default" 0.0;
9385 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9388 part { name: "over2";
9391 ignore_flags: ON_HOLD;
9392 description { state: "default" 0.0;
9396 part { name: "over3";
9399 description { state: "default" 0.0;
9403 part { name: "clipper";
9405 description { state: "default" 0.0;
9406 color: 255 255 255 255;
9408 description { state: "disabled" 0.0;
9409 color: 255 255 255 127;
9412 part { name: "disabler";
9414 description { state: "default" 0.0;
9418 description { state: "disabled" 0.0;
9419 inherit: "default" 0.0;
9425 program { name: "button_click";
9426 signal: "mouse,down,1";
9428 action: SIGNAL_EMIT "elm,action,press" "";
9429 after: "button_click_anim";
9431 program { name: "button_click_anim";
9432 action: STATE_SET "clicked" 0.0;
9433 target: "button_image";
9434 after: "text_clicked";
9436 program { name: "text_clicked";
9440 get_state(PART:"elm.text", st, 30, vl);
9441 if (!strcmp(st, "visible"))
9442 set_state(PART:"elm.text", "clicked", 0.0);
9445 program { name: "button_unpress";
9446 action: SIGNAL_EMIT "elm,action,unpress" "";
9448 program { name: "button_mouseout_clicked";
9449 signal: "mouse,up,1";
9454 get_state(PART:"elm.swallow.content", st, 30, vl);
9455 if (strcmp(st, "icononly"))
9457 emit("elm,action,default,text,set", "");
9458 set_state(PART:"elm.text", "visible", 0.0);
9460 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9461 set_state(PART:"button_image", "default", 0.0);
9463 after: button_unpress;
9465 program { name: "touch_snd";
9466 signal: "mouse,clicked,1";
9468 action: PLAY_SAMPLE "touch_sound" 1.0;
9469 after: button_unclick3;
9471 program { name: "button_unclick3";
9472 action: SIGNAL_EMIT "elm,action,click" "";
9474 program { name: "text_show";
9475 signal: "elm,state,text,visible";
9480 get_state(PART:"elm.swallow.content", st, 30, vl);
9481 if (!strcmp(st, "icononly"))
9483 set_state(PART:"elm.swallow.content", "visible", 0.0);
9484 set_state(PART:"padding_icon_text", "visible", 0.0);
9486 set_state(PART:"elm.text", "visible", 0.0);
9489 program { name: "text_hide";
9490 signal: "elm,state,text,hidden";
9495 get_state(PART:"elm.swallow.content", st, 30, vl);
9496 if (!strcmp(st, "visible"))
9498 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9499 set_state(PART:"padding_icon_text", "icononly", 0.0);
9501 set_state(PART:"elm.text", "default", 0.0);
9504 program { name: "icon_show";
9505 signal: "elm,state,icon,visible";
9510 get_state(PART:"elm.text", st, 30, vl);
9511 if (!strcmp(st, "visible"))
9513 set_state(PART:"elm.swallow.content", "visible", 0.0);
9514 set_state(PART:"padding_icon_text", "visible", 0.0);
9518 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9519 set_state(PART:"padding_icon_text", "icononly", 0.0);
9523 program { name: "icon_hide";
9524 signal: "elm,state,icon,hidden";
9526 action: STATE_SET "default" 0.0;
9527 target: "elm.swallow.content";
9528 target: "padding_icon_text";
9530 program { name: "disable";
9531 signal: "elm,state,disabled";
9533 action: STATE_SET "disabled" 0.0;
9534 target: "button_image";
9537 after: "disable_text";
9539 program { name: "disable_text";
9543 set_int(button_state, BUTTON_STATE_DISABLED);
9544 get_state(PART:"elm.text", st, 30, vl);
9545 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9546 set_state(PART:"elm.text", "visible", 0.0);
9549 program { name: "enable";
9550 signal: "elm,state,enabled";
9552 action: STATE_SET "default" 0.0;
9553 target: "button_image";
9556 after: "enable_text";
9558 program { name: "enable_text";
9562 set_int(button_state, BUTTON_STATE_ENABLED);
9563 get_state(PART:"elm.text", st, 30, vl);
9564 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9565 set_state(PART:"elm.text", "visible", 0.0);
9568 program { name: "focused";
9569 //signal: "elm,action,focus";
9571 action: STATE_SET "focused" 0.0;
9572 target: "button_image";
9575 program { name: "unfocused";
9576 //signal: "elm,action,unfocus";
9578 action: STATE_SET "default" 0.0;
9579 target: "button_image";
9580 after: "unfocus_text";
9582 program { name: "unfocus_text";
9583 action: STATE_SET "visible" 0.0;
9589 /////////////////////////////////////////////////////////////
9590 group { name: "elm/button/base/naviframe/title1/default";
9592 image: "00_winset_Back_btn_normal.png" COMP;
9593 image: "00_winset_Back_btn_press.png" COMP;
9594 image: "00_winset_Back_btn_normal_focus.png" COMP;
9597 public button_state = BUTTON_STATE_ENABLED;
9600 part { name: "button_image";
9602 description { state: "default" 0.0;
9603 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9605 normal: "00_winset_Back_btn_normal.png";
9606 border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9610 description { state: "clicked" 0.0;
9611 inherit: "default" 0.0;
9612 image.normal: "00_winset_Back_btn_press.png";
9614 description { state: "disabled" 0.0;
9615 inherit: "default" 0.0;
9616 color: 127 127 127 127;
9618 description { state: "focused" 0.0;
9619 inherit: "default" 0.0;
9620 image.normal: "00_winset_Back_btn_normal_focus.png";
9623 part { name: "padding_left_top";
9627 description { state: "default" 0.0;
9629 rel2.relative: 0.0 0.0;
9630 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9639 description { state: "default" 0.0;
9640 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9643 description { state: "visible" 0.0;
9644 inherit: "default" 0.0;
9645 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9647 description { state: "icononly" 0.0;
9648 inherit: "default" 0.0;
9649 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9652 part { name: "padding_right_bottom";
9656 description { state: "default" 0.0;
9658 rel1.relative: 1.0 1.0;
9659 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9664 part { name: "icon_rect";
9668 description { state: "default" 0.0;
9674 to: "padding_left_top";
9678 to_x: "padding_left_top";
9679 to_y: "padding_right_bottom";
9683 description { state: "visible" 0.0;
9685 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9686 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9690 to: "padding_left_top";
9694 to_x: "padding_left_top";
9695 to_y: "padding_right_bottom";
9699 description { state: "icononly" 0.0;
9700 inherit: "default" 0.0;
9703 part { name: "padding_after_icon";
9707 description { state: "default" 0.0; //when only icon or no icon is there
9713 rel2.to: "icon_rect";
9718 description { state: "visible" 0.0;
9725 rel2.to: "icon_rect";
9727 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9729 description { state: "icononly" 0.0;
9730 inherit: "default" 0.0;
9733 part { name: "padding_before_text";
9737 description { state: "default" 0.0; //when only icon or no icon is there
9742 to_y: "padding_left_top";
9747 to_y: "padding_right_bottom";
9750 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9754 part { name: "elm.swallow.content";
9758 description { state: "default" 0.0;
9763 to: "padding_left_top";
9767 to_x: "padding_left_top";
9768 to_y: "padding_right_bottom";
9772 description { state: "visible" 0.0;
9774 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9775 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9779 to_x: "padding_before_text";
9780 to_y: "padding_left_top";
9784 to_x: "padding_before_text";
9785 to_y: "padding_right_bottom";
9788 description { state: "icononly" 0.0;
9789 min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9790 max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9793 part { name: "elm.text";
9798 description { state: "default" 0.0;
9802 to_x: "padding_after_icon";
9803 to_y: "padding_left_top";
9807 to: "padding_right_bottom";
9809 color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9811 font: "SLP:style=Medium";
9812 size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9815 text_class: "slp_medium";
9818 description { state: "visible" 0.0;
9819 inherit: "default" 0.0;
9822 description { state: "clicked" 0.0;
9823 inherit: "default" 0.0;
9825 color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9827 description { state: "disabled" 0.0;
9828 inherit: "default" 0.0;
9831 description { state: "disabled_visible" 0.0;
9832 inherit: "default" 0.0;
9833 color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9836 description { state: "focused" 0.0;
9837 inherit: "default" 0.0;
9839 color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9842 part { name: "over2";
9845 ignore_flags: ON_HOLD;
9846 description { state: "default" 0.0;
9850 part { name: "over3";
9853 description { state: "default" 0.0;
9857 part { name: "clipper";
9859 description { state: "default" 0.0;
9860 color: 255 255 255 255;
9863 part { name: "disabler";
9865 description { state: "default" 0.0;
9869 description { state: "disabled" 0.0;
9870 inherit: "default" 0.0;
9876 program { name: "button_click";
9877 signal: "mouse,down,1";
9879 action: SIGNAL_EMIT "elm,action,press" "";
9880 after: "button_click_anim";
9882 program { name: "button_click_anim";
9883 action: STATE_SET "clicked" 0.0;
9884 target: "button_image";
9885 after: "text_clicked";
9887 program { name: "text_clicked";
9891 get_state(PART:"elm.text", st, 30, vl);
9892 if (!strcmp(st, "visible"))
9893 set_state(PART:"elm.text", "clicked", 0.0);
9896 program { name: "button_unpress";
9897 action: SIGNAL_EMIT "elm,action,unpress" "";
9899 program { name: "button_mouseout_clicked";
9900 signal: "mouse,up,1";
9905 get_state(PART:"elm.swallow.content", st, 30, vl);
9906 if (strcmp(st, "icononly"))
9908 emit("elm,action,default,text,set", "");
9909 set_state(PART:"elm.text", "visible", 0.0);
9911 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9912 set_state(PART:"button_image", "default", 0.0);
9914 after: button_unpress;
9916 program { name: "touch_snd";
9917 signal: "mouse,clicked,1";
9919 action: PLAY_SAMPLE "touch_sound" 1.0;
9920 after: button_unclick3;
9922 program { name: "button_unclick3";
9923 action: SIGNAL_EMIT "elm,action,click" "";
9925 program { name: "text_show";
9926 signal: "elm,state,text,visible";
9931 get_state(PART:"elm.swallow.content", st, 30, vl);
9932 if (!strcmp(st, "icononly"))
9934 set_state(PART:"elm.swallow.content", "visible", 0.0);
9935 set_state(PART:"icon_rect", "visible", 0.0);
9936 set_state(PART:"padding_after_icon", "visible", 0.0);
9937 set_state(PART:"bg", "visible", 0.0);
9939 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9940 set_state(PART:"elm.text", "visible", 0.0);
9942 set_state(PART:"elm.text", "disabled_visible", 0.0);
9945 program { name: "text_hide";
9946 signal: "elm,state,text,hidden";
9951 get_state(PART:"elm.swallow.content", st, 30, vl);
9952 if (!strcmp(st, "visible"))
9954 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9955 set_state(PART:"icon_rect", "icononly", 0.0);
9956 set_state(PART:"padding_after_icon", "icononly", 0.0);
9957 set_state(PART:"bg", "icononly", 0.0);
9959 set_state(PART:"elm.text", "default", 0.0);
9962 program { name: "icon_show";
9963 signal: "elm,state,icon,visible";
9968 get_state(PART:"elm.text", st, 30, vl);
9969 if (!strcmp(st, "visible"))
9971 set_state(PART:"elm.swallow.content", "visible", 0.0);
9972 set_state(PART:"icon_rect", "visible", 0.0);
9973 set_state(PART:"padding_after_icon", "visible", 0.0);
9974 set_state(PART:"bg", "visible", 0.0);
9978 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9979 set_state(PART:"icon_rect", "icononly", 0.0);
9980 set_state(PART:"padding_after_icon", "icononly", 0.0);
9981 set_state(PART:"bg", "icononly", 0.0);
9985 program { name: "icon_hide";
9986 signal: "elm,state,icon,hidden";
9988 action: STATE_SET "default" 0.0;
9989 target: "elm.swallow.content";
9990 target: "padding_after_icon";
9991 target: "icon_rect";
9994 program { name: "disable";
9995 signal: "elm,state,disabled";
9997 action: STATE_SET "disabled" 0.0;
9998 target: "button_image";
10000 after: "disable_text";
10002 program { name: "disable_text";
10006 get_state(PART:"elm.text", st, 30, vl);
10007 if (!strcmp(st, "visible"))
10008 set_state(PART:"elm.text", "disabled_visible", 0.0);
10010 set_state(PART:"elm.text", "disabled", 0.0);
10011 set_int(button_state, BUTTON_STATE_DISABLED);
10014 program { name: "enable";
10015 signal: "elm,state,enabled";
10017 action: STATE_SET "default" 0.0;
10018 target: "button_image";
10019 target: "disabler";
10020 after: "enable_text";
10022 program { name: "enable_text";
10026 get_state(PART:"elm.text", st, 30, vl);
10027 if (!strcmp(st, "disabled_visible"))
10028 set_state(PART:"elm.text", "visible", 0.0);
10030 set_state(PART:"elm.text", "default", 0.0);
10031 set_int(button_state, BUTTON_STATE_ENABLED);
10034 program { name: "focused";
10035 //signal: "elm,action,focus";
10037 action: STATE_SET "focused" 0.0;
10038 target: "button_image";
10039 target: "elm.text";
10041 program { name: "unfocused";
10042 //signal: "elm,action,unfocus";
10044 action: STATE_SET "default" 0.0;
10045 target: "button_image";
10046 after: "unfocus_text";
10048 program { name: "unfocus_text";
10049 action: STATE_SET "visible" 0.0;
10050 target: "elm.text";
10055 //////////////////////////////////////////////////////////////
10056 group { name: "elm/button/base/naviframe/title/default";
10058 public button_state = BUTTON_STATE_ENABLED;
10061 image: "00_title_btn_bg_press.png" COMP;
10064 style { name: "btn_naviframe_style";
10065 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";
10072 part { name: "button_image";
10074 description { state: "default" 0.0;
10075 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10076 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10079 description { state: "clicked" 0.0;
10080 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10081 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10083 normal: "00_title_btn_bg_press.png";
10084 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
10088 description { state: "disabled" 0.0;
10089 inherit: "default" 0.0;
10091 description { state: "focused" 0.0;
10092 inherit: "default" 0.0;
10095 part { name: "padding_left_top";
10099 description { state: "default" 0.0;
10101 rel2.relative: 0.0 0.0;
10102 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10107 part { name: "padding_right_bottom";
10111 description { state: "default" 0.0;
10113 rel1.relative: 1.0 1.0;
10114 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10119 part { name: "icon_rect";
10123 description { state: "default" 0.0;
10129 to: "padding_left_top";
10133 to_x: "padding_left_top";
10134 to_y: "padding_right_bottom";
10138 description { state: "visible" 0.0;
10140 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10141 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10145 to: "padding_left_top";
10149 to_x: "padding_left_top";
10150 to_y: "padding_right_bottom";
10154 description { state: "icononly" 0.0;
10155 inherit: "default" 0.0;
10158 part { name: "padding_after_icon";
10162 description { state: "default" 0.0; //when only icon or no icon is there
10168 rel2.to: "icon_rect";
10173 description { state: "visible" 0.0;
10180 rel2.to: "icon_rect";
10182 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10184 description { state: "icononly" 0.0;
10185 inherit: "default" 0.0;
10188 part { name: "padding_before_text";
10192 description { state: "default" 0.0; //when only icon or no icon is there
10197 to_y: "padding_left_top";
10202 to_y: "padding_right_bottom";
10205 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10209 part { name: "elm.swallow.content";
10212 clip_to: "clipper";
10213 description { state: "default" 0.0;
10218 to: "padding_left_top";
10222 to_x: "padding_left_top";
10223 to_y: "padding_right_bottom";
10227 description { state: "visible" 0.0;
10229 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10230 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10234 to_x: "padding_before_text";
10235 to_y: "padding_left_top";
10239 to_x: "padding_before_text";
10240 to_y: "padding_right_bottom";
10243 description { state: "icononly" 0.0;
10244 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10245 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10248 part { name: "elm.text";
10252 clip_to: "clipper";
10253 description { state: "default" 0.0;
10257 to_x: "padding_after_icon";
10258 to_y: "padding_left_top";
10262 to: "padding_right_bottom";
10264 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
10266 style: "btn_naviframe_style";
10271 description { state: "visible" 0.0;
10272 inherit: "default" 0.0;
10275 description { state: "clicked" 0.0;
10276 inherit: "default" 0.0;
10278 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
10280 description { state: "disabled" 0.0;
10281 inherit: "default" 0.0;
10284 description { state: "disabled_visible" 0.0;
10285 inherit: "default" 0.0;
10286 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
10289 description { state: "focused" 0.0;
10290 inherit: "default" 0.0;
10292 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
10295 part { name: "over2";
10298 ignore_flags: ON_HOLD;
10299 description { state: "default" 0.0;
10303 part { name: "over3";
10306 description { state: "default" 0.0;
10310 part { name: "clipper";
10312 description { state: "default" 0.0;
10313 color: 255 255 255 255;
10316 part { name: "disabler";
10318 description { state: "default" 0.0;
10322 description { state: "disabled" 0.0;
10323 inherit: "default" 0.0;
10324 color: 127 127 127 127;
10330 program { name: "button_click";
10331 signal: "mouse,down,1";
10333 action: SIGNAL_EMIT "elm,action,press" "";
10334 after: "button_click_anim";
10336 program { name: "button_click_anim";
10337 action: STATE_SET "clicked" 0.0;
10338 target: "button_image";
10339 after: "text_clicked";
10341 program { name: "text_clicked";
10345 get_state(PART:"elm.text", st, 30, vl);
10346 if (!strcmp(st, "visible"))
10347 set_state(PART:"elm.text", "clicked", 0.0);
10350 program { name: "button_unpress";
10351 action: SIGNAL_EMIT "elm,action,unpress" "";
10353 program { name: "button_mouseout_clicked";
10354 signal: "mouse,up,1";
10359 get_state(PART:"elm.swallow.content", st, 30, vl);
10360 if (strcmp(st, "icononly"))
10362 emit("elm,action,default,text,set", "");
10363 set_state(PART:"elm.text", "visible", 0.0);
10365 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10366 set_state(PART:"button_image", "default", 0.0);
10368 after: button_unpress;
10370 program { name: "touch_snd";
10371 signal: "mouse,clicked,1";
10373 action: PLAY_SAMPLE "touch_sound" 1.0;
10374 after: button_unclick3;
10376 program { name: "button_unclick3";
10377 action: SIGNAL_EMIT "elm,action,click" "";
10379 program { name: "text_show";
10380 signal: "elm,state,text,visible";
10385 get_state(PART:"elm.swallow.content", st, 30, vl);
10386 if (!strcmp(st, "icononly"))
10388 set_state(PART:"elm.swallow.content", "visible", 0.0);
10389 set_state(PART:"icon_rect", "visible", 0.0);
10390 set_state(PART:"padding_after_icon", "visible", 0.0);
10392 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10393 set_state(PART:"elm.text", "visible", 0.0);
10395 set_state(PART:"elm.text", "disabled_visible", 0.0);
10398 program { name: "text_hide";
10399 signal: "elm,state,text,hidden";
10404 get_state(PART:"elm.swallow.content", st, 30, vl);
10405 if (!strcmp(st, "visible"))
10407 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10408 set_state(PART:"icon_rect", "icononly", 0.0);
10409 set_state(PART:"padding_after_icon", "icononly", 0.0);
10411 set_state(PART:"elm.text", "default", 0.0);
10414 program { name: "icon_show";
10415 signal: "elm,state,icon,visible";
10420 get_state(PART:"elm.text", st, 30, vl);
10421 if (!strcmp(st, "visible"))
10423 set_state(PART:"elm.swallow.content", "visible", 0.0);
10424 set_state(PART:"icon_rect", "visible", 0.0);
10425 set_state(PART:"padding_after_icon", "visible", 0.0);
10429 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10430 set_state(PART:"icon_rect", "icononly", 0.0);
10431 set_state(PART:"padding_after_icon", "icononly", 0.0);
10435 program { name: "icon_hide";
10436 signal: "elm,state,icon,hidden";
10438 action: STATE_SET "default" 0.0;
10439 target: "elm.swallow.content";
10440 target: "padding_after_icon";
10441 target: "icon_rect";
10443 program { name: "disable";
10444 signal: "elm,state,disabled";
10446 action: STATE_SET "disabled" 0.0;
10447 target: "button_image";
10448 target: "disabler";
10449 after: "disable_text";
10451 program { name: "disable_text";
10455 get_state(PART:"elm.text", st, 30, vl);
10456 if (!strcmp(st, "visible"))
10457 set_state(PART:"elm.text", "disabled_visible", 0.0);
10459 set_state(PART:"elm.text", "disabled", 0.0);
10460 set_int(button_state, BUTTON_STATE_DISABLED);
10463 program { name: "enable";
10464 signal: "elm,state,enabled";
10466 action: STATE_SET "default" 0.0;
10467 target: "button_image";
10468 target: "disabler";
10469 after: "enable_text";
10471 program { name: "enable_text";
10475 get_state(PART:"elm.text", st, 30, vl);
10476 if (!strcmp(st, "disabled_visible"))
10477 set_state(PART:"elm.text", "visible", 0.0);
10479 set_state(PART:"elm.text", "default", 0.0);
10480 set_int(button_state, BUTTON_STATE_ENABLED);
10483 program { name: "focused";
10484 //signal: "elm,action,focus";
10486 action: STATE_SET "focused" 0.0;
10487 target: "button_image";
10488 target: "elm.text";
10490 program { name: "unfocused";
10491 //signal: "elm,action,unfocus";
10493 action: STATE_SET "default" 0.0;
10494 target: "button_image";
10495 after: "unfocus_text";
10497 program { name: "unfocus_text";
10498 action: STATE_SET "visible" 0.0;
10499 target: "elm.text";
10504 ///////////////////////////////////////////////////////////////////////////////////////
10505 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10506 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10508 image: image_normal COMP; \
10509 image: image_press COMP; \
10510 image: "00_title_btn_bg_press.png" COMP; \
10513 part { name: "button_image"; \
10515 description { state: "default" 0.0; \
10516 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10517 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10521 state: "clicked" 0.0; \
10522 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10523 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10525 normal: "00_title_btn_bg_press.png"; \
10526 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10531 state: "disabled" 0.0; \
10532 inherit: "default" 0.0; \
10534 description { state: "focused" 0.0; \
10535 inherit: "default" 0.0;\
10538 part { name: "icon_part"; \
10540 description { state: "default" 0.0; \
10541 min: min_width min_height; \
10542 max: min_width min_height; \
10543 rel1.to: "button_image"; \
10544 rel2.to: "button_image"; \
10545 image.normal: image_normal; \
10548 state: "clicked" 0.0; \
10549 inherit: "default" 0.0; \
10550 image.normal: image_press; \
10553 state: "disabled" 0.0; \
10554 inherit: "default" 0.0; \
10555 color: 127 127 127 127; \
10558 part { name: "over1"; \
10560 ignore_flags: ON_HOLD; \
10561 description { state: "default" 0.0; \
10565 part { name: "over2"; \
10566 repeat_events: 1; \
10567 description { state: "default" 0.0; \
10571 part { name: "disabler"; \
10573 description { state: "default" 0.0; \
10577 description { state: "disabled" 0.0; \
10578 inherit: "default" 0.0; \
10584 program { name: "button_click"; \
10585 signal: "mouse,down,1"; \
10587 action: SIGNAL_EMIT "elm,action,press" ""; \
10588 after: "button_click_anim"; \
10590 program { name: "button_click_anim"; \
10591 action: STATE_SET "clicked" 0.0; \
10592 target: "button_image"; \
10593 target: "icon_part"; \
10595 program { name: "button_unclick"; \
10596 signal: "mouse,up,1"; \
10598 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10599 after: "button_unclick_anim"; \
10601 program { name: "button_unclick_anim"; \
10602 action: STATE_SET "default" 0.0; \
10603 target: "button_image"; \
10604 target: "icon_part"; \
10606 program { name: "touch_snd"; \
10607 signal: "mouse,clicked,1"; \
10609 action: PLAY_SAMPLE "touch_sound" 1.0; \
10610 after: button_unclick3; \
10612 program { name: "button_unclick3"; \
10613 action: SIGNAL_EMIT "elm,action,click" ""; \
10615 program { name: "disable"; \
10616 signal: "elm,state,disabled"; \
10618 action: STATE_SET "disabled" 0.0; \
10619 target: "disabler"; \
10620 target: "button_image"; \
10621 target: "icon_part"; \
10623 program { name: "enable"; \
10624 signal: "elm,state,enabled"; \
10626 action: STATE_SET "default" 0.0; \
10627 target: "disabler"; \
10628 target: "button_image"; \
10629 target: "icon_part"; \
10633 ///////////////////////////////////////////////////////////////////////////////////////
10634 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)
10636 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)
10638 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)
10640 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)
10642 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)
10644 /////////////////////////////////////////////////////////////////////////////////////////
10645 group { name: "elm/button/base/naviframe/more/default";
10647 image: "00_winset_more.png" COMP;
10648 image: "00_winset_more_press.png" COMP;
10649 image: "00_title_btn_bg_press.png" COMP;
10652 part { name: "button_image";
10654 description { state: "default" 0.0;
10655 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10656 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10659 description { state: "clicked" 0.0;
10660 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10661 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10663 normal: "00_title_btn_bg_press.png";
10664 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10668 description { state: "disabled" 0.0;
10669 inherit: "default" 0.0;
10671 description { state: "focused" 0.0;
10672 inherit: "default" 0.0;
10675 part { name: "more_image";
10678 description { state: "default" 0.0;
10679 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10680 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10681 rel1.to: "button_image";
10682 rel2.to: "button_image";
10683 image.normal: "00_winset_more.png";
10685 description { state: "clicked" 0.0;
10686 inherit: "default" 0.0;
10687 image.normal: "00_winset_more_press.png";
10689 description { state: "disabled" 0.0;
10690 inherit: "default" 0.0;
10691 color: 255 255 255 127;
10694 part { name: "over2";
10697 ignore_flags: ON_HOLD;
10698 description { state: "default" 0.0;
10702 part { name: "over3";
10705 description { state: "default" 0.0;
10709 part { name: "disabler";
10711 description { state: "default" 0.0;
10715 description { state: "disabled" 0.0;
10716 inherit: "default" 0.0;
10722 program { name: "button_click";
10723 signal: "mouse,down,1";
10725 action: SIGNAL_EMIT "elm,action,press" "";
10726 after: "button_click_anim";
10728 program { name: "button_click_anim";
10729 action: STATE_SET "clicked" 0.0;
10730 target: "button_image";
10731 target: "more_image";
10733 program { name: "button_unclick";
10734 signal: "mouse,up,1";
10736 action: SIGNAL_EMIT "elm,action,unpress" "";
10737 after: "button_unclick_anim";
10739 program { name: "button_unclick_anim";
10740 action: STATE_SET "default" 0.0;
10741 target: "button_image";
10742 target: "more_image";
10744 program { name: "touch_snd";
10745 signal: "mouse,clicked,1";
10747 action: PLAY_SAMPLE "touch_sound" 1.0;
10748 after: button_unclick3;
10750 program { name: "button_unclick3";
10751 action: SIGNAL_EMIT "elm,action,click" "";
10753 program { name: "disable";
10754 signal: "elm,state,disabled";
10756 action: STATE_SET "disabled" 0.0;
10757 target: "disabler";
10758 target: "button_image";
10759 target: "more_image";
10761 program { name: "enable";
10762 signal: "elm,state,enabled";
10764 action: STATE_SET "default" 0.0;
10765 target: "disabler";
10766 target: "button_image";
10767 target: "more_image";
10772 ///////////////////////////////////////////////////////////////////////////////////////
10773 group { name: "elm/button/base/tickernoti";
10775 image: "00_button_06_normal.png" COMP;
10776 image: "00_button_06_press.png" COMP;
10777 image: "00_button_06_dim.png" COMP;
10778 image: "00_button_06_normal_focus.png" COMP;
10781 public button_state = BUTTON_STATE_ENABLED;
10784 part { name: "button_image";
10786 description { state: "default" 0.0;
10788 normal: "00_button_06_normal.png";
10789 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10793 description { state: "clicked" 0.0;
10794 inherit: "default" 0.0;
10795 image.normal: "00_button_06_press.png";
10797 description { state: "disabled" 0.0;
10798 inherit: "default" 0.0;
10799 image.normal: "00_button_06_dim.png";
10801 description { state: "focused" 0.0;
10802 inherit: "default" 0.0;
10803 image.normal: "00_button_06_normal_focus.png";
10806 part { name: "padding_left_top";
10810 description { state: "default" 0.0;
10812 rel2.relative: 0.0 0.0;
10813 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10822 description { state: "default" 0.0;
10823 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10826 description { state: "visible" 0.0;
10827 inherit: "default" 0.0;
10828 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10830 description { state: "icononly" 0.0;
10831 inherit: "default" 0.0;
10832 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10835 part { name: "padding_right_bottom";
10839 description { state: "default" 0.0;
10841 rel1.relative: 1.0 1.0;
10842 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10847 part { name: "icon_rect";
10851 description { state: "default" 0.0;
10857 to: "padding_left_top";
10861 to_x: "padding_left_top";
10862 to_y: "padding_right_bottom";
10866 description { state: "visible" 0.0;
10868 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10869 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10873 to: "padding_left_top";
10877 to_x: "padding_left_top";
10878 to_y: "padding_right_bottom";
10882 description { state: "icononly" 0.0;
10883 inherit: "default" 0.0;
10886 part { name: "padding_after_icon";
10890 description { state: "default" 0.0; //when only icon or no icon is there
10896 rel2.to: "icon_rect";
10901 description { state: "visible" 0.0;
10908 rel2.to: "icon_rect";
10910 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10912 description { state: "icononly" 0.0;
10913 inherit: "default" 0.0;
10916 part { name: "padding_before_text";
10920 description { state: "default" 0.0; //when only icon or no icon is there
10925 to_y: "padding_left_top";
10930 to_y: "padding_right_bottom";
10933 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10937 part { name: "elm.swallow.content";
10940 clip_to: "clipper";
10941 description { state: "default" 0.0;
10946 to: "padding_left_top";
10950 to_x: "padding_left_top";
10951 to_y: "padding_right_bottom";
10955 description { state: "visible" 0.0;
10957 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10958 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10962 to_x: "padding_before_text";
10963 to_y: "padding_left_top";
10967 to_x: "padding_before_text";
10968 to_y: "padding_right_bottom";
10971 description { state: "icononly" 0.0;
10972 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10973 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10976 part { name: "elm.text";
10980 clip_to: "clipper";
10981 description { state: "default" 0.0;
10985 to_x: "padding_after_icon";
10986 to_y: "padding_left_top";
10990 to: "padding_right_bottom";
10992 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
10994 font: "SLP:style=Medium";
10995 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
10998 text_class: "slp_medium";
11001 description { state: "visible" 0.0;
11002 inherit: "default" 0.0;
11005 description { state: "clicked" 0.0;
11006 inherit: "default" 0.0;
11008 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11010 description { state: "disabled" 0.0;
11011 inherit: "default" 0.0;
11014 description { state: "disabled_visible" 0.0;
11015 inherit: "default" 0.0;
11016 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
11019 description { state: "focused" 0.0;
11020 inherit: "default" 0.0;
11022 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11025 part { name: "over2";
11028 ignore_flags: ON_HOLD;
11029 description { state: "default" 0.0;
11033 part { name: "over3";
11036 description { state: "default" 0.0;
11040 part { name: "clipper";
11042 description { state: "default" 0.0;
11043 color: 255 255 255 255;
11046 part { name: "disabler";
11048 description { state: "default" 0.0;
11052 description { state: "disabled" 0.0;
11053 inherit: "default" 0.0;
11059 program { name: "button_click";
11060 signal: "mouse,down,1";
11062 action: SIGNAL_EMIT "elm,action,press" "";
11063 after: "button_click_anim";
11065 program { name: "button_click_anim";
11066 action: STATE_SET "clicked" 0.0;
11067 target: "button_image";
11068 after: "text_clicked";
11070 program { name: "text_clicked";
11074 get_state(PART:"elm.text", st, 30, vl);
11075 if (!strcmp(st, "visible"))
11076 set_state(PART:"elm.text", "clicked", 0.0);
11079 program { name: "button_unpress";
11080 action: SIGNAL_EMIT "elm,action,unpress" "";
11082 program { name: "button_mouseout_clicked";
11083 signal: "mouse,up,1";
11088 get_state(PART:"elm.swallow.content", st, 30, vl);
11089 if (strcmp(st, "icononly"))
11091 emit("elm,action,default,text,set", "");
11092 set_state(PART:"elm.text", "visible", 0.0);
11094 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11095 set_state(PART:"button_image", "default", 0.0);
11097 after: button_unpress;
11099 program { name: "touch_snd";
11100 signal: "mouse,clicked,1";
11102 action: PLAY_SAMPLE "touch_sound" 1.0;
11103 after: button_unclick3;
11105 program { name: "button_unclick3";
11106 action: SIGNAL_EMIT "elm,action,click" "";
11108 program { name: "text_show";
11109 signal: "elm,state,text,visible";
11114 get_state(PART:"elm.swallow.content", st, 30, vl);
11115 if (!strcmp(st, "icononly"))
11117 set_state(PART:"elm.swallow.content", "visible", 0.0);
11118 set_state(PART:"icon_rect", "visible", 0.0);
11119 set_state(PART:"padding_after_icon", "visible", 0.0);
11120 set_state(PART:"bg", "visible", 0.0);
11122 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11123 set_state(PART:"elm.text", "visible", 0.0);
11125 set_state(PART:"elm.text", "disabled_visible", 0.0);
11128 program { name: "text_hide";
11129 signal: "elm,state,text,hidden";
11134 get_state(PART:"elm.swallow.content", st, 30, vl);
11135 if (!strcmp(st, "visible"))
11137 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11138 set_state(PART:"icon_rect", "icononly", 0.0);
11139 set_state(PART:"padding_after_icon", "icononly", 0.0);
11140 set_state(PART:"bg", "icononly", 0.0);
11142 set_state(PART:"elm.text", "default", 0.0);
11145 program { name: "icon_show";
11146 signal: "elm,state,icon,visible";
11151 get_state(PART:"elm.text", st, 30, vl);
11152 if (!strcmp(st, "visible"))
11154 set_state(PART:"elm.swallow.content", "visible", 0.0);
11155 set_state(PART:"icon_rect", "visible", 0.0);
11156 set_state(PART:"padding_after_icon", "visible", 0.0);
11157 set_state(PART:"bg", "visible", 0.0);
11161 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11162 set_state(PART:"icon_rect", "icononly", 0.0);
11163 set_state(PART:"padding_after_icon", "icononly", 0.0);
11164 set_state(PART:"bg", "icononly", 0.0);
11168 program { name: "icon_hide";
11169 signal: "elm,state,icon,hidden";
11171 action: STATE_SET "default" 0.0;
11172 target: "elm.swallow.content";
11173 target: "padding_after_icon";
11174 target: "icon_rect";
11177 program { name: "disable";
11178 signal: "elm,state,disabled";
11180 action: STATE_SET "disabled" 0.0;
11181 target: "button_image";
11182 target: "disabler";
11183 after: "disable_text";
11185 program { name: "disable_text";
11189 get_state(PART:"elm.text", st, 30, vl);
11190 if (!strcmp(st, "visible"))
11191 set_state(PART:"elm.text", "disabled_visible", 0.0);
11193 set_state(PART:"elm.text", "disabled", 0.0);
11194 set_int(button_state, BUTTON_STATE_DISABLED);
11197 program { name: "enable";
11198 signal: "elm,state,enabled";
11200 action: STATE_SET "default" 0.0;
11201 target: "button_image";
11202 target: "disabler";
11203 after: "enable_text";
11205 program { name: "enable_text";
11209 get_state(PART:"elm.text", st, 30, vl);
11210 if (!strcmp(st, "disabled_visible"))
11211 set_state(PART:"elm.text", "visible", 0.0);
11213 set_state(PART:"elm.text", "default", 0.0);
11214 set_int(button_state, BUTTON_STATE_ENABLED);
11217 program { name: "focused";
11218 //signal: "elm,action,focus";
11220 action: STATE_SET "focused" 0.0;
11221 target: "button_image";
11222 target: "elm.text";
11224 program { name: "unfocused";
11225 //signal: "elm,action,unfocus";
11227 action: STATE_SET "default" 0.0;
11228 target: "button_image";
11229 after: "unfocus_text";
11231 program { name: "unfocus_text";
11232 action: STATE_SET "visible" 0.0;
11233 target: "elm.text";
11238 ///////////////////////////////////////////////////////////////////////////////////////
11239 group { name: "elm/button/base/expandable_number";
11240 alias: "elm/button/base/text_only/expandable_number";
11242 image: "00_button_05_normal.png" COMP;
11243 image: "00_button_05_press.png" COMP;
11244 image: "00_button_05_dim.png" COMP;
11245 image: "00_button_05_normal_focus.png" COMP;
11246 image: "00_arrow_expand.png" COMP;
11247 image: "00_arrow_expand_press.png" COMP;
11248 image: "00_arrow_expand_dim.png" COMP;
11251 public button_state = BUTTON_STATE_ENABLED;
11254 part { name: "button_image";
11256 description { state: "default" 0.0;
11257 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11258 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11260 normal: "00_button_05_normal.png";
11261 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
11265 description { state: "clicked" 0.0;
11266 inherit: "default" 0.0;
11267 image.normal: "00_button_05_press.png";
11269 description { state: "disabled" 0.0;
11270 inherit: "default" 0.0;
11271 image.normal: "00_button_05_dim.png";
11273 description { state: "focused" 0.0;
11274 inherit: "default" 0.0;
11275 image.normal: "00_button_05_normal_focus.png";
11278 part { name: "padding_left_top";
11282 description { state: "default" 0.0;
11284 rel2.relative: 0.0 0.0;
11285 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11290 part { name: "padding_right_bottom";
11294 description { state: "default" 0.0;
11296 rel1.relative: 1.0 1.0;
11297 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11302 part { name: "icon_rect";
11306 description { state: "default" 0.0;
11308 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11309 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11313 to_x: "padding_right_bottom";
11314 to_y: "padding_left_top";
11318 to: "padding_right_bottom";
11324 part { name: "arrow_expand";
11327 description { state: "default" 0.0;
11329 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11330 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11332 rel1.to: "icon_rect";
11333 rel2.to: "icon_rect";
11334 image.normal:"00_arrow_expand.png";
11336 description { state: "clicked" 0.0;
11337 inherit: "default" 0.0;
11338 image.normal:"00_arrow_expand_press.png";
11340 description { state: "disabled" 0.0;
11341 inherit: "default" 0.0;
11342 image.normal:"00_arrow_expand_dim.png";
11345 part { name: "elm.text";
11349 description { state: "default" 0.0;
11350 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11351 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11355 to: "padding_left_top";
11359 to_x:"padding_left_top";
11360 to_y:"padding_right_bottom";
11363 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
11365 font: "SLP:style=Medium";
11366 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
11370 text_class: "slp_medium";
11373 description { state: "visible" 0.0;
11374 inherit: "default" 0.0;
11376 description { state: "clicked" 0.0;
11377 inherit: "default" 0.0;
11378 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
11380 description { state: "disabled" 0.0;
11381 inherit: "default" 0.0;
11384 description { state: "disabled_visible" 0.0;
11385 inherit: "default" 0.0;
11386 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
11388 description { state: "focused" 0.0;
11389 inherit: "default" 0.0;
11390 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
11393 part { name: "over2";
11396 ignore_flags: ON_HOLD;
11397 description { state: "default" 0.0;
11401 part { name: "over3";
11404 description { state: "default" 0.0;
11408 part { name: "disabler";
11410 description { state: "default" 0.0;
11414 description { state: "disabled" 0.0;
11415 inherit: "default" 0.0;
11421 program { name: "button_click";
11422 signal: "mouse,down,1";
11424 action: SIGNAL_EMIT "elm,action,press" "";
11425 after: "button_click_anim";
11427 program { name: "button_click_anim";
11428 action: STATE_SET "clicked" 0.0;
11429 target: "button_image";
11430 target: "arrow_expand";
11431 after: "text_clicked";
11433 program { name: "text_clicked";
11437 get_state(PART:"elm.text", st, 30, vl);
11438 if (!strcmp(st, "visible"))
11439 set_state(PART:"elm.text", "clicked", 0.0);
11442 program { name: "button_unpress";
11443 action: SIGNAL_EMIT "elm,action,unpress" "";
11445 program { name: "button_mouseout_clicked";
11446 signal: "mouse,up,1";
11449 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11451 set_state(PART:"button_image", "default", 0.0);
11452 set_state(PART:"elm.text", "visible", 0.0);
11453 set_state(PART:"arrow_expand", "default", 0.0);
11456 after: button_unpress;
11458 program { name: "touch_snd";
11459 signal: "mouse,clicked,1";
11461 action: PLAY_SAMPLE "touch_sound" 1.0;
11462 after: button_unclick3;
11464 program { name: "button_unclick3";
11465 action: SIGNAL_EMIT "elm,action,click" "";
11467 program { name: "text_show";
11468 signal: "elm,state,text,visible";
11471 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11472 set_state(PART:"elm.text", "visible", 0.0);
11474 set_state(PART:"elm.text", "disabled_visible", 0.0);
11477 program { name: "text_hide";
11478 signal: "elm,state,text,hidden";
11481 set_state(PART:"elm.text", "default", 0.0);
11484 program { name: "disable";
11485 signal: "elm,state,disabled";
11487 action: STATE_SET "disabled" 0.0;
11488 target: "button_image";
11489 target: "disabler";
11490 after: "disable_text";
11492 program { name: "disable_text";
11496 get_state(PART:"elm.text", st, 30, vl);
11497 if (!strcmp(st, "visible"))
11498 set_state(PART:"elm.text", "disabled_visible", 0.0);
11500 set_state(PART:"elm.text", "disabled", 0.0);
11501 set_int(button_state, BUTTON_STATE_DISABLED);
11504 program { name: "enable";
11505 signal: "elm,state,enabled";
11507 action: STATE_SET "default" 0.0;
11508 target: "button_image";
11509 target: "disabler";
11510 after: "enable_text";
11512 program { name: "enable_text";
11516 get_state(PART:"elm.text", st, 30, vl);
11517 if (!strcmp(st, "disabled_visible"))
11518 set_state(PART:"elm.text", "visible", 0.0);
11520 set_state(PART:"elm.text", "default", 0.0);
11521 set_int(button_state, BUTTON_STATE_ENABLED);
11524 program { name: "focused";
11525 //signal: "elm,action,focus";
11527 action: STATE_SET "focused" 0.0;
11528 target: "button_image";
11529 target: "elm.text";
11531 program { name: "unfocused";
11532 //signal: "elm,action,unfocus";
11534 action: STATE_SET "default" 0.0;
11535 target: "button_image";
11536 after: "unfocus_text";
11538 program { name: "unfocus_text";
11539 action: STATE_SET "visible" 0.0;
11540 target: "elm.text";
11545 #undef BUTTON_STATE_ENABLED
11546 #undef BUTTON_STATE_DISABLED