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/style2";
488 alias: "elm/button/base/text_only/style2";
490 image: "00_button_04_normal.png" COMP;
491 image: "00_button_04_press.png" COMP;
492 image: "00_button_04_dim.png" COMP;
495 public button_state = BUTTON_STATE_ENABLED;
498 part { name: "button_image";
500 description { state: "default" 0.0;
502 normal: "00_button_04_normal.png";
503 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
507 description { state: "clicked" 0.0;
508 inherit: "default" 0.0;
509 image.normal: "00_button_04_press.png";
511 description { state: "disabled" 0.0;
512 inherit: "default" 0.0;
513 image.normal: "00_button_04_dim.png";
515 description { state: "focused" 0.0;
516 inherit: "default" 0.0;
517 image.normal: "00_button_04_press.png";
520 part { name: "padding_left_top";
524 description { state: "default" 0.0;
526 rel2.relative: 0.0 0.0;
527 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
536 description { state: "default" 0.0;
537 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
540 description { state: "visible" 0.0;
541 inherit: "default" 0.0;
542 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
544 description { state: "icononly" 0.0;
545 inherit: "default" 0.0;
546 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
549 part { name: "padding_right_bottom";
553 description { state: "default" 0.0;
555 rel1.relative: 1.0 1.0;
556 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
561 part { name: "icon_rect";
565 description { state: "default" 0.0;
571 to: "padding_left_top";
575 to_x: "padding_left_top";
576 to_y: "padding_right_bottom";
580 description { state: "visible" 0.0;
582 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
583 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
587 to: "padding_left_top";
591 to_x: "padding_left_top";
592 to_y: "padding_right_bottom";
596 description { state: "icononly" 0.0;
597 inherit: "default" 0.0;
600 part { name: "padding_after_icon";
604 description { state: "default" 0.0; //when only icon or no icon is there
610 rel2.to: "icon_rect";
615 description { state: "visible" 0.0;
622 rel2.to: "icon_rect";
624 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
626 description { state: "icononly" 0.0;
627 inherit: "default" 0.0;
630 part { name: "padding_before_text";
634 description { state: "default" 0.0; //when only icon or no icon is there
639 to_y: "padding_left_top";
644 to_y: "padding_right_bottom";
647 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
651 part { name: "elm.swallow.content";
655 description { state: "default" 0.0;
660 to: "padding_left_top";
664 to_x: "padding_left_top";
665 to_y: "padding_right_bottom";
669 description { state: "visible" 0.0;
671 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
672 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
676 to_x: "padding_before_text";
677 to_y: "padding_left_top";
681 to_x: "padding_before_text";
682 to_y: "padding_right_bottom";
685 description { state: "icononly" 0.0;
686 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
687 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
690 part { name: "elm.text";
695 description { state: "default" 0.0;
699 to_x: "padding_after_icon";
700 to_y: "padding_left_top";
704 to: "padding_right_bottom";
706 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
708 font: "SLP:style=Medium";
709 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
714 description { state: "visible" 0.0;
715 inherit: "default" 0.0;
718 description { state: "clicked" 0.0;
719 inherit: "default" 0.0;
721 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
723 description { state: "disabled" 0.0;
724 inherit: "default" 0.0;
727 description { state: "disabled_visible" 0.0;
728 inherit: "default" 0.0;
729 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
732 description { state: "focused" 0.0;
733 inherit: "default" 0.0;
735 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
738 part { name: "over2";
741 ignore_flags: ON_HOLD;
742 description { state: "default" 0.0;
746 part { name: "over3";
749 description { state: "default" 0.0;
753 part { name: "clipper";
755 description { state: "default" 0.0;
756 color: 255 255 255 255;
759 part { name: "disabler";
761 description { state: "default" 0.0;
765 description { state: "disabled" 0.0;
766 inherit: "default" 0.0;
772 program { name: "button_click";
773 signal: "mouse,down,1";
775 action: SIGNAL_EMIT "elm,action,press" "";
776 after: "button_click_anim";
778 program { name: "button_click_anim";
779 action: STATE_SET "clicked" 0.0;
780 target: "button_image";
781 after: "text_clicked";
783 program { name: "text_clicked";
787 get_state(PART:"elm.text", st, 30, vl);
788 if (!strcmp(st, "visible"))
789 set_state(PART:"elm.text", "clicked", 0.0);
792 program { name: "button_unpress";
793 action: SIGNAL_EMIT "elm,action,unpress" "";
795 program { name: "button_mouseout_clicked";
796 signal: "mouse,up,1";
801 get_state(PART:"elm.swallow.content", st, 30, vl);
802 if (strcmp(st, "icononly"))
804 emit("elm,action,default,text,set", "");
805 set_state(PART:"elm.text", "visible", 0.0);
807 if (get_int(button_state) != BUTTON_STATE_DISABLED)
808 set_state(PART:"button_image", "default", 0.0);
810 after: button_unpress;
812 program { name: "button_unclick3";
813 signal: "mouse,clicked,1";
815 action: SIGNAL_EMIT "elm,action,click" "";
817 program { name: "text_show";
818 signal: "elm,state,text,visible";
823 get_state(PART:"elm.swallow.content", st, 30, vl);
824 if (!strcmp(st, "icononly"))
826 set_state(PART:"elm.swallow.content", "visible", 0.0);
827 set_state(PART:"icon_rect", "visible", 0.0);
828 set_state(PART:"padding_after_icon", "visible", 0.0);
829 set_state(PART:"bg", "visible", 0.0);
831 if (get_int(button_state) != BUTTON_STATE_DISABLED)
832 set_state(PART:"elm.text", "visible", 0.0);
834 set_state(PART:"elm.text", "disabled_visible", 0.0);
837 program { name: "text_hide";
838 signal: "elm,state,text,hidden";
843 get_state(PART:"elm.swallow.content", st, 30, vl);
844 if (!strcmp(st, "visible"))
846 set_state(PART:"elm.swallow.content", "icononly", 0.0);
847 set_state(PART:"icon_rect", "icononly", 0.0);
848 set_state(PART:"padding_after_icon", "icononly", 0.0);
849 set_state(PART:"bg", "icononly", 0.0);
851 set_state(PART:"elm.text", "default", 0.0);
854 program { name: "icon_show";
855 signal: "elm,state,icon,visible";
860 get_state(PART:"elm.text", st, 30, vl);
861 if (!strcmp(st, "visible"))
863 set_state(PART:"elm.swallow.content", "visible", 0.0);
864 set_state(PART:"icon_rect", "visible", 0.0);
865 set_state(PART:"padding_after_icon", "visible", 0.0);
866 set_state(PART:"bg", "visible", 0.0);
870 set_state(PART:"elm.swallow.content", "icononly", 0.0);
871 set_state(PART:"icon_rect", "icononly", 0.0);
872 set_state(PART:"padding_after_icon", "icononly", 0.0);
873 set_state(PART:"bg", "icononly", 0.0);
877 program { name: "icon_hide";
878 signal: "elm,state,icon,hidden";
880 action: STATE_SET "default" 0.0;
881 target: "elm.swallow.content";
882 target: "padding_after_icon";
886 program { name: "disable";
887 signal: "elm,state,disabled";
889 action: STATE_SET "disabled" 0.0;
890 target: "button_image";
892 after: "disable_text";
894 program { name: "disable_text";
898 get_state(PART:"elm.text", st, 30, vl);
899 if (!strcmp(st, "visible"))
900 set_state(PART:"elm.text", "disabled_visible", 0.0);
902 set_state(PART:"elm.text", "disabled", 0.0);
903 set_int(button_state, BUTTON_STATE_DISABLED);
906 program { name: "enable";
907 signal: "elm,state,enabled";
909 action: STATE_SET "default" 0.0;
910 target: "button_image";
912 after: "enable_text";
914 program { name: "enable_text";
918 get_state(PART:"elm.text", st, 30, vl);
919 if (!strcmp(st, "disabled_visible"))
920 set_state(PART:"elm.text", "visible", 0.0);
922 set_state(PART:"elm.text", "default", 0.0);
923 set_int(button_state, BUTTON_STATE_ENABLED);
926 program { name: "focused";
927 //signal: "elm,action,focus";
929 action: STATE_SET "focused" 0.0;
930 target: "button_image";
933 program { name: "unfocused";
934 //signal: "elm,action,unfocus";
936 action: STATE_SET "default" 0.0;
937 target: "button_image";
938 after: "unfocus_text";
940 program { name: "unfocus_text";
941 action: STATE_SET "visible" 0.0;
947 ///////////////////////////////////////////////////////////////////////////////////////
948 group { name: "elm/button/base/sweep";
949 alias: "elm/button/base/text_only/sweep";
951 image: "00_button_sweep.png" COMP;
952 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
953 image: "00_button_sweep_dim.png" COMP;
956 public button_state = BUTTON_STATE_ENABLED;
959 part { name: "button_image";
961 description { state: "default" 0.0;
962 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
964 normal: "00_button_sweep.png";
965 border: BUTTON_SWEEP_BG_BORDER_INC;
969 description { state: "clicked" 0.0;
970 inherit: "default" 0.0;
971 image.normal: "00_button_sweep_press.png";
973 description { state: "disabled" 0.0;
974 inherit: "default" 0.0;
975 image.normal: "00_button_sweep_dim.png";
977 description { state: "focused" 0.0;
978 inherit: "default" 0.0;
979 image.normal: "00_button_sweep_press.png";
982 part { name: "padding_left_top";
986 description { state: "default" 0.0;
988 rel2.relative: 0.0 0.0;
989 min: BUTTON_SWEEP_PADDING_MIN_INC;
994 part { name: "padding_right_bottom";
998 description { state: "default" 0.0;
1000 rel1.relative: 1.0 1.0;
1001 min: BUTTON_SWEEP_PADDING_MIN_INC;
1006 part { name: "icon_rect";
1010 description { state: "default" 0.0;
1011 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1015 to_x: "elm.swallow.content";
1016 to_y: "padding_left_top";
1020 to_x: "elm.swallow.content";
1021 to_y: "padding_right_bottom";
1027 part { name: "padding_icon_text";
1031 description { state: "default" 0.0; //when only icon or no icon is there
1037 rel2.to: "icon_rect";
1042 description { state: "icononly" 0.0;
1043 inherit: "default" 0.0;
1045 description { state: "visible" 0.0; //when icon is visible
1051 rel2.to: "icon_rect";
1053 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1057 part { name: "elm.swallow.content";
1061 description { state: "default" 0.0;
1066 to: "padding_left_top";
1070 to_x: "padding_left_top";
1071 to_y: "padding_right_bottom";
1075 description { state: "visible" 0.0;
1080 to: "padding_left_top";
1084 to_x: "padding_left_top";
1085 to_y: "padding_right_bottom";
1088 aspect_preference: VERTICAL;
1090 description { state: "icononly" 0.0;
1091 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1094 to: "padding_left_top";
1098 to_x: "padding_left_top";
1099 to_y: "padding_right_bottom";
1103 part { name: "elm.text";
1108 description { state: "default" 0.0;
1112 to_x: "padding_icon_text";
1113 to_y: "padding_left_top";
1117 to: "padding_right_bottom";
1119 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1121 font: "SLP:style=Medium";
1122 size: BUTTON_SWEEP_FONT_SIZE_INC;
1126 description { state: "visible" 0.0;
1127 inherit: "default" 0.0;
1129 min: BUTTON_SWEEP_TEXT_MIN_INC;
1131 description { state: "clicked" 0.0;
1132 inherit: "default" 0.0;
1135 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1137 description { state: "disabled" 0.0;
1138 inherit: "default" 0.0;
1141 description { state: "disabled_visible" 0.0;
1142 inherit: "default" 0.0;
1143 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1145 min: BUTTON_SWEEP_TEXT_MIN_INC;
1147 description { state: "focused" 0.0;
1148 inherit: "default" 0.0;
1151 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1154 part { name: "over2";
1157 ignore_flags: ON_HOLD;
1158 description { state: "default" 0.0;
1162 part { name: "over3";
1165 description { state: "default" 0.0;
1169 part { name: "clipper";
1171 description { state: "default" 0.0;
1172 color: 255 255 255 255;
1175 part { name: "disabler";
1177 description { state: "default" 0.0;
1181 description { state: "disabled" 0.0;
1182 inherit: "default" 0.0;
1188 program { name: "button_click";
1189 signal: "mouse,down,1";
1191 action: SIGNAL_EMIT "elm,action,press" "";
1192 after: "button_click_anim";
1194 program { name: "button_click_anim";
1195 action: STATE_SET "clicked" 0.0;
1196 target: "button_image";
1197 after: "text_clicked";
1199 program { name: "text_clicked";
1203 get_state(PART:"elm.text", st, 30, vl);
1204 if (!strcmp(st, "visible"))
1205 set_state(PART:"elm.text", "clicked", 0.0);
1208 program { name: "button_unpress";
1209 action: SIGNAL_EMIT "elm,action,unpress" "";
1211 program { name: "button_mouseout_clicked";
1212 signal: "mouse,up,1";
1217 get_state(PART:"elm.swallow.content", st, 30, vl);
1218 if (strcmp(st, "icononly"))
1220 emit("elm,action,default,text,set", "");
1221 set_state(PART:"elm.text", "visible", 0.0);
1223 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1224 set_state(PART:"button_image", "default", 0.0);
1226 after: button_unpress;
1228 program { name: "button_unclick3";
1229 signal: "mouse,clicked,1";
1231 action: SIGNAL_EMIT "elm,action,click" "";
1233 program { name: "text_show";
1234 signal: "elm,state,text,visible";
1239 get_state(PART:"elm.swallow.content", st, 30, vl);
1240 if (!strcmp(st, "icononly"))
1242 set_state(PART:"elm.swallow.content", "visible", 0.0);
1243 set_state(PART:"padding_icon_text", "visible", 0.0);
1245 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1246 set_state(PART:"elm.text", "visible", 0.0);
1248 set_state(PART:"elm.text", "disabled_visible", 0.0);
1251 program { name: "text_hide";
1252 signal: "elm,state,text,hidden";
1257 get_state(PART:"elm.swallow.content", st, 30, vl);
1258 if (!strcmp(st, "visible"))
1260 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1261 set_state(PART:"padding_icon_text", "icononly", 0.0);
1263 set_state(PART:"elm.text", "default", 0.0);
1266 program { name: "icon_show";
1267 signal: "elm,state,icon,visible";
1272 get_state(PART:"elm.text", st, 30, vl);
1273 if (!strcmp(st, "visible"))
1275 set_state(PART:"elm.swallow.content", "visible", 0.0);
1276 set_state(PART:"padding_icon_text", "visible", 0.0);
1280 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1281 set_state(PART:"padding_icon_text", "icononly", 0.0);
1285 program { name: "icon_hide";
1286 signal: "elm,state,icon,hidden";
1288 action: STATE_SET "default" 0.0;
1289 target: "elm.swallow.content";
1290 target: "padding_icon_text";
1292 program { name: "disable";
1293 signal: "elm,state,disabled";
1295 action: STATE_SET "disabled" 0.0;
1296 target: "button_image";
1298 after: "disable_text";
1300 program { name: "disable_text";
1304 get_state(PART:"elm.text", st, 30, vl);
1305 if (!strcmp(st, "visible"))
1306 set_state(PART:"elm.text", "disabled_visible", 0.0);
1308 set_state(PART:"elm.text", "disabled", 0.0);
1309 set_int(button_state, BUTTON_STATE_DISABLED);
1312 program { name: "enable";
1313 signal: "elm,state,enabled";
1315 action: STATE_SET "default" 0.0;
1316 target: "button_image";
1318 after: "enable_text";
1320 program { name: "enable_text";
1324 get_state(PART:"elm.text", st, 30, vl);
1325 if (!strcmp(st, "disabled_visible"))
1326 set_state(PART:"elm.text", "visible", 0.0);
1328 set_state(PART:"elm.text", "default", 0.0);
1329 set_int(button_state, BUTTON_STATE_ENABLED);
1332 program { name: "focused";
1333 //signal: "elm,action,focus";
1335 action: STATE_SET "focused" 0.0;
1336 target: "button_image";
1339 program { name: "unfocused";
1340 //signal: "elm,action,unfocus";
1342 action: STATE_SET "default" 0.0;
1343 target: "button_image";
1344 after: "unfocus_text";
1346 program { name: "unfocus_text";
1347 action: STATE_SET "visible" 0.0;
1352 ///////////////////////////////////////////////////////////////////////////////////////
1353 group { name: "elm/button/base/searchbar/default";
1355 image: "00_search_input_field_bg.png" COMP;
1356 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1357 image: "00_button_sweep_dim.png" COMP;
1360 public button_state = BUTTON_STATE_ENABLED;
1363 part { name: "button_image";
1365 description { state: "default" 0.0;
1366 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
1368 normal: "00_search_input_field_bg.png";
1369 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
1373 description { state: "clicked" 0.0;
1374 inherit: "default" 0.0;
1376 normal: "00_button_sweep_press.png";
1377 border: BUTTON_SWEEP_BG_BORDER_INC;
1381 description { state: "disabled" 0.0;
1382 inherit: "default" 0.0;
1384 normal: "00_button_sweep_dim.png";
1385 border: BUTTON_SWEEP_BG_BORDER_INC;
1389 description { state: "focused" 0.0;
1390 inherit: "default" 0.0;
1392 normal: "00_button_sweep_press.png";
1393 border: BUTTON_SWEEP_BG_BORDER_INC;
1398 part { name: "padding_left_top";
1402 description { state: "default" 0.0;
1404 rel2.relative: 0.0 0.0;
1405 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1410 part { name: "padding_right_bottom";
1414 description { state: "default" 0.0;
1416 rel1.relative: 1.0 1.0;
1417 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
1422 part { name: "icon_rect";
1426 description { state: "default" 0.0;
1427 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
1431 to_x: "elm.swallow.content";
1432 to_y: "padding_left_top";
1436 to_x: "elm.swallow.content";
1437 to_y: "padding_right_bottom";
1443 part { name: "padding_icon_text";
1447 description { state: "default" 0.0; //when only icon or no icon is there
1453 rel2.to: "icon_rect";
1458 description { state: "icononly" 0.0;
1459 inherit: "default" 0.0;
1461 description { state: "visible" 0.0; //when icon is visible
1467 rel2.to: "icon_rect";
1469 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1473 part { name: "elm.swallow.content";
1477 description { state: "default" 0.0;
1482 to: "padding_left_top";
1486 to_x: "padding_left_top";
1487 to_y: "padding_right_bottom";
1491 description { state: "visible" 0.0;
1496 to: "padding_left_top";
1500 to_x: "padding_left_top";
1501 to_y: "padding_right_bottom";
1504 aspect_preference: VERTICAL;
1506 description { state: "icononly" 0.0;
1507 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
1510 to: "padding_left_top";
1514 to_x: "padding_left_top";
1515 to_y: "padding_right_bottom";
1519 part { name: "elm.text";
1524 description { state: "default" 0.0;
1528 to_x: "padding_icon_text";
1529 to_y: "padding_left_top";
1533 to: "padding_right_bottom";
1535 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1537 font: "SLP:style=Medium";
1538 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
1542 description { state: "visible" 0.0;
1543 inherit: "default" 0.0;
1545 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
1547 description { state: "clicked" 0.0;
1548 inherit: "default" 0.0;
1551 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1553 description { state: "disabled" 0.0;
1554 inherit: "default" 0.0;
1557 description { state: "disabled_visible" 0.0;
1558 inherit: "default" 0.0;
1559 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1561 min: BUTTON_SWEEP_TEXT_MIN_INC;
1563 description { state: "focused" 0.0;
1564 inherit: "default" 0.0;
1567 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1570 part { name: "over2";
1573 ignore_flags: ON_HOLD;
1574 description { state: "default" 0.0;
1578 part { name: "over3";
1581 description { state: "default" 0.0;
1585 part { name: "clipper";
1587 description { state: "default" 0.0;
1588 color: 255 255 255 255;
1591 part { name: "disabler";
1593 description { state: "default" 0.0;
1597 description { state: "disabled" 0.0;
1598 inherit: "default" 0.0;
1604 program { name: "button_click";
1605 signal: "mouse,down,1";
1607 action: SIGNAL_EMIT "elm,action,press" "";
1608 after: "button_click_anim";
1610 program { name: "button_click_anim";
1611 action: STATE_SET "clicked" 0.0;
1612 target: "button_image";
1613 after: "text_clicked";
1615 program { name: "text_clicked";
1619 get_state(PART:"elm.text", st, 30, vl);
1620 if (!strcmp(st, "visible"))
1621 set_state(PART:"elm.text", "clicked", 0.0);
1624 program { name: "button_unpress";
1625 action: SIGNAL_EMIT "elm,action,unpress" "";
1627 program { name: "button_mouseout_clicked";
1628 signal: "mouse,up,1";
1633 get_state(PART:"elm.swallow.content", st, 30, vl);
1634 if (strcmp(st, "icononly"))
1636 emit("elm,action,default,text,set", "");
1637 set_state(PART:"elm.text", "visible", 0.0);
1639 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1640 set_state(PART:"button_image", "default", 0.0);
1642 after: button_unpress;
1644 program { name: "button_unclick3";
1645 signal: "mouse,clicked,1";
1647 action: SIGNAL_EMIT "elm,action,click" "";
1649 program { name: "text_show";
1650 signal: "elm,state,text,visible";
1655 get_state(PART:"elm.swallow.content", st, 30, vl);
1656 if (!strcmp(st, "icononly"))
1658 set_state(PART:"elm.swallow.content", "visible", 0.0);
1659 set_state(PART:"padding_icon_text", "visible", 0.0);
1661 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1662 set_state(PART:"elm.text", "visible", 0.0);
1664 set_state(PART:"elm.text", "disabled_visible", 0.0);
1667 program { name: "text_hide";
1668 signal: "elm,state,text,hidden";
1673 get_state(PART:"elm.swallow.content", st, 30, vl);
1674 if (!strcmp(st, "visible"))
1676 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1677 set_state(PART:"padding_icon_text", "icononly", 0.0);
1679 set_state(PART:"elm.text", "default", 0.0);
1682 program { name: "icon_show";
1683 signal: "elm,state,icon,visible";
1688 get_state(PART:"elm.text", st, 30, vl);
1689 if (!strcmp(st, "visible"))
1691 set_state(PART:"elm.swallow.content", "visible", 0.0);
1692 set_state(PART:"padding_icon_text", "visible", 0.0);
1696 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1697 set_state(PART:"padding_icon_text", "icononly", 0.0);
1701 program { name: "icon_hide";
1702 signal: "elm,state,icon,hidden";
1704 action: STATE_SET "default" 0.0;
1705 target: "elm.swallow.content";
1706 target: "padding_icon_text";
1708 program { name: "disable";
1709 signal: "elm,state,disabled";
1711 action: STATE_SET "disabled" 0.0;
1712 target: "button_image";
1714 after: "disable_text";
1716 program { name: "disable_text";
1720 get_state(PART:"elm.text", st, 30, vl);
1721 if (!strcmp(st, "visible"))
1722 set_state(PART:"elm.text", "disabled_visible", 0.0);
1724 set_state(PART:"elm.text", "disabled", 0.0);
1725 set_int(button_state, BUTTON_STATE_DISABLED);
1728 program { name: "enable";
1729 signal: "elm,state,enabled";
1731 action: STATE_SET "default" 0.0;
1732 target: "button_image";
1734 after: "enable_text";
1736 program { name: "enable_text";
1740 get_state(PART:"elm.text", st, 30, vl);
1741 if (!strcmp(st, "disabled_visible"))
1742 set_state(PART:"elm.text", "visible", 0.0);
1744 set_state(PART:"elm.text", "default", 0.0);
1745 set_int(button_state, BUTTON_STATE_ENABLED);
1748 program { name: "focused";
1749 //signal: "elm,action,focus";
1751 action: STATE_SET "focused" 0.0;
1752 target: "button_image";
1755 program { name: "unfocused";
1756 //signal: "elm,action,unfocus";
1758 action: STATE_SET "default" 0.0;
1759 target: "button_image";
1760 after: "unfocus_text";
1762 program { name: "unfocus_text";
1763 action: STATE_SET "visible" 0.0;
1769 ///////////////////////////////////////////////////////////////////////////////////////
1770 group { name: "elm/button/base/sweep/delete";
1772 image: "00_button_sweep.png" COMP;
1773 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1774 image: "00_button_sweep_dim.png" COMP;
1775 image: "00_button_sweep_delete.png" COMP;
1778 public button_state = BUTTON_STATE_ENABLED;
1781 part { name: "button_image";
1783 description { state: "default" 0.0;
1784 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1786 normal: "00_button_sweep_delete.png";
1787 border: BUTTON_SWEEP_BG_BORDER_INC;
1791 description { state: "clicked" 0.0;
1792 inherit: "default" 0.0;
1793 image.normal: "00_button_sweep_press.png";
1795 description { state: "disabled" 0.0;
1796 inherit: "default" 0.0;
1797 image.normal: "00_button_sweep_dim.png";
1799 description { state: "focused" 0.0;
1800 inherit: "default" 0.0;
1801 image.normal: "00_button_sweep_press.png";
1804 part { name: "padding_left_top";
1808 description { state: "default" 0.0;
1810 rel2.relative: 0.0 0.0;
1811 min: BUTTON_SWEEP_PADDING_MIN_INC;
1816 part { name: "padding_right_bottom";
1820 description { state: "default" 0.0;
1822 rel1.relative: 1.0 1.0;
1823 min: BUTTON_SWEEP_PADDING_MIN_INC;
1828 part { name: "icon_rect";
1832 description { state: "default" 0.0;
1833 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1837 to_x: "elm.swallow.content";
1838 to_y: "padding_left_top";
1842 to_x: "elm.swallow.content";
1843 to_y: "padding_right_bottom";
1849 part { name: "padding_icon_text";
1853 description { state: "default" 0.0; //when only icon or no icon is there
1859 rel2.to: "icon_rect";
1864 description { state: "icononly" 0.0;
1865 inherit: "default" 0.0;
1867 description { state: "visible" 0.0; //when icon is visible
1873 rel2.to: "icon_rect";
1875 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1879 part { name: "elm.swallow.content";
1883 description { state: "default" 0.0;
1888 to: "padding_left_top";
1892 to_x: "padding_left_top";
1893 to_y: "padding_right_bottom";
1897 description { state: "visible" 0.0;
1902 to: "padding_left_top";
1906 to_x: "padding_left_top";
1907 to_y: "padding_right_bottom";
1910 aspect_preference: VERTICAL;
1912 description { state: "icononly" 0.0;
1913 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1916 to: "padding_left_top";
1920 to_x: "padding_left_top";
1921 to_y: "padding_right_bottom";
1925 part { name: "elm.text";
1930 description { state: "default" 0.0;
1933 to_x: "padding_icon_text";
1934 to_y: "padding_left_top";
1938 to: "padding_right_bottom";
1940 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1942 font: "SLP:style=Medium";
1943 size: BUTTON_SWEEP_FONT_SIZE_INC;
1949 description { state: "visible" 0.0;
1950 inherit: "default" 0.0;
1952 description { state: "clicked" 0.0;
1953 inherit: "default" 0.0;
1954 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1956 description { state: "disabled" 0.0;
1957 inherit: "default" 0.0;
1960 description { state: "disabled_visible" 0.0;
1961 inherit: "default" 0.0;
1962 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1964 description { state: "focused" 0.0;
1965 inherit: "default" 0.0;
1968 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1971 part { name: "over2";
1974 ignore_flags: ON_HOLD;
1975 description { state: "default" 0.0;
1979 part { name: "over3";
1982 description { state: "default" 0.0;
1986 part { name: "clipper";
1988 description { state: "default" 0.0;
1989 color: 255 255 255 255;
1992 part { name: "disabler";
1994 description { state: "default" 0.0;
1998 description { state: "disabled" 0.0;
1999 inherit: "default" 0.0;
2005 program { name: "button_click";
2006 signal: "mouse,down,1";
2008 action: SIGNAL_EMIT "elm,action,press" "";
2009 after: "button_click_anim";
2011 program { name: "button_click_anim";
2012 action: STATE_SET "clicked" 0.0;
2013 target: "button_image";
2014 after: "text_clicked";
2016 program { name: "text_clicked";
2020 get_state(PART:"elm.text", st, 30, vl);
2021 if (!strcmp(st, "visible"))
2022 set_state(PART:"elm.text", "clicked", 0.0);
2025 program { name: "button_unpress";
2026 action: SIGNAL_EMIT "elm,action,unpress" "";
2028 program { name: "button_mouseout_clicked";
2029 signal: "mouse,up,1";
2034 get_state(PART:"elm.swallow.content", st, 30, vl);
2035 if (strcmp(st, "icononly"))
2037 emit("elm,action,default,text,set", "");
2038 set_state(PART:"elm.text", "visible", 0.0);
2040 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2041 set_state(PART:"button_image", "default", 0.0);
2043 after: button_unpress;
2045 program { name: "button_unclick3";
2046 signal: "mouse,clicked,1";
2048 action: SIGNAL_EMIT "elm,action,click" "";
2050 program { name: "text_show";
2051 signal: "elm,state,text,visible";
2056 get_state(PART:"elm.swallow.content", st, 30, vl);
2057 if (!strcmp(st, "icononly"))
2059 set_state(PART:"elm.swallow.content", "visible", 0.0);
2060 set_state(PART:"padding_icon_text", "visible", 0.0);
2062 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2063 set_state(PART:"elm.text", "visible", 0.0);
2065 set_state(PART:"elm.text", "disabled_visible", 0.0);
2068 program { name: "text_hide";
2069 signal: "elm,state,text,hidden";
2074 get_state(PART:"elm.swallow.content", st, 30, vl);
2075 if (!strcmp(st, "visible"))
2077 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2078 set_state(PART:"padding_icon_text", "icononly", 0.0);
2080 set_state(PART:"elm.text", "default", 0.0);
2083 program { name: "icon_show";
2084 signal: "elm,state,icon,visible";
2089 get_state(PART:"elm.text", st, 30, vl);
2090 if (!strcmp(st, "visible"))
2092 set_state(PART:"elm.swallow.content", "visible", 0.0);
2093 set_state(PART:"padding_icon_text", "visible", 0.0);
2097 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2098 set_state(PART:"padding_icon_text", "icononly", 0.0);
2102 program { name: "icon_hide";
2103 signal: "elm,state,icon,hidden";
2105 action: STATE_SET "default" 0.0;
2106 target: "elm.swallow.content";
2107 target: "padding_icon_text";
2109 program { name: "disable";
2110 signal: "elm,state,disabled";
2112 action: STATE_SET "disabled" 0.0;
2113 target: "button_image";
2115 after: "disable_text";
2117 program { name: "disable_text";
2121 get_state(PART:"elm.text", st, 30, vl);
2122 if (!strcmp(st, "visible"))
2123 set_state(PART:"elm.text", "disabled_visible", 0.0);
2125 set_state(PART:"elm.text", "disabled", 0.0);
2126 set_int(button_state, BUTTON_STATE_DISABLED);
2129 program { name: "enable";
2130 signal: "elm,state,enabled";
2132 action: STATE_SET "default" 0.0;
2133 target: "button_image";
2135 after: "enable_text";
2137 program { name: "enable_text";
2141 get_state(PART:"elm.text", st, 30, vl);
2142 if (!strcmp(st, "disabled_visible"))
2143 set_state(PART:"elm.text", "visible", 0.0);
2145 set_state(PART:"elm.text", "default", 0.0);
2146 set_int(button_state, BUTTON_STATE_ENABLED);
2149 program { name: "focused";
2150 //signal: "elm,action,focus";
2152 action: STATE_SET "focused" 0.0;
2153 target: "button_image";
2156 program { name: "unfocused";
2157 //signal: "elm,action,unfocus";
2159 action: STATE_SET "default" 0.0;
2160 target: "button_image";
2161 after: "unfocus_text";
2163 program { name: "unfocus_text";
2164 action: STATE_SET "visible" 0.0;
2170 ///////////////////////////////////////////////////////////////////////////////////////
2171 group { name: "elm/button/base/popup_button/default";
2172 alias: "elm/button/base/popup_button/menustyle";
2173 alias: "elm/button/base/popup_button/liststyle";
2174 alias: "elm/button/base/popup_button/volumebarstyle";
2175 alias: "elm/button/base/popup_button/customstyle";
2176 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2178 image: "00_button_popup_normal.png" COMP;
2179 image: "00_button_popup_press.png" COMP;
2180 image: "00_button_popup_focus.png" COMP;
2181 image: "00_button_popup_dim.png" COMP;
2184 public button_state = BUTTON_STATE_ENABLED;
2187 part { name: "button_image";
2189 description { state: "default" 0.0;
2190 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2192 normal: "00_button_popup_normal.png";
2193 border: BUTTON_POPUP_BG_BORDER_INC;
2197 description { state: "clicked" 0.0;
2198 inherit: "default" 0.0;
2199 image.normal: "00_button_popup_press.png";
2201 description { state: "disabled" 0.0;
2202 inherit: "default" 0.0;
2203 image.normal: "00_button_popup_dim.png";
2205 description { state: "focused" 0.0;
2206 inherit: "default" 0.0;
2207 image.normal: "00_button_popup_focus.png";
2210 part { name: "padding_left_top";
2214 description { state: "default" 0.0;
2216 rel2.relative: 0.0 0.0;
2217 min: BUTTON_POPUP_PADDING_MIN_INC;
2222 part { name: "padding_right_bottom";
2225 description { state: "default" 0.0;
2227 rel1.relative: 1.0 1.0;
2228 min: BUTTON_POPUP_PADDING_MIN_INC;
2233 part { name: "padding_icon_text";
2236 description { state: "default" 0.0; //when only icon or no icon is there
2240 to: "elm.swallow.content";
2242 rel2.to: "elm.swallow.content";
2247 description { state: "icononly" 0.0;
2248 inherit: "default" 0.0;
2250 description { state: "visible" 0.0; //when icon is visible
2251 inherit: "default" 0.0;
2252 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2255 part { name: "elm.swallow.content";
2259 description { state: "default" 0.0;
2264 to: "padding_left_top";
2268 to_x: "padding_left_top";
2269 to_y: "padding_right_bottom";
2273 description { state: "visible" 0.0;
2274 inherit: "default" 0.0;
2278 aspect_preference: VERTICAL;
2280 description { state: "icononly" 0.0;
2281 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2284 to: "padding_left_top";
2288 to_x: "padding_left_top";
2289 to_y: "padding_right_bottom";
2293 part { name: "elm.text";
2298 description { state: "default" 0.0;
2302 to_x: "padding_icon_text";
2303 to_y: "padding_left_top";
2307 to: "padding_right_bottom";
2309 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2311 font: "SLP:style=Medium";
2312 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2316 description { state: "visible" 0.0;
2317 inherit: "default" 0.0;
2319 min: BUTTON_POPUP_TEXT_MIN_INC;
2321 description { state: "clicked" 0.0;
2322 inherit: "default" 0.0;
2325 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2327 description { state: "disabled" 0.0;
2328 inherit: "default" 0.0;
2331 description { state: "disabled_visible" 0.0;
2332 inherit: "default" 0.0;
2333 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2335 min: BUTTON_POPUP_TEXT_MIN_INC;
2337 description { state: "focused" 0.0;
2338 inherit: "default" 0.0;
2341 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2344 part { name: "over2";
2347 ignore_flags: ON_HOLD;
2348 description { state: "default" 0.0;
2352 part { name: "over3";
2355 description { state: "default" 0.0;
2359 part { name: "clipper";
2361 description { state: "default" 0.0;
2362 color: 255 255 255 255;
2365 part { name: "disabler";
2367 description { state: "default" 0.0;
2371 description { state: "disabled" 0.0;
2372 inherit: "default" 0.0;
2378 program { name: "button_click";
2379 signal: "mouse,down,1";
2381 action: SIGNAL_EMIT "elm,action,press" "";
2382 after: "button_click_anim";
2384 program { name: "button_click_anim";
2385 action: STATE_SET "clicked" 0.0;
2386 target: "button_image";
2387 after: "text_clicked";
2389 program { name: "text_clicked";
2393 get_state(PART:"elm.text", st, 30, vl);
2394 if (!strcmp(st, "visible"))
2395 set_state(PART:"elm.text", "clicked", 0.0);
2398 program { name: "button_unpress";
2399 action: SIGNAL_EMIT "elm,action,unpress" "";
2401 program { name: "button_mouseout_clicked";
2402 signal: "mouse,up,1";
2407 get_state(PART:"elm.swallow.content", st, 30, vl);
2408 if (strcmp(st, "icononly"))
2410 emit("elm,action,default,text,set", "");
2411 set_state(PART:"elm.text", "visible", 0.0);
2413 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2414 set_state(PART:"button_image", "default", 0.0);
2416 after: button_unpress;
2418 program { name: "button_unclick3";
2419 signal: "mouse,clicked,1";
2421 action: SIGNAL_EMIT "elm,action,click" "";
2423 program { name: "text_show";
2424 signal: "elm,state,text,visible";
2429 get_state(PART:"elm.swallow.content", st, 30, vl);
2430 if (!strcmp(st, "icononly"))
2432 set_state(PART:"elm.swallow.content", "visible", 0.0);
2433 set_state(PART:"padding_icon_text", "visible", 0.0);
2435 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2436 set_state(PART:"elm.text", "visible", 0.0);
2438 set_state(PART:"elm.text", "disabled_visible", 0.0);
2441 program { name: "text_hide";
2442 signal: "elm,state,text,hidden";
2447 get_state(PART:"elm.swallow.content", st, 30, vl);
2448 if (!strcmp(st, "visible"))
2450 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2451 set_state(PART:"padding_icon_text", "icononly", 0.0);
2453 set_state(PART:"elm.text", "default", 0.0);
2456 program { name: "icon_show";
2457 signal: "elm,state,icon,visible";
2462 get_state(PART:"elm.text", st, 30, vl);
2463 if (!strcmp(st, "visible"))
2465 set_state(PART:"elm.swallow.content", "visible", 0.0);
2466 set_state(PART:"padding_icon_text", "visible", 0.0);
2470 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2471 set_state(PART:"padding_icon_text", "icononly", 0.0);
2475 program { name: "icon_hide";
2476 signal: "elm,state,icon,hidden";
2478 action: STATE_SET "default" 0.0;
2479 target: "elm.swallow.content";
2480 target: "padding_icon_text";
2482 program { name: "disable";
2483 signal: "elm,state,disabled";
2485 action: STATE_SET "disabled" 0.0;
2486 target: "button_image";
2488 after: "disable_text";
2490 program { name: "disable_text";
2494 get_state(PART:"elm.text", st, 30, vl);
2495 if (!strcmp(st, "visible"))
2496 set_state(PART:"elm.text", "disabled_visible", 0.0);
2498 set_state(PART:"elm.text", "disabled", 0.0);
2499 set_int(button_state, BUTTON_STATE_DISABLED);
2502 program { name: "enable";
2503 signal: "elm,state,enabled";
2505 action: STATE_SET "default" 0.0;
2506 target: "button_image";
2508 after: "enable_text";
2510 program { name: "enable_text";
2514 get_state(PART:"elm.text", st, 30, vl);
2515 if (!strcmp(st, "disabled_visible"))
2516 set_state(PART:"elm.text", "visible", 0.0);
2518 set_state(PART:"elm.text", "default", 0.0);
2519 set_int(button_state, BUTTON_STATE_ENABLED);
2522 program { name: "focused";
2523 action: STATE_SET "focused" 0.0;
2524 target: "button_image";
2527 program { name: "unfocused";
2528 action: STATE_SET "default" 0.0;
2529 target: "button_image";
2530 after: "unfocus_text";
2532 program { name: "unfocus_text";
2533 action: STATE_SET "visible" 0.0;
2539 ///////////////////////////////////////////////////////////////////////////////////////
2540 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2541 group { name: "elm/button/base/"style_name; \
2543 image: "00_btn_circle_bg_normal.png" COMP; \
2544 image: "00_btn_circle_bg_press.png" COMP; \
2545 image: image_normal COMP; \
2546 image: image_press COMP; \
2549 part { name: "button_image"; \
2551 description { state: "default" 0.0; \
2552 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2553 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2554 image.normal: "00_btn_circle_bg_normal.png"; \
2555 color: 255 255 255 255; \
2558 state: "clicked" 0.0; \
2559 inherit: "default" 0.0; \
2560 image.normal: "00_btn_circle_bg_press.png"; \
2563 state: "disabled" 0.0; \
2564 inherit: "default" 0.0; \
2565 color: 255 255 255 128; \
2568 part { name: "button_center_part"; \
2570 description { state: "default" 0.0; \
2571 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2572 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2573 image.normal: image_normal; \
2574 color: 255 255 255 255; \
2577 state: "clicked" 0.0; \
2578 inherit: "default" 0.0; \
2579 image.normal: image_press; \
2582 state: "disabled" 0.0; \
2583 inherit: "default" 0.0; \
2584 color: 255 255 255 128; \
2587 part { name: "over1"; \
2589 ignore_flags: ON_HOLD; \
2590 description { state: "default" 0.0; \
2592 min: min_width min_height; \
2595 part { name: "over2"; \
2597 description { state: "default" 0.0; \
2601 part { name: "disabler"; \
2603 description { state: "default" 0.0; \
2607 description { state: "disabled" 0.0; \
2608 inherit: "default" 0.0; \
2614 program { name: "button_click"; \
2615 signal: "mouse,down,1"; \
2617 action: SIGNAL_EMIT "elm,action,press" ""; \
2618 after: "button_click_anim"; \
2620 program { name: "button_click_anim"; \
2621 action: STATE_SET "clicked" 0.0; \
2622 target: "button_image"; \
2623 target: "button_center_part"; \
2625 program { name: "button_unclick"; \
2626 signal: "mouse,up,1"; \
2628 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2629 after: "button_unclick_anim"; \
2631 program { name: "button_unclick_anim"; \
2632 action: STATE_SET "default" 0.0; \
2633 target: "button_image"; \
2634 target: "button_center_part"; \
2636 program { name: "button_unclick2"; \
2637 signal: "mouse,clicked,1"; \
2639 action: SIGNAL_EMIT "elm,action,click" ""; \
2641 program { name: "disable"; \
2642 signal: "elm,state,disabled"; \
2644 action: STATE_SET "disabled" 0.0; \
2645 target: "disabler"; \
2646 target: "button_image"; \
2647 target: "button_center_part"; \
2649 program { name: "enable"; \
2650 signal: "elm,state,enabled"; \
2652 action: STATE_SET "default" 0.0; \
2653 target: "disabler"; \
2654 target: "button_image"; \
2655 target: "button_center_part"; \
2660 ///////////////////////////////////////////////////////////////////////////////////////
2661 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
2663 ///////////////////////////////////////////////////////////////////////////////////////
2664 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
2666 ///////////////////////////////////////////////////////////////////////////////////////
2667 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
2669 ///////////////////////////////////////////////////////////////////////////////////////
2670 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
2672 ///////////////////////////////////////////////////////////////////////////////////////
2673 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
2675 ///////////////////////////////////////////////////////////////////////////////////////
2676 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
2678 ///////////////////////////////////////////////////////////////////////////////////////
2679 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
2681 ///////////////////////////////////////////////////////////////////////////////////////
2682 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
2684 ///////////////////////////////////////////////////////////////////////////////////////
2685 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
2687 ///////////////////////////////////////////////////////////////////////////////////////
2688 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
2690 ///////////////////////////////////////////////////////////////////////////////////////
2691 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
2693 ///////////////////////////////////////////////////////////////////////////////////////
2694 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
2696 ///////////////////////////////////////////////////////////////////////////////////////
2697 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
2699 ///////////////////////////////////////////////////////////////////////////////////////
2700 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
2702 ///////////////////////////////////////////////////////////////////////////////////////
2703 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
2705 ///////////////////////////////////////////////////////////////////////////////////////
2706 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
2708 ///////////////////////////////////////////////////////////////////////////////////////
2709 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
2711 ///////////////////////////////////////////////////////////////////////////////////////
2712 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
2714 ///////////////////////////////////////////////////////////////////////////////////////
2715 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
2717 ///////////////////////////////////////////////////////////////////////////////////////
2718 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
2720 ///////////////////////////////////////////////////////////////////////////////////////
2721 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
2723 ///////////////////////////////////////////////////////////////////////////////////////
2724 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
2725 ///////////////////////////////////////////////////////////////////////////////////////
2726 group { name: "elm/button/base/circle/empty";
2728 image: "00_btn_circle_bg_normal.png" COMP;
2729 image: "00_btn_circle_bg_press.png" COMP;
2732 part { name: "button_image";
2734 description { state: "default" 0.0;
2735 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2736 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2738 image.normal: "00_btn_circle_bg_normal.png";
2739 color: 255 255 255 255;
2741 description { state: "clicked" 0.0;
2742 inherit: "default" 0.0;
2743 image.normal: "00_btn_circle_bg_press.png";
2745 description { state: "disabled" 0.0;
2746 inherit: "default" 0.0;
2747 color: 255 255 255 128;
2750 part { name: "elm.swallow.content";
2753 description { state: "default" 0.0;
2754 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2755 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2757 color: 255 255 255 255;
2760 state: "disabled" 0.0;
2761 inherit: "default" 0.0;
2762 color: 255 255 255 128;
2765 part { name: "over1";
2767 ignore_flags: ON_HOLD;
2768 description { state: "default" 0.0;
2772 part { name: "over2";
2774 description { state: "default" 0.0;
2778 part { name: "disabler";
2780 description { state: "default" 0.0;
2784 description { state: "disabled" 0.0;
2785 inherit: "default" 0.0;
2791 program { name: "button_click";
2792 signal: "mouse,down,1";
2794 action: SIGNAL_EMIT "elm,action,press" "";
2795 after: "button_click_anim";
2797 program { name: "button_click_anim";
2798 action: STATE_SET "clicked" 0.0;
2799 target: "button_image";
2801 program { name: "button_unclick";
2802 signal: "mouse,up,1";
2804 action: SIGNAL_EMIT "elm,action,unpress" "";
2805 after: "button_unclick_anim";
2807 program { name: "button_unclick_anim";
2808 action: STATE_SET "default" 0.0;
2809 target: "button_image";
2811 program { name: "button_unclick2";
2812 signal: "mouse,clicked,1";
2814 action: SIGNAL_EMIT "elm,action,click" "";
2816 program { name: "disable";
2817 signal: "elm,state,disabled";
2819 action: STATE_SET "disabled" 0.0;
2821 target: "button_image";
2823 program { name: "enable";
2824 signal: "elm,state,enabled";
2826 action: STATE_SET "default" 0.0;
2828 target: "button_image";
2830 program { name: "icon_show";
2831 signal: "elm,state,icon,visible";
2833 action: STATE_SET "visible" 0.0;
2834 target: "elm.swallow.content";
2836 program { name: "icon_hide";
2837 signal: "elm,state,icon,hidden";
2839 action: STATE_SET "default" 0.0;
2840 target: "elm.swallow.content";
2845 ///////////////////////////////////////////////////////////////////////////////////////
2846 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2847 group { name: "elm/button/base/contacts/"style_name; \
2848 alias: "elm/button/base/"style_name; \
2850 image: image_normal COMP; \
2851 image: image_press COMP; \
2852 image: "00_button_edit.png" COMP; \
2853 image: "00_button_edit_press.png" COMP; \
2854 image: "00_button_edit_dim.png" COMP; \
2857 part { name: "button_image"; \
2859 description { state: "default" 0.0; \
2860 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2861 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2863 normal: "00_button_edit.png"; \
2864 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2869 state: "clicked" 0.0; \
2870 inherit: "default" 0.0; \
2871 image.normal: "00_button_edit_press.png"; \
2874 state: "disabled" 0.0; \
2875 inherit: "default" 0.0; \
2876 image.normal: "00_button_edit_dim.png"; \
2879 part { name: "button_center_part"; \
2882 description { state: "default" 0.0; \
2883 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2884 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2886 normal: image_normal; \
2887 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2892 state: "clicked" 0.0; \
2893 inherit: "default" 0.0; \
2894 image.normal: image_press; \
2897 part { name: "over1"; \
2900 ignore_flags: ON_HOLD; \
2901 description { state: "default" 0.0; \
2903 min: min_width min_height; \
2906 part { name: "over2"; \
2908 description { state: "default" 0.0; \
2912 part { name: "disabler"; \
2914 description { state: "default" 0.0; \
2918 description { state: "disabled" 0.0; \
2919 inherit: "default" 0.0; \
2925 program { name: "button_click"; \
2926 signal: "mouse,down,1"; \
2928 action: SIGNAL_EMIT "elm,action,press" ""; \
2929 after: "button_click_anim"; \
2931 program { name: "button_click_anim"; \
2932 action: STATE_SET "clicked" 0.0; \
2933 target: "button_image"; \
2934 target: "button_center_part"; \
2936 program { name: "button_unclick"; \
2937 signal: "mouse,up,1"; \
2939 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2940 after: "button_unclick_anim"; \
2942 program { name: "button_unclick_anim"; \
2943 action: STATE_SET "default" 0.0; \
2944 target: "button_image"; \
2945 target: "button_center_part"; \
2947 program { name: "button_unclick2"; \
2948 signal: "mouse,clicked,1"; \
2950 action: SIGNAL_EMIT "elm,action,click" ""; \
2952 program { name: "disable"; \
2953 signal: "elm,state,disabled"; \
2955 action: STATE_SET "disabled" 0.0; \
2956 target: "disabler"; \
2957 target: "button_image"; \
2959 program { name: "enable"; \
2960 signal: "elm,state,enabled"; \
2962 action: STATE_SET "default" 0.0; \
2963 target: "disabler"; \
2964 target: "button_image"; \
2968 ///////////////////////////////////////////////////////////////////////////////////////
2969 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)
2971 ///////////////////////////////////////////////////////////////////////////////////////
2972 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)
2974 ///////////////////////////////////////////////////////////////////////////////////////
2975 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)
2977 ///////////////////////////////////////////////////////////////////////////////////////
2978 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)
2980 ///////////////////////////////////////////////////////////////////////////////////////
2981 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)
2983 ///////////////////////////////////////////////////////////////////////////////////////
2984 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)
2986 ///////////////////////////////////////////////////////////////////////////////////////
2987 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)
2989 ///////////////////////////////////////////////////////////////////////////////////////
2990 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)
2992 ///////////////////////////////////////////////////////////////////////////////////////
2993 group { name: "elm/button/base/contacts/delete";
2995 image: "00_button_edit.png" COMP;
2996 image: "00_button_edit_press.png" COMP;
2997 image: "00_button_edit_dim.png" COMP;
3000 public button_state = BUTTON_STATE_ENABLED;
3003 part { name: "button_image";
3005 description { state: "default" 0.0;
3006 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
3008 normal: "00_button_edit.png";
3009 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
3013 description { state: "clicked" 0.0;
3014 inherit: "default" 0.0;
3015 image.normal: "00_button_edit_press.png";
3017 description { state: "disabled" 0.0;
3018 inherit: "default" 0.0;
3019 image.normal: "00_button_edit_dim.png";
3021 description { state: "focused" 0.0;
3022 inherit: "default" 0.0;
3023 image.normal: "00_button_edit_press.png";
3026 part { name: "padding_left_top";
3030 description { state: "default" 0.0;
3032 rel2.relative: 0.0 0.0;
3033 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
3038 part { name: "padding_right_bottom";
3042 description { state: "default" 0.0;
3044 rel1.relative: 1.0 1.0;
3045 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
3050 part { name: "padding_icon_text";
3054 description { state: "default" 0.0; //when only icon or no icon is there
3058 to: "elm.swallow.content";
3060 rel2.to: "elm.swallow.content";
3065 description { state: "icononly" 0.0;
3066 inherit: "default" 0.0;
3068 description { state: "visible" 0.0; //when icon is visible
3069 inherit: "default" 0.0;
3070 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3073 part { name: "elm.swallow.content";
3077 description { state: "default" 0.0;
3082 to: "padding_left_top";
3086 to_x: "padding_left_top";
3087 to_y: "padding_right_bottom";
3091 description { state: "visible" 0.0;
3096 to: "padding_left_top";
3100 to_x: "padding_left_top";
3101 to_y: "padding_right_bottom";
3104 aspect_preference: VERTICAL;
3106 description { state: "icononly" 0.0;
3107 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
3110 to: "padding_left_top";
3114 to: "padding_right_bottom";
3117 aspect_preference: VERTICAL;
3120 part { name: "elm.text";
3125 description { state: "default" 0.0;
3128 to_x: "padding_icon_text";
3129 to_y: "padding_left_top";
3133 to: "padding_right_bottom";
3135 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
3137 font: "SLP:style=Medium";
3138 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
3144 description { state: "visible" 0.0;
3145 inherit: "default" 0.0;
3147 description { state: "clicked" 0.0;
3148 inherit: "default" 0.0;
3149 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3151 description { state: "disabled" 0.0;
3152 inherit: "default" 0.0;
3155 description { state: "disabled_visible" 0.0;
3156 inherit: "default" 0.0;
3157 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
3159 description { state: "focused" 0.0;
3160 inherit: "default" 0.0;
3162 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
3165 part { name: "over2";
3168 ignore_flags: ON_HOLD;
3169 description { state: "default" 0.0;
3173 part { name: "over3";
3176 description { state: "default" 0.0;
3180 part { name: "clipper";
3182 description { state: "default" 0.0;
3183 color: 255 255 255 255;
3186 part { name: "disabler";
3188 description { state: "default" 0.0;
3192 description { state: "disabled" 0.0;
3193 inherit: "default" 0.0;
3199 program { name: "button_click";
3200 signal: "mouse,down,1";
3202 action: SIGNAL_EMIT "elm,action,press" "";
3203 after: "button_click_anim";
3205 program { name: "button_click_anim";
3206 action: STATE_SET "clicked" 0.0;
3207 target: "button_image";
3208 after: "text_clicked";
3210 program { name: "text_clicked";
3214 get_state(PART:"elm.text", st, 30, vl);
3215 if (!strcmp(st, "visible"))
3216 set_state(PART:"elm.text", "clicked", 0.0);
3219 program { name: "button_unpress";
3220 action: SIGNAL_EMIT "elm,action,unpress" "";
3222 program { name: "button_mouseout_clicked";
3223 signal: "mouse,up,1";
3228 get_state(PART:"elm.swallow.content", st, 30, vl);
3229 if (strcmp(st, "icononly"))
3231 emit("elm,action,default,text,set", "");
3232 set_state(PART:"elm.text", "visible", 0.0);
3234 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3235 set_state(PART:"button_image", "default", 0.0);
3237 after: button_unpress;
3239 program { name: "button_unclick3";
3240 signal: "mouse,clicked,1";
3242 action: SIGNAL_EMIT "elm,action,click" "";
3244 program { name: "text_show";
3245 signal: "elm,state,text,visible";
3250 get_state(PART:"elm.swallow.content", st, 30, vl);
3251 if (!strcmp(st, "icononly"))
3253 set_state(PART:"elm.swallow.content", "visible", 0.0);
3254 set_state(PART:"padding_icon_text", "visible", 0.0);
3256 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3257 set_state(PART:"elm.text", "visible", 0.0);
3259 set_state(PART:"elm.text", "disabled_visible", 0.0);
3262 program { name: "text_hide";
3263 signal: "elm,state,text,hidden";
3268 get_state(PART:"elm.swallow.content", st, 30, vl);
3269 if (!strcmp(st, "visible"))
3271 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3272 set_state(PART:"padding_icon_text", "icononly", 0.0);
3274 set_state(PART:"elm.text", "default", 0.0);
3277 program { name: "icon_show";
3278 signal: "elm,state,icon,visible";
3283 get_state(PART:"elm.text", st, 30, vl);
3284 if (!strcmp(st, "visible"))
3286 set_state(PART:"elm.swallow.content", "visible", 0.0);
3287 set_state(PART:"padding_icon_text", "visible", 0.0);
3291 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3292 set_state(PART:"padding_icon_text", "icononly", 0.0);
3296 program { name: "icon_hide";
3297 signal: "elm,state,icon,hidden";
3299 action: STATE_SET "default" 0.0;
3300 target: "elm.swallow.content";
3301 target: "padding_icon_text";
3303 program { name: "disable";
3304 signal: "elm,state,disabled";
3306 action: STATE_SET "disabled" 0.0;
3307 target: "button_image";
3309 after: "disable_text";
3311 program { name: "disable_text";
3315 get_state(PART:"elm.text", st, 30, vl);
3316 if (!strcmp(st, "visible"))
3317 set_state(PART:"elm.text", "disabled_visible", 0.0);
3319 set_state(PART:"elm.text", "disabled", 0.0);
3320 set_int(button_state, BUTTON_STATE_DISABLED);
3323 program { name: "enable";
3324 signal: "elm,state,enabled";
3326 action: STATE_SET "default" 0.0;
3327 target: "button_image";
3329 after: "enable_text";
3331 program { name: "enable_text";
3335 get_state(PART:"elm.text", st, 30, vl);
3336 if (!strcmp(st, "disabled_visible"))
3337 set_state(PART:"elm.text", "visible", 0.0);
3339 set_state(PART:"elm.text", "default", 0.0);
3340 set_int(button_state, BUTTON_STATE_ENABLED);
3343 program { name: "focused";
3344 //signal: "elm,action,focus";
3346 action: STATE_SET "focused" 0.0;
3347 target: "button_image";
3350 program { name: "unfocused";
3351 //signal: "elm,action,unfocus";
3353 action: STATE_SET "default" 0.0;
3354 target: "button_image";
3355 after: "unfocus_text";
3357 program { name: "unfocus_text";
3358 action: STATE_SET "visible" 0.0;
3364 ///////////////////////////////////////////////////////////////////////////////////////
3365 group { name: "elm/button/base/multiline";
3366 alias: "elm/button/base/text_only/multiline";
3368 image: "00_button_04_normal.png" COMP;
3369 image: "00_button_04_press.png" COMP;
3370 image: "00_button_04_dim.png" COMP;
3373 public button_state = BUTTON_STATE_ENABLED;
3376 style { name: "btn_multiline_style";
3377 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
3384 part { name: "button_image";
3386 description { state: "default" 0.0;
3389 normal: "00_button_04_normal.png";
3394 description { state: "clicked" 0.0;
3395 inherit: "default" 0.0;
3396 image.normal: "00_button_04_press.png";
3398 description { state: "disabled" 0.0;
3399 inherit: "default" 0.0;
3400 image.normal: "00_button_04_dim.png";
3402 description { state: "focused" 0.0;
3403 inherit: "default" 0.0;
3404 image.normal: "00_button_04_press.png";
3407 part { name: "padding_left_top";
3411 description { state: "default" 0.0;
3413 rel2.relative: 0.0 0.0;
3419 part { name: "padding_right_bottom";
3423 description { state: "default" 0.0;
3425 rel1.relative: 1.0 1.0;
3431 part { name: "icon_rect";
3435 description { state: "default" 0.0;
3441 to_x: "elm.swallow.content";
3442 to_y: "padding_left_top";
3446 to_x: "elm.swallow.content";
3447 to_y: "padding_right_bottom";
3453 part { name: "padding_icon_text";
3457 description { state: "default" 0.0; //when only icon or no icon is there
3463 rel2.to: "icon_rect";
3468 description { state: "icononly" 0.0;
3469 inherit: "default" 0.0;
3471 description { state: "visible" 0.0; //when icon is visible
3477 rel2.to: "icon_rect";
3483 part { name: "elm.swallow.content";
3487 description { state: "default" 0.0;
3492 to: "padding_left_top";
3496 to_x: "padding_left_top";
3497 to_y: "padding_right_bottom";
3501 description { state: "visible" 0.0;
3506 to: "padding_left_top";
3510 to_x: "padding_left_top";
3511 to_y: "padding_right_bottom";
3514 aspect_preference: VERTICAL;
3516 description { state: "icononly" 0.0;
3520 to: "padding_left_top";
3524 to: "padding_right_bottom";
3527 aspect_preference: VERTICAL;
3530 part { name: "elm.text";
3535 description { state: "default" 0.0;
3539 to_x: "padding_icon_text";
3540 to_y: "padding_left_top";
3544 to: "padding_right_bottom";
3546 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3548 style: "btn_multiline_style";
3553 description { state: "visible" 0.0;
3554 inherit: "default" 0.0;
3558 description { state: "clicked" 0.0;
3559 inherit: "default" 0.0;
3562 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3564 description { state: "disabled" 0.0;
3565 inherit: "default" 0.0;
3568 description { state: "disabled_visible" 0.0;
3569 inherit: "default" 0.0;
3570 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
3574 description { state: "focused" 0.0;
3575 inherit: "default" 0.0;
3578 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3581 part { name: "over2";
3584 ignore_flags: ON_HOLD;
3585 description { state: "default" 0.0;
3589 part { name: "over3";
3592 description { state: "default" 0.0;
3596 part { name: "clipper";
3598 description { state: "default" 0.0;
3599 color: 255 255 255 255;
3602 part { name: "disabler";
3604 description { state: "default" 0.0;
3608 description { state: "disabled" 0.0;
3609 inherit: "default" 0.0;
3615 program { name: "button_click";
3616 signal: "mouse,down,1";
3618 action: SIGNAL_EMIT "elm,action,press" "";
3619 after: "button_click_anim";
3621 program { name: "button_click_anim";
3622 action: STATE_SET "clicked" 0.0;
3623 target: "button_image";
3624 after: "text_clicked";
3626 program { name: "text_clicked";
3630 get_state(PART:"elm.text", st, 30, vl);
3631 if (!strcmp(st, "visible"))
3632 set_state(PART:"elm.text", "clicked", 0.0);
3635 program { name: "button_unpress";
3636 action: SIGNAL_EMIT "elm,action,unpress" "";
3638 program { name: "button_mouseout_clicked";
3639 signal: "mouse,up,1";
3644 get_state(PART:"elm.swallow.content", st, 30, vl);
3645 if (strcmp(st, "icononly"))
3647 emit("elm,action,default,text,set", "");
3648 set_state(PART:"elm.text", "visible", 0.0);
3650 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3651 set_state(PART:"button_image", "default", 0.0);
3653 after: button_unpress;
3655 program { name: "button_unclick3";
3656 signal: "mouse,clicked,1";
3658 action: SIGNAL_EMIT "elm,action,click" "";
3660 program { name: "text_show";
3661 signal: "elm,state,text,visible";
3666 get_state(PART:"elm.swallow.content", st, 30, vl);
3667 if (!strcmp(st, "icononly"))
3669 set_state(PART:"elm.swallow.content", "visible", 0.0);
3670 set_state(PART:"padding_icon_text", "visible", 0.0);
3672 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3673 set_state(PART:"elm.text", "visible", 0.0);
3675 set_state(PART:"elm.text", "disabled_visible", 0.0);
3678 program { name: "text_hide";
3679 signal: "elm,state,text,hidden";
3684 get_state(PART:"elm.swallow.content", st, 30, vl);
3685 if (!strcmp(st, "visible"))
3687 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3688 set_state(PART:"padding_icon_text", "icononly", 0.0);
3690 set_state(PART:"elm.text", "default", 0.0);
3693 program { name: "icon_show";
3694 signal: "elm,state,icon,visible";
3699 get_state(PART:"elm.text", st, 30, vl);
3700 if (!strcmp(st, "visible"))
3702 set_state(PART:"elm.swallow.content", "visible", 0.0);
3703 set_state(PART:"padding_icon_text", "visible", 0.0);
3707 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3708 set_state(PART:"padding_icon_text", "icononly", 0.0);
3712 program { name: "icon_hide";
3713 signal: "elm,state,icon,hidden";
3715 action: STATE_SET "default" 0.0;
3716 target: "elm.swallow.content";
3717 target: "padding_icon_text";
3719 program { name: "disable";
3720 signal: "elm,state,disabled";
3722 action: STATE_SET "disabled" 0.0;
3723 target: "button_image";
3725 after: "disable_text";
3727 program { name: "disable_text";
3731 get_state(PART:"elm.text", st, 30, vl);
3732 if (!strcmp(st, "visible"))
3733 set_state(PART:"elm.text", "disabled_visible", 0.0);
3735 set_state(PART:"elm.text", "disabled", 0.0);
3736 set_int(button_state, BUTTON_STATE_DISABLED);
3739 program { name: "enable";
3740 signal: "elm,state,enabled";
3742 action: STATE_SET "default" 0.0;
3743 target: "button_image";
3745 after: "enable_text";
3747 program { name: "enable_text";
3751 get_state(PART:"elm.text", st, 30, vl);
3752 if (!strcmp(st, "disabled_visible"))
3753 set_state(PART:"elm.text", "visible", 0.0);
3755 set_state(PART:"elm.text", "default", 0.0);
3756 set_int(button_state, BUTTON_STATE_ENABLED);
3759 program { name: "focused";
3760 //signal: "elm,action,focus";
3762 action: STATE_SET "focused" 0.0;
3763 target: "button_image";
3766 program { name: "unfocused";
3767 //signal: "elm,action,unfocus";
3769 action: STATE_SET "default" 0.0;
3770 target: "button_image";
3771 after: "unfocus_text";
3773 program { name: "unfocus_text";
3774 action: STATE_SET "visible" 0.0;
3780 ///////////////////////////////////////////////////////////////////////////////////////
3781 group { name: "elm/button/base/default";
3783 image: "00_button_01_normal.png" COMP;
3784 image: "00_button_01_normal_press.png" COMP;
3785 image: "00_button_01_normal_dim.png" COMP;
3788 public button_state = BUTTON_STATE_ENABLED;
3791 part { name: "button_image";
3793 description { state: "default" 0.0;
3794 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3796 normal: "00_button_01_normal.png";
3797 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3801 description { state: "clicked" 0.0;
3802 inherit: "default" 0.0;
3803 image.normal: "00_button_01_normal_press.png";
3805 description { state: "disabled" 0.0;
3806 inherit: "default" 0.0;
3807 image.normal: "00_button_01_normal_dim.png";
3809 description { state: "focused" 0.0;
3810 inherit: "default" 0.0;
3811 image.normal: "00_button_01_normal_press.png";
3814 part { name: "padding_left_top";
3818 description { state: "default" 0.0;
3820 rel2.relative: 0.0 0.0;
3821 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3826 part { name: "padding_right_bottom";
3830 description { state: "default" 0.0;
3832 rel1.relative: 1.0 1.0;
3833 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3838 part { name: "padding_icon_text";
3842 description { state: "default" 0.0; //when only icon or no icon is there
3847 to: "elm.swallow.content";
3849 rel2.to: "elm.swallow.content";
3853 description { state: "icononly" 0.0;
3854 inherit: "default" 0.0;
3856 description { state: "visible" 0.0; //when icon is visible
3857 inherit: "default" 0.0;
3858 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3861 part { name: "elm.swallow.content";
3865 description { state: "default" 0.0;
3870 to: "padding_left_top";
3874 to_x: "padding_left_top";
3875 to_y: "padding_right_bottom";
3879 description { state: "visible" 0.0;
3884 to: "padding_left_top";
3888 to_x: "padding_left_top";
3889 to_y: "padding_right_bottom";
3892 aspect_preference: VERTICAL;
3894 description { state: "icononly" 0.0;
3895 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3898 to_x: "padding_left_top";
3902 to_x: "padding_right_bottom";
3905 aspect_preference: VERTICAL;
3908 part { name: "elm.text";
3913 description { state: "default" 0.0;
3918 to_x: "padding_icon_text";
3919 to_y: "padding_left_top";
3923 to: "padding_right_bottom";
3925 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3927 font: "SLP:style=Medium";
3928 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3932 description { state: "visible" 0.0;
3933 inherit: "default" 0.0;
3935 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3937 description { state: "clicked" 0.0;
3938 inherit: "default" 0.0;
3940 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3941 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3943 description { state: "disabled" 0.0;
3944 inherit: "default" 0.0;
3946 description { state: "disabled_visible" 0.0;
3947 inherit: "default" 0.0;
3948 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3950 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3952 description { state: "focused" 0.0;
3953 inherit: "default" 0.0;
3956 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3959 part { name: "over2";
3962 ignore_flags: ON_HOLD;
3963 description { state: "default" 0.0;
3967 part { name: "over3";
3970 description { state: "default" 0.0;
3974 part { name: "clipper";
3976 description { state: "default" 0.0;
3977 color: 255 255 255 255;
3980 part { name: "disabler";
3982 description { state: "default" 0.0;
3986 description { state: "disabled" 0.0;
3987 inherit: "default" 0.0;
3993 program { name: "button_click";
3994 signal: "mouse,down,1";
3996 action: SIGNAL_EMIT "elm,action,press" "";
3997 after: "button_click_anim";
3999 program { name: "button_click_anim";
4000 action: STATE_SET "clicked" 0.0;
4001 target: "button_image";
4002 after: "text_clicked";
4004 program { name: "text_clicked";
4008 get_state(PART:"elm.text", st, 30, vl);
4009 if (!strcmp(st, "visible"))
4010 set_state(PART:"elm.text", "clicked", 0.0);
4013 program { name: "button_unpress";
4014 action: SIGNAL_EMIT "elm,action,unpress" "";
4016 program { name: "button_mouseout_clicked";
4017 signal: "mouse,up,1";
4022 get_state(PART:"elm.swallow.content", st, 30, vl);
4023 if (strcmp(st, "icononly"))
4025 emit("elm,action,default,text,set", "");
4026 set_state(PART:"elm.text", "visible", 0.0);
4028 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4029 set_state(PART:"button_image", "default", 0.0);
4031 after: button_unpress;
4033 program { name: "button_unclick3";
4034 signal: "mouse,clicked,1";
4036 action: SIGNAL_EMIT "elm,action,click" "";
4038 program { name: "text_show";
4039 signal: "elm,state,text,visible";
4044 get_state(PART:"elm.swallow.content", st, 30, vl);
4045 if (!strcmp(st, "icononly"))
4047 set_state(PART:"elm.swallow.content", "visible", 0.0);
4048 set_state(PART:"padding_icon_text", "visible", 0.0);
4050 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4051 set_state(PART:"elm.text", "visible", 0.0);
4053 set_state(PART:"elm.text", "disabled_visible", 0.0);
4056 program { name: "text_hide";
4057 signal: "elm,state,text,hidden";
4062 get_state(PART:"elm.swallow.content", st, 30, vl);
4063 if (!strcmp(st, "visible"))
4065 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4066 set_state(PART:"padding_icon_text", "icononly", 0.0);
4068 set_state(PART:"elm.text", "default", 0.0);
4071 program { name: "icon_show";
4072 signal: "elm,state,icon,visible";
4077 get_state(PART:"elm.text", st, 30, vl);
4078 if (!strcmp(st, "visible"))
4080 set_state(PART:"elm.swallow.content", "visible", 0.0);
4081 set_state(PART:"padding_icon_text", "visible", 0.0);
4085 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4086 set_state(PART:"padding_icon_text", "icononly", 0.0);
4090 program { name: "icon_hide";
4091 signal: "elm,state,icon,hidden";
4093 action: STATE_SET "default" 0.0;
4094 target: "elm.swallow.content";
4095 target: "padding_icon_text";
4097 program { name: "disable";
4098 signal: "elm,state,disabled";
4100 action: STATE_SET "disabled" 0.0;
4101 target: "button_image";
4103 after: "disable_text";
4105 program { name: "disable_text";
4109 get_state(PART:"elm.text", st, 30, vl);
4110 if (!strcmp(st, "visible"))
4111 set_state(PART:"elm.text", "disabled_visible", 0.0);
4113 set_state(PART:"elm.text", "disabled", 0.0);
4114 set_int(button_state, BUTTON_STATE_DISABLED);
4117 program { name: "enable";
4118 signal: "elm,state,enabled";
4120 action: STATE_SET "default" 0.0;
4121 target: "button_image";
4123 after: "enable_text";
4125 program { name: "enable_text";
4129 get_state(PART:"elm.text", st, 30, vl);
4130 if (!strcmp(st, "disabled_visible"))
4131 set_state(PART:"elm.text", "visible", 0.0);
4133 set_state(PART:"elm.text", "default", 0.0);
4134 set_int(button_state, BUTTON_STATE_ENABLED);
4137 program { name: "focused";
4138 //signal: "elm,action,focus";
4140 action: STATE_SET "focused" 0.0;
4141 target: "button_image";
4144 program { name: "unfocused";
4145 //signal: "elm,action,unfocus";
4147 action: STATE_SET "default" 0.0;
4148 target: "button_image";
4149 after: "unfocus_text";
4151 program { name: "unfocus_text";
4152 action: STATE_SET "visible" 0.0;
4158 ///////////////////////////////////////////////////////////////////////////////////////
4159 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
4160 group { name: "elm/button/base/"style_name; \
4162 image: image_normal COMP; \
4163 image: image_press COMP; \
4164 image: image_disable COMP; \
4167 public button_state = BUTTON_STATE_ENABLED; \
4170 part { name: "button_image"; \
4172 description { state: "default" 0.0; \
4173 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4175 normal: image_normal; \
4176 border: COLORSELECTOR_BUTTON_BORDER; \
4180 description { state: "clicked" 0.0; \
4181 inherit: "default" 0.0; \
4182 image.normal: image_press; \
4184 description { state: "disabled" 0.0; \
4185 inherit: "default" 0.0; \
4186 image.normal: image_disable; \
4188 description { state: "focused" 0.0; \
4189 inherit: "default" 0.0; \
4190 image.normal: image_press; \
4193 part { name: "over2"; \
4196 ignore_flags: ON_HOLD; \
4197 description { state: "default" 0.0; \
4201 part { name: "over3"; \
4204 description { state: "default" 0.0; \
4208 part { name: "disabler"; \
4210 description { state: "default" 0.0; \
4214 description { state: "disabled" 0.0; \
4215 inherit: "default" 0.0; \
4221 program { name: "button_click"; \
4222 signal: "mouse,down,1"; \
4224 action: SIGNAL_EMIT "elm,action,press" ""; \
4225 after: "button_click_anim"; \
4227 program { name: "button_click_anim"; \
4228 action: STATE_SET "clicked" 0.0; \
4229 target: "button_image"; \
4231 program { name: "button_unpress"; \
4232 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4234 program { name: "button_mouseout_clicked"; \
4235 signal: "mouse,up,1"; \
4238 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
4239 set_state(PART:"button_image", "default", 0.0); \
4241 after: button_unpress; \
4243 program { name: "button_unclick3"; \
4244 signal: "mouse,clicked,1"; \
4246 action: SIGNAL_EMIT "elm,action,click" ""; \
4248 program { name: "disable"; \
4249 signal: "elm,state,disabled"; \
4251 action: STATE_SET "disabled" 0.0; \
4252 target: "button_image"; \
4253 target: "disabler"; \
4255 set_int(button_state, BUTTON_STATE_DISABLED); \
4258 program { name: "enable"; \
4259 signal: "elm,state,enabled"; \
4261 action: STATE_SET "default" 0.0; \
4262 target: "button_image"; \
4263 target: "disabler"; \
4265 set_int(button_state, BUTTON_STATE_ENABLED); \
4270 ///////////////////////////////////////////////////////////////////////////////////////
4271 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")
4272 ///////////////////////////////////////////////////////////////////////////////////////
4273 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")
4274 ///////////////////////////////////////////////////////////////////////////////////////
4275 group { name: "elm/button/base/hidden";
4277 image: "00_button_sweep.png" COMP;
4278 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4281 public button_state = BUTTON_STATE_ENABLED;
4284 part { name: "button_image";
4286 description { state: "default" 0.0;
4287 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4289 normal: "00_button_sweep.png";
4290 border: BUTTON_HIDDEN_BG_BORDER_INC;
4294 description { state: "clicked" 0.0;
4295 inherit: "default" 0.0;
4296 image.normal: "00_button_sweep_press.png";
4298 description { state: "disabled" 0.0;
4299 inherit: "default" 0.0;
4301 description { state: "focused" 0.0;
4302 inherit: "default" 0.0;
4303 image.normal: "00_button_sweep_press.png";
4306 part { name: "padding_left_top";
4310 description { state: "default" 0.0;
4312 rel2.relative: 0.0 0.0;
4313 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4318 part { name: "padding_right_bottom";
4322 description { state: "default" 0.0;
4324 rel1.relative: 1.0 1.0;
4325 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4330 part { name: "icon_rect";
4334 description { state: "default" 0.0;
4335 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4339 to_x: "elm.swallow.content";
4340 to_y: "padding_left_top";
4344 to_x: "elm.swallow.content";
4345 to_y: "padding_right_bottom";
4351 part { name: "padding_icon_text";
4355 description { state: "default" 0.0; //when only icon or no icon is there
4361 rel2.to: "icon_rect";
4366 description { state: "icononly" 0.0;
4367 inherit: "default" 0.0;
4369 description { state: "visible" 0.0; //when icon is visible
4375 rel2.to: "icon_rect";
4377 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4381 part { name: "elm.swallow.content";
4385 description { state: "default" 0.0;
4390 to: "padding_left_top";
4394 to_x: "padding_left_top";
4395 to_y: "padding_right_bottom";
4399 description { state: "visible" 0.0;
4404 to: "padding_left_top";
4408 to_x: "padding_left_top";
4409 to_y: "padding_right_bottom";
4412 aspect_preference: VERTICAL;
4414 description { state: "icononly" 0.0;
4415 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4418 to: "padding_left_top";
4422 to_x: "padding_left_top";
4423 to_y: "padding_right_bottom";
4426 aspect_preference: VERTICAL;
4429 part { name: "elm.text";
4434 description { state: "default" 0.0;
4438 to_x: "padding_icon_text";
4439 to_y: "padding_left_top";
4443 to: "padding_right_bottom";
4445 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4447 font: "SLP:style=Medium";
4448 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4452 description { state: "visible" 0.0;
4453 inherit: "default" 0.0;
4455 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4457 description { state: "clicked" 0.0;
4458 inherit: "default" 0.0;
4461 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4463 description { state: "disabled" 0.0;
4464 inherit: "default" 0.0;
4467 description { state: "disabled_visible" 0.0;
4468 inherit: "default" 0.0;
4469 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4471 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4473 description { state: "focused" 0.0;
4474 inherit: "default" 0.0;
4477 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4480 part { name: "over2";
4483 ignore_flags: ON_HOLD;
4484 description { state: "default" 0.0;
4488 part { name: "over3";
4491 description { state: "default" 0.0;
4495 part { name: "clipper";
4497 description { state: "default" 0.0;
4498 color: 255 255 255 255;
4501 part { name: "disabler";
4503 description { state: "default" 0.0;
4507 description { state: "disabled" 0.0;
4508 inherit: "default" 0.0;
4514 program { name: "button_click";
4515 signal: "mouse,down,1";
4517 action: SIGNAL_EMIT "elm,action,press" "";
4518 after: "button_click_anim";
4520 program { name: "button_click_anim";
4521 action: STATE_SET "clicked" 0.0;
4522 target: "button_image";
4523 after: "text_clicked";
4525 program { name: "text_clicked";
4529 get_state(PART:"elm.text", st, 30, vl);
4530 if (!strcmp(st, "visible"))
4531 set_state(PART:"elm.text", "clicked", 0.0);
4534 program { name: "button_unpress";
4535 action: SIGNAL_EMIT "elm,action,unpress" "";
4537 program { name: "button_mouseout_clicked";
4538 signal: "mouse,up,1";
4543 get_state(PART:"elm.swallow.content", st, 30, vl);
4544 if (strcmp(st, "icononly"))
4546 emit("elm,action,default,text,set", "");
4547 set_state(PART:"elm.text", "visible", 0.0);
4549 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4550 set_state(PART:"button_image", "default", 0.0);
4552 after: button_unpress;
4554 program { name: "button_unclick3";
4555 signal: "mouse,clicked,1";
4557 action: SIGNAL_EMIT "elm,action,click" "";
4559 program { name: "text_show";
4560 signal: "elm,state,text,visible";
4565 get_state(PART:"elm.swallow.content", st, 30, vl);
4566 if (!strcmp(st, "icononly"))
4568 set_state(PART:"elm.swallow.content", "visible", 0.0);
4569 set_state(PART:"padding_icon_text", "visible", 0.0);
4571 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4572 set_state(PART:"elm.text", "visible", 0.0);
4574 set_state(PART:"elm.text", "disabled_visible", 0.0);
4577 program { name: "text_hide";
4578 signal: "elm,state,text,hidden";
4583 get_state(PART:"elm.swallow.content", st, 30, vl);
4584 if (!strcmp(st, "visible"))
4586 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4587 set_state(PART:"padding_icon_text", "icononly", 0.0);
4589 set_state(PART:"elm.text", "default", 0.0);
4592 program { name: "icon_show";
4593 signal: "elm,state,icon,visible";
4598 get_state(PART:"elm.text", st, 30, vl);
4599 if (!strcmp(st, "visible"))
4601 set_state(PART:"elm.swallow.content", "visible", 0.0);
4602 set_state(PART:"padding_icon_text", "visible", 0.0);
4606 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4607 set_state(PART:"padding_icon_text", "icononly", 0.0);
4611 program { name: "icon_hide";
4612 signal: "elm,state,icon,hidden";
4614 action: STATE_SET "default" 0.0;
4615 target: "elm.swallow.content";
4616 target: "padding_icon_text";
4618 program { name: "disable";
4619 signal: "elm,state,disabled";
4621 action: STATE_SET "disabled" 0.0;
4622 target: "button_image";
4624 after: "disable_text";
4626 program { name: "disable_text";
4630 get_state(PART:"elm.text", st, 30, vl);
4631 if (!strcmp(st, "visible"))
4632 set_state(PART:"elm.text", "disabled_visible", 0.0);
4634 set_state(PART:"elm.text", "disabled", 0.0);
4635 set_int(button_state, BUTTON_STATE_DISABLED);
4638 program { name: "enable";
4639 signal: "elm,state,enabled";
4641 action: STATE_SET "default" 0.0;
4642 target: "button_image";
4644 after: "enable_text";
4646 program { name: "enable_text";
4650 get_state(PART:"elm.text", st, 30, vl);
4651 if (!strcmp(st, "disabled_visible"))
4652 set_state(PART:"elm.text", "visible", 0.0);
4654 set_state(PART:"elm.text", "default", 0.0);
4655 set_int(button_state, BUTTON_STATE_ENABLED);
4658 program { name: "focused";
4659 //signal: "elm,action,focus";
4661 action: STATE_SET "focused" 0.0;
4662 target: "button_image";
4665 program { name: "unfocused";
4666 //signal: "elm,action,unfocus";
4668 action: STATE_SET "default" 0.0;
4669 target: "button_image";
4670 after: "unfocus_text";
4672 program { name: "unfocus_text";
4673 action: STATE_SET "visible" 0.0;
4679 ///////////////////////////////////////////////////////////////////////////////////////
4680 group { name: "elm/button/base/picker/bar/default";
4682 image: "00_picker_btn_normal.png" COMP;
4683 image: "00_picker_btn_press.png" COMP;
4686 public button_state = BUTTON_STATE_ENABLED;
4689 part { name: "button_image";
4691 description { state: "default" 0.0;
4692 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4694 normal: "00_picker_btn_normal.png";
4695 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4699 description { state: "clicked" 0.0;
4700 inherit: "default" 0.0;
4701 image.normal: "00_picker_btn_press.png";
4703 description { state: "disabled" 0.0;
4704 inherit: "default" 0.0;
4706 description { state: "focused" 0.0;
4707 inherit: "default" 0.0;
4708 image.normal: "00_picker_btn_press.png";
4711 part { name: "padding_left_top";
4715 description { state: "default" 0.0;
4717 rel2.relative: 0.0 0.0;
4718 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4723 part { name: "padding_right_bottom";
4727 description { state: "default" 0.0;
4729 rel1.relative: 1.0 1.0;
4730 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4735 part { name: "icon_rect";
4739 description { state: "default" 0.0;
4740 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
4744 to_x: "elm.swallow.content";
4745 to_y: "padding_left_top";
4749 to_x: "elm.swallow.content";
4750 to_y: "padding_right_bottom";
4756 part { name: "padding_icon_text";
4760 description { state: "default" 0.0; //when only icon or no icon is there
4766 rel2.to: "icon_rect";
4771 description { state: "icononly" 0.0;
4772 inherit: "default" 0.0;
4774 description { state: "visible" 0.0; //when icon is visible
4780 rel2.to: "icon_rect";
4782 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4786 part { name: "elm.swallow.content";
4790 description { state: "default" 0.0;
4795 to: "padding_left_top";
4799 to_x: "padding_left_top";
4800 to_y: "padding_right_bottom";
4804 description { state: "visible" 0.0;
4809 to: "padding_left_top";
4813 to_x: "padding_left_top";
4814 to_y: "padding_right_bottom";
4817 aspect_preference: VERTICAL;
4819 description { state: "icononly" 0.0;
4820 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4823 to: "padding_left_top";
4827 to_x: "padding_left_top";
4828 to_y: "padding_right_bottom";
4831 aspect_preference: VERTICAL;
4834 part { name: "elm.text";
4839 description { state: "default" 0.0;
4843 to_x: "padding_icon_text";
4844 to_y: "padding_left_top";
4848 to: "padding_right_bottom";
4850 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4852 font: "SLP:style=Medium";
4853 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4858 description { state: "visible" 0.0;
4859 inherit: "default" 0.0;
4861 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4863 description { state: "clicked" 0.0;
4864 inherit: "default" 0.0;
4867 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4869 description { state: "disabled" 0.0;
4870 inherit: "default" 0.0;
4871 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4873 description { state: "disabled_visible" 0.0;
4874 inherit: "default" 0.0;
4875 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4877 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4879 description { state: "focused" 0.0;
4880 inherit: "default" 0.0;
4883 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4886 part { name: "over2";
4889 ignore_flags: ON_HOLD;
4890 description { state: "default" 0.0;
4894 part { name: "over3";
4897 description { state: "default" 0.0;
4901 part { name: "clipper";
4903 description { state: "default" 0.0;
4904 color: 255 255 255 255;
4907 part { name: "disabler";
4909 description { state: "default" 0.0;
4913 description { state: "disabled" 0.0;
4914 inherit: "default" 0.0;
4920 program { name: "button_click";
4921 signal: "mouse,down,1";
4923 action: SIGNAL_EMIT "elm,action,press" "";
4924 after: "button_click_anim";
4926 program { name: "button_click_anim";
4927 action: STATE_SET "clicked" 0.0;
4928 target: "button_image";
4929 after: "text_clicked";
4931 program { name: "text_clicked";
4935 get_state(PART:"elm.text", st, 30, vl);
4936 if (!strcmp(st, "visible"))
4937 set_state(PART:"elm.text", "clicked", 0.0);
4940 program { name: "button_unpress";
4941 action: SIGNAL_EMIT "elm,action,unpress" "";
4943 program { name: "button_mouseout_clicked";
4944 signal: "mouse,up,1";
4949 get_state(PART:"elm.swallow.content", st, 30, vl);
4950 if (strcmp(st, "icononly"))
4952 emit("elm,action,default,text,set", "");
4953 set_state(PART:"elm.text", "visible", 0.0);
4955 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4956 set_state(PART:"button_image", "default", 0.0);
4958 after: button_unpress;
4960 program { name: "button_unclick3";
4961 signal: "mouse,clicked,1";
4963 action: SIGNAL_EMIT "elm,action,click" "";
4965 program { name: "text_show";
4966 signal: "elm,state,text,visible";
4971 get_state(PART:"elm.swallow.content", st, 30, vl);
4972 if (!strcmp(st, "icononly"))
4974 set_state(PART:"elm.swallow.content", "visible", 0.0);
4975 set_state(PART:"padding_icon_text", "visible", 0.0);
4977 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4978 set_state(PART:"elm.text", "visible", 0.0);
4980 set_state(PART:"elm.text", "disabled_visible", 0.0);
4983 program { name: "text_hide";
4984 signal: "elm,state,text,hidden";
4989 get_state(PART:"elm.swallow.content", st, 30, vl);
4990 if (!strcmp(st, "visible"))
4992 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4993 set_state(PART:"padding_icon_text", "icononly", 0.0);
4995 set_state(PART:"elm.text", "default", 0.0);
4998 program { name: "icon_show";
4999 signal: "elm,state,icon,visible";
5004 get_state(PART:"elm.text", st, 30, vl);
5005 if (!strcmp(st, "visible"))
5007 set_state(PART:"elm.swallow.content", "visible", 0.0);
5008 set_state(PART:"padding_icon_text", "visible", 0.0);
5012 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5013 set_state(PART:"padding_icon_text", "icononly", 0.0);
5017 program { name: "icon_hide";
5018 signal: "elm,state,icon,hidden";
5020 action: STATE_SET "default" 0.0;
5021 target: "elm.swallow.content";
5022 target: "padding_icon_text";
5024 program { name: "disable";
5025 signal: "elm,state,disabled";
5027 action: STATE_SET "disabled" 0.0;
5028 target: "button_image";
5030 after: "disable_text";
5032 program { name: "disable_text";
5036 get_state(PART:"elm.text", st, 30, vl);
5037 if (!strcmp(st, "visible"))
5038 set_state(PART:"elm.text", "disabled_visible", 0.0);
5040 set_state(PART:"elm.text", "disabled", 0.0);
5041 set_int(button_state, BUTTON_STATE_DISABLED);
5044 program { name: "enable";
5045 signal: "elm,state,enabled";
5047 action: STATE_SET "default" 0.0;
5048 target: "button_image";
5050 after: "enable_text";
5052 program { name: "enable_text";
5056 get_state(PART:"elm.text", st, 30, vl);
5057 if (!strcmp(st, "disabled_visible"))
5058 set_state(PART:"elm.text", "visible", 0.0);
5060 set_state(PART:"elm.text", "default", 0.0);
5061 set_int(button_state, BUTTON_STATE_ENABLED);
5064 program { name: "focused";
5065 //signal: "elm,action,focus";
5067 action: STATE_SET "focused" 0.0;
5068 target: "button_image";
5071 program { name: "unfocused";
5072 //signal: "elm,action,unfocus";
5074 action: STATE_SET "default" 0.0;
5075 target: "button_image";
5076 after: "unfocus_text";
5078 program { name: "unfocus_text";
5079 action: STATE_SET "visible" 0.0;
5085 ///////////////////////////////////////////////////////////////////////////////////////
5086 group { name: "elm/button/base/picker/prev/text/default";
5087 alias: "elm/button/base/picker/next/text/default";
5089 image: "00_picker_btn_normal.png" COMP;
5090 image: "00_picker_btn_press.png" COMP;
5093 public button_state = BUTTON_STATE_ENABLED;
5096 part { name: "button_image";
5098 description { state: "default" 0.0;
5099 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
5101 normal: "00_picker_btn_normal.png";
5102 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
5106 description { state: "clicked" 0.0;
5107 inherit: "default" 0.0;
5108 image.normal: "00_picker_btn_press.png";
5110 description { state: "disabled" 0.0;
5111 inherit: "default" 0.0;
5113 description { state: "focused" 0.0;
5114 inherit: "default" 0.0;
5115 image.normal: "00_picker_btn_press.png";
5118 part { name: "padding_left_top";
5122 description { state: "default" 0.0;
5124 rel2.relative: 0.0 0.0;
5125 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5130 part { name: "padding_right_bottom";
5134 description { state: "default" 0.0;
5136 rel1.relative: 1.0 1.0;
5137 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5142 part { name: "icon_rect";
5146 description { state: "default" 0.0;
5147 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5151 to_x: "elm.swallow.content";
5152 to_y: "padding_left_top";
5156 to_x: "elm.swallow.content";
5157 to_y: "padding_right_bottom";
5163 part { name: "padding_icon_text";
5167 description { state: "default" 0.0; //when only icon or no icon is there
5173 rel2.to: "icon_rect";
5178 description { state: "icononly" 0.0;
5179 inherit: "default" 0.0;
5181 description { state: "visible" 0.0; //when icon is visible
5187 rel2.to: "icon_rect";
5189 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5193 part { name: "elm.swallow.content";
5197 description { state: "default" 0.0;
5202 to: "padding_left_top";
5206 to_x: "padding_left_top";
5207 to_y: "padding_right_bottom";
5211 description { state: "visible" 0.0;
5216 to: "padding_left_top";
5220 to_x: "padding_left_top";
5221 to_y: "padding_right_bottom";
5224 aspect_preference: VERTICAL;
5226 description { state: "icononly" 0.0;
5227 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5230 to: "padding_left_top";
5234 to_x: "padding_left_top";
5235 to_y: "padding_right_bottom";
5238 aspect_preference: VERTICAL;
5241 part { name: "elm.text";
5246 description { state: "default" 0.0;
5250 to_x: "padding_icon_text";
5251 to_y: "padding_left_top";
5255 to: "padding_right_bottom";
5257 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5259 font: "SLP:style=Medium";
5260 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5265 description { state: "visible" 0.0;
5266 inherit: "default" 0.0;
5268 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5270 description { state: "clicked" 0.0;
5271 inherit: "default" 0.0;
5274 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5276 description { state: "disabled" 0.0;
5277 inherit: "default" 0.0;
5278 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5280 description { state: "disabled_visible" 0.0;
5281 inherit: "default" 0.0;
5282 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5284 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5286 description { state: "focused" 0.0;
5287 inherit: "default" 0.0;
5290 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5293 part { name: "over2";
5296 ignore_flags: ON_HOLD;
5297 description { state: "default" 0.0;
5301 part { name: "over3";
5304 description { state: "default" 0.0;
5308 part { name: "clipper";
5310 description { state: "default" 0.0;
5311 color: 255 255 255 255;
5314 part { name: "disabler";
5316 description { state: "default" 0.0;
5320 description { state: "disabled" 0.0;
5321 inherit: "default" 0.0;
5327 program { name: "button_click";
5328 signal: "mouse,down,1";
5330 action: SIGNAL_EMIT "elm,action,press" "";
5331 after: "button_click_anim";
5333 program { name: "button_click_anim";
5334 action: STATE_SET "clicked" 0.0;
5335 target: "button_image";
5336 after: "text_clicked";
5338 program { name: "text_clicked";
5342 get_state(PART:"elm.text", st, 30, vl);
5343 if (!strcmp(st, "visible"))
5344 set_state(PART:"elm.text", "clicked", 0.0);
5347 program { name: "button_unpress";
5348 action: SIGNAL_EMIT "elm,action,unpress" "";
5350 program { name: "button_mouseout_clicked";
5351 signal: "mouse,up,1";
5356 get_state(PART:"elm.swallow.content", st, 30, vl);
5357 if (strcmp(st, "icononly"))
5359 emit("elm,action,default,text,set", "");
5360 set_state(PART:"elm.text", "visible", 0.0);
5362 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5363 set_state(PART:"button_image", "default", 0.0);
5365 after: button_unpress;
5367 program { name: "button_unclick3";
5368 signal: "mouse,clicked,1";
5370 action: SIGNAL_EMIT "elm,action,click" "";
5372 program { name: "text_show";
5373 signal: "elm,state,text,visible";
5378 get_state(PART:"elm.swallow.content", st, 30, vl);
5379 if (!strcmp(st, "icononly"))
5381 set_state(PART:"elm.swallow.content", "visible", 0.0);
5382 set_state(PART:"padding_icon_text", "visible", 0.0);
5384 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5385 set_state(PART:"elm.text", "visible", 0.0);
5387 set_state(PART:"elm.text", "disabled_visible", 0.0);
5390 program { name: "text_hide";
5391 signal: "elm,state,text,hidden";
5396 get_state(PART:"elm.swallow.content", st, 30, vl);
5397 if (!strcmp(st, "visible"))
5399 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5400 set_state(PART:"padding_icon_text", "icononly", 0.0);
5402 set_state(PART:"elm.text", "default", 0.0);
5405 program { name: "icon_show";
5406 signal: "elm,state,icon,visible";
5411 get_state(PART:"elm.text", st, 30, vl);
5412 if (!strcmp(st, "visible"))
5414 set_state(PART:"elm.swallow.content", "visible", 0.0);
5415 set_state(PART:"padding_icon_text", "visible", 0.0);
5419 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5420 set_state(PART:"padding_icon_text", "icononly", 0.0);
5424 program { name: "icon_hide";
5425 signal: "elm,state,icon,hidden";
5427 action: STATE_SET "default" 0.0;
5428 target: "elm.swallow.content";
5429 target: "padding_icon_text";
5431 program { name: "disable";
5432 signal: "elm,state,disabled";
5434 action: STATE_SET "disabled" 0.0;
5435 target: "button_image";
5437 after: "disable_text";
5439 program { name: "disable_text";
5443 get_state(PART:"elm.text", st, 30, vl);
5444 if (!strcmp(st, "visible"))
5445 set_state(PART:"elm.text", "disabled_visible", 0.0);
5447 set_state(PART:"elm.text", "disabled", 0.0);
5448 set_int(button_state, BUTTON_STATE_DISABLED);
5451 program { name: "enable";
5452 signal: "elm,state,enabled";
5454 action: STATE_SET "default" 0.0;
5455 target: "button_image";
5457 after: "enable_text";
5459 program { name: "enable_text";
5463 get_state(PART:"elm.text", st, 30, vl);
5464 if (!strcmp(st, "disabled_visible"))
5465 set_state(PART:"elm.text", "visible", 0.0);
5467 set_state(PART:"elm.text", "default", 0.0);
5468 set_int(button_state, BUTTON_STATE_ENABLED);
5471 program { name: "focused";
5472 //signal: "elm,action,focus";
5474 action: STATE_SET "focused" 0.0;
5475 target: "button_image";
5478 program { name: "unfocused";
5479 //signal: "elm,action,unfocus";
5481 action: STATE_SET "default" 0.0;
5482 target: "button_image";
5483 after: "unfocus_text";
5485 program { name: "unfocus_text";
5486 action: STATE_SET "visible" 0.0;
5492 ///////////////////////////////////////////////////////////////////////////////////////
5493 group { name: "elm/button/base/contact";
5494 alias: "elm/button/base/text_only/contact";
5496 public button_state = BUTTON_STATE_ENABLED;
5499 part { name: "button_image";
5502 description { state: "default" 0.0;
5504 to_x: "padding.left";
5508 to_x: "padding.right";
5511 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5512 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5514 description { state: "clicked" 0.0;
5515 inherit: "default" 0.0;
5516 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5518 description { state: "disabled" 0.0;
5519 inherit: "default" 0.0;
5522 description { state: "focused" 0.0;
5523 inherit: "default" 0.0;
5526 part { name: "padding.left";
5529 description { state: "default" 0.0;
5531 min: BUTTON_CONTACT_PADDING_MIN_INC;
5541 part { name: "padding.right";
5544 description { state: "default" 0.0;
5546 min: BUTTON_CONTACT_PADDING_MIN_INC;
5556 part { name: "elm.text";
5560 description { state: "default" 0.0;
5563 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5565 font: "SLP:style=Medium";
5566 size: BUTTON_CONTACT_FONT_SIZE_INC;
5570 description { state: "visible" 0.0;
5571 inherit: "default" 0.0;
5575 description { state: "clicked" 0.0;
5576 inherit: "default" 0.0;
5579 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5581 description { state: "disabled" 0.0;
5582 inherit: "default" 0.0;
5585 description { state: "disabled_visible" 0.0;
5586 inherit: "default" 0.0;
5587 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5591 description { state: "focused" 0.0;
5592 inherit: "default" 0.0;
5595 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5598 part { name: "over1";
5600 description { state: "default" 0.0;
5601 rel2.relative: 1.0 0.5;
5604 part { name: "over2";
5606 ignore_flags: ON_HOLD;
5607 description { state: "default" 0.0;
5608 rel1.to: "button_image";
5609 rel2.to: "button_image";
5612 part { name: "over3";
5614 description { state: "default" 0.0;
5615 rel1.to: "button_image";
5616 rel2.to: "button_image";
5620 part { name: "disabler";
5622 description { state: "default" 0.0;
5623 rel1.to: "button_image";
5624 rel2.to: "button_image";
5628 description { state: "disabled" 0.0;
5629 inherit: "default" 0.0;
5635 program { name: "button_click";
5636 signal: "mouse,down,1";
5638 action: SIGNAL_EMIT "elm,action,press" "";
5639 after: "button_click_anim";
5641 program { name: "button_click_anim";
5642 action: STATE_SET "clicked" 0.0;
5643 target: "button_image";
5646 program { name: "button_unpress";
5647 action: SIGNAL_EMIT "elm,action,unpress" "";
5649 program { name: "button_mouseout_clicked";
5650 signal: "mouse,up,1";
5655 get_state(PART:"elm.text", st, 30, vl);
5656 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5658 emit("elm,action,default,text,set", "");
5659 set_state(PART:"elm.text", "visible", 0.0);
5661 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5662 set_state(PART:"button_image", "default", 0.0);
5664 after: button_unpress;
5666 program { name: "button_unclick3";
5667 signal: "mouse,clicked,1";
5669 action: SIGNAL_EMIT "elm,action,click" "";
5671 program { name: "text_show";
5672 signal: "elm,state,text,visible";
5675 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5676 set_state(PART:"elm.text", "visible", 0.0);
5678 set_state(PART:"elm.text", "disabled_visible", 0.0);
5681 program { name: "text_hide";
5682 signal: "elm,state,text,hidden";
5684 action: STATE_SET "default" 0.0;
5687 program { name: "disable";
5688 signal: "elm,state,disabled";
5690 action: STATE_SET "disabled" 0.0;
5691 target: "button_image";
5693 after: "disable_text";
5695 program { name: "disable_text";
5699 get_state(PART:"elm.text", st, 30, vl);
5700 if (!strcmp(st, "visible"))
5701 set_state(PART:"elm.text", "disabled_visible", 0.0);
5703 set_state(PART:"elm.text", "disabled", 0.0);
5704 set_int(button_state, BUTTON_STATE_DISABLED);
5707 program { name: "enable";
5708 signal: "elm,state,enabled";
5710 action: STATE_SET "default" 0.0;
5711 target: "button_image";
5713 after: "enable_text";
5715 program { name: "enable_text";
5719 get_state(PART:"elm.text", st, 30, vl);
5720 if (!strcmp(st, "disabled_visible"))
5721 set_state(PART:"elm.text", "visible", 0.0);
5723 set_state(PART:"elm.text", "default", 0.0);
5724 set_int(button_state, BUTTON_STATE_ENABLED);
5727 program { name: "focused";
5728 //signal: "elm,action,focus";
5730 action: STATE_SET "focused" 0.0;
5731 target: "button_image";
5734 program { name: "unfocused";
5735 //signal: "elm,action,unfocus";
5737 action: STATE_SET "default" 0.0;
5738 target: "button_image";
5739 action: STATE_SET "visible" 0.0;
5745 ///////////////////////////////////////////////////////////////////////////////////////
5746 group { name: "elm/button/base/naviframe/back_btn/default";
5747 alias: "elm/button/base/naviframe/prev_btn/default";
5748 alias: "elm/button/base/naviframe/end_btn/default";
5750 image: "00_winset_Back_btn_normal.png" COMP;
5751 image: "00_winset_Back_btn_press.png" COMP;
5752 image: "00_winset_Back.png" COMP;
5755 public button_state = BUTTON_STATE_ENABLED;
5758 part { name: "button_image";
5760 description { state: "default" 0.0;
5761 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5762 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5764 normal: "00_winset_Back_btn_normal.png";
5765 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
5769 description { state: "clicked" 0.0;
5770 inherit: "default" 0.0;
5771 image.normal: "00_winset_Back_btn_press.png";
5773 description { state: "disabled" 0.0;
5774 inherit: "default" 0.0;
5776 description { state: "focused" 0.0;
5777 inherit: "default" 0.0;
5778 image.normal: "00_winset_Back_btn_press.png";
5781 part { name: "back_button";
5784 description { state: "default" 0.0;
5785 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5786 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5787 rel1.to: "button_image";
5788 rel2.to: "button_image";
5789 image.normal: "00_winset_Back.png";
5791 description { state: "clicked" 0.0;
5792 inherit: "default" 0.0;
5795 part { name: "over2";
5798 ignore_flags: ON_HOLD;
5799 description { state: "default" 0.0;
5803 part { name: "over3";
5806 description { state: "default" 0.0;
5810 part { name: "disabler";
5812 description { state: "default" 0.0;
5816 description { state: "disabled" 0.0;
5817 inherit: "default" 0.0;
5823 program { name: "button_click";
5824 signal: "mouse,down,1";
5826 action: SIGNAL_EMIT "elm,action,press" "";
5827 after: "button_click_anim";
5829 program { name: "button_click_anim";
5830 action: STATE_SET "clicked" 0.0;
5831 target: "button_image";
5833 program { name: "button_unpress";
5834 action: SIGNAL_EMIT "elm,action,unpress" "";
5836 program { name: "button_mouseout_clicked";
5837 signal: "mouse,up,1";
5840 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5841 set_state(PART:"button_image", "default", 0.0);
5843 after: button_unpress;
5845 program { name: "button_unclick3";
5846 signal: "mouse,clicked,1";
5848 action: SIGNAL_EMIT "elm,action,click" "";
5850 program { name: "disable";
5851 signal: "elm,state,disabled";
5853 action: STATE_SET "disabled" 0.0;
5854 target: "button_image";
5856 after: "disable_button";
5858 program { name: "disable_button";
5860 set_int(button_state, BUTTON_STATE_DISABLED);
5863 program { name: "enable";
5864 signal: "elm,state,enabled";
5866 action: STATE_SET "default" 0.0;
5867 target: "button_image";
5869 after: "enable_button";
5871 program { name: "enable_button";
5873 set_int(button_state, BUTTON_STATE_ENABLED);
5879 ///////////////////////////////////////////////////////////////////////////////////////
5880 group { name: "elm/button/base/picker/prev/icon/default";
5882 image: "00_picker_btn_normal.png" COMP;
5883 image: "00_picker_btn_press.png" COMP;
5884 image: "00_picker_arrow_left.png" COMP;
5885 image: "00_picker_arrow_left_press.png" COMP;
5888 public button_state = BUTTON_STATE_ENABLED;
5891 part { name: "button_image";
5893 description { state: "default" 0.0;
5894 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5895 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5897 normal: "00_picker_btn_normal.png";
5898 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5902 description { state: "clicked" 0.0;
5903 inherit: "default" 0.0;
5904 image.normal: "00_picker_btn_press.png";
5906 description { state: "disabled" 0.0;
5907 inherit: "default" 0.0;
5909 description { state: "focused" 0.0;
5910 inherit: "default" 0.0;
5911 image.normal: "00_picker_btn_press.png";
5914 part { name: "padding_left_top";
5918 description { state: "default" 0.0;
5920 rel2.relative: 0.0 0.0;
5921 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5926 part { name: "padding_right_bottom";
5930 description { state: "default" 0.0;
5932 rel1.relative: 1.0 1.0;
5933 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5938 part { name: "left_arrow";
5941 description { state: "default" 0.0;
5942 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5943 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5946 to: "padding_left_top";
5950 to: "padding_right_bottom";
5952 image.normal: "00_picker_arrow_left.png";
5954 description { state: "clicked" 0.0;
5955 inherit: "default" 0.0;
5956 image.normal: "00_picker_arrow_left_press.png";
5959 part { name: "over2";
5962 ignore_flags: ON_HOLD;
5963 description { state: "default" 0.0;
5967 part { name: "over3";
5970 description { state: "default" 0.0;
5974 part { name: "disabler";
5976 description { state: "default" 0.0;
5980 description { state: "disabled" 0.0;
5981 inherit: "default" 0.0;
5987 program { name: "button_click";
5988 signal: "mouse,down,1";
5990 action: SIGNAL_EMIT "elm,action,press" "";
5991 after: "button_click_anim";
5993 program { name: "button_click_anim";
5994 action: STATE_SET "clicked" 0.0;
5995 target: "button_image";
5997 program { name: "button_unpress";
5998 action: SIGNAL_EMIT "elm,action,unpress" "";
6000 program { name: "button_mouseout_clicked";
6001 signal: "mouse,up,1";
6004 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6005 set_state(PART:"button_image", "default", 0.0);
6007 after: button_unpress;
6009 program { name: "button_unclick3";
6010 signal: "mouse,clicked,1";
6012 action: SIGNAL_EMIT "elm,action,click" "";
6014 program { name: "disable";
6015 signal: "elm,state,disabled";
6017 action: STATE_SET "disabled" 0.0;
6018 target: "button_image";
6020 after: "disable_button";
6022 program { name: "disable_button";
6024 set_int(button_state, BUTTON_STATE_DISABLED);
6027 program { name: "enable";
6028 signal: "elm,state,enabled";
6030 action: STATE_SET "default" 0.0;
6031 target: "button_image";
6033 after: "enable_button";
6035 program { name: "enable_button";
6037 set_int(button_state, BUTTON_STATE_ENABLED);
6040 program { name: "focused";
6041 //signal: "elm,action,focus";
6043 action: STATE_SET "focused" 0.0;
6044 target: "button_image";
6046 program { name: "unfocused";
6047 //signal: "elm,action,unfocus";
6049 action: STATE_SET "default" 0.0;
6050 target: "button_image";
6055 ///////////////////////////////////////////////////////////////////////////////////////
6056 group { name: "elm/button/base/picker/next/icon/default";
6058 image: "00_picker_btn_normal.png" COMP;
6059 image: "00_picker_btn_press.png" COMP;
6060 image: "00_picker_arrow_right.png" COMP;
6061 image: "00_picker_arrow_right_press.png" COMP;
6064 public button_state = BUTTON_STATE_ENABLED;
6067 part { name: "button_image";
6069 description { state: "default" 0.0;
6070 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6071 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6073 normal: "00_picker_btn_normal.png";
6074 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6078 description { state: "clicked" 0.0;
6079 inherit: "default" 0.0;
6080 image.normal: "00_picker_btn_press.png";
6082 description { state: "disabled" 0.0;
6083 inherit: "default" 0.0;
6085 description { state: "focused" 0.0;
6086 inherit: "default" 0.0;
6087 image.normal: "00_picker_btn_press.png";
6090 part { name: "padding_left_top";
6094 description { state: "default" 0.0;
6096 rel2.relative: 0.0 0.0;
6097 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6102 part { name: "padding_right_bottom";
6106 description { state: "default" 0.0;
6108 rel1.relative: 1.0 1.0;
6109 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6114 part { name: "right_arrow";
6117 description { state: "default" 0.0;
6118 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6119 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6122 to: "padding_left_top";
6126 to: "padding_right_bottom";
6128 image.normal: "00_picker_arrow_right.png";
6130 description { state: "clicked" 0.0;
6131 inherit: "default" 0.0;
6132 image.normal: "00_picker_arrow_right_press.png";
6135 part { name: "over2";
6138 ignore_flags: ON_HOLD;
6139 description { state: "default" 0.0;
6143 part { name: "over3";
6146 description { state: "default" 0.0;
6150 part { name: "disabler";
6152 description { state: "default" 0.0;
6156 description { state: "disabled" 0.0;
6157 inherit: "default" 0.0;
6163 program { name: "button_click";
6164 signal: "mouse,down,1";
6166 action: SIGNAL_EMIT "elm,action,press" "";
6167 after: "button_click_anim";
6169 program { name: "button_click_anim";
6170 action: STATE_SET "clicked" 0.0;
6171 target: "button_image";
6173 program { name: "button_unpress";
6174 action: SIGNAL_EMIT "elm,action,unpress" "";
6176 program { name: "button_mouseout_clicked";
6177 signal: "mouse,up,1";
6180 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6181 set_state(PART:"button_image", "default", 0.0);
6183 after: button_unpress;
6185 program { name: "button_unclick3";
6186 signal: "mouse,clicked,1";
6188 action: SIGNAL_EMIT "elm,action,click" "";
6190 program { name: "disable";
6191 signal: "elm,state,disabled";
6193 action: STATE_SET "disabled" 0.0;
6194 target: "button_image";
6196 after: "disable_button";
6198 program { name: "disable_button";
6200 set_int(button_state, BUTTON_STATE_DISABLED);
6203 program { name: "enable";
6204 signal: "elm,state,enabled";
6206 action: STATE_SET "default" 0.0;
6207 target: "button_image";
6209 after: "enable_button";
6211 program { name: "enable_button";
6213 set_int(button_state, BUTTON_STATE_ENABLED);
6216 program { name: "focused";
6217 //signal: "elm,action,focus";
6219 action: STATE_SET "focused" 0.0;
6220 target: "button_image";
6222 program { name: "unfocused";
6223 //signal: "elm,action,unfocus";
6225 action: STATE_SET "default" 0.0;
6226 target: "button_image";
6231 ///////////////////////////////////////////////////////////////////////////////////////
6232 group { name: "elm/button/base/naviframe_control/default";
6233 alias: "elm/button/base/naviframe_control/center";
6235 public button_state = BUTTON_STATE_ENABLED;
6238 image: "00_Option_header_bt.png" COMP;
6239 image: "00_Option_header_bt_dim.png" COMP;
6240 image: "00_Option_header_bt_press.png" COMP;
6243 part { name: "button_image";
6245 description { state: "default" 0.0;
6246 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6251 normal: "00_Option_header_bt.png";
6252 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6254 color: 255 255 255 255;
6256 description { state: "disabled" 0.0;
6257 inherit: "default" 0.0;
6258 image.normal: "00_Option_header_bt_dim.png";
6260 description { state: "clicked" 0.0;
6261 inherit: "default" 0.0;
6262 image.normal: "00_Option_header_bt_press.png";
6265 part { name: "padding_left_top";
6269 description { state: "default" 0.0;
6271 rel2.relative: 0.0 0.0;
6272 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6277 part { name: "padding_right_bottom";
6281 description { state: "default" 0.0;
6283 rel1.relative: 1.0 1.0;
6284 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6289 part { name: "icon_rect";
6293 description { state: "default" 0.0;
6298 to: "padding_left_top";
6302 to_x: "padding_left_top";
6303 to_y: "padding_right_bottom";
6308 description { state: "visible" 0.0;
6309 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6313 to: "padding_left_top";
6317 to_x: "padding_left_top";
6318 to_y: "padding_right_bottom";
6323 description { state: "icononly" 0.0;
6324 inherit: "default" 0.0;
6327 part { name: "padding_after_icon";
6331 description { state: "default" 0.0; //when only icon or no icon is there
6337 rel2.to: "icon_rect";
6342 description { state: "visible" 0.0;
6348 rel2.to: "icon_rect";
6350 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6353 description { state: "icononly" 0.0;
6354 inherit: "default" 0.0;
6357 part { name: "padding_before_text";
6361 description { state: "default" 0.0; //when only icon or no icon is there
6366 to_y: "padding_left_top";
6371 to_y: "padding_right_bottom";
6374 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6378 part { name: "elm.swallow.content";
6382 description { state: "default" 0.0;
6387 to: "padding_left_top";
6391 to_x: "padding_left_top";
6392 to_y: "padding_right_bottom";
6396 description { state: "visible" 0.0;
6398 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6399 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6403 to_x: "padding_before_text";
6404 to_y: "padding_left_top";
6408 to_x: "padding_before_text";
6409 to_y: "padding_right_bottom";
6412 aspect_preference: VERTICAL;
6414 description { state: "icononly" 0.0;
6415 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6416 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6419 to: "padding_left_top";
6423 to: "padding_right_bottom";
6426 aspect_preference: VERTICAL;
6429 part { name: "elm.text";
6434 description { state: "default" 0.0;
6438 to_x: "padding_after_icon";
6439 to_y: "padding_left_top";
6443 to: "padding_right_bottom";
6445 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6447 font: "SLP:style=Medium";
6448 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6453 description { state: "visible" 0.0;
6454 inherit: "default" 0.0;
6457 description { state: "clicked" 0.0;
6458 inherit: "default" 0.0;
6462 description { state: "focused" 0.0;
6463 inherit: "default" 0.0;
6466 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6469 part { name: "over2";
6472 ignore_flags: ON_HOLD;
6473 description { state: "default" 0.0;
6477 part { name: "over3";
6480 description { state: "default" 0.0;
6484 part { name: "clipper";
6486 description { state: "default" 0.0;
6487 color: 255 255 255 255;
6489 description { state: "disabled" 0.0;
6490 color: 255 255 255 127;
6493 part { name: "disabler";
6495 description { state: "default" 0.0;
6499 description { state: "disabled" 0.0;
6500 inherit: "default" 0.0;
6506 program { name: "button_click";
6507 signal: "mouse,down,1";
6509 action: SIGNAL_EMIT "elm,action,press" "";
6510 after: "button_click_anim";
6512 program { name: "button_click_anim";
6513 action: STATE_SET "clicked" 0.0;
6514 target: "button_image";
6515 after: "text_clicked";
6517 program { name: "text_clicked";
6521 get_state(PART:"elm.text", st, 30, vl);
6522 if (!strcmp(st, "visible"))
6523 set_state(PART:"elm.text", "clicked", 0.0);
6526 program { name: "button_unpress";
6527 action: SIGNAL_EMIT "elm,action,unpress" "";
6529 program { name: "button_mouseout_clicked";
6530 signal: "mouse,up,1";
6535 get_state(PART:"elm.swallow.content", st, 30, vl);
6536 if (strcmp(st, "icononly"))
6538 emit("elm,action,default,text,set", "");
6539 set_state(PART:"elm.text", "visible", 0.0);
6541 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6542 set_state(PART:"button_image", "default", 0.0);
6544 after: button_unpress;
6546 program { name: "button_unclick3";
6547 signal: "mouse,clicked,1";
6549 action: SIGNAL_EMIT "elm,action,click" "";
6551 program { name: "text_show";
6552 signal: "elm,state,text,visible";
6557 get_state(PART:"elm.swallow.content", st, 30, vl);
6558 if (!strcmp(st, "icononly"))
6560 set_state(PART:"elm.swallow.content", "visible", 0.0);
6561 set_state(PART:"icon_rect", "visible", 0.0);
6562 set_state(PART:"padding_after_icon", "visible", 0.0);
6564 set_state(PART:"elm.text", "visible", 0.0);
6567 program { name: "text_hide";
6568 signal: "elm,state,text,hidden";
6573 get_state(PART:"elm.swallow.content", st, 30, vl);
6574 if (!strcmp(st, "visible"))
6576 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6577 set_state(PART:"icon_rect", "icononly", 0.0);
6578 set_state(PART:"padding_after_icon", "icononly", 0.0);
6580 set_state(PART:"elm.text", "default", 0.0);
6583 program { name: "icon_show";
6584 signal: "elm,state,icon,visible";
6589 get_state(PART:"elm.text", st, 30, vl);
6590 if (!strcmp(st, "visible"))
6592 set_state(PART:"elm.swallow.content", "visible", 0.0);
6593 set_state(PART:"icon_rect", "visible", 0.0);
6594 set_state(PART:"padding_after_icon", "visible", 0.0);
6598 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6599 set_state(PART:"icon_rect", "icononly", 0.0);
6600 set_state(PART:"padding_after_icon", "icononly", 0.0);
6604 program { name: "icon_hide";
6605 signal: "elm,state,icon,hidden";
6607 action: STATE_SET "default" 0.0;
6608 target: "elm.swallow.content";
6609 target: "icon_rect";
6610 target: "padding_after_icon";
6612 program { name: "disable";
6613 signal: "elm,state,disabled";
6615 action: STATE_SET "disabled" 0.0;
6616 target: "button_image";
6619 after: "disable_text";
6621 program { name: "disable_text";
6625 set_int(button_state, BUTTON_STATE_DISABLED);
6626 get_state(PART:"elm.text", st, 30, vl);
6627 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6628 set_state(PART:"elm.text", "visible", 0.0);
6631 program { name: "enable";
6632 signal: "elm,state,enabled";
6634 action: STATE_SET "default" 0.0;
6635 target: "button_image";
6638 after: "enable_text";
6640 program { name: "enable_text";
6644 set_int(button_state, BUTTON_STATE_ENABLED);
6645 get_state(PART:"elm.text", st, 30, vl);
6646 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6647 set_state(PART:"elm.text", "visible", 0.0);
6650 program { name: "focused";
6651 action: STATE_SET "focused" 0.0;
6652 target: "button_image";
6655 program { name: "unfocused";
6656 action: STATE_SET "default" 0.0;
6657 target: "button_image";
6658 after: "unfocus_text";
6660 program { name: "unfocus_text";
6661 action: STATE_SET "visible" 0.0;
6667 ///////////////////////////////////////////////////////////////////////////////////////
6668 group { name: "elm/button/base/naviframe_control/multiline";
6670 public button_state = BUTTON_STATE_ENABLED;
6673 image: "00_Option_header_bt.png" COMP;
6674 image: "00_Option_header_bt_dim.png" COMP;
6675 image: "00_Option_header_bt_press.png" COMP;
6678 style { name: "btn_multiline_naviframe_controlbar_style";
6679 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6686 part { name: "button_image";
6688 description { state: "default" 0.0;
6689 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6693 normal: "00_Option_header_bt.png";
6694 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6696 color: 255 255 255 255;
6698 description { state: "disabled" 0.0;
6699 inherit: "default" 0.0;
6700 image.normal: "00_Option_header_bt_dim.png";
6702 description { state: "clicked" 0.0;
6703 inherit: "default" 0.0;
6704 image.normal: "00_Option_header_bt_press.png";
6707 part { name: "padding_left_top";
6711 description { state: "default" 0.0;
6713 rel2.relative: 0.0 0.0;
6714 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6719 part { name: "padding_right_bottom";
6723 description { state: "default" 0.0;
6725 rel1.relative: 1.0 1.0;
6726 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6731 part { name: "icon_rect";
6735 description { state: "default" 0.0;
6741 to_x: "elm.swallow.content";
6742 to_y: "padding_left_top";
6746 to_x: "elm.swallow.content";
6747 to_y: "padding_right_bottom";
6752 part { name: "padding_icon_text";
6756 description { state: "default" 0.0; //when only icon or no icon is there
6770 description { state: "visible" 0.0;
6771 inherit: "default" 0.0;
6772 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6782 description { state: "icononly" 0.0;
6783 inherit: "default" 0.0;
6786 part { name: "elm.swallow.content";
6790 description { state: "default" 0.0;
6795 to: "padding_left_top";
6799 to_x: "padding_left_top";
6800 to_y: "padding_right_bottom";
6804 description { state: "visible" 0.0;
6806 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6807 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6811 to: "padding_left_top";
6815 to_x: "padding_left_top";
6816 to_y: "padding_right_bottom";
6819 description { state: "icononly" 0.0;
6820 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6821 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6824 to: "padding_left_top";
6828 to: "padding_right_bottom";
6832 part { name: "elm.text";
6837 description { state: "default" 0.0;
6841 to_x: "padding_icon_text";
6842 to_y: "padding_left_top";
6846 to: "padding_right_bottom";
6848 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6850 style: "btn_multiline_naviframe_controlbar_style";
6855 description { state: "visible" 0.0;
6856 inherit: "default" 0.0;
6860 description { state: "clicked" 0.0;
6861 inherit: "default" 0.0;
6865 description { state: "focused" 0.0;
6866 inherit: "default" 0.0;
6869 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6872 part { name: "over2";
6875 ignore_flags: ON_HOLD;
6876 description { state: "default" 0.0;
6880 part { name: "over3";
6883 description { state: "default" 0.0;
6887 part { name: "clipper";
6889 description { state: "default" 0.0;
6890 color: 255 255 255 255;
6892 description { state: "disabled" 0.0;
6893 color: 255 255 255 127;
6896 part { name: "disabler";
6898 description { state: "default" 0.0;
6902 description { state: "disabled" 0.0;
6903 inherit: "default" 0.0;
6909 program { name: "button_click";
6910 signal: "mouse,down,1";
6912 action: SIGNAL_EMIT "elm,action,press" "";
6913 after: "button_click_anim";
6915 program { name: "button_click_anim";
6916 action: STATE_SET "clicked" 0.0;
6917 target: "button_image";
6918 after: "text_clicked";
6920 program { name: "text_clicked";
6924 get_state(PART:"elm.text", st, 30, vl);
6925 if (!strcmp(st, "visible"))
6926 set_state(PART:"elm.text", "clicked", 0.0);
6929 program { name: "button_unpress";
6930 action: SIGNAL_EMIT "elm,action,unpress" "";
6932 program { name: "button_mouseout_clicked";
6933 signal: "mouse,up,1";
6938 get_state(PART:"elm.swallow.content", st, 30, vl);
6939 if (strcmp(st, "icononly"))
6941 emit("elm,action,default,text,set", "");
6942 set_state(PART:"elm.text", "visible", 0.0);
6944 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6945 set_state(PART:"button_image", "default", 0.0);
6947 after: button_unpress;
6949 program { name: "button_unclick3";
6950 signal: "mouse,clicked,1";
6952 action: SIGNAL_EMIT "elm,action,click" "";
6954 program { name: "text_show";
6955 signal: "elm,state,text,visible";
6960 get_state(PART:"elm.swallow.content", st, 30, vl);
6961 if (!strcmp(st, "icononly"))
6963 set_state(PART:"elm.swallow.content", "visible", 0.0);
6964 set_state(PART:"padding_icon_text", "visible", 0.0);
6966 set_state(PART:"elm.text", "visible", 0.0);
6969 program { name: "text_hide";
6970 signal: "elm,state,text,hidden";
6975 get_state(PART:"elm.swallow.content", st, 30, vl);
6976 if (!strcmp(st, "visible"))
6978 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6979 set_state(PART:"padding_icon_text", "icononly", 0.0);
6981 set_state(PART:"elm.text", "default", 0.0);
6984 program { name: "icon_show";
6985 signal: "elm,state,icon,visible";
6990 get_state(PART:"elm.text", st, 30, vl);
6991 if (!strcmp(st, "visible"))
6993 set_state(PART:"elm.swallow.content", "visible", 0.0);
6994 set_state(PART:"padding_icon_text", "visible", 0.0);
6998 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6999 set_state(PART:"padding_icon_text", "icononly", 0.0);
7003 program { name: "icon_hide";
7004 signal: "elm,state,icon,hidden";
7006 action: STATE_SET "default" 0.0;
7007 target: "elm.swallow.content";
7008 target: "padding_icon_text";
7010 program { name: "disable";
7011 signal: "elm,state,disabled";
7013 action: STATE_SET "disabled" 0.0;
7014 target: "button_image";
7017 after: "disable_text";
7019 program { name: "disable_text";
7023 set_int(button_state, BUTTON_STATE_DISABLED);
7024 get_state(PART:"elm.text", st, 30, vl);
7025 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7026 set_state(PART:"elm.text", "visible", 0.0);
7029 program { name: "enable";
7030 signal: "elm,state,enabled";
7032 action: STATE_SET "default" 0.0;
7033 target: "button_image";
7036 after: "enable_text";
7038 program { name: "enable_text";
7042 set_int(button_state, BUTTON_STATE_ENABLED);
7043 get_state(PART:"elm.text", st, 30, vl);
7044 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7045 set_state(PART:"elm.text", "visible", 0.0);
7048 program { name: "focused";
7049 action: STATE_SET "focused" 0.0;
7050 target: "button_image";
7053 program { name: "unfocused";
7054 action: STATE_SET "default" 0.0;
7055 target: "button_image";
7056 after: "unfocus_text";
7058 program { name: "unfocus_text";
7059 action: STATE_SET "visible" 0.0;
7065 //////////////////////////////////////////////////////////////
7066 group { name: "elm/button/base/naviframe/title/default";
7068 image: "00_Title_btn.png" COMP;
7069 image: "00_Title_btn_press.png" COMP;
7072 public button_state = BUTTON_STATE_ENABLED;
7075 part { name: "button_image";
7077 description { state: "default" 0.0;
7078 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7079 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7081 normal: "00_Title_btn.png";
7082 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7086 description { state: "clicked" 0.0;
7087 inherit: "default" 0.0;
7088 image.normal: "00_Title_btn_press.png";
7090 description { state: "disabled" 0.0;
7091 inherit: "default" 0.0;
7093 description { state: "focused" 0.0;
7094 inherit: "default" 0.0;
7095 image.normal: "00_Title_btn_press.png";
7098 part { name: "padding_left_top";
7102 description { state: "default" 0.0;
7104 rel2.relative: 0.0 0.0;
7105 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7114 description { state: "default" 0.0;
7115 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7118 description { state: "visible" 0.0;
7119 inherit: "default" 0.0;
7120 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7122 description { state: "icononly" 0.0;
7123 inherit: "default" 0.0;
7124 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7127 part { name: "padding_right_bottom";
7131 description { state: "default" 0.0;
7133 rel1.relative: 1.0 1.0;
7134 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7139 part { name: "icon_rect";
7143 description { state: "default" 0.0;
7149 to: "padding_left_top";
7153 to_x: "padding_left_top";
7154 to_y: "padding_right_bottom";
7158 description { state: "visible" 0.0;
7160 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7161 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7165 to: "padding_left_top";
7169 to_x: "padding_left_top";
7170 to_y: "padding_right_bottom";
7174 description { state: "icononly" 0.0;
7175 inherit: "default" 0.0;
7178 part { name: "padding_after_icon";
7182 description { state: "default" 0.0; //when only icon or no icon is there
7188 rel2.to: "icon_rect";
7193 description { state: "visible" 0.0;
7200 rel2.to: "icon_rect";
7202 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7204 description { state: "icononly" 0.0;
7205 inherit: "default" 0.0;
7208 part { name: "padding_before_text";
7212 description { state: "default" 0.0; //when only icon or no icon is there
7217 to_y: "padding_left_top";
7222 to_y: "padding_right_bottom";
7225 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7229 part { name: "elm.swallow.content";
7233 description { state: "default" 0.0;
7238 to: "padding_left_top";
7242 to_x: "padding_left_top";
7243 to_y: "padding_right_bottom";
7247 description { state: "visible" 0.0;
7249 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7250 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7254 to_x: "padding_before_text";
7255 to_y: "padding_left_top";
7259 to_x: "padding_before_text";
7260 to_y: "padding_right_bottom";
7263 description { state: "icononly" 0.0;
7264 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7265 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7268 part { name: "elm.text";
7273 description { state: "default" 0.0;
7277 to_x: "padding_after_icon";
7278 to_y: "padding_left_top";
7282 to: "padding_right_bottom";
7284 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7286 font: "SLP:style=Medium";
7287 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7292 description { state: "visible" 0.0;
7293 inherit: "default" 0.0;
7296 description { state: "clicked" 0.0;
7297 inherit: "default" 0.0;
7299 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7301 description { state: "disabled" 0.0;
7302 inherit: "default" 0.0;
7305 description { state: "disabled_visible" 0.0;
7306 inherit: "default" 0.0;
7307 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7310 description { state: "focused" 0.0;
7311 inherit: "default" 0.0;
7313 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7316 part { name: "over2";
7319 ignore_flags: ON_HOLD;
7320 description { state: "default" 0.0;
7324 part { name: "over3";
7327 description { state: "default" 0.0;
7331 part { name: "clipper";
7333 description { state: "default" 0.0;
7334 color: 255 255 255 255;
7337 part { name: "disabler";
7339 description { state: "default" 0.0;
7343 description { state: "disabled" 0.0;
7344 inherit: "default" 0.0;
7350 program { name: "button_click";
7351 signal: "mouse,down,1";
7353 action: SIGNAL_EMIT "elm,action,press" "";
7354 after: "button_click_anim";
7356 program { name: "button_click_anim";
7357 action: STATE_SET "clicked" 0.0;
7358 target: "button_image";
7359 after: "text_clicked";
7361 program { name: "text_clicked";
7365 get_state(PART:"elm.text", st, 30, vl);
7366 if (!strcmp(st, "visible"))
7367 set_state(PART:"elm.text", "clicked", 0.0);
7370 program { name: "button_unpress";
7371 action: SIGNAL_EMIT "elm,action,unpress" "";
7373 program { name: "button_mouseout_clicked";
7374 signal: "mouse,up,1";
7379 get_state(PART:"elm.swallow.content", st, 30, vl);
7380 if (strcmp(st, "icononly"))
7382 emit("elm,action,default,text,set", "");
7383 set_state(PART:"elm.text", "visible", 0.0);
7385 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7386 set_state(PART:"button_image", "default", 0.0);
7388 after: button_unpress;
7390 program { name: "button_unclick3";
7391 signal: "mouse,clicked,1";
7393 action: SIGNAL_EMIT "elm,action,click" "";
7395 program { name: "text_show";
7396 signal: "elm,state,text,visible";
7401 get_state(PART:"elm.swallow.content", st, 30, vl);
7402 if (!strcmp(st, "icononly"))
7404 set_state(PART:"elm.swallow.content", "visible", 0.0);
7405 set_state(PART:"icon_rect", "visible", 0.0);
7406 set_state(PART:"padding_after_icon", "visible", 0.0);
7407 set_state(PART:"bg", "visible", 0.0);
7409 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7410 set_state(PART:"elm.text", "visible", 0.0);
7412 set_state(PART:"elm.text", "disabled_visible", 0.0);
7415 program { name: "text_hide";
7416 signal: "elm,state,text,hidden";
7421 get_state(PART:"elm.swallow.content", st, 30, vl);
7422 if (!strcmp(st, "visible"))
7424 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7425 set_state(PART:"icon_rect", "icononly", 0.0);
7426 set_state(PART:"padding_after_icon", "icononly", 0.0);
7427 set_state(PART:"bg", "icononly", 0.0);
7429 set_state(PART:"elm.text", "default", 0.0);
7432 program { name: "icon_show";
7433 signal: "elm,state,icon,visible";
7438 get_state(PART:"elm.text", st, 30, vl);
7439 if (!strcmp(st, "visible"))
7441 set_state(PART:"elm.swallow.content", "visible", 0.0);
7442 set_state(PART:"icon_rect", "visible", 0.0);
7443 set_state(PART:"padding_after_icon", "visible", 0.0);
7444 set_state(PART:"bg", "visible", 0.0);
7448 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7449 set_state(PART:"icon_rect", "icononly", 0.0);
7450 set_state(PART:"padding_after_icon", "icononly", 0.0);
7451 set_state(PART:"bg", "icononly", 0.0);
7455 program { name: "icon_hide";
7456 signal: "elm,state,icon,hidden";
7458 action: STATE_SET "default" 0.0;
7459 target: "elm.swallow.content";
7460 target: "padding_after_icon";
7461 target: "icon_rect";
7464 program { name: "disable";
7465 signal: "elm,state,disabled";
7467 action: STATE_SET "disabled" 0.0;
7468 target: "button_image";
7470 after: "disable_text";
7472 program { name: "disable_text";
7476 get_state(PART:"elm.text", st, 30, vl);
7477 if (!strcmp(st, "visible"))
7478 set_state(PART:"elm.text", "disabled_visible", 0.0);
7480 set_state(PART:"elm.text", "disabled", 0.0);
7481 set_int(button_state, BUTTON_STATE_DISABLED);
7484 program { name: "enable";
7485 signal: "elm,state,enabled";
7487 action: STATE_SET "default" 0.0;
7488 target: "button_image";
7490 after: "enable_text";
7492 program { name: "enable_text";
7496 get_state(PART:"elm.text", st, 30, vl);
7497 if (!strcmp(st, "disabled_visible"))
7498 set_state(PART:"elm.text", "visible", 0.0);
7500 set_state(PART:"elm.text", "default", 0.0);
7501 set_int(button_state, BUTTON_STATE_ENABLED);
7504 program { name: "focused";
7505 //signal: "elm,action,focus";
7507 action: STATE_SET "focused" 0.0;
7508 target: "button_image";
7511 program { name: "unfocused";
7512 //signal: "elm,action,unfocus";
7514 action: STATE_SET "default" 0.0;
7515 target: "button_image";
7516 after: "unfocus_text";
7518 program { name: "unfocus_text";
7519 action: STATE_SET "visible" 0.0;
7525 /////////////////////////////////////////////////////////////////////////////////////////
7526 group { name: "elm/button/base/naviframe/more/default";
7528 image: "00_Title_btn.png" COMP;
7529 image: "00_Title_btn_press.png" COMP;
7530 image: "00_winset_more.png" COMP;
7533 public button_state = BUTTON_STATE_ENABLED;
7536 part { name: "button_image";
7538 description { state: "default" 0.0;
7539 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
7540 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
7542 normal: "00_Title_btn.png";
7543 border: BUTTON_NAVIFRAME_MORE_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;
7554 description { state: "focused" 0.0;
7555 inherit: "default" 0.0;
7556 image.normal: "00_Title_btn_press.png";
7559 part { name: "more_image";
7562 description { state: "default" 0.0;
7563 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
7564 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
7565 rel1.to: "button_image";
7566 rel2.to: "button_image";
7567 image.normal: "00_winset_more.png";
7569 description { state: "clicked" 0.0;
7570 inherit: "default" 0.0;
7573 part { name: "over2";
7576 ignore_flags: ON_HOLD;
7577 description { state: "default" 0.0;
7581 part { name: "over3";
7584 description { state: "default" 0.0;
7588 part { name: "disabler";
7590 description { state: "default" 0.0;
7594 description { state: "disabled" 0.0;
7595 inherit: "default" 0.0;
7601 program { name: "button_click";
7602 signal: "mouse,down,1";
7604 action: SIGNAL_EMIT "elm,action,press" "";
7605 after: "button_click_anim";
7607 program { name: "button_click_anim";
7608 action: STATE_SET "clicked" 0.0;
7609 target: "button_image";
7611 program { name: "button_unpress";
7612 action: SIGNAL_EMIT "elm,action,unpress" "";
7614 program { name: "button_mouseout_clicked";
7615 signal: "mouse,up,1";
7618 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7619 set_state(PART:"button_image", "default", 0.0);
7621 after: button_unpress;
7623 program { name: "button_unclick3";
7624 signal: "mouse,clicked,1";
7626 action: SIGNAL_EMIT "elm,action,click" "";
7628 program { name: "disable";
7629 signal: "elm,state,disabled";
7631 action: STATE_SET "disabled" 0.0;
7632 target: "button_image";
7634 after: "disable_button";
7636 program { name: "disable_button";
7638 set_int(button_state, BUTTON_STATE_DISABLED);
7641 program { name: "enable";
7642 signal: "elm,state,enabled";
7644 action: STATE_SET "default" 0.0;
7645 target: "button_image";
7647 after: "enable_button";
7649 program { name: "enable_button";
7651 set_int(button_state, BUTTON_STATE_ENABLED);
7657 ///////////////////////////////////////////////////////////////////////////////////////
7658 group { name: "elm/button/base/controlbar/vertical";
7660 public button_state = BUTTON_STATE_ENABLED;
7663 style { name: "controlbar_style";
7664 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";
7667 tag: "hilight" "+ font=SLP:style=Bold";
7668 tag: "b" "+ font=SLP:style=Bold";
7673 part { name: "button_image";
7676 description { state: "default" 0.0;
7684 part { name: "padding_left_top";
7688 description { state: "default" 0.0;
7690 rel2.relative: 0.0 0.0;
7696 part { name: "padding_right_bottom";
7700 description { state: "default" 0.0;
7702 rel1.relative: 1.0 1.0;
7713 description { state: "default" 0.0;
7718 to: "padding_left_top";
7722 to_x: "padding_right_bottom";
7723 to_y: "padding_left_top";
7728 description { state: "visible" 0.0;
7729 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7733 to: "padding_left_top";
7737 to_x: "padding_right_bottom";
7738 to_y: "padding_left_top";
7743 description { state: "icononly" 0.0;
7744 inherit: "default" 0.0;
7747 part { name: "padding_after_icon";
7751 description { state: "default" 0.0; //when only icon or no icon is there
7757 rel2.to: "icon_rect";
7762 description { state: "visible" 0.0;
7768 rel2.to: "icon_rect";
7773 description { state: "icononly" 0.0;
7774 inherit: "default" 0.0;
7777 part { name: "padding_before_text";
7781 description { state: "default" 0.0; //when only icon or no icon is there
7785 to_x: "padding_left_top";
7790 to_x: "padding_right_bottom";
7798 part { name: "elm.swallow.content";
7801 clip_to: "disabler";
7802 description { state: "default" 0.0;
7807 to: "padding_left_top";
7811 to_x: "padding_right_bottom";
7812 to_y: "padding_left_top";
7816 description { state: "visible" 0.0;
7818 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7819 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7822 to: "padding_left_top";
7826 to_x: "padding_right_bottom";
7827 to_y: "padding_before_text";
7830 aspect_preference: HORIZONTAL;
7832 description { state: "icononly" 0.0;
7833 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7834 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7837 to: "padding_left_top";
7841 to: "padding_right_bottom";
7844 aspect_preference: HORIZONTAL;
7847 part { name: "elm.text";
7851 clip_to: "disabler";
7852 description { state: "default" 0.0;
7856 to_x: "padding_left_top";
7857 to_y: "padding_after_icon";
7861 to: "padding_right_bottom";
7863 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7866 style: "controlbar_style";
7871 description { state: "visible" 0.0;
7872 inherit: "default" 0.0;
7875 description { state: "clicked" 0.0;
7876 inherit: "default" 0.0;
7878 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7880 description { state: "focused" 0.0;
7881 inherit: "default" 0.0;
7883 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7886 part { name: "over2";
7889 ignore_flags: ON_HOLD;
7890 description { state: "default" 0.0;
7893 description { state: "disabled" 0.0;
7894 inherit: "default" 0.0;
7898 part { name: "over3";
7901 description { state: "default" 0.0;
7905 part { name: "disabler";
7907 description { state: "default" 0.0;
7908 color: 255 255 255 255;
7911 description { state: "disabled" 0.0;
7912 inherit: "default" 0.0;
7913 color: 255 255 255 127;
7919 program { name: "button_click";
7920 signal: "mouse,down,1";
7922 action: SIGNAL_EMIT "elm,action,press" "";
7923 after: "button_click_anim";
7925 program { name: "button_click_anim";
7926 action: STATE_SET "clicked" 0.0;
7927 target: "button_image";
7928 after: "text_clicked";
7930 program { name: "text_clicked";
7934 get_state(PART:"elm.text", st, 30, vl);
7935 if (!strcmp(st, "visible"))
7936 set_state(PART:"elm.text", "clicked", 0.0);
7939 program { name: "button_unpress";
7940 action: SIGNAL_EMIT "elm,action,unpress" "";
7942 program { name: "button_mouseout_clicked";
7943 signal: "mouse,up,1";
7948 get_state(PART:"elm.swallow.content", st, 30, vl);
7949 if (strcmp(st, "icononly"))
7951 emit("elm,action,default,text,set", "");
7952 set_state(PART:"elm.text", "visible", 0.0);
7954 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7955 set_state(PART:"button_image", "default", 0.0);
7957 after: button_unpress;
7959 program { name: "button_unclick3";
7960 signal: "mouse,clicked,1";
7962 action: SIGNAL_EMIT "elm,action,click" "";
7964 program { name: "text_show";
7965 signal: "elm,state,text,visible";
7970 get_state(PART:"elm.swallow.content", st, 30, vl);
7971 if (!strcmp(st, "icononly"))
7973 set_state(PART:"elm.swallow.content", "visible", 0.0);
7974 set_state(PART:"icon_rect", "visible", 0.0);
7975 set_state(PART:"padding_after_icon", "visible", 0.0);
7977 set_state(PART:"elm.text", "visible", 0.0);
7980 program { name: "text_hide";
7981 signal: "elm,state,text,hidden";
7986 get_state(PART:"elm.swallow.content", st, 30, vl);
7987 if (!strcmp(st, "visible"))
7989 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7990 set_state(PART:"icon_rect", "icononly", 0.0);
7991 set_state(PART:"padding_after_icon", "icononly", 0.0);
7993 set_state(PART:"elm.text", "default", 0.0);
7996 program { name: "icon_show";
7997 signal: "elm,state,icon,visible";
8002 get_state(PART:"elm.text", st, 30, vl);
8003 if (!strcmp(st, "visible"))
8005 set_state(PART:"elm.swallow.content", "visible", 0.0);
8006 set_state(PART:"icon_rect", "visible", 0.0);
8007 set_state(PART:"padding_after_icon", "visible", 0.0);
8011 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8012 set_state(PART:"icon_rect", "icononly", 0.0);
8013 set_state(PART:"padding_after_icon", "icononly", 0.0);
8017 program { name: "icon_hide";
8018 signal: "elm,state,icon,hidden";
8020 action: STATE_SET "default" 0.0;
8021 target: "elm.swallow.content";
8022 target: "icon_rect";
8023 target: "padding_after_icon";
8025 program { name: "disable";
8026 signal: "elm,state,disabled";
8028 action: STATE_SET "disabled" 0.0;
8031 after: "disable_text";
8033 program { name: "disable_text";
8037 set_int(button_state, BUTTON_STATE_DISABLED);
8038 get_state(PART:"elm.text", st, 30, vl);
8039 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8040 set_state(PART:"elm.text", "visible", 0.0);
8043 program { name: "enable";
8044 signal: "elm,state,enabled";
8046 action: STATE_SET "default" 0.0;
8049 after: "enable_text";
8051 program { name: "enable_text";
8055 set_int(button_state, BUTTON_STATE_ENABLED);
8056 get_state(PART:"elm.text", st, 30, vl);
8057 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8058 set_state(PART:"elm.text", "visible", 0.0);
8061 program { name: "focused";
8062 action: STATE_SET "focused" 0.0;
8063 target: "button_image";
8066 program { name: "unfocused";
8067 action: STATE_SET "default" 0.0;
8068 target: "button_image";
8069 after: "unfocus_text";
8071 program { name: "unfocus_text";
8072 action: STATE_SET "visible" 0.0;
8078 ///////////////////////////////////////////////////////////////////////////////////////
8079 group { name: "elm/button/base/controlbar/horizontal_center";
8081 public button_state = BUTTON_STATE_ENABLED;
8084 part { name: "button_image";
8087 description { state: "default" 0.0;
8094 description { state: "clicked" 0.0;
8095 inherit: "default" 0.0;
8099 part { name: "padding_left_top";
8103 description { state: "default" 0.0;
8105 rel2.relative: 0.0 0.0;
8111 part { name: "padding_right_bottom";
8115 description { state: "default" 0.0;
8117 rel1.relative: 1.0 1.0;
8123 part { name: "icon_rect";
8127 description { state: "default" 0.0;
8132 to: "padding_left_top";
8136 to_x: "padding_left_top";
8137 to_y: "padding_right_bottom";
8142 description { state: "visible" 0.0;
8143 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8147 to: "padding_left_top";
8151 to_x: "padding_left_top";
8152 to_y: "padding_right_bottom";
8157 description { state: "icononly" 0.0;
8158 inherit: "default" 0.0;
8159 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8162 part { name: "padding_after_icon";
8166 description { state: "default" 0.0; //when only icon or no icon is there
8172 rel2.to: "icon_rect";
8177 description { state: "visible" 0.0;
8183 rel2.to: "icon_rect";
8188 description { state: "icononly" 0.0;
8189 inherit: "default" 0.0;
8192 part { name: "padding_before_text";
8196 description { state: "default" 0.0; //when only icon or no icon is there
8201 to_y: "padding_left_top";
8206 to_y: "padding_right_bottom";
8213 part { name: "elm.swallow.content";
8216 clip_to: "disabler";
8217 description { state: "default" 0.0;
8222 to: "padding_left_top";
8226 to_x: "padding_left_top";
8227 to_y: "padding_right_bottom";
8231 description { state: "visible" 0.0;
8233 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8234 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8238 to_x: "padding_before_text";
8239 to_y: "padding_left_top";
8243 to_x: "padding_before_text";
8244 to_y: "padding_right_bottom";
8247 aspect_preference: VERTICAL;
8249 description { state: "icononly" 0.0;
8250 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8251 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8254 to: "padding_left_top";
8258 to: "padding_right_bottom";
8261 aspect_preference: VERTICAL;
8264 part { name: "elm.text";
8268 clip_to: "disabler";
8269 description { state: "default" 0.0;
8273 to_x: "padding_after_icon";
8274 to_y: "padding_left_top";
8278 to: "padding_right_bottom";
8280 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8282 font: "SLP:style=Medium";
8283 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
8288 description { state: "visible" 0.0;
8289 inherit: "default" 0.0;
8292 description { state: "clicked" 0.0;
8293 inherit: "default" 0.0;
8297 description { state: "focused" 0.0;
8298 inherit: "default" 0.0;
8301 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8304 part { name: "over2";
8307 ignore_flags: ON_HOLD;
8308 description { state: "default" 0.0;
8311 description { state: "disabled" 0.0;
8312 inherit: "default" 0.0;
8316 part { name: "over3";
8319 description { state: "default" 0.0;
8323 part { name: "disabler";
8325 description { state: "default" 0.0;
8326 color: 255 255 255 255;
8328 description { state: "disabled" 0.0;
8329 color: 255 255 255 127;
8334 program { name: "button_click";
8335 signal: "mouse,down,1";
8337 action: SIGNAL_EMIT "elm,action,press" "";
8338 after: "button_click_anim";
8340 program { name: "button_click_anim";
8341 action: STATE_SET "clicked" 0.0;
8342 target: "button_image";
8343 after: "text_clicked";
8345 program { name: "text_clicked";
8349 get_state(PART:"elm.text", st, 30, vl);
8350 if (!strcmp(st, "visible"))
8351 set_state(PART:"elm.text", "clicked", 0.0);
8354 program { name: "button_unpress";
8355 action: SIGNAL_EMIT "elm,action,unpress" "";
8357 program { name: "button_mouseout_clicked";
8358 signal: "mouse,up,1";
8363 get_state(PART:"elm.swallow.content", st, 30, vl);
8364 if (strcmp(st, "icononly"))
8366 emit("elm,action,default,text,set", "");
8367 set_state(PART:"elm.text", "visible", 0.0);
8369 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8370 set_state(PART:"button_image", "default", 0.0);
8372 after: button_unpress;
8374 program { name: "button_unclick3";
8375 signal: "mouse,clicked,1";
8377 action: SIGNAL_EMIT "elm,action,click" "";
8379 program { name: "text_show";
8380 signal: "elm,state,text,visible";
8385 get_state(PART:"elm.swallow.content", st, 30, vl);
8386 if (!strcmp(st, "icononly"))
8388 set_state(PART:"elm.swallow.content", "visible", 0.0);
8389 set_state(PART:"icon_rect", "visible", 0.0);
8390 set_state(PART:"padding_after_icon", "visible", 0.0);
8392 set_state(PART:"elm.text", "visible", 0.0);
8395 program { name: "text_hide";
8396 signal: "elm,state,text,hidden";
8401 get_state(PART:"elm.swallow.content", st, 30, vl);
8402 if (!strcmp(st, "visible"))
8404 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8405 set_state(PART:"icon_rect", "icononly", 0.0);
8406 set_state(PART:"padding_after_icon", "icononly", 0.0);
8408 set_state(PART:"elm.text", "default", 0.0);
8411 program { name: "icon_show";
8412 signal: "elm,state,icon,visible";
8417 get_state(PART:"elm.text", st, 30, vl);
8418 if (!strcmp(st, "visible"))
8420 set_state(PART:"elm.swallow.content", "visible", 0.0);
8421 set_state(PART:"icon_rect", "visible", 0.0);
8422 set_state(PART:"padding_after_icon", "visible", 0.0);
8426 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8427 set_state(PART:"icon_rect", "icononly", 0.0);
8428 set_state(PART:"padding_after_icon", "icononly", 0.0);
8432 program { name: "icon_hide";
8433 signal: "elm,state,icon,hidden";
8435 action: STATE_SET "default" 0.0;
8436 target: "elm.swallow.content";
8437 target: "icon_rect";
8438 target: "padding_after_icon";
8440 program { name: "disable";
8441 signal: "elm,state,disabled";
8443 action: STATE_SET "disabled" 0.0;
8446 after: "disable_text";
8448 program { name: "disable_text";
8452 set_int(button_state, BUTTON_STATE_DISABLED);
8453 get_state(PART:"elm.text", st, 30, vl);
8454 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8455 set_state(PART:"elm.text", "visible", 0.0);
8458 program { name: "enable";
8459 signal: "elm,state,enabled";
8461 action: STATE_SET "default" 0.0;
8464 after: "enable_text";
8466 program { name: "enable_text";
8470 set_int(button_state, BUTTON_STATE_ENABLED);
8471 get_state(PART:"elm.text", st, 30, vl);
8472 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8473 set_state(PART:"elm.text", "visible", 0.0);
8476 program { name: "focused";
8477 action: STATE_SET "focused" 0.0;
8478 target: "button_image";
8481 program { name: "unfocused";
8482 action: STATE_SET "default" 0.0;
8483 target: "button_image";
8484 after: "unfocus_text";
8486 program { name: "unfocus_text";
8487 action: STATE_SET "visible" 0.0;
8493 ///////////////////////////////////////////////////////////////////////////////////////
8494 group { name: "elm/button/base/controlbar/horizontal_left";
8496 public button_state = BUTTON_STATE_ENABLED;
8499 part { name: "button_image";
8502 description { state: "default" 0.0;
8509 description { state: "clicked" 0.0;
8510 inherit: "default" 0.0;
8514 part { name: "padding_left_top";
8518 description { state: "default" 0.0;
8520 rel2.relative: 0.0 0.0;
8526 part { name: "padding_right_bottom";
8530 description { state: "default" 0.0;
8532 rel1.relative: 1.0 1.0;
8538 part { name: "icon_rect";
8542 description { state: "default" 0.0;
8547 to: "padding_left_top";
8551 to_x: "padding_left_top";
8552 to_y: "padding_right_bottom";
8557 description { state: "visible" 0.0;
8558 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8562 to: "padding_left_top";
8566 to_x: "padding_left_top";
8567 to_y: "padding_right_bottom";
8572 description { state: "icononly" 0.0;
8573 inherit: "default" 0.0;
8576 part { name: "padding_after_icon";
8580 description { state: "default" 0.0; //when only icon or no icon is there
8586 rel2.to: "icon_rect";
8591 description { state: "visible" 0.0;
8597 rel2.to: "icon_rect";
8602 description { state: "icononly" 0.0;
8603 inherit: "default" 0.0;
8606 part { name: "padding_before_text";
8610 description { state: "default" 0.0; //when only icon or no icon is there
8615 to_y: "padding_left_top";
8620 to_y: "padding_right_bottom";
8627 part { name: "elm.swallow.content";
8630 clip_to: "disabler";
8631 description { state: "default" 0.0;
8636 to: "padding_left_top";
8640 to_x: "padding_left_top";
8641 to_y: "padding_right_bottom";
8645 description { state: "visible" 0.0;
8647 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8648 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8652 to_x: "padding_before_text";
8653 to_y: "padding_left_top";
8657 to_x: "padding_before_text";
8658 to_y: "padding_right_bottom";
8661 aspect_preference: VERTICAL;
8663 description { state: "icononly" 0.0;
8664 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8665 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8668 to: "padding_left_top";
8672 to: "padding_right_bottom";
8675 aspect_preference: VERTICAL;
8678 part { name: "elm.text";
8682 clip_to: "disabler";
8683 description { state: "default" 0.0;
8687 to_x: "padding_after_icon";
8688 to_y: "padding_left_top";
8692 to: "padding_right_bottom";
8695 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8697 font: "SLP:style=Medium";
8704 description { state: "visible" 0.0;
8705 inherit: "default" 0.0;
8708 description { state: "clicked" 0.0;
8709 inherit: "default" 0.0;
8713 description { state: "focused" 0.0;
8714 inherit: "default" 0.0;
8717 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8720 part { name: "over2";
8723 ignore_flags: ON_HOLD;
8724 description { state: "default" 0.0;
8728 part { name: "over3";
8731 description { state: "default" 0.0;
8735 part { name: "disabler";
8737 description { state: "default" 0.0;
8738 color: 255 255 255 255;
8740 description { state: "disabled" 0.0;
8741 color: 255 255 255 127;
8746 program { name: "button_click";
8747 signal: "mouse,down,1";
8749 action: SIGNAL_EMIT "elm,action,press" "";
8750 after: "button_click_anim";
8752 program { name: "button_click_anim";
8753 action: STATE_SET "clicked" 0.0;
8754 target: "button_image";
8755 after: "text_clicked";
8757 program { name: "text_clicked";
8761 get_state(PART:"elm.text", st, 30, vl);
8762 if (!strcmp(st, "visible"))
8763 set_state(PART:"elm.text", "clicked", 0.0);
8766 program { name: "button_unpress";
8767 action: SIGNAL_EMIT "elm,action,unpress" "";
8769 program { name: "button_mouseout_clicked";
8770 signal: "mouse,up,1";
8775 get_state(PART:"elm.swallow.content", st, 30, vl);
8776 if (strcmp(st, "icononly"))
8778 emit("elm,action,default,text,set", "");
8779 set_state(PART:"elm.text", "visible", 0.0);
8781 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8782 set_state(PART:"button_image", "default", 0.0);
8784 after: button_unpress;
8786 program { name: "button_unclick3";
8787 signal: "mouse,clicked,1";
8789 action: SIGNAL_EMIT "elm,action,click" "";
8791 program { name: "text_show";
8792 signal: "elm,state,text,visible";
8797 get_state(PART:"elm.swallow.content", st, 30, vl);
8798 if (!strcmp(st, "icononly"))
8800 set_state(PART:"elm.swallow.content", "visible", 0.0);
8801 set_state(PART:"icon_rect", "visible", 0.0);
8802 set_state(PART:"padding_after_icon", "visible", 0.0);
8804 set_state(PART:"elm.text", "visible", 0.0);
8807 program { name: "text_hide";
8808 signal: "elm,state,text,hidden";
8813 get_state(PART:"elm.swallow.content", st, 30, vl);
8814 if (!strcmp(st, "visible"))
8816 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8817 set_state(PART:"icon_rect", "icononly", 0.0);
8818 set_state(PART:"padding_after_icon", "icononly", 0.0);
8820 set_state(PART:"elm.text", "default", 0.0);
8823 program { name: "icon_show";
8824 signal: "elm,state,icon,visible";
8829 get_state(PART:"elm.text", st, 30, vl);
8830 if (!strcmp(st, "visible"))
8832 set_state(PART:"elm.swallow.content", "visible", 0.0);
8833 set_state(PART:"icon_rect", "visible", 0.0);
8834 set_state(PART:"padding_after_icon", "visible", 0.0);
8838 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8839 set_state(PART:"icon_rect", "icononly", 0.0);
8840 set_state(PART:"padding_after_icon", "icononly", 0.0);
8844 program { name: "icon_hide";
8845 signal: "elm,state,icon,hidden";
8847 action: STATE_SET "default" 0.0;
8848 target: "elm.swallow.content";
8849 target: "icon_rect";
8850 target: "padding_after_icon";
8852 program { name: "disable";
8853 signal: "elm,state,disabled";
8855 action: STATE_SET "disabled" 0.0;
8857 after: "disable_text";
8859 program { name: "disable_text";
8863 set_int(button_state, BUTTON_STATE_DISABLED);
8864 get_state(PART:"elm.text", st, 30, vl);
8865 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8866 set_state(PART:"elm.text", "visible", 0.0);
8869 program { name: "enable";
8870 signal: "elm,state,enabled";
8872 action: STATE_SET "default" 0.0;
8874 after: "enable_text";
8876 program { name: "enable_text";
8880 set_int(button_state, BUTTON_STATE_ENABLED);
8881 get_state(PART:"elm.text", st, 30, vl);
8882 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8883 set_state(PART:"elm.text", "visible", 0.0);
8886 program { name: "focused";
8887 action: STATE_SET "focused" 0.0;
8888 target: "button_image";
8891 program { name: "unfocused";
8892 action: STATE_SET "default" 0.0;
8893 target: "button_image";
8894 after: "unfocus_text";
8896 program { name: "unfocus_text";
8897 action: STATE_SET "visible" 0.0;
8903 ///////////////////////////////////////////////////////////////////////////////////////
8904 group { name: "elm/button/base/controlbar/horizontal_right";
8906 public button_state = BUTTON_STATE_ENABLED;
8909 part { name: "button_image";
8912 description { state: "default" 0.0;
8919 description { state: "clicked" 0.0;
8920 inherit: "default" 0.0;
8924 part { name: "padding_left_top";
8928 description { state: "default" 0.0;
8930 rel2.relative: 0.0 0.0;
8936 part { name: "padding_right_bottom";
8940 description { state: "default" 0.0;
8942 rel1.relative: 1.0 1.0;
8948 part { name: "icon_rect";
8952 description { state: "default" 0.0;
8957 to: "padding_left_top";
8961 to_x: "padding_left_top";
8962 to_y: "padding_right_bottom";
8967 description { state: "visible" 0.0;
8968 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8972 to: "padding_left_top";
8976 to_x: "padding_left_top";
8977 to_y: "padding_right_bottom";
8982 description { state: "icononly" 0.0;
8983 inherit: "default" 0.0;
8986 part { name: "padding_after_icon";
8990 description { state: "default" 0.0; //when only icon or no icon is there
8996 rel2.to: "icon_rect";
9001 description { state: "visible" 0.0;
9007 rel2.to: "icon_rect";
9012 description { state: "icononly" 0.0;
9013 inherit: "default" 0.0;
9016 part { name: "padding_before_text";
9020 description { state: "default" 0.0; //when only icon or no icon is there
9025 to_y: "padding_left_top";
9030 to_y: "padding_right_bottom";
9037 part { name: "elm.swallow.content";
9040 clip_to: "disabler";
9041 description { state: "default" 0.0;
9046 to: "padding_left_top";
9050 to_x: "padding_left_top";
9051 to_y: "padding_right_bottom";
9055 description { state: "visible" 0.0;
9057 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9058 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9062 to_x: "padding_before_text";
9063 to_y: "padding_left_top";
9067 to_x: "padding_before_text";
9068 to_y: "padding_right_bottom";
9071 aspect_preference: VERTICAL;
9073 description { state: "icononly" 0.0;
9074 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9075 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9078 to: "padding_left_top";
9082 to: "padding_right_bottom";
9085 aspect_preference: VERTICAL;
9088 part { name: "elm.text";
9092 clip_to: "disabler";
9093 description { state: "default" 0.0;
9097 to_x: "padding_after_icon";
9098 to_y: "padding_left_top";
9102 to: "padding_right_bottom";
9105 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9107 font: "SLP:style=Medium";
9114 description { state: "visible" 0.0;
9115 inherit: "default" 0.0;
9118 description { state: "clicked" 0.0;
9119 inherit: "default" 0.0;
9123 description { state: "focused" 0.0;
9124 inherit: "default" 0.0;
9127 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9130 part { name: "over2";
9133 ignore_flags: ON_HOLD;
9134 description { state: "default" 0.0;
9138 part { name: "over3";
9141 description { state: "default" 0.0;
9145 part { name: "disabler";
9147 description { state: "default" 0.0;
9148 color: 255 255 255 255;
9150 description { state: "disabled" 0.0;
9151 color: 255 255 255 127;
9156 program { name: "button_click";
9157 signal: "mouse,down,1";
9159 action: SIGNAL_EMIT "elm,action,press" "";
9160 after: "button_click_anim";
9162 program { name: "button_click_anim";
9163 action: STATE_SET "clicked" 0.0;
9164 target: "button_image";
9165 after: "text_clicked";
9167 program { name: "text_clicked";
9171 get_state(PART:"elm.text", st, 30, vl);
9172 if (!strcmp(st, "visible"))
9173 set_state(PART:"elm.text", "clicked", 0.0);
9176 program { name: "button_unpress";
9177 action: SIGNAL_EMIT "elm,action,unpress" "";
9179 program { name: "button_mouseout_clicked";
9180 signal: "mouse,up,1";
9185 get_state(PART:"elm.swallow.content", st, 30, vl);
9186 if (strcmp(st, "icononly"))
9188 emit("elm,action,default,text,set", "");
9189 set_state(PART:"elm.text", "visible", 0.0);
9191 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9192 set_state(PART:"button_image", "default", 0.0);
9194 after: button_unpress;
9196 program { name: "button_unclick3";
9197 signal: "mouse,clicked,1";
9199 action: SIGNAL_EMIT "elm,action,click" "";
9201 program { name: "text_show";
9202 signal: "elm,state,text,visible";
9207 get_state(PART:"elm.swallow.content", st, 30, vl);
9208 if (!strcmp(st, "icononly"))
9210 set_state(PART:"elm.swallow.content", "visible", 0.0);
9211 set_state(PART:"icon_rect", "visible", 0.0);
9212 set_state(PART:"padding_after_icon", "visible", 0.0);
9214 set_state(PART:"elm.text", "visible", 0.0);
9217 program { name: "text_hide";
9218 signal: "elm,state,text,hidden";
9223 get_state(PART:"elm.swallow.content", st, 30, vl);
9224 if (!strcmp(st, "visible"))
9226 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9227 set_state(PART:"icon_rect", "icononly", 0.0);
9228 set_state(PART:"padding_after_icon", "icononly", 0.0);
9230 set_state(PART:"elm.text", "default", 0.0);
9233 program { name: "icon_show";
9234 signal: "elm,state,icon,visible";
9239 get_state(PART:"elm.text", st, 30, vl);
9240 if (!strcmp(st, "visible"))
9242 set_state(PART:"elm.swallow.content", "visible", 0.0);
9243 set_state(PART:"icon_rect", "visible", 0.0);
9244 set_state(PART:"padding_after_icon", "visible", 0.0);
9248 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9249 set_state(PART:"icon_rect", "icononly", 0.0);
9250 set_state(PART:"padding_after_icon", "icononly", 0.0);
9254 program { name: "icon_hide";
9255 signal: "elm,state,icon,hidden";
9257 action: STATE_SET "default" 0.0;
9258 target: "elm.swallow.content";
9259 target: "icon_rect";
9260 target: "padding_after_icon";
9262 program { name: "disable";
9263 signal: "elm,state,disabled";
9265 action: STATE_SET "disabled" 0.0;
9267 after: "disable_text";
9269 program { name: "disable_text";
9273 set_int(button_state, BUTTON_STATE_DISABLED);
9274 get_state(PART:"elm.text", st, 30, vl);
9275 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9276 set_state(PART:"elm.text", "visible", 0.0);
9279 program { name: "enable";
9280 signal: "elm,state,enabled";
9282 action: STATE_SET "default" 0.0;
9284 after: "enable_text";
9286 program { name: "enable_text";
9290 set_int(button_state, BUTTON_STATE_ENABLED);
9291 get_state(PART:"elm.text", st, 30, vl);
9292 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9293 set_state(PART:"elm.text", "visible", 0.0);
9296 program { name: "focused";
9297 action: STATE_SET "focused" 0.0;
9298 target: "button_image";
9301 program { name: "unfocused";
9302 action: STATE_SET "default" 0.0;
9303 target: "button_image";
9304 after: "unfocus_text";
9306 program { name: "unfocus_text";
9307 action: STATE_SET "visible" 0.0;
9313 ///////////////////////////////////////////////////////////////////////////////////////
9314 group { name: "elm/button/base/tickernoti";
9316 image: "00_button_06_normal.png" COMP;
9317 image: "00_button_06_press.png" COMP;
9318 image: "00_button_06_dim.png" COMP;
9321 public button_state = BUTTON_STATE_ENABLED;
9324 part { name: "button_image";
9326 description { state: "default" 0.0;
9328 normal: "00_button_06_normal.png";
9329 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
9333 description { state: "clicked" 0.0;
9334 inherit: "default" 0.0;
9335 image.normal: "00_button_06_press.png";
9337 description { state: "disabled" 0.0;
9338 inherit: "default" 0.0;
9339 image.normal: "00_button_06_dim.png";
9341 description { state: "focused" 0.0;
9342 inherit: "default" 0.0;
9343 image.normal: "00_button_06_press.png";
9346 part { name: "padding_left_top";
9350 description { state: "default" 0.0;
9352 rel2.relative: 0.0 0.0;
9353 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9362 description { state: "default" 0.0;
9363 min: BUTTON_TICKERNOTI_BG_MIN_INC;
9366 description { state: "visible" 0.0;
9367 inherit: "default" 0.0;
9368 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
9370 description { state: "icononly" 0.0;
9371 inherit: "default" 0.0;
9372 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
9375 part { name: "padding_right_bottom";
9379 description { state: "default" 0.0;
9381 rel1.relative: 1.0 1.0;
9382 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9387 part { name: "icon_rect";
9391 description { state: "default" 0.0;
9397 to: "padding_left_top";
9401 to_x: "padding_left_top";
9402 to_y: "padding_right_bottom";
9406 description { state: "visible" 0.0;
9408 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9409 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9413 to: "padding_left_top";
9417 to_x: "padding_left_top";
9418 to_y: "padding_right_bottom";
9422 description { state: "icononly" 0.0;
9423 inherit: "default" 0.0;
9426 part { name: "padding_after_icon";
9430 description { state: "default" 0.0; //when only icon or no icon is there
9436 rel2.to: "icon_rect";
9441 description { state: "visible" 0.0;
9448 rel2.to: "icon_rect";
9450 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9452 description { state: "icononly" 0.0;
9453 inherit: "default" 0.0;
9456 part { name: "padding_before_text";
9460 description { state: "default" 0.0; //when only icon or no icon is there
9465 to_y: "padding_left_top";
9470 to_y: "padding_right_bottom";
9473 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9477 part { name: "elm.swallow.content";
9481 description { state: "default" 0.0;
9486 to: "padding_left_top";
9490 to_x: "padding_left_top";
9491 to_y: "padding_right_bottom";
9495 description { state: "visible" 0.0;
9497 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9498 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9502 to_x: "padding_before_text";
9503 to_y: "padding_left_top";
9507 to_x: "padding_before_text";
9508 to_y: "padding_right_bottom";
9511 description { state: "icononly" 0.0;
9512 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9513 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9516 part { name: "elm.text";
9521 description { state: "default" 0.0;
9525 to_x: "padding_after_icon";
9526 to_y: "padding_left_top";
9530 to: "padding_right_bottom";
9532 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9534 font: "SLP:style=Medium";
9535 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9540 description { state: "visible" 0.0;
9541 inherit: "default" 0.0;
9544 description { state: "clicked" 0.0;
9545 inherit: "default" 0.0;
9547 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9549 description { state: "disabled" 0.0;
9550 inherit: "default" 0.0;
9553 description { state: "disabled_visible" 0.0;
9554 inherit: "default" 0.0;
9555 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9558 description { state: "focused" 0.0;
9559 inherit: "default" 0.0;
9561 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9564 part { name: "over2";
9567 ignore_flags: ON_HOLD;
9568 description { state: "default" 0.0;
9572 part { name: "over3";
9575 description { state: "default" 0.0;
9579 part { name: "clipper";
9581 description { state: "default" 0.0;
9582 color: 255 255 255 255;
9585 part { name: "disabler";
9587 description { state: "default" 0.0;
9591 description { state: "disabled" 0.0;
9592 inherit: "default" 0.0;
9598 program { name: "button_click";
9599 signal: "mouse,down,1";
9601 action: SIGNAL_EMIT "elm,action,press" "";
9602 after: "button_click_anim";
9604 program { name: "button_click_anim";
9605 action: STATE_SET "clicked" 0.0;
9606 target: "button_image";
9607 after: "text_clicked";
9609 program { name: "text_clicked";
9613 get_state(PART:"elm.text", st, 30, vl);
9614 if (!strcmp(st, "visible"))
9615 set_state(PART:"elm.text", "clicked", 0.0);
9618 program { name: "button_unpress";
9619 action: SIGNAL_EMIT "elm,action,unpress" "";
9621 program { name: "button_mouseout_clicked";
9622 signal: "mouse,up,1";
9627 get_state(PART:"elm.swallow.content", st, 30, vl);
9628 if (strcmp(st, "icononly"))
9630 emit("elm,action,default,text,set", "");
9631 set_state(PART:"elm.text", "visible", 0.0);
9633 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9634 set_state(PART:"button_image", "default", 0.0);
9636 after: button_unpress;
9638 program { name: "button_unclick3";
9639 signal: "mouse,clicked,1";
9641 action: SIGNAL_EMIT "elm,action,click" "";
9643 program { name: "text_show";
9644 signal: "elm,state,text,visible";
9649 get_state(PART:"elm.swallow.content", st, 30, vl);
9650 if (!strcmp(st, "icononly"))
9652 set_state(PART:"elm.swallow.content", "visible", 0.0);
9653 set_state(PART:"icon_rect", "visible", 0.0);
9654 set_state(PART:"padding_after_icon", "visible", 0.0);
9655 set_state(PART:"bg", "visible", 0.0);
9657 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9658 set_state(PART:"elm.text", "visible", 0.0);
9660 set_state(PART:"elm.text", "disabled_visible", 0.0);
9663 program { name: "text_hide";
9664 signal: "elm,state,text,hidden";
9669 get_state(PART:"elm.swallow.content", st, 30, vl);
9670 if (!strcmp(st, "visible"))
9672 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9673 set_state(PART:"icon_rect", "icononly", 0.0);
9674 set_state(PART:"padding_after_icon", "icononly", 0.0);
9675 set_state(PART:"bg", "icononly", 0.0);
9677 set_state(PART:"elm.text", "default", 0.0);
9680 program { name: "icon_show";
9681 signal: "elm,state,icon,visible";
9686 get_state(PART:"elm.text", st, 30, vl);
9687 if (!strcmp(st, "visible"))
9689 set_state(PART:"elm.swallow.content", "visible", 0.0);
9690 set_state(PART:"icon_rect", "visible", 0.0);
9691 set_state(PART:"padding_after_icon", "visible", 0.0);
9692 set_state(PART:"bg", "visible", 0.0);
9696 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9697 set_state(PART:"icon_rect", "icononly", 0.0);
9698 set_state(PART:"padding_after_icon", "icononly", 0.0);
9699 set_state(PART:"bg", "icononly", 0.0);
9703 program { name: "icon_hide";
9704 signal: "elm,state,icon,hidden";
9706 action: STATE_SET "default" 0.0;
9707 target: "elm.swallow.content";
9708 target: "padding_after_icon";
9709 target: "icon_rect";
9712 program { name: "disable";
9713 signal: "elm,state,disabled";
9715 action: STATE_SET "disabled" 0.0;
9716 target: "button_image";
9718 after: "disable_text";
9720 program { name: "disable_text";
9724 get_state(PART:"elm.text", st, 30, vl);
9725 if (!strcmp(st, "visible"))
9726 set_state(PART:"elm.text", "disabled_visible", 0.0);
9728 set_state(PART:"elm.text", "disabled", 0.0);
9729 set_int(button_state, BUTTON_STATE_DISABLED);
9732 program { name: "enable";
9733 signal: "elm,state,enabled";
9735 action: STATE_SET "default" 0.0;
9736 target: "button_image";
9738 after: "enable_text";
9740 program { name: "enable_text";
9744 get_state(PART:"elm.text", st, 30, vl);
9745 if (!strcmp(st, "disabled_visible"))
9746 set_state(PART:"elm.text", "visible", 0.0);
9748 set_state(PART:"elm.text", "default", 0.0);
9749 set_int(button_state, BUTTON_STATE_ENABLED);
9752 program { name: "focused";
9753 //signal: "elm,action,focus";
9755 action: STATE_SET "focused" 0.0;
9756 target: "button_image";
9759 program { name: "unfocused";
9760 //signal: "elm,action,unfocus";
9762 action: STATE_SET "default" 0.0;
9763 target: "button_image";
9764 after: "unfocus_text";
9766 program { name: "unfocus_text";
9767 action: STATE_SET "visible" 0.0;
9773 ///////////////////////////////////////////////////////////////////////////////////////
9774 group { name: "elm/button/base/expandable_number";
9775 alias: "elm/button/base/text_only/expandable_number";
9777 image: "00_button_05_normal.png" COMP;
9778 image: "00_button_05_press.png" COMP;
9779 image: "00_button_05_dim.png" COMP;
9780 image: "00_arrow_expand.png" COMP;
9781 image: "00_arrow_expand_press.png" COMP;
9782 image: "00_arrow_expand_dim.png" COMP;
9785 public button_state = BUTTON_STATE_ENABLED;
9788 part { name: "button_image";
9790 description { state: "default" 0.0;
9791 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9792 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9794 normal: "00_button_05_normal.png";
9795 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9799 description { state: "clicked" 0.0;
9800 inherit: "default" 0.0;
9801 image.normal: "00_button_05_press.png";
9803 description { state: "disabled" 0.0;
9804 inherit: "default" 0.0;
9805 image.normal: "00_button_05_dim.png";
9807 description { state: "focused" 0.0;
9808 inherit: "default" 0.0;
9809 image.normal: "00_button_05_press.png";
9812 part { name: "padding_left_top";
9816 description { state: "default" 0.0;
9818 rel2.relative: 0.0 0.0;
9819 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9824 part { name: "padding_right_bottom";
9828 description { state: "default" 0.0;
9830 rel1.relative: 1.0 1.0;
9831 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9836 part { name: "icon_rect";
9840 description { state: "default" 0.0;
9842 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9843 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9847 to_x: "padding_right_bottom";
9848 to_y: "padding_left_top";
9852 to: "padding_right_bottom";
9858 part { name: "arrow_expand";
9861 description { state: "default" 0.0;
9863 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9864 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9866 rel1.to: "icon_rect";
9867 rel2.to: "icon_rect";
9868 image.normal:"00_arrow_expand.png";
9870 description { state: "clicked" 0.0;
9871 inherit: "default" 0.0;
9872 image.normal:"00_arrow_expand_press.png";
9874 description { state: "disabled" 0.0;
9875 inherit: "default" 0.0;
9876 image.normal:"00_arrow_expand_dim.png";
9879 part { name: "elm.text";
9883 description { state: "default" 0.0;
9884 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9885 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9889 to: "padding_left_top";
9893 to_x:"padding_left_top";
9894 to_y:"padding_right_bottom";
9897 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9899 font: "SLP:style=Medium";
9900 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9906 description { state: "visible" 0.0;
9907 inherit: "default" 0.0;
9909 description { state: "clicked" 0.0;
9910 inherit: "default" 0.0;
9911 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9913 description { state: "disabled" 0.0;
9914 inherit: "default" 0.0;
9917 description { state: "disabled_visible" 0.0;
9918 inherit: "default" 0.0;
9919 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9921 description { state: "focused" 0.0;
9922 inherit: "default" 0.0;
9923 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9926 part { name: "over2";
9929 ignore_flags: ON_HOLD;
9930 description { state: "default" 0.0;
9934 part { name: "over3";
9937 description { state: "default" 0.0;
9941 part { name: "disabler";
9943 description { state: "default" 0.0;
9947 description { state: "disabled" 0.0;
9948 inherit: "default" 0.0;
9954 program { name: "button_click";
9955 signal: "mouse,down,1";
9957 action: SIGNAL_EMIT "elm,action,press" "";
9958 after: "button_click_anim";
9960 program { name: "button_click_anim";
9961 action: STATE_SET "clicked" 0.0;
9962 target: "button_image";
9963 target: "arrow_expand";
9964 after: "text_clicked";
9966 program { name: "text_clicked";
9970 get_state(PART:"elm.text", st, 30, vl);
9971 if (!strcmp(st, "visible"))
9972 set_state(PART:"elm.text", "clicked", 0.0);
9975 program { name: "button_unpress";
9976 action: SIGNAL_EMIT "elm,action,unpress" "";
9978 program { name: "button_mouseout_clicked";
9979 signal: "mouse,up,1";
9982 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9984 set_state(PART:"button_image", "default", 0.0);
9985 set_state(PART:"elm.text", "visible", 0.0);
9986 set_state(PART:"arrow_expand", "default", 0.0);
9989 after: button_unpress;
9991 program { name: "button_unclick3";
9992 signal: "mouse,clicked,1";
9994 action: SIGNAL_EMIT "elm,action,click" "";
9996 program { name: "text_show";
9997 signal: "elm,state,text,visible";
10000 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10001 set_state(PART:"elm.text", "visible", 0.0);
10003 set_state(PART:"elm.text", "disabled_visible", 0.0);
10006 program { name: "text_hide";
10007 signal: "elm,state,text,hidden";
10010 set_state(PART:"elm.text", "default", 0.0);
10013 program { name: "disable";
10014 signal: "elm,state,disabled";
10016 action: STATE_SET "disabled" 0.0;
10017 target: "button_image";
10018 target: "disabler";
10019 after: "disable_text";
10021 program { name: "disable_text";
10025 get_state(PART:"elm.text", st, 30, vl);
10026 if (!strcmp(st, "visible"))
10027 set_state(PART:"elm.text", "disabled_visible", 0.0);
10029 set_state(PART:"elm.text", "disabled", 0.0);
10030 set_int(button_state, BUTTON_STATE_DISABLED);
10033 program { name: "enable";
10034 signal: "elm,state,enabled";
10036 action: STATE_SET "default" 0.0;
10037 target: "button_image";
10038 target: "disabler";
10039 after: "enable_text";
10041 program { name: "enable_text";
10045 get_state(PART:"elm.text", st, 30, vl);
10046 if (!strcmp(st, "disabled_visible"))
10047 set_state(PART:"elm.text", "visible", 0.0);
10049 set_state(PART:"elm.text", "default", 0.0);
10050 set_int(button_state, BUTTON_STATE_ENABLED);
10053 program { name: "focused";
10054 //signal: "elm,action,focus";
10056 action: STATE_SET "focused" 0.0;
10057 target: "button_image";
10058 target: "elm.text";
10060 program { name: "unfocused";
10061 //signal: "elm,action,unfocus";
10063 action: STATE_SET "default" 0.0;
10064 target: "button_image";
10065 after: "unfocus_text";
10067 program { name: "unfocus_text";
10068 action: STATE_SET "visible" 0.0;
10069 target: "elm.text";
10074 #undef BUTTON_STATE_ENABLED
10075 #undef BUTTON_STATE_DISABLED