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
26 #define BUTTON_STATE_ENABLED 0
27 #define BUTTON_STATE_DISABLED 1
28 ///////////////////////////////////////////////////////////////////////////////////////
29 group { name: "elm/button/base/style1";
30 alias: "elm/button/base/text_only/style1";
32 image: "00_button_01_normal.png" COMP;
33 image: "00_button_01_normal_press.png" COMP;
34 image: "00_button_01_normal_dim.png" COMP;
37 public button_state = BUTTON_STATE_ENABLED;
40 part { name: "button_image";
43 description { state: "default" 0.0;
46 normal: "00_button_01_normal.png";
51 description { state: "clicked" 0.0;
52 inherit: "default" 0.0;
53 image.normal: "00_button_01_normal_press.png";
55 description { state: "disabled" 0.0;
56 inherit: "default" 0.0;
57 image.normal: "00_button_01_normal_dim.png";
59 description { state: "focused" 0.0;
60 inherit: "default" 0.0;
61 image.normal: "00_button_01_normal_press.png";
69 description { state: "default" 0.0;
71 rel1.relative: 0.0 0.0;
72 rel2.relative: 0.0 1.0;
79 name: "padding_right";
83 description { state: "default" 0.0;
85 rel1.relative: 1.0 0.0;
86 rel2.relative: 1.0 1.0;
97 description { state: "default" 0.0;
99 rel1.relative: 0.0 0.0;
100 rel2.relative: 1.0 0.0;
107 name: "padding_bottom";
111 description { state: "default" 0.0;
113 rel1.relative: 0.0 1.0;
114 rel2.relative: 1.0 1.0;
125 description { state: "default" 0.0;
129 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
130 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
134 description { state: "visible" 0.0;
139 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
140 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
142 aspect_preference: VERTICAL;
146 description { state: "icononly" 0.0;
147 inherit: "default" 0.0;
151 name: "padding_after_icon";
155 description { state: "default" 0.0; //when only icon or no icon is there
157 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
158 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
163 description { state: "visible" 0.0;
166 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
167 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
172 description { state: "icononly" 0.0;
173 inherit: "default" 0.0;
177 name: "padding_before_text";
181 description { state: "default" 0.0; //when only icon or no icon is there
183 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
184 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
190 part { name: "elm.swallow.content";
193 description { state: "default" 0.0;
196 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
197 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
200 description { state: "visible" 0.0;
206 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
207 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
209 aspect_preference: VERTICAL;
211 description { state: "icononly" 0.0;
215 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
216 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
219 aspect_preference: VERTICAL;
222 part { name: "elm.text";
227 description { state: "default" 0.0;
229 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
230 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
232 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
233 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
235 font: "SLP:style=Medium";
242 description { state: "visible" 0.0;
243 inherit: "default" 0.0;
247 description { state: "clicked" 0.0;
248 inherit: "default" 0.0;
251 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
252 color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
254 description { state: "disabled" 0.0;
255 inherit: "default" 0.0;
259 description { state: "disabled_visible" 0.0;
260 inherit: "default" 0.0;
261 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
262 color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
267 description { state: "focused" 0.0;
268 inherit: "default" 0.0;
271 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
272 color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
275 part { name: "over2";
279 ignore_flags: ON_HOLD;
280 description { state: "default" 0.0;
283 description { state: "disabled" 0.0;
284 inherit: "default" 0.0;
288 part { name: "over3";
292 description { state: "default" 0.0;
295 description { state: "clicked" 0.0;
296 inherit: "default" 0.0;
300 part { name: "disabler";
302 description { state: "default" 0.0;
306 description { state: "disabled" 0.0;
307 inherit: "default" 0.0;
313 program { name: "button_click";
314 signal: "mouse,down,1";
316 action: SIGNAL_EMIT "elm,action,press" "";
317 after: "button_click_anim";
319 program { name: "button_click_anim";
320 action: STATE_SET "clicked" 0.0;
321 target: "button_image";
322 after: "text_clicked";
324 program { name: "text_clicked";
328 get_state(PART:"elm.text", st, 30, vl);
329 if (!strcmp(st, "visible"))
330 set_state(PART:"elm.text", "clicked", 0.0);
333 program { name: "button_unpress";
334 action: SIGNAL_EMIT "elm,action,unpress" "";
336 program { name: "button_mouseout_clicked";
337 signal: "mouse,up,1";
342 get_state(PART:"elm.swallow.content", st, 30, vl);
343 if (strcmp(st, "icononly"))
345 emit("elm,action,default,text,set", "");
346 set_state(PART:"elm.text", "visible", 0.0);
348 if(get_int(button_state) != BUTTON_STATE_DISABLED)
349 set_state(PART:"button_image", "default", 0.0);
351 after: button_unpress;
353 program { name: "button_click2";
354 signal: "mouse,down,1";
356 action: STATE_SET "clicked" 0.0;
359 program { name: "button_unclick2";
360 signal: "mouse,clicked,1";
362 action: STATE_SET "default" 0.0;
365 program { name: "button_unclick3";
366 signal: "mouse,clicked,1";
368 action: SIGNAL_EMIT "elm,action,click" "";
370 program { name: "text_show";
371 signal: "elm,state,text,visible";
376 get_state(PART:"elm.swallow.content", st, 30, vl);
377 if (!strcmp(st, "icononly"))
379 set_state(PART:"elm.swallow.content", "visible", 0.0);
380 set_state(PART:"icon_rect", "visible", 0.0);
381 set_state(PART:"padding_after_icon", "visible", 0.0);
383 if(get_int(button_state) != BUTTON_STATE_DISABLED)
384 set_state(PART:"elm.text", "visible", 0.0);
386 set_state(PART:"elm.text", "disabled_visible", 0.0);
389 program { name: "text_hide";
390 signal: "elm,state,text,hidden";
395 get_state(PART:"elm.swallow.content", st, 30, vl);
396 if (!strcmp(st, "visible"))
398 set_state(PART:"elm.swallow.content", "icononly", 0.0);
399 set_state(PART:"icon_rect", "icononly", 0.0);
400 set_state(PART:"padding_after_icon", "icononly", 0.0);
402 set_state(PART:"elm.text", "default", 0.0);
405 program { name: "icon_show";
406 signal: "elm,state,icon,visible";
411 get_state(PART:"elm.text", st, 30, vl);
412 if (!strcmp(st, "visible"))
414 set_state(PART:"elm.swallow.content", "visible", 0.0);
415 set_state(PART:"icon_rect", "visible", 0.0);
416 set_state(PART:"padding_after_icon", "visible", 0.0);
420 set_state(PART:"elm.swallow.content", "icononly", 0.0);
421 set_state(PART:"icon_rect", "icononly", 0.0);
422 set_state(PART:"padding_after_icon", "icononly", 0.0);
426 program { name: "icon_hide";
427 signal: "elm,state,icon,hidden";
429 action: STATE_SET "default" 0.0;
430 target: "elm.swallow.content";
432 program { name: "disable";
433 signal: "elm,state,disabled";
435 action: STATE_SET "disabled" 0.0;
436 target: "button_image";
439 after: "disable_text";
441 program { name: "disable_text";
445 get_state(PART:"elm.text", st, 30, vl);
446 if (!strcmp(st, "visible"))
447 set_state(PART:"elm.text", "disabled_visible", 0.0);
449 set_state(PART:"elm.text", "disabled", 0.0);
450 set_int(button_state, BUTTON_STATE_DISABLED);
453 program { name: "enable";
454 signal: "elm,state,enabled";
456 action: STATE_SET "default" 0.0;
457 target: "button_image";
460 after: "enable_text";
462 program { name: "enable_text";
466 get_state(PART:"elm.text", st, 30, vl);
467 if (!strcmp(st, "disabled_visible"))
468 set_state(PART:"elm.text", "visible", 0.0);
470 set_state(PART:"elm.text", "default", 0.0);
471 set_int(button_state, BUTTON_STATE_ENABLED);
474 program { name: "focused";
475 //signal: "elm,action,focus";
477 action: STATE_SET "focused" 0.0;
478 target: "button_image";
481 program { name: "unfocused";
482 //signal: "elm,action,unfocus";
484 action: STATE_SET "default" 0.0;
485 target: "button_image";
486 after: "unfocus_text";
488 program { name: "unfocus_text";
489 action: STATE_SET "visible" 0.0;
495 ///////////////////////////////////////////////////////////////////////////////////////
496 group { name: "elm/button/base/style2";
497 alias: "elm/button/base/text_only/style2";
499 image: "00_button_04_normal.png" COMP;
500 image: "00_button_04_press.png" COMP;
501 image: "00_button_04_dim.png" COMP;
504 public button_state = BUTTON_STATE_ENABLED;
507 part { name: "button_image";
510 description { state: "default" 0.0;
513 normal: "00_button_04_normal.png";
518 description { state: "clicked" 0.0;
519 inherit: "default" 0.0;
520 image.normal: "00_button_04_press.png";
522 description { state: "disabled" 0.0;
523 inherit: "default" 0.0;
524 image.normal: "00_button_04_dim.png";
526 description { state: "focused" 0.0;
527 inherit: "default" 0.0;
528 image.normal: "00_button_04_press.png";
532 name: "padding_left";
536 description { state: "default" 0.0;
538 rel1.relative: 0.0 0.0;
539 rel2.relative: 0.0 1.0;
546 name: "padding_right";
550 description { state: "default" 0.0;
552 rel1.relative: 1.0 0.0;
553 rel2.relative: 1.0 1.0;
564 description { state: "default" 0.0;
566 rel1.relative: 0.0 0.0;
567 rel2.relative: 1.0 0.0;
574 name: "padding_bottom";
578 description { state: "default" 0.0;
580 rel1.relative: 0.0 1.0;
581 rel2.relative: 1.0 1.0;
592 description { state: "default" 0.0;
596 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
597 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
601 description { state: "visible" 0.0;
606 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
607 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
609 aspect_preference: VERTICAL;
613 description { state: "icononly" 0.0;
614 inherit: "default" 0.0;
618 name: "padding_after_icon";
622 description { state: "default" 0.0; //when only icon or no icon is there
624 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
625 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
630 description { state: "visible" 0.0;
633 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
634 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
639 description { state: "icononly" 0.0;
640 inherit: "default" 0.0;
644 name: "padding_before_text";
648 description { state: "default" 0.0; //when only icon or no icon is there
650 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
651 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
657 part { name: "elm.swallow.content";
660 description { state: "default" 0.0;
663 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
664 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
667 description { state: "visible" 0.0;
673 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
674 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
676 aspect_preference: VERTICAL;
678 description { state: "icononly" 0.0;
682 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
683 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
686 aspect_preference: VERTICAL;
689 part { name: "elm.text";
694 description { state: "default" 0.0;
696 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
697 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
699 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
700 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
702 font: "SLP:style=Medium";
709 description { state: "visible" 0.0;
710 inherit: "default" 0.0;
714 description { state: "clicked" 0.0;
715 inherit: "default" 0.0;
718 color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
719 color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
721 description { state: "disabled" 0.0;
722 inherit: "default" 0.0;
726 description { state: "disabled_visible" 0.0;
727 inherit: "default" 0.0;
728 color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
729 color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
734 description { state: "focused" 0.0;
735 inherit: "default" 0.0;
738 color: BUTTON_TEXT_STYLE2_FOCUSED_COLOR_INC;
739 color2: BUTTON_TEXT_STYLE2_FOCUSED_SHAWDOW_COLOR_INC;
742 part { name: "over2";
746 ignore_flags: ON_HOLD;
747 description { state: "default" 0.0;
750 description { state: "disabled" 0.0;
751 inherit: "default" 0.0;
755 part { name: "over3";
759 description { state: "default" 0.0;
762 description { state: "clicked" 0.0;
763 inherit: "default" 0.0;
767 part { name: "disabler";
769 description { state: "default" 0.0;
773 description { state: "disabled" 0.0;
774 inherit: "default" 0.0;
780 program { name: "button_click";
781 signal: "mouse,down,1";
783 action: SIGNAL_EMIT "elm,action,press" "";
784 after: "button_click_anim";
786 program { name: "button_click_anim";
787 action: STATE_SET "clicked" 0.0;
788 target: "button_image";
789 after: "text_clicked";
791 program { name: "text_clicked";
795 get_state(PART:"elm.text", st, 30, vl);
796 if (!strcmp(st, "visible"))
797 set_state(PART:"elm.text", "clicked", 0.0);
800 program { name: "button_unpress";
801 action: SIGNAL_EMIT "elm,action,unpress" "";
803 program { name: "button_mouseout_clicked";
804 signal: "mouse,up,1";
809 get_state(PART:"elm.swallow.content", st, 30, vl);
810 if (strcmp(st, "icononly"))
812 emit("elm,action,default,text,set", "");
813 set_state(PART:"elm.text", "visible", 0.0);
815 if(get_int(button_state) != BUTTON_STATE_DISABLED)
816 set_state(PART:"button_image", "default", 0.0);
818 after: button_unpress;
820 program { name: "button_click2";
821 signal: "mouse,down,1";
823 action: STATE_SET "clicked" 0.0;
826 program { name: "button_unclick2";
827 signal: "mouse,clicked,1";
829 action: STATE_SET "default" 0.0;
832 program { name: "button_unclick3";
833 signal: "mouse,clicked,1";
835 action: SIGNAL_EMIT "elm,action,click" "";
837 program { name: "text_show";
838 signal: "elm,state,text,visible";
843 get_state(PART:"elm.swallow.content", st, 30, vl);
844 if (!strcmp(st, "icononly"))
846 set_state(PART:"elm.swallow.content", "visible", 0.0);
847 set_state(PART:"icon_rect", "visible", 0.0);
848 set_state(PART:"padding_after_icon", "visible", 0.0);
850 if(get_int(button_state) != BUTTON_STATE_DISABLED)
851 set_state(PART:"elm.text", "visible", 0.0);
853 set_state(PART:"elm.text", "disabled_visible", 0.0);
856 program { name: "text_hide";
857 signal: "elm,state,text,hidden";
862 get_state(PART:"elm.swallow.content", st, 30, vl);
863 if (!strcmp(st, "visible"))
865 set_state(PART:"elm.swallow.content", "icononly", 0.0);
866 set_state(PART:"icon_rect", "icononly", 0.0);
867 set_state(PART:"padding_after_icon", "icononly", 0.0);
869 set_state(PART:"elm.text", "default", 0.0);
872 program { name: "icon_show";
873 signal: "elm,state,icon,visible";
878 get_state(PART:"elm.text", st, 30, vl);
879 if (!strcmp(st, "visible"))
881 set_state(PART:"elm.swallow.content", "visible", 0.0);
882 set_state(PART:"icon_rect", "visible", 0.0);
883 set_state(PART:"padding_after_icon", "visible", 0.0);
887 set_state(PART:"elm.swallow.content", "icononly", 0.0);
888 set_state(PART:"icon_rect", "icononly", 0.0);
889 set_state(PART:"padding_after_icon", "icononly", 0.0);
893 program { name: "icon_hide";
894 signal: "elm,state,icon,hidden";
896 action: STATE_SET "default" 0.0;
897 target: "elm.swallow.content";
899 program { name: "disable";
900 signal: "elm,state,disabled";
902 action: STATE_SET "disabled" 0.0;
903 target: "button_image";
906 after: "disable_text";
908 program { name: "disable_text";
912 get_state(PART:"elm.text", st, 30, vl);
913 if (!strcmp(st, "visible"))
914 set_state(PART:"elm.text", "disabled_visible", 0.0);
916 set_state(PART:"elm.text", "disabled", 0.0);
917 set_int(button_state, BUTTON_STATE_DISABLED);
920 program { name: "enable";
921 signal: "elm,state,enabled";
923 action: STATE_SET "default" 0.0;
924 target: "button_image";
927 after: "enable_text";
929 program { name: "enable_text";
933 get_state(PART:"elm.text", st, 30, vl);
934 if (!strcmp(st, "disabled_visible"))
935 set_state(PART:"elm.text", "visible", 0.0);
937 set_state(PART:"elm.text", "default", 0.0);
938 set_int(button_state, BUTTON_STATE_ENABLED);
941 program { name: "focused";
942 //signal: "elm,action,focus";
944 action: STATE_SET "focused" 0.0;
945 target: "button_image";
948 program { name: "unfocused";
949 //signal: "elm,action,unfocus";
951 action: STATE_SET "default" 0.0;
952 target: "button_image";
953 after: "unfocus_text";
955 program { name: "unfocus_text";
956 action: STATE_SET "visible" 0.0;
962 ///////////////////////////////////////////////////////////////////////////////////////
963 group { name: "elm/button/base/sweep";
964 alias: "elm/button/base/text_only/sweep";
966 image: "00_button_sweep.png" COMP;
967 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
968 image: "00_button_sweep_dim.png" COMP;
971 public button_state = BUTTON_STATE_ENABLED;
974 part { name: "button_image";
977 description { state: "default" 0.0;
980 normal: "00_button_sweep.png";
985 description { state: "clicked" 0.0;
986 inherit: "default" 0.0;
987 image.normal: "00_button_sweep_press.png";
989 description { state: "disabled" 0.0;
990 inherit: "default" 0.0;
991 image.normal: "00_button_sweep_dim.png";
993 description { state: "focused" 0.0;
994 inherit: "default" 0.0;
995 image.normal: "00_button_sweep_press.png";
999 name: "padding_left";
1003 description { state: "default" 0.0;
1005 rel1.relative: 0.0 0.0;
1006 rel2.relative: 0.0 1.0;
1013 name: "padding_right";
1017 description { state: "default" 0.0;
1019 rel1.relative: 1.0 0.0;
1020 rel2.relative: 1.0 1.0;
1027 name: "padding_top";
1031 description { state: "default" 0.0;
1033 rel1.relative: 0.0 0.0;
1034 rel2.relative: 1.0 0.0;
1041 name: "padding_bottom";
1045 description { state: "default" 0.0;
1047 rel1.relative: 0.0 1.0;
1048 rel2.relative: 1.0 1.0;
1059 description { state: "default" 0.0;
1063 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1064 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1070 name: "padding_icon_text";
1074 description { state: "default" 0.0; //when only icon or no icon is there
1076 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1077 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1082 description { state: "icononly" 0.0;
1083 inherit: "default" 0.0;
1085 description { state: "visible" 0.0; //when icon is visible
1087 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1088 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1094 part { name: "elm.swallow.content";
1097 description { state: "default" 0.0;
1100 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1101 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1104 description { state: "visible" 0.0;
1108 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1109 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1111 aspect_preference: VERTICAL;
1113 description { state: "icononly" 0.0;
1116 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1117 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1120 aspect_preference: VERTICAL;
1123 part { name: "elm.text";
1128 description { state: "default" 0.0;
1130 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1131 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1133 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1134 color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1136 font: "SLP:style=Medium";
1143 description { state: "visible" 0.0;
1144 inherit: "default" 0.0;
1148 description { state: "clicked" 0.0;
1149 inherit: "default" 0.0;
1152 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1153 color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1155 description { state: "disabled" 0.0;
1156 inherit: "default" 0.0;
1160 description { state: "disabled_visible" 0.0;
1161 inherit: "default" 0.0;
1162 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1163 color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
1168 description { state: "focused" 0.0;
1169 inherit: "default" 0.0;
1172 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1173 color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
1176 part { name: "over2";
1180 ignore_flags: ON_HOLD;
1181 description { state: "default" 0.0;
1184 description { state: "disabled" 0.0;
1185 inherit: "default" 0.0;
1189 part { name: "over3";
1193 description { state: "default" 0.0;
1196 description { state: "clicked" 0.0;
1197 inherit: "default" 0.0;
1201 part { name: "disabler";
1203 description { state: "default" 0.0;
1207 description { state: "disabled" 0.0;
1208 inherit: "default" 0.0;
1214 program { name: "button_click";
1215 signal: "mouse,down,1";
1217 action: SIGNAL_EMIT "elm,action,press" "";
1218 after: "button_click_anim";
1220 program { name: "button_click_anim";
1221 action: STATE_SET "clicked" 0.0;
1222 target: "button_image";
1223 after: "text_clicked";
1225 program { name: "text_clicked";
1229 get_state(PART:"elm.text", st, 30, vl);
1230 if (!strcmp(st, "visible"))
1231 set_state(PART:"elm.text", "clicked", 0.0);
1234 program { name: "button_unpress";
1235 action: SIGNAL_EMIT "elm,action,unpress" "";
1237 program { name: "button_mouseout_clicked";
1238 signal: "mouse,up,1";
1243 get_state(PART:"elm.swallow.content", st, 30, vl);
1244 if (strcmp(st, "icononly"))
1246 emit("elm,action,default,text,set", "");
1247 set_state(PART:"elm.text", "visible", 0.0);
1249 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1250 set_state(PART:"button_image", "default", 0.0);
1252 after: button_unpress;
1254 program { name: "button_click2";
1255 signal: "mouse,down,1";
1257 action: STATE_SET "clicked" 0.0;
1260 program { name: "button_unclick2";
1261 signal: "mouse,clicked,1";
1263 action: STATE_SET "default" 0.0;
1266 program { name: "button_unclick3";
1267 signal: "mouse,clicked,1";
1269 action: SIGNAL_EMIT "elm,action,click" "";
1271 program { name: "text_show";
1272 signal: "elm,state,text,visible";
1277 get_state(PART:"elm.swallow.content", st, 30, vl);
1278 if (!strcmp(st, "icononly"))
1280 set_state(PART:"elm.swallow.content", "visible", 0.0);
1281 set_state(PART:"padding_icon_text", "visible", 0.0);
1283 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1284 set_state(PART:"elm.text", "visible", 0.0);
1286 set_state(PART:"elm.text", "disabled_visible", 0.0);
1289 program { name: "text_hide";
1290 signal: "elm,state,text,hidden";
1295 get_state(PART:"elm.swallow.content", st, 30, vl);
1296 if (!strcmp(st, "visible"))
1298 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1299 set_state(PART:"padding_icon_text", "icononly", 0.0);
1301 set_state(PART:"elm.text", "default", 0.0);
1304 program { name: "icon_show";
1305 signal: "elm,state,icon,visible";
1310 get_state(PART:"elm.text", st, 30, vl);
1311 if (!strcmp(st, "visible"))
1313 set_state(PART:"elm.swallow.content", "visible", 0.0);
1314 set_state(PART:"padding_icon_text", "visible", 0.0);
1318 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1319 set_state(PART:"padding_icon_text", "icononly", 0.0);
1323 program { name: "icon_hide";
1324 signal: "elm,state,icon,hidden";
1326 action: STATE_SET "default" 0.0;
1327 target: "elm.swallow.content";
1329 program { name: "disable";
1330 signal: "elm,state,disabled";
1332 action: STATE_SET "disabled" 0.0;
1333 target: "button_image";
1336 after: "disable_text";
1338 program { name: "disable_text";
1342 get_state(PART:"elm.text", st, 30, vl);
1343 if (!strcmp(st, "visible"))
1344 set_state(PART:"elm.text", "disabled_visible", 0.0);
1346 set_state(PART:"elm.text", "disabled", 0.0);
1347 set_int(button_state, BUTTON_STATE_DISABLED);
1350 program { name: "enable";
1351 signal: "elm,state,enabled";
1353 action: STATE_SET "default" 0.0;
1354 target: "button_image";
1357 after: "enable_text";
1359 program { name: "enable_text";
1363 get_state(PART:"elm.text", st, 30, vl);
1364 if (!strcmp(st, "disabled_visible"))
1365 set_state(PART:"elm.text", "visible", 0.0);
1367 set_state(PART:"elm.text", "default", 0.0);
1368 set_int(button_state, BUTTON_STATE_ENABLED);
1371 program { name: "focused";
1372 //signal: "elm,action,focus";
1374 action: STATE_SET "focused" 0.0;
1375 target: "button_image";
1378 program { name: "unfocused";
1379 //signal: "elm,action,unfocus";
1381 action: STATE_SET "default" 0.0;
1382 target: "button_image";
1383 after: "unfocus_text";
1385 program { name: "unfocus_text";
1386 action: STATE_SET "visible" 0.0;
1392 ///////////////////////////////////////////////////////////////////////////////////////
1393 //Button style added for 2 line sweep in the list
1394 group { name: "elm/button/base/sweep_46";
1395 alias: "elm/button/base/text_only/sweep_46";
1397 image: "00_button_sweep_46.png" COMP;
1398 image: "00_button_sweep_46_press.png" COMP;
1399 image: "00_button_sweep_46_focus.png" COMP;
1400 image: "00_button_sweep_46_dim.png" COMP;
1403 public button_state = BUTTON_STATE_ENABLED;
1406 part { name: "button_image";
1409 description { state: "default" 0.0;
1412 normal: "00_button_sweep_46.png";
1417 description { state: "clicked" 0.0;
1418 inherit: "default" 0.0;
1419 image.normal: "00_button_sweep_46_press.png";
1421 description { state: "disabled" 0.0;
1422 inherit: "default" 0.0;
1423 image.normal: "00_button_sweep_46_dim.png";
1425 description { state: "focused" 0.0;
1426 inherit: "default" 0.0;
1427 image.normal: "00_button_sweep_46_focus.png";
1431 name: "padding_left";
1435 description { state: "default" 0.0;
1437 rel1.relative: 0.0 0.0;
1438 rel2.relative: 0.0 1.0;
1445 name: "padding_right";
1449 description { state: "default" 0.0;
1451 rel1.relative: 1.0 0.0;
1452 rel2.relative: 1.0 1.0;
1459 name: "padding_top";
1463 description { state: "default" 0.0;
1465 rel1.relative: 0.0 0.0;
1466 rel2.relative: 1.0 0.0;
1473 name: "padding_bottom";
1477 description { state: "default" 0.0;
1479 rel1.relative: 0.0 1.0;
1480 rel2.relative: 1.0 1.0;
1491 description { state: "default" 0.0;
1495 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1496 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1502 name: "padding_icon_text";
1506 description { state: "default" 0.0; //when only icon or no icon is there
1508 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1509 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1514 description { state: "icononly" 0.0;
1515 inherit: "default" 0.0;
1517 description { state: "visible" 0.0; //when icon is visible
1519 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1520 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1526 part { name: "elm.swallow.content";
1529 description { state: "default" 0.0;
1532 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1533 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1536 description { state: "visible" 0.0;
1540 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1541 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1543 aspect_preference: VERTICAL;
1545 description { state: "icononly" 0.0;
1548 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1549 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1552 aspect_preference: VERTICAL;
1555 part { name: "elm.text";
1560 description { state: "default" 0.0;
1562 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1563 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1565 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1566 color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1568 font: "SLP:style=Medium";
1575 description { state: "visible" 0.0;
1576 inherit: "default" 0.0;
1580 description { state: "clicked" 0.0;
1581 inherit: "default" 0.0;
1584 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1585 color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1587 description { state: "disabled" 0.0;
1588 inherit: "default" 0.0;
1592 description { state: "disabled_visible" 0.0;
1593 inherit: "default" 0.0;
1594 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1595 color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
1600 description { state: "focused" 0.0;
1601 inherit: "default" 0.0;
1604 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1605 color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
1608 part { name: "over2";
1612 ignore_flags: ON_HOLD;
1613 description { state: "default" 0.0;
1616 description { state: "disabled" 0.0;
1617 inherit: "default" 0.0;
1621 part { name: "over3";
1625 description { state: "default" 0.0;
1628 description { state: "clicked" 0.0;
1629 inherit: "default" 0.0;
1633 part { name: "disabler";
1635 description { state: "default" 0.0;
1639 description { state: "disabled" 0.0;
1640 inherit: "default" 0.0;
1646 program { name: "button_click";
1647 signal: "mouse,down,1";
1649 action: SIGNAL_EMIT "elm,action,press" "";
1650 after: "button_click_anim";
1652 program { name: "button_click_anim";
1653 action: STATE_SET "clicked" 0.0;
1654 target: "button_image";
1655 after: "text_clicked";
1657 program { name: "text_clicked";
1661 get_state(PART:"elm.text", st, 30, vl);
1662 if (!strcmp(st, "visible"))
1663 set_state(PART:"elm.text", "clicked", 0.0);
1666 program { name: "button_unpress";
1667 action: SIGNAL_EMIT "elm,action,unpress" "";
1669 program { name: "button_mouseout_clicked";
1670 signal: "mouse,up,1";
1675 get_state(PART:"elm.swallow.content", st, 30, vl);
1676 if (strcmp(st, "icononly"))
1678 emit("elm,action,default,text,set", "");
1679 set_state(PART:"elm.text", "visible", 0.0);
1681 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1682 set_state(PART:"button_image", "default", 0.0);
1684 after: button_unpress;
1686 program { name: "button_click2";
1687 signal: "mouse,down,1";
1689 action: STATE_SET "clicked" 0.0;
1692 program { name: "button_unclick2";
1693 signal: "mouse,clicked,1";
1695 action: STATE_SET "default" 0.0;
1698 program { name: "button_unclick3";
1699 signal: "mouse,clicked,1";
1701 action: SIGNAL_EMIT "elm,action,click" "";
1703 program { name: "text_show";
1704 signal: "elm,state,text,visible";
1709 get_state(PART:"elm.swallow.content", st, 30, vl);
1710 if (!strcmp(st, "icononly"))
1712 set_state(PART:"elm.swallow.content", "visible", 0.0);
1713 set_state(PART:"padding_icon_text", "visible", 0.0);
1715 if(get_int(button_state) != BUTTON_STATE_DISABLED)
1716 set_state(PART:"elm.text", "visible", 0.0);
1718 set_state(PART:"elm.text", "disabled_visible", 0.0);
1721 program { name: "text_hide";
1722 signal: "elm,state,text,hidden";
1727 get_state(PART:"elm.swallow.content", st, 30, vl);
1728 if (!strcmp(st, "visible"))
1730 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1731 set_state(PART:"padding_icon_text", "icononly", 0.0);
1733 set_state(PART:"elm.text", "default", 0.0);
1736 program { name: "icon_show";
1737 signal: "elm,state,icon,visible";
1742 get_state(PART:"elm.text", st, 30, vl);
1743 if (!strcmp(st, "visible"))
1745 set_state(PART:"elm.swallow.content", "visible", 0.0);
1746 set_state(PART:"padding_icon_text", "visible", 0.0);
1750 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1751 set_state(PART:"padding_icon_text", "icononly", 0.0);
1755 program { name: "icon_hide";
1756 signal: "elm,state,icon,hidden";
1758 action: STATE_SET "default" 0.0;
1759 target: "elm.swallow.content";
1761 program { name: "disable";
1762 signal: "elm,state,disabled";
1764 action: STATE_SET "disabled" 0.0;
1765 target: "button_image";
1768 after: "disable_text";
1770 program { name: "disable_text";
1774 get_state(PART:"elm.text", st, 30, vl);
1775 if (!strcmp(st, "visible"))
1776 set_state(PART:"elm.text", "disabled_visible", 0.0);
1778 set_state(PART:"elm.text", "disabled", 0.0);
1779 set_int(button_state, BUTTON_STATE_DISABLED);
1782 program { name: "enable";
1783 signal: "elm,state,enabled";
1785 action: STATE_SET "default" 0.0;
1786 target: "button_image";
1789 after: "enable_text";
1791 program { name: "enable_text";
1795 get_state(PART:"elm.text", st, 30, vl);
1796 if (!strcmp(st, "disabled_visible"))
1797 set_state(PART:"elm.text", "visible", 0.0);
1799 set_state(PART:"elm.text", "default", 0.0);
1800 set_int(button_state, BUTTON_STATE_ENABLED);
1803 program { name: "focused";
1804 //signal: "elm,action,focus";
1806 action: STATE_SET "focused" 0.0;
1807 target: "button_image";
1810 program { name: "unfocused";
1811 //signal: "elm,action,unfocus";
1813 action: STATE_SET "default" 0.0;
1814 target: "button_image";
1815 after: "unfocus_text";
1817 program { name: "unfocus_text";
1818 action: STATE_SET "visible" 0.0;
1824 ///////////////////////////////////////////////////////////////////////////////////////
1825 group { name: "elm/button/base/title";
1826 alias: "elm/button/base/text_only/title";
1828 image: "00_button_02_normal.png" COMP;
1829 image: "00_button_02_press.png" COMP;
1830 image: "00_button_02_focus.png" COMP;
1833 public button_state = BUTTON_STATE_ENABLED;
1836 part { name: "button_image";
1839 description { state: "default" 0.0;
1842 normal: "00_button_02_normal.png";
1847 description { state: "clicked" 0.0;
1848 inherit: "default" 0.0;
1849 image.normal: "00_button_02_press.png";
1851 description { state: "disabled" 0.0;
1852 inherit: "default" 0.0;
1854 description { state: "focused" 0.0;
1855 inherit: "default" 0.0;
1856 image.normal: "00_button_02_focus.png";
1860 name: "padding_left";
1864 description { state: "default" 0.0;
1866 rel1.relative: 0.0 0.0;
1867 rel2.relative: 0.0 1.0;
1874 name: "padding_right";
1878 description { state: "default" 0.0;
1880 rel1.relative: 1.0 0.0;
1881 rel2.relative: 1.0 1.0;
1888 name: "padding_top";
1892 description { state: "default" 0.0;
1894 rel1.relative: 0.0 0.0;
1895 rel2.relative: 1.0 0.0;
1902 name: "padding_bottom";
1906 description { state: "default" 0.0;
1908 rel1.relative: 0.0 1.0;
1909 rel2.relative: 1.0 1.0;
1920 description { state: "default" 0.0;
1924 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1925 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1931 name: "padding_icon_text";
1935 description { state: "default" 0.0; //when only icon or no icon is there
1937 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1938 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1943 description { state: "icononly" 0.0;
1944 inherit: "default" 0.0;
1946 description { state: "visible" 0.0; //when icon is visible
1948 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1949 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1955 part { name: "elm.swallow.content";
1958 description { state: "default" 0.0;
1961 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1962 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1965 description { state: "visible" 0.0;
1969 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1970 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1972 aspect_preference: VERTICAL;
1974 description { state: "icononly" 0.0;
1977 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1978 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1981 aspect_preference: VERTICAL;
1984 part { name: "elm.text";
1989 description { state: "default" 0.0;
1991 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1992 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1994 color: 255 255 255 255;
1997 font: "SLP:style=Medium";
2004 description { state: "visible" 0.0;
2005 inherit: "default" 0.0;
2009 description { state: "clicked" 0.0;
2010 inherit: "default" 0.0;
2013 color: 255 255 255 255;
2016 description { state: "disabled" 0.0;
2017 inherit: "default" 0.0;
2021 description { state: "disabled_visible" 0.0;
2022 inherit: "default" 0.0;
2028 description { state: "focused" 0.0;
2029 inherit: "default" 0.0;
2032 color: 255 255 255 255;
2036 part { name: "over2";
2040 ignore_flags: ON_HOLD;
2041 description { state: "default" 0.0;
2044 description { state: "disabled" 0.0;
2045 inherit: "default" 0.0;
2049 part { name: "over3";
2053 description { state: "default" 0.0;
2056 description { state: "clicked" 0.0;
2057 inherit: "default" 0.0;
2061 part { name: "disabler";
2063 description { state: "default" 0.0;
2067 description { state: "disabled" 0.0;
2068 inherit: "default" 0.0;
2074 program { name: "button_click";
2075 signal: "mouse,down,1";
2077 action: SIGNAL_EMIT "elm,action,press" "";
2078 after: "button_click_anim";
2080 program { name: "button_click_anim";
2081 action: STATE_SET "clicked" 0.0;
2082 target: "button_image";
2083 after: "text_clicked";
2085 program { name: "text_clicked";
2089 get_state(PART:"elm.text", st, 30, vl);
2090 if (!strcmp(st, "visible"))
2091 set_state(PART:"elm.text", "clicked", 0.0);
2094 program { name: "button_unpress";
2095 action: SIGNAL_EMIT "elm,action,unpress" "";
2097 program { name: "button_mouseout_clicked";
2098 signal: "mouse,up,1";
2103 get_state(PART:"elm.swallow.content", st, 30, vl);
2104 if (strcmp(st, "icononly"))
2106 emit("elm,action,default,text,set", "");
2107 set_state(PART:"elm.text", "visible", 0.0);
2109 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2110 set_state(PART:"button_image", "default", 0.0);
2112 after: button_unpress;
2114 program { name: "button_click2";
2115 signal: "mouse,down,1";
2117 action: STATE_SET "clicked" 0.0;
2120 program { name: "button_unclick2";
2121 signal: "mouse,clicked,1";
2123 action: STATE_SET "default" 0.0;
2126 program { name: "button_unclick3";
2127 signal: "mouse,clicked,1";
2129 action: SIGNAL_EMIT "elm,action,click" "";
2131 program { name: "text_show";
2132 signal: "elm,state,text,visible";
2137 get_state(PART:"elm.swallow.content", st, 30, vl);
2138 if (!strcmp(st, "icononly"))
2140 set_state(PART:"elm.swallow.content", "visible", 0.0);
2141 set_state(PART:"padding_icon_text", "visible", 0.0);
2143 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2144 set_state(PART:"elm.text", "visible", 0.0);
2146 set_state(PART:"elm.text", "disabled_visible", 0.0);
2149 program { name: "text_hide";
2150 signal: "elm,state,text,hidden";
2155 get_state(PART:"elm.swallow.content", st, 30, vl);
2156 if (!strcmp(st, "visible"))
2158 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2159 set_state(PART:"padding_icon_text", "icononly", 0.0);
2161 set_state(PART:"elm.text", "default", 0.0);
2164 program { name: "icon_show";
2165 signal: "elm,state,icon,visible";
2170 get_state(PART:"elm.text", st, 30, vl);
2171 if (!strcmp(st, "visible"))
2173 set_state(PART:"elm.swallow.content", "visible", 0.0);
2174 set_state(PART:"padding_icon_text", "visible", 0.0);
2178 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2179 set_state(PART:"padding_icon_text", "icononly", 0.0);
2183 program { name: "icon_hide";
2184 signal: "elm,state,icon,hidden";
2186 action: STATE_SET "default" 0.0;
2187 target: "elm.swallow.content";
2189 program { name: "disable";
2190 signal: "elm,state,disabled";
2192 action: STATE_SET "disabled" 0.0;
2193 target: "button_image";
2196 after: "disable_text";
2198 program { name: "disable_text";
2202 get_state(PART:"elm.text", st, 30, vl);
2203 if (!strcmp(st, "visible"))
2204 set_state(PART:"elm.text", "disabled_visible", 0.0);
2206 set_state(PART:"elm.text", "disabled", 0.0);
2207 set_int(button_state, BUTTON_STATE_DISABLED);
2210 program { name: "enable";
2211 signal: "elm,state,enabled";
2213 action: STATE_SET "default" 0.0;
2214 target: "button_image";
2217 after: "enable_text";
2219 program { name: "enable_text";
2223 get_state(PART:"elm.text", st, 30, vl);
2224 if (!strcmp(st, "disabled_visible"))
2225 set_state(PART:"elm.text", "visible", 0.0);
2227 set_state(PART:"elm.text", "default", 0.0);
2228 set_int(button_state, BUTTON_STATE_ENABLED);
2231 program { name: "focused";
2232 //signal: "elm,action,focus";
2234 action: STATE_SET "focused" 0.0;
2235 target: "button_image";
2238 program { name: "unfocused";
2239 //signal: "elm,action,unfocus";
2241 action: STATE_SET "default" 0.0;
2242 target: "button_image";
2243 after: "unfocus_text";
2245 program { name: "unfocus_text";
2246 action: STATE_SET "visible" 0.0;
2252 ///////////////////////////////////////////////////////////////////////////////////////
2253 group { name: "elm/button/base/navigationbar_functionbutton/default";
2255 public button_state = BUTTON_STATE_ENABLED;
2258 part { name: "button_image";
2261 description { state: "default" 0.0;
2264 description { state: "clicked" 0.0;
2265 inherit: "default" 0.0;
2267 description { state: "disabled" 0.0;
2268 inherit: "default" 0.0;
2270 description { state: "focused" 0.0;
2271 inherit: "default" 0.0;
2275 name: "padding_left";
2279 description { state: "default" 0.0;
2281 rel1.relative: 0.0 0.0;
2282 rel2.relative: 0.0 1.0;
2288 part {name: "padding_after_right";
2291 description { state: "default" 0.0;
2294 rel1 { relative: 1 0.2; }
2295 rel2 { relative: 1 0.8; }
2297 color: 238 223 194 255;
2300 part {name: "padding_right";
2303 description { state: "default" 0.0;
2306 rel1 { relative: 0 0; to: "padding_after_right"; }
2307 rel2 { relative: 0 1; to: "padding_after_right"; }
2309 color: 164 151 130 255;
2313 name: "padding_top";
2317 description { state: "default" 0.0;
2319 rel1.relative: 0.0 0.0;
2320 rel2.relative: 1.0 0.0;
2327 name: "padding_bottom";
2331 description { state: "default" 0.0;
2333 rel1.relative: 0.0 1.0;
2334 rel2.relative: 1.0 1.0;
2345 description { state: "default" 0.0;
2349 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2350 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2356 name: "padding_icon_text";
2360 description { state: "default" 0.0; //when only icon or no icon is there
2362 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2363 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2368 description { state: "icononly" 0.0;
2369 inherit: "default" 0.0;
2371 description { state: "visible" 0.0; //when icon is visible
2373 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2374 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2380 part { name: "elm.swallow.content";
2383 description { state: "default" 0.0;
2386 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2387 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2390 description { state: "visible" 0.0;
2394 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2395 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2397 aspect_preference: VERTICAL;
2399 description { state: "icononly" 0.0;
2402 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2403 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2406 aspect_preference: VERTICAL;
2409 part { name: "elm.text";
2414 description { state: "default" 0.0;
2416 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2417 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2419 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
2420 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
2422 font: "SLP:style=Medium";
2428 description { state: "visible" 0.0;
2429 inherit: "default" 0.0;
2433 description { state: "clicked" 0.0;
2434 inherit: "default" 0.0;
2437 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
2438 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
2440 description { state: "disabled" 0.0;
2441 inherit: "default" 0.0;
2445 description { state: "disabled_visible" 0.0;
2446 inherit: "default" 0.0;
2447 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
2448 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
2453 description { state: "focused" 0.0;
2454 inherit: "default" 0.0;
2457 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
2458 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
2461 part { name: "over2";
2465 ignore_flags: ON_HOLD;
2466 description { state: "default" 0.0;
2469 description { state: "disabled" 0.0;
2470 inherit: "default" 0.0;
2474 part { name: "over3";
2478 description { state: "default" 0.0;
2481 description { state: "clicked" 0.0;
2482 inherit: "default" 0.0;
2486 part { name: "disabler";
2488 description { state: "default" 0.0;
2492 description { state: "disabled" 0.0;
2493 inherit: "default" 0.0;
2499 program { name: "button_click";
2500 signal: "mouse,down,1";
2502 action: SIGNAL_EMIT "elm,action,press" "";
2503 after: "button_click_anim";
2505 program { name: "button_click_anim";
2506 action: STATE_SET "clicked" 0.0;
2507 target: "button_image";
2508 after: "text_clicked";
2510 program { name: "text_clicked";
2514 get_state(PART:"elm.text", st, 30, vl);
2515 if (!strcmp(st, "visible"))
2516 set_state(PART:"elm.text", "clicked", 0.0);
2519 program { name: "button_unpress";
2520 action: SIGNAL_EMIT "elm,action,unpress" "";
2522 program { name: "button_mouseout_clicked";
2523 signal: "mouse,up,1";
2528 get_state(PART:"elm.swallow.content", st, 30, vl);
2529 if (strcmp(st, "icononly"))
2531 emit("elm,action,default,text,set", "");
2532 set_state(PART:"elm.text", "visible", 0.0);
2534 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2535 set_state(PART:"button_image", "default", 0.0);
2537 after: button_unpress;
2539 program { name: "button_click2";
2540 signal: "mouse,down,1";
2542 action: STATE_SET "clicked" 0.0;
2545 program { name: "button_unclick2";
2546 signal: "mouse,clicked,1";
2548 action: STATE_SET "default" 0.0;
2551 program { name: "button_unclick3";
2552 signal: "mouse,clicked,1";
2554 action: SIGNAL_EMIT "elm,action,click" "";
2556 program { name: "text_show";
2557 signal: "elm,state,text,visible";
2562 get_state(PART:"elm.swallow.content", st, 30, vl);
2563 if (!strcmp(st, "icononly"))
2565 set_state(PART:"elm.swallow.content", "visible", 0.0);
2566 set_state(PART:"padding_icon_text", "visible", 0.0);
2568 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2569 set_state(PART:"elm.text", "visible", 0.0);
2571 set_state(PART:"elm.text", "disabled_visible", 0.0);
2574 program { name: "text_hide";
2575 signal: "elm,state,text,hidden";
2580 get_state(PART:"elm.swallow.content", st, 30, vl);
2581 if (!strcmp(st, "visible"))
2583 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2584 set_state(PART:"padding_icon_text", "icononly", 0.0);
2586 set_state(PART:"elm.text", "default", 0.0);
2589 program { name: "icon_show";
2590 signal: "elm,state,icon,visible";
2595 get_state(PART:"elm.text", st, 30, vl);
2596 if (!strcmp(st, "visible"))
2598 set_state(PART:"elm.swallow.content", "visible", 0.0);
2599 set_state(PART:"padding_icon_text", "visible", 0.0);
2603 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2604 set_state(PART:"padding_icon_text", "icononly", 0.0);
2608 program { name: "icon_hide";
2609 signal: "elm,state,icon,hidden";
2611 action: STATE_SET "default" 0.0;
2612 target: "elm.swallow.content";
2614 program { name: "disable";
2615 signal: "elm,state,disabled";
2617 action: STATE_SET "disabled" 0.0;
2618 target: "button_image";
2621 after: "disable_text";
2623 program { name: "disable_text";
2627 get_state(PART:"elm.text", st, 30, vl);
2628 if (!strcmp(st, "visible"))
2629 set_state(PART:"elm.text", "disabled_visible", 0.0);
2631 set_state(PART:"elm.text", "disabled", 0.0);
2632 set_int(button_state, BUTTON_STATE_DISABLED);
2635 program { name: "enable";
2636 signal: "elm,state,enabled";
2638 action: STATE_SET "default" 0.0;
2639 target: "button_image";
2642 after: "enable_text";
2644 program { name: "enable_text";
2648 get_state(PART:"elm.text", st, 30, vl);
2649 if (!strcmp(st, "disabled_visible"))
2650 set_state(PART:"elm.text", "visible", 0.0);
2652 set_state(PART:"elm.text", "default", 0.0);
2653 set_int(button_state, BUTTON_STATE_ENABLED);
2656 program { name: "focused";
2657 //signal: "elm,action,focus";
2659 action: STATE_SET "focused" 0.0;
2660 target: "button_image";
2663 program { name: "unfocused";
2664 //signal: "elm,action,unfocus";
2666 action: STATE_SET "default" 0.0;
2667 target: "button_image";
2668 after: "unfocus_text";
2670 program { name: "unfocus_text";
2671 action: STATE_SET "visible" 0.0;
2677 ///////////////////////////////////////////////////////////////////////////////////////
2678 group { name: "elm/button/base/edit";
2679 alias: "elm/button/base/navigationbar_functionbutton/edit";
2681 public button_state = BUTTON_STATE_ENABLED;
2684 part { name: "button_image";
2687 description { state: "default" 0.0;
2690 description { state: "clicked" 0.0;
2691 inherit: "default" 0.0;
2693 description { state: "disabled" 0.0;
2694 inherit: "default" 0.0;
2696 description { state: "focused" 0.0;
2697 inherit: "default" 0.0;
2701 name: "padding_left";
2705 description { state: "default" 0.0;
2707 rel1.relative: 0.0 0.0;
2708 rel2.relative: 0.0 1.0;
2714 part {name: "padding_after_right";
2717 description { state: "default" 0.0;
2720 rel1 { relative: 1 0.2; }
2721 rel2 { relative: 1 0.8; }
2723 color: 238 223 194 255;
2726 part {name: "padding_right";
2729 description { state: "default" 0.0;
2732 rel1 { relative: 0 0; to: "padding_after_right"; }
2733 rel2 { relative: 0 1; to: "padding_after_right"; }
2735 color: 164 151 130 255;
2739 name: "padding_top";
2743 description { state: "default" 0.0;
2745 rel1.relative: 0.0 0.0;
2746 rel2.relative: 1.0 0.0;
2753 name: "padding_bottom";
2757 description { state: "default" 0.0;
2759 rel1.relative: 0.0 1.0;
2760 rel2.relative: 1.0 1.0;
2771 description { state: "default" 0.0;
2775 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2776 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2782 name: "padding_icon_text";
2786 description { state: "default" 0.0; //when only icon or no icon is there
2788 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2789 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2794 description { state: "icononly" 0.0;
2795 inherit: "default" 0.0;
2797 description { state: "visible" 0.0; //when icon is visible
2799 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2800 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2806 part { name: "elm.swallow.content";
2809 description { state: "default" 0.0;
2812 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2813 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2816 description { state: "visible" 0.0;
2820 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2821 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2823 aspect_preference: VERTICAL;
2825 description { state: "icononly" 0.0;
2828 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2829 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2832 aspect_preference: VERTICAL;
2835 part { name: "elm.text";
2840 description { state: "default" 0.0;
2842 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2843 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2845 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
2846 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
2848 font: "SLP:style=Medium";
2854 description { state: "visible" 0.0;
2855 inherit: "default" 0.0;
2859 description { state: "clicked" 0.0;
2860 inherit: "default" 0.0;
2863 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
2864 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
2866 description { state: "disabled" 0.0;
2867 inherit: "default" 0.0;
2871 description { state: "disabled_visible" 0.0;
2872 inherit: "default" 0.0;
2873 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
2874 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
2879 description { state: "focused" 0.0;
2880 inherit: "default" 0.0;
2883 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
2884 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
2887 part { name: "over2";
2891 ignore_flags: ON_HOLD;
2892 description { state: "default" 0.0;
2895 description { state: "disabled" 0.0;
2896 inherit: "default" 0.0;
2900 part { name: "over3";
2904 description { state: "default" 0.0;
2907 description { state: "clicked" 0.0;
2908 inherit: "default" 0.0;
2912 part { name: "disabler";
2914 description { state: "default" 0.0;
2918 description { state: "disabled" 0.0;
2919 inherit: "default" 0.0;
2925 program { name: "button_click";
2926 signal: "mouse,down,1";
2928 action: SIGNAL_EMIT "elm,action,press" "";
2929 after: "button_click_anim";
2931 program { name: "button_click_anim";
2932 action: STATE_SET "clicked" 0.0;
2933 target: "button_image";
2934 after: "text_clicked";
2936 program { name: "text_clicked";
2940 get_state(PART:"elm.text", st, 30, vl);
2941 if (!strcmp(st, "visible"))
2942 set_state(PART:"elm.text", "clicked", 0.0);
2945 program { name: "button_unpress";
2946 action: SIGNAL_EMIT "elm,action,unpress" "";
2948 program { name: "button_mouseout_clicked";
2949 signal: "mouse,up,1";
2954 get_state(PART:"elm.swallow.content", st, 30, vl);
2955 if (strcmp(st, "icononly"))
2957 emit("elm,action,default,text,set", "");
2958 set_state(PART:"elm.text", "visible", 0.0);
2960 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2961 set_state(PART:"button_image", "default", 0.0);
2963 after: button_unpress;
2965 program { name: "button_click2";
2966 signal: "mouse,down,1";
2968 action: STATE_SET "clicked" 0.0;
2971 program { name: "button_unclick2";
2972 signal: "mouse,clicked,1";
2974 action: STATE_SET "default" 0.0;
2977 program { name: "button_unclick3";
2978 signal: "mouse,clicked,1";
2980 action: SIGNAL_EMIT "elm,action,click" "";
2982 program { name: "text_show";
2983 signal: "elm,state,text,visible";
2988 get_state(PART:"elm.swallow.content", st, 30, vl);
2989 if (!strcmp(st, "icononly"))
2991 set_state(PART:"elm.swallow.content", "visible", 0.0);
2992 set_state(PART:"padding_icon_text", "visible", 0.0);
2994 if(get_int(button_state) != BUTTON_STATE_DISABLED)
2995 set_state(PART:"elm.text", "visible", 0.0);
2997 set_state(PART:"elm.text", "disabled_visible", 0.0);
3000 program { name: "text_hide";
3001 signal: "elm,state,text,hidden";
3006 get_state(PART:"elm.swallow.content", st, 30, vl);
3007 if (!strcmp(st, "visible"))
3009 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3010 set_state(PART:"padding_icon_text", "icononly", 0.0);
3012 set_state(PART:"elm.text", "default", 0.0);
3015 program { name: "icon_show";
3016 signal: "elm,state,icon,visible";
3021 get_state(PART:"elm.text", st, 30, vl);
3022 if (!strcmp(st, "visible"))
3024 set_state(PART:"elm.swallow.content", "visible", 0.0);
3025 set_state(PART:"padding_icon_text", "visible", 0.0);
3029 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3030 set_state(PART:"padding_icon_text", "icononly", 0.0);
3034 program { name: "icon_hide";
3035 signal: "elm,state,icon,hidden";
3037 action: STATE_SET "default" 0.0;
3038 target: "elm.swallow.content";
3040 program { name: "disable";
3041 signal: "elm,state,disabled";
3043 action: STATE_SET "disabled" 0.0;
3044 target: "button_image";
3047 after: "disable_text";
3049 program { name: "disable_text";
3053 get_state(PART:"elm.text", st, 30, vl);
3054 if (!strcmp(st, "visible"))
3055 set_state(PART:"elm.text", "disabled_visible", 0.0);
3057 set_state(PART:"elm.text", "disabled", 0.0);
3058 set_int(button_state, BUTTON_STATE_DISABLED);
3061 program { name: "enable";
3062 signal: "elm,state,enabled";
3064 action: STATE_SET "default" 0.0;
3065 target: "button_image";
3068 after: "enable_text";
3070 program { name: "enable_text";
3074 get_state(PART:"elm.text", st, 30, vl);
3075 if (!strcmp(st, "disabled_visible"))
3076 set_state(PART:"elm.text", "visible", 0.0);
3078 set_state(PART:"elm.text", "default", 0.0);
3079 set_int(button_state, BUTTON_STATE_ENABLED);
3082 program { name: "focused";
3083 //signal: "elm,action,focus";
3085 action: STATE_SET "focused" 0.0;
3086 target: "button_image";
3089 program { name: "unfocused";
3090 //signal: "elm,action,unfocus";
3092 action: STATE_SET "default" 0.0;
3093 target: "button_image";
3094 after: "unfocus_text";
3096 program { name: "unfocus_text";
3097 action: STATE_SET "visible" 0.0;
3103 ///////////////////////////////////////////////////////////////////////////////////////
3104 group { name: "elm/button/base/popup_button/default";
3105 alias: "elm/button/base/popup_button/menustyle";
3106 alias: "elm/button/base/popup_button/liststyle";
3107 alias: "elm/button/base/popup_button/volumebarstyle";
3108 alias: "elm/button/base/popup_button/customstyle";
3110 image: "00_button_popup_normal.png" COMP;
3111 image: "00_button_popup_press.png" COMP;
3112 image: "00_button_popup_focus.png" COMP;
3113 image: "00_button_popup_dim.png" COMP;
3116 public button_state = BUTTON_STATE_ENABLED;
3119 part { name: "button_image";
3122 description { state: "default" 0.0;
3125 normal: "00_button_popup_normal.png";
3130 description { state: "clicked" 0.0;
3131 inherit: "default" 0.0;
3132 image.normal: "00_button_popup_press.png";
3134 description { state: "disabled" 0.0;
3135 inherit: "default" 0.0;
3136 image.normal: "00_button_popup_dim.png";
3138 description { state: "focused" 0.0;
3139 inherit: "default" 0.0;
3140 image.normal: "00_button_popup_focus.png";
3144 name: "padding_left";
3148 description { state: "default" 0.0;
3150 rel1.relative: 0.0 0.0;
3151 rel2.relative: 0.0 1.0;
3158 name: "padding_right";
3161 description { state: "default" 0.0;
3163 rel1.relative: 1.0 0.0;
3164 rel2.relative: 1.0 1.0;
3171 name: "padding_top";
3174 description { state: "default" 0.0;
3176 rel1.relative: 0.0 0.0;
3177 rel2.relative: 1.0 0.0;
3184 name: "padding_bottom";
3187 description { state: "default" 0.0;
3189 rel1.relative: 0.0 1.0;
3190 rel2.relative: 1.0 1.0;
3197 name: "padding_icon_text";
3200 description { state: "default" 0.0; //when only icon or no icon is there
3202 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3203 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3208 description { state: "icononly" 0.0;
3209 inherit: "default" 0.0;
3211 description { state: "visible" 0.0; //when icon is visible
3212 inherit: "default" 0.0;
3216 part { name: "elm.swallow.content";
3219 description { state: "default" 0.0;
3222 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3223 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3226 description { state: "visible" 0.0;
3227 inherit: "default" 0.0;
3231 aspect_preference: VERTICAL;
3233 description { state: "icononly" 0.0;
3236 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3237 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
3240 aspect_preference: VERTICAL;
3243 part { name: "elm.text";
3248 description { state: "default" 0.0;
3250 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
3251 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
3253 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
3254 color2: BUTTON_POPUP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
3256 font: "SLP:style=Medium";
3263 description { state: "visible" 0.0;
3264 inherit: "default" 0.0;
3268 description { state: "clicked" 0.0;
3269 inherit: "default" 0.0;
3272 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
3273 color2: BUTTON_POPUP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
3275 description { state: "disabled" 0.0;
3276 inherit: "default" 0.0;
3280 description { state: "disabled_visible" 0.0;
3281 inherit: "default" 0.0;
3282 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
3283 color2: BUTTON_POPUP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
3288 description { state: "focused" 0.0;
3289 inherit: "default" 0.0;
3292 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3293 color2: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
3296 part { name: "over2";
3300 ignore_flags: ON_HOLD;
3301 description { state: "default" 0.0;
3304 description { state: "disabled" 0.0;
3305 inherit: "default" 0.0;
3309 part { name: "over3";
3313 description { state: "default" 0.0;
3316 description { state: "clicked" 0.0;
3317 inherit: "default" 0.0;
3321 part { name: "disabler";
3323 description { state: "default" 0.0;
3327 description { state: "disabled" 0.0;
3328 inherit: "default" 0.0;
3334 program { name: "button_click";
3335 signal: "mouse,down,1";
3337 action: SIGNAL_EMIT "elm,action,press" "";
3338 after: "button_click_anim";
3340 program { name: "button_click_anim";
3341 action: STATE_SET "clicked" 0.0;
3342 target: "button_image";
3343 after: "text_clicked";
3345 program { name: "text_clicked";
3349 get_state(PART:"elm.text", st, 30, vl);
3350 if (!strcmp(st, "visible"))
3351 set_state(PART:"elm.text", "clicked", 0.0);
3354 program { name: "button_unpress";
3355 action: SIGNAL_EMIT "elm,action,unpress" "";
3357 program { name: "button_mouseout_clicked";
3358 signal: "mouse,up,1";
3363 get_state(PART:"elm.swallow.content", st, 30, vl);
3364 if (strcmp(st, "icononly"))
3366 emit("elm,action,default,text,set", "");
3367 set_state(PART:"elm.text", "visible", 0.0);
3369 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3370 set_state(PART:"button_image", "default", 0.0);
3372 after: button_unpress;
3374 program { name: "button_click2";
3375 signal: "mouse,down,1";
3377 action: STATE_SET "clicked" 0.0;
3380 program { name: "button_unclick2";
3381 signal: "mouse,clicked,1";
3383 action: STATE_SET "default" 0.0;
3386 program { name: "button_unclick3";
3387 signal: "mouse,clicked,1";
3389 action: SIGNAL_EMIT "elm,action,click" "";
3391 program { name: "text_show";
3392 signal: "elm,state,text,visible";
3397 get_state(PART:"elm.swallow.content", st, 30, vl);
3398 if (!strcmp(st, "icononly"))
3400 set_state(PART:"elm.swallow.content", "visible", 0.0);
3401 set_state(PART:"padding_icon_text", "visible", 0.0);
3403 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3404 set_state(PART:"elm.text", "visible", 0.0);
3406 set_state(PART:"elm.text", "disabled_visible", 0.0);
3409 program { name: "text_hide";
3410 signal: "elm,state,text,hidden";
3415 get_state(PART:"elm.swallow.content", st, 30, vl);
3416 if (!strcmp(st, "visible"))
3418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3419 set_state(PART:"padding_icon_text", "icononly", 0.0);
3421 set_state(PART:"elm.text", "default", 0.0);
3424 program { name: "icon_show";
3425 signal: "elm,state,icon,visible";
3430 get_state(PART:"elm.text", st, 30, vl);
3431 if (!strcmp(st, "visible"))
3433 set_state(PART:"elm.swallow.content", "visible", 0.0);
3434 set_state(PART:"padding_icon_text", "visible", 0.0);
3438 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3439 set_state(PART:"padding_icon_text", "icononly", 0.0);
3443 program { name: "icon_hide";
3444 signal: "elm,state,icon,hidden";
3446 action: STATE_SET "default" 0.0;
3447 target: "elm.swallow.content";
3449 program { name: "disable";
3450 signal: "elm,state,disabled";
3452 action: STATE_SET "disabled" 0.0;
3453 target: "button_image";
3456 after: "disable_text";
3458 program { name: "disable_text";
3462 get_state(PART:"elm.text", st, 30, vl);
3463 if (!strcmp(st, "visible"))
3464 set_state(PART:"elm.text", "disabled_visible", 0.0);
3466 set_state(PART:"elm.text", "disabled", 0.0);
3467 set_int(button_state, BUTTON_STATE_DISABLED);
3470 program { name: "enable";
3471 signal: "elm,state,enabled";
3473 action: STATE_SET "default" 0.0;
3474 target: "button_image";
3477 after: "enable_text";
3479 program { name: "enable_text";
3483 get_state(PART:"elm.text", st, 30, vl);
3484 if (!strcmp(st, "disabled_visible"))
3485 set_state(PART:"elm.text", "visible", 0.0);
3487 set_state(PART:"elm.text", "default", 0.0);
3488 set_int(button_state, BUTTON_STATE_ENABLED);
3491 program { name: "focused";
3492 action: STATE_SET "focused" 0.0;
3493 target: "button_image";
3496 program { name: "unfocused";
3497 action: STATE_SET "default" 0.0;
3498 target: "button_image";
3499 after: "unfocus_text";
3501 program { name: "unfocus_text";
3502 action: STATE_SET "visible" 0.0;
3508 ///////////////////////////////////////////////////////////////////////////////////////
3509 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3510 group { name: "elm/button/base/"style_name; \
3512 image: "00_btn_circle_bg_normal.png" COMP; \
3513 image: "00_btn_circle_bg_press.png" COMP; \
3514 image: image_normal COMP; \
3515 image: image_press COMP; \
3518 part { name: "button_image"; \
3521 description { state: "default" 0.0; \
3525 normal: "00_btn_circle_bg_normal.png"; \
3527 color: 255 255 255 255; \
3530 state: "clicked" 0.0; \
3531 inherit: "default" 0.0; \
3532 image.normal: "00_btn_circle_bg_press.png"; \
3535 state: "disabled" 0.0; \
3536 inherit: "default" 0.0; \
3537 color: 255 255 255 128; \
3540 part { name: "button_center_part"; \
3543 description { state: "default" 0.0; \
3546 image.normal: image_normal; \
3547 color: 255 255 255 255; \
3550 state: "clicked" 0.0; \
3551 inherit: "default" 0.0; \
3552 image.normal: image_press; \
3555 state: "disabled" 0.0; \
3556 inherit: "default" 0.0; \
3557 color: 255 255 255 128; \
3560 part { name: "over1"; \
3564 ignore_flags: ON_HOLD; \
3565 description { state: "default" 0.0; \
3567 min: min_width min_height; \
3570 part { name: "over2"; \
3573 description { state: "default" 0.0; \
3574 color: 255 255 255 0; \
3576 description { state: "clicked" 0.0; \
3577 inherit: "default" 0.0; \
3579 color: 255 255 255 0; \
3582 part { name: "disabler"; \
3584 description { state: "default" 0.0; \
3588 description { state: "disabled" 0.0; \
3589 inherit: "default" 0.0; \
3595 program { name: "button_click"; \
3596 signal: "mouse,down,1"; \
3598 action: SIGNAL_EMIT "elm,action,press" ""; \
3599 after: "button_click_anim"; \
3601 program { name: "button_click_anim"; \
3602 action: STATE_SET "clicked" 0.0; \
3603 target: "button_image"; \
3604 target: "button_center_part"; \
3606 program { name: "button_unclick"; \
3607 signal: "mouse,up,1"; \
3609 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3610 after: "button_unclick_anim"; \
3612 program { name: "button_unclick_anim"; \
3613 action: STATE_SET "default" 0.0; \
3614 target: "button_image"; \
3615 target: "button_center_part"; \
3617 program { name: "button_click2"; \
3618 signal: "mouse,down,1"; \
3620 action: STATE_SET "clicked" 0.0; \
3623 program { name: "button_unclick2"; \
3624 signal: "mouse,clicked,1"; \
3626 action: STATE_SET "default" 0.0; \
3628 after: "button_unclick3"; \
3630 program { name: "button_unclick3"; \
3631 action: SIGNAL_EMIT "elm,action,click" ""; \
3633 program { name: "disable"; \
3634 signal: "elm,state,disabled"; \
3636 action: STATE_SET "disabled" 0.0; \
3637 target: "disabler"; \
3638 target: "button_image"; \
3639 target: "button_center_part"; \
3641 program { name: "enable"; \
3642 signal: "elm,state,enabled"; \
3644 action: STATE_SET "default" 0.0; \
3645 target: "disabler"; \
3646 target: "button_image"; \
3647 target: "button_center_part"; \
3652 ///////////////////////////////////////////////////////////////////////////////////////
3653 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal.png", 40, 40)
3655 ///////////////////////////////////////////////////////////////////////////////////////
3656 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
3658 ///////////////////////////////////////////////////////////////////////////////////////
3659 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
3661 ///////////////////////////////////////////////////////////////////////////////////////
3662 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
3664 ///////////////////////////////////////////////////////////////////////////////////////
3665 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
3667 ///////////////////////////////////////////////////////////////////////////////////////
3668 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
3670 ///////////////////////////////////////////////////////////////////////////////////////
3671 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
3673 ///////////////////////////////////////////////////////////////////////////////////////
3674 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
3676 ///////////////////////////////////////////////////////////////////////////////////////
3677 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
3679 ///////////////////////////////////////////////////////////////////////////////////////
3680 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
3682 ///////////////////////////////////////////////////////////////////////////////////////
3683 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
3685 ///////////////////////////////////////////////////////////////////////////////////////
3686 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
3688 ///////////////////////////////////////////////////////////////////////////////////////
3689 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
3691 ///////////////////////////////////////////////////////////////////////////////////////
3692 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
3694 ///////////////////////////////////////////////////////////////////////////////////////
3695 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
3697 ///////////////////////////////////////////////////////////////////////////////////////
3698 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
3700 ///////////////////////////////////////////////////////////////////////////////////////
3701 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
3703 ///////////////////////////////////////////////////////////////////////////////////////
3704 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
3706 ///////////////////////////////////////////////////////////////////////////////////////
3707 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
3709 ///////////////////////////////////////////////////////////////////////////////////////
3710 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
3712 ///////////////////////////////////////////////////////////////////////////////////////
3713 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
3715 ///////////////////////////////////////////////////////////////////////////////////////
3716 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
3718 ///////////////////////////////////////////////////////////////////////////////////////
3719 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3720 group { name: "elm/button/base/"style_name; \
3722 image: image_normal COMP; \
3723 image: image_press COMP; \
3724 image: "00_button_EditStyle.png" COMP; \
3725 image: "00_button_EditStyle_press.png" COMP; \
3726 image: "00_button_EditStyle_dim.png" COMP; \
3729 part { name: "button_image"; \
3732 description { state: "default" 0.0; \
3736 normal: "00_button_EditStyle.png"; \
3742 state: "clicked" 0.0; \
3743 inherit: "default" 0.0; \
3744 image.normal: "00_button_EditStyle_press.png"; \
3747 state: "disabled" 0.0; \
3748 inherit: "default" 0.0; \
3749 image.normal: "00_button_EditStyle_dim.png"; \
3752 part { name: "button_center_part"; \
3755 description { state: "default" 0.0; \
3759 normal: image_normal; \
3765 state: "clicked" 0.0; \
3766 inherit: "default" 0.0; \
3767 image.normal: image_press; \
3770 part { name: "over1"; \
3774 ignore_flags: ON_HOLD; \
3775 description { state: "default" 0.0; \
3777 min: min_width min_height; \
3780 part { name: "over2"; \
3783 description { state: "default" 0.0; \
3784 color: 255 255 255 0; \
3786 description { state: "clicked" 0.0; \
3787 inherit: "default" 0.0; \
3789 color: 255 255 255 0; \
3792 part { name: "disabler"; \
3794 description { state: "default" 0.0; \
3798 description { state: "disabled" 0.0; \
3799 inherit: "default" 0.0; \
3805 program { name: "button_click"; \
3806 signal: "mouse,down,1"; \
3808 action: SIGNAL_EMIT "elm,action,press" ""; \
3809 after: "button_click_anim"; \
3811 program { name: "button_click_anim"; \
3812 action: STATE_SET "clicked" 0.0; \
3813 target: "button_image"; \
3814 target: "button_center_part"; \
3816 program { name: "button_unclick"; \
3817 signal: "mouse,up,1"; \
3819 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3820 after: "button_unclick_anim"; \
3822 program { name: "button_unclick_anim"; \
3823 action: STATE_SET "default" 0.0; \
3824 target: "button_image"; \
3825 target: "button_center_part"; \
3827 program { name: "button_click2"; \
3828 signal: "mouse,down,1"; \
3830 action: STATE_SET "clicked" 0.0; \
3833 program { name: "button_unclick2"; \
3834 signal: "mouse,clicked,1"; \
3836 action: STATE_SET "default" 0.0; \
3838 after: "button_unclick3"; \
3840 program { name: "button_unclick3"; \
3841 action: SIGNAL_EMIT "elm,action,click" ""; \
3843 program { name: "disable"; \
3844 signal: "elm,state,disabled"; \
3846 action: STATE_SET "disabled" 0.0; \
3847 target: "disabler"; \
3848 target: "button_image"; \
3850 program { name: "enable"; \
3851 signal: "elm,state,enabled"; \
3853 action: STATE_SET "default" 0.0; \
3854 target: "disabler"; \
3855 target: "button_image"; \
3859 ///////////////////////////////////////////////////////////////////////////////////////
3860 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 46, 46)
3862 ///////////////////////////////////////////////////////////////////////////////////////
3863 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 60, 75)
3865 ///////////////////////////////////////////////////////////////////////////////////////
3866 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 46, 46)
3868 ///////////////////////////////////////////////////////////////////////////////////////
3869 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 60, 75)
3871 ///////////////////////////////////////////////////////////////////////////////////////
3872 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 46, 46)
3874 ///////////////////////////////////////////////////////////////////////////////////////
3875 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 60, 75)
3877 ///////////////////////////////////////////////////////////////////////////////////////
3878 group { name: "elm/button/base/multiline";
3879 alias: "elm/button/base/text_only/multiline";
3881 image: "00_button_04_normal.png" COMP;
3882 image: "00_button_04_press.png" COMP;
3883 image: "00_button_04_dim.png" COMP;
3886 public button_state = BUTTON_STATE_ENABLED;
3889 style { name: "btn_multiline_style";
3890 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=char";
3893 tag: "hilight" "+ font=SLP:style=Bold";
3894 tag: "b" "+ font=SLP:style=Bold";
3899 part { name: "button_image";
3902 description { state: "default" 0.0;
3905 normal: "00_button_04_normal.png";
3910 description { state: "clicked" 0.0;
3911 inherit: "default" 0.0;
3912 image.normal: "00_button_04_press.png";
3914 description { state: "disabled" 0.0;
3915 inherit: "default" 0.0;
3916 image.normal: "00_button_04_dim.png";
3918 description { state: "focused" 0.0;
3919 inherit: "default" 0.0;
3920 image.normal: "00_button_04_press.png";
3924 name: "padding_left";
3928 description { state: "default" 0.0;
3930 rel1.relative: 0.0 0.0;
3931 rel2.relative: 0.0 1.0;
3938 name: "padding_right";
3942 description { state: "default" 0.0;
3944 rel1.relative: 1.0 0.0;
3945 rel2.relative: 1.0 1.0;
3952 name: "padding_top";
3956 description { state: "default" 0.0;
3958 rel1.relative: 0.0 0.0;
3959 rel2.relative: 1.0 0.0;
3966 name: "padding_bottom";
3970 description { state: "default" 0.0;
3972 rel1.relative: 0.0 1.0;
3973 rel2.relative: 1.0 1.0;
3984 description { state: "default" 0.0;
3988 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
3989 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
3995 name: "padding_icon_text";
3999 description { state: "default" 0.0; //when only icon or no icon is there
4001 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4002 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4007 description { state: "icononly" 0.0;
4008 inherit: "default" 0.0;
4010 description { state: "visible" 0.0; //when icon is visible
4012 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4013 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4019 part { name: "elm.swallow.content";
4022 description { state: "default" 0.0;
4025 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4026 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
4029 description { state: "visible" 0.0;
4033 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4034 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
4036 aspect_preference: VERTICAL;
4038 description { state: "icononly" 0.0;
4041 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4042 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
4045 aspect_preference: VERTICAL;
4048 part { name: "elm.text";
4053 description { state: "default" 0.0;
4055 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
4056 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
4058 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4059 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
4061 style: "btn_multiline_style";
4066 description { state: "visible" 0.0;
4067 inherit: "default" 0.0;
4071 description { state: "clicked" 0.0;
4072 inherit: "default" 0.0;
4075 color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
4076 color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
4078 description { state: "disabled" 0.0;
4079 inherit: "default" 0.0;
4083 description { state: "disabled_visible" 0.0;
4084 inherit: "default" 0.0;
4085 color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
4086 color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
4091 description { state: "focused" 0.0;
4092 inherit: "default" 0.0;
4095 color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
4096 color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
4099 part { name: "over2";
4103 ignore_flags: ON_HOLD;
4104 description { state: "default" 0.0;
4107 description { state: "disabled" 0.0;
4108 inherit: "default" 0.0;
4112 part { name: "over3";
4116 description { state: "default" 0.0;
4119 description { state: "clicked" 0.0;
4120 inherit: "default" 0.0;
4124 part { name: "disabler";
4126 description { state: "default" 0.0;
4130 description { state: "disabled" 0.0;
4131 inherit: "default" 0.0;
4137 program { name: "button_click";
4138 signal: "mouse,down,1";
4140 action: SIGNAL_EMIT "elm,action,press" "";
4141 after: "button_click_anim";
4143 program { name: "button_click_anim";
4144 action: STATE_SET "clicked" 0.0;
4145 target: "button_image";
4146 after: "text_clicked";
4148 program { name: "text_clicked";
4152 get_state(PART:"elm.text", st, 30, vl);
4153 if (!strcmp(st, "visible"))
4154 set_state(PART:"elm.text", "clicked", 0.0);
4157 program { name: "button_unpress";
4158 action: SIGNAL_EMIT "elm,action,unpress" "";
4160 program { name: "button_mouseout_clicked";
4161 signal: "mouse,up,1";
4166 get_state(PART:"elm.swallow.content", st, 30, vl);
4167 if (strcmp(st, "icononly"))
4169 emit("elm,action,default,text,set", "");
4170 set_state(PART:"elm.text", "visible", 0.0);
4172 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4173 set_state(PART:"button_image", "default", 0.0);
4175 after: button_unpress;
4177 program { name: "button_click2";
4178 signal: "mouse,down,1";
4180 action: STATE_SET "clicked" 0.0;
4183 program { name: "button_unclick2";
4184 signal: "mouse,clicked,1";
4186 action: STATE_SET "default" 0.0;
4189 program { name: "button_unclick3";
4190 signal: "mouse,clicked,1";
4192 action: SIGNAL_EMIT "elm,action,click" "";
4194 program { name: "text_show";
4195 signal: "elm,state,text,visible";
4200 get_state(PART:"elm.swallow.content", st, 30, vl);
4201 if (!strcmp(st, "icononly"))
4203 set_state(PART:"elm.swallow.content", "visible", 0.0);
4204 set_state(PART:"padding_icon_text", "visible", 0.0);
4206 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4207 set_state(PART:"elm.text", "visible", 0.0);
4209 set_state(PART:"elm.text", "disabled_visible", 0.0);
4212 program { name: "text_hide";
4213 signal: "elm,state,text,hidden";
4218 get_state(PART:"elm.swallow.content", st, 30, vl);
4219 if (!strcmp(st, "visible"))
4221 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4222 set_state(PART:"padding_icon_text", "icononly", 0.0);
4224 set_state(PART:"elm.text", "default", 0.0);
4227 program { name: "icon_show";
4228 signal: "elm,state,icon,visible";
4233 get_state(PART:"elm.text", st, 30, vl);
4234 if (!strcmp(st, "visible"))
4236 set_state(PART:"elm.swallow.content", "visible", 0.0);
4237 set_state(PART:"padding_icon_text", "visible", 0.0);
4241 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4242 set_state(PART:"padding_icon_text", "icononly", 0.0);
4246 program { name: "icon_hide";
4247 signal: "elm,state,icon,hidden";
4249 action: STATE_SET "default" 0.0;
4250 target: "elm.swallow.content";
4252 program { name: "disable";
4253 signal: "elm,state,disabled";
4255 action: STATE_SET "disabled" 0.0;
4256 target: "button_image";
4259 after: "disable_text";
4261 program { name: "disable_text";
4265 get_state(PART:"elm.text", st, 30, vl);
4266 if (!strcmp(st, "visible"))
4267 set_state(PART:"elm.text", "disabled_visible", 0.0);
4269 set_state(PART:"elm.text", "disabled", 0.0);
4270 set_int(button_state, BUTTON_STATE_DISABLED);
4273 program { name: "enable";
4274 signal: "elm,state,enabled";
4276 action: STATE_SET "default" 0.0;
4277 target: "button_image";
4280 after: "enable_text";
4282 program { name: "enable_text";
4286 get_state(PART:"elm.text", st, 30, vl);
4287 if (!strcmp(st, "disabled_visible"))
4288 set_state(PART:"elm.text", "visible", 0.0);
4290 set_state(PART:"elm.text", "default", 0.0);
4291 set_int(button_state, BUTTON_STATE_ENABLED);
4294 program { name: "focused";
4295 //signal: "elm,action,focus";
4297 action: STATE_SET "focused" 0.0;
4298 target: "button_image";
4301 program { name: "unfocused";
4302 //signal: "elm,action,unfocus";
4304 action: STATE_SET "default" 0.0;
4305 target: "button_image";
4306 after: "unfocus_text";
4308 program { name: "unfocus_text";
4309 action: STATE_SET "visible" 0.0;
4315 ///////////////////////////////////////////////////////////////////////////////////////
4316 group { name: "elm/button/base/icon_only/default";
4318 image: "00_button_03_normal.png" COMP;
4319 image: "00_button_03_press.png" COMP;
4320 image: "00_button_03_focus.png" COMP;
4321 image: "00_button_03_dim.png" COMP;
4324 public button_state = BUTTON_STATE_ENABLED;
4327 part { name: "button_image";
4330 description { state: "default" 0.0;
4334 normal: "00_button_03_normal.png";
4339 description { state: "clicked" 0.0;
4340 inherit: "default" 0.0;
4341 image.normal: "00_button_03_press.png";
4343 description { state: "disabled" 0.0;
4344 inherit: "default" 0.0;
4345 image.normal: "00_button_03_dim.png";
4347 description { state: "focused" 0.0;
4348 inherit: "default" 0.0;
4349 image.normal: "00_button_03_focus.png";
4353 name: "padding_left";
4357 description { state: "default" 0.0;
4359 rel1.relative: 0.0 0.0;
4360 rel2.relative: 0.0 1.0;
4367 name: "padding_right";
4371 description { state: "default" 0.0;
4373 rel1.relative: 1.0 0.0;
4374 rel2.relative: 1.0 1.0;
4381 name: "padding_top";
4385 description { state: "default" 0.0;
4387 rel1.relative: 0.0 0.0;
4388 rel2.relative: 1.0 0.0;
4395 name: "padding_bottom";
4399 description { state: "default" 0.0;
4401 rel1.relative: 0.0 1.0;
4402 rel2.relative: 1.0 1.0;
4408 part { name: "elm.swallow.content";
4412 description { state: "default" 0.0;
4416 aspect_preference: VERTICAL;
4417 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4418 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
4421 description { state: "visible" 0.0;
4422 inherit: "default" 0.0;
4426 part { name: "over1";
4429 ignore_flags: ON_HOLD;
4430 description { state: "default" 0.0;
4431 rel1.to: "button_image";
4432 rel2.to: "button_image";
4434 description { state: "disabled" 0.0;
4435 inherit: "default" 0.0;
4439 part { name: "over2";
4442 description { state: "default" 0.0;
4443 rel1.to: "button_image";
4444 rel2.to: "button_image";
4447 description { state: "clicked" 0.0;
4448 inherit: "default" 0.0;
4453 part { name: "disabler";
4455 description { state: "default" 0.0;
4456 rel1.to: "button_image";
4457 rel2.to: "button_image";
4461 description { state: "disabled" 0.0;
4462 inherit: "default" 0.0;
4468 program { name: "button_click";
4469 signal: "mouse,down,1";
4471 action: SIGNAL_EMIT "elm,action,press" "";
4472 after: "button_click_anim";
4474 program { name: "button_click_anim";
4475 action: STATE_SET "clicked" 0.0;
4476 target: "button_image";
4478 program { name: "button_unclick";
4479 signal: "mouse,up,1";
4481 action: SIGNAL_EMIT "elm,action,unpress" "";
4482 after: "button_unclick_anim";
4484 program { name: "button_unclick_anim";
4485 action: STATE_SET "default" 0.0;
4486 target: "button_image";
4488 program { name: "button_click2";
4489 signal: "mouse,down,1";
4491 action: STATE_SET "clicked" 0.0;
4494 program { name: "button_unclick2";
4495 signal: "mouse,clicked,1";
4497 action: STATE_SET "default" 0.0;
4499 after: "button_unclick3";
4501 program { name: "button_unclick3";
4502 action: SIGNAL_EMIT "elm,action,click" "";
4504 program { name: "disable";
4505 signal: "elm,state,disabled";
4507 action: STATE_SET "disabled" 0.0;
4508 target: "button_image";
4511 after : "state_set_disable";
4513 program { name: "state_set_disable";
4515 set_int(button_state, BUTTON_STATE_DISABLED);
4518 program { name: "enable";
4519 signal: "elm,state,enabled";
4521 action: STATE_SET "default" 0.0;
4522 target: "button_image";
4525 after : "state_set_enable";
4527 program { name: "state_set_enable";
4529 set_int(button_state, BUTTON_STATE_ENABLED);
4532 program { name: "icon_show";
4533 signal: "elm,state,icon,visible";
4535 action: STATE_SET "visible" 0.0;
4536 target: "elm.swallow.content";
4538 program { name: "icon_hide";
4539 signal: "elm,state,icon,hidden";
4541 action: STATE_SET "default" 0.0;
4542 target: "elm.swallow.content";
4544 program { name: "focused";
4545 //signal: "elm,action,focus";
4547 action: STATE_SET "focused" 0.0;
4548 target: "button_image";
4550 program { name: "unfocused";
4551 //signal: "elm,action,unfocus";
4553 action: STATE_SET "default" 0.0;
4554 target: "button_image";
4559 ///////////////////////////////////////////////////////////////////////////////////////
4560 group { name: "elm/button/base/default";
4562 image: "00_button_03_normal.png" COMP;
4563 image: "00_button_03_press.png" COMP;
4564 image: "00_button_03_focus.png" COMP;
4567 public button_state = BUTTON_STATE_ENABLED;
4570 part { name: "button_image";
4573 description { state: "default" 0.0;
4576 normal: "00_button_03_normal.png";
4581 description { state: "clicked" 0.0;
4582 inherit: "default" 0.0;
4583 image.normal: "00_button_03_press.png";
4585 description { state: "disabled" 0.0;
4586 inherit: "default" 0.0;
4588 description { state: "focused" 0.0;
4589 inherit: "default" 0.0;
4590 image.normal: "00_button_03_focus.png";
4594 name: "padding_left";
4598 description { state: "default" 0.0;
4600 rel1.relative: 0.0 0.0;
4601 rel2.relative: 0.0 1.0;
4608 name: "padding_right";
4612 description { state: "default" 0.0;
4614 rel1.relative: 1.0 0.0;
4615 rel2.relative: 1.0 1.0;
4622 name: "padding_top";
4626 description { state: "default" 0.0;
4628 rel1.relative: 0.0 0.0;
4629 rel2.relative: 1.0 0.0;
4636 name: "padding_bottom";
4640 description { state: "default" 0.0;
4642 rel1.relative: 0.0 1.0;
4643 rel2.relative: 1.0 1.0;
4650 name: "padding_icon_text";
4654 description { state: "default" 0.0; //when only icon or no icon is there
4656 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
4657 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
4662 description { state: "icononly" 0.0;
4663 inherit: "default" 0.0;
4665 description { state: "visible" 0.0; //when icon is visible
4667 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
4668 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
4674 part { name: "elm.swallow.content";
4677 description { state: "default" 0.0;
4680 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4681 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
4684 description { state: "visible" 0.0;
4688 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
4689 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
4691 aspect_preference: VERTICAL;
4693 description { state: "icononly" 0.0;
4696 rel1 { relative: 1.0 0.0; to_x: "padding_left"; }
4697 rel2 { relative: 0.0 1.0; to_x: "padding_right"; }
4700 aspect_preference: VERTICAL;
4703 part { name: "elm.text";
4708 description { state: "default" 0.0;
4710 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
4711 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
4713 color: 90 73 40 255;
4714 color2: 255 255 255 255;
4716 font: "SLP:style=Medium";
4723 description { state: "visible" 0.0;
4724 inherit: "default" 0.0;
4728 description { state: "clicked" 0.0;
4729 inherit: "default" 0.0;
4732 color: 255 255 255 255;
4735 description { state: "disabled" 0.0;
4736 inherit: "default" 0.0;
4740 description { state: "disabled_visible" 0.0;
4741 inherit: "default" 0.0;
4747 description { state: "focused" 0.0;
4748 inherit: "default" 0.0;
4751 color: 255 255 255 255;
4755 part { name: "over2";
4759 ignore_flags: ON_HOLD;
4760 description { state: "default" 0.0;
4763 description { state: "disabled" 0.0;
4764 inherit: "default" 0.0;
4768 part { name: "over3";
4772 description { state: "default" 0.0;
4775 description { state: "clicked" 0.0;
4776 inherit: "default" 0.0;
4780 part { name: "disabler";
4782 description { state: "default" 0.0;
4786 description { state: "disabled" 0.0;
4787 inherit: "default" 0.0;
4793 program { name: "button_click";
4794 signal: "mouse,down,1";
4796 action: SIGNAL_EMIT "elm,action,press" "";
4797 after: "button_click_anim";
4799 program { name: "button_click_anim";
4800 action: STATE_SET "clicked" 0.0;
4801 target: "button_image";
4802 after: "text_clicked";
4804 program { name: "text_clicked";
4808 get_state(PART:"elm.text", st, 30, vl);
4809 if (!strcmp(st, "visible"))
4810 set_state(PART:"elm.text", "clicked", 0.0);
4813 program { name: "button_unpress";
4814 action: SIGNAL_EMIT "elm,action,unpress" "";
4816 program { name: "button_mouseout_clicked";
4817 signal: "mouse,up,1";
4822 get_state(PART:"elm.swallow.content", st, 30, vl);
4823 if (strcmp(st, "icononly"))
4825 emit("elm,action,default,text,set", "");
4826 set_state(PART:"elm.text", "visible", 0.0);
4828 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4829 set_state(PART:"button_image", "default", 0.0);
4831 after: button_unpress;
4833 program { name: "button_click2";
4834 signal: "mouse,down,1";
4836 action: STATE_SET "clicked" 0.0;
4839 program { name: "button_unclick2";
4840 signal: "mouse,clicked,1";
4842 action: STATE_SET "default" 0.0;
4845 program { name: "button_unclick3";
4846 signal: "mouse,clicked,1";
4848 action: SIGNAL_EMIT "elm,action,click" "";
4850 program { name: "text_show";
4851 signal: "elm,state,text,visible";
4856 get_state(PART:"elm.swallow.content", st, 30, vl);
4857 if (!strcmp(st, "icononly"))
4859 set_state(PART:"elm.swallow.content", "visible", 0.0);
4860 set_state(PART:"padding_icon_text", "visible", 0.0);
4862 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4863 set_state(PART:"elm.text", "visible", 0.0);
4865 set_state(PART:"elm.text", "disabled_visible", 0.0);
4868 program { name: "text_hide";
4869 signal: "elm,state,text,hidden";
4874 get_state(PART:"elm.swallow.content", st, 30, vl);
4875 if (!strcmp(st, "visible"))
4877 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4878 set_state(PART:"padding_icon_text", "icononly", 0.0);
4880 set_state(PART:"elm.text", "default", 0.0);
4883 program { name: "icon_show";
4884 signal: "elm,state,icon,visible";
4889 get_state(PART:"elm.text", st, 30, vl);
4890 if (!strcmp(st, "visible"))
4892 set_state(PART:"elm.swallow.content", "visible", 0.0);
4893 set_state(PART:"padding_icon_text", "visible", 0.0);
4897 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4898 set_state(PART:"padding_icon_text", "icononly", 0.0);
4902 program { name: "icon_hide";
4903 signal: "elm,state,icon,hidden";
4905 action: STATE_SET "default" 0.0;
4906 target: "elm.swallow.content";
4908 program { name: "disable";
4909 signal: "elm,state,disabled";
4911 action: STATE_SET "disabled" 0.0;
4912 target: "button_image";
4915 after: "disable_text";
4917 program { name: "disable_text";
4921 get_state(PART:"elm.text", st, 30, vl);
4922 if (!strcmp(st, "visible"))
4923 set_state(PART:"elm.text", "disabled_visible", 0.0);
4925 set_state(PART:"elm.text", "disabled", 0.0);
4926 set_int(button_state, BUTTON_STATE_DISABLED);
4929 program { name: "enable";
4930 signal: "elm,state,enabled";
4932 action: STATE_SET "default" 0.0;
4933 target: "button_image";
4936 after: "enable_text";
4938 program { name: "enable_text";
4942 get_state(PART:"elm.text", st, 30, vl);
4943 if (!strcmp(st, "disabled_visible"))
4944 set_state(PART:"elm.text", "visible", 0.0);
4946 set_state(PART:"elm.text", "default", 0.0);
4947 set_int(button_state, BUTTON_STATE_ENABLED);
4950 program { name: "focused";
4951 //signal: "elm,action,focus";
4953 action: STATE_SET "focused" 0.0;
4954 target: "button_image";
4957 program { name: "unfocused";
4958 //signal: "elm,action,unfocus";
4960 action: STATE_SET "default" 0.0;
4961 target: "button_image";
4962 after: "unfocus_text";
4964 program { name: "unfocus_text";
4965 action: STATE_SET "visible" 0.0;
4971 ///////////////////////////////////////////////////////////////////////////////////////
4972 group { name: "elm/button/base/hidden";
4974 image: "00_button_sweep.png" COMP;
4975 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4976 //image: "00_button_sweep_dim.png" COMP;
4979 public button_state = BUTTON_STATE_ENABLED;
4982 part { name: "button_image";
4985 description { state: "default" 0.0;
4988 normal: "00_button_sweep.png";
4993 description { state: "clicked" 0.0;
4994 inherit: "default" 0.0;
4995 image.normal: "00_button_sweep_press.png";
4997 description { state: "disabled" 0.0;
4998 inherit: "default" 0.0;
5000 description { state: "focused" 0.0;
5001 inherit: "default" 0.0;
5002 image.normal: "00_button_sweep_press.png";
5006 name: "padding_left";
5010 description { state: "default" 0.0;
5012 rel1.relative: 0.0 0.0;
5013 rel2.relative: 0.0 1.0;
5020 name: "padding_right";
5024 description { state: "default" 0.0;
5026 rel1.relative: 1.0 0.0;
5027 rel2.relative: 1.0 1.0;
5034 name: "padding_top";
5038 description { state: "default" 0.0;
5040 rel1.relative: 0.0 0.0;
5041 rel2.relative: 1.0 0.0;
5048 name: "padding_bottom";
5052 description { state: "default" 0.0;
5054 rel1.relative: 0.0 1.0;
5055 rel2.relative: 1.0 1.0;
5066 description { state: "default" 0.0;
5070 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
5071 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
5077 name: "padding_icon_text";
5081 description { state: "default" 0.0; //when only icon or no icon is there
5083 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5084 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5089 description { state: "icononly" 0.0;
5090 inherit: "default" 0.0;
5092 description { state: "visible" 0.0; //when icon is visible
5094 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5095 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5101 part { name: "elm.swallow.content";
5104 description { state: "default" 0.0;
5107 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5108 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5111 description { state: "visible" 0.0;
5115 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5116 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5118 aspect_preference: VERTICAL;
5120 description { state: "icononly" 0.0;
5123 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5124 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
5127 aspect_preference: VERTICAL;
5130 part { name: "elm.text";
5135 description { state: "default" 0.0;
5137 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
5138 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
5140 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
5141 color2: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
5143 font: "SLP:style=Medium";
5150 description { state: "visible" 0.0;
5151 inherit: "default" 0.0;
5155 description { state: "clicked" 0.0;
5156 inherit: "default" 0.0;
5159 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
5160 color2: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
5162 description { state: "disabled" 0.0;
5163 inherit: "default" 0.0;
5167 description { state: "disabled_visible" 0.0;
5168 inherit: "default" 0.0;
5169 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
5170 color2: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
5175 description { state: "focused" 0.0;
5176 inherit: "default" 0.0;
5179 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
5180 color2: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
5183 part { name: "over2";
5187 ignore_flags: ON_HOLD;
5188 description { state: "default" 0.0;
5191 description { state: "disabled" 0.0;
5192 inherit: "default" 0.0;
5196 part { name: "over3";
5200 description { state: "default" 0.0;
5203 description { state: "clicked" 0.0;
5204 inherit: "default" 0.0;
5208 part { name: "disabler";
5210 description { state: "default" 0.0;
5214 description { state: "disabled" 0.0;
5215 inherit: "default" 0.0;
5221 program { name: "button_click";
5222 signal: "mouse,down,1";
5224 action: SIGNAL_EMIT "elm,action,press" "";
5225 after: "button_click_anim";
5227 program { name: "button_click_anim";
5228 action: STATE_SET "clicked" 0.0;
5229 target: "button_image";
5230 after: "text_clicked";
5232 program { name: "text_clicked";
5236 get_state(PART:"elm.text", st, 30, vl);
5237 if (!strcmp(st, "visible"))
5238 set_state(PART:"elm.text", "clicked", 0.0);
5241 program { name: "button_unpress";
5242 action: SIGNAL_EMIT "elm,action,unpress" "";
5244 program { name: "button_mouseout_clicked";
5245 signal: "mouse,up,1";
5250 get_state(PART:"elm.swallow.content", st, 30, vl);
5251 if (strcmp(st, "icononly"))
5253 emit("elm,action,default,text,set", "");
5254 set_state(PART:"elm.text", "visible", 0.0);
5256 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5257 set_state(PART:"button_image", "default", 0.0);
5259 after: button_unpress;
5261 program { name: "button_click2";
5262 signal: "mouse,down,1";
5264 action: STATE_SET "clicked" 0.0;
5267 program { name: "button_unclick2";
5268 signal: "mouse,clicked,1";
5270 action: STATE_SET "default" 0.0;
5273 program { name: "button_unclick3";
5274 signal: "mouse,clicked,1";
5276 action: SIGNAL_EMIT "elm,action,click" "";
5278 program { name: "text_show";
5279 signal: "elm,state,text,visible";
5284 get_state(PART:"elm.swallow.content", st, 30, vl);
5285 if (!strcmp(st, "icononly"))
5287 set_state(PART:"elm.swallow.content", "visible", 0.0);
5288 set_state(PART:"padding_icon_text", "visible", 0.0);
5290 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5291 set_state(PART:"elm.text", "visible", 0.0);
5293 set_state(PART:"elm.text", "disabled_visible", 0.0);
5296 program { name: "text_hide";
5297 signal: "elm,state,text,hidden";
5302 get_state(PART:"elm.swallow.content", st, 30, vl);
5303 if (!strcmp(st, "visible"))
5305 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5306 set_state(PART:"padding_icon_text", "icononly", 0.0);
5308 set_state(PART:"elm.text", "default", 0.0);
5311 program { name: "icon_show";
5312 signal: "elm,state,icon,visible";
5317 get_state(PART:"elm.text", st, 30, vl);
5318 if (!strcmp(st, "visible"))
5320 set_state(PART:"elm.swallow.content", "visible", 0.0);
5321 set_state(PART:"padding_icon_text", "visible", 0.0);
5325 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5326 set_state(PART:"padding_icon_text", "icononly", 0.0);
5330 program { name: "icon_hide";
5331 signal: "elm,state,icon,hidden";
5333 action: STATE_SET "default" 0.0;
5334 target: "elm.swallow.content";
5336 program { name: "disable";
5337 signal: "elm,state,disabled";
5339 action: STATE_SET "disabled" 0.0;
5340 target: "button_image";
5343 after: "disable_text";
5345 program { name: "disable_text";
5349 get_state(PART:"elm.text", st, 30, vl);
5350 if (!strcmp(st, "visible"))
5351 set_state(PART:"elm.text", "disabled_visible", 0.0);
5353 set_state(PART:"elm.text", "disabled", 0.0);
5354 set_int(button_state, BUTTON_STATE_DISABLED);
5357 program { name: "enable";
5358 signal: "elm,state,enabled";
5360 action: STATE_SET "default" 0.0;
5361 target: "button_image";
5364 after: "enable_text";
5366 program { name: "enable_text";
5370 get_state(PART:"elm.text", st, 30, vl);
5371 if (!strcmp(st, "disabled_visible"))
5372 set_state(PART:"elm.text", "visible", 0.0);
5374 set_state(PART:"elm.text", "default", 0.0);
5375 set_int(button_state, BUTTON_STATE_ENABLED);
5378 program { name: "focused";
5379 //signal: "elm,action,focus";
5381 action: STATE_SET "focused" 0.0;
5382 target: "button_image";
5385 program { name: "unfocused";
5386 //signal: "elm,action,unfocus";
5388 action: STATE_SET "default" 0.0;
5389 target: "button_image";
5390 after: "unfocus_text";
5392 program { name: "unfocus_text";
5393 action: STATE_SET "visible" 0.0;
5399 ///////////////////////////////////////////////////////////////////////////////////////
5400 group { name: "elm/button/base/popup/contact";
5402 image: "00_button_01_normal.png" COMP;
5403 image: "00_button_01_normal_press.png" COMP;
5406 public button_state = BUTTON_STATE_ENABLED;
5409 part { name: "button_image";
5412 description { state: "default" 0.0;
5415 normal: "00_button_01_normal.png";
5420 description { state: "clicked" 0.0;
5421 inherit: "default" 0.0;
5422 image.normal: "00_button_01_normal_press.png";
5424 description { state: "disabled" 0.0;
5425 inherit: "default" 0.0;
5427 description { state: "focused" 0.0;
5428 inherit: "default" 0.0;
5429 // image.normal: "00_button_01_normal_press.png";
5433 name: "padding_left";
5437 description { state: "default" 0.0;
5439 rel1.relative: 0.0 0.0;
5440 rel2.relative: 0.0 1.0;
5447 name: "padding_right";
5451 description { state: "default" 0.0;
5453 rel1.relative: 1.0 0.0;
5454 rel2.relative: 1.0 1.0;
5461 name: "padding_top";
5465 description { state: "default" 0.0;
5467 rel1.relative: 0.0 0.0;
5468 rel2.relative: 1.0 0.0;
5475 name: "padding_bottom";
5479 description { state: "default" 0.0;
5481 rel1.relative: 0.0 1.0;
5482 rel2.relative: 1.0 1.0;
5493 description { state: "default" 0.0;
5497 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
5498 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
5504 name: "padding_icon_text";
5508 description { state: "default" 0.0; //when only icon or no icon is there
5510 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5511 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5516 description { state: "icononly" 0.0;
5517 inherit: "default" 0.0;
5519 description { state: "visible" 0.0; //when icon is visible
5521 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5522 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5528 part { name: "elm.swallow.content";
5531 description { state: "default" 0.0;
5534 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5535 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5538 description { state: "visible" 0.0;
5542 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5543 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5545 aspect_preference: VERTICAL;
5547 description { state: "icononly" 0.0;
5550 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5551 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
5554 aspect_preference: VERTICAL;
5557 part { name: "elm.text";
5562 description { state: "default" 0.0;
5564 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
5565 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
5567 color: 90 73 40 255;
5568 color2: 255 255 255 255;
5570 font: "SLP:style=Medium";
5577 description { state: "visible" 0.0;
5578 inherit: "default" 0.0;
5582 description { state: "clicked" 0.0;
5583 inherit: "default" 0.0;
5586 color: 255 255 255 255;
5589 description { state: "disabled" 0.0;
5590 inherit: "default" 0.0;
5594 description { state: "disabled_visible" 0.0;
5595 inherit: "default" 0.0;
5601 description { state: "focused" 0.0;
5602 inherit: "default" 0.0;
5605 color: 255 255 255 255;
5609 part { name: "over2";
5613 ignore_flags: ON_HOLD;
5614 description { state: "default" 0.0;
5617 description { state: "disabled" 0.0;
5618 inherit: "default" 0.0;
5622 part { name: "over3";
5626 description { state: "default" 0.0;
5629 description { state: "clicked" 0.0;
5630 inherit: "default" 0.0;
5634 part { name: "disabler";
5636 description { state: "default" 0.0;
5640 description { state: "disabled" 0.0;
5641 inherit: "default" 0.0;
5647 program { name: "button_click";
5648 signal: "mouse,down,1";
5650 action: SIGNAL_EMIT "elm,action,press" "";
5651 after: "button_click_anim";
5653 program { name: "button_click_anim";
5654 action: STATE_SET "clicked" 0.0;
5655 target: "button_image";
5656 after: "text_clicked";
5658 program { name: "text_clicked";
5662 get_state(PART:"elm.text", st, 30, vl);
5663 if (!strcmp(st, "visible"))
5664 set_state(PART:"elm.text", "clicked", 0.0);
5667 program { name: "button_unpress";
5668 action: SIGNAL_EMIT "elm,action,unpress" "";
5670 program { name: "button_mouseout_clicked";
5671 signal: "mouse,up,1";
5676 get_state(PART:"elm.swallow.content", st, 30, vl);
5677 if (strcmp(st, "icononly"))
5679 emit("elm,action,default,text,set", "");
5680 set_state(PART:"elm.text", "visible", 0.0);
5682 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5683 set_state(PART:"button_image", "default", 0.0);
5685 after: button_unpress;
5687 program { name: "button_click2";
5688 signal: "mouse,down,1";
5690 action: STATE_SET "clicked" 0.0;
5693 program { name: "button_unclick2";
5694 signal: "mouse,clicked,1";
5696 action: STATE_SET "default" 0.0;
5699 program { name: "button_unclick3";
5700 signal: "mouse,clicked,1";
5702 action: SIGNAL_EMIT "elm,action,click" "";
5704 program { name: "text_show";
5705 signal: "elm,state,text,visible";
5710 get_state(PART:"elm.swallow.content", st, 30, vl);
5711 if (!strcmp(st, "icononly"))
5713 set_state(PART:"elm.swallow.content", "visible", 0.0);
5714 set_state(PART:"padding_icon_text", "visible", 0.0);
5716 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5717 set_state(PART:"elm.text", "visible", 0.0);
5719 set_state(PART:"elm.text", "disabled_visible", 0.0);
5722 program { name: "text_hide";
5723 signal: "elm,state,text,hidden";
5728 get_state(PART:"elm.swallow.content", st, 30, vl);
5729 if (!strcmp(st, "visible"))
5731 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5732 set_state(PART:"padding_icon_text", "icononly", 0.0);
5734 set_state(PART:"elm.text", "default", 0.0);
5737 program { name: "icon_show";
5738 signal: "elm,state,icon,visible";
5743 get_state(PART:"elm.text", st, 30, vl);
5744 if (!strcmp(st, "visible"))
5746 set_state(PART:"elm.swallow.content", "visible", 0.0);
5747 set_state(PART:"padding_icon_text", "visible", 0.0);
5751 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5752 set_state(PART:"padding_icon_text", "icononly", 0.0);
5756 program { name: "icon_hide";
5757 signal: "elm,state,icon,hidden";
5759 action: STATE_SET "default" 0.0;
5760 target: "elm.swallow.content";
5762 program { name: "disable";
5763 signal: "elm,state,disabled";
5765 action: STATE_SET "disabled" 0.0;
5766 target: "button_image";
5769 after: "disable_text";
5771 program { name: "disable_text";
5775 get_state(PART:"elm.text", st, 30, vl);
5776 if (!strcmp(st, "visible"))
5777 set_state(PART:"elm.text", "disabled_visible", 0.0);
5779 set_state(PART:"elm.text", "disabled", 0.0);
5780 set_int(button_state, BUTTON_STATE_DISABLED);
5783 program { name: "enable";
5784 signal: "elm,state,enabled";
5786 action: STATE_SET "default" 0.0;
5787 target: "button_image";
5790 after: "enable_text";
5792 program { name: "enable_text";
5796 get_state(PART:"elm.text", st, 30, vl);
5797 if (!strcmp(st, "disabled_visible"))
5798 set_state(PART:"elm.text", "visible", 0.0);
5800 set_state(PART:"elm.text", "default", 0.0);
5801 set_int(button_state, BUTTON_STATE_ENABLED);
5804 program { name: "focused";
5805 //signal: "elm,action,focus";
5807 action: STATE_SET "focused" 0.0;
5808 target: "button_image";
5811 program { name: "unfocused";
5812 //signal: "elm,action,unfocus";
5814 action: STATE_SET "default" 0.0;
5815 target: "button_image";
5816 after: "unfocus_text";
5818 program { name: "unfocus_text";
5819 action: STATE_SET "visible" 0.0;
5825 ///////////////////////////////////////////////////////////////////////////////////////
5826 group { name: "elm/button/base/picker/bar/default";
5828 image: "00_picker_btn_normal.png" COMP;
5829 image: "00_picker_btn_press.png" COMP;
5832 public button_state = BUTTON_STATE_ENABLED;
5835 part { name: "button_image";
5838 description { state: "default" 0.0;
5841 normal: "00_picker_btn_normal.png";
5846 description { state: "clicked" 0.0;
5847 inherit: "default" 0.0;
5848 image.normal: "00_picker_btn_press.png";
5850 description { state: "disabled" 0.0;
5851 inherit: "default" 0.0;
5853 description { state: "focused" 0.0;
5854 inherit: "default" 0.0;
5855 image.normal: "00_picker_btn_press.png";
5859 name: "padding_left";
5863 description { state: "default" 0.0;
5865 rel1.relative: 0.0 0.0;
5866 rel2.relative: 0.0 1.0;
5873 name: "padding_right";
5877 description { state: "default" 0.0;
5879 rel1.relative: 1.0 0.0;
5880 rel2.relative: 1.0 1.0;
5887 name: "padding_top";
5891 description { state: "default" 0.0;
5893 rel1.relative: 0.0 0.0;
5894 rel2.relative: 1.0 0.0;
5901 name: "padding_bottom";
5905 description { state: "default" 0.0;
5907 rel1.relative: 0.0 1.0;
5908 rel2.relative: 1.0 1.0;
5919 description { state: "default" 0.0;
5923 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
5924 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
5930 name: "padding_icon_text";
5934 description { state: "default" 0.0; //when only icon or no icon is there
5936 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5937 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5942 description { state: "icononly" 0.0;
5943 inherit: "default" 0.0;
5945 description { state: "visible" 0.0; //when icon is visible
5947 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
5948 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
5954 part { name: "elm.swallow.content";
5957 description { state: "default" 0.0;
5960 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5961 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5964 description { state: "visible" 0.0;
5968 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5969 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
5971 aspect_preference: VERTICAL;
5973 description { state: "icononly" 0.0;
5976 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
5977 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
5980 aspect_preference: VERTICAL;
5983 part { name: "elm.text";
5988 description { state: "default" 0.0;
5990 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
5991 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
5993 color: 78 73 69 255;
5996 font: "SLP:style=Medium";
6003 description { state: "visible" 0.0;
6004 inherit: "default" 0.0;
6008 description { state: "clicked" 0.0;
6009 inherit: "default" 0.0;
6012 color: 255 255 255 255;
6015 description { state: "disabled" 0.0;
6016 inherit: "default" 0.0;
6020 description { state: "disabled_visible" 0.0;
6021 inherit: "default" 0.0;
6027 description { state: "focused" 0.0;
6028 inherit: "default" 0.0;
6031 color: 255 255 255 255;
6035 part { name: "over2";
6039 ignore_flags: ON_HOLD;
6040 description { state: "default" 0.0;
6043 description { state: "disabled" 0.0;
6044 inherit: "default" 0.0;
6048 part { name: "over3";
6052 description { state: "default" 0.0;
6055 description { state: "clicked" 0.0;
6056 inherit: "default" 0.0;
6060 part { name: "disabler";
6062 description { state: "default" 0.0;
6066 description { state: "disabled" 0.0;
6067 inherit: "default" 0.0;
6073 program { name: "button_click";
6074 signal: "mouse,down,1";
6076 action: SIGNAL_EMIT "elm,action,press" "";
6077 after: "button_click_anim";
6079 program { name: "button_click_anim";
6080 action: STATE_SET "clicked" 0.0;
6081 target: "button_image";
6082 after: "text_clicked";
6084 program { name: "text_clicked";
6088 get_state(PART:"elm.text", st, 30, vl);
6089 if (!strcmp(st, "visible"))
6090 set_state(PART:"elm.text", "clicked", 0.0);
6093 program { name: "button_unpress";
6094 action: SIGNAL_EMIT "elm,action,unpress" "";
6096 program { name: "button_mouseout_clicked";
6097 signal: "mouse,up,1";
6102 get_state(PART:"elm.swallow.content", st, 30, vl);
6103 if (strcmp(st, "icononly"))
6105 emit("elm,action,default,text,set", "");
6106 set_state(PART:"elm.text", "visible", 0.0);
6108 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6109 set_state(PART:"button_image", "default", 0.0);
6111 after: button_unpress;
6113 program { name: "button_click2";
6114 signal: "mouse,down,1";
6116 action: STATE_SET "clicked" 0.0;
6119 program { name: "button_unclick2";
6120 signal: "mouse,clicked,1";
6122 action: STATE_SET "default" 0.0;
6125 program { name: "button_unclick3";
6126 signal: "mouse,clicked,1";
6128 action: SIGNAL_EMIT "elm,action,click" "";
6130 program { name: "text_show";
6131 signal: "elm,state,text,visible";
6136 get_state(PART:"elm.swallow.content", st, 30, vl);
6137 if (!strcmp(st, "icononly"))
6139 set_state(PART:"elm.swallow.content", "visible", 0.0);
6140 set_state(PART:"padding_icon_text", "visible", 0.0);
6142 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6143 set_state(PART:"elm.text", "visible", 0.0);
6145 set_state(PART:"elm.text", "disabled_visible", 0.0);
6148 program { name: "text_hide";
6149 signal: "elm,state,text,hidden";
6154 get_state(PART:"elm.swallow.content", st, 30, vl);
6155 if (!strcmp(st, "visible"))
6157 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6158 set_state(PART:"padding_icon_text", "icononly", 0.0);
6160 set_state(PART:"elm.text", "default", 0.0);
6163 program { name: "icon_show";
6164 signal: "elm,state,icon,visible";
6169 get_state(PART:"elm.text", st, 30, vl);
6170 if (!strcmp(st, "visible"))
6172 set_state(PART:"elm.swallow.content", "visible", 0.0);
6173 set_state(PART:"padding_icon_text", "visible", 0.0);
6177 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6178 set_state(PART:"padding_icon_text", "icononly", 0.0);
6182 program { name: "icon_hide";
6183 signal: "elm,state,icon,hidden";
6185 action: STATE_SET "default" 0.0;
6186 target: "elm.swallow.content";
6188 program { name: "disable";
6189 signal: "elm,state,disabled";
6191 action: STATE_SET "disabled" 0.0;
6192 target: "button_image";
6195 after: "disable_text";
6197 program { name: "disable_text";
6201 get_state(PART:"elm.text", st, 30, vl);
6202 if (!strcmp(st, "visible"))
6203 set_state(PART:"elm.text", "disabled_visible", 0.0);
6205 set_state(PART:"elm.text", "disabled", 0.0);
6206 set_int(button_state, BUTTON_STATE_DISABLED);
6209 program { name: "enable";
6210 signal: "elm,state,enabled";
6212 action: STATE_SET "default" 0.0;
6213 target: "button_image";
6216 after: "enable_text";
6218 program { name: "enable_text";
6222 get_state(PART:"elm.text", st, 30, vl);
6223 if (!strcmp(st, "disabled_visible"))
6224 set_state(PART:"elm.text", "visible", 0.0);
6226 set_state(PART:"elm.text", "default", 0.0);
6227 set_int(button_state, BUTTON_STATE_ENABLED);
6230 program { name: "focused";
6231 //signal: "elm,action,focus";
6233 action: STATE_SET "focused" 0.0;
6234 target: "button_image";
6237 program { name: "unfocused";
6238 //signal: "elm,action,unfocus";
6240 action: STATE_SET "default" 0.0;
6241 target: "button_image";
6242 after: "unfocus_text";
6244 program { name: "unfocus_text";
6245 action: STATE_SET "visible" 0.0;
6251 ///////////////////////////////////////////////////////////////////////////////////////
6252 group { name: "elm/button/base/picker/prev/text/default";
6253 alias: "elm/button/base/picker/next/text/default";
6255 image: "00_picker_btn_normal.png" COMP;
6256 image: "00_picker_btn_press.png" COMP;
6259 public button_state = BUTTON_STATE_ENABLED;
6262 part { name: "button_image";
6265 description { state: "default" 0.0;
6268 normal: "00_picker_btn_normal.png";
6273 description { state: "clicked" 0.0;
6274 inherit: "default" 0.0;
6275 image.normal: "00_picker_btn_press.png";
6277 description { state: "disabled" 0.0;
6278 inherit: "default" 0.0;
6280 description { state: "focused" 0.0;
6281 inherit: "default" 0.0;
6282 image.normal: "00_picker_btn_press.png";
6286 name: "padding_left";
6290 description { state: "default" 0.0;
6292 rel1.relative: 0.0 0.0;
6293 rel2.relative: 0.0 1.0;
6300 name: "padding_right";
6304 description { state: "default" 0.0;
6306 rel1.relative: 1.0 0.0;
6307 rel2.relative: 1.0 1.0;
6314 name: "padding_top";
6318 description { state: "default" 0.0;
6320 rel1.relative: 0.0 0.0;
6321 rel2.relative: 1.0 0.0;
6328 name: "padding_bottom";
6332 description { state: "default" 0.0;
6334 rel1.relative: 0.0 1.0;
6335 rel2.relative: 1.0 1.0;
6346 description { state: "default" 0.0;
6350 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
6351 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
6357 name: "padding_icon_text";
6361 description { state: "default" 0.0; //when only icon or no icon is there
6363 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6364 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6369 description { state: "icononly" 0.0;
6370 inherit: "default" 0.0;
6372 description { state: "visible" 0.0; //when icon is visible
6374 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6375 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6381 part { name: "elm.swallow.content";
6384 description { state: "default" 0.0;
6387 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6388 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
6391 description { state: "visible" 0.0;
6395 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6396 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
6398 aspect_preference: VERTICAL;
6400 description { state: "icononly" 0.0;
6403 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6404 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
6407 aspect_preference: VERTICAL;
6410 part { name: "elm.text";
6415 description { state: "default" 0.0;
6417 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
6418 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
6420 color: 78 73 69 255;
6423 font: "SLP:style=Medium";
6430 description { state: "visible" 0.0;
6431 inherit: "default" 0.0;
6435 description { state: "clicked" 0.0;
6436 inherit: "default" 0.0;
6439 color: 255 255 255 255;
6442 description { state: "disabled" 0.0;
6443 inherit: "default" 0.0;
6447 description { state: "disabled_visible" 0.0;
6448 inherit: "default" 0.0;
6454 description { state: "focused" 0.0;
6455 inherit: "default" 0.0;
6458 color: 255 255 255 255;
6462 part { name: "over2";
6466 ignore_flags: ON_HOLD;
6467 description { state: "default" 0.0;
6470 description { state: "disabled" 0.0;
6471 inherit: "default" 0.0;
6475 part { name: "over3";
6479 description { state: "default" 0.0;
6482 description { state: "clicked" 0.0;
6483 inherit: "default" 0.0;
6487 part { name: "disabler";
6489 description { state: "default" 0.0;
6493 description { state: "disabled" 0.0;
6494 inherit: "default" 0.0;
6500 program { name: "button_click";
6501 signal: "mouse,down,1";
6503 action: SIGNAL_EMIT "elm,action,press" "";
6504 after: "button_click_anim";
6506 program { name: "button_click_anim";
6507 action: STATE_SET "clicked" 0.0;
6508 target: "button_image";
6509 after: "text_clicked";
6511 program { name: "text_clicked";
6515 get_state(PART:"elm.text", st, 30, vl);
6516 if (!strcmp(st, "visible"))
6517 set_state(PART:"elm.text", "clicked", 0.0);
6520 program { name: "button_unpress";
6521 action: SIGNAL_EMIT "elm,action,unpress" "";
6523 program { name: "button_mouseout_clicked";
6524 signal: "mouse,up,1";
6529 get_state(PART:"elm.swallow.content", st, 30, vl);
6530 if (strcmp(st, "icononly"))
6532 emit("elm,action,default,text,set", "");
6533 set_state(PART:"elm.text", "visible", 0.0);
6535 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6536 set_state(PART:"button_image", "default", 0.0);
6538 after: button_unpress;
6540 program { name: "button_click2";
6541 signal: "mouse,down,1";
6543 action: STATE_SET "clicked" 0.0;
6546 program { name: "button_unclick2";
6547 signal: "mouse,clicked,1";
6549 action: STATE_SET "default" 0.0;
6552 program { name: "button_unclick3";
6553 signal: "mouse,clicked,1";
6555 action: SIGNAL_EMIT "elm,action,click" "";
6557 program { name: "text_show";
6558 signal: "elm,state,text,visible";
6563 get_state(PART:"elm.swallow.content", st, 30, vl);
6564 if (!strcmp(st, "icononly"))
6566 set_state(PART:"elm.swallow.content", "visible", 0.0);
6567 set_state(PART:"padding_icon_text", "visible", 0.0);
6569 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6570 set_state(PART:"elm.text", "visible", 0.0);
6572 set_state(PART:"elm.text", "disabled_visible", 0.0);
6575 program { name: "text_hide";
6576 signal: "elm,state,text,hidden";
6581 get_state(PART:"elm.swallow.content", st, 30, vl);
6582 if (!strcmp(st, "visible"))
6584 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6585 set_state(PART:"padding_icon_text", "icononly", 0.0);
6587 set_state(PART:"elm.text", "default", 0.0);
6590 program { name: "icon_show";
6591 signal: "elm,state,icon,visible";
6596 get_state(PART:"elm.text", st, 30, vl);
6597 if (!strcmp(st, "visible"))
6599 set_state(PART:"elm.swallow.content", "visible", 0.0);
6600 set_state(PART:"padding_icon_text", "visible", 0.0);
6604 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6605 set_state(PART:"padding_icon_text", "icononly", 0.0);
6609 program { name: "icon_hide";
6610 signal: "elm,state,icon,hidden";
6612 action: STATE_SET "default" 0.0;
6613 target: "elm.swallow.content";
6615 program { name: "disable";
6616 signal: "elm,state,disabled";
6618 action: STATE_SET "disabled" 0.0;
6619 target: "button_image";
6622 after: "disable_text";
6624 program { name: "disable_text";
6628 get_state(PART:"elm.text", st, 30, vl);
6629 if (!strcmp(st, "visible"))
6630 set_state(PART:"elm.text", "disabled_visible", 0.0);
6632 set_state(PART:"elm.text", "disabled", 0.0);
6633 set_int(button_state, BUTTON_STATE_DISABLED);
6636 program { name: "enable";
6637 signal: "elm,state,enabled";
6639 action: STATE_SET "default" 0.0;
6640 target: "button_image";
6643 after: "enable_text";
6645 program { name: "enable_text";
6649 get_state(PART:"elm.text", st, 30, vl);
6650 if (!strcmp(st, "disabled_visible"))
6651 set_state(PART:"elm.text", "visible", 0.0);
6653 set_state(PART:"elm.text", "default", 0.0);
6654 set_int(button_state, BUTTON_STATE_ENABLED);
6657 program { name: "focused";
6658 //signal: "elm,action,focus";
6660 action: STATE_SET "focused" 0.0;
6661 target: "button_image";
6664 program { name: "unfocused";
6665 //signal: "elm,action,unfocus";
6667 action: STATE_SET "default" 0.0;
6668 target: "button_image";
6669 after: "unfocus_text";
6671 program { name: "unfocus_text";
6672 action: STATE_SET "visible" 0.0;
6678 ///////////////////////////////////////////////////////////////////////////////////////
6679 group { name: "elm/button/base/center";
6680 alias: "elm/button/base/icon_and_text/center";
6682 image: "00_button_01_normal.png" COMP;
6683 image: "00_button_01_normal_press.png" COMP;
6684 image: "00_button_01_normal_dim.png" COMP;
6687 public button_state = BUTTON_STATE_ENABLED;
6690 part { name: "button_image";
6693 description { state: "default" 0.0;
6696 normal: "00_button_01_normal.png";
6701 description { state: "clicked" 0.0;
6702 inherit: "default" 0.0;
6703 image.normal: "00_button_01_normal_press.png";
6705 description { state: "disabled" 0.0;
6706 inherit: "default" 0.0;
6707 image.normal: "00_button_01_normal_dim.png";
6709 description { state: "focused" 0.0;
6710 inherit: "default" 0.0;
6711 image.normal: "00_button_01_normal_press.png";
6715 name: "padding_left";
6719 description { state: "default" 0.0;
6721 rel1.relative: 0.0 0.0;
6722 rel2.relative: 0.0 1.0;
6729 name: "padding_right";
6733 description { state: "default" 0.0;
6735 rel1.relative: 1.0 0.0;
6736 rel2.relative: 1.0 1.0;
6743 name: "padding_top";
6747 description { state: "default" 0.0;
6749 rel1.relative: 0.0 0.0;
6750 rel2.relative: 1.0 0.0;
6757 name: "padding_bottom";
6761 description { state: "default" 0.0;
6763 rel1.relative: 0.0 1.0;
6764 rel2.relative: 1.0 1.0;
6775 description { state: "default" 0.0;
6779 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6780 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
6784 description { state: "visible" 0.0;
6789 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6790 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
6792 aspect_preference: VERTICAL;
6796 description { state: "icononly" 0.0;
6797 inherit: "default" 0.0;
6801 name: "padding_after_icon";
6805 description { state: "default" 0.0; //when only icon or no icon is there
6807 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6808 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6813 description { state: "visible" 0.0;
6816 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6817 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6822 description { state: "icononly" 0.0;
6823 inherit: "default" 0.0;
6827 name: "padding_before_text";
6831 description { state: "default" 0.0; //when only icon or no icon is there
6833 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
6834 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
6840 part { name: "elm.swallow.content";
6843 description { state: "default" 0.0;
6846 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6847 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
6850 description { state: "visible" 0.0;
6856 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
6857 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
6859 aspect_preference: VERTICAL;
6861 description { state: "icononly" 0.0;
6865 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
6866 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
6869 aspect_preference: VERTICAL;
6872 part { name: "elm.text";
6877 description { state: "default" 0.0;
6879 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
6880 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
6882 color: BUTTON_ICON_TEXT_NORMAL_COLOR_INC;
6883 color2: BUTTON_ICON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
6885 font: "SLP:style=Medium";
6892 description { state: "visible" 0.0;
6893 inherit: "default" 0.0;
6897 description { state: "clicked" 0.0;
6898 inherit: "default" 0.0;
6901 color: BUTTON_ICON_TEXT_PRESSED_COLOR_INC;
6902 color2: BUTTON_ICON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
6904 description { state: "disabled" 0.0;
6905 inherit: "default" 0.0;
6909 description { state: "disabled_visible" 0.0;
6910 inherit: "default" 0.0;
6911 color: BUTTON_ICON_TEXT_DISABLED_COLOR_INC;
6912 color2: BUTTON_ICON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
6917 description { state: "focused" 0.0;
6918 inherit: "default" 0.0;
6921 color: BUTTON_ICON_TEXT_FOCUSED_COLOR_INC;
6922 color2: BUTTON_ICON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
6925 part { name: "over2";
6929 ignore_flags: ON_HOLD;
6930 description { state: "default" 0.0;
6933 description { state: "disabled" 0.0;
6934 inherit: "default" 0.0;
6938 part { name: "over3";
6942 description { state: "default" 0.0;
6945 description { state: "clicked" 0.0;
6946 inherit: "default" 0.0;
6950 part { name: "disabler";
6952 description { state: "default" 0.0;
6956 description { state: "disabled" 0.0;
6957 inherit: "default" 0.0;
6963 program { name: "button_click";
6964 signal: "mouse,down,1";
6966 action: SIGNAL_EMIT "elm,action,press" "";
6967 after: "button_click_anim";
6969 program { name: "button_click_anim";
6970 action: STATE_SET "clicked" 0.0;
6971 target: "button_image";
6972 after: "text_clicked";
6974 program { name: "text_clicked";
6978 get_state(PART:"elm.text", st, 30, vl);
6979 if (!strcmp(st, "visible"))
6980 set_state(PART:"elm.text", "clicked", 0.0);
6983 program { name: "button_unpress";
6984 action: SIGNAL_EMIT "elm,action,unpress" "";
6986 program { name: "button_mouseout_clicked";
6987 signal: "mouse,up,1";
6992 get_state(PART:"elm.swallow.content", st, 30, vl);
6993 if (strcmp(st, "icononly"))
6995 emit("elm,action,default,text,set", "");
6996 set_state(PART:"elm.text", "visible", 0.0);
6998 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6999 set_state(PART:"button_image", "default", 0.0);
7001 after: button_unpress;
7003 program { name: "button_click2";
7004 signal: "mouse,down,1";
7006 action: STATE_SET "clicked" 0.0;
7009 program { name: "button_unclick2";
7010 signal: "mouse,clicked,1";
7012 action: STATE_SET "default" 0.0;
7015 program { name: "button_unclick3";
7016 signal: "mouse,clicked,1";
7018 action: SIGNAL_EMIT "elm,action,click" "";
7020 program { name: "text_show";
7021 signal: "elm,state,text,visible";
7026 get_state(PART:"elm.swallow.content", st, 30, vl);
7027 if (!strcmp(st, "icononly"))
7029 set_state(PART:"elm.swallow.content", "visible", 0.0);
7030 set_state(PART:"icon_rect", "visible", 0.0);
7031 set_state(PART:"padding_after_icon", "visible", 0.0);
7033 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7034 set_state(PART:"elm.text", "visible", 0.0);
7036 set_state(PART:"elm.text", "disabled_visible", 0.0);
7039 program { name: "text_hide";
7040 signal: "elm,state,text,hidden";
7045 get_state(PART:"elm.swallow.content", st, 30, vl);
7046 if (!strcmp(st, "visible"))
7048 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7049 set_state(PART:"icon_rect", "icononly", 0.0);
7050 set_state(PART:"padding_after_icon", "icononly", 0.0);
7052 set_state(PART:"elm.text", "default", 0.0);
7055 program { name: "icon_show";
7056 signal: "elm,state,icon,visible";
7061 get_state(PART:"elm.text", st, 30, vl);
7062 if (!strcmp(st, "visible"))
7064 set_state(PART:"elm.swallow.content", "visible", 0.0);
7065 set_state(PART:"icon_rect", "visible", 0.0);
7066 set_state(PART:"padding_after_icon", "visible", 0.0);
7070 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7071 set_state(PART:"icon_rect", "icononly", 0.0);
7072 set_state(PART:"padding_after_icon", "icononly", 0.0);
7076 program { name: "icon_hide";
7077 signal: "elm,state,icon,hidden";
7079 action: STATE_SET "default" 0.0;
7080 target: "elm.swallow.content";
7082 program { name: "disable";
7083 signal: "elm,state,disabled";
7085 action: STATE_SET "disabled" 0.0;
7086 target: "button_image";
7089 after: "disable_text";
7091 program { name: "disable_text";
7095 get_state(PART:"elm.text", st, 30, vl);
7096 if (!strcmp(st, "visible"))
7097 set_state(PART:"elm.text", "disabled_visible", 0.0);
7099 set_state(PART:"elm.text", "disabled", 0.0);
7100 set_int(button_state, BUTTON_STATE_DISABLED);
7103 program { name: "enable";
7104 signal: "elm,state,enabled";
7106 action: STATE_SET "default" 0.0;
7107 target: "button_image";
7110 after: "enable_text";
7112 program { name: "enable_text";
7116 get_state(PART:"elm.text", st, 30, vl);
7117 if (!strcmp(st, "disabled_visible"))
7118 set_state(PART:"elm.text", "visible", 0.0);
7120 set_state(PART:"elm.text", "default", 0.0);
7121 set_int(button_state, BUTTON_STATE_ENABLED);
7124 program { name: "focused";
7125 action: STATE_SET "focused" 0.0;
7126 target: "button_image";
7129 program { name: "unfocused";
7130 action: STATE_SET "default" 0.0;
7131 target: "button_image";
7132 after: "unfocus_text";
7134 program { name: "unfocus_text";
7135 action: STATE_SET "visible" 0.0;
7141 ///////////////////////////////////////////////////////////////////////////////////////
7142 group { name: "elm/button/base/contact";
7143 alias: "elm/button/base/text_only/contact";
7144 alias: "elm/button/base/haptic";
7146 image: "00_message_button_add_recipient.png" COMP;
7147 image: "00_message_button_add_recipient_press.png" COMP;
7148 image: "00_message_button_add_recipient_focus.png" COMP;
7149 image: "00_message_button_add_recipient_dim.png" COMP;
7152 public button_state = BUTTON_STATE_ENABLED;
7155 part { name: "button_image";
7159 description { state: "default" 0.0;
7160 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
7161 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
7163 color: 221 134 21 255;
7165 description { state: "clicked" 0.0;
7166 inherit: "default" 0.0;
7168 description { state: "disabled" 0.0;
7169 inherit: "default" 0.0;
7171 description { state: "focused" 0.0;
7172 inherit: "default" 0.0;
7175 part { name: "padding.left";
7178 description { state: "default" 0.0;
7184 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
7188 part { name: "padding.right";
7191 description { state: "default" 0.0;
7196 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
7197 rel2.relative: 1.0 1.0;
7201 part { name: "elm.text";
7206 description { state: "default" 0.0;
7210 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
7211 color2: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
7213 font: "SLP:style=Medium";
7219 description { state: "visible" 0.0;
7220 inherit: "default" 0.0;
7224 description { state: "clicked" 0.0;
7225 inherit: "default" 0.0;
7228 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
7229 color2: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
7231 description { state: "disabled" 0.0;
7232 inherit: "default" 0.0;
7236 description { state: "disabled_visible" 0.0;
7237 inherit: "default" 0.0;
7238 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
7239 color2: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
7244 description { state: "focused" 0.0;
7245 inherit: "default" 0.0;
7248 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
7249 color2: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
7252 part { name: "over1";
7254 description { state: "default" 0.0;
7255 rel2.relative: 1.0 0.5;
7257 description { state: "disabled" 0.0;
7258 inherit: "default" 0.0;
7261 part { name: "over2";
7264 ignore_flags: ON_HOLD;
7265 description { state: "default" 0.0;
7266 rel1.to: "button_image";
7267 rel2.to: "button_image";
7269 description { state: "disabled" 0.0;
7270 inherit: "default" 0.0;
7274 part { name: "over3";
7277 description { state: "default" 0.0;
7278 rel1.to: "button_image";
7279 rel2.to: "button_image";
7280 color: 255 255 255 0;
7282 description { state: "clicked" 0.0;
7283 inherit: "default" 0.0;
7285 color: 255 255 255 0;
7288 part { name: "disabler";
7290 description { state: "default" 0.0;
7291 rel1.to: "button_image";
7292 rel2.to: "button_image";
7296 description { state: "disabled" 0.0;
7297 inherit: "default" 0.0;
7303 program { name: "button_click";
7304 signal: "mouse,down,1";
7306 action: SIGNAL_EMIT "elm,action,press" "";
7307 after: "button_click_anim";
7309 program { name: "button_click_anim";
7310 action: STATE_SET "clicked" 0.0;
7311 target: "button_image";
7314 program { name: "button_unpress";
7315 action: SIGNAL_EMIT "elm,action,unpress" "";
7317 program { name: "button_mouseout_clicked";
7318 signal: "mouse,up,1";
7323 get_state(PART:"elm.text", st, 30, vl);
7324 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7326 emit("elm,action,default,text,set", "");
7327 set_state(PART:"elm.text", "visible", 0.0);
7329 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7330 set_state(PART:"button_image", "default", 0.0);
7332 after: button_unpress;
7334 program { name: "button_click2";
7335 signal: "mouse,down,1";
7337 action: STATE_SET "clicked" 0.0;
7340 program { name: "button_unclick2";
7341 signal: "mouse,clicked,1";
7343 action: STATE_SET "default" 0.0;
7346 program { name: "button_unclick3";
7347 signal: "mouse,clicked,1";
7349 action: SIGNAL_EMIT "elm,action,click" "";
7351 program { name: "text_show";
7352 signal: "elm,state,text,visible";
7355 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7356 set_state(PART:"elm.text", "visible", 0.0);
7358 set_state(PART:"elm.text", "disabled_visible", 0.0);
7361 program { name: "text_hide";
7362 signal: "elm,state,text,hidden";
7364 action: STATE_SET "default" 0.0;
7368 program { name: "disable";
7369 signal: "elm,state,disabled";
7371 action: STATE_SET "disabled" 0.0;
7372 target: "button_image";
7376 after: "disable_text";
7378 program { name: "disable_text";
7382 get_state(PART:"elm.text", st, 30, vl);
7383 if (!strcmp(st, "visible"))
7384 set_state(PART:"elm.text", "disabled_visible", 0.0);
7386 set_state(PART:"elm.text", "disabled", 0.0);
7387 set_int(button_state, BUTTON_STATE_DISABLED);
7390 program { name: "enable";
7391 signal: "elm,state,enabled";
7393 action: STATE_SET "default" 0.0;
7394 target: "button_image";
7398 after: "enable_text";
7400 program { name: "enable_text";
7404 get_state(PART:"elm.text", st, 30, vl);
7405 if (!strcmp(st, "disabled_visible"))
7406 set_state(PART:"elm.text", "visible", 0.0);
7408 set_state(PART:"elm.text", "default", 0.0);
7409 set_int(button_state, BUTTON_STATE_ENABLED);
7412 program { name: "focused";
7413 //signal: "elm,action,focus";
7415 action: STATE_SET "focused" 0.0;
7416 target: "button_image";
7419 program { name: "unfocused";
7420 //signal: "elm,action,unfocus";
7422 action: STATE_SET "default" 0.0;
7423 target: "button_image";
7424 action: STATE_SET "visible" 0.0;
7430 ///////////////////////////////////////////////////////////////////////////////////////
7431 group { name: "elm/button/base/more";
7432 alias: "elm/button/base/text_only/more";
7434 image: "00_button_more.png" COMP;
7437 public button_state = BUTTON_STATE_ENABLED;
7440 part { name: "button_image";
7443 description { state: "default" 0.0;
7444 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
7445 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
7449 normal: "00_button_more.png";
7450 border: 13 13 12 12;
7454 description { state: "clicked" 0.0;
7455 inherit: "default" 0.0;
7457 description { state: "disabled" 0.0;
7458 inherit: "default" 0.0;
7460 description { state: "focused" 0.0;
7461 inherit: "default" 0.0;
7464 part { name: "padding.left";
7467 description { state: "default" 0.0;
7473 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
7477 part { name: "padding.right";
7480 description { state: "default" 0.0;
7485 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
7486 rel2.relative: 1.0 1.0;
7490 part { name: "elm.text";
7495 description { state: "default" 0.0;
7499 color: BUTTON_MORE_BUTTON_TEXT_NORMAL_COLOR_INC;
7500 color2: BUTTON_MORE_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
7502 font: "SLP:style=Bold";
7509 description { state: "visible" 0.0;
7510 inherit: "default" 0.0;
7514 description { state: "clicked" 0.0;
7515 inherit: "default" 0.0;
7518 //color: 53 45 39 255;
7520 description { state: "disabled" 0.0;
7521 inherit: "default" 0.0;
7526 description { state: "disabled_visible" 0.0;
7527 inherit: "default" 0.0;
7534 description { state: "focused" 0.0;
7535 inherit: "default" 0.0;
7540 part { name: "over1";
7543 description { state: "default" 0.0;
7544 rel1.to: "button_image";
7545 rel2.to: "button_image";
7550 description { state: "disabled" 0.0;
7551 inherit: "default" 0.0;
7554 part { name: "over2";
7557 ignore_flags: ON_HOLD;
7559 description { state: "default" 0.0;
7560 rel1.to: "button_image";
7561 rel2.to: "button_image";
7566 description { state: "disabled" 0.0;
7567 inherit: "default" 0.0;
7571 part { name: "over3";
7575 description { state: "default" 0.0;
7576 rel1.to: "button_image";
7577 rel2.to: "button_image";
7578 color: 255 255 255 0;
7582 description { state: "clicked" 0.0;
7583 inherit: "default" 0.0;
7585 color: 255 255 255 0;
7588 part { name: "disabler";
7591 description { state: "default" 0.0;
7592 rel1.to: "button_image";
7593 rel2.to: "button_image";
7600 description { state: "disabled" 0.0;
7601 inherit: "default" 0.0;
7607 program { name: "button_click";
7608 signal: "mouse,down,1";
7610 action: SIGNAL_EMIT "elm,action,press" "";
7611 after: "button_click_anim";
7613 program { name: "button_click_anim";
7614 action: STATE_SET "clicked" 0.0;
7615 target: "button_image";
7618 program { name: "button_unpress";
7619 action: SIGNAL_EMIT "elm,action,unpress" "";
7621 program { name: "button_mouseout_clicked";
7622 signal: "mouse,up,1";
7627 get_state(PART:"elm.text", st, 30, vl);
7628 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7630 emit("elm,action,default,text,set", "");
7631 set_state(PART:"elm.text", "visible", 0.0);
7633 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7634 set_state(PART:"button_image", "default", 0.0);
7636 after: button_unpress;
7638 program { name: "button_click2";
7639 signal: "mouse,down,1";
7641 action: STATE_SET "clicked" 0.0;
7644 program { name: "button_unclick2";
7645 signal: "mouse,clicked,1";
7647 action: STATE_SET "default" 0.0;
7650 program { name: "button_unclick3";
7651 signal: "mouse,clicked,1";
7653 action: SIGNAL_EMIT "elm,action,click" "";
7655 program { name: "text_show";
7656 signal: "elm,state,text,visible";
7659 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7660 set_state(PART:"elm.text", "visible", 0.0);
7662 set_state(PART:"elm.text", "disabled_visible", 0.0);
7665 program { name: "text_hide";
7666 signal: "elm,state,text,hidden";
7668 action: STATE_SET "default" 0.0;
7672 program { name: "disable";
7673 signal: "elm,state,disabled";
7675 action: STATE_SET "disabled" 0.0;
7676 target: "button_image";
7680 after: "disable_text";
7682 program { name: "disable_text";
7686 get_state(PART:"elm.text", st, 30, vl);
7687 if (!strcmp(st, "visible"))
7688 set_state(PART:"elm.text", "disabled_visible", 0.0);
7690 set_state(PART:"elm.text", "disabled", 0.0);
7691 set_int(button_state, BUTTON_STATE_DISABLED);
7694 program { name: "enable";
7695 signal: "elm,state,enabled";
7697 action: STATE_SET "default" 0.0;
7698 target: "button_image";
7702 after: "enable_text";
7704 program { name: "enable_text";
7708 get_state(PART:"elm.text", st, 30, vl);
7709 if (!strcmp(st, "disabled_visible"))
7710 set_state(PART:"elm.text", "visible", 0.0);
7712 set_state(PART:"elm.text", "default", 0.0);
7713 set_int(button_state, BUTTON_STATE_ENABLED);
7716 program { name: "focused";
7717 //signal: "elm,action,focus";
7719 action: STATE_SET "focused" 0.0;
7720 target: "button_image";
7723 program { name: "unfocused";
7724 //signal: "elm,action,unfocus";
7726 action: STATE_SET "default" 0.0;
7727 target: "button_image";
7728 action: STATE_SET "visible" 0.0;
7734 ///////////////////////////////////////////////////////////////////////////////////////
7735 group { name: "elm/button/base/navigationbar_backbutton/default";
7737 image: "00_winset_btn_prev.png" COMP;
7738 image: "00_winset_btn_prev_press.png" COMP;
7741 part { name: "button_image";
7745 description { state: "default" 0.0;
7750 state: "clicked" 0.0;
7751 inherit: "default" 0.0;
7754 state: "disabled" 0.0;
7755 inherit: "default" 0.0;
7758 part {name: "padding_right";
7761 description { state: "default" 0.0;
7764 rel1 { relative: 1 0.2; }
7765 rel2 { relative: 1 0.8; }
7767 color: 238 223 194 255;
7770 part {name: "padding_before_right";
7773 description { state: "default" 0.0;
7776 rel1 { relative: 0 0; to: "padding_right"; }
7777 rel2 { relative: 0 1; to: "padding_right"; }
7779 color: 164 151 130 255;
7782 part { name: "button_center_part";
7785 description { state: "default" 0.0;
7789 rel2 { relative: 0 1; to_x: "padding_before_right"; }
7791 normal: "00_winset_btn_prev.png";
7795 state: "clicked" 0.0;
7796 inherit: "default" 0.0;
7797 image.normal: "00_winset_btn_prev_press.png";
7800 part { name: "over1";
7804 ignore_flags: ON_HOLD;
7805 description { state: "default" 0.0;
7809 part { name: "over2";
7812 description { state: "default" 0.0;
7813 color: 255 255 255 0;
7815 description { state: "clicked" 0.0;
7816 inherit: "default" 0.0;
7818 color: 255 255 255 0;
7821 part { name: "disabler";
7823 description { state: "default" 0.0;
7827 description { state: "disabled" 0.0;
7828 inherit: "default" 0.0;
7834 program { name: "button_click";
7835 signal: "mouse,down,1";
7837 action: SIGNAL_EMIT "elm,action,press" "";
7838 after: "button_click_anim";
7840 program { name: "button_click_anim";
7841 action: STATE_SET "clicked" 0.0;
7842 target: "button_image";
7843 target: "button_center_part";
7845 program { name: "button_unclick";
7846 signal: "mouse,up,1";
7848 action: SIGNAL_EMIT "elm,action,unpress" "";
7849 after: "button_unclick_anim";
7851 program { name: "button_unclick_anim";
7852 action: STATE_SET "default" 0.0;
7853 target: "button_image";
7854 target: "button_center_part";
7856 program { name: "button_click2";
7857 signal: "mouse,down,1";
7859 action: STATE_SET "clicked" 0.0;
7862 program { name: "button_unclick2";
7863 signal: "mouse,clicked,1";
7865 action: STATE_SET "default" 0.0;
7867 after: "button_unclick3";
7869 program { name: "button_unclick3";
7870 action: SIGNAL_EMIT "elm,action,click" "";
7872 program { name: "disable";
7873 signal: "elm,state,disabled";
7875 action: STATE_SET "disabled" 0.0;
7877 target: "button_image";
7879 program { name: "enable";
7880 signal: "elm,state,enabled";
7882 action: STATE_SET "default" 0.0;
7884 target: "button_image";
7889 ///////////////////////////////////////////////////////////////////////////////////////
7890 group { name: "elm/button/base/picker/prev/icon/default";
7892 image: "00_picker_btn_normal.png" COMP;
7893 image: "00_picker_btn_press.png" COMP;
7894 image: "00_picker_arrow_left.png" COMP;
7895 image: "00_picker_arrow_left_press.png" COMP;
7898 public button_state = BUTTON_STATE_ENABLED;
7901 part { name: "button_image";
7904 description { state: "default" 0.0;
7908 normal: "00_picker_btn_normal.png";
7913 description { state: "clicked" 0.0;
7914 inherit: "default" 0.0;
7915 image.normal: "00_picker_btn_press.png";
7917 description { state: "disabled" 0.0;
7918 inherit: "default" 0.0;
7920 description { state: "focused" 0.0;
7921 inherit: "default" 0.0;
7922 image.normal: "00_picker_btn_press.png";
7926 name: "padding_left";
7930 description { state: "default" 0.0;
7932 rel1.relative: 0.0 0.0;
7933 rel2.relative: 0.0 1.0;
7940 name: "padding_right";
7944 description { state: "default" 0.0;
7946 rel1.relative: 1.0 0.0;
7947 rel2.relative: 1.0 1.0;
7954 name: "padding_top";
7958 description { state: "default" 0.0;
7960 rel1.relative: 0.0 0.0;
7961 rel2.relative: 1.0 0.0;
7968 name: "padding_bottom";
7972 description { state: "default" 0.0;
7974 rel1.relative: 0.0 1.0;
7975 rel2.relative: 1.0 1.0;
7986 description { state: "default" 0.0;
7990 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7991 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7992 image.normal: "00_picker_arrow_left.png";
7994 description { state: "clicked" 0.0;
7995 inherit: "default" 0.0;
7996 image.normal: "00_picker_arrow_left_press.png";
7999 part { name: "over2";
8003 ignore_flags: ON_HOLD;
8004 description { state: "default" 0.0;
8007 description { state: "disabled" 0.0;
8008 inherit: "default" 0.0;
8012 part { name: "over3";
8016 description { state: "default" 0.0;
8019 description { state: "clicked" 0.0;
8020 inherit: "default" 0.0;
8024 part { name: "disabler";
8026 description { state: "default" 0.0;
8030 description { state: "disabled" 0.0;
8031 inherit: "default" 0.0;
8037 program { name: "button_click";
8038 signal: "mouse,down,1";
8040 action: SIGNAL_EMIT "elm,action,press" "";
8041 after: "button_click_anim";
8043 program { name: "button_click_anim";
8044 action: STATE_SET "clicked" 0.0;
8045 target: "button_image";
8047 program { name: "button_unpress";
8048 action: SIGNAL_EMIT "elm,action,unpress" "";
8050 program { name: "button_mouseout_clicked";
8051 signal: "mouse,up,1";
8054 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8055 set_state(PART:"button_image", "default", 0.0);
8057 after: button_unpress;
8059 program { name: "button_click2";
8060 signal: "mouse,down,1";
8062 action: STATE_SET "clicked" 0.0;
8065 program { name: "button_unclick2";
8066 signal: "mouse,clicked,1";
8068 action: STATE_SET "default" 0.0;
8071 program { name: "button_unclick3";
8072 signal: "mouse,clicked,1";
8074 action: SIGNAL_EMIT "elm,action,click" "";
8076 program { name: "disable";
8077 signal: "elm,state,disabled";
8079 action: STATE_SET "disabled" 0.0;
8080 target: "button_image";
8083 after: "disable_button";
8085 program { name: "disable_button";
8087 set_int(button_state, BUTTON_STATE_DISABLED);
8090 program { name: "enable";
8091 signal: "elm,state,enabled";
8093 action: STATE_SET "default" 0.0;
8094 target: "button_image";
8097 after: "enable_button";
8099 program { name: "enable_button";
8101 set_int(button_state, BUTTON_STATE_ENABLED);
8104 program { name: "focused";
8105 //signal: "elm,action,focus";
8107 action: STATE_SET "focused" 0.0;
8108 target: "button_image";
8110 program { name: "unfocused";
8111 //signal: "elm,action,unfocus";
8113 action: STATE_SET "default" 0.0;
8114 target: "button_image";
8119 ///////////////////////////////////////////////////////////////////////////////////////
8120 group { name: "elm/button/base/picker/next/icon/default";
8122 image: "00_picker_btn_normal.png" COMP;
8123 image: "00_picker_btn_press.png" COMP;
8124 image: "00_picker_arrow_right.png" COMP;
8125 image: "00_picker_arrow_right_press.png" COMP;
8128 public button_state = BUTTON_STATE_ENABLED;
8131 part { name: "button_image";
8134 description { state: "default" 0.0;
8138 normal: "00_picker_btn_normal.png";
8143 description { state: "clicked" 0.0;
8144 inherit: "default" 0.0;
8145 image.normal: "00_picker_btn_press.png";
8147 description { state: "disabled" 0.0;
8148 inherit: "default" 0.0;
8150 description { state: "focused" 0.0;
8151 inherit: "default" 0.0;
8152 image.normal: "00_picker_btn_press.png";
8156 name: "padding_left";
8160 description { state: "default" 0.0;
8162 rel1.relative: 0.0 0.0;
8163 rel2.relative: 0.0 1.0;
8170 name: "padding_right";
8174 description { state: "default" 0.0;
8176 rel1.relative: 1.0 0.0;
8177 rel2.relative: 1.0 1.0;
8184 name: "padding_top";
8188 description { state: "default" 0.0;
8190 rel1.relative: 0.0 0.0;
8191 rel2.relative: 1.0 0.0;
8198 name: "padding_bottom";
8202 description { state: "default" 0.0;
8204 rel1.relative: 0.0 1.0;
8205 rel2.relative: 1.0 1.0;
8216 description { state: "default" 0.0;
8220 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8221 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8222 image.normal: "00_picker_arrow_right.png";
8224 description { state: "clicked" 0.0;
8225 inherit: "default" 0.0;
8226 image.normal: "00_picker_arrow_right_press.png";
8229 part { name: "over2";
8233 ignore_flags: ON_HOLD;
8234 description { state: "default" 0.0;
8237 description { state: "disabled" 0.0;
8238 inherit: "default" 0.0;
8242 part { name: "over3";
8246 description { state: "default" 0.0;
8249 description { state: "clicked" 0.0;
8250 inherit: "default" 0.0;
8254 part { name: "disabler";
8256 description { state: "default" 0.0;
8260 description { state: "disabled" 0.0;
8261 inherit: "default" 0.0;
8267 program { name: "button_click";
8268 signal: "mouse,down,1";
8270 action: SIGNAL_EMIT "elm,action,press" "";
8271 after: "button_click_anim";
8273 program { name: "button_click_anim";
8274 action: STATE_SET "clicked" 0.0;
8275 target: "button_image";
8277 program { name: "button_unpress";
8278 action: SIGNAL_EMIT "elm,action,unpress" "";
8280 program { name: "button_mouseout_clicked";
8281 signal: "mouse,up,1";
8284 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8285 set_state(PART:"button_image", "default", 0.0);
8287 after: button_unpress;
8289 program { name: "button_click2";
8290 signal: "mouse,down,1";
8292 action: STATE_SET "clicked" 0.0;
8295 program { name: "button_unclick2";
8296 signal: "mouse,clicked,1";
8298 action: STATE_SET "default" 0.0;
8301 program { name: "button_unclick3";
8302 signal: "mouse,clicked,1";
8304 action: SIGNAL_EMIT "elm,action,click" "";
8306 program { name: "disable";
8307 signal: "elm,state,disabled";
8309 action: STATE_SET "disabled" 0.0;
8310 target: "button_image";
8313 after: "disable_button";
8315 program { name: "disable_button";
8317 set_int(button_state, BUTTON_STATE_DISABLED);
8320 program { name: "enable";
8321 signal: "elm,state,enabled";
8323 action: STATE_SET "default" 0.0;
8324 target: "button_image";
8327 after: "enable_button";
8329 program { name: "enable_button";
8331 set_int(button_state, BUTTON_STATE_ENABLED);
8334 program { name: "focused";
8335 //signal: "elm,action,focus";
8337 action: STATE_SET "focused" 0.0;
8338 target: "button_image";
8340 program { name: "unfocused";
8341 //signal: "elm,action,unfocus";
8343 action: STATE_SET "default" 0.0;
8344 target: "button_image";
8349 //###############################################
8350 // Nocontents Search Button Styles //
8351 //###############################################
8353 group { name: "elm/button/base/nocontents/search_button";
8355 image: "00_button_03_normal.png" COMP;
8356 image: "00_button_03_press.png" COMP;
8357 image: "00_button_03_focus.png" COMP;
8360 public button_state = BUTTON_STATE_ENABLED;
8363 part { name: "button_image";
8366 description { state: "default" 0.0;
8369 normal: "00_button_03_normal.png";
8374 description { state: "clicked" 0.0;
8375 inherit: "default" 0.0;
8376 image.normal: "00_button_03_press.png";
8378 description { state: "disabled" 0.0;
8379 inherit: "default" 0.0;
8381 description { state: "focused" 0.0;
8382 inherit: "default" 0.0;
8383 image.normal: "00_button_03_focus.png";
8387 name: "padding_left";
8391 description { state: "default" 0.0;
8393 rel1.relative: 0.0 0.0;
8394 rel2.relative: 0.0 1.0;
8401 name: "padding_right";
8405 description { state: "default" 0.0;
8407 rel1.relative: 1.0 0.0;
8408 rel2.relative: 1.0 1.0;
8415 name: "padding_top";
8419 description { state: "default" 0.0;
8421 rel1.relative: 0.0 0.0;
8422 rel2.relative: 1.0 0.0;
8429 name: "padding_bottom";
8433 description { state: "default" 0.0;
8435 rel1.relative: 0.0 1.0;
8436 rel2.relative: 1.0 1.0;
8447 description { state: "default" 0.0;
8451 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8452 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8456 description { state: "visible" 0.0;
8460 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8461 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8463 aspect_preference: VERTICAL;
8467 description { state: "icononly" 0.0;
8468 inherit: "default" 0.0;
8472 name: "padding_after_icon";
8476 description { state: "default" 0.0; //when only icon or no icon is there
8478 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8479 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8484 description { state: "visible" 0.0;
8487 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8488 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8494 description { state: "icononly" 0.0;
8495 inherit: "default" 0.0;
8499 name: "padding_before_text";
8503 description { state: "default" 0.0; //when only icon or no icon is there
8505 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
8506 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
8513 part { name: "elm.swallow.content";
8516 description { state: "default" 0.0;
8519 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8520 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8523 description { state: "visible" 0.0;
8527 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
8528 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
8530 aspect_preference: VERTICAL;
8532 description { state: "icononly" 0.0;
8535 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8536 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8539 aspect_preference: VERTICAL;
8542 part { name: "elm.text";
8547 description { state: "default" 0.0;
8549 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
8550 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8552 color: 51 102 255 255;
8553 color2: 255 255 255 255;
8555 font: "SLP:style=Medium";
8562 description { state: "visible" 0.0;
8563 inherit: "default" 0.0;
8567 description { state: "clicked" 0.0;
8568 inherit: "default" 0.0;
8571 color: 255 255 255 255;
8574 description { state: "disabled" 0.0;
8575 inherit: "default" 0.0;
8579 description { state: "disabled_visible" 0.0;
8580 inherit: "default" 0.0;
8586 description { state: "focused" 0.0;
8587 inherit: "default" 0.0;
8590 color: 255 255 255 255;
8594 part { name: "over2";
8598 ignore_flags: ON_HOLD;
8599 description { state: "default" 0.0;
8602 description { state: "disabled" 0.0;
8603 inherit: "default" 0.0;
8607 part { name: "over3";
8611 description { state: "default" 0.0;
8614 description { state: "clicked" 0.0;
8615 inherit: "default" 0.0;
8619 part { name: "disabler";
8621 description { state: "default" 0.0;
8625 description { state: "disabled" 0.0;
8626 inherit: "default" 0.0;
8632 program { name: "button_click";
8633 signal: "mouse,down,1";
8635 action: SIGNAL_EMIT "elm,action,press" "";
8636 after: "button_click_anim";
8638 program { name: "button_click_anim";
8639 action: STATE_SET "clicked" 0.0;
8640 target: "button_image";
8641 after: "text_clicked";
8643 program { name: "text_clicked";
8647 get_state(PART:"elm.text", st, 30, vl);
8648 if (!strcmp(st, "visible"))
8649 set_state(PART:"elm.text", "clicked", 0.0);
8652 program { name: "button_unpress";
8653 action: SIGNAL_EMIT "elm,action,unpress" "";
8655 program { name: "button_mouseout_clicked";
8656 signal: "mouse,up,1";
8661 get_state(PART:"elm.swallow.content", st, 30, vl);
8662 if (strcmp(st, "icononly"))
8664 emit("elm,action,default,text,set", "");
8665 set_state(PART:"elm.text", "visible", 0.0);
8667 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8668 set_state(PART:"button_image", "default", 0.0);
8670 after: button_unpress;
8672 program { name: "button_click2";
8673 signal: "mouse,down,1";
8675 action: STATE_SET "clicked" 0.0;
8678 program { name: "button_unclick2";
8679 signal: "mouse,clicked,1";
8681 action: STATE_SET "default" 0.0;
8684 program { name: "button_unclick3";
8685 signal: "mouse,clicked,1";
8687 action: SIGNAL_EMIT "elm,action,click" "";
8689 program { name: "text_show";
8690 signal: "elm,state,text,visible";
8695 get_state(PART:"elm.swallow.content", st, 30, vl);
8696 if (!strcmp(st, "icononly"))
8698 set_state(PART:"elm.swallow.content", "visible", 0.0);
8699 set_state(PART:"icon_rect", "visible", 0.0);
8700 set_state(PART:"padding_after_icon", "visible", 0.0);
8702 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8703 set_state(PART:"elm.text", "visible", 0.0);
8705 set_state(PART:"elm.text", "disabled_visible", 0.0);
8708 program { name: "text_hide";
8709 signal: "elm,state,text,hidden";
8714 get_state(PART:"elm.swallow.content", st, 30, vl);
8715 if (!strcmp(st, "visible"))
8717 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8718 set_state(PART:"icon_rect", "icononly", 0.0);
8719 set_state(PART:"padding_after_icon", "icononly", 0.0);
8721 set_state(PART:"elm.text", "default", 0.0);
8724 program { name: "icon_show";
8725 signal: "elm,state,icon,visible";
8730 get_state(PART:"elm.text", st, 30, vl);
8731 if (!strcmp(st, "visible"))
8733 set_state(PART:"elm.swallow.content", "visible", 0.0);
8734 set_state(PART:"icon_rect", "visible", 0.0);
8735 set_state(PART:"padding_after_icon", "visible", 0.0);
8739 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8740 set_state(PART:"icon_rect", "icononly", 0.0);
8741 set_state(PART:"padding_after_icon", "icononly", 0.0);
8745 program { name: "icon_hide";
8746 signal: "elm,state,icon,hidden";
8748 action: STATE_SET "default" 0.0;
8749 target: "elm.swallow.content";
8751 program { name: "disable";
8752 signal: "elm,state,disabled";
8754 action: STATE_SET "disabled" 0.0;
8755 target: "button_image";
8758 after: "disable_text";
8760 program { name: "disable_text";
8764 get_state(PART:"elm.text", st, 30, vl);
8765 if (!strcmp(st, "visible"))
8766 set_state(PART:"elm.text", "disabled_visible", 0.0);
8768 set_state(PART:"elm.text", "disabled", 0.0);
8769 set_int(button_state, BUTTON_STATE_DISABLED);
8772 program { name: "enable";
8773 signal: "elm,state,enabled";
8775 action: STATE_SET "default" 0.0;
8776 target: "button_image";
8779 after: "enable_text";
8781 program { name: "enable_text";
8785 get_state(PART:"elm.text", st, 30, vl);
8786 if (!strcmp(st, "disabled_visible"))
8787 set_state(PART:"elm.text", "visible", 0.0);
8789 set_state(PART:"elm.text", "default", 0.0);
8790 set_int(button_state, BUTTON_STATE_ENABLED);
8793 program { name: "focused";
8794 //signal: "elm,action,focus";
8796 action: STATE_SET "focused" 0.0;
8797 target: "button_image";
8800 program { name: "unfocused";
8801 //signal: "elm,action,unfocus";
8803 action: STATE_SET "default" 0.0;
8804 target: "button_image";
8805 after: "unfocus_text";
8807 program { name: "unfocus_text";
8808 action: STATE_SET "visible" 0.0;
8814 ///////////////////////////////////////////////////////////////////////////////////////
8815 group { name: "elm/button/base/navigationbar_control/center";
8817 public button_state = BUTTON_STATE_ENABLED;
8819 images.image: "00_option_header_press.png" COMP;
8821 part { name: "button_image";
8825 description { state: "default" 0.0;
8830 image.normal: "00_option_header_press.png";
8831 image.border: 2 2 2 2;
8832 color: 255 255 255 255;
8835 description { state: "clicked" 0.0;
8836 inherit: "default" 0.0;
8841 name: "padding_left";
8845 description { state: "default" 0.0;
8847 rel1.relative: 0.0 0.0;
8848 rel2.relative: 0.0 1.0;
8855 name: "padding_right";
8859 description { state: "default" 0.0;
8861 rel1.relative: 1.0 0.0;
8862 rel2.relative: 1.0 1.0;
8869 name: "padding_top";
8873 description { state: "default" 0.0;
8875 rel1.relative: 0.0 0.0;
8876 rel2.relative: 1.0 0.0;
8883 name: "padding_bottom";
8887 description { state: "default" 0.0;
8889 rel1.relative: 0.0 1.0;
8890 rel2.relative: 1.0 1.0;
8901 description { state: "default" 0.0;
8905 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8906 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8910 description { state: "visible" 0.0;
8914 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8915 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8919 description { state: "icononly" 0.0;
8920 inherit: "default" 0.0;
8924 name: "padding_after_icon";
8928 description { state: "default" 0.0; //when only icon or no icon is there
8930 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8931 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8936 description { state: "visible" 0.0;
8939 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8940 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8945 description { state: "icononly" 0.0;
8946 inherit: "default" 0.0;
8950 name: "padding_before_text";
8954 description { state: "default" 0.0; //when only icon or no icon is there
8956 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
8957 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
8963 part { name: "elm.swallow.content";
8966 description { state: "default" 0.0;
8969 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8970 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8973 description { state: "visible" 0.0;
8979 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
8980 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
8982 aspect_preference: VERTICAL;
8984 description { state: "icononly" 0.0;
8988 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8989 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8992 aspect_preference: VERTICAL;
8995 part { name: "elm.text";
8999 description { state: "default" 0.0;
9001 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
9002 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9004 color: 255 255 255 255;
9006 font: "SLP:style=Medium";
9013 description { state: "visible" 0.0;
9014 inherit: "default" 0.0;
9018 description { state: "clicked" 0.0;
9019 inherit: "default" 0.0;
9022 color: 255 255 255 255;
9025 description { state: "disabled" 0.0;
9026 inherit: "default" 0.0;
9027 color: 185 185 185 255;
9030 description { state: "disabled_visible" 0.0;
9031 inherit: "default" 0.0;
9032 color: 185 185 185 255;
9037 description { state: "focused" 0.0;
9038 inherit: "default" 0.0;
9041 color: 255 255 255 255;
9045 part { name: "over2";
9049 ignore_flags: ON_HOLD;
9050 description { state: "default" 0.0;
9053 description { state: "disabled" 0.0;
9054 inherit: "default" 0.0;
9058 part { name: "over3";
9062 description { state: "default" 0.0;
9065 description { state: "clicked" 0.0;
9066 inherit: "default" 0.0;
9070 part { name: "disabler";
9072 description { state: "default" 0.0;
9076 description { state: "disabled" 0.0;
9077 inherit: "default" 0.0;
9083 program { name: "button_click";
9084 signal: "mouse,down,1";
9086 action: SIGNAL_EMIT "elm,action,press" "";
9087 after: "button_click_anim";
9089 program { name: "button_click_anim";
9090 action: STATE_SET "clicked" 0.0;
9091 target: "button_image";
9092 after: "text_clicked";
9094 program { name: "text_clicked";
9098 get_state(PART:"elm.text", st, 30, vl);
9099 if (!strcmp(st, "visible"))
9100 set_state(PART:"elm.text", "clicked", 0.0);
9103 program { name: "button_unpress";
9104 action: SIGNAL_EMIT "elm,action,unpress" "";
9106 program { name: "button_mouseout_clicked";
9107 signal: "mouse,up,1";
9112 get_state(PART:"elm.swallow.content", st, 30, vl);
9113 if (strcmp(st, "icononly"))
9115 emit("elm,action,default,text,set", "");
9116 set_state(PART:"elm.text", "visible", 0.0);
9118 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9119 set_state(PART:"button_image", "default", 0.0);
9121 after: button_unpress;
9123 program { name: "button_click2";
9124 signal: "mouse,down,1";
9126 action: STATE_SET "clicked" 0.0;
9129 program { name: "button_unclick2";
9130 signal: "mouse,clicked,1";
9132 action: STATE_SET "default" 0.0;
9135 program { name: "button_unclick3";
9136 signal: "mouse,clicked,1";
9138 action: SIGNAL_EMIT "elm,action,click" "";
9140 program { name: "text_show";
9141 signal: "elm,state,text,visible";
9146 get_state(PART:"elm.swallow.content", st, 30, vl);
9147 if (!strcmp(st, "icononly"))
9149 set_state(PART:"elm.swallow.content", "visible", 0.0);
9150 set_state(PART:"icon_rect", "visible", 0.0);
9151 set_state(PART:"padding_after_icon", "visible", 0.0);
9153 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9154 set_state(PART:"elm.text", "visible", 0.0);
9156 set_state(PART:"elm.text", "disabled_visible", 0.0);
9159 program { name: "text_hide";
9160 signal: "elm,state,text,hidden";
9165 get_state(PART:"elm.swallow.content", st, 30, vl);
9166 if (!strcmp(st, "visible"))
9168 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9169 set_state(PART:"icon_rect", "icononly", 0.0);
9170 set_state(PART:"padding_after_icon", "icononly", 0.0);
9172 set_state(PART:"elm.text", "default", 0.0);
9175 program { name: "icon_show";
9176 signal: "elm,state,icon,visible";
9181 get_state(PART:"elm.text", st, 30, vl);
9182 if (!strcmp(st, "visible"))
9184 set_state(PART:"elm.swallow.content", "visible", 0.0);
9185 set_state(PART:"icon_rect", "visible", 0.0);
9186 set_state(PART:"padding_after_icon", "visible", 0.0);
9190 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9191 set_state(PART:"icon_rect", "icononly", 0.0);
9192 set_state(PART:"padding_after_icon", "icononly", 0.0);
9196 program { name: "icon_hide";
9197 signal: "elm,state,icon,hidden";
9199 action: STATE_SET "default" 0.0;
9200 target: "elm.swallow.content";
9202 program { name: "disable";
9203 signal: "elm,state,disabled";
9205 action: STATE_SET "disabled" 0.0;
9206 target: "button_image";
9209 after: "disable_text";
9211 program { name: "disable_text";
9215 get_state(PART:"elm.text", st, 30, vl);
9216 if (!strcmp(st, "visible"))
9217 set_state(PART:"elm.text", "disabled_visible", 0.0);
9219 set_state(PART:"elm.text", "disabled", 0.0);
9220 set_int(button_state, BUTTON_STATE_DISABLED);
9223 program { name: "enable";
9224 signal: "elm,state,enabled";
9226 action: STATE_SET "default" 0.0;
9227 target: "button_image";
9230 after: "enable_text";
9232 program { name: "enable_text";
9236 get_state(PART:"elm.text", st, 30, vl);
9237 if (!strcmp(st, "disabled_visible"))
9238 set_state(PART:"elm.text", "visible", 0.0);
9240 set_state(PART:"elm.text", "default", 0.0);
9241 set_int(button_state, BUTTON_STATE_ENABLED);
9244 program { name: "focused";
9245 action: STATE_SET "focused" 0.0;
9246 target: "button_image";
9249 program { name: "unfocused";
9250 action: STATE_SET "default" 0.0;
9251 target: "button_image";
9252 after: "unfocus_text";
9254 program { name: "unfocus_text";
9255 action: STATE_SET "visible" 0.0;
9261 ///////////////////////////////////////////////////////////////////////////////////////
9262 group { name: "elm/button/base/navigationbar_control/left";
9264 public button_state = BUTTON_STATE_ENABLED;
9266 images.image: "00_option_header_press.png" COMP;
9268 part { name: "button_image";
9272 description { state: "default" 0.0;
9277 image.normal: "00_option_header_press.png";
9278 image.border: 2 2 2 2;
9279 color: 255 255 255 255;
9282 description { state: "clicked" 0.0;
9283 inherit: "default" 0.0;
9288 name: "padding_left";
9292 description { state: "default" 0.0;
9294 rel1.relative: 0.0 0.0;
9295 rel2.relative: 0.0 1.0;
9302 name: "padding_right";
9306 description { state: "default" 0.0;
9308 rel1.relative: 1.0 0.0;
9309 rel2.relative: 1.0 1.0;
9316 name: "padding_top";
9320 description { state: "default" 0.0;
9322 rel1.relative: 0.0 0.0;
9323 rel2.relative: 1.0 0.0;
9330 name: "padding_bottom";
9334 description { state: "default" 0.0;
9336 rel1.relative: 0.0 1.0;
9337 rel2.relative: 1.0 1.0;
9348 description { state: "default" 0.0;
9352 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9353 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9357 description { state: "visible" 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"; }
9366 description { state: "icononly" 0.0;
9367 inherit: "default" 0.0;
9371 name: "padding_after_icon";
9375 description { state: "default" 0.0; //when only icon or no icon is there
9377 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9378 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9383 description { state: "visible" 0.0;
9386 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9387 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9392 description { state: "icononly" 0.0;
9393 inherit: "default" 0.0;
9397 name: "padding_before_text";
9401 description { state: "default" 0.0; //when only icon or no icon is there
9403 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
9404 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
9410 part { name: "elm.swallow.content";
9413 description { state: "default" 0.0;
9416 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9417 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9420 description { state: "visible" 0.0;
9426 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
9427 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
9429 aspect_preference: VERTICAL;
9431 description { state: "icononly" 0.0;
9435 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9436 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9439 aspect_preference: VERTICAL;
9442 part { name: "elm.text";
9446 description { state: "default" 0.0;
9448 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
9449 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9451 color: 255 255 255 255;
9453 font: "SLP:style=Medium";
9460 description { state: "visible" 0.0;
9461 inherit: "default" 0.0;
9465 description { state: "clicked" 0.0;
9466 inherit: "default" 0.0;
9469 color: 255 255 255 255;
9472 description { state: "disabled" 0.0;
9473 inherit: "default" 0.0;
9474 color: 185 185 185 255;
9477 description { state: "disabled_visible" 0.0;
9478 inherit: "default" 0.0;
9479 color: 185 185 185 255;
9484 description { state: "focused" 0.0;
9485 inherit: "default" 0.0;
9488 color: 255 255 255 255;
9492 part { name: "over2";
9496 ignore_flags: ON_HOLD;
9497 description { state: "default" 0.0;
9500 description { state: "disabled" 0.0;
9501 inherit: "default" 0.0;
9505 part { name: "over3";
9509 description { state: "default" 0.0;
9512 description { state: "clicked" 0.0;
9513 inherit: "default" 0.0;
9517 part { name: "disabler";
9519 description { state: "default" 0.0;
9523 description { state: "disabled" 0.0;
9524 inherit: "default" 0.0;
9530 program { name: "button_click";
9531 signal: "mouse,down,1";
9533 action: SIGNAL_EMIT "elm,action,press" "";
9534 after: "button_click_anim";
9536 program { name: "button_click_anim";
9537 action: STATE_SET "clicked" 0.0;
9538 target: "button_image";
9539 after: "text_clicked";
9541 program { name: "text_clicked";
9545 get_state(PART:"elm.text", st, 30, vl);
9546 if (!strcmp(st, "visible"))
9547 set_state(PART:"elm.text", "clicked", 0.0);
9550 program { name: "button_unpress";
9551 action: SIGNAL_EMIT "elm,action,unpress" "";
9553 program { name: "button_mouseout_clicked";
9554 signal: "mouse,up,1";
9559 get_state(PART:"elm.swallow.content", st, 30, vl);
9560 if (strcmp(st, "icononly"))
9562 emit("elm,action,default,text,set", "");
9563 set_state(PART:"elm.text", "visible", 0.0);
9565 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9566 set_state(PART:"button_image", "default", 0.0);
9568 after: button_unpress;
9570 program { name: "button_click2";
9571 signal: "mouse,down,1";
9573 action: STATE_SET "clicked" 0.0;
9576 program { name: "button_unclick2";
9577 signal: "mouse,clicked,1";
9579 action: STATE_SET "default" 0.0;
9582 program { name: "button_unclick3";
9583 signal: "mouse,clicked,1";
9585 action: SIGNAL_EMIT "elm,action,click" "";
9587 program { name: "text_show";
9588 signal: "elm,state,text,visible";
9593 get_state(PART:"elm.swallow.content", st, 30, vl);
9594 if (!strcmp(st, "icononly"))
9596 set_state(PART:"elm.swallow.content", "visible", 0.0);
9597 set_state(PART:"icon_rect", "visible", 0.0);
9598 set_state(PART:"padding_after_icon", "visible", 0.0);
9600 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9601 set_state(PART:"elm.text", "visible", 0.0);
9603 set_state(PART:"elm.text", "disabled_visible", 0.0);
9606 program { name: "text_hide";
9607 signal: "elm,state,text,hidden";
9612 get_state(PART:"elm.swallow.content", st, 30, vl);
9613 if (!strcmp(st, "visible"))
9615 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9616 set_state(PART:"icon_rect", "icononly", 0.0);
9617 set_state(PART:"padding_after_icon", "icononly", 0.0);
9619 set_state(PART:"elm.text", "default", 0.0);
9622 program { name: "icon_show";
9623 signal: "elm,state,icon,visible";
9628 get_state(PART:"elm.text", st, 30, vl);
9629 if (!strcmp(st, "visible"))
9631 set_state(PART:"elm.swallow.content", "visible", 0.0);
9632 set_state(PART:"icon_rect", "visible", 0.0);
9633 set_state(PART:"padding_after_icon", "visible", 0.0);
9637 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9638 set_state(PART:"icon_rect", "icononly", 0.0);
9639 set_state(PART:"padding_after_icon", "icononly", 0.0);
9643 program { name: "icon_hide";
9644 signal: "elm,state,icon,hidden";
9646 action: STATE_SET "default" 0.0;
9647 target: "elm.swallow.content";
9649 program { name: "disable";
9650 signal: "elm,state,disabled";
9652 action: STATE_SET "disabled" 0.0;
9653 target: "button_image";
9656 after: "disable_text";
9658 program { name: "disable_text";
9662 get_state(PART:"elm.text", st, 30, vl);
9663 if (!strcmp(st, "visible"))
9664 set_state(PART:"elm.text", "disabled_visible", 0.0);
9666 set_state(PART:"elm.text", "disabled", 0.0);
9667 set_int(button_state, BUTTON_STATE_DISABLED);
9670 program { name: "enable";
9671 signal: "elm,state,enabled";
9673 action: STATE_SET "default" 0.0;
9674 target: "button_image";
9677 after: "enable_text";
9679 program { name: "enable_text";
9683 get_state(PART:"elm.text", st, 30, vl);
9684 if (!strcmp(st, "disabled_visible"))
9685 set_state(PART:"elm.text", "visible", 0.0);
9687 set_state(PART:"elm.text", "default", 0.0);
9688 set_int(button_state, BUTTON_STATE_ENABLED);
9691 program { name: "focused";
9692 action: STATE_SET "focused" 0.0;
9693 target: "button_image";
9696 program { name: "unfocused";
9697 action: STATE_SET "default" 0.0;
9698 target: "button_image";
9699 after: "unfocus_text";
9701 program { name: "unfocus_text";
9702 action: STATE_SET "visible" 0.0;
9708 ///////////////////////////////////////////////////////////////////////////////////////
9709 group { name: "elm/button/base/navigationbar_control/right";
9711 public button_state = BUTTON_STATE_ENABLED;
9713 images.image: "00_option_header_press.png" COMP;
9715 part { name: "button_image";
9719 description { state: "default" 0.0;
9724 image.normal: "00_option_header_press.png";
9725 image.border: 2 2 2 2;
9726 color: 255 255 255 255;
9729 description { state: "clicked" 0.0;
9730 inherit: "default" 0.0;
9735 name: "padding_left";
9739 description { state: "default" 0.0;
9741 rel1.relative: 0.0 0.0;
9742 rel2.relative: 0.0 1.0;
9749 name: "padding_right";
9753 description { state: "default" 0.0;
9755 rel1.relative: 1.0 0.0;
9756 rel2.relative: 1.0 1.0;
9763 name: "padding_top";
9767 description { state: "default" 0.0;
9769 rel1.relative: 0.0 0.0;
9770 rel2.relative: 1.0 0.0;
9777 name: "padding_bottom";
9781 description { state: "default" 0.0;
9783 rel1.relative: 0.0 1.0;
9784 rel2.relative: 1.0 1.0;
9795 description { state: "default" 0.0;
9799 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9800 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9804 description { state: "visible" 0.0;
9808 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9809 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9813 description { state: "icononly" 0.0;
9814 inherit: "default" 0.0;
9818 name: "padding_after_icon";
9822 description { state: "default" 0.0; //when only icon or no icon is there
9824 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9825 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9830 description { state: "visible" 0.0;
9833 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9834 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9839 description { state: "icononly" 0.0;
9840 inherit: "default" 0.0;
9844 name: "padding_before_text";
9848 description { state: "default" 0.0; //when only icon or no icon is there
9850 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
9851 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
9857 part { name: "elm.swallow.content";
9860 description { state: "default" 0.0;
9863 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9864 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9867 description { state: "visible" 0.0;
9873 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
9874 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
9876 aspect_preference: VERTICAL;
9878 description { state: "icononly" 0.0;
9882 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9883 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9886 aspect_preference: VERTICAL;
9889 part { name: "elm.text";
9893 description { state: "default" 0.0;
9895 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
9896 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9898 color: 255 255 255 255;
9900 font: "SLP:style=Medium";
9907 description { state: "visible" 0.0;
9908 inherit: "default" 0.0;
9912 description { state: "clicked" 0.0;
9913 inherit: "default" 0.0;
9916 color: 255 255 255 255;
9919 description { state: "disabled" 0.0;
9920 inherit: "default" 0.0;
9921 color: 185 185 185 255;
9924 description { state: "disabled_visible" 0.0;
9925 inherit: "default" 0.0;
9926 color: 185 185 185 255;
9931 description { state: "focused" 0.0;
9932 inherit: "default" 0.0;
9935 color: 255 255 255 255;
9939 part { name: "over2";
9943 ignore_flags: ON_HOLD;
9944 description { state: "default" 0.0;
9947 description { state: "disabled" 0.0;
9948 inherit: "default" 0.0;
9952 part { name: "over3";
9956 description { state: "default" 0.0;
9959 description { state: "clicked" 0.0;
9960 inherit: "default" 0.0;
9964 part { name: "disabler";
9966 description { state: "default" 0.0;
9970 description { state: "disabled" 0.0;
9971 inherit: "default" 0.0;
9977 program { name: "button_click";
9978 signal: "mouse,down,1";
9980 action: SIGNAL_EMIT "elm,action,press" "";
9981 after: "button_click_anim";
9983 program { name: "button_click_anim";
9984 action: STATE_SET "clicked" 0.0;
9985 target: "button_image";
9986 after: "text_clicked";
9988 program { name: "text_clicked";
9992 get_state(PART:"elm.text", st, 30, vl);
9993 if (!strcmp(st, "visible"))
9994 set_state(PART:"elm.text", "clicked", 0.0);
9997 program { name: "button_unpress";
9998 action: SIGNAL_EMIT "elm,action,unpress" "";
10000 program { name: "button_mouseout_clicked";
10001 signal: "mouse,up,1";
10006 get_state(PART:"elm.swallow.content", st, 30, vl);
10007 if (strcmp(st, "icononly"))
10009 emit("elm,action,default,text,set", "");
10010 set_state(PART:"elm.text", "visible", 0.0);
10012 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10013 set_state(PART:"button_image", "default", 0.0);
10015 after: button_unpress;
10017 program { name: "button_click2";
10018 signal: "mouse,down,1";
10020 action: STATE_SET "clicked" 0.0;
10023 program { name: "button_unclick2";
10024 signal: "mouse,clicked,1";
10026 action: STATE_SET "default" 0.0;
10029 program { name: "button_unclick3";
10030 signal: "mouse,clicked,1";
10032 action: SIGNAL_EMIT "elm,action,click" "";
10034 program { name: "text_show";
10035 signal: "elm,state,text,visible";
10040 get_state(PART:"elm.swallow.content", st, 30, vl);
10041 if (!strcmp(st, "icononly"))
10043 set_state(PART:"elm.swallow.content", "visible", 0.0);
10044 set_state(PART:"icon_rect", "visible", 0.0);
10045 set_state(PART:"padding_after_icon", "visible", 0.0);
10047 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10048 set_state(PART:"elm.text", "visible", 0.0);
10050 set_state(PART:"elm.text", "disabled_visible", 0.0);
10053 program { name: "text_hide";
10054 signal: "elm,state,text,hidden";
10059 get_state(PART:"elm.swallow.content", st, 30, vl);
10060 if (!strcmp(st, "visible"))
10062 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10063 set_state(PART:"icon_rect", "icononly", 0.0);
10064 set_state(PART:"padding_after_icon", "icononly", 0.0);
10066 set_state(PART:"elm.text", "default", 0.0);
10069 program { name: "icon_show";
10070 signal: "elm,state,icon,visible";
10075 get_state(PART:"elm.text", st, 30, vl);
10076 if (!strcmp(st, "visible"))
10078 set_state(PART:"elm.swallow.content", "visible", 0.0);
10079 set_state(PART:"icon_rect", "visible", 0.0);
10080 set_state(PART:"padding_after_icon", "visible", 0.0);
10084 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10085 set_state(PART:"icon_rect", "icononly", 0.0);
10086 set_state(PART:"padding_after_icon", "icononly", 0.0);
10090 program { name: "icon_hide";
10091 signal: "elm,state,icon,hidden";
10093 action: STATE_SET "default" 0.0;
10094 target: "elm.swallow.content";
10096 program { name: "disable";
10097 signal: "elm,state,disabled";
10099 action: STATE_SET "disabled" 0.0;
10100 target: "button_image";
10102 target: "disabler";
10103 after: "disable_text";
10105 program { name: "disable_text";
10109 get_state(PART:"elm.text", st, 30, vl);
10110 if (!strcmp(st, "visible"))
10111 set_state(PART:"elm.text", "disabled_visible", 0.0);
10113 set_state(PART:"elm.text", "disabled", 0.0);
10114 set_int(button_state, BUTTON_STATE_DISABLED);
10117 program { name: "enable";
10118 signal: "elm,state,enabled";
10120 action: STATE_SET "default" 0.0;
10121 target: "button_image";
10123 target: "disabler";
10124 after: "enable_text";
10126 program { name: "enable_text";
10130 get_state(PART:"elm.text", st, 30, vl);
10131 if (!strcmp(st, "disabled_visible"))
10132 set_state(PART:"elm.text", "visible", 0.0);
10134 set_state(PART:"elm.text", "default", 0.0);
10135 set_int(button_state, BUTTON_STATE_ENABLED);
10138 program { name: "focused";
10139 action: STATE_SET "focused" 0.0;
10140 target: "button_image";
10141 target: "elm.text";
10143 program { name: "unfocused";
10144 action: STATE_SET "default" 0.0;
10145 target: "button_image";
10146 after: "unfocus_text";
10148 program { name: "unfocus_text";
10149 action: STATE_SET "visible" 0.0;
10150 target: "elm.text";
10155 ///////////////////////////////////////////////////////////////////////////////////////
10156 group { name: "elm/button/base/tickernoti";
10158 image: "00_button_06_normal.png" COMP;
10159 image: "00_button_06_press.png" COMP;
10160 image: "00_button_06_dim.png" COMP;
10163 public button_state = BUTTON_STATE_ENABLED;
10166 part { name: "button_image";
10169 description { state: "default" 0.0;
10173 normal: "00_button_06_normal.png";
10178 description { state: "clicked" 0.0;
10179 inherit: "default" 0.0;
10180 image.normal: "00_button_06_press.png";
10182 description { state: "disabled" 0.0;
10183 inherit: "default" 0.0;
10184 image.normal: "00_button_06_dim.png";
10186 description { state: "focused" 0.0;
10187 inherit: "default" 0.0;
10188 image.normal: "00_button_06_press.png";
10192 name: "padding_left";
10196 description { state: "default" 0.0;
10198 rel1.relative: 0.0 0.0;
10199 rel2.relative: 0.0 1.0;
10206 name: "padding_right";
10210 description { state: "default" 0.0;
10212 rel1.relative: 1.0 0.0;
10213 rel2.relative: 1.0 1.0;
10220 name: "padding_top";
10224 description { state: "default" 0.0;
10226 rel1.relative: 0.0 0.0;
10227 rel2.relative: 1.0 0.0;
10234 name: "padding_bottom";
10238 description { state: "default" 0.0;
10240 rel1.relative: 0.0 1.0;
10241 rel2.relative: 1.0 1.0;
10252 description { state: "default" 0.0;
10256 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10257 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10261 description { state: "visible" 0.0;
10266 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10267 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10269 aspect_preference: VERTICAL;
10273 description { state: "icononly" 0.0;
10274 inherit: "default" 0.0;
10278 name: "padding_after_icon";
10282 description { state: "default" 0.0; //when only icon or no icon is there
10284 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10285 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10288 color: 0 255 0 100;
10290 description { state: "visible" 0.0;
10293 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10294 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10299 description { state: "icononly" 0.0;
10300 inherit: "default" 0.0;
10304 name: "padding_before_text";
10308 description { state: "default" 0.0; //when only icon or no icon is there
10310 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
10311 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
10317 part { name: "elm.swallow.content";
10320 description { state: "default" 0.0;
10323 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10324 rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10327 description { state: "visible" 0.0;
10333 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
10334 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
10336 aspect_preference: VERTICAL;
10338 description { state: "icononly" 0.0;
10342 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10343 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
10346 aspect_preference: VERTICAL;
10349 part { name: "elm.text";
10353 description { state: "default" 0.0;
10355 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
10356 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
10358 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
10360 font: "SLP:style=Roman";
10367 description { state: "visible" 0.0;
10368 inherit: "default" 0.0;
10372 description { state: "clicked" 0.0;
10373 inherit: "default" 0.0;
10376 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
10378 description { state: "disabled" 0.0;
10379 inherit: "default" 0.0;
10382 description { state: "disabled_visible" 0.0;
10383 inherit: "default" 0.0;
10384 color: BUTTON_TEXT_TICKERNOTI_DISABLED_COLOR_INC;
10388 description { state: "focused" 0.0;
10389 inherit: "default" 0.0;
10392 color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
10395 part { name: "over2";
10399 ignore_flags: ON_HOLD;
10400 description { state: "default" 0.0;
10403 description { state: "disabled" 0.0;
10404 inherit: "default" 0.0;
10408 part { name: "over3";
10412 description { state: "default" 0.0;
10415 description { state: "clicked" 0.0;
10416 inherit: "default" 0.0;
10420 part { name: "disabler";
10422 description { state: "default" 0.0;
10426 description { state: "disabled" 0.0;
10427 inherit: "default" 0.0;
10433 program { name: "button_click";
10434 signal: "mouse,down,1";
10436 action: SIGNAL_EMIT "elm,action,press" "";
10437 after: "button_click_anim";
10439 program { name: "button_click_anim";
10440 action: STATE_SET "clicked" 0.0;
10441 target: "button_image";
10442 after: "text_clicked";
10444 program { name: "text_clicked";
10448 get_state(PART:"elm.text", st, 30, vl);
10449 if (!strcmp(st, "visible"))
10450 set_state(PART:"elm.text", "clicked", 0.0);
10453 program { name: "button_unpress";
10454 action: SIGNAL_EMIT "elm,action,unpress" "";
10456 program { name: "button_mouseout_clicked";
10457 signal: "mouse,up,1";
10462 get_state(PART:"elm.swallow.content", st, 30, vl);
10463 if (strcmp(st, "icononly"))
10465 emit("elm,action,default,text,set", "");
10466 set_state(PART:"elm.text", "visible", 0.0);
10468 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10469 set_state(PART:"button_image", "default", 0.0);
10471 after: button_unpress;
10473 program { name: "button_click2";
10474 signal: "mouse,down,1";
10476 action: STATE_SET "clicked" 0.0;
10479 program { name: "button_unclick2";
10480 signal: "mouse,clicked,1";
10482 action: STATE_SET "default" 0.0;
10485 program { name: "button_unclick3";
10486 signal: "mouse,clicked,1";
10488 action: SIGNAL_EMIT "elm,action,click" "";
10490 program { name: "text_show";
10491 signal: "elm,state,text,visible";
10496 get_state(PART:"elm.swallow.content", st, 30, vl);
10497 if (!strcmp(st, "icononly"))
10499 set_state(PART:"elm.swallow.content", "visible", 0.0);
10500 set_state(PART:"icon_rect", "visible", 0.0);
10501 set_state(PART:"padding_after_icon", "visible", 0.0);
10503 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10504 set_state(PART:"elm.text", "visible", 0.0);
10506 set_state(PART:"elm.text", "disabled_visible", 0.0);
10509 program { name: "text_hide";
10510 signal: "elm,state,text,hidden";
10515 get_state(PART:"elm.swallow.content", st, 30, vl);
10516 if (!strcmp(st, "visible"))
10518 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10519 set_state(PART:"icon_rect", "icononly", 0.0);
10520 set_state(PART:"padding_after_icon", "icononly", 0.0);
10522 set_state(PART:"elm.text", "default", 0.0);
10525 program { name: "icon_show";
10526 signal: "elm,state,icon,visible";
10531 get_state(PART:"elm.text", st, 30, vl);
10532 if (!strcmp(st, "visible"))
10534 set_state(PART:"elm.swallow.content", "visible", 0.0);
10535 set_state(PART:"icon_rect", "visible", 0.0);
10536 set_state(PART:"padding_after_icon", "visible", 0.0);
10540 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10541 set_state(PART:"icon_rect", "icononly", 0.0);
10542 set_state(PART:"padding_after_icon", "icononly", 0.0);
10546 program { name: "icon_hide";
10547 signal: "elm,state,icon,hidden";
10549 action: STATE_SET "default" 0.0;
10550 target: "elm.swallow.content";
10552 program { name: "disable";
10553 signal: "elm,state,disabled";
10555 action: STATE_SET "disabled" 0.0;
10556 target: "button_image";
10558 target: "disabler";
10559 after: "disable_text";
10561 program { name: "disable_text";
10565 get_state(PART:"elm.text", st, 30, vl);
10566 if (!strcmp(st, "visible"))
10567 set_state(PART:"elm.text", "disabled_visible", 0.0);
10569 set_state(PART:"elm.text", "disabled", 0.0);
10570 set_int(button_state, BUTTON_STATE_DISABLED);
10573 program { name: "enable";
10574 signal: "elm,state,enabled";
10576 action: STATE_SET "default" 0.0;
10577 target: "button_image";
10579 target: "disabler";
10580 after: "enable_text";
10582 program { name: "enable_text";
10586 get_state(PART:"elm.text", st, 30, vl);
10587 if (!strcmp(st, "disabled_visible"))
10588 set_state(PART:"elm.text", "visible", 0.0);
10590 set_state(PART:"elm.text", "default", 0.0);
10591 set_int(button_state, BUTTON_STATE_ENABLED);
10594 program { name: "focused";
10595 //signal: "elm,action,focus";
10597 action: STATE_SET "focused" 0.0;
10598 target: "button_image";
10599 target: "elm.text";
10601 program { name: "unfocused";
10602 //signal: "elm,action,unfocus";
10604 action: STATE_SET "default" 0.0;
10605 target: "button_image";
10606 after: "unfocus_text";
10608 program { name: "unfocus_text";
10609 action: STATE_SET "visible" 0.0;
10610 target: "elm.text";
10615 ///////////////////////////////////////////////////////////////////////////////////////
10616 group { name: "elm/button/base/expandable_number";
10617 alias: "elm/button/base/text_only/expandable_number";
10619 image: "00_button_05_normal.png" COMP;
10620 image: "00_button_05_press.png" COMP;
10621 image: "00_button_05_dim.png" COMP;
10622 image: "00_arrow_down.png" COMP;
10623 image: "00_arrow_down_press.png" COMP;
10624 image: "00_arrow_down_dim.png" COMP;
10627 public button_state = BUTTON_STATE_ENABLED;
10630 part { name: "button_image";
10633 description { state: "default" 0.0;
10636 normal: "00_button_05_normal.png";
10641 description { state: "clicked" 0.0;
10642 inherit: "default" 0.0;
10643 image.normal: "00_button_05_press.png";
10645 description { state: "disabled" 0.0;
10646 inherit: "default" 0.0;
10647 image.normal: "00_button_05_dim.png";
10649 description { state: "focused" 0.0;
10650 inherit: "default" 0.0;
10651 image.normal: "00_button_05_press.png";
10655 name: "padding_left";
10659 description { state: "default" 0.0;
10661 rel1.relative: 0.0 0.0;
10662 rel2.relative: 0.0 1.0;
10669 name: "padding_right";
10673 description { state: "default" 0.0;
10675 rel1.relative: 1.0 0.0;
10676 rel2.relative: 1.0 1.0;
10683 name: "padding_top";
10687 description { state: "default" 0.0;
10689 rel1.relative: 0.0 0.0;
10690 rel2.relative: 1.0 0.0;
10697 name: "padding_bottom";
10701 description { state: "default" 0.0;
10703 rel1.relative: 0.0 1.0;
10704 rel2.relative: 1.0 1.0;
10715 description { state: "default" 0.0;
10719 rel1 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
10720 rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
10726 name: "padding_before_icon";
10730 description { state: "default" 0.0;
10732 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
10733 rel2 { relative: 0.0 1.0; to: "icon_rect"; }
10740 name: "padding_after_text";
10744 description { state: "default" 0.0;
10746 rel1 { relative: 1.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
10747 rel2 { relative: 1.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
10754 name: "arrow_down";
10757 description { state: "default" 0.0;
10762 rel1 { relative: 1.0 0.5; to_x: "padding_after_text"; }
10763 rel2 { relative: 1.0 0.5; to_x: "padding_after_text"; }
10764 image.normal:"00_arrow_down.png";
10766 description { state: "clicked" 0.0;
10767 inherit: "default" 0.0;
10768 image.normal:"00_arrow_down_press.png";
10770 description { state: "disabled" 0.0;
10771 inherit: "default" 0.0;
10772 image.normal:"00_arrow_down_dim.png";
10775 part { name: "elm.text";
10780 description { state: "default" 0.0;
10782 rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10783 rel2 { relative: 0.0 0.0; to_x: "padding_before_icon"; to_y:"padding_bottom"; }
10785 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10786 color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
10788 font: "SLP:style=Medium";
10795 description { state: "visible" 0.0;
10796 inherit: "default" 0.0;
10800 description { state: "clicked" 0.0;
10801 inherit: "default" 0.0;
10804 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10805 color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
10807 description { state: "disabled" 0.0;
10808 inherit: "default" 0.0;
10812 description { state: "disabled_visible" 0.0;
10813 inherit: "default" 0.0;
10814 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10815 color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
10820 description { state: "focused" 0.0;
10821 inherit: "default" 0.0;
10824 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10825 color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
10828 part { name: "over2";
10832 ignore_flags: ON_HOLD;
10833 description { state: "default" 0.0;
10836 description { state: "disabled" 0.0;
10837 inherit: "default" 0.0;
10841 part { name: "over3";
10845 description { state: "default" 0.0;
10848 description { state: "clicked" 0.0;
10849 inherit: "default" 0.0;
10853 part { name: "disabler";
10855 description { state: "default" 0.0;
10859 description { state: "disabled" 0.0;
10860 inherit: "default" 0.0;
10866 program { name: "button_click";
10867 signal: "mouse,down,1";
10869 action: SIGNAL_EMIT "elm,action,press" "";
10870 after: "button_click_anim";
10872 program { name: "button_click_anim";
10873 action: STATE_SET "clicked" 0.0;
10874 target: "button_image";
10875 target: "arrow_down";
10876 after: "text_clicked";
10878 program { name: "text_clicked";
10882 get_state(PART:"elm.text", st, 30, vl);
10883 if (!strcmp(st, "visible"))
10884 set_state(PART:"elm.text", "clicked", 0.0);
10887 program { name: "button_unpress";
10888 action: SIGNAL_EMIT "elm,action,unpress" "";
10890 program { name: "button_mouseout_clicked";
10891 signal: "mouse,up,1";
10894 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10896 set_state(PART:"button_image", "default", 0.0);
10897 set_state(PART:"elm.text", "visible", 0.0);
10898 set_state(PART:"arrow_down", "default", 0.0);
10901 after: button_unpress;
10903 program { name: "button_click2";
10904 signal: "mouse,down,1";
10906 action: STATE_SET "clicked" 0.0;
10909 program { name: "button_unclick2";
10910 signal: "mouse,clicked,1";
10912 action: STATE_SET "default" 0.0;
10915 program { name: "button_unclick3";
10916 signal: "mouse,clicked,1";
10918 action: SIGNAL_EMIT "elm,action,click" "";
10920 program { name: "text_show";
10921 signal: "elm,state,text,visible";
10924 if(get_int(button_state) != BUTTON_STATE_DISABLED)
10925 set_state(PART:"elm.text", "visible", 0.0);
10927 set_state(PART:"elm.text", "disabled_visible", 0.0);
10930 program { name: "text_hide";
10931 signal: "elm,state,text,hidden";
10934 set_state(PART:"elm.text", "default", 0.0);
10937 program { name: "icon_show";
10938 signal: "elm,state,icon,visible";
10941 program { name: "icon_hide";
10942 signal: "elm,state,icon,hidden";
10945 program { name: "disable";
10946 signal: "elm,state,disabled";
10948 action: STATE_SET "disabled" 0.0;
10949 target: "button_image";
10951 target: "disabler";
10952 after: "disable_text";
10954 program { name: "disable_text";
10958 get_state(PART:"elm.text", st, 30, vl);
10959 if (!strcmp(st, "visible"))
10960 set_state(PART:"elm.text", "disabled_visible", 0.0);
10962 set_state(PART:"elm.text", "disabled", 0.0);
10963 set_int(button_state, BUTTON_STATE_DISABLED);
10966 program { name: "enable";
10967 signal: "elm,state,enabled";
10969 action: STATE_SET "default" 0.0;
10970 target: "button_image";
10972 target: "disabler";
10973 after: "enable_text";
10975 program { name: "enable_text";
10979 get_state(PART:"elm.text", st, 30, vl);
10980 if (!strcmp(st, "disabled_visible"))
10981 set_state(PART:"elm.text", "visible", 0.0);
10983 set_state(PART:"elm.text", "default", 0.0);
10984 set_int(button_state, BUTTON_STATE_ENABLED);
10987 program { name: "focused";
10988 //signal: "elm,action,focus";
10990 action: STATE_SET "focused" 0.0;
10991 target: "button_image";
10992 target: "elm.text";
10994 program { name: "unfocused";
10995 //signal: "elm,action,unfocus";
10997 action: STATE_SET "default" 0.0;
10998 target: "button_image";
10999 after: "unfocus_text";
11001 program { name: "unfocus_text";
11002 action: STATE_SET "visible" 0.0;
11003 target: "elm.text";
11008 #undef BUTTON_STATE_ENABLED
11009 #undef BUTTON_STATE_DISABLED