4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
8 * This library is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by the
10 * Free Software Foundation; either version 2.1 of the License, or (at your option)
13 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 * License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, write to the Free Software Foundation, Inc., 51
20 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #define BUTTON_STATE_ENABLED 0
25 #define BUTTON_STATE_DISABLED 1
27 ///////////////////////////////////////////////////////////////////////////////////////
28 group { name: "elm/button/base/style1";
29 alias: "elm/button/base/text_only/style1";
30 alias: "elm/button/base/center";
31 alias: "elm/button/base/icon_and_text/center";
32 alias: "elm/button/base/nocontents/search_button";
34 image: "00_button_01_normal.png" COMP;
35 image: "00_button_01_normal_press.png" COMP;
36 image: "00_button_01_normal_dim.png" COMP;
39 public button_state = BUTTON_STATE_ENABLED;
42 part { name: "button_image";
44 description { state: "default" 0.0;
46 normal: "00_button_01_normal.png";
47 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
51 description { state: "clicked" 0.0;
52 inherit: "default" 0.0;
54 normal: "00_button_01_normal_press.png";
57 description { state: "disabled" 0.0;
58 inherit: "default" 0.0;
60 normal: "00_button_01_normal_dim.png";
63 description { state: "focused" 0.0;
64 inherit: "default" 0.0;
66 normal: "00_button_01_normal_press.png";
70 part { name: "padding_left_top";
74 description { state: "default" 0.0;
79 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
88 description { state: "default" 0.0;
89 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
92 description { state: "visible" 0.0;
93 inherit: "default" 0.0;
94 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
96 description { state: "icononly" 0.0;
97 inherit: "default" 0.0;
98 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
101 part { name: "padding_right_bottom";
105 description { state: "default" 0.0;
110 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
115 part { name: "icon_rect";
119 description { state: "default" 0.0;
125 to: "padding_left_top";
129 to_x: "padding_left_top";
130 to_y: "padding_right_bottom";
134 description { state: "visible" 0.0;
136 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
137 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
141 to: "padding_left_top";
145 to_x: "padding_left_top";
146 to_y: "padding_right_bottom";
150 description { state: "icononly" 0.0;
151 inherit: "default" 0.0;
154 part { name: "padding_after_icon";
158 description { state: "default" 0.0; //when only icon or no icon is there
171 description { state: "visible" 0.0;
182 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
184 description { state: "icononly" 0.0;
185 inherit: "default" 0.0;
188 part { name: "padding_before_text";
192 description { state: "default" 0.0; //when only icon or no icon is there
197 to_y: "padding_left_top";
202 to_y: "padding_right_bottom";
205 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
209 part { name: "elm.swallow.content";
213 description { state: "default" 0.0;
218 to: "padding_left_top";
222 to_x: "padding_left_top";
223 to_y: "padding_right_bottom";
227 description { state: "visible" 0.0;
229 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
230 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
234 to_x: "padding_before_text";
235 to_y: "padding_left_top";
239 to_x: "padding_before_text";
240 to_y: "padding_right_bottom";
243 description { state: "icononly" 0.0;
244 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
245 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
249 part { name: "elm.text";
254 description { state: "default" 0.0;
258 to_x: "padding_after_icon";
259 to_y: "padding_left_top";
263 to: "padding_right_bottom";
265 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
267 font: "SLP:style=Medium";
268 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
273 description { state: "visible" 0.0;
274 inherit: "default" 0.0;
277 description { state: "clicked" 0.0;
278 inherit: "default" 0.0;
280 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
282 description { state: "disabled" 0.0;
283 inherit: "default" 0.0;
286 description { state: "disabled_visible" 0.0;
287 inherit: "default" 0.0;
288 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
291 description { state: "focused" 0.0;
292 inherit: "default" 0.0;
294 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
297 part { name: "over2";
300 ignore_flags: ON_HOLD;
301 description { state: "default" 0.0;
305 part { name: "over3";
308 description { state: "default" 0.0;
312 part { name: "clipper";
314 description { state: "default" 0.0;
315 color: 255 255 255 255;
318 part { name: "disabler";
320 description { state: "default" 0.0;
324 description { state: "disabled" 0.0;
325 inherit: "default" 0.0;
331 program { name: "button_click";
332 signal: "mouse,down,1";
334 action: SIGNAL_EMIT "elm,action,press" "";
335 after: "button_click_anim";
337 program { name: "button_click_anim";
338 action: STATE_SET "clicked" 0.0;
339 target: "button_image";
340 after: "text_clicked";
342 program { name: "text_clicked";
346 get_state(PART:"elm.text", st, 30, vl);
347 if (!strcmp(st, "visible"))
348 set_state(PART:"elm.text", "clicked", 0.0);
351 program { name: "button_unpress";
352 action: SIGNAL_EMIT "elm,action,unpress" "";
354 program { name: "button_mouseout_clicked";
355 signal: "mouse,up,1";
360 get_state(PART:"elm.swallow.content", st, 30, vl);
361 if (strcmp(st, "icononly"))
363 emit("elm,action,default,text,set", "");
364 set_state(PART:"elm.text", "visible", 0.0);
366 if (get_int(button_state) != BUTTON_STATE_DISABLED)
367 set_state(PART:"button_image", "default", 0.0);
369 after: button_unpress;
371 program { name: "button_unclick3";
372 signal: "mouse,clicked,1";
374 action: SIGNAL_EMIT "elm,action,click" "";
376 program { name: "text_show";
377 signal: "elm,state,text,visible";
382 get_state(PART:"elm.swallow.content", st, 30, vl);
383 if (!strcmp(st, "icononly"))
385 set_state(PART:"elm.swallow.content", "visible", 0.0);
386 set_state(PART:"icon_rect", "visible", 0.0);
387 set_state(PART:"padding_after_icon", "visible", 0.0);
388 set_state(PART:"bg", "visible", 0.0);
390 if (get_int(button_state) != BUTTON_STATE_DISABLED)
391 set_state(PART:"elm.text", "visible", 0.0);
393 set_state(PART:"elm.text", "disabled_visible", 0.0);
396 program { name: "text_hide";
397 signal: "elm,state,text,hidden";
402 get_state(PART:"elm.swallow.content", st, 30, vl);
403 if (!strcmp(st, "visible"))
405 set_state(PART:"elm.swallow.content", "icononly", 0.0);
406 set_state(PART:"icon_rect", "icononly", 0.0);
407 set_state(PART:"padding_after_icon", "icononly", 0.0);
408 set_state(PART:"bg", "icononly", 0.0);
410 set_state(PART:"elm.text", "default", 0.0);
413 program { name: "icon_show";
414 signal: "elm,state,icon,visible";
419 get_state(PART:"elm.text", st, 30, vl);
420 if (!strcmp(st, "visible"))
422 set_state(PART:"elm.swallow.content", "visible", 0.0);
423 set_state(PART:"icon_rect", "visible", 0.0);
424 set_state(PART:"padding_after_icon", "visible", 0.0);
425 set_state(PART:"bg", "visible", 0.0);
429 set_state(PART:"elm.swallow.content", "icononly", 0.0);
430 set_state(PART:"icon_rect", "icononly", 0.0);
431 set_state(PART:"padding_after_icon", "icononly", 0.0);
432 set_state(PART:"bg", "icononly", 0.0);
436 program { name: "icon_hide";
437 signal: "elm,state,icon,hidden";
439 action: STATE_SET "default" 0.0;
440 target: "elm.swallow.content";
441 target: "padding_after_icon";
445 program { name: "disable";
446 signal: "elm,state,disabled";
448 action: STATE_SET "disabled" 0.0;
449 target: "button_image";
451 after: "disable_text";
453 program { name: "disable_text";
457 get_state(PART:"elm.text", st, 30, vl);
458 if (!strcmp(st, "visible"))
459 set_state(PART:"elm.text", "disabled_visible", 0.0);
461 set_state(PART:"elm.text", "disabled", 0.0);
462 set_int(button_state, BUTTON_STATE_DISABLED);
465 program { name: "enable";
466 signal: "elm,state,enabled";
468 action: STATE_SET "default" 0.0;
469 target: "button_image";
471 after: "enable_text";
473 program { name: "enable_text";
477 get_state(PART:"elm.text", st, 30, vl);
478 if (!strcmp(st, "disabled_visible"))
479 set_state(PART:"elm.text", "visible", 0.0);
481 set_state(PART:"elm.text", "default", 0.0);
482 set_int(button_state, BUTTON_STATE_ENABLED);
485 program { name: "focused";
486 //signal: "elm,action,focus";
488 action: STATE_SET "focused" 0.0;
489 target: "button_image";
492 program { name: "unfocused";
493 //signal: "elm,action,unfocus";
495 action: STATE_SET "default" 0.0;
496 target: "button_image";
497 after: "unfocus_text";
499 program { name: "unfocus_text";
500 action: STATE_SET "visible" 0.0;
506 ///////////////////////////////////////////////////////////////////////////////////////
507 group { name: "elm/button/base/style2";
508 alias: "elm/button/base/text_only/style2";
510 image: "00_button_04_normal.png" COMP;
511 image: "00_button_04_press.png" COMP;
512 image: "00_button_04_dim.png" COMP;
515 public button_state = BUTTON_STATE_ENABLED;
518 part { name: "button_image";
520 description { state: "default" 0.0;
522 normal: "00_button_04_normal.png";
523 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
527 description { state: "clicked" 0.0;
528 inherit: "default" 0.0;
530 normal: "00_button_04_press.png";
533 description { state: "disabled" 0.0;
534 inherit: "default" 0.0;
536 normal: "00_button_04_dim.png";
539 description { state: "focused" 0.0;
540 inherit: "default" 0.0;
542 normal: "00_button_04_press.png";
546 part { name: "padding_left_top";
550 description { state: "default" 0.0;
555 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
564 description { state: "default" 0.0;
565 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
568 description { state: "visible" 0.0;
569 inherit: "default" 0.0;
570 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
572 description { state: "icononly" 0.0;
573 inherit: "default" 0.0;
574 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
577 part { name: "padding_right_bottom";
581 description { state: "default" 0.0;
586 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
591 part { name: "icon_rect";
595 description { state: "default" 0.0;
601 to: "padding_left_top";
605 to_x: "padding_left_top";
606 to_y: "padding_right_bottom";
610 description { state: "visible" 0.0;
612 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
613 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
617 to: "padding_left_top";
621 to_x: "padding_left_top";
622 to_y: "padding_right_bottom";
626 description { state: "icononly" 0.0;
627 inherit: "default" 0.0;
630 part { name: "padding_after_icon";
634 description { state: "default" 0.0; //when only icon or no icon is there
647 description { state: "visible" 0.0;
658 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
660 description { state: "icononly" 0.0;
661 inherit: "default" 0.0;
664 part { name: "padding_before_text";
668 description { state: "default" 0.0; //when only icon or no icon is there
673 to_y: "padding_left_top";
678 to_y: "padding_right_bottom";
681 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
685 part { name: "elm.swallow.content";
689 description { state: "default" 0.0;
694 to: "padding_left_top";
698 to_x: "padding_left_top";
699 to_y: "padding_right_bottom";
703 description { state: "visible" 0.0;
705 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
706 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
710 to_x: "padding_before_text";
711 to_y: "padding_left_top";
715 to_x: "padding_before_text";
716 to_y: "padding_right_bottom";
719 description { state: "icononly" 0.0;
720 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
721 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
724 part { name: "elm.text";
729 description { state: "default" 0.0;
733 to_x: "padding_after_icon";
734 to_y: "padding_left_top";
738 to: "padding_right_bottom";
740 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
742 font: "SLP:style=Medium";
743 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
748 description { state: "visible" 0.0;
749 inherit: "default" 0.0;
752 description { state: "clicked" 0.0;
753 inherit: "default" 0.0;
755 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
757 description { state: "disabled" 0.0;
758 inherit: "default" 0.0;
761 description { state: "disabled_visible" 0.0;
762 inherit: "default" 0.0;
763 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
766 description { state: "focused" 0.0;
767 inherit: "default" 0.0;
769 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
772 part { name: "over2";
775 ignore_flags: ON_HOLD;
776 description { state: "default" 0.0;
780 part { name: "over3";
783 description { state: "default" 0.0;
787 part { name: "clipper";
789 description { state: "default" 0.0;
790 color: 255 255 255 255;
793 part { name: "disabler";
795 description { state: "default" 0.0;
799 description { state: "disabled" 0.0;
800 inherit: "default" 0.0;
806 program { name: "button_click";
807 signal: "mouse,down,1";
809 action: SIGNAL_EMIT "elm,action,press" "";
810 after: "button_click_anim";
812 program { name: "button_click_anim";
813 action: STATE_SET "clicked" 0.0;
814 target: "button_image";
815 after: "text_clicked";
817 program { name: "text_clicked";
821 get_state(PART:"elm.text", st, 30, vl);
822 if (!strcmp(st, "visible"))
823 set_state(PART:"elm.text", "clicked", 0.0);
826 program { name: "button_unpress";
827 action: SIGNAL_EMIT "elm,action,unpress" "";
829 program { name: "button_mouseout_clicked";
830 signal: "mouse,up,1";
835 get_state(PART:"elm.swallow.content", st, 30, vl);
836 if (strcmp(st, "icononly"))
838 emit("elm,action,default,text,set", "");
839 set_state(PART:"elm.text", "visible", 0.0);
841 if (get_int(button_state) != BUTTON_STATE_DISABLED)
842 set_state(PART:"button_image", "default", 0.0);
844 after: button_unpress;
846 program { name: "button_unclick3";
847 signal: "mouse,clicked,1";
849 action: SIGNAL_EMIT "elm,action,click" "";
851 program { name: "text_show";
852 signal: "elm,state,text,visible";
857 get_state(PART:"elm.swallow.content", st, 30, vl);
858 if (!strcmp(st, "icononly"))
860 set_state(PART:"elm.swallow.content", "visible", 0.0);
861 set_state(PART:"icon_rect", "visible", 0.0);
862 set_state(PART:"padding_after_icon", "visible", 0.0);
863 set_state(PART:"bg", "visible", 0.0);
865 if (get_int(button_state) != BUTTON_STATE_DISABLED)
866 set_state(PART:"elm.text", "visible", 0.0);
868 set_state(PART:"elm.text", "disabled_visible", 0.0);
871 program { name: "text_hide";
872 signal: "elm,state,text,hidden";
877 get_state(PART:"elm.swallow.content", st, 30, vl);
878 if (!strcmp(st, "visible"))
880 set_state(PART:"elm.swallow.content", "icononly", 0.0);
881 set_state(PART:"icon_rect", "icononly", 0.0);
882 set_state(PART:"padding_after_icon", "icononly", 0.0);
883 set_state(PART:"bg", "icononly", 0.0);
885 set_state(PART:"elm.text", "default", 0.0);
888 program { name: "icon_show";
889 signal: "elm,state,icon,visible";
894 get_state(PART:"elm.text", st, 30, vl);
895 if (!strcmp(st, "visible"))
897 set_state(PART:"elm.swallow.content", "visible", 0.0);
898 set_state(PART:"icon_rect", "visible", 0.0);
899 set_state(PART:"padding_after_icon", "visible", 0.0);
900 set_state(PART:"bg", "visible", 0.0);
904 set_state(PART:"elm.swallow.content", "icononly", 0.0);
905 set_state(PART:"icon_rect", "icononly", 0.0);
906 set_state(PART:"padding_after_icon", "icononly", 0.0);
907 set_state(PART:"bg", "icononly", 0.0);
911 program { name: "icon_hide";
912 signal: "elm,state,icon,hidden";
914 action: STATE_SET "default" 0.0;
915 target: "elm.swallow.content";
916 target: "padding_after_icon";
920 program { name: "disable";
921 signal: "elm,state,disabled";
923 action: STATE_SET "disabled" 0.0;
924 target: "button_image";
926 after: "disable_text";
928 program { name: "disable_text";
932 get_state(PART:"elm.text", st, 30, vl);
933 if (!strcmp(st, "visible"))
934 set_state(PART:"elm.text", "disabled_visible", 0.0);
936 set_state(PART:"elm.text", "disabled", 0.0);
937 set_int(button_state, BUTTON_STATE_DISABLED);
940 program { name: "enable";
941 signal: "elm,state,enabled";
943 action: STATE_SET "default" 0.0;
944 target: "button_image";
946 after: "enable_text";
948 program { name: "enable_text";
952 get_state(PART:"elm.text", st, 30, vl);
953 if (!strcmp(st, "disabled_visible"))
954 set_state(PART:"elm.text", "visible", 0.0);
956 set_state(PART:"elm.text", "default", 0.0);
957 set_int(button_state, BUTTON_STATE_ENABLED);
960 program { name: "focused";
961 //signal: "elm,action,focus";
963 action: STATE_SET "focused" 0.0;
964 target: "button_image";
967 program { name: "unfocused";
968 //signal: "elm,action,unfocus";
970 action: STATE_SET "default" 0.0;
971 target: "button_image";
972 after: "unfocus_text";
974 program { name: "unfocus_text";
975 action: STATE_SET "visible" 0.0;
981 ///////////////////////////////////////////////////////////////////////////////////////
982 group { name: "elm/button/base/sweep";
983 alias: "elm/button/base/text_only/sweep";
984 alias: "elm/button/base/searchbar/default";
986 image: "00_button_sweep.png" COMP;
987 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
988 image: "00_button_sweep_dim.png" COMP;
991 public button_state = BUTTON_STATE_ENABLED;
994 part { name: "button_image";
997 description { state: "default" 0.0;
998 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1000 normal: "00_button_sweep.png";
1001 border: BUTTON_SWEEP_BG_BORDER_INC;
1005 description { state: "clicked" 0.0;
1006 inherit: "default" 0.0;
1007 image.normal: "00_button_sweep_press.png";
1009 description { state: "disabled" 0.0;
1010 inherit: "default" 0.0;
1011 image.normal: "00_button_sweep_dim.png";
1013 description { state: "focused" 0.0;
1014 inherit: "default" 0.0;
1015 image.normal: "00_button_sweep_press.png";
1019 name: "padding_left_top";
1023 description { state: "default" 0.0;
1025 rel1.relative: 0.0 0.0;
1026 rel2.relative: 0.0 0.0;
1027 min: BUTTON_SWEEP_PADDING_MIN_INC;
1033 name: "padding_right_bottom";
1037 description { state: "default" 0.0;
1039 rel1.relative: 1.0 1.0;
1040 rel2.relative: 1.0 1.0;
1041 min: BUTTON_SWEEP_PADDING_MIN_INC;
1051 description { state: "default" 0.0;
1053 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1055 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
1056 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
1062 name: "padding_icon_text";
1066 description { state: "default" 0.0; //when only icon or no icon is there
1068 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1069 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1074 description { state: "icononly" 0.0;
1075 inherit: "default" 0.0;
1077 description { state: "visible" 0.0; //when icon is visible
1079 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1080 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1082 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1086 part { name: "elm.swallow.content";
1089 description { state: "default" 0.0;
1092 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
1093 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
1096 description { state: "visible" 0.0;
1100 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
1101 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
1103 aspect_preference: VERTICAL;
1105 description { state: "icononly" 0.0;
1107 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1108 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
1109 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
1113 part { name: "elm.text";
1117 description { state: "default" 0.0;
1119 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
1120 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
1122 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1124 font: "SLP:style=Medium";
1125 size: BUTTON_SWEEP_FONT_SIZE_INC;
1130 description { state: "visible" 0.0;
1131 inherit: "default" 0.0;
1133 min: BUTTON_SWEEP_TEXT_MIN_INC;
1135 description { state: "clicked" 0.0;
1136 inherit: "default" 0.0;
1139 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1141 description { state: "disabled" 0.0;
1142 inherit: "default" 0.0;
1145 description { state: "disabled_visible" 0.0;
1146 inherit: "default" 0.0;
1147 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1149 min: BUTTON_SWEEP_TEXT_MIN_INC;
1151 description { state: "focused" 0.0;
1152 inherit: "default" 0.0;
1155 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1158 part { name: "over2";
1162 ignore_flags: ON_HOLD;
1163 description { state: "default" 0.0;
1167 part { name: "over3";
1171 description { state: "default" 0.0;
1175 part { name: "disabler";
1177 description { state: "default" 0.0;
1181 description { state: "disabled" 0.0;
1182 inherit: "default" 0.0;
1188 program { name: "button_click";
1189 signal: "mouse,down,1";
1191 action: SIGNAL_EMIT "elm,action,press" "";
1192 after: "button_click_anim";
1194 program { name: "button_click_anim";
1195 action: STATE_SET "clicked" 0.0;
1196 target: "button_image";
1197 after: "text_clicked";
1199 program { name: "text_clicked";
1203 get_state(PART:"elm.text", st, 30, vl);
1204 if (!strcmp(st, "visible"))
1205 set_state(PART:"elm.text", "clicked", 0.0);
1208 program { name: "button_unpress";
1209 action: SIGNAL_EMIT "elm,action,unpress" "";
1211 program { name: "button_mouseout_clicked";
1212 signal: "mouse,up,1";
1217 get_state(PART:"elm.swallow.content", st, 30, vl);
1218 if (strcmp(st, "icononly"))
1220 emit("elm,action,default,text,set", "");
1221 set_state(PART:"elm.text", "visible", 0.0);
1223 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1224 set_state(PART:"button_image", "default", 0.0);
1226 after: button_unpress;
1228 program { name: "button_unclick3";
1229 signal: "mouse,clicked,1";
1231 action: SIGNAL_EMIT "elm,action,click" "";
1233 program { name: "text_show";
1234 signal: "elm,state,text,visible";
1239 get_state(PART:"elm.swallow.content", st, 30, vl);
1240 if (!strcmp(st, "icononly"))
1242 set_state(PART:"elm.swallow.content", "visible", 0.0);
1243 set_state(PART:"padding_icon_text", "visible", 0.0);
1245 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1246 set_state(PART:"elm.text", "visible", 0.0);
1248 set_state(PART:"elm.text", "disabled_visible", 0.0);
1251 program { name: "text_hide";
1252 signal: "elm,state,text,hidden";
1257 get_state(PART:"elm.swallow.content", st, 30, vl);
1258 if (!strcmp(st, "visible"))
1260 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1261 set_state(PART:"padding_icon_text", "icononly", 0.0);
1263 set_state(PART:"elm.text", "default", 0.0);
1266 program { name: "icon_show";
1267 signal: "elm,state,icon,visible";
1272 get_state(PART:"elm.text", st, 30, vl);
1273 if (!strcmp(st, "visible"))
1275 set_state(PART:"elm.swallow.content", "visible", 0.0);
1276 set_state(PART:"padding_icon_text", "visible", 0.0);
1280 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1281 set_state(PART:"padding_icon_text", "icononly", 0.0);
1285 program { name: "icon_hide";
1286 signal: "elm,state,icon,hidden";
1288 action: STATE_SET "default" 0.0;
1289 target: "elm.swallow.content";
1290 target: "padding_icon_text";
1292 program { name: "disable";
1293 signal: "elm,state,disabled";
1295 action: STATE_SET "disabled" 0.0;
1296 target: "button_image";
1298 after: "disable_text";
1300 program { name: "disable_text";
1304 get_state(PART:"elm.text", st, 30, vl);
1305 if (!strcmp(st, "visible"))
1306 set_state(PART:"elm.text", "disabled_visible", 0.0);
1308 set_state(PART:"elm.text", "disabled", 0.0);
1309 set_int(button_state, BUTTON_STATE_DISABLED);
1312 program { name: "enable";
1313 signal: "elm,state,enabled";
1315 action: STATE_SET "default" 0.0;
1316 target: "button_image";
1318 after: "enable_text";
1320 program { name: "enable_text";
1324 get_state(PART:"elm.text", st, 30, vl);
1325 if (!strcmp(st, "disabled_visible"))
1326 set_state(PART:"elm.text", "visible", 0.0);
1328 set_state(PART:"elm.text", "default", 0.0);
1329 set_int(button_state, BUTTON_STATE_ENABLED);
1332 program { name: "focused";
1333 //signal: "elm,action,focus";
1335 action: STATE_SET "focused" 0.0;
1336 target: "button_image";
1339 program { name: "unfocused";
1340 //signal: "elm,action,unfocus";
1342 action: STATE_SET "default" 0.0;
1343 target: "button_image";
1344 after: "unfocus_text";
1346 program { name: "unfocus_text";
1347 action: STATE_SET "visible" 0.0;
1354 ///////////////////////////////////////////////////////////////////////////////////////
1355 group { name: "elm/button/base/navigationbar_next_btn/default";
1356 //TODO: remove alias later.
1357 alias: "elm/button/base/navigationbar_functionbutton/default";
1359 public button_state = BUTTON_STATE_ENABLED;
1362 part { name: "button_image";
1365 description { state: "default" 0.0;
1368 description { state: "clicked" 0.0;
1369 inherit: "default" 0.0;
1371 description { state: "disabled" 0.0;
1372 inherit: "default" 0.0;
1374 description { state: "focused" 0.0;
1375 inherit: "default" 0.0;
1379 name: "padding_left";
1383 description { state: "default" 0.0;
1385 rel1.relative: 0.0 0.0;
1386 rel2.relative: 0.0 1.0;
1392 part {name: "padding_after_right";
1395 description { state: "default" 0.0;
1398 rel1 { relative: 1 0.2; }
1399 rel2 { relative: 1 0.8; }
1401 color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC;
1404 part {name: "padding_right";
1407 description { state: "default" 0.0;
1410 rel1 { relative: 0 0; to: "padding_after_right"; }
1411 rel2 { relative: 0 1; to: "padding_after_right"; }
1413 color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC;
1417 name: "padding_top";
1421 description { state: "default" 0.0;
1423 rel1.relative: 0.0 0.0;
1424 rel2.relative: 1.0 0.0;
1431 name: "padding_bottom";
1435 description { state: "default" 0.0;
1437 rel1.relative: 0.0 1.0;
1438 rel2.relative: 1.0 1.0;
1449 description { state: "default" 0.0;
1453 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1454 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1460 name: "padding_icon_text";
1464 description { state: "default" 0.0; //when only icon or no icon is there
1466 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1467 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1472 description { state: "icononly" 0.0;
1473 inherit: "default" 0.0;
1475 description { state: "visible" 0.0; //when icon is visible
1477 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1478 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1484 part { name: "elm.swallow.content";
1487 description { state: "default" 0.0;
1490 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1491 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1494 description { state: "visible" 0.0;
1498 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1499 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1501 aspect_preference: VERTICAL;
1503 description { state: "icononly" 0.0;
1506 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1507 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1510 aspect_preference: VERTICAL;
1513 part { name: "elm.text";
1517 description { state: "default" 0.0;
1519 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1520 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1522 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
1524 font: "SLP:style=Medium";
1530 description { state: "visible" 0.0;
1531 inherit: "default" 0.0;
1535 description { state: "clicked" 0.0;
1536 inherit: "default" 0.0;
1539 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
1541 description { state: "disabled" 0.0;
1542 inherit: "default" 0.0;
1545 description { state: "disabled_visible" 0.0;
1546 inherit: "default" 0.0;
1547 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
1551 description { state: "focused" 0.0;
1552 inherit: "default" 0.0;
1555 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
1558 part { name: "over2";
1562 ignore_flags: ON_HOLD;
1563 description { state: "default" 0.0;
1567 part { name: "over3";
1571 description { state: "default" 0.0;
1575 part { name: "disabler";
1577 description { state: "default" 0.0;
1581 description { state: "disabled" 0.0;
1582 inherit: "default" 0.0;
1588 program { name: "button_click";
1589 signal: "mouse,down,1";
1591 action: SIGNAL_EMIT "elm,action,press" "";
1592 after: "button_click_anim";
1594 program { name: "button_click_anim";
1595 action: STATE_SET "clicked" 0.0;
1596 target: "button_image";
1597 after: "text_clicked";
1599 program { name: "text_clicked";
1603 get_state(PART:"elm.text", st, 30, vl);
1604 if (!strcmp(st, "visible"))
1605 set_state(PART:"elm.text", "clicked", 0.0);
1608 program { name: "button_unpress";
1609 action: SIGNAL_EMIT "elm,action,unpress" "";
1611 program { name: "button_mouseout_clicked";
1612 signal: "mouse,up,1";
1617 get_state(PART:"elm.swallow.content", st, 30, vl);
1618 if (strcmp(st, "icononly"))
1620 emit("elm,action,default,text,set", "");
1621 set_state(PART:"elm.text", "visible", 0.0);
1623 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1624 set_state(PART:"button_image", "default", 0.0);
1626 after: button_unpress;
1628 program { name: "button_unclick3";
1629 signal: "mouse,clicked,1";
1631 action: SIGNAL_EMIT "elm,action,click" "";
1633 program { name: "text_show";
1634 signal: "elm,state,text,visible";
1639 get_state(PART:"elm.swallow.content", st, 30, vl);
1640 if (!strcmp(st, "icononly"))
1642 set_state(PART:"elm.swallow.content", "visible", 0.0);
1643 set_state(PART:"padding_icon_text", "visible", 0.0);
1645 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1646 set_state(PART:"elm.text", "visible", 0.0);
1648 set_state(PART:"elm.text", "disabled_visible", 0.0);
1651 program { name: "text_hide";
1652 signal: "elm,state,text,hidden";
1657 get_state(PART:"elm.swallow.content", st, 30, vl);
1658 if (!strcmp(st, "visible"))
1660 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1661 set_state(PART:"padding_icon_text", "icononly", 0.0);
1663 set_state(PART:"elm.text", "default", 0.0);
1666 program { name: "icon_show";
1667 signal: "elm,state,icon,visible";
1672 get_state(PART:"elm.text", st, 30, vl);
1673 if (!strcmp(st, "visible"))
1675 set_state(PART:"elm.swallow.content", "visible", 0.0);
1676 set_state(PART:"padding_icon_text", "visible", 0.0);
1680 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1681 set_state(PART:"padding_icon_text", "icononly", 0.0);
1685 program { name: "icon_hide";
1686 signal: "elm,state,icon,hidden";
1688 action: STATE_SET "default" 0.0;
1689 target: "elm.swallow.content";
1690 target: "padding_icon_text";
1692 program { name: "disable";
1693 signal: "elm,state,disabled";
1695 action: STATE_SET "disabled" 0.0;
1696 target: "button_image";
1698 after: "disable_text";
1700 program { name: "disable_text";
1704 get_state(PART:"elm.text", st, 30, vl);
1705 if (!strcmp(st, "visible"))
1706 set_state(PART:"elm.text", "disabled_visible", 0.0);
1708 set_state(PART:"elm.text", "disabled", 0.0);
1709 set_int(button_state, BUTTON_STATE_DISABLED);
1712 program { name: "enable";
1713 signal: "elm,state,enabled";
1715 action: STATE_SET "default" 0.0;
1716 target: "button_image";
1718 after: "enable_text";
1720 program { name: "enable_text";
1724 get_state(PART:"elm.text", st, 30, vl);
1725 if (!strcmp(st, "disabled_visible"))
1726 set_state(PART:"elm.text", "visible", 0.0);
1728 set_state(PART:"elm.text", "default", 0.0);
1729 set_int(button_state, BUTTON_STATE_ENABLED);
1732 program { name: "focused";
1733 //signal: "elm,action,focus";
1735 action: STATE_SET "focused" 0.0;
1736 target: "button_image";
1739 program { name: "unfocused";
1740 //signal: "elm,action,unfocus";
1742 action: STATE_SET "default" 0.0;
1743 target: "button_image";
1744 after: "unfocus_text";
1746 program { name: "unfocus_text";
1747 action: STATE_SET "visible" 0.0;
1753 ///////////////////////////////////////////////////////////////////////////////////////
1754 group { name: "elm/button/base/popup_button/default";
1755 alias: "elm/button/base/popup_button/menustyle";
1756 alias: "elm/button/base/popup_button/liststyle";
1757 alias: "elm/button/base/popup_button/volumebarstyle";
1758 alias: "elm/button/base/popup_button/customstyle";
1759 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1761 image: "00_button_popup_normal.png" COMP;
1762 image: "00_button_popup_press.png" COMP;
1763 image: "00_button_popup_focus.png" COMP;
1764 image: "00_button_popup_dim.png" COMP;
1767 public button_state = BUTTON_STATE_ENABLED;
1770 part { name: "button_image";
1772 description { state: "default" 0.0;
1773 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1775 normal: "00_button_popup_normal.png";
1776 border: BUTTON_POPUP_BG_BORDER_INC;
1780 description { state: "clicked" 0.0;
1781 inherit: "default" 0.0;
1783 normal: "00_button_popup_press.png";
1786 description { state: "disabled" 0.0;
1787 inherit: "default" 0.0;
1788 image.normal: "00_button_popup_dim.png";
1790 description { state: "focused" 0.0;
1791 inherit: "default" 0.0;
1792 image.normal: "00_button_popup_focus.png";
1795 part { name: "padding_left_top";
1799 description { state: "default" 0.0;
1804 min: BUTTON_POPUP_PADDING_MIN_INC;
1809 part { name: "padding_right_bottom";
1812 description { state: "default" 0.0;
1817 min: BUTTON_POPUP_PADDING_MIN_INC;
1822 part { name: "padding_icon_text";
1825 description { state: "default" 0.0; //when only icon or no icon is there
1829 to: "elm.swallow.content";
1832 to: "elm.swallow.content";
1838 description { state: "icononly" 0.0;
1839 inherit: "default" 0.0;
1841 description { state: "visible" 0.0; //when icon is visible
1842 inherit: "default" 0.0;
1843 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1846 part { name: "elm.swallow.content";
1850 description { state: "default" 0.0;
1855 to: "padding_left_top";
1859 to_x: "padding_left_top";
1860 to_y: "padding_right_bottom";
1864 description { state: "visible" 0.0;
1865 inherit: "default" 0.0;
1869 aspect_preference: VERTICAL;
1871 description { state: "icononly" 0.0;
1873 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1876 to: "padding_left_top";
1880 to_x: "padding_left_top";
1881 to_y: "padding_right_bottom";
1885 part { name: "elm.text";
1890 description { state: "default" 0.0;
1894 to_x: "padding_icon_text";
1895 to_y: "padding_left_top";
1899 to: "padding_right_bottom";
1901 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1903 font: "SLP:style=Medium";
1908 description { state: "visible" 0.0;
1909 inherit: "default" 0.0;
1911 min: BUTTON_POPUP_TEXT_MIN_INC;
1913 description { state: "clicked" 0.0;
1914 inherit: "default" 0.0;
1917 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1919 description { state: "disabled" 0.0;
1920 inherit: "default" 0.0;
1923 description { state: "disabled_visible" 0.0;
1924 inherit: "default" 0.0;
1925 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1927 min: BUTTON_POPUP_TEXT_MIN_INC;
1929 description { state: "focused" 0.0;
1930 inherit: "default" 0.0;
1933 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1936 part { name: "over2";
1939 ignore_flags: ON_HOLD;
1940 description { state: "default" 0.0;
1944 part { name: "over3";
1947 description { state: "default" 0.0;
1951 part { name: "clipper";
1953 description { state: "default" 0.0;
1954 color: 255 255 255 255;
1957 part { name: "disabler";
1959 description { state: "default" 0.0;
1963 description { state: "disabled" 0.0;
1964 inherit: "default" 0.0;
1970 program { name: "button_click";
1971 signal: "mouse,down,1";
1973 action: SIGNAL_EMIT "elm,action,press" "";
1974 after: "button_click_anim";
1976 program { name: "button_click_anim";
1977 action: STATE_SET "clicked" 0.0;
1978 target: "button_image";
1979 after: "text_clicked";
1981 program { name: "text_clicked";
1985 get_state(PART:"elm.text", st, 30, vl);
1986 if (!strcmp(st, "visible"))
1987 set_state(PART:"elm.text", "clicked", 0.0);
1990 program { name: "button_unpress";
1991 action: SIGNAL_EMIT "elm,action,unpress" "";
1993 program { name: "button_mouseout_clicked";
1994 signal: "mouse,up,1";
1999 get_state(PART:"elm.swallow.content", st, 30, vl);
2000 if (strcmp(st, "icononly"))
2002 emit("elm,action,default,text,set", "");
2003 set_state(PART:"elm.text", "visible", 0.0);
2005 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2006 set_state(PART:"button_image", "default", 0.0);
2008 after: button_unpress;
2010 program { name: "button_unclick3";
2011 signal: "mouse,clicked,1";
2013 action: SIGNAL_EMIT "elm,action,click" "";
2015 program { name: "text_show";
2016 signal: "elm,state,text,visible";
2021 get_state(PART:"elm.swallow.content", st, 30, vl);
2022 if (!strcmp(st, "icononly"))
2024 set_state(PART:"elm.swallow.content", "visible", 0.0);
2025 set_state(PART:"padding_icon_text", "visible", 0.0);
2027 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2028 set_state(PART:"elm.text", "visible", 0.0);
2030 set_state(PART:"elm.text", "disabled_visible", 0.0);
2033 program { name: "text_hide";
2034 signal: "elm,state,text,hidden";
2039 get_state(PART:"elm.swallow.content", st, 30, vl);
2040 if (!strcmp(st, "visible"))
2042 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2043 set_state(PART:"padding_icon_text", "icononly", 0.0);
2045 set_state(PART:"elm.text", "default", 0.0);
2048 program { name: "icon_show";
2049 signal: "elm,state,icon,visible";
2054 get_state(PART:"elm.text", st, 30, vl);
2055 if (!strcmp(st, "visible"))
2057 set_state(PART:"elm.swallow.content", "visible", 0.0);
2058 set_state(PART:"padding_icon_text", "visible", 0.0);
2062 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2063 set_state(PART:"padding_icon_text", "icononly", 0.0);
2067 program { name: "icon_hide";
2068 signal: "elm,state,icon,hidden";
2070 action: STATE_SET "default" 0.0;
2071 target: "elm.swallow.content";
2072 target: "padding_icon_text";
2074 program { name: "disable";
2075 signal: "elm,state,disabled";
2077 action: STATE_SET "disabled" 0.0;
2078 target: "button_image";
2080 after: "disable_text";
2082 program { name: "disable_text";
2086 get_state(PART:"elm.text", st, 30, vl);
2087 if (!strcmp(st, "visible"))
2088 set_state(PART:"elm.text", "disabled_visible", 0.0);
2090 set_state(PART:"elm.text", "disabled", 0.0);
2091 set_int(button_state, BUTTON_STATE_DISABLED);
2094 program { name: "enable";
2095 signal: "elm,state,enabled";
2097 action: STATE_SET "default" 0.0;
2098 target: "button_image";
2100 after: "enable_text";
2102 program { name: "enable_text";
2106 get_state(PART:"elm.text", st, 30, vl);
2107 if (!strcmp(st, "disabled_visible"))
2108 set_state(PART:"elm.text", "visible", 0.0);
2110 set_state(PART:"elm.text", "default", 0.0);
2111 set_int(button_state, BUTTON_STATE_ENABLED);
2114 program { name: "focused";
2115 action: STATE_SET "focused" 0.0;
2116 target: "button_image";
2119 program { name: "unfocused";
2120 action: STATE_SET "default" 0.0;
2121 target: "button_image";
2122 after: "unfocus_text";
2124 program { name: "unfocus_text";
2125 action: STATE_SET "visible" 0.0;
2131 ///////////////////////////////////////////////////////////////////////////////////////
2132 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2133 group { name: "elm/button/base/"style_name; \
2135 image: "00_btn_circle_bg_normal.png" COMP; \
2136 image: "00_btn_circle_bg_press.png" COMP; \
2137 image: image_normal COMP; \
2138 image: image_press COMP; \
2141 part { name: "button_image"; \
2144 description { state: "default" 0.0; \
2145 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2146 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2148 normal: "00_btn_circle_bg_normal.png"; \
2150 color: 255 255 255 255; \
2153 state: "clicked" 0.0; \
2154 inherit: "default" 0.0; \
2155 image.normal: "00_btn_circle_bg_press.png"; \
2158 state: "disabled" 0.0; \
2159 inherit: "default" 0.0; \
2160 color: 255 255 255 128; \
2163 part { name: "button_center_part"; \
2166 description { state: "default" 0.0; \
2167 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2168 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2169 image.normal: image_normal; \
2170 color: 255 255 255 255; \
2173 state: "clicked" 0.0; \
2174 inherit: "default" 0.0; \
2175 image.normal: image_press; \
2178 state: "disabled" 0.0; \
2179 inherit: "default" 0.0; \
2180 color: 255 255 255 128; \
2183 part { name: "over1"; \
2186 ignore_flags: ON_HOLD; \
2187 description { state: "default" 0.0; \
2189 min: min_width min_height; \
2192 part { name: "over2"; \
2195 description { state: "default" 0.0; \
2199 part { name: "disabler"; \
2201 description { state: "default" 0.0; \
2205 description { state: "disabled" 0.0; \
2206 inherit: "default" 0.0; \
2212 program { name: "button_click"; \
2213 signal: "mouse,down,1"; \
2215 action: SIGNAL_EMIT "elm,action,press" ""; \
2216 after: "button_click_anim"; \
2218 program { name: "button_click_anim"; \
2219 action: STATE_SET "clicked" 0.0; \
2220 target: "button_image"; \
2221 target: "button_center_part"; \
2223 program { name: "button_unclick"; \
2224 signal: "mouse,up,1"; \
2226 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2227 after: "button_unclick_anim"; \
2229 program { name: "button_unclick_anim"; \
2230 action: STATE_SET "default" 0.0; \
2231 target: "button_image"; \
2232 target: "button_center_part"; \
2234 program { name: "button_unclick2"; \
2235 signal: "mouse,clicked,1"; \
2237 action: SIGNAL_EMIT "elm,action,click" ""; \
2239 program { name: "disable"; \
2240 signal: "elm,state,disabled"; \
2242 action: STATE_SET "disabled" 0.0; \
2243 target: "disabler"; \
2244 target: "button_image"; \
2245 target: "button_center_part"; \
2247 program { name: "enable"; \
2248 signal: "elm,state,enabled"; \
2250 action: STATE_SET "default" 0.0; \
2251 target: "disabler"; \
2252 target: "button_image"; \
2253 target: "button_center_part"; \
2258 ///////////////////////////////////////////////////////////////////////////////////////
2259 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal.png", 40, 40)
2261 ///////////////////////////////////////////////////////////////////////////////////////
2262 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
2264 ///////////////////////////////////////////////////////////////////////////////////////
2265 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
2267 ///////////////////////////////////////////////////////////////////////////////////////
2268 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
2270 ///////////////////////////////////////////////////////////////////////////////////////
2271 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
2273 ///////////////////////////////////////////////////////////////////////////////////////
2274 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
2276 ///////////////////////////////////////////////////////////////////////////////////////
2277 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
2279 ///////////////////////////////////////////////////////////////////////////////////////
2280 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
2282 ///////////////////////////////////////////////////////////////////////////////////////
2283 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
2285 ///////////////////////////////////////////////////////////////////////////////////////
2286 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
2288 ///////////////////////////////////////////////////////////////////////////////////////
2289 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
2291 ///////////////////////////////////////////////////////////////////////////////////////
2292 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
2294 ///////////////////////////////////////////////////////////////////////////////////////
2295 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
2297 ///////////////////////////////////////////////////////////////////////////////////////
2298 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
2300 ///////////////////////////////////////////////////////////////////////////////////////
2301 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
2303 ///////////////////////////////////////////////////////////////////////////////////////
2304 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
2306 ///////////////////////////////////////////////////////////////////////////////////////
2307 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
2309 ///////////////////////////////////////////////////////////////////////////////////////
2310 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
2312 ///////////////////////////////////////////////////////////////////////////////////////
2313 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
2315 ///////////////////////////////////////////////////////////////////////////////////////
2316 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
2318 ///////////////////////////////////////////////////////////////////////////////////////
2319 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
2321 ///////////////////////////////////////////////////////////////////////////////////////
2322 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
2324 ///////////////////////////////////////////////////////////////////////////////////////
2325 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2326 group { name: "elm/button/base/contacts/"style_name; \
2327 alias: "elm/button/base/"style_name; \
2329 image: image_normal COMP; \
2330 image: image_press COMP; \
2331 image: "00_button_edit.png" COMP; \
2332 image: "00_button_edit_press.png" COMP; \
2333 image: "00_button_edit_dim.png" COMP; \
2336 part { name: "button_image"; \
2339 description { state: "default" 0.0; \
2340 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2341 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2343 normal: "00_button_edit.png"; \
2344 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2349 state: "clicked" 0.0; \
2350 inherit: "default" 0.0; \
2351 image.normal: "00_button_edit_press.png"; \
2354 state: "disabled" 0.0; \
2355 inherit: "default" 0.0; \
2356 image.normal: "00_button_edit_dim.png"; \
2359 part { name: "button_center_part"; \
2362 description { state: "default" 0.0; \
2363 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2364 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2366 normal: image_normal; \
2367 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2372 state: "clicked" 0.0; \
2373 inherit: "default" 0.0; \
2374 image.normal: image_press; \
2377 part { name: "over1"; \
2381 ignore_flags: ON_HOLD; \
2382 description { state: "default" 0.0; \
2384 min: min_width min_height; \
2387 part { name: "over2"; \
2390 description { state: "default" 0.0; \
2394 part { name: "disabler"; \
2396 description { state: "default" 0.0; \
2400 description { state: "disabled" 0.0; \
2401 inherit: "default" 0.0; \
2407 program { name: "button_click"; \
2408 signal: "mouse,down,1"; \
2410 action: SIGNAL_EMIT "elm,action,press" ""; \
2411 after: "button_click_anim"; \
2413 program { name: "button_click_anim"; \
2414 action: STATE_SET "clicked" 0.0; \
2415 target: "button_image"; \
2416 target: "button_center_part"; \
2418 program { name: "button_unclick"; \
2419 signal: "mouse,up,1"; \
2421 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2422 after: "button_unclick_anim"; \
2424 program { name: "button_unclick_anim"; \
2425 action: STATE_SET "default" 0.0; \
2426 target: "button_image"; \
2427 target: "button_center_part"; \
2429 program { name: "button_unclick2"; \
2430 signal: "mouse,clicked,1"; \
2432 action: SIGNAL_EMIT "elm,action,click" ""; \
2434 program { name: "disable"; \
2435 signal: "elm,state,disabled"; \
2437 action: STATE_SET "disabled" 0.0; \
2438 target: "disabler"; \
2439 target: "button_image"; \
2441 program { name: "enable"; \
2442 signal: "elm,state,enabled"; \
2444 action: STATE_SET "default" 0.0; \
2445 target: "disabler"; \
2446 target: "button_image"; \
2450 ///////////////////////////////////////////////////////////////////////////////////////
2451 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 46, 46)
2453 ///////////////////////////////////////////////////////////////////////////////////////
2454 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 60, 75)
2456 ///////////////////////////////////////////////////////////////////////////////////////
2457 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 46, 46)
2459 ///////////////////////////////////////////////////////////////////////////////////////
2460 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 60, 75)
2462 ///////////////////////////////////////////////////////////////////////////////////////
2463 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 46, 46)
2465 ///////////////////////////////////////////////////////////////////////////////////////
2466 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 60, 75)
2468 ///////////////////////////////////////////////////////////////////////////////////////
2469 group { name: "elm/button/base/contacts/delete";
2471 image: "00_button_edit.png" COMP;
2472 image: "00_button_edit_press.png" COMP;
2473 image: "00_button_edit_dim.png" COMP;
2476 public button_state = BUTTON_STATE_ENABLED;
2479 part { name: "button_image";
2482 description { state: "default" 0.0;
2483 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
2485 normal: "00_button_edit.png";
2486 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
2490 description { state: "clicked" 0.0;
2491 inherit: "default" 0.0;
2492 image.normal: "00_button_edit_press.png";
2494 description { state: "disabled" 0.0;
2495 inherit: "default" 0.0;
2496 image.normal: "00_button_edit_dim.png";
2498 description { state: "focused" 0.0;
2499 inherit: "default" 0.0;
2500 image.normal: "00_button_edit_press.png";
2504 name: "padding_left_top";
2508 description { state: "default" 0.0;
2510 rel1.relative: 0.0 0.0;
2511 rel2.relative: 0.0 0.0;
2512 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
2518 name: "padding_right_bottom";
2522 description { state: "default" 0.0;
2524 rel1.relative: 1.0 1.0;
2525 rel2.relative: 1.0 1.0;
2526 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
2532 name: "padding_icon_text";
2536 description { state: "default" 0.0; //when only icon or no icon is there
2538 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
2539 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
2544 description { state: "icononly" 0.0;
2545 inherit: "default" 0.0;
2547 description { state: "visible" 0.0; //when icon is visible
2548 inherit: "default" 0.0;
2549 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2552 part { name: "elm.swallow.content";
2555 description { state: "default" 0.0;
2558 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2559 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
2562 description { state: "visible" 0.0;
2566 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2567 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
2569 aspect_preference: VERTICAL;
2571 description { state: "icononly" 0.0;
2573 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
2574 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2575 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
2578 aspect_preference: VERTICAL;
2581 part { name: "elm.text";
2585 description { state: "default" 0.0;
2586 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
2587 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
2589 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
2591 font: "SLP:style=Medium";
2592 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
2599 description { state: "visible" 0.0;
2600 inherit: "default" 0.0;
2602 description { state: "clicked" 0.0;
2603 inherit: "default" 0.0;
2605 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2607 description { state: "disabled" 0.0;
2608 inherit: "default" 0.0;
2611 description { state: "disabled_visible" 0.0;
2612 inherit: "default" 0.0;
2613 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
2615 description { state: "focused" 0.0;
2616 inherit: "default" 0.0;
2619 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2622 part { name: "over2";
2626 ignore_flags: ON_HOLD;
2627 description { state: "default" 0.0;
2631 part { name: "over3";
2635 description { state: "default" 0.0;
2639 part { name: "disabler";
2641 description { state: "default" 0.0;
2645 description { state: "disabled" 0.0;
2646 inherit: "default" 0.0;
2652 program { name: "button_click";
2653 signal: "mouse,down,1";
2655 action: SIGNAL_EMIT "elm,action,press" "";
2656 after: "button_click_anim";
2658 program { name: "button_click_anim";
2659 action: STATE_SET "clicked" 0.0;
2660 target: "button_image";
2661 after: "text_clicked";
2663 program { name: "text_clicked";
2667 get_state(PART:"elm.text", st, 30, vl);
2668 if (!strcmp(st, "visible"))
2669 set_state(PART:"elm.text", "clicked", 0.0);
2672 program { name: "button_unpress";
2673 action: SIGNAL_EMIT "elm,action,unpress" "";
2675 program { name: "button_mouseout_clicked";
2676 signal: "mouse,up,1";
2681 get_state(PART:"elm.swallow.content", st, 30, vl);
2682 if (strcmp(st, "icononly"))
2684 emit("elm,action,default,text,set", "");
2685 set_state(PART:"elm.text", "visible", 0.0);
2687 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2688 set_state(PART:"button_image", "default", 0.0);
2690 after: button_unpress;
2692 program { name: "button_unclick3";
2693 signal: "mouse,clicked,1";
2695 action: SIGNAL_EMIT "elm,action,click" "";
2697 program { name: "text_show";
2698 signal: "elm,state,text,visible";
2703 get_state(PART:"elm.swallow.content", st, 30, vl);
2704 if (!strcmp(st, "icononly"))
2706 set_state(PART:"elm.swallow.content", "visible", 0.0);
2707 set_state(PART:"padding_icon_text", "visible", 0.0);
2709 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2710 set_state(PART:"elm.text", "visible", 0.0);
2712 set_state(PART:"elm.text", "disabled_visible", 0.0);
2715 program { name: "text_hide";
2716 signal: "elm,state,text,hidden";
2721 get_state(PART:"elm.swallow.content", st, 30, vl);
2722 if (!strcmp(st, "visible"))
2724 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2725 set_state(PART:"padding_icon_text", "icononly", 0.0);
2727 set_state(PART:"elm.text", "default", 0.0);
2730 program { name: "icon_show";
2731 signal: "elm,state,icon,visible";
2736 get_state(PART:"elm.text", st, 30, vl);
2737 if (!strcmp(st, "visible"))
2739 set_state(PART:"elm.swallow.content", "visible", 0.0);
2740 set_state(PART:"padding_icon_text", "visible", 0.0);
2744 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2745 set_state(PART:"padding_icon_text", "icononly", 0.0);
2749 program { name: "icon_hide";
2750 signal: "elm,state,icon,hidden";
2752 action: STATE_SET "default" 0.0;
2753 target: "elm.swallow.content";
2754 target: "padding_icon_text";
2756 program { name: "disable";
2757 signal: "elm,state,disabled";
2759 action: STATE_SET "disabled" 0.0;
2760 target: "button_image";
2762 after: "disable_text";
2764 program { name: "disable_text";
2768 get_state(PART:"elm.text", st, 30, vl);
2769 if (!strcmp(st, "visible"))
2770 set_state(PART:"elm.text", "disabled_visible", 0.0);
2772 set_state(PART:"elm.text", "disabled", 0.0);
2773 set_int(button_state, BUTTON_STATE_DISABLED);
2776 program { name: "enable";
2777 signal: "elm,state,enabled";
2779 action: STATE_SET "default" 0.0;
2780 target: "button_image";
2782 after: "enable_text";
2784 program { name: "enable_text";
2788 get_state(PART:"elm.text", st, 30, vl);
2789 if (!strcmp(st, "disabled_visible"))
2790 set_state(PART:"elm.text", "visible", 0.0);
2792 set_state(PART:"elm.text", "default", 0.0);
2793 set_int(button_state, BUTTON_STATE_ENABLED);
2796 program { name: "focused";
2797 //signal: "elm,action,focus";
2799 action: STATE_SET "focused" 0.0;
2800 target: "button_image";
2803 program { name: "unfocused";
2804 //signal: "elm,action,unfocus";
2806 action: STATE_SET "default" 0.0;
2807 target: "button_image";
2808 after: "unfocus_text";
2810 program { name: "unfocus_text";
2811 action: STATE_SET "visible" 0.0;
2817 ///////////////////////////////////////////////////////////////////////////////////////
2818 group { name: "elm/button/base/multiline";
2819 alias: "elm/button/base/text_only/multiline";
2821 image: "00_button_04_normal.png" COMP;
2822 image: "00_button_04_press.png" COMP;
2823 image: "00_button_04_dim.png" COMP;
2826 public button_state = BUTTON_STATE_ENABLED;
2829 style { name: "btn_multiline_style";
2830 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
2837 part { name: "button_image";
2840 description { state: "default" 0.0;
2843 normal: "00_button_04_normal.png";
2848 description { state: "clicked" 0.0;
2849 inherit: "default" 0.0;
2850 image.normal: "00_button_04_press.png";
2852 description { state: "disabled" 0.0;
2853 inherit: "default" 0.0;
2854 image.normal: "00_button_04_dim.png";
2856 description { state: "focused" 0.0;
2857 inherit: "default" 0.0;
2858 image.normal: "00_button_04_press.png";
2862 name: "padding_left_top";
2866 description { state: "default" 0.0;
2868 rel1.relative: 0.0 0.0;
2869 rel2.relative: 0.0 0.0;
2876 name: "padding_right_bottom";
2880 description { state: "default" 0.0;
2882 rel1.relative: 1.0 1.0;
2883 rel2.relative: 1.0 1.0;
2894 description { state: "default" 0.0;
2898 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
2899 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
2905 name: "padding_icon_text";
2909 description { state: "default" 0.0; //when only icon or no icon is there
2911 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2912 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2917 description { state: "icononly" 0.0;
2918 inherit: "default" 0.0;
2920 description { state: "visible" 0.0; //when icon is visible
2922 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2923 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2929 part { name: "elm.swallow.content";
2932 description { state: "default" 0.0;
2935 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2936 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
2939 description { state: "visible" 0.0;
2943 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2944 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
2946 aspect_preference: VERTICAL;
2948 description { state: "icononly" 0.0;
2951 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
2952 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
2955 aspect_preference: VERTICAL;
2958 part { name: "elm.text";
2962 description { state: "default" 0.0;
2964 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
2965 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
2967 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2969 style: "btn_multiline_style";
2974 description { state: "visible" 0.0;
2975 inherit: "default" 0.0;
2979 description { state: "clicked" 0.0;
2980 inherit: "default" 0.0;
2983 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2985 description { state: "disabled" 0.0;
2986 inherit: "default" 0.0;
2989 description { state: "disabled_visible" 0.0;
2990 inherit: "default" 0.0;
2991 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
2995 description { state: "focused" 0.0;
2996 inherit: "default" 0.0;
2999 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3002 part { name: "over2";
3006 ignore_flags: ON_HOLD;
3007 description { state: "default" 0.0;
3011 part { name: "over3";
3015 description { state: "default" 0.0;
3019 part { name: "disabler";
3021 description { state: "default" 0.0;
3025 description { state: "disabled" 0.0;
3026 inherit: "default" 0.0;
3032 program { name: "button_click";
3033 signal: "mouse,down,1";
3035 action: SIGNAL_EMIT "elm,action,press" "";
3036 after: "button_click_anim";
3038 program { name: "button_click_anim";
3039 action: STATE_SET "clicked" 0.0;
3040 target: "button_image";
3041 after: "text_clicked";
3043 program { name: "text_clicked";
3047 get_state(PART:"elm.text", st, 30, vl);
3048 if (!strcmp(st, "visible"))
3049 set_state(PART:"elm.text", "clicked", 0.0);
3052 program { name: "button_unpress";
3053 action: SIGNAL_EMIT "elm,action,unpress" "";
3055 program { name: "button_mouseout_clicked";
3056 signal: "mouse,up,1";
3061 get_state(PART:"elm.swallow.content", st, 30, vl);
3062 if (strcmp(st, "icononly"))
3064 emit("elm,action,default,text,set", "");
3065 set_state(PART:"elm.text", "visible", 0.0);
3067 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3068 set_state(PART:"button_image", "default", 0.0);
3070 after: button_unpress;
3072 program { name: "button_unclick3";
3073 signal: "mouse,clicked,1";
3075 action: SIGNAL_EMIT "elm,action,click" "";
3077 program { name: "text_show";
3078 signal: "elm,state,text,visible";
3083 get_state(PART:"elm.swallow.content", st, 30, vl);
3084 if (!strcmp(st, "icononly"))
3086 set_state(PART:"elm.swallow.content", "visible", 0.0);
3087 set_state(PART:"padding_icon_text", "visible", 0.0);
3089 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3090 set_state(PART:"elm.text", "visible", 0.0);
3092 set_state(PART:"elm.text", "disabled_visible", 0.0);
3095 program { name: "text_hide";
3096 signal: "elm,state,text,hidden";
3101 get_state(PART:"elm.swallow.content", st, 30, vl);
3102 if (!strcmp(st, "visible"))
3104 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3105 set_state(PART:"padding_icon_text", "icononly", 0.0);
3107 set_state(PART:"elm.text", "default", 0.0);
3110 program { name: "icon_show";
3111 signal: "elm,state,icon,visible";
3116 get_state(PART:"elm.text", st, 30, vl);
3117 if (!strcmp(st, "visible"))
3119 set_state(PART:"elm.swallow.content", "visible", 0.0);
3120 set_state(PART:"padding_icon_text", "visible", 0.0);
3124 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3125 set_state(PART:"padding_icon_text", "icononly", 0.0);
3129 program { name: "icon_hide";
3130 signal: "elm,state,icon,hidden";
3132 action: STATE_SET "default" 0.0;
3133 target: "elm.swallow.content";
3134 target: "padding_icon_text";
3136 program { name: "disable";
3137 signal: "elm,state,disabled";
3139 action: STATE_SET "disabled" 0.0;
3140 target: "button_image";
3142 after: "disable_text";
3144 program { name: "disable_text";
3148 get_state(PART:"elm.text", st, 30, vl);
3149 if (!strcmp(st, "visible"))
3150 set_state(PART:"elm.text", "disabled_visible", 0.0);
3152 set_state(PART:"elm.text", "disabled", 0.0);
3153 set_int(button_state, BUTTON_STATE_DISABLED);
3156 program { name: "enable";
3157 signal: "elm,state,enabled";
3159 action: STATE_SET "default" 0.0;
3160 target: "button_image";
3162 after: "enable_text";
3164 program { name: "enable_text";
3168 get_state(PART:"elm.text", st, 30, vl);
3169 if (!strcmp(st, "disabled_visible"))
3170 set_state(PART:"elm.text", "visible", 0.0);
3172 set_state(PART:"elm.text", "default", 0.0);
3173 set_int(button_state, BUTTON_STATE_ENABLED);
3176 program { name: "focused";
3177 //signal: "elm,action,focus";
3179 action: STATE_SET "focused" 0.0;
3180 target: "button_image";
3183 program { name: "unfocused";
3184 //signal: "elm,action,unfocus";
3186 action: STATE_SET "default" 0.0;
3187 target: "button_image";
3188 after: "unfocus_text";
3190 program { name: "unfocus_text";
3191 action: STATE_SET "visible" 0.0;
3197 ///////////////////////////////////////////////////////////////////////////////////////
3198 group { name: "elm/button/base/default";
3200 image: "00_button_01_normal.png" COMP;
3201 image: "00_button_01_normal_press.png" COMP;
3202 image: "00_button_01_normal_dim.png" COMP;
3205 public button_state = BUTTON_STATE_ENABLED;
3208 part { name: "button_image";
3211 description { state: "default" 0.0;
3214 normal: "00_button_01_normal.png";
3219 description { state: "clicked" 0.0;
3220 inherit: "default" 0.0;
3221 image.normal: "00_button_01_normal_press.png";
3223 description { state: "disabled" 0.0;
3224 inherit: "default" 0.0;
3225 image.normal: "00_button_01_normal_dim.png";
3227 description { state: "focused" 0.0;
3228 inherit: "default" 0.0;
3229 image.normal: "00_button_01_normal_press.png";
3233 name: "padding_left_top";
3237 description { state: "default" 0.0;
3239 rel1.relative: 0.0 0.0;
3240 rel2.relative: 0.0 0.0;
3247 name: "padding_right_bottom";
3251 description { state: "default" 0.0;
3253 rel1.relative: 1.0 1.0;
3254 rel2.relative: 1.0 1.0;
3261 name: "padding_icon_text";
3265 description { state: "default" 0.0; //when only icon or no icon is there
3267 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3268 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3273 description { state: "icononly" 0.0;
3274 inherit: "default" 0.0;
3276 description { state: "visible" 0.0; //when icon is visible
3278 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3279 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3285 part { name: "elm.swallow.content";
3288 description { state: "default" 0.0;
3291 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3292 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3295 description { state: "visible" 0.0;
3299 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3300 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3302 aspect_preference: VERTICAL;
3304 description { state: "icononly" 0.0;
3307 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
3308 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
3311 aspect_preference: VERTICAL;
3314 part { name: "elm.text";
3318 description { state: "default" 0.0;
3320 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3321 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
3323 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3325 font: "SLP:style=Medium";
3331 description { state: "visible" 0.0;
3332 inherit: "default" 0.0;
3336 description { state: "clicked" 0.0;
3337 inherit: "default" 0.0;
3340 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3342 description { state: "disabled" 0.0;
3343 inherit: "default" 0.0;
3344 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3346 description { state: "disabled_visible" 0.0;
3347 inherit: "default" 0.0;
3348 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3352 description { state: "focused" 0.0;
3353 inherit: "default" 0.0;
3356 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
3359 part { name: "over2";
3363 ignore_flags: ON_HOLD;
3364 description { state: "default" 0.0;
3368 part { name: "over3";
3372 description { state: "default" 0.0;
3376 part { name: "disabler";
3378 description { state: "default" 0.0;
3382 description { state: "disabled" 0.0;
3383 inherit: "default" 0.0;
3389 program { name: "button_click";
3390 signal: "mouse,down,1";
3392 action: SIGNAL_EMIT "elm,action,press" "";
3393 after: "button_click_anim";
3395 program { name: "button_click_anim";
3396 action: STATE_SET "clicked" 0.0;
3397 target: "button_image";
3398 after: "text_clicked";
3400 program { name: "text_clicked";
3404 get_state(PART:"elm.text", st, 30, vl);
3405 if (!strcmp(st, "visible"))
3406 set_state(PART:"elm.text", "clicked", 0.0);
3409 program { name: "button_unpress";
3410 action: SIGNAL_EMIT "elm,action,unpress" "";
3412 program { name: "button_mouseout_clicked";
3413 signal: "mouse,up,1";
3418 get_state(PART:"elm.swallow.content", st, 30, vl);
3419 if (strcmp(st, "icononly"))
3421 emit("elm,action,default,text,set", "");
3422 set_state(PART:"elm.text", "visible", 0.0);
3424 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3425 set_state(PART:"button_image", "default", 0.0);
3427 after: button_unpress;
3429 program { name: "button_unclick3";
3430 signal: "mouse,clicked,1";
3432 action: SIGNAL_EMIT "elm,action,click" "";
3434 program { name: "text_show";
3435 signal: "elm,state,text,visible";
3440 get_state(PART:"elm.swallow.content", st, 30, vl);
3441 if (!strcmp(st, "icononly"))
3443 set_state(PART:"elm.swallow.content", "visible", 0.0);
3444 set_state(PART:"padding_icon_text", "visible", 0.0);
3446 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3447 set_state(PART:"elm.text", "visible", 0.0);
3449 set_state(PART:"elm.text", "disabled_visible", 0.0);
3452 program { name: "text_hide";
3453 signal: "elm,state,text,hidden";
3458 get_state(PART:"elm.swallow.content", st, 30, vl);
3459 if (!strcmp(st, "visible"))
3461 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3462 set_state(PART:"padding_icon_text", "icononly", 0.0);
3464 set_state(PART:"elm.text", "default", 0.0);
3467 program { name: "icon_show";
3468 signal: "elm,state,icon,visible";
3473 get_state(PART:"elm.text", st, 30, vl);
3474 if (!strcmp(st, "visible"))
3476 set_state(PART:"elm.swallow.content", "visible", 0.0);
3477 set_state(PART:"padding_icon_text", "visible", 0.0);
3481 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3482 set_state(PART:"padding_icon_text", "icononly", 0.0);
3486 program { name: "icon_hide";
3487 signal: "elm,state,icon,hidden";
3489 action: STATE_SET "default" 0.0;
3490 target: "elm.swallow.content";
3491 target: "padding_icon_text";
3493 program { name: "disable";
3494 signal: "elm,state,disabled";
3496 action: STATE_SET "disabled" 0.0;
3497 target: "button_image";
3499 after: "disable_text";
3501 program { name: "disable_text";
3505 get_state(PART:"elm.text", st, 30, vl);
3506 if (!strcmp(st, "visible"))
3507 set_state(PART:"elm.text", "disabled_visible", 0.0);
3509 set_state(PART:"elm.text", "disabled", 0.0);
3510 set_int(button_state, BUTTON_STATE_DISABLED);
3513 program { name: "enable";
3514 signal: "elm,state,enabled";
3516 action: STATE_SET "default" 0.0;
3517 target: "button_image";
3519 after: "enable_text";
3521 program { name: "enable_text";
3525 get_state(PART:"elm.text", st, 30, vl);
3526 if (!strcmp(st, "disabled_visible"))
3527 set_state(PART:"elm.text", "visible", 0.0);
3529 set_state(PART:"elm.text", "default", 0.0);
3530 set_int(button_state, BUTTON_STATE_ENABLED);
3533 program { name: "focused";
3534 //signal: "elm,action,focus";
3536 action: STATE_SET "focused" 0.0;
3537 target: "button_image";
3540 program { name: "unfocused";
3541 //signal: "elm,action,unfocus";
3543 action: STATE_SET "default" 0.0;
3544 target: "button_image";
3545 after: "unfocus_text";
3547 program { name: "unfocus_text";
3548 action: STATE_SET "visible" 0.0;
3554 ///////////////////////////////////////////////////////////////////////////////////////
3555 group { name: "elm/button/base/hidden";
3557 image: "00_button_sweep.png" COMP;
3558 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
3561 public button_state = BUTTON_STATE_ENABLED;
3564 part { name: "button_image";
3567 description { state: "default" 0.0;
3568 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
3570 normal: "00_button_sweep.png";
3571 border: BUTTON_HIDDEN_BG_BORDER_INC;
3575 description { state: "clicked" 0.0;
3576 inherit: "default" 0.0;
3577 image.normal: "00_button_sweep_press.png";
3579 description { state: "disabled" 0.0;
3580 inherit: "default" 0.0;
3582 description { state: "focused" 0.0;
3583 inherit: "default" 0.0;
3584 image.normal: "00_button_sweep_press.png";
3588 name: "padding_left_top";
3592 description { state: "default" 0.0;
3594 rel1.relative: 0.0 0.0;
3595 rel2.relative: 0.0 0.0;
3596 min: BUTTON_HIDDEN_PADDING_MIN_INC;
3602 name: "padding_right_bottom";
3606 description { state: "default" 0.0;
3608 rel1.relative: 1.0 1.0;
3609 rel2.relative: 1.0 1.0;
3610 min: BUTTON_HIDDEN_PADDING_MIN_INC;
3620 description { state: "default" 0.0;
3622 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
3624 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
3625 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
3631 name: "padding_icon_text";
3635 description { state: "default" 0.0; //when only icon or no icon is there
3637 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3638 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3643 description { state: "icononly" 0.0;
3644 inherit: "default" 0.0;
3646 description { state: "visible" 0.0; //when icon is visible
3648 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3649 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3651 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3655 part { name: "elm.swallow.content";
3658 description { state: "default" 0.0;
3661 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3662 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3665 description { state: "visible" 0.0;
3669 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3670 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3672 aspect_preference: VERTICAL;
3674 description { state: "icononly" 0.0;
3676 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
3677 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3678 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3681 aspect_preference: VERTICAL;
3684 part { name: "elm.text";
3688 description { state: "default" 0.0;
3690 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3691 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
3693 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
3695 font: "SLP:style=Medium";
3696 size: BUTTON_HIDDEN_FONT_SIZE_INC;
3701 description { state: "visible" 0.0;
3702 inherit: "default" 0.0;
3704 min: BUTTON_HIDDEN_TEXT_MIN_INC;
3706 description { state: "clicked" 0.0;
3707 inherit: "default" 0.0;
3710 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
3712 description { state: "disabled" 0.0;
3713 inherit: "default" 0.0;
3716 description { state: "disabled_visible" 0.0;
3717 inherit: "default" 0.0;
3718 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
3720 min: BUTTON_HIDDEN_TEXT_MIN_INC;
3722 description { state: "focused" 0.0;
3723 inherit: "default" 0.0;
3726 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
3729 part { name: "over2";
3733 ignore_flags: ON_HOLD;
3734 description { state: "default" 0.0;
3738 part { name: "over3";
3742 description { state: "default" 0.0;
3746 part { name: "disabler";
3748 description { state: "default" 0.0;
3752 description { state: "disabled" 0.0;
3753 inherit: "default" 0.0;
3759 program { name: "button_click";
3760 signal: "mouse,down,1";
3762 action: SIGNAL_EMIT "elm,action,press" "";
3763 after: "button_click_anim";
3765 program { name: "button_click_anim";
3766 action: STATE_SET "clicked" 0.0;
3767 target: "button_image";
3768 after: "text_clicked";
3770 program { name: "text_clicked";
3774 get_state(PART:"elm.text", st, 30, vl);
3775 if (!strcmp(st, "visible"))
3776 set_state(PART:"elm.text", "clicked", 0.0);
3779 program { name: "button_unpress";
3780 action: SIGNAL_EMIT "elm,action,unpress" "";
3782 program { name: "button_mouseout_clicked";
3783 signal: "mouse,up,1";
3788 get_state(PART:"elm.swallow.content", st, 30, vl);
3789 if (strcmp(st, "icononly"))
3791 emit("elm,action,default,text,set", "");
3792 set_state(PART:"elm.text", "visible", 0.0);
3794 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3795 set_state(PART:"button_image", "default", 0.0);
3797 after: button_unpress;
3799 program { name: "button_unclick3";
3800 signal: "mouse,clicked,1";
3802 action: SIGNAL_EMIT "elm,action,click" "";
3804 program { name: "text_show";
3805 signal: "elm,state,text,visible";
3810 get_state(PART:"elm.swallow.content", st, 30, vl);
3811 if (!strcmp(st, "icononly"))
3813 set_state(PART:"elm.swallow.content", "visible", 0.0);
3814 set_state(PART:"padding_icon_text", "visible", 0.0);
3816 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3817 set_state(PART:"elm.text", "visible", 0.0);
3819 set_state(PART:"elm.text", "disabled_visible", 0.0);
3822 program { name: "text_hide";
3823 signal: "elm,state,text,hidden";
3828 get_state(PART:"elm.swallow.content", st, 30, vl);
3829 if (!strcmp(st, "visible"))
3831 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3832 set_state(PART:"padding_icon_text", "icononly", 0.0);
3834 set_state(PART:"elm.text", "default", 0.0);
3837 program { name: "icon_show";
3838 signal: "elm,state,icon,visible";
3843 get_state(PART:"elm.text", st, 30, vl);
3844 if (!strcmp(st, "visible"))
3846 set_state(PART:"elm.swallow.content", "visible", 0.0);
3847 set_state(PART:"padding_icon_text", "visible", 0.0);
3851 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3852 set_state(PART:"padding_icon_text", "icononly", 0.0);
3856 program { name: "icon_hide";
3857 signal: "elm,state,icon,hidden";
3859 action: STATE_SET "default" 0.0;
3860 target: "elm.swallow.content";
3861 target: "padding_icon_text";
3863 program { name: "disable";
3864 signal: "elm,state,disabled";
3866 action: STATE_SET "disabled" 0.0;
3867 target: "button_image";
3869 after: "disable_text";
3871 program { name: "disable_text";
3875 get_state(PART:"elm.text", st, 30, vl);
3876 if (!strcmp(st, "visible"))
3877 set_state(PART:"elm.text", "disabled_visible", 0.0);
3879 set_state(PART:"elm.text", "disabled", 0.0);
3880 set_int(button_state, BUTTON_STATE_DISABLED);
3883 program { name: "enable";
3884 signal: "elm,state,enabled";
3886 action: STATE_SET "default" 0.0;
3887 target: "button_image";
3889 after: "enable_text";
3891 program { name: "enable_text";
3895 get_state(PART:"elm.text", st, 30, vl);
3896 if (!strcmp(st, "disabled_visible"))
3897 set_state(PART:"elm.text", "visible", 0.0);
3899 set_state(PART:"elm.text", "default", 0.0);
3900 set_int(button_state, BUTTON_STATE_ENABLED);
3903 program { name: "focused";
3904 //signal: "elm,action,focus";
3906 action: STATE_SET "focused" 0.0;
3907 target: "button_image";
3910 program { name: "unfocused";
3911 //signal: "elm,action,unfocus";
3913 action: STATE_SET "default" 0.0;
3914 target: "button_image";
3915 after: "unfocus_text";
3917 program { name: "unfocus_text";
3918 action: STATE_SET "visible" 0.0;
3924 ///////////////////////////////////////////////////////////////////////////////////////
3925 group { name: "elm/button/base/picker/bar/default";
3927 image: "00_picker_btn_normal.png" COMP;
3928 image: "00_picker_btn_press.png" COMP;
3931 public button_state = BUTTON_STATE_ENABLED;
3934 part { name: "button_image";
3936 description { state: "default" 0.0;
3937 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
3939 normal: "00_picker_btn_normal.png";
3940 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
3944 description { state: "clicked" 0.0;
3945 inherit: "default" 0.0;
3947 normal: "00_picker_btn_press.png";
3950 description { state: "disabled" 0.0;
3951 inherit: "default" 0.0;
3953 description { state: "focused" 0.0;
3954 inherit: "default" 0.0;
3956 normal: "00_picker_btn_press.png";
3960 part { name: "padding_left_top";
3964 description { state: "default" 0.0;
3969 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
3974 part { name: "padding_right_bottom";
3978 description { state: "default" 0.0;
3983 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
3988 part { name: "icon_rect";
3992 description { state: "default" 0.0;
3993 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
3997 to_x: "elm.swallow.content";
3998 to_y: "padding_left_top";
4002 to_x: "elm.swallow.content";
4003 to_y: "padding_right_bottom";
4009 part { name: "padding_icon_text";
4013 description { state: "default" 0.0; //when only icon or no icon is there
4026 description { state: "icononly" 0.0;
4027 inherit: "default" 0.0;
4029 description { state: "visible" 0.0; //when icon is visible
4039 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4043 part { name: "elm.swallow.content";
4047 description { state: "default" 0.0;
4052 to: "padding_left_top";
4056 to_x: "padding_left_top";
4057 to_y: "padding_right_bottom";
4061 description { state: "visible" 0.0;
4066 to: "padding_left_top";
4070 to_x: "padding_left_top";
4071 to_y: "padding_right_bottom";
4074 aspect_preference: VERTICAL;
4076 description { state: "icononly" 0.0;
4077 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4080 to: "padding_left_top";
4084 to_x: "padding_left_top";
4085 to_y: "padding_right_bottom";
4088 aspect_preference: VERTICAL;
4091 part { name: "elm.text";
4096 description { state: "default" 0.0;
4100 to_x: "padding_icon_text";
4101 to_y: "padding_left_top";
4105 to: "padding_right_bottom";
4107 color: 78 73 69 255;
4109 font: "SLP:style=Medium";
4110 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4115 description { state: "visible" 0.0;
4116 inherit: "default" 0.0;
4118 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4120 description { state: "clicked" 0.0;
4121 inherit: "default" 0.0;
4124 color: 255 255 255 255;
4126 description { state: "disabled" 0.0;
4127 inherit: "default" 0.0;
4130 description { state: "disabled_visible" 0.0;
4131 inherit: "default" 0.0;
4134 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4136 description { state: "focused" 0.0;
4137 inherit: "default" 0.0;
4140 color: 255 255 255 255;
4143 part { name: "over2";
4146 ignore_flags: ON_HOLD;
4147 description { state: "default" 0.0;
4151 part { name: "over3";
4154 description { state: "default" 0.0;
4158 part { name: "clipper";
4160 description { state: "default" 0.0;
4161 color: 255 255 255 255;
4164 part { name: "disabler";
4166 description { state: "default" 0.0;
4170 description { state: "disabled" 0.0;
4171 inherit: "default" 0.0;
4177 program { name: "button_click";
4178 signal: "mouse,down,1";
4180 action: SIGNAL_EMIT "elm,action,press" "";
4181 after: "button_click_anim";
4183 program { name: "button_click_anim";
4184 action: STATE_SET "clicked" 0.0;
4185 target: "button_image";
4186 after: "text_clicked";
4188 program { name: "text_clicked";
4192 get_state(PART:"elm.text", st, 30, vl);
4193 if (!strcmp(st, "visible"))
4194 set_state(PART:"elm.text", "clicked", 0.0);
4197 program { name: "button_unpress";
4198 action: SIGNAL_EMIT "elm,action,unpress" "";
4200 program { name: "button_mouseout_clicked";
4201 signal: "mouse,up,1";
4206 get_state(PART:"elm.swallow.content", st, 30, vl);
4207 if (strcmp(st, "icononly"))
4209 emit("elm,action,default,text,set", "");
4210 set_state(PART:"elm.text", "visible", 0.0);
4212 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4213 set_state(PART:"button_image", "default", 0.0);
4215 after: button_unpress;
4217 program { name: "button_unclick3";
4218 signal: "mouse,clicked,1";
4220 action: SIGNAL_EMIT "elm,action,click" "";
4222 program { name: "text_show";
4223 signal: "elm,state,text,visible";
4228 get_state(PART:"elm.swallow.content", st, 30, vl);
4229 if (!strcmp(st, "icononly"))
4231 set_state(PART:"elm.swallow.content", "visible", 0.0);
4232 set_state(PART:"padding_icon_text", "visible", 0.0);
4234 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4235 set_state(PART:"elm.text", "visible", 0.0);
4237 set_state(PART:"elm.text", "disabled_visible", 0.0);
4240 program { name: "text_hide";
4241 signal: "elm,state,text,hidden";
4246 get_state(PART:"elm.swallow.content", st, 30, vl);
4247 if (!strcmp(st, "visible"))
4249 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4250 set_state(PART:"padding_icon_text", "icononly", 0.0);
4252 set_state(PART:"elm.text", "default", 0.0);
4255 program { name: "icon_show";
4256 signal: "elm,state,icon,visible";
4261 get_state(PART:"elm.text", st, 30, vl);
4262 if (!strcmp(st, "visible"))
4264 set_state(PART:"elm.swallow.content", "visible", 0.0);
4265 set_state(PART:"padding_icon_text", "visible", 0.0);
4269 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4270 set_state(PART:"padding_icon_text", "icononly", 0.0);
4274 program { name: "icon_hide";
4275 signal: "elm,state,icon,hidden";
4277 action: STATE_SET "default" 0.0;
4278 target: "elm.swallow.content";
4279 target: "padding_icon_text";
4281 program { name: "disable";
4282 signal: "elm,state,disabled";
4284 action: STATE_SET "disabled" 0.0;
4285 target: "button_image";
4287 after: "disable_text";
4289 program { name: "disable_text";
4293 get_state(PART:"elm.text", st, 30, vl);
4294 if (!strcmp(st, "visible"))
4295 set_state(PART:"elm.text", "disabled_visible", 0.0);
4297 set_state(PART:"elm.text", "disabled", 0.0);
4298 set_int(button_state, BUTTON_STATE_DISABLED);
4301 program { name: "enable";
4302 signal: "elm,state,enabled";
4304 action: STATE_SET "default" 0.0;
4305 target: "button_image";
4307 after: "enable_text";
4309 program { name: "enable_text";
4313 get_state(PART:"elm.text", st, 30, vl);
4314 if (!strcmp(st, "disabled_visible"))
4315 set_state(PART:"elm.text", "visible", 0.0);
4317 set_state(PART:"elm.text", "default", 0.0);
4318 set_int(button_state, BUTTON_STATE_ENABLED);
4321 program { name: "focused";
4322 //signal: "elm,action,focus";
4324 action: STATE_SET "focused" 0.0;
4325 target: "button_image";
4328 program { name: "unfocused";
4329 //signal: "elm,action,unfocus";
4331 action: STATE_SET "default" 0.0;
4332 target: "button_image";
4333 after: "unfocus_text";
4335 program { name: "unfocus_text";
4336 action: STATE_SET "visible" 0.0;
4342 ///////////////////////////////////////////////////////////////////////////////////////
4343 group { name: "elm/button/base/picker/prev/text/default";
4344 alias: "elm/button/base/picker/next/text/default";
4346 image: "00_picker_btn_normal.png" COMP;
4347 image: "00_picker_btn_press.png" COMP;
4350 public button_state = BUTTON_STATE_ENABLED;
4353 part { name: "button_image";
4355 description { state: "default" 0.0;
4356 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
4358 normal: "00_picker_btn_normal.png";
4359 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
4363 description { state: "clicked" 0.0;
4364 inherit: "default" 0.0;
4366 normal: "00_picker_btn_press.png";
4369 description { state: "disabled" 0.0;
4370 inherit: "default" 0.0;
4372 description { state: "focused" 0.0;
4373 inherit: "default" 0.0;
4375 normal: "00_picker_btn_press.png";
4379 part { name: "padding_left_top";
4383 description { state: "default" 0.0;
4388 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4393 part { name: "padding_right_bottom";
4397 description { state: "default" 0.0;
4402 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
4407 part { name: "icon_rect";
4411 description { state: "default" 0.0;
4412 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
4416 to_x: "elm.swallow.content";
4417 to_y: "padding_left_top";
4421 to_x: "elm.swallow.content";
4422 to_y: "padding_right_bottom";
4428 part { name: "padding_icon_text";
4432 description { state: "default" 0.0; //when only icon or no icon is there
4445 description { state: "icononly" 0.0;
4446 inherit: "default" 0.0;
4448 description { state: "visible" 0.0; //when icon is visible
4458 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4462 part { name: "elm.swallow.content";
4466 description { state: "default" 0.0;
4471 to: "padding_left_top";
4475 to_x: "padding_left_top";
4476 to_y: "padding_right_bottom";
4480 description { state: "visible" 0.0;
4485 to: "padding_left_top";
4489 to_x: "padding_left_top";
4490 to_y: "padding_right_bottom";
4493 aspect_preference: VERTICAL;
4495 description { state: "icononly" 0.0;
4496 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
4499 to: "padding_left_top";
4503 to_x: "padding_left_top";
4504 to_y: "padding_right_bottom";
4507 aspect_preference: VERTICAL;
4510 part { name: "elm.text";
4515 description { state: "default" 0.0;
4519 to_x: "padding_icon_text";
4520 to_y: "padding_left_top";
4524 to: "padding_right_bottom";
4526 color: 78 73 69 255;
4528 font: "SLP:style=Medium";
4529 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
4534 description { state: "visible" 0.0;
4535 inherit: "default" 0.0;
4537 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4539 description { state: "clicked" 0.0;
4540 inherit: "default" 0.0;
4543 color: 255 255 255 255;
4545 description { state: "disabled" 0.0;
4546 inherit: "default" 0.0;
4549 description { state: "disabled_visible" 0.0;
4550 inherit: "default" 0.0;
4553 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
4555 description { state: "focused" 0.0;
4556 inherit: "default" 0.0;
4559 color: 255 255 255 255;
4562 part { name: "over2";
4565 ignore_flags: ON_HOLD;
4566 description { state: "default" 0.0;
4570 part { name: "over3";
4573 description { state: "default" 0.0;
4577 part { name: "clipper";
4579 description { state: "default" 0.0;
4580 color: 255 255 255 255;
4583 part { name: "disabler";
4585 description { state: "default" 0.0;
4589 description { state: "disabled" 0.0;
4590 inherit: "default" 0.0;
4596 program { name: "button_click";
4597 signal: "mouse,down,1";
4599 action: SIGNAL_EMIT "elm,action,press" "";
4600 after: "button_click_anim";
4602 program { name: "button_click_anim";
4603 action: STATE_SET "clicked" 0.0;
4604 target: "button_image";
4605 after: "text_clicked";
4607 program { name: "text_clicked";
4611 get_state(PART:"elm.text", st, 30, vl);
4612 if (!strcmp(st, "visible"))
4613 set_state(PART:"elm.text", "clicked", 0.0);
4616 program { name: "button_unpress";
4617 action: SIGNAL_EMIT "elm,action,unpress" "";
4619 program { name: "button_mouseout_clicked";
4620 signal: "mouse,up,1";
4625 get_state(PART:"elm.swallow.content", st, 30, vl);
4626 if (strcmp(st, "icononly"))
4628 emit("elm,action,default,text,set", "");
4629 set_state(PART:"elm.text", "visible", 0.0);
4631 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4632 set_state(PART:"button_image", "default", 0.0);
4634 after: button_unpress;
4636 program { name: "button_unclick3";
4637 signal: "mouse,clicked,1";
4639 action: SIGNAL_EMIT "elm,action,click" "";
4641 program { name: "text_show";
4642 signal: "elm,state,text,visible";
4647 get_state(PART:"elm.swallow.content", st, 30, vl);
4648 if (!strcmp(st, "icononly"))
4650 set_state(PART:"elm.swallow.content", "visible", 0.0);
4651 set_state(PART:"padding_icon_text", "visible", 0.0);
4653 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4654 set_state(PART:"elm.text", "visible", 0.0);
4656 set_state(PART:"elm.text", "disabled_visible", 0.0);
4659 program { name: "text_hide";
4660 signal: "elm,state,text,hidden";
4665 get_state(PART:"elm.swallow.content", st, 30, vl);
4666 if (!strcmp(st, "visible"))
4668 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4669 set_state(PART:"padding_icon_text", "icononly", 0.0);
4671 set_state(PART:"elm.text", "default", 0.0);
4674 program { name: "icon_show";
4675 signal: "elm,state,icon,visible";
4680 get_state(PART:"elm.text", st, 30, vl);
4681 if (!strcmp(st, "visible"))
4683 set_state(PART:"elm.swallow.content", "visible", 0.0);
4684 set_state(PART:"padding_icon_text", "visible", 0.0);
4688 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4689 set_state(PART:"padding_icon_text", "icononly", 0.0);
4693 program { name: "icon_hide";
4694 signal: "elm,state,icon,hidden";
4696 action: STATE_SET "default" 0.0;
4697 target: "elm.swallow.content";
4698 target: "padding_icon_text";
4700 program { name: "disable";
4701 signal: "elm,state,disabled";
4703 action: STATE_SET "disabled" 0.0;
4704 target: "button_image";
4706 after: "disable_text";
4708 program { name: "disable_text";
4712 get_state(PART:"elm.text", st, 30, vl);
4713 if (!strcmp(st, "visible"))
4714 set_state(PART:"elm.text", "disabled_visible", 0.0);
4716 set_state(PART:"elm.text", "disabled", 0.0);
4717 set_int(button_state, BUTTON_STATE_DISABLED);
4720 program { name: "enable";
4721 signal: "elm,state,enabled";
4723 action: STATE_SET "default" 0.0;
4724 target: "button_image";
4726 after: "enable_text";
4728 program { name: "enable_text";
4732 get_state(PART:"elm.text", st, 30, vl);
4733 if (!strcmp(st, "disabled_visible"))
4734 set_state(PART:"elm.text", "visible", 0.0);
4736 set_state(PART:"elm.text", "default", 0.0);
4737 set_int(button_state, BUTTON_STATE_ENABLED);
4740 program { name: "focused";
4741 //signal: "elm,action,focus";
4743 action: STATE_SET "focused" 0.0;
4744 target: "button_image";
4747 program { name: "unfocused";
4748 //signal: "elm,action,unfocus";
4750 action: STATE_SET "default" 0.0;
4751 target: "button_image";
4752 after: "unfocus_text";
4754 program { name: "unfocus_text";
4755 action: STATE_SET "visible" 0.0;
4761 ///////////////////////////////////////////////////////////////////////////////////////
4762 group { name: "elm/button/base/contact";
4763 alias: "elm/button/base/text_only/contact";
4765 public button_state = BUTTON_STATE_ENABLED;
4768 part { name: "button_image";
4772 description { state: "default" 0.0;
4773 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
4774 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
4775 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
4776 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
4778 description { state: "clicked" 0.0;
4779 inherit: "default" 0.0;
4780 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
4782 description { state: "disabled" 0.0;
4783 inherit: "default" 0.0;
4785 description { state: "focused" 0.0;
4786 inherit: "default" 0.0;
4789 part { name: "padding.left";
4792 description { state: "default" 0.0;
4794 min: BUTTON_CONTACT_PADDING_MIN_INC;
4798 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
4802 part { name: "padding.right";
4805 description { state: "default" 0.0;
4807 min: BUTTON_CONTACT_PADDING_MIN_INC;
4810 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
4811 rel2.relative: 1.0 1.0;
4815 part { name: "elm.text";
4819 description { state: "default" 0.0;
4823 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4825 font: "SLP:style=Medium";
4826 size: BUTTON_CONTACT_FONT_SIZE_INC;
4831 description { state: "visible" 0.0;
4832 inherit: "default" 0.0;
4836 description { state: "clicked" 0.0;
4837 inherit: "default" 0.0;
4840 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4842 description { state: "disabled" 0.0;
4843 inherit: "default" 0.0;
4846 description { state: "disabled_visible" 0.0;
4847 inherit: "default" 0.0;
4848 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4852 description { state: "focused" 0.0;
4853 inherit: "default" 0.0;
4856 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4859 part { name: "over1";
4861 description { state: "default" 0.0;
4862 rel2.relative: 1.0 0.5;
4865 part { name: "over2";
4868 ignore_flags: ON_HOLD;
4869 description { state: "default" 0.0;
4870 rel1.to: "button_image";
4871 rel2.to: "button_image";
4874 part { name: "over3";
4877 description { state: "default" 0.0;
4878 rel1.to: "button_image";
4879 rel2.to: "button_image";
4883 part { name: "disabler";
4885 description { state: "default" 0.0;
4886 rel1.to: "button_image";
4887 rel2.to: "button_image";
4891 description { state: "disabled" 0.0;
4892 inherit: "default" 0.0;
4898 program { name: "button_click";
4899 signal: "mouse,down,1";
4901 action: SIGNAL_EMIT "elm,action,press" "";
4902 after: "button_click_anim";
4904 program { name: "button_click_anim";
4905 action: STATE_SET "clicked" 0.0;
4906 target: "button_image";
4909 program { name: "button_unpress";
4910 action: SIGNAL_EMIT "elm,action,unpress" "";
4912 program { name: "button_mouseout_clicked";
4913 signal: "mouse,up,1";
4918 get_state(PART:"elm.text", st, 30, vl);
4919 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4921 emit("elm,action,default,text,set", "");
4922 set_state(PART:"elm.text", "visible", 0.0);
4924 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4925 set_state(PART:"button_image", "default", 0.0);
4927 after: button_unpress;
4929 program { name: "button_unclick3";
4930 signal: "mouse,clicked,1";
4932 action: SIGNAL_EMIT "elm,action,click" "";
4934 program { name: "text_show";
4935 signal: "elm,state,text,visible";
4938 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4939 set_state(PART:"elm.text", "visible", 0.0);
4941 set_state(PART:"elm.text", "disabled_visible", 0.0);
4944 program { name: "text_hide";
4945 signal: "elm,state,text,hidden";
4947 action: STATE_SET "default" 0.0;
4951 program { name: "disable";
4952 signal: "elm,state,disabled";
4954 action: STATE_SET "disabled" 0.0;
4955 target: "button_image";
4957 after: "disable_text";
4959 program { name: "disable_text";
4963 get_state(PART:"elm.text", st, 30, vl);
4964 if (!strcmp(st, "visible"))
4965 set_state(PART:"elm.text", "disabled_visible", 0.0);
4967 set_state(PART:"elm.text", "disabled", 0.0);
4968 set_int(button_state, BUTTON_STATE_DISABLED);
4971 program { name: "enable";
4972 signal: "elm,state,enabled";
4974 action: STATE_SET "default" 0.0;
4975 target: "button_image";
4977 after: "enable_text";
4979 program { name: "enable_text";
4983 get_state(PART:"elm.text", st, 30, vl);
4984 if (!strcmp(st, "disabled_visible"))
4985 set_state(PART:"elm.text", "visible", 0.0);
4987 set_state(PART:"elm.text", "default", 0.0);
4988 set_int(button_state, BUTTON_STATE_ENABLED);
4991 program { name: "focused";
4992 //signal: "elm,action,focus";
4994 action: STATE_SET "focused" 0.0;
4995 target: "button_image";
4998 program { name: "unfocused";
4999 //signal: "elm,action,unfocus";
5001 action: STATE_SET "default" 0.0;
5002 target: "button_image";
5003 action: STATE_SET "visible" 0.0;
5009 ///////////////////////////////////////////////////////////////////////////////////////
5010 group { name: "elm/button/base/naviframe/back_btn/default";
5011 alias: "elm/button/base/naviframe/end_btn/default";
5012 //TODO: Remove this alias later
5013 alias: "elm/button/base/navigationbar_prev_btn/default";
5014 alias: "elm/button/base/navigationbar_backbutton/default";
5015 alias: "elm/button/base/navigationbar_end_btn/default";
5017 image: "00_winset_btn_prev.png" COMP;
5018 image: "00_winset_btn_prev_press.png" COMP;
5021 part { name: "button_image";
5025 description { state: "default" 0.0;
5026 min: BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC;
5030 state: "clicked" 0.0;
5031 inherit: "default" 0.0;
5034 state: "disabled" 0.0;
5035 inherit: "default" 0.0;
5038 part {name: "padding_right";
5041 description { state: "default" 0.0;
5044 rel1 { relative: 1 0.2; }
5045 rel2 { relative: 1 0.8; }
5047 color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC;
5050 part {name: "padding_before_right";
5053 description { state: "default" 0.0;
5056 rel1 { relative: 0 0; to: "padding_right"; }
5057 rel2 { relative: 0 1; to: "padding_right"; }
5059 color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC;
5062 part { name: "button_center_part";
5065 description { state: "default" 0.0;
5066 min: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
5067 max: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
5069 rel2 { relative: 0 1; to_x: "padding_before_right"; }
5071 normal: "00_winset_btn_prev.png";
5075 state: "clicked" 0.0;
5076 inherit: "default" 0.0;
5077 image.normal: "00_winset_btn_prev_press.png";
5080 part { name: "over1";
5084 ignore_flags: ON_HOLD;
5085 description { state: "default" 0.0;
5089 part { name: "over2";
5092 description { state: "default" 0.0;
5096 part { name: "disabler";
5098 description { state: "default" 0.0;
5102 description { state: "disabled" 0.0;
5103 inherit: "default" 0.0;
5109 program { name: "button_click";
5110 signal: "mouse,down,1";
5112 action: SIGNAL_EMIT "elm,action,press" "";
5113 after: "button_click_anim";
5115 program { name: "button_click_anim";
5116 action: STATE_SET "clicked" 0.0;
5117 target: "button_image";
5118 target: "button_center_part";
5120 program { name: "button_unclick";
5121 signal: "mouse,up,1";
5123 action: SIGNAL_EMIT "elm,action,unpress" "";
5124 after: "button_unclick_anim";
5126 program { name: "button_unclick_anim";
5127 action: STATE_SET "default" 0.0;
5128 target: "button_image";
5129 target: "button_center_part";
5131 program { name: "button_unclick2";
5132 signal: "mouse,clicked,1";
5134 action: SIGNAL_EMIT "elm,action,click" "";
5136 program { name: "disable";
5137 signal: "elm,state,disabled";
5139 action: STATE_SET "disabled" 0.0;
5141 target: "button_image";
5143 program { name: "enable";
5144 signal: "elm,state,enabled";
5146 action: STATE_SET "default" 0.0;
5148 target: "button_image";
5153 ///////////////////////////////////////////////////////////////////////////////////////
5154 group { name: "elm/button/base/picker/prev/icon/default";
5156 image: "00_picker_btn_normal.png" COMP;
5157 image: "00_picker_btn_press.png" COMP;
5158 image: "00_picker_arrow_left.png" COMP;
5159 image: "00_picker_arrow_left_press.png" COMP;
5162 public button_state = BUTTON_STATE_ENABLED;
5165 part { name: "button_image";
5167 description { state: "default" 0.0;
5168 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5169 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5171 normal: "00_picker_btn_normal.png";
5172 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5176 description { state: "clicked" 0.0;
5177 inherit: "default" 0.0;
5179 normal: "00_picker_btn_press.png";
5182 description { state: "disabled" 0.0;
5183 inherit: "default" 0.0;
5185 description { state: "focused" 0.0;
5186 inherit: "default" 0.0;
5188 normal: "00_picker_btn_press.png";
5192 part { name: "padding_left_top";
5196 description { state: "default" 0.0;
5201 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5206 part { name: "padding_right_bottom";
5210 description { state: "default" 0.0;
5215 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5220 part { name: "left_arrow";
5223 description { state: "default" 0.0;
5224 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5225 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5228 to: "padding_left_top";
5232 to: "padding_right_bottom";
5235 normal: "00_picker_arrow_left.png";
5238 description { state: "clicked" 0.0;
5239 inherit: "default" 0.0;
5241 normal: "00_picker_arrow_left_press.png";
5245 part { name: "over2";
5248 ignore_flags: ON_HOLD;
5249 description { state: "default" 0.0;
5253 part { name: "over3";
5256 description { state: "default" 0.0;
5260 part { name: "disabler";
5262 description { state: "default" 0.0;
5266 description { state: "disabled" 0.0;
5267 inherit: "default" 0.0;
5273 program { name: "button_click";
5274 signal: "mouse,down,1";
5276 action: SIGNAL_EMIT "elm,action,press" "";
5277 after: "button_click_anim";
5279 program { name: "button_click_anim";
5280 action: STATE_SET "clicked" 0.0;
5281 target: "button_image";
5283 program { name: "button_unpress";
5284 action: SIGNAL_EMIT "elm,action,unpress" "";
5286 program { name: "button_mouseout_clicked";
5287 signal: "mouse,up,1";
5290 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5291 set_state(PART:"button_image", "default", 0.0);
5293 after: button_unpress;
5295 program { name: "button_unclick3";
5296 signal: "mouse,clicked,1";
5298 action: SIGNAL_EMIT "elm,action,click" "";
5300 program { name: "disable";
5301 signal: "elm,state,disabled";
5303 action: STATE_SET "disabled" 0.0;
5304 target: "button_image";
5306 after: "disable_button";
5308 program { name: "disable_button";
5310 set_int(button_state, BUTTON_STATE_DISABLED);
5313 program { name: "enable";
5314 signal: "elm,state,enabled";
5316 action: STATE_SET "default" 0.0;
5317 target: "button_image";
5319 after: "enable_button";
5321 program { name: "enable_button";
5323 set_int(button_state, BUTTON_STATE_ENABLED);
5326 program { name: "focused";
5327 //signal: "elm,action,focus";
5329 action: STATE_SET "focused" 0.0;
5330 target: "button_image";
5332 program { name: "unfocused";
5333 //signal: "elm,action,unfocus";
5335 action: STATE_SET "default" 0.0;
5336 target: "button_image";
5341 ///////////////////////////////////////////////////////////////////////////////////////
5342 group { name: "elm/button/base/picker/next/icon/default";
5344 image: "00_picker_btn_normal.png" COMP;
5345 image: "00_picker_btn_press.png" COMP;
5346 image: "00_picker_arrow_right.png" COMP;
5347 image: "00_picker_arrow_right_press.png" COMP;
5350 public button_state = BUTTON_STATE_ENABLED;
5353 part { name: "button_image";
5355 description { state: "default" 0.0;
5356 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5357 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5359 normal: "00_picker_btn_normal.png";
5360 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5364 description { state: "clicked" 0.0;
5365 inherit: "default" 0.0;
5367 normal: "00_picker_btn_press.png";
5370 description { state: "disabled" 0.0;
5371 inherit: "default" 0.0;
5373 description { state: "focused" 0.0;
5374 inherit: "default" 0.0;
5376 normal: "00_picker_btn_press.png";
5380 part { name: "padding_left_top";
5384 description { state: "default" 0.0;
5389 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5394 part { name: "padding_right_bottom";
5398 description { state: "default" 0.0;
5403 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5408 part { name: "right_arrow";
5411 description { state: "default" 0.0;
5412 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5413 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5416 to: "padding_left_top";
5420 to: "padding_right_bottom";
5423 normal: "00_picker_arrow_right.png";
5426 description { state: "clicked" 0.0;
5427 inherit: "default" 0.0;
5429 normal: "00_picker_arrow_right_press.png";
5433 part { name: "over2";
5436 ignore_flags: ON_HOLD;
5437 description { state: "default" 0.0;
5441 part { name: "over3";
5444 description { state: "default" 0.0;
5448 part { name: "disabler";
5450 description { state: "default" 0.0;
5454 description { state: "disabled" 0.0;
5455 inherit: "default" 0.0;
5461 program { name: "button_click";
5462 signal: "mouse,down,1";
5464 action: SIGNAL_EMIT "elm,action,press" "";
5465 after: "button_click_anim";
5467 program { name: "button_click_anim";
5468 action: STATE_SET "clicked" 0.0;
5469 target: "button_image";
5471 program { name: "button_unpress";
5472 action: SIGNAL_EMIT "elm,action,unpress" "";
5474 program { name: "button_mouseout_clicked";
5475 signal: "mouse,up,1";
5478 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5479 set_state(PART:"button_image", "default", 0.0);
5481 after: button_unpress;
5483 program { name: "button_unclick3";
5484 signal: "mouse,clicked,1";
5486 action: SIGNAL_EMIT "elm,action,click" "";
5488 program { name: "disable";
5489 signal: "elm,state,disabled";
5491 action: STATE_SET "disabled" 0.0;
5492 target: "button_image";
5494 after: "disable_button";
5496 program { name: "disable_button";
5498 set_int(button_state, BUTTON_STATE_DISABLED);
5501 program { name: "enable";
5502 signal: "elm,state,enabled";
5504 action: STATE_SET "default" 0.0;
5505 target: "button_image";
5507 after: "enable_button";
5509 program { name: "enable_button";
5511 set_int(button_state, BUTTON_STATE_ENABLED);
5514 program { name: "focused";
5515 //signal: "elm,action,focus";
5517 action: STATE_SET "focused" 0.0;
5518 target: "button_image";
5520 program { name: "unfocused";
5521 //signal: "elm,action,unfocus";
5523 action: STATE_SET "default" 0.0;
5524 target: "button_image";
5529 ///////////////////////////////////////////////////////////////////////////////////////
5530 group { name: "elm/button/base/naviframe_control/default";
5531 alias: "elm/button/base/naviframe_control/center";
5532 alias: "elm/button/base/navigationbar_control/default";
5533 alias: "elm/button/base/navigationbar_control/left";
5534 alias: "elm/button/base/navigationbar_control/right";
5535 alias: "elm/button/base/navigationbar_control/center";
5537 public button_state = BUTTON_STATE_ENABLED;
5539 images.image: "00_Option_header_bt.png" COMP;
5540 images.image: "00_Option_header_bt_dim.png" COMP;
5541 images.image: "00_Option_header_bt_press.png" COMP;
5543 part { name: "button_image";
5547 description { state: "default" 0.0;
5548 min: BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_W_INC BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_H_INC;
5552 image.normal: "00_Option_header_bt.png";
5553 image.border: BUTTON_NAVIBAR_CENTER_BG_NORMAL_BORDER_INC;
5554 color: 255 255 255 255;
5556 description { state: "disabled" 0.0;
5557 inherit: "default" 0.0;
5558 image.normal: "00_Option_header_bt_dim.png";
5560 description { state: "clicked" 0.0;
5561 inherit: "default" 0.0;
5562 image.normal: "00_Option_header_bt_press.png";
5566 name: "padding_left_top";
5570 description { state: "default" 0.0;
5572 rel1.relative: 0.0 0.0;
5573 rel2.relative: 0.0 0.0;
5574 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
5580 name: "padding_right_bottom";
5584 description { state: "default" 0.0;
5586 rel1.relative: 1.0 1.0;
5587 rel2.relative: 1.0 1.0;
5588 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
5598 description { state: "default" 0.0;
5602 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
5603 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
5607 description { state: "visible" 0.0;
5609 min: BUTTON_NAVIBAR_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
5611 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
5612 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
5616 description { state: "icononly" 0.0;
5617 inherit: "default" 0.0;
5621 name: "padding_after_icon";
5625 description { state: "default" 0.0; //when only icon or no icon is there
5627 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5628 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5633 description { state: "visible" 0.0;
5636 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5637 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5639 min: BUTTON_NAVIBAR_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
5642 description { state: "icononly" 0.0;
5643 inherit: "default" 0.0;
5647 name: "padding_before_text";
5651 description { state: "default" 0.0; //when only icon or no icon is there
5653 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
5654 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
5656 min: BUTTON_NAVIBAR_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
5660 part { name: "elm.swallow.content";
5664 description { state: "default" 0.0;
5667 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
5668 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
5671 description { state: "visible" 0.0;
5674 min: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
5675 max: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
5677 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
5678 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
5680 aspect_preference: VERTICAL;
5682 description { state: "icononly" 0.0;
5684 min: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
5685 max: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
5686 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
5687 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
5690 aspect_preference: VERTICAL;
5693 part { name: "elm.text";
5698 description { state: "default" 0.0;
5700 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
5701 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
5703 color: 255 255 255 255;
5705 font: "SLP:style=Medium";
5706 size: BUTTON_NAVIBAR_CENTER_TEXT_FONT_SIZE_INC;
5712 description { state: "visible" 0.0;
5713 inherit: "default" 0.0;
5716 description { state: "clicked" 0.0;
5717 inherit: "default" 0.0;
5721 description { state: "focused" 0.0;
5722 inherit: "default" 0.0;
5725 color: 255 255 255 255;
5728 part { name: "over2";
5732 ignore_flags: ON_HOLD;
5733 description { state: "default" 0.0;
5737 part { name: "over3";
5741 description { state: "default" 0.0;
5745 part { name: "clipper";
5747 description { state: "default" 0.0;
5748 color: 255 255 255 255;
5750 description { state: "disabled" 0.0;
5751 color: 255 255 255 127;
5754 part { name: "disabler";
5756 description { state: "default" 0.0;
5760 description { state: "disabled" 0.0;
5761 inherit: "default" 0.0;
5767 program { name: "button_click";
5768 signal: "mouse,down,1";
5770 action: SIGNAL_EMIT "elm,action,press" "";
5771 after: "button_click_anim";
5773 program { name: "button_click_anim";
5774 action: STATE_SET "clicked" 0.0;
5775 target: "button_image";
5776 after: "text_clicked";
5778 program { name: "text_clicked";
5782 get_state(PART:"elm.text", st, 30, vl);
5783 if (!strcmp(st, "visible"))
5784 set_state(PART:"elm.text", "clicked", 0.0);
5787 program { name: "button_unpress";
5788 action: SIGNAL_EMIT "elm,action,unpress" "";
5790 program { name: "button_mouseout_clicked";
5791 signal: "mouse,up,1";
5796 get_state(PART:"elm.swallow.content", st, 30, vl);
5797 if (strcmp(st, "icononly"))
5799 emit("elm,action,default,text,set", "");
5800 set_state(PART:"elm.text", "visible", 0.0);
5802 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5803 set_state(PART:"button_image", "default", 0.0);
5805 after: button_unpress;
5807 program { name: "button_unclick3";
5808 signal: "mouse,clicked,1";
5810 action: SIGNAL_EMIT "elm,action,click" "";
5812 program { name: "text_show";
5813 signal: "elm,state,text,visible";
5818 get_state(PART:"elm.swallow.content", st, 30, vl);
5819 if (!strcmp(st, "icononly"))
5821 set_state(PART:"elm.swallow.content", "visible", 0.0);
5822 set_state(PART:"icon_rect", "visible", 0.0);
5823 set_state(PART:"padding_after_icon", "visible", 0.0);
5825 set_state(PART:"elm.text", "visible", 0.0);
5828 program { name: "text_hide";
5829 signal: "elm,state,text,hidden";
5834 get_state(PART:"elm.swallow.content", st, 30, vl);
5835 if (!strcmp(st, "visible"))
5837 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5838 set_state(PART:"icon_rect", "icononly", 0.0);
5839 set_state(PART:"padding_after_icon", "icononly", 0.0);
5841 set_state(PART:"elm.text", "default", 0.0);
5844 program { name: "icon_show";
5845 signal: "elm,state,icon,visible";
5850 get_state(PART:"elm.text", st, 30, vl);
5851 if (!strcmp(st, "visible"))
5853 set_state(PART:"elm.swallow.content", "visible", 0.0);
5854 set_state(PART:"icon_rect", "visible", 0.0);
5855 set_state(PART:"padding_after_icon", "visible", 0.0);
5859 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5860 set_state(PART:"icon_rect", "icononly", 0.0);
5861 set_state(PART:"padding_after_icon", "icononly", 0.0);
5865 program { name: "icon_hide";
5866 signal: "elm,state,icon,hidden";
5868 action: STATE_SET "default" 0.0;
5869 target: "elm.swallow.content";
5870 target: "icon_rect";
5871 target: "padding_after_icon";
5873 program { name: "disable";
5874 signal: "elm,state,disabled";
5876 action: STATE_SET "disabled" 0.0;
5877 target: "button_image";
5880 after: "disable_text";
5882 program { name: "disable_text";
5884 set_int(button_state, BUTTON_STATE_DISABLED);
5885 set_state(PART:"elm.text", "visible", 0.0);
5888 program { name: "enable";
5889 signal: "elm,state,enabled";
5891 action: STATE_SET "default" 0.0;
5892 target: "button_image";
5895 after: "enable_text";
5897 program { name: "enable_text";
5899 set_int(button_state, BUTTON_STATE_ENABLED);
5900 set_state(PART:"elm.text", "visible", 0.0);
5903 program { name: "focused";
5904 action: STATE_SET "focused" 0.0;
5905 target: "button_image";
5908 program { name: "unfocused";
5909 action: STATE_SET "default" 0.0;
5910 target: "button_image";
5911 after: "unfocus_text";
5913 program { name: "unfocus_text";
5914 action: STATE_SET "visible" 0.0;
5920 ///////////////////////////////////////////////////////////////////////////////////////
5921 group { name: "elm/button/base/naviframe_control/multiline";
5922 alias: "elm/button/base/navigationbar_control/multiline";
5924 public button_state = BUTTON_STATE_ENABLED;
5926 images.image: "00_Option_header_bt.png" COMP;
5927 images.image: "00_Option_header_bt_dim.png" COMP;
5928 images.image: "00_Option_header_bt_press.png" COMP;
5930 style { name: "btn_multiline_navigationbar_controlbar_style";
5931 base: "font=SLP:style=Medium font_size="BUTTON_NAVIBAR_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
5938 part { name: "button_image";
5942 description { state: "default" 0.0;
5943 min: BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_W_INC BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_H_INC;
5946 image.normal: "00_Option_header_bt.png";
5947 image.border: BUTTON_NAVIBAR_CENTER_BG_NORMAL_BORDER_INC;
5948 color: 255 255 255 255;
5950 description { state: "disabled" 0.0;
5951 inherit: "default" 0.0;
5952 image.normal: "00_Option_header_bt_dim.png";
5954 description { state: "clicked" 0.0;
5955 inherit: "default" 0.0;
5956 image.normal: "00_Option_header_bt_press.png";
5960 name: "padding_left_top";
5964 description { state: "default" 0.0;
5972 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
5978 name: "padding_right_bottom";
5982 description { state: "default" 0.0;
5984 rel1.relative: 1.0 1.0;
5985 rel2.relative: 1.0 1.0;
5986 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
5996 description { state: "default" 0.0;
6002 to_x: "elm.swallow.content";
6003 to_y: "padding_left_top";
6007 to_x: "elm.swallow.content";
6008 to_y: "padding_right_bottom";
6014 name: "padding_icon_text";
6018 description { state: "default" 0.0; //when only icon or no icon is there
6032 description { state: "visible" 0.0;
6033 inherit: "default" 0.0;
6034 min: BUTTON_NAVIBAR_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6044 description { state: "icononly" 0.0;
6045 inherit: "default" 0.0;
6048 part { name: "elm.swallow.content";
6052 description { state: "default" 0.0;
6057 to: "padding_left_top";
6061 to_x: "padding_left_top";
6062 to_y: "padding_right_bottom";
6066 description { state: "visible" 0.0;
6069 min: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6070 max: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6074 to: "padding_left_top";
6078 to_x: "padding_left_top";
6079 to_y: "padding_right_bottom";
6082 description { state: "icononly" 0.0;
6084 min: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6085 max: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6088 to: "padding_left_top";
6092 to: "padding_right_bottom";
6097 part { name: "elm.text";
6102 description { state: "default" 0.0;
6106 to_x: "padding_icon_text";
6107 to_y: "padding_left_top";
6111 to: "padding_right_bottom";
6114 color: 255 255 255 255;
6116 style: "btn_multiline_navigationbar_controlbar_style";
6121 description { state: "visible" 0.0;
6122 inherit: "default" 0.0;
6126 description { state: "clicked" 0.0;
6127 inherit: "default" 0.0;
6131 description { state: "focused" 0.0;
6132 inherit: "default" 0.0;
6135 color: 255 255 255 255;
6138 part { name: "over2";
6142 ignore_flags: ON_HOLD;
6143 description { state: "default" 0.0;
6147 part { name: "over3";
6151 description { state: "default" 0.0;
6155 part { name: "clipper";
6157 description { state: "default" 0.0;
6158 color: 255 255 255 255;
6160 description { state: "disabled" 0.0;
6161 color: 255 255 255 127;
6164 part { name: "disabler";
6166 description { state: "default" 0.0;
6170 description { state: "disabled" 0.0;
6171 inherit: "default" 0.0;
6177 program { name: "button_click";
6178 signal: "mouse,down,1";
6180 action: SIGNAL_EMIT "elm,action,press" "";
6181 after: "button_click_anim";
6183 program { name: "button_click_anim";
6184 action: STATE_SET "clicked" 0.0;
6185 target: "button_image";
6186 after: "text_clicked";
6188 program { name: "text_clicked";
6192 get_state(PART:"elm.text", st, 30, vl);
6193 if (!strcmp(st, "visible"))
6194 set_state(PART:"elm.text", "clicked", 0.0);
6197 program { name: "button_unpress";
6198 action: SIGNAL_EMIT "elm,action,unpress" "";
6200 program { name: "button_mouseout_clicked";
6201 signal: "mouse,up,1";
6206 get_state(PART:"elm.swallow.content", st, 30, vl);
6207 if (strcmp(st, "icononly"))
6209 emit("elm,action,default,text,set", "");
6210 set_state(PART:"elm.text", "visible", 0.0);
6212 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6213 set_state(PART:"button_image", "default", 0.0);
6215 after: button_unpress;
6217 program { name: "button_unclick3";
6218 signal: "mouse,clicked,1";
6220 action: SIGNAL_EMIT "elm,action,click" "";
6222 program { name: "text_show";
6223 signal: "elm,state,text,visible";
6228 get_state(PART:"elm.swallow.content", st, 30, vl);
6229 if (!strcmp(st, "icononly"))
6231 set_state(PART:"elm.swallow.content", "visible", 0.0);
6232 set_state(PART:"padding_icon_text", "visible", 0.0);
6234 set_state(PART:"elm.text", "visible", 0.0);
6237 program { name: "text_hide";
6238 signal: "elm,state,text,hidden";
6243 get_state(PART:"elm.swallow.content", st, 30, vl);
6244 if (!strcmp(st, "visible"))
6246 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6247 set_state(PART:"padding_icon_text", "icononly", 0.0);
6249 set_state(PART:"elm.text", "default", 0.0);
6252 program { name: "icon_show";
6253 signal: "elm,state,icon,visible";
6258 get_state(PART:"elm.text", st, 30, vl);
6259 if (!strcmp(st, "visible"))
6261 set_state(PART:"elm.swallow.content", "visible", 0.0);
6262 set_state(PART:"padding_icon_text", "visible", 0.0);
6266 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6267 set_state(PART:"padding_icon_text", "icononly", 0.0);
6271 program { name: "icon_hide";
6272 signal: "elm,state,icon,hidden";
6274 action: STATE_SET "default" 0.0;
6275 target: "elm.swallow.content";
6276 target: "padding_icon_text";
6278 program { name: "disable";
6279 signal: "elm,state,disabled";
6281 action: STATE_SET "disabled" 0.0;
6282 target: "button_image";
6285 after: "disable_text";
6287 program { name: "disable_text";
6289 set_int(button_state, BUTTON_STATE_DISABLED);
6290 set_state(PART:"elm.text", "visible", 0.0);
6293 program { name: "enable";
6294 signal: "elm,state,enabled";
6296 action: STATE_SET "default" 0.0;
6297 target: "button_image";
6300 after: "enable_text";
6302 program { name: "enable_text";
6304 set_int(button_state, BUTTON_STATE_ENABLED);
6305 set_state(PART:"elm.text", "visible", 0.0);
6308 program { name: "focused";
6309 action: STATE_SET "focused" 0.0;
6310 target: "button_image";
6313 program { name: "unfocused";
6314 action: STATE_SET "default" 0.0;
6315 target: "button_image";
6316 after: "unfocus_text";
6318 program { name: "unfocus_text";
6319 action: STATE_SET "visible" 0.0;
6325 ///////////////////////////////////////////////////////////////////////////////////////
6326 group { name: "elm/button/base/controlbar/vertical";
6328 public button_state = BUTTON_STATE_ENABLED;
6331 style { name: "controlbar_style";
6332 base: "font=SLP:style=Medium font_size=18 align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1";
6335 tag: "hilight" "+ font=SLP:style=Bold";
6336 tag: "b" "+ font=SLP:style=Bold";
6341 part { name: "button_image";
6345 description { state: "default" 0.0;
6354 name: "padding_left_top";
6358 description { state: "default" 0.0;
6360 rel1.relative: 0.0 0.0;
6361 rel2.relative: 0.0 0.0;
6368 name: "padding_right_bottom";
6372 description { state: "default" 0.0;
6374 rel1.relative: 1.0 1.0;
6375 rel2.relative: 1.0 1.0;
6386 description { state: "default" 0.0;
6390 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6391 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
6395 description { state: "visible" 0.0;
6397 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6399 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6400 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
6404 description { state: "icononly" 0.0;
6405 inherit: "default" 0.0;
6409 name: "padding_after_icon";
6413 description { state: "default" 0.0; //when only icon or no icon is there
6415 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
6416 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6421 description { state: "visible" 0.0;
6424 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
6425 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6430 description { state: "icononly" 0.0;
6431 inherit: "default" 0.0;
6435 name: "padding_before_text";
6439 description { state: "default" 0.0; //when only icon or no icon is there
6441 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
6442 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
6448 part { name: "elm.swallow.content";
6451 clip_to: "disabler";
6452 description { state: "default" 0.0;
6455 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6456 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
6459 description { state: "visible" 0.0;
6462 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6463 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6465 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6466 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
6468 aspect_preference: HORIZONTAL;
6470 description { state: "icononly" 0.0;
6472 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6473 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6474 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6475 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6478 aspect_preference: HORIZONTAL;
6481 part { name: "elm.text";
6485 clip_to: "disabler";
6486 description { state: "default" 0.0;
6488 rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
6489 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6491 color: 255 255 255 255;
6494 style: "controlbar_style";
6499 description { state: "visible" 0.0;
6500 inherit: "default" 0.0;
6503 description { state: "clicked" 0.0;
6504 inherit: "default" 0.0;
6506 color: 255 255 255 255;
6508 description { state: "focused" 0.0;
6509 inherit: "default" 0.0;
6511 color: 255 255 255 255;
6514 part { name: "over2";
6518 ignore_flags: ON_HOLD;
6519 description { state: "default" 0.0;
6523 part { name: "over3";
6527 description { state: "default" 0.0;
6531 part { name: "disabler";
6533 description { state: "default" 0.0;
6534 color: 255 255 255 255;
6537 description { state: "disabled" 0.0;
6538 inherit: "default" 0.0;
6539 color: 255 255 255 127;
6545 program { name: "button_click";
6546 signal: "mouse,down,1";
6548 action: SIGNAL_EMIT "elm,action,press" "";
6549 after: "button_click_anim";
6551 program { name: "button_click_anim";
6552 action: STATE_SET "clicked" 0.0;
6553 target: "button_image";
6554 after: "text_clicked";
6556 program { name: "text_clicked";
6560 get_state(PART:"elm.text", st, 30, vl);
6561 if (!strcmp(st, "visible"))
6562 set_state(PART:"elm.text", "clicked", 0.0);
6565 program { name: "button_unpress";
6566 action: SIGNAL_EMIT "elm,action,unpress" "";
6568 program { name: "button_mouseout_clicked";
6569 signal: "mouse,up,1";
6574 get_state(PART:"elm.swallow.content", st, 30, vl);
6575 if (strcmp(st, "icononly"))
6577 emit("elm,action,default,text,set", "");
6578 set_state(PART:"elm.text", "visible", 0.0);
6580 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6581 set_state(PART:"button_image", "default", 0.0);
6583 after: button_unpress;
6585 program { name: "button_unclick3";
6586 signal: "mouse,clicked,1";
6588 action: SIGNAL_EMIT "elm,action,click" "";
6590 program { name: "text_show";
6591 signal: "elm,state,text,visible";
6596 get_state(PART:"elm.swallow.content", st, 30, vl);
6597 if (!strcmp(st, "icononly"))
6599 set_state(PART:"elm.swallow.content", "visible", 0.0);
6600 set_state(PART:"icon_rect", "visible", 0.0);
6601 set_state(PART:"padding_after_icon", "visible", 0.0);
6603 set_state(PART:"elm.text", "visible", 0.0);
6606 program { name: "text_hide";
6607 signal: "elm,state,text,hidden";
6612 get_state(PART:"elm.swallow.content", st, 30, vl);
6613 if (!strcmp(st, "visible"))
6615 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6616 set_state(PART:"icon_rect", "icononly", 0.0);
6617 set_state(PART:"padding_after_icon", "icononly", 0.0);
6619 set_state(PART:"elm.text", "default", 0.0);
6622 program { name: "icon_show";
6623 signal: "elm,state,icon,visible";
6628 get_state(PART:"elm.text", st, 30, vl);
6629 if (!strcmp(st, "visible"))
6631 set_state(PART:"elm.swallow.content", "visible", 0.0);
6632 set_state(PART:"icon_rect", "visible", 0.0);
6633 set_state(PART:"padding_after_icon", "visible", 0.0);
6637 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6638 set_state(PART:"icon_rect", "icononly", 0.0);
6639 set_state(PART:"padding_after_icon", "icononly", 0.0);
6643 program { name: "icon_hide";
6644 signal: "elm,state,icon,hidden";
6646 action: STATE_SET "default" 0.0;
6647 target: "elm.swallow.content";
6648 target: "icon_rect";
6649 target: "padding_after_icon";
6651 program { name: "disable";
6652 signal: "elm,state,disabled";
6654 action: STATE_SET "disabled" 0.0;
6655 target: "button_image";
6657 after: "disable_text";
6659 program { name: "disable_text";
6661 set_int(button_state, BUTTON_STATE_DISABLED);
6662 set_state(PART:"elm.text", "visible", 0.0);
6665 program { name: "enable";
6666 signal: "elm,state,enabled";
6668 action: STATE_SET "default" 0.0;
6669 target: "button_image";
6671 after: "enable_text";
6673 program { name: "enable_text";
6675 set_int(button_state, BUTTON_STATE_ENABLED);
6676 set_state(PART:"elm.text", "visible", 0.0);
6679 program { name: "focused";
6680 action: STATE_SET "focused" 0.0;
6681 target: "button_image";
6684 program { name: "unfocused";
6685 action: STATE_SET "default" 0.0;
6686 target: "button_image";
6687 after: "unfocus_text";
6689 program { name: "unfocus_text";
6690 action: STATE_SET "visible" 0.0;
6696 ///////////////////////////////////////////////////////////////////////////////////////
6697 group { name: "elm/button/base/controlbar/horizontal_center";
6699 public button_state = BUTTON_STATE_ENABLED;
6702 part { name: "button_image";
6706 description { state: "default" 0.0;
6713 description { state: "clicked" 0.0;
6714 inherit: "default" 0.0;
6719 name: "padding_left_top";
6723 description { state: "default" 0.0;
6725 rel1.relative: 0.0 0.0;
6726 rel2.relative: 0.0 0.0;
6733 name: "padding_right_bottom";
6737 description { state: "default" 0.0;
6739 rel1.relative: 1.0 1.0;
6740 rel2.relative: 1.0 1.0;
6751 description { state: "default" 0.0;
6755 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6756 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6760 description { state: "visible" 0.0;
6762 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6764 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6765 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6769 description { state: "icononly" 0.0;
6770 inherit: "default" 0.0;
6774 name: "padding_after_icon";
6778 description { state: "default" 0.0; //when only icon or no icon is there
6780 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6781 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6786 description { state: "visible" 0.0;
6789 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6790 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6795 description { state: "icononly" 0.0;
6796 inherit: "default" 0.0;
6800 name: "padding_before_text";
6804 description { state: "default" 0.0; //when only icon or no icon is there
6806 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
6807 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
6813 part { name: "elm.swallow.content";
6816 clip_to: "disabler";
6817 description { state: "default" 0.0;
6820 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6821 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6824 description { state: "visible" 0.0;
6827 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6828 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6830 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
6831 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
6833 aspect_preference: VERTICAL;
6835 description { state: "icononly" 0.0;
6837 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6838 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
6839 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6840 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6843 aspect_preference: VERTICAL;
6846 part { name: "elm.text";
6850 clip_to: "disabler";
6851 description { state: "default" 0.0;
6853 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
6854 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6856 color: 255 255 255 255;
6858 font: "SLP:style=Medium";
6865 description { state: "visible" 0.0;
6866 inherit: "default" 0.0;
6869 description { state: "clicked" 0.0;
6870 inherit: "default" 0.0;
6874 description { state: "focused" 0.0;
6875 inherit: "default" 0.0;
6878 color: 255 255 255 255;
6881 part { name: "over2";
6885 ignore_flags: ON_HOLD;
6886 description { state: "default" 0.0;
6890 part { name: "over3";
6894 description { state: "default" 0.0;
6898 part { name: "disabler";
6900 description { state: "default" 0.0;
6901 color: 255 255 255 255;
6903 description { state: "disabled" 0.0;
6904 color: 255 255 255 127;
6909 program { name: "button_click";
6910 signal: "mouse,down,1";
6912 action: SIGNAL_EMIT "elm,action,press" "";
6913 after: "button_click_anim";
6915 program { name: "button_click_anim";
6916 action: STATE_SET "clicked" 0.0;
6917 target: "button_image";
6918 after: "text_clicked";
6920 program { name: "text_clicked";
6924 get_state(PART:"elm.text", st, 30, vl);
6925 if (!strcmp(st, "visible"))
6926 set_state(PART:"elm.text", "clicked", 0.0);
6929 program { name: "button_unpress";
6930 action: SIGNAL_EMIT "elm,action,unpress" "";
6932 program { name: "button_mouseout_clicked";
6933 signal: "mouse,up,1";
6938 get_state(PART:"elm.swallow.content", st, 30, vl);
6939 if (strcmp(st, "icononly"))
6941 emit("elm,action,default,text,set", "");
6942 set_state(PART:"elm.text", "visible", 0.0);
6944 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6945 set_state(PART:"button_image", "default", 0.0);
6947 after: button_unpress;
6949 program { name: "button_unclick3";
6950 signal: "mouse,clicked,1";
6952 action: SIGNAL_EMIT "elm,action,click" "";
6954 program { name: "text_show";
6955 signal: "elm,state,text,visible";
6960 get_state(PART:"elm.swallow.content", st, 30, vl);
6961 if (!strcmp(st, "icononly"))
6963 set_state(PART:"elm.swallow.content", "visible", 0.0);
6964 set_state(PART:"icon_rect", "visible", 0.0);
6965 set_state(PART:"padding_after_icon", "visible", 0.0);
6967 set_state(PART:"elm.text", "visible", 0.0);
6970 program { name: "text_hide";
6971 signal: "elm,state,text,hidden";
6976 get_state(PART:"elm.swallow.content", st, 30, vl);
6977 if (!strcmp(st, "visible"))
6979 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6980 set_state(PART:"icon_rect", "icononly", 0.0);
6981 set_state(PART:"padding_after_icon", "icononly", 0.0);
6983 set_state(PART:"elm.text", "default", 0.0);
6986 program { name: "icon_show";
6987 signal: "elm,state,icon,visible";
6992 get_state(PART:"elm.text", st, 30, vl);
6993 if (!strcmp(st, "visible"))
6995 set_state(PART:"elm.swallow.content", "visible", 0.0);
6996 set_state(PART:"icon_rect", "visible", 0.0);
6997 set_state(PART:"padding_after_icon", "visible", 0.0);
7001 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7002 set_state(PART:"icon_rect", "icononly", 0.0);
7003 set_state(PART:"padding_after_icon", "icononly", 0.0);
7007 program { name: "icon_hide";
7008 signal: "elm,state,icon,hidden";
7010 action: STATE_SET "default" 0.0;
7011 target: "elm.swallow.content";
7012 target: "icon_rect";
7013 target: "padding_after_icon";
7015 program { name: "disable";
7016 signal: "elm,state,disabled";
7018 action: STATE_SET "disabled" 0.0;
7020 after: "disable_text";
7022 program { name: "disable_text";
7024 set_int(button_state, BUTTON_STATE_DISABLED);
7025 set_state(PART:"elm.text", "visible", 0.0);
7028 program { name: "enable";
7029 signal: "elm,state,enabled";
7031 action: STATE_SET "default" 0.0;
7033 after: "enable_text";
7035 program { name: "enable_text";
7037 set_int(button_state, BUTTON_STATE_ENABLED);
7038 set_state(PART:"elm.text", "visible", 0.0);
7041 program { name: "focused";
7042 action: STATE_SET "focused" 0.0;
7043 target: "button_image";
7046 program { name: "unfocused";
7047 action: STATE_SET "default" 0.0;
7048 target: "button_image";
7049 after: "unfocus_text";
7051 program { name: "unfocus_text";
7052 action: STATE_SET "visible" 0.0;
7058 ///////////////////////////////////////////////////////////////////////////////////////
7059 group { name: "elm/button/base/controlbar/horizontal_left";
7061 public button_state = BUTTON_STATE_ENABLED;
7064 part { name: "button_image";
7068 description { state: "default" 0.0;
7075 description { state: "clicked" 0.0;
7076 inherit: "default" 0.0;
7081 name: "padding_left_top";
7085 description { state: "default" 0.0;
7087 rel1.relative: 0.0 0.0;
7088 rel2.relative: 0.0 0.0;
7095 name: "padding_right_bottom";
7099 description { state: "default" 0.0;
7101 rel1.relative: 1.0 1.0;
7102 rel2.relative: 1.0 1.0;
7113 description { state: "default" 0.0;
7117 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7118 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7122 description { state: "visible" 0.0;
7124 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7126 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7127 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7131 description { state: "icononly" 0.0;
7132 inherit: "default" 0.0;
7136 name: "padding_after_icon";
7140 description { state: "default" 0.0; //when only icon or no icon is there
7142 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7143 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7148 description { state: "visible" 0.0;
7151 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7152 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7157 description { state: "icononly" 0.0;
7158 inherit: "default" 0.0;
7162 name: "padding_before_text";
7166 description { state: "default" 0.0; //when only icon or no icon is there
7168 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7169 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7175 part { name: "elm.swallow.content";
7178 clip_to: "disabler";
7179 description { state: "default" 0.0;
7182 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7183 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7186 description { state: "visible" 0.0;
7189 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7190 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7192 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7193 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7195 aspect_preference: VERTICAL;
7197 description { state: "icononly" 0.0;
7199 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7200 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7201 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7202 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7205 aspect_preference: VERTICAL;
7208 part { name: "elm.text";
7212 clip_to: "disabler";
7213 description { state: "default" 0.0;
7215 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7216 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7218 color: 255 255 255 255;
7220 font: "SLP:style=Medium";
7227 description { state: "visible" 0.0;
7228 inherit: "default" 0.0;
7231 description { state: "clicked" 0.0;
7232 inherit: "default" 0.0;
7236 description { state: "focused" 0.0;
7237 inherit: "default" 0.0;
7240 color: 255 255 255 255;
7243 part { name: "over2";
7247 ignore_flags: ON_HOLD;
7248 description { state: "default" 0.0;
7252 part { name: "over3";
7256 description { state: "default" 0.0;
7260 part { name: "disabler";
7262 description { state: "default" 0.0;
7263 color: 255 255 255 255;
7265 description { state: "disabled" 0.0;
7266 color: 255 255 255 127;
7271 program { name: "button_click";
7272 signal: "mouse,down,1";
7274 action: SIGNAL_EMIT "elm,action,press" "";
7275 after: "button_click_anim";
7277 program { name: "button_click_anim";
7278 action: STATE_SET "clicked" 0.0;
7279 target: "button_image";
7280 after: "text_clicked";
7282 program { name: "text_clicked";
7286 get_state(PART:"elm.text", st, 30, vl);
7287 if (!strcmp(st, "visible"))
7288 set_state(PART:"elm.text", "clicked", 0.0);
7291 program { name: "button_unpress";
7292 action: SIGNAL_EMIT "elm,action,unpress" "";
7294 program { name: "button_mouseout_clicked";
7295 signal: "mouse,up,1";
7300 get_state(PART:"elm.swallow.content", st, 30, vl);
7301 if (strcmp(st, "icononly"))
7303 emit("elm,action,default,text,set", "");
7304 set_state(PART:"elm.text", "visible", 0.0);
7306 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7307 set_state(PART:"button_image", "default", 0.0);
7309 after: button_unpress;
7311 program { name: "button_unclick3";
7312 signal: "mouse,clicked,1";
7314 action: SIGNAL_EMIT "elm,action,click" "";
7316 program { name: "text_show";
7317 signal: "elm,state,text,visible";
7322 get_state(PART:"elm.swallow.content", st, 30, vl);
7323 if (!strcmp(st, "icononly"))
7325 set_state(PART:"elm.swallow.content", "visible", 0.0);
7326 set_state(PART:"icon_rect", "visible", 0.0);
7327 set_state(PART:"padding_after_icon", "visible", 0.0);
7329 set_state(PART:"elm.text", "visible", 0.0);
7332 program { name: "text_hide";
7333 signal: "elm,state,text,hidden";
7338 get_state(PART:"elm.swallow.content", st, 30, vl);
7339 if (!strcmp(st, "visible"))
7341 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7342 set_state(PART:"icon_rect", "icononly", 0.0);
7343 set_state(PART:"padding_after_icon", "icononly", 0.0);
7345 set_state(PART:"elm.text", "default", 0.0);
7348 program { name: "icon_show";
7349 signal: "elm,state,icon,visible";
7354 get_state(PART:"elm.text", st, 30, vl);
7355 if (!strcmp(st, "visible"))
7357 set_state(PART:"elm.swallow.content", "visible", 0.0);
7358 set_state(PART:"icon_rect", "visible", 0.0);
7359 set_state(PART:"padding_after_icon", "visible", 0.0);
7363 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7364 set_state(PART:"icon_rect", "icononly", 0.0);
7365 set_state(PART:"padding_after_icon", "icononly", 0.0);
7369 program { name: "icon_hide";
7370 signal: "elm,state,icon,hidden";
7372 action: STATE_SET "default" 0.0;
7373 target: "elm.swallow.content";
7374 target: "icon_rect";
7375 target: "padding_after_icon";
7377 program { name: "disable";
7378 signal: "elm,state,disabled";
7380 action: STATE_SET "disabled" 0.0;
7382 after: "disable_text";
7384 program { name: "disable_text";
7386 set_int(button_state, BUTTON_STATE_DISABLED);
7387 set_state(PART:"elm.text", "visible", 0.0);
7390 program { name: "enable";
7391 signal: "elm,state,enabled";
7393 action: STATE_SET "default" 0.0;
7395 after: "enable_text";
7397 program { name: "enable_text";
7399 set_int(button_state, BUTTON_STATE_ENABLED);
7400 set_state(PART:"elm.text", "visible", 0.0);
7403 program { name: "focused";
7404 action: STATE_SET "focused" 0.0;
7405 target: "button_image";
7408 program { name: "unfocused";
7409 action: STATE_SET "default" 0.0;
7410 target: "button_image";
7411 after: "unfocus_text";
7413 program { name: "unfocus_text";
7414 action: STATE_SET "visible" 0.0;
7420 ///////////////////////////////////////////////////////////////////////////////////////
7421 group { name: "elm/button/base/controlbar/horizontal_right";
7423 public button_state = BUTTON_STATE_ENABLED;
7426 part { name: "button_image";
7430 description { state: "default" 0.0;
7437 description { state: "clicked" 0.0;
7438 inherit: "default" 0.0;
7443 name: "padding_left_top";
7447 description { state: "default" 0.0;
7449 rel1.relative: 0.0 0.0;
7450 rel2.relative: 0.0 0.0;
7457 name: "padding_right_bottom";
7461 description { state: "default" 0.0;
7463 rel1.relative: 1.0 1.0;
7464 rel2.relative: 1.0 1.0;
7475 description { state: "default" 0.0;
7479 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7480 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7484 description { state: "visible" 0.0;
7486 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7488 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7489 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7493 description { state: "icononly" 0.0;
7494 inherit: "default" 0.0;
7498 name: "padding_after_icon";
7502 description { state: "default" 0.0; //when only icon or no icon is there
7504 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7505 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7510 description { state: "visible" 0.0;
7513 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7514 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7519 description { state: "icononly" 0.0;
7520 inherit: "default" 0.0;
7524 name: "padding_before_text";
7528 description { state: "default" 0.0; //when only icon or no icon is there
7530 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7531 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7537 part { name: "elm.swallow.content";
7540 clip_to: "disabler";
7541 description { state: "default" 0.0;
7544 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7545 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7548 description { state: "visible" 0.0;
7551 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7552 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7554 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7555 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7557 aspect_preference: VERTICAL;
7559 description { state: "icononly" 0.0;
7561 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7562 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7563 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7564 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7567 aspect_preference: VERTICAL;
7570 part { name: "elm.text";
7574 clip_to: "disabler";
7575 description { state: "default" 0.0;
7577 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7578 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7580 color: 255 255 255 255;
7582 font: "SLP:style=Medium";
7589 description { state: "visible" 0.0;
7590 inherit: "default" 0.0;
7593 description { state: "clicked" 0.0;
7594 inherit: "default" 0.0;
7598 description { state: "focused" 0.0;
7599 inherit: "default" 0.0;
7602 color: 255 255 255 255;
7605 part { name: "over2";
7609 ignore_flags: ON_HOLD;
7610 description { state: "default" 0.0;
7614 part { name: "over3";
7618 description { state: "default" 0.0;
7622 part { name: "disabler";
7624 description { state: "default" 0.0;
7625 color: 255 255 255 255;
7627 description { state: "disabled" 0.0;
7628 color: 255 255 255 127;
7633 program { name: "button_click";
7634 signal: "mouse,down,1";
7636 action: SIGNAL_EMIT "elm,action,press" "";
7637 after: "button_click_anim";
7639 program { name: "button_click_anim";
7640 action: STATE_SET "clicked" 0.0;
7641 target: "button_image";
7642 after: "text_clicked";
7644 program { name: "text_clicked";
7648 get_state(PART:"elm.text", st, 30, vl);
7649 if (!strcmp(st, "visible"))
7650 set_state(PART:"elm.text", "clicked", 0.0);
7653 program { name: "button_unpress";
7654 action: SIGNAL_EMIT "elm,action,unpress" "";
7656 program { name: "button_mouseout_clicked";
7657 signal: "mouse,up,1";
7662 get_state(PART:"elm.swallow.content", st, 30, vl);
7663 if (strcmp(st, "icononly"))
7665 emit("elm,action,default,text,set", "");
7666 set_state(PART:"elm.text", "visible", 0.0);
7668 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7669 set_state(PART:"button_image", "default", 0.0);
7671 after: button_unpress;
7673 program { name: "button_unclick3";
7674 signal: "mouse,clicked,1";
7676 action: SIGNAL_EMIT "elm,action,click" "";
7678 program { name: "text_show";
7679 signal: "elm,state,text,visible";
7684 get_state(PART:"elm.swallow.content", st, 30, vl);
7685 if (!strcmp(st, "icononly"))
7687 set_state(PART:"elm.swallow.content", "visible", 0.0);
7688 set_state(PART:"icon_rect", "visible", 0.0);
7689 set_state(PART:"padding_after_icon", "visible", 0.0);
7691 set_state(PART:"elm.text", "visible", 0.0);
7694 program { name: "text_hide";
7695 signal: "elm,state,text,hidden";
7700 get_state(PART:"elm.swallow.content", st, 30, vl);
7701 if (!strcmp(st, "visible"))
7703 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7704 set_state(PART:"icon_rect", "icononly", 0.0);
7705 set_state(PART:"padding_after_icon", "icononly", 0.0);
7707 set_state(PART:"elm.text", "default", 0.0);
7710 program { name: "icon_show";
7711 signal: "elm,state,icon,visible";
7716 get_state(PART:"elm.text", st, 30, vl);
7717 if (!strcmp(st, "visible"))
7719 set_state(PART:"elm.swallow.content", "visible", 0.0);
7720 set_state(PART:"icon_rect", "visible", 0.0);
7721 set_state(PART:"padding_after_icon", "visible", 0.0);
7725 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7726 set_state(PART:"icon_rect", "icononly", 0.0);
7727 set_state(PART:"padding_after_icon", "icononly", 0.0);
7731 program { name: "icon_hide";
7732 signal: "elm,state,icon,hidden";
7734 action: STATE_SET "default" 0.0;
7735 target: "elm.swallow.content";
7736 target: "icon_rect";
7737 target: "padding_after_icon";
7739 program { name: "disable";
7740 signal: "elm,state,disabled";
7742 action: STATE_SET "disabled" 0.0;
7744 after: "disable_text";
7746 program { name: "disable_text";
7748 set_int(button_state, BUTTON_STATE_DISABLED);
7749 set_state(PART:"elm.text", "visible", 0.0);
7752 program { name: "enable";
7753 signal: "elm,state,enabled";
7755 action: STATE_SET "default" 0.0;
7757 after: "enable_text";
7759 program { name: "enable_text";
7761 set_int(button_state, BUTTON_STATE_ENABLED);
7762 set_state(PART:"elm.text", "visible", 0.0);
7765 program { name: "focused";
7766 action: STATE_SET "focused" 0.0;
7767 target: "button_image";
7770 program { name: "unfocused";
7771 action: STATE_SET "default" 0.0;
7772 target: "button_image";
7773 after: "unfocus_text";
7775 program { name: "unfocus_text";
7776 action: STATE_SET "visible" 0.0;
7782 ///////////////////////////////////////////////////////////////////////////////////////
7783 group { name: "elm/button/base/tickernoti";
7785 image: "00_button_06_normal.png" COMP;
7786 image: "00_button_06_press.png" COMP;
7787 image: "00_button_06_dim.png" COMP;
7790 public button_state = BUTTON_STATE_ENABLED;
7793 part { name: "button_image";
7795 description { state: "default" 0.0;
7797 normal: "00_button_06_normal.png";
7798 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
7802 description { state: "clicked" 0.0;
7803 inherit: "default" 0.0;
7805 normal: "00_button_06_press.png";
7808 description { state: "disabled" 0.0;
7809 inherit: "default" 0.0;
7811 normal: "00_button_06_dim.png";
7814 description { state: "focused" 0.0;
7815 inherit: "default" 0.0;
7817 normal: "00_button_06_press.png";
7821 part { name: "padding_left_top";
7825 description { state: "default" 0.0;
7830 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
7839 description { state: "default" 0.0;
7840 min: BUTTON_TICKERNOTI_BG_MIN_INC;
7843 description { state: "visible" 0.0;
7844 inherit: "default" 0.0;
7845 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
7847 description { state: "icononly" 0.0;
7848 inherit: "default" 0.0;
7849 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
7852 part { name: "padding_right_bottom";
7856 description { state: "default" 0.0;
7861 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
7866 part { name: "icon_rect";
7870 description { state: "default" 0.0;
7876 to: "padding_left_top";
7880 to_x: "padding_left_top";
7881 to_y: "padding_right_bottom";
7885 description { state: "visible" 0.0;
7887 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
7888 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
7892 to: "padding_left_top";
7896 to_x: "padding_left_top";
7897 to_y: "padding_right_bottom";
7901 description { state: "icononly" 0.0;
7902 inherit: "default" 0.0;
7905 part { name: "padding_after_icon";
7909 description { state: "default" 0.0; //when only icon or no icon is there
7922 description { state: "visible" 0.0;
7933 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7935 description { state: "icononly" 0.0;
7936 inherit: "default" 0.0;
7939 part { name: "padding_before_text";
7943 description { state: "default" 0.0; //when only icon or no icon is there
7948 to_y: "padding_left_top";
7953 to_y: "padding_right_bottom";
7956 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7960 part { name: "elm.swallow.content";
7964 description { state: "default" 0.0;
7969 to: "padding_left_top";
7973 to_x: "padding_left_top";
7974 to_y: "padding_right_bottom";
7978 description { state: "visible" 0.0;
7980 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
7981 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
7985 to_x: "padding_before_text";
7986 to_y: "padding_left_top";
7990 to_x: "padding_before_text";
7991 to_y: "padding_right_bottom";
7994 description { state: "icononly" 0.0;
7995 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
7996 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8000 part { name: "elm.text";
8005 description { state: "default" 0.0;
8009 to_x: "padding_after_icon";
8010 to_y: "padding_left_top";
8014 to: "padding_right_bottom";
8016 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
8018 font: "SLP:style=Medium";
8019 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
8024 description { state: "visible" 0.0;
8025 inherit: "default" 0.0;
8028 description { state: "clicked" 0.0;
8029 inherit: "default" 0.0;
8031 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8033 description { state: "disabled" 0.0;
8034 inherit: "default" 0.0;
8037 description { state: "disabled_visible" 0.0;
8038 inherit: "default" 0.0;
8039 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
8042 description { state: "focused" 0.0;
8043 inherit: "default" 0.0;
8045 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8048 part { name: "over2";
8051 ignore_flags: ON_HOLD;
8052 description { state: "default" 0.0;
8056 part { name: "over3";
8059 description { state: "default" 0.0;
8063 part { name: "clipper";
8065 description { state: "default" 0.0;
8066 color: 255 255 255 255;
8069 part { name: "disabler";
8071 description { state: "default" 0.0;
8075 description { state: "disabled" 0.0;
8076 inherit: "default" 0.0;
8082 program { name: "button_click";
8083 signal: "mouse,down,1";
8085 action: SIGNAL_EMIT "elm,action,press" "";
8086 after: "button_click_anim";
8088 program { name: "button_click_anim";
8089 action: STATE_SET "clicked" 0.0;
8090 target: "button_image";
8091 after: "text_clicked";
8093 program { name: "text_clicked";
8097 get_state(PART:"elm.text", st, 30, vl);
8098 if (!strcmp(st, "visible"))
8099 set_state(PART:"elm.text", "clicked", 0.0);
8102 program { name: "button_unpress";
8103 action: SIGNAL_EMIT "elm,action,unpress" "";
8105 program { name: "button_mouseout_clicked";
8106 signal: "mouse,up,1";
8111 get_state(PART:"elm.swallow.content", st, 30, vl);
8112 if (strcmp(st, "icononly"))
8114 emit("elm,action,default,text,set", "");
8115 set_state(PART:"elm.text", "visible", 0.0);
8117 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8118 set_state(PART:"button_image", "default", 0.0);
8120 after: button_unpress;
8122 program { name: "button_unclick3";
8123 signal: "mouse,clicked,1";
8125 action: SIGNAL_EMIT "elm,action,click" "";
8127 program { name: "text_show";
8128 signal: "elm,state,text,visible";
8133 get_state(PART:"elm.swallow.content", st, 30, vl);
8134 if (!strcmp(st, "icononly"))
8136 set_state(PART:"elm.swallow.content", "visible", 0.0);
8137 set_state(PART:"icon_rect", "visible", 0.0);
8138 set_state(PART:"padding_after_icon", "visible", 0.0);
8139 set_state(PART:"bg", "visible", 0.0);
8141 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8142 set_state(PART:"elm.text", "visible", 0.0);
8144 set_state(PART:"elm.text", "disabled_visible", 0.0);
8147 program { name: "text_hide";
8148 signal: "elm,state,text,hidden";
8153 get_state(PART:"elm.swallow.content", st, 30, vl);
8154 if (!strcmp(st, "visible"))
8156 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8157 set_state(PART:"icon_rect", "icononly", 0.0);
8158 set_state(PART:"padding_after_icon", "icononly", 0.0);
8159 set_state(PART:"bg", "icononly", 0.0);
8161 set_state(PART:"elm.text", "default", 0.0);
8164 program { name: "icon_show";
8165 signal: "elm,state,icon,visible";
8170 get_state(PART:"elm.text", st, 30, vl);
8171 if (!strcmp(st, "visible"))
8173 set_state(PART:"elm.swallow.content", "visible", 0.0);
8174 set_state(PART:"icon_rect", "visible", 0.0);
8175 set_state(PART:"padding_after_icon", "visible", 0.0);
8176 set_state(PART:"bg", "visible", 0.0);
8180 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8181 set_state(PART:"icon_rect", "icononly", 0.0);
8182 set_state(PART:"padding_after_icon", "icononly", 0.0);
8183 set_state(PART:"bg", "icononly", 0.0);
8187 program { name: "icon_hide";
8188 signal: "elm,state,icon,hidden";
8190 action: STATE_SET "default" 0.0;
8191 target: "elm.swallow.content";
8192 target: "padding_after_icon";
8193 target: "icon_rect";
8196 program { name: "disable";
8197 signal: "elm,state,disabled";
8199 action: STATE_SET "disabled" 0.0;
8200 target: "button_image";
8202 after: "disable_text";
8204 program { name: "disable_text";
8208 get_state(PART:"elm.text", st, 30, vl);
8209 if (!strcmp(st, "visible"))
8210 set_state(PART:"elm.text", "disabled_visible", 0.0);
8212 set_state(PART:"elm.text", "disabled", 0.0);
8213 set_int(button_state, BUTTON_STATE_DISABLED);
8216 program { name: "enable";
8217 signal: "elm,state,enabled";
8219 action: STATE_SET "default" 0.0;
8220 target: "button_image";
8222 after: "enable_text";
8224 program { name: "enable_text";
8228 get_state(PART:"elm.text", st, 30, vl);
8229 if (!strcmp(st, "disabled_visible"))
8230 set_state(PART:"elm.text", "visible", 0.0);
8232 set_state(PART:"elm.text", "default", 0.0);
8233 set_int(button_state, BUTTON_STATE_ENABLED);
8236 program { name: "focused";
8237 //signal: "elm,action,focus";
8239 action: STATE_SET "focused" 0.0;
8240 target: "button_image";
8243 program { name: "unfocused";
8244 //signal: "elm,action,unfocus";
8246 action: STATE_SET "default" 0.0;
8247 target: "button_image";
8248 after: "unfocus_text";
8250 program { name: "unfocus_text";
8251 action: STATE_SET "visible" 0.0;
8257 ///////////////////////////////////////////////////////////////////////////////////////
8258 group { name: "elm/button/base/expandable_number";
8259 alias: "elm/button/base/text_only/expandable_number";
8261 image: "00_button_05_normal.png" COMP;
8262 image: "00_button_05_press.png" COMP;
8263 image: "00_button_05_dim.png" COMP;
8264 image: "00_arrow_expand.png" COMP;
8265 image: "00_arrow_expand_press.png" COMP;
8266 image: "00_arrow_expand_dim.png" COMP;
8269 public button_state = BUTTON_STATE_ENABLED;
8272 part { name: "button_image";
8275 description { state: "default" 0.0;
8276 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8277 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8279 normal: "00_button_05_normal.png";
8280 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
8284 description { state: "clicked" 0.0;
8285 inherit: "default" 0.0;
8286 image.normal: "00_button_05_press.png";
8288 description { state: "disabled" 0.0;
8289 inherit: "default" 0.0;
8290 image.normal: "00_button_05_dim.png";
8292 description { state: "focused" 0.0;
8293 inherit: "default" 0.0;
8294 image.normal: "00_button_05_press.png";
8298 name: "padding_left_top";
8302 description { state: "default" 0.0;
8304 rel1.relative: 0.0 0.0;
8305 rel2.relative: 0.0 0.0;
8306 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8312 name: "padding_right_bottom";
8316 description { state: "default" 0.0;
8318 rel1.relative: 1.0 1.0;
8319 rel2.relative: 1.0 1.0;
8320 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
8330 description { state: "default" 0.0;
8332 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8333 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8335 rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
8336 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8342 name: "arrow_expand";
8345 description { state: "default" 0.0;
8347 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8348 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
8350 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
8351 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8352 image.normal:"00_arrow_expand.png";
8354 description { state: "clicked" 0.0;
8355 inherit: "default" 0.0;
8356 image.normal:"00_arrow_expand_press.png";
8358 description { state: "disabled" 0.0;
8359 inherit: "default" 0.0;
8360 image.normal:"00_arrow_expand_dim.png";
8363 part { name: "elm.text";
8367 description { state: "default" 0.0;
8369 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8370 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
8372 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8373 rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
8375 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
8377 font: "SLP:style=Medium";
8378 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
8385 description { state: "visible" 0.0;
8386 inherit: "default" 0.0;
8389 description { state: "clicked" 0.0;
8390 inherit: "default" 0.0;
8392 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
8394 description { state: "disabled" 0.0;
8395 inherit: "default" 0.0;
8398 description { state: "disabled_visible" 0.0;
8399 inherit: "default" 0.0;
8400 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
8403 description { state: "focused" 0.0;
8404 inherit: "default" 0.0;
8406 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
8409 part { name: "over2";
8413 ignore_flags: ON_HOLD;
8414 description { state: "default" 0.0;
8418 part { name: "over3";
8422 description { state: "default" 0.0;
8426 part { name: "disabler";
8428 description { state: "default" 0.0;
8432 description { state: "disabled" 0.0;
8433 inherit: "default" 0.0;
8439 program { name: "button_click";
8440 signal: "mouse,down,1";
8442 action: SIGNAL_EMIT "elm,action,press" "";
8443 after: "button_click_anim";
8445 program { name: "button_click_anim";
8446 action: STATE_SET "clicked" 0.0;
8447 target: "button_image";
8448 target: "arrow_expand";
8449 after: "text_clicked";
8451 program { name: "text_clicked";
8455 get_state(PART:"elm.text", st, 30, vl);
8456 if (!strcmp(st, "visible"))
8457 set_state(PART:"elm.text", "clicked", 0.0);
8460 program { name: "button_unpress";
8461 action: SIGNAL_EMIT "elm,action,unpress" "";
8463 program { name: "button_mouseout_clicked";
8464 signal: "mouse,up,1";
8467 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8469 set_state(PART:"button_image", "default", 0.0);
8470 set_state(PART:"elm.text", "visible", 0.0);
8471 set_state(PART:"arrow_expand", "default", 0.0);
8474 after: button_unpress;
8476 program { name: "button_unclick3";
8477 signal: "mouse,clicked,1";
8479 action: SIGNAL_EMIT "elm,action,click" "";
8481 program { name: "text_show";
8482 signal: "elm,state,text,visible";
8485 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8486 set_state(PART:"elm.text", "visible", 0.0);
8488 set_state(PART:"elm.text", "disabled_visible", 0.0);
8491 program { name: "text_hide";
8492 signal: "elm,state,text,hidden";
8495 set_state(PART:"elm.text", "default", 0.0);
8498 program { name: "disable";
8499 signal: "elm,state,disabled";
8501 action: STATE_SET "disabled" 0.0;
8502 target: "button_image";
8504 after: "disable_text";
8506 program { name: "disable_text";
8510 get_state(PART:"elm.text", st, 30, vl);
8511 if (!strcmp(st, "visible"))
8512 set_state(PART:"elm.text", "disabled_visible", 0.0);
8514 set_state(PART:"elm.text", "disabled", 0.0);
8515 set_int(button_state, BUTTON_STATE_DISABLED);
8518 program { name: "enable";
8519 signal: "elm,state,enabled";
8521 action: STATE_SET "default" 0.0;
8522 target: "button_image";
8524 after: "enable_text";
8526 program { name: "enable_text";
8530 get_state(PART:"elm.text", st, 30, vl);
8531 if (!strcmp(st, "disabled_visible"))
8532 set_state(PART:"elm.text", "visible", 0.0);
8534 set_state(PART:"elm.text", "default", 0.0);
8535 set_int(button_state, BUTTON_STATE_ENABLED);
8538 program { name: "focused";
8539 //signal: "elm,action,focus";
8541 action: STATE_SET "focused" 0.0;
8542 target: "button_image";
8545 program { name: "unfocused";
8546 //signal: "elm,action,unfocus";
8548 action: STATE_SET "default" 0.0;
8549 target: "button_image";
8550 after: "unfocus_text";
8552 program { name: "unfocus_text";
8553 action: STATE_SET "visible" 0.0;
8559 #undef BUTTON_STATE_ENABLED
8560 #undef BUTTON_STATE_DISABLED