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 group { name: "elm/button/base/colorselector/left/default";
3856 image: "00_color_picker_btn_left.png" COMP;
3857 image: "00_color_picker_btn_left_press.png" COMP;
3858 image: "00_color_picker_btn_left_dim.png" COMP;
3861 public button_state = BUTTON_STATE_ENABLED;
3864 part { name: "button_image";
3867 description { state: "default" 0.0;
3870 normal: "00_color_picker_btn_left.png";
3871 border: COLORSELECTOR_BUTTON_BORDER;
3875 description { state: "clicked" 0.0;
3876 inherit: "default" 0.0;
3877 image.normal: "00_color_picker_btn_left_press.png";
3879 description { state: "disabled" 0.0;
3880 inherit: "default" 0.0;
3881 image.normal: "00_color_picker_btn_left_dim.png";
3883 description { state: "focused" 0.0;
3884 inherit: "default" 0.0;
3885 image.normal: "00_color_picker_btn_left_press.png";
3889 name: "padding_left_top";
3893 description { state: "default" 0.0;
3895 rel1.relative: 0.0 0.0;
3896 rel2.relative: 0.0 0.0;
3903 name: "padding_right_bottom";
3907 description { state: "default" 0.0;
3909 rel1.relative: 1.0 1.0;
3910 rel2.relative: 1.0 1.0;
3917 name: "padding_icon_text";
3921 description { state: "default" 0.0; //when only icon or no icon is there
3923 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3924 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3929 description { state: "icononly" 0.0;
3930 inherit: "default" 0.0;
3932 description { state: "visible" 0.0; //when icon is visible
3934 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3935 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3941 part { name: "elm.swallow.content";
3944 description { state: "default" 0.0;
3947 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3948 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3951 description { state: "visible" 0.0;
3955 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3956 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3958 aspect_preference: VERTICAL;
3960 description { state: "icononly" 0.0;
3963 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
3964 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
3967 aspect_preference: VERTICAL;
3970 part { name: "elm.text";
3974 description { state: "default" 0.0;
3976 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3977 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
3979 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3981 font: "SLP:style=Medium";
3987 description { state: "visible" 0.0;
3988 inherit: "default" 0.0;
3992 description { state: "clicked" 0.0;
3993 inherit: "default" 0.0;
3996 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3998 description { state: "disabled" 0.0;
3999 inherit: "default" 0.0;
4000 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4002 description { state: "disabled_visible" 0.0;
4003 inherit: "default" 0.0;
4004 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4008 description { state: "focused" 0.0;
4009 inherit: "default" 0.0;
4012 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
4015 part { name: "over2";
4019 ignore_flags: ON_HOLD;
4020 description { state: "default" 0.0;
4024 part { name: "over3";
4028 description { state: "default" 0.0;
4032 part { name: "disabler";
4034 description { state: "default" 0.0;
4038 description { state: "disabled" 0.0;
4039 inherit: "default" 0.0;
4045 program { name: "button_click";
4046 signal: "mouse,down,1";
4048 action: SIGNAL_EMIT "elm,action,press" "";
4049 after: "button_click_anim";
4051 program { name: "button_click_anim";
4052 action: STATE_SET "clicked" 0.0;
4053 target: "button_image";
4054 after: "text_clicked";
4056 program { name: "text_clicked";
4060 get_state(PART:"elm.text", st, 30, vl);
4061 if (!strcmp(st, "visible"))
4062 set_state(PART:"elm.text", "clicked", 0.0);
4065 program { name: "button_unpress";
4066 action: SIGNAL_EMIT "elm,action,unpress" "";
4068 program { name: "button_mouseout_clicked";
4069 signal: "mouse,up,1";
4074 get_state(PART:"elm.swallow.content", st, 30, vl);
4075 if (strcmp(st, "icononly"))
4077 emit("elm,action,default,text,set", "");
4078 set_state(PART:"elm.text", "visible", 0.0);
4080 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4081 set_state(PART:"button_image", "default", 0.0);
4083 after: button_unpress;
4085 program { name: "button_unclick3";
4086 signal: "mouse,clicked,1";
4088 action: SIGNAL_EMIT "elm,action,click" "";
4090 program { name: "text_show";
4091 signal: "elm,state,text,visible";
4096 get_state(PART:"elm.swallow.content", st, 30, vl);
4097 if (!strcmp(st, "icononly"))
4099 set_state(PART:"elm.swallow.content", "visible", 0.0);
4100 set_state(PART:"padding_icon_text", "visible", 0.0);
4102 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4103 set_state(PART:"elm.text", "visible", 0.0);
4105 set_state(PART:"elm.text", "disabled_visible", 0.0);
4108 program { name: "text_hide";
4109 signal: "elm,state,text,hidden";
4114 get_state(PART:"elm.swallow.content", st, 30, vl);
4115 if (!strcmp(st, "visible"))
4117 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4118 set_state(PART:"padding_icon_text", "icononly", 0.0);
4120 set_state(PART:"elm.text", "default", 0.0);
4123 program { name: "icon_show";
4124 signal: "elm,state,icon,visible";
4129 get_state(PART:"elm.text", st, 30, vl);
4130 if (!strcmp(st, "visible"))
4132 set_state(PART:"elm.swallow.content", "visible", 0.0);
4133 set_state(PART:"padding_icon_text", "visible", 0.0);
4137 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4138 set_state(PART:"padding_icon_text", "icononly", 0.0);
4142 program { name: "icon_hide";
4143 signal: "elm,state,icon,hidden";
4145 action: STATE_SET "default" 0.0;
4146 target: "elm.swallow.content";
4147 target: "padding_icon_text";
4149 program { name: "disable";
4150 signal: "elm,state,disabled";
4152 action: STATE_SET "disabled" 0.0;
4153 target: "button_image";
4155 after: "disable_text";
4157 program { name: "disable_text";
4161 get_state(PART:"elm.text", st, 30, vl);
4162 if (!strcmp(st, "visible"))
4163 set_state(PART:"elm.text", "disabled_visible", 0.0);
4165 set_state(PART:"elm.text", "disabled", 0.0);
4166 set_int(button_state, BUTTON_STATE_DISABLED);
4169 program { name: "enable";
4170 signal: "elm,state,enabled";
4172 action: STATE_SET "default" 0.0;
4173 target: "button_image";
4175 after: "enable_text";
4177 program { name: "enable_text";
4181 get_state(PART:"elm.text", st, 30, vl);
4182 if (!strcmp(st, "disabled_visible"))
4183 set_state(PART:"elm.text", "visible", 0.0);
4185 set_state(PART:"elm.text", "default", 0.0);
4186 set_int(button_state, BUTTON_STATE_ENABLED);
4189 program { name: "focused";
4190 //signal: "elm,action,focus";
4192 action: STATE_SET "focused" 0.0;
4193 target: "button_image";
4196 program { name: "unfocused";
4197 //signal: "elm,action,unfocus";
4199 action: STATE_SET "default" 0.0;
4200 target: "button_image";
4201 after: "unfocus_text";
4203 program { name: "unfocus_text";
4204 action: STATE_SET "visible" 0.0;
4210 ///////////////////////////////////////////////////////////////////////////////////////
4211 group { name: "elm/button/base/colorselector/right/default";
4213 image: "00_color_picker_btn_right.png" COMP;
4214 image: "00_color_picker_btn_right_press.png" COMP;
4215 image: "00_color_picker_btn_right_dim.png" COMP;
4218 public button_state = BUTTON_STATE_ENABLED;
4221 part { name: "button_image";
4224 description { state: "default" 0.0;
4227 normal: "00_color_picker_btn_right.png";
4228 border: COLORSELECTOR_BUTTON_BORDER;
4232 description { state: "clicked" 0.0;
4233 inherit: "default" 0.0;
4234 image.normal: "00_color_picker_btn_right_press.png";
4236 description { state: "disabled" 0.0;
4237 inherit: "default" 0.0;
4238 image.normal: "00_color_picker_btn_right_dim.png";
4240 description { state: "focused" 0.0;
4241 inherit: "default" 0.0;
4242 image.normal: "00_color_picker_btn_right_press.png";
4246 name: "padding_left_top";
4250 description { state: "default" 0.0;
4252 rel1.relative: 0.0 0.0;
4253 rel2.relative: 0.0 0.0;
4260 name: "padding_right_bottom";
4264 description { state: "default" 0.0;
4266 rel1.relative: 1.0 1.0;
4267 rel2.relative: 1.0 1.0;
4274 name: "padding_icon_text";
4278 description { state: "default" 0.0; //when only icon or no icon is there
4280 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
4281 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
4286 description { state: "icononly" 0.0;
4287 inherit: "default" 0.0;
4289 description { state: "visible" 0.0; //when icon is visible
4291 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
4292 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
4298 part { name: "elm.swallow.content";
4301 description { state: "default" 0.0;
4304 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4305 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4308 description { state: "visible" 0.0;
4312 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4313 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4315 aspect_preference: VERTICAL;
4317 description { state: "icononly" 0.0;
4320 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
4321 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
4324 aspect_preference: VERTICAL;
4327 part { name: "elm.text";
4331 description { state: "default" 0.0;
4333 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4334 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
4336 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4338 font: "SLP:style=Medium";
4344 description { state: "visible" 0.0;
4345 inherit: "default" 0.0;
4349 description { state: "clicked" 0.0;
4350 inherit: "default" 0.0;
4353 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4355 description { state: "disabled" 0.0;
4356 inherit: "default" 0.0;
4357 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4359 description { state: "disabled_visible" 0.0;
4360 inherit: "default" 0.0;
4361 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4365 description { state: "focused" 0.0;
4366 inherit: "default" 0.0;
4369 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
4372 part { name: "over2";
4376 ignore_flags: ON_HOLD;
4377 description { state: "default" 0.0;
4381 part { name: "over3";
4385 description { state: "default" 0.0;
4389 part { name: "disabler";
4391 description { state: "default" 0.0;
4395 description { state: "disabled" 0.0;
4396 inherit: "default" 0.0;
4402 program { name: "button_click";
4403 signal: "mouse,down,1";
4405 action: SIGNAL_EMIT "elm,action,press" "";
4406 after: "button_click_anim";
4408 program { name: "button_click_anim";
4409 action: STATE_SET "clicked" 0.0;
4410 target: "button_image";
4411 after: "text_clicked";
4413 program { name: "text_clicked";
4417 get_state(PART:"elm.text", st, 30, vl);
4418 if (!strcmp(st, "visible"))
4419 set_state(PART:"elm.text", "clicked", 0.0);
4422 program { name: "button_unpress";
4423 action: SIGNAL_EMIT "elm,action,unpress" "";
4425 program { name: "button_mouseout_clicked";
4426 signal: "mouse,up,1";
4431 get_state(PART:"elm.swallow.content", st, 30, vl);
4432 if (strcmp(st, "icononly"))
4434 emit("elm,action,default,text,set", "");
4435 set_state(PART:"elm.text", "visible", 0.0);
4437 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4438 set_state(PART:"button_image", "default", 0.0);
4440 after: button_unpress;
4442 program { name: "button_unclick3";
4443 signal: "mouse,clicked,1";
4445 action: SIGNAL_EMIT "elm,action,click" "";
4447 program { name: "text_show";
4448 signal: "elm,state,text,visible";
4453 get_state(PART:"elm.swallow.content", st, 30, vl);
4454 if (!strcmp(st, "icononly"))
4456 set_state(PART:"elm.swallow.content", "visible", 0.0);
4457 set_state(PART:"padding_icon_text", "visible", 0.0);
4459 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4460 set_state(PART:"elm.text", "visible", 0.0);
4462 set_state(PART:"elm.text", "disabled_visible", 0.0);
4465 program { name: "text_hide";
4466 signal: "elm,state,text,hidden";
4471 get_state(PART:"elm.swallow.content", st, 30, vl);
4472 if (!strcmp(st, "visible"))
4474 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4475 set_state(PART:"padding_icon_text", "icononly", 0.0);
4477 set_state(PART:"elm.text", "default", 0.0);
4480 program { name: "icon_show";
4481 signal: "elm,state,icon,visible";
4486 get_state(PART:"elm.text", st, 30, vl);
4487 if (!strcmp(st, "visible"))
4489 set_state(PART:"elm.swallow.content", "visible", 0.0);
4490 set_state(PART:"padding_icon_text", "visible", 0.0);
4494 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4495 set_state(PART:"padding_icon_text", "icononly", 0.0);
4499 program { name: "icon_hide";
4500 signal: "elm,state,icon,hidden";
4502 action: STATE_SET "default" 0.0;
4503 target: "elm.swallow.content";
4504 target: "padding_icon_text";
4506 program { name: "disable";
4507 signal: "elm,state,disabled";
4509 action: STATE_SET "disabled" 0.0;
4510 target: "button_image";
4512 after: "disable_text";
4514 program { name: "disable_text";
4518 get_state(PART:"elm.text", st, 30, vl);
4519 if (!strcmp(st, "visible"))
4520 set_state(PART:"elm.text", "disabled_visible", 0.0);
4522 set_state(PART:"elm.text", "disabled", 0.0);
4523 set_int(button_state, BUTTON_STATE_DISABLED);
4526 program { name: "enable";
4527 signal: "elm,state,enabled";
4529 action: STATE_SET "default" 0.0;
4530 target: "button_image";
4532 after: "enable_text";
4534 program { name: "enable_text";
4538 get_state(PART:"elm.text", st, 30, vl);
4539 if (!strcmp(st, "disabled_visible"))
4540 set_state(PART:"elm.text", "visible", 0.0);
4542 set_state(PART:"elm.text", "default", 0.0);
4543 set_int(button_state, BUTTON_STATE_ENABLED);
4546 program { name: "focused";
4547 //signal: "elm,action,focus";
4549 action: STATE_SET "focused" 0.0;
4550 target: "button_image";
4553 program { name: "unfocused";
4554 //signal: "elm,action,unfocus";
4556 action: STATE_SET "default" 0.0;
4557 target: "button_image";
4558 after: "unfocus_text";
4560 program { name: "unfocus_text";
4561 action: STATE_SET "visible" 0.0;
4567 ///////////////////////////////////////////////////////////////////////////////////////
4568 group { name: "elm/button/base/hidden";
4570 image: "00_button_sweep.png" COMP;
4571 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4574 public button_state = BUTTON_STATE_ENABLED;
4577 part { name: "button_image";
4580 description { state: "default" 0.0;
4581 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4583 normal: "00_button_sweep.png";
4584 border: BUTTON_HIDDEN_BG_BORDER_INC;
4588 description { state: "clicked" 0.0;
4589 inherit: "default" 0.0;
4590 image.normal: "00_button_sweep_press.png";
4592 description { state: "disabled" 0.0;
4593 inherit: "default" 0.0;
4595 description { state: "focused" 0.0;
4596 inherit: "default" 0.0;
4597 image.normal: "00_button_sweep_press.png";
4601 name: "padding_left_top";
4605 description { state: "default" 0.0;
4607 rel1.relative: 0.0 0.0;
4608 rel2.relative: 0.0 0.0;
4609 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4615 name: "padding_right_bottom";
4619 description { state: "default" 0.0;
4621 rel1.relative: 1.0 1.0;
4622 rel2.relative: 1.0 1.0;
4623 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4633 description { state: "default" 0.0;
4635 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4637 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
4638 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
4644 name: "padding_icon_text";
4648 description { state: "default" 0.0; //when only icon or no icon is there
4650 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4651 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4656 description { state: "icononly" 0.0;
4657 inherit: "default" 0.0;
4659 description { state: "visible" 0.0; //when icon is visible
4661 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4662 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4664 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4668 part { name: "elm.swallow.content";
4671 description { state: "default" 0.0;
4674 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4675 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4678 description { state: "visible" 0.0;
4682 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4683 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4685 aspect_preference: VERTICAL;
4687 description { state: "icononly" 0.0;
4689 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4690 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4691 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4694 aspect_preference: VERTICAL;
4697 part { name: "elm.text";
4701 description { state: "default" 0.0;
4703 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4704 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
4706 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4708 font: "SLP:style=Medium";
4709 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4714 description { state: "visible" 0.0;
4715 inherit: "default" 0.0;
4717 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4719 description { state: "clicked" 0.0;
4720 inherit: "default" 0.0;
4723 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4725 description { state: "disabled" 0.0;
4726 inherit: "default" 0.0;
4729 description { state: "disabled_visible" 0.0;
4730 inherit: "default" 0.0;
4731 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4733 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4735 description { state: "focused" 0.0;
4736 inherit: "default" 0.0;
4739 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4742 part { name: "over2";
4746 ignore_flags: ON_HOLD;
4747 description { state: "default" 0.0;
4751 part { name: "over3";
4755 description { state: "default" 0.0;
4759 part { name: "disabler";
4761 description { state: "default" 0.0;
4765 description { state: "disabled" 0.0;
4766 inherit: "default" 0.0;
4772 program { name: "button_click";
4773 signal: "mouse,down,1";
4775 action: SIGNAL_EMIT "elm,action,press" "";
4776 after: "button_click_anim";
4778 program { name: "button_click_anim";
4779 action: STATE_SET "clicked" 0.0;
4780 target: "button_image";
4781 after: "text_clicked";
4783 program { name: "text_clicked";
4787 get_state(PART:"elm.text", st, 30, vl);
4788 if (!strcmp(st, "visible"))
4789 set_state(PART:"elm.text", "clicked", 0.0);
4792 program { name: "button_unpress";
4793 action: SIGNAL_EMIT "elm,action,unpress" "";
4795 program { name: "button_mouseout_clicked";
4796 signal: "mouse,up,1";
4801 get_state(PART:"elm.swallow.content", st, 30, vl);
4802 if (strcmp(st, "icononly"))
4804 emit("elm,action,default,text,set", "");
4805 set_state(PART:"elm.text", "visible", 0.0);
4807 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4808 set_state(PART:"button_image", "default", 0.0);
4810 after: button_unpress;
4812 program { name: "button_unclick3";
4813 signal: "mouse,clicked,1";
4815 action: SIGNAL_EMIT "elm,action,click" "";
4817 program { name: "text_show";
4818 signal: "elm,state,text,visible";
4823 get_state(PART:"elm.swallow.content", st, 30, vl);
4824 if (!strcmp(st, "icononly"))
4826 set_state(PART:"elm.swallow.content", "visible", 0.0);
4827 set_state(PART:"padding_icon_text", "visible", 0.0);
4829 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4830 set_state(PART:"elm.text", "visible", 0.0);
4832 set_state(PART:"elm.text", "disabled_visible", 0.0);
4835 program { name: "text_hide";
4836 signal: "elm,state,text,hidden";
4841 get_state(PART:"elm.swallow.content", st, 30, vl);
4842 if (!strcmp(st, "visible"))
4844 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4845 set_state(PART:"padding_icon_text", "icononly", 0.0);
4847 set_state(PART:"elm.text", "default", 0.0);
4850 program { name: "icon_show";
4851 signal: "elm,state,icon,visible";
4856 get_state(PART:"elm.text", st, 30, vl);
4857 if (!strcmp(st, "visible"))
4859 set_state(PART:"elm.swallow.content", "visible", 0.0);
4860 set_state(PART:"padding_icon_text", "visible", 0.0);
4864 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4865 set_state(PART:"padding_icon_text", "icononly", 0.0);
4869 program { name: "icon_hide";
4870 signal: "elm,state,icon,hidden";
4872 action: STATE_SET "default" 0.0;
4873 target: "elm.swallow.content";
4874 target: "padding_icon_text";
4876 program { name: "disable";
4877 signal: "elm,state,disabled";
4879 action: STATE_SET "disabled" 0.0;
4880 target: "button_image";
4882 after: "disable_text";
4884 program { name: "disable_text";
4888 get_state(PART:"elm.text", st, 30, vl);
4889 if (!strcmp(st, "visible"))
4890 set_state(PART:"elm.text", "disabled_visible", 0.0);
4892 set_state(PART:"elm.text", "disabled", 0.0);
4893 set_int(button_state, BUTTON_STATE_DISABLED);
4896 program { name: "enable";
4897 signal: "elm,state,enabled";
4899 action: STATE_SET "default" 0.0;
4900 target: "button_image";
4902 after: "enable_text";
4904 program { name: "enable_text";
4908 get_state(PART:"elm.text", st, 30, vl);
4909 if (!strcmp(st, "disabled_visible"))
4910 set_state(PART:"elm.text", "visible", 0.0);
4912 set_state(PART:"elm.text", "default", 0.0);
4913 set_int(button_state, BUTTON_STATE_ENABLED);
4916 program { name: "focused";
4917 //signal: "elm,action,focus";
4919 action: STATE_SET "focused" 0.0;
4920 target: "button_image";
4923 program { name: "unfocused";
4924 //signal: "elm,action,unfocus";
4926 action: STATE_SET "default" 0.0;
4927 target: "button_image";
4928 after: "unfocus_text";
4930 program { name: "unfocus_text";
4931 action: STATE_SET "visible" 0.0;
4937 ///////////////////////////////////////////////////////////////////////////////////////
4938 group { name: "elm/button/base/picker/bar/default";
4940 image: "00_picker_btn_normal.png" COMP;
4941 image: "00_picker_btn_press.png" COMP;
4944 public button_state = BUTTON_STATE_ENABLED;
4947 part { name: "button_image";
4949 description { state: "default" 0.0;
4950 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4952 normal: "00_picker_btn_normal.png";
4953 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4957 description { state: "clicked" 0.0;
4958 inherit: "default" 0.0;
4960 normal: "00_picker_btn_press.png";
4963 description { state: "disabled" 0.0;
4964 inherit: "default" 0.0;
4966 description { state: "focused" 0.0;
4967 inherit: "default" 0.0;
4969 normal: "00_picker_btn_press.png";
4973 part { name: "padding_left_top";
4977 description { state: "default" 0.0;
4982 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4987 part { name: "padding_right_bottom";
4991 description { state: "default" 0.0;
4996 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
5001 part { name: "icon_rect";
5005 description { state: "default" 0.0;
5006 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
5010 to_x: "elm.swallow.content";
5011 to_y: "padding_left_top";
5015 to_x: "elm.swallow.content";
5016 to_y: "padding_right_bottom";
5022 part { name: "padding_icon_text";
5026 description { state: "default" 0.0; //when only icon or no icon is there
5039 description { state: "icononly" 0.0;
5040 inherit: "default" 0.0;
5042 description { state: "visible" 0.0; //when icon is visible
5052 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5056 part { name: "elm.swallow.content";
5060 description { state: "default" 0.0;
5065 to: "padding_left_top";
5069 to_x: "padding_left_top";
5070 to_y: "padding_right_bottom";
5074 description { state: "visible" 0.0;
5079 to: "padding_left_top";
5083 to_x: "padding_left_top";
5084 to_y: "padding_right_bottom";
5087 aspect_preference: VERTICAL;
5089 description { state: "icononly" 0.0;
5090 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
5093 to: "padding_left_top";
5097 to_x: "padding_left_top";
5098 to_y: "padding_right_bottom";
5101 aspect_preference: VERTICAL;
5104 part { name: "elm.text";
5109 description { state: "default" 0.0;
5113 to_x: "padding_icon_text";
5114 to_y: "padding_left_top";
5118 to: "padding_right_bottom";
5120 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5122 font: "SLP:style=Medium";
5123 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
5128 description { state: "visible" 0.0;
5129 inherit: "default" 0.0;
5131 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5133 description { state: "clicked" 0.0;
5134 inherit: "default" 0.0;
5137 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5139 description { state: "disabled" 0.0;
5140 inherit: "default" 0.0;
5141 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5143 description { state: "disabled_visible" 0.0;
5144 inherit: "default" 0.0;
5145 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5147 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
5149 description { state: "focused" 0.0;
5150 inherit: "default" 0.0;
5153 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5156 part { name: "over2";
5159 ignore_flags: ON_HOLD;
5160 description { state: "default" 0.0;
5164 part { name: "over3";
5167 description { state: "default" 0.0;
5171 part { name: "clipper";
5173 description { state: "default" 0.0;
5174 color: 255 255 255 255;
5177 part { name: "disabler";
5179 description { state: "default" 0.0;
5183 description { state: "disabled" 0.0;
5184 inherit: "default" 0.0;
5190 program { name: "button_click";
5191 signal: "mouse,down,1";
5193 action: SIGNAL_EMIT "elm,action,press" "";
5194 after: "button_click_anim";
5196 program { name: "button_click_anim";
5197 action: STATE_SET "clicked" 0.0;
5198 target: "button_image";
5199 after: "text_clicked";
5201 program { name: "text_clicked";
5205 get_state(PART:"elm.text", st, 30, vl);
5206 if (!strcmp(st, "visible"))
5207 set_state(PART:"elm.text", "clicked", 0.0);
5210 program { name: "button_unpress";
5211 action: SIGNAL_EMIT "elm,action,unpress" "";
5213 program { name: "button_mouseout_clicked";
5214 signal: "mouse,up,1";
5219 get_state(PART:"elm.swallow.content", st, 30, vl);
5220 if (strcmp(st, "icononly"))
5222 emit("elm,action,default,text,set", "");
5223 set_state(PART:"elm.text", "visible", 0.0);
5225 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5226 set_state(PART:"button_image", "default", 0.0);
5228 after: button_unpress;
5230 program { name: "button_unclick3";
5231 signal: "mouse,clicked,1";
5233 action: SIGNAL_EMIT "elm,action,click" "";
5235 program { name: "text_show";
5236 signal: "elm,state,text,visible";
5241 get_state(PART:"elm.swallow.content", st, 30, vl);
5242 if (!strcmp(st, "icononly"))
5244 set_state(PART:"elm.swallow.content", "visible", 0.0);
5245 set_state(PART:"padding_icon_text", "visible", 0.0);
5247 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5248 set_state(PART:"elm.text", "visible", 0.0);
5250 set_state(PART:"elm.text", "disabled_visible", 0.0);
5253 program { name: "text_hide";
5254 signal: "elm,state,text,hidden";
5259 get_state(PART:"elm.swallow.content", st, 30, vl);
5260 if (!strcmp(st, "visible"))
5262 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5263 set_state(PART:"padding_icon_text", "icononly", 0.0);
5265 set_state(PART:"elm.text", "default", 0.0);
5268 program { name: "icon_show";
5269 signal: "elm,state,icon,visible";
5274 get_state(PART:"elm.text", st, 30, vl);
5275 if (!strcmp(st, "visible"))
5277 set_state(PART:"elm.swallow.content", "visible", 0.0);
5278 set_state(PART:"padding_icon_text", "visible", 0.0);
5282 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5283 set_state(PART:"padding_icon_text", "icononly", 0.0);
5287 program { name: "icon_hide";
5288 signal: "elm,state,icon,hidden";
5290 action: STATE_SET "default" 0.0;
5291 target: "elm.swallow.content";
5292 target: "padding_icon_text";
5294 program { name: "disable";
5295 signal: "elm,state,disabled";
5297 action: STATE_SET "disabled" 0.0;
5298 target: "button_image";
5300 after: "disable_text";
5302 program { name: "disable_text";
5306 get_state(PART:"elm.text", st, 30, vl);
5307 if (!strcmp(st, "visible"))
5308 set_state(PART:"elm.text", "disabled_visible", 0.0);
5310 set_state(PART:"elm.text", "disabled", 0.0);
5311 set_int(button_state, BUTTON_STATE_DISABLED);
5314 program { name: "enable";
5315 signal: "elm,state,enabled";
5317 action: STATE_SET "default" 0.0;
5318 target: "button_image";
5320 after: "enable_text";
5322 program { name: "enable_text";
5326 get_state(PART:"elm.text", st, 30, vl);
5327 if (!strcmp(st, "disabled_visible"))
5328 set_state(PART:"elm.text", "visible", 0.0);
5330 set_state(PART:"elm.text", "default", 0.0);
5331 set_int(button_state, BUTTON_STATE_ENABLED);
5334 program { name: "focused";
5335 //signal: "elm,action,focus";
5337 action: STATE_SET "focused" 0.0;
5338 target: "button_image";
5341 program { name: "unfocused";
5342 //signal: "elm,action,unfocus";
5344 action: STATE_SET "default" 0.0;
5345 target: "button_image";
5346 after: "unfocus_text";
5348 program { name: "unfocus_text";
5349 action: STATE_SET "visible" 0.0;
5355 ///////////////////////////////////////////////////////////////////////////////////////
5356 group { name: "elm/button/base/picker/prev/text/default";
5357 alias: "elm/button/base/picker/next/text/default";
5359 image: "00_picker_btn_normal.png" COMP;
5360 image: "00_picker_btn_press.png" COMP;
5363 public button_state = BUTTON_STATE_ENABLED;
5366 part { name: "button_image";
5368 description { state: "default" 0.0;
5369 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
5371 normal: "00_picker_btn_normal.png";
5372 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
5376 description { state: "clicked" 0.0;
5377 inherit: "default" 0.0;
5379 normal: "00_picker_btn_press.png";
5382 description { state: "disabled" 0.0;
5383 inherit: "default" 0.0;
5385 description { state: "focused" 0.0;
5386 inherit: "default" 0.0;
5388 normal: "00_picker_btn_press.png";
5392 part { name: "padding_left_top";
5396 description { state: "default" 0.0;
5401 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5406 part { name: "padding_right_bottom";
5410 description { state: "default" 0.0;
5415 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5420 part { name: "icon_rect";
5424 description { state: "default" 0.0;
5425 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5429 to_x: "elm.swallow.content";
5430 to_y: "padding_left_top";
5434 to_x: "elm.swallow.content";
5435 to_y: "padding_right_bottom";
5441 part { name: "padding_icon_text";
5445 description { state: "default" 0.0; //when only icon or no icon is there
5458 description { state: "icononly" 0.0;
5459 inherit: "default" 0.0;
5461 description { state: "visible" 0.0; //when icon is visible
5471 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5475 part { name: "elm.swallow.content";
5479 description { state: "default" 0.0;
5484 to: "padding_left_top";
5488 to_x: "padding_left_top";
5489 to_y: "padding_right_bottom";
5493 description { state: "visible" 0.0;
5498 to: "padding_left_top";
5502 to_x: "padding_left_top";
5503 to_y: "padding_right_bottom";
5506 aspect_preference: VERTICAL;
5508 description { state: "icononly" 0.0;
5509 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5512 to: "padding_left_top";
5516 to_x: "padding_left_top";
5517 to_y: "padding_right_bottom";
5520 aspect_preference: VERTICAL;
5523 part { name: "elm.text";
5528 description { state: "default" 0.0;
5532 to_x: "padding_icon_text";
5533 to_y: "padding_left_top";
5537 to: "padding_right_bottom";
5539 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5541 font: "SLP:style=Medium";
5542 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5547 description { state: "visible" 0.0;
5548 inherit: "default" 0.0;
5550 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5552 description { state: "clicked" 0.0;
5553 inherit: "default" 0.0;
5556 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5558 description { state: "disabled" 0.0;
5559 inherit: "default" 0.0;
5560 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5562 description { state: "disabled_visible" 0.0;
5563 inherit: "default" 0.0;
5564 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5566 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5568 description { state: "focused" 0.0;
5569 inherit: "default" 0.0;
5572 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5575 part { name: "over2";
5578 ignore_flags: ON_HOLD;
5579 description { state: "default" 0.0;
5583 part { name: "over3";
5586 description { state: "default" 0.0;
5590 part { name: "clipper";
5592 description { state: "default" 0.0;
5593 color: 255 255 255 255;
5596 part { name: "disabler";
5598 description { state: "default" 0.0;
5602 description { state: "disabled" 0.0;
5603 inherit: "default" 0.0;
5609 program { name: "button_click";
5610 signal: "mouse,down,1";
5612 action: SIGNAL_EMIT "elm,action,press" "";
5613 after: "button_click_anim";
5615 program { name: "button_click_anim";
5616 action: STATE_SET "clicked" 0.0;
5617 target: "button_image";
5618 after: "text_clicked";
5620 program { name: "text_clicked";
5624 get_state(PART:"elm.text", st, 30, vl);
5625 if (!strcmp(st, "visible"))
5626 set_state(PART:"elm.text", "clicked", 0.0);
5629 program { name: "button_unpress";
5630 action: SIGNAL_EMIT "elm,action,unpress" "";
5632 program { name: "button_mouseout_clicked";
5633 signal: "mouse,up,1";
5638 get_state(PART:"elm.swallow.content", st, 30, vl);
5639 if (strcmp(st, "icononly"))
5641 emit("elm,action,default,text,set", "");
5642 set_state(PART:"elm.text", "visible", 0.0);
5644 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5645 set_state(PART:"button_image", "default", 0.0);
5647 after: button_unpress;
5649 program { name: "button_unclick3";
5650 signal: "mouse,clicked,1";
5652 action: SIGNAL_EMIT "elm,action,click" "";
5654 program { name: "text_show";
5655 signal: "elm,state,text,visible";
5660 get_state(PART:"elm.swallow.content", st, 30, vl);
5661 if (!strcmp(st, "icononly"))
5663 set_state(PART:"elm.swallow.content", "visible", 0.0);
5664 set_state(PART:"padding_icon_text", "visible", 0.0);
5666 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5667 set_state(PART:"elm.text", "visible", 0.0);
5669 set_state(PART:"elm.text", "disabled_visible", 0.0);
5672 program { name: "text_hide";
5673 signal: "elm,state,text,hidden";
5678 get_state(PART:"elm.swallow.content", st, 30, vl);
5679 if (!strcmp(st, "visible"))
5681 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5682 set_state(PART:"padding_icon_text", "icononly", 0.0);
5684 set_state(PART:"elm.text", "default", 0.0);
5687 program { name: "icon_show";
5688 signal: "elm,state,icon,visible";
5693 get_state(PART:"elm.text", st, 30, vl);
5694 if (!strcmp(st, "visible"))
5696 set_state(PART:"elm.swallow.content", "visible", 0.0);
5697 set_state(PART:"padding_icon_text", "visible", 0.0);
5701 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5702 set_state(PART:"padding_icon_text", "icononly", 0.0);
5706 program { name: "icon_hide";
5707 signal: "elm,state,icon,hidden";
5709 action: STATE_SET "default" 0.0;
5710 target: "elm.swallow.content";
5711 target: "padding_icon_text";
5713 program { name: "disable";
5714 signal: "elm,state,disabled";
5716 action: STATE_SET "disabled" 0.0;
5717 target: "button_image";
5719 after: "disable_text";
5721 program { name: "disable_text";
5725 get_state(PART:"elm.text", st, 30, vl);
5726 if (!strcmp(st, "visible"))
5727 set_state(PART:"elm.text", "disabled_visible", 0.0);
5729 set_state(PART:"elm.text", "disabled", 0.0);
5730 set_int(button_state, BUTTON_STATE_DISABLED);
5733 program { name: "enable";
5734 signal: "elm,state,enabled";
5736 action: STATE_SET "default" 0.0;
5737 target: "button_image";
5739 after: "enable_text";
5741 program { name: "enable_text";
5745 get_state(PART:"elm.text", st, 30, vl);
5746 if (!strcmp(st, "disabled_visible"))
5747 set_state(PART:"elm.text", "visible", 0.0);
5749 set_state(PART:"elm.text", "default", 0.0);
5750 set_int(button_state, BUTTON_STATE_ENABLED);
5753 program { name: "focused";
5754 //signal: "elm,action,focus";
5756 action: STATE_SET "focused" 0.0;
5757 target: "button_image";
5760 program { name: "unfocused";
5761 //signal: "elm,action,unfocus";
5763 action: STATE_SET "default" 0.0;
5764 target: "button_image";
5765 after: "unfocus_text";
5767 program { name: "unfocus_text";
5768 action: STATE_SET "visible" 0.0;
5774 ///////////////////////////////////////////////////////////////////////////////////////
5775 group { name: "elm/button/base/contact";
5776 alias: "elm/button/base/text_only/contact";
5778 public button_state = BUTTON_STATE_ENABLED;
5781 part { name: "button_image";
5785 description { state: "default" 0.0;
5786 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
5787 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
5788 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5789 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5791 description { state: "clicked" 0.0;
5792 inherit: "default" 0.0;
5793 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5795 description { state: "disabled" 0.0;
5796 inherit: "default" 0.0;
5798 description { state: "focused" 0.0;
5799 inherit: "default" 0.0;
5802 part { name: "padding.left";
5805 description { state: "default" 0.0;
5807 min: BUTTON_CONTACT_PADDING_MIN_INC;
5811 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
5815 part { name: "padding.right";
5818 description { state: "default" 0.0;
5820 min: BUTTON_CONTACT_PADDING_MIN_INC;
5823 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
5824 rel2.relative: 1.0 1.0;
5828 part { name: "elm.text";
5832 description { state: "default" 0.0;
5836 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5838 font: "SLP:style=Medium";
5839 size: BUTTON_CONTACT_FONT_SIZE_INC;
5844 description { state: "visible" 0.0;
5845 inherit: "default" 0.0;
5849 description { state: "clicked" 0.0;
5850 inherit: "default" 0.0;
5853 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5855 description { state: "disabled" 0.0;
5856 inherit: "default" 0.0;
5859 description { state: "disabled_visible" 0.0;
5860 inherit: "default" 0.0;
5861 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5865 description { state: "focused" 0.0;
5866 inherit: "default" 0.0;
5869 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5872 part { name: "over1";
5874 description { state: "default" 0.0;
5875 rel2.relative: 1.0 0.5;
5878 part { name: "over2";
5881 ignore_flags: ON_HOLD;
5882 description { state: "default" 0.0;
5883 rel1.to: "button_image";
5884 rel2.to: "button_image";
5887 part { name: "over3";
5890 description { state: "default" 0.0;
5891 rel1.to: "button_image";
5892 rel2.to: "button_image";
5896 part { name: "disabler";
5898 description { state: "default" 0.0;
5899 rel1.to: "button_image";
5900 rel2.to: "button_image";
5904 description { state: "disabled" 0.0;
5905 inherit: "default" 0.0;
5911 program { name: "button_click";
5912 signal: "mouse,down,1";
5914 action: SIGNAL_EMIT "elm,action,press" "";
5915 after: "button_click_anim";
5917 program { name: "button_click_anim";
5918 action: STATE_SET "clicked" 0.0;
5919 target: "button_image";
5922 program { name: "button_unpress";
5923 action: SIGNAL_EMIT "elm,action,unpress" "";
5925 program { name: "button_mouseout_clicked";
5926 signal: "mouse,up,1";
5931 get_state(PART:"elm.text", st, 30, vl);
5932 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5934 emit("elm,action,default,text,set", "");
5935 set_state(PART:"elm.text", "visible", 0.0);
5937 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5938 set_state(PART:"button_image", "default", 0.0);
5940 after: button_unpress;
5942 program { name: "button_unclick3";
5943 signal: "mouse,clicked,1";
5945 action: SIGNAL_EMIT "elm,action,click" "";
5947 program { name: "text_show";
5948 signal: "elm,state,text,visible";
5951 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5952 set_state(PART:"elm.text", "visible", 0.0);
5954 set_state(PART:"elm.text", "disabled_visible", 0.0);
5957 program { name: "text_hide";
5958 signal: "elm,state,text,hidden";
5960 action: STATE_SET "default" 0.0;
5964 program { name: "disable";
5965 signal: "elm,state,disabled";
5967 action: STATE_SET "disabled" 0.0;
5968 target: "button_image";
5970 after: "disable_text";
5972 program { name: "disable_text";
5976 get_state(PART:"elm.text", st, 30, vl);
5977 if (!strcmp(st, "visible"))
5978 set_state(PART:"elm.text", "disabled_visible", 0.0);
5980 set_state(PART:"elm.text", "disabled", 0.0);
5981 set_int(button_state, BUTTON_STATE_DISABLED);
5984 program { name: "enable";
5985 signal: "elm,state,enabled";
5987 action: STATE_SET "default" 0.0;
5988 target: "button_image";
5990 after: "enable_text";
5992 program { name: "enable_text";
5996 get_state(PART:"elm.text", st, 30, vl);
5997 if (!strcmp(st, "disabled_visible"))
5998 set_state(PART:"elm.text", "visible", 0.0);
6000 set_state(PART:"elm.text", "default", 0.0);
6001 set_int(button_state, BUTTON_STATE_ENABLED);
6004 program { name: "focused";
6005 //signal: "elm,action,focus";
6007 action: STATE_SET "focused" 0.0;
6008 target: "button_image";
6011 program { name: "unfocused";
6012 //signal: "elm,action,unfocus";
6014 action: STATE_SET "default" 0.0;
6015 target: "button_image";
6016 action: STATE_SET "visible" 0.0;
6022 ///////////////////////////////////////////////////////////////////////////////////////
6023 group { name: "elm/button/base/naviframe/back_btn/default";
6024 alias: "elm/button/base/naviframe/prev_btn/default";
6025 alias: "elm/button/base/naviframe/end_btn/default";
6027 image: "00_winset_Back_btn_normal.png" COMP;
6028 image: "00_winset_Back_btn_press.png" COMP;
6029 image: "00_winset_Back.png" COMP;
6032 public button_state = BUTTON_STATE_ENABLED;
6035 part { name: "button_image";
6037 description { state: "default" 0.0;
6038 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6039 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
6041 normal: "00_winset_Back_btn_normal.png";
6042 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
6046 description { state: "clicked" 0.0;
6047 inherit: "default" 0.0;
6048 image.normal: "00_winset_Back_btn_press.png";
6050 description { state: "disabled" 0.0;
6051 inherit: "default" 0.0;
6053 description { state: "focused" 0.0;
6054 inherit: "default" 0.0;
6055 image.normal: "00_winset_Back_btn_press.png";
6058 part { name: "back_button";
6061 description { state: "default" 0.0;
6062 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6063 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
6072 image.normal: "00_winset_Back.png";
6074 description { state: "clicked" 0.0;
6075 inherit: "default" 0.0;
6078 part { name: "over2";
6081 ignore_flags: ON_HOLD;
6082 description { state: "default" 0.0;
6086 part { name: "over3";
6089 description { state: "default" 0.0;
6093 part { name: "disabler";
6095 description { state: "default" 0.0;
6099 description { state: "disabled" 0.0;
6100 inherit: "default" 0.0;
6106 program { name: "button_click";
6107 signal: "mouse,down,1";
6109 action: SIGNAL_EMIT "elm,action,press" "";
6110 after: "button_click_anim";
6112 program { name: "button_click_anim";
6113 action: STATE_SET "clicked" 0.0;
6114 target: "button_image";
6116 program { name: "button_unpress";
6117 action: SIGNAL_EMIT "elm,action,unpress" "";
6119 program { name: "button_mouseout_clicked";
6120 signal: "mouse,up,1";
6123 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6124 set_state(PART:"button_image", "default", 0.0);
6126 after: button_unpress;
6128 program { name: "button_unclick3";
6129 signal: "mouse,clicked,1";
6131 action: SIGNAL_EMIT "elm,action,click" "";
6133 program { name: "disable";
6134 signal: "elm,state,disabled";
6136 action: STATE_SET "disabled" 0.0;
6137 target: "button_image";
6139 after: "disable_button";
6141 program { name: "disable_button";
6143 set_int(button_state, BUTTON_STATE_DISABLED);
6146 program { name: "enable";
6147 signal: "elm,state,enabled";
6149 action: STATE_SET "default" 0.0;
6150 target: "button_image";
6152 after: "enable_button";
6154 program { name: "enable_button";
6156 set_int(button_state, BUTTON_STATE_ENABLED);
6162 ///////////////////////////////////////////////////////////////////////////////////////
6163 group { name: "elm/button/base/picker/prev/icon/default";
6165 image: "00_picker_btn_normal.png" COMP;
6166 image: "00_picker_btn_press.png" COMP;
6167 image: "00_picker_arrow_left.png" COMP;
6168 image: "00_picker_arrow_left_press.png" COMP;
6171 public button_state = BUTTON_STATE_ENABLED;
6174 part { name: "button_image";
6176 description { state: "default" 0.0;
6177 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6178 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6180 normal: "00_picker_btn_normal.png";
6181 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6185 description { state: "clicked" 0.0;
6186 inherit: "default" 0.0;
6188 normal: "00_picker_btn_press.png";
6191 description { state: "disabled" 0.0;
6192 inherit: "default" 0.0;
6194 description { state: "focused" 0.0;
6195 inherit: "default" 0.0;
6197 normal: "00_picker_btn_press.png";
6201 part { name: "padding_left_top";
6205 description { state: "default" 0.0;
6210 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6215 part { name: "padding_right_bottom";
6219 description { state: "default" 0.0;
6224 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6229 part { name: "left_arrow";
6232 description { state: "default" 0.0;
6233 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6234 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6237 to: "padding_left_top";
6241 to: "padding_right_bottom";
6244 normal: "00_picker_arrow_left.png";
6247 description { state: "clicked" 0.0;
6248 inherit: "default" 0.0;
6250 normal: "00_picker_arrow_left_press.png";
6254 part { name: "over2";
6257 ignore_flags: ON_HOLD;
6258 description { state: "default" 0.0;
6262 part { name: "over3";
6265 description { state: "default" 0.0;
6269 part { name: "disabler";
6271 description { state: "default" 0.0;
6275 description { state: "disabled" 0.0;
6276 inherit: "default" 0.0;
6282 program { name: "button_click";
6283 signal: "mouse,down,1";
6285 action: SIGNAL_EMIT "elm,action,press" "";
6286 after: "button_click_anim";
6288 program { name: "button_click_anim";
6289 action: STATE_SET "clicked" 0.0;
6290 target: "button_image";
6292 program { name: "button_unpress";
6293 action: SIGNAL_EMIT "elm,action,unpress" "";
6295 program { name: "button_mouseout_clicked";
6296 signal: "mouse,up,1";
6299 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6300 set_state(PART:"button_image", "default", 0.0);
6302 after: button_unpress;
6304 program { name: "button_unclick3";
6305 signal: "mouse,clicked,1";
6307 action: SIGNAL_EMIT "elm,action,click" "";
6309 program { name: "disable";
6310 signal: "elm,state,disabled";
6312 action: STATE_SET "disabled" 0.0;
6313 target: "button_image";
6315 after: "disable_button";
6317 program { name: "disable_button";
6319 set_int(button_state, BUTTON_STATE_DISABLED);
6322 program { name: "enable";
6323 signal: "elm,state,enabled";
6325 action: STATE_SET "default" 0.0;
6326 target: "button_image";
6328 after: "enable_button";
6330 program { name: "enable_button";
6332 set_int(button_state, BUTTON_STATE_ENABLED);
6335 program { name: "focused";
6336 //signal: "elm,action,focus";
6338 action: STATE_SET "focused" 0.0;
6339 target: "button_image";
6341 program { name: "unfocused";
6342 //signal: "elm,action,unfocus";
6344 action: STATE_SET "default" 0.0;
6345 target: "button_image";
6350 ///////////////////////////////////////////////////////////////////////////////////////
6351 group { name: "elm/button/base/picker/next/icon/default";
6353 image: "00_picker_btn_normal.png" COMP;
6354 image: "00_picker_btn_press.png" COMP;
6355 image: "00_picker_arrow_right.png" COMP;
6356 image: "00_picker_arrow_right_press.png" COMP;
6359 public button_state = BUTTON_STATE_ENABLED;
6362 part { name: "button_image";
6364 description { state: "default" 0.0;
6365 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6366 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6368 normal: "00_picker_btn_normal.png";
6369 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6373 description { state: "clicked" 0.0;
6374 inherit: "default" 0.0;
6376 normal: "00_picker_btn_press.png";
6379 description { state: "disabled" 0.0;
6380 inherit: "default" 0.0;
6382 description { state: "focused" 0.0;
6383 inherit: "default" 0.0;
6385 normal: "00_picker_btn_press.png";
6389 part { name: "padding_left_top";
6393 description { state: "default" 0.0;
6398 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6403 part { name: "padding_right_bottom";
6407 description { state: "default" 0.0;
6412 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6417 part { name: "right_arrow";
6420 description { state: "default" 0.0;
6421 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6422 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6425 to: "padding_left_top";
6429 to: "padding_right_bottom";
6432 normal: "00_picker_arrow_right.png";
6435 description { state: "clicked" 0.0;
6436 inherit: "default" 0.0;
6438 normal: "00_picker_arrow_right_press.png";
6442 part { name: "over2";
6445 ignore_flags: ON_HOLD;
6446 description { state: "default" 0.0;
6450 part { name: "over3";
6453 description { state: "default" 0.0;
6457 part { name: "disabler";
6459 description { state: "default" 0.0;
6463 description { state: "disabled" 0.0;
6464 inherit: "default" 0.0;
6470 program { name: "button_click";
6471 signal: "mouse,down,1";
6473 action: SIGNAL_EMIT "elm,action,press" "";
6474 after: "button_click_anim";
6476 program { name: "button_click_anim";
6477 action: STATE_SET "clicked" 0.0;
6478 target: "button_image";
6480 program { name: "button_unpress";
6481 action: SIGNAL_EMIT "elm,action,unpress" "";
6483 program { name: "button_mouseout_clicked";
6484 signal: "mouse,up,1";
6487 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6488 set_state(PART:"button_image", "default", 0.0);
6490 after: button_unpress;
6492 program { name: "button_unclick3";
6493 signal: "mouse,clicked,1";
6495 action: SIGNAL_EMIT "elm,action,click" "";
6497 program { name: "disable";
6498 signal: "elm,state,disabled";
6500 action: STATE_SET "disabled" 0.0;
6501 target: "button_image";
6503 after: "disable_button";
6505 program { name: "disable_button";
6507 set_int(button_state, BUTTON_STATE_DISABLED);
6510 program { name: "enable";
6511 signal: "elm,state,enabled";
6513 action: STATE_SET "default" 0.0;
6514 target: "button_image";
6516 after: "enable_button";
6518 program { name: "enable_button";
6520 set_int(button_state, BUTTON_STATE_ENABLED);
6523 program { name: "focused";
6524 //signal: "elm,action,focus";
6526 action: STATE_SET "focused" 0.0;
6527 target: "button_image";
6529 program { name: "unfocused";
6530 //signal: "elm,action,unfocus";
6532 action: STATE_SET "default" 0.0;
6533 target: "button_image";
6538 ///////////////////////////////////////////////////////////////////////////////////////
6539 group { name: "elm/button/base/naviframe_control/default";
6540 alias: "elm/button/base/naviframe_control/center";
6542 public button_state = BUTTON_STATE_ENABLED;
6544 images.image: "00_Option_header_bt.png" COMP;
6545 images.image: "00_Option_header_bt_dim.png" COMP;
6546 images.image: "00_Option_header_bt_press.png" COMP;
6548 part { name: "button_image";
6552 description { state: "default" 0.0;
6553 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6557 image.normal: "00_Option_header_bt.png";
6558 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6559 color: 255 255 255 255;
6561 description { state: "disabled" 0.0;
6562 inherit: "default" 0.0;
6563 image.normal: "00_Option_header_bt_dim.png";
6565 description { state: "clicked" 0.0;
6566 inherit: "default" 0.0;
6567 image.normal: "00_Option_header_bt_press.png";
6571 name: "padding_left_top";
6575 description { state: "default" 0.0;
6577 rel1.relative: 0.0 0.0;
6578 rel2.relative: 0.0 0.0;
6579 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6585 name: "padding_right_bottom";
6589 description { state: "default" 0.0;
6591 rel1.relative: 1.0 1.0;
6592 rel2.relative: 1.0 1.0;
6593 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6603 description { state: "default" 0.0;
6607 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6608 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6612 description { state: "visible" 0.0;
6614 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6616 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6617 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6621 description { state: "icononly" 0.0;
6622 inherit: "default" 0.0;
6626 name: "padding_after_icon";
6630 description { state: "default" 0.0; //when only icon or no icon is there
6632 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6633 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6638 description { state: "visible" 0.0;
6641 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6642 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6644 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6647 description { state: "icononly" 0.0;
6648 inherit: "default" 0.0;
6652 name: "padding_before_text";
6656 description { state: "default" 0.0; //when only icon or no icon is there
6658 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
6659 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
6661 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6665 part { name: "elm.swallow.content";
6669 description { state: "default" 0.0;
6672 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6673 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6676 description { state: "visible" 0.0;
6679 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6680 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6682 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
6683 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
6685 aspect_preference: VERTICAL;
6687 description { state: "icononly" 0.0;
6689 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6690 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6691 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6692 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6695 aspect_preference: VERTICAL;
6698 part { name: "elm.text";
6703 description { state: "default" 0.0;
6705 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
6706 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6708 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
6710 font: "SLP:style=Medium";
6711 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6717 description { state: "visible" 0.0;
6718 inherit: "default" 0.0;
6721 description { state: "clicked" 0.0;
6722 inherit: "default" 0.0;
6726 description { state: "focused" 0.0;
6727 inherit: "default" 0.0;
6730 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
6733 part { name: "over2";
6737 ignore_flags: ON_HOLD;
6738 description { state: "default" 0.0;
6742 part { name: "over3";
6746 description { state: "default" 0.0;
6750 part { name: "clipper";
6752 description { state: "default" 0.0;
6753 color: 255 255 255 255;
6755 description { state: "disabled" 0.0;
6756 color: 255 255 255 127;
6759 part { name: "disabler";
6761 description { state: "default" 0.0;
6765 description { state: "disabled" 0.0;
6766 inherit: "default" 0.0;
6772 program { name: "button_click";
6773 signal: "mouse,down,1";
6775 action: SIGNAL_EMIT "elm,action,press" "";
6776 after: "button_click_anim";
6778 program { name: "button_click_anim";
6779 action: STATE_SET "clicked" 0.0;
6780 target: "button_image";
6781 after: "text_clicked";
6783 program { name: "text_clicked";
6787 get_state(PART:"elm.text", st, 30, vl);
6788 if (!strcmp(st, "visible"))
6789 set_state(PART:"elm.text", "clicked", 0.0);
6792 program { name: "button_unpress";
6793 action: SIGNAL_EMIT "elm,action,unpress" "";
6795 program { name: "button_mouseout_clicked";
6796 signal: "mouse,up,1";
6801 get_state(PART:"elm.swallow.content", st, 30, vl);
6802 if (strcmp(st, "icononly"))
6804 emit("elm,action,default,text,set", "");
6805 set_state(PART:"elm.text", "visible", 0.0);
6807 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6808 set_state(PART:"button_image", "default", 0.0);
6810 after: button_unpress;
6812 program { name: "button_unclick3";
6813 signal: "mouse,clicked,1";
6815 action: SIGNAL_EMIT "elm,action,click" "";
6817 program { name: "text_show";
6818 signal: "elm,state,text,visible";
6823 get_state(PART:"elm.swallow.content", st, 30, vl);
6824 if (!strcmp(st, "icononly"))
6826 set_state(PART:"elm.swallow.content", "visible", 0.0);
6827 set_state(PART:"icon_rect", "visible", 0.0);
6828 set_state(PART:"padding_after_icon", "visible", 0.0);
6830 set_state(PART:"elm.text", "visible", 0.0);
6833 program { name: "text_hide";
6834 signal: "elm,state,text,hidden";
6839 get_state(PART:"elm.swallow.content", st, 30, vl);
6840 if (!strcmp(st, "visible"))
6842 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6843 set_state(PART:"icon_rect", "icononly", 0.0);
6844 set_state(PART:"padding_after_icon", "icononly", 0.0);
6846 set_state(PART:"elm.text", "default", 0.0);
6849 program { name: "icon_show";
6850 signal: "elm,state,icon,visible";
6855 get_state(PART:"elm.text", st, 30, vl);
6856 if (!strcmp(st, "visible"))
6858 set_state(PART:"elm.swallow.content", "visible", 0.0);
6859 set_state(PART:"icon_rect", "visible", 0.0);
6860 set_state(PART:"padding_after_icon", "visible", 0.0);
6864 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6865 set_state(PART:"icon_rect", "icononly", 0.0);
6866 set_state(PART:"padding_after_icon", "icononly", 0.0);
6870 program { name: "icon_hide";
6871 signal: "elm,state,icon,hidden";
6873 action: STATE_SET "default" 0.0;
6874 target: "elm.swallow.content";
6875 target: "icon_rect";
6876 target: "padding_after_icon";
6878 program { name: "disable";
6879 signal: "elm,state,disabled";
6881 action: STATE_SET "disabled" 0.0;
6882 target: "button_image";
6885 after: "disable_text";
6887 program { name: "disable_text";
6891 set_int(button_state, BUTTON_STATE_DISABLED);
6892 get_state(PART:"elm.text", st, 30, vl);
6893 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6894 set_state(PART:"elm.text", "visible", 0.0);
6897 program { name: "enable";
6898 signal: "elm,state,enabled";
6900 action: STATE_SET "default" 0.0;
6901 target: "button_image";
6904 after: "enable_text";
6906 program { name: "enable_text";
6910 set_int(button_state, BUTTON_STATE_ENABLED);
6911 get_state(PART:"elm.text", st, 30, vl);
6912 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6913 set_state(PART:"elm.text", "visible", 0.0);
6916 program { name: "focused";
6917 action: STATE_SET "focused" 0.0;
6918 target: "button_image";
6921 program { name: "unfocused";
6922 action: STATE_SET "default" 0.0;
6923 target: "button_image";
6924 after: "unfocus_text";
6926 program { name: "unfocus_text";
6927 action: STATE_SET "visible" 0.0;
6933 ///////////////////////////////////////////////////////////////////////////////////////
6934 group { name: "elm/button/base/naviframe_control/multiline";
6936 public button_state = BUTTON_STATE_ENABLED;
6938 images.image: "00_Option_header_bt.png" COMP;
6939 images.image: "00_Option_header_bt_dim.png" COMP;
6940 images.image: "00_Option_header_bt_press.png" COMP;
6942 style { name: "btn_multiline_naviframe_controlbar_style";
6943 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6950 part { name: "button_image";
6954 description { state: "default" 0.0;
6955 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6958 image.normal: "00_Option_header_bt.png";
6959 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6960 color: 255 255 255 255;
6962 description { state: "disabled" 0.0;
6963 inherit: "default" 0.0;
6964 image.normal: "00_Option_header_bt_dim.png";
6966 description { state: "clicked" 0.0;
6967 inherit: "default" 0.0;
6968 image.normal: "00_Option_header_bt_press.png";
6972 name: "padding_left_top";
6976 description { state: "default" 0.0;
6984 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6990 name: "padding_right_bottom";
6994 description { state: "default" 0.0;
6996 rel1.relative: 1.0 1.0;
6997 rel2.relative: 1.0 1.0;
6998 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
7008 description { state: "default" 0.0;
7014 to_x: "elm.swallow.content";
7015 to_y: "padding_left_top";
7019 to_x: "elm.swallow.content";
7020 to_y: "padding_right_bottom";
7026 name: "padding_icon_text";
7030 description { state: "default" 0.0; //when only icon or no icon is there
7044 description { state: "visible" 0.0;
7045 inherit: "default" 0.0;
7046 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
7056 description { state: "icononly" 0.0;
7057 inherit: "default" 0.0;
7060 part { name: "elm.swallow.content";
7064 description { state: "default" 0.0;
7069 to: "padding_left_top";
7073 to_x: "padding_left_top";
7074 to_y: "padding_right_bottom";
7078 description { state: "visible" 0.0;
7081 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7082 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
7086 to: "padding_left_top";
7090 to_x: "padding_left_top";
7091 to_y: "padding_right_bottom";
7094 description { state: "icononly" 0.0;
7096 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7097 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
7100 to: "padding_left_top";
7104 to: "padding_right_bottom";
7109 part { name: "elm.text";
7114 description { state: "default" 0.0;
7118 to_x: "padding_icon_text";
7119 to_y: "padding_left_top";
7123 to: "padding_right_bottom";
7126 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
7128 style: "btn_multiline_naviframe_controlbar_style";
7133 description { state: "visible" 0.0;
7134 inherit: "default" 0.0;
7138 description { state: "clicked" 0.0;
7139 inherit: "default" 0.0;
7143 description { state: "focused" 0.0;
7144 inherit: "default" 0.0;
7147 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
7150 part { name: "over2";
7154 ignore_flags: ON_HOLD;
7155 description { state: "default" 0.0;
7159 part { name: "over3";
7163 description { state: "default" 0.0;
7167 part { name: "clipper";
7169 description { state: "default" 0.0;
7170 color: 255 255 255 255;
7172 description { state: "disabled" 0.0;
7173 color: 255 255 255 127;
7176 part { name: "disabler";
7178 description { state: "default" 0.0;
7182 description { state: "disabled" 0.0;
7183 inherit: "default" 0.0;
7189 program { name: "button_click";
7190 signal: "mouse,down,1";
7192 action: SIGNAL_EMIT "elm,action,press" "";
7193 after: "button_click_anim";
7195 program { name: "button_click_anim";
7196 action: STATE_SET "clicked" 0.0;
7197 target: "button_image";
7198 after: "text_clicked";
7200 program { name: "text_clicked";
7204 get_state(PART:"elm.text", st, 30, vl);
7205 if (!strcmp(st, "visible"))
7206 set_state(PART:"elm.text", "clicked", 0.0);
7209 program { name: "button_unpress";
7210 action: SIGNAL_EMIT "elm,action,unpress" "";
7212 program { name: "button_mouseout_clicked";
7213 signal: "mouse,up,1";
7218 get_state(PART:"elm.swallow.content", st, 30, vl);
7219 if (strcmp(st, "icononly"))
7221 emit("elm,action,default,text,set", "");
7222 set_state(PART:"elm.text", "visible", 0.0);
7224 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7225 set_state(PART:"button_image", "default", 0.0);
7227 after: button_unpress;
7229 program { name: "button_unclick3";
7230 signal: "mouse,clicked,1";
7232 action: SIGNAL_EMIT "elm,action,click" "";
7234 program { name: "text_show";
7235 signal: "elm,state,text,visible";
7240 get_state(PART:"elm.swallow.content", st, 30, vl);
7241 if (!strcmp(st, "icononly"))
7243 set_state(PART:"elm.swallow.content", "visible", 0.0);
7244 set_state(PART:"padding_icon_text", "visible", 0.0);
7246 set_state(PART:"elm.text", "visible", 0.0);
7249 program { name: "text_hide";
7250 signal: "elm,state,text,hidden";
7255 get_state(PART:"elm.swallow.content", st, 30, vl);
7256 if (!strcmp(st, "visible"))
7258 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7259 set_state(PART:"padding_icon_text", "icononly", 0.0);
7261 set_state(PART:"elm.text", "default", 0.0);
7264 program { name: "icon_show";
7265 signal: "elm,state,icon,visible";
7270 get_state(PART:"elm.text", st, 30, vl);
7271 if (!strcmp(st, "visible"))
7273 set_state(PART:"elm.swallow.content", "visible", 0.0);
7274 set_state(PART:"padding_icon_text", "visible", 0.0);
7278 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7279 set_state(PART:"padding_icon_text", "icononly", 0.0);
7283 program { name: "icon_hide";
7284 signal: "elm,state,icon,hidden";
7286 action: STATE_SET "default" 0.0;
7287 target: "elm.swallow.content";
7288 target: "padding_icon_text";
7290 program { name: "disable";
7291 signal: "elm,state,disabled";
7293 action: STATE_SET "disabled" 0.0;
7294 target: "button_image";
7297 after: "disable_text";
7299 program { name: "disable_text";
7303 set_int(button_state, BUTTON_STATE_DISABLED);
7304 get_state(PART:"elm.text", st, 30, vl);
7305 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7306 set_state(PART:"elm.text", "visible", 0.0);
7309 program { name: "enable";
7310 signal: "elm,state,enabled";
7312 action: STATE_SET "default" 0.0;
7313 target: "button_image";
7316 after: "enable_text";
7318 program { name: "enable_text";
7322 set_int(button_state, BUTTON_STATE_ENABLED);
7323 get_state(PART:"elm.text", st, 30, vl);
7324 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7325 set_state(PART:"elm.text", "visible", 0.0);
7328 program { name: "focused";
7329 action: STATE_SET "focused" 0.0;
7330 target: "button_image";
7333 program { name: "unfocused";
7334 action: STATE_SET "default" 0.0;
7335 target: "button_image";
7336 after: "unfocus_text";
7338 program { name: "unfocus_text";
7339 action: STATE_SET "visible" 0.0;
7345 //////////////////////////////////////////////////////////////
7346 group { name: "elm/button/base/naviframe/title/default";
7348 image: "00_Title_btn.png" COMP;
7349 image: "00_Title_btn_press.png" COMP;
7352 public button_state = BUTTON_STATE_ENABLED;
7355 part { name: "button_image";
7357 description { state: "default" 0.0;
7358 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7359 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
7361 normal: "00_Title_btn.png";
7362 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
7366 description { state: "clicked" 0.0;
7367 inherit: "default" 0.0;
7368 image.normal: "00_Title_btn_press.png";
7370 description { state: "disabled" 0.0;
7371 inherit: "default" 0.0;
7373 description { state: "focused" 0.0;
7374 inherit: "default" 0.0;
7375 image.normal: "00_Title_btn_press.png";
7378 part { name: "padding_left_top";
7382 description { state: "default" 0.0;
7384 rel2.relative: 0.0 0.0;
7385 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7394 description { state: "default" 0.0;
7395 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7398 description { state: "visible" 0.0;
7399 inherit: "default" 0.0;
7400 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7402 description { state: "icononly" 0.0;
7403 inherit: "default" 0.0;
7404 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7407 part { name: "padding_right_bottom";
7411 description { state: "default" 0.0;
7413 rel1.relative: 1.0 1.0;
7414 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7419 part { name: "icon_rect";
7423 description { state: "default" 0.0;
7429 to: "padding_left_top";
7433 to_x: "padding_left_top";
7434 to_y: "padding_right_bottom";
7438 description { state: "visible" 0.0;
7440 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7441 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7445 to: "padding_left_top";
7449 to_x: "padding_left_top";
7450 to_y: "padding_right_bottom";
7454 description { state: "icononly" 0.0;
7455 inherit: "default" 0.0;
7458 part { name: "padding_after_icon";
7462 description { state: "default" 0.0; //when only icon or no icon is there
7468 rel2.to: "icon_rect";
7473 description { state: "visible" 0.0;
7480 rel2.to: "icon_rect";
7482 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7484 description { state: "icononly" 0.0;
7485 inherit: "default" 0.0;
7488 part { name: "padding_before_text";
7492 description { state: "default" 0.0; //when only icon or no icon is there
7497 to_y: "padding_left_top";
7502 to_y: "padding_right_bottom";
7505 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7509 part { name: "elm.swallow.content";
7513 description { state: "default" 0.0;
7518 to: "padding_left_top";
7522 to_x: "padding_left_top";
7523 to_y: "padding_right_bottom";
7527 description { state: "visible" 0.0;
7529 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7530 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7534 to_x: "padding_before_text";
7535 to_y: "padding_left_top";
7539 to_x: "padding_before_text";
7540 to_y: "padding_right_bottom";
7543 description { state: "icononly" 0.0;
7544 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7545 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7549 part { name: "elm.text";
7554 description { state: "default" 0.0;
7558 to_x: "padding_after_icon";
7559 to_y: "padding_left_top";
7563 to: "padding_right_bottom";
7565 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7567 font: "SLP:style=Medium";
7568 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7573 description { state: "visible" 0.0;
7574 inherit: "default" 0.0;
7577 description { state: "clicked" 0.0;
7578 inherit: "default" 0.0;
7580 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7582 description { state: "disabled" 0.0;
7583 inherit: "default" 0.0;
7586 description { state: "disabled_visible" 0.0;
7587 inherit: "default" 0.0;
7588 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7591 description { state: "focused" 0.0;
7592 inherit: "default" 0.0;
7594 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7597 part { name: "over2";
7600 ignore_flags: ON_HOLD;
7601 description { state: "default" 0.0;
7605 part { name: "over3";
7608 description { state: "default" 0.0;
7612 part { name: "clipper";
7614 description { state: "default" 0.0;
7615 color: 255 255 255 255;
7618 part { name: "disabler";
7620 description { state: "default" 0.0;
7624 description { state: "disabled" 0.0;
7625 inherit: "default" 0.0;
7631 program { name: "button_click";
7632 signal: "mouse,down,1";
7634 action: SIGNAL_EMIT "elm,action,press" "";
7635 after: "button_click_anim";
7637 program { name: "button_click_anim";
7638 action: STATE_SET "clicked" 0.0;
7639 target: "button_image";
7640 after: "text_clicked";
7642 program { name: "text_clicked";
7646 get_state(PART:"elm.text", st, 30, vl);
7647 if (!strcmp(st, "visible"))
7648 set_state(PART:"elm.text", "clicked", 0.0);
7651 program { name: "button_unpress";
7652 action: SIGNAL_EMIT "elm,action,unpress" "";
7654 program { name: "button_mouseout_clicked";
7655 signal: "mouse,up,1";
7660 get_state(PART:"elm.swallow.content", st, 30, vl);
7661 if (strcmp(st, "icononly"))
7663 emit("elm,action,default,text,set", "");
7664 set_state(PART:"elm.text", "visible", 0.0);
7666 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7667 set_state(PART:"button_image", "default", 0.0);
7669 after: button_unpress;
7671 program { name: "button_unclick3";
7672 signal: "mouse,clicked,1";
7674 action: SIGNAL_EMIT "elm,action,click" "";
7676 program { name: "text_show";
7677 signal: "elm,state,text,visible";
7682 get_state(PART:"elm.swallow.content", st, 30, vl);
7683 if (!strcmp(st, "icononly"))
7685 set_state(PART:"elm.swallow.content", "visible", 0.0);
7686 set_state(PART:"icon_rect", "visible", 0.0);
7687 set_state(PART:"padding_after_icon", "visible", 0.0);
7688 set_state(PART:"bg", "visible", 0.0);
7690 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7691 set_state(PART:"elm.text", "visible", 0.0);
7693 set_state(PART:"elm.text", "disabled_visible", 0.0);
7696 program { name: "text_hide";
7697 signal: "elm,state,text,hidden";
7702 get_state(PART:"elm.swallow.content", st, 30, vl);
7703 if (!strcmp(st, "visible"))
7705 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7706 set_state(PART:"icon_rect", "icononly", 0.0);
7707 set_state(PART:"padding_after_icon", "icononly", 0.0);
7708 set_state(PART:"bg", "icononly", 0.0);
7710 set_state(PART:"elm.text", "default", 0.0);
7713 program { name: "icon_show";
7714 signal: "elm,state,icon,visible";
7719 get_state(PART:"elm.text", st, 30, vl);
7720 if (!strcmp(st, "visible"))
7722 set_state(PART:"elm.swallow.content", "visible", 0.0);
7723 set_state(PART:"icon_rect", "visible", 0.0);
7724 set_state(PART:"padding_after_icon", "visible", 0.0);
7725 set_state(PART:"bg", "visible", 0.0);
7729 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7730 set_state(PART:"icon_rect", "icononly", 0.0);
7731 set_state(PART:"padding_after_icon", "icononly", 0.0);
7732 set_state(PART:"bg", "icononly", 0.0);
7736 program { name: "icon_hide";
7737 signal: "elm,state,icon,hidden";
7739 action: STATE_SET "default" 0.0;
7740 target: "elm.swallow.content";
7741 target: "padding_after_icon";
7742 target: "icon_rect";
7745 program { name: "disable";
7746 signal: "elm,state,disabled";
7748 action: STATE_SET "disabled" 0.0;
7749 target: "button_image";
7751 after: "disable_text";
7753 program { name: "disable_text";
7757 get_state(PART:"elm.text", st, 30, vl);
7758 if (!strcmp(st, "visible"))
7759 set_state(PART:"elm.text", "disabled_visible", 0.0);
7761 set_state(PART:"elm.text", "disabled", 0.0);
7762 set_int(button_state, BUTTON_STATE_DISABLED);
7765 program { name: "enable";
7766 signal: "elm,state,enabled";
7768 action: STATE_SET "default" 0.0;
7769 target: "button_image";
7771 after: "enable_text";
7773 program { name: "enable_text";
7777 get_state(PART:"elm.text", st, 30, vl);
7778 if (!strcmp(st, "disabled_visible"))
7779 set_state(PART:"elm.text", "visible", 0.0);
7781 set_state(PART:"elm.text", "default", 0.0);
7782 set_int(button_state, BUTTON_STATE_ENABLED);
7785 program { name: "focused";
7786 //signal: "elm,action,focus";
7788 action: STATE_SET "focused" 0.0;
7789 target: "button_image";
7792 program { name: "unfocused";
7793 //signal: "elm,action,unfocus";
7795 action: STATE_SET "default" 0.0;
7796 target: "button_image";
7797 after: "unfocus_text";
7799 program { name: "unfocus_text";
7800 action: STATE_SET "visible" 0.0;
7806 /////////////////////////////////////////////////////////////////////////////////////////
7807 group { name: "elm/button/base/naviframe/title_icon/default";
7809 image: "00_Title_btn.png" COMP;
7810 image: "00_Title_btn_press.png" COMP;
7811 image: "00_winset_more.png" COMP;
7814 public button_state = BUTTON_STATE_ENABLED;
7817 part { name: "button_image";
7819 description { state: "default" 0.0;
7820 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7821 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
7823 normal: "00_Title_btn.png";
7824 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_BORDER_INC;
7828 description { state: "clicked" 0.0;
7829 inherit: "default" 0.0;
7830 image.normal: "00_Title_btn_press.png";
7832 description { state: "disabled" 0.0;
7833 inherit: "default" 0.0;
7835 description { state: "focused" 0.0;
7836 inherit: "default" 0.0;
7837 image.normal: "00_Title_btn_press.png";
7840 part { name: "more_image";
7843 description { state: "default" 0.0;
7844 min: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7845 max: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
7854 image.normal: "00_winset_more.png";
7856 description { state: "clicked" 0.0;
7857 inherit: "default" 0.0;
7860 part { name: "over2";
7863 ignore_flags: ON_HOLD;
7864 description { state: "default" 0.0;
7868 part { name: "over3";
7871 description { state: "default" 0.0;
7875 part { name: "disabler";
7877 description { state: "default" 0.0;
7881 description { state: "disabled" 0.0;
7882 inherit: "default" 0.0;
7888 program { name: "button_click";
7889 signal: "mouse,down,1";
7891 action: SIGNAL_EMIT "elm,action,press" "";
7892 after: "button_click_anim";
7894 program { name: "button_click_anim";
7895 action: STATE_SET "clicked" 0.0;
7896 target: "button_image";
7898 program { name: "button_unpress";
7899 action: SIGNAL_EMIT "elm,action,unpress" "";
7901 program { name: "button_mouseout_clicked";
7902 signal: "mouse,up,1";
7905 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7906 set_state(PART:"button_image", "default", 0.0);
7908 after: button_unpress;
7910 program { name: "button_unclick3";
7911 signal: "mouse,clicked,1";
7913 action: SIGNAL_EMIT "elm,action,click" "";
7915 program { name: "disable";
7916 signal: "elm,state,disabled";
7918 action: STATE_SET "disabled" 0.0;
7919 target: "button_image";
7921 after: "disable_button";
7923 program { name: "disable_button";
7925 set_int(button_state, BUTTON_STATE_DISABLED);
7928 program { name: "enable";
7929 signal: "elm,state,enabled";
7931 action: STATE_SET "default" 0.0;
7932 target: "button_image";
7934 after: "enable_button";
7936 program { name: "enable_button";
7938 set_int(button_state, BUTTON_STATE_ENABLED);
7944 ///////////////////////////////////////////////////////////////////////////////////////
7945 group { name: "elm/button/base/controlbar/vertical";
7947 public button_state = BUTTON_STATE_ENABLED;
7950 style { name: "controlbar_style";
7951 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";
7954 tag: "hilight" "+ font=SLP:style=Bold";
7955 tag: "b" "+ font=SLP:style=Bold";
7960 part { name: "button_image";
7964 description { state: "default" 0.0;
7973 name: "padding_left_top";
7977 description { state: "default" 0.0;
7979 rel1.relative: 0.0 0.0;
7980 rel2.relative: 0.0 0.0;
7987 name: "padding_right_bottom";
7991 description { state: "default" 0.0;
7993 rel1.relative: 1.0 1.0;
7994 rel2.relative: 1.0 1.0;
8005 description { state: "default" 0.0;
8009 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8010 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
8014 description { state: "visible" 0.0;
8016 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8018 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8019 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
8023 description { state: "icononly" 0.0;
8024 inherit: "default" 0.0;
8028 name: "padding_after_icon";
8032 description { state: "default" 0.0; //when only icon or no icon is there
8034 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
8035 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8040 description { state: "visible" 0.0;
8043 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
8044 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8049 description { state: "icononly" 0.0;
8050 inherit: "default" 0.0;
8054 name: "padding_before_text";
8058 description { state: "default" 0.0; //when only icon or no icon is there
8060 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
8061 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
8067 part { name: "elm.swallow.content";
8070 clip_to: "disabler";
8071 description { state: "default" 0.0;
8074 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8075 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
8078 description { state: "visible" 0.0;
8081 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8082 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8084 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8085 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
8087 aspect_preference: HORIZONTAL;
8089 description { state: "icononly" 0.0;
8091 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8092 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8093 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8094 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8097 aspect_preference: HORIZONTAL;
8100 part { name: "elm.text";
8104 clip_to: "disabler";
8105 description { state: "default" 0.0;
8107 rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
8108 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8110 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8113 style: "controlbar_style";
8118 description { state: "visible" 0.0;
8119 inherit: "default" 0.0;
8122 description { state: "clicked" 0.0;
8123 inherit: "default" 0.0;
8125 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8127 description { state: "focused" 0.0;
8128 inherit: "default" 0.0;
8130 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8133 part { name: "over2";
8136 ignore_flags: ON_HOLD;
8137 description { state: "default" 0.0;
8140 description { state: "disabled" 0.0;
8141 inherit: "default" 0.0;
8145 part { name: "over3";
8148 description { state: "default" 0.0;
8152 part { name: "disabler";
8154 description { state: "default" 0.0;
8155 color: 255 255 255 255;
8158 description { state: "disabled" 0.0;
8159 inherit: "default" 0.0;
8160 color: 255 255 255 127;
8166 program { name: "button_click";
8167 signal: "mouse,down,1";
8169 action: SIGNAL_EMIT "elm,action,press" "";
8170 after: "button_click_anim";
8172 program { name: "button_click_anim";
8173 action: STATE_SET "clicked" 0.0;
8174 target: "button_image";
8175 after: "text_clicked";
8177 program { name: "text_clicked";
8181 get_state(PART:"elm.text", st, 30, vl);
8182 if (!strcmp(st, "visible"))
8183 set_state(PART:"elm.text", "clicked", 0.0);
8186 program { name: "button_unpress";
8187 action: SIGNAL_EMIT "elm,action,unpress" "";
8189 program { name: "button_mouseout_clicked";
8190 signal: "mouse,up,1";
8195 get_state(PART:"elm.swallow.content", st, 30, vl);
8196 if (strcmp(st, "icononly"))
8198 emit("elm,action,default,text,set", "");
8199 set_state(PART:"elm.text", "visible", 0.0);
8201 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8202 set_state(PART:"button_image", "default", 0.0);
8204 after: button_unpress;
8206 program { name: "button_unclick3";
8207 signal: "mouse,clicked,1";
8209 action: SIGNAL_EMIT "elm,action,click" "";
8211 program { name: "text_show";
8212 signal: "elm,state,text,visible";
8217 get_state(PART:"elm.swallow.content", st, 30, vl);
8218 if (!strcmp(st, "icononly"))
8220 set_state(PART:"elm.swallow.content", "visible", 0.0);
8221 set_state(PART:"icon_rect", "visible", 0.0);
8222 set_state(PART:"padding_after_icon", "visible", 0.0);
8224 set_state(PART:"elm.text", "visible", 0.0);
8227 program { name: "text_hide";
8228 signal: "elm,state,text,hidden";
8233 get_state(PART:"elm.swallow.content", st, 30, vl);
8234 if (!strcmp(st, "visible"))
8236 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8237 set_state(PART:"icon_rect", "icononly", 0.0);
8238 set_state(PART:"padding_after_icon", "icononly", 0.0);
8240 set_state(PART:"elm.text", "default", 0.0);
8243 program { name: "icon_show";
8244 signal: "elm,state,icon,visible";
8249 get_state(PART:"elm.text", st, 30, vl);
8250 if (!strcmp(st, "visible"))
8252 set_state(PART:"elm.swallow.content", "visible", 0.0);
8253 set_state(PART:"icon_rect", "visible", 0.0);
8254 set_state(PART:"padding_after_icon", "visible", 0.0);
8258 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8259 set_state(PART:"icon_rect", "icononly", 0.0);
8260 set_state(PART:"padding_after_icon", "icononly", 0.0);
8264 program { name: "icon_hide";
8265 signal: "elm,state,icon,hidden";
8267 action: STATE_SET "default" 0.0;
8268 target: "elm.swallow.content";
8269 target: "icon_rect";
8270 target: "padding_after_icon";
8272 program { name: "disable";
8273 signal: "elm,state,disabled";
8275 action: STATE_SET "disabled" 0.0;
8278 after: "disable_text";
8280 program { name: "disable_text";
8284 set_int(button_state, BUTTON_STATE_DISABLED);
8285 get_state(PART:"elm.text", st, 30, vl);
8286 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8287 set_state(PART:"elm.text", "visible", 0.0);
8290 program { name: "enable";
8291 signal: "elm,state,enabled";
8293 action: STATE_SET "default" 0.0;
8296 after: "enable_text";
8298 program { name: "enable_text";
8302 set_int(button_state, BUTTON_STATE_ENABLED);
8303 get_state(PART:"elm.text", st, 30, vl);
8304 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8305 set_state(PART:"elm.text", "visible", 0.0);
8308 program { name: "focused";
8309 action: STATE_SET "focused" 0.0;
8310 target: "button_image";
8313 program { name: "unfocused";
8314 action: STATE_SET "default" 0.0;
8315 target: "button_image";
8316 after: "unfocus_text";
8318 program { name: "unfocus_text";
8319 action: STATE_SET "visible" 0.0;
8325 ///////////////////////////////////////////////////////////////////////////////////////
8326 group { name: "elm/button/base/controlbar/horizontal_center";
8328 public button_state = BUTTON_STATE_ENABLED;
8331 part { name: "button_image";
8335 description { state: "default" 0.0;
8342 description { state: "clicked" 0.0;
8343 inherit: "default" 0.0;
8348 name: "padding_left_top";
8352 description { state: "default" 0.0;
8354 rel1.relative: 0.0 0.0;
8355 rel2.relative: 0.0 0.0;
8362 name: "padding_right_bottom";
8366 description { state: "default" 0.0;
8368 rel1.relative: 1.0 1.0;
8369 rel2.relative: 1.0 1.0;
8380 description { state: "default" 0.0;
8384 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8385 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8389 description { state: "visible" 0.0;
8391 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8393 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8394 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8398 description { state: "icononly" 0.0;
8399 inherit: "default" 0.0;
8400 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8404 name: "padding_after_icon";
8408 description { state: "default" 0.0; //when only icon or no icon is there
8410 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8411 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8416 description { state: "visible" 0.0;
8419 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8420 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8425 description { state: "icononly" 0.0;
8426 inherit: "default" 0.0;
8430 name: "padding_before_text";
8434 description { state: "default" 0.0; //when only icon or no icon is there
8436 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8437 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8443 part { name: "elm.swallow.content";
8446 clip_to: "disabler";
8447 description { state: "default" 0.0;
8450 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8451 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8454 description { state: "visible" 0.0;
8457 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8458 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8460 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8461 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8463 aspect_preference: VERTICAL;
8465 description { state: "icononly" 0.0;
8467 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8468 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8469 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8470 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8473 aspect_preference: VERTICAL;
8476 part { name: "elm.text";
8480 clip_to: "disabler";
8481 description { state: "default" 0.0;
8483 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8484 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8486 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8488 font: "SLP:style=Medium";
8489 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
8495 description { state: "visible" 0.0;
8496 inherit: "default" 0.0;
8499 description { state: "clicked" 0.0;
8500 inherit: "default" 0.0;
8504 description { state: "focused" 0.0;
8505 inherit: "default" 0.0;
8508 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8511 part { name: "over2";
8514 ignore_flags: ON_HOLD;
8515 description { state: "default" 0.0;
8518 description { state: "disabled" 0.0;
8519 inherit: "default" 0.0;
8523 part { name: "over3";
8526 description { state: "default" 0.0;
8530 part { name: "disabler";
8532 description { state: "default" 0.0;
8533 color: 255 255 255 255;
8535 description { state: "disabled" 0.0;
8536 color: 255 255 255 127;
8541 program { name: "button_click";
8542 signal: "mouse,down,1";
8544 action: SIGNAL_EMIT "elm,action,press" "";
8545 after: "button_click_anim";
8547 program { name: "button_click_anim";
8548 action: STATE_SET "clicked" 0.0;
8549 target: "button_image";
8550 after: "text_clicked";
8552 program { name: "text_clicked";
8556 get_state(PART:"elm.text", st, 30, vl);
8557 if (!strcmp(st, "visible"))
8558 set_state(PART:"elm.text", "clicked", 0.0);
8561 program { name: "button_unpress";
8562 action: SIGNAL_EMIT "elm,action,unpress" "";
8564 program { name: "button_mouseout_clicked";
8565 signal: "mouse,up,1";
8570 get_state(PART:"elm.swallow.content", st, 30, vl);
8571 if (strcmp(st, "icononly"))
8573 emit("elm,action,default,text,set", "");
8574 set_state(PART:"elm.text", "visible", 0.0);
8576 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8577 set_state(PART:"button_image", "default", 0.0);
8579 after: button_unpress;
8581 program { name: "button_unclick3";
8582 signal: "mouse,clicked,1";
8584 action: SIGNAL_EMIT "elm,action,click" "";
8586 program { name: "text_show";
8587 signal: "elm,state,text,visible";
8592 get_state(PART:"elm.swallow.content", st, 30, vl);
8593 if (!strcmp(st, "icononly"))
8595 set_state(PART:"elm.swallow.content", "visible", 0.0);
8596 set_state(PART:"icon_rect", "visible", 0.0);
8597 set_state(PART:"padding_after_icon", "visible", 0.0);
8599 set_state(PART:"elm.text", "visible", 0.0);
8602 program { name: "text_hide";
8603 signal: "elm,state,text,hidden";
8608 get_state(PART:"elm.swallow.content", st, 30, vl);
8609 if (!strcmp(st, "visible"))
8611 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8612 set_state(PART:"icon_rect", "icononly", 0.0);
8613 set_state(PART:"padding_after_icon", "icononly", 0.0);
8615 set_state(PART:"elm.text", "default", 0.0);
8618 program { name: "icon_show";
8619 signal: "elm,state,icon,visible";
8624 get_state(PART:"elm.text", st, 30, vl);
8625 if (!strcmp(st, "visible"))
8627 set_state(PART:"elm.swallow.content", "visible", 0.0);
8628 set_state(PART:"icon_rect", "visible", 0.0);
8629 set_state(PART:"padding_after_icon", "visible", 0.0);
8633 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8634 set_state(PART:"icon_rect", "icononly", 0.0);
8635 set_state(PART:"padding_after_icon", "icononly", 0.0);
8639 program { name: "icon_hide";
8640 signal: "elm,state,icon,hidden";
8642 action: STATE_SET "default" 0.0;
8643 target: "elm.swallow.content";
8644 target: "icon_rect";
8645 target: "padding_after_icon";
8647 program { name: "disable";
8648 signal: "elm,state,disabled";
8650 action: STATE_SET "disabled" 0.0;
8653 after: "disable_text";
8655 program { name: "disable_text";
8659 set_int(button_state, BUTTON_STATE_DISABLED);
8660 get_state(PART:"elm.text", st, 30, vl);
8661 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8662 set_state(PART:"elm.text", "visible", 0.0);
8665 program { name: "enable";
8666 signal: "elm,state,enabled";
8668 action: STATE_SET "default" 0.0;
8671 after: "enable_text";
8673 program { name: "enable_text";
8677 set_int(button_state, BUTTON_STATE_ENABLED);
8678 get_state(PART:"elm.text", st, 30, vl);
8679 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8680 set_state(PART:"elm.text", "visible", 0.0);
8683 program { name: "focused";
8684 action: STATE_SET "focused" 0.0;
8685 target: "button_image";
8688 program { name: "unfocused";
8689 action: STATE_SET "default" 0.0;
8690 target: "button_image";
8691 after: "unfocus_text";
8693 program { name: "unfocus_text";
8694 action: STATE_SET "visible" 0.0;
8700 ///////////////////////////////////////////////////////////////////////////////////////
8701 group { name: "elm/button/base/controlbar/horizontal_left";
8703 public button_state = BUTTON_STATE_ENABLED;
8706 part { name: "button_image";
8710 description { state: "default" 0.0;
8717 description { state: "clicked" 0.0;
8718 inherit: "default" 0.0;
8723 name: "padding_left_top";
8727 description { state: "default" 0.0;
8729 rel1.relative: 0.0 0.0;
8730 rel2.relative: 0.0 0.0;
8737 name: "padding_right_bottom";
8741 description { state: "default" 0.0;
8743 rel1.relative: 1.0 1.0;
8744 rel2.relative: 1.0 1.0;
8755 description { state: "default" 0.0;
8759 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8760 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8764 description { state: "visible" 0.0;
8766 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8768 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8769 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8773 description { state: "icononly" 0.0;
8774 inherit: "default" 0.0;
8778 name: "padding_after_icon";
8782 description { state: "default" 0.0; //when only icon or no icon is there
8784 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8785 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8790 description { state: "visible" 0.0;
8793 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8794 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8799 description { state: "icononly" 0.0;
8800 inherit: "default" 0.0;
8804 name: "padding_before_text";
8808 description { state: "default" 0.0; //when only icon or no icon is there
8810 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8811 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8817 part { name: "elm.swallow.content";
8820 clip_to: "disabler";
8821 description { state: "default" 0.0;
8824 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8825 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8828 description { state: "visible" 0.0;
8831 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8832 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8834 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8835 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8837 aspect_preference: VERTICAL;
8839 description { state: "icononly" 0.0;
8841 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8842 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8843 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8844 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8847 aspect_preference: VERTICAL;
8850 part { name: "elm.text";
8854 clip_to: "disabler";
8855 description { state: "default" 0.0;
8857 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8858 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8860 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8862 font: "SLP:style=Medium";
8869 description { state: "visible" 0.0;
8870 inherit: "default" 0.0;
8873 description { state: "clicked" 0.0;
8874 inherit: "default" 0.0;
8878 description { state: "focused" 0.0;
8879 inherit: "default" 0.0;
8882 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8885 part { name: "over2";
8889 ignore_flags: ON_HOLD;
8890 description { state: "default" 0.0;
8894 part { name: "over3";
8898 description { state: "default" 0.0;
8902 part { name: "disabler";
8904 description { state: "default" 0.0;
8905 color: 255 255 255 255;
8907 description { state: "disabled" 0.0;
8908 color: 255 255 255 127;
8913 program { name: "button_click";
8914 signal: "mouse,down,1";
8916 action: SIGNAL_EMIT "elm,action,press" "";
8917 after: "button_click_anim";
8919 program { name: "button_click_anim";
8920 action: STATE_SET "clicked" 0.0;
8921 target: "button_image";
8922 after: "text_clicked";
8924 program { name: "text_clicked";
8928 get_state(PART:"elm.text", st, 30, vl);
8929 if (!strcmp(st, "visible"))
8930 set_state(PART:"elm.text", "clicked", 0.0);
8933 program { name: "button_unpress";
8934 action: SIGNAL_EMIT "elm,action,unpress" "";
8936 program { name: "button_mouseout_clicked";
8937 signal: "mouse,up,1";
8942 get_state(PART:"elm.swallow.content", st, 30, vl);
8943 if (strcmp(st, "icononly"))
8945 emit("elm,action,default,text,set", "");
8946 set_state(PART:"elm.text", "visible", 0.0);
8948 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8949 set_state(PART:"button_image", "default", 0.0);
8951 after: button_unpress;
8953 program { name: "button_unclick3";
8954 signal: "mouse,clicked,1";
8956 action: SIGNAL_EMIT "elm,action,click" "";
8958 program { name: "text_show";
8959 signal: "elm,state,text,visible";
8964 get_state(PART:"elm.swallow.content", st, 30, vl);
8965 if (!strcmp(st, "icononly"))
8967 set_state(PART:"elm.swallow.content", "visible", 0.0);
8968 set_state(PART:"icon_rect", "visible", 0.0);
8969 set_state(PART:"padding_after_icon", "visible", 0.0);
8971 set_state(PART:"elm.text", "visible", 0.0);
8974 program { name: "text_hide";
8975 signal: "elm,state,text,hidden";
8980 get_state(PART:"elm.swallow.content", st, 30, vl);
8981 if (!strcmp(st, "visible"))
8983 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8984 set_state(PART:"icon_rect", "icononly", 0.0);
8985 set_state(PART:"padding_after_icon", "icononly", 0.0);
8987 set_state(PART:"elm.text", "default", 0.0);
8990 program { name: "icon_show";
8991 signal: "elm,state,icon,visible";
8996 get_state(PART:"elm.text", st, 30, vl);
8997 if (!strcmp(st, "visible"))
8999 set_state(PART:"elm.swallow.content", "visible", 0.0);
9000 set_state(PART:"icon_rect", "visible", 0.0);
9001 set_state(PART:"padding_after_icon", "visible", 0.0);
9005 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9006 set_state(PART:"icon_rect", "icononly", 0.0);
9007 set_state(PART:"padding_after_icon", "icononly", 0.0);
9011 program { name: "icon_hide";
9012 signal: "elm,state,icon,hidden";
9014 action: STATE_SET "default" 0.0;
9015 target: "elm.swallow.content";
9016 target: "icon_rect";
9017 target: "padding_after_icon";
9019 program { name: "disable";
9020 signal: "elm,state,disabled";
9022 action: STATE_SET "disabled" 0.0;
9024 after: "disable_text";
9026 program { name: "disable_text";
9030 set_int(button_state, BUTTON_STATE_DISABLED);
9031 get_state(PART:"elm.text", st, 30, vl);
9032 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9033 set_state(PART:"elm.text", "visible", 0.0);
9036 program { name: "enable";
9037 signal: "elm,state,enabled";
9039 action: STATE_SET "default" 0.0;
9041 after: "enable_text";
9043 program { name: "enable_text";
9047 set_int(button_state, BUTTON_STATE_ENABLED);
9048 get_state(PART:"elm.text", st, 30, vl);
9049 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9050 set_state(PART:"elm.text", "visible", 0.0);
9053 program { name: "focused";
9054 action: STATE_SET "focused" 0.0;
9055 target: "button_image";
9058 program { name: "unfocused";
9059 action: STATE_SET "default" 0.0;
9060 target: "button_image";
9061 after: "unfocus_text";
9063 program { name: "unfocus_text";
9064 action: STATE_SET "visible" 0.0;
9070 ///////////////////////////////////////////////////////////////////////////////////////
9071 group { name: "elm/button/base/controlbar/horizontal_right";
9073 public button_state = BUTTON_STATE_ENABLED;
9076 part { name: "button_image";
9080 description { state: "default" 0.0;
9087 description { state: "clicked" 0.0;
9088 inherit: "default" 0.0;
9093 name: "padding_left_top";
9097 description { state: "default" 0.0;
9099 rel1.relative: 0.0 0.0;
9100 rel2.relative: 0.0 0.0;
9107 name: "padding_right_bottom";
9111 description { state: "default" 0.0;
9113 rel1.relative: 1.0 1.0;
9114 rel2.relative: 1.0 1.0;
9125 description { state: "default" 0.0;
9129 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9130 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
9134 description { state: "visible" 0.0;
9136 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9138 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9139 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
9143 description { state: "icononly" 0.0;
9144 inherit: "default" 0.0;
9148 name: "padding_after_icon";
9152 description { state: "default" 0.0; //when only icon or no icon is there
9154 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9155 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9160 description { state: "visible" 0.0;
9163 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9164 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9169 description { state: "icononly" 0.0;
9170 inherit: "default" 0.0;
9174 name: "padding_before_text";
9178 description { state: "default" 0.0; //when only icon or no icon is there
9180 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
9181 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
9187 part { name: "elm.swallow.content";
9190 clip_to: "disabler";
9191 description { state: "default" 0.0;
9194 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9195 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
9198 description { state: "visible" 0.0;
9201 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9202 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9204 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
9205 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
9207 aspect_preference: VERTICAL;
9209 description { state: "icononly" 0.0;
9211 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9212 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
9213 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9214 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
9217 aspect_preference: VERTICAL;
9220 part { name: "elm.text";
9224 clip_to: "disabler";
9225 description { state: "default" 0.0;
9227 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
9228 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
9230 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9232 font: "SLP:style=Medium";
9239 description { state: "visible" 0.0;
9240 inherit: "default" 0.0;
9243 description { state: "clicked" 0.0;
9244 inherit: "default" 0.0;
9248 description { state: "focused" 0.0;
9249 inherit: "default" 0.0;
9252 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9255 part { name: "over2";
9259 ignore_flags: ON_HOLD;
9260 description { state: "default" 0.0;
9264 part { name: "over3";
9268 description { state: "default" 0.0;
9272 part { name: "disabler";
9274 description { state: "default" 0.0;
9275 color: 255 255 255 255;
9277 description { state: "disabled" 0.0;
9278 color: 255 255 255 127;
9283 program { name: "button_click";
9284 signal: "mouse,down,1";
9286 action: SIGNAL_EMIT "elm,action,press" "";
9287 after: "button_click_anim";
9289 program { name: "button_click_anim";
9290 action: STATE_SET "clicked" 0.0;
9291 target: "button_image";
9292 after: "text_clicked";
9294 program { name: "text_clicked";
9298 get_state(PART:"elm.text", st, 30, vl);
9299 if (!strcmp(st, "visible"))
9300 set_state(PART:"elm.text", "clicked", 0.0);
9303 program { name: "button_unpress";
9304 action: SIGNAL_EMIT "elm,action,unpress" "";
9306 program { name: "button_mouseout_clicked";
9307 signal: "mouse,up,1";
9312 get_state(PART:"elm.swallow.content", st, 30, vl);
9313 if (strcmp(st, "icononly"))
9315 emit("elm,action,default,text,set", "");
9316 set_state(PART:"elm.text", "visible", 0.0);
9318 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9319 set_state(PART:"button_image", "default", 0.0);
9321 after: button_unpress;
9323 program { name: "button_unclick3";
9324 signal: "mouse,clicked,1";
9326 action: SIGNAL_EMIT "elm,action,click" "";
9328 program { name: "text_show";
9329 signal: "elm,state,text,visible";
9334 get_state(PART:"elm.swallow.content", st, 30, vl);
9335 if (!strcmp(st, "icononly"))
9337 set_state(PART:"elm.swallow.content", "visible", 0.0);
9338 set_state(PART:"icon_rect", "visible", 0.0);
9339 set_state(PART:"padding_after_icon", "visible", 0.0);
9341 set_state(PART:"elm.text", "visible", 0.0);
9344 program { name: "text_hide";
9345 signal: "elm,state,text,hidden";
9350 get_state(PART:"elm.swallow.content", st, 30, vl);
9351 if (!strcmp(st, "visible"))
9353 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9354 set_state(PART:"icon_rect", "icononly", 0.0);
9355 set_state(PART:"padding_after_icon", "icononly", 0.0);
9357 set_state(PART:"elm.text", "default", 0.0);
9360 program { name: "icon_show";
9361 signal: "elm,state,icon,visible";
9366 get_state(PART:"elm.text", st, 30, vl);
9367 if (!strcmp(st, "visible"))
9369 set_state(PART:"elm.swallow.content", "visible", 0.0);
9370 set_state(PART:"icon_rect", "visible", 0.0);
9371 set_state(PART:"padding_after_icon", "visible", 0.0);
9375 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9376 set_state(PART:"icon_rect", "icononly", 0.0);
9377 set_state(PART:"padding_after_icon", "icononly", 0.0);
9381 program { name: "icon_hide";
9382 signal: "elm,state,icon,hidden";
9384 action: STATE_SET "default" 0.0;
9385 target: "elm.swallow.content";
9386 target: "icon_rect";
9387 target: "padding_after_icon";
9389 program { name: "disable";
9390 signal: "elm,state,disabled";
9392 action: STATE_SET "disabled" 0.0;
9394 after: "disable_text";
9396 program { name: "disable_text";
9400 set_int(button_state, BUTTON_STATE_DISABLED);
9401 get_state(PART:"elm.text", st, 30, vl);
9402 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9403 set_state(PART:"elm.text", "visible", 0.0);
9406 program { name: "enable";
9407 signal: "elm,state,enabled";
9409 action: STATE_SET "default" 0.0;
9411 after: "enable_text";
9413 program { name: "enable_text";
9417 set_int(button_state, BUTTON_STATE_ENABLED);
9418 get_state(PART:"elm.text", st, 30, vl);
9419 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9420 set_state(PART:"elm.text", "visible", 0.0);
9423 program { name: "focused";
9424 action: STATE_SET "focused" 0.0;
9425 target: "button_image";
9428 program { name: "unfocused";
9429 action: STATE_SET "default" 0.0;
9430 target: "button_image";
9431 after: "unfocus_text";
9433 program { name: "unfocus_text";
9434 action: STATE_SET "visible" 0.0;
9440 ///////////////////////////////////////////////////////////////////////////////////////
9441 group { name: "elm/button/base/tickernoti";
9443 image: "00_button_06_normal.png" COMP;
9444 image: "00_button_06_press.png" COMP;
9445 image: "00_button_06_dim.png" COMP;
9448 public button_state = BUTTON_STATE_ENABLED;
9451 part { name: "button_image";
9453 description { state: "default" 0.0;
9455 normal: "00_button_06_normal.png";
9456 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
9460 description { state: "clicked" 0.0;
9461 inherit: "default" 0.0;
9463 normal: "00_button_06_press.png";
9466 description { state: "disabled" 0.0;
9467 inherit: "default" 0.0;
9469 normal: "00_button_06_dim.png";
9472 description { state: "focused" 0.0;
9473 inherit: "default" 0.0;
9475 normal: "00_button_06_press.png";
9479 part { name: "padding_left_top";
9483 description { state: "default" 0.0;
9488 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9497 description { state: "default" 0.0;
9498 min: BUTTON_TICKERNOTI_BG_MIN_INC;
9501 description { state: "visible" 0.0;
9502 inherit: "default" 0.0;
9503 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
9505 description { state: "icononly" 0.0;
9506 inherit: "default" 0.0;
9507 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
9510 part { name: "padding_right_bottom";
9514 description { state: "default" 0.0;
9519 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
9524 part { name: "icon_rect";
9528 description { state: "default" 0.0;
9534 to: "padding_left_top";
9538 to_x: "padding_left_top";
9539 to_y: "padding_right_bottom";
9543 description { state: "visible" 0.0;
9545 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9546 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9550 to: "padding_left_top";
9554 to_x: "padding_left_top";
9555 to_y: "padding_right_bottom";
9559 description { state: "icononly" 0.0;
9560 inherit: "default" 0.0;
9563 part { name: "padding_after_icon";
9567 description { state: "default" 0.0; //when only icon or no icon is there
9580 description { state: "visible" 0.0;
9591 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9593 description { state: "icononly" 0.0;
9594 inherit: "default" 0.0;
9597 part { name: "padding_before_text";
9601 description { state: "default" 0.0; //when only icon or no icon is there
9606 to_y: "padding_left_top";
9611 to_y: "padding_right_bottom";
9614 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9618 part { name: "elm.swallow.content";
9622 description { state: "default" 0.0;
9627 to: "padding_left_top";
9631 to_x: "padding_left_top";
9632 to_y: "padding_right_bottom";
9636 description { state: "visible" 0.0;
9638 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9639 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9643 to_x: "padding_before_text";
9644 to_y: "padding_left_top";
9648 to_x: "padding_before_text";
9649 to_y: "padding_right_bottom";
9652 description { state: "icononly" 0.0;
9653 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9654 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9658 part { name: "elm.text";
9663 description { state: "default" 0.0;
9667 to_x: "padding_after_icon";
9668 to_y: "padding_left_top";
9672 to: "padding_right_bottom";
9674 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9676 font: "SLP:style=Medium";
9677 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9682 description { state: "visible" 0.0;
9683 inherit: "default" 0.0;
9686 description { state: "clicked" 0.0;
9687 inherit: "default" 0.0;
9689 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9691 description { state: "disabled" 0.0;
9692 inherit: "default" 0.0;
9695 description { state: "disabled_visible" 0.0;
9696 inherit: "default" 0.0;
9697 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9700 description { state: "focused" 0.0;
9701 inherit: "default" 0.0;
9703 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9706 part { name: "over2";
9709 ignore_flags: ON_HOLD;
9710 description { state: "default" 0.0;
9714 part { name: "over3";
9717 description { state: "default" 0.0;
9721 part { name: "clipper";
9723 description { state: "default" 0.0;
9724 color: 255 255 255 255;
9727 part { name: "disabler";
9729 description { state: "default" 0.0;
9733 description { state: "disabled" 0.0;
9734 inherit: "default" 0.0;
9740 program { name: "button_click";
9741 signal: "mouse,down,1";
9743 action: SIGNAL_EMIT "elm,action,press" "";
9744 after: "button_click_anim";
9746 program { name: "button_click_anim";
9747 action: STATE_SET "clicked" 0.0;
9748 target: "button_image";
9749 after: "text_clicked";
9751 program { name: "text_clicked";
9755 get_state(PART:"elm.text", st, 30, vl);
9756 if (!strcmp(st, "visible"))
9757 set_state(PART:"elm.text", "clicked", 0.0);
9760 program { name: "button_unpress";
9761 action: SIGNAL_EMIT "elm,action,unpress" "";
9763 program { name: "button_mouseout_clicked";
9764 signal: "mouse,up,1";
9769 get_state(PART:"elm.swallow.content", st, 30, vl);
9770 if (strcmp(st, "icononly"))
9772 emit("elm,action,default,text,set", "");
9773 set_state(PART:"elm.text", "visible", 0.0);
9775 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9776 set_state(PART:"button_image", "default", 0.0);
9778 after: button_unpress;
9780 program { name: "button_unclick3";
9781 signal: "mouse,clicked,1";
9783 action: SIGNAL_EMIT "elm,action,click" "";
9785 program { name: "text_show";
9786 signal: "elm,state,text,visible";
9791 get_state(PART:"elm.swallow.content", st, 30, vl);
9792 if (!strcmp(st, "icononly"))
9794 set_state(PART:"elm.swallow.content", "visible", 0.0);
9795 set_state(PART:"icon_rect", "visible", 0.0);
9796 set_state(PART:"padding_after_icon", "visible", 0.0);
9797 set_state(PART:"bg", "visible", 0.0);
9799 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9800 set_state(PART:"elm.text", "visible", 0.0);
9802 set_state(PART:"elm.text", "disabled_visible", 0.0);
9805 program { name: "text_hide";
9806 signal: "elm,state,text,hidden";
9811 get_state(PART:"elm.swallow.content", st, 30, vl);
9812 if (!strcmp(st, "visible"))
9814 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9815 set_state(PART:"icon_rect", "icononly", 0.0);
9816 set_state(PART:"padding_after_icon", "icononly", 0.0);
9817 set_state(PART:"bg", "icononly", 0.0);
9819 set_state(PART:"elm.text", "default", 0.0);
9822 program { name: "icon_show";
9823 signal: "elm,state,icon,visible";
9828 get_state(PART:"elm.text", st, 30, vl);
9829 if (!strcmp(st, "visible"))
9831 set_state(PART:"elm.swallow.content", "visible", 0.0);
9832 set_state(PART:"icon_rect", "visible", 0.0);
9833 set_state(PART:"padding_after_icon", "visible", 0.0);
9834 set_state(PART:"bg", "visible", 0.0);
9838 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9839 set_state(PART:"icon_rect", "icononly", 0.0);
9840 set_state(PART:"padding_after_icon", "icononly", 0.0);
9841 set_state(PART:"bg", "icononly", 0.0);
9845 program { name: "icon_hide";
9846 signal: "elm,state,icon,hidden";
9848 action: STATE_SET "default" 0.0;
9849 target: "elm.swallow.content";
9850 target: "padding_after_icon";
9851 target: "icon_rect";
9854 program { name: "disable";
9855 signal: "elm,state,disabled";
9857 action: STATE_SET "disabled" 0.0;
9858 target: "button_image";
9860 after: "disable_text";
9862 program { name: "disable_text";
9866 get_state(PART:"elm.text", st, 30, vl);
9867 if (!strcmp(st, "visible"))
9868 set_state(PART:"elm.text", "disabled_visible", 0.0);
9870 set_state(PART:"elm.text", "disabled", 0.0);
9871 set_int(button_state, BUTTON_STATE_DISABLED);
9874 program { name: "enable";
9875 signal: "elm,state,enabled";
9877 action: STATE_SET "default" 0.0;
9878 target: "button_image";
9880 after: "enable_text";
9882 program { name: "enable_text";
9886 get_state(PART:"elm.text", st, 30, vl);
9887 if (!strcmp(st, "disabled_visible"))
9888 set_state(PART:"elm.text", "visible", 0.0);
9890 set_state(PART:"elm.text", "default", 0.0);
9891 set_int(button_state, BUTTON_STATE_ENABLED);
9894 program { name: "focused";
9895 //signal: "elm,action,focus";
9897 action: STATE_SET "focused" 0.0;
9898 target: "button_image";
9901 program { name: "unfocused";
9902 //signal: "elm,action,unfocus";
9904 action: STATE_SET "default" 0.0;
9905 target: "button_image";
9906 after: "unfocus_text";
9908 program { name: "unfocus_text";
9909 action: STATE_SET "visible" 0.0;
9915 ///////////////////////////////////////////////////////////////////////////////////////
9916 group { name: "elm/button/base/expandable_number";
9917 alias: "elm/button/base/text_only/expandable_number";
9919 image: "00_button_05_normal.png" COMP;
9920 image: "00_button_05_press.png" COMP;
9921 image: "00_button_05_dim.png" COMP;
9922 image: "00_arrow_expand.png" COMP;
9923 image: "00_arrow_expand_press.png" COMP;
9924 image: "00_arrow_expand_dim.png" COMP;
9927 public button_state = BUTTON_STATE_ENABLED;
9930 part { name: "button_image";
9933 description { state: "default" 0.0;
9934 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9935 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9937 normal: "00_button_05_normal.png";
9938 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9942 description { state: "clicked" 0.0;
9943 inherit: "default" 0.0;
9944 image.normal: "00_button_05_press.png";
9946 description { state: "disabled" 0.0;
9947 inherit: "default" 0.0;
9948 image.normal: "00_button_05_dim.png";
9950 description { state: "focused" 0.0;
9951 inherit: "default" 0.0;
9952 image.normal: "00_button_05_press.png";
9956 name: "padding_left_top";
9960 description { state: "default" 0.0;
9962 rel1.relative: 0.0 0.0;
9963 rel2.relative: 0.0 0.0;
9964 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9970 name: "padding_right_bottom";
9974 description { state: "default" 0.0;
9976 rel1.relative: 1.0 1.0;
9977 rel2.relative: 1.0 1.0;
9978 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9988 description { state: "default" 0.0;
9990 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9991 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9993 rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
9994 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
10000 name: "arrow_expand";
10003 description { state: "default" 0.0;
10005 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10006 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10008 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
10009 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10010 image.normal:"00_arrow_expand.png";
10012 description { state: "clicked" 0.0;
10013 inherit: "default" 0.0;
10014 image.normal:"00_arrow_expand_press.png";
10016 description { state: "disabled" 0.0;
10017 inherit: "default" 0.0;
10018 image.normal:"00_arrow_expand_dim.png";
10021 part { name: "elm.text";
10025 description { state: "default" 0.0;
10027 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10028 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10030 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
10031 rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
10033 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10035 font: "SLP:style=Medium";
10036 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
10043 description { state: "visible" 0.0;
10044 inherit: "default" 0.0;
10047 description { state: "clicked" 0.0;
10048 inherit: "default" 0.0;
10050 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10052 description { state: "disabled" 0.0;
10053 inherit: "default" 0.0;
10056 description { state: "disabled_visible" 0.0;
10057 inherit: "default" 0.0;
10058 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10061 description { state: "focused" 0.0;
10062 inherit: "default" 0.0;
10064 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10067 part { name: "over2";
10071 ignore_flags: ON_HOLD;
10072 description { state: "default" 0.0;
10076 part { name: "over3";
10080 description { state: "default" 0.0;
10084 part { name: "disabler";
10086 description { state: "default" 0.0;
10090 description { state: "disabled" 0.0;
10091 inherit: "default" 0.0;
10097 program { name: "button_click";
10098 signal: "mouse,down,1";
10100 action: SIGNAL_EMIT "elm,action,press" "";
10101 after: "button_click_anim";
10103 program { name: "button_click_anim";
10104 action: STATE_SET "clicked" 0.0;
10105 target: "button_image";
10106 target: "arrow_expand";
10107 after: "text_clicked";
10109 program { name: "text_clicked";
10113 get_state(PART:"elm.text", st, 30, vl);
10114 if (!strcmp(st, "visible"))
10115 set_state(PART:"elm.text", "clicked", 0.0);
10118 program { name: "button_unpress";
10119 action: SIGNAL_EMIT "elm,action,unpress" "";
10121 program { name: "button_mouseout_clicked";
10122 signal: "mouse,up,1";
10125 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10127 set_state(PART:"button_image", "default", 0.0);
10128 set_state(PART:"elm.text", "visible", 0.0);
10129 set_state(PART:"arrow_expand", "default", 0.0);
10132 after: button_unpress;
10134 program { name: "button_unclick3";
10135 signal: "mouse,clicked,1";
10137 action: SIGNAL_EMIT "elm,action,click" "";
10139 program { name: "text_show";
10140 signal: "elm,state,text,visible";
10143 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10144 set_state(PART:"elm.text", "visible", 0.0);
10146 set_state(PART:"elm.text", "disabled_visible", 0.0);
10149 program { name: "text_hide";
10150 signal: "elm,state,text,hidden";
10153 set_state(PART:"elm.text", "default", 0.0);
10156 program { name: "disable";
10157 signal: "elm,state,disabled";
10159 action: STATE_SET "disabled" 0.0;
10160 target: "button_image";
10161 target: "disabler";
10162 after: "disable_text";
10164 program { name: "disable_text";
10168 get_state(PART:"elm.text", st, 30, vl);
10169 if (!strcmp(st, "visible"))
10170 set_state(PART:"elm.text", "disabled_visible", 0.0);
10172 set_state(PART:"elm.text", "disabled", 0.0);
10173 set_int(button_state, BUTTON_STATE_DISABLED);
10176 program { name: "enable";
10177 signal: "elm,state,enabled";
10179 action: STATE_SET "default" 0.0;
10180 target: "button_image";
10181 target: "disabler";
10182 after: "enable_text";
10184 program { name: "enable_text";
10188 get_state(PART:"elm.text", st, 30, vl);
10189 if (!strcmp(st, "disabled_visible"))
10190 set_state(PART:"elm.text", "visible", 0.0);
10192 set_state(PART:"elm.text", "default", 0.0);
10193 set_int(button_state, BUTTON_STATE_ENABLED);
10196 program { name: "focused";
10197 //signal: "elm,action,focus";
10199 action: STATE_SET "focused" 0.0;
10200 target: "button_image";
10201 target: "elm.text";
10203 program { name: "unfocused";
10204 //signal: "elm,action,unfocus";
10206 action: STATE_SET "default" 0.0;
10207 target: "button_image";
10208 after: "unfocus_text";
10210 program { name: "unfocus_text";
10211 action: STATE_SET "visible" 0.0;
10212 target: "elm.text";
10217 #undef BUTTON_STATE_ENABLED
10218 #undef BUTTON_STATE_DISABLED