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;
5521 description { state: "focused" 0.0;
5522 inherit: "default" 0.0;
5525 part { name: "padding.left";
5528 description { state: "default" 0.0;
5530 min: BUTTON_CONTACT_PADDING_MIN_INC;
5540 part { name: "padding.right";
5543 description { state: "default" 0.0;
5545 min: BUTTON_CONTACT_PADDING_MIN_INC;
5555 part { name: "elm.text";
5559 description { state: "default" 0.0;
5562 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5564 font: "SLP:style=Medium";
5565 size: BUTTON_CONTACT_FONT_SIZE_INC;
5569 description { state: "visible" 0.0;
5570 inherit: "default" 0.0;
5574 description { state: "clicked" 0.0;
5575 inherit: "default" 0.0;
5578 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5580 description { state: "disabled" 0.0;
5581 inherit: "default" 0.0;
5584 description { state: "disabled_visible" 0.0;
5585 inherit: "default" 0.0;
5586 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5590 description { state: "focused" 0.0;
5591 inherit: "default" 0.0;
5594 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5597 part { name: "over1";
5599 description { state: "default" 0.0;
5600 rel2.relative: 1.0 0.5;
5603 part { name: "over2";
5605 ignore_flags: ON_HOLD;
5606 description { state: "default" 0.0;
5607 rel1.to: "button_image";
5608 rel2.to: "button_image";
5611 part { name: "over3";
5613 description { state: "default" 0.0;
5614 rel1.to: "button_image";
5615 rel2.to: "button_image";
5619 part { name: "disabler";
5621 description { state: "default" 0.0;
5622 rel1.to: "button_image";
5623 rel2.to: "button_image";
5627 description { state: "disabled" 0.0;
5628 inherit: "default" 0.0;
5634 program { name: "button_click";
5635 signal: "mouse,down,1";
5637 action: SIGNAL_EMIT "elm,action,press" "";
5638 after: "button_click_anim";
5640 program { name: "button_click_anim";
5641 action: STATE_SET "clicked" 0.0;
5642 target: "button_image";
5645 program { name: "button_unpress";
5646 action: SIGNAL_EMIT "elm,action,unpress" "";
5648 program { name: "button_mouseout_clicked";
5649 signal: "mouse,up,1";
5654 get_state(PART:"elm.text", st, 30, vl);
5655 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5657 emit("elm,action,default,text,set", "");
5658 set_state(PART:"elm.text", "visible", 0.0);
5660 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5661 set_state(PART:"button_image", "default", 0.0);
5663 after: button_unpress;
5665 program { name: "button_unclick3";
5666 signal: "mouse,clicked,1";
5668 action: SIGNAL_EMIT "elm,action,click" "";
5670 program { name: "text_show";
5671 signal: "elm,state,text,visible";
5674 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5675 set_state(PART:"elm.text", "visible", 0.0);
5677 set_state(PART:"elm.text", "disabled_visible", 0.0);
5680 program { name: "text_hide";
5681 signal: "elm,state,text,hidden";
5683 action: STATE_SET "default" 0.0;
5686 program { name: "disable";
5687 signal: "elm,state,disabled";
5689 action: STATE_SET "disabled" 0.0;
5690 target: "button_image";
5692 after: "disable_text";
5694 program { name: "disable_text";
5698 get_state(PART:"elm.text", st, 30, vl);
5699 if (!strcmp(st, "visible"))
5700 set_state(PART:"elm.text", "disabled_visible", 0.0);
5702 set_state(PART:"elm.text", "disabled", 0.0);
5703 set_int(button_state, BUTTON_STATE_DISABLED);
5706 program { name: "enable";
5707 signal: "elm,state,enabled";
5709 action: STATE_SET "default" 0.0;
5710 target: "button_image";
5712 after: "enable_text";
5714 program { name: "enable_text";
5718 get_state(PART:"elm.text", st, 30, vl);
5719 if (!strcmp(st, "disabled_visible"))
5720 set_state(PART:"elm.text", "visible", 0.0);
5722 set_state(PART:"elm.text", "default", 0.0);
5723 set_int(button_state, BUTTON_STATE_ENABLED);
5726 program { name: "focused";
5727 //signal: "elm,action,focus";
5729 action: STATE_SET "focused" 0.0;
5730 target: "button_image";
5733 program { name: "unfocused";
5734 //signal: "elm,action,unfocus";
5736 action: STATE_SET "default" 0.0;
5737 target: "button_image";
5738 action: STATE_SET "visible" 0.0;
5744 ///////////////////////////////////////////////////////////////////////////////////////
5745 group { name: "elm/button/base/naviframe/back_btn/default";
5746 alias: "elm/button/base/naviframe/prev_btn/default";
5747 alias: "elm/button/base/naviframe/end_btn/default";
5749 image: "00_winset_Back_btn_normal.png" COMP;
5750 image: "00_winset_Back_btn_press.png" COMP;
5751 image: "00_winset_Back.png" COMP;
5754 public button_state = BUTTON_STATE_ENABLED;
5757 part { name: "button_image";
5759 description { state: "default" 0.0;
5760 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5761 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5763 normal: "00_winset_Back_btn_normal.png";
5764 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
5768 description { state: "clicked" 0.0;
5769 inherit: "default" 0.0;
5770 image.normal: "00_winset_Back_btn_press.png";
5772 description { state: "disabled" 0.0;
5773 inherit: "default" 0.0;
5775 description { state: "focused" 0.0;
5776 inherit: "default" 0.0;
5777 image.normal: "00_winset_Back_btn_press.png";
5780 part { name: "back_button";
5783 description { state: "default" 0.0;
5784 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5785 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5786 rel1.to: "button_image";
5787 rel2.to: "button_image";
5788 image.normal: "00_winset_Back.png";
5790 description { state: "clicked" 0.0;
5791 inherit: "default" 0.0;
5794 part { name: "over2";
5797 ignore_flags: ON_HOLD;
5798 description { state: "default" 0.0;
5802 part { name: "over3";
5805 description { state: "default" 0.0;
5809 part { name: "disabler";
5811 description { state: "default" 0.0;
5815 description { state: "disabled" 0.0;
5816 inherit: "default" 0.0;
5822 program { name: "button_click";
5823 signal: "mouse,down,1";
5825 action: SIGNAL_EMIT "elm,action,press" "";
5826 after: "button_click_anim";
5828 program { name: "button_click_anim";
5829 action: STATE_SET "clicked" 0.0;
5830 target: "button_image";
5832 program { name: "button_unpress";
5833 action: SIGNAL_EMIT "elm,action,unpress" "";
5835 program { name: "button_mouseout_clicked";
5836 signal: "mouse,up,1";
5839 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5840 set_state(PART:"button_image", "default", 0.0);
5842 after: button_unpress;
5844 program { name: "button_unclick3";
5845 signal: "mouse,clicked,1";
5847 action: SIGNAL_EMIT "elm,action,click" "";
5849 program { name: "disable";
5850 signal: "elm,state,disabled";
5852 action: STATE_SET "disabled" 0.0;
5853 target: "button_image";
5855 after: "disable_button";
5857 program { name: "disable_button";
5859 set_int(button_state, BUTTON_STATE_DISABLED);
5862 program { name: "enable";
5863 signal: "elm,state,enabled";
5865 action: STATE_SET "default" 0.0;
5866 target: "button_image";
5868 after: "enable_button";
5870 program { name: "enable_button";
5872 set_int(button_state, BUTTON_STATE_ENABLED);
5878 ///////////////////////////////////////////////////////////////////////////////////////
5879 group { name: "elm/button/base/picker/prev/icon/default";
5881 image: "00_picker_btn_normal.png" COMP;
5882 image: "00_picker_btn_press.png" COMP;
5883 image: "00_picker_arrow_left.png" COMP;
5884 image: "00_picker_arrow_left_press.png" COMP;
5887 public button_state = BUTTON_STATE_ENABLED;
5890 part { name: "button_image";
5892 description { state: "default" 0.0;
5893 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5894 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5896 normal: "00_picker_btn_normal.png";
5897 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5901 description { state: "clicked" 0.0;
5902 inherit: "default" 0.0;
5903 image.normal: "00_picker_btn_press.png";
5905 description { state: "disabled" 0.0;
5906 inherit: "default" 0.0;
5908 description { state: "focused" 0.0;
5909 inherit: "default" 0.0;
5910 image.normal: "00_picker_btn_press.png";
5913 part { name: "padding_left_top";
5917 description { state: "default" 0.0;
5919 rel2.relative: 0.0 0.0;
5920 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5925 part { name: "padding_right_bottom";
5929 description { state: "default" 0.0;
5931 rel1.relative: 1.0 1.0;
5932 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5937 part { name: "left_arrow";
5940 description { state: "default" 0.0;
5941 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5942 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5945 to: "padding_left_top";
5949 to: "padding_right_bottom";
5951 image.normal: "00_picker_arrow_left.png";
5953 description { state: "clicked" 0.0;
5954 inherit: "default" 0.0;
5955 image.normal: "00_picker_arrow_left_press.png";
5958 part { name: "over2";
5961 ignore_flags: ON_HOLD;
5962 description { state: "default" 0.0;
5966 part { name: "over3";
5969 description { state: "default" 0.0;
5973 part { name: "disabler";
5975 description { state: "default" 0.0;
5979 description { state: "disabled" 0.0;
5980 inherit: "default" 0.0;
5986 program { name: "button_click";
5987 signal: "mouse,down,1";
5989 action: SIGNAL_EMIT "elm,action,press" "";
5990 after: "button_click_anim";
5992 program { name: "button_click_anim";
5993 action: STATE_SET "clicked" 0.0;
5994 target: "button_image";
5996 program { name: "button_unpress";
5997 action: SIGNAL_EMIT "elm,action,unpress" "";
5999 program { name: "button_mouseout_clicked";
6000 signal: "mouse,up,1";
6003 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6004 set_state(PART:"button_image", "default", 0.0);
6006 after: button_unpress;
6008 program { name: "button_unclick3";
6009 signal: "mouse,clicked,1";
6011 action: SIGNAL_EMIT "elm,action,click" "";
6013 program { name: "disable";
6014 signal: "elm,state,disabled";
6016 action: STATE_SET "disabled" 0.0;
6017 target: "button_image";
6019 after: "disable_button";
6021 program { name: "disable_button";
6023 set_int(button_state, BUTTON_STATE_DISABLED);
6026 program { name: "enable";
6027 signal: "elm,state,enabled";
6029 action: STATE_SET "default" 0.0;
6030 target: "button_image";
6032 after: "enable_button";
6034 program { name: "enable_button";
6036 set_int(button_state, BUTTON_STATE_ENABLED);
6039 program { name: "focused";
6040 //signal: "elm,action,focus";
6042 action: STATE_SET "focused" 0.0;
6043 target: "button_image";
6045 program { name: "unfocused";
6046 //signal: "elm,action,unfocus";
6048 action: STATE_SET "default" 0.0;
6049 target: "button_image";
6054 ///////////////////////////////////////////////////////////////////////////////////////
6055 group { name: "elm/button/base/picker/next/icon/default";
6057 image: "00_picker_btn_normal.png" COMP;
6058 image: "00_picker_btn_press.png" COMP;
6059 image: "00_picker_arrow_right.png" COMP;
6060 image: "00_picker_arrow_right_press.png" COMP;
6063 public button_state = BUTTON_STATE_ENABLED;
6066 part { name: "button_image";
6068 description { state: "default" 0.0;
6069 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6070 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6072 normal: "00_picker_btn_normal.png";
6073 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6077 description { state: "clicked" 0.0;
6078 inherit: "default" 0.0;
6079 image.normal: "00_picker_btn_press.png";
6081 description { state: "disabled" 0.0;
6082 inherit: "default" 0.0;
6084 description { state: "focused" 0.0;
6085 inherit: "default" 0.0;
6086 image.normal: "00_picker_btn_press.png";
6089 part { name: "padding_left_top";
6093 description { state: "default" 0.0;
6095 rel2.relative: 0.0 0.0;
6096 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6101 part { name: "padding_right_bottom";
6105 description { state: "default" 0.0;
6107 rel1.relative: 1.0 1.0;
6108 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6113 part { name: "right_arrow";
6116 description { state: "default" 0.0;
6117 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6118 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6121 to: "padding_left_top";
6125 to: "padding_right_bottom";
6127 image.normal: "00_picker_arrow_right.png";
6129 description { state: "clicked" 0.0;
6130 inherit: "default" 0.0;
6131 image.normal: "00_picker_arrow_right_press.png";
6134 part { name: "over2";
6137 ignore_flags: ON_HOLD;
6138 description { state: "default" 0.0;
6142 part { name: "over3";
6145 description { state: "default" 0.0;
6149 part { name: "disabler";
6151 description { state: "default" 0.0;
6155 description { state: "disabled" 0.0;
6156 inherit: "default" 0.0;
6162 program { name: "button_click";
6163 signal: "mouse,down,1";
6165 action: SIGNAL_EMIT "elm,action,press" "";
6166 after: "button_click_anim";
6168 program { name: "button_click_anim";
6169 action: STATE_SET "clicked" 0.0;
6170 target: "button_image";
6172 program { name: "button_unpress";
6173 action: SIGNAL_EMIT "elm,action,unpress" "";
6175 program { name: "button_mouseout_clicked";
6176 signal: "mouse,up,1";
6179 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6180 set_state(PART:"button_image", "default", 0.0);
6182 after: button_unpress;
6184 program { name: "button_unclick3";
6185 signal: "mouse,clicked,1";
6187 action: SIGNAL_EMIT "elm,action,click" "";
6189 program { name: "disable";
6190 signal: "elm,state,disabled";
6192 action: STATE_SET "disabled" 0.0;
6193 target: "button_image";
6195 after: "disable_button";
6197 program { name: "disable_button";
6199 set_int(button_state, BUTTON_STATE_DISABLED);
6202 program { name: "enable";
6203 signal: "elm,state,enabled";
6205 action: STATE_SET "default" 0.0;
6206 target: "button_image";
6208 after: "enable_button";
6210 program { name: "enable_button";
6212 set_int(button_state, BUTTON_STATE_ENABLED);
6215 program { name: "focused";
6216 //signal: "elm,action,focus";
6218 action: STATE_SET "focused" 0.0;
6219 target: "button_image";
6221 program { name: "unfocused";
6222 //signal: "elm,action,unfocus";
6224 action: STATE_SET "default" 0.0;
6225 target: "button_image";
6230 ///////////////////////////////////////////////////////////////////////////////////////
6231 group { name: "elm/button/base/naviframe_control/default";
6232 alias: "elm/button/base/naviframe_control/center";
6234 public button_state = BUTTON_STATE_ENABLED;
6237 image: "00_Option_header_bt.png" COMP;
6238 image: "00_Option_header_bt_dim.png" COMP;
6239 image: "00_Option_header_bt_press.png" COMP;
6242 part { name: "button_image";
6244 description { state: "default" 0.0;
6245 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6250 normal: "00_Option_header_bt.png";
6251 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6253 color: 255 255 255 255;
6255 description { state: "disabled" 0.0;
6256 inherit: "default" 0.0;
6257 image.normal: "00_Option_header_bt_dim.png";
6259 description { state: "clicked" 0.0;
6260 inherit: "default" 0.0;
6261 image.normal: "00_Option_header_bt_press.png";
6264 part { name: "padding_left_top";
6268 description { state: "default" 0.0;
6270 rel2.relative: 0.0 0.0;
6271 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6276 part { name: "padding_right_bottom";
6280 description { state: "default" 0.0;
6282 rel1.relative: 1.0 1.0;
6283 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6288 part { name: "icon_rect";
6292 description { state: "default" 0.0;
6297 to: "padding_left_top";
6301 to_x: "padding_left_top";
6302 to_y: "padding_right_bottom";
6307 description { state: "visible" 0.0;
6308 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6312 to: "padding_left_top";
6316 to_x: "padding_left_top";
6317 to_y: "padding_right_bottom";
6322 description { state: "icononly" 0.0;
6323 inherit: "default" 0.0;
6326 part { name: "padding_after_icon";
6330 description { state: "default" 0.0; //when only icon or no icon is there
6336 rel2.to: "icon_rect";
6341 description { state: "visible" 0.0;
6347 rel2.to: "icon_rect";
6349 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6352 description { state: "icononly" 0.0;
6353 inherit: "default" 0.0;
6356 part { name: "padding_before_text";
6360 description { state: "default" 0.0; //when only icon or no icon is there
6365 to_y: "padding_left_top";
6370 to_y: "padding_right_bottom";
6373 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6377 part { name: "elm.swallow.content";
6381 description { state: "default" 0.0;
6386 to: "padding_left_top";
6390 to_x: "padding_left_top";
6391 to_y: "padding_right_bottom";
6395 description { state: "visible" 0.0;
6397 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6398 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6402 to_x: "padding_before_text";
6403 to_y: "padding_left_top";
6407 to_x: "padding_before_text";
6408 to_y: "padding_right_bottom";
6411 aspect_preference: VERTICAL;
6413 description { state: "icononly" 0.0;
6414 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6415 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6418 to: "padding_left_top";
6422 to: "padding_right_bottom";
6425 aspect_preference: VERTICAL;
6428 part { name: "elm.text";
6433 description { state: "default" 0.0;
6437 to_x: "padding_after_icon";
6438 to_y: "padding_left_top";
6442 to: "padding_right_bottom";
6444 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6446 font: "SLP:style=Medium";
6447 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6452 description { state: "visible" 0.0;
6453 inherit: "default" 0.0;
6456 description { state: "clicked" 0.0;
6457 inherit: "default" 0.0;
6461 description { state: "focused" 0.0;
6462 inherit: "default" 0.0;
6465 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6468 part { name: "over2";
6471 ignore_flags: ON_HOLD;
6472 description { state: "default" 0.0;
6476 part { name: "over3";
6479 description { state: "default" 0.0;
6483 part { name: "clipper";
6485 description { state: "default" 0.0;
6486 color: 255 255 255 255;
6488 description { state: "disabled" 0.0;
6489 color: 255 255 255 127;
6492 part { name: "disabler";
6494 description { state: "default" 0.0;
6498 description { state: "disabled" 0.0;
6499 inherit: "default" 0.0;
6505 program { name: "button_click";
6506 signal: "mouse,down,1";
6508 action: SIGNAL_EMIT "elm,action,press" "";
6509 after: "button_click_anim";
6511 program { name: "button_click_anim";
6512 action: STATE_SET "clicked" 0.0;
6513 target: "button_image";
6514 after: "text_clicked";
6516 program { name: "text_clicked";
6520 get_state(PART:"elm.text", st, 30, vl);
6521 if (!strcmp(st, "visible"))
6522 set_state(PART:"elm.text", "clicked", 0.0);
6525 program { name: "button_unpress";
6526 action: SIGNAL_EMIT "elm,action,unpress" "";
6528 program { name: "button_mouseout_clicked";
6529 signal: "mouse,up,1";
6534 get_state(PART:"elm.swallow.content", st, 30, vl);
6535 if (strcmp(st, "icononly"))
6537 emit("elm,action,default,text,set", "");
6538 set_state(PART:"elm.text", "visible", 0.0);
6540 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6541 set_state(PART:"button_image", "default", 0.0);
6543 after: button_unpress;
6545 program { name: "button_unclick3";
6546 signal: "mouse,clicked,1";
6548 action: SIGNAL_EMIT "elm,action,click" "";
6550 program { name: "text_show";
6551 signal: "elm,state,text,visible";
6556 get_state(PART:"elm.swallow.content", st, 30, vl);
6557 if (!strcmp(st, "icononly"))
6559 set_state(PART:"elm.swallow.content", "visible", 0.0);
6560 set_state(PART:"icon_rect", "visible", 0.0);
6561 set_state(PART:"padding_after_icon", "visible", 0.0);
6563 set_state(PART:"elm.text", "visible", 0.0);
6566 program { name: "text_hide";
6567 signal: "elm,state,text,hidden";
6572 get_state(PART:"elm.swallow.content", st, 30, vl);
6573 if (!strcmp(st, "visible"))
6575 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6576 set_state(PART:"icon_rect", "icononly", 0.0);
6577 set_state(PART:"padding_after_icon", "icononly", 0.0);
6579 set_state(PART:"elm.text", "default", 0.0);
6582 program { name: "icon_show";
6583 signal: "elm,state,icon,visible";
6588 get_state(PART:"elm.text", st, 30, vl);
6589 if (!strcmp(st, "visible"))
6591 set_state(PART:"elm.swallow.content", "visible", 0.0);
6592 set_state(PART:"icon_rect", "visible", 0.0);
6593 set_state(PART:"padding_after_icon", "visible", 0.0);
6597 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6598 set_state(PART:"icon_rect", "icononly", 0.0);
6599 set_state(PART:"padding_after_icon", "icononly", 0.0);
6603 program { name: "icon_hide";
6604 signal: "elm,state,icon,hidden";
6606 action: STATE_SET "default" 0.0;
6607 target: "elm.swallow.content";
6608 target: "icon_rect";
6609 target: "padding_after_icon";
6611 program { name: "disable";
6612 signal: "elm,state,disabled";
6614 action: STATE_SET "disabled" 0.0;
6615 target: "button_image";
6618 after: "disable_text";
6620 program { name: "disable_text";
6624 set_int(button_state, BUTTON_STATE_DISABLED);
6625 get_state(PART:"elm.text", st, 30, vl);
6626 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6627 set_state(PART:"elm.text", "visible", 0.0);
6630 program { name: "enable";
6631 signal: "elm,state,enabled";
6633 action: STATE_SET "default" 0.0;
6634 target: "button_image";
6637 after: "enable_text";
6639 program { name: "enable_text";
6643 set_int(button_state, BUTTON_STATE_ENABLED);
6644 get_state(PART:"elm.text", st, 30, vl);
6645 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6646 set_state(PART:"elm.text", "visible", 0.0);
6649 program { name: "focused";
6650 action: STATE_SET "focused" 0.0;
6651 target: "button_image";
6654 program { name: "unfocused";
6655 action: STATE_SET "default" 0.0;
6656 target: "button_image";
6657 after: "unfocus_text";
6659 program { name: "unfocus_text";
6660 action: STATE_SET "visible" 0.0;
6666 ///////////////////////////////////////////////////////////////////////////////////////
6667 group { name: "elm/button/base/naviframe_control/multiline";
6669 public button_state = BUTTON_STATE_ENABLED;
6672 image: "00_Option_header_bt.png" COMP;
6673 image: "00_Option_header_bt_dim.png" COMP;
6674 image: "00_Option_header_bt_press.png" COMP;
6677 style { name: "btn_multiline_naviframe_controlbar_style";
6678 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6685 part { name: "button_image";
6687 description { state: "default" 0.0;
6688 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6692 normal: "00_Option_header_bt.png";
6693 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6695 color: 255 255 255 255;
6697 description { state: "disabled" 0.0;
6698 inherit: "default" 0.0;
6699 image.normal: "00_Option_header_bt_dim.png";
6701 description { state: "clicked" 0.0;
6702 inherit: "default" 0.0;
6703 image.normal: "00_Option_header_bt_press.png";
6706 part { name: "padding_left_top";
6710 description { state: "default" 0.0;
6712 rel2.relative: 0.0 0.0;
6713 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6718 part { name: "padding_right_bottom";
6722 description { state: "default" 0.0;
6724 rel1.relative: 1.0 1.0;
6725 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6730 part { name: "icon_rect";
6734 description { state: "default" 0.0;
6740 to_x: "elm.swallow.content";
6741 to_y: "padding_left_top";
6745 to_x: "elm.swallow.content";
6746 to_y: "padding_right_bottom";
6751 part { name: "padding_icon_text";
6755 description { state: "default" 0.0; //when only icon or no icon is there
6769 description { state: "visible" 0.0;
6770 inherit: "default" 0.0;
6771 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6781 description { state: "icononly" 0.0;
6782 inherit: "default" 0.0;
6785 part { name: "elm.swallow.content";
6789 description { state: "default" 0.0;
6794 to: "padding_left_top";
6798 to_x: "padding_left_top";
6799 to_y: "padding_right_bottom";
6803 description { state: "visible" 0.0;
6805 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6806 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6810 to: "padding_left_top";
6814 to_x: "padding_left_top";
6815 to_y: "padding_right_bottom";
6818 description { state: "icononly" 0.0;
6819 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6820 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6823 to: "padding_left_top";
6827 to: "padding_right_bottom";
6831 part { name: "elm.text";
6836 description { state: "default" 0.0;
6840 to_x: "padding_icon_text";
6841 to_y: "padding_left_top";
6845 to: "padding_right_bottom";
6847 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6849 style: "btn_multiline_naviframe_controlbar_style";
6854 description { state: "visible" 0.0;
6855 inherit: "default" 0.0;
6859 description { state: "clicked" 0.0;
6860 inherit: "default" 0.0;
6864 description { state: "focused" 0.0;
6865 inherit: "default" 0.0;
6868 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6871 part { name: "over2";
6874 ignore_flags: ON_HOLD;
6875 description { state: "default" 0.0;
6879 part { name: "over3";
6882 description { state: "default" 0.0;
6886 part { name: "clipper";
6888 description { state: "default" 0.0;
6889 color: 255 255 255 255;
6891 description { state: "disabled" 0.0;
6892 color: 255 255 255 127;
6895 part { name: "disabler";
6897 description { state: "default" 0.0;
6901 description { state: "disabled" 0.0;
6902 inherit: "default" 0.0;
6908 program { name: "button_click";
6909 signal: "mouse,down,1";
6911 action: SIGNAL_EMIT "elm,action,press" "";
6912 after: "button_click_anim";
6914 program { name: "button_click_anim";
6915 action: STATE_SET "clicked" 0.0;
6916 target: "button_image";
6917 after: "text_clicked";
6919 program { name: "text_clicked";
6923 get_state(PART:"elm.text", st, 30, vl);
6924 if (!strcmp(st, "visible"))
6925 set_state(PART:"elm.text", "clicked", 0.0);
6928 program { name: "button_unpress";
6929 action: SIGNAL_EMIT "elm,action,unpress" "";
6931 program { name: "button_mouseout_clicked";
6932 signal: "mouse,up,1";
6937 get_state(PART:"elm.swallow.content", st, 30, vl);
6938 if (strcmp(st, "icononly"))
6940 emit("elm,action,default,text,set", "");
6941 set_state(PART:"elm.text", "visible", 0.0);
6943 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6944 set_state(PART:"button_image", "default", 0.0);
6946 after: button_unpress;
6948 program { name: "button_unclick3";
6949 signal: "mouse,clicked,1";
6951 action: SIGNAL_EMIT "elm,action,click" "";
6953 program { name: "text_show";
6954 signal: "elm,state,text,visible";
6959 get_state(PART:"elm.swallow.content", st, 30, vl);
6960 if (!strcmp(st, "icononly"))
6962 set_state(PART:"elm.swallow.content", "visible", 0.0);
6963 set_state(PART:"padding_icon_text", "visible", 0.0);
6965 set_state(PART:"elm.text", "visible", 0.0);
6968 program { name: "text_hide";
6969 signal: "elm,state,text,hidden";
6974 get_state(PART:"elm.swallow.content", st, 30, vl);
6975 if (!strcmp(st, "visible"))
6977 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6978 set_state(PART:"padding_icon_text", "icononly", 0.0);
6980 set_state(PART:"elm.text", "default", 0.0);
6983 program { name: "icon_show";
6984 signal: "elm,state,icon,visible";
6989 get_state(PART:"elm.text", st, 30, vl);
6990 if (!strcmp(st, "visible"))
6992 set_state(PART:"elm.swallow.content", "visible", 0.0);
6993 set_state(PART:"padding_icon_text", "visible", 0.0);
6997 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6998 set_state(PART:"padding_icon_text", "icononly", 0.0);
7002 program { name: "icon_hide";
7003 signal: "elm,state,icon,hidden";
7005 action: STATE_SET "default" 0.0;
7006 target: "elm.swallow.content";
7007 target: "padding_icon_text";
7009 program { name: "disable";
7010 signal: "elm,state,disabled";
7012 action: STATE_SET "disabled" 0.0;
7013 target: "button_image";
7016 after: "disable_text";
7018 program { name: "disable_text";
7022 set_int(button_state, BUTTON_STATE_DISABLED);
7023 get_state(PART:"elm.text", st, 30, vl);
7024 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7025 set_state(PART:"elm.text", "visible", 0.0);
7028 program { name: "enable";
7029 signal: "elm,state,enabled";
7031 action: STATE_SET "default" 0.0;
7032 target: "button_image";
7035 after: "enable_text";
7037 program { name: "enable_text";
7041 set_int(button_state, BUTTON_STATE_ENABLED);
7042 get_state(PART:"elm.text", st, 30, vl);
7043 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7044 set_state(PART:"elm.text", "visible", 0.0);
7047 program { name: "focused";
7048 action: STATE_SET "focused" 0.0;
7049 target: "button_image";
7052 program { name: "unfocused";
7053 action: STATE_SET "default" 0.0;
7054 target: "button_image";
7055 after: "unfocus_text";
7057 program { name: "unfocus_text";
7058 action: STATE_SET "visible" 0.0;
7064 //////////////////////////////////////////////////////////////
7065 group { name: "elm/button/base/naviframe/title/default";
7067 image: "00_Title_btn.png" COMP;
7068 image: "00_Title_btn_press.png" COMP;
7071 public button_state = BUTTON_STATE_ENABLED;
7074 part { name: "button_image";
7076 description { state: "default" 0.0;
7077 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7078 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7080 normal: "00_Title_btn.png";
7081 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7085 description { state: "clicked" 0.0;
7086 inherit: "default" 0.0;
7087 image.normal: "00_Title_btn_press.png";
7089 description { state: "disabled" 0.0;
7090 inherit: "default" 0.0;
7092 description { state: "focused" 0.0;
7093 inherit: "default" 0.0;
7094 image.normal: "00_Title_btn_press.png";
7097 part { name: "padding_left_top";
7101 description { state: "default" 0.0;
7103 rel2.relative: 0.0 0.0;
7104 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7113 description { state: "default" 0.0;
7114 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7117 description { state: "visible" 0.0;
7118 inherit: "default" 0.0;
7119 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7121 description { state: "icononly" 0.0;
7122 inherit: "default" 0.0;
7123 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7126 part { name: "padding_right_bottom";
7130 description { state: "default" 0.0;
7132 rel1.relative: 1.0 1.0;
7133 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7138 part { name: "icon_rect";
7142 description { state: "default" 0.0;
7148 to: "padding_left_top";
7152 to_x: "padding_left_top";
7153 to_y: "padding_right_bottom";
7157 description { state: "visible" 0.0;
7159 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7160 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7164 to: "padding_left_top";
7168 to_x: "padding_left_top";
7169 to_y: "padding_right_bottom";
7173 description { state: "icononly" 0.0;
7174 inherit: "default" 0.0;
7177 part { name: "padding_after_icon";
7181 description { state: "default" 0.0; //when only icon or no icon is there
7187 rel2.to: "icon_rect";
7192 description { state: "visible" 0.0;
7199 rel2.to: "icon_rect";
7201 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7203 description { state: "icononly" 0.0;
7204 inherit: "default" 0.0;
7207 part { name: "padding_before_text";
7211 description { state: "default" 0.0; //when only icon or no icon is there
7216 to_y: "padding_left_top";
7221 to_y: "padding_right_bottom";
7224 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7228 part { name: "elm.swallow.content";
7232 description { state: "default" 0.0;
7237 to: "padding_left_top";
7241 to_x: "padding_left_top";
7242 to_y: "padding_right_bottom";
7246 description { state: "visible" 0.0;
7248 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7249 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7253 to_x: "padding_before_text";
7254 to_y: "padding_left_top";
7258 to_x: "padding_before_text";
7259 to_y: "padding_right_bottom";
7262 description { state: "icononly" 0.0;
7263 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7264 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7267 part { name: "elm.text";
7272 description { state: "default" 0.0;
7276 to_x: "padding_after_icon";
7277 to_y: "padding_left_top";
7281 to: "padding_right_bottom";
7283 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7285 font: "SLP:style=Medium";
7286 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7291 description { state: "visible" 0.0;
7292 inherit: "default" 0.0;
7295 description { state: "clicked" 0.0;
7296 inherit: "default" 0.0;
7298 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7300 description { state: "disabled" 0.0;
7301 inherit: "default" 0.0;
7304 description { state: "disabled_visible" 0.0;
7305 inherit: "default" 0.0;
7306 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7309 description { state: "focused" 0.0;
7310 inherit: "default" 0.0;
7312 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7315 part { name: "over2";
7318 ignore_flags: ON_HOLD;
7319 description { state: "default" 0.0;
7323 part { name: "over3";
7326 description { state: "default" 0.0;
7330 part { name: "clipper";
7332 description { state: "default" 0.0;
7333 color: 255 255 255 255;
7336 part { name: "disabler";
7338 description { state: "default" 0.0;
7342 description { state: "disabled" 0.0;
7343 inherit: "default" 0.0;
7349 program { name: "button_click";
7350 signal: "mouse,down,1";
7352 action: SIGNAL_EMIT "elm,action,press" "";
7353 after: "button_click_anim";
7355 program { name: "button_click_anim";
7356 action: STATE_SET "clicked" 0.0;
7357 target: "button_image";
7358 after: "text_clicked";
7360 program { name: "text_clicked";
7364 get_state(PART:"elm.text", st, 30, vl);
7365 if (!strcmp(st, "visible"))
7366 set_state(PART:"elm.text", "clicked", 0.0);
7369 program { name: "button_unpress";
7370 action: SIGNAL_EMIT "elm,action,unpress" "";
7372 program { name: "button_mouseout_clicked";
7373 signal: "mouse,up,1";
7378 get_state(PART:"elm.swallow.content", st, 30, vl);
7379 if (strcmp(st, "icononly"))
7381 emit("elm,action,default,text,set", "");
7382 set_state(PART:"elm.text", "visible", 0.0);
7384 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7385 set_state(PART:"button_image", "default", 0.0);
7387 after: button_unpress;
7389 program { name: "button_unclick3";
7390 signal: "mouse,clicked,1";
7392 action: SIGNAL_EMIT "elm,action,click" "";
7394 program { name: "text_show";
7395 signal: "elm,state,text,visible";
7400 get_state(PART:"elm.swallow.content", st, 30, vl);
7401 if (!strcmp(st, "icononly"))
7403 set_state(PART:"elm.swallow.content", "visible", 0.0);
7404 set_state(PART:"icon_rect", "visible", 0.0);
7405 set_state(PART:"padding_after_icon", "visible", 0.0);
7406 set_state(PART:"bg", "visible", 0.0);
7408 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7409 set_state(PART:"elm.text", "visible", 0.0);
7411 set_state(PART:"elm.text", "disabled_visible", 0.0);
7414 program { name: "text_hide";
7415 signal: "elm,state,text,hidden";
7420 get_state(PART:"elm.swallow.content", st, 30, vl);
7421 if (!strcmp(st, "visible"))
7423 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7424 set_state(PART:"icon_rect", "icononly", 0.0);
7425 set_state(PART:"padding_after_icon", "icononly", 0.0);
7426 set_state(PART:"bg", "icononly", 0.0);
7428 set_state(PART:"elm.text", "default", 0.0);
7431 program { name: "icon_show";
7432 signal: "elm,state,icon,visible";
7437 get_state(PART:"elm.text", st, 30, vl);
7438 if (!strcmp(st, "visible"))
7440 set_state(PART:"elm.swallow.content", "visible", 0.0);
7441 set_state(PART:"icon_rect", "visible", 0.0);
7442 set_state(PART:"padding_after_icon", "visible", 0.0);
7443 set_state(PART:"bg", "visible", 0.0);
7447 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7448 set_state(PART:"icon_rect", "icononly", 0.0);
7449 set_state(PART:"padding_after_icon", "icononly", 0.0);
7450 set_state(PART:"bg", "icononly", 0.0);
7454 program { name: "icon_hide";
7455 signal: "elm,state,icon,hidden";
7457 action: STATE_SET "default" 0.0;
7458 target: "elm.swallow.content";
7459 target: "padding_after_icon";
7460 target: "icon_rect";
7463 program { name: "disable";
7464 signal: "elm,state,disabled";
7466 action: STATE_SET "disabled" 0.0;
7467 target: "button_image";
7469 after: "disable_text";
7471 program { name: "disable_text";
7475 get_state(PART:"elm.text", st, 30, vl);
7476 if (!strcmp(st, "visible"))
7477 set_state(PART:"elm.text", "disabled_visible", 0.0);
7479 set_state(PART:"elm.text", "disabled", 0.0);
7480 set_int(button_state, BUTTON_STATE_DISABLED);
7483 program { name: "enable";
7484 signal: "elm,state,enabled";
7486 action: STATE_SET "default" 0.0;
7487 target: "button_image";
7489 after: "enable_text";
7491 program { name: "enable_text";
7495 get_state(PART:"elm.text", st, 30, vl);
7496 if (!strcmp(st, "disabled_visible"))
7497 set_state(PART:"elm.text", "visible", 0.0);
7499 set_state(PART:"elm.text", "default", 0.0);
7500 set_int(button_state, BUTTON_STATE_ENABLED);
7503 program { name: "focused";
7504 //signal: "elm,action,focus";
7506 action: STATE_SET "focused" 0.0;
7507 target: "button_image";
7510 program { name: "unfocused";
7511 //signal: "elm,action,unfocus";
7513 action: STATE_SET "default" 0.0;
7514 target: "button_image";
7515 after: "unfocus_text";
7517 program { name: "unfocus_text";
7518 action: STATE_SET "visible" 0.0;
7524 /////////////////////////////////////////////////////////////////////////////////////////
7525 group { name: "elm/button/base/naviframe/more/default";
7527 image: "00_Title_btn.png" COMP;
7528 image: "00_Title_btn_press.png" COMP;
7529 image: "00_winset_more.png" COMP;
7532 public button_state = BUTTON_STATE_ENABLED;
7535 part { name: "button_image";
7537 description { state: "default" 0.0;
7538 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
7539 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
7541 normal: "00_Title_btn.png";
7542 border: BUTTON_NAVIFRAME_MORE_BG_BORDER_INC;
7546 description { state: "clicked" 0.0;
7547 inherit: "default" 0.0;
7548 image.normal: "00_Title_btn_press.png";
7550 description { state: "disabled" 0.0;
7551 inherit: "default" 0.0;
7553 description { state: "focused" 0.0;
7554 inherit: "default" 0.0;
7555 image.normal: "00_Title_btn_press.png";
7558 part { name: "more_image";
7561 description { state: "default" 0.0;
7562 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
7563 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
7564 rel1.to: "button_image";
7565 rel2.to: "button_image";
7566 image.normal: "00_winset_more.png";
7568 description { state: "clicked" 0.0;
7569 inherit: "default" 0.0;
7572 part { name: "over2";
7575 ignore_flags: ON_HOLD;
7576 description { state: "default" 0.0;
7580 part { name: "over3";
7583 description { state: "default" 0.0;
7587 part { name: "disabler";
7589 description { state: "default" 0.0;
7593 description { state: "disabled" 0.0;
7594 inherit: "default" 0.0;
7600 program { name: "button_click";
7601 signal: "mouse,down,1";
7603 action: SIGNAL_EMIT "elm,action,press" "";
7604 after: "button_click_anim";
7606 program { name: "button_click_anim";
7607 action: STATE_SET "clicked" 0.0;
7608 target: "button_image";
7610 program { name: "button_unpress";
7611 action: SIGNAL_EMIT "elm,action,unpress" "";
7613 program { name: "button_mouseout_clicked";
7614 signal: "mouse,up,1";
7617 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7618 set_state(PART:"button_image", "default", 0.0);
7620 after: button_unpress;
7622 program { name: "button_unclick3";
7623 signal: "mouse,clicked,1";
7625 action: SIGNAL_EMIT "elm,action,click" "";
7627 program { name: "disable";
7628 signal: "elm,state,disabled";
7630 action: STATE_SET "disabled" 0.0;
7631 target: "button_image";
7633 after: "disable_button";
7635 program { name: "disable_button";
7637 set_int(button_state, BUTTON_STATE_DISABLED);
7640 program { name: "enable";
7641 signal: "elm,state,enabled";
7643 action: STATE_SET "default" 0.0;
7644 target: "button_image";
7646 after: "enable_button";
7648 program { name: "enable_button";
7650 set_int(button_state, BUTTON_STATE_ENABLED);
7656 ///////////////////////////////////////////////////////////////////////////////////////
7657 group { name: "elm/button/base/controlbar/vertical";
7659 public button_state = BUTTON_STATE_ENABLED;
7662 style { name: "controlbar_style";
7663 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";
7666 tag: "hilight" "+ font=SLP:style=Bold";
7667 tag: "b" "+ font=SLP:style=Bold";
7672 part { name: "button_image";
7675 description { state: "default" 0.0;
7683 part { name: "padding_left_top";
7687 description { state: "default" 0.0;
7689 rel2.relative: 0.0 0.0;
7695 part { name: "padding_right_bottom";
7699 description { state: "default" 0.0;
7701 rel1.relative: 1.0 1.0;
7712 description { state: "default" 0.0;
7717 to: "padding_left_top";
7721 to_x: "padding_right_bottom";
7722 to_y: "padding_left_top";
7727 description { state: "visible" 0.0;
7728 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7732 to: "padding_left_top";
7736 to_x: "padding_right_bottom";
7737 to_y: "padding_left_top";
7742 description { state: "icononly" 0.0;
7743 inherit: "default" 0.0;
7746 part { name: "padding_after_icon";
7750 description { state: "default" 0.0; //when only icon or no icon is there
7756 rel2.to: "icon_rect";
7761 description { state: "visible" 0.0;
7767 rel2.to: "icon_rect";
7772 description { state: "icononly" 0.0;
7773 inherit: "default" 0.0;
7776 part { name: "padding_before_text";
7780 description { state: "default" 0.0; //when only icon or no icon is there
7784 to_x: "padding_left_top";
7789 to_x: "padding_right_bottom";
7797 part { name: "elm.swallow.content";
7800 clip_to: "disabler";
7801 description { state: "default" 0.0;
7806 to: "padding_left_top";
7810 to_x: "padding_right_bottom";
7811 to_y: "padding_left_top";
7815 description { state: "visible" 0.0;
7817 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7818 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7821 to: "padding_left_top";
7825 to_x: "padding_right_bottom";
7826 to_y: "padding_before_text";
7829 aspect_preference: HORIZONTAL;
7831 description { state: "icononly" 0.0;
7832 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7833 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7836 to: "padding_left_top";
7840 to: "padding_right_bottom";
7843 aspect_preference: HORIZONTAL;
7846 part { name: "elm.text";
7850 clip_to: "disabler";
7851 description { state: "default" 0.0;
7855 to_x: "padding_left_top";
7856 to_y: "padding_after_icon";
7860 to: "padding_right_bottom";
7862 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7865 style: "controlbar_style";
7870 description { state: "visible" 0.0;
7871 inherit: "default" 0.0;
7874 description { state: "clicked" 0.0;
7875 inherit: "default" 0.0;
7877 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7879 description { state: "focused" 0.0;
7880 inherit: "default" 0.0;
7882 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7885 part { name: "over2";
7888 ignore_flags: ON_HOLD;
7889 description { state: "default" 0.0;
7892 description { state: "disabled" 0.0;
7893 inherit: "default" 0.0;
7897 part { name: "over3";
7900 description { state: "default" 0.0;
7904 part { name: "disabler";
7906 description { state: "default" 0.0;
7907 color: 255 255 255 255;
7910 description { state: "disabled" 0.0;
7911 inherit: "default" 0.0;
7912 color: 255 255 255 127;
7918 program { name: "button_click";
7919 signal: "mouse,down,1";
7921 action: SIGNAL_EMIT "elm,action,press" "";
7922 after: "button_click_anim";
7924 program { name: "button_click_anim";
7925 action: STATE_SET "clicked" 0.0;
7926 target: "button_image";
7927 after: "text_clicked";
7929 program { name: "text_clicked";
7933 get_state(PART:"elm.text", st, 30, vl);
7934 if (!strcmp(st, "visible"))
7935 set_state(PART:"elm.text", "clicked", 0.0);
7938 program { name: "button_unpress";
7939 action: SIGNAL_EMIT "elm,action,unpress" "";
7941 program { name: "button_mouseout_clicked";
7942 signal: "mouse,up,1";
7947 get_state(PART:"elm.swallow.content", st, 30, vl);
7948 if (strcmp(st, "icononly"))
7950 emit("elm,action,default,text,set", "");
7951 set_state(PART:"elm.text", "visible", 0.0);
7953 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7954 set_state(PART:"button_image", "default", 0.0);
7956 after: button_unpress;
7958 program { name: "button_unclick3";
7959 signal: "mouse,clicked,1";
7961 action: SIGNAL_EMIT "elm,action,click" "";
7963 program { name: "text_show";
7964 signal: "elm,state,text,visible";
7969 get_state(PART:"elm.swallow.content", st, 30, vl);
7970 if (!strcmp(st, "icononly"))
7972 set_state(PART:"elm.swallow.content", "visible", 0.0);
7973 set_state(PART:"icon_rect", "visible", 0.0);
7974 set_state(PART:"padding_after_icon", "visible", 0.0);
7976 set_state(PART:"elm.text", "visible", 0.0);
7979 program { name: "text_hide";
7980 signal: "elm,state,text,hidden";
7985 get_state(PART:"elm.swallow.content", st, 30, vl);
7986 if (!strcmp(st, "visible"))
7988 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7989 set_state(PART:"icon_rect", "icononly", 0.0);
7990 set_state(PART:"padding_after_icon", "icononly", 0.0);
7992 set_state(PART:"elm.text", "default", 0.0);
7995 program { name: "icon_show";
7996 signal: "elm,state,icon,visible";
8001 get_state(PART:"elm.text", st, 30, vl);
8002 if (!strcmp(st, "visible"))
8004 set_state(PART:"elm.swallow.content", "visible", 0.0);
8005 set_state(PART:"icon_rect", "visible", 0.0);
8006 set_state(PART:"padding_after_icon", "visible", 0.0);
8010 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8011 set_state(PART:"icon_rect", "icononly", 0.0);
8012 set_state(PART:"padding_after_icon", "icononly", 0.0);
8016 program { name: "icon_hide";
8017 signal: "elm,state,icon,hidden";
8019 action: STATE_SET "default" 0.0;
8020 target: "elm.swallow.content";
8021 target: "icon_rect";
8022 target: "padding_after_icon";
8024 program { name: "disable";
8025 signal: "elm,state,disabled";
8027 action: STATE_SET "disabled" 0.0;
8030 after: "disable_text";
8032 program { name: "disable_text";
8036 set_int(button_state, BUTTON_STATE_DISABLED);
8037 get_state(PART:"elm.text", st, 30, vl);
8038 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8039 set_state(PART:"elm.text", "visible", 0.0);
8042 program { name: "enable";
8043 signal: "elm,state,enabled";
8045 action: STATE_SET "default" 0.0;
8048 after: "enable_text";
8050 program { name: "enable_text";
8054 set_int(button_state, BUTTON_STATE_ENABLED);
8055 get_state(PART:"elm.text", st, 30, vl);
8056 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8057 set_state(PART:"elm.text", "visible", 0.0);
8060 program { name: "focused";
8061 action: STATE_SET "focused" 0.0;
8062 target: "button_image";
8065 program { name: "unfocused";
8066 action: STATE_SET "default" 0.0;
8067 target: "button_image";
8068 after: "unfocus_text";
8070 program { name: "unfocus_text";
8071 action: STATE_SET "visible" 0.0;
8077 ///////////////////////////////////////////////////////////////////////////////////////
8078 group { name: "elm/button/base/controlbar/horizontal_center";
8080 public button_state = BUTTON_STATE_ENABLED;
8083 part { name: "button_image";
8086 description { state: "default" 0.0;
8093 description { state: "clicked" 0.0;
8094 inherit: "default" 0.0;
8098 part { name: "padding_left_top";
8102 description { state: "default" 0.0;
8104 rel2.relative: 0.0 0.0;
8110 part { name: "padding_right_bottom";
8114 description { state: "default" 0.0;
8116 rel1.relative: 1.0 1.0;
8122 part { name: "icon_rect";
8126 description { state: "default" 0.0;
8131 to: "padding_left_top";
8135 to_x: "padding_left_top";
8136 to_y: "padding_right_bottom";
8141 description { state: "visible" 0.0;
8142 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8146 to: "padding_left_top";
8150 to_x: "padding_left_top";
8151 to_y: "padding_right_bottom";
8156 description { state: "icononly" 0.0;
8157 inherit: "default" 0.0;
8158 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8161 part { name: "padding_after_icon";
8165 description { state: "default" 0.0; //when only icon or no icon is there
8171 rel2.to: "icon_rect";
8176 description { state: "visible" 0.0;
8182 rel2.to: "icon_rect";
8187 description { state: "icononly" 0.0;
8188 inherit: "default" 0.0;
8191 part { name: "padding_before_text";
8195 description { state: "default" 0.0; //when only icon or no icon is there
8200 to_y: "padding_left_top";
8205 to_y: "padding_right_bottom";
8212 part { name: "elm.swallow.content";
8215 clip_to: "disabler";
8216 description { state: "default" 0.0;
8221 to: "padding_left_top";
8225 to_x: "padding_left_top";
8226 to_y: "padding_right_bottom";
8230 description { state: "visible" 0.0;
8232 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8233 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8237 to_x: "padding_before_text";
8238 to_y: "padding_left_top";
8242 to_x: "padding_before_text";
8243 to_y: "padding_right_bottom";
8246 aspect_preference: VERTICAL;
8248 description { state: "icononly" 0.0;
8249 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8250 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8253 to: "padding_left_top";
8257 to: "padding_right_bottom";
8260 aspect_preference: VERTICAL;
8263 part { name: "elm.text";
8267 clip_to: "disabler";
8268 description { state: "default" 0.0;
8272 to_x: "padding_after_icon";
8273 to_y: "padding_left_top";
8277 to: "padding_right_bottom";
8279 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8281 font: "SLP:style=Medium";
8282 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
8287 description { state: "visible" 0.0;
8288 inherit: "default" 0.0;
8291 description { state: "clicked" 0.0;
8292 inherit: "default" 0.0;
8296 description { state: "focused" 0.0;
8297 inherit: "default" 0.0;
8300 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8303 part { name: "over2";
8306 ignore_flags: ON_HOLD;
8307 description { state: "default" 0.0;
8310 description { state: "disabled" 0.0;
8311 inherit: "default" 0.0;
8315 part { name: "over3";
8318 description { state: "default" 0.0;
8322 part { name: "disabler";
8324 description { state: "default" 0.0;
8325 color: 255 255 255 255;
8327 description { state: "disabled" 0.0;
8328 color: 255 255 255 127;
8333 program { name: "button_click";
8334 signal: "mouse,down,1";
8336 action: SIGNAL_EMIT "elm,action,press" "";
8337 after: "button_click_anim";
8339 program { name: "button_click_anim";
8340 action: STATE_SET "clicked" 0.0;
8341 target: "button_image";
8342 after: "text_clicked";
8344 program { name: "text_clicked";
8348 get_state(PART:"elm.text", st, 30, vl);
8349 if (!strcmp(st, "visible"))
8350 set_state(PART:"elm.text", "clicked", 0.0);
8353 program { name: "button_unpress";
8354 action: SIGNAL_EMIT "elm,action,unpress" "";
8356 program { name: "button_mouseout_clicked";
8357 signal: "mouse,up,1";
8362 get_state(PART:"elm.swallow.content", st, 30, vl);
8363 if (strcmp(st, "icononly"))
8365 emit("elm,action,default,text,set", "");
8366 set_state(PART:"elm.text", "visible", 0.0);
8368 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8369 set_state(PART:"button_image", "default", 0.0);
8371 after: button_unpress;
8373 program { name: "button_unclick3";
8374 signal: "mouse,clicked,1";
8376 action: SIGNAL_EMIT "elm,action,click" "";
8378 program { name: "text_show";
8379 signal: "elm,state,text,visible";
8384 get_state(PART:"elm.swallow.content", st, 30, vl);
8385 if (!strcmp(st, "icononly"))
8387 set_state(PART:"elm.swallow.content", "visible", 0.0);
8388 set_state(PART:"icon_rect", "visible", 0.0);
8389 set_state(PART:"padding_after_icon", "visible", 0.0);
8391 set_state(PART:"elm.text", "visible", 0.0);
8394 program { name: "text_hide";
8395 signal: "elm,state,text,hidden";
8400 get_state(PART:"elm.swallow.content", st, 30, vl);
8401 if (!strcmp(st, "visible"))
8403 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8404 set_state(PART:"icon_rect", "icononly", 0.0);
8405 set_state(PART:"padding_after_icon", "icononly", 0.0);
8407 set_state(PART:"elm.text", "default", 0.0);
8410 program { name: "icon_show";
8411 signal: "elm,state,icon,visible";
8416 get_state(PART:"elm.text", st, 30, vl);
8417 if (!strcmp(st, "visible"))
8419 set_state(PART:"elm.swallow.content", "visible", 0.0);
8420 set_state(PART:"icon_rect", "visible", 0.0);
8421 set_state(PART:"padding_after_icon", "visible", 0.0);
8425 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8426 set_state(PART:"icon_rect", "icononly", 0.0);
8427 set_state(PART:"padding_after_icon", "icononly", 0.0);
8431 program { name: "icon_hide";
8432 signal: "elm,state,icon,hidden";
8434 action: STATE_SET "default" 0.0;
8435 target: "elm.swallow.content";
8436 target: "icon_rect";
8437 target: "padding_after_icon";
8439 program { name: "disable";
8440 signal: "elm,state,disabled";
8442 action: STATE_SET "disabled" 0.0;
8445 after: "disable_text";
8447 program { name: "disable_text";
8451 set_int(button_state, BUTTON_STATE_DISABLED);
8452 get_state(PART:"elm.text", st, 30, vl);
8453 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8454 set_state(PART:"elm.text", "visible", 0.0);
8457 program { name: "enable";
8458 signal: "elm,state,enabled";
8460 action: STATE_SET "default" 0.0;
8463 after: "enable_text";
8465 program { name: "enable_text";
8469 set_int(button_state, BUTTON_STATE_ENABLED);
8470 get_state(PART:"elm.text", st, 30, vl);
8471 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8472 set_state(PART:"elm.text", "visible", 0.0);
8475 program { name: "focused";
8476 action: STATE_SET "focused" 0.0;
8477 target: "button_image";
8480 program { name: "unfocused";
8481 action: STATE_SET "default" 0.0;
8482 target: "button_image";
8483 after: "unfocus_text";
8485 program { name: "unfocus_text";
8486 action: STATE_SET "visible" 0.0;
8492 ///////////////////////////////////////////////////////////////////////////////////////
8493 group { name: "elm/button/base/controlbar/horizontal_left";
8495 public button_state = BUTTON_STATE_ENABLED;
8498 part { name: "button_image";
8501 description { state: "default" 0.0;
8508 description { state: "clicked" 0.0;
8509 inherit: "default" 0.0;
8513 part { name: "padding_left_top";
8517 description { state: "default" 0.0;
8519 rel2.relative: 0.0 0.0;
8525 part { name: "padding_right_bottom";
8529 description { state: "default" 0.0;
8531 rel1.relative: 1.0 1.0;
8537 part { name: "icon_rect";
8541 description { state: "default" 0.0;
8546 to: "padding_left_top";
8550 to_x: "padding_left_top";
8551 to_y: "padding_right_bottom";
8556 description { state: "visible" 0.0;
8557 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8561 to: "padding_left_top";
8565 to_x: "padding_left_top";
8566 to_y: "padding_right_bottom";
8571 description { state: "icononly" 0.0;
8572 inherit: "default" 0.0;
8575 part { name: "padding_after_icon";
8579 description { state: "default" 0.0; //when only icon or no icon is there
8585 rel2.to: "icon_rect";
8590 description { state: "visible" 0.0;
8596 rel2.to: "icon_rect";
8601 description { state: "icononly" 0.0;
8602 inherit: "default" 0.0;
8605 part { name: "padding_before_text";
8609 description { state: "default" 0.0; //when only icon or no icon is there
8614 to_y: "padding_left_top";
8619 to_y: "padding_right_bottom";
8626 part { name: "elm.swallow.content";
8629 clip_to: "disabler";
8630 description { state: "default" 0.0;
8635 to: "padding_left_top";
8639 to_x: "padding_left_top";
8640 to_y: "padding_right_bottom";
8644 description { state: "visible" 0.0;
8646 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8647 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8651 to_x: "padding_before_text";
8652 to_y: "padding_left_top";
8656 to_x: "padding_before_text";
8657 to_y: "padding_right_bottom";
8660 aspect_preference: VERTICAL;
8662 description { state: "icononly" 0.0;
8663 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8664 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8667 to: "padding_left_top";
8671 to: "padding_right_bottom";
8674 aspect_preference: VERTICAL;
8677 part { name: "elm.text";
8681 clip_to: "disabler";
8682 description { state: "default" 0.0;
8686 to_x: "padding_after_icon";
8687 to_y: "padding_left_top";
8691 to: "padding_right_bottom";
8694 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8696 font: "SLP:style=Medium";
8703 description { state: "visible" 0.0;
8704 inherit: "default" 0.0;
8707 description { state: "clicked" 0.0;
8708 inherit: "default" 0.0;
8712 description { state: "focused" 0.0;
8713 inherit: "default" 0.0;
8716 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8719 part { name: "over2";
8722 ignore_flags: ON_HOLD;
8723 description { state: "default" 0.0;
8727 part { name: "over3";
8730 description { state: "default" 0.0;
8734 part { name: "disabler";
8736 description { state: "default" 0.0;
8737 color: 255 255 255 255;
8739 description { state: "disabled" 0.0;
8740 color: 255 255 255 127;
8745 program { name: "button_click";
8746 signal: "mouse,down,1";
8748 action: SIGNAL_EMIT "elm,action,press" "";
8749 after: "button_click_anim";
8751 program { name: "button_click_anim";
8752 action: STATE_SET "clicked" 0.0;
8753 target: "button_image";
8754 after: "text_clicked";
8756 program { name: "text_clicked";
8760 get_state(PART:"elm.text", st, 30, vl);
8761 if (!strcmp(st, "visible"))
8762 set_state(PART:"elm.text", "clicked", 0.0);
8765 program { name: "button_unpress";
8766 action: SIGNAL_EMIT "elm,action,unpress" "";
8768 program { name: "button_mouseout_clicked";
8769 signal: "mouse,up,1";
8774 get_state(PART:"elm.swallow.content", st, 30, vl);
8775 if (strcmp(st, "icononly"))
8777 emit("elm,action,default,text,set", "");
8778 set_state(PART:"elm.text", "visible", 0.0);
8780 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8781 set_state(PART:"button_image", "default", 0.0);
8783 after: button_unpress;
8785 program { name: "button_unclick3";
8786 signal: "mouse,clicked,1";
8788 action: SIGNAL_EMIT "elm,action,click" "";
8790 program { name: "text_show";
8791 signal: "elm,state,text,visible";
8796 get_state(PART:"elm.swallow.content", st, 30, vl);
8797 if (!strcmp(st, "icononly"))
8799 set_state(PART:"elm.swallow.content", "visible", 0.0);
8800 set_state(PART:"icon_rect", "visible", 0.0);
8801 set_state(PART:"padding_after_icon", "visible", 0.0);
8803 set_state(PART:"elm.text", "visible", 0.0);
8806 program { name: "text_hide";
8807 signal: "elm,state,text,hidden";
8812 get_state(PART:"elm.swallow.content", st, 30, vl);
8813 if (!strcmp(st, "visible"))
8815 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8816 set_state(PART:"icon_rect", "icononly", 0.0);
8817 set_state(PART:"padding_after_icon", "icononly", 0.0);
8819 set_state(PART:"elm.text", "default", 0.0);
8822 program { name: "icon_show";
8823 signal: "elm,state,icon,visible";
8828 get_state(PART:"elm.text", st, 30, vl);
8829 if (!strcmp(st, "visible"))
8831 set_state(PART:"elm.swallow.content", "visible", 0.0);
8832 set_state(PART:"icon_rect", "visible", 0.0);
8833 set_state(PART:"padding_after_icon", "visible", 0.0);
8837 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8838 set_state(PART:"icon_rect", "icononly", 0.0);
8839 set_state(PART:"padding_after_icon", "icononly", 0.0);
8843 program { name: "icon_hide";
8844 signal: "elm,state,icon,hidden";
8846 action: STATE_SET "default" 0.0;
8847 target: "elm.swallow.content";
8848 target: "icon_rect";
8849 target: "padding_after_icon";
8851 program { name: "disable";
8852 signal: "elm,state,disabled";
8854 action: STATE_SET "disabled" 0.0;
8856 after: "disable_text";
8858 program { name: "disable_text";
8862 set_int(button_state, BUTTON_STATE_DISABLED);
8863 get_state(PART:"elm.text", st, 30, vl);
8864 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8865 set_state(PART:"elm.text", "visible", 0.0);
8868 program { name: "enable";
8869 signal: "elm,state,enabled";
8871 action: STATE_SET "default" 0.0;
8873 after: "enable_text";
8875 program { name: "enable_text";
8879 set_int(button_state, BUTTON_STATE_ENABLED);
8880 get_state(PART:"elm.text", st, 30, vl);
8881 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8882 set_state(PART:"elm.text", "visible", 0.0);
8885 program { name: "focused";
8886 action: STATE_SET "focused" 0.0;
8887 target: "button_image";
8890 program { name: "unfocused";
8891 action: STATE_SET "default" 0.0;
8892 target: "button_image";
8893 after: "unfocus_text";
8895 program { name: "unfocus_text";
8896 action: STATE_SET "visible" 0.0;
8902 ///////////////////////////////////////////////////////////////////////////////////////
8903 group { name: "elm/button/base/controlbar/horizontal_right";
8905 public button_state = BUTTON_STATE_ENABLED;
8908 part { name: "button_image";
8911 description { state: "default" 0.0;
8918 description { state: "clicked" 0.0;
8919 inherit: "default" 0.0;
8923 part { name: "padding_left_top";
8927 description { state: "default" 0.0;
8929 rel2.relative: 0.0 0.0;
8935 part { name: "padding_right_bottom";
8939 description { state: "default" 0.0;
8941 rel1.relative: 1.0 1.0;
8947 part { name: "icon_rect";
8951 description { state: "default" 0.0;
8956 to: "padding_left_top";
8960 to_x: "padding_left_top";
8961 to_y: "padding_right_bottom";
8966 description { state: "visible" 0.0;
8967 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8971 to: "padding_left_top";
8975 to_x: "padding_left_top";
8976 to_y: "padding_right_bottom";
8981 description { state: "icononly" 0.0;
8982 inherit: "default" 0.0;
8985 part { name: "padding_after_icon";
8989 description { state: "default" 0.0; //when only icon or no icon is there
8995 rel2.to: "icon_rect";
9000 description { state: "visible" 0.0;
9006 rel2.to: "icon_rect";
9011 description { state: "icononly" 0.0;
9012 inherit: "default" 0.0;
9015 part { name: "padding_before_text";
9019 description { state: "default" 0.0; //when only icon or no icon is there
9024 to_y: "padding_left_top";
9029 to_y: "padding_right_bottom";
9036 part { name: "elm.swallow.content";
9039 clip_to: "disabler";
9040 description { state: "default" 0.0;
9045 to: "padding_left_top";
9049 to_x: "padding_left_top";
9050 to_y: "padding_right_bottom";
9054 description { state: "visible" 0.0;
9056 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9057 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9061 to_x: "padding_before_text";
9062 to_y: "padding_left_top";
9066 to_x: "padding_before_text";
9067 to_y: "padding_right_bottom";
9070 aspect_preference: VERTICAL;
9072 description { state: "icononly" 0.0;
9073 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9074 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9077 to: "padding_left_top";
9081 to: "padding_right_bottom";
9084 aspect_preference: VERTICAL;
9087 part { name: "elm.text";
9091 clip_to: "disabler";
9092 description { state: "default" 0.0;
9096 to_x: "padding_after_icon";
9097 to_y: "padding_left_top";
9101 to: "padding_right_bottom";
9104 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9106 font: "SLP:style=Medium";
9113 description { state: "visible" 0.0;
9114 inherit: "default" 0.0;
9117 description { state: "clicked" 0.0;
9118 inherit: "default" 0.0;
9122 description { state: "focused" 0.0;
9123 inherit: "default" 0.0;
9126 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9129 part { name: "over2";
9132 ignore_flags: ON_HOLD;
9133 description { state: "default" 0.0;
9137 part { name: "over3";
9140 description { state: "default" 0.0;
9144 part { name: "disabler";
9146 description { state: "default" 0.0;
9147 color: 255 255 255 255;
9149 description { state: "disabled" 0.0;
9150 color: 255 255 255 127;
9155 program { name: "button_click";
9156 signal: "mouse,down,1";
9158 action: SIGNAL_EMIT "elm,action,press" "";
9159 after: "button_click_anim";
9161 program { name: "button_click_anim";
9162 action: STATE_SET "clicked" 0.0;
9163 target: "button_image";
9164 after: "text_clicked";
9166 program { name: "text_clicked";
9170 get_state(PART:"elm.text", st, 30, vl);
9171 if (!strcmp(st, "visible"))
9172 set_state(PART:"elm.text", "clicked", 0.0);
9175 program { name: "button_unpress";
9176 action: SIGNAL_EMIT "elm,action,unpress" "";
9178 program { name: "button_mouseout_clicked";
9179 signal: "mouse,up,1";
9184 get_state(PART:"elm.swallow.content", st, 30, vl);
9185 if (strcmp(st, "icononly"))
9187 emit("elm,action,default,text,set", "");
9188 set_state(PART:"elm.text", "visible", 0.0);
9190 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9191 set_state(PART:"button_image", "default", 0.0);
9193 after: button_unpress;
9195 program { name: "button_unclick3";
9196 signal: "mouse,clicked,1";
9198 action: SIGNAL_EMIT "elm,action,click" "";
9200 program { name: "text_show";
9201 signal: "elm,state,text,visible";
9206 get_state(PART:"elm.swallow.content", st, 30, vl);
9207 if (!strcmp(st, "icononly"))
9209 set_state(PART:"elm.swallow.content", "visible", 0.0);
9210 set_state(PART:"icon_rect", "visible", 0.0);
9211 set_state(PART:"padding_after_icon", "visible", 0.0);
9213 set_state(PART:"elm.text", "visible", 0.0);
9216 program { name: "text_hide";
9217 signal: "elm,state,text,hidden";
9222 get_state(PART:"elm.swallow.content", st, 30, vl);
9223 if (!strcmp(st, "visible"))
9225 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9226 set_state(PART:"icon_rect", "icononly", 0.0);
9227 set_state(PART:"padding_after_icon", "icononly", 0.0);
9229 set_state(PART:"elm.text", "default", 0.0);
9232 program { name: "icon_show";
9233 signal: "elm,state,icon,visible";
9238 get_state(PART:"elm.text", st, 30, vl);
9239 if (!strcmp(st, "visible"))
9241 set_state(PART:"elm.swallow.content", "visible", 0.0);
9242 set_state(PART:"icon_rect", "visible", 0.0);
9243 set_state(PART:"padding_after_icon", "visible", 0.0);
9247 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9248 set_state(PART:"icon_rect", "icononly", 0.0);
9249 set_state(PART:"padding_after_icon", "icononly", 0.0);
9253 program { name: "icon_hide";
9254 signal: "elm,state,icon,hidden";
9256 action: STATE_SET "default" 0.0;
9257 target: "elm.swallow.content";
9258 target: "icon_rect";
9259 target: "padding_after_icon";
9261 program { name: "disable";
9262 signal: "elm,state,disabled";
9264 action: STATE_SET "disabled" 0.0;
9266 after: "disable_text";
9268 program { name: "disable_text";
9272 set_int(button_state, BUTTON_STATE_DISABLED);
9273 get_state(PART:"elm.text", st, 30, vl);
9274 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9275 set_state(PART:"elm.text", "visible", 0.0);
9278 program { name: "enable";
9279 signal: "elm,state,enabled";
9281 action: STATE_SET "default" 0.0;
9283 after: "enable_text";
9285 program { name: "enable_text";
9289 set_int(button_state, BUTTON_STATE_ENABLED);
9290 get_state(PART:"elm.text", st, 30, vl);
9291 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9292 set_state(PART:"elm.text", "visible", 0.0);
9295 program { name: "focused";
9296 action: STATE_SET "focused" 0.0;
9297 target: "button_image";
9300 program { name: "unfocused";
9301 action: STATE_SET "default" 0.0;
9302 target: "button_image";
9303 after: "unfocus_text";
9305 program { name: "unfocus_text";
9306 action: STATE_SET "visible" 0.0;
9312 ///////////////////////////////////////////////////////////////////////////////////////
9313 group { name: "elm/button/base/tickernoti";
9315 image: "00_button_06_normal.png" COMP;
9316 image: "00_button_06_press.png" COMP;
9317 image: "00_button_06_dim.png" COMP;
9320 public button_state = BUTTON_STATE_ENABLED;
9323 part { name: "button_image";
9325 description { state: "default" 0.0;
9327 normal: "00_button_06_normal.png";
9328 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
9332 description { state: "clicked" 0.0;
9333 inherit: "default" 0.0;
9334 image.normal: "00_button_06_press.png";
9336 description { state: "disabled" 0.0;
9337 inherit: "default" 0.0;
9338 image.normal: "00_button_06_dim.png";
9340 description { state: "focused" 0.0;
9341 inherit: "default" 0.0;
9342 image.normal: "00_button_06_press.png";
9345 part { name: "padding_left_top";
9349 description { state: "default" 0.0;
9351 rel2.relative: 0.0 0.0;
9352 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9361 description { state: "default" 0.0;
9362 min: BUTTON_TICKERNOTI_BG_MIN_INC;
9365 description { state: "visible" 0.0;
9366 inherit: "default" 0.0;
9367 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
9369 description { state: "icononly" 0.0;
9370 inherit: "default" 0.0;
9371 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
9374 part { name: "padding_right_bottom";
9378 description { state: "default" 0.0;
9380 rel1.relative: 1.0 1.0;
9381 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9386 part { name: "icon_rect";
9390 description { state: "default" 0.0;
9396 to: "padding_left_top";
9400 to_x: "padding_left_top";
9401 to_y: "padding_right_bottom";
9405 description { state: "visible" 0.0;
9407 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9408 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9412 to: "padding_left_top";
9416 to_x: "padding_left_top";
9417 to_y: "padding_right_bottom";
9421 description { state: "icononly" 0.0;
9422 inherit: "default" 0.0;
9425 part { name: "padding_after_icon";
9429 description { state: "default" 0.0; //when only icon or no icon is there
9435 rel2.to: "icon_rect";
9440 description { state: "visible" 0.0;
9447 rel2.to: "icon_rect";
9449 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9451 description { state: "icononly" 0.0;
9452 inherit: "default" 0.0;
9455 part { name: "padding_before_text";
9459 description { state: "default" 0.0; //when only icon or no icon is there
9464 to_y: "padding_left_top";
9469 to_y: "padding_right_bottom";
9472 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9476 part { name: "elm.swallow.content";
9480 description { state: "default" 0.0;
9485 to: "padding_left_top";
9489 to_x: "padding_left_top";
9490 to_y: "padding_right_bottom";
9494 description { state: "visible" 0.0;
9496 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9497 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9501 to_x: "padding_before_text";
9502 to_y: "padding_left_top";
9506 to_x: "padding_before_text";
9507 to_y: "padding_right_bottom";
9510 description { state: "icononly" 0.0;
9511 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9512 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9515 part { name: "elm.text";
9520 description { state: "default" 0.0;
9524 to_x: "padding_after_icon";
9525 to_y: "padding_left_top";
9529 to: "padding_right_bottom";
9531 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9533 font: "SLP:style=Medium";
9534 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9539 description { state: "visible" 0.0;
9540 inherit: "default" 0.0;
9543 description { state: "clicked" 0.0;
9544 inherit: "default" 0.0;
9546 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9548 description { state: "disabled" 0.0;
9549 inherit: "default" 0.0;
9552 description { state: "disabled_visible" 0.0;
9553 inherit: "default" 0.0;
9554 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9557 description { state: "focused" 0.0;
9558 inherit: "default" 0.0;
9560 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9563 part { name: "over2";
9566 ignore_flags: ON_HOLD;
9567 description { state: "default" 0.0;
9571 part { name: "over3";
9574 description { state: "default" 0.0;
9578 part { name: "clipper";
9580 description { state: "default" 0.0;
9581 color: 255 255 255 255;
9584 part { name: "disabler";
9586 description { state: "default" 0.0;
9590 description { state: "disabled" 0.0;
9591 inherit: "default" 0.0;
9597 program { name: "button_click";
9598 signal: "mouse,down,1";
9600 action: SIGNAL_EMIT "elm,action,press" "";
9601 after: "button_click_anim";
9603 program { name: "button_click_anim";
9604 action: STATE_SET "clicked" 0.0;
9605 target: "button_image";
9606 after: "text_clicked";
9608 program { name: "text_clicked";
9612 get_state(PART:"elm.text", st, 30, vl);
9613 if (!strcmp(st, "visible"))
9614 set_state(PART:"elm.text", "clicked", 0.0);
9617 program { name: "button_unpress";
9618 action: SIGNAL_EMIT "elm,action,unpress" "";
9620 program { name: "button_mouseout_clicked";
9621 signal: "mouse,up,1";
9626 get_state(PART:"elm.swallow.content", st, 30, vl);
9627 if (strcmp(st, "icononly"))
9629 emit("elm,action,default,text,set", "");
9630 set_state(PART:"elm.text", "visible", 0.0);
9632 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9633 set_state(PART:"button_image", "default", 0.0);
9635 after: button_unpress;
9637 program { name: "button_unclick3";
9638 signal: "mouse,clicked,1";
9640 action: SIGNAL_EMIT "elm,action,click" "";
9642 program { name: "text_show";
9643 signal: "elm,state,text,visible";
9648 get_state(PART:"elm.swallow.content", st, 30, vl);
9649 if (!strcmp(st, "icononly"))
9651 set_state(PART:"elm.swallow.content", "visible", 0.0);
9652 set_state(PART:"icon_rect", "visible", 0.0);
9653 set_state(PART:"padding_after_icon", "visible", 0.0);
9654 set_state(PART:"bg", "visible", 0.0);
9656 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9657 set_state(PART:"elm.text", "visible", 0.0);
9659 set_state(PART:"elm.text", "disabled_visible", 0.0);
9662 program { name: "text_hide";
9663 signal: "elm,state,text,hidden";
9668 get_state(PART:"elm.swallow.content", st, 30, vl);
9669 if (!strcmp(st, "visible"))
9671 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9672 set_state(PART:"icon_rect", "icononly", 0.0);
9673 set_state(PART:"padding_after_icon", "icononly", 0.0);
9674 set_state(PART:"bg", "icononly", 0.0);
9676 set_state(PART:"elm.text", "default", 0.0);
9679 program { name: "icon_show";
9680 signal: "elm,state,icon,visible";
9685 get_state(PART:"elm.text", st, 30, vl);
9686 if (!strcmp(st, "visible"))
9688 set_state(PART:"elm.swallow.content", "visible", 0.0);
9689 set_state(PART:"icon_rect", "visible", 0.0);
9690 set_state(PART:"padding_after_icon", "visible", 0.0);
9691 set_state(PART:"bg", "visible", 0.0);
9695 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9696 set_state(PART:"icon_rect", "icononly", 0.0);
9697 set_state(PART:"padding_after_icon", "icononly", 0.0);
9698 set_state(PART:"bg", "icononly", 0.0);
9702 program { name: "icon_hide";
9703 signal: "elm,state,icon,hidden";
9705 action: STATE_SET "default" 0.0;
9706 target: "elm.swallow.content";
9707 target: "padding_after_icon";
9708 target: "icon_rect";
9711 program { name: "disable";
9712 signal: "elm,state,disabled";
9714 action: STATE_SET "disabled" 0.0;
9715 target: "button_image";
9717 after: "disable_text";
9719 program { name: "disable_text";
9723 get_state(PART:"elm.text", st, 30, vl);
9724 if (!strcmp(st, "visible"))
9725 set_state(PART:"elm.text", "disabled_visible", 0.0);
9727 set_state(PART:"elm.text", "disabled", 0.0);
9728 set_int(button_state, BUTTON_STATE_DISABLED);
9731 program { name: "enable";
9732 signal: "elm,state,enabled";
9734 action: STATE_SET "default" 0.0;
9735 target: "button_image";
9737 after: "enable_text";
9739 program { name: "enable_text";
9743 get_state(PART:"elm.text", st, 30, vl);
9744 if (!strcmp(st, "disabled_visible"))
9745 set_state(PART:"elm.text", "visible", 0.0);
9747 set_state(PART:"elm.text", "default", 0.0);
9748 set_int(button_state, BUTTON_STATE_ENABLED);
9751 program { name: "focused";
9752 //signal: "elm,action,focus";
9754 action: STATE_SET "focused" 0.0;
9755 target: "button_image";
9758 program { name: "unfocused";
9759 //signal: "elm,action,unfocus";
9761 action: STATE_SET "default" 0.0;
9762 target: "button_image";
9763 after: "unfocus_text";
9765 program { name: "unfocus_text";
9766 action: STATE_SET "visible" 0.0;
9772 ///////////////////////////////////////////////////////////////////////////////////////
9773 group { name: "elm/button/base/expandable_number";
9774 alias: "elm/button/base/text_only/expandable_number";
9776 image: "00_button_05_normal.png" COMP;
9777 image: "00_button_05_press.png" COMP;
9778 image: "00_button_05_dim.png" COMP;
9779 image: "00_arrow_expand.png" COMP;
9780 image: "00_arrow_expand_press.png" COMP;
9781 image: "00_arrow_expand_dim.png" COMP;
9784 public button_state = BUTTON_STATE_ENABLED;
9787 part { name: "button_image";
9789 description { state: "default" 0.0;
9790 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9791 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9793 normal: "00_button_05_normal.png";
9794 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9798 description { state: "clicked" 0.0;
9799 inherit: "default" 0.0;
9800 image.normal: "00_button_05_press.png";
9802 description { state: "disabled" 0.0;
9803 inherit: "default" 0.0;
9804 image.normal: "00_button_05_dim.png";
9806 description { state: "focused" 0.0;
9807 inherit: "default" 0.0;
9808 image.normal: "00_button_05_press.png";
9811 part { name: "padding_left_top";
9815 description { state: "default" 0.0;
9817 rel2.relative: 0.0 0.0;
9818 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9823 part { name: "padding_right_bottom";
9827 description { state: "default" 0.0;
9829 rel1.relative: 1.0 1.0;
9830 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9835 part { name: "icon_rect";
9839 description { state: "default" 0.0;
9841 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9842 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9846 to_x: "padding_right_bottom";
9847 to_y: "padding_left_top";
9851 to: "padding_right_bottom";
9857 part { name: "arrow_expand";
9860 description { state: "default" 0.0;
9862 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9863 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9865 rel1.to: "icon_rect";
9866 rel2.to: "icon_rect";
9867 image.normal:"00_arrow_expand.png";
9869 description { state: "clicked" 0.0;
9870 inherit: "default" 0.0;
9871 image.normal:"00_arrow_expand_press.png";
9873 description { state: "disabled" 0.0;
9874 inherit: "default" 0.0;
9875 image.normal:"00_arrow_expand_dim.png";
9878 part { name: "elm.text";
9882 description { state: "default" 0.0;
9883 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9884 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9888 to: "padding_left_top";
9892 to_x:"padding_left_top";
9893 to_y:"padding_right_bottom";
9896 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9898 font: "SLP:style=Medium";
9899 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9905 description { state: "visible" 0.0;
9906 inherit: "default" 0.0;
9908 description { state: "clicked" 0.0;
9909 inherit: "default" 0.0;
9910 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9912 description { state: "disabled" 0.0;
9913 inherit: "default" 0.0;
9916 description { state: "disabled_visible" 0.0;
9917 inherit: "default" 0.0;
9918 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9920 description { state: "focused" 0.0;
9921 inherit: "default" 0.0;
9922 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9925 part { name: "over2";
9928 ignore_flags: ON_HOLD;
9929 description { state: "default" 0.0;
9933 part { name: "over3";
9936 description { state: "default" 0.0;
9940 part { name: "disabler";
9942 description { state: "default" 0.0;
9946 description { state: "disabled" 0.0;
9947 inherit: "default" 0.0;
9953 program { name: "button_click";
9954 signal: "mouse,down,1";
9956 action: SIGNAL_EMIT "elm,action,press" "";
9957 after: "button_click_anim";
9959 program { name: "button_click_anim";
9960 action: STATE_SET "clicked" 0.0;
9961 target: "button_image";
9962 target: "arrow_expand";
9963 after: "text_clicked";
9965 program { name: "text_clicked";
9969 get_state(PART:"elm.text", st, 30, vl);
9970 if (!strcmp(st, "visible"))
9971 set_state(PART:"elm.text", "clicked", 0.0);
9974 program { name: "button_unpress";
9975 action: SIGNAL_EMIT "elm,action,unpress" "";
9977 program { name: "button_mouseout_clicked";
9978 signal: "mouse,up,1";
9981 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9983 set_state(PART:"button_image", "default", 0.0);
9984 set_state(PART:"elm.text", "visible", 0.0);
9985 set_state(PART:"arrow_expand", "default", 0.0);
9988 after: button_unpress;
9990 program { name: "button_unclick3";
9991 signal: "mouse,clicked,1";
9993 action: SIGNAL_EMIT "elm,action,click" "";
9995 program { name: "text_show";
9996 signal: "elm,state,text,visible";
9999 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10000 set_state(PART:"elm.text", "visible", 0.0);
10002 set_state(PART:"elm.text", "disabled_visible", 0.0);
10005 program { name: "text_hide";
10006 signal: "elm,state,text,hidden";
10009 set_state(PART:"elm.text", "default", 0.0);
10012 program { name: "disable";
10013 signal: "elm,state,disabled";
10015 action: STATE_SET "disabled" 0.0;
10016 target: "button_image";
10017 target: "disabler";
10018 after: "disable_text";
10020 program { name: "disable_text";
10024 get_state(PART:"elm.text", st, 30, vl);
10025 if (!strcmp(st, "visible"))
10026 set_state(PART:"elm.text", "disabled_visible", 0.0);
10028 set_state(PART:"elm.text", "disabled", 0.0);
10029 set_int(button_state, BUTTON_STATE_DISABLED);
10032 program { name: "enable";
10033 signal: "elm,state,enabled";
10035 action: STATE_SET "default" 0.0;
10036 target: "button_image";
10037 target: "disabler";
10038 after: "enable_text";
10040 program { name: "enable_text";
10044 get_state(PART:"elm.text", st, 30, vl);
10045 if (!strcmp(st, "disabled_visible"))
10046 set_state(PART:"elm.text", "visible", 0.0);
10048 set_state(PART:"elm.text", "default", 0.0);
10049 set_int(button_state, BUTTON_STATE_ENABLED);
10052 program { name: "focused";
10053 //signal: "elm,action,focus";
10055 action: STATE_SET "focused" 0.0;
10056 target: "button_image";
10057 target: "elm.text";
10059 program { name: "unfocused";
10060 //signal: "elm,action,unfocus";
10062 action: STATE_SET "default" 0.0;
10063 target: "button_image";
10064 after: "unfocus_text";
10066 program { name: "unfocus_text";
10067 action: STATE_SET "visible" 0.0;
10068 target: "elm.text";
10073 #undef BUTTON_STATE_ENABLED
10074 #undef BUTTON_STATE_DISABLED