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";
489 image: "00_button_01_normal.png" COMP;
490 image: "00_button_01_normal_press.png" COMP;
491 image: "00_button_01_normal_dim.png" COMP;
494 public button_state = BUTTON_STATE_ENABLED;
497 part { name: "button_image";
499 description { state: "default" 0.0;
501 normal: "00_button_01_normal.png";
502 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
506 description { state: "clicked" 0.0;
507 inherit: "default" 0.0;
508 image.normal: "00_button_01_normal_press.png";
510 description { state: "disabled" 0.0;
511 inherit: "default" 0.0;
512 image.normal: "00_button_01_normal_dim.png";
514 description { state: "focused" 0.0;
515 inherit: "default" 0.0;
516 image.normal: "00_button_01_normal_press.png";
519 part { name: "padding_left_top";
523 description { state: "default" 0.0;
525 rel2.relative: 0.0 0.0;
526 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
535 description { state: "default" 0.0;
536 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
539 description { state: "visible" 0.0;
540 inherit: "default" 0.0;
541 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
543 description { state: "icononly" 0.0;
544 inherit: "default" 0.0;
545 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
548 part { name: "padding_right_bottom";
552 description { state: "default" 0.0;
554 rel1.relative: 1.0 1.0;
555 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
560 part { name: "icon_rect";
564 description { state: "default" 0.0;
570 to: "padding_left_top";
574 to_x: "padding_left_top";
575 to_y: "padding_right_bottom";
579 description { state: "visible" 0.0;
581 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
582 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
586 to: "padding_left_top";
590 to_x: "padding_left_top";
591 to_y: "padding_right_bottom";
595 description { state: "icononly" 0.0;
596 inherit: "default" 0.0;
599 part { name: "padding_after_icon";
603 description { state: "default" 0.0; //when only icon or no icon is there
609 rel2.to: "icon_rect";
614 description { state: "visible" 0.0;
621 rel2.to: "icon_rect";
623 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
625 description { state: "icononly" 0.0;
626 inherit: "default" 0.0;
629 part { name: "padding_before_text";
633 description { state: "default" 0.0; //when only icon or no icon is there
638 to_y: "padding_left_top";
643 to_y: "padding_right_bottom";
646 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
650 part { name: "elm.swallow.content";
654 description { state: "default" 0.0;
659 to: "padding_left_top";
663 to_x: "padding_left_top";
664 to_y: "padding_right_bottom";
668 description { state: "visible" 0.0;
670 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
671 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
675 to_x: "padding_before_text";
676 to_y: "padding_left_top";
680 to_x: "padding_before_text";
681 to_y: "padding_right_bottom";
684 description { state: "icononly" 0.0;
685 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
686 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
689 part { name: "elm.text";
694 description { state: "default" 0.0;
698 to_x: "padding_after_icon";
699 to_y: "padding_left_top";
703 to: "padding_right_bottom";
705 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
707 font: "SLP:style=Medium";
708 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
713 description { state: "visible" 0.0;
714 inherit: "default" 0.0;
717 description { state: "clicked" 0.0;
718 inherit: "default" 0.0;
720 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
722 description { state: "disabled" 0.0;
723 inherit: "default" 0.0;
726 description { state: "disabled_visible" 0.0;
727 inherit: "default" 0.0;
728 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
731 description { state: "focused" 0.0;
732 inherit: "default" 0.0;
734 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
737 part { name: "over2";
740 ignore_flags: ON_HOLD;
741 description { state: "default" 0.0;
745 part { name: "over3";
748 description { state: "default" 0.0;
752 part { name: "clipper";
754 description { state: "default" 0.0;
755 color: 255 255 255 255;
758 part { name: "disabler";
760 description { state: "default" 0.0;
764 description { state: "disabled" 0.0;
765 inherit: "default" 0.0;
771 program { name: "button_click";
772 signal: "mouse,down,1";
774 action: SIGNAL_EMIT "elm,action,press" "";
775 after: "button_click_anim";
777 program { name: "button_click_anim";
778 action: STATE_SET "clicked" 0.0;
779 target: "button_image";
780 after: "text_clicked";
782 program { name: "text_clicked";
786 get_state(PART:"elm.text", st, 30, vl);
787 if (!strcmp(st, "visible"))
788 set_state(PART:"elm.text", "clicked", 0.0);
791 program { name: "button_unpress";
792 action: SIGNAL_EMIT "elm,action,unpress" "";
794 program { name: "button_mouseout_clicked";
795 signal: "mouse,up,1";
800 get_state(PART:"elm.swallow.content", st, 30, vl);
801 if (strcmp(st, "icononly"))
803 emit("elm,action,default,text,set", "");
804 set_state(PART:"elm.text", "visible", 0.0);
806 if (get_int(button_state) != BUTTON_STATE_DISABLED)
807 set_state(PART:"button_image", "default", 0.0);
809 after: button_unpress;
811 program { name: "button_unclick3";
812 signal: "mouse,clicked,1";
814 action: SIGNAL_EMIT "elm,action,click" "";
816 program { name: "text_show";
817 signal: "elm,state,text,visible";
822 get_state(PART:"elm.swallow.content", st, 30, vl);
823 if (!strcmp(st, "icononly"))
825 set_state(PART:"elm.swallow.content", "visible", 0.0);
826 set_state(PART:"icon_rect", "visible", 0.0);
827 set_state(PART:"padding_after_icon", "visible", 0.0);
828 set_state(PART:"bg", "visible", 0.0);
830 if (get_int(button_state) != BUTTON_STATE_DISABLED)
831 set_state(PART:"elm.text", "visible", 0.0);
833 set_state(PART:"elm.text", "disabled_visible", 0.0);
836 program { name: "text_hide";
837 signal: "elm,state,text,hidden";
842 get_state(PART:"elm.swallow.content", st, 30, vl);
843 if (!strcmp(st, "visible"))
845 set_state(PART:"elm.swallow.content", "icononly", 0.0);
846 set_state(PART:"icon_rect", "icononly", 0.0);
847 set_state(PART:"padding_after_icon", "icononly", 0.0);
848 set_state(PART:"bg", "icononly", 0.0);
850 set_state(PART:"elm.text", "default", 0.0);
853 program { name: "icon_show";
854 signal: "elm,state,icon,visible";
859 get_state(PART:"elm.text", st, 30, vl);
860 if (!strcmp(st, "visible"))
862 set_state(PART:"elm.swallow.content", "visible", 0.0);
863 set_state(PART:"icon_rect", "visible", 0.0);
864 set_state(PART:"padding_after_icon", "visible", 0.0);
865 set_state(PART:"bg", "visible", 0.0);
869 set_state(PART:"elm.swallow.content", "icononly", 0.0);
870 set_state(PART:"icon_rect", "icononly", 0.0);
871 set_state(PART:"padding_after_icon", "icononly", 0.0);
872 set_state(PART:"bg", "icononly", 0.0);
876 program { name: "icon_hide";
877 signal: "elm,state,icon,hidden";
879 action: STATE_SET "default" 0.0;
880 target: "elm.swallow.content";
881 target: "padding_after_icon";
885 program { name: "disable";
886 signal: "elm,state,disabled";
888 action: STATE_SET "disabled" 0.0;
889 target: "button_image";
891 after: "disable_text";
893 program { name: "disable_text";
897 get_state(PART:"elm.text", st, 30, vl);
898 if (!strcmp(st, "visible"))
899 set_state(PART:"elm.text", "disabled_visible", 0.0);
901 set_state(PART:"elm.text", "disabled", 0.0);
902 set_int(button_state, BUTTON_STATE_DISABLED);
905 program { name: "enable";
906 signal: "elm,state,enabled";
908 action: STATE_SET "default" 0.0;
909 target: "button_image";
911 after: "enable_text";
913 program { name: "enable_text";
917 get_state(PART:"elm.text", st, 30, vl);
918 if (!strcmp(st, "disabled_visible"))
919 set_state(PART:"elm.text", "visible", 0.0);
921 set_state(PART:"elm.text", "default", 0.0);
922 set_int(button_state, BUTTON_STATE_ENABLED);
925 program { name: "focused";
926 //signal: "elm,action,focus";
928 action: STATE_SET "focused" 0.0;
929 target: "button_image";
932 program { name: "unfocused";
933 //signal: "elm,action,unfocus";
935 action: STATE_SET "default" 0.0;
936 target: "button_image";
937 after: "unfocus_text";
939 program { name: "unfocus_text";
940 action: STATE_SET "visible" 0.0;
946 ///////////////////////////////////////////////////////////////////////////////////////
947 group { name: "elm/button/base/style2";
948 alias: "elm/button/base/text_only/style2";
950 image: "00_button_04_normal.png" COMP;
951 image: "00_button_04_press.png" COMP;
952 image: "00_button_04_dim.png" COMP;
955 public button_state = BUTTON_STATE_ENABLED;
958 part { name: "button_image";
960 description { state: "default" 0.0;
962 normal: "00_button_04_normal.png";
963 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
967 description { state: "clicked" 0.0;
968 inherit: "default" 0.0;
969 image.normal: "00_button_04_press.png";
971 description { state: "disabled" 0.0;
972 inherit: "default" 0.0;
973 image.normal: "00_button_04_dim.png";
975 description { state: "focused" 0.0;
976 inherit: "default" 0.0;
977 image.normal: "00_button_04_press.png";
980 part { name: "padding_left_top";
984 description { state: "default" 0.0;
986 rel2.relative: 0.0 0.0;
987 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
996 description { state: "default" 0.0;
997 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1000 description { state: "visible" 0.0;
1001 inherit: "default" 0.0;
1002 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1004 description { state: "icononly" 0.0;
1005 inherit: "default" 0.0;
1006 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1009 part { name: "padding_right_bottom";
1013 description { state: "default" 0.0;
1015 rel1.relative: 1.0 1.0;
1016 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1021 part { name: "icon_rect";
1025 description { state: "default" 0.0;
1031 to: "padding_left_top";
1035 to_x: "padding_left_top";
1036 to_y: "padding_right_bottom";
1040 description { state: "visible" 0.0;
1042 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1043 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1047 to: "padding_left_top";
1051 to_x: "padding_left_top";
1052 to_y: "padding_right_bottom";
1056 description { state: "icononly" 0.0;
1057 inherit: "default" 0.0;
1060 part { name: "padding_after_icon";
1064 description { state: "default" 0.0; //when only icon or no icon is there
1070 rel2.to: "icon_rect";
1075 description { state: "visible" 0.0;
1082 rel2.to: "icon_rect";
1084 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1086 description { state: "icononly" 0.0;
1087 inherit: "default" 0.0;
1090 part { name: "padding_before_text";
1094 description { state: "default" 0.0; //when only icon or no icon is there
1099 to_y: "padding_left_top";
1104 to_y: "padding_right_bottom";
1107 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1111 part { name: "elm.swallow.content";
1115 description { state: "default" 0.0;
1120 to: "padding_left_top";
1124 to_x: "padding_left_top";
1125 to_y: "padding_right_bottom";
1129 description { state: "visible" 0.0;
1131 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1132 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1136 to_x: "padding_before_text";
1137 to_y: "padding_left_top";
1141 to_x: "padding_before_text";
1142 to_y: "padding_right_bottom";
1145 description { state: "icononly" 0.0;
1146 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1147 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1150 part { name: "elm.text";
1155 description { state: "default" 0.0;
1159 to_x: "padding_after_icon";
1160 to_y: "padding_left_top";
1164 to: "padding_right_bottom";
1166 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1168 font: "SLP:style=Medium";
1169 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1174 description { state: "visible" 0.0;
1175 inherit: "default" 0.0;
1178 description { state: "clicked" 0.0;
1179 inherit: "default" 0.0;
1181 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1183 description { state: "disabled" 0.0;
1184 inherit: "default" 0.0;
1187 description { state: "disabled_visible" 0.0;
1188 inherit: "default" 0.0;
1189 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1192 description { state: "focused" 0.0;
1193 inherit: "default" 0.0;
1195 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1198 part { name: "over2";
1201 ignore_flags: ON_HOLD;
1202 description { state: "default" 0.0;
1206 part { name: "over3";
1209 description { state: "default" 0.0;
1213 part { name: "clipper";
1215 description { state: "default" 0.0;
1216 color: 255 255 255 255;
1219 part { name: "disabler";
1221 description { state: "default" 0.0;
1225 description { state: "disabled" 0.0;
1226 inherit: "default" 0.0;
1232 program { name: "button_click";
1233 signal: "mouse,down,1";
1235 action: SIGNAL_EMIT "elm,action,press" "";
1236 after: "button_click_anim";
1238 program { name: "button_click_anim";
1239 action: STATE_SET "clicked" 0.0;
1240 target: "button_image";
1241 after: "text_clicked";
1243 program { name: "text_clicked";
1247 get_state(PART:"elm.text", st, 30, vl);
1248 if (!strcmp(st, "visible"))
1249 set_state(PART:"elm.text", "clicked", 0.0);
1252 program { name: "button_unpress";
1253 action: SIGNAL_EMIT "elm,action,unpress" "";
1255 program { name: "button_mouseout_clicked";
1256 signal: "mouse,up,1";
1261 get_state(PART:"elm.swallow.content", st, 30, vl);
1262 if (strcmp(st, "icononly"))
1264 emit("elm,action,default,text,set", "");
1265 set_state(PART:"elm.text", "visible", 0.0);
1267 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1268 set_state(PART:"button_image", "default", 0.0);
1270 after: button_unpress;
1272 program { name: "button_unclick3";
1273 signal: "mouse,clicked,1";
1275 action: SIGNAL_EMIT "elm,action,click" "";
1277 program { name: "text_show";
1278 signal: "elm,state,text,visible";
1283 get_state(PART:"elm.swallow.content", st, 30, vl);
1284 if (!strcmp(st, "icononly"))
1286 set_state(PART:"elm.swallow.content", "visible", 0.0);
1287 set_state(PART:"icon_rect", "visible", 0.0);
1288 set_state(PART:"padding_after_icon", "visible", 0.0);
1289 set_state(PART:"bg", "visible", 0.0);
1291 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1292 set_state(PART:"elm.text", "visible", 0.0);
1294 set_state(PART:"elm.text", "disabled_visible", 0.0);
1297 program { name: "text_hide";
1298 signal: "elm,state,text,hidden";
1303 get_state(PART:"elm.swallow.content", st, 30, vl);
1304 if (!strcmp(st, "visible"))
1306 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1307 set_state(PART:"icon_rect", "icononly", 0.0);
1308 set_state(PART:"padding_after_icon", "icononly", 0.0);
1309 set_state(PART:"bg", "icononly", 0.0);
1311 set_state(PART:"elm.text", "default", 0.0);
1314 program { name: "icon_show";
1315 signal: "elm,state,icon,visible";
1320 get_state(PART:"elm.text", st, 30, vl);
1321 if (!strcmp(st, "visible"))
1323 set_state(PART:"elm.swallow.content", "visible", 0.0);
1324 set_state(PART:"icon_rect", "visible", 0.0);
1325 set_state(PART:"padding_after_icon", "visible", 0.0);
1326 set_state(PART:"bg", "visible", 0.0);
1330 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1331 set_state(PART:"icon_rect", "icononly", 0.0);
1332 set_state(PART:"padding_after_icon", "icononly", 0.0);
1333 set_state(PART:"bg", "icononly", 0.0);
1337 program { name: "icon_hide";
1338 signal: "elm,state,icon,hidden";
1340 action: STATE_SET "default" 0.0;
1341 target: "elm.swallow.content";
1342 target: "padding_after_icon";
1343 target: "icon_rect";
1346 program { name: "disable";
1347 signal: "elm,state,disabled";
1349 action: STATE_SET "disabled" 0.0;
1350 target: "button_image";
1352 after: "disable_text";
1354 program { name: "disable_text";
1358 get_state(PART:"elm.text", st, 30, vl);
1359 if (!strcmp(st, "visible"))
1360 set_state(PART:"elm.text", "disabled_visible", 0.0);
1362 set_state(PART:"elm.text", "disabled", 0.0);
1363 set_int(button_state, BUTTON_STATE_DISABLED);
1366 program { name: "enable";
1367 signal: "elm,state,enabled";
1369 action: STATE_SET "default" 0.0;
1370 target: "button_image";
1372 after: "enable_text";
1374 program { name: "enable_text";
1378 get_state(PART:"elm.text", st, 30, vl);
1379 if (!strcmp(st, "disabled_visible"))
1380 set_state(PART:"elm.text", "visible", 0.0);
1382 set_state(PART:"elm.text", "default", 0.0);
1383 set_int(button_state, BUTTON_STATE_ENABLED);
1386 program { name: "focused";
1387 //signal: "elm,action,focus";
1389 action: STATE_SET "focused" 0.0;
1390 target: "button_image";
1393 program { name: "unfocused";
1394 //signal: "elm,action,unfocus";
1396 action: STATE_SET "default" 0.0;
1397 target: "button_image";
1398 after: "unfocus_text";
1400 program { name: "unfocus_text";
1401 action: STATE_SET "visible" 0.0;
1407 ///////////////////////////////////////////////////////////////////////////////////////
1408 group { name: "elm/button/base/sweep";
1409 alias: "elm/button/base/text_only/sweep";
1411 image: "00_button_sweep.png" COMP;
1412 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1413 image: "00_button_sweep_dim.png" COMP;
1416 public button_state = BUTTON_STATE_ENABLED;
1419 part { name: "button_image";
1421 description { state: "default" 0.0;
1422 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1424 normal: "00_button_sweep.png";
1425 border: BUTTON_SWEEP_BG_BORDER_INC;
1429 description { state: "clicked" 0.0;
1430 inherit: "default" 0.0;
1431 image.normal: "00_button_sweep_press.png";
1433 description { state: "disabled" 0.0;
1434 inherit: "default" 0.0;
1435 image.normal: "00_button_sweep_dim.png";
1437 description { state: "focused" 0.0;
1438 inherit: "default" 0.0;
1439 image.normal: "00_button_sweep_press.png";
1442 part { name: "padding_left_top";
1446 description { state: "default" 0.0;
1448 rel2.relative: 0.0 0.0;
1449 min: BUTTON_SWEEP_PADDING_MIN_INC;
1454 part { name: "padding_right_bottom";
1458 description { state: "default" 0.0;
1460 rel1.relative: 1.0 1.0;
1461 min: BUTTON_SWEEP_PADDING_MIN_INC;
1466 part { name: "icon_rect";
1470 description { state: "default" 0.0;
1471 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1475 to_x: "elm.swallow.content";
1476 to_y: "padding_left_top";
1480 to_x: "elm.swallow.content";
1481 to_y: "padding_right_bottom";
1487 part { name: "padding_icon_text";
1491 description { state: "default" 0.0; //when only icon or no icon is there
1497 rel2.to: "icon_rect";
1502 description { state: "icononly" 0.0;
1503 inherit: "default" 0.0;
1505 description { state: "visible" 0.0; //when icon is visible
1511 rel2.to: "icon_rect";
1513 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1517 part { name: "elm.swallow.content";
1521 description { state: "default" 0.0;
1526 to: "padding_left_top";
1530 to_x: "padding_left_top";
1531 to_y: "padding_right_bottom";
1535 description { state: "visible" 0.0;
1540 to: "padding_left_top";
1544 to_x: "padding_left_top";
1545 to_y: "padding_right_bottom";
1548 aspect_preference: VERTICAL;
1550 description { state: "icononly" 0.0;
1551 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1554 to: "padding_left_top";
1558 to_x: "padding_left_top";
1559 to_y: "padding_right_bottom";
1563 part { name: "elm.text";
1568 description { state: "default" 0.0;
1572 to_x: "padding_icon_text";
1573 to_y: "padding_left_top";
1577 to: "padding_right_bottom";
1579 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1581 font: "SLP:style=Medium";
1582 size: BUTTON_SWEEP_FONT_SIZE_INC;
1586 description { state: "visible" 0.0;
1587 inherit: "default" 0.0;
1589 min: BUTTON_SWEEP_TEXT_MIN_INC;
1591 description { state: "clicked" 0.0;
1592 inherit: "default" 0.0;
1595 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1597 description { state: "disabled" 0.0;
1598 inherit: "default" 0.0;
1601 description { state: "disabled_visible" 0.0;
1602 inherit: "default" 0.0;
1603 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1605 min: BUTTON_SWEEP_TEXT_MIN_INC;
1607 description { state: "focused" 0.0;
1608 inherit: "default" 0.0;
1611 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1614 part { name: "over2";
1617 ignore_flags: ON_HOLD;
1618 description { state: "default" 0.0;
1622 part { name: "over3";
1625 description { state: "default" 0.0;
1629 part { name: "clipper";
1631 description { state: "default" 0.0;
1632 color: 255 255 255 255;
1635 part { name: "disabler";
1637 description { state: "default" 0.0;
1641 description { state: "disabled" 0.0;
1642 inherit: "default" 0.0;
1648 program { name: "button_click";
1649 signal: "mouse,down,1";
1651 action: SIGNAL_EMIT "elm,action,press" "";
1652 after: "button_click_anim";
1654 program { name: "button_click_anim";
1655 action: STATE_SET "clicked" 0.0;
1656 target: "button_image";
1657 after: "text_clicked";
1659 program { name: "text_clicked";
1663 get_state(PART:"elm.text", st, 30, vl);
1664 if (!strcmp(st, "visible"))
1665 set_state(PART:"elm.text", "clicked", 0.0);
1668 program { name: "button_unpress";
1669 action: SIGNAL_EMIT "elm,action,unpress" "";
1671 program { name: "button_mouseout_clicked";
1672 signal: "mouse,up,1";
1677 get_state(PART:"elm.swallow.content", st, 30, vl);
1678 if (strcmp(st, "icononly"))
1680 emit("elm,action,default,text,set", "");
1681 set_state(PART:"elm.text", "visible", 0.0);
1683 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1684 set_state(PART:"button_image", "default", 0.0);
1686 after: button_unpress;
1688 program { name: "button_unclick3";
1689 signal: "mouse,clicked,1";
1691 action: SIGNAL_EMIT "elm,action,click" "";
1693 program { name: "text_show";
1694 signal: "elm,state,text,visible";
1699 get_state(PART:"elm.swallow.content", st, 30, vl);
1700 if (!strcmp(st, "icononly"))
1702 set_state(PART:"elm.swallow.content", "visible", 0.0);
1703 set_state(PART:"padding_icon_text", "visible", 0.0);
1705 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1706 set_state(PART:"elm.text", "visible", 0.0);
1708 set_state(PART:"elm.text", "disabled_visible", 0.0);
1711 program { name: "text_hide";
1712 signal: "elm,state,text,hidden";
1717 get_state(PART:"elm.swallow.content", st, 30, vl);
1718 if (!strcmp(st, "visible"))
1720 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1721 set_state(PART:"padding_icon_text", "icononly", 0.0);
1723 set_state(PART:"elm.text", "default", 0.0);
1726 program { name: "icon_show";
1727 signal: "elm,state,icon,visible";
1732 get_state(PART:"elm.text", st, 30, vl);
1733 if (!strcmp(st, "visible"))
1735 set_state(PART:"elm.swallow.content", "visible", 0.0);
1736 set_state(PART:"padding_icon_text", "visible", 0.0);
1740 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1741 set_state(PART:"padding_icon_text", "icononly", 0.0);
1745 program { name: "icon_hide";
1746 signal: "elm,state,icon,hidden";
1748 action: STATE_SET "default" 0.0;
1749 target: "elm.swallow.content";
1750 target: "padding_icon_text";
1752 program { name: "disable";
1753 signal: "elm,state,disabled";
1755 action: STATE_SET "disabled" 0.0;
1756 target: "button_image";
1758 after: "disable_text";
1760 program { name: "disable_text";
1764 get_state(PART:"elm.text", st, 30, vl);
1765 if (!strcmp(st, "visible"))
1766 set_state(PART:"elm.text", "disabled_visible", 0.0);
1768 set_state(PART:"elm.text", "disabled", 0.0);
1769 set_int(button_state, BUTTON_STATE_DISABLED);
1772 program { name: "enable";
1773 signal: "elm,state,enabled";
1775 action: STATE_SET "default" 0.0;
1776 target: "button_image";
1778 after: "enable_text";
1780 program { name: "enable_text";
1784 get_state(PART:"elm.text", st, 30, vl);
1785 if (!strcmp(st, "disabled_visible"))
1786 set_state(PART:"elm.text", "visible", 0.0);
1788 set_state(PART:"elm.text", "default", 0.0);
1789 set_int(button_state, BUTTON_STATE_ENABLED);
1792 program { name: "focused";
1793 //signal: "elm,action,focus";
1795 action: STATE_SET "focused" 0.0;
1796 target: "button_image";
1799 program { name: "unfocused";
1800 //signal: "elm,action,unfocus";
1802 action: STATE_SET "default" 0.0;
1803 target: "button_image";
1804 after: "unfocus_text";
1806 program { name: "unfocus_text";
1807 action: STATE_SET "visible" 0.0;
1812 ///////////////////////////////////////////////////////////////////////////////////////
1813 group { name: "elm/button/base/searchbar/default";
1815 image: "00_search_input_field_bg.png" COMP;
1816 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1817 image: "00_button_sweep_dim.png" COMP;
1820 public button_state = BUTTON_STATE_ENABLED;
1823 part { name: "button_image";
1825 description { state: "default" 0.0;
1826 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
1828 normal: "00_search_input_field_bg.png";
1829 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
1833 description { state: "clicked" 0.0;
1834 inherit: "default" 0.0;
1836 normal: "00_button_sweep_press.png";
1837 border: BUTTON_SWEEP_BG_BORDER_INC;
1841 description { state: "disabled" 0.0;
1842 inherit: "default" 0.0;
1844 normal: "00_button_sweep_dim.png";
1845 border: BUTTON_SWEEP_BG_BORDER_INC;
1849 description { state: "focused" 0.0;
1850 inherit: "default" 0.0;
1852 normal: "00_button_sweep_press.png";
1853 border: BUTTON_SWEEP_BG_BORDER_INC;
1858 part { name: "padding_left_top";
1862 description { state: "default" 0.0;
1864 rel2.relative: 0.0 0.0;
1865 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1870 part { name: "padding_right_bottom";
1874 description { state: "default" 0.0;
1876 rel1.relative: 1.0 1.0;
1877 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1882 part { name: "icon_rect";
1886 description { state: "default" 0.0;
1887 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
1891 to_x: "elm.swallow.content";
1892 to_y: "padding_left_top";
1896 to_x: "elm.swallow.content";
1897 to_y: "padding_right_bottom";
1903 part { name: "padding_icon_text";
1907 description { state: "default" 0.0; //when only icon or no icon is there
1913 rel2.to: "icon_rect";
1918 description { state: "icononly" 0.0;
1919 inherit: "default" 0.0;
1921 description { state: "visible" 0.0; //when icon is visible
1927 rel2.to: "icon_rect";
1929 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1933 part { name: "elm.swallow.content";
1937 description { state: "default" 0.0;
1942 to: "padding_left_top";
1946 to_x: "padding_left_top";
1947 to_y: "padding_right_bottom";
1951 description { state: "visible" 0.0;
1956 to: "padding_left_top";
1960 to_x: "padding_left_top";
1961 to_y: "padding_right_bottom";
1964 aspect_preference: VERTICAL;
1966 description { state: "icononly" 0.0;
1967 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
1970 to: "padding_left_top";
1974 to_x: "padding_left_top";
1975 to_y: "padding_right_bottom";
1979 part { name: "elm.text";
1984 description { state: "default" 0.0;
1988 to_x: "padding_icon_text";
1989 to_y: "padding_left_top";
1993 to: "padding_right_bottom";
1995 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1997 font: "SLP:style=Medium";
1998 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
2002 description { state: "visible" 0.0;
2003 inherit: "default" 0.0;
2005 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
2007 description { state: "clicked" 0.0;
2008 inherit: "default" 0.0;
2011 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2013 description { state: "disabled" 0.0;
2014 inherit: "default" 0.0;
2017 description { state: "disabled_visible" 0.0;
2018 inherit: "default" 0.0;
2019 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2021 min: BUTTON_SWEEP_TEXT_MIN_INC;
2023 description { state: "focused" 0.0;
2024 inherit: "default" 0.0;
2027 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2030 part { name: "over2";
2033 ignore_flags: ON_HOLD;
2034 description { state: "default" 0.0;
2038 part { name: "over3";
2041 description { state: "default" 0.0;
2045 part { name: "clipper";
2047 description { state: "default" 0.0;
2048 color: 255 255 255 255;
2051 part { name: "disabler";
2053 description { state: "default" 0.0;
2057 description { state: "disabled" 0.0;
2058 inherit: "default" 0.0;
2064 program { name: "button_click";
2065 signal: "mouse,down,1";
2067 action: SIGNAL_EMIT "elm,action,press" "";
2068 after: "button_click_anim";
2070 program { name: "button_click_anim";
2071 action: STATE_SET "clicked" 0.0;
2072 target: "button_image";
2073 after: "text_clicked";
2075 program { name: "text_clicked";
2079 get_state(PART:"elm.text", st, 30, vl);
2080 if (!strcmp(st, "visible"))
2081 set_state(PART:"elm.text", "clicked", 0.0);
2084 program { name: "button_unpress";
2085 action: SIGNAL_EMIT "elm,action,unpress" "";
2087 program { name: "button_mouseout_clicked";
2088 signal: "mouse,up,1";
2093 get_state(PART:"elm.swallow.content", st, 30, vl);
2094 if (strcmp(st, "icononly"))
2096 emit("elm,action,default,text,set", "");
2097 set_state(PART:"elm.text", "visible", 0.0);
2099 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2100 set_state(PART:"button_image", "default", 0.0);
2102 after: button_unpress;
2104 program { name: "button_unclick3";
2105 signal: "mouse,clicked,1";
2107 action: SIGNAL_EMIT "elm,action,click" "";
2109 program { name: "text_show";
2110 signal: "elm,state,text,visible";
2115 get_state(PART:"elm.swallow.content", st, 30, vl);
2116 if (!strcmp(st, "icononly"))
2118 set_state(PART:"elm.swallow.content", "visible", 0.0);
2119 set_state(PART:"padding_icon_text", "visible", 0.0);
2121 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2122 set_state(PART:"elm.text", "visible", 0.0);
2124 set_state(PART:"elm.text", "disabled_visible", 0.0);
2127 program { name: "text_hide";
2128 signal: "elm,state,text,hidden";
2133 get_state(PART:"elm.swallow.content", st, 30, vl);
2134 if (!strcmp(st, "visible"))
2136 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2137 set_state(PART:"padding_icon_text", "icononly", 0.0);
2139 set_state(PART:"elm.text", "default", 0.0);
2142 program { name: "icon_show";
2143 signal: "elm,state,icon,visible";
2148 get_state(PART:"elm.text", st, 30, vl);
2149 if (!strcmp(st, "visible"))
2151 set_state(PART:"elm.swallow.content", "visible", 0.0);
2152 set_state(PART:"padding_icon_text", "visible", 0.0);
2156 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2157 set_state(PART:"padding_icon_text", "icononly", 0.0);
2161 program { name: "icon_hide";
2162 signal: "elm,state,icon,hidden";
2164 action: STATE_SET "default" 0.0;
2165 target: "elm.swallow.content";
2166 target: "padding_icon_text";
2168 program { name: "disable";
2169 signal: "elm,state,disabled";
2171 action: STATE_SET "disabled" 0.0;
2172 target: "button_image";
2174 after: "disable_text";
2176 program { name: "disable_text";
2180 get_state(PART:"elm.text", st, 30, vl);
2181 if (!strcmp(st, "visible"))
2182 set_state(PART:"elm.text", "disabled_visible", 0.0);
2184 set_state(PART:"elm.text", "disabled", 0.0);
2185 set_int(button_state, BUTTON_STATE_DISABLED);
2188 program { name: "enable";
2189 signal: "elm,state,enabled";
2191 action: STATE_SET "default" 0.0;
2192 target: "button_image";
2194 after: "enable_text";
2196 program { name: "enable_text";
2200 get_state(PART:"elm.text", st, 30, vl);
2201 if (!strcmp(st, "disabled_visible"))
2202 set_state(PART:"elm.text", "visible", 0.0);
2204 set_state(PART:"elm.text", "default", 0.0);
2205 set_int(button_state, BUTTON_STATE_ENABLED);
2208 program { name: "focused";
2209 //signal: "elm,action,focus";
2211 action: STATE_SET "focused" 0.0;
2212 target: "button_image";
2215 program { name: "unfocused";
2216 //signal: "elm,action,unfocus";
2218 action: STATE_SET "default" 0.0;
2219 target: "button_image";
2220 after: "unfocus_text";
2222 program { name: "unfocus_text";
2223 action: STATE_SET "visible" 0.0;
2229 ///////////////////////////////////////////////////////////////////////////////////////
2230 group { name: "elm/button/base/sweep/delete";
2232 image: "00_button_sweep.png" COMP;
2233 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
2234 image: "00_button_sweep_dim.png" COMP;
2235 image: "00_button_sweep_delete.png" COMP;
2238 public button_state = BUTTON_STATE_ENABLED;
2241 part { name: "button_image";
2243 description { state: "default" 0.0;
2244 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2246 normal: "00_button_sweep_delete.png";
2247 border: BUTTON_SWEEP_BG_BORDER_INC;
2251 description { state: "clicked" 0.0;
2252 inherit: "default" 0.0;
2253 image.normal: "00_button_sweep_press.png";
2255 description { state: "disabled" 0.0;
2256 inherit: "default" 0.0;
2257 image.normal: "00_button_sweep_dim.png";
2259 description { state: "focused" 0.0;
2260 inherit: "default" 0.0;
2261 image.normal: "00_button_sweep_press.png";
2264 part { name: "padding_left_top";
2268 description { state: "default" 0.0;
2270 rel2.relative: 0.0 0.0;
2271 min: BUTTON_SWEEP_PADDING_MIN_INC;
2276 part { name: "padding_right_bottom";
2280 description { state: "default" 0.0;
2282 rel1.relative: 1.0 1.0;
2283 min: BUTTON_SWEEP_PADDING_MIN_INC;
2288 part { name: "icon_rect";
2292 description { state: "default" 0.0;
2293 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2297 to_x: "elm.swallow.content";
2298 to_y: "padding_left_top";
2302 to_x: "elm.swallow.content";
2303 to_y: "padding_right_bottom";
2309 part { name: "padding_icon_text";
2313 description { state: "default" 0.0; //when only icon or no icon is there
2319 rel2.to: "icon_rect";
2324 description { state: "icononly" 0.0;
2325 inherit: "default" 0.0;
2327 description { state: "visible" 0.0; //when icon is visible
2333 rel2.to: "icon_rect";
2335 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2339 part { name: "elm.swallow.content";
2343 description { state: "default" 0.0;
2348 to: "padding_left_top";
2352 to_x: "padding_left_top";
2353 to_y: "padding_right_bottom";
2357 description { state: "visible" 0.0;
2362 to: "padding_left_top";
2366 to_x: "padding_left_top";
2367 to_y: "padding_right_bottom";
2370 aspect_preference: VERTICAL;
2372 description { state: "icononly" 0.0;
2373 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2376 to: "padding_left_top";
2380 to_x: "padding_left_top";
2381 to_y: "padding_right_bottom";
2385 part { name: "elm.text";
2390 description { state: "default" 0.0;
2393 to_x: "padding_icon_text";
2394 to_y: "padding_left_top";
2398 to: "padding_right_bottom";
2400 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2402 font: "SLP:style=Medium";
2403 size: BUTTON_SWEEP_FONT_SIZE_INC;
2409 description { state: "visible" 0.0;
2410 inherit: "default" 0.0;
2412 description { state: "clicked" 0.0;
2413 inherit: "default" 0.0;
2414 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2416 description { state: "disabled" 0.0;
2417 inherit: "default" 0.0;
2420 description { state: "disabled_visible" 0.0;
2421 inherit: "default" 0.0;
2422 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2424 description { state: "focused" 0.0;
2425 inherit: "default" 0.0;
2428 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2431 part { name: "over2";
2434 ignore_flags: ON_HOLD;
2435 description { state: "default" 0.0;
2439 part { name: "over3";
2442 description { state: "default" 0.0;
2446 part { name: "clipper";
2448 description { state: "default" 0.0;
2449 color: 255 255 255 255;
2452 part { name: "disabler";
2454 description { state: "default" 0.0;
2458 description { state: "disabled" 0.0;
2459 inherit: "default" 0.0;
2465 program { name: "button_click";
2466 signal: "mouse,down,1";
2468 action: SIGNAL_EMIT "elm,action,press" "";
2469 after: "button_click_anim";
2471 program { name: "button_click_anim";
2472 action: STATE_SET "clicked" 0.0;
2473 target: "button_image";
2474 after: "text_clicked";
2476 program { name: "text_clicked";
2480 get_state(PART:"elm.text", st, 30, vl);
2481 if (!strcmp(st, "visible"))
2482 set_state(PART:"elm.text", "clicked", 0.0);
2485 program { name: "button_unpress";
2486 action: SIGNAL_EMIT "elm,action,unpress" "";
2488 program { name: "button_mouseout_clicked";
2489 signal: "mouse,up,1";
2494 get_state(PART:"elm.swallow.content", st, 30, vl);
2495 if (strcmp(st, "icononly"))
2497 emit("elm,action,default,text,set", "");
2498 set_state(PART:"elm.text", "visible", 0.0);
2500 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2501 set_state(PART:"button_image", "default", 0.0);
2503 after: button_unpress;
2505 program { name: "button_unclick3";
2506 signal: "mouse,clicked,1";
2508 action: SIGNAL_EMIT "elm,action,click" "";
2510 program { name: "text_show";
2511 signal: "elm,state,text,visible";
2516 get_state(PART:"elm.swallow.content", st, 30, vl);
2517 if (!strcmp(st, "icononly"))
2519 set_state(PART:"elm.swallow.content", "visible", 0.0);
2520 set_state(PART:"padding_icon_text", "visible", 0.0);
2522 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2523 set_state(PART:"elm.text", "visible", 0.0);
2525 set_state(PART:"elm.text", "disabled_visible", 0.0);
2528 program { name: "text_hide";
2529 signal: "elm,state,text,hidden";
2534 get_state(PART:"elm.swallow.content", st, 30, vl);
2535 if (!strcmp(st, "visible"))
2537 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2538 set_state(PART:"padding_icon_text", "icononly", 0.0);
2540 set_state(PART:"elm.text", "default", 0.0);
2543 program { name: "icon_show";
2544 signal: "elm,state,icon,visible";
2549 get_state(PART:"elm.text", st, 30, vl);
2550 if (!strcmp(st, "visible"))
2552 set_state(PART:"elm.swallow.content", "visible", 0.0);
2553 set_state(PART:"padding_icon_text", "visible", 0.0);
2557 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2558 set_state(PART:"padding_icon_text", "icononly", 0.0);
2562 program { name: "icon_hide";
2563 signal: "elm,state,icon,hidden";
2565 action: STATE_SET "default" 0.0;
2566 target: "elm.swallow.content";
2567 target: "padding_icon_text";
2569 program { name: "disable";
2570 signal: "elm,state,disabled";
2572 action: STATE_SET "disabled" 0.0;
2573 target: "button_image";
2575 after: "disable_text";
2577 program { name: "disable_text";
2581 get_state(PART:"elm.text", st, 30, vl);
2582 if (!strcmp(st, "visible"))
2583 set_state(PART:"elm.text", "disabled_visible", 0.0);
2585 set_state(PART:"elm.text", "disabled", 0.0);
2586 set_int(button_state, BUTTON_STATE_DISABLED);
2589 program { name: "enable";
2590 signal: "elm,state,enabled";
2592 action: STATE_SET "default" 0.0;
2593 target: "button_image";
2595 after: "enable_text";
2597 program { name: "enable_text";
2601 get_state(PART:"elm.text", st, 30, vl);
2602 if (!strcmp(st, "disabled_visible"))
2603 set_state(PART:"elm.text", "visible", 0.0);
2605 set_state(PART:"elm.text", "default", 0.0);
2606 set_int(button_state, BUTTON_STATE_ENABLED);
2609 program { name: "focused";
2610 //signal: "elm,action,focus";
2612 action: STATE_SET "focused" 0.0;
2613 target: "button_image";
2616 program { name: "unfocused";
2617 //signal: "elm,action,unfocus";
2619 action: STATE_SET "default" 0.0;
2620 target: "button_image";
2621 after: "unfocus_text";
2623 program { name: "unfocus_text";
2624 action: STATE_SET "visible" 0.0;
2630 ///////////////////////////////////////////////////////////////////////////////////////
2631 group { name: "elm/button/base/popup_button/default";
2632 alias: "elm/button/base/popup_button/menustyle";
2633 alias: "elm/button/base/popup_button/liststyle";
2634 alias: "elm/button/base/popup_button/volumebarstyle";
2635 alias: "elm/button/base/popup_button/customstyle";
2636 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2638 image: "00_button_popup_normal.png" COMP;
2639 image: "00_button_popup_press.png" COMP;
2640 image: "00_button_popup_focus.png" COMP;
2641 image: "00_button_popup_dim.png" COMP;
2644 public button_state = BUTTON_STATE_ENABLED;
2647 part { name: "button_image";
2649 description { state: "default" 0.0;
2650 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2652 normal: "00_button_popup_normal.png";
2653 border: BUTTON_POPUP_BG_BORDER_INC;
2657 description { state: "clicked" 0.0;
2658 inherit: "default" 0.0;
2659 image.normal: "00_button_popup_press.png";
2661 description { state: "disabled" 0.0;
2662 inherit: "default" 0.0;
2663 image.normal: "00_button_popup_dim.png";
2665 description { state: "focused" 0.0;
2666 inherit: "default" 0.0;
2667 image.normal: "00_button_popup_focus.png";
2670 part { name: "padding_left_top";
2674 description { state: "default" 0.0;
2676 rel2.relative: 0.0 0.0;
2677 min: BUTTON_POPUP_PADDING_MIN_INC;
2682 part { name: "padding_right_bottom";
2685 description { state: "default" 0.0;
2687 rel1.relative: 1.0 1.0;
2688 min: BUTTON_POPUP_PADDING_MIN_INC;
2693 part { name: "padding_icon_text";
2696 description { state: "default" 0.0; //when only icon or no icon is there
2700 to: "elm.swallow.content";
2702 rel2.to: "elm.swallow.content";
2707 description { state: "icononly" 0.0;
2708 inherit: "default" 0.0;
2710 description { state: "visible" 0.0; //when icon is visible
2711 inherit: "default" 0.0;
2712 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2715 part { name: "elm.swallow.content";
2719 description { state: "default" 0.0;
2724 to: "padding_left_top";
2728 to_x: "padding_left_top";
2729 to_y: "padding_right_bottom";
2733 description { state: "visible" 0.0;
2734 inherit: "default" 0.0;
2738 aspect_preference: VERTICAL;
2740 description { state: "icononly" 0.0;
2741 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2744 to: "padding_left_top";
2748 to_x: "padding_left_top";
2749 to_y: "padding_right_bottom";
2753 part { name: "elm.text";
2758 description { state: "default" 0.0;
2762 to_x: "padding_icon_text";
2763 to_y: "padding_left_top";
2767 to: "padding_right_bottom";
2769 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2771 font: "SLP:style=Medium";
2772 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2776 description { state: "visible" 0.0;
2777 inherit: "default" 0.0;
2779 min: BUTTON_POPUP_TEXT_MIN_INC;
2781 description { state: "clicked" 0.0;
2782 inherit: "default" 0.0;
2785 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2787 description { state: "disabled" 0.0;
2788 inherit: "default" 0.0;
2791 description { state: "disabled_visible" 0.0;
2792 inherit: "default" 0.0;
2793 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2795 min: BUTTON_POPUP_TEXT_MIN_INC;
2797 description { state: "focused" 0.0;
2798 inherit: "default" 0.0;
2801 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2804 part { name: "over2";
2807 ignore_flags: ON_HOLD;
2808 description { state: "default" 0.0;
2812 part { name: "over3";
2815 description { state: "default" 0.0;
2819 part { name: "clipper";
2821 description { state: "default" 0.0;
2822 color: 255 255 255 255;
2825 part { name: "disabler";
2827 description { state: "default" 0.0;
2831 description { state: "disabled" 0.0;
2832 inherit: "default" 0.0;
2838 program { name: "button_click";
2839 signal: "mouse,down,1";
2841 action: SIGNAL_EMIT "elm,action,press" "";
2842 after: "button_click_anim";
2844 program { name: "button_click_anim";
2845 action: STATE_SET "clicked" 0.0;
2846 target: "button_image";
2847 after: "text_clicked";
2849 program { name: "text_clicked";
2853 get_state(PART:"elm.text", st, 30, vl);
2854 if (!strcmp(st, "visible"))
2855 set_state(PART:"elm.text", "clicked", 0.0);
2858 program { name: "button_unpress";
2859 action: SIGNAL_EMIT "elm,action,unpress" "";
2861 program { name: "button_mouseout_clicked";
2862 signal: "mouse,up,1";
2867 get_state(PART:"elm.swallow.content", st, 30, vl);
2868 if (strcmp(st, "icononly"))
2870 emit("elm,action,default,text,set", "");
2871 set_state(PART:"elm.text", "visible", 0.0);
2873 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2874 set_state(PART:"button_image", "default", 0.0);
2876 after: button_unpress;
2878 program { name: "button_unclick3";
2879 signal: "mouse,clicked,1";
2881 action: SIGNAL_EMIT "elm,action,click" "";
2883 program { name: "text_show";
2884 signal: "elm,state,text,visible";
2889 get_state(PART:"elm.swallow.content", st, 30, vl);
2890 if (!strcmp(st, "icononly"))
2892 set_state(PART:"elm.swallow.content", "visible", 0.0);
2893 set_state(PART:"padding_icon_text", "visible", 0.0);
2895 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2896 set_state(PART:"elm.text", "visible", 0.0);
2898 set_state(PART:"elm.text", "disabled_visible", 0.0);
2901 program { name: "text_hide";
2902 signal: "elm,state,text,hidden";
2907 get_state(PART:"elm.swallow.content", st, 30, vl);
2908 if (!strcmp(st, "visible"))
2910 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2911 set_state(PART:"padding_icon_text", "icononly", 0.0);
2913 set_state(PART:"elm.text", "default", 0.0);
2916 program { name: "icon_show";
2917 signal: "elm,state,icon,visible";
2922 get_state(PART:"elm.text", st, 30, vl);
2923 if (!strcmp(st, "visible"))
2925 set_state(PART:"elm.swallow.content", "visible", 0.0);
2926 set_state(PART:"padding_icon_text", "visible", 0.0);
2930 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2931 set_state(PART:"padding_icon_text", "icononly", 0.0);
2935 program { name: "icon_hide";
2936 signal: "elm,state,icon,hidden";
2938 action: STATE_SET "default" 0.0;
2939 target: "elm.swallow.content";
2940 target: "padding_icon_text";
2942 program { name: "disable";
2943 signal: "elm,state,disabled";
2945 action: STATE_SET "disabled" 0.0;
2946 target: "button_image";
2948 after: "disable_text";
2950 program { name: "disable_text";
2954 get_state(PART:"elm.text", st, 30, vl);
2955 if (!strcmp(st, "visible"))
2956 set_state(PART:"elm.text", "disabled_visible", 0.0);
2958 set_state(PART:"elm.text", "disabled", 0.0);
2959 set_int(button_state, BUTTON_STATE_DISABLED);
2962 program { name: "enable";
2963 signal: "elm,state,enabled";
2965 action: STATE_SET "default" 0.0;
2966 target: "button_image";
2968 after: "enable_text";
2970 program { name: "enable_text";
2974 get_state(PART:"elm.text", st, 30, vl);
2975 if (!strcmp(st, "disabled_visible"))
2976 set_state(PART:"elm.text", "visible", 0.0);
2978 set_state(PART:"elm.text", "default", 0.0);
2979 set_int(button_state, BUTTON_STATE_ENABLED);
2982 program { name: "focused";
2983 action: STATE_SET "focused" 0.0;
2984 target: "button_image";
2987 program { name: "unfocused";
2988 action: STATE_SET "default" 0.0;
2989 target: "button_image";
2990 after: "unfocus_text";
2992 program { name: "unfocus_text";
2993 action: STATE_SET "visible" 0.0;
2999 ///////////////////////////////////////////////////////////////////////////////////////
3000 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3001 group { name: "elm/button/base/"style_name; \
3003 image: "00_btn_circle_bg_normal.png" COMP; \
3004 image: "00_btn_circle_bg_press.png" COMP; \
3005 image: image_normal COMP; \
3006 image: image_press COMP; \
3009 part { name: "button_image"; \
3011 description { state: "default" 0.0; \
3012 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3013 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3014 image.normal: "00_btn_circle_bg_normal.png"; \
3015 color: 255 255 255 255; \
3018 state: "clicked" 0.0; \
3019 inherit: "default" 0.0; \
3020 image.normal: "00_btn_circle_bg_press.png"; \
3023 state: "disabled" 0.0; \
3024 inherit: "default" 0.0; \
3025 color: 255 255 255 128; \
3028 part { name: "button_center_part"; \
3030 description { state: "default" 0.0; \
3031 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
3032 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
3033 image.normal: image_normal; \
3034 color: 255 255 255 255; \
3037 state: "clicked" 0.0; \
3038 inherit: "default" 0.0; \
3039 image.normal: image_press; \
3042 state: "disabled" 0.0; \
3043 inherit: "default" 0.0; \
3044 color: 255 255 255 128; \
3047 part { name: "over1"; \
3049 ignore_flags: ON_HOLD; \
3050 description { state: "default" 0.0; \
3052 min: min_width min_height; \
3055 part { name: "over2"; \
3057 description { state: "default" 0.0; \
3061 part { name: "disabler"; \
3063 description { state: "default" 0.0; \
3067 description { state: "disabled" 0.0; \
3068 inherit: "default" 0.0; \
3074 program { name: "button_click"; \
3075 signal: "mouse,down,1"; \
3077 action: SIGNAL_EMIT "elm,action,press" ""; \
3078 after: "button_click_anim"; \
3080 program { name: "button_click_anim"; \
3081 action: STATE_SET "clicked" 0.0; \
3082 target: "button_image"; \
3083 target: "button_center_part"; \
3085 program { name: "button_unclick"; \
3086 signal: "mouse,up,1"; \
3088 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3089 after: "button_unclick_anim"; \
3091 program { name: "button_unclick_anim"; \
3092 action: STATE_SET "default" 0.0; \
3093 target: "button_image"; \
3094 target: "button_center_part"; \
3096 program { name: "button_unclick2"; \
3097 signal: "mouse,clicked,1"; \
3099 action: SIGNAL_EMIT "elm,action,click" ""; \
3101 program { name: "disable"; \
3102 signal: "elm,state,disabled"; \
3104 action: STATE_SET "disabled" 0.0; \
3105 target: "disabler"; \
3106 target: "button_image"; \
3107 target: "button_center_part"; \
3109 program { name: "enable"; \
3110 signal: "elm,state,enabled"; \
3112 action: STATE_SET "default" 0.0; \
3113 target: "disabler"; \
3114 target: "button_image"; \
3115 target: "button_center_part"; \
3120 ///////////////////////////////////////////////////////////////////////////////////////
3121 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
3123 ///////////////////////////////////////////////////////////////////////////////////////
3124 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
3126 ///////////////////////////////////////////////////////////////////////////////////////
3127 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
3129 ///////////////////////////////////////////////////////////////////////////////////////
3130 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
3132 ///////////////////////////////////////////////////////////////////////////////////////
3133 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
3135 ///////////////////////////////////////////////////////////////////////////////////////
3136 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
3138 ///////////////////////////////////////////////////////////////////////////////////////
3139 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
3141 ///////////////////////////////////////////////////////////////////////////////////////
3142 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
3144 ///////////////////////////////////////////////////////////////////////////////////////
3145 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
3147 ///////////////////////////////////////////////////////////////////////////////////////
3148 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
3150 ///////////////////////////////////////////////////////////////////////////////////////
3151 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
3153 ///////////////////////////////////////////////////////////////////////////////////////
3154 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
3156 ///////////////////////////////////////////////////////////////////////////////////////
3157 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
3159 ///////////////////////////////////////////////////////////////////////////////////////
3160 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
3162 ///////////////////////////////////////////////////////////////////////////////////////
3163 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
3165 ///////////////////////////////////////////////////////////////////////////////////////
3166 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
3168 ///////////////////////////////////////////////////////////////////////////////////////
3169 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
3171 ///////////////////////////////////////////////////////////////////////////////////////
3172 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
3174 ///////////////////////////////////////////////////////////////////////////////////////
3175 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
3177 ///////////////////////////////////////////////////////////////////////////////////////
3178 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
3180 ///////////////////////////////////////////////////////////////////////////////////////
3181 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
3183 ///////////////////////////////////////////////////////////////////////////////////////
3184 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
3185 ///////////////////////////////////////////////////////////////////////////////////////
3186 group { name: "elm/button/base/circle/empty";
3188 image: "00_btn_circle_bg_normal.png" COMP;
3189 image: "00_btn_circle_bg_press.png" COMP;
3192 part { name: "button_image";
3194 description { state: "default" 0.0;
3195 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3196 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3198 image.normal: "00_btn_circle_bg_normal.png";
3199 color: 255 255 255 255;
3201 description { state: "clicked" 0.0;
3202 inherit: "default" 0.0;
3203 image.normal: "00_btn_circle_bg_press.png";
3205 description { state: "disabled" 0.0;
3206 inherit: "default" 0.0;
3207 color: 255 255 255 128;
3210 part { name: "elm.swallow.content";
3213 description { state: "default" 0.0;
3214 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3215 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3217 color: 255 255 255 255;
3220 state: "disabled" 0.0;
3221 inherit: "default" 0.0;
3222 color: 255 255 255 128;
3225 part { name: "over1";
3227 ignore_flags: ON_HOLD;
3228 description { state: "default" 0.0;
3232 part { name: "over2";
3234 description { state: "default" 0.0;
3238 part { name: "disabler";
3240 description { state: "default" 0.0;
3244 description { state: "disabled" 0.0;
3245 inherit: "default" 0.0;
3251 program { name: "button_click";
3252 signal: "mouse,down,1";
3254 action: SIGNAL_EMIT "elm,action,press" "";
3255 after: "button_click_anim";
3257 program { name: "button_click_anim";
3258 action: STATE_SET "clicked" 0.0;
3259 target: "button_image";
3261 program { name: "button_unclick";
3262 signal: "mouse,up,1";
3264 action: SIGNAL_EMIT "elm,action,unpress" "";
3265 after: "button_unclick_anim";
3267 program { name: "button_unclick_anim";
3268 action: STATE_SET "default" 0.0;
3269 target: "button_image";
3271 program { name: "button_unclick2";
3272 signal: "mouse,clicked,1";
3274 action: SIGNAL_EMIT "elm,action,click" "";
3276 program { name: "disable";
3277 signal: "elm,state,disabled";
3279 action: STATE_SET "disabled" 0.0;
3281 target: "button_image";
3283 program { name: "enable";
3284 signal: "elm,state,enabled";
3286 action: STATE_SET "default" 0.0;
3288 target: "button_image";
3290 program { name: "icon_show";
3291 signal: "elm,state,icon,visible";
3293 action: STATE_SET "visible" 0.0;
3294 target: "elm.swallow.content";
3296 program { name: "icon_hide";
3297 signal: "elm,state,icon,hidden";
3299 action: STATE_SET "default" 0.0;
3300 target: "elm.swallow.content";
3305 ///////////////////////////////////////////////////////////////////////////////////////
3306 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3307 group { name: "elm/button/base/contacts/"style_name; \
3308 alias: "elm/button/base/"style_name; \
3310 image: image_normal COMP; \
3311 image: image_press COMP; \
3312 image: "00_button_edit.png" COMP; \
3313 image: "00_button_edit_press.png" COMP; \
3314 image: "00_button_edit_dim.png" COMP; \
3317 part { name: "button_image"; \
3319 description { state: "default" 0.0; \
3320 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3321 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3323 normal: "00_button_edit.png"; \
3324 border: BUTTON_EDIT_STYLE_BORDER_INC; \
3329 state: "clicked" 0.0; \
3330 inherit: "default" 0.0; \
3331 image.normal: "00_button_edit_press.png"; \
3334 state: "disabled" 0.0; \
3335 inherit: "default" 0.0; \
3336 image.normal: "00_button_edit_dim.png"; \
3339 part { name: "button_center_part"; \
3342 description { state: "default" 0.0; \
3343 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3344 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3346 normal: image_normal; \
3347 border: BUTTON_EDIT_STYLE_BORDER_INC; \
3352 state: "clicked" 0.0; \
3353 inherit: "default" 0.0; \
3354 image.normal: image_press; \
3357 part { name: "over1"; \
3360 ignore_flags: ON_HOLD; \
3361 description { state: "default" 0.0; \
3363 min: min_width min_height; \
3366 part { name: "over2"; \
3368 description { state: "default" 0.0; \
3372 part { name: "disabler"; \
3374 description { state: "default" 0.0; \
3378 description { state: "disabled" 0.0; \
3379 inherit: "default" 0.0; \
3385 program { name: "button_click"; \
3386 signal: "mouse,down,1"; \
3388 action: SIGNAL_EMIT "elm,action,press" ""; \
3389 after: "button_click_anim"; \
3391 program { name: "button_click_anim"; \
3392 action: STATE_SET "clicked" 0.0; \
3393 target: "button_image"; \
3394 target: "button_center_part"; \
3396 program { name: "button_unclick"; \
3397 signal: "mouse,up,1"; \
3399 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3400 after: "button_unclick_anim"; \
3402 program { name: "button_unclick_anim"; \
3403 action: STATE_SET "default" 0.0; \
3404 target: "button_image"; \
3405 target: "button_center_part"; \
3407 program { name: "button_unclick2"; \
3408 signal: "mouse,clicked,1"; \
3410 action: SIGNAL_EMIT "elm,action,click" ""; \
3412 program { name: "disable"; \
3413 signal: "elm,state,disabled"; \
3415 action: STATE_SET "disabled" 0.0; \
3416 target: "disabler"; \
3417 target: "button_image"; \
3419 program { name: "enable"; \
3420 signal: "elm,state,enabled"; \
3422 action: STATE_SET "default" 0.0; \
3423 target: "disabler"; \
3424 target: "button_image"; \
3428 ///////////////////////////////////////////////////////////////////////////////////////
3429 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)
3431 ///////////////////////////////////////////////////////////////////////////////////////
3432 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)
3434 ///////////////////////////////////////////////////////////////////////////////////////
3435 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)
3437 ///////////////////////////////////////////////////////////////////////////////////////
3438 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)
3440 ///////////////////////////////////////////////////////////////////////////////////////
3441 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)
3443 ///////////////////////////////////////////////////////////////////////////////////////
3444 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)
3446 ///////////////////////////////////////////////////////////////////////////////////////
3447 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)
3449 ///////////////////////////////////////////////////////////////////////////////////////
3450 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)
3452 ///////////////////////////////////////////////////////////////////////////////////////
3453 group { name: "elm/button/base/contacts/delete";
3455 image: "00_button_edit.png" COMP;
3456 image: "00_button_edit_press.png" COMP;
3457 image: "00_button_edit_dim.png" COMP;
3460 public button_state = BUTTON_STATE_ENABLED;
3463 part { name: "button_image";
3465 description { state: "default" 0.0;
3466 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
3468 normal: "00_button_edit.png";
3469 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
3473 description { state: "clicked" 0.0;
3474 inherit: "default" 0.0;
3475 image.normal: "00_button_edit_press.png";
3477 description { state: "disabled" 0.0;
3478 inherit: "default" 0.0;
3479 image.normal: "00_button_edit_dim.png";
3481 description { state: "focused" 0.0;
3482 inherit: "default" 0.0;
3483 image.normal: "00_button_edit_press.png";
3486 part { name: "padding_left_top";
3490 description { state: "default" 0.0;
3492 rel2.relative: 0.0 0.0;
3493 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
3498 part { name: "padding_right_bottom";
3502 description { state: "default" 0.0;
3504 rel1.relative: 1.0 1.0;
3505 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
3510 part { name: "padding_icon_text";
3514 description { state: "default" 0.0; //when only icon or no icon is there
3518 to: "elm.swallow.content";
3520 rel2.to: "elm.swallow.content";
3525 description { state: "icononly" 0.0;
3526 inherit: "default" 0.0;
3528 description { state: "visible" 0.0; //when icon is visible
3529 inherit: "default" 0.0;
3530 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3533 part { name: "elm.swallow.content";
3537 description { state: "default" 0.0;
3542 to: "padding_left_top";
3546 to_x: "padding_left_top";
3547 to_y: "padding_right_bottom";
3551 description { state: "visible" 0.0;
3556 to: "padding_left_top";
3560 to_x: "padding_left_top";
3561 to_y: "padding_right_bottom";
3564 aspect_preference: VERTICAL;
3566 description { state: "icononly" 0.0;
3567 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
3570 to: "padding_left_top";
3574 to: "padding_right_bottom";
3577 aspect_preference: VERTICAL;
3580 part { name: "elm.text";
3585 description { state: "default" 0.0;
3588 to_x: "padding_icon_text";
3589 to_y: "padding_left_top";
3593 to: "padding_right_bottom";
3595 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
3597 font: "SLP:style=Medium";
3598 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
3604 description { state: "visible" 0.0;
3605 inherit: "default" 0.0;
3607 description { state: "clicked" 0.0;
3608 inherit: "default" 0.0;
3609 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3611 description { state: "disabled" 0.0;
3612 inherit: "default" 0.0;
3615 description { state: "disabled_visible" 0.0;
3616 inherit: "default" 0.0;
3617 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
3619 description { state: "focused" 0.0;
3620 inherit: "default" 0.0;
3622 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3625 part { name: "over2";
3628 ignore_flags: ON_HOLD;
3629 description { state: "default" 0.0;
3633 part { name: "over3";
3636 description { state: "default" 0.0;
3640 part { name: "clipper";
3642 description { state: "default" 0.0;
3643 color: 255 255 255 255;
3646 part { name: "disabler";
3648 description { state: "default" 0.0;
3652 description { state: "disabled" 0.0;
3653 inherit: "default" 0.0;
3659 program { name: "button_click";
3660 signal: "mouse,down,1";
3662 action: SIGNAL_EMIT "elm,action,press" "";
3663 after: "button_click_anim";
3665 program { name: "button_click_anim";
3666 action: STATE_SET "clicked" 0.0;
3667 target: "button_image";
3668 after: "text_clicked";
3670 program { name: "text_clicked";
3674 get_state(PART:"elm.text", st, 30, vl);
3675 if (!strcmp(st, "visible"))
3676 set_state(PART:"elm.text", "clicked", 0.0);
3679 program { name: "button_unpress";
3680 action: SIGNAL_EMIT "elm,action,unpress" "";
3682 program { name: "button_mouseout_clicked";
3683 signal: "mouse,up,1";
3688 get_state(PART:"elm.swallow.content", st, 30, vl);
3689 if (strcmp(st, "icononly"))
3691 emit("elm,action,default,text,set", "");
3692 set_state(PART:"elm.text", "visible", 0.0);
3694 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3695 set_state(PART:"button_image", "default", 0.0);
3697 after: button_unpress;
3699 program { name: "button_unclick3";
3700 signal: "mouse,clicked,1";
3702 action: SIGNAL_EMIT "elm,action,click" "";
3704 program { name: "text_show";
3705 signal: "elm,state,text,visible";
3710 get_state(PART:"elm.swallow.content", st, 30, vl);
3711 if (!strcmp(st, "icononly"))
3713 set_state(PART:"elm.swallow.content", "visible", 0.0);
3714 set_state(PART:"padding_icon_text", "visible", 0.0);
3716 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3717 set_state(PART:"elm.text", "visible", 0.0);
3719 set_state(PART:"elm.text", "disabled_visible", 0.0);
3722 program { name: "text_hide";
3723 signal: "elm,state,text,hidden";
3728 get_state(PART:"elm.swallow.content", st, 30, vl);
3729 if (!strcmp(st, "visible"))
3731 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3732 set_state(PART:"padding_icon_text", "icononly", 0.0);
3734 set_state(PART:"elm.text", "default", 0.0);
3737 program { name: "icon_show";
3738 signal: "elm,state,icon,visible";
3743 get_state(PART:"elm.text", st, 30, vl);
3744 if (!strcmp(st, "visible"))
3746 set_state(PART:"elm.swallow.content", "visible", 0.0);
3747 set_state(PART:"padding_icon_text", "visible", 0.0);
3751 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3752 set_state(PART:"padding_icon_text", "icononly", 0.0);
3756 program { name: "icon_hide";
3757 signal: "elm,state,icon,hidden";
3759 action: STATE_SET "default" 0.0;
3760 target: "elm.swallow.content";
3761 target: "padding_icon_text";
3763 program { name: "disable";
3764 signal: "elm,state,disabled";
3766 action: STATE_SET "disabled" 0.0;
3767 target: "button_image";
3769 after: "disable_text";
3771 program { name: "disable_text";
3775 get_state(PART:"elm.text", st, 30, vl);
3776 if (!strcmp(st, "visible"))
3777 set_state(PART:"elm.text", "disabled_visible", 0.0);
3779 set_state(PART:"elm.text", "disabled", 0.0);
3780 set_int(button_state, BUTTON_STATE_DISABLED);
3783 program { name: "enable";
3784 signal: "elm,state,enabled";
3786 action: STATE_SET "default" 0.0;
3787 target: "button_image";
3789 after: "enable_text";
3791 program { name: "enable_text";
3795 get_state(PART:"elm.text", st, 30, vl);
3796 if (!strcmp(st, "disabled_visible"))
3797 set_state(PART:"elm.text", "visible", 0.0);
3799 set_state(PART:"elm.text", "default", 0.0);
3800 set_int(button_state, BUTTON_STATE_ENABLED);
3803 program { name: "focused";
3804 //signal: "elm,action,focus";
3806 action: STATE_SET "focused" 0.0;
3807 target: "button_image";
3810 program { name: "unfocused";
3811 //signal: "elm,action,unfocus";
3813 action: STATE_SET "default" 0.0;
3814 target: "button_image";
3815 after: "unfocus_text";
3817 program { name: "unfocus_text";
3818 action: STATE_SET "visible" 0.0;
3824 ///////////////////////////////////////////////////////////////////////////////////////
3825 group { name: "elm/button/base/multiline";
3826 alias: "elm/button/base/text_only/multiline";
3828 image: "00_button_04_normal.png" COMP;
3829 image: "00_button_04_press.png" COMP;
3830 image: "00_button_04_dim.png" COMP;
3833 public button_state = BUTTON_STATE_ENABLED;
3836 style { name: "btn_multiline_style";
3837 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
3844 part { name: "button_image";
3846 description { state: "default" 0.0;
3849 normal: "00_button_04_normal.png";
3854 description { state: "clicked" 0.0;
3855 inherit: "default" 0.0;
3856 image.normal: "00_button_04_press.png";
3858 description { state: "disabled" 0.0;
3859 inherit: "default" 0.0;
3860 image.normal: "00_button_04_dim.png";
3862 description { state: "focused" 0.0;
3863 inherit: "default" 0.0;
3864 image.normal: "00_button_04_press.png";
3867 part { name: "padding_left_top";
3871 description { state: "default" 0.0;
3873 rel2.relative: 0.0 0.0;
3879 part { name: "padding_right_bottom";
3883 description { state: "default" 0.0;
3885 rel1.relative: 1.0 1.0;
3891 part { name: "icon_rect";
3895 description { state: "default" 0.0;
3901 to_x: "elm.swallow.content";
3902 to_y: "padding_left_top";
3906 to_x: "elm.swallow.content";
3907 to_y: "padding_right_bottom";
3913 part { name: "padding_icon_text";
3917 description { state: "default" 0.0; //when only icon or no icon is there
3923 rel2.to: "icon_rect";
3928 description { state: "icononly" 0.0;
3929 inherit: "default" 0.0;
3931 description { state: "visible" 0.0; //when icon is visible
3937 rel2.to: "icon_rect";
3943 part { name: "elm.swallow.content";
3947 description { state: "default" 0.0;
3952 to: "padding_left_top";
3956 to_x: "padding_left_top";
3957 to_y: "padding_right_bottom";
3961 description { state: "visible" 0.0;
3966 to: "padding_left_top";
3970 to_x: "padding_left_top";
3971 to_y: "padding_right_bottom";
3974 aspect_preference: VERTICAL;
3976 description { state: "icononly" 0.0;
3980 to: "padding_left_top";
3984 to: "padding_right_bottom";
3987 aspect_preference: VERTICAL;
3990 part { name: "elm.text";
3995 description { state: "default" 0.0;
3999 to_x: "padding_icon_text";
4000 to_y: "padding_left_top";
4004 to: "padding_right_bottom";
4006 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4008 style: "btn_multiline_style";
4013 description { state: "visible" 0.0;
4014 inherit: "default" 0.0;
4018 description { state: "clicked" 0.0;
4019 inherit: "default" 0.0;
4022 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4024 description { state: "disabled" 0.0;
4025 inherit: "default" 0.0;
4028 description { state: "disabled_visible" 0.0;
4029 inherit: "default" 0.0;
4030 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
4034 description { state: "focused" 0.0;
4035 inherit: "default" 0.0;
4038 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4041 part { name: "over2";
4044 ignore_flags: ON_HOLD;
4045 description { state: "default" 0.0;
4049 part { name: "over3";
4052 description { state: "default" 0.0;
4056 part { name: "clipper";
4058 description { state: "default" 0.0;
4059 color: 255 255 255 255;
4062 part { name: "disabler";
4064 description { state: "default" 0.0;
4068 description { state: "disabled" 0.0;
4069 inherit: "default" 0.0;
4075 program { name: "button_click";
4076 signal: "mouse,down,1";
4078 action: SIGNAL_EMIT "elm,action,press" "";
4079 after: "button_click_anim";
4081 program { name: "button_click_anim";
4082 action: STATE_SET "clicked" 0.0;
4083 target: "button_image";
4084 after: "text_clicked";
4086 program { name: "text_clicked";
4090 get_state(PART:"elm.text", st, 30, vl);
4091 if (!strcmp(st, "visible"))
4092 set_state(PART:"elm.text", "clicked", 0.0);
4095 program { name: "button_unpress";
4096 action: SIGNAL_EMIT "elm,action,unpress" "";
4098 program { name: "button_mouseout_clicked";
4099 signal: "mouse,up,1";
4104 get_state(PART:"elm.swallow.content", st, 30, vl);
4105 if (strcmp(st, "icononly"))
4107 emit("elm,action,default,text,set", "");
4108 set_state(PART:"elm.text", "visible", 0.0);
4110 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4111 set_state(PART:"button_image", "default", 0.0);
4113 after: button_unpress;
4115 program { name: "button_unclick3";
4116 signal: "mouse,clicked,1";
4118 action: SIGNAL_EMIT "elm,action,click" "";
4120 program { name: "text_show";
4121 signal: "elm,state,text,visible";
4126 get_state(PART:"elm.swallow.content", st, 30, vl);
4127 if (!strcmp(st, "icononly"))
4129 set_state(PART:"elm.swallow.content", "visible", 0.0);
4130 set_state(PART:"padding_icon_text", "visible", 0.0);
4132 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4133 set_state(PART:"elm.text", "visible", 0.0);
4135 set_state(PART:"elm.text", "disabled_visible", 0.0);
4138 program { name: "text_hide";
4139 signal: "elm,state,text,hidden";
4144 get_state(PART:"elm.swallow.content", st, 30, vl);
4145 if (!strcmp(st, "visible"))
4147 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4148 set_state(PART:"padding_icon_text", "icononly", 0.0);
4150 set_state(PART:"elm.text", "default", 0.0);
4153 program { name: "icon_show";
4154 signal: "elm,state,icon,visible";
4159 get_state(PART:"elm.text", st, 30, vl);
4160 if (!strcmp(st, "visible"))
4162 set_state(PART:"elm.swallow.content", "visible", 0.0);
4163 set_state(PART:"padding_icon_text", "visible", 0.0);
4167 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4168 set_state(PART:"padding_icon_text", "icononly", 0.0);
4172 program { name: "icon_hide";
4173 signal: "elm,state,icon,hidden";
4175 action: STATE_SET "default" 0.0;
4176 target: "elm.swallow.content";
4177 target: "padding_icon_text";
4179 program { name: "disable";
4180 signal: "elm,state,disabled";
4182 action: STATE_SET "disabled" 0.0;
4183 target: "button_image";
4185 after: "disable_text";
4187 program { name: "disable_text";
4191 get_state(PART:"elm.text", st, 30, vl);
4192 if (!strcmp(st, "visible"))
4193 set_state(PART:"elm.text", "disabled_visible", 0.0);
4195 set_state(PART:"elm.text", "disabled", 0.0);
4196 set_int(button_state, BUTTON_STATE_DISABLED);
4199 program { name: "enable";
4200 signal: "elm,state,enabled";
4202 action: STATE_SET "default" 0.0;
4203 target: "button_image";
4205 after: "enable_text";
4207 program { name: "enable_text";
4211 get_state(PART:"elm.text", st, 30, vl);
4212 if (!strcmp(st, "disabled_visible"))
4213 set_state(PART:"elm.text", "visible", 0.0);
4215 set_state(PART:"elm.text", "default", 0.0);
4216 set_int(button_state, BUTTON_STATE_ENABLED);
4219 program { name: "focused";
4220 //signal: "elm,action,focus";
4222 action: STATE_SET "focused" 0.0;
4223 target: "button_image";
4226 program { name: "unfocused";
4227 //signal: "elm,action,unfocus";
4229 action: STATE_SET "default" 0.0;
4230 target: "button_image";
4231 after: "unfocus_text";
4233 program { name: "unfocus_text";
4234 action: STATE_SET "visible" 0.0;
4240 ///////////////////////////////////////////////////////////////////////////////////////
4241 group { name: "elm/button/base/default";
4243 image: "00_button_01_normal.png" COMP;
4244 image: "00_button_01_normal_press.png" COMP;
4245 image: "00_button_01_normal_dim.png" COMP;
4248 public button_state = BUTTON_STATE_ENABLED;
4251 part { name: "button_image";
4253 description { state: "default" 0.0;
4254 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
4256 normal: "00_button_01_normal.png";
4257 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
4261 description { state: "clicked" 0.0;
4262 inherit: "default" 0.0;
4263 image.normal: "00_button_01_normal_press.png";
4265 description { state: "disabled" 0.0;
4266 inherit: "default" 0.0;
4267 image.normal: "00_button_01_normal_dim.png";
4269 description { state: "focused" 0.0;
4270 inherit: "default" 0.0;
4271 image.normal: "00_button_01_normal_press.png";
4274 part { name: "padding_left_top";
4278 description { state: "default" 0.0;
4280 rel2.relative: 0.0 0.0;
4281 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
4286 part { name: "padding_right_bottom";
4290 description { state: "default" 0.0;
4292 rel1.relative: 1.0 1.0;
4293 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
4298 part { name: "padding_icon_text";
4302 description { state: "default" 0.0; //when only icon or no icon is there
4307 to: "elm.swallow.content";
4309 rel2.to: "elm.swallow.content";
4313 description { state: "icononly" 0.0;
4314 inherit: "default" 0.0;
4316 description { state: "visible" 0.0; //when icon is visible
4317 inherit: "default" 0.0;
4318 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4321 part { name: "elm.swallow.content";
4325 description { state: "default" 0.0;
4330 to: "padding_left_top";
4334 to_x: "padding_left_top";
4335 to_y: "padding_right_bottom";
4339 description { state: "visible" 0.0;
4344 to: "padding_left_top";
4348 to_x: "padding_left_top";
4349 to_y: "padding_right_bottom";
4352 aspect_preference: VERTICAL;
4354 description { state: "icononly" 0.0;
4355 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
4358 to_x: "padding_left_top";
4362 to_x: "padding_right_bottom";
4365 aspect_preference: VERTICAL;
4368 part { name: "elm.text";
4373 description { state: "default" 0.0;
4378 to_x: "padding_icon_text";
4379 to_y: "padding_left_top";
4383 to: "padding_right_bottom";
4385 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
4387 font: "SLP:style=Medium";
4388 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
4392 description { state: "visible" 0.0;
4393 inherit: "default" 0.0;
4395 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4397 description { state: "clicked" 0.0;
4398 inherit: "default" 0.0;
4400 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4401 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
4403 description { state: "disabled" 0.0;
4404 inherit: "default" 0.0;
4406 description { state: "disabled_visible" 0.0;
4407 inherit: "default" 0.0;
4408 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
4410 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
4412 description { state: "focused" 0.0;
4413 inherit: "default" 0.0;
4416 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
4419 part { name: "over2";
4422 ignore_flags: ON_HOLD;
4423 description { state: "default" 0.0;
4427 part { name: "over3";
4430 description { state: "default" 0.0;
4434 part { name: "clipper";
4436 description { state: "default" 0.0;
4437 color: 255 255 255 255;
4440 part { name: "disabler";
4442 description { state: "default" 0.0;
4446 description { state: "disabled" 0.0;
4447 inherit: "default" 0.0;
4453 program { name: "button_click";
4454 signal: "mouse,down,1";
4456 action: SIGNAL_EMIT "elm,action,press" "";
4457 after: "button_click_anim";
4459 program { name: "button_click_anim";
4460 action: STATE_SET "clicked" 0.0;
4461 target: "button_image";
4462 after: "text_clicked";
4464 program { name: "text_clicked";
4468 get_state(PART:"elm.text", st, 30, vl);
4469 if (!strcmp(st, "visible"))
4470 set_state(PART:"elm.text", "clicked", 0.0);
4473 program { name: "button_unpress";
4474 action: SIGNAL_EMIT "elm,action,unpress" "";
4476 program { name: "button_mouseout_clicked";
4477 signal: "mouse,up,1";
4482 get_state(PART:"elm.swallow.content", st, 30, vl);
4483 if (strcmp(st, "icononly"))
4485 emit("elm,action,default,text,set", "");
4486 set_state(PART:"elm.text", "visible", 0.0);
4488 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4489 set_state(PART:"button_image", "default", 0.0);
4491 after: button_unpress;
4493 program { name: "button_unclick3";
4494 signal: "mouse,clicked,1";
4496 action: SIGNAL_EMIT "elm,action,click" "";
4498 program { name: "text_show";
4499 signal: "elm,state,text,visible";
4504 get_state(PART:"elm.swallow.content", st, 30, vl);
4505 if (!strcmp(st, "icononly"))
4507 set_state(PART:"elm.swallow.content", "visible", 0.0);
4508 set_state(PART:"padding_icon_text", "visible", 0.0);
4510 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4511 set_state(PART:"elm.text", "visible", 0.0);
4513 set_state(PART:"elm.text", "disabled_visible", 0.0);
4516 program { name: "text_hide";
4517 signal: "elm,state,text,hidden";
4522 get_state(PART:"elm.swallow.content", st, 30, vl);
4523 if (!strcmp(st, "visible"))
4525 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4526 set_state(PART:"padding_icon_text", "icononly", 0.0);
4528 set_state(PART:"elm.text", "default", 0.0);
4531 program { name: "icon_show";
4532 signal: "elm,state,icon,visible";
4537 get_state(PART:"elm.text", st, 30, vl);
4538 if (!strcmp(st, "visible"))
4540 set_state(PART:"elm.swallow.content", "visible", 0.0);
4541 set_state(PART:"padding_icon_text", "visible", 0.0);
4545 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4546 set_state(PART:"padding_icon_text", "icononly", 0.0);
4550 program { name: "icon_hide";
4551 signal: "elm,state,icon,hidden";
4553 action: STATE_SET "default" 0.0;
4554 target: "elm.swallow.content";
4555 target: "padding_icon_text";
4557 program { name: "disable";
4558 signal: "elm,state,disabled";
4560 action: STATE_SET "disabled" 0.0;
4561 target: "button_image";
4563 after: "disable_text";
4565 program { name: "disable_text";
4569 get_state(PART:"elm.text", st, 30, vl);
4570 if (!strcmp(st, "visible"))
4571 set_state(PART:"elm.text", "disabled_visible", 0.0);
4573 set_state(PART:"elm.text", "disabled", 0.0);
4574 set_int(button_state, BUTTON_STATE_DISABLED);
4577 program { name: "enable";
4578 signal: "elm,state,enabled";
4580 action: STATE_SET "default" 0.0;
4581 target: "button_image";
4583 after: "enable_text";
4585 program { name: "enable_text";
4589 get_state(PART:"elm.text", st, 30, vl);
4590 if (!strcmp(st, "disabled_visible"))
4591 set_state(PART:"elm.text", "visible", 0.0);
4593 set_state(PART:"elm.text", "default", 0.0);
4594 set_int(button_state, BUTTON_STATE_ENABLED);
4597 program { name: "focused";
4598 //signal: "elm,action,focus";
4600 action: STATE_SET "focused" 0.0;
4601 target: "button_image";
4604 program { name: "unfocused";
4605 //signal: "elm,action,unfocus";
4607 action: STATE_SET "default" 0.0;
4608 target: "button_image";
4609 after: "unfocus_text";
4611 program { name: "unfocus_text";
4612 action: STATE_SET "visible" 0.0;
4618 ///////////////////////////////////////////////////////////////////////////////////////
4619 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
4620 group { name: "elm/button/base/"style_name; \
4622 image: image_normal COMP; \
4623 image: image_press COMP; \
4624 image: image_disable COMP; \
4627 public button_state = BUTTON_STATE_ENABLED; \
4630 part { name: "button_image"; \
4632 description { state: "default" 0.0; \
4633 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4635 normal: image_normal; \
4636 border: COLORSELECTOR_BUTTON_BORDER; \
4640 description { state: "clicked" 0.0; \
4641 inherit: "default" 0.0; \
4642 image.normal: image_press; \
4644 description { state: "disabled" 0.0; \
4645 inherit: "default" 0.0; \
4646 image.normal: image_disable; \
4648 description { state: "focused" 0.0; \
4649 inherit: "default" 0.0; \
4650 image.normal: image_press; \
4653 part { name: "over2"; \
4656 ignore_flags: ON_HOLD; \
4657 description { state: "default" 0.0; \
4661 part { name: "over3"; \
4664 description { state: "default" 0.0; \
4668 part { name: "disabler"; \
4670 description { state: "default" 0.0; \
4674 description { state: "disabled" 0.0; \
4675 inherit: "default" 0.0; \
4681 program { name: "button_click"; \
4682 signal: "mouse,down,1"; \
4684 action: SIGNAL_EMIT "elm,action,press" ""; \
4685 after: "button_click_anim"; \
4687 program { name: "button_click_anim"; \
4688 action: STATE_SET "clicked" 0.0; \
4689 target: "button_image"; \
4691 program { name: "button_unpress"; \
4692 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4694 program { name: "button_mouseout_clicked"; \
4695 signal: "mouse,up,1"; \
4698 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
4699 set_state(PART:"button_image", "default", 0.0); \
4701 after: button_unpress; \
4703 program { name: "button_unclick3"; \
4704 signal: "mouse,clicked,1"; \
4706 action: SIGNAL_EMIT "elm,action,click" ""; \
4708 program { name: "disable"; \
4709 signal: "elm,state,disabled"; \
4711 action: STATE_SET "disabled" 0.0; \
4712 target: "button_image"; \
4713 target: "disabler"; \
4715 set_int(button_state, BUTTON_STATE_DISABLED); \
4718 program { name: "enable"; \
4719 signal: "elm,state,enabled"; \
4721 action: STATE_SET "default" 0.0; \
4722 target: "button_image"; \
4723 target: "disabler"; \
4725 set_int(button_state, BUTTON_STATE_ENABLED); \
4730 ///////////////////////////////////////////////////////////////////////////////////////
4731 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")
4732 ///////////////////////////////////////////////////////////////////////////////////////
4733 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")
4734 ///////////////////////////////////////////////////////////////////////////////////////
4735 group { name: "elm/button/base/hidden";
4737 image: "00_button_sweep.png" COMP;
4738 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4741 public button_state = BUTTON_STATE_ENABLED;
4744 part { name: "button_image";
4746 description { state: "default" 0.0;
4747 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4749 normal: "00_button_sweep.png";
4750 border: BUTTON_HIDDEN_BG_BORDER_INC;
4754 description { state: "clicked" 0.0;
4755 inherit: "default" 0.0;
4756 image.normal: "00_button_sweep_press.png";
4758 description { state: "disabled" 0.0;
4759 inherit: "default" 0.0;
4761 description { state: "focused" 0.0;
4762 inherit: "default" 0.0;
4763 image.normal: "00_button_sweep_press.png";
4766 part { name: "padding_left_top";
4770 description { state: "default" 0.0;
4772 rel2.relative: 0.0 0.0;
4773 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4778 part { name: "padding_right_bottom";
4782 description { state: "default" 0.0;
4784 rel1.relative: 1.0 1.0;
4785 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4790 part { name: "icon_rect";
4794 description { state: "default" 0.0;
4795 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4799 to_x: "elm.swallow.content";
4800 to_y: "padding_left_top";
4804 to_x: "elm.swallow.content";
4805 to_y: "padding_right_bottom";
4811 part { name: "padding_icon_text";
4815 description { state: "default" 0.0; //when only icon or no icon is there
4821 rel2.to: "icon_rect";
4826 description { state: "icononly" 0.0;
4827 inherit: "default" 0.0;
4829 description { state: "visible" 0.0; //when icon is visible
4835 rel2.to: "icon_rect";
4837 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4841 part { name: "elm.swallow.content";
4845 description { state: "default" 0.0;
4850 to: "padding_left_top";
4854 to_x: "padding_left_top";
4855 to_y: "padding_right_bottom";
4859 description { state: "visible" 0.0;
4864 to: "padding_left_top";
4868 to_x: "padding_left_top";
4869 to_y: "padding_right_bottom";
4872 aspect_preference: VERTICAL;
4874 description { state: "icononly" 0.0;
4875 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4878 to: "padding_left_top";
4882 to_x: "padding_left_top";
4883 to_y: "padding_right_bottom";
4886 aspect_preference: VERTICAL;
4889 part { name: "elm.text";
4894 description { state: "default" 0.0;
4898 to_x: "padding_icon_text";
4899 to_y: "padding_left_top";
4903 to: "padding_right_bottom";
4905 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4907 font: "SLP:style=Medium";
4908 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4912 description { state: "visible" 0.0;
4913 inherit: "default" 0.0;
4915 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4917 description { state: "clicked" 0.0;
4918 inherit: "default" 0.0;
4921 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4923 description { state: "disabled" 0.0;
4924 inherit: "default" 0.0;
4927 description { state: "disabled_visible" 0.0;
4928 inherit: "default" 0.0;
4929 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4931 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4933 description { state: "focused" 0.0;
4934 inherit: "default" 0.0;
4937 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4940 part { name: "over2";
4943 ignore_flags: ON_HOLD;
4944 description { state: "default" 0.0;
4948 part { name: "over3";
4951 description { state: "default" 0.0;
4955 part { name: "clipper";
4957 description { state: "default" 0.0;
4958 color: 255 255 255 255;
4961 part { name: "disabler";
4963 description { state: "default" 0.0;
4967 description { state: "disabled" 0.0;
4968 inherit: "default" 0.0;
4974 program { name: "button_click";
4975 signal: "mouse,down,1";
4977 action: SIGNAL_EMIT "elm,action,press" "";
4978 after: "button_click_anim";
4980 program { name: "button_click_anim";
4981 action: STATE_SET "clicked" 0.0;
4982 target: "button_image";
4983 after: "text_clicked";
4985 program { name: "text_clicked";
4989 get_state(PART:"elm.text", st, 30, vl);
4990 if (!strcmp(st, "visible"))
4991 set_state(PART:"elm.text", "clicked", 0.0);
4994 program { name: "button_unpress";
4995 action: SIGNAL_EMIT "elm,action,unpress" "";
4997 program { name: "button_mouseout_clicked";
4998 signal: "mouse,up,1";
5003 get_state(PART:"elm.swallow.content", st, 30, vl);
5004 if (strcmp(st, "icononly"))
5006 emit("elm,action,default,text,set", "");
5007 set_state(PART:"elm.text", "visible", 0.0);
5009 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5010 set_state(PART:"button_image", "default", 0.0);
5012 after: button_unpress;
5014 program { name: "button_unclick3";
5015 signal: "mouse,clicked,1";
5017 action: SIGNAL_EMIT "elm,action,click" "";
5019 program { name: "text_show";
5020 signal: "elm,state,text,visible";
5025 get_state(PART:"elm.swallow.content", st, 30, vl);
5026 if (!strcmp(st, "icononly"))
5028 set_state(PART:"elm.swallow.content", "visible", 0.0);
5029 set_state(PART:"padding_icon_text", "visible", 0.0);
5031 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5032 set_state(PART:"elm.text", "visible", 0.0);
5034 set_state(PART:"elm.text", "disabled_visible", 0.0);
5037 program { name: "text_hide";
5038 signal: "elm,state,text,hidden";
5043 get_state(PART:"elm.swallow.content", st, 30, vl);
5044 if (!strcmp(st, "visible"))
5046 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5047 set_state(PART:"padding_icon_text", "icononly", 0.0);
5049 set_state(PART:"elm.text", "default", 0.0);
5052 program { name: "icon_show";
5053 signal: "elm,state,icon,visible";
5058 get_state(PART:"elm.text", st, 30, vl);
5059 if (!strcmp(st, "visible"))
5061 set_state(PART:"elm.swallow.content", "visible", 0.0);
5062 set_state(PART:"padding_icon_text", "visible", 0.0);
5066 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5067 set_state(PART:"padding_icon_text", "icononly", 0.0);
5071 program { name: "icon_hide";
5072 signal: "elm,state,icon,hidden";
5074 action: STATE_SET "default" 0.0;
5075 target: "elm.swallow.content";
5076 target: "padding_icon_text";
5078 program { name: "disable";
5079 signal: "elm,state,disabled";
5081 action: STATE_SET "disabled" 0.0;
5082 target: "button_image";
5084 after: "disable_text";
5086 program { name: "disable_text";
5090 get_state(PART:"elm.text", st, 30, vl);
5091 if (!strcmp(st, "visible"))
5092 set_state(PART:"elm.text", "disabled_visible", 0.0);
5094 set_state(PART:"elm.text", "disabled", 0.0);
5095 set_int(button_state, BUTTON_STATE_DISABLED);
5098 program { name: "enable";
5099 signal: "elm,state,enabled";
5101 action: STATE_SET "default" 0.0;
5102 target: "button_image";
5104 after: "enable_text";
5106 program { name: "enable_text";
5110 get_state(PART:"elm.text", st, 30, vl);
5111 if (!strcmp(st, "disabled_visible"))
5112 set_state(PART:"elm.text", "visible", 0.0);
5114 set_state(PART:"elm.text", "default", 0.0);
5115 set_int(button_state, BUTTON_STATE_ENABLED);
5118 program { name: "focused";
5119 //signal: "elm,action,focus";
5121 action: STATE_SET "focused" 0.0;
5122 target: "button_image";
5125 program { name: "unfocused";
5126 //signal: "elm,action,unfocus";
5128 action: STATE_SET "default" 0.0;
5129 target: "button_image";
5130 after: "unfocus_text";
5132 program { name: "unfocus_text";
5133 action: STATE_SET "visible" 0.0;
5139 ///////////////////////////////////////////////////////////////////////////////////////
5140 group { name: "elm/button/base/picker/bar/default";
5142 image: "00_picker_btn_normal.png" COMP;
5143 image: "00_picker_btn_press.png" COMP;
5146 public button_state = BUTTON_STATE_ENABLED;
5149 part { name: "button_image";
5151 description { state: "default" 0.0;
5152 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
5154 normal: "00_picker_btn_normal.png";
5155 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
5159 description { state: "clicked" 0.0;
5160 inherit: "default" 0.0;
5161 image.normal: "00_picker_btn_press.png";
5163 description { state: "disabled" 0.0;
5164 inherit: "default" 0.0;
5166 description { state: "focused" 0.0;
5167 inherit: "default" 0.0;
5168 image.normal: "00_picker_btn_press.png";
5171 part { name: "padding_left_top";
5175 description { state: "default" 0.0;
5177 rel2.relative: 0.0 0.0;
5178 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
5183 part { name: "padding_right_bottom";
5187 description { state: "default" 0.0;
5189 rel1.relative: 1.0 1.0;
5190 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
5195 part { name: "icon_rect";
5199 description { state: "default" 0.0;
5200 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
5204 to_x: "elm.swallow.content";
5205 to_y: "padding_left_top";
5209 to_x: "elm.swallow.content";
5210 to_y: "padding_right_bottom";
5216 part { name: "padding_icon_text";
5220 description { state: "default" 0.0; //when only icon or no icon is there
5226 rel2.to: "icon_rect";
5231 description { state: "icononly" 0.0;
5232 inherit: "default" 0.0;
5234 description { state: "visible" 0.0; //when icon is visible
5240 rel2.to: "icon_rect";
5242 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5246 part { name: "elm.swallow.content";
5250 description { state: "default" 0.0;
5255 to: "padding_left_top";
5259 to_x: "padding_left_top";
5260 to_y: "padding_right_bottom";
5264 description { state: "visible" 0.0;
5269 to: "padding_left_top";
5273 to_x: "padding_left_top";
5274 to_y: "padding_right_bottom";
5277 aspect_preference: VERTICAL;
5279 description { state: "icononly" 0.0;
5280 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
5283 to: "padding_left_top";
5287 to_x: "padding_left_top";
5288 to_y: "padding_right_bottom";
5291 aspect_preference: VERTICAL;
5294 part { name: "elm.text";
5299 description { state: "default" 0.0;
5303 to_x: "padding_icon_text";
5304 to_y: "padding_left_top";
5308 to: "padding_right_bottom";
5310 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5312 font: "SLP:style=Medium";
5313 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
5318 description { state: "visible" 0.0;
5319 inherit: "default" 0.0;
5321 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5323 description { state: "clicked" 0.0;
5324 inherit: "default" 0.0;
5327 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5329 description { state: "disabled" 0.0;
5330 inherit: "default" 0.0;
5331 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5333 description { state: "disabled_visible" 0.0;
5334 inherit: "default" 0.0;
5335 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5337 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5339 description { state: "focused" 0.0;
5340 inherit: "default" 0.0;
5343 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5346 part { name: "over2";
5349 ignore_flags: ON_HOLD;
5350 description { state: "default" 0.0;
5354 part { name: "over3";
5357 description { state: "default" 0.0;
5361 part { name: "clipper";
5363 description { state: "default" 0.0;
5364 color: 255 255 255 255;
5367 part { name: "disabler";
5369 description { state: "default" 0.0;
5373 description { state: "disabled" 0.0;
5374 inherit: "default" 0.0;
5380 program { name: "button_click";
5381 signal: "mouse,down,1";
5383 action: SIGNAL_EMIT "elm,action,press" "";
5384 after: "button_click_anim";
5386 program { name: "button_click_anim";
5387 action: STATE_SET "clicked" 0.0;
5388 target: "button_image";
5389 after: "text_clicked";
5391 program { name: "text_clicked";
5395 get_state(PART:"elm.text", st, 30, vl);
5396 if (!strcmp(st, "visible"))
5397 set_state(PART:"elm.text", "clicked", 0.0);
5400 program { name: "button_unpress";
5401 action: SIGNAL_EMIT "elm,action,unpress" "";
5403 program { name: "button_mouseout_clicked";
5404 signal: "mouse,up,1";
5409 get_state(PART:"elm.swallow.content", st, 30, vl);
5410 if (strcmp(st, "icononly"))
5412 emit("elm,action,default,text,set", "");
5413 set_state(PART:"elm.text", "visible", 0.0);
5415 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5416 set_state(PART:"button_image", "default", 0.0);
5418 after: button_unpress;
5420 program { name: "button_unclick3";
5421 signal: "mouse,clicked,1";
5423 action: SIGNAL_EMIT "elm,action,click" "";
5425 program { name: "text_show";
5426 signal: "elm,state,text,visible";
5431 get_state(PART:"elm.swallow.content", st, 30, vl);
5432 if (!strcmp(st, "icononly"))
5434 set_state(PART:"elm.swallow.content", "visible", 0.0);
5435 set_state(PART:"padding_icon_text", "visible", 0.0);
5437 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5438 set_state(PART:"elm.text", "visible", 0.0);
5440 set_state(PART:"elm.text", "disabled_visible", 0.0);
5443 program { name: "text_hide";
5444 signal: "elm,state,text,hidden";
5449 get_state(PART:"elm.swallow.content", st, 30, vl);
5450 if (!strcmp(st, "visible"))
5452 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5453 set_state(PART:"padding_icon_text", "icononly", 0.0);
5455 set_state(PART:"elm.text", "default", 0.0);
5458 program { name: "icon_show";
5459 signal: "elm,state,icon,visible";
5464 get_state(PART:"elm.text", st, 30, vl);
5465 if (!strcmp(st, "visible"))
5467 set_state(PART:"elm.swallow.content", "visible", 0.0);
5468 set_state(PART:"padding_icon_text", "visible", 0.0);
5472 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5473 set_state(PART:"padding_icon_text", "icononly", 0.0);
5477 program { name: "icon_hide";
5478 signal: "elm,state,icon,hidden";
5480 action: STATE_SET "default" 0.0;
5481 target: "elm.swallow.content";
5482 target: "padding_icon_text";
5484 program { name: "disable";
5485 signal: "elm,state,disabled";
5487 action: STATE_SET "disabled" 0.0;
5488 target: "button_image";
5490 after: "disable_text";
5492 program { name: "disable_text";
5496 get_state(PART:"elm.text", st, 30, vl);
5497 if (!strcmp(st, "visible"))
5498 set_state(PART:"elm.text", "disabled_visible", 0.0);
5500 set_state(PART:"elm.text", "disabled", 0.0);
5501 set_int(button_state, BUTTON_STATE_DISABLED);
5504 program { name: "enable";
5505 signal: "elm,state,enabled";
5507 action: STATE_SET "default" 0.0;
5508 target: "button_image";
5510 after: "enable_text";
5512 program { name: "enable_text";
5516 get_state(PART:"elm.text", st, 30, vl);
5517 if (!strcmp(st, "disabled_visible"))
5518 set_state(PART:"elm.text", "visible", 0.0);
5520 set_state(PART:"elm.text", "default", 0.0);
5521 set_int(button_state, BUTTON_STATE_ENABLED);
5524 program { name: "focused";
5525 //signal: "elm,action,focus";
5527 action: STATE_SET "focused" 0.0;
5528 target: "button_image";
5531 program { name: "unfocused";
5532 //signal: "elm,action,unfocus";
5534 action: STATE_SET "default" 0.0;
5535 target: "button_image";
5536 after: "unfocus_text";
5538 program { name: "unfocus_text";
5539 action: STATE_SET "visible" 0.0;
5545 ///////////////////////////////////////////////////////////////////////////////////////
5546 group { name: "elm/button/base/picker/prev/text/default";
5547 alias: "elm/button/base/picker/next/text/default";
5549 image: "00_picker_btn_normal.png" COMP;
5550 image: "00_picker_btn_press.png" COMP;
5553 public button_state = BUTTON_STATE_ENABLED;
5556 part { name: "button_image";
5558 description { state: "default" 0.0;
5559 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
5561 normal: "00_picker_btn_normal.png";
5562 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
5566 description { state: "clicked" 0.0;
5567 inherit: "default" 0.0;
5568 image.normal: "00_picker_btn_press.png";
5570 description { state: "disabled" 0.0;
5571 inherit: "default" 0.0;
5574 description { state: "focused" 0.0;
5575 inherit: "default" 0.0;
5576 image.normal: "00_picker_btn_press.png";
5579 part { name: "padding_left_top";
5583 description { state: "default" 0.0;
5585 rel2.relative: 0.0 0.0;
5586 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5591 part { name: "padding_right_bottom";
5595 description { state: "default" 0.0;
5597 rel1.relative: 1.0 1.0;
5598 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5603 part { name: "icon_rect";
5607 description { state: "default" 0.0;
5608 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5612 to_x: "elm.swallow.content";
5613 to_y: "padding_left_top";
5617 to_x: "elm.swallow.content";
5618 to_y: "padding_right_bottom";
5624 part { name: "padding_icon_text";
5628 description { state: "default" 0.0; //when only icon or no icon is there
5634 rel2.to: "icon_rect";
5639 description { state: "icononly" 0.0;
5640 inherit: "default" 0.0;
5642 description { state: "visible" 0.0; //when icon is visible
5648 rel2.to: "icon_rect";
5650 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5654 part { name: "elm.swallow.content";
5658 description { state: "default" 0.0;
5663 to: "padding_left_top";
5667 to_x: "padding_left_top";
5668 to_y: "padding_right_bottom";
5672 description { state: "visible" 0.0;
5677 to: "padding_left_top";
5681 to_x: "padding_left_top";
5682 to_y: "padding_right_bottom";
5685 aspect_preference: VERTICAL;
5687 description { state: "icononly" 0.0;
5688 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5691 to: "padding_left_top";
5695 to_x: "padding_left_top";
5696 to_y: "padding_right_bottom";
5699 aspect_preference: VERTICAL;
5702 part { name: "elm.text";
5707 description { state: "default" 0.0;
5711 to_x: "padding_icon_text";
5712 to_y: "padding_left_top";
5716 to: "padding_right_bottom";
5718 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5720 font: "SLP:style=Medium";
5721 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5726 description { state: "visible" 0.0;
5727 inherit: "default" 0.0;
5729 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5731 description { state: "clicked" 0.0;
5732 inherit: "default" 0.0;
5735 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5737 description { state: "disabled" 0.0;
5738 inherit: "default" 0.0;
5739 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5741 description { state: "disabled_visible" 0.0;
5742 inherit: "default" 0.0;
5743 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5745 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5747 description { state: "focused" 0.0;
5748 inherit: "default" 0.0;
5751 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5754 part { name: "over2";
5757 ignore_flags: ON_HOLD;
5758 description { state: "default" 0.0;
5762 part { name: "over3";
5765 description { state: "default" 0.0;
5769 part { name: "clipper";
5771 description { state: "default" 0.0;
5772 color: 255 255 255 255;
5775 part { name: "disabler";
5777 description { state: "default" 0.0;
5781 description { state: "disabled" 0.0;
5782 inherit: "default" 0.0;
5788 program { name: "button_click";
5789 signal: "mouse,down,1";
5791 action: SIGNAL_EMIT "elm,action,press" "";
5792 after: "button_click_anim";
5794 program { name: "button_click_anim";
5795 action: STATE_SET "clicked" 0.0;
5796 target: "button_image";
5797 after: "text_clicked";
5799 program { name: "text_clicked";
5803 get_state(PART:"elm.text", st, 30, vl);
5804 if (!strcmp(st, "visible"))
5805 set_state(PART:"elm.text", "clicked", 0.0);
5808 program { name: "button_unpress";
5809 action: SIGNAL_EMIT "elm,action,unpress" "";
5811 program { name: "button_mouseout_clicked";
5812 signal: "mouse,up,1";
5817 get_state(PART:"elm.swallow.content", st, 30, vl);
5818 if (strcmp(st, "icononly"))
5820 emit("elm,action,default,text,set", "");
5821 set_state(PART:"elm.text", "visible", 0.0);
5823 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5824 set_state(PART:"button_image", "default", 0.0);
5826 after: button_unpress;
5828 program { name: "button_unclick3";
5829 signal: "mouse,clicked,1";
5831 action: SIGNAL_EMIT "elm,action,click" "";
5833 program { name: "text_show";
5834 signal: "elm,state,text,visible";
5839 get_state(PART:"elm.swallow.content", st, 30, vl);
5840 if (!strcmp(st, "icononly"))
5842 set_state(PART:"elm.swallow.content", "visible", 0.0);
5843 set_state(PART:"padding_icon_text", "visible", 0.0);
5845 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5846 set_state(PART:"elm.text", "visible", 0.0);
5848 set_state(PART:"elm.text", "disabled_visible", 0.0);
5851 program { name: "text_hide";
5852 signal: "elm,state,text,hidden";
5857 get_state(PART:"elm.swallow.content", st, 30, vl);
5858 if (!strcmp(st, "visible"))
5860 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5861 set_state(PART:"padding_icon_text", "icononly", 0.0);
5863 set_state(PART:"elm.text", "default", 0.0);
5866 program { name: "icon_show";
5867 signal: "elm,state,icon,visible";
5872 get_state(PART:"elm.text", st, 30, vl);
5873 if (!strcmp(st, "visible"))
5875 set_state(PART:"elm.swallow.content", "visible", 0.0);
5876 set_state(PART:"padding_icon_text", "visible", 0.0);
5880 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5881 set_state(PART:"padding_icon_text", "icononly", 0.0);
5885 program { name: "icon_hide";
5886 signal: "elm,state,icon,hidden";
5888 action: STATE_SET "default" 0.0;
5889 target: "elm.swallow.content";
5890 target: "padding_icon_text";
5892 program { name: "disable";
5893 signal: "elm,state,disabled";
5895 action: STATE_SET "disabled" 0.0;
5896 target: "button_image";
5898 after: "disable_text";
5900 program { name: "disable_text";
5904 get_state(PART:"elm.text", st, 30, vl);
5905 if (!strcmp(st, "visible"))
5906 set_state(PART:"elm.text", "disabled_visible", 0.0);
5908 set_state(PART:"elm.text", "disabled", 0.0);
5909 set_int(button_state, BUTTON_STATE_DISABLED);
5912 program { name: "enable";
5913 signal: "elm,state,enabled";
5915 action: STATE_SET "default" 0.0;
5916 target: "button_image";
5918 after: "enable_text";
5920 program { name: "enable_text";
5924 get_state(PART:"elm.text", st, 30, vl);
5925 if (!strcmp(st, "disabled_visible"))
5926 set_state(PART:"elm.text", "visible", 0.0);
5928 set_state(PART:"elm.text", "default", 0.0);
5929 set_int(button_state, BUTTON_STATE_ENABLED);
5932 program { name: "focused";
5933 //signal: "elm,action,focus";
5935 action: STATE_SET "focused" 0.0;
5936 target: "button_image";
5939 program { name: "unfocused";
5940 //signal: "elm,action,unfocus";
5942 action: STATE_SET "default" 0.0;
5943 target: "button_image";
5944 after: "unfocus_text";
5946 program { name: "unfocus_text";
5947 action: STATE_SET "visible" 0.0;
5953 ///////////////////////////////////////////////////////////////////////////////////////
5954 group { name: "elm/button/base/contact";
5955 alias: "elm/button/base/text_only/contact";
5957 public button_state = BUTTON_STATE_ENABLED;
5960 part { name: "button_image";
5963 description { state: "default" 0.0;
5965 to_x: "padding.left";
5969 to_x: "padding.right";
5972 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5973 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5975 description { state: "clicked" 0.0;
5976 inherit: "default" 0.0;
5977 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5979 description { state: "disabled" 0.0;
5980 inherit: "default" 0.0;
5983 description { state: "focused" 0.0;
5984 inherit: "default" 0.0;
5987 part { name: "padding.left";
5990 description { state: "default" 0.0;
5992 min: BUTTON_CONTACT_PADDING_MIN_INC;
6002 part { name: "padding.right";
6005 description { state: "default" 0.0;
6007 min: BUTTON_CONTACT_PADDING_MIN_INC;
6017 part { name: "elm.text";
6021 description { state: "default" 0.0;
6024 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
6026 font: "SLP:style=Medium";
6027 size: BUTTON_CONTACT_FONT_SIZE_INC;
6031 description { state: "visible" 0.0;
6032 inherit: "default" 0.0;
6036 description { state: "clicked" 0.0;
6037 inherit: "default" 0.0;
6040 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
6042 description { state: "disabled" 0.0;
6043 inherit: "default" 0.0;
6046 description { state: "disabled_visible" 0.0;
6047 inherit: "default" 0.0;
6048 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
6052 description { state: "focused" 0.0;
6053 inherit: "default" 0.0;
6056 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
6059 part { name: "over1";
6061 description { state: "default" 0.0;
6062 rel2.relative: 1.0 0.5;
6065 part { name: "over2";
6067 ignore_flags: ON_HOLD;
6068 description { state: "default" 0.0;
6069 rel1.to: "button_image";
6070 rel2.to: "button_image";
6073 part { name: "over3";
6075 description { state: "default" 0.0;
6076 rel1.to: "button_image";
6077 rel2.to: "button_image";
6081 part { name: "disabler";
6083 description { state: "default" 0.0;
6084 rel1.to: "button_image";
6085 rel2.to: "button_image";
6089 description { state: "disabled" 0.0;
6090 inherit: "default" 0.0;
6096 program { name: "button_click";
6097 signal: "mouse,down,1";
6099 action: SIGNAL_EMIT "elm,action,press" "";
6100 after: "button_click_anim";
6102 program { name: "button_click_anim";
6103 action: STATE_SET "clicked" 0.0;
6104 target: "button_image";
6107 program { name: "button_unpress";
6108 action: SIGNAL_EMIT "elm,action,unpress" "";
6110 program { name: "button_mouseout_clicked";
6111 signal: "mouse,up,1";
6116 get_state(PART:"elm.text", st, 30, vl);
6117 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6119 emit("elm,action,default,text,set", "");
6120 set_state(PART:"elm.text", "visible", 0.0);
6122 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6123 set_state(PART:"button_image", "default", 0.0);
6125 after: button_unpress;
6127 program { name: "button_unclick3";
6128 signal: "mouse,clicked,1";
6130 action: SIGNAL_EMIT "elm,action,click" "";
6132 program { name: "text_show";
6133 signal: "elm,state,text,visible";
6136 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6137 set_state(PART:"elm.text", "visible", 0.0);
6139 set_state(PART:"elm.text", "disabled_visible", 0.0);
6142 program { name: "text_hide";
6143 signal: "elm,state,text,hidden";
6145 action: STATE_SET "default" 0.0;
6148 program { name: "disable";
6149 signal: "elm,state,disabled";
6151 action: STATE_SET "disabled" 0.0;
6152 target: "button_image";
6154 after: "disable_text";
6156 program { name: "disable_text";
6160 get_state(PART:"elm.text", st, 30, vl);
6161 if (!strcmp(st, "visible"))
6162 set_state(PART:"elm.text", "disabled_visible", 0.0);
6164 set_state(PART:"elm.text", "disabled", 0.0);
6165 set_int(button_state, BUTTON_STATE_DISABLED);
6168 program { name: "enable";
6169 signal: "elm,state,enabled";
6171 action: STATE_SET "default" 0.0;
6172 target: "button_image";
6174 after: "enable_text";
6176 program { name: "enable_text";
6180 get_state(PART:"elm.text", st, 30, vl);
6181 if (!strcmp(st, "disabled_visible"))
6182 set_state(PART:"elm.text", "visible", 0.0);
6184 set_state(PART:"elm.text", "default", 0.0);
6185 set_int(button_state, BUTTON_STATE_ENABLED);
6188 program { name: "focused";
6189 //signal: "elm,action,focus";
6191 action: STATE_SET "focused" 0.0;
6192 target: "button_image";
6195 program { name: "unfocused";
6196 //signal: "elm,action,unfocus";
6198 action: STATE_SET "default" 0.0;
6199 target: "button_image";
6200 action: STATE_SET "visible" 0.0;
6206 ///////////////////////////////////////////////////////////////////////////////////////
6207 group { name: "elm/button/base/naviframe/back_btn/default";
6208 alias: "elm/button/base/naviframe/prev_btn/default";
6209 alias: "elm/button/base/naviframe/end_btn/default";
6211 image: "00_winset_Back_btn_normal.png" COMP;
6212 image: "00_winset_Back_btn_press.png" COMP;
6213 image: "00_winset_Back.png" COMP;
6216 public button_state = BUTTON_STATE_ENABLED;
6219 part { name: "button_image";
6221 description { state: "default" 0.0;
6222 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6223 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6225 normal: "00_winset_Back_btn_normal.png";
6226 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
6230 description { state: "clicked" 0.0;
6231 inherit: "default" 0.0;
6232 image.normal: "00_winset_Back_btn_press.png";
6234 description { state: "disabled" 0.0;
6235 inherit: "default" 0.0;
6237 description { state: "focused" 0.0;
6238 inherit: "default" 0.0;
6239 image.normal: "00_winset_Back_btn_press.png";
6242 part { name: "back_button";
6245 description { state: "default" 0.0;
6246 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6247 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6248 rel1.to: "button_image";
6249 rel2.to: "button_image";
6250 image.normal: "00_winset_Back.png";
6252 description { state: "clicked" 0.0;
6253 inherit: "default" 0.0;
6256 part { name: "over2";
6259 ignore_flags: ON_HOLD;
6260 description { state: "default" 0.0;
6264 part { name: "over3";
6267 description { state: "default" 0.0;
6271 part { name: "disabler";
6273 description { state: "default" 0.0;
6277 description { state: "disabled" 0.0;
6278 inherit: "default" 0.0;
6284 program { name: "button_click";
6285 signal: "mouse,down,1";
6287 action: SIGNAL_EMIT "elm,action,press" "";
6288 after: "button_click_anim";
6290 program { name: "button_click_anim";
6291 action: STATE_SET "clicked" 0.0;
6292 target: "button_image";
6294 program { name: "button_unpress";
6295 action: SIGNAL_EMIT "elm,action,unpress" "";
6297 program { name: "button_mouseout_clicked";
6298 signal: "mouse,up,1";
6301 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6302 set_state(PART:"button_image", "default", 0.0);
6304 after: button_unpress;
6306 program { name: "button_unclick3";
6307 signal: "mouse,clicked,1";
6309 action: SIGNAL_EMIT "elm,action,click" "";
6311 program { name: "disable";
6312 signal: "elm,state,disabled";
6314 action: STATE_SET "disabled" 0.0;
6315 target: "button_image";
6317 after: "disable_button";
6319 program { name: "disable_button";
6321 set_int(button_state, BUTTON_STATE_DISABLED);
6324 program { name: "enable";
6325 signal: "elm,state,enabled";
6327 action: STATE_SET "default" 0.0;
6328 target: "button_image";
6330 after: "enable_button";
6332 program { name: "enable_button";
6334 set_int(button_state, BUTTON_STATE_ENABLED);
6340 ///////////////////////////////////////////////////////////////////////////////////////
6341 group { name: "elm/button/base/picker/prev/icon/default";
6343 image: "00_picker_btn_normal.png" COMP;
6344 image: "00_picker_btn_press.png" COMP;
6345 image: "00_picker_arrow_left.png" COMP;
6346 image: "00_picker_arrow_left_press.png" COMP;
6349 public button_state = BUTTON_STATE_ENABLED;
6352 part { name: "button_image";
6354 description { state: "default" 0.0;
6355 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6356 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6358 normal: "00_picker_btn_normal.png";
6359 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6363 description { state: "clicked" 0.0;
6364 inherit: "default" 0.0;
6365 image.normal: "00_picker_btn_press.png";
6367 description { state: "disabled" 0.0;
6368 inherit: "default" 0.0;
6370 description { state: "focused" 0.0;
6371 inherit: "default" 0.0;
6372 image.normal: "00_picker_btn_press.png";
6375 part { name: "padding_left_top";
6379 description { state: "default" 0.0;
6381 rel2.relative: 0.0 0.0;
6382 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6387 part { name: "padding_right_bottom";
6391 description { state: "default" 0.0;
6393 rel1.relative: 1.0 1.0;
6394 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6399 part { name: "left_arrow";
6402 description { state: "default" 0.0;
6403 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6404 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6407 to: "padding_left_top";
6411 to: "padding_right_bottom";
6413 image.normal: "00_picker_arrow_left.png";
6415 description { state: "clicked" 0.0;
6416 inherit: "default" 0.0;
6417 image.normal: "00_picker_arrow_left_press.png";
6420 part { name: "over2";
6423 ignore_flags: ON_HOLD;
6424 description { state: "default" 0.0;
6428 part { name: "over3";
6431 description { state: "default" 0.0;
6435 part { name: "disabler";
6437 description { state: "default" 0.0;
6441 description { state: "disabled" 0.0;
6442 inherit: "default" 0.0;
6448 program { name: "button_click";
6449 signal: "mouse,down,1";
6451 action: SIGNAL_EMIT "elm,action,press" "";
6452 after: "button_click_anim";
6454 program { name: "button_click_anim";
6455 action: STATE_SET "clicked" 0.0;
6456 target: "button_image";
6458 program { name: "button_unpress";
6459 action: SIGNAL_EMIT "elm,action,unpress" "";
6461 program { name: "button_mouseout_clicked";
6462 signal: "mouse,up,1";
6465 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6466 set_state(PART:"button_image", "default", 0.0);
6468 after: button_unpress;
6470 program { name: "button_unclick3";
6471 signal: "mouse,clicked,1";
6473 action: SIGNAL_EMIT "elm,action,click" "";
6475 program { name: "disable";
6476 signal: "elm,state,disabled";
6478 action: STATE_SET "disabled" 0.0;
6479 target: "button_image";
6481 after: "disable_button";
6483 program { name: "disable_button";
6485 set_int(button_state, BUTTON_STATE_DISABLED);
6488 program { name: "enable";
6489 signal: "elm,state,enabled";
6491 action: STATE_SET "default" 0.0;
6492 target: "button_image";
6494 after: "enable_button";
6496 program { name: "enable_button";
6498 set_int(button_state, BUTTON_STATE_ENABLED);
6501 program { name: "focused";
6502 //signal: "elm,action,focus";
6504 action: STATE_SET "focused" 0.0;
6505 target: "button_image";
6507 program { name: "unfocused";
6508 //signal: "elm,action,unfocus";
6510 action: STATE_SET "default" 0.0;
6511 target: "button_image";
6516 ///////////////////////////////////////////////////////////////////////////////////////
6517 group { name: "elm/button/base/picker/next/icon/default";
6519 image: "00_picker_btn_normal.png" COMP;
6520 image: "00_picker_btn_press.png" COMP;
6521 image: "00_picker_arrow_right.png" COMP;
6522 image: "00_picker_arrow_right_press.png" COMP;
6525 public button_state = BUTTON_STATE_ENABLED;
6528 part { name: "button_image";
6530 description { state: "default" 0.0;
6531 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6532 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6534 normal: "00_picker_btn_normal.png";
6535 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6539 description { state: "clicked" 0.0;
6540 inherit: "default" 0.0;
6541 image.normal: "00_picker_btn_press.png";
6543 description { state: "disabled" 0.0;
6544 inherit: "default" 0.0;
6546 description { state: "focused" 0.0;
6547 inherit: "default" 0.0;
6548 image.normal: "00_picker_btn_press.png";
6551 part { name: "padding_left_top";
6555 description { state: "default" 0.0;
6557 rel2.relative: 0.0 0.0;
6558 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6563 part { name: "padding_right_bottom";
6567 description { state: "default" 0.0;
6569 rel1.relative: 1.0 1.0;
6570 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6575 part { name: "right_arrow";
6578 description { state: "default" 0.0;
6579 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6580 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6583 to: "padding_left_top";
6587 to: "padding_right_bottom";
6589 image.normal: "00_picker_arrow_right.png";
6591 description { state: "clicked" 0.0;
6592 inherit: "default" 0.0;
6593 image.normal: "00_picker_arrow_right_press.png";
6596 part { name: "over2";
6599 ignore_flags: ON_HOLD;
6600 description { state: "default" 0.0;
6604 part { name: "over3";
6607 description { state: "default" 0.0;
6611 part { name: "disabler";
6613 description { state: "default" 0.0;
6617 description { state: "disabled" 0.0;
6618 inherit: "default" 0.0;
6624 program { name: "button_click";
6625 signal: "mouse,down,1";
6627 action: SIGNAL_EMIT "elm,action,press" "";
6628 after: "button_click_anim";
6630 program { name: "button_click_anim";
6631 action: STATE_SET "clicked" 0.0;
6632 target: "button_image";
6634 program { name: "button_unpress";
6635 action: SIGNAL_EMIT "elm,action,unpress" "";
6637 program { name: "button_mouseout_clicked";
6638 signal: "mouse,up,1";
6641 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6642 set_state(PART:"button_image", "default", 0.0);
6644 after: button_unpress;
6646 program { name: "button_unclick3";
6647 signal: "mouse,clicked,1";
6649 action: SIGNAL_EMIT "elm,action,click" "";
6651 program { name: "disable";
6652 signal: "elm,state,disabled";
6654 action: STATE_SET "disabled" 0.0;
6655 target: "button_image";
6657 after: "disable_button";
6659 program { name: "disable_button";
6661 set_int(button_state, BUTTON_STATE_DISABLED);
6664 program { name: "enable";
6665 signal: "elm,state,enabled";
6667 action: STATE_SET "default" 0.0;
6668 target: "button_image";
6670 after: "enable_button";
6672 program { name: "enable_button";
6674 set_int(button_state, BUTTON_STATE_ENABLED);
6677 program { name: "focused";
6678 //signal: "elm,action,focus";
6680 action: STATE_SET "focused" 0.0;
6681 target: "button_image";
6683 program { name: "unfocused";
6684 //signal: "elm,action,unfocus";
6686 action: STATE_SET "default" 0.0;
6687 target: "button_image";
6692 ///////////////////////////////////////////////////////////////////////////////////////
6693 group { name: "elm/button/base/naviframe_control/default";
6694 alias: "elm/button/base/naviframe_control/center";
6696 public button_state = BUTTON_STATE_ENABLED;
6699 image: "00_Option_header_bt.png" COMP;
6700 image: "00_Option_header_bt_dim.png" COMP;
6701 image: "00_Option_header_bt_press.png" COMP;
6704 part { name: "button_image";
6706 description { state: "default" 0.0;
6707 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6712 normal: "00_Option_header_bt.png";
6713 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6715 color: 255 255 255 255;
6717 description { state: "disabled" 0.0;
6718 inherit: "default" 0.0;
6719 image.normal: "00_Option_header_bt_dim.png";
6721 description { state: "clicked" 0.0;
6722 inherit: "default" 0.0;
6723 image.normal: "00_Option_header_bt_press.png";
6726 part { name: "padding_left_top";
6730 description { state: "default" 0.0;
6732 rel2.relative: 0.0 0.0;
6733 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6738 part { name: "padding_right_bottom";
6742 description { state: "default" 0.0;
6744 rel1.relative: 1.0 1.0;
6745 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6750 part { name: "icon_rect";
6754 description { state: "default" 0.0;
6759 to: "padding_left_top";
6763 to_x: "padding_left_top";
6764 to_y: "padding_right_bottom";
6769 description { state: "visible" 0.0;
6770 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6774 to: "padding_left_top";
6778 to_x: "padding_left_top";
6779 to_y: "padding_right_bottom";
6784 description { state: "icononly" 0.0;
6785 inherit: "default" 0.0;
6788 part { name: "padding_after_icon";
6792 description { state: "default" 0.0; //when only icon or no icon is there
6798 rel2.to: "icon_rect";
6803 description { state: "visible" 0.0;
6809 rel2.to: "icon_rect";
6811 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6814 description { state: "icononly" 0.0;
6815 inherit: "default" 0.0;
6818 part { name: "padding_before_text";
6822 description { state: "default" 0.0; //when only icon or no icon is there
6827 to_y: "padding_left_top";
6832 to_y: "padding_right_bottom";
6835 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6839 part { name: "elm.swallow.content";
6843 description { state: "default" 0.0;
6848 to: "padding_left_top";
6852 to_x: "padding_left_top";
6853 to_y: "padding_right_bottom";
6857 description { state: "visible" 0.0;
6859 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6860 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6864 to_x: "padding_before_text";
6865 to_y: "padding_left_top";
6869 to_x: "padding_before_text";
6870 to_y: "padding_right_bottom";
6873 aspect_preference: VERTICAL;
6875 description { state: "icononly" 0.0;
6876 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6877 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6880 to: "padding_left_top";
6884 to: "padding_right_bottom";
6887 aspect_preference: VERTICAL;
6890 part { name: "elm.text";
6895 description { state: "default" 0.0;
6899 to_x: "padding_after_icon";
6900 to_y: "padding_left_top";
6904 to: "padding_right_bottom";
6906 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6908 font: "SLP:style=Medium";
6909 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6914 description { state: "visible" 0.0;
6915 inherit: "default" 0.0;
6918 description { state: "clicked" 0.0;
6919 inherit: "default" 0.0;
6923 description { state: "focused" 0.0;
6924 inherit: "default" 0.0;
6927 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6930 part { name: "over2";
6933 ignore_flags: ON_HOLD;
6934 description { state: "default" 0.0;
6938 part { name: "over3";
6941 description { state: "default" 0.0;
6945 part { name: "clipper";
6947 description { state: "default" 0.0;
6948 color: 255 255 255 255;
6950 description { state: "disabled" 0.0;
6951 color: 255 255 255 127;
6954 part { name: "disabler";
6956 description { state: "default" 0.0;
6960 description { state: "disabled" 0.0;
6961 inherit: "default" 0.0;
6967 program { name: "button_click";
6968 signal: "mouse,down,1";
6970 action: SIGNAL_EMIT "elm,action,press" "";
6971 after: "button_click_anim";
6973 program { name: "button_click_anim";
6974 action: STATE_SET "clicked" 0.0;
6975 target: "button_image";
6976 after: "text_clicked";
6978 program { name: "text_clicked";
6982 get_state(PART:"elm.text", st, 30, vl);
6983 if (!strcmp(st, "visible"))
6984 set_state(PART:"elm.text", "clicked", 0.0);
6987 program { name: "button_unpress";
6988 action: SIGNAL_EMIT "elm,action,unpress" "";
6990 program { name: "button_mouseout_clicked";
6991 signal: "mouse,up,1";
6996 get_state(PART:"elm.swallow.content", st, 30, vl);
6997 if (strcmp(st, "icononly"))
6999 emit("elm,action,default,text,set", "");
7000 set_state(PART:"elm.text", "visible", 0.0);
7002 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7003 set_state(PART:"button_image", "default", 0.0);
7005 after: button_unpress;
7007 program { name: "button_unclick3";
7008 signal: "mouse,clicked,1";
7010 action: SIGNAL_EMIT "elm,action,click" "";
7012 program { name: "text_show";
7013 signal: "elm,state,text,visible";
7018 get_state(PART:"elm.swallow.content", st, 30, vl);
7019 if (!strcmp(st, "icononly"))
7021 set_state(PART:"elm.swallow.content", "visible", 0.0);
7022 set_state(PART:"icon_rect", "visible", 0.0);
7023 set_state(PART:"padding_after_icon", "visible", 0.0);
7025 set_state(PART:"elm.text", "visible", 0.0);
7028 program { name: "text_hide";
7029 signal: "elm,state,text,hidden";
7034 get_state(PART:"elm.swallow.content", st, 30, vl);
7035 if (!strcmp(st, "visible"))
7037 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7038 set_state(PART:"icon_rect", "icononly", 0.0);
7039 set_state(PART:"padding_after_icon", "icononly", 0.0);
7041 set_state(PART:"elm.text", "default", 0.0);
7044 program { name: "icon_show";
7045 signal: "elm,state,icon,visible";
7050 get_state(PART:"elm.text", st, 30, vl);
7051 if (!strcmp(st, "visible"))
7053 set_state(PART:"elm.swallow.content", "visible", 0.0);
7054 set_state(PART:"icon_rect", "visible", 0.0);
7055 set_state(PART:"padding_after_icon", "visible", 0.0);
7059 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7060 set_state(PART:"icon_rect", "icononly", 0.0);
7061 set_state(PART:"padding_after_icon", "icononly", 0.0);
7065 program { name: "icon_hide";
7066 signal: "elm,state,icon,hidden";
7068 action: STATE_SET "default" 0.0;
7069 target: "elm.swallow.content";
7070 target: "icon_rect";
7071 target: "padding_after_icon";
7073 program { name: "disable";
7074 signal: "elm,state,disabled";
7076 action: STATE_SET "disabled" 0.0;
7077 target: "button_image";
7080 after: "disable_text";
7082 program { name: "disable_text";
7086 set_int(button_state, BUTTON_STATE_DISABLED);
7087 get_state(PART:"elm.text", st, 30, vl);
7088 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7089 set_state(PART:"elm.text", "visible", 0.0);
7092 program { name: "enable";
7093 signal: "elm,state,enabled";
7095 action: STATE_SET "default" 0.0;
7096 target: "button_image";
7099 after: "enable_text";
7101 program { name: "enable_text";
7105 set_int(button_state, BUTTON_STATE_ENABLED);
7106 get_state(PART:"elm.text", st, 30, vl);
7107 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7108 set_state(PART:"elm.text", "visible", 0.0);
7111 program { name: "focused";
7112 action: STATE_SET "focused" 0.0;
7113 target: "button_image";
7116 program { name: "unfocused";
7117 action: STATE_SET "default" 0.0;
7118 target: "button_image";
7119 after: "unfocus_text";
7121 program { name: "unfocus_text";
7122 action: STATE_SET "visible" 0.0;
7128 ///////////////////////////////////////////////////////////////////////////////////////
7129 group { name: "elm/button/base/naviframe_control/multiline";
7131 public button_state = BUTTON_STATE_ENABLED;
7134 image: "00_Option_header_bt.png" COMP;
7135 image: "00_Option_header_bt_dim.png" COMP;
7136 image: "00_Option_header_bt_press.png" COMP;
7139 style { name: "btn_multiline_naviframe_controlbar_style";
7140 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
7147 part { name: "button_image";
7149 description { state: "default" 0.0;
7150 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
7154 normal: "00_Option_header_bt.png";
7155 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
7157 color: 255 255 255 255;
7159 description { state: "disabled" 0.0;
7160 inherit: "default" 0.0;
7161 image.normal: "00_Option_header_bt_dim.png";
7163 description { state: "clicked" 0.0;
7164 inherit: "default" 0.0;
7165 image.normal: "00_Option_header_bt_press.png";
7168 part { name: "padding_left_top";
7172 description { state: "default" 0.0;
7174 rel2.relative: 0.0 0.0;
7175 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7180 part { name: "padding_right_bottom";
7184 description { state: "default" 0.0;
7186 rel1.relative: 1.0 1.0;
7187 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7192 part { name: "icon_rect";
7196 description { state: "default" 0.0;
7202 to_x: "elm.swallow.content";
7203 to_y: "padding_left_top";
7207 to_x: "elm.swallow.content";
7208 to_y: "padding_right_bottom";
7213 part { name: "padding_icon_text";
7217 description { state: "default" 0.0; //when only icon or no icon is there
7231 description { state: "visible" 0.0;
7232 inherit: "default" 0.0;
7233 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
7243 description { state: "icononly" 0.0;
7244 inherit: "default" 0.0;
7247 part { name: "elm.swallow.content";
7251 description { state: "default" 0.0;
7256 to: "padding_left_top";
7260 to_x: "padding_left_top";
7261 to_y: "padding_right_bottom";
7265 description { state: "visible" 0.0;
7267 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7268 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7272 to: "padding_left_top";
7276 to_x: "padding_left_top";
7277 to_y: "padding_right_bottom";
7280 description { state: "icononly" 0.0;
7281 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7282 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7285 to: "padding_left_top";
7289 to: "padding_right_bottom";
7293 part { name: "elm.text";
7298 description { state: "default" 0.0;
7302 to_x: "padding_icon_text";
7303 to_y: "padding_left_top";
7307 to: "padding_right_bottom";
7309 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7311 style: "btn_multiline_naviframe_controlbar_style";
7316 description { state: "visible" 0.0;
7317 inherit: "default" 0.0;
7321 description { state: "clicked" 0.0;
7322 inherit: "default" 0.0;
7326 description { state: "focused" 0.0;
7327 inherit: "default" 0.0;
7330 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7333 part { name: "over2";
7336 ignore_flags: ON_HOLD;
7337 description { state: "default" 0.0;
7341 part { name: "over3";
7344 description { state: "default" 0.0;
7348 part { name: "clipper";
7350 description { state: "default" 0.0;
7351 color: 255 255 255 255;
7353 description { state: "disabled" 0.0;
7354 color: 255 255 255 127;
7357 part { name: "disabler";
7359 description { state: "default" 0.0;
7363 description { state: "disabled" 0.0;
7364 inherit: "default" 0.0;
7370 program { name: "button_click";
7371 signal: "mouse,down,1";
7373 action: SIGNAL_EMIT "elm,action,press" "";
7374 after: "button_click_anim";
7376 program { name: "button_click_anim";
7377 action: STATE_SET "clicked" 0.0;
7378 target: "button_image";
7379 after: "text_clicked";
7381 program { name: "text_clicked";
7385 get_state(PART:"elm.text", st, 30, vl);
7386 if (!strcmp(st, "visible"))
7387 set_state(PART:"elm.text", "clicked", 0.0);
7390 program { name: "button_unpress";
7391 action: SIGNAL_EMIT "elm,action,unpress" "";
7393 program { name: "button_mouseout_clicked";
7394 signal: "mouse,up,1";
7399 get_state(PART:"elm.swallow.content", st, 30, vl);
7400 if (strcmp(st, "icononly"))
7402 emit("elm,action,default,text,set", "");
7403 set_state(PART:"elm.text", "visible", 0.0);
7405 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7406 set_state(PART:"button_image", "default", 0.0);
7408 after: button_unpress;
7410 program { name: "button_unclick3";
7411 signal: "mouse,clicked,1";
7413 action: SIGNAL_EMIT "elm,action,click" "";
7415 program { name: "text_show";
7416 signal: "elm,state,text,visible";
7421 get_state(PART:"elm.swallow.content", st, 30, vl);
7422 if (!strcmp(st, "icononly"))
7424 set_state(PART:"elm.swallow.content", "visible", 0.0);
7425 set_state(PART:"padding_icon_text", "visible", 0.0);
7427 set_state(PART:"elm.text", "visible", 0.0);
7430 program { name: "text_hide";
7431 signal: "elm,state,text,hidden";
7436 get_state(PART:"elm.swallow.content", st, 30, vl);
7437 if (!strcmp(st, "visible"))
7439 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7440 set_state(PART:"padding_icon_text", "icononly", 0.0);
7442 set_state(PART:"elm.text", "default", 0.0);
7445 program { name: "icon_show";
7446 signal: "elm,state,icon,visible";
7451 get_state(PART:"elm.text", st, 30, vl);
7452 if (!strcmp(st, "visible"))
7454 set_state(PART:"elm.swallow.content", "visible", 0.0);
7455 set_state(PART:"padding_icon_text", "visible", 0.0);
7459 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7460 set_state(PART:"padding_icon_text", "icononly", 0.0);
7464 program { name: "icon_hide";
7465 signal: "elm,state,icon,hidden";
7467 action: STATE_SET "default" 0.0;
7468 target: "elm.swallow.content";
7469 target: "padding_icon_text";
7471 program { name: "disable";
7472 signal: "elm,state,disabled";
7474 action: STATE_SET "disabled" 0.0;
7475 target: "button_image";
7478 after: "disable_text";
7480 program { name: "disable_text";
7484 set_int(button_state, BUTTON_STATE_DISABLED);
7485 get_state(PART:"elm.text", st, 30, vl);
7486 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7487 set_state(PART:"elm.text", "visible", 0.0);
7490 program { name: "enable";
7491 signal: "elm,state,enabled";
7493 action: STATE_SET "default" 0.0;
7494 target: "button_image";
7497 after: "enable_text";
7499 program { name: "enable_text";
7503 set_int(button_state, BUTTON_STATE_ENABLED);
7504 get_state(PART:"elm.text", st, 30, vl);
7505 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7506 set_state(PART:"elm.text", "visible", 0.0);
7509 program { name: "focused";
7510 action: STATE_SET "focused" 0.0;
7511 target: "button_image";
7514 program { name: "unfocused";
7515 action: STATE_SET "default" 0.0;
7516 target: "button_image";
7517 after: "unfocus_text";
7519 program { name: "unfocus_text";
7520 action: STATE_SET "visible" 0.0;
7526 //////////////////////////////////////////////////////////////
7527 group { name: "elm/button/base/naviframe/title/default";
7529 image: "00_Title_btn.png" COMP;
7530 image: "00_Title_btn_press.png" COMP;
7533 public button_state = BUTTON_STATE_ENABLED;
7536 part { name: "button_image";
7538 description { state: "default" 0.0;
7539 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7540 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7542 normal: "00_Title_btn.png";
7543 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7547 description { state: "clicked" 0.0;
7548 inherit: "default" 0.0;
7549 image.normal: "00_Title_btn_press.png";
7551 description { state: "disabled" 0.0;
7552 inherit: "default" 0.0;
7555 description { state: "focused" 0.0;
7556 inherit: "default" 0.0;
7557 image.normal: "00_Title_btn_press.png";
7560 part { name: "padding_left_top";
7564 description { state: "default" 0.0;
7566 rel2.relative: 0.0 0.0;
7567 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7576 description { state: "default" 0.0;
7577 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7580 description { state: "visible" 0.0;
7581 inherit: "default" 0.0;
7582 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7584 description { state: "icononly" 0.0;
7585 inherit: "default" 0.0;
7586 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7589 part { name: "padding_right_bottom";
7593 description { state: "default" 0.0;
7595 rel1.relative: 1.0 1.0;
7596 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7601 part { name: "icon_rect";
7605 description { state: "default" 0.0;
7611 to: "padding_left_top";
7615 to_x: "padding_left_top";
7616 to_y: "padding_right_bottom";
7620 description { state: "visible" 0.0;
7622 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7623 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7627 to: "padding_left_top";
7631 to_x: "padding_left_top";
7632 to_y: "padding_right_bottom";
7636 description { state: "icononly" 0.0;
7637 inherit: "default" 0.0;
7640 part { name: "padding_after_icon";
7644 description { state: "default" 0.0; //when only icon or no icon is there
7650 rel2.to: "icon_rect";
7655 description { state: "visible" 0.0;
7662 rel2.to: "icon_rect";
7664 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7666 description { state: "icononly" 0.0;
7667 inherit: "default" 0.0;
7670 part { name: "padding_before_text";
7674 description { state: "default" 0.0; //when only icon or no icon is there
7679 to_y: "padding_left_top";
7684 to_y: "padding_right_bottom";
7687 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7691 part { name: "elm.swallow.content";
7695 description { state: "default" 0.0;
7700 to: "padding_left_top";
7704 to_x: "padding_left_top";
7705 to_y: "padding_right_bottom";
7709 description { state: "visible" 0.0;
7711 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7712 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7716 to_x: "padding_before_text";
7717 to_y: "padding_left_top";
7721 to_x: "padding_before_text";
7722 to_y: "padding_right_bottom";
7725 description { state: "icononly" 0.0;
7726 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7727 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7730 part { name: "elm.text";
7735 description { state: "default" 0.0;
7739 to_x: "padding_after_icon";
7740 to_y: "padding_left_top";
7744 to: "padding_right_bottom";
7746 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7748 font: "SLP:style=Medium";
7749 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7754 description { state: "visible" 0.0;
7755 inherit: "default" 0.0;
7758 description { state: "clicked" 0.0;
7759 inherit: "default" 0.0;
7761 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7763 description { state: "disabled" 0.0;
7764 inherit: "default" 0.0;
7767 description { state: "disabled_visible" 0.0;
7768 inherit: "default" 0.0;
7769 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7772 description { state: "focused" 0.0;
7773 inherit: "default" 0.0;
7775 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7778 part { name: "over2";
7781 ignore_flags: ON_HOLD;
7782 description { state: "default" 0.0;
7786 part { name: "over3";
7789 description { state: "default" 0.0;
7793 part { name: "clipper";
7795 description { state: "default" 0.0;
7796 color: 255 255 255 255;
7799 part { name: "disabler";
7801 description { state: "default" 0.0;
7805 description { state: "disabled" 0.0;
7806 inherit: "default" 0.0;
7812 program { name: "button_click";
7813 signal: "mouse,down,1";
7815 action: SIGNAL_EMIT "elm,action,press" "";
7816 after: "button_click_anim";
7818 program { name: "button_click_anim";
7819 action: STATE_SET "clicked" 0.0;
7820 target: "button_image";
7821 after: "text_clicked";
7823 program { name: "text_clicked";
7827 get_state(PART:"elm.text", st, 30, vl);
7828 if (!strcmp(st, "visible"))
7829 set_state(PART:"elm.text", "clicked", 0.0);
7832 program { name: "button_unpress";
7833 action: SIGNAL_EMIT "elm,action,unpress" "";
7835 program { name: "button_mouseout_clicked";
7836 signal: "mouse,up,1";
7841 get_state(PART:"elm.swallow.content", st, 30, vl);
7842 if (strcmp(st, "icononly"))
7844 emit("elm,action,default,text,set", "");
7845 set_state(PART:"elm.text", "visible", 0.0);
7847 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7848 set_state(PART:"button_image", "default", 0.0);
7850 after: button_unpress;
7852 program { name: "button_unclick3";
7853 signal: "mouse,clicked,1";
7855 action: SIGNAL_EMIT "elm,action,click" "";
7857 program { name: "text_show";
7858 signal: "elm,state,text,visible";
7863 get_state(PART:"elm.swallow.content", st, 30, vl);
7864 if (!strcmp(st, "icononly"))
7866 set_state(PART:"elm.swallow.content", "visible", 0.0);
7867 set_state(PART:"icon_rect", "visible", 0.0);
7868 set_state(PART:"padding_after_icon", "visible", 0.0);
7869 set_state(PART:"bg", "visible", 0.0);
7871 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7872 set_state(PART:"elm.text", "visible", 0.0);
7874 set_state(PART:"elm.text", "disabled_visible", 0.0);
7877 program { name: "text_hide";
7878 signal: "elm,state,text,hidden";
7883 get_state(PART:"elm.swallow.content", st, 30, vl);
7884 if (!strcmp(st, "visible"))
7886 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7887 set_state(PART:"icon_rect", "icononly", 0.0);
7888 set_state(PART:"padding_after_icon", "icononly", 0.0);
7889 set_state(PART:"bg", "icononly", 0.0);
7891 set_state(PART:"elm.text", "default", 0.0);
7894 program { name: "icon_show";
7895 signal: "elm,state,icon,visible";
7900 get_state(PART:"elm.text", st, 30, vl);
7901 if (!strcmp(st, "visible"))
7903 set_state(PART:"elm.swallow.content", "visible", 0.0);
7904 set_state(PART:"icon_rect", "visible", 0.0);
7905 set_state(PART:"padding_after_icon", "visible", 0.0);
7906 set_state(PART:"bg", "visible", 0.0);
7910 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7911 set_state(PART:"icon_rect", "icononly", 0.0);
7912 set_state(PART:"padding_after_icon", "icononly", 0.0);
7913 set_state(PART:"bg", "icononly", 0.0);
7917 program { name: "icon_hide";
7918 signal: "elm,state,icon,hidden";
7920 action: STATE_SET "default" 0.0;
7921 target: "elm.swallow.content";
7922 target: "padding_after_icon";
7923 target: "icon_rect";
7926 program { name: "disable";
7927 signal: "elm,state,disabled";
7929 action: STATE_SET "disabled" 0.0;
7930 target: "button_image";
7932 after: "disable_text";
7934 program { name: "disable_text";
7938 get_state(PART:"elm.text", st, 30, vl);
7939 if (!strcmp(st, "visible"))
7940 set_state(PART:"elm.text", "disabled_visible", 0.0);
7942 set_state(PART:"elm.text", "disabled", 0.0);
7943 set_int(button_state, BUTTON_STATE_DISABLED);
7946 program { name: "enable";
7947 signal: "elm,state,enabled";
7949 action: STATE_SET "default" 0.0;
7950 target: "button_image";
7952 after: "enable_text";
7954 program { name: "enable_text";
7958 get_state(PART:"elm.text", st, 30, vl);
7959 if (!strcmp(st, "disabled_visible"))
7960 set_state(PART:"elm.text", "visible", 0.0);
7962 set_state(PART:"elm.text", "default", 0.0);
7963 set_int(button_state, BUTTON_STATE_ENABLED);
7966 program { name: "focused";
7967 //signal: "elm,action,focus";
7969 action: STATE_SET "focused" 0.0;
7970 target: "button_image";
7973 program { name: "unfocused";
7974 //signal: "elm,action,unfocus";
7976 action: STATE_SET "default" 0.0;
7977 target: "button_image";
7978 after: "unfocus_text";
7980 program { name: "unfocus_text";
7981 action: STATE_SET "visible" 0.0;
7987 /////////////////////////////////////////////////////////////////////////////////////////
7988 group { name: "elm/button/base/naviframe/more/default";
7990 image: "00_Title_btn.png" COMP;
7991 image: "00_Title_btn_press.png" COMP;
7992 image: "00_winset_more.png" COMP;
7995 public button_state = BUTTON_STATE_ENABLED;
7998 part { name: "button_image";
8000 description { state: "default" 0.0;
8001 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8002 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
8004 normal: "00_Title_btn.png";
8005 border: BUTTON_NAVIFRAME_MORE_BG_BORDER_INC;
8009 description { state: "clicked" 0.0;
8010 inherit: "default" 0.0;
8011 image.normal: "00_Title_btn_press.png";
8013 description { state: "disabled" 0.0;
8014 inherit: "default" 0.0;
8016 description { state: "focused" 0.0;
8017 inherit: "default" 0.0;
8018 image.normal: "00_Title_btn_press.png";
8021 part { name: "more_image";
8024 description { state: "default" 0.0;
8025 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8026 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
8027 rel1.to: "button_image";
8028 rel2.to: "button_image";
8029 image.normal: "00_winset_more.png";
8031 description { state: "clicked" 0.0;
8032 inherit: "default" 0.0;
8035 part { name: "over2";
8038 ignore_flags: ON_HOLD;
8039 description { state: "default" 0.0;
8043 part { name: "over3";
8046 description { state: "default" 0.0;
8050 part { name: "disabler";
8052 description { state: "default" 0.0;
8056 description { state: "disabled" 0.0;
8057 inherit: "default" 0.0;
8063 program { name: "button_click";
8064 signal: "mouse,down,1";
8066 action: SIGNAL_EMIT "elm,action,press" "";
8067 after: "button_click_anim";
8069 program { name: "button_click_anim";
8070 action: STATE_SET "clicked" 0.0;
8071 target: "button_image";
8073 program { name: "button_unpress";
8074 action: SIGNAL_EMIT "elm,action,unpress" "";
8076 program { name: "button_mouseout_clicked";
8077 signal: "mouse,up,1";
8080 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8081 set_state(PART:"button_image", "default", 0.0);
8083 after: button_unpress;
8085 program { name: "button_unclick3";
8086 signal: "mouse,clicked,1";
8088 action: SIGNAL_EMIT "elm,action,click" "";
8090 program { name: "disable";
8091 signal: "elm,state,disabled";
8093 action: STATE_SET "disabled" 0.0;
8094 target: "button_image";
8096 after: "disable_button";
8098 program { name: "disable_button";
8100 set_int(button_state, BUTTON_STATE_DISABLED);
8103 program { name: "enable";
8104 signal: "elm,state,enabled";
8106 action: STATE_SET "default" 0.0;
8107 target: "button_image";
8109 after: "enable_button";
8111 program { name: "enable_button";
8113 set_int(button_state, BUTTON_STATE_ENABLED);
8119 ///////////////////////////////////////////////////////////////////////////////////////
8120 group { name: "elm/button/base/controlbar/vertical";
8122 public button_state = BUTTON_STATE_ENABLED;
8125 style { name: "controlbar_style";
8126 base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1";
8129 tag: "hilight" "+ font=SLP:style=Bold";
8130 tag: "b" "+ font=SLP:style=Bold";
8135 part { name: "button_image";
8138 description { state: "default" 0.0;
8146 part { name: "padding_left_top";
8150 description { state: "default" 0.0;
8152 rel2.relative: 0.0 0.0;
8158 part { name: "padding_right_bottom";
8162 description { state: "default" 0.0;
8164 rel1.relative: 1.0 1.0;
8175 description { state: "default" 0.0;
8180 to: "padding_left_top";
8184 to_x: "padding_right_bottom";
8185 to_y: "padding_left_top";
8190 description { state: "visible" 0.0;
8191 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8195 to: "padding_left_top";
8199 to_x: "padding_right_bottom";
8200 to_y: "padding_left_top";
8205 description { state: "icononly" 0.0;
8206 inherit: "default" 0.0;
8209 part { name: "padding_after_icon";
8213 description { state: "default" 0.0; //when only icon or no icon is there
8219 rel2.to: "icon_rect";
8224 description { state: "visible" 0.0;
8230 rel2.to: "icon_rect";
8235 description { state: "icononly" 0.0;
8236 inherit: "default" 0.0;
8239 part { name: "padding_before_text";
8243 description { state: "default" 0.0; //when only icon or no icon is there
8247 to_x: "padding_left_top";
8252 to_x: "padding_right_bottom";
8260 part { name: "elm.swallow.content";
8263 clip_to: "disabler";
8264 description { state: "default" 0.0;
8269 to: "padding_left_top";
8273 to_x: "padding_right_bottom";
8274 to_y: "padding_left_top";
8278 description { state: "visible" 0.0;
8280 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8281 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8284 to: "padding_left_top";
8288 to_x: "padding_right_bottom";
8289 to_y: "padding_before_text";
8292 aspect_preference: HORIZONTAL;
8294 description { state: "icononly" 0.0;
8295 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8296 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8299 to: "padding_left_top";
8303 to: "padding_right_bottom";
8306 aspect_preference: HORIZONTAL;
8309 part { name: "elm.text";
8313 clip_to: "disabler";
8314 description { state: "default" 0.0;
8318 to_x: "padding_left_top";
8319 to_y: "padding_after_icon";
8323 to: "padding_right_bottom";
8325 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8328 style: "controlbar_style";
8333 description { state: "visible" 0.0;
8334 inherit: "default" 0.0;
8337 description { state: "clicked" 0.0;
8338 inherit: "default" 0.0;
8340 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8342 description { state: "focused" 0.0;
8343 inherit: "default" 0.0;
8345 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8348 part { name: "over2";
8351 ignore_flags: ON_HOLD;
8352 description { state: "default" 0.0;
8355 description { state: "disabled" 0.0;
8356 inherit: "default" 0.0;
8360 part { name: "over3";
8363 description { state: "default" 0.0;
8367 part { name: "disabler";
8369 description { state: "default" 0.0;
8370 color: 255 255 255 255;
8373 description { state: "disabled" 0.0;
8374 inherit: "default" 0.0;
8375 color: 255 255 255 127;
8381 program { name: "button_click";
8382 signal: "mouse,down,1";
8384 action: SIGNAL_EMIT "elm,action,press" "";
8385 after: "button_click_anim";
8387 program { name: "button_click_anim";
8388 action: STATE_SET "clicked" 0.0;
8389 target: "button_image";
8390 after: "text_clicked";
8392 program { name: "text_clicked";
8396 get_state(PART:"elm.text", st, 30, vl);
8397 if (!strcmp(st, "visible"))
8398 set_state(PART:"elm.text", "clicked", 0.0);
8401 program { name: "button_unpress";
8402 action: SIGNAL_EMIT "elm,action,unpress" "";
8404 program { name: "button_mouseout_clicked";
8405 signal: "mouse,up,1";
8410 get_state(PART:"elm.swallow.content", st, 30, vl);
8411 if (strcmp(st, "icononly"))
8413 emit("elm,action,default,text,set", "");
8414 set_state(PART:"elm.text", "visible", 0.0);
8416 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8417 set_state(PART:"button_image", "default", 0.0);
8419 after: button_unpress;
8421 program { name: "button_unclick3";
8422 signal: "mouse,clicked,1";
8424 action: SIGNAL_EMIT "elm,action,click" "";
8426 program { name: "text_show";
8427 signal: "elm,state,text,visible";
8432 get_state(PART:"elm.swallow.content", st, 30, vl);
8433 if (!strcmp(st, "icononly"))
8435 set_state(PART:"elm.swallow.content", "visible", 0.0);
8436 set_state(PART:"icon_rect", "visible", 0.0);
8437 set_state(PART:"padding_after_icon", "visible", 0.0);
8439 set_state(PART:"elm.text", "visible", 0.0);
8442 program { name: "text_hide";
8443 signal: "elm,state,text,hidden";
8448 get_state(PART:"elm.swallow.content", st, 30, vl);
8449 if (!strcmp(st, "visible"))
8451 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8452 set_state(PART:"icon_rect", "icononly", 0.0);
8453 set_state(PART:"padding_after_icon", "icononly", 0.0);
8455 set_state(PART:"elm.text", "default", 0.0);
8458 program { name: "icon_show";
8459 signal: "elm,state,icon,visible";
8464 get_state(PART:"elm.text", st, 30, vl);
8465 if (!strcmp(st, "visible"))
8467 set_state(PART:"elm.swallow.content", "visible", 0.0);
8468 set_state(PART:"icon_rect", "visible", 0.0);
8469 set_state(PART:"padding_after_icon", "visible", 0.0);
8473 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8474 set_state(PART:"icon_rect", "icononly", 0.0);
8475 set_state(PART:"padding_after_icon", "icononly", 0.0);
8479 program { name: "icon_hide";
8480 signal: "elm,state,icon,hidden";
8482 action: STATE_SET "default" 0.0;
8483 target: "elm.swallow.content";
8484 target: "icon_rect";
8485 target: "padding_after_icon";
8487 program { name: "disable";
8488 signal: "elm,state,disabled";
8490 action: STATE_SET "disabled" 0.0;
8493 after: "disable_text";
8495 program { name: "disable_text";
8499 set_int(button_state, BUTTON_STATE_DISABLED);
8500 get_state(PART:"elm.text", st, 30, vl);
8501 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8502 set_state(PART:"elm.text", "visible", 0.0);
8505 program { name: "enable";
8506 signal: "elm,state,enabled";
8508 action: STATE_SET "default" 0.0;
8511 after: "enable_text";
8513 program { name: "enable_text";
8517 set_int(button_state, BUTTON_STATE_ENABLED);
8518 get_state(PART:"elm.text", st, 30, vl);
8519 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8520 set_state(PART:"elm.text", "visible", 0.0);
8523 program { name: "focused";
8524 action: STATE_SET "focused" 0.0;
8525 target: "button_image";
8528 program { name: "unfocused";
8529 action: STATE_SET "default" 0.0;
8530 target: "button_image";
8531 after: "unfocus_text";
8533 program { name: "unfocus_text";
8534 action: STATE_SET "visible" 0.0;
8540 ///////////////////////////////////////////////////////////////////////////////////////
8541 group { name: "elm/button/base/controlbar/horizontal_center";
8543 public button_state = BUTTON_STATE_ENABLED;
8546 part { name: "button_image";
8549 description { state: "default" 0.0;
8556 description { state: "clicked" 0.0;
8557 inherit: "default" 0.0;
8561 part { name: "padding_left_top";
8565 description { state: "default" 0.0;
8567 rel2.relative: 0.0 0.0;
8573 part { name: "padding_right_bottom";
8577 description { state: "default" 0.0;
8579 rel1.relative: 1.0 1.0;
8585 part { name: "icon_rect";
8589 description { state: "default" 0.0;
8594 to: "padding_left_top";
8598 to_x: "padding_left_top";
8599 to_y: "padding_right_bottom";
8604 description { state: "visible" 0.0;
8605 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8609 to: "padding_left_top";
8613 to_x: "padding_left_top";
8614 to_y: "padding_right_bottom";
8619 description { state: "icononly" 0.0;
8620 inherit: "default" 0.0;
8621 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8624 part { name: "padding_after_icon";
8628 description { state: "default" 0.0; //when only icon or no icon is there
8634 rel2.to: "icon_rect";
8639 description { state: "visible" 0.0;
8645 rel2.to: "icon_rect";
8650 description { state: "icononly" 0.0;
8651 inherit: "default" 0.0;
8654 part { name: "padding_before_text";
8658 description { state: "default" 0.0; //when only icon or no icon is there
8663 to_y: "padding_left_top";
8668 to_y: "padding_right_bottom";
8675 part { name: "elm.swallow.content";
8678 clip_to: "disabler";
8679 description { state: "default" 0.0;
8684 to: "padding_left_top";
8688 to_x: "padding_left_top";
8689 to_y: "padding_right_bottom";
8693 description { state: "visible" 0.0;
8695 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8696 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8700 to_x: "padding_before_text";
8701 to_y: "padding_left_top";
8705 to_x: "padding_before_text";
8706 to_y: "padding_right_bottom";
8709 aspect_preference: VERTICAL;
8711 description { state: "icononly" 0.0;
8712 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8713 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8716 to: "padding_left_top";
8720 to: "padding_right_bottom";
8723 aspect_preference: VERTICAL;
8726 part { name: "elm.text";
8730 clip_to: "disabler";
8731 description { state: "default" 0.0;
8735 to_x: "padding_after_icon";
8736 to_y: "padding_left_top";
8740 to: "padding_right_bottom";
8742 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8744 font: "SLP:style=Medium";
8745 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
8750 description { state: "visible" 0.0;
8751 inherit: "default" 0.0;
8754 description { state: "clicked" 0.0;
8755 inherit: "default" 0.0;
8759 description { state: "focused" 0.0;
8760 inherit: "default" 0.0;
8763 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8766 part { name: "over2";
8769 ignore_flags: ON_HOLD;
8770 description { state: "default" 0.0;
8773 description { state: "disabled" 0.0;
8774 inherit: "default" 0.0;
8778 part { name: "over3";
8781 description { state: "default" 0.0;
8785 part { name: "disabler";
8787 description { state: "default" 0.0;
8788 color: 255 255 255 255;
8790 description { state: "disabled" 0.0;
8791 color: 255 255 255 127;
8796 program { name: "button_click";
8797 signal: "mouse,down,1";
8799 action: SIGNAL_EMIT "elm,action,press" "";
8800 after: "button_click_anim";
8802 program { name: "button_click_anim";
8803 action: STATE_SET "clicked" 0.0;
8804 target: "button_image";
8805 after: "text_clicked";
8807 program { name: "text_clicked";
8811 get_state(PART:"elm.text", st, 30, vl);
8812 if (!strcmp(st, "visible"))
8813 set_state(PART:"elm.text", "clicked", 0.0);
8816 program { name: "button_unpress";
8817 action: SIGNAL_EMIT "elm,action,unpress" "";
8819 program { name: "button_mouseout_clicked";
8820 signal: "mouse,up,1";
8825 get_state(PART:"elm.swallow.content", st, 30, vl);
8826 if (strcmp(st, "icononly"))
8828 emit("elm,action,default,text,set", "");
8829 set_state(PART:"elm.text", "visible", 0.0);
8831 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8832 set_state(PART:"button_image", "default", 0.0);
8834 after: button_unpress;
8836 program { name: "button_unclick3";
8837 signal: "mouse,clicked,1";
8839 action: SIGNAL_EMIT "elm,action,click" "";
8841 program { name: "text_show";
8842 signal: "elm,state,text,visible";
8847 get_state(PART:"elm.swallow.content", st, 30, vl);
8848 if (!strcmp(st, "icononly"))
8850 set_state(PART:"elm.swallow.content", "visible", 0.0);
8851 set_state(PART:"icon_rect", "visible", 0.0);
8852 set_state(PART:"padding_after_icon", "visible", 0.0);
8854 set_state(PART:"elm.text", "visible", 0.0);
8857 program { name: "text_hide";
8858 signal: "elm,state,text,hidden";
8863 get_state(PART:"elm.swallow.content", st, 30, vl);
8864 if (!strcmp(st, "visible"))
8866 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8867 set_state(PART:"icon_rect", "icononly", 0.0);
8868 set_state(PART:"padding_after_icon", "icononly", 0.0);
8870 set_state(PART:"elm.text", "default", 0.0);
8873 program { name: "icon_show";
8874 signal: "elm,state,icon,visible";
8879 get_state(PART:"elm.text", st, 30, vl);
8880 if (!strcmp(st, "visible"))
8882 set_state(PART:"elm.swallow.content", "visible", 0.0);
8883 set_state(PART:"icon_rect", "visible", 0.0);
8884 set_state(PART:"padding_after_icon", "visible", 0.0);
8888 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8889 set_state(PART:"icon_rect", "icononly", 0.0);
8890 set_state(PART:"padding_after_icon", "icononly", 0.0);
8894 program { name: "icon_hide";
8895 signal: "elm,state,icon,hidden";
8897 action: STATE_SET "default" 0.0;
8898 target: "elm.swallow.content";
8899 target: "icon_rect";
8900 target: "padding_after_icon";
8902 program { name: "disable";
8903 signal: "elm,state,disabled";
8905 action: STATE_SET "disabled" 0.0;
8908 after: "disable_text";
8910 program { name: "disable_text";
8914 set_int(button_state, BUTTON_STATE_DISABLED);
8915 get_state(PART:"elm.text", st, 30, vl);
8916 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8917 set_state(PART:"elm.text", "visible", 0.0);
8920 program { name: "enable";
8921 signal: "elm,state,enabled";
8923 action: STATE_SET "default" 0.0;
8926 after: "enable_text";
8928 program { name: "enable_text";
8932 set_int(button_state, BUTTON_STATE_ENABLED);
8933 get_state(PART:"elm.text", st, 30, vl);
8934 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8935 set_state(PART:"elm.text", "visible", 0.0);
8938 program { name: "focused";
8939 action: STATE_SET "focused" 0.0;
8940 target: "button_image";
8943 program { name: "unfocused";
8944 action: STATE_SET "default" 0.0;
8945 target: "button_image";
8946 after: "unfocus_text";
8948 program { name: "unfocus_text";
8949 action: STATE_SET "visible" 0.0;
8955 ///////////////////////////////////////////////////////////////////////////////////////
8956 group { name: "elm/button/base/controlbar/horizontal_left";
8958 public button_state = BUTTON_STATE_ENABLED;
8961 part { name: "button_image";
8964 description { state: "default" 0.0;
8971 description { state: "clicked" 0.0;
8972 inherit: "default" 0.0;
8976 part { name: "padding_left_top";
8980 description { state: "default" 0.0;
8982 rel2.relative: 0.0 0.0;
8988 part { name: "padding_right_bottom";
8992 description { state: "default" 0.0;
8994 rel1.relative: 1.0 1.0;
9000 part { name: "icon_rect";
9004 description { state: "default" 0.0;
9009 to: "padding_left_top";
9013 to_x: "padding_left_top";
9014 to_y: "padding_right_bottom";
9019 description { state: "visible" 0.0;
9020 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9024 to: "padding_left_top";
9028 to_x: "padding_left_top";
9029 to_y: "padding_right_bottom";
9034 description { state: "icononly" 0.0;
9035 inherit: "default" 0.0;
9038 part { name: "padding_after_icon";
9042 description { state: "default" 0.0; //when only icon or no icon is there
9048 rel2.to: "icon_rect";
9053 description { state: "visible" 0.0;
9059 rel2.to: "icon_rect";
9064 description { state: "icononly" 0.0;
9065 inherit: "default" 0.0;
9068 part { name: "padding_before_text";
9072 description { state: "default" 0.0; //when only icon or no icon is there
9077 to_y: "padding_left_top";
9082 to_y: "padding_right_bottom";
9089 part { name: "elm.swallow.content";
9092 clip_to: "disabler";
9093 description { state: "default" 0.0;
9098 to: "padding_left_top";
9102 to_x: "padding_left_top";
9103 to_y: "padding_right_bottom";
9107 description { state: "visible" 0.0;
9109 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9110 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9114 to_x: "padding_before_text";
9115 to_y: "padding_left_top";
9119 to_x: "padding_before_text";
9120 to_y: "padding_right_bottom";
9123 aspect_preference: VERTICAL;
9125 description { state: "icononly" 0.0;
9126 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9127 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9130 to: "padding_left_top";
9134 to: "padding_right_bottom";
9137 aspect_preference: VERTICAL;
9140 part { name: "elm.text";
9144 clip_to: "disabler";
9145 description { state: "default" 0.0;
9149 to_x: "padding_after_icon";
9150 to_y: "padding_left_top";
9154 to: "padding_right_bottom";
9157 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9159 font: "SLP:style=Medium";
9166 description { state: "visible" 0.0;
9167 inherit: "default" 0.0;
9170 description { state: "clicked" 0.0;
9171 inherit: "default" 0.0;
9175 description { state: "focused" 0.0;
9176 inherit: "default" 0.0;
9179 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9182 part { name: "over2";
9185 ignore_flags: ON_HOLD;
9186 description { state: "default" 0.0;
9190 part { name: "over3";
9193 description { state: "default" 0.0;
9197 part { name: "disabler";
9199 description { state: "default" 0.0;
9200 color: 255 255 255 255;
9202 description { state: "disabled" 0.0;
9203 color: 255 255 255 127;
9208 program { name: "button_click";
9209 signal: "mouse,down,1";
9211 action: SIGNAL_EMIT "elm,action,press" "";
9212 after: "button_click_anim";
9214 program { name: "button_click_anim";
9215 action: STATE_SET "clicked" 0.0;
9216 target: "button_image";
9217 after: "text_clicked";
9219 program { name: "text_clicked";
9223 get_state(PART:"elm.text", st, 30, vl);
9224 if (!strcmp(st, "visible"))
9225 set_state(PART:"elm.text", "clicked", 0.0);
9228 program { name: "button_unpress";
9229 action: SIGNAL_EMIT "elm,action,unpress" "";
9231 program { name: "button_mouseout_clicked";
9232 signal: "mouse,up,1";
9237 get_state(PART:"elm.swallow.content", st, 30, vl);
9238 if (strcmp(st, "icononly"))
9240 emit("elm,action,default,text,set", "");
9241 set_state(PART:"elm.text", "visible", 0.0);
9243 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9244 set_state(PART:"button_image", "default", 0.0);
9246 after: button_unpress;
9248 program { name: "button_unclick3";
9249 signal: "mouse,clicked,1";
9251 action: SIGNAL_EMIT "elm,action,click" "";
9253 program { name: "text_show";
9254 signal: "elm,state,text,visible";
9259 get_state(PART:"elm.swallow.content", st, 30, vl);
9260 if (!strcmp(st, "icononly"))
9262 set_state(PART:"elm.swallow.content", "visible", 0.0);
9263 set_state(PART:"icon_rect", "visible", 0.0);
9264 set_state(PART:"padding_after_icon", "visible", 0.0);
9266 set_state(PART:"elm.text", "visible", 0.0);
9269 program { name: "text_hide";
9270 signal: "elm,state,text,hidden";
9275 get_state(PART:"elm.swallow.content", st, 30, vl);
9276 if (!strcmp(st, "visible"))
9278 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9279 set_state(PART:"icon_rect", "icononly", 0.0);
9280 set_state(PART:"padding_after_icon", "icononly", 0.0);
9282 set_state(PART:"elm.text", "default", 0.0);
9285 program { name: "icon_show";
9286 signal: "elm,state,icon,visible";
9291 get_state(PART:"elm.text", st, 30, vl);
9292 if (!strcmp(st, "visible"))
9294 set_state(PART:"elm.swallow.content", "visible", 0.0);
9295 set_state(PART:"icon_rect", "visible", 0.0);
9296 set_state(PART:"padding_after_icon", "visible", 0.0);
9300 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9301 set_state(PART:"icon_rect", "icononly", 0.0);
9302 set_state(PART:"padding_after_icon", "icononly", 0.0);
9306 program { name: "icon_hide";
9307 signal: "elm,state,icon,hidden";
9309 action: STATE_SET "default" 0.0;
9310 target: "elm.swallow.content";
9311 target: "icon_rect";
9312 target: "padding_after_icon";
9314 program { name: "disable";
9315 signal: "elm,state,disabled";
9317 action: STATE_SET "disabled" 0.0;
9319 after: "disable_text";
9321 program { name: "disable_text";
9325 set_int(button_state, BUTTON_STATE_DISABLED);
9326 get_state(PART:"elm.text", st, 30, vl);
9327 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9328 set_state(PART:"elm.text", "visible", 0.0);
9331 program { name: "enable";
9332 signal: "elm,state,enabled";
9334 action: STATE_SET "default" 0.0;
9336 after: "enable_text";
9338 program { name: "enable_text";
9342 set_int(button_state, BUTTON_STATE_ENABLED);
9343 get_state(PART:"elm.text", st, 30, vl);
9344 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9345 set_state(PART:"elm.text", "visible", 0.0);
9348 program { name: "focused";
9349 action: STATE_SET "focused" 0.0;
9350 target: "button_image";
9353 program { name: "unfocused";
9354 action: STATE_SET "default" 0.0;
9355 target: "button_image";
9356 after: "unfocus_text";
9358 program { name: "unfocus_text";
9359 action: STATE_SET "visible" 0.0;
9365 ///////////////////////////////////////////////////////////////////////////////////////
9366 group { name: "elm/button/base/controlbar/horizontal_right";
9368 public button_state = BUTTON_STATE_ENABLED;
9371 part { name: "button_image";
9374 description { state: "default" 0.0;
9381 description { state: "clicked" 0.0;
9382 inherit: "default" 0.0;
9386 part { name: "padding_left_top";
9390 description { state: "default" 0.0;
9392 rel2.relative: 0.0 0.0;
9398 part { name: "padding_right_bottom";
9402 description { state: "default" 0.0;
9404 rel1.relative: 1.0 1.0;
9410 part { name: "icon_rect";
9414 description { state: "default" 0.0;
9419 to: "padding_left_top";
9423 to_x: "padding_left_top";
9424 to_y: "padding_right_bottom";
9429 description { state: "visible" 0.0;
9430 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9434 to: "padding_left_top";
9438 to_x: "padding_left_top";
9439 to_y: "padding_right_bottom";
9444 description { state: "icononly" 0.0;
9445 inherit: "default" 0.0;
9448 part { name: "padding_after_icon";
9452 description { state: "default" 0.0; //when only icon or no icon is there
9458 rel2.to: "icon_rect";
9463 description { state: "visible" 0.0;
9469 rel2.to: "icon_rect";
9474 description { state: "icononly" 0.0;
9475 inherit: "default" 0.0;
9478 part { name: "padding_before_text";
9482 description { state: "default" 0.0; //when only icon or no icon is there
9487 to_y: "padding_left_top";
9492 to_y: "padding_right_bottom";
9499 part { name: "elm.swallow.content";
9502 clip_to: "disabler";
9503 description { state: "default" 0.0;
9508 to: "padding_left_top";
9512 to_x: "padding_left_top";
9513 to_y: "padding_right_bottom";
9517 description { state: "visible" 0.0;
9519 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9520 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9524 to_x: "padding_before_text";
9525 to_y: "padding_left_top";
9529 to_x: "padding_before_text";
9530 to_y: "padding_right_bottom";
9533 aspect_preference: VERTICAL;
9535 description { state: "icononly" 0.0;
9536 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9537 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9540 to: "padding_left_top";
9544 to: "padding_right_bottom";
9547 aspect_preference: VERTICAL;
9550 part { name: "elm.text";
9554 clip_to: "disabler";
9555 description { state: "default" 0.0;
9559 to_x: "padding_after_icon";
9560 to_y: "padding_left_top";
9564 to: "padding_right_bottom";
9567 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9569 font: "SLP:style=Medium";
9576 description { state: "visible" 0.0;
9577 inherit: "default" 0.0;
9580 description { state: "clicked" 0.0;
9581 inherit: "default" 0.0;
9585 description { state: "focused" 0.0;
9586 inherit: "default" 0.0;
9589 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9592 part { name: "over2";
9595 ignore_flags: ON_HOLD;
9596 description { state: "default" 0.0;
9600 part { name: "over3";
9603 description { state: "default" 0.0;
9607 part { name: "disabler";
9609 description { state: "default" 0.0;
9610 color: 255 255 255 255;
9612 description { state: "disabled" 0.0;
9613 color: 255 255 255 127;
9618 program { name: "button_click";
9619 signal: "mouse,down,1";
9621 action: SIGNAL_EMIT "elm,action,press" "";
9622 after: "button_click_anim";
9624 program { name: "button_click_anim";
9625 action: STATE_SET "clicked" 0.0;
9626 target: "button_image";
9627 after: "text_clicked";
9629 program { name: "text_clicked";
9633 get_state(PART:"elm.text", st, 30, vl);
9634 if (!strcmp(st, "visible"))
9635 set_state(PART:"elm.text", "clicked", 0.0);
9638 program { name: "button_unpress";
9639 action: SIGNAL_EMIT "elm,action,unpress" "";
9641 program { name: "button_mouseout_clicked";
9642 signal: "mouse,up,1";
9647 get_state(PART:"elm.swallow.content", st, 30, vl);
9648 if (strcmp(st, "icononly"))
9650 emit("elm,action,default,text,set", "");
9651 set_state(PART:"elm.text", "visible", 0.0);
9653 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9654 set_state(PART:"button_image", "default", 0.0);
9656 after: button_unpress;
9658 program { name: "button_unclick3";
9659 signal: "mouse,clicked,1";
9661 action: SIGNAL_EMIT "elm,action,click" "";
9663 program { name: "text_show";
9664 signal: "elm,state,text,visible";
9669 get_state(PART:"elm.swallow.content", st, 30, vl);
9670 if (!strcmp(st, "icononly"))
9672 set_state(PART:"elm.swallow.content", "visible", 0.0);
9673 set_state(PART:"icon_rect", "visible", 0.0);
9674 set_state(PART:"padding_after_icon", "visible", 0.0);
9676 set_state(PART:"elm.text", "visible", 0.0);
9679 program { name: "text_hide";
9680 signal: "elm,state,text,hidden";
9685 get_state(PART:"elm.swallow.content", st, 30, vl);
9686 if (!strcmp(st, "visible"))
9688 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9689 set_state(PART:"icon_rect", "icononly", 0.0);
9690 set_state(PART:"padding_after_icon", "icononly", 0.0);
9692 set_state(PART:"elm.text", "default", 0.0);
9695 program { name: "icon_show";
9696 signal: "elm,state,icon,visible";
9701 get_state(PART:"elm.text", st, 30, vl);
9702 if (!strcmp(st, "visible"))
9704 set_state(PART:"elm.swallow.content", "visible", 0.0);
9705 set_state(PART:"icon_rect", "visible", 0.0);
9706 set_state(PART:"padding_after_icon", "visible", 0.0);
9710 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9711 set_state(PART:"icon_rect", "icononly", 0.0);
9712 set_state(PART:"padding_after_icon", "icononly", 0.0);
9716 program { name: "icon_hide";
9717 signal: "elm,state,icon,hidden";
9719 action: STATE_SET "default" 0.0;
9720 target: "elm.swallow.content";
9721 target: "icon_rect";
9722 target: "padding_after_icon";
9724 program { name: "disable";
9725 signal: "elm,state,disabled";
9727 action: STATE_SET "disabled" 0.0;
9729 after: "disable_text";
9731 program { name: "disable_text";
9735 set_int(button_state, BUTTON_STATE_DISABLED);
9736 get_state(PART:"elm.text", st, 30, vl);
9737 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9738 set_state(PART:"elm.text", "visible", 0.0);
9741 program { name: "enable";
9742 signal: "elm,state,enabled";
9744 action: STATE_SET "default" 0.0;
9746 after: "enable_text";
9748 program { name: "enable_text";
9752 set_int(button_state, BUTTON_STATE_ENABLED);
9753 get_state(PART:"elm.text", st, 30, vl);
9754 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9755 set_state(PART:"elm.text", "visible", 0.0);
9758 program { name: "focused";
9759 action: STATE_SET "focused" 0.0;
9760 target: "button_image";
9763 program { name: "unfocused";
9764 action: STATE_SET "default" 0.0;
9765 target: "button_image";
9766 after: "unfocus_text";
9768 program { name: "unfocus_text";
9769 action: STATE_SET "visible" 0.0;
9775 ///////////////////////////////////////////////////////////////////////////////////////
9776 group { name: "elm/button/base/tickernoti";
9778 image: "00_button_06_normal.png" COMP;
9779 image: "00_button_06_press.png" COMP;
9780 image: "00_button_06_dim.png" COMP;
9783 public button_state = BUTTON_STATE_ENABLED;
9786 part { name: "button_image";
9788 description { state: "default" 0.0;
9790 normal: "00_button_06_normal.png";
9791 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
9795 description { state: "clicked" 0.0;
9796 inherit: "default" 0.0;
9797 image.normal: "00_button_06_press.png";
9799 description { state: "disabled" 0.0;
9800 inherit: "default" 0.0;
9801 image.normal: "00_button_06_dim.png";
9803 description { state: "focused" 0.0;
9804 inherit: "default" 0.0;
9805 image.normal: "00_button_06_press.png";
9808 part { name: "padding_left_top";
9812 description { state: "default" 0.0;
9814 rel2.relative: 0.0 0.0;
9815 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9824 description { state: "default" 0.0;
9825 min: BUTTON_TICKERNOTI_BG_MIN_INC;
9828 description { state: "visible" 0.0;
9829 inherit: "default" 0.0;
9830 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
9832 description { state: "icononly" 0.0;
9833 inherit: "default" 0.0;
9834 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
9837 part { name: "padding_right_bottom";
9841 description { state: "default" 0.0;
9843 rel1.relative: 1.0 1.0;
9844 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9849 part { name: "icon_rect";
9853 description { state: "default" 0.0;
9859 to: "padding_left_top";
9863 to_x: "padding_left_top";
9864 to_y: "padding_right_bottom";
9868 description { state: "visible" 0.0;
9870 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9871 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9875 to: "padding_left_top";
9879 to_x: "padding_left_top";
9880 to_y: "padding_right_bottom";
9884 description { state: "icononly" 0.0;
9885 inherit: "default" 0.0;
9888 part { name: "padding_after_icon";
9892 description { state: "default" 0.0; //when only icon or no icon is there
9898 rel2.to: "icon_rect";
9903 description { state: "visible" 0.0;
9910 rel2.to: "icon_rect";
9912 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9914 description { state: "icononly" 0.0;
9915 inherit: "default" 0.0;
9918 part { name: "padding_before_text";
9922 description { state: "default" 0.0; //when only icon or no icon is there
9927 to_y: "padding_left_top";
9932 to_y: "padding_right_bottom";
9935 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9939 part { name: "elm.swallow.content";
9943 description { state: "default" 0.0;
9948 to: "padding_left_top";
9952 to_x: "padding_left_top";
9953 to_y: "padding_right_bottom";
9957 description { state: "visible" 0.0;
9959 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9960 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9964 to_x: "padding_before_text";
9965 to_y: "padding_left_top";
9969 to_x: "padding_before_text";
9970 to_y: "padding_right_bottom";
9973 description { state: "icononly" 0.0;
9974 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9975 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9978 part { name: "elm.text";
9983 description { state: "default" 0.0;
9987 to_x: "padding_after_icon";
9988 to_y: "padding_left_top";
9992 to: "padding_right_bottom";
9994 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9996 font: "SLP:style=Medium";
9997 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
10002 description { state: "visible" 0.0;
10003 inherit: "default" 0.0;
10006 description { state: "clicked" 0.0;
10007 inherit: "default" 0.0;
10009 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10011 description { state: "disabled" 0.0;
10012 inherit: "default" 0.0;
10015 description { state: "disabled_visible" 0.0;
10016 inherit: "default" 0.0;
10017 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
10020 description { state: "focused" 0.0;
10021 inherit: "default" 0.0;
10023 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10026 part { name: "over2";
10029 ignore_flags: ON_HOLD;
10030 description { state: "default" 0.0;
10034 part { name: "over3";
10037 description { state: "default" 0.0;
10041 part { name: "clipper";
10043 description { state: "default" 0.0;
10044 color: 255 255 255 255;
10047 part { name: "disabler";
10049 description { state: "default" 0.0;
10053 description { state: "disabled" 0.0;
10054 inherit: "default" 0.0;
10060 program { name: "button_click";
10061 signal: "mouse,down,1";
10063 action: SIGNAL_EMIT "elm,action,press" "";
10064 after: "button_click_anim";
10066 program { name: "button_click_anim";
10067 action: STATE_SET "clicked" 0.0;
10068 target: "button_image";
10069 after: "text_clicked";
10071 program { name: "text_clicked";
10075 get_state(PART:"elm.text", st, 30, vl);
10076 if (!strcmp(st, "visible"))
10077 set_state(PART:"elm.text", "clicked", 0.0);
10080 program { name: "button_unpress";
10081 action: SIGNAL_EMIT "elm,action,unpress" "";
10083 program { name: "button_mouseout_clicked";
10084 signal: "mouse,up,1";
10089 get_state(PART:"elm.swallow.content", st, 30, vl);
10090 if (strcmp(st, "icononly"))
10092 emit("elm,action,default,text,set", "");
10093 set_state(PART:"elm.text", "visible", 0.0);
10095 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10096 set_state(PART:"button_image", "default", 0.0);
10098 after: button_unpress;
10100 program { name: "button_unclick3";
10101 signal: "mouse,clicked,1";
10103 action: SIGNAL_EMIT "elm,action,click" "";
10105 program { name: "text_show";
10106 signal: "elm,state,text,visible";
10111 get_state(PART:"elm.swallow.content", st, 30, vl);
10112 if (!strcmp(st, "icononly"))
10114 set_state(PART:"elm.swallow.content", "visible", 0.0);
10115 set_state(PART:"icon_rect", "visible", 0.0);
10116 set_state(PART:"padding_after_icon", "visible", 0.0);
10117 set_state(PART:"bg", "visible", 0.0);
10119 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10120 set_state(PART:"elm.text", "visible", 0.0);
10122 set_state(PART:"elm.text", "disabled_visible", 0.0);
10125 program { name: "text_hide";
10126 signal: "elm,state,text,hidden";
10131 get_state(PART:"elm.swallow.content", st, 30, vl);
10132 if (!strcmp(st, "visible"))
10134 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10135 set_state(PART:"icon_rect", "icononly", 0.0);
10136 set_state(PART:"padding_after_icon", "icononly", 0.0);
10137 set_state(PART:"bg", "icononly", 0.0);
10139 set_state(PART:"elm.text", "default", 0.0);
10142 program { name: "icon_show";
10143 signal: "elm,state,icon,visible";
10148 get_state(PART:"elm.text", st, 30, vl);
10149 if (!strcmp(st, "visible"))
10151 set_state(PART:"elm.swallow.content", "visible", 0.0);
10152 set_state(PART:"icon_rect", "visible", 0.0);
10153 set_state(PART:"padding_after_icon", "visible", 0.0);
10154 set_state(PART:"bg", "visible", 0.0);
10158 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10159 set_state(PART:"icon_rect", "icononly", 0.0);
10160 set_state(PART:"padding_after_icon", "icononly", 0.0);
10161 set_state(PART:"bg", "icononly", 0.0);
10165 program { name: "icon_hide";
10166 signal: "elm,state,icon,hidden";
10168 action: STATE_SET "default" 0.0;
10169 target: "elm.swallow.content";
10170 target: "padding_after_icon";
10171 target: "icon_rect";
10174 program { name: "disable";
10175 signal: "elm,state,disabled";
10177 action: STATE_SET "disabled" 0.0;
10178 target: "button_image";
10179 target: "disabler";
10180 after: "disable_text";
10182 program { name: "disable_text";
10186 get_state(PART:"elm.text", st, 30, vl);
10187 if (!strcmp(st, "visible"))
10188 set_state(PART:"elm.text", "disabled_visible", 0.0);
10190 set_state(PART:"elm.text", "disabled", 0.0);
10191 set_int(button_state, BUTTON_STATE_DISABLED);
10194 program { name: "enable";
10195 signal: "elm,state,enabled";
10197 action: STATE_SET "default" 0.0;
10198 target: "button_image";
10199 target: "disabler";
10200 after: "enable_text";
10202 program { name: "enable_text";
10206 get_state(PART:"elm.text", st, 30, vl);
10207 if (!strcmp(st, "disabled_visible"))
10208 set_state(PART:"elm.text", "visible", 0.0);
10210 set_state(PART:"elm.text", "default", 0.0);
10211 set_int(button_state, BUTTON_STATE_ENABLED);
10214 program { name: "focused";
10215 //signal: "elm,action,focus";
10217 action: STATE_SET "focused" 0.0;
10218 target: "button_image";
10219 target: "elm.text";
10221 program { name: "unfocused";
10222 //signal: "elm,action,unfocus";
10224 action: STATE_SET "default" 0.0;
10225 target: "button_image";
10226 after: "unfocus_text";
10228 program { name: "unfocus_text";
10229 action: STATE_SET "visible" 0.0;
10230 target: "elm.text";
10235 ///////////////////////////////////////////////////////////////////////////////////////
10236 group { name: "elm/button/base/expandable_number";
10237 alias: "elm/button/base/text_only/expandable_number";
10239 image: "00_button_05_normal.png" COMP;
10240 image: "00_button_05_press.png" COMP;
10241 image: "00_button_05_dim.png" COMP;
10242 image: "00_arrow_expand.png" COMP;
10243 image: "00_arrow_expand_press.png" COMP;
10244 image: "00_arrow_expand_dim.png" COMP;
10247 public button_state = BUTTON_STATE_ENABLED;
10250 part { name: "button_image";
10252 description { state: "default" 0.0;
10253 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10254 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10256 normal: "00_button_05_normal.png";
10257 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
10261 description { state: "clicked" 0.0;
10262 inherit: "default" 0.0;
10263 image.normal: "00_button_05_press.png";
10265 description { state: "disabled" 0.0;
10266 inherit: "default" 0.0;
10267 image.normal: "00_button_05_dim.png";
10269 description { state: "focused" 0.0;
10270 inherit: "default" 0.0;
10271 image.normal: "00_button_05_press.png";
10274 part { name: "padding_left_top";
10278 description { state: "default" 0.0;
10280 rel2.relative: 0.0 0.0;
10281 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10286 part { name: "padding_right_bottom";
10290 description { state: "default" 0.0;
10292 rel1.relative: 1.0 1.0;
10293 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10298 part { name: "icon_rect";
10302 description { state: "default" 0.0;
10304 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10305 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10309 to_x: "padding_right_bottom";
10310 to_y: "padding_left_top";
10314 to: "padding_right_bottom";
10320 part { name: "arrow_expand";
10323 description { state: "default" 0.0;
10325 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10326 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10328 rel1.to: "icon_rect";
10329 rel2.to: "icon_rect";
10330 image.normal:"00_arrow_expand.png";
10332 description { state: "clicked" 0.0;
10333 inherit: "default" 0.0;
10334 image.normal:"00_arrow_expand_press.png";
10336 description { state: "disabled" 0.0;
10337 inherit: "default" 0.0;
10338 image.normal:"00_arrow_expand_dim.png";
10341 part { name: "elm.text";
10345 description { state: "default" 0.0;
10346 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10347 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10351 to: "padding_left_top";
10355 to_x:"padding_left_top";
10356 to_y:"padding_right_bottom";
10359 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10361 font: "SLP:style=Medium";
10362 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
10368 description { state: "visible" 0.0;
10369 inherit: "default" 0.0;
10371 description { state: "clicked" 0.0;
10372 inherit: "default" 0.0;
10373 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10375 description { state: "disabled" 0.0;
10376 inherit: "default" 0.0;
10379 description { state: "disabled_visible" 0.0;
10380 inherit: "default" 0.0;
10381 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10383 description { state: "focused" 0.0;
10384 inherit: "default" 0.0;
10385 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10388 part { name: "over2";
10391 ignore_flags: ON_HOLD;
10392 description { state: "default" 0.0;
10396 part { name: "over3";
10399 description { state: "default" 0.0;
10403 part { name: "disabler";
10405 description { state: "default" 0.0;
10409 description { state: "disabled" 0.0;
10410 inherit: "default" 0.0;
10416 program { name: "button_click";
10417 signal: "mouse,down,1";
10419 action: SIGNAL_EMIT "elm,action,press" "";
10420 after: "button_click_anim";
10422 program { name: "button_click_anim";
10423 action: STATE_SET "clicked" 0.0;
10424 target: "button_image";
10425 target: "arrow_expand";
10426 after: "text_clicked";
10428 program { name: "text_clicked";
10432 get_state(PART:"elm.text", st, 30, vl);
10433 if (!strcmp(st, "visible"))
10434 set_state(PART:"elm.text", "clicked", 0.0);
10437 program { name: "button_unpress";
10438 action: SIGNAL_EMIT "elm,action,unpress" "";
10440 program { name: "button_mouseout_clicked";
10441 signal: "mouse,up,1";
10444 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10446 set_state(PART:"button_image", "default", 0.0);
10447 set_state(PART:"elm.text", "visible", 0.0);
10448 set_state(PART:"arrow_expand", "default", 0.0);
10451 after: button_unpress;
10453 program { name: "button_unclick3";
10454 signal: "mouse,clicked,1";
10456 action: SIGNAL_EMIT "elm,action,click" "";
10458 program { name: "text_show";
10459 signal: "elm,state,text,visible";
10462 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10463 set_state(PART:"elm.text", "visible", 0.0);
10465 set_state(PART:"elm.text", "disabled_visible", 0.0);
10468 program { name: "text_hide";
10469 signal: "elm,state,text,hidden";
10472 set_state(PART:"elm.text", "default", 0.0);
10475 program { name: "disable";
10476 signal: "elm,state,disabled";
10478 action: STATE_SET "disabled" 0.0;
10479 target: "button_image";
10480 target: "disabler";
10481 after: "disable_text";
10483 program { name: "disable_text";
10487 get_state(PART:"elm.text", st, 30, vl);
10488 if (!strcmp(st, "visible"))
10489 set_state(PART:"elm.text", "disabled_visible", 0.0);
10491 set_state(PART:"elm.text", "disabled", 0.0);
10492 set_int(button_state, BUTTON_STATE_DISABLED);
10495 program { name: "enable";
10496 signal: "elm,state,enabled";
10498 action: STATE_SET "default" 0.0;
10499 target: "button_image";
10500 target: "disabler";
10501 after: "enable_text";
10503 program { name: "enable_text";
10507 get_state(PART:"elm.text", st, 30, vl);
10508 if (!strcmp(st, "disabled_visible"))
10509 set_state(PART:"elm.text", "visible", 0.0);
10511 set_state(PART:"elm.text", "default", 0.0);
10512 set_int(button_state, BUTTON_STATE_ENABLED);
10515 program { name: "focused";
10516 //signal: "elm,action,focus";
10518 action: STATE_SET "focused" 0.0;
10519 target: "button_image";
10520 target: "elm.text";
10522 program { name: "unfocused";
10523 //signal: "elm,action,unfocus";
10525 action: STATE_SET "default" 0.0;
10526 target: "button_image";
10527 after: "unfocus_text";
10529 program { name: "unfocus_text";
10530 action: STATE_SET "visible" 0.0;
10531 target: "elm.text";
10536 #undef BUTTON_STATE_ENABLED
10537 #undef BUTTON_STATE_DISABLED