4 * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7 * Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8 * Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/text_only/style1";
28 image: "00_button_01_normal.png" COMP;
29 image: "00_button_01_normal_press.png" COMP;
30 image: "00_button_01_normal_dim.png" COMP;
33 public button_state = 0; //0:enabled, 1: disabled
36 part { name: "button_image";
39 description { state: "default" 0.0;
42 normal: "00_button_01_normal.png";
47 description { state: "clicked" 0.0;
48 inherit: "default" 0.0;
49 image.normal: "00_button_01_normal_press.png";
51 description { state: "disabled" 0.0;
52 inherit: "default" 0.0;
53 image.normal: "00_button_01_normal_dim.png";
55 description { state: "focused" 0.0;
56 inherit: "default" 0.0;
57 image.normal: "00_button_01_normal_press.png";
65 description { state: "default" 0.0;
67 rel1.relative: 0.0 0.0;
68 rel2.relative: 0.0 1.0;
75 name: "padding_right";
79 description { state: "default" 0.0;
81 rel1.relative: 1.0 0.0;
82 rel2.relative: 1.0 1.0;
93 description { state: "default" 0.0;
95 rel1.relative: 0.0 0.0;
96 rel2.relative: 1.0 0.0;
103 name: "padding_bottom";
107 description { state: "default" 0.0;
109 rel1.relative: 0.0 1.0;
110 rel2.relative: 1.0 1.0;
121 description { state: "default" 0.0;
125 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
126 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
130 description { state: "visible" 0.0;
135 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
136 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
138 aspect_preference: VERTICAL;
142 description { state: "icononly" 0.0;
143 inherit: "default" 0.0;
147 name: "padding_after_icon";
151 description { state: "default" 0.0; //when only icon or no icon is there
153 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
154 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
159 description { state: "visible" 0.0;
162 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
163 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
168 description { state: "icononly" 0.0;
169 inherit: "default" 0.0;
173 name: "padding_before_text";
177 description { state: "default" 0.0; //when only icon or no icon is there
179 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
180 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
186 part { name: "elm.swallow.content";
189 description { state: "default" 0.0;
192 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
193 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
196 description { state: "visible" 0.0;
202 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
203 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
205 aspect_preference: VERTICAL;
207 description { state: "icononly" 0.0;;
211 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
212 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
215 aspect_preference: VERTICAL;
218 part { name: "elm.text";
223 description { state: "default" 0.0;
225 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
226 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
228 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
229 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
231 font: "SLP:style=Medium";
238 description { state: "visible" 0.0;
239 inherit: "default" 0.0;
243 description { state: "clicked" 0.0;
244 inherit: "default" 0.0;
247 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
248 color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
250 description { state: "disabled" 0.0;
251 inherit: "default" 0.0;
255 description { state: "disabled_visible" 0.0;
256 inherit: "default" 0.0;
257 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
258 color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
262 description { state: "focused" 0.0;
263 inherit: "default" 0.0;
266 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
267 color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
270 part { name: "over2";
274 ignore_flags: ON_HOLD;
275 description { state: "default" 0.0;
278 description { state: "disabled" 0.0;
279 inherit: "default" 0.0;
283 part { name: "over3";
287 description { state: "default" 0.0;
290 description { state: "clicked" 0.0;
291 inherit: "default" 0.0;
295 part { name: "disabler";
297 description { state: "default" 0.0;
301 description { state: "disabled" 0.0;
302 inherit: "default" 0.0;
308 program { name: "button_click";
309 signal: "mouse,down,1";
311 action: SIGNAL_EMIT "elm,action,press" "";
312 after: "button_click_anim";
314 program { name: "button_click_anim";
315 action: STATE_SET "clicked" 0.0;
316 target: "button_image";
317 after: "text_clicked";
319 program { name: "text_clicked";
323 get_state(PART:"elm.text", st, 30, vl);
324 if (!strcmp(st, "visible"))
325 set_state(PART:"elm.text", "clicked", 0.0);
328 program { name: "button_unpress";
329 action: SIGNAL_EMIT "elm,action,unpress" "";
331 program { name: "button_mouseout_clicked";
332 signal: "mouse,up,1";
337 get_state(PART:"elm.swallow.content", st, 30, vl);
338 if (strcmp(st, "icononly"))
340 emit("elm,action,default,text,set", "");
341 set_state(PART:"elm.text", "visible", 0.0);
343 if(get_int(button_state) !=1)
344 set_state(PART:"button_image", "default", 0.0);
346 after: button_unpress;
348 program { name: "button_click2";
349 signal: "mouse,down,1";
351 action: STATE_SET "clicked" 0.0;
354 program { name: "button_unclick2";
355 signal: "mouse,clicked,1";
357 action: STATE_SET "default" 0.0;
360 program { name: "button_unclick3";
361 signal: "mouse,clicked,1";
363 action: SIGNAL_EMIT "elm,action,click" "";
365 program { name: "text_show";
366 signal: "elm,state,text,visible";
371 get_state(PART:"elm.swallow.content", st, 30, vl);
372 if (!strcmp(st, "icononly"))
374 set_state(PART:"elm.swallow.content", "visible", 0.0);
375 set_state(PART:"icon_rect", "visible", 0.0);
376 set_state(PART:"padding_after_icon", "visible", 0.0);
378 set_state(PART:"elm.text", "visible", 0.0);
381 program { name: "text_hide";
382 signal: "elm,state,text,hidden";
387 get_state(PART:"elm.swallow.content", st, 30, vl);
388 if (!strcmp(st, "visible"))
390 set_state(PART:"elm.swallow.content", "icononly", 0.0);
391 set_state(PART:"icon_rect", "icononly", 0.0);
392 set_state(PART:"padding_after_icon", "icononly", 0.0);
394 set_state(PART:"elm.text", "default", 0.0);
397 program { name: "icon_show";
398 signal: "elm,state,icon,visible";
403 get_state(PART:"elm.text", st, 30, vl);
404 if (!strcmp(st, "visible"))
406 set_state(PART:"elm.swallow.content", "visible", 0.0);
407 set_state(PART:"icon_rect", "visible", 0.0);
408 set_state(PART:"padding_after_icon", "visible", 0.0);
412 set_state(PART:"elm.swallow.content", "icononly", 0.0);
413 set_state(PART:"icon_rect", "icononly", 0.0);
414 set_state(PART:"padding_after_icon", "icononly", 0.0);
418 program { name: "icon_hide";
419 signal: "elm,state,icon,hidden";
421 action: STATE_SET "default" 0.0;
422 target: "elm.swallow.content";
424 program { name: "disable";
425 signal: "elm,state,disabled";
427 action: STATE_SET "disabled" 0.0;
428 target: "button_image";
431 after: "disable_text";
433 program { name: "disable_text";
437 get_state(PART:"elm.text", st, 30, vl);
438 if (!strcmp(st, "visible"))
439 set_state(PART:"elm.text", "disabled_visible", 0.0);
441 set_state(PART:"elm.text", "disabled", 0.0);
442 set_int(button_state, 1);
445 program { name: "enable";
446 signal: "elm,state,enabled";
448 action: STATE_SET "default" 0.0;
449 target: "button_image";
452 after: "enable_text";
454 program { name: "enable_text";
458 get_state(PART:"elm.text", st, 30, vl);
459 if (!strcmp(st, "disabled_visible"))
460 set_state(PART:"elm.text", "visible", 0.0);
462 set_state(PART:"elm.text", "default", 0.0);
463 set_int(button_state, 0);
466 program { name: "focused";
467 //signal: "elm,action,focus";
469 action: STATE_SET "focused" 0.0;
470 target: "button_image";
473 program { name: "unfocused";
474 //signal: "elm,action,unfocus";
476 action: STATE_SET "default" 0.0;
477 target: "button_image";
478 after: "unfocus_text";
480 program { name: "unfocus_text";
481 action: STATE_SET "visible" 0.0;
487 ///////////////////////////////////////////////////////////////////////////////////////
488 group { name: "elm/button/base/text_only/style2";
490 image: "00_button_04_normal.png" COMP;
491 image: "00_button_04_press.png" COMP;
492 image: "00_button_04_dim.png" COMP;
495 public button_state = 0; //0:enabled, 1: disabled
498 part { name: "button_image";
501 description { state: "default" 0.0;
504 normal: "00_button_04_normal.png";
509 description { state: "clicked" 0.0;
510 inherit: "default" 0.0;
511 image.normal: "00_button_04_press.png";
513 description { state: "disabled" 0.0;
514 inherit: "default" 0.0;
515 image.normal: "00_button_04_dim.png";
517 description { state: "focused" 0.0;
518 inherit: "default" 0.0;
519 image.normal: "00_button_04_press.png";
523 name: "padding_left";
527 description { state: "default" 0.0;
529 rel1.relative: 0.0 0.0;
530 rel2.relative: 0.0 1.0;
537 name: "padding_right";
541 description { state: "default" 0.0;
543 rel1.relative: 1.0 0.0;
544 rel2.relative: 1.0 1.0;
555 description { state: "default" 0.0;
557 rel1.relative: 0.0 0.0;
558 rel2.relative: 1.0 0.0;
565 name: "padding_bottom";
569 description { state: "default" 0.0;
571 rel1.relative: 0.0 1.0;
572 rel2.relative: 1.0 1.0;
583 description { state: "default" 0.0;
587 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
588 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
592 description { state: "visible" 0.0;
597 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
598 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
600 aspect_preference: VERTICAL;
604 description { state: "icononly" 0.0;
605 inherit: "default" 0.0;
609 name: "padding_after_icon";
613 description { state: "default" 0.0; //when only icon or no icon is there
615 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
616 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
621 description { state: "visible" 0.0;
624 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
625 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
630 description { state: "icononly" 0.0;
631 inherit: "default" 0.0;
635 name: "padding_before_text";
639 description { state: "default" 0.0; //when only icon or no icon is there
641 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
642 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
648 part { name: "elm.swallow.content";
651 description { state: "default" 0.0;
654 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
655 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
658 description { state: "visible" 0.0;
664 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
665 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
667 aspect_preference: VERTICAL;
669 description { state: "icononly" 0.0;;
673 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
674 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
677 aspect_preference: VERTICAL;
680 part { name: "elm.text";
685 description { state: "default" 0.0;
687 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
688 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
690 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
691 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
693 font: "SLP:style=Medium";
700 description { state: "visible" 0.0;
701 inherit: "default" 0.0;
705 description { state: "clicked" 0.0;
706 inherit: "default" 0.0;
709 color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
710 color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
712 description { state: "disabled" 0.0;
713 inherit: "default" 0.0;
717 description { state: "disabled_visible" 0.0;
718 inherit: "default" 0.0;
719 color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
720 color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
724 description { state: "focused" 0.0;
725 inherit: "default" 0.0;
728 color: BUTTON_TEXT_STYLE2_FOCUSED_COLOR_INC;
729 color2: BUTTON_TEXT_STYLE2_FOCUSED_SHAWDOW_COLOR_INC;
732 part { name: "over2";
736 ignore_flags: ON_HOLD;
737 description { state: "default" 0.0;
740 description { state: "disabled" 0.0;
741 inherit: "default" 0.0;
745 part { name: "over3";
749 description { state: "default" 0.0;
752 description { state: "clicked" 0.0;
753 inherit: "default" 0.0;
757 part { name: "disabler";
759 description { state: "default" 0.0;
763 description { state: "disabled" 0.0;
764 inherit: "default" 0.0;
770 program { name: "button_click";
771 signal: "mouse,down,1";
773 action: SIGNAL_EMIT "elm,action,press" "";
774 after: "button_click_anim";
776 program { name: "button_click_anim";
777 action: STATE_SET "clicked" 0.0;
778 target: "button_image";
779 after: "text_clicked";
781 program { name: "text_clicked";
785 get_state(PART:"elm.text", st, 30, vl);
786 if (!strcmp(st, "visible"))
787 set_state(PART:"elm.text", "clicked", 0.0);
790 program { name: "button_unpress";
791 action: SIGNAL_EMIT "elm,action,unpress" "";
793 program { name: "button_mouseout_clicked";
794 signal: "mouse,up,1";
799 get_state(PART:"elm.swallow.content", st, 30, vl);
800 if (strcmp(st, "icononly"))
802 emit("elm,action,default,text,set", "");
803 set_state(PART:"elm.text", "visible", 0.0);
805 if(get_int(button_state) !=1)
806 set_state(PART:"button_image", "default", 0.0);
808 after: button_unpress;
810 program { name: "button_click2";
811 signal: "mouse,down,1";
813 action: STATE_SET "clicked" 0.0;
816 program { name: "button_unclick2";
817 signal: "mouse,clicked,1";
819 action: STATE_SET "default" 0.0;
822 program { name: "button_unclick3";
823 signal: "mouse,clicked,1";
825 action: SIGNAL_EMIT "elm,action,click" "";
827 program { name: "text_show";
828 signal: "elm,state,text,visible";
833 get_state(PART:"elm.swallow.content", st, 30, vl);
834 if (!strcmp(st, "icononly"))
836 set_state(PART:"elm.swallow.content", "visible", 0.0);
837 set_state(PART:"icon_rect", "visible", 0.0);
838 set_state(PART:"padding_after_icon", "visible", 0.0);
840 set_state(PART:"elm.text", "visible", 0.0);
843 program { name: "text_hide";
844 signal: "elm,state,text,hidden";
849 get_state(PART:"elm.swallow.content", st, 30, vl);
850 if (!strcmp(st, "visible"))
852 set_state(PART:"elm.swallow.content", "icononly", 0.0);
853 set_state(PART:"icon_rect", "icononly", 0.0);
854 set_state(PART:"padding_after_icon", "icononly", 0.0);
856 set_state(PART:"elm.text", "default", 0.0);
859 program { name: "icon_show";
860 signal: "elm,state,icon,visible";
865 get_state(PART:"elm.text", st, 30, vl);
866 if (!strcmp(st, "visible"))
868 set_state(PART:"elm.swallow.content", "visible", 0.0);
869 set_state(PART:"icon_rect", "visible", 0.0);
870 set_state(PART:"padding_after_icon", "visible", 0.0);
874 set_state(PART:"elm.swallow.content", "icononly", 0.0);
875 set_state(PART:"icon_rect", "icononly", 0.0);
876 set_state(PART:"padding_after_icon", "icononly", 0.0);
880 program { name: "icon_hide";
881 signal: "elm,state,icon,hidden";
883 action: STATE_SET "default" 0.0;
884 target: "elm.swallow.content";
886 program { name: "disable";
887 signal: "elm,state,disabled";
889 action: STATE_SET "disabled" 0.0;
890 target: "button_image";
893 after: "disable_text";
895 program { name: "disable_text";
899 get_state(PART:"elm.text", st, 30, vl);
900 if (!strcmp(st, "visible"))
901 set_state(PART:"elm.text", "disabled_visible", 0.0);
903 set_state(PART:"elm.text", "disabled", 0.0);
904 set_int(button_state, 1);
907 program { name: "enable";
908 signal: "elm,state,enabled";
910 action: STATE_SET "default" 0.0;
911 target: "button_image";
914 after: "enable_text";
916 program { name: "enable_text";
920 get_state(PART:"elm.text", st, 30, vl);
921 if (!strcmp(st, "disabled_visible"))
922 set_state(PART:"elm.text", "visible", 0.0);
924 set_state(PART:"elm.text", "default", 0.0);
925 set_int(button_state, 0);
928 program { name: "focused";
929 //signal: "elm,action,focus";
931 action: STATE_SET "focused" 0.0;
932 target: "button_image";
935 program { name: "unfocused";
936 //signal: "elm,action,unfocus";
938 action: STATE_SET "default" 0.0;
939 target: "button_image";
940 after: "unfocus_text";
942 program { name: "unfocus_text";
943 action: STATE_SET "visible" 0.0;
949 ///////////////////////////////////////////////////////////////////////////////////////
950 group { name: "elm/button/base/text_only/style3";
952 image: "00_button_04_normal.png" COMP;
953 image: "00_button_04_press.png" COMP;
954 image: "00_button_04_focus.png" COMP;
955 image: "00_button_04_dim.png" COMP;
958 public button_state = 0; //0:enabled, 1: disabled
961 part { name: "button_image";
964 description { state: "default" 0.0;
967 normal: "00_button_04_normal.png";
972 description { state: "clicked" 0.0;
973 inherit: "default" 0.0;
974 image.normal: "00_button_04_press.png";
976 description { state: "disabled" 0.0;
977 inherit: "default" 0.0;
978 image.normal: "00_button_04_dim.png";
980 description { state: "focused" 0.0;
981 inherit: "default" 0.0;
982 image.normal: "00_button_04_focus.png";
986 name: "padding_left";
990 description { state: "default" 0.0;
992 rel1.relative: 0.0 0.0;
993 rel2.relative: 0.0 1.0;
1000 name: "padding_right";
1004 description { state: "default" 0.0;
1006 rel1.relative: 1.0 0.0;
1007 rel2.relative: 1.0 1.0;
1014 name: "padding_top";
1018 description { state: "default" 0.0;
1020 rel1.relative: 0.0 0.0;
1021 rel2.relative: 1.0 0.0;
1028 name: "padding_bottom";
1032 description { state: "default" 0.0;
1034 rel1.relative: 0.0 1.0;
1035 rel2.relative: 1.0 1.0;
1046 description { state: "default" 0.0;
1050 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1051 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1057 name: "padding_icon_text";
1061 description { state: "default" 0.0; //when only icon or no icon is there
1063 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1064 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1069 description { state: "icononly" 0.0;
1070 inherit: "default" 0.0;
1072 description { state: "visible" 0.0; //when icon is visible
1074 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1075 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1081 part { name: "elm.swallow.content";
1084 description { state: "default" 0.0;
1087 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1088 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1091 description { state: "visible" 0.0;
1095 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1096 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1098 aspect_preference: VERTICAL;
1100 description { state: "icononly" 0.0;;
1103 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1104 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1107 aspect_preference: VERTICAL;
1110 part { name: "elm.text";
1115 description { state: "default" 0.0;
1117 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1118 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1120 color: BUTTON_TEXT_STYLE3_NORMAL_COLOR_INC;
1121 color2: BUTTON_TEXT_STYLE3_NORMAL_SHAWDOW_COLOR_INC;
1123 font: "SLP:style=Medium";
1130 description { state: "visible" 0.0;
1131 inherit: "default" 0.0;
1135 description { state: "clicked" 0.0;
1136 inherit: "default" 0.0;
1139 color: BUTTON_TEXT_STYLE3_PRESSED_COLOR_INC;
1140 color2: BUTTON_TEXT_STYLE3_PRESSED_SHAWDOW_COLOR_INC;
1142 description { state: "disabled" 0.0;
1143 inherit: "default" 0.0;
1147 description { state: "disabled_visible" 0.0;
1148 inherit: "default" 0.0;
1149 color: BUTTON_TEXT_STYLE3_DISABLED_COLOR_INC;
1150 color2: BUTTON_TEXT_STYLE3_DISABLED_SHAWDOW_COLOR_INC;
1154 description { state: "focused" 0.0;
1155 inherit: "default" 0.0;
1158 color: BUTTON_TEXT_STYLE3_FOCUSED_COLOR_INC;
1159 color2: BUTTON_TEXT_STYLE3_FOCUSED_SHAWDOW_COLOR_INC;
1162 part { name: "over2";
1166 ignore_flags: ON_HOLD;
1167 description { state: "default" 0.0;
1170 description { state: "disabled" 0.0;
1171 inherit: "default" 0.0;
1175 part { name: "over3";
1179 description { state: "default" 0.0;
1182 description { state: "clicked" 0.0;
1183 inherit: "default" 0.0;
1187 part { name: "disabler";
1189 description { state: "default" 0.0;
1193 description { state: "disabled" 0.0;
1194 inherit: "default" 0.0;
1200 program { name: "button_click";
1201 signal: "mouse,down,1";
1203 action: SIGNAL_EMIT "elm,action,press" "";
1204 after: "button_click_anim";
1206 program { name: "button_click_anim";
1207 action: STATE_SET "clicked" 0.0;
1208 target: "button_image";
1209 after: "text_clicked";
1211 program { name: "text_clicked";
1215 get_state(PART:"elm.text", st, 30, vl);
1216 if (!strcmp(st, "visible"))
1217 set_state(PART:"elm.text", "clicked", 0.0);
1220 program { name: "button_unpress";
1221 action: SIGNAL_EMIT "elm,action,unpress" "";
1223 program { name: "button_mouseout_clicked";
1224 signal: "mouse,up,1";
1229 get_state(PART:"elm.swallow.content", st, 30, vl);
1230 if (strcmp(st, "icononly"))
1232 emit("elm,action,default,text,set", "");
1233 set_state(PART:"elm.text", "visible", 0.0);
1235 if(get_int(button_state) !=1)
1236 set_state(PART:"button_image", "default", 0.0);
1238 after: button_unpress;
1240 program { name: "button_click2";
1241 signal: "mouse,down,1";
1243 action: STATE_SET "clicked" 0.0;
1246 program { name: "button_unclick2";
1247 signal: "mouse,clicked,1";
1249 action: STATE_SET "default" 0.0;
1252 program { name: "button_unclick3";
1253 signal: "mouse,clicked,1";
1255 action: SIGNAL_EMIT "elm,action,click" "";
1257 program { name: "text_show";
1258 signal: "elm,state,text,visible";
1263 get_state(PART:"elm.swallow.content", st, 30, vl);
1264 if (!strcmp(st, "icononly"))
1266 set_state(PART:"elm.swallow.content", "visible", 0.0);
1267 set_state(PART:"padding_icon_text", "visible", 0.0);
1269 set_state(PART:"elm.text", "visible", 0.0);
1272 program { name: "text_hide";
1273 signal: "elm,state,text,hidden";
1278 get_state(PART:"elm.swallow.content", st, 30, vl);
1279 if (!strcmp(st, "visible"))
1281 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1282 set_state(PART:"padding_icon_text", "icononly", 0.0);
1284 set_state(PART:"elm.text", "default", 0.0);
1287 program { name: "icon_show";
1288 signal: "elm,state,icon,visible";
1293 get_state(PART:"elm.text", st, 30, vl);
1294 if (!strcmp(st, "visible"))
1296 set_state(PART:"elm.swallow.content", "visible", 0.0);
1297 set_state(PART:"padding_icon_text", "visible", 0.0);
1301 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1302 set_state(PART:"padding_icon_text", "icononly", 0.0);
1306 program { name: "icon_hide";
1307 signal: "elm,state,icon,hidden";
1309 action: STATE_SET "default" 0.0;
1310 target: "elm.swallow.content";
1312 program { name: "disable";
1313 signal: "elm,state,disabled";
1315 action: STATE_SET "disabled" 0.0;
1316 target: "button_image";
1319 after: "disable_text";
1321 program { name: "disable_text";
1325 get_state(PART:"elm.text", st, 30, vl);
1326 if (!strcmp(st, "visible"))
1327 set_state(PART:"elm.text", "disabled_visible", 0.0);
1329 set_state(PART:"elm.text", "disabled", 0.0);
1330 set_int(button_state, 1);
1333 program { name: "enable";
1334 signal: "elm,state,enabled";
1336 action: STATE_SET "default" 0.0;
1337 target: "button_image";
1340 after: "enable_text";
1342 program { name: "enable_text";
1346 get_state(PART:"elm.text", st, 30, vl);
1347 if (!strcmp(st, "disabled_visible"))
1348 set_state(PART:"elm.text", "visible", 0.0);
1350 set_state(PART:"elm.text", "default", 0.0);
1351 set_int(button_state, 0);
1354 program { name: "focused";
1355 //signal: "elm,action,focus";
1357 action: STATE_SET "focused" 0.0;
1358 target: "button_image";
1361 program { name: "unfocused";
1362 //signal: "elm,action,unfocus";
1364 action: STATE_SET "default" 0.0;
1365 target: "button_image";
1366 after: "unfocus_text";
1368 program { name: "unfocus_text";
1369 action: STATE_SET "visible" 0.0;
1375 ///////////////////////////////////////////////////////////////////////////////////////
1376 group { name: "elm/button/base/text_only/sweep";
1378 image: "00_button_sweep.png" COMP;
1379 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1380 image: "00_button_sweep_dim.png" COMP;
1383 public button_state = 0; //0:enabled, 1: disabled
1386 part { name: "button_image";
1389 description { state: "default" 0.0;
1392 normal: "00_button_sweep.png";
1397 description { state: "clicked" 0.0;
1398 inherit: "default" 0.0;
1399 image.normal: "00_button_sweep_press.png";
1401 description { state: "disabled" 0.0;
1402 inherit: "default" 0.0;
1403 image.normal: "00_button_sweep_dim.png";
1405 description { state: "focused" 0.0;
1406 inherit: "default" 0.0;
1407 image.normal: "00_button_sweep_press.png";
1411 name: "padding_left";
1415 description { state: "default" 0.0;
1417 rel1.relative: 0.0 0.0;
1418 rel2.relative: 0.0 1.0;
1425 name: "padding_right";
1429 description { state: "default" 0.0;
1431 rel1.relative: 1.0 0.0;
1432 rel2.relative: 1.0 1.0;
1439 name: "padding_top";
1443 description { state: "default" 0.0;
1445 rel1.relative: 0.0 0.0;
1446 rel2.relative: 1.0 0.0;
1453 name: "padding_bottom";
1457 description { state: "default" 0.0;
1459 rel1.relative: 0.0 1.0;
1460 rel2.relative: 1.0 1.0;
1471 description { state: "default" 0.0;
1475 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1476 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1482 name: "padding_icon_text";
1486 description { state: "default" 0.0; //when only icon or no icon is there
1488 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1489 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1494 description { state: "icononly" 0.0;
1495 inherit: "default" 0.0;
1497 description { state: "visible" 0.0; //when icon is visible
1499 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1500 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1506 part { name: "elm.swallow.content";
1509 description { state: "default" 0.0;
1512 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1513 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1516 description { state: "visible" 0.0;
1520 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1521 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1523 aspect_preference: VERTICAL;
1525 description { state: "icononly" 0.0;;
1528 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1529 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1532 aspect_preference: VERTICAL;
1535 part { name: "elm.text";
1540 description { state: "default" 0.0;
1542 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1543 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1545 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1546 color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1548 font: "SLP:style=Medium";
1555 description { state: "visible" 0.0;
1556 inherit: "default" 0.0;
1560 description { state: "clicked" 0.0;
1561 inherit: "default" 0.0;
1564 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1565 color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1567 description { state: "disabled" 0.0;
1568 inherit: "default" 0.0;
1572 description { state: "disabled_visible" 0.0;
1573 inherit: "default" 0.0;
1574 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1575 color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
1579 description { state: "focused" 0.0;
1580 inherit: "default" 0.0;
1583 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1584 color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
1587 part { name: "over2";
1591 ignore_flags: ON_HOLD;
1592 description { state: "default" 0.0;
1595 description { state: "disabled" 0.0;
1596 inherit: "default" 0.0;
1600 part { name: "over3";
1604 description { state: "default" 0.0;
1607 description { state: "clicked" 0.0;
1608 inherit: "default" 0.0;
1612 part { name: "disabler";
1614 description { state: "default" 0.0;
1618 description { state: "disabled" 0.0;
1619 inherit: "default" 0.0;
1625 program { name: "button_click";
1626 signal: "mouse,down,1";
1628 action: SIGNAL_EMIT "elm,action,press" "";
1629 after: "button_click_anim";
1631 program { name: "button_click_anim";
1632 action: STATE_SET "clicked" 0.0;
1633 target: "button_image";
1634 after: "text_clicked";
1636 program { name: "text_clicked";
1640 get_state(PART:"elm.text", st, 30, vl);
1641 if (!strcmp(st, "visible"))
1642 set_state(PART:"elm.text", "clicked", 0.0);
1645 program { name: "button_unpress";
1646 action: SIGNAL_EMIT "elm,action,unpress" "";
1648 program { name: "button_mouseout_clicked";
1649 signal: "mouse,up,1";
1654 get_state(PART:"elm.swallow.content", st, 30, vl);
1655 if (strcmp(st, "icononly"))
1657 emit("elm,action,default,text,set", "");
1658 set_state(PART:"elm.text", "visible", 0.0);
1660 if(get_int(button_state) !=1)
1661 set_state(PART:"button_image", "default", 0.0);
1663 after: button_unpress;
1665 program { name: "button_click2";
1666 signal: "mouse,down,1";
1668 action: STATE_SET "clicked" 0.0;
1671 program { name: "button_unclick2";
1672 signal: "mouse,clicked,1";
1674 action: STATE_SET "default" 0.0;
1677 program { name: "button_unclick3";
1678 signal: "mouse,clicked,1";
1680 action: SIGNAL_EMIT "elm,action,click" "";
1682 program { name: "text_show";
1683 signal: "elm,state,text,visible";
1688 get_state(PART:"elm.swallow.content", st, 30, vl);
1689 if (!strcmp(st, "icononly"))
1691 set_state(PART:"elm.swallow.content", "visible", 0.0);
1692 set_state(PART:"padding_icon_text", "visible", 0.0);
1694 set_state(PART:"elm.text", "visible", 0.0);
1697 program { name: "text_hide";
1698 signal: "elm,state,text,hidden";
1703 get_state(PART:"elm.swallow.content", st, 30, vl);
1704 if (!strcmp(st, "visible"))
1706 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1707 set_state(PART:"padding_icon_text", "icononly", 0.0);
1709 set_state(PART:"elm.text", "default", 0.0);
1712 program { name: "icon_show";
1713 signal: "elm,state,icon,visible";
1718 get_state(PART:"elm.text", st, 30, vl);
1719 if (!strcmp(st, "visible"))
1721 set_state(PART:"elm.swallow.content", "visible", 0.0);
1722 set_state(PART:"padding_icon_text", "visible", 0.0);
1726 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1727 set_state(PART:"padding_icon_text", "icononly", 0.0);
1731 program { name: "icon_hide";
1732 signal: "elm,state,icon,hidden";
1734 action: STATE_SET "default" 0.0;
1735 target: "elm.swallow.content";
1737 program { name: "disable";
1738 signal: "elm,state,disabled";
1740 action: STATE_SET "disabled" 0.0;
1741 target: "button_image";
1744 after: "disable_text";
1746 program { name: "disable_text";
1750 get_state(PART:"elm.text", st, 30, vl);
1751 if (!strcmp(st, "visible"))
1752 set_state(PART:"elm.text", "disabled_visible", 0.0);
1754 set_state(PART:"elm.text", "disabled", 0.0);
1755 set_int(button_state, 1);
1758 program { name: "enable";
1759 signal: "elm,state,enabled";
1761 action: STATE_SET "default" 0.0;
1762 target: "button_image";
1765 after: "enable_text";
1767 program { name: "enable_text";
1771 get_state(PART:"elm.text", st, 30, vl);
1772 if (!strcmp(st, "disabled_visible"))
1773 set_state(PART:"elm.text", "visible", 0.0);
1775 set_state(PART:"elm.text", "default", 0.0);
1776 set_int(button_state, 0);
1779 program { name: "focused";
1780 //signal: "elm,action,focus";
1782 action: STATE_SET "focused" 0.0;
1783 target: "button_image";
1786 program { name: "unfocused";
1787 //signal: "elm,action,unfocus";
1789 action: STATE_SET "default" 0.0;
1790 target: "button_image";
1791 after: "unfocus_text";
1793 program { name: "unfocus_text";
1794 action: STATE_SET "visible" 0.0;
1800 ///////////////////////////////////////////////////////////////////////////////////////
1801 //Button style added for 2 line sweep in the list
1802 group { name: "elm/button/base/text_only/sweep_46";
1804 image: "00_button_sweep_46.png" COMP;
1805 image: "00_button_sweep_46_press.png" COMP;
1806 image: "00_button_sweep_46_focus.png" COMP;
1807 image: "00_button_sweep_46_dim.png" COMP;
1810 public button_state = 0; //0:enabled, 1: disabled
1813 part { name: "button_image";
1816 description { state: "default" 0.0;
1819 normal: "00_button_sweep_46.png";
1824 description { state: "clicked" 0.0;
1825 inherit: "default" 0.0;
1826 image.normal: "00_button_sweep_46_press.png";
1828 description { state: "disabled" 0.0;
1829 inherit: "default" 0.0;
1830 image.normal: "00_button_sweep_46_dim.png";
1832 description { state: "focused" 0.0;
1833 inherit: "default" 0.0;
1834 image.normal: "00_button_sweep_46_focus.png";
1838 name: "padding_left";
1842 description { state: "default" 0.0;
1844 rel1.relative: 0.0 0.0;
1845 rel2.relative: 0.0 1.0;
1852 name: "padding_right";
1856 description { state: "default" 0.0;
1858 rel1.relative: 1.0 0.0;
1859 rel2.relative: 1.0 1.0;
1866 name: "padding_top";
1870 description { state: "default" 0.0;
1872 rel1.relative: 0.0 0.0;
1873 rel2.relative: 1.0 0.0;
1880 name: "padding_bottom";
1884 description { state: "default" 0.0;
1886 rel1.relative: 0.0 1.0;
1887 rel2.relative: 1.0 1.0;
1898 description { state: "default" 0.0;
1902 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1903 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1909 name: "padding_icon_text";
1913 description { state: "default" 0.0; //when only icon or no icon is there
1915 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1916 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1921 description { state: "icononly" 0.0;
1922 inherit: "default" 0.0;
1924 description { state: "visible" 0.0; //when icon is visible
1926 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1927 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1933 part { name: "elm.swallow.content";
1936 description { state: "default" 0.0;
1939 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1940 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1943 description { state: "visible" 0.0;
1947 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1948 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1950 aspect_preference: VERTICAL;
1952 description { state: "icononly" 0.0;;
1955 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1956 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1959 aspect_preference: VERTICAL;
1962 part { name: "elm.text";
1967 description { state: "default" 0.0;
1969 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1970 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1972 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1973 color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1975 font: "SLP:style=Medium";
1982 description { state: "visible" 0.0;
1983 inherit: "default" 0.0;
1987 description { state: "clicked" 0.0;
1988 inherit: "default" 0.0;
1991 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1992 color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1994 description { state: "disabled" 0.0;
1995 inherit: "default" 0.0;
1999 description { state: "disabled_visible" 0.0;
2000 inherit: "default" 0.0;
2001 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2002 color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
2006 description { state: "focused" 0.0;
2007 inherit: "default" 0.0;
2010 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2011 color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
2014 part { name: "over2";
2018 ignore_flags: ON_HOLD;
2019 description { state: "default" 0.0;
2022 description { state: "disabled" 0.0;
2023 inherit: "default" 0.0;
2027 part { name: "over3";
2031 description { state: "default" 0.0;
2034 description { state: "clicked" 0.0;
2035 inherit: "default" 0.0;
2039 part { name: "disabler";
2041 description { state: "default" 0.0;
2045 description { state: "disabled" 0.0;
2046 inherit: "default" 0.0;
2052 program { name: "button_click";
2053 signal: "mouse,down,1";
2055 action: SIGNAL_EMIT "elm,action,press" "";
2056 after: "button_click_anim";
2058 program { name: "button_click_anim";
2059 action: STATE_SET "clicked" 0.0;
2060 target: "button_image";
2061 after: "text_clicked";
2063 program { name: "text_clicked";
2067 get_state(PART:"elm.text", st, 30, vl);
2068 if (!strcmp(st, "visible"))
2069 set_state(PART:"elm.text", "clicked", 0.0);
2072 program { name: "button_unpress";
2073 action: SIGNAL_EMIT "elm,action,unpress" "";
2075 program { name: "button_mouseout_clicked";
2076 signal: "mouse,up,1";
2081 get_state(PART:"elm.swallow.content", st, 30, vl);
2082 if (strcmp(st, "icononly"))
2084 emit("elm,action,default,text,set", "");
2085 set_state(PART:"elm.text", "visible", 0.0);
2087 if(get_int(button_state) !=1)
2088 set_state(PART:"button_image", "default", 0.0);
2090 after: button_unpress;
2092 program { name: "button_click2";
2093 signal: "mouse,down,1";
2095 action: STATE_SET "clicked" 0.0;
2098 program { name: "button_unclick2";
2099 signal: "mouse,clicked,1";
2101 action: STATE_SET "default" 0.0;
2104 program { name: "button_unclick3";
2105 signal: "mouse,clicked,1";
2107 action: SIGNAL_EMIT "elm,action,click" "";
2109 program { name: "text_show";
2110 signal: "elm,state,text,visible";
2115 get_state(PART:"elm.swallow.content", st, 30, vl);
2116 if (!strcmp(st, "icononly"))
2118 set_state(PART:"elm.swallow.content", "visible", 0.0);
2119 set_state(PART:"padding_icon_text", "visible", 0.0);
2121 set_state(PART:"elm.text", "visible", 0.0);
2124 program { name: "text_hide";
2125 signal: "elm,state,text,hidden";
2130 get_state(PART:"elm.swallow.content", st, 30, vl);
2131 if (!strcmp(st, "visible"))
2133 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2134 set_state(PART:"padding_icon_text", "icononly", 0.0);
2136 set_state(PART:"elm.text", "default", 0.0);
2139 program { name: "icon_show";
2140 signal: "elm,state,icon,visible";
2145 get_state(PART:"elm.text", st, 30, vl);
2146 if (!strcmp(st, "visible"))
2148 set_state(PART:"elm.swallow.content", "visible", 0.0);
2149 set_state(PART:"padding_icon_text", "visible", 0.0);
2153 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2154 set_state(PART:"padding_icon_text", "icononly", 0.0);
2158 program { name: "icon_hide";
2159 signal: "elm,state,icon,hidden";
2161 action: STATE_SET "default" 0.0;
2162 target: "elm.swallow.content";
2164 program { name: "disable";
2165 signal: "elm,state,disabled";
2167 action: STATE_SET "disabled" 0.0;
2168 target: "button_image";
2171 after: "disable_text";
2173 program { name: "disable_text";
2177 get_state(PART:"elm.text", st, 30, vl);
2178 if (!strcmp(st, "visible"))
2179 set_state(PART:"elm.text", "disabled_visible", 0.0);
2181 set_state(PART:"elm.text", "disabled", 0.0);
2182 set_int(button_state, 1);
2185 program { name: "enable";
2186 signal: "elm,state,enabled";
2188 action: STATE_SET "default" 0.0;
2189 target: "button_image";
2192 after: "enable_text";
2194 program { name: "enable_text";
2198 get_state(PART:"elm.text", st, 30, vl);
2199 if (!strcmp(st, "disabled_visible"))
2200 set_state(PART:"elm.text", "visible", 0.0);
2202 set_state(PART:"elm.text", "default", 0.0);
2203 set_int(button_state, 0);
2206 program { name: "focused";
2207 //signal: "elm,action,focus";
2209 action: STATE_SET "focused" 0.0;
2210 target: "button_image";
2213 program { name: "unfocused";
2214 //signal: "elm,action,unfocus";
2216 action: STATE_SET "default" 0.0;
2217 target: "button_image";
2218 after: "unfocus_text";
2220 program { name: "unfocus_text";
2221 action: STATE_SET "visible" 0.0;
2227 ///////////////////////////////////////////////////////////////////////////////////////
2228 group { name: "elm/button/base/text_only/title";
2230 image: "00_button_02_normal.png" COMP;
2231 image: "00_button_02_press.png" COMP;
2232 image: "00_button_02_focus.png" COMP;
2235 public button_state = 0; //0:enabled, 1: disabled
2238 part { name: "button_image";
2241 description { state: "default" 0.0;
2244 normal: "00_button_02_normal.png";
2249 description { state: "clicked" 0.0;
2250 inherit: "default" 0.0;
2251 image.normal: "00_button_02_press.png";
2253 description { state: "disabled" 0.0;
2254 inherit: "default" 0.0;
2256 description { state: "focused" 0.0;
2257 inherit: "default" 0.0;
2258 image.normal: "00_button_02_focus.png";
2262 name: "padding_left";
2266 description { state: "default" 0.0;
2268 rel1.relative: 0.0 0.0;
2269 rel2.relative: 0.0 1.0;
2276 name: "padding_right";
2280 description { state: "default" 0.0;
2282 rel1.relative: 1.0 0.0;
2283 rel2.relative: 1.0 1.0;
2290 name: "padding_top";
2294 description { state: "default" 0.0;
2296 rel1.relative: 0.0 0.0;
2297 rel2.relative: 1.0 0.0;
2304 name: "padding_bottom";
2308 description { state: "default" 0.0;
2310 rel1.relative: 0.0 1.0;
2311 rel2.relative: 1.0 1.0;
2322 description { state: "default" 0.0;
2326 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2327 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2333 name: "padding_icon_text";
2337 description { state: "default" 0.0; //when only icon or no icon is there
2339 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2340 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2345 description { state: "icononly" 0.0;
2346 inherit: "default" 0.0;
2348 description { state: "visible" 0.0; //when icon is visible
2350 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2351 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2357 part { name: "elm.swallow.content";
2360 description { state: "default" 0.0;
2363 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2364 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2367 description { state: "visible" 0.0;
2371 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2372 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2374 aspect_preference: VERTICAL;
2376 description { state: "icononly" 0.0;;
2379 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2380 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2383 aspect_preference: VERTICAL;
2386 part { name: "elm.text";
2391 description { state: "default" 0.0;
2393 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2394 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2396 color: 255 255 255 255;
2399 font: "SLP:style=Medium";
2406 description { state: "visible" 0.0;
2407 inherit: "default" 0.0;
2411 description { state: "clicked" 0.0;
2412 inherit: "default" 0.0;
2415 color: 255 255 255 255;
2418 description { state: "disabled" 0.0;
2419 inherit: "default" 0.0;
2423 description { state: "disabled_visible" 0.0;
2424 inherit: "default" 0.0;
2429 description { state: "focused" 0.0;
2430 inherit: "default" 0.0;
2433 color: 255 255 255 255;
2437 part { name: "over2";
2441 ignore_flags: ON_HOLD;
2442 description { state: "default" 0.0;
2445 description { state: "disabled" 0.0;
2446 inherit: "default" 0.0;
2450 part { name: "over3";
2454 description { state: "default" 0.0;
2457 description { state: "clicked" 0.0;
2458 inherit: "default" 0.0;
2462 part { name: "disabler";
2464 description { state: "default" 0.0;
2468 description { state: "disabled" 0.0;
2469 inherit: "default" 0.0;
2475 program { name: "button_click";
2476 signal: "mouse,down,1";
2478 action: SIGNAL_EMIT "elm,action,press" "";
2479 after: "button_click_anim";
2481 program { name: "button_click_anim";
2482 action: STATE_SET "clicked" 0.0;
2483 target: "button_image";
2484 after: "text_clicked";
2486 program { name: "text_clicked";
2490 get_state(PART:"elm.text", st, 30, vl);
2491 if (!strcmp(st, "visible"))
2492 set_state(PART:"elm.text", "clicked", 0.0);
2495 program { name: "button_unpress";
2496 action: SIGNAL_EMIT "elm,action,unpress" "";
2498 program { name: "button_mouseout_clicked";
2499 signal: "mouse,up,1";
2504 get_state(PART:"elm.swallow.content", st, 30, vl);
2505 if (strcmp(st, "icononly"))
2507 emit("elm,action,default,text,set", "");
2508 set_state(PART:"elm.text", "visible", 0.0);
2510 if(get_int(button_state) !=1)
2511 set_state(PART:"button_image", "default", 0.0);
2513 after: button_unpress;
2515 program { name: "button_click2";
2516 signal: "mouse,down,1";
2518 action: STATE_SET "clicked" 0.0;
2521 program { name: "button_unclick2";
2522 signal: "mouse,clicked,1";
2524 action: STATE_SET "default" 0.0;
2527 program { name: "button_unclick3";
2528 signal: "mouse,clicked,1";
2530 action: SIGNAL_EMIT "elm,action,click" "";
2532 program { name: "text_show";
2533 signal: "elm,state,text,visible";
2538 get_state(PART:"elm.swallow.content", st, 30, vl);
2539 if (!strcmp(st, "icononly"))
2541 set_state(PART:"elm.swallow.content", "visible", 0.0);
2542 set_state(PART:"padding_icon_text", "visible", 0.0);
2544 set_state(PART:"elm.text", "visible", 0.0);
2547 program { name: "text_hide";
2548 signal: "elm,state,text,hidden";
2553 get_state(PART:"elm.swallow.content", st, 30, vl);
2554 if (!strcmp(st, "visible"))
2556 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2557 set_state(PART:"padding_icon_text", "icononly", 0.0);
2559 set_state(PART:"elm.text", "default", 0.0);
2562 program { name: "icon_show";
2563 signal: "elm,state,icon,visible";
2568 get_state(PART:"elm.text", st, 30, vl);
2569 if (!strcmp(st, "visible"))
2571 set_state(PART:"elm.swallow.content", "visible", 0.0);
2572 set_state(PART:"padding_icon_text", "visible", 0.0);
2576 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2577 set_state(PART:"padding_icon_text", "icononly", 0.0);
2581 program { name: "icon_hide";
2582 signal: "elm,state,icon,hidden";
2584 action: STATE_SET "default" 0.0;
2585 target: "elm.swallow.content";
2587 program { name: "disable";
2588 signal: "elm,state,disabled";
2590 action: STATE_SET "disabled" 0.0;
2591 target: "button_image";
2594 after: "disable_text";
2596 program { name: "disable_text";
2600 get_state(PART:"elm.text", st, 30, vl);
2601 if (!strcmp(st, "visible"))
2602 set_state(PART:"elm.text", "disabled_visible", 0.0);
2604 set_state(PART:"elm.text", "disabled", 0.0);
2605 set_int(button_state, 1);
2608 program { name: "enable";
2609 signal: "elm,state,enabled";
2611 action: STATE_SET "default" 0.0;
2612 target: "button_image";
2615 after: "enable_text";
2617 program { name: "enable_text";
2621 get_state(PART:"elm.text", st, 30, vl);
2622 if (!strcmp(st, "disabled_visible"))
2623 set_state(PART:"elm.text", "visible", 0.0);
2625 set_state(PART:"elm.text", "default", 0.0);
2626 set_int(button_state, 0);
2629 program { name: "focused";
2630 //signal: "elm,action,focus";
2632 action: STATE_SET "focused" 0.0;
2633 target: "button_image";
2636 program { name: "unfocused";
2637 //signal: "elm,action,unfocus";
2639 action: STATE_SET "default" 0.0;
2640 target: "button_image";
2641 after: "unfocus_text";
2643 program { name: "unfocus_text";
2644 action: STATE_SET "visible" 0.0;
2650 ///////////////////////////////////////////////////////////////////////////////////////
2651 group { name: "elm/button/base/navigationbar_functionbutton/default";
2653 public button_state = 0; //0:enabled, 1: disabled
2656 part { name: "button_image";
2659 description { state: "default" 0.0;
2662 description { state: "clicked" 0.0;
2663 inherit: "default" 0.0;
2665 description { state: "disabled" 0.0;
2666 inherit: "default" 0.0;
2668 description { state: "focused" 0.0;
2669 inherit: "default" 0.0;
2673 name: "padding_left";
2677 description { state: "default" 0.0;
2679 rel1.relative: 0.0 0.0;
2680 rel2.relative: 0.0 1.0;
2686 part {name: "padding_after_right";
2689 description { state: "default" 0.0;
2692 rel1 { relative: 1 0.2; }
2693 rel2 { relative: 1 0.8; }
2695 color: 238 223 194 255;
2698 part {name: "padding_right";
2701 description { state: "default" 0.0;
2704 rel1 { relative: 0 0; to: "padding_after_right"; }
2705 rel2 { relative: 0 1; to: "padding_after_right"; }
2707 color: 164 151 130 255;
2711 name: "padding_top";
2715 description { state: "default" 0.0;
2717 rel1.relative: 0.0 0.0;
2718 rel2.relative: 1.0 0.0;
2725 name: "padding_bottom";
2729 description { state: "default" 0.0;
2731 rel1.relative: 0.0 1.0;
2732 rel2.relative: 1.0 1.0;
2743 description { state: "default" 0.0;
2747 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2748 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2754 name: "padding_icon_text";
2758 description { state: "default" 0.0; //when only icon or no icon is there
2760 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2761 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2766 description { state: "icononly" 0.0;
2767 inherit: "default" 0.0;
2769 description { state: "visible" 0.0; //when icon is visible
2771 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2772 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2778 part { name: "elm.swallow.content";
2781 description { state: "default" 0.0;
2784 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2785 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2788 description { state: "visible" 0.0;
2792 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2793 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2795 aspect_preference: VERTICAL;
2797 description { state: "icononly" 0.0;;
2800 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2801 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2804 aspect_preference: VERTICAL;
2807 part { name: "elm.text";
2812 description { state: "default" 0.0;
2814 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2815 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2817 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
2818 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
2820 font: "SLP:style=Medium";
2826 description { state: "visible" 0.0;
2827 inherit: "default" 0.0;
2831 description { state: "clicked" 0.0;
2832 inherit: "default" 0.0;
2835 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
2836 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
2838 description { state: "disabled" 0.0;
2839 inherit: "default" 0.0;
2843 description { state: "disabled_visible" 0.0;
2844 inherit: "default" 0.0;
2845 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
2846 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
2850 description { state: "focused" 0.0;
2851 inherit: "default" 0.0;
2854 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
2855 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
2858 part { name: "over2";
2862 ignore_flags: ON_HOLD;
2863 description { state: "default" 0.0;
2866 description { state: "disabled" 0.0;
2867 inherit: "default" 0.0;
2871 part { name: "over3";
2875 description { state: "default" 0.0;
2878 description { state: "clicked" 0.0;
2879 inherit: "default" 0.0;
2883 part { name: "disabler";
2885 description { state: "default" 0.0;
2889 description { state: "disabled" 0.0;
2890 inherit: "default" 0.0;
2896 program { name: "button_click";
2897 signal: "mouse,down,1";
2899 action: SIGNAL_EMIT "elm,action,press" "";
2900 after: "button_click_anim";
2902 program { name: "button_click_anim";
2903 action: STATE_SET "clicked" 0.0;
2904 target: "button_image";
2905 after: "text_clicked";
2907 program { name: "text_clicked";
2911 get_state(PART:"elm.text", st, 30, vl);
2912 if (!strcmp(st, "visible"))
2913 set_state(PART:"elm.text", "clicked", 0.0);
2916 program { name: "button_unpress";
2917 action: SIGNAL_EMIT "elm,action,unpress" "";
2919 program { name: "button_mouseout_clicked";
2920 signal: "mouse,up,1";
2925 get_state(PART:"elm.swallow.content", st, 30, vl);
2926 if (strcmp(st, "icononly"))
2928 emit("elm,action,default,text,set", "");
2929 set_state(PART:"elm.text", "visible", 0.0);
2931 if(get_int(button_state) !=1)
2932 set_state(PART:"button_image", "default", 0.0);
2934 after: button_unpress;
2936 program { name: "button_click2";
2937 signal: "mouse,down,1";
2939 action: STATE_SET "clicked" 0.0;
2942 program { name: "button_unclick2";
2943 signal: "mouse,clicked,1";
2945 action: STATE_SET "default" 0.0;
2948 program { name: "button_unclick3";
2949 signal: "mouse,clicked,1";
2951 action: SIGNAL_EMIT "elm,action,click" "";
2953 program { name: "text_show";
2954 signal: "elm,state,text,visible";
2959 get_state(PART:"elm.swallow.content", st, 30, vl);
2960 if (!strcmp(st, "icononly"))
2962 set_state(PART:"elm.swallow.content", "visible", 0.0);
2963 set_state(PART:"padding_icon_text", "visible", 0.0);
2965 set_state(PART:"elm.text", "visible", 0.0);
2968 program { name: "text_hide";
2969 signal: "elm,state,text,hidden";
2974 get_state(PART:"elm.swallow.content", st, 30, vl);
2975 if (!strcmp(st, "visible"))
2977 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2978 set_state(PART:"padding_icon_text", "icononly", 0.0);
2980 set_state(PART:"elm.text", "default", 0.0);
2983 program { name: "icon_show";
2984 signal: "elm,state,icon,visible";
2989 get_state(PART:"elm.text", st, 30, vl);
2990 if (!strcmp(st, "visible"))
2992 set_state(PART:"elm.swallow.content", "visible", 0.0);
2993 set_state(PART:"padding_icon_text", "visible", 0.0);
2997 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2998 set_state(PART:"padding_icon_text", "icononly", 0.0);
3002 program { name: "icon_hide";
3003 signal: "elm,state,icon,hidden";
3005 action: STATE_SET "default" 0.0;
3006 target: "elm.swallow.content";
3008 program { name: "disable";
3009 signal: "elm,state,disabled";
3011 action: STATE_SET "disabled" 0.0;
3012 target: "button_image";
3015 after: "disable_text";
3017 program { name: "disable_text";
3021 get_state(PART:"elm.text", st, 30, vl);
3022 if (!strcmp(st, "visible"))
3023 set_state(PART:"elm.text", "disabled_visible", 0.0);
3025 set_state(PART:"elm.text", "disabled", 0.0);
3026 set_int(button_state, 1);
3029 program { name: "enable";
3030 signal: "elm,state,enabled";
3032 action: STATE_SET "default" 0.0;
3033 target: "button_image";
3036 after: "enable_text";
3038 program { name: "enable_text";
3042 get_state(PART:"elm.text", st, 30, vl);
3043 if (!strcmp(st, "disabled_visible"))
3044 set_state(PART:"elm.text", "visible", 0.0);
3046 set_state(PART:"elm.text", "default", 0.0);
3047 set_int(button_state, 0);
3050 program { name: "focused";
3051 //signal: "elm,action,focus";
3053 action: STATE_SET "focused" 0.0;
3054 target: "button_image";
3057 program { name: "unfocused";
3058 //signal: "elm,action,unfocus";
3060 action: STATE_SET "default" 0.0;
3061 target: "button_image";
3062 after: "unfocus_text";
3064 program { name: "unfocus_text";
3065 action: STATE_SET "visible" 0.0;
3071 ///////////////////////////////////////////////////////////////////////////////////////
3072 group { name: "elm/button/base/edit";
3073 alias: "elm/button/base/navigationbar_functionbutton/edit";
3075 public button_state = 0; //0:enabled, 1: disabled
3078 part { name: "button_image";
3081 description { state: "default" 0.0;
3084 description { state: "clicked" 0.0;
3085 inherit: "default" 0.0;
3087 description { state: "disabled" 0.0;
3088 inherit: "default" 0.0;
3090 description { state: "focused" 0.0;
3091 inherit: "default" 0.0;
3095 name: "padding_left";
3099 description { state: "default" 0.0;
3101 rel1.relative: 0.0 0.0;
3102 rel2.relative: 0.0 1.0;
3108 part {name: "padding_after_right";
3111 description { state: "default" 0.0;
3114 rel1 { relative: 1 0.2; }
3115 rel2 { relative: 1 0.8; }
3117 color: 238 223 194 255;
3120 part {name: "padding_right";
3123 description { state: "default" 0.0;
3126 rel1 { relative: 0 0; to: "padding_after_right"; }
3127 rel2 { relative: 0 1; to: "padding_after_right"; }
3129 color: 164 151 130 255;
3133 name: "padding_top";
3137 description { state: "default" 0.0;
3139 rel1.relative: 0.0 0.0;
3140 rel2.relative: 1.0 0.0;
3147 name: "padding_bottom";
3151 description { state: "default" 0.0;
3153 rel1.relative: 0.0 1.0;
3154 rel2.relative: 1.0 1.0;
3165 description { state: "default" 0.0;
3169 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
3170 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
3176 name: "padding_icon_text";
3180 description { state: "default" 0.0; //when only icon or no icon is there
3182 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3183 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3188 description { state: "icononly" 0.0;
3189 inherit: "default" 0.0;
3191 description { state: "visible" 0.0; //when icon is visible
3193 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3194 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3200 part { name: "elm.swallow.content";
3203 description { state: "default" 0.0;
3206 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3207 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3210 description { state: "visible" 0.0;
3214 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3215 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3217 aspect_preference: VERTICAL;
3219 description { state: "icononly" 0.0;;
3222 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3223 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
3226 aspect_preference: VERTICAL;
3229 part { name: "elm.text";
3234 description { state: "default" 0.0;
3236 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
3237 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
3239 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
3240 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
3242 font: "SLP:style=Medium";
3248 description { state: "visible" 0.0;
3249 inherit: "default" 0.0;
3253 description { state: "clicked" 0.0;
3254 inherit: "default" 0.0;
3257 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
3258 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
3260 description { state: "disabled" 0.0;
3261 inherit: "default" 0.0;
3265 description { state: "disabled_visible" 0.0;
3266 inherit: "default" 0.0;
3267 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
3268 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
3272 description { state: "focused" 0.0;
3273 inherit: "default" 0.0;
3276 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
3277 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
3280 part { name: "over2";
3284 ignore_flags: ON_HOLD;
3285 description { state: "default" 0.0;
3288 description { state: "disabled" 0.0;
3289 inherit: "default" 0.0;
3293 part { name: "over3";
3297 description { state: "default" 0.0;
3300 description { state: "clicked" 0.0;
3301 inherit: "default" 0.0;
3305 part { name: "disabler";
3307 description { state: "default" 0.0;
3311 description { state: "disabled" 0.0;
3312 inherit: "default" 0.0;
3318 program { name: "button_click";
3319 signal: "mouse,down,1";
3321 action: SIGNAL_EMIT "elm,action,press" "";
3322 after: "button_click_anim";
3324 program { name: "button_click_anim";
3325 action: STATE_SET "clicked" 0.0;
3326 target: "button_image";
3327 after: "text_clicked";
3329 program { name: "text_clicked";
3333 get_state(PART:"elm.text", st, 30, vl);
3334 if (!strcmp(st, "visible"))
3335 set_state(PART:"elm.text", "clicked", 0.0);
3338 program { name: "button_unpress";
3339 action: SIGNAL_EMIT "elm,action,unpress" "";
3341 program { name: "button_mouseout_clicked";
3342 signal: "mouse,up,1";
3347 get_state(PART:"elm.swallow.content", st, 30, vl);
3348 if (strcmp(st, "icononly"))
3350 emit("elm,action,default,text,set", "");
3351 set_state(PART:"elm.text", "visible", 0.0);
3353 if(get_int(button_state) !=1)
3354 set_state(PART:"button_image", "default", 0.0);
3356 after: button_unpress;
3358 program { name: "button_click2";
3359 signal: "mouse,down,1";
3361 action: STATE_SET "clicked" 0.0;
3364 program { name: "button_unclick2";
3365 signal: "mouse,clicked,1";
3367 action: STATE_SET "default" 0.0;
3370 program { name: "button_unclick3";
3371 signal: "mouse,clicked,1";
3373 action: SIGNAL_EMIT "elm,action,click" "";
3375 program { name: "text_show";
3376 signal: "elm,state,text,visible";
3381 get_state(PART:"elm.swallow.content", st, 30, vl);
3382 if (!strcmp(st, "icononly"))
3384 set_state(PART:"elm.swallow.content", "visible", 0.0);
3385 set_state(PART:"padding_icon_text", "visible", 0.0);
3387 set_state(PART:"elm.text", "visible", 0.0);
3390 program { name: "text_hide";
3391 signal: "elm,state,text,hidden";
3396 get_state(PART:"elm.swallow.content", st, 30, vl);
3397 if (!strcmp(st, "visible"))
3399 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3400 set_state(PART:"padding_icon_text", "icononly", 0.0);
3402 set_state(PART:"elm.text", "default", 0.0);
3405 program { name: "icon_show";
3406 signal: "elm,state,icon,visible";
3411 get_state(PART:"elm.text", st, 30, vl);
3412 if (!strcmp(st, "visible"))
3414 set_state(PART:"elm.swallow.content", "visible", 0.0);
3415 set_state(PART:"padding_icon_text", "visible", 0.0);
3419 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3420 set_state(PART:"padding_icon_text", "icononly", 0.0);
3424 program { name: "icon_hide";
3425 signal: "elm,state,icon,hidden";
3427 action: STATE_SET "default" 0.0;
3428 target: "elm.swallow.content";
3430 program { name: "disable";
3431 signal: "elm,state,disabled";
3433 action: STATE_SET "disabled" 0.0;
3434 target: "button_image";
3437 after: "disable_text";
3439 program { name: "disable_text";
3443 get_state(PART:"elm.text", st, 30, vl);
3444 if (!strcmp(st, "visible"))
3445 set_state(PART:"elm.text", "disabled_visible", 0.0);
3447 set_state(PART:"elm.text", "disabled", 0.0);
3448 set_int(button_state, 1);
3451 program { name: "enable";
3452 signal: "elm,state,enabled";
3454 action: STATE_SET "default" 0.0;
3455 target: "button_image";
3458 after: "enable_text";
3460 program { name: "enable_text";
3464 get_state(PART:"elm.text", st, 30, vl);
3465 if (!strcmp(st, "disabled_visible"))
3466 set_state(PART:"elm.text", "visible", 0.0);
3468 set_state(PART:"elm.text", "default", 0.0);
3469 set_int(button_state, 0);
3472 program { name: "focused";
3473 //signal: "elm,action,focus";
3475 action: STATE_SET "focused" 0.0;
3476 target: "button_image";
3479 program { name: "unfocused";
3480 //signal: "elm,action,unfocus";
3482 action: STATE_SET "default" 0.0;
3483 target: "button_image";
3484 after: "unfocus_text";
3486 program { name: "unfocus_text";
3487 action: STATE_SET "visible" 0.0;
3493 ///////////////////////////////////////////////////////////////////////////////////////
3494 group { name: "elm/button/base/popup_button/default";
3495 alias: "elm/button/base/popup_button/menustyle";
3496 alias: "elm/button/base/popup_button/liststyle";
3497 alias: "elm/button/base/popup_button/volumebarstyle";
3498 alias: "elm/button/base/popup_button/customstyle";
3500 image: "00_button_popup_normal.png" COMP;
3501 image: "00_button_popup_press.png" COMP;
3502 image: "00_button_popup_focus.png" COMP;
3503 image: "00_button_popup_dim.png" COMP;
3506 public button_state = 0; //0:enabled, 1: disabled
3509 part { name: "button_image";
3512 description { state: "default" 0.0;
3516 normal: "00_button_popup_normal.png";
3521 description { state: "clicked" 0.0;
3522 inherit: "default" 0.0;
3523 image.normal: "00_button_popup_press.png";
3525 description { state: "disabled" 0.0;
3526 inherit: "default" 0.0;
3527 image.normal: "00_button_popup_dim.png";
3529 description { state: "focused" 0.0;
3530 inherit: "default" 0.0;
3531 image.normal: "00_button_popup_focus.png";
3535 name: "padding_left";
3539 description { state: "default" 0.0;
3541 rel1.relative: 0.0 0.0;
3542 rel2.relative: 0.0 1.0;
3549 name: "padding_right";
3553 description { state: "default" 0.0;
3555 rel1.relative: 1.0 0.0;
3556 rel2.relative: 1.0 1.0;
3563 name: "padding_top";
3567 description { state: "default" 0.0;
3569 rel1.relative: 0.0 0.0;
3570 rel2.relative: 1.0 0.0;
3577 name: "padding_bottom";
3581 description { state: "default" 0.0;
3583 rel1.relative: 0.0 1.0;
3584 rel2.relative: 1.0 1.0;
3595 description { state: "default" 0.0;
3599 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
3600 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
3606 name: "padding_icon_text";
3610 description { state: "default" 0.0; //when only icon or no icon is there
3612 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3613 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3618 description { state: "icononly" 0.0;
3619 inherit: "default" 0.0;
3621 description { state: "visible" 0.0; //when icon is visible
3623 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3624 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3630 part { name: "elm.swallow.content";
3633 description { state: "default" 0.0;
3636 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3637 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3640 description { state: "visible" 0.0;
3644 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3645 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3647 aspect_preference: VERTICAL;
3649 description { state: "icononly" 0.0;;
3652 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3653 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
3656 aspect_preference: VERTICAL;
3659 part { name: "elm.text";
3664 description { state: "default" 0.0;
3666 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
3667 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
3669 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
3670 color2: BUTTON_POPUP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
3672 font: "SLP:style=Medium";
3679 description { state: "visible" 0.0;
3680 inherit: "default" 0.0;
3684 description { state: "clicked" 0.0;
3685 inherit: "default" 0.0;
3688 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
3689 color2: BUTTON_POPUP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
3691 description { state: "disabled" 0.0;
3692 inherit: "default" 0.0;
3696 description { state: "disabled_visible" 0.0;
3697 inherit: "default" 0.0;
3698 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
3699 color2: BUTTON_POPUP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
3703 description { state: "focused" 0.0;
3704 inherit: "default" 0.0;
3707 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3708 color2: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
3711 part { name: "over2";
3715 ignore_flags: ON_HOLD;
3716 description { state: "default" 0.0;
3719 description { state: "disabled" 0.0;
3720 inherit: "default" 0.0;
3724 part { name: "over3";
3728 description { state: "default" 0.0;
3731 description { state: "clicked" 0.0;
3732 inherit: "default" 0.0;
3736 part { name: "disabler";
3738 description { state: "default" 0.0;
3742 description { state: "disabled" 0.0;
3743 inherit: "default" 0.0;
3749 program { name: "button_click";
3750 signal: "mouse,down,1";
3752 action: SIGNAL_EMIT "elm,action,press" "";
3753 after: "button_click_anim";
3755 program { name: "button_click_anim";
3756 action: STATE_SET "clicked" 0.0;
3757 target: "button_image";
3758 after: "text_clicked";
3760 program { name: "text_clicked";
3764 get_state(PART:"elm.text", st, 30, vl);
3765 if (!strcmp(st, "visible"))
3766 set_state(PART:"elm.text", "clicked", 0.0);
3769 program { name: "button_unpress";
3770 action: SIGNAL_EMIT "elm,action,unpress" "";
3772 program { name: "button_mouseout_clicked";
3773 signal: "mouse,up,1";
3778 get_state(PART:"elm.swallow.content", st, 30, vl);
3779 if (strcmp(st, "icononly"))
3781 emit("elm,action,default,text,set", "");
3782 set_state(PART:"elm.text", "visible", 0.0);
3784 if(get_int(button_state) !=1)
3785 set_state(PART:"button_image", "default", 0.0);
3787 after: button_unpress;
3789 program { name: "button_click2";
3790 signal: "mouse,down,1";
3792 action: STATE_SET "clicked" 0.0;
3795 program { name: "button_unclick2";
3796 signal: "mouse,clicked,1";
3798 action: STATE_SET "default" 0.0;
3801 program { name: "button_unclick3";
3802 signal: "mouse,clicked,1";
3804 action: SIGNAL_EMIT "elm,action,click" "";
3806 program { name: "text_show";
3807 signal: "elm,state,text,visible";
3812 get_state(PART:"elm.swallow.content", st, 30, vl);
3813 if (!strcmp(st, "icononly"))
3815 set_state(PART:"elm.swallow.content", "visible", 0.0);
3816 set_state(PART:"padding_icon_text", "visible", 0.0);
3818 set_state(PART:"elm.text", "visible", 0.0);
3821 program { name: "text_hide";
3822 signal: "elm,state,text,hidden";
3827 get_state(PART:"elm.swallow.content", st, 30, vl);
3828 if (!strcmp(st, "visible"))
3830 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3831 set_state(PART:"padding_icon_text", "icononly", 0.0);
3833 set_state(PART:"elm.text", "default", 0.0);
3836 program { name: "icon_show";
3837 signal: "elm,state,icon,visible";
3842 get_state(PART:"elm.text", st, 30, vl);
3843 if (!strcmp(st, "visible"))
3845 set_state(PART:"elm.swallow.content", "visible", 0.0);
3846 set_state(PART:"padding_icon_text", "visible", 0.0);
3850 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3851 set_state(PART:"padding_icon_text", "icononly", 0.0);
3855 program { name: "icon_hide";
3856 signal: "elm,state,icon,hidden";
3858 action: STATE_SET "default" 0.0;
3859 target: "elm.swallow.content";
3861 program { name: "disable";
3862 signal: "elm,state,disabled";
3864 action: STATE_SET "disabled" 0.0;
3865 target: "button_image";
3868 after: "disable_text";
3870 program { name: "disable_text";
3874 get_state(PART:"elm.text", st, 30, vl);
3875 if (!strcmp(st, "visible"))
3876 set_state(PART:"elm.text", "disabled_visible", 0.0);
3878 set_state(PART:"elm.text", "disabled", 0.0);
3879 set_int(button_state, 1);
3882 program { name: "enable";
3883 signal: "elm,state,enabled";
3885 action: STATE_SET "default" 0.0;
3886 target: "button_image";
3889 after: "enable_text";
3891 program { name: "enable_text";
3895 get_state(PART:"elm.text", st, 30, vl);
3896 if (!strcmp(st, "disabled_visible"))
3897 set_state(PART:"elm.text", "visible", 0.0);
3899 set_state(PART:"elm.text", "default", 0.0);
3900 set_int(button_state, 0);
3903 program { name: "focused";
3904 action: STATE_SET "focused" 0.0;
3905 target: "button_image";
3908 program { name: "unfocused";
3909 action: STATE_SET "default" 0.0;
3910 target: "button_image";
3911 after: "unfocus_text";
3913 program { name: "unfocus_text";
3914 action: STATE_SET "visible" 0.0;
3920 ///////////////////////////////////////////////////////////////////////////////////////
3921 group { name: "elm/button/base/expand/opened";
3923 image: "00_button_expand_opened.png" COMP;
3924 image: "00_button_expand_opened_press.png" COMP;
3925 image: "00_button_expand_opened_dim.png" COMP;
3928 part { name: "button_image";
3931 description { state: "default" 0.0;
3935 normal: "00_button_expand_opened.png";
3939 state: "clicked" 0.0;
3940 inherit: "default" 0.0;
3941 image.normal: "00_button_expand_opened_press.png";
3944 state: "disabled" 0.0;
3945 inherit: "default" 0.0;
3946 image.normal: "00_button_expand_opened_dim.png";
3949 part { name: "over1";
3953 ignore_flags: ON_HOLD;
3954 description { state: "default" 0.0;
3958 part { name: "over2";
3961 description { state: "default" 0.0;
3962 color: 255 255 255 0;
3964 description { state: "clicked" 0.0;
3965 inherit: "default" 0.0;
3967 color: 255 255 255 0;
3970 part { name: "disabler";
3972 description { state: "default" 0.0;
3976 description { state: "disabled" 0.0;
3977 inherit: "default" 0.0;
3983 program { name: "button_click";
3984 signal: "mouse,down,1";
3986 action: SIGNAL_EMIT "elm,action,press" "";
3987 after: "button_click_anim";
3989 program { name: "button_click_anim";
3990 action: STATE_SET "clicked" 0.0;
3991 target: "button_image";
3993 program { name: "button_unclick";
3994 signal: "mouse,up,1";
3996 action: SIGNAL_EMIT "elm,action,unpress" "";
3997 after: "button_unclick_anim";
3999 program { name: "button_unclick_anim";
4000 action: STATE_SET "default" 0.0;
4001 target: "button_image";
4003 program { name: "button_click2";
4004 signal: "mouse,down,1";
4006 action: STATE_SET "clicked" 0.0;
4009 program { name: "button_unclick2";
4010 signal: "mouse,clicked,1";
4012 action: STATE_SET "default" 0.0;
4014 after: "button_unclick3";
4016 program { name: "button_unclick3";
4017 action: SIGNAL_EMIT "elm,action,click" "";
4019 program { name: "disable";
4020 signal: "elm,state,disabled";
4022 action: STATE_SET "disabled" 0.0;
4024 target: "button_image";
4026 program { name: "enable";
4027 signal: "elm,state,enabled";
4029 action: STATE_SET "default" 0.0;
4031 target: "button_image";
4036 group { name: "elm/button/base/expand/opened/extended";
4038 image: "00_button_expand_opened.png" COMP;
4039 image: "00_button_expand_opened_press.png" COMP;
4040 image: "00_button_expand_opened_dim.png" COMP;
4043 part { name: "button_image";
4046 description { state: "default" 0.0;
4050 normal: "00_button_expand_opened.png";
4054 state: "clicked" 0.0;
4055 inherit: "default" 0.0;
4056 image.normal: "00_button_expand_opened_press.png";
4059 state: "disabled" 0.0;
4060 inherit: "default" 0.0;
4061 image.normal: "00_button_expand_opened_dim.png";
4064 part { name: "over1";
4068 ignore_flags: ON_HOLD;
4069 description { state: "default" 0.0;
4075 part { name: "over2";
4078 description { state: "default" 0.0;
4079 color: 255 255 255 0;
4081 description { state: "clicked" 0.0;
4082 inherit: "default" 0.0;
4084 color: 255 255 255 0;
4087 part { name: "disabler";
4089 description { state: "default" 0.0;
4093 description { state: "disabled" 0.0;
4094 inherit: "default" 0.0;
4100 program { name: "button_click";
4101 signal: "mouse,down,1";
4103 action: SIGNAL_EMIT "elm,action,press" "";
4104 after: "button_click_anim";
4106 program { name: "button_click_anim";
4107 action: STATE_SET "clicked" 0.0;
4108 target: "button_image";
4110 program { name: "button_unclick";
4111 signal: "mouse,up,1";
4113 action: SIGNAL_EMIT "elm,action,unpress" "";
4114 after: "button_unclick_anim";
4116 program { name: "button_unclick_anim";
4117 action: STATE_SET "default" 0.0;
4118 target: "button_image";
4120 program { name: "button_click2";
4121 signal: "mouse,down,1";
4123 action: STATE_SET "clicked" 0.0;
4126 program { name: "button_unclick2";
4127 signal: "mouse,clicked,1";
4129 action: STATE_SET "default" 0.0;
4131 after: "button_unclick3";
4133 program { name: "button_unclick3";
4134 action: SIGNAL_EMIT "elm,action,click" "";
4136 program { name: "disable";
4137 signal: "elm,state,disabled";
4139 action: STATE_SET "disabled" 0.0;
4141 target: "button_image";
4143 program { name: "enable";
4144 signal: "elm,state,enabled";
4146 action: STATE_SET "default" 0.0;
4148 target: "button_image";
4153 ///////////////////////////////////////////////////////////////////////////////////////
4154 group { name: "elm/button/base/expand/closed";
4156 image: "00_button_expand_closed.png" COMP;
4157 image: "00_button_expand_closed_press.png" COMP;
4158 image: "00_button_expand_closed_dim.png" COMP;
4161 part { name: "button_image";
4164 description { state: "default" 0.0;
4168 normal: "00_button_expand_closed.png";
4172 state: "clicked" 0.0;
4173 inherit: "default" 0.0;
4174 image.normal: "00_button_expand_closed_press.png";
4177 state: "disabled" 0.0;
4178 inherit: "default" 0.0;
4179 image.normal: "00_button_expand_closed_dim.png";
4182 part { name: "over1";
4186 ignore_flags: ON_HOLD;
4187 description { state: "default" 0.0;
4191 part { name: "over2";
4194 description { state: "default" 0.0;
4195 color: 255 255 255 0;
4197 description { state: "clicked" 0.0;
4198 inherit: "default" 0.0;
4200 color: 255 255 255 0;
4203 part { name: "disabler";
4205 description { state: "default" 0.0;
4209 description { state: "disabled" 0.0;
4210 inherit: "default" 0.0;
4216 program { name: "button_click";
4217 signal: "mouse,down,1";
4219 action: SIGNAL_EMIT "elm,action,press" "";
4220 after: "button_click_anim";
4222 program { name: "button_click_anim";
4223 action: STATE_SET "clicked" 0.0;
4224 target: "button_image";
4226 program { name: "button_unclick";
4227 signal: "mouse,up,1";
4229 action: SIGNAL_EMIT "elm,action,unpress" "";
4230 after: "button_unclick_anim";
4232 program { name: "button_unclick_anim";
4233 action: STATE_SET "default" 0.0;
4234 target: "button_image";
4236 program { name: "button_click2";
4237 signal: "mouse,down,1";
4239 action: STATE_SET "clicked" 0.0;
4242 program { name: "button_unclick2";
4243 signal: "mouse,clicked,1";
4245 action: STATE_SET "default" 0.0;
4247 after: "button_unclick3";
4249 program { name: "button_unclick3";
4250 action: SIGNAL_EMIT "elm,action,click" "";
4252 program { name: "disable";
4253 signal: "elm,state,disabled";
4255 action: STATE_SET "disabled" 0.0;
4257 target: "button_image";
4259 program { name: "enable";
4260 signal: "elm,state,enabled";
4262 action: STATE_SET "default" 0.0;
4264 target: "button_image";
4269 group { name: "elm/button/base/expand/closed/extended";
4271 image: "00_button_expand_closed.png" COMP;
4272 image: "00_button_expand_closed_press.png" COMP;
4273 image: "00_button_expand_closed_dim.png" COMP;
4276 part { name: "button_image";
4279 description { state: "default" 0.0;
4283 normal: "00_button_expand_closed.png";
4287 state: "clicked" 0.0;
4288 inherit: "default" 0.0;
4289 image.normal: "00_button_expand_closed_press.png";
4292 state: "disabled" 0.0;
4293 inherit: "default" 0.0;
4294 image.normal: "00_button_expand_closed_dim.png";
4297 part { name: "over1";
4301 ignore_flags: ON_HOLD;
4302 description { state: "default" 0.0;
4308 part { name: "over2";
4311 description { state: "default" 0.0;
4312 color: 255 255 255 0;
4314 description { state: "clicked" 0.0;
4315 inherit: "default" 0.0;
4317 color: 255 255 255 0;
4320 part { name: "disabler";
4322 description { state: "default" 0.0;
4326 description { state: "disabled" 0.0;
4327 inherit: "default" 0.0;
4333 program { name: "button_click";
4334 signal: "mouse,down,1";
4336 action: SIGNAL_EMIT "elm,action,press" "";
4337 after: "button_click_anim";
4339 program { name: "button_click_anim";
4340 action: STATE_SET "clicked" 0.0;
4341 target: "button_image";
4343 program { name: "button_unclick";
4344 signal: "mouse,up,1";
4346 action: SIGNAL_EMIT "elm,action,unpress" "";
4347 after: "button_unclick_anim";
4349 program { name: "button_unclick_anim";
4350 action: STATE_SET "default" 0.0;
4351 target: "button_image";
4353 program { name: "button_click2";
4354 signal: "mouse,down,1";
4356 action: STATE_SET "clicked" 0.0;
4359 program { name: "button_unclick2";
4360 signal: "mouse,clicked,1";
4362 action: STATE_SET "default" 0.0;
4364 after: "button_unclick3";
4366 program { name: "button_unclick3";
4367 action: SIGNAL_EMIT "elm,action,click" "";
4369 program { name: "disable";
4370 signal: "elm,state,disabled";
4372 action: STATE_SET "disabled" 0.0;
4374 target: "button_image";
4376 program { name: "enable";
4377 signal: "elm,state,enabled";
4379 action: STATE_SET "default" 0.0;
4381 target: "button_image";
4386 ///////////////////////////////////////////////////////////////////////////////////////
4387 group { name: "elm/button/base/expand_2/opened";
4389 image: "00_button_expand_2_opened.png" COMP;
4390 image: "00_button_expand_2_opened_press.png" COMP;
4391 image: "00_button_expand_2_opened_dim.png" COMP;
4394 part { name: "button_image";
4397 description { state: "default" 0.0;
4401 normal: "00_button_expand_2_opened.png";
4405 state: "clicked" 0.0;
4406 inherit: "default" 0.0;
4407 image.normal: "00_button_expand_2_opened_press.png";
4410 state: "disabled" 0.0;
4411 inherit: "default" 0.0;
4412 image.normal: "00_button_expand_2_opened_dim.png";
4415 part { name: "over1";
4419 ignore_flags: ON_HOLD;
4420 description { state: "default" 0.0;
4424 part { name: "over2";
4427 description { state: "default" 0.0;
4428 color: 255 255 255 0;
4430 description { state: "clicked" 0.0;
4431 inherit: "default" 0.0;
4433 color: 255 255 255 0;
4436 part { name: "disabler";
4438 description { state: "default" 0.0;
4442 description { state: "disabled" 0.0;
4443 inherit: "default" 0.0;
4449 program { name: "button_click";
4450 signal: "mouse,down,1";
4452 action: SIGNAL_EMIT "elm,action,press" "";
4453 after: "button_click_anim";
4455 program { name: "button_click_anim";
4456 action: STATE_SET "clicked" 0.0;
4457 target: "button_image";
4459 program { name: "button_unclick";
4460 signal: "mouse,up,1";
4462 action: SIGNAL_EMIT "elm,action,unpress" "";
4463 after: "button_unclick_anim";
4465 program { name: "button_unclick_anim";
4466 action: STATE_SET "default" 0.0;
4467 target: "button_image";
4469 program { name: "button_click2";
4470 signal: "mouse,down,1";
4472 action: STATE_SET "clicked" 0.0;
4475 program { name: "button_unclick2";
4476 signal: "mouse,clicked,1";
4478 action: STATE_SET "default" 0.0;
4480 after: "button_unclick3";
4482 program { name: "button_unclick3";
4483 action: SIGNAL_EMIT "elm,action,click" "";
4485 program { name: "disable";
4486 signal: "elm,state,disabled";
4488 action: STATE_SET "disabled" 0.0;
4490 target: "button_image";
4492 program { name: "enable";
4493 signal: "elm,state,enabled";
4495 action: STATE_SET "default" 0.0;
4497 target: "button_image";
4502 group { name: "elm/button/base/expand_2/opened/extended";
4504 image: "00_button_expand_2_opened.png" COMP;
4505 image: "00_button_expand_2_opened_press.png" COMP;
4506 image: "00_button_expand_2_opened_dim.png" COMP;
4509 part { name: "button_image";
4512 description { state: "default" 0.0;
4516 normal: "00_button_expand_2_opened.png";
4520 state: "clicked" 0.0;
4521 inherit: "default" 0.0;
4522 image.normal: "00_button_expand_2_opened_press.png";
4525 state: "disabled" 0.0;
4526 inherit: "default" 0.0;
4527 image.normal: "00_button_expand_2_opened_dim.png";
4530 part { name: "over1";
4534 ignore_flags: ON_HOLD;
4535 description { state: "default" 0.0;
4541 part { name: "over2";
4544 description { state: "default" 0.0;
4545 color: 255 255 255 0;
4547 description { state: "clicked" 0.0;
4548 inherit: "default" 0.0;
4550 color: 255 255 255 0;
4553 part { name: "disabler";
4555 description { state: "default" 0.0;
4559 description { state: "disabled" 0.0;
4560 inherit: "default" 0.0;
4566 program { name: "button_click";
4567 signal: "mouse,down,1";
4569 action: SIGNAL_EMIT "elm,action,press" "";
4570 after: "button_click_anim";
4572 program { name: "button_click_anim";
4573 action: STATE_SET "clicked" 0.0;
4574 target: "button_image";
4576 program { name: "button_unclick";
4577 signal: "mouse,up,1";
4579 action: SIGNAL_EMIT "elm,action,unpress" "";
4580 after: "button_unclick_anim";
4582 program { name: "button_unclick_anim";
4583 action: STATE_SET "default" 0.0;
4584 target: "button_image";
4586 program { name: "button_click2";
4587 signal: "mouse,down,1";
4589 action: STATE_SET "clicked" 0.0;
4592 program { name: "button_unclick2";
4593 signal: "mouse,clicked,1";
4595 action: STATE_SET "default" 0.0;
4597 after: "button_unclick3";
4599 program { name: "button_unclick3";
4600 action: SIGNAL_EMIT "elm,action,click" "";
4602 program { name: "disable";
4603 signal: "elm,state,disabled";
4605 action: STATE_SET "disabled" 0.0;
4607 target: "button_image";
4609 program { name: "enable";
4610 signal: "elm,state,enabled";
4612 action: STATE_SET "default" 0.0;
4614 target: "button_image";
4619 ///////////////////////////////////////////////////////////////////////////////////////
4620 group { name: "elm/button/base/expand_2/closed";
4622 image: "00_button_expand_2_closed.png" COMP;
4623 image: "00_button_expand_2_closed_press.png" COMP;
4624 image: "00_button_expand_2_closed_dim.png" COMP;
4627 part { name: "button_image";
4630 description { state: "default" 0.0;
4634 normal: "00_button_expand_2_closed.png";
4638 state: "clicked" 0.0;
4639 inherit: "default" 0.0;
4640 image.normal: "00_button_expand_2_closed_press.png";
4643 state: "disabled" 0.0;
4644 inherit: "default" 0.0;
4645 image.normal: "00_button_expand_2_closed_dim.png";
4648 part { name: "over1";
4652 ignore_flags: ON_HOLD;
4653 description { state: "default" 0.0;
4657 part { name: "over2";
4660 description { state: "default" 0.0;
4661 color: 255 255 255 0;
4663 description { state: "clicked" 0.0;
4664 inherit: "default" 0.0;
4666 color: 255 255 255 0;
4669 part { name: "disabler";
4671 description { state: "default" 0.0;
4675 description { state: "disabled" 0.0;
4676 inherit: "default" 0.0;
4682 program { name: "button_click";
4683 signal: "mouse,down,1";
4685 action: SIGNAL_EMIT "elm,action,press" "";
4686 after: "button_click_anim";
4688 program { name: "button_click_anim";
4689 action: STATE_SET "clicked" 0.0;
4690 target: "button_image";
4692 program { name: "button_unclick";
4693 signal: "mouse,up,1";
4695 action: SIGNAL_EMIT "elm,action,unpress" "";
4696 after: "button_unclick_anim";
4698 program { name: "button_unclick_anim";
4699 action: STATE_SET "default" 0.0;
4700 target: "button_image";
4702 program { name: "button_click2";
4703 signal: "mouse,down,1";
4705 action: STATE_SET "clicked" 0.0;
4708 program { name: "button_unclick2";
4709 signal: "mouse,clicked,1";
4711 action: STATE_SET "default" 0.0;
4713 after: "button_unclick3";
4715 program { name: "button_unclick3";
4716 action: SIGNAL_EMIT "elm,action,click" "";
4718 program { name: "disable";
4719 signal: "elm,state,disabled";
4721 action: STATE_SET "disabled" 0.0;
4723 target: "button_image";
4725 program { name: "enable";
4726 signal: "elm,state,enabled";
4728 action: STATE_SET "default" 0.0;
4730 target: "button_image";
4735 group { name: "elm/button/base/expand_2/closed/extended";
4737 image: "00_button_expand_2_closed.png" COMP;
4738 image: "00_button_expand_2_closed_press.png" COMP;
4739 image: "00_button_expand_2_closed_dim.png" COMP;
4742 part { name: "button_image";
4745 description { state: "default" 0.0;
4749 normal: "00_button_expand_2_closed.png";
4753 state: "clicked" 0.0;
4754 inherit: "default" 0.0;
4755 image.normal: "00_button_expand_2_closed_press.png";
4758 state: "disabled" 0.0;
4759 inherit: "default" 0.0;
4760 image.normal: "00_button_expand_2_closed_dim.png";
4763 part { name: "over1";
4767 ignore_flags: ON_HOLD;
4768 description { state: "default" 0.0;
4774 part { name: "over2";
4777 description { state: "default" 0.0;
4778 color: 255 255 255 0;
4780 description { state: "clicked" 0.0;
4781 inherit: "default" 0.0;
4783 color: 255 255 255 0;
4786 part { name: "disabler";
4788 description { state: "default" 0.0;
4792 description { state: "disabled" 0.0;
4793 inherit: "default" 0.0;
4799 program { name: "button_click";
4800 signal: "mouse,down,1";
4802 action: SIGNAL_EMIT "elm,action,press" "";
4803 after: "button_click_anim";
4805 program { name: "button_click_anim";
4806 action: STATE_SET "clicked" 0.0;
4807 target: "button_image";
4809 program { name: "button_unclick";
4810 signal: "mouse,up,1";
4812 action: SIGNAL_EMIT "elm,action,unpress" "";
4813 after: "button_unclick_anim";
4815 program { name: "button_unclick_anim";
4816 action: STATE_SET "default" 0.0;
4817 target: "button_image";
4819 program { name: "button_click2";
4820 signal: "mouse,down,1";
4822 action: STATE_SET "clicked" 0.0;
4825 program { name: "button_unclick2";
4826 signal: "mouse,clicked,1";
4828 action: STATE_SET "default" 0.0;
4830 after: "button_unclick3";
4832 program { name: "button_unclick3";
4833 action: SIGNAL_EMIT "elm,action,click" "";
4835 program { name: "disable";
4836 signal: "elm,state,disabled";
4838 action: STATE_SET "disabled" 0.0;
4840 target: "button_image";
4842 program { name: "enable";
4843 signal: "elm,state,enabled";
4845 action: STATE_SET "default" 0.0;
4847 target: "button_image";
4852 ///////////////////////////////////////////////////////////////////////////////////////
4853 group { name: "elm/button/base/reveal";
4855 image: "00_button_reveal.png" COMP;
4856 image: "00_button_reveal_press.png" COMP;
4857 image: "00_button_reveal_dim.png" COMP;
4860 part { name: "button_image";
4863 description { state: "default" 0.0;
4867 normal: "00_button_reveal.png";
4871 state: "clicked" 0.0;
4872 inherit: "default" 0.0;
4873 image.normal: "00_button_reveal_press.png";
4876 state: "disabled" 0.0;
4877 inherit: "default" 0.0;
4878 image.normal: "00_button_reveal_dim.png";
4881 part { name: "over1";
4885 ignore_flags: ON_HOLD;
4886 description { state: "default" 0.0;
4890 part { name: "over2";
4893 description { state: "default" 0.0;
4894 color: 255 255 255 0;
4896 description { state: "clicked" 0.0;
4897 inherit: "default" 0.0;
4899 color: 255 255 255 0;
4902 part { name: "disabler";
4904 description { state: "default" 0.0;
4908 description { state: "disabled" 0.0;
4909 inherit: "default" 0.0;
4915 program { name: "button_click";
4916 signal: "mouse,down,1";
4918 action: SIGNAL_EMIT "elm,action,press" "";
4919 after: "button_click_anim";
4921 program { name: "button_click_anim";
4922 action: STATE_SET "clicked" 0.0;
4923 target: "button_image";
4925 program { name: "button_unclick";
4926 signal: "mouse,up,1";
4928 action: SIGNAL_EMIT "elm,action,unpress" "";
4929 after: "button_unclick_anim";
4931 program { name: "button_unclick_anim";
4932 action: STATE_SET "default" 0.0;
4933 target: "button_image";
4935 program { name: "button_click2";
4936 signal: "mouse,down,1";
4938 action: STATE_SET "clicked" 0.0;
4941 program { name: "button_unclick2";
4942 signal: "mouse,clicked,1";
4944 action: STATE_SET "default" 0.0;
4946 after: "button_unclick3";
4948 program { name: "button_unclick3";
4949 action: SIGNAL_EMIT "elm,action,click" "";
4951 program { name: "disable";
4952 signal: "elm,state,disabled";
4954 action: STATE_SET "disabled" 0.0;
4956 target: "button_image";
4958 program { name: "enable";
4959 signal: "elm,state,enabled";
4961 action: STATE_SET "default" 0.0;
4963 target: "button_image";
4968 group { name: "elm/button/base/reveal/extended";
4970 image: "00_button_reveal.png" COMP;
4971 image: "00_button_reveal_press.png" COMP;
4972 image: "00_button_reveal_dim.png" COMP;
4975 part { name: "button_image";
4978 description { state: "default" 0.0;
4982 normal: "00_button_reveal.png";
4986 state: "clicked" 0.0;
4987 inherit: "default" 0.0;
4988 image.normal: "00_button_reveal_press.png";
4991 state: "disabled" 0.0;
4992 inherit: "default" 0.0;
4993 image.normal: "00_button_reveal_dim.png";
4996 part { name: "over1";
5000 ignore_flags: ON_HOLD;
5001 description { state: "default" 0.0;
5007 part { name: "over2";
5010 description { state: "default" 0.0;
5011 color: 255 255 255 0;
5013 description { state: "clicked" 0.0;
5014 inherit: "default" 0.0;
5016 color: 255 255 255 0;
5019 part { name: "disabler";
5021 description { state: "default" 0.0;
5025 description { state: "disabled" 0.0;
5026 inherit: "default" 0.0;
5032 program { name: "button_click";
5033 signal: "mouse,down,1";
5035 action: SIGNAL_EMIT "elm,action,press" "";
5036 after: "button_click_anim";
5038 program { name: "button_click_anim";
5039 action: STATE_SET "clicked" 0.0;
5040 target: "button_image";
5042 program { name: "button_unclick";
5043 signal: "mouse,up,1";
5045 action: SIGNAL_EMIT "elm,action,unpress" "";
5046 after: "button_unclick_anim";
5048 program { name: "button_unclick_anim";
5049 action: STATE_SET "default" 0.0;
5050 target: "button_image";
5052 program { name: "button_click2";
5053 signal: "mouse,down,1";
5055 action: STATE_SET "clicked" 0.0;
5058 program { name: "button_unclick2";
5059 signal: "mouse,clicked,1";
5061 action: STATE_SET "default" 0.0;
5063 after: "button_unclick3";
5065 program { name: "button_unclick3";
5066 action: SIGNAL_EMIT "elm,action,click" "";
5068 program { name: "disable";
5069 signal: "elm,state,disabled";
5071 action: STATE_SET "disabled" 0.0;
5073 target: "button_image";
5075 program { name: "enable";
5076 signal: "elm,state,enabled";
5078 action: STATE_SET "default" 0.0;
5080 target: "button_image";
5085 group { name: "elm/button/base/call/extended";
5087 image: "00_button_call.png" COMP;
5088 image: "00_button_call_press.png" COMP;
5089 image: "00_button_call_dim.png" COMP;
5092 part { name: "button_image";
5095 description { state: "default" 0.0;
5099 normal: "00_button_call.png";
5103 state: "clicked" 0.0;
5104 inherit: "default" 0.0;
5105 image.normal: "00_button_call_press.png";
5108 state: "disabled" 0.0;
5109 inherit: "default" 0.0;
5110 image.normal: "00_button_call_dim.png";
5113 part { name: "over1";
5117 ignore_flags: ON_HOLD;
5118 description { state: "default" 0.0;
5124 part { name: "over2";
5127 description { state: "default" 0.0;
5128 color: 255 255 255 0;
5130 description { state: "clicked" 0.0;
5131 inherit: "default" 0.0;
5133 color: 255 255 255 0;
5136 part { name: "disabler";
5138 description { state: "default" 0.0;
5142 description { state: "disabled" 0.0;
5143 inherit: "default" 0.0;
5149 program { name: "button_click";
5150 signal: "mouse,down,1";
5152 action: SIGNAL_EMIT "elm,action,press" "";
5153 after: "button_click_anim";
5155 program { name: "button_click_anim";
5156 action: STATE_SET "clicked" 0.0;
5157 target: "button_image";
5159 program { name: "button_unclick";
5160 signal: "mouse,up,1";
5162 action: SIGNAL_EMIT "elm,action,unpress" "";
5163 after: "button_unclick_anim";
5165 program { name: "button_unclick_anim";
5166 action: STATE_SET "default" 0.0;
5167 target: "button_image";
5169 program { name: "button_click2";
5170 signal: "mouse,down,1";
5172 action: STATE_SET "clicked" 0.0;
5175 program { name: "button_unclick2";
5176 signal: "mouse,clicked,1";
5178 action: STATE_SET "default" 0.0;
5180 after: "button_unclick3";
5182 program { name: "button_unclick3";
5183 action: SIGNAL_EMIT "elm,action,click" "";
5185 program { name: "disable";
5186 signal: "elm,state,disabled";
5188 action: STATE_SET "disabled" 0.0;
5190 target: "button_image";
5192 program { name: "enable";
5193 signal: "elm,state,enabled";
5195 action: STATE_SET "default" 0.0;
5197 target: "button_image";
5202 ///////////////////////////////////////////////////////////////////////////////////////
5203 group { name: "elm/button/base/add";
5205 image: "00_button_icon_plus.png" COMP;
5206 image: "00_button_icon_plus_press.png" COMP;
5207 image: "00_button_EditStyle.png" COMP;
5208 image: "00_button_EditStyle_press.png" COMP;
5209 image: "00_button_EditStyle_dim.png" COMP;
5212 part { name: "button_image";
5215 description { state: "default" 0.0;
5219 normal: "00_button_EditStyle.png";
5225 state: "clicked" 0.0;
5226 inherit: "default" 0.0;
5227 image.normal: "00_button_EditStyle_press.png";
5230 state: "disabled" 0.0;
5231 inherit: "default" 0.0;
5232 image.normal: "00_button_EditStyle_dim.png";
5235 part { name: "button_center_part";
5238 description { state: "default" 0.0;
5242 normal: "00_button_icon_plus.png";
5248 state: "clicked" 0.0;
5249 inherit: "default" 0.0;
5250 image.normal: "00_button_icon_plus_press.png";
5253 part { name: "over1";
5257 ignore_flags: ON_HOLD;
5258 description { state: "default" 0.0;
5262 part { name: "over2";
5265 description { state: "default" 0.0;
5266 color: 255 255 255 0;
5268 description { state: "clicked" 0.0;
5269 inherit: "default" 0.0;
5271 color: 255 255 255 0;
5274 part { name: "disabler";
5276 description { state: "default" 0.0;
5280 description { state: "disabled" 0.0;
5281 inherit: "default" 0.0;
5287 program { name: "button_click";
5288 signal: "mouse,down,1";
5290 action: SIGNAL_EMIT "elm,action,press" "";
5291 after: "button_click_anim";
5293 program { name: "button_click_anim";
5294 action: STATE_SET "clicked" 0.0;
5295 target: "button_image";
5296 target: "button_center_part";
5298 program { name: "button_unclick";
5299 signal: "mouse,up,1";
5301 action: SIGNAL_EMIT "elm,action,unpress" "";
5302 after: "button_unclick_anim";
5304 program { name: "button_unclick_anim";
5305 action: STATE_SET "default" 0.0;
5306 target: "button_image";
5307 target: "button_center_part";
5309 program { name: "button_click2";
5310 signal: "mouse,down,1";
5312 action: STATE_SET "clicked" 0.0;
5315 program { name: "button_unclick2";
5316 signal: "mouse,clicked,1";
5318 action: STATE_SET "default" 0.0;
5320 after: "button_unclick3";
5322 program { name: "button_unclick3";
5323 action: SIGNAL_EMIT "elm,action,click" "";
5325 program { name: "disable";
5326 signal: "elm,state,disabled";
5328 action: STATE_SET "disabled" 0.0;
5330 target: "button_image";
5332 program { name: "enable";
5333 signal: "elm,state,enabled";
5335 action: STATE_SET "default" 0.0;
5337 target: "button_image";
5342 group { name: "elm/button/base/add/extended";
5344 image: "00_button_icon_plus.png" COMP;
5345 image: "00_button_icon_plus_press.png" COMP;
5346 image: "00_button_EditStyle.png" COMP;
5347 image: "00_button_EditStyle_press.png" COMP;
5348 image: "00_button_EditStyle_dim.png" COMP;
5351 part { name: "button_image";
5354 description { state: "default" 0.0;
5358 normal: "00_button_EditStyle.png";
5362 state: "clicked" 0.0;
5363 inherit: "default" 0.0;
5364 image.normal: "00_button_EditStyle_press.png";
5367 state: "disabled" 0.0;
5368 inherit: "default" 0.0;
5369 image.normal: "00_button_EditStyle_dim.png";
5372 part { name: "button_center_part";
5375 description { state: "default" 0.0;
5379 normal: "00_button_icon_plus.png";
5385 state: "clicked" 0.0;
5386 inherit: "default" 0.0;
5387 image.normal: "00_button_icon_plus_press.png";
5390 part { name: "over1";
5394 ignore_flags: ON_HOLD;
5395 description { state: "default" 0.0;
5401 part { name: "over2";
5404 description { state: "default" 0.0;
5405 color: 255 255 255 0;
5407 description { state: "clicked" 0.0;
5408 inherit: "default" 0.0;
5410 color: 255 255 255 0;
5413 part { name: "disabler";
5415 description { state: "default" 0.0;
5419 description { state: "disabled" 0.0;
5420 inherit: "default" 0.0;
5426 program { name: "button_click";
5427 signal: "mouse,down,1";
5429 action: SIGNAL_EMIT "elm,action,press" "";
5430 after: "button_click_anim";
5432 program { name: "button_click_anim";
5433 action: STATE_SET "clicked" 0.0;
5434 target: "button_image";
5435 target: "button_center_part";
5437 program { name: "button_unclick";
5438 signal: "mouse,up,1";
5440 action: SIGNAL_EMIT "elm,action,unpress" "";
5441 after: "button_unclick_anim";
5443 program { name: "button_unclick_anim";
5444 action: STATE_SET "default" 0.0;
5445 target: "button_image";
5446 target: "button_center_part";
5448 program { name: "button_click2";
5449 signal: "mouse,down,1";
5451 action: STATE_SET "clicked" 0.0;
5454 program { name: "button_unclick2";
5455 signal: "mouse,clicked,1";
5457 action: STATE_SET "default" 0.0;
5459 after: "button_unclick3";
5461 program { name: "button_unclick3";
5462 action: SIGNAL_EMIT "elm,action,click" "";
5464 program { name: "disable";
5465 signal: "elm,state,disabled";
5467 action: STATE_SET "disabled" 0.0;
5469 target: "button_image";
5471 program { name: "enable";
5472 signal: "elm,state,enabled";
5474 action: STATE_SET "default" 0.0;
5476 target: "button_image";
5481 ///////////////////////////////////////////////////////////////////////////////////////
5482 group { name: "elm/button/base/minus";
5484 image: "00_button_icon_minus.png" COMP;
5485 image: "00_button_icon_minus_press.png" COMP;
5486 image: "00_button_EditStyle.png" COMP;
5487 image: "00_button_EditStyle_press.png" COMP;
5488 image: "00_button_EditStyle_dim.png" COMP;
5491 part { name: "button_image";
5494 description { state: "default" 0.0;
5498 normal: "00_button_EditStyle.png";
5504 state: "clicked" 0.0;
5505 inherit: "default" 0.0;
5506 image.normal: "00_button_EditStyle_press.png";
5509 state: "disabled" 0.0;
5510 inherit: "default" 0.0;
5511 image.normal: "00_button_EditStyle_dim.png";
5514 part { name: "button_center_part";
5517 description { state: "default" 0.0;
5521 normal: "00_button_icon_minus.png";
5527 state: "clicked" 0.0;
5528 inherit: "default" 0.0;
5529 image.normal: "00_button_icon_minus_press.png";
5532 part { name: "over1";
5536 ignore_flags: ON_HOLD;
5537 description { state: "default" 0.0;
5541 part { name: "over2";
5544 description { state: "default" 0.0;
5545 color: 255 255 255 0;
5547 description { state: "clicked" 0.0;
5548 inherit: "default" 0.0;
5550 color: 255 255 255 0;
5553 part { name: "disabler";
5555 description { state: "default" 0.0;
5559 description { state: "disabled" 0.0;
5560 inherit: "default" 0.0;
5566 program { name: "button_click";
5567 signal: "mouse,down,1";
5569 action: SIGNAL_EMIT "elm,action,press" "";
5570 after: "button_click_anim";
5572 program { name: "button_click_anim";
5573 action: STATE_SET "clicked" 0.0;
5574 target: "button_image";
5575 target: "button_center_part";
5577 program { name: "button_unclick";
5578 signal: "mouse,up,1";
5580 action: SIGNAL_EMIT "elm,action,unpress" "";
5581 after: "button_unclick_anim";
5583 program { name: "button_unclick_anim";
5584 action: STATE_SET "default" 0.0;
5585 target: "button_image";
5586 target: "button_center_part";
5588 program { name: "button_click2";
5589 signal: "mouse,down,1";
5591 action: STATE_SET "clicked" 0.0;
5594 program { name: "button_unclick2";
5595 signal: "mouse,clicked,1";
5597 action: STATE_SET "default" 0.0;
5599 after: "button_unclick3";
5601 program { name: "button_unclick3";
5602 action: SIGNAL_EMIT "elm,action,click" "";
5604 program { name: "disable";
5605 signal: "elm,state,disabled";
5607 action: STATE_SET "disabled" 0.0;
5609 target: "button_image";
5611 program { name: "enable";
5612 signal: "elm,state,enabled";
5614 action: STATE_SET "default" 0.0;
5616 target: "button_image";
5621 group { name: "elm/button/base/minus/extended";
5623 image: "00_button_icon_minus.png" COMP;
5624 image: "00_button_icon_minus_press.png" COMP;
5625 image: "00_button_EditStyle.png" COMP;
5626 image: "00_button_EditStyle_press.png" COMP;
5627 image: "00_button_EditStyle_dim.png" COMP;
5630 part { name: "button_image";
5633 description { state: "default" 0.0;
5637 normal: "00_button_EditStyle.png";
5641 state: "clicked" 0.0;
5642 inherit: "default" 0.0;
5643 image.normal: "00_button_EditStyle_press.png";
5646 state: "disabled" 0.0;
5647 inherit: "default" 0.0;
5648 image.normal: "00_button_EditStyle_dim.png";
5651 part { name: "button_center_part";
5654 description { state: "default" 0.0;
5658 normal: "00_button_icon_minus.png";
5664 state: "clicked" 0.0;
5665 inherit: "default" 0.0;
5666 image.normal: "00_button_icon_minus_press.png";
5669 part { name: "over1";
5673 ignore_flags: ON_HOLD;
5674 description { state: "default" 0.0;
5680 part { name: "over2";
5683 description { state: "default" 0.0;
5684 color: 255 255 255 0;
5686 description { state: "clicked" 0.0;
5687 inherit: "default" 0.0;
5689 color: 255 255 255 0;
5692 part { name: "disabler";
5694 description { state: "default" 0.0;
5698 description { state: "disabled" 0.0;
5699 inherit: "default" 0.0;
5705 program { name: "button_click";
5706 signal: "mouse,down,1";
5708 action: SIGNAL_EMIT "elm,action,press" "";
5709 after: "button_click_anim";
5711 program { name: "button_click_anim";
5712 action: STATE_SET "clicked" 0.0;
5713 target: "button_image";
5714 target: "button_center_part";
5716 program { name: "button_unclick";
5717 signal: "mouse,up,1";
5719 action: SIGNAL_EMIT "elm,action,unpress" "";
5720 after: "button_unclick_anim";
5722 program { name: "button_unclick_anim";
5723 action: STATE_SET "default" 0.0;
5724 target: "button_image";
5725 target: "button_center_part";
5727 program { name: "button_click2";
5728 signal: "mouse,down,1";
5730 action: STATE_SET "clicked" 0.0;
5733 program { name: "button_unclick2";
5734 signal: "mouse,clicked,1";
5736 action: STATE_SET "default" 0.0;
5738 after: "button_unclick3";
5740 program { name: "button_unclick3";
5741 action: SIGNAL_EMIT "elm,action,click" "";
5743 program { name: "disable";
5744 signal: "elm,state,disabled";
5746 action: STATE_SET "disabled" 0.0;
5748 target: "button_image";
5750 program { name: "enable";
5751 signal: "elm,state,enabled";
5753 action: STATE_SET "default" 0.0;
5755 target: "button_image";
5760 ///////////////////////////////////////////////////////////////////////////////////////
5761 group { name: "elm/button/base/icon_expand";
5763 image: "00_button_icon_expand.png" COMP;
5764 image: "00_button_icon_expand_press.png" COMP;
5765 image: "00_button_EditStyle.png" COMP;
5766 image: "00_button_EditStyle_press.png" COMP;
5767 image: "00_button_EditStyle_dim.png" COMP;
5770 part { name: "button_image";
5773 description { state: "default" 0.0;
5777 normal: "00_button_EditStyle.png";
5783 state: "clicked" 0.0;
5784 inherit: "default" 0.0;
5785 image.normal: "00_button_EditStyle_press.png";
5788 state: "disabled" 0.0;
5789 inherit: "default" 0.0;
5790 image.normal: "00_button_EditStyle_dim.png";
5793 part { name: "button_center_part";
5796 description { state: "default" 0.0;
5800 normal: "00_button_icon_expand.png";
5806 state: "clicked" 0.0;
5807 inherit: "default" 0.0;
5808 image.normal: "00_button_icon_expand_press.png";
5811 part { name: "over1";
5815 ignore_flags: ON_HOLD;
5816 description { state: "default" 0.0;
5820 part { name: "over2";
5823 description { state: "default" 0.0;
5824 color: 255 255 255 0;
5826 description { state: "clicked" 0.0;
5827 inherit: "default" 0.0;
5829 color: 255 255 255 0;
5832 part { name: "disabler";
5834 description { state: "default" 0.0;
5838 description { state: "disabled" 0.0;
5839 inherit: "default" 0.0;
5845 program { name: "button_click";
5846 signal: "mouse,down,1";
5848 action: SIGNAL_EMIT "elm,action,press" "";
5849 after: "button_click_anim";
5851 program { name: "button_click_anim";
5852 action: STATE_SET "clicked" 0.0;
5853 target: "button_image";
5854 target: "button_center_part";
5856 program { name: "button_unclick";
5857 signal: "mouse,up,1";
5859 action: SIGNAL_EMIT "elm,action,unpress" "";
5860 after: "button_unclick_anim";
5862 program { name: "button_unclick_anim";
5863 action: STATE_SET "default" 0.0;
5864 target: "button_image";
5865 target: "button_center_part";
5867 program { name: "button_click2";
5868 signal: "mouse,down,1";
5870 action: STATE_SET "clicked" 0.0;
5873 program { name: "button_unclick2";
5874 signal: "mouse,clicked,1";
5876 action: STATE_SET "default" 0.0;
5878 after: "button_unclick3";
5880 program { name: "button_unclick3";
5881 action: SIGNAL_EMIT "elm,action,click" "";
5883 program { name: "disable";
5884 signal: "elm,state,disabled";
5886 action: STATE_SET "disabled" 0.0;
5888 target: "button_image";
5890 program { name: "enable";
5891 signal: "elm,state,enabled";
5893 action: STATE_SET "default" 0.0;
5895 target: "button_image";
5900 group { name: "elm/button/base/icon_expand/extended";
5902 image: "00_button_icon_expand.png" COMP;
5903 image: "00_button_icon_expand_press.png" COMP;
5904 image: "00_button_EditStyle.png" COMP;
5905 image: "00_button_EditStyle_press.png" COMP;
5906 image: "00_button_EditStyle_dim.png" COMP;
5909 part { name: "button_image";
5912 description { state: "default" 0.0;
5916 normal: "00_button_EditStyle.png";
5920 state: "clicked" 0.0;
5921 inherit: "default" 0.0;
5922 image.normal: "00_button_EditStyle_press.png";
5925 state: "disabled" 0.0;
5926 inherit: "default" 0.0;
5927 image.normal: "00_button_EditStyle_dim.png";
5930 part { name: "button_center_part";
5933 description { state: "default" 0.0;
5937 normal: "00_button_icon_expand.png";
5943 state: "clicked" 0.0;
5944 inherit: "default" 0.0;
5945 image.normal: "00_button_icon_expand_press.png";
5948 part { name: "over1";
5952 ignore_flags: ON_HOLD;
5953 description { state: "default" 0.0;
5959 part { name: "over2";
5962 description { state: "default" 0.0;
5963 color: 255 255 255 0;
5965 description { state: "clicked" 0.0;
5966 inherit: "default" 0.0;
5968 color: 255 255 255 0;
5971 part { name: "disabler";
5973 description { state: "default" 0.0;
5977 description { state: "disabled" 0.0;
5978 inherit: "default" 0.0;
5984 program { name: "button_click";
5985 signal: "mouse,down,1";
5987 action: SIGNAL_EMIT "elm,action,press" "";
5988 after: "button_click_anim";
5990 program { name: "button_click_anim";
5991 action: STATE_SET "clicked" 0.0;
5992 target: "button_image";
5993 target: "button_center_part";
5995 program { name: "button_unclick";
5996 signal: "mouse,up,1";
5998 action: SIGNAL_EMIT "elm,action,unpress" "";
5999 after: "button_unclick_anim";
6001 program { name: "button_unclick_anim";
6002 action: STATE_SET "default" 0.0;
6003 target: "button_image";
6004 target: "button_center_part";
6006 program { name: "button_click2";
6007 signal: "mouse,down,1";
6009 action: STATE_SET "clicked" 0.0;
6012 program { name: "button_unclick2";
6013 signal: "mouse,clicked,1";
6015 action: STATE_SET "default" 0.0;
6017 after: "button_unclick3";
6019 program { name: "button_unclick3";
6020 action: SIGNAL_EMIT "elm,action,click" "";
6022 program { name: "disable";
6023 signal: "elm,state,disabled";
6025 action: STATE_SET "disabled" 0.0;
6027 target: "button_image";
6029 program { name: "enable";
6030 signal: "elm,state,enabled";
6032 action: STATE_SET "default" 0.0;
6034 target: "button_image";
6039 ///////////////////////////////////////////////////////////////////////////////////////
6040 group { name: "elm/button/base/rename";
6042 image: "00_button_rename.png" COMP;
6043 image: "00_button_rename_press.png" COMP;
6044 image: "00_button_rename_dim.png" COMP;
6047 part { name: "button_image";
6050 description { state: "default" 0.0;
6054 normal: "00_button_rename.png";
6058 state: "clicked" 0.0;
6059 inherit: "default" 0.0;
6060 image.normal: "00_button_rename_press.png";
6063 state: "disabled" 0.0;
6064 inherit: "default" 0.0;
6065 image.normal: "00_button_rename_dim.png";
6068 part { name: "over1";
6072 ignore_flags: ON_HOLD;
6073 description { state: "default" 0.0;
6077 part { name: "over2";
6080 description { state: "default" 0.0;
6081 color: 255 255 255 0;
6083 description { state: "clicked" 0.0;
6084 inherit: "default" 0.0;
6086 color: 255 255 255 0;
6089 part { name: "disabler";
6091 description { state: "default" 0.0;
6095 description { state: "disabled" 0.0;
6096 inherit: "default" 0.0;
6102 program { name: "button_click";
6103 signal: "mouse,down,1";
6105 action: SIGNAL_EMIT "elm,action,press" "";
6106 after: "button_click_anim";
6108 program { name: "button_click_anim";
6109 action: STATE_SET "clicked" 0.0;
6110 target: "button_image";
6112 program { name: "button_unclick";
6113 signal: "mouse,up,1";
6115 action: SIGNAL_EMIT "elm,action,unpress" "";
6116 after: "button_unclick_anim";
6118 program { name: "button_unclick_anim";
6119 action: STATE_SET "default" 0.0;
6120 target: "button_image";
6122 program { name: "button_click2";
6123 signal: "mouse,down,1";
6125 action: STATE_SET "clicked" 0.0;
6128 program { name: "button_unclick2";
6129 signal: "mouse,clicked,1";
6131 action: STATE_SET "default" 0.0;
6133 after: "button_unclick3";
6135 program { name: "button_unclick3";
6136 action: SIGNAL_EMIT "elm,action,click" "";
6138 program { name: "disable";
6139 signal: "elm,state,disabled";
6141 action: STATE_SET "disabled" 0.0;
6143 target: "button_image";
6145 program { name: "enable";
6146 signal: "elm,state,enabled";
6148 action: STATE_SET "default" 0.0;
6150 target: "button_image";
6155 group { name: "elm/button/base/rename/extended";
6157 image: "00_button_rename.png" COMP;
6158 image: "00_button_rename_press.png" COMP;
6159 image: "00_button_rename_dim.png" COMP;
6162 part { name: "button_image";
6165 description { state: "default" 0.0;
6169 normal: "00_button_rename.png";
6173 state: "clicked" 0.0;
6174 inherit: "default" 0.0;
6175 image.normal: "00_button_rename_press.png";
6178 state: "disabled" 0.0;
6179 inherit: "default" 0.0;
6180 image.normal: "00_button_rename_dim.png";
6183 part { name: "over1";
6187 ignore_flags: ON_HOLD;
6188 description { state: "default" 0.0;
6194 part { name: "over2";
6197 description { state: "default" 0.0;
6198 color: 255 255 255 0;
6200 description { state: "clicked" 0.0;
6201 inherit: "default" 0.0;
6203 color: 255 255 255 0;
6206 part { name: "disabler";
6208 description { state: "default" 0.0;
6212 description { state: "disabled" 0.0;
6213 inherit: "default" 0.0;
6219 program { name: "button_click";
6220 signal: "mouse,down,1";
6222 action: SIGNAL_EMIT "elm,action,press" "";
6223 after: "button_click_anim";
6225 program { name: "button_click_anim";
6226 action: STATE_SET "clicked" 0.0;
6227 target: "button_image";
6229 program { name: "button_unclick";
6230 signal: "mouse,up,1";
6232 action: SIGNAL_EMIT "elm,action,unpress" "";
6233 after: "button_unclick_anim";
6235 program { name: "button_unclick_anim";
6236 action: STATE_SET "default" 0.0;
6237 target: "button_image";
6239 program { name: "button_click2";
6240 signal: "mouse,down,1";
6242 action: STATE_SET "clicked" 0.0;
6245 program { name: "button_unclick2";
6246 signal: "mouse,clicked,1";
6248 action: STATE_SET "default" 0.0;
6250 after: "button_unclick3";
6252 program { name: "button_unclick3";
6253 action: SIGNAL_EMIT "elm,action,click" "";
6255 program { name: "disable";
6256 signal: "elm,state,disabled";
6258 action: STATE_SET "disabled" 0.0;
6260 target: "button_image";
6262 program { name: "enable";
6263 signal: "elm,state,enabled";
6265 action: STATE_SET "default" 0.0;
6267 target: "button_image";
6272 ///////////////////////////////////////////////////////////////////////////////////////
6273 group { name: "elm/button/base/warning";
6275 image: "00_button_warning.png" COMP;
6276 image: "00_button_warning_press.png" COMP;
6277 image: "00_button_warning_dim.png" COMP;
6280 part { name: "button_image";
6283 description { state: "default" 0.0;
6287 normal: "00_button_warning.png";
6291 state: "clicked" 0.0;
6292 inherit: "default" 0.0;
6293 image.normal: "00_button_warning_press.png";
6296 state: "disabled" 0.0;
6297 inherit: "default" 0.0;
6298 image.normal: "00_button_warning_dim.png";
6301 part { name: "over1";
6305 ignore_flags: ON_HOLD;
6306 description { state: "default" 0.0;
6310 part { name: "over2";
6313 description { state: "default" 0.0;
6314 color: 255 255 255 0;
6316 description { state: "clicked" 0.0;
6317 inherit: "default" 0.0;
6319 color: 255 255 255 0;
6322 part { name: "disabler";
6324 description { state: "default" 0.0;
6328 description { state: "disabled" 0.0;
6329 inherit: "default" 0.0;
6335 program { name: "button_click";
6336 signal: "mouse,down,1";
6338 action: SIGNAL_EMIT "elm,action,press" "";
6339 after: "button_click_anim";
6341 program { name: "button_click_anim";
6342 action: STATE_SET "clicked" 0.0;
6343 target: "button_image";
6345 program { name: "button_unclick";
6346 signal: "mouse,up,1";
6348 action: SIGNAL_EMIT "elm,action,unpress" "";
6349 after: "button_unclick_anim";
6351 program { name: "button_unclick_anim";
6352 action: STATE_SET "default" 0.0;
6353 target: "button_image";
6355 program { name: "button_click2";
6356 signal: "mouse,down,1";
6358 action: STATE_SET "clicked" 0.0;
6361 program { name: "button_unclick2";
6362 signal: "mouse,clicked,1";
6364 action: STATE_SET "default" 0.0;
6366 after: "button_unclick3";
6368 program { name: "button_unclick3";
6369 action: SIGNAL_EMIT "elm,action,click" "";
6371 program { name: "disable";
6372 signal: "elm,state,disabled";
6374 action: STATE_SET "disabled" 0.0;
6376 target: "button_image";
6378 program { name: "enable";
6379 signal: "elm,state,enabled";
6381 action: STATE_SET "default" 0.0;
6383 target: "button_image";
6388 group { name: "elm/button/base/warning/extended";
6390 image: "00_button_warning.png" COMP;
6391 image: "00_button_warning_press.png" COMP;
6392 image: "00_button_warning_dim.png" COMP;
6395 part { name: "button_image";
6398 description { state: "default" 0.0;
6402 normal: "00_button_warning.png";
6406 state: "clicked" 0.0;
6407 inherit: "default" 0.0;
6408 image.normal: "00_button_warning_press.png";
6411 state: "disabled" 0.0;
6412 inherit: "default" 0.0;
6413 image.normal: "00_button_warning_dim.png";
6416 part { name: "over1";
6420 ignore_flags: ON_HOLD;
6421 description { state: "default" 0.0;
6427 part { name: "over2";
6430 description { state: "default" 0.0;
6431 color: 255 255 255 0;
6433 description { state: "clicked" 0.0;
6434 inherit: "default" 0.0;
6436 color: 255 255 255 0;
6439 part { name: "disabler";
6441 description { state: "default" 0.0;
6445 description { state: "disabled" 0.0;
6446 inherit: "default" 0.0;
6452 program { name: "button_click";
6453 signal: "mouse,down,1";
6455 action: SIGNAL_EMIT "elm,action,press" "";
6456 after: "button_click_anim";
6458 program { name: "button_click_anim";
6459 action: STATE_SET "clicked" 0.0;
6460 target: "button_image";
6462 program { name: "button_unclick";
6463 signal: "mouse,up,1";
6465 action: SIGNAL_EMIT "elm,action,unpress" "";
6466 after: "button_unclick_anim";
6468 program { name: "button_unclick_anim";
6469 action: STATE_SET "default" 0.0;
6470 target: "button_image";
6472 program { name: "button_click2";
6473 signal: "mouse,down,1";
6475 action: STATE_SET "clicked" 0.0;
6478 program { name: "button_unclick2";
6479 signal: "mouse,clicked,1";
6481 action: STATE_SET "default" 0.0;
6483 after: "button_unclick3";
6485 program { name: "button_unclick3";
6486 action: SIGNAL_EMIT "elm,action,click" "";
6488 program { name: "disable";
6489 signal: "elm,state,disabled";
6491 action: STATE_SET "disabled" 0.0;
6493 target: "button_image";
6495 program { name: "enable";
6496 signal: "elm,state,enabled";
6498 action: STATE_SET "default" 0.0;
6500 target: "button_image";
6505 ///////////////////////////////////////////////////////////////////////////////////////
6506 group { name: "elm/button/base/info";
6508 image: "00_button_info.png" COMP;
6509 image: "00_button_info_press.png" COMP;
6510 image: "00_button_info_dim.png" COMP;
6513 part { name: "button_image";
6516 description { state: "default" 0.0;
6520 normal: "00_button_info.png";
6524 state: "clicked" 0.0;
6525 inherit: "default" 0.0;
6526 image.normal: "00_button_info_press.png";
6529 state: "disabled" 0.0;
6530 inherit: "default" 0.0;
6531 image.normal: "00_button_info_dim.png";
6534 part { name: "over1";
6538 ignore_flags: ON_HOLD;
6539 description { state: "default" 0.0;
6543 part { name: "over2";
6546 description { state: "default" 0.0;
6547 color: 255 255 255 0;
6549 description { state: "clicked" 0.0;
6550 inherit: "default" 0.0;
6552 color: 255 255 255 0;
6555 part { name: "disabler";
6557 description { state: "default" 0.0;
6561 description { state: "disabled" 0.0;
6562 inherit: "default" 0.0;
6568 program { name: "button_click";
6569 signal: "mouse,down,1";
6571 action: SIGNAL_EMIT "elm,action,press" "";
6572 after: "button_click_anim";
6574 program { name: "button_click_anim";
6575 action: STATE_SET "clicked" 0.0;
6576 target: "button_image";
6578 program { name: "button_unclick";
6579 signal: "mouse,up,1";
6581 action: SIGNAL_EMIT "elm,action,unpress" "";
6582 after: "button_unclick_anim";
6584 program { name: "button_unclick_anim";
6585 action: STATE_SET "default" 0.0;
6586 target: "button_image";
6588 program { name: "button_click2";
6589 signal: "mouse,down,1";
6591 action: STATE_SET "clicked" 0.0;
6594 program { name: "button_unclick2";
6595 signal: "mouse,clicked,1";
6597 action: STATE_SET "default" 0.0;
6599 after: "button_unclick3";
6601 program { name: "button_unclick3";
6602 action: SIGNAL_EMIT "elm,action,click" "";
6604 program { name: "disable";
6605 signal: "elm,state,disabled";
6607 action: STATE_SET "disabled" 0.0;
6609 target: "button_image";
6611 program { name: "enable";
6612 signal: "elm,state,enabled";
6614 action: STATE_SET "default" 0.0;
6616 target: "button_image";
6621 group { name: "elm/button/base/info/extended";
6623 image: "00_button_info.png" COMP;
6624 image: "00_button_info_press.png" COMP;
6625 image: "00_button_info_dim.png" COMP;
6628 part { name: "button_image";
6631 description { state: "default" 0.0;
6635 normal: "00_button_info.png";
6639 state: "clicked" 0.0;
6640 inherit: "default" 0.0;
6641 image.normal: "00_button_info_press.png";
6644 state: "disabled" 0.0;
6645 inherit: "default" 0.0;
6646 image.normal: "00_button_info_dim.png";
6649 part { name: "over1";
6653 ignore_flags: ON_HOLD;
6654 description { state: "default" 0.0;
6660 part { name: "over2";
6663 description { state: "default" 0.0;
6664 color: 255 255 255 0;
6666 description { state: "clicked" 0.0;
6667 inherit: "default" 0.0;
6669 color: 255 255 255 0;
6672 part { name: "disabler";
6674 description { state: "default" 0.0;
6678 description { state: "disabled" 0.0;
6679 inherit: "default" 0.0;
6685 program { name: "button_click";
6686 signal: "mouse,down,1";
6688 action: SIGNAL_EMIT "elm,action,press" "";
6689 after: "button_click_anim";
6691 program { name: "button_click_anim";
6692 action: STATE_SET "clicked" 0.0;
6693 target: "button_image";
6695 program { name: "button_unclick";
6696 signal: "mouse,up,1";
6698 action: SIGNAL_EMIT "elm,action,unpress" "";
6699 after: "button_unclick_anim";
6701 program { name: "button_unclick_anim";
6702 action: STATE_SET "default" 0.0;
6703 target: "button_image";
6705 program { name: "button_click2";
6706 signal: "mouse,down,1";
6708 action: STATE_SET "clicked" 0.0;
6711 program { name: "button_unclick2";
6712 signal: "mouse,clicked,1";
6714 action: STATE_SET "default" 0.0;
6716 after: "button_unclick3";
6718 program { name: "button_unclick3";
6719 action: SIGNAL_EMIT "elm,action,click" "";
6721 program { name: "disable";
6722 signal: "elm,state,disabled";
6724 action: STATE_SET "disabled" 0.0;
6726 target: "button_image";
6728 program { name: "enable";
6729 signal: "elm,state,enabled";
6731 action: STATE_SET "default" 0.0;
6733 target: "button_image";
6738 ///////////////////////////////////////////////////////////////////////////////////////
6739 group { name: "elm/button/base/call";
6741 image: "00_button_call.png" COMP;
6742 image: "00_button_call_press.png" COMP;
6743 image: "00_button_call_dim.png" COMP;
6746 part { name: "button_image";
6749 description { state: "default" 0.0;
6753 normal: "00_button_call.png";
6757 state: "clicked" 0.0;
6758 inherit: "default" 0.0;
6759 image.normal: "00_button_call_press.png";
6762 state: "disabled" 0.0;
6763 inherit: "default" 0.0;
6764 image.normal: "00_button_call_dim.png";
6767 part { name: "over1";
6771 ignore_flags: ON_HOLD;
6772 description { state: "default" 0.0;
6776 part { name: "over2";
6779 description { state: "default" 0.0;
6780 color: 255 255 255 0;
6782 description { state: "clicked" 0.0;
6783 inherit: "default" 0.0;
6785 color: 255 255 255 0;
6788 part { name: "disabler";
6790 description { state: "default" 0.0;
6794 description { state: "disabled" 0.0;
6795 inherit: "default" 0.0;
6801 program { name: "button_click";
6802 signal: "mouse,down,1";
6804 action: SIGNAL_EMIT "elm,action,press" "";
6805 after: "button_click_anim";
6807 program { name: "button_click_anim";
6808 action: STATE_SET "clicked" 0.0;
6809 target: "button_image";
6811 program { name: "button_unclick";
6812 signal: "mouse,up,1";
6814 action: SIGNAL_EMIT "elm,action,unpress" "";
6815 after: "button_unclick_anim";
6817 program { name: "button_unclick_anim";
6818 action: STATE_SET "default" 0.0;
6819 target: "button_image";
6821 program { name: "button_click2";
6822 signal: "mouse,down,1";
6824 action: STATE_SET "clicked" 0.0;
6827 program { name: "button_unclick2";
6828 signal: "mouse,clicked,1";
6830 action: STATE_SET "default" 0.0;
6832 after: "button_unclick3";
6834 program { name: "button_unclick3";
6835 action: SIGNAL_EMIT "elm,action,click" "";
6837 program { name: "disable";
6838 signal: "elm,state,disabled";
6840 action: STATE_SET "disabled" 0.0;
6842 target: "button_image";
6844 program { name: "enable";
6845 signal: "elm,state,enabled";
6847 action: STATE_SET "default" 0.0;
6849 target: "button_image";
6854 ///////////////////////////////////////////////////////////////////////////////////////
6855 group { name: "elm/button/base/text_only/multiline";
6857 image: "00_button_04_normal.png" COMP;
6858 image: "00_button_04_press.png" COMP;
6859 image: "00_button_04_dim.png" COMP;
6862 public button_state = 0; //0:enabled, 1: disabled
6865 style { name: "btn_multiline_style";
6866 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=char";
6869 tag: "hilight" "+ font=SLP:style=Bold";
6870 tag: "b" "+ font=SLP:style=Bold";
6875 part { name: "button_image";
6878 description { state: "default" 0.0;
6881 normal: "00_button_04_normal.png";
6886 description { state: "clicked" 0.0;
6887 inherit: "default" 0.0;
6888 image.normal: "00_button_04_press.png";
6890 description { state: "disabled" 0.0;
6891 inherit: "default" 0.0;
6892 image.normal: "00_button_04_dim.png";
6894 description { state: "focused" 0.0;
6895 inherit: "default" 0.0;
6896 image.normal: "00_button_04_press.png";
6900 name: "padding_left";
6904 description { state: "default" 0.0;
6906 rel1.relative: 0.0 0.0;
6907 rel2.relative: 0.0 1.0;
6914 name: "padding_right";
6918 description { state: "default" 0.0;
6920 rel1.relative: 1.0 0.0;
6921 rel2.relative: 1.0 1.0;
6928 name: "padding_top";
6932 description { state: "default" 0.0;
6934 rel1.relative: 0.0 0.0;
6935 rel2.relative: 1.0 0.0;
6942 name: "padding_bottom";
6946 description { state: "default" 0.0;
6948 rel1.relative: 0.0 1.0;
6949 rel2.relative: 1.0 1.0;
6960 description { state: "default" 0.0;
6964 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
6965 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
6971 name: "padding_icon_text";
6975 description { state: "default" 0.0; //when only icon or no icon is there
6977 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6978 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6983 description { state: "icononly" 0.0;
6984 inherit: "default" 0.0;
6986 description { state: "visible" 0.0; //when icon is visible
6988 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6989 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6995 part { name: "elm.swallow.content";
6998 description { state: "default" 0.0;
7001 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7002 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7005 description { state: "visible" 0.0;
7009 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7010 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7012 aspect_preference: VERTICAL;
7014 description { state: "icononly" 0.0;;
7017 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7018 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7021 aspect_preference: VERTICAL;
7024 part { name: "elm.text";
7029 description { state: "default" 0.0;
7031 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
7032 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
7034 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
7035 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
7037 style: "btn_multiline_style";
7042 description { state: "visible" 0.0;
7043 inherit: "default" 0.0;
7047 description { state: "clicked" 0.0;
7048 inherit: "default" 0.0;
7051 color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
7052 color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
7054 description { state: "disabled" 0.0;
7055 inherit: "default" 0.0;
7059 description { state: "disabled_visible" 0.0;
7060 inherit: "default" 0.0;
7061 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
7062 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
7066 description { state: "focused" 0.0;
7067 inherit: "default" 0.0;
7070 color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
7071 color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
7074 part { name: "over2";
7078 ignore_flags: ON_HOLD;
7079 description { state: "default" 0.0;
7082 description { state: "disabled" 0.0;
7083 inherit: "default" 0.0;
7087 part { name: "over3";
7091 description { state: "default" 0.0;
7094 description { state: "clicked" 0.0;
7095 inherit: "default" 0.0;
7099 part { name: "disabler";
7101 description { state: "default" 0.0;
7105 description { state: "disabled" 0.0;
7106 inherit: "default" 0.0;
7112 program { name: "button_click";
7113 signal: "mouse,down,1";
7115 action: SIGNAL_EMIT "elm,action,press" "";
7116 after: "button_click_anim";
7118 program { name: "button_click_anim";
7119 action: STATE_SET "clicked" 0.0;
7120 target: "button_image";
7121 after: "text_clicked";
7123 program { name: "text_clicked";
7127 get_state(PART:"elm.text", st, 30, vl);
7128 if (!strcmp(st, "visible"))
7129 set_state(PART:"elm.text", "clicked", 0.0);
7132 program { name: "button_unpress";
7133 action: SIGNAL_EMIT "elm,action,unpress" "";
7135 program { name: "button_mouseout_clicked";
7136 signal: "mouse,up,1";
7141 get_state(PART:"elm.swallow.content", st, 30, vl);
7142 if (strcmp(st, "icononly"))
7144 emit("elm,action,default,text,set", "");
7145 set_state(PART:"elm.text", "visible", 0.0);
7147 if(get_int(button_state) !=1)
7148 set_state(PART:"button_image", "default", 0.0);
7150 after: button_unpress;
7152 program { name: "button_click2";
7153 signal: "mouse,down,1";
7155 action: STATE_SET "clicked" 0.0;
7158 program { name: "button_unclick2";
7159 signal: "mouse,clicked,1";
7161 action: STATE_SET "default" 0.0;
7164 program { name: "button_unclick3";
7165 signal: "mouse,clicked,1";
7167 action: SIGNAL_EMIT "elm,action,click" "";
7169 program { name: "text_show";
7170 signal: "elm,state,text,visible";
7175 get_state(PART:"elm.swallow.content", st, 30, vl);
7176 if (!strcmp(st, "icononly"))
7178 set_state(PART:"elm.swallow.content", "visible", 0.0);
7179 set_state(PART:"padding_icon_text", "visible", 0.0);
7181 set_state(PART:"elm.text", "visible", 0.0);
7184 program { name: "text_hide";
7185 signal: "elm,state,text,hidden";
7190 get_state(PART:"elm.swallow.content", st, 30, vl);
7191 if (!strcmp(st, "visible"))
7193 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7194 set_state(PART:"padding_icon_text", "icononly", 0.0);
7196 set_state(PART:"elm.text", "default", 0.0);
7199 program { name: "icon_show";
7200 signal: "elm,state,icon,visible";
7205 get_state(PART:"elm.text", st, 30, vl);
7206 if (!strcmp(st, "visible"))
7208 set_state(PART:"elm.swallow.content", "visible", 0.0);
7209 set_state(PART:"padding_icon_text", "visible", 0.0);
7213 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7214 set_state(PART:"padding_icon_text", "icononly", 0.0);
7218 program { name: "icon_hide";
7219 signal: "elm,state,icon,hidden";
7221 action: STATE_SET "default" 0.0;
7222 target: "elm.swallow.content";
7224 program { name: "disable";
7225 signal: "elm,state,disabled";
7227 action: STATE_SET "disabled" 0.0;
7228 target: "button_image";
7231 after: "disable_text";
7233 program { name: "disable_text";
7237 get_state(PART:"elm.text", st, 30, vl);
7238 if (!strcmp(st, "visible"))
7239 set_state(PART:"elm.text", "disabled_visible", 0.0);
7241 set_state(PART:"elm.text", "disabled", 0.0);
7242 set_int(button_state, 1);
7245 program { name: "enable";
7246 signal: "elm,state,enabled";
7248 action: STATE_SET "default" 0.0;
7249 target: "button_image";
7252 after: "enable_text";
7254 program { name: "enable_text";
7258 get_state(PART:"elm.text", st, 30, vl);
7259 if (!strcmp(st, "disabled_visible"))
7260 set_state(PART:"elm.text", "visible", 0.0);
7262 set_state(PART:"elm.text", "default", 0.0);
7263 set_int(button_state, 0);
7266 program { name: "focused";
7267 //signal: "elm,action,focus";
7269 action: STATE_SET "focused" 0.0;
7270 target: "button_image";
7273 program { name: "unfocused";
7274 //signal: "elm,action,unfocus";
7276 action: STATE_SET "default" 0.0;
7277 target: "button_image";
7278 after: "unfocus_text";
7280 program { name: "unfocus_text";
7281 action: STATE_SET "visible" 0.0;
7287 ///////////////////////////////////////////////////////////////////////////////////////
7288 group { name: "elm/button/base/icon_only/default";
7290 image: "00_button_03_normal.png" COMP;
7291 image: "00_button_03_press.png" COMP;
7292 image: "00_button_03_focus.png" COMP;
7293 image: "00_button_03_dim.png" COMP;
7296 public button_state = 0; //0:enabled, 1: disabled
7299 part { name: "button_image";
7302 description { state: "default" 0.0;
7306 normal: "00_button_03_normal.png";
7311 description { state: "clicked" 0.0;
7312 inherit: "default" 0.0;
7313 image.normal: "00_button_03_press.png";
7315 description { state: "disabled" 0.0;
7316 inherit: "default" 0.0;
7317 image.normal: "00_button_03_dim.png";
7319 description { state: "focused" 0.0;
7320 inherit: "default" 0.0;
7321 image.normal: "00_button_03_focus.png";
7325 name: "padding_left";
7329 description { state: "default" 0.0;
7331 rel1.relative: 0.0 0.0;
7332 rel2.relative: 0.0 1.0;
7339 name: "padding_right";
7343 description { state: "default" 0.0;
7345 rel1.relative: 1.0 0.0;
7346 rel2.relative: 1.0 1.0;
7353 name: "padding_top";
7357 description { state: "default" 0.0;
7359 rel1.relative: 0.0 0.0;
7360 rel2.relative: 1.0 0.0;
7367 name: "padding_bottom";
7371 description { state: "default" 0.0;
7373 rel1.relative: 0.0 1.0;
7374 rel2.relative: 1.0 1.0;
7380 part { name: "elm.swallow.content";
7384 description { state: "default" 0.0;
7388 aspect_preference: VERTICAL;
7389 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7390 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7393 description { state: "visible" 0.0;
7394 inherit: "default" 0.0;
7398 part { name: "over1";
7401 ignore_flags: ON_HOLD;
7402 description { state: "default" 0.0;
7403 rel1.to: "button_image";
7404 rel2.to: "button_image";
7406 description { state: "disabled" 0.0;
7407 inherit: "default" 0.0;
7411 part { name: "over2";
7414 description { state: "default" 0.0;
7415 rel1.to: "button_image";
7416 rel2.to: "button_image";
7419 description { state: "clicked" 0.0;
7420 inherit: "default" 0.0;
7425 part { name: "disabler";
7427 description { state: "default" 0.0;
7428 rel1.to: "button_image";
7429 rel2.to: "button_image";
7433 description { state: "disabled" 0.0;
7434 inherit: "default" 0.0;
7440 program { name: "button_click";
7441 signal: "mouse,down,1";
7443 action: SIGNAL_EMIT "elm,action,press" "";
7444 after: "button_click_anim";
7446 program { name: "button_click_anim";
7447 action: STATE_SET "clicked" 0.0;
7448 target: "button_image";
7450 program { name: "button_unclick";
7451 signal: "mouse,up,1";
7453 action: SIGNAL_EMIT "elm,action,unpress" "";
7454 after: "button_unclick_anim";
7456 program { name: "button_unclick_anim";
7457 action: STATE_SET "default" 0.0;
7458 target: "button_image";
7460 program { name: "button_click2";
7461 signal: "mouse,down,1";
7463 action: STATE_SET "clicked" 0.0;
7466 program { name: "button_unclick2";
7467 signal: "mouse,clicked,1";
7469 action: STATE_SET "default" 0.0;
7471 after: "button_unclick3";
7473 program { name: "button_unclick3";
7474 action: SIGNAL_EMIT "elm,action,click" "";
7476 program { name: "disable";
7477 signal: "elm,state,disabled";
7479 action: STATE_SET "disabled" 0.0;
7480 target: "button_image";
7483 after : "state_set_disable";
7485 program { name: "state_set_disable";
7487 set_int(button_state, 1);
7490 program { name: "enable";
7491 signal: "elm,state,enabled";
7493 action: STATE_SET "default" 0.0;
7494 target: "button_image";
7497 after : "state_set_enable";
7499 program { name: "state_set_enable";
7501 set_int(button_state, 0);
7504 program { name: "icon_show";
7505 signal: "elm,state,icon,visible";
7507 action: STATE_SET "visible" 0.0;
7508 target: "elm.swallow.content";
7510 program { name: "icon_hide";
7511 signal: "elm,state,icon,hidden";
7513 action: STATE_SET "default" 0.0;
7514 target: "elm.swallow.content";
7516 program { name: "focused";
7517 //signal: "elm,action,focus";
7519 action: STATE_SET "focused" 0.0;
7520 target: "button_image";
7522 program { name: "unfocused";
7523 //signal: "elm,action,unfocus";
7525 action: STATE_SET "default" 0.0;
7526 target: "button_image";
7531 ///////////////////////////////////////////////////////////////////////////////////////
7532 group { name: "elm/button/base/dark";
7533 alias: "elm/button/base/sound_dark";
7534 alias: "elm/button/base/sound_haptic_multiline";
7536 image: "00_button_02_normal.png" COMP;
7537 image: "00_button_02_press.png" COMP;
7538 image: "00_button_02_focus.png" COMP;
7541 public button_state = 0; //0:enabled, 1: disabled
7544 part { name: "button_image";
7547 description { state: "default" 0.0;
7550 normal: "00_button_02_normal.png";
7555 description { state: "clicked" 0.0;
7556 inherit: "default" 0.0;
7557 image.normal: "00_button_02_press.png";
7559 description { state: "disabled" 0.0;
7560 inherit: "default" 0.0;
7562 description { state: "focused" 0.0;
7563 inherit: "default" 0.0;
7564 image.normal: "00_button_02_focus.png";
7568 name: "padding_left";
7572 description { state: "default" 0.0;
7574 rel1.relative: 0.0 0.0;
7575 rel2.relative: 0.0 1.0;
7582 name: "padding_right";
7586 description { state: "default" 0.0;
7588 rel1.relative: 1.0 0.0;
7589 rel2.relative: 1.0 1.0;
7596 name: "padding_top";
7600 description { state: "default" 0.0;
7602 rel1.relative: 0.0 0.0;
7603 rel2.relative: 1.0 0.0;
7610 name: "padding_bottom";
7614 description { state: "default" 0.0;
7616 rel1.relative: 0.0 1.0;
7617 rel2.relative: 1.0 1.0;
7628 description { state: "default" 0.0;
7632 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
7633 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
7639 name: "padding_icon_text";
7643 description { state: "default" 0.0; //when only icon or no icon is there
7645 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7646 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7651 description { state: "icononly" 0.0;
7652 inherit: "default" 0.0;
7654 description { state: "visible" 0.0; //when icon is visible
7656 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7657 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7663 part { name: "elm.swallow.content";
7666 description { state: "default" 0.0;
7669 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7670 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7673 description { state: "visible" 0.0;
7677 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7678 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7680 aspect_preference: VERTICAL;
7682 description { state: "icononly" 0.0;;
7685 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7686 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7689 aspect_preference: VERTICAL;
7692 part { name: "elm.text";
7697 description { state: "default" 0.0;
7699 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
7700 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
7702 color: 255 255 255 255;
7705 font: "SLP:style=Medium";
7712 description { state: "visible" 0.0;
7713 inherit: "default" 0.0;
7717 description { state: "clicked" 0.0;
7718 inherit: "default" 0.0;
7721 color: 255 255 255 255;
7724 description { state: "disabled" 0.0;
7725 inherit: "default" 0.0;
7729 description { state: "disabled_visible" 0.0;
7730 inherit: "default" 0.0;
7735 description { state: "focused" 0.0;
7736 inherit: "default" 0.0;
7739 color: 255 255 255 255;
7743 part { name: "over2";
7747 ignore_flags: ON_HOLD;
7748 description { state: "default" 0.0;
7751 description { state: "disabled" 0.0;
7752 inherit: "default" 0.0;
7756 part { name: "over3";
7760 description { state: "default" 0.0;
7763 description { state: "clicked" 0.0;
7764 inherit: "default" 0.0;
7768 part { name: "disabler";
7770 description { state: "default" 0.0;
7774 description { state: "disabled" 0.0;
7775 inherit: "default" 0.0;
7781 program { name: "button_click";
7782 signal: "mouse,down,1";
7784 action: SIGNAL_EMIT "elm,action,press" "";
7785 after: "button_click_anim";
7787 program { name: "button_click_anim";
7788 action: STATE_SET "clicked" 0.0;
7789 target: "button_image";
7790 after: "text_clicked";
7792 program { name: "text_clicked";
7796 get_state(PART:"elm.text", st, 30, vl);
7797 if (!strcmp(st, "visible"))
7798 set_state(PART:"elm.text", "clicked", 0.0);
7801 program { name: "button_unpress";
7802 action: SIGNAL_EMIT "elm,action,unpress" "";
7804 program { name: "button_mouseout_clicked";
7805 signal: "mouse,up,1";
7810 get_state(PART:"elm.swallow.content", st, 30, vl);
7811 if (strcmp(st, "icononly"))
7813 emit("elm,action,default,text,set", "");
7814 set_state(PART:"elm.text", "visible", 0.0);
7816 if(get_int(button_state) !=1)
7817 set_state(PART:"button_image", "default", 0.0);
7819 after: button_unpress;
7821 program { name: "button_click2";
7822 signal: "mouse,down,1";
7824 action: STATE_SET "clicked" 0.0;
7827 program { name: "button_unclick2";
7828 signal: "mouse,clicked,1";
7830 action: STATE_SET "default" 0.0;
7833 program { name: "button_unclick3";
7834 signal: "mouse,clicked,1";
7836 action: SIGNAL_EMIT "elm,action,click" "";
7838 program { name: "text_show";
7839 signal: "elm,state,text,visible";
7844 get_state(PART:"elm.swallow.content", st, 30, vl);
7845 if (!strcmp(st, "icononly"))
7847 set_state(PART:"elm.swallow.content", "visible", 0.0);
7848 set_state(PART:"padding_icon_text", "visible", 0.0);
7850 set_state(PART:"elm.text", "visible", 0.0);
7853 program { name: "text_hide";
7854 signal: "elm,state,text,hidden";
7859 get_state(PART:"elm.swallow.content", st, 30, vl);
7860 if (!strcmp(st, "visible"))
7862 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7863 set_state(PART:"padding_icon_text", "icononly", 0.0);
7865 set_state(PART:"elm.text", "default", 0.0);
7868 program { name: "icon_show";
7869 signal: "elm,state,icon,visible";
7874 get_state(PART:"elm.text", st, 30, vl);
7875 if (!strcmp(st, "visible"))
7877 set_state(PART:"elm.swallow.content", "visible", 0.0);
7878 set_state(PART:"padding_icon_text", "visible", 0.0);
7882 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7883 set_state(PART:"padding_icon_text", "icononly", 0.0);
7887 program { name: "icon_hide";
7888 signal: "elm,state,icon,hidden";
7890 action: STATE_SET "default" 0.0;
7891 target: "elm.swallow.content";
7893 program { name: "disable";
7894 signal: "elm,state,disabled";
7896 action: STATE_SET "disabled" 0.0;
7897 target: "button_image";
7900 after: "disable_text";
7902 program { name: "disable_text";
7906 get_state(PART:"elm.text", st, 30, vl);
7907 if (!strcmp(st, "visible"))
7908 set_state(PART:"elm.text", "disabled_visible", 0.0);
7910 set_state(PART:"elm.text", "disabled", 0.0);
7911 set_int(button_state, 1);
7914 program { name: "enable";
7915 signal: "elm,state,enabled";
7917 action: STATE_SET "default" 0.0;
7918 target: "button_image";
7921 after: "enable_text";
7923 program { name: "enable_text";
7927 get_state(PART:"elm.text", st, 30, vl);
7928 if (!strcmp(st, "disabled_visible"))
7929 set_state(PART:"elm.text", "visible", 0.0);
7931 set_state(PART:"elm.text", "default", 0.0);
7932 set_int(button_state, 0);
7935 program { name: "focused";
7936 //signal: "elm,action,focus";
7938 action: STATE_SET "focused" 0.0;
7939 target: "button_image";
7942 program { name: "unfocused";
7943 //signal: "elm,action,unfocus";
7945 action: STATE_SET "default" 0.0;
7946 target: "button_image";
7947 after: "unfocus_text";
7949 program { name: "unfocus_text";
7950 action: STATE_SET "visible" 0.0;
7956 ///////////////////////////////////////////////////////////////////////////////////////
7957 group { name: "elm/button/base/default";
7959 image: "00_button_03_normal.png" COMP;
7960 image: "00_button_03_press.png" COMP;
7961 image: "00_button_03_focus.png" COMP;
7964 public button_state = 0; //0:enabled, 1: disabled
7967 part { name: "button_image";
7970 description { state: "default" 0.0;
7973 normal: "00_button_03_normal.png";
7978 description { state: "clicked" 0.0;
7979 inherit: "default" 0.0;
7980 image.normal: "00_button_03_press.png";
7982 description { state: "disabled" 0.0;
7983 inherit: "default" 0.0;
7985 description { state: "focused" 0.0;
7986 inherit: "default" 0.0;
7987 image.normal: "00_button_03_focus.png";
7991 name: "padding_left";
7995 description { state: "default" 0.0;
7997 rel1.relative: 0.0 0.0;
7998 rel2.relative: 0.0 1.0;
8005 name: "padding_right";
8009 description { state: "default" 0.0;
8011 rel1.relative: 1.0 0.0;
8012 rel2.relative: 1.0 1.0;
8019 name: "padding_top";
8023 description { state: "default" 0.0;
8025 rel1.relative: 0.0 0.0;
8026 rel2.relative: 1.0 0.0;
8033 name: "padding_bottom";
8037 description { state: "default" 0.0;
8039 rel1.relative: 0.0 1.0;
8040 rel2.relative: 1.0 1.0;
8051 description { state: "default" 0.0;
8055 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8056 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8062 name: "padding_icon_text";
8066 description { state: "default" 0.0; //when only icon or no icon is there
8068 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8069 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8074 description { state: "icononly" 0.0;
8075 inherit: "default" 0.0;
8077 description { state: "visible" 0.0; //when icon is visible
8079 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8080 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8086 part { name: "elm.swallow.content";
8089 description { state: "default" 0.0;
8092 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8093 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8096 description { state: "visible" 0.0;
8100 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8101 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8103 aspect_preference: VERTICAL;
8105 description { state: "icononly" 0.0;;
8108 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8109 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8112 aspect_preference: VERTICAL;
8115 part { name: "elm.text";
8120 description { state: "default" 0.0;
8122 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8123 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8125 color: 90 73 40 255;
8126 color2: 255 255 255 255;
8128 font: "SLP:style=Medium";
8135 description { state: "visible" 0.0;
8136 inherit: "default" 0.0;
8140 description { state: "clicked" 0.0;
8141 inherit: "default" 0.0;
8144 color: 255 255 255 255;
8147 description { state: "disabled" 0.0;
8148 inherit: "default" 0.0;
8152 description { state: "disabled_visible" 0.0;
8153 inherit: "default" 0.0;
8158 description { state: "focused" 0.0;
8159 inherit: "default" 0.0;
8162 color: 255 255 255 255;
8166 part { name: "over2";
8170 ignore_flags: ON_HOLD;
8171 description { state: "default" 0.0;
8174 description { state: "disabled" 0.0;
8175 inherit: "default" 0.0;
8179 part { name: "over3";
8183 description { state: "default" 0.0;
8186 description { state: "clicked" 0.0;
8187 inherit: "default" 0.0;
8191 part { name: "disabler";
8193 description { state: "default" 0.0;
8197 description { state: "disabled" 0.0;
8198 inherit: "default" 0.0;
8204 program { name: "button_click";
8205 signal: "mouse,down,1";
8207 action: SIGNAL_EMIT "elm,action,press" "";
8208 after: "button_click_anim";
8210 program { name: "button_click_anim";
8211 action: STATE_SET "clicked" 0.0;
8212 target: "button_image";
8213 after: "text_clicked";
8215 program { name: "text_clicked";
8219 get_state(PART:"elm.text", st, 30, vl);
8220 if (!strcmp(st, "visible"))
8221 set_state(PART:"elm.text", "clicked", 0.0);
8224 program { name: "button_unpress";
8225 action: SIGNAL_EMIT "elm,action,unpress" "";
8227 program { name: "button_mouseout_clicked";
8228 signal: "mouse,up,1";
8233 get_state(PART:"elm.swallow.content", st, 30, vl);
8234 if (strcmp(st, "icononly"))
8236 emit("elm,action,default,text,set", "");
8237 set_state(PART:"elm.text", "visible", 0.0);
8239 if(get_int(button_state) !=1)
8240 set_state(PART:"button_image", "default", 0.0);
8242 after: button_unpress;
8244 program { name: "button_click2";
8245 signal: "mouse,down,1";
8247 action: STATE_SET "clicked" 0.0;
8250 program { name: "button_unclick2";
8251 signal: "mouse,clicked,1";
8253 action: STATE_SET "default" 0.0;
8256 program { name: "button_unclick3";
8257 signal: "mouse,clicked,1";
8259 action: SIGNAL_EMIT "elm,action,click" "";
8261 program { name: "text_show";
8262 signal: "elm,state,text,visible";
8267 get_state(PART:"elm.swallow.content", st, 30, vl);
8268 if (!strcmp(st, "icononly"))
8270 set_state(PART:"elm.swallow.content", "visible", 0.0);
8271 set_state(PART:"padding_icon_text", "visible", 0.0);
8273 set_state(PART:"elm.text", "visible", 0.0);
8276 program { name: "text_hide";
8277 signal: "elm,state,text,hidden";
8282 get_state(PART:"elm.swallow.content", st, 30, vl);
8283 if (!strcmp(st, "visible"))
8285 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8286 set_state(PART:"padding_icon_text", "icononly", 0.0);
8288 set_state(PART:"elm.text", "default", 0.0);
8291 program { name: "icon_show";
8292 signal: "elm,state,icon,visible";
8297 get_state(PART:"elm.text", st, 30, vl);
8298 if (!strcmp(st, "visible"))
8300 set_state(PART:"elm.swallow.content", "visible", 0.0);
8301 set_state(PART:"padding_icon_text", "visible", 0.0);
8305 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8306 set_state(PART:"padding_icon_text", "icononly", 0.0);
8310 program { name: "icon_hide";
8311 signal: "elm,state,icon,hidden";
8313 action: STATE_SET "default" 0.0;
8314 target: "elm.swallow.content";
8316 program { name: "disable";
8317 signal: "elm,state,disabled";
8319 action: STATE_SET "disabled" 0.0;
8320 target: "button_image";
8323 after: "disable_text";
8325 program { name: "disable_text";
8329 get_state(PART:"elm.text", st, 30, vl);
8330 if (!strcmp(st, "visible"))
8331 set_state(PART:"elm.text", "disabled_visible", 0.0);
8333 set_state(PART:"elm.text", "disabled", 0.0);
8334 set_int(button_state, 1);
8337 program { name: "enable";
8338 signal: "elm,state,enabled";
8340 action: STATE_SET "default" 0.0;
8341 target: "button_image";
8344 after: "enable_text";
8346 program { name: "enable_text";
8350 get_state(PART:"elm.text", st, 30, vl);
8351 if (!strcmp(st, "disabled_visible"))
8352 set_state(PART:"elm.text", "visible", 0.0);
8354 set_state(PART:"elm.text", "default", 0.0);
8355 set_int(button_state, 0);
8358 program { name: "focused";
8359 //signal: "elm,action,focus";
8361 action: STATE_SET "focused" 0.0;
8362 target: "button_image";
8365 program { name: "unfocused";
8366 //signal: "elm,action,unfocus";
8368 action: STATE_SET "default" 0.0;
8369 target: "button_image";
8370 after: "unfocus_text";
8372 program { name: "unfocus_text";
8373 action: STATE_SET "visible" 0.0;
8379 ///////////////////////////////////////////////////////////////////////////////////////
8380 group { name: "elm/button/base/hidden";
8382 image: "00_button_sweep.png" COMP;
8383 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
8384 //image: "00_button_sweep_dim.png" COMP;
8387 public button_state = 0; //0:enabled, 1: disabled
8390 part { name: "button_image";
8393 description { state: "default" 0.0;
8396 normal: "00_button_sweep.png";
8401 description { state: "clicked" 0.0;
8402 inherit: "default" 0.0;
8403 image.normal: "00_button_sweep_press.png";
8405 description { state: "disabled" 0.0;
8406 inherit: "default" 0.0;
8408 description { state: "focused" 0.0;
8409 inherit: "default" 0.0;
8410 image.normal: "00_button_sweep_press.png";
8414 name: "padding_left";
8418 description { state: "default" 0.0;
8420 rel1.relative: 0.0 0.0;
8421 rel2.relative: 0.0 1.0;
8428 name: "padding_right";
8432 description { state: "default" 0.0;
8434 rel1.relative: 1.0 0.0;
8435 rel2.relative: 1.0 1.0;
8442 name: "padding_top";
8446 description { state: "default" 0.0;
8448 rel1.relative: 0.0 0.0;
8449 rel2.relative: 1.0 0.0;
8456 name: "padding_bottom";
8460 description { state: "default" 0.0;
8462 rel1.relative: 0.0 1.0;
8463 rel2.relative: 1.0 1.0;
8474 description { state: "default" 0.0;
8478 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8479 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8485 name: "padding_icon_text";
8489 description { state: "default" 0.0; //when only icon or no icon is there
8491 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8492 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8497 description { state: "icononly" 0.0;
8498 inherit: "default" 0.0;
8500 description { state: "visible" 0.0; //when icon is visible
8502 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8503 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8509 part { name: "elm.swallow.content";
8512 description { state: "default" 0.0;
8515 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8516 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8519 description { state: "visible" 0.0;
8523 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8524 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8526 aspect_preference: VERTICAL;
8528 description { state: "icononly" 0.0;;
8531 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8532 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8535 aspect_preference: VERTICAL;
8538 part { name: "elm.text";
8543 description { state: "default" 0.0;
8545 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8546 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8548 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
8549 color2: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
8551 font: "SLP:style=Medium";
8558 description { state: "visible" 0.0;
8559 inherit: "default" 0.0;
8563 description { state: "clicked" 0.0;
8564 inherit: "default" 0.0;
8567 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
8568 color2: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
8570 description { state: "disabled" 0.0;
8571 inherit: "default" 0.0;
8575 description { state: "disabled_visible" 0.0;
8576 inherit: "default" 0.0;
8577 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
8578 color2: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
8582 description { state: "focused" 0.0;
8583 inherit: "default" 0.0;
8586 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
8587 color2: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
8590 part { name: "over2";
8594 ignore_flags: ON_HOLD;
8595 description { state: "default" 0.0;
8598 description { state: "disabled" 0.0;
8599 inherit: "default" 0.0;
8603 part { name: "over3";
8607 description { state: "default" 0.0;
8610 description { state: "clicked" 0.0;
8611 inherit: "default" 0.0;
8615 part { name: "disabler";
8617 description { state: "default" 0.0;
8621 description { state: "disabled" 0.0;
8622 inherit: "default" 0.0;
8628 program { name: "button_click";
8629 signal: "mouse,down,1";
8631 action: SIGNAL_EMIT "elm,action,press" "";
8632 after: "button_click_anim";
8634 program { name: "button_click_anim";
8635 action: STATE_SET "clicked" 0.0;
8636 target: "button_image";
8637 after: "text_clicked";
8639 program { name: "text_clicked";
8643 get_state(PART:"elm.text", st, 30, vl);
8644 if (!strcmp(st, "visible"))
8645 set_state(PART:"elm.text", "clicked", 0.0);
8648 program { name: "button_unpress";
8649 action: SIGNAL_EMIT "elm,action,unpress" "";
8651 program { name: "button_mouseout_clicked";
8652 signal: "mouse,up,1";
8657 get_state(PART:"elm.swallow.content", st, 30, vl);
8658 if (strcmp(st, "icononly"))
8660 emit("elm,action,default,text,set", "");
8661 set_state(PART:"elm.text", "visible", 0.0);
8663 if(get_int(button_state) !=1)
8664 set_state(PART:"button_image", "default", 0.0);
8666 after: button_unpress;
8668 program { name: "button_click2";
8669 signal: "mouse,down,1";
8671 action: STATE_SET "clicked" 0.0;
8674 program { name: "button_unclick2";
8675 signal: "mouse,clicked,1";
8677 action: STATE_SET "default" 0.0;
8680 program { name: "button_unclick3";
8681 signal: "mouse,clicked,1";
8683 action: SIGNAL_EMIT "elm,action,click" "";
8685 program { name: "text_show";
8686 signal: "elm,state,text,visible";
8691 get_state(PART:"elm.swallow.content", st, 30, vl);
8692 if (!strcmp(st, "icononly"))
8694 set_state(PART:"elm.swallow.content", "visible", 0.0);
8695 set_state(PART:"padding_icon_text", "visible", 0.0);
8697 set_state(PART:"elm.text", "visible", 0.0);
8700 program { name: "text_hide";
8701 signal: "elm,state,text,hidden";
8706 get_state(PART:"elm.swallow.content", st, 30, vl);
8707 if (!strcmp(st, "visible"))
8709 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8710 set_state(PART:"padding_icon_text", "icononly", 0.0);
8712 set_state(PART:"elm.text", "default", 0.0);
8715 program { name: "icon_show";
8716 signal: "elm,state,icon,visible";
8721 get_state(PART:"elm.text", st, 30, vl);
8722 if (!strcmp(st, "visible"))
8724 set_state(PART:"elm.swallow.content", "visible", 0.0);
8725 set_state(PART:"padding_icon_text", "visible", 0.0);
8729 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8730 set_state(PART:"padding_icon_text", "icononly", 0.0);
8734 program { name: "icon_hide";
8735 signal: "elm,state,icon,hidden";
8737 action: STATE_SET "default" 0.0;
8738 target: "elm.swallow.content";
8740 program { name: "disable";
8741 signal: "elm,state,disabled";
8743 action: STATE_SET "disabled" 0.0;
8744 target: "button_image";
8747 after: "disable_text";
8749 program { name: "disable_text";
8753 get_state(PART:"elm.text", st, 30, vl);
8754 if (!strcmp(st, "visible"))
8755 set_state(PART:"elm.text", "disabled_visible", 0.0);
8757 set_state(PART:"elm.text", "disabled", 0.0);
8758 set_int(button_state, 1);
8761 program { name: "enable";
8762 signal: "elm,state,enabled";
8764 action: STATE_SET "default" 0.0;
8765 target: "button_image";
8768 after: "enable_text";
8770 program { name: "enable_text";
8774 get_state(PART:"elm.text", st, 30, vl);
8775 if (!strcmp(st, "disabled_visible"))
8776 set_state(PART:"elm.text", "visible", 0.0);
8778 set_state(PART:"elm.text", "default", 0.0);
8779 set_int(button_state, 0);
8782 program { name: "focused";
8783 //signal: "elm,action,focus";
8785 action: STATE_SET "focused" 0.0;
8786 target: "button_image";
8789 program { name: "unfocused";
8790 //signal: "elm,action,unfocus";
8792 action: STATE_SET "default" 0.0;
8793 target: "button_image";
8794 after: "unfocus_text";
8796 program { name: "unfocus_text";
8797 action: STATE_SET "visible" 0.0;
8803 ///////////////////////////////////////////////////////////////////////////////////////
8804 group { name: "elm/button/base/popup/contact";
8806 image: "00_button_01_normal.png" COMP;
8807 image: "00_button_01_press.png" COMP;
8808 image: "00_button_01_focus.png" COMP;
8811 public button_state = 0; //0:enabled, 1: disabled
8814 part { name: "button_image";
8817 description { state: "default" 0.0;
8820 normal: "00_button_01_normal.png";
8825 description { state: "clicked" 0.0;
8826 inherit: "default" 0.0;
8827 image.normal: "00_button_01_press.png";
8829 description { state: "disabled" 0.0;
8830 inherit: "default" 0.0;
8832 description { state: "focused" 0.0;
8833 inherit: "default" 0.0;
8834 // image.normal: "00_button_01_focus.png";
8838 name: "padding_left";
8842 description { state: "default" 0.0;
8844 rel1.relative: 0.0 0.0;
8845 rel2.relative: 0.0 1.0;
8852 name: "padding_right";
8856 description { state: "default" 0.0;
8858 rel1.relative: 1.0 0.0;
8859 rel2.relative: 1.0 1.0;
8866 name: "padding_top";
8870 description { state: "default" 0.0;
8872 rel1.relative: 0.0 0.0;
8873 rel2.relative: 1.0 0.0;
8880 name: "padding_bottom";
8884 description { state: "default" 0.0;
8886 rel1.relative: 0.0 1.0;
8887 rel2.relative: 1.0 1.0;
8898 description { state: "default" 0.0;
8902 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8903 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8909 name: "padding_icon_text";
8913 description { state: "default" 0.0; //when only icon or no icon is there
8915 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8916 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8921 description { state: "icononly" 0.0;
8922 inherit: "default" 0.0;
8924 description { state: "visible" 0.0; //when icon is visible
8926 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8927 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8933 part { name: "elm.swallow.content";
8936 description { state: "default" 0.0;
8939 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8940 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8943 description { state: "visible" 0.0;
8947 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8948 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8950 aspect_preference: VERTICAL;
8952 description { state: "icononly" 0.0;;
8955 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8956 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8959 aspect_preference: VERTICAL;
8962 part { name: "elm.text";
8967 description { state: "default" 0.0;
8969 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8970 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8972 color: 90 73 40 255;
8973 color2: 255 255 255 255;
8975 font: "SLP:style=Medium";
8982 description { state: "visible" 0.0;
8983 inherit: "default" 0.0;
8987 description { state: "clicked" 0.0;
8988 inherit: "default" 0.0;
8991 color: 255 255 255 255;
8994 description { state: "disabled" 0.0;
8995 inherit: "default" 0.0;
8999 description { state: "disabled_visible" 0.0;
9000 inherit: "default" 0.0;
9005 description { state: "focused" 0.0;
9006 inherit: "default" 0.0;
9009 color: 255 255 255 255;
9013 part { name: "over2";
9017 ignore_flags: ON_HOLD;
9018 description { state: "default" 0.0;
9021 description { state: "disabled" 0.0;
9022 inherit: "default" 0.0;
9026 part { name: "over3";
9030 description { state: "default" 0.0;
9033 description { state: "clicked" 0.0;
9034 inherit: "default" 0.0;
9038 part { name: "disabler";
9040 description { state: "default" 0.0;
9044 description { state: "disabled" 0.0;
9045 inherit: "default" 0.0;
9051 program { name: "button_click";
9052 signal: "mouse,down,1";
9054 action: SIGNAL_EMIT "elm,action,press" "";
9055 after: "button_click_anim";
9057 program { name: "button_click_anim";
9058 action: STATE_SET "clicked" 0.0;
9059 target: "button_image";
9060 after: "text_clicked";
9062 program { name: "text_clicked";
9066 get_state(PART:"elm.text", st, 30, vl);
9067 if (!strcmp(st, "visible"))
9068 set_state(PART:"elm.text", "clicked", 0.0);
9071 program { name: "button_unpress";
9072 action: SIGNAL_EMIT "elm,action,unpress" "";
9074 program { name: "button_mouseout_clicked";
9075 signal: "mouse,up,1";
9080 get_state(PART:"elm.swallow.content", st, 30, vl);
9081 if (strcmp(st, "icononly"))
9083 emit("elm,action,default,text,set", "");
9084 set_state(PART:"elm.text", "visible", 0.0);
9086 if(get_int(button_state) !=1)
9087 set_state(PART:"button_image", "default", 0.0);
9089 after: button_unpress;
9091 program { name: "button_click2";
9092 signal: "mouse,down,1";
9094 action: STATE_SET "clicked" 0.0;
9097 program { name: "button_unclick2";
9098 signal: "mouse,clicked,1";
9100 action: STATE_SET "default" 0.0;
9103 program { name: "button_unclick3";
9104 signal: "mouse,clicked,1";
9106 action: SIGNAL_EMIT "elm,action,click" "";
9108 program { name: "text_show";
9109 signal: "elm,state,text,visible";
9114 get_state(PART:"elm.swallow.content", st, 30, vl);
9115 if (!strcmp(st, "icononly"))
9117 set_state(PART:"elm.swallow.content", "visible", 0.0);
9118 set_state(PART:"padding_icon_text", "visible", 0.0);
9120 set_state(PART:"elm.text", "visible", 0.0);
9123 program { name: "text_hide";
9124 signal: "elm,state,text,hidden";
9129 get_state(PART:"elm.swallow.content", st, 30, vl);
9130 if (!strcmp(st, "visible"))
9132 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9133 set_state(PART:"padding_icon_text", "icononly", 0.0);
9135 set_state(PART:"elm.text", "default", 0.0);
9138 program { name: "icon_show";
9139 signal: "elm,state,icon,visible";
9144 get_state(PART:"elm.text", st, 30, vl);
9145 if (!strcmp(st, "visible"))
9147 set_state(PART:"elm.swallow.content", "visible", 0.0);
9148 set_state(PART:"padding_icon_text", "visible", 0.0);
9152 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9153 set_state(PART:"padding_icon_text", "icononly", 0.0);
9157 program { name: "icon_hide";
9158 signal: "elm,state,icon,hidden";
9160 action: STATE_SET "default" 0.0;
9161 target: "elm.swallow.content";
9163 program { name: "disable";
9164 signal: "elm,state,disabled";
9166 action: STATE_SET "disabled" 0.0;
9167 target: "button_image";
9170 after: "disable_text";
9172 program { name: "disable_text";
9176 get_state(PART:"elm.text", st, 30, vl);
9177 if (!strcmp(st, "visible"))
9178 set_state(PART:"elm.text", "disabled_visible", 0.0);
9180 set_state(PART:"elm.text", "disabled", 0.0);
9181 set_int(button_state, 1);
9184 program { name: "enable";
9185 signal: "elm,state,enabled";
9187 action: STATE_SET "default" 0.0;
9188 target: "button_image";
9191 after: "enable_text";
9193 program { name: "enable_text";
9197 get_state(PART:"elm.text", st, 30, vl);
9198 if (!strcmp(st, "disabled_visible"))
9199 set_state(PART:"elm.text", "visible", 0.0);
9201 set_state(PART:"elm.text", "default", 0.0);
9202 set_int(button_state, 0);
9205 program { name: "focused";
9206 //signal: "elm,action,focus";
9208 action: STATE_SET "focused" 0.0;
9209 target: "button_image";
9212 program { name: "unfocused";
9213 //signal: "elm,action,unfocus";
9215 action: STATE_SET "default" 0.0;
9216 target: "button_image";
9217 after: "unfocus_text";
9219 program { name: "unfocus_text";
9220 action: STATE_SET "visible" 0.0;
9226 ///////////////////////////////////////////////////////////////////////////////////////
9227 group { name: "elm/button/base/calendarpicker/bar";
9229 image: "00_picker_btn_normal.png" COMP;
9230 image: "00_picker_btn_press.png" COMP;
9233 public button_state = 0; //0:enabled, 1: disabled
9236 part { name: "button_image";
9239 description { state: "default" 0.0;
9242 normal: "00_picker_btn_normal.png";
9247 description { state: "clicked" 0.0;
9248 inherit: "default" 0.0;
9249 image.normal: "00_picker_btn_press.png";
9251 description { state: "disabled" 0.0;
9252 inherit: "default" 0.0;
9254 description { state: "focused" 0.0;
9255 inherit: "default" 0.0;
9256 image.normal: "00_picker_btn_press.png";
9260 name: "padding_left";
9264 description { state: "default" 0.0;
9266 rel1.relative: 0.0 0.0;
9267 rel2.relative: 0.0 1.0;
9274 name: "padding_right";
9278 description { state: "default" 0.0;
9280 rel1.relative: 1.0 0.0;
9281 rel2.relative: 1.0 1.0;
9288 name: "padding_top";
9292 description { state: "default" 0.0;
9294 rel1.relative: 0.0 0.0;
9295 rel2.relative: 1.0 0.0;
9302 name: "padding_bottom";
9306 description { state: "default" 0.0;
9308 rel1.relative: 0.0 1.0;
9309 rel2.relative: 1.0 1.0;
9320 description { state: "default" 0.0;
9324 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
9325 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
9331 name: "padding_icon_text";
9335 description { state: "default" 0.0; //when only icon or no icon is there
9337 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9338 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9343 description { state: "icononly" 0.0;
9344 inherit: "default" 0.0;
9346 description { state: "visible" 0.0; //when icon is visible
9348 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9349 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9355 part { name: "elm.swallow.content";
9358 description { state: "default" 0.0;
9361 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9362 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9365 description { state: "visible" 0.0;
9369 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9370 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9372 aspect_preference: VERTICAL;
9374 description { state: "icononly" 0.0;;
9377 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9378 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9381 aspect_preference: VERTICAL;
9384 part { name: "elm.text";
9389 description { state: "default" 0.0;
9391 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
9392 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9394 color: 78 73 69 255;
9397 font: "SLP:style=Medium";
9404 description { state: "visible" 0.0;
9405 inherit: "default" 0.0;
9409 description { state: "clicked" 0.0;
9410 inherit: "default" 0.0;
9413 color: 255 255 255 255;
9416 description { state: "disabled" 0.0;
9417 inherit: "default" 0.0;
9421 description { state: "disabled_visible" 0.0;
9422 inherit: "default" 0.0;
9427 description { state: "focused" 0.0;
9428 inherit: "default" 0.0;
9431 color: 255 255 255 255;
9435 part { name: "over2";
9439 ignore_flags: ON_HOLD;
9440 description { state: "default" 0.0;
9443 description { state: "disabled" 0.0;
9444 inherit: "default" 0.0;
9448 part { name: "over3";
9452 description { state: "default" 0.0;
9455 description { state: "clicked" 0.0;
9456 inherit: "default" 0.0;
9460 part { name: "disabler";
9462 description { state: "default" 0.0;
9466 description { state: "disabled" 0.0;
9467 inherit: "default" 0.0;
9473 program { name: "button_click";
9474 signal: "mouse,down,1";
9476 action: SIGNAL_EMIT "elm,action,press" "";
9477 after: "button_click_anim";
9479 program { name: "button_click_anim";
9480 action: STATE_SET "clicked" 0.0;
9481 target: "button_image";
9482 after: "text_clicked";
9484 program { name: "text_clicked";
9488 get_state(PART:"elm.text", st, 30, vl);
9489 if (!strcmp(st, "visible"))
9490 set_state(PART:"elm.text", "clicked", 0.0);
9493 program { name: "button_unpress";
9494 action: SIGNAL_EMIT "elm,action,unpress" "";
9496 program { name: "button_mouseout_clicked";
9497 signal: "mouse,up,1";
9502 get_state(PART:"elm.swallow.content", st, 30, vl);
9503 if (strcmp(st, "icononly"))
9505 emit("elm,action,default,text,set", "");
9506 set_state(PART:"elm.text", "visible", 0.0);
9508 if(get_int(button_state) !=1)
9509 set_state(PART:"button_image", "default", 0.0);
9511 after: button_unpress;
9513 program { name: "button_click2";
9514 signal: "mouse,down,1";
9516 action: STATE_SET "clicked" 0.0;
9519 program { name: "button_unclick2";
9520 signal: "mouse,clicked,1";
9522 action: STATE_SET "default" 0.0;
9525 program { name: "button_unclick3";
9526 signal: "mouse,clicked,1";
9528 action: SIGNAL_EMIT "elm,action,click" "";
9530 program { name: "text_show";
9531 signal: "elm,state,text,visible";
9536 get_state(PART:"elm.swallow.content", st, 30, vl);
9537 if (!strcmp(st, "icononly"))
9539 set_state(PART:"elm.swallow.content", "visible", 0.0);
9540 set_state(PART:"padding_icon_text", "visible", 0.0);
9542 set_state(PART:"elm.text", "visible", 0.0);
9545 program { name: "text_hide";
9546 signal: "elm,state,text,hidden";
9551 get_state(PART:"elm.swallow.content", st, 30, vl);
9552 if (!strcmp(st, "visible"))
9554 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9555 set_state(PART:"padding_icon_text", "icononly", 0.0);
9557 set_state(PART:"elm.text", "default", 0.0);
9560 program { name: "icon_show";
9561 signal: "elm,state,icon,visible";
9566 get_state(PART:"elm.text", st, 30, vl);
9567 if (!strcmp(st, "visible"))
9569 set_state(PART:"elm.swallow.content", "visible", 0.0);
9570 set_state(PART:"padding_icon_text", "visible", 0.0);
9574 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9575 set_state(PART:"padding_icon_text", "icononly", 0.0);
9579 program { name: "icon_hide";
9580 signal: "elm,state,icon,hidden";
9582 action: STATE_SET "default" 0.0;
9583 target: "elm.swallow.content";
9585 program { name: "disable";
9586 signal: "elm,state,disabled";
9588 action: STATE_SET "disabled" 0.0;
9589 target: "button_image";
9592 after: "disable_text";
9594 program { name: "disable_text";
9598 get_state(PART:"elm.text", st, 30, vl);
9599 if (!strcmp(st, "visible"))
9600 set_state(PART:"elm.text", "disabled_visible", 0.0);
9602 set_state(PART:"elm.text", "disabled", 0.0);
9603 set_int(button_state, 1);
9606 program { name: "enable";
9607 signal: "elm,state,enabled";
9609 action: STATE_SET "default" 0.0;
9610 target: "button_image";
9613 after: "enable_text";
9615 program { name: "enable_text";
9619 get_state(PART:"elm.text", st, 30, vl);
9620 if (!strcmp(st, "disabled_visible"))
9621 set_state(PART:"elm.text", "visible", 0.0);
9623 set_state(PART:"elm.text", "default", 0.0);
9624 set_int(button_state, 0);
9627 program { name: "focused";
9628 //signal: "elm,action,focus";
9630 action: STATE_SET "focused" 0.0;
9631 target: "button_image";
9634 program { name: "unfocused";
9635 //signal: "elm,action,unfocus";
9637 action: STATE_SET "default" 0.0;
9638 target: "button_image";
9639 after: "unfocus_text";
9641 program { name: "unfocus_text";
9642 action: STATE_SET "visible" 0.0;
9648 ///////////////////////////////////////////////////////////////////////////////////////
9649 group { name: "elm/button/base/icon_and_text/center";
9651 image: "00_button_01_normal.png" COMP;
9652 image: "00_button_01_press.png" COMP;
9653 image: "00_button_01_focus.png" COMP;
9654 image: "00_button_01_dim.png" COMP;
9657 public button_state = 0; //0:enabled, 1: disabled
9660 part { name: "button_image";
9663 description { state: "default" 0.0;
9666 normal: "00_button_01_normal.png";
9671 description { state: "clicked" 0.0;
9672 inherit: "default" 0.0;
9673 image.normal: "00_button_01_press.png";
9675 description { state: "disabled" 0.0;
9676 inherit: "default" 0.0;
9677 image.normal: "00_button_01_dim.png";
9679 description { state: "focused" 0.0;
9680 inherit: "default" 0.0;
9681 image.normal: "00_button_01_focus.png";
9685 name: "padding_left";
9689 description { state: "default" 0.0;
9691 rel1.relative: 0.0 0.0;
9692 rel2.relative: 0.0 1.0;
9699 name: "padding_right";
9703 description { state: "default" 0.0;
9705 rel1.relative: 1.0 0.0;
9706 rel2.relative: 1.0 1.0;
9713 name: "padding_top";
9717 description { state: "default" 0.0;
9719 rel1.relative: 0.0 0.0;
9720 rel2.relative: 1.0 0.0;
9727 name: "padding_bottom";
9731 description { state: "default" 0.0;
9733 rel1.relative: 0.0 1.0;
9734 rel2.relative: 1.0 1.0;
9745 description { state: "default" 0.0;
9749 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9750 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9754 description { state: "visible" 0.0;
9759 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9760 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9762 aspect_preference: VERTICAL;
9766 description { state: "icononly" 0.0;
9767 inherit: "default" 0.0;
9771 name: "padding_after_icon";
9775 description { state: "default" 0.0; //when only icon or no icon is there
9777 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9778 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9783 description { state: "visible" 0.0;
9786 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9787 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9792 description { state: "icononly" 0.0;
9793 inherit: "default" 0.0;
9797 name: "padding_before_text";
9801 description { state: "default" 0.0; //when only icon or no icon is there
9803 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
9804 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
9810 part { name: "elm.swallow.content";
9813 description { state: "default" 0.0;
9816 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9817 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9820 description { state: "visible" 0.0;
9826 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
9827 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
9829 aspect_preference: VERTICAL;
9831 description { state: "icononly" 0.0;;
9835 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9836 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9839 aspect_preference: VERTICAL;
9842 part { name: "elm.text";
9847 description { state: "default" 0.0;
9849 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
9850 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9852 color: BUTTON_ICON_TEXT_NORMAL_COLOR_INC;
9853 color2: BUTTON_ICON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
9855 font: "SLP:style=Medium";
9862 description { state: "visible" 0.0;
9863 inherit: "default" 0.0;
9867 description { state: "clicked" 0.0;
9868 inherit: "default" 0.0;
9871 color: BUTTON_ICON_TEXT_PRESSED_COLOR_INC;
9872 color2: BUTTON_ICON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
9874 description { state: "disabled" 0.0;
9875 inherit: "default" 0.0;
9879 description { state: "disabled_visible" 0.0;
9880 inherit: "default" 0.0;
9881 color: BUTTON_ICON_TEXT_DISABLED_COLOR_INC;
9882 color2: BUTTON_ICON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
9886 description { state: "focused" 0.0;
9887 inherit: "default" 0.0;
9890 color: BUTTON_ICON_TEXT_FOCUSED_COLOR_INC;
9891 color2: BUTTON_ICON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
9894 part { name: "over2";
9898 ignore_flags: ON_HOLD;
9899 description { state: "default" 0.0;
9902 description { state: "disabled" 0.0;
9903 inherit: "default" 0.0;
9907 part { name: "over3";
9911 description { state: "default" 0.0;
9914 description { state: "clicked" 0.0;
9915 inherit: "default" 0.0;
9919 part { name: "disabler";
9921 description { state: "default" 0.0;
9925 description { state: "disabled" 0.0;
9926 inherit: "default" 0.0;
9932 program { name: "button_click";
9933 signal: "mouse,down,1";
9935 action: SIGNAL_EMIT "elm,action,press" "";
9936 after: "button_click_anim";
9938 program { name: "button_click_anim";
9939 action: STATE_SET "clicked" 0.0;
9940 target: "button_image";
9941 after: "text_clicked";
9943 program { name: "text_clicked";
9947 get_state(PART:"elm.text", st, 30, vl);
9948 if (!strcmp(st, "visible"))
9949 set_state(PART:"elm.text", "clicked", 0.0);
9952 program { name: "button_unpress";
9953 action: SIGNAL_EMIT "elm,action,unpress" "";
9955 program { name: "button_mouseout_clicked";
9956 signal: "mouse,up,1";
9961 get_state(PART:"elm.swallow.content", st, 30, vl);
9962 if (strcmp(st, "icononly"))
9964 emit("elm,action,default,text,set", "");
9965 set_state(PART:"elm.text", "visible", 0.0);
9967 if(get_int(button_state) !=1)
9968 set_state(PART:"button_image", "default", 0.0);
9970 after: button_unpress;
9972 program { name: "button_click2";
9973 signal: "mouse,down,1";
9975 action: STATE_SET "clicked" 0.0;
9978 program { name: "button_unclick2";
9979 signal: "mouse,clicked,1";
9981 action: STATE_SET "default" 0.0;
9984 program { name: "button_unclick3";
9985 signal: "mouse,clicked,1";
9987 action: SIGNAL_EMIT "elm,action,click" "";
9989 program { name: "text_show";
9990 signal: "elm,state,text,visible";
9995 get_state(PART:"elm.swallow.content", st, 30, vl);
9996 if (!strcmp(st, "icononly"))
9998 set_state(PART:"elm.swallow.content", "visible", 0.0);
9999 set_state(PART:"icon_rect", "visible", 0.0);
10000 set_state(PART:"padding_after_icon", "visible", 0.0);
10002 set_state(PART:"elm.text", "visible", 0.0);
10005 program { name: "text_hide";
10006 signal: "elm,state,text,hidden";
10011 get_state(PART:"elm.swallow.content", st, 30, vl);
10012 if (!strcmp(st, "visible"))
10014 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10015 set_state(PART:"icon_rect", "icononly", 0.0);
10016 set_state(PART:"padding_after_icon", "icononly", 0.0);
10018 set_state(PART:"elm.text", "default", 0.0);
10021 program { name: "icon_show";
10022 signal: "elm,state,icon,visible";
10027 get_state(PART:"elm.text", st, 30, vl);
10028 if (!strcmp(st, "visible"))
10030 set_state(PART:"elm.swallow.content", "visible", 0.0);
10031 set_state(PART:"icon_rect", "visible", 0.0);
10032 set_state(PART:"padding_after_icon", "visible", 0.0);
10036 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10037 set_state(PART:"icon_rect", "icononly", 0.0);
10038 set_state(PART:"padding_after_icon", "icononly", 0.0);
10042 program { name: "icon_hide";
10043 signal: "elm,state,icon,hidden";
10045 action: STATE_SET "default" 0.0;
10046 target: "elm.swallow.content";
10048 program { name: "disable";
10049 signal: "elm,state,disabled";
10051 action: STATE_SET "disabled" 0.0;
10052 target: "button_image";
10054 target: "disabler";
10055 after: "disable_text";
10057 program { name: "disable_text";
10061 get_state(PART:"elm.text", st, 30, vl);
10062 if (!strcmp(st, "visible"))
10063 set_state(PART:"elm.text", "disabled_visible", 0.0);
10065 set_state(PART:"elm.text", "disabled", 0.0);
10066 set_int(button_state, 1);
10069 program { name: "enable";
10070 signal: "elm,state,enabled";
10072 action: STATE_SET "default" 0.0;
10073 target: "button_image";
10075 target: "disabler";
10076 after: "enable_text";
10078 program { name: "enable_text";
10082 get_state(PART:"elm.text", st, 30, vl);
10083 if (!strcmp(st, "disabled_visible"))
10084 set_state(PART:"elm.text", "visible", 0.0);
10086 set_state(PART:"elm.text", "default", 0.0);
10087 set_int(button_state, 0);
10090 program { name: "focused";
10091 action: STATE_SET "focused" 0.0;
10092 target: "button_image";
10093 target: "elm.text";
10095 program { name: "unfocused";
10096 action: STATE_SET "default" 0.0;
10097 target: "button_image";
10098 after: "unfocus_text";
10100 program { name: "unfocus_text";
10101 action: STATE_SET "visible" 0.0;
10102 target: "elm.text";
10107 ///////////////////////////////////////////////////////////////////////////////////////
10108 group { name: "elm/button/base/text_only/contact";
10109 alias: "elm/button/base/haptic";
10111 image: "00_message_button_add_recipient.png" COMP;
10112 image: "00_message_button_add_recipient_press.png" COMP;
10113 image: "00_message_button_add_recipient_focus.png" COMP;
10114 image: "00_message_button_add_recipient_dim.png" COMP;
10117 public button_state = 0; //0:enabled, 1: disabled
10120 part { name: "button_image";
10124 description { state: "default" 0.0;
10125 rel1 { to_x: "padding.left"; to_y: "elm.text";}
10126 rel2 { to_x: "padding.right"; to_y: "elm.text";}
10128 color: 221 134 21 255;
10130 description { state: "clicked" 0.0;
10131 inherit: "default" 0.0;
10133 description { state: "disabled" 0.0;
10134 inherit: "default" 0.0;
10136 description { state: "focused" 0.0;
10137 inherit: "default" 0.0;
10140 part { name: "padding.left";
10143 description { state: "default" 0.0;
10148 rel1.relative: 0 0;
10149 rel2 { relative: 0.0 1.0; to_x: "elm.text";}
10153 part { name: "padding.right";
10156 description { state: "default" 0.0;
10161 rel1 { relative: 1.0 0.0; to_x: "elm.text";}
10162 rel2.relative: 1.0 1.0;
10166 part { name: "elm.text";
10171 description { state: "default" 0.0;
10175 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
10176 color2: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
10178 font: "SLP:style=Medium";
10184 description { state: "visible" 0.0;
10185 inherit: "default" 0.0;
10189 description { state: "clicked" 0.0;
10190 inherit: "default" 0.0;
10193 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
10194 color2: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
10196 description { state: "disabled" 0.0;
10197 inherit: "default" 0.0;
10201 description { state: "disabled_visible" 0.0;
10202 inherit: "default" 0.0;
10203 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
10204 color2: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
10209 description { state: "focused" 0.0;
10210 inherit: "default" 0.0;
10213 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
10214 color2: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
10217 part { name: "over1";
10219 description { state: "default" 0.0;
10220 rel2.relative: 1.0 0.5;
10222 description { state: "disabled" 0.0;
10223 inherit: "default" 0.0;
10226 part { name: "over2";
10229 ignore_flags: ON_HOLD;
10230 description { state: "default" 0.0;
10231 rel1.to: "button_image";
10232 rel2.to: "button_image";
10234 description { state: "disabled" 0.0;
10235 inherit: "default" 0.0;
10239 part { name: "over3";
10242 description { state: "default" 0.0;
10243 rel1.to: "button_image";
10244 rel2.to: "button_image";
10245 color: 255 255 255 0;
10247 description { state: "clicked" 0.0;
10248 inherit: "default" 0.0;
10250 color: 255 255 255 0;
10253 part { name: "disabler";
10255 description { state: "default" 0.0;
10256 rel1.to: "button_image";
10257 rel2.to: "button_image";
10261 description { state: "disabled" 0.0;
10262 inherit: "default" 0.0;
10268 program { name: "button_click";
10269 signal: "mouse,down,1";
10271 action: SIGNAL_EMIT "elm,action,press" "";
10272 after: "button_click_anim";
10274 program { name: "button_click_anim";
10275 action: STATE_SET "clicked" 0.0;
10276 target: "button_image";
10277 target: "elm.text";
10279 program { name: "button_unpress";
10280 action: SIGNAL_EMIT "elm,action,unpress" "";
10282 program { name: "button_mouseout_clicked";
10283 signal: "mouse,up,1";
10288 get_state(PART:"elm.text", st, 30, vl);
10289 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
10291 emit("elm,action,default,text,set", "");
10292 set_state(PART:"elm.text", "visible", 0.0);
10294 if(get_int(button_state) !=1)
10295 set_state(PART:"button_image", "default", 0.0);
10297 after: button_unpress;
10299 program { name: "button_click2";
10300 signal: "mouse,down,1";
10302 action: STATE_SET "clicked" 0.0;
10305 program { name: "button_unclick2";
10306 signal: "mouse,clicked,1";
10308 action: STATE_SET "default" 0.0;
10311 program { name: "button_unclick3";
10312 signal: "mouse,clicked,1";
10314 action: SIGNAL_EMIT "elm,action,click" "";
10316 program { name: "text_show";
10317 signal: "elm,state,text,visible";
10319 action: STATE_SET "visible" 0.0;
10320 target: "elm.text";
10322 program { name: "text_hide";
10323 signal: "elm,state,text,hidden";
10325 action: STATE_SET "default" 0.0;
10326 target: "elm.text";
10329 program { name: "disable";
10330 signal: "elm,state,disabled";
10332 action: STATE_SET "disabled" 0.0;
10333 target: "button_image";
10336 target: "disabler";
10337 after: "disable_text";
10339 program { name: "disable_text";
10343 get_state(PART:"elm.text", st, 30, vl);
10344 if (!strcmp(st, "visible"))
10345 set_state(PART:"elm.text", "disabled_visible", 0.0);
10347 set_state(PART:"elm.text", "disabled", 0.0);
10348 set_int(button_state, 1);
10351 program { name: "enable";
10352 signal: "elm,state,enabled";
10354 action: STATE_SET "default" 0.0;
10355 target: "button_image";
10358 target: "disabler";
10359 after: "enable_text";
10361 program { name: "enable_text";
10365 get_state(PART:"elm.text", st, 30, vl);
10366 if (!strcmp(st, "disabled_visible"))
10367 set_state(PART:"elm.text", "visible", 0.0);
10369 set_state(PART:"elm.text", "default", 0.0);
10370 set_int(button_state, 0);
10373 program { name: "focused";
10374 //signal: "elm,action,focus";
10376 action: STATE_SET "focused" 0.0;
10377 target: "button_image";
10378 target: "elm.text";
10380 program { name: "unfocused";
10381 //signal: "elm,action,unfocus";
10383 action: STATE_SET "default" 0.0;
10384 target: "button_image";
10385 action: STATE_SET "visible" 0.0;
10386 target: "elm.text";
10391 ///////////////////////////////////////////////////////////////////////////////////////
10392 group { name: "elm/button/base/text_only/more";
10394 image: "00_button_more.png" COMP;
10397 public button_state = 0; //0:enabled, 1: disabled
10400 part { name: "button_image";
10403 description { state: "default" 0.0;
10404 rel1 { to_x: "padding.left"; to_y: "elm.text";}
10405 rel2 { to_x: "padding.right"; to_y: "elm.text";}
10409 normal: "00_button_more.png";
10410 border: 13 13 12 12;
10414 description { state: "clicked" 0.0;
10415 inherit: "default" 0.0;
10417 description { state: "disabled" 0.0;
10418 inherit: "default" 0.0;
10420 description { state: "focused" 0.0;
10421 inherit: "default" 0.0;
10424 part { name: "padding.left";
10427 description { state: "default" 0.0;
10432 rel1.relative: 0 0;
10433 rel2 { relative: 0.0 1.0; to_x: "elm.text";}
10437 part { name: "padding.right";
10440 description { state: "default" 0.0;
10445 rel1 { relative: 1.0 0.0; to_x: "elm.text";}
10446 rel2.relative: 1.0 1.0;
10450 part { name: "elm.text";
10455 description { state: "default" 0.0;
10459 color: BUTTON_MORE_BUTTON_TEXT_NORMAL_COLOR_INC;
10460 color2: BUTTON_MORE_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
10462 font: "SLP:style=Bold";
10469 description { state: "visible" 0.0;
10470 inherit: "default" 0.0;
10474 description { state: "clicked" 0.0;
10475 inherit: "default" 0.0;
10478 //color: 53 45 39 255;
10480 description { state: "disabled" 0.0;
10481 inherit: "default" 0.0;
10486 description { state: "disabled_visible" 0.0;
10487 inherit: "default" 0.0;
10494 description { state: "focused" 0.0;
10495 inherit: "default" 0.0;
10500 part { name: "over1";
10503 description { state: "default" 0.0;
10504 rel1.to: "button_image";
10505 rel2.to: "button_image";
10510 description { state: "disabled" 0.0;
10511 inherit: "default" 0.0;
10514 part { name: "over2";
10517 ignore_flags: ON_HOLD;
10519 description { state: "default" 0.0;
10520 rel1.to: "button_image";
10521 rel2.to: "button_image";
10526 description { state: "disabled" 0.0;
10527 inherit: "default" 0.0;
10531 part { name: "over3";
10535 description { state: "default" 0.0;
10536 rel1.to: "button_image";
10537 rel2.to: "button_image";
10538 color: 255 255 255 0;
10542 description { state: "clicked" 0.0;
10543 inherit: "default" 0.0;
10545 color: 255 255 255 0;
10548 part { name: "disabler";
10551 description { state: "default" 0.0;
10552 rel1.to: "button_image";
10553 rel2.to: "button_image";
10560 description { state: "disabled" 0.0;
10561 inherit: "default" 0.0;
10567 program { name: "button_click";
10568 signal: "mouse,down,1";
10570 action: SIGNAL_EMIT "elm,action,press" "";
10571 after: "button_click_anim";
10573 program { name: "button_click_anim";
10574 action: STATE_SET "clicked" 0.0;
10575 target: "button_image";
10576 target: "elm.text";
10578 program { name: "button_unpress";
10579 action: SIGNAL_EMIT "elm,action,unpress" "";
10581 program { name: "button_mouseout_clicked";
10582 signal: "mouse,up,1";
10587 get_state(PART:"elm.text", st, 30, vl);
10588 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
10590 emit("elm,action,default,text,set", "");
10591 set_state(PART:"elm.text", "visible", 0.0);
10593 if(get_int(button_state) !=1)
10594 set_state(PART:"button_image", "default", 0.0);
10596 after: button_unpress;
10598 program { name: "button_click2";
10599 signal: "mouse,down,1";
10601 action: STATE_SET "clicked" 0.0;
10604 program { name: "button_unclick2";
10605 signal: "mouse,clicked,1";
10607 action: STATE_SET "default" 0.0;
10610 program { name: "button_unclick3";
10611 signal: "mouse,clicked,1";
10613 action: SIGNAL_EMIT "elm,action,click" "";
10615 program { name: "text_show";
10616 signal: "elm,state,text,visible";
10618 action: STATE_SET "visible" 0.0;
10619 target: "elm.text";
10621 program { name: "text_hide";
10622 signal: "elm,state,text,hidden";
10624 action: STATE_SET "default" 0.0;
10625 target: "elm.text";
10628 program { name: "disable";
10629 signal: "elm,state,disabled";
10631 action: STATE_SET "disabled" 0.0;
10632 target: "button_image";
10635 target: "disabler";
10636 after: "disable_text";
10638 program { name: "disable_text";
10642 get_state(PART:"elm.text", st, 30, vl);
10643 if (!strcmp(st, "visible"))
10644 set_state(PART:"elm.text", "disabled_visible", 0.0);
10646 set_state(PART:"elm.text", "disabled", 0.0);
10647 set_int(button_state, 1);
10650 program { name: "enable";
10651 signal: "elm,state,enabled";
10653 action: STATE_SET "default" 0.0;
10654 target: "button_image";
10657 target: "disabler";
10658 after: "enable_text";
10660 program { name: "enable_text";
10664 get_state(PART:"elm.text", st, 30, vl);
10665 if (!strcmp(st, "disabled_visible"))
10666 set_state(PART:"elm.text", "visible", 0.0);
10668 set_state(PART:"elm.text", "default", 0.0);
10669 set_int(button_state, 0);
10672 program { name: "focused";
10673 //signal: "elm,action,focus";
10675 action: STATE_SET "focused" 0.0;
10676 target: "button_image";
10677 target: "elm.text";
10679 program { name: "unfocused";
10680 //signal: "elm,action,unfocus";
10682 action: STATE_SET "default" 0.0;
10683 target: "button_image";
10684 action: STATE_SET "visible" 0.0;
10685 target: "elm.text";
10690 ///////////////////////////////////////////////////////////////////////////////////////
10691 group { name: "elm/button/base/navigationbar_backbutton/default";
10693 image: "00_winset_btn_prev.png" COMP;
10694 image: "00_winset_btn_prev_press.png" COMP;
10697 part { name: "button_image";
10701 description { state: "default" 0.0;
10706 state: "clicked" 0.0;
10707 inherit: "default" 0.0;
10710 state: "disabled" 0.0;
10711 inherit: "default" 0.0;
10714 part {name: "padding_right";
10717 description { state: "default" 0.0;
10720 rel1 { relative: 1 0.2; }
10721 rel2 { relative: 1 0.8; }
10723 color: 238 223 194 255;
10726 part {name: "padding_before_right";
10729 description { state: "default" 0.0;
10732 rel1 { relative: 0 0; to: "padding_right"; }
10733 rel2 { relative: 0 1; to: "padding_right"; }
10735 color: 164 151 130 255;
10738 part { name: "button_center_part";
10741 description { state: "default" 0.0;
10745 rel2 { relative: 0 1; to_x: "padding_before_right"; }
10747 normal: "00_winset_btn_prev.png";
10751 state: "clicked" 0.0;
10752 inherit: "default" 0.0;
10753 image.normal: "00_winset_btn_prev_press.png";
10756 part { name: "over1";
10760 ignore_flags: ON_HOLD;
10761 description { state: "default" 0.0;
10765 part { name: "over2";
10768 description { state: "default" 0.0;
10769 color: 255 255 255 0;
10771 description { state: "clicked" 0.0;
10772 inherit: "default" 0.0;
10774 color: 255 255 255 0;
10777 part { name: "disabler";
10779 description { state: "default" 0.0;
10783 description { state: "disabled" 0.0;
10784 inherit: "default" 0.0;
10790 program { name: "button_click";
10791 signal: "mouse,down,1";
10793 action: SIGNAL_EMIT "elm,action,press" "";
10794 after: "button_click_anim";
10796 program { name: "button_click_anim";
10797 action: STATE_SET "clicked" 0.0;
10798 target: "button_image";
10799 target: "button_center_part";
10801 program { name: "button_unclick";
10802 signal: "mouse,up,1";
10804 action: SIGNAL_EMIT "elm,action,unpress" "";
10805 after: "button_unclick_anim";
10807 program { name: "button_unclick_anim";
10808 action: STATE_SET "default" 0.0;
10809 target: "button_image";
10810 target: "button_center_part";
10812 program { name: "button_click2";
10813 signal: "mouse,down,1";
10815 action: STATE_SET "clicked" 0.0;
10818 program { name: "button_unclick2";
10819 signal: "mouse,clicked,1";
10821 action: STATE_SET "default" 0.0;
10823 after: "button_unclick3";
10825 program { name: "button_unclick3";
10826 action: SIGNAL_EMIT "elm,action,click" "";
10828 program { name: "disable";
10829 signal: "elm,state,disabled";
10831 action: STATE_SET "disabled" 0.0;
10832 target: "disabler";
10833 target: "button_image";
10835 program { name: "enable";
10836 signal: "elm,state,enabled";
10838 action: STATE_SET "default" 0.0;
10839 target: "disabler";
10840 target: "button_image";
10848 ///////////////////////////////////////////////////////////////////////////////////////
10849 group { name: "elm/button/base/sound/default";
10851 image: "00_button_03_normal.png" COMP;
10852 image: "00_button_03_press.png" COMP;
10853 image: "00_button_03_focus.png" COMP;
10856 public button_state = 0; //0:enabled, 1: disabled
10859 part { name: "button_image";
10862 description { state: "default" 0.0;
10865 normal: "00_button_03_normal.png";
10870 description { state: "clicked" 0.0;
10871 inherit: "default" 0.0;
10872 image.normal: "00_button_03_press.png";
10874 description { state: "disabled" 0.0;
10875 inherit: "default" 0.0;
10877 description { state: "focused" 0.0;
10878 inherit: "default" 0.0;
10879 image.normal: "00_button_03_focus.png";
10883 name: "padding_left";
10887 description { state: "default" 0.0;
10889 rel1.relative: 0.0 0.0;
10890 rel2.relative: 0.0 1.0;
10897 name: "padding_right";
10901 description { state: "default" 0.0;
10903 rel1.relative: 1.0 0.0;
10904 rel2.relative: 1.0 1.0;
10911 name: "padding_top";
10915 description { state: "default" 0.0;
10917 rel1.relative: 0.0 0.0;
10918 rel2.relative: 1.0 0.0;
10925 name: "padding_bottom";
10929 description { state: "default" 0.0;
10931 rel1.relative: 0.0 1.0;
10932 rel2.relative: 1.0 1.0;
10943 description { state: "default" 0.0;
10947 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
10948 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
10954 name: "padding_icon_text";
10958 description { state: "default" 0.0; //when only icon or no icon is there
10960 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10961 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10966 description { state: "icononly" 0.0;
10967 inherit: "default" 0.0;
10969 description { state: "visible" 0.0; //when icon is visible
10971 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10972 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10978 part { name: "elm.swallow.content";
10981 description { state: "default" 0.0;
10984 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10985 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10988 description { state: "visible" 0.0;
10992 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10993 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10995 aspect_preference: VERTICAL;
10997 description { state: "icononly" 0.0;;
11000 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11001 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11004 aspect_preference: VERTICAL;
11007 part { name: "elm.text";
11012 description { state: "default" 0.0;
11014 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11015 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11017 color: 90 73 40 255;
11018 color2: 255 255 255 255;
11027 description { state: "visible" 0.0;
11028 inherit: "default" 0.0;
11032 description { state: "clicked" 0.0;
11033 inherit: "default" 0.0;
11036 color: 255 255 255 255;
11039 description { state: "disabled" 0.0;
11040 inherit: "default" 0.0;
11044 description { state: "disabled_visible" 0.0;
11045 inherit: "default" 0.0;
11050 description { state: "focused" 0.0;
11051 inherit: "default" 0.0;
11054 color: 255 255 255 255;
11058 part { name: "over2";
11062 ignore_flags: ON_HOLD;
11063 description { state: "default" 0.0;
11066 description { state: "disabled" 0.0;
11067 inherit: "default" 0.0;
11071 part { name: "over3";
11075 description { state: "default" 0.0;
11078 description { state: "clicked" 0.0;
11079 inherit: "default" 0.0;
11083 part { name: "disabler";
11085 description { state: "default" 0.0;
11089 description { state: "disabled" 0.0;
11090 inherit: "default" 0.0;
11096 program { name: "button_click";
11097 signal: "mouse,down,1";
11099 action: SIGNAL_EMIT "elm,action,press" "";
11100 after: "button_click_anim";
11101 //after:touch_sound ;
11104 program { name: touch_sound;
11105 action: TOUCH_SOUND "button-pressed.wav" 2 ;
11108 program { name: "button_click_anim";
11109 action: STATE_SET "clicked" 0.0;
11110 target: "button_image";
11111 after: "text_clicked";
11113 program { name: "text_clicked";
11117 get_state(PART:"elm.text", st, 30, vl);
11118 if (!strcmp(st, "visible"))
11119 set_state(PART:"elm.text", "clicked", 0.0);
11122 program { name: "button_unpress";
11123 action: SIGNAL_EMIT "elm,action,unpress" "";
11125 program { name: "button_mouseout_clicked";
11126 signal: "mouse,up,1";
11131 get_state(PART:"elm.swallow.content", st, 30, vl);
11132 if (strcmp(st, "icononly"))
11134 emit("elm,action,default,text,set", "");
11135 set_state(PART:"elm.text", "visible", 0.0);
11137 if(get_int(button_state) !=1)
11138 set_state(PART:"button_image", "default", 0.0);
11140 after: button_unpress;
11142 program { name: "button_click2";
11143 signal: "mouse,down,1";
11145 action: STATE_SET "clicked" 0.0;
11148 program { name: "button_unclick2";
11149 signal: "mouse,clicked,1";
11151 action: STATE_SET "default" 0.0;
11154 program { name: "button_unclick3";
11155 signal: "mouse,clicked,1";
11157 action: SIGNAL_EMIT "elm,action,click" "";
11159 program { name: "text_show";
11160 signal: "elm,state,text,visible";
11165 get_state(PART:"elm.swallow.content", st, 30, vl);
11166 if (!strcmp(st, "icononly"))
11168 set_state(PART:"elm.swallow.content", "visible", 0.0);
11169 set_state(PART:"padding_icon_text", "visible", 0.0);
11171 set_state(PART:"elm.text", "visible", 0.0);
11174 program { name: "text_hide";
11175 signal: "elm,state,text,hidden";
11180 get_state(PART:"elm.swallow.content", st, 30, vl);
11181 if (!strcmp(st, "visible"))
11183 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11184 set_state(PART:"padding_icon_text", "icononly", 0.0);
11186 set_state(PART:"elm.text", "default", 0.0);
11189 program { name: "icon_show";
11190 signal: "elm,state,icon,visible";
11195 get_state(PART:"elm.text", st, 30, vl);
11196 if (!strcmp(st, "visible"))
11198 set_state(PART:"elm.swallow.content", "visible", 0.0);
11199 set_state(PART:"padding_icon_text", "visible", 0.0);
11203 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11204 set_state(PART:"padding_icon_text", "icononly", 0.0);
11208 program { name: "icon_hide";
11209 signal: "elm,state,icon,hidden";
11211 action: STATE_SET "default" 0.0;
11212 target: "elm.swallow.content";
11214 program { name: "disable";
11215 signal: "elm,state,disabled";
11217 action: STATE_SET "disabled" 0.0;
11218 target: "button_image";
11220 target: "disabler";
11221 after: "disable_text";
11223 program { name: "disable_text";
11227 get_state(PART:"elm.text", st, 30, vl);
11228 if (!strcmp(st, "visible"))
11229 set_state(PART:"elm.text", "disabled_visible", 0.0);
11231 set_state(PART:"elm.text", "disabled", 0.0);
11232 set_int(button_state, 1);
11235 program { name: "enable";
11236 signal: "elm,state,enabled";
11238 action: STATE_SET "default" 0.0;
11239 target: "button_image";
11241 target: "disabler";
11242 after: "enable_text";
11244 program { name: "enable_text";
11248 get_state(PART:"elm.text", st, 30, vl);
11249 if (!strcmp(st, "disabled_visible"))
11250 set_state(PART:"elm.text", "visible", 0.0);
11252 set_state(PART:"elm.text", "default", 0.0);
11253 set_int(button_state, 0);
11256 program { name: "focused";
11257 //signal: "elm,action,focus";
11259 action: STATE_SET "focused" 0.0;
11260 target: "button_image";
11261 target: "elm.text";
11263 program { name: "unfocused";
11264 //signal: "elm,action,unfocus";
11266 action: STATE_SET "default" 0.0;
11267 target: "button_image";
11268 after: "unfocus_text";
11270 program { name: "unfocus_text";
11271 action: STATE_SET "visible" 0.0;
11272 target: "elm.text";
11277 ///////////////////////////////////////////////////////////////////////////////////////
11278 group { name: "elm/button/haptic/default";
11280 image: "00_button_03_normal.png" COMP;
11281 image: "00_button_03_press.png" COMP;
11282 image: "00_button_03_focus.png" COMP;
11285 public button_state = 0; //0:enabled, 1: disabled
11288 part { name: "button_image";
11291 description { state: "default" 0.0;
11294 normal: "00_button_03_normal.png";
11299 description { state: "clicked" 0.0;
11300 inherit: "default" 0.0;
11301 image.normal: "00_button_03_press.png";
11303 description { state: "disabled" 0.0;
11304 inherit: "default" 0.0;
11306 description { state: "focused" 0.0;
11307 inherit: "default" 0.0;
11308 image.normal: "00_button_03_focus.png";
11312 name: "padding_left";
11316 description { state: "default" 0.0;
11318 rel1.relative: 0.0 0.0;
11319 rel2.relative: 0.0 1.0;
11326 name: "padding_right";
11330 description { state: "default" 0.0;
11332 rel1.relative: 1.0 0.0;
11333 rel2.relative: 1.0 1.0;
11340 name: "padding_top";
11344 description { state: "default" 0.0;
11346 rel1.relative: 0.0 0.0;
11347 rel2.relative: 1.0 0.0;
11354 name: "padding_bottom";
11358 description { state: "default" 0.0;
11360 rel1.relative: 0.0 1.0;
11361 rel2.relative: 1.0 1.0;
11372 description { state: "default" 0.0;
11376 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
11377 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
11383 name: "padding_icon_text";
11387 description { state: "default" 0.0; //when only icon or no icon is there
11389 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11390 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11395 description { state: "icononly" 0.0;
11396 inherit: "default" 0.0;
11398 description { state: "visible" 0.0; //when icon is visible
11400 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11401 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11407 part { name: "elm.swallow.content";
11410 description { state: "default" 0.0;
11413 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11414 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11417 description { state: "visible" 0.0;
11421 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11422 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11424 aspect_preference: VERTICAL;
11426 description { state: "icononly" 0.0;;
11429 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11430 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11433 aspect_preference: VERTICAL;
11436 part { name: "elm.text";
11441 description { state: "default" 0.0;
11443 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11444 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11446 color: 90 73 40 255;
11447 color2: 255 255 255 255;
11456 description { state: "visible" 0.0;
11457 inherit: "default" 0.0;
11461 description { state: "clicked" 0.0;
11462 inherit: "default" 0.0;
11465 color: 255 255 255 255;
11468 description { state: "disabled" 0.0;
11469 inherit: "default" 0.0;
11473 description { state: "disabled_visible" 0.0;
11474 inherit: "default" 0.0;
11479 description { state: "focused" 0.0;
11480 inherit: "default" 0.0;
11483 color: 255 255 255 255;
11487 part { name: "over2";
11491 ignore_flags: ON_HOLD;
11492 description { state: "default" 0.0;
11495 description { state: "disabled" 0.0;
11496 inherit: "default" 0.0;
11500 part { name: "over3";
11504 description { state: "default" 0.0;
11507 description { state: "clicked" 0.0;
11508 inherit: "default" 0.0;
11512 part { name: "disabler";
11514 description { state: "default" 0.0;
11518 description { state: "disabled" 0.0;
11519 inherit: "default" 0.0;
11525 program { name: "button_click";
11526 signal: "mouse,down,1";
11528 action: SIGNAL_EMIT "elm,action,press" "";
11529 after: "button_click_anim";
11531 program { name: "button_click_anim";
11532 action: STATE_SET "clicked" 0.0;
11533 target: "button_image";
11534 after: "text_clicked";
11536 program { name: "text_clicked";
11540 get_state(PART:"elm.text", st, 30, vl);
11541 if (!strcmp(st, "visible"))
11542 set_state(PART:"elm.text", "clicked", 0.0);
11545 program { name: "button_unpress";
11546 action: SIGNAL_EMIT "elm,action,unpress" "";
11548 program { name: "button_mouseout_clicked";
11549 signal: "mouse,up,1";
11554 get_state(PART:"elm.swallow.content", st, 30, vl);
11555 if (strcmp(st, "icononly"))
11557 emit("elm,action,default,text,set", "");
11558 set_state(PART:"elm.text", "visible", 0.0);
11560 if(get_int(button_state) !=1)
11561 set_state(PART:"button_image", "default", 0.0);
11563 after: button_unpress;
11565 program { name: "button_click2";
11566 signal: "mouse,down,1";
11568 action: STATE_SET "clicked" 0.0;
11571 program { name: "button_unclick2";
11572 signal: "mouse,clicked,1";
11574 action: STATE_SET "default" 0.0;
11577 program { name: "button_unclick3";
11578 signal: "mouse,clicked,1";
11580 action: SIGNAL_EMIT "elm,action,click" "";
11582 program { name: "text_show";
11583 signal: "elm,state,text,visible";
11588 get_state(PART:"elm.swallow.content", st, 30, vl);
11589 if (!strcmp(st, "icononly"))
11591 set_state(PART:"elm.swallow.content", "visible", 0.0);
11592 set_state(PART:"padding_icon_text", "visible", 0.0);
11594 set_state(PART:"elm.text", "visible", 0.0);
11597 program { name: "text_hide";
11598 signal: "elm,state,text,hidden";
11603 get_state(PART:"elm.swallow.content", st, 30, vl);
11604 if (!strcmp(st, "visible"))
11606 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11607 set_state(PART:"padding_icon_text", "icononly", 0.0);
11609 set_state(PART:"elm.text", "default", 0.0);
11612 program { name: "icon_show";
11613 signal: "elm,state,icon,visible";
11618 get_state(PART:"elm.text", st, 30, vl);
11619 if (!strcmp(st, "visible"))
11621 set_state(PART:"elm.swallow.content", "visible", 0.0);
11622 set_state(PART:"padding_icon_text", "visible", 0.0);
11626 set_state(PART:"elm.swallow.content", "icononly", 0.0);
11627 set_state(PART:"padding_icon_text", "icononly", 0.0);
11631 program { name: "icon_hide";
11632 signal: "elm,state,icon,hidden";
11634 action: STATE_SET "default" 0.0;
11635 target: "elm.swallow.content";
11637 program { name: "disable";
11638 signal: "elm,state,disabled";
11640 action: STATE_SET "disabled" 0.0;
11641 target: "button_image";
11643 target: "disabler";
11644 after: "disable_text";
11646 program { name: "disable_text";
11650 get_state(PART:"elm.text", st, 30, vl);
11651 if (!strcmp(st, "visible"))
11652 set_state(PART:"elm.text", "disabled_visible", 0.0);
11654 set_state(PART:"elm.text", "disabled", 0.0);
11655 set_int(button_state, 1);
11658 program { name: "enable";
11659 signal: "elm,state,enabled";
11661 action: STATE_SET "default" 0.0;
11662 target: "button_image";
11664 target: "disabler";
11665 after: "enable_text";
11667 program { name: "enable_text";
11671 get_state(PART:"elm.text", st, 30, vl);
11672 if (!strcmp(st, "disabled_visible"))
11673 set_state(PART:"elm.text", "visible", 0.0);
11675 set_state(PART:"elm.text", "default", 0.0);
11676 set_int(button_state, 0);
11679 program { name: "focused";
11680 //signal: "elm,action,focus";
11682 action: STATE_SET "focused" 0.0;
11683 target: "button_image";
11684 target: "elm.text";
11686 program { name: "unfocused";
11687 //signal: "elm,action,unfocus";
11689 action: STATE_SET "default" 0.0;
11690 target: "button_image";
11691 after: "unfocus_text";
11693 program { name: "unfocus_text";
11694 action: STATE_SET "visible" 0.0;
11695 target: "elm.text";
11700 ///////////////////////////////////////////////////////////////////////////////////////
11701 group { name: "elm/button/base/sound_haptic/default";
11703 image: "00_button_03_normal.png" COMP;
11704 image: "00_button_03_press.png" COMP;
11705 image: "00_button_03_focus.png" COMP;
11708 public button_state = 0; //0:enabled, 1: disabled
11711 part { name: "button_image";
11714 description { state: "default" 0.0;
11717 normal: "00_button_03_normal.png";
11722 description { state: "clicked" 0.0;
11723 inherit: "default" 0.0;
11724 image.normal: "00_button_03_press.png";
11726 description { state: "disabled" 0.0;
11727 inherit: "default" 0.0;
11729 description { state: "focused" 0.0;
11730 inherit: "default" 0.0;
11731 image.normal: "00_button_03_focus.png";
11735 name: "padding_left";
11739 description { state: "default" 0.0;
11741 rel1.relative: 0.0 0.0;
11742 rel2.relative: 0.0 1.0;
11749 name: "padding_right";
11753 description { state: "default" 0.0;
11755 rel1.relative: 1.0 0.0;
11756 rel2.relative: 1.0 1.0;
11763 name: "padding_top";
11767 description { state: "default" 0.0;
11769 rel1.relative: 0.0 0.0;
11770 rel2.relative: 1.0 0.0;
11777 name: "padding_bottom";
11781 description { state: "default" 0.0;
11783 rel1.relative: 0.0 1.0;
11784 rel2.relative: 1.0 1.0;
11795 description { state: "default" 0.0;
11799 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
11800 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
11806 name: "padding_icon_text";
11810 description { state: "default" 0.0; //when only icon or no icon is there
11812 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11813 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11818 description { state: "icononly" 0.0;
11819 inherit: "default" 0.0;
11821 description { state: "visible" 0.0; //when icon is visible
11823 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11824 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11830 part { name: "elm.swallow.content";
11833 description { state: "default" 0.0;
11836 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11837 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11840 description { state: "visible" 0.0;
11844 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11845 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11847 aspect_preference: VERTICAL;
11849 description { state: "icononly" 0.0;;
11852 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11853 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11856 aspect_preference: VERTICAL;
11859 part { name: "elm.text";
11864 description { state: "default" 0.0;
11866 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11867 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11869 color: 90 73 40 255;
11870 color2: 255 255 255 255;
11879 description { state: "visible" 0.0;
11880 inherit: "default" 0.0;
11884 description { state: "clicked" 0.0;
11885 inherit: "default" 0.0;
11888 color: 255 255 255 255;
11891 description { state: "disabled" 0.0;
11892 inherit: "default" 0.0;
11896 description { state: "disabled_visible" 0.0;
11897 inherit: "default" 0.0;
11902 description { state: "focused" 0.0;
11903 inherit: "default" 0.0;
11906 color: 255 255 255 255;
11910 part { name: "over2";
11914 ignore_flags: ON_HOLD;
11915 description { state: "default" 0.0;
11918 description { state: "disabled" 0.0;
11919 inherit: "default" 0.0;
11923 part { name: "over3";
11927 description { state: "default" 0.0;
11930 description { state: "clicked" 0.0;
11931 inherit: "default" 0.0;
11935 part { name: "disabler";
11937 description { state: "default" 0.0;
11941 description { state: "disabled" 0.0;
11942 inherit: "default" 0.0;
11948 program { name: "button_click";
11949 signal: "mouse,down,1";
11951 action: SIGNAL_EMIT "elm,action,press" "";
11952 after: "button_click_anim";
11953 //after:touch_sound ;
11956 program { name: touch_sound;
11957 action: TOUCH_SOUND "Waterdrop.wav" 2 ;
11960 program { name: "button_click_anim";
11961 action: STATE_SET "clicked" 0.0;
11962 target: "button_image";
11963 after: "text_clicked";
11965 program { name: "text_clicked";
11969 get_state(PART:"elm.text", st, 30, vl);
11970 if (!strcmp(st, "visible"))
11971 set_state(PART:"elm.text", "clicked", 0.0);
11974 program { name: "button_unpress";
11975 action: SIGNAL_EMIT "elm,action,unpress" "";
11977 program { name: "button_mouseout_clicked";
11978 signal: "mouse,up,1";
11983 get_state(PART:"elm.swallow.content", st, 30, vl);
11984 if (strcmp(st, "icononly"))
11986 emit("elm,action,default,text,set", "");
11987 set_state(PART:"elm.text", "visible", 0.0);
11989 if(get_int(button_state) !=1)
11990 set_state(PART:"button_image", "default", 0.0);
11992 after: button_unpress;
11994 program { name: "button_click2";
11995 signal: "mouse,down,1";
11997 action: STATE_SET "clicked" 0.0;
12000 program { name: "button_unclick2";
12001 signal: "mouse,clicked,1";
12003 action: STATE_SET "default" 0.0;
12006 program { name: "button_unclick3";
12007 signal: "mouse,clicked,1";
12009 action: SIGNAL_EMIT "elm,action,click" "";
12011 program { name: "text_show";
12012 signal: "elm,state,text,visible";
12017 get_state(PART:"elm.swallow.content", st, 30, vl);
12018 if (!strcmp(st, "icononly"))
12020 set_state(PART:"elm.swallow.content", "visible", 0.0);
12021 set_state(PART:"padding_icon_text", "visible", 0.0);
12023 set_state(PART:"elm.text", "visible", 0.0);
12026 program { name: "text_hide";
12027 signal: "elm,state,text,hidden";
12032 get_state(PART:"elm.swallow.content", st, 30, vl);
12033 if (!strcmp(st, "visible"))
12035 set_state(PART:"elm.swallow.content", "icononly", 0.0);
12036 set_state(PART:"padding_icon_text", "icononly", 0.0);
12038 set_state(PART:"elm.text", "default", 0.0);
12041 program { name: "icon_show";
12042 signal: "elm,state,icon,visible";
12047 get_state(PART:"elm.text", st, 30, vl);
12048 if (!strcmp(st, "visible"))
12050 set_state(PART:"elm.swallow.content", "visible", 0.0);
12051 set_state(PART:"padding_icon_text", "visible", 0.0);
12055 set_state(PART:"elm.swallow.content", "icononly", 0.0);
12056 set_state(PART:"padding_icon_text", "icononly", 0.0);
12060 program { name: "icon_hide";
12061 signal: "elm,state,icon,hidden";
12063 action: STATE_SET "default" 0.0;
12064 target: "elm.swallow.content";
12066 program { name: "disable";
12067 signal: "elm,state,disabled";
12069 action: STATE_SET "disabled" 0.0;
12070 target: "button_image";
12072 target: "disabler";
12073 after: "disable_text";
12075 program { name: "disable_text";
12079 get_state(PART:"elm.text", st, 30, vl);
12080 if (!strcmp(st, "visible"))
12081 set_state(PART:"elm.text", "disabled_visible", 0.0);
12083 set_state(PART:"elm.text", "disabled", 0.0);
12084 set_int(button_state, 1);
12087 program { name: "enable";
12088 signal: "elm,state,enabled";
12090 action: STATE_SET "default" 0.0;
12091 target: "button_image";
12093 target: "disabler";
12094 after: "enable_text";
12096 program { name: "enable_text";
12100 get_state(PART:"elm.text", st, 30, vl);
12101 if (!strcmp(st, "disabled_visible"))
12102 set_state(PART:"elm.text", "visible", 0.0);
12104 set_state(PART:"elm.text", "default", 0.0);
12105 set_int(button_state, 0);
12108 program { name: "focused";
12109 //signal: "elm,action,focus";
12111 action: STATE_SET "focused" 0.0;
12112 target: "button_image";
12113 target: "elm.text";
12115 program { name: "unfocused";
12116 //signal: "elm,action,unfocus";
12118 action: STATE_SET "default" 0.0;
12119 target: "button_image";
12120 after: "unfocus_text";
12122 program { name: "unfocus_text";
12123 action: STATE_SET "visible" 0.0;
12124 target: "elm.text";
12129 ///////////////////////////////////////////////////////////////////////////////////////
12130 group { name: "elm/button/base/calendarpicker/prev";
12132 image: "00_picker_btn_normal.png" COMP;
12133 image: "00_picker_btn_press.png" COMP;
12134 image: "00_picker_arrow_left.png" COMP;
12135 image: "00_picker_arrow_left_press.png" COMP;
12138 public button_state = 0; //0:enabled, 1: disabled
12141 part { name: "button_image";
12144 description { state: "default" 0.0;
12148 normal: "00_picker_btn_normal.png";
12153 description { state: "clicked" 0.0;
12154 inherit: "default" 0.0;
12155 image.normal: "00_picker_btn_press.png";
12157 description { state: "disabled" 0.0;
12158 inherit: "default" 0.0;
12160 description { state: "focused" 0.0;
12161 inherit: "default" 0.0;
12162 image.normal: "00_picker_btn_press.png";
12166 name: "padding_left";
12170 description { state: "default" 0.0;
12172 rel1.relative: 0.0 0.0;
12173 rel2.relative: 0.0 1.0;
12180 name: "padding_right";
12184 description { state: "default" 0.0;
12186 rel1.relative: 1.0 0.0;
12187 rel2.relative: 1.0 1.0;
12194 name: "padding_top";
12198 description { state: "default" 0.0;
12200 rel1.relative: 0.0 0.0;
12201 rel2.relative: 1.0 0.0;
12208 name: "padding_bottom";
12212 description { state: "default" 0.0;
12214 rel1.relative: 0.0 1.0;
12215 rel2.relative: 1.0 1.0;
12222 name: "left_arrow";
12226 description { state: "default" 0.0;
12230 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12231 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12232 image.normal: "00_picker_arrow_left.png";
12234 description { state: "clicked" 0.0;
12235 inherit: "default" 0.0;
12236 image.normal: "00_picker_arrow_left_press.png";
12239 part { name: "over2";
12243 ignore_flags: ON_HOLD;
12244 description { state: "default" 0.0;
12247 description { state: "disabled" 0.0;
12248 inherit: "default" 0.0;
12252 part { name: "over3";
12256 description { state: "default" 0.0;
12259 description { state: "clicked" 0.0;
12260 inherit: "default" 0.0;
12264 part { name: "disabler";
12266 description { state: "default" 0.0;
12270 description { state: "disabled" 0.0;
12271 inherit: "default" 0.0;
12277 program { name: "button_click";
12278 signal: "mouse,down,1";
12280 action: SIGNAL_EMIT "elm,action,press" "";
12281 after: "button_click_anim";
12283 program { name: "button_click_anim";
12284 action: STATE_SET "clicked" 0.0;
12285 target: "button_image";
12287 program { name: "button_unpress";
12288 action: SIGNAL_EMIT "elm,action,unpress" "";
12290 program { name: "button_mouseout_clicked";
12291 signal: "mouse,up,1";
12294 if(get_int(button_state) !=1)
12295 set_state(PART:"button_image", "default", 0.0);
12297 after: button_unpress;
12299 program { name: "button_click2";
12300 signal: "mouse,down,1";
12302 action: STATE_SET "clicked" 0.0;
12305 program { name: "button_unclick2";
12306 signal: "mouse,clicked,1";
12308 action: STATE_SET "default" 0.0;
12311 program { name: "button_unclick3";
12312 signal: "mouse,clicked,1";
12314 action: SIGNAL_EMIT "elm,action,click" "";
12316 program { name: "disable";
12317 signal: "elm,state,disabled";
12319 action: STATE_SET "disabled" 0.0;
12320 target: "button_image";
12322 target: "disabler";
12323 after: "disable_button";
12325 program { name: "disable_button";
12327 set_int(button_state, 1);
12330 program { name: "enable";
12331 signal: "elm,state,enabled";
12333 action: STATE_SET "default" 0.0;
12334 target: "button_image";
12336 target: "disabler";
12337 after: "enable_button";
12339 program { name: "enable_button";
12341 set_int(button_state, 0);
12344 program { name: "focused";
12345 //signal: "elm,action,focus";
12347 action: STATE_SET "focused" 0.0;
12348 target: "button_image";
12350 program { name: "unfocused";
12351 //signal: "elm,action,unfocus";
12353 action: STATE_SET "default" 0.0;
12354 target: "button_image";
12359 ///////////////////////////////////////////////////////////////////////////////////////
12360 group { name: "elm/button/base/calendarpicker/next";
12362 image: "00_picker_btn_normal.png" COMP;
12363 image: "00_picker_btn_press.png" COMP;
12364 image: "00_picker_arrow_right.png" COMP;
12365 image: "00_picker_arrow_right_press.png" COMP;
12368 public button_state = 0; //0:enabled, 1: disabled
12371 part { name: "button_image";
12374 description { state: "default" 0.0;
12378 normal: "00_picker_btn_normal.png";
12383 description { state: "clicked" 0.0;
12384 inherit: "default" 0.0;
12385 image.normal: "00_picker_btn_press.png";
12387 description { state: "disabled" 0.0;
12388 inherit: "default" 0.0;
12390 description { state: "focused" 0.0;
12391 inherit: "default" 0.0;
12392 image.normal: "00_picker_btn_press.png";
12396 name: "padding_left";
12400 description { state: "default" 0.0;
12402 rel1.relative: 0.0 0.0;
12403 rel2.relative: 0.0 1.0;
12410 name: "padding_right";
12414 description { state: "default" 0.0;
12416 rel1.relative: 1.0 0.0;
12417 rel2.relative: 1.0 1.0;
12424 name: "padding_top";
12428 description { state: "default" 0.0;
12430 rel1.relative: 0.0 0.0;
12431 rel2.relative: 1.0 0.0;
12438 name: "padding_bottom";
12442 description { state: "default" 0.0;
12444 rel1.relative: 0.0 1.0;
12445 rel2.relative: 1.0 1.0;
12452 name: "left_arrow";
12456 description { state: "default" 0.0;
12460 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12461 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12462 image.normal: "00_picker_arrow_right.png";
12464 description { state: "clicked" 0.0;
12465 inherit: "default" 0.0;
12466 image.normal: "00_picker_arrow_right_press.png";
12469 part { name: "over2";
12473 ignore_flags: ON_HOLD;
12474 description { state: "default" 0.0;
12477 description { state: "disabled" 0.0;
12478 inherit: "default" 0.0;
12482 part { name: "over3";
12486 description { state: "default" 0.0;
12489 description { state: "clicked" 0.0;
12490 inherit: "default" 0.0;
12494 part { name: "disabler";
12496 description { state: "default" 0.0;
12500 description { state: "disabled" 0.0;
12501 inherit: "default" 0.0;
12507 program { name: "button_click";
12508 signal: "mouse,down,1";
12510 action: SIGNAL_EMIT "elm,action,press" "";
12511 after: "button_click_anim";
12513 program { name: "button_click_anim";
12514 action: STATE_SET "clicked" 0.0;
12515 target: "button_image";
12517 program { name: "button_unpress";
12518 action: SIGNAL_EMIT "elm,action,unpress" "";
12520 program { name: "button_mouseout_clicked";
12521 signal: "mouse,up,1";
12524 if(get_int(button_state) !=1)
12525 set_state(PART:"button_image", "default", 0.0);
12527 after: button_unpress;
12529 program { name: "button_click2";
12530 signal: "mouse,down,1";
12532 action: STATE_SET "clicked" 0.0;
12535 program { name: "button_unclick2";
12536 signal: "mouse,clicked,1";
12538 action: STATE_SET "default" 0.0;
12541 program { name: "button_unclick3";
12542 signal: "mouse,clicked,1";
12544 action: SIGNAL_EMIT "elm,action,click" "";
12546 program { name: "disable";
12547 signal: "elm,state,disabled";
12549 action: STATE_SET "disabled" 0.0;
12550 target: "button_image";
12552 target: "disabler";
12553 after: "disable_button";
12555 program { name: "disable_button";
12557 set_int(button_state, 1);
12560 program { name: "enable";
12561 signal: "elm,state,enabled";
12563 action: STATE_SET "default" 0.0;
12564 target: "button_image";
12566 target: "disabler";
12567 after: "enable_button";
12569 program { name: "enable_button";
12571 set_int(button_state, 0);
12574 program { name: "focused";
12575 //signal: "elm,action,focus";
12577 action: STATE_SET "focused" 0.0;
12578 target: "button_image";
12580 program { name: "unfocused";
12581 //signal: "elm,action,unfocus";
12583 action: STATE_SET "default" 0.0;
12584 target: "button_image";
12589 //###############################################
12590 // Nocontents Search Button Styles //
12591 //###############################################
12593 group { name: "elm/button/base/nocontents/search_button";
12595 image: "00_button_03_normal.png" COMP;
12596 image: "00_button_03_press.png" COMP;
12597 image: "00_button_03_focus.png" COMP;
12600 public button_state = 0; //0:enabled, 1: disabled
12603 part { name: "button_image";
12606 description { state: "default" 0.0;
12609 normal: "00_button_03_normal.png";
12614 description { state: "clicked" 0.0;
12615 inherit: "default" 0.0;
12616 image.normal: "00_button_03_press.png";
12618 description { state: "disabled" 0.0;
12619 inherit: "default" 0.0;
12621 description { state: "focused" 0.0;
12622 inherit: "default" 0.0;
12623 image.normal: "00_button_03_focus.png";
12627 name: "padding_left";
12631 description { state: "default" 0.0;
12633 rel1.relative: 0.0 0.0;
12634 rel2.relative: 0.0 1.0;
12641 name: "padding_right";
12645 description { state: "default" 0.0;
12647 rel1.relative: 1.0 0.0;
12648 rel2.relative: 1.0 1.0;
12655 name: "padding_top";
12659 description { state: "default" 0.0;
12661 rel1.relative: 0.0 0.0;
12662 rel2.relative: 1.0 0.0;
12669 name: "padding_bottom";
12673 description { state: "default" 0.0;
12675 rel1.relative: 0.0 1.0;
12676 rel2.relative: 1.0 1.0;
12687 description { state: "default" 0.0;
12691 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12692 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12696 description { state: "visible" 0.0;
12700 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12701 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12703 aspect_preference: VERTICAL;
12707 description { state: "icononly" 0.0;
12708 inherit: "default" 0.0;
12712 name: "padding_after_icon";
12716 description { state: "default" 0.0; //when only icon or no icon is there
12718 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
12719 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
12722 color: 0 255 0 100;
12724 description { state: "visible" 0.0;
12727 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
12728 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
12734 description { state: "icononly" 0.0;
12735 inherit: "default" 0.0;
12739 name: "padding_before_text";
12743 description { state: "default" 0.0; //when only icon or no icon is there
12745 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
12746 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
12753 part { name: "elm.swallow.content";
12756 description { state: "default" 0.0;
12759 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12760 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12763 description { state: "visible" 0.0;
12767 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
12768 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
12770 aspect_preference: VERTICAL;
12772 description { state: "icononly" 0.0;;
12775 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12776 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12779 aspect_preference: VERTICAL;
12782 part { name: "elm.text";
12787 description { state: "default" 0.0;
12789 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
12790 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
12792 color: 51 102 255 255;
12793 color2: 255 255 255 255;
12795 font: "SLP:style=Medium";
12802 description { state: "visible" 0.0;
12803 inherit: "default" 0.0;
12807 description { state: "clicked" 0.0;
12808 inherit: "default" 0.0;
12811 color: 255 255 255 255;
12814 description { state: "disabled" 0.0;
12815 inherit: "default" 0.0;
12819 description { state: "disabled_visible" 0.0;
12820 inherit: "default" 0.0;
12825 description { state: "focused" 0.0;
12826 inherit: "default" 0.0;
12829 color: 255 255 255 255;
12833 part { name: "over2";
12837 ignore_flags: ON_HOLD;
12838 description { state: "default" 0.0;
12841 description { state: "disabled" 0.0;
12842 inherit: "default" 0.0;
12846 part { name: "over3";
12850 description { state: "default" 0.0;
12853 description { state: "clicked" 0.0;
12854 inherit: "default" 0.0;
12858 part { name: "disabler";
12860 description { state: "default" 0.0;
12864 description { state: "disabled" 0.0;
12865 inherit: "default" 0.0;
12871 program { name: "button_click";
12872 signal: "mouse,down,1";
12874 action: SIGNAL_EMIT "elm,action,press" "";
12875 after: "button_click_anim";
12877 program { name: "button_click_anim";
12878 action: STATE_SET "clicked" 0.0;
12879 target: "button_image";
12880 after: "text_clicked";
12882 program { name: "text_clicked";
12886 get_state(PART:"elm.text", st, 30, vl);
12887 if (!strcmp(st, "visible"))
12888 set_state(PART:"elm.text", "clicked", 0.0);
12891 program { name: "button_unpress";
12892 action: SIGNAL_EMIT "elm,action,unpress" "";
12894 program { name: "button_mouseout_clicked";
12895 signal: "mouse,up,1";
12900 get_state(PART:"elm.swallow.content", st, 30, vl);
12901 if (strcmp(st, "icononly"))
12903 emit("elm,action,default,text,set", "");
12904 set_state(PART:"elm.text", "visible", 0.0);
12906 if(get_int(button_state) !=1)
12907 set_state(PART:"button_image", "default", 0.0);
12909 after: button_unpress;
12911 program { name: "button_click2";
12912 signal: "mouse,down,1";
12914 action: STATE_SET "clicked" 0.0;
12917 program { name: "button_unclick2";
12918 signal: "mouse,clicked,1";
12920 action: STATE_SET "default" 0.0;
12923 program { name: "button_unclick3";
12924 signal: "mouse,clicked,1";
12926 action: SIGNAL_EMIT "elm,action,click" "";
12928 program { name: "text_show";
12929 signal: "elm,state,text,visible";
12934 get_state(PART:"elm.swallow.content", st, 30, vl);
12935 if (!strcmp(st, "icononly"))
12937 set_state(PART:"elm.swallow.content", "visible", 0.0);
12938 set_state(PART:"icon_rect", "visible", 0.0);
12939 set_state(PART:"padding_after_icon", "visible", 0.0);
12941 set_state(PART:"elm.text", "visible", 0.0);
12944 program { name: "text_hide";
12945 signal: "elm,state,text,hidden";
12950 get_state(PART:"elm.swallow.content", st, 30, vl);
12951 if (!strcmp(st, "visible"))
12953 set_state(PART:"elm.swallow.content", "icononly", 0.0);
12954 set_state(PART:"icon_rect", "icononly", 0.0);
12955 set_state(PART:"padding_after_icon", "icononly", 0.0);
12957 set_state(PART:"elm.text", "default", 0.0);
12960 program { name: "icon_show";
12961 signal: "elm,state,icon,visible";
12966 get_state(PART:"elm.text", st, 30, vl);
12967 if (!strcmp(st, "visible"))
12969 set_state(PART:"elm.swallow.content", "visible", 0.0);
12970 set_state(PART:"icon_rect", "visible", 0.0);
12971 set_state(PART:"padding_after_icon", "visible", 0.0);
12975 set_state(PART:"elm.swallow.content", "icononly", 0.0);
12976 set_state(PART:"icon_rect", "icononly", 0.0);
12977 set_state(PART:"padding_after_icon", "icononly", 0.0);
12981 program { name: "icon_hide";
12982 signal: "elm,state,icon,hidden";
12984 action: STATE_SET "default" 0.0;
12985 target: "elm.swallow.content";
12987 program { name: "disable";
12988 signal: "elm,state,disabled";
12990 action: STATE_SET "disabled" 0.0;
12991 target: "button_image";
12993 target: "disabler";
12994 after: "disable_text";
12996 program { name: "disable_text";
13000 get_state(PART:"elm.text", st, 30, vl);
13001 if (!strcmp(st, "visible"))
13002 set_state(PART:"elm.text", "disabled_visible", 0.0);
13004 set_state(PART:"elm.text", "disabled", 0.0);
13005 set_int(button_state, 1);
13008 program { name: "enable";
13009 signal: "elm,state,enabled";
13011 action: STATE_SET "default" 0.0;
13012 target: "button_image";
13014 target: "disabler";
13015 after: "enable_text";
13017 program { name: "enable_text";
13021 get_state(PART:"elm.text", st, 30, vl);
13022 if (!strcmp(st, "disabled_visible"))
13023 set_state(PART:"elm.text", "visible", 0.0);
13025 set_state(PART:"elm.text", "default", 0.0);
13026 set_int(button_state, 0);
13029 program { name: "focused";
13030 //signal: "elm,action,focus";
13032 action: STATE_SET "focused" 0.0;
13033 target: "button_image";
13034 target: "elm.text";
13036 program { name: "unfocused";
13037 //signal: "elm,action,unfocus";
13039 action: STATE_SET "default" 0.0;
13040 target: "button_image";
13041 after: "unfocus_text";
13043 program { name: "unfocus_text";
13044 action: STATE_SET "visible" 0.0;
13045 target: "elm.text";
13050 ///////////////////////////////////////////////////////////////////////////////////////
13051 group { name: "elm/button/base/navigationbar_control/center";
13053 public button_state = 0; //0:enabled, 1: disabled
13056 part { name: "button_image";
13060 description { state: "default" 0.0;
13064 rel2.offset: -6 -6;
13066 description { state: "clicked" 0.0;
13067 inherit: "default" 0.0;
13068 color: 187 127 16 255;
13072 name: "padding_left";
13076 description { state: "default" 0.0;
13078 rel1.relative: 0.0 0.0;
13079 rel2.relative: 0.0 1.0;
13086 name: "padding_right";
13090 description { state: "default" 0.0;
13092 rel1.relative: 1.0 0.0;
13093 rel2.relative: 1.0 1.0;
13100 name: "padding_top";
13104 description { state: "default" 0.0;
13106 rel1.relative: 0.0 0.0;
13107 rel2.relative: 1.0 0.0;
13114 name: "padding_bottom";
13118 description { state: "default" 0.0;
13120 rel1.relative: 0.0 1.0;
13121 rel2.relative: 1.0 1.0;
13132 description { state: "default" 0.0;
13136 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13137 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13141 description { state: "visible" 0.0;
13145 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13146 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13150 description { state: "icononly" 0.0;
13151 inherit: "default" 0.0;
13155 name: "padding_after_icon";
13159 description { state: "default" 0.0; //when only icon or no icon is there
13161 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13162 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13165 color: 0 255 0 100;
13167 description { state: "visible" 0.0;
13170 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13171 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13176 description { state: "icononly" 0.0;
13177 inherit: "default" 0.0;
13181 name: "padding_before_text";
13185 description { state: "default" 0.0; //when only icon or no icon is there
13187 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
13188 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
13194 part { name: "elm.swallow.content";
13197 description { state: "default" 0.0;
13200 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13201 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13204 description { state: "visible" 0.0;
13210 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
13211 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
13213 aspect_preference: VERTICAL;
13215 description { state: "icononly" 0.0;;
13219 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13220 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
13223 aspect_preference: VERTICAL;
13226 part { name: "elm.text";
13230 description { state: "default" 0.0;
13232 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
13233 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
13235 color: 255 255 255 255;
13237 font: "SLP:style=Medium";
13244 description { state: "visible" 0.0;
13245 inherit: "default" 0.0;
13249 description { state: "clicked" 0.0;
13250 inherit: "default" 0.0;
13253 color: 255 255 255 255;
13255 description { state: "disabled" 0.0;
13256 inherit: "default" 0.0;
13260 description { state: "disabled_visible" 0.0;
13261 inherit: "default" 0.0;
13262 color: BUTTON_ICON_TEXT_DISABLED_COLOR_INC;
13266 description { state: "focused" 0.0;
13267 inherit: "default" 0.0;
13270 color: BUTTON_ICON_TEXT_FOCUSED_COLOR_INC;
13273 part { name: "over2";
13277 ignore_flags: ON_HOLD;
13278 description { state: "default" 0.0;
13281 description { state: "disabled" 0.0;
13282 inherit: "default" 0.0;
13286 part { name: "over3";
13290 description { state: "default" 0.0;
13293 description { state: "clicked" 0.0;
13294 inherit: "default" 0.0;
13298 part { name: "disabler";
13300 description { state: "default" 0.0;
13304 description { state: "disabled" 0.0;
13305 inherit: "default" 0.0;
13311 program { name: "button_click";
13312 signal: "mouse,down,1";
13314 action: SIGNAL_EMIT "elm,action,press" "";
13315 after: "button_click_anim";
13317 program { name: "button_click_anim";
13318 action: STATE_SET "clicked" 0.0;
13319 target: "button_image";
13320 after: "text_clicked";
13322 program { name: "text_clicked";
13326 get_state(PART:"elm.text", st, 30, vl);
13327 if (!strcmp(st, "visible"))
13328 set_state(PART:"elm.text", "clicked", 0.0);
13331 program { name: "button_unpress";
13332 action: SIGNAL_EMIT "elm,action,unpress" "";
13334 program { name: "button_mouseout_clicked";
13335 signal: "mouse,up,1";
13340 get_state(PART:"elm.swallow.content", st, 30, vl);
13341 if (strcmp(st, "icononly"))
13343 emit("elm,action,default,text,set", "");
13344 set_state(PART:"elm.text", "visible", 0.0);
13346 if(get_int(button_state) !=1)
13347 set_state(PART:"button_image", "default", 0.0);
13349 after: button_unpress;
13351 program { name: "button_click2";
13352 signal: "mouse,down,1";
13354 action: STATE_SET "clicked" 0.0;
13357 program { name: "button_unclick2";
13358 signal: "mouse,clicked,1";
13360 action: STATE_SET "default" 0.0;
13363 program { name: "button_unclick3";
13364 signal: "mouse,clicked,1";
13366 action: SIGNAL_EMIT "elm,action,click" "";
13368 program { name: "text_show";
13369 signal: "elm,state,text,visible";
13374 get_state(PART:"elm.swallow.content", st, 30, vl);
13375 if (!strcmp(st, "icononly"))
13377 set_state(PART:"elm.swallow.content", "visible", 0.0);
13378 set_state(PART:"icon_rect", "visible", 0.0);
13379 set_state(PART:"padding_after_icon", "visible", 0.0);
13381 set_state(PART:"elm.text", "visible", 0.0);
13384 program { name: "text_hide";
13385 signal: "elm,state,text,hidden";
13390 get_state(PART:"elm.swallow.content", st, 30, vl);
13391 if (!strcmp(st, "visible"))
13393 set_state(PART:"elm.swallow.content", "icononly", 0.0);
13394 set_state(PART:"icon_rect", "icononly", 0.0);
13395 set_state(PART:"padding_after_icon", "icononly", 0.0);
13397 set_state(PART:"elm.text", "default", 0.0);
13400 program { name: "icon_show";
13401 signal: "elm,state,icon,visible";
13406 get_state(PART:"elm.text", st, 30, vl);
13407 if (!strcmp(st, "visible"))
13409 set_state(PART:"elm.swallow.content", "visible", 0.0);
13410 set_state(PART:"icon_rect", "visible", 0.0);
13411 set_state(PART:"padding_after_icon", "visible", 0.0);
13415 set_state(PART:"elm.swallow.content", "icononly", 0.0);
13416 set_state(PART:"icon_rect", "icononly", 0.0);
13417 set_state(PART:"padding_after_icon", "icononly", 0.0);
13421 program { name: "icon_hide";
13422 signal: "elm,state,icon,hidden";
13424 action: STATE_SET "default" 0.0;
13425 target: "elm.swallow.content";
13427 program { name: "disable";
13428 signal: "elm,state,disabled";
13430 action: STATE_SET "disabled" 0.0;
13431 target: "button_image";
13433 target: "disabler";
13434 after: "disable_text";
13436 program { name: "disable_text";
13440 get_state(PART:"elm.text", st, 30, vl);
13441 if (!strcmp(st, "visible"))
13442 set_state(PART:"elm.text", "disabled_visible", 0.0);
13444 set_state(PART:"elm.text", "disabled", 0.0);
13445 set_int(button_state, 1);
13448 program { name: "enable";
13449 signal: "elm,state,enabled";
13451 action: STATE_SET "default" 0.0;
13452 target: "button_image";
13454 target: "disabler";
13455 after: "enable_text";
13457 program { name: "enable_text";
13461 get_state(PART:"elm.text", st, 30, vl);
13462 if (!strcmp(st, "disabled_visible"))
13463 set_state(PART:"elm.text", "visible", 0.0);
13465 set_state(PART:"elm.text", "default", 0.0);
13466 set_int(button_state, 0);
13469 program { name: "focused";
13470 action: STATE_SET "focused" 0.0;
13471 target: "button_image";
13472 target: "elm.text";
13474 program { name: "unfocused";
13475 action: STATE_SET "default" 0.0;
13476 target: "button_image";
13477 after: "unfocus_text";
13479 program { name: "unfocus_text";
13480 action: STATE_SET "visible" 0.0;
13481 target: "elm.text";
13486 ///////////////////////////////////////////////////////////////////////////////////////
13487 group { name: "elm/button/base/navigationbar_control/left";
13489 public button_state = 0; //0:enabled, 1: disabled
13492 part { name: "button_image";
13496 description { state: "default" 0.0;
13500 rel2.offset: -6 -6;
13502 description { state: "clicked" 0.0;
13503 inherit: "default" 0.0;
13504 color: 187 127 16 255;
13508 name: "padding_left";
13512 description { state: "default" 0.0;
13514 rel1.relative: 0.0 0.0;
13515 rel2.relative: 0.0 1.0;
13522 name: "padding_right";
13526 description { state: "default" 0.0;
13528 rel1.relative: 1.0 0.0;
13529 rel2.relative: 1.0 1.0;
13536 name: "padding_top";
13540 description { state: "default" 0.0;
13542 rel1.relative: 0.0 0.0;
13543 rel2.relative: 1.0 0.0;
13550 name: "padding_bottom";
13554 description { state: "default" 0.0;
13556 rel1.relative: 0.0 1.0;
13557 rel2.relative: 1.0 1.0;
13568 description { state: "default" 0.0;
13572 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
13573 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
13579 name: "padding_icon_text";
13583 description { state: "default" 0.0; //when only icon or no icon is there
13585 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13586 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13591 description { state: "icononly" 0.0;
13592 inherit: "default" 0.0;
13594 description { state: "visible" 0.0; //when icon is visible
13596 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13597 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13603 part { name: "elm.swallow.content";
13606 description { state: "default" 0.0;
13609 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13610 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13613 description { state: "visible" 0.0;
13619 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13620 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13622 aspect_preference: VERTICAL;
13624 description { state: "icononly" 0.0;;
13628 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13629 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
13632 aspect_preference: VERTICAL;
13635 part { name: "elm.text";
13639 description { state: "default" 0.0;
13641 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
13642 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
13644 color: 255 255 255 255;
13646 font: "SLP:style=Medium";
13653 description { state: "visible" 0.0;
13654 inherit: "default" 0.0;
13658 description { state: "clicked" 0.0;
13659 inherit: "default" 0.0;
13662 color: 255 255 255 255;
13665 description { state: "disabled" 0.0;
13666 inherit: "default" 0.0;
13670 description { state: "disabled_visible" 0.0;
13671 inherit: "default" 0.0;
13676 description { state: "focused" 0.0;
13677 inherit: "default" 0.0;
13680 color: 255 255 255 255;
13684 part { name: "over2";
13688 ignore_flags: ON_HOLD;
13689 description { state: "default" 0.0;
13692 description { state: "disabled" 0.0;
13693 inherit: "default" 0.0;
13697 part { name: "over3";
13701 description { state: "default" 0.0;
13704 description { state: "clicked" 0.0;
13705 inherit: "default" 0.0;
13709 part { name: "disabler";
13711 description { state: "default" 0.0;
13715 description { state: "disabled" 0.0;
13716 inherit: "default" 0.0;
13722 program { name: "button_click";
13723 signal: "mouse,down,1";
13725 action: SIGNAL_EMIT "elm,action,press" "";
13726 after: "button_click_anim";
13728 program { name: "button_click_anim";
13729 action: STATE_SET "clicked" 0.0;
13730 target: "button_image";
13731 after: "text_clicked";
13733 program { name: "text_clicked";
13737 get_state(PART:"elm.text", st, 30, vl);
13738 if (!strcmp(st, "visible"))
13739 set_state(PART:"elm.text", "clicked", 0.0);
13742 program { name: "button_unpress";
13743 action: SIGNAL_EMIT "elm,action,unpress" "";
13745 program { name: "button_mouseout_clicked";
13746 signal: "mouse,up,1";
13751 get_state(PART:"elm.swallow.content", st, 30, vl);
13752 if (strcmp(st, "icononly"))
13754 emit("elm,action,default,text,set", "");
13755 set_state(PART:"elm.text", "visible", 0.0);
13757 if(get_int(button_state) !=1)
13758 set_state(PART:"button_image", "default", 0.0);
13760 after: button_unpress;
13762 program { name: "button_click2";
13763 signal: "mouse,down,1";
13765 action: STATE_SET "clicked" 0.0;
13768 program { name: "button_unclick2";
13769 signal: "mouse,clicked,1";
13771 action: STATE_SET "default" 0.0;
13774 program { name: "button_unclick3";
13775 signal: "mouse,clicked,1";
13777 action: SIGNAL_EMIT "elm,action,click" "";
13779 program { name: "text_show";
13780 signal: "elm,state,text,visible";
13785 get_state(PART:"elm.swallow.content", st, 30, vl);
13786 if (!strcmp(st, "icononly"))
13788 set_state(PART:"elm.swallow.content", "visible", 0.0);
13789 set_state(PART:"padding_icon_text", "visible", 0.0);
13791 set_state(PART:"elm.text", "visible", 0.0);
13794 program { name: "text_hide";
13795 signal: "elm,state,text,hidden";
13800 get_state(PART:"elm.swallow.content", st, 30, vl);
13801 if (!strcmp(st, "visible"))
13803 set_state(PART:"elm.swallow.content", "icononly", 0.0);
13804 set_state(PART:"padding_icon_text", "icononly", 0.0);
13806 set_state(PART:"elm.text", "default", 0.0);
13809 program { name: "icon_show";
13810 signal: "elm,state,icon,visible";
13815 get_state(PART:"elm.text", st, 30, vl);
13816 if (!strcmp(st, "visible"))
13818 set_state(PART:"elm.swallow.content", "visible", 0.0);
13819 set_state(PART:"padding_icon_text", "visible", 0.0);
13823 set_state(PART:"elm.swallow.content", "icononly", 0.0);
13824 set_state(PART:"padding_icon_text", "icononly", 0.0);
13828 program { name: "icon_hide";
13829 signal: "elm,state,icon,hidden";
13831 action: STATE_SET "default" 0.0;
13832 target: "elm.swallow.content";
13834 program { name: "disable";
13835 signal: "elm,state,disabled";
13837 action: STATE_SET "disabled" 0.0;
13838 target: "button_image";
13840 target: "disabler";
13841 after: "disable_text";
13843 program { name: "disable_text";
13847 get_state(PART:"elm.text", st, 30, vl);
13848 if (!strcmp(st, "visible"))
13849 set_state(PART:"elm.text", "disabled_visible", 0.0);
13851 set_state(PART:"elm.text", "disabled", 0.0);
13852 set_int(button_state, 1);
13855 program { name: "enable";
13856 signal: "elm,state,enabled";
13858 action: STATE_SET "default" 0.0;
13859 target: "button_image";
13861 target: "disabler";
13862 after: "enable_text";
13864 program { name: "enable_text";
13868 get_state(PART:"elm.text", st, 30, vl);
13869 if (!strcmp(st, "disabled_visible"))
13870 set_state(PART:"elm.text", "visible", 0.0);
13872 set_state(PART:"elm.text", "default", 0.0);
13873 set_int(button_state, 0);
13876 program { name: "focused";
13877 //signal: "elm,action,focus";
13879 action: STATE_SET "focused" 0.0;
13880 target: "button_image";
13881 target: "elm.text";
13883 program { name: "unfocused";
13884 //signal: "elm,action,unfocus";
13886 action: STATE_SET "default" 0.0;
13887 target: "button_image";
13888 after: "unfocus_text";
13890 program { name: "unfocus_text";
13891 action: STATE_SET "visible" 0.0;
13892 target: "elm.text";
13897 ///////////////////////////////////////////////////////////////////////////////////////
13898 group { name: "elm/button/base/navigationbar_control/right";
13900 public button_state = 0; //0:enabled, 1: disabled
13903 part { name: "button_image";
13907 description { state: "default" 0.0;
13911 rel2.offset: -6 -6;
13913 description { state: "clicked" 0.0;
13914 inherit: "default" 0.0;
13915 color: 187 127 16 255;
13919 name: "padding_left";
13923 description { state: "default" 0.0;
13925 rel1.relative: 0.0 0.0;
13926 rel2.relative: 0.0 1.0;
13933 name: "padding_right";
13937 description { state: "default" 0.0;
13939 rel1.relative: 1.0 0.0;
13940 rel2.relative: 1.0 1.0;
13947 name: "padding_top";
13951 description { state: "default" 0.0;
13953 rel1.relative: 0.0 0.0;
13954 rel2.relative: 1.0 0.0;
13961 name: "padding_bottom";
13965 description { state: "default" 0.0;
13967 rel1.relative: 0.0 1.0;
13968 rel2.relative: 1.0 1.0;
13979 description { state: "default" 0.0;
13983 rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
13984 rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
13990 name: "padding_icon_text";
13994 description { state: "default" 0.0; //when only icon or no icon is there
13996 rel1 { relative: 0.0 0.0; to: "elm.text"; }
13997 rel2 { relative: 0.0 1.0; to: "elm.text"; }
14002 description { state: "icononly" 0.0;
14003 inherit: "default" 0.0;
14005 description { state: "visible" 0.0; //when icon is visible
14007 rel1 { relative: 0.0 0.0; to: "elm.text"; }
14008 rel2 { relative: 0.0 1.0; to: "elm.text"; }
14014 part { name: "elm.swallow.content";
14017 description { state: "default" 0.0;
14020 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14021 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14024 description { state: "visible" 0.0;
14030 rel1 {relative: 0.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
14031 rel2 {relative: 0.0 0.0; to_x: "padding_icon_text"; to_y: "padding_bottom"; }
14033 aspect_preference: VERTICAL;
14035 description { state: "icononly" 0.0;;
14039 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14040 rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14043 aspect_preference: VERTICAL;
14046 part { name: "elm.text";
14050 description { state: "default" 0.0;
14052 rel1 { relative: 0.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14053 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
14055 color: 255 255 255 255;
14057 font: "SLP:style=Medium";
14064 description { state: "visible" 0.0;
14065 inherit: "default" 0.0;
14069 description { state: "clicked" 0.0;
14070 inherit: "default" 0.0;
14073 color: 255 255 255 255;
14076 description { state: "disabled" 0.0;
14077 inherit: "default" 0.0;
14081 description { state: "disabled_visible" 0.0;
14082 inherit: "default" 0.0;
14087 description { state: "focused" 0.0;
14088 inherit: "default" 0.0;
14091 color: 255 255 255 255;
14095 part { name: "over2";
14099 ignore_flags: ON_HOLD;
14100 description { state: "default" 0.0;
14103 description { state: "disabled" 0.0;
14104 inherit: "default" 0.0;
14108 part { name: "over3";
14112 description { state: "default" 0.0;
14115 description { state: "clicked" 0.0;
14116 inherit: "default" 0.0;
14120 part { name: "disabler";
14122 description { state: "default" 0.0;
14126 description { state: "disabled" 0.0;
14127 inherit: "default" 0.0;
14133 program { name: "button_click";
14134 signal: "mouse,down,1";
14136 action: SIGNAL_EMIT "elm,action,press" "";
14137 after: "button_click_anim";
14139 program { name: "button_click_anim";
14140 action: STATE_SET "clicked" 0.0;
14141 target: "button_image";
14142 after: "text_clicked";
14144 program { name: "text_clicked";
14148 get_state(PART:"elm.text", st, 30, vl);
14149 if (!strcmp(st, "visible"))
14150 set_state(PART:"elm.text", "clicked", 0.0);
14153 program { name: "button_unpress";
14154 action: SIGNAL_EMIT "elm,action,unpress" "";
14156 program { name: "button_mouseout_clicked";
14157 signal: "mouse,up,1";
14162 get_state(PART:"elm.swallow.content", st, 30, vl);
14163 if (strcmp(st, "icononly"))
14165 emit("elm,action,default,text,set", "");
14166 set_state(PART:"elm.text", "visible", 0.0);
14168 if(get_int(button_state) !=1)
14169 set_state(PART:"button_image", "default", 0.0);
14171 after: button_unpress;
14173 program { name: "button_click2";
14174 signal: "mouse,down,1";
14176 action: STATE_SET "clicked" 0.0;
14179 program { name: "button_unclick2";
14180 signal: "mouse,clicked,1";
14182 action: STATE_SET "default" 0.0;
14185 program { name: "button_unclick3";
14186 signal: "mouse,clicked,1";
14188 action: SIGNAL_EMIT "elm,action,click" "";
14190 program { name: "text_show";
14191 signal: "elm,state,text,visible";
14196 get_state(PART:"elm.swallow.content", st, 30, vl);
14197 if (!strcmp(st, "icononly"))
14199 set_state(PART:"elm.swallow.content", "visible", 0.0);
14200 set_state(PART:"padding_icon_text", "visible", 0.0);
14202 set_state(PART:"elm.text", "visible", 0.0);
14205 program { name: "text_hide";
14206 signal: "elm,state,text,hidden";
14211 get_state(PART:"elm.swallow.content", st, 30, vl);
14212 if (!strcmp(st, "visible"))
14214 set_state(PART:"elm.swallow.content", "icononly", 0.0);
14215 set_state(PART:"padding_icon_text", "icononly", 0.0);
14217 set_state(PART:"elm.text", "default", 0.0);
14220 program { name: "icon_show";
14221 signal: "elm,state,icon,visible";
14226 get_state(PART:"elm.text", st, 30, vl);
14227 if (!strcmp(st, "visible"))
14229 set_state(PART:"elm.swallow.content", "visible", 0.0);
14230 set_state(PART:"padding_icon_text", "visible", 0.0);
14234 set_state(PART:"elm.swallow.content", "icononly", 0.0);
14235 set_state(PART:"padding_icon_text", "icononly", 0.0);
14239 program { name: "icon_hide";
14240 signal: "elm,state,icon,hidden";
14242 action: STATE_SET "default" 0.0;
14243 target: "elm.swallow.content";
14245 program { name: "disable";
14246 signal: "elm,state,disabled";
14248 action: STATE_SET "disabled" 0.0;
14249 target: "button_image";
14251 target: "disabler";
14252 after: "disable_text";
14254 program { name: "disable_text";
14258 get_state(PART:"elm.text", st, 30, vl);
14259 if (!strcmp(st, "visible"))
14260 set_state(PART:"elm.text", "disabled_visible", 0.0);
14262 set_state(PART:"elm.text", "disabled", 0.0);
14263 set_int(button_state, 1);
14266 program { name: "enable";
14267 signal: "elm,state,enabled";
14269 action: STATE_SET "default" 0.0;
14270 target: "button_image";
14272 target: "disabler";
14273 after: "enable_text";
14275 program { name: "enable_text";
14279 get_state(PART:"elm.text", st, 30, vl);
14280 if (!strcmp(st, "disabled_visible"))
14281 set_state(PART:"elm.text", "visible", 0.0);
14283 set_state(PART:"elm.text", "default", 0.0);
14284 set_int(button_state, 0);
14287 program { name: "focused";
14288 //signal: "elm,action,focus";
14290 action: STATE_SET "focused" 0.0;
14291 target: "button_image";
14292 target: "elm.text";
14294 program { name: "unfocused";
14295 //signal: "elm,action,unfocus";
14297 action: STATE_SET "default" 0.0;
14298 target: "button_image";
14299 after: "unfocus_text";
14301 program { name: "unfocus_text";
14302 action: STATE_SET "visible" 0.0;
14303 target: "elm.text";
14308 ///////////////////////////////////////////////////////////////////////////////////////
14309 group { name: "elm/button/base/tickernoti";
14311 image: "00_button_06_normal.png" COMP;
14312 image: "00_button_06_press.png" COMP;
14313 image: "00_button_06_dim.png" COMP;
14316 public button_state = 0; //0:enabled, 1: disabled
14319 part { name: "button_image";
14322 description { state: "default" 0.0;
14326 normal: "00_button_06_normal.png";
14331 description { state: "clicked" 0.0;
14332 inherit: "default" 0.0;
14333 image.normal: "00_button_06_press.png";
14335 description { state: "disabled" 0.0;
14336 inherit: "default" 0.0;
14337 image.normal: "00_button_06_dim.png";
14339 description { state: "focused" 0.0;
14340 inherit: "default" 0.0;
14341 image.normal: "00_button_06_press.png";
14345 name: "padding_left";
14349 description { state: "default" 0.0;
14351 rel1.relative: 0.0 0.0;
14352 rel2.relative: 0.0 1.0;
14359 name: "padding_right";
14363 description { state: "default" 0.0;
14365 rel1.relative: 1.0 0.0;
14366 rel2.relative: 1.0 1.0;
14373 name: "padding_top";
14377 description { state: "default" 0.0;
14379 rel1.relative: 0.0 0.0;
14380 rel2.relative: 1.0 0.0;
14387 name: "padding_bottom";
14391 description { state: "default" 0.0;
14393 rel1.relative: 0.0 1.0;
14394 rel2.relative: 1.0 1.0;
14405 description { state: "default" 0.0;
14409 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14410 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14414 description { state: "visible" 0.0;
14419 rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14420 rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14422 aspect_preference: VERTICAL;
14426 description { state: "icononly" 0.0;
14427 inherit: "default" 0.0;
14431 name: "padding_after_icon";
14435 description { state: "default" 0.0; //when only icon or no icon is there
14437 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
14438 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
14441 color: 0 255 0 100;
14443 description { state: "visible" 0.0;
14446 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
14447 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
14452 description { state: "icononly" 0.0;
14453 inherit: "default" 0.0;
14457 name: "padding_before_text";
14461 description { state: "default" 0.0; //when only icon or no icon is there
14463 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
14464 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
14470 part { name: "elm.swallow.content";
14473 description { state: "default" 0.0;
14476 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14477 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14480 description { state: "visible" 0.0;
14486 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
14487 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
14489 aspect_preference: VERTICAL;
14491 description { state: "icononly" 0.0;;
14495 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14496 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14499 aspect_preference: VERTICAL;
14502 part { name: "elm.text";
14506 description { state: "default" 0.0;
14508 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
14509 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
14511 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14513 font: "SLP:style=Roman";
14520 description { state: "visible" 0.0;
14521 inherit: "default" 0.0;
14525 description { state: "clicked" 0.0;
14526 inherit: "default" 0.0;
14529 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14531 description { state: "disabled" 0.0;
14532 inherit: "default" 0.0;
14535 description { state: "disabled_visible" 0.0;
14536 inherit: "default" 0.0;
14537 color: BUTTON_TEXT_TICKERNOTI_DISABLED_COLOR_INC;
14540 description { state: "focused" 0.0;
14541 inherit: "default" 0.0;
14544 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14547 part { name: "over2";
14551 ignore_flags: ON_HOLD;
14552 description { state: "default" 0.0;
14555 description { state: "disabled" 0.0;
14556 inherit: "default" 0.0;
14560 part { name: "over3";
14564 description { state: "default" 0.0;
14567 description { state: "clicked" 0.0;
14568 inherit: "default" 0.0;
14572 part { name: "disabler";
14574 description { state: "default" 0.0;
14578 description { state: "disabled" 0.0;
14579 inherit: "default" 0.0;
14585 program { name: "button_click";
14586 signal: "mouse,down,1";
14588 action: SIGNAL_EMIT "elm,action,press" "";
14589 after: "button_click_anim";
14591 program { name: "button_click_anim";
14592 action: STATE_SET "clicked" 0.0;
14593 target: "button_image";
14594 after: "text_clicked";
14596 program { name: "text_clicked";
14600 get_state(PART:"elm.text", st, 30, vl);
14601 if (!strcmp(st, "visible"))
14602 set_state(PART:"elm.text", "clicked", 0.0);
14605 program { name: "button_unpress";
14606 action: SIGNAL_EMIT "elm,action,unpress" "";
14608 program { name: "button_mouseout_clicked";
14609 signal: "mouse,up,1";
14614 get_state(PART:"elm.swallow.content", st, 30, vl);
14615 if (strcmp(st, "icononly"))
14617 emit("elm,action,default,text,set", "");
14618 set_state(PART:"elm.text", "visible", 0.0);
14620 if(get_int(button_state) !=1)
14621 set_state(PART:"button_image", "default", 0.0);
14623 after: button_unpress;
14625 program { name: "button_click2";
14626 signal: "mouse,down,1";
14628 action: STATE_SET "clicked" 0.0;
14631 program { name: "button_unclick2";
14632 signal: "mouse,clicked,1";
14634 action: STATE_SET "default" 0.0;
14637 program { name: "button_unclick3";
14638 signal: "mouse,clicked,1";
14640 action: SIGNAL_EMIT "elm,action,click" "";
14642 program { name: "text_show";
14643 signal: "elm,state,text,visible";
14648 get_state(PART:"elm.swallow.content", st, 30, vl);
14649 if (!strcmp(st, "icononly"))
14651 set_state(PART:"elm.swallow.content", "visible", 0.0);
14652 set_state(PART:"icon_rect", "visible", 0.0);
14653 set_state(PART:"padding_after_icon", "visible", 0.0);
14655 set_state(PART:"elm.text", "visible", 0.0);
14658 program { name: "text_hide";
14659 signal: "elm,state,text,hidden";
14664 get_state(PART:"elm.swallow.content", st, 30, vl);
14665 if (!strcmp(st, "visible"))
14667 set_state(PART:"elm.swallow.content", "icononly", 0.0);
14668 set_state(PART:"icon_rect", "icononly", 0.0);
14669 set_state(PART:"padding_after_icon", "icononly", 0.0);
14671 set_state(PART:"elm.text", "default", 0.0);
14674 program { name: "icon_show";
14675 signal: "elm,state,icon,visible";
14680 get_state(PART:"elm.text", st, 30, vl);
14681 if (!strcmp(st, "visible"))
14683 set_state(PART:"elm.swallow.content", "visible", 0.0);
14684 set_state(PART:"icon_rect", "visible", 0.0);
14685 set_state(PART:"padding_after_icon", "visible", 0.0);
14689 set_state(PART:"elm.swallow.content", "icononly", 0.0);
14690 set_state(PART:"icon_rect", "icononly", 0.0);
14691 set_state(PART:"padding_after_icon", "icononly", 0.0);
14695 program { name: "icon_hide";
14696 signal: "elm,state,icon,hidden";
14698 action: STATE_SET "default" 0.0;
14699 target: "elm.swallow.content";
14701 program { name: "disable";
14702 signal: "elm,state,disabled";
14704 action: STATE_SET "disabled" 0.0;
14705 target: "button_image";
14707 target: "disabler";
14708 after: "disable_text";
14710 program { name: "disable_text";
14714 get_state(PART:"elm.text", st, 30, vl);
14715 if (!strcmp(st, "visible"))
14716 set_state(PART:"elm.text", "disabled_visible", 0.0);
14718 set_state(PART:"elm.text", "disabled", 0.0);
14719 set_int(button_state, 1);
14722 program { name: "enable";
14723 signal: "elm,state,enabled";
14725 action: STATE_SET "default" 0.0;
14726 target: "button_image";
14728 target: "disabler";
14729 after: "enable_text";
14731 program { name: "enable_text";
14735 get_state(PART:"elm.text", st, 30, vl);
14736 if (!strcmp(st, "disabled_visible"))
14737 set_state(PART:"elm.text", "visible", 0.0);
14739 set_state(PART:"elm.text", "default", 0.0);
14740 set_int(button_state, 0);
14743 program { name: "focused";
14744 //signal: "elm,action,focus";
14746 action: STATE_SET "focused" 0.0;
14747 target: "button_image";
14748 target: "elm.text";
14750 program { name: "unfocused";
14751 //signal: "elm,action,unfocus";
14753 action: STATE_SET "default" 0.0;
14754 target: "button_image";
14755 after: "unfocus_text";
14757 program { name: "unfocus_text";
14758 action: STATE_SET "visible" 0.0;
14759 target: "elm.text";
14764 ///////////////////////////////////////////////////////////////////////////////////////
14765 group { name: "elm/button/base/text_only/expandable_number";
14767 image: "00_button_05_normal.png" COMP;
14768 image: "00_button_05_press.png" COMP;
14769 image: "00_button_05_dim.png" COMP;
14770 image: "00_arrow_down.png" COMP;
14771 image: "00_arrow_down_press.png" COMP;
14772 image: "00_arrow_down_dim.png" COMP;
14775 public button_state = 0; //0:enabled, 1: disabled
14778 part { name: "button_image";
14781 description { state: "default" 0.0;
14784 normal: "00_button_05_normal.png";
14789 description { state: "clicked" 0.0;
14790 inherit: "default" 0.0;
14791 image.normal: "00_button_05_press.png";
14793 description { state: "disabled" 0.0;
14794 inherit: "default" 0.0;
14795 image.normal: "00_button_05_dim.png";
14797 description { state: "focused" 0.0;
14798 inherit: "default" 0.0;
14799 image.normal: "00_button_05_press.png";
14803 name: "padding_left";
14807 description { state: "default" 0.0;
14809 rel1.relative: 0.0 0.0;
14810 rel2.relative: 0.0 1.0;
14817 name: "padding_right";
14821 description { state: "default" 0.0;
14823 rel1.relative: 1.0 0.0;
14824 rel2.relative: 1.0 1.0;
14831 name: "padding_top";
14835 description { state: "default" 0.0;
14837 rel1.relative: 0.0 0.0;
14838 rel2.relative: 1.0 0.0;
14845 name: "padding_bottom";
14849 description { state: "default" 0.0;
14851 rel1.relative: 0.0 1.0;
14852 rel2.relative: 1.0 1.0;
14863 description { state: "default" 0.0;
14867 rel1 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
14868 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14874 name: "padding_before_icon";
14878 description { state: "default" 0.0;
14880 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
14881 rel2 { relative: 0.0 1.0; to: "icon_rect"; }
14888 name: "padding_after_text";
14892 description { state: "default" 0.0;
14894 rel1 { relative: 1.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
14895 rel2 { relative: 1.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
14902 name: "arrow_down";
14905 description { state: "default" 0.0;
14910 rel1 { relative: 1.0 0.5; to_x: "padding_after_text"; }
14911 rel2 { relative: 1.0 0.5; to_x: "padding_after_text"; }
14912 image.normal:"00_arrow_down.png";
14914 description { state: "clicked" 0.0;
14915 inherit: "default" 0.0;
14916 image.normal:"00_arrow_down_press.png";
14918 description { state: "disabled" 0.0;
14919 inherit: "default" 0.0;
14920 image.normal:"00_arrow_down_dim.png";
14923 part { name: "elm.text";
14928 description { state: "default" 0.0;
14930 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14931 rel2 { relative: 0.0 0.0; to_x: "padding_before_icon"; to_y:"padding_bottom"; }
14933 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
14934 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
14936 font: "SLP:style=Medium";
14943 description { state: "visible" 0.0;
14944 inherit: "default" 0.0;
14948 description { state: "clicked" 0.0;
14949 inherit: "default" 0.0;
14952 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
14953 color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
14955 description { state: "disabled" 0.0;
14956 inherit: "default" 0.0;
14960 description { state: "disabled_visible" 0.0;
14961 inherit: "default" 0.0;
14962 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
14963 color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
14967 description { state: "focused" 0.0;
14968 inherit: "default" 0.0;
14971 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
14972 color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
14975 part { name: "over2";
14979 ignore_flags: ON_HOLD;
14980 description { state: "default" 0.0;
14983 description { state: "disabled" 0.0;
14984 inherit: "default" 0.0;
14988 part { name: "over3";
14992 description { state: "default" 0.0;
14995 description { state: "clicked" 0.0;
14996 inherit: "default" 0.0;
15000 part { name: "disabler";
15002 description { state: "default" 0.0;
15006 description { state: "disabled" 0.0;
15007 inherit: "default" 0.0;
15013 program { name: "button_click";
15014 signal: "mouse,down,1";
15016 action: SIGNAL_EMIT "elm,action,press" "";
15017 after: "button_click_anim";
15019 program { name: "button_click_anim";
15020 action: STATE_SET "clicked" 0.0;
15021 target: "button_image";
15022 target: "arrow_down";
15023 after: "text_clicked";
15025 program { name: "text_clicked";
15029 get_state(PART:"elm.text", st, 30, vl);
15030 if (!strcmp(st, "visible"))
15031 set_state(PART:"elm.text", "clicked", 0.0);
15034 program { name: "button_unpress";
15035 action: SIGNAL_EMIT "elm,action,unpress" "";
15037 program { name: "button_mouseout_clicked";
15038 signal: "mouse,up,1";
15043 //get_state(PART:"elm.swallow.content", st, 30, vl);
15044 //if (strcmp(st, "icononly"))
15046 //emit("elm,action,default,text,set", "");
15047 //set_state(PART:"elm.text", "visible", 0.0);
15049 if(get_int(button_state) !=1)
15051 set_state(PART:"button_image", "default", 0.0);
15052 set_state(PART:"elm.text", "visible", 0.0);
15053 set_state(PART:"arrow_down", "default", 0.0);
15056 after: button_unpress;
15058 program { name: "button_click2";
15059 signal: "mouse,down,1";
15061 action: STATE_SET "clicked" 0.0;
15064 program { name: "button_unclick2";
15065 signal: "mouse,clicked,1";
15067 action: STATE_SET "default" 0.0;
15070 program { name: "button_unclick3";
15071 signal: "mouse,clicked,1";
15073 action: SIGNAL_EMIT "elm,action,click" "";
15075 program { name: "text_show";
15076 signal: "elm,state,text,visible";
15081 //get_state(PART:"elm.swallow.content", st, 30, vl);
15082 //if (!strcmp(st, "icononly"))
15084 //set_state(PART:"elm.swallow.content", "visible", 0.0);
15085 //set_state(PART:"icon_rect", "visible", 0.0);
15086 //set_state(PART:"padding_after_icon", "visible", 0.0);
15088 set_state(PART:"elm.text", "visible", 0.0);
15091 program { name: "text_hide";
15092 signal: "elm,state,text,hidden";
15097 //get_state(PART:"elm.swallow.content", st, 30, vl);
15098 //if (!strcmp(st, "visible"))
15100 //set_state(PART:"elm.swallow.content", "icononly", 0.0);
15101 //set_state(PART:"icon_rect", "icononly", 0.0);
15102 //set_state(PART:"padding_after_icon", "icononly", 0.0);
15104 set_state(PART:"elm.text", "default", 0.0);
15107 program { name: "icon_show";
15108 signal: "elm,state,icon,visible";
15113 //get_state(PART:"elm.text", st, 30, vl);
15114 //if (!strcmp(st, "visible"))
15116 //set_state(PART:"elm.swallow.content", "visible", 0.0);
15117 //set_state(PART:"icon_rect", "visible", 0.0);
15118 //set_state(PART:"padding_after_icon", "visible", 0.0);
15122 //set_state(PART:"elm.swallow.content", "icononly", 0.0);
15123 //set_state(PART:"icon_rect", "icononly", 0.0);
15124 //set_state(PART:"padding_after_icon", "icononly", 0.0);
15128 program { name: "icon_hide";
15129 signal: "elm,state,icon,hidden";
15131 //action: STATE_SET "default" 0.0;
15132 //target: "elm.swallow.content";
15134 program { name: "disable";
15135 signal: "elm,state,disabled";
15137 action: STATE_SET "disabled" 0.0;
15138 target: "button_image";
15140 target: "disabler";
15141 after: "disable_text";
15143 program { name: "disable_text";
15147 get_state(PART:"elm.text", st, 30, vl);
15148 if (!strcmp(st, "visible"))
15149 set_state(PART:"elm.text", "disabled_visible", 0.0);
15151 set_state(PART:"elm.text", "disabled", 0.0);
15152 set_int(button_state, 1);
15155 program { name: "enable";
15156 signal: "elm,state,enabled";
15158 action: STATE_SET "default" 0.0;
15159 target: "button_image";
15161 target: "disabler";
15162 after: "enable_text";
15164 program { name: "enable_text";
15168 get_state(PART:"elm.text", st, 30, vl);
15169 if (!strcmp(st, "disabled_visible"))
15170 set_state(PART:"elm.text", "visible", 0.0);
15172 set_state(PART:"elm.text", "default", 0.0);
15173 set_int(button_state, 0);
15176 program { name: "focused";
15177 //signal: "elm,action,focus";
15179 action: STATE_SET "focused" 0.0;
15180 target: "button_image";
15181 target: "elm.text";
15183 program { name: "unfocused";
15184 //signal: "elm,action,unfocus";
15186 action: STATE_SET "default" 0.0;
15187 target: "button_image";
15188 after: "unfocus_text";
15190 program { name: "unfocus_text";
15191 action: STATE_SET "visible" 0.0;
15192 target: "elm.text";