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;
49 normal: "00_button_01_normal_press.png";
52 description { state: "disabled" 0.0;
53 inherit: "default" 0.0;
55 normal: "00_button_01_normal_dim.png";
58 description { state: "focused" 0.0;
59 inherit: "default" 0.0;
61 normal: "00_button_01_normal_press.png";
65 part { name: "padding_left_top";
69 description { state: "default" 0.0;
74 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
83 description { state: "default" 0.0;
84 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
89 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
91 description { state: "icononly" 0.0;
92 inherit: "default" 0.0;
93 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
96 part { name: "padding_right_bottom";
100 description { state: "default" 0.0;
105 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
110 part { name: "icon_rect";
114 description { state: "default" 0.0;
120 to: "padding_left_top";
124 to_x: "padding_left_top";
125 to_y: "padding_right_bottom";
129 description { state: "visible" 0.0;
131 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
132 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
136 to: "padding_left_top";
140 to_x: "padding_left_top";
141 to_y: "padding_right_bottom";
145 description { state: "icononly" 0.0;
146 inherit: "default" 0.0;
149 part { name: "padding_after_icon";
153 description { state: "default" 0.0; //when only icon or no icon is there
166 description { state: "visible" 0.0;
177 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
179 description { state: "icononly" 0.0;
180 inherit: "default" 0.0;
183 part { name: "padding_before_text";
187 description { state: "default" 0.0; //when only icon or no icon is there
192 to_y: "padding_left_top";
197 to_y: "padding_right_bottom";
200 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
204 part { name: "elm.swallow.content";
208 description { state: "default" 0.0;
213 to: "padding_left_top";
217 to_x: "padding_left_top";
218 to_y: "padding_right_bottom";
222 description { state: "visible" 0.0;
224 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
225 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
229 to_x: "padding_before_text";
230 to_y: "padding_left_top";
234 to_x: "padding_before_text";
235 to_y: "padding_right_bottom";
238 description { state: "icononly" 0.0;
239 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
240 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
244 part { name: "elm.text";
249 description { state: "default" 0.0;
253 to_x: "padding_after_icon";
254 to_y: "padding_left_top";
258 to: "padding_right_bottom";
260 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
262 font: "SLP:style=Medium";
263 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
268 description { state: "visible" 0.0;
269 inherit: "default" 0.0;
272 description { state: "clicked" 0.0;
273 inherit: "default" 0.0;
275 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
277 description { state: "disabled" 0.0;
278 inherit: "default" 0.0;
281 description { state: "disabled_visible" 0.0;
282 inherit: "default" 0.0;
283 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
286 description { state: "focused" 0.0;
287 inherit: "default" 0.0;
289 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
292 part { name: "over2";
295 ignore_flags: ON_HOLD;
296 description { state: "default" 0.0;
300 part { name: "over3";
303 description { state: "default" 0.0;
307 part { name: "clipper";
309 description { state: "default" 0.0;
310 color: 255 255 255 255;
313 part { name: "disabler";
315 description { state: "default" 0.0;
319 description { state: "disabled" 0.0;
320 inherit: "default" 0.0;
326 program { name: "button_click";
327 signal: "mouse,down,1";
329 action: SIGNAL_EMIT "elm,action,press" "";
330 after: "button_click_anim";
332 program { name: "button_click_anim";
333 action: STATE_SET "clicked" 0.0;
334 target: "button_image";
335 after: "text_clicked";
337 program { name: "text_clicked";
341 get_state(PART:"elm.text", st, 30, vl);
342 if (!strcmp(st, "visible"))
343 set_state(PART:"elm.text", "clicked", 0.0);
346 program { name: "button_unpress";
347 action: SIGNAL_EMIT "elm,action,unpress" "";
349 program { name: "button_mouseout_clicked";
350 signal: "mouse,up,1";
355 get_state(PART:"elm.swallow.content", st, 30, vl);
356 if (strcmp(st, "icononly"))
358 emit("elm,action,default,text,set", "");
359 set_state(PART:"elm.text", "visible", 0.0);
361 if (get_int(button_state) != BUTTON_STATE_DISABLED)
362 set_state(PART:"button_image", "default", 0.0);
364 after: button_unpress;
366 program { name: "button_unclick3";
367 signal: "mouse,clicked,1";
369 action: SIGNAL_EMIT "elm,action,click" "";
371 program { name: "text_show";
372 signal: "elm,state,text,visible";
377 get_state(PART:"elm.swallow.content", st, 30, vl);
378 if (!strcmp(st, "icononly"))
380 set_state(PART:"elm.swallow.content", "visible", 0.0);
381 set_state(PART:"icon_rect", "visible", 0.0);
382 set_state(PART:"padding_after_icon", "visible", 0.0);
383 set_state(PART:"bg", "visible", 0.0);
385 if (get_int(button_state) != BUTTON_STATE_DISABLED)
386 set_state(PART:"elm.text", "visible", 0.0);
388 set_state(PART:"elm.text", "disabled_visible", 0.0);
391 program { name: "text_hide";
392 signal: "elm,state,text,hidden";
397 get_state(PART:"elm.swallow.content", st, 30, vl);
398 if (!strcmp(st, "visible"))
400 set_state(PART:"elm.swallow.content", "icononly", 0.0);
401 set_state(PART:"icon_rect", "icononly", 0.0);
402 set_state(PART:"padding_after_icon", "icononly", 0.0);
403 set_state(PART:"bg", "icononly", 0.0);
405 set_state(PART:"elm.text", "default", 0.0);
408 program { name: "icon_show";
409 signal: "elm,state,icon,visible";
414 get_state(PART:"elm.text", st, 30, vl);
415 if (!strcmp(st, "visible"))
417 set_state(PART:"elm.swallow.content", "visible", 0.0);
418 set_state(PART:"icon_rect", "visible", 0.0);
419 set_state(PART:"padding_after_icon", "visible", 0.0);
420 set_state(PART:"bg", "visible", 0.0);
424 set_state(PART:"elm.swallow.content", "icononly", 0.0);
425 set_state(PART:"icon_rect", "icononly", 0.0);
426 set_state(PART:"padding_after_icon", "icononly", 0.0);
427 set_state(PART:"bg", "icononly", 0.0);
431 program { name: "icon_hide";
432 signal: "elm,state,icon,hidden";
434 action: STATE_SET "default" 0.0;
435 target: "elm.swallow.content";
436 target: "padding_after_icon";
440 program { name: "disable";
441 signal: "elm,state,disabled";
443 action: STATE_SET "disabled" 0.0;
444 target: "button_image";
446 after: "disable_text";
448 program { name: "disable_text";
452 get_state(PART:"elm.text", st, 30, vl);
453 if (!strcmp(st, "visible"))
454 set_state(PART:"elm.text", "disabled_visible", 0.0);
456 set_state(PART:"elm.text", "disabled", 0.0);
457 set_int(button_state, BUTTON_STATE_DISABLED);
460 program { name: "enable";
461 signal: "elm,state,enabled";
463 action: STATE_SET "default" 0.0;
464 target: "button_image";
466 after: "enable_text";
468 program { name: "enable_text";
472 get_state(PART:"elm.text", st, 30, vl);
473 if (!strcmp(st, "disabled_visible"))
474 set_state(PART:"elm.text", "visible", 0.0);
476 set_state(PART:"elm.text", "default", 0.0);
477 set_int(button_state, BUTTON_STATE_ENABLED);
480 program { name: "focused";
481 //signal: "elm,action,focus";
483 action: STATE_SET "focused" 0.0;
484 target: "button_image";
487 program { name: "unfocused";
488 //signal: "elm,action,unfocus";
490 action: STATE_SET "default" 0.0;
491 target: "button_image";
492 after: "unfocus_text";
494 program { name: "unfocus_text";
495 action: STATE_SET "visible" 0.0;
501 ///////////////////////////////////////////////////////////////////////////////////////
502 group { name: "elm/button/base/style2";
503 alias: "elm/button/base/text_only/style2";
505 image: "00_button_04_normal.png" COMP;
506 image: "00_button_04_press.png" COMP;
507 image: "00_button_04_dim.png" COMP;
510 public button_state = BUTTON_STATE_ENABLED;
513 part { name: "button_image";
515 description { state: "default" 0.0;
517 normal: "00_button_04_normal.png";
518 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
522 description { state: "clicked" 0.0;
523 inherit: "default" 0.0;
525 normal: "00_button_04_press.png";
528 description { state: "disabled" 0.0;
529 inherit: "default" 0.0;
531 normal: "00_button_04_dim.png";
534 description { state: "focused" 0.0;
535 inherit: "default" 0.0;
537 normal: "00_button_04_press.png";
541 part { name: "padding_left_top";
545 description { state: "default" 0.0;
550 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
559 description { state: "default" 0.0;
560 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
563 description { state: "visible" 0.0;
564 inherit: "default" 0.0;
565 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
567 description { state: "icononly" 0.0;
568 inherit: "default" 0.0;
569 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
572 part { name: "padding_right_bottom";
576 description { state: "default" 0.0;
581 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
586 part { name: "icon_rect";
590 description { state: "default" 0.0;
596 to: "padding_left_top";
600 to_x: "padding_left_top";
601 to_y: "padding_right_bottom";
605 description { state: "visible" 0.0;
607 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
608 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
612 to: "padding_left_top";
616 to_x: "padding_left_top";
617 to_y: "padding_right_bottom";
621 description { state: "icononly" 0.0;
622 inherit: "default" 0.0;
625 part { name: "padding_after_icon";
629 description { state: "default" 0.0; //when only icon or no icon is there
642 description { state: "visible" 0.0;
653 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
655 description { state: "icononly" 0.0;
656 inherit: "default" 0.0;
659 part { name: "padding_before_text";
663 description { state: "default" 0.0; //when only icon or no icon is there
668 to_y: "padding_left_top";
673 to_y: "padding_right_bottom";
676 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
680 part { name: "elm.swallow.content";
684 description { state: "default" 0.0;
689 to: "padding_left_top";
693 to_x: "padding_left_top";
694 to_y: "padding_right_bottom";
698 description { state: "visible" 0.0;
700 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
701 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
705 to_x: "padding_before_text";
706 to_y: "padding_left_top";
710 to_x: "padding_before_text";
711 to_y: "padding_right_bottom";
714 description { state: "icononly" 0.0;
715 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
716 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
719 part { name: "elm.text";
724 description { state: "default" 0.0;
728 to_x: "padding_after_icon";
729 to_y: "padding_left_top";
733 to: "padding_right_bottom";
735 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
737 font: "SLP:style=Medium";
738 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
743 description { state: "visible" 0.0;
744 inherit: "default" 0.0;
747 description { state: "clicked" 0.0;
748 inherit: "default" 0.0;
750 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
752 description { state: "disabled" 0.0;
753 inherit: "default" 0.0;
756 description { state: "disabled_visible" 0.0;
757 inherit: "default" 0.0;
758 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
761 description { state: "focused" 0.0;
762 inherit: "default" 0.0;
764 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
767 part { name: "over2";
770 ignore_flags: ON_HOLD;
771 description { state: "default" 0.0;
775 part { name: "over3";
778 description { state: "default" 0.0;
782 part { name: "clipper";
784 description { state: "default" 0.0;
785 color: 255 255 255 255;
788 part { name: "disabler";
790 description { state: "default" 0.0;
794 description { state: "disabled" 0.0;
795 inherit: "default" 0.0;
801 program { name: "button_click";
802 signal: "mouse,down,1";
804 action: SIGNAL_EMIT "elm,action,press" "";
805 after: "button_click_anim";
807 program { name: "button_click_anim";
808 action: STATE_SET "clicked" 0.0;
809 target: "button_image";
810 after: "text_clicked";
812 program { name: "text_clicked";
816 get_state(PART:"elm.text", st, 30, vl);
817 if (!strcmp(st, "visible"))
818 set_state(PART:"elm.text", "clicked", 0.0);
821 program { name: "button_unpress";
822 action: SIGNAL_EMIT "elm,action,unpress" "";
824 program { name: "button_mouseout_clicked";
825 signal: "mouse,up,1";
830 get_state(PART:"elm.swallow.content", st, 30, vl);
831 if (strcmp(st, "icononly"))
833 emit("elm,action,default,text,set", "");
834 set_state(PART:"elm.text", "visible", 0.0);
836 if (get_int(button_state) != BUTTON_STATE_DISABLED)
837 set_state(PART:"button_image", "default", 0.0);
839 after: button_unpress;
841 program { name: "button_unclick3";
842 signal: "mouse,clicked,1";
844 action: SIGNAL_EMIT "elm,action,click" "";
846 program { name: "text_show";
847 signal: "elm,state,text,visible";
852 get_state(PART:"elm.swallow.content", st, 30, vl);
853 if (!strcmp(st, "icononly"))
855 set_state(PART:"elm.swallow.content", "visible", 0.0);
856 set_state(PART:"icon_rect", "visible", 0.0);
857 set_state(PART:"padding_after_icon", "visible", 0.0);
858 set_state(PART:"bg", "visible", 0.0);
860 if (get_int(button_state) != BUTTON_STATE_DISABLED)
861 set_state(PART:"elm.text", "visible", 0.0);
863 set_state(PART:"elm.text", "disabled_visible", 0.0);
866 program { name: "text_hide";
867 signal: "elm,state,text,hidden";
872 get_state(PART:"elm.swallow.content", st, 30, vl);
873 if (!strcmp(st, "visible"))
875 set_state(PART:"elm.swallow.content", "icononly", 0.0);
876 set_state(PART:"icon_rect", "icononly", 0.0);
877 set_state(PART:"padding_after_icon", "icononly", 0.0);
878 set_state(PART:"bg", "icononly", 0.0);
880 set_state(PART:"elm.text", "default", 0.0);
883 program { name: "icon_show";
884 signal: "elm,state,icon,visible";
889 get_state(PART:"elm.text", st, 30, vl);
890 if (!strcmp(st, "visible"))
892 set_state(PART:"elm.swallow.content", "visible", 0.0);
893 set_state(PART:"icon_rect", "visible", 0.0);
894 set_state(PART:"padding_after_icon", "visible", 0.0);
895 set_state(PART:"bg", "visible", 0.0);
899 set_state(PART:"elm.swallow.content", "icononly", 0.0);
900 set_state(PART:"icon_rect", "icononly", 0.0);
901 set_state(PART:"padding_after_icon", "icononly", 0.0);
902 set_state(PART:"bg", "icononly", 0.0);
906 program { name: "icon_hide";
907 signal: "elm,state,icon,hidden";
909 action: STATE_SET "default" 0.0;
910 target: "elm.swallow.content";
911 target: "padding_after_icon";
915 program { name: "disable";
916 signal: "elm,state,disabled";
918 action: STATE_SET "disabled" 0.0;
919 target: "button_image";
921 after: "disable_text";
923 program { name: "disable_text";
927 get_state(PART:"elm.text", st, 30, vl);
928 if (!strcmp(st, "visible"))
929 set_state(PART:"elm.text", "disabled_visible", 0.0);
931 set_state(PART:"elm.text", "disabled", 0.0);
932 set_int(button_state, BUTTON_STATE_DISABLED);
935 program { name: "enable";
936 signal: "elm,state,enabled";
938 action: STATE_SET "default" 0.0;
939 target: "button_image";
941 after: "enable_text";
943 program { name: "enable_text";
947 get_state(PART:"elm.text", st, 30, vl);
948 if (!strcmp(st, "disabled_visible"))
949 set_state(PART:"elm.text", "visible", 0.0);
951 set_state(PART:"elm.text", "default", 0.0);
952 set_int(button_state, BUTTON_STATE_ENABLED);
955 program { name: "focused";
956 //signal: "elm,action,focus";
958 action: STATE_SET "focused" 0.0;
959 target: "button_image";
962 program { name: "unfocused";
963 //signal: "elm,action,unfocus";
965 action: STATE_SET "default" 0.0;
966 target: "button_image";
967 after: "unfocus_text";
969 program { name: "unfocus_text";
970 action: STATE_SET "visible" 0.0;
976 ///////////////////////////////////////////////////////////////////////////////////////
977 group { name: "elm/button/base/sweep";
978 alias: "elm/button/base/text_only/sweep";
979 alias: "elm/button/base/searchbar/default";
981 image: "00_button_sweep.png" COMP;
982 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
983 image: "00_button_sweep_dim.png" COMP;
986 public button_state = BUTTON_STATE_ENABLED;
989 part { name: "button_image";
991 description { state: "default" 0.0;
992 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
994 normal: "00_button_sweep.png";
995 border: BUTTON_SWEEP_BG_BORDER_INC;
999 description { state: "clicked" 0.0;
1000 inherit: "default" 0.0;
1002 normal: "00_button_sweep_press.png";
1005 description { state: "disabled" 0.0;
1006 inherit: "default" 0.0;
1008 normal: "00_button_sweep_dim.png";
1011 description { state: "focused" 0.0;
1012 inherit: "default" 0.0;
1014 normal: "00_button_sweep_press.png";
1018 part { name: "padding_left_top";
1022 description { state: "default" 0.0;
1027 min: BUTTON_SWEEP_PADDING_MIN_INC;
1032 part { name: "padding_right_bottom";
1036 description { state: "default" 0.0;
1041 min: BUTTON_SWEEP_PADDING_MIN_INC;
1046 part { name: "icon_rect";
1050 description { state: "default" 0.0;
1051 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1055 to_x: "elm.swallow.content";
1056 to_y: "padding_left_top";
1060 to_x: "elm.swallow.content";
1061 to_y: "padding_right_bottom";
1067 part { name: "padding_icon_text";
1071 description { state: "default" 0.0; //when only icon or no icon is there
1084 description { state: "icononly" 0.0;
1085 inherit: "default" 0.0;
1087 description { state: "visible" 0.0; //when icon is visible
1097 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1101 part { name: "elm.swallow.content";
1105 description { state: "default" 0.0;
1110 to: "padding_left_top";
1114 to_x: "padding_left_top";
1115 to_y: "padding_right_bottom";
1119 description { state: "visible" 0.0;
1124 to: "padding_left_top";
1128 to_x: "padding_left_top";
1129 to_y: "padding_right_bottom";
1132 aspect_preference: VERTICAL;
1134 description { state: "icononly" 0.0;
1135 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1138 to: "padding_left_top";
1142 to_x: "padding_left_top";
1143 to_y: "padding_right_bottom";
1147 part { name: "elm.text";
1152 description { state: "default" 0.0;
1156 to_x: "padding_icon_text";
1157 to_y: "padding_left_top";
1161 to: "padding_right_bottom";
1163 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1165 font: "SLP:style=Medium";
1166 size: BUTTON_SWEEP_FONT_SIZE_INC;
1170 description { state: "visible" 0.0;
1171 inherit: "default" 0.0;
1173 min: BUTTON_SWEEP_TEXT_MIN_INC;
1175 description { state: "clicked" 0.0;
1176 inherit: "default" 0.0;
1179 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1181 description { state: "disabled" 0.0;
1182 inherit: "default" 0.0;
1185 description { state: "disabled_visible" 0.0;
1186 inherit: "default" 0.0;
1187 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1189 min: BUTTON_SWEEP_TEXT_MIN_INC;
1191 description { state: "focused" 0.0;
1192 inherit: "default" 0.0;
1195 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1198 part { name: "over2";
1201 ignore_flags: ON_HOLD;
1202 description { state: "default" 0.0;
1206 part { name: "over3";
1209 description { state: "default" 0.0;
1213 part { name: "clipper";
1215 description { state: "default" 0.0;
1216 color: 255 255 255 255;
1219 part { name: "disabler";
1221 description { state: "default" 0.0;
1225 description { state: "disabled" 0.0;
1226 inherit: "default" 0.0;
1232 program { name: "button_click";
1233 signal: "mouse,down,1";
1235 action: SIGNAL_EMIT "elm,action,press" "";
1236 after: "button_click_anim";
1238 program { name: "button_click_anim";
1239 action: STATE_SET "clicked" 0.0;
1240 target: "button_image";
1241 after: "text_clicked";
1243 program { name: "text_clicked";
1247 get_state(PART:"elm.text", st, 30, vl);
1248 if (!strcmp(st, "visible"))
1249 set_state(PART:"elm.text", "clicked", 0.0);
1252 program { name: "button_unpress";
1253 action: SIGNAL_EMIT "elm,action,unpress" "";
1255 program { name: "button_mouseout_clicked";
1256 signal: "mouse,up,1";
1261 get_state(PART:"elm.swallow.content", st, 30, vl);
1262 if (strcmp(st, "icononly"))
1264 emit("elm,action,default,text,set", "");
1265 set_state(PART:"elm.text", "visible", 0.0);
1267 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1268 set_state(PART:"button_image", "default", 0.0);
1270 after: button_unpress;
1272 program { name: "button_unclick3";
1273 signal: "mouse,clicked,1";
1275 action: SIGNAL_EMIT "elm,action,click" "";
1277 program { name: "text_show";
1278 signal: "elm,state,text,visible";
1283 get_state(PART:"elm.swallow.content", st, 30, vl);
1284 if (!strcmp(st, "icononly"))
1286 set_state(PART:"elm.swallow.content", "visible", 0.0);
1287 set_state(PART:"padding_icon_text", "visible", 0.0);
1289 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1290 set_state(PART:"elm.text", "visible", 0.0);
1292 set_state(PART:"elm.text", "disabled_visible", 0.0);
1295 program { name: "text_hide";
1296 signal: "elm,state,text,hidden";
1301 get_state(PART:"elm.swallow.content", st, 30, vl);
1302 if (!strcmp(st, "visible"))
1304 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1305 set_state(PART:"padding_icon_text", "icononly", 0.0);
1307 set_state(PART:"elm.text", "default", 0.0);
1310 program { name: "icon_show";
1311 signal: "elm,state,icon,visible";
1316 get_state(PART:"elm.text", st, 30, vl);
1317 if (!strcmp(st, "visible"))
1319 set_state(PART:"elm.swallow.content", "visible", 0.0);
1320 set_state(PART:"padding_icon_text", "visible", 0.0);
1324 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1325 set_state(PART:"padding_icon_text", "icononly", 0.0);
1329 program { name: "icon_hide";
1330 signal: "elm,state,icon,hidden";
1332 action: STATE_SET "default" 0.0;
1333 target: "elm.swallow.content";
1334 target: "padding_icon_text";
1336 program { name: "disable";
1337 signal: "elm,state,disabled";
1339 action: STATE_SET "disabled" 0.0;
1340 target: "button_image";
1342 after: "disable_text";
1344 program { name: "disable_text";
1348 get_state(PART:"elm.text", st, 30, vl);
1349 if (!strcmp(st, "visible"))
1350 set_state(PART:"elm.text", "disabled_visible", 0.0);
1352 set_state(PART:"elm.text", "disabled", 0.0);
1353 set_int(button_state, BUTTON_STATE_DISABLED);
1356 program { name: "enable";
1357 signal: "elm,state,enabled";
1359 action: STATE_SET "default" 0.0;
1360 target: "button_image";
1362 after: "enable_text";
1364 program { name: "enable_text";
1368 get_state(PART:"elm.text", st, 30, vl);
1369 if (!strcmp(st, "disabled_visible"))
1370 set_state(PART:"elm.text", "visible", 0.0);
1372 set_state(PART:"elm.text", "default", 0.0);
1373 set_int(button_state, BUTTON_STATE_ENABLED);
1376 program { name: "focused";
1377 //signal: "elm,action,focus";
1379 action: STATE_SET "focused" 0.0;
1380 target: "button_image";
1383 program { name: "unfocused";
1384 //signal: "elm,action,unfocus";
1386 action: STATE_SET "default" 0.0;
1387 target: "button_image";
1388 after: "unfocus_text";
1390 program { name: "unfocus_text";
1391 action: STATE_SET "visible" 0.0;
1397 ///////////////////////////////////////////////////////////////////////////////////////
1398 group { name: "elm/button/base/sweep/delete";
1400 image: "00_button_sweep.png" COMP;
1401 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1402 image: "00_button_sweep_dim.png" COMP;
1403 image: "00_button_sweep_delete.png" COMP;
1406 public button_state = BUTTON_STATE_ENABLED;
1409 part { name: "button_image";
1411 description { state: "default" 0.0;
1412 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1414 normal: "00_button_sweep_delete.png";
1415 border: BUTTON_SWEEP_BG_BORDER_INC;
1419 description { state: "clicked" 0.0;
1420 inherit: "default" 0.0;
1421 image.normal: "00_button_sweep_press.png";
1423 description { state: "disabled" 0.0;
1424 inherit: "default" 0.0;
1425 image.normal: "00_button_sweep_dim.png";
1427 description { state: "focused" 0.0;
1428 inherit: "default" 0.0;
1429 image.normal: "00_button_sweep_press.png";
1432 part { name: "padding_left_top";
1436 description { state: "default" 0.0;
1438 rel2.relative: 0.0 0.0;
1439 min: BUTTON_SWEEP_PADDING_MIN_INC;
1444 part { name: "padding_right_bottom";
1448 description { state: "default" 0.0;
1450 rel1.relative: 1.0 1.0;
1451 min: BUTTON_SWEEP_PADDING_MIN_INC;
1456 part { name: "icon_rect";
1460 description { state: "default" 0.0;
1461 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1465 to_x: "elm.swallow.content";
1466 to_y: "padding_left_top";
1470 to_x: "elm.swallow.content";
1471 to_y: "padding_right_bottom";
1477 part { name: "padding_icon_text";
1481 description { state: "default" 0.0; //when only icon or no icon is there
1487 rel2.to: "icon_rect";
1492 description { state: "icononly" 0.0;
1493 inherit: "default" 0.0;
1495 description { state: "visible" 0.0; //when icon is visible
1501 rel2.to: "icon_rect";
1503 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1507 part { name: "elm.swallow.content";
1511 description { state: "default" 0.0;
1516 to: "padding_left_top";
1520 to_x: "padding_left_top";
1521 to_y: "padding_right_bottom";
1525 description { state: "visible" 0.0;
1530 to: "padding_left_top";
1534 to_x: "padding_left_top";
1535 to_y: "padding_right_bottom";
1538 aspect_preference: VERTICAL;
1540 description { state: "icononly" 0.0;
1541 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1544 to: "padding_left_top";
1548 to_x: "padding_left_top";
1549 to_y: "padding_right_bottom";
1553 part { name: "elm.text";
1558 description { state: "default" 0.0;
1561 to_x: "padding_icon_text";
1562 to_y: "padding_left_top";
1566 to: "padding_right_bottom";
1568 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1570 font: "SLP:style=Medium";
1571 size: BUTTON_SWEEP_FONT_SIZE_INC;
1577 description { state: "visible" 0.0;
1578 inherit: "default" 0.0;
1580 description { state: "clicked" 0.0;
1581 inherit: "default" 0.0;
1582 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1584 description { state: "disabled" 0.0;
1585 inherit: "default" 0.0;
1588 description { state: "disabled_visible" 0.0;
1589 inherit: "default" 0.0;
1590 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1592 description { state: "focused" 0.0;
1593 inherit: "default" 0.0;
1596 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1599 part { name: "over2";
1602 ignore_flags: ON_HOLD;
1603 description { state: "default" 0.0;
1607 part { name: "over3";
1610 description { state: "default" 0.0;
1614 part { name: "clipper";
1616 description { state: "default" 0.0;
1617 color: 255 255 255 255;
1620 part { name: "disabler";
1622 description { state: "default" 0.0;
1626 description { state: "disabled" 0.0;
1627 inherit: "default" 0.0;
1633 program { name: "button_click";
1634 signal: "mouse,down,1";
1636 action: SIGNAL_EMIT "elm,action,press" "";
1637 after: "button_click_anim";
1639 program { name: "button_click_anim";
1640 action: STATE_SET "clicked" 0.0;
1641 target: "button_image";
1642 after: "text_clicked";
1644 program { name: "text_clicked";
1648 get_state(PART:"elm.text", st, 30, vl);
1649 if (!strcmp(st, "visible"))
1650 set_state(PART:"elm.text", "clicked", 0.0);
1653 program { name: "button_unpress";
1654 action: SIGNAL_EMIT "elm,action,unpress" "";
1656 program { name: "button_mouseout_clicked";
1657 signal: "mouse,up,1";
1662 get_state(PART:"elm.swallow.content", st, 30, vl);
1663 if (strcmp(st, "icononly"))
1665 emit("elm,action,default,text,set", "");
1666 set_state(PART:"elm.text", "visible", 0.0);
1668 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1669 set_state(PART:"button_image", "default", 0.0);
1671 after: button_unpress;
1673 program { name: "button_unclick3";
1674 signal: "mouse,clicked,1";
1676 action: SIGNAL_EMIT "elm,action,click" "";
1678 program { name: "text_show";
1679 signal: "elm,state,text,visible";
1684 get_state(PART:"elm.swallow.content", st, 30, vl);
1685 if (!strcmp(st, "icononly"))
1687 set_state(PART:"elm.swallow.content", "visible", 0.0);
1688 set_state(PART:"padding_icon_text", "visible", 0.0);
1690 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1691 set_state(PART:"elm.text", "visible", 0.0);
1693 set_state(PART:"elm.text", "disabled_visible", 0.0);
1696 program { name: "text_hide";
1697 signal: "elm,state,text,hidden";
1702 get_state(PART:"elm.swallow.content", st, 30, vl);
1703 if (!strcmp(st, "visible"))
1705 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1706 set_state(PART:"padding_icon_text", "icononly", 0.0);
1708 set_state(PART:"elm.text", "default", 0.0);
1711 program { name: "icon_show";
1712 signal: "elm,state,icon,visible";
1717 get_state(PART:"elm.text", st, 30, vl);
1718 if (!strcmp(st, "visible"))
1720 set_state(PART:"elm.swallow.content", "visible", 0.0);
1721 set_state(PART:"padding_icon_text", "visible", 0.0);
1725 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1726 set_state(PART:"padding_icon_text", "icononly", 0.0);
1730 program { name: "icon_hide";
1731 signal: "elm,state,icon,hidden";
1733 action: STATE_SET "default" 0.0;
1734 target: "elm.swallow.content";
1735 target: "padding_icon_text";
1737 program { name: "disable";
1738 signal: "elm,state,disabled";
1740 action: STATE_SET "disabled" 0.0;
1741 target: "button_image";
1743 after: "disable_text";
1745 program { name: "disable_text";
1749 get_state(PART:"elm.text", st, 30, vl);
1750 if (!strcmp(st, "visible"))
1751 set_state(PART:"elm.text", "disabled_visible", 0.0);
1753 set_state(PART:"elm.text", "disabled", 0.0);
1754 set_int(button_state, BUTTON_STATE_DISABLED);
1757 program { name: "enable";
1758 signal: "elm,state,enabled";
1760 action: STATE_SET "default" 0.0;
1761 target: "button_image";
1763 after: "enable_text";
1765 program { name: "enable_text";
1769 get_state(PART:"elm.text", st, 30, vl);
1770 if (!strcmp(st, "disabled_visible"))
1771 set_state(PART:"elm.text", "visible", 0.0);
1773 set_state(PART:"elm.text", "default", 0.0);
1774 set_int(button_state, BUTTON_STATE_ENABLED);
1777 program { name: "focused";
1778 //signal: "elm,action,focus";
1780 action: STATE_SET "focused" 0.0;
1781 target: "button_image";
1784 program { name: "unfocused";
1785 //signal: "elm,action,unfocus";
1787 action: STATE_SET "default" 0.0;
1788 target: "button_image";
1789 after: "unfocus_text";
1791 program { name: "unfocus_text";
1792 action: STATE_SET "visible" 0.0;
1798 ///////////////////////////////////////////////////////////////////////////////////////
1799 group { name: "elm/button/base/popup_button/default";
1800 alias: "elm/button/base/popup_button/menustyle";
1801 alias: "elm/button/base/popup_button/liststyle";
1802 alias: "elm/button/base/popup_button/volumebarstyle";
1803 alias: "elm/button/base/popup_button/customstyle";
1804 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1805 alias: "elm/button/base/popup_button/image_scroll";
1806 alias: "elm/button/base/popup_button/image_slider";
1807 alias: "elm/button/base/popup_button/image_list";
1809 image: "00_button_popup_normal.png" COMP;
1810 image: "00_button_popup_press.png" COMP;
1811 image: "00_button_popup_focus.png" COMP;
1812 image: "00_button_popup_dim.png" COMP;
1815 public button_state = BUTTON_STATE_ENABLED;
1818 part { name: "button_image";
1820 description { state: "default" 0.0;
1821 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1823 normal: "00_button_popup_normal.png";
1824 border: BUTTON_POPUP_BG_BORDER_INC;
1828 description { state: "clicked" 0.0;
1829 inherit: "default" 0.0;
1831 normal: "00_button_popup_press.png";
1834 description { state: "disabled" 0.0;
1835 inherit: "default" 0.0;
1837 normal: "00_button_popup_dim.png";
1840 description { state: "focused" 0.0;
1841 inherit: "default" 0.0;
1843 normal: "00_button_popup_focus.png";
1847 part { name: "padding_left_top";
1851 description { state: "default" 0.0;
1856 min: BUTTON_POPUP_PADDING_MIN_INC;
1861 part { name: "padding_right_bottom";
1864 description { state: "default" 0.0;
1869 min: BUTTON_POPUP_PADDING_MIN_INC;
1874 part { name: "padding_icon_text";
1877 description { state: "default" 0.0; //when only icon or no icon is there
1881 to: "elm.swallow.content";
1884 to: "elm.swallow.content";
1890 description { state: "icononly" 0.0;
1891 inherit: "default" 0.0;
1893 description { state: "visible" 0.0; //when icon is visible
1894 inherit: "default" 0.0;
1895 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1898 part { name: "elm.swallow.content";
1902 description { state: "default" 0.0;
1907 to: "padding_left_top";
1911 to_x: "padding_left_top";
1912 to_y: "padding_right_bottom";
1916 description { state: "visible" 0.0;
1917 inherit: "default" 0.0;
1921 aspect_preference: VERTICAL;
1923 description { state: "icononly" 0.0;
1924 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1927 to: "padding_left_top";
1931 to_x: "padding_left_top";
1932 to_y: "padding_right_bottom";
1936 part { name: "elm.text";
1941 description { state: "default" 0.0;
1945 to_x: "padding_icon_text";
1946 to_y: "padding_left_top";
1950 to: "padding_right_bottom";
1952 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1954 font: "SLP:style=Medium";
1955 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
1959 description { state: "visible" 0.0;
1960 inherit: "default" 0.0;
1962 min: BUTTON_POPUP_TEXT_MIN_INC;
1964 description { state: "clicked" 0.0;
1965 inherit: "default" 0.0;
1968 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1970 description { state: "disabled" 0.0;
1971 inherit: "default" 0.0;
1974 description { state: "disabled_visible" 0.0;
1975 inherit: "default" 0.0;
1976 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1978 min: BUTTON_POPUP_TEXT_MIN_INC;
1980 description { state: "focused" 0.0;
1981 inherit: "default" 0.0;
1984 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1987 part { name: "over2";
1990 ignore_flags: ON_HOLD;
1991 description { state: "default" 0.0;
1995 part { name: "over3";
1998 description { state: "default" 0.0;
2002 part { name: "clipper";
2004 description { state: "default" 0.0;
2005 color: 255 255 255 255;
2008 part { name: "disabler";
2010 description { state: "default" 0.0;
2014 description { state: "disabled" 0.0;
2015 inherit: "default" 0.0;
2021 program { name: "button_click";
2022 signal: "mouse,down,1";
2024 action: SIGNAL_EMIT "elm,action,press" "";
2025 after: "button_click_anim";
2027 program { name: "button_click_anim";
2028 action: STATE_SET "clicked" 0.0;
2029 target: "button_image";
2030 after: "text_clicked";
2032 program { name: "text_clicked";
2036 get_state(PART:"elm.text", st, 30, vl);
2037 if (!strcmp(st, "visible"))
2038 set_state(PART:"elm.text", "clicked", 0.0);
2041 program { name: "button_unpress";
2042 action: SIGNAL_EMIT "elm,action,unpress" "";
2044 program { name: "button_mouseout_clicked";
2045 signal: "mouse,up,1";
2050 get_state(PART:"elm.swallow.content", st, 30, vl);
2051 if (strcmp(st, "icononly"))
2053 emit("elm,action,default,text,set", "");
2054 set_state(PART:"elm.text", "visible", 0.0);
2056 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2057 set_state(PART:"button_image", "default", 0.0);
2059 after: button_unpress;
2061 program { name: "button_unclick3";
2062 signal: "mouse,clicked,1";
2064 action: SIGNAL_EMIT "elm,action,click" "";
2066 program { name: "text_show";
2067 signal: "elm,state,text,visible";
2072 get_state(PART:"elm.swallow.content", st, 30, vl);
2073 if (!strcmp(st, "icononly"))
2075 set_state(PART:"elm.swallow.content", "visible", 0.0);
2076 set_state(PART:"padding_icon_text", "visible", 0.0);
2078 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2079 set_state(PART:"elm.text", "visible", 0.0);
2081 set_state(PART:"elm.text", "disabled_visible", 0.0);
2084 program { name: "text_hide";
2085 signal: "elm,state,text,hidden";
2090 get_state(PART:"elm.swallow.content", st, 30, vl);
2091 if (!strcmp(st, "visible"))
2093 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2094 set_state(PART:"padding_icon_text", "icononly", 0.0);
2096 set_state(PART:"elm.text", "default", 0.0);
2099 program { name: "icon_show";
2100 signal: "elm,state,icon,visible";
2105 get_state(PART:"elm.text", st, 30, vl);
2106 if (!strcmp(st, "visible"))
2108 set_state(PART:"elm.swallow.content", "visible", 0.0);
2109 set_state(PART:"padding_icon_text", "visible", 0.0);
2113 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2114 set_state(PART:"padding_icon_text", "icononly", 0.0);
2118 program { name: "icon_hide";
2119 signal: "elm,state,icon,hidden";
2121 action: STATE_SET "default" 0.0;
2122 target: "elm.swallow.content";
2123 target: "padding_icon_text";
2125 program { name: "disable";
2126 signal: "elm,state,disabled";
2128 action: STATE_SET "disabled" 0.0;
2129 target: "button_image";
2131 after: "disable_text";
2133 program { name: "disable_text";
2137 get_state(PART:"elm.text", st, 30, vl);
2138 if (!strcmp(st, "visible"))
2139 set_state(PART:"elm.text", "disabled_visible", 0.0);
2141 set_state(PART:"elm.text", "disabled", 0.0);
2142 set_int(button_state, BUTTON_STATE_DISABLED);
2145 program { name: "enable";
2146 signal: "elm,state,enabled";
2148 action: STATE_SET "default" 0.0;
2149 target: "button_image";
2151 after: "enable_text";
2153 program { name: "enable_text";
2157 get_state(PART:"elm.text", st, 30, vl);
2158 if (!strcmp(st, "disabled_visible"))
2159 set_state(PART:"elm.text", "visible", 0.0);
2161 set_state(PART:"elm.text", "default", 0.0);
2162 set_int(button_state, BUTTON_STATE_ENABLED);
2165 program { name: "focused";
2166 action: STATE_SET "focused" 0.0;
2167 target: "button_image";
2170 program { name: "unfocused";
2171 action: STATE_SET "default" 0.0;
2172 target: "button_image";
2173 after: "unfocus_text";
2175 program { name: "unfocus_text";
2176 action: STATE_SET "visible" 0.0;
2182 ///////////////////////////////////////////////////////////////////////////////////////
2183 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2184 group { name: "elm/button/base/"style_name; \
2186 image: "00_btn_circle_bg_normal.png" COMP; \
2187 image: "00_btn_circle_bg_press.png" COMP; \
2188 image: image_normal COMP; \
2189 image: image_press COMP; \
2192 part { name: "button_image"; \
2194 description { state: "default" 0.0; \
2195 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2196 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2198 normal: "00_btn_circle_bg_normal.png"; \
2200 color: 255 255 255 255; \
2203 state: "clicked" 0.0; \
2204 inherit: "default" 0.0; \
2206 normal: "00_btn_circle_bg_press.png"; \
2210 state: "disabled" 0.0; \
2211 inherit: "default" 0.0; \
2212 color: 255 255 255 128; \
2215 part { name: "button_center_part"; \
2217 description { state: "default" 0.0; \
2218 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2219 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2221 normal: image_normal; \
2223 color: 255 255 255 255; \
2226 state: "clicked" 0.0; \
2227 inherit: "default" 0.0; \
2229 normal: image_press; \
2233 state: "disabled" 0.0; \
2234 inherit: "default" 0.0; \
2235 color: 255 255 255 128; \
2238 part { name: "over1"; \
2240 ignore_flags: ON_HOLD; \
2241 description { state: "default" 0.0; \
2243 min: min_width min_height; \
2246 part { name: "over2"; \
2248 description { state: "default" 0.0; \
2252 part { name: "disabler"; \
2254 description { state: "default" 0.0; \
2258 description { state: "disabled" 0.0; \
2259 inherit: "default" 0.0; \
2265 program { name: "button_click"; \
2266 signal: "mouse,down,1"; \
2268 action: SIGNAL_EMIT "elm,action,press" ""; \
2269 after: "button_click_anim"; \
2271 program { name: "button_click_anim"; \
2272 action: STATE_SET "clicked" 0.0; \
2273 target: "button_image"; \
2274 target: "button_center_part"; \
2276 program { name: "button_unclick"; \
2277 signal: "mouse,up,1"; \
2279 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2280 after: "button_unclick_anim"; \
2282 program { name: "button_unclick_anim"; \
2283 action: STATE_SET "default" 0.0; \
2284 target: "button_image"; \
2285 target: "button_center_part"; \
2287 program { name: "button_unclick2"; \
2288 signal: "mouse,clicked,1"; \
2290 action: SIGNAL_EMIT "elm,action,click" ""; \
2292 program { name: "disable"; \
2293 signal: "elm,state,disabled"; \
2295 action: STATE_SET "disabled" 0.0; \
2296 target: "disabler"; \
2297 target: "button_image"; \
2298 target: "button_center_part"; \
2300 program { name: "enable"; \
2301 signal: "elm,state,enabled"; \
2303 action: STATE_SET "default" 0.0; \
2304 target: "disabler"; \
2305 target: "button_image"; \
2306 target: "button_center_part"; \
2311 ///////////////////////////////////////////////////////////////////////////////////////
2312 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal.png", 40, 40)
2314 ///////////////////////////////////////////////////////////////////////////////////////
2315 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
2317 ///////////////////////////////////////////////////////////////////////////////////////
2318 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
2320 ///////////////////////////////////////////////////////////////////////////////////////
2321 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
2323 ///////////////////////////////////////////////////////////////////////////////////////
2324 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
2326 ///////////////////////////////////////////////////////////////////////////////////////
2327 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
2329 ///////////////////////////////////////////////////////////////////////////////////////
2330 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
2332 ///////////////////////////////////////////////////////////////////////////////////////
2333 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
2335 ///////////////////////////////////////////////////////////////////////////////////////
2336 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
2338 ///////////////////////////////////////////////////////////////////////////////////////
2339 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
2341 ///////////////////////////////////////////////////////////////////////////////////////
2342 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
2344 ///////////////////////////////////////////////////////////////////////////////////////
2345 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
2347 ///////////////////////////////////////////////////////////////////////////////////////
2348 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
2350 ///////////////////////////////////////////////////////////////////////////////////////
2351 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
2353 ///////////////////////////////////////////////////////////////////////////////////////
2354 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
2356 ///////////////////////////////////////////////////////////////////////////////////////
2357 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
2359 ///////////////////////////////////////////////////////////////////////////////////////
2360 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
2362 ///////////////////////////////////////////////////////////////////////////////////////
2363 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
2365 ///////////////////////////////////////////////////////////////////////////////////////
2366 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
2368 ///////////////////////////////////////////////////////////////////////////////////////
2369 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
2371 ///////////////////////////////////////////////////////////////////////////////////////
2372 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
2374 ///////////////////////////////////////////////////////////////////////////////////////
2375 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
2376 ///////////////////////////////////////////////////////////////////////////////////////
2378 group { name: "elm/button/base/circle/empty";
2380 image: "00_btn_circle_bg_empty_normal.png" COMP;
2381 image: "00_btn_circle_bg_empty_press.png" COMP;
2384 part { name: "button_image";
2386 description { state: "default" 0.0;
2387 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2388 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2391 normal: "00_btn_circle_bg_empty_normal.png";
2393 color: 255 255 255 255;
2395 description { state: "clicked" 0.0;
2396 inherit: "default" 0.0;
2398 normal: "00_btn_circle_bg_empty_press.png";
2401 description { state: "disabled" 0.0;
2402 inherit: "default" 0.0;
2403 color: 255 255 255 128;
2406 part { name: "elm.swallow.content";
2409 description { state: "default" 0.0;
2410 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2411 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2414 color: 255 255 255 255;
2417 state: "disabled" 0.0;
2418 inherit: "default" 0.0;
2419 color: 255 255 255 128;
2422 part { name: "over1";
2424 ignore_flags: ON_HOLD;
2425 description { state: "default" 0.0;
2429 part { name: "over2";
2431 description { state: "default" 0.0;
2435 part { name: "disabler";
2437 description { state: "default" 0.0;
2441 description { state: "disabled" 0.0;
2442 inherit: "default" 0.0;
2448 program { name: "button_click";
2449 signal: "mouse,down,1";
2451 action: SIGNAL_EMIT "elm,action,press" "";
2452 after: "button_click_anim";
2454 program { name: "button_click_anim";
2455 action: STATE_SET "clicked" 0.0;
2456 target: "button_image";
2458 program { name: "button_unclick";
2459 signal: "mouse,up,1";
2461 action: SIGNAL_EMIT "elm,action,unpress" "";
2462 after: "button_unclick_anim";
2464 program { name: "button_unclick_anim";
2465 action: STATE_SET "default" 0.0;
2466 target: "button_image";
2468 program { name: "button_unclick2";
2469 signal: "mouse,clicked,1";
2471 action: SIGNAL_EMIT "elm,action,click" "";
2473 program { name: "disable";
2474 signal: "elm,state,disabled";
2476 action: STATE_SET "disabled" 0.0;
2478 target: "button_image";
2480 program { name: "enable";
2481 signal: "elm,state,enabled";
2483 action: STATE_SET "default" 0.0;
2485 target: "button_image";
2487 program { name: "icon_show";
2488 signal: "elm,state,icon,visible";
2490 action: STATE_SET "visible" 0.0;
2491 target: "elm.swallow.content";
2493 program { name: "icon_hide";
2494 signal: "elm,state,icon,hidden";
2496 action: STATE_SET "default" 0.0;
2497 target: "elm.swallow.content";
2502 ///////////////////////////////////////////////////////////////////////////////////////
2503 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2504 group { name: "elm/button/base/contacts/"style_name; \
2505 alias: "elm/button/base/"style_name; \
2507 image: image_normal COMP; \
2508 image: image_press COMP; \
2509 image: "00_button_edit.png" COMP; \
2510 image: "00_button_edit_press.png" COMP; \
2511 image: "00_button_edit_dim.png" COMP; \
2514 part { name: "button_image"; \
2516 description { state: "default" 0.0; \
2517 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2518 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2520 normal: "00_button_edit.png"; \
2521 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2526 state: "clicked" 0.0; \
2527 inherit: "default" 0.0; \
2529 normal: "00_button_edit_press.png"; \
2533 state: "disabled" 0.0; \
2534 inherit: "default" 0.0; \
2536 normal: "00_button_edit_dim.png"; \
2540 part { name: "button_center_part"; \
2543 description { state: "default" 0.0; \
2544 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2545 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2547 normal: image_normal; \
2548 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2553 state: "clicked" 0.0; \
2554 inherit: "default" 0.0; \
2556 normal: image_press; \
2560 part { name: "over1"; \
2563 ignore_flags: ON_HOLD; \
2564 description { state: "default" 0.0; \
2566 min: min_width min_height; \
2569 part { name: "over2"; \
2571 description { state: "default" 0.0; \
2575 part { name: "disabler"; \
2577 description { state: "default" 0.0; \
2581 description { state: "disabled" 0.0; \
2582 inherit: "default" 0.0; \
2588 program { name: "button_click"; \
2589 signal: "mouse,down,1"; \
2591 action: SIGNAL_EMIT "elm,action,press" ""; \
2592 after: "button_click_anim"; \
2594 program { name: "button_click_anim"; \
2595 action: STATE_SET "clicked" 0.0; \
2596 target: "button_image"; \
2597 target: "button_center_part"; \
2599 program { name: "button_unclick"; \
2600 signal: "mouse,up,1"; \
2602 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2603 after: "button_unclick_anim"; \
2605 program { name: "button_unclick_anim"; \
2606 action: STATE_SET "default" 0.0; \
2607 target: "button_image"; \
2608 target: "button_center_part"; \
2610 program { name: "button_unclick2"; \
2611 signal: "mouse,clicked,1"; \
2613 action: SIGNAL_EMIT "elm,action,click" ""; \
2615 program { name: "disable"; \
2616 signal: "elm,state,disabled"; \
2618 action: STATE_SET "disabled" 0.0; \
2619 target: "disabler"; \
2620 target: "button_image"; \
2622 program { name: "enable"; \
2623 signal: "elm,state,enabled"; \
2625 action: STATE_SET "default" 0.0; \
2626 target: "disabler"; \
2627 target: "button_image"; \
2631 ///////////////////////////////////////////////////////////////////////////////////////
2632 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 46, 46)
2634 ///////////////////////////////////////////////////////////////////////////////////////
2635 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 60, 75)
2637 ///////////////////////////////////////////////////////////////////////////////////////
2638 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 46, 46)
2640 ///////////////////////////////////////////////////////////////////////////////////////
2641 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 60, 75)
2643 ///////////////////////////////////////////////////////////////////////////////////////
2644 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 46, 46)
2646 ///////////////////////////////////////////////////////////////////////////////////////
2647 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 60, 75)
2649 ///////////////////////////////////////////////////////////////////////////////////////
2650 group { name: "elm/button/base/contacts/delete";
2652 image: "00_button_edit.png" COMP;
2653 image: "00_button_edit_press.png" COMP;
2654 image: "00_button_edit_dim.png" COMP;
2657 public button_state = BUTTON_STATE_ENABLED;
2660 part { name: "button_image";
2662 description { state: "default" 0.0;
2663 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
2665 normal: "00_button_edit.png";
2666 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
2670 description { state: "clicked" 0.0;
2671 inherit: "default" 0.0;
2673 normal: "00_button_edit_press.png";
2676 description { state: "disabled" 0.0;
2677 inherit: "default" 0.0;
2679 normal: "00_button_edit_dim.png";
2682 description { state: "focused" 0.0;
2683 inherit: "default" 0.0;
2685 normal: "00_button_edit_press.png";
2689 part { name: "padding_left_top";
2693 description { state: "default" 0.0;
2698 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
2703 part { name: "padding_right_bottom";
2707 description { state: "default" 0.0;
2712 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
2717 part { name: "padding_icon_text";
2721 description { state: "default" 0.0; //when only icon or no icon is there
2725 to: "elm.swallow.content";
2728 to: "elm.swallow.content";
2734 description { state: "icononly" 0.0;
2735 inherit: "default" 0.0;
2737 description { state: "visible" 0.0; //when icon is visible
2738 inherit: "default" 0.0;
2739 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2742 part { name: "elm.swallow.content";
2746 description { state: "default" 0.0;
2751 to: "padding_left_top";
2755 to_x: "padding_left_top";
2756 to_y: "padding_right_bottom";
2760 description { state: "visible" 0.0;
2765 to: "padding_left_top";
2769 to_x: "padding_left_top";
2770 to_y: "padding_right_bottom";
2773 aspect_preference: VERTICAL;
2775 description { state: "icononly" 0.0;
2776 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
2779 to: "padding_left_top";
2783 to: "padding_right_bottom";
2786 aspect_preference: VERTICAL;
2789 part { name: "elm.text";
2794 description { state: "default" 0.0;
2797 to_x: "padding_icon_text";
2798 to_y: "padding_left_top";
2802 to: "padding_right_bottom";
2804 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
2806 font: "SLP:style=Medium";
2807 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
2813 description { state: "visible" 0.0;
2814 inherit: "default" 0.0;
2816 description { state: "clicked" 0.0;
2817 inherit: "default" 0.0;
2818 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2820 description { state: "disabled" 0.0;
2821 inherit: "default" 0.0;
2824 description { state: "disabled_visible" 0.0;
2825 inherit: "default" 0.0;
2826 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
2828 description { state: "focused" 0.0;
2829 inherit: "default" 0.0;
2831 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2834 part { name: "over2";
2837 ignore_flags: ON_HOLD;
2838 description { state: "default" 0.0;
2842 part { name: "over3";
2845 description { state: "default" 0.0;
2849 part { name: "clipper";
2851 description { state: "default" 0.0;
2852 color: 255 255 255 255;
2855 part { name: "disabler";
2857 description { state: "default" 0.0;
2861 description { state: "disabled" 0.0;
2862 inherit: "default" 0.0;
2868 program { name: "button_click";
2869 signal: "mouse,down,1";
2871 action: SIGNAL_EMIT "elm,action,press" "";
2872 after: "button_click_anim";
2874 program { name: "button_click_anim";
2875 action: STATE_SET "clicked" 0.0;
2876 target: "button_image";
2877 after: "text_clicked";
2879 program { name: "text_clicked";
2883 get_state(PART:"elm.text", st, 30, vl);
2884 if (!strcmp(st, "visible"))
2885 set_state(PART:"elm.text", "clicked", 0.0);
2888 program { name: "button_unpress";
2889 action: SIGNAL_EMIT "elm,action,unpress" "";
2891 program { name: "button_mouseout_clicked";
2892 signal: "mouse,up,1";
2897 get_state(PART:"elm.swallow.content", st, 30, vl);
2898 if (strcmp(st, "icononly"))
2900 emit("elm,action,default,text,set", "");
2901 set_state(PART:"elm.text", "visible", 0.0);
2903 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2904 set_state(PART:"button_image", "default", 0.0);
2906 after: button_unpress;
2908 program { name: "button_unclick3";
2909 signal: "mouse,clicked,1";
2911 action: SIGNAL_EMIT "elm,action,click" "";
2913 program { name: "text_show";
2914 signal: "elm,state,text,visible";
2919 get_state(PART:"elm.swallow.content", st, 30, vl);
2920 if (!strcmp(st, "icononly"))
2922 set_state(PART:"elm.swallow.content", "visible", 0.0);
2923 set_state(PART:"padding_icon_text", "visible", 0.0);
2925 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2926 set_state(PART:"elm.text", "visible", 0.0);
2928 set_state(PART:"elm.text", "disabled_visible", 0.0);
2931 program { name: "text_hide";
2932 signal: "elm,state,text,hidden";
2937 get_state(PART:"elm.swallow.content", st, 30, vl);
2938 if (!strcmp(st, "visible"))
2940 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2941 set_state(PART:"padding_icon_text", "icononly", 0.0);
2943 set_state(PART:"elm.text", "default", 0.0);
2946 program { name: "icon_show";
2947 signal: "elm,state,icon,visible";
2952 get_state(PART:"elm.text", st, 30, vl);
2953 if (!strcmp(st, "visible"))
2955 set_state(PART:"elm.swallow.content", "visible", 0.0);
2956 set_state(PART:"padding_icon_text", "visible", 0.0);
2960 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2961 set_state(PART:"padding_icon_text", "icononly", 0.0);
2965 program { name: "icon_hide";
2966 signal: "elm,state,icon,hidden";
2968 action: STATE_SET "default" 0.0;
2969 target: "elm.swallow.content";
2970 target: "padding_icon_text";
2972 program { name: "disable";
2973 signal: "elm,state,disabled";
2975 action: STATE_SET "disabled" 0.0;
2976 target: "button_image";
2978 after: "disable_text";
2980 program { name: "disable_text";
2984 get_state(PART:"elm.text", st, 30, vl);
2985 if (!strcmp(st, "visible"))
2986 set_state(PART:"elm.text", "disabled_visible", 0.0);
2988 set_state(PART:"elm.text", "disabled", 0.0);
2989 set_int(button_state, BUTTON_STATE_DISABLED);
2992 program { name: "enable";
2993 signal: "elm,state,enabled";
2995 action: STATE_SET "default" 0.0;
2996 target: "button_image";
2998 after: "enable_text";
3000 program { name: "enable_text";
3004 get_state(PART:"elm.text", st, 30, vl);
3005 if (!strcmp(st, "disabled_visible"))
3006 set_state(PART:"elm.text", "visible", 0.0);
3008 set_state(PART:"elm.text", "default", 0.0);
3009 set_int(button_state, BUTTON_STATE_ENABLED);
3012 program { name: "focused";
3013 //signal: "elm,action,focus";
3015 action: STATE_SET "focused" 0.0;
3016 target: "button_image";
3019 program { name: "unfocused";
3020 //signal: "elm,action,unfocus";
3022 action: STATE_SET "default" 0.0;
3023 target: "button_image";
3024 after: "unfocus_text";
3026 program { name: "unfocus_text";
3027 action: STATE_SET "visible" 0.0;
3033 ///////////////////////////////////////////////////////////////////////////////////////
3034 group { name: "elm/button/base/multiline";
3035 alias: "elm/button/base/text_only/multiline";
3037 image: "00_button_04_normal.png" COMP;
3038 image: "00_button_04_press.png" COMP;
3039 image: "00_button_04_dim.png" COMP;
3042 public button_state = BUTTON_STATE_ENABLED;
3045 style { name: "btn_multiline_style";
3046 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
3053 part { name: "button_image";
3055 description { state: "default" 0.0;
3058 normal: "00_button_04_normal.png";
3063 description { state: "clicked" 0.0;
3064 inherit: "default" 0.0;
3066 normal: "00_button_04_press.png";
3069 description { state: "disabled" 0.0;
3070 inherit: "default" 0.0;
3072 normal: "00_button_04_dim.png";
3075 description { state: "focused" 0.0;
3076 inherit: "default" 0.0;
3078 normal: "00_button_04_press.png";
3082 part { name: "padding_left_top";
3086 description { state: "default" 0.0;
3096 part { name: "padding_right_bottom";
3100 description { state: "default" 0.0;
3110 part { name: "icon_rect";
3114 description { state: "default" 0.0;
3120 to_x: "elm.swallow.content";
3121 to_y: "padding_left_top";
3125 to_x: "elm.swallow.content";
3126 to_y: "padding_right_bottom";
3132 part { name: "padding_icon_text";
3136 description { state: "default" 0.0; //when only icon or no icon is there
3149 description { state: "icononly" 0.0;
3150 inherit: "default" 0.0;
3152 description { state: "visible" 0.0; //when icon is visible
3166 part { name: "elm.swallow.content";
3170 description { state: "default" 0.0;
3175 to: "padding_left_top";
3179 to_x: "padding_left_top";
3180 to_y: "padding_right_bottom";
3184 description { state: "visible" 0.0;
3189 to: "padding_left_top";
3193 to_x: "padding_left_top";
3194 to_y: "padding_right_bottom";
3197 aspect_preference: VERTICAL;
3199 description { state: "icononly" 0.0;
3203 to: "padding_left_top";
3207 to: "padding_right_bottom";
3210 aspect_preference: VERTICAL;
3213 part { name: "elm.text";
3218 description { state: "default" 0.0;
3222 to_x: "padding_icon_text";
3223 to_y: "padding_left_top";
3227 to: "padding_right_bottom";
3229 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3231 style: "btn_multiline_style";
3236 description { state: "visible" 0.0;
3237 inherit: "default" 0.0;
3241 description { state: "clicked" 0.0;
3242 inherit: "default" 0.0;
3245 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3247 description { state: "disabled" 0.0;
3248 inherit: "default" 0.0;
3251 description { state: "disabled_visible" 0.0;
3252 inherit: "default" 0.0;
3253 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
3257 description { state: "focused" 0.0;
3258 inherit: "default" 0.0;
3261 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3264 part { name: "over2";
3267 ignore_flags: ON_HOLD;
3268 description { state: "default" 0.0;
3272 part { name: "over3";
3275 description { state: "default" 0.0;
3279 part { name: "clipper";
3281 description { state: "default" 0.0;
3282 color: 255 255 255 255;
3285 part { name: "disabler";
3287 description { state: "default" 0.0;
3291 description { state: "disabled" 0.0;
3292 inherit: "default" 0.0;
3298 program { name: "button_click";
3299 signal: "mouse,down,1";
3301 action: SIGNAL_EMIT "elm,action,press" "";
3302 after: "button_click_anim";
3304 program { name: "button_click_anim";
3305 action: STATE_SET "clicked" 0.0;
3306 target: "button_image";
3307 after: "text_clicked";
3309 program { name: "text_clicked";
3313 get_state(PART:"elm.text", st, 30, vl);
3314 if (!strcmp(st, "visible"))
3315 set_state(PART:"elm.text", "clicked", 0.0);
3318 program { name: "button_unpress";
3319 action: SIGNAL_EMIT "elm,action,unpress" "";
3321 program { name: "button_mouseout_clicked";
3322 signal: "mouse,up,1";
3327 get_state(PART:"elm.swallow.content", st, 30, vl);
3328 if (strcmp(st, "icononly"))
3330 emit("elm,action,default,text,set", "");
3331 set_state(PART:"elm.text", "visible", 0.0);
3333 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3334 set_state(PART:"button_image", "default", 0.0);
3336 after: button_unpress;
3338 program { name: "button_unclick3";
3339 signal: "mouse,clicked,1";
3341 action: SIGNAL_EMIT "elm,action,click" "";
3343 program { name: "text_show";
3344 signal: "elm,state,text,visible";
3349 get_state(PART:"elm.swallow.content", st, 30, vl);
3350 if (!strcmp(st, "icononly"))
3352 set_state(PART:"elm.swallow.content", "visible", 0.0);
3353 set_state(PART:"padding_icon_text", "visible", 0.0);
3355 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3356 set_state(PART:"elm.text", "visible", 0.0);
3358 set_state(PART:"elm.text", "disabled_visible", 0.0);
3361 program { name: "text_hide";
3362 signal: "elm,state,text,hidden";
3367 get_state(PART:"elm.swallow.content", st, 30, vl);
3368 if (!strcmp(st, "visible"))
3370 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3371 set_state(PART:"padding_icon_text", "icononly", 0.0);
3373 set_state(PART:"elm.text", "default", 0.0);
3376 program { name: "icon_show";
3377 signal: "elm,state,icon,visible";
3382 get_state(PART:"elm.text", st, 30, vl);
3383 if (!strcmp(st, "visible"))
3385 set_state(PART:"elm.swallow.content", "visible", 0.0);
3386 set_state(PART:"padding_icon_text", "visible", 0.0);
3390 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3391 set_state(PART:"padding_icon_text", "icononly", 0.0);
3395 program { name: "icon_hide";
3396 signal: "elm,state,icon,hidden";
3398 action: STATE_SET "default" 0.0;
3399 target: "elm.swallow.content";
3400 target: "padding_icon_text";
3402 program { name: "disable";
3403 signal: "elm,state,disabled";
3405 action: STATE_SET "disabled" 0.0;
3406 target: "button_image";
3408 after: "disable_text";
3410 program { name: "disable_text";
3414 get_state(PART:"elm.text", st, 30, vl);
3415 if (!strcmp(st, "visible"))
3416 set_state(PART:"elm.text", "disabled_visible", 0.0);
3418 set_state(PART:"elm.text", "disabled", 0.0);
3419 set_int(button_state, BUTTON_STATE_DISABLED);
3422 program { name: "enable";
3423 signal: "elm,state,enabled";
3425 action: STATE_SET "default" 0.0;
3426 target: "button_image";
3428 after: "enable_text";
3430 program { name: "enable_text";
3434 get_state(PART:"elm.text", st, 30, vl);
3435 if (!strcmp(st, "disabled_visible"))
3436 set_state(PART:"elm.text", "visible", 0.0);
3438 set_state(PART:"elm.text", "default", 0.0);
3439 set_int(button_state, BUTTON_STATE_ENABLED);
3442 program { name: "focused";
3443 //signal: "elm,action,focus";
3445 action: STATE_SET "focused" 0.0;
3446 target: "button_image";
3449 program { name: "unfocused";
3450 //signal: "elm,action,unfocus";
3452 action: STATE_SET "default" 0.0;
3453 target: "button_image";
3454 after: "unfocus_text";
3456 program { name: "unfocus_text";
3457 action: STATE_SET "visible" 0.0;
3463 ///////////////////////////////////////////////////////////////////////////////////////
3464 group { name: "elm/button/base/default";
3466 image: "00_button_01_normal.png" COMP;
3467 image: "00_button_01_normal_press.png" COMP;
3468 image: "00_button_01_normal_dim.png" COMP;
3471 public button_state = BUTTON_STATE_ENABLED;
3474 part { name: "button_image";
3476 description { state: "default" 0.0;
3477 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3479 normal: "00_button_01_normal.png";
3480 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3484 description { state: "clicked" 0.0;
3485 inherit: "default" 0.0;
3487 normal: "00_button_01_normal_press.png";
3490 description { state: "disabled" 0.0;
3491 inherit: "default" 0.0;
3493 normal: "00_button_01_normal_dim.png";
3496 description { state: "focused" 0.0;
3497 inherit: "default" 0.0;
3499 normal: "00_button_01_normal_press.png";
3503 part { name: "padding_left_top";
3507 description { state: "default" 0.0;
3512 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3517 part { name: "padding_right_bottom";
3521 description { state: "default" 0.0;
3526 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3531 part { name: "padding_icon_text";
3535 description { state: "default" 0.0; //when only icon or no icon is there
3540 to: "elm.swallow.content";
3543 to: "elm.swallow.content";
3548 description { state: "icononly" 0.0;
3549 inherit: "default" 0.0;
3551 description { state: "visible" 0.0; //when icon is visible
3552 inherit: "default" 0.0;
3553 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3556 part { name: "elm.swallow.content";
3560 description { state: "default" 0.0;
3565 to: "padding_left_top";
3569 to_x: "padding_left_top";
3570 to_y: "padding_right_bottom";
3574 description { state: "visible" 0.0;
3579 to: "padding_left_top";
3583 to_x: "padding_left_top";
3584 to_y: "padding_right_bottom";
3587 aspect_preference: VERTICAL;
3589 description { state: "icononly" 0.0;
3590 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3593 to_x: "padding_left_top";
3597 to_x: "padding_right_bottom";
3600 aspect_preference: VERTICAL;
3603 part { name: "elm.text";
3608 description { state: "default" 0.0;
3613 to_x: "padding_icon_text";
3614 to_y: "padding_left_top";
3618 to: "padding_right_bottom";
3620 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3622 font: "SLP:style=Medium";
3623 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3627 description { state: "visible" 0.0;
3628 inherit: "default" 0.0;
3630 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3632 description { state: "clicked" 0.0;
3633 inherit: "default" 0.0;
3635 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3636 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3638 description { state: "disabled" 0.0;
3639 inherit: "default" 0.0;
3641 description { state: "disabled_visible" 0.0;
3642 inherit: "default" 0.0;
3643 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3645 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3647 description { state: "focused" 0.0;
3648 inherit: "default" 0.0;
3651 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3654 part { name: "over2";
3657 ignore_flags: ON_HOLD;
3658 description { state: "default" 0.0;
3662 part { name: "over3";
3665 description { state: "default" 0.0;
3669 part { name: "clipper";
3671 description { state: "default" 0.0;
3672 color: 255 255 255 255;
3675 part { name: "disabler";
3677 description { state: "default" 0.0;
3681 description { state: "disabled" 0.0;
3682 inherit: "default" 0.0;
3688 program { name: "button_click";
3689 signal: "mouse,down,1";
3691 action: SIGNAL_EMIT "elm,action,press" "";
3692 after: "button_click_anim";
3694 program { name: "button_click_anim";
3695 action: STATE_SET "clicked" 0.0;
3696 target: "button_image";
3697 after: "text_clicked";
3699 program { name: "text_clicked";
3703 get_state(PART:"elm.text", st, 30, vl);
3704 if (!strcmp(st, "visible"))
3705 set_state(PART:"elm.text", "clicked", 0.0);
3708 program { name: "button_unpress";
3709 action: SIGNAL_EMIT "elm,action,unpress" "";
3711 program { name: "button_mouseout_clicked";
3712 signal: "mouse,up,1";
3717 get_state(PART:"elm.swallow.content", st, 30, vl);
3718 if (strcmp(st, "icononly"))
3720 emit("elm,action,default,text,set", "");
3721 set_state(PART:"elm.text", "visible", 0.0);
3723 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3724 set_state(PART:"button_image", "default", 0.0);
3726 after: button_unpress;
3728 program { name: "button_unclick3";
3729 signal: "mouse,clicked,1";
3731 action: SIGNAL_EMIT "elm,action,click" "";
3733 program { name: "text_show";
3734 signal: "elm,state,text,visible";
3739 get_state(PART:"elm.swallow.content", st, 30, vl);
3740 if (!strcmp(st, "icononly"))
3742 set_state(PART:"elm.swallow.content", "visible", 0.0);
3743 set_state(PART:"padding_icon_text", "visible", 0.0);
3745 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3746 set_state(PART:"elm.text", "visible", 0.0);
3748 set_state(PART:"elm.text", "disabled_visible", 0.0);
3751 program { name: "text_hide";
3752 signal: "elm,state,text,hidden";
3757 get_state(PART:"elm.swallow.content", st, 30, vl);
3758 if (!strcmp(st, "visible"))
3760 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3761 set_state(PART:"padding_icon_text", "icononly", 0.0);
3763 set_state(PART:"elm.text", "default", 0.0);
3766 program { name: "icon_show";
3767 signal: "elm,state,icon,visible";
3772 get_state(PART:"elm.text", st, 30, vl);
3773 if (!strcmp(st, "visible"))
3775 set_state(PART:"elm.swallow.content", "visible", 0.0);
3776 set_state(PART:"padding_icon_text", "visible", 0.0);
3780 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3781 set_state(PART:"padding_icon_text", "icononly", 0.0);
3785 program { name: "icon_hide";
3786 signal: "elm,state,icon,hidden";
3788 action: STATE_SET "default" 0.0;
3789 target: "elm.swallow.content";
3790 target: "padding_icon_text";
3792 program { name: "disable";
3793 signal: "elm,state,disabled";
3795 action: STATE_SET "disabled" 0.0;
3796 target: "button_image";
3798 after: "disable_text";
3800 program { name: "disable_text";
3804 get_state(PART:"elm.text", st, 30, vl);
3805 if (!strcmp(st, "visible"))
3806 set_state(PART:"elm.text", "disabled_visible", 0.0);
3808 set_state(PART:"elm.text", "disabled", 0.0);
3809 set_int(button_state, BUTTON_STATE_DISABLED);
3812 program { name: "enable";
3813 signal: "elm,state,enabled";
3815 action: STATE_SET "default" 0.0;
3816 target: "button_image";
3818 after: "enable_text";
3820 program { name: "enable_text";
3824 get_state(PART:"elm.text", st, 30, vl);
3825 if (!strcmp(st, "disabled_visible"))
3826 set_state(PART:"elm.text", "visible", 0.0);
3828 set_state(PART:"elm.text", "default", 0.0);
3829 set_int(button_state, BUTTON_STATE_ENABLED);
3832 program { name: "focused";
3833 //signal: "elm,action,focus";
3835 action: STATE_SET "focused" 0.0;
3836 target: "button_image";
3839 program { name: "unfocused";
3840 //signal: "elm,action,unfocus";
3842 action: STATE_SET "default" 0.0;
3843 target: "button_image";
3844 after: "unfocus_text";
3846 program { name: "unfocus_text";
3847 action: STATE_SET "visible" 0.0;
3853 ///////////////////////////////////////////////////////////////////////////////////////
3854 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
3855 group { name: "elm/button/base/"style_name; \
3857 image: image_normal COMP; \
3858 image: image_press COMP; \
3859 image: image_disable COMP; \
3862 public button_state = BUTTON_STATE_ENABLED; \
3865 part { name: "button_image"; \
3867 description { state: "default" 0.0; \
3868 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3870 normal: image_normal; \
3871 border: COLORSELECTOR_BUTTON_BORDER; \
3875 description { state: "clicked" 0.0; \
3876 inherit: "default" 0.0; \
3877 image.normal: image_press; \
3879 description { state: "disabled" 0.0; \
3880 inherit: "default" 0.0; \
3881 image.normal: image_disable; \
3883 description { state: "focused" 0.0; \
3884 inherit: "default" 0.0; \
3885 image.normal: image_press; \
3888 part { name: "over2"; \
3891 ignore_flags: ON_HOLD; \
3892 description { state: "default" 0.0; \
3896 part { name: "over3"; \
3899 description { state: "default" 0.0; \
3903 part { name: "disabler"; \
3905 description { state: "default" 0.0; \
3909 description { state: "disabled" 0.0; \
3910 inherit: "default" 0.0; \
3916 program { name: "button_click"; \
3917 signal: "mouse,down,1"; \
3919 action: SIGNAL_EMIT "elm,action,press" ""; \
3920 after: "button_click_anim"; \
3922 program { name: "button_click_anim"; \
3923 action: STATE_SET "clicked" 0.0; \
3924 target: "button_image"; \
3926 program { name: "button_unpress"; \
3927 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3929 program { name: "button_mouseout_clicked"; \
3930 signal: "mouse,up,1"; \
3933 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
3934 set_state(PART:"button_image", "default", 0.0); \
3936 after: button_unpress; \
3938 program { name: "button_unclick3"; \
3939 signal: "mouse,clicked,1"; \
3941 action: SIGNAL_EMIT "elm,action,click" ""; \
3943 program { name: "disable"; \
3944 signal: "elm,state,disabled"; \
3946 action: STATE_SET "disabled" 0.0; \
3947 target: "button_image"; \
3948 target: "disabler"; \
3950 set_int(button_state, BUTTON_STATE_DISABLED); \
3953 program { name: "enable"; \
3954 signal: "elm,state,enabled"; \
3956 action: STATE_SET "default" 0.0; \
3957 target: "button_image"; \
3958 target: "disabler"; \
3960 set_int(button_state, BUTTON_STATE_ENABLED); \
3965 ///////////////////////////////////////////////////////////////////////////////////////
3966 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")
3967 ///////////////////////////////////////////////////////////////////////////////////////
3968 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")
3969 ///////////////////////////////////////////////////////////////////////////////////////
3971 group { name: "elm/button/base/hidden";
3973 image: "00_button_sweep.png" COMP;
3974 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
3977 public button_state = BUTTON_STATE_ENABLED;
3980 part { name: "button_image";
3983 description { state: "default" 0.0;
3984 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
3986 normal: "00_button_sweep.png";
3987 border: BUTTON_HIDDEN_BG_BORDER_INC;
3991 description { state: "clicked" 0.0;
3992 inherit: "default" 0.0;
3993 image.normal: "00_button_sweep_press.png";
3995 description { state: "disabled" 0.0;
3996 inherit: "default" 0.0;
3998 description { state: "focused" 0.0;
3999 inherit: "default" 0.0;
4000 image.normal: "00_button_sweep_press.png";
4004 name: "padding_left_top";
4008 description { state: "default" 0.0;
4010 rel1.relative: 0.0 0.0;
4011 rel2.relative: 0.0 0.0;
4012 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4018 name: "padding_right_bottom";
4022 description { state: "default" 0.0;
4024 rel1.relative: 1.0 1.0;
4025 rel2.relative: 1.0 1.0;
4026 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4036 description { state: "default" 0.0;
4038 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4040 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
4041 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
4047 name: "padding_icon_text";
4051 description { state: "default" 0.0; //when only icon or no icon is there
4053 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4054 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4059 description { state: "icononly" 0.0;
4060 inherit: "default" 0.0;
4062 description { state: "visible" 0.0; //when icon is visible
4064 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4065 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4067 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4071 part { name: "elm.swallow.content";
4074 description { state: "default" 0.0;
4077 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4078 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4081 description { state: "visible" 0.0;
4085 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4086 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4088 aspect_preference: VERTICAL;
4090 description { state: "icononly" 0.0;
4092 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4093 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4094 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4097 aspect_preference: VERTICAL;
4100 part { name: "elm.text";
4104 description { state: "default" 0.0;
4106 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4107 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
4109 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4111 font: "SLP:style=Medium";
4112 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4117 description { state: "visible" 0.0;
4118 inherit: "default" 0.0;
4120 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4122 description { state: "clicked" 0.0;
4123 inherit: "default" 0.0;
4126 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4128 description { state: "disabled" 0.0;
4129 inherit: "default" 0.0;
4132 description { state: "disabled_visible" 0.0;
4133 inherit: "default" 0.0;
4134 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4136 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4138 description { state: "focused" 0.0;
4139 inherit: "default" 0.0;
4142 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4145 part { name: "over2";
4149 ignore_flags: ON_HOLD;
4150 description { state: "default" 0.0;
4154 part { name: "over3";
4158 description { state: "default" 0.0;
4162 part { name: "disabler";
4164 description { state: "default" 0.0;
4168 description { state: "disabled" 0.0;
4169 inherit: "default" 0.0;
4175 program { name: "button_click";
4176 signal: "mouse,down,1";
4178 action: SIGNAL_EMIT "elm,action,press" "";
4179 after: "button_click_anim";
4181 program { name: "button_click_anim";
4182 action: STATE_SET "clicked" 0.0;
4183 target: "button_image";
4184 after: "text_clicked";
4186 program { name: "text_clicked";
4190 get_state(PART:"elm.text", st, 30, vl);
4191 if (!strcmp(st, "visible"))
4192 set_state(PART:"elm.text", "clicked", 0.0);
4195 program { name: "button_unpress";
4196 action: SIGNAL_EMIT "elm,action,unpress" "";
4198 program { name: "button_mouseout_clicked";
4199 signal: "mouse,up,1";
4204 get_state(PART:"elm.swallow.content", st, 30, vl);
4205 if (strcmp(st, "icononly"))
4207 emit("elm,action,default,text,set", "");
4208 set_state(PART:"elm.text", "visible", 0.0);
4210 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4211 set_state(PART:"button_image", "default", 0.0);
4213 after: button_unpress;
4215 program { name: "button_unclick3";
4216 signal: "mouse,clicked,1";
4218 action: SIGNAL_EMIT "elm,action,click" "";
4220 program { name: "text_show";
4221 signal: "elm,state,text,visible";
4226 get_state(PART:"elm.swallow.content", st, 30, vl);
4227 if (!strcmp(st, "icononly"))
4229 set_state(PART:"elm.swallow.content", "visible", 0.0);
4230 set_state(PART:"padding_icon_text", "visible", 0.0);
4232 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4233 set_state(PART:"elm.text", "visible", 0.0);
4235 set_state(PART:"elm.text", "disabled_visible", 0.0);
4238 program { name: "text_hide";
4239 signal: "elm,state,text,hidden";
4244 get_state(PART:"elm.swallow.content", st, 30, vl);
4245 if (!strcmp(st, "visible"))
4247 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4248 set_state(PART:"padding_icon_text", "icononly", 0.0);
4250 set_state(PART:"elm.text", "default", 0.0);
4253 program { name: "icon_show";
4254 signal: "elm,state,icon,visible";
4259 get_state(PART:"elm.text", st, 30, vl);
4260 if (!strcmp(st, "visible"))
4262 set_state(PART:"elm.swallow.content", "visible", 0.0);
4263 set_state(PART:"padding_icon_text", "visible", 0.0);
4267 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4268 set_state(PART:"padding_icon_text", "icononly", 0.0);
4272 program { name: "icon_hide";
4273 signal: "elm,state,icon,hidden";
4275 action: STATE_SET "default" 0.0;
4276 target: "elm.swallow.content";
4277 target: "padding_icon_text";
4279 program { name: "disable";
4280 signal: "elm,state,disabled";
4282 action: STATE_SET "disabled" 0.0;
4283 target: "button_image";
4285 after: "disable_text";
4287 program { name: "disable_text";
4291 get_state(PART:"elm.text", st, 30, vl);
4292 if (!strcmp(st, "visible"))
4293 set_state(PART:"elm.text", "disabled_visible", 0.0);
4295 set_state(PART:"elm.text", "disabled", 0.0);
4296 set_int(button_state, BUTTON_STATE_DISABLED);
4299 program { name: "enable";
4300 signal: "elm,state,enabled";
4302 action: STATE_SET "default" 0.0;
4303 target: "button_image";
4305 after: "enable_text";
4307 program { name: "enable_text";
4311 get_state(PART:"elm.text", st, 30, vl);
4312 if (!strcmp(st, "disabled_visible"))
4313 set_state(PART:"elm.text", "visible", 0.0);
4315 set_state(PART:"elm.text", "default", 0.0);
4316 set_int(button_state, BUTTON_STATE_ENABLED);
4319 program { name: "focused";
4320 //signal: "elm,action,focus";
4322 action: STATE_SET "focused" 0.0;
4323 target: "button_image";
4326 program { name: "unfocused";
4327 //signal: "elm,action,unfocus";
4329 action: STATE_SET "default" 0.0;
4330 target: "button_image";
4331 after: "unfocus_text";
4333 program { name: "unfocus_text";
4334 action: STATE_SET "visible" 0.0;
4340 ///////////////////////////////////////////////////////////////////////////////////////
4341 group { name: "elm/button/base/picker/bar/default";
4343 image: "00_picker_btn_normal.png" COMP;
4344 image: "00_picker_btn_press.png" COMP;
4347 public button_state = BUTTON_STATE_ENABLED;
4350 part { name: "button_image";
4352 description { state: "default" 0.0;
4353 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4355 normal: "00_picker_btn_normal.png";
4356 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4360 description { state: "clicked" 0.0;
4361 inherit: "default" 0.0;
4363 normal: "00_picker_btn_press.png";
4366 description { state: "disabled" 0.0;
4367 inherit: "default" 0.0;
4369 description { state: "focused" 0.0;
4370 inherit: "default" 0.0;
4372 normal: "00_picker_btn_press.png";
4376 part { name: "padding_left_top";
4380 description { state: "default" 0.0;
4385 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4390 part { name: "padding_right_bottom";
4394 description { state: "default" 0.0;
4399 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4404 part { name: "icon_rect";
4408 description { state: "default" 0.0;
4409 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
4413 to_x: "elm.swallow.content";
4414 to_y: "padding_left_top";
4418 to_x: "elm.swallow.content";
4419 to_y: "padding_right_bottom";
4425 part { name: "padding_icon_text";
4429 description { state: "default" 0.0; //when only icon or no icon is there
4442 description { state: "icononly" 0.0;
4443 inherit: "default" 0.0;
4445 description { state: "visible" 0.0; //when icon is visible
4455 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4459 part { name: "elm.swallow.content";
4463 description { state: "default" 0.0;
4468 to: "padding_left_top";
4472 to_x: "padding_left_top";
4473 to_y: "padding_right_bottom";
4477 description { state: "visible" 0.0;
4482 to: "padding_left_top";
4486 to_x: "padding_left_top";
4487 to_y: "padding_right_bottom";
4490 aspect_preference: VERTICAL;
4492 description { state: "icononly" 0.0;
4493 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4496 to: "padding_left_top";
4500 to_x: "padding_left_top";
4501 to_y: "padding_right_bottom";
4504 aspect_preference: VERTICAL;
4507 part { name: "elm.text";
4512 description { state: "default" 0.0;
4516 to_x: "padding_icon_text";
4517 to_y: "padding_left_top";
4521 to: "padding_right_bottom";
4523 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4525 font: "SLP:style=Medium";
4526 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4531 description { state: "visible" 0.0;
4532 inherit: "default" 0.0;
4534 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4536 description { state: "clicked" 0.0;
4537 inherit: "default" 0.0;
4540 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4542 description { state: "disabled" 0.0;
4543 inherit: "default" 0.0;
4544 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4546 description { state: "disabled_visible" 0.0;
4547 inherit: "default" 0.0;
4548 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4550 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4552 description { state: "focused" 0.0;
4553 inherit: "default" 0.0;
4556 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4559 part { name: "over2";
4562 ignore_flags: ON_HOLD;
4563 description { state: "default" 0.0;
4567 part { name: "over3";
4570 description { state: "default" 0.0;
4574 part { name: "clipper";
4576 description { state: "default" 0.0;
4577 color: 255 255 255 255;
4580 part { name: "disabler";
4582 description { state: "default" 0.0;
4586 description { state: "disabled" 0.0;
4587 inherit: "default" 0.0;
4593 program { name: "button_click";
4594 signal: "mouse,down,1";
4596 action: SIGNAL_EMIT "elm,action,press" "";
4597 after: "button_click_anim";
4599 program { name: "button_click_anim";
4600 action: STATE_SET "clicked" 0.0;
4601 target: "button_image";
4602 after: "text_clicked";
4604 program { name: "text_clicked";
4608 get_state(PART:"elm.text", st, 30, vl);
4609 if (!strcmp(st, "visible"))
4610 set_state(PART:"elm.text", "clicked", 0.0);
4613 program { name: "button_unpress";
4614 action: SIGNAL_EMIT "elm,action,unpress" "";
4616 program { name: "button_mouseout_clicked";
4617 signal: "mouse,up,1";
4622 get_state(PART:"elm.swallow.content", st, 30, vl);
4623 if (strcmp(st, "icononly"))
4625 emit("elm,action,default,text,set", "");
4626 set_state(PART:"elm.text", "visible", 0.0);
4628 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4629 set_state(PART:"button_image", "default", 0.0);
4631 after: button_unpress;
4633 program { name: "button_unclick3";
4634 signal: "mouse,clicked,1";
4636 action: SIGNAL_EMIT "elm,action,click" "";
4638 program { name: "text_show";
4639 signal: "elm,state,text,visible";
4644 get_state(PART:"elm.swallow.content", st, 30, vl);
4645 if (!strcmp(st, "icononly"))
4647 set_state(PART:"elm.swallow.content", "visible", 0.0);
4648 set_state(PART:"padding_icon_text", "visible", 0.0);
4650 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4651 set_state(PART:"elm.text", "visible", 0.0);
4653 set_state(PART:"elm.text", "disabled_visible", 0.0);
4656 program { name: "text_hide";
4657 signal: "elm,state,text,hidden";
4662 get_state(PART:"elm.swallow.content", st, 30, vl);
4663 if (!strcmp(st, "visible"))
4665 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4666 set_state(PART:"padding_icon_text", "icononly", 0.0);
4668 set_state(PART:"elm.text", "default", 0.0);
4671 program { name: "icon_show";
4672 signal: "elm,state,icon,visible";
4677 get_state(PART:"elm.text", st, 30, vl);
4678 if (!strcmp(st, "visible"))
4680 set_state(PART:"elm.swallow.content", "visible", 0.0);
4681 set_state(PART:"padding_icon_text", "visible", 0.0);
4685 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4686 set_state(PART:"padding_icon_text", "icononly", 0.0);
4690 program { name: "icon_hide";
4691 signal: "elm,state,icon,hidden";
4693 action: STATE_SET "default" 0.0;
4694 target: "elm.swallow.content";
4695 target: "padding_icon_text";
4697 program { name: "disable";
4698 signal: "elm,state,disabled";
4700 action: STATE_SET "disabled" 0.0;
4701 target: "button_image";
4703 after: "disable_text";
4705 program { name: "disable_text";
4709 get_state(PART:"elm.text", st, 30, vl);
4710 if (!strcmp(st, "visible"))
4711 set_state(PART:"elm.text", "disabled_visible", 0.0);
4713 set_state(PART:"elm.text", "disabled", 0.0);
4714 set_int(button_state, BUTTON_STATE_DISABLED);
4717 program { name: "enable";
4718 signal: "elm,state,enabled";
4720 action: STATE_SET "default" 0.0;
4721 target: "button_image";
4723 after: "enable_text";
4725 program { name: "enable_text";
4729 get_state(PART:"elm.text", st, 30, vl);
4730 if (!strcmp(st, "disabled_visible"))
4731 set_state(PART:"elm.text", "visible", 0.0);
4733 set_state(PART:"elm.text", "default", 0.0);
4734 set_int(button_state, BUTTON_STATE_ENABLED);
4737 program { name: "focused";
4738 //signal: "elm,action,focus";
4740 action: STATE_SET "focused" 0.0;
4741 target: "button_image";
4744 program { name: "unfocused";
4745 //signal: "elm,action,unfocus";
4747 action: STATE_SET "default" 0.0;
4748 target: "button_image";
4749 after: "unfocus_text";
4751 program { name: "unfocus_text";
4752 action: STATE_SET "visible" 0.0;
4758 ///////////////////////////////////////////////////////////////////////////////////////
4759 group { name: "elm/button/base/picker/prev/text/default";
4760 alias: "elm/button/base/picker/next/text/default";
4762 image: "00_picker_btn_normal.png" COMP;
4763 image: "00_picker_btn_press.png" COMP;
4766 public button_state = BUTTON_STATE_ENABLED;
4769 part { name: "button_image";
4771 description { state: "default" 0.0;
4772 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
4774 normal: "00_picker_btn_normal.png";
4775 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
4779 description { state: "clicked" 0.0;
4780 inherit: "default" 0.0;
4782 normal: "00_picker_btn_press.png";
4785 description { state: "disabled" 0.0;
4786 inherit: "default" 0.0;
4788 description { state: "focused" 0.0;
4789 inherit: "default" 0.0;
4791 normal: "00_picker_btn_press.png";
4795 part { name: "padding_left_top";
4799 description { state: "default" 0.0;
4804 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4809 part { name: "padding_right_bottom";
4813 description { state: "default" 0.0;
4818 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4823 part { name: "icon_rect";
4827 description { state: "default" 0.0;
4828 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
4832 to_x: "elm.swallow.content";
4833 to_y: "padding_left_top";
4837 to_x: "elm.swallow.content";
4838 to_y: "padding_right_bottom";
4844 part { name: "padding_icon_text";
4848 description { state: "default" 0.0; //when only icon or no icon is there
4861 description { state: "icononly" 0.0;
4862 inherit: "default" 0.0;
4864 description { state: "visible" 0.0; //when icon is visible
4874 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4878 part { name: "elm.swallow.content";
4882 description { state: "default" 0.0;
4887 to: "padding_left_top";
4891 to_x: "padding_left_top";
4892 to_y: "padding_right_bottom";
4896 description { state: "visible" 0.0;
4901 to: "padding_left_top";
4905 to_x: "padding_left_top";
4906 to_y: "padding_right_bottom";
4909 aspect_preference: VERTICAL;
4911 description { state: "icononly" 0.0;
4912 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
4915 to: "padding_left_top";
4919 to_x: "padding_left_top";
4920 to_y: "padding_right_bottom";
4923 aspect_preference: VERTICAL;
4926 part { name: "elm.text";
4931 description { state: "default" 0.0;
4935 to_x: "padding_icon_text";
4936 to_y: "padding_left_top";
4940 to: "padding_right_bottom";
4942 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4944 font: "SLP:style=Medium";
4945 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
4950 description { state: "visible" 0.0;
4951 inherit: "default" 0.0;
4953 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4955 description { state: "clicked" 0.0;
4956 inherit: "default" 0.0;
4959 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4961 description { state: "disabled" 0.0;
4962 inherit: "default" 0.0;
4963 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4965 description { state: "disabled_visible" 0.0;
4966 inherit: "default" 0.0;
4967 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4969 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4971 description { state: "focused" 0.0;
4972 inherit: "default" 0.0;
4975 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4978 part { name: "over2";
4981 ignore_flags: ON_HOLD;
4982 description { state: "default" 0.0;
4986 part { name: "over3";
4989 description { state: "default" 0.0;
4993 part { name: "clipper";
4995 description { state: "default" 0.0;
4996 color: 255 255 255 255;
4999 part { name: "disabler";
5001 description { state: "default" 0.0;
5005 description { state: "disabled" 0.0;
5006 inherit: "default" 0.0;
5012 program { name: "button_click";
5013 signal: "mouse,down,1";
5015 action: SIGNAL_EMIT "elm,action,press" "";
5016 after: "button_click_anim";
5018 program { name: "button_click_anim";
5019 action: STATE_SET "clicked" 0.0;
5020 target: "button_image";
5021 after: "text_clicked";
5023 program { name: "text_clicked";
5027 get_state(PART:"elm.text", st, 30, vl);
5028 if (!strcmp(st, "visible"))
5029 set_state(PART:"elm.text", "clicked", 0.0);
5032 program { name: "button_unpress";
5033 action: SIGNAL_EMIT "elm,action,unpress" "";
5035 program { name: "button_mouseout_clicked";
5036 signal: "mouse,up,1";
5041 get_state(PART:"elm.swallow.content", st, 30, vl);
5042 if (strcmp(st, "icononly"))
5044 emit("elm,action,default,text,set", "");
5045 set_state(PART:"elm.text", "visible", 0.0);
5047 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5048 set_state(PART:"button_image", "default", 0.0);
5050 after: button_unpress;
5052 program { name: "button_unclick3";
5053 signal: "mouse,clicked,1";
5055 action: SIGNAL_EMIT "elm,action,click" "";
5057 program { name: "text_show";
5058 signal: "elm,state,text,visible";
5063 get_state(PART:"elm.swallow.content", st, 30, vl);
5064 if (!strcmp(st, "icononly"))
5066 set_state(PART:"elm.swallow.content", "visible", 0.0);
5067 set_state(PART:"padding_icon_text", "visible", 0.0);
5069 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5070 set_state(PART:"elm.text", "visible", 0.0);
5072 set_state(PART:"elm.text", "disabled_visible", 0.0);
5075 program { name: "text_hide";
5076 signal: "elm,state,text,hidden";
5081 get_state(PART:"elm.swallow.content", st, 30, vl);
5082 if (!strcmp(st, "visible"))
5084 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5085 set_state(PART:"padding_icon_text", "icononly", 0.0);
5087 set_state(PART:"elm.text", "default", 0.0);
5090 program { name: "icon_show";
5091 signal: "elm,state,icon,visible";
5096 get_state(PART:"elm.text", st, 30, vl);
5097 if (!strcmp(st, "visible"))
5099 set_state(PART:"elm.swallow.content", "visible", 0.0);
5100 set_state(PART:"padding_icon_text", "visible", 0.0);
5104 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5105 set_state(PART:"padding_icon_text", "icononly", 0.0);
5109 program { name: "icon_hide";
5110 signal: "elm,state,icon,hidden";
5112 action: STATE_SET "default" 0.0;
5113 target: "elm.swallow.content";
5114 target: "padding_icon_text";
5116 program { name: "disable";
5117 signal: "elm,state,disabled";
5119 action: STATE_SET "disabled" 0.0;
5120 target: "button_image";
5122 after: "disable_text";
5124 program { name: "disable_text";
5128 get_state(PART:"elm.text", st, 30, vl);
5129 if (!strcmp(st, "visible"))
5130 set_state(PART:"elm.text", "disabled_visible", 0.0);
5132 set_state(PART:"elm.text", "disabled", 0.0);
5133 set_int(button_state, BUTTON_STATE_DISABLED);
5136 program { name: "enable";
5137 signal: "elm,state,enabled";
5139 action: STATE_SET "default" 0.0;
5140 target: "button_image";
5142 after: "enable_text";
5144 program { name: "enable_text";
5148 get_state(PART:"elm.text", st, 30, vl);
5149 if (!strcmp(st, "disabled_visible"))
5150 set_state(PART:"elm.text", "visible", 0.0);
5152 set_state(PART:"elm.text", "default", 0.0);
5153 set_int(button_state, BUTTON_STATE_ENABLED);
5156 program { name: "focused";
5157 //signal: "elm,action,focus";
5159 action: STATE_SET "focused" 0.0;
5160 target: "button_image";
5163 program { name: "unfocused";
5164 //signal: "elm,action,unfocus";
5166 action: STATE_SET "default" 0.0;
5167 target: "button_image";
5168 after: "unfocus_text";
5170 program { name: "unfocus_text";
5171 action: STATE_SET "visible" 0.0;
5177 ///////////////////////////////////////////////////////////////////////////////////////
5178 group { name: "elm/button/base/contact";
5179 alias: "elm/button/base/text_only/contact";
5181 public button_state = BUTTON_STATE_ENABLED;
5184 part { name: "button_image";
5188 description { state: "default" 0.0;
5189 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
5190 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
5191 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5192 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5194 description { state: "clicked" 0.0;
5195 inherit: "default" 0.0;
5196 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5198 description { state: "disabled" 0.0;
5199 inherit: "default" 0.0;
5201 description { state: "focused" 0.0;
5202 inherit: "default" 0.0;
5205 part { name: "padding.left";
5208 description { state: "default" 0.0;
5210 min: BUTTON_CONTACT_PADDING_MIN_INC;
5214 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
5218 part { name: "padding.right";
5221 description { state: "default" 0.0;
5223 min: BUTTON_CONTACT_PADDING_MIN_INC;
5226 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
5227 rel2.relative: 1.0 1.0;
5231 part { name: "elm.text";
5235 description { state: "default" 0.0;
5239 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5241 font: "SLP:style=Medium";
5242 size: BUTTON_CONTACT_FONT_SIZE_INC;
5247 description { state: "visible" 0.0;
5248 inherit: "default" 0.0;
5252 description { state: "clicked" 0.0;
5253 inherit: "default" 0.0;
5256 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5258 description { state: "disabled" 0.0;
5259 inherit: "default" 0.0;
5262 description { state: "disabled_visible" 0.0;
5263 inherit: "default" 0.0;
5264 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5268 description { state: "focused" 0.0;
5269 inherit: "default" 0.0;
5272 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5275 part { name: "over1";
5277 description { state: "default" 0.0;
5278 rel2.relative: 1.0 0.5;
5281 part { name: "over2";
5284 ignore_flags: ON_HOLD;
5285 description { state: "default" 0.0;
5286 rel1.to: "button_image";
5287 rel2.to: "button_image";
5290 part { name: "over3";
5293 description { state: "default" 0.0;
5294 rel1.to: "button_image";
5295 rel2.to: "button_image";
5299 part { name: "disabler";
5301 description { state: "default" 0.0;
5302 rel1.to: "button_image";
5303 rel2.to: "button_image";
5307 description { state: "disabled" 0.0;
5308 inherit: "default" 0.0;
5314 program { name: "button_click";
5315 signal: "mouse,down,1";
5317 action: SIGNAL_EMIT "elm,action,press" "";
5318 after: "button_click_anim";
5320 program { name: "button_click_anim";
5321 action: STATE_SET "clicked" 0.0;
5322 target: "button_image";
5325 program { name: "button_unpress";
5326 action: SIGNAL_EMIT "elm,action,unpress" "";
5328 program { name: "button_mouseout_clicked";
5329 signal: "mouse,up,1";
5334 get_state(PART:"elm.text", st, 30, vl);
5335 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5337 emit("elm,action,default,text,set", "");
5338 set_state(PART:"elm.text", "visible", 0.0);
5340 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5341 set_state(PART:"button_image", "default", 0.0);
5343 after: button_unpress;
5345 program { name: "button_unclick3";
5346 signal: "mouse,clicked,1";
5348 action: SIGNAL_EMIT "elm,action,click" "";
5350 program { name: "text_show";
5351 signal: "elm,state,text,visible";
5354 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5355 set_state(PART:"elm.text", "visible", 0.0);
5357 set_state(PART:"elm.text", "disabled_visible", 0.0);
5360 program { name: "text_hide";
5361 signal: "elm,state,text,hidden";
5363 action: STATE_SET "default" 0.0;
5367 program { name: "disable";
5368 signal: "elm,state,disabled";
5370 action: STATE_SET "disabled" 0.0;
5371 target: "button_image";
5373 after: "disable_text";
5375 program { name: "disable_text";
5379 get_state(PART:"elm.text", st, 30, vl);
5380 if (!strcmp(st, "visible"))
5381 set_state(PART:"elm.text", "disabled_visible", 0.0);
5383 set_state(PART:"elm.text", "disabled", 0.0);
5384 set_int(button_state, BUTTON_STATE_DISABLED);
5387 program { name: "enable";
5388 signal: "elm,state,enabled";
5390 action: STATE_SET "default" 0.0;
5391 target: "button_image";
5393 after: "enable_text";
5395 program { name: "enable_text";
5399 get_state(PART:"elm.text", st, 30, vl);
5400 if (!strcmp(st, "disabled_visible"))
5401 set_state(PART:"elm.text", "visible", 0.0);
5403 set_state(PART:"elm.text", "default", 0.0);
5404 set_int(button_state, BUTTON_STATE_ENABLED);
5407 program { name: "focused";
5408 //signal: "elm,action,focus";
5410 action: STATE_SET "focused" 0.0;
5411 target: "button_image";
5414 program { name: "unfocused";
5415 //signal: "elm,action,unfocus";
5417 action: STATE_SET "default" 0.0;
5418 target: "button_image";
5419 action: STATE_SET "visible" 0.0;
5425 ///////////////////////////////////////////////////////////////////////////////////////
5426 group { name: "elm/button/base/naviframe/back_btn/default";
5427 alias: "elm/button/base/naviframe/prev_btn/default";
5428 alias: "elm/button/base/naviframe/end_btn/default";
5430 image: "00_winset_Back_btn_normal.png" COMP;
5431 image: "00_winset_Back_btn_press.png" COMP;
5432 image: "00_winset_Back.png" COMP;
5435 public button_state = BUTTON_STATE_ENABLED;
5438 part { name: "button_image";
5440 description { state: "default" 0.0;
5441 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5442 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5444 normal: "00_winset_Back_btn_normal.png";
5445 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
5449 description { state: "clicked" 0.0;
5450 inherit: "default" 0.0;
5451 image.normal: "00_winset_Back_btn_press.png";
5453 description { state: "disabled" 0.0;
5454 inherit: "default" 0.0;
5456 description { state: "focused" 0.0;
5457 inherit: "default" 0.0;
5458 image.normal: "00_winset_Back_btn_press.png";
5461 part { name: "back_button";
5464 description { state: "default" 0.0;
5465 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5466 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
5475 image.normal: "00_winset_Back.png";
5477 description { state: "clicked" 0.0;
5478 inherit: "default" 0.0;
5481 part { name: "over2";
5484 ignore_flags: ON_HOLD;
5485 description { state: "default" 0.0;
5489 part { name: "over3";
5492 description { state: "default" 0.0;
5496 part { name: "disabler";
5498 description { state: "default" 0.0;
5502 description { state: "disabled" 0.0;
5503 inherit: "default" 0.0;
5509 program { name: "button_click";
5510 signal: "mouse,down,1";
5512 action: SIGNAL_EMIT "elm,action,press" "";
5513 after: "button_click_anim";
5515 program { name: "button_click_anim";
5516 action: STATE_SET "clicked" 0.0;
5517 target: "button_image";
5519 program { name: "button_unpress";
5520 action: SIGNAL_EMIT "elm,action,unpress" "";
5522 program { name: "button_mouseout_clicked";
5523 signal: "mouse,up,1";
5526 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5527 set_state(PART:"button_image", "default", 0.0);
5529 after: button_unpress;
5531 program { name: "button_unclick3";
5532 signal: "mouse,clicked,1";
5534 action: SIGNAL_EMIT "elm,action,click" "";
5536 program { name: "disable";
5537 signal: "elm,state,disabled";
5539 action: STATE_SET "disabled" 0.0;
5540 target: "button_image";
5542 after: "disable_button";
5544 program { name: "disable_button";
5546 set_int(button_state, BUTTON_STATE_DISABLED);
5549 program { name: "enable";
5550 signal: "elm,state,enabled";
5552 action: STATE_SET "default" 0.0;
5553 target: "button_image";
5555 after: "enable_button";
5557 program { name: "enable_button";
5559 set_int(button_state, BUTTON_STATE_ENABLED);
5565 ///////////////////////////////////////////////////////////////////////////////////////
5566 group { name: "elm/button/base/picker/prev/icon/default";
5568 image: "00_picker_btn_normal.png" COMP;
5569 image: "00_picker_btn_press.png" COMP;
5570 image: "00_picker_arrow_left.png" COMP;
5571 image: "00_picker_arrow_left_press.png" COMP;
5574 public button_state = BUTTON_STATE_ENABLED;
5577 part { name: "button_image";
5579 description { state: "default" 0.0;
5580 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5581 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5583 normal: "00_picker_btn_normal.png";
5584 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5588 description { state: "clicked" 0.0;
5589 inherit: "default" 0.0;
5591 normal: "00_picker_btn_press.png";
5594 description { state: "disabled" 0.0;
5595 inherit: "default" 0.0;
5597 description { state: "focused" 0.0;
5598 inherit: "default" 0.0;
5600 normal: "00_picker_btn_press.png";
5604 part { name: "padding_left_top";
5608 description { state: "default" 0.0;
5613 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5618 part { name: "padding_right_bottom";
5622 description { state: "default" 0.0;
5627 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5632 part { name: "left_arrow";
5635 description { state: "default" 0.0;
5636 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5637 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5640 to: "padding_left_top";
5644 to: "padding_right_bottom";
5647 normal: "00_picker_arrow_left.png";
5650 description { state: "clicked" 0.0;
5651 inherit: "default" 0.0;
5653 normal: "00_picker_arrow_left_press.png";
5657 part { name: "over2";
5660 ignore_flags: ON_HOLD;
5661 description { state: "default" 0.0;
5665 part { name: "over3";
5668 description { state: "default" 0.0;
5672 part { name: "disabler";
5674 description { state: "default" 0.0;
5678 description { state: "disabled" 0.0;
5679 inherit: "default" 0.0;
5685 program { name: "button_click";
5686 signal: "mouse,down,1";
5688 action: SIGNAL_EMIT "elm,action,press" "";
5689 after: "button_click_anim";
5691 program { name: "button_click_anim";
5692 action: STATE_SET "clicked" 0.0;
5693 target: "button_image";
5695 program { name: "button_unpress";
5696 action: SIGNAL_EMIT "elm,action,unpress" "";
5698 program { name: "button_mouseout_clicked";
5699 signal: "mouse,up,1";
5702 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5703 set_state(PART:"button_image", "default", 0.0);
5705 after: button_unpress;
5707 program { name: "button_unclick3";
5708 signal: "mouse,clicked,1";
5710 action: SIGNAL_EMIT "elm,action,click" "";
5712 program { name: "disable";
5713 signal: "elm,state,disabled";
5715 action: STATE_SET "disabled" 0.0;
5716 target: "button_image";
5718 after: "disable_button";
5720 program { name: "disable_button";
5722 set_int(button_state, BUTTON_STATE_DISABLED);
5725 program { name: "enable";
5726 signal: "elm,state,enabled";
5728 action: STATE_SET "default" 0.0;
5729 target: "button_image";
5731 after: "enable_button";
5733 program { name: "enable_button";
5735 set_int(button_state, BUTTON_STATE_ENABLED);
5738 program { name: "focused";
5739 //signal: "elm,action,focus";
5741 action: STATE_SET "focused" 0.0;
5742 target: "button_image";
5744 program { name: "unfocused";
5745 //signal: "elm,action,unfocus";
5747 action: STATE_SET "default" 0.0;
5748 target: "button_image";
5753 ///////////////////////////////////////////////////////////////////////////////////////
5754 group { name: "elm/button/base/picker/next/icon/default";
5756 image: "00_picker_btn_normal.png" COMP;
5757 image: "00_picker_btn_press.png" COMP;
5758 image: "00_picker_arrow_right.png" COMP;
5759 image: "00_picker_arrow_right_press.png" COMP;
5762 public button_state = BUTTON_STATE_ENABLED;
5765 part { name: "button_image";
5767 description { state: "default" 0.0;
5768 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5769 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5771 normal: "00_picker_btn_normal.png";
5772 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5776 description { state: "clicked" 0.0;
5777 inherit: "default" 0.0;
5779 normal: "00_picker_btn_press.png";
5782 description { state: "disabled" 0.0;
5783 inherit: "default" 0.0;
5785 description { state: "focused" 0.0;
5786 inherit: "default" 0.0;
5788 normal: "00_picker_btn_press.png";
5792 part { name: "padding_left_top";
5796 description { state: "default" 0.0;
5801 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5806 part { name: "padding_right_bottom";
5810 description { state: "default" 0.0;
5815 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5820 part { name: "right_arrow";
5823 description { state: "default" 0.0;
5824 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5825 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5828 to: "padding_left_top";
5832 to: "padding_right_bottom";
5835 normal: "00_picker_arrow_right.png";
5838 description { state: "clicked" 0.0;
5839 inherit: "default" 0.0;
5841 normal: "00_picker_arrow_right_press.png";
5845 part { name: "over2";
5848 ignore_flags: ON_HOLD;
5849 description { state: "default" 0.0;
5853 part { name: "over3";
5856 description { state: "default" 0.0;
5860 part { name: "disabler";
5862 description { state: "default" 0.0;
5866 description { state: "disabled" 0.0;
5867 inherit: "default" 0.0;
5873 program { name: "button_click";
5874 signal: "mouse,down,1";
5876 action: SIGNAL_EMIT "elm,action,press" "";
5877 after: "button_click_anim";
5879 program { name: "button_click_anim";
5880 action: STATE_SET "clicked" 0.0;
5881 target: "button_image";
5883 program { name: "button_unpress";
5884 action: SIGNAL_EMIT "elm,action,unpress" "";
5886 program { name: "button_mouseout_clicked";
5887 signal: "mouse,up,1";
5890 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5891 set_state(PART:"button_image", "default", 0.0);
5893 after: button_unpress;
5895 program { name: "button_unclick3";
5896 signal: "mouse,clicked,1";
5898 action: SIGNAL_EMIT "elm,action,click" "";
5900 program { name: "disable";
5901 signal: "elm,state,disabled";
5903 action: STATE_SET "disabled" 0.0;
5904 target: "button_image";
5906 after: "disable_button";
5908 program { name: "disable_button";
5910 set_int(button_state, BUTTON_STATE_DISABLED);
5913 program { name: "enable";
5914 signal: "elm,state,enabled";
5916 action: STATE_SET "default" 0.0;
5917 target: "button_image";
5919 after: "enable_button";
5921 program { name: "enable_button";
5923 set_int(button_state, BUTTON_STATE_ENABLED);
5926 program { name: "focused";
5927 //signal: "elm,action,focus";
5929 action: STATE_SET "focused" 0.0;
5930 target: "button_image";
5932 program { name: "unfocused";
5933 //signal: "elm,action,unfocus";
5935 action: STATE_SET "default" 0.0;
5936 target: "button_image";
5941 ///////////////////////////////////////////////////////////////////////////////////////
5942 group { name: "elm/button/base/naviframe_control/default";
5943 alias: "elm/button/base/naviframe_control/center";
5945 public button_state = BUTTON_STATE_ENABLED;
5947 images.image: "00_Option_header_bt.png" COMP;
5948 images.image: "00_Option_header_bt_dim.png" COMP;
5949 images.image: "00_Option_header_bt_press.png" COMP;
5951 part { name: "button_image";
5955 description { state: "default" 0.0;
5956 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
5960 image.normal: "00_Option_header_bt.png";
5961 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
5962 color: 255 255 255 255;
5964 description { state: "disabled" 0.0;
5965 inherit: "default" 0.0;
5966 image.normal: "00_Option_header_bt_dim.png";
5968 description { state: "clicked" 0.0;
5969 inherit: "default" 0.0;
5970 image.normal: "00_Option_header_bt_press.png";
5974 name: "padding_left_top";
5978 description { state: "default" 0.0;
5980 rel1.relative: 0.0 0.0;
5981 rel2.relative: 0.0 0.0;
5982 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
5988 name: "padding_right_bottom";
5992 description { state: "default" 0.0;
5994 rel1.relative: 1.0 1.0;
5995 rel2.relative: 1.0 1.0;
5996 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6006 description { state: "default" 0.0;
6010 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6011 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6015 description { state: "visible" 0.0;
6017 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6019 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6020 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6024 description { state: "icononly" 0.0;
6025 inherit: "default" 0.0;
6029 name: "padding_after_icon";
6033 description { state: "default" 0.0; //when only icon or no icon is there
6035 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6036 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6041 description { state: "visible" 0.0;
6044 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6045 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6047 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6050 description { state: "icononly" 0.0;
6051 inherit: "default" 0.0;
6055 name: "padding_before_text";
6059 description { state: "default" 0.0; //when only icon or no icon is there
6061 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
6062 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
6064 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6068 part { name: "elm.swallow.content";
6072 description { state: "default" 0.0;
6075 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6076 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6079 description { state: "visible" 0.0;
6082 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6083 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6085 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
6086 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
6088 aspect_preference: VERTICAL;
6090 description { state: "icononly" 0.0;
6092 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6093 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6094 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6095 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6098 aspect_preference: VERTICAL;
6101 part { name: "elm.text";
6106 description { state: "default" 0.0;
6108 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
6109 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6111 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6113 font: "SLP:style=Medium";
6114 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6120 description { state: "visible" 0.0;
6121 inherit: "default" 0.0;
6124 description { state: "clicked" 0.0;
6125 inherit: "default" 0.0;
6129 description { state: "focused" 0.0;
6130 inherit: "default" 0.0;
6133 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6136 part { name: "over2";
6140 ignore_flags: ON_HOLD;
6141 description { state: "default" 0.0;
6145 part { name: "over3";
6149 description { state: "default" 0.0;
6153 part { name: "clipper";
6155 description { state: "default" 0.0;
6156 color: 255 255 255 255;
6158 description { state: "disabled" 0.0;
6159 color: 255 255 255 127;
6162 part { name: "disabler";
6164 description { state: "default" 0.0;
6168 description { state: "disabled" 0.0;
6169 inherit: "default" 0.0;
6175 program { name: "button_click";
6176 signal: "mouse,down,1";
6178 action: SIGNAL_EMIT "elm,action,press" "";
6179 after: "button_click_anim";
6181 program { name: "button_click_anim";
6182 action: STATE_SET "clicked" 0.0;
6183 target: "button_image";
6184 after: "text_clicked";
6186 program { name: "text_clicked";
6190 get_state(PART:"elm.text", st, 30, vl);
6191 if (!strcmp(st, "visible"))
6192 set_state(PART:"elm.text", "clicked", 0.0);
6195 program { name: "button_unpress";
6196 action: SIGNAL_EMIT "elm,action,unpress" "";
6198 program { name: "button_mouseout_clicked";
6199 signal: "mouse,up,1";
6204 get_state(PART:"elm.swallow.content", st, 30, vl);
6205 if (strcmp(st, "icononly"))
6207 emit("elm,action,default,text,set", "");
6208 set_state(PART:"elm.text", "visible", 0.0);
6210 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6211 set_state(PART:"button_image", "default", 0.0);
6213 after: button_unpress;
6215 program { name: "button_unclick3";
6216 signal: "mouse,clicked,1";
6218 action: SIGNAL_EMIT "elm,action,click" "";
6220 program { name: "text_show";
6221 signal: "elm,state,text,visible";
6226 get_state(PART:"elm.swallow.content", st, 30, vl);
6227 if (!strcmp(st, "icononly"))
6229 set_state(PART:"elm.swallow.content", "visible", 0.0);
6230 set_state(PART:"icon_rect", "visible", 0.0);
6231 set_state(PART:"padding_after_icon", "visible", 0.0);
6233 set_state(PART:"elm.text", "visible", 0.0);
6236 program { name: "text_hide";
6237 signal: "elm,state,text,hidden";
6242 get_state(PART:"elm.swallow.content", st, 30, vl);
6243 if (!strcmp(st, "visible"))
6245 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6246 set_state(PART:"icon_rect", "icononly", 0.0);
6247 set_state(PART:"padding_after_icon", "icononly", 0.0);
6249 set_state(PART:"elm.text", "default", 0.0);
6252 program { name: "icon_show";
6253 signal: "elm,state,icon,visible";
6258 get_state(PART:"elm.text", st, 30, vl);
6259 if (!strcmp(st, "visible"))
6261 set_state(PART:"elm.swallow.content", "visible", 0.0);
6262 set_state(PART:"icon_rect", "visible", 0.0);
6263 set_state(PART:"padding_after_icon", "visible", 0.0);
6267 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6268 set_state(PART:"icon_rect", "icononly", 0.0);
6269 set_state(PART:"padding_after_icon", "icononly", 0.0);
6273 program { name: "icon_hide";
6274 signal: "elm,state,icon,hidden";
6276 action: STATE_SET "default" 0.0;
6277 target: "elm.swallow.content";
6278 target: "icon_rect";
6279 target: "padding_after_icon";
6281 program { name: "disable";
6282 signal: "elm,state,disabled";
6284 action: STATE_SET "disabled" 0.0;
6285 target: "button_image";
6288 after: "disable_text";
6290 program { name: "disable_text";
6294 set_int(button_state, BUTTON_STATE_DISABLED);
6295 get_state(PART:"elm.text", st, 30, vl);
6296 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6297 set_state(PART:"elm.text", "visible", 0.0);
6300 program { name: "enable";
6301 signal: "elm,state,enabled";
6303 action: STATE_SET "default" 0.0;
6304 target: "button_image";
6307 after: "enable_text";
6309 program { name: "enable_text";
6313 set_int(button_state, BUTTON_STATE_ENABLED);
6314 get_state(PART:"elm.text", st, 30, vl);
6315 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6316 set_state(PART:"elm.text", "visible", 0.0);
6319 program { name: "focused";
6320 action: STATE_SET "focused" 0.0;
6321 target: "button_image";
6324 program { name: "unfocused";
6325 action: STATE_SET "default" 0.0;
6326 target: "button_image";
6327 after: "unfocus_text";
6329 program { name: "unfocus_text";
6330 action: STATE_SET "visible" 0.0;
6336 ///////////////////////////////////////////////////////////////////////////////////////
6337 group { name: "elm/button/base/naviframe_control/multiline";
6339 public button_state = BUTTON_STATE_ENABLED;
6341 images.image: "00_Option_header_bt.png" COMP;
6342 images.image: "00_Option_header_bt_dim.png" COMP;
6343 images.image: "00_Option_header_bt_press.png" COMP;
6345 style { name: "btn_multiline_naviframe_controlbar_style";
6346 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6353 part { name: "button_image";
6357 description { state: "default" 0.0;
6358 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6361 image.normal: "00_Option_header_bt.png";
6362 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6363 color: 255 255 255 255;
6365 description { state: "disabled" 0.0;
6366 inherit: "default" 0.0;
6367 image.normal: "00_Option_header_bt_dim.png";
6369 description { state: "clicked" 0.0;
6370 inherit: "default" 0.0;
6371 image.normal: "00_Option_header_bt_press.png";
6375 name: "padding_left_top";
6379 description { state: "default" 0.0;
6387 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6393 name: "padding_right_bottom";
6397 description { state: "default" 0.0;
6399 rel1.relative: 1.0 1.0;
6400 rel2.relative: 1.0 1.0;
6401 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6411 description { state: "default" 0.0;
6417 to_x: "elm.swallow.content";
6418 to_y: "padding_left_top";
6422 to_x: "elm.swallow.content";
6423 to_y: "padding_right_bottom";
6429 name: "padding_icon_text";
6433 description { state: "default" 0.0; //when only icon or no icon is there
6447 description { state: "visible" 0.0;
6448 inherit: "default" 0.0;
6449 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6459 description { state: "icononly" 0.0;
6460 inherit: "default" 0.0;
6463 part { name: "elm.swallow.content";
6467 description { state: "default" 0.0;
6472 to: "padding_left_top";
6476 to_x: "padding_left_top";
6477 to_y: "padding_right_bottom";
6481 description { state: "visible" 0.0;
6484 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6485 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6489 to: "padding_left_top";
6493 to_x: "padding_left_top";
6494 to_y: "padding_right_bottom";
6497 description { state: "icononly" 0.0;
6499 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6500 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6503 to: "padding_left_top";
6507 to: "padding_right_bottom";
6512 part { name: "elm.text";
6517 description { state: "default" 0.0;
6521 to_x: "padding_icon_text";
6522 to_y: "padding_left_top";
6526 to: "padding_right_bottom";
6529 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6531 style: "btn_multiline_naviframe_controlbar_style";
6536 description { state: "visible" 0.0;
6537 inherit: "default" 0.0;
6541 description { state: "clicked" 0.0;
6542 inherit: "default" 0.0;
6546 description { state: "focused" 0.0;
6547 inherit: "default" 0.0;
6550 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6553 part { name: "over2";
6557 ignore_flags: ON_HOLD;
6558 description { state: "default" 0.0;
6562 part { name: "over3";
6566 description { state: "default" 0.0;
6570 part { name: "clipper";
6572 description { state: "default" 0.0;
6573 color: 255 255 255 255;
6575 description { state: "disabled" 0.0;
6576 color: 255 255 255 127;
6579 part { name: "disabler";
6581 description { state: "default" 0.0;
6585 description { state: "disabled" 0.0;
6586 inherit: "default" 0.0;
6592 program { name: "button_click";
6593 signal: "mouse,down,1";
6595 action: SIGNAL_EMIT "elm,action,press" "";
6596 after: "button_click_anim";
6598 program { name: "button_click_anim";
6599 action: STATE_SET "clicked" 0.0;
6600 target: "button_image";
6601 after: "text_clicked";
6603 program { name: "text_clicked";
6607 get_state(PART:"elm.text", st, 30, vl);
6608 if (!strcmp(st, "visible"))
6609 set_state(PART:"elm.text", "clicked", 0.0);
6612 program { name: "button_unpress";
6613 action: SIGNAL_EMIT "elm,action,unpress" "";
6615 program { name: "button_mouseout_clicked";
6616 signal: "mouse,up,1";
6621 get_state(PART:"elm.swallow.content", st, 30, vl);
6622 if (strcmp(st, "icononly"))
6624 emit("elm,action,default,text,set", "");
6625 set_state(PART:"elm.text", "visible", 0.0);
6627 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6628 set_state(PART:"button_image", "default", 0.0);
6630 after: button_unpress;
6632 program { name: "button_unclick3";
6633 signal: "mouse,clicked,1";
6635 action: SIGNAL_EMIT "elm,action,click" "";
6637 program { name: "text_show";
6638 signal: "elm,state,text,visible";
6643 get_state(PART:"elm.swallow.content", st, 30, vl);
6644 if (!strcmp(st, "icononly"))
6646 set_state(PART:"elm.swallow.content", "visible", 0.0);
6647 set_state(PART:"padding_icon_text", "visible", 0.0);
6649 set_state(PART:"elm.text", "visible", 0.0);
6652 program { name: "text_hide";
6653 signal: "elm,state,text,hidden";
6658 get_state(PART:"elm.swallow.content", st, 30, vl);
6659 if (!strcmp(st, "visible"))
6661 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6662 set_state(PART:"padding_icon_text", "icononly", 0.0);
6664 set_state(PART:"elm.text", "default", 0.0);
6667 program { name: "icon_show";
6668 signal: "elm,state,icon,visible";
6673 get_state(PART:"elm.text", st, 30, vl);
6674 if (!strcmp(st, "visible"))
6676 set_state(PART:"elm.swallow.content", "visible", 0.0);
6677 set_state(PART:"padding_icon_text", "visible", 0.0);
6681 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6682 set_state(PART:"padding_icon_text", "icononly", 0.0);
6686 program { name: "icon_hide";
6687 signal: "elm,state,icon,hidden";
6689 action: STATE_SET "default" 0.0;
6690 target: "elm.swallow.content";
6691 target: "padding_icon_text";
6693 program { name: "disable";
6694 signal: "elm,state,disabled";
6696 action: STATE_SET "disabled" 0.0;
6697 target: "button_image";
6700 after: "disable_text";
6702 program { name: "disable_text";
6706 set_int(button_state, BUTTON_STATE_DISABLED);
6707 get_state(PART:"elm.text", st, 30, vl);
6708 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6709 set_state(PART:"elm.text", "visible", 0.0);
6712 program { name: "enable";
6713 signal: "elm,state,enabled";
6715 action: STATE_SET "default" 0.0;
6716 target: "button_image";
6719 after: "enable_text";
6721 program { name: "enable_text";
6725 set_int(button_state, BUTTON_STATE_ENABLED);
6726 get_state(PART:"elm.text", st, 30, vl);
6727 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6728 set_state(PART:"elm.text", "visible", 0.0);
6731 program { name: "focused";
6732 action: STATE_SET "focused" 0.0;
6733 target: "button_image";
6736 program { name: "unfocused";
6737 action: STATE_SET "default" 0.0;
6738 target: "button_image";
6739 after: "unfocus_text";
6741 program { name: "unfocus_text";
6742 action: STATE_SET "visible" 0.0;
6748 //////////////////////////////////////////////////////////////
6749 group { name: "elm/button/base/naviframe/title/default";
6751 image: "00_Title_btn.png" COMP;
6752 image: "00_Title_btn_press.png" COMP;
6755 public button_state = BUTTON_STATE_ENABLED;
6758 part { name: "button_image";
6760 description { state: "default" 0.0;
6761 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6762 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6764 normal: "00_Title_btn.png";
6765 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
6769 description { state: "clicked" 0.0;
6770 inherit: "default" 0.0;
6771 image.normal: "00_Title_btn_press.png";
6773 description { state: "disabled" 0.0;
6774 inherit: "default" 0.0;
6776 description { state: "focused" 0.0;
6777 inherit: "default" 0.0;
6778 image.normal: "00_Title_btn_press.png";
6781 part { name: "padding_left_top";
6785 description { state: "default" 0.0;
6787 rel2.relative: 0.0 0.0;
6788 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
6797 description { state: "default" 0.0;
6798 min: BUTTON_NAVIFRAME_BG_MIN_INC;
6801 description { state: "visible" 0.0;
6802 inherit: "default" 0.0;
6803 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
6805 description { state: "icononly" 0.0;
6806 inherit: "default" 0.0;
6807 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
6810 part { name: "padding_right_bottom";
6814 description { state: "default" 0.0;
6816 rel1.relative: 1.0 1.0;
6817 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
6822 part { name: "icon_rect";
6826 description { state: "default" 0.0;
6832 to: "padding_left_top";
6836 to_x: "padding_left_top";
6837 to_y: "padding_right_bottom";
6841 description { state: "visible" 0.0;
6843 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
6844 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
6848 to: "padding_left_top";
6852 to_x: "padding_left_top";
6853 to_y: "padding_right_bottom";
6857 description { state: "icononly" 0.0;
6858 inherit: "default" 0.0;
6861 part { name: "padding_after_icon";
6865 description { state: "default" 0.0; //when only icon or no icon is there
6871 rel2.to: "icon_rect";
6876 description { state: "visible" 0.0;
6883 rel2.to: "icon_rect";
6885 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6887 description { state: "icononly" 0.0;
6888 inherit: "default" 0.0;
6891 part { name: "padding_before_text";
6895 description { state: "default" 0.0; //when only icon or no icon is there
6900 to_y: "padding_left_top";
6905 to_y: "padding_right_bottom";
6908 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6912 part { name: "elm.swallow.content";
6916 description { state: "default" 0.0;
6921 to: "padding_left_top";
6925 to_x: "padding_left_top";
6926 to_y: "padding_right_bottom";
6930 description { state: "visible" 0.0;
6932 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
6933 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
6937 to_x: "padding_before_text";
6938 to_y: "padding_left_top";
6942 to_x: "padding_before_text";
6943 to_y: "padding_right_bottom";
6946 description { state: "icononly" 0.0;
6947 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
6948 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
6952 part { name: "elm.text";
6957 description { state: "default" 0.0;
6961 to_x: "padding_after_icon";
6962 to_y: "padding_left_top";
6966 to: "padding_right_bottom";
6968 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
6970 font: "SLP:style=Medium";
6971 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
6976 description { state: "visible" 0.0;
6977 inherit: "default" 0.0;
6980 description { state: "clicked" 0.0;
6981 inherit: "default" 0.0;
6983 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
6985 description { state: "disabled" 0.0;
6986 inherit: "default" 0.0;
6989 description { state: "disabled_visible" 0.0;
6990 inherit: "default" 0.0;
6991 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
6994 description { state: "focused" 0.0;
6995 inherit: "default" 0.0;
6997 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7000 part { name: "over2";
7003 ignore_flags: ON_HOLD;
7004 description { state: "default" 0.0;
7008 part { name: "over3";
7011 description { state: "default" 0.0;
7015 part { name: "clipper";
7017 description { state: "default" 0.0;
7018 color: 255 255 255 255;
7021 part { name: "disabler";
7023 description { state: "default" 0.0;
7027 description { state: "disabled" 0.0;
7028 inherit: "default" 0.0;
7034 program { name: "button_click";
7035 signal: "mouse,down,1";
7037 action: SIGNAL_EMIT "elm,action,press" "";
7038 after: "button_click_anim";
7040 program { name: "button_click_anim";
7041 action: STATE_SET "clicked" 0.0;
7042 target: "button_image";
7043 after: "text_clicked";
7045 program { name: "text_clicked";
7049 get_state(PART:"elm.text", st, 30, vl);
7050 if (!strcmp(st, "visible"))
7051 set_state(PART:"elm.text", "clicked", 0.0);
7054 program { name: "button_unpress";
7055 action: SIGNAL_EMIT "elm,action,unpress" "";
7057 program { name: "button_mouseout_clicked";
7058 signal: "mouse,up,1";
7063 get_state(PART:"elm.swallow.content", st, 30, vl);
7064 if (strcmp(st, "icononly"))
7066 emit("elm,action,default,text,set", "");
7067 set_state(PART:"elm.text", "visible", 0.0);
7069 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7070 set_state(PART:"button_image", "default", 0.0);
7072 after: button_unpress;
7074 program { name: "button_unclick3";
7075 signal: "mouse,clicked,1";
7077 action: SIGNAL_EMIT "elm,action,click" "";
7079 program { name: "text_show";
7080 signal: "elm,state,text,visible";
7085 get_state(PART:"elm.swallow.content", st, 30, vl);
7086 if (!strcmp(st, "icononly"))
7088 set_state(PART:"elm.swallow.content", "visible", 0.0);
7089 set_state(PART:"icon_rect", "visible", 0.0);
7090 set_state(PART:"padding_after_icon", "visible", 0.0);
7091 set_state(PART:"bg", "visible", 0.0);
7093 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7094 set_state(PART:"elm.text", "visible", 0.0);
7096 set_state(PART:"elm.text", "disabled_visible", 0.0);
7099 program { name: "text_hide";
7100 signal: "elm,state,text,hidden";
7105 get_state(PART:"elm.swallow.content", st, 30, vl);
7106 if (!strcmp(st, "visible"))
7108 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7109 set_state(PART:"icon_rect", "icononly", 0.0);
7110 set_state(PART:"padding_after_icon", "icononly", 0.0);
7111 set_state(PART:"bg", "icononly", 0.0);
7113 set_state(PART:"elm.text", "default", 0.0);
7116 program { name: "icon_show";
7117 signal: "elm,state,icon,visible";
7122 get_state(PART:"elm.text", st, 30, vl);
7123 if (!strcmp(st, "visible"))
7125 set_state(PART:"elm.swallow.content", "visible", 0.0);
7126 set_state(PART:"icon_rect", "visible", 0.0);
7127 set_state(PART:"padding_after_icon", "visible", 0.0);
7128 set_state(PART:"bg", "visible", 0.0);
7132 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7133 set_state(PART:"icon_rect", "icononly", 0.0);
7134 set_state(PART:"padding_after_icon", "icononly", 0.0);
7135 set_state(PART:"bg", "icononly", 0.0);
7139 program { name: "icon_hide";
7140 signal: "elm,state,icon,hidden";
7142 action: STATE_SET "default" 0.0;
7143 target: "elm.swallow.content";
7144 target: "padding_after_icon";
7145 target: "icon_rect";
7148 program { name: "disable";
7149 signal: "elm,state,disabled";
7151 action: STATE_SET "disabled" 0.0;
7152 target: "button_image";
7154 after: "disable_text";
7156 program { name: "disable_text";
7160 get_state(PART:"elm.text", st, 30, vl);
7161 if (!strcmp(st, "visible"))
7162 set_state(PART:"elm.text", "disabled_visible", 0.0);
7164 set_state(PART:"elm.text", "disabled", 0.0);
7165 set_int(button_state, BUTTON_STATE_DISABLED);
7168 program { name: "enable";
7169 signal: "elm,state,enabled";
7171 action: STATE_SET "default" 0.0;
7172 target: "button_image";
7174 after: "enable_text";
7176 program { name: "enable_text";
7180 get_state(PART:"elm.text", st, 30, vl);
7181 if (!strcmp(st, "disabled_visible"))
7182 set_state(PART:"elm.text", "visible", 0.0);
7184 set_state(PART:"elm.text", "default", 0.0);
7185 set_int(button_state, BUTTON_STATE_ENABLED);
7188 program { name: "focused";
7189 //signal: "elm,action,focus";
7191 action: STATE_SET "focused" 0.0;
7192 target: "button_image";
7195 program { name: "unfocused";
7196 //signal: "elm,action,unfocus";
7198 action: STATE_SET "default" 0.0;
7199 target: "button_image";
7200 after: "unfocus_text";
7202 program { name: "unfocus_text";
7203 action: STATE_SET "visible" 0.0;
7209 /////////////////////////////////////////////////////////////////////////////////////////
7210 group { name: "elm/button/base/naviframe/title_icon/default";
7212 image: "00_Title_btn.png" COMP;
7213 image: "00_Title_btn_press.png" COMP;
7214 image: "00_winset_more.png" COMP;
7217 public button_state = BUTTON_STATE_ENABLED;
7220 part { name: "button_image";
7222 description { state: "default" 0.0;
7223 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7224 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7226 normal: "00_Title_btn.png";
7227 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_BORDER_INC;
7231 description { state: "clicked" 0.0;
7232 inherit: "default" 0.0;
7233 image.normal: "00_Title_btn_press.png";
7235 description { state: "disabled" 0.0;
7236 inherit: "default" 0.0;
7238 description { state: "focused" 0.0;
7239 inherit: "default" 0.0;
7240 image.normal: "00_Title_btn_press.png";
7243 part { name: "more_image";
7246 description { state: "default" 0.0;
7247 min: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7248 max: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7257 image.normal: "00_winset_more.png";
7259 description { state: "clicked" 0.0;
7260 inherit: "default" 0.0;
7263 part { name: "over2";
7266 ignore_flags: ON_HOLD;
7267 description { state: "default" 0.0;
7271 part { name: "over3";
7274 description { state: "default" 0.0;
7278 part { name: "disabler";
7280 description { state: "default" 0.0;
7284 description { state: "disabled" 0.0;
7285 inherit: "default" 0.0;
7291 program { name: "button_click";
7292 signal: "mouse,down,1";
7294 action: SIGNAL_EMIT "elm,action,press" "";
7295 after: "button_click_anim";
7297 program { name: "button_click_anim";
7298 action: STATE_SET "clicked" 0.0;
7299 target: "button_image";
7301 program { name: "button_unpress";
7302 action: SIGNAL_EMIT "elm,action,unpress" "";
7304 program { name: "button_mouseout_clicked";
7305 signal: "mouse,up,1";
7308 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7309 set_state(PART:"button_image", "default", 0.0);
7311 after: button_unpress;
7313 program { name: "button_unclick3";
7314 signal: "mouse,clicked,1";
7316 action: SIGNAL_EMIT "elm,action,click" "";
7318 program { name: "disable";
7319 signal: "elm,state,disabled";
7321 action: STATE_SET "disabled" 0.0;
7322 target: "button_image";
7324 after: "disable_button";
7326 program { name: "disable_button";
7328 set_int(button_state, BUTTON_STATE_DISABLED);
7331 program { name: "enable";
7332 signal: "elm,state,enabled";
7334 action: STATE_SET "default" 0.0;
7335 target: "button_image";
7337 after: "enable_button";
7339 program { name: "enable_button";
7341 set_int(button_state, BUTTON_STATE_ENABLED);
7347 ///////////////////////////////////////////////////////////////////////////////////////
7348 group { name: "elm/button/base/controlbar/vertical";
7350 public button_state = BUTTON_STATE_ENABLED;
7353 style { name: "controlbar_style";
7354 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";
7357 tag: "hilight" "+ font=SLP:style=Bold";
7358 tag: "b" "+ font=SLP:style=Bold";
7363 part { name: "button_image";
7367 description { state: "default" 0.0;
7376 name: "padding_left_top";
7380 description { state: "default" 0.0;
7382 rel1.relative: 0.0 0.0;
7383 rel2.relative: 0.0 0.0;
7390 name: "padding_right_bottom";
7394 description { state: "default" 0.0;
7396 rel1.relative: 1.0 1.0;
7397 rel2.relative: 1.0 1.0;
7408 description { state: "default" 0.0;
7412 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7413 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7417 description { state: "visible" 0.0;
7419 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7421 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7422 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7426 description { state: "icononly" 0.0;
7427 inherit: "default" 0.0;
7431 name: "padding_after_icon";
7435 description { state: "default" 0.0; //when only icon or no icon is there
7437 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7438 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7443 description { state: "visible" 0.0;
7446 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7447 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7452 description { state: "icononly" 0.0;
7453 inherit: "default" 0.0;
7457 name: "padding_before_text";
7461 description { state: "default" 0.0; //when only icon or no icon is there
7463 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
7464 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
7470 part { name: "elm.swallow.content";
7473 clip_to: "disabler";
7474 description { state: "default" 0.0;
7477 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7478 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7481 description { state: "visible" 0.0;
7484 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7485 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7487 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7488 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
7490 aspect_preference: HORIZONTAL;
7492 description { state: "icononly" 0.0;
7494 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7495 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7496 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7497 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7500 aspect_preference: HORIZONTAL;
7503 part { name: "elm.text";
7507 clip_to: "disabler";
7508 description { state: "default" 0.0;
7510 rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
7511 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7513 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7516 style: "controlbar_style";
7521 description { state: "visible" 0.0;
7522 inherit: "default" 0.0;
7525 description { state: "clicked" 0.0;
7526 inherit: "default" 0.0;
7528 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7530 description { state: "focused" 0.0;
7531 inherit: "default" 0.0;
7533 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7536 part { name: "over2";
7539 ignore_flags: ON_HOLD;
7540 description { state: "default" 0.0;
7543 description { state: "disabled" 0.0;
7544 inherit: "default" 0.0;
7548 part { name: "over3";
7551 description { state: "default" 0.0;
7555 part { name: "disabler";
7557 description { state: "default" 0.0;
7558 color: 255 255 255 255;
7561 description { state: "disabled" 0.0;
7562 inherit: "default" 0.0;
7563 color: 255 255 255 127;
7569 program { name: "button_click";
7570 signal: "mouse,down,1";
7572 action: SIGNAL_EMIT "elm,action,press" "";
7573 after: "button_click_anim";
7575 program { name: "button_click_anim";
7576 action: STATE_SET "clicked" 0.0;
7577 target: "button_image";
7578 after: "text_clicked";
7580 program { name: "text_clicked";
7584 get_state(PART:"elm.text", st, 30, vl);
7585 if (!strcmp(st, "visible"))
7586 set_state(PART:"elm.text", "clicked", 0.0);
7589 program { name: "button_unpress";
7590 action: SIGNAL_EMIT "elm,action,unpress" "";
7592 program { name: "button_mouseout_clicked";
7593 signal: "mouse,up,1";
7598 get_state(PART:"elm.swallow.content", st, 30, vl);
7599 if (strcmp(st, "icononly"))
7601 emit("elm,action,default,text,set", "");
7602 set_state(PART:"elm.text", "visible", 0.0);
7604 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7605 set_state(PART:"button_image", "default", 0.0);
7607 after: button_unpress;
7609 program { name: "button_unclick3";
7610 signal: "mouse,clicked,1";
7612 action: SIGNAL_EMIT "elm,action,click" "";
7614 program { name: "text_show";
7615 signal: "elm,state,text,visible";
7620 get_state(PART:"elm.swallow.content", st, 30, vl);
7621 if (!strcmp(st, "icononly"))
7623 set_state(PART:"elm.swallow.content", "visible", 0.0);
7624 set_state(PART:"icon_rect", "visible", 0.0);
7625 set_state(PART:"padding_after_icon", "visible", 0.0);
7627 set_state(PART:"elm.text", "visible", 0.0);
7630 program { name: "text_hide";
7631 signal: "elm,state,text,hidden";
7636 get_state(PART:"elm.swallow.content", st, 30, vl);
7637 if (!strcmp(st, "visible"))
7639 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7640 set_state(PART:"icon_rect", "icononly", 0.0);
7641 set_state(PART:"padding_after_icon", "icononly", 0.0);
7643 set_state(PART:"elm.text", "default", 0.0);
7646 program { name: "icon_show";
7647 signal: "elm,state,icon,visible";
7652 get_state(PART:"elm.text", st, 30, vl);
7653 if (!strcmp(st, "visible"))
7655 set_state(PART:"elm.swallow.content", "visible", 0.0);
7656 set_state(PART:"icon_rect", "visible", 0.0);
7657 set_state(PART:"padding_after_icon", "visible", 0.0);
7661 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7662 set_state(PART:"icon_rect", "icononly", 0.0);
7663 set_state(PART:"padding_after_icon", "icononly", 0.0);
7667 program { name: "icon_hide";
7668 signal: "elm,state,icon,hidden";
7670 action: STATE_SET "default" 0.0;
7671 target: "elm.swallow.content";
7672 target: "icon_rect";
7673 target: "padding_after_icon";
7675 program { name: "disable";
7676 signal: "elm,state,disabled";
7678 action: STATE_SET "disabled" 0.0;
7681 after: "disable_text";
7683 program { name: "disable_text";
7687 set_int(button_state, BUTTON_STATE_DISABLED);
7688 get_state(PART:"elm.text", st, 30, vl);
7689 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7690 set_state(PART:"elm.text", "visible", 0.0);
7693 program { name: "enable";
7694 signal: "elm,state,enabled";
7696 action: STATE_SET "default" 0.0;
7699 after: "enable_text";
7701 program { name: "enable_text";
7705 set_int(button_state, BUTTON_STATE_ENABLED);
7706 get_state(PART:"elm.text", st, 30, vl);
7707 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7708 set_state(PART:"elm.text", "visible", 0.0);
7711 program { name: "focused";
7712 action: STATE_SET "focused" 0.0;
7713 target: "button_image";
7716 program { name: "unfocused";
7717 action: STATE_SET "default" 0.0;
7718 target: "button_image";
7719 after: "unfocus_text";
7721 program { name: "unfocus_text";
7722 action: STATE_SET "visible" 0.0;
7728 ///////////////////////////////////////////////////////////////////////////////////////
7729 group { name: "elm/button/base/controlbar/horizontal_center";
7731 public button_state = BUTTON_STATE_ENABLED;
7734 part { name: "button_image";
7738 description { state: "default" 0.0;
7745 description { state: "clicked" 0.0;
7746 inherit: "default" 0.0;
7751 name: "padding_left_top";
7755 description { state: "default" 0.0;
7757 rel1.relative: 0.0 0.0;
7758 rel2.relative: 0.0 0.0;
7765 name: "padding_right_bottom";
7769 description { state: "default" 0.0;
7771 rel1.relative: 1.0 1.0;
7772 rel2.relative: 1.0 1.0;
7783 description { state: "default" 0.0;
7787 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7788 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7792 description { state: "visible" 0.0;
7794 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7796 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7797 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7801 description { state: "icononly" 0.0;
7802 inherit: "default" 0.0;
7803 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7807 name: "padding_after_icon";
7811 description { state: "default" 0.0; //when only icon or no icon is there
7813 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7814 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7819 description { state: "visible" 0.0;
7822 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7823 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7828 description { state: "icononly" 0.0;
7829 inherit: "default" 0.0;
7833 name: "padding_before_text";
7837 description { state: "default" 0.0; //when only icon or no icon is there
7839 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7840 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7846 part { name: "elm.swallow.content";
7849 clip_to: "disabler";
7850 description { state: "default" 0.0;
7853 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7854 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7857 description { state: "visible" 0.0;
7860 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7861 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7863 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7864 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7866 aspect_preference: VERTICAL;
7868 description { state: "icononly" 0.0;
7870 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7871 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7872 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7873 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7876 aspect_preference: VERTICAL;
7879 part { name: "elm.text";
7883 clip_to: "disabler";
7884 description { state: "default" 0.0;
7886 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7887 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7889 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7891 font: "SLP:style=Medium";
7892 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
7898 description { state: "visible" 0.0;
7899 inherit: "default" 0.0;
7902 description { state: "clicked" 0.0;
7903 inherit: "default" 0.0;
7907 description { state: "focused" 0.0;
7908 inherit: "default" 0.0;
7911 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7914 part { name: "over2";
7917 ignore_flags: ON_HOLD;
7918 description { state: "default" 0.0;
7921 description { state: "disabled" 0.0;
7922 inherit: "default" 0.0;
7926 part { name: "over3";
7929 description { state: "default" 0.0;
7933 part { name: "disabler";
7935 description { state: "default" 0.0;
7936 color: 255 255 255 255;
7938 description { state: "disabled" 0.0;
7939 color: 255 255 255 127;
7944 program { name: "button_click";
7945 signal: "mouse,down,1";
7947 action: SIGNAL_EMIT "elm,action,press" "";
7948 after: "button_click_anim";
7950 program { name: "button_click_anim";
7951 action: STATE_SET "clicked" 0.0;
7952 target: "button_image";
7953 after: "text_clicked";
7955 program { name: "text_clicked";
7959 get_state(PART:"elm.text", st, 30, vl);
7960 if (!strcmp(st, "visible"))
7961 set_state(PART:"elm.text", "clicked", 0.0);
7964 program { name: "button_unpress";
7965 action: SIGNAL_EMIT "elm,action,unpress" "";
7967 program { name: "button_mouseout_clicked";
7968 signal: "mouse,up,1";
7973 get_state(PART:"elm.swallow.content", st, 30, vl);
7974 if (strcmp(st, "icononly"))
7976 emit("elm,action,default,text,set", "");
7977 set_state(PART:"elm.text", "visible", 0.0);
7979 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7980 set_state(PART:"button_image", "default", 0.0);
7982 after: button_unpress;
7984 program { name: "button_unclick3";
7985 signal: "mouse,clicked,1";
7987 action: SIGNAL_EMIT "elm,action,click" "";
7989 program { name: "text_show";
7990 signal: "elm,state,text,visible";
7995 get_state(PART:"elm.swallow.content", st, 30, vl);
7996 if (!strcmp(st, "icononly"))
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);
8002 set_state(PART:"elm.text", "visible", 0.0);
8005 program { name: "text_hide";
8006 signal: "elm,state,text,hidden";
8011 get_state(PART:"elm.swallow.content", st, 30, vl);
8012 if (!strcmp(st, "visible"))
8014 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8015 set_state(PART:"icon_rect", "icononly", 0.0);
8016 set_state(PART:"padding_after_icon", "icononly", 0.0);
8018 set_state(PART:"elm.text", "default", 0.0);
8021 program { name: "icon_show";
8022 signal: "elm,state,icon,visible";
8027 get_state(PART:"elm.text", st, 30, vl);
8028 if (!strcmp(st, "visible"))
8030 set_state(PART:"elm.swallow.content", "visible", 0.0);
8031 set_state(PART:"icon_rect", "visible", 0.0);
8032 set_state(PART:"padding_after_icon", "visible", 0.0);
8036 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8037 set_state(PART:"icon_rect", "icononly", 0.0);
8038 set_state(PART:"padding_after_icon", "icononly", 0.0);
8042 program { name: "icon_hide";
8043 signal: "elm,state,icon,hidden";
8045 action: STATE_SET "default" 0.0;
8046 target: "elm.swallow.content";
8047 target: "icon_rect";
8048 target: "padding_after_icon";
8050 program { name: "disable";
8051 signal: "elm,state,disabled";
8053 action: STATE_SET "disabled" 0.0;
8056 after: "disable_text";
8058 program { name: "disable_text";
8062 set_int(button_state, BUTTON_STATE_DISABLED);
8063 get_state(PART:"elm.text", st, 30, vl);
8064 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8065 set_state(PART:"elm.text", "visible", 0.0);
8068 program { name: "enable";
8069 signal: "elm,state,enabled";
8071 action: STATE_SET "default" 0.0;
8074 after: "enable_text";
8076 program { name: "enable_text";
8080 set_int(button_state, BUTTON_STATE_ENABLED);
8081 get_state(PART:"elm.text", st, 30, vl);
8082 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8083 set_state(PART:"elm.text", "visible", 0.0);
8086 program { name: "focused";
8087 action: STATE_SET "focused" 0.0;
8088 target: "button_image";
8091 program { name: "unfocused";
8092 action: STATE_SET "default" 0.0;
8093 target: "button_image";
8094 after: "unfocus_text";
8096 program { name: "unfocus_text";
8097 action: STATE_SET "visible" 0.0;
8103 ///////////////////////////////////////////////////////////////////////////////////////
8104 group { name: "elm/button/base/controlbar/horizontal_left";
8106 public button_state = BUTTON_STATE_ENABLED;
8109 part { name: "button_image";
8113 description { state: "default" 0.0;
8120 description { state: "clicked" 0.0;
8121 inherit: "default" 0.0;
8126 name: "padding_left_top";
8130 description { state: "default" 0.0;
8132 rel1.relative: 0.0 0.0;
8133 rel2.relative: 0.0 0.0;
8140 name: "padding_right_bottom";
8144 description { state: "default" 0.0;
8146 rel1.relative: 1.0 1.0;
8147 rel2.relative: 1.0 1.0;
8158 description { state: "default" 0.0;
8162 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8163 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8167 description { state: "visible" 0.0;
8169 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8171 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8172 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8176 description { state: "icononly" 0.0;
8177 inherit: "default" 0.0;
8181 name: "padding_after_icon";
8185 description { state: "default" 0.0; //when only icon or no icon is there
8187 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8188 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8193 description { state: "visible" 0.0;
8196 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8197 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8202 description { state: "icononly" 0.0;
8203 inherit: "default" 0.0;
8207 name: "padding_before_text";
8211 description { state: "default" 0.0; //when only icon or no icon is there
8213 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8214 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8220 part { name: "elm.swallow.content";
8223 clip_to: "disabler";
8224 description { state: "default" 0.0;
8227 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8228 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8231 description { state: "visible" 0.0;
8234 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8235 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8237 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8238 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8240 aspect_preference: VERTICAL;
8242 description { state: "icononly" 0.0;
8244 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8245 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8246 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8247 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8250 aspect_preference: VERTICAL;
8253 part { name: "elm.text";
8257 clip_to: "disabler";
8258 description { state: "default" 0.0;
8260 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8261 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8263 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8265 font: "SLP:style=Medium";
8272 description { state: "visible" 0.0;
8273 inherit: "default" 0.0;
8276 description { state: "clicked" 0.0;
8277 inherit: "default" 0.0;
8281 description { state: "focused" 0.0;
8282 inherit: "default" 0.0;
8285 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8288 part { name: "over2";
8292 ignore_flags: ON_HOLD;
8293 description { state: "default" 0.0;
8297 part { name: "over3";
8301 description { state: "default" 0.0;
8305 part { name: "disabler";
8307 description { state: "default" 0.0;
8308 color: 255 255 255 255;
8310 description { state: "disabled" 0.0;
8311 color: 255 255 255 127;
8316 program { name: "button_click";
8317 signal: "mouse,down,1";
8319 action: SIGNAL_EMIT "elm,action,press" "";
8320 after: "button_click_anim";
8322 program { name: "button_click_anim";
8323 action: STATE_SET "clicked" 0.0;
8324 target: "button_image";
8325 after: "text_clicked";
8327 program { name: "text_clicked";
8331 get_state(PART:"elm.text", st, 30, vl);
8332 if (!strcmp(st, "visible"))
8333 set_state(PART:"elm.text", "clicked", 0.0);
8336 program { name: "button_unpress";
8337 action: SIGNAL_EMIT "elm,action,unpress" "";
8339 program { name: "button_mouseout_clicked";
8340 signal: "mouse,up,1";
8345 get_state(PART:"elm.swallow.content", st, 30, vl);
8346 if (strcmp(st, "icononly"))
8348 emit("elm,action,default,text,set", "");
8349 set_state(PART:"elm.text", "visible", 0.0);
8351 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8352 set_state(PART:"button_image", "default", 0.0);
8354 after: button_unpress;
8356 program { name: "button_unclick3";
8357 signal: "mouse,clicked,1";
8359 action: SIGNAL_EMIT "elm,action,click" "";
8361 program { name: "text_show";
8362 signal: "elm,state,text,visible";
8367 get_state(PART:"elm.swallow.content", st, 30, vl);
8368 if (!strcmp(st, "icononly"))
8370 set_state(PART:"elm.swallow.content", "visible", 0.0);
8371 set_state(PART:"icon_rect", "visible", 0.0);
8372 set_state(PART:"padding_after_icon", "visible", 0.0);
8374 set_state(PART:"elm.text", "visible", 0.0);
8377 program { name: "text_hide";
8378 signal: "elm,state,text,hidden";
8383 get_state(PART:"elm.swallow.content", st, 30, vl);
8384 if (!strcmp(st, "visible"))
8386 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8387 set_state(PART:"icon_rect", "icononly", 0.0);
8388 set_state(PART:"padding_after_icon", "icononly", 0.0);
8390 set_state(PART:"elm.text", "default", 0.0);
8393 program { name: "icon_show";
8394 signal: "elm,state,icon,visible";
8399 get_state(PART:"elm.text", st, 30, vl);
8400 if (!strcmp(st, "visible"))
8402 set_state(PART:"elm.swallow.content", "visible", 0.0);
8403 set_state(PART:"icon_rect", "visible", 0.0);
8404 set_state(PART:"padding_after_icon", "visible", 0.0);
8408 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8409 set_state(PART:"icon_rect", "icononly", 0.0);
8410 set_state(PART:"padding_after_icon", "icononly", 0.0);
8414 program { name: "icon_hide";
8415 signal: "elm,state,icon,hidden";
8417 action: STATE_SET "default" 0.0;
8418 target: "elm.swallow.content";
8419 target: "icon_rect";
8420 target: "padding_after_icon";
8422 program { name: "disable";
8423 signal: "elm,state,disabled";
8425 action: STATE_SET "disabled" 0.0;
8427 after: "disable_text";
8429 program { name: "disable_text";
8433 set_int(button_state, BUTTON_STATE_DISABLED);
8434 get_state(PART:"elm.text", st, 30, vl);
8435 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8436 set_state(PART:"elm.text", "visible", 0.0);
8439 program { name: "enable";
8440 signal: "elm,state,enabled";
8442 action: STATE_SET "default" 0.0;
8444 after: "enable_text";
8446 program { name: "enable_text";
8450 set_int(button_state, BUTTON_STATE_ENABLED);
8451 get_state(PART:"elm.text", st, 30, vl);
8452 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8453 set_state(PART:"elm.text", "visible", 0.0);
8456 program { name: "focused";
8457 action: STATE_SET "focused" 0.0;
8458 target: "button_image";
8461 program { name: "unfocused";
8462 action: STATE_SET "default" 0.0;
8463 target: "button_image";
8464 after: "unfocus_text";
8466 program { name: "unfocus_text";
8467 action: STATE_SET "visible" 0.0;
8473 ///////////////////////////////////////////////////////////////////////////////////////
8474 group { name: "elm/button/base/controlbar/horizontal_right";
8476 public button_state = BUTTON_STATE_ENABLED;
8479 part { name: "button_image";
8483 description { state: "default" 0.0;
8490 description { state: "clicked" 0.0;
8491 inherit: "default" 0.0;
8496 name: "padding_left_top";
8500 description { state: "default" 0.0;
8502 rel1.relative: 0.0 0.0;
8503 rel2.relative: 0.0 0.0;
8510 name: "padding_right_bottom";
8514 description { state: "default" 0.0;
8516 rel1.relative: 1.0 1.0;
8517 rel2.relative: 1.0 1.0;
8528 description { state: "default" 0.0;
8532 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8533 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8537 description { state: "visible" 0.0;
8539 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8541 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8542 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8546 description { state: "icononly" 0.0;
8547 inherit: "default" 0.0;
8551 name: "padding_after_icon";
8555 description { state: "default" 0.0; //when only icon or no icon is there
8557 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8558 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8563 description { state: "visible" 0.0;
8566 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8567 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8572 description { state: "icononly" 0.0;
8573 inherit: "default" 0.0;
8577 name: "padding_before_text";
8581 description { state: "default" 0.0; //when only icon or no icon is there
8583 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8584 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8590 part { name: "elm.swallow.content";
8593 clip_to: "disabler";
8594 description { state: "default" 0.0;
8597 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8598 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8601 description { state: "visible" 0.0;
8604 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8605 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8607 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8608 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8610 aspect_preference: VERTICAL;
8612 description { state: "icononly" 0.0;
8614 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8615 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8616 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8617 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8620 aspect_preference: VERTICAL;
8623 part { name: "elm.text";
8627 clip_to: "disabler";
8628 description { state: "default" 0.0;
8630 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8631 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8633 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8635 font: "SLP:style=Medium";
8642 description { state: "visible" 0.0;
8643 inherit: "default" 0.0;
8646 description { state: "clicked" 0.0;
8647 inherit: "default" 0.0;
8651 description { state: "focused" 0.0;
8652 inherit: "default" 0.0;
8655 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8658 part { name: "over2";
8662 ignore_flags: ON_HOLD;
8663 description { state: "default" 0.0;
8667 part { name: "over3";
8671 description { state: "default" 0.0;
8675 part { name: "disabler";
8677 description { state: "default" 0.0;
8678 color: 255 255 255 255;
8680 description { state: "disabled" 0.0;
8681 color: 255 255 255 127;
8686 program { name: "button_click";
8687 signal: "mouse,down,1";
8689 action: SIGNAL_EMIT "elm,action,press" "";
8690 after: "button_click_anim";
8692 program { name: "button_click_anim";
8693 action: STATE_SET "clicked" 0.0;
8694 target: "button_image";
8695 after: "text_clicked";
8697 program { name: "text_clicked";
8701 get_state(PART:"elm.text", st, 30, vl);
8702 if (!strcmp(st, "visible"))
8703 set_state(PART:"elm.text", "clicked", 0.0);
8706 program { name: "button_unpress";
8707 action: SIGNAL_EMIT "elm,action,unpress" "";
8709 program { name: "button_mouseout_clicked";
8710 signal: "mouse,up,1";
8715 get_state(PART:"elm.swallow.content", st, 30, vl);
8716 if (strcmp(st, "icononly"))
8718 emit("elm,action,default,text,set", "");
8719 set_state(PART:"elm.text", "visible", 0.0);
8721 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8722 set_state(PART:"button_image", "default", 0.0);
8724 after: button_unpress;
8726 program { name: "button_unclick3";
8727 signal: "mouse,clicked,1";
8729 action: SIGNAL_EMIT "elm,action,click" "";
8731 program { name: "text_show";
8732 signal: "elm,state,text,visible";
8737 get_state(PART:"elm.swallow.content", st, 30, vl);
8738 if (!strcmp(st, "icononly"))
8740 set_state(PART:"elm.swallow.content", "visible", 0.0);
8741 set_state(PART:"icon_rect", "visible", 0.0);
8742 set_state(PART:"padding_after_icon", "visible", 0.0);
8744 set_state(PART:"elm.text", "visible", 0.0);
8747 program { name: "text_hide";
8748 signal: "elm,state,text,hidden";
8753 get_state(PART:"elm.swallow.content", st, 30, vl);
8754 if (!strcmp(st, "visible"))
8756 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8757 set_state(PART:"icon_rect", "icononly", 0.0);
8758 set_state(PART:"padding_after_icon", "icononly", 0.0);
8760 set_state(PART:"elm.text", "default", 0.0);
8763 program { name: "icon_show";
8764 signal: "elm,state,icon,visible";
8769 get_state(PART:"elm.text", st, 30, vl);
8770 if (!strcmp(st, "visible"))
8772 set_state(PART:"elm.swallow.content", "visible", 0.0);
8773 set_state(PART:"icon_rect", "visible", 0.0);
8774 set_state(PART:"padding_after_icon", "visible", 0.0);
8778 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8779 set_state(PART:"icon_rect", "icononly", 0.0);
8780 set_state(PART:"padding_after_icon", "icononly", 0.0);
8784 program { name: "icon_hide";
8785 signal: "elm,state,icon,hidden";
8787 action: STATE_SET "default" 0.0;
8788 target: "elm.swallow.content";
8789 target: "icon_rect";
8790 target: "padding_after_icon";
8792 program { name: "disable";
8793 signal: "elm,state,disabled";
8795 action: STATE_SET "disabled" 0.0;
8797 after: "disable_text";
8799 program { name: "disable_text";
8803 set_int(button_state, BUTTON_STATE_DISABLED);
8804 get_state(PART:"elm.text", st, 30, vl);
8805 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8806 set_state(PART:"elm.text", "visible", 0.0);
8809 program { name: "enable";
8810 signal: "elm,state,enabled";
8812 action: STATE_SET "default" 0.0;
8814 after: "enable_text";
8816 program { name: "enable_text";
8820 set_int(button_state, BUTTON_STATE_ENABLED);
8821 get_state(PART:"elm.text", st, 30, vl);
8822 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8823 set_state(PART:"elm.text", "visible", 0.0);
8826 program { name: "focused";
8827 action: STATE_SET "focused" 0.0;
8828 target: "button_image";
8831 program { name: "unfocused";
8832 action: STATE_SET "default" 0.0;
8833 target: "button_image";
8834 after: "unfocus_text";
8836 program { name: "unfocus_text";
8837 action: STATE_SET "visible" 0.0;
8843 ///////////////////////////////////////////////////////////////////////////////////////
8844 group { name: "elm/button/base/tickernoti";
8846 image: "00_button_06_normal.png" COMP;
8847 image: "00_button_06_press.png" COMP;
8848 image: "00_button_06_dim.png" COMP;
8851 public button_state = BUTTON_STATE_ENABLED;
8854 part { name: "button_image";
8856 description { state: "default" 0.0;
8858 normal: "00_button_06_normal.png";
8859 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8863 description { state: "clicked" 0.0;
8864 inherit: "default" 0.0;
8866 normal: "00_button_06_press.png";
8869 description { state: "disabled" 0.0;
8870 inherit: "default" 0.0;
8872 normal: "00_button_06_dim.png";
8875 description { state: "focused" 0.0;
8876 inherit: "default" 0.0;
8878 normal: "00_button_06_press.png";
8882 part { name: "padding_left_top";
8886 description { state: "default" 0.0;
8891 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8900 description { state: "default" 0.0;
8901 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8904 description { state: "visible" 0.0;
8905 inherit: "default" 0.0;
8906 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8908 description { state: "icononly" 0.0;
8909 inherit: "default" 0.0;
8910 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8913 part { name: "padding_right_bottom";
8917 description { state: "default" 0.0;
8922 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8927 part { name: "icon_rect";
8931 description { state: "default" 0.0;
8937 to: "padding_left_top";
8941 to_x: "padding_left_top";
8942 to_y: "padding_right_bottom";
8946 description { state: "visible" 0.0;
8948 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8949 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8953 to: "padding_left_top";
8957 to_x: "padding_left_top";
8958 to_y: "padding_right_bottom";
8962 description { state: "icononly" 0.0;
8963 inherit: "default" 0.0;
8966 part { name: "padding_after_icon";
8970 description { state: "default" 0.0; //when only icon or no icon is there
8983 description { state: "visible" 0.0;
8994 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8996 description { state: "icononly" 0.0;
8997 inherit: "default" 0.0;
9000 part { name: "padding_before_text";
9004 description { state: "default" 0.0; //when only icon or no icon is there
9009 to_y: "padding_left_top";
9014 to_y: "padding_right_bottom";
9017 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9021 part { name: "elm.swallow.content";
9025 description { state: "default" 0.0;
9030 to: "padding_left_top";
9034 to_x: "padding_left_top";
9035 to_y: "padding_right_bottom";
9039 description { state: "visible" 0.0;
9041 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9042 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9046 to_x: "padding_before_text";
9047 to_y: "padding_left_top";
9051 to_x: "padding_before_text";
9052 to_y: "padding_right_bottom";
9055 description { state: "icononly" 0.0;
9056 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9057 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9061 part { name: "elm.text";
9066 description { state: "default" 0.0;
9070 to_x: "padding_after_icon";
9071 to_y: "padding_left_top";
9075 to: "padding_right_bottom";
9077 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9079 font: "SLP:style=Medium";
9080 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9085 description { state: "visible" 0.0;
9086 inherit: "default" 0.0;
9089 description { state: "clicked" 0.0;
9090 inherit: "default" 0.0;
9092 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9094 description { state: "disabled" 0.0;
9095 inherit: "default" 0.0;
9098 description { state: "disabled_visible" 0.0;
9099 inherit: "default" 0.0;
9100 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9103 description { state: "focused" 0.0;
9104 inherit: "default" 0.0;
9106 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9109 part { name: "over2";
9112 ignore_flags: ON_HOLD;
9113 description { state: "default" 0.0;
9117 part { name: "over3";
9120 description { state: "default" 0.0;
9124 part { name: "clipper";
9126 description { state: "default" 0.0;
9127 color: 255 255 255 255;
9130 part { name: "disabler";
9132 description { state: "default" 0.0;
9136 description { state: "disabled" 0.0;
9137 inherit: "default" 0.0;
9143 program { name: "button_click";
9144 signal: "mouse,down,1";
9146 action: SIGNAL_EMIT "elm,action,press" "";
9147 after: "button_click_anim";
9149 program { name: "button_click_anim";
9150 action: STATE_SET "clicked" 0.0;
9151 target: "button_image";
9152 after: "text_clicked";
9154 program { name: "text_clicked";
9158 get_state(PART:"elm.text", st, 30, vl);
9159 if (!strcmp(st, "visible"))
9160 set_state(PART:"elm.text", "clicked", 0.0);
9163 program { name: "button_unpress";
9164 action: SIGNAL_EMIT "elm,action,unpress" "";
9166 program { name: "button_mouseout_clicked";
9167 signal: "mouse,up,1";
9172 get_state(PART:"elm.swallow.content", st, 30, vl);
9173 if (strcmp(st, "icononly"))
9175 emit("elm,action,default,text,set", "");
9176 set_state(PART:"elm.text", "visible", 0.0);
9178 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9179 set_state(PART:"button_image", "default", 0.0);
9181 after: button_unpress;
9183 program { name: "button_unclick3";
9184 signal: "mouse,clicked,1";
9186 action: SIGNAL_EMIT "elm,action,click" "";
9188 program { name: "text_show";
9189 signal: "elm,state,text,visible";
9194 get_state(PART:"elm.swallow.content", st, 30, vl);
9195 if (!strcmp(st, "icononly"))
9197 set_state(PART:"elm.swallow.content", "visible", 0.0);
9198 set_state(PART:"icon_rect", "visible", 0.0);
9199 set_state(PART:"padding_after_icon", "visible", 0.0);
9200 set_state(PART:"bg", "visible", 0.0);
9202 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9203 set_state(PART:"elm.text", "visible", 0.0);
9205 set_state(PART:"elm.text", "disabled_visible", 0.0);
9208 program { name: "text_hide";
9209 signal: "elm,state,text,hidden";
9214 get_state(PART:"elm.swallow.content", st, 30, vl);
9215 if (!strcmp(st, "visible"))
9217 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9218 set_state(PART:"icon_rect", "icononly", 0.0);
9219 set_state(PART:"padding_after_icon", "icononly", 0.0);
9220 set_state(PART:"bg", "icononly", 0.0);
9222 set_state(PART:"elm.text", "default", 0.0);
9225 program { name: "icon_show";
9226 signal: "elm,state,icon,visible";
9231 get_state(PART:"elm.text", st, 30, vl);
9232 if (!strcmp(st, "visible"))
9234 set_state(PART:"elm.swallow.content", "visible", 0.0);
9235 set_state(PART:"icon_rect", "visible", 0.0);
9236 set_state(PART:"padding_after_icon", "visible", 0.0);
9237 set_state(PART:"bg", "visible", 0.0);
9241 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9242 set_state(PART:"icon_rect", "icononly", 0.0);
9243 set_state(PART:"padding_after_icon", "icononly", 0.0);
9244 set_state(PART:"bg", "icononly", 0.0);
9248 program { name: "icon_hide";
9249 signal: "elm,state,icon,hidden";
9251 action: STATE_SET "default" 0.0;
9252 target: "elm.swallow.content";
9253 target: "padding_after_icon";
9254 target: "icon_rect";
9257 program { name: "disable";
9258 signal: "elm,state,disabled";
9260 action: STATE_SET "disabled" 0.0;
9261 target: "button_image";
9263 after: "disable_text";
9265 program { name: "disable_text";
9269 get_state(PART:"elm.text", st, 30, vl);
9270 if (!strcmp(st, "visible"))
9271 set_state(PART:"elm.text", "disabled_visible", 0.0);
9273 set_state(PART:"elm.text", "disabled", 0.0);
9274 set_int(button_state, BUTTON_STATE_DISABLED);
9277 program { name: "enable";
9278 signal: "elm,state,enabled";
9280 action: STATE_SET "default" 0.0;
9281 target: "button_image";
9283 after: "enable_text";
9285 program { name: "enable_text";
9289 get_state(PART:"elm.text", st, 30, vl);
9290 if (!strcmp(st, "disabled_visible"))
9291 set_state(PART:"elm.text", "visible", 0.0);
9293 set_state(PART:"elm.text", "default", 0.0);
9294 set_int(button_state, BUTTON_STATE_ENABLED);
9297 program { name: "focused";
9298 //signal: "elm,action,focus";
9300 action: STATE_SET "focused" 0.0;
9301 target: "button_image";
9304 program { name: "unfocused";
9305 //signal: "elm,action,unfocus";
9307 action: STATE_SET "default" 0.0;
9308 target: "button_image";
9309 after: "unfocus_text";
9311 program { name: "unfocus_text";
9312 action: STATE_SET "visible" 0.0;
9318 ///////////////////////////////////////////////////////////////////////////////////////
9319 group { name: "elm/button/base/expandable_number";
9320 alias: "elm/button/base/text_only/expandable_number";
9322 image: "00_button_05_normal.png" COMP;
9323 image: "00_button_05_press.png" COMP;
9324 image: "00_button_05_dim.png" COMP;
9325 image: "00_arrow_expand.png" COMP;
9326 image: "00_arrow_expand_press.png" COMP;
9327 image: "00_arrow_expand_dim.png" COMP;
9330 public button_state = BUTTON_STATE_ENABLED;
9333 part { name: "button_image";
9336 description { state: "default" 0.0;
9337 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9338 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9340 normal: "00_button_05_normal.png";
9341 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9345 description { state: "clicked" 0.0;
9346 inherit: "default" 0.0;
9347 image.normal: "00_button_05_press.png";
9349 description { state: "disabled" 0.0;
9350 inherit: "default" 0.0;
9351 image.normal: "00_button_05_dim.png";
9353 description { state: "focused" 0.0;
9354 inherit: "default" 0.0;
9355 image.normal: "00_button_05_press.png";
9359 name: "padding_left_top";
9363 description { state: "default" 0.0;
9365 rel1.relative: 0.0 0.0;
9366 rel2.relative: 0.0 0.0;
9367 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9373 name: "padding_right_bottom";
9377 description { state: "default" 0.0;
9379 rel1.relative: 1.0 1.0;
9380 rel2.relative: 1.0 1.0;
9381 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9391 description { state: "default" 0.0;
9393 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9394 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9396 rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
9397 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
9403 name: "arrow_expand";
9406 description { state: "default" 0.0;
9408 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9409 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9411 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
9412 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9413 image.normal:"00_arrow_expand.png";
9415 description { state: "clicked" 0.0;
9416 inherit: "default" 0.0;
9417 image.normal:"00_arrow_expand_press.png";
9419 description { state: "disabled" 0.0;
9420 inherit: "default" 0.0;
9421 image.normal:"00_arrow_expand_dim.png";
9424 part { name: "elm.text";
9428 description { state: "default" 0.0;
9430 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9431 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9433 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9434 rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
9436 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9438 font: "SLP:style=Medium";
9439 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9446 description { state: "visible" 0.0;
9447 inherit: "default" 0.0;
9450 description { state: "clicked" 0.0;
9451 inherit: "default" 0.0;
9453 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9455 description { state: "disabled" 0.0;
9456 inherit: "default" 0.0;
9459 description { state: "disabled_visible" 0.0;
9460 inherit: "default" 0.0;
9461 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9464 description { state: "focused" 0.0;
9465 inherit: "default" 0.0;
9467 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9470 part { name: "over2";
9474 ignore_flags: ON_HOLD;
9475 description { state: "default" 0.0;
9479 part { name: "over3";
9483 description { state: "default" 0.0;
9487 part { name: "disabler";
9489 description { state: "default" 0.0;
9493 description { state: "disabled" 0.0;
9494 inherit: "default" 0.0;
9500 program { name: "button_click";
9501 signal: "mouse,down,1";
9503 action: SIGNAL_EMIT "elm,action,press" "";
9504 after: "button_click_anim";
9506 program { name: "button_click_anim";
9507 action: STATE_SET "clicked" 0.0;
9508 target: "button_image";
9509 target: "arrow_expand";
9510 after: "text_clicked";
9512 program { name: "text_clicked";
9516 get_state(PART:"elm.text", st, 30, vl);
9517 if (!strcmp(st, "visible"))
9518 set_state(PART:"elm.text", "clicked", 0.0);
9521 program { name: "button_unpress";
9522 action: SIGNAL_EMIT "elm,action,unpress" "";
9524 program { name: "button_mouseout_clicked";
9525 signal: "mouse,up,1";
9528 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9530 set_state(PART:"button_image", "default", 0.0);
9531 set_state(PART:"elm.text", "visible", 0.0);
9532 set_state(PART:"arrow_expand", "default", 0.0);
9535 after: button_unpress;
9537 program { name: "button_unclick3";
9538 signal: "mouse,clicked,1";
9540 action: SIGNAL_EMIT "elm,action,click" "";
9542 program { name: "text_show";
9543 signal: "elm,state,text,visible";
9546 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9547 set_state(PART:"elm.text", "visible", 0.0);
9549 set_state(PART:"elm.text", "disabled_visible", 0.0);
9552 program { name: "text_hide";
9553 signal: "elm,state,text,hidden";
9556 set_state(PART:"elm.text", "default", 0.0);
9559 program { name: "disable";
9560 signal: "elm,state,disabled";
9562 action: STATE_SET "disabled" 0.0;
9563 target: "button_image";
9565 after: "disable_text";
9567 program { name: "disable_text";
9571 get_state(PART:"elm.text", st, 30, vl);
9572 if (!strcmp(st, "visible"))
9573 set_state(PART:"elm.text", "disabled_visible", 0.0);
9575 set_state(PART:"elm.text", "disabled", 0.0);
9576 set_int(button_state, BUTTON_STATE_DISABLED);
9579 program { name: "enable";
9580 signal: "elm,state,enabled";
9582 action: STATE_SET "default" 0.0;
9583 target: "button_image";
9585 after: "enable_text";
9587 program { name: "enable_text";
9591 get_state(PART:"elm.text", st, 30, vl);
9592 if (!strcmp(st, "disabled_visible"))
9593 set_state(PART:"elm.text", "visible", 0.0);
9595 set_state(PART:"elm.text", "default", 0.0);
9596 set_int(button_state, BUTTON_STATE_ENABLED);
9599 program { name: "focused";
9600 //signal: "elm,action,focus";
9602 action: STATE_SET "focused" 0.0;
9603 target: "button_image";
9606 program { name: "unfocused";
9607 //signal: "elm,action,unfocus";
9609 action: STATE_SET "default" 0.0;
9610 target: "button_image";
9611 after: "unfocus_text";
9613 program { name: "unfocus_text";
9614 action: STATE_SET "visible" 0.0;
9620 #undef BUTTON_STATE_ENABLED
9621 #undef BUTTON_STATE_DISABLED