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;
6256 description { state: "disabled" 0.0;
6257 inherit: "default" 0.0;
6258 color: 127 127 127 127;
6261 part { name: "over2";
6264 ignore_flags: ON_HOLD;
6265 description { state: "default" 0.0;
6269 part { name: "over3";
6272 description { state: "default" 0.0;
6276 part { name: "disabler";
6278 description { state: "default" 0.0;
6282 description { state: "disabled" 0.0;
6283 inherit: "default" 0.0;
6289 program { name: "button_click";
6290 signal: "mouse,down,1";
6292 action: SIGNAL_EMIT "elm,action,press" "";
6293 after: "button_click_anim";
6295 program { name: "button_click_anim";
6296 action: STATE_SET "clicked" 0.0;
6297 target: "button_image";
6299 program { name: "button_unpress";
6300 action: SIGNAL_EMIT "elm,action,unpress" "";
6302 program { name: "button_mouseout_clicked";
6303 signal: "mouse,up,1";
6306 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6307 set_state(PART:"button_image", "default", 0.0);
6309 after: button_unpress;
6311 program { name: "button_unclick3";
6312 signal: "mouse,clicked,1";
6314 action: SIGNAL_EMIT "elm,action,click" "";
6316 program { name: "disable";
6317 signal: "elm,state,disabled";
6319 action: STATE_SET "disabled" 0.0;
6320 target: "button_image";
6322 target: "back_button";
6323 after: "disable_button";
6325 program { name: "disable_button";
6327 set_int(button_state, BUTTON_STATE_DISABLED);
6330 program { name: "enable";
6331 signal: "elm,state,enabled";
6333 action: STATE_SET "default" 0.0;
6334 target: "button_image";
6336 target: "back_button";
6337 after: "enable_button";
6339 program { name: "enable_button";
6341 set_int(button_state, BUTTON_STATE_ENABLED);
6347 ///////////////////////////////////////////////////////////////////////////////////////
6348 group { name: "elm/button/base/picker/prev/icon/default";
6350 image: "00_picker_btn_normal.png" COMP;
6351 image: "00_picker_btn_press.png" COMP;
6352 image: "00_picker_arrow_left.png" COMP;
6353 image: "00_picker_arrow_left_press.png" COMP;
6356 public button_state = BUTTON_STATE_ENABLED;
6359 part { name: "button_image";
6361 description { state: "default" 0.0;
6362 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6363 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6365 normal: "00_picker_btn_normal.png";
6366 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6370 description { state: "clicked" 0.0;
6371 inherit: "default" 0.0;
6372 image.normal: "00_picker_btn_press.png";
6374 description { state: "disabled" 0.0;
6375 inherit: "default" 0.0;
6377 description { state: "focused" 0.0;
6378 inherit: "default" 0.0;
6379 image.normal: "00_picker_btn_press.png";
6382 part { name: "padding_left_top";
6386 description { state: "default" 0.0;
6388 rel2.relative: 0.0 0.0;
6389 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6394 part { name: "padding_right_bottom";
6398 description { state: "default" 0.0;
6400 rel1.relative: 1.0 1.0;
6401 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6406 part { name: "left_arrow";
6409 description { state: "default" 0.0;
6410 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6411 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6414 to: "padding_left_top";
6418 to: "padding_right_bottom";
6420 image.normal: "00_picker_arrow_left.png";
6422 description { state: "clicked" 0.0;
6423 inherit: "default" 0.0;
6424 image.normal: "00_picker_arrow_left_press.png";
6427 part { name: "over2";
6430 ignore_flags: ON_HOLD;
6431 description { state: "default" 0.0;
6435 part { name: "over3";
6438 description { state: "default" 0.0;
6442 part { name: "disabler";
6444 description { state: "default" 0.0;
6448 description { state: "disabled" 0.0;
6449 inherit: "default" 0.0;
6455 program { name: "button_click";
6456 signal: "mouse,down,1";
6458 action: SIGNAL_EMIT "elm,action,press" "";
6459 after: "button_click_anim";
6461 program { name: "button_click_anim";
6462 action: STATE_SET "clicked" 0.0;
6463 target: "button_image";
6465 program { name: "button_unpress";
6466 action: SIGNAL_EMIT "elm,action,unpress" "";
6468 program { name: "button_mouseout_clicked";
6469 signal: "mouse,up,1";
6472 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6473 set_state(PART:"button_image", "default", 0.0);
6475 after: button_unpress;
6477 program { name: "button_unclick3";
6478 signal: "mouse,clicked,1";
6480 action: SIGNAL_EMIT "elm,action,click" "";
6482 program { name: "disable";
6483 signal: "elm,state,disabled";
6485 action: STATE_SET "disabled" 0.0;
6486 target: "button_image";
6488 after: "disable_button";
6490 program { name: "disable_button";
6492 set_int(button_state, BUTTON_STATE_DISABLED);
6495 program { name: "enable";
6496 signal: "elm,state,enabled";
6498 action: STATE_SET "default" 0.0;
6499 target: "button_image";
6501 after: "enable_button";
6503 program { name: "enable_button";
6505 set_int(button_state, BUTTON_STATE_ENABLED);
6508 program { name: "focused";
6509 //signal: "elm,action,focus";
6511 action: STATE_SET "focused" 0.0;
6512 target: "button_image";
6514 program { name: "unfocused";
6515 //signal: "elm,action,unfocus";
6517 action: STATE_SET "default" 0.0;
6518 target: "button_image";
6523 ///////////////////////////////////////////////////////////////////////////////////////
6524 group { name: "elm/button/base/picker/next/icon/default";
6526 image: "00_picker_btn_normal.png" COMP;
6527 image: "00_picker_btn_press.png" COMP;
6528 image: "00_picker_arrow_right.png" COMP;
6529 image: "00_picker_arrow_right_press.png" COMP;
6532 public button_state = BUTTON_STATE_ENABLED;
6535 part { name: "button_image";
6537 description { state: "default" 0.0;
6538 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6539 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6541 normal: "00_picker_btn_normal.png";
6542 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6546 description { state: "clicked" 0.0;
6547 inherit: "default" 0.0;
6548 image.normal: "00_picker_btn_press.png";
6550 description { state: "disabled" 0.0;
6551 inherit: "default" 0.0;
6553 description { state: "focused" 0.0;
6554 inherit: "default" 0.0;
6555 image.normal: "00_picker_btn_press.png";
6558 part { name: "padding_left_top";
6562 description { state: "default" 0.0;
6564 rel2.relative: 0.0 0.0;
6565 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6570 part { name: "padding_right_bottom";
6574 description { state: "default" 0.0;
6576 rel1.relative: 1.0 1.0;
6577 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6582 part { name: "right_arrow";
6585 description { state: "default" 0.0;
6586 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6587 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6590 to: "padding_left_top";
6594 to: "padding_right_bottom";
6596 image.normal: "00_picker_arrow_right.png";
6598 description { state: "clicked" 0.0;
6599 inherit: "default" 0.0;
6600 image.normal: "00_picker_arrow_right_press.png";
6603 part { name: "over2";
6606 ignore_flags: ON_HOLD;
6607 description { state: "default" 0.0;
6611 part { name: "over3";
6614 description { state: "default" 0.0;
6618 part { name: "disabler";
6620 description { state: "default" 0.0;
6624 description { state: "disabled" 0.0;
6625 inherit: "default" 0.0;
6631 program { name: "button_click";
6632 signal: "mouse,down,1";
6634 action: SIGNAL_EMIT "elm,action,press" "";
6635 after: "button_click_anim";
6637 program { name: "button_click_anim";
6638 action: STATE_SET "clicked" 0.0;
6639 target: "button_image";
6641 program { name: "button_unpress";
6642 action: SIGNAL_EMIT "elm,action,unpress" "";
6644 program { name: "button_mouseout_clicked";
6645 signal: "mouse,up,1";
6648 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6649 set_state(PART:"button_image", "default", 0.0);
6651 after: button_unpress;
6653 program { name: "button_unclick3";
6654 signal: "mouse,clicked,1";
6656 action: SIGNAL_EMIT "elm,action,click" "";
6658 program { name: "disable";
6659 signal: "elm,state,disabled";
6661 action: STATE_SET "disabled" 0.0;
6662 target: "button_image";
6664 after: "disable_button";
6666 program { name: "disable_button";
6668 set_int(button_state, BUTTON_STATE_DISABLED);
6671 program { name: "enable";
6672 signal: "elm,state,enabled";
6674 action: STATE_SET "default" 0.0;
6675 target: "button_image";
6677 after: "enable_button";
6679 program { name: "enable_button";
6681 set_int(button_state, BUTTON_STATE_ENABLED);
6684 program { name: "focused";
6685 //signal: "elm,action,focus";
6687 action: STATE_SET "focused" 0.0;
6688 target: "button_image";
6690 program { name: "unfocused";
6691 //signal: "elm,action,unfocus";
6693 action: STATE_SET "default" 0.0;
6694 target: "button_image";
6699 ///////////////////////////////////////////////////////////////////////////////////////
6700 group { name: "elm/button/base/naviframe_control/default";
6701 alias: "elm/button/base/naviframe_control/center";
6703 public button_state = BUTTON_STATE_ENABLED;
6706 image: "00_Option_header_bt.png" COMP;
6707 image: "00_Option_header_bt_dim.png" COMP;
6708 image: "00_Option_header_bt_press.png" COMP;
6711 part { name: "button_image";
6713 description { state: "default" 0.0;
6714 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6719 normal: "00_Option_header_bt.png";
6720 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6722 color: 255 255 255 255;
6724 description { state: "disabled" 0.0;
6725 inherit: "default" 0.0;
6726 image.normal: "00_Option_header_bt_dim.png";
6728 description { state: "clicked" 0.0;
6729 inherit: "default" 0.0;
6730 image.normal: "00_Option_header_bt_press.png";
6733 part { name: "padding_left_top";
6737 description { state: "default" 0.0;
6739 rel2.relative: 0.0 0.0;
6740 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6745 part { name: "padding_right_bottom";
6749 description { state: "default" 0.0;
6751 rel1.relative: 1.0 1.0;
6752 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6757 part { name: "icon_rect";
6761 description { state: "default" 0.0;
6766 to: "padding_left_top";
6770 to_x: "padding_left_top";
6771 to_y: "padding_right_bottom";
6776 description { state: "visible" 0.0;
6777 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6781 to: "padding_left_top";
6785 to_x: "padding_left_top";
6786 to_y: "padding_right_bottom";
6791 description { state: "icononly" 0.0;
6792 inherit: "default" 0.0;
6795 part { name: "padding_after_icon";
6799 description { state: "default" 0.0; //when only icon or no icon is there
6805 rel2.to: "icon_rect";
6810 description { state: "visible" 0.0;
6816 rel2.to: "icon_rect";
6818 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6821 description { state: "icononly" 0.0;
6822 inherit: "default" 0.0;
6825 part { name: "padding_before_text";
6829 description { state: "default" 0.0; //when only icon or no icon is there
6834 to_y: "padding_left_top";
6839 to_y: "padding_right_bottom";
6842 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6846 part { name: "elm.swallow.content";
6850 description { state: "default" 0.0;
6855 to: "padding_left_top";
6859 to_x: "padding_left_top";
6860 to_y: "padding_right_bottom";
6864 description { state: "visible" 0.0;
6866 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6867 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6871 to_x: "padding_before_text";
6872 to_y: "padding_left_top";
6876 to_x: "padding_before_text";
6877 to_y: "padding_right_bottom";
6880 aspect_preference: VERTICAL;
6882 description { state: "icononly" 0.0;
6883 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6884 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6887 to: "padding_left_top";
6891 to: "padding_right_bottom";
6894 aspect_preference: VERTICAL;
6897 part { name: "elm.text";
6902 description { state: "default" 0.0;
6906 to_x: "padding_after_icon";
6907 to_y: "padding_left_top";
6911 to: "padding_right_bottom";
6913 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6915 font: "SLP:style=Medium";
6916 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6921 description { state: "visible" 0.0;
6922 inherit: "default" 0.0;
6925 description { state: "clicked" 0.0;
6926 inherit: "default" 0.0;
6930 description { state: "focused" 0.0;
6931 inherit: "default" 0.0;
6934 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6937 part { name: "over2";
6940 ignore_flags: ON_HOLD;
6941 description { state: "default" 0.0;
6945 part { name: "over3";
6948 description { state: "default" 0.0;
6952 part { name: "clipper";
6954 description { state: "default" 0.0;
6955 color: 255 255 255 255;
6957 description { state: "disabled" 0.0;
6958 color: 255 255 255 127;
6961 part { name: "disabler";
6963 description { state: "default" 0.0;
6967 description { state: "disabled" 0.0;
6968 inherit: "default" 0.0;
6974 program { name: "button_click";
6975 signal: "mouse,down,1";
6977 action: SIGNAL_EMIT "elm,action,press" "";
6978 after: "button_click_anim";
6980 program { name: "button_click_anim";
6981 action: STATE_SET "clicked" 0.0;
6982 target: "button_image";
6983 after: "text_clicked";
6985 program { name: "text_clicked";
6989 get_state(PART:"elm.text", st, 30, vl);
6990 if (!strcmp(st, "visible"))
6991 set_state(PART:"elm.text", "clicked", 0.0);
6994 program { name: "button_unpress";
6995 action: SIGNAL_EMIT "elm,action,unpress" "";
6997 program { name: "button_mouseout_clicked";
6998 signal: "mouse,up,1";
7003 get_state(PART:"elm.swallow.content", st, 30, vl);
7004 if (strcmp(st, "icononly"))
7006 emit("elm,action,default,text,set", "");
7007 set_state(PART:"elm.text", "visible", 0.0);
7009 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7010 set_state(PART:"button_image", "default", 0.0);
7012 after: button_unpress;
7014 program { name: "button_unclick3";
7015 signal: "mouse,clicked,1";
7017 action: SIGNAL_EMIT "elm,action,click" "";
7019 program { name: "text_show";
7020 signal: "elm,state,text,visible";
7025 get_state(PART:"elm.swallow.content", st, 30, vl);
7026 if (!strcmp(st, "icononly"))
7028 set_state(PART:"elm.swallow.content", "visible", 0.0);
7029 set_state(PART:"icon_rect", "visible", 0.0);
7030 set_state(PART:"padding_after_icon", "visible", 0.0);
7032 set_state(PART:"elm.text", "visible", 0.0);
7035 program { name: "text_hide";
7036 signal: "elm,state,text,hidden";
7041 get_state(PART:"elm.swallow.content", st, 30, vl);
7042 if (!strcmp(st, "visible"))
7044 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7045 set_state(PART:"icon_rect", "icononly", 0.0);
7046 set_state(PART:"padding_after_icon", "icononly", 0.0);
7048 set_state(PART:"elm.text", "default", 0.0);
7051 program { name: "icon_show";
7052 signal: "elm,state,icon,visible";
7057 get_state(PART:"elm.text", st, 30, vl);
7058 if (!strcmp(st, "visible"))
7060 set_state(PART:"elm.swallow.content", "visible", 0.0);
7061 set_state(PART:"icon_rect", "visible", 0.0);
7062 set_state(PART:"padding_after_icon", "visible", 0.0);
7066 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7067 set_state(PART:"icon_rect", "icononly", 0.0);
7068 set_state(PART:"padding_after_icon", "icononly", 0.0);
7072 program { name: "icon_hide";
7073 signal: "elm,state,icon,hidden";
7075 action: STATE_SET "default" 0.0;
7076 target: "elm.swallow.content";
7077 target: "icon_rect";
7078 target: "padding_after_icon";
7080 program { name: "disable";
7081 signal: "elm,state,disabled";
7083 action: STATE_SET "disabled" 0.0;
7084 target: "button_image";
7087 after: "disable_text";
7089 program { name: "disable_text";
7093 set_int(button_state, BUTTON_STATE_DISABLED);
7094 get_state(PART:"elm.text", st, 30, vl);
7095 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7096 set_state(PART:"elm.text", "visible", 0.0);
7099 program { name: "enable";
7100 signal: "elm,state,enabled";
7102 action: STATE_SET "default" 0.0;
7103 target: "button_image";
7106 after: "enable_text";
7108 program { name: "enable_text";
7112 set_int(button_state, BUTTON_STATE_ENABLED);
7113 get_state(PART:"elm.text", st, 30, vl);
7114 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7115 set_state(PART:"elm.text", "visible", 0.0);
7118 program { name: "focused";
7119 action: STATE_SET "focused" 0.0;
7120 target: "button_image";
7123 program { name: "unfocused";
7124 action: STATE_SET "default" 0.0;
7125 target: "button_image";
7126 after: "unfocus_text";
7128 program { name: "unfocus_text";
7129 action: STATE_SET "visible" 0.0;
7135 ///////////////////////////////////////////////////////////////////////////////////////
7136 group { name: "elm/button/base/naviframe_control/multiline";
7138 public button_state = BUTTON_STATE_ENABLED;
7141 image: "00_Option_header_bt.png" COMP;
7142 image: "00_Option_header_bt_dim.png" COMP;
7143 image: "00_Option_header_bt_press.png" COMP;
7146 style { name: "btn_multiline_naviframe_controlbar_style";
7147 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
7154 part { name: "button_image";
7156 description { state: "default" 0.0;
7157 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
7161 normal: "00_Option_header_bt.png";
7162 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
7164 color: 255 255 255 255;
7166 description { state: "disabled" 0.0;
7167 inherit: "default" 0.0;
7168 image.normal: "00_Option_header_bt_dim.png";
7170 description { state: "clicked" 0.0;
7171 inherit: "default" 0.0;
7172 image.normal: "00_Option_header_bt_press.png";
7175 part { name: "padding_left_top";
7179 description { state: "default" 0.0;
7181 rel2.relative: 0.0 0.0;
7182 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7187 part { name: "padding_right_bottom";
7191 description { state: "default" 0.0;
7193 rel1.relative: 1.0 1.0;
7194 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7199 part { name: "icon_rect";
7203 description { state: "default" 0.0;
7209 to_x: "elm.swallow.content";
7210 to_y: "padding_left_top";
7214 to_x: "elm.swallow.content";
7215 to_y: "padding_right_bottom";
7220 part { name: "padding_icon_text";
7224 description { state: "default" 0.0; //when only icon or no icon is there
7238 description { state: "visible" 0.0;
7239 inherit: "default" 0.0;
7240 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
7250 description { state: "icononly" 0.0;
7251 inherit: "default" 0.0;
7254 part { name: "elm.swallow.content";
7258 description { state: "default" 0.0;
7263 to: "padding_left_top";
7267 to_x: "padding_left_top";
7268 to_y: "padding_right_bottom";
7272 description { state: "visible" 0.0;
7274 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7275 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7279 to: "padding_left_top";
7283 to_x: "padding_left_top";
7284 to_y: "padding_right_bottom";
7287 description { state: "icononly" 0.0;
7288 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7289 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7292 to: "padding_left_top";
7296 to: "padding_right_bottom";
7300 part { name: "elm.text";
7305 description { state: "default" 0.0;
7309 to_x: "padding_icon_text";
7310 to_y: "padding_left_top";
7314 to: "padding_right_bottom";
7316 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7318 style: "btn_multiline_naviframe_controlbar_style";
7323 description { state: "visible" 0.0;
7324 inherit: "default" 0.0;
7328 description { state: "clicked" 0.0;
7329 inherit: "default" 0.0;
7333 description { state: "focused" 0.0;
7334 inherit: "default" 0.0;
7337 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7340 part { name: "over2";
7343 ignore_flags: ON_HOLD;
7344 description { state: "default" 0.0;
7348 part { name: "over3";
7351 description { state: "default" 0.0;
7355 part { name: "clipper";
7357 description { state: "default" 0.0;
7358 color: 255 255 255 255;
7360 description { state: "disabled" 0.0;
7361 color: 255 255 255 127;
7364 part { name: "disabler";
7366 description { state: "default" 0.0;
7370 description { state: "disabled" 0.0;
7371 inherit: "default" 0.0;
7377 program { name: "button_click";
7378 signal: "mouse,down,1";
7380 action: SIGNAL_EMIT "elm,action,press" "";
7381 after: "button_click_anim";
7383 program { name: "button_click_anim";
7384 action: STATE_SET "clicked" 0.0;
7385 target: "button_image";
7386 after: "text_clicked";
7388 program { name: "text_clicked";
7392 get_state(PART:"elm.text", st, 30, vl);
7393 if (!strcmp(st, "visible"))
7394 set_state(PART:"elm.text", "clicked", 0.0);
7397 program { name: "button_unpress";
7398 action: SIGNAL_EMIT "elm,action,unpress" "";
7400 program { name: "button_mouseout_clicked";
7401 signal: "mouse,up,1";
7406 get_state(PART:"elm.swallow.content", st, 30, vl);
7407 if (strcmp(st, "icononly"))
7409 emit("elm,action,default,text,set", "");
7410 set_state(PART:"elm.text", "visible", 0.0);
7412 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7413 set_state(PART:"button_image", "default", 0.0);
7415 after: button_unpress;
7417 program { name: "button_unclick3";
7418 signal: "mouse,clicked,1";
7420 action: SIGNAL_EMIT "elm,action,click" "";
7422 program { name: "text_show";
7423 signal: "elm,state,text,visible";
7428 get_state(PART:"elm.swallow.content", st, 30, vl);
7429 if (!strcmp(st, "icononly"))
7431 set_state(PART:"elm.swallow.content", "visible", 0.0);
7432 set_state(PART:"padding_icon_text", "visible", 0.0);
7434 set_state(PART:"elm.text", "visible", 0.0);
7437 program { name: "text_hide";
7438 signal: "elm,state,text,hidden";
7443 get_state(PART:"elm.swallow.content", st, 30, vl);
7444 if (!strcmp(st, "visible"))
7446 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7447 set_state(PART:"padding_icon_text", "icononly", 0.0);
7449 set_state(PART:"elm.text", "default", 0.0);
7452 program { name: "icon_show";
7453 signal: "elm,state,icon,visible";
7458 get_state(PART:"elm.text", st, 30, vl);
7459 if (!strcmp(st, "visible"))
7461 set_state(PART:"elm.swallow.content", "visible", 0.0);
7462 set_state(PART:"padding_icon_text", "visible", 0.0);
7466 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7467 set_state(PART:"padding_icon_text", "icononly", 0.0);
7471 program { name: "icon_hide";
7472 signal: "elm,state,icon,hidden";
7474 action: STATE_SET "default" 0.0;
7475 target: "elm.swallow.content";
7476 target: "padding_icon_text";
7478 program { name: "disable";
7479 signal: "elm,state,disabled";
7481 action: STATE_SET "disabled" 0.0;
7482 target: "button_image";
7485 after: "disable_text";
7487 program { name: "disable_text";
7491 set_int(button_state, BUTTON_STATE_DISABLED);
7492 get_state(PART:"elm.text", st, 30, vl);
7493 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7494 set_state(PART:"elm.text", "visible", 0.0);
7497 program { name: "enable";
7498 signal: "elm,state,enabled";
7500 action: STATE_SET "default" 0.0;
7501 target: "button_image";
7504 after: "enable_text";
7506 program { name: "enable_text";
7510 set_int(button_state, BUTTON_STATE_ENABLED);
7511 get_state(PART:"elm.text", st, 30, vl);
7512 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7513 set_state(PART:"elm.text", "visible", 0.0);
7516 program { name: "focused";
7517 action: STATE_SET "focused" 0.0;
7518 target: "button_image";
7521 program { name: "unfocused";
7522 action: STATE_SET "default" 0.0;
7523 target: "button_image";
7524 after: "unfocus_text";
7526 program { name: "unfocus_text";
7527 action: STATE_SET "visible" 0.0;
7533 //////////////////////////////////////////////////////////////
7534 group { name: "elm/button/base/naviframe/title/default";
7536 image: "00_Title_btn.png" COMP;
7537 image: "00_Title_btn_press.png" COMP;
7540 public button_state = BUTTON_STATE_ENABLED;
7543 part { name: "button_image";
7545 description { state: "default" 0.0;
7546 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7547 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7549 normal: "00_Title_btn.png";
7550 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7554 description { state: "clicked" 0.0;
7555 inherit: "default" 0.0;
7556 image.normal: "00_Title_btn_press.png";
7558 description { state: "disabled" 0.0;
7559 inherit: "default" 0.0;
7562 description { state: "focused" 0.0;
7563 inherit: "default" 0.0;
7564 image.normal: "00_Title_btn_press.png";
7567 part { name: "padding_left_top";
7571 description { state: "default" 0.0;
7573 rel2.relative: 0.0 0.0;
7574 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7583 description { state: "default" 0.0;
7584 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7587 description { state: "visible" 0.0;
7588 inherit: "default" 0.0;
7589 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7591 description { state: "icononly" 0.0;
7592 inherit: "default" 0.0;
7593 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7596 part { name: "padding_right_bottom";
7600 description { state: "default" 0.0;
7602 rel1.relative: 1.0 1.0;
7603 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7608 part { name: "icon_rect";
7612 description { state: "default" 0.0;
7618 to: "padding_left_top";
7622 to_x: "padding_left_top";
7623 to_y: "padding_right_bottom";
7627 description { state: "visible" 0.0;
7629 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7630 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7634 to: "padding_left_top";
7638 to_x: "padding_left_top";
7639 to_y: "padding_right_bottom";
7643 description { state: "icononly" 0.0;
7644 inherit: "default" 0.0;
7647 part { name: "padding_after_icon";
7651 description { state: "default" 0.0; //when only icon or no icon is there
7657 rel2.to: "icon_rect";
7662 description { state: "visible" 0.0;
7669 rel2.to: "icon_rect";
7671 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7673 description { state: "icononly" 0.0;
7674 inherit: "default" 0.0;
7677 part { name: "padding_before_text";
7681 description { state: "default" 0.0; //when only icon or no icon is there
7686 to_y: "padding_left_top";
7691 to_y: "padding_right_bottom";
7694 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7698 part { name: "elm.swallow.content";
7702 description { state: "default" 0.0;
7707 to: "padding_left_top";
7711 to_x: "padding_left_top";
7712 to_y: "padding_right_bottom";
7716 description { state: "visible" 0.0;
7718 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7719 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7723 to_x: "padding_before_text";
7724 to_y: "padding_left_top";
7728 to_x: "padding_before_text";
7729 to_y: "padding_right_bottom";
7732 description { state: "icononly" 0.0;
7733 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7734 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7737 part { name: "elm.text";
7742 description { state: "default" 0.0;
7746 to_x: "padding_after_icon";
7747 to_y: "padding_left_top";
7751 to: "padding_right_bottom";
7753 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7755 font: "SLP:style=Medium";
7756 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7761 description { state: "visible" 0.0;
7762 inherit: "default" 0.0;
7765 description { state: "clicked" 0.0;
7766 inherit: "default" 0.0;
7768 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7770 description { state: "disabled" 0.0;
7771 inherit: "default" 0.0;
7774 description { state: "disabled_visible" 0.0;
7775 inherit: "default" 0.0;
7776 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7779 description { state: "focused" 0.0;
7780 inherit: "default" 0.0;
7782 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7785 part { name: "over2";
7788 ignore_flags: ON_HOLD;
7789 description { state: "default" 0.0;
7793 part { name: "over3";
7796 description { state: "default" 0.0;
7800 part { name: "clipper";
7802 description { state: "default" 0.0;
7803 color: 255 255 255 255;
7806 part { name: "disabler";
7808 description { state: "default" 0.0;
7812 description { state: "disabled" 0.0;
7813 inherit: "default" 0.0;
7819 program { name: "button_click";
7820 signal: "mouse,down,1";
7822 action: SIGNAL_EMIT "elm,action,press" "";
7823 after: "button_click_anim";
7825 program { name: "button_click_anim";
7826 action: STATE_SET "clicked" 0.0;
7827 target: "button_image";
7828 after: "text_clicked";
7830 program { name: "text_clicked";
7834 get_state(PART:"elm.text", st, 30, vl);
7835 if (!strcmp(st, "visible"))
7836 set_state(PART:"elm.text", "clicked", 0.0);
7839 program { name: "button_unpress";
7840 action: SIGNAL_EMIT "elm,action,unpress" "";
7842 program { name: "button_mouseout_clicked";
7843 signal: "mouse,up,1";
7848 get_state(PART:"elm.swallow.content", st, 30, vl);
7849 if (strcmp(st, "icononly"))
7851 emit("elm,action,default,text,set", "");
7852 set_state(PART:"elm.text", "visible", 0.0);
7854 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7855 set_state(PART:"button_image", "default", 0.0);
7857 after: button_unpress;
7859 program { name: "button_unclick3";
7860 signal: "mouse,clicked,1";
7862 action: SIGNAL_EMIT "elm,action,click" "";
7864 program { name: "text_show";
7865 signal: "elm,state,text,visible";
7870 get_state(PART:"elm.swallow.content", st, 30, vl);
7871 if (!strcmp(st, "icononly"))
7873 set_state(PART:"elm.swallow.content", "visible", 0.0);
7874 set_state(PART:"icon_rect", "visible", 0.0);
7875 set_state(PART:"padding_after_icon", "visible", 0.0);
7876 set_state(PART:"bg", "visible", 0.0);
7878 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7879 set_state(PART:"elm.text", "visible", 0.0);
7881 set_state(PART:"elm.text", "disabled_visible", 0.0);
7884 program { name: "text_hide";
7885 signal: "elm,state,text,hidden";
7890 get_state(PART:"elm.swallow.content", st, 30, vl);
7891 if (!strcmp(st, "visible"))
7893 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7894 set_state(PART:"icon_rect", "icononly", 0.0);
7895 set_state(PART:"padding_after_icon", "icononly", 0.0);
7896 set_state(PART:"bg", "icononly", 0.0);
7898 set_state(PART:"elm.text", "default", 0.0);
7901 program { name: "icon_show";
7902 signal: "elm,state,icon,visible";
7907 get_state(PART:"elm.text", st, 30, vl);
7908 if (!strcmp(st, "visible"))
7910 set_state(PART:"elm.swallow.content", "visible", 0.0);
7911 set_state(PART:"icon_rect", "visible", 0.0);
7912 set_state(PART:"padding_after_icon", "visible", 0.0);
7913 set_state(PART:"bg", "visible", 0.0);
7917 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7918 set_state(PART:"icon_rect", "icononly", 0.0);
7919 set_state(PART:"padding_after_icon", "icononly", 0.0);
7920 set_state(PART:"bg", "icononly", 0.0);
7924 program { name: "icon_hide";
7925 signal: "elm,state,icon,hidden";
7927 action: STATE_SET "default" 0.0;
7928 target: "elm.swallow.content";
7929 target: "padding_after_icon";
7930 target: "icon_rect";
7933 program { name: "disable";
7934 signal: "elm,state,disabled";
7936 action: STATE_SET "disabled" 0.0;
7937 target: "button_image";
7939 after: "disable_text";
7941 program { name: "disable_text";
7945 get_state(PART:"elm.text", st, 30, vl);
7946 if (!strcmp(st, "visible"))
7947 set_state(PART:"elm.text", "disabled_visible", 0.0);
7949 set_state(PART:"elm.text", "disabled", 0.0);
7950 set_int(button_state, BUTTON_STATE_DISABLED);
7953 program { name: "enable";
7954 signal: "elm,state,enabled";
7956 action: STATE_SET "default" 0.0;
7957 target: "button_image";
7959 after: "enable_text";
7961 program { name: "enable_text";
7965 get_state(PART:"elm.text", st, 30, vl);
7966 if (!strcmp(st, "disabled_visible"))
7967 set_state(PART:"elm.text", "visible", 0.0);
7969 set_state(PART:"elm.text", "default", 0.0);
7970 set_int(button_state, BUTTON_STATE_ENABLED);
7973 program { name: "focused";
7974 //signal: "elm,action,focus";
7976 action: STATE_SET "focused" 0.0;
7977 target: "button_image";
7980 program { name: "unfocused";
7981 //signal: "elm,action,unfocus";
7983 action: STATE_SET "default" 0.0;
7984 target: "button_image";
7985 after: "unfocus_text";
7987 program { name: "unfocus_text";
7988 action: STATE_SET "visible" 0.0;
7994 /////////////////////////////////////////////////////////////////////////////////////////
7995 group { name: "elm/button/base/naviframe/more/default";
7997 image: "00_Title_btn.png" COMP;
7998 image: "00_Title_btn_press.png" COMP;
7999 image: "00_winset_more.png" COMP;
8002 public button_state = BUTTON_STATE_ENABLED;
8005 part { name: "button_image";
8007 description { state: "default" 0.0;
8008 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8009 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8011 normal: "00_Title_btn.png";
8012 border: BUTTON_NAVIFRAME_MORE_BG_BORDER_INC;
8016 description { state: "clicked" 0.0;
8017 inherit: "default" 0.0;
8018 image.normal: "00_Title_btn_press.png";
8020 description { state: "disabled" 0.0;
8021 inherit: "default" 0.0;
8023 description { state: "focused" 0.0;
8024 inherit: "default" 0.0;
8025 image.normal: "00_Title_btn_press.png";
8028 part { name: "more_image";
8031 description { state: "default" 0.0;
8032 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8033 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8034 rel1.to: "button_image";
8035 rel2.to: "button_image";
8036 image.normal: "00_winset_more.png";
8038 description { state: "clicked" 0.0;
8039 inherit: "default" 0.0;
8042 part { name: "over2";
8045 ignore_flags: ON_HOLD;
8046 description { state: "default" 0.0;
8050 part { name: "over3";
8053 description { state: "default" 0.0;
8057 part { name: "disabler";
8059 description { state: "default" 0.0;
8063 description { state: "disabled" 0.0;
8064 inherit: "default" 0.0;
8070 program { name: "button_click";
8071 signal: "mouse,down,1";
8073 action: SIGNAL_EMIT "elm,action,press" "";
8074 after: "button_click_anim";
8076 program { name: "button_click_anim";
8077 action: STATE_SET "clicked" 0.0;
8078 target: "button_image";
8080 program { name: "button_unpress";
8081 action: SIGNAL_EMIT "elm,action,unpress" "";
8083 program { name: "button_mouseout_clicked";
8084 signal: "mouse,up,1";
8087 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8088 set_state(PART:"button_image", "default", 0.0);
8090 after: button_unpress;
8092 program { name: "button_unclick3";
8093 signal: "mouse,clicked,1";
8095 action: SIGNAL_EMIT "elm,action,click" "";
8097 program { name: "disable";
8098 signal: "elm,state,disabled";
8100 action: STATE_SET "disabled" 0.0;
8101 target: "button_image";
8103 after: "disable_button";
8105 program { name: "disable_button";
8107 set_int(button_state, BUTTON_STATE_DISABLED);
8110 program { name: "enable";
8111 signal: "elm,state,enabled";
8113 action: STATE_SET "default" 0.0;
8114 target: "button_image";
8116 after: "enable_button";
8118 program { name: "enable_button";
8120 set_int(button_state, BUTTON_STATE_ENABLED);
8126 ///////////////////////////////////////////////////////////////////////////////////////
8127 group { name: "elm/button/base/tickernoti";
8129 image: "00_button_06_normal.png" COMP;
8130 image: "00_button_06_press.png" COMP;
8131 image: "00_button_06_dim.png" COMP;
8134 public button_state = BUTTON_STATE_ENABLED;
8137 part { name: "button_image";
8139 description { state: "default" 0.0;
8141 normal: "00_button_06_normal.png";
8142 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8146 description { state: "clicked" 0.0;
8147 inherit: "default" 0.0;
8148 image.normal: "00_button_06_press.png";
8150 description { state: "disabled" 0.0;
8151 inherit: "default" 0.0;
8152 image.normal: "00_button_06_dim.png";
8154 description { state: "focused" 0.0;
8155 inherit: "default" 0.0;
8156 image.normal: "00_button_06_press.png";
8159 part { name: "padding_left_top";
8163 description { state: "default" 0.0;
8165 rel2.relative: 0.0 0.0;
8166 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8175 description { state: "default" 0.0;
8176 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8179 description { state: "visible" 0.0;
8180 inherit: "default" 0.0;
8181 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8183 description { state: "icononly" 0.0;
8184 inherit: "default" 0.0;
8185 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8188 part { name: "padding_right_bottom";
8192 description { state: "default" 0.0;
8194 rel1.relative: 1.0 1.0;
8195 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8200 part { name: "icon_rect";
8204 description { state: "default" 0.0;
8210 to: "padding_left_top";
8214 to_x: "padding_left_top";
8215 to_y: "padding_right_bottom";
8219 description { state: "visible" 0.0;
8221 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8222 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8226 to: "padding_left_top";
8230 to_x: "padding_left_top";
8231 to_y: "padding_right_bottom";
8235 description { state: "icononly" 0.0;
8236 inherit: "default" 0.0;
8239 part { name: "padding_after_icon";
8243 description { state: "default" 0.0; //when only icon or no icon is there
8249 rel2.to: "icon_rect";
8254 description { state: "visible" 0.0;
8261 rel2.to: "icon_rect";
8263 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8265 description { state: "icononly" 0.0;
8266 inherit: "default" 0.0;
8269 part { name: "padding_before_text";
8273 description { state: "default" 0.0; //when only icon or no icon is there
8278 to_y: "padding_left_top";
8283 to_y: "padding_right_bottom";
8286 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8290 part { name: "elm.swallow.content";
8294 description { state: "default" 0.0;
8299 to: "padding_left_top";
8303 to_x: "padding_left_top";
8304 to_y: "padding_right_bottom";
8308 description { state: "visible" 0.0;
8310 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8311 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8315 to_x: "padding_before_text";
8316 to_y: "padding_left_top";
8320 to_x: "padding_before_text";
8321 to_y: "padding_right_bottom";
8324 description { state: "icononly" 0.0;
8325 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8326 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8329 part { name: "elm.text";
8334 description { state: "default" 0.0;
8338 to_x: "padding_after_icon";
8339 to_y: "padding_left_top";
8343 to: "padding_right_bottom";
8345 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
8347 font: "SLP:style=Medium";
8348 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
8353 description { state: "visible" 0.0;
8354 inherit: "default" 0.0;
8357 description { state: "clicked" 0.0;
8358 inherit: "default" 0.0;
8360 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8362 description { state: "disabled" 0.0;
8363 inherit: "default" 0.0;
8366 description { state: "disabled_visible" 0.0;
8367 inherit: "default" 0.0;
8368 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
8371 description { state: "focused" 0.0;
8372 inherit: "default" 0.0;
8374 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8377 part { name: "over2";
8380 ignore_flags: ON_HOLD;
8381 description { state: "default" 0.0;
8385 part { name: "over3";
8388 description { state: "default" 0.0;
8392 part { name: "clipper";
8394 description { state: "default" 0.0;
8395 color: 255 255 255 255;
8398 part { name: "disabler";
8400 description { state: "default" 0.0;
8404 description { state: "disabled" 0.0;
8405 inherit: "default" 0.0;
8411 program { name: "button_click";
8412 signal: "mouse,down,1";
8414 action: SIGNAL_EMIT "elm,action,press" "";
8415 after: "button_click_anim";
8417 program { name: "button_click_anim";
8418 action: STATE_SET "clicked" 0.0;
8419 target: "button_image";
8420 after: "text_clicked";
8422 program { name: "text_clicked";
8426 get_state(PART:"elm.text", st, 30, vl);
8427 if (!strcmp(st, "visible"))
8428 set_state(PART:"elm.text", "clicked", 0.0);
8431 program { name: "button_unpress";
8432 action: SIGNAL_EMIT "elm,action,unpress" "";
8434 program { name: "button_mouseout_clicked";
8435 signal: "mouse,up,1";
8440 get_state(PART:"elm.swallow.content", st, 30, vl);
8441 if (strcmp(st, "icononly"))
8443 emit("elm,action,default,text,set", "");
8444 set_state(PART:"elm.text", "visible", 0.0);
8446 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8447 set_state(PART:"button_image", "default", 0.0);
8449 after: button_unpress;
8451 program { name: "button_unclick3";
8452 signal: "mouse,clicked,1";
8454 action: SIGNAL_EMIT "elm,action,click" "";
8456 program { name: "text_show";
8457 signal: "elm,state,text,visible";
8462 get_state(PART:"elm.swallow.content", st, 30, vl);
8463 if (!strcmp(st, "icononly"))
8465 set_state(PART:"elm.swallow.content", "visible", 0.0);
8466 set_state(PART:"icon_rect", "visible", 0.0);
8467 set_state(PART:"padding_after_icon", "visible", 0.0);
8468 set_state(PART:"bg", "visible", 0.0);
8470 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8471 set_state(PART:"elm.text", "visible", 0.0);
8473 set_state(PART:"elm.text", "disabled_visible", 0.0);
8476 program { name: "text_hide";
8477 signal: "elm,state,text,hidden";
8482 get_state(PART:"elm.swallow.content", st, 30, vl);
8483 if (!strcmp(st, "visible"))
8485 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8486 set_state(PART:"icon_rect", "icononly", 0.0);
8487 set_state(PART:"padding_after_icon", "icononly", 0.0);
8488 set_state(PART:"bg", "icononly", 0.0);
8490 set_state(PART:"elm.text", "default", 0.0);
8493 program { name: "icon_show";
8494 signal: "elm,state,icon,visible";
8499 get_state(PART:"elm.text", st, 30, vl);
8500 if (!strcmp(st, "visible"))
8502 set_state(PART:"elm.swallow.content", "visible", 0.0);
8503 set_state(PART:"icon_rect", "visible", 0.0);
8504 set_state(PART:"padding_after_icon", "visible", 0.0);
8505 set_state(PART:"bg", "visible", 0.0);
8509 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8510 set_state(PART:"icon_rect", "icononly", 0.0);
8511 set_state(PART:"padding_after_icon", "icononly", 0.0);
8512 set_state(PART:"bg", "icononly", 0.0);
8516 program { name: "icon_hide";
8517 signal: "elm,state,icon,hidden";
8519 action: STATE_SET "default" 0.0;
8520 target: "elm.swallow.content";
8521 target: "padding_after_icon";
8522 target: "icon_rect";
8525 program { name: "disable";
8526 signal: "elm,state,disabled";
8528 action: STATE_SET "disabled" 0.0;
8529 target: "button_image";
8531 after: "disable_text";
8533 program { name: "disable_text";
8537 get_state(PART:"elm.text", st, 30, vl);
8538 if (!strcmp(st, "visible"))
8539 set_state(PART:"elm.text", "disabled_visible", 0.0);
8541 set_state(PART:"elm.text", "disabled", 0.0);
8542 set_int(button_state, BUTTON_STATE_DISABLED);
8545 program { name: "enable";
8546 signal: "elm,state,enabled";
8548 action: STATE_SET "default" 0.0;
8549 target: "button_image";
8551 after: "enable_text";
8553 program { name: "enable_text";
8557 get_state(PART:"elm.text", st, 30, vl);
8558 if (!strcmp(st, "disabled_visible"))
8559 set_state(PART:"elm.text", "visible", 0.0);
8561 set_state(PART:"elm.text", "default", 0.0);
8562 set_int(button_state, BUTTON_STATE_ENABLED);
8565 program { name: "focused";
8566 //signal: "elm,action,focus";
8568 action: STATE_SET "focused" 0.0;
8569 target: "button_image";
8572 program { name: "unfocused";
8573 //signal: "elm,action,unfocus";
8575 action: STATE_SET "default" 0.0;
8576 target: "button_image";
8577 after: "unfocus_text";
8579 program { name: "unfocus_text";
8580 action: STATE_SET "visible" 0.0;
8586 ///////////////////////////////////////////////////////////////////////////////////////
8587 group { name: "elm/button/base/expandable_number";
8588 alias: "elm/button/base/text_only/expandable_number";
8590 image: "00_button_05_normal.png" COMP;
8591 image: "00_button_05_press.png" COMP;
8592 image: "00_button_05_dim.png" COMP;
8593 image: "00_arrow_expand.png" COMP;
8594 image: "00_arrow_expand_press.png" COMP;
8595 image: "00_arrow_expand_dim.png" COMP;
8598 public button_state = BUTTON_STATE_ENABLED;
8601 part { name: "button_image";
8603 description { state: "default" 0.0;
8604 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8605 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8607 normal: "00_button_05_normal.png";
8608 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
8612 description { state: "clicked" 0.0;
8613 inherit: "default" 0.0;
8614 image.normal: "00_button_05_press.png";
8616 description { state: "disabled" 0.0;
8617 inherit: "default" 0.0;
8618 image.normal: "00_button_05_dim.png";
8620 description { state: "focused" 0.0;
8621 inherit: "default" 0.0;
8622 image.normal: "00_button_05_press.png";
8625 part { name: "padding_left_top";
8629 description { state: "default" 0.0;
8631 rel2.relative: 0.0 0.0;
8632 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8637 part { name: "padding_right_bottom";
8641 description { state: "default" 0.0;
8643 rel1.relative: 1.0 1.0;
8644 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8649 part { name: "icon_rect";
8653 description { state: "default" 0.0;
8655 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8656 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8660 to_x: "padding_right_bottom";
8661 to_y: "padding_left_top";
8665 to: "padding_right_bottom";
8671 part { name: "arrow_expand";
8674 description { state: "default" 0.0;
8676 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8677 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8679 rel1.to: "icon_rect";
8680 rel2.to: "icon_rect";
8681 image.normal:"00_arrow_expand.png";
8683 description { state: "clicked" 0.0;
8684 inherit: "default" 0.0;
8685 image.normal:"00_arrow_expand_press.png";
8687 description { state: "disabled" 0.0;
8688 inherit: "default" 0.0;
8689 image.normal:"00_arrow_expand_dim.png";
8692 part { name: "elm.text";
8696 description { state: "default" 0.0;
8697 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8698 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8702 to: "padding_left_top";
8706 to_x:"padding_left_top";
8707 to_y:"padding_right_bottom";
8710 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
8712 font: "SLP:style=Medium";
8713 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
8719 description { state: "visible" 0.0;
8720 inherit: "default" 0.0;
8722 description { state: "clicked" 0.0;
8723 inherit: "default" 0.0;
8724 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
8726 description { state: "disabled" 0.0;
8727 inherit: "default" 0.0;
8730 description { state: "disabled_visible" 0.0;
8731 inherit: "default" 0.0;
8732 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
8734 description { state: "focused" 0.0;
8735 inherit: "default" 0.0;
8736 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
8739 part { name: "over2";
8742 ignore_flags: ON_HOLD;
8743 description { state: "default" 0.0;
8747 part { name: "over3";
8750 description { state: "default" 0.0;
8754 part { name: "disabler";
8756 description { state: "default" 0.0;
8760 description { state: "disabled" 0.0;
8761 inherit: "default" 0.0;
8767 program { name: "button_click";
8768 signal: "mouse,down,1";
8770 action: SIGNAL_EMIT "elm,action,press" "";
8771 after: "button_click_anim";
8773 program { name: "button_click_anim";
8774 action: STATE_SET "clicked" 0.0;
8775 target: "button_image";
8776 target: "arrow_expand";
8777 after: "text_clicked";
8779 program { name: "text_clicked";
8783 get_state(PART:"elm.text", st, 30, vl);
8784 if (!strcmp(st, "visible"))
8785 set_state(PART:"elm.text", "clicked", 0.0);
8788 program { name: "button_unpress";
8789 action: SIGNAL_EMIT "elm,action,unpress" "";
8791 program { name: "button_mouseout_clicked";
8792 signal: "mouse,up,1";
8795 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8797 set_state(PART:"button_image", "default", 0.0);
8798 set_state(PART:"elm.text", "visible", 0.0);
8799 set_state(PART:"arrow_expand", "default", 0.0);
8802 after: button_unpress;
8804 program { name: "button_unclick3";
8805 signal: "mouse,clicked,1";
8807 action: SIGNAL_EMIT "elm,action,click" "";
8809 program { name: "text_show";
8810 signal: "elm,state,text,visible";
8813 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8814 set_state(PART:"elm.text", "visible", 0.0);
8816 set_state(PART:"elm.text", "disabled_visible", 0.0);
8819 program { name: "text_hide";
8820 signal: "elm,state,text,hidden";
8823 set_state(PART:"elm.text", "default", 0.0);
8826 program { name: "disable";
8827 signal: "elm,state,disabled";
8829 action: STATE_SET "disabled" 0.0;
8830 target: "button_image";
8832 after: "disable_text";
8834 program { name: "disable_text";
8838 get_state(PART:"elm.text", st, 30, vl);
8839 if (!strcmp(st, "visible"))
8840 set_state(PART:"elm.text", "disabled_visible", 0.0);
8842 set_state(PART:"elm.text", "disabled", 0.0);
8843 set_int(button_state, BUTTON_STATE_DISABLED);
8846 program { name: "enable";
8847 signal: "elm,state,enabled";
8849 action: STATE_SET "default" 0.0;
8850 target: "button_image";
8852 after: "enable_text";
8854 program { name: "enable_text";
8858 get_state(PART:"elm.text", st, 30, vl);
8859 if (!strcmp(st, "disabled_visible"))
8860 set_state(PART:"elm.text", "visible", 0.0);
8862 set_state(PART:"elm.text", "default", 0.0);
8863 set_int(button_state, BUTTON_STATE_ENABLED);
8866 program { name: "focused";
8867 //signal: "elm,action,focus";
8869 action: STATE_SET "focused" 0.0;
8870 target: "button_image";
8873 program { name: "unfocused";
8874 //signal: "elm,action,unfocus";
8876 action: STATE_SET "default" 0.0;
8877 target: "button_image";
8878 after: "unfocus_text";
8880 program { name: "unfocus_text";
8881 action: STATE_SET "visible" 0.0;
8887 #undef BUTTON_STATE_ENABLED
8888 #undef BUTTON_STATE_DISABLED