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
22 ///////////////////////////////////////////////////////////////////////////////////////
23 group { name: "elm/button/base/style1";
24 alias: "elm/button/base/text_only/style1";
25 alias: "elm/button/base/center";
26 alias: "elm/button/base/icon_and_text/center";
27 alias: "elm/button/base/nocontents/search_button";
29 image: "00_button_01_normal.png" COMP;
30 image: "00_button_01_normal_press.png" COMP;
31 image: "00_button_01_normal_dim.png" COMP;
34 public button_state = BUTTON_STATE_ENABLED;
37 part { name: "button_image";
39 description { state: "default" 0.0;
41 normal: "00_button_01_normal.png";
42 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
46 description { state: "clicked" 0.0;
47 inherit: "default" 0.0;
48 image.normal: "00_button_01_normal_press.png";
50 description { state: "disabled" 0.0;
51 inherit: "default" 0.0;
52 image.normal: "00_button_01_normal_dim.png";
54 description { state: "focused" 0.0;
55 inherit: "default" 0.0;
56 image.normal: "00_button_01_normal_press.png";
59 part { name: "padding_left_top";
63 description { state: "default" 0.0;
65 rel2.relative: 0.0 0.0;
66 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
75 description { state: "default" 0.0;
76 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
79 description { state: "visible" 0.0;
80 inherit: "default" 0.0;
81 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
83 description { state: "icononly" 0.0;
84 inherit: "default" 0.0;
85 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
88 part { name: "padding_right_bottom";
92 description { state: "default" 0.0;
94 rel1.relative: 1.0 1.0;
95 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
100 part { name: "icon_rect";
104 description { state: "default" 0.0;
110 to: "padding_left_top";
114 to_x: "padding_left_top";
115 to_y: "padding_right_bottom";
119 description { state: "visible" 0.0;
121 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
122 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
126 to: "padding_left_top";
130 to_x: "padding_left_top";
131 to_y: "padding_right_bottom";
135 description { state: "icononly" 0.0;
136 inherit: "default" 0.0;
139 part { name: "padding_after_icon";
143 description { state: "default" 0.0; //when only icon or no icon is there
149 rel2.to: "icon_rect";
154 description { state: "visible" 0.0;
161 rel2.to: "icon_rect";
163 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
165 description { state: "icononly" 0.0;
166 inherit: "default" 0.0;
169 part { name: "padding_before_text";
173 description { state: "default" 0.0; //when only icon or no icon is there
178 to_y: "padding_left_top";
183 to_y: "padding_right_bottom";
186 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
190 part { name: "elm.swallow.content";
194 description { state: "default" 0.0;
199 to: "padding_left_top";
203 to_x: "padding_left_top";
204 to_y: "padding_right_bottom";
208 description { state: "visible" 0.0;
210 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
211 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
215 to_x: "padding_before_text";
216 to_y: "padding_left_top";
220 to_x: "padding_before_text";
221 to_y: "padding_right_bottom";
224 description { state: "icononly" 0.0;
225 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
226 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
229 part { name: "elm.text";
234 description { state: "default" 0.0;
238 to_x: "padding_after_icon";
239 to_y: "padding_left_top";
243 to: "padding_right_bottom";
245 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
247 font: "SLP:style=Medium";
248 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
253 description { state: "visible" 0.0;
254 inherit: "default" 0.0;
257 description { state: "clicked" 0.0;
258 inherit: "default" 0.0;
260 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
262 description { state: "disabled" 0.0;
263 inherit: "default" 0.0;
266 description { state: "disabled_visible" 0.0;
267 inherit: "default" 0.0;
268 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
271 description { state: "focused" 0.0;
272 inherit: "default" 0.0;
274 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
277 part { name: "over2";
280 ignore_flags: ON_HOLD;
281 description { state: "default" 0.0;
285 part { name: "over3";
288 description { state: "default" 0.0;
292 part { name: "clipper";
294 description { state: "default" 0.0;
295 color: 255 255 255 255;
298 part { name: "disabler";
300 description { state: "default" 0.0;
304 description { state: "disabled" 0.0;
305 inherit: "default" 0.0;
311 program { name: "button_click";
312 signal: "mouse,down,1";
314 action: SIGNAL_EMIT "elm,action,press" "";
315 after: "button_click_anim";
317 program { name: "button_click_anim";
318 action: STATE_SET "clicked" 0.0;
319 target: "button_image";
320 after: "text_clicked";
322 program { name: "text_clicked";
326 get_state(PART:"elm.text", st, 30, vl);
327 if (!strcmp(st, "visible"))
328 set_state(PART:"elm.text", "clicked", 0.0);
331 program { name: "button_unpress";
332 action: SIGNAL_EMIT "elm,action,unpress" "";
334 program { name: "button_mouseout_clicked";
335 signal: "mouse,up,1";
340 get_state(PART:"elm.swallow.content", st, 30, vl);
341 if (strcmp(st, "icononly"))
343 emit("elm,action,default,text,set", "");
344 set_state(PART:"elm.text", "visible", 0.0);
346 if (get_int(button_state) != BUTTON_STATE_DISABLED)
347 set_state(PART:"button_image", "default", 0.0);
349 after: button_unpress;
351 program { name: "button_unclick3";
352 signal: "mouse,clicked,1";
354 action: SIGNAL_EMIT "elm,action,click" "";
356 program { name: "text_show";
357 signal: "elm,state,text,visible";
362 get_state(PART:"elm.swallow.content", st, 30, vl);
363 if (!strcmp(st, "icononly"))
365 set_state(PART:"elm.swallow.content", "visible", 0.0);
366 set_state(PART:"icon_rect", "visible", 0.0);
367 set_state(PART:"padding_after_icon", "visible", 0.0);
368 set_state(PART:"bg", "visible", 0.0);
370 if (get_int(button_state) != BUTTON_STATE_DISABLED)
371 set_state(PART:"elm.text", "visible", 0.0);
373 set_state(PART:"elm.text", "disabled_visible", 0.0);
376 program { name: "text_hide";
377 signal: "elm,state,text,hidden";
382 get_state(PART:"elm.swallow.content", st, 30, vl);
383 if (!strcmp(st, "visible"))
385 set_state(PART:"elm.swallow.content", "icononly", 0.0);
386 set_state(PART:"icon_rect", "icononly", 0.0);
387 set_state(PART:"padding_after_icon", "icononly", 0.0);
388 set_state(PART:"bg", "icononly", 0.0);
390 set_state(PART:"elm.text", "default", 0.0);
393 program { name: "icon_show";
394 signal: "elm,state,icon,visible";
399 get_state(PART:"elm.text", st, 30, vl);
400 if (!strcmp(st, "visible"))
402 set_state(PART:"elm.swallow.content", "visible", 0.0);
403 set_state(PART:"icon_rect", "visible", 0.0);
404 set_state(PART:"padding_after_icon", "visible", 0.0);
405 set_state(PART:"bg", "visible", 0.0);
409 set_state(PART:"elm.swallow.content", "icononly", 0.0);
410 set_state(PART:"icon_rect", "icononly", 0.0);
411 set_state(PART:"padding_after_icon", "icononly", 0.0);
412 set_state(PART:"bg", "icononly", 0.0);
416 program { name: "icon_hide";
417 signal: "elm,state,icon,hidden";
419 action: STATE_SET "default" 0.0;
420 target: "elm.swallow.content";
421 target: "padding_after_icon";
425 program { name: "disable";
426 signal: "elm,state,disabled";
428 action: STATE_SET "disabled" 0.0;
429 target: "button_image";
431 after: "disable_text";
433 program { name: "disable_text";
437 get_state(PART:"elm.text", st, 30, vl);
438 if (!strcmp(st, "visible"))
439 set_state(PART:"elm.text", "disabled_visible", 0.0);
441 set_state(PART:"elm.text", "disabled", 0.0);
442 set_int(button_state, BUTTON_STATE_DISABLED);
445 program { name: "enable";
446 signal: "elm,state,enabled";
448 action: STATE_SET "default" 0.0;
449 target: "button_image";
451 after: "enable_text";
453 program { name: "enable_text";
457 get_state(PART:"elm.text", st, 30, vl);
458 if (!strcmp(st, "disabled_visible"))
459 set_state(PART:"elm.text", "visible", 0.0);
461 set_state(PART:"elm.text", "default", 0.0);
462 set_int(button_state, BUTTON_STATE_ENABLED);
465 program { name: "focused";
466 //signal: "elm,action,focus";
468 action: STATE_SET "focused" 0.0;
469 target: "button_image";
472 program { name: "unfocused";
473 //signal: "elm,action,unfocus";
475 action: STATE_SET "default" 0.0;
476 target: "button_image";
477 after: "unfocus_text";
479 program { name: "unfocus_text";
480 action: STATE_SET "visible" 0.0;
486 //////////////////////////////////////////////////////////////
487 group { name: "elm/button/base/style1/auto_expand";
488 alias: "elm/button/base/datetime_ampm/default";
490 image: "00_button_01_normal.png" COMP;
491 image: "00_button_01_normal_press.png" COMP;
492 image: "00_button_01_normal_dim.png" COMP;
495 public button_state = BUTTON_STATE_ENABLED;
498 part { name: "button_image";
500 description { state: "default" 0.0;
502 normal: "00_button_01_normal.png";
503 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
507 description { state: "clicked" 0.0;
508 inherit: "default" 0.0;
509 image.normal: "00_button_01_normal_press.png";
511 description { state: "disabled" 0.0;
512 inherit: "default" 0.0;
513 image.normal: "00_button_01_normal_dim.png";
515 description { state: "focused" 0.0;
516 inherit: "default" 0.0;
517 image.normal: "00_button_01_normal_press.png";
520 part { name: "padding_left_top";
524 description { state: "default" 0.0;
526 rel2.relative: 0.0 0.0;
527 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
536 description { state: "default" 0.0;
537 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
540 description { state: "visible" 0.0;
541 inherit: "default" 0.0;
542 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
544 description { state: "icononly" 0.0;
545 inherit: "default" 0.0;
546 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
549 part { name: "padding_right_bottom";
553 description { state: "default" 0.0;
555 rel1.relative: 1.0 1.0;
556 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
561 part { name: "icon_rect";
565 description { state: "default" 0.0;
571 to: "padding_left_top";
575 to_x: "padding_left_top";
576 to_y: "padding_right_bottom";
580 description { state: "visible" 0.0;
582 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
583 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
587 to: "padding_left_top";
591 to_x: "padding_left_top";
592 to_y: "padding_right_bottom";
596 description { state: "icononly" 0.0;
597 inherit: "default" 0.0;
600 part { name: "padding_after_icon";
604 description { state: "default" 0.0; //when only icon or no icon is there
610 rel2.to: "icon_rect";
615 description { state: "visible" 0.0;
622 rel2.to: "icon_rect";
624 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
626 description { state: "icononly" 0.0;
627 inherit: "default" 0.0;
630 part { name: "padding_before_text";
634 description { state: "default" 0.0; //when only icon or no icon is there
639 to_y: "padding_left_top";
644 to_y: "padding_right_bottom";
647 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
651 part { name: "elm.swallow.content";
655 description { state: "default" 0.0;
660 to: "padding_left_top";
664 to_x: "padding_left_top";
665 to_y: "padding_right_bottom";
669 description { state: "visible" 0.0;
671 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
672 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
676 to_x: "padding_before_text";
677 to_y: "padding_left_top";
681 to_x: "padding_before_text";
682 to_y: "padding_right_bottom";
685 description { state: "icononly" 0.0;
686 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
687 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
690 part { name: "elm.text";
695 description { state: "default" 0.0;
699 to_x: "padding_after_icon";
700 to_y: "padding_left_top";
704 to: "padding_right_bottom";
706 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
708 font: "SLP:style=Medium";
709 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
714 description { state: "visible" 0.0;
715 inherit: "default" 0.0;
718 description { state: "clicked" 0.0;
719 inherit: "default" 0.0;
721 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
723 description { state: "disabled" 0.0;
724 inherit: "default" 0.0;
727 description { state: "disabled_visible" 0.0;
728 inherit: "default" 0.0;
729 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
732 description { state: "focused" 0.0;
733 inherit: "default" 0.0;
735 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
738 part { name: "over2";
741 ignore_flags: ON_HOLD;
742 description { state: "default" 0.0;
746 part { name: "over3";
749 description { state: "default" 0.0;
753 part { name: "clipper";
755 description { state: "default" 0.0;
756 color: 255 255 255 255;
759 part { name: "disabler";
761 description { state: "default" 0.0;
765 description { state: "disabled" 0.0;
766 inherit: "default" 0.0;
772 program { name: "button_click";
773 signal: "mouse,down,1";
775 action: SIGNAL_EMIT "elm,action,press" "";
776 after: "button_click_anim";
778 program { name: "button_click_anim";
779 action: STATE_SET "clicked" 0.0;
780 target: "button_image";
781 after: "text_clicked";
783 program { name: "text_clicked";
787 get_state(PART:"elm.text", st, 30, vl);
788 if (!strcmp(st, "visible"))
789 set_state(PART:"elm.text", "clicked", 0.0);
792 program { name: "button_unpress";
793 action: SIGNAL_EMIT "elm,action,unpress" "";
795 program { name: "button_mouseout_clicked";
796 signal: "mouse,up,1";
801 get_state(PART:"elm.swallow.content", st, 30, vl);
802 if (strcmp(st, "icononly"))
804 emit("elm,action,default,text,set", "");
805 set_state(PART:"elm.text", "visible", 0.0);
807 if (get_int(button_state) != BUTTON_STATE_DISABLED)
808 set_state(PART:"button_image", "default", 0.0);
810 after: button_unpress;
812 program { name: "button_unclick3";
813 signal: "mouse,clicked,1";
815 action: SIGNAL_EMIT "elm,action,click" "";
817 program { name: "text_show";
818 signal: "elm,state,text,visible";
823 get_state(PART:"elm.swallow.content", st, 30, vl);
824 if (!strcmp(st, "icononly"))
826 set_state(PART:"elm.swallow.content", "visible", 0.0);
827 set_state(PART:"icon_rect", "visible", 0.0);
828 set_state(PART:"padding_after_icon", "visible", 0.0);
829 set_state(PART:"bg", "visible", 0.0);
831 if (get_int(button_state) != BUTTON_STATE_DISABLED)
832 set_state(PART:"elm.text", "visible", 0.0);
834 set_state(PART:"elm.text", "disabled_visible", 0.0);
837 program { name: "text_hide";
838 signal: "elm,state,text,hidden";
843 get_state(PART:"elm.swallow.content", st, 30, vl);
844 if (!strcmp(st, "visible"))
846 set_state(PART:"elm.swallow.content", "icononly", 0.0);
847 set_state(PART:"icon_rect", "icononly", 0.0);
848 set_state(PART:"padding_after_icon", "icononly", 0.0);
849 set_state(PART:"bg", "icononly", 0.0);
851 set_state(PART:"elm.text", "default", 0.0);
854 program { name: "icon_show";
855 signal: "elm,state,icon,visible";
860 get_state(PART:"elm.text", st, 30, vl);
861 if (!strcmp(st, "visible"))
863 set_state(PART:"elm.swallow.content", "visible", 0.0);
864 set_state(PART:"icon_rect", "visible", 0.0);
865 set_state(PART:"padding_after_icon", "visible", 0.0);
866 set_state(PART:"bg", "visible", 0.0);
870 set_state(PART:"elm.swallow.content", "icononly", 0.0);
871 set_state(PART:"icon_rect", "icononly", 0.0);
872 set_state(PART:"padding_after_icon", "icononly", 0.0);
873 set_state(PART:"bg", "icononly", 0.0);
877 program { name: "icon_hide";
878 signal: "elm,state,icon,hidden";
880 action: STATE_SET "default" 0.0;
881 target: "elm.swallow.content";
882 target: "padding_after_icon";
886 program { name: "disable";
887 signal: "elm,state,disabled";
889 action: STATE_SET "disabled" 0.0;
890 target: "button_image";
892 after: "disable_text";
894 program { name: "disable_text";
898 get_state(PART:"elm.text", st, 30, vl);
899 if (!strcmp(st, "visible"))
900 set_state(PART:"elm.text", "disabled_visible", 0.0);
902 set_state(PART:"elm.text", "disabled", 0.0);
903 set_int(button_state, BUTTON_STATE_DISABLED);
906 program { name: "enable";
907 signal: "elm,state,enabled";
909 action: STATE_SET "default" 0.0;
910 target: "button_image";
912 after: "enable_text";
914 program { name: "enable_text";
918 get_state(PART:"elm.text", st, 30, vl);
919 if (!strcmp(st, "disabled_visible"))
920 set_state(PART:"elm.text", "visible", 0.0);
922 set_state(PART:"elm.text", "default", 0.0);
923 set_int(button_state, BUTTON_STATE_ENABLED);
926 program { name: "focused";
927 //signal: "elm,action,focus";
929 action: STATE_SET "focused" 0.0;
930 target: "button_image";
933 program { name: "unfocused";
934 //signal: "elm,action,unfocus";
936 action: STATE_SET "default" 0.0;
937 target: "button_image";
938 after: "unfocus_text";
940 program { name: "unfocus_text";
941 action: STATE_SET "visible" 0.0;
947 ///////////////////////////////////////////////////////////////////////////////////////
948 group { name: "elm/button/base/style2";
949 alias: "elm/button/base/text_only/style2";
951 image: "00_button_04_normal.png" COMP;
952 image: "00_button_04_press.png" COMP;
953 image: "00_button_04_dim.png" COMP;
956 public button_state = BUTTON_STATE_ENABLED;
959 part { name: "button_image";
961 description { state: "default" 0.0;
963 normal: "00_button_04_normal.png";
964 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
968 description { state: "clicked" 0.0;
969 inherit: "default" 0.0;
970 image.normal: "00_button_04_press.png";
972 description { state: "disabled" 0.0;
973 inherit: "default" 0.0;
974 image.normal: "00_button_04_dim.png";
976 description { state: "focused" 0.0;
977 inherit: "default" 0.0;
978 image.normal: "00_button_04_press.png";
981 part { name: "padding_left_top";
985 description { state: "default" 0.0;
987 rel2.relative: 0.0 0.0;
988 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
997 description { state: "default" 0.0;
998 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1001 description { state: "visible" 0.0;
1002 inherit: "default" 0.0;
1003 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1005 description { state: "icononly" 0.0;
1006 inherit: "default" 0.0;
1007 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1010 part { name: "padding_right_bottom";
1014 description { state: "default" 0.0;
1016 rel1.relative: 1.0 1.0;
1017 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1022 part { name: "icon_rect";
1026 description { state: "default" 0.0;
1032 to: "padding_left_top";
1036 to_x: "padding_left_top";
1037 to_y: "padding_right_bottom";
1041 description { state: "visible" 0.0;
1043 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1044 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1048 to: "padding_left_top";
1052 to_x: "padding_left_top";
1053 to_y: "padding_right_bottom";
1057 description { state: "icononly" 0.0;
1058 inherit: "default" 0.0;
1061 part { name: "padding_after_icon";
1065 description { state: "default" 0.0; //when only icon or no icon is there
1071 rel2.to: "icon_rect";
1076 description { state: "visible" 0.0;
1083 rel2.to: "icon_rect";
1085 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1087 description { state: "icononly" 0.0;
1088 inherit: "default" 0.0;
1091 part { name: "padding_before_text";
1095 description { state: "default" 0.0; //when only icon or no icon is there
1100 to_y: "padding_left_top";
1105 to_y: "padding_right_bottom";
1108 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1112 part { name: "elm.swallow.content";
1116 description { state: "default" 0.0;
1121 to: "padding_left_top";
1125 to_x: "padding_left_top";
1126 to_y: "padding_right_bottom";
1130 description { state: "visible" 0.0;
1132 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1133 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1137 to_x: "padding_before_text";
1138 to_y: "padding_left_top";
1142 to_x: "padding_before_text";
1143 to_y: "padding_right_bottom";
1146 description { state: "icononly" 0.0;
1147 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1148 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1151 part { name: "elm.text";
1156 description { state: "default" 0.0;
1160 to_x: "padding_after_icon";
1161 to_y: "padding_left_top";
1165 to: "padding_right_bottom";
1167 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1169 font: "SLP:style=Medium";
1170 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1175 description { state: "visible" 0.0;
1176 inherit: "default" 0.0;
1179 description { state: "clicked" 0.0;
1180 inherit: "default" 0.0;
1182 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1184 description { state: "disabled" 0.0;
1185 inherit: "default" 0.0;
1188 description { state: "disabled_visible" 0.0;
1189 inherit: "default" 0.0;
1190 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1193 description { state: "focused" 0.0;
1194 inherit: "default" 0.0;
1196 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1199 part { name: "over2";
1202 ignore_flags: ON_HOLD;
1203 description { state: "default" 0.0;
1207 part { name: "over3";
1210 description { state: "default" 0.0;
1214 part { name: "clipper";
1216 description { state: "default" 0.0;
1217 color: 255 255 255 255;
1220 part { name: "disabler";
1222 description { state: "default" 0.0;
1226 description { state: "disabled" 0.0;
1227 inherit: "default" 0.0;
1233 program { name: "button_click";
1234 signal: "mouse,down,1";
1236 action: SIGNAL_EMIT "elm,action,press" "";
1237 after: "button_click_anim";
1239 program { name: "button_click_anim";
1240 action: STATE_SET "clicked" 0.0;
1241 target: "button_image";
1242 after: "text_clicked";
1244 program { name: "text_clicked";
1248 get_state(PART:"elm.text", st, 30, vl);
1249 if (!strcmp(st, "visible"))
1250 set_state(PART:"elm.text", "clicked", 0.0);
1253 program { name: "button_unpress";
1254 action: SIGNAL_EMIT "elm,action,unpress" "";
1256 program { name: "button_mouseout_clicked";
1257 signal: "mouse,up,1";
1262 get_state(PART:"elm.swallow.content", st, 30, vl);
1263 if (strcmp(st, "icononly"))
1265 emit("elm,action,default,text,set", "");
1266 set_state(PART:"elm.text", "visible", 0.0);
1268 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1269 set_state(PART:"button_image", "default", 0.0);
1271 after: button_unpress;
1273 program { name: "button_unclick3";
1274 signal: "mouse,clicked,1";
1276 action: SIGNAL_EMIT "elm,action,click" "";
1278 program { name: "text_show";
1279 signal: "elm,state,text,visible";
1284 get_state(PART:"elm.swallow.content", st, 30, vl);
1285 if (!strcmp(st, "icononly"))
1287 set_state(PART:"elm.swallow.content", "visible", 0.0);
1288 set_state(PART:"icon_rect", "visible", 0.0);
1289 set_state(PART:"padding_after_icon", "visible", 0.0);
1290 set_state(PART:"bg", "visible", 0.0);
1292 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1293 set_state(PART:"elm.text", "visible", 0.0);
1295 set_state(PART:"elm.text", "disabled_visible", 0.0);
1298 program { name: "text_hide";
1299 signal: "elm,state,text,hidden";
1304 get_state(PART:"elm.swallow.content", st, 30, vl);
1305 if (!strcmp(st, "visible"))
1307 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1308 set_state(PART:"icon_rect", "icononly", 0.0);
1309 set_state(PART:"padding_after_icon", "icononly", 0.0);
1310 set_state(PART:"bg", "icononly", 0.0);
1312 set_state(PART:"elm.text", "default", 0.0);
1315 program { name: "icon_show";
1316 signal: "elm,state,icon,visible";
1321 get_state(PART:"elm.text", st, 30, vl);
1322 if (!strcmp(st, "visible"))
1324 set_state(PART:"elm.swallow.content", "visible", 0.0);
1325 set_state(PART:"icon_rect", "visible", 0.0);
1326 set_state(PART:"padding_after_icon", "visible", 0.0);
1327 set_state(PART:"bg", "visible", 0.0);
1331 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1332 set_state(PART:"icon_rect", "icononly", 0.0);
1333 set_state(PART:"padding_after_icon", "icononly", 0.0);
1334 set_state(PART:"bg", "icononly", 0.0);
1338 program { name: "icon_hide";
1339 signal: "elm,state,icon,hidden";
1341 action: STATE_SET "default" 0.0;
1342 target: "elm.swallow.content";
1343 target: "padding_after_icon";
1344 target: "icon_rect";
1347 program { name: "disable";
1348 signal: "elm,state,disabled";
1350 action: STATE_SET "disabled" 0.0;
1351 target: "button_image";
1353 after: "disable_text";
1355 program { name: "disable_text";
1359 get_state(PART:"elm.text", st, 30, vl);
1360 if (!strcmp(st, "visible"))
1361 set_state(PART:"elm.text", "disabled_visible", 0.0);
1363 set_state(PART:"elm.text", "disabled", 0.0);
1364 set_int(button_state, BUTTON_STATE_DISABLED);
1367 program { name: "enable";
1368 signal: "elm,state,enabled";
1370 action: STATE_SET "default" 0.0;
1371 target: "button_image";
1373 after: "enable_text";
1375 program { name: "enable_text";
1379 get_state(PART:"elm.text", st, 30, vl);
1380 if (!strcmp(st, "disabled_visible"))
1381 set_state(PART:"elm.text", "visible", 0.0);
1383 set_state(PART:"elm.text", "default", 0.0);
1384 set_int(button_state, BUTTON_STATE_ENABLED);
1387 program { name: "focused";
1388 //signal: "elm,action,focus";
1390 action: STATE_SET "focused" 0.0;
1391 target: "button_image";
1394 program { name: "unfocused";
1395 //signal: "elm,action,unfocus";
1397 action: STATE_SET "default" 0.0;
1398 target: "button_image";
1399 after: "unfocus_text";
1401 program { name: "unfocus_text";
1402 action: STATE_SET "visible" 0.0;
1408 ///////////////////////////////////////////////////////////////////////////////////////
1409 group { name: "elm/button/base/sweep";
1410 alias: "elm/button/base/text_only/sweep";
1412 image: "00_button_sweep.png" COMP;
1413 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1414 image: "00_button_sweep_dim.png" COMP;
1417 public button_state = BUTTON_STATE_ENABLED;
1420 part { name: "button_image";
1422 description { state: "default" 0.0;
1423 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1425 normal: "00_button_sweep.png";
1426 border: BUTTON_SWEEP_BG_BORDER_INC;
1430 description { state: "clicked" 0.0;
1431 inherit: "default" 0.0;
1432 image.normal: "00_button_sweep_press.png";
1434 description { state: "disabled" 0.0;
1435 inherit: "default" 0.0;
1436 image.normal: "00_button_sweep_dim.png";
1438 description { state: "focused" 0.0;
1439 inherit: "default" 0.0;
1440 image.normal: "00_button_sweep_press.png";
1443 part { name: "padding_left_top";
1447 description { state: "default" 0.0;
1449 rel2.relative: 0.0 0.0;
1450 min: BUTTON_SWEEP_PADDING_MIN_INC;
1455 part { name: "padding_right_bottom";
1459 description { state: "default" 0.0;
1461 rel1.relative: 1.0 1.0;
1462 min: BUTTON_SWEEP_PADDING_MIN_INC;
1467 part { name: "icon_rect";
1471 description { state: "default" 0.0;
1472 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1476 to_x: "elm.swallow.content";
1477 to_y: "padding_left_top";
1481 to_x: "elm.swallow.content";
1482 to_y: "padding_right_bottom";
1488 part { name: "padding_icon_text";
1492 description { state: "default" 0.0; //when only icon or no icon is there
1498 rel2.to: "icon_rect";
1503 description { state: "icononly" 0.0;
1504 inherit: "default" 0.0;
1506 description { state: "visible" 0.0; //when icon is visible
1512 rel2.to: "icon_rect";
1514 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1518 part { name: "elm.swallow.content";
1522 description { state: "default" 0.0;
1527 to: "padding_left_top";
1531 to_x: "padding_left_top";
1532 to_y: "padding_right_bottom";
1536 description { state: "visible" 0.0;
1541 to: "padding_left_top";
1545 to_x: "padding_left_top";
1546 to_y: "padding_right_bottom";
1549 aspect_preference: VERTICAL;
1551 description { state: "icononly" 0.0;
1552 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1555 to: "padding_left_top";
1559 to_x: "padding_left_top";
1560 to_y: "padding_right_bottom";
1564 part { name: "elm.text";
1569 description { state: "default" 0.0;
1573 to_x: "padding_icon_text";
1574 to_y: "padding_left_top";
1578 to: "padding_right_bottom";
1580 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1582 font: "SLP:style=Medium";
1583 size: BUTTON_SWEEP_FONT_SIZE_INC;
1587 description { state: "visible" 0.0;
1588 inherit: "default" 0.0;
1590 min: BUTTON_SWEEP_TEXT_MIN_INC;
1592 description { state: "clicked" 0.0;
1593 inherit: "default" 0.0;
1596 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1598 description { state: "disabled" 0.0;
1599 inherit: "default" 0.0;
1602 description { state: "disabled_visible" 0.0;
1603 inherit: "default" 0.0;
1604 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1606 min: BUTTON_SWEEP_TEXT_MIN_INC;
1608 description { state: "focused" 0.0;
1609 inherit: "default" 0.0;
1612 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1615 part { name: "over2";
1618 ignore_flags: ON_HOLD;
1619 description { state: "default" 0.0;
1623 part { name: "over3";
1626 description { state: "default" 0.0;
1630 part { name: "clipper";
1632 description { state: "default" 0.0;
1633 color: 255 255 255 255;
1636 part { name: "disabler";
1638 description { state: "default" 0.0;
1642 description { state: "disabled" 0.0;
1643 inherit: "default" 0.0;
1649 program { name: "button_click";
1650 signal: "mouse,down,1";
1652 action: SIGNAL_EMIT "elm,action,press" "";
1653 after: "button_click_anim";
1655 program { name: "button_click_anim";
1656 action: STATE_SET "clicked" 0.0;
1657 target: "button_image";
1658 after: "text_clicked";
1660 program { name: "text_clicked";
1664 get_state(PART:"elm.text", st, 30, vl);
1665 if (!strcmp(st, "visible"))
1666 set_state(PART:"elm.text", "clicked", 0.0);
1669 program { name: "button_unpress";
1670 action: SIGNAL_EMIT "elm,action,unpress" "";
1672 program { name: "button_mouseout_clicked";
1673 signal: "mouse,up,1";
1678 get_state(PART:"elm.swallow.content", st, 30, vl);
1679 if (strcmp(st, "icononly"))
1681 emit("elm,action,default,text,set", "");
1682 set_state(PART:"elm.text", "visible", 0.0);
1684 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1685 set_state(PART:"button_image", "default", 0.0);
1687 after: button_unpress;
1689 program { name: "button_unclick3";
1690 signal: "mouse,clicked,1";
1692 action: SIGNAL_EMIT "elm,action,click" "";
1694 program { name: "text_show";
1695 signal: "elm,state,text,visible";
1700 get_state(PART:"elm.swallow.content", st, 30, vl);
1701 if (!strcmp(st, "icononly"))
1703 set_state(PART:"elm.swallow.content", "visible", 0.0);
1704 set_state(PART:"padding_icon_text", "visible", 0.0);
1706 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1707 set_state(PART:"elm.text", "visible", 0.0);
1709 set_state(PART:"elm.text", "disabled_visible", 0.0);
1712 program { name: "text_hide";
1713 signal: "elm,state,text,hidden";
1718 get_state(PART:"elm.swallow.content", st, 30, vl);
1719 if (!strcmp(st, "visible"))
1721 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1722 set_state(PART:"padding_icon_text", "icononly", 0.0);
1724 set_state(PART:"elm.text", "default", 0.0);
1727 program { name: "icon_show";
1728 signal: "elm,state,icon,visible";
1733 get_state(PART:"elm.text", st, 30, vl);
1734 if (!strcmp(st, "visible"))
1736 set_state(PART:"elm.swallow.content", "visible", 0.0);
1737 set_state(PART:"padding_icon_text", "visible", 0.0);
1741 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1742 set_state(PART:"padding_icon_text", "icononly", 0.0);
1746 program { name: "icon_hide";
1747 signal: "elm,state,icon,hidden";
1749 action: STATE_SET "default" 0.0;
1750 target: "elm.swallow.content";
1751 target: "padding_icon_text";
1753 program { name: "disable";
1754 signal: "elm,state,disabled";
1756 action: STATE_SET "disabled" 0.0;
1757 target: "button_image";
1759 after: "disable_text";
1761 program { name: "disable_text";
1765 get_state(PART:"elm.text", st, 30, vl);
1766 if (!strcmp(st, "visible"))
1767 set_state(PART:"elm.text", "disabled_visible", 0.0);
1769 set_state(PART:"elm.text", "disabled", 0.0);
1770 set_int(button_state, BUTTON_STATE_DISABLED);
1773 program { name: "enable";
1774 signal: "elm,state,enabled";
1776 action: STATE_SET "default" 0.0;
1777 target: "button_image";
1779 after: "enable_text";
1781 program { name: "enable_text";
1785 get_state(PART:"elm.text", st, 30, vl);
1786 if (!strcmp(st, "disabled_visible"))
1787 set_state(PART:"elm.text", "visible", 0.0);
1789 set_state(PART:"elm.text", "default", 0.0);
1790 set_int(button_state, BUTTON_STATE_ENABLED);
1793 program { name: "focused";
1794 //signal: "elm,action,focus";
1796 action: STATE_SET "focused" 0.0;
1797 target: "button_image";
1800 program { name: "unfocused";
1801 //signal: "elm,action,unfocus";
1803 action: STATE_SET "default" 0.0;
1804 target: "button_image";
1805 after: "unfocus_text";
1807 program { name: "unfocus_text";
1808 action: STATE_SET "visible" 0.0;
1813 ///////////////////////////////////////////////////////////////////////////////////////
1814 group { name: "elm/button/base/searchbar/default";
1816 image: "00_search_input_field_bg.png" COMP;
1817 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1818 image: "00_button_sweep_dim.png" COMP;
1821 public button_state = BUTTON_STATE_ENABLED;
1824 part { name: "button_image";
1826 description { state: "default" 0.0;
1827 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
1829 normal: "00_search_input_field_bg.png";
1830 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
1834 description { state: "clicked" 0.0;
1835 inherit: "default" 0.0;
1837 normal: "00_button_sweep_press.png";
1838 border: BUTTON_SWEEP_BG_BORDER_INC;
1842 description { state: "disabled" 0.0;
1843 inherit: "default" 0.0;
1845 normal: "00_button_sweep_dim.png";
1846 border: BUTTON_SWEEP_BG_BORDER_INC;
1850 description { state: "focused" 0.0;
1851 inherit: "default" 0.0;
1853 normal: "00_button_sweep_press.png";
1854 border: BUTTON_SWEEP_BG_BORDER_INC;
1859 part { name: "padding_left_top";
1863 description { state: "default" 0.0;
1865 rel2.relative: 0.0 0.0;
1866 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1871 part { name: "padding_right_bottom";
1875 description { state: "default" 0.0;
1877 rel1.relative: 1.0 1.0;
1878 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1883 part { name: "icon_rect";
1887 description { state: "default" 0.0;
1888 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
1892 to_x: "elm.swallow.content";
1893 to_y: "padding_left_top";
1897 to_x: "elm.swallow.content";
1898 to_y: "padding_right_bottom";
1904 part { name: "padding_icon_text";
1908 description { state: "default" 0.0; //when only icon or no icon is there
1914 rel2.to: "icon_rect";
1919 description { state: "icononly" 0.0;
1920 inherit: "default" 0.0;
1922 description { state: "visible" 0.0; //when icon is visible
1928 rel2.to: "icon_rect";
1930 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1934 part { name: "elm.swallow.content";
1938 description { state: "default" 0.0;
1943 to: "padding_left_top";
1947 to_x: "padding_left_top";
1948 to_y: "padding_right_bottom";
1952 description { state: "visible" 0.0;
1957 to: "padding_left_top";
1961 to_x: "padding_left_top";
1962 to_y: "padding_right_bottom";
1965 aspect_preference: VERTICAL;
1967 description { state: "icononly" 0.0;
1968 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
1971 to: "padding_left_top";
1975 to_x: "padding_left_top";
1976 to_y: "padding_right_bottom";
1980 part { name: "elm.text";
1985 description { state: "default" 0.0;
1989 to_x: "padding_icon_text";
1990 to_y: "padding_left_top";
1994 to: "padding_right_bottom";
1996 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1998 font: "SLP:style=Medium";
1999 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
2003 description { state: "visible" 0.0;
2004 inherit: "default" 0.0;
2006 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
2008 description { state: "clicked" 0.0;
2009 inherit: "default" 0.0;
2012 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2014 description { state: "disabled" 0.0;
2015 inherit: "default" 0.0;
2018 description { state: "disabled_visible" 0.0;
2019 inherit: "default" 0.0;
2020 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2022 min: BUTTON_SWEEP_TEXT_MIN_INC;
2024 description { state: "focused" 0.0;
2025 inherit: "default" 0.0;
2028 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2031 part { name: "over2";
2034 ignore_flags: ON_HOLD;
2035 description { state: "default" 0.0;
2039 part { name: "over3";
2042 description { state: "default" 0.0;
2046 part { name: "clipper";
2048 description { state: "default" 0.0;
2049 color: 255 255 255 255;
2052 part { name: "disabler";
2054 description { state: "default" 0.0;
2058 description { state: "disabled" 0.0;
2059 inherit: "default" 0.0;
2065 program { name: "button_click";
2066 signal: "mouse,down,1";
2068 action: SIGNAL_EMIT "elm,action,press" "";
2069 after: "button_click_anim";
2071 program { name: "button_click_anim";
2072 action: STATE_SET "clicked" 0.0;
2073 target: "button_image";
2074 after: "text_clicked";
2076 program { name: "text_clicked";
2080 get_state(PART:"elm.text", st, 30, vl);
2081 if (!strcmp(st, "visible"))
2082 set_state(PART:"elm.text", "clicked", 0.0);
2085 program { name: "button_unpress";
2086 action: SIGNAL_EMIT "elm,action,unpress" "";
2088 program { name: "button_mouseout_clicked";
2089 signal: "mouse,up,1";
2094 get_state(PART:"elm.swallow.content", st, 30, vl);
2095 if (strcmp(st, "icononly"))
2097 emit("elm,action,default,text,set", "");
2098 set_state(PART:"elm.text", "visible", 0.0);
2100 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2101 set_state(PART:"button_image", "default", 0.0);
2103 after: button_unpress;
2105 program { name: "button_unclick3";
2106 signal: "mouse,clicked,1";
2108 action: SIGNAL_EMIT "elm,action,click" "";
2110 program { name: "text_show";
2111 signal: "elm,state,text,visible";
2116 get_state(PART:"elm.swallow.content", st, 30, vl);
2117 if (!strcmp(st, "icononly"))
2119 set_state(PART:"elm.swallow.content", "visible", 0.0);
2120 set_state(PART:"padding_icon_text", "visible", 0.0);
2122 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2123 set_state(PART:"elm.text", "visible", 0.0);
2125 set_state(PART:"elm.text", "disabled_visible", 0.0);
2128 program { name: "text_hide";
2129 signal: "elm,state,text,hidden";
2134 get_state(PART:"elm.swallow.content", st, 30, vl);
2135 if (!strcmp(st, "visible"))
2137 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2138 set_state(PART:"padding_icon_text", "icononly", 0.0);
2140 set_state(PART:"elm.text", "default", 0.0);
2143 program { name: "icon_show";
2144 signal: "elm,state,icon,visible";
2149 get_state(PART:"elm.text", st, 30, vl);
2150 if (!strcmp(st, "visible"))
2152 set_state(PART:"elm.swallow.content", "visible", 0.0);
2153 set_state(PART:"padding_icon_text", "visible", 0.0);
2157 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2158 set_state(PART:"padding_icon_text", "icononly", 0.0);
2162 program { name: "icon_hide";
2163 signal: "elm,state,icon,hidden";
2165 action: STATE_SET "default" 0.0;
2166 target: "elm.swallow.content";
2167 target: "padding_icon_text";
2169 program { name: "disable";
2170 signal: "elm,state,disabled";
2172 action: STATE_SET "disabled" 0.0;
2173 target: "button_image";
2175 after: "disable_text";
2177 program { name: "disable_text";
2181 get_state(PART:"elm.text", st, 30, vl);
2182 if (!strcmp(st, "visible"))
2183 set_state(PART:"elm.text", "disabled_visible", 0.0);
2185 set_state(PART:"elm.text", "disabled", 0.0);
2186 set_int(button_state, BUTTON_STATE_DISABLED);
2189 program { name: "enable";
2190 signal: "elm,state,enabled";
2192 action: STATE_SET "default" 0.0;
2193 target: "button_image";
2195 after: "enable_text";
2197 program { name: "enable_text";
2201 get_state(PART:"elm.text", st, 30, vl);
2202 if (!strcmp(st, "disabled_visible"))
2203 set_state(PART:"elm.text", "visible", 0.0);
2205 set_state(PART:"elm.text", "default", 0.0);
2206 set_int(button_state, BUTTON_STATE_ENABLED);
2209 program { name: "focused";
2210 //signal: "elm,action,focus";
2212 action: STATE_SET "focused" 0.0;
2213 target: "button_image";
2216 program { name: "unfocused";
2217 //signal: "elm,action,unfocus";
2219 action: STATE_SET "default" 0.0;
2220 target: "button_image";
2221 after: "unfocus_text";
2223 program { name: "unfocus_text";
2224 action: STATE_SET "visible" 0.0;
2230 ///////////////////////////////////////////////////////////////////////////////////////
2231 group { name: "elm/button/base/sweep/delete";
2233 image: "00_button_sweep.png" COMP;
2234 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
2235 image: "00_button_sweep_dim.png" COMP;
2236 image: "00_button_sweep_delete.png" COMP;
2239 public button_state = BUTTON_STATE_ENABLED;
2242 part { name: "button_image";
2244 description { state: "default" 0.0;
2245 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2247 normal: "00_button_sweep_delete.png";
2248 border: BUTTON_SWEEP_BG_BORDER_INC;
2252 description { state: "clicked" 0.0;
2253 inherit: "default" 0.0;
2254 image.normal: "00_button_sweep_press.png";
2256 description { state: "disabled" 0.0;
2257 inherit: "default" 0.0;
2258 image.normal: "00_button_sweep_dim.png";
2260 description { state: "focused" 0.0;
2261 inherit: "default" 0.0;
2262 image.normal: "00_button_sweep_press.png";
2265 part { name: "padding_left_top";
2269 description { state: "default" 0.0;
2271 rel2.relative: 0.0 0.0;
2272 min: BUTTON_SWEEP_PADDING_MIN_INC;
2277 part { name: "padding_right_bottom";
2281 description { state: "default" 0.0;
2283 rel1.relative: 1.0 1.0;
2284 min: BUTTON_SWEEP_PADDING_MIN_INC;
2289 part { name: "icon_rect";
2293 description { state: "default" 0.0;
2294 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2298 to_x: "elm.swallow.content";
2299 to_y: "padding_left_top";
2303 to_x: "elm.swallow.content";
2304 to_y: "padding_right_bottom";
2310 part { name: "padding_icon_text";
2314 description { state: "default" 0.0; //when only icon or no icon is there
2320 rel2.to: "icon_rect";
2325 description { state: "icononly" 0.0;
2326 inherit: "default" 0.0;
2328 description { state: "visible" 0.0; //when icon is visible
2334 rel2.to: "icon_rect";
2336 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2340 part { name: "elm.swallow.content";
2344 description { state: "default" 0.0;
2349 to: "padding_left_top";
2353 to_x: "padding_left_top";
2354 to_y: "padding_right_bottom";
2358 description { state: "visible" 0.0;
2363 to: "padding_left_top";
2367 to_x: "padding_left_top";
2368 to_y: "padding_right_bottom";
2371 aspect_preference: VERTICAL;
2373 description { state: "icononly" 0.0;
2374 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2377 to: "padding_left_top";
2381 to_x: "padding_left_top";
2382 to_y: "padding_right_bottom";
2386 part { name: "elm.text";
2391 description { state: "default" 0.0;
2394 to_x: "padding_icon_text";
2395 to_y: "padding_left_top";
2399 to: "padding_right_bottom";
2401 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2403 font: "SLP:style=Medium";
2404 size: BUTTON_SWEEP_FONT_SIZE_INC;
2410 description { state: "visible" 0.0;
2411 inherit: "default" 0.0;
2413 description { state: "clicked" 0.0;
2414 inherit: "default" 0.0;
2415 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2417 description { state: "disabled" 0.0;
2418 inherit: "default" 0.0;
2421 description { state: "disabled_visible" 0.0;
2422 inherit: "default" 0.0;
2423 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2425 description { state: "focused" 0.0;
2426 inherit: "default" 0.0;
2429 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2432 part { name: "over2";
2435 ignore_flags: ON_HOLD;
2436 description { state: "default" 0.0;
2440 part { name: "over3";
2443 description { state: "default" 0.0;
2447 part { name: "clipper";
2449 description { state: "default" 0.0;
2450 color: 255 255 255 255;
2453 part { name: "disabler";
2455 description { state: "default" 0.0;
2459 description { state: "disabled" 0.0;
2460 inherit: "default" 0.0;
2466 program { name: "button_click";
2467 signal: "mouse,down,1";
2469 action: SIGNAL_EMIT "elm,action,press" "";
2470 after: "button_click_anim";
2472 program { name: "button_click_anim";
2473 action: STATE_SET "clicked" 0.0;
2474 target: "button_image";
2475 after: "text_clicked";
2477 program { name: "text_clicked";
2481 get_state(PART:"elm.text", st, 30, vl);
2482 if (!strcmp(st, "visible"))
2483 set_state(PART:"elm.text", "clicked", 0.0);
2486 program { name: "button_unpress";
2487 action: SIGNAL_EMIT "elm,action,unpress" "";
2489 program { name: "button_mouseout_clicked";
2490 signal: "mouse,up,1";
2495 get_state(PART:"elm.swallow.content", st, 30, vl);
2496 if (strcmp(st, "icononly"))
2498 emit("elm,action,default,text,set", "");
2499 set_state(PART:"elm.text", "visible", 0.0);
2501 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2502 set_state(PART:"button_image", "default", 0.0);
2504 after: button_unpress;
2506 program { name: "button_unclick3";
2507 signal: "mouse,clicked,1";
2509 action: SIGNAL_EMIT "elm,action,click" "";
2511 program { name: "text_show";
2512 signal: "elm,state,text,visible";
2517 get_state(PART:"elm.swallow.content", st, 30, vl);
2518 if (!strcmp(st, "icononly"))
2520 set_state(PART:"elm.swallow.content", "visible", 0.0);
2521 set_state(PART:"padding_icon_text", "visible", 0.0);
2523 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2524 set_state(PART:"elm.text", "visible", 0.0);
2526 set_state(PART:"elm.text", "disabled_visible", 0.0);
2529 program { name: "text_hide";
2530 signal: "elm,state,text,hidden";
2535 get_state(PART:"elm.swallow.content", st, 30, vl);
2536 if (!strcmp(st, "visible"))
2538 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2539 set_state(PART:"padding_icon_text", "icononly", 0.0);
2541 set_state(PART:"elm.text", "default", 0.0);
2544 program { name: "icon_show";
2545 signal: "elm,state,icon,visible";
2550 get_state(PART:"elm.text", st, 30, vl);
2551 if (!strcmp(st, "visible"))
2553 set_state(PART:"elm.swallow.content", "visible", 0.0);
2554 set_state(PART:"padding_icon_text", "visible", 0.0);
2558 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2559 set_state(PART:"padding_icon_text", "icononly", 0.0);
2563 program { name: "icon_hide";
2564 signal: "elm,state,icon,hidden";
2566 action: STATE_SET "default" 0.0;
2567 target: "elm.swallow.content";
2568 target: "padding_icon_text";
2570 program { name: "disable";
2571 signal: "elm,state,disabled";
2573 action: STATE_SET "disabled" 0.0;
2574 target: "button_image";
2576 after: "disable_text";
2578 program { name: "disable_text";
2582 get_state(PART:"elm.text", st, 30, vl);
2583 if (!strcmp(st, "visible"))
2584 set_state(PART:"elm.text", "disabled_visible", 0.0);
2586 set_state(PART:"elm.text", "disabled", 0.0);
2587 set_int(button_state, BUTTON_STATE_DISABLED);
2590 program { name: "enable";
2591 signal: "elm,state,enabled";
2593 action: STATE_SET "default" 0.0;
2594 target: "button_image";
2596 after: "enable_text";
2598 program { name: "enable_text";
2602 get_state(PART:"elm.text", st, 30, vl);
2603 if (!strcmp(st, "disabled_visible"))
2604 set_state(PART:"elm.text", "visible", 0.0);
2606 set_state(PART:"elm.text", "default", 0.0);
2607 set_int(button_state, BUTTON_STATE_ENABLED);
2610 program { name: "focused";
2611 //signal: "elm,action,focus";
2613 action: STATE_SET "focused" 0.0;
2614 target: "button_image";
2617 program { name: "unfocused";
2618 //signal: "elm,action,unfocus";
2620 action: STATE_SET "default" 0.0;
2621 target: "button_image";
2622 after: "unfocus_text";
2624 program { name: "unfocus_text";
2625 action: STATE_SET "visible" 0.0;
2631 ///////////////////////////////////////////////////////////////////////////////////////
2632 group { name: "elm/button/base/popup_button/default";
2633 alias: "elm/button/base/popup_button/menustyle";
2634 alias: "elm/button/base/popup_button/liststyle";
2635 alias: "elm/button/base/popup_button/volumebarstyle";
2636 alias: "elm/button/base/popup_button/customstyle";
2637 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2639 image: "00_button_popup_normal.png" COMP;
2640 image: "00_button_popup_press.png" COMP;
2641 image: "00_button_popup_focus.png" COMP;
2642 image: "00_button_popup_dim.png" COMP;
2645 public button_state = BUTTON_STATE_ENABLED;
2648 part { name: "button_image";
2650 description { state: "default" 0.0;
2651 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2653 normal: "00_button_popup_normal.png";
2654 border: BUTTON_POPUP_BG_BORDER_INC;
2658 description { state: "clicked" 0.0;
2659 inherit: "default" 0.0;
2660 image.normal: "00_button_popup_press.png";
2662 description { state: "disabled" 0.0;
2663 inherit: "default" 0.0;
2664 image.normal: "00_button_popup_dim.png";
2666 description { state: "focused" 0.0;
2667 inherit: "default" 0.0;
2668 image.normal: "00_button_popup_focus.png";
2671 part { name: "padding_left_top";
2675 description { state: "default" 0.0;
2677 rel2.relative: 0.0 0.0;
2678 min: BUTTON_POPUP_PADDING_MIN_INC;
2683 part { name: "padding_right_bottom";
2686 description { state: "default" 0.0;
2688 rel1.relative: 1.0 1.0;
2689 min: BUTTON_POPUP_PADDING_MIN_INC;
2694 part { name: "padding_icon_text";
2697 description { state: "default" 0.0; //when only icon or no icon is there
2701 to: "elm.swallow.content";
2703 rel2.to: "elm.swallow.content";
2708 description { state: "icononly" 0.0;
2709 inherit: "default" 0.0;
2711 description { state: "visible" 0.0; //when icon is visible
2712 inherit: "default" 0.0;
2713 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2716 part { name: "elm.swallow.content";
2720 description { state: "default" 0.0;
2725 to: "padding_left_top";
2729 to_x: "padding_left_top";
2730 to_y: "padding_right_bottom";
2734 description { state: "visible" 0.0;
2735 inherit: "default" 0.0;
2739 aspect_preference: VERTICAL;
2741 description { state: "icononly" 0.0;
2742 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2745 to: "padding_left_top";
2749 to_x: "padding_left_top";
2750 to_y: "padding_right_bottom";
2754 part { name: "elm.text";
2759 description { state: "default" 0.0;
2763 to_x: "padding_icon_text";
2764 to_y: "padding_left_top";
2768 to: "padding_right_bottom";
2770 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2772 font: "SLP:style=Medium";
2773 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2777 description { state: "visible" 0.0;
2778 inherit: "default" 0.0;
2780 min: BUTTON_POPUP_TEXT_MIN_INC;
2782 description { state: "clicked" 0.0;
2783 inherit: "default" 0.0;
2786 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2788 description { state: "disabled" 0.0;
2789 inherit: "default" 0.0;
2792 description { state: "disabled_visible" 0.0;
2793 inherit: "default" 0.0;
2794 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2796 min: BUTTON_POPUP_TEXT_MIN_INC;
2798 description { state: "focused" 0.0;
2799 inherit: "default" 0.0;
2802 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2805 part { name: "over2";
2808 ignore_flags: ON_HOLD;
2809 description { state: "default" 0.0;
2813 part { name: "over3";
2816 description { state: "default" 0.0;
2820 part { name: "clipper";
2822 description { state: "default" 0.0;
2823 color: 255 255 255 255;
2826 part { name: "disabler";
2828 description { state: "default" 0.0;
2832 description { state: "disabled" 0.0;
2833 inherit: "default" 0.0;
2839 program { name: "button_click";
2840 signal: "mouse,down,1";
2842 action: SIGNAL_EMIT "elm,action,press" "";
2843 after: "button_click_anim";
2845 program { name: "button_click_anim";
2846 action: STATE_SET "clicked" 0.0;
2847 target: "button_image";
2848 after: "text_clicked";
2850 program { name: "text_clicked";
2854 get_state(PART:"elm.text", st, 30, vl);
2855 if (!strcmp(st, "visible"))
2856 set_state(PART:"elm.text", "clicked", 0.0);
2859 program { name: "button_unpress";
2860 action: SIGNAL_EMIT "elm,action,unpress" "";
2862 program { name: "button_mouseout_clicked";
2863 signal: "mouse,up,1";
2868 get_state(PART:"elm.swallow.content", st, 30, vl);
2869 if (strcmp(st, "icononly"))
2871 emit("elm,action,default,text,set", "");
2872 set_state(PART:"elm.text", "visible", 0.0);
2874 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2875 set_state(PART:"button_image", "default", 0.0);
2877 after: button_unpress;
2879 program { name: "button_unclick3";
2880 signal: "mouse,clicked,1";
2882 action: SIGNAL_EMIT "elm,action,click" "";
2884 program { name: "text_show";
2885 signal: "elm,state,text,visible";
2890 get_state(PART:"elm.swallow.content", st, 30, vl);
2891 if (!strcmp(st, "icononly"))
2893 set_state(PART:"elm.swallow.content", "visible", 0.0);
2894 set_state(PART:"padding_icon_text", "visible", 0.0);
2896 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2897 set_state(PART:"elm.text", "visible", 0.0);
2899 set_state(PART:"elm.text", "disabled_visible", 0.0);
2902 program { name: "text_hide";
2903 signal: "elm,state,text,hidden";
2908 get_state(PART:"elm.swallow.content", st, 30, vl);
2909 if (!strcmp(st, "visible"))
2911 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2912 set_state(PART:"padding_icon_text", "icononly", 0.0);
2914 set_state(PART:"elm.text", "default", 0.0);
2917 program { name: "icon_show";
2918 signal: "elm,state,icon,visible";
2923 get_state(PART:"elm.text", st, 30, vl);
2924 if (!strcmp(st, "visible"))
2926 set_state(PART:"elm.swallow.content", "visible", 0.0);
2927 set_state(PART:"padding_icon_text", "visible", 0.0);
2931 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2932 set_state(PART:"padding_icon_text", "icononly", 0.0);
2936 program { name: "icon_hide";
2937 signal: "elm,state,icon,hidden";
2939 action: STATE_SET "default" 0.0;
2940 target: "elm.swallow.content";
2941 target: "padding_icon_text";
2943 program { name: "disable";
2944 signal: "elm,state,disabled";
2946 action: STATE_SET "disabled" 0.0;
2947 target: "button_image";
2949 after: "disable_text";
2951 program { name: "disable_text";
2955 get_state(PART:"elm.text", st, 30, vl);
2956 if (!strcmp(st, "visible"))
2957 set_state(PART:"elm.text", "disabled_visible", 0.0);
2959 set_state(PART:"elm.text", "disabled", 0.0);
2960 set_int(button_state, BUTTON_STATE_DISABLED);
2963 program { name: "enable";
2964 signal: "elm,state,enabled";
2966 action: STATE_SET "default" 0.0;
2967 target: "button_image";
2969 after: "enable_text";
2971 program { name: "enable_text";
2975 get_state(PART:"elm.text", st, 30, vl);
2976 if (!strcmp(st, "disabled_visible"))
2977 set_state(PART:"elm.text", "visible", 0.0);
2979 set_state(PART:"elm.text", "default", 0.0);
2980 set_int(button_state, BUTTON_STATE_ENABLED);
2983 program { name: "focused";
2984 action: STATE_SET "focused" 0.0;
2985 target: "button_image";
2988 program { name: "unfocused";
2989 action: STATE_SET "default" 0.0;
2990 target: "button_image";
2991 after: "unfocus_text";
2993 program { name: "unfocus_text";
2994 action: STATE_SET "visible" 0.0;
3000 ///////////////////////////////////////////////////////////////////////////////////////
3001 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3002 group { name: "elm/button/base/"style_name; \
3004 image: "00_btn_circle_bg_normal.png" COMP; \
3005 image: "00_btn_circle_bg_press.png" COMP; \
3006 image: image_normal COMP; \
3007 image: image_press COMP; \
3010 part { name: "button_image"; \
3012 description { state: "default" 0.0; \
3013 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3014 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3015 image.normal: "00_btn_circle_bg_normal.png"; \
3016 color: 255 255 255 255; \
3019 state: "clicked" 0.0; \
3020 inherit: "default" 0.0; \
3021 image.normal: "00_btn_circle_bg_press.png"; \
3024 state: "disabled" 0.0; \
3025 inherit: "default" 0.0; \
3026 color: 255 255 255 128; \
3029 part { name: "button_center_part"; \
3031 description { state: "default" 0.0; \
3032 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
3033 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
3034 image.normal: image_normal; \
3035 color: 255 255 255 255; \
3038 state: "clicked" 0.0; \
3039 inherit: "default" 0.0; \
3040 image.normal: image_press; \
3043 state: "disabled" 0.0; \
3044 inherit: "default" 0.0; \
3045 color: 255 255 255 128; \
3048 part { name: "over1"; \
3050 ignore_flags: ON_HOLD; \
3051 description { state: "default" 0.0; \
3053 min: min_width min_height; \
3056 part { name: "over2"; \
3058 description { state: "default" 0.0; \
3062 part { name: "disabler"; \
3064 description { state: "default" 0.0; \
3068 description { state: "disabled" 0.0; \
3069 inherit: "default" 0.0; \
3075 program { name: "button_click"; \
3076 signal: "mouse,down,1"; \
3078 action: SIGNAL_EMIT "elm,action,press" ""; \
3079 after: "button_click_anim"; \
3081 program { name: "button_click_anim"; \
3082 action: STATE_SET "clicked" 0.0; \
3083 target: "button_image"; \
3084 target: "button_center_part"; \
3086 program { name: "button_unclick"; \
3087 signal: "mouse,up,1"; \
3089 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3090 after: "button_unclick_anim"; \
3092 program { name: "button_unclick_anim"; \
3093 action: STATE_SET "default" 0.0; \
3094 target: "button_image"; \
3095 target: "button_center_part"; \
3097 program { name: "button_unclick2"; \
3098 signal: "mouse,clicked,1"; \
3100 action: SIGNAL_EMIT "elm,action,click" ""; \
3102 program { name: "disable"; \
3103 signal: "elm,state,disabled"; \
3105 action: STATE_SET "disabled" 0.0; \
3106 target: "disabler"; \
3107 target: "button_image"; \
3108 target: "button_center_part"; \
3110 program { name: "enable"; \
3111 signal: "elm,state,enabled"; \
3113 action: STATE_SET "default" 0.0; \
3114 target: "disabler"; \
3115 target: "button_image"; \
3116 target: "button_center_part"; \
3121 ///////////////////////////////////////////////////////////////////////////////////////
3122 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
3124 ///////////////////////////////////////////////////////////////////////////////////////
3125 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
3127 ///////////////////////////////////////////////////////////////////////////////////////
3128 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
3130 ///////////////////////////////////////////////////////////////////////////////////////
3131 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
3133 ///////////////////////////////////////////////////////////////////////////////////////
3134 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
3136 ///////////////////////////////////////////////////////////////////////////////////////
3137 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
3139 ///////////////////////////////////////////////////////////////////////////////////////
3140 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
3142 ///////////////////////////////////////////////////////////////////////////////////////
3143 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
3145 ///////////////////////////////////////////////////////////////////////////////////////
3146 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
3148 ///////////////////////////////////////////////////////////////////////////////////////
3149 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
3151 ///////////////////////////////////////////////////////////////////////////////////////
3152 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
3154 ///////////////////////////////////////////////////////////////////////////////////////
3155 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
3157 ///////////////////////////////////////////////////////////////////////////////////////
3158 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
3160 ///////////////////////////////////////////////////////////////////////////////////////
3161 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
3163 ///////////////////////////////////////////////////////////////////////////////////////
3164 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
3166 ///////////////////////////////////////////////////////////////////////////////////////
3167 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
3169 ///////////////////////////////////////////////////////////////////////////////////////
3170 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
3172 ///////////////////////////////////////////////////////////////////////////////////////
3173 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
3175 ///////////////////////////////////////////////////////////////////////////////////////
3176 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
3178 ///////////////////////////////////////////////////////////////////////////////////////
3179 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
3181 ///////////////////////////////////////////////////////////////////////////////////////
3182 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
3184 ///////////////////////////////////////////////////////////////////////////////////////
3185 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
3186 ///////////////////////////////////////////////////////////////////////////////////////
3187 group { name: "elm/button/base/circle/empty";
3189 image: "00_btn_circle_bg_normal.png" COMP;
3190 image: "00_btn_circle_bg_press.png" COMP;
3193 part { name: "button_image";
3195 description { state: "default" 0.0;
3196 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3197 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3199 image.normal: "00_btn_circle_bg_normal.png";
3200 color: 255 255 255 255;
3202 description { state: "clicked" 0.0;
3203 inherit: "default" 0.0;
3204 image.normal: "00_btn_circle_bg_press.png";
3206 description { state: "disabled" 0.0;
3207 inherit: "default" 0.0;
3208 color: 255 255 255 128;
3211 part { name: "elm.swallow.content";
3214 description { state: "default" 0.0;
3215 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3216 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3218 color: 255 255 255 255;
3221 state: "disabled" 0.0;
3222 inherit: "default" 0.0;
3223 color: 255 255 255 128;
3226 part { name: "over1";
3228 ignore_flags: ON_HOLD;
3229 description { state: "default" 0.0;
3233 part { name: "over2";
3235 description { state: "default" 0.0;
3239 part { name: "disabler";
3241 description { state: "default" 0.0;
3245 description { state: "disabled" 0.0;
3246 inherit: "default" 0.0;
3252 program { name: "button_click";
3253 signal: "mouse,down,1";
3255 action: SIGNAL_EMIT "elm,action,press" "";
3256 after: "button_click_anim";
3258 program { name: "button_click_anim";
3259 action: STATE_SET "clicked" 0.0;
3260 target: "button_image";
3262 program { name: "button_unclick";
3263 signal: "mouse,up,1";
3265 action: SIGNAL_EMIT "elm,action,unpress" "";
3266 after: "button_unclick_anim";
3268 program { name: "button_unclick_anim";
3269 action: STATE_SET "default" 0.0;
3270 target: "button_image";
3272 program { name: "button_unclick2";
3273 signal: "mouse,clicked,1";
3275 action: SIGNAL_EMIT "elm,action,click" "";
3277 program { name: "disable";
3278 signal: "elm,state,disabled";
3280 action: STATE_SET "disabled" 0.0;
3282 target: "button_image";
3284 program { name: "enable";
3285 signal: "elm,state,enabled";
3287 action: STATE_SET "default" 0.0;
3289 target: "button_image";
3291 program { name: "icon_show";
3292 signal: "elm,state,icon,visible";
3294 action: STATE_SET "visible" 0.0;
3295 target: "elm.swallow.content";
3297 program { name: "icon_hide";
3298 signal: "elm,state,icon,hidden";
3300 action: STATE_SET "default" 0.0;
3301 target: "elm.swallow.content";
3306 ///////////////////////////////////////////////////////////////////////////////////////
3307 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3308 group { name: "elm/button/base/contacts/"style_name; \
3309 alias: "elm/button/base/"style_name; \
3311 image: image_normal COMP; \
3312 image: image_press COMP; \
3313 image: "00_button_edit.png" COMP; \
3314 image: "00_button_edit_press.png" COMP; \
3315 image: "00_button_edit_dim.png" COMP; \
3318 part { name: "button_image"; \
3320 description { state: "default" 0.0; \
3321 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3322 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3324 normal: "00_button_edit.png"; \
3325 border: BUTTON_EDIT_STYLE_BORDER_INC; \
3330 state: "clicked" 0.0; \
3331 inherit: "default" 0.0; \
3332 image.normal: "00_button_edit_press.png"; \
3335 state: "disabled" 0.0; \
3336 inherit: "default" 0.0; \
3337 image.normal: "00_button_edit_dim.png"; \
3340 part { name: "button_center_part"; \
3343 description { state: "default" 0.0; \
3344 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3345 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3347 normal: image_normal; \
3348 border: BUTTON_EDIT_STYLE_BORDER_INC; \
3353 state: "clicked" 0.0; \
3354 inherit: "default" 0.0; \
3355 image.normal: image_press; \
3358 part { name: "over1"; \
3361 ignore_flags: ON_HOLD; \
3362 description { state: "default" 0.0; \
3364 min: min_width min_height; \
3367 part { name: "over2"; \
3369 description { state: "default" 0.0; \
3373 part { name: "disabler"; \
3375 description { state: "default" 0.0; \
3379 description { state: "disabled" 0.0; \
3380 inherit: "default" 0.0; \
3386 program { name: "button_click"; \
3387 signal: "mouse,down,1"; \
3389 action: SIGNAL_EMIT "elm,action,press" ""; \
3390 after: "button_click_anim"; \
3392 program { name: "button_click_anim"; \
3393 action: STATE_SET "clicked" 0.0; \
3394 target: "button_image"; \
3395 target: "button_center_part"; \
3397 program { name: "button_unclick"; \
3398 signal: "mouse,up,1"; \
3400 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3401 after: "button_unclick_anim"; \
3403 program { name: "button_unclick_anim"; \
3404 action: STATE_SET "default" 0.0; \
3405 target: "button_image"; \
3406 target: "button_center_part"; \
3408 program { name: "button_unclick2"; \
3409 signal: "mouse,clicked,1"; \
3411 action: SIGNAL_EMIT "elm,action,click" ""; \
3413 program { name: "disable"; \
3414 signal: "elm,state,disabled"; \
3416 action: STATE_SET "disabled" 0.0; \
3417 target: "disabler"; \
3418 target: "button_image"; \
3420 program { name: "enable"; \
3421 signal: "elm,state,enabled"; \
3423 action: STATE_SET "default" 0.0; \
3424 target: "disabler"; \
3425 target: "button_image"; \
3429 ///////////////////////////////////////////////////////////////////////////////////////
3430 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)
3432 ///////////////////////////////////////////////////////////////////////////////////////
3433 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)
3435 ///////////////////////////////////////////////////////////////////////////////////////
3436 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)
3438 ///////////////////////////////////////////////////////////////////////////////////////
3439 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)
3441 ///////////////////////////////////////////////////////////////////////////////////////
3442 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)
3444 ///////////////////////////////////////////////////////////////////////////////////////
3445 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)
3447 ///////////////////////////////////////////////////////////////////////////////////////
3448 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)
3450 ///////////////////////////////////////////////////////////////////////////////////////
3451 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)
3453 ///////////////////////////////////////////////////////////////////////////////////////
3454 group { name: "elm/button/base/contacts/delete";
3456 image: "00_button_edit.png" COMP;
3457 image: "00_button_edit_press.png" COMP;
3458 image: "00_button_edit_dim.png" COMP;
3461 public button_state = BUTTON_STATE_ENABLED;
3464 part { name: "button_image";
3466 description { state: "default" 0.0;
3467 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
3469 normal: "00_button_edit.png";
3470 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
3474 description { state: "clicked" 0.0;
3475 inherit: "default" 0.0;
3476 image.normal: "00_button_edit_press.png";
3478 description { state: "disabled" 0.0;
3479 inherit: "default" 0.0;
3480 image.normal: "00_button_edit_dim.png";
3482 description { state: "focused" 0.0;
3483 inherit: "default" 0.0;
3484 image.normal: "00_button_edit_press.png";
3487 part { name: "padding_left_top";
3491 description { state: "default" 0.0;
3493 rel2.relative: 0.0 0.0;
3494 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
3499 part { name: "padding_right_bottom";
3503 description { state: "default" 0.0;
3505 rel1.relative: 1.0 1.0;
3506 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
3511 part { name: "padding_icon_text";
3515 description { state: "default" 0.0; //when only icon or no icon is there
3519 to: "elm.swallow.content";
3521 rel2.to: "elm.swallow.content";
3526 description { state: "icononly" 0.0;
3527 inherit: "default" 0.0;
3529 description { state: "visible" 0.0; //when icon is visible
3530 inherit: "default" 0.0;
3531 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3534 part { name: "elm.swallow.content";
3538 description { state: "default" 0.0;
3543 to: "padding_left_top";
3547 to_x: "padding_left_top";
3548 to_y: "padding_right_bottom";
3552 description { state: "visible" 0.0;
3557 to: "padding_left_top";
3561 to_x: "padding_left_top";
3562 to_y: "padding_right_bottom";
3565 aspect_preference: VERTICAL;
3567 description { state: "icononly" 0.0;
3568 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
3571 to: "padding_left_top";
3575 to: "padding_right_bottom";
3578 aspect_preference: VERTICAL;
3581 part { name: "elm.text";
3586 description { state: "default" 0.0;
3589 to_x: "padding_icon_text";
3590 to_y: "padding_left_top";
3594 to: "padding_right_bottom";
3596 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
3598 font: "SLP:style=Medium";
3599 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
3605 description { state: "visible" 0.0;
3606 inherit: "default" 0.0;
3608 description { state: "clicked" 0.0;
3609 inherit: "default" 0.0;
3610 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3612 description { state: "disabled" 0.0;
3613 inherit: "default" 0.0;
3616 description { state: "disabled_visible" 0.0;
3617 inherit: "default" 0.0;
3618 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
3620 description { state: "focused" 0.0;
3621 inherit: "default" 0.0;
3623 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3626 part { name: "over2";
3629 ignore_flags: ON_HOLD;
3630 description { state: "default" 0.0;
3634 part { name: "over3";
3637 description { state: "default" 0.0;
3641 part { name: "clipper";
3643 description { state: "default" 0.0;
3644 color: 255 255 255 255;
3647 part { name: "disabler";
3649 description { state: "default" 0.0;
3653 description { state: "disabled" 0.0;
3654 inherit: "default" 0.0;
3660 program { name: "button_click";
3661 signal: "mouse,down,1";
3663 action: SIGNAL_EMIT "elm,action,press" "";
3664 after: "button_click_anim";
3666 program { name: "button_click_anim";
3667 action: STATE_SET "clicked" 0.0;
3668 target: "button_image";
3669 after: "text_clicked";
3671 program { name: "text_clicked";
3675 get_state(PART:"elm.text", st, 30, vl);
3676 if (!strcmp(st, "visible"))
3677 set_state(PART:"elm.text", "clicked", 0.0);
3680 program { name: "button_unpress";
3681 action: SIGNAL_EMIT "elm,action,unpress" "";
3683 program { name: "button_mouseout_clicked";
3684 signal: "mouse,up,1";
3689 get_state(PART:"elm.swallow.content", st, 30, vl);
3690 if (strcmp(st, "icononly"))
3692 emit("elm,action,default,text,set", "");
3693 set_state(PART:"elm.text", "visible", 0.0);
3695 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3696 set_state(PART:"button_image", "default", 0.0);
3698 after: button_unpress;
3700 program { name: "button_unclick3";
3701 signal: "mouse,clicked,1";
3703 action: SIGNAL_EMIT "elm,action,click" "";
3705 program { name: "text_show";
3706 signal: "elm,state,text,visible";
3711 get_state(PART:"elm.swallow.content", st, 30, vl);
3712 if (!strcmp(st, "icononly"))
3714 set_state(PART:"elm.swallow.content", "visible", 0.0);
3715 set_state(PART:"padding_icon_text", "visible", 0.0);
3717 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3718 set_state(PART:"elm.text", "visible", 0.0);
3720 set_state(PART:"elm.text", "disabled_visible", 0.0);
3723 program { name: "text_hide";
3724 signal: "elm,state,text,hidden";
3729 get_state(PART:"elm.swallow.content", st, 30, vl);
3730 if (!strcmp(st, "visible"))
3732 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3733 set_state(PART:"padding_icon_text", "icononly", 0.0);
3735 set_state(PART:"elm.text", "default", 0.0);
3738 program { name: "icon_show";
3739 signal: "elm,state,icon,visible";
3744 get_state(PART:"elm.text", st, 30, vl);
3745 if (!strcmp(st, "visible"))
3747 set_state(PART:"elm.swallow.content", "visible", 0.0);
3748 set_state(PART:"padding_icon_text", "visible", 0.0);
3752 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3753 set_state(PART:"padding_icon_text", "icononly", 0.0);
3757 program { name: "icon_hide";
3758 signal: "elm,state,icon,hidden";
3760 action: STATE_SET "default" 0.0;
3761 target: "elm.swallow.content";
3762 target: "padding_icon_text";
3764 program { name: "disable";
3765 signal: "elm,state,disabled";
3767 action: STATE_SET "disabled" 0.0;
3768 target: "button_image";
3770 after: "disable_text";
3772 program { name: "disable_text";
3776 get_state(PART:"elm.text", st, 30, vl);
3777 if (!strcmp(st, "visible"))
3778 set_state(PART:"elm.text", "disabled_visible", 0.0);
3780 set_state(PART:"elm.text", "disabled", 0.0);
3781 set_int(button_state, BUTTON_STATE_DISABLED);
3784 program { name: "enable";
3785 signal: "elm,state,enabled";
3787 action: STATE_SET "default" 0.0;
3788 target: "button_image";
3790 after: "enable_text";
3792 program { name: "enable_text";
3796 get_state(PART:"elm.text", st, 30, vl);
3797 if (!strcmp(st, "disabled_visible"))
3798 set_state(PART:"elm.text", "visible", 0.0);
3800 set_state(PART:"elm.text", "default", 0.0);
3801 set_int(button_state, BUTTON_STATE_ENABLED);
3804 program { name: "focused";
3805 //signal: "elm,action,focus";
3807 action: STATE_SET "focused" 0.0;
3808 target: "button_image";
3811 program { name: "unfocused";
3812 //signal: "elm,action,unfocus";
3814 action: STATE_SET "default" 0.0;
3815 target: "button_image";
3816 after: "unfocus_text";
3818 program { name: "unfocus_text";
3819 action: STATE_SET "visible" 0.0;
3825 ///////////////////////////////////////////////////////////////////////////////////////
3826 group { name: "elm/button/base/multiline";
3827 alias: "elm/button/base/text_only/multiline";
3829 image: "00_button_04_normal.png" COMP;
3830 image: "00_button_04_press.png" COMP;
3831 image: "00_button_04_dim.png" COMP;
3834 public button_state = BUTTON_STATE_ENABLED;
3837 style { name: "btn_multiline_style";
3838 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
3845 part { name: "button_image";
3847 description { state: "default" 0.0;
3850 normal: "00_button_04_normal.png";
3855 description { state: "clicked" 0.0;
3856 inherit: "default" 0.0;
3857 image.normal: "00_button_04_press.png";
3859 description { state: "disabled" 0.0;
3860 inherit: "default" 0.0;
3861 image.normal: "00_button_04_dim.png";
3863 description { state: "focused" 0.0;
3864 inherit: "default" 0.0;
3865 image.normal: "00_button_04_press.png";
3868 part { name: "padding_left_top";
3872 description { state: "default" 0.0;
3874 rel2.relative: 0.0 0.0;
3880 part { name: "padding_right_bottom";
3884 description { state: "default" 0.0;
3886 rel1.relative: 1.0 1.0;
3892 part { name: "icon_rect";
3896 description { state: "default" 0.0;
3902 to_x: "elm.swallow.content";
3903 to_y: "padding_left_top";
3907 to_x: "elm.swallow.content";
3908 to_y: "padding_right_bottom";
3914 part { name: "padding_icon_text";
3918 description { state: "default" 0.0; //when only icon or no icon is there
3924 rel2.to: "icon_rect";
3929 description { state: "icononly" 0.0;
3930 inherit: "default" 0.0;
3932 description { state: "visible" 0.0; //when icon is visible
3938 rel2.to: "icon_rect";
3944 part { name: "elm.swallow.content";
3948 description { state: "default" 0.0;
3953 to: "padding_left_top";
3957 to_x: "padding_left_top";
3958 to_y: "padding_right_bottom";
3962 description { state: "visible" 0.0;
3967 to: "padding_left_top";
3971 to_x: "padding_left_top";
3972 to_y: "padding_right_bottom";
3975 aspect_preference: VERTICAL;
3977 description { state: "icononly" 0.0;
3981 to: "padding_left_top";
3985 to: "padding_right_bottom";
3988 aspect_preference: VERTICAL;
3991 part { name: "elm.text";
3996 description { state: "default" 0.0;
4000 to_x: "padding_icon_text";
4001 to_y: "padding_left_top";
4005 to: "padding_right_bottom";
4007 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4009 style: "btn_multiline_style";
4014 description { state: "visible" 0.0;
4015 inherit: "default" 0.0;
4019 description { state: "clicked" 0.0;
4020 inherit: "default" 0.0;
4023 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4025 description { state: "disabled" 0.0;
4026 inherit: "default" 0.0;
4029 description { state: "disabled_visible" 0.0;
4030 inherit: "default" 0.0;
4031 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
4035 description { state: "focused" 0.0;
4036 inherit: "default" 0.0;
4039 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4042 part { name: "over2";
4045 ignore_flags: ON_HOLD;
4046 description { state: "default" 0.0;
4050 part { name: "over3";
4053 description { state: "default" 0.0;
4057 part { name: "clipper";
4059 description { state: "default" 0.0;
4060 color: 255 255 255 255;
4063 part { name: "disabler";
4065 description { state: "default" 0.0;
4069 description { state: "disabled" 0.0;
4070 inherit: "default" 0.0;
4076 program { name: "button_click";
4077 signal: "mouse,down,1";
4079 action: SIGNAL_EMIT "elm,action,press" "";
4080 after: "button_click_anim";
4082 program { name: "button_click_anim";
4083 action: STATE_SET "clicked" 0.0;
4084 target: "button_image";
4085 after: "text_clicked";
4087 program { name: "text_clicked";
4091 get_state(PART:"elm.text", st, 30, vl);
4092 if (!strcmp(st, "visible"))
4093 set_state(PART:"elm.text", "clicked", 0.0);
4096 program { name: "button_unpress";
4097 action: SIGNAL_EMIT "elm,action,unpress" "";
4099 program { name: "button_mouseout_clicked";
4100 signal: "mouse,up,1";
4105 get_state(PART:"elm.swallow.content", st, 30, vl);
4106 if (strcmp(st, "icononly"))
4108 emit("elm,action,default,text,set", "");
4109 set_state(PART:"elm.text", "visible", 0.0);
4111 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4112 set_state(PART:"button_image", "default", 0.0);
4114 after: button_unpress;
4116 program { name: "button_unclick3";
4117 signal: "mouse,clicked,1";
4119 action: SIGNAL_EMIT "elm,action,click" "";
4121 program { name: "text_show";
4122 signal: "elm,state,text,visible";
4127 get_state(PART:"elm.swallow.content", st, 30, vl);
4128 if (!strcmp(st, "icononly"))
4130 set_state(PART:"elm.swallow.content", "visible", 0.0);
4131 set_state(PART:"padding_icon_text", "visible", 0.0);
4133 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4134 set_state(PART:"elm.text", "visible", 0.0);
4136 set_state(PART:"elm.text", "disabled_visible", 0.0);
4139 program { name: "text_hide";
4140 signal: "elm,state,text,hidden";
4145 get_state(PART:"elm.swallow.content", st, 30, vl);
4146 if (!strcmp(st, "visible"))
4148 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4149 set_state(PART:"padding_icon_text", "icononly", 0.0);
4151 set_state(PART:"elm.text", "default", 0.0);
4154 program { name: "icon_show";
4155 signal: "elm,state,icon,visible";
4160 get_state(PART:"elm.text", st, 30, vl);
4161 if (!strcmp(st, "visible"))
4163 set_state(PART:"elm.swallow.content", "visible", 0.0);
4164 set_state(PART:"padding_icon_text", "visible", 0.0);
4168 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4169 set_state(PART:"padding_icon_text", "icononly", 0.0);
4173 program { name: "icon_hide";
4174 signal: "elm,state,icon,hidden";
4176 action: STATE_SET "default" 0.0;
4177 target: "elm.swallow.content";
4178 target: "padding_icon_text";
4180 program { name: "disable";
4181 signal: "elm,state,disabled";
4183 action: STATE_SET "disabled" 0.0;
4184 target: "button_image";
4186 after: "disable_text";
4188 program { name: "disable_text";
4192 get_state(PART:"elm.text", st, 30, vl);
4193 if (!strcmp(st, "visible"))
4194 set_state(PART:"elm.text", "disabled_visible", 0.0);
4196 set_state(PART:"elm.text", "disabled", 0.0);
4197 set_int(button_state, BUTTON_STATE_DISABLED);
4200 program { name: "enable";
4201 signal: "elm,state,enabled";
4203 action: STATE_SET "default" 0.0;
4204 target: "button_image";
4206 after: "enable_text";
4208 program { name: "enable_text";
4212 get_state(PART:"elm.text", st, 30, vl);
4213 if (!strcmp(st, "disabled_visible"))
4214 set_state(PART:"elm.text", "visible", 0.0);
4216 set_state(PART:"elm.text", "default", 0.0);
4217 set_int(button_state, BUTTON_STATE_ENABLED);
4220 program { name: "focused";
4221 //signal: "elm,action,focus";
4223 action: STATE_SET "focused" 0.0;
4224 target: "button_image";
4227 program { name: "unfocused";
4228 //signal: "elm,action,unfocus";
4230 action: STATE_SET "default" 0.0;
4231 target: "button_image";
4232 after: "unfocus_text";
4234 program { name: "unfocus_text";
4235 action: STATE_SET "visible" 0.0;
4241 ///////////////////////////////////////////////////////////////////////////////////////
4242 group { name: "elm/button/base/default";
4244 image: "00_button_01_normal.png" COMP;
4245 image: "00_button_01_normal_press.png" COMP;
4246 image: "00_button_01_normal_dim.png" COMP;
4249 public button_state = BUTTON_STATE_ENABLED;
4252 part { name: "button_image";
4254 description { state: "default" 0.0;
4255 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
4257 normal: "00_button_01_normal.png";
4258 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
4262 description { state: "clicked" 0.0;
4263 inherit: "default" 0.0;
4264 image.normal: "00_button_01_normal_press.png";
4266 description { state: "disabled" 0.0;
4267 inherit: "default" 0.0;
4268 image.normal: "00_button_01_normal_dim.png";
4270 description { state: "focused" 0.0;
4271 inherit: "default" 0.0;
4272 image.normal: "00_button_01_normal_press.png";
4275 part { name: "padding_left_top";
4279 description { state: "default" 0.0;
4281 rel2.relative: 0.0 0.0;
4282 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
4287 part { name: "padding_right_bottom";
4291 description { state: "default" 0.0;
4293 rel1.relative: 1.0 1.0;
4294 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
4299 part { name: "padding_icon_text";
4303 description { state: "default" 0.0; //when only icon or no icon is there
4308 to: "elm.swallow.content";
4310 rel2.to: "elm.swallow.content";
4314 description { state: "icononly" 0.0;
4315 inherit: "default" 0.0;
4317 description { state: "visible" 0.0; //when icon is visible
4318 inherit: "default" 0.0;
4319 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4322 part { name: "elm.swallow.content";
4326 description { state: "default" 0.0;
4331 to: "padding_left_top";
4335 to_x: "padding_left_top";
4336 to_y: "padding_right_bottom";
4340 description { state: "visible" 0.0;
4345 to: "padding_left_top";
4349 to_x: "padding_left_top";
4350 to_y: "padding_right_bottom";
4353 aspect_preference: VERTICAL;
4355 description { state: "icononly" 0.0;
4356 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
4359 to_x: "padding_left_top";
4363 to_x: "padding_right_bottom";
4366 aspect_preference: VERTICAL;
4369 part { name: "elm.text";
4374 description { state: "default" 0.0;
4379 to_x: "padding_icon_text";
4380 to_y: "padding_left_top";
4384 to: "padding_right_bottom";
4386 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
4388 font: "SLP:style=Medium";
4389 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
4393 description { state: "visible" 0.0;
4394 inherit: "default" 0.0;
4396 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4398 description { state: "clicked" 0.0;
4399 inherit: "default" 0.0;
4401 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4402 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
4404 description { state: "disabled" 0.0;
4405 inherit: "default" 0.0;
4407 description { state: "disabled_visible" 0.0;
4408 inherit: "default" 0.0;
4409 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
4411 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4413 description { state: "focused" 0.0;
4414 inherit: "default" 0.0;
4417 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
4420 part { name: "over2";
4423 ignore_flags: ON_HOLD;
4424 description { state: "default" 0.0;
4428 part { name: "over3";
4431 description { state: "default" 0.0;
4435 part { name: "clipper";
4437 description { state: "default" 0.0;
4438 color: 255 255 255 255;
4441 part { name: "disabler";
4443 description { state: "default" 0.0;
4447 description { state: "disabled" 0.0;
4448 inherit: "default" 0.0;
4454 program { name: "button_click";
4455 signal: "mouse,down,1";
4457 action: SIGNAL_EMIT "elm,action,press" "";
4458 after: "button_click_anim";
4460 program { name: "button_click_anim";
4461 action: STATE_SET "clicked" 0.0;
4462 target: "button_image";
4463 after: "text_clicked";
4465 program { name: "text_clicked";
4469 get_state(PART:"elm.text", st, 30, vl);
4470 if (!strcmp(st, "visible"))
4471 set_state(PART:"elm.text", "clicked", 0.0);
4474 program { name: "button_unpress";
4475 action: SIGNAL_EMIT "elm,action,unpress" "";
4477 program { name: "button_mouseout_clicked";
4478 signal: "mouse,up,1";
4483 get_state(PART:"elm.swallow.content", st, 30, vl);
4484 if (strcmp(st, "icononly"))
4486 emit("elm,action,default,text,set", "");
4487 set_state(PART:"elm.text", "visible", 0.0);
4489 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4490 set_state(PART:"button_image", "default", 0.0);
4492 after: button_unpress;
4494 program { name: "button_unclick3";
4495 signal: "mouse,clicked,1";
4497 action: SIGNAL_EMIT "elm,action,click" "";
4499 program { name: "text_show";
4500 signal: "elm,state,text,visible";
4505 get_state(PART:"elm.swallow.content", st, 30, vl);
4506 if (!strcmp(st, "icononly"))
4508 set_state(PART:"elm.swallow.content", "visible", 0.0);
4509 set_state(PART:"padding_icon_text", "visible", 0.0);
4511 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4512 set_state(PART:"elm.text", "visible", 0.0);
4514 set_state(PART:"elm.text", "disabled_visible", 0.0);
4517 program { name: "text_hide";
4518 signal: "elm,state,text,hidden";
4523 get_state(PART:"elm.swallow.content", st, 30, vl);
4524 if (!strcmp(st, "visible"))
4526 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4527 set_state(PART:"padding_icon_text", "icononly", 0.0);
4529 set_state(PART:"elm.text", "default", 0.0);
4532 program { name: "icon_show";
4533 signal: "elm,state,icon,visible";
4538 get_state(PART:"elm.text", st, 30, vl);
4539 if (!strcmp(st, "visible"))
4541 set_state(PART:"elm.swallow.content", "visible", 0.0);
4542 set_state(PART:"padding_icon_text", "visible", 0.0);
4546 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4547 set_state(PART:"padding_icon_text", "icononly", 0.0);
4551 program { name: "icon_hide";
4552 signal: "elm,state,icon,hidden";
4554 action: STATE_SET "default" 0.0;
4555 target: "elm.swallow.content";
4556 target: "padding_icon_text";
4558 program { name: "disable";
4559 signal: "elm,state,disabled";
4561 action: STATE_SET "disabled" 0.0;
4562 target: "button_image";
4564 after: "disable_text";
4566 program { name: "disable_text";
4570 get_state(PART:"elm.text", st, 30, vl);
4571 if (!strcmp(st, "visible"))
4572 set_state(PART:"elm.text", "disabled_visible", 0.0);
4574 set_state(PART:"elm.text", "disabled", 0.0);
4575 set_int(button_state, BUTTON_STATE_DISABLED);
4578 program { name: "enable";
4579 signal: "elm,state,enabled";
4581 action: STATE_SET "default" 0.0;
4582 target: "button_image";
4584 after: "enable_text";
4586 program { name: "enable_text";
4590 get_state(PART:"elm.text", st, 30, vl);
4591 if (!strcmp(st, "disabled_visible"))
4592 set_state(PART:"elm.text", "visible", 0.0);
4594 set_state(PART:"elm.text", "default", 0.0);
4595 set_int(button_state, BUTTON_STATE_ENABLED);
4598 program { name: "focused";
4599 //signal: "elm,action,focus";
4601 action: STATE_SET "focused" 0.0;
4602 target: "button_image";
4605 program { name: "unfocused";
4606 //signal: "elm,action,unfocus";
4608 action: STATE_SET "default" 0.0;
4609 target: "button_image";
4610 after: "unfocus_text";
4612 program { name: "unfocus_text";
4613 action: STATE_SET "visible" 0.0;
4619 ///////////////////////////////////////////////////////////////////////////////////////
4620 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
4621 group { name: "elm/button/base/"style_name; \
4623 image: image_normal COMP; \
4624 image: image_press COMP; \
4625 image: image_disable COMP; \
4628 public button_state = BUTTON_STATE_ENABLED; \
4631 part { name: "button_image"; \
4633 description { state: "default" 0.0; \
4634 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4636 normal: image_normal; \
4637 border: COLORSELECTOR_BUTTON_BORDER; \
4641 description { state: "clicked" 0.0; \
4642 inherit: "default" 0.0; \
4643 image.normal: image_press; \
4645 description { state: "disabled" 0.0; \
4646 inherit: "default" 0.0; \
4647 image.normal: image_disable; \
4649 description { state: "focused" 0.0; \
4650 inherit: "default" 0.0; \
4651 image.normal: image_press; \
4654 part { name: "over2"; \
4657 ignore_flags: ON_HOLD; \
4658 description { state: "default" 0.0; \
4662 part { name: "over3"; \
4665 description { state: "default" 0.0; \
4669 part { name: "disabler"; \
4671 description { state: "default" 0.0; \
4675 description { state: "disabled" 0.0; \
4676 inherit: "default" 0.0; \
4682 program { name: "button_click"; \
4683 signal: "mouse,down,1"; \
4685 action: SIGNAL_EMIT "elm,action,press" ""; \
4686 after: "button_click_anim"; \
4688 program { name: "button_click_anim"; \
4689 action: STATE_SET "clicked" 0.0; \
4690 target: "button_image"; \
4692 program { name: "button_unpress"; \
4693 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4695 program { name: "button_mouseout_clicked"; \
4696 signal: "mouse,up,1"; \
4699 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
4700 set_state(PART:"button_image", "default", 0.0); \
4702 after: button_unpress; \
4704 program { name: "button_unclick3"; \
4705 signal: "mouse,clicked,1"; \
4707 action: SIGNAL_EMIT "elm,action,click" ""; \
4709 program { name: "disable"; \
4710 signal: "elm,state,disabled"; \
4712 action: STATE_SET "disabled" 0.0; \
4713 target: "button_image"; \
4714 target: "disabler"; \
4716 set_int(button_state, BUTTON_STATE_DISABLED); \
4719 program { name: "enable"; \
4720 signal: "elm,state,enabled"; \
4722 action: STATE_SET "default" 0.0; \
4723 target: "button_image"; \
4724 target: "disabler"; \
4726 set_int(button_state, BUTTON_STATE_ENABLED); \
4731 ///////////////////////////////////////////////////////////////////////////////////////
4732 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")
4733 ///////////////////////////////////////////////////////////////////////////////////////
4734 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")
4735 ///////////////////////////////////////////////////////////////////////////////////////
4736 group { name: "elm/button/base/hidden";
4738 image: "00_button_sweep.png" COMP;
4739 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4742 public button_state = BUTTON_STATE_ENABLED;
4745 part { name: "button_image";
4747 description { state: "default" 0.0;
4748 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4750 normal: "00_button_sweep.png";
4751 border: BUTTON_HIDDEN_BG_BORDER_INC;
4755 description { state: "clicked" 0.0;
4756 inherit: "default" 0.0;
4757 image.normal: "00_button_sweep_press.png";
4759 description { state: "disabled" 0.0;
4760 inherit: "default" 0.0;
4762 description { state: "focused" 0.0;
4763 inherit: "default" 0.0;
4764 image.normal: "00_button_sweep_press.png";
4767 part { name: "padding_left_top";
4771 description { state: "default" 0.0;
4773 rel2.relative: 0.0 0.0;
4774 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4779 part { name: "padding_right_bottom";
4783 description { state: "default" 0.0;
4785 rel1.relative: 1.0 1.0;
4786 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4791 part { name: "icon_rect";
4795 description { state: "default" 0.0;
4796 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4800 to_x: "elm.swallow.content";
4801 to_y: "padding_left_top";
4805 to_x: "elm.swallow.content";
4806 to_y: "padding_right_bottom";
4812 part { name: "padding_icon_text";
4816 description { state: "default" 0.0; //when only icon or no icon is there
4822 rel2.to: "icon_rect";
4827 description { state: "icononly" 0.0;
4828 inherit: "default" 0.0;
4830 description { state: "visible" 0.0; //when icon is visible
4836 rel2.to: "icon_rect";
4838 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4842 part { name: "elm.swallow.content";
4846 description { state: "default" 0.0;
4851 to: "padding_left_top";
4855 to_x: "padding_left_top";
4856 to_y: "padding_right_bottom";
4860 description { state: "visible" 0.0;
4865 to: "padding_left_top";
4869 to_x: "padding_left_top";
4870 to_y: "padding_right_bottom";
4873 aspect_preference: VERTICAL;
4875 description { state: "icononly" 0.0;
4876 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4879 to: "padding_left_top";
4883 to_x: "padding_left_top";
4884 to_y: "padding_right_bottom";
4887 aspect_preference: VERTICAL;
4890 part { name: "elm.text";
4895 description { state: "default" 0.0;
4899 to_x: "padding_icon_text";
4900 to_y: "padding_left_top";
4904 to: "padding_right_bottom";
4906 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4908 font: "SLP:style=Medium";
4909 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4913 description { state: "visible" 0.0;
4914 inherit: "default" 0.0;
4916 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4918 description { state: "clicked" 0.0;
4919 inherit: "default" 0.0;
4922 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4924 description { state: "disabled" 0.0;
4925 inherit: "default" 0.0;
4928 description { state: "disabled_visible" 0.0;
4929 inherit: "default" 0.0;
4930 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4932 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4934 description { state: "focused" 0.0;
4935 inherit: "default" 0.0;
4938 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4941 part { name: "over2";
4944 ignore_flags: ON_HOLD;
4945 description { state: "default" 0.0;
4949 part { name: "over3";
4952 description { state: "default" 0.0;
4956 part { name: "clipper";
4958 description { state: "default" 0.0;
4959 color: 255 255 255 255;
4962 part { name: "disabler";
4964 description { state: "default" 0.0;
4968 description { state: "disabled" 0.0;
4969 inherit: "default" 0.0;
4975 program { name: "button_click";
4976 signal: "mouse,down,1";
4978 action: SIGNAL_EMIT "elm,action,press" "";
4979 after: "button_click_anim";
4981 program { name: "button_click_anim";
4982 action: STATE_SET "clicked" 0.0;
4983 target: "button_image";
4984 after: "text_clicked";
4986 program { name: "text_clicked";
4990 get_state(PART:"elm.text", st, 30, vl);
4991 if (!strcmp(st, "visible"))
4992 set_state(PART:"elm.text", "clicked", 0.0);
4995 program { name: "button_unpress";
4996 action: SIGNAL_EMIT "elm,action,unpress" "";
4998 program { name: "button_mouseout_clicked";
4999 signal: "mouse,up,1";
5004 get_state(PART:"elm.swallow.content", st, 30, vl);
5005 if (strcmp(st, "icononly"))
5007 emit("elm,action,default,text,set", "");
5008 set_state(PART:"elm.text", "visible", 0.0);
5010 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5011 set_state(PART:"button_image", "default", 0.0);
5013 after: button_unpress;
5015 program { name: "button_unclick3";
5016 signal: "mouse,clicked,1";
5018 action: SIGNAL_EMIT "elm,action,click" "";
5020 program { name: "text_show";
5021 signal: "elm,state,text,visible";
5026 get_state(PART:"elm.swallow.content", st, 30, vl);
5027 if (!strcmp(st, "icononly"))
5029 set_state(PART:"elm.swallow.content", "visible", 0.0);
5030 set_state(PART:"padding_icon_text", "visible", 0.0);
5032 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5033 set_state(PART:"elm.text", "visible", 0.0);
5035 set_state(PART:"elm.text", "disabled_visible", 0.0);
5038 program { name: "text_hide";
5039 signal: "elm,state,text,hidden";
5044 get_state(PART:"elm.swallow.content", st, 30, vl);
5045 if (!strcmp(st, "visible"))
5047 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5048 set_state(PART:"padding_icon_text", "icononly", 0.0);
5050 set_state(PART:"elm.text", "default", 0.0);
5053 program { name: "icon_show";
5054 signal: "elm,state,icon,visible";
5059 get_state(PART:"elm.text", st, 30, vl);
5060 if (!strcmp(st, "visible"))
5062 set_state(PART:"elm.swallow.content", "visible", 0.0);
5063 set_state(PART:"padding_icon_text", "visible", 0.0);
5067 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5068 set_state(PART:"padding_icon_text", "icononly", 0.0);
5072 program { name: "icon_hide";
5073 signal: "elm,state,icon,hidden";
5075 action: STATE_SET "default" 0.0;
5076 target: "elm.swallow.content";
5077 target: "padding_icon_text";
5079 program { name: "disable";
5080 signal: "elm,state,disabled";
5082 action: STATE_SET "disabled" 0.0;
5083 target: "button_image";
5085 after: "disable_text";
5087 program { name: "disable_text";
5091 get_state(PART:"elm.text", st, 30, vl);
5092 if (!strcmp(st, "visible"))
5093 set_state(PART:"elm.text", "disabled_visible", 0.0);
5095 set_state(PART:"elm.text", "disabled", 0.0);
5096 set_int(button_state, BUTTON_STATE_DISABLED);
5099 program { name: "enable";
5100 signal: "elm,state,enabled";
5102 action: STATE_SET "default" 0.0;
5103 target: "button_image";
5105 after: "enable_text";
5107 program { name: "enable_text";
5111 get_state(PART:"elm.text", st, 30, vl);
5112 if (!strcmp(st, "disabled_visible"))
5113 set_state(PART:"elm.text", "visible", 0.0);
5115 set_state(PART:"elm.text", "default", 0.0);
5116 set_int(button_state, BUTTON_STATE_ENABLED);
5119 program { name: "focused";
5120 //signal: "elm,action,focus";
5122 action: STATE_SET "focused" 0.0;
5123 target: "button_image";
5126 program { name: "unfocused";
5127 //signal: "elm,action,unfocus";
5129 action: STATE_SET "default" 0.0;
5130 target: "button_image";
5131 after: "unfocus_text";
5133 program { name: "unfocus_text";
5134 action: STATE_SET "visible" 0.0;
5140 ///////////////////////////////////////////////////////////////////////////////////////
5141 group { name: "elm/button/base/picker/bar/default";
5143 image: "00_picker_btn_normal.png" COMP;
5144 image: "00_picker_btn_press.png" COMP;
5147 public button_state = BUTTON_STATE_ENABLED;
5150 part { name: "button_image";
5152 description { state: "default" 0.0;
5153 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
5155 normal: "00_picker_btn_normal.png";
5156 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
5160 description { state: "clicked" 0.0;
5161 inherit: "default" 0.0;
5162 image.normal: "00_picker_btn_press.png";
5164 description { state: "disabled" 0.0;
5165 inherit: "default" 0.0;
5167 description { state: "focused" 0.0;
5168 inherit: "default" 0.0;
5169 image.normal: "00_picker_btn_press.png";
5172 part { name: "padding_left_top";
5176 description { state: "default" 0.0;
5178 rel2.relative: 0.0 0.0;
5179 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
5184 part { name: "padding_right_bottom";
5188 description { state: "default" 0.0;
5190 rel1.relative: 1.0 1.0;
5191 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
5196 part { name: "icon_rect";
5200 description { state: "default" 0.0;
5201 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
5205 to_x: "elm.swallow.content";
5206 to_y: "padding_left_top";
5210 to_x: "elm.swallow.content";
5211 to_y: "padding_right_bottom";
5217 part { name: "padding_icon_text";
5221 description { state: "default" 0.0; //when only icon or no icon is there
5227 rel2.to: "icon_rect";
5232 description { state: "icononly" 0.0;
5233 inherit: "default" 0.0;
5235 description { state: "visible" 0.0; //when icon is visible
5241 rel2.to: "icon_rect";
5243 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5247 part { name: "elm.swallow.content";
5251 description { state: "default" 0.0;
5256 to: "padding_left_top";
5260 to_x: "padding_left_top";
5261 to_y: "padding_right_bottom";
5265 description { state: "visible" 0.0;
5270 to: "padding_left_top";
5274 to_x: "padding_left_top";
5275 to_y: "padding_right_bottom";
5278 aspect_preference: VERTICAL;
5280 description { state: "icononly" 0.0;
5281 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
5284 to: "padding_left_top";
5288 to_x: "padding_left_top";
5289 to_y: "padding_right_bottom";
5292 aspect_preference: VERTICAL;
5295 part { name: "elm.text";
5300 description { state: "default" 0.0;
5304 to_x: "padding_icon_text";
5305 to_y: "padding_left_top";
5309 to: "padding_right_bottom";
5311 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5313 font: "SLP:style=Medium";
5314 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
5319 description { state: "visible" 0.0;
5320 inherit: "default" 0.0;
5322 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5324 description { state: "clicked" 0.0;
5325 inherit: "default" 0.0;
5328 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5330 description { state: "disabled" 0.0;
5331 inherit: "default" 0.0;
5332 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5334 description { state: "disabled_visible" 0.0;
5335 inherit: "default" 0.0;
5336 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5338 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5340 description { state: "focused" 0.0;
5341 inherit: "default" 0.0;
5344 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5347 part { name: "over2";
5350 ignore_flags: ON_HOLD;
5351 description { state: "default" 0.0;
5355 part { name: "over3";
5358 description { state: "default" 0.0;
5362 part { name: "clipper";
5364 description { state: "default" 0.0;
5365 color: 255 255 255 255;
5368 part { name: "disabler";
5370 description { state: "default" 0.0;
5374 description { state: "disabled" 0.0;
5375 inherit: "default" 0.0;
5381 program { name: "button_click";
5382 signal: "mouse,down,1";
5384 action: SIGNAL_EMIT "elm,action,press" "";
5385 after: "button_click_anim";
5387 program { name: "button_click_anim";
5388 action: STATE_SET "clicked" 0.0;
5389 target: "button_image";
5390 after: "text_clicked";
5392 program { name: "text_clicked";
5396 get_state(PART:"elm.text", st, 30, vl);
5397 if (!strcmp(st, "visible"))
5398 set_state(PART:"elm.text", "clicked", 0.0);
5401 program { name: "button_unpress";
5402 action: SIGNAL_EMIT "elm,action,unpress" "";
5404 program { name: "button_mouseout_clicked";
5405 signal: "mouse,up,1";
5410 get_state(PART:"elm.swallow.content", st, 30, vl);
5411 if (strcmp(st, "icononly"))
5413 emit("elm,action,default,text,set", "");
5414 set_state(PART:"elm.text", "visible", 0.0);
5416 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5417 set_state(PART:"button_image", "default", 0.0);
5419 after: button_unpress;
5421 program { name: "button_unclick3";
5422 signal: "mouse,clicked,1";
5424 action: SIGNAL_EMIT "elm,action,click" "";
5426 program { name: "text_show";
5427 signal: "elm,state,text,visible";
5432 get_state(PART:"elm.swallow.content", st, 30, vl);
5433 if (!strcmp(st, "icononly"))
5435 set_state(PART:"elm.swallow.content", "visible", 0.0);
5436 set_state(PART:"padding_icon_text", "visible", 0.0);
5438 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5439 set_state(PART:"elm.text", "visible", 0.0);
5441 set_state(PART:"elm.text", "disabled_visible", 0.0);
5444 program { name: "text_hide";
5445 signal: "elm,state,text,hidden";
5450 get_state(PART:"elm.swallow.content", st, 30, vl);
5451 if (!strcmp(st, "visible"))
5453 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5454 set_state(PART:"padding_icon_text", "icononly", 0.0);
5456 set_state(PART:"elm.text", "default", 0.0);
5459 program { name: "icon_show";
5460 signal: "elm,state,icon,visible";
5465 get_state(PART:"elm.text", st, 30, vl);
5466 if (!strcmp(st, "visible"))
5468 set_state(PART:"elm.swallow.content", "visible", 0.0);
5469 set_state(PART:"padding_icon_text", "visible", 0.0);
5473 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5474 set_state(PART:"padding_icon_text", "icononly", 0.0);
5478 program { name: "icon_hide";
5479 signal: "elm,state,icon,hidden";
5481 action: STATE_SET "default" 0.0;
5482 target: "elm.swallow.content";
5483 target: "padding_icon_text";
5485 program { name: "disable";
5486 signal: "elm,state,disabled";
5488 action: STATE_SET "disabled" 0.0;
5489 target: "button_image";
5491 after: "disable_text";
5493 program { name: "disable_text";
5497 get_state(PART:"elm.text", st, 30, vl);
5498 if (!strcmp(st, "visible"))
5499 set_state(PART:"elm.text", "disabled_visible", 0.0);
5501 set_state(PART:"elm.text", "disabled", 0.0);
5502 set_int(button_state, BUTTON_STATE_DISABLED);
5505 program { name: "enable";
5506 signal: "elm,state,enabled";
5508 action: STATE_SET "default" 0.0;
5509 target: "button_image";
5511 after: "enable_text";
5513 program { name: "enable_text";
5517 get_state(PART:"elm.text", st, 30, vl);
5518 if (!strcmp(st, "disabled_visible"))
5519 set_state(PART:"elm.text", "visible", 0.0);
5521 set_state(PART:"elm.text", "default", 0.0);
5522 set_int(button_state, BUTTON_STATE_ENABLED);
5525 program { name: "focused";
5526 //signal: "elm,action,focus";
5528 action: STATE_SET "focused" 0.0;
5529 target: "button_image";
5532 program { name: "unfocused";
5533 //signal: "elm,action,unfocus";
5535 action: STATE_SET "default" 0.0;
5536 target: "button_image";
5537 after: "unfocus_text";
5539 program { name: "unfocus_text";
5540 action: STATE_SET "visible" 0.0;
5546 ///////////////////////////////////////////////////////////////////////////////////////
5547 group { name: "elm/button/base/picker/prev/text/default";
5548 alias: "elm/button/base/picker/next/text/default";
5550 image: "00_picker_btn_normal.png" COMP;
5551 image: "00_picker_btn_press.png" COMP;
5554 public button_state = BUTTON_STATE_ENABLED;
5557 part { name: "button_image";
5559 description { state: "default" 0.0;
5560 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
5562 normal: "00_picker_btn_normal.png";
5563 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
5567 description { state: "clicked" 0.0;
5568 inherit: "default" 0.0;
5569 image.normal: "00_picker_btn_press.png";
5571 description { state: "disabled" 0.0;
5572 inherit: "default" 0.0;
5575 description { state: "focused" 0.0;
5576 inherit: "default" 0.0;
5577 image.normal: "00_picker_btn_press.png";
5580 part { name: "padding_left_top";
5584 description { state: "default" 0.0;
5586 rel2.relative: 0.0 0.0;
5587 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5592 part { name: "padding_right_bottom";
5596 description { state: "default" 0.0;
5598 rel1.relative: 1.0 1.0;
5599 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5604 part { name: "icon_rect";
5608 description { state: "default" 0.0;
5609 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5613 to_x: "elm.swallow.content";
5614 to_y: "padding_left_top";
5618 to_x: "elm.swallow.content";
5619 to_y: "padding_right_bottom";
5625 part { name: "padding_icon_text";
5629 description { state: "default" 0.0; //when only icon or no icon is there
5635 rel2.to: "icon_rect";
5640 description { state: "icononly" 0.0;
5641 inherit: "default" 0.0;
5643 description { state: "visible" 0.0; //when icon is visible
5649 rel2.to: "icon_rect";
5651 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5655 part { name: "elm.swallow.content";
5659 description { state: "default" 0.0;
5664 to: "padding_left_top";
5668 to_x: "padding_left_top";
5669 to_y: "padding_right_bottom";
5673 description { state: "visible" 0.0;
5678 to: "padding_left_top";
5682 to_x: "padding_left_top";
5683 to_y: "padding_right_bottom";
5686 aspect_preference: VERTICAL;
5688 description { state: "icononly" 0.0;
5689 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5692 to: "padding_left_top";
5696 to_x: "padding_left_top";
5697 to_y: "padding_right_bottom";
5700 aspect_preference: VERTICAL;
5703 part { name: "elm.text";
5708 description { state: "default" 0.0;
5712 to_x: "padding_icon_text";
5713 to_y: "padding_left_top";
5717 to: "padding_right_bottom";
5719 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5721 font: "SLP:style=Medium";
5722 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5727 description { state: "visible" 0.0;
5728 inherit: "default" 0.0;
5730 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5732 description { state: "clicked" 0.0;
5733 inherit: "default" 0.0;
5736 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5738 description { state: "disabled" 0.0;
5739 inherit: "default" 0.0;
5740 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5742 description { state: "disabled_visible" 0.0;
5743 inherit: "default" 0.0;
5744 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5746 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5748 description { state: "focused" 0.0;
5749 inherit: "default" 0.0;
5752 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5755 part { name: "over2";
5758 ignore_flags: ON_HOLD;
5759 description { state: "default" 0.0;
5763 part { name: "over3";
5766 description { state: "default" 0.0;
5770 part { name: "clipper";
5772 description { state: "default" 0.0;
5773 color: 255 255 255 255;
5776 part { name: "disabler";
5778 description { state: "default" 0.0;
5782 description { state: "disabled" 0.0;
5783 inherit: "default" 0.0;
5789 program { name: "button_click";
5790 signal: "mouse,down,1";
5792 action: SIGNAL_EMIT "elm,action,press" "";
5793 after: "button_click_anim";
5795 program { name: "button_click_anim";
5796 action: STATE_SET "clicked" 0.0;
5797 target: "button_image";
5798 after: "text_clicked";
5800 program { name: "text_clicked";
5804 get_state(PART:"elm.text", st, 30, vl);
5805 if (!strcmp(st, "visible"))
5806 set_state(PART:"elm.text", "clicked", 0.0);
5809 program { name: "button_unpress";
5810 action: SIGNAL_EMIT "elm,action,unpress" "";
5812 program { name: "button_mouseout_clicked";
5813 signal: "mouse,up,1";
5818 get_state(PART:"elm.swallow.content", st, 30, vl);
5819 if (strcmp(st, "icononly"))
5821 emit("elm,action,default,text,set", "");
5822 set_state(PART:"elm.text", "visible", 0.0);
5824 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5825 set_state(PART:"button_image", "default", 0.0);
5827 after: button_unpress;
5829 program { name: "button_unclick3";
5830 signal: "mouse,clicked,1";
5832 action: SIGNAL_EMIT "elm,action,click" "";
5834 program { name: "text_show";
5835 signal: "elm,state,text,visible";
5840 get_state(PART:"elm.swallow.content", st, 30, vl);
5841 if (!strcmp(st, "icononly"))
5843 set_state(PART:"elm.swallow.content", "visible", 0.0);
5844 set_state(PART:"padding_icon_text", "visible", 0.0);
5846 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5847 set_state(PART:"elm.text", "visible", 0.0);
5849 set_state(PART:"elm.text", "disabled_visible", 0.0);
5852 program { name: "text_hide";
5853 signal: "elm,state,text,hidden";
5858 get_state(PART:"elm.swallow.content", st, 30, vl);
5859 if (!strcmp(st, "visible"))
5861 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5862 set_state(PART:"padding_icon_text", "icononly", 0.0);
5864 set_state(PART:"elm.text", "default", 0.0);
5867 program { name: "icon_show";
5868 signal: "elm,state,icon,visible";
5873 get_state(PART:"elm.text", st, 30, vl);
5874 if (!strcmp(st, "visible"))
5876 set_state(PART:"elm.swallow.content", "visible", 0.0);
5877 set_state(PART:"padding_icon_text", "visible", 0.0);
5881 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5882 set_state(PART:"padding_icon_text", "icononly", 0.0);
5886 program { name: "icon_hide";
5887 signal: "elm,state,icon,hidden";
5889 action: STATE_SET "default" 0.0;
5890 target: "elm.swallow.content";
5891 target: "padding_icon_text";
5893 program { name: "disable";
5894 signal: "elm,state,disabled";
5896 action: STATE_SET "disabled" 0.0;
5897 target: "button_image";
5899 after: "disable_text";
5901 program { name: "disable_text";
5905 get_state(PART:"elm.text", st, 30, vl);
5906 if (!strcmp(st, "visible"))
5907 set_state(PART:"elm.text", "disabled_visible", 0.0);
5909 set_state(PART:"elm.text", "disabled", 0.0);
5910 set_int(button_state, BUTTON_STATE_DISABLED);
5913 program { name: "enable";
5914 signal: "elm,state,enabled";
5916 action: STATE_SET "default" 0.0;
5917 target: "button_image";
5919 after: "enable_text";
5921 program { name: "enable_text";
5925 get_state(PART:"elm.text", st, 30, vl);
5926 if (!strcmp(st, "disabled_visible"))
5927 set_state(PART:"elm.text", "visible", 0.0);
5929 set_state(PART:"elm.text", "default", 0.0);
5930 set_int(button_state, BUTTON_STATE_ENABLED);
5933 program { name: "focused";
5934 //signal: "elm,action,focus";
5936 action: STATE_SET "focused" 0.0;
5937 target: "button_image";
5940 program { name: "unfocused";
5941 //signal: "elm,action,unfocus";
5943 action: STATE_SET "default" 0.0;
5944 target: "button_image";
5945 after: "unfocus_text";
5947 program { name: "unfocus_text";
5948 action: STATE_SET "visible" 0.0;
5954 ///////////////////////////////////////////////////////////////////////////////////////
5955 group { name: "elm/button/base/contact";
5956 alias: "elm/button/base/text_only/contact";
5958 public button_state = BUTTON_STATE_ENABLED;
5961 part { name: "button_image";
5964 description { state: "default" 0.0;
5966 to_x: "padding.left";
5970 to_x: "padding.right";
5973 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5974 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5976 description { state: "clicked" 0.0;
5977 inherit: "default" 0.0;
5978 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5980 description { state: "disabled" 0.0;
5981 inherit: "default" 0.0;
5984 description { state: "focused" 0.0;
5985 inherit: "default" 0.0;
5988 part { name: "padding.left";
5991 description { state: "default" 0.0;
5993 min: BUTTON_CONTACT_PADDING_MIN_INC;
6003 part { name: "padding.right";
6006 description { state: "default" 0.0;
6008 min: BUTTON_CONTACT_PADDING_MIN_INC;
6018 part { name: "elm.text";
6022 description { state: "default" 0.0;
6025 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
6027 font: "SLP:style=Medium";
6028 size: BUTTON_CONTACT_FONT_SIZE_INC;
6032 description { state: "visible" 0.0;
6033 inherit: "default" 0.0;
6037 description { state: "clicked" 0.0;
6038 inherit: "default" 0.0;
6041 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
6043 description { state: "disabled" 0.0;
6044 inherit: "default" 0.0;
6047 description { state: "disabled_visible" 0.0;
6048 inherit: "default" 0.0;
6049 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
6053 description { state: "focused" 0.0;
6054 inherit: "default" 0.0;
6057 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
6060 part { name: "over1";
6062 description { state: "default" 0.0;
6063 rel2.relative: 1.0 0.5;
6066 part { name: "over2";
6068 ignore_flags: ON_HOLD;
6069 description { state: "default" 0.0;
6070 rel1.to: "button_image";
6071 rel2.to: "button_image";
6074 part { name: "over3";
6076 description { state: "default" 0.0;
6077 rel1.to: "button_image";
6078 rel2.to: "button_image";
6082 part { name: "disabler";
6084 description { state: "default" 0.0;
6085 rel1.to: "button_image";
6086 rel2.to: "button_image";
6090 description { state: "disabled" 0.0;
6091 inherit: "default" 0.0;
6097 program { name: "button_click";
6098 signal: "mouse,down,1";
6100 action: SIGNAL_EMIT "elm,action,press" "";
6101 after: "button_click_anim";
6103 program { name: "button_click_anim";
6104 action: STATE_SET "clicked" 0.0;
6105 target: "button_image";
6108 program { name: "button_unpress";
6109 action: SIGNAL_EMIT "elm,action,unpress" "";
6111 program { name: "button_mouseout_clicked";
6112 signal: "mouse,up,1";
6117 get_state(PART:"elm.text", st, 30, vl);
6118 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6120 emit("elm,action,default,text,set", "");
6121 set_state(PART:"elm.text", "visible", 0.0);
6123 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6124 set_state(PART:"button_image", "default", 0.0);
6126 after: button_unpress;
6128 program { name: "button_unclick3";
6129 signal: "mouse,clicked,1";
6131 action: SIGNAL_EMIT "elm,action,click" "";
6133 program { name: "text_show";
6134 signal: "elm,state,text,visible";
6137 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6138 set_state(PART:"elm.text", "visible", 0.0);
6140 set_state(PART:"elm.text", "disabled_visible", 0.0);
6143 program { name: "text_hide";
6144 signal: "elm,state,text,hidden";
6146 action: STATE_SET "default" 0.0;
6149 program { name: "disable";
6150 signal: "elm,state,disabled";
6152 action: STATE_SET "disabled" 0.0;
6153 target: "button_image";
6155 after: "disable_text";
6157 program { name: "disable_text";
6161 get_state(PART:"elm.text", st, 30, vl);
6162 if (!strcmp(st, "visible"))
6163 set_state(PART:"elm.text", "disabled_visible", 0.0);
6165 set_state(PART:"elm.text", "disabled", 0.0);
6166 set_int(button_state, BUTTON_STATE_DISABLED);
6169 program { name: "enable";
6170 signal: "elm,state,enabled";
6172 action: STATE_SET "default" 0.0;
6173 target: "button_image";
6175 after: "enable_text";
6177 program { name: "enable_text";
6181 get_state(PART:"elm.text", st, 30, vl);
6182 if (!strcmp(st, "disabled_visible"))
6183 set_state(PART:"elm.text", "visible", 0.0);
6185 set_state(PART:"elm.text", "default", 0.0);
6186 set_int(button_state, BUTTON_STATE_ENABLED);
6189 program { name: "focused";
6190 //signal: "elm,action,focus";
6192 action: STATE_SET "focused" 0.0;
6193 target: "button_image";
6196 program { name: "unfocused";
6197 //signal: "elm,action,unfocus";
6199 action: STATE_SET "default" 0.0;
6200 target: "button_image";
6201 action: STATE_SET "visible" 0.0;
6207 ///////////////////////////////////////////////////////////////////////////////////////
6208 group { name: "elm/button/base/naviframe/back_btn/default";
6209 alias: "elm/button/base/naviframe/prev_btn/default";
6210 alias: "elm/button/base/naviframe/end_btn/default";
6212 image: "00_winset_Back_btn_normal.png" COMP;
6213 image: "00_winset_Back_btn_press.png" COMP;
6214 image: "00_winset_Back.png" COMP;
6217 public button_state = BUTTON_STATE_ENABLED;
6220 part { name: "button_image";
6222 description { state: "default" 0.0;
6223 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6224 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6226 normal: "00_winset_Back_btn_normal.png";
6227 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
6231 description { state: "clicked" 0.0;
6232 inherit: "default" 0.0;
6233 image.normal: "00_winset_Back_btn_press.png";
6235 description { state: "disabled" 0.0;
6236 inherit: "default" 0.0;
6238 description { state: "focused" 0.0;
6239 inherit: "default" 0.0;
6240 image.normal: "00_winset_Back_btn_press.png";
6243 part { name: "back_button";
6246 description { state: "default" 0.0;
6247 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6248 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6249 rel1.to: "button_image";
6250 rel2.to: "button_image";
6251 image.normal: "00_winset_Back.png";
6253 description { state: "clicked" 0.0;
6254 inherit: "default" 0.0;
6257 part { name: "over2";
6260 ignore_flags: ON_HOLD;
6261 description { state: "default" 0.0;
6265 part { name: "over3";
6268 description { state: "default" 0.0;
6272 part { name: "disabler";
6274 description { state: "default" 0.0;
6278 description { state: "disabled" 0.0;
6279 inherit: "default" 0.0;
6285 program { name: "button_click";
6286 signal: "mouse,down,1";
6288 action: SIGNAL_EMIT "elm,action,press" "";
6289 after: "button_click_anim";
6291 program { name: "button_click_anim";
6292 action: STATE_SET "clicked" 0.0;
6293 target: "button_image";
6295 program { name: "button_unpress";
6296 action: SIGNAL_EMIT "elm,action,unpress" "";
6298 program { name: "button_mouseout_clicked";
6299 signal: "mouse,up,1";
6302 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6303 set_state(PART:"button_image", "default", 0.0);
6305 after: button_unpress;
6307 program { name: "button_unclick3";
6308 signal: "mouse,clicked,1";
6310 action: SIGNAL_EMIT "elm,action,click" "";
6312 program { name: "disable";
6313 signal: "elm,state,disabled";
6315 action: STATE_SET "disabled" 0.0;
6316 target: "button_image";
6318 after: "disable_button";
6320 program { name: "disable_button";
6322 set_int(button_state, BUTTON_STATE_DISABLED);
6325 program { name: "enable";
6326 signal: "elm,state,enabled";
6328 action: STATE_SET "default" 0.0;
6329 target: "button_image";
6331 after: "enable_button";
6333 program { name: "enable_button";
6335 set_int(button_state, BUTTON_STATE_ENABLED);
6341 ///////////////////////////////////////////////////////////////////////////////////////
6342 group { name: "elm/button/base/picker/prev/icon/default";
6344 image: "00_picker_btn_normal.png" COMP;
6345 image: "00_picker_btn_press.png" COMP;
6346 image: "00_picker_arrow_left.png" COMP;
6347 image: "00_picker_arrow_left_press.png" COMP;
6350 public button_state = BUTTON_STATE_ENABLED;
6353 part { name: "button_image";
6355 description { state: "default" 0.0;
6356 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6357 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6359 normal: "00_picker_btn_normal.png";
6360 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6364 description { state: "clicked" 0.0;
6365 inherit: "default" 0.0;
6366 image.normal: "00_picker_btn_press.png";
6368 description { state: "disabled" 0.0;
6369 inherit: "default" 0.0;
6371 description { state: "focused" 0.0;
6372 inherit: "default" 0.0;
6373 image.normal: "00_picker_btn_press.png";
6376 part { name: "padding_left_top";
6380 description { state: "default" 0.0;
6382 rel2.relative: 0.0 0.0;
6383 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6388 part { name: "padding_right_bottom";
6392 description { state: "default" 0.0;
6394 rel1.relative: 1.0 1.0;
6395 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6400 part { name: "left_arrow";
6403 description { state: "default" 0.0;
6404 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6405 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6408 to: "padding_left_top";
6412 to: "padding_right_bottom";
6414 image.normal: "00_picker_arrow_left.png";
6416 description { state: "clicked" 0.0;
6417 inherit: "default" 0.0;
6418 image.normal: "00_picker_arrow_left_press.png";
6421 part { name: "over2";
6424 ignore_flags: ON_HOLD;
6425 description { state: "default" 0.0;
6429 part { name: "over3";
6432 description { state: "default" 0.0;
6436 part { name: "disabler";
6438 description { state: "default" 0.0;
6442 description { state: "disabled" 0.0;
6443 inherit: "default" 0.0;
6449 program { name: "button_click";
6450 signal: "mouse,down,1";
6452 action: SIGNAL_EMIT "elm,action,press" "";
6453 after: "button_click_anim";
6455 program { name: "button_click_anim";
6456 action: STATE_SET "clicked" 0.0;
6457 target: "button_image";
6459 program { name: "button_unpress";
6460 action: SIGNAL_EMIT "elm,action,unpress" "";
6462 program { name: "button_mouseout_clicked";
6463 signal: "mouse,up,1";
6466 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6467 set_state(PART:"button_image", "default", 0.0);
6469 after: button_unpress;
6471 program { name: "button_unclick3";
6472 signal: "mouse,clicked,1";
6474 action: SIGNAL_EMIT "elm,action,click" "";
6476 program { name: "disable";
6477 signal: "elm,state,disabled";
6479 action: STATE_SET "disabled" 0.0;
6480 target: "button_image";
6482 after: "disable_button";
6484 program { name: "disable_button";
6486 set_int(button_state, BUTTON_STATE_DISABLED);
6489 program { name: "enable";
6490 signal: "elm,state,enabled";
6492 action: STATE_SET "default" 0.0;
6493 target: "button_image";
6495 after: "enable_button";
6497 program { name: "enable_button";
6499 set_int(button_state, BUTTON_STATE_ENABLED);
6502 program { name: "focused";
6503 //signal: "elm,action,focus";
6505 action: STATE_SET "focused" 0.0;
6506 target: "button_image";
6508 program { name: "unfocused";
6509 //signal: "elm,action,unfocus";
6511 action: STATE_SET "default" 0.0;
6512 target: "button_image";
6517 ///////////////////////////////////////////////////////////////////////////////////////
6518 group { name: "elm/button/base/picker/next/icon/default";
6520 image: "00_picker_btn_normal.png" COMP;
6521 image: "00_picker_btn_press.png" COMP;
6522 image: "00_picker_arrow_right.png" COMP;
6523 image: "00_picker_arrow_right_press.png" COMP;
6526 public button_state = BUTTON_STATE_ENABLED;
6529 part { name: "button_image";
6531 description { state: "default" 0.0;
6532 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6533 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6535 normal: "00_picker_btn_normal.png";
6536 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6540 description { state: "clicked" 0.0;
6541 inherit: "default" 0.0;
6542 image.normal: "00_picker_btn_press.png";
6544 description { state: "disabled" 0.0;
6545 inherit: "default" 0.0;
6547 description { state: "focused" 0.0;
6548 inherit: "default" 0.0;
6549 image.normal: "00_picker_btn_press.png";
6552 part { name: "padding_left_top";
6556 description { state: "default" 0.0;
6558 rel2.relative: 0.0 0.0;
6559 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6564 part { name: "padding_right_bottom";
6568 description { state: "default" 0.0;
6570 rel1.relative: 1.0 1.0;
6571 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6576 part { name: "right_arrow";
6579 description { state: "default" 0.0;
6580 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6581 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6584 to: "padding_left_top";
6588 to: "padding_right_bottom";
6590 image.normal: "00_picker_arrow_right.png";
6592 description { state: "clicked" 0.0;
6593 inherit: "default" 0.0;
6594 image.normal: "00_picker_arrow_right_press.png";
6597 part { name: "over2";
6600 ignore_flags: ON_HOLD;
6601 description { state: "default" 0.0;
6605 part { name: "over3";
6608 description { state: "default" 0.0;
6612 part { name: "disabler";
6614 description { state: "default" 0.0;
6618 description { state: "disabled" 0.0;
6619 inherit: "default" 0.0;
6625 program { name: "button_click";
6626 signal: "mouse,down,1";
6628 action: SIGNAL_EMIT "elm,action,press" "";
6629 after: "button_click_anim";
6631 program { name: "button_click_anim";
6632 action: STATE_SET "clicked" 0.0;
6633 target: "button_image";
6635 program { name: "button_unpress";
6636 action: SIGNAL_EMIT "elm,action,unpress" "";
6638 program { name: "button_mouseout_clicked";
6639 signal: "mouse,up,1";
6642 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6643 set_state(PART:"button_image", "default", 0.0);
6645 after: button_unpress;
6647 program { name: "button_unclick3";
6648 signal: "mouse,clicked,1";
6650 action: SIGNAL_EMIT "elm,action,click" "";
6652 program { name: "disable";
6653 signal: "elm,state,disabled";
6655 action: STATE_SET "disabled" 0.0;
6656 target: "button_image";
6658 after: "disable_button";
6660 program { name: "disable_button";
6662 set_int(button_state, BUTTON_STATE_DISABLED);
6665 program { name: "enable";
6666 signal: "elm,state,enabled";
6668 action: STATE_SET "default" 0.0;
6669 target: "button_image";
6671 after: "enable_button";
6673 program { name: "enable_button";
6675 set_int(button_state, BUTTON_STATE_ENABLED);
6678 program { name: "focused";
6679 //signal: "elm,action,focus";
6681 action: STATE_SET "focused" 0.0;
6682 target: "button_image";
6684 program { name: "unfocused";
6685 //signal: "elm,action,unfocus";
6687 action: STATE_SET "default" 0.0;
6688 target: "button_image";
6693 ///////////////////////////////////////////////////////////////////////////////////////
6694 group { name: "elm/button/base/naviframe_control/default";
6695 alias: "elm/button/base/naviframe_control/center";
6697 public button_state = BUTTON_STATE_ENABLED;
6700 image: "00_Option_header_bt.png" COMP;
6701 image: "00_Option_header_bt_dim.png" COMP;
6702 image: "00_Option_header_bt_press.png" COMP;
6705 part { name: "button_image";
6707 description { state: "default" 0.0;
6708 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6713 normal: "00_Option_header_bt.png";
6714 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6716 color: 255 255 255 255;
6718 description { state: "disabled" 0.0;
6719 inherit: "default" 0.0;
6720 image.normal: "00_Option_header_bt_dim.png";
6722 description { state: "clicked" 0.0;
6723 inherit: "default" 0.0;
6724 image.normal: "00_Option_header_bt_press.png";
6727 part { name: "padding_left_top";
6731 description { state: "default" 0.0;
6733 rel2.relative: 0.0 0.0;
6734 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6739 part { name: "padding_right_bottom";
6743 description { state: "default" 0.0;
6745 rel1.relative: 1.0 1.0;
6746 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6751 part { name: "icon_rect";
6755 description { state: "default" 0.0;
6760 to: "padding_left_top";
6764 to_x: "padding_left_top";
6765 to_y: "padding_right_bottom";
6770 description { state: "visible" 0.0;
6771 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6775 to: "padding_left_top";
6779 to_x: "padding_left_top";
6780 to_y: "padding_right_bottom";
6785 description { state: "icononly" 0.0;
6786 inherit: "default" 0.0;
6789 part { name: "padding_after_icon";
6793 description { state: "default" 0.0; //when only icon or no icon is there
6799 rel2.to: "icon_rect";
6804 description { state: "visible" 0.0;
6810 rel2.to: "icon_rect";
6812 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6815 description { state: "icononly" 0.0;
6816 inherit: "default" 0.0;
6819 part { name: "padding_before_text";
6823 description { state: "default" 0.0; //when only icon or no icon is there
6828 to_y: "padding_left_top";
6833 to_y: "padding_right_bottom";
6836 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6840 part { name: "elm.swallow.content";
6844 description { state: "default" 0.0;
6849 to: "padding_left_top";
6853 to_x: "padding_left_top";
6854 to_y: "padding_right_bottom";
6858 description { state: "visible" 0.0;
6860 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6861 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6865 to_x: "padding_before_text";
6866 to_y: "padding_left_top";
6870 to_x: "padding_before_text";
6871 to_y: "padding_right_bottom";
6874 aspect_preference: VERTICAL;
6876 description { state: "icononly" 0.0;
6877 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6878 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6881 to: "padding_left_top";
6885 to: "padding_right_bottom";
6888 aspect_preference: VERTICAL;
6891 part { name: "elm.text";
6896 description { state: "default" 0.0;
6900 to_x: "padding_after_icon";
6901 to_y: "padding_left_top";
6905 to: "padding_right_bottom";
6907 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6909 font: "SLP:style=Medium";
6910 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6915 description { state: "visible" 0.0;
6916 inherit: "default" 0.0;
6919 description { state: "clicked" 0.0;
6920 inherit: "default" 0.0;
6924 description { state: "focused" 0.0;
6925 inherit: "default" 0.0;
6928 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6931 part { name: "over2";
6934 ignore_flags: ON_HOLD;
6935 description { state: "default" 0.0;
6939 part { name: "over3";
6942 description { state: "default" 0.0;
6946 part { name: "clipper";
6948 description { state: "default" 0.0;
6949 color: 255 255 255 255;
6951 description { state: "disabled" 0.0;
6952 color: 255 255 255 127;
6955 part { name: "disabler";
6957 description { state: "default" 0.0;
6961 description { state: "disabled" 0.0;
6962 inherit: "default" 0.0;
6968 program { name: "button_click";
6969 signal: "mouse,down,1";
6971 action: SIGNAL_EMIT "elm,action,press" "";
6972 after: "button_click_anim";
6974 program { name: "button_click_anim";
6975 action: STATE_SET "clicked" 0.0;
6976 target: "button_image";
6977 after: "text_clicked";
6979 program { name: "text_clicked";
6983 get_state(PART:"elm.text", st, 30, vl);
6984 if (!strcmp(st, "visible"))
6985 set_state(PART:"elm.text", "clicked", 0.0);
6988 program { name: "button_unpress";
6989 action: SIGNAL_EMIT "elm,action,unpress" "";
6991 program { name: "button_mouseout_clicked";
6992 signal: "mouse,up,1";
6997 get_state(PART:"elm.swallow.content", st, 30, vl);
6998 if (strcmp(st, "icononly"))
7000 emit("elm,action,default,text,set", "");
7001 set_state(PART:"elm.text", "visible", 0.0);
7003 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7004 set_state(PART:"button_image", "default", 0.0);
7006 after: button_unpress;
7008 program { name: "button_unclick3";
7009 signal: "mouse,clicked,1";
7011 action: SIGNAL_EMIT "elm,action,click" "";
7013 program { name: "text_show";
7014 signal: "elm,state,text,visible";
7019 get_state(PART:"elm.swallow.content", st, 30, vl);
7020 if (!strcmp(st, "icononly"))
7022 set_state(PART:"elm.swallow.content", "visible", 0.0);
7023 set_state(PART:"icon_rect", "visible", 0.0);
7024 set_state(PART:"padding_after_icon", "visible", 0.0);
7026 set_state(PART:"elm.text", "visible", 0.0);
7029 program { name: "text_hide";
7030 signal: "elm,state,text,hidden";
7035 get_state(PART:"elm.swallow.content", st, 30, vl);
7036 if (!strcmp(st, "visible"))
7038 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7039 set_state(PART:"icon_rect", "icononly", 0.0);
7040 set_state(PART:"padding_after_icon", "icononly", 0.0);
7042 set_state(PART:"elm.text", "default", 0.0);
7045 program { name: "icon_show";
7046 signal: "elm,state,icon,visible";
7051 get_state(PART:"elm.text", st, 30, vl);
7052 if (!strcmp(st, "visible"))
7054 set_state(PART:"elm.swallow.content", "visible", 0.0);
7055 set_state(PART:"icon_rect", "visible", 0.0);
7056 set_state(PART:"padding_after_icon", "visible", 0.0);
7060 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7061 set_state(PART:"icon_rect", "icononly", 0.0);
7062 set_state(PART:"padding_after_icon", "icononly", 0.0);
7066 program { name: "icon_hide";
7067 signal: "elm,state,icon,hidden";
7069 action: STATE_SET "default" 0.0;
7070 target: "elm.swallow.content";
7071 target: "icon_rect";
7072 target: "padding_after_icon";
7074 program { name: "disable";
7075 signal: "elm,state,disabled";
7077 action: STATE_SET "disabled" 0.0;
7078 target: "button_image";
7081 after: "disable_text";
7083 program { name: "disable_text";
7087 set_int(button_state, BUTTON_STATE_DISABLED);
7088 get_state(PART:"elm.text", st, 30, vl);
7089 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7090 set_state(PART:"elm.text", "visible", 0.0);
7093 program { name: "enable";
7094 signal: "elm,state,enabled";
7096 action: STATE_SET "default" 0.0;
7097 target: "button_image";
7100 after: "enable_text";
7102 program { name: "enable_text";
7106 set_int(button_state, BUTTON_STATE_ENABLED);
7107 get_state(PART:"elm.text", st, 30, vl);
7108 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7109 set_state(PART:"elm.text", "visible", 0.0);
7112 program { name: "focused";
7113 action: STATE_SET "focused" 0.0;
7114 target: "button_image";
7117 program { name: "unfocused";
7118 action: STATE_SET "default" 0.0;
7119 target: "button_image";
7120 after: "unfocus_text";
7122 program { name: "unfocus_text";
7123 action: STATE_SET "visible" 0.0;
7129 ///////////////////////////////////////////////////////////////////////////////////////
7130 group { name: "elm/button/base/naviframe_control/multiline";
7132 public button_state = BUTTON_STATE_ENABLED;
7135 image: "00_Option_header_bt.png" COMP;
7136 image: "00_Option_header_bt_dim.png" COMP;
7137 image: "00_Option_header_bt_press.png" COMP;
7140 style { name: "btn_multiline_naviframe_controlbar_style";
7141 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
7148 part { name: "button_image";
7150 description { state: "default" 0.0;
7151 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
7155 normal: "00_Option_header_bt.png";
7156 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
7158 color: 255 255 255 255;
7160 description { state: "disabled" 0.0;
7161 inherit: "default" 0.0;
7162 image.normal: "00_Option_header_bt_dim.png";
7164 description { state: "clicked" 0.0;
7165 inherit: "default" 0.0;
7166 image.normal: "00_Option_header_bt_press.png";
7169 part { name: "padding_left_top";
7173 description { state: "default" 0.0;
7175 rel2.relative: 0.0 0.0;
7176 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7181 part { name: "padding_right_bottom";
7185 description { state: "default" 0.0;
7187 rel1.relative: 1.0 1.0;
7188 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7193 part { name: "icon_rect";
7197 description { state: "default" 0.0;
7203 to_x: "elm.swallow.content";
7204 to_y: "padding_left_top";
7208 to_x: "elm.swallow.content";
7209 to_y: "padding_right_bottom";
7214 part { name: "padding_icon_text";
7218 description { state: "default" 0.0; //when only icon or no icon is there
7232 description { state: "visible" 0.0;
7233 inherit: "default" 0.0;
7234 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
7244 description { state: "icononly" 0.0;
7245 inherit: "default" 0.0;
7248 part { name: "elm.swallow.content";
7252 description { state: "default" 0.0;
7257 to: "padding_left_top";
7261 to_x: "padding_left_top";
7262 to_y: "padding_right_bottom";
7266 description { state: "visible" 0.0;
7268 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7269 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7273 to: "padding_left_top";
7277 to_x: "padding_left_top";
7278 to_y: "padding_right_bottom";
7281 description { state: "icononly" 0.0;
7282 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7283 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7286 to: "padding_left_top";
7290 to: "padding_right_bottom";
7294 part { name: "elm.text";
7299 description { state: "default" 0.0;
7303 to_x: "padding_icon_text";
7304 to_y: "padding_left_top";
7308 to: "padding_right_bottom";
7310 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7312 style: "btn_multiline_naviframe_controlbar_style";
7317 description { state: "visible" 0.0;
7318 inherit: "default" 0.0;
7322 description { state: "clicked" 0.0;
7323 inherit: "default" 0.0;
7327 description { state: "focused" 0.0;
7328 inherit: "default" 0.0;
7331 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7334 part { name: "over2";
7337 ignore_flags: ON_HOLD;
7338 description { state: "default" 0.0;
7342 part { name: "over3";
7345 description { state: "default" 0.0;
7349 part { name: "clipper";
7351 description { state: "default" 0.0;
7352 color: 255 255 255 255;
7354 description { state: "disabled" 0.0;
7355 color: 255 255 255 127;
7358 part { name: "disabler";
7360 description { state: "default" 0.0;
7364 description { state: "disabled" 0.0;
7365 inherit: "default" 0.0;
7371 program { name: "button_click";
7372 signal: "mouse,down,1";
7374 action: SIGNAL_EMIT "elm,action,press" "";
7375 after: "button_click_anim";
7377 program { name: "button_click_anim";
7378 action: STATE_SET "clicked" 0.0;
7379 target: "button_image";
7380 after: "text_clicked";
7382 program { name: "text_clicked";
7386 get_state(PART:"elm.text", st, 30, vl);
7387 if (!strcmp(st, "visible"))
7388 set_state(PART:"elm.text", "clicked", 0.0);
7391 program { name: "button_unpress";
7392 action: SIGNAL_EMIT "elm,action,unpress" "";
7394 program { name: "button_mouseout_clicked";
7395 signal: "mouse,up,1";
7400 get_state(PART:"elm.swallow.content", st, 30, vl);
7401 if (strcmp(st, "icononly"))
7403 emit("elm,action,default,text,set", "");
7404 set_state(PART:"elm.text", "visible", 0.0);
7406 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7407 set_state(PART:"button_image", "default", 0.0);
7409 after: button_unpress;
7411 program { name: "button_unclick3";
7412 signal: "mouse,clicked,1";
7414 action: SIGNAL_EMIT "elm,action,click" "";
7416 program { name: "text_show";
7417 signal: "elm,state,text,visible";
7422 get_state(PART:"elm.swallow.content", st, 30, vl);
7423 if (!strcmp(st, "icononly"))
7425 set_state(PART:"elm.swallow.content", "visible", 0.0);
7426 set_state(PART:"padding_icon_text", "visible", 0.0);
7428 set_state(PART:"elm.text", "visible", 0.0);
7431 program { name: "text_hide";
7432 signal: "elm,state,text,hidden";
7437 get_state(PART:"elm.swallow.content", st, 30, vl);
7438 if (!strcmp(st, "visible"))
7440 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7441 set_state(PART:"padding_icon_text", "icononly", 0.0);
7443 set_state(PART:"elm.text", "default", 0.0);
7446 program { name: "icon_show";
7447 signal: "elm,state,icon,visible";
7452 get_state(PART:"elm.text", st, 30, vl);
7453 if (!strcmp(st, "visible"))
7455 set_state(PART:"elm.swallow.content", "visible", 0.0);
7456 set_state(PART:"padding_icon_text", "visible", 0.0);
7460 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7461 set_state(PART:"padding_icon_text", "icononly", 0.0);
7465 program { name: "icon_hide";
7466 signal: "elm,state,icon,hidden";
7468 action: STATE_SET "default" 0.0;
7469 target: "elm.swallow.content";
7470 target: "padding_icon_text";
7472 program { name: "disable";
7473 signal: "elm,state,disabled";
7475 action: STATE_SET "disabled" 0.0;
7476 target: "button_image";
7479 after: "disable_text";
7481 program { name: "disable_text";
7485 set_int(button_state, BUTTON_STATE_DISABLED);
7486 get_state(PART:"elm.text", st, 30, vl);
7487 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7488 set_state(PART:"elm.text", "visible", 0.0);
7491 program { name: "enable";
7492 signal: "elm,state,enabled";
7494 action: STATE_SET "default" 0.0;
7495 target: "button_image";
7498 after: "enable_text";
7500 program { name: "enable_text";
7504 set_int(button_state, BUTTON_STATE_ENABLED);
7505 get_state(PART:"elm.text", st, 30, vl);
7506 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7507 set_state(PART:"elm.text", "visible", 0.0);
7510 program { name: "focused";
7511 action: STATE_SET "focused" 0.0;
7512 target: "button_image";
7515 program { name: "unfocused";
7516 action: STATE_SET "default" 0.0;
7517 target: "button_image";
7518 after: "unfocus_text";
7520 program { name: "unfocus_text";
7521 action: STATE_SET "visible" 0.0;
7527 //////////////////////////////////////////////////////////////
7528 group { name: "elm/button/base/naviframe/title/default";
7530 image: "00_Title_btn.png" COMP;
7531 image: "00_Title_btn_press.png" COMP;
7534 public button_state = BUTTON_STATE_ENABLED;
7537 part { name: "button_image";
7539 description { state: "default" 0.0;
7540 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7541 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7543 normal: "00_Title_btn.png";
7544 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7548 description { state: "clicked" 0.0;
7549 inherit: "default" 0.0;
7550 image.normal: "00_Title_btn_press.png";
7552 description { state: "disabled" 0.0;
7553 inherit: "default" 0.0;
7556 description { state: "focused" 0.0;
7557 inherit: "default" 0.0;
7558 image.normal: "00_Title_btn_press.png";
7561 part { name: "padding_left_top";
7565 description { state: "default" 0.0;
7567 rel2.relative: 0.0 0.0;
7568 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7577 description { state: "default" 0.0;
7578 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7581 description { state: "visible" 0.0;
7582 inherit: "default" 0.0;
7583 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7585 description { state: "icononly" 0.0;
7586 inherit: "default" 0.0;
7587 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7590 part { name: "padding_right_bottom";
7594 description { state: "default" 0.0;
7596 rel1.relative: 1.0 1.0;
7597 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7602 part { name: "icon_rect";
7606 description { state: "default" 0.0;
7612 to: "padding_left_top";
7616 to_x: "padding_left_top";
7617 to_y: "padding_right_bottom";
7621 description { state: "visible" 0.0;
7623 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7624 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7628 to: "padding_left_top";
7632 to_x: "padding_left_top";
7633 to_y: "padding_right_bottom";
7637 description { state: "icononly" 0.0;
7638 inherit: "default" 0.0;
7641 part { name: "padding_after_icon";
7645 description { state: "default" 0.0; //when only icon or no icon is there
7651 rel2.to: "icon_rect";
7656 description { state: "visible" 0.0;
7663 rel2.to: "icon_rect";
7665 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7667 description { state: "icononly" 0.0;
7668 inherit: "default" 0.0;
7671 part { name: "padding_before_text";
7675 description { state: "default" 0.0; //when only icon or no icon is there
7680 to_y: "padding_left_top";
7685 to_y: "padding_right_bottom";
7688 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7692 part { name: "elm.swallow.content";
7696 description { state: "default" 0.0;
7701 to: "padding_left_top";
7705 to_x: "padding_left_top";
7706 to_y: "padding_right_bottom";
7710 description { state: "visible" 0.0;
7712 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7713 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7717 to_x: "padding_before_text";
7718 to_y: "padding_left_top";
7722 to_x: "padding_before_text";
7723 to_y: "padding_right_bottom";
7726 description { state: "icononly" 0.0;
7727 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7728 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7731 part { name: "elm.text";
7736 description { state: "default" 0.0;
7740 to_x: "padding_after_icon";
7741 to_y: "padding_left_top";
7745 to: "padding_right_bottom";
7747 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7749 font: "SLP:style=Medium";
7750 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7755 description { state: "visible" 0.0;
7756 inherit: "default" 0.0;
7759 description { state: "clicked" 0.0;
7760 inherit: "default" 0.0;
7762 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7764 description { state: "disabled" 0.0;
7765 inherit: "default" 0.0;
7768 description { state: "disabled_visible" 0.0;
7769 inherit: "default" 0.0;
7770 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7773 description { state: "focused" 0.0;
7774 inherit: "default" 0.0;
7776 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7779 part { name: "over2";
7782 ignore_flags: ON_HOLD;
7783 description { state: "default" 0.0;
7787 part { name: "over3";
7790 description { state: "default" 0.0;
7794 part { name: "clipper";
7796 description { state: "default" 0.0;
7797 color: 255 255 255 255;
7800 part { name: "disabler";
7802 description { state: "default" 0.0;
7806 description { state: "disabled" 0.0;
7807 inherit: "default" 0.0;
7813 program { name: "button_click";
7814 signal: "mouse,down,1";
7816 action: SIGNAL_EMIT "elm,action,press" "";
7817 after: "button_click_anim";
7819 program { name: "button_click_anim";
7820 action: STATE_SET "clicked" 0.0;
7821 target: "button_image";
7822 after: "text_clicked";
7824 program { name: "text_clicked";
7828 get_state(PART:"elm.text", st, 30, vl);
7829 if (!strcmp(st, "visible"))
7830 set_state(PART:"elm.text", "clicked", 0.0);
7833 program { name: "button_unpress";
7834 action: SIGNAL_EMIT "elm,action,unpress" "";
7836 program { name: "button_mouseout_clicked";
7837 signal: "mouse,up,1";
7842 get_state(PART:"elm.swallow.content", st, 30, vl);
7843 if (strcmp(st, "icononly"))
7845 emit("elm,action,default,text,set", "");
7846 set_state(PART:"elm.text", "visible", 0.0);
7848 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7849 set_state(PART:"button_image", "default", 0.0);
7851 after: button_unpress;
7853 program { name: "button_unclick3";
7854 signal: "mouse,clicked,1";
7856 action: SIGNAL_EMIT "elm,action,click" "";
7858 program { name: "text_show";
7859 signal: "elm,state,text,visible";
7864 get_state(PART:"elm.swallow.content", st, 30, vl);
7865 if (!strcmp(st, "icononly"))
7867 set_state(PART:"elm.swallow.content", "visible", 0.0);
7868 set_state(PART:"icon_rect", "visible", 0.0);
7869 set_state(PART:"padding_after_icon", "visible", 0.0);
7870 set_state(PART:"bg", "visible", 0.0);
7872 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7873 set_state(PART:"elm.text", "visible", 0.0);
7875 set_state(PART:"elm.text", "disabled_visible", 0.0);
7878 program { name: "text_hide";
7879 signal: "elm,state,text,hidden";
7884 get_state(PART:"elm.swallow.content", st, 30, vl);
7885 if (!strcmp(st, "visible"))
7887 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7888 set_state(PART:"icon_rect", "icononly", 0.0);
7889 set_state(PART:"padding_after_icon", "icononly", 0.0);
7890 set_state(PART:"bg", "icononly", 0.0);
7892 set_state(PART:"elm.text", "default", 0.0);
7895 program { name: "icon_show";
7896 signal: "elm,state,icon,visible";
7901 get_state(PART:"elm.text", st, 30, vl);
7902 if (!strcmp(st, "visible"))
7904 set_state(PART:"elm.swallow.content", "visible", 0.0);
7905 set_state(PART:"icon_rect", "visible", 0.0);
7906 set_state(PART:"padding_after_icon", "visible", 0.0);
7907 set_state(PART:"bg", "visible", 0.0);
7911 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7912 set_state(PART:"icon_rect", "icononly", 0.0);
7913 set_state(PART:"padding_after_icon", "icononly", 0.0);
7914 set_state(PART:"bg", "icononly", 0.0);
7918 program { name: "icon_hide";
7919 signal: "elm,state,icon,hidden";
7921 action: STATE_SET "default" 0.0;
7922 target: "elm.swallow.content";
7923 target: "padding_after_icon";
7924 target: "icon_rect";
7927 program { name: "disable";
7928 signal: "elm,state,disabled";
7930 action: STATE_SET "disabled" 0.0;
7931 target: "button_image";
7933 after: "disable_text";
7935 program { name: "disable_text";
7939 get_state(PART:"elm.text", st, 30, vl);
7940 if (!strcmp(st, "visible"))
7941 set_state(PART:"elm.text", "disabled_visible", 0.0);
7943 set_state(PART:"elm.text", "disabled", 0.0);
7944 set_int(button_state, BUTTON_STATE_DISABLED);
7947 program { name: "enable";
7948 signal: "elm,state,enabled";
7950 action: STATE_SET "default" 0.0;
7951 target: "button_image";
7953 after: "enable_text";
7955 program { name: "enable_text";
7959 get_state(PART:"elm.text", st, 30, vl);
7960 if (!strcmp(st, "disabled_visible"))
7961 set_state(PART:"elm.text", "visible", 0.0);
7963 set_state(PART:"elm.text", "default", 0.0);
7964 set_int(button_state, BUTTON_STATE_ENABLED);
7967 program { name: "focused";
7968 //signal: "elm,action,focus";
7970 action: STATE_SET "focused" 0.0;
7971 target: "button_image";
7974 program { name: "unfocused";
7975 //signal: "elm,action,unfocus";
7977 action: STATE_SET "default" 0.0;
7978 target: "button_image";
7979 after: "unfocus_text";
7981 program { name: "unfocus_text";
7982 action: STATE_SET "visible" 0.0;
7988 /////////////////////////////////////////////////////////////////////////////////////////
7989 group { name: "elm/button/base/naviframe/more/default";
7991 image: "00_Title_btn.png" COMP;
7992 image: "00_Title_btn_press.png" COMP;
7993 image: "00_winset_more.png" COMP;
7996 public button_state = BUTTON_STATE_ENABLED;
7999 part { name: "button_image";
8001 description { state: "default" 0.0;
8002 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8003 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8005 normal: "00_Title_btn.png";
8006 border: BUTTON_NAVIFRAME_MORE_BG_BORDER_INC;
8010 description { state: "clicked" 0.0;
8011 inherit: "default" 0.0;
8012 image.normal: "00_Title_btn_press.png";
8014 description { state: "disabled" 0.0;
8015 inherit: "default" 0.0;
8017 description { state: "focused" 0.0;
8018 inherit: "default" 0.0;
8019 image.normal: "00_Title_btn_press.png";
8022 part { name: "more_image";
8025 description { state: "default" 0.0;
8026 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8027 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8028 rel1.to: "button_image";
8029 rel2.to: "button_image";
8030 image.normal: "00_winset_more.png";
8032 description { state: "clicked" 0.0;
8033 inherit: "default" 0.0;
8036 part { name: "over2";
8039 ignore_flags: ON_HOLD;
8040 description { state: "default" 0.0;
8044 part { name: "over3";
8047 description { state: "default" 0.0;
8051 part { name: "disabler";
8053 description { state: "default" 0.0;
8057 description { state: "disabled" 0.0;
8058 inherit: "default" 0.0;
8064 program { name: "button_click";
8065 signal: "mouse,down,1";
8067 action: SIGNAL_EMIT "elm,action,press" "";
8068 after: "button_click_anim";
8070 program { name: "button_click_anim";
8071 action: STATE_SET "clicked" 0.0;
8072 target: "button_image";
8074 program { name: "button_unpress";
8075 action: SIGNAL_EMIT "elm,action,unpress" "";
8077 program { name: "button_mouseout_clicked";
8078 signal: "mouse,up,1";
8081 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8082 set_state(PART:"button_image", "default", 0.0);
8084 after: button_unpress;
8086 program { name: "button_unclick3";
8087 signal: "mouse,clicked,1";
8089 action: SIGNAL_EMIT "elm,action,click" "";
8091 program { name: "disable";
8092 signal: "elm,state,disabled";
8094 action: STATE_SET "disabled" 0.0;
8095 target: "button_image";
8097 after: "disable_button";
8099 program { name: "disable_button";
8101 set_int(button_state, BUTTON_STATE_DISABLED);
8104 program { name: "enable";
8105 signal: "elm,state,enabled";
8107 action: STATE_SET "default" 0.0;
8108 target: "button_image";
8110 after: "enable_button";
8112 program { name: "enable_button";
8114 set_int(button_state, BUTTON_STATE_ENABLED);
8120 ///////////////////////////////////////////////////////////////////////////////////////
8121 group { name: "elm/button/base/tickernoti";
8123 image: "00_button_06_normal.png" COMP;
8124 image: "00_button_06_press.png" COMP;
8125 image: "00_button_06_dim.png" COMP;
8128 public button_state = BUTTON_STATE_ENABLED;
8131 part { name: "button_image";
8133 description { state: "default" 0.0;
8135 normal: "00_button_06_normal.png";
8136 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8140 description { state: "clicked" 0.0;
8141 inherit: "default" 0.0;
8142 image.normal: "00_button_06_press.png";
8144 description { state: "disabled" 0.0;
8145 inherit: "default" 0.0;
8146 image.normal: "00_button_06_dim.png";
8148 description { state: "focused" 0.0;
8149 inherit: "default" 0.0;
8150 image.normal: "00_button_06_press.png";
8153 part { name: "padding_left_top";
8157 description { state: "default" 0.0;
8159 rel2.relative: 0.0 0.0;
8160 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8169 description { state: "default" 0.0;
8170 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8173 description { state: "visible" 0.0;
8174 inherit: "default" 0.0;
8175 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8177 description { state: "icononly" 0.0;
8178 inherit: "default" 0.0;
8179 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8182 part { name: "padding_right_bottom";
8186 description { state: "default" 0.0;
8188 rel1.relative: 1.0 1.0;
8189 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8194 part { name: "icon_rect";
8198 description { state: "default" 0.0;
8204 to: "padding_left_top";
8208 to_x: "padding_left_top";
8209 to_y: "padding_right_bottom";
8213 description { state: "visible" 0.0;
8215 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8216 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8220 to: "padding_left_top";
8224 to_x: "padding_left_top";
8225 to_y: "padding_right_bottom";
8229 description { state: "icononly" 0.0;
8230 inherit: "default" 0.0;
8233 part { name: "padding_after_icon";
8237 description { state: "default" 0.0; //when only icon or no icon is there
8243 rel2.to: "icon_rect";
8248 description { state: "visible" 0.0;
8255 rel2.to: "icon_rect";
8257 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8259 description { state: "icononly" 0.0;
8260 inherit: "default" 0.0;
8263 part { name: "padding_before_text";
8267 description { state: "default" 0.0; //when only icon or no icon is there
8272 to_y: "padding_left_top";
8277 to_y: "padding_right_bottom";
8280 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8284 part { name: "elm.swallow.content";
8288 description { state: "default" 0.0;
8293 to: "padding_left_top";
8297 to_x: "padding_left_top";
8298 to_y: "padding_right_bottom";
8302 description { state: "visible" 0.0;
8304 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8305 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8309 to_x: "padding_before_text";
8310 to_y: "padding_left_top";
8314 to_x: "padding_before_text";
8315 to_y: "padding_right_bottom";
8318 description { state: "icononly" 0.0;
8319 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8320 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8323 part { name: "elm.text";
8328 description { state: "default" 0.0;
8332 to_x: "padding_after_icon";
8333 to_y: "padding_left_top";
8337 to: "padding_right_bottom";
8339 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
8341 font: "SLP:style=Medium";
8342 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
8347 description { state: "visible" 0.0;
8348 inherit: "default" 0.0;
8351 description { state: "clicked" 0.0;
8352 inherit: "default" 0.0;
8354 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8356 description { state: "disabled" 0.0;
8357 inherit: "default" 0.0;
8360 description { state: "disabled_visible" 0.0;
8361 inherit: "default" 0.0;
8362 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
8365 description { state: "focused" 0.0;
8366 inherit: "default" 0.0;
8368 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8371 part { name: "over2";
8374 ignore_flags: ON_HOLD;
8375 description { state: "default" 0.0;
8379 part { name: "over3";
8382 description { state: "default" 0.0;
8386 part { name: "clipper";
8388 description { state: "default" 0.0;
8389 color: 255 255 255 255;
8392 part { name: "disabler";
8394 description { state: "default" 0.0;
8398 description { state: "disabled" 0.0;
8399 inherit: "default" 0.0;
8405 program { name: "button_click";
8406 signal: "mouse,down,1";
8408 action: SIGNAL_EMIT "elm,action,press" "";
8409 after: "button_click_anim";
8411 program { name: "button_click_anim";
8412 action: STATE_SET "clicked" 0.0;
8413 target: "button_image";
8414 after: "text_clicked";
8416 program { name: "text_clicked";
8420 get_state(PART:"elm.text", st, 30, vl);
8421 if (!strcmp(st, "visible"))
8422 set_state(PART:"elm.text", "clicked", 0.0);
8425 program { name: "button_unpress";
8426 action: SIGNAL_EMIT "elm,action,unpress" "";
8428 program { name: "button_mouseout_clicked";
8429 signal: "mouse,up,1";
8434 get_state(PART:"elm.swallow.content", st, 30, vl);
8435 if (strcmp(st, "icononly"))
8437 emit("elm,action,default,text,set", "");
8438 set_state(PART:"elm.text", "visible", 0.0);
8440 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8441 set_state(PART:"button_image", "default", 0.0);
8443 after: button_unpress;
8445 program { name: "button_unclick3";
8446 signal: "mouse,clicked,1";
8448 action: SIGNAL_EMIT "elm,action,click" "";
8450 program { name: "text_show";
8451 signal: "elm,state,text,visible";
8456 get_state(PART:"elm.swallow.content", st, 30, vl);
8457 if (!strcmp(st, "icononly"))
8459 set_state(PART:"elm.swallow.content", "visible", 0.0);
8460 set_state(PART:"icon_rect", "visible", 0.0);
8461 set_state(PART:"padding_after_icon", "visible", 0.0);
8462 set_state(PART:"bg", "visible", 0.0);
8464 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8465 set_state(PART:"elm.text", "visible", 0.0);
8467 set_state(PART:"elm.text", "disabled_visible", 0.0);
8470 program { name: "text_hide";
8471 signal: "elm,state,text,hidden";
8476 get_state(PART:"elm.swallow.content", st, 30, vl);
8477 if (!strcmp(st, "visible"))
8479 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8480 set_state(PART:"icon_rect", "icononly", 0.0);
8481 set_state(PART:"padding_after_icon", "icononly", 0.0);
8482 set_state(PART:"bg", "icononly", 0.0);
8484 set_state(PART:"elm.text", "default", 0.0);
8487 program { name: "icon_show";
8488 signal: "elm,state,icon,visible";
8493 get_state(PART:"elm.text", st, 30, vl);
8494 if (!strcmp(st, "visible"))
8496 set_state(PART:"elm.swallow.content", "visible", 0.0);
8497 set_state(PART:"icon_rect", "visible", 0.0);
8498 set_state(PART:"padding_after_icon", "visible", 0.0);
8499 set_state(PART:"bg", "visible", 0.0);
8503 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8504 set_state(PART:"icon_rect", "icononly", 0.0);
8505 set_state(PART:"padding_after_icon", "icononly", 0.0);
8506 set_state(PART:"bg", "icononly", 0.0);
8510 program { name: "icon_hide";
8511 signal: "elm,state,icon,hidden";
8513 action: STATE_SET "default" 0.0;
8514 target: "elm.swallow.content";
8515 target: "padding_after_icon";
8516 target: "icon_rect";
8519 program { name: "disable";
8520 signal: "elm,state,disabled";
8522 action: STATE_SET "disabled" 0.0;
8523 target: "button_image";
8525 after: "disable_text";
8527 program { name: "disable_text";
8531 get_state(PART:"elm.text", st, 30, vl);
8532 if (!strcmp(st, "visible"))
8533 set_state(PART:"elm.text", "disabled_visible", 0.0);
8535 set_state(PART:"elm.text", "disabled", 0.0);
8536 set_int(button_state, BUTTON_STATE_DISABLED);
8539 program { name: "enable";
8540 signal: "elm,state,enabled";
8542 action: STATE_SET "default" 0.0;
8543 target: "button_image";
8545 after: "enable_text";
8547 program { name: "enable_text";
8551 get_state(PART:"elm.text", st, 30, vl);
8552 if (!strcmp(st, "disabled_visible"))
8553 set_state(PART:"elm.text", "visible", 0.0);
8555 set_state(PART:"elm.text", "default", 0.0);
8556 set_int(button_state, BUTTON_STATE_ENABLED);
8559 program { name: "focused";
8560 //signal: "elm,action,focus";
8562 action: STATE_SET "focused" 0.0;
8563 target: "button_image";
8566 program { name: "unfocused";
8567 //signal: "elm,action,unfocus";
8569 action: STATE_SET "default" 0.0;
8570 target: "button_image";
8571 after: "unfocus_text";
8573 program { name: "unfocus_text";
8574 action: STATE_SET "visible" 0.0;
8580 ///////////////////////////////////////////////////////////////////////////////////////
8581 group { name: "elm/button/base/expandable_number";
8582 alias: "elm/button/base/text_only/expandable_number";
8584 image: "00_button_05_normal.png" COMP;
8585 image: "00_button_05_press.png" COMP;
8586 image: "00_button_05_dim.png" COMP;
8587 image: "00_arrow_expand.png" COMP;
8588 image: "00_arrow_expand_press.png" COMP;
8589 image: "00_arrow_expand_dim.png" COMP;
8592 public button_state = BUTTON_STATE_ENABLED;
8595 part { name: "button_image";
8597 description { state: "default" 0.0;
8598 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8599 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8601 normal: "00_button_05_normal.png";
8602 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
8606 description { state: "clicked" 0.0;
8607 inherit: "default" 0.0;
8608 image.normal: "00_button_05_press.png";
8610 description { state: "disabled" 0.0;
8611 inherit: "default" 0.0;
8612 image.normal: "00_button_05_dim.png";
8614 description { state: "focused" 0.0;
8615 inherit: "default" 0.0;
8616 image.normal: "00_button_05_press.png";
8619 part { name: "padding_left_top";
8623 description { state: "default" 0.0;
8625 rel2.relative: 0.0 0.0;
8626 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8631 part { name: "padding_right_bottom";
8635 description { state: "default" 0.0;
8637 rel1.relative: 1.0 1.0;
8638 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8643 part { name: "icon_rect";
8647 description { state: "default" 0.0;
8649 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8650 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8654 to_x: "padding_right_bottom";
8655 to_y: "padding_left_top";
8659 to: "padding_right_bottom";
8665 part { name: "arrow_expand";
8668 description { state: "default" 0.0;
8670 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8671 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8673 rel1.to: "icon_rect";
8674 rel2.to: "icon_rect";
8675 image.normal:"00_arrow_expand.png";
8677 description { state: "clicked" 0.0;
8678 inherit: "default" 0.0;
8679 image.normal:"00_arrow_expand_press.png";
8681 description { state: "disabled" 0.0;
8682 inherit: "default" 0.0;
8683 image.normal:"00_arrow_expand_dim.png";
8686 part { name: "elm.text";
8690 description { state: "default" 0.0;
8691 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8692 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8696 to: "padding_left_top";
8700 to_x:"padding_left_top";
8701 to_y:"padding_right_bottom";
8704 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
8706 font: "SLP:style=Medium";
8707 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
8713 description { state: "visible" 0.0;
8714 inherit: "default" 0.0;
8716 description { state: "clicked" 0.0;
8717 inherit: "default" 0.0;
8718 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
8720 description { state: "disabled" 0.0;
8721 inherit: "default" 0.0;
8724 description { state: "disabled_visible" 0.0;
8725 inherit: "default" 0.0;
8726 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
8728 description { state: "focused" 0.0;
8729 inherit: "default" 0.0;
8730 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
8733 part { name: "over2";
8736 ignore_flags: ON_HOLD;
8737 description { state: "default" 0.0;
8741 part { name: "over3";
8744 description { state: "default" 0.0;
8748 part { name: "disabler";
8750 description { state: "default" 0.0;
8754 description { state: "disabled" 0.0;
8755 inherit: "default" 0.0;
8761 program { name: "button_click";
8762 signal: "mouse,down,1";
8764 action: SIGNAL_EMIT "elm,action,press" "";
8765 after: "button_click_anim";
8767 program { name: "button_click_anim";
8768 action: STATE_SET "clicked" 0.0;
8769 target: "button_image";
8770 target: "arrow_expand";
8771 after: "text_clicked";
8773 program { name: "text_clicked";
8777 get_state(PART:"elm.text", st, 30, vl);
8778 if (!strcmp(st, "visible"))
8779 set_state(PART:"elm.text", "clicked", 0.0);
8782 program { name: "button_unpress";
8783 action: SIGNAL_EMIT "elm,action,unpress" "";
8785 program { name: "button_mouseout_clicked";
8786 signal: "mouse,up,1";
8789 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8791 set_state(PART:"button_image", "default", 0.0);
8792 set_state(PART:"elm.text", "visible", 0.0);
8793 set_state(PART:"arrow_expand", "default", 0.0);
8796 after: button_unpress;
8798 program { name: "button_unclick3";
8799 signal: "mouse,clicked,1";
8801 action: SIGNAL_EMIT "elm,action,click" "";
8803 program { name: "text_show";
8804 signal: "elm,state,text,visible";
8807 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8808 set_state(PART:"elm.text", "visible", 0.0);
8810 set_state(PART:"elm.text", "disabled_visible", 0.0);
8813 program { name: "text_hide";
8814 signal: "elm,state,text,hidden";
8817 set_state(PART:"elm.text", "default", 0.0);
8820 program { name: "disable";
8821 signal: "elm,state,disabled";
8823 action: STATE_SET "disabled" 0.0;
8824 target: "button_image";
8826 after: "disable_text";
8828 program { name: "disable_text";
8832 get_state(PART:"elm.text", st, 30, vl);
8833 if (!strcmp(st, "visible"))
8834 set_state(PART:"elm.text", "disabled_visible", 0.0);
8836 set_state(PART:"elm.text", "disabled", 0.0);
8837 set_int(button_state, BUTTON_STATE_DISABLED);
8840 program { name: "enable";
8841 signal: "elm,state,enabled";
8843 action: STATE_SET "default" 0.0;
8844 target: "button_image";
8846 after: "enable_text";
8848 program { name: "enable_text";
8852 get_state(PART:"elm.text", st, 30, vl);
8853 if (!strcmp(st, "disabled_visible"))
8854 set_state(PART:"elm.text", "visible", 0.0);
8856 set_state(PART:"elm.text", "default", 0.0);
8857 set_int(button_state, BUTTON_STATE_ENABLED);
8860 program { name: "focused";
8861 //signal: "elm,action,focus";
8863 action: STATE_SET "focused" 0.0;
8864 target: "button_image";
8867 program { name: "unfocused";
8868 //signal: "elm,action,unfocus";
8870 action: STATE_SET "default" 0.0;
8871 target: "button_image";
8872 after: "unfocus_text";
8874 program { name: "unfocus_text";
8875 action: STATE_SET "visible" 0.0;
8881 #undef BUTTON_STATE_ENABLED
8882 #undef BUTTON_STATE_DISABLED