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";
950 alias: "elm/button/base/searchbar/default";
952 image: "00_button_sweep.png" COMP;
953 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
954 image: "00_button_sweep_dim.png" COMP;
957 public button_state = BUTTON_STATE_ENABLED;
960 part { name: "button_image";
962 description { state: "default" 0.0;
963 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
965 normal: "00_button_sweep.png";
966 border: BUTTON_SWEEP_BG_BORDER_INC;
970 description { state: "clicked" 0.0;
971 inherit: "default" 0.0;
972 image.normal: "00_button_sweep_press.png";
974 description { state: "disabled" 0.0;
975 inherit: "default" 0.0;
976 image.normal: "00_button_sweep_dim.png";
978 description { state: "focused" 0.0;
979 inherit: "default" 0.0;
980 image.normal: "00_button_sweep_press.png";
983 part { name: "padding_left_top";
987 description { state: "default" 0.0;
989 rel2.relative: 0.0 0.0;
990 min: BUTTON_SWEEP_PADDING_MIN_INC;
995 part { name: "padding_right_bottom";
999 description { state: "default" 0.0;
1001 rel1.relative: 1.0 1.0;
1002 min: BUTTON_SWEEP_PADDING_MIN_INC;
1007 part { name: "icon_rect";
1011 description { state: "default" 0.0;
1012 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1016 to_x: "elm.swallow.content";
1017 to_y: "padding_left_top";
1021 to_x: "elm.swallow.content";
1022 to_y: "padding_right_bottom";
1028 part { name: "padding_icon_text";
1032 description { state: "default" 0.0; //when only icon or no icon is there
1038 rel2.to: "icon_rect";
1043 description { state: "icononly" 0.0;
1044 inherit: "default" 0.0;
1046 description { state: "visible" 0.0; //when icon is visible
1052 rel2.to: "icon_rect";
1054 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1058 part { name: "elm.swallow.content";
1062 description { state: "default" 0.0;
1067 to: "padding_left_top";
1071 to_x: "padding_left_top";
1072 to_y: "padding_right_bottom";
1076 description { state: "visible" 0.0;
1081 to: "padding_left_top";
1085 to_x: "padding_left_top";
1086 to_y: "padding_right_bottom";
1089 aspect_preference: VERTICAL;
1091 description { state: "icononly" 0.0;
1092 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1095 to: "padding_left_top";
1099 to_x: "padding_left_top";
1100 to_y: "padding_right_bottom";
1104 part { name: "elm.text";
1109 description { state: "default" 0.0;
1113 to_x: "padding_icon_text";
1114 to_y: "padding_left_top";
1118 to: "padding_right_bottom";
1120 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1122 font: "SLP:style=Medium";
1123 size: BUTTON_SWEEP_FONT_SIZE_INC;
1127 description { state: "visible" 0.0;
1128 inherit: "default" 0.0;
1130 min: BUTTON_SWEEP_TEXT_MIN_INC;
1132 description { state: "clicked" 0.0;
1133 inherit: "default" 0.0;
1136 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1138 description { state: "disabled" 0.0;
1139 inherit: "default" 0.0;
1142 description { state: "disabled_visible" 0.0;
1143 inherit: "default" 0.0;
1144 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1146 min: BUTTON_SWEEP_TEXT_MIN_INC;
1148 description { state: "focused" 0.0;
1149 inherit: "default" 0.0;
1152 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1155 part { name: "over2";
1158 ignore_flags: ON_HOLD;
1159 description { state: "default" 0.0;
1163 part { name: "over3";
1166 description { state: "default" 0.0;
1170 part { name: "clipper";
1172 description { state: "default" 0.0;
1173 color: 255 255 255 255;
1176 part { name: "disabler";
1178 description { state: "default" 0.0;
1182 description { state: "disabled" 0.0;
1183 inherit: "default" 0.0;
1189 program { name: "button_click";
1190 signal: "mouse,down,1";
1192 action: SIGNAL_EMIT "elm,action,press" "";
1193 after: "button_click_anim";
1195 program { name: "button_click_anim";
1196 action: STATE_SET "clicked" 0.0;
1197 target: "button_image";
1198 after: "text_clicked";
1200 program { name: "text_clicked";
1204 get_state(PART:"elm.text", st, 30, vl);
1205 if (!strcmp(st, "visible"))
1206 set_state(PART:"elm.text", "clicked", 0.0);
1209 program { name: "button_unpress";
1210 action: SIGNAL_EMIT "elm,action,unpress" "";
1212 program { name: "button_mouseout_clicked";
1213 signal: "mouse,up,1";
1218 get_state(PART:"elm.swallow.content", st, 30, vl);
1219 if (strcmp(st, "icononly"))
1221 emit("elm,action,default,text,set", "");
1222 set_state(PART:"elm.text", "visible", 0.0);
1224 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1225 set_state(PART:"button_image", "default", 0.0);
1227 after: button_unpress;
1229 program { name: "button_unclick3";
1230 signal: "mouse,clicked,1";
1232 action: SIGNAL_EMIT "elm,action,click" "";
1234 program { name: "text_show";
1235 signal: "elm,state,text,visible";
1240 get_state(PART:"elm.swallow.content", st, 30, vl);
1241 if (!strcmp(st, "icononly"))
1243 set_state(PART:"elm.swallow.content", "visible", 0.0);
1244 set_state(PART:"padding_icon_text", "visible", 0.0);
1246 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1247 set_state(PART:"elm.text", "visible", 0.0);
1249 set_state(PART:"elm.text", "disabled_visible", 0.0);
1252 program { name: "text_hide";
1253 signal: "elm,state,text,hidden";
1258 get_state(PART:"elm.swallow.content", st, 30, vl);
1259 if (!strcmp(st, "visible"))
1261 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1262 set_state(PART:"padding_icon_text", "icononly", 0.0);
1264 set_state(PART:"elm.text", "default", 0.0);
1267 program { name: "icon_show";
1268 signal: "elm,state,icon,visible";
1273 get_state(PART:"elm.text", st, 30, vl);
1274 if (!strcmp(st, "visible"))
1276 set_state(PART:"elm.swallow.content", "visible", 0.0);
1277 set_state(PART:"padding_icon_text", "visible", 0.0);
1281 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1282 set_state(PART:"padding_icon_text", "icononly", 0.0);
1286 program { name: "icon_hide";
1287 signal: "elm,state,icon,hidden";
1289 action: STATE_SET "default" 0.0;
1290 target: "elm.swallow.content";
1291 target: "padding_icon_text";
1293 program { name: "disable";
1294 signal: "elm,state,disabled";
1296 action: STATE_SET "disabled" 0.0;
1297 target: "button_image";
1299 after: "disable_text";
1301 program { name: "disable_text";
1305 get_state(PART:"elm.text", st, 30, vl);
1306 if (!strcmp(st, "visible"))
1307 set_state(PART:"elm.text", "disabled_visible", 0.0);
1309 set_state(PART:"elm.text", "disabled", 0.0);
1310 set_int(button_state, BUTTON_STATE_DISABLED);
1313 program { name: "enable";
1314 signal: "elm,state,enabled";
1316 action: STATE_SET "default" 0.0;
1317 target: "button_image";
1319 after: "enable_text";
1321 program { name: "enable_text";
1325 get_state(PART:"elm.text", st, 30, vl);
1326 if (!strcmp(st, "disabled_visible"))
1327 set_state(PART:"elm.text", "visible", 0.0);
1329 set_state(PART:"elm.text", "default", 0.0);
1330 set_int(button_state, BUTTON_STATE_ENABLED);
1333 program { name: "focused";
1334 //signal: "elm,action,focus";
1336 action: STATE_SET "focused" 0.0;
1337 target: "button_image";
1340 program { name: "unfocused";
1341 //signal: "elm,action,unfocus";
1343 action: STATE_SET "default" 0.0;
1344 target: "button_image";
1345 after: "unfocus_text";
1347 program { name: "unfocus_text";
1348 action: STATE_SET "visible" 0.0;
1354 ///////////////////////////////////////////////////////////////////////////////////////
1355 group { name: "elm/button/base/sweep/delete";
1357 image: "00_button_sweep.png" COMP;
1358 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1359 image: "00_button_sweep_dim.png" COMP;
1360 image: "00_button_sweep_delete.png" COMP;
1363 public button_state = BUTTON_STATE_ENABLED;
1366 part { name: "button_image";
1368 description { state: "default" 0.0;
1369 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1371 normal: "00_button_sweep_delete.png";
1372 border: BUTTON_SWEEP_BG_BORDER_INC;
1376 description { state: "clicked" 0.0;
1377 inherit: "default" 0.0;
1378 image.normal: "00_button_sweep_press.png";
1380 description { state: "disabled" 0.0;
1381 inherit: "default" 0.0;
1382 image.normal: "00_button_sweep_dim.png";
1384 description { state: "focused" 0.0;
1385 inherit: "default" 0.0;
1386 image.normal: "00_button_sweep_press.png";
1389 part { name: "padding_left_top";
1393 description { state: "default" 0.0;
1395 rel2.relative: 0.0 0.0;
1396 min: BUTTON_SWEEP_PADDING_MIN_INC;
1401 part { name: "padding_right_bottom";
1405 description { state: "default" 0.0;
1407 rel1.relative: 1.0 1.0;
1408 min: BUTTON_SWEEP_PADDING_MIN_INC;
1413 part { name: "icon_rect";
1417 description { state: "default" 0.0;
1418 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1422 to_x: "elm.swallow.content";
1423 to_y: "padding_left_top";
1427 to_x: "elm.swallow.content";
1428 to_y: "padding_right_bottom";
1434 part { name: "padding_icon_text";
1438 description { state: "default" 0.0; //when only icon or no icon is there
1444 rel2.to: "icon_rect";
1449 description { state: "icononly" 0.0;
1450 inherit: "default" 0.0;
1452 description { state: "visible" 0.0; //when icon is visible
1458 rel2.to: "icon_rect";
1460 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1464 part { name: "elm.swallow.content";
1468 description { state: "default" 0.0;
1473 to: "padding_left_top";
1477 to_x: "padding_left_top";
1478 to_y: "padding_right_bottom";
1482 description { state: "visible" 0.0;
1487 to: "padding_left_top";
1491 to_x: "padding_left_top";
1492 to_y: "padding_right_bottom";
1495 aspect_preference: VERTICAL;
1497 description { state: "icononly" 0.0;
1498 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1501 to: "padding_left_top";
1505 to_x: "padding_left_top";
1506 to_y: "padding_right_bottom";
1510 part { name: "elm.text";
1515 description { state: "default" 0.0;
1518 to_x: "padding_icon_text";
1519 to_y: "padding_left_top";
1523 to: "padding_right_bottom";
1525 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1527 font: "SLP:style=Medium";
1528 size: BUTTON_SWEEP_FONT_SIZE_INC;
1534 description { state: "visible" 0.0;
1535 inherit: "default" 0.0;
1537 description { state: "clicked" 0.0;
1538 inherit: "default" 0.0;
1539 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1541 description { state: "disabled" 0.0;
1542 inherit: "default" 0.0;
1545 description { state: "disabled_visible" 0.0;
1546 inherit: "default" 0.0;
1547 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1549 description { state: "focused" 0.0;
1550 inherit: "default" 0.0;
1553 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1556 part { name: "over2";
1559 ignore_flags: ON_HOLD;
1560 description { state: "default" 0.0;
1564 part { name: "over3";
1567 description { state: "default" 0.0;
1571 part { name: "clipper";
1573 description { state: "default" 0.0;
1574 color: 255 255 255 255;
1577 part { name: "disabler";
1579 description { state: "default" 0.0;
1583 description { state: "disabled" 0.0;
1584 inherit: "default" 0.0;
1590 program { name: "button_click";
1591 signal: "mouse,down,1";
1593 action: SIGNAL_EMIT "elm,action,press" "";
1594 after: "button_click_anim";
1596 program { name: "button_click_anim";
1597 action: STATE_SET "clicked" 0.0;
1598 target: "button_image";
1599 after: "text_clicked";
1601 program { name: "text_clicked";
1605 get_state(PART:"elm.text", st, 30, vl);
1606 if (!strcmp(st, "visible"))
1607 set_state(PART:"elm.text", "clicked", 0.0);
1610 program { name: "button_unpress";
1611 action: SIGNAL_EMIT "elm,action,unpress" "";
1613 program { name: "button_mouseout_clicked";
1614 signal: "mouse,up,1";
1619 get_state(PART:"elm.swallow.content", st, 30, vl);
1620 if (strcmp(st, "icononly"))
1622 emit("elm,action,default,text,set", "");
1623 set_state(PART:"elm.text", "visible", 0.0);
1625 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1626 set_state(PART:"button_image", "default", 0.0);
1628 after: button_unpress;
1630 program { name: "button_unclick3";
1631 signal: "mouse,clicked,1";
1633 action: SIGNAL_EMIT "elm,action,click" "";
1635 program { name: "text_show";
1636 signal: "elm,state,text,visible";
1641 get_state(PART:"elm.swallow.content", st, 30, vl);
1642 if (!strcmp(st, "icononly"))
1644 set_state(PART:"elm.swallow.content", "visible", 0.0);
1645 set_state(PART:"padding_icon_text", "visible", 0.0);
1647 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1648 set_state(PART:"elm.text", "visible", 0.0);
1650 set_state(PART:"elm.text", "disabled_visible", 0.0);
1653 program { name: "text_hide";
1654 signal: "elm,state,text,hidden";
1659 get_state(PART:"elm.swallow.content", st, 30, vl);
1660 if (!strcmp(st, "visible"))
1662 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1663 set_state(PART:"padding_icon_text", "icononly", 0.0);
1665 set_state(PART:"elm.text", "default", 0.0);
1668 program { name: "icon_show";
1669 signal: "elm,state,icon,visible";
1674 get_state(PART:"elm.text", st, 30, vl);
1675 if (!strcmp(st, "visible"))
1677 set_state(PART:"elm.swallow.content", "visible", 0.0);
1678 set_state(PART:"padding_icon_text", "visible", 0.0);
1682 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1683 set_state(PART:"padding_icon_text", "icononly", 0.0);
1687 program { name: "icon_hide";
1688 signal: "elm,state,icon,hidden";
1690 action: STATE_SET "default" 0.0;
1691 target: "elm.swallow.content";
1692 target: "padding_icon_text";
1694 program { name: "disable";
1695 signal: "elm,state,disabled";
1697 action: STATE_SET "disabled" 0.0;
1698 target: "button_image";
1700 after: "disable_text";
1702 program { name: "disable_text";
1706 get_state(PART:"elm.text", st, 30, vl);
1707 if (!strcmp(st, "visible"))
1708 set_state(PART:"elm.text", "disabled_visible", 0.0);
1710 set_state(PART:"elm.text", "disabled", 0.0);
1711 set_int(button_state, BUTTON_STATE_DISABLED);
1714 program { name: "enable";
1715 signal: "elm,state,enabled";
1717 action: STATE_SET "default" 0.0;
1718 target: "button_image";
1720 after: "enable_text";
1722 program { name: "enable_text";
1726 get_state(PART:"elm.text", st, 30, vl);
1727 if (!strcmp(st, "disabled_visible"))
1728 set_state(PART:"elm.text", "visible", 0.0);
1730 set_state(PART:"elm.text", "default", 0.0);
1731 set_int(button_state, BUTTON_STATE_ENABLED);
1734 program { name: "focused";
1735 //signal: "elm,action,focus";
1737 action: STATE_SET "focused" 0.0;
1738 target: "button_image";
1741 program { name: "unfocused";
1742 //signal: "elm,action,unfocus";
1744 action: STATE_SET "default" 0.0;
1745 target: "button_image";
1746 after: "unfocus_text";
1748 program { name: "unfocus_text";
1749 action: STATE_SET "visible" 0.0;
1755 ///////////////////////////////////////////////////////////////////////////////////////
1756 group { name: "elm/button/base/popup_button/default";
1757 alias: "elm/button/base/popup_button/menustyle";
1758 alias: "elm/button/base/popup_button/liststyle";
1759 alias: "elm/button/base/popup_button/volumebarstyle";
1760 alias: "elm/button/base/popup_button/customstyle";
1761 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1763 image: "00_button_popup_normal.png" COMP;
1764 image: "00_button_popup_press.png" COMP;
1765 image: "00_button_popup_focus.png" COMP;
1766 image: "00_button_popup_dim.png" COMP;
1769 public button_state = BUTTON_STATE_ENABLED;
1772 part { name: "button_image";
1774 description { state: "default" 0.0;
1775 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1777 normal: "00_button_popup_normal.png";
1778 border: BUTTON_POPUP_BG_BORDER_INC;
1782 description { state: "clicked" 0.0;
1783 inherit: "default" 0.0;
1784 image.normal: "00_button_popup_press.png";
1786 description { state: "disabled" 0.0;
1787 inherit: "default" 0.0;
1788 image.normal: "00_button_popup_dim.png";
1790 description { state: "focused" 0.0;
1791 inherit: "default" 0.0;
1792 image.normal: "00_button_popup_focus.png";
1795 part { name: "padding_left_top";
1799 description { state: "default" 0.0;
1801 rel2.relative: 0.0 0.0;
1802 min: BUTTON_POPUP_PADDING_MIN_INC;
1807 part { name: "padding_right_bottom";
1810 description { state: "default" 0.0;
1812 rel1.relative: 1.0 1.0;
1813 min: BUTTON_POPUP_PADDING_MIN_INC;
1818 part { name: "padding_icon_text";
1821 description { state: "default" 0.0; //when only icon or no icon is there
1825 to: "elm.swallow.content";
1827 rel2.to: "elm.swallow.content";
1832 description { state: "icononly" 0.0;
1833 inherit: "default" 0.0;
1835 description { state: "visible" 0.0; //when icon is visible
1836 inherit: "default" 0.0;
1837 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1840 part { name: "elm.swallow.content";
1844 description { state: "default" 0.0;
1849 to: "padding_left_top";
1853 to_x: "padding_left_top";
1854 to_y: "padding_right_bottom";
1858 description { state: "visible" 0.0;
1859 inherit: "default" 0.0;
1863 aspect_preference: VERTICAL;
1865 description { state: "icononly" 0.0;
1866 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1869 to: "padding_left_top";
1873 to_x: "padding_left_top";
1874 to_y: "padding_right_bottom";
1878 part { name: "elm.text";
1883 description { state: "default" 0.0;
1887 to_x: "padding_icon_text";
1888 to_y: "padding_left_top";
1892 to: "padding_right_bottom";
1894 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1896 font: "SLP:style=Medium";
1897 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
1901 description { state: "visible" 0.0;
1902 inherit: "default" 0.0;
1904 min: BUTTON_POPUP_TEXT_MIN_INC;
1906 description { state: "clicked" 0.0;
1907 inherit: "default" 0.0;
1910 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1912 description { state: "disabled" 0.0;
1913 inherit: "default" 0.0;
1916 description { state: "disabled_visible" 0.0;
1917 inherit: "default" 0.0;
1918 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1920 min: BUTTON_POPUP_TEXT_MIN_INC;
1922 description { state: "focused" 0.0;
1923 inherit: "default" 0.0;
1926 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1929 part { name: "over2";
1932 ignore_flags: ON_HOLD;
1933 description { state: "default" 0.0;
1937 part { name: "over3";
1940 description { state: "default" 0.0;
1944 part { name: "clipper";
1946 description { state: "default" 0.0;
1947 color: 255 255 255 255;
1950 part { name: "disabler";
1952 description { state: "default" 0.0;
1956 description { state: "disabled" 0.0;
1957 inherit: "default" 0.0;
1963 program { name: "button_click";
1964 signal: "mouse,down,1";
1966 action: SIGNAL_EMIT "elm,action,press" "";
1967 after: "button_click_anim";
1969 program { name: "button_click_anim";
1970 action: STATE_SET "clicked" 0.0;
1971 target: "button_image";
1972 after: "text_clicked";
1974 program { name: "text_clicked";
1978 get_state(PART:"elm.text", st, 30, vl);
1979 if (!strcmp(st, "visible"))
1980 set_state(PART:"elm.text", "clicked", 0.0);
1983 program { name: "button_unpress";
1984 action: SIGNAL_EMIT "elm,action,unpress" "";
1986 program { name: "button_mouseout_clicked";
1987 signal: "mouse,up,1";
1992 get_state(PART:"elm.swallow.content", st, 30, vl);
1993 if (strcmp(st, "icononly"))
1995 emit("elm,action,default,text,set", "");
1996 set_state(PART:"elm.text", "visible", 0.0);
1998 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1999 set_state(PART:"button_image", "default", 0.0);
2001 after: button_unpress;
2003 program { name: "button_unclick3";
2004 signal: "mouse,clicked,1";
2006 action: SIGNAL_EMIT "elm,action,click" "";
2008 program { name: "text_show";
2009 signal: "elm,state,text,visible";
2014 get_state(PART:"elm.swallow.content", st, 30, vl);
2015 if (!strcmp(st, "icononly"))
2017 set_state(PART:"elm.swallow.content", "visible", 0.0);
2018 set_state(PART:"padding_icon_text", "visible", 0.0);
2020 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2021 set_state(PART:"elm.text", "visible", 0.0);
2023 set_state(PART:"elm.text", "disabled_visible", 0.0);
2026 program { name: "text_hide";
2027 signal: "elm,state,text,hidden";
2032 get_state(PART:"elm.swallow.content", st, 30, vl);
2033 if (!strcmp(st, "visible"))
2035 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2036 set_state(PART:"padding_icon_text", "icononly", 0.0);
2038 set_state(PART:"elm.text", "default", 0.0);
2041 program { name: "icon_show";
2042 signal: "elm,state,icon,visible";
2047 get_state(PART:"elm.text", st, 30, vl);
2048 if (!strcmp(st, "visible"))
2050 set_state(PART:"elm.swallow.content", "visible", 0.0);
2051 set_state(PART:"padding_icon_text", "visible", 0.0);
2055 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2056 set_state(PART:"padding_icon_text", "icononly", 0.0);
2060 program { name: "icon_hide";
2061 signal: "elm,state,icon,hidden";
2063 action: STATE_SET "default" 0.0;
2064 target: "elm.swallow.content";
2065 target: "padding_icon_text";
2067 program { name: "disable";
2068 signal: "elm,state,disabled";
2070 action: STATE_SET "disabled" 0.0;
2071 target: "button_image";
2073 after: "disable_text";
2075 program { name: "disable_text";
2079 get_state(PART:"elm.text", st, 30, vl);
2080 if (!strcmp(st, "visible"))
2081 set_state(PART:"elm.text", "disabled_visible", 0.0);
2083 set_state(PART:"elm.text", "disabled", 0.0);
2084 set_int(button_state, BUTTON_STATE_DISABLED);
2087 program { name: "enable";
2088 signal: "elm,state,enabled";
2090 action: STATE_SET "default" 0.0;
2091 target: "button_image";
2093 after: "enable_text";
2095 program { name: "enable_text";
2099 get_state(PART:"elm.text", st, 30, vl);
2100 if (!strcmp(st, "disabled_visible"))
2101 set_state(PART:"elm.text", "visible", 0.0);
2103 set_state(PART:"elm.text", "default", 0.0);
2104 set_int(button_state, BUTTON_STATE_ENABLED);
2107 program { name: "focused";
2108 action: STATE_SET "focused" 0.0;
2109 target: "button_image";
2112 program { name: "unfocused";
2113 action: STATE_SET "default" 0.0;
2114 target: "button_image";
2115 after: "unfocus_text";
2117 program { name: "unfocus_text";
2118 action: STATE_SET "visible" 0.0;
2124 ///////////////////////////////////////////////////////////////////////////////////////
2125 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2126 group { name: "elm/button/base/"style_name; \
2128 image: "00_btn_circle_bg_normal.png" COMP; \
2129 image: "00_btn_circle_bg_press.png" COMP; \
2130 image: image_normal COMP; \
2131 image: image_press COMP; \
2134 part { name: "button_image"; \
2136 description { state: "default" 0.0; \
2137 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2138 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2139 image.normal: "00_btn_circle_bg_normal.png"; \
2140 color: 255 255 255 255; \
2143 state: "clicked" 0.0; \
2144 inherit: "default" 0.0; \
2145 image.normal: "00_btn_circle_bg_press.png"; \
2148 state: "disabled" 0.0; \
2149 inherit: "default" 0.0; \
2150 color: 255 255 255 128; \
2153 part { name: "button_center_part"; \
2155 description { state: "default" 0.0; \
2156 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2157 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2158 image.normal: image_normal; \
2159 color: 255 255 255 255; \
2162 state: "clicked" 0.0; \
2163 inherit: "default" 0.0; \
2164 image.normal: image_press; \
2167 state: "disabled" 0.0; \
2168 inherit: "default" 0.0; \
2169 color: 255 255 255 128; \
2172 part { name: "over1"; \
2174 ignore_flags: ON_HOLD; \
2175 description { state: "default" 0.0; \
2177 min: min_width min_height; \
2180 part { name: "over2"; \
2182 description { state: "default" 0.0; \
2186 part { name: "disabler"; \
2188 description { state: "default" 0.0; \
2192 description { state: "disabled" 0.0; \
2193 inherit: "default" 0.0; \
2199 program { name: "button_click"; \
2200 signal: "mouse,down,1"; \
2202 action: SIGNAL_EMIT "elm,action,press" ""; \
2203 after: "button_click_anim"; \
2205 program { name: "button_click_anim"; \
2206 action: STATE_SET "clicked" 0.0; \
2207 target: "button_image"; \
2208 target: "button_center_part"; \
2210 program { name: "button_unclick"; \
2211 signal: "mouse,up,1"; \
2213 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2214 after: "button_unclick_anim"; \
2216 program { name: "button_unclick_anim"; \
2217 action: STATE_SET "default" 0.0; \
2218 target: "button_image"; \
2219 target: "button_center_part"; \
2221 program { name: "button_unclick2"; \
2222 signal: "mouse,clicked,1"; \
2224 action: SIGNAL_EMIT "elm,action,click" ""; \
2226 program { name: "disable"; \
2227 signal: "elm,state,disabled"; \
2229 action: STATE_SET "disabled" 0.0; \
2230 target: "disabler"; \
2231 target: "button_image"; \
2232 target: "button_center_part"; \
2234 program { name: "enable"; \
2235 signal: "elm,state,enabled"; \
2237 action: STATE_SET "default" 0.0; \
2238 target: "disabler"; \
2239 target: "button_image"; \
2240 target: "button_center_part"; \
2245 ///////////////////////////////////////////////////////////////////////////////////////
2246 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
2248 ///////////////////////////////////////////////////////////////////////////////////////
2249 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
2251 ///////////////////////////////////////////////////////////////////////////////////////
2252 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
2254 ///////////////////////////////////////////////////////////////////////////////////////
2255 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
2257 ///////////////////////////////////////////////////////////////////////////////////////
2258 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
2260 ///////////////////////////////////////////////////////////////////////////////////////
2261 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
2263 ///////////////////////////////////////////////////////////////////////////////////////
2264 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
2266 ///////////////////////////////////////////////////////////////////////////////////////
2267 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
2269 ///////////////////////////////////////////////////////////////////////////////////////
2270 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
2272 ///////////////////////////////////////////////////////////////////////////////////////
2273 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
2275 ///////////////////////////////////////////////////////////////////////////////////////
2276 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
2278 ///////////////////////////////////////////////////////////////////////////////////////
2279 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
2281 ///////////////////////////////////////////////////////////////////////////////////////
2282 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
2284 ///////////////////////////////////////////////////////////////////////////////////////
2285 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
2287 ///////////////////////////////////////////////////////////////////////////////////////
2288 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
2290 ///////////////////////////////////////////////////////////////////////////////////////
2291 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
2293 ///////////////////////////////////////////////////////////////////////////////////////
2294 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
2296 ///////////////////////////////////////////////////////////////////////////////////////
2297 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
2299 ///////////////////////////////////////////////////////////////////////////////////////
2300 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
2302 ///////////////////////////////////////////////////////////////////////////////////////
2303 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
2305 ///////////////////////////////////////////////////////////////////////////////////////
2306 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
2308 ///////////////////////////////////////////////////////////////////////////////////////
2309 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
2310 ///////////////////////////////////////////////////////////////////////////////////////
2311 group { name: "elm/button/base/circle/empty";
2313 image: "00_btn_circle_bg_normal.png" COMP;
2314 image: "00_btn_circle_bg_press.png" COMP;
2317 part { name: "button_image";
2319 description { state: "default" 0.0;
2320 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2321 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2323 image.normal: "00_btn_circle_bg_normal.png";
2324 color: 255 255 255 255;
2326 description { state: "clicked" 0.0;
2327 inherit: "default" 0.0;
2328 image.normal: "00_btn_circle_bg_press.png";
2330 description { state: "disabled" 0.0;
2331 inherit: "default" 0.0;
2332 color: 255 255 255 128;
2335 part { name: "elm.swallow.content";
2338 description { state: "default" 0.0;
2339 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2340 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2342 color: 255 255 255 255;
2345 state: "disabled" 0.0;
2346 inherit: "default" 0.0;
2347 color: 255 255 255 128;
2350 part { name: "over1";
2352 ignore_flags: ON_HOLD;
2353 description { state: "default" 0.0;
2357 part { name: "over2";
2359 description { state: "default" 0.0;
2363 part { name: "disabler";
2365 description { state: "default" 0.0;
2369 description { state: "disabled" 0.0;
2370 inherit: "default" 0.0;
2376 program { name: "button_click";
2377 signal: "mouse,down,1";
2379 action: SIGNAL_EMIT "elm,action,press" "";
2380 after: "button_click_anim";
2382 program { name: "button_click_anim";
2383 action: STATE_SET "clicked" 0.0;
2384 target: "button_image";
2386 program { name: "button_unclick";
2387 signal: "mouse,up,1";
2389 action: SIGNAL_EMIT "elm,action,unpress" "";
2390 after: "button_unclick_anim";
2392 program { name: "button_unclick_anim";
2393 action: STATE_SET "default" 0.0;
2394 target: "button_image";
2396 program { name: "button_unclick2";
2397 signal: "mouse,clicked,1";
2399 action: SIGNAL_EMIT "elm,action,click" "";
2401 program { name: "disable";
2402 signal: "elm,state,disabled";
2404 action: STATE_SET "disabled" 0.0;
2406 target: "button_image";
2408 program { name: "enable";
2409 signal: "elm,state,enabled";
2411 action: STATE_SET "default" 0.0;
2413 target: "button_image";
2415 program { name: "icon_show";
2416 signal: "elm,state,icon,visible";
2418 action: STATE_SET "visible" 0.0;
2419 target: "elm.swallow.content";
2421 program { name: "icon_hide";
2422 signal: "elm,state,icon,hidden";
2424 action: STATE_SET "default" 0.0;
2425 target: "elm.swallow.content";
2430 ///////////////////////////////////////////////////////////////////////////////////////
2431 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2432 group { name: "elm/button/base/contacts/"style_name; \
2433 alias: "elm/button/base/"style_name; \
2435 image: image_normal COMP; \
2436 image: image_press COMP; \
2437 image: "00_button_edit.png" COMP; \
2438 image: "00_button_edit_press.png" COMP; \
2439 image: "00_button_edit_dim.png" COMP; \
2442 part { name: "button_image"; \
2444 description { state: "default" 0.0; \
2445 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2446 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2448 normal: "00_button_edit.png"; \
2449 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2454 state: "clicked" 0.0; \
2455 inherit: "default" 0.0; \
2456 image.normal: "00_button_edit_press.png"; \
2459 state: "disabled" 0.0; \
2460 inherit: "default" 0.0; \
2461 image.normal: "00_button_edit_dim.png"; \
2464 part { name: "button_center_part"; \
2467 description { state: "default" 0.0; \
2468 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2469 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2471 normal: image_normal; \
2472 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2477 state: "clicked" 0.0; \
2478 inherit: "default" 0.0; \
2479 image.normal: image_press; \
2482 part { name: "over1"; \
2485 ignore_flags: ON_HOLD; \
2486 description { state: "default" 0.0; \
2488 min: min_width min_height; \
2491 part { name: "over2"; \
2493 description { state: "default" 0.0; \
2497 part { name: "disabler"; \
2499 description { state: "default" 0.0; \
2503 description { state: "disabled" 0.0; \
2504 inherit: "default" 0.0; \
2510 program { name: "button_click"; \
2511 signal: "mouse,down,1"; \
2513 action: SIGNAL_EMIT "elm,action,press" ""; \
2514 after: "button_click_anim"; \
2516 program { name: "button_click_anim"; \
2517 action: STATE_SET "clicked" 0.0; \
2518 target: "button_image"; \
2519 target: "button_center_part"; \
2521 program { name: "button_unclick"; \
2522 signal: "mouse,up,1"; \
2524 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2525 after: "button_unclick_anim"; \
2527 program { name: "button_unclick_anim"; \
2528 action: STATE_SET "default" 0.0; \
2529 target: "button_image"; \
2530 target: "button_center_part"; \
2532 program { name: "button_unclick2"; \
2533 signal: "mouse,clicked,1"; \
2535 action: SIGNAL_EMIT "elm,action,click" ""; \
2537 program { name: "disable"; \
2538 signal: "elm,state,disabled"; \
2540 action: STATE_SET "disabled" 0.0; \
2541 target: "disabler"; \
2542 target: "button_image"; \
2544 program { name: "enable"; \
2545 signal: "elm,state,enabled"; \
2547 action: STATE_SET "default" 0.0; \
2548 target: "disabler"; \
2549 target: "button_image"; \
2553 ///////////////////////////////////////////////////////////////////////////////////////
2554 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 46, 46)
2556 ///////////////////////////////////////////////////////////////////////////////////////
2557 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 60, 75)
2559 ///////////////////////////////////////////////////////////////////////////////////////
2560 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 46, 46)
2562 ///////////////////////////////////////////////////////////////////////////////////////
2563 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 60, 75)
2565 ///////////////////////////////////////////////////////////////////////////////////////
2566 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 46, 46)
2568 ///////////////////////////////////////////////////////////////////////////////////////
2569 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 60, 75)
2571 ///////////////////////////////////////////////////////////////////////////////////////
2572 group { name: "elm/button/base/contacts/delete";
2574 image: "00_button_edit.png" COMP;
2575 image: "00_button_edit_press.png" COMP;
2576 image: "00_button_edit_dim.png" COMP;
2579 public button_state = BUTTON_STATE_ENABLED;
2582 part { name: "button_image";
2584 description { state: "default" 0.0;
2585 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
2587 normal: "00_button_edit.png";
2588 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
2592 description { state: "clicked" 0.0;
2593 inherit: "default" 0.0;
2594 image.normal: "00_button_edit_press.png";
2596 description { state: "disabled" 0.0;
2597 inherit: "default" 0.0;
2598 image.normal: "00_button_edit_dim.png";
2600 description { state: "focused" 0.0;
2601 inherit: "default" 0.0;
2602 image.normal: "00_button_edit_press.png";
2605 part { name: "padding_left_top";
2609 description { state: "default" 0.0;
2611 rel2.relative: 0.0 0.0;
2612 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
2617 part { name: "padding_right_bottom";
2621 description { state: "default" 0.0;
2623 rel1.relative: 1.0 1.0;
2624 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
2629 part { name: "padding_icon_text";
2633 description { state: "default" 0.0; //when only icon or no icon is there
2637 to: "elm.swallow.content";
2639 rel2.to: "elm.swallow.content";
2644 description { state: "icononly" 0.0;
2645 inherit: "default" 0.0;
2647 description { state: "visible" 0.0; //when icon is visible
2648 inherit: "default" 0.0;
2649 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2652 part { name: "elm.swallow.content";
2656 description { state: "default" 0.0;
2661 to: "padding_left_top";
2665 to_x: "padding_left_top";
2666 to_y: "padding_right_bottom";
2670 description { state: "visible" 0.0;
2675 to: "padding_left_top";
2679 to_x: "padding_left_top";
2680 to_y: "padding_right_bottom";
2683 aspect_preference: VERTICAL;
2685 description { state: "icononly" 0.0;
2686 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
2689 to: "padding_left_top";
2693 to: "padding_right_bottom";
2696 aspect_preference: VERTICAL;
2699 part { name: "elm.text";
2704 description { state: "default" 0.0;
2707 to_x: "padding_icon_text";
2708 to_y: "padding_left_top";
2712 to: "padding_right_bottom";
2714 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
2716 font: "SLP:style=Medium";
2717 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
2723 description { state: "visible" 0.0;
2724 inherit: "default" 0.0;
2726 description { state: "clicked" 0.0;
2727 inherit: "default" 0.0;
2728 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2730 description { state: "disabled" 0.0;
2731 inherit: "default" 0.0;
2734 description { state: "disabled_visible" 0.0;
2735 inherit: "default" 0.0;
2736 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
2738 description { state: "focused" 0.0;
2739 inherit: "default" 0.0;
2741 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2744 part { name: "over2";
2747 ignore_flags: ON_HOLD;
2748 description { state: "default" 0.0;
2752 part { name: "over3";
2755 description { state: "default" 0.0;
2759 part { name: "clipper";
2761 description { state: "default" 0.0;
2762 color: 255 255 255 255;
2765 part { name: "disabler";
2767 description { state: "default" 0.0;
2771 description { state: "disabled" 0.0;
2772 inherit: "default" 0.0;
2778 program { name: "button_click";
2779 signal: "mouse,down,1";
2781 action: SIGNAL_EMIT "elm,action,press" "";
2782 after: "button_click_anim";
2784 program { name: "button_click_anim";
2785 action: STATE_SET "clicked" 0.0;
2786 target: "button_image";
2787 after: "text_clicked";
2789 program { name: "text_clicked";
2793 get_state(PART:"elm.text", st, 30, vl);
2794 if (!strcmp(st, "visible"))
2795 set_state(PART:"elm.text", "clicked", 0.0);
2798 program { name: "button_unpress";
2799 action: SIGNAL_EMIT "elm,action,unpress" "";
2801 program { name: "button_mouseout_clicked";
2802 signal: "mouse,up,1";
2807 get_state(PART:"elm.swallow.content", st, 30, vl);
2808 if (strcmp(st, "icononly"))
2810 emit("elm,action,default,text,set", "");
2811 set_state(PART:"elm.text", "visible", 0.0);
2813 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2814 set_state(PART:"button_image", "default", 0.0);
2816 after: button_unpress;
2818 program { name: "button_unclick3";
2819 signal: "mouse,clicked,1";
2821 action: SIGNAL_EMIT "elm,action,click" "";
2823 program { name: "text_show";
2824 signal: "elm,state,text,visible";
2829 get_state(PART:"elm.swallow.content", st, 30, vl);
2830 if (!strcmp(st, "icononly"))
2832 set_state(PART:"elm.swallow.content", "visible", 0.0);
2833 set_state(PART:"padding_icon_text", "visible", 0.0);
2835 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2836 set_state(PART:"elm.text", "visible", 0.0);
2838 set_state(PART:"elm.text", "disabled_visible", 0.0);
2841 program { name: "text_hide";
2842 signal: "elm,state,text,hidden";
2847 get_state(PART:"elm.swallow.content", st, 30, vl);
2848 if (!strcmp(st, "visible"))
2850 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2851 set_state(PART:"padding_icon_text", "icononly", 0.0);
2853 set_state(PART:"elm.text", "default", 0.0);
2856 program { name: "icon_show";
2857 signal: "elm,state,icon,visible";
2862 get_state(PART:"elm.text", st, 30, vl);
2863 if (!strcmp(st, "visible"))
2865 set_state(PART:"elm.swallow.content", "visible", 0.0);
2866 set_state(PART:"padding_icon_text", "visible", 0.0);
2870 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2871 set_state(PART:"padding_icon_text", "icononly", 0.0);
2875 program { name: "icon_hide";
2876 signal: "elm,state,icon,hidden";
2878 action: STATE_SET "default" 0.0;
2879 target: "elm.swallow.content";
2880 target: "padding_icon_text";
2882 program { name: "disable";
2883 signal: "elm,state,disabled";
2885 action: STATE_SET "disabled" 0.0;
2886 target: "button_image";
2888 after: "disable_text";
2890 program { name: "disable_text";
2894 get_state(PART:"elm.text", st, 30, vl);
2895 if (!strcmp(st, "visible"))
2896 set_state(PART:"elm.text", "disabled_visible", 0.0);
2898 set_state(PART:"elm.text", "disabled", 0.0);
2899 set_int(button_state, BUTTON_STATE_DISABLED);
2902 program { name: "enable";
2903 signal: "elm,state,enabled";
2905 action: STATE_SET "default" 0.0;
2906 target: "button_image";
2908 after: "enable_text";
2910 program { name: "enable_text";
2914 get_state(PART:"elm.text", st, 30, vl);
2915 if (!strcmp(st, "disabled_visible"))
2916 set_state(PART:"elm.text", "visible", 0.0);
2918 set_state(PART:"elm.text", "default", 0.0);
2919 set_int(button_state, BUTTON_STATE_ENABLED);
2922 program { name: "focused";
2923 //signal: "elm,action,focus";
2925 action: STATE_SET "focused" 0.0;
2926 target: "button_image";
2929 program { name: "unfocused";
2930 //signal: "elm,action,unfocus";
2932 action: STATE_SET "default" 0.0;
2933 target: "button_image";
2934 after: "unfocus_text";
2936 program { name: "unfocus_text";
2937 action: STATE_SET "visible" 0.0;
2943 ///////////////////////////////////////////////////////////////////////////////////////
2944 group { name: "elm/button/base/multiline";
2945 alias: "elm/button/base/text_only/multiline";
2947 image: "00_button_04_normal.png" COMP;
2948 image: "00_button_04_press.png" COMP;
2949 image: "00_button_04_dim.png" COMP;
2952 public button_state = BUTTON_STATE_ENABLED;
2955 style { name: "btn_multiline_style";
2956 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
2963 part { name: "button_image";
2965 description { state: "default" 0.0;
2968 normal: "00_button_04_normal.png";
2973 description { state: "clicked" 0.0;
2974 inherit: "default" 0.0;
2975 image.normal: "00_button_04_press.png";
2977 description { state: "disabled" 0.0;
2978 inherit: "default" 0.0;
2979 image.normal: "00_button_04_dim.png";
2981 description { state: "focused" 0.0;
2982 inherit: "default" 0.0;
2983 image.normal: "00_button_04_press.png";
2986 part { name: "padding_left_top";
2990 description { state: "default" 0.0;
2992 rel2.relative: 0.0 0.0;
2998 part { name: "padding_right_bottom";
3002 description { state: "default" 0.0;
3004 rel1.relative: 1.0 1.0;
3010 part { name: "icon_rect";
3014 description { state: "default" 0.0;
3020 to_x: "elm.swallow.content";
3021 to_y: "padding_left_top";
3025 to_x: "elm.swallow.content";
3026 to_y: "padding_right_bottom";
3032 part { name: "padding_icon_text";
3036 description { state: "default" 0.0; //when only icon or no icon is there
3042 rel2.to: "icon_rect";
3047 description { state: "icononly" 0.0;
3048 inherit: "default" 0.0;
3050 description { state: "visible" 0.0; //when icon is visible
3056 rel2.to: "icon_rect";
3062 part { name: "elm.swallow.content";
3066 description { state: "default" 0.0;
3071 to: "padding_left_top";
3075 to_x: "padding_left_top";
3076 to_y: "padding_right_bottom";
3080 description { state: "visible" 0.0;
3085 to: "padding_left_top";
3089 to_x: "padding_left_top";
3090 to_y: "padding_right_bottom";
3093 aspect_preference: VERTICAL;
3095 description { state: "icononly" 0.0;
3099 to: "padding_left_top";
3103 to: "padding_right_bottom";
3106 aspect_preference: VERTICAL;
3109 part { name: "elm.text";
3114 description { state: "default" 0.0;
3118 to_x: "padding_icon_text";
3119 to_y: "padding_left_top";
3123 to: "padding_right_bottom";
3125 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3127 style: "btn_multiline_style";
3132 description { state: "visible" 0.0;
3133 inherit: "default" 0.0;
3137 description { state: "clicked" 0.0;
3138 inherit: "default" 0.0;
3141 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3143 description { state: "disabled" 0.0;
3144 inherit: "default" 0.0;
3147 description { state: "disabled_visible" 0.0;
3148 inherit: "default" 0.0;
3149 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
3153 description { state: "focused" 0.0;
3154 inherit: "default" 0.0;
3157 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3160 part { name: "over2";
3163 ignore_flags: ON_HOLD;
3164 description { state: "default" 0.0;
3168 part { name: "over3";
3171 description { state: "default" 0.0;
3175 part { name: "clipper";
3177 description { state: "default" 0.0;
3178 color: 255 255 255 255;
3181 part { name: "disabler";
3183 description { state: "default" 0.0;
3187 description { state: "disabled" 0.0;
3188 inherit: "default" 0.0;
3194 program { name: "button_click";
3195 signal: "mouse,down,1";
3197 action: SIGNAL_EMIT "elm,action,press" "";
3198 after: "button_click_anim";
3200 program { name: "button_click_anim";
3201 action: STATE_SET "clicked" 0.0;
3202 target: "button_image";
3203 after: "text_clicked";
3205 program { name: "text_clicked";
3209 get_state(PART:"elm.text", st, 30, vl);
3210 if (!strcmp(st, "visible"))
3211 set_state(PART:"elm.text", "clicked", 0.0);
3214 program { name: "button_unpress";
3215 action: SIGNAL_EMIT "elm,action,unpress" "";
3217 program { name: "button_mouseout_clicked";
3218 signal: "mouse,up,1";
3223 get_state(PART:"elm.swallow.content", st, 30, vl);
3224 if (strcmp(st, "icononly"))
3226 emit("elm,action,default,text,set", "");
3227 set_state(PART:"elm.text", "visible", 0.0);
3229 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3230 set_state(PART:"button_image", "default", 0.0);
3232 after: button_unpress;
3234 program { name: "button_unclick3";
3235 signal: "mouse,clicked,1";
3237 action: SIGNAL_EMIT "elm,action,click" "";
3239 program { name: "text_show";
3240 signal: "elm,state,text,visible";
3245 get_state(PART:"elm.swallow.content", st, 30, vl);
3246 if (!strcmp(st, "icononly"))
3248 set_state(PART:"elm.swallow.content", "visible", 0.0);
3249 set_state(PART:"padding_icon_text", "visible", 0.0);
3251 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3252 set_state(PART:"elm.text", "visible", 0.0);
3254 set_state(PART:"elm.text", "disabled_visible", 0.0);
3257 program { name: "text_hide";
3258 signal: "elm,state,text,hidden";
3263 get_state(PART:"elm.swallow.content", st, 30, vl);
3264 if (!strcmp(st, "visible"))
3266 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3267 set_state(PART:"padding_icon_text", "icononly", 0.0);
3269 set_state(PART:"elm.text", "default", 0.0);
3272 program { name: "icon_show";
3273 signal: "elm,state,icon,visible";
3278 get_state(PART:"elm.text", st, 30, vl);
3279 if (!strcmp(st, "visible"))
3281 set_state(PART:"elm.swallow.content", "visible", 0.0);
3282 set_state(PART:"padding_icon_text", "visible", 0.0);
3286 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3287 set_state(PART:"padding_icon_text", "icononly", 0.0);
3291 program { name: "icon_hide";
3292 signal: "elm,state,icon,hidden";
3294 action: STATE_SET "default" 0.0;
3295 target: "elm.swallow.content";
3296 target: "padding_icon_text";
3298 program { name: "disable";
3299 signal: "elm,state,disabled";
3301 action: STATE_SET "disabled" 0.0;
3302 target: "button_image";
3304 after: "disable_text";
3306 program { name: "disable_text";
3310 get_state(PART:"elm.text", st, 30, vl);
3311 if (!strcmp(st, "visible"))
3312 set_state(PART:"elm.text", "disabled_visible", 0.0);
3314 set_state(PART:"elm.text", "disabled", 0.0);
3315 set_int(button_state, BUTTON_STATE_DISABLED);
3318 program { name: "enable";
3319 signal: "elm,state,enabled";
3321 action: STATE_SET "default" 0.0;
3322 target: "button_image";
3324 after: "enable_text";
3326 program { name: "enable_text";
3330 get_state(PART:"elm.text", st, 30, vl);
3331 if (!strcmp(st, "disabled_visible"))
3332 set_state(PART:"elm.text", "visible", 0.0);
3334 set_state(PART:"elm.text", "default", 0.0);
3335 set_int(button_state, BUTTON_STATE_ENABLED);
3338 program { name: "focused";
3339 //signal: "elm,action,focus";
3341 action: STATE_SET "focused" 0.0;
3342 target: "button_image";
3345 program { name: "unfocused";
3346 //signal: "elm,action,unfocus";
3348 action: STATE_SET "default" 0.0;
3349 target: "button_image";
3350 after: "unfocus_text";
3352 program { name: "unfocus_text";
3353 action: STATE_SET "visible" 0.0;
3359 ///////////////////////////////////////////////////////////////////////////////////////
3360 group { name: "elm/button/base/default";
3362 image: "00_button_01_normal.png" COMP;
3363 image: "00_button_01_normal_press.png" COMP;
3364 image: "00_button_01_normal_dim.png" COMP;
3367 public button_state = BUTTON_STATE_ENABLED;
3370 part { name: "button_image";
3372 description { state: "default" 0.0;
3373 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3375 normal: "00_button_01_normal.png";
3376 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3380 description { state: "clicked" 0.0;
3381 inherit: "default" 0.0;
3382 image.normal: "00_button_01_normal_press.png";
3384 description { state: "disabled" 0.0;
3385 inherit: "default" 0.0;
3386 image.normal: "00_button_01_normal_dim.png";
3388 description { state: "focused" 0.0;
3389 inherit: "default" 0.0;
3390 image.normal: "00_button_01_normal_press.png";
3393 part { name: "padding_left_top";
3397 description { state: "default" 0.0;
3399 rel2.relative: 0.0 0.0;
3400 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3405 part { name: "padding_right_bottom";
3409 description { state: "default" 0.0;
3411 rel1.relative: 1.0 1.0;
3412 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3417 part { name: "padding_icon_text";
3421 description { state: "default" 0.0; //when only icon or no icon is there
3426 to: "elm.swallow.content";
3428 rel2.to: "elm.swallow.content";
3432 description { state: "icononly" 0.0;
3433 inherit: "default" 0.0;
3435 description { state: "visible" 0.0; //when icon is visible
3436 inherit: "default" 0.0;
3437 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3440 part { name: "elm.swallow.content";
3444 description { state: "default" 0.0;
3449 to: "padding_left_top";
3453 to_x: "padding_left_top";
3454 to_y: "padding_right_bottom";
3458 description { state: "visible" 0.0;
3463 to: "padding_left_top";
3467 to_x: "padding_left_top";
3468 to_y: "padding_right_bottom";
3471 aspect_preference: VERTICAL;
3473 description { state: "icononly" 0.0;
3474 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3477 to_x: "padding_left_top";
3481 to_x: "padding_right_bottom";
3484 aspect_preference: VERTICAL;
3487 part { name: "elm.text";
3492 description { state: "default" 0.0;
3497 to_x: "padding_icon_text";
3498 to_y: "padding_left_top";
3502 to: "padding_right_bottom";
3504 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3506 font: "SLP:style=Medium";
3507 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3511 description { state: "visible" 0.0;
3512 inherit: "default" 0.0;
3514 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3516 description { state: "clicked" 0.0;
3517 inherit: "default" 0.0;
3519 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3520 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3522 description { state: "disabled" 0.0;
3523 inherit: "default" 0.0;
3525 description { state: "disabled_visible" 0.0;
3526 inherit: "default" 0.0;
3527 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3529 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3531 description { state: "focused" 0.0;
3532 inherit: "default" 0.0;
3535 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3538 part { name: "over2";
3541 ignore_flags: ON_HOLD;
3542 description { state: "default" 0.0;
3546 part { name: "over3";
3549 description { state: "default" 0.0;
3553 part { name: "clipper";
3555 description { state: "default" 0.0;
3556 color: 255 255 255 255;
3559 part { name: "disabler";
3561 description { state: "default" 0.0;
3565 description { state: "disabled" 0.0;
3566 inherit: "default" 0.0;
3572 program { name: "button_click";
3573 signal: "mouse,down,1";
3575 action: SIGNAL_EMIT "elm,action,press" "";
3576 after: "button_click_anim";
3578 program { name: "button_click_anim";
3579 action: STATE_SET "clicked" 0.0;
3580 target: "button_image";
3581 after: "text_clicked";
3583 program { name: "text_clicked";
3587 get_state(PART:"elm.text", st, 30, vl);
3588 if (!strcmp(st, "visible"))
3589 set_state(PART:"elm.text", "clicked", 0.0);
3592 program { name: "button_unpress";
3593 action: SIGNAL_EMIT "elm,action,unpress" "";
3595 program { name: "button_mouseout_clicked";
3596 signal: "mouse,up,1";
3601 get_state(PART:"elm.swallow.content", st, 30, vl);
3602 if (strcmp(st, "icononly"))
3604 emit("elm,action,default,text,set", "");
3605 set_state(PART:"elm.text", "visible", 0.0);
3607 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3608 set_state(PART:"button_image", "default", 0.0);
3610 after: button_unpress;
3612 program { name: "button_unclick3";
3613 signal: "mouse,clicked,1";
3615 action: SIGNAL_EMIT "elm,action,click" "";
3617 program { name: "text_show";
3618 signal: "elm,state,text,visible";
3623 get_state(PART:"elm.swallow.content", st, 30, vl);
3624 if (!strcmp(st, "icononly"))
3626 set_state(PART:"elm.swallow.content", "visible", 0.0);
3627 set_state(PART:"padding_icon_text", "visible", 0.0);
3629 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3630 set_state(PART:"elm.text", "visible", 0.0);
3632 set_state(PART:"elm.text", "disabled_visible", 0.0);
3635 program { name: "text_hide";
3636 signal: "elm,state,text,hidden";
3641 get_state(PART:"elm.swallow.content", st, 30, vl);
3642 if (!strcmp(st, "visible"))
3644 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3645 set_state(PART:"padding_icon_text", "icononly", 0.0);
3647 set_state(PART:"elm.text", "default", 0.0);
3650 program { name: "icon_show";
3651 signal: "elm,state,icon,visible";
3656 get_state(PART:"elm.text", st, 30, vl);
3657 if (!strcmp(st, "visible"))
3659 set_state(PART:"elm.swallow.content", "visible", 0.0);
3660 set_state(PART:"padding_icon_text", "visible", 0.0);
3664 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3665 set_state(PART:"padding_icon_text", "icononly", 0.0);
3669 program { name: "icon_hide";
3670 signal: "elm,state,icon,hidden";
3672 action: STATE_SET "default" 0.0;
3673 target: "elm.swallow.content";
3674 target: "padding_icon_text";
3676 program { name: "disable";
3677 signal: "elm,state,disabled";
3679 action: STATE_SET "disabled" 0.0;
3680 target: "button_image";
3682 after: "disable_text";
3684 program { name: "disable_text";
3688 get_state(PART:"elm.text", st, 30, vl);
3689 if (!strcmp(st, "visible"))
3690 set_state(PART:"elm.text", "disabled_visible", 0.0);
3692 set_state(PART:"elm.text", "disabled", 0.0);
3693 set_int(button_state, BUTTON_STATE_DISABLED);
3696 program { name: "enable";
3697 signal: "elm,state,enabled";
3699 action: STATE_SET "default" 0.0;
3700 target: "button_image";
3702 after: "enable_text";
3704 program { name: "enable_text";
3708 get_state(PART:"elm.text", st, 30, vl);
3709 if (!strcmp(st, "disabled_visible"))
3710 set_state(PART:"elm.text", "visible", 0.0);
3712 set_state(PART:"elm.text", "default", 0.0);
3713 set_int(button_state, BUTTON_STATE_ENABLED);
3716 program { name: "focused";
3717 //signal: "elm,action,focus";
3719 action: STATE_SET "focused" 0.0;
3720 target: "button_image";
3723 program { name: "unfocused";
3724 //signal: "elm,action,unfocus";
3726 action: STATE_SET "default" 0.0;
3727 target: "button_image";
3728 after: "unfocus_text";
3730 program { name: "unfocus_text";
3731 action: STATE_SET "visible" 0.0;
3737 ///////////////////////////////////////////////////////////////////////////////////////
3738 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
3739 group { name: "elm/button/base/"style_name; \
3741 image: image_normal COMP; \
3742 image: image_press COMP; \
3743 image: image_disable COMP; \
3746 public button_state = BUTTON_STATE_ENABLED; \
3749 part { name: "button_image"; \
3751 description { state: "default" 0.0; \
3752 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3754 normal: image_normal; \
3755 border: COLORSELECTOR_BUTTON_BORDER; \
3759 description { state: "clicked" 0.0; \
3760 inherit: "default" 0.0; \
3761 image.normal: image_press; \
3763 description { state: "disabled" 0.0; \
3764 inherit: "default" 0.0; \
3765 image.normal: image_disable; \
3767 description { state: "focused" 0.0; \
3768 inherit: "default" 0.0; \
3769 image.normal: image_press; \
3772 part { name: "over2"; \
3775 ignore_flags: ON_HOLD; \
3776 description { state: "default" 0.0; \
3780 part { name: "over3"; \
3783 description { state: "default" 0.0; \
3787 part { name: "disabler"; \
3789 description { state: "default" 0.0; \
3793 description { state: "disabled" 0.0; \
3794 inherit: "default" 0.0; \
3800 program { name: "button_click"; \
3801 signal: "mouse,down,1"; \
3803 action: SIGNAL_EMIT "elm,action,press" ""; \
3804 after: "button_click_anim"; \
3806 program { name: "button_click_anim"; \
3807 action: STATE_SET "clicked" 0.0; \
3808 target: "button_image"; \
3810 program { name: "button_unpress"; \
3811 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3813 program { name: "button_mouseout_clicked"; \
3814 signal: "mouse,up,1"; \
3817 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
3818 set_state(PART:"button_image", "default", 0.0); \
3820 after: button_unpress; \
3822 program { name: "button_unclick3"; \
3823 signal: "mouse,clicked,1"; \
3825 action: SIGNAL_EMIT "elm,action,click" ""; \
3827 program { name: "disable"; \
3828 signal: "elm,state,disabled"; \
3830 action: STATE_SET "disabled" 0.0; \
3831 target: "button_image"; \
3832 target: "disabler"; \
3834 set_int(button_state, BUTTON_STATE_DISABLED); \
3837 program { name: "enable"; \
3838 signal: "elm,state,enabled"; \
3840 action: STATE_SET "default" 0.0; \
3841 target: "button_image"; \
3842 target: "disabler"; \
3844 set_int(button_state, BUTTON_STATE_ENABLED); \
3849 ///////////////////////////////////////////////////////////////////////////////////////
3850 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")
3851 ///////////////////////////////////////////////////////////////////////////////////////
3852 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")
3853 ///////////////////////////////////////////////////////////////////////////////////////
3854 group { name: "elm/button/base/hidden";
3856 image: "00_button_sweep.png" COMP;
3857 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
3860 public button_state = BUTTON_STATE_ENABLED;
3863 part { name: "button_image";
3865 description { state: "default" 0.0;
3866 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
3868 normal: "00_button_sweep.png";
3869 border: BUTTON_HIDDEN_BG_BORDER_INC;
3873 description { state: "clicked" 0.0;
3874 inherit: "default" 0.0;
3875 image.normal: "00_button_sweep_press.png";
3877 description { state: "disabled" 0.0;
3878 inherit: "default" 0.0;
3880 description { state: "focused" 0.0;
3881 inherit: "default" 0.0;
3882 image.normal: "00_button_sweep_press.png";
3885 part { name: "padding_left_top";
3889 description { state: "default" 0.0;
3891 rel2.relative: 0.0 0.0;
3892 min: BUTTON_HIDDEN_PADDING_MIN_INC;
3897 part { name: "padding_right_bottom";
3901 description { state: "default" 0.0;
3903 rel1.relative: 1.0 1.0;
3904 min: BUTTON_HIDDEN_PADDING_MIN_INC;
3909 part { name: "icon_rect";
3913 description { state: "default" 0.0;
3914 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
3918 to_x: "elm.swallow.content";
3919 to_y: "padding_left_top";
3923 to_x: "elm.swallow.content";
3924 to_y: "padding_right_bottom";
3930 part { name: "padding_icon_text";
3934 description { state: "default" 0.0; //when only icon or no icon is there
3940 rel2.to: "icon_rect";
3945 description { state: "icononly" 0.0;
3946 inherit: "default" 0.0;
3948 description { state: "visible" 0.0; //when icon is visible
3954 rel2.to: "icon_rect";
3956 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3960 part { name: "elm.swallow.content";
3964 description { state: "default" 0.0;
3969 to: "padding_left_top";
3973 to_x: "padding_left_top";
3974 to_y: "padding_right_bottom";
3978 description { state: "visible" 0.0;
3983 to: "padding_left_top";
3987 to_x: "padding_left_top";
3988 to_y: "padding_right_bottom";
3991 aspect_preference: VERTICAL;
3993 description { state: "icononly" 0.0;
3994 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
3997 to: "padding_left_top";
4001 to_x: "padding_left_top";
4002 to_y: "padding_right_bottom";
4005 aspect_preference: VERTICAL;
4008 part { name: "elm.text";
4013 description { state: "default" 0.0;
4017 to_x: "padding_icon_text";
4018 to_y: "padding_left_top";
4022 to: "padding_right_bottom";
4024 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4026 font: "SLP:style=Medium";
4027 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4031 description { state: "visible" 0.0;
4032 inherit: "default" 0.0;
4034 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4036 description { state: "clicked" 0.0;
4037 inherit: "default" 0.0;
4040 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4042 description { state: "disabled" 0.0;
4043 inherit: "default" 0.0;
4046 description { state: "disabled_visible" 0.0;
4047 inherit: "default" 0.0;
4048 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4050 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4052 description { state: "focused" 0.0;
4053 inherit: "default" 0.0;
4056 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4059 part { name: "over2";
4062 ignore_flags: ON_HOLD;
4063 description { state: "default" 0.0;
4067 part { name: "over3";
4070 description { state: "default" 0.0;
4074 part { name: "clipper";
4076 description { state: "default" 0.0;
4077 color: 255 255 255 255;
4080 part { name: "disabler";
4082 description { state: "default" 0.0;
4086 description { state: "disabled" 0.0;
4087 inherit: "default" 0.0;
4093 program { name: "button_click";
4094 signal: "mouse,down,1";
4096 action: SIGNAL_EMIT "elm,action,press" "";
4097 after: "button_click_anim";
4099 program { name: "button_click_anim";
4100 action: STATE_SET "clicked" 0.0;
4101 target: "button_image";
4102 after: "text_clicked";
4104 program { name: "text_clicked";
4108 get_state(PART:"elm.text", st, 30, vl);
4109 if (!strcmp(st, "visible"))
4110 set_state(PART:"elm.text", "clicked", 0.0);
4113 program { name: "button_unpress";
4114 action: SIGNAL_EMIT "elm,action,unpress" "";
4116 program { name: "button_mouseout_clicked";
4117 signal: "mouse,up,1";
4122 get_state(PART:"elm.swallow.content", st, 30, vl);
4123 if (strcmp(st, "icononly"))
4125 emit("elm,action,default,text,set", "");
4126 set_state(PART:"elm.text", "visible", 0.0);
4128 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4129 set_state(PART:"button_image", "default", 0.0);
4131 after: button_unpress;
4133 program { name: "button_unclick3";
4134 signal: "mouse,clicked,1";
4136 action: SIGNAL_EMIT "elm,action,click" "";
4138 program { name: "text_show";
4139 signal: "elm,state,text,visible";
4144 get_state(PART:"elm.swallow.content", st, 30, vl);
4145 if (!strcmp(st, "icononly"))
4147 set_state(PART:"elm.swallow.content", "visible", 0.0);
4148 set_state(PART:"padding_icon_text", "visible", 0.0);
4150 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4151 set_state(PART:"elm.text", "visible", 0.0);
4153 set_state(PART:"elm.text", "disabled_visible", 0.0);
4156 program { name: "text_hide";
4157 signal: "elm,state,text,hidden";
4162 get_state(PART:"elm.swallow.content", st, 30, vl);
4163 if (!strcmp(st, "visible"))
4165 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4166 set_state(PART:"padding_icon_text", "icononly", 0.0);
4168 set_state(PART:"elm.text", "default", 0.0);
4171 program { name: "icon_show";
4172 signal: "elm,state,icon,visible";
4177 get_state(PART:"elm.text", st, 30, vl);
4178 if (!strcmp(st, "visible"))
4180 set_state(PART:"elm.swallow.content", "visible", 0.0);
4181 set_state(PART:"padding_icon_text", "visible", 0.0);
4185 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4186 set_state(PART:"padding_icon_text", "icononly", 0.0);
4190 program { name: "icon_hide";
4191 signal: "elm,state,icon,hidden";
4193 action: STATE_SET "default" 0.0;
4194 target: "elm.swallow.content";
4195 target: "padding_icon_text";
4197 program { name: "disable";
4198 signal: "elm,state,disabled";
4200 action: STATE_SET "disabled" 0.0;
4201 target: "button_image";
4203 after: "disable_text";
4205 program { name: "disable_text";
4209 get_state(PART:"elm.text", st, 30, vl);
4210 if (!strcmp(st, "visible"))
4211 set_state(PART:"elm.text", "disabled_visible", 0.0);
4213 set_state(PART:"elm.text", "disabled", 0.0);
4214 set_int(button_state, BUTTON_STATE_DISABLED);
4217 program { name: "enable";
4218 signal: "elm,state,enabled";
4220 action: STATE_SET "default" 0.0;
4221 target: "button_image";
4223 after: "enable_text";
4225 program { name: "enable_text";
4229 get_state(PART:"elm.text", st, 30, vl);
4230 if (!strcmp(st, "disabled_visible"))
4231 set_state(PART:"elm.text", "visible", 0.0);
4233 set_state(PART:"elm.text", "default", 0.0);
4234 set_int(button_state, BUTTON_STATE_ENABLED);
4237 program { name: "focused";
4238 //signal: "elm,action,focus";
4240 action: STATE_SET "focused" 0.0;
4241 target: "button_image";
4244 program { name: "unfocused";
4245 //signal: "elm,action,unfocus";
4247 action: STATE_SET "default" 0.0;
4248 target: "button_image";
4249 after: "unfocus_text";
4251 program { name: "unfocus_text";
4252 action: STATE_SET "visible" 0.0;
4258 ///////////////////////////////////////////////////////////////////////////////////////
4259 group { name: "elm/button/base/picker/bar/default";
4261 image: "00_picker_btn_normal.png" COMP;
4262 image: "00_picker_btn_press.png" COMP;
4265 public button_state = BUTTON_STATE_ENABLED;
4268 part { name: "button_image";
4270 description { state: "default" 0.0;
4271 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4273 normal: "00_picker_btn_normal.png";
4274 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4278 description { state: "clicked" 0.0;
4279 inherit: "default" 0.0;
4280 image.normal: "00_picker_btn_press.png";
4282 description { state: "disabled" 0.0;
4283 inherit: "default" 0.0;
4285 description { state: "focused" 0.0;
4286 inherit: "default" 0.0;
4287 image.normal: "00_picker_btn_press.png";
4290 part { name: "padding_left_top";
4294 description { state: "default" 0.0;
4296 rel2.relative: 0.0 0.0;
4297 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4302 part { name: "padding_right_bottom";
4306 description { state: "default" 0.0;
4308 rel1.relative: 1.0 1.0;
4309 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4314 part { name: "icon_rect";
4318 description { state: "default" 0.0;
4319 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
4323 to_x: "elm.swallow.content";
4324 to_y: "padding_left_top";
4328 to_x: "elm.swallow.content";
4329 to_y: "padding_right_bottom";
4335 part { name: "padding_icon_text";
4339 description { state: "default" 0.0; //when only icon or no icon is there
4345 rel2.to: "icon_rect";
4350 description { state: "icononly" 0.0;
4351 inherit: "default" 0.0;
4353 description { state: "visible" 0.0; //when icon is visible
4359 rel2.to: "icon_rect";
4361 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4365 part { name: "elm.swallow.content";
4369 description { state: "default" 0.0;
4374 to: "padding_left_top";
4378 to_x: "padding_left_top";
4379 to_y: "padding_right_bottom";
4383 description { state: "visible" 0.0;
4388 to: "padding_left_top";
4392 to_x: "padding_left_top";
4393 to_y: "padding_right_bottom";
4396 aspect_preference: VERTICAL;
4398 description { state: "icononly" 0.0;
4399 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4402 to: "padding_left_top";
4406 to_x: "padding_left_top";
4407 to_y: "padding_right_bottom";
4410 aspect_preference: VERTICAL;
4413 part { name: "elm.text";
4418 description { state: "default" 0.0;
4422 to_x: "padding_icon_text";
4423 to_y: "padding_left_top";
4427 to: "padding_right_bottom";
4429 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4431 font: "SLP:style=Medium";
4432 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4437 description { state: "visible" 0.0;
4438 inherit: "default" 0.0;
4440 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4442 description { state: "clicked" 0.0;
4443 inherit: "default" 0.0;
4446 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4448 description { state: "disabled" 0.0;
4449 inherit: "default" 0.0;
4450 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4452 description { state: "disabled_visible" 0.0;
4453 inherit: "default" 0.0;
4454 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4456 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4458 description { state: "focused" 0.0;
4459 inherit: "default" 0.0;
4462 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4465 part { name: "over2";
4468 ignore_flags: ON_HOLD;
4469 description { state: "default" 0.0;
4473 part { name: "over3";
4476 description { state: "default" 0.0;
4480 part { name: "clipper";
4482 description { state: "default" 0.0;
4483 color: 255 255 255 255;
4486 part { name: "disabler";
4488 description { state: "default" 0.0;
4492 description { state: "disabled" 0.0;
4493 inherit: "default" 0.0;
4499 program { name: "button_click";
4500 signal: "mouse,down,1";
4502 action: SIGNAL_EMIT "elm,action,press" "";
4503 after: "button_click_anim";
4505 program { name: "button_click_anim";
4506 action: STATE_SET "clicked" 0.0;
4507 target: "button_image";
4508 after: "text_clicked";
4510 program { name: "text_clicked";
4514 get_state(PART:"elm.text", st, 30, vl);
4515 if (!strcmp(st, "visible"))
4516 set_state(PART:"elm.text", "clicked", 0.0);
4519 program { name: "button_unpress";
4520 action: SIGNAL_EMIT "elm,action,unpress" "";
4522 program { name: "button_mouseout_clicked";
4523 signal: "mouse,up,1";
4528 get_state(PART:"elm.swallow.content", st, 30, vl);
4529 if (strcmp(st, "icononly"))
4531 emit("elm,action,default,text,set", "");
4532 set_state(PART:"elm.text", "visible", 0.0);
4534 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4535 set_state(PART:"button_image", "default", 0.0);
4537 after: button_unpress;
4539 program { name: "button_unclick3";
4540 signal: "mouse,clicked,1";
4542 action: SIGNAL_EMIT "elm,action,click" "";
4544 program { name: "text_show";
4545 signal: "elm,state,text,visible";
4550 get_state(PART:"elm.swallow.content", st, 30, vl);
4551 if (!strcmp(st, "icononly"))
4553 set_state(PART:"elm.swallow.content", "visible", 0.0);
4554 set_state(PART:"padding_icon_text", "visible", 0.0);
4556 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4557 set_state(PART:"elm.text", "visible", 0.0);
4559 set_state(PART:"elm.text", "disabled_visible", 0.0);
4562 program { name: "text_hide";
4563 signal: "elm,state,text,hidden";
4568 get_state(PART:"elm.swallow.content", st, 30, vl);
4569 if (!strcmp(st, "visible"))
4571 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4572 set_state(PART:"padding_icon_text", "icononly", 0.0);
4574 set_state(PART:"elm.text", "default", 0.0);
4577 program { name: "icon_show";
4578 signal: "elm,state,icon,visible";
4583 get_state(PART:"elm.text", st, 30, vl);
4584 if (!strcmp(st, "visible"))
4586 set_state(PART:"elm.swallow.content", "visible", 0.0);
4587 set_state(PART:"padding_icon_text", "visible", 0.0);
4591 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4592 set_state(PART:"padding_icon_text", "icononly", 0.0);
4596 program { name: "icon_hide";
4597 signal: "elm,state,icon,hidden";
4599 action: STATE_SET "default" 0.0;
4600 target: "elm.swallow.content";
4601 target: "padding_icon_text";
4603 program { name: "disable";
4604 signal: "elm,state,disabled";
4606 action: STATE_SET "disabled" 0.0;
4607 target: "button_image";
4609 after: "disable_text";
4611 program { name: "disable_text";
4615 get_state(PART:"elm.text", st, 30, vl);
4616 if (!strcmp(st, "visible"))
4617 set_state(PART:"elm.text", "disabled_visible", 0.0);
4619 set_state(PART:"elm.text", "disabled", 0.0);
4620 set_int(button_state, BUTTON_STATE_DISABLED);
4623 program { name: "enable";
4624 signal: "elm,state,enabled";
4626 action: STATE_SET "default" 0.0;
4627 target: "button_image";
4629 after: "enable_text";
4631 program { name: "enable_text";
4635 get_state(PART:"elm.text", st, 30, vl);
4636 if (!strcmp(st, "disabled_visible"))
4637 set_state(PART:"elm.text", "visible", 0.0);
4639 set_state(PART:"elm.text", "default", 0.0);
4640 set_int(button_state, BUTTON_STATE_ENABLED);
4643 program { name: "focused";
4644 //signal: "elm,action,focus";
4646 action: STATE_SET "focused" 0.0;
4647 target: "button_image";
4650 program { name: "unfocused";
4651 //signal: "elm,action,unfocus";
4653 action: STATE_SET "default" 0.0;
4654 target: "button_image";
4655 after: "unfocus_text";
4657 program { name: "unfocus_text";
4658 action: STATE_SET "visible" 0.0;
4664 ///////////////////////////////////////////////////////////////////////////////////////
4665 group { name: "elm/button/base/picker/prev/text/default";
4666 alias: "elm/button/base/picker/next/text/default";
4668 image: "00_picker_btn_normal.png" COMP;
4669 image: "00_picker_btn_press.png" COMP;
4672 public button_state = BUTTON_STATE_ENABLED;
4675 part { name: "button_image";
4677 description { state: "default" 0.0;
4678 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
4680 normal: "00_picker_btn_normal.png";
4681 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
4685 description { state: "clicked" 0.0;
4686 inherit: "default" 0.0;
4687 image.normal: "00_picker_btn_press.png";
4689 description { state: "disabled" 0.0;
4690 inherit: "default" 0.0;
4692 description { state: "focused" 0.0;
4693 inherit: "default" 0.0;
4694 image.normal: "00_picker_btn_press.png";
4697 part { name: "padding_left_top";
4701 description { state: "default" 0.0;
4703 rel2.relative: 0.0 0.0;
4704 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4709 part { name: "padding_right_bottom";
4713 description { state: "default" 0.0;
4715 rel1.relative: 1.0 1.0;
4716 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4721 part { name: "icon_rect";
4725 description { state: "default" 0.0;
4726 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
4730 to_x: "elm.swallow.content";
4731 to_y: "padding_left_top";
4735 to_x: "elm.swallow.content";
4736 to_y: "padding_right_bottom";
4742 part { name: "padding_icon_text";
4746 description { state: "default" 0.0; //when only icon or no icon is there
4752 rel2.to: "icon_rect";
4757 description { state: "icononly" 0.0;
4758 inherit: "default" 0.0;
4760 description { state: "visible" 0.0; //when icon is visible
4766 rel2.to: "icon_rect";
4768 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4772 part { name: "elm.swallow.content";
4776 description { state: "default" 0.0;
4781 to: "padding_left_top";
4785 to_x: "padding_left_top";
4786 to_y: "padding_right_bottom";
4790 description { state: "visible" 0.0;
4795 to: "padding_left_top";
4799 to_x: "padding_left_top";
4800 to_y: "padding_right_bottom";
4803 aspect_preference: VERTICAL;
4805 description { state: "icononly" 0.0;
4806 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
4809 to: "padding_left_top";
4813 to_x: "padding_left_top";
4814 to_y: "padding_right_bottom";
4817 aspect_preference: VERTICAL;
4820 part { name: "elm.text";
4825 description { state: "default" 0.0;
4829 to_x: "padding_icon_text";
4830 to_y: "padding_left_top";
4834 to: "padding_right_bottom";
4836 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4838 font: "SLP:style=Medium";
4839 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
4844 description { state: "visible" 0.0;
4845 inherit: "default" 0.0;
4847 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4849 description { state: "clicked" 0.0;
4850 inherit: "default" 0.0;
4853 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4855 description { state: "disabled" 0.0;
4856 inherit: "default" 0.0;
4857 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4859 description { state: "disabled_visible" 0.0;
4860 inherit: "default" 0.0;
4861 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4863 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4865 description { state: "focused" 0.0;
4866 inherit: "default" 0.0;
4869 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4872 part { name: "over2";
4875 ignore_flags: ON_HOLD;
4876 description { state: "default" 0.0;
4880 part { name: "over3";
4883 description { state: "default" 0.0;
4887 part { name: "clipper";
4889 description { state: "default" 0.0;
4890 color: 255 255 255 255;
4893 part { name: "disabler";
4895 description { state: "default" 0.0;
4899 description { state: "disabled" 0.0;
4900 inherit: "default" 0.0;
4906 program { name: "button_click";
4907 signal: "mouse,down,1";
4909 action: SIGNAL_EMIT "elm,action,press" "";
4910 after: "button_click_anim";
4912 program { name: "button_click_anim";
4913 action: STATE_SET "clicked" 0.0;
4914 target: "button_image";
4915 after: "text_clicked";
4917 program { name: "text_clicked";
4921 get_state(PART:"elm.text", st, 30, vl);
4922 if (!strcmp(st, "visible"))
4923 set_state(PART:"elm.text", "clicked", 0.0);
4926 program { name: "button_unpress";
4927 action: SIGNAL_EMIT "elm,action,unpress" "";
4929 program { name: "button_mouseout_clicked";
4930 signal: "mouse,up,1";
4935 get_state(PART:"elm.swallow.content", st, 30, vl);
4936 if (strcmp(st, "icononly"))
4938 emit("elm,action,default,text,set", "");
4939 set_state(PART:"elm.text", "visible", 0.0);
4941 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4942 set_state(PART:"button_image", "default", 0.0);
4944 after: button_unpress;
4946 program { name: "button_unclick3";
4947 signal: "mouse,clicked,1";
4949 action: SIGNAL_EMIT "elm,action,click" "";
4951 program { name: "text_show";
4952 signal: "elm,state,text,visible";
4957 get_state(PART:"elm.swallow.content", st, 30, vl);
4958 if (!strcmp(st, "icononly"))
4960 set_state(PART:"elm.swallow.content", "visible", 0.0);
4961 set_state(PART:"padding_icon_text", "visible", 0.0);
4963 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4964 set_state(PART:"elm.text", "visible", 0.0);
4966 set_state(PART:"elm.text", "disabled_visible", 0.0);
4969 program { name: "text_hide";
4970 signal: "elm,state,text,hidden";
4975 get_state(PART:"elm.swallow.content", st, 30, vl);
4976 if (!strcmp(st, "visible"))
4978 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4979 set_state(PART:"padding_icon_text", "icononly", 0.0);
4981 set_state(PART:"elm.text", "default", 0.0);
4984 program { name: "icon_show";
4985 signal: "elm,state,icon,visible";
4990 get_state(PART:"elm.text", st, 30, vl);
4991 if (!strcmp(st, "visible"))
4993 set_state(PART:"elm.swallow.content", "visible", 0.0);
4994 set_state(PART:"padding_icon_text", "visible", 0.0);
4998 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4999 set_state(PART:"padding_icon_text", "icononly", 0.0);
5003 program { name: "icon_hide";
5004 signal: "elm,state,icon,hidden";
5006 action: STATE_SET "default" 0.0;
5007 target: "elm.swallow.content";
5008 target: "padding_icon_text";
5010 program { name: "disable";
5011 signal: "elm,state,disabled";
5013 action: STATE_SET "disabled" 0.0;
5014 target: "button_image";
5016 after: "disable_text";
5018 program { name: "disable_text";
5022 get_state(PART:"elm.text", st, 30, vl);
5023 if (!strcmp(st, "visible"))
5024 set_state(PART:"elm.text", "disabled_visible", 0.0);
5026 set_state(PART:"elm.text", "disabled", 0.0);
5027 set_int(button_state, BUTTON_STATE_DISABLED);
5030 program { name: "enable";
5031 signal: "elm,state,enabled";
5033 action: STATE_SET "default" 0.0;
5034 target: "button_image";
5036 after: "enable_text";
5038 program { name: "enable_text";
5042 get_state(PART:"elm.text", st, 30, vl);
5043 if (!strcmp(st, "disabled_visible"))
5044 set_state(PART:"elm.text", "visible", 0.0);
5046 set_state(PART:"elm.text", "default", 0.0);
5047 set_int(button_state, BUTTON_STATE_ENABLED);
5050 program { name: "focused";
5051 //signal: "elm,action,focus";
5053 action: STATE_SET "focused" 0.0;
5054 target: "button_image";
5057 program { name: "unfocused";
5058 //signal: "elm,action,unfocus";
5060 action: STATE_SET "default" 0.0;
5061 target: "button_image";
5062 after: "unfocus_text";
5064 program { name: "unfocus_text";
5065 action: STATE_SET "visible" 0.0;
5071 ///////////////////////////////////////////////////////////////////////////////////////
5072 group { name: "elm/button/base/contact";
5073 alias: "elm/button/base/text_only/contact";
5075 public button_state = BUTTON_STATE_ENABLED;
5078 part { name: "button_image";
5081 description { state: "default" 0.0;
5083 to_x: "padding.left";
5087 to_x: "padding.right";
5090 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5091 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5093 description { state: "clicked" 0.0;
5094 inherit: "default" 0.0;
5095 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5097 description { state: "disabled" 0.0;
5098 inherit: "default" 0.0;
5100 description { state: "focused" 0.0;
5101 inherit: "default" 0.0;
5104 part { name: "padding.left";
5107 description { state: "default" 0.0;
5109 min: BUTTON_CONTACT_PADDING_MIN_INC;
5119 part { name: "padding.right";
5122 description { state: "default" 0.0;
5124 min: BUTTON_CONTACT_PADDING_MIN_INC;
5134 part { name: "elm.text";
5138 description { state: "default" 0.0;
5141 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5143 font: "SLP:style=Medium";
5144 size: BUTTON_CONTACT_FONT_SIZE_INC;
5148 description { state: "visible" 0.0;
5149 inherit: "default" 0.0;
5153 description { state: "clicked" 0.0;
5154 inherit: "default" 0.0;
5157 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5159 description { state: "disabled" 0.0;
5160 inherit: "default" 0.0;
5163 description { state: "disabled_visible" 0.0;
5164 inherit: "default" 0.0;
5165 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5169 description { state: "focused" 0.0;
5170 inherit: "default" 0.0;
5173 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5176 part { name: "over1";
5178 description { state: "default" 0.0;
5179 rel2.relative: 1.0 0.5;
5182 part { name: "over2";
5184 ignore_flags: ON_HOLD;
5185 description { state: "default" 0.0;
5186 rel1.to: "button_image";
5187 rel2.to: "button_image";
5190 part { name: "over3";
5192 description { state: "default" 0.0;
5193 rel1.to: "button_image";
5194 rel2.to: "button_image";
5198 part { name: "disabler";
5200 description { state: "default" 0.0;
5201 rel1.to: "button_image";
5202 rel2.to: "button_image";
5206 description { state: "disabled" 0.0;
5207 inherit: "default" 0.0;
5213 program { name: "button_click";
5214 signal: "mouse,down,1";
5216 action: SIGNAL_EMIT "elm,action,press" "";
5217 after: "button_click_anim";
5219 program { name: "button_click_anim";
5220 action: STATE_SET "clicked" 0.0;
5221 target: "button_image";
5224 program { name: "button_unpress";
5225 action: SIGNAL_EMIT "elm,action,unpress" "";
5227 program { name: "button_mouseout_clicked";
5228 signal: "mouse,up,1";
5233 get_state(PART:"elm.text", st, 30, vl);
5234 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5236 emit("elm,action,default,text,set", "");
5237 set_state(PART:"elm.text", "visible", 0.0);
5239 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5240 set_state(PART:"button_image", "default", 0.0);
5242 after: button_unpress;
5244 program { name: "button_unclick3";
5245 signal: "mouse,clicked,1";
5247 action: SIGNAL_EMIT "elm,action,click" "";
5249 program { name: "text_show";
5250 signal: "elm,state,text,visible";
5253 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5254 set_state(PART:"elm.text", "visible", 0.0);
5256 set_state(PART:"elm.text", "disabled_visible", 0.0);
5259 program { name: "text_hide";
5260 signal: "elm,state,text,hidden";
5262 action: STATE_SET "default" 0.0;
5265 program { name: "disable";
5266 signal: "elm,state,disabled";
5268 action: STATE_SET "disabled" 0.0;
5269 target: "button_image";
5271 after: "disable_text";
5273 program { name: "disable_text";
5277 get_state(PART:"elm.text", st, 30, vl);
5278 if (!strcmp(st, "visible"))
5279 set_state(PART:"elm.text", "disabled_visible", 0.0);
5281 set_state(PART:"elm.text", "disabled", 0.0);
5282 set_int(button_state, BUTTON_STATE_DISABLED);
5285 program { name: "enable";
5286 signal: "elm,state,enabled";
5288 action: STATE_SET "default" 0.0;
5289 target: "button_image";
5291 after: "enable_text";
5293 program { name: "enable_text";
5297 get_state(PART:"elm.text", st, 30, vl);
5298 if (!strcmp(st, "disabled_visible"))
5299 set_state(PART:"elm.text", "visible", 0.0);
5301 set_state(PART:"elm.text", "default", 0.0);
5302 set_int(button_state, BUTTON_STATE_ENABLED);
5305 program { name: "focused";
5306 //signal: "elm,action,focus";
5308 action: STATE_SET "focused" 0.0;
5309 target: "button_image";
5312 program { name: "unfocused";
5313 //signal: "elm,action,unfocus";
5315 action: STATE_SET "default" 0.0;
5316 target: "button_image";
5317 action: STATE_SET "visible" 0.0;
5323 ///////////////////////////////////////////////////////////////////////////////////////
5324 group { name: "elm/button/base/naviframe/back_btn/default";
5325 alias: "elm/button/base/naviframe/prev_btn/default";
5326 alias: "elm/button/base/naviframe/end_btn/default";
5328 image: "00_winset_Back_btn_normal.png" COMP;
5329 image: "00_winset_Back_btn_press.png" COMP;
5330 image: "00_winset_Back.png" COMP;
5333 public button_state = BUTTON_STATE_ENABLED;
5336 part { name: "button_image";
5338 description { state: "default" 0.0;
5339 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5340 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5342 normal: "00_winset_Back_btn_normal.png";
5343 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
5347 description { state: "clicked" 0.0;
5348 inherit: "default" 0.0;
5349 image.normal: "00_winset_Back_btn_press.png";
5351 description { state: "disabled" 0.0;
5352 inherit: "default" 0.0;
5354 description { state: "focused" 0.0;
5355 inherit: "default" 0.0;
5356 image.normal: "00_winset_Back_btn_press.png";
5359 part { name: "back_button";
5362 description { state: "default" 0.0;
5363 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5364 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5365 rel1.to: "button_image";
5366 rel2.to: "button_image";
5367 image.normal: "00_winset_Back.png";
5369 description { state: "clicked" 0.0;
5370 inherit: "default" 0.0;
5373 part { name: "over2";
5376 ignore_flags: ON_HOLD;
5377 description { state: "default" 0.0;
5381 part { name: "over3";
5384 description { state: "default" 0.0;
5388 part { name: "disabler";
5390 description { state: "default" 0.0;
5394 description { state: "disabled" 0.0;
5395 inherit: "default" 0.0;
5401 program { name: "button_click";
5402 signal: "mouse,down,1";
5404 action: SIGNAL_EMIT "elm,action,press" "";
5405 after: "button_click_anim";
5407 program { name: "button_click_anim";
5408 action: STATE_SET "clicked" 0.0;
5409 target: "button_image";
5411 program { name: "button_unpress";
5412 action: SIGNAL_EMIT "elm,action,unpress" "";
5414 program { name: "button_mouseout_clicked";
5415 signal: "mouse,up,1";
5418 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5419 set_state(PART:"button_image", "default", 0.0);
5421 after: button_unpress;
5423 program { name: "button_unclick3";
5424 signal: "mouse,clicked,1";
5426 action: SIGNAL_EMIT "elm,action,click" "";
5428 program { name: "disable";
5429 signal: "elm,state,disabled";
5431 action: STATE_SET "disabled" 0.0;
5432 target: "button_image";
5434 after: "disable_button";
5436 program { name: "disable_button";
5438 set_int(button_state, BUTTON_STATE_DISABLED);
5441 program { name: "enable";
5442 signal: "elm,state,enabled";
5444 action: STATE_SET "default" 0.0;
5445 target: "button_image";
5447 after: "enable_button";
5449 program { name: "enable_button";
5451 set_int(button_state, BUTTON_STATE_ENABLED);
5457 ///////////////////////////////////////////////////////////////////////////////////////
5458 group { name: "elm/button/base/picker/prev/icon/default";
5460 image: "00_picker_btn_normal.png" COMP;
5461 image: "00_picker_btn_press.png" COMP;
5462 image: "00_picker_arrow_left.png" COMP;
5463 image: "00_picker_arrow_left_press.png" COMP;
5466 public button_state = BUTTON_STATE_ENABLED;
5469 part { name: "button_image";
5471 description { state: "default" 0.0;
5472 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5473 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5475 normal: "00_picker_btn_normal.png";
5476 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5480 description { state: "clicked" 0.0;
5481 inherit: "default" 0.0;
5482 image.normal: "00_picker_btn_press.png";
5484 description { state: "disabled" 0.0;
5485 inherit: "default" 0.0;
5487 description { state: "focused" 0.0;
5488 inherit: "default" 0.0;
5489 image.normal: "00_picker_btn_press.png";
5492 part { name: "padding_left_top";
5496 description { state: "default" 0.0;
5498 rel2.relative: 0.0 0.0;
5499 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5504 part { name: "padding_right_bottom";
5508 description { state: "default" 0.0;
5510 rel1.relative: 1.0 1.0;
5511 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5516 part { name: "left_arrow";
5519 description { state: "default" 0.0;
5520 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5521 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5524 to: "padding_left_top";
5528 to: "padding_right_bottom";
5530 image.normal: "00_picker_arrow_left.png";
5532 description { state: "clicked" 0.0;
5533 inherit: "default" 0.0;
5534 image.normal: "00_picker_arrow_left_press.png";
5537 part { name: "over2";
5540 ignore_flags: ON_HOLD;
5541 description { state: "default" 0.0;
5545 part { name: "over3";
5548 description { state: "default" 0.0;
5552 part { name: "disabler";
5554 description { state: "default" 0.0;
5558 description { state: "disabled" 0.0;
5559 inherit: "default" 0.0;
5565 program { name: "button_click";
5566 signal: "mouse,down,1";
5568 action: SIGNAL_EMIT "elm,action,press" "";
5569 after: "button_click_anim";
5571 program { name: "button_click_anim";
5572 action: STATE_SET "clicked" 0.0;
5573 target: "button_image";
5575 program { name: "button_unpress";
5576 action: SIGNAL_EMIT "elm,action,unpress" "";
5578 program { name: "button_mouseout_clicked";
5579 signal: "mouse,up,1";
5582 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5583 set_state(PART:"button_image", "default", 0.0);
5585 after: button_unpress;
5587 program { name: "button_unclick3";
5588 signal: "mouse,clicked,1";
5590 action: SIGNAL_EMIT "elm,action,click" "";
5592 program { name: "disable";
5593 signal: "elm,state,disabled";
5595 action: STATE_SET "disabled" 0.0;
5596 target: "button_image";
5598 after: "disable_button";
5600 program { name: "disable_button";
5602 set_int(button_state, BUTTON_STATE_DISABLED);
5605 program { name: "enable";
5606 signal: "elm,state,enabled";
5608 action: STATE_SET "default" 0.0;
5609 target: "button_image";
5611 after: "enable_button";
5613 program { name: "enable_button";
5615 set_int(button_state, BUTTON_STATE_ENABLED);
5618 program { name: "focused";
5619 //signal: "elm,action,focus";
5621 action: STATE_SET "focused" 0.0;
5622 target: "button_image";
5624 program { name: "unfocused";
5625 //signal: "elm,action,unfocus";
5627 action: STATE_SET "default" 0.0;
5628 target: "button_image";
5633 ///////////////////////////////////////////////////////////////////////////////////////
5634 group { name: "elm/button/base/picker/next/icon/default";
5636 image: "00_picker_btn_normal.png" COMP;
5637 image: "00_picker_btn_press.png" COMP;
5638 image: "00_picker_arrow_right.png" COMP;
5639 image: "00_picker_arrow_right_press.png" COMP;
5642 public button_state = BUTTON_STATE_ENABLED;
5645 part { name: "button_image";
5647 description { state: "default" 0.0;
5648 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5649 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5651 normal: "00_picker_btn_normal.png";
5652 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5656 description { state: "clicked" 0.0;
5657 inherit: "default" 0.0;
5658 image.normal: "00_picker_btn_press.png";
5660 description { state: "disabled" 0.0;
5661 inherit: "default" 0.0;
5663 description { state: "focused" 0.0;
5664 inherit: "default" 0.0;
5665 image.normal: "00_picker_btn_press.png";
5668 part { name: "padding_left_top";
5672 description { state: "default" 0.0;
5674 rel2.relative: 0.0 0.0;
5675 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5680 part { name: "padding_right_bottom";
5684 description { state: "default" 0.0;
5686 rel1.relative: 1.0 1.0;
5687 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5692 part { name: "right_arrow";
5695 description { state: "default" 0.0;
5696 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5697 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5700 to: "padding_left_top";
5704 to: "padding_right_bottom";
5706 image.normal: "00_picker_arrow_right.png";
5708 description { state: "clicked" 0.0;
5709 inherit: "default" 0.0;
5710 image.normal: "00_picker_arrow_right_press.png";
5713 part { name: "over2";
5716 ignore_flags: ON_HOLD;
5717 description { state: "default" 0.0;
5721 part { name: "over3";
5724 description { state: "default" 0.0;
5728 part { name: "disabler";
5730 description { state: "default" 0.0;
5734 description { state: "disabled" 0.0;
5735 inherit: "default" 0.0;
5741 program { name: "button_click";
5742 signal: "mouse,down,1";
5744 action: SIGNAL_EMIT "elm,action,press" "";
5745 after: "button_click_anim";
5747 program { name: "button_click_anim";
5748 action: STATE_SET "clicked" 0.0;
5749 target: "button_image";
5751 program { name: "button_unpress";
5752 action: SIGNAL_EMIT "elm,action,unpress" "";
5754 program { name: "button_mouseout_clicked";
5755 signal: "mouse,up,1";
5758 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5759 set_state(PART:"button_image", "default", 0.0);
5761 after: button_unpress;
5763 program { name: "button_unclick3";
5764 signal: "mouse,clicked,1";
5766 action: SIGNAL_EMIT "elm,action,click" "";
5768 program { name: "disable";
5769 signal: "elm,state,disabled";
5771 action: STATE_SET "disabled" 0.0;
5772 target: "button_image";
5774 after: "disable_button";
5776 program { name: "disable_button";
5778 set_int(button_state, BUTTON_STATE_DISABLED);
5781 program { name: "enable";
5782 signal: "elm,state,enabled";
5784 action: STATE_SET "default" 0.0;
5785 target: "button_image";
5787 after: "enable_button";
5789 program { name: "enable_button";
5791 set_int(button_state, BUTTON_STATE_ENABLED);
5794 program { name: "focused";
5795 //signal: "elm,action,focus";
5797 action: STATE_SET "focused" 0.0;
5798 target: "button_image";
5800 program { name: "unfocused";
5801 //signal: "elm,action,unfocus";
5803 action: STATE_SET "default" 0.0;
5804 target: "button_image";
5809 ///////////////////////////////////////////////////////////////////////////////////////
5810 group { name: "elm/button/base/naviframe_control/default";
5811 alias: "elm/button/base/naviframe_control/center";
5813 public button_state = BUTTON_STATE_ENABLED;
5816 image: "00_Option_header_bt.png" COMP;
5817 image: "00_Option_header_bt_dim.png" COMP;
5818 image: "00_Option_header_bt_press.png" COMP;
5821 part { name: "button_image";
5823 description { state: "default" 0.0;
5824 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
5829 normal: "00_Option_header_bt.png";
5830 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
5832 color: 255 255 255 255;
5834 description { state: "disabled" 0.0;
5835 inherit: "default" 0.0;
5836 image.normal: "00_Option_header_bt_dim.png";
5838 description { state: "clicked" 0.0;
5839 inherit: "default" 0.0;
5840 image.normal: "00_Option_header_bt_press.png";
5843 part { name: "padding_left_top";
5847 description { state: "default" 0.0;
5849 rel2.relative: 0.0 0.0;
5850 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
5855 part { name: "padding_right_bottom";
5859 description { state: "default" 0.0;
5861 rel1.relative: 1.0 1.0;
5862 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
5867 part { name: "icon_rect";
5871 description { state: "default" 0.0;
5876 to: "padding_left_top";
5880 to_x: "padding_left_top";
5881 to_y: "padding_right_bottom";
5886 description { state: "visible" 0.0;
5887 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
5891 to: "padding_left_top";
5895 to_x: "padding_left_top";
5896 to_y: "padding_right_bottom";
5901 description { state: "icononly" 0.0;
5902 inherit: "default" 0.0;
5905 part { name: "padding_after_icon";
5909 description { state: "default" 0.0; //when only icon or no icon is there
5915 rel2.to: "icon_rect";
5920 description { state: "visible" 0.0;
5926 rel2.to: "icon_rect";
5928 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
5931 description { state: "icononly" 0.0;
5932 inherit: "default" 0.0;
5935 part { name: "padding_before_text";
5939 description { state: "default" 0.0; //when only icon or no icon is there
5944 to_y: "padding_left_top";
5949 to_y: "padding_right_bottom";
5952 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
5956 part { name: "elm.swallow.content";
5960 description { state: "default" 0.0;
5965 to: "padding_left_top";
5969 to_x: "padding_left_top";
5970 to_y: "padding_right_bottom";
5974 description { state: "visible" 0.0;
5976 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
5977 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
5981 to_x: "padding_before_text";
5982 to_y: "padding_left_top";
5986 to_x: "padding_before_text";
5987 to_y: "padding_right_bottom";
5990 aspect_preference: VERTICAL;
5992 description { state: "icononly" 0.0;
5993 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
5994 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
5997 to: "padding_left_top";
6001 to: "padding_right_bottom";
6004 aspect_preference: VERTICAL;
6007 part { name: "elm.text";
6012 description { state: "default" 0.0;
6016 to_x: "padding_after_icon";
6017 to_y: "padding_left_top";
6021 to: "padding_right_bottom";
6023 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6025 font: "SLP:style=Medium";
6026 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6031 description { state: "visible" 0.0;
6032 inherit: "default" 0.0;
6035 description { state: "clicked" 0.0;
6036 inherit: "default" 0.0;
6040 description { state: "focused" 0.0;
6041 inherit: "default" 0.0;
6044 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6047 part { name: "over2";
6050 ignore_flags: ON_HOLD;
6051 description { state: "default" 0.0;
6055 part { name: "over3";
6058 description { state: "default" 0.0;
6062 part { name: "clipper";
6064 description { state: "default" 0.0;
6065 color: 255 255 255 255;
6067 description { state: "disabled" 0.0;
6068 color: 255 255 255 127;
6071 part { name: "disabler";
6073 description { state: "default" 0.0;
6077 description { state: "disabled" 0.0;
6078 inherit: "default" 0.0;
6084 program { name: "button_click";
6085 signal: "mouse,down,1";
6087 action: SIGNAL_EMIT "elm,action,press" "";
6088 after: "button_click_anim";
6090 program { name: "button_click_anim";
6091 action: STATE_SET "clicked" 0.0;
6092 target: "button_image";
6093 after: "text_clicked";
6095 program { name: "text_clicked";
6099 get_state(PART:"elm.text", st, 30, vl);
6100 if (!strcmp(st, "visible"))
6101 set_state(PART:"elm.text", "clicked", 0.0);
6104 program { name: "button_unpress";
6105 action: SIGNAL_EMIT "elm,action,unpress" "";
6107 program { name: "button_mouseout_clicked";
6108 signal: "mouse,up,1";
6113 get_state(PART:"elm.swallow.content", st, 30, vl);
6114 if (strcmp(st, "icononly"))
6116 emit("elm,action,default,text,set", "");
6117 set_state(PART:"elm.text", "visible", 0.0);
6119 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6120 set_state(PART:"button_image", "default", 0.0);
6122 after: button_unpress;
6124 program { name: "button_unclick3";
6125 signal: "mouse,clicked,1";
6127 action: SIGNAL_EMIT "elm,action,click" "";
6129 program { name: "text_show";
6130 signal: "elm,state,text,visible";
6135 get_state(PART:"elm.swallow.content", st, 30, vl);
6136 if (!strcmp(st, "icononly"))
6138 set_state(PART:"elm.swallow.content", "visible", 0.0);
6139 set_state(PART:"icon_rect", "visible", 0.0);
6140 set_state(PART:"padding_after_icon", "visible", 0.0);
6142 set_state(PART:"elm.text", "visible", 0.0);
6145 program { name: "text_hide";
6146 signal: "elm,state,text,hidden";
6151 get_state(PART:"elm.swallow.content", st, 30, vl);
6152 if (!strcmp(st, "visible"))
6154 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6155 set_state(PART:"icon_rect", "icononly", 0.0);
6156 set_state(PART:"padding_after_icon", "icononly", 0.0);
6158 set_state(PART:"elm.text", "default", 0.0);
6161 program { name: "icon_show";
6162 signal: "elm,state,icon,visible";
6167 get_state(PART:"elm.text", st, 30, vl);
6168 if (!strcmp(st, "visible"))
6170 set_state(PART:"elm.swallow.content", "visible", 0.0);
6171 set_state(PART:"icon_rect", "visible", 0.0);
6172 set_state(PART:"padding_after_icon", "visible", 0.0);
6176 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6177 set_state(PART:"icon_rect", "icononly", 0.0);
6178 set_state(PART:"padding_after_icon", "icononly", 0.0);
6182 program { name: "icon_hide";
6183 signal: "elm,state,icon,hidden";
6185 action: STATE_SET "default" 0.0;
6186 target: "elm.swallow.content";
6187 target: "icon_rect";
6188 target: "padding_after_icon";
6190 program { name: "disable";
6191 signal: "elm,state,disabled";
6193 action: STATE_SET "disabled" 0.0;
6194 target: "button_image";
6197 after: "disable_text";
6199 program { name: "disable_text";
6203 set_int(button_state, BUTTON_STATE_DISABLED);
6204 get_state(PART:"elm.text", st, 30, vl);
6205 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6206 set_state(PART:"elm.text", "visible", 0.0);
6209 program { name: "enable";
6210 signal: "elm,state,enabled";
6212 action: STATE_SET "default" 0.0;
6213 target: "button_image";
6216 after: "enable_text";
6218 program { name: "enable_text";
6222 set_int(button_state, BUTTON_STATE_ENABLED);
6223 get_state(PART:"elm.text", st, 30, vl);
6224 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6225 set_state(PART:"elm.text", "visible", 0.0);
6228 program { name: "focused";
6229 action: STATE_SET "focused" 0.0;
6230 target: "button_image";
6233 program { name: "unfocused";
6234 action: STATE_SET "default" 0.0;
6235 target: "button_image";
6236 after: "unfocus_text";
6238 program { name: "unfocus_text";
6239 action: STATE_SET "visible" 0.0;
6245 ///////////////////////////////////////////////////////////////////////////////////////
6246 group { name: "elm/button/base/naviframe_control/multiline";
6248 public button_state = BUTTON_STATE_ENABLED;
6251 image: "00_Option_header_bt.png" COMP;
6252 image: "00_Option_header_bt_dim.png" COMP;
6253 image: "00_Option_header_bt_press.png" COMP;
6256 style { name: "btn_multiline_naviframe_controlbar_style";
6257 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6264 part { name: "button_image";
6266 description { state: "default" 0.0;
6267 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6271 normal: "00_Option_header_bt.png";
6272 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6274 color: 255 255 255 255;
6276 description { state: "disabled" 0.0;
6277 inherit: "default" 0.0;
6278 image.normal: "00_Option_header_bt_dim.png";
6280 description { state: "clicked" 0.0;
6281 inherit: "default" 0.0;
6282 image.normal: "00_Option_header_bt_press.png";
6285 part { name: "padding_left_top";
6289 description { state: "default" 0.0;
6291 rel2.relative: 0.0 0.0;
6292 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6297 part { name: "padding_right_bottom";
6301 description { state: "default" 0.0;
6303 rel1.relative: 1.0 1.0;
6304 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6309 part { name: "icon_rect";
6313 description { state: "default" 0.0;
6319 to_x: "elm.swallow.content";
6320 to_y: "padding_left_top";
6324 to_x: "elm.swallow.content";
6325 to_y: "padding_right_bottom";
6330 part { name: "padding_icon_text";
6334 description { state: "default" 0.0; //when only icon or no icon is there
6348 description { state: "visible" 0.0;
6349 inherit: "default" 0.0;
6350 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6360 description { state: "icononly" 0.0;
6361 inherit: "default" 0.0;
6364 part { name: "elm.swallow.content";
6368 description { state: "default" 0.0;
6373 to: "padding_left_top";
6377 to_x: "padding_left_top";
6378 to_y: "padding_right_bottom";
6382 description { state: "visible" 0.0;
6384 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6385 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6389 to: "padding_left_top";
6393 to_x: "padding_left_top";
6394 to_y: "padding_right_bottom";
6397 description { state: "icononly" 0.0;
6398 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6399 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6402 to: "padding_left_top";
6406 to: "padding_right_bottom";
6410 part { name: "elm.text";
6415 description { state: "default" 0.0;
6419 to_x: "padding_icon_text";
6420 to_y: "padding_left_top";
6424 to: "padding_right_bottom";
6426 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6428 style: "btn_multiline_naviframe_controlbar_style";
6433 description { state: "visible" 0.0;
6434 inherit: "default" 0.0;
6438 description { state: "clicked" 0.0;
6439 inherit: "default" 0.0;
6443 description { state: "focused" 0.0;
6444 inherit: "default" 0.0;
6447 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6450 part { name: "over2";
6453 ignore_flags: ON_HOLD;
6454 description { state: "default" 0.0;
6458 part { name: "over3";
6461 description { state: "default" 0.0;
6465 part { name: "clipper";
6467 description { state: "default" 0.0;
6468 color: 255 255 255 255;
6470 description { state: "disabled" 0.0;
6471 color: 255 255 255 127;
6474 part { name: "disabler";
6476 description { state: "default" 0.0;
6480 description { state: "disabled" 0.0;
6481 inherit: "default" 0.0;
6487 program { name: "button_click";
6488 signal: "mouse,down,1";
6490 action: SIGNAL_EMIT "elm,action,press" "";
6491 after: "button_click_anim";
6493 program { name: "button_click_anim";
6494 action: STATE_SET "clicked" 0.0;
6495 target: "button_image";
6496 after: "text_clicked";
6498 program { name: "text_clicked";
6502 get_state(PART:"elm.text", st, 30, vl);
6503 if (!strcmp(st, "visible"))
6504 set_state(PART:"elm.text", "clicked", 0.0);
6507 program { name: "button_unpress";
6508 action: SIGNAL_EMIT "elm,action,unpress" "";
6510 program { name: "button_mouseout_clicked";
6511 signal: "mouse,up,1";
6516 get_state(PART:"elm.swallow.content", st, 30, vl);
6517 if (strcmp(st, "icononly"))
6519 emit("elm,action,default,text,set", "");
6520 set_state(PART:"elm.text", "visible", 0.0);
6522 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6523 set_state(PART:"button_image", "default", 0.0);
6525 after: button_unpress;
6527 program { name: "button_unclick3";
6528 signal: "mouse,clicked,1";
6530 action: SIGNAL_EMIT "elm,action,click" "";
6532 program { name: "text_show";
6533 signal: "elm,state,text,visible";
6538 get_state(PART:"elm.swallow.content", st, 30, vl);
6539 if (!strcmp(st, "icononly"))
6541 set_state(PART:"elm.swallow.content", "visible", 0.0);
6542 set_state(PART:"padding_icon_text", "visible", 0.0);
6544 set_state(PART:"elm.text", "visible", 0.0);
6547 program { name: "text_hide";
6548 signal: "elm,state,text,hidden";
6553 get_state(PART:"elm.swallow.content", st, 30, vl);
6554 if (!strcmp(st, "visible"))
6556 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6557 set_state(PART:"padding_icon_text", "icononly", 0.0);
6559 set_state(PART:"elm.text", "default", 0.0);
6562 program { name: "icon_show";
6563 signal: "elm,state,icon,visible";
6568 get_state(PART:"elm.text", st, 30, vl);
6569 if (!strcmp(st, "visible"))
6571 set_state(PART:"elm.swallow.content", "visible", 0.0);
6572 set_state(PART:"padding_icon_text", "visible", 0.0);
6576 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6577 set_state(PART:"padding_icon_text", "icononly", 0.0);
6581 program { name: "icon_hide";
6582 signal: "elm,state,icon,hidden";
6584 action: STATE_SET "default" 0.0;
6585 target: "elm.swallow.content";
6586 target: "padding_icon_text";
6588 program { name: "disable";
6589 signal: "elm,state,disabled";
6591 action: STATE_SET "disabled" 0.0;
6592 target: "button_image";
6595 after: "disable_text";
6597 program { name: "disable_text";
6601 set_int(button_state, BUTTON_STATE_DISABLED);
6602 get_state(PART:"elm.text", st, 30, vl);
6603 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6604 set_state(PART:"elm.text", "visible", 0.0);
6607 program { name: "enable";
6608 signal: "elm,state,enabled";
6610 action: STATE_SET "default" 0.0;
6611 target: "button_image";
6614 after: "enable_text";
6616 program { name: "enable_text";
6620 set_int(button_state, BUTTON_STATE_ENABLED);
6621 get_state(PART:"elm.text", st, 30, vl);
6622 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6623 set_state(PART:"elm.text", "visible", 0.0);
6626 program { name: "focused";
6627 action: STATE_SET "focused" 0.0;
6628 target: "button_image";
6631 program { name: "unfocused";
6632 action: STATE_SET "default" 0.0;
6633 target: "button_image";
6634 after: "unfocus_text";
6636 program { name: "unfocus_text";
6637 action: STATE_SET "visible" 0.0;
6643 //////////////////////////////////////////////////////////////
6644 group { name: "elm/button/base/naviframe/title/default";
6646 image: "00_Title_btn.png" COMP;
6647 image: "00_Title_btn_press.png" COMP;
6650 public button_state = BUTTON_STATE_ENABLED;
6653 part { name: "button_image";
6655 description { state: "default" 0.0;
6656 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6657 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6659 normal: "00_Title_btn.png";
6660 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
6664 description { state: "clicked" 0.0;
6665 inherit: "default" 0.0;
6666 image.normal: "00_Title_btn_press.png";
6668 description { state: "disabled" 0.0;
6669 inherit: "default" 0.0;
6671 description { state: "focused" 0.0;
6672 inherit: "default" 0.0;
6673 image.normal: "00_Title_btn_press.png";
6676 part { name: "padding_left_top";
6680 description { state: "default" 0.0;
6682 rel2.relative: 0.0 0.0;
6683 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
6692 description { state: "default" 0.0;
6693 min: BUTTON_NAVIFRAME_BG_MIN_INC;
6696 description { state: "visible" 0.0;
6697 inherit: "default" 0.0;
6698 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
6700 description { state: "icononly" 0.0;
6701 inherit: "default" 0.0;
6702 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
6705 part { name: "padding_right_bottom";
6709 description { state: "default" 0.0;
6711 rel1.relative: 1.0 1.0;
6712 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
6717 part { name: "icon_rect";
6721 description { state: "default" 0.0;
6727 to: "padding_left_top";
6731 to_x: "padding_left_top";
6732 to_y: "padding_right_bottom";
6736 description { state: "visible" 0.0;
6738 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
6739 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
6743 to: "padding_left_top";
6747 to_x: "padding_left_top";
6748 to_y: "padding_right_bottom";
6752 description { state: "icononly" 0.0;
6753 inherit: "default" 0.0;
6756 part { name: "padding_after_icon";
6760 description { state: "default" 0.0; //when only icon or no icon is there
6766 rel2.to: "icon_rect";
6771 description { state: "visible" 0.0;
6778 rel2.to: "icon_rect";
6780 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6782 description { state: "icononly" 0.0;
6783 inherit: "default" 0.0;
6786 part { name: "padding_before_text";
6790 description { state: "default" 0.0; //when only icon or no icon is there
6795 to_y: "padding_left_top";
6800 to_y: "padding_right_bottom";
6803 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6807 part { name: "elm.swallow.content";
6811 description { state: "default" 0.0;
6816 to: "padding_left_top";
6820 to_x: "padding_left_top";
6821 to_y: "padding_right_bottom";
6825 description { state: "visible" 0.0;
6827 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
6828 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
6832 to_x: "padding_before_text";
6833 to_y: "padding_left_top";
6837 to_x: "padding_before_text";
6838 to_y: "padding_right_bottom";
6841 description { state: "icononly" 0.0;
6842 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
6843 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
6846 part { name: "elm.text";
6851 description { state: "default" 0.0;
6855 to_x: "padding_after_icon";
6856 to_y: "padding_left_top";
6860 to: "padding_right_bottom";
6862 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
6864 font: "SLP:style=Medium";
6865 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
6870 description { state: "visible" 0.0;
6871 inherit: "default" 0.0;
6874 description { state: "clicked" 0.0;
6875 inherit: "default" 0.0;
6877 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
6879 description { state: "disabled" 0.0;
6880 inherit: "default" 0.0;
6883 description { state: "disabled_visible" 0.0;
6884 inherit: "default" 0.0;
6885 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
6888 description { state: "focused" 0.0;
6889 inherit: "default" 0.0;
6891 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
6894 part { name: "over2";
6897 ignore_flags: ON_HOLD;
6898 description { state: "default" 0.0;
6902 part { name: "over3";
6905 description { state: "default" 0.0;
6909 part { name: "clipper";
6911 description { state: "default" 0.0;
6912 color: 255 255 255 255;
6915 part { name: "disabler";
6917 description { state: "default" 0.0;
6921 description { state: "disabled" 0.0;
6922 inherit: "default" 0.0;
6928 program { name: "button_click";
6929 signal: "mouse,down,1";
6931 action: SIGNAL_EMIT "elm,action,press" "";
6932 after: "button_click_anim";
6934 program { name: "button_click_anim";
6935 action: STATE_SET "clicked" 0.0;
6936 target: "button_image";
6937 after: "text_clicked";
6939 program { name: "text_clicked";
6943 get_state(PART:"elm.text", st, 30, vl);
6944 if (!strcmp(st, "visible"))
6945 set_state(PART:"elm.text", "clicked", 0.0);
6948 program { name: "button_unpress";
6949 action: SIGNAL_EMIT "elm,action,unpress" "";
6951 program { name: "button_mouseout_clicked";
6952 signal: "mouse,up,1";
6957 get_state(PART:"elm.swallow.content", st, 30, vl);
6958 if (strcmp(st, "icononly"))
6960 emit("elm,action,default,text,set", "");
6961 set_state(PART:"elm.text", "visible", 0.0);
6963 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6964 set_state(PART:"button_image", "default", 0.0);
6966 after: button_unpress;
6968 program { name: "button_unclick3";
6969 signal: "mouse,clicked,1";
6971 action: SIGNAL_EMIT "elm,action,click" "";
6973 program { name: "text_show";
6974 signal: "elm,state,text,visible";
6979 get_state(PART:"elm.swallow.content", st, 30, vl);
6980 if (!strcmp(st, "icononly"))
6982 set_state(PART:"elm.swallow.content", "visible", 0.0);
6983 set_state(PART:"icon_rect", "visible", 0.0);
6984 set_state(PART:"padding_after_icon", "visible", 0.0);
6985 set_state(PART:"bg", "visible", 0.0);
6987 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6988 set_state(PART:"elm.text", "visible", 0.0);
6990 set_state(PART:"elm.text", "disabled_visible", 0.0);
6993 program { name: "text_hide";
6994 signal: "elm,state,text,hidden";
6999 get_state(PART:"elm.swallow.content", st, 30, vl);
7000 if (!strcmp(st, "visible"))
7002 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7003 set_state(PART:"icon_rect", "icononly", 0.0);
7004 set_state(PART:"padding_after_icon", "icononly", 0.0);
7005 set_state(PART:"bg", "icononly", 0.0);
7007 set_state(PART:"elm.text", "default", 0.0);
7010 program { name: "icon_show";
7011 signal: "elm,state,icon,visible";
7016 get_state(PART:"elm.text", st, 30, vl);
7017 if (!strcmp(st, "visible"))
7019 set_state(PART:"elm.swallow.content", "visible", 0.0);
7020 set_state(PART:"icon_rect", "visible", 0.0);
7021 set_state(PART:"padding_after_icon", "visible", 0.0);
7022 set_state(PART:"bg", "visible", 0.0);
7026 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7027 set_state(PART:"icon_rect", "icononly", 0.0);
7028 set_state(PART:"padding_after_icon", "icononly", 0.0);
7029 set_state(PART:"bg", "icononly", 0.0);
7033 program { name: "icon_hide";
7034 signal: "elm,state,icon,hidden";
7036 action: STATE_SET "default" 0.0;
7037 target: "elm.swallow.content";
7038 target: "padding_after_icon";
7039 target: "icon_rect";
7042 program { name: "disable";
7043 signal: "elm,state,disabled";
7045 action: STATE_SET "disabled" 0.0;
7046 target: "button_image";
7048 after: "disable_text";
7050 program { name: "disable_text";
7054 get_state(PART:"elm.text", st, 30, vl);
7055 if (!strcmp(st, "visible"))
7056 set_state(PART:"elm.text", "disabled_visible", 0.0);
7058 set_state(PART:"elm.text", "disabled", 0.0);
7059 set_int(button_state, BUTTON_STATE_DISABLED);
7062 program { name: "enable";
7063 signal: "elm,state,enabled";
7065 action: STATE_SET "default" 0.0;
7066 target: "button_image";
7068 after: "enable_text";
7070 program { name: "enable_text";
7074 get_state(PART:"elm.text", st, 30, vl);
7075 if (!strcmp(st, "disabled_visible"))
7076 set_state(PART:"elm.text", "visible", 0.0);
7078 set_state(PART:"elm.text", "default", 0.0);
7079 set_int(button_state, BUTTON_STATE_ENABLED);
7082 program { name: "focused";
7083 //signal: "elm,action,focus";
7085 action: STATE_SET "focused" 0.0;
7086 target: "button_image";
7089 program { name: "unfocused";
7090 //signal: "elm,action,unfocus";
7092 action: STATE_SET "default" 0.0;
7093 target: "button_image";
7094 after: "unfocus_text";
7096 program { name: "unfocus_text";
7097 action: STATE_SET "visible" 0.0;
7103 /////////////////////////////////////////////////////////////////////////////////////////
7104 group { name: "elm/button/base/naviframe/title_icon/default";
7106 image: "00_Title_btn.png" COMP;
7107 image: "00_Title_btn_press.png" COMP;
7108 image: "00_winset_more.png" COMP;
7111 public button_state = BUTTON_STATE_ENABLED;
7114 part { name: "button_image";
7116 description { state: "default" 0.0;
7117 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7118 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7120 normal: "00_Title_btn.png";
7121 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_BORDER_INC;
7125 description { state: "clicked" 0.0;
7126 inherit: "default" 0.0;
7127 image.normal: "00_Title_btn_press.png";
7129 description { state: "disabled" 0.0;
7130 inherit: "default" 0.0;
7132 description { state: "focused" 0.0;
7133 inherit: "default" 0.0;
7134 image.normal: "00_Title_btn_press.png";
7137 part { name: "more_image";
7140 description { state: "default" 0.0;
7141 min: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7142 max: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7143 rel1.to: "button_image";
7144 rel2.to: "button_image";
7145 image.normal: "00_winset_more.png";
7147 description { state: "clicked" 0.0;
7148 inherit: "default" 0.0;
7151 part { name: "over2";
7154 ignore_flags: ON_HOLD;
7155 description { state: "default" 0.0;
7159 part { name: "over3";
7162 description { state: "default" 0.0;
7166 part { name: "disabler";
7168 description { state: "default" 0.0;
7172 description { state: "disabled" 0.0;
7173 inherit: "default" 0.0;
7179 program { name: "button_click";
7180 signal: "mouse,down,1";
7182 action: SIGNAL_EMIT "elm,action,press" "";
7183 after: "button_click_anim";
7185 program { name: "button_click_anim";
7186 action: STATE_SET "clicked" 0.0;
7187 target: "button_image";
7189 program { name: "button_unpress";
7190 action: SIGNAL_EMIT "elm,action,unpress" "";
7192 program { name: "button_mouseout_clicked";
7193 signal: "mouse,up,1";
7196 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7197 set_state(PART:"button_image", "default", 0.0);
7199 after: button_unpress;
7201 program { name: "button_unclick3";
7202 signal: "mouse,clicked,1";
7204 action: SIGNAL_EMIT "elm,action,click" "";
7206 program { name: "disable";
7207 signal: "elm,state,disabled";
7209 action: STATE_SET "disabled" 0.0;
7210 target: "button_image";
7212 after: "disable_button";
7214 program { name: "disable_button";
7216 set_int(button_state, BUTTON_STATE_DISABLED);
7219 program { name: "enable";
7220 signal: "elm,state,enabled";
7222 action: STATE_SET "default" 0.0;
7223 target: "button_image";
7225 after: "enable_button";
7227 program { name: "enable_button";
7229 set_int(button_state, BUTTON_STATE_ENABLED);
7235 ///////////////////////////////////////////////////////////////////////////////////////
7236 group { name: "elm/button/base/controlbar/vertical";
7238 public button_state = BUTTON_STATE_ENABLED;
7241 style { name: "controlbar_style";
7242 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";
7245 tag: "hilight" "+ font=SLP:style=Bold";
7246 tag: "b" "+ font=SLP:style=Bold";
7251 part { name: "button_image";
7254 description { state: "default" 0.0;
7262 part { name: "padding_left_top";
7266 description { state: "default" 0.0;
7268 rel2.relative: 0.0 0.0;
7274 part { name: "padding_right_bottom";
7278 description { state: "default" 0.0;
7280 rel1.relative: 1.0 1.0;
7291 description { state: "default" 0.0;
7296 to: "padding_left_top";
7300 to_x: "padding_right_bottom";
7301 to_y: "padding_left_top";
7306 description { state: "visible" 0.0;
7307 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7311 to: "padding_left_top";
7315 to_x: "padding_right_bottom";
7316 to_y: "padding_left_top";
7321 description { state: "icononly" 0.0;
7322 inherit: "default" 0.0;
7325 part { name: "padding_after_icon";
7329 description { state: "default" 0.0; //when only icon or no icon is there
7335 rel2.to: "icon_rect";
7340 description { state: "visible" 0.0;
7346 rel2.to: "icon_rect";
7351 description { state: "icononly" 0.0;
7352 inherit: "default" 0.0;
7355 part { name: "padding_before_text";
7359 description { state: "default" 0.0; //when only icon or no icon is there
7363 to_x: "padding_left_top";
7368 to_x: "padding_right_bottom";
7376 part { name: "elm.swallow.content";
7379 clip_to: "disabler";
7380 description { state: "default" 0.0;
7385 to: "padding_left_top";
7389 to_x: "padding_right_bottom";
7390 to_y: "padding_left_top";
7394 description { state: "visible" 0.0;
7396 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7397 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7400 to: "padding_left_top";
7404 to_x: "padding_right_bottom";
7405 to_y: "padding_before_text";
7408 aspect_preference: HORIZONTAL;
7410 description { state: "icononly" 0.0;
7411 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7412 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7415 to: "padding_left_top";
7419 to: "padding_right_bottom";
7422 aspect_preference: HORIZONTAL;
7425 part { name: "elm.text";
7429 clip_to: "disabler";
7430 description { state: "default" 0.0;
7434 to_x: "padding_left_top";
7435 to_y: "padding_after_icon";
7439 to: "padding_right_bottom";
7441 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7444 style: "controlbar_style";
7449 description { state: "visible" 0.0;
7450 inherit: "default" 0.0;
7453 description { state: "clicked" 0.0;
7454 inherit: "default" 0.0;
7456 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7458 description { state: "focused" 0.0;
7459 inherit: "default" 0.0;
7461 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7464 part { name: "over2";
7467 ignore_flags: ON_HOLD;
7468 description { state: "default" 0.0;
7471 description { state: "disabled" 0.0;
7472 inherit: "default" 0.0;
7476 part { name: "over3";
7479 description { state: "default" 0.0;
7483 part { name: "disabler";
7485 description { state: "default" 0.0;
7486 color: 255 255 255 255;
7489 description { state: "disabled" 0.0;
7490 inherit: "default" 0.0;
7491 color: 255 255 255 127;
7497 program { name: "button_click";
7498 signal: "mouse,down,1";
7500 action: SIGNAL_EMIT "elm,action,press" "";
7501 after: "button_click_anim";
7503 program { name: "button_click_anim";
7504 action: STATE_SET "clicked" 0.0;
7505 target: "button_image";
7506 after: "text_clicked";
7508 program { name: "text_clicked";
7512 get_state(PART:"elm.text", st, 30, vl);
7513 if (!strcmp(st, "visible"))
7514 set_state(PART:"elm.text", "clicked", 0.0);
7517 program { name: "button_unpress";
7518 action: SIGNAL_EMIT "elm,action,unpress" "";
7520 program { name: "button_mouseout_clicked";
7521 signal: "mouse,up,1";
7526 get_state(PART:"elm.swallow.content", st, 30, vl);
7527 if (strcmp(st, "icononly"))
7529 emit("elm,action,default,text,set", "");
7530 set_state(PART:"elm.text", "visible", 0.0);
7532 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7533 set_state(PART:"button_image", "default", 0.0);
7535 after: button_unpress;
7537 program { name: "button_unclick3";
7538 signal: "mouse,clicked,1";
7540 action: SIGNAL_EMIT "elm,action,click" "";
7542 program { name: "text_show";
7543 signal: "elm,state,text,visible";
7548 get_state(PART:"elm.swallow.content", st, 30, vl);
7549 if (!strcmp(st, "icononly"))
7551 set_state(PART:"elm.swallow.content", "visible", 0.0);
7552 set_state(PART:"icon_rect", "visible", 0.0);
7553 set_state(PART:"padding_after_icon", "visible", 0.0);
7555 set_state(PART:"elm.text", "visible", 0.0);
7558 program { name: "text_hide";
7559 signal: "elm,state,text,hidden";
7564 get_state(PART:"elm.swallow.content", st, 30, vl);
7565 if (!strcmp(st, "visible"))
7567 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7568 set_state(PART:"icon_rect", "icononly", 0.0);
7569 set_state(PART:"padding_after_icon", "icononly", 0.0);
7571 set_state(PART:"elm.text", "default", 0.0);
7574 program { name: "icon_show";
7575 signal: "elm,state,icon,visible";
7580 get_state(PART:"elm.text", st, 30, vl);
7581 if (!strcmp(st, "visible"))
7583 set_state(PART:"elm.swallow.content", "visible", 0.0);
7584 set_state(PART:"icon_rect", "visible", 0.0);
7585 set_state(PART:"padding_after_icon", "visible", 0.0);
7589 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7590 set_state(PART:"icon_rect", "icononly", 0.0);
7591 set_state(PART:"padding_after_icon", "icononly", 0.0);
7595 program { name: "icon_hide";
7596 signal: "elm,state,icon,hidden";
7598 action: STATE_SET "default" 0.0;
7599 target: "elm.swallow.content";
7600 target: "icon_rect";
7601 target: "padding_after_icon";
7603 program { name: "disable";
7604 signal: "elm,state,disabled";
7606 action: STATE_SET "disabled" 0.0;
7609 after: "disable_text";
7611 program { name: "disable_text";
7615 set_int(button_state, BUTTON_STATE_DISABLED);
7616 get_state(PART:"elm.text", st, 30, vl);
7617 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7618 set_state(PART:"elm.text", "visible", 0.0);
7621 program { name: "enable";
7622 signal: "elm,state,enabled";
7624 action: STATE_SET "default" 0.0;
7627 after: "enable_text";
7629 program { name: "enable_text";
7633 set_int(button_state, BUTTON_STATE_ENABLED);
7634 get_state(PART:"elm.text", st, 30, vl);
7635 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7636 set_state(PART:"elm.text", "visible", 0.0);
7639 program { name: "focused";
7640 action: STATE_SET "focused" 0.0;
7641 target: "button_image";
7644 program { name: "unfocused";
7645 action: STATE_SET "default" 0.0;
7646 target: "button_image";
7647 after: "unfocus_text";
7649 program { name: "unfocus_text";
7650 action: STATE_SET "visible" 0.0;
7656 ///////////////////////////////////////////////////////////////////////////////////////
7657 group { name: "elm/button/base/controlbar/horizontal_center";
7659 public button_state = BUTTON_STATE_ENABLED;
7662 part { name: "button_image";
7665 description { state: "default" 0.0;
7672 description { state: "clicked" 0.0;
7673 inherit: "default" 0.0;
7677 part { name: "padding_left_top";
7681 description { state: "default" 0.0;
7683 rel2.relative: 0.0 0.0;
7689 part { name: "padding_right_bottom";
7693 description { state: "default" 0.0;
7695 rel1.relative: 1.0 1.0;
7701 part { name: "icon_rect";
7705 description { state: "default" 0.0;
7710 to: "padding_left_top";
7714 to_x: "padding_left_top";
7715 to_y: "padding_right_bottom";
7720 description { state: "visible" 0.0;
7721 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7725 to: "padding_left_top";
7729 to_x: "padding_left_top";
7730 to_y: "padding_right_bottom";
7735 description { state: "icononly" 0.0;
7736 inherit: "default" 0.0;
7737 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7740 part { name: "padding_after_icon";
7744 description { state: "default" 0.0; //when only icon or no icon is there
7750 rel2.to: "icon_rect";
7755 description { state: "visible" 0.0;
7761 rel2.to: "icon_rect";
7766 description { state: "icononly" 0.0;
7767 inherit: "default" 0.0;
7770 part { name: "padding_before_text";
7774 description { state: "default" 0.0; //when only icon or no icon is there
7779 to_y: "padding_left_top";
7784 to_y: "padding_right_bottom";
7791 part { name: "elm.swallow.content";
7794 clip_to: "disabler";
7795 description { state: "default" 0.0;
7800 to: "padding_left_top";
7804 to_x: "padding_left_top";
7805 to_y: "padding_right_bottom";
7809 description { state: "visible" 0.0;
7811 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7812 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7816 to_x: "padding_before_text";
7817 to_y: "padding_left_top";
7821 to_x: "padding_before_text";
7822 to_y: "padding_right_bottom";
7825 aspect_preference: VERTICAL;
7827 description { state: "icononly" 0.0;
7828 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7829 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7832 to: "padding_left_top";
7836 to: "padding_right_bottom";
7839 aspect_preference: VERTICAL;
7842 part { name: "elm.text";
7846 clip_to: "disabler";
7847 description { state: "default" 0.0;
7851 to_x: "padding_after_icon";
7852 to_y: "padding_left_top";
7856 to: "padding_right_bottom";
7858 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7860 font: "SLP:style=Medium";
7861 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
7866 description { state: "visible" 0.0;
7867 inherit: "default" 0.0;
7870 description { state: "clicked" 0.0;
7871 inherit: "default" 0.0;
7875 description { state: "focused" 0.0;
7876 inherit: "default" 0.0;
7879 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7882 part { name: "over2";
7885 ignore_flags: ON_HOLD;
7886 description { state: "default" 0.0;
7889 description { state: "disabled" 0.0;
7890 inherit: "default" 0.0;
7894 part { name: "over3";
7897 description { state: "default" 0.0;
7901 part { name: "disabler";
7903 description { state: "default" 0.0;
7904 color: 255 255 255 255;
7906 description { state: "disabled" 0.0;
7907 color: 255 255 255 127;
7912 program { name: "button_click";
7913 signal: "mouse,down,1";
7915 action: SIGNAL_EMIT "elm,action,press" "";
7916 after: "button_click_anim";
7918 program { name: "button_click_anim";
7919 action: STATE_SET "clicked" 0.0;
7920 target: "button_image";
7921 after: "text_clicked";
7923 program { name: "text_clicked";
7927 get_state(PART:"elm.text", st, 30, vl);
7928 if (!strcmp(st, "visible"))
7929 set_state(PART:"elm.text", "clicked", 0.0);
7932 program { name: "button_unpress";
7933 action: SIGNAL_EMIT "elm,action,unpress" "";
7935 program { name: "button_mouseout_clicked";
7936 signal: "mouse,up,1";
7941 get_state(PART:"elm.swallow.content", st, 30, vl);
7942 if (strcmp(st, "icononly"))
7944 emit("elm,action,default,text,set", "");
7945 set_state(PART:"elm.text", "visible", 0.0);
7947 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7948 set_state(PART:"button_image", "default", 0.0);
7950 after: button_unpress;
7952 program { name: "button_unclick3";
7953 signal: "mouse,clicked,1";
7955 action: SIGNAL_EMIT "elm,action,click" "";
7957 program { name: "text_show";
7958 signal: "elm,state,text,visible";
7963 get_state(PART:"elm.swallow.content", st, 30, vl);
7964 if (!strcmp(st, "icononly"))
7966 set_state(PART:"elm.swallow.content", "visible", 0.0);
7967 set_state(PART:"icon_rect", "visible", 0.0);
7968 set_state(PART:"padding_after_icon", "visible", 0.0);
7970 set_state(PART:"elm.text", "visible", 0.0);
7973 program { name: "text_hide";
7974 signal: "elm,state,text,hidden";
7979 get_state(PART:"elm.swallow.content", st, 30, vl);
7980 if (!strcmp(st, "visible"))
7982 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7983 set_state(PART:"icon_rect", "icononly", 0.0);
7984 set_state(PART:"padding_after_icon", "icononly", 0.0);
7986 set_state(PART:"elm.text", "default", 0.0);
7989 program { name: "icon_show";
7990 signal: "elm,state,icon,visible";
7995 get_state(PART:"elm.text", st, 30, vl);
7996 if (!strcmp(st, "visible"))
7998 set_state(PART:"elm.swallow.content", "visible", 0.0);
7999 set_state(PART:"icon_rect", "visible", 0.0);
8000 set_state(PART:"padding_after_icon", "visible", 0.0);
8004 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8005 set_state(PART:"icon_rect", "icononly", 0.0);
8006 set_state(PART:"padding_after_icon", "icononly", 0.0);
8010 program { name: "icon_hide";
8011 signal: "elm,state,icon,hidden";
8013 action: STATE_SET "default" 0.0;
8014 target: "elm.swallow.content";
8015 target: "icon_rect";
8016 target: "padding_after_icon";
8018 program { name: "disable";
8019 signal: "elm,state,disabled";
8021 action: STATE_SET "disabled" 0.0;
8024 after: "disable_text";
8026 program { name: "disable_text";
8030 set_int(button_state, BUTTON_STATE_DISABLED);
8031 get_state(PART:"elm.text", st, 30, vl);
8032 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8033 set_state(PART:"elm.text", "visible", 0.0);
8036 program { name: "enable";
8037 signal: "elm,state,enabled";
8039 action: STATE_SET "default" 0.0;
8042 after: "enable_text";
8044 program { name: "enable_text";
8048 set_int(button_state, BUTTON_STATE_ENABLED);
8049 get_state(PART:"elm.text", st, 30, vl);
8050 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8051 set_state(PART:"elm.text", "visible", 0.0);
8054 program { name: "focused";
8055 action: STATE_SET "focused" 0.0;
8056 target: "button_image";
8059 program { name: "unfocused";
8060 action: STATE_SET "default" 0.0;
8061 target: "button_image";
8062 after: "unfocus_text";
8064 program { name: "unfocus_text";
8065 action: STATE_SET "visible" 0.0;
8071 ///////////////////////////////////////////////////////////////////////////////////////
8072 group { name: "elm/button/base/controlbar/horizontal_left";
8074 public button_state = BUTTON_STATE_ENABLED;
8077 part { name: "button_image";
8080 description { state: "default" 0.0;
8087 description { state: "clicked" 0.0;
8088 inherit: "default" 0.0;
8092 part { name: "padding_left_top";
8096 description { state: "default" 0.0;
8098 rel2.relative: 0.0 0.0;
8104 part { name: "padding_right_bottom";
8108 description { state: "default" 0.0;
8110 rel1.relative: 1.0 1.0;
8116 part { name: "icon_rect";
8120 description { state: "default" 0.0;
8125 to: "padding_left_top";
8129 to_x: "padding_left_top";
8130 to_y: "padding_right_bottom";
8135 description { state: "visible" 0.0;
8136 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8140 to: "padding_left_top";
8144 to_x: "padding_left_top";
8145 to_y: "padding_right_bottom";
8150 description { state: "icononly" 0.0;
8151 inherit: "default" 0.0;
8154 part { name: "padding_after_icon";
8158 description { state: "default" 0.0; //when only icon or no icon is there
8164 rel2.to: "icon_rect";
8169 description { state: "visible" 0.0;
8175 rel2.to: "icon_rect";
8180 description { state: "icononly" 0.0;
8181 inherit: "default" 0.0;
8184 part { name: "padding_before_text";
8188 description { state: "default" 0.0; //when only icon or no icon is there
8193 to_y: "padding_left_top";
8198 to_y: "padding_right_bottom";
8205 part { name: "elm.swallow.content";
8208 clip_to: "disabler";
8209 description { state: "default" 0.0;
8214 to: "padding_left_top";
8218 to_x: "padding_left_top";
8219 to_y: "padding_right_bottom";
8223 description { state: "visible" 0.0;
8225 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8226 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8230 to_x: "padding_before_text";
8231 to_y: "padding_left_top";
8235 to_x: "padding_before_text";
8236 to_y: "padding_right_bottom";
8239 aspect_preference: VERTICAL;
8241 description { state: "icononly" 0.0;
8242 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8243 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8246 to: "padding_left_top";
8250 to: "padding_right_bottom";
8253 aspect_preference: VERTICAL;
8256 part { name: "elm.text";
8260 clip_to: "disabler";
8261 description { state: "default" 0.0;
8265 to_x: "padding_after_icon";
8266 to_y: "padding_left_top";
8270 to: "padding_right_bottom";
8273 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8275 font: "SLP:style=Medium";
8282 description { state: "visible" 0.0;
8283 inherit: "default" 0.0;
8286 description { state: "clicked" 0.0;
8287 inherit: "default" 0.0;
8291 description { state: "focused" 0.0;
8292 inherit: "default" 0.0;
8295 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8298 part { name: "over2";
8301 ignore_flags: ON_HOLD;
8302 description { state: "default" 0.0;
8306 part { name: "over3";
8309 description { state: "default" 0.0;
8313 part { name: "disabler";
8315 description { state: "default" 0.0;
8316 color: 255 255 255 255;
8318 description { state: "disabled" 0.0;
8319 color: 255 255 255 127;
8324 program { name: "button_click";
8325 signal: "mouse,down,1";
8327 action: SIGNAL_EMIT "elm,action,press" "";
8328 after: "button_click_anim";
8330 program { name: "button_click_anim";
8331 action: STATE_SET "clicked" 0.0;
8332 target: "button_image";
8333 after: "text_clicked";
8335 program { name: "text_clicked";
8339 get_state(PART:"elm.text", st, 30, vl);
8340 if (!strcmp(st, "visible"))
8341 set_state(PART:"elm.text", "clicked", 0.0);
8344 program { name: "button_unpress";
8345 action: SIGNAL_EMIT "elm,action,unpress" "";
8347 program { name: "button_mouseout_clicked";
8348 signal: "mouse,up,1";
8353 get_state(PART:"elm.swallow.content", st, 30, vl);
8354 if (strcmp(st, "icononly"))
8356 emit("elm,action,default,text,set", "");
8357 set_state(PART:"elm.text", "visible", 0.0);
8359 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8360 set_state(PART:"button_image", "default", 0.0);
8362 after: button_unpress;
8364 program { name: "button_unclick3";
8365 signal: "mouse,clicked,1";
8367 action: SIGNAL_EMIT "elm,action,click" "";
8369 program { name: "text_show";
8370 signal: "elm,state,text,visible";
8375 get_state(PART:"elm.swallow.content", st, 30, vl);
8376 if (!strcmp(st, "icononly"))
8378 set_state(PART:"elm.swallow.content", "visible", 0.0);
8379 set_state(PART:"icon_rect", "visible", 0.0);
8380 set_state(PART:"padding_after_icon", "visible", 0.0);
8382 set_state(PART:"elm.text", "visible", 0.0);
8385 program { name: "text_hide";
8386 signal: "elm,state,text,hidden";
8391 get_state(PART:"elm.swallow.content", st, 30, vl);
8392 if (!strcmp(st, "visible"))
8394 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8395 set_state(PART:"icon_rect", "icononly", 0.0);
8396 set_state(PART:"padding_after_icon", "icononly", 0.0);
8398 set_state(PART:"elm.text", "default", 0.0);
8401 program { name: "icon_show";
8402 signal: "elm,state,icon,visible";
8407 get_state(PART:"elm.text", st, 30, vl);
8408 if (!strcmp(st, "visible"))
8410 set_state(PART:"elm.swallow.content", "visible", 0.0);
8411 set_state(PART:"icon_rect", "visible", 0.0);
8412 set_state(PART:"padding_after_icon", "visible", 0.0);
8416 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8417 set_state(PART:"icon_rect", "icononly", 0.0);
8418 set_state(PART:"padding_after_icon", "icononly", 0.0);
8422 program { name: "icon_hide";
8423 signal: "elm,state,icon,hidden";
8425 action: STATE_SET "default" 0.0;
8426 target: "elm.swallow.content";
8427 target: "icon_rect";
8428 target: "padding_after_icon";
8430 program { name: "disable";
8431 signal: "elm,state,disabled";
8433 action: STATE_SET "disabled" 0.0;
8435 after: "disable_text";
8437 program { name: "disable_text";
8441 set_int(button_state, BUTTON_STATE_DISABLED);
8442 get_state(PART:"elm.text", st, 30, vl);
8443 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8444 set_state(PART:"elm.text", "visible", 0.0);
8447 program { name: "enable";
8448 signal: "elm,state,enabled";
8450 action: STATE_SET "default" 0.0;
8452 after: "enable_text";
8454 program { name: "enable_text";
8458 set_int(button_state, BUTTON_STATE_ENABLED);
8459 get_state(PART:"elm.text", st, 30, vl);
8460 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8461 set_state(PART:"elm.text", "visible", 0.0);
8464 program { name: "focused";
8465 action: STATE_SET "focused" 0.0;
8466 target: "button_image";
8469 program { name: "unfocused";
8470 action: STATE_SET "default" 0.0;
8471 target: "button_image";
8472 after: "unfocus_text";
8474 program { name: "unfocus_text";
8475 action: STATE_SET "visible" 0.0;
8481 ///////////////////////////////////////////////////////////////////////////////////////
8482 group { name: "elm/button/base/controlbar/horizontal_right";
8484 public button_state = BUTTON_STATE_ENABLED;
8487 part { name: "button_image";
8490 description { state: "default" 0.0;
8497 description { state: "clicked" 0.0;
8498 inherit: "default" 0.0;
8502 part { name: "padding_left_top";
8506 description { state: "default" 0.0;
8508 rel2.relative: 0.0 0.0;
8514 part { name: "padding_right_bottom";
8518 description { state: "default" 0.0;
8520 rel1.relative: 1.0 1.0;
8526 part { name: "icon_rect";
8530 description { state: "default" 0.0;
8535 to: "padding_left_top";
8539 to_x: "padding_left_top";
8540 to_y: "padding_right_bottom";
8545 description { state: "visible" 0.0;
8546 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8550 to: "padding_left_top";
8554 to_x: "padding_left_top";
8555 to_y: "padding_right_bottom";
8560 description { state: "icononly" 0.0;
8561 inherit: "default" 0.0;
8564 part { name: "padding_after_icon";
8568 description { state: "default" 0.0; //when only icon or no icon is there
8574 rel2.to: "icon_rect";
8579 description { state: "visible" 0.0;
8585 rel2.to: "icon_rect";
8590 description { state: "icononly" 0.0;
8591 inherit: "default" 0.0;
8594 part { name: "padding_before_text";
8598 description { state: "default" 0.0; //when only icon or no icon is there
8603 to_y: "padding_left_top";
8608 to_y: "padding_right_bottom";
8615 part { name: "elm.swallow.content";
8618 clip_to: "disabler";
8619 description { state: "default" 0.0;
8624 to: "padding_left_top";
8628 to_x: "padding_left_top";
8629 to_y: "padding_right_bottom";
8633 description { state: "visible" 0.0;
8635 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8636 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8640 to_x: "padding_before_text";
8641 to_y: "padding_left_top";
8645 to_x: "padding_before_text";
8646 to_y: "padding_right_bottom";
8649 aspect_preference: VERTICAL;
8651 description { state: "icononly" 0.0;
8652 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8653 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8656 to: "padding_left_top";
8660 to: "padding_right_bottom";
8663 aspect_preference: VERTICAL;
8666 part { name: "elm.text";
8670 clip_to: "disabler";
8671 description { state: "default" 0.0;
8675 to_x: "padding_after_icon";
8676 to_y: "padding_left_top";
8680 to: "padding_right_bottom";
8683 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8685 font: "SLP:style=Medium";
8692 description { state: "visible" 0.0;
8693 inherit: "default" 0.0;
8696 description { state: "clicked" 0.0;
8697 inherit: "default" 0.0;
8701 description { state: "focused" 0.0;
8702 inherit: "default" 0.0;
8705 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8708 part { name: "over2";
8711 ignore_flags: ON_HOLD;
8712 description { state: "default" 0.0;
8716 part { name: "over3";
8719 description { state: "default" 0.0;
8723 part { name: "disabler";
8725 description { state: "default" 0.0;
8726 color: 255 255 255 255;
8728 description { state: "disabled" 0.0;
8729 color: 255 255 255 127;
8734 program { name: "button_click";
8735 signal: "mouse,down,1";
8737 action: SIGNAL_EMIT "elm,action,press" "";
8738 after: "button_click_anim";
8740 program { name: "button_click_anim";
8741 action: STATE_SET "clicked" 0.0;
8742 target: "button_image";
8743 after: "text_clicked";
8745 program { name: "text_clicked";
8749 get_state(PART:"elm.text", st, 30, vl);
8750 if (!strcmp(st, "visible"))
8751 set_state(PART:"elm.text", "clicked", 0.0);
8754 program { name: "button_unpress";
8755 action: SIGNAL_EMIT "elm,action,unpress" "";
8757 program { name: "button_mouseout_clicked";
8758 signal: "mouse,up,1";
8763 get_state(PART:"elm.swallow.content", st, 30, vl);
8764 if (strcmp(st, "icononly"))
8766 emit("elm,action,default,text,set", "");
8767 set_state(PART:"elm.text", "visible", 0.0);
8769 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8770 set_state(PART:"button_image", "default", 0.0);
8772 after: button_unpress;
8774 program { name: "button_unclick3";
8775 signal: "mouse,clicked,1";
8777 action: SIGNAL_EMIT "elm,action,click" "";
8779 program { name: "text_show";
8780 signal: "elm,state,text,visible";
8785 get_state(PART:"elm.swallow.content", st, 30, vl);
8786 if (!strcmp(st, "icononly"))
8788 set_state(PART:"elm.swallow.content", "visible", 0.0);
8789 set_state(PART:"icon_rect", "visible", 0.0);
8790 set_state(PART:"padding_after_icon", "visible", 0.0);
8792 set_state(PART:"elm.text", "visible", 0.0);
8795 program { name: "text_hide";
8796 signal: "elm,state,text,hidden";
8801 get_state(PART:"elm.swallow.content", st, 30, vl);
8802 if (!strcmp(st, "visible"))
8804 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8805 set_state(PART:"icon_rect", "icononly", 0.0);
8806 set_state(PART:"padding_after_icon", "icononly", 0.0);
8808 set_state(PART:"elm.text", "default", 0.0);
8811 program { name: "icon_show";
8812 signal: "elm,state,icon,visible";
8817 get_state(PART:"elm.text", st, 30, vl);
8818 if (!strcmp(st, "visible"))
8820 set_state(PART:"elm.swallow.content", "visible", 0.0);
8821 set_state(PART:"icon_rect", "visible", 0.0);
8822 set_state(PART:"padding_after_icon", "visible", 0.0);
8826 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8827 set_state(PART:"icon_rect", "icononly", 0.0);
8828 set_state(PART:"padding_after_icon", "icononly", 0.0);
8832 program { name: "icon_hide";
8833 signal: "elm,state,icon,hidden";
8835 action: STATE_SET "default" 0.0;
8836 target: "elm.swallow.content";
8837 target: "icon_rect";
8838 target: "padding_after_icon";
8840 program { name: "disable";
8841 signal: "elm,state,disabled";
8843 action: STATE_SET "disabled" 0.0;
8845 after: "disable_text";
8847 program { name: "disable_text";
8851 set_int(button_state, BUTTON_STATE_DISABLED);
8852 get_state(PART:"elm.text", st, 30, vl);
8853 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8854 set_state(PART:"elm.text", "visible", 0.0);
8857 program { name: "enable";
8858 signal: "elm,state,enabled";
8860 action: STATE_SET "default" 0.0;
8862 after: "enable_text";
8864 program { name: "enable_text";
8868 set_int(button_state, BUTTON_STATE_ENABLED);
8869 get_state(PART:"elm.text", st, 30, vl);
8870 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8871 set_state(PART:"elm.text", "visible", 0.0);
8874 program { name: "focused";
8875 action: STATE_SET "focused" 0.0;
8876 target: "button_image";
8879 program { name: "unfocused";
8880 action: STATE_SET "default" 0.0;
8881 target: "button_image";
8882 after: "unfocus_text";
8884 program { name: "unfocus_text";
8885 action: STATE_SET "visible" 0.0;
8891 ///////////////////////////////////////////////////////////////////////////////////////
8892 group { name: "elm/button/base/tickernoti";
8894 image: "00_button_06_normal.png" COMP;
8895 image: "00_button_06_press.png" COMP;
8896 image: "00_button_06_dim.png" COMP;
8899 public button_state = BUTTON_STATE_ENABLED;
8902 part { name: "button_image";
8904 description { state: "default" 0.0;
8906 normal: "00_button_06_normal.png";
8907 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8911 description { state: "clicked" 0.0;
8912 inherit: "default" 0.0;
8913 image.normal: "00_button_06_press.png";
8915 description { state: "disabled" 0.0;
8916 inherit: "default" 0.0;
8917 image.normal: "00_button_06_dim.png";
8919 description { state: "focused" 0.0;
8920 inherit: "default" 0.0;
8921 image.normal: "00_button_06_press.png";
8924 part { name: "padding_left_top";
8928 description { state: "default" 0.0;
8930 rel2.relative: 0.0 0.0;
8931 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8940 description { state: "default" 0.0;
8941 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8944 description { state: "visible" 0.0;
8945 inherit: "default" 0.0;
8946 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8948 description { state: "icononly" 0.0;
8949 inherit: "default" 0.0;
8950 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8953 part { name: "padding_right_bottom";
8957 description { state: "default" 0.0;
8959 rel1.relative: 1.0 1.0;
8960 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8965 part { name: "icon_rect";
8969 description { state: "default" 0.0;
8975 to: "padding_left_top";
8979 to_x: "padding_left_top";
8980 to_y: "padding_right_bottom";
8984 description { state: "visible" 0.0;
8986 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8987 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8991 to: "padding_left_top";
8995 to_x: "padding_left_top";
8996 to_y: "padding_right_bottom";
9000 description { state: "icononly" 0.0;
9001 inherit: "default" 0.0;
9004 part { name: "padding_after_icon";
9008 description { state: "default" 0.0; //when only icon or no icon is there
9014 rel2.to: "icon_rect";
9019 description { state: "visible" 0.0;
9026 rel2.to: "icon_rect";
9028 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9030 description { state: "icononly" 0.0;
9031 inherit: "default" 0.0;
9034 part { name: "padding_before_text";
9038 description { state: "default" 0.0; //when only icon or no icon is there
9043 to_y: "padding_left_top";
9048 to_y: "padding_right_bottom";
9051 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9055 part { name: "elm.swallow.content";
9059 description { state: "default" 0.0;
9064 to: "padding_left_top";
9068 to_x: "padding_left_top";
9069 to_y: "padding_right_bottom";
9073 description { state: "visible" 0.0;
9075 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9076 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9080 to_x: "padding_before_text";
9081 to_y: "padding_left_top";
9085 to_x: "padding_before_text";
9086 to_y: "padding_right_bottom";
9089 description { state: "icononly" 0.0;
9090 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9091 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9094 part { name: "elm.text";
9099 description { state: "default" 0.0;
9103 to_x: "padding_after_icon";
9104 to_y: "padding_left_top";
9108 to: "padding_right_bottom";
9110 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9112 font: "SLP:style=Medium";
9113 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9118 description { state: "visible" 0.0;
9119 inherit: "default" 0.0;
9122 description { state: "clicked" 0.0;
9123 inherit: "default" 0.0;
9125 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9127 description { state: "disabled" 0.0;
9128 inherit: "default" 0.0;
9131 description { state: "disabled_visible" 0.0;
9132 inherit: "default" 0.0;
9133 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9136 description { state: "focused" 0.0;
9137 inherit: "default" 0.0;
9139 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9142 part { name: "over2";
9145 ignore_flags: ON_HOLD;
9146 description { state: "default" 0.0;
9150 part { name: "over3";
9153 description { state: "default" 0.0;
9157 part { name: "clipper";
9159 description { state: "default" 0.0;
9160 color: 255 255 255 255;
9163 part { name: "disabler";
9165 description { state: "default" 0.0;
9169 description { state: "disabled" 0.0;
9170 inherit: "default" 0.0;
9176 program { name: "button_click";
9177 signal: "mouse,down,1";
9179 action: SIGNAL_EMIT "elm,action,press" "";
9180 after: "button_click_anim";
9182 program { name: "button_click_anim";
9183 action: STATE_SET "clicked" 0.0;
9184 target: "button_image";
9185 after: "text_clicked";
9187 program { name: "text_clicked";
9191 get_state(PART:"elm.text", st, 30, vl);
9192 if (!strcmp(st, "visible"))
9193 set_state(PART:"elm.text", "clicked", 0.0);
9196 program { name: "button_unpress";
9197 action: SIGNAL_EMIT "elm,action,unpress" "";
9199 program { name: "button_mouseout_clicked";
9200 signal: "mouse,up,1";
9205 get_state(PART:"elm.swallow.content", st, 30, vl);
9206 if (strcmp(st, "icononly"))
9208 emit("elm,action,default,text,set", "");
9209 set_state(PART:"elm.text", "visible", 0.0);
9211 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9212 set_state(PART:"button_image", "default", 0.0);
9214 after: button_unpress;
9216 program { name: "button_unclick3";
9217 signal: "mouse,clicked,1";
9219 action: SIGNAL_EMIT "elm,action,click" "";
9221 program { name: "text_show";
9222 signal: "elm,state,text,visible";
9227 get_state(PART:"elm.swallow.content", st, 30, vl);
9228 if (!strcmp(st, "icononly"))
9230 set_state(PART:"elm.swallow.content", "visible", 0.0);
9231 set_state(PART:"icon_rect", "visible", 0.0);
9232 set_state(PART:"padding_after_icon", "visible", 0.0);
9233 set_state(PART:"bg", "visible", 0.0);
9235 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9236 set_state(PART:"elm.text", "visible", 0.0);
9238 set_state(PART:"elm.text", "disabled_visible", 0.0);
9241 program { name: "text_hide";
9242 signal: "elm,state,text,hidden";
9247 get_state(PART:"elm.swallow.content", st, 30, vl);
9248 if (!strcmp(st, "visible"))
9250 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9251 set_state(PART:"icon_rect", "icononly", 0.0);
9252 set_state(PART:"padding_after_icon", "icononly", 0.0);
9253 set_state(PART:"bg", "icononly", 0.0);
9255 set_state(PART:"elm.text", "default", 0.0);
9258 program { name: "icon_show";
9259 signal: "elm,state,icon,visible";
9264 get_state(PART:"elm.text", st, 30, vl);
9265 if (!strcmp(st, "visible"))
9267 set_state(PART:"elm.swallow.content", "visible", 0.0);
9268 set_state(PART:"icon_rect", "visible", 0.0);
9269 set_state(PART:"padding_after_icon", "visible", 0.0);
9270 set_state(PART:"bg", "visible", 0.0);
9274 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9275 set_state(PART:"icon_rect", "icononly", 0.0);
9276 set_state(PART:"padding_after_icon", "icononly", 0.0);
9277 set_state(PART:"bg", "icononly", 0.0);
9281 program { name: "icon_hide";
9282 signal: "elm,state,icon,hidden";
9284 action: STATE_SET "default" 0.0;
9285 target: "elm.swallow.content";
9286 target: "padding_after_icon";
9287 target: "icon_rect";
9290 program { name: "disable";
9291 signal: "elm,state,disabled";
9293 action: STATE_SET "disabled" 0.0;
9294 target: "button_image";
9296 after: "disable_text";
9298 program { name: "disable_text";
9302 get_state(PART:"elm.text", st, 30, vl);
9303 if (!strcmp(st, "visible"))
9304 set_state(PART:"elm.text", "disabled_visible", 0.0);
9306 set_state(PART:"elm.text", "disabled", 0.0);
9307 set_int(button_state, BUTTON_STATE_DISABLED);
9310 program { name: "enable";
9311 signal: "elm,state,enabled";
9313 action: STATE_SET "default" 0.0;
9314 target: "button_image";
9316 after: "enable_text";
9318 program { name: "enable_text";
9322 get_state(PART:"elm.text", st, 30, vl);
9323 if (!strcmp(st, "disabled_visible"))
9324 set_state(PART:"elm.text", "visible", 0.0);
9326 set_state(PART:"elm.text", "default", 0.0);
9327 set_int(button_state, BUTTON_STATE_ENABLED);
9330 program { name: "focused";
9331 //signal: "elm,action,focus";
9333 action: STATE_SET "focused" 0.0;
9334 target: "button_image";
9337 program { name: "unfocused";
9338 //signal: "elm,action,unfocus";
9340 action: STATE_SET "default" 0.0;
9341 target: "button_image";
9342 after: "unfocus_text";
9344 program { name: "unfocus_text";
9345 action: STATE_SET "visible" 0.0;
9351 ///////////////////////////////////////////////////////////////////////////////////////
9352 group { name: "elm/button/base/expandable_number";
9353 alias: "elm/button/base/text_only/expandable_number";
9355 image: "00_button_05_normal.png" COMP;
9356 image: "00_button_05_press.png" COMP;
9357 image: "00_button_05_dim.png" COMP;
9358 image: "00_arrow_expand.png" COMP;
9359 image: "00_arrow_expand_press.png" COMP;
9360 image: "00_arrow_expand_dim.png" COMP;
9363 public button_state = BUTTON_STATE_ENABLED;
9366 part { name: "button_image";
9368 description { state: "default" 0.0;
9369 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9370 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9372 normal: "00_button_05_normal.png";
9373 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9377 description { state: "clicked" 0.0;
9378 inherit: "default" 0.0;
9379 image.normal: "00_button_05_press.png";
9381 description { state: "disabled" 0.0;
9382 inherit: "default" 0.0;
9383 image.normal: "00_button_05_dim.png";
9385 description { state: "focused" 0.0;
9386 inherit: "default" 0.0;
9387 image.normal: "00_button_05_press.png";
9390 part { name: "padding_left_top";
9394 description { state: "default" 0.0;
9396 rel2.relative: 0.0 0.0;
9397 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9402 part { name: "padding_right_bottom";
9406 description { state: "default" 0.0;
9408 rel1.relative: 1.0 1.0;
9409 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9414 part { name: "icon_rect";
9418 description { state: "default" 0.0;
9420 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9421 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9425 to_x: "padding_right_bottom";
9426 to_y: "padding_left_top";
9430 to: "padding_right_bottom";
9436 part { name: "arrow_expand";
9439 description { state: "default" 0.0;
9441 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9442 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9444 rel1.to: "icon_rect";
9445 rel2.to: "icon_rect";
9446 image.normal:"00_arrow_expand.png";
9448 description { state: "clicked" 0.0;
9449 inherit: "default" 0.0;
9450 image.normal:"00_arrow_expand_press.png";
9452 description { state: "disabled" 0.0;
9453 inherit: "default" 0.0;
9454 image.normal:"00_arrow_expand_dim.png";
9457 part { name: "elm.text";
9461 description { state: "default" 0.0;
9462 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9463 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9467 to: "padding_left_top";
9471 to_x:"padding_left_top";
9472 to_y:"padding_right_bottom";
9475 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9477 font: "SLP:style=Medium";
9478 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9484 description { state: "visible" 0.0;
9485 inherit: "default" 0.0;
9487 description { state: "clicked" 0.0;
9488 inherit: "default" 0.0;
9489 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9491 description { state: "disabled" 0.0;
9492 inherit: "default" 0.0;
9495 description { state: "disabled_visible" 0.0;
9496 inherit: "default" 0.0;
9497 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9499 description { state: "focused" 0.0;
9500 inherit: "default" 0.0;
9501 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9504 part { name: "over2";
9507 ignore_flags: ON_HOLD;
9508 description { state: "default" 0.0;
9512 part { name: "over3";
9515 description { state: "default" 0.0;
9519 part { name: "disabler";
9521 description { state: "default" 0.0;
9525 description { state: "disabled" 0.0;
9526 inherit: "default" 0.0;
9532 program { name: "button_click";
9533 signal: "mouse,down,1";
9535 action: SIGNAL_EMIT "elm,action,press" "";
9536 after: "button_click_anim";
9538 program { name: "button_click_anim";
9539 action: STATE_SET "clicked" 0.0;
9540 target: "button_image";
9541 target: "arrow_expand";
9542 after: "text_clicked";
9544 program { name: "text_clicked";
9548 get_state(PART:"elm.text", st, 30, vl);
9549 if (!strcmp(st, "visible"))
9550 set_state(PART:"elm.text", "clicked", 0.0);
9553 program { name: "button_unpress";
9554 action: SIGNAL_EMIT "elm,action,unpress" "";
9556 program { name: "button_mouseout_clicked";
9557 signal: "mouse,up,1";
9560 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9562 set_state(PART:"button_image", "default", 0.0);
9563 set_state(PART:"elm.text", "visible", 0.0);
9564 set_state(PART:"arrow_expand", "default", 0.0);
9567 after: button_unpress;
9569 program { name: "button_unclick3";
9570 signal: "mouse,clicked,1";
9572 action: SIGNAL_EMIT "elm,action,click" "";
9574 program { name: "text_show";
9575 signal: "elm,state,text,visible";
9578 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9579 set_state(PART:"elm.text", "visible", 0.0);
9581 set_state(PART:"elm.text", "disabled_visible", 0.0);
9584 program { name: "text_hide";
9585 signal: "elm,state,text,hidden";
9588 set_state(PART:"elm.text", "default", 0.0);
9591 program { name: "disable";
9592 signal: "elm,state,disabled";
9594 action: STATE_SET "disabled" 0.0;
9595 target: "button_image";
9597 after: "disable_text";
9599 program { name: "disable_text";
9603 get_state(PART:"elm.text", st, 30, vl);
9604 if (!strcmp(st, "visible"))
9605 set_state(PART:"elm.text", "disabled_visible", 0.0);
9607 set_state(PART:"elm.text", "disabled", 0.0);
9608 set_int(button_state, BUTTON_STATE_DISABLED);
9611 program { name: "enable";
9612 signal: "elm,state,enabled";
9614 action: STATE_SET "default" 0.0;
9615 target: "button_image";
9617 after: "enable_text";
9619 program { name: "enable_text";
9623 get_state(PART:"elm.text", st, 30, vl);
9624 if (!strcmp(st, "disabled_visible"))
9625 set_state(PART:"elm.text", "visible", 0.0);
9627 set_state(PART:"elm.text", "default", 0.0);
9628 set_int(button_state, BUTTON_STATE_ENABLED);
9631 program { name: "focused";
9632 //signal: "elm,action,focus";
9634 action: STATE_SET "focused" 0.0;
9635 target: "button_image";
9638 program { name: "unfocused";
9639 //signal: "elm,action,unfocus";
9641 action: STATE_SET "default" 0.0;
9642 target: "button_image";
9643 after: "unfocus_text";
9645 program { name: "unfocus_text";
9646 action: STATE_SET "visible" 0.0;
9652 #undef BUTTON_STATE_ENABLED
9653 #undef BUTTON_STATE_DISABLED