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/picker_left";
3557 image: "00_color_picker_btn_left.png" COMP;
3558 image: "00_color_picker_btn_left_press.png" COMP;
3559 image: "00_color_picker_btn_left_dim.png" COMP;
3562 public button_state = BUTTON_STATE_ENABLED;
3565 part { name: "button_image";
3568 description { state: "default" 0.0;
3571 normal: "00_color_picker_btn_left.png";
3572 border: COLORSELECTOR_BUTTON_BORDER;
3576 description { state: "clicked" 0.0;
3577 inherit: "default" 0.0;
3578 image.normal: "00_color_picker_btn_left_press.png";
3580 description { state: "disabled" 0.0;
3581 inherit: "default" 0.0;
3582 image.normal: "00_color_picker_btn_left_dim.png";
3584 description { state: "focused" 0.0;
3585 inherit: "default" 0.0;
3586 image.normal: "00_color_picker_btn_left_press.png";
3590 name: "padding_left_top";
3594 description { state: "default" 0.0;
3596 rel1.relative: 0.0 0.0;
3597 rel2.relative: 0.0 0.0;
3604 name: "padding_right_bottom";
3608 description { state: "default" 0.0;
3610 rel1.relative: 1.0 1.0;
3611 rel2.relative: 1.0 1.0;
3618 name: "padding_icon_text";
3622 description { state: "default" 0.0; //when only icon or no icon is there
3624 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3625 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3630 description { state: "icononly" 0.0;
3631 inherit: "default" 0.0;
3633 description { state: "visible" 0.0; //when icon is visible
3635 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3636 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3642 part { name: "elm.swallow.content";
3645 description { state: "default" 0.0;
3648 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3649 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3652 description { state: "visible" 0.0;
3656 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3657 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3659 aspect_preference: VERTICAL;
3661 description { state: "icononly" 0.0;
3664 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
3665 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
3668 aspect_preference: VERTICAL;
3671 part { name: "elm.text";
3675 description { state: "default" 0.0;
3677 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3678 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
3680 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3682 font: "SLP:style=Medium";
3688 description { state: "visible" 0.0;
3689 inherit: "default" 0.0;
3693 description { state: "clicked" 0.0;
3694 inherit: "default" 0.0;
3697 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3699 description { state: "disabled" 0.0;
3700 inherit: "default" 0.0;
3701 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3703 description { state: "disabled_visible" 0.0;
3704 inherit: "default" 0.0;
3705 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3709 description { state: "focused" 0.0;
3710 inherit: "default" 0.0;
3713 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
3716 part { name: "over2";
3720 ignore_flags: ON_HOLD;
3721 description { state: "default" 0.0;
3725 part { name: "over3";
3729 description { state: "default" 0.0;
3733 part { name: "disabler";
3735 description { state: "default" 0.0;
3739 description { state: "disabled" 0.0;
3740 inherit: "default" 0.0;
3746 program { name: "button_click";
3747 signal: "mouse,down,1";
3749 action: SIGNAL_EMIT "elm,action,press" "";
3750 after: "button_click_anim";
3752 program { name: "button_click_anim";
3753 action: STATE_SET "clicked" 0.0;
3754 target: "button_image";
3755 after: "text_clicked";
3757 program { name: "text_clicked";
3761 get_state(PART:"elm.text", st, 30, vl);
3762 if (!strcmp(st, "visible"))
3763 set_state(PART:"elm.text", "clicked", 0.0);
3766 program { name: "button_unpress";
3767 action: SIGNAL_EMIT "elm,action,unpress" "";
3769 program { name: "button_mouseout_clicked";
3770 signal: "mouse,up,1";
3775 get_state(PART:"elm.swallow.content", st, 30, vl);
3776 if (strcmp(st, "icononly"))
3778 emit("elm,action,default,text,set", "");
3779 set_state(PART:"elm.text", "visible", 0.0);
3781 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3782 set_state(PART:"button_image", "default", 0.0);
3784 after: button_unpress;
3786 program { name: "button_unclick3";
3787 signal: "mouse,clicked,1";
3789 action: SIGNAL_EMIT "elm,action,click" "";
3791 program { name: "text_show";
3792 signal: "elm,state,text,visible";
3797 get_state(PART:"elm.swallow.content", st, 30, vl);
3798 if (!strcmp(st, "icononly"))
3800 set_state(PART:"elm.swallow.content", "visible", 0.0);
3801 set_state(PART:"padding_icon_text", "visible", 0.0);
3803 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3804 set_state(PART:"elm.text", "visible", 0.0);
3806 set_state(PART:"elm.text", "disabled_visible", 0.0);
3809 program { name: "text_hide";
3810 signal: "elm,state,text,hidden";
3815 get_state(PART:"elm.swallow.content", st, 30, vl);
3816 if (!strcmp(st, "visible"))
3818 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3819 set_state(PART:"padding_icon_text", "icononly", 0.0);
3821 set_state(PART:"elm.text", "default", 0.0);
3824 program { name: "icon_show";
3825 signal: "elm,state,icon,visible";
3830 get_state(PART:"elm.text", st, 30, vl);
3831 if (!strcmp(st, "visible"))
3833 set_state(PART:"elm.swallow.content", "visible", 0.0);
3834 set_state(PART:"padding_icon_text", "visible", 0.0);
3838 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3839 set_state(PART:"padding_icon_text", "icononly", 0.0);
3843 program { name: "icon_hide";
3844 signal: "elm,state,icon,hidden";
3846 action: STATE_SET "default" 0.0;
3847 target: "elm.swallow.content";
3848 target: "padding_icon_text";
3850 program { name: "disable";
3851 signal: "elm,state,disabled";
3853 action: STATE_SET "disabled" 0.0;
3854 target: "button_image";
3856 after: "disable_text";
3858 program { name: "disable_text";
3862 get_state(PART:"elm.text", st, 30, vl);
3863 if (!strcmp(st, "visible"))
3864 set_state(PART:"elm.text", "disabled_visible", 0.0);
3866 set_state(PART:"elm.text", "disabled", 0.0);
3867 set_int(button_state, BUTTON_STATE_DISABLED);
3870 program { name: "enable";
3871 signal: "elm,state,enabled";
3873 action: STATE_SET "default" 0.0;
3874 target: "button_image";
3876 after: "enable_text";
3878 program { name: "enable_text";
3882 get_state(PART:"elm.text", st, 30, vl);
3883 if (!strcmp(st, "disabled_visible"))
3884 set_state(PART:"elm.text", "visible", 0.0);
3886 set_state(PART:"elm.text", "default", 0.0);
3887 set_int(button_state, BUTTON_STATE_ENABLED);
3890 program { name: "focused";
3891 //signal: "elm,action,focus";
3893 action: STATE_SET "focused" 0.0;
3894 target: "button_image";
3897 program { name: "unfocused";
3898 //signal: "elm,action,unfocus";
3900 action: STATE_SET "default" 0.0;
3901 target: "button_image";
3902 after: "unfocus_text";
3904 program { name: "unfocus_text";
3905 action: STATE_SET "visible" 0.0;
3911 ///////////////////////////////////////////////////////////////////////////////////////
3912 group { name: "elm/button/base/picker_right";
3914 image: "00_color_picker_btn_right.png" COMP;
3915 image: "00_color_picker_btn_right_press.png" COMP;
3916 image: "00_color_picker_btn_right_dim.png" COMP;
3919 public button_state = BUTTON_STATE_ENABLED;
3922 part { name: "button_image";
3925 description { state: "default" 0.0;
3928 normal: "00_color_picker_btn_right.png";
3929 border: COLORSELECTOR_BUTTON_BORDER;
3933 description { state: "clicked" 0.0;
3934 inherit: "default" 0.0;
3935 image.normal: "00_color_picker_btn_right_press.png";
3937 description { state: "disabled" 0.0;
3938 inherit: "default" 0.0;
3939 image.normal: "00_color_picker_btn_right_dim.png";
3941 description { state: "focused" 0.0;
3942 inherit: "default" 0.0;
3943 image.normal: "00_color_picker_btn_right_press.png";
3947 name: "padding_left_top";
3951 description { state: "default" 0.0;
3953 rel1.relative: 0.0 0.0;
3954 rel2.relative: 0.0 0.0;
3961 name: "padding_right_bottom";
3965 description { state: "default" 0.0;
3967 rel1.relative: 1.0 1.0;
3968 rel2.relative: 1.0 1.0;
3975 name: "padding_icon_text";
3979 description { state: "default" 0.0; //when only icon or no icon is there
3981 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3982 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3987 description { state: "icononly" 0.0;
3988 inherit: "default" 0.0;
3990 description { state: "visible" 0.0; //when icon is visible
3992 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3993 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3999 part { name: "elm.swallow.content";
4002 description { state: "default" 0.0;
4005 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4006 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4009 description { state: "visible" 0.0;
4013 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4014 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4016 aspect_preference: VERTICAL;
4018 description { state: "icononly" 0.0;
4021 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
4022 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
4025 aspect_preference: VERTICAL;
4028 part { name: "elm.text";
4032 description { state: "default" 0.0;
4034 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4035 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
4037 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4039 font: "SLP:style=Medium";
4045 description { state: "visible" 0.0;
4046 inherit: "default" 0.0;
4050 description { state: "clicked" 0.0;
4051 inherit: "default" 0.0;
4054 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4056 description { state: "disabled" 0.0;
4057 inherit: "default" 0.0;
4058 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4060 description { state: "disabled_visible" 0.0;
4061 inherit: "default" 0.0;
4062 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4066 description { state: "focused" 0.0;
4067 inherit: "default" 0.0;
4070 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
4073 part { name: "over2";
4077 ignore_flags: ON_HOLD;
4078 description { state: "default" 0.0;
4082 part { name: "over3";
4086 description { state: "default" 0.0;
4090 part { name: "disabler";
4092 description { state: "default" 0.0;
4096 description { state: "disabled" 0.0;
4097 inherit: "default" 0.0;
4103 program { name: "button_click";
4104 signal: "mouse,down,1";
4106 action: SIGNAL_EMIT "elm,action,press" "";
4107 after: "button_click_anim";
4109 program { name: "button_click_anim";
4110 action: STATE_SET "clicked" 0.0;
4111 target: "button_image";
4112 after: "text_clicked";
4114 program { name: "text_clicked";
4118 get_state(PART:"elm.text", st, 30, vl);
4119 if (!strcmp(st, "visible"))
4120 set_state(PART:"elm.text", "clicked", 0.0);
4123 program { name: "button_unpress";
4124 action: SIGNAL_EMIT "elm,action,unpress" "";
4126 program { name: "button_mouseout_clicked";
4127 signal: "mouse,up,1";
4132 get_state(PART:"elm.swallow.content", st, 30, vl);
4133 if (strcmp(st, "icononly"))
4135 emit("elm,action,default,text,set", "");
4136 set_state(PART:"elm.text", "visible", 0.0);
4138 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4139 set_state(PART:"button_image", "default", 0.0);
4141 after: button_unpress;
4143 program { name: "button_unclick3";
4144 signal: "mouse,clicked,1";
4146 action: SIGNAL_EMIT "elm,action,click" "";
4148 program { name: "text_show";
4149 signal: "elm,state,text,visible";
4154 get_state(PART:"elm.swallow.content", st, 30, vl);
4155 if (!strcmp(st, "icononly"))
4157 set_state(PART:"elm.swallow.content", "visible", 0.0);
4158 set_state(PART:"padding_icon_text", "visible", 0.0);
4160 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4161 set_state(PART:"elm.text", "visible", 0.0);
4163 set_state(PART:"elm.text", "disabled_visible", 0.0);
4166 program { name: "text_hide";
4167 signal: "elm,state,text,hidden";
4172 get_state(PART:"elm.swallow.content", st, 30, vl);
4173 if (!strcmp(st, "visible"))
4175 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4176 set_state(PART:"padding_icon_text", "icononly", 0.0);
4178 set_state(PART:"elm.text", "default", 0.0);
4181 program { name: "icon_show";
4182 signal: "elm,state,icon,visible";
4187 get_state(PART:"elm.text", st, 30, vl);
4188 if (!strcmp(st, "visible"))
4190 set_state(PART:"elm.swallow.content", "visible", 0.0);
4191 set_state(PART:"padding_icon_text", "visible", 0.0);
4195 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4196 set_state(PART:"padding_icon_text", "icononly", 0.0);
4200 program { name: "icon_hide";
4201 signal: "elm,state,icon,hidden";
4203 action: STATE_SET "default" 0.0;
4204 target: "elm.swallow.content";
4205 target: "padding_icon_text";
4207 program { name: "disable";
4208 signal: "elm,state,disabled";
4210 action: STATE_SET "disabled" 0.0;
4211 target: "button_image";
4213 after: "disable_text";
4215 program { name: "disable_text";
4219 get_state(PART:"elm.text", st, 30, vl);
4220 if (!strcmp(st, "visible"))
4221 set_state(PART:"elm.text", "disabled_visible", 0.0);
4223 set_state(PART:"elm.text", "disabled", 0.0);
4224 set_int(button_state, BUTTON_STATE_DISABLED);
4227 program { name: "enable";
4228 signal: "elm,state,enabled";
4230 action: STATE_SET "default" 0.0;
4231 target: "button_image";
4233 after: "enable_text";
4235 program { name: "enable_text";
4239 get_state(PART:"elm.text", st, 30, vl);
4240 if (!strcmp(st, "disabled_visible"))
4241 set_state(PART:"elm.text", "visible", 0.0);
4243 set_state(PART:"elm.text", "default", 0.0);
4244 set_int(button_state, BUTTON_STATE_ENABLED);
4247 program { name: "focused";
4248 //signal: "elm,action,focus";
4250 action: STATE_SET "focused" 0.0;
4251 target: "button_image";
4254 program { name: "unfocused";
4255 //signal: "elm,action,unfocus";
4257 action: STATE_SET "default" 0.0;
4258 target: "button_image";
4259 after: "unfocus_text";
4261 program { name: "unfocus_text";
4262 action: STATE_SET "visible" 0.0;
4268 ///////////////////////////////////////////////////////////////////////////////////////
4269 group { name: "elm/button/base/hidden";
4271 image: "00_button_sweep.png" COMP;
4272 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4275 public button_state = BUTTON_STATE_ENABLED;
4278 part { name: "button_image";
4281 description { state: "default" 0.0;
4282 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4284 normal: "00_button_sweep.png";
4285 border: BUTTON_HIDDEN_BG_BORDER_INC;
4289 description { state: "clicked" 0.0;
4290 inherit: "default" 0.0;
4291 image.normal: "00_button_sweep_press.png";
4293 description { state: "disabled" 0.0;
4294 inherit: "default" 0.0;
4296 description { state: "focused" 0.0;
4297 inherit: "default" 0.0;
4298 image.normal: "00_button_sweep_press.png";
4302 name: "padding_left_top";
4306 description { state: "default" 0.0;
4308 rel1.relative: 0.0 0.0;
4309 rel2.relative: 0.0 0.0;
4310 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4316 name: "padding_right_bottom";
4320 description { state: "default" 0.0;
4322 rel1.relative: 1.0 1.0;
4323 rel2.relative: 1.0 1.0;
4324 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4334 description { state: "default" 0.0;
4336 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4338 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
4339 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
4345 name: "padding_icon_text";
4349 description { state: "default" 0.0; //when only icon or no icon is there
4351 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4352 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4357 description { state: "icononly" 0.0;
4358 inherit: "default" 0.0;
4360 description { state: "visible" 0.0; //when icon is visible
4362 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4363 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4365 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4369 part { name: "elm.swallow.content";
4372 description { state: "default" 0.0;
4375 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4376 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4379 description { state: "visible" 0.0;
4383 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4384 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4386 aspect_preference: VERTICAL;
4388 description { state: "icononly" 0.0;
4390 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4391 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4392 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4395 aspect_preference: VERTICAL;
4398 part { name: "elm.text";
4402 description { state: "default" 0.0;
4404 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4405 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
4407 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4409 font: "SLP:style=Medium";
4410 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4415 description { state: "visible" 0.0;
4416 inherit: "default" 0.0;
4418 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4420 description { state: "clicked" 0.0;
4421 inherit: "default" 0.0;
4424 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4426 description { state: "disabled" 0.0;
4427 inherit: "default" 0.0;
4430 description { state: "disabled_visible" 0.0;
4431 inherit: "default" 0.0;
4432 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4434 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4436 description { state: "focused" 0.0;
4437 inherit: "default" 0.0;
4440 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4443 part { name: "over2";
4447 ignore_flags: ON_HOLD;
4448 description { state: "default" 0.0;
4452 part { name: "over3";
4456 description { state: "default" 0.0;
4460 part { name: "disabler";
4462 description { state: "default" 0.0;
4466 description { state: "disabled" 0.0;
4467 inherit: "default" 0.0;
4473 program { name: "button_click";
4474 signal: "mouse,down,1";
4476 action: SIGNAL_EMIT "elm,action,press" "";
4477 after: "button_click_anim";
4479 program { name: "button_click_anim";
4480 action: STATE_SET "clicked" 0.0;
4481 target: "button_image";
4482 after: "text_clicked";
4484 program { name: "text_clicked";
4488 get_state(PART:"elm.text", st, 30, vl);
4489 if (!strcmp(st, "visible"))
4490 set_state(PART:"elm.text", "clicked", 0.0);
4493 program { name: "button_unpress";
4494 action: SIGNAL_EMIT "elm,action,unpress" "";
4496 program { name: "button_mouseout_clicked";
4497 signal: "mouse,up,1";
4502 get_state(PART:"elm.swallow.content", st, 30, vl);
4503 if (strcmp(st, "icononly"))
4505 emit("elm,action,default,text,set", "");
4506 set_state(PART:"elm.text", "visible", 0.0);
4508 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4509 set_state(PART:"button_image", "default", 0.0);
4511 after: button_unpress;
4513 program { name: "button_unclick3";
4514 signal: "mouse,clicked,1";
4516 action: SIGNAL_EMIT "elm,action,click" "";
4518 program { name: "text_show";
4519 signal: "elm,state,text,visible";
4524 get_state(PART:"elm.swallow.content", st, 30, vl);
4525 if (!strcmp(st, "icononly"))
4527 set_state(PART:"elm.swallow.content", "visible", 0.0);
4528 set_state(PART:"padding_icon_text", "visible", 0.0);
4530 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4531 set_state(PART:"elm.text", "visible", 0.0);
4533 set_state(PART:"elm.text", "disabled_visible", 0.0);
4536 program { name: "text_hide";
4537 signal: "elm,state,text,hidden";
4542 get_state(PART:"elm.swallow.content", st, 30, vl);
4543 if (!strcmp(st, "visible"))
4545 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4546 set_state(PART:"padding_icon_text", "icononly", 0.0);
4548 set_state(PART:"elm.text", "default", 0.0);
4551 program { name: "icon_show";
4552 signal: "elm,state,icon,visible";
4557 get_state(PART:"elm.text", st, 30, vl);
4558 if (!strcmp(st, "visible"))
4560 set_state(PART:"elm.swallow.content", "visible", 0.0);
4561 set_state(PART:"padding_icon_text", "visible", 0.0);
4565 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4566 set_state(PART:"padding_icon_text", "icononly", 0.0);
4570 program { name: "icon_hide";
4571 signal: "elm,state,icon,hidden";
4573 action: STATE_SET "default" 0.0;
4574 target: "elm.swallow.content";
4575 target: "padding_icon_text";
4577 program { name: "disable";
4578 signal: "elm,state,disabled";
4580 action: STATE_SET "disabled" 0.0;
4581 target: "button_image";
4583 after: "disable_text";
4585 program { name: "disable_text";
4589 get_state(PART:"elm.text", st, 30, vl);
4590 if (!strcmp(st, "visible"))
4591 set_state(PART:"elm.text", "disabled_visible", 0.0);
4593 set_state(PART:"elm.text", "disabled", 0.0);
4594 set_int(button_state, BUTTON_STATE_DISABLED);
4597 program { name: "enable";
4598 signal: "elm,state,enabled";
4600 action: STATE_SET "default" 0.0;
4601 target: "button_image";
4603 after: "enable_text";
4605 program { name: "enable_text";
4609 get_state(PART:"elm.text", st, 30, vl);
4610 if (!strcmp(st, "disabled_visible"))
4611 set_state(PART:"elm.text", "visible", 0.0);
4613 set_state(PART:"elm.text", "default", 0.0);
4614 set_int(button_state, BUTTON_STATE_ENABLED);
4617 program { name: "focused";
4618 //signal: "elm,action,focus";
4620 action: STATE_SET "focused" 0.0;
4621 target: "button_image";
4624 program { name: "unfocused";
4625 //signal: "elm,action,unfocus";
4627 action: STATE_SET "default" 0.0;
4628 target: "button_image";
4629 after: "unfocus_text";
4631 program { name: "unfocus_text";
4632 action: STATE_SET "visible" 0.0;
4638 ///////////////////////////////////////////////////////////////////////////////////////
4639 group { name: "elm/button/base/picker/bar/default";
4641 image: "00_picker_btn_normal.png" COMP;
4642 image: "00_picker_btn_press.png" COMP;
4645 public button_state = BUTTON_STATE_ENABLED;
4648 part { name: "button_image";
4650 description { state: "default" 0.0;
4651 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4653 normal: "00_picker_btn_normal.png";
4654 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4658 description { state: "clicked" 0.0;
4659 inherit: "default" 0.0;
4661 normal: "00_picker_btn_press.png";
4664 description { state: "disabled" 0.0;
4665 inherit: "default" 0.0;
4667 description { state: "focused" 0.0;
4668 inherit: "default" 0.0;
4670 normal: "00_picker_btn_press.png";
4674 part { name: "padding_left_top";
4678 description { state: "default" 0.0;
4683 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4688 part { name: "padding_right_bottom";
4692 description { state: "default" 0.0;
4697 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4702 part { name: "icon_rect";
4706 description { state: "default" 0.0;
4707 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
4711 to_x: "elm.swallow.content";
4712 to_y: "padding_left_top";
4716 to_x: "elm.swallow.content";
4717 to_y: "padding_right_bottom";
4723 part { name: "padding_icon_text";
4727 description { state: "default" 0.0; //when only icon or no icon is there
4740 description { state: "icononly" 0.0;
4741 inherit: "default" 0.0;
4743 description { state: "visible" 0.0; //when icon is visible
4753 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4757 part { name: "elm.swallow.content";
4761 description { state: "default" 0.0;
4766 to: "padding_left_top";
4770 to_x: "padding_left_top";
4771 to_y: "padding_right_bottom";
4775 description { state: "visible" 0.0;
4780 to: "padding_left_top";
4784 to_x: "padding_left_top";
4785 to_y: "padding_right_bottom";
4788 aspect_preference: VERTICAL;
4790 description { state: "icononly" 0.0;
4791 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4794 to: "padding_left_top";
4798 to_x: "padding_left_top";
4799 to_y: "padding_right_bottom";
4802 aspect_preference: VERTICAL;
4805 part { name: "elm.text";
4810 description { state: "default" 0.0;
4814 to_x: "padding_icon_text";
4815 to_y: "padding_left_top";
4819 to: "padding_right_bottom";
4821 color: 78 73 69 255;
4823 font: "SLP:style=Medium";
4824 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4829 description { state: "visible" 0.0;
4830 inherit: "default" 0.0;
4832 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4834 description { state: "clicked" 0.0;
4835 inherit: "default" 0.0;
4838 color: 255 255 255 255;
4840 description { state: "disabled" 0.0;
4841 inherit: "default" 0.0;
4844 description { state: "disabled_visible" 0.0;
4845 inherit: "default" 0.0;
4848 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4850 description { state: "focused" 0.0;
4851 inherit: "default" 0.0;
4854 color: 255 255 255 255;
4857 part { name: "over2";
4860 ignore_flags: ON_HOLD;
4861 description { state: "default" 0.0;
4865 part { name: "over3";
4868 description { state: "default" 0.0;
4872 part { name: "clipper";
4874 description { state: "default" 0.0;
4875 color: 255 255 255 255;
4878 part { name: "disabler";
4880 description { state: "default" 0.0;
4884 description { state: "disabled" 0.0;
4885 inherit: "default" 0.0;
4891 program { name: "button_click";
4892 signal: "mouse,down,1";
4894 action: SIGNAL_EMIT "elm,action,press" "";
4895 after: "button_click_anim";
4897 program { name: "button_click_anim";
4898 action: STATE_SET "clicked" 0.0;
4899 target: "button_image";
4900 after: "text_clicked";
4902 program { name: "text_clicked";
4906 get_state(PART:"elm.text", st, 30, vl);
4907 if (!strcmp(st, "visible"))
4908 set_state(PART:"elm.text", "clicked", 0.0);
4911 program { name: "button_unpress";
4912 action: SIGNAL_EMIT "elm,action,unpress" "";
4914 program { name: "button_mouseout_clicked";
4915 signal: "mouse,up,1";
4920 get_state(PART:"elm.swallow.content", st, 30, vl);
4921 if (strcmp(st, "icononly"))
4923 emit("elm,action,default,text,set", "");
4924 set_state(PART:"elm.text", "visible", 0.0);
4926 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4927 set_state(PART:"button_image", "default", 0.0);
4929 after: button_unpress;
4931 program { name: "button_unclick3";
4932 signal: "mouse,clicked,1";
4934 action: SIGNAL_EMIT "elm,action,click" "";
4936 program { name: "text_show";
4937 signal: "elm,state,text,visible";
4942 get_state(PART:"elm.swallow.content", st, 30, vl);
4943 if (!strcmp(st, "icononly"))
4945 set_state(PART:"elm.swallow.content", "visible", 0.0);
4946 set_state(PART:"padding_icon_text", "visible", 0.0);
4948 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4949 set_state(PART:"elm.text", "visible", 0.0);
4951 set_state(PART:"elm.text", "disabled_visible", 0.0);
4954 program { name: "text_hide";
4955 signal: "elm,state,text,hidden";
4960 get_state(PART:"elm.swallow.content", st, 30, vl);
4961 if (!strcmp(st, "visible"))
4963 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4964 set_state(PART:"padding_icon_text", "icononly", 0.0);
4966 set_state(PART:"elm.text", "default", 0.0);
4969 program { name: "icon_show";
4970 signal: "elm,state,icon,visible";
4975 get_state(PART:"elm.text", st, 30, vl);
4976 if (!strcmp(st, "visible"))
4978 set_state(PART:"elm.swallow.content", "visible", 0.0);
4979 set_state(PART:"padding_icon_text", "visible", 0.0);
4983 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4984 set_state(PART:"padding_icon_text", "icononly", 0.0);
4988 program { name: "icon_hide";
4989 signal: "elm,state,icon,hidden";
4991 action: STATE_SET "default" 0.0;
4992 target: "elm.swallow.content";
4993 target: "padding_icon_text";
4995 program { name: "disable";
4996 signal: "elm,state,disabled";
4998 action: STATE_SET "disabled" 0.0;
4999 target: "button_image";
5001 after: "disable_text";
5003 program { name: "disable_text";
5007 get_state(PART:"elm.text", st, 30, vl);
5008 if (!strcmp(st, "visible"))
5009 set_state(PART:"elm.text", "disabled_visible", 0.0);
5011 set_state(PART:"elm.text", "disabled", 0.0);
5012 set_int(button_state, BUTTON_STATE_DISABLED);
5015 program { name: "enable";
5016 signal: "elm,state,enabled";
5018 action: STATE_SET "default" 0.0;
5019 target: "button_image";
5021 after: "enable_text";
5023 program { name: "enable_text";
5027 get_state(PART:"elm.text", st, 30, vl);
5028 if (!strcmp(st, "disabled_visible"))
5029 set_state(PART:"elm.text", "visible", 0.0);
5031 set_state(PART:"elm.text", "default", 0.0);
5032 set_int(button_state, BUTTON_STATE_ENABLED);
5035 program { name: "focused";
5036 //signal: "elm,action,focus";
5038 action: STATE_SET "focused" 0.0;
5039 target: "button_image";
5042 program { name: "unfocused";
5043 //signal: "elm,action,unfocus";
5045 action: STATE_SET "default" 0.0;
5046 target: "button_image";
5047 after: "unfocus_text";
5049 program { name: "unfocus_text";
5050 action: STATE_SET "visible" 0.0;
5056 ///////////////////////////////////////////////////////////////////////////////////////
5057 group { name: "elm/button/base/picker/prev/text/default";
5058 alias: "elm/button/base/picker/next/text/default";
5060 image: "00_picker_btn_normal.png" COMP;
5061 image: "00_picker_btn_press.png" COMP;
5064 public button_state = BUTTON_STATE_ENABLED;
5067 part { name: "button_image";
5069 description { state: "default" 0.0;
5070 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
5072 normal: "00_picker_btn_normal.png";
5073 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
5077 description { state: "clicked" 0.0;
5078 inherit: "default" 0.0;
5080 normal: "00_picker_btn_press.png";
5083 description { state: "disabled" 0.0;
5084 inherit: "default" 0.0;
5086 description { state: "focused" 0.0;
5087 inherit: "default" 0.0;
5089 normal: "00_picker_btn_press.png";
5093 part { name: "padding_left_top";
5097 description { state: "default" 0.0;
5102 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5107 part { name: "padding_right_bottom";
5111 description { state: "default" 0.0;
5116 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5121 part { name: "icon_rect";
5125 description { state: "default" 0.0;
5126 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5130 to_x: "elm.swallow.content";
5131 to_y: "padding_left_top";
5135 to_x: "elm.swallow.content";
5136 to_y: "padding_right_bottom";
5142 part { name: "padding_icon_text";
5146 description { state: "default" 0.0; //when only icon or no icon is there
5159 description { state: "icononly" 0.0;
5160 inherit: "default" 0.0;
5162 description { state: "visible" 0.0; //when icon is visible
5172 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5176 part { name: "elm.swallow.content";
5180 description { state: "default" 0.0;
5185 to: "padding_left_top";
5189 to_x: "padding_left_top";
5190 to_y: "padding_right_bottom";
5194 description { state: "visible" 0.0;
5199 to: "padding_left_top";
5203 to_x: "padding_left_top";
5204 to_y: "padding_right_bottom";
5207 aspect_preference: VERTICAL;
5209 description { state: "icononly" 0.0;
5210 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5213 to: "padding_left_top";
5217 to_x: "padding_left_top";
5218 to_y: "padding_right_bottom";
5221 aspect_preference: VERTICAL;
5224 part { name: "elm.text";
5229 description { state: "default" 0.0;
5233 to_x: "padding_icon_text";
5234 to_y: "padding_left_top";
5238 to: "padding_right_bottom";
5240 color: 78 73 69 255;
5242 font: "SLP:style=Medium";
5243 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5248 description { state: "visible" 0.0;
5249 inherit: "default" 0.0;
5251 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5253 description { state: "clicked" 0.0;
5254 inherit: "default" 0.0;
5257 color: 255 255 255 255;
5259 description { state: "disabled" 0.0;
5260 inherit: "default" 0.0;
5263 description { state: "disabled_visible" 0.0;
5264 inherit: "default" 0.0;
5267 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5269 description { state: "focused" 0.0;
5270 inherit: "default" 0.0;
5273 color: 255 255 255 255;
5276 part { name: "over2";
5279 ignore_flags: ON_HOLD;
5280 description { state: "default" 0.0;
5284 part { name: "over3";
5287 description { state: "default" 0.0;
5291 part { name: "clipper";
5293 description { state: "default" 0.0;
5294 color: 255 255 255 255;
5297 part { name: "disabler";
5299 description { state: "default" 0.0;
5303 description { state: "disabled" 0.0;
5304 inherit: "default" 0.0;
5310 program { name: "button_click";
5311 signal: "mouse,down,1";
5313 action: SIGNAL_EMIT "elm,action,press" "";
5314 after: "button_click_anim";
5316 program { name: "button_click_anim";
5317 action: STATE_SET "clicked" 0.0;
5318 target: "button_image";
5319 after: "text_clicked";
5321 program { name: "text_clicked";
5325 get_state(PART:"elm.text", st, 30, vl);
5326 if (!strcmp(st, "visible"))
5327 set_state(PART:"elm.text", "clicked", 0.0);
5330 program { name: "button_unpress";
5331 action: SIGNAL_EMIT "elm,action,unpress" "";
5333 program { name: "button_mouseout_clicked";
5334 signal: "mouse,up,1";
5339 get_state(PART:"elm.swallow.content", st, 30, vl);
5340 if (strcmp(st, "icononly"))
5342 emit("elm,action,default,text,set", "");
5343 set_state(PART:"elm.text", "visible", 0.0);
5345 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5346 set_state(PART:"button_image", "default", 0.0);
5348 after: button_unpress;
5350 program { name: "button_unclick3";
5351 signal: "mouse,clicked,1";
5353 action: SIGNAL_EMIT "elm,action,click" "";
5355 program { name: "text_show";
5356 signal: "elm,state,text,visible";
5361 get_state(PART:"elm.swallow.content", st, 30, vl);
5362 if (!strcmp(st, "icononly"))
5364 set_state(PART:"elm.swallow.content", "visible", 0.0);
5365 set_state(PART:"padding_icon_text", "visible", 0.0);
5367 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5368 set_state(PART:"elm.text", "visible", 0.0);
5370 set_state(PART:"elm.text", "disabled_visible", 0.0);
5373 program { name: "text_hide";
5374 signal: "elm,state,text,hidden";
5379 get_state(PART:"elm.swallow.content", st, 30, vl);
5380 if (!strcmp(st, "visible"))
5382 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5383 set_state(PART:"padding_icon_text", "icononly", 0.0);
5385 set_state(PART:"elm.text", "default", 0.0);
5388 program { name: "icon_show";
5389 signal: "elm,state,icon,visible";
5394 get_state(PART:"elm.text", st, 30, vl);
5395 if (!strcmp(st, "visible"))
5397 set_state(PART:"elm.swallow.content", "visible", 0.0);
5398 set_state(PART:"padding_icon_text", "visible", 0.0);
5402 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5403 set_state(PART:"padding_icon_text", "icononly", 0.0);
5407 program { name: "icon_hide";
5408 signal: "elm,state,icon,hidden";
5410 action: STATE_SET "default" 0.0;
5411 target: "elm.swallow.content";
5412 target: "padding_icon_text";
5414 program { name: "disable";
5415 signal: "elm,state,disabled";
5417 action: STATE_SET "disabled" 0.0;
5418 target: "button_image";
5420 after: "disable_text";
5422 program { name: "disable_text";
5426 get_state(PART:"elm.text", st, 30, vl);
5427 if (!strcmp(st, "visible"))
5428 set_state(PART:"elm.text", "disabled_visible", 0.0);
5430 set_state(PART:"elm.text", "disabled", 0.0);
5431 set_int(button_state, BUTTON_STATE_DISABLED);
5434 program { name: "enable";
5435 signal: "elm,state,enabled";
5437 action: STATE_SET "default" 0.0;
5438 target: "button_image";
5440 after: "enable_text";
5442 program { name: "enable_text";
5446 get_state(PART:"elm.text", st, 30, vl);
5447 if (!strcmp(st, "disabled_visible"))
5448 set_state(PART:"elm.text", "visible", 0.0);
5450 set_state(PART:"elm.text", "default", 0.0);
5451 set_int(button_state, BUTTON_STATE_ENABLED);
5454 program { name: "focused";
5455 //signal: "elm,action,focus";
5457 action: STATE_SET "focused" 0.0;
5458 target: "button_image";
5461 program { name: "unfocused";
5462 //signal: "elm,action,unfocus";
5464 action: STATE_SET "default" 0.0;
5465 target: "button_image";
5466 after: "unfocus_text";
5468 program { name: "unfocus_text";
5469 action: STATE_SET "visible" 0.0;
5475 ///////////////////////////////////////////////////////////////////////////////////////
5476 group { name: "elm/button/base/contact";
5477 alias: "elm/button/base/text_only/contact";
5479 public button_state = BUTTON_STATE_ENABLED;
5482 part { name: "button_image";
5486 description { state: "default" 0.0;
5487 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
5488 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
5489 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5490 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5492 description { state: "clicked" 0.0;
5493 inherit: "default" 0.0;
5494 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5496 description { state: "disabled" 0.0;
5497 inherit: "default" 0.0;
5499 description { state: "focused" 0.0;
5500 inherit: "default" 0.0;
5503 part { name: "padding.left";
5506 description { state: "default" 0.0;
5508 min: BUTTON_CONTACT_PADDING_MIN_INC;
5512 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
5516 part { name: "padding.right";
5519 description { state: "default" 0.0;
5521 min: BUTTON_CONTACT_PADDING_MIN_INC;
5524 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
5525 rel2.relative: 1.0 1.0;
5529 part { name: "elm.text";
5533 description { state: "default" 0.0;
5537 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5539 font: "SLP:style=Medium";
5540 size: BUTTON_CONTACT_FONT_SIZE_INC;
5545 description { state: "visible" 0.0;
5546 inherit: "default" 0.0;
5550 description { state: "clicked" 0.0;
5551 inherit: "default" 0.0;
5554 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5556 description { state: "disabled" 0.0;
5557 inherit: "default" 0.0;
5560 description { state: "disabled_visible" 0.0;
5561 inherit: "default" 0.0;
5562 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5566 description { state: "focused" 0.0;
5567 inherit: "default" 0.0;
5570 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5573 part { name: "over1";
5575 description { state: "default" 0.0;
5576 rel2.relative: 1.0 0.5;
5579 part { name: "over2";
5582 ignore_flags: ON_HOLD;
5583 description { state: "default" 0.0;
5584 rel1.to: "button_image";
5585 rel2.to: "button_image";
5588 part { name: "over3";
5591 description { state: "default" 0.0;
5592 rel1.to: "button_image";
5593 rel2.to: "button_image";
5597 part { name: "disabler";
5599 description { state: "default" 0.0;
5600 rel1.to: "button_image";
5601 rel2.to: "button_image";
5605 description { state: "disabled" 0.0;
5606 inherit: "default" 0.0;
5612 program { name: "button_click";
5613 signal: "mouse,down,1";
5615 action: SIGNAL_EMIT "elm,action,press" "";
5616 after: "button_click_anim";
5618 program { name: "button_click_anim";
5619 action: STATE_SET "clicked" 0.0;
5620 target: "button_image";
5623 program { name: "button_unpress";
5624 action: SIGNAL_EMIT "elm,action,unpress" "";
5626 program { name: "button_mouseout_clicked";
5627 signal: "mouse,up,1";
5632 get_state(PART:"elm.text", st, 30, vl);
5633 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5635 emit("elm,action,default,text,set", "");
5636 set_state(PART:"elm.text", "visible", 0.0);
5638 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5639 set_state(PART:"button_image", "default", 0.0);
5641 after: button_unpress;
5643 program { name: "button_unclick3";
5644 signal: "mouse,clicked,1";
5646 action: SIGNAL_EMIT "elm,action,click" "";
5648 program { name: "text_show";
5649 signal: "elm,state,text,visible";
5652 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5653 set_state(PART:"elm.text", "visible", 0.0);
5655 set_state(PART:"elm.text", "disabled_visible", 0.0);
5658 program { name: "text_hide";
5659 signal: "elm,state,text,hidden";
5661 action: STATE_SET "default" 0.0;
5665 program { name: "disable";
5666 signal: "elm,state,disabled";
5668 action: STATE_SET "disabled" 0.0;
5669 target: "button_image";
5671 after: "disable_text";
5673 program { name: "disable_text";
5677 get_state(PART:"elm.text", st, 30, vl);
5678 if (!strcmp(st, "visible"))
5679 set_state(PART:"elm.text", "disabled_visible", 0.0);
5681 set_state(PART:"elm.text", "disabled", 0.0);
5682 set_int(button_state, BUTTON_STATE_DISABLED);
5685 program { name: "enable";
5686 signal: "elm,state,enabled";
5688 action: STATE_SET "default" 0.0;
5689 target: "button_image";
5691 after: "enable_text";
5693 program { name: "enable_text";
5697 get_state(PART:"elm.text", st, 30, vl);
5698 if (!strcmp(st, "disabled_visible"))
5699 set_state(PART:"elm.text", "visible", 0.0);
5701 set_state(PART:"elm.text", "default", 0.0);
5702 set_int(button_state, BUTTON_STATE_ENABLED);
5705 program { name: "focused";
5706 //signal: "elm,action,focus";
5708 action: STATE_SET "focused" 0.0;
5709 target: "button_image";
5712 program { name: "unfocused";
5713 //signal: "elm,action,unfocus";
5715 action: STATE_SET "default" 0.0;
5716 target: "button_image";
5717 action: STATE_SET "visible" 0.0;
5723 ///////////////////////////////////////////////////////////////////////////////////////
5724 group { name: "elm/button/base/naviframe/back_btn/default";
5725 alias: "elm/button/base/naviframe/end_btn/default";
5726 //TODO: Remove this alias later
5727 alias: "elm/button/base/navigationbar_prev_btn/default";
5728 alias: "elm/button/base/navigationbar_backbutton/default";
5729 alias: "elm/button/base/navigationbar_end_btn/default";
5731 image: "00_winset_btn_prev.png" COMP;
5732 image: "00_winset_btn_prev_press.png" COMP;
5735 part { name: "button_image";
5739 description { state: "default" 0.0;
5740 min: BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC;
5744 state: "clicked" 0.0;
5745 inherit: "default" 0.0;
5748 state: "disabled" 0.0;
5749 inherit: "default" 0.0;
5752 part {name: "padding_right";
5755 description { state: "default" 0.0;
5758 rel1 { relative: 1 0.2; }
5759 rel2 { relative: 1 0.8; }
5761 color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC;
5764 part {name: "padding_before_right";
5767 description { state: "default" 0.0;
5770 rel1 { relative: 0 0; to: "padding_right"; }
5771 rel2 { relative: 0 1; to: "padding_right"; }
5773 color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC;
5776 part { name: "button_center_part";
5779 description { state: "default" 0.0;
5780 min: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
5781 max: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC;
5783 rel2 { relative: 0 1; to_x: "padding_before_right"; }
5785 normal: "00_winset_btn_prev.png";
5789 state: "clicked" 0.0;
5790 inherit: "default" 0.0;
5791 image.normal: "00_winset_btn_prev_press.png";
5794 part { name: "over1";
5798 ignore_flags: ON_HOLD;
5799 description { state: "default" 0.0;
5803 part { name: "over2";
5806 description { state: "default" 0.0;
5810 part { name: "disabler";
5812 description { state: "default" 0.0;
5816 description { state: "disabled" 0.0;
5817 inherit: "default" 0.0;
5823 program { name: "button_click";
5824 signal: "mouse,down,1";
5826 action: SIGNAL_EMIT "elm,action,press" "";
5827 after: "button_click_anim";
5829 program { name: "button_click_anim";
5830 action: STATE_SET "clicked" 0.0;
5831 target: "button_image";
5832 target: "button_center_part";
5834 program { name: "button_unclick";
5835 signal: "mouse,up,1";
5837 action: SIGNAL_EMIT "elm,action,unpress" "";
5838 after: "button_unclick_anim";
5840 program { name: "button_unclick_anim";
5841 action: STATE_SET "default" 0.0;
5842 target: "button_image";
5843 target: "button_center_part";
5845 program { name: "button_unclick2";
5846 signal: "mouse,clicked,1";
5848 action: SIGNAL_EMIT "elm,action,click" "";
5850 program { name: "disable";
5851 signal: "elm,state,disabled";
5853 action: STATE_SET "disabled" 0.0;
5855 target: "button_image";
5857 program { name: "enable";
5858 signal: "elm,state,enabled";
5860 action: STATE_SET "default" 0.0;
5862 target: "button_image";
5867 ///////////////////////////////////////////////////////////////////////////////////////
5868 group { name: "elm/button/base/picker/prev/icon/default";
5870 image: "00_picker_btn_normal.png" COMP;
5871 image: "00_picker_btn_press.png" COMP;
5872 image: "00_picker_arrow_left.png" COMP;
5873 image: "00_picker_arrow_left_press.png" COMP;
5876 public button_state = BUTTON_STATE_ENABLED;
5879 part { name: "button_image";
5881 description { state: "default" 0.0;
5882 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5883 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5885 normal: "00_picker_btn_normal.png";
5886 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5890 description { state: "clicked" 0.0;
5891 inherit: "default" 0.0;
5893 normal: "00_picker_btn_press.png";
5896 description { state: "disabled" 0.0;
5897 inherit: "default" 0.0;
5899 description { state: "focused" 0.0;
5900 inherit: "default" 0.0;
5902 normal: "00_picker_btn_press.png";
5906 part { name: "padding_left_top";
5910 description { state: "default" 0.0;
5915 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5920 part { name: "padding_right_bottom";
5924 description { state: "default" 0.0;
5929 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5934 part { name: "left_arrow";
5937 description { state: "default" 0.0;
5938 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5939 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5942 to: "padding_left_top";
5946 to: "padding_right_bottom";
5949 normal: "00_picker_arrow_left.png";
5952 description { state: "clicked" 0.0;
5953 inherit: "default" 0.0;
5955 normal: "00_picker_arrow_left_press.png";
5959 part { name: "over2";
5962 ignore_flags: ON_HOLD;
5963 description { state: "default" 0.0;
5967 part { name: "over3";
5970 description { state: "default" 0.0;
5974 part { name: "disabler";
5976 description { state: "default" 0.0;
5980 description { state: "disabled" 0.0;
5981 inherit: "default" 0.0;
5987 program { name: "button_click";
5988 signal: "mouse,down,1";
5990 action: SIGNAL_EMIT "elm,action,press" "";
5991 after: "button_click_anim";
5993 program { name: "button_click_anim";
5994 action: STATE_SET "clicked" 0.0;
5995 target: "button_image";
5997 program { name: "button_unpress";
5998 action: SIGNAL_EMIT "elm,action,unpress" "";
6000 program { name: "button_mouseout_clicked";
6001 signal: "mouse,up,1";
6004 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6005 set_state(PART:"button_image", "default", 0.0);
6007 after: button_unpress;
6009 program { name: "button_unclick3";
6010 signal: "mouse,clicked,1";
6012 action: SIGNAL_EMIT "elm,action,click" "";
6014 program { name: "disable";
6015 signal: "elm,state,disabled";
6017 action: STATE_SET "disabled" 0.0;
6018 target: "button_image";
6020 after: "disable_button";
6022 program { name: "disable_button";
6024 set_int(button_state, BUTTON_STATE_DISABLED);
6027 program { name: "enable";
6028 signal: "elm,state,enabled";
6030 action: STATE_SET "default" 0.0;
6031 target: "button_image";
6033 after: "enable_button";
6035 program { name: "enable_button";
6037 set_int(button_state, BUTTON_STATE_ENABLED);
6040 program { name: "focused";
6041 //signal: "elm,action,focus";
6043 action: STATE_SET "focused" 0.0;
6044 target: "button_image";
6046 program { name: "unfocused";
6047 //signal: "elm,action,unfocus";
6049 action: STATE_SET "default" 0.0;
6050 target: "button_image";
6055 ///////////////////////////////////////////////////////////////////////////////////////
6056 group { name: "elm/button/base/picker/next/icon/default";
6058 image: "00_picker_btn_normal.png" COMP;
6059 image: "00_picker_btn_press.png" COMP;
6060 image: "00_picker_arrow_right.png" COMP;
6061 image: "00_picker_arrow_right_press.png" COMP;
6064 public button_state = BUTTON_STATE_ENABLED;
6067 part { name: "button_image";
6069 description { state: "default" 0.0;
6070 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6071 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
6073 normal: "00_picker_btn_normal.png";
6074 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
6078 description { state: "clicked" 0.0;
6079 inherit: "default" 0.0;
6081 normal: "00_picker_btn_press.png";
6084 description { state: "disabled" 0.0;
6085 inherit: "default" 0.0;
6087 description { state: "focused" 0.0;
6088 inherit: "default" 0.0;
6090 normal: "00_picker_btn_press.png";
6094 part { name: "padding_left_top";
6098 description { state: "default" 0.0;
6103 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6108 part { name: "padding_right_bottom";
6112 description { state: "default" 0.0;
6117 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6122 part { name: "right_arrow";
6125 description { state: "default" 0.0;
6126 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6127 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6130 to: "padding_left_top";
6134 to: "padding_right_bottom";
6137 normal: "00_picker_arrow_right.png";
6140 description { state: "clicked" 0.0;
6141 inherit: "default" 0.0;
6143 normal: "00_picker_arrow_right_press.png";
6147 part { name: "over2";
6150 ignore_flags: ON_HOLD;
6151 description { state: "default" 0.0;
6155 part { name: "over3";
6158 description { state: "default" 0.0;
6162 part { name: "disabler";
6164 description { state: "default" 0.0;
6168 description { state: "disabled" 0.0;
6169 inherit: "default" 0.0;
6175 program { name: "button_click";
6176 signal: "mouse,down,1";
6178 action: SIGNAL_EMIT "elm,action,press" "";
6179 after: "button_click_anim";
6181 program { name: "button_click_anim";
6182 action: STATE_SET "clicked" 0.0;
6183 target: "button_image";
6185 program { name: "button_unpress";
6186 action: SIGNAL_EMIT "elm,action,unpress" "";
6188 program { name: "button_mouseout_clicked";
6189 signal: "mouse,up,1";
6192 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6193 set_state(PART:"button_image", "default", 0.0);
6195 after: button_unpress;
6197 program { name: "button_unclick3";
6198 signal: "mouse,clicked,1";
6200 action: SIGNAL_EMIT "elm,action,click" "";
6202 program { name: "disable";
6203 signal: "elm,state,disabled";
6205 action: STATE_SET "disabled" 0.0;
6206 target: "button_image";
6208 after: "disable_button";
6210 program { name: "disable_button";
6212 set_int(button_state, BUTTON_STATE_DISABLED);
6215 program { name: "enable";
6216 signal: "elm,state,enabled";
6218 action: STATE_SET "default" 0.0;
6219 target: "button_image";
6221 after: "enable_button";
6223 program { name: "enable_button";
6225 set_int(button_state, BUTTON_STATE_ENABLED);
6228 program { name: "focused";
6229 //signal: "elm,action,focus";
6231 action: STATE_SET "focused" 0.0;
6232 target: "button_image";
6234 program { name: "unfocused";
6235 //signal: "elm,action,unfocus";
6237 action: STATE_SET "default" 0.0;
6238 target: "button_image";
6243 ///////////////////////////////////////////////////////////////////////////////////////
6244 group { name: "elm/button/base/naviframe_control/default";
6245 alias: "elm/button/base/naviframe_control/center";
6246 alias: "elm/button/base/navigationbar_control/default";
6247 alias: "elm/button/base/navigationbar_control/left";
6248 alias: "elm/button/base/navigationbar_control/right";
6249 alias: "elm/button/base/navigationbar_control/center";
6251 public button_state = BUTTON_STATE_ENABLED;
6253 images.image: "00_Option_header_bt.png" COMP;
6254 images.image: "00_Option_header_bt_dim.png" COMP;
6255 images.image: "00_Option_header_bt_press.png" COMP;
6257 part { name: "button_image";
6261 description { state: "default" 0.0;
6262 min: BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_W_INC BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_H_INC;
6266 image.normal: "00_Option_header_bt.png";
6267 image.border: BUTTON_NAVIBAR_CENTER_BG_NORMAL_BORDER_INC;
6268 color: 255 255 255 255;
6270 description { state: "disabled" 0.0;
6271 inherit: "default" 0.0;
6272 image.normal: "00_Option_header_bt_dim.png";
6274 description { state: "clicked" 0.0;
6275 inherit: "default" 0.0;
6276 image.normal: "00_Option_header_bt_press.png";
6280 name: "padding_left_top";
6284 description { state: "default" 0.0;
6286 rel1.relative: 0.0 0.0;
6287 rel2.relative: 0.0 0.0;
6288 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
6294 name: "padding_right_bottom";
6298 description { state: "default" 0.0;
6300 rel1.relative: 1.0 1.0;
6301 rel2.relative: 1.0 1.0;
6302 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
6312 description { state: "default" 0.0;
6316 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6317 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6321 description { state: "visible" 0.0;
6323 min: BUTTON_NAVIBAR_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6325 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6326 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6330 description { state: "icononly" 0.0;
6331 inherit: "default" 0.0;
6335 name: "padding_after_icon";
6339 description { state: "default" 0.0; //when only icon or no icon is there
6341 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6342 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6347 description { state: "visible" 0.0;
6350 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6351 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6353 min: BUTTON_NAVIBAR_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6356 description { state: "icononly" 0.0;
6357 inherit: "default" 0.0;
6361 name: "padding_before_text";
6365 description { state: "default" 0.0; //when only icon or no icon is there
6367 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
6368 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
6370 min: BUTTON_NAVIBAR_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6374 part { name: "elm.swallow.content";
6378 description { state: "default" 0.0;
6381 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6382 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6385 description { state: "visible" 0.0;
6388 min: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6389 max: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6391 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
6392 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
6394 aspect_preference: VERTICAL;
6396 description { state: "icononly" 0.0;
6398 min: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6399 max: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6400 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6401 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6404 aspect_preference: VERTICAL;
6407 part { name: "elm.text";
6412 description { state: "default" 0.0;
6414 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
6415 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6417 color: 255 255 255 255;
6419 font: "SLP:style=Medium";
6420 size: BUTTON_NAVIBAR_CENTER_TEXT_FONT_SIZE_INC;
6426 description { state: "visible" 0.0;
6427 inherit: "default" 0.0;
6430 description { state: "clicked" 0.0;
6431 inherit: "default" 0.0;
6435 description { state: "focused" 0.0;
6436 inherit: "default" 0.0;
6439 color: 255 255 255 255;
6442 part { name: "over2";
6446 ignore_flags: ON_HOLD;
6447 description { state: "default" 0.0;
6451 part { name: "over3";
6455 description { state: "default" 0.0;
6459 part { name: "clipper";
6461 description { state: "default" 0.0;
6462 color: 255 255 255 255;
6464 description { state: "disabled" 0.0;
6465 color: 255 255 255 127;
6468 part { name: "disabler";
6470 description { state: "default" 0.0;
6474 description { state: "disabled" 0.0;
6475 inherit: "default" 0.0;
6481 program { name: "button_click";
6482 signal: "mouse,down,1";
6484 action: SIGNAL_EMIT "elm,action,press" "";
6485 after: "button_click_anim";
6487 program { name: "button_click_anim";
6488 action: STATE_SET "clicked" 0.0;
6489 target: "button_image";
6490 after: "text_clicked";
6492 program { name: "text_clicked";
6496 get_state(PART:"elm.text", st, 30, vl);
6497 if (!strcmp(st, "visible"))
6498 set_state(PART:"elm.text", "clicked", 0.0);
6501 program { name: "button_unpress";
6502 action: SIGNAL_EMIT "elm,action,unpress" "";
6504 program { name: "button_mouseout_clicked";
6505 signal: "mouse,up,1";
6510 get_state(PART:"elm.swallow.content", st, 30, vl);
6511 if (strcmp(st, "icononly"))
6513 emit("elm,action,default,text,set", "");
6514 set_state(PART:"elm.text", "visible", 0.0);
6516 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6517 set_state(PART:"button_image", "default", 0.0);
6519 after: button_unpress;
6521 program { name: "button_unclick3";
6522 signal: "mouse,clicked,1";
6524 action: SIGNAL_EMIT "elm,action,click" "";
6526 program { name: "text_show";
6527 signal: "elm,state,text,visible";
6532 get_state(PART:"elm.swallow.content", st, 30, vl);
6533 if (!strcmp(st, "icononly"))
6535 set_state(PART:"elm.swallow.content", "visible", 0.0);
6536 set_state(PART:"icon_rect", "visible", 0.0);
6537 set_state(PART:"padding_after_icon", "visible", 0.0);
6539 set_state(PART:"elm.text", "visible", 0.0);
6542 program { name: "text_hide";
6543 signal: "elm,state,text,hidden";
6548 get_state(PART:"elm.swallow.content", st, 30, vl);
6549 if (!strcmp(st, "visible"))
6551 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6552 set_state(PART:"icon_rect", "icononly", 0.0);
6553 set_state(PART:"padding_after_icon", "icononly", 0.0);
6555 set_state(PART:"elm.text", "default", 0.0);
6558 program { name: "icon_show";
6559 signal: "elm,state,icon,visible";
6564 get_state(PART:"elm.text", st, 30, vl);
6565 if (!strcmp(st, "visible"))
6567 set_state(PART:"elm.swallow.content", "visible", 0.0);
6568 set_state(PART:"icon_rect", "visible", 0.0);
6569 set_state(PART:"padding_after_icon", "visible", 0.0);
6573 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6574 set_state(PART:"icon_rect", "icononly", 0.0);
6575 set_state(PART:"padding_after_icon", "icononly", 0.0);
6579 program { name: "icon_hide";
6580 signal: "elm,state,icon,hidden";
6582 action: STATE_SET "default" 0.0;
6583 target: "elm.swallow.content";
6584 target: "icon_rect";
6585 target: "padding_after_icon";
6587 program { name: "disable";
6588 signal: "elm,state,disabled";
6590 action: STATE_SET "disabled" 0.0;
6591 target: "button_image";
6594 after: "disable_text";
6596 program { name: "disable_text";
6598 set_int(button_state, BUTTON_STATE_DISABLED);
6599 set_state(PART:"elm.text", "visible", 0.0);
6602 program { name: "enable";
6603 signal: "elm,state,enabled";
6605 action: STATE_SET "default" 0.0;
6606 target: "button_image";
6609 after: "enable_text";
6611 program { name: "enable_text";
6613 set_int(button_state, BUTTON_STATE_ENABLED);
6614 set_state(PART:"elm.text", "visible", 0.0);
6617 program { name: "focused";
6618 action: STATE_SET "focused" 0.0;
6619 target: "button_image";
6622 program { name: "unfocused";
6623 action: STATE_SET "default" 0.0;
6624 target: "button_image";
6625 after: "unfocus_text";
6627 program { name: "unfocus_text";
6628 action: STATE_SET "visible" 0.0;
6634 ///////////////////////////////////////////////////////////////////////////////////////
6635 group { name: "elm/button/base/naviframe_control/multiline";
6636 alias: "elm/button/base/navigationbar_control/multiline";
6638 public button_state = BUTTON_STATE_ENABLED;
6640 images.image: "00_Option_header_bt.png" COMP;
6641 images.image: "00_Option_header_bt_dim.png" COMP;
6642 images.image: "00_Option_header_bt_press.png" COMP;
6644 style { name: "btn_multiline_navigationbar_controlbar_style";
6645 base: "font=SLP:style=Medium font_size="BUTTON_NAVIBAR_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6652 part { name: "button_image";
6656 description { state: "default" 0.0;
6657 min: BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_W_INC BUTTON_NAVIBAR_CENTER_BG_NORMAL_MIN_H_INC;
6660 image.normal: "00_Option_header_bt.png";
6661 image.border: BUTTON_NAVIBAR_CENTER_BG_NORMAL_BORDER_INC;
6662 color: 255 255 255 255;
6664 description { state: "disabled" 0.0;
6665 inherit: "default" 0.0;
6666 image.normal: "00_Option_header_bt_dim.png";
6668 description { state: "clicked" 0.0;
6669 inherit: "default" 0.0;
6670 image.normal: "00_Option_header_bt_press.png";
6674 name: "padding_left_top";
6678 description { state: "default" 0.0;
6686 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
6692 name: "padding_right_bottom";
6696 description { state: "default" 0.0;
6698 rel1.relative: 1.0 1.0;
6699 rel2.relative: 1.0 1.0;
6700 min: BUTTON_NAVIBAR_CENTER_PADDING_MIN_MAX_INC;
6710 description { state: "default" 0.0;
6716 to_x: "elm.swallow.content";
6717 to_y: "padding_left_top";
6721 to_x: "elm.swallow.content";
6722 to_y: "padding_right_bottom";
6728 name: "padding_icon_text";
6732 description { state: "default" 0.0; //when only icon or no icon is there
6746 description { state: "visible" 0.0;
6747 inherit: "default" 0.0;
6748 min: BUTTON_NAVIBAR_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6758 description { state: "icononly" 0.0;
6759 inherit: "default" 0.0;
6762 part { name: "elm.swallow.content";
6766 description { state: "default" 0.0;
6771 to: "padding_left_top";
6775 to_x: "padding_left_top";
6776 to_y: "padding_right_bottom";
6780 description { state: "visible" 0.0;
6783 min: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6784 max: BUTTON_NAVIBAR_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6788 to: "padding_left_top";
6792 to_x: "padding_left_top";
6793 to_y: "padding_right_bottom";
6796 description { state: "icononly" 0.0;
6798 min: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6799 max: BUTTON_NAVIBAR_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6802 to: "padding_left_top";
6806 to: "padding_right_bottom";
6811 part { name: "elm.text";
6816 description { state: "default" 0.0;
6820 to_x: "padding_icon_text";
6821 to_y: "padding_left_top";
6825 to: "padding_right_bottom";
6828 color: 255 255 255 255;
6830 style: "btn_multiline_navigationbar_controlbar_style";
6835 description { state: "visible" 0.0;
6836 inherit: "default" 0.0;
6840 description { state: "clicked" 0.0;
6841 inherit: "default" 0.0;
6845 description { state: "focused" 0.0;
6846 inherit: "default" 0.0;
6849 color: 255 255 255 255;
6852 part { name: "over2";
6856 ignore_flags: ON_HOLD;
6857 description { state: "default" 0.0;
6861 part { name: "over3";
6865 description { state: "default" 0.0;
6869 part { name: "clipper";
6871 description { state: "default" 0.0;
6872 color: 255 255 255 255;
6874 description { state: "disabled" 0.0;
6875 color: 255 255 255 127;
6878 part { name: "disabler";
6880 description { state: "default" 0.0;
6884 description { state: "disabled" 0.0;
6885 inherit: "default" 0.0;
6891 program { name: "button_click";
6892 signal: "mouse,down,1";
6894 action: SIGNAL_EMIT "elm,action,press" "";
6895 after: "button_click_anim";
6897 program { name: "button_click_anim";
6898 action: STATE_SET "clicked" 0.0;
6899 target: "button_image";
6900 after: "text_clicked";
6902 program { name: "text_clicked";
6906 get_state(PART:"elm.text", st, 30, vl);
6907 if (!strcmp(st, "visible"))
6908 set_state(PART:"elm.text", "clicked", 0.0);
6911 program { name: "button_unpress";
6912 action: SIGNAL_EMIT "elm,action,unpress" "";
6914 program { name: "button_mouseout_clicked";
6915 signal: "mouse,up,1";
6920 get_state(PART:"elm.swallow.content", st, 30, vl);
6921 if (strcmp(st, "icononly"))
6923 emit("elm,action,default,text,set", "");
6924 set_state(PART:"elm.text", "visible", 0.0);
6926 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6927 set_state(PART:"button_image", "default", 0.0);
6929 after: button_unpress;
6931 program { name: "button_unclick3";
6932 signal: "mouse,clicked,1";
6934 action: SIGNAL_EMIT "elm,action,click" "";
6936 program { name: "text_show";
6937 signal: "elm,state,text,visible";
6942 get_state(PART:"elm.swallow.content", st, 30, vl);
6943 if (!strcmp(st, "icononly"))
6945 set_state(PART:"elm.swallow.content", "visible", 0.0);
6946 set_state(PART:"padding_icon_text", "visible", 0.0);
6948 set_state(PART:"elm.text", "visible", 0.0);
6951 program { name: "text_hide";
6952 signal: "elm,state,text,hidden";
6957 get_state(PART:"elm.swallow.content", st, 30, vl);
6958 if (!strcmp(st, "visible"))
6960 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6961 set_state(PART:"padding_icon_text", "icononly", 0.0);
6963 set_state(PART:"elm.text", "default", 0.0);
6966 program { name: "icon_show";
6967 signal: "elm,state,icon,visible";
6972 get_state(PART:"elm.text", st, 30, vl);
6973 if (!strcmp(st, "visible"))
6975 set_state(PART:"elm.swallow.content", "visible", 0.0);
6976 set_state(PART:"padding_icon_text", "visible", 0.0);
6980 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6981 set_state(PART:"padding_icon_text", "icononly", 0.0);
6985 program { name: "icon_hide";
6986 signal: "elm,state,icon,hidden";
6988 action: STATE_SET "default" 0.0;
6989 target: "elm.swallow.content";
6990 target: "padding_icon_text";
6992 program { name: "disable";
6993 signal: "elm,state,disabled";
6995 action: STATE_SET "disabled" 0.0;
6996 target: "button_image";
6999 after: "disable_text";
7001 program { name: "disable_text";
7003 set_int(button_state, BUTTON_STATE_DISABLED);
7004 set_state(PART:"elm.text", "visible", 0.0);
7007 program { name: "enable";
7008 signal: "elm,state,enabled";
7010 action: STATE_SET "default" 0.0;
7011 target: "button_image";
7014 after: "enable_text";
7016 program { name: "enable_text";
7018 set_int(button_state, BUTTON_STATE_ENABLED);
7019 set_state(PART:"elm.text", "visible", 0.0);
7022 program { name: "focused";
7023 action: STATE_SET "focused" 0.0;
7024 target: "button_image";
7027 program { name: "unfocused";
7028 action: STATE_SET "default" 0.0;
7029 target: "button_image";
7030 after: "unfocus_text";
7032 program { name: "unfocus_text";
7033 action: STATE_SET "visible" 0.0;
7039 ///////////////////////////////////////////////////////////////////////////////////////
7040 group { name: "elm/button/base/controlbar/vertical";
7042 public button_state = BUTTON_STATE_ENABLED;
7045 style { name: "controlbar_style";
7046 base: "font=SLP:style=Medium font_size=18 align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1";
7049 tag: "hilight" "+ font=SLP:style=Bold";
7050 tag: "b" "+ font=SLP:style=Bold";
7055 part { name: "button_image";
7059 description { state: "default" 0.0;
7068 name: "padding_left_top";
7072 description { state: "default" 0.0;
7074 rel1.relative: 0.0 0.0;
7075 rel2.relative: 0.0 0.0;
7082 name: "padding_right_bottom";
7086 description { state: "default" 0.0;
7088 rel1.relative: 1.0 1.0;
7089 rel2.relative: 1.0 1.0;
7100 description { state: "default" 0.0;
7104 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7105 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7109 description { state: "visible" 0.0;
7111 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7113 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7114 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7118 description { state: "icononly" 0.0;
7119 inherit: "default" 0.0;
7123 name: "padding_after_icon";
7127 description { state: "default" 0.0; //when only icon or no icon is there
7129 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7130 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7135 description { state: "visible" 0.0;
7138 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7139 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7144 description { state: "icononly" 0.0;
7145 inherit: "default" 0.0;
7149 name: "padding_before_text";
7153 description { state: "default" 0.0; //when only icon or no icon is there
7155 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
7156 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
7162 part { name: "elm.swallow.content";
7165 clip_to: "disabler";
7166 description { state: "default" 0.0;
7169 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7170 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7173 description { state: "visible" 0.0;
7176 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7177 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7179 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7180 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
7182 aspect_preference: HORIZONTAL;
7184 description { state: "icononly" 0.0;
7186 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7187 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7188 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7189 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7192 aspect_preference: HORIZONTAL;
7195 part { name: "elm.text";
7199 clip_to: "disabler";
7200 description { state: "default" 0.0;
7202 rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
7203 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7205 color: 255 255 255 255;
7208 style: "controlbar_style";
7213 description { state: "visible" 0.0;
7214 inherit: "default" 0.0;
7217 description { state: "clicked" 0.0;
7218 inherit: "default" 0.0;
7220 color: 255 255 255 255;
7222 description { state: "focused" 0.0;
7223 inherit: "default" 0.0;
7225 color: 255 255 255 255;
7228 part { name: "over2";
7232 ignore_flags: ON_HOLD;
7233 description { state: "default" 0.0;
7237 part { name: "over3";
7241 description { state: "default" 0.0;
7245 part { name: "disabler";
7247 description { state: "default" 0.0;
7248 color: 255 255 255 255;
7251 description { state: "disabled" 0.0;
7252 inherit: "default" 0.0;
7253 color: 255 255 255 127;
7259 program { name: "button_click";
7260 signal: "mouse,down,1";
7262 action: SIGNAL_EMIT "elm,action,press" "";
7263 after: "button_click_anim";
7265 program { name: "button_click_anim";
7266 action: STATE_SET "clicked" 0.0;
7267 target: "button_image";
7268 after: "text_clicked";
7270 program { name: "text_clicked";
7274 get_state(PART:"elm.text", st, 30, vl);
7275 if (!strcmp(st, "visible"))
7276 set_state(PART:"elm.text", "clicked", 0.0);
7279 program { name: "button_unpress";
7280 action: SIGNAL_EMIT "elm,action,unpress" "";
7282 program { name: "button_mouseout_clicked";
7283 signal: "mouse,up,1";
7288 get_state(PART:"elm.swallow.content", st, 30, vl);
7289 if (strcmp(st, "icononly"))
7291 emit("elm,action,default,text,set", "");
7292 set_state(PART:"elm.text", "visible", 0.0);
7294 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7295 set_state(PART:"button_image", "default", 0.0);
7297 after: button_unpress;
7299 program { name: "button_unclick3";
7300 signal: "mouse,clicked,1";
7302 action: SIGNAL_EMIT "elm,action,click" "";
7304 program { name: "text_show";
7305 signal: "elm,state,text,visible";
7310 get_state(PART:"elm.swallow.content", st, 30, vl);
7311 if (!strcmp(st, "icononly"))
7313 set_state(PART:"elm.swallow.content", "visible", 0.0);
7314 set_state(PART:"icon_rect", "visible", 0.0);
7315 set_state(PART:"padding_after_icon", "visible", 0.0);
7317 set_state(PART:"elm.text", "visible", 0.0);
7320 program { name: "text_hide";
7321 signal: "elm,state,text,hidden";
7326 get_state(PART:"elm.swallow.content", st, 30, vl);
7327 if (!strcmp(st, "visible"))
7329 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7330 set_state(PART:"icon_rect", "icononly", 0.0);
7331 set_state(PART:"padding_after_icon", "icononly", 0.0);
7333 set_state(PART:"elm.text", "default", 0.0);
7336 program { name: "icon_show";
7337 signal: "elm,state,icon,visible";
7342 get_state(PART:"elm.text", st, 30, vl);
7343 if (!strcmp(st, "visible"))
7345 set_state(PART:"elm.swallow.content", "visible", 0.0);
7346 set_state(PART:"icon_rect", "visible", 0.0);
7347 set_state(PART:"padding_after_icon", "visible", 0.0);
7351 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7352 set_state(PART:"icon_rect", "icononly", 0.0);
7353 set_state(PART:"padding_after_icon", "icononly", 0.0);
7357 program { name: "icon_hide";
7358 signal: "elm,state,icon,hidden";
7360 action: STATE_SET "default" 0.0;
7361 target: "elm.swallow.content";
7362 target: "icon_rect";
7363 target: "padding_after_icon";
7365 program { name: "disable";
7366 signal: "elm,state,disabled";
7368 action: STATE_SET "disabled" 0.0;
7369 target: "button_image";
7371 after: "disable_text";
7373 program { name: "disable_text";
7375 set_int(button_state, BUTTON_STATE_DISABLED);
7376 set_state(PART:"elm.text", "visible", 0.0);
7379 program { name: "enable";
7380 signal: "elm,state,enabled";
7382 action: STATE_SET "default" 0.0;
7383 target: "button_image";
7385 after: "enable_text";
7387 program { name: "enable_text";
7389 set_int(button_state, BUTTON_STATE_ENABLED);
7390 set_state(PART:"elm.text", "visible", 0.0);
7393 program { name: "focused";
7394 action: STATE_SET "focused" 0.0;
7395 target: "button_image";
7398 program { name: "unfocused";
7399 action: STATE_SET "default" 0.0;
7400 target: "button_image";
7401 after: "unfocus_text";
7403 program { name: "unfocus_text";
7404 action: STATE_SET "visible" 0.0;
7410 ///////////////////////////////////////////////////////////////////////////////////////
7411 group { name: "elm/button/base/controlbar/horizontal_center";
7413 public button_state = BUTTON_STATE_ENABLED;
7416 part { name: "button_image";
7420 description { state: "default" 0.0;
7427 description { state: "clicked" 0.0;
7428 inherit: "default" 0.0;
7433 name: "padding_left_top";
7437 description { state: "default" 0.0;
7439 rel1.relative: 0.0 0.0;
7440 rel2.relative: 0.0 0.0;
7447 name: "padding_right_bottom";
7451 description { state: "default" 0.0;
7453 rel1.relative: 1.0 1.0;
7454 rel2.relative: 1.0 1.0;
7465 description { state: "default" 0.0;
7469 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7470 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7474 description { state: "visible" 0.0;
7476 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7478 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7479 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7483 description { state: "icononly" 0.0;
7484 inherit: "default" 0.0;
7488 name: "padding_after_icon";
7492 description { state: "default" 0.0; //when only icon or no icon is there
7494 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7495 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7500 description { state: "visible" 0.0;
7503 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7504 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7509 description { state: "icononly" 0.0;
7510 inherit: "default" 0.0;
7514 name: "padding_before_text";
7518 description { state: "default" 0.0; //when only icon or no icon is there
7520 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7521 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7527 part { name: "elm.swallow.content";
7530 clip_to: "disabler";
7531 description { state: "default" 0.0;
7534 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7535 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7538 description { state: "visible" 0.0;
7541 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7542 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7544 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7545 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7547 aspect_preference: VERTICAL;
7549 description { state: "icononly" 0.0;
7551 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7552 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7553 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7554 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7557 aspect_preference: VERTICAL;
7560 part { name: "elm.text";
7564 clip_to: "disabler";
7565 description { state: "default" 0.0;
7567 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7568 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7570 color: 255 255 255 255;
7572 font: "SLP:style=Medium";
7579 description { state: "visible" 0.0;
7580 inherit: "default" 0.0;
7583 description { state: "clicked" 0.0;
7584 inherit: "default" 0.0;
7588 description { state: "focused" 0.0;
7589 inherit: "default" 0.0;
7592 color: 255 255 255 255;
7595 part { name: "over2";
7599 ignore_flags: ON_HOLD;
7600 description { state: "default" 0.0;
7604 part { name: "over3";
7608 description { state: "default" 0.0;
7612 part { name: "disabler";
7614 description { state: "default" 0.0;
7615 color: 255 255 255 255;
7617 description { state: "disabled" 0.0;
7618 color: 255 255 255 127;
7623 program { name: "button_click";
7624 signal: "mouse,down,1";
7626 action: SIGNAL_EMIT "elm,action,press" "";
7627 after: "button_click_anim";
7629 program { name: "button_click_anim";
7630 action: STATE_SET "clicked" 0.0;
7631 target: "button_image";
7632 after: "text_clicked";
7634 program { name: "text_clicked";
7638 get_state(PART:"elm.text", st, 30, vl);
7639 if (!strcmp(st, "visible"))
7640 set_state(PART:"elm.text", "clicked", 0.0);
7643 program { name: "button_unpress";
7644 action: SIGNAL_EMIT "elm,action,unpress" "";
7646 program { name: "button_mouseout_clicked";
7647 signal: "mouse,up,1";
7652 get_state(PART:"elm.swallow.content", st, 30, vl);
7653 if (strcmp(st, "icononly"))
7655 emit("elm,action,default,text,set", "");
7656 set_state(PART:"elm.text", "visible", 0.0);
7658 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7659 set_state(PART:"button_image", "default", 0.0);
7661 after: button_unpress;
7663 program { name: "button_unclick3";
7664 signal: "mouse,clicked,1";
7666 action: SIGNAL_EMIT "elm,action,click" "";
7668 program { name: "text_show";
7669 signal: "elm,state,text,visible";
7674 get_state(PART:"elm.swallow.content", st, 30, vl);
7675 if (!strcmp(st, "icononly"))
7677 set_state(PART:"elm.swallow.content", "visible", 0.0);
7678 set_state(PART:"icon_rect", "visible", 0.0);
7679 set_state(PART:"padding_after_icon", "visible", 0.0);
7681 set_state(PART:"elm.text", "visible", 0.0);
7684 program { name: "text_hide";
7685 signal: "elm,state,text,hidden";
7690 get_state(PART:"elm.swallow.content", st, 30, vl);
7691 if (!strcmp(st, "visible"))
7693 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7694 set_state(PART:"icon_rect", "icononly", 0.0);
7695 set_state(PART:"padding_after_icon", "icononly", 0.0);
7697 set_state(PART:"elm.text", "default", 0.0);
7700 program { name: "icon_show";
7701 signal: "elm,state,icon,visible";
7706 get_state(PART:"elm.text", st, 30, vl);
7707 if (!strcmp(st, "visible"))
7709 set_state(PART:"elm.swallow.content", "visible", 0.0);
7710 set_state(PART:"icon_rect", "visible", 0.0);
7711 set_state(PART:"padding_after_icon", "visible", 0.0);
7715 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7716 set_state(PART:"icon_rect", "icononly", 0.0);
7717 set_state(PART:"padding_after_icon", "icononly", 0.0);
7721 program { name: "icon_hide";
7722 signal: "elm,state,icon,hidden";
7724 action: STATE_SET "default" 0.0;
7725 target: "elm.swallow.content";
7726 target: "icon_rect";
7727 target: "padding_after_icon";
7729 program { name: "disable";
7730 signal: "elm,state,disabled";
7732 action: STATE_SET "disabled" 0.0;
7734 after: "disable_text";
7736 program { name: "disable_text";
7738 set_int(button_state, BUTTON_STATE_DISABLED);
7739 set_state(PART:"elm.text", "visible", 0.0);
7742 program { name: "enable";
7743 signal: "elm,state,enabled";
7745 action: STATE_SET "default" 0.0;
7747 after: "enable_text";
7749 program { name: "enable_text";
7751 set_int(button_state, BUTTON_STATE_ENABLED);
7752 set_state(PART:"elm.text", "visible", 0.0);
7755 program { name: "focused";
7756 action: STATE_SET "focused" 0.0;
7757 target: "button_image";
7760 program { name: "unfocused";
7761 action: STATE_SET "default" 0.0;
7762 target: "button_image";
7763 after: "unfocus_text";
7765 program { name: "unfocus_text";
7766 action: STATE_SET "visible" 0.0;
7772 ///////////////////////////////////////////////////////////////////////////////////////
7773 group { name: "elm/button/base/controlbar/horizontal_left";
7775 public button_state = BUTTON_STATE_ENABLED;
7778 part { name: "button_image";
7782 description { state: "default" 0.0;
7789 description { state: "clicked" 0.0;
7790 inherit: "default" 0.0;
7795 name: "padding_left_top";
7799 description { state: "default" 0.0;
7801 rel1.relative: 0.0 0.0;
7802 rel2.relative: 0.0 0.0;
7809 name: "padding_right_bottom";
7813 description { state: "default" 0.0;
7815 rel1.relative: 1.0 1.0;
7816 rel2.relative: 1.0 1.0;
7827 description { state: "default" 0.0;
7831 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7832 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7836 description { state: "visible" 0.0;
7838 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7840 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7841 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7845 description { state: "icononly" 0.0;
7846 inherit: "default" 0.0;
7850 name: "padding_after_icon";
7854 description { state: "default" 0.0; //when only icon or no icon is there
7856 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7857 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7862 description { state: "visible" 0.0;
7865 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7866 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7871 description { state: "icononly" 0.0;
7872 inherit: "default" 0.0;
7876 name: "padding_before_text";
7880 description { state: "default" 0.0; //when only icon or no icon is there
7882 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7883 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7889 part { name: "elm.swallow.content";
7892 clip_to: "disabler";
7893 description { state: "default" 0.0;
7896 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7897 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7900 description { state: "visible" 0.0;
7903 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7904 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7906 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7907 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7909 aspect_preference: VERTICAL;
7911 description { state: "icononly" 0.0;
7913 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7914 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7915 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7916 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7919 aspect_preference: VERTICAL;
7922 part { name: "elm.text";
7926 clip_to: "disabler";
7927 description { state: "default" 0.0;
7929 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7930 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7932 color: 255 255 255 255;
7934 font: "SLP:style=Medium";
7941 description { state: "visible" 0.0;
7942 inherit: "default" 0.0;
7945 description { state: "clicked" 0.0;
7946 inherit: "default" 0.0;
7950 description { state: "focused" 0.0;
7951 inherit: "default" 0.0;
7954 color: 255 255 255 255;
7957 part { name: "over2";
7961 ignore_flags: ON_HOLD;
7962 description { state: "default" 0.0;
7966 part { name: "over3";
7970 description { state: "default" 0.0;
7974 part { name: "disabler";
7976 description { state: "default" 0.0;
7977 color: 255 255 255 255;
7979 description { state: "disabled" 0.0;
7980 color: 255 255 255 127;
7985 program { name: "button_click";
7986 signal: "mouse,down,1";
7988 action: SIGNAL_EMIT "elm,action,press" "";
7989 after: "button_click_anim";
7991 program { name: "button_click_anim";
7992 action: STATE_SET "clicked" 0.0;
7993 target: "button_image";
7994 after: "text_clicked";
7996 program { name: "text_clicked";
8000 get_state(PART:"elm.text", st, 30, vl);
8001 if (!strcmp(st, "visible"))
8002 set_state(PART:"elm.text", "clicked", 0.0);
8005 program { name: "button_unpress";
8006 action: SIGNAL_EMIT "elm,action,unpress" "";
8008 program { name: "button_mouseout_clicked";
8009 signal: "mouse,up,1";
8014 get_state(PART:"elm.swallow.content", st, 30, vl);
8015 if (strcmp(st, "icononly"))
8017 emit("elm,action,default,text,set", "");
8018 set_state(PART:"elm.text", "visible", 0.0);
8020 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8021 set_state(PART:"button_image", "default", 0.0);
8023 after: button_unpress;
8025 program { name: "button_unclick3";
8026 signal: "mouse,clicked,1";
8028 action: SIGNAL_EMIT "elm,action,click" "";
8030 program { name: "text_show";
8031 signal: "elm,state,text,visible";
8036 get_state(PART:"elm.swallow.content", st, 30, vl);
8037 if (!strcmp(st, "icononly"))
8039 set_state(PART:"elm.swallow.content", "visible", 0.0);
8040 set_state(PART:"icon_rect", "visible", 0.0);
8041 set_state(PART:"padding_after_icon", "visible", 0.0);
8043 set_state(PART:"elm.text", "visible", 0.0);
8046 program { name: "text_hide";
8047 signal: "elm,state,text,hidden";
8052 get_state(PART:"elm.swallow.content", st, 30, vl);
8053 if (!strcmp(st, "visible"))
8055 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8056 set_state(PART:"icon_rect", "icononly", 0.0);
8057 set_state(PART:"padding_after_icon", "icononly", 0.0);
8059 set_state(PART:"elm.text", "default", 0.0);
8062 program { name: "icon_show";
8063 signal: "elm,state,icon,visible";
8068 get_state(PART:"elm.text", st, 30, vl);
8069 if (!strcmp(st, "visible"))
8071 set_state(PART:"elm.swallow.content", "visible", 0.0);
8072 set_state(PART:"icon_rect", "visible", 0.0);
8073 set_state(PART:"padding_after_icon", "visible", 0.0);
8077 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8078 set_state(PART:"icon_rect", "icononly", 0.0);
8079 set_state(PART:"padding_after_icon", "icononly", 0.0);
8083 program { name: "icon_hide";
8084 signal: "elm,state,icon,hidden";
8086 action: STATE_SET "default" 0.0;
8087 target: "elm.swallow.content";
8088 target: "icon_rect";
8089 target: "padding_after_icon";
8091 program { name: "disable";
8092 signal: "elm,state,disabled";
8094 action: STATE_SET "disabled" 0.0;
8096 after: "disable_text";
8098 program { name: "disable_text";
8100 set_int(button_state, BUTTON_STATE_DISABLED);
8101 set_state(PART:"elm.text", "visible", 0.0);
8104 program { name: "enable";
8105 signal: "elm,state,enabled";
8107 action: STATE_SET "default" 0.0;
8109 after: "enable_text";
8111 program { name: "enable_text";
8113 set_int(button_state, BUTTON_STATE_ENABLED);
8114 set_state(PART:"elm.text", "visible", 0.0);
8117 program { name: "focused";
8118 action: STATE_SET "focused" 0.0;
8119 target: "button_image";
8122 program { name: "unfocused";
8123 action: STATE_SET "default" 0.0;
8124 target: "button_image";
8125 after: "unfocus_text";
8127 program { name: "unfocus_text";
8128 action: STATE_SET "visible" 0.0;
8134 ///////////////////////////////////////////////////////////////////////////////////////
8135 group { name: "elm/button/base/controlbar/horizontal_right";
8137 public button_state = BUTTON_STATE_ENABLED;
8140 part { name: "button_image";
8144 description { state: "default" 0.0;
8151 description { state: "clicked" 0.0;
8152 inherit: "default" 0.0;
8157 name: "padding_left_top";
8161 description { state: "default" 0.0;
8163 rel1.relative: 0.0 0.0;
8164 rel2.relative: 0.0 0.0;
8171 name: "padding_right_bottom";
8175 description { state: "default" 0.0;
8177 rel1.relative: 1.0 1.0;
8178 rel2.relative: 1.0 1.0;
8189 description { state: "default" 0.0;
8193 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8194 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8198 description { state: "visible" 0.0;
8200 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8202 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8203 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8207 description { state: "icononly" 0.0;
8208 inherit: "default" 0.0;
8212 name: "padding_after_icon";
8216 description { state: "default" 0.0; //when only icon or no icon is there
8218 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8219 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8224 description { state: "visible" 0.0;
8227 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8228 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8233 description { state: "icononly" 0.0;
8234 inherit: "default" 0.0;
8238 name: "padding_before_text";
8242 description { state: "default" 0.0; //when only icon or no icon is there
8244 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8245 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8251 part { name: "elm.swallow.content";
8254 clip_to: "disabler";
8255 description { state: "default" 0.0;
8258 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8259 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8262 description { state: "visible" 0.0;
8265 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8266 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8268 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8269 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8271 aspect_preference: VERTICAL;
8273 description { state: "icononly" 0.0;
8275 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8276 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8277 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8278 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8281 aspect_preference: VERTICAL;
8284 part { name: "elm.text";
8288 clip_to: "disabler";
8289 description { state: "default" 0.0;
8291 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8292 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8294 color: 255 255 255 255;
8296 font: "SLP:style=Medium";
8303 description { state: "visible" 0.0;
8304 inherit: "default" 0.0;
8307 description { state: "clicked" 0.0;
8308 inherit: "default" 0.0;
8312 description { state: "focused" 0.0;
8313 inherit: "default" 0.0;
8316 color: 255 255 255 255;
8319 part { name: "over2";
8323 ignore_flags: ON_HOLD;
8324 description { state: "default" 0.0;
8328 part { name: "over3";
8332 description { state: "default" 0.0;
8336 part { name: "disabler";
8338 description { state: "default" 0.0;
8339 color: 255 255 255 255;
8341 description { state: "disabled" 0.0;
8342 color: 255 255 255 127;
8347 program { name: "button_click";
8348 signal: "mouse,down,1";
8350 action: SIGNAL_EMIT "elm,action,press" "";
8351 after: "button_click_anim";
8353 program { name: "button_click_anim";
8354 action: STATE_SET "clicked" 0.0;
8355 target: "button_image";
8356 after: "text_clicked";
8358 program { name: "text_clicked";
8362 get_state(PART:"elm.text", st, 30, vl);
8363 if (!strcmp(st, "visible"))
8364 set_state(PART:"elm.text", "clicked", 0.0);
8367 program { name: "button_unpress";
8368 action: SIGNAL_EMIT "elm,action,unpress" "";
8370 program { name: "button_mouseout_clicked";
8371 signal: "mouse,up,1";
8376 get_state(PART:"elm.swallow.content", st, 30, vl);
8377 if (strcmp(st, "icononly"))
8379 emit("elm,action,default,text,set", "");
8380 set_state(PART:"elm.text", "visible", 0.0);
8382 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8383 set_state(PART:"button_image", "default", 0.0);
8385 after: button_unpress;
8387 program { name: "button_unclick3";
8388 signal: "mouse,clicked,1";
8390 action: SIGNAL_EMIT "elm,action,click" "";
8392 program { name: "text_show";
8393 signal: "elm,state,text,visible";
8398 get_state(PART:"elm.swallow.content", st, 30, vl);
8399 if (!strcmp(st, "icononly"))
8401 set_state(PART:"elm.swallow.content", "visible", 0.0);
8402 set_state(PART:"icon_rect", "visible", 0.0);
8403 set_state(PART:"padding_after_icon", "visible", 0.0);
8405 set_state(PART:"elm.text", "visible", 0.0);
8408 program { name: "text_hide";
8409 signal: "elm,state,text,hidden";
8414 get_state(PART:"elm.swallow.content", st, 30, vl);
8415 if (!strcmp(st, "visible"))
8417 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8418 set_state(PART:"icon_rect", "icononly", 0.0);
8419 set_state(PART:"padding_after_icon", "icononly", 0.0);
8421 set_state(PART:"elm.text", "default", 0.0);
8424 program { name: "icon_show";
8425 signal: "elm,state,icon,visible";
8430 get_state(PART:"elm.text", st, 30, vl);
8431 if (!strcmp(st, "visible"))
8433 set_state(PART:"elm.swallow.content", "visible", 0.0);
8434 set_state(PART:"icon_rect", "visible", 0.0);
8435 set_state(PART:"padding_after_icon", "visible", 0.0);
8439 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8440 set_state(PART:"icon_rect", "icononly", 0.0);
8441 set_state(PART:"padding_after_icon", "icononly", 0.0);
8445 program { name: "icon_hide";
8446 signal: "elm,state,icon,hidden";
8448 action: STATE_SET "default" 0.0;
8449 target: "elm.swallow.content";
8450 target: "icon_rect";
8451 target: "padding_after_icon";
8453 program { name: "disable";
8454 signal: "elm,state,disabled";
8456 action: STATE_SET "disabled" 0.0;
8458 after: "disable_text";
8460 program { name: "disable_text";
8462 set_int(button_state, BUTTON_STATE_DISABLED);
8463 set_state(PART:"elm.text", "visible", 0.0);
8466 program { name: "enable";
8467 signal: "elm,state,enabled";
8469 action: STATE_SET "default" 0.0;
8471 after: "enable_text";
8473 program { name: "enable_text";
8475 set_int(button_state, BUTTON_STATE_ENABLED);
8476 set_state(PART:"elm.text", "visible", 0.0);
8479 program { name: "focused";
8480 action: STATE_SET "focused" 0.0;
8481 target: "button_image";
8484 program { name: "unfocused";
8485 action: STATE_SET "default" 0.0;
8486 target: "button_image";
8487 after: "unfocus_text";
8489 program { name: "unfocus_text";
8490 action: STATE_SET "visible" 0.0;
8496 ///////////////////////////////////////////////////////////////////////////////////////
8497 group { name: "elm/button/base/tickernoti";
8499 image: "00_button_06_normal.png" COMP;
8500 image: "00_button_06_press.png" COMP;
8501 image: "00_button_06_dim.png" COMP;
8504 public button_state = BUTTON_STATE_ENABLED;
8507 part { name: "button_image";
8509 description { state: "default" 0.0;
8511 normal: "00_button_06_normal.png";
8512 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8516 description { state: "clicked" 0.0;
8517 inherit: "default" 0.0;
8519 normal: "00_button_06_press.png";
8522 description { state: "disabled" 0.0;
8523 inherit: "default" 0.0;
8525 normal: "00_button_06_dim.png";
8528 description { state: "focused" 0.0;
8529 inherit: "default" 0.0;
8531 normal: "00_button_06_press.png";
8535 part { name: "padding_left_top";
8539 description { state: "default" 0.0;
8544 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8553 description { state: "default" 0.0;
8554 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8557 description { state: "visible" 0.0;
8558 inherit: "default" 0.0;
8559 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8561 description { state: "icononly" 0.0;
8562 inherit: "default" 0.0;
8563 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8566 part { name: "padding_right_bottom";
8570 description { state: "default" 0.0;
8575 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8580 part { name: "icon_rect";
8584 description { state: "default" 0.0;
8590 to: "padding_left_top";
8594 to_x: "padding_left_top";
8595 to_y: "padding_right_bottom";
8599 description { state: "visible" 0.0;
8601 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8602 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
8606 to: "padding_left_top";
8610 to_x: "padding_left_top";
8611 to_y: "padding_right_bottom";
8615 description { state: "icononly" 0.0;
8616 inherit: "default" 0.0;
8619 part { name: "padding_after_icon";
8623 description { state: "default" 0.0; //when only icon or no icon is there
8636 description { state: "visible" 0.0;
8647 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8649 description { state: "icononly" 0.0;
8650 inherit: "default" 0.0;
8653 part { name: "padding_before_text";
8657 description { state: "default" 0.0; //when only icon or no icon is there
8662 to_y: "padding_left_top";
8667 to_y: "padding_right_bottom";
8670 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
8674 part { name: "elm.swallow.content";
8678 description { state: "default" 0.0;
8683 to: "padding_left_top";
8687 to_x: "padding_left_top";
8688 to_y: "padding_right_bottom";
8692 description { state: "visible" 0.0;
8694 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8695 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
8699 to_x: "padding_before_text";
8700 to_y: "padding_left_top";
8704 to_x: "padding_before_text";
8705 to_y: "padding_right_bottom";
8708 description { state: "icononly" 0.0;
8709 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8710 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
8714 part { name: "elm.text";
8719 description { state: "default" 0.0;
8723 to_x: "padding_after_icon";
8724 to_y: "padding_left_top";
8728 to: "padding_right_bottom";
8730 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
8732 font: "SLP:style=Medium";
8733 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
8738 description { state: "visible" 0.0;
8739 inherit: "default" 0.0;
8742 description { state: "clicked" 0.0;
8743 inherit: "default" 0.0;
8745 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8747 description { state: "disabled" 0.0;
8748 inherit: "default" 0.0;
8751 description { state: "disabled_visible" 0.0;
8752 inherit: "default" 0.0;
8753 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
8756 description { state: "focused" 0.0;
8757 inherit: "default" 0.0;
8759 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
8762 part { name: "over2";
8765 ignore_flags: ON_HOLD;
8766 description { state: "default" 0.0;
8770 part { name: "over3";
8773 description { state: "default" 0.0;
8777 part { name: "clipper";
8779 description { state: "default" 0.0;
8780 color: 255 255 255 255;
8783 part { name: "disabler";
8785 description { state: "default" 0.0;
8789 description { state: "disabled" 0.0;
8790 inherit: "default" 0.0;
8796 program { name: "button_click";
8797 signal: "mouse,down,1";
8799 action: SIGNAL_EMIT "elm,action,press" "";
8800 after: "button_click_anim";
8802 program { name: "button_click_anim";
8803 action: STATE_SET "clicked" 0.0;
8804 target: "button_image";
8805 after: "text_clicked";
8807 program { name: "text_clicked";
8811 get_state(PART:"elm.text", st, 30, vl);
8812 if (!strcmp(st, "visible"))
8813 set_state(PART:"elm.text", "clicked", 0.0);
8816 program { name: "button_unpress";
8817 action: SIGNAL_EMIT "elm,action,unpress" "";
8819 program { name: "button_mouseout_clicked";
8820 signal: "mouse,up,1";
8825 get_state(PART:"elm.swallow.content", st, 30, vl);
8826 if (strcmp(st, "icononly"))
8828 emit("elm,action,default,text,set", "");
8829 set_state(PART:"elm.text", "visible", 0.0);
8831 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8832 set_state(PART:"button_image", "default", 0.0);
8834 after: button_unpress;
8836 program { name: "button_unclick3";
8837 signal: "mouse,clicked,1";
8839 action: SIGNAL_EMIT "elm,action,click" "";
8841 program { name: "text_show";
8842 signal: "elm,state,text,visible";
8847 get_state(PART:"elm.swallow.content", st, 30, vl);
8848 if (!strcmp(st, "icononly"))
8850 set_state(PART:"elm.swallow.content", "visible", 0.0);
8851 set_state(PART:"icon_rect", "visible", 0.0);
8852 set_state(PART:"padding_after_icon", "visible", 0.0);
8853 set_state(PART:"bg", "visible", 0.0);
8855 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8856 set_state(PART:"elm.text", "visible", 0.0);
8858 set_state(PART:"elm.text", "disabled_visible", 0.0);
8861 program { name: "text_hide";
8862 signal: "elm,state,text,hidden";
8867 get_state(PART:"elm.swallow.content", st, 30, vl);
8868 if (!strcmp(st, "visible"))
8870 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8871 set_state(PART:"icon_rect", "icononly", 0.0);
8872 set_state(PART:"padding_after_icon", "icononly", 0.0);
8873 set_state(PART:"bg", "icononly", 0.0);
8875 set_state(PART:"elm.text", "default", 0.0);
8878 program { name: "icon_show";
8879 signal: "elm,state,icon,visible";
8884 get_state(PART:"elm.text", st, 30, vl);
8885 if (!strcmp(st, "visible"))
8887 set_state(PART:"elm.swallow.content", "visible", 0.0);
8888 set_state(PART:"icon_rect", "visible", 0.0);
8889 set_state(PART:"padding_after_icon", "visible", 0.0);
8890 set_state(PART:"bg", "visible", 0.0);
8894 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8895 set_state(PART:"icon_rect", "icononly", 0.0);
8896 set_state(PART:"padding_after_icon", "icononly", 0.0);
8897 set_state(PART:"bg", "icononly", 0.0);
8901 program { name: "icon_hide";
8902 signal: "elm,state,icon,hidden";
8904 action: STATE_SET "default" 0.0;
8905 target: "elm.swallow.content";
8906 target: "padding_after_icon";
8907 target: "icon_rect";
8910 program { name: "disable";
8911 signal: "elm,state,disabled";
8913 action: STATE_SET "disabled" 0.0;
8914 target: "button_image";
8916 after: "disable_text";
8918 program { name: "disable_text";
8922 get_state(PART:"elm.text", st, 30, vl);
8923 if (!strcmp(st, "visible"))
8924 set_state(PART:"elm.text", "disabled_visible", 0.0);
8926 set_state(PART:"elm.text", "disabled", 0.0);
8927 set_int(button_state, BUTTON_STATE_DISABLED);
8930 program { name: "enable";
8931 signal: "elm,state,enabled";
8933 action: STATE_SET "default" 0.0;
8934 target: "button_image";
8936 after: "enable_text";
8938 program { name: "enable_text";
8942 get_state(PART:"elm.text", st, 30, vl);
8943 if (!strcmp(st, "disabled_visible"))
8944 set_state(PART:"elm.text", "visible", 0.0);
8946 set_state(PART:"elm.text", "default", 0.0);
8947 set_int(button_state, BUTTON_STATE_ENABLED);
8950 program { name: "focused";
8951 //signal: "elm,action,focus";
8953 action: STATE_SET "focused" 0.0;
8954 target: "button_image";
8957 program { name: "unfocused";
8958 //signal: "elm,action,unfocus";
8960 action: STATE_SET "default" 0.0;
8961 target: "button_image";
8962 after: "unfocus_text";
8964 program { name: "unfocus_text";
8965 action: STATE_SET "visible" 0.0;
8971 ///////////////////////////////////////////////////////////////////////////////////////
8972 group { name: "elm/button/base/expandable_number";
8973 alias: "elm/button/base/text_only/expandable_number";
8975 image: "00_button_05_normal.png" COMP;
8976 image: "00_button_05_press.png" COMP;
8977 image: "00_button_05_dim.png" COMP;
8978 image: "00_arrow_expand.png" COMP;
8979 image: "00_arrow_expand_press.png" COMP;
8980 image: "00_arrow_expand_dim.png" COMP;
8983 public button_state = BUTTON_STATE_ENABLED;
8986 part { name: "button_image";
8989 description { state: "default" 0.0;
8990 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8991 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
8993 normal: "00_button_05_normal.png";
8994 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
8998 description { state: "clicked" 0.0;
8999 inherit: "default" 0.0;
9000 image.normal: "00_button_05_press.png";
9002 description { state: "disabled" 0.0;
9003 inherit: "default" 0.0;
9004 image.normal: "00_button_05_dim.png";
9006 description { state: "focused" 0.0;
9007 inherit: "default" 0.0;
9008 image.normal: "00_button_05_press.png";
9012 name: "padding_left_top";
9016 description { state: "default" 0.0;
9018 rel1.relative: 0.0 0.0;
9019 rel2.relative: 0.0 0.0;
9020 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9026 name: "padding_right_bottom";
9030 description { state: "default" 0.0;
9032 rel1.relative: 1.0 1.0;
9033 rel2.relative: 1.0 1.0;
9034 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9044 description { state: "default" 0.0;
9046 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9047 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9049 rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
9050 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
9056 name: "arrow_expand";
9059 description { state: "default" 0.0;
9061 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9062 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9064 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
9065 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9066 image.normal:"00_arrow_expand.png";
9068 description { state: "clicked" 0.0;
9069 inherit: "default" 0.0;
9070 image.normal:"00_arrow_expand_press.png";
9072 description { state: "disabled" 0.0;
9073 inherit: "default" 0.0;
9074 image.normal:"00_arrow_expand_dim.png";
9077 part { name: "elm.text";
9081 description { state: "default" 0.0;
9083 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9084 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9086 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9087 rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
9089 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9091 font: "SLP:style=Medium";
9092 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9099 description { state: "visible" 0.0;
9100 inherit: "default" 0.0;
9103 description { state: "clicked" 0.0;
9104 inherit: "default" 0.0;
9106 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9108 description { state: "disabled" 0.0;
9109 inherit: "default" 0.0;
9112 description { state: "disabled_visible" 0.0;
9113 inherit: "default" 0.0;
9114 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9117 description { state: "focused" 0.0;
9118 inherit: "default" 0.0;
9120 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9123 part { name: "over2";
9127 ignore_flags: ON_HOLD;
9128 description { state: "default" 0.0;
9132 part { name: "over3";
9136 description { state: "default" 0.0;
9140 part { name: "disabler";
9142 description { state: "default" 0.0;
9146 description { state: "disabled" 0.0;
9147 inherit: "default" 0.0;
9153 program { name: "button_click";
9154 signal: "mouse,down,1";
9156 action: SIGNAL_EMIT "elm,action,press" "";
9157 after: "button_click_anim";
9159 program { name: "button_click_anim";
9160 action: STATE_SET "clicked" 0.0;
9161 target: "button_image";
9162 target: "arrow_expand";
9163 after: "text_clicked";
9165 program { name: "text_clicked";
9169 get_state(PART:"elm.text", st, 30, vl);
9170 if (!strcmp(st, "visible"))
9171 set_state(PART:"elm.text", "clicked", 0.0);
9174 program { name: "button_unpress";
9175 action: SIGNAL_EMIT "elm,action,unpress" "";
9177 program { name: "button_mouseout_clicked";
9178 signal: "mouse,up,1";
9181 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9183 set_state(PART:"button_image", "default", 0.0);
9184 set_state(PART:"elm.text", "visible", 0.0);
9185 set_state(PART:"arrow_expand", "default", 0.0);
9188 after: button_unpress;
9190 program { name: "button_unclick3";
9191 signal: "mouse,clicked,1";
9193 action: SIGNAL_EMIT "elm,action,click" "";
9195 program { name: "text_show";
9196 signal: "elm,state,text,visible";
9199 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9200 set_state(PART:"elm.text", "visible", 0.0);
9202 set_state(PART:"elm.text", "disabled_visible", 0.0);
9205 program { name: "text_hide";
9206 signal: "elm,state,text,hidden";
9209 set_state(PART:"elm.text", "default", 0.0);
9212 program { name: "disable";
9213 signal: "elm,state,disabled";
9215 action: STATE_SET "disabled" 0.0;
9216 target: "button_image";
9218 after: "disable_text";
9220 program { name: "disable_text";
9224 get_state(PART:"elm.text", st, 30, vl);
9225 if (!strcmp(st, "visible"))
9226 set_state(PART:"elm.text", "disabled_visible", 0.0);
9228 set_state(PART:"elm.text", "disabled", 0.0);
9229 set_int(button_state, BUTTON_STATE_DISABLED);
9232 program { name: "enable";
9233 signal: "elm,state,enabled";
9235 action: STATE_SET "default" 0.0;
9236 target: "button_image";
9238 after: "enable_text";
9240 program { name: "enable_text";
9244 get_state(PART:"elm.text", st, 30, vl);
9245 if (!strcmp(st, "disabled_visible"))
9246 set_state(PART:"elm.text", "visible", 0.0);
9248 set_state(PART:"elm.text", "default", 0.0);
9249 set_int(button_state, BUTTON_STATE_ENABLED);
9252 program { name: "focused";
9253 //signal: "elm,action,focus";
9255 action: STATE_SET "focused" 0.0;
9256 target: "button_image";
9259 program { name: "unfocused";
9260 //signal: "elm,action,unfocus";
9262 action: STATE_SET "default" 0.0;
9263 target: "button_image";
9264 after: "unfocus_text";
9266 program { name: "unfocus_text";
9267 action: STATE_SET "visible" 0.0;
9273 #undef BUTTON_STATE_ENABLED
9274 #undef BUTTON_STATE_DISABLED