2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
24 name: "touch_sound" AS_IS;
25 source: "S_Touch_30ms.wav";
29 ///////////////////////////////////////////////////////////////////////////////////////
30 group { name: "elm/button/base/style1";
31 alias: "elm/button/base/text_only/style1";
32 alias: "elm/button/base/center";
33 alias: "elm/button/base/icon_and_text/center";
34 alias: "elm/button/base/nocontents/search_button";
36 image: "00_button_01_normal.png" COMP;
37 image: "00_button_01_normal_press.png" COMP;
38 image: "00_button_01_normal_dim.png" COMP;
39 image: "00_button_01_normal_Focus.png" COMP;
42 public button_state = BUTTON_STATE_ENABLED;
45 part { name: "button_image";
47 description { state: "default" 0.0;
49 normal: "00_button_01_normal.png";
50 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
54 description { state: "clicked" 0.0;
55 inherit: "default" 0.0;
56 image.normal: "00_button_01_normal_press.png";
58 description { state: "disabled" 0.0;
59 inherit: "default" 0.0;
60 image.normal: "00_button_01_normal_dim.png";
62 description { state: "focused" 0.0;
63 inherit: "default" 0.0;
64 image.normal: "00_button_01_normal_Focus.png";
67 part { name: "padding_left_top";
71 description { state: "default" 0.0;
73 rel2.relative: 0.0 0.0;
74 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
83 description { state: "default" 0.0;
84 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
89 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
91 description { state: "icononly" 0.0;
92 inherit: "default" 0.0;
93 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
96 part { name: "padding_right_bottom";
100 description { state: "default" 0.0;
102 rel1.relative: 1.0 1.0;
103 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
108 part { name: "icon_rect";
112 description { state: "default" 0.0;
118 to: "padding_left_top";
122 to_x: "padding_left_top";
123 to_y: "padding_right_bottom";
127 description { state: "visible" 0.0;
129 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
130 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
134 to: "padding_left_top";
138 to_x: "padding_left_top";
139 to_y: "padding_right_bottom";
143 description { state: "icononly" 0.0;
144 inherit: "default" 0.0;
147 part { name: "padding_after_icon";
151 description { state: "default" 0.0; //when only icon or no icon is there
157 rel2.to: "icon_rect";
162 description { state: "visible" 0.0;
169 rel2.to: "icon_rect";
171 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
173 description { state: "icononly" 0.0;
174 inherit: "default" 0.0;
177 part { name: "padding_before_text";
181 description { state: "default" 0.0; //when only icon or no icon is there
186 to_y: "padding_left_top";
191 to_y: "padding_right_bottom";
194 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
198 part { name: "elm.swallow.content";
202 description { state: "default" 0.0;
207 to: "padding_left_top";
211 to_x: "padding_left_top";
212 to_y: "padding_right_bottom";
216 description { state: "visible" 0.0;
218 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
219 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
223 to_x: "padding_before_text";
224 to_y: "padding_left_top";
228 to_x: "padding_before_text";
229 to_y: "padding_right_bottom";
232 description { state: "icononly" 0.0;
233 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
234 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
237 part { name: "elm.text";
242 description { state: "default" 0.0;
246 to_x: "padding_after_icon";
247 to_y: "padding_left_top";
251 to: "padding_right_bottom";
253 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
255 font: "SLP:style=Medium";
256 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
259 text_class: "slp_medium";
262 description { state: "visible" 0.0;
263 inherit: "default" 0.0;
266 description { state: "clicked" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
271 description { state: "disabled" 0.0;
272 inherit: "default" 0.0;
275 description { state: "disabled_visible" 0.0;
276 inherit: "default" 0.0;
277 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
280 description { state: "focused" 0.0;
281 inherit: "default" 0.0;
283 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
286 part { name: "over2";
289 ignore_flags: ON_HOLD;
290 description { state: "default" 0.0;
294 part { name: "over3";
297 description { state: "default" 0.0;
301 part { name: "clipper";
303 description { state: "default" 0.0;
304 color: 255 255 255 255;
307 part { name: "disabler";
309 description { state: "default" 0.0;
313 description { state: "disabled" 0.0;
314 inherit: "default" 0.0;
320 program { name: "button_click";
321 signal: "mouse,down,1";
323 action: SIGNAL_EMIT "elm,action,press" "";
324 after: "button_click_anim";
326 program { name: "button_click_anim";
327 action: STATE_SET "clicked" 0.0;
328 target: "button_image";
329 after: "text_clicked";
331 program { name: "text_clicked";
335 get_state(PART:"elm.text", st, 30, vl);
336 if (!strcmp(st, "visible"))
337 set_state(PART:"elm.text", "clicked", 0.0);
340 program { name: "button_unpress";
341 action: SIGNAL_EMIT "elm,action,unpress" "";
343 program { name: "button_mouseout_clicked";
344 signal: "mouse,up,1";
349 get_state(PART:"elm.swallow.content", st, 30, vl);
350 if (strcmp(st, "icononly"))
352 emit("elm,action,default,text,set", "");
353 set_state(PART:"elm.text", "visible", 0.0);
355 if (get_int(button_state) != BUTTON_STATE_DISABLED)
356 set_state(PART:"button_image", "default", 0.0);
358 after: button_unpress;
360 program { name: "touch_snd";
361 signal: "mouse,clicked,1";
363 action: PLAY_SAMPLE "touch_sound" 1.0;
364 after: button_unclick3;
366 program { name: "button_unclick3";
367 action: SIGNAL_EMIT "elm,action,click" "";
369 program { name: "text_show";
370 signal: "elm,state,text,visible";
375 get_state(PART:"elm.swallow.content", st, 30, vl);
376 if (!strcmp(st, "icononly"))
378 set_state(PART:"elm.swallow.content", "visible", 0.0);
379 set_state(PART:"icon_rect", "visible", 0.0);
380 set_state(PART:"padding_after_icon", "visible", 0.0);
381 set_state(PART:"bg", "visible", 0.0);
383 if (get_int(button_state) != BUTTON_STATE_DISABLED)
384 set_state(PART:"elm.text", "visible", 0.0);
386 set_state(PART:"elm.text", "disabled_visible", 0.0);
389 program { name: "text_hide";
390 signal: "elm,state,text,hidden";
395 get_state(PART:"elm.swallow.content", st, 30, vl);
396 if (!strcmp(st, "visible"))
398 set_state(PART:"elm.swallow.content", "icononly", 0.0);
399 set_state(PART:"icon_rect", "icononly", 0.0);
400 set_state(PART:"padding_after_icon", "icononly", 0.0);
401 set_state(PART:"bg", "icononly", 0.0);
403 set_state(PART:"elm.text", "default", 0.0);
406 program { name: "icon_show";
407 signal: "elm,state,icon,visible";
412 get_state(PART:"elm.text", st, 30, vl);
413 if (!strcmp(st, "visible"))
415 set_state(PART:"elm.swallow.content", "visible", 0.0);
416 set_state(PART:"icon_rect", "visible", 0.0);
417 set_state(PART:"padding_after_icon", "visible", 0.0);
418 set_state(PART:"bg", "visible", 0.0);
422 set_state(PART:"elm.swallow.content", "icononly", 0.0);
423 set_state(PART:"icon_rect", "icononly", 0.0);
424 set_state(PART:"padding_after_icon", "icononly", 0.0);
425 set_state(PART:"bg", "icononly", 0.0);
429 program { name: "icon_hide";
430 signal: "elm,state,icon,hidden";
432 action: STATE_SET "default" 0.0;
433 target: "elm.swallow.content";
434 target: "padding_after_icon";
438 program { name: "disable";
439 signal: "elm,state,disabled";
441 action: STATE_SET "disabled" 0.0;
442 target: "button_image";
444 after: "disable_text";
446 program { name: "disable_text";
450 get_state(PART:"elm.text", st, 30, vl);
451 if (!strcmp(st, "visible"))
452 set_state(PART:"elm.text", "disabled_visible", 0.0);
454 set_state(PART:"elm.text", "disabled", 0.0);
455 set_int(button_state, BUTTON_STATE_DISABLED);
458 program { name: "enable";
459 signal: "elm,state,enabled";
461 action: STATE_SET "default" 0.0;
462 target: "button_image";
464 after: "enable_text";
466 program { name: "enable_text";
470 get_state(PART:"elm.text", st, 30, vl);
471 if (!strcmp(st, "disabled_visible"))
472 set_state(PART:"elm.text", "visible", 0.0);
474 set_state(PART:"elm.text", "default", 0.0);
475 set_int(button_state, BUTTON_STATE_ENABLED);
478 program { name: "focused";
479 //signal: "elm,action,focus";
481 action: STATE_SET "focused" 0.0;
482 target: "button_image";
485 program { name: "unfocused";
486 //signal: "elm,action,unfocus";
488 action: STATE_SET "default" 0.0;
489 target: "button_image";
490 after: "unfocus_text";
492 program { name: "unfocus_text";
493 action: STATE_SET "visible" 0.0;
499 //////////////////////////////////////////////////////////////
500 group { name: "elm/button/base/style1/auto_expand";
501 alias: "elm/button/base/datetime_ampm/default";
503 image: "00_button_01_normal.png" COMP;
504 image: "00_button_01_normal_press.png" COMP;
505 image: "00_button_01_normal_dim.png" COMP;
506 image: "00_button_01_normal_Focus.png" COMP;
509 public button_state = BUTTON_STATE_ENABLED;
512 part { name: "button_image";
514 description { state: "default" 0.0;
516 normal: "00_button_01_normal.png";
517 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
521 description { state: "clicked" 0.0;
522 inherit: "default" 0.0;
523 image.normal: "00_button_01_normal_press.png";
525 description { state: "disabled" 0.0;
526 inherit: "default" 0.0;
527 image.normal: "00_button_01_normal_dim.png";
529 description { state: "focused" 0.0;
530 inherit: "default" 0.0;
531 image.normal: "00_button_01_normal_Focus.png";
534 part { name: "padding_left_top";
538 description { state: "default" 0.0;
540 rel2.relative: 0.0 0.0;
541 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
550 description { state: "default" 0.0;
551 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
554 description { state: "visible" 0.0;
555 inherit: "default" 0.0;
556 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
558 description { state: "icononly" 0.0;
559 inherit: "default" 0.0;
560 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
563 part { name: "padding_right_bottom";
567 description { state: "default" 0.0;
569 rel1.relative: 1.0 1.0;
570 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
575 part { name: "icon_rect";
579 description { state: "default" 0.0;
585 to: "padding_left_top";
589 to_x: "padding_left_top";
590 to_y: "padding_right_bottom";
594 description { state: "visible" 0.0;
596 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
597 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
601 to: "padding_left_top";
605 to_x: "padding_left_top";
606 to_y: "padding_right_bottom";
610 description { state: "icononly" 0.0;
611 inherit: "default" 0.0;
614 part { name: "padding_after_icon";
618 description { state: "default" 0.0; //when only icon or no icon is there
624 rel2.to: "icon_rect";
629 description { state: "visible" 0.0;
636 rel2.to: "icon_rect";
638 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
640 description { state: "icononly" 0.0;
641 inherit: "default" 0.0;
644 part { name: "padding_before_text";
648 description { state: "default" 0.0; //when only icon or no icon is there
653 to_y: "padding_left_top";
658 to_y: "padding_right_bottom";
661 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
665 part { name: "elm.swallow.content";
669 description { state: "default" 0.0;
674 to: "padding_left_top";
678 to_x: "padding_left_top";
679 to_y: "padding_right_bottom";
683 description { state: "visible" 0.0;
685 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
686 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
690 to_x: "padding_before_text";
691 to_y: "padding_left_top";
695 to_x: "padding_before_text";
696 to_y: "padding_right_bottom";
699 description { state: "icononly" 0.0;
700 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
701 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
704 part { name: "elm.text";
709 description { state: "default" 0.0;
713 to_x: "padding_after_icon";
714 to_y: "padding_left_top";
718 to: "padding_right_bottom";
720 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
722 font: "SLP:style=Medium";
723 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
726 text_class: "slp_medium";
729 description { state: "visible" 0.0;
730 inherit: "default" 0.0;
733 description { state: "clicked" 0.0;
734 inherit: "default" 0.0;
736 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
738 description { state: "disabled" 0.0;
739 inherit: "default" 0.0;
742 description { state: "disabled_visible" 0.0;
743 inherit: "default" 0.0;
744 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
747 description { state: "focused" 0.0;
748 inherit: "default" 0.0;
750 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
753 part { name: "over2";
756 ignore_flags: ON_HOLD;
757 description { state: "default" 0.0;
761 part { name: "over3";
764 description { state: "default" 0.0;
768 part { name: "clipper";
770 description { state: "default" 0.0;
771 color: 255 255 255 255;
774 part { name: "disabler";
776 description { state: "default" 0.0;
780 description { state: "disabled" 0.0;
781 inherit: "default" 0.0;
787 program { name: "button_click";
788 signal: "mouse,down,1";
790 action: SIGNAL_EMIT "elm,action,press" "";
791 after: "button_click_anim";
793 program { name: "button_click_anim";
794 action: STATE_SET "clicked" 0.0;
795 target: "button_image";
796 after: "text_clicked";
798 program { name: "text_clicked";
802 get_state(PART:"elm.text", st, 30, vl);
803 if (!strcmp(st, "visible"))
804 set_state(PART:"elm.text", "clicked", 0.0);
807 program { name: "button_unpress";
808 action: SIGNAL_EMIT "elm,action,unpress" "";
810 program { name: "button_mouseout_clicked";
811 signal: "mouse,up,1";
816 get_state(PART:"elm.swallow.content", st, 30, vl);
817 if (strcmp(st, "icononly"))
819 emit("elm,action,default,text,set", "");
820 set_state(PART:"elm.text", "visible", 0.0);
822 if (get_int(button_state) != BUTTON_STATE_DISABLED)
823 set_state(PART:"button_image", "default", 0.0);
825 after: button_unpress;
827 program { name: "touch_snd";
828 signal: "mouse,clicked,1";
830 action: PLAY_SAMPLE "touch_sound" 1.0;
831 after: button_unclick3;
833 program { name: "button_unclick3";
834 action: SIGNAL_EMIT "elm,action,click" "";
836 program { name: "text_show";
837 signal: "elm,state,text,visible";
842 get_state(PART:"elm.swallow.content", st, 30, vl);
843 if (!strcmp(st, "icononly"))
845 set_state(PART:"elm.swallow.content", "visible", 0.0);
846 set_state(PART:"icon_rect", "visible", 0.0);
847 set_state(PART:"padding_after_icon", "visible", 0.0);
848 set_state(PART:"bg", "visible", 0.0);
850 if (get_int(button_state) != BUTTON_STATE_DISABLED)
851 set_state(PART:"elm.text", "visible", 0.0);
853 set_state(PART:"elm.text", "disabled_visible", 0.0);
856 program { name: "text_hide";
857 signal: "elm,state,text,hidden";
862 get_state(PART:"elm.swallow.content", st, 30, vl);
863 if (!strcmp(st, "visible"))
865 set_state(PART:"elm.swallow.content", "icononly", 0.0);
866 set_state(PART:"icon_rect", "icononly", 0.0);
867 set_state(PART:"padding_after_icon", "icononly", 0.0);
868 set_state(PART:"bg", "icononly", 0.0);
870 set_state(PART:"elm.text", "default", 0.0);
873 program { name: "icon_show";
874 signal: "elm,state,icon,visible";
879 get_state(PART:"elm.text", st, 30, vl);
880 if (!strcmp(st, "visible"))
882 set_state(PART:"elm.swallow.content", "visible", 0.0);
883 set_state(PART:"icon_rect", "visible", 0.0);
884 set_state(PART:"padding_after_icon", "visible", 0.0);
885 set_state(PART:"bg", "visible", 0.0);
889 set_state(PART:"elm.swallow.content", "icononly", 0.0);
890 set_state(PART:"icon_rect", "icononly", 0.0);
891 set_state(PART:"padding_after_icon", "icononly", 0.0);
892 set_state(PART:"bg", "icononly", 0.0);
896 program { name: "icon_hide";
897 signal: "elm,state,icon,hidden";
899 action: STATE_SET "default" 0.0;
900 target: "elm.swallow.content";
901 target: "padding_after_icon";
905 program { name: "disable";
906 signal: "elm,state,disabled";
908 action: STATE_SET "disabled" 0.0;
909 target: "button_image";
911 after: "disable_text";
913 program { name: "disable_text";
917 get_state(PART:"elm.text", st, 30, vl);
918 if (!strcmp(st, "visible"))
919 set_state(PART:"elm.text", "disabled_visible", 0.0);
921 set_state(PART:"elm.text", "disabled", 0.0);
922 set_int(button_state, BUTTON_STATE_DISABLED);
925 program { name: "enable";
926 signal: "elm,state,enabled";
928 action: STATE_SET "default" 0.0;
929 target: "button_image";
931 after: "enable_text";
933 program { name: "enable_text";
937 get_state(PART:"elm.text", st, 30, vl);
938 if (!strcmp(st, "disabled_visible"))
939 set_state(PART:"elm.text", "visible", 0.0);
941 set_state(PART:"elm.text", "default", 0.0);
942 set_int(button_state, BUTTON_STATE_ENABLED);
945 program { name: "focused";
946 //signal: "elm,action,focus";
948 action: STATE_SET "focused" 0.0;
949 target: "button_image";
952 program { name: "unfocused";
953 //signal: "elm,action,unfocus";
955 action: STATE_SET "default" 0.0;
956 target: "button_image";
957 after: "unfocus_text";
959 program { name: "unfocus_text";
960 action: STATE_SET "visible" 0.0;
966 //////////////////////////////////////////////////////////////////////////////////////
967 group { name: "elm/button/base/style1/multiline";
969 image: "00_button_01_normal.png" COMP;
970 image: "00_button_01_normal_press.png" COMP;
971 image: "00_button_01_normal_dim.png" COMP;
972 image: "00_button_01_normal_Focus.png" COMP;
975 style { name: "btn_style1_multiline";
976 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
983 public button_state = BUTTON_STATE_ENABLED;
986 part { name: "button_image";
988 description { state: "default" 0.0;
990 normal: "00_button_01_normal.png";
991 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
995 description { state: "clicked" 0.0;
996 inherit: "default" 0.0;
997 image.normal: "00_button_01_normal_press.png";
999 description { state: "disabled" 0.0;
1000 inherit: "default" 0.0;
1001 image.normal: "00_button_01_normal_dim.png";
1003 description { state: "focused" 0.0;
1004 inherit: "default" 0.0;
1005 image.normal: "00_button_01_normal_Focus.png";
1008 part { name: "padding_left_top";
1012 description { state: "default" 0.0;
1014 rel2.relative: 0.0 0.0;
1015 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1024 description { state: "default" 0.0;
1025 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1028 description { state: "visible" 0.0;
1029 inherit: "default" 0.0;
1030 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1032 description { state: "icononly" 0.0;
1033 inherit: "default" 0.0;
1034 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1037 part { name: "padding_right_bottom";
1041 description { state: "default" 0.0;
1043 rel1.relative: 1.0 1.0;
1044 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1049 part { name: "icon_rect";
1053 description { state: "default" 0.0;
1059 to: "padding_left_top";
1063 to_x: "padding_left_top";
1064 to_y: "padding_right_bottom";
1068 description { state: "visible" 0.0;
1070 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1071 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1075 to: "padding_left_top";
1079 to_x: "padding_left_top";
1080 to_y: "padding_right_bottom";
1084 description { state: "icononly" 0.0;
1085 inherit: "default" 0.0;
1088 part { name: "padding_after_icon";
1092 description { state: "default" 0.0; //when only icon or no icon is there
1098 rel2.to: "icon_rect";
1103 description { state: "visible" 0.0;
1110 rel2.to: "icon_rect";
1112 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1114 description { state: "icononly" 0.0;
1115 inherit: "default" 0.0;
1118 part { name: "padding_before_text";
1122 description { state: "default" 0.0; //when only icon or no icon is there
1127 to_y: "padding_left_top";
1132 to_y: "padding_right_bottom";
1135 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1139 part { name: "elm.swallow.content";
1143 description { state: "default" 0.0;
1148 to: "padding_left_top";
1152 to_x: "padding_left_top";
1153 to_y: "padding_right_bottom";
1157 description { state: "visible" 0.0;
1159 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1160 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1164 to_x: "padding_before_text";
1165 to_y: "padding_left_top";
1169 to_x: "padding_before_text";
1170 to_y: "padding_right_bottom";
1173 description { state: "icononly" 0.0;
1174 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1175 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1178 part { name: "elm.text";
1183 description { state: "default" 0.0;
1187 to_x: "padding_after_icon";
1188 to_y: "padding_left_top";
1192 to: "padding_right_bottom";
1194 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1196 style: "btn_style1_multiline";
1201 description { state: "visible" 0.0;
1202 inherit: "default" 0.0;
1205 description { state: "clicked" 0.0;
1206 inherit: "default" 0.0;
1208 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1210 description { state: "disabled" 0.0;
1211 inherit: "default" 0.0;
1214 description { state: "disabled_visible" 0.0;
1215 inherit: "default" 0.0;
1216 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1219 description { state: "focused" 0.0;
1220 inherit: "default" 0.0;
1222 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1225 part { name: "over2";
1228 ignore_flags: ON_HOLD;
1229 description { state: "default" 0.0;
1233 part { name: "over3";
1236 description { state: "default" 0.0;
1240 part { name: "clipper";
1242 description { state: "default" 0.0;
1243 color: 255 255 255 255;
1246 part { name: "disabler";
1248 description { state: "default" 0.0;
1252 description { state: "disabled" 0.0;
1253 inherit: "default" 0.0;
1259 program { name: "button_click";
1260 signal: "mouse,down,1";
1262 action: SIGNAL_EMIT "elm,action,press" "";
1263 after: "button_click_anim";
1265 program { name: "button_click_anim";
1266 action: STATE_SET "clicked" 0.0;
1267 target: "button_image";
1268 after: "text_clicked";
1270 program { name: "text_clicked";
1274 get_state(PART:"elm.text", st, 30, vl);
1275 if (!strcmp(st, "visible"))
1276 set_state(PART:"elm.text", "clicked", 0.0);
1279 program { name: "button_unpress";
1280 action: SIGNAL_EMIT "elm,action,unpress" "";
1282 program { name: "button_mouseout_clicked";
1283 signal: "mouse,up,1";
1288 get_state(PART:"elm.swallow.content", st, 30, vl);
1289 if (strcmp(st, "icononly"))
1291 emit("elm,action,default,text,set", "");
1292 set_state(PART:"elm.text", "visible", 0.0);
1294 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1295 set_state(PART:"button_image", "default", 0.0);
1297 after: button_unpress;
1299 program { name: "touch_snd";
1300 signal: "mouse,clicked,1";
1302 action: PLAY_SAMPLE "touch_sound" 1.0;
1303 after: button_unclick3;
1305 program { name: "button_unclick3";
1306 action: SIGNAL_EMIT "elm,action,click" "";
1308 program { name: "text_show";
1309 signal: "elm,state,text,visible";
1314 get_state(PART:"elm.swallow.content", st, 30, vl);
1315 if (!strcmp(st, "icononly"))
1317 set_state(PART:"elm.swallow.content", "visible", 0.0);
1318 set_state(PART:"icon_rect", "visible", 0.0);
1319 set_state(PART:"padding_after_icon", "visible", 0.0);
1320 set_state(PART:"bg", "visible", 0.0);
1322 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1323 set_state(PART:"elm.text", "visible", 0.0);
1325 set_state(PART:"elm.text", "disabled_visible", 0.0);
1328 program { name: "text_hide";
1329 signal: "elm,state,text,hidden";
1334 get_state(PART:"elm.swallow.content", st, 30, vl);
1335 if (!strcmp(st, "visible"))
1337 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1338 set_state(PART:"icon_rect", "icononly", 0.0);
1339 set_state(PART:"padding_after_icon", "icononly", 0.0);
1340 set_state(PART:"bg", "icononly", 0.0);
1342 set_state(PART:"elm.text", "default", 0.0);
1345 program { name: "icon_show";
1346 signal: "elm,state,icon,visible";
1351 get_state(PART:"elm.text", st, 30, vl);
1352 if (!strcmp(st, "visible"))
1354 set_state(PART:"elm.swallow.content", "visible", 0.0);
1355 set_state(PART:"icon_rect", "visible", 0.0);
1356 set_state(PART:"padding_after_icon", "visible", 0.0);
1357 set_state(PART:"bg", "visible", 0.0);
1361 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1362 set_state(PART:"icon_rect", "icononly", 0.0);
1363 set_state(PART:"padding_after_icon", "icononly", 0.0);
1364 set_state(PART:"bg", "icononly", 0.0);
1368 program { name: "icon_hide";
1369 signal: "elm,state,icon,hidden";
1371 action: STATE_SET "default" 0.0;
1372 target: "elm.swallow.content";
1373 target: "padding_after_icon";
1374 target: "icon_rect";
1377 program { name: "disable";
1378 signal: "elm,state,disabled";
1380 action: STATE_SET "disabled" 0.0;
1381 target: "button_image";
1383 after: "disable_text";
1385 program { name: "disable_text";
1389 get_state(PART:"elm.text", st, 30, vl);
1390 if (!strcmp(st, "visible"))
1391 set_state(PART:"elm.text", "disabled_visible", 0.0);
1393 set_state(PART:"elm.text", "disabled", 0.0);
1394 set_int(button_state, BUTTON_STATE_DISABLED);
1397 program { name: "enable";
1398 signal: "elm,state,enabled";
1400 action: STATE_SET "default" 0.0;
1401 target: "button_image";
1403 after: "enable_text";
1405 program { name: "enable_text";
1409 get_state(PART:"elm.text", st, 30, vl);
1410 if (!strcmp(st, "disabled_visible"))
1411 set_state(PART:"elm.text", "visible", 0.0);
1413 set_state(PART:"elm.text", "default", 0.0);
1414 set_int(button_state, BUTTON_STATE_ENABLED);
1417 program { name: "focused";
1418 //signal: "elm,action,focus";
1420 action: STATE_SET "focused" 0.0;
1421 target: "button_image";
1424 program { name: "unfocused";
1425 //signal: "elm,action,unfocus";
1427 action: STATE_SET "default" 0.0;
1428 target: "button_image";
1429 after: "unfocus_text";
1431 program { name: "unfocus_text";
1432 action: STATE_SET "visible" 0.0;
1438 ///////////////////////////////////////////////////////////////////////////////////////
1439 group { name: "elm/button/base/style2";
1440 alias: "elm/button/base/text_only/style2";
1442 image: "00_button_04_normal.png" COMP;
1443 image: "00_button_04_press.png" COMP;
1444 image: "00_button_04_dim.png" COMP;
1445 image: "00_button_04_normal_focus.png" COMP;
1448 public button_state = BUTTON_STATE_ENABLED;
1451 part { name: "button_image";
1453 description { state: "default" 0.0;
1455 normal: "00_button_04_normal.png";
1456 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1460 description { state: "clicked" 0.0;
1461 inherit: "default" 0.0;
1462 image.normal: "00_button_04_press.png";
1464 description { state: "disabled" 0.0;
1465 inherit: "default" 0.0;
1466 image.normal: "00_button_04_dim.png";
1468 description { state: "focused" 0.0;
1469 inherit: "default" 0.0;
1470 image.normal: "00_button_04_normal_focus.png";
1473 part { name: "padding_left_top";
1477 description { state: "default" 0.0;
1479 rel2.relative: 0.0 0.0;
1480 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1489 description { state: "default" 0.0;
1490 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1493 description { state: "visible" 0.0;
1494 inherit: "default" 0.0;
1495 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1497 description { state: "icononly" 0.0;
1498 inherit: "default" 0.0;
1499 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1502 part { name: "padding_right_bottom";
1506 description { state: "default" 0.0;
1508 rel1.relative: 1.0 1.0;
1509 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1514 part { name: "icon_rect";
1518 description { state: "default" 0.0;
1524 to: "padding_left_top";
1528 to_x: "padding_left_top";
1529 to_y: "padding_right_bottom";
1533 description { state: "visible" 0.0;
1535 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1536 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1540 to: "padding_left_top";
1544 to_x: "padding_left_top";
1545 to_y: "padding_right_bottom";
1549 description { state: "icononly" 0.0;
1550 inherit: "default" 0.0;
1553 part { name: "padding_after_icon";
1557 description { state: "default" 0.0; //when only icon or no icon is there
1563 rel2.to: "icon_rect";
1568 description { state: "visible" 0.0;
1575 rel2.to: "icon_rect";
1577 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1579 description { state: "icononly" 0.0;
1580 inherit: "default" 0.0;
1583 part { name: "padding_before_text";
1587 description { state: "default" 0.0; //when only icon or no icon is there
1592 to_y: "padding_left_top";
1597 to_y: "padding_right_bottom";
1600 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1604 part { name: "elm.swallow.content";
1608 description { state: "default" 0.0;
1613 to: "padding_left_top";
1617 to_x: "padding_left_top";
1618 to_y: "padding_right_bottom";
1622 description { state: "visible" 0.0;
1624 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1625 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1629 to_x: "padding_before_text";
1630 to_y: "padding_left_top";
1634 to_x: "padding_before_text";
1635 to_y: "padding_right_bottom";
1638 description { state: "icononly" 0.0;
1639 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1640 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1643 part { name: "elm.text";
1648 description { state: "default" 0.0;
1652 to_x: "padding_after_icon";
1653 to_y: "padding_left_top";
1657 to: "padding_right_bottom";
1659 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1661 font: "SLP:style=Medium";
1662 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1665 text_class: "slp_medium";
1668 description { state: "visible" 0.0;
1669 inherit: "default" 0.0;
1672 description { state: "clicked" 0.0;
1673 inherit: "default" 0.0;
1675 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1677 description { state: "disabled" 0.0;
1678 inherit: "default" 0.0;
1681 description { state: "disabled_visible" 0.0;
1682 inherit: "default" 0.0;
1683 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1686 description { state: "focused" 0.0;
1687 inherit: "default" 0.0;
1689 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1692 part { name: "over2";
1695 ignore_flags: ON_HOLD;
1696 description { state: "default" 0.0;
1700 part { name: "over3";
1703 description { state: "default" 0.0;
1707 part { name: "clipper";
1709 description { state: "default" 0.0;
1710 color: 255 255 255 255;
1713 part { name: "disabler";
1715 description { state: "default" 0.0;
1719 description { state: "disabled" 0.0;
1720 inherit: "default" 0.0;
1726 program { name: "button_click";
1727 signal: "mouse,down,1";
1729 action: SIGNAL_EMIT "elm,action,press" "";
1730 after: "button_click_anim";
1732 program { name: "button_click_anim";
1733 action: STATE_SET "clicked" 0.0;
1734 target: "button_image";
1735 after: "text_clicked";
1737 program { name: "text_clicked";
1741 get_state(PART:"elm.text", st, 30, vl);
1742 if (!strcmp(st, "visible"))
1743 set_state(PART:"elm.text", "clicked", 0.0);
1746 program { name: "button_unpress";
1747 action: SIGNAL_EMIT "elm,action,unpress" "";
1749 program { name: "button_mouseout_clicked";
1750 signal: "mouse,up,1";
1755 get_state(PART:"elm.swallow.content", st, 30, vl);
1756 if (strcmp(st, "icononly"))
1758 emit("elm,action,default,text,set", "");
1759 set_state(PART:"elm.text", "visible", 0.0);
1761 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1762 set_state(PART:"button_image", "default", 0.0);
1764 after: button_unpress;
1766 program { name: "touch_snd";
1767 signal: "mouse,clicked,1";
1769 action: PLAY_SAMPLE "touch_sound" 1.0;
1770 after: button_unclick3;
1772 program { name: "button_unclick3";
1773 action: SIGNAL_EMIT "elm,action,click" "";
1775 program { name: "text_show";
1776 signal: "elm,state,text,visible";
1781 get_state(PART:"elm.swallow.content", st, 30, vl);
1782 if (!strcmp(st, "icononly"))
1784 set_state(PART:"elm.swallow.content", "visible", 0.0);
1785 set_state(PART:"icon_rect", "visible", 0.0);
1786 set_state(PART:"padding_after_icon", "visible", 0.0);
1787 set_state(PART:"bg", "visible", 0.0);
1789 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1790 set_state(PART:"elm.text", "visible", 0.0);
1792 set_state(PART:"elm.text", "disabled_visible", 0.0);
1795 program { name: "text_hide";
1796 signal: "elm,state,text,hidden";
1801 get_state(PART:"elm.swallow.content", st, 30, vl);
1802 if (!strcmp(st, "visible"))
1804 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1805 set_state(PART:"icon_rect", "icononly", 0.0);
1806 set_state(PART:"padding_after_icon", "icononly", 0.0);
1807 set_state(PART:"bg", "icononly", 0.0);
1809 set_state(PART:"elm.text", "default", 0.0);
1812 program { name: "icon_show";
1813 signal: "elm,state,icon,visible";
1818 get_state(PART:"elm.text", st, 30, vl);
1819 if (!strcmp(st, "visible"))
1821 set_state(PART:"elm.swallow.content", "visible", 0.0);
1822 set_state(PART:"icon_rect", "visible", 0.0);
1823 set_state(PART:"padding_after_icon", "visible", 0.0);
1824 set_state(PART:"bg", "visible", 0.0);
1828 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1829 set_state(PART:"icon_rect", "icononly", 0.0);
1830 set_state(PART:"padding_after_icon", "icononly", 0.0);
1831 set_state(PART:"bg", "icononly", 0.0);
1835 program { name: "icon_hide";
1836 signal: "elm,state,icon,hidden";
1838 action: STATE_SET "default" 0.0;
1839 target: "elm.swallow.content";
1840 target: "padding_after_icon";
1841 target: "icon_rect";
1844 program { name: "disable";
1845 signal: "elm,state,disabled";
1847 action: STATE_SET "disabled" 0.0;
1848 target: "button_image";
1850 after: "disable_text";
1852 program { name: "disable_text";
1856 get_state(PART:"elm.text", st, 30, vl);
1857 if (!strcmp(st, "visible"))
1858 set_state(PART:"elm.text", "disabled_visible", 0.0);
1860 set_state(PART:"elm.text", "disabled", 0.0);
1861 set_int(button_state, BUTTON_STATE_DISABLED);
1864 program { name: "enable";
1865 signal: "elm,state,enabled";
1867 action: STATE_SET "default" 0.0;
1868 target: "button_image";
1870 after: "enable_text";
1872 program { name: "enable_text";
1876 get_state(PART:"elm.text", st, 30, vl);
1877 if (!strcmp(st, "disabled_visible"))
1878 set_state(PART:"elm.text", "visible", 0.0);
1880 set_state(PART:"elm.text", "default", 0.0);
1881 set_int(button_state, BUTTON_STATE_ENABLED);
1884 program { name: "focused";
1885 //signal: "elm,action,focus";
1887 action: STATE_SET "focused" 0.0;
1888 target: "button_image";
1891 program { name: "unfocused";
1892 //signal: "elm,action,unfocus";
1894 action: STATE_SET "default" 0.0;
1895 target: "button_image";
1896 after: "unfocus_text";
1898 program { name: "unfocus_text";
1899 action: STATE_SET "visible" 0.0;
1905 ///////////////////////////////////////////////////////////////////////////////////////
1906 group { name: "elm/button/base/style2/multiline";
1908 image: "00_button_04_normal.png" COMP;
1909 image: "00_button_04_press.png" COMP;
1910 image: "00_button_04_dim.png" COMP;
1911 image: "00_button_04_normal_focus.png" COMP;
1914 style { name: "btn_style2_multiline";
1915 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE2_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1922 public button_state = BUTTON_STATE_ENABLED;
1925 part { name: "button_image";
1927 description { state: "default" 0.0;
1929 normal: "00_button_04_normal.png";
1930 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1934 description { state: "clicked" 0.0;
1935 inherit: "default" 0.0;
1936 image.normal: "00_button_04_press.png";
1938 description { state: "disabled" 0.0;
1939 inherit: "default" 0.0;
1940 image.normal: "00_button_04_dim.png";
1942 description { state: "focused" 0.0;
1943 inherit: "default" 0.0;
1944 image.normal: "00_button_04_normal_focus.png";
1947 part { name: "padding_left_top";
1951 description { state: "default" 0.0;
1953 rel2.relative: 0.0 0.0;
1954 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1963 description { state: "default" 0.0;
1964 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1967 description { state: "visible" 0.0;
1968 inherit: "default" 0.0;
1969 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1971 description { state: "icononly" 0.0;
1972 inherit: "default" 0.0;
1973 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1976 part { name: "padding_right_bottom";
1980 description { state: "default" 0.0;
1982 rel1.relative: 1.0 1.0;
1983 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1988 part { name: "icon_rect";
1992 description { state: "default" 0.0;
1998 to: "padding_left_top";
2002 to_x: "padding_left_top";
2003 to_y: "padding_right_bottom";
2007 description { state: "visible" 0.0;
2009 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2010 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2014 to: "padding_left_top";
2018 to_x: "padding_left_top";
2019 to_y: "padding_right_bottom";
2023 description { state: "icononly" 0.0;
2024 inherit: "default" 0.0;
2027 part { name: "padding_after_icon";
2031 description { state: "default" 0.0; //when only icon or no icon is there
2037 rel2.to: "icon_rect";
2042 description { state: "visible" 0.0;
2049 rel2.to: "icon_rect";
2051 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2053 description { state: "icononly" 0.0;
2054 inherit: "default" 0.0;
2057 part { name: "padding_before_text";
2061 description { state: "default" 0.0; //when only icon or no icon is there
2066 to_y: "padding_left_top";
2071 to_y: "padding_right_bottom";
2074 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2078 part { name: "elm.swallow.content";
2082 description { state: "default" 0.0;
2087 to: "padding_left_top";
2091 to_x: "padding_left_top";
2092 to_y: "padding_right_bottom";
2096 description { state: "visible" 0.0;
2098 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2099 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2103 to_x: "padding_before_text";
2104 to_y: "padding_left_top";
2108 to_x: "padding_before_text";
2109 to_y: "padding_right_bottom";
2112 description { state: "icononly" 0.0;
2113 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2114 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2117 part { name: "elm.text";
2122 description { state: "default" 0.0;
2126 to_x: "padding_after_icon";
2127 to_y: "padding_left_top";
2131 to: "padding_right_bottom";
2133 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2135 style: "btn_style2_multiline";
2140 description { state: "visible" 0.0;
2141 inherit: "default" 0.0;
2144 description { state: "clicked" 0.0;
2145 inherit: "default" 0.0;
2147 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2149 description { state: "disabled" 0.0;
2150 inherit: "default" 0.0;
2153 description { state: "disabled_visible" 0.0;
2154 inherit: "default" 0.0;
2155 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2158 description { state: "focused" 0.0;
2159 inherit: "default" 0.0;
2161 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
2164 part { name: "over2";
2167 ignore_flags: ON_HOLD;
2168 description { state: "default" 0.0;
2172 part { name: "over3";
2175 description { state: "default" 0.0;
2179 part { name: "clipper";
2181 description { state: "default" 0.0;
2182 color: 255 255 255 255;
2185 part { name: "disabler";
2187 description { state: "default" 0.0;
2191 description { state: "disabled" 0.0;
2192 inherit: "default" 0.0;
2198 program { name: "button_click";
2199 signal: "mouse,down,1";
2201 action: SIGNAL_EMIT "elm,action,press" "";
2202 after: "button_click_anim";
2204 program { name: "button_click_anim";
2205 action: STATE_SET "clicked" 0.0;
2206 target: "button_image";
2207 after: "text_clicked";
2209 program { name: "text_clicked";
2213 get_state(PART:"elm.text", st, 30, vl);
2214 if (!strcmp(st, "visible"))
2215 set_state(PART:"elm.text", "clicked", 0.0);
2218 program { name: "button_unpress";
2219 action: SIGNAL_EMIT "elm,action,unpress" "";
2221 program { name: "button_mouseout_clicked";
2222 signal: "mouse,up,1";
2227 get_state(PART:"elm.swallow.content", st, 30, vl);
2228 if (strcmp(st, "icononly"))
2230 emit("elm,action,default,text,set", "");
2231 set_state(PART:"elm.text", "visible", 0.0);
2233 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2234 set_state(PART:"button_image", "default", 0.0);
2236 after: button_unpress;
2238 program { name: "touch_snd";
2239 signal: "mouse,clicked,1";
2241 action: PLAY_SAMPLE "touch_sound" 1.0;
2242 after: button_unclick3;
2244 program { name: "button_unclick3";
2245 action: SIGNAL_EMIT "elm,action,click" "";
2247 program { name: "text_show";
2248 signal: "elm,state,text,visible";
2253 get_state(PART:"elm.swallow.content", st, 30, vl);
2254 if (!strcmp(st, "icononly"))
2256 set_state(PART:"elm.swallow.content", "visible", 0.0);
2257 set_state(PART:"icon_rect", "visible", 0.0);
2258 set_state(PART:"padding_after_icon", "visible", 0.0);
2259 set_state(PART:"bg", "visible", 0.0);
2261 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2262 set_state(PART:"elm.text", "visible", 0.0);
2264 set_state(PART:"elm.text", "disabled_visible", 0.0);
2267 program { name: "text_hide";
2268 signal: "elm,state,text,hidden";
2273 get_state(PART:"elm.swallow.content", st, 30, vl);
2274 if (!strcmp(st, "visible"))
2276 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2277 set_state(PART:"icon_rect", "icononly", 0.0);
2278 set_state(PART:"padding_after_icon", "icononly", 0.0);
2279 set_state(PART:"bg", "icononly", 0.0);
2281 set_state(PART:"elm.text", "default", 0.0);
2284 program { name: "icon_show";
2285 signal: "elm,state,icon,visible";
2290 get_state(PART:"elm.text", st, 30, vl);
2291 if (!strcmp(st, "visible"))
2293 set_state(PART:"elm.swallow.content", "visible", 0.0);
2294 set_state(PART:"icon_rect", "visible", 0.0);
2295 set_state(PART:"padding_after_icon", "visible", 0.0);
2296 set_state(PART:"bg", "visible", 0.0);
2300 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2301 set_state(PART:"icon_rect", "icononly", 0.0);
2302 set_state(PART:"padding_after_icon", "icononly", 0.0);
2303 set_state(PART:"bg", "icononly", 0.0);
2307 program { name: "icon_hide";
2308 signal: "elm,state,icon,hidden";
2310 action: STATE_SET "default" 0.0;
2311 target: "elm.swallow.content";
2312 target: "padding_after_icon";
2313 target: "icon_rect";
2316 program { name: "disable";
2317 signal: "elm,state,disabled";
2319 action: STATE_SET "disabled" 0.0;
2320 target: "button_image";
2322 after: "disable_text";
2324 program { name: "disable_text";
2328 get_state(PART:"elm.text", st, 30, vl);
2329 if (!strcmp(st, "visible"))
2330 set_state(PART:"elm.text", "disabled_visible", 0.0);
2332 set_state(PART:"elm.text", "disabled", 0.0);
2333 set_int(button_state, BUTTON_STATE_DISABLED);
2336 program { name: "enable";
2337 signal: "elm,state,enabled";
2339 action: STATE_SET "default" 0.0;
2340 target: "button_image";
2342 after: "enable_text";
2344 program { name: "enable_text";
2348 get_state(PART:"elm.text", st, 30, vl);
2349 if (!strcmp(st, "disabled_visible"))
2350 set_state(PART:"elm.text", "visible", 0.0);
2352 set_state(PART:"elm.text", "default", 0.0);
2353 set_int(button_state, BUTTON_STATE_ENABLED);
2356 program { name: "focused";
2357 //signal: "elm,action,focus";
2359 action: STATE_SET "focused" 0.0;
2360 target: "button_image";
2363 program { name: "unfocused";
2364 //signal: "elm,action,unfocus";
2366 action: STATE_SET "default" 0.0;
2367 target: "button_image";
2368 after: "unfocus_text";
2370 program { name: "unfocus_text";
2371 action: STATE_SET "visible" 0.0;
2377 ///////////////////////////////////////////////////////////////////////////////////////
2378 group { name: "elm/button/base/sweep";
2379 alias: "elm/button/base/text_only/sweep";
2381 image: "00_button_sweep.png" COMP;
2382 image: "00_button_sweep_press.png" COMP;
2383 image: "00_button_sweep_dim.png" COMP;
2384 image: "00_button_sweep_focus.png" COMP;
2387 public button_state = BUTTON_STATE_ENABLED;
2390 part { name: "button_image";
2392 description { state: "default" 0.0;
2393 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2395 normal: "00_button_sweep.png";
2396 border: BUTTON_SWEEP_BG_BORDER_INC;
2400 description { state: "clicked" 0.0;
2401 inherit: "default" 0.0;
2402 image.normal: "00_button_sweep_press.png";
2404 description { state: "disabled" 0.0;
2405 inherit: "default" 0.0;
2406 image.normal: "00_button_sweep_dim.png";
2408 description { state: "focused" 0.0;
2409 inherit: "default" 0.0;
2410 image.normal: "00_button_sweep_focus.png";
2413 part { name: "padding_left_top";
2417 description { state: "default" 0.0;
2419 rel2.relative: 0.0 0.0;
2420 min: BUTTON_SWEEP_PADDING_MIN_INC;
2425 part { name: "padding_right_bottom";
2429 description { state: "default" 0.0;
2431 rel1.relative: 1.0 1.0;
2432 min: BUTTON_SWEEP_PADDING_MIN_INC;
2437 part { name: "icon_rect";
2441 description { state: "default" 0.0;
2442 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2446 to_x: "elm.swallow.content";
2447 to_y: "padding_left_top";
2451 to_x: "elm.swallow.content";
2452 to_y: "padding_right_bottom";
2458 part { name: "padding_icon_text";
2462 description { state: "default" 0.0; //when only icon or no icon is there
2468 rel2.to: "icon_rect";
2473 description { state: "icononly" 0.0;
2474 inherit: "default" 0.0;
2476 description { state: "visible" 0.0; //when icon is visible
2482 rel2.to: "icon_rect";
2484 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2488 part { name: "elm.swallow.content";
2492 description { state: "default" 0.0;
2497 to: "padding_left_top";
2501 to_x: "padding_left_top";
2502 to_y: "padding_right_bottom";
2506 description { state: "visible" 0.0;
2511 to: "padding_left_top";
2515 to_x: "padding_left_top";
2516 to_y: "padding_right_bottom";
2519 aspect_preference: VERTICAL;
2521 description { state: "icononly" 0.0;
2522 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2525 to: "padding_left_top";
2529 to_x: "padding_left_top";
2530 to_y: "padding_right_bottom";
2534 part { name: "elm.text";
2539 description { state: "default" 0.0;
2543 to_x: "padding_icon_text";
2544 to_y: "padding_left_top";
2548 to: "padding_right_bottom";
2550 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2552 font: "SLP:style=Medium";
2553 size: BUTTON_SWEEP_FONT_SIZE_INC;
2555 text_class: "slp_medium";
2558 description { state: "visible" 0.0;
2559 inherit: "default" 0.0;
2561 min: BUTTON_SWEEP_TEXT_MIN_INC;
2563 description { state: "clicked" 0.0;
2564 inherit: "default" 0.0;
2567 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2569 description { state: "disabled" 0.0;
2570 inherit: "default" 0.0;
2573 description { state: "disabled_visible" 0.0;
2574 inherit: "default" 0.0;
2575 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2577 min: BUTTON_SWEEP_TEXT_MIN_INC;
2579 description { state: "focused" 0.0;
2580 inherit: "default" 0.0;
2583 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2586 part { name: "over2";
2589 ignore_flags: ON_HOLD;
2590 description { state: "default" 0.0;
2594 part { name: "over3";
2597 description { state: "default" 0.0;
2601 part { name: "clipper";
2603 description { state: "default" 0.0;
2604 color: 255 255 255 255;
2607 part { name: "disabler";
2609 description { state: "default" 0.0;
2613 description { state: "disabled" 0.0;
2614 inherit: "default" 0.0;
2620 program { name: "button_click";
2621 signal: "mouse,down,1";
2623 action: SIGNAL_EMIT "elm,action,press" "";
2624 after: "button_click_anim";
2626 program { name: "button_click_anim";
2627 action: STATE_SET "clicked" 0.0;
2628 target: "button_image";
2629 after: "text_clicked";
2631 program { name: "text_clicked";
2635 get_state(PART:"elm.text", st, 30, vl);
2636 if (!strcmp(st, "visible"))
2637 set_state(PART:"elm.text", "clicked", 0.0);
2640 program { name: "button_unpress";
2641 action: SIGNAL_EMIT "elm,action,unpress" "";
2643 program { name: "button_mouseout_clicked";
2644 signal: "mouse,up,1";
2649 get_state(PART:"elm.swallow.content", st, 30, vl);
2650 if (strcmp(st, "icononly"))
2652 emit("elm,action,default,text,set", "");
2653 set_state(PART:"elm.text", "visible", 0.0);
2655 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2656 set_state(PART:"button_image", "default", 0.0);
2658 after: button_unpress;
2660 program { name: "touch_snd";
2661 signal: "mouse,clicked,1";
2663 action: PLAY_SAMPLE "touch_sound" 1.0;
2664 after: button_unclick3;
2666 program { name: "button_unclick3";
2667 action: SIGNAL_EMIT "elm,action,click" "";
2669 program { name: "text_show";
2670 signal: "elm,state,text,visible";
2675 get_state(PART:"elm.swallow.content", st, 30, vl);
2676 if (!strcmp(st, "icononly"))
2678 set_state(PART:"elm.swallow.content", "visible", 0.0);
2679 set_state(PART:"padding_icon_text", "visible", 0.0);
2681 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2682 set_state(PART:"elm.text", "visible", 0.0);
2684 set_state(PART:"elm.text", "disabled_visible", 0.0);
2687 program { name: "text_hide";
2688 signal: "elm,state,text,hidden";
2693 get_state(PART:"elm.swallow.content", st, 30, vl);
2694 if (!strcmp(st, "visible"))
2696 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2697 set_state(PART:"padding_icon_text", "icononly", 0.0);
2699 set_state(PART:"elm.text", "default", 0.0);
2702 program { name: "icon_show";
2703 signal: "elm,state,icon,visible";
2708 get_state(PART:"elm.text", st, 30, vl);
2709 if (!strcmp(st, "visible"))
2711 set_state(PART:"elm.swallow.content", "visible", 0.0);
2712 set_state(PART:"padding_icon_text", "visible", 0.0);
2716 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2717 set_state(PART:"padding_icon_text", "icononly", 0.0);
2721 program { name: "icon_hide";
2722 signal: "elm,state,icon,hidden";
2724 action: STATE_SET "default" 0.0;
2725 target: "elm.swallow.content";
2726 target: "padding_icon_text";
2728 program { name: "disable";
2729 signal: "elm,state,disabled";
2731 action: STATE_SET "disabled" 0.0;
2732 target: "button_image";
2734 after: "disable_text";
2736 program { name: "disable_text";
2740 get_state(PART:"elm.text", st, 30, vl);
2741 if (!strcmp(st, "visible"))
2742 set_state(PART:"elm.text", "disabled_visible", 0.0);
2744 set_state(PART:"elm.text", "disabled", 0.0);
2745 set_int(button_state, BUTTON_STATE_DISABLED);
2748 program { name: "enable";
2749 signal: "elm,state,enabled";
2751 action: STATE_SET "default" 0.0;
2752 target: "button_image";
2754 after: "enable_text";
2756 program { name: "enable_text";
2760 get_state(PART:"elm.text", st, 30, vl);
2761 if (!strcmp(st, "disabled_visible"))
2762 set_state(PART:"elm.text", "visible", 0.0);
2764 set_state(PART:"elm.text", "default", 0.0);
2765 set_int(button_state, BUTTON_STATE_ENABLED);
2768 program { name: "focused";
2769 //signal: "elm,action,focus";
2771 action: STATE_SET "focused" 0.0;
2772 target: "button_image";
2775 program { name: "unfocused";
2776 //signal: "elm,action,unfocus";
2778 action: STATE_SET "default" 0.0;
2779 target: "button_image";
2780 after: "unfocus_text";
2782 program { name: "unfocus_text";
2783 action: STATE_SET "visible" 0.0;
2789 ///////////////////////////////////////////////////////////////////////////////////////
2790 group { name: "elm/button/base/sweep/multiline";
2792 image: "00_button_sweep.png" COMP;
2793 image: "00_button_sweep_press.png" COMP;
2794 image: "00_button_sweep_dim.png" COMP;
2795 image: "00_button_sweep_focus.png" COMP;
2798 style { name: "btn_sweep_multiline";
2799 base: "font=SLP:style=Roman font_size="BUTTON_SWEEP_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
2806 public button_state = BUTTON_STATE_ENABLED;
2809 part { name: "button_image";
2811 description { state: "default" 0.0;
2812 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2814 normal: "00_button_sweep.png";
2815 border: BUTTON_SWEEP_BG_BORDER_INC;
2819 description { state: "clicked" 0.0;
2820 inherit: "default" 0.0;
2821 image.normal: "00_button_sweep_press.png";
2823 description { state: "disabled" 0.0;
2824 inherit: "default" 0.0;
2825 image.normal: "00_button_sweep_dim.png";
2827 description { state: "focused" 0.0;
2828 inherit: "default" 0.0;
2829 image.normal: "00_button_sweep_focus.png";
2832 part { name: "padding_left_top";
2836 description { state: "default" 0.0;
2838 rel2.relative: 0.0 0.0;
2839 min: BUTTON_SWEEP_PADDING_MIN_INC;
2844 part { name: "padding_right_bottom";
2848 description { state: "default" 0.0;
2850 rel1.relative: 1.0 1.0;
2851 min: BUTTON_SWEEP_PADDING_MIN_INC;
2856 part { name: "icon_rect";
2860 description { state: "default" 0.0;
2861 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2865 to_x: "elm.swallow.content";
2866 to_y: "padding_left_top";
2870 to_x: "elm.swallow.content";
2871 to_y: "padding_right_bottom";
2877 part { name: "padding_icon_text";
2881 description { state: "default" 0.0; //when only icon or no icon is there
2887 rel2.to: "icon_rect";
2892 description { state: "icononly" 0.0;
2893 inherit: "default" 0.0;
2895 description { state: "visible" 0.0; //when icon is visible
2901 rel2.to: "icon_rect";
2903 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2907 part { name: "elm.swallow.content";
2911 description { state: "default" 0.0;
2916 to: "padding_left_top";
2920 to_x: "padding_left_top";
2921 to_y: "padding_right_bottom";
2925 description { state: "visible" 0.0;
2930 to: "padding_left_top";
2934 to_x: "padding_left_top";
2935 to_y: "padding_right_bottom";
2938 aspect_preference: VERTICAL;
2940 description { state: "icononly" 0.0;
2941 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2944 to: "padding_left_top";
2948 to_x: "padding_left_top";
2949 to_y: "padding_right_bottom";
2953 part { name: "elm.text";
2958 description { state: "default" 0.0;
2962 to_x: "padding_icon_text";
2963 to_y: "padding_left_top";
2967 to: "padding_right_bottom";
2969 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2971 style: "btn_sweep_multiline";
2976 description { state: "visible" 0.0;
2977 inherit: "default" 0.0;
2979 min: BUTTON_SWEEP_TEXT_MIN_INC;
2981 description { state: "clicked" 0.0;
2982 inherit: "default" 0.0;
2985 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2987 description { state: "disabled" 0.0;
2988 inherit: "default" 0.0;
2991 description { state: "disabled_visible" 0.0;
2992 inherit: "default" 0.0;
2993 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2995 min: BUTTON_SWEEP_TEXT_MIN_INC;
2997 description { state: "focused" 0.0;
2998 inherit: "default" 0.0;
3001 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3004 part { name: "over2";
3007 ignore_flags: ON_HOLD;
3008 description { state: "default" 0.0;
3012 part { name: "over3";
3015 description { state: "default" 0.0;
3019 part { name: "clipper";
3021 description { state: "default" 0.0;
3022 color: 255 255 255 255;
3025 part { name: "disabler";
3027 description { state: "default" 0.0;
3031 description { state: "disabled" 0.0;
3032 inherit: "default" 0.0;
3038 program { name: "button_click";
3039 signal: "mouse,down,1";
3041 action: SIGNAL_EMIT "elm,action,press" "";
3042 after: "button_click_anim";
3044 program { name: "button_click_anim";
3045 action: STATE_SET "clicked" 0.0;
3046 target: "button_image";
3047 after: "text_clicked";
3049 program { name: "text_clicked";
3053 get_state(PART:"elm.text", st, 30, vl);
3054 if (!strcmp(st, "visible"))
3055 set_state(PART:"elm.text", "clicked", 0.0);
3058 program { name: "button_unpress";
3059 action: SIGNAL_EMIT "elm,action,unpress" "";
3061 program { name: "button_mouseout_clicked";
3062 signal: "mouse,up,1";
3067 get_state(PART:"elm.swallow.content", st, 30, vl);
3068 if (strcmp(st, "icononly"))
3070 emit("elm,action,default,text,set", "");
3071 set_state(PART:"elm.text", "visible", 0.0);
3073 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3074 set_state(PART:"button_image", "default", 0.0);
3076 after: button_unpress;
3078 program { name: "touch_snd";
3079 signal: "mouse,clicked,1";
3081 action: PLAY_SAMPLE "touch_sound" 1.0;
3082 after: button_unclick3;
3084 program { name: "button_unclick3";
3085 action: SIGNAL_EMIT "elm,action,click" "";
3087 program { name: "text_show";
3088 signal: "elm,state,text,visible";
3093 get_state(PART:"elm.swallow.content", st, 30, vl);
3094 if (!strcmp(st, "icononly"))
3096 set_state(PART:"elm.swallow.content", "visible", 0.0);
3097 set_state(PART:"padding_icon_text", "visible", 0.0);
3099 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3100 set_state(PART:"elm.text", "visible", 0.0);
3102 set_state(PART:"elm.text", "disabled_visible", 0.0);
3105 program { name: "text_hide";
3106 signal: "elm,state,text,hidden";
3111 get_state(PART:"elm.swallow.content", st, 30, vl);
3112 if (!strcmp(st, "visible"))
3114 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3115 set_state(PART:"padding_icon_text", "icononly", 0.0);
3117 set_state(PART:"elm.text", "default", 0.0);
3120 program { name: "icon_show";
3121 signal: "elm,state,icon,visible";
3126 get_state(PART:"elm.text", st, 30, vl);
3127 if (!strcmp(st, "visible"))
3129 set_state(PART:"elm.swallow.content", "visible", 0.0);
3130 set_state(PART:"padding_icon_text", "visible", 0.0);
3134 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3135 set_state(PART:"padding_icon_text", "icononly", 0.0);
3139 program { name: "icon_hide";
3140 signal: "elm,state,icon,hidden";
3142 action: STATE_SET "default" 0.0;
3143 target: "elm.swallow.content";
3144 target: "padding_icon_text";
3146 program { name: "disable";
3147 signal: "elm,state,disabled";
3149 action: STATE_SET "disabled" 0.0;
3150 target: "button_image";
3152 after: "disable_text";
3154 program { name: "disable_text";
3158 get_state(PART:"elm.text", st, 30, vl);
3159 if (!strcmp(st, "visible"))
3160 set_state(PART:"elm.text", "disabled_visible", 0.0);
3162 set_state(PART:"elm.text", "disabled", 0.0);
3163 set_int(button_state, BUTTON_STATE_DISABLED);
3166 program { name: "enable";
3167 signal: "elm,state,enabled";
3169 action: STATE_SET "default" 0.0;
3170 target: "button_image";
3172 after: "enable_text";
3174 program { name: "enable_text";
3178 get_state(PART:"elm.text", st, 30, vl);
3179 if (!strcmp(st, "disabled_visible"))
3180 set_state(PART:"elm.text", "visible", 0.0);
3182 set_state(PART:"elm.text", "default", 0.0);
3183 set_int(button_state, BUTTON_STATE_ENABLED);
3186 program { name: "focused";
3187 //signal: "elm,action,focus";
3189 action: STATE_SET "focused" 0.0;
3190 target: "button_image";
3193 program { name: "unfocused";
3194 //signal: "elm,action,unfocus";
3196 action: STATE_SET "default" 0.0;
3197 target: "button_image";
3198 after: "unfocus_text";
3200 program { name: "unfocus_text";
3201 action: STATE_SET "visible" 0.0;
3206 ///////////////////////////////////////////////////////////////////////////////////////
3207 group { name: "elm/button/base/searchbar/default";
3209 image: "00_search_input_field_bg.png" COMP;
3210 image: "00_button_sweep_press.png" COMP;
3211 image: "00_button_sweep_dim.png" COMP;
3212 image: "00_button_sweep_focus.png" COMP;
3215 public button_state = BUTTON_STATE_ENABLED;
3218 part { name: "button_image";
3220 description { state: "default" 0.0;
3221 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
3223 normal: "00_search_input_field_bg.png";
3224 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
3228 description { state: "clicked" 0.0;
3229 inherit: "default" 0.0;
3231 normal: "00_button_sweep_press.png";
3232 border: BUTTON_SWEEP_BG_BORDER_INC;
3236 description { state: "disabled" 0.0;
3237 inherit: "default" 0.0;
3239 normal: "00_button_sweep_dim.png";
3240 border: BUTTON_SWEEP_BG_BORDER_INC;
3244 description { state: "focused" 0.0;
3245 inherit: "default" 0.0;
3247 normal: "00_button_sweep_focus.png";
3248 border: BUTTON_SWEEP_BG_BORDER_INC;
3253 part { name: "padding_left_top";
3257 description { state: "default" 0.0;
3259 rel2.relative: 0.0 0.0;
3260 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3265 part { name: "padding_right_bottom";
3269 description { state: "default" 0.0;
3271 rel1.relative: 1.0 1.0;
3272 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3277 part { name: "icon_rect";
3281 description { state: "default" 0.0;
3282 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3286 to_x: "elm.swallow.content";
3287 to_y: "padding_left_top";
3291 to_x: "elm.swallow.content";
3292 to_y: "padding_right_bottom";
3298 part { name: "padding_icon_text";
3302 description { state: "default" 0.0; //when only icon or no icon is there
3308 rel2.to: "icon_rect";
3313 description { state: "icononly" 0.0;
3314 inherit: "default" 0.0;
3316 description { state: "visible" 0.0; //when icon is visible
3322 rel2.to: "icon_rect";
3324 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3328 part { name: "elm.swallow.content";
3332 description { state: "default" 0.0;
3337 to: "padding_left_top";
3341 to_x: "padding_left_top";
3342 to_y: "padding_right_bottom";
3346 description { state: "visible" 0.0;
3351 to: "padding_left_top";
3355 to_x: "padding_left_top";
3356 to_y: "padding_right_bottom";
3359 aspect_preference: VERTICAL;
3361 description { state: "icononly" 0.0;
3362 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3365 to: "padding_left_top";
3369 to_x: "padding_left_top";
3370 to_y: "padding_right_bottom";
3374 part { name: "elm.text";
3379 description { state: "default" 0.0;
3383 to_x: "padding_icon_text";
3384 to_y: "padding_left_top";
3388 to: "padding_right_bottom";
3390 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3392 font: "SLP:style=Medium";
3393 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3395 text_class: "slp_medium";
3398 description { state: "visible" 0.0;
3399 inherit: "default" 0.0;
3401 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3403 description { state: "clicked" 0.0;
3404 inherit: "default" 0.0;
3407 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3409 description { state: "disabled" 0.0;
3410 inherit: "default" 0.0;
3413 description { state: "disabled_visible" 0.0;
3414 inherit: "default" 0.0;
3415 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3417 min: BUTTON_SWEEP_TEXT_MIN_INC;
3419 description { state: "focused" 0.0;
3420 inherit: "default" 0.0;
3423 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3426 part { name: "over2";
3429 ignore_flags: ON_HOLD;
3430 description { state: "default" 0.0;
3434 part { name: "over3";
3437 description { state: "default" 0.0;
3441 part { name: "clipper";
3443 description { state: "default" 0.0;
3444 color: 255 255 255 255;
3447 part { name: "disabler";
3449 description { state: "default" 0.0;
3453 description { state: "disabled" 0.0;
3454 inherit: "default" 0.0;
3460 program { name: "button_click";
3461 signal: "mouse,down,1";
3463 action: SIGNAL_EMIT "elm,action,press" "";
3464 after: "button_click_anim";
3466 program { name: "button_click_anim";
3467 action: STATE_SET "clicked" 0.0;
3468 target: "button_image";
3469 after: "text_clicked";
3471 program { name: "text_clicked";
3475 get_state(PART:"elm.text", st, 30, vl);
3476 if (!strcmp(st, "visible"))
3477 set_state(PART:"elm.text", "clicked", 0.0);
3480 program { name: "button_unpress";
3481 action: SIGNAL_EMIT "elm,action,unpress" "";
3483 program { name: "button_mouseout_clicked";
3484 signal: "mouse,up,1";
3489 get_state(PART:"elm.swallow.content", st, 30, vl);
3490 if (strcmp(st, "icononly"))
3492 emit("elm,action,default,text,set", "");
3493 set_state(PART:"elm.text", "visible", 0.0);
3495 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3496 set_state(PART:"button_image", "default", 0.0);
3498 after: button_unpress;
3500 program { name: "touch_snd";
3501 signal: "mouse,clicked,1";
3503 action: PLAY_SAMPLE "touch_sound" 1.0;
3504 after: button_unclick3;
3506 program { name: "button_unclick3";
3507 action: SIGNAL_EMIT "elm,action,click" "";
3509 program { name: "text_show";
3510 signal: "elm,state,text,visible";
3515 get_state(PART:"elm.swallow.content", st, 30, vl);
3516 if (!strcmp(st, "icononly"))
3518 set_state(PART:"elm.swallow.content", "visible", 0.0);
3519 set_state(PART:"padding_icon_text", "visible", 0.0);
3521 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3522 set_state(PART:"elm.text", "visible", 0.0);
3524 set_state(PART:"elm.text", "disabled_visible", 0.0);
3527 program { name: "text_hide";
3528 signal: "elm,state,text,hidden";
3533 get_state(PART:"elm.swallow.content", st, 30, vl);
3534 if (!strcmp(st, "visible"))
3536 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3537 set_state(PART:"padding_icon_text", "icononly", 0.0);
3539 set_state(PART:"elm.text", "default", 0.0);
3542 program { name: "icon_show";
3543 signal: "elm,state,icon,visible";
3548 get_state(PART:"elm.text", st, 30, vl);
3549 if (!strcmp(st, "visible"))
3551 set_state(PART:"elm.swallow.content", "visible", 0.0);
3552 set_state(PART:"padding_icon_text", "visible", 0.0);
3556 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3557 set_state(PART:"padding_icon_text", "icononly", 0.0);
3561 program { name: "icon_hide";
3562 signal: "elm,state,icon,hidden";
3564 action: STATE_SET "default" 0.0;
3565 target: "elm.swallow.content";
3566 target: "padding_icon_text";
3568 program { name: "disable";
3569 signal: "elm,state,disabled";
3571 action: STATE_SET "disabled" 0.0;
3572 target: "button_image";
3574 after: "disable_text";
3576 program { name: "disable_text";
3580 get_state(PART:"elm.text", st, 30, vl);
3581 if (!strcmp(st, "visible"))
3582 set_state(PART:"elm.text", "disabled_visible", 0.0);
3584 set_state(PART:"elm.text", "disabled", 0.0);
3585 set_int(button_state, BUTTON_STATE_DISABLED);
3588 program { name: "enable";
3589 signal: "elm,state,enabled";
3591 action: STATE_SET "default" 0.0;
3592 target: "button_image";
3594 after: "enable_text";
3596 program { name: "enable_text";
3600 get_state(PART:"elm.text", st, 30, vl);
3601 if (!strcmp(st, "disabled_visible"))
3602 set_state(PART:"elm.text", "visible", 0.0);
3604 set_state(PART:"elm.text", "default", 0.0);
3605 set_int(button_state, BUTTON_STATE_ENABLED);
3608 program { name: "focused";
3609 //signal: "elm,action,focus";
3611 action: STATE_SET "focused" 0.0;
3612 target: "button_image";
3615 program { name: "unfocused";
3616 //signal: "elm,action,unfocus";
3618 action: STATE_SET "default" 0.0;
3619 target: "button_image";
3620 after: "unfocus_text";
3622 program { name: "unfocus_text";
3623 action: STATE_SET "visible" 0.0;
3629 ///////////////////////////////////////////////////////////////////////////////////////
3630 group { name: "elm/button/base/sweep/delete";
3632 image: "00_button_sweep_dim.png" COMP;
3633 image: "00_button_sweep_delete.png" COMP;
3634 image: "00_button_sweep_delete_press.png" COMP;
3635 image: "00_button_sweep_focus.png" COMP;
3638 public button_state = BUTTON_STATE_ENABLED;
3641 part { name: "button_image";
3643 description { state: "default" 0.0;
3644 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3646 normal: "00_button_sweep_delete.png";
3647 border: BUTTON_SWEEP_BG_BORDER_INC;
3651 description { state: "clicked" 0.0;
3652 inherit: "default" 0.0;
3653 image.normal: "00_button_sweep_delete_press.png";
3655 description { state: "disabled" 0.0;
3656 inherit: "default" 0.0;
3657 image.normal: "00_button_sweep_dim.png";
3659 description { state: "focused" 0.0;
3660 inherit: "default" 0.0;
3661 image.normal: "00_button_sweep_focus.png";
3664 part { name: "padding_left_top";
3668 description { state: "default" 0.0;
3670 rel2.relative: 0.0 0.0;
3671 min: BUTTON_SWEEP_PADDING_MIN_INC;
3676 part { name: "padding_right_bottom";
3680 description { state: "default" 0.0;
3682 rel1.relative: 1.0 1.0;
3683 min: BUTTON_SWEEP_PADDING_MIN_INC;
3688 part { name: "icon_rect";
3692 description { state: "default" 0.0;
3693 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3697 to_x: "elm.swallow.content";
3698 to_y: "padding_left_top";
3702 to_x: "elm.swallow.content";
3703 to_y: "padding_right_bottom";
3709 part { name: "padding_icon_text";
3713 description { state: "default" 0.0; //when only icon or no icon is there
3719 rel2.to: "icon_rect";
3724 description { state: "icononly" 0.0;
3725 inherit: "default" 0.0;
3727 description { state: "visible" 0.0; //when icon is visible
3733 rel2.to: "icon_rect";
3735 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3739 part { name: "elm.swallow.content";
3743 description { state: "default" 0.0;
3748 to: "padding_left_top";
3752 to_x: "padding_left_top";
3753 to_y: "padding_right_bottom";
3757 description { state: "visible" 0.0;
3762 to: "padding_left_top";
3766 to_x: "padding_left_top";
3767 to_y: "padding_right_bottom";
3770 aspect_preference: VERTICAL;
3772 description { state: "icononly" 0.0;
3773 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3776 to: "padding_left_top";
3780 to_x: "padding_left_top";
3781 to_y: "padding_right_bottom";
3785 part { name: "elm.text";
3790 description { state: "default" 0.0;
3793 to_x: "padding_icon_text";
3794 to_y: "padding_left_top";
3798 to: "padding_right_bottom";
3800 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3802 font: "SLP:style=Medium";
3803 size: BUTTON_SWEEP_FONT_SIZE_INC;
3807 text_class: "slp_medium";
3810 description { state: "visible" 0.0;
3811 inherit: "default" 0.0;
3813 description { state: "clicked" 0.0;
3814 inherit: "default" 0.0;
3815 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3817 description { state: "disabled" 0.0;
3818 inherit: "default" 0.0;
3821 description { state: "disabled_visible" 0.0;
3822 inherit: "default" 0.0;
3823 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3825 description { state: "focused" 0.0;
3826 inherit: "default" 0.0;
3829 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3832 part { name: "over2";
3835 ignore_flags: ON_HOLD;
3836 description { state: "default" 0.0;
3840 part { name: "over3";
3843 description { state: "default" 0.0;
3847 part { name: "clipper";
3849 description { state: "default" 0.0;
3850 color: 255 255 255 255;
3853 part { name: "disabler";
3855 description { state: "default" 0.0;
3859 description { state: "disabled" 0.0;
3860 inherit: "default" 0.0;
3866 program { name: "button_click";
3867 signal: "mouse,down,1";
3869 action: SIGNAL_EMIT "elm,action,press" "";
3870 after: "button_click_anim";
3872 program { name: "button_click_anim";
3873 action: STATE_SET "clicked" 0.0;
3874 target: "button_image";
3875 after: "text_clicked";
3877 program { name: "text_clicked";
3881 get_state(PART:"elm.text", st, 30, vl);
3882 if (!strcmp(st, "visible"))
3883 set_state(PART:"elm.text", "clicked", 0.0);
3886 program { name: "button_unpress";
3887 action: SIGNAL_EMIT "elm,action,unpress" "";
3889 program { name: "button_mouseout_clicked";
3890 signal: "mouse,up,1";
3895 get_state(PART:"elm.swallow.content", st, 30, vl);
3896 if (strcmp(st, "icononly"))
3898 emit("elm,action,default,text,set", "");
3899 set_state(PART:"elm.text", "visible", 0.0);
3901 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3902 set_state(PART:"button_image", "default", 0.0);
3904 after: button_unpress;
3906 program { name: "touch_snd";
3907 signal: "mouse,clicked,1";
3909 action: PLAY_SAMPLE "touch_sound" 1.0;
3910 after: button_unclick3;
3912 program { name: "button_unclick3";
3913 action: SIGNAL_EMIT "elm,action,click" "";
3915 program { name: "text_show";
3916 signal: "elm,state,text,visible";
3921 get_state(PART:"elm.swallow.content", st, 30, vl);
3922 if (!strcmp(st, "icononly"))
3924 set_state(PART:"elm.swallow.content", "visible", 0.0);
3925 set_state(PART:"padding_icon_text", "visible", 0.0);
3927 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3928 set_state(PART:"elm.text", "visible", 0.0);
3930 set_state(PART:"elm.text", "disabled_visible", 0.0);
3933 program { name: "text_hide";
3934 signal: "elm,state,text,hidden";
3939 get_state(PART:"elm.swallow.content", st, 30, vl);
3940 if (!strcmp(st, "visible"))
3942 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3943 set_state(PART:"padding_icon_text", "icononly", 0.0);
3945 set_state(PART:"elm.text", "default", 0.0);
3948 program { name: "icon_show";
3949 signal: "elm,state,icon,visible";
3954 get_state(PART:"elm.text", st, 30, vl);
3955 if (!strcmp(st, "visible"))
3957 set_state(PART:"elm.swallow.content", "visible", 0.0);
3958 set_state(PART:"padding_icon_text", "visible", 0.0);
3962 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3963 set_state(PART:"padding_icon_text", "icononly", 0.0);
3967 program { name: "icon_hide";
3968 signal: "elm,state,icon,hidden";
3970 action: STATE_SET "default" 0.0;
3971 target: "elm.swallow.content";
3972 target: "padding_icon_text";
3974 program { name: "disable";
3975 signal: "elm,state,disabled";
3977 action: STATE_SET "disabled" 0.0;
3978 target: "button_image";
3980 after: "disable_text";
3982 program { name: "disable_text";
3986 get_state(PART:"elm.text", st, 30, vl);
3987 if (!strcmp(st, "visible"))
3988 set_state(PART:"elm.text", "disabled_visible", 0.0);
3990 set_state(PART:"elm.text", "disabled", 0.0);
3991 set_int(button_state, BUTTON_STATE_DISABLED);
3994 program { name: "enable";
3995 signal: "elm,state,enabled";
3997 action: STATE_SET "default" 0.0;
3998 target: "button_image";
4000 after: "enable_text";
4002 program { name: "enable_text";
4006 get_state(PART:"elm.text", st, 30, vl);
4007 if (!strcmp(st, "disabled_visible"))
4008 set_state(PART:"elm.text", "visible", 0.0);
4010 set_state(PART:"elm.text", "default", 0.0);
4011 set_int(button_state, BUTTON_STATE_ENABLED);
4014 program { name: "focused";
4015 //signal: "elm,action,focus";
4017 action: STATE_SET "focused" 0.0;
4018 target: "button_image";
4021 program { name: "unfocused";
4022 //signal: "elm,action,unfocus";
4024 action: STATE_SET "default" 0.0;
4025 target: "button_image";
4026 after: "unfocus_text";
4028 program { name: "unfocus_text";
4029 action: STATE_SET "visible" 0.0;
4035 ///////////////////////////////////////////////////////////////////////////////////////
4036 group { name: "elm/button/base/popup_button/default";
4037 alias: "elm/button/base/popup_button/menustyle";
4038 alias: "elm/button/base/popup_button/liststyle";
4039 alias: "elm/button/base/popup_button/volumebarstyle";
4040 alias: "elm/button/base/popup_button/customstyle";
4041 alias: "elm/button/base/popup_button/verticalbuttonstyle";
4043 image: "00_button_popup_normal.png" COMP;
4044 image: "00_button_popup_press.png" COMP;
4045 image: "00_button_popup_normal_focus.png" COMP;
4046 image: "00_button_popup_dim.png" COMP;
4049 public button_state = BUTTON_STATE_ENABLED;
4052 part { name: "button_image";
4054 description { state: "default" 0.0;
4055 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4057 normal: "00_button_popup_normal.png";
4058 border: BUTTON_POPUP_BG_BORDER_INC;
4062 description { state: "clicked" 0.0;
4063 inherit: "default" 0.0;
4064 image.normal: "00_button_popup_press.png";
4066 description { state: "disabled" 0.0;
4067 inherit: "default" 0.0;
4068 image.normal: "00_button_popup_dim.png";
4070 description { state: "focused" 0.0;
4071 inherit: "default" 0.0;
4072 image.normal: "00_button_popup_normal_focus.png";
4075 part { name: "padding_left_top";
4079 description { state: "default" 0.0;
4081 rel2.relative: 0.0 0.0;
4082 min: BUTTON_POPUP_PADDING_MIN_INC;
4087 part { name: "padding_right_bottom";
4090 description { state: "default" 0.0;
4092 rel1.relative: 1.0 1.0;
4093 min: BUTTON_POPUP_PADDING_MIN_INC;
4098 part { name: "padding_icon_text";
4101 description { state: "default" 0.0; //when only icon or no icon is there
4105 to: "elm.swallow.content";
4107 rel2.to: "elm.swallow.content";
4112 description { state: "icononly" 0.0;
4113 inherit: "default" 0.0;
4115 description { state: "visible" 0.0; //when icon is visible
4116 inherit: "default" 0.0;
4117 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4120 part { name: "elm.swallow.content";
4124 description { state: "default" 0.0;
4129 to: "padding_left_top";
4133 to_x: "padding_left_top";
4134 to_y: "padding_right_bottom";
4138 description { state: "visible" 0.0;
4139 inherit: "default" 0.0;
4143 aspect_preference: VERTICAL;
4145 description { state: "icononly" 0.0;
4146 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4149 to: "padding_left_top";
4153 to_x: "padding_left_top";
4154 to_y: "padding_right_bottom";
4158 part { name: "elm.text";
4163 description { state: "default" 0.0;
4167 to_x: "padding_icon_text";
4168 to_y: "padding_left_top";
4172 to: "padding_right_bottom";
4174 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4176 font: "SLP:style=Medium";
4177 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4179 text_class: "slp_medium";
4182 description { state: "visible" 0.0;
4183 inherit: "default" 0.0;
4185 min: BUTTON_POPUP_TEXT_MIN_INC;
4187 description { state: "clicked" 0.0;
4188 inherit: "default" 0.0;
4191 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4193 description { state: "disabled" 0.0;
4194 inherit: "default" 0.0;
4197 description { state: "disabled_visible" 0.0;
4198 inherit: "default" 0.0;
4199 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4201 min: BUTTON_POPUP_TEXT_MIN_INC;
4203 description { state: "focused" 0.0;
4204 inherit: "default" 0.0;
4207 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4210 part { name: "over2";
4213 ignore_flags: ON_HOLD;
4214 description { state: "default" 0.0;
4218 part { name: "over3";
4221 description { state: "default" 0.0;
4225 part { name: "clipper";
4227 description { state: "default" 0.0;
4228 color: 255 255 255 255;
4231 part { name: "disabler";
4233 description { state: "default" 0.0;
4237 description { state: "disabled" 0.0;
4238 inherit: "default" 0.0;
4244 program { name: "button_click";
4245 signal: "mouse,down,1";
4247 action: SIGNAL_EMIT "elm,action,press" "";
4248 after: "button_click_anim";
4250 program { name: "button_click_anim";
4251 action: STATE_SET "clicked" 0.0;
4252 target: "button_image";
4253 after: "text_clicked";
4255 program { name: "text_clicked";
4259 get_state(PART:"elm.text", st, 30, vl);
4260 if (!strcmp(st, "visible"))
4261 set_state(PART:"elm.text", "clicked", 0.0);
4264 program { name: "button_unpress";
4265 action: SIGNAL_EMIT "elm,action,unpress" "";
4267 program { name: "button_mouseout_clicked";
4268 signal: "mouse,up,1";
4273 get_state(PART:"elm.swallow.content", st, 30, vl);
4274 if (strcmp(st, "icononly"))
4276 emit("elm,action,default,text,set", "");
4277 set_state(PART:"elm.text", "visible", 0.0);
4279 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4280 set_state(PART:"button_image", "default", 0.0);
4282 after: button_unpress;
4284 program { name: "touch_snd";
4285 signal: "mouse,clicked,1";
4287 action: PLAY_SAMPLE "touch_sound" 1.0;
4288 after: button_unclick3;
4290 program { name: "button_unclick3";
4291 action: SIGNAL_EMIT "elm,action,click" "";
4293 program { name: "text_show";
4294 signal: "elm,state,text,visible";
4299 get_state(PART:"elm.swallow.content", st, 30, vl);
4300 if (!strcmp(st, "icononly"))
4302 set_state(PART:"elm.swallow.content", "visible", 0.0);
4303 set_state(PART:"padding_icon_text", "visible", 0.0);
4305 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4306 set_state(PART:"elm.text", "visible", 0.0);
4308 set_state(PART:"elm.text", "disabled_visible", 0.0);
4311 program { name: "text_hide";
4312 signal: "elm,state,text,hidden";
4317 get_state(PART:"elm.swallow.content", st, 30, vl);
4318 if (!strcmp(st, "visible"))
4320 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4321 set_state(PART:"padding_icon_text", "icononly", 0.0);
4323 set_state(PART:"elm.text", "default", 0.0);
4326 program { name: "icon_show";
4327 signal: "elm,state,icon,visible";
4332 get_state(PART:"elm.text", st, 30, vl);
4333 if (!strcmp(st, "visible"))
4335 set_state(PART:"elm.swallow.content", "visible", 0.0);
4336 set_state(PART:"padding_icon_text", "visible", 0.0);
4340 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4341 set_state(PART:"padding_icon_text", "icononly", 0.0);
4345 program { name: "icon_hide";
4346 signal: "elm,state,icon,hidden";
4348 action: STATE_SET "default" 0.0;
4349 target: "elm.swallow.content";
4350 target: "padding_icon_text";
4352 program { name: "disable";
4353 signal: "elm,state,disabled";
4355 action: STATE_SET "disabled" 0.0;
4356 target: "button_image";
4358 after: "disable_text";
4360 program { name: "disable_text";
4364 get_state(PART:"elm.text", st, 30, vl);
4365 if (!strcmp(st, "visible"))
4366 set_state(PART:"elm.text", "disabled_visible", 0.0);
4368 set_state(PART:"elm.text", "disabled", 0.0);
4369 set_int(button_state, BUTTON_STATE_DISABLED);
4372 program { name: "enable";
4373 signal: "elm,state,enabled";
4375 action: STATE_SET "default" 0.0;
4376 target: "button_image";
4378 after: "enable_text";
4380 program { name: "enable_text";
4384 get_state(PART:"elm.text", st, 30, vl);
4385 if (!strcmp(st, "disabled_visible"))
4386 set_state(PART:"elm.text", "visible", 0.0);
4388 set_state(PART:"elm.text", "default", 0.0);
4389 set_int(button_state, BUTTON_STATE_ENABLED);
4392 program { name: "focused";
4393 //signal: "elm,action,focus";
4395 action: STATE_SET "focused" 0.0;
4396 target: "button_image";
4399 program { name: "unfocused";
4400 //signal: "elm,action,unfocus";
4402 action: STATE_SET "default" 0.0;
4403 target: "button_image";
4404 after: "unfocus_text";
4406 program { name: "unfocus_text";
4407 action: STATE_SET "visible" 0.0;
4412 ///////////////////////////////////////////////////////////////////////////////////////
4413 group { name: "elm/button/base/popup_button/default/multiline";
4415 image: "00_button_popup_normal.png" COMP;
4416 image: "00_button_popup_press.png" COMP;
4417 image: "00_button_popup_normal_focus.png" COMP;
4418 image: "00_button_popup_dim.png" COMP;
4421 style { name: "btn_popup_multiline_style";
4422 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4429 public button_state = BUTTON_STATE_ENABLED;
4432 part { name: "button_image";
4434 description { state: "default" 0.0;
4435 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4437 normal: "00_button_popup_normal.png";
4438 border: BUTTON_POPUP_BG_BORDER_INC;
4442 description { state: "clicked" 0.0;
4443 inherit: "default" 0.0;
4444 image.normal: "00_button_popup_press.png";
4446 description { state: "disabled" 0.0;
4447 inherit: "default" 0.0;
4448 image.normal: "00_button_popup_dim.png";
4450 description { state: "focused" 0.0;
4451 inherit: "default" 0.0;
4452 image.normal: "00_button_popup_normal_focus.png";
4455 part { name: "padding_left_top";
4459 description { state: "default" 0.0;
4461 rel2.relative: 0.0 0.0;
4462 min: BUTTON_POPUP_PADDING_MIN_INC;
4467 part { name: "padding_right_bottom";
4470 description { state: "default" 0.0;
4472 rel1.relative: 1.0 1.0;
4473 min: BUTTON_POPUP_PADDING_MIN_INC;
4478 part { name: "padding_icon_text";
4481 description { state: "default" 0.0; //when only icon or no icon is there
4485 to: "elm.swallow.content";
4487 rel2.to: "elm.swallow.content";
4492 description { state: "icononly" 0.0;
4493 inherit: "default" 0.0;
4495 description { state: "visible" 0.0; //when icon is visible
4496 inherit: "default" 0.0;
4497 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4500 part { name: "elm.swallow.content";
4504 description { state: "default" 0.0;
4509 to: "padding_left_top";
4513 to_x: "padding_left_top";
4514 to_y: "padding_right_bottom";
4518 description { state: "visible" 0.0;
4519 inherit: "default" 0.0;
4523 aspect_preference: VERTICAL;
4525 description { state: "icononly" 0.0;
4526 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4529 to: "padding_left_top";
4533 to_x: "padding_left_top";
4534 to_y: "padding_right_bottom";
4538 part { name: "elm.text";
4543 description { state: "default" 0.0;
4547 to_x: "padding_icon_text";
4548 to_y: "padding_left_top";
4552 to: "padding_right_bottom";
4554 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4556 style: "btn_popup_multiline_style";
4561 description { state: "visible" 0.0;
4562 inherit: "default" 0.0;
4564 min: BUTTON_POPUP_TEXT_MIN_INC;
4566 description { state: "clicked" 0.0;
4567 inherit: "default" 0.0;
4570 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4572 description { state: "disabled" 0.0;
4573 inherit: "default" 0.0;
4576 description { state: "disabled_visible" 0.0;
4577 inherit: "default" 0.0;
4578 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4580 min: BUTTON_POPUP_TEXT_MIN_INC;
4582 description { state: "focused" 0.0;
4583 inherit: "default" 0.0;
4586 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4589 part { name: "over2";
4592 ignore_flags: ON_HOLD;
4593 description { state: "default" 0.0;
4597 part { name: "over3";
4600 description { state: "default" 0.0;
4604 part { name: "clipper";
4606 description { state: "default" 0.0;
4607 color: 255 255 255 255;
4610 part { name: "disabler";
4612 description { state: "default" 0.0;
4616 description { state: "disabled" 0.0;
4617 inherit: "default" 0.0;
4623 program { name: "button_click";
4624 signal: "mouse,down,1";
4626 action: SIGNAL_EMIT "elm,action,press" "";
4627 after: "button_click_anim";
4629 program { name: "button_click_anim";
4630 action: STATE_SET "clicked" 0.0;
4631 target: "button_image";
4632 after: "text_clicked";
4634 program { name: "text_clicked";
4638 get_state(PART:"elm.text", st, 30, vl);
4639 if (!strcmp(st, "visible"))
4640 set_state(PART:"elm.text", "clicked", 0.0);
4643 program { name: "button_unpress";
4644 action: SIGNAL_EMIT "elm,action,unpress" "";
4646 program { name: "button_mouseout_clicked";
4647 signal: "mouse,up,1";
4652 get_state(PART:"elm.swallow.content", st, 30, vl);
4653 if (strcmp(st, "icononly"))
4655 emit("elm,action,default,text,set", "");
4656 set_state(PART:"elm.text", "visible", 0.0);
4658 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4659 set_state(PART:"button_image", "default", 0.0);
4661 after: button_unpress;
4663 program { name: "touch_snd";
4664 signal: "mouse,clicked,1";
4666 action: PLAY_SAMPLE "touch_sound" 1.0;
4667 after: button_unclick3;
4669 program { name: "button_unclick3";
4670 action: SIGNAL_EMIT "elm,action,click" "";
4672 program { name: "text_show";
4673 signal: "elm,state,text,visible";
4678 get_state(PART:"elm.swallow.content", st, 30, vl);
4679 if (!strcmp(st, "icononly"))
4681 set_state(PART:"elm.swallow.content", "visible", 0.0);
4682 set_state(PART:"padding_icon_text", "visible", 0.0);
4684 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4685 set_state(PART:"elm.text", "visible", 0.0);
4687 set_state(PART:"elm.text", "disabled_visible", 0.0);
4690 program { name: "text_hide";
4691 signal: "elm,state,text,hidden";
4696 get_state(PART:"elm.swallow.content", st, 30, vl);
4697 if (!strcmp(st, "visible"))
4699 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4700 set_state(PART:"padding_icon_text", "icononly", 0.0);
4702 set_state(PART:"elm.text", "default", 0.0);
4705 program { name: "icon_show";
4706 signal: "elm,state,icon,visible";
4711 get_state(PART:"elm.text", st, 30, vl);
4712 if (!strcmp(st, "visible"))
4714 set_state(PART:"elm.swallow.content", "visible", 0.0);
4715 set_state(PART:"padding_icon_text", "visible", 0.0);
4719 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4720 set_state(PART:"padding_icon_text", "icononly", 0.0);
4724 program { name: "icon_hide";
4725 signal: "elm,state,icon,hidden";
4727 action: STATE_SET "default" 0.0;
4728 target: "elm.swallow.content";
4729 target: "padding_icon_text";
4731 program { name: "disable";
4732 signal: "elm,state,disabled";
4734 action: STATE_SET "disabled" 0.0;
4735 target: "button_image";
4737 after: "disable_text";
4739 program { name: "disable_text";
4743 get_state(PART:"elm.text", st, 30, vl);
4744 if (!strcmp(st, "visible"))
4745 set_state(PART:"elm.text", "disabled_visible", 0.0);
4747 set_state(PART:"elm.text", "disabled", 0.0);
4748 set_int(button_state, BUTTON_STATE_DISABLED);
4751 program { name: "enable";
4752 signal: "elm,state,enabled";
4754 action: STATE_SET "default" 0.0;
4755 target: "button_image";
4757 after: "enable_text";
4759 program { name: "enable_text";
4763 get_state(PART:"elm.text", st, 30, vl);
4764 if (!strcmp(st, "disabled_visible"))
4765 set_state(PART:"elm.text", "visible", 0.0);
4767 set_state(PART:"elm.text", "default", 0.0);
4768 set_int(button_state, BUTTON_STATE_ENABLED);
4771 program { name: "focused";
4772 //signal: "elm,action,focus";
4774 action: STATE_SET "focused" 0.0;
4775 target: "button_image";
4778 program { name: "unfocused";
4779 //signal: "elm,action,unfocus";
4781 action: STATE_SET "default" 0.0;
4782 target: "button_image";
4783 after: "unfocus_text";
4785 program { name: "unfocus_text";
4786 action: STATE_SET "visible" 0.0;
4792 ///////////////////////////////////////////////////////////////////////////////////////
4793 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
4794 group { name: "elm/button/base/"style_name; \
4796 image: "00_btn_circle_bg_normal.png" COMP; \
4797 image: "00_btn_circle_bg_press.png" COMP; \
4798 image: image_normal COMP; \
4799 image: image_press COMP; \
4802 part { name: "button_image"; \
4804 description { state: "default" 0.0; \
4805 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4806 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4807 image.normal: "00_btn_circle_bg_normal.png"; \
4808 color: 255 255 255 255; \
4811 state: "clicked" 0.0; \
4812 inherit: "default" 0.0; \
4813 image.normal: "00_btn_circle_bg_press.png"; \
4816 state: "disabled" 0.0; \
4817 inherit: "default" 0.0; \
4818 color: 255 255 255 128; \
4821 part { name: "button_center_part"; \
4823 description { state: "default" 0.0; \
4824 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4825 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4826 image.normal: image_normal; \
4827 color: 255 255 255 255; \
4830 state: "clicked" 0.0; \
4831 inherit: "default" 0.0; \
4832 image.normal: image_press; \
4835 state: "disabled" 0.0; \
4836 inherit: "default" 0.0; \
4837 color: 255 255 255 128; \
4840 part { name: "over1"; \
4842 ignore_flags: ON_HOLD; \
4843 description { state: "default" 0.0; \
4845 min: min_width min_height; \
4848 part { name: "over2"; \
4850 description { state: "default" 0.0; \
4854 part { name: "disabler"; \
4856 description { state: "default" 0.0; \
4860 description { state: "disabled" 0.0; \
4861 inherit: "default" 0.0; \
4867 program { name: "button_click"; \
4868 signal: "mouse,down,1"; \
4870 action: SIGNAL_EMIT "elm,action,press" ""; \
4871 after: "button_click_anim"; \
4873 program { name: "button_click_anim"; \
4874 action: STATE_SET "clicked" 0.0; \
4875 target: "button_image"; \
4876 target: "button_center_part"; \
4878 program { name: "button_unclick"; \
4879 signal: "mouse,up,1"; \
4881 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4882 after: "button_unclick_anim"; \
4884 program { name: "button_unclick_anim"; \
4885 action: STATE_SET "default" 0.0; \
4886 target: "button_image"; \
4887 target: "button_center_part"; \
4889 program { name: "touch_snd"; \
4890 signal: "mouse,clicked,1"; \
4892 action: PLAY_SAMPLE "touch_sound" 1.0; \
4893 after: button_unclick3; \
4895 program { name: "button_unclick3"; \
4896 action: SIGNAL_EMIT "elm,action,click" ""; \
4898 program { name: "disable"; \
4899 signal: "elm,state,disabled"; \
4901 action: STATE_SET "disabled" 0.0; \
4902 target: "disabler"; \
4903 target: "button_image"; \
4904 target: "button_center_part"; \
4906 program { name: "enable"; \
4907 signal: "elm,state,enabled"; \
4909 action: STATE_SET "default" 0.0; \
4910 target: "disabler"; \
4911 target: "button_image"; \
4912 target: "button_center_part"; \
4917 ///////////////////////////////////////////////////////////////////////////////////////
4918 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
4920 ///////////////////////////////////////////////////////////////////////////////////////
4921 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
4923 ///////////////////////////////////////////////////////////////////////////////////////
4924 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
4926 ///////////////////////////////////////////////////////////////////////////////////////
4927 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
4929 ///////////////////////////////////////////////////////////////////////////////////////
4930 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
4932 ///////////////////////////////////////////////////////////////////////////////////////
4933 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
4935 ///////////////////////////////////////////////////////////////////////////////////////
4936 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
4938 ///////////////////////////////////////////////////////////////////////////////////////
4939 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
4941 ///////////////////////////////////////////////////////////////////////////////////////
4942 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
4944 ///////////////////////////////////////////////////////////////////////////////////////
4945 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
4947 ///////////////////////////////////////////////////////////////////////////////////////
4948 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
4950 ///////////////////////////////////////////////////////////////////////////////////////
4951 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
4953 ///////////////////////////////////////////////////////////////////////////////////////
4954 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
4956 ///////////////////////////////////////////////////////////////////////////////////////
4957 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
4959 ///////////////////////////////////////////////////////////////////////////////////////
4960 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
4962 ///////////////////////////////////////////////////////////////////////////////////////
4963 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
4965 ///////////////////////////////////////////////////////////////////////////////////////
4966 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
4968 ///////////////////////////////////////////////////////////////////////////////////////
4969 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
4971 ///////////////////////////////////////////////////////////////////////////////////////
4972 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
4974 ///////////////////////////////////////////////////////////////////////////////////////
4975 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
4977 ///////////////////////////////////////////////////////////////////////////////////////
4978 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
4980 ///////////////////////////////////////////////////////////////////////////////////////
4981 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
4982 ///////////////////////////////////////////////////////////////////////////////////////
4983 group { name: "elm/button/base/circle/empty";
4985 image: "00_btn_circle_bg_normal.png" COMP;
4986 image: "00_btn_circle_bg_press.png" COMP;
4989 part { name: "button_image";
4991 description { state: "default" 0.0;
4992 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4993 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4995 image.normal: "00_btn_circle_bg_normal.png";
4996 color: 255 255 255 255;
4998 description { state: "clicked" 0.0;
4999 inherit: "default" 0.0;
5000 image.normal: "00_btn_circle_bg_press.png";
5002 description { state: "disabled" 0.0;
5003 inherit: "default" 0.0;
5004 color: 255 255 255 128;
5007 part { name: "elm.swallow.content";
5010 description { state: "default" 0.0;
5011 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5012 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5014 color: 255 255 255 255;
5017 state: "disabled" 0.0;
5018 inherit: "default" 0.0;
5019 color: 255 255 255 128;
5022 part { name: "over1";
5024 ignore_flags: ON_HOLD;
5025 description { state: "default" 0.0;
5029 part { name: "over2";
5031 description { state: "default" 0.0;
5035 part { name: "disabler";
5037 description { state: "default" 0.0;
5041 description { state: "disabled" 0.0;
5042 inherit: "default" 0.0;
5048 program { name: "button_click";
5049 signal: "mouse,down,1";
5051 action: SIGNAL_EMIT "elm,action,press" "";
5052 after: "button_click_anim";
5054 program { name: "button_click_anim";
5055 action: STATE_SET "clicked" 0.0;
5056 target: "button_image";
5058 program { name: "touch_snd";
5059 signal: "mouse,clicked,1";
5061 action: PLAY_SAMPLE "touch_sound" 1.0;
5062 after: button_unclick2;
5064 program { name: "button_unclick2";
5065 action: SIGNAL_EMIT "elm,action,click" "";
5067 program { name: "button_unclick";
5068 signal: "mouse,up,1";
5070 action: SIGNAL_EMIT "elm,action,unpress" "";
5071 after: "button_unclick_anim";
5073 program { name: "button_unclick_anim";
5074 action: STATE_SET "default" 0.0;
5075 target: "button_image";
5077 program { name: "disable";
5078 signal: "elm,state,disabled";
5080 action: STATE_SET "disabled" 0.0;
5082 target: "button_image";
5084 program { name: "enable";
5085 signal: "elm,state,enabled";
5087 action: STATE_SET "default" 0.0;
5089 target: "button_image";
5091 program { name: "icon_show";
5092 signal: "elm,state,icon,visible";
5094 action: STATE_SET "visible" 0.0;
5095 target: "elm.swallow.content";
5097 program { name: "icon_hide";
5098 signal: "elm,state,icon,hidden";
5100 action: STATE_SET "default" 0.0;
5101 target: "elm.swallow.content";
5106 ///////////////////////////////////////////////////////////////////////////////////////
5107 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
5108 group { name: "elm/button/base/contacts/"style_name; \
5109 alias: "elm/button/base/"style_name; \
5111 image: image_normal COMP; \
5112 image: image_press COMP; \
5113 image: "00_button_edit.png" COMP; \
5114 image: "00_button_edit_press.png" COMP; \
5115 image: "00_button_edit_dim.png" COMP; \
5116 image: "00_button_edit_focus.png" COMP; \
5119 part { name: "button_image"; \
5121 description { state: "default" 0.0; \
5122 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5123 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5125 normal: "00_button_edit.png"; \
5126 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5131 state: "clicked" 0.0; \
5132 inherit: "default" 0.0; \
5133 image.normal: "00_button_edit_press.png"; \
5136 state: "disabled" 0.0; \
5137 inherit: "default" 0.0; \
5138 image.normal: "00_button_edit_dim.png"; \
5141 state: "focused" 0.0; \
5142 inherit: "default" 0.0; \
5143 image.normal: "00_button_edit_focus.png"; \
5146 part { name: "button_center_part"; \
5149 description { state: "default" 0.0; \
5150 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5151 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5153 normal: image_normal; \
5154 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5159 state: "clicked" 0.0; \
5160 inherit: "default" 0.0; \
5161 image.normal: image_press; \
5164 part { name: "over1"; \
5167 ignore_flags: ON_HOLD; \
5168 description { state: "default" 0.0; \
5170 min: min_width min_height; \
5173 part { name: "over2"; \
5175 description { state: "default" 0.0; \
5179 part { name: "disabler"; \
5181 description { state: "default" 0.0; \
5185 description { state: "disabled" 0.0; \
5186 inherit: "default" 0.0; \
5192 program { name: "button_click"; \
5193 signal: "mouse,down,1"; \
5195 action: SIGNAL_EMIT "elm,action,press" ""; \
5196 after: "button_click_anim"; \
5198 program { name: "button_click_anim"; \
5199 action: STATE_SET "clicked" 0.0; \
5200 target: "button_image"; \
5201 target: "button_center_part"; \
5203 program { name: "button_unclick"; \
5204 signal: "mouse,up,1"; \
5206 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5207 after: "button_unclick_anim"; \
5209 program { name: "button_unclick_anim"; \
5210 action: STATE_SET "default" 0.0; \
5211 target: "button_image"; \
5212 target: "button_center_part"; \
5214 program { name: "touch_snd"; \
5215 signal: "mouse,clicked,1"; \
5217 action: PLAY_SAMPLE "touch_sound" 1.0; \
5218 after: button_unclick3; \
5220 program { name: "button_unclick3"; \
5221 action: SIGNAL_EMIT "elm,action,click" ""; \
5223 program { name: "disable"; \
5224 signal: "elm,state,disabled"; \
5226 action: STATE_SET "disabled" 0.0; \
5227 target: "disabler"; \
5228 target: "button_image"; \
5230 program { name: "enable"; \
5231 signal: "elm,state,enabled"; \
5233 action: STATE_SET "default" 0.0; \
5234 target: "disabler"; \
5235 target: "button_image"; \
5239 ///////////////////////////////////////////////////////////////////////////////////////
5240 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5242 ///////////////////////////////////////////////////////////////////////////////////////
5243 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5245 ///////////////////////////////////////////////////////////////////////////////////////
5246 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5248 ///////////////////////////////////////////////////////////////////////////////////////
5249 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5251 ///////////////////////////////////////////////////////////////////////////////////////
5252 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5254 ///////////////////////////////////////////////////////////////////////////////////////
5255 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5257 ///////////////////////////////////////////////////////////////////////////////////////
5258 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5260 ///////////////////////////////////////////////////////////////////////////////////////
5261 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5263 ///////////////////////////////////////////////////////////////////////////////////////
5264 group { name: "elm/button/base/contacts/delete";
5266 image: "00_button_edit.png" COMP;
5267 image: "00_button_edit_press.png" COMP;
5268 image: "00_button_edit_dim.png" COMP;
5269 image: "00_button_edit_focus.png" COMP;
5272 public button_state = BUTTON_STATE_ENABLED;
5275 part { name: "button_image";
5277 description { state: "default" 0.0;
5278 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5280 normal: "00_button_edit.png";
5281 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5285 description { state: "clicked" 0.0;
5286 inherit: "default" 0.0;
5287 image.normal: "00_button_edit_press.png";
5289 description { state: "disabled" 0.0;
5290 inherit: "default" 0.0;
5291 image.normal: "00_button_edit_dim.png";
5293 description { state: "focused" 0.0;
5294 inherit: "default" 0.0;
5295 image.normal: "00_button_edit_focus.png";
5298 part { name: "padding_left_top";
5302 description { state: "default" 0.0;
5304 rel2.relative: 0.0 0.0;
5305 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5310 part { name: "padding_right_bottom";
5314 description { state: "default" 0.0;
5316 rel1.relative: 1.0 1.0;
5317 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5322 part { name: "padding_icon_text";
5326 description { state: "default" 0.0; //when only icon or no icon is there
5330 to: "elm.swallow.content";
5332 rel2.to: "elm.swallow.content";
5337 description { state: "icononly" 0.0;
5338 inherit: "default" 0.0;
5340 description { state: "visible" 0.0; //when icon is visible
5341 inherit: "default" 0.0;
5342 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5345 part { name: "elm.swallow.content";
5349 description { state: "default" 0.0;
5354 to: "padding_left_top";
5358 to_x: "padding_left_top";
5359 to_y: "padding_right_bottom";
5363 description { state: "visible" 0.0;
5368 to: "padding_left_top";
5372 to_x: "padding_left_top";
5373 to_y: "padding_right_bottom";
5376 aspect_preference: VERTICAL;
5378 description { state: "icononly" 0.0;
5379 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5382 to: "padding_left_top";
5386 to: "padding_right_bottom";
5389 aspect_preference: VERTICAL;
5392 part { name: "elm.text";
5397 description { state: "default" 0.0;
5400 to_x: "padding_icon_text";
5401 to_y: "padding_left_top";
5405 to: "padding_right_bottom";
5407 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5409 font: "SLP:style=Medium";
5410 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5414 text_class: "slp_medium";
5417 description { state: "visible" 0.0;
5418 inherit: "default" 0.0;
5420 description { state: "clicked" 0.0;
5421 inherit: "default" 0.0;
5422 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5424 description { state: "disabled" 0.0;
5425 inherit: "default" 0.0;
5428 description { state: "disabled_visible" 0.0;
5429 inherit: "default" 0.0;
5430 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5432 description { state: "focused" 0.0;
5433 inherit: "default" 0.0;
5435 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5438 part { name: "over2";
5441 ignore_flags: ON_HOLD;
5442 description { state: "default" 0.0;
5446 part { name: "over3";
5449 description { state: "default" 0.0;
5453 part { name: "clipper";
5455 description { state: "default" 0.0;
5456 color: 255 255 255 255;
5459 part { name: "disabler";
5461 description { state: "default" 0.0;
5465 description { state: "disabled" 0.0;
5466 inherit: "default" 0.0;
5472 program { name: "button_click";
5473 signal: "mouse,down,1";
5475 action: SIGNAL_EMIT "elm,action,press" "";
5476 after: "button_click_anim";
5478 program { name: "button_click_anim";
5479 action: STATE_SET "clicked" 0.0;
5480 target: "button_image";
5481 after: "text_clicked";
5483 program { name: "text_clicked";
5487 get_state(PART:"elm.text", st, 30, vl);
5488 if (!strcmp(st, "visible"))
5489 set_state(PART:"elm.text", "clicked", 0.0);
5492 program { name: "button_unpress";
5493 action: SIGNAL_EMIT "elm,action,unpress" "";
5495 program { name: "button_mouseout_clicked";
5496 signal: "mouse,up,1";
5501 get_state(PART:"elm.swallow.content", st, 30, vl);
5502 if (strcmp(st, "icononly"))
5504 emit("elm,action,default,text,set", "");
5505 set_state(PART:"elm.text", "visible", 0.0);
5507 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5508 set_state(PART:"button_image", "default", 0.0);
5510 after: button_unpress;
5512 program { name: "touch_snd";
5513 signal: "mouse,clicked,1";
5515 action: PLAY_SAMPLE "touch_sound" 1.0;
5516 after: button_unclick3;
5518 program { name: "button_unclick3";
5519 action: SIGNAL_EMIT "elm,action,click" "";
5521 program { name: "text_show";
5522 signal: "elm,state,text,visible";
5527 get_state(PART:"elm.swallow.content", st, 30, vl);
5528 if (!strcmp(st, "icononly"))
5530 set_state(PART:"elm.swallow.content", "visible", 0.0);
5531 set_state(PART:"padding_icon_text", "visible", 0.0);
5533 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5534 set_state(PART:"elm.text", "visible", 0.0);
5536 set_state(PART:"elm.text", "disabled_visible", 0.0);
5539 program { name: "text_hide";
5540 signal: "elm,state,text,hidden";
5545 get_state(PART:"elm.swallow.content", st, 30, vl);
5546 if (!strcmp(st, "visible"))
5548 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5549 set_state(PART:"padding_icon_text", "icononly", 0.0);
5551 set_state(PART:"elm.text", "default", 0.0);
5554 program { name: "icon_show";
5555 signal: "elm,state,icon,visible";
5560 get_state(PART:"elm.text", st, 30, vl);
5561 if (!strcmp(st, "visible"))
5563 set_state(PART:"elm.swallow.content", "visible", 0.0);
5564 set_state(PART:"padding_icon_text", "visible", 0.0);
5568 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5569 set_state(PART:"padding_icon_text", "icononly", 0.0);
5573 program { name: "icon_hide";
5574 signal: "elm,state,icon,hidden";
5576 action: STATE_SET "default" 0.0;
5577 target: "elm.swallow.content";
5578 target: "padding_icon_text";
5580 program { name: "disable";
5581 signal: "elm,state,disabled";
5583 action: STATE_SET "disabled" 0.0;
5584 target: "button_image";
5586 after: "disable_text";
5588 program { name: "disable_text";
5592 get_state(PART:"elm.text", st, 30, vl);
5593 if (!strcmp(st, "visible"))
5594 set_state(PART:"elm.text", "disabled_visible", 0.0);
5596 set_state(PART:"elm.text", "disabled", 0.0);
5597 set_int(button_state, BUTTON_STATE_DISABLED);
5600 program { name: "enable";
5601 signal: "elm,state,enabled";
5603 action: STATE_SET "default" 0.0;
5604 target: "button_image";
5606 after: "enable_text";
5608 program { name: "enable_text";
5612 get_state(PART:"elm.text", st, 30, vl);
5613 if (!strcmp(st, "disabled_visible"))
5614 set_state(PART:"elm.text", "visible", 0.0);
5616 set_state(PART:"elm.text", "default", 0.0);
5617 set_int(button_state, BUTTON_STATE_ENABLED);
5620 program { name: "focused";
5621 //signal: "elm,action,focus";
5623 action: STATE_SET "focused" 0.0;
5624 target: "button_image";
5627 program { name: "unfocused";
5628 //signal: "elm,action,unfocus";
5630 action: STATE_SET "default" 0.0;
5631 target: "button_image";
5632 after: "unfocus_text";
5634 program { name: "unfocus_text";
5635 action: STATE_SET "visible" 0.0;
5641 ///////////////////////////////////////////////////////////////////////////////////////
5642 group { name: "elm/button/base/multiline";
5643 alias: "elm/button/base/text_only/multiline";
5645 image: "00_button_04_normal.png" COMP;
5646 image: "00_button_04_press.png" COMP;
5647 image: "00_button_04_dim.png" COMP;
5648 image: "00_button_04_normal_focus.png" COMP;
5651 public button_state = BUTTON_STATE_ENABLED;
5654 style { name: "btn_multiline_style";
5655 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5662 part { name: "button_image";
5664 description { state: "default" 0.0;
5667 normal: "00_button_04_normal.png";
5672 description { state: "clicked" 0.0;
5673 inherit: "default" 0.0;
5674 image.normal: "00_button_04_press.png";
5676 description { state: "disabled" 0.0;
5677 inherit: "default" 0.0;
5678 image.normal: "00_button_04_dim.png";
5680 description { state: "focused" 0.0;
5681 inherit: "default" 0.0;
5682 image.normal: "00_button_04_normal_focus.png";
5685 part { name: "padding_left_top";
5689 description { state: "default" 0.0;
5691 rel2.relative: 0.0 0.0;
5697 part { name: "padding_right_bottom";
5701 description { state: "default" 0.0;
5703 rel1.relative: 1.0 1.0;
5709 part { name: "icon_rect";
5713 description { state: "default" 0.0;
5719 to_x: "elm.swallow.content";
5720 to_y: "padding_left_top";
5724 to_x: "elm.swallow.content";
5725 to_y: "padding_right_bottom";
5731 part { name: "padding_icon_text";
5735 description { state: "default" 0.0; //when only icon or no icon is there
5741 rel2.to: "icon_rect";
5746 description { state: "icononly" 0.0;
5747 inherit: "default" 0.0;
5749 description { state: "visible" 0.0; //when icon is visible
5755 rel2.to: "icon_rect";
5761 part { name: "elm.swallow.content";
5765 description { state: "default" 0.0;
5770 to: "padding_left_top";
5774 to_x: "padding_left_top";
5775 to_y: "padding_right_bottom";
5779 description { state: "visible" 0.0;
5784 to: "padding_left_top";
5788 to_x: "padding_left_top";
5789 to_y: "padding_right_bottom";
5792 aspect_preference: VERTICAL;
5794 description { state: "icononly" 0.0;
5798 to: "padding_left_top";
5802 to: "padding_right_bottom";
5805 aspect_preference: VERTICAL;
5808 part { name: "elm.text";
5813 description { state: "default" 0.0;
5817 to_x: "padding_icon_text";
5818 to_y: "padding_left_top";
5822 to: "padding_right_bottom";
5824 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5826 style: "btn_multiline_style";
5831 description { state: "visible" 0.0;
5832 inherit: "default" 0.0;
5836 description { state: "clicked" 0.0;
5837 inherit: "default" 0.0;
5840 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5842 description { state: "disabled" 0.0;
5843 inherit: "default" 0.0;
5846 description { state: "disabled_visible" 0.0;
5847 inherit: "default" 0.0;
5848 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5852 description { state: "focused" 0.0;
5853 inherit: "default" 0.0;
5856 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5859 part { name: "over2";
5862 ignore_flags: ON_HOLD;
5863 description { state: "default" 0.0;
5867 part { name: "over3";
5870 description { state: "default" 0.0;
5874 part { name: "clipper";
5876 description { state: "default" 0.0;
5877 color: 255 255 255 255;
5880 part { name: "disabler";
5882 description { state: "default" 0.0;
5886 description { state: "disabled" 0.0;
5887 inherit: "default" 0.0;
5893 program { name: "button_click";
5894 signal: "mouse,down,1";
5896 action: SIGNAL_EMIT "elm,action,press" "";
5897 after: "button_click_anim";
5899 program { name: "button_click_anim";
5900 action: STATE_SET "clicked" 0.0;
5901 target: "button_image";
5902 after: "text_clicked";
5904 program { name: "text_clicked";
5908 get_state(PART:"elm.text", st, 30, vl);
5909 if (!strcmp(st, "visible"))
5910 set_state(PART:"elm.text", "clicked", 0.0);
5913 program { name: "button_unpress";
5914 action: SIGNAL_EMIT "elm,action,unpress" "";
5916 program { name: "button_mouseout_clicked";
5917 signal: "mouse,up,1";
5922 get_state(PART:"elm.swallow.content", st, 30, vl);
5923 if (strcmp(st, "icononly"))
5925 emit("elm,action,default,text,set", "");
5926 set_state(PART:"elm.text", "visible", 0.0);
5928 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5929 set_state(PART:"button_image", "default", 0.0);
5931 after: button_unpress;
5933 program { name: "touch_snd";
5934 signal: "mouse,clicked,1";
5936 action: PLAY_SAMPLE "touch_sound" 1.0;
5937 after: button_unclick3;
5939 program { name: "button_unclick3";
5940 action: SIGNAL_EMIT "elm,action,click" "";
5942 program { name: "text_show";
5943 signal: "elm,state,text,visible";
5948 get_state(PART:"elm.swallow.content", st, 30, vl);
5949 if (!strcmp(st, "icononly"))
5951 set_state(PART:"elm.swallow.content", "visible", 0.0);
5952 set_state(PART:"padding_icon_text", "visible", 0.0);
5954 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5955 set_state(PART:"elm.text", "visible", 0.0);
5957 set_state(PART:"elm.text", "disabled_visible", 0.0);
5960 program { name: "text_hide";
5961 signal: "elm,state,text,hidden";
5966 get_state(PART:"elm.swallow.content", st, 30, vl);
5967 if (!strcmp(st, "visible"))
5969 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5970 set_state(PART:"padding_icon_text", "icononly", 0.0);
5972 set_state(PART:"elm.text", "default", 0.0);
5975 program { name: "icon_show";
5976 signal: "elm,state,icon,visible";
5981 get_state(PART:"elm.text", st, 30, vl);
5982 if (!strcmp(st, "visible"))
5984 set_state(PART:"elm.swallow.content", "visible", 0.0);
5985 set_state(PART:"padding_icon_text", "visible", 0.0);
5989 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5990 set_state(PART:"padding_icon_text", "icononly", 0.0);
5994 program { name: "icon_hide";
5995 signal: "elm,state,icon,hidden";
5997 action: STATE_SET "default" 0.0;
5998 target: "elm.swallow.content";
5999 target: "padding_icon_text";
6001 program { name: "disable";
6002 signal: "elm,state,disabled";
6004 action: STATE_SET "disabled" 0.0;
6005 target: "button_image";
6007 after: "disable_text";
6009 program { name: "disable_text";
6013 get_state(PART:"elm.text", st, 30, vl);
6014 if (!strcmp(st, "visible"))
6015 set_state(PART:"elm.text", "disabled_visible", 0.0);
6017 set_state(PART:"elm.text", "disabled", 0.0);
6018 set_int(button_state, BUTTON_STATE_DISABLED);
6021 program { name: "enable";
6022 signal: "elm,state,enabled";
6024 action: STATE_SET "default" 0.0;
6025 target: "button_image";
6027 after: "enable_text";
6029 program { name: "enable_text";
6033 get_state(PART:"elm.text", st, 30, vl);
6034 if (!strcmp(st, "disabled_visible"))
6035 set_state(PART:"elm.text", "visible", 0.0);
6037 set_state(PART:"elm.text", "default", 0.0);
6038 set_int(button_state, BUTTON_STATE_ENABLED);
6041 program { name: "focused";
6042 //signal: "elm,action,focus";
6044 action: STATE_SET "focused" 0.0;
6045 target: "button_image";
6048 program { name: "unfocused";
6049 //signal: "elm,action,unfocus";
6051 action: STATE_SET "default" 0.0;
6052 target: "button_image";
6053 after: "unfocus_text";
6055 program { name: "unfocus_text";
6056 action: STATE_SET "visible" 0.0;
6062 ///////////////////////////////////////////////////////////////////////////////////////
6063 group { name: "elm/button/base/default";
6065 image: "00_button_01_normal.png" COMP;
6066 image: "00_button_01_normal_press.png" COMP;
6067 image: "00_button_01_normal_dim.png" COMP;
6068 image: "00_button_01_normal_Focus.png" COMP;
6071 public button_state = BUTTON_STATE_ENABLED;
6074 part { name: "button_image";
6076 description { state: "default" 0.0;
6077 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6079 normal: "00_button_01_normal.png";
6080 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6084 description { state: "clicked" 0.0;
6085 inherit: "default" 0.0;
6086 image.normal: "00_button_01_normal_press.png";
6088 description { state: "disabled" 0.0;
6089 inherit: "default" 0.0;
6090 image.normal: "00_button_01_normal_dim.png";
6092 description { state: "focused" 0.0;
6093 inherit: "default" 0.0;
6094 image.normal: "00_button_01_normal_Focus.png";
6097 part { name: "padding_left_top";
6101 description { state: "default" 0.0;
6103 rel2.relative: 0.0 0.0;
6104 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6109 part { name: "padding_right_bottom";
6113 description { state: "default" 0.0;
6115 rel1.relative: 1.0 1.0;
6116 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6121 part { name: "padding_icon_text";
6125 description { state: "default" 0.0; //when only icon or no icon is there
6130 to: "elm.swallow.content";
6132 rel2.to: "elm.swallow.content";
6136 description { state: "icononly" 0.0;
6137 inherit: "default" 0.0;
6139 description { state: "visible" 0.0; //when icon is visible
6140 inherit: "default" 0.0;
6141 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6144 part { name: "elm.swallow.content";
6148 description { state: "default" 0.0;
6153 to: "padding_left_top";
6157 to_x: "padding_left_top";
6158 to_y: "padding_right_bottom";
6162 description { state: "visible" 0.0;
6167 to: "padding_left_top";
6171 to_x: "padding_left_top";
6172 to_y: "padding_right_bottom";
6175 aspect_preference: VERTICAL;
6177 description { state: "icononly" 0.0;
6178 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6181 to_x: "padding_left_top";
6185 to_x: "padding_right_bottom";
6188 aspect_preference: VERTICAL;
6191 part { name: "elm.text";
6196 description { state: "default" 0.0;
6201 to_x: "padding_icon_text";
6202 to_y: "padding_left_top";
6206 to: "padding_right_bottom";
6208 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6210 font: "SLP:style=Medium";
6211 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6213 text_class: "slp_medium";
6216 description { state: "visible" 0.0;
6217 inherit: "default" 0.0;
6219 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6221 description { state: "clicked" 0.0;
6222 inherit: "default" 0.0;
6224 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6225 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6227 description { state: "disabled" 0.0;
6228 inherit: "default" 0.0;
6230 description { state: "disabled_visible" 0.0;
6231 inherit: "default" 0.0;
6232 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6234 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6236 description { state: "focused" 0.0;
6237 inherit: "default" 0.0;
6240 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6243 part { name: "over2";
6246 ignore_flags: ON_HOLD;
6247 description { state: "default" 0.0;
6251 part { name: "over3";
6254 description { state: "default" 0.0;
6258 part { name: "clipper";
6260 description { state: "default" 0.0;
6261 color: 255 255 255 255;
6264 part { name: "disabler";
6266 description { state: "default" 0.0;
6270 description { state: "disabled" 0.0;
6271 inherit: "default" 0.0;
6277 program { name: "button_click";
6278 signal: "mouse,down,1";
6280 action: SIGNAL_EMIT "elm,action,press" "";
6281 after: "button_click_anim";
6283 program { name: "button_click_anim";
6284 action: STATE_SET "clicked" 0.0;
6285 target: "button_image";
6286 after: "text_clicked";
6288 program { name: "text_clicked";
6292 get_state(PART:"elm.text", st, 30, vl);
6293 if (!strcmp(st, "visible"))
6294 set_state(PART:"elm.text", "clicked", 0.0);
6297 program { name: "button_unpress";
6298 action: SIGNAL_EMIT "elm,action,unpress" "";
6300 program { name: "button_mouseout_clicked";
6301 signal: "mouse,up,1";
6306 get_state(PART:"elm.swallow.content", st, 30, vl);
6307 if (strcmp(st, "icononly"))
6309 emit("elm,action,default,text,set", "");
6310 set_state(PART:"elm.text", "visible", 0.0);
6312 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6313 set_state(PART:"button_image", "default", 0.0);
6315 after: button_unpress;
6317 program { name: "touch_snd";
6318 signal: "mouse,clicked,1";
6320 action: PLAY_SAMPLE "touch_sound" 1.0;
6321 after: button_unclick3;
6323 program { name: "button_unclick3";
6324 action: SIGNAL_EMIT "elm,action,click" "";
6326 program { name: "text_show";
6327 signal: "elm,state,text,visible";
6332 get_state(PART:"elm.swallow.content", st, 30, vl);
6333 if (!strcmp(st, "icononly"))
6335 set_state(PART:"elm.swallow.content", "visible", 0.0);
6336 set_state(PART:"padding_icon_text", "visible", 0.0);
6338 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6339 set_state(PART:"elm.text", "visible", 0.0);
6341 set_state(PART:"elm.text", "disabled_visible", 0.0);
6344 program { name: "text_hide";
6345 signal: "elm,state,text,hidden";
6350 get_state(PART:"elm.swallow.content", st, 30, vl);
6351 if (!strcmp(st, "visible"))
6353 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6354 set_state(PART:"padding_icon_text", "icononly", 0.0);
6356 set_state(PART:"elm.text", "default", 0.0);
6359 program { name: "icon_show";
6360 signal: "elm,state,icon,visible";
6365 get_state(PART:"elm.text", st, 30, vl);
6366 if (!strcmp(st, "visible"))
6368 set_state(PART:"elm.swallow.content", "visible", 0.0);
6369 set_state(PART:"padding_icon_text", "visible", 0.0);
6373 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6374 set_state(PART:"padding_icon_text", "icononly", 0.0);
6378 program { name: "icon_hide";
6379 signal: "elm,state,icon,hidden";
6381 action: STATE_SET "default" 0.0;
6382 target: "elm.swallow.content";
6383 target: "padding_icon_text";
6385 program { name: "disable";
6386 signal: "elm,state,disabled";
6388 action: STATE_SET "disabled" 0.0;
6389 target: "button_image";
6391 after: "disable_text";
6393 program { name: "disable_text";
6397 get_state(PART:"elm.text", st, 30, vl);
6398 if (!strcmp(st, "visible"))
6399 set_state(PART:"elm.text", "disabled_visible", 0.0);
6401 set_state(PART:"elm.text", "disabled", 0.0);
6402 set_int(button_state, BUTTON_STATE_DISABLED);
6405 program { name: "enable";
6406 signal: "elm,state,enabled";
6408 action: STATE_SET "default" 0.0;
6409 target: "button_image";
6411 after: "enable_text";
6413 program { name: "enable_text";
6417 get_state(PART:"elm.text", st, 30, vl);
6418 if (!strcmp(st, "disabled_visible"))
6419 set_state(PART:"elm.text", "visible", 0.0);
6421 set_state(PART:"elm.text", "default", 0.0);
6422 set_int(button_state, BUTTON_STATE_ENABLED);
6425 program { name: "focused";
6426 //signal: "elm,action,focus";
6428 action: STATE_SET "focused" 0.0;
6429 target: "button_image";
6432 program { name: "unfocused";
6433 //signal: "elm,action,unfocus";
6435 action: STATE_SET "default" 0.0;
6436 target: "button_image";
6437 after: "unfocus_text";
6439 program { name: "unfocus_text";
6440 action: STATE_SET "visible" 0.0;
6446 ///////////////////////////////////////////////////////////////////////////////////////
6447 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6448 group { name: "elm/button/base/"style_name; \
6450 image: image_normal COMP; \
6451 image: image_press COMP; \
6452 image: image_disable COMP; \
6455 public button_state = BUTTON_STATE_ENABLED; \
6458 part { name: "button_image"; \
6460 description { state: "default" 0.0; \
6461 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6463 normal: image_normal; \
6464 border: COLORSELECTOR_BUTTON_BORDER; \
6468 description { state: "clicked" 0.0; \
6469 inherit: "default" 0.0; \
6470 image.normal: image_press; \
6472 description { state: "disabled" 0.0; \
6473 inherit: "default" 0.0; \
6474 image.normal: image_disable; \
6476 description { state: "focused" 0.0; \
6477 inherit: "default" 0.0; \
6478 image.normal: image_press; \
6481 part { name: "over2"; \
6484 ignore_flags: ON_HOLD; \
6485 description { state: "default" 0.0; \
6489 part { name: "over3"; \
6492 description { state: "default" 0.0; \
6496 part { name: "disabler"; \
6498 description { state: "default" 0.0; \
6502 description { state: "disabled" 0.0; \
6503 inherit: "default" 0.0; \
6509 program { name: "button_click"; \
6510 signal: "mouse,down,1"; \
6512 action: SIGNAL_EMIT "elm,action,press" ""; \
6513 after: "button_click_anim"; \
6515 program { name: "button_click_anim"; \
6516 action: STATE_SET "clicked" 0.0; \
6517 target: "button_image"; \
6519 program { name: "button_unpress"; \
6520 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6522 program { name: "button_mouseout_clicked"; \
6523 signal: "mouse,up,1"; \
6526 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
6527 set_state(PART:"button_image", "default", 0.0); \
6529 after: button_unpress; \
6531 program { name: "touch_snd"; \
6532 signal: "mouse,clicked,1"; \
6534 action: PLAY_SAMPLE "touch_sound" 1.0; \
6535 after: button_unclick3; \
6537 program { name: "button_unclick3"; \
6538 action: SIGNAL_EMIT "elm,action,click" ""; \
6540 program { name: "disable"; \
6541 signal: "elm,state,disabled"; \
6543 action: STATE_SET "disabled" 0.0; \
6544 target: "button_image"; \
6545 target: "disabler"; \
6547 set_int(button_state, BUTTON_STATE_DISABLED); \
6550 program { name: "enable"; \
6551 signal: "elm,state,enabled"; \
6553 action: STATE_SET "default" 0.0; \
6554 target: "button_image"; \
6555 target: "disabler"; \
6557 set_int(button_state, BUTTON_STATE_ENABLED); \
6562 ///////////////////////////////////////////////////////////////////////////////////////
6563 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")
6564 ///////////////////////////////////////////////////////////////////////////////////////
6565 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")
6566 ///////////////////////////////////////////////////////////////////////////////////////
6567 group { name: "elm/button/base/hidden";
6569 image: "00_button_sweep.png" COMP;
6570 image: "00_button_sweep_press.png" COMP;
6571 image: "00_button_sweep_focus.png" COMP;
6572 image: "00_button_sweep_dim.png" COMP;
6575 public button_state = BUTTON_STATE_ENABLED;
6578 part { name: "button_image";
6580 description { state: "default" 0.0;
6581 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6583 normal: "00_button_sweep.png";
6584 border: BUTTON_HIDDEN_BG_BORDER_INC;
6588 description { state: "clicked" 0.0;
6589 inherit: "default" 0.0;
6590 image.normal: "00_button_sweep_press.png";
6592 description { state: "disabled" 0.0;
6593 inherit: "default" 0.0;
6594 image.normal: "00_button_sweep_dim.png";
6596 description { state: "focused" 0.0;
6597 inherit: "default" 0.0;
6598 image.normal: "00_button_sweep_focus.png";
6601 part { name: "padding_left_top";
6605 description { state: "default" 0.0;
6607 rel2.relative: 0.0 0.0;
6608 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6613 part { name: "padding_right_bottom";
6617 description { state: "default" 0.0;
6619 rel1.relative: 1.0 1.0;
6620 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6625 part { name: "icon_rect";
6629 description { state: "default" 0.0;
6630 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6634 to_x: "elm.swallow.content";
6635 to_y: "padding_left_top";
6639 to_x: "elm.swallow.content";
6640 to_y: "padding_right_bottom";
6646 part { name: "padding_icon_text";
6650 description { state: "default" 0.0; //when only icon or no icon is there
6656 rel2.to: "icon_rect";
6661 description { state: "icononly" 0.0;
6662 inherit: "default" 0.0;
6664 description { state: "visible" 0.0; //when icon is visible
6670 rel2.to: "icon_rect";
6672 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6676 part { name: "elm.swallow.content";
6680 description { state: "default" 0.0;
6685 to: "padding_left_top";
6689 to_x: "padding_left_top";
6690 to_y: "padding_right_bottom";
6694 description { state: "visible" 0.0;
6699 to: "padding_left_top";
6703 to_x: "padding_left_top";
6704 to_y: "padding_right_bottom";
6707 aspect_preference: VERTICAL;
6709 description { state: "icononly" 0.0;
6710 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6713 to: "padding_left_top";
6717 to_x: "padding_left_top";
6718 to_y: "padding_right_bottom";
6721 aspect_preference: VERTICAL;
6724 part { name: "elm.text";
6729 description { state: "default" 0.0;
6733 to_x: "padding_icon_text";
6734 to_y: "padding_left_top";
6738 to: "padding_right_bottom";
6740 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6742 font: "SLP:style=Medium";
6743 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6745 text_class: "slp_medium";
6748 description { state: "visible" 0.0;
6749 inherit: "default" 0.0;
6751 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6753 description { state: "clicked" 0.0;
6754 inherit: "default" 0.0;
6757 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6759 description { state: "disabled" 0.0;
6760 inherit: "default" 0.0;
6763 description { state: "disabled_visible" 0.0;
6764 inherit: "default" 0.0;
6765 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6767 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6769 description { state: "focused" 0.0;
6770 inherit: "default" 0.0;
6773 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6776 part { name: "over2";
6779 ignore_flags: ON_HOLD;
6780 description { state: "default" 0.0;
6784 part { name: "over3";
6787 description { state: "default" 0.0;
6791 part { name: "clipper";
6793 description { state: "default" 0.0;
6794 color: 255 255 255 255;
6797 part { name: "disabler";
6799 description { state: "default" 0.0;
6803 description { state: "disabled" 0.0;
6804 inherit: "default" 0.0;
6810 program { name: "button_click";
6811 signal: "mouse,down,1";
6813 action: SIGNAL_EMIT "elm,action,press" "";
6814 after: "button_click_anim";
6816 program { name: "button_click_anim";
6817 action: STATE_SET "clicked" 0.0;
6818 target: "button_image";
6819 after: "text_clicked";
6821 program { name: "text_clicked";
6825 get_state(PART:"elm.text", st, 30, vl);
6826 if (!strcmp(st, "visible"))
6827 set_state(PART:"elm.text", "clicked", 0.0);
6830 program { name: "button_unpress";
6831 action: SIGNAL_EMIT "elm,action,unpress" "";
6833 program { name: "button_mouseout_clicked";
6834 signal: "mouse,up,1";
6839 get_state(PART:"elm.swallow.content", st, 30, vl);
6840 if (strcmp(st, "icononly"))
6842 emit("elm,action,default,text,set", "");
6843 set_state(PART:"elm.text", "visible", 0.0);
6845 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6846 set_state(PART:"button_image", "default", 0.0);
6848 after: button_unpress;
6850 program { name: "touch_snd";
6851 signal: "mouse,clicked,1";
6853 action: PLAY_SAMPLE "touch_sound" 1.0;
6854 after: button_unclick3;
6856 program { name: "button_unclick3";
6857 action: SIGNAL_EMIT "elm,action,click" "";
6859 program { name: "text_show";
6860 signal: "elm,state,text,visible";
6865 get_state(PART:"elm.swallow.content", st, 30, vl);
6866 if (!strcmp(st, "icononly"))
6868 set_state(PART:"elm.swallow.content", "visible", 0.0);
6869 set_state(PART:"padding_icon_text", "visible", 0.0);
6871 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6872 set_state(PART:"elm.text", "visible", 0.0);
6874 set_state(PART:"elm.text", "disabled_visible", 0.0);
6877 program { name: "text_hide";
6878 signal: "elm,state,text,hidden";
6883 get_state(PART:"elm.swallow.content", st, 30, vl);
6884 if (!strcmp(st, "visible"))
6886 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6887 set_state(PART:"padding_icon_text", "icononly", 0.0);
6889 set_state(PART:"elm.text", "default", 0.0);
6892 program { name: "icon_show";
6893 signal: "elm,state,icon,visible";
6898 get_state(PART:"elm.text", st, 30, vl);
6899 if (!strcmp(st, "visible"))
6901 set_state(PART:"elm.swallow.content", "visible", 0.0);
6902 set_state(PART:"padding_icon_text", "visible", 0.0);
6906 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6907 set_state(PART:"padding_icon_text", "icononly", 0.0);
6911 program { name: "icon_hide";
6912 signal: "elm,state,icon,hidden";
6914 action: STATE_SET "default" 0.0;
6915 target: "elm.swallow.content";
6916 target: "padding_icon_text";
6918 program { name: "disable";
6919 signal: "elm,state,disabled";
6921 action: STATE_SET "disabled" 0.0;
6922 target: "button_image";
6924 after: "disable_text";
6926 program { name: "disable_text";
6930 get_state(PART:"elm.text", st, 30, vl);
6931 if (!strcmp(st, "visible"))
6932 set_state(PART:"elm.text", "disabled_visible", 0.0);
6934 set_state(PART:"elm.text", "disabled", 0.0);
6935 set_int(button_state, BUTTON_STATE_DISABLED);
6938 program { name: "enable";
6939 signal: "elm,state,enabled";
6941 action: STATE_SET "default" 0.0;
6942 target: "button_image";
6944 after: "enable_text";
6946 program { name: "enable_text";
6950 get_state(PART:"elm.text", st, 30, vl);
6951 if (!strcmp(st, "disabled_visible"))
6952 set_state(PART:"elm.text", "visible", 0.0);
6954 set_state(PART:"elm.text", "default", 0.0);
6955 set_int(button_state, BUTTON_STATE_ENABLED);
6958 program { name: "focused";
6959 //signal: "elm,action,focus";
6961 action: STATE_SET "focused" 0.0;
6962 target: "button_image";
6965 program { name: "unfocused";
6966 //signal: "elm,action,unfocus";
6968 action: STATE_SET "default" 0.0;
6969 target: "button_image";
6970 after: "unfocus_text";
6972 program { name: "unfocus_text";
6973 action: STATE_SET "visible" 0.0;
6979 ///////////////////////////////////////////////////////////////////////////////////////
6980 group { name: "elm/button/base/picker/bar/default";
6982 image: "00_picker_btn_normal.png" COMP;
6983 image: "00_picker_btn_press.png" COMP;
6984 image: "00_picker_btn_normal_focus.png" COMP;
6987 public button_state = BUTTON_STATE_ENABLED;
6990 part { name: "button_image";
6992 description { state: "default" 0.0;
6993 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
6995 normal: "00_picker_btn_normal.png";
6996 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7000 description { state: "clicked" 0.0;
7001 inherit: "default" 0.0;
7002 image.normal: "00_picker_btn_press.png";
7004 description { state: "disabled" 0.0;
7005 inherit: "default" 0.0;
7007 description { state: "focused" 0.0;
7008 inherit: "default" 0.0;
7009 image.normal: "00_picker_btn_normal_focus.png";
7012 part { name: "padding_left_top";
7016 description { state: "default" 0.0;
7018 rel2.relative: 0.0 0.0;
7019 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7024 part { name: "padding_right_bottom";
7028 description { state: "default" 0.0;
7030 rel1.relative: 1.0 1.0;
7031 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7036 part { name: "icon_rect";
7040 description { state: "default" 0.0;
7041 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7045 to_x: "elm.swallow.content";
7046 to_y: "padding_left_top";
7050 to_x: "elm.swallow.content";
7051 to_y: "padding_right_bottom";
7057 part { name: "padding_icon_text";
7061 description { state: "default" 0.0; //when only icon or no icon is there
7067 rel2.to: "icon_rect";
7072 description { state: "icononly" 0.0;
7073 inherit: "default" 0.0;
7075 description { state: "visible" 0.0; //when icon is visible
7081 rel2.to: "icon_rect";
7083 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7087 part { name: "elm.swallow.content";
7091 description { state: "default" 0.0;
7096 to: "padding_left_top";
7100 to_x: "padding_left_top";
7101 to_y: "padding_right_bottom";
7105 description { state: "visible" 0.0;
7110 to: "padding_left_top";
7114 to_x: "padding_left_top";
7115 to_y: "padding_right_bottom";
7118 aspect_preference: VERTICAL;
7120 description { state: "icononly" 0.0;
7121 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7124 to: "padding_left_top";
7128 to_x: "padding_left_top";
7129 to_y: "padding_right_bottom";
7132 aspect_preference: VERTICAL;
7135 part { name: "elm.text";
7140 description { state: "default" 0.0;
7144 to_x: "padding_icon_text";
7145 to_y: "padding_left_top";
7149 to: "padding_right_bottom";
7151 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7153 font: "SLP:style=Medium";
7154 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7157 text_class: "slp_medium";
7160 description { state: "visible" 0.0;
7161 inherit: "default" 0.0;
7163 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7165 description { state: "clicked" 0.0;
7166 inherit: "default" 0.0;
7169 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7171 description { state: "disabled" 0.0;
7172 inherit: "default" 0.0;
7173 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7175 description { state: "disabled_visible" 0.0;
7176 inherit: "default" 0.0;
7177 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7179 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7181 description { state: "focused" 0.0;
7182 inherit: "default" 0.0;
7185 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7188 part { name: "over2";
7191 ignore_flags: ON_HOLD;
7192 description { state: "default" 0.0;
7196 part { name: "over3";
7199 description { state: "default" 0.0;
7203 part { name: "clipper";
7205 description { state: "default" 0.0;
7206 color: 255 255 255 255;
7209 part { name: "disabler";
7211 description { state: "default" 0.0;
7215 description { state: "disabled" 0.0;
7216 inherit: "default" 0.0;
7222 program { name: "button_click";
7223 signal: "mouse,down,1";
7225 action: SIGNAL_EMIT "elm,action,press" "";
7226 after: "button_click_anim";
7228 program { name: "button_click_anim";
7229 action: STATE_SET "clicked" 0.0;
7230 target: "button_image";
7231 after: "text_clicked";
7233 program { name: "text_clicked";
7237 get_state(PART:"elm.text", st, 30, vl);
7238 if (!strcmp(st, "visible"))
7239 set_state(PART:"elm.text", "clicked", 0.0);
7242 program { name: "button_unpress";
7243 action: SIGNAL_EMIT "elm,action,unpress" "";
7245 program { name: "button_mouseout_clicked";
7246 signal: "mouse,up,1";
7251 get_state(PART:"elm.swallow.content", st, 30, vl);
7252 if (strcmp(st, "icononly"))
7254 emit("elm,action,default,text,set", "");
7255 set_state(PART:"elm.text", "visible", 0.0);
7257 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7258 set_state(PART:"button_image", "default", 0.0);
7260 after: button_unpress;
7262 program { name: "touch_snd";
7263 signal: "mouse,clicked,1";
7265 action: PLAY_SAMPLE "touch_sound" 1.0;
7266 after: button_unclick3;
7268 program { name: "button_unclick3";
7269 action: SIGNAL_EMIT "elm,action,click" "";
7271 program { name: "text_show";
7272 signal: "elm,state,text,visible";
7277 get_state(PART:"elm.swallow.content", st, 30, vl);
7278 if (!strcmp(st, "icononly"))
7280 set_state(PART:"elm.swallow.content", "visible", 0.0);
7281 set_state(PART:"padding_icon_text", "visible", 0.0);
7283 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7284 set_state(PART:"elm.text", "visible", 0.0);
7286 set_state(PART:"elm.text", "disabled_visible", 0.0);
7289 program { name: "text_hide";
7290 signal: "elm,state,text,hidden";
7295 get_state(PART:"elm.swallow.content", st, 30, vl);
7296 if (!strcmp(st, "visible"))
7298 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7299 set_state(PART:"padding_icon_text", "icononly", 0.0);
7301 set_state(PART:"elm.text", "default", 0.0);
7304 program { name: "icon_show";
7305 signal: "elm,state,icon,visible";
7310 get_state(PART:"elm.text", st, 30, vl);
7311 if (!strcmp(st, "visible"))
7313 set_state(PART:"elm.swallow.content", "visible", 0.0);
7314 set_state(PART:"padding_icon_text", "visible", 0.0);
7318 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7319 set_state(PART:"padding_icon_text", "icononly", 0.0);
7323 program { name: "icon_hide";
7324 signal: "elm,state,icon,hidden";
7326 action: STATE_SET "default" 0.0;
7327 target: "elm.swallow.content";
7328 target: "padding_icon_text";
7330 program { name: "disable";
7331 signal: "elm,state,disabled";
7333 action: STATE_SET "disabled" 0.0;
7334 target: "button_image";
7336 after: "disable_text";
7338 program { name: "disable_text";
7342 get_state(PART:"elm.text", st, 30, vl);
7343 if (!strcmp(st, "visible"))
7344 set_state(PART:"elm.text", "disabled_visible", 0.0);
7346 set_state(PART:"elm.text", "disabled", 0.0);
7347 set_int(button_state, BUTTON_STATE_DISABLED);
7350 program { name: "enable";
7351 signal: "elm,state,enabled";
7353 action: STATE_SET "default" 0.0;
7354 target: "button_image";
7356 after: "enable_text";
7358 program { name: "enable_text";
7362 get_state(PART:"elm.text", st, 30, vl);
7363 if (!strcmp(st, "disabled_visible"))
7364 set_state(PART:"elm.text", "visible", 0.0);
7366 set_state(PART:"elm.text", "default", 0.0);
7367 set_int(button_state, BUTTON_STATE_ENABLED);
7370 program { name: "focused";
7371 //signal: "elm,action,focus";
7373 action: STATE_SET "focused" 0.0;
7374 target: "button_image";
7377 program { name: "unfocused";
7378 //signal: "elm,action,unfocus";
7380 action: STATE_SET "default" 0.0;
7381 target: "button_image";
7382 after: "unfocus_text";
7384 program { name: "unfocus_text";
7385 action: STATE_SET "visible" 0.0;
7391 ///////////////////////////////////////////////////////////////////////////////////////
7392 group { name: "elm/button/base/picker/prev/text/default";
7393 alias: "elm/button/base/picker/next/text/default";
7395 image: "00_picker_btn_normal.png" COMP;
7396 image: "00_picker_btn_press.png" COMP;
7397 image: "00_picker_btn_normal_focus.png" COMP;
7400 public button_state = BUTTON_STATE_ENABLED;
7403 part { name: "button_image";
7405 description { state: "default" 0.0;
7406 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7408 normal: "00_picker_btn_normal.png";
7409 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7413 description { state: "clicked" 0.0;
7414 inherit: "default" 0.0;
7415 image.normal: "00_picker_btn_press.png";
7417 description { state: "disabled" 0.0;
7418 inherit: "default" 0.0;
7421 description { state: "focused" 0.0;
7422 inherit: "default" 0.0;
7423 image.normal: "00_picker_btn_normal_focus.png";
7426 part { name: "padding_left_top";
7430 description { state: "default" 0.0;
7432 rel2.relative: 0.0 0.0;
7433 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7438 part { name: "padding_right_bottom";
7442 description { state: "default" 0.0;
7444 rel1.relative: 1.0 1.0;
7445 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7450 part { name: "icon_rect";
7454 description { state: "default" 0.0;
7455 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7459 to_x: "elm.swallow.content";
7460 to_y: "padding_left_top";
7464 to_x: "elm.swallow.content";
7465 to_y: "padding_right_bottom";
7471 part { name: "padding_icon_text";
7475 description { state: "default" 0.0; //when only icon or no icon is there
7481 rel2.to: "icon_rect";
7486 description { state: "icononly" 0.0;
7487 inherit: "default" 0.0;
7489 description { state: "visible" 0.0; //when icon is visible
7495 rel2.to: "icon_rect";
7497 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7501 part { name: "elm.swallow.content";
7505 description { state: "default" 0.0;
7510 to: "padding_left_top";
7514 to_x: "padding_left_top";
7515 to_y: "padding_right_bottom";
7519 description { state: "visible" 0.0;
7524 to: "padding_left_top";
7528 to_x: "padding_left_top";
7529 to_y: "padding_right_bottom";
7532 aspect_preference: VERTICAL;
7534 description { state: "icononly" 0.0;
7535 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7538 to: "padding_left_top";
7542 to_x: "padding_left_top";
7543 to_y: "padding_right_bottom";
7546 aspect_preference: VERTICAL;
7549 part { name: "elm.text";
7554 description { state: "default" 0.0;
7558 to_x: "padding_icon_text";
7559 to_y: "padding_left_top";
7563 to: "padding_right_bottom";
7565 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7567 font: "SLP:style=Medium";
7568 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7571 text_class: "slp_medium";
7574 description { state: "visible" 0.0;
7575 inherit: "default" 0.0;
7577 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7579 description { state: "clicked" 0.0;
7580 inherit: "default" 0.0;
7583 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7585 description { state: "disabled" 0.0;
7586 inherit: "default" 0.0;
7587 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7589 description { state: "disabled_visible" 0.0;
7590 inherit: "default" 0.0;
7591 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7593 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7595 description { state: "focused" 0.0;
7596 inherit: "default" 0.0;
7599 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7602 part { name: "over2";
7605 ignore_flags: ON_HOLD;
7606 description { state: "default" 0.0;
7610 part { name: "over3";
7613 description { state: "default" 0.0;
7617 part { name: "clipper";
7619 description { state: "default" 0.0;
7620 color: 255 255 255 255;
7623 part { name: "disabler";
7625 description { state: "default" 0.0;
7629 description { state: "disabled" 0.0;
7630 inherit: "default" 0.0;
7636 program { name: "button_click";
7637 signal: "mouse,down,1";
7639 action: SIGNAL_EMIT "elm,action,press" "";
7640 after: "button_click_anim";
7642 program { name: "button_click_anim";
7643 action: STATE_SET "clicked" 0.0;
7644 target: "button_image";
7645 after: "text_clicked";
7647 program { name: "text_clicked";
7651 get_state(PART:"elm.text", st, 30, vl);
7652 if (!strcmp(st, "visible"))
7653 set_state(PART:"elm.text", "clicked", 0.0);
7656 program { name: "button_unpress";
7657 action: SIGNAL_EMIT "elm,action,unpress" "";
7659 program { name: "button_mouseout_clicked";
7660 signal: "mouse,up,1";
7665 get_state(PART:"elm.swallow.content", st, 30, vl);
7666 if (strcmp(st, "icononly"))
7668 emit("elm,action,default,text,set", "");
7669 set_state(PART:"elm.text", "visible", 0.0);
7671 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7672 set_state(PART:"button_image", "default", 0.0);
7674 after: button_unpress;
7676 program { name: "touch_snd";
7677 signal: "mouse,clicked,1";
7679 action: PLAY_SAMPLE "touch_sound" 1.0;
7680 after: button_unclick3;
7682 program { name: "button_unclick3";
7683 action: SIGNAL_EMIT "elm,action,click" "";
7685 program { name: "text_show";
7686 signal: "elm,state,text,visible";
7691 get_state(PART:"elm.swallow.content", st, 30, vl);
7692 if (!strcmp(st, "icononly"))
7694 set_state(PART:"elm.swallow.content", "visible", 0.0);
7695 set_state(PART:"padding_icon_text", "visible", 0.0);
7697 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7698 set_state(PART:"elm.text", "visible", 0.0);
7700 set_state(PART:"elm.text", "disabled_visible", 0.0);
7703 program { name: "text_hide";
7704 signal: "elm,state,text,hidden";
7709 get_state(PART:"elm.swallow.content", st, 30, vl);
7710 if (!strcmp(st, "visible"))
7712 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7713 set_state(PART:"padding_icon_text", "icononly", 0.0);
7715 set_state(PART:"elm.text", "default", 0.0);
7718 program { name: "icon_show";
7719 signal: "elm,state,icon,visible";
7724 get_state(PART:"elm.text", st, 30, vl);
7725 if (!strcmp(st, "visible"))
7727 set_state(PART:"elm.swallow.content", "visible", 0.0);
7728 set_state(PART:"padding_icon_text", "visible", 0.0);
7732 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7733 set_state(PART:"padding_icon_text", "icononly", 0.0);
7737 program { name: "icon_hide";
7738 signal: "elm,state,icon,hidden";
7740 action: STATE_SET "default" 0.0;
7741 target: "elm.swallow.content";
7742 target: "padding_icon_text";
7744 program { name: "disable";
7745 signal: "elm,state,disabled";
7747 action: STATE_SET "disabled" 0.0;
7748 target: "button_image";
7750 after: "disable_text";
7752 program { name: "disable_text";
7756 get_state(PART:"elm.text", st, 30, vl);
7757 if (!strcmp(st, "visible"))
7758 set_state(PART:"elm.text", "disabled_visible", 0.0);
7760 set_state(PART:"elm.text", "disabled", 0.0);
7761 set_int(button_state, BUTTON_STATE_DISABLED);
7764 program { name: "enable";
7765 signal: "elm,state,enabled";
7767 action: STATE_SET "default" 0.0;
7768 target: "button_image";
7770 after: "enable_text";
7772 program { name: "enable_text";
7776 get_state(PART:"elm.text", st, 30, vl);
7777 if (!strcmp(st, "disabled_visible"))
7778 set_state(PART:"elm.text", "visible", 0.0);
7780 set_state(PART:"elm.text", "default", 0.0);
7781 set_int(button_state, BUTTON_STATE_ENABLED);
7784 program { name: "focused";
7785 //signal: "elm,action,focus";
7787 action: STATE_SET "focused" 0.0;
7788 target: "button_image";
7791 program { name: "unfocused";
7792 //signal: "elm,action,unfocus";
7794 action: STATE_SET "default" 0.0;
7795 target: "button_image";
7796 after: "unfocus_text";
7798 program { name: "unfocus_text";
7799 action: STATE_SET "visible" 0.0;
7805 ///////////////////////////////////////////////////////////////////////////////////////
7806 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7807 group { name: "elm/button/base/contact/"style_name; \
7809 image: "00_contacts_circle_bg.png" COMP; \
7810 image: image_normal COMP; \
7811 image: image_press COMP; \
7814 part { name: "button_image"; \
7816 description { state: "default" 0.0; \
7817 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7818 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7819 image.normal: "00_contacts_circle_bg.png"; \
7820 color: 255 255 255 255; \
7823 state: "clicked" 0.0; \
7824 inherit: "default" 0.0; \
7825 image.normal: "00_contacts_circle_bg.png"; \
7828 state: "disabled" 0.0; \
7829 inherit: "default" 0.0; \
7830 color: 255 255 255 128; \
7833 part { name: "button_center_part"; \
7835 description { state: "default" 0.0; \
7836 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7837 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7838 image.normal: image_normal; \
7839 color: 255 255 255 255; \
7842 state: "clicked" 0.0; \
7843 inherit: "default" 0.0; \
7844 image.normal: image_press; \
7847 state: "disabled" 0.0; \
7848 inherit: "default" 0.0; \
7849 color: 255 255 255 128; \
7852 part { name: "over1"; \
7854 ignore_flags: ON_HOLD; \
7855 description { state: "default" 0.0; \
7859 part { name: "over2"; \
7861 description { state: "default" 0.0; \
7865 part { name: "disabler"; \
7867 description { state: "default" 0.0; \
7871 description { state: "disabled" 0.0; \
7872 inherit: "default" 0.0; \
7878 program { name: "button_click"; \
7879 signal: "mouse,down,1"; \
7881 action: SIGNAL_EMIT "elm,action,press" ""; \
7882 after: "button_click_anim"; \
7884 program { name: "button_click_anim"; \
7885 action: STATE_SET "clicked" 0.0; \
7886 target: "button_image"; \
7887 target: "button_center_part"; \
7889 program { name: "button_unclick"; \
7890 signal: "mouse,up,1"; \
7892 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7893 after: "button_unclick_anim"; \
7895 program { name: "button_unclick_anim"; \
7896 action: STATE_SET "default" 0.0; \
7897 target: "button_image"; \
7898 target: "button_center_part"; \
7900 program { name: "touch_snd"; \
7901 signal: "mouse,clicked,1"; \
7903 action: PLAY_SAMPLE "touch_sound" 1.0; \
7904 after: button_unclick3; \
7906 program { name: "button_unclick3"; \
7907 action: SIGNAL_EMIT "elm,action,click" ""; \
7909 program { name: "disable"; \
7910 signal: "elm,state,disabled"; \
7912 action: STATE_SET "disabled" 0.0; \
7913 target: "disabler"; \
7914 target: "button_image"; \
7915 target: "button_center_part"; \
7917 program { name: "enable"; \
7918 signal: "elm,state,enabled"; \
7920 action: STATE_SET "default" 0.0; \
7921 target: "disabler"; \
7922 target: "button_image"; \
7923 target: "button_center_part"; \
7928 ///////////////////////////////////////////////////////////////////////////////////////
7929 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7931 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7933 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7935 ///////////////////////////////////////////////////////////////////////////////////////
7936 group { name: "elm/button/base/contact";
7937 alias: "elm/button/base/text_only/contact";
7939 image: "00_contacts_button_bg.png" COMP;
7940 image: "00_contacts_button_bg_press.png" COMP;
7943 public button_state = BUTTON_STATE_ENABLED;
7946 part { name: "button_image";
7948 description { state: "default" 0.0;
7950 to_x: "padding.left";
7954 to_x: "padding.right";
7957 min: BUTTON_CONTACT_BG_MIN_INC;
7959 normal: "00_contacts_button_bg.png";
7960 border: BUTTON_CONTACT_BG_BORDER_INC;
7964 description { state: "clicked" 0.0;
7965 inherit: "default" 0.0;
7966 image.normal: "00_contacts_button_bg_press.png";
7968 description { state: "disabled" 0.0;
7969 inherit: "default" 0.0;
7972 description { state: "focused" 0.0;
7973 inherit: "default" 0.0;
7976 part { name: "padding.left";
7979 description { state: "default" 0.0;
7981 min: BUTTON_CONTACT_PADDING_MIN_INC;
7991 part { name: "padding.right";
7994 description { state: "default" 0.0;
7996 min: BUTTON_CONTACT_PADDING_MIN_INC;
8006 part { name: "elm.text";
8010 description { state: "default" 0.0;
8013 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8015 font: "SLP:style=Medium";
8016 size: BUTTON_CONTACT_FONT_SIZE_INC;
8018 text_class: "slp_medium";
8021 description { state: "visible" 0.0;
8022 inherit: "default" 0.0;
8026 description { state: "clicked" 0.0;
8027 inherit: "default" 0.0;
8030 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8032 description { state: "disabled" 0.0;
8033 inherit: "default" 0.0;
8036 description { state: "disabled_visible" 0.0;
8037 inherit: "default" 0.0;
8038 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8042 description { state: "focused" 0.0;
8043 inherit: "default" 0.0;
8046 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8049 part { name: "over1";
8051 description { state: "default" 0.0;
8052 rel2.relative: 1.0 0.5;
8055 part { name: "over2";
8057 ignore_flags: ON_HOLD;
8058 description { state: "default" 0.0;
8059 rel1.to: "button_image";
8060 rel2.to: "button_image";
8063 part { name: "over3";
8065 description { state: "default" 0.0;
8066 rel1.to: "button_image";
8067 rel2.to: "button_image";
8071 part { name: "disabler";
8073 description { state: "default" 0.0;
8074 rel1.to: "button_image";
8075 rel2.to: "button_image";
8079 description { state: "disabled" 0.0;
8080 inherit: "default" 0.0;
8086 program { name: "button_click";
8087 signal: "mouse,down,1";
8089 action: SIGNAL_EMIT "elm,action,press" "";
8090 after: "button_click_anim";
8092 program { name: "button_click_anim";
8093 action: STATE_SET "clicked" 0.0;
8094 target: "button_image";
8097 program { name: "button_unpress";
8098 action: SIGNAL_EMIT "elm,action,unpress" "";
8100 program { name: "button_mouseout_clicked";
8101 signal: "mouse,up,1";
8106 get_state(PART:"elm.text", st, 30, vl);
8107 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8109 emit("elm,action,default,text,set", "");
8110 set_state(PART:"elm.text", "visible", 0.0);
8112 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8113 set_state(PART:"button_image", "default", 0.0);
8115 after: button_unpress;
8117 program { name: "touch_snd";
8118 signal: "mouse,clicked,1";
8120 action: PLAY_SAMPLE "touch_sound" 1.0;
8121 after: button_unclick3;
8123 program { name: "button_unclick3";
8124 action: SIGNAL_EMIT "elm,action,click" "";
8126 program { name: "text_show";
8127 signal: "elm,state,text,visible";
8130 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8131 set_state(PART:"elm.text", "visible", 0.0);
8133 set_state(PART:"elm.text", "disabled_visible", 0.0);
8136 program { name: "text_hide";
8137 signal: "elm,state,text,hidden";
8139 action: STATE_SET "default" 0.0;
8142 program { name: "disable";
8143 signal: "elm,state,disabled";
8145 action: STATE_SET "disabled" 0.0;
8146 target: "button_image";
8148 after: "disable_text";
8150 program { name: "disable_text";
8154 get_state(PART:"elm.text", st, 30, vl);
8155 if (!strcmp(st, "visible"))
8156 set_state(PART:"elm.text", "disabled_visible", 0.0);
8158 set_state(PART:"elm.text", "disabled", 0.0);
8159 set_int(button_state, BUTTON_STATE_DISABLED);
8162 program { name: "enable";
8163 signal: "elm,state,enabled";
8165 action: STATE_SET "default" 0.0;
8166 target: "button_image";
8168 after: "enable_text";
8170 program { name: "enable_text";
8174 get_state(PART:"elm.text", st, 30, vl);
8175 if (!strcmp(st, "disabled_visible"))
8176 set_state(PART:"elm.text", "visible", 0.0);
8178 set_state(PART:"elm.text", "default", 0.0);
8179 set_int(button_state, BUTTON_STATE_ENABLED);
8182 program { name: "focused";
8183 //signal: "elm,action,focus";
8185 action: STATE_SET "focused" 0.0;
8186 target: "button_image";
8189 program { name: "unfocused";
8190 //signal: "elm,action,unfocus";
8192 action: STATE_SET "default" 0.0;
8193 target: "button_image";
8194 action: STATE_SET "visible" 0.0;
8200 ///////////////////////////////////////////////////////////////////////////////////////
8201 group { name: "elm/button/base/naviframe/back_btn/default";
8202 alias: "elm/button/base/naviframe/prev_btn/default";
8203 alias: "elm/button/base/naviframe/end_btn/default";
8205 image: "00_winset_Back_btn_normal.png" COMP;
8206 image: "00_winset_Back_btn_press.png" COMP;
8207 image: "00_winset_Back_btn_normal_focus.png" COMP;
8208 image: "00_winset_Back.png" COMP;
8211 public button_state = BUTTON_STATE_ENABLED;
8214 part { name: "button_image";
8216 description { state: "default" 0.0;
8217 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8218 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8220 normal: "00_winset_Back_btn_normal.png";
8221 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8225 description { state: "clicked" 0.0;
8226 inherit: "default" 0.0;
8227 image.normal: "00_winset_Back_btn_press.png";
8229 description { state: "disabled" 0.0;
8230 inherit: "default" 0.0;
8232 description { state: "focused" 0.0;
8233 inherit: "default" 0.0;
8234 image.normal: "00_winset_Back_btn_normal_focus.png";
8237 part { name: "back_button";
8240 description { state: "default" 0.0;
8241 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8242 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8243 rel1.to: "button_image";
8244 rel2.to: "button_image";
8245 image.normal: "00_winset_Back.png";
8247 description { state: "clicked" 0.0;
8248 inherit: "default" 0.0;
8250 description { state: "disabled" 0.0;
8251 inherit: "default" 0.0;
8252 color: 127 127 127 127;
8255 part { name: "over2";
8258 ignore_flags: ON_HOLD;
8259 description { state: "default" 0.0;
8263 part { name: "over3";
8266 description { state: "default" 0.0;
8270 part { name: "disabler";
8272 description { state: "default" 0.0;
8276 description { state: "disabled" 0.0;
8277 inherit: "default" 0.0;
8283 program { name: "button_click";
8284 signal: "mouse,down,1";
8286 action: SIGNAL_EMIT "elm,action,press" "";
8287 after: "button_click_anim";
8289 program { name: "button_click_anim";
8290 action: STATE_SET "clicked" 0.0;
8291 target: "button_image";
8293 program { name: "button_unpress";
8294 action: SIGNAL_EMIT "elm,action,unpress" "";
8296 program { name: "button_mouseout_clicked";
8297 signal: "mouse,up,1";
8300 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8301 set_state(PART:"button_image", "default", 0.0);
8303 after: button_unpress;
8305 program { name: "touch_snd";
8306 signal: "mouse,clicked,1";
8308 action: PLAY_SAMPLE "touch_sound" 1.0;
8309 after: button_unclick3;
8311 program { name: "button_unclick3";
8312 action: SIGNAL_EMIT "elm,action,click" "";
8314 program { name: "disable";
8315 signal: "elm,state,disabled";
8317 action: STATE_SET "disabled" 0.0;
8318 target: "button_image";
8320 target: "back_button";
8321 after: "disable_button";
8323 program { name: "disable_button";
8325 set_int(button_state, BUTTON_STATE_DISABLED);
8328 program { name: "enable";
8329 signal: "elm,state,enabled";
8331 action: STATE_SET "default" 0.0;
8332 target: "button_image";
8334 target: "back_button";
8335 after: "enable_button";
8337 program { name: "enable_button";
8339 set_int(button_state, BUTTON_STATE_ENABLED);
8342 program { name: "focused";
8343 //signal: "elm,action,focus";
8345 action: STATE_SET "focused" 0.0;
8346 target: "button_image";
8348 program { name: "unfocused";
8349 //signal: "elm,action,unfocus";
8351 action: STATE_SET "default" 0.0;
8352 target: "button_image";
8357 ///////////////////////////////////////////////////////////////////////////////////////
8358 group { name: "elm/button/base/picker/prev/icon/default";
8360 image: "00_picker_btn_normal.png" COMP;
8361 image: "00_picker_btn_press.png" COMP;
8362 image: "00_picker_btn_normal_focus.png" COMP;
8363 image: "00_picker_arrow_left.png" COMP;
8364 image: "00_picker_arrow_left_press.png" COMP;
8367 public button_state = BUTTON_STATE_ENABLED;
8370 part { name: "button_image";
8372 description { state: "default" 0.0;
8373 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8374 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8376 normal: "00_picker_btn_normal.png";
8377 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8381 description { state: "clicked" 0.0;
8382 inherit: "default" 0.0;
8383 image.normal: "00_picker_btn_press.png";
8385 description { state: "disabled" 0.0;
8386 inherit: "default" 0.0;
8388 description { state: "focused" 0.0;
8389 inherit: "default" 0.0;
8390 image.normal: "00_picker_btn_normal_focus.png";
8393 part { name: "padding_left_top";
8397 description { state: "default" 0.0;
8399 rel2.relative: 0.0 0.0;
8400 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8405 part { name: "padding_right_bottom";
8409 description { state: "default" 0.0;
8411 rel1.relative: 1.0 1.0;
8412 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8417 part { name: "left_arrow";
8420 description { state: "default" 0.0;
8421 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8422 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8425 to: "padding_left_top";
8429 to: "padding_right_bottom";
8431 image.normal: "00_picker_arrow_left.png";
8433 description { state: "clicked" 0.0;
8434 inherit: "default" 0.0;
8435 image.normal: "00_picker_arrow_left_press.png";
8438 part { name: "over2";
8441 ignore_flags: ON_HOLD;
8442 description { state: "default" 0.0;
8446 part { name: "over3";
8449 description { state: "default" 0.0;
8453 part { name: "disabler";
8455 description { state: "default" 0.0;
8459 description { state: "disabled" 0.0;
8460 inherit: "default" 0.0;
8466 program { name: "button_click";
8467 signal: "mouse,down,1";
8469 action: SIGNAL_EMIT "elm,action,press" "";
8470 after: "button_click_anim";
8472 program { name: "button_click_anim";
8473 action: STATE_SET "clicked" 0.0;
8474 target: "button_image";
8476 program { name: "button_unpress";
8477 action: SIGNAL_EMIT "elm,action,unpress" "";
8479 program { name: "button_mouseout_clicked";
8480 signal: "mouse,up,1";
8483 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8484 set_state(PART:"button_image", "default", 0.0);
8486 after: button_unpress;
8488 program { name: "touch_snd";
8489 signal: "mouse,clicked,1";
8491 action: PLAY_SAMPLE "touch_sound" 1.0;
8492 after: button_unclick3;
8494 program { name: "button_unclick3";
8495 action: SIGNAL_EMIT "elm,action,click" "";
8497 program { name: "disable";
8498 signal: "elm,state,disabled";
8500 action: STATE_SET "disabled" 0.0;
8501 target: "button_image";
8503 after: "disable_button";
8505 program { name: "disable_button";
8507 set_int(button_state, BUTTON_STATE_DISABLED);
8510 program { name: "enable";
8511 signal: "elm,state,enabled";
8513 action: STATE_SET "default" 0.0;
8514 target: "button_image";
8516 after: "enable_button";
8518 program { name: "enable_button";
8520 set_int(button_state, BUTTON_STATE_ENABLED);
8523 program { name: "focused";
8524 //signal: "elm,action,focus";
8526 action: STATE_SET "focused" 0.0;
8527 target: "button_image";
8529 program { name: "unfocused";
8530 //signal: "elm,action,unfocus";
8532 action: STATE_SET "default" 0.0;
8533 target: "button_image";
8538 ///////////////////////////////////////////////////////////////////////////////////////
8539 group { name: "elm/button/base/picker/next/icon/default";
8541 image: "00_picker_btn_normal.png" COMP;
8542 image: "00_picker_btn_press.png" COMP;
8543 image: "00_picker_btn_normal_focus.png" COMP;
8544 image: "00_picker_arrow_right.png" COMP;
8545 image: "00_picker_arrow_right_press.png" COMP;
8548 public button_state = BUTTON_STATE_ENABLED;
8551 part { name: "button_image";
8553 description { state: "default" 0.0;
8554 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8555 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8557 normal: "00_picker_btn_normal.png";
8558 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8562 description { state: "clicked" 0.0;
8563 inherit: "default" 0.0;
8564 image.normal: "00_picker_btn_press.png";
8566 description { state: "disabled" 0.0;
8567 inherit: "default" 0.0;
8569 description { state: "focused" 0.0;
8570 inherit: "default" 0.0;
8571 image.normal: "00_picker_btn_normal_focus.png";
8574 part { name: "padding_left_top";
8578 description { state: "default" 0.0;
8580 rel2.relative: 0.0 0.0;
8581 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8586 part { name: "padding_right_bottom";
8590 description { state: "default" 0.0;
8592 rel1.relative: 1.0 1.0;
8593 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8598 part { name: "right_arrow";
8601 description { state: "default" 0.0;
8602 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8603 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8606 to: "padding_left_top";
8610 to: "padding_right_bottom";
8612 image.normal: "00_picker_arrow_right.png";
8614 description { state: "clicked" 0.0;
8615 inherit: "default" 0.0;
8616 image.normal: "00_picker_arrow_right_press.png";
8619 part { name: "over2";
8622 ignore_flags: ON_HOLD;
8623 description { state: "default" 0.0;
8627 part { name: "over3";
8630 description { state: "default" 0.0;
8634 part { name: "disabler";
8636 description { state: "default" 0.0;
8640 description { state: "disabled" 0.0;
8641 inherit: "default" 0.0;
8647 program { name: "button_click";
8648 signal: "mouse,down,1";
8650 action: SIGNAL_EMIT "elm,action,press" "";
8651 after: "button_click_anim";
8653 program { name: "button_click_anim";
8654 action: STATE_SET "clicked" 0.0;
8655 target: "button_image";
8657 program { name: "button_unpress";
8658 action: SIGNAL_EMIT "elm,action,unpress" "";
8660 program { name: "button_mouseout_clicked";
8661 signal: "mouse,up,1";
8664 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8665 set_state(PART:"button_image", "default", 0.0);
8667 after: button_unpress;
8669 program { name: "touch_snd";
8670 signal: "mouse,clicked,1";
8672 action: PLAY_SAMPLE "touch_sound" 1.0;
8673 after: button_unclick3;
8675 program { name: "button_unclick3";
8676 action: SIGNAL_EMIT "elm,action,click" "";
8678 program { name: "disable";
8679 signal: "elm,state,disabled";
8681 action: STATE_SET "disabled" 0.0;
8682 target: "button_image";
8684 after: "disable_button";
8686 program { name: "disable_button";
8688 set_int(button_state, BUTTON_STATE_DISABLED);
8691 program { name: "enable";
8692 signal: "elm,state,enabled";
8694 action: STATE_SET "default" 0.0;
8695 target: "button_image";
8697 after: "enable_button";
8699 program { name: "enable_button";
8701 set_int(button_state, BUTTON_STATE_ENABLED);
8704 program { name: "focused";
8705 //signal: "elm,action,focus";
8707 action: STATE_SET "focused" 0.0;
8708 target: "button_image";
8710 program { name: "unfocused";
8711 //signal: "elm,action,unfocus";
8713 action: STATE_SET "default" 0.0;
8714 target: "button_image";
8719 ///////////////////////////////////////////////////////////////////////////////////////
8720 group { name: "elm/button/base/naviframe_control/default";
8721 alias: "elm/button/base/naviframe_control/center";
8723 public button_state = BUTTON_STATE_ENABLED;
8726 image: "00_Option_header_bt.png" COMP;
8727 image: "00_Option_header_bt_dim.png" COMP;
8728 image: "00_Option_header_bt_press.png" COMP;
8729 image: "00_Option_header_bt_focus.png" COMP;
8732 part { name: "button_image";
8734 description { state: "default" 0.0;
8735 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8740 normal: "00_Option_header_bt.png";
8741 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8743 color: 255 255 255 255;
8745 description { state: "disabled" 0.0;
8746 inherit: "default" 0.0;
8747 image.normal: "00_Option_header_bt_dim.png";
8749 description { state: "clicked" 0.0;
8750 inherit: "default" 0.0;
8751 image.normal: "00_Option_header_bt_press.png";
8753 description { state: "focused" 0.0;
8754 inherit: "default" 0.0;
8755 image.normal: "00_Option_header_bt_focus.png";
8758 part { name: "padding_left_top";
8762 description { state: "default" 0.0;
8764 rel2.relative: 0.0 0.0;
8765 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8770 part { name: "padding_right_bottom";
8774 description { state: "default" 0.0;
8776 rel1.relative: 1.0 1.0;
8777 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8782 part { name: "icon_rect";
8786 description { state: "default" 0.0;
8791 to: "padding_left_top";
8795 to_x: "padding_left_top";
8796 to_y: "padding_right_bottom";
8801 description { state: "visible" 0.0;
8802 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8806 to: "padding_left_top";
8810 to_x: "padding_left_top";
8811 to_y: "padding_right_bottom";
8816 description { state: "icononly" 0.0;
8817 inherit: "default" 0.0;
8820 part { name: "padding_after_icon";
8824 description { state: "default" 0.0; //when only icon or no icon is there
8830 rel2.to: "icon_rect";
8835 description { state: "visible" 0.0;
8841 rel2.to: "icon_rect";
8843 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8846 description { state: "icononly" 0.0;
8847 inherit: "default" 0.0;
8850 part { name: "padding_before_text";
8854 description { state: "default" 0.0; //when only icon or no icon is there
8859 to_y: "padding_left_top";
8864 to_y: "padding_right_bottom";
8867 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8871 part { name: "elm.swallow.content";
8875 description { state: "default" 0.0;
8880 to: "padding_left_top";
8884 to_x: "padding_left_top";
8885 to_y: "padding_right_bottom";
8889 description { state: "visible" 0.0;
8891 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8892 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8896 to_x: "padding_before_text";
8897 to_y: "padding_left_top";
8901 to_x: "padding_before_text";
8902 to_y: "padding_right_bottom";
8905 aspect_preference: VERTICAL;
8907 description { state: "icononly" 0.0;
8908 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8909 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8912 to: "padding_left_top";
8916 to: "padding_right_bottom";
8919 aspect_preference: VERTICAL;
8922 part { name: "elm.text";
8927 description { state: "default" 0.0;
8931 to_x: "padding_after_icon";
8932 to_y: "padding_left_top";
8936 to: "padding_right_bottom";
8938 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8940 font: "SLP:style=Medium";
8941 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8944 text_class: "slp_medium";
8947 description { state: "visible" 0.0;
8948 inherit: "default" 0.0;
8951 description { state: "clicked" 0.0;
8952 inherit: "default" 0.0;
8956 description { state: "focused" 0.0;
8957 inherit: "default" 0.0;
8960 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8963 part { name: "over2";
8966 ignore_flags: ON_HOLD;
8967 description { state: "default" 0.0;
8971 part { name: "over3";
8974 description { state: "default" 0.0;
8978 part { name: "clipper";
8980 description { state: "default" 0.0;
8981 color: 255 255 255 255;
8983 description { state: "disabled" 0.0;
8984 color: 255 255 255 127;
8987 part { name: "disabler";
8989 description { state: "default" 0.0;
8993 description { state: "disabled" 0.0;
8994 inherit: "default" 0.0;
9000 program { name: "button_click";
9001 signal: "mouse,down,1";
9003 action: SIGNAL_EMIT "elm,action,press" "";
9004 after: "button_click_anim";
9006 program { name: "button_click_anim";
9007 action: STATE_SET "clicked" 0.0;
9008 target: "button_image";
9009 after: "text_clicked";
9011 program { name: "text_clicked";
9015 get_state(PART:"elm.text", st, 30, vl);
9016 if (!strcmp(st, "visible"))
9017 set_state(PART:"elm.text", "clicked", 0.0);
9020 program { name: "button_unpress";
9021 action: SIGNAL_EMIT "elm,action,unpress" "";
9023 program { name: "button_mouseout_clicked";
9024 signal: "mouse,up,1";
9029 get_state(PART:"elm.swallow.content", st, 30, vl);
9030 if (strcmp(st, "icononly"))
9032 emit("elm,action,default,text,set", "");
9033 set_state(PART:"elm.text", "visible", 0.0);
9035 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9036 set_state(PART:"button_image", "default", 0.0);
9038 after: button_unpress;
9040 program { name: "touch_snd";
9041 signal: "mouse,clicked,1";
9043 action: PLAY_SAMPLE "touch_sound" 1.0;
9044 after: button_unclick3;
9046 program { name: "button_unclick3";
9047 action: SIGNAL_EMIT "elm,action,click" "";
9049 program { name: "text_show";
9050 signal: "elm,state,text,visible";
9055 get_state(PART:"elm.swallow.content", st, 30, vl);
9056 if (!strcmp(st, "icononly"))
9058 set_state(PART:"elm.swallow.content", "visible", 0.0);
9059 set_state(PART:"icon_rect", "visible", 0.0);
9060 set_state(PART:"padding_after_icon", "visible", 0.0);
9062 set_state(PART:"elm.text", "visible", 0.0);
9065 program { name: "text_hide";
9066 signal: "elm,state,text,hidden";
9071 get_state(PART:"elm.swallow.content", st, 30, vl);
9072 if (!strcmp(st, "visible"))
9074 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9075 set_state(PART:"icon_rect", "icononly", 0.0);
9076 set_state(PART:"padding_after_icon", "icononly", 0.0);
9078 set_state(PART:"elm.text", "default", 0.0);
9081 program { name: "icon_show";
9082 signal: "elm,state,icon,visible";
9087 get_state(PART:"elm.text", st, 30, vl);
9088 if (!strcmp(st, "visible"))
9090 set_state(PART:"elm.swallow.content", "visible", 0.0);
9091 set_state(PART:"icon_rect", "visible", 0.0);
9092 set_state(PART:"padding_after_icon", "visible", 0.0);
9096 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9097 set_state(PART:"icon_rect", "icononly", 0.0);
9098 set_state(PART:"padding_after_icon", "icononly", 0.0);
9102 program { name: "icon_hide";
9103 signal: "elm,state,icon,hidden";
9105 action: STATE_SET "default" 0.0;
9106 target: "elm.swallow.content";
9107 target: "icon_rect";
9108 target: "padding_after_icon";
9110 program { name: "disable";
9111 signal: "elm,state,disabled";
9113 action: STATE_SET "disabled" 0.0;
9114 target: "button_image";
9117 after: "disable_text";
9119 program { name: "disable_text";
9123 set_int(button_state, BUTTON_STATE_DISABLED);
9124 get_state(PART:"elm.text", st, 30, vl);
9125 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9126 set_state(PART:"elm.text", "visible", 0.0);
9129 program { name: "enable";
9130 signal: "elm,state,enabled";
9132 action: STATE_SET "default" 0.0;
9133 target: "button_image";
9136 after: "enable_text";
9138 program { name: "enable_text";
9142 set_int(button_state, BUTTON_STATE_ENABLED);
9143 get_state(PART:"elm.text", st, 30, vl);
9144 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9145 set_state(PART:"elm.text", "visible", 0.0);
9148 program { name: "focused";
9149 //signal: "elm,action,focus";
9151 action: STATE_SET "focused" 0.0;
9152 target: "button_image";
9155 program { name: "unfocused";
9156 //signal: "elm,action,unfocus";
9158 action: STATE_SET "default" 0.0;
9159 target: "button_image";
9160 after: "unfocus_text";
9162 program { name: "unfocus_text";
9163 action: STATE_SET "visible" 0.0;
9169 ///////////////////////////////////////////////////////////////////////////////////////
9170 group { name: "elm/button/base/naviframe_control/multiline";
9172 public button_state = BUTTON_STATE_ENABLED;
9175 image: "00_Option_header_bt.png" COMP;
9176 image: "00_Option_header_bt_dim.png" COMP;
9177 image: "00_Option_header_bt_press.png" COMP;
9178 image: "00_Option_header_bt_focus.png" COMP;
9181 style { name: "btn_multiline_naviframe_controlbar_style";
9182 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9189 part { name: "button_image";
9191 description { state: "default" 0.0;
9192 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9196 normal: "00_Option_header_bt.png";
9197 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9199 color: 255 255 255 255;
9201 description { state: "disabled" 0.0;
9202 inherit: "default" 0.0;
9203 image.normal: "00_Option_header_bt_dim.png";
9205 description { state: "clicked" 0.0;
9206 inherit: "default" 0.0;
9207 image.normal: "00_Option_header_bt_press.png";
9209 description { state: "focused" 0.0;
9210 inherit: "default" 0.0;
9211 image.normal: "00_Option_header_bt_focus.png";
9214 part { name: "padding_left_top";
9218 description { state: "default" 0.0;
9220 rel2.relative: 0.0 0.0;
9221 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9226 part { name: "padding_right_bottom";
9230 description { state: "default" 0.0;
9232 rel1.relative: 1.0 1.0;
9233 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9238 part { name: "icon_rect";
9242 description { state: "default" 0.0;
9248 to_x: "elm.swallow.content";
9249 to_y: "padding_left_top";
9253 to_x: "elm.swallow.content";
9254 to_y: "padding_right_bottom";
9259 part { name: "padding_icon_text";
9263 description { state: "default" 0.0; //when only icon or no icon is there
9277 description { state: "visible" 0.0;
9278 inherit: "default" 0.0;
9279 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9289 description { state: "icononly" 0.0;
9290 inherit: "default" 0.0;
9293 part { name: "elm.swallow.content";
9297 description { state: "default" 0.0;
9302 to: "padding_left_top";
9306 to_x: "padding_left_top";
9307 to_y: "padding_right_bottom";
9311 description { state: "visible" 0.0;
9313 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9314 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9318 to: "padding_left_top";
9322 to_x: "padding_left_top";
9323 to_y: "padding_right_bottom";
9326 description { state: "icononly" 0.0;
9327 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9328 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9331 to: "padding_left_top";
9335 to: "padding_right_bottom";
9339 part { name: "elm.text";
9344 description { state: "default" 0.0;
9348 to_x: "padding_icon_text";
9349 to_y: "padding_left_top";
9353 to: "padding_right_bottom";
9355 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9357 style: "btn_multiline_naviframe_controlbar_style";
9362 description { state: "visible" 0.0;
9363 inherit: "default" 0.0;
9367 description { state: "clicked" 0.0;
9368 inherit: "default" 0.0;
9372 description { state: "focused" 0.0;
9373 inherit: "default" 0.0;
9376 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9379 part { name: "over2";
9382 ignore_flags: ON_HOLD;
9383 description { state: "default" 0.0;
9387 part { name: "over3";
9390 description { state: "default" 0.0;
9394 part { name: "clipper";
9396 description { state: "default" 0.0;
9397 color: 255 255 255 255;
9399 description { state: "disabled" 0.0;
9400 color: 255 255 255 127;
9403 part { name: "disabler";
9405 description { state: "default" 0.0;
9409 description { state: "disabled" 0.0;
9410 inherit: "default" 0.0;
9416 program { name: "button_click";
9417 signal: "mouse,down,1";
9419 action: SIGNAL_EMIT "elm,action,press" "";
9420 after: "button_click_anim";
9422 program { name: "button_click_anim";
9423 action: STATE_SET "clicked" 0.0;
9424 target: "button_image";
9425 after: "text_clicked";
9427 program { name: "text_clicked";
9431 get_state(PART:"elm.text", st, 30, vl);
9432 if (!strcmp(st, "visible"))
9433 set_state(PART:"elm.text", "clicked", 0.0);
9436 program { name: "button_unpress";
9437 action: SIGNAL_EMIT "elm,action,unpress" "";
9439 program { name: "button_mouseout_clicked";
9440 signal: "mouse,up,1";
9445 get_state(PART:"elm.swallow.content", st, 30, vl);
9446 if (strcmp(st, "icononly"))
9448 emit("elm,action,default,text,set", "");
9449 set_state(PART:"elm.text", "visible", 0.0);
9451 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9452 set_state(PART:"button_image", "default", 0.0);
9454 after: button_unpress;
9456 program { name: "touch_snd";
9457 signal: "mouse,clicked,1";
9459 action: PLAY_SAMPLE "touch_sound" 1.0;
9460 after: button_unclick3;
9462 program { name: "button_unclick3";
9463 action: SIGNAL_EMIT "elm,action,click" "";
9465 program { name: "text_show";
9466 signal: "elm,state,text,visible";
9471 get_state(PART:"elm.swallow.content", st, 30, vl);
9472 if (!strcmp(st, "icononly"))
9474 set_state(PART:"elm.swallow.content", "visible", 0.0);
9475 set_state(PART:"padding_icon_text", "visible", 0.0);
9477 set_state(PART:"elm.text", "visible", 0.0);
9480 program { name: "text_hide";
9481 signal: "elm,state,text,hidden";
9486 get_state(PART:"elm.swallow.content", st, 30, vl);
9487 if (!strcmp(st, "visible"))
9489 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9490 set_state(PART:"padding_icon_text", "icononly", 0.0);
9492 set_state(PART:"elm.text", "default", 0.0);
9495 program { name: "icon_show";
9496 signal: "elm,state,icon,visible";
9501 get_state(PART:"elm.text", st, 30, vl);
9502 if (!strcmp(st, "visible"))
9504 set_state(PART:"elm.swallow.content", "visible", 0.0);
9505 set_state(PART:"padding_icon_text", "visible", 0.0);
9509 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9510 set_state(PART:"padding_icon_text", "icononly", 0.0);
9514 program { name: "icon_hide";
9515 signal: "elm,state,icon,hidden";
9517 action: STATE_SET "default" 0.0;
9518 target: "elm.swallow.content";
9519 target: "padding_icon_text";
9521 program { name: "disable";
9522 signal: "elm,state,disabled";
9524 action: STATE_SET "disabled" 0.0;
9525 target: "button_image";
9528 after: "disable_text";
9530 program { name: "disable_text";
9534 set_int(button_state, BUTTON_STATE_DISABLED);
9535 get_state(PART:"elm.text", st, 30, vl);
9536 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9537 set_state(PART:"elm.text", "visible", 0.0);
9540 program { name: "enable";
9541 signal: "elm,state,enabled";
9543 action: STATE_SET "default" 0.0;
9544 target: "button_image";
9547 after: "enable_text";
9549 program { name: "enable_text";
9553 set_int(button_state, BUTTON_STATE_ENABLED);
9554 get_state(PART:"elm.text", st, 30, vl);
9555 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9556 set_state(PART:"elm.text", "visible", 0.0);
9559 program { name: "focused";
9560 //signal: "elm,action,focus";
9562 action: STATE_SET "focused" 0.0;
9563 target: "button_image";
9566 program { name: "unfocused";
9567 //signal: "elm,action,unfocus";
9569 action: STATE_SET "default" 0.0;
9570 target: "button_image";
9571 after: "unfocus_text";
9573 program { name: "unfocus_text";
9574 action: STATE_SET "visible" 0.0;
9580 //////////////////////////////////////////////////////////////
9581 group { name: "elm/button/base/naviframe/title/default";
9583 public button_state = BUTTON_STATE_ENABLED;
9586 image: "00_title_btn_bg_press.png" COMP;
9589 style { name: "btn_naviframe_style";
9590 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";
9597 part { name: "button_image";
9599 description { state: "default" 0.0;
9600 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9601 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9604 description { state: "clicked" 0.0;
9605 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
9606 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
9608 normal: "00_title_btn_bg_press.png";
9609 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
9613 description { state: "disabled" 0.0;
9614 inherit: "default" 0.0;
9616 description { state: "focused" 0.0;
9617 inherit: "default" 0.0;
9620 part { name: "padding_left_top";
9624 description { state: "default" 0.0;
9626 rel2.relative: 0.0 0.0;
9627 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9632 part { name: "padding_right_bottom";
9636 description { state: "default" 0.0;
9638 rel1.relative: 1.0 1.0;
9639 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9644 part { name: "icon_rect";
9648 description { state: "default" 0.0;
9654 to: "padding_left_top";
9658 to_x: "padding_left_top";
9659 to_y: "padding_right_bottom";
9663 description { state: "visible" 0.0;
9665 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9666 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9670 to: "padding_left_top";
9674 to_x: "padding_left_top";
9675 to_y: "padding_right_bottom";
9679 description { state: "icononly" 0.0;
9680 inherit: "default" 0.0;
9683 part { name: "padding_after_icon";
9687 description { state: "default" 0.0; //when only icon or no icon is there
9693 rel2.to: "icon_rect";
9698 description { state: "visible" 0.0;
9705 rel2.to: "icon_rect";
9707 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9709 description { state: "icononly" 0.0;
9710 inherit: "default" 0.0;
9713 part { name: "padding_before_text";
9717 description { state: "default" 0.0; //when only icon or no icon is there
9722 to_y: "padding_left_top";
9727 to_y: "padding_right_bottom";
9730 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9734 part { name: "elm.swallow.content";
9738 description { state: "default" 0.0;
9743 to: "padding_left_top";
9747 to_x: "padding_left_top";
9748 to_y: "padding_right_bottom";
9752 description { state: "visible" 0.0;
9754 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9755 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9759 to_x: "padding_before_text";
9760 to_y: "padding_left_top";
9764 to_x: "padding_before_text";
9765 to_y: "padding_right_bottom";
9768 description { state: "icononly" 0.0;
9769 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9770 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9773 part { name: "elm.text";
9778 description { state: "default" 0.0;
9782 to_x: "padding_after_icon";
9783 to_y: "padding_left_top";
9787 to: "padding_right_bottom";
9789 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
9791 style: "btn_naviframe_style";
9796 description { state: "visible" 0.0;
9797 inherit: "default" 0.0;
9800 description { state: "clicked" 0.0;
9801 inherit: "default" 0.0;
9803 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
9805 description { state: "disabled" 0.0;
9806 inherit: "default" 0.0;
9809 description { state: "disabled_visible" 0.0;
9810 inherit: "default" 0.0;
9811 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
9814 description { state: "focused" 0.0;
9815 inherit: "default" 0.0;
9817 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
9820 part { name: "over2";
9823 ignore_flags: ON_HOLD;
9824 description { state: "default" 0.0;
9828 part { name: "over3";
9831 description { state: "default" 0.0;
9835 part { name: "clipper";
9837 description { state: "default" 0.0;
9838 color: 255 255 255 255;
9841 part { name: "disabler";
9843 description { state: "default" 0.0;
9847 description { state: "disabled" 0.0;
9848 inherit: "default" 0.0;
9854 program { name: "button_click";
9855 signal: "mouse,down,1";
9857 action: SIGNAL_EMIT "elm,action,press" "";
9858 after: "button_click_anim";
9860 program { name: "button_click_anim";
9861 action: STATE_SET "clicked" 0.0;
9862 target: "button_image";
9863 after: "text_clicked";
9865 program { name: "text_clicked";
9869 get_state(PART:"elm.text", st, 30, vl);
9870 if (!strcmp(st, "visible"))
9871 set_state(PART:"elm.text", "clicked", 0.0);
9874 program { name: "button_unpress";
9875 action: SIGNAL_EMIT "elm,action,unpress" "";
9877 program { name: "button_mouseout_clicked";
9878 signal: "mouse,up,1";
9883 get_state(PART:"elm.swallow.content", st, 30, vl);
9884 if (strcmp(st, "icononly"))
9886 emit("elm,action,default,text,set", "");
9887 set_state(PART:"elm.text", "visible", 0.0);
9889 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9890 set_state(PART:"button_image", "default", 0.0);
9892 after: button_unpress;
9894 program { name: "touch_snd";
9895 signal: "mouse,clicked,1";
9897 action: PLAY_SAMPLE "touch_sound" 1.0;
9898 after: button_unclick3;
9900 program { name: "button_unclick3";
9901 action: SIGNAL_EMIT "elm,action,click" "";
9903 program { name: "text_show";
9904 signal: "elm,state,text,visible";
9909 get_state(PART:"elm.swallow.content", st, 30, vl);
9910 if (!strcmp(st, "icononly"))
9912 set_state(PART:"elm.swallow.content", "visible", 0.0);
9913 set_state(PART:"icon_rect", "visible", 0.0);
9914 set_state(PART:"padding_after_icon", "visible", 0.0);
9916 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9917 set_state(PART:"elm.text", "visible", 0.0);
9919 set_state(PART:"elm.text", "disabled_visible", 0.0);
9922 program { name: "text_hide";
9923 signal: "elm,state,text,hidden";
9928 get_state(PART:"elm.swallow.content", st, 30, vl);
9929 if (!strcmp(st, "visible"))
9931 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9932 set_state(PART:"icon_rect", "icononly", 0.0);
9933 set_state(PART:"padding_after_icon", "icononly", 0.0);
9935 set_state(PART:"elm.text", "default", 0.0);
9938 program { name: "icon_show";
9939 signal: "elm,state,icon,visible";
9944 get_state(PART:"elm.text", st, 30, vl);
9945 if (!strcmp(st, "visible"))
9947 set_state(PART:"elm.swallow.content", "visible", 0.0);
9948 set_state(PART:"icon_rect", "visible", 0.0);
9949 set_state(PART:"padding_after_icon", "visible", 0.0);
9953 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9954 set_state(PART:"icon_rect", "icononly", 0.0);
9955 set_state(PART:"padding_after_icon", "icononly", 0.0);
9959 program { name: "icon_hide";
9960 signal: "elm,state,icon,hidden";
9962 action: STATE_SET "default" 0.0;
9963 target: "elm.swallow.content";
9964 target: "padding_after_icon";
9965 target: "icon_rect";
9967 program { name: "disable";
9968 signal: "elm,state,disabled";
9970 action: STATE_SET "disabled" 0.0;
9971 target: "button_image";
9973 after: "disable_text";
9975 program { name: "disable_text";
9979 get_state(PART:"elm.text", st, 30, vl);
9980 if (!strcmp(st, "visible"))
9981 set_state(PART:"elm.text", "disabled_visible", 0.0);
9983 set_state(PART:"elm.text", "disabled", 0.0);
9984 set_int(button_state, BUTTON_STATE_DISABLED);
9987 program { name: "enable";
9988 signal: "elm,state,enabled";
9990 action: STATE_SET "default" 0.0;
9991 target: "button_image";
9993 after: "enable_text";
9995 program { name: "enable_text";
9999 get_state(PART:"elm.text", st, 30, vl);
10000 if (!strcmp(st, "disabled_visible"))
10001 set_state(PART:"elm.text", "visible", 0.0);
10003 set_state(PART:"elm.text", "default", 0.0);
10004 set_int(button_state, BUTTON_STATE_ENABLED);
10007 program { name: "focused";
10008 //signal: "elm,action,focus";
10010 action: STATE_SET "focused" 0.0;
10011 target: "button_image";
10012 target: "elm.text";
10014 program { name: "unfocused";
10015 //signal: "elm,action,unfocus";
10017 action: STATE_SET "default" 0.0;
10018 target: "button_image";
10019 after: "unfocus_text";
10021 program { name: "unfocus_text";
10022 action: STATE_SET "visible" 0.0;
10023 target: "elm.text";
10028 ///////////////////////////////////////////////////////////////////////////////////////
10029 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10030 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10032 image: image_normal COMP; \
10033 image: image_press COMP; \
10034 image: "00_title_btn_bg_press.png" COMP; \
10037 part { name: "button_image"; \
10039 description { state: "default" 0.0; \
10040 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10041 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10045 state: "clicked" 0.0; \
10046 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10047 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10049 normal: "00_title_btn_bg_press.png"; \
10050 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10055 state: "disabled" 0.0; \
10056 inherit: "default" 0.0; \
10058 description { state: "focused" 0.0; \
10059 inherit: "default" 0.0;\
10062 part { name: "icon_part"; \
10064 description { state: "default" 0.0; \
10065 min: min_width min_height; \
10066 max: min_width min_height; \
10067 rel1.to: "button_image"; \
10068 rel2.to: "button_image"; \
10069 image.normal: image_normal; \
10072 state: "clicked" 0.0; \
10073 inherit: "default" 0.0; \
10074 image.normal: image_press; \
10077 state: "disabled" 0.0; \
10078 inherit: "default" 0.0; \
10079 color: 127 127 127 127; \
10082 part { name: "over1"; \
10084 ignore_flags: ON_HOLD; \
10085 description { state: "default" 0.0; \
10087 min: min_width min_height; \
10090 part { name: "over2"; \
10091 repeat_events: 1; \
10092 description { state: "default" 0.0; \
10096 part { name: "disabler"; \
10098 description { state: "default" 0.0; \
10102 description { state: "disabled" 0.0; \
10103 inherit: "default" 0.0; \
10109 program { name: "button_click"; \
10110 signal: "mouse,down,1"; \
10112 action: SIGNAL_EMIT "elm,action,press" ""; \
10113 after: "button_click_anim"; \
10115 program { name: "button_click_anim"; \
10116 action: STATE_SET "clicked" 0.0; \
10117 target: "button_image"; \
10118 target: "icon_part"; \
10120 program { name: "button_unclick"; \
10121 signal: "mouse,up,1"; \
10123 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10124 after: "button_unclick_anim"; \
10126 program { name: "button_unclick_anim"; \
10127 action: STATE_SET "default" 0.0; \
10128 target: "button_image"; \
10129 target: "icon_part"; \
10131 program { name: "touch_snd"; \
10132 signal: "mouse,clicked,1"; \
10134 action: PLAY_SAMPLE "touch_sound" 1.0; \
10135 after: button_unclick3; \
10137 program { name: "button_unclick3"; \
10138 action: SIGNAL_EMIT "elm,action,click" ""; \
10140 program { name: "disable"; \
10141 signal: "elm,state,disabled"; \
10143 action: STATE_SET "disabled" 0.0; \
10144 target: "disabler"; \
10145 target: "button_image"; \
10146 target: "icon_part"; \
10148 program { name: "enable"; \
10149 signal: "elm,state,enabled"; \
10151 action: STATE_SET "default" 0.0; \
10152 target: "disabler"; \
10153 target: "button_image"; \
10154 target: "icon_part"; \
10158 ///////////////////////////////////////////////////////////////////////////////////////
10159 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)
10161 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)
10163 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)
10165 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)
10167 /////////////////////////////////////////////////////////////////////////////////////////
10168 group { name: "elm/button/base/naviframe/more/default";
10170 image: "00_winset_more.png" COMP;
10171 image: "00_winset_more_press.png" COMP;
10172 image: "00_title_btn_bg_press.png" COMP;
10175 part { name: "button_image";
10177 description { state: "default" 0.0;
10178 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10179 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10182 description { state: "clicked" 0.0;
10183 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10184 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10186 normal: "00_title_btn_bg_press.png";
10187 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10191 description { state: "disabled" 0.0;
10192 inherit: "default" 0.0;
10194 description { state: "focused" 0.0;
10195 inherit: "default" 0.0;
10198 part { name: "more_image";
10201 description { state: "default" 0.0;
10202 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10203 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10204 rel1.to: "button_image";
10205 rel2.to: "button_image";
10206 image.normal: "00_winset_more.png";
10208 description { state: "clicked" 0.0;
10209 inherit: "default" 0.0;
10210 image.normal: "00_winset_more_press.png";
10212 description { state: "disabled" 0.0;
10213 inherit: "default" 0.0;
10214 color: 255 255 255 127;
10217 part { name: "over2";
10220 ignore_flags: ON_HOLD;
10221 description { state: "default" 0.0;
10225 part { name: "over3";
10228 description { state: "default" 0.0;
10232 part { name: "disabler";
10234 description { state: "default" 0.0;
10238 description { state: "disabled" 0.0;
10239 inherit: "default" 0.0;
10245 program { name: "button_click";
10246 signal: "mouse,down,1";
10248 action: SIGNAL_EMIT "elm,action,press" "";
10249 after: "button_click_anim";
10251 program { name: "button_click_anim";
10252 action: STATE_SET "clicked" 0.0;
10253 target: "button_image";
10254 target: "more_image";
10256 program { name: "button_unclick";
10257 signal: "mouse,up,1";
10259 action: SIGNAL_EMIT "elm,action,unpress" "";
10260 after: "button_unclick_anim";
10262 program { name: "button_unclick_anim";
10263 action: STATE_SET "default" 0.0;
10264 target: "button_image";
10265 target: "more_image";
10267 program { name: "touch_snd";
10268 signal: "mouse,clicked,1";
10270 action: PLAY_SAMPLE "touch_sound" 1.0;
10271 after: button_unclick3;
10273 program { name: "button_unclick3";
10274 action: SIGNAL_EMIT "elm,action,click" "";
10276 program { name: "disable";
10277 signal: "elm,state,disabled";
10279 action: STATE_SET "disabled" 0.0;
10280 target: "disabler";
10281 target: "button_image";
10282 target: "more_image";
10284 program { name: "enable";
10285 signal: "elm,state,enabled";
10287 action: STATE_SET "default" 0.0;
10288 target: "disabler";
10289 target: "button_image";
10290 target: "more_image";
10295 ///////////////////////////////////////////////////////////////////////////////////////
10296 group { name: "elm/button/base/tickernoti";
10298 image: "00_button_06_normal.png" COMP;
10299 image: "00_button_06_press.png" COMP;
10300 image: "00_button_06_dim.png" COMP;
10301 image: "00_button_06_normal_focus.png" COMP;
10304 public button_state = BUTTON_STATE_ENABLED;
10307 part { name: "button_image";
10309 description { state: "default" 0.0;
10311 normal: "00_button_06_normal.png";
10312 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10316 description { state: "clicked" 0.0;
10317 inherit: "default" 0.0;
10318 image.normal: "00_button_06_press.png";
10320 description { state: "disabled" 0.0;
10321 inherit: "default" 0.0;
10322 image.normal: "00_button_06_dim.png";
10324 description { state: "focused" 0.0;
10325 inherit: "default" 0.0;
10326 image.normal: "00_button_06_normal_focus.png";
10329 part { name: "padding_left_top";
10333 description { state: "default" 0.0;
10335 rel2.relative: 0.0 0.0;
10336 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10345 description { state: "default" 0.0;
10346 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10349 description { state: "visible" 0.0;
10350 inherit: "default" 0.0;
10351 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10353 description { state: "icononly" 0.0;
10354 inherit: "default" 0.0;
10355 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10358 part { name: "padding_right_bottom";
10362 description { state: "default" 0.0;
10364 rel1.relative: 1.0 1.0;
10365 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10370 part { name: "icon_rect";
10374 description { state: "default" 0.0;
10380 to: "padding_left_top";
10384 to_x: "padding_left_top";
10385 to_y: "padding_right_bottom";
10389 description { state: "visible" 0.0;
10391 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10392 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10396 to: "padding_left_top";
10400 to_x: "padding_left_top";
10401 to_y: "padding_right_bottom";
10405 description { state: "icononly" 0.0;
10406 inherit: "default" 0.0;
10409 part { name: "padding_after_icon";
10413 description { state: "default" 0.0; //when only icon or no icon is there
10419 rel2.to: "icon_rect";
10424 description { state: "visible" 0.0;
10431 rel2.to: "icon_rect";
10433 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10435 description { state: "icononly" 0.0;
10436 inherit: "default" 0.0;
10439 part { name: "padding_before_text";
10443 description { state: "default" 0.0; //when only icon or no icon is there
10448 to_y: "padding_left_top";
10453 to_y: "padding_right_bottom";
10456 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10460 part { name: "elm.swallow.content";
10463 clip_to: "clipper";
10464 description { state: "default" 0.0;
10469 to: "padding_left_top";
10473 to_x: "padding_left_top";
10474 to_y: "padding_right_bottom";
10478 description { state: "visible" 0.0;
10480 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10481 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10485 to_x: "padding_before_text";
10486 to_y: "padding_left_top";
10490 to_x: "padding_before_text";
10491 to_y: "padding_right_bottom";
10494 description { state: "icononly" 0.0;
10495 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10496 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10499 part { name: "elm.text";
10503 clip_to: "clipper";
10504 description { state: "default" 0.0;
10508 to_x: "padding_after_icon";
10509 to_y: "padding_left_top";
10513 to: "padding_right_bottom";
10515 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
10517 font: "SLP:style=Medium";
10518 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
10521 text_class: "slp_medium";
10524 description { state: "visible" 0.0;
10525 inherit: "default" 0.0;
10528 description { state: "clicked" 0.0;
10529 inherit: "default" 0.0;
10531 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10533 description { state: "disabled" 0.0;
10534 inherit: "default" 0.0;
10537 description { state: "disabled_visible" 0.0;
10538 inherit: "default" 0.0;
10539 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
10542 description { state: "focused" 0.0;
10543 inherit: "default" 0.0;
10545 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10548 part { name: "over2";
10551 ignore_flags: ON_HOLD;
10552 description { state: "default" 0.0;
10556 part { name: "over3";
10559 description { state: "default" 0.0;
10563 part { name: "clipper";
10565 description { state: "default" 0.0;
10566 color: 255 255 255 255;
10569 part { name: "disabler";
10571 description { state: "default" 0.0;
10575 description { state: "disabled" 0.0;
10576 inherit: "default" 0.0;
10582 program { name: "button_click";
10583 signal: "mouse,down,1";
10585 action: SIGNAL_EMIT "elm,action,press" "";
10586 after: "button_click_anim";
10588 program { name: "button_click_anim";
10589 action: STATE_SET "clicked" 0.0;
10590 target: "button_image";
10591 after: "text_clicked";
10593 program { name: "text_clicked";
10597 get_state(PART:"elm.text", st, 30, vl);
10598 if (!strcmp(st, "visible"))
10599 set_state(PART:"elm.text", "clicked", 0.0);
10602 program { name: "button_unpress";
10603 action: SIGNAL_EMIT "elm,action,unpress" "";
10605 program { name: "button_mouseout_clicked";
10606 signal: "mouse,up,1";
10611 get_state(PART:"elm.swallow.content", st, 30, vl);
10612 if (strcmp(st, "icononly"))
10614 emit("elm,action,default,text,set", "");
10615 set_state(PART:"elm.text", "visible", 0.0);
10617 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10618 set_state(PART:"button_image", "default", 0.0);
10620 after: button_unpress;
10622 program { name: "touch_snd";
10623 signal: "mouse,clicked,1";
10625 action: PLAY_SAMPLE "touch_sound" 1.0;
10626 after: button_unclick3;
10628 program { name: "button_unclick3";
10629 action: SIGNAL_EMIT "elm,action,click" "";
10631 program { name: "text_show";
10632 signal: "elm,state,text,visible";
10637 get_state(PART:"elm.swallow.content", st, 30, vl);
10638 if (!strcmp(st, "icononly"))
10640 set_state(PART:"elm.swallow.content", "visible", 0.0);
10641 set_state(PART:"icon_rect", "visible", 0.0);
10642 set_state(PART:"padding_after_icon", "visible", 0.0);
10643 set_state(PART:"bg", "visible", 0.0);
10645 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10646 set_state(PART:"elm.text", "visible", 0.0);
10648 set_state(PART:"elm.text", "disabled_visible", 0.0);
10651 program { name: "text_hide";
10652 signal: "elm,state,text,hidden";
10657 get_state(PART:"elm.swallow.content", st, 30, vl);
10658 if (!strcmp(st, "visible"))
10660 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10661 set_state(PART:"icon_rect", "icononly", 0.0);
10662 set_state(PART:"padding_after_icon", "icononly", 0.0);
10663 set_state(PART:"bg", "icononly", 0.0);
10665 set_state(PART:"elm.text", "default", 0.0);
10668 program { name: "icon_show";
10669 signal: "elm,state,icon,visible";
10674 get_state(PART:"elm.text", st, 30, vl);
10675 if (!strcmp(st, "visible"))
10677 set_state(PART:"elm.swallow.content", "visible", 0.0);
10678 set_state(PART:"icon_rect", "visible", 0.0);
10679 set_state(PART:"padding_after_icon", "visible", 0.0);
10680 set_state(PART:"bg", "visible", 0.0);
10684 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10685 set_state(PART:"icon_rect", "icononly", 0.0);
10686 set_state(PART:"padding_after_icon", "icononly", 0.0);
10687 set_state(PART:"bg", "icononly", 0.0);
10691 program { name: "icon_hide";
10692 signal: "elm,state,icon,hidden";
10694 action: STATE_SET "default" 0.0;
10695 target: "elm.swallow.content";
10696 target: "padding_after_icon";
10697 target: "icon_rect";
10700 program { name: "disable";
10701 signal: "elm,state,disabled";
10703 action: STATE_SET "disabled" 0.0;
10704 target: "button_image";
10705 target: "disabler";
10706 after: "disable_text";
10708 program { name: "disable_text";
10712 get_state(PART:"elm.text", st, 30, vl);
10713 if (!strcmp(st, "visible"))
10714 set_state(PART:"elm.text", "disabled_visible", 0.0);
10716 set_state(PART:"elm.text", "disabled", 0.0);
10717 set_int(button_state, BUTTON_STATE_DISABLED);
10720 program { name: "enable";
10721 signal: "elm,state,enabled";
10723 action: STATE_SET "default" 0.0;
10724 target: "button_image";
10725 target: "disabler";
10726 after: "enable_text";
10728 program { name: "enable_text";
10732 get_state(PART:"elm.text", st, 30, vl);
10733 if (!strcmp(st, "disabled_visible"))
10734 set_state(PART:"elm.text", "visible", 0.0);
10736 set_state(PART:"elm.text", "default", 0.0);
10737 set_int(button_state, BUTTON_STATE_ENABLED);
10740 program { name: "focused";
10741 //signal: "elm,action,focus";
10743 action: STATE_SET "focused" 0.0;
10744 target: "button_image";
10745 target: "elm.text";
10747 program { name: "unfocused";
10748 //signal: "elm,action,unfocus";
10750 action: STATE_SET "default" 0.0;
10751 target: "button_image";
10752 after: "unfocus_text";
10754 program { name: "unfocus_text";
10755 action: STATE_SET "visible" 0.0;
10756 target: "elm.text";
10761 ///////////////////////////////////////////////////////////////////////////////////////
10762 group { name: "elm/button/base/expandable_number";
10763 alias: "elm/button/base/text_only/expandable_number";
10765 image: "00_button_05_normal.png" COMP;
10766 image: "00_button_05_press.png" COMP;
10767 image: "00_button_05_dim.png" COMP;
10768 image: "00_button_05_normal_focus.png" COMP;
10769 image: "00_arrow_expand.png" COMP;
10770 image: "00_arrow_expand_press.png" COMP;
10771 image: "00_arrow_expand_dim.png" COMP;
10774 public button_state = BUTTON_STATE_ENABLED;
10777 part { name: "button_image";
10779 description { state: "default" 0.0;
10780 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10781 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10783 normal: "00_button_05_normal.png";
10784 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
10788 description { state: "clicked" 0.0;
10789 inherit: "default" 0.0;
10790 image.normal: "00_button_05_press.png";
10792 description { state: "disabled" 0.0;
10793 inherit: "default" 0.0;
10794 image.normal: "00_button_05_dim.png";
10796 description { state: "focused" 0.0;
10797 inherit: "default" 0.0;
10798 image.normal: "00_button_05_normal_focus.png";
10801 part { name: "padding_left_top";
10805 description { state: "default" 0.0;
10807 rel2.relative: 0.0 0.0;
10808 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10813 part { name: "padding_right_bottom";
10817 description { state: "default" 0.0;
10819 rel1.relative: 1.0 1.0;
10820 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10825 part { name: "icon_rect";
10829 description { state: "default" 0.0;
10831 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10832 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10836 to_x: "padding_right_bottom";
10837 to_y: "padding_left_top";
10841 to: "padding_right_bottom";
10847 part { name: "arrow_expand";
10850 description { state: "default" 0.0;
10852 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10853 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10855 rel1.to: "icon_rect";
10856 rel2.to: "icon_rect";
10857 image.normal:"00_arrow_expand.png";
10859 description { state: "clicked" 0.0;
10860 inherit: "default" 0.0;
10861 image.normal:"00_arrow_expand_press.png";
10863 description { state: "disabled" 0.0;
10864 inherit: "default" 0.0;
10865 image.normal:"00_arrow_expand_dim.png";
10868 part { name: "elm.text";
10872 description { state: "default" 0.0;
10873 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10874 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10878 to: "padding_left_top";
10882 to_x:"padding_left_top";
10883 to_y:"padding_right_bottom";
10886 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10888 font: "SLP:style=Medium";
10889 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
10893 text_class: "slp_medium";
10896 description { state: "visible" 0.0;
10897 inherit: "default" 0.0;
10899 description { state: "clicked" 0.0;
10900 inherit: "default" 0.0;
10901 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10903 description { state: "disabled" 0.0;
10904 inherit: "default" 0.0;
10907 description { state: "disabled_visible" 0.0;
10908 inherit: "default" 0.0;
10909 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10911 description { state: "focused" 0.0;
10912 inherit: "default" 0.0;
10913 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10916 part { name: "over2";
10919 ignore_flags: ON_HOLD;
10920 description { state: "default" 0.0;
10924 part { name: "over3";
10927 description { state: "default" 0.0;
10931 part { name: "disabler";
10933 description { state: "default" 0.0;
10937 description { state: "disabled" 0.0;
10938 inherit: "default" 0.0;
10944 program { name: "button_click";
10945 signal: "mouse,down,1";
10947 action: SIGNAL_EMIT "elm,action,press" "";
10948 after: "button_click_anim";
10950 program { name: "button_click_anim";
10951 action: STATE_SET "clicked" 0.0;
10952 target: "button_image";
10953 target: "arrow_expand";
10954 after: "text_clicked";
10956 program { name: "text_clicked";
10960 get_state(PART:"elm.text", st, 30, vl);
10961 if (!strcmp(st, "visible"))
10962 set_state(PART:"elm.text", "clicked", 0.0);
10965 program { name: "button_unpress";
10966 action: SIGNAL_EMIT "elm,action,unpress" "";
10968 program { name: "button_mouseout_clicked";
10969 signal: "mouse,up,1";
10972 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10974 set_state(PART:"button_image", "default", 0.0);
10975 set_state(PART:"elm.text", "visible", 0.0);
10976 set_state(PART:"arrow_expand", "default", 0.0);
10979 after: button_unpress;
10981 program { name: "touch_snd";
10982 signal: "mouse,clicked,1";
10984 action: PLAY_SAMPLE "touch_sound" 1.0;
10985 after: button_unclick3;
10987 program { name: "button_unclick3";
10988 action: SIGNAL_EMIT "elm,action,click" "";
10990 program { name: "text_show";
10991 signal: "elm,state,text,visible";
10994 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10995 set_state(PART:"elm.text", "visible", 0.0);
10997 set_state(PART:"elm.text", "disabled_visible", 0.0);
11000 program { name: "text_hide";
11001 signal: "elm,state,text,hidden";
11004 set_state(PART:"elm.text", "default", 0.0);
11007 program { name: "disable";
11008 signal: "elm,state,disabled";
11010 action: STATE_SET "disabled" 0.0;
11011 target: "button_image";
11012 target: "disabler";
11013 after: "disable_text";
11015 program { name: "disable_text";
11019 get_state(PART:"elm.text", st, 30, vl);
11020 if (!strcmp(st, "visible"))
11021 set_state(PART:"elm.text", "disabled_visible", 0.0);
11023 set_state(PART:"elm.text", "disabled", 0.0);
11024 set_int(button_state, BUTTON_STATE_DISABLED);
11027 program { name: "enable";
11028 signal: "elm,state,enabled";
11030 action: STATE_SET "default" 0.0;
11031 target: "button_image";
11032 target: "disabler";
11033 after: "enable_text";
11035 program { name: "enable_text";
11039 get_state(PART:"elm.text", st, 30, vl);
11040 if (!strcmp(st, "disabled_visible"))
11041 set_state(PART:"elm.text", "visible", 0.0);
11043 set_state(PART:"elm.text", "default", 0.0);
11044 set_int(button_state, BUTTON_STATE_ENABLED);
11047 program { name: "focused";
11048 //signal: "elm,action,focus";
11050 action: STATE_SET "focused" 0.0;
11051 target: "button_image";
11052 target: "elm.text";
11054 program { name: "unfocused";
11055 //signal: "elm,action,unfocus";
11057 action: STATE_SET "default" 0.0;
11058 target: "button_image";
11059 after: "unfocus_text";
11061 program { name: "unfocus_text";
11062 action: STATE_SET "visible" 0.0;
11063 target: "elm.text";
11068 #undef BUTTON_STATE_ENABLED
11069 #undef BUTTON_STATE_DISABLED