2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
24 name: "touch_sound" AS_IS;
25 source: "S_Touch_30ms.wav";
29 ///////////////////////////////////////////////////////////////////////////////////////
30 group { name: "elm/button/base/style1";
31 alias: "elm/button/base/text_only/style1";
32 alias: "elm/button/base/center";
33 alias: "elm/button/base/icon_and_text/center";
34 alias: "elm/button/base/nocontents/search_button";
36 image: "00_button_01_normal.png" COMP;
37 image: "00_button_01_normal_press.png" COMP;
38 image: "00_button_01_normal_dim.png" COMP;
39 image: "00_button_01_normal_Focus.png" COMP;
42 public button_state = BUTTON_STATE_ENABLED;
45 part { name: "button_image";
47 description { state: "default" 0.0;
49 normal: "00_button_01_normal.png";
50 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
54 description { state: "clicked" 0.0;
55 inherit: "default" 0.0;
56 image.normal: "00_button_01_normal_press.png";
58 description { state: "disabled" 0.0;
59 inherit: "default" 0.0;
60 image.normal: "00_button_01_normal_dim.png";
62 description { state: "focused" 0.0;
63 inherit: "default" 0.0;
64 image.normal: "00_button_01_normal_Focus.png";
67 part { name: "padding_left_top";
71 description { state: "default" 0.0;
73 rel2.relative: 0.0 0.0;
74 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
83 description { state: "default" 0.0;
84 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
89 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
91 description { state: "icononly" 0.0;
92 inherit: "default" 0.0;
93 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
96 part { name: "padding_right_bottom";
100 description { state: "default" 0.0;
102 rel1.relative: 1.0 1.0;
103 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
108 part { name: "icon_rect";
112 description { state: "default" 0.0;
118 to: "padding_left_top";
122 to_x: "padding_left_top";
123 to_y: "padding_right_bottom";
127 description { state: "visible" 0.0;
129 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
130 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
134 to: "padding_left_top";
138 to_x: "padding_left_top";
139 to_y: "padding_right_bottom";
143 description { state: "icononly" 0.0;
144 inherit: "default" 0.0;
147 part { name: "padding_after_icon";
151 description { state: "default" 0.0; //when only icon or no icon is there
157 rel2.to: "icon_rect";
162 description { state: "visible" 0.0;
169 rel2.to: "icon_rect";
171 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
173 description { state: "icononly" 0.0;
174 inherit: "default" 0.0;
177 part { name: "padding_before_text";
181 description { state: "default" 0.0; //when only icon or no icon is there
186 to_y: "padding_left_top";
191 to_y: "padding_right_bottom";
194 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
198 part { name: "elm.swallow.content";
202 description { state: "default" 0.0;
207 to: "padding_left_top";
211 to_x: "padding_left_top";
212 to_y: "padding_right_bottom";
216 description { state: "visible" 0.0;
218 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
219 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
223 to_x: "padding_before_text";
224 to_y: "padding_left_top";
228 to_x: "padding_before_text";
229 to_y: "padding_right_bottom";
232 description { state: "icononly" 0.0;
233 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
234 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
237 part { name: "elm.text";
242 description { state: "default" 0.0;
246 to_x: "padding_after_icon";
247 to_y: "padding_left_top";
251 to: "padding_right_bottom";
253 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
255 font: "SLP:style=Medium";
256 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
259 text_class: "slp_medium";
262 description { state: "visible" 0.0;
263 inherit: "default" 0.0;
266 description { state: "clicked" 0.0;
267 inherit: "default" 0.0;
269 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
271 description { state: "disabled" 0.0;
272 inherit: "default" 0.0;
275 description { state: "disabled_visible" 0.0;
276 inherit: "default" 0.0;
277 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
280 description { state: "focused" 0.0;
281 inherit: "default" 0.0;
283 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
286 part { name: "over2";
289 ignore_flags: ON_HOLD;
290 description { state: "default" 0.0;
294 part { name: "over3";
297 description { state: "default" 0.0;
301 part { name: "clipper";
303 description { state: "default" 0.0;
304 color: 255 255 255 255;
307 part { name: "disabler";
309 description { state: "default" 0.0;
313 description { state: "disabled" 0.0;
314 inherit: "default" 0.0;
320 program { name: "button_click";
321 signal: "mouse,down,1";
323 action: SIGNAL_EMIT "elm,action,press" "";
324 after: "button_click_anim";
326 program { name: "button_click_anim";
327 action: STATE_SET "clicked" 0.0;
328 target: "button_image";
329 after: "text_clicked";
331 program { name: "text_clicked";
335 get_state(PART:"elm.text", st, 30, vl);
336 if (!strcmp(st, "visible"))
337 set_state(PART:"elm.text", "clicked", 0.0);
340 program { name: "button_unpress";
341 action: SIGNAL_EMIT "elm,action,unpress" "";
343 program { name: "button_mouseout_clicked";
344 signal: "mouse,up,1";
349 get_state(PART:"elm.swallow.content", st, 30, vl);
350 if (strcmp(st, "icononly"))
352 emit("elm,action,default,text,set", "");
353 set_state(PART:"elm.text", "visible", 0.0);
355 if (get_int(button_state) != BUTTON_STATE_DISABLED)
356 set_state(PART:"button_image", "default", 0.0);
358 after: button_unpress;
360 program { name: "touch_snd";
361 signal: "mouse,clicked,1";
363 action: PLAY_SAMPLE "touch_sound" 1.0;
364 after: button_unclick3;
366 program { name: "button_unclick3";
367 action: SIGNAL_EMIT "elm,action,click" "";
369 program { name: "text_show";
370 signal: "elm,state,text,visible";
375 get_state(PART:"elm.swallow.content", st, 30, vl);
376 if (!strcmp(st, "icononly"))
378 set_state(PART:"elm.swallow.content", "visible", 0.0);
379 set_state(PART:"icon_rect", "visible", 0.0);
380 set_state(PART:"padding_after_icon", "visible", 0.0);
381 set_state(PART:"bg", "visible", 0.0);
383 if (get_int(button_state) != BUTTON_STATE_DISABLED)
384 set_state(PART:"elm.text", "visible", 0.0);
386 set_state(PART:"elm.text", "disabled_visible", 0.0);
389 program { name: "text_hide";
390 signal: "elm,state,text,hidden";
395 get_state(PART:"elm.swallow.content", st, 30, vl);
396 if (!strcmp(st, "visible"))
398 set_state(PART:"elm.swallow.content", "icononly", 0.0);
399 set_state(PART:"icon_rect", "icononly", 0.0);
400 set_state(PART:"padding_after_icon", "icononly", 0.0);
401 set_state(PART:"bg", "icononly", 0.0);
403 set_state(PART:"elm.text", "default", 0.0);
406 program { name: "icon_show";
407 signal: "elm,state,icon,visible";
412 get_state(PART:"elm.text", st, 30, vl);
413 if (!strcmp(st, "visible"))
415 set_state(PART:"elm.swallow.content", "visible", 0.0);
416 set_state(PART:"icon_rect", "visible", 0.0);
417 set_state(PART:"padding_after_icon", "visible", 0.0);
418 set_state(PART:"bg", "visible", 0.0);
422 set_state(PART:"elm.swallow.content", "icononly", 0.0);
423 set_state(PART:"icon_rect", "icononly", 0.0);
424 set_state(PART:"padding_after_icon", "icononly", 0.0);
425 set_state(PART:"bg", "icononly", 0.0);
429 program { name: "icon_hide";
430 signal: "elm,state,icon,hidden";
432 action: STATE_SET "default" 0.0;
433 target: "elm.swallow.content";
434 target: "padding_after_icon";
438 program { name: "disable";
439 signal: "elm,state,disabled";
441 action: STATE_SET "disabled" 0.0;
442 target: "button_image";
444 after: "disable_text";
446 program { name: "disable_text";
450 get_state(PART:"elm.text", st, 30, vl);
451 if (!strcmp(st, "visible"))
452 set_state(PART:"elm.text", "disabled_visible", 0.0);
454 set_state(PART:"elm.text", "disabled", 0.0);
455 set_int(button_state, BUTTON_STATE_DISABLED);
458 program { name: "enable";
459 signal: "elm,state,enabled";
461 action: STATE_SET "default" 0.0;
462 target: "button_image";
464 after: "enable_text";
466 program { name: "enable_text";
470 get_state(PART:"elm.text", st, 30, vl);
471 if (!strcmp(st, "disabled_visible"))
472 set_state(PART:"elm.text", "visible", 0.0);
474 set_state(PART:"elm.text", "default", 0.0);
475 set_int(button_state, BUTTON_STATE_ENABLED);
478 program { name: "focused";
479 //signal: "elm,action,focus";
481 action: STATE_SET "focused" 0.0;
482 target: "button_image";
485 program { name: "unfocused";
486 //signal: "elm,action,unfocus";
488 action: STATE_SET "default" 0.0;
489 target: "button_image";
490 after: "unfocus_text";
492 program { name: "unfocus_text";
493 action: STATE_SET "visible" 0.0;
499 //////////////////////////////////////////////////////////////
500 group { name: "elm/button/base/style1/auto_expand";
502 image: "00_button_01_normal.png" COMP;
503 image: "00_button_01_normal_press.png" COMP;
504 image: "00_button_01_normal_dim.png" COMP;
505 image: "00_button_01_normal_Focus.png" COMP;
508 public button_state = BUTTON_STATE_ENABLED;
511 part { name: "button_image";
513 description { state: "default" 0.0;
515 normal: "00_button_01_normal.png";
516 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
520 description { state: "clicked" 0.0;
521 inherit: "default" 0.0;
522 image.normal: "00_button_01_normal_press.png";
524 description { state: "disabled" 0.0;
525 inherit: "default" 0.0;
526 image.normal: "00_button_01_normal_dim.png";
528 description { state: "focused" 0.0;
529 inherit: "default" 0.0;
530 image.normal: "00_button_01_normal_Focus.png";
533 part { name: "padding_left_top";
537 description { state: "default" 0.0;
539 rel2.relative: 0.0 0.0;
540 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
549 description { state: "default" 0.0;
550 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
553 description { state: "visible" 0.0;
554 inherit: "default" 0.0;
555 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
557 description { state: "icononly" 0.0;
558 inherit: "default" 0.0;
559 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
562 part { name: "padding_right_bottom";
566 description { state: "default" 0.0;
568 rel1.relative: 1.0 1.0;
569 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
574 part { name: "icon_rect";
578 description { state: "default" 0.0;
584 to: "padding_left_top";
588 to_x: "padding_left_top";
589 to_y: "padding_right_bottom";
593 description { state: "visible" 0.0;
595 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
596 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
600 to: "padding_left_top";
604 to_x: "padding_left_top";
605 to_y: "padding_right_bottom";
609 description { state: "icononly" 0.0;
610 inherit: "default" 0.0;
613 part { name: "padding_after_icon";
617 description { state: "default" 0.0; //when only icon or no icon is there
623 rel2.to: "icon_rect";
628 description { state: "visible" 0.0;
635 rel2.to: "icon_rect";
637 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
639 description { state: "icononly" 0.0;
640 inherit: "default" 0.0;
643 part { name: "padding_before_text";
647 description { state: "default" 0.0; //when only icon or no icon is there
652 to_y: "padding_left_top";
657 to_y: "padding_right_bottom";
660 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
664 part { name: "elm.swallow.content";
668 description { state: "default" 0.0;
673 to: "padding_left_top";
677 to_x: "padding_left_top";
678 to_y: "padding_right_bottom";
682 description { state: "visible" 0.0;
684 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
685 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
689 to_x: "padding_before_text";
690 to_y: "padding_left_top";
694 to_x: "padding_before_text";
695 to_y: "padding_right_bottom";
698 description { state: "icononly" 0.0;
699 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
700 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
703 part { name: "elm.text";
708 description { state: "default" 0.0;
712 to_x: "padding_after_icon";
713 to_y: "padding_left_top";
717 to: "padding_right_bottom";
719 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
721 font: "SLP:style=Medium";
722 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
725 text_class: "slp_medium";
728 description { state: "visible" 0.0;
729 inherit: "default" 0.0;
732 description { state: "clicked" 0.0;
733 inherit: "default" 0.0;
735 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
737 description { state: "disabled" 0.0;
738 inherit: "default" 0.0;
741 description { state: "disabled_visible" 0.0;
742 inherit: "default" 0.0;
743 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
746 description { state: "focused" 0.0;
747 inherit: "default" 0.0;
749 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
752 part { name: "over2";
755 ignore_flags: ON_HOLD;
756 description { state: "default" 0.0;
760 part { name: "over3";
763 description { state: "default" 0.0;
767 part { name: "clipper";
769 description { state: "default" 0.0;
770 color: 255 255 255 255;
773 part { name: "disabler";
775 description { state: "default" 0.0;
779 description { state: "disabled" 0.0;
780 inherit: "default" 0.0;
786 program { name: "button_click";
787 signal: "mouse,down,1";
789 action: SIGNAL_EMIT "elm,action,press" "";
790 after: "button_click_anim";
792 program { name: "button_click_anim";
793 action: STATE_SET "clicked" 0.0;
794 target: "button_image";
795 after: "text_clicked";
797 program { name: "text_clicked";
801 get_state(PART:"elm.text", st, 30, vl);
802 if (!strcmp(st, "visible"))
803 set_state(PART:"elm.text", "clicked", 0.0);
806 program { name: "button_unpress";
807 action: SIGNAL_EMIT "elm,action,unpress" "";
809 program { name: "button_mouseout_clicked";
810 signal: "mouse,up,1";
815 get_state(PART:"elm.swallow.content", st, 30, vl);
816 if (strcmp(st, "icononly"))
818 emit("elm,action,default,text,set", "");
819 set_state(PART:"elm.text", "visible", 0.0);
821 if (get_int(button_state) != BUTTON_STATE_DISABLED)
822 set_state(PART:"button_image", "default", 0.0);
824 after: button_unpress;
826 program { name: "touch_snd";
827 signal: "mouse,clicked,1";
829 action: PLAY_SAMPLE "touch_sound" 1.0;
830 after: button_unclick3;
832 program { name: "button_unclick3";
833 action: SIGNAL_EMIT "elm,action,click" "";
835 program { name: "text_show";
836 signal: "elm,state,text,visible";
841 get_state(PART:"elm.swallow.content", st, 30, vl);
842 if (!strcmp(st, "icononly"))
844 set_state(PART:"elm.swallow.content", "visible", 0.0);
845 set_state(PART:"icon_rect", "visible", 0.0);
846 set_state(PART:"padding_after_icon", "visible", 0.0);
847 set_state(PART:"bg", "visible", 0.0);
849 if (get_int(button_state) != BUTTON_STATE_DISABLED)
850 set_state(PART:"elm.text", "visible", 0.0);
852 set_state(PART:"elm.text", "disabled_visible", 0.0);
855 program { name: "text_hide";
856 signal: "elm,state,text,hidden";
861 get_state(PART:"elm.swallow.content", st, 30, vl);
862 if (!strcmp(st, "visible"))
864 set_state(PART:"elm.swallow.content", "icononly", 0.0);
865 set_state(PART:"icon_rect", "icononly", 0.0);
866 set_state(PART:"padding_after_icon", "icononly", 0.0);
867 set_state(PART:"bg", "icononly", 0.0);
869 set_state(PART:"elm.text", "default", 0.0);
872 program { name: "icon_show";
873 signal: "elm,state,icon,visible";
878 get_state(PART:"elm.text", st, 30, vl);
879 if (!strcmp(st, "visible"))
881 set_state(PART:"elm.swallow.content", "visible", 0.0);
882 set_state(PART:"icon_rect", "visible", 0.0);
883 set_state(PART:"padding_after_icon", "visible", 0.0);
884 set_state(PART:"bg", "visible", 0.0);
888 set_state(PART:"elm.swallow.content", "icononly", 0.0);
889 set_state(PART:"icon_rect", "icononly", 0.0);
890 set_state(PART:"padding_after_icon", "icononly", 0.0);
891 set_state(PART:"bg", "icononly", 0.0);
895 program { name: "icon_hide";
896 signal: "elm,state,icon,hidden";
898 action: STATE_SET "default" 0.0;
899 target: "elm.swallow.content";
900 target: "padding_after_icon";
904 program { name: "disable";
905 signal: "elm,state,disabled";
907 action: STATE_SET "disabled" 0.0;
908 target: "button_image";
910 after: "disable_text";
912 program { name: "disable_text";
916 get_state(PART:"elm.text", st, 30, vl);
917 if (!strcmp(st, "visible"))
918 set_state(PART:"elm.text", "disabled_visible", 0.0);
920 set_state(PART:"elm.text", "disabled", 0.0);
921 set_int(button_state, BUTTON_STATE_DISABLED);
924 program { name: "enable";
925 signal: "elm,state,enabled";
927 action: STATE_SET "default" 0.0;
928 target: "button_image";
930 after: "enable_text";
932 program { name: "enable_text";
936 get_state(PART:"elm.text", st, 30, vl);
937 if (!strcmp(st, "disabled_visible"))
938 set_state(PART:"elm.text", "visible", 0.0);
940 set_state(PART:"elm.text", "default", 0.0);
941 set_int(button_state, BUTTON_STATE_ENABLED);
944 program { name: "focused";
945 //signal: "elm,action,focus";
947 action: STATE_SET "focused" 0.0;
948 target: "button_image";
951 program { name: "unfocused";
952 //signal: "elm,action,unfocus";
954 action: STATE_SET "default" 0.0;
955 target: "button_image";
956 after: "unfocus_text";
958 program { name: "unfocus_text";
959 action: STATE_SET "visible" 0.0;
965 //////////////////////////////////////////////////////////////////////////////////////
966 group { name: "elm/button/base/datetime_ampm/default";
967 inherit: "elm/button/base/style1/auto_expand";
969 public button_state = BUTTON_STATE_ENABLED;
976 description { state: "default" 0.0;
980 description { state: "visible" 0.0;
981 inherit: "default" 0.0;
982 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
984 description { state: "icononly" 0.0;
985 inherit: "default" 0.0;
991 //////////////////////////////////////////////////////////////////////////////////////
992 group { name: "elm/button/base/style1/multiline";
994 image: "00_button_01_normal.png" COMP;
995 image: "00_button_01_normal_press.png" COMP;
996 image: "00_button_01_normal_dim.png" COMP;
997 image: "00_button_01_normal_Focus.png" COMP;
1000 style { name: "btn_style1_multiline";
1001 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1008 public button_state = BUTTON_STATE_ENABLED;
1011 part { name: "button_image";
1013 description { state: "default" 0.0;
1015 normal: "00_button_01_normal.png";
1016 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
1020 description { state: "clicked" 0.0;
1021 inherit: "default" 0.0;
1022 image.normal: "00_button_01_normal_press.png";
1024 description { state: "disabled" 0.0;
1025 inherit: "default" 0.0;
1026 image.normal: "00_button_01_normal_dim.png";
1028 description { state: "focused" 0.0;
1029 inherit: "default" 0.0;
1030 image.normal: "00_button_01_normal_Focus.png";
1033 part { name: "padding_left_top";
1037 description { state: "default" 0.0;
1039 rel2.relative: 0.0 0.0;
1040 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1049 description { state: "default" 0.0;
1050 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1053 description { state: "visible" 0.0;
1054 inherit: "default" 0.0;
1055 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1057 description { state: "icononly" 0.0;
1058 inherit: "default" 0.0;
1059 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1062 part { name: "padding_right_bottom";
1066 description { state: "default" 0.0;
1068 rel1.relative: 1.0 1.0;
1069 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1074 part { name: "icon_rect";
1078 description { state: "default" 0.0;
1084 to: "padding_left_top";
1088 to_x: "padding_left_top";
1089 to_y: "padding_right_bottom";
1093 description { state: "visible" 0.0;
1095 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1096 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1100 to: "padding_left_top";
1104 to_x: "padding_left_top";
1105 to_y: "padding_right_bottom";
1109 description { state: "icononly" 0.0;
1110 inherit: "default" 0.0;
1113 part { name: "padding_after_icon";
1117 description { state: "default" 0.0; //when only icon or no icon is there
1123 rel2.to: "icon_rect";
1128 description { state: "visible" 0.0;
1135 rel2.to: "icon_rect";
1137 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1139 description { state: "icononly" 0.0;
1140 inherit: "default" 0.0;
1143 part { name: "padding_before_text";
1147 description { state: "default" 0.0; //when only icon or no icon is there
1152 to_y: "padding_left_top";
1157 to_y: "padding_right_bottom";
1160 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1164 part { name: "elm.swallow.content";
1168 description { state: "default" 0.0;
1173 to: "padding_left_top";
1177 to_x: "padding_left_top";
1178 to_y: "padding_right_bottom";
1182 description { state: "visible" 0.0;
1184 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1185 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1189 to_x: "padding_before_text";
1190 to_y: "padding_left_top";
1194 to_x: "padding_before_text";
1195 to_y: "padding_right_bottom";
1198 description { state: "icononly" 0.0;
1199 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1200 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1203 part { name: "elm.text";
1208 description { state: "default" 0.0;
1212 to_x: "padding_after_icon";
1213 to_y: "padding_left_top";
1217 to: "padding_right_bottom";
1219 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1221 style: "btn_style1_multiline";
1226 description { state: "visible" 0.0;
1227 inherit: "default" 0.0;
1230 description { state: "clicked" 0.0;
1231 inherit: "default" 0.0;
1233 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1235 description { state: "disabled" 0.0;
1236 inherit: "default" 0.0;
1239 description { state: "disabled_visible" 0.0;
1240 inherit: "default" 0.0;
1241 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1244 description { state: "focused" 0.0;
1245 inherit: "default" 0.0;
1247 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1250 part { name: "over2";
1253 ignore_flags: ON_HOLD;
1254 description { state: "default" 0.0;
1258 part { name: "over3";
1261 description { state: "default" 0.0;
1265 part { name: "clipper";
1267 description { state: "default" 0.0;
1268 color: 255 255 255 255;
1271 part { name: "disabler";
1273 description { state: "default" 0.0;
1277 description { state: "disabled" 0.0;
1278 inherit: "default" 0.0;
1284 program { name: "button_click";
1285 signal: "mouse,down,1";
1287 action: SIGNAL_EMIT "elm,action,press" "";
1288 after: "button_click_anim";
1290 program { name: "button_click_anim";
1291 action: STATE_SET "clicked" 0.0;
1292 target: "button_image";
1293 after: "text_clicked";
1295 program { name: "text_clicked";
1299 get_state(PART:"elm.text", st, 30, vl);
1300 if (!strcmp(st, "visible"))
1301 set_state(PART:"elm.text", "clicked", 0.0);
1304 program { name: "button_unpress";
1305 action: SIGNAL_EMIT "elm,action,unpress" "";
1307 program { name: "button_mouseout_clicked";
1308 signal: "mouse,up,1";
1313 get_state(PART:"elm.swallow.content", st, 30, vl);
1314 if (strcmp(st, "icononly"))
1316 emit("elm,action,default,text,set", "");
1317 set_state(PART:"elm.text", "visible", 0.0);
1319 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1320 set_state(PART:"button_image", "default", 0.0);
1322 after: button_unpress;
1324 program { name: "touch_snd";
1325 signal: "mouse,clicked,1";
1327 action: PLAY_SAMPLE "touch_sound" 1.0;
1328 after: button_unclick3;
1330 program { name: "button_unclick3";
1331 action: SIGNAL_EMIT "elm,action,click" "";
1333 program { name: "text_show";
1334 signal: "elm,state,text,visible";
1339 get_state(PART:"elm.swallow.content", st, 30, vl);
1340 if (!strcmp(st, "icononly"))
1342 set_state(PART:"elm.swallow.content", "visible", 0.0);
1343 set_state(PART:"icon_rect", "visible", 0.0);
1344 set_state(PART:"padding_after_icon", "visible", 0.0);
1345 set_state(PART:"bg", "visible", 0.0);
1347 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1348 set_state(PART:"elm.text", "visible", 0.0);
1350 set_state(PART:"elm.text", "disabled_visible", 0.0);
1353 program { name: "text_hide";
1354 signal: "elm,state,text,hidden";
1359 get_state(PART:"elm.swallow.content", st, 30, vl);
1360 if (!strcmp(st, "visible"))
1362 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1363 set_state(PART:"icon_rect", "icononly", 0.0);
1364 set_state(PART:"padding_after_icon", "icononly", 0.0);
1365 set_state(PART:"bg", "icononly", 0.0);
1367 set_state(PART:"elm.text", "default", 0.0);
1370 program { name: "icon_show";
1371 signal: "elm,state,icon,visible";
1376 get_state(PART:"elm.text", st, 30, vl);
1377 if (!strcmp(st, "visible"))
1379 set_state(PART:"elm.swallow.content", "visible", 0.0);
1380 set_state(PART:"icon_rect", "visible", 0.0);
1381 set_state(PART:"padding_after_icon", "visible", 0.0);
1382 set_state(PART:"bg", "visible", 0.0);
1386 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1387 set_state(PART:"icon_rect", "icononly", 0.0);
1388 set_state(PART:"padding_after_icon", "icononly", 0.0);
1389 set_state(PART:"bg", "icononly", 0.0);
1393 program { name: "icon_hide";
1394 signal: "elm,state,icon,hidden";
1396 action: STATE_SET "default" 0.0;
1397 target: "elm.swallow.content";
1398 target: "padding_after_icon";
1399 target: "icon_rect";
1402 program { name: "disable";
1403 signal: "elm,state,disabled";
1405 action: STATE_SET "disabled" 0.0;
1406 target: "button_image";
1408 after: "disable_text";
1410 program { name: "disable_text";
1414 get_state(PART:"elm.text", st, 30, vl);
1415 if (!strcmp(st, "visible"))
1416 set_state(PART:"elm.text", "disabled_visible", 0.0);
1418 set_state(PART:"elm.text", "disabled", 0.0);
1419 set_int(button_state, BUTTON_STATE_DISABLED);
1422 program { name: "enable";
1423 signal: "elm,state,enabled";
1425 action: STATE_SET "default" 0.0;
1426 target: "button_image";
1428 after: "enable_text";
1430 program { name: "enable_text";
1434 get_state(PART:"elm.text", st, 30, vl);
1435 if (!strcmp(st, "disabled_visible"))
1436 set_state(PART:"elm.text", "visible", 0.0);
1438 set_state(PART:"elm.text", "default", 0.0);
1439 set_int(button_state, BUTTON_STATE_ENABLED);
1442 program { name: "focused";
1443 //signal: "elm,action,focus";
1445 action: STATE_SET "focused" 0.0;
1446 target: "button_image";
1449 program { name: "unfocused";
1450 //signal: "elm,action,unfocus";
1452 action: STATE_SET "default" 0.0;
1453 target: "button_image";
1454 after: "unfocus_text";
1456 program { name: "unfocus_text";
1457 action: STATE_SET "visible" 0.0;
1463 ///////////////////////////////////////////////////////////////////////////////////////
1464 group { name: "elm/button/base/style2";
1465 alias: "elm/button/base/text_only/style2";
1467 image: "00_button_04_normal.png" COMP;
1468 image: "00_button_04_press.png" COMP;
1469 image: "00_button_04_dim.png" COMP;
1470 image: "00_button_04_normal_focus.png" COMP;
1473 public button_state = BUTTON_STATE_ENABLED;
1476 part { name: "button_image";
1478 description { state: "default" 0.0;
1480 normal: "00_button_04_normal.png";
1481 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1485 description { state: "clicked" 0.0;
1486 inherit: "default" 0.0;
1487 image.normal: "00_button_04_press.png";
1489 description { state: "disabled" 0.0;
1490 inherit: "default" 0.0;
1491 image.normal: "00_button_04_dim.png";
1493 description { state: "focused" 0.0;
1494 inherit: "default" 0.0;
1495 image.normal: "00_button_04_normal_focus.png";
1498 part { name: "padding_left_top";
1502 description { state: "default" 0.0;
1504 rel2.relative: 0.0 0.0;
1505 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1514 description { state: "default" 0.0;
1515 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1518 description { state: "visible" 0.0;
1519 inherit: "default" 0.0;
1520 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1522 description { state: "icononly" 0.0;
1523 inherit: "default" 0.0;
1524 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1527 part { name: "padding_right_bottom";
1531 description { state: "default" 0.0;
1533 rel1.relative: 1.0 1.0;
1534 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1539 part { name: "icon_rect";
1543 description { state: "default" 0.0;
1549 to: "padding_left_top";
1553 to_x: "padding_left_top";
1554 to_y: "padding_right_bottom";
1558 description { state: "visible" 0.0;
1560 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1561 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1565 to: "padding_left_top";
1569 to_x: "padding_left_top";
1570 to_y: "padding_right_bottom";
1574 description { state: "icononly" 0.0;
1575 inherit: "default" 0.0;
1578 part { name: "padding_after_icon";
1582 description { state: "default" 0.0; //when only icon or no icon is there
1588 rel2.to: "icon_rect";
1593 description { state: "visible" 0.0;
1600 rel2.to: "icon_rect";
1602 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1604 description { state: "icononly" 0.0;
1605 inherit: "default" 0.0;
1608 part { name: "padding_before_text";
1612 description { state: "default" 0.0; //when only icon or no icon is there
1617 to_y: "padding_left_top";
1622 to_y: "padding_right_bottom";
1625 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1629 part { name: "elm.swallow.content";
1633 description { state: "default" 0.0;
1638 to: "padding_left_top";
1642 to_x: "padding_left_top";
1643 to_y: "padding_right_bottom";
1647 description { state: "visible" 0.0;
1649 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1650 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1654 to_x: "padding_before_text";
1655 to_y: "padding_left_top";
1659 to_x: "padding_before_text";
1660 to_y: "padding_right_bottom";
1663 description { state: "icononly" 0.0;
1664 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1665 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1668 part { name: "elm.text";
1673 description { state: "default" 0.0;
1677 to_x: "padding_after_icon";
1678 to_y: "padding_left_top";
1682 to: "padding_right_bottom";
1684 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1686 font: "SLP:style=Medium";
1687 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1690 text_class: "slp_medium";
1693 description { state: "visible" 0.0;
1694 inherit: "default" 0.0;
1697 description { state: "clicked" 0.0;
1698 inherit: "default" 0.0;
1700 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1702 description { state: "disabled" 0.0;
1703 inherit: "default" 0.0;
1706 description { state: "disabled_visible" 0.0;
1707 inherit: "default" 0.0;
1708 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1711 description { state: "focused" 0.0;
1712 inherit: "default" 0.0;
1714 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1717 part { name: "over2";
1720 ignore_flags: ON_HOLD;
1721 description { state: "default" 0.0;
1725 part { name: "over3";
1728 description { state: "default" 0.0;
1732 part { name: "clipper";
1734 description { state: "default" 0.0;
1735 color: 255 255 255 255;
1738 part { name: "disabler";
1740 description { state: "default" 0.0;
1744 description { state: "disabled" 0.0;
1745 inherit: "default" 0.0;
1751 program { name: "button_click";
1752 signal: "mouse,down,1";
1754 action: SIGNAL_EMIT "elm,action,press" "";
1755 after: "button_click_anim";
1757 program { name: "button_click_anim";
1758 action: STATE_SET "clicked" 0.0;
1759 target: "button_image";
1760 after: "text_clicked";
1762 program { name: "text_clicked";
1766 get_state(PART:"elm.text", st, 30, vl);
1767 if (!strcmp(st, "visible"))
1768 set_state(PART:"elm.text", "clicked", 0.0);
1771 program { name: "button_unpress";
1772 action: SIGNAL_EMIT "elm,action,unpress" "";
1774 program { name: "button_mouseout_clicked";
1775 signal: "mouse,up,1";
1780 get_state(PART:"elm.swallow.content", st, 30, vl);
1781 if (strcmp(st, "icononly"))
1783 emit("elm,action,default,text,set", "");
1784 set_state(PART:"elm.text", "visible", 0.0);
1786 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1787 set_state(PART:"button_image", "default", 0.0);
1789 after: button_unpress;
1791 program { name: "touch_snd";
1792 signal: "mouse,clicked,1";
1794 action: PLAY_SAMPLE "touch_sound" 1.0;
1795 after: button_unclick3;
1797 program { name: "button_unclick3";
1798 action: SIGNAL_EMIT "elm,action,click" "";
1800 program { name: "text_show";
1801 signal: "elm,state,text,visible";
1806 get_state(PART:"elm.swallow.content", st, 30, vl);
1807 if (!strcmp(st, "icononly"))
1809 set_state(PART:"elm.swallow.content", "visible", 0.0);
1810 set_state(PART:"icon_rect", "visible", 0.0);
1811 set_state(PART:"padding_after_icon", "visible", 0.0);
1812 set_state(PART:"bg", "visible", 0.0);
1814 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1815 set_state(PART:"elm.text", "visible", 0.0);
1817 set_state(PART:"elm.text", "disabled_visible", 0.0);
1820 program { name: "text_hide";
1821 signal: "elm,state,text,hidden";
1826 get_state(PART:"elm.swallow.content", st, 30, vl);
1827 if (!strcmp(st, "visible"))
1829 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1830 set_state(PART:"icon_rect", "icononly", 0.0);
1831 set_state(PART:"padding_after_icon", "icononly", 0.0);
1832 set_state(PART:"bg", "icononly", 0.0);
1834 set_state(PART:"elm.text", "default", 0.0);
1837 program { name: "icon_show";
1838 signal: "elm,state,icon,visible";
1843 get_state(PART:"elm.text", st, 30, vl);
1844 if (!strcmp(st, "visible"))
1846 set_state(PART:"elm.swallow.content", "visible", 0.0);
1847 set_state(PART:"icon_rect", "visible", 0.0);
1848 set_state(PART:"padding_after_icon", "visible", 0.0);
1849 set_state(PART:"bg", "visible", 0.0);
1853 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1854 set_state(PART:"icon_rect", "icononly", 0.0);
1855 set_state(PART:"padding_after_icon", "icononly", 0.0);
1856 set_state(PART:"bg", "icononly", 0.0);
1860 program { name: "icon_hide";
1861 signal: "elm,state,icon,hidden";
1863 action: STATE_SET "default" 0.0;
1864 target: "elm.swallow.content";
1865 target: "padding_after_icon";
1866 target: "icon_rect";
1869 program { name: "disable";
1870 signal: "elm,state,disabled";
1872 action: STATE_SET "disabled" 0.0;
1873 target: "button_image";
1875 after: "disable_text";
1877 program { name: "disable_text";
1881 get_state(PART:"elm.text", st, 30, vl);
1882 if (!strcmp(st, "visible"))
1883 set_state(PART:"elm.text", "disabled_visible", 0.0);
1885 set_state(PART:"elm.text", "disabled", 0.0);
1886 set_int(button_state, BUTTON_STATE_DISABLED);
1889 program { name: "enable";
1890 signal: "elm,state,enabled";
1892 action: STATE_SET "default" 0.0;
1893 target: "button_image";
1895 after: "enable_text";
1897 program { name: "enable_text";
1901 get_state(PART:"elm.text", st, 30, vl);
1902 if (!strcmp(st, "disabled_visible"))
1903 set_state(PART:"elm.text", "visible", 0.0);
1905 set_state(PART:"elm.text", "default", 0.0);
1906 set_int(button_state, BUTTON_STATE_ENABLED);
1909 program { name: "focused";
1910 //signal: "elm,action,focus";
1912 action: STATE_SET "focused" 0.0;
1913 target: "button_image";
1916 program { name: "unfocused";
1917 //signal: "elm,action,unfocus";
1919 action: STATE_SET "default" 0.0;
1920 target: "button_image";
1921 after: "unfocus_text";
1923 program { name: "unfocus_text";
1924 action: STATE_SET "visible" 0.0;
1930 ///////////////////////////////////////////////////////////////////////////////////////
1931 group { name: "elm/button/base/style2/multiline";
1933 image: "00_button_04_normal.png" COMP;
1934 image: "00_button_04_press.png" COMP;
1935 image: "00_button_04_dim.png" COMP;
1936 image: "00_button_04_normal_focus.png" COMP;
1939 style { name: "btn_style2_multiline";
1940 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE2_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1947 public button_state = BUTTON_STATE_ENABLED;
1950 part { name: "button_image";
1952 description { state: "default" 0.0;
1954 normal: "00_button_04_normal.png";
1955 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1959 description { state: "clicked" 0.0;
1960 inherit: "default" 0.0;
1961 image.normal: "00_button_04_press.png";
1963 description { state: "disabled" 0.0;
1964 inherit: "default" 0.0;
1965 image.normal: "00_button_04_dim.png";
1967 description { state: "focused" 0.0;
1968 inherit: "default" 0.0;
1969 image.normal: "00_button_04_normal_focus.png";
1972 part { name: "padding_left_top";
1976 description { state: "default" 0.0;
1978 rel2.relative: 0.0 0.0;
1979 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1988 description { state: "default" 0.0;
1989 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1992 description { state: "visible" 0.0;
1993 inherit: "default" 0.0;
1994 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1996 description { state: "icononly" 0.0;
1997 inherit: "default" 0.0;
1998 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
2001 part { name: "padding_right_bottom";
2005 description { state: "default" 0.0;
2007 rel1.relative: 1.0 1.0;
2008 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
2013 part { name: "icon_rect";
2017 description { state: "default" 0.0;
2023 to: "padding_left_top";
2027 to_x: "padding_left_top";
2028 to_y: "padding_right_bottom";
2032 description { state: "visible" 0.0;
2034 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2035 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2039 to: "padding_left_top";
2043 to_x: "padding_left_top";
2044 to_y: "padding_right_bottom";
2048 description { state: "icononly" 0.0;
2049 inherit: "default" 0.0;
2052 part { name: "padding_after_icon";
2056 description { state: "default" 0.0; //when only icon or no icon is there
2062 rel2.to: "icon_rect";
2067 description { state: "visible" 0.0;
2074 rel2.to: "icon_rect";
2076 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2078 description { state: "icononly" 0.0;
2079 inherit: "default" 0.0;
2082 part { name: "padding_before_text";
2086 description { state: "default" 0.0; //when only icon or no icon is there
2091 to_y: "padding_left_top";
2096 to_y: "padding_right_bottom";
2099 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2103 part { name: "elm.swallow.content";
2107 description { state: "default" 0.0;
2112 to: "padding_left_top";
2116 to_x: "padding_left_top";
2117 to_y: "padding_right_bottom";
2121 description { state: "visible" 0.0;
2123 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2124 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2128 to_x: "padding_before_text";
2129 to_y: "padding_left_top";
2133 to_x: "padding_before_text";
2134 to_y: "padding_right_bottom";
2137 description { state: "icononly" 0.0;
2138 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2139 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2142 part { name: "elm.text";
2147 description { state: "default" 0.0;
2151 to_x: "padding_after_icon";
2152 to_y: "padding_left_top";
2156 to: "padding_right_bottom";
2158 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2160 style: "btn_style2_multiline";
2165 description { state: "visible" 0.0;
2166 inherit: "default" 0.0;
2169 description { state: "clicked" 0.0;
2170 inherit: "default" 0.0;
2172 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2174 description { state: "disabled" 0.0;
2175 inherit: "default" 0.0;
2178 description { state: "disabled_visible" 0.0;
2179 inherit: "default" 0.0;
2180 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2183 description { state: "focused" 0.0;
2184 inherit: "default" 0.0;
2186 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
2189 part { name: "over2";
2192 ignore_flags: ON_HOLD;
2193 description { state: "default" 0.0;
2197 part { name: "over3";
2200 description { state: "default" 0.0;
2204 part { name: "clipper";
2206 description { state: "default" 0.0;
2207 color: 255 255 255 255;
2210 part { name: "disabler";
2212 description { state: "default" 0.0;
2216 description { state: "disabled" 0.0;
2217 inherit: "default" 0.0;
2223 program { name: "button_click";
2224 signal: "mouse,down,1";
2226 action: SIGNAL_EMIT "elm,action,press" "";
2227 after: "button_click_anim";
2229 program { name: "button_click_anim";
2230 action: STATE_SET "clicked" 0.0;
2231 target: "button_image";
2232 after: "text_clicked";
2234 program { name: "text_clicked";
2238 get_state(PART:"elm.text", st, 30, vl);
2239 if (!strcmp(st, "visible"))
2240 set_state(PART:"elm.text", "clicked", 0.0);
2243 program { name: "button_unpress";
2244 action: SIGNAL_EMIT "elm,action,unpress" "";
2246 program { name: "button_mouseout_clicked";
2247 signal: "mouse,up,1";
2252 get_state(PART:"elm.swallow.content", st, 30, vl);
2253 if (strcmp(st, "icononly"))
2255 emit("elm,action,default,text,set", "");
2256 set_state(PART:"elm.text", "visible", 0.0);
2258 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2259 set_state(PART:"button_image", "default", 0.0);
2261 after: button_unpress;
2263 program { name: "touch_snd";
2264 signal: "mouse,clicked,1";
2266 action: PLAY_SAMPLE "touch_sound" 1.0;
2267 after: button_unclick3;
2269 program { name: "button_unclick3";
2270 action: SIGNAL_EMIT "elm,action,click" "";
2272 program { name: "text_show";
2273 signal: "elm,state,text,visible";
2278 get_state(PART:"elm.swallow.content", st, 30, vl);
2279 if (!strcmp(st, "icononly"))
2281 set_state(PART:"elm.swallow.content", "visible", 0.0);
2282 set_state(PART:"icon_rect", "visible", 0.0);
2283 set_state(PART:"padding_after_icon", "visible", 0.0);
2284 set_state(PART:"bg", "visible", 0.0);
2286 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2287 set_state(PART:"elm.text", "visible", 0.0);
2289 set_state(PART:"elm.text", "disabled_visible", 0.0);
2292 program { name: "text_hide";
2293 signal: "elm,state,text,hidden";
2298 get_state(PART:"elm.swallow.content", st, 30, vl);
2299 if (!strcmp(st, "visible"))
2301 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2302 set_state(PART:"icon_rect", "icononly", 0.0);
2303 set_state(PART:"padding_after_icon", "icononly", 0.0);
2304 set_state(PART:"bg", "icononly", 0.0);
2306 set_state(PART:"elm.text", "default", 0.0);
2309 program { name: "icon_show";
2310 signal: "elm,state,icon,visible";
2315 get_state(PART:"elm.text", st, 30, vl);
2316 if (!strcmp(st, "visible"))
2318 set_state(PART:"elm.swallow.content", "visible", 0.0);
2319 set_state(PART:"icon_rect", "visible", 0.0);
2320 set_state(PART:"padding_after_icon", "visible", 0.0);
2321 set_state(PART:"bg", "visible", 0.0);
2325 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2326 set_state(PART:"icon_rect", "icononly", 0.0);
2327 set_state(PART:"padding_after_icon", "icononly", 0.0);
2328 set_state(PART:"bg", "icononly", 0.0);
2332 program { name: "icon_hide";
2333 signal: "elm,state,icon,hidden";
2335 action: STATE_SET "default" 0.0;
2336 target: "elm.swallow.content";
2337 target: "padding_after_icon";
2338 target: "icon_rect";
2341 program { name: "disable";
2342 signal: "elm,state,disabled";
2344 action: STATE_SET "disabled" 0.0;
2345 target: "button_image";
2347 after: "disable_text";
2349 program { name: "disable_text";
2353 get_state(PART:"elm.text", st, 30, vl);
2354 if (!strcmp(st, "visible"))
2355 set_state(PART:"elm.text", "disabled_visible", 0.0);
2357 set_state(PART:"elm.text", "disabled", 0.0);
2358 set_int(button_state, BUTTON_STATE_DISABLED);
2361 program { name: "enable";
2362 signal: "elm,state,enabled";
2364 action: STATE_SET "default" 0.0;
2365 target: "button_image";
2367 after: "enable_text";
2369 program { name: "enable_text";
2373 get_state(PART:"elm.text", st, 30, vl);
2374 if (!strcmp(st, "disabled_visible"))
2375 set_state(PART:"elm.text", "visible", 0.0);
2377 set_state(PART:"elm.text", "default", 0.0);
2378 set_int(button_state, BUTTON_STATE_ENABLED);
2381 program { name: "focused";
2382 //signal: "elm,action,focus";
2384 action: STATE_SET "focused" 0.0;
2385 target: "button_image";
2388 program { name: "unfocused";
2389 //signal: "elm,action,unfocus";
2391 action: STATE_SET "default" 0.0;
2392 target: "button_image";
2393 after: "unfocus_text";
2395 program { name: "unfocus_text";
2396 action: STATE_SET "visible" 0.0;
2402 ///////////////////////////////////////////////////////////////////////////////////////
2403 group { name: "elm/button/base/sweep";
2404 alias: "elm/button/base/text_only/sweep";
2406 image: "00_button_sweep.png" COMP;
2407 image: "00_button_sweep_press.png" COMP;
2408 image: "00_button_sweep_dim.png" COMP;
2409 image: "00_button_sweep_focus.png" COMP;
2412 public button_state = BUTTON_STATE_ENABLED;
2415 part { name: "button_image";
2417 description { state: "default" 0.0;
2418 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2420 normal: "00_button_sweep.png";
2421 border: BUTTON_SWEEP_BG_BORDER_INC;
2425 description { state: "clicked" 0.0;
2426 inherit: "default" 0.0;
2427 image.normal: "00_button_sweep_press.png";
2429 description { state: "disabled" 0.0;
2430 inherit: "default" 0.0;
2431 image.normal: "00_button_sweep_dim.png";
2433 description { state: "focused" 0.0;
2434 inherit: "default" 0.0;
2435 image.normal: "00_button_sweep_focus.png";
2438 part { name: "padding_left_top";
2442 description { state: "default" 0.0;
2444 rel2.relative: 0.0 0.0;
2445 min: BUTTON_SWEEP_PADDING_MIN_INC;
2450 part { name: "padding_right_bottom";
2454 description { state: "default" 0.0;
2456 rel1.relative: 1.0 1.0;
2457 min: BUTTON_SWEEP_PADDING_MIN_INC;
2462 part { name: "icon_rect";
2466 description { state: "default" 0.0;
2467 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2471 to_x: "elm.swallow.content";
2472 to_y: "padding_left_top";
2476 to_x: "elm.swallow.content";
2477 to_y: "padding_right_bottom";
2483 part { name: "padding_icon_text";
2487 description { state: "default" 0.0; //when only icon or no icon is there
2493 rel2.to: "icon_rect";
2498 description { state: "icononly" 0.0;
2499 inherit: "default" 0.0;
2501 description { state: "visible" 0.0; //when icon is visible
2507 rel2.to: "icon_rect";
2509 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2513 part { name: "elm.swallow.content";
2517 description { state: "default" 0.0;
2522 to: "padding_left_top";
2526 to_x: "padding_left_top";
2527 to_y: "padding_right_bottom";
2531 description { state: "visible" 0.0;
2536 to: "padding_left_top";
2540 to_x: "padding_left_top";
2541 to_y: "padding_right_bottom";
2544 aspect_preference: VERTICAL;
2546 description { state: "icononly" 0.0;
2547 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2550 to: "padding_left_top";
2554 to_x: "padding_left_top";
2555 to_y: "padding_right_bottom";
2559 part { name: "elm.text";
2564 description { state: "default" 0.0;
2568 to_x: "padding_icon_text";
2569 to_y: "padding_left_top";
2573 to: "padding_right_bottom";
2575 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2577 font: "SLP:style=Medium";
2578 size: BUTTON_SWEEP_FONT_SIZE_INC;
2580 text_class: "slp_medium";
2583 description { state: "visible" 0.0;
2584 inherit: "default" 0.0;
2586 min: BUTTON_SWEEP_TEXT_MIN_INC;
2588 description { state: "clicked" 0.0;
2589 inherit: "default" 0.0;
2592 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2594 description { state: "disabled" 0.0;
2595 inherit: "default" 0.0;
2598 description { state: "disabled_visible" 0.0;
2599 inherit: "default" 0.0;
2600 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2602 min: BUTTON_SWEEP_TEXT_MIN_INC;
2604 description { state: "focused" 0.0;
2605 inherit: "default" 0.0;
2608 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2611 part { name: "over2";
2614 ignore_flags: ON_HOLD;
2615 description { state: "default" 0.0;
2619 part { name: "over3";
2622 description { state: "default" 0.0;
2626 part { name: "clipper";
2628 description { state: "default" 0.0;
2629 color: 255 255 255 255;
2632 part { name: "disabler";
2634 description { state: "default" 0.0;
2638 description { state: "disabled" 0.0;
2639 inherit: "default" 0.0;
2645 program { name: "button_click";
2646 signal: "mouse,down,1";
2648 action: SIGNAL_EMIT "elm,action,press" "";
2649 after: "button_click_anim";
2651 program { name: "button_click_anim";
2652 action: STATE_SET "clicked" 0.0;
2653 target: "button_image";
2654 after: "text_clicked";
2656 program { name: "text_clicked";
2660 get_state(PART:"elm.text", st, 30, vl);
2661 if (!strcmp(st, "visible"))
2662 set_state(PART:"elm.text", "clicked", 0.0);
2665 program { name: "button_unpress";
2666 action: SIGNAL_EMIT "elm,action,unpress" "";
2668 program { name: "button_mouseout_clicked";
2669 signal: "mouse,up,1";
2674 get_state(PART:"elm.swallow.content", st, 30, vl);
2675 if (strcmp(st, "icononly"))
2677 emit("elm,action,default,text,set", "");
2678 set_state(PART:"elm.text", "visible", 0.0);
2680 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2681 set_state(PART:"button_image", "default", 0.0);
2683 after: button_unpress;
2685 program { name: "touch_snd";
2686 signal: "mouse,clicked,1";
2688 action: PLAY_SAMPLE "touch_sound" 1.0;
2689 after: button_unclick3;
2691 program { name: "button_unclick3";
2692 action: SIGNAL_EMIT "elm,action,click" "";
2694 program { name: "text_show";
2695 signal: "elm,state,text,visible";
2700 get_state(PART:"elm.swallow.content", st, 30, vl);
2701 if (!strcmp(st, "icononly"))
2703 set_state(PART:"elm.swallow.content", "visible", 0.0);
2704 set_state(PART:"padding_icon_text", "visible", 0.0);
2706 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2707 set_state(PART:"elm.text", "visible", 0.0);
2709 set_state(PART:"elm.text", "disabled_visible", 0.0);
2712 program { name: "text_hide";
2713 signal: "elm,state,text,hidden";
2718 get_state(PART:"elm.swallow.content", st, 30, vl);
2719 if (!strcmp(st, "visible"))
2721 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2722 set_state(PART:"padding_icon_text", "icononly", 0.0);
2724 set_state(PART:"elm.text", "default", 0.0);
2727 program { name: "icon_show";
2728 signal: "elm,state,icon,visible";
2733 get_state(PART:"elm.text", st, 30, vl);
2734 if (!strcmp(st, "visible"))
2736 set_state(PART:"elm.swallow.content", "visible", 0.0);
2737 set_state(PART:"padding_icon_text", "visible", 0.0);
2741 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2742 set_state(PART:"padding_icon_text", "icononly", 0.0);
2746 program { name: "icon_hide";
2747 signal: "elm,state,icon,hidden";
2749 action: STATE_SET "default" 0.0;
2750 target: "elm.swallow.content";
2751 target: "padding_icon_text";
2753 program { name: "disable";
2754 signal: "elm,state,disabled";
2756 action: STATE_SET "disabled" 0.0;
2757 target: "button_image";
2759 after: "disable_text";
2761 program { name: "disable_text";
2765 get_state(PART:"elm.text", st, 30, vl);
2766 if (!strcmp(st, "visible"))
2767 set_state(PART:"elm.text", "disabled_visible", 0.0);
2769 set_state(PART:"elm.text", "disabled", 0.0);
2770 set_int(button_state, BUTTON_STATE_DISABLED);
2773 program { name: "enable";
2774 signal: "elm,state,enabled";
2776 action: STATE_SET "default" 0.0;
2777 target: "button_image";
2779 after: "enable_text";
2781 program { name: "enable_text";
2785 get_state(PART:"elm.text", st, 30, vl);
2786 if (!strcmp(st, "disabled_visible"))
2787 set_state(PART:"elm.text", "visible", 0.0);
2789 set_state(PART:"elm.text", "default", 0.0);
2790 set_int(button_state, BUTTON_STATE_ENABLED);
2793 program { name: "focused";
2794 //signal: "elm,action,focus";
2796 action: STATE_SET "focused" 0.0;
2797 target: "button_image";
2800 program { name: "unfocused";
2801 //signal: "elm,action,unfocus";
2803 action: STATE_SET "default" 0.0;
2804 target: "button_image";
2805 after: "unfocus_text";
2807 program { name: "unfocus_text";
2808 action: STATE_SET "visible" 0.0;
2814 ///////////////////////////////////////////////////////////////////////////////////////
2815 group { name: "elm/button/base/sweep/multiline";
2817 image: "00_button_sweep.png" COMP;
2818 image: "00_button_sweep_press.png" COMP;
2819 image: "00_button_sweep_dim.png" COMP;
2820 image: "00_button_sweep_focus.png" COMP;
2823 style { name: "btn_sweep_multiline";
2824 base: "font=SLP:style=Roman font_size="BUTTON_SWEEP_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
2831 public button_state = BUTTON_STATE_ENABLED;
2834 part { name: "button_image";
2836 description { state: "default" 0.0;
2837 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2839 normal: "00_button_sweep.png";
2840 border: BUTTON_SWEEP_BG_BORDER_INC;
2844 description { state: "clicked" 0.0;
2845 inherit: "default" 0.0;
2846 image.normal: "00_button_sweep_press.png";
2848 description { state: "disabled" 0.0;
2849 inherit: "default" 0.0;
2850 image.normal: "00_button_sweep_dim.png";
2852 description { state: "focused" 0.0;
2853 inherit: "default" 0.0;
2854 image.normal: "00_button_sweep_focus.png";
2857 part { name: "padding_left_top";
2861 description { state: "default" 0.0;
2863 rel2.relative: 0.0 0.0;
2864 min: BUTTON_SWEEP_PADDING_MIN_INC;
2869 part { name: "padding_right_bottom";
2873 description { state: "default" 0.0;
2875 rel1.relative: 1.0 1.0;
2876 min: BUTTON_SWEEP_PADDING_MIN_INC;
2881 part { name: "icon_rect";
2885 description { state: "default" 0.0;
2886 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2890 to_x: "elm.swallow.content";
2891 to_y: "padding_left_top";
2895 to_x: "elm.swallow.content";
2896 to_y: "padding_right_bottom";
2902 part { name: "padding_icon_text";
2906 description { state: "default" 0.0; //when only icon or no icon is there
2912 rel2.to: "icon_rect";
2917 description { state: "icononly" 0.0;
2918 inherit: "default" 0.0;
2920 description { state: "visible" 0.0; //when icon is visible
2926 rel2.to: "icon_rect";
2928 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2932 part { name: "elm.swallow.content";
2936 description { state: "default" 0.0;
2941 to: "padding_left_top";
2945 to_x: "padding_left_top";
2946 to_y: "padding_right_bottom";
2950 description { state: "visible" 0.0;
2955 to: "padding_left_top";
2959 to_x: "padding_left_top";
2960 to_y: "padding_right_bottom";
2963 aspect_preference: VERTICAL;
2965 description { state: "icononly" 0.0;
2966 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2969 to: "padding_left_top";
2973 to_x: "padding_left_top";
2974 to_y: "padding_right_bottom";
2978 part { name: "elm.text";
2983 description { state: "default" 0.0;
2987 to_x: "padding_icon_text";
2988 to_y: "padding_left_top";
2992 to: "padding_right_bottom";
2994 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2996 style: "btn_sweep_multiline";
3001 description { state: "visible" 0.0;
3002 inherit: "default" 0.0;
3004 min: BUTTON_SWEEP_TEXT_MIN_INC;
3006 description { state: "clicked" 0.0;
3007 inherit: "default" 0.0;
3010 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3012 description { state: "disabled" 0.0;
3013 inherit: "default" 0.0;
3016 description { state: "disabled_visible" 0.0;
3017 inherit: "default" 0.0;
3018 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3020 min: BUTTON_SWEEP_TEXT_MIN_INC;
3022 description { state: "focused" 0.0;
3023 inherit: "default" 0.0;
3026 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3029 part { name: "over2";
3032 ignore_flags: ON_HOLD;
3033 description { state: "default" 0.0;
3037 part { name: "over3";
3040 description { state: "default" 0.0;
3044 part { name: "clipper";
3046 description { state: "default" 0.0;
3047 color: 255 255 255 255;
3050 part { name: "disabler";
3052 description { state: "default" 0.0;
3056 description { state: "disabled" 0.0;
3057 inherit: "default" 0.0;
3063 program { name: "button_click";
3064 signal: "mouse,down,1";
3066 action: SIGNAL_EMIT "elm,action,press" "";
3067 after: "button_click_anim";
3069 program { name: "button_click_anim";
3070 action: STATE_SET "clicked" 0.0;
3071 target: "button_image";
3072 after: "text_clicked";
3074 program { name: "text_clicked";
3078 get_state(PART:"elm.text", st, 30, vl);
3079 if (!strcmp(st, "visible"))
3080 set_state(PART:"elm.text", "clicked", 0.0);
3083 program { name: "button_unpress";
3084 action: SIGNAL_EMIT "elm,action,unpress" "";
3086 program { name: "button_mouseout_clicked";
3087 signal: "mouse,up,1";
3092 get_state(PART:"elm.swallow.content", st, 30, vl);
3093 if (strcmp(st, "icononly"))
3095 emit("elm,action,default,text,set", "");
3096 set_state(PART:"elm.text", "visible", 0.0);
3098 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3099 set_state(PART:"button_image", "default", 0.0);
3101 after: button_unpress;
3103 program { name: "touch_snd";
3104 signal: "mouse,clicked,1";
3106 action: PLAY_SAMPLE "touch_sound" 1.0;
3107 after: button_unclick3;
3109 program { name: "button_unclick3";
3110 action: SIGNAL_EMIT "elm,action,click" "";
3112 program { name: "text_show";
3113 signal: "elm,state,text,visible";
3118 get_state(PART:"elm.swallow.content", st, 30, vl);
3119 if (!strcmp(st, "icononly"))
3121 set_state(PART:"elm.swallow.content", "visible", 0.0);
3122 set_state(PART:"padding_icon_text", "visible", 0.0);
3124 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3125 set_state(PART:"elm.text", "visible", 0.0);
3127 set_state(PART:"elm.text", "disabled_visible", 0.0);
3130 program { name: "text_hide";
3131 signal: "elm,state,text,hidden";
3136 get_state(PART:"elm.swallow.content", st, 30, vl);
3137 if (!strcmp(st, "visible"))
3139 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3140 set_state(PART:"padding_icon_text", "icononly", 0.0);
3142 set_state(PART:"elm.text", "default", 0.0);
3145 program { name: "icon_show";
3146 signal: "elm,state,icon,visible";
3151 get_state(PART:"elm.text", st, 30, vl);
3152 if (!strcmp(st, "visible"))
3154 set_state(PART:"elm.swallow.content", "visible", 0.0);
3155 set_state(PART:"padding_icon_text", "visible", 0.0);
3159 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3160 set_state(PART:"padding_icon_text", "icononly", 0.0);
3164 program { name: "icon_hide";
3165 signal: "elm,state,icon,hidden";
3167 action: STATE_SET "default" 0.0;
3168 target: "elm.swallow.content";
3169 target: "padding_icon_text";
3171 program { name: "disable";
3172 signal: "elm,state,disabled";
3174 action: STATE_SET "disabled" 0.0;
3175 target: "button_image";
3177 after: "disable_text";
3179 program { name: "disable_text";
3183 get_state(PART:"elm.text", st, 30, vl);
3184 if (!strcmp(st, "visible"))
3185 set_state(PART:"elm.text", "disabled_visible", 0.0);
3187 set_state(PART:"elm.text", "disabled", 0.0);
3188 set_int(button_state, BUTTON_STATE_DISABLED);
3191 program { name: "enable";
3192 signal: "elm,state,enabled";
3194 action: STATE_SET "default" 0.0;
3195 target: "button_image";
3197 after: "enable_text";
3199 program { name: "enable_text";
3203 get_state(PART:"elm.text", st, 30, vl);
3204 if (!strcmp(st, "disabled_visible"))
3205 set_state(PART:"elm.text", "visible", 0.0);
3207 set_state(PART:"elm.text", "default", 0.0);
3208 set_int(button_state, BUTTON_STATE_ENABLED);
3211 program { name: "focused";
3212 //signal: "elm,action,focus";
3214 action: STATE_SET "focused" 0.0;
3215 target: "button_image";
3218 program { name: "unfocused";
3219 //signal: "elm,action,unfocus";
3221 action: STATE_SET "default" 0.0;
3222 target: "button_image";
3223 after: "unfocus_text";
3225 program { name: "unfocus_text";
3226 action: STATE_SET "visible" 0.0;
3231 ///////////////////////////////////////////////////////////////////////////////////////
3232 group { name: "elm/button/base/searchbar/default";
3234 image: "00_button_01_normal.png" COMP;
3235 image: "00_button_01_normal_press.png" COMP;
3236 image: "00_button_01_normal_dim.png" COMP;
3237 image: "00_button_01_normal_Focus.png" COMP;
3240 public button_state = BUTTON_STATE_ENABLED;
3243 part { name: "button_image";
3245 description { state: "default" 0.0;
3246 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
3248 normal: "00_button_01_normal.png";
3249 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3253 description { state: "clicked" 0.0;
3254 inherit: "default" 0.0;
3255 image.normal: "00_button_01_normal_press.png";
3257 description { state: "disabled" 0.0;
3258 inherit: "default" 0.0;
3259 image.normal: "00_button_01_normal_dim.png";
3261 description { state: "focused" 0.0;
3262 inherit: "default" 0.0;
3263 image.normal: "00_button_01_normal_Focus.png";
3266 part { name: "padding_left_top";
3270 description { state: "default" 0.0;
3272 rel2.relative: 0.0 0.0;
3273 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3278 part { name: "padding_right_bottom";
3282 description { state: "default" 0.0;
3284 rel1.relative: 1.0 1.0;
3285 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3290 part { name: "icon_rect";
3294 description { state: "default" 0.0;
3295 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3299 to_x: "elm.swallow.content";
3300 to_y: "padding_left_top";
3304 to_x: "elm.swallow.content";
3305 to_y: "padding_right_bottom";
3311 part { name: "padding_icon_text";
3315 description { state: "default" 0.0; //when only icon or no icon is there
3321 rel2.to: "icon_rect";
3326 description { state: "icononly" 0.0;
3327 inherit: "default" 0.0;
3329 description { state: "visible" 0.0; //when icon is visible
3335 rel2.to: "icon_rect";
3337 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3341 part { name: "elm.swallow.content";
3345 description { state: "default" 0.0;
3350 to: "padding_left_top";
3354 to_x: "padding_left_top";
3355 to_y: "padding_right_bottom";
3359 description { state: "visible" 0.0;
3364 to: "padding_left_top";
3368 to_x: "padding_left_top";
3369 to_y: "padding_right_bottom";
3372 aspect_preference: VERTICAL;
3374 description { state: "icononly" 0.0;
3375 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3378 to: "padding_left_top";
3382 to_x: "padding_left_top";
3383 to_y: "padding_right_bottom";
3387 part { name: "elm.text";
3392 description { state: "default" 0.0;
3396 to_x: "padding_icon_text";
3397 to_y: "padding_left_top";
3401 to: "padding_right_bottom";
3403 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3405 font: "SLP:style=Medium";
3406 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3408 text_class: "slp_medium";
3411 description { state: "visible" 0.0;
3412 inherit: "default" 0.0;
3414 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3416 description { state: "clicked" 0.0;
3417 inherit: "default" 0.0;
3420 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3422 description { state: "disabled" 0.0;
3423 inherit: "default" 0.0;
3426 description { state: "disabled_visible" 0.0;
3427 inherit: "default" 0.0;
3428 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3430 min: BUTTON_SWEEP_TEXT_MIN_INC;
3432 description { state: "focused" 0.0;
3433 inherit: "default" 0.0;
3436 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3439 part { name: "over2";
3442 ignore_flags: ON_HOLD;
3443 description { state: "default" 0.0;
3447 part { name: "over3";
3450 description { state: "default" 0.0;
3454 part { name: "clipper";
3456 description { state: "default" 0.0;
3457 color: 255 255 255 255;
3460 part { name: "disabler";
3462 description { state: "default" 0.0;
3466 description { state: "disabled" 0.0;
3467 inherit: "default" 0.0;
3473 program { name: "button_click";
3474 signal: "mouse,down,1";
3476 action: SIGNAL_EMIT "elm,action,press" "";
3477 after: "button_click_anim";
3479 program { name: "button_click_anim";
3480 action: STATE_SET "clicked" 0.0;
3481 target: "button_image";
3482 after: "text_clicked";
3484 program { name: "text_clicked";
3488 get_state(PART:"elm.text", st, 30, vl);
3489 if (!strcmp(st, "visible"))
3490 set_state(PART:"elm.text", "clicked", 0.0);
3493 program { name: "button_unpress";
3494 action: SIGNAL_EMIT "elm,action,unpress" "";
3496 program { name: "button_mouseout_clicked";
3497 signal: "mouse,up,1";
3502 get_state(PART:"elm.swallow.content", st, 30, vl);
3503 if (strcmp(st, "icononly"))
3505 emit("elm,action,default,text,set", "");
3506 set_state(PART:"elm.text", "visible", 0.0);
3508 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3509 set_state(PART:"button_image", "default", 0.0);
3511 after: button_unpress;
3513 program { name: "touch_snd";
3514 signal: "mouse,clicked,1";
3516 action: PLAY_SAMPLE "touch_sound" 1.0;
3517 after: button_unclick3;
3519 program { name: "button_unclick3";
3520 action: SIGNAL_EMIT "elm,action,click" "";
3522 program { name: "text_show";
3523 signal: "elm,state,text,visible";
3528 get_state(PART:"elm.swallow.content", st, 30, vl);
3529 if (!strcmp(st, "icononly"))
3531 set_state(PART:"elm.swallow.content", "visible", 0.0);
3532 set_state(PART:"padding_icon_text", "visible", 0.0);
3534 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3535 set_state(PART:"elm.text", "visible", 0.0);
3537 set_state(PART:"elm.text", "disabled_visible", 0.0);
3540 program { name: "text_hide";
3541 signal: "elm,state,text,hidden";
3546 get_state(PART:"elm.swallow.content", st, 30, vl);
3547 if (!strcmp(st, "visible"))
3549 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3550 set_state(PART:"padding_icon_text", "icononly", 0.0);
3552 set_state(PART:"elm.text", "default", 0.0);
3555 program { name: "icon_show";
3556 signal: "elm,state,icon,visible";
3561 get_state(PART:"elm.text", st, 30, vl);
3562 if (!strcmp(st, "visible"))
3564 set_state(PART:"elm.swallow.content", "visible", 0.0);
3565 set_state(PART:"padding_icon_text", "visible", 0.0);
3569 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3570 set_state(PART:"padding_icon_text", "icononly", 0.0);
3574 program { name: "icon_hide";
3575 signal: "elm,state,icon,hidden";
3577 action: STATE_SET "default" 0.0;
3578 target: "elm.swallow.content";
3579 target: "padding_icon_text";
3581 program { name: "disable";
3582 signal: "elm,state,disabled";
3584 action: STATE_SET "disabled" 0.0;
3585 target: "button_image";
3587 after: "disable_text";
3589 program { name: "disable_text";
3593 get_state(PART:"elm.text", st, 30, vl);
3594 if (!strcmp(st, "visible"))
3595 set_state(PART:"elm.text", "disabled_visible", 0.0);
3597 set_state(PART:"elm.text", "disabled", 0.0);
3598 set_int(button_state, BUTTON_STATE_DISABLED);
3601 program { name: "enable";
3602 signal: "elm,state,enabled";
3604 action: STATE_SET "default" 0.0;
3605 target: "button_image";
3607 after: "enable_text";
3609 program { name: "enable_text";
3613 get_state(PART:"elm.text", st, 30, vl);
3614 if (!strcmp(st, "disabled_visible"))
3615 set_state(PART:"elm.text", "visible", 0.0);
3617 set_state(PART:"elm.text", "default", 0.0);
3618 set_int(button_state, BUTTON_STATE_ENABLED);
3621 program { name: "focused";
3622 //signal: "elm,action,focus";
3624 action: STATE_SET "focused" 0.0;
3625 target: "button_image";
3628 program { name: "unfocused";
3629 //signal: "elm,action,unfocus";
3631 action: STATE_SET "default" 0.0;
3632 target: "button_image";
3633 after: "unfocus_text";
3635 program { name: "unfocus_text";
3636 action: STATE_SET "visible" 0.0;
3642 ///////////////////////////////////////////////////////////////////////////////////////
3643 group { name: "elm/button/base/sweep/delete";
3645 image: "00_button_sweep_dim.png" COMP;
3646 image: "00_button_sweep_delete.png" COMP;
3647 image: "00_button_sweep_delete_press.png" COMP;
3648 image: "00_button_sweep_focus.png" COMP;
3651 public button_state = BUTTON_STATE_ENABLED;
3654 part { name: "button_image";
3656 description { state: "default" 0.0;
3657 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3659 normal: "00_button_sweep_delete.png";
3660 border: BUTTON_SWEEP_BG_BORDER_INC;
3664 description { state: "clicked" 0.0;
3665 inherit: "default" 0.0;
3666 image.normal: "00_button_sweep_delete_press.png";
3668 description { state: "disabled" 0.0;
3669 inherit: "default" 0.0;
3670 image.normal: "00_button_sweep_dim.png";
3672 description { state: "focused" 0.0;
3673 inherit: "default" 0.0;
3674 image.normal: "00_button_sweep_focus.png";
3677 part { name: "padding_left_top";
3681 description { state: "default" 0.0;
3683 rel2.relative: 0.0 0.0;
3684 min: BUTTON_SWEEP_PADDING_MIN_INC;
3689 part { name: "padding_right_bottom";
3693 description { state: "default" 0.0;
3695 rel1.relative: 1.0 1.0;
3696 min: BUTTON_SWEEP_PADDING_MIN_INC;
3701 part { name: "icon_rect";
3705 description { state: "default" 0.0;
3706 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3710 to_x: "elm.swallow.content";
3711 to_y: "padding_left_top";
3715 to_x: "elm.swallow.content";
3716 to_y: "padding_right_bottom";
3722 part { name: "padding_icon_text";
3726 description { state: "default" 0.0; //when only icon or no icon is there
3732 rel2.to: "icon_rect";
3737 description { state: "icononly" 0.0;
3738 inherit: "default" 0.0;
3740 description { state: "visible" 0.0; //when icon is visible
3746 rel2.to: "icon_rect";
3748 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3752 part { name: "elm.swallow.content";
3756 description { state: "default" 0.0;
3761 to: "padding_left_top";
3765 to_x: "padding_left_top";
3766 to_y: "padding_right_bottom";
3770 description { state: "visible" 0.0;
3775 to: "padding_left_top";
3779 to_x: "padding_left_top";
3780 to_y: "padding_right_bottom";
3783 aspect_preference: VERTICAL;
3785 description { state: "icononly" 0.0;
3786 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3789 to: "padding_left_top";
3793 to_x: "padding_left_top";
3794 to_y: "padding_right_bottom";
3798 part { name: "elm.text";
3803 description { state: "default" 0.0;
3806 to_x: "padding_icon_text";
3807 to_y: "padding_left_top";
3811 to: "padding_right_bottom";
3813 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3815 font: "SLP:style=Medium";
3816 size: BUTTON_SWEEP_FONT_SIZE_INC;
3820 text_class: "slp_medium";
3823 description { state: "visible" 0.0;
3824 inherit: "default" 0.0;
3826 description { state: "clicked" 0.0;
3827 inherit: "default" 0.0;
3828 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3830 description { state: "disabled" 0.0;
3831 inherit: "default" 0.0;
3834 description { state: "disabled_visible" 0.0;
3835 inherit: "default" 0.0;
3836 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3838 description { state: "focused" 0.0;
3839 inherit: "default" 0.0;
3842 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3845 part { name: "over2";
3848 ignore_flags: ON_HOLD;
3849 description { state: "default" 0.0;
3853 part { name: "over3";
3856 description { state: "default" 0.0;
3860 part { name: "clipper";
3862 description { state: "default" 0.0;
3863 color: 255 255 255 255;
3866 part { name: "disabler";
3868 description { state: "default" 0.0;
3872 description { state: "disabled" 0.0;
3873 inherit: "default" 0.0;
3879 program { name: "button_click";
3880 signal: "mouse,down,1";
3882 action: SIGNAL_EMIT "elm,action,press" "";
3883 after: "button_click_anim";
3885 program { name: "button_click_anim";
3886 action: STATE_SET "clicked" 0.0;
3887 target: "button_image";
3888 after: "text_clicked";
3890 program { name: "text_clicked";
3894 get_state(PART:"elm.text", st, 30, vl);
3895 if (!strcmp(st, "visible"))
3896 set_state(PART:"elm.text", "clicked", 0.0);
3899 program { name: "button_unpress";
3900 action: SIGNAL_EMIT "elm,action,unpress" "";
3902 program { name: "button_mouseout_clicked";
3903 signal: "mouse,up,1";
3908 get_state(PART:"elm.swallow.content", st, 30, vl);
3909 if (strcmp(st, "icononly"))
3911 emit("elm,action,default,text,set", "");
3912 set_state(PART:"elm.text", "visible", 0.0);
3914 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3915 set_state(PART:"button_image", "default", 0.0);
3917 after: button_unpress;
3919 program { name: "touch_snd";
3920 signal: "mouse,clicked,1";
3922 action: PLAY_SAMPLE "touch_sound" 1.0;
3923 after: button_unclick3;
3925 program { name: "button_unclick3";
3926 action: SIGNAL_EMIT "elm,action,click" "";
3928 program { name: "text_show";
3929 signal: "elm,state,text,visible";
3934 get_state(PART:"elm.swallow.content", st, 30, vl);
3935 if (!strcmp(st, "icononly"))
3937 set_state(PART:"elm.swallow.content", "visible", 0.0);
3938 set_state(PART:"padding_icon_text", "visible", 0.0);
3940 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3941 set_state(PART:"elm.text", "visible", 0.0);
3943 set_state(PART:"elm.text", "disabled_visible", 0.0);
3946 program { name: "text_hide";
3947 signal: "elm,state,text,hidden";
3952 get_state(PART:"elm.swallow.content", st, 30, vl);
3953 if (!strcmp(st, "visible"))
3955 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3956 set_state(PART:"padding_icon_text", "icononly", 0.0);
3958 set_state(PART:"elm.text", "default", 0.0);
3961 program { name: "icon_show";
3962 signal: "elm,state,icon,visible";
3967 get_state(PART:"elm.text", st, 30, vl);
3968 if (!strcmp(st, "visible"))
3970 set_state(PART:"elm.swallow.content", "visible", 0.0);
3971 set_state(PART:"padding_icon_text", "visible", 0.0);
3975 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3976 set_state(PART:"padding_icon_text", "icononly", 0.0);
3980 program { name: "icon_hide";
3981 signal: "elm,state,icon,hidden";
3983 action: STATE_SET "default" 0.0;
3984 target: "elm.swallow.content";
3985 target: "padding_icon_text";
3987 program { name: "disable";
3988 signal: "elm,state,disabled";
3990 action: STATE_SET "disabled" 0.0;
3991 target: "button_image";
3993 after: "disable_text";
3995 program { name: "disable_text";
3999 get_state(PART:"elm.text", st, 30, vl);
4000 if (!strcmp(st, "visible"))
4001 set_state(PART:"elm.text", "disabled_visible", 0.0);
4003 set_state(PART:"elm.text", "disabled", 0.0);
4004 set_int(button_state, BUTTON_STATE_DISABLED);
4007 program { name: "enable";
4008 signal: "elm,state,enabled";
4010 action: STATE_SET "default" 0.0;
4011 target: "button_image";
4013 after: "enable_text";
4015 program { name: "enable_text";
4019 get_state(PART:"elm.text", st, 30, vl);
4020 if (!strcmp(st, "disabled_visible"))
4021 set_state(PART:"elm.text", "visible", 0.0);
4023 set_state(PART:"elm.text", "default", 0.0);
4024 set_int(button_state, BUTTON_STATE_ENABLED);
4027 program { name: "focused";
4028 //signal: "elm,action,focus";
4030 action: STATE_SET "focused" 0.0;
4031 target: "button_image";
4034 program { name: "unfocused";
4035 //signal: "elm,action,unfocus";
4037 action: STATE_SET "default" 0.0;
4038 target: "button_image";
4039 after: "unfocus_text";
4041 program { name: "unfocus_text";
4042 action: STATE_SET "visible" 0.0;
4048 ///////////////////////////////////////////////////////////////////////////////////////
4049 group { name: "elm/button/base/popup_button/default";
4050 alias: "elm/button/base/popup_button/menustyle";
4051 alias: "elm/button/base/popup_button/liststyle";
4052 alias: "elm/button/base/popup_button/volumebarstyle";
4053 alias: "elm/button/base/popup_button/customstyle";
4054 alias: "elm/button/base/popup_button/verticalbuttonstyle";
4056 image: "00_button_popup_normal.png" COMP;
4057 image: "00_button_popup_press.png" COMP;
4058 image: "00_button_popup_normal_focus.png" COMP;
4059 image: "00_button_popup_dim.png" COMP;
4062 public button_state = BUTTON_STATE_ENABLED;
4065 part { name: "button_image";
4067 description { state: "default" 0.0;
4068 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4070 normal: "00_button_popup_normal.png";
4071 border: BUTTON_POPUP_BG_BORDER_INC;
4075 description { state: "clicked" 0.0;
4076 inherit: "default" 0.0;
4077 image.normal: "00_button_popup_press.png";
4079 description { state: "disabled" 0.0;
4080 inherit: "default" 0.0;
4081 image.normal: "00_button_popup_dim.png";
4083 description { state: "focused" 0.0;
4084 inherit: "default" 0.0;
4085 image.normal: "00_button_popup_normal_focus.png";
4088 part { name: "padding_left_top";
4092 description { state: "default" 0.0;
4094 rel2.relative: 0.0 0.0;
4095 min: BUTTON_POPUP_PADDING_MIN_INC;
4100 part { name: "padding_right_bottom";
4103 description { state: "default" 0.0;
4105 rel1.relative: 1.0 1.0;
4106 min: BUTTON_POPUP_PADDING_MIN_INC;
4111 part { name: "padding_icon_text";
4114 description { state: "default" 0.0; //when only icon or no icon is there
4118 to: "elm.swallow.content";
4120 rel2.to: "elm.swallow.content";
4125 description { state: "icononly" 0.0;
4126 inherit: "default" 0.0;
4128 description { state: "visible" 0.0; //when icon is visible
4129 inherit: "default" 0.0;
4130 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4133 part { name: "elm.swallow.content";
4137 description { state: "default" 0.0;
4142 to: "padding_left_top";
4146 to_x: "padding_left_top";
4147 to_y: "padding_right_bottom";
4151 description { state: "visible" 0.0;
4152 inherit: "default" 0.0;
4156 aspect_preference: VERTICAL;
4158 description { state: "icononly" 0.0;
4159 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4162 to: "padding_left_top";
4166 to_x: "padding_left_top";
4167 to_y: "padding_right_bottom";
4171 part { name: "elm.text";
4176 description { state: "default" 0.0;
4180 to_x: "padding_icon_text";
4181 to_y: "padding_left_top";
4185 to: "padding_right_bottom";
4187 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4189 font: "SLP:style=Medium";
4190 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4192 text_class: "slp_medium";
4195 description { state: "visible" 0.0;
4196 inherit: "default" 0.0;
4198 min: BUTTON_POPUP_TEXT_MIN_INC;
4200 description { state: "clicked" 0.0;
4201 inherit: "default" 0.0;
4204 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4206 description { state: "disabled" 0.0;
4207 inherit: "default" 0.0;
4210 description { state: "disabled_visible" 0.0;
4211 inherit: "default" 0.0;
4212 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4214 min: BUTTON_POPUP_TEXT_MIN_INC;
4216 description { state: "focused" 0.0;
4217 inherit: "default" 0.0;
4220 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4223 part { name: "over2";
4226 ignore_flags: ON_HOLD;
4227 description { state: "default" 0.0;
4231 part { name: "over3";
4234 description { state: "default" 0.0;
4238 part { name: "clipper";
4240 description { state: "default" 0.0;
4241 color: 255 255 255 255;
4244 part { name: "disabler";
4246 description { state: "default" 0.0;
4250 description { state: "disabled" 0.0;
4251 inherit: "default" 0.0;
4257 program { name: "button_click";
4258 signal: "mouse,down,1";
4260 action: SIGNAL_EMIT "elm,action,press" "";
4261 after: "button_click_anim";
4263 program { name: "button_click_anim";
4264 action: STATE_SET "clicked" 0.0;
4265 target: "button_image";
4266 after: "text_clicked";
4268 program { name: "text_clicked";
4272 get_state(PART:"elm.text", st, 30, vl);
4273 if (!strcmp(st, "visible"))
4274 set_state(PART:"elm.text", "clicked", 0.0);
4277 program { name: "button_unpress";
4278 action: SIGNAL_EMIT "elm,action,unpress" "";
4280 program { name: "button_mouseout_clicked";
4281 signal: "mouse,up,1";
4286 get_state(PART:"elm.swallow.content", st, 30, vl);
4287 if (strcmp(st, "icononly"))
4289 emit("elm,action,default,text,set", "");
4290 set_state(PART:"elm.text", "visible", 0.0);
4292 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4293 set_state(PART:"button_image", "default", 0.0);
4295 after: button_unpress;
4297 program { name: "touch_snd";
4298 signal: "mouse,clicked,1";
4300 action: PLAY_SAMPLE "touch_sound" 1.0;
4301 after: button_unclick3;
4303 program { name: "button_unclick3";
4304 action: SIGNAL_EMIT "elm,action,click" "";
4306 program { name: "text_show";
4307 signal: "elm,state,text,visible";
4312 get_state(PART:"elm.swallow.content", st, 30, vl);
4313 if (!strcmp(st, "icononly"))
4315 set_state(PART:"elm.swallow.content", "visible", 0.0);
4316 set_state(PART:"padding_icon_text", "visible", 0.0);
4318 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4319 set_state(PART:"elm.text", "visible", 0.0);
4321 set_state(PART:"elm.text", "disabled_visible", 0.0);
4324 program { name: "text_hide";
4325 signal: "elm,state,text,hidden";
4330 get_state(PART:"elm.swallow.content", st, 30, vl);
4331 if (!strcmp(st, "visible"))
4333 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4334 set_state(PART:"padding_icon_text", "icononly", 0.0);
4336 set_state(PART:"elm.text", "default", 0.0);
4339 program { name: "icon_show";
4340 signal: "elm,state,icon,visible";
4345 get_state(PART:"elm.text", st, 30, vl);
4346 if (!strcmp(st, "visible"))
4348 set_state(PART:"elm.swallow.content", "visible", 0.0);
4349 set_state(PART:"padding_icon_text", "visible", 0.0);
4353 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4354 set_state(PART:"padding_icon_text", "icononly", 0.0);
4358 program { name: "icon_hide";
4359 signal: "elm,state,icon,hidden";
4361 action: STATE_SET "default" 0.0;
4362 target: "elm.swallow.content";
4363 target: "padding_icon_text";
4365 program { name: "disable";
4366 signal: "elm,state,disabled";
4368 action: STATE_SET "disabled" 0.0;
4369 target: "button_image";
4371 after: "disable_text";
4373 program { name: "disable_text";
4377 get_state(PART:"elm.text", st, 30, vl);
4378 if (!strcmp(st, "visible"))
4379 set_state(PART:"elm.text", "disabled_visible", 0.0);
4381 set_state(PART:"elm.text", "disabled", 0.0);
4382 set_int(button_state, BUTTON_STATE_DISABLED);
4385 program { name: "enable";
4386 signal: "elm,state,enabled";
4388 action: STATE_SET "default" 0.0;
4389 target: "button_image";
4391 after: "enable_text";
4393 program { name: "enable_text";
4397 get_state(PART:"elm.text", st, 30, vl);
4398 if (!strcmp(st, "disabled_visible"))
4399 set_state(PART:"elm.text", "visible", 0.0);
4401 set_state(PART:"elm.text", "default", 0.0);
4402 set_int(button_state, BUTTON_STATE_ENABLED);
4405 program { name: "focused";
4406 //signal: "elm,action,focus";
4408 action: STATE_SET "focused" 0.0;
4409 target: "button_image";
4412 program { name: "unfocused";
4413 //signal: "elm,action,unfocus";
4415 action: STATE_SET "default" 0.0;
4416 target: "button_image";
4417 after: "unfocus_text";
4419 program { name: "unfocus_text";
4420 action: STATE_SET "visible" 0.0;
4425 ///////////////////////////////////////////////////////////////////////////////////////
4426 group { name: "elm/button/base/popup_button/default/multiline";
4428 image: "00_button_popup_normal.png" COMP;
4429 image: "00_button_popup_press.png" COMP;
4430 image: "00_button_popup_normal_focus.png" COMP;
4431 image: "00_button_popup_dim.png" COMP;
4434 style { name: "btn_popup_multiline_style";
4435 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4442 public button_state = BUTTON_STATE_ENABLED;
4445 part { name: "button_image";
4447 description { state: "default" 0.0;
4448 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4450 normal: "00_button_popup_normal.png";
4451 border: BUTTON_POPUP_BG_BORDER_INC;
4455 description { state: "clicked" 0.0;
4456 inherit: "default" 0.0;
4457 image.normal: "00_button_popup_press.png";
4459 description { state: "disabled" 0.0;
4460 inherit: "default" 0.0;
4461 image.normal: "00_button_popup_dim.png";
4463 description { state: "focused" 0.0;
4464 inherit: "default" 0.0;
4465 image.normal: "00_button_popup_normal_focus.png";
4468 part { name: "padding_left_top";
4472 description { state: "default" 0.0;
4474 rel2.relative: 0.0 0.0;
4475 min: BUTTON_POPUP_PADDING_MIN_INC;
4480 part { name: "padding_right_bottom";
4483 description { state: "default" 0.0;
4485 rel1.relative: 1.0 1.0;
4486 min: BUTTON_POPUP_PADDING_MIN_INC;
4491 part { name: "padding_icon_text";
4494 description { state: "default" 0.0; //when only icon or no icon is there
4498 to: "elm.swallow.content";
4500 rel2.to: "elm.swallow.content";
4505 description { state: "icononly" 0.0;
4506 inherit: "default" 0.0;
4508 description { state: "visible" 0.0; //when icon is visible
4509 inherit: "default" 0.0;
4510 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4513 part { name: "elm.swallow.content";
4517 description { state: "default" 0.0;
4522 to: "padding_left_top";
4526 to_x: "padding_left_top";
4527 to_y: "padding_right_bottom";
4531 description { state: "visible" 0.0;
4532 inherit: "default" 0.0;
4536 aspect_preference: VERTICAL;
4538 description { state: "icononly" 0.0;
4539 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4542 to: "padding_left_top";
4546 to_x: "padding_left_top";
4547 to_y: "padding_right_bottom";
4551 part { name: "elm.text";
4556 description { state: "default" 0.0;
4560 to_x: "padding_icon_text";
4561 to_y: "padding_left_top";
4565 to: "padding_right_bottom";
4567 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4569 style: "btn_popup_multiline_style";
4574 description { state: "visible" 0.0;
4575 inherit: "default" 0.0;
4577 min: BUTTON_POPUP_TEXT_MIN_INC;
4579 description { state: "clicked" 0.0;
4580 inherit: "default" 0.0;
4583 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4585 description { state: "disabled" 0.0;
4586 inherit: "default" 0.0;
4589 description { state: "disabled_visible" 0.0;
4590 inherit: "default" 0.0;
4591 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4593 min: BUTTON_POPUP_TEXT_MIN_INC;
4595 description { state: "focused" 0.0;
4596 inherit: "default" 0.0;
4599 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4602 part { name: "over2";
4605 ignore_flags: ON_HOLD;
4606 description { state: "default" 0.0;
4610 part { name: "over3";
4613 description { state: "default" 0.0;
4617 part { name: "clipper";
4619 description { state: "default" 0.0;
4620 color: 255 255 255 255;
4623 part { name: "disabler";
4625 description { state: "default" 0.0;
4629 description { state: "disabled" 0.0;
4630 inherit: "default" 0.0;
4636 program { name: "button_click";
4637 signal: "mouse,down,1";
4639 action: SIGNAL_EMIT "elm,action,press" "";
4640 after: "button_click_anim";
4642 program { name: "button_click_anim";
4643 action: STATE_SET "clicked" 0.0;
4644 target: "button_image";
4645 after: "text_clicked";
4647 program { name: "text_clicked";
4651 get_state(PART:"elm.text", st, 30, vl);
4652 if (!strcmp(st, "visible"))
4653 set_state(PART:"elm.text", "clicked", 0.0);
4656 program { name: "button_unpress";
4657 action: SIGNAL_EMIT "elm,action,unpress" "";
4659 program { name: "button_mouseout_clicked";
4660 signal: "mouse,up,1";
4665 get_state(PART:"elm.swallow.content", st, 30, vl);
4666 if (strcmp(st, "icononly"))
4668 emit("elm,action,default,text,set", "");
4669 set_state(PART:"elm.text", "visible", 0.0);
4671 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4672 set_state(PART:"button_image", "default", 0.0);
4674 after: button_unpress;
4676 program { name: "touch_snd";
4677 signal: "mouse,clicked,1";
4679 action: PLAY_SAMPLE "touch_sound" 1.0;
4680 after: button_unclick3;
4682 program { name: "button_unclick3";
4683 action: SIGNAL_EMIT "elm,action,click" "";
4685 program { name: "text_show";
4686 signal: "elm,state,text,visible";
4691 get_state(PART:"elm.swallow.content", st, 30, vl);
4692 if (!strcmp(st, "icononly"))
4694 set_state(PART:"elm.swallow.content", "visible", 0.0);
4695 set_state(PART:"padding_icon_text", "visible", 0.0);
4697 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4698 set_state(PART:"elm.text", "visible", 0.0);
4700 set_state(PART:"elm.text", "disabled_visible", 0.0);
4703 program { name: "text_hide";
4704 signal: "elm,state,text,hidden";
4709 get_state(PART:"elm.swallow.content", st, 30, vl);
4710 if (!strcmp(st, "visible"))
4712 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4713 set_state(PART:"padding_icon_text", "icononly", 0.0);
4715 set_state(PART:"elm.text", "default", 0.0);
4718 program { name: "icon_show";
4719 signal: "elm,state,icon,visible";
4724 get_state(PART:"elm.text", st, 30, vl);
4725 if (!strcmp(st, "visible"))
4727 set_state(PART:"elm.swallow.content", "visible", 0.0);
4728 set_state(PART:"padding_icon_text", "visible", 0.0);
4732 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4733 set_state(PART:"padding_icon_text", "icononly", 0.0);
4737 program { name: "icon_hide";
4738 signal: "elm,state,icon,hidden";
4740 action: STATE_SET "default" 0.0;
4741 target: "elm.swallow.content";
4742 target: "padding_icon_text";
4744 program { name: "disable";
4745 signal: "elm,state,disabled";
4747 action: STATE_SET "disabled" 0.0;
4748 target: "button_image";
4750 after: "disable_text";
4752 program { name: "disable_text";
4756 get_state(PART:"elm.text", st, 30, vl);
4757 if (!strcmp(st, "visible"))
4758 set_state(PART:"elm.text", "disabled_visible", 0.0);
4760 set_state(PART:"elm.text", "disabled", 0.0);
4761 set_int(button_state, BUTTON_STATE_DISABLED);
4764 program { name: "enable";
4765 signal: "elm,state,enabled";
4767 action: STATE_SET "default" 0.0;
4768 target: "button_image";
4770 after: "enable_text";
4772 program { name: "enable_text";
4776 get_state(PART:"elm.text", st, 30, vl);
4777 if (!strcmp(st, "disabled_visible"))
4778 set_state(PART:"elm.text", "visible", 0.0);
4780 set_state(PART:"elm.text", "default", 0.0);
4781 set_int(button_state, BUTTON_STATE_ENABLED);
4784 program { name: "focused";
4785 //signal: "elm,action,focus";
4787 action: STATE_SET "focused" 0.0;
4788 target: "button_image";
4791 program { name: "unfocused";
4792 //signal: "elm,action,unfocus";
4794 action: STATE_SET "default" 0.0;
4795 target: "button_image";
4796 after: "unfocus_text";
4798 program { name: "unfocus_text";
4799 action: STATE_SET "visible" 0.0;
4805 ///////////////////////////////////////////////////////////////////////////////////////
4806 #define BUTTON_CIRCLE_STYLES(style_name, circle_normal, circle_press, image_normal, image_press, min_width, min_height) \
4807 group { name: "elm/button/base/"style_name; \
4809 image: circle_normal COMP; \
4810 image: circle_press COMP; \
4811 image: image_normal COMP; \
4812 image: image_press COMP; \
4815 part { name: "button_image"; \
4817 description { state: "default" 0.0; \
4818 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4819 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4820 image.normal: circle_normal; \
4821 color: 255 255 255 255; \
4824 state: "clicked" 0.0; \
4825 inherit: "default" 0.0; \
4826 image.normal: circle_press; \
4829 state: "disabled" 0.0; \
4830 inherit: "default" 0.0; \
4831 color: 255 255 255 128; \
4834 part { name: "button_center_part"; \
4836 description { state: "default" 0.0; \
4837 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4838 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4839 image.normal: image_normal; \
4840 color: 255 255 255 255; \
4843 state: "clicked" 0.0; \
4844 inherit: "default" 0.0; \
4845 image.normal: image_press; \
4848 state: "disabled" 0.0; \
4849 inherit: "default" 0.0; \
4850 color: 255 255 255 128; \
4853 part { name: "over1"; \
4855 ignore_flags: ON_HOLD; \
4856 description { state: "default" 0.0; \
4858 min: min_width min_height; \
4861 part { name: "over2"; \
4863 description { state: "default" 0.0; \
4867 part { name: "disabler"; \
4869 description { state: "default" 0.0; \
4873 description { state: "disabled" 0.0; \
4874 inherit: "default" 0.0; \
4880 program { name: "button_click"; \
4881 signal: "mouse,down,1"; \
4883 action: SIGNAL_EMIT "elm,action,press" ""; \
4884 after: "button_click_anim"; \
4886 program { name: "button_click_anim"; \
4887 action: STATE_SET "clicked" 0.0; \
4888 target: "button_image"; \
4889 target: "button_center_part"; \
4891 program { name: "button_unclick"; \
4892 signal: "mouse,up,1"; \
4894 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4895 after: "button_unclick_anim"; \
4897 program { name: "button_unclick_anim"; \
4898 action: STATE_SET "default" 0.0; \
4899 target: "button_image"; \
4900 target: "button_center_part"; \
4902 program { name: "touch_snd"; \
4903 signal: "mouse,clicked,1"; \
4905 action: PLAY_SAMPLE "touch_sound" 1.0; \
4906 after: button_unclick3; \
4908 program { name: "button_unclick3"; \
4909 action: SIGNAL_EMIT "elm,action,click" ""; \
4911 program { name: "disable"; \
4912 signal: "elm,state,disabled"; \
4914 action: STATE_SET "disabled" 0.0; \
4915 target: "disabler"; \
4916 target: "button_image"; \
4917 target: "button_center_part"; \
4919 program { name: "enable"; \
4920 signal: "elm,state,enabled"; \
4922 action: STATE_SET "default" 0.0; \
4923 target: "disabler"; \
4924 target: "button_image"; \
4925 target: "button_center_part"; \
4930 ///////////////////////////////////////////////////////////////////////////////////////
4931 BUTTON_CIRCLE_STYLES("reveal", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4933 ///////////////////////////////////////////////////////////////////////////////////////
4934 BUTTON_CIRCLE_STYLES("reveal/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4936 ///////////////////////////////////////////////////////////////////////////////////////
4937 BUTTON_CIRCLE_STYLES("expand/closed", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4939 ///////////////////////////////////////////////////////////////////////////////////////
4940 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4942 ///////////////////////////////////////////////////////////////////////////////////////
4943 BUTTON_CIRCLE_STYLES("expand/opened", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4945 ///////////////////////////////////////////////////////////////////////////////////////
4946 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4948 ///////////////////////////////////////////////////////////////////////////////////////
4949 BUTTON_CIRCLE_STYLES("info", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4951 ///////////////////////////////////////////////////////////////////////////////////////
4952 BUTTON_CIRCLE_STYLES("info/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4954 ///////////////////////////////////////////////////////////////////////////////////////
4955 BUTTON_CIRCLE_STYLES("rename", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4957 ///////////////////////////////////////////////////////////////////////////////////////
4958 BUTTON_CIRCLE_STYLES("rename/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4960 ///////////////////////////////////////////////////////////////////////////////////////
4961 BUTTON_CIRCLE_STYLES("call", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4963 ///////////////////////////////////////////////////////////////////////////////////////
4964 BUTTON_CIRCLE_STYLES("call/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4966 ///////////////////////////////////////////////////////////////////////////////////////
4967 BUTTON_CIRCLE_STYLES("warning", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4969 ///////////////////////////////////////////////////////////////////////////////////////
4970 BUTTON_CIRCLE_STYLES("warning/extended", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4972 ///////////////////////////////////////////////////////////////////////////////////////
4973 BUTTON_CIRCLE_STYLES("plus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4975 ///////////////////////////////////////////////////////////////////////////////////////
4976 BUTTON_CIRCLE_STYLES("plus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4978 ///////////////////////////////////////////////////////////////////////////////////////
4979 BUTTON_CIRCLE_STYLES("minus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4981 ///////////////////////////////////////////////////////////////////////////////////////
4982 BUTTON_CIRCLE_STYLES("minus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4984 ///////////////////////////////////////////////////////////////////////////////////////
4985 BUTTON_CIRCLE_STYLES("cancel", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4987 ///////////////////////////////////////////////////////////////////////////////////////
4988 BUTTON_CIRCLE_STYLES("cancel/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4990 ///////////////////////////////////////////////////////////////////////////////////////
4991 BUTTON_CIRCLE_STYLES("send", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4993 ///////////////////////////////////////////////////////////////////////////////////////
4994 BUTTON_CIRCLE_STYLES("send/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4995 ///////////////////////////////////////////////////////////////////////////////////////
4997 group { name: "elm/button/base/circle/empty";
4999 image: "00_btn_circle_bg_normal.png" COMP;
5000 image: "00_btn_circle_bg_press.png" COMP;
5003 part { name: "button_image";
5005 description { state: "default" 0.0;
5006 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
5007 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
5009 image.normal: "00_btn_circle_bg_normal.png";
5010 color: 255 255 255 255;
5012 description { state: "clicked" 0.0;
5013 inherit: "default" 0.0;
5014 image.normal: "00_btn_circle_bg_press.png";
5016 description { state: "disabled" 0.0;
5017 inherit: "default" 0.0;
5018 color: 255 255 255 128;
5021 part { name: "elm.swallow.content";
5024 description { state: "default" 0.0;
5025 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5026 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5028 color: 255 255 255 255;
5031 state: "disabled" 0.0;
5032 inherit: "default" 0.0;
5033 color: 255 255 255 128;
5036 part { name: "over1";
5038 ignore_flags: ON_HOLD;
5039 description { state: "default" 0.0;
5043 part { name: "over2";
5045 description { state: "default" 0.0;
5049 part { name: "disabler";
5051 description { state: "default" 0.0;
5055 description { state: "disabled" 0.0;
5056 inherit: "default" 0.0;
5062 program { name: "button_click";
5063 signal: "mouse,down,1";
5065 action: SIGNAL_EMIT "elm,action,press" "";
5066 after: "button_click_anim";
5068 program { name: "button_click_anim";
5069 action: STATE_SET "clicked" 0.0;
5070 target: "button_image";
5072 program { name: "touch_snd";
5073 signal: "mouse,clicked,1";
5075 action: PLAY_SAMPLE "touch_sound" 1.0;
5076 after: button_unclick2;
5078 program { name: "button_unclick2";
5079 action: SIGNAL_EMIT "elm,action,click" "";
5081 program { name: "button_unclick";
5082 signal: "mouse,up,1";
5084 action: SIGNAL_EMIT "elm,action,unpress" "";
5085 after: "button_unclick_anim";
5087 program { name: "button_unclick_anim";
5088 action: STATE_SET "default" 0.0;
5089 target: "button_image";
5091 program { name: "disable";
5092 signal: "elm,state,disabled";
5094 action: STATE_SET "disabled" 0.0;
5096 target: "button_image";
5098 program { name: "enable";
5099 signal: "elm,state,enabled";
5101 action: STATE_SET "default" 0.0;
5103 target: "button_image";
5105 program { name: "icon_show";
5106 signal: "elm,state,icon,visible";
5108 action: STATE_SET "visible" 0.0;
5109 target: "elm.swallow.content";
5111 program { name: "icon_hide";
5112 signal: "elm,state,icon,hidden";
5114 action: STATE_SET "default" 0.0;
5115 target: "elm.swallow.content";
5120 ///////////////////////////////////////////////////////////////////////////////////////
5121 #define BUTTON_EDIT_STYLES(style_name, edit_normal, edit_press, image_normal, image_press, min_width, min_height) \
5122 group { name: "elm/button/base/contacts/"style_name; \
5123 alias: "elm/button/base/"style_name; \
5125 image: image_normal COMP; \
5126 image: image_press COMP; \
5127 image: edit_normal COMP; \
5128 image: edit_press COMP; \
5129 image: "00_button_edit_dim.png" COMP; \
5130 image: "00_button_edit_focus.png" COMP; \
5133 part { name: "button_image"; \
5135 description { state: "default" 0.0; \
5136 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5137 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5139 normal: edit_normal; \
5140 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5145 state: "clicked" 0.0; \
5146 inherit: "default" 0.0; \
5147 image.normal: edit_press; \
5150 state: "disabled" 0.0; \
5151 inherit: "default" 0.0; \
5152 image.normal: "00_button_edit_dim.png"; \
5155 state: "focused" 0.0; \
5156 inherit: "default" 0.0; \
5157 image.normal: "00_button_edit_focus.png"; \
5160 part { name: "button_center_part"; \
5163 description { state: "default" 0.0; \
5164 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5165 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5167 normal: image_normal; \
5168 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5173 state: "clicked" 0.0; \
5174 inherit: "default" 0.0; \
5175 image.normal: image_press; \
5178 part { name: "over1"; \
5181 ignore_flags: ON_HOLD; \
5182 description { state: "default" 0.0; \
5184 min: min_width min_height; \
5187 part { name: "over2"; \
5189 description { state: "default" 0.0; \
5193 part { name: "disabler"; \
5195 description { state: "default" 0.0; \
5199 description { state: "disabled" 0.0; \
5200 inherit: "default" 0.0; \
5206 program { name: "button_click"; \
5207 signal: "mouse,down,1"; \
5209 action: SIGNAL_EMIT "elm,action,press" ""; \
5210 after: "button_click_anim"; \
5212 program { name: "button_click_anim"; \
5213 action: STATE_SET "clicked" 0.0; \
5214 target: "button_image"; \
5215 target: "button_center_part"; \
5217 program { name: "button_unclick"; \
5218 signal: "mouse,up,1"; \
5220 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5221 after: "button_unclick_anim"; \
5223 program { name: "button_unclick_anim"; \
5224 action: STATE_SET "default" 0.0; \
5225 target: "button_image"; \
5226 target: "button_center_part"; \
5228 program { name: "touch_snd"; \
5229 signal: "mouse,clicked,1"; \
5231 action: PLAY_SAMPLE "touch_sound" 1.0; \
5232 after: button_unclick3; \
5234 program { name: "button_unclick3"; \
5235 action: SIGNAL_EMIT "elm,action,click" ""; \
5237 program { name: "disable"; \
5238 signal: "elm,state,disabled"; \
5240 action: STATE_SET "disabled" 0.0; \
5241 target: "disabler"; \
5242 target: "button_image"; \
5244 program { name: "enable"; \
5245 signal: "elm,state,enabled"; \
5247 action: STATE_SET "default" 0.0; \
5248 target: "disabler"; \
5249 target: "button_image"; \
5253 ///////////////////////////////////////////////////////////////////////////////////////
5254 BUTTON_EDIT_STYLES("icon_plus", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5256 ///////////////////////////////////////////////////////////////////////////////////////
5257 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5259 ///////////////////////////////////////////////////////////////////////////////////////
5260 BUTTON_EDIT_STYLES("icon_minus", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5262 ///////////////////////////////////////////////////////////////////////////////////////
5263 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5265 ///////////////////////////////////////////////////////////////////////////////////////
5266 BUTTON_EDIT_STYLES("icon_expand", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5268 ///////////////////////////////////////////////////////////////////////////////////////
5269 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5271 ///////////////////////////////////////////////////////////////////////////////////////
5272 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5274 ///////////////////////////////////////////////////////////////////////////////////////
5275 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5277 ///////////////////////////////////////////////////////////////////////////////////////
5278 group { name: "elm/button/base/contacts/delete";
5280 image: "00_button_edit_Delete.png" COMP;
5281 image: "00_button_edit_Delete_press.png" COMP;
5282 image: "00_button_edit_dim.png" COMP;
5283 image: "00_button_edit_focus.png" COMP;
5286 public button_state = BUTTON_STATE_ENABLED;
5289 part { name: "button_image";
5291 description { state: "default" 0.0;
5292 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5294 normal: "00_button_edit_Delete.png";
5295 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5299 description { state: "clicked" 0.0;
5300 inherit: "default" 0.0;
5301 image.normal: "00_button_edit_Delete_press.png";
5303 description { state: "disabled" 0.0;
5304 inherit: "default" 0.0;
5305 image.normal: "00_button_edit_dim.png";
5307 description { state: "focused" 0.0;
5308 inherit: "default" 0.0;
5309 image.normal: "00_button_edit_focus.png";
5312 part { name: "padding_left_top";
5316 description { state: "default" 0.0;
5318 rel2.relative: 0.0 0.0;
5319 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5324 part { name: "padding_right_bottom";
5328 description { state: "default" 0.0;
5330 rel1.relative: 1.0 1.0;
5331 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5336 part { name: "padding_icon_text";
5340 description { state: "default" 0.0; //when only icon or no icon is there
5344 to: "elm.swallow.content";
5346 rel2.to: "elm.swallow.content";
5351 description { state: "icononly" 0.0;
5352 inherit: "default" 0.0;
5354 description { state: "visible" 0.0; //when icon is visible
5355 inherit: "default" 0.0;
5356 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5359 part { name: "elm.swallow.content";
5363 description { state: "default" 0.0;
5368 to: "padding_left_top";
5372 to_x: "padding_left_top";
5373 to_y: "padding_right_bottom";
5377 description { state: "visible" 0.0;
5382 to: "padding_left_top";
5386 to_x: "padding_left_top";
5387 to_y: "padding_right_bottom";
5390 aspect_preference: VERTICAL;
5392 description { state: "icononly" 0.0;
5393 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5396 to: "padding_left_top";
5400 to: "padding_right_bottom";
5403 aspect_preference: VERTICAL;
5406 part { name: "elm.text";
5411 description { state: "default" 0.0;
5414 to_x: "padding_icon_text";
5415 to_y: "padding_left_top";
5419 to: "padding_right_bottom";
5421 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5423 font: "SLP:style=Medium";
5424 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5428 text_class: "slp_medium";
5431 description { state: "visible" 0.0;
5432 inherit: "default" 0.0;
5434 description { state: "clicked" 0.0;
5435 inherit: "default" 0.0;
5436 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5438 description { state: "disabled" 0.0;
5439 inherit: "default" 0.0;
5442 description { state: "disabled_visible" 0.0;
5443 inherit: "default" 0.0;
5444 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5446 description { state: "focused" 0.0;
5447 inherit: "default" 0.0;
5449 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5452 part { name: "over2";
5455 ignore_flags: ON_HOLD;
5456 description { state: "default" 0.0;
5460 part { name: "over3";
5463 description { state: "default" 0.0;
5467 part { name: "clipper";
5469 description { state: "default" 0.0;
5470 color: 255 255 255 255;
5473 part { name: "disabler";
5475 description { state: "default" 0.0;
5479 description { state: "disabled" 0.0;
5480 inherit: "default" 0.0;
5486 program { name: "button_click";
5487 signal: "mouse,down,1";
5489 action: SIGNAL_EMIT "elm,action,press" "";
5490 after: "button_click_anim";
5492 program { name: "button_click_anim";
5493 action: STATE_SET "clicked" 0.0;
5494 target: "button_image";
5495 after: "text_clicked";
5497 program { name: "text_clicked";
5501 get_state(PART:"elm.text", st, 30, vl);
5502 if (!strcmp(st, "visible"))
5503 set_state(PART:"elm.text", "clicked", 0.0);
5506 program { name: "button_unpress";
5507 action: SIGNAL_EMIT "elm,action,unpress" "";
5509 program { name: "button_mouseout_clicked";
5510 signal: "mouse,up,1";
5515 get_state(PART:"elm.swallow.content", st, 30, vl);
5516 if (strcmp(st, "icononly"))
5518 emit("elm,action,default,text,set", "");
5519 set_state(PART:"elm.text", "visible", 0.0);
5521 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5522 set_state(PART:"button_image", "default", 0.0);
5524 after: button_unpress;
5526 program { name: "touch_snd";
5527 signal: "mouse,clicked,1";
5529 action: PLAY_SAMPLE "touch_sound" 1.0;
5530 after: button_unclick3;
5532 program { name: "button_unclick3";
5533 action: SIGNAL_EMIT "elm,action,click" "";
5535 program { name: "text_show";
5536 signal: "elm,state,text,visible";
5541 get_state(PART:"elm.swallow.content", st, 30, vl);
5542 if (!strcmp(st, "icononly"))
5544 set_state(PART:"elm.swallow.content", "visible", 0.0);
5545 set_state(PART:"padding_icon_text", "visible", 0.0);
5547 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5548 set_state(PART:"elm.text", "visible", 0.0);
5550 set_state(PART:"elm.text", "disabled_visible", 0.0);
5553 program { name: "text_hide";
5554 signal: "elm,state,text,hidden";
5559 get_state(PART:"elm.swallow.content", st, 30, vl);
5560 if (!strcmp(st, "visible"))
5562 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5563 set_state(PART:"padding_icon_text", "icononly", 0.0);
5565 set_state(PART:"elm.text", "default", 0.0);
5568 program { name: "icon_show";
5569 signal: "elm,state,icon,visible";
5574 get_state(PART:"elm.text", st, 30, vl);
5575 if (!strcmp(st, "visible"))
5577 set_state(PART:"elm.swallow.content", "visible", 0.0);
5578 set_state(PART:"padding_icon_text", "visible", 0.0);
5582 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5583 set_state(PART:"padding_icon_text", "icononly", 0.0);
5587 program { name: "icon_hide";
5588 signal: "elm,state,icon,hidden";
5590 action: STATE_SET "default" 0.0;
5591 target: "elm.swallow.content";
5592 target: "padding_icon_text";
5594 program { name: "disable";
5595 signal: "elm,state,disabled";
5597 action: STATE_SET "disabled" 0.0;
5598 target: "button_image";
5600 after: "disable_text";
5602 program { name: "disable_text";
5606 get_state(PART:"elm.text", st, 30, vl);
5607 if (!strcmp(st, "visible"))
5608 set_state(PART:"elm.text", "disabled_visible", 0.0);
5610 set_state(PART:"elm.text", "disabled", 0.0);
5611 set_int(button_state, BUTTON_STATE_DISABLED);
5614 program { name: "enable";
5615 signal: "elm,state,enabled";
5617 action: STATE_SET "default" 0.0;
5618 target: "button_image";
5620 after: "enable_text";
5622 program { name: "enable_text";
5626 get_state(PART:"elm.text", st, 30, vl);
5627 if (!strcmp(st, "disabled_visible"))
5628 set_state(PART:"elm.text", "visible", 0.0);
5630 set_state(PART:"elm.text", "default", 0.0);
5631 set_int(button_state, BUTTON_STATE_ENABLED);
5634 program { name: "focused";
5635 //signal: "elm,action,focus";
5637 action: STATE_SET "focused" 0.0;
5638 target: "button_image";
5641 program { name: "unfocused";
5642 //signal: "elm,action,unfocus";
5644 action: STATE_SET "default" 0.0;
5645 target: "button_image";
5646 after: "unfocus_text";
5648 program { name: "unfocus_text";
5649 action: STATE_SET "visible" 0.0;
5655 ///////////////////////////////////////////////////////////////////////////////////////
5656 group { name: "elm/button/base/multiline";
5657 alias: "elm/button/base/text_only/multiline";
5659 image: "00_button_04_normal.png" COMP;
5660 image: "00_button_04_press.png" COMP;
5661 image: "00_button_04_dim.png" COMP;
5662 image: "00_button_04_normal_focus.png" COMP;
5665 public button_state = BUTTON_STATE_ENABLED;
5668 style { name: "btn_multiline_style";
5669 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5676 part { name: "button_image";
5678 description { state: "default" 0.0;
5681 normal: "00_button_04_normal.png";
5686 description { state: "clicked" 0.0;
5687 inherit: "default" 0.0;
5688 image.normal: "00_button_04_press.png";
5690 description { state: "disabled" 0.0;
5691 inherit: "default" 0.0;
5692 image.normal: "00_button_04_dim.png";
5694 description { state: "focused" 0.0;
5695 inherit: "default" 0.0;
5696 image.normal: "00_button_04_normal_focus.png";
5699 part { name: "padding_left_top";
5703 description { state: "default" 0.0;
5705 rel2.relative: 0.0 0.0;
5711 part { name: "padding_right_bottom";
5715 description { state: "default" 0.0;
5717 rel1.relative: 1.0 1.0;
5723 part { name: "icon_rect";
5727 description { state: "default" 0.0;
5733 to_x: "elm.swallow.content";
5734 to_y: "padding_left_top";
5738 to_x: "elm.swallow.content";
5739 to_y: "padding_right_bottom";
5745 part { name: "padding_icon_text";
5749 description { state: "default" 0.0; //when only icon or no icon is there
5755 rel2.to: "icon_rect";
5760 description { state: "icononly" 0.0;
5761 inherit: "default" 0.0;
5763 description { state: "visible" 0.0; //when icon is visible
5769 rel2.to: "icon_rect";
5775 part { name: "elm.swallow.content";
5779 description { state: "default" 0.0;
5784 to: "padding_left_top";
5788 to_x: "padding_left_top";
5789 to_y: "padding_right_bottom";
5793 description { state: "visible" 0.0;
5798 to: "padding_left_top";
5802 to_x: "padding_left_top";
5803 to_y: "padding_right_bottom";
5806 aspect_preference: VERTICAL;
5808 description { state: "icononly" 0.0;
5812 to: "padding_left_top";
5816 to: "padding_right_bottom";
5819 aspect_preference: VERTICAL;
5822 part { name: "elm.text";
5827 description { state: "default" 0.0;
5831 to_x: "padding_icon_text";
5832 to_y: "padding_left_top";
5836 to: "padding_right_bottom";
5838 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5840 style: "btn_multiline_style";
5845 description { state: "visible" 0.0;
5846 inherit: "default" 0.0;
5850 description { state: "clicked" 0.0;
5851 inherit: "default" 0.0;
5854 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5856 description { state: "disabled" 0.0;
5857 inherit: "default" 0.0;
5860 description { state: "disabled_visible" 0.0;
5861 inherit: "default" 0.0;
5862 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5866 description { state: "focused" 0.0;
5867 inherit: "default" 0.0;
5870 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5873 part { name: "over2";
5876 ignore_flags: ON_HOLD;
5877 description { state: "default" 0.0;
5881 part { name: "over3";
5884 description { state: "default" 0.0;
5888 part { name: "clipper";
5890 description { state: "default" 0.0;
5891 color: 255 255 255 255;
5894 part { name: "disabler";
5896 description { state: "default" 0.0;
5900 description { state: "disabled" 0.0;
5901 inherit: "default" 0.0;
5907 program { name: "button_click";
5908 signal: "mouse,down,1";
5910 action: SIGNAL_EMIT "elm,action,press" "";
5911 after: "button_click_anim";
5913 program { name: "button_click_anim";
5914 action: STATE_SET "clicked" 0.0;
5915 target: "button_image";
5916 after: "text_clicked";
5918 program { name: "text_clicked";
5922 get_state(PART:"elm.text", st, 30, vl);
5923 if (!strcmp(st, "visible"))
5924 set_state(PART:"elm.text", "clicked", 0.0);
5927 program { name: "button_unpress";
5928 action: SIGNAL_EMIT "elm,action,unpress" "";
5930 program { name: "button_mouseout_clicked";
5931 signal: "mouse,up,1";
5936 get_state(PART:"elm.swallow.content", st, 30, vl);
5937 if (strcmp(st, "icononly"))
5939 emit("elm,action,default,text,set", "");
5940 set_state(PART:"elm.text", "visible", 0.0);
5942 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5943 set_state(PART:"button_image", "default", 0.0);
5945 after: button_unpress;
5947 program { name: "touch_snd";
5948 signal: "mouse,clicked,1";
5950 action: PLAY_SAMPLE "touch_sound" 1.0;
5951 after: button_unclick3;
5953 program { name: "button_unclick3";
5954 action: SIGNAL_EMIT "elm,action,click" "";
5956 program { name: "text_show";
5957 signal: "elm,state,text,visible";
5962 get_state(PART:"elm.swallow.content", st, 30, vl);
5963 if (!strcmp(st, "icononly"))
5965 set_state(PART:"elm.swallow.content", "visible", 0.0);
5966 set_state(PART:"padding_icon_text", "visible", 0.0);
5968 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5969 set_state(PART:"elm.text", "visible", 0.0);
5971 set_state(PART:"elm.text", "disabled_visible", 0.0);
5974 program { name: "text_hide";
5975 signal: "elm,state,text,hidden";
5980 get_state(PART:"elm.swallow.content", st, 30, vl);
5981 if (!strcmp(st, "visible"))
5983 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5984 set_state(PART:"padding_icon_text", "icononly", 0.0);
5986 set_state(PART:"elm.text", "default", 0.0);
5989 program { name: "icon_show";
5990 signal: "elm,state,icon,visible";
5995 get_state(PART:"elm.text", st, 30, vl);
5996 if (!strcmp(st, "visible"))
5998 set_state(PART:"elm.swallow.content", "visible", 0.0);
5999 set_state(PART:"padding_icon_text", "visible", 0.0);
6003 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6004 set_state(PART:"padding_icon_text", "icononly", 0.0);
6008 program { name: "icon_hide";
6009 signal: "elm,state,icon,hidden";
6011 action: STATE_SET "default" 0.0;
6012 target: "elm.swallow.content";
6013 target: "padding_icon_text";
6015 program { name: "disable";
6016 signal: "elm,state,disabled";
6018 action: STATE_SET "disabled" 0.0;
6019 target: "button_image";
6021 after: "disable_text";
6023 program { name: "disable_text";
6027 get_state(PART:"elm.text", st, 30, vl);
6028 if (!strcmp(st, "visible"))
6029 set_state(PART:"elm.text", "disabled_visible", 0.0);
6031 set_state(PART:"elm.text", "disabled", 0.0);
6032 set_int(button_state, BUTTON_STATE_DISABLED);
6035 program { name: "enable";
6036 signal: "elm,state,enabled";
6038 action: STATE_SET "default" 0.0;
6039 target: "button_image";
6041 after: "enable_text";
6043 program { name: "enable_text";
6047 get_state(PART:"elm.text", st, 30, vl);
6048 if (!strcmp(st, "disabled_visible"))
6049 set_state(PART:"elm.text", "visible", 0.0);
6051 set_state(PART:"elm.text", "default", 0.0);
6052 set_int(button_state, BUTTON_STATE_ENABLED);
6055 program { name: "focused";
6056 //signal: "elm,action,focus";
6058 action: STATE_SET "focused" 0.0;
6059 target: "button_image";
6062 program { name: "unfocused";
6063 //signal: "elm,action,unfocus";
6065 action: STATE_SET "default" 0.0;
6066 target: "button_image";
6067 after: "unfocus_text";
6069 program { name: "unfocus_text";
6070 action: STATE_SET "visible" 0.0;
6076 ///////////////////////////////////////////////////////////////////////////////////////
6077 group { name: "elm/button/base/default";
6079 image: "00_button_01_normal.png" COMP;
6080 image: "00_button_01_normal_press.png" COMP;
6081 image: "00_button_01_normal_dim.png" COMP;
6082 image: "00_button_01_normal_Focus.png" COMP;
6085 public button_state = BUTTON_STATE_ENABLED;
6088 part { name: "button_image";
6090 description { state: "default" 0.0;
6091 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6093 normal: "00_button_01_normal.png";
6094 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6098 description { state: "clicked" 0.0;
6099 inherit: "default" 0.0;
6100 image.normal: "00_button_01_normal_press.png";
6102 description { state: "disabled" 0.0;
6103 inherit: "default" 0.0;
6104 image.normal: "00_button_01_normal_dim.png";
6106 description { state: "focused" 0.0;
6107 inherit: "default" 0.0;
6108 image.normal: "00_button_01_normal_Focus.png";
6111 part { name: "padding_left_top";
6115 description { state: "default" 0.0;
6117 rel2.relative: 0.0 0.0;
6118 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6123 part { name: "padding_right_bottom";
6127 description { state: "default" 0.0;
6129 rel1.relative: 1.0 1.0;
6130 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6135 part { name: "padding_icon_text";
6139 description { state: "default" 0.0; //when only icon or no icon is there
6144 to: "elm.swallow.content";
6146 rel2.to: "elm.swallow.content";
6150 description { state: "icononly" 0.0;
6151 inherit: "default" 0.0;
6153 description { state: "visible" 0.0; //when icon is visible
6154 inherit: "default" 0.0;
6155 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6158 part { name: "elm.swallow.content";
6162 description { state: "default" 0.0;
6167 to: "padding_left_top";
6171 to_x: "padding_left_top";
6172 to_y: "padding_right_bottom";
6176 description { state: "visible" 0.0;
6181 to: "padding_left_top";
6185 to_x: "padding_left_top";
6186 to_y: "padding_right_bottom";
6189 aspect_preference: VERTICAL;
6191 description { state: "icononly" 0.0;
6192 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6195 to_x: "padding_left_top";
6199 to_x: "padding_right_bottom";
6202 aspect_preference: VERTICAL;
6205 part { name: "elm.text";
6210 description { state: "default" 0.0;
6215 to_x: "padding_icon_text";
6216 to_y: "padding_left_top";
6220 to: "padding_right_bottom";
6222 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6224 font: "SLP:style=Medium";
6225 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6227 text_class: "slp_medium";
6230 description { state: "visible" 0.0;
6231 inherit: "default" 0.0;
6233 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6235 description { state: "clicked" 0.0;
6236 inherit: "default" 0.0;
6238 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6239 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6241 description { state: "disabled" 0.0;
6242 inherit: "default" 0.0;
6244 description { state: "disabled_visible" 0.0;
6245 inherit: "default" 0.0;
6246 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6248 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6250 description { state: "focused" 0.0;
6251 inherit: "default" 0.0;
6254 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6257 part { name: "over2";
6260 ignore_flags: ON_HOLD;
6261 description { state: "default" 0.0;
6265 part { name: "over3";
6268 description { state: "default" 0.0;
6272 part { name: "clipper";
6274 description { state: "default" 0.0;
6275 color: 255 255 255 255;
6278 part { name: "disabler";
6280 description { state: "default" 0.0;
6284 description { state: "disabled" 0.0;
6285 inherit: "default" 0.0;
6291 program { name: "button_click";
6292 signal: "mouse,down,1";
6294 action: SIGNAL_EMIT "elm,action,press" "";
6295 after: "button_click_anim";
6297 program { name: "button_click_anim";
6298 action: STATE_SET "clicked" 0.0;
6299 target: "button_image";
6300 after: "text_clicked";
6302 program { name: "text_clicked";
6306 get_state(PART:"elm.text", st, 30, vl);
6307 if (!strcmp(st, "visible"))
6308 set_state(PART:"elm.text", "clicked", 0.0);
6311 program { name: "button_unpress";
6312 action: SIGNAL_EMIT "elm,action,unpress" "";
6314 program { name: "button_mouseout_clicked";
6315 signal: "mouse,up,1";
6320 get_state(PART:"elm.swallow.content", st, 30, vl);
6321 if (strcmp(st, "icononly"))
6323 emit("elm,action,default,text,set", "");
6324 set_state(PART:"elm.text", "visible", 0.0);
6326 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6327 set_state(PART:"button_image", "default", 0.0);
6329 after: button_unpress;
6331 program { name: "touch_snd";
6332 signal: "mouse,clicked,1";
6334 action: PLAY_SAMPLE "touch_sound" 1.0;
6335 after: button_unclick3;
6337 program { name: "button_unclick3";
6338 action: SIGNAL_EMIT "elm,action,click" "";
6340 program { name: "text_show";
6341 signal: "elm,state,text,visible";
6346 get_state(PART:"elm.swallow.content", st, 30, vl);
6347 if (!strcmp(st, "icononly"))
6349 set_state(PART:"elm.swallow.content", "visible", 0.0);
6350 set_state(PART:"padding_icon_text", "visible", 0.0);
6352 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6353 set_state(PART:"elm.text", "visible", 0.0);
6355 set_state(PART:"elm.text", "disabled_visible", 0.0);
6358 program { name: "text_hide";
6359 signal: "elm,state,text,hidden";
6364 get_state(PART:"elm.swallow.content", st, 30, vl);
6365 if (!strcmp(st, "visible"))
6367 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6368 set_state(PART:"padding_icon_text", "icononly", 0.0);
6370 set_state(PART:"elm.text", "default", 0.0);
6373 program { name: "icon_show";
6374 signal: "elm,state,icon,visible";
6379 get_state(PART:"elm.text", st, 30, vl);
6380 if (!strcmp(st, "visible"))
6382 set_state(PART:"elm.swallow.content", "visible", 0.0);
6383 set_state(PART:"padding_icon_text", "visible", 0.0);
6387 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6388 set_state(PART:"padding_icon_text", "icononly", 0.0);
6392 program { name: "icon_hide";
6393 signal: "elm,state,icon,hidden";
6395 action: STATE_SET "default" 0.0;
6396 target: "elm.swallow.content";
6397 target: "padding_icon_text";
6399 program { name: "disable";
6400 signal: "elm,state,disabled";
6402 action: STATE_SET "disabled" 0.0;
6403 target: "button_image";
6405 after: "disable_text";
6407 program { name: "disable_text";
6411 get_state(PART:"elm.text", st, 30, vl);
6412 if (!strcmp(st, "visible"))
6413 set_state(PART:"elm.text", "disabled_visible", 0.0);
6415 set_state(PART:"elm.text", "disabled", 0.0);
6416 set_int(button_state, BUTTON_STATE_DISABLED);
6419 program { name: "enable";
6420 signal: "elm,state,enabled";
6422 action: STATE_SET "default" 0.0;
6423 target: "button_image";
6425 after: "enable_text";
6427 program { name: "enable_text";
6431 get_state(PART:"elm.text", st, 30, vl);
6432 if (!strcmp(st, "disabled_visible"))
6433 set_state(PART:"elm.text", "visible", 0.0);
6435 set_state(PART:"elm.text", "default", 0.0);
6436 set_int(button_state, BUTTON_STATE_ENABLED);
6439 program { name: "focused";
6440 //signal: "elm,action,focus";
6442 action: STATE_SET "focused" 0.0;
6443 target: "button_image";
6446 program { name: "unfocused";
6447 //signal: "elm,action,unfocus";
6449 action: STATE_SET "default" 0.0;
6450 target: "button_image";
6451 after: "unfocus_text";
6453 program { name: "unfocus_text";
6454 action: STATE_SET "visible" 0.0;
6460 ///////////////////////////////////////////////////////////////////////////////////////
6461 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6462 group { name: "elm/button/base/"style_name; \
6464 image: image_normal COMP; \
6465 image: image_press COMP; \
6466 image: image_disable COMP; \
6467 image: "00_button_01_normal.png" COMP; \
6468 image: "00_button_01_normal_press.png" COMP; \
6469 image: "00_button_01_normal_dim.png" COMP; \
6470 image: "00_button_01_normal_Focus.png" COMP; \
6473 part { name: "button_image"; \
6475 description { state: "default" 0.0; \
6476 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6477 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6479 normal: "00_button_01_normal.png"; \
6480 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6485 state: "clicked" 0.0; \
6486 inherit: "default" 0.0; \
6487 image.normal: "00_button_01_normal_press.png"; \
6490 state: "disabled" 0.0; \
6491 inherit: "default" 0.0; \
6492 image.normal: "00_button_01_normal_dim.png"; \
6495 state: "focused" 0.0; \
6496 inherit: "default" 0.0; \
6497 image.normal: "00_button_01_normal_Focus.png"; \
6500 part { name: "button_center_part"; \
6502 description { state: "default" 0.0; \
6503 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6504 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6505 image.normal: image_normal; \
6508 state: "clicked" 0.0; \
6509 inherit: "default" 0.0; \
6510 image.normal: image_press; \
6513 state: "disabled" 0.0; \
6514 inherit: "default" 0.0; \
6515 image.normal: image_disable; \
6518 part { name: "over1"; \
6520 ignore_flags: ON_HOLD; \
6521 description { state: "default" 0.0; \
6525 part { name: "over2"; \
6527 description { state: "default" 0.0; \
6531 part { name: "disabler"; \
6533 description { state: "default" 0.0; \
6537 description { state: "disabled" 0.0; \
6538 inherit: "default" 0.0; \
6544 program { name: "button_click"; \
6545 signal: "mouse,down,1"; \
6547 action: SIGNAL_EMIT "elm,action,press" ""; \
6548 after: "button_click_anim"; \
6550 program { name: "button_click_anim"; \
6551 action: STATE_SET "clicked" 0.0; \
6552 target: "button_image"; \
6553 target: "button_center_part"; \
6555 program { name: "button_unclick"; \
6556 signal: "mouse,up,1"; \
6558 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6559 after: "button_unclick_anim"; \
6561 program { name: "button_unclick_anim"; \
6562 action: STATE_SET "default" 0.0; \
6563 target: "button_image"; \
6564 target: "button_center_part"; \
6566 program { name: "touch_snd"; \
6567 signal: "mouse,clicked,1"; \
6569 action: PLAY_SAMPLE "touch_sound" 1.0; \
6570 after: button_unclick3; \
6572 program { name: "button_unclick3"; \
6573 action: SIGNAL_EMIT "elm,action,click" ""; \
6575 program { name: "disable"; \
6576 signal: "elm,state,disabled"; \
6578 action: STATE_SET "disabled" 0.0; \
6579 target: "disabler"; \
6580 target: "button_image"; \
6581 target: "button_center_part"; \
6583 program { name: "enable"; \
6584 signal: "elm,state,enabled"; \
6586 action: STATE_SET "default" 0.0; \
6587 target: "disabler"; \
6588 target: "button_image"; \
6589 target: "button_center_part"; \
6593 ///////////////////////////////////////////////////////////////////////////////////////
6594 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_color_picker_btn_left.png", "00_color_picker_btn_left_press.png", "00_color_picker_btn_left_dim.png")
6595 ///////////////////////////////////////////////////////////////////////////////////////
6596 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_color_picker_btn_right.png", "00_color_picker_btn_right_press.png", "00_color_picker_btn_right_dim.png")
6597 ///////////////////////////////////////////////////////////////////////////////////////
6598 group { name: "elm/button/base/hidden";
6600 image: "00_button_sweep.png" COMP;
6601 image: "00_button_sweep_press.png" COMP;
6602 image: "00_button_sweep_focus.png" COMP;
6603 image: "00_button_sweep_dim.png" COMP;
6606 public button_state = BUTTON_STATE_ENABLED;
6609 part { name: "button_image";
6611 description { state: "default" 0.0;
6612 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6614 normal: "00_button_sweep.png";
6615 border: BUTTON_HIDDEN_BG_BORDER_INC;
6619 description { state: "clicked" 0.0;
6620 inherit: "default" 0.0;
6621 image.normal: "00_button_sweep_press.png";
6623 description { state: "disabled" 0.0;
6624 inherit: "default" 0.0;
6625 image.normal: "00_button_sweep_dim.png";
6627 description { state: "focused" 0.0;
6628 inherit: "default" 0.0;
6629 image.normal: "00_button_sweep_focus.png";
6632 part { name: "padding_left_top";
6636 description { state: "default" 0.0;
6638 rel2.relative: 0.0 0.0;
6639 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6644 part { name: "padding_right_bottom";
6648 description { state: "default" 0.0;
6650 rel1.relative: 1.0 1.0;
6651 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6656 part { name: "icon_rect";
6660 description { state: "default" 0.0;
6661 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6665 to_x: "elm.swallow.content";
6666 to_y: "padding_left_top";
6670 to_x: "elm.swallow.content";
6671 to_y: "padding_right_bottom";
6677 part { name: "padding_icon_text";
6681 description { state: "default" 0.0; //when only icon or no icon is there
6687 rel2.to: "icon_rect";
6692 description { state: "icononly" 0.0;
6693 inherit: "default" 0.0;
6695 description { state: "visible" 0.0; //when icon is visible
6701 rel2.to: "icon_rect";
6703 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6707 part { name: "elm.swallow.content";
6711 description { state: "default" 0.0;
6716 to: "padding_left_top";
6720 to_x: "padding_left_top";
6721 to_y: "padding_right_bottom";
6725 description { state: "visible" 0.0;
6730 to: "padding_left_top";
6734 to_x: "padding_left_top";
6735 to_y: "padding_right_bottom";
6738 aspect_preference: VERTICAL;
6740 description { state: "icononly" 0.0;
6741 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6744 to: "padding_left_top";
6748 to_x: "padding_left_top";
6749 to_y: "padding_right_bottom";
6752 aspect_preference: VERTICAL;
6755 part { name: "elm.text";
6760 description { state: "default" 0.0;
6764 to_x: "padding_icon_text";
6765 to_y: "padding_left_top";
6769 to: "padding_right_bottom";
6771 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6773 font: "SLP:style=Medium";
6774 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6776 text_class: "slp_medium";
6779 description { state: "visible" 0.0;
6780 inherit: "default" 0.0;
6782 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6784 description { state: "clicked" 0.0;
6785 inherit: "default" 0.0;
6788 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6790 description { state: "disabled" 0.0;
6791 inherit: "default" 0.0;
6794 description { state: "disabled_visible" 0.0;
6795 inherit: "default" 0.0;
6796 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6798 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6800 description { state: "focused" 0.0;
6801 inherit: "default" 0.0;
6804 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6807 part { name: "over2";
6810 ignore_flags: ON_HOLD;
6811 description { state: "default" 0.0;
6815 part { name: "over3";
6818 description { state: "default" 0.0;
6822 part { name: "clipper";
6824 description { state: "default" 0.0;
6825 color: 255 255 255 255;
6828 part { name: "disabler";
6830 description { state: "default" 0.0;
6834 description { state: "disabled" 0.0;
6835 inherit: "default" 0.0;
6841 program { name: "button_click";
6842 signal: "mouse,down,1";
6844 action: SIGNAL_EMIT "elm,action,press" "";
6845 after: "button_click_anim";
6847 program { name: "button_click_anim";
6848 action: STATE_SET "clicked" 0.0;
6849 target: "button_image";
6850 after: "text_clicked";
6852 program { name: "text_clicked";
6856 get_state(PART:"elm.text", st, 30, vl);
6857 if (!strcmp(st, "visible"))
6858 set_state(PART:"elm.text", "clicked", 0.0);
6861 program { name: "button_unpress";
6862 action: SIGNAL_EMIT "elm,action,unpress" "";
6864 program { name: "button_mouseout_clicked";
6865 signal: "mouse,up,1";
6870 get_state(PART:"elm.swallow.content", st, 30, vl);
6871 if (strcmp(st, "icononly"))
6873 emit("elm,action,default,text,set", "");
6874 set_state(PART:"elm.text", "visible", 0.0);
6876 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6877 set_state(PART:"button_image", "default", 0.0);
6879 after: button_unpress;
6881 program { name: "touch_snd";
6882 signal: "mouse,clicked,1";
6884 action: PLAY_SAMPLE "touch_sound" 1.0;
6885 after: button_unclick3;
6887 program { name: "button_unclick3";
6888 action: SIGNAL_EMIT "elm,action,click" "";
6890 program { name: "text_show";
6891 signal: "elm,state,text,visible";
6896 get_state(PART:"elm.swallow.content", st, 30, vl);
6897 if (!strcmp(st, "icononly"))
6899 set_state(PART:"elm.swallow.content", "visible", 0.0);
6900 set_state(PART:"padding_icon_text", "visible", 0.0);
6902 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6903 set_state(PART:"elm.text", "visible", 0.0);
6905 set_state(PART:"elm.text", "disabled_visible", 0.0);
6908 program { name: "text_hide";
6909 signal: "elm,state,text,hidden";
6914 get_state(PART:"elm.swallow.content", st, 30, vl);
6915 if (!strcmp(st, "visible"))
6917 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6918 set_state(PART:"padding_icon_text", "icononly", 0.0);
6920 set_state(PART:"elm.text", "default", 0.0);
6923 program { name: "icon_show";
6924 signal: "elm,state,icon,visible";
6929 get_state(PART:"elm.text", st, 30, vl);
6930 if (!strcmp(st, "visible"))
6932 set_state(PART:"elm.swallow.content", "visible", 0.0);
6933 set_state(PART:"padding_icon_text", "visible", 0.0);
6937 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6938 set_state(PART:"padding_icon_text", "icononly", 0.0);
6942 program { name: "icon_hide";
6943 signal: "elm,state,icon,hidden";
6945 action: STATE_SET "default" 0.0;
6946 target: "elm.swallow.content";
6947 target: "padding_icon_text";
6949 program { name: "disable";
6950 signal: "elm,state,disabled";
6952 action: STATE_SET "disabled" 0.0;
6953 target: "button_image";
6955 after: "disable_text";
6957 program { name: "disable_text";
6961 get_state(PART:"elm.text", st, 30, vl);
6962 if (!strcmp(st, "visible"))
6963 set_state(PART:"elm.text", "disabled_visible", 0.0);
6965 set_state(PART:"elm.text", "disabled", 0.0);
6966 set_int(button_state, BUTTON_STATE_DISABLED);
6969 program { name: "enable";
6970 signal: "elm,state,enabled";
6972 action: STATE_SET "default" 0.0;
6973 target: "button_image";
6975 after: "enable_text";
6977 program { name: "enable_text";
6981 get_state(PART:"elm.text", st, 30, vl);
6982 if (!strcmp(st, "disabled_visible"))
6983 set_state(PART:"elm.text", "visible", 0.0);
6985 set_state(PART:"elm.text", "default", 0.0);
6986 set_int(button_state, BUTTON_STATE_ENABLED);
6989 program { name: "focused";
6990 //signal: "elm,action,focus";
6992 action: STATE_SET "focused" 0.0;
6993 target: "button_image";
6996 program { name: "unfocused";
6997 //signal: "elm,action,unfocus";
6999 action: STATE_SET "default" 0.0;
7000 target: "button_image";
7001 after: "unfocus_text";
7003 program { name: "unfocus_text";
7004 action: STATE_SET "visible" 0.0;
7010 ///////////////////////////////////////////////////////////////////////////////////////
7011 group { name: "elm/button/base/picker/bar/default";
7013 image: "00_picker_btn_normal.png" COMP;
7014 image: "00_picker_btn_press.png" COMP;
7015 image: "00_picker_btn_normal_focus.png" COMP;
7018 public button_state = BUTTON_STATE_ENABLED;
7021 part { name: "button_image";
7023 description { state: "default" 0.0;
7024 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7026 normal: "00_picker_btn_normal.png";
7027 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7031 description { state: "clicked" 0.0;
7032 inherit: "default" 0.0;
7033 image.normal: "00_picker_btn_press.png";
7035 description { state: "disabled" 0.0;
7036 inherit: "default" 0.0;
7038 description { state: "focused" 0.0;
7039 inherit: "default" 0.0;
7040 image.normal: "00_picker_btn_normal_focus.png";
7043 part { name: "padding_left_top";
7047 description { state: "default" 0.0;
7049 rel2.relative: 0.0 0.0;
7050 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7055 part { name: "padding_right_bottom";
7059 description { state: "default" 0.0;
7061 rel1.relative: 1.0 1.0;
7062 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7067 part { name: "icon_rect";
7071 description { state: "default" 0.0;
7072 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7076 to_x: "elm.swallow.content";
7077 to_y: "padding_left_top";
7081 to_x: "elm.swallow.content";
7082 to_y: "padding_right_bottom";
7088 part { name: "padding_icon_text";
7092 description { state: "default" 0.0; //when only icon or no icon is there
7098 rel2.to: "icon_rect";
7103 description { state: "icononly" 0.0;
7104 inherit: "default" 0.0;
7106 description { state: "visible" 0.0; //when icon is visible
7112 rel2.to: "icon_rect";
7114 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7118 part { name: "elm.swallow.content";
7122 description { state: "default" 0.0;
7127 to: "padding_left_top";
7131 to_x: "padding_left_top";
7132 to_y: "padding_right_bottom";
7136 description { state: "visible" 0.0;
7141 to: "padding_left_top";
7145 to_x: "padding_left_top";
7146 to_y: "padding_right_bottom";
7149 aspect_preference: VERTICAL;
7151 description { state: "icononly" 0.0;
7152 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7155 to: "padding_left_top";
7159 to_x: "padding_left_top";
7160 to_y: "padding_right_bottom";
7163 aspect_preference: VERTICAL;
7166 part { name: "elm.text";
7171 description { state: "default" 0.0;
7175 to_x: "padding_icon_text";
7176 to_y: "padding_left_top";
7180 to: "padding_right_bottom";
7182 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7184 font: "SLP:style=Medium";
7185 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7188 text_class: "slp_medium";
7191 description { state: "visible" 0.0;
7192 inherit: "default" 0.0;
7194 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7196 description { state: "clicked" 0.0;
7197 inherit: "default" 0.0;
7200 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7202 description { state: "disabled" 0.0;
7203 inherit: "default" 0.0;
7204 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7206 description { state: "disabled_visible" 0.0;
7207 inherit: "default" 0.0;
7208 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7210 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7212 description { state: "focused" 0.0;
7213 inherit: "default" 0.0;
7216 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7219 part { name: "over2";
7222 ignore_flags: ON_HOLD;
7223 description { state: "default" 0.0;
7227 part { name: "over3";
7230 description { state: "default" 0.0;
7234 part { name: "clipper";
7236 description { state: "default" 0.0;
7237 color: 255 255 255 255;
7240 part { name: "disabler";
7242 description { state: "default" 0.0;
7246 description { state: "disabled" 0.0;
7247 inherit: "default" 0.0;
7253 program { name: "button_click";
7254 signal: "mouse,down,1";
7256 action: SIGNAL_EMIT "elm,action,press" "";
7257 after: "button_click_anim";
7259 program { name: "button_click_anim";
7260 action: STATE_SET "clicked" 0.0;
7261 target: "button_image";
7262 after: "text_clicked";
7264 program { name: "text_clicked";
7268 get_state(PART:"elm.text", st, 30, vl);
7269 if (!strcmp(st, "visible"))
7270 set_state(PART:"elm.text", "clicked", 0.0);
7273 program { name: "button_unpress";
7274 action: SIGNAL_EMIT "elm,action,unpress" "";
7276 program { name: "button_mouseout_clicked";
7277 signal: "mouse,up,1";
7282 get_state(PART:"elm.swallow.content", st, 30, vl);
7283 if (strcmp(st, "icononly"))
7285 emit("elm,action,default,text,set", "");
7286 set_state(PART:"elm.text", "visible", 0.0);
7288 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7289 set_state(PART:"button_image", "default", 0.0);
7291 after: button_unpress;
7293 program { name: "touch_snd";
7294 signal: "mouse,clicked,1";
7296 action: PLAY_SAMPLE "touch_sound" 1.0;
7297 after: button_unclick3;
7299 program { name: "button_unclick3";
7300 action: SIGNAL_EMIT "elm,action,click" "";
7302 program { name: "text_show";
7303 signal: "elm,state,text,visible";
7308 get_state(PART:"elm.swallow.content", st, 30, vl);
7309 if (!strcmp(st, "icononly"))
7311 set_state(PART:"elm.swallow.content", "visible", 0.0);
7312 set_state(PART:"padding_icon_text", "visible", 0.0);
7314 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7315 set_state(PART:"elm.text", "visible", 0.0);
7317 set_state(PART:"elm.text", "disabled_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:"padding_icon_text", "icononly", 0.0);
7332 set_state(PART:"elm.text", "default", 0.0);
7335 program { name: "icon_show";
7336 signal: "elm,state,icon,visible";
7341 get_state(PART:"elm.text", st, 30, vl);
7342 if (!strcmp(st, "visible"))
7344 set_state(PART:"elm.swallow.content", "visible", 0.0);
7345 set_state(PART:"padding_icon_text", "visible", 0.0);
7349 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7350 set_state(PART:"padding_icon_text", "icononly", 0.0);
7354 program { name: "icon_hide";
7355 signal: "elm,state,icon,hidden";
7357 action: STATE_SET "default" 0.0;
7358 target: "elm.swallow.content";
7359 target: "padding_icon_text";
7361 program { name: "disable";
7362 signal: "elm,state,disabled";
7364 action: STATE_SET "disabled" 0.0;
7365 target: "button_image";
7367 after: "disable_text";
7369 program { name: "disable_text";
7373 get_state(PART:"elm.text", st, 30, vl);
7374 if (!strcmp(st, "visible"))
7375 set_state(PART:"elm.text", "disabled_visible", 0.0);
7377 set_state(PART:"elm.text", "disabled", 0.0);
7378 set_int(button_state, BUTTON_STATE_DISABLED);
7381 program { name: "enable";
7382 signal: "elm,state,enabled";
7384 action: STATE_SET "default" 0.0;
7385 target: "button_image";
7387 after: "enable_text";
7389 program { name: "enable_text";
7393 get_state(PART:"elm.text", st, 30, vl);
7394 if (!strcmp(st, "disabled_visible"))
7395 set_state(PART:"elm.text", "visible", 0.0);
7397 set_state(PART:"elm.text", "default", 0.0);
7398 set_int(button_state, BUTTON_STATE_ENABLED);
7401 program { name: "focused";
7402 //signal: "elm,action,focus";
7404 action: STATE_SET "focused" 0.0;
7405 target: "button_image";
7408 program { name: "unfocused";
7409 //signal: "elm,action,unfocus";
7411 action: STATE_SET "default" 0.0;
7412 target: "button_image";
7413 after: "unfocus_text";
7415 program { name: "unfocus_text";
7416 action: STATE_SET "visible" 0.0;
7422 ///////////////////////////////////////////////////////////////////////////////////////
7423 group { name: "elm/button/base/picker/prev/text/default";
7424 alias: "elm/button/base/picker/next/text/default";
7426 image: "00_picker_btn_normal.png" COMP;
7427 image: "00_picker_btn_press.png" COMP;
7428 image: "00_picker_btn_normal_focus.png" COMP;
7431 public button_state = BUTTON_STATE_ENABLED;
7434 part { name: "button_image";
7436 description { state: "default" 0.0;
7437 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7439 normal: "00_picker_btn_normal.png";
7440 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7444 description { state: "clicked" 0.0;
7445 inherit: "default" 0.0;
7446 image.normal: "00_picker_btn_press.png";
7448 description { state: "disabled" 0.0;
7449 inherit: "default" 0.0;
7452 description { state: "focused" 0.0;
7453 inherit: "default" 0.0;
7454 image.normal: "00_picker_btn_normal_focus.png";
7457 part { name: "padding_left_top";
7461 description { state: "default" 0.0;
7463 rel2.relative: 0.0 0.0;
7464 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7469 part { name: "padding_right_bottom";
7473 description { state: "default" 0.0;
7475 rel1.relative: 1.0 1.0;
7476 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7481 part { name: "icon_rect";
7485 description { state: "default" 0.0;
7486 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7490 to_x: "elm.swallow.content";
7491 to_y: "padding_left_top";
7495 to_x: "elm.swallow.content";
7496 to_y: "padding_right_bottom";
7502 part { name: "padding_icon_text";
7506 description { state: "default" 0.0; //when only icon or no icon is there
7512 rel2.to: "icon_rect";
7517 description { state: "icononly" 0.0;
7518 inherit: "default" 0.0;
7520 description { state: "visible" 0.0; //when icon is visible
7526 rel2.to: "icon_rect";
7528 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7532 part { name: "elm.swallow.content";
7536 description { state: "default" 0.0;
7541 to: "padding_left_top";
7545 to_x: "padding_left_top";
7546 to_y: "padding_right_bottom";
7550 description { state: "visible" 0.0;
7555 to: "padding_left_top";
7559 to_x: "padding_left_top";
7560 to_y: "padding_right_bottom";
7563 aspect_preference: VERTICAL;
7565 description { state: "icononly" 0.0;
7566 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7569 to: "padding_left_top";
7573 to_x: "padding_left_top";
7574 to_y: "padding_right_bottom";
7577 aspect_preference: VERTICAL;
7580 part { name: "elm.text";
7585 description { state: "default" 0.0;
7589 to_x: "padding_icon_text";
7590 to_y: "padding_left_top";
7594 to: "padding_right_bottom";
7596 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7598 font: "SLP:style=Medium";
7599 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7602 text_class: "slp_medium";
7605 description { state: "visible" 0.0;
7606 inherit: "default" 0.0;
7608 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7610 description { state: "clicked" 0.0;
7611 inherit: "default" 0.0;
7614 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7616 description { state: "disabled" 0.0;
7617 inherit: "default" 0.0;
7618 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7620 description { state: "disabled_visible" 0.0;
7621 inherit: "default" 0.0;
7622 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7624 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7626 description { state: "focused" 0.0;
7627 inherit: "default" 0.0;
7630 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7633 part { name: "over2";
7636 ignore_flags: ON_HOLD;
7637 description { state: "default" 0.0;
7641 part { name: "over3";
7644 description { state: "default" 0.0;
7648 part { name: "clipper";
7650 description { state: "default" 0.0;
7651 color: 255 255 255 255;
7654 part { name: "disabler";
7656 description { state: "default" 0.0;
7660 description { state: "disabled" 0.0;
7661 inherit: "default" 0.0;
7667 program { name: "button_click";
7668 signal: "mouse,down,1";
7670 action: SIGNAL_EMIT "elm,action,press" "";
7671 after: "button_click_anim";
7673 program { name: "button_click_anim";
7674 action: STATE_SET "clicked" 0.0;
7675 target: "button_image";
7676 after: "text_clicked";
7678 program { name: "text_clicked";
7682 get_state(PART:"elm.text", st, 30, vl);
7683 if (!strcmp(st, "visible"))
7684 set_state(PART:"elm.text", "clicked", 0.0);
7687 program { name: "button_unpress";
7688 action: SIGNAL_EMIT "elm,action,unpress" "";
7690 program { name: "button_mouseout_clicked";
7691 signal: "mouse,up,1";
7696 get_state(PART:"elm.swallow.content", st, 30, vl);
7697 if (strcmp(st, "icononly"))
7699 emit("elm,action,default,text,set", "");
7700 set_state(PART:"elm.text", "visible", 0.0);
7702 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7703 set_state(PART:"button_image", "default", 0.0);
7705 after: button_unpress;
7707 program { name: "touch_snd";
7708 signal: "mouse,clicked,1";
7710 action: PLAY_SAMPLE "touch_sound" 1.0;
7711 after: button_unclick3;
7713 program { name: "button_unclick3";
7714 action: SIGNAL_EMIT "elm,action,click" "";
7716 program { name: "text_show";
7717 signal: "elm,state,text,visible";
7722 get_state(PART:"elm.swallow.content", st, 30, vl);
7723 if (!strcmp(st, "icononly"))
7725 set_state(PART:"elm.swallow.content", "visible", 0.0);
7726 set_state(PART:"padding_icon_text", "visible", 0.0);
7728 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7729 set_state(PART:"elm.text", "visible", 0.0);
7731 set_state(PART:"elm.text", "disabled_visible", 0.0);
7734 program { name: "text_hide";
7735 signal: "elm,state,text,hidden";
7740 get_state(PART:"elm.swallow.content", st, 30, vl);
7741 if (!strcmp(st, "visible"))
7743 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7744 set_state(PART:"padding_icon_text", "icononly", 0.0);
7746 set_state(PART:"elm.text", "default", 0.0);
7749 program { name: "icon_show";
7750 signal: "elm,state,icon,visible";
7755 get_state(PART:"elm.text", st, 30, vl);
7756 if (!strcmp(st, "visible"))
7758 set_state(PART:"elm.swallow.content", "visible", 0.0);
7759 set_state(PART:"padding_icon_text", "visible", 0.0);
7763 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7764 set_state(PART:"padding_icon_text", "icononly", 0.0);
7768 program { name: "icon_hide";
7769 signal: "elm,state,icon,hidden";
7771 action: STATE_SET "default" 0.0;
7772 target: "elm.swallow.content";
7773 target: "padding_icon_text";
7775 program { name: "disable";
7776 signal: "elm,state,disabled";
7778 action: STATE_SET "disabled" 0.0;
7779 target: "button_image";
7781 after: "disable_text";
7783 program { name: "disable_text";
7787 get_state(PART:"elm.text", st, 30, vl);
7788 if (!strcmp(st, "visible"))
7789 set_state(PART:"elm.text", "disabled_visible", 0.0);
7791 set_state(PART:"elm.text", "disabled", 0.0);
7792 set_int(button_state, BUTTON_STATE_DISABLED);
7795 program { name: "enable";
7796 signal: "elm,state,enabled";
7798 action: STATE_SET "default" 0.0;
7799 target: "button_image";
7801 after: "enable_text";
7803 program { name: "enable_text";
7807 get_state(PART:"elm.text", st, 30, vl);
7808 if (!strcmp(st, "disabled_visible"))
7809 set_state(PART:"elm.text", "visible", 0.0);
7811 set_state(PART:"elm.text", "default", 0.0);
7812 set_int(button_state, BUTTON_STATE_ENABLED);
7815 program { name: "focused";
7816 //signal: "elm,action,focus";
7818 action: STATE_SET "focused" 0.0;
7819 target: "button_image";
7822 program { name: "unfocused";
7823 //signal: "elm,action,unfocus";
7825 action: STATE_SET "default" 0.0;
7826 target: "button_image";
7827 after: "unfocus_text";
7829 program { name: "unfocus_text";
7830 action: STATE_SET "visible" 0.0;
7836 ///////////////////////////////////////////////////////////////////////////////////////
7837 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7838 group { name: "elm/button/base/contact/"style_name; \
7840 image: "00_contacts_circle_bg.png" COMP; \
7841 image: image_normal COMP; \
7842 image: image_press COMP; \
7845 part { name: "button_image"; \
7847 description { state: "default" 0.0; \
7848 min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7849 max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7850 image.normal: "00_contacts_circle_bg.png"; \
7851 color: 255 255 255 255; \
7854 state: "clicked" 0.0; \
7855 inherit: "default" 0.0; \
7856 image.normal: "00_contacts_circle_bg.png"; \
7859 state: "disabled" 0.0; \
7860 inherit: "default" 0.0; \
7861 color: 255 255 255 128; \
7864 part { name: "button_center_part"; \
7866 description { state: "default" 0.0; \
7867 min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7868 max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7869 image.normal: image_normal; \
7870 color: 255 255 255 255; \
7873 state: "clicked" 0.0; \
7874 inherit: "default" 0.0; \
7875 image.normal: image_press; \
7878 state: "disabled" 0.0; \
7879 inherit: "default" 0.0; \
7880 color: 255 255 255 128; \
7883 part { name: "over1"; \
7885 ignore_flags: ON_HOLD; \
7886 description { state: "default" 0.0; \
7890 part { name: "over2"; \
7892 description { state: "default" 0.0; \
7896 part { name: "disabler"; \
7898 description { state: "default" 0.0; \
7902 description { state: "disabled" 0.0; \
7903 inherit: "default" 0.0; \
7909 program { name: "button_click"; \
7910 signal: "mouse,down,1"; \
7912 action: SIGNAL_EMIT "elm,action,press" ""; \
7913 after: "button_click_anim"; \
7915 program { name: "button_click_anim"; \
7916 action: STATE_SET "clicked" 0.0; \
7917 target: "button_image"; \
7918 target: "button_center_part"; \
7920 program { name: "button_unclick"; \
7921 signal: "mouse,up,1"; \
7923 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7924 after: "button_unclick_anim"; \
7926 program { name: "button_unclick_anim"; \
7927 action: STATE_SET "default" 0.0; \
7928 target: "button_image"; \
7929 target: "button_center_part"; \
7931 program { name: "touch_snd"; \
7932 signal: "mouse,clicked,1"; \
7934 action: PLAY_SAMPLE "touch_sound" 1.0; \
7935 after: button_unclick3; \
7937 program { name: "button_unclick3"; \
7938 action: SIGNAL_EMIT "elm,action,click" ""; \
7940 program { name: "disable"; \
7941 signal: "elm,state,disabled"; \
7943 action: STATE_SET "disabled" 0.0; \
7944 target: "disabler"; \
7945 target: "button_image"; \
7946 target: "button_center_part"; \
7948 program { name: "enable"; \
7949 signal: "elm,state,enabled"; \
7951 action: STATE_SET "default" 0.0; \
7952 target: "disabler"; \
7953 target: "button_image"; \
7954 target: "button_center_part"; \
7959 ///////////////////////////////////////////////////////////////////////////////////////
7960 BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7962 BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7964 BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7966 ///////////////////////////////////////////////////////////////////////////////////////
7967 group { name: "elm/button/base/contact";
7968 alias: "elm/button/base/text_only/contact";
7970 image: "00_contacts_button_bg.png" COMP;
7971 image: "00_contacts_button_bg_press.png" COMP;
7974 public button_state = BUTTON_STATE_ENABLED;
7977 part { name: "button_image";
7979 description { state: "default" 0.0;
7981 to_x: "padding.left";
7985 to_x: "padding.right";
7988 min: BUTTON_CONTACT_BG_MIN_INC;
7990 normal: "00_contacts_button_bg.png";
7991 border: BUTTON_CONTACT_BG_BORDER_INC;
7995 description { state: "clicked" 0.0;
7996 inherit: "default" 0.0;
7997 image.normal: "00_contacts_button_bg_press.png";
7999 description { state: "disabled" 0.0;
8000 inherit: "default" 0.0;
8003 description { state: "focused" 0.0;
8004 inherit: "default" 0.0;
8007 part { name: "padding.left";
8010 description { state: "default" 0.0;
8012 min: BUTTON_CONTACT_PADDING_MIN_INC;
8022 part { name: "padding.right";
8025 description { state: "default" 0.0;
8027 min: BUTTON_CONTACT_PADDING_MIN_INC;
8037 part { name: "elm.text";
8041 description { state: "default" 0.0;
8044 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8046 font: "SLP:style=Medium";
8047 size: BUTTON_CONTACT_FONT_SIZE_INC;
8049 text_class: "slp_medium";
8052 description { state: "visible" 0.0;
8053 inherit: "default" 0.0;
8057 description { state: "clicked" 0.0;
8058 inherit: "default" 0.0;
8061 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8063 description { state: "disabled" 0.0;
8064 inherit: "default" 0.0;
8067 description { state: "disabled_visible" 0.0;
8068 inherit: "default" 0.0;
8069 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8073 description { state: "focused" 0.0;
8074 inherit: "default" 0.0;
8077 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8080 part { name: "over1";
8082 description { state: "default" 0.0;
8083 rel2.relative: 1.0 0.5;
8086 part { name: "over2";
8088 ignore_flags: ON_HOLD;
8089 description { state: "default" 0.0;
8090 rel1.to: "button_image";
8091 rel2.to: "button_image";
8094 part { name: "over3";
8096 description { state: "default" 0.0;
8097 rel1.to: "button_image";
8098 rel2.to: "button_image";
8102 part { name: "disabler";
8104 description { state: "default" 0.0;
8105 rel1.to: "button_image";
8106 rel2.to: "button_image";
8110 description { state: "disabled" 0.0;
8111 inherit: "default" 0.0;
8117 program { name: "button_click";
8118 signal: "mouse,down,1";
8120 action: SIGNAL_EMIT "elm,action,press" "";
8121 after: "button_click_anim";
8123 program { name: "button_click_anim";
8124 action: STATE_SET "clicked" 0.0;
8125 target: "button_image";
8128 program { name: "button_unpress";
8129 action: SIGNAL_EMIT "elm,action,unpress" "";
8131 program { name: "button_mouseout_clicked";
8132 signal: "mouse,up,1";
8137 get_state(PART:"elm.text", st, 30, vl);
8138 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8140 emit("elm,action,default,text,set", "");
8141 set_state(PART:"elm.text", "visible", 0.0);
8143 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8144 set_state(PART:"button_image", "default", 0.0);
8146 after: button_unpress;
8148 program { name: "touch_snd";
8149 signal: "mouse,clicked,1";
8151 action: PLAY_SAMPLE "touch_sound" 1.0;
8152 after: button_unclick3;
8154 program { name: "button_unclick3";
8155 action: SIGNAL_EMIT "elm,action,click" "";
8157 program { name: "text_show";
8158 signal: "elm,state,text,visible";
8161 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8162 set_state(PART:"elm.text", "visible", 0.0);
8164 set_state(PART:"elm.text", "disabled_visible", 0.0);
8167 program { name: "text_hide";
8168 signal: "elm,state,text,hidden";
8170 action: STATE_SET "default" 0.0;
8173 program { name: "disable";
8174 signal: "elm,state,disabled";
8176 action: STATE_SET "disabled" 0.0;
8177 target: "button_image";
8179 after: "disable_text";
8181 program { name: "disable_text";
8185 get_state(PART:"elm.text", st, 30, vl);
8186 if (!strcmp(st, "visible"))
8187 set_state(PART:"elm.text", "disabled_visible", 0.0);
8189 set_state(PART:"elm.text", "disabled", 0.0);
8190 set_int(button_state, BUTTON_STATE_DISABLED);
8193 program { name: "enable";
8194 signal: "elm,state,enabled";
8196 action: STATE_SET "default" 0.0;
8197 target: "button_image";
8199 after: "enable_text";
8201 program { name: "enable_text";
8205 get_state(PART:"elm.text", st, 30, vl);
8206 if (!strcmp(st, "disabled_visible"))
8207 set_state(PART:"elm.text", "visible", 0.0);
8209 set_state(PART:"elm.text", "default", 0.0);
8210 set_int(button_state, BUTTON_STATE_ENABLED);
8213 program { name: "focused";
8214 //signal: "elm,action,focus";
8216 action: STATE_SET "focused" 0.0;
8217 target: "button_image";
8220 program { name: "unfocused";
8221 //signal: "elm,action,unfocus";
8223 action: STATE_SET "default" 0.0;
8224 target: "button_image";
8225 action: STATE_SET "visible" 0.0;
8231 ///////////////////////////////////////////////////////////////////////////////////////
8232 group { name: "elm/button/base/naviframe/back_btn/default";
8233 alias: "elm/button/base/naviframe/prev_btn/default";
8234 alias: "elm/button/base/naviframe/end_btn/default";
8236 image: "00_winset_toolbar_press.png" COMP;
8237 image: "00_winset_Back.png" COMP;
8240 public button_state = BUTTON_STATE_ENABLED;
8243 part { name: "button_image";
8245 description { state: "default" 0.0;
8246 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8247 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8250 description { state: "clicked" 0.0;
8251 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8252 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8254 normal: "00_winset_toolbar_press.png";
8255 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8258 description { state: "disabled" 0.0;
8259 inherit: "default" 0.0;
8260 color: 127 127 127 127;
8262 description { state: "focused" 0.0;
8263 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8264 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8266 normal: "00_winset_toolbar_press.png";
8267 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8271 part { name: "back_button";
8274 description { state: "default" 0.0;
8275 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8276 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8277 rel1.to: "button_image";
8278 rel2.to: "button_image";
8279 image.normal: "00_winset_Back.png";
8281 description { state: "clicked" 0.0;
8282 inherit: "default" 0.0;
8284 description { state: "disabled" 0.0;
8285 inherit: "default" 0.0;
8286 color: 127 127 127 127;
8289 part { name: "over2";
8292 ignore_flags: ON_HOLD;
8293 description { state: "default" 0.0;
8297 part { name: "over3";
8300 description { state: "default" 0.0;
8304 part { name: "disabler";
8306 description { state: "default" 0.0;
8310 description { state: "disabled" 0.0;
8311 inherit: "default" 0.0;
8317 program { name: "button_click";
8318 signal: "mouse,down,1";
8320 action: SIGNAL_EMIT "elm,action,press" "";
8321 after: "button_click_anim";
8323 program { name: "button_click_anim";
8324 action: STATE_SET "clicked" 0.0;
8325 target: "button_image";
8327 program { name: "button_unpress";
8328 action: SIGNAL_EMIT "elm,action,unpress" "";
8330 program { name: "button_mouseout_clicked";
8331 signal: "mouse,up,1";
8334 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8335 set_state(PART:"button_image", "default", 0.0);
8337 after: button_unpress;
8339 program { name: "touch_snd";
8340 signal: "mouse,clicked,1";
8342 action: PLAY_SAMPLE "touch_sound" 1.0;
8343 after: button_unclick3;
8345 program { name: "button_unclick3";
8346 action: SIGNAL_EMIT "elm,action,click" "";
8348 program { name: "disable";
8349 signal: "elm,state,disabled";
8351 action: STATE_SET "disabled" 0.0;
8352 target: "button_image";
8354 target: "back_button";
8355 after: "disable_button";
8357 program { name: "disable_button";
8359 set_int(button_state, BUTTON_STATE_DISABLED);
8362 program { name: "enable";
8363 signal: "elm,state,enabled";
8365 action: STATE_SET "default" 0.0;
8366 target: "button_image";
8368 target: "back_button";
8369 after: "enable_button";
8371 program { name: "enable_button";
8373 set_int(button_state, BUTTON_STATE_ENABLED);
8376 program { name: "focused";
8377 //signal: "elm,action,focus";
8379 action: STATE_SET "focused" 0.0;
8380 target: "button_image";
8382 program { name: "unfocused";
8383 //signal: "elm,action,unfocus";
8385 action: STATE_SET "default" 0.0;
8386 target: "button_image";
8391 ///////////////////////////////////////////////////////////////////////////////////////
8392 group { name: "elm/button/base/picker/prev/icon/default";
8394 image: "00_picker_btn_normal.png" COMP;
8395 image: "00_picker_btn_press.png" COMP;
8396 image: "00_picker_btn_normal_focus.png" COMP;
8397 image: "00_picker_arrow_left.png" COMP;
8398 image: "00_picker_arrow_left_press.png" COMP;
8401 public button_state = BUTTON_STATE_ENABLED;
8404 part { name: "button_image";
8406 description { state: "default" 0.0;
8407 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8408 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8410 normal: "00_picker_btn_normal.png";
8411 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8415 description { state: "clicked" 0.0;
8416 inherit: "default" 0.0;
8417 image.normal: "00_picker_btn_press.png";
8419 description { state: "disabled" 0.0;
8420 inherit: "default" 0.0;
8422 description { state: "focused" 0.0;
8423 inherit: "default" 0.0;
8424 image.normal: "00_picker_btn_normal_focus.png";
8427 part { name: "padding_left_top";
8431 description { state: "default" 0.0;
8433 rel2.relative: 0.0 0.0;
8434 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8439 part { name: "padding_right_bottom";
8443 description { state: "default" 0.0;
8445 rel1.relative: 1.0 1.0;
8446 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8451 part { name: "left_arrow";
8454 description { state: "default" 0.0;
8455 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8456 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8459 to: "padding_left_top";
8463 to: "padding_right_bottom";
8465 image.normal: "00_picker_arrow_left.png";
8467 description { state: "clicked" 0.0;
8468 inherit: "default" 0.0;
8469 image.normal: "00_picker_arrow_left_press.png";
8472 part { name: "over2";
8475 ignore_flags: ON_HOLD;
8476 description { state: "default" 0.0;
8480 part { name: "over3";
8483 description { state: "default" 0.0;
8487 part { name: "disabler";
8489 description { state: "default" 0.0;
8493 description { state: "disabled" 0.0;
8494 inherit: "default" 0.0;
8500 program { name: "button_click";
8501 signal: "mouse,down,1";
8503 action: SIGNAL_EMIT "elm,action,press" "";
8504 after: "button_click_anim";
8506 program { name: "button_click_anim";
8507 action: STATE_SET "clicked" 0.0;
8508 target: "button_image";
8510 program { name: "button_unpress";
8511 action: SIGNAL_EMIT "elm,action,unpress" "";
8513 program { name: "button_mouseout_clicked";
8514 signal: "mouse,up,1";
8517 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8518 set_state(PART:"button_image", "default", 0.0);
8520 after: button_unpress;
8522 program { name: "touch_snd";
8523 signal: "mouse,clicked,1";
8525 action: PLAY_SAMPLE "touch_sound" 1.0;
8526 after: button_unclick3;
8528 program { name: "button_unclick3";
8529 action: SIGNAL_EMIT "elm,action,click" "";
8531 program { name: "disable";
8532 signal: "elm,state,disabled";
8534 action: STATE_SET "disabled" 0.0;
8535 target: "button_image";
8537 after: "disable_button";
8539 program { name: "disable_button";
8541 set_int(button_state, BUTTON_STATE_DISABLED);
8544 program { name: "enable";
8545 signal: "elm,state,enabled";
8547 action: STATE_SET "default" 0.0;
8548 target: "button_image";
8550 after: "enable_button";
8552 program { name: "enable_button";
8554 set_int(button_state, BUTTON_STATE_ENABLED);
8557 program { name: "focused";
8558 //signal: "elm,action,focus";
8560 action: STATE_SET "focused" 0.0;
8561 target: "button_image";
8563 program { name: "unfocused";
8564 //signal: "elm,action,unfocus";
8566 action: STATE_SET "default" 0.0;
8567 target: "button_image";
8572 ///////////////////////////////////////////////////////////////////////////////////////
8573 group { name: "elm/button/base/picker/next/icon/default";
8575 image: "00_picker_btn_normal.png" COMP;
8576 image: "00_picker_btn_press.png" COMP;
8577 image: "00_picker_btn_normal_focus.png" COMP;
8578 image: "00_picker_arrow_right.png" COMP;
8579 image: "00_picker_arrow_right_press.png" COMP;
8582 public button_state = BUTTON_STATE_ENABLED;
8585 part { name: "button_image";
8587 description { state: "default" 0.0;
8588 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8589 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8591 normal: "00_picker_btn_normal.png";
8592 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8596 description { state: "clicked" 0.0;
8597 inherit: "default" 0.0;
8598 image.normal: "00_picker_btn_press.png";
8600 description { state: "disabled" 0.0;
8601 inherit: "default" 0.0;
8603 description { state: "focused" 0.0;
8604 inherit: "default" 0.0;
8605 image.normal: "00_picker_btn_normal_focus.png";
8608 part { name: "padding_left_top";
8612 description { state: "default" 0.0;
8614 rel2.relative: 0.0 0.0;
8615 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8620 part { name: "padding_right_bottom";
8624 description { state: "default" 0.0;
8626 rel1.relative: 1.0 1.0;
8627 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8632 part { name: "right_arrow";
8635 description { state: "default" 0.0;
8636 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8637 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8640 to: "padding_left_top";
8644 to: "padding_right_bottom";
8646 image.normal: "00_picker_arrow_right.png";
8648 description { state: "clicked" 0.0;
8649 inherit: "default" 0.0;
8650 image.normal: "00_picker_arrow_right_press.png";
8653 part { name: "over2";
8656 ignore_flags: ON_HOLD;
8657 description { state: "default" 0.0;
8661 part { name: "over3";
8664 description { state: "default" 0.0;
8668 part { name: "disabler";
8670 description { state: "default" 0.0;
8674 description { state: "disabled" 0.0;
8675 inherit: "default" 0.0;
8681 program { name: "button_click";
8682 signal: "mouse,down,1";
8684 action: SIGNAL_EMIT "elm,action,press" "";
8685 after: "button_click_anim";
8687 program { name: "button_click_anim";
8688 action: STATE_SET "clicked" 0.0;
8689 target: "button_image";
8691 program { name: "button_unpress";
8692 action: SIGNAL_EMIT "elm,action,unpress" "";
8694 program { name: "button_mouseout_clicked";
8695 signal: "mouse,up,1";
8698 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8699 set_state(PART:"button_image", "default", 0.0);
8701 after: button_unpress;
8703 program { name: "touch_snd";
8704 signal: "mouse,clicked,1";
8706 action: PLAY_SAMPLE "touch_sound" 1.0;
8707 after: button_unclick3;
8709 program { name: "button_unclick3";
8710 action: SIGNAL_EMIT "elm,action,click" "";
8712 program { name: "disable";
8713 signal: "elm,state,disabled";
8715 action: STATE_SET "disabled" 0.0;
8716 target: "button_image";
8718 after: "disable_button";
8720 program { name: "disable_button";
8722 set_int(button_state, BUTTON_STATE_DISABLED);
8725 program { name: "enable";
8726 signal: "elm,state,enabled";
8728 action: STATE_SET "default" 0.0;
8729 target: "button_image";
8731 after: "enable_button";
8733 program { name: "enable_button";
8735 set_int(button_state, BUTTON_STATE_ENABLED);
8738 program { name: "focused";
8739 //signal: "elm,action,focus";
8741 action: STATE_SET "focused" 0.0;
8742 target: "button_image";
8744 program { name: "unfocused";
8745 //signal: "elm,action,unfocus";
8747 action: STATE_SET "default" 0.0;
8748 target: "button_image";
8753 ///////////////////////////////////////////////////////////////////////////////////////
8754 group { name: "elm/button/base/naviframe_control/default";
8755 alias: "elm/button/base/naviframe_control/center";
8757 public button_state = BUTTON_STATE_ENABLED;
8760 image: "00_Option_header_bt.png" COMP;
8761 image: "00_Option_header_bt_dim.png" COMP;
8762 image: "00_Option_header_bt_press.png" COMP;
8763 image: "00_Option_header_bt_focus.png" COMP;
8766 part { name: "button_image";
8768 description { state: "default" 0.0;
8769 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8774 normal: "00_Option_header_bt.png";
8775 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8777 color: 255 255 255 255;
8779 description { state: "disabled" 0.0;
8780 inherit: "default" 0.0;
8781 image.normal: "00_Option_header_bt_dim.png";
8783 description { state: "clicked" 0.0;
8784 inherit: "default" 0.0;
8785 image.normal: "00_Option_header_bt_press.png";
8787 description { state: "focused" 0.0;
8788 inherit: "default" 0.0;
8789 image.normal: "00_Option_header_bt_focus.png";
8792 part { name: "padding_left_top";
8796 description { state: "default" 0.0;
8798 rel2.relative: 0.0 0.0;
8799 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8804 part { name: "padding_right_bottom";
8808 description { state: "default" 0.0;
8810 rel1.relative: 1.0 1.0;
8811 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8816 part { name: "icon_rect";
8820 description { state: "default" 0.0;
8825 to: "padding_left_top";
8829 to_x: "padding_left_top";
8830 to_y: "padding_right_bottom";
8835 description { state: "visible" 0.0;
8836 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8840 to: "padding_left_top";
8844 to_x: "padding_left_top";
8845 to_y: "padding_right_bottom";
8850 description { state: "icononly" 0.0;
8851 inherit: "default" 0.0;
8854 part { name: "padding_after_icon";
8858 description { state: "default" 0.0; //when only icon or no icon is there
8864 rel2.to: "icon_rect";
8869 description { state: "visible" 0.0;
8875 rel2.to: "icon_rect";
8877 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8880 description { state: "icononly" 0.0;
8881 inherit: "default" 0.0;
8884 part { name: "padding_before_text";
8888 description { state: "default" 0.0; //when only icon or no icon is there
8893 to_y: "padding_left_top";
8898 to_y: "padding_right_bottom";
8901 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8905 part { name: "elm.swallow.content";
8909 description { state: "default" 0.0;
8914 to: "padding_left_top";
8918 to_x: "padding_left_top";
8919 to_y: "padding_right_bottom";
8923 description { state: "visible" 0.0;
8925 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8926 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8930 to_x: "padding_before_text";
8931 to_y: "padding_left_top";
8935 to_x: "padding_before_text";
8936 to_y: "padding_right_bottom";
8939 aspect_preference: VERTICAL;
8941 description { state: "icononly" 0.0;
8942 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8943 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8946 to: "padding_left_top";
8950 to: "padding_right_bottom";
8953 aspect_preference: VERTICAL;
8956 part { name: "elm.text";
8961 description { state: "default" 0.0;
8965 to_x: "padding_after_icon";
8966 to_y: "padding_left_top";
8970 to: "padding_right_bottom";
8972 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8974 font: "SLP:style=Medium";
8975 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8978 text_class: "slp_medium";
8981 description { state: "visible" 0.0;
8982 inherit: "default" 0.0;
8985 description { state: "clicked" 0.0;
8986 inherit: "default" 0.0;
8990 description { state: "focused" 0.0;
8991 inherit: "default" 0.0;
8994 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8997 part { name: "over2";
9000 ignore_flags: ON_HOLD;
9001 description { state: "default" 0.0;
9005 part { name: "over3";
9008 description { state: "default" 0.0;
9012 part { name: "clipper";
9014 description { state: "default" 0.0;
9015 color: 255 255 255 255;
9017 description { state: "disabled" 0.0;
9018 color: 255 255 255 127;
9021 part { name: "disabler";
9023 description { state: "default" 0.0;
9027 description { state: "disabled" 0.0;
9028 inherit: "default" 0.0;
9034 program { name: "button_click";
9035 signal: "mouse,down,1";
9037 action: SIGNAL_EMIT "elm,action,press" "";
9038 after: "button_click_anim";
9040 program { name: "button_click_anim";
9041 action: STATE_SET "clicked" 0.0;
9042 target: "button_image";
9043 after: "text_clicked";
9045 program { name: "text_clicked";
9049 get_state(PART:"elm.text", st, 30, vl);
9050 if (!strcmp(st, "visible"))
9051 set_state(PART:"elm.text", "clicked", 0.0);
9054 program { name: "button_unpress";
9055 action: SIGNAL_EMIT "elm,action,unpress" "";
9057 program { name: "button_mouseout_clicked";
9058 signal: "mouse,up,1";
9063 get_state(PART:"elm.swallow.content", st, 30, vl);
9064 if (strcmp(st, "icononly"))
9066 emit("elm,action,default,text,set", "");
9067 set_state(PART:"elm.text", "visible", 0.0);
9069 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9070 set_state(PART:"button_image", "default", 0.0);
9072 after: button_unpress;
9074 program { name: "touch_snd";
9075 signal: "mouse,clicked,1";
9077 action: PLAY_SAMPLE "touch_sound" 1.0;
9078 after: button_unclick3;
9080 program { name: "button_unclick3";
9081 action: SIGNAL_EMIT "elm,action,click" "";
9083 program { name: "text_show";
9084 signal: "elm,state,text,visible";
9089 get_state(PART:"elm.swallow.content", st, 30, vl);
9090 if (!strcmp(st, "icononly"))
9092 set_state(PART:"elm.swallow.content", "visible", 0.0);
9093 set_state(PART:"icon_rect", "visible", 0.0);
9094 set_state(PART:"padding_after_icon", "visible", 0.0);
9096 set_state(PART:"elm.text", "visible", 0.0);
9099 program { name: "text_hide";
9100 signal: "elm,state,text,hidden";
9105 get_state(PART:"elm.swallow.content", st, 30, vl);
9106 if (!strcmp(st, "visible"))
9108 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9109 set_state(PART:"icon_rect", "icononly", 0.0);
9110 set_state(PART:"padding_after_icon", "icononly", 0.0);
9112 set_state(PART:"elm.text", "default", 0.0);
9115 program { name: "icon_show";
9116 signal: "elm,state,icon,visible";
9121 get_state(PART:"elm.text", st, 30, vl);
9122 if (!strcmp(st, "visible"))
9124 set_state(PART:"elm.swallow.content", "visible", 0.0);
9125 set_state(PART:"icon_rect", "visible", 0.0);
9126 set_state(PART:"padding_after_icon", "visible", 0.0);
9130 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9131 set_state(PART:"icon_rect", "icononly", 0.0);
9132 set_state(PART:"padding_after_icon", "icononly", 0.0);
9136 program { name: "icon_hide";
9137 signal: "elm,state,icon,hidden";
9139 action: STATE_SET "default" 0.0;
9140 target: "elm.swallow.content";
9141 target: "icon_rect";
9142 target: "padding_after_icon";
9144 program { name: "disable";
9145 signal: "elm,state,disabled";
9147 action: STATE_SET "disabled" 0.0;
9148 target: "button_image";
9151 after: "disable_text";
9153 program { name: "disable_text";
9157 set_int(button_state, BUTTON_STATE_DISABLED);
9158 get_state(PART:"elm.text", st, 30, vl);
9159 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9160 set_state(PART:"elm.text", "visible", 0.0);
9163 program { name: "enable";
9164 signal: "elm,state,enabled";
9166 action: STATE_SET "default" 0.0;
9167 target: "button_image";
9170 after: "enable_text";
9172 program { name: "enable_text";
9176 set_int(button_state, BUTTON_STATE_ENABLED);
9177 get_state(PART:"elm.text", st, 30, vl);
9178 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9179 set_state(PART:"elm.text", "visible", 0.0);
9182 program { name: "focused";
9183 //signal: "elm,action,focus";
9185 action: STATE_SET "focused" 0.0;
9186 target: "button_image";
9189 program { name: "unfocused";
9190 //signal: "elm,action,unfocus";
9192 action: STATE_SET "default" 0.0;
9193 target: "button_image";
9194 after: "unfocus_text";
9196 program { name: "unfocus_text";
9197 action: STATE_SET "visible" 0.0;
9203 ///////////////////////////////////////////////////////////////////////////////////////
9204 group { name: "elm/button/base/naviframe_control/multiline";
9206 public button_state = BUTTON_STATE_ENABLED;
9209 image: "00_Option_header_bt.png" COMP;
9210 image: "00_Option_header_bt_dim.png" COMP;
9211 image: "00_Option_header_bt_press.png" COMP;
9212 image: "00_Option_header_bt_focus.png" COMP;
9215 style { name: "btn_multiline_naviframe_controlbar_style";
9216 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9223 part { name: "button_image";
9225 description { state: "default" 0.0;
9226 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9230 normal: "00_Option_header_bt.png";
9231 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9233 color: 255 255 255 255;
9235 description { state: "disabled" 0.0;
9236 inherit: "default" 0.0;
9237 image.normal: "00_Option_header_bt_dim.png";
9239 description { state: "clicked" 0.0;
9240 inherit: "default" 0.0;
9241 image.normal: "00_Option_header_bt_press.png";
9243 description { state: "focused" 0.0;
9244 inherit: "default" 0.0;
9245 image.normal: "00_Option_header_bt_focus.png";
9248 part { name: "padding_left_top";
9252 description { state: "default" 0.0;
9254 rel2.relative: 0.0 0.0;
9255 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9260 part { name: "padding_right_bottom";
9264 description { state: "default" 0.0;
9266 rel1.relative: 1.0 1.0;
9267 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9272 part { name: "icon_rect";
9276 description { state: "default" 0.0;
9282 to_x: "elm.swallow.content";
9283 to_y: "padding_left_top";
9287 to_x: "elm.swallow.content";
9288 to_y: "padding_right_bottom";
9293 part { name: "padding_icon_text";
9297 description { state: "default" 0.0; //when only icon or no icon is there
9311 description { state: "visible" 0.0;
9312 inherit: "default" 0.0;
9313 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9323 description { state: "icononly" 0.0;
9324 inherit: "default" 0.0;
9327 part { name: "elm.swallow.content";
9331 description { state: "default" 0.0;
9336 to: "padding_left_top";
9340 to_x: "padding_left_top";
9341 to_y: "padding_right_bottom";
9345 description { state: "visible" 0.0;
9347 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9348 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9352 to: "padding_left_top";
9356 to_x: "padding_left_top";
9357 to_y: "padding_right_bottom";
9360 description { state: "icononly" 0.0;
9361 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9362 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9365 to: "padding_left_top";
9369 to: "padding_right_bottom";
9373 part { name: "elm.text";
9378 description { state: "default" 0.0;
9382 to_x: "padding_icon_text";
9383 to_y: "padding_left_top";
9387 to: "padding_right_bottom";
9389 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9391 style: "btn_multiline_naviframe_controlbar_style";
9396 description { state: "visible" 0.0;
9397 inherit: "default" 0.0;
9401 description { state: "clicked" 0.0;
9402 inherit: "default" 0.0;
9406 description { state: "focused" 0.0;
9407 inherit: "default" 0.0;
9410 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9413 part { name: "over2";
9416 ignore_flags: ON_HOLD;
9417 description { state: "default" 0.0;
9421 part { name: "over3";
9424 description { state: "default" 0.0;
9428 part { name: "clipper";
9430 description { state: "default" 0.0;
9431 color: 255 255 255 255;
9433 description { state: "disabled" 0.0;
9434 color: 255 255 255 127;
9437 part { name: "disabler";
9439 description { state: "default" 0.0;
9443 description { state: "disabled" 0.0;
9444 inherit: "default" 0.0;
9450 program { name: "button_click";
9451 signal: "mouse,down,1";
9453 action: SIGNAL_EMIT "elm,action,press" "";
9454 after: "button_click_anim";
9456 program { name: "button_click_anim";
9457 action: STATE_SET "clicked" 0.0;
9458 target: "button_image";
9459 after: "text_clicked";
9461 program { name: "text_clicked";
9465 get_state(PART:"elm.text", st, 30, vl);
9466 if (!strcmp(st, "visible"))
9467 set_state(PART:"elm.text", "clicked", 0.0);
9470 program { name: "button_unpress";
9471 action: SIGNAL_EMIT "elm,action,unpress" "";
9473 program { name: "button_mouseout_clicked";
9474 signal: "mouse,up,1";
9479 get_state(PART:"elm.swallow.content", st, 30, vl);
9480 if (strcmp(st, "icononly"))
9482 emit("elm,action,default,text,set", "");
9483 set_state(PART:"elm.text", "visible", 0.0);
9485 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9486 set_state(PART:"button_image", "default", 0.0);
9488 after: button_unpress;
9490 program { name: "touch_snd";
9491 signal: "mouse,clicked,1";
9493 action: PLAY_SAMPLE "touch_sound" 1.0;
9494 after: button_unclick3;
9496 program { name: "button_unclick3";
9497 action: SIGNAL_EMIT "elm,action,click" "";
9499 program { name: "text_show";
9500 signal: "elm,state,text,visible";
9505 get_state(PART:"elm.swallow.content", st, 30, vl);
9506 if (!strcmp(st, "icononly"))
9508 set_state(PART:"elm.swallow.content", "visible", 0.0);
9509 set_state(PART:"padding_icon_text", "visible", 0.0);
9511 set_state(PART:"elm.text", "visible", 0.0);
9514 program { name: "text_hide";
9515 signal: "elm,state,text,hidden";
9520 get_state(PART:"elm.swallow.content", st, 30, vl);
9521 if (!strcmp(st, "visible"))
9523 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9524 set_state(PART:"padding_icon_text", "icononly", 0.0);
9526 set_state(PART:"elm.text", "default", 0.0);
9529 program { name: "icon_show";
9530 signal: "elm,state,icon,visible";
9535 get_state(PART:"elm.text", st, 30, vl);
9536 if (!strcmp(st, "visible"))
9538 set_state(PART:"elm.swallow.content", "visible", 0.0);
9539 set_state(PART:"padding_icon_text", "visible", 0.0);
9543 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9544 set_state(PART:"padding_icon_text", "icononly", 0.0);
9548 program { name: "icon_hide";
9549 signal: "elm,state,icon,hidden";
9551 action: STATE_SET "default" 0.0;
9552 target: "elm.swallow.content";
9553 target: "padding_icon_text";
9555 program { name: "disable";
9556 signal: "elm,state,disabled";
9558 action: STATE_SET "disabled" 0.0;
9559 target: "button_image";
9562 after: "disable_text";
9564 program { name: "disable_text";
9568 set_int(button_state, BUTTON_STATE_DISABLED);
9569 get_state(PART:"elm.text", st, 30, vl);
9570 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9571 set_state(PART:"elm.text", "visible", 0.0);
9574 program { name: "enable";
9575 signal: "elm,state,enabled";
9577 action: STATE_SET "default" 0.0;
9578 target: "button_image";
9581 after: "enable_text";
9583 program { name: "enable_text";
9587 set_int(button_state, BUTTON_STATE_ENABLED);
9588 get_state(PART:"elm.text", st, 30, vl);
9589 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9590 set_state(PART:"elm.text", "visible", 0.0);
9593 program { name: "focused";
9594 //signal: "elm,action,focus";
9596 action: STATE_SET "focused" 0.0;
9597 target: "button_image";
9600 program { name: "unfocused";
9601 //signal: "elm,action,unfocus";
9603 action: STATE_SET "default" 0.0;
9604 target: "button_image";
9605 after: "unfocus_text";
9607 program { name: "unfocus_text";
9608 action: STATE_SET "visible" 0.0;
9614 /////////////////////////////////////////////////////////////
9615 group { name: "elm/button/base/naviframe/title1/default";
9617 image: "00_winset_Back_btn_normal.png" COMP;
9618 image: "00_winset_Back_btn_press.png" COMP;
9619 image: "00_winset_Back_btn_normal_focus.png" COMP;
9622 public button_state = BUTTON_STATE_ENABLED;
9625 part { name: "button_image";
9627 description { state: "default" 0.0;
9628 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9630 normal: "00_winset_Back_btn_normal.png";
9631 border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9635 description { state: "clicked" 0.0;
9636 inherit: "default" 0.0;
9637 image.normal: "00_winset_Back_btn_press.png";
9639 description { state: "disabled" 0.0;
9640 inherit: "default" 0.0;
9641 color: 127 127 127 127;
9643 description { state: "focused" 0.0;
9644 inherit: "default" 0.0;
9645 image.normal: "00_winset_Back_btn_normal_focus.png";
9648 part { name: "padding_left_top";
9652 description { state: "default" 0.0;
9654 rel2.relative: 0.0 0.0;
9655 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9664 description { state: "default" 0.0;
9665 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9668 description { state: "visible" 0.0;
9669 inherit: "default" 0.0;
9670 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9672 description { state: "icononly" 0.0;
9673 inherit: "default" 0.0;
9674 min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9677 part { name: "padding_right_bottom";
9681 description { state: "default" 0.0;
9683 rel1.relative: 1.0 1.0;
9684 min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9689 part { name: "icon_rect";
9693 description { state: "default" 0.0;
9699 to: "padding_left_top";
9703 to_x: "padding_left_top";
9704 to_y: "padding_right_bottom";
9708 description { state: "visible" 0.0;
9710 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9711 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9715 to: "padding_left_top";
9719 to_x: "padding_left_top";
9720 to_y: "padding_right_bottom";
9724 description { state: "icononly" 0.0;
9725 inherit: "default" 0.0;
9728 part { name: "padding_after_icon";
9732 description { state: "default" 0.0; //when only icon or no icon is there
9738 rel2.to: "icon_rect";
9743 description { state: "visible" 0.0;
9750 rel2.to: "icon_rect";
9752 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9754 description { state: "icononly" 0.0;
9755 inherit: "default" 0.0;
9758 part { name: "padding_before_text";
9762 description { state: "default" 0.0; //when only icon or no icon is there
9767 to_y: "padding_left_top";
9772 to_y: "padding_right_bottom";
9775 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9779 part { name: "elm.swallow.content";
9783 description { state: "default" 0.0;
9788 to: "padding_left_top";
9792 to_x: "padding_left_top";
9793 to_y: "padding_right_bottom";
9797 description { state: "visible" 0.0;
9799 min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9800 max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9804 to_x: "padding_before_text";
9805 to_y: "padding_left_top";
9809 to_x: "padding_before_text";
9810 to_y: "padding_right_bottom";
9813 description { state: "icononly" 0.0;
9814 min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9815 max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9818 part { name: "elm.text";
9823 description { state: "default" 0.0;
9827 to_x: "padding_after_icon";
9828 to_y: "padding_left_top";
9832 to: "padding_right_bottom";
9834 color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9836 font: "SLP:style=Medium";
9837 size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9840 text_class: "slp_medium";
9843 description { state: "visible" 0.0;
9844 inherit: "default" 0.0;
9847 description { state: "clicked" 0.0;
9848 inherit: "default" 0.0;
9850 color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9852 description { state: "disabled" 0.0;
9853 inherit: "default" 0.0;
9856 description { state: "disabled_visible" 0.0;
9857 inherit: "default" 0.0;
9858 color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9861 description { state: "focused" 0.0;
9862 inherit: "default" 0.0;
9864 color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9867 part { name: "over2";
9870 ignore_flags: ON_HOLD;
9871 description { state: "default" 0.0;
9875 part { name: "over3";
9878 description { state: "default" 0.0;
9882 part { name: "clipper";
9884 description { state: "default" 0.0;
9885 color: 255 255 255 255;
9888 part { name: "disabler";
9890 description { state: "default" 0.0;
9894 description { state: "disabled" 0.0;
9895 inherit: "default" 0.0;
9901 program { name: "button_click";
9902 signal: "mouse,down,1";
9904 action: SIGNAL_EMIT "elm,action,press" "";
9905 after: "button_click_anim";
9907 program { name: "button_click_anim";
9908 action: STATE_SET "clicked" 0.0;
9909 target: "button_image";
9910 after: "text_clicked";
9912 program { name: "text_clicked";
9916 get_state(PART:"elm.text", st, 30, vl);
9917 if (!strcmp(st, "visible"))
9918 set_state(PART:"elm.text", "clicked", 0.0);
9921 program { name: "button_unpress";
9922 action: SIGNAL_EMIT "elm,action,unpress" "";
9924 program { name: "button_mouseout_clicked";
9925 signal: "mouse,up,1";
9930 get_state(PART:"elm.swallow.content", st, 30, vl);
9931 if (strcmp(st, "icononly"))
9933 emit("elm,action,default,text,set", "");
9934 set_state(PART:"elm.text", "visible", 0.0);
9936 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9937 set_state(PART:"button_image", "default", 0.0);
9939 after: button_unpress;
9941 program { name: "touch_snd";
9942 signal: "mouse,clicked,1";
9944 action: PLAY_SAMPLE "touch_sound" 1.0;
9945 after: button_unclick3;
9947 program { name: "button_unclick3";
9948 action: SIGNAL_EMIT "elm,action,click" "";
9950 program { name: "text_show";
9951 signal: "elm,state,text,visible";
9956 get_state(PART:"elm.swallow.content", st, 30, vl);
9957 if (!strcmp(st, "icononly"))
9959 set_state(PART:"elm.swallow.content", "visible", 0.0);
9960 set_state(PART:"icon_rect", "visible", 0.0);
9961 set_state(PART:"padding_after_icon", "visible", 0.0);
9962 set_state(PART:"bg", "visible", 0.0);
9964 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9965 set_state(PART:"elm.text", "visible", 0.0);
9967 set_state(PART:"elm.text", "disabled_visible", 0.0);
9970 program { name: "text_hide";
9971 signal: "elm,state,text,hidden";
9976 get_state(PART:"elm.swallow.content", st, 30, vl);
9977 if (!strcmp(st, "visible"))
9979 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9980 set_state(PART:"icon_rect", "icononly", 0.0);
9981 set_state(PART:"padding_after_icon", "icononly", 0.0);
9982 set_state(PART:"bg", "icononly", 0.0);
9984 set_state(PART:"elm.text", "default", 0.0);
9987 program { name: "icon_show";
9988 signal: "elm,state,icon,visible";
9993 get_state(PART:"elm.text", st, 30, vl);
9994 if (!strcmp(st, "visible"))
9996 set_state(PART:"elm.swallow.content", "visible", 0.0);
9997 set_state(PART:"icon_rect", "visible", 0.0);
9998 set_state(PART:"padding_after_icon", "visible", 0.0);
9999 set_state(PART:"bg", "visible", 0.0);
10003 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10004 set_state(PART:"icon_rect", "icononly", 0.0);
10005 set_state(PART:"padding_after_icon", "icononly", 0.0);
10006 set_state(PART:"bg", "icononly", 0.0);
10010 program { name: "icon_hide";
10011 signal: "elm,state,icon,hidden";
10013 action: STATE_SET "default" 0.0;
10014 target: "elm.swallow.content";
10015 target: "padding_after_icon";
10016 target: "icon_rect";
10019 program { name: "disable";
10020 signal: "elm,state,disabled";
10022 action: STATE_SET "disabled" 0.0;
10023 target: "button_image";
10024 target: "disabler";
10025 after: "disable_text";
10027 program { name: "disable_text";
10031 get_state(PART:"elm.text", st, 30, vl);
10032 if (!strcmp(st, "visible"))
10033 set_state(PART:"elm.text", "disabled_visible", 0.0);
10035 set_state(PART:"elm.text", "disabled", 0.0);
10036 set_int(button_state, BUTTON_STATE_DISABLED);
10039 program { name: "enable";
10040 signal: "elm,state,enabled";
10042 action: STATE_SET "default" 0.0;
10043 target: "button_image";
10044 target: "disabler";
10045 after: "enable_text";
10047 program { name: "enable_text";
10051 get_state(PART:"elm.text", st, 30, vl);
10052 if (!strcmp(st, "disabled_visible"))
10053 set_state(PART:"elm.text", "visible", 0.0);
10055 set_state(PART:"elm.text", "default", 0.0);
10056 set_int(button_state, BUTTON_STATE_ENABLED);
10059 program { name: "focused";
10060 //signal: "elm,action,focus";
10062 action: STATE_SET "focused" 0.0;
10063 target: "button_image";
10064 target: "elm.text";
10066 program { name: "unfocused";
10067 //signal: "elm,action,unfocus";
10069 action: STATE_SET "default" 0.0;
10070 target: "button_image";
10071 after: "unfocus_text";
10073 program { name: "unfocus_text";
10074 action: STATE_SET "visible" 0.0;
10075 target: "elm.text";
10080 //////////////////////////////////////////////////////////////
10081 group { name: "elm/button/base/naviframe/title/default";
10083 public button_state = BUTTON_STATE_ENABLED;
10086 image: "00_title_btn_bg_press.png" COMP;
10089 style { name: "btn_naviframe_style";
10090 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_medium";
10097 part { name: "button_image";
10099 description { state: "default" 0.0;
10100 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10101 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10104 description { state: "clicked" 0.0;
10105 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10106 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10108 normal: "00_title_btn_bg_press.png";
10109 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
10113 description { state: "disabled" 0.0;
10114 inherit: "default" 0.0;
10116 description { state: "focused" 0.0;
10117 inherit: "default" 0.0;
10120 part { name: "padding_left_top";
10124 description { state: "default" 0.0;
10126 rel2.relative: 0.0 0.0;
10127 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10132 part { name: "padding_right_bottom";
10136 description { state: "default" 0.0;
10138 rel1.relative: 1.0 1.0;
10139 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10144 part { name: "icon_rect";
10148 description { state: "default" 0.0;
10154 to: "padding_left_top";
10158 to_x: "padding_left_top";
10159 to_y: "padding_right_bottom";
10163 description { state: "visible" 0.0;
10165 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10166 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10170 to: "padding_left_top";
10174 to_x: "padding_left_top";
10175 to_y: "padding_right_bottom";
10179 description { state: "icononly" 0.0;
10180 inherit: "default" 0.0;
10183 part { name: "padding_after_icon";
10187 description { state: "default" 0.0; //when only icon or no icon is there
10193 rel2.to: "icon_rect";
10198 description { state: "visible" 0.0;
10205 rel2.to: "icon_rect";
10207 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10209 description { state: "icononly" 0.0;
10210 inherit: "default" 0.0;
10213 part { name: "padding_before_text";
10217 description { state: "default" 0.0; //when only icon or no icon is there
10222 to_y: "padding_left_top";
10227 to_y: "padding_right_bottom";
10230 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10234 part { name: "elm.swallow.content";
10237 clip_to: "clipper";
10238 description { state: "default" 0.0;
10243 to: "padding_left_top";
10247 to_x: "padding_left_top";
10248 to_y: "padding_right_bottom";
10252 description { state: "visible" 0.0;
10254 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10255 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10259 to_x: "padding_before_text";
10260 to_y: "padding_left_top";
10264 to_x: "padding_before_text";
10265 to_y: "padding_right_bottom";
10268 description { state: "icononly" 0.0;
10269 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10270 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10273 part { name: "elm.text";
10277 clip_to: "clipper";
10278 description { state: "default" 0.0;
10282 to_x: "padding_after_icon";
10283 to_y: "padding_left_top";
10287 to: "padding_right_bottom";
10289 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
10291 style: "btn_naviframe_style";
10296 description { state: "visible" 0.0;
10297 inherit: "default" 0.0;
10300 description { state: "clicked" 0.0;
10301 inherit: "default" 0.0;
10303 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
10305 description { state: "disabled" 0.0;
10306 inherit: "default" 0.0;
10309 description { state: "disabled_visible" 0.0;
10310 inherit: "default" 0.0;
10311 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
10314 description { state: "focused" 0.0;
10315 inherit: "default" 0.0;
10317 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
10320 part { name: "over2";
10323 ignore_flags: ON_HOLD;
10324 description { state: "default" 0.0;
10328 part { name: "over3";
10331 description { state: "default" 0.0;
10335 part { name: "clipper";
10337 description { state: "default" 0.0;
10338 color: 255 255 255 255;
10341 part { name: "disabler";
10343 description { state: "default" 0.0;
10347 description { state: "disabled" 0.0;
10348 inherit: "default" 0.0;
10349 color: 127 127 127 127;
10355 program { name: "button_click";
10356 signal: "mouse,down,1";
10358 action: SIGNAL_EMIT "elm,action,press" "";
10359 after: "button_click_anim";
10361 program { name: "button_click_anim";
10362 action: STATE_SET "clicked" 0.0;
10363 target: "button_image";
10364 after: "text_clicked";
10366 program { name: "text_clicked";
10370 get_state(PART:"elm.text", st, 30, vl);
10371 if (!strcmp(st, "visible"))
10372 set_state(PART:"elm.text", "clicked", 0.0);
10375 program { name: "button_unpress";
10376 action: SIGNAL_EMIT "elm,action,unpress" "";
10378 program { name: "button_mouseout_clicked";
10379 signal: "mouse,up,1";
10384 get_state(PART:"elm.swallow.content", st, 30, vl);
10385 if (strcmp(st, "icononly"))
10387 emit("elm,action,default,text,set", "");
10388 set_state(PART:"elm.text", "visible", 0.0);
10390 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10391 set_state(PART:"button_image", "default", 0.0);
10393 after: button_unpress;
10395 program { name: "touch_snd";
10396 signal: "mouse,clicked,1";
10398 action: PLAY_SAMPLE "touch_sound" 1.0;
10399 after: button_unclick3;
10401 program { name: "button_unclick3";
10402 action: SIGNAL_EMIT "elm,action,click" "";
10404 program { name: "text_show";
10405 signal: "elm,state,text,visible";
10410 get_state(PART:"elm.swallow.content", st, 30, vl);
10411 if (!strcmp(st, "icononly"))
10413 set_state(PART:"elm.swallow.content", "visible", 0.0);
10414 set_state(PART:"icon_rect", "visible", 0.0);
10415 set_state(PART:"padding_after_icon", "visible", 0.0);
10417 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10418 set_state(PART:"elm.text", "visible", 0.0);
10420 set_state(PART:"elm.text", "disabled_visible", 0.0);
10423 program { name: "text_hide";
10424 signal: "elm,state,text,hidden";
10429 get_state(PART:"elm.swallow.content", st, 30, vl);
10430 if (!strcmp(st, "visible"))
10432 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10433 set_state(PART:"icon_rect", "icononly", 0.0);
10434 set_state(PART:"padding_after_icon", "icononly", 0.0);
10436 set_state(PART:"elm.text", "default", 0.0);
10439 program { name: "icon_show";
10440 signal: "elm,state,icon,visible";
10445 get_state(PART:"elm.text", st, 30, vl);
10446 if (!strcmp(st, "visible"))
10448 set_state(PART:"elm.swallow.content", "visible", 0.0);
10449 set_state(PART:"icon_rect", "visible", 0.0);
10450 set_state(PART:"padding_after_icon", "visible", 0.0);
10454 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10455 set_state(PART:"icon_rect", "icononly", 0.0);
10456 set_state(PART:"padding_after_icon", "icononly", 0.0);
10460 program { name: "icon_hide";
10461 signal: "elm,state,icon,hidden";
10463 action: STATE_SET "default" 0.0;
10464 target: "elm.swallow.content";
10465 target: "padding_after_icon";
10466 target: "icon_rect";
10468 program { name: "disable";
10469 signal: "elm,state,disabled";
10471 action: STATE_SET "disabled" 0.0;
10472 target: "button_image";
10473 target: "disabler";
10474 after: "disable_text";
10476 program { name: "disable_text";
10480 get_state(PART:"elm.text", st, 30, vl);
10481 if (!strcmp(st, "visible"))
10482 set_state(PART:"elm.text", "disabled_visible", 0.0);
10484 set_state(PART:"elm.text", "disabled", 0.0);
10485 set_int(button_state, BUTTON_STATE_DISABLED);
10488 program { name: "enable";
10489 signal: "elm,state,enabled";
10491 action: STATE_SET "default" 0.0;
10492 target: "button_image";
10493 target: "disabler";
10494 after: "enable_text";
10496 program { name: "enable_text";
10500 get_state(PART:"elm.text", st, 30, vl);
10501 if (!strcmp(st, "disabled_visible"))
10502 set_state(PART:"elm.text", "visible", 0.0);
10504 set_state(PART:"elm.text", "default", 0.0);
10505 set_int(button_state, BUTTON_STATE_ENABLED);
10508 program { name: "focused";
10509 //signal: "elm,action,focus";
10511 action: STATE_SET "focused" 0.0;
10512 target: "button_image";
10513 target: "elm.text";
10515 program { name: "unfocused";
10516 //signal: "elm,action,unfocus";
10518 action: STATE_SET "default" 0.0;
10519 target: "button_image";
10520 after: "unfocus_text";
10522 program { name: "unfocus_text";
10523 action: STATE_SET "visible" 0.0;
10524 target: "elm.text";
10529 ///////////////////////////////////////////////////////////////////////////////////////
10530 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10531 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10533 image: image_normal COMP; \
10534 image: image_press COMP; \
10535 image: "00_title_btn_bg_press.png" COMP; \
10538 part { name: "button_image"; \
10540 description { state: "default" 0.0; \
10541 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10542 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10546 state: "clicked" 0.0; \
10547 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10548 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10550 normal: "00_title_btn_bg_press.png"; \
10551 border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10556 state: "disabled" 0.0; \
10557 inherit: "default" 0.0; \
10559 description { state: "focused" 0.0; \
10560 inherit: "default" 0.0;\
10563 part { name: "icon_part"; \
10565 description { state: "default" 0.0; \
10566 min: min_width min_height; \
10567 max: min_width min_height; \
10568 rel1.to: "button_image"; \
10569 rel2.to: "button_image"; \
10570 image.normal: image_normal; \
10573 state: "clicked" 0.0; \
10574 inherit: "default" 0.0; \
10575 image.normal: image_press; \
10578 state: "disabled" 0.0; \
10579 inherit: "default" 0.0; \
10580 color: 127 127 127 127; \
10583 part { name: "over1"; \
10585 ignore_flags: ON_HOLD; \
10586 description { state: "default" 0.0; \
10590 part { name: "over2"; \
10591 repeat_events: 1; \
10592 description { state: "default" 0.0; \
10596 part { name: "disabler"; \
10598 description { state: "default" 0.0; \
10602 description { state: "disabled" 0.0; \
10603 inherit: "default" 0.0; \
10609 program { name: "button_click"; \
10610 signal: "mouse,down,1"; \
10612 action: SIGNAL_EMIT "elm,action,press" ""; \
10613 after: "button_click_anim"; \
10615 program { name: "button_click_anim"; \
10616 action: STATE_SET "clicked" 0.0; \
10617 target: "button_image"; \
10618 target: "icon_part"; \
10620 program { name: "button_unclick"; \
10621 signal: "mouse,up,1"; \
10623 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10624 after: "button_unclick_anim"; \
10626 program { name: "button_unclick_anim"; \
10627 action: STATE_SET "default" 0.0; \
10628 target: "button_image"; \
10629 target: "icon_part"; \
10631 program { name: "touch_snd"; \
10632 signal: "mouse,clicked,1"; \
10634 action: PLAY_SAMPLE "touch_sound" 1.0; \
10635 after: button_unclick3; \
10637 program { name: "button_unclick3"; \
10638 action: SIGNAL_EMIT "elm,action,click" ""; \
10640 program { name: "disable"; \
10641 signal: "elm,state,disabled"; \
10643 action: STATE_SET "disabled" 0.0; \
10644 target: "disabler"; \
10645 target: "button_image"; \
10646 target: "icon_part"; \
10648 program { name: "enable"; \
10649 signal: "elm,state,enabled"; \
10651 action: STATE_SET "default" 0.0; \
10652 target: "disabler"; \
10653 target: "button_image"; \
10654 target: "icon_part"; \
10658 ///////////////////////////////////////////////////////////////////////////////////////
10659 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_HEIGHT_INC)
10661 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("plus", "00_button_plus.png", "00_button_plus_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_HEIGHT_INC)
10663 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("more", "00_winset_more.png", "00_winset_more_press.png", BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_HEIGHT_INC)
10665 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("search", "00_title_icon_search.png", "00_title_icon_search_press.png", BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_HEIGHT_INC)
10667 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("previous", "00_winset_Back.png", "00_winset_Back.png", BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_HEIGHT_INC)
10669 /////////////////////////////////////////////////////////////////////////////////////////
10670 group { name: "elm/button/base/naviframe/more/default";
10672 image: "00_winset_more.png" COMP;
10673 image: "00_winset_more_press.png" COMP;
10674 image: "00_title_btn_bg_press.png" COMP;
10677 part { name: "button_image";
10679 description { state: "default" 0.0;
10680 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10681 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10684 description { state: "clicked" 0.0;
10685 min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10686 max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10688 normal: "00_title_btn_bg_press.png";
10689 border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10693 description { state: "disabled" 0.0;
10694 inherit: "default" 0.0;
10696 description { state: "focused" 0.0;
10697 inherit: "default" 0.0;
10700 part { name: "more_image";
10703 description { state: "default" 0.0;
10704 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10705 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10706 rel1.to: "button_image";
10707 rel2.to: "button_image";
10708 image.normal: "00_winset_more.png";
10710 description { state: "clicked" 0.0;
10711 inherit: "default" 0.0;
10712 image.normal: "00_winset_more_press.png";
10714 description { state: "disabled" 0.0;
10715 inherit: "default" 0.0;
10716 color: 255 255 255 127;
10719 part { name: "over2";
10722 ignore_flags: ON_HOLD;
10723 description { state: "default" 0.0;
10727 part { name: "over3";
10730 description { state: "default" 0.0;
10734 part { name: "disabler";
10736 description { state: "default" 0.0;
10740 description { state: "disabled" 0.0;
10741 inherit: "default" 0.0;
10747 program { name: "button_click";
10748 signal: "mouse,down,1";
10750 action: SIGNAL_EMIT "elm,action,press" "";
10751 after: "button_click_anim";
10753 program { name: "button_click_anim";
10754 action: STATE_SET "clicked" 0.0;
10755 target: "button_image";
10756 target: "more_image";
10758 program { name: "button_unclick";
10759 signal: "mouse,up,1";
10761 action: SIGNAL_EMIT "elm,action,unpress" "";
10762 after: "button_unclick_anim";
10764 program { name: "button_unclick_anim";
10765 action: STATE_SET "default" 0.0;
10766 target: "button_image";
10767 target: "more_image";
10769 program { name: "touch_snd";
10770 signal: "mouse,clicked,1";
10772 action: PLAY_SAMPLE "touch_sound" 1.0;
10773 after: button_unclick3;
10775 program { name: "button_unclick3";
10776 action: SIGNAL_EMIT "elm,action,click" "";
10778 program { name: "disable";
10779 signal: "elm,state,disabled";
10781 action: STATE_SET "disabled" 0.0;
10782 target: "disabler";
10783 target: "button_image";
10784 target: "more_image";
10786 program { name: "enable";
10787 signal: "elm,state,enabled";
10789 action: STATE_SET "default" 0.0;
10790 target: "disabler";
10791 target: "button_image";
10792 target: "more_image";
10797 ///////////////////////////////////////////////////////////////////////////////////////
10798 group { name: "elm/button/base/tickernoti";
10800 image: "00_button_06_normal.png" COMP;
10801 image: "00_button_06_press.png" COMP;
10802 image: "00_button_06_dim.png" COMP;
10803 image: "00_button_06_normal_focus.png" COMP;
10806 public button_state = BUTTON_STATE_ENABLED;
10809 part { name: "button_image";
10811 description { state: "default" 0.0;
10813 normal: "00_button_06_normal.png";
10814 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10818 description { state: "clicked" 0.0;
10819 inherit: "default" 0.0;
10820 image.normal: "00_button_06_press.png";
10822 description { state: "disabled" 0.0;
10823 inherit: "default" 0.0;
10824 image.normal: "00_button_06_dim.png";
10826 description { state: "focused" 0.0;
10827 inherit: "default" 0.0;
10828 image.normal: "00_button_06_normal_focus.png";
10831 part { name: "padding_left_top";
10835 description { state: "default" 0.0;
10837 rel2.relative: 0.0 0.0;
10838 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10847 description { state: "default" 0.0;
10848 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10851 description { state: "visible" 0.0;
10852 inherit: "default" 0.0;
10853 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10855 description { state: "icononly" 0.0;
10856 inherit: "default" 0.0;
10857 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10860 part { name: "padding_right_bottom";
10864 description { state: "default" 0.0;
10866 rel1.relative: 1.0 1.0;
10867 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10872 part { name: "icon_rect";
10876 description { state: "default" 0.0;
10882 to: "padding_left_top";
10886 to_x: "padding_left_top";
10887 to_y: "padding_right_bottom";
10891 description { state: "visible" 0.0;
10893 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10894 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10898 to: "padding_left_top";
10902 to_x: "padding_left_top";
10903 to_y: "padding_right_bottom";
10907 description { state: "icononly" 0.0;
10908 inherit: "default" 0.0;
10911 part { name: "padding_after_icon";
10915 description { state: "default" 0.0; //when only icon or no icon is there
10921 rel2.to: "icon_rect";
10926 description { state: "visible" 0.0;
10933 rel2.to: "icon_rect";
10935 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10937 description { state: "icononly" 0.0;
10938 inherit: "default" 0.0;
10941 part { name: "padding_before_text";
10945 description { state: "default" 0.0; //when only icon or no icon is there
10950 to_y: "padding_left_top";
10955 to_y: "padding_right_bottom";
10958 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10962 part { name: "elm.swallow.content";
10965 clip_to: "clipper";
10966 description { state: "default" 0.0;
10971 to: "padding_left_top";
10975 to_x: "padding_left_top";
10976 to_y: "padding_right_bottom";
10980 description { state: "visible" 0.0;
10982 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10983 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10987 to_x: "padding_before_text";
10988 to_y: "padding_left_top";
10992 to_x: "padding_before_text";
10993 to_y: "padding_right_bottom";
10996 description { state: "icononly" 0.0;
10997 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10998 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
11001 part { name: "elm.text";
11005 clip_to: "clipper";
11006 description { state: "default" 0.0;
11010 to_x: "padding_after_icon";
11011 to_y: "padding_left_top";
11015 to: "padding_right_bottom";
11017 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
11019 font: "SLP:style=Medium";
11020 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
11023 text_class: "slp_medium";
11026 description { state: "visible" 0.0;
11027 inherit: "default" 0.0;
11030 description { state: "clicked" 0.0;
11031 inherit: "default" 0.0;
11033 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11035 description { state: "disabled" 0.0;
11036 inherit: "default" 0.0;
11039 description { state: "disabled_visible" 0.0;
11040 inherit: "default" 0.0;
11041 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
11044 description { state: "focused" 0.0;
11045 inherit: "default" 0.0;
11047 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11050 part { name: "over2";
11053 ignore_flags: ON_HOLD;
11054 description { state: "default" 0.0;
11058 part { name: "over3";
11061 description { state: "default" 0.0;
11065 part { name: "clipper";
11067 description { state: "default" 0.0;
11068 color: 255 255 255 255;
11071 part { name: "disabler";
11073 description { state: "default" 0.0;
11077 description { state: "disabled" 0.0;
11078 inherit: "default" 0.0;
11084 program { name: "button_click";
11085 signal: "mouse,down,1";
11087 action: SIGNAL_EMIT "elm,action,press" "";
11088 after: "button_click_anim";
11090 program { name: "button_click_anim";
11091 action: STATE_SET "clicked" 0.0;
11092 target: "button_image";
11093 after: "text_clicked";
11095 program { name: "text_clicked";
11099 get_state(PART:"elm.text", st, 30, vl);
11100 if (!strcmp(st, "visible"))
11101 set_state(PART:"elm.text", "clicked", 0.0);
11104 program { name: "button_unpress";
11105 action: SIGNAL_EMIT "elm,action,unpress" "";
11107 program { name: "button_mouseout_clicked";
11108 signal: "mouse,up,1";
11113 get_state(PART:"elm.swallow.content", st, 30, vl);
11114 if (strcmp(st, "icononly"))
11116 emit("elm,action,default,text,set", "");
11117 set_state(PART:"elm.text", "visible", 0.0);
11119 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11120 set_state(PART:"button_image", "default", 0.0);
11122 after: button_unpress;
11124 program { name: "touch_snd";
11125 signal: "mouse,clicked,1";
11127 action: PLAY_SAMPLE "touch_sound" 1.0;
11128 after: button_unclick3;
11130 program { name: "button_unclick3";
11131 action: SIGNAL_EMIT "elm,action,click" "";
11133 program { name: "text_show";
11134 signal: "elm,state,text,visible";
11139 get_state(PART:"elm.swallow.content", st, 30, vl);
11140 if (!strcmp(st, "icononly"))
11142 set_state(PART:"elm.swallow.content", "visible", 0.0);
11143 set_state(PART:"icon_rect", "visible", 0.0);
11144 set_state(PART:"padding_after_icon", "visible", 0.0);
11145 set_state(PART:"bg", "visible", 0.0);
11147 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11148 set_state(PART:"elm.text", "visible", 0.0);
11150 set_state(PART:"elm.text", "disabled_visible", 0.0);
11153 program { name: "text_hide";
11154 signal: "elm,state,text,hidden";
11159 get_state(PART:"elm.swallow.content", st, 30, vl);
11160 if (!strcmp(st, "visible"))
11162 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11163 set_state(PART:"icon_rect", "icononly", 0.0);
11164 set_state(PART:"padding_after_icon", "icononly", 0.0);
11165 set_state(PART:"bg", "icononly", 0.0);
11167 set_state(PART:"elm.text", "default", 0.0);
11170 program { name: "icon_show";
11171 signal: "elm,state,icon,visible";
11176 get_state(PART:"elm.text", st, 30, vl);
11177 if (!strcmp(st, "visible"))
11179 set_state(PART:"elm.swallow.content", "visible", 0.0);
11180 set_state(PART:"icon_rect", "visible", 0.0);
11181 set_state(PART:"padding_after_icon", "visible", 0.0);
11182 set_state(PART:"bg", "visible", 0.0);
11186 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11187 set_state(PART:"icon_rect", "icononly", 0.0);
11188 set_state(PART:"padding_after_icon", "icononly", 0.0);
11189 set_state(PART:"bg", "icononly", 0.0);
11193 program { name: "icon_hide";
11194 signal: "elm,state,icon,hidden";
11196 action: STATE_SET "default" 0.0;
11197 target: "elm.swallow.content";
11198 target: "padding_after_icon";
11199 target: "icon_rect";
11202 program { name: "disable";
11203 signal: "elm,state,disabled";
11205 action: STATE_SET "disabled" 0.0;
11206 target: "button_image";
11207 target: "disabler";
11208 after: "disable_text";
11210 program { name: "disable_text";
11214 get_state(PART:"elm.text", st, 30, vl);
11215 if (!strcmp(st, "visible"))
11216 set_state(PART:"elm.text", "disabled_visible", 0.0);
11218 set_state(PART:"elm.text", "disabled", 0.0);
11219 set_int(button_state, BUTTON_STATE_DISABLED);
11222 program { name: "enable";
11223 signal: "elm,state,enabled";
11225 action: STATE_SET "default" 0.0;
11226 target: "button_image";
11227 target: "disabler";
11228 after: "enable_text";
11230 program { name: "enable_text";
11234 get_state(PART:"elm.text", st, 30, vl);
11235 if (!strcmp(st, "disabled_visible"))
11236 set_state(PART:"elm.text", "visible", 0.0);
11238 set_state(PART:"elm.text", "default", 0.0);
11239 set_int(button_state, BUTTON_STATE_ENABLED);
11242 program { name: "focused";
11243 //signal: "elm,action,focus";
11245 action: STATE_SET "focused" 0.0;
11246 target: "button_image";
11247 target: "elm.text";
11249 program { name: "unfocused";
11250 //signal: "elm,action,unfocus";
11252 action: STATE_SET "default" 0.0;
11253 target: "button_image";
11254 after: "unfocus_text";
11256 program { name: "unfocus_text";
11257 action: STATE_SET "visible" 0.0;
11258 target: "elm.text";
11263 ///////////////////////////////////////////////////////////////////////////////////////
11264 group { name: "elm/button/base/expandable_number";
11265 alias: "elm/button/base/text_only/expandable_number";
11267 image: "00_button_05_normal.png" COMP;
11268 image: "00_button_05_press.png" COMP;
11269 image: "00_button_05_dim.png" COMP;
11270 image: "00_button_05_normal_focus.png" COMP;
11271 image: "00_arrow_expand.png" COMP;
11272 image: "00_arrow_expand_press.png" COMP;
11273 image: "00_arrow_expand_dim.png" COMP;
11276 public button_state = BUTTON_STATE_ENABLED;
11279 part { name: "button_image";
11281 description { state: "default" 0.0;
11282 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11283 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11285 normal: "00_button_05_normal.png";
11286 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
11290 description { state: "clicked" 0.0;
11291 inherit: "default" 0.0;
11292 image.normal: "00_button_05_press.png";
11294 description { state: "disabled" 0.0;
11295 inherit: "default" 0.0;
11296 image.normal: "00_button_05_dim.png";
11298 description { state: "focused" 0.0;
11299 inherit: "default" 0.0;
11300 image.normal: "00_button_05_normal_focus.png";
11303 part { name: "padding_left_top";
11307 description { state: "default" 0.0;
11309 rel2.relative: 0.0 0.0;
11310 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11315 part { name: "padding_right_bottom";
11319 description { state: "default" 0.0;
11321 rel1.relative: 1.0 1.0;
11322 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11327 part { name: "icon_rect";
11331 description { state: "default" 0.0;
11333 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11334 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11338 to_x: "padding_right_bottom";
11339 to_y: "padding_left_top";
11343 to: "padding_right_bottom";
11349 part { name: "arrow_expand";
11352 description { state: "default" 0.0;
11354 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11355 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11357 rel1.to: "icon_rect";
11358 rel2.to: "icon_rect";
11359 image.normal:"00_arrow_expand.png";
11361 description { state: "clicked" 0.0;
11362 inherit: "default" 0.0;
11363 image.normal:"00_arrow_expand_press.png";
11365 description { state: "disabled" 0.0;
11366 inherit: "default" 0.0;
11367 image.normal:"00_arrow_expand_dim.png";
11370 part { name: "elm.text";
11374 description { state: "default" 0.0;
11375 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11376 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11380 to: "padding_left_top";
11384 to_x:"padding_left_top";
11385 to_y:"padding_right_bottom";
11388 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
11390 font: "SLP:style=Medium";
11391 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
11395 text_class: "slp_medium";
11398 description { state: "visible" 0.0;
11399 inherit: "default" 0.0;
11401 description { state: "clicked" 0.0;
11402 inherit: "default" 0.0;
11403 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
11405 description { state: "disabled" 0.0;
11406 inherit: "default" 0.0;
11409 description { state: "disabled_visible" 0.0;
11410 inherit: "default" 0.0;
11411 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
11413 description { state: "focused" 0.0;
11414 inherit: "default" 0.0;
11415 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
11418 part { name: "over2";
11421 ignore_flags: ON_HOLD;
11422 description { state: "default" 0.0;
11426 part { name: "over3";
11429 description { state: "default" 0.0;
11433 part { name: "disabler";
11435 description { state: "default" 0.0;
11439 description { state: "disabled" 0.0;
11440 inherit: "default" 0.0;
11446 program { name: "button_click";
11447 signal: "mouse,down,1";
11449 action: SIGNAL_EMIT "elm,action,press" "";
11450 after: "button_click_anim";
11452 program { name: "button_click_anim";
11453 action: STATE_SET "clicked" 0.0;
11454 target: "button_image";
11455 target: "arrow_expand";
11456 after: "text_clicked";
11458 program { name: "text_clicked";
11462 get_state(PART:"elm.text", st, 30, vl);
11463 if (!strcmp(st, "visible"))
11464 set_state(PART:"elm.text", "clicked", 0.0);
11467 program { name: "button_unpress";
11468 action: SIGNAL_EMIT "elm,action,unpress" "";
11470 program { name: "button_mouseout_clicked";
11471 signal: "mouse,up,1";
11474 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11476 set_state(PART:"button_image", "default", 0.0);
11477 set_state(PART:"elm.text", "visible", 0.0);
11478 set_state(PART:"arrow_expand", "default", 0.0);
11481 after: button_unpress;
11483 program { name: "touch_snd";
11484 signal: "mouse,clicked,1";
11486 action: PLAY_SAMPLE "touch_sound" 1.0;
11487 after: button_unclick3;
11489 program { name: "button_unclick3";
11490 action: SIGNAL_EMIT "elm,action,click" "";
11492 program { name: "text_show";
11493 signal: "elm,state,text,visible";
11496 if (get_int(button_state) != BUTTON_STATE_DISABLED)
11497 set_state(PART:"elm.text", "visible", 0.0);
11499 set_state(PART:"elm.text", "disabled_visible", 0.0);
11502 program { name: "text_hide";
11503 signal: "elm,state,text,hidden";
11506 set_state(PART:"elm.text", "default", 0.0);
11509 program { name: "disable";
11510 signal: "elm,state,disabled";
11512 action: STATE_SET "disabled" 0.0;
11513 target: "button_image";
11514 target: "disabler";
11515 after: "disable_text";
11517 program { name: "disable_text";
11521 get_state(PART:"elm.text", st, 30, vl);
11522 if (!strcmp(st, "visible"))
11523 set_state(PART:"elm.text", "disabled_visible", 0.0);
11525 set_state(PART:"elm.text", "disabled", 0.0);
11526 set_int(button_state, BUTTON_STATE_DISABLED);
11529 program { name: "enable";
11530 signal: "elm,state,enabled";
11532 action: STATE_SET "default" 0.0;
11533 target: "button_image";
11534 target: "disabler";
11535 after: "enable_text";
11537 program { name: "enable_text";
11541 get_state(PART:"elm.text", st, 30, vl);
11542 if (!strcmp(st, "disabled_visible"))
11543 set_state(PART:"elm.text", "visible", 0.0);
11545 set_state(PART:"elm.text", "default", 0.0);
11546 set_int(button_state, BUTTON_STATE_ENABLED);
11549 program { name: "focused";
11550 //signal: "elm,action,focus";
11552 action: STATE_SET "focused" 0.0;
11553 target: "button_image";
11554 target: "elm.text";
11556 program { name: "unfocused";
11557 //signal: "elm,action,unfocus";
11559 action: STATE_SET "default" 0.0;
11560 target: "button_image";
11561 after: "unfocus_text";
11563 program { name: "unfocus_text";
11564 action: STATE_SET "visible" 0.0;
11565 target: "elm.text";
11570 #undef BUTTON_STATE_ENABLED
11571 #undef BUTTON_STATE_DISABLED