2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
22 ///////////////////////////////////////////////////////////////////////////////////////
23 group { name: "elm/button/base/style1";
24 alias: "elm/button/base/text_only/style1";
25 alias: "elm/button/base/center";
26 alias: "elm/button/base/icon_and_text/center";
27 alias: "elm/button/base/nocontents/search_button";
28 alias: "elm/button/base/naviframe/title/default";
30 image: "00_button_01_normal.png" COMP;
31 image: "00_button_01_normal_press.png" COMP;
32 image: "00_button_01_normal_dim.png" COMP;
35 public button_state = BUTTON_STATE_ENABLED;
38 part { name: "button_image";
40 description { state: "default" 0.0;
42 normal: "00_button_01_normal.png";
43 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
47 description { state: "clicked" 0.0;
48 inherit: "default" 0.0;
50 normal: "00_button_01_normal_press.png";
53 description { state: "disabled" 0.0;
54 inherit: "default" 0.0;
56 normal: "00_button_01_normal_dim.png";
59 description { state: "focused" 0.0;
60 inherit: "default" 0.0;
62 normal: "00_button_01_normal_press.png";
66 part { name: "padding_left_top";
70 description { state: "default" 0.0;
75 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
84 description { state: "default" 0.0;
85 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
88 description { state: "visible" 0.0;
89 inherit: "default" 0.0;
90 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
92 description { state: "icononly" 0.0;
93 inherit: "default" 0.0;
94 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
97 part { name: "padding_right_bottom";
101 description { state: "default" 0.0;
106 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
111 part { name: "icon_rect";
115 description { state: "default" 0.0;
121 to: "padding_left_top";
125 to_x: "padding_left_top";
126 to_y: "padding_right_bottom";
130 description { state: "visible" 0.0;
132 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
137 to: "padding_left_top";
141 to_x: "padding_left_top";
142 to_y: "padding_right_bottom";
146 description { state: "icononly" 0.0;
147 inherit: "default" 0.0;
150 part { name: "padding_after_icon";
154 description { state: "default" 0.0; //when only icon or no icon is there
167 description { state: "visible" 0.0;
178 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
180 description { state: "icononly" 0.0;
181 inherit: "default" 0.0;
184 part { name: "padding_before_text";
188 description { state: "default" 0.0; //when only icon or no icon is there
193 to_y: "padding_left_top";
198 to_y: "padding_right_bottom";
201 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
205 part { name: "elm.swallow.content";
209 description { state: "default" 0.0;
214 to: "padding_left_top";
218 to_x: "padding_left_top";
219 to_y: "padding_right_bottom";
223 description { state: "visible" 0.0;
225 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
226 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
230 to_x: "padding_before_text";
231 to_y: "padding_left_top";
235 to_x: "padding_before_text";
236 to_y: "padding_right_bottom";
239 description { state: "icononly" 0.0;
240 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
241 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
245 part { name: "elm.text";
250 description { state: "default" 0.0;
254 to_x: "padding_after_icon";
255 to_y: "padding_left_top";
259 to: "padding_right_bottom";
261 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
263 font: "SLP:style=Medium";
264 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
269 description { state: "visible" 0.0;
270 inherit: "default" 0.0;
273 description { state: "clicked" 0.0;
274 inherit: "default" 0.0;
276 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
278 description { state: "disabled" 0.0;
279 inherit: "default" 0.0;
282 description { state: "disabled_visible" 0.0;
283 inherit: "default" 0.0;
284 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
287 description { state: "focused" 0.0;
288 inherit: "default" 0.0;
290 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
293 part { name: "over2";
296 ignore_flags: ON_HOLD;
297 description { state: "default" 0.0;
301 part { name: "over3";
304 description { state: "default" 0.0;
308 part { name: "clipper";
310 description { state: "default" 0.0;
311 color: 255 255 255 255;
314 part { name: "disabler";
316 description { state: "default" 0.0;
320 description { state: "disabled" 0.0;
321 inherit: "default" 0.0;
327 program { name: "button_click";
328 signal: "mouse,down,1";
330 action: SIGNAL_EMIT "elm,action,press" "";
331 after: "button_click_anim";
333 program { name: "button_click_anim";
334 action: STATE_SET "clicked" 0.0;
335 target: "button_image";
336 after: "text_clicked";
338 program { name: "text_clicked";
342 get_state(PART:"elm.text", st, 30, vl);
343 if (!strcmp(st, "visible"))
344 set_state(PART:"elm.text", "clicked", 0.0);
347 program { name: "button_unpress";
348 action: SIGNAL_EMIT "elm,action,unpress" "";
350 program { name: "button_mouseout_clicked";
351 signal: "mouse,up,1";
356 get_state(PART:"elm.swallow.content", st, 30, vl);
357 if (strcmp(st, "icononly"))
359 emit("elm,action,default,text,set", "");
360 set_state(PART:"elm.text", "visible", 0.0);
362 if (get_int(button_state) != BUTTON_STATE_DISABLED)
363 set_state(PART:"button_image", "default", 0.0);
365 after: button_unpress;
367 program { name: "button_unclick3";
368 signal: "mouse,clicked,1";
370 action: SIGNAL_EMIT "elm,action,click" "";
372 program { name: "text_show";
373 signal: "elm,state,text,visible";
378 get_state(PART:"elm.swallow.content", st, 30, vl);
379 if (!strcmp(st, "icononly"))
381 set_state(PART:"elm.swallow.content", "visible", 0.0);
382 set_state(PART:"icon_rect", "visible", 0.0);
383 set_state(PART:"padding_after_icon", "visible", 0.0);
384 set_state(PART:"bg", "visible", 0.0);
386 if (get_int(button_state) != BUTTON_STATE_DISABLED)
387 set_state(PART:"elm.text", "visible", 0.0);
389 set_state(PART:"elm.text", "disabled_visible", 0.0);
392 program { name: "text_hide";
393 signal: "elm,state,text,hidden";
398 get_state(PART:"elm.swallow.content", st, 30, vl);
399 if (!strcmp(st, "visible"))
401 set_state(PART:"elm.swallow.content", "icononly", 0.0);
402 set_state(PART:"icon_rect", "icononly", 0.0);
403 set_state(PART:"padding_after_icon", "icononly", 0.0);
404 set_state(PART:"bg", "icononly", 0.0);
406 set_state(PART:"elm.text", "default", 0.0);
409 program { name: "icon_show";
410 signal: "elm,state,icon,visible";
415 get_state(PART:"elm.text", st, 30, vl);
416 if (!strcmp(st, "visible"))
418 set_state(PART:"elm.swallow.content", "visible", 0.0);
419 set_state(PART:"icon_rect", "visible", 0.0);
420 set_state(PART:"padding_after_icon", "visible", 0.0);
421 set_state(PART:"bg", "visible", 0.0);
425 set_state(PART:"elm.swallow.content", "icononly", 0.0);
426 set_state(PART:"icon_rect", "icononly", 0.0);
427 set_state(PART:"padding_after_icon", "icononly", 0.0);
428 set_state(PART:"bg", "icononly", 0.0);
432 program { name: "icon_hide";
433 signal: "elm,state,icon,hidden";
435 action: STATE_SET "default" 0.0;
436 target: "elm.swallow.content";
437 target: "padding_after_icon";
441 program { name: "disable";
442 signal: "elm,state,disabled";
444 action: STATE_SET "disabled" 0.0;
445 target: "button_image";
447 after: "disable_text";
449 program { name: "disable_text";
453 get_state(PART:"elm.text", st, 30, vl);
454 if (!strcmp(st, "visible"))
455 set_state(PART:"elm.text", "disabled_visible", 0.0);
457 set_state(PART:"elm.text", "disabled", 0.0);
458 set_int(button_state, BUTTON_STATE_DISABLED);
461 program { name: "enable";
462 signal: "elm,state,enabled";
464 action: STATE_SET "default" 0.0;
465 target: "button_image";
467 after: "enable_text";
469 program { name: "enable_text";
473 get_state(PART:"elm.text", st, 30, vl);
474 if (!strcmp(st, "disabled_visible"))
475 set_state(PART:"elm.text", "visible", 0.0);
477 set_state(PART:"elm.text", "default", 0.0);
478 set_int(button_state, BUTTON_STATE_ENABLED);
481 program { name: "focused";
482 //signal: "elm,action,focus";
484 action: STATE_SET "focused" 0.0;
485 target: "button_image";
488 program { name: "unfocused";
489 //signal: "elm,action,unfocus";
491 action: STATE_SET "default" 0.0;
492 target: "button_image";
493 after: "unfocus_text";
495 program { name: "unfocus_text";
496 action: STATE_SET "visible" 0.0;
502 ///////////////////////////////////////////////////////////////////////////////////////
503 group { name: "elm/button/base/style2";
504 alias: "elm/button/base/text_only/style2";
506 image: "00_button_04_normal.png" COMP;
507 image: "00_button_04_press.png" COMP;
508 image: "00_button_04_dim.png" COMP;
511 public button_state = BUTTON_STATE_ENABLED;
514 part { name: "button_image";
516 description { state: "default" 0.0;
518 normal: "00_button_04_normal.png";
519 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
523 description { state: "clicked" 0.0;
524 inherit: "default" 0.0;
526 normal: "00_button_04_press.png";
529 description { state: "disabled" 0.0;
530 inherit: "default" 0.0;
532 normal: "00_button_04_dim.png";
535 description { state: "focused" 0.0;
536 inherit: "default" 0.0;
538 normal: "00_button_04_press.png";
542 part { name: "padding_left_top";
546 description { state: "default" 0.0;
551 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
560 description { state: "default" 0.0;
561 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
564 description { state: "visible" 0.0;
565 inherit: "default" 0.0;
566 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
568 description { state: "icononly" 0.0;
569 inherit: "default" 0.0;
570 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
573 part { name: "padding_right_bottom";
577 description { state: "default" 0.0;
582 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
587 part { name: "icon_rect";
591 description { state: "default" 0.0;
597 to: "padding_left_top";
601 to_x: "padding_left_top";
602 to_y: "padding_right_bottom";
606 description { state: "visible" 0.0;
608 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
609 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
613 to: "padding_left_top";
617 to_x: "padding_left_top";
618 to_y: "padding_right_bottom";
622 description { state: "icononly" 0.0;
623 inherit: "default" 0.0;
626 part { name: "padding_after_icon";
630 description { state: "default" 0.0; //when only icon or no icon is there
643 description { state: "visible" 0.0;
654 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
656 description { state: "icononly" 0.0;
657 inherit: "default" 0.0;
660 part { name: "padding_before_text";
664 description { state: "default" 0.0; //when only icon or no icon is there
669 to_y: "padding_left_top";
674 to_y: "padding_right_bottom";
677 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
681 part { name: "elm.swallow.content";
685 description { state: "default" 0.0;
690 to: "padding_left_top";
694 to_x: "padding_left_top";
695 to_y: "padding_right_bottom";
699 description { state: "visible" 0.0;
701 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
702 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
706 to_x: "padding_before_text";
707 to_y: "padding_left_top";
711 to_x: "padding_before_text";
712 to_y: "padding_right_bottom";
715 description { state: "icononly" 0.0;
716 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
717 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
720 part { name: "elm.text";
725 description { state: "default" 0.0;
729 to_x: "padding_after_icon";
730 to_y: "padding_left_top";
734 to: "padding_right_bottom";
736 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
738 font: "SLP:style=Medium";
739 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
744 description { state: "visible" 0.0;
745 inherit: "default" 0.0;
748 description { state: "clicked" 0.0;
749 inherit: "default" 0.0;
751 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
753 description { state: "disabled" 0.0;
754 inherit: "default" 0.0;
757 description { state: "disabled_visible" 0.0;
758 inherit: "default" 0.0;
759 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
762 description { state: "focused" 0.0;
763 inherit: "default" 0.0;
765 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
768 part { name: "over2";
771 ignore_flags: ON_HOLD;
772 description { state: "default" 0.0;
776 part { name: "over3";
779 description { state: "default" 0.0;
783 part { name: "clipper";
785 description { state: "default" 0.0;
786 color: 255 255 255 255;
789 part { name: "disabler";
791 description { state: "default" 0.0;
795 description { state: "disabled" 0.0;
796 inherit: "default" 0.0;
802 program { name: "button_click";
803 signal: "mouse,down,1";
805 action: SIGNAL_EMIT "elm,action,press" "";
806 after: "button_click_anim";
808 program { name: "button_click_anim";
809 action: STATE_SET "clicked" 0.0;
810 target: "button_image";
811 after: "text_clicked";
813 program { name: "text_clicked";
817 get_state(PART:"elm.text", st, 30, vl);
818 if (!strcmp(st, "visible"))
819 set_state(PART:"elm.text", "clicked", 0.0);
822 program { name: "button_unpress";
823 action: SIGNAL_EMIT "elm,action,unpress" "";
825 program { name: "button_mouseout_clicked";
826 signal: "mouse,up,1";
831 get_state(PART:"elm.swallow.content", st, 30, vl);
832 if (strcmp(st, "icononly"))
834 emit("elm,action,default,text,set", "");
835 set_state(PART:"elm.text", "visible", 0.0);
837 if (get_int(button_state) != BUTTON_STATE_DISABLED)
838 set_state(PART:"button_image", "default", 0.0);
840 after: button_unpress;
842 program { name: "button_unclick3";
843 signal: "mouse,clicked,1";
845 action: SIGNAL_EMIT "elm,action,click" "";
847 program { name: "text_show";
848 signal: "elm,state,text,visible";
853 get_state(PART:"elm.swallow.content", st, 30, vl);
854 if (!strcmp(st, "icononly"))
856 set_state(PART:"elm.swallow.content", "visible", 0.0);
857 set_state(PART:"icon_rect", "visible", 0.0);
858 set_state(PART:"padding_after_icon", "visible", 0.0);
859 set_state(PART:"bg", "visible", 0.0);
861 if (get_int(button_state) != BUTTON_STATE_DISABLED)
862 set_state(PART:"elm.text", "visible", 0.0);
864 set_state(PART:"elm.text", "disabled_visible", 0.0);
867 program { name: "text_hide";
868 signal: "elm,state,text,hidden";
873 get_state(PART:"elm.swallow.content", st, 30, vl);
874 if (!strcmp(st, "visible"))
876 set_state(PART:"elm.swallow.content", "icononly", 0.0);
877 set_state(PART:"icon_rect", "icononly", 0.0);
878 set_state(PART:"padding_after_icon", "icononly", 0.0);
879 set_state(PART:"bg", "icononly", 0.0);
881 set_state(PART:"elm.text", "default", 0.0);
884 program { name: "icon_show";
885 signal: "elm,state,icon,visible";
890 get_state(PART:"elm.text", st, 30, vl);
891 if (!strcmp(st, "visible"))
893 set_state(PART:"elm.swallow.content", "visible", 0.0);
894 set_state(PART:"icon_rect", "visible", 0.0);
895 set_state(PART:"padding_after_icon", "visible", 0.0);
896 set_state(PART:"bg", "visible", 0.0);
900 set_state(PART:"elm.swallow.content", "icononly", 0.0);
901 set_state(PART:"icon_rect", "icononly", 0.0);
902 set_state(PART:"padding_after_icon", "icononly", 0.0);
903 set_state(PART:"bg", "icononly", 0.0);
907 program { name: "icon_hide";
908 signal: "elm,state,icon,hidden";
910 action: STATE_SET "default" 0.0;
911 target: "elm.swallow.content";
912 target: "padding_after_icon";
916 program { name: "disable";
917 signal: "elm,state,disabled";
919 action: STATE_SET "disabled" 0.0;
920 target: "button_image";
922 after: "disable_text";
924 program { name: "disable_text";
928 get_state(PART:"elm.text", st, 30, vl);
929 if (!strcmp(st, "visible"))
930 set_state(PART:"elm.text", "disabled_visible", 0.0);
932 set_state(PART:"elm.text", "disabled", 0.0);
933 set_int(button_state, BUTTON_STATE_DISABLED);
936 program { name: "enable";
937 signal: "elm,state,enabled";
939 action: STATE_SET "default" 0.0;
940 target: "button_image";
942 after: "enable_text";
944 program { name: "enable_text";
948 get_state(PART:"elm.text", st, 30, vl);
949 if (!strcmp(st, "disabled_visible"))
950 set_state(PART:"elm.text", "visible", 0.0);
952 set_state(PART:"elm.text", "default", 0.0);
953 set_int(button_state, BUTTON_STATE_ENABLED);
956 program { name: "focused";
957 //signal: "elm,action,focus";
959 action: STATE_SET "focused" 0.0;
960 target: "button_image";
963 program { name: "unfocused";
964 //signal: "elm,action,unfocus";
966 action: STATE_SET "default" 0.0;
967 target: "button_image";
968 after: "unfocus_text";
970 program { name: "unfocus_text";
971 action: STATE_SET "visible" 0.0;
977 ///////////////////////////////////////////////////////////////////////////////////////
978 group { name: "elm/button/base/sweep";
979 alias: "elm/button/base/text_only/sweep";
980 alias: "elm/button/base/searchbar/default";
982 image: "00_button_sweep.png" COMP;
983 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
984 image: "00_button_sweep_dim.png" COMP;
987 public button_state = BUTTON_STATE_ENABLED;
990 part { name: "button_image";
992 description { state: "default" 0.0;
993 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
995 normal: "00_button_sweep.png";
996 border: BUTTON_SWEEP_BG_BORDER_INC;
1000 description { state: "clicked" 0.0;
1001 inherit: "default" 0.0;
1003 normal: "00_button_sweep_press.png";
1006 description { state: "disabled" 0.0;
1007 inherit: "default" 0.0;
1009 normal: "00_button_sweep_dim.png";
1012 description { state: "focused" 0.0;
1013 inherit: "default" 0.0;
1015 normal: "00_button_sweep_press.png";
1019 part { name: "padding_left_top";
1023 description { state: "default" 0.0;
1028 min: BUTTON_SWEEP_PADDING_MIN_INC;
1033 part { name: "padding_right_bottom";
1037 description { state: "default" 0.0;
1042 min: BUTTON_SWEEP_PADDING_MIN_INC;
1047 part { name: "icon_rect";
1051 description { state: "default" 0.0;
1052 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1056 to_x: "elm.swallow.content";
1057 to_y: "padding_left_top";
1061 to_x: "elm.swallow.content";
1062 to_y: "padding_right_bottom";
1068 part { name: "padding_icon_text";
1072 description { state: "default" 0.0; //when only icon or no icon is there
1085 description { state: "icononly" 0.0;
1086 inherit: "default" 0.0;
1088 description { state: "visible" 0.0; //when icon is visible
1098 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1102 part { name: "elm.swallow.content";
1106 description { state: "default" 0.0;
1111 to: "padding_left_top";
1115 to_x: "padding_left_top";
1116 to_y: "padding_right_bottom";
1120 description { state: "visible" 0.0;
1125 to: "padding_left_top";
1129 to_x: "padding_left_top";
1130 to_y: "padding_right_bottom";
1133 aspect_preference: VERTICAL;
1135 description { state: "icononly" 0.0;
1136 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1139 to: "padding_left_top";
1143 to_x: "padding_left_top";
1144 to_y: "padding_right_bottom";
1148 part { name: "elm.text";
1153 description { state: "default" 0.0;
1157 to_x: "padding_icon_text";
1158 to_y: "padding_left_top";
1162 to: "padding_right_bottom";
1164 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1166 font: "SLP:style=Medium";
1167 size: BUTTON_SWEEP_FONT_SIZE_INC;
1171 description { state: "visible" 0.0;
1172 inherit: "default" 0.0;
1174 min: BUTTON_SWEEP_TEXT_MIN_INC;
1176 description { state: "clicked" 0.0;
1177 inherit: "default" 0.0;
1180 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1182 description { state: "disabled" 0.0;
1183 inherit: "default" 0.0;
1186 description { state: "disabled_visible" 0.0;
1187 inherit: "default" 0.0;
1188 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1190 min: BUTTON_SWEEP_TEXT_MIN_INC;
1192 description { state: "focused" 0.0;
1193 inherit: "default" 0.0;
1196 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1199 part { name: "over2";
1202 ignore_flags: ON_HOLD;
1203 description { state: "default" 0.0;
1207 part { name: "over3";
1210 description { state: "default" 0.0;
1214 part { name: "clipper";
1216 description { state: "default" 0.0;
1217 color: 255 255 255 255;
1220 part { name: "disabler";
1222 description { state: "default" 0.0;
1226 description { state: "disabled" 0.0;
1227 inherit: "default" 0.0;
1233 program { name: "button_click";
1234 signal: "mouse,down,1";
1236 action: SIGNAL_EMIT "elm,action,press" "";
1237 after: "button_click_anim";
1239 program { name: "button_click_anim";
1240 action: STATE_SET "clicked" 0.0;
1241 target: "button_image";
1242 after: "text_clicked";
1244 program { name: "text_clicked";
1248 get_state(PART:"elm.text", st, 30, vl);
1249 if (!strcmp(st, "visible"))
1250 set_state(PART:"elm.text", "clicked", 0.0);
1253 program { name: "button_unpress";
1254 action: SIGNAL_EMIT "elm,action,unpress" "";
1256 program { name: "button_mouseout_clicked";
1257 signal: "mouse,up,1";
1262 get_state(PART:"elm.swallow.content", st, 30, vl);
1263 if (strcmp(st, "icononly"))
1265 emit("elm,action,default,text,set", "");
1266 set_state(PART:"elm.text", "visible", 0.0);
1268 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1269 set_state(PART:"button_image", "default", 0.0);
1271 after: button_unpress;
1273 program { name: "button_unclick3";
1274 signal: "mouse,clicked,1";
1276 action: SIGNAL_EMIT "elm,action,click" "";
1278 program { name: "text_show";
1279 signal: "elm,state,text,visible";
1284 get_state(PART:"elm.swallow.content", st, 30, vl);
1285 if (!strcmp(st, "icononly"))
1287 set_state(PART:"elm.swallow.content", "visible", 0.0);
1288 set_state(PART:"padding_icon_text", "visible", 0.0);
1290 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1291 set_state(PART:"elm.text", "visible", 0.0);
1293 set_state(PART:"elm.text", "disabled_visible", 0.0);
1296 program { name: "text_hide";
1297 signal: "elm,state,text,hidden";
1302 get_state(PART:"elm.swallow.content", st, 30, vl);
1303 if (!strcmp(st, "visible"))
1305 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1306 set_state(PART:"padding_icon_text", "icononly", 0.0);
1308 set_state(PART:"elm.text", "default", 0.0);
1311 program { name: "icon_show";
1312 signal: "elm,state,icon,visible";
1317 get_state(PART:"elm.text", st, 30, vl);
1318 if (!strcmp(st, "visible"))
1320 set_state(PART:"elm.swallow.content", "visible", 0.0);
1321 set_state(PART:"padding_icon_text", "visible", 0.0);
1325 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1326 set_state(PART:"padding_icon_text", "icononly", 0.0);
1330 program { name: "icon_hide";
1331 signal: "elm,state,icon,hidden";
1333 action: STATE_SET "default" 0.0;
1334 target: "elm.swallow.content";
1335 target: "padding_icon_text";
1337 program { name: "disable";
1338 signal: "elm,state,disabled";
1340 action: STATE_SET "disabled" 0.0;
1341 target: "button_image";
1343 after: "disable_text";
1345 program { name: "disable_text";
1349 get_state(PART:"elm.text", st, 30, vl);
1350 if (!strcmp(st, "visible"))
1351 set_state(PART:"elm.text", "disabled_visible", 0.0);
1353 set_state(PART:"elm.text", "disabled", 0.0);
1354 set_int(button_state, BUTTON_STATE_DISABLED);
1357 program { name: "enable";
1358 signal: "elm,state,enabled";
1360 action: STATE_SET "default" 0.0;
1361 target: "button_image";
1363 after: "enable_text";
1365 program { name: "enable_text";
1369 get_state(PART:"elm.text", st, 30, vl);
1370 if (!strcmp(st, "disabled_visible"))
1371 set_state(PART:"elm.text", "visible", 0.0);
1373 set_state(PART:"elm.text", "default", 0.0);
1374 set_int(button_state, BUTTON_STATE_ENABLED);
1377 program { name: "focused";
1378 //signal: "elm,action,focus";
1380 action: STATE_SET "focused" 0.0;
1381 target: "button_image";
1384 program { name: "unfocused";
1385 //signal: "elm,action,unfocus";
1387 action: STATE_SET "default" 0.0;
1388 target: "button_image";
1389 after: "unfocus_text";
1391 program { name: "unfocus_text";
1392 action: STATE_SET "visible" 0.0;
1398 ///////////////////////////////////////////////////////////////////////////////////////
1399 group { name: "elm/button/base/popup_button/default";
1400 alias: "elm/button/base/popup_button/menustyle";
1401 alias: "elm/button/base/popup_button/liststyle";
1402 alias: "elm/button/base/popup_button/volumebarstyle";
1403 alias: "elm/button/base/popup_button/customstyle";
1404 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1405 alias: "elm/button/base/popup_button/image_scroll";
1406 alias: "elm/button/base/popup_button/image_slider";
1407 alias: "elm/button/base/popup_button/image_list";
1409 image: "00_button_popup_normal.png" COMP;
1410 image: "00_button_popup_press.png" COMP;
1411 image: "00_button_popup_focus.png" COMP;
1412 image: "00_button_popup_dim.png" COMP;
1415 public button_state = BUTTON_STATE_ENABLED;
1418 part { name: "button_image";
1420 description { state: "default" 0.0;
1421 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1423 normal: "00_button_popup_normal.png";
1424 border: BUTTON_POPUP_BG_BORDER_INC;
1428 description { state: "clicked" 0.0;
1429 inherit: "default" 0.0;
1431 normal: "00_button_popup_press.png";
1434 description { state: "disabled" 0.0;
1435 inherit: "default" 0.0;
1437 normal: "00_button_popup_dim.png";
1440 description { state: "focused" 0.0;
1441 inherit: "default" 0.0;
1443 normal: "00_button_popup_focus.png";
1447 part { name: "padding_left_top";
1451 description { state: "default" 0.0;
1456 min: BUTTON_POPUP_PADDING_MIN_INC;
1461 part { name: "padding_right_bottom";
1464 description { state: "default" 0.0;
1469 min: BUTTON_POPUP_PADDING_MIN_INC;
1474 part { name: "padding_icon_text";
1477 description { state: "default" 0.0; //when only icon or no icon is there
1481 to: "elm.swallow.content";
1484 to: "elm.swallow.content";
1490 description { state: "icononly" 0.0;
1491 inherit: "default" 0.0;
1493 description { state: "visible" 0.0; //when icon is visible
1494 inherit: "default" 0.0;
1495 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1498 part { name: "elm.swallow.content";
1502 description { state: "default" 0.0;
1507 to: "padding_left_top";
1511 to_x: "padding_left_top";
1512 to_y: "padding_right_bottom";
1516 description { state: "visible" 0.0;
1517 inherit: "default" 0.0;
1521 aspect_preference: VERTICAL;
1523 description { state: "icononly" 0.0;
1524 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1527 to: "padding_left_top";
1531 to_x: "padding_left_top";
1532 to_y: "padding_right_bottom";
1536 part { name: "elm.text";
1541 description { state: "default" 0.0;
1545 to_x: "padding_icon_text";
1546 to_y: "padding_left_top";
1550 to: "padding_right_bottom";
1552 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
1554 font: "SLP:style=Medium";
1555 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
1559 description { state: "visible" 0.0;
1560 inherit: "default" 0.0;
1562 min: BUTTON_POPUP_TEXT_MIN_INC;
1564 description { state: "clicked" 0.0;
1565 inherit: "default" 0.0;
1568 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
1570 description { state: "disabled" 0.0;
1571 inherit: "default" 0.0;
1574 description { state: "disabled_visible" 0.0;
1575 inherit: "default" 0.0;
1576 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
1578 min: BUTTON_POPUP_TEXT_MIN_INC;
1580 description { state: "focused" 0.0;
1581 inherit: "default" 0.0;
1584 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1587 part { name: "over2";
1590 ignore_flags: ON_HOLD;
1591 description { state: "default" 0.0;
1595 part { name: "over3";
1598 description { state: "default" 0.0;
1602 part { name: "clipper";
1604 description { state: "default" 0.0;
1605 color: 255 255 255 255;
1608 part { name: "disabler";
1610 description { state: "default" 0.0;
1614 description { state: "disabled" 0.0;
1615 inherit: "default" 0.0;
1621 program { name: "button_click";
1622 signal: "mouse,down,1";
1624 action: SIGNAL_EMIT "elm,action,press" "";
1625 after: "button_click_anim";
1627 program { name: "button_click_anim";
1628 action: STATE_SET "clicked" 0.0;
1629 target: "button_image";
1630 after: "text_clicked";
1632 program { name: "text_clicked";
1636 get_state(PART:"elm.text", st, 30, vl);
1637 if (!strcmp(st, "visible"))
1638 set_state(PART:"elm.text", "clicked", 0.0);
1641 program { name: "button_unpress";
1642 action: SIGNAL_EMIT "elm,action,unpress" "";
1644 program { name: "button_mouseout_clicked";
1645 signal: "mouse,up,1";
1650 get_state(PART:"elm.swallow.content", st, 30, vl);
1651 if (strcmp(st, "icononly"))
1653 emit("elm,action,default,text,set", "");
1654 set_state(PART:"elm.text", "visible", 0.0);
1656 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1657 set_state(PART:"button_image", "default", 0.0);
1659 after: button_unpress;
1661 program { name: "button_unclick3";
1662 signal: "mouse,clicked,1";
1664 action: SIGNAL_EMIT "elm,action,click" "";
1666 program { name: "text_show";
1667 signal: "elm,state,text,visible";
1672 get_state(PART:"elm.swallow.content", st, 30, vl);
1673 if (!strcmp(st, "icononly"))
1675 set_state(PART:"elm.swallow.content", "visible", 0.0);
1676 set_state(PART:"padding_icon_text", "visible", 0.0);
1678 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1679 set_state(PART:"elm.text", "visible", 0.0);
1681 set_state(PART:"elm.text", "disabled_visible", 0.0);
1684 program { name: "text_hide";
1685 signal: "elm,state,text,hidden";
1690 get_state(PART:"elm.swallow.content", st, 30, vl);
1691 if (!strcmp(st, "visible"))
1693 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1694 set_state(PART:"padding_icon_text", "icononly", 0.0);
1696 set_state(PART:"elm.text", "default", 0.0);
1699 program { name: "icon_show";
1700 signal: "elm,state,icon,visible";
1705 get_state(PART:"elm.text", st, 30, vl);
1706 if (!strcmp(st, "visible"))
1708 set_state(PART:"elm.swallow.content", "visible", 0.0);
1709 set_state(PART:"padding_icon_text", "visible", 0.0);
1713 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1714 set_state(PART:"padding_icon_text", "icononly", 0.0);
1718 program { name: "icon_hide";
1719 signal: "elm,state,icon,hidden";
1721 action: STATE_SET "default" 0.0;
1722 target: "elm.swallow.content";
1723 target: "padding_icon_text";
1725 program { name: "disable";
1726 signal: "elm,state,disabled";
1728 action: STATE_SET "disabled" 0.0;
1729 target: "button_image";
1731 after: "disable_text";
1733 program { name: "disable_text";
1737 get_state(PART:"elm.text", st, 30, vl);
1738 if (!strcmp(st, "visible"))
1739 set_state(PART:"elm.text", "disabled_visible", 0.0);
1741 set_state(PART:"elm.text", "disabled", 0.0);
1742 set_int(button_state, BUTTON_STATE_DISABLED);
1745 program { name: "enable";
1746 signal: "elm,state,enabled";
1748 action: STATE_SET "default" 0.0;
1749 target: "button_image";
1751 after: "enable_text";
1753 program { name: "enable_text";
1757 get_state(PART:"elm.text", st, 30, vl);
1758 if (!strcmp(st, "disabled_visible"))
1759 set_state(PART:"elm.text", "visible", 0.0);
1761 set_state(PART:"elm.text", "default", 0.0);
1762 set_int(button_state, BUTTON_STATE_ENABLED);
1765 program { name: "focused";
1766 action: STATE_SET "focused" 0.0;
1767 target: "button_image";
1770 program { name: "unfocused";
1771 action: STATE_SET "default" 0.0;
1772 target: "button_image";
1773 after: "unfocus_text";
1775 program { name: "unfocus_text";
1776 action: STATE_SET "visible" 0.0;
1782 ///////////////////////////////////////////////////////////////////////////////////////
1783 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
1784 group { name: "elm/button/base/"style_name; \
1786 image: "00_btn_circle_bg_normal.png" COMP; \
1787 image: "00_btn_circle_bg_press.png" COMP; \
1788 image: image_normal COMP; \
1789 image: image_press COMP; \
1792 part { name: "button_image"; \
1794 description { state: "default" 0.0; \
1795 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1796 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1798 normal: "00_btn_circle_bg_normal.png"; \
1800 color: 255 255 255 255; \
1803 state: "clicked" 0.0; \
1804 inherit: "default" 0.0; \
1806 normal: "00_btn_circle_bg_press.png"; \
1810 state: "disabled" 0.0; \
1811 inherit: "default" 0.0; \
1812 color: 255 255 255 128; \
1815 part { name: "button_center_part"; \
1817 description { state: "default" 0.0; \
1818 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1819 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1821 normal: image_normal; \
1823 color: 255 255 255 255; \
1826 state: "clicked" 0.0; \
1827 inherit: "default" 0.0; \
1829 normal: image_press; \
1833 state: "disabled" 0.0; \
1834 inherit: "default" 0.0; \
1835 color: 255 255 255 128; \
1838 part { name: "over1"; \
1840 ignore_flags: ON_HOLD; \
1841 description { state: "default" 0.0; \
1843 min: min_width min_height; \
1846 part { name: "over2"; \
1848 description { state: "default" 0.0; \
1852 part { name: "disabler"; \
1854 description { state: "default" 0.0; \
1858 description { state: "disabled" 0.0; \
1859 inherit: "default" 0.0; \
1865 program { name: "button_click"; \
1866 signal: "mouse,down,1"; \
1868 action: SIGNAL_EMIT "elm,action,press" ""; \
1869 after: "button_click_anim"; \
1871 program { name: "button_click_anim"; \
1872 action: STATE_SET "clicked" 0.0; \
1873 target: "button_image"; \
1874 target: "button_center_part"; \
1876 program { name: "button_unclick"; \
1877 signal: "mouse,up,1"; \
1879 action: SIGNAL_EMIT "elm,action,unpress" ""; \
1880 after: "button_unclick_anim"; \
1882 program { name: "button_unclick_anim"; \
1883 action: STATE_SET "default" 0.0; \
1884 target: "button_image"; \
1885 target: "button_center_part"; \
1887 program { name: "button_unclick2"; \
1888 signal: "mouse,clicked,1"; \
1890 action: SIGNAL_EMIT "elm,action,click" ""; \
1892 program { name: "disable"; \
1893 signal: "elm,state,disabled"; \
1895 action: STATE_SET "disabled" 0.0; \
1896 target: "disabler"; \
1897 target: "button_image"; \
1898 target: "button_center_part"; \
1900 program { name: "enable"; \
1901 signal: "elm,state,enabled"; \
1903 action: STATE_SET "default" 0.0; \
1904 target: "disabler"; \
1905 target: "button_image"; \
1906 target: "button_center_part"; \
1911 ///////////////////////////////////////////////////////////////////////////////////////
1912 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal.png", 40, 40)
1914 ///////////////////////////////////////////////////////////////////////////////////////
1915 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
1917 ///////////////////////////////////////////////////////////////////////////////////////
1918 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
1920 ///////////////////////////////////////////////////////////////////////////////////////
1921 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
1923 ///////////////////////////////////////////////////////////////////////////////////////
1924 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
1926 ///////////////////////////////////////////////////////////////////////////////////////
1927 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
1929 ///////////////////////////////////////////////////////////////////////////////////////
1930 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
1932 ///////////////////////////////////////////////////////////////////////////////////////
1933 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
1935 ///////////////////////////////////////////////////////////////////////////////////////
1936 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
1938 ///////////////////////////////////////////////////////////////////////////////////////
1939 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
1941 ///////////////////////////////////////////////////////////////////////////////////////
1942 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
1944 ///////////////////////////////////////////////////////////////////////////////////////
1945 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
1947 ///////////////////////////////////////////////////////////////////////////////////////
1948 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
1950 ///////////////////////////////////////////////////////////////////////////////////////
1951 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
1953 ///////////////////////////////////////////////////////////////////////////////////////
1954 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
1956 ///////////////////////////////////////////////////////////////////////////////////////
1957 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
1959 ///////////////////////////////////////////////////////////////////////////////////////
1960 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
1962 ///////////////////////////////////////////////////////////////////////////////////////
1963 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
1965 ///////////////////////////////////////////////////////////////////////////////////////
1966 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
1968 ///////////////////////////////////////////////////////////////////////////////////////
1969 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
1971 ///////////////////////////////////////////////////////////////////////////////////////
1972 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
1974 ///////////////////////////////////////////////////////////////////////////////////////
1975 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
1977 group { name: "elm/button/base/circle/empty";
1979 image: "00_btn_circle_bg_empty_normal.png" COMP;
1980 image: "00_btn_circle_bg_empty_press.png" COMP;
1983 part { name: "button_image";
1985 description { state: "default" 0.0;
1986 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
1987 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
1990 normal: "00_btn_circle_bg_empty_normal.png";
1992 color: 255 255 255 255;
1994 description { state: "clicked" 0.0;
1995 inherit: "default" 0.0;
1997 normal: "00_btn_circle_bg_empty_press.png";
2000 description { state: "disabled" 0.0;
2001 inherit: "default" 0.0;
2002 color: 255 255 255 128;
2005 part { name: "elm.swallow.content";
2008 description { state: "default" 0.0;
2009 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2010 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2013 color: 255 255 255 255;
2016 state: "disabled" 0.0;
2017 inherit: "default" 0.0;
2018 color: 255 255 255 128;
2021 part { name: "over1";
2023 ignore_flags: ON_HOLD;
2024 description { state: "default" 0.0;
2028 part { name: "over2";
2030 description { state: "default" 0.0;
2034 part { name: "disabler";
2036 description { state: "default" 0.0;
2040 description { state: "disabled" 0.0;
2041 inherit: "default" 0.0;
2047 program { name: "button_click";
2048 signal: "mouse,down,1";
2050 action: SIGNAL_EMIT "elm,action,press" "";
2051 after: "button_click_anim";
2053 program { name: "button_click_anim";
2054 action: STATE_SET "clicked" 0.0;
2055 target: "button_image";
2057 program { name: "button_unclick";
2058 signal: "mouse,up,1";
2060 action: SIGNAL_EMIT "elm,action,unpress" "";
2061 after: "button_unclick_anim";
2063 program { name: "button_unclick_anim";
2064 action: STATE_SET "default" 0.0;
2065 target: "button_image";
2067 program { name: "button_unclick2";
2068 signal: "mouse,clicked,1";
2070 action: SIGNAL_EMIT "elm,action,click" "";
2072 program { name: "disable";
2073 signal: "elm,state,disabled";
2075 action: STATE_SET "disabled" 0.0;
2077 target: "button_image";
2079 program { name: "enable";
2080 signal: "elm,state,enabled";
2082 action: STATE_SET "default" 0.0;
2084 target: "button_image";
2086 program { name: "icon_show";
2087 signal: "elm,state,icon,visible";
2089 action: STATE_SET "visible" 0.0;
2090 target: "elm.swallow.content";
2092 program { name: "icon_hide";
2093 signal: "elm,state,icon,hidden";
2095 action: STATE_SET "default" 0.0;
2096 target: "elm.swallow.content";
2101 ///////////////////////////////////////////////////////////////////////////////////////
2102 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2103 group { name: "elm/button/base/contacts/"style_name; \
2104 alias: "elm/button/base/"style_name; \
2106 image: image_normal COMP; \
2107 image: image_press COMP; \
2108 image: "00_button_edit.png" COMP; \
2109 image: "00_button_edit_press.png" COMP; \
2110 image: "00_button_edit_dim.png" COMP; \
2113 part { name: "button_image"; \
2115 description { state: "default" 0.0; \
2116 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2117 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2119 normal: "00_button_edit.png"; \
2120 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2125 state: "clicked" 0.0; \
2126 inherit: "default" 0.0; \
2128 normal: "00_button_edit_press.png"; \
2132 state: "disabled" 0.0; \
2133 inherit: "default" 0.0; \
2135 normal: "00_button_edit_dim.png"; \
2139 part { name: "button_center_part"; \
2142 description { state: "default" 0.0; \
2143 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2144 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2146 normal: image_normal; \
2147 border: BUTTON_EDIT_STYLE_BORDER_INC; \
2152 state: "clicked" 0.0; \
2153 inherit: "default" 0.0; \
2155 normal: image_press; \
2159 part { name: "over1"; \
2162 ignore_flags: ON_HOLD; \
2163 description { state: "default" 0.0; \
2165 min: min_width min_height; \
2168 part { name: "over2"; \
2170 description { state: "default" 0.0; \
2174 part { name: "disabler"; \
2176 description { state: "default" 0.0; \
2180 description { state: "disabled" 0.0; \
2181 inherit: "default" 0.0; \
2187 program { name: "button_click"; \
2188 signal: "mouse,down,1"; \
2190 action: SIGNAL_EMIT "elm,action,press" ""; \
2191 after: "button_click_anim"; \
2193 program { name: "button_click_anim"; \
2194 action: STATE_SET "clicked" 0.0; \
2195 target: "button_image"; \
2196 target: "button_center_part"; \
2198 program { name: "button_unclick"; \
2199 signal: "mouse,up,1"; \
2201 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2202 after: "button_unclick_anim"; \
2204 program { name: "button_unclick_anim"; \
2205 action: STATE_SET "default" 0.0; \
2206 target: "button_image"; \
2207 target: "button_center_part"; \
2209 program { name: "button_unclick2"; \
2210 signal: "mouse,clicked,1"; \
2212 action: SIGNAL_EMIT "elm,action,click" ""; \
2214 program { name: "disable"; \
2215 signal: "elm,state,disabled"; \
2217 action: STATE_SET "disabled" 0.0; \
2218 target: "disabler"; \
2219 target: "button_image"; \
2221 program { name: "enable"; \
2222 signal: "elm,state,enabled"; \
2224 action: STATE_SET "default" 0.0; \
2225 target: "disabler"; \
2226 target: "button_image"; \
2230 ///////////////////////////////////////////////////////////////////////////////////////
2231 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 46, 46)
2233 ///////////////////////////////////////////////////////////////////////////////////////
2234 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", 60, 75)
2236 ///////////////////////////////////////////////////////////////////////////////////////
2237 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 46, 46)
2239 ///////////////////////////////////////////////////////////////////////////////////////
2240 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", 60, 75)
2242 ///////////////////////////////////////////////////////////////////////////////////////
2243 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 46, 46)
2245 ///////////////////////////////////////////////////////////////////////////////////////
2246 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", 60, 75)
2248 ///////////////////////////////////////////////////////////////////////////////////////
2249 group { name: "elm/button/base/contacts/delete";
2251 image: "00_button_edit.png" COMP;
2252 image: "00_button_edit_press.png" COMP;
2253 image: "00_button_edit_dim.png" COMP;
2256 public button_state = BUTTON_STATE_ENABLED;
2259 part { name: "button_image";
2261 description { state: "default" 0.0;
2262 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
2264 normal: "00_button_edit.png";
2265 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
2269 description { state: "clicked" 0.0;
2270 inherit: "default" 0.0;
2272 normal: "00_button_edit_press.png";
2275 description { state: "disabled" 0.0;
2276 inherit: "default" 0.0;
2278 normal: "00_button_edit_dim.png";
2281 description { state: "focused" 0.0;
2282 inherit: "default" 0.0;
2284 normal: "00_button_edit_press.png";
2288 part { name: "padding_left_top";
2292 description { state: "default" 0.0;
2297 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
2302 part { name: "padding_right_bottom";
2306 description { state: "default" 0.0;
2311 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
2316 part { name: "padding_icon_text";
2320 description { state: "default" 0.0; //when only icon or no icon is there
2324 to: "elm.swallow.content";
2327 to: "elm.swallow.content";
2333 description { state: "icononly" 0.0;
2334 inherit: "default" 0.0;
2336 description { state: "visible" 0.0; //when icon is visible
2337 inherit: "default" 0.0;
2338 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2341 part { name: "elm.swallow.content";
2345 description { state: "default" 0.0;
2350 to: "padding_left_top";
2354 to_x: "padding_left_top";
2355 to_y: "padding_right_bottom";
2359 description { state: "visible" 0.0;
2364 to: "padding_left_top";
2368 to_x: "padding_left_top";
2369 to_y: "padding_right_bottom";
2372 aspect_preference: VERTICAL;
2374 description { state: "icononly" 0.0;
2375 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
2378 to: "padding_left_top";
2382 to: "padding_right_bottom";
2385 aspect_preference: VERTICAL;
2388 part { name: "elm.text";
2393 description { state: "default" 0.0;
2396 to_x: "padding_icon_text";
2397 to_y: "padding_left_top";
2401 to: "padding_right_bottom";
2403 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
2405 font: "SLP:style=Medium";
2406 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
2412 description { state: "visible" 0.0;
2413 inherit: "default" 0.0;
2415 description { state: "clicked" 0.0;
2416 inherit: "default" 0.0;
2417 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2419 description { state: "disabled" 0.0;
2420 inherit: "default" 0.0;
2423 description { state: "disabled_visible" 0.0;
2424 inherit: "default" 0.0;
2425 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
2427 description { state: "focused" 0.0;
2428 inherit: "default" 0.0;
2430 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
2433 part { name: "over2";
2436 ignore_flags: ON_HOLD;
2437 description { state: "default" 0.0;
2441 part { name: "over3";
2444 description { state: "default" 0.0;
2448 part { name: "clipper";
2450 description { state: "default" 0.0;
2451 color: 255 255 255 255;
2454 part { name: "disabler";
2456 description { state: "default" 0.0;
2460 description { state: "disabled" 0.0;
2461 inherit: "default" 0.0;
2467 program { name: "button_click";
2468 signal: "mouse,down,1";
2470 action: SIGNAL_EMIT "elm,action,press" "";
2471 after: "button_click_anim";
2473 program { name: "button_click_anim";
2474 action: STATE_SET "clicked" 0.0;
2475 target: "button_image";
2476 after: "text_clicked";
2478 program { name: "text_clicked";
2482 get_state(PART:"elm.text", st, 30, vl);
2483 if (!strcmp(st, "visible"))
2484 set_state(PART:"elm.text", "clicked", 0.0);
2487 program { name: "button_unpress";
2488 action: SIGNAL_EMIT "elm,action,unpress" "";
2490 program { name: "button_mouseout_clicked";
2491 signal: "mouse,up,1";
2496 get_state(PART:"elm.swallow.content", st, 30, vl);
2497 if (strcmp(st, "icononly"))
2499 emit("elm,action,default,text,set", "");
2500 set_state(PART:"elm.text", "visible", 0.0);
2502 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2503 set_state(PART:"button_image", "default", 0.0);
2505 after: button_unpress;
2507 program { name: "button_unclick3";
2508 signal: "mouse,clicked,1";
2510 action: SIGNAL_EMIT "elm,action,click" "";
2512 program { name: "text_show";
2513 signal: "elm,state,text,visible";
2518 get_state(PART:"elm.swallow.content", st, 30, vl);
2519 if (!strcmp(st, "icononly"))
2521 set_state(PART:"elm.swallow.content", "visible", 0.0);
2522 set_state(PART:"padding_icon_text", "visible", 0.0);
2524 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2525 set_state(PART:"elm.text", "visible", 0.0);
2527 set_state(PART:"elm.text", "disabled_visible", 0.0);
2530 program { name: "text_hide";
2531 signal: "elm,state,text,hidden";
2536 get_state(PART:"elm.swallow.content", st, 30, vl);
2537 if (!strcmp(st, "visible"))
2539 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2540 set_state(PART:"padding_icon_text", "icononly", 0.0);
2542 set_state(PART:"elm.text", "default", 0.0);
2545 program { name: "icon_show";
2546 signal: "elm,state,icon,visible";
2551 get_state(PART:"elm.text", st, 30, vl);
2552 if (!strcmp(st, "visible"))
2554 set_state(PART:"elm.swallow.content", "visible", 0.0);
2555 set_state(PART:"padding_icon_text", "visible", 0.0);
2559 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2560 set_state(PART:"padding_icon_text", "icononly", 0.0);
2564 program { name: "icon_hide";
2565 signal: "elm,state,icon,hidden";
2567 action: STATE_SET "default" 0.0;
2568 target: "elm.swallow.content";
2569 target: "padding_icon_text";
2571 program { name: "disable";
2572 signal: "elm,state,disabled";
2574 action: STATE_SET "disabled" 0.0;
2575 target: "button_image";
2577 after: "disable_text";
2579 program { name: "disable_text";
2583 get_state(PART:"elm.text", st, 30, vl);
2584 if (!strcmp(st, "visible"))
2585 set_state(PART:"elm.text", "disabled_visible", 0.0);
2587 set_state(PART:"elm.text", "disabled", 0.0);
2588 set_int(button_state, BUTTON_STATE_DISABLED);
2591 program { name: "enable";
2592 signal: "elm,state,enabled";
2594 action: STATE_SET "default" 0.0;
2595 target: "button_image";
2597 after: "enable_text";
2599 program { name: "enable_text";
2603 get_state(PART:"elm.text", st, 30, vl);
2604 if (!strcmp(st, "disabled_visible"))
2605 set_state(PART:"elm.text", "visible", 0.0);
2607 set_state(PART:"elm.text", "default", 0.0);
2608 set_int(button_state, BUTTON_STATE_ENABLED);
2611 program { name: "focused";
2612 //signal: "elm,action,focus";
2614 action: STATE_SET "focused" 0.0;
2615 target: "button_image";
2618 program { name: "unfocused";
2619 //signal: "elm,action,unfocus";
2621 action: STATE_SET "default" 0.0;
2622 target: "button_image";
2623 after: "unfocus_text";
2625 program { name: "unfocus_text";
2626 action: STATE_SET "visible" 0.0;
2632 ///////////////////////////////////////////////////////////////////////////////////////
2633 group { name: "elm/button/base/multiline";
2634 alias: "elm/button/base/text_only/multiline";
2636 image: "00_button_04_normal.png" COMP;
2637 image: "00_button_04_press.png" COMP;
2638 image: "00_button_04_dim.png" COMP;
2641 public button_state = BUTTON_STATE_ENABLED;
2644 style { name: "btn_multiline_style";
2645 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed";
2652 part { name: "button_image";
2654 description { state: "default" 0.0;
2657 normal: "00_button_04_normal.png";
2662 description { state: "clicked" 0.0;
2663 inherit: "default" 0.0;
2665 normal: "00_button_04_press.png";
2668 description { state: "disabled" 0.0;
2669 inherit: "default" 0.0;
2671 normal: "00_button_04_dim.png";
2674 description { state: "focused" 0.0;
2675 inherit: "default" 0.0;
2677 normal: "00_button_04_press.png";
2681 part { name: "padding_left_top";
2685 description { state: "default" 0.0;
2695 part { name: "padding_right_bottom";
2699 description { state: "default" 0.0;
2709 part { name: "icon_rect";
2713 description { state: "default" 0.0;
2719 to_x: "elm.swallow.content";
2720 to_y: "padding_left_top";
2724 to_x: "elm.swallow.content";
2725 to_y: "padding_right_bottom";
2731 part { name: "padding_icon_text";
2735 description { state: "default" 0.0; //when only icon or no icon is there
2748 description { state: "icononly" 0.0;
2749 inherit: "default" 0.0;
2751 description { state: "visible" 0.0; //when icon is visible
2765 part { name: "elm.swallow.content";
2769 description { state: "default" 0.0;
2774 to: "padding_left_top";
2778 to_x: "padding_left_top";
2779 to_y: "padding_right_bottom";
2783 description { state: "visible" 0.0;
2788 to: "padding_left_top";
2792 to_x: "padding_left_top";
2793 to_y: "padding_right_bottom";
2796 aspect_preference: VERTICAL;
2798 description { state: "icononly" 0.0;
2802 to: "padding_left_top";
2806 to: "padding_right_bottom";
2809 aspect_preference: VERTICAL;
2812 part { name: "elm.text";
2817 description { state: "default" 0.0;
2821 to_x: "padding_icon_text";
2822 to_y: "padding_left_top";
2826 to: "padding_right_bottom";
2828 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2830 style: "btn_multiline_style";
2835 description { state: "visible" 0.0;
2836 inherit: "default" 0.0;
2840 description { state: "clicked" 0.0;
2841 inherit: "default" 0.0;
2844 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2846 description { state: "disabled" 0.0;
2847 inherit: "default" 0.0;
2850 description { state: "disabled_visible" 0.0;
2851 inherit: "default" 0.0;
2852 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
2856 description { state: "focused" 0.0;
2857 inherit: "default" 0.0;
2860 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2863 part { name: "over2";
2866 ignore_flags: ON_HOLD;
2867 description { state: "default" 0.0;
2871 part { name: "over3";
2874 description { state: "default" 0.0;
2878 part { name: "clipper";
2880 description { state: "default" 0.0;
2881 color: 255 255 255 255;
2884 part { name: "disabler";
2886 description { state: "default" 0.0;
2890 description { state: "disabled" 0.0;
2891 inherit: "default" 0.0;
2897 program { name: "button_click";
2898 signal: "mouse,down,1";
2900 action: SIGNAL_EMIT "elm,action,press" "";
2901 after: "button_click_anim";
2903 program { name: "button_click_anim";
2904 action: STATE_SET "clicked" 0.0;
2905 target: "button_image";
2906 after: "text_clicked";
2908 program { name: "text_clicked";
2912 get_state(PART:"elm.text", st, 30, vl);
2913 if (!strcmp(st, "visible"))
2914 set_state(PART:"elm.text", "clicked", 0.0);
2917 program { name: "button_unpress";
2918 action: SIGNAL_EMIT "elm,action,unpress" "";
2920 program { name: "button_mouseout_clicked";
2921 signal: "mouse,up,1";
2926 get_state(PART:"elm.swallow.content", st, 30, vl);
2927 if (strcmp(st, "icononly"))
2929 emit("elm,action,default,text,set", "");
2930 set_state(PART:"elm.text", "visible", 0.0);
2932 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2933 set_state(PART:"button_image", "default", 0.0);
2935 after: button_unpress;
2937 program { name: "button_unclick3";
2938 signal: "mouse,clicked,1";
2940 action: SIGNAL_EMIT "elm,action,click" "";
2942 program { name: "text_show";
2943 signal: "elm,state,text,visible";
2948 get_state(PART:"elm.swallow.content", st, 30, vl);
2949 if (!strcmp(st, "icononly"))
2951 set_state(PART:"elm.swallow.content", "visible", 0.0);
2952 set_state(PART:"padding_icon_text", "visible", 0.0);
2954 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2955 set_state(PART:"elm.text", "visible", 0.0);
2957 set_state(PART:"elm.text", "disabled_visible", 0.0);
2960 program { name: "text_hide";
2961 signal: "elm,state,text,hidden";
2966 get_state(PART:"elm.swallow.content", st, 30, vl);
2967 if (!strcmp(st, "visible"))
2969 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2970 set_state(PART:"padding_icon_text", "icononly", 0.0);
2972 set_state(PART:"elm.text", "default", 0.0);
2975 program { name: "icon_show";
2976 signal: "elm,state,icon,visible";
2981 get_state(PART:"elm.text", st, 30, vl);
2982 if (!strcmp(st, "visible"))
2984 set_state(PART:"elm.swallow.content", "visible", 0.0);
2985 set_state(PART:"padding_icon_text", "visible", 0.0);
2989 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2990 set_state(PART:"padding_icon_text", "icononly", 0.0);
2994 program { name: "icon_hide";
2995 signal: "elm,state,icon,hidden";
2997 action: STATE_SET "default" 0.0;
2998 target: "elm.swallow.content";
2999 target: "padding_icon_text";
3001 program { name: "disable";
3002 signal: "elm,state,disabled";
3004 action: STATE_SET "disabled" 0.0;
3005 target: "button_image";
3007 after: "disable_text";
3009 program { name: "disable_text";
3013 get_state(PART:"elm.text", st, 30, vl);
3014 if (!strcmp(st, "visible"))
3015 set_state(PART:"elm.text", "disabled_visible", 0.0);
3017 set_state(PART:"elm.text", "disabled", 0.0);
3018 set_int(button_state, BUTTON_STATE_DISABLED);
3021 program { name: "enable";
3022 signal: "elm,state,enabled";
3024 action: STATE_SET "default" 0.0;
3025 target: "button_image";
3027 after: "enable_text";
3029 program { name: "enable_text";
3033 get_state(PART:"elm.text", st, 30, vl);
3034 if (!strcmp(st, "disabled_visible"))
3035 set_state(PART:"elm.text", "visible", 0.0);
3037 set_state(PART:"elm.text", "default", 0.0);
3038 set_int(button_state, BUTTON_STATE_ENABLED);
3041 program { name: "focused";
3042 //signal: "elm,action,focus";
3044 action: STATE_SET "focused" 0.0;
3045 target: "button_image";
3048 program { name: "unfocused";
3049 //signal: "elm,action,unfocus";
3051 action: STATE_SET "default" 0.0;
3052 target: "button_image";
3053 after: "unfocus_text";
3055 program { name: "unfocus_text";
3056 action: STATE_SET "visible" 0.0;
3062 ///////////////////////////////////////////////////////////////////////////////////////
3063 group { name: "elm/button/base/default";
3065 image: "00_button_01_normal.png" COMP;
3066 image: "00_button_01_normal_press.png" COMP;
3067 image: "00_button_01_normal_dim.png" COMP;
3070 public button_state = BUTTON_STATE_ENABLED;
3073 part { name: "button_image";
3075 description { state: "default" 0.0;
3076 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3078 normal: "00_button_01_normal.png";
3079 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3083 description { state: "clicked" 0.0;
3084 inherit: "default" 0.0;
3086 normal: "00_button_01_normal_press.png";
3089 description { state: "disabled" 0.0;
3090 inherit: "default" 0.0;
3092 normal: "00_button_01_normal_dim.png";
3095 description { state: "focused" 0.0;
3096 inherit: "default" 0.0;
3098 normal: "00_button_01_normal_press.png";
3102 part { name: "padding_left_top";
3106 description { state: "default" 0.0;
3111 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3116 part { name: "padding_right_bottom";
3120 description { state: "default" 0.0;
3125 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3130 part { name: "padding_icon_text";
3134 description { state: "default" 0.0; //when only icon or no icon is there
3139 to: "elm.swallow.content";
3142 to: "elm.swallow.content";
3147 description { state: "icononly" 0.0;
3148 inherit: "default" 0.0;
3150 description { state: "visible" 0.0; //when icon is visible
3151 inherit: "default" 0.0;
3152 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3155 part { name: "elm.swallow.content";
3159 description { state: "default" 0.0;
3164 to: "padding_left_top";
3168 to_x: "padding_left_top";
3169 to_y: "padding_right_bottom";
3173 description { state: "visible" 0.0;
3178 to: "padding_left_top";
3182 to_x: "padding_left_top";
3183 to_y: "padding_right_bottom";
3186 aspect_preference: VERTICAL;
3188 description { state: "icononly" 0.0;
3189 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3192 to_x: "padding_left_top";
3196 to_x: "padding_right_bottom";
3199 aspect_preference: VERTICAL;
3202 part { name: "elm.text";
3207 description { state: "default" 0.0;
3212 to_x: "padding_icon_text";
3213 to_y: "padding_left_top";
3217 to: "padding_right_bottom";
3219 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3221 font: "SLP:style=Medium";
3222 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3226 description { state: "visible" 0.0;
3227 inherit: "default" 0.0;
3229 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3231 description { state: "clicked" 0.0;
3232 inherit: "default" 0.0;
3234 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3235 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3237 description { state: "disabled" 0.0;
3238 inherit: "default" 0.0;
3240 description { state: "disabled_visible" 0.0;
3241 inherit: "default" 0.0;
3242 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3244 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3246 description { state: "focused" 0.0;
3247 inherit: "default" 0.0;
3250 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3253 part { name: "over2";
3256 ignore_flags: ON_HOLD;
3257 description { state: "default" 0.0;
3261 part { name: "over3";
3264 description { state: "default" 0.0;
3268 part { name: "clipper";
3270 description { state: "default" 0.0;
3271 color: 255 255 255 255;
3274 part { name: "disabler";
3276 description { state: "default" 0.0;
3280 description { state: "disabled" 0.0;
3281 inherit: "default" 0.0;
3287 program { name: "button_click";
3288 signal: "mouse,down,1";
3290 action: SIGNAL_EMIT "elm,action,press" "";
3291 after: "button_click_anim";
3293 program { name: "button_click_anim";
3294 action: STATE_SET "clicked" 0.0;
3295 target: "button_image";
3296 after: "text_clicked";
3298 program { name: "text_clicked";
3302 get_state(PART:"elm.text", st, 30, vl);
3303 if (!strcmp(st, "visible"))
3304 set_state(PART:"elm.text", "clicked", 0.0);
3307 program { name: "button_unpress";
3308 action: SIGNAL_EMIT "elm,action,unpress" "";
3310 program { name: "button_mouseout_clicked";
3311 signal: "mouse,up,1";
3316 get_state(PART:"elm.swallow.content", st, 30, vl);
3317 if (strcmp(st, "icononly"))
3319 emit("elm,action,default,text,set", "");
3320 set_state(PART:"elm.text", "visible", 0.0);
3322 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3323 set_state(PART:"button_image", "default", 0.0);
3325 after: button_unpress;
3327 program { name: "button_unclick3";
3328 signal: "mouse,clicked,1";
3330 action: SIGNAL_EMIT "elm,action,click" "";
3332 program { name: "text_show";
3333 signal: "elm,state,text,visible";
3338 get_state(PART:"elm.swallow.content", st, 30, vl);
3339 if (!strcmp(st, "icononly"))
3341 set_state(PART:"elm.swallow.content", "visible", 0.0);
3342 set_state(PART:"padding_icon_text", "visible", 0.0);
3344 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3345 set_state(PART:"elm.text", "visible", 0.0);
3347 set_state(PART:"elm.text", "disabled_visible", 0.0);
3350 program { name: "text_hide";
3351 signal: "elm,state,text,hidden";
3356 get_state(PART:"elm.swallow.content", st, 30, vl);
3357 if (!strcmp(st, "visible"))
3359 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3360 set_state(PART:"padding_icon_text", "icononly", 0.0);
3362 set_state(PART:"elm.text", "default", 0.0);
3365 program { name: "icon_show";
3366 signal: "elm,state,icon,visible";
3371 get_state(PART:"elm.text", st, 30, vl);
3372 if (!strcmp(st, "visible"))
3374 set_state(PART:"elm.swallow.content", "visible", 0.0);
3375 set_state(PART:"padding_icon_text", "visible", 0.0);
3379 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3380 set_state(PART:"padding_icon_text", "icononly", 0.0);
3384 program { name: "icon_hide";
3385 signal: "elm,state,icon,hidden";
3387 action: STATE_SET "default" 0.0;
3388 target: "elm.swallow.content";
3389 target: "padding_icon_text";
3391 program { name: "disable";
3392 signal: "elm,state,disabled";
3394 action: STATE_SET "disabled" 0.0;
3395 target: "button_image";
3397 after: "disable_text";
3399 program { name: "disable_text";
3403 get_state(PART:"elm.text", st, 30, vl);
3404 if (!strcmp(st, "visible"))
3405 set_state(PART:"elm.text", "disabled_visible", 0.0);
3407 set_state(PART:"elm.text", "disabled", 0.0);
3408 set_int(button_state, BUTTON_STATE_DISABLED);
3411 program { name: "enable";
3412 signal: "elm,state,enabled";
3414 action: STATE_SET "default" 0.0;
3415 target: "button_image";
3417 after: "enable_text";
3419 program { name: "enable_text";
3423 get_state(PART:"elm.text", st, 30, vl);
3424 if (!strcmp(st, "disabled_visible"))
3425 set_state(PART:"elm.text", "visible", 0.0);
3427 set_state(PART:"elm.text", "default", 0.0);
3428 set_int(button_state, BUTTON_STATE_ENABLED);
3431 program { name: "focused";
3432 //signal: "elm,action,focus";
3434 action: STATE_SET "focused" 0.0;
3435 target: "button_image";
3438 program { name: "unfocused";
3439 //signal: "elm,action,unfocus";
3441 action: STATE_SET "default" 0.0;
3442 target: "button_image";
3443 after: "unfocus_text";
3445 program { name: "unfocus_text";
3446 action: STATE_SET "visible" 0.0;
3452 ///////////////////////////////////////////////////////////////////////////////////////
3453 group { name: "elm/button/base/colorselector/left/default";
3455 image: "00_color_picker_btn_left.png" COMP;
3456 image: "00_color_picker_btn_left_press.png" COMP;
3457 image: "00_color_picker_btn_left_dim.png" COMP;
3460 public button_state = BUTTON_STATE_ENABLED;
3463 part { name: "button_image";
3466 description { state: "default" 0.0;
3469 normal: "00_color_picker_btn_left.png";
3470 border: COLORSELECTOR_BUTTON_BORDER;
3474 description { state: "clicked" 0.0;
3475 inherit: "default" 0.0;
3476 image.normal: "00_color_picker_btn_left_press.png";
3478 description { state: "disabled" 0.0;
3479 inherit: "default" 0.0;
3480 image.normal: "00_color_picker_btn_left_dim.png";
3482 description { state: "focused" 0.0;
3483 inherit: "default" 0.0;
3484 image.normal: "00_color_picker_btn_left_press.png";
3488 name: "padding_left_top";
3492 description { state: "default" 0.0;
3494 rel1.relative: 0.0 0.0;
3495 rel2.relative: 0.0 0.0;
3502 name: "padding_right_bottom";
3506 description { state: "default" 0.0;
3508 rel1.relative: 1.0 1.0;
3509 rel2.relative: 1.0 1.0;
3516 name: "padding_icon_text";
3520 description { state: "default" 0.0; //when only icon or no icon is there
3522 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3523 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3528 description { state: "icononly" 0.0;
3529 inherit: "default" 0.0;
3531 description { state: "visible" 0.0; //when icon is visible
3533 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3534 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3540 part { name: "elm.swallow.content";
3543 description { state: "default" 0.0;
3546 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3547 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3550 description { state: "visible" 0.0;
3554 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3555 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3557 aspect_preference: VERTICAL;
3559 description { state: "icononly" 0.0;
3562 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
3563 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
3566 aspect_preference: VERTICAL;
3569 part { name: "elm.text";
3573 description { state: "default" 0.0;
3575 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3576 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
3578 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3580 font: "SLP:style=Medium";
3586 description { state: "visible" 0.0;
3587 inherit: "default" 0.0;
3591 description { state: "clicked" 0.0;
3592 inherit: "default" 0.0;
3595 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3597 description { state: "disabled" 0.0;
3598 inherit: "default" 0.0;
3599 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3601 description { state: "disabled_visible" 0.0;
3602 inherit: "default" 0.0;
3603 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3607 description { state: "focused" 0.0;
3608 inherit: "default" 0.0;
3611 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
3614 part { name: "over2";
3618 ignore_flags: ON_HOLD;
3619 description { state: "default" 0.0;
3623 part { name: "over3";
3627 description { state: "default" 0.0;
3631 part { name: "disabler";
3633 description { state: "default" 0.0;
3637 description { state: "disabled" 0.0;
3638 inherit: "default" 0.0;
3644 program { name: "button_click";
3645 signal: "mouse,down,1";
3647 action: SIGNAL_EMIT "elm,action,press" "";
3648 after: "button_click_anim";
3650 program { name: "button_click_anim";
3651 action: STATE_SET "clicked" 0.0;
3652 target: "button_image";
3653 after: "text_clicked";
3655 program { name: "text_clicked";
3659 get_state(PART:"elm.text", st, 30, vl);
3660 if (!strcmp(st, "visible"))
3661 set_state(PART:"elm.text", "clicked", 0.0);
3664 program { name: "button_unpress";
3665 action: SIGNAL_EMIT "elm,action,unpress" "";
3667 program { name: "button_mouseout_clicked";
3668 signal: "mouse,up,1";
3673 get_state(PART:"elm.swallow.content", st, 30, vl);
3674 if (strcmp(st, "icononly"))
3676 emit("elm,action,default,text,set", "");
3677 set_state(PART:"elm.text", "visible", 0.0);
3679 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3680 set_state(PART:"button_image", "default", 0.0);
3682 after: button_unpress;
3684 program { name: "button_unclick3";
3685 signal: "mouse,clicked,1";
3687 action: SIGNAL_EMIT "elm,action,click" "";
3689 program { name: "text_show";
3690 signal: "elm,state,text,visible";
3695 get_state(PART:"elm.swallow.content", st, 30, vl);
3696 if (!strcmp(st, "icononly"))
3698 set_state(PART:"elm.swallow.content", "visible", 0.0);
3699 set_state(PART:"padding_icon_text", "visible", 0.0);
3701 if(get_int(button_state) != BUTTON_STATE_DISABLED)
3702 set_state(PART:"elm.text", "visible", 0.0);
3704 set_state(PART:"elm.text", "disabled_visible", 0.0);
3707 program { name: "text_hide";
3708 signal: "elm,state,text,hidden";
3713 get_state(PART:"elm.swallow.content", st, 30, vl);
3714 if (!strcmp(st, "visible"))
3716 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3717 set_state(PART:"padding_icon_text", "icononly", 0.0);
3719 set_state(PART:"elm.text", "default", 0.0);
3722 program { name: "icon_show";
3723 signal: "elm,state,icon,visible";
3728 get_state(PART:"elm.text", st, 30, vl);
3729 if (!strcmp(st, "visible"))
3731 set_state(PART:"elm.swallow.content", "visible", 0.0);
3732 set_state(PART:"padding_icon_text", "visible", 0.0);
3736 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3737 set_state(PART:"padding_icon_text", "icononly", 0.0);
3741 program { name: "icon_hide";
3742 signal: "elm,state,icon,hidden";
3744 action: STATE_SET "default" 0.0;
3745 target: "elm.swallow.content";
3746 target: "padding_icon_text";
3748 program { name: "disable";
3749 signal: "elm,state,disabled";
3751 action: STATE_SET "disabled" 0.0;
3752 target: "button_image";
3754 after: "disable_text";
3756 program { name: "disable_text";
3760 get_state(PART:"elm.text", st, 30, vl);
3761 if (!strcmp(st, "visible"))
3762 set_state(PART:"elm.text", "disabled_visible", 0.0);
3764 set_state(PART:"elm.text", "disabled", 0.0);
3765 set_int(button_state, BUTTON_STATE_DISABLED);
3768 program { name: "enable";
3769 signal: "elm,state,enabled";
3771 action: STATE_SET "default" 0.0;
3772 target: "button_image";
3774 after: "enable_text";
3776 program { name: "enable_text";
3780 get_state(PART:"elm.text", st, 30, vl);
3781 if (!strcmp(st, "disabled_visible"))
3782 set_state(PART:"elm.text", "visible", 0.0);
3784 set_state(PART:"elm.text", "default", 0.0);
3785 set_int(button_state, BUTTON_STATE_ENABLED);
3788 program { name: "focused";
3789 //signal: "elm,action,focus";
3791 action: STATE_SET "focused" 0.0;
3792 target: "button_image";
3795 program { name: "unfocused";
3796 //signal: "elm,action,unfocus";
3798 action: STATE_SET "default" 0.0;
3799 target: "button_image";
3800 after: "unfocus_text";
3802 program { name: "unfocus_text";
3803 action: STATE_SET "visible" 0.0;
3809 ///////////////////////////////////////////////////////////////////////////////////////
3810 group { name: "elm/button/base/colorselector/right/default";
3812 image: "00_color_picker_btn_right.png" COMP;
3813 image: "00_color_picker_btn_right_press.png" COMP;
3814 image: "00_color_picker_btn_right_dim.png" COMP;
3817 public button_state = BUTTON_STATE_ENABLED;
3820 part { name: "button_image";
3823 description { state: "default" 0.0;
3826 normal: "00_color_picker_btn_right.png";
3827 border: COLORSELECTOR_BUTTON_BORDER;
3831 description { state: "clicked" 0.0;
3832 inherit: "default" 0.0;
3833 image.normal: "00_color_picker_btn_right_press.png";
3835 description { state: "disabled" 0.0;
3836 inherit: "default" 0.0;
3837 image.normal: "00_color_picker_btn_right_dim.png";
3839 description { state: "focused" 0.0;
3840 inherit: "default" 0.0;
3841 image.normal: "00_color_picker_btn_right_press.png";
3845 name: "padding_left_top";
3849 description { state: "default" 0.0;
3851 rel1.relative: 0.0 0.0;
3852 rel2.relative: 0.0 0.0;
3859 name: "padding_right_bottom";
3863 description { state: "default" 0.0;
3865 rel1.relative: 1.0 1.0;
3866 rel2.relative: 1.0 1.0;
3873 name: "padding_icon_text";
3877 description { state: "default" 0.0; //when only icon or no icon is there
3879 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3880 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3885 description { state: "icononly" 0.0;
3886 inherit: "default" 0.0;
3888 description { state: "visible" 0.0; //when icon is visible
3890 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
3891 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
3897 part { name: "elm.swallow.content";
3900 description { state: "default" 0.0;
3903 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3904 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3907 description { state: "visible" 0.0;
3911 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
3912 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
3914 aspect_preference: VERTICAL;
3916 description { state: "icononly" 0.0;
3919 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; }
3920 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; }
3923 aspect_preference: VERTICAL;
3926 part { name: "elm.text";
3930 description { state: "default" 0.0;
3932 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
3933 rel2 { relative: 0.0 0.0; to:"padding_right_bottom"; }
3935 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3937 font: "SLP:style=Medium";
3943 description { state: "visible" 0.0;
3944 inherit: "default" 0.0;
3948 description { state: "clicked" 0.0;
3949 inherit: "default" 0.0;
3952 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3954 description { state: "disabled" 0.0;
3955 inherit: "default" 0.0;
3956 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3958 description { state: "disabled_visible" 0.0;
3959 inherit: "default" 0.0;
3960 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3964 description { state: "focused" 0.0;
3965 inherit: "default" 0.0;
3968 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
3971 part { name: "over2";
3975 ignore_flags: ON_HOLD;
3976 description { state: "default" 0.0;
3980 part { name: "over3";
3984 description { state: "default" 0.0;
3988 part { name: "disabler";
3990 description { state: "default" 0.0;
3994 description { state: "disabled" 0.0;
3995 inherit: "default" 0.0;
4001 program { name: "button_click";
4002 signal: "mouse,down,1";
4004 action: SIGNAL_EMIT "elm,action,press" "";
4005 after: "button_click_anim";
4007 program { name: "button_click_anim";
4008 action: STATE_SET "clicked" 0.0;
4009 target: "button_image";
4010 after: "text_clicked";
4012 program { name: "text_clicked";
4016 get_state(PART:"elm.text", st, 30, vl);
4017 if (!strcmp(st, "visible"))
4018 set_state(PART:"elm.text", "clicked", 0.0);
4021 program { name: "button_unpress";
4022 action: SIGNAL_EMIT "elm,action,unpress" "";
4024 program { name: "button_mouseout_clicked";
4025 signal: "mouse,up,1";
4030 get_state(PART:"elm.swallow.content", st, 30, vl);
4031 if (strcmp(st, "icononly"))
4033 emit("elm,action,default,text,set", "");
4034 set_state(PART:"elm.text", "visible", 0.0);
4036 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4037 set_state(PART:"button_image", "default", 0.0);
4039 after: button_unpress;
4041 program { name: "button_unclick3";
4042 signal: "mouse,clicked,1";
4044 action: SIGNAL_EMIT "elm,action,click" "";
4046 program { name: "text_show";
4047 signal: "elm,state,text,visible";
4052 get_state(PART:"elm.swallow.content", st, 30, vl);
4053 if (!strcmp(st, "icononly"))
4055 set_state(PART:"elm.swallow.content", "visible", 0.0);
4056 set_state(PART:"padding_icon_text", "visible", 0.0);
4058 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4059 set_state(PART:"elm.text", "visible", 0.0);
4061 set_state(PART:"elm.text", "disabled_visible", 0.0);
4064 program { name: "text_hide";
4065 signal: "elm,state,text,hidden";
4070 get_state(PART:"elm.swallow.content", st, 30, vl);
4071 if (!strcmp(st, "visible"))
4073 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4074 set_state(PART:"padding_icon_text", "icononly", 0.0);
4076 set_state(PART:"elm.text", "default", 0.0);
4079 program { name: "icon_show";
4080 signal: "elm,state,icon,visible";
4085 get_state(PART:"elm.text", st, 30, vl);
4086 if (!strcmp(st, "visible"))
4088 set_state(PART:"elm.swallow.content", "visible", 0.0);
4089 set_state(PART:"padding_icon_text", "visible", 0.0);
4093 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4094 set_state(PART:"padding_icon_text", "icononly", 0.0);
4098 program { name: "icon_hide";
4099 signal: "elm,state,icon,hidden";
4101 action: STATE_SET "default" 0.0;
4102 target: "elm.swallow.content";
4103 target: "padding_icon_text";
4105 program { name: "disable";
4106 signal: "elm,state,disabled";
4108 action: STATE_SET "disabled" 0.0;
4109 target: "button_image";
4111 after: "disable_text";
4113 program { name: "disable_text";
4117 get_state(PART:"elm.text", st, 30, vl);
4118 if (!strcmp(st, "visible"))
4119 set_state(PART:"elm.text", "disabled_visible", 0.0);
4121 set_state(PART:"elm.text", "disabled", 0.0);
4122 set_int(button_state, BUTTON_STATE_DISABLED);
4125 program { name: "enable";
4126 signal: "elm,state,enabled";
4128 action: STATE_SET "default" 0.0;
4129 target: "button_image";
4131 after: "enable_text";
4133 program { name: "enable_text";
4137 get_state(PART:"elm.text", st, 30, vl);
4138 if (!strcmp(st, "disabled_visible"))
4139 set_state(PART:"elm.text", "visible", 0.0);
4141 set_state(PART:"elm.text", "default", 0.0);
4142 set_int(button_state, BUTTON_STATE_ENABLED);
4145 program { name: "focused";
4146 //signal: "elm,action,focus";
4148 action: STATE_SET "focused" 0.0;
4149 target: "button_image";
4152 program { name: "unfocused";
4153 //signal: "elm,action,unfocus";
4155 action: STATE_SET "default" 0.0;
4156 target: "button_image";
4157 after: "unfocus_text";
4159 program { name: "unfocus_text";
4160 action: STATE_SET "visible" 0.0;
4166 ///////////////////////////////////////////////////////////////////////////////////////
4167 group { name: "elm/button/base/hidden";
4169 image: "00_button_sweep.png" COMP;
4170 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
4173 public button_state = BUTTON_STATE_ENABLED;
4176 part { name: "button_image";
4179 description { state: "default" 0.0;
4180 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
4182 normal: "00_button_sweep.png";
4183 border: BUTTON_HIDDEN_BG_BORDER_INC;
4187 description { state: "clicked" 0.0;
4188 inherit: "default" 0.0;
4189 image.normal: "00_button_sweep_press.png";
4191 description { state: "disabled" 0.0;
4192 inherit: "default" 0.0;
4194 description { state: "focused" 0.0;
4195 inherit: "default" 0.0;
4196 image.normal: "00_button_sweep_press.png";
4200 name: "padding_left_top";
4204 description { state: "default" 0.0;
4206 rel1.relative: 0.0 0.0;
4207 rel2.relative: 0.0 0.0;
4208 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4214 name: "padding_right_bottom";
4218 description { state: "default" 0.0;
4220 rel1.relative: 1.0 1.0;
4221 rel2.relative: 1.0 1.0;
4222 min: BUTTON_HIDDEN_PADDING_MIN_INC;
4232 description { state: "default" 0.0;
4234 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
4236 rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
4237 rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
4243 name: "padding_icon_text";
4247 description { state: "default" 0.0; //when only icon or no icon is there
4249 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4250 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4255 description { state: "icononly" 0.0;
4256 inherit: "default" 0.0;
4258 description { state: "visible" 0.0; //when icon is visible
4260 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
4261 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
4263 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4267 part { name: "elm.swallow.content";
4270 description { state: "default" 0.0;
4273 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4274 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4277 description { state: "visible" 0.0;
4281 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4282 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4284 aspect_preference: VERTICAL;
4286 description { state: "icononly" 0.0;
4288 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
4289 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
4290 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
4293 aspect_preference: VERTICAL;
4296 part { name: "elm.text";
4300 description { state: "default" 0.0;
4302 rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
4303 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
4305 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
4307 font: "SLP:style=Medium";
4308 size: BUTTON_HIDDEN_FONT_SIZE_INC;
4313 description { state: "visible" 0.0;
4314 inherit: "default" 0.0;
4316 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4318 description { state: "clicked" 0.0;
4319 inherit: "default" 0.0;
4322 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
4324 description { state: "disabled" 0.0;
4325 inherit: "default" 0.0;
4328 description { state: "disabled_visible" 0.0;
4329 inherit: "default" 0.0;
4330 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
4332 min: BUTTON_HIDDEN_TEXT_MIN_INC;
4334 description { state: "focused" 0.0;
4335 inherit: "default" 0.0;
4338 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
4341 part { name: "over2";
4345 ignore_flags: ON_HOLD;
4346 description { state: "default" 0.0;
4350 part { name: "over3";
4354 description { state: "default" 0.0;
4358 part { name: "disabler";
4360 description { state: "default" 0.0;
4364 description { state: "disabled" 0.0;
4365 inherit: "default" 0.0;
4371 program { name: "button_click";
4372 signal: "mouse,down,1";
4374 action: SIGNAL_EMIT "elm,action,press" "";
4375 after: "button_click_anim";
4377 program { name: "button_click_anim";
4378 action: STATE_SET "clicked" 0.0;
4379 target: "button_image";
4380 after: "text_clicked";
4382 program { name: "text_clicked";
4386 get_state(PART:"elm.text", st, 30, vl);
4387 if (!strcmp(st, "visible"))
4388 set_state(PART:"elm.text", "clicked", 0.0);
4391 program { name: "button_unpress";
4392 action: SIGNAL_EMIT "elm,action,unpress" "";
4394 program { name: "button_mouseout_clicked";
4395 signal: "mouse,up,1";
4400 get_state(PART:"elm.swallow.content", st, 30, vl);
4401 if (strcmp(st, "icononly"))
4403 emit("elm,action,default,text,set", "");
4404 set_state(PART:"elm.text", "visible", 0.0);
4406 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4407 set_state(PART:"button_image", "default", 0.0);
4409 after: button_unpress;
4411 program { name: "button_unclick3";
4412 signal: "mouse,clicked,1";
4414 action: SIGNAL_EMIT "elm,action,click" "";
4416 program { name: "text_show";
4417 signal: "elm,state,text,visible";
4422 get_state(PART:"elm.swallow.content", st, 30, vl);
4423 if (!strcmp(st, "icononly"))
4425 set_state(PART:"elm.swallow.content", "visible", 0.0);
4426 set_state(PART:"padding_icon_text", "visible", 0.0);
4428 if(get_int(button_state) != BUTTON_STATE_DISABLED)
4429 set_state(PART:"elm.text", "visible", 0.0);
4431 set_state(PART:"elm.text", "disabled_visible", 0.0);
4434 program { name: "text_hide";
4435 signal: "elm,state,text,hidden";
4440 get_state(PART:"elm.swallow.content", st, 30, vl);
4441 if (!strcmp(st, "visible"))
4443 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4444 set_state(PART:"padding_icon_text", "icononly", 0.0);
4446 set_state(PART:"elm.text", "default", 0.0);
4449 program { name: "icon_show";
4450 signal: "elm,state,icon,visible";
4455 get_state(PART:"elm.text", st, 30, vl);
4456 if (!strcmp(st, "visible"))
4458 set_state(PART:"elm.swallow.content", "visible", 0.0);
4459 set_state(PART:"padding_icon_text", "visible", 0.0);
4463 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4464 set_state(PART:"padding_icon_text", "icononly", 0.0);
4468 program { name: "icon_hide";
4469 signal: "elm,state,icon,hidden";
4471 action: STATE_SET "default" 0.0;
4472 target: "elm.swallow.content";
4473 target: "padding_icon_text";
4475 program { name: "disable";
4476 signal: "elm,state,disabled";
4478 action: STATE_SET "disabled" 0.0;
4479 target: "button_image";
4481 after: "disable_text";
4483 program { name: "disable_text";
4487 get_state(PART:"elm.text", st, 30, vl);
4488 if (!strcmp(st, "visible"))
4489 set_state(PART:"elm.text", "disabled_visible", 0.0);
4491 set_state(PART:"elm.text", "disabled", 0.0);
4492 set_int(button_state, BUTTON_STATE_DISABLED);
4495 program { name: "enable";
4496 signal: "elm,state,enabled";
4498 action: STATE_SET "default" 0.0;
4499 target: "button_image";
4501 after: "enable_text";
4503 program { name: "enable_text";
4507 get_state(PART:"elm.text", st, 30, vl);
4508 if (!strcmp(st, "disabled_visible"))
4509 set_state(PART:"elm.text", "visible", 0.0);
4511 set_state(PART:"elm.text", "default", 0.0);
4512 set_int(button_state, BUTTON_STATE_ENABLED);
4515 program { name: "focused";
4516 //signal: "elm,action,focus";
4518 action: STATE_SET "focused" 0.0;
4519 target: "button_image";
4522 program { name: "unfocused";
4523 //signal: "elm,action,unfocus";
4525 action: STATE_SET "default" 0.0;
4526 target: "button_image";
4527 after: "unfocus_text";
4529 program { name: "unfocus_text";
4530 action: STATE_SET "visible" 0.0;
4536 ///////////////////////////////////////////////////////////////////////////////////////
4537 group { name: "elm/button/base/picker/bar/default";
4539 image: "00_picker_btn_normal.png" COMP;
4540 image: "00_picker_btn_press.png" COMP;
4543 public button_state = BUTTON_STATE_ENABLED;
4546 part { name: "button_image";
4548 description { state: "default" 0.0;
4549 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
4551 normal: "00_picker_btn_normal.png";
4552 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
4556 description { state: "clicked" 0.0;
4557 inherit: "default" 0.0;
4559 normal: "00_picker_btn_press.png";
4562 description { state: "disabled" 0.0;
4563 inherit: "default" 0.0;
4565 description { state: "focused" 0.0;
4566 inherit: "default" 0.0;
4568 normal: "00_picker_btn_press.png";
4572 part { name: "padding_left_top";
4576 description { state: "default" 0.0;
4581 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4586 part { name: "padding_right_bottom";
4590 description { state: "default" 0.0;
4595 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
4600 part { name: "icon_rect";
4604 description { state: "default" 0.0;
4605 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
4609 to_x: "elm.swallow.content";
4610 to_y: "padding_left_top";
4614 to_x: "elm.swallow.content";
4615 to_y: "padding_right_bottom";
4621 part { name: "padding_icon_text";
4625 description { state: "default" 0.0; //when only icon or no icon is there
4638 description { state: "icononly" 0.0;
4639 inherit: "default" 0.0;
4641 description { state: "visible" 0.0; //when icon is visible
4651 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
4655 part { name: "elm.swallow.content";
4659 description { state: "default" 0.0;
4664 to: "padding_left_top";
4668 to_x: "padding_left_top";
4669 to_y: "padding_right_bottom";
4673 description { state: "visible" 0.0;
4678 to: "padding_left_top";
4682 to_x: "padding_left_top";
4683 to_y: "padding_right_bottom";
4686 aspect_preference: VERTICAL;
4688 description { state: "icononly" 0.0;
4689 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
4692 to: "padding_left_top";
4696 to_x: "padding_left_top";
4697 to_y: "padding_right_bottom";
4700 aspect_preference: VERTICAL;
4703 part { name: "elm.text";
4708 description { state: "default" 0.0;
4712 to_x: "padding_icon_text";
4713 to_y: "padding_left_top";
4717 to: "padding_right_bottom";
4719 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
4721 font: "SLP:style=Medium";
4722 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
4727 description { state: "visible" 0.0;
4728 inherit: "default" 0.0;
4730 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4732 description { state: "clicked" 0.0;
4733 inherit: "default" 0.0;
4736 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
4738 description { state: "disabled" 0.0;
4739 inherit: "default" 0.0;
4740 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4742 description { state: "disabled_visible" 0.0;
4743 inherit: "default" 0.0;
4744 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
4746 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
4748 description { state: "focused" 0.0;
4749 inherit: "default" 0.0;
4752 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
4755 part { name: "over2";
4758 ignore_flags: ON_HOLD;
4759 description { state: "default" 0.0;
4763 part { name: "over3";
4766 description { state: "default" 0.0;
4770 part { name: "clipper";
4772 description { state: "default" 0.0;
4773 color: 255 255 255 255;
4776 part { name: "disabler";
4778 description { state: "default" 0.0;
4782 description { state: "disabled" 0.0;
4783 inherit: "default" 0.0;
4789 program { name: "button_click";
4790 signal: "mouse,down,1";
4792 action: SIGNAL_EMIT "elm,action,press" "";
4793 after: "button_click_anim";
4795 program { name: "button_click_anim";
4796 action: STATE_SET "clicked" 0.0;
4797 target: "button_image";
4798 after: "text_clicked";
4800 program { name: "text_clicked";
4804 get_state(PART:"elm.text", st, 30, vl);
4805 if (!strcmp(st, "visible"))
4806 set_state(PART:"elm.text", "clicked", 0.0);
4809 program { name: "button_unpress";
4810 action: SIGNAL_EMIT "elm,action,unpress" "";
4812 program { name: "button_mouseout_clicked";
4813 signal: "mouse,up,1";
4818 get_state(PART:"elm.swallow.content", st, 30, vl);
4819 if (strcmp(st, "icononly"))
4821 emit("elm,action,default,text,set", "");
4822 set_state(PART:"elm.text", "visible", 0.0);
4824 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4825 set_state(PART:"button_image", "default", 0.0);
4827 after: button_unpress;
4829 program { name: "button_unclick3";
4830 signal: "mouse,clicked,1";
4832 action: SIGNAL_EMIT "elm,action,click" "";
4834 program { name: "text_show";
4835 signal: "elm,state,text,visible";
4840 get_state(PART:"elm.swallow.content", st, 30, vl);
4841 if (!strcmp(st, "icononly"))
4843 set_state(PART:"elm.swallow.content", "visible", 0.0);
4844 set_state(PART:"padding_icon_text", "visible", 0.0);
4846 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4847 set_state(PART:"elm.text", "visible", 0.0);
4849 set_state(PART:"elm.text", "disabled_visible", 0.0);
4852 program { name: "text_hide";
4853 signal: "elm,state,text,hidden";
4858 get_state(PART:"elm.swallow.content", st, 30, vl);
4859 if (!strcmp(st, "visible"))
4861 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4862 set_state(PART:"padding_icon_text", "icononly", 0.0);
4864 set_state(PART:"elm.text", "default", 0.0);
4867 program { name: "icon_show";
4868 signal: "elm,state,icon,visible";
4873 get_state(PART:"elm.text", st, 30, vl);
4874 if (!strcmp(st, "visible"))
4876 set_state(PART:"elm.swallow.content", "visible", 0.0);
4877 set_state(PART:"padding_icon_text", "visible", 0.0);
4881 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4882 set_state(PART:"padding_icon_text", "icononly", 0.0);
4886 program { name: "icon_hide";
4887 signal: "elm,state,icon,hidden";
4889 action: STATE_SET "default" 0.0;
4890 target: "elm.swallow.content";
4891 target: "padding_icon_text";
4893 program { name: "disable";
4894 signal: "elm,state,disabled";
4896 action: STATE_SET "disabled" 0.0;
4897 target: "button_image";
4899 after: "disable_text";
4901 program { name: "disable_text";
4905 get_state(PART:"elm.text", st, 30, vl);
4906 if (!strcmp(st, "visible"))
4907 set_state(PART:"elm.text", "disabled_visible", 0.0);
4909 set_state(PART:"elm.text", "disabled", 0.0);
4910 set_int(button_state, BUTTON_STATE_DISABLED);
4913 program { name: "enable";
4914 signal: "elm,state,enabled";
4916 action: STATE_SET "default" 0.0;
4917 target: "button_image";
4919 after: "enable_text";
4921 program { name: "enable_text";
4925 get_state(PART:"elm.text", st, 30, vl);
4926 if (!strcmp(st, "disabled_visible"))
4927 set_state(PART:"elm.text", "visible", 0.0);
4929 set_state(PART:"elm.text", "default", 0.0);
4930 set_int(button_state, BUTTON_STATE_ENABLED);
4933 program { name: "focused";
4934 //signal: "elm,action,focus";
4936 action: STATE_SET "focused" 0.0;
4937 target: "button_image";
4940 program { name: "unfocused";
4941 //signal: "elm,action,unfocus";
4943 action: STATE_SET "default" 0.0;
4944 target: "button_image";
4945 after: "unfocus_text";
4947 program { name: "unfocus_text";
4948 action: STATE_SET "visible" 0.0;
4954 ///////////////////////////////////////////////////////////////////////////////////////
4955 group { name: "elm/button/base/picker/prev/text/default";
4956 alias: "elm/button/base/picker/next/text/default";
4958 image: "00_picker_btn_normal.png" COMP;
4959 image: "00_picker_btn_press.png" COMP;
4962 public button_state = BUTTON_STATE_ENABLED;
4965 part { name: "button_image";
4967 description { state: "default" 0.0;
4968 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
4970 normal: "00_picker_btn_normal.png";
4971 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
4975 description { state: "clicked" 0.0;
4976 inherit: "default" 0.0;
4978 normal: "00_picker_btn_press.png";
4981 description { state: "disabled" 0.0;
4982 inherit: "default" 0.0;
4984 description { state: "focused" 0.0;
4985 inherit: "default" 0.0;
4987 normal: "00_picker_btn_press.png";
4991 part { name: "padding_left_top";
4995 description { state: "default" 0.0;
5000 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5005 part { name: "padding_right_bottom";
5009 description { state: "default" 0.0;
5014 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
5019 part { name: "icon_rect";
5023 description { state: "default" 0.0;
5024 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
5028 to_x: "elm.swallow.content";
5029 to_y: "padding_left_top";
5033 to_x: "elm.swallow.content";
5034 to_y: "padding_right_bottom";
5040 part { name: "padding_icon_text";
5044 description { state: "default" 0.0; //when only icon or no icon is there
5057 description { state: "icononly" 0.0;
5058 inherit: "default" 0.0;
5060 description { state: "visible" 0.0; //when icon is visible
5070 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
5074 part { name: "elm.swallow.content";
5078 description { state: "default" 0.0;
5083 to: "padding_left_top";
5087 to_x: "padding_left_top";
5088 to_y: "padding_right_bottom";
5092 description { state: "visible" 0.0;
5097 to: "padding_left_top";
5101 to_x: "padding_left_top";
5102 to_y: "padding_right_bottom";
5105 aspect_preference: VERTICAL;
5107 description { state: "icononly" 0.0;
5108 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
5111 to: "padding_left_top";
5115 to_x: "padding_left_top";
5116 to_y: "padding_right_bottom";
5119 aspect_preference: VERTICAL;
5122 part { name: "elm.text";
5127 description { state: "default" 0.0;
5131 to_x: "padding_icon_text";
5132 to_y: "padding_left_top";
5136 to: "padding_right_bottom";
5138 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
5140 font: "SLP:style=Medium";
5141 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
5146 description { state: "visible" 0.0;
5147 inherit: "default" 0.0;
5149 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5151 description { state: "clicked" 0.0;
5152 inherit: "default" 0.0;
5155 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
5157 description { state: "disabled" 0.0;
5158 inherit: "default" 0.0;
5159 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5161 description { state: "disabled_visible" 0.0;
5162 inherit: "default" 0.0;
5163 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
5165 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
5167 description { state: "focused" 0.0;
5168 inherit: "default" 0.0;
5171 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
5174 part { name: "over2";
5177 ignore_flags: ON_HOLD;
5178 description { state: "default" 0.0;
5182 part { name: "over3";
5185 description { state: "default" 0.0;
5189 part { name: "clipper";
5191 description { state: "default" 0.0;
5192 color: 255 255 255 255;
5195 part { name: "disabler";
5197 description { state: "default" 0.0;
5201 description { state: "disabled" 0.0;
5202 inherit: "default" 0.0;
5208 program { name: "button_click";
5209 signal: "mouse,down,1";
5211 action: SIGNAL_EMIT "elm,action,press" "";
5212 after: "button_click_anim";
5214 program { name: "button_click_anim";
5215 action: STATE_SET "clicked" 0.0;
5216 target: "button_image";
5217 after: "text_clicked";
5219 program { name: "text_clicked";
5223 get_state(PART:"elm.text", st, 30, vl);
5224 if (!strcmp(st, "visible"))
5225 set_state(PART:"elm.text", "clicked", 0.0);
5228 program { name: "button_unpress";
5229 action: SIGNAL_EMIT "elm,action,unpress" "";
5231 program { name: "button_mouseout_clicked";
5232 signal: "mouse,up,1";
5237 get_state(PART:"elm.swallow.content", st, 30, vl);
5238 if (strcmp(st, "icononly"))
5240 emit("elm,action,default,text,set", "");
5241 set_state(PART:"elm.text", "visible", 0.0);
5243 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5244 set_state(PART:"button_image", "default", 0.0);
5246 after: button_unpress;
5248 program { name: "button_unclick3";
5249 signal: "mouse,clicked,1";
5251 action: SIGNAL_EMIT "elm,action,click" "";
5253 program { name: "text_show";
5254 signal: "elm,state,text,visible";
5259 get_state(PART:"elm.swallow.content", st, 30, vl);
5260 if (!strcmp(st, "icononly"))
5262 set_state(PART:"elm.swallow.content", "visible", 0.0);
5263 set_state(PART:"padding_icon_text", "visible", 0.0);
5265 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5266 set_state(PART:"elm.text", "visible", 0.0);
5268 set_state(PART:"elm.text", "disabled_visible", 0.0);
5271 program { name: "text_hide";
5272 signal: "elm,state,text,hidden";
5277 get_state(PART:"elm.swallow.content", st, 30, vl);
5278 if (!strcmp(st, "visible"))
5280 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5281 set_state(PART:"padding_icon_text", "icononly", 0.0);
5283 set_state(PART:"elm.text", "default", 0.0);
5286 program { name: "icon_show";
5287 signal: "elm,state,icon,visible";
5292 get_state(PART:"elm.text", st, 30, vl);
5293 if (!strcmp(st, "visible"))
5295 set_state(PART:"elm.swallow.content", "visible", 0.0);
5296 set_state(PART:"padding_icon_text", "visible", 0.0);
5300 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5301 set_state(PART:"padding_icon_text", "icononly", 0.0);
5305 program { name: "icon_hide";
5306 signal: "elm,state,icon,hidden";
5308 action: STATE_SET "default" 0.0;
5309 target: "elm.swallow.content";
5310 target: "padding_icon_text";
5312 program { name: "disable";
5313 signal: "elm,state,disabled";
5315 action: STATE_SET "disabled" 0.0;
5316 target: "button_image";
5318 after: "disable_text";
5320 program { name: "disable_text";
5324 get_state(PART:"elm.text", st, 30, vl);
5325 if (!strcmp(st, "visible"))
5326 set_state(PART:"elm.text", "disabled_visible", 0.0);
5328 set_state(PART:"elm.text", "disabled", 0.0);
5329 set_int(button_state, BUTTON_STATE_DISABLED);
5332 program { name: "enable";
5333 signal: "elm,state,enabled";
5335 action: STATE_SET "default" 0.0;
5336 target: "button_image";
5338 after: "enable_text";
5340 program { name: "enable_text";
5344 get_state(PART:"elm.text", st, 30, vl);
5345 if (!strcmp(st, "disabled_visible"))
5346 set_state(PART:"elm.text", "visible", 0.0);
5348 set_state(PART:"elm.text", "default", 0.0);
5349 set_int(button_state, BUTTON_STATE_ENABLED);
5352 program { name: "focused";
5353 //signal: "elm,action,focus";
5355 action: STATE_SET "focused" 0.0;
5356 target: "button_image";
5359 program { name: "unfocused";
5360 //signal: "elm,action,unfocus";
5362 action: STATE_SET "default" 0.0;
5363 target: "button_image";
5364 after: "unfocus_text";
5366 program { name: "unfocus_text";
5367 action: STATE_SET "visible" 0.0;
5373 ///////////////////////////////////////////////////////////////////////////////////////
5374 group { name: "elm/button/base/contact";
5375 alias: "elm/button/base/text_only/contact";
5377 public button_state = BUTTON_STATE_ENABLED;
5380 part { name: "button_image";
5384 description { state: "default" 0.0;
5385 rel1 { to_x: "padding.left"; to_y: "elm.text"; }
5386 rel2 { to_x: "padding.right"; to_y: "elm.text"; }
5387 min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
5388 color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
5390 description { state: "clicked" 0.0;
5391 inherit: "default" 0.0;
5392 color: BUTTON_CONTACT_BUTTON_BG_PRESSED_COLOR_INC ;
5394 description { state: "disabled" 0.0;
5395 inherit: "default" 0.0;
5397 description { state: "focused" 0.0;
5398 inherit: "default" 0.0;
5401 part { name: "padding.left";
5404 description { state: "default" 0.0;
5406 min: BUTTON_CONTACT_PADDING_MIN_INC;
5410 rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
5414 part { name: "padding.right";
5417 description { state: "default" 0.0;
5419 min: BUTTON_CONTACT_PADDING_MIN_INC;
5422 rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
5423 rel2.relative: 1.0 1.0;
5427 part { name: "elm.text";
5431 description { state: "default" 0.0;
5435 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
5437 font: "SLP:style=Medium";
5438 size: BUTTON_CONTACT_FONT_SIZE_INC;
5443 description { state: "visible" 0.0;
5444 inherit: "default" 0.0;
5448 description { state: "clicked" 0.0;
5449 inherit: "default" 0.0;
5452 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
5454 description { state: "disabled" 0.0;
5455 inherit: "default" 0.0;
5458 description { state: "disabled_visible" 0.0;
5459 inherit: "default" 0.0;
5460 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
5464 description { state: "focused" 0.0;
5465 inherit: "default" 0.0;
5468 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
5471 part { name: "over1";
5473 description { state: "default" 0.0;
5474 rel2.relative: 1.0 0.5;
5477 part { name: "over2";
5480 ignore_flags: ON_HOLD;
5481 description { state: "default" 0.0;
5482 rel1.to: "button_image";
5483 rel2.to: "button_image";
5486 part { name: "over3";
5489 description { state: "default" 0.0;
5490 rel1.to: "button_image";
5491 rel2.to: "button_image";
5495 part { name: "disabler";
5497 description { state: "default" 0.0;
5498 rel1.to: "button_image";
5499 rel2.to: "button_image";
5503 description { state: "disabled" 0.0;
5504 inherit: "default" 0.0;
5510 program { name: "button_click";
5511 signal: "mouse,down,1";
5513 action: SIGNAL_EMIT "elm,action,press" "";
5514 after: "button_click_anim";
5516 program { name: "button_click_anim";
5517 action: STATE_SET "clicked" 0.0;
5518 target: "button_image";
5521 program { name: "button_unpress";
5522 action: SIGNAL_EMIT "elm,action,unpress" "";
5524 program { name: "button_mouseout_clicked";
5525 signal: "mouse,up,1";
5530 get_state(PART:"elm.text", st, 30, vl);
5531 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5533 emit("elm,action,default,text,set", "");
5534 set_state(PART:"elm.text", "visible", 0.0);
5536 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5537 set_state(PART:"button_image", "default", 0.0);
5539 after: button_unpress;
5541 program { name: "button_unclick3";
5542 signal: "mouse,clicked,1";
5544 action: SIGNAL_EMIT "elm,action,click" "";
5546 program { name: "text_show";
5547 signal: "elm,state,text,visible";
5550 if(get_int(button_state) != BUTTON_STATE_DISABLED)
5551 set_state(PART:"elm.text", "visible", 0.0);
5553 set_state(PART:"elm.text", "disabled_visible", 0.0);
5556 program { name: "text_hide";
5557 signal: "elm,state,text,hidden";
5559 action: STATE_SET "default" 0.0;
5563 program { name: "disable";
5564 signal: "elm,state,disabled";
5566 action: STATE_SET "disabled" 0.0;
5567 target: "button_image";
5569 after: "disable_text";
5571 program { name: "disable_text";
5575 get_state(PART:"elm.text", st, 30, vl);
5576 if (!strcmp(st, "visible"))
5577 set_state(PART:"elm.text", "disabled_visible", 0.0);
5579 set_state(PART:"elm.text", "disabled", 0.0);
5580 set_int(button_state, BUTTON_STATE_DISABLED);
5583 program { name: "enable";
5584 signal: "elm,state,enabled";
5586 action: STATE_SET "default" 0.0;
5587 target: "button_image";
5589 after: "enable_text";
5591 program { name: "enable_text";
5595 get_state(PART:"elm.text", st, 30, vl);
5596 if (!strcmp(st, "disabled_visible"))
5597 set_state(PART:"elm.text", "visible", 0.0);
5599 set_state(PART:"elm.text", "default", 0.0);
5600 set_int(button_state, BUTTON_STATE_ENABLED);
5603 program { name: "focused";
5604 //signal: "elm,action,focus";
5606 action: STATE_SET "focused" 0.0;
5607 target: "button_image";
5610 program { name: "unfocused";
5611 //signal: "elm,action,unfocus";
5613 action: STATE_SET "default" 0.0;
5614 target: "button_image";
5615 action: STATE_SET "visible" 0.0;
5621 ///////////////////////////////////////////////////////////////////////////////////////
5622 group { name: "elm/button/base/naviframe/back_btn/default";
5623 alias: "elm/button/base/naviframe/prev_btn/default";
5624 alias: "elm/button/base/naviframe/end_btn/default";
5626 image: "00_winset_btn_prev.png" COMP;
5627 image: "00_winset_btn_prev_press.png" COMP;
5630 part { name: "button_image";
5634 description { state: "default" 0.0;
5635 min: BUTTON_NAVIFRAME_BACK_BUTTON_IMAGE_MIN_INC;
5639 state: "clicked" 0.0;
5640 inherit: "default" 0.0;
5643 state: "disabled" 0.0;
5644 inherit: "default" 0.0;
5647 part {name: "padding_right";
5650 description { state: "default" 0.0;
5653 rel1 { relative: 1 0.2; }
5654 rel2 { relative: 1 0.8; }
5656 color: BUTTON_NAVIFRAME_TITLE_RIGHT_SEPARATOR_COLOR_INC;
5659 part {name: "padding_before_right";
5662 description { state: "default" 0.0;
5665 rel1 { relative: 0 0; to: "padding_right"; }
5666 rel2 { relative: 0 1; to: "padding_right"; }
5668 color: BUTTON_NAVIFRAME_TITLE_LEFT_SEPARATOR_COLOR_INC;
5671 part { name: "button_center_part";
5674 description { state: "default" 0.0;
5675 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5676 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
5678 rel2 { relative: 0 1; to_x: "padding_before_right"; }
5680 normal: "00_winset_btn_prev.png";
5684 state: "clicked" 0.0;
5685 inherit: "default" 0.0;
5686 image.normal: "00_winset_btn_prev_press.png";
5689 part { name: "over1";
5693 ignore_flags: ON_HOLD;
5694 description { state: "default" 0.0;
5698 part { name: "over2";
5701 description { state: "default" 0.0;
5705 part { name: "disabler";
5707 description { state: "default" 0.0;
5711 description { state: "disabled" 0.0;
5712 inherit: "default" 0.0;
5718 program { name: "button_click";
5719 signal: "mouse,down,1";
5721 action: SIGNAL_EMIT "elm,action,press" "";
5722 after: "button_click_anim";
5724 program { name: "button_click_anim";
5725 action: STATE_SET "clicked" 0.0;
5726 target: "button_image";
5727 target: "button_center_part";
5729 program { name: "button_unclick";
5730 signal: "mouse,up,1";
5732 action: SIGNAL_EMIT "elm,action,unpress" "";
5733 after: "button_unclick_anim";
5735 program { name: "button_unclick_anim";
5736 action: STATE_SET "default" 0.0;
5737 target: "button_image";
5738 target: "button_center_part";
5740 program { name: "button_unclick2";
5741 signal: "mouse,clicked,1";
5743 action: SIGNAL_EMIT "elm,action,click" "";
5745 program { name: "disable";
5746 signal: "elm,state,disabled";
5748 action: STATE_SET "disabled" 0.0;
5750 target: "button_image";
5752 program { name: "enable";
5753 signal: "elm,state,enabled";
5755 action: STATE_SET "default" 0.0;
5757 target: "button_image";
5762 ///////////////////////////////////////////////////////////////////////////////////////
5763 group { name: "elm/button/base/picker/prev/icon/default";
5765 image: "00_picker_btn_normal.png" COMP;
5766 image: "00_picker_btn_press.png" COMP;
5767 image: "00_picker_arrow_left.png" COMP;
5768 image: "00_picker_arrow_left_press.png" COMP;
5771 public button_state = BUTTON_STATE_ENABLED;
5774 part { name: "button_image";
5776 description { state: "default" 0.0;
5777 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5778 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5780 normal: "00_picker_btn_normal.png";
5781 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5785 description { state: "clicked" 0.0;
5786 inherit: "default" 0.0;
5788 normal: "00_picker_btn_press.png";
5791 description { state: "disabled" 0.0;
5792 inherit: "default" 0.0;
5794 description { state: "focused" 0.0;
5795 inherit: "default" 0.0;
5797 normal: "00_picker_btn_press.png";
5801 part { name: "padding_left_top";
5805 description { state: "default" 0.0;
5810 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5815 part { name: "padding_right_bottom";
5819 description { state: "default" 0.0;
5824 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
5829 part { name: "left_arrow";
5832 description { state: "default" 0.0;
5833 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5834 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
5837 to: "padding_left_top";
5841 to: "padding_right_bottom";
5844 normal: "00_picker_arrow_left.png";
5847 description { state: "clicked" 0.0;
5848 inherit: "default" 0.0;
5850 normal: "00_picker_arrow_left_press.png";
5854 part { name: "over2";
5857 ignore_flags: ON_HOLD;
5858 description { state: "default" 0.0;
5862 part { name: "over3";
5865 description { state: "default" 0.0;
5869 part { name: "disabler";
5871 description { state: "default" 0.0;
5875 description { state: "disabled" 0.0;
5876 inherit: "default" 0.0;
5882 program { name: "button_click";
5883 signal: "mouse,down,1";
5885 action: SIGNAL_EMIT "elm,action,press" "";
5886 after: "button_click_anim";
5888 program { name: "button_click_anim";
5889 action: STATE_SET "clicked" 0.0;
5890 target: "button_image";
5892 program { name: "button_unpress";
5893 action: SIGNAL_EMIT "elm,action,unpress" "";
5895 program { name: "button_mouseout_clicked";
5896 signal: "mouse,up,1";
5899 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5900 set_state(PART:"button_image", "default", 0.0);
5902 after: button_unpress;
5904 program { name: "button_unclick3";
5905 signal: "mouse,clicked,1";
5907 action: SIGNAL_EMIT "elm,action,click" "";
5909 program { name: "disable";
5910 signal: "elm,state,disabled";
5912 action: STATE_SET "disabled" 0.0;
5913 target: "button_image";
5915 after: "disable_button";
5917 program { name: "disable_button";
5919 set_int(button_state, BUTTON_STATE_DISABLED);
5922 program { name: "enable";
5923 signal: "elm,state,enabled";
5925 action: STATE_SET "default" 0.0;
5926 target: "button_image";
5928 after: "enable_button";
5930 program { name: "enable_button";
5932 set_int(button_state, BUTTON_STATE_ENABLED);
5935 program { name: "focused";
5936 //signal: "elm,action,focus";
5938 action: STATE_SET "focused" 0.0;
5939 target: "button_image";
5941 program { name: "unfocused";
5942 //signal: "elm,action,unfocus";
5944 action: STATE_SET "default" 0.0;
5945 target: "button_image";
5950 ///////////////////////////////////////////////////////////////////////////////////////
5951 group { name: "elm/button/base/picker/next/icon/default";
5953 image: "00_picker_btn_normal.png" COMP;
5954 image: "00_picker_btn_press.png" COMP;
5955 image: "00_picker_arrow_right.png" COMP;
5956 image: "00_picker_arrow_right_press.png" COMP;
5959 public button_state = BUTTON_STATE_ENABLED;
5962 part { name: "button_image";
5964 description { state: "default" 0.0;
5965 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5966 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
5968 normal: "00_picker_btn_normal.png";
5969 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
5973 description { state: "clicked" 0.0;
5974 inherit: "default" 0.0;
5976 normal: "00_picker_btn_press.png";
5979 description { state: "disabled" 0.0;
5980 inherit: "default" 0.0;
5982 description { state: "focused" 0.0;
5983 inherit: "default" 0.0;
5985 normal: "00_picker_btn_press.png";
5989 part { name: "padding_left_top";
5993 description { state: "default" 0.0;
5998 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6003 part { name: "padding_right_bottom";
6007 description { state: "default" 0.0;
6012 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
6017 part { name: "right_arrow";
6020 description { state: "default" 0.0;
6021 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6022 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
6025 to: "padding_left_top";
6029 to: "padding_right_bottom";
6032 normal: "00_picker_arrow_right.png";
6035 description { state: "clicked" 0.0;
6036 inherit: "default" 0.0;
6038 normal: "00_picker_arrow_right_press.png";
6042 part { name: "over2";
6045 ignore_flags: ON_HOLD;
6046 description { state: "default" 0.0;
6050 part { name: "over3";
6053 description { state: "default" 0.0;
6057 part { name: "disabler";
6059 description { state: "default" 0.0;
6063 description { state: "disabled" 0.0;
6064 inherit: "default" 0.0;
6070 program { name: "button_click";
6071 signal: "mouse,down,1";
6073 action: SIGNAL_EMIT "elm,action,press" "";
6074 after: "button_click_anim";
6076 program { name: "button_click_anim";
6077 action: STATE_SET "clicked" 0.0;
6078 target: "button_image";
6080 program { name: "button_unpress";
6081 action: SIGNAL_EMIT "elm,action,unpress" "";
6083 program { name: "button_mouseout_clicked";
6084 signal: "mouse,up,1";
6087 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6088 set_state(PART:"button_image", "default", 0.0);
6090 after: button_unpress;
6092 program { name: "button_unclick3";
6093 signal: "mouse,clicked,1";
6095 action: SIGNAL_EMIT "elm,action,click" "";
6097 program { name: "disable";
6098 signal: "elm,state,disabled";
6100 action: STATE_SET "disabled" 0.0;
6101 target: "button_image";
6103 after: "disable_button";
6105 program { name: "disable_button";
6107 set_int(button_state, BUTTON_STATE_DISABLED);
6110 program { name: "enable";
6111 signal: "elm,state,enabled";
6113 action: STATE_SET "default" 0.0;
6114 target: "button_image";
6116 after: "enable_button";
6118 program { name: "enable_button";
6120 set_int(button_state, BUTTON_STATE_ENABLED);
6123 program { name: "focused";
6124 //signal: "elm,action,focus";
6126 action: STATE_SET "focused" 0.0;
6127 target: "button_image";
6129 program { name: "unfocused";
6130 //signal: "elm,action,unfocus";
6132 action: STATE_SET "default" 0.0;
6133 target: "button_image";
6138 ///////////////////////////////////////////////////////////////////////////////////////
6139 group { name: "elm/button/base/naviframe_control/default";
6140 alias: "elm/button/base/naviframe_control/center";
6142 public button_state = BUTTON_STATE_ENABLED;
6144 images.image: "00_Option_header_bt.png" COMP;
6145 images.image: "00_Option_header_bt_dim.png" COMP;
6146 images.image: "00_Option_header_bt_press.png" COMP;
6148 part { name: "button_image";
6152 description { state: "default" 0.0;
6153 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6157 image.normal: "00_Option_header_bt.png";
6158 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6159 color: 255 255 255 255;
6161 description { state: "disabled" 0.0;
6162 inherit: "default" 0.0;
6163 image.normal: "00_Option_header_bt_dim.png";
6165 description { state: "clicked" 0.0;
6166 inherit: "default" 0.0;
6167 image.normal: "00_Option_header_bt_press.png";
6171 name: "padding_left_top";
6175 description { state: "default" 0.0;
6177 rel1.relative: 0.0 0.0;
6178 rel2.relative: 0.0 0.0;
6179 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6185 name: "padding_right_bottom";
6189 description { state: "default" 0.0;
6191 rel1.relative: 1.0 1.0;
6192 rel2.relative: 1.0 1.0;
6193 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6203 description { state: "default" 0.0;
6207 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6208 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6212 description { state: "visible" 0.0;
6214 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
6216 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6217 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6221 description { state: "icononly" 0.0;
6222 inherit: "default" 0.0;
6226 name: "padding_after_icon";
6230 description { state: "default" 0.0; //when only icon or no icon is there
6232 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6233 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6238 description { state: "visible" 0.0;
6241 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6242 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6244 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6247 description { state: "icononly" 0.0;
6248 inherit: "default" 0.0;
6252 name: "padding_before_text";
6256 description { state: "default" 0.0; //when only icon or no icon is there
6258 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
6259 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
6261 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
6265 part { name: "elm.swallow.content";
6269 description { state: "default" 0.0;
6272 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6273 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
6276 description { state: "visible" 0.0;
6279 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6280 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6282 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
6283 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
6285 aspect_preference: VERTICAL;
6287 description { state: "icononly" 0.0;
6289 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6290 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6291 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
6292 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6295 aspect_preference: VERTICAL;
6298 part { name: "elm.text";
6303 description { state: "default" 0.0;
6305 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
6306 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
6308 color: 255 255 255 255;
6310 font: "SLP:style=Medium";
6311 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
6317 description { state: "visible" 0.0;
6318 inherit: "default" 0.0;
6321 description { state: "clicked" 0.0;
6322 inherit: "default" 0.0;
6326 description { state: "focused" 0.0;
6327 inherit: "default" 0.0;
6330 color: 255 255 255 255;
6333 part { name: "over2";
6337 ignore_flags: ON_HOLD;
6338 description { state: "default" 0.0;
6342 part { name: "over3";
6346 description { state: "default" 0.0;
6350 part { name: "clipper";
6352 description { state: "default" 0.0;
6353 color: 255 255 255 255;
6355 description { state: "disabled" 0.0;
6356 color: 255 255 255 127;
6359 part { name: "disabler";
6361 description { state: "default" 0.0;
6365 description { state: "disabled" 0.0;
6366 inherit: "default" 0.0;
6372 program { name: "button_click";
6373 signal: "mouse,down,1";
6375 action: SIGNAL_EMIT "elm,action,press" "";
6376 after: "button_click_anim";
6378 program { name: "button_click_anim";
6379 action: STATE_SET "clicked" 0.0;
6380 target: "button_image";
6381 after: "text_clicked";
6383 program { name: "text_clicked";
6387 get_state(PART:"elm.text", st, 30, vl);
6388 if (!strcmp(st, "visible"))
6389 set_state(PART:"elm.text", "clicked", 0.0);
6392 program { name: "button_unpress";
6393 action: SIGNAL_EMIT "elm,action,unpress" "";
6395 program { name: "button_mouseout_clicked";
6396 signal: "mouse,up,1";
6401 get_state(PART:"elm.swallow.content", st, 30, vl);
6402 if (strcmp(st, "icononly"))
6404 emit("elm,action,default,text,set", "");
6405 set_state(PART:"elm.text", "visible", 0.0);
6407 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6408 set_state(PART:"button_image", "default", 0.0);
6410 after: button_unpress;
6412 program { name: "button_unclick3";
6413 signal: "mouse,clicked,1";
6415 action: SIGNAL_EMIT "elm,action,click" "";
6417 program { name: "text_show";
6418 signal: "elm,state,text,visible";
6423 get_state(PART:"elm.swallow.content", st, 30, vl);
6424 if (!strcmp(st, "icononly"))
6426 set_state(PART:"elm.swallow.content", "visible", 0.0);
6427 set_state(PART:"icon_rect", "visible", 0.0);
6428 set_state(PART:"padding_after_icon", "visible", 0.0);
6430 set_state(PART:"elm.text", "visible", 0.0);
6433 program { name: "text_hide";
6434 signal: "elm,state,text,hidden";
6439 get_state(PART:"elm.swallow.content", st, 30, vl);
6440 if (!strcmp(st, "visible"))
6442 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6443 set_state(PART:"icon_rect", "icononly", 0.0);
6444 set_state(PART:"padding_after_icon", "icononly", 0.0);
6446 set_state(PART:"elm.text", "default", 0.0);
6449 program { name: "icon_show";
6450 signal: "elm,state,icon,visible";
6455 get_state(PART:"elm.text", st, 30, vl);
6456 if (!strcmp(st, "visible"))
6458 set_state(PART:"elm.swallow.content", "visible", 0.0);
6459 set_state(PART:"icon_rect", "visible", 0.0);
6460 set_state(PART:"padding_after_icon", "visible", 0.0);
6464 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6465 set_state(PART:"icon_rect", "icononly", 0.0);
6466 set_state(PART:"padding_after_icon", "icononly", 0.0);
6470 program { name: "icon_hide";
6471 signal: "elm,state,icon,hidden";
6473 action: STATE_SET "default" 0.0;
6474 target: "elm.swallow.content";
6475 target: "icon_rect";
6476 target: "padding_after_icon";
6478 program { name: "disable";
6479 signal: "elm,state,disabled";
6481 action: STATE_SET "disabled" 0.0;
6482 target: "button_image";
6485 after: "disable_text";
6487 program { name: "disable_text";
6491 set_int(button_state, BUTTON_STATE_DISABLED);
6492 get_state(PART:"elm.text", st, 30, vl);
6493 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6494 set_state(PART:"elm.text", "visible", 0.0);
6497 program { name: "enable";
6498 signal: "elm,state,enabled";
6500 action: STATE_SET "default" 0.0;
6501 target: "button_image";
6504 after: "enable_text";
6506 program { name: "enable_text";
6510 set_int(button_state, BUTTON_STATE_ENABLED);
6511 get_state(PART:"elm.text", st, 30, vl);
6512 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6513 set_state(PART:"elm.text", "visible", 0.0);
6516 program { name: "focused";
6517 action: STATE_SET "focused" 0.0;
6518 target: "button_image";
6521 program { name: "unfocused";
6522 action: STATE_SET "default" 0.0;
6523 target: "button_image";
6524 after: "unfocus_text";
6526 program { name: "unfocus_text";
6527 action: STATE_SET "visible" 0.0;
6533 ///////////////////////////////////////////////////////////////////////////////////////
6534 group { name: "elm/button/base/naviframe_control/multiline";
6536 public button_state = BUTTON_STATE_ENABLED;
6538 images.image: "00_Option_header_bt.png" COMP;
6539 images.image: "00_Option_header_bt_dim.png" COMP;
6540 images.image: "00_Option_header_bt_press.png" COMP;
6542 style { name: "btn_multiline_naviframe_controlbar_style";
6543 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
6550 part { name: "button_image";
6554 description { state: "default" 0.0;
6555 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
6558 image.normal: "00_Option_header_bt.png";
6559 image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
6560 color: 255 255 255 255;
6562 description { state: "disabled" 0.0;
6563 inherit: "default" 0.0;
6564 image.normal: "00_Option_header_bt_dim.png";
6566 description { state: "clicked" 0.0;
6567 inherit: "default" 0.0;
6568 image.normal: "00_Option_header_bt_press.png";
6572 name: "padding_left_top";
6576 description { state: "default" 0.0;
6584 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6590 name: "padding_right_bottom";
6594 description { state: "default" 0.0;
6596 rel1.relative: 1.0 1.0;
6597 rel2.relative: 1.0 1.0;
6598 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
6608 description { state: "default" 0.0;
6614 to_x: "elm.swallow.content";
6615 to_y: "padding_left_top";
6619 to_x: "elm.swallow.content";
6620 to_y: "padding_right_bottom";
6626 name: "padding_icon_text";
6630 description { state: "default" 0.0; //when only icon or no icon is there
6644 description { state: "visible" 0.0;
6645 inherit: "default" 0.0;
6646 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
6656 description { state: "icononly" 0.0;
6657 inherit: "default" 0.0;
6660 part { name: "elm.swallow.content";
6664 description { state: "default" 0.0;
6669 to: "padding_left_top";
6673 to_x: "padding_left_top";
6674 to_y: "padding_right_bottom";
6678 description { state: "visible" 0.0;
6681 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6682 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
6686 to: "padding_left_top";
6690 to_x: "padding_left_top";
6691 to_y: "padding_right_bottom";
6694 description { state: "icononly" 0.0;
6696 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6697 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
6700 to: "padding_left_top";
6704 to: "padding_right_bottom";
6709 part { name: "elm.text";
6714 description { state: "default" 0.0;
6718 to_x: "padding_icon_text";
6719 to_y: "padding_left_top";
6723 to: "padding_right_bottom";
6726 color: 255 255 255 255;
6728 style: "btn_multiline_naviframe_controlbar_style";
6733 description { state: "visible" 0.0;
6734 inherit: "default" 0.0;
6738 description { state: "clicked" 0.0;
6739 inherit: "default" 0.0;
6743 description { state: "focused" 0.0;
6744 inherit: "default" 0.0;
6747 color: 255 255 255 255;
6750 part { name: "over2";
6754 ignore_flags: ON_HOLD;
6755 description { state: "default" 0.0;
6759 part { name: "over3";
6763 description { state: "default" 0.0;
6767 part { name: "clipper";
6769 description { state: "default" 0.0;
6770 color: 255 255 255 255;
6772 description { state: "disabled" 0.0;
6773 color: 255 255 255 127;
6776 part { name: "disabler";
6778 description { state: "default" 0.0;
6782 description { state: "disabled" 0.0;
6783 inherit: "default" 0.0;
6789 program { name: "button_click";
6790 signal: "mouse,down,1";
6792 action: SIGNAL_EMIT "elm,action,press" "";
6793 after: "button_click_anim";
6795 program { name: "button_click_anim";
6796 action: STATE_SET "clicked" 0.0;
6797 target: "button_image";
6798 after: "text_clicked";
6800 program { name: "text_clicked";
6804 get_state(PART:"elm.text", st, 30, vl);
6805 if (!strcmp(st, "visible"))
6806 set_state(PART:"elm.text", "clicked", 0.0);
6809 program { name: "button_unpress";
6810 action: SIGNAL_EMIT "elm,action,unpress" "";
6812 program { name: "button_mouseout_clicked";
6813 signal: "mouse,up,1";
6818 get_state(PART:"elm.swallow.content", st, 30, vl);
6819 if (strcmp(st, "icononly"))
6821 emit("elm,action,default,text,set", "");
6822 set_state(PART:"elm.text", "visible", 0.0);
6824 if(get_int(button_state) != BUTTON_STATE_DISABLED)
6825 set_state(PART:"button_image", "default", 0.0);
6827 after: button_unpress;
6829 program { name: "button_unclick3";
6830 signal: "mouse,clicked,1";
6832 action: SIGNAL_EMIT "elm,action,click" "";
6834 program { name: "text_show";
6835 signal: "elm,state,text,visible";
6840 get_state(PART:"elm.swallow.content", st, 30, vl);
6841 if (!strcmp(st, "icononly"))
6843 set_state(PART:"elm.swallow.content", "visible", 0.0);
6844 set_state(PART:"padding_icon_text", "visible", 0.0);
6846 set_state(PART:"elm.text", "visible", 0.0);
6849 program { name: "text_hide";
6850 signal: "elm,state,text,hidden";
6855 get_state(PART:"elm.swallow.content", st, 30, vl);
6856 if (!strcmp(st, "visible"))
6858 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6859 set_state(PART:"padding_icon_text", "icononly", 0.0);
6861 set_state(PART:"elm.text", "default", 0.0);
6864 program { name: "icon_show";
6865 signal: "elm,state,icon,visible";
6870 get_state(PART:"elm.text", st, 30, vl);
6871 if (!strcmp(st, "visible"))
6873 set_state(PART:"elm.swallow.content", "visible", 0.0);
6874 set_state(PART:"padding_icon_text", "visible", 0.0);
6878 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6879 set_state(PART:"padding_icon_text", "icononly", 0.0);
6883 program { name: "icon_hide";
6884 signal: "elm,state,icon,hidden";
6886 action: STATE_SET "default" 0.0;
6887 target: "elm.swallow.content";
6888 target: "padding_icon_text";
6890 program { name: "disable";
6891 signal: "elm,state,disabled";
6893 action: STATE_SET "disabled" 0.0;
6894 target: "button_image";
6897 after: "disable_text";
6899 program { name: "disable_text";
6903 set_int(button_state, BUTTON_STATE_DISABLED);
6904 get_state(PART:"elm.text", st, 30, vl);
6905 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6906 set_state(PART:"elm.text", "visible", 0.0);
6909 program { name: "enable";
6910 signal: "elm,state,enabled";
6912 action: STATE_SET "default" 0.0;
6913 target: "button_image";
6916 after: "enable_text";
6918 program { name: "enable_text";
6922 set_int(button_state, BUTTON_STATE_ENABLED);
6923 get_state(PART:"elm.text", st, 30, vl);
6924 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
6925 set_state(PART:"elm.text", "visible", 0.0);
6928 program { name: "focused";
6929 action: STATE_SET "focused" 0.0;
6930 target: "button_image";
6933 program { name: "unfocused";
6934 action: STATE_SET "default" 0.0;
6935 target: "button_image";
6936 after: "unfocus_text";
6938 program { name: "unfocus_text";
6939 action: STATE_SET "visible" 0.0;
6945 ///////////////////////////////////////////////////////////////////////////////////////
6946 /* group { name: "elm/button/base/naviframe/title/default";
6948 image: "00_Title_btn.png" COMP;
6949 image: "00_Title_btn_press.png" COMP;
6952 public button_state = BUTTON_STATE_ENABLED;
6955 part { name: "button_image";
6957 description { state: "default" 0.0;
6958 min: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6959 max: BUTTON_NAVIFRAME_TITLE_BUTTON_MIN_INC;
6961 normal: "00_Title_btn.png";
6962 border: BUTTON_NAVIFRAME_BG_BORDER_INC;
6966 description { state: "clicked" 0.0;
6967 inherit: "default" 0.0;
6969 normal: "00_Title_btn_press.png";
6972 description { state: "disabled" 0.0;
6973 inherit: "default" 0.0;
6975 description { state: "focused" 0.0;
6976 inherit: "default" 0.0;
6978 normal: "00_Title_btn_press.png";
6982 part { name: "padding_left_top";
6986 description { state: "default" 0.0;
6991 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7000 description { state: "default" 0.0;
7001 min: BUTTON_NAVIFRAME_BG_MIN_INC;
7004 description { state: "visible" 0.0;
7005 inherit: "default" 0.0;
7006 min: BUTTON_NAVIFRAME_VISIBLE_BG_MIN_INC;
7008 description { state: "icononly" 0.0;
7009 inherit: "default" 0.0;
7010 min: BUTTON_NAVIFRAME_ICONONLY_BG_MIN_INC;
7013 part { name: "padding_right_bottom";
7017 description { state: "default" 0.0;
7022 min: BUTTON_NAVIFRAME_PADDING_MIN_INC;
7027 part { name: "icon_rect";
7031 description { state: "default" 0.0;
7037 to: "padding_left_top";
7041 to_x: "padding_left_top";
7042 to_y: "padding_right_bottom";
7046 description { state: "visible" 0.0;
7048 min: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7049 max: BUTTON_NAVIFRAME_VISIBLE_ICON_RECT_MIN_MAX_INC;
7053 to: "padding_left_top";
7057 to_x: "padding_left_top";
7058 to_y: "padding_right_bottom";
7062 description { state: "icononly" 0.0;
7063 inherit: "default" 0.0;
7066 part { name: "padding_after_icon";
7070 description { state: "default" 0.0; //when only icon or no icon is there
7083 description { state: "visible" 0.0;
7094 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7096 description { state: "icononly" 0.0;
7097 inherit: "default" 0.0;
7100 part { name: "padding_before_text";
7104 description { state: "default" 0.0; //when only icon or no icon is there
7109 to_y: "padding_left_top";
7114 to_y: "padding_right_bottom";
7117 min: BUTTON_NAVIFRAME_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
7121 part { name: "elm.swallow.content";
7125 description { state: "default" 0.0;
7130 to: "padding_left_top";
7134 to_x: "padding_left_top";
7135 to_y: "padding_right_bottom";
7139 description { state: "visible" 0.0;
7141 min: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7142 max: BUTTON_NAVIFRAME_VISIBLE_ICON_MIN_MAX_INC;
7146 to_x: "padding_before_text";
7147 to_y: "padding_left_top";
7151 to_x: "padding_before_text";
7152 to_y: "padding_right_bottom";
7155 description { state: "icononly" 0.0;
7156 min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7157 max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
7161 part { name: "elm.text";
7166 description { state: "default" 0.0;
7170 to_x: "padding_after_icon";
7171 to_y: "padding_left_top";
7175 to: "padding_right_bottom";
7177 color: BUTTON_TEXT_NAVIFRAME_NORMAL_COLOR_INC;
7179 font: "SLP:style=Medium";
7180 size: BUTTON_TEXT_NAVIFRAME_FONT_SIZE_INC;
7185 description { state: "visible" 0.0;
7186 inherit: "default" 0.0;
7189 description { state: "clicked" 0.0;
7190 inherit: "default" 0.0;
7192 color: BUTTON_TEXT_NAVIFRAME_PRESSED_COLOR_INC;
7194 description { state: "disabled" 0.0;
7195 inherit: "default" 0.0;
7198 description { state: "disabled_visible" 0.0;
7199 inherit: "default" 0.0;
7200 color: BUTTON_TEXT_NAVIFRAME_DISABLED_COLOR_INC;
7203 description { state: "focused" 0.0;
7204 inherit: "default" 0.0;
7206 color: BUTTON_TEXT_NAVIFRAME_FOCUSED_COLOR_INC;
7209 part { name: "over2";
7212 ignore_flags: ON_HOLD;
7213 description { state: "default" 0.0;
7217 part { name: "over3";
7220 description { state: "default" 0.0;
7224 part { name: "clipper";
7226 description { state: "default" 0.0;
7227 color: 255 255 255 255;
7230 part { name: "disabler";
7232 description { state: "default" 0.0;
7236 description { state: "disabled" 0.0;
7237 inherit: "default" 0.0;
7243 program { name: "button_click";
7244 signal: "mouse,down,1";
7246 action: SIGNAL_EMIT "elm,action,press" "";
7247 after: "button_click_anim";
7249 program { name: "button_click_anim";
7250 action: STATE_SET "clicked" 0.0;
7251 target: "button_image";
7252 after: "text_clicked";
7254 program { name: "text_clicked";
7258 get_state(PART:"elm.text", st, 30, vl);
7259 if (!strcmp(st, "visible"))
7260 set_state(PART:"elm.text", "clicked", 0.0);
7263 program { name: "button_unpress";
7264 action: SIGNAL_EMIT "elm,action,unpress" "";
7266 program { name: "button_mouseout_clicked";
7267 signal: "mouse,up,1";
7272 get_state(PART:"elm.swallow.content", st, 30, vl);
7273 if (strcmp(st, "icononly"))
7275 emit("elm,action,default,text,set", "");
7276 set_state(PART:"elm.text", "visible", 0.0);
7278 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7279 set_state(PART:"button_image", "default", 0.0);
7281 after: button_unpress;
7283 program { name: "button_unclick3";
7284 signal: "mouse,clicked,1";
7286 action: SIGNAL_EMIT "elm,action,click" "";
7288 program { name: "text_show";
7289 signal: "elm,state,text,visible";
7294 get_state(PART:"elm.swallow.content", st, 30, vl);
7295 if (!strcmp(st, "icononly"))
7297 set_state(PART:"elm.swallow.content", "visible", 0.0);
7298 set_state(PART:"icon_rect", "visible", 0.0);
7299 set_state(PART:"padding_after_icon", "visible", 0.0);
7300 set_state(PART:"bg", "visible", 0.0);
7302 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7303 set_state(PART:"elm.text", "visible", 0.0);
7305 set_state(PART:"elm.text", "disabled_visible", 0.0);
7308 program { name: "text_hide";
7309 signal: "elm,state,text,hidden";
7314 get_state(PART:"elm.swallow.content", st, 30, vl);
7315 if (!strcmp(st, "visible"))
7317 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7318 set_state(PART:"icon_rect", "icononly", 0.0);
7319 set_state(PART:"padding_after_icon", "icononly", 0.0);
7320 set_state(PART:"bg", "icononly", 0.0);
7322 set_state(PART:"elm.text", "default", 0.0);
7325 program { name: "icon_show";
7326 signal: "elm,state,icon,visible";
7331 get_state(PART:"elm.text", st, 30, vl);
7332 if (!strcmp(st, "visible"))
7334 set_state(PART:"elm.swallow.content", "visible", 0.0);
7335 set_state(PART:"icon_rect", "visible", 0.0);
7336 set_state(PART:"padding_after_icon", "visible", 0.0);
7337 set_state(PART:"bg", "visible", 0.0);
7341 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7342 set_state(PART:"icon_rect", "icononly", 0.0);
7343 set_state(PART:"padding_after_icon", "icononly", 0.0);
7344 set_state(PART:"bg", "icononly", 0.0);
7348 program { name: "icon_hide";
7349 signal: "elm,state,icon,hidden";
7351 action: STATE_SET "default" 0.0;
7352 target: "elm.swallow.content";
7353 target: "padding_after_icon";
7354 target: "icon_rect";
7357 program { name: "disable";
7358 signal: "elm,state,disabled";
7360 action: STATE_SET "disabled" 0.0;
7361 target: "button_image";
7363 after: "disable_text";
7365 program { name: "disable_text";
7369 get_state(PART:"elm.text", st, 30, vl);
7370 if (!strcmp(st, "visible"))
7371 set_state(PART:"elm.text", "disabled_visible", 0.0);
7373 set_state(PART:"elm.text", "disabled", 0.0);
7374 set_int(button_state, BUTTON_STATE_DISABLED);
7377 program { name: "enable";
7378 signal: "elm,state,enabled";
7380 action: STATE_SET "default" 0.0;
7381 target: "button_image";
7383 after: "enable_text";
7385 program { name: "enable_text";
7389 get_state(PART:"elm.text", st, 30, vl);
7390 if (!strcmp(st, "disabled_visible"))
7391 set_state(PART:"elm.text", "visible", 0.0);
7393 set_state(PART:"elm.text", "default", 0.0);
7394 set_int(button_state, BUTTON_STATE_ENABLED);
7397 program { name: "focused";
7398 //signal: "elm,action,focus";
7400 action: STATE_SET "focused" 0.0;
7401 target: "button_image";
7404 program { name: "unfocused";
7405 //signal: "elm,action,unfocus";
7407 action: STATE_SET "default" 0.0;
7408 target: "button_image";
7409 after: "unfocus_text";
7411 program { name: "unfocus_text";
7412 action: STATE_SET "visible" 0.0;
7418 ///////////////////////////////////////////////////////////////////////////////////////
7419 group { name: "elm/button/base/controlbar/vertical";
7421 public button_state = BUTTON_STATE_ENABLED;
7424 style { name: "controlbar_style";
7425 base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1";
7428 tag: "hilight" "+ font=SLP:style=Bold";
7429 tag: "b" "+ font=SLP:style=Bold";
7434 part { name: "button_image";
7438 description { state: "default" 0.0;
7447 name: "padding_left_top";
7451 description { state: "default" 0.0;
7453 rel1.relative: 0.0 0.0;
7454 rel2.relative: 0.0 0.0;
7461 name: "padding_right_bottom";
7465 description { state: "default" 0.0;
7467 rel1.relative: 1.0 1.0;
7468 rel2.relative: 1.0 1.0;
7479 description { state: "default" 0.0;
7483 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7484 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7488 description { state: "visible" 0.0;
7490 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7492 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7493 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7497 description { state: "icononly" 0.0;
7498 inherit: "default" 0.0;
7502 name: "padding_after_icon";
7506 description { state: "default" 0.0; //when only icon or no icon is there
7508 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7509 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7514 description { state: "visible" 0.0;
7517 rel1 { relative: 0.0 1.0; to: "icon_rect"; }
7518 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7523 description { state: "icononly" 0.0;
7524 inherit: "default" 0.0;
7528 name: "padding_before_text";
7532 description { state: "default" 0.0; //when only icon or no icon is there
7534 rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
7535 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
7541 part { name: "elm.swallow.content";
7544 clip_to: "disabler";
7545 description { state: "default" 0.0;
7548 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7549 rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
7552 description { state: "visible" 0.0;
7555 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7556 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7558 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7559 rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
7561 aspect_preference: HORIZONTAL;
7563 description { state: "icononly" 0.0;
7565 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7566 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7567 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7568 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7571 aspect_preference: HORIZONTAL;
7574 part { name: "elm.text";
7578 clip_to: "disabler";
7579 description { state: "default" 0.0;
7581 rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
7582 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7584 color: 255 255 255 255;
7587 style: "controlbar_style";
7592 description { state: "visible" 0.0;
7593 inherit: "default" 0.0;
7596 description { state: "clicked" 0.0;
7597 inherit: "default" 0.0;
7599 color: 255 255 255 255;
7601 description { state: "focused" 0.0;
7602 inherit: "default" 0.0;
7604 color: 255 255 255 255;
7607 part { name: "over2";
7610 ignore_flags: ON_HOLD;
7611 description { state: "default" 0.0;
7614 description { state: "disabled" 0.0;
7615 inherit: "default" 0.0;
7619 part { name: "over3";
7622 description { state: "default" 0.0;
7626 part { name: "disabler";
7628 description { state: "default" 0.0;
7629 color: 255 255 255 255;
7632 description { state: "disabled" 0.0;
7633 inherit: "default" 0.0;
7634 color: 255 255 255 127;
7640 program { name: "button_click";
7641 signal: "mouse,down,1";
7643 action: SIGNAL_EMIT "elm,action,press" "";
7644 after: "button_click_anim";
7646 program { name: "button_click_anim";
7647 action: STATE_SET "clicked" 0.0;
7648 target: "button_image";
7649 after: "text_clicked";
7651 program { name: "text_clicked";
7655 get_state(PART:"elm.text", st, 30, vl);
7656 if (!strcmp(st, "visible"))
7657 set_state(PART:"elm.text", "clicked", 0.0);
7660 program { name: "button_unpress";
7661 action: SIGNAL_EMIT "elm,action,unpress" "";
7663 program { name: "button_mouseout_clicked";
7664 signal: "mouse,up,1";
7669 get_state(PART:"elm.swallow.content", st, 30, vl);
7670 if (strcmp(st, "icononly"))
7672 emit("elm,action,default,text,set", "");
7673 set_state(PART:"elm.text", "visible", 0.0);
7675 if(get_int(button_state) != BUTTON_STATE_DISABLED)
7676 set_state(PART:"button_image", "default", 0.0);
7678 after: button_unpress;
7680 program { name: "button_unclick3";
7681 signal: "mouse,clicked,1";
7683 action: SIGNAL_EMIT "elm,action,click" "";
7685 program { name: "text_show";
7686 signal: "elm,state,text,visible";
7691 get_state(PART:"elm.swallow.content", st, 30, vl);
7692 if (!strcmp(st, "icononly"))
7694 set_state(PART:"elm.swallow.content", "visible", 0.0);
7695 set_state(PART:"icon_rect", "visible", 0.0);
7696 set_state(PART:"padding_after_icon", "visible", 0.0);
7698 set_state(PART:"elm.text", "visible", 0.0);
7701 program { name: "text_hide";
7702 signal: "elm,state,text,hidden";
7707 get_state(PART:"elm.swallow.content", st, 30, vl);
7708 if (!strcmp(st, "visible"))
7710 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7711 set_state(PART:"icon_rect", "icononly", 0.0);
7712 set_state(PART:"padding_after_icon", "icononly", 0.0);
7714 set_state(PART:"elm.text", "default", 0.0);
7717 program { name: "icon_show";
7718 signal: "elm,state,icon,visible";
7723 get_state(PART:"elm.text", st, 30, vl);
7724 if (!strcmp(st, "visible"))
7726 set_state(PART:"elm.swallow.content", "visible", 0.0);
7727 set_state(PART:"icon_rect", "visible", 0.0);
7728 set_state(PART:"padding_after_icon", "visible", 0.0);
7732 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7733 set_state(PART:"icon_rect", "icononly", 0.0);
7734 set_state(PART:"padding_after_icon", "icononly", 0.0);
7738 program { name: "icon_hide";
7739 signal: "elm,state,icon,hidden";
7741 action: STATE_SET "default" 0.0;
7742 target: "elm.swallow.content";
7743 target: "icon_rect";
7744 target: "padding_after_icon";
7746 program { name: "disable";
7747 signal: "elm,state,disabled";
7749 action: STATE_SET "disabled" 0.0;
7752 after: "disable_text";
7754 program { name: "disable_text";
7758 set_int(button_state, BUTTON_STATE_DISABLED);
7759 get_state(PART:"elm.text", st, 30, vl);
7760 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7761 set_state(PART:"elm.text", "visible", 0.0);
7764 program { name: "enable";
7765 signal: "elm,state,enabled";
7767 action: STATE_SET "default" 0.0;
7770 after: "enable_text";
7772 program { name: "enable_text";
7776 set_int(button_state, BUTTON_STATE_ENABLED);
7777 get_state(PART:"elm.text", st, 30, vl);
7778 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
7779 set_state(PART:"elm.text", "visible", 0.0);
7782 program { name: "focused";
7783 action: STATE_SET "focused" 0.0;
7784 target: "button_image";
7787 program { name: "unfocused";
7788 action: STATE_SET "default" 0.0;
7789 target: "button_image";
7790 after: "unfocus_text";
7792 program { name: "unfocus_text";
7793 action: STATE_SET "visible" 0.0;
7799 ///////////////////////////////////////////////////////////////////////////////////////
7800 group { name: "elm/button/base/controlbar/horizontal_center";
7802 public button_state = BUTTON_STATE_ENABLED;
7805 part { name: "button_image";
7809 description { state: "default" 0.0;
7816 description { state: "clicked" 0.0;
7817 inherit: "default" 0.0;
7822 name: "padding_left_top";
7826 description { state: "default" 0.0;
7828 rel1.relative: 0.0 0.0;
7829 rel2.relative: 0.0 0.0;
7836 name: "padding_right_bottom";
7840 description { state: "default" 0.0;
7842 rel1.relative: 1.0 1.0;
7843 rel2.relative: 1.0 1.0;
7854 description { state: "default" 0.0;
7858 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7859 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7863 description { state: "visible" 0.0;
7865 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7867 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7868 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7872 description { state: "icononly" 0.0;
7873 inherit: "default" 0.0;
7874 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7878 name: "padding_after_icon";
7882 description { state: "default" 0.0; //when only icon or no icon is there
7884 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7885 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7890 description { state: "visible" 0.0;
7893 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7894 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7899 description { state: "icononly" 0.0;
7900 inherit: "default" 0.0;
7904 name: "padding_before_text";
7908 description { state: "default" 0.0; //when only icon or no icon is there
7910 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
7911 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
7917 part { name: "elm.swallow.content";
7920 clip_to: "disabler";
7921 description { state: "default" 0.0;
7924 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7925 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
7928 description { state: "visible" 0.0;
7931 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7932 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7934 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
7935 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
7937 aspect_preference: VERTICAL;
7939 description { state: "icononly" 0.0;
7941 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7942 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
7943 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
7944 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7947 aspect_preference: VERTICAL;
7950 part { name: "elm.text";
7954 clip_to: "disabler";
7955 description { state: "default" 0.0;
7957 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
7958 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
7960 color: 255 255 255 255;
7962 font: "SLP:style=Medium";
7963 size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
7969 description { state: "visible" 0.0;
7970 inherit: "default" 0.0;
7973 description { state: "clicked" 0.0;
7974 inherit: "default" 0.0;
7978 description { state: "focused" 0.0;
7979 inherit: "default" 0.0;
7982 color: 255 255 255 255;
7985 part { name: "over2";
7988 ignore_flags: ON_HOLD;
7989 description { state: "default" 0.0;
7992 description { state: "disabled" 0.0;
7993 inherit: "default" 0.0;
7997 part { name: "over3";
8000 description { state: "default" 0.0;
8004 part { name: "disabler";
8006 description { state: "default" 0.0;
8007 color: 255 255 255 255;
8009 description { state: "disabled" 0.0;
8010 color: 255 255 255 127;
8015 program { name: "button_click";
8016 signal: "mouse,down,1";
8018 action: SIGNAL_EMIT "elm,action,press" "";
8019 after: "button_click_anim";
8021 program { name: "button_click_anim";
8022 action: STATE_SET "clicked" 0.0;
8023 target: "button_image";
8024 after: "text_clicked";
8026 program { name: "text_clicked";
8030 get_state(PART:"elm.text", st, 30, vl);
8031 if (!strcmp(st, "visible"))
8032 set_state(PART:"elm.text", "clicked", 0.0);
8035 program { name: "button_unpress";
8036 action: SIGNAL_EMIT "elm,action,unpress" "";
8038 program { name: "button_mouseout_clicked";
8039 signal: "mouse,up,1";
8044 get_state(PART:"elm.swallow.content", st, 30, vl);
8045 if (strcmp(st, "icononly"))
8047 emit("elm,action,default,text,set", "");
8048 set_state(PART:"elm.text", "visible", 0.0);
8050 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8051 set_state(PART:"button_image", "default", 0.0);
8053 after: button_unpress;
8055 program { name: "button_unclick3";
8056 signal: "mouse,clicked,1";
8058 action: SIGNAL_EMIT "elm,action,click" "";
8060 program { name: "text_show";
8061 signal: "elm,state,text,visible";
8066 get_state(PART:"elm.swallow.content", st, 30, vl);
8067 if (!strcmp(st, "icononly"))
8069 set_state(PART:"elm.swallow.content", "visible", 0.0);
8070 set_state(PART:"icon_rect", "visible", 0.0);
8071 set_state(PART:"padding_after_icon", "visible", 0.0);
8073 set_state(PART:"elm.text", "visible", 0.0);
8076 program { name: "text_hide";
8077 signal: "elm,state,text,hidden";
8082 get_state(PART:"elm.swallow.content", st, 30, vl);
8083 if (!strcmp(st, "visible"))
8085 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8086 set_state(PART:"icon_rect", "icononly", 0.0);
8087 set_state(PART:"padding_after_icon", "icononly", 0.0);
8089 set_state(PART:"elm.text", "default", 0.0);
8092 program { name: "icon_show";
8093 signal: "elm,state,icon,visible";
8098 get_state(PART:"elm.text", st, 30, vl);
8099 if (!strcmp(st, "visible"))
8101 set_state(PART:"elm.swallow.content", "visible", 0.0);
8102 set_state(PART:"icon_rect", "visible", 0.0);
8103 set_state(PART:"padding_after_icon", "visible", 0.0);
8107 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8108 set_state(PART:"icon_rect", "icononly", 0.0);
8109 set_state(PART:"padding_after_icon", "icononly", 0.0);
8113 program { name: "icon_hide";
8114 signal: "elm,state,icon,hidden";
8116 action: STATE_SET "default" 0.0;
8117 target: "elm.swallow.content";
8118 target: "icon_rect";
8119 target: "padding_after_icon";
8121 program { name: "disable";
8122 signal: "elm,state,disabled";
8124 action: STATE_SET "disabled" 0.0;
8127 after: "disable_text";
8129 program { name: "disable_text";
8133 set_int(button_state, BUTTON_STATE_DISABLED);
8134 get_state(PART:"elm.text", st, 30, vl);
8135 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8136 set_state(PART:"elm.text", "visible", 0.0);
8139 program { name: "enable";
8140 signal: "elm,state,enabled";
8142 action: STATE_SET "default" 0.0;
8145 after: "enable_text";
8147 program { name: "enable_text";
8151 set_int(button_state, BUTTON_STATE_ENABLED);
8152 get_state(PART:"elm.text", st, 30, vl);
8153 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8154 set_state(PART:"elm.text", "visible", 0.0);
8157 program { name: "focused";
8158 action: STATE_SET "focused" 0.0;
8159 target: "button_image";
8162 program { name: "unfocused";
8163 action: STATE_SET "default" 0.0;
8164 target: "button_image";
8165 after: "unfocus_text";
8167 program { name: "unfocus_text";
8168 action: STATE_SET "visible" 0.0;
8174 ///////////////////////////////////////////////////////////////////////////////////////
8175 group { name: "elm/button/base/controlbar/horizontal_left";
8177 public button_state = BUTTON_STATE_ENABLED;
8180 part { name: "button_image";
8184 description { state: "default" 0.0;
8191 description { state: "clicked" 0.0;
8192 inherit: "default" 0.0;
8197 name: "padding_left_top";
8201 description { state: "default" 0.0;
8203 rel1.relative: 0.0 0.0;
8204 rel2.relative: 0.0 0.0;
8211 name: "padding_right_bottom";
8215 description { state: "default" 0.0;
8217 rel1.relative: 1.0 1.0;
8218 rel2.relative: 1.0 1.0;
8229 description { state: "default" 0.0;
8233 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8234 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8238 description { state: "visible" 0.0;
8240 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8242 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8243 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8247 description { state: "icononly" 0.0;
8248 inherit: "default" 0.0;
8252 name: "padding_after_icon";
8256 description { state: "default" 0.0; //when only icon or no icon is there
8258 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8259 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8264 description { state: "visible" 0.0;
8267 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8268 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8273 description { state: "icononly" 0.0;
8274 inherit: "default" 0.0;
8278 name: "padding_before_text";
8282 description { state: "default" 0.0; //when only icon or no icon is there
8284 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8285 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8291 part { name: "elm.swallow.content";
8294 clip_to: "disabler";
8295 description { state: "default" 0.0;
8298 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8299 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8302 description { state: "visible" 0.0;
8305 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8306 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8308 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8309 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8311 aspect_preference: VERTICAL;
8313 description { state: "icononly" 0.0;
8315 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8316 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8317 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8318 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8321 aspect_preference: VERTICAL;
8324 part { name: "elm.text";
8328 clip_to: "disabler";
8329 description { state: "default" 0.0;
8331 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8332 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8334 color: 255 255 255 255;
8336 font: "SLP:style=Medium";
8343 description { state: "visible" 0.0;
8344 inherit: "default" 0.0;
8347 description { state: "clicked" 0.0;
8348 inherit: "default" 0.0;
8352 description { state: "focused" 0.0;
8353 inherit: "default" 0.0;
8356 color: 255 255 255 255;
8359 part { name: "over2";
8363 ignore_flags: ON_HOLD;
8364 description { state: "default" 0.0;
8368 part { name: "over3";
8372 description { state: "default" 0.0;
8376 part { name: "disabler";
8378 description { state: "default" 0.0;
8379 color: 255 255 255 255;
8381 description { state: "disabled" 0.0;
8382 color: 255 255 255 127;
8387 program { name: "button_click";
8388 signal: "mouse,down,1";
8390 action: SIGNAL_EMIT "elm,action,press" "";
8391 after: "button_click_anim";
8393 program { name: "button_click_anim";
8394 action: STATE_SET "clicked" 0.0;
8395 target: "button_image";
8396 after: "text_clicked";
8398 program { name: "text_clicked";
8402 get_state(PART:"elm.text", st, 30, vl);
8403 if (!strcmp(st, "visible"))
8404 set_state(PART:"elm.text", "clicked", 0.0);
8407 program { name: "button_unpress";
8408 action: SIGNAL_EMIT "elm,action,unpress" "";
8410 program { name: "button_mouseout_clicked";
8411 signal: "mouse,up,1";
8416 get_state(PART:"elm.swallow.content", st, 30, vl);
8417 if (strcmp(st, "icononly"))
8419 emit("elm,action,default,text,set", "");
8420 set_state(PART:"elm.text", "visible", 0.0);
8422 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8423 set_state(PART:"button_image", "default", 0.0);
8425 after: button_unpress;
8427 program { name: "button_unclick3";
8428 signal: "mouse,clicked,1";
8430 action: SIGNAL_EMIT "elm,action,click" "";
8432 program { name: "text_show";
8433 signal: "elm,state,text,visible";
8438 get_state(PART:"elm.swallow.content", st, 30, vl);
8439 if (!strcmp(st, "icononly"))
8441 set_state(PART:"elm.swallow.content", "visible", 0.0);
8442 set_state(PART:"icon_rect", "visible", 0.0);
8443 set_state(PART:"padding_after_icon", "visible", 0.0);
8445 set_state(PART:"elm.text", "visible", 0.0);
8448 program { name: "text_hide";
8449 signal: "elm,state,text,hidden";
8454 get_state(PART:"elm.swallow.content", st, 30, vl);
8455 if (!strcmp(st, "visible"))
8457 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8458 set_state(PART:"icon_rect", "icononly", 0.0);
8459 set_state(PART:"padding_after_icon", "icononly", 0.0);
8461 set_state(PART:"elm.text", "default", 0.0);
8464 program { name: "icon_show";
8465 signal: "elm,state,icon,visible";
8470 get_state(PART:"elm.text", st, 30, vl);
8471 if (!strcmp(st, "visible"))
8473 set_state(PART:"elm.swallow.content", "visible", 0.0);
8474 set_state(PART:"icon_rect", "visible", 0.0);
8475 set_state(PART:"padding_after_icon", "visible", 0.0);
8479 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8480 set_state(PART:"icon_rect", "icononly", 0.0);
8481 set_state(PART:"padding_after_icon", "icononly", 0.0);
8485 program { name: "icon_hide";
8486 signal: "elm,state,icon,hidden";
8488 action: STATE_SET "default" 0.0;
8489 target: "elm.swallow.content";
8490 target: "icon_rect";
8491 target: "padding_after_icon";
8493 program { name: "disable";
8494 signal: "elm,state,disabled";
8496 action: STATE_SET "disabled" 0.0;
8498 after: "disable_text";
8500 program { name: "disable_text";
8504 set_int(button_state, BUTTON_STATE_DISABLED);
8505 get_state(PART:"elm.text", st, 30, vl);
8506 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8507 set_state(PART:"elm.text", "visible", 0.0);
8510 program { name: "enable";
8511 signal: "elm,state,enabled";
8513 action: STATE_SET "default" 0.0;
8515 after: "enable_text";
8517 program { name: "enable_text";
8521 set_int(button_state, BUTTON_STATE_ENABLED);
8522 get_state(PART:"elm.text", st, 30, vl);
8523 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8524 set_state(PART:"elm.text", "visible", 0.0);
8527 program { name: "focused";
8528 action: STATE_SET "focused" 0.0;
8529 target: "button_image";
8532 program { name: "unfocused";
8533 action: STATE_SET "default" 0.0;
8534 target: "button_image";
8535 after: "unfocus_text";
8537 program { name: "unfocus_text";
8538 action: STATE_SET "visible" 0.0;
8544 ///////////////////////////////////////////////////////////////////////////////////////
8545 group { name: "elm/button/base/controlbar/horizontal_right";
8547 public button_state = BUTTON_STATE_ENABLED;
8550 part { name: "button_image";
8554 description { state: "default" 0.0;
8561 description { state: "clicked" 0.0;
8562 inherit: "default" 0.0;
8567 name: "padding_left_top";
8571 description { state: "default" 0.0;
8573 rel1.relative: 0.0 0.0;
8574 rel2.relative: 0.0 0.0;
8581 name: "padding_right_bottom";
8585 description { state: "default" 0.0;
8587 rel1.relative: 1.0 1.0;
8588 rel2.relative: 1.0 1.0;
8599 description { state: "default" 0.0;
8603 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8604 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8608 description { state: "visible" 0.0;
8610 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8612 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8613 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8617 description { state: "icononly" 0.0;
8618 inherit: "default" 0.0;
8622 name: "padding_after_icon";
8626 description { state: "default" 0.0; //when only icon or no icon is there
8628 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8629 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8634 description { state: "visible" 0.0;
8637 rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8638 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8643 description { state: "icononly" 0.0;
8644 inherit: "default" 0.0;
8648 name: "padding_before_text";
8652 description { state: "default" 0.0; //when only icon or no icon is there
8654 rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
8655 rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
8661 part { name: "elm.swallow.content";
8664 clip_to: "disabler";
8665 description { state: "default" 0.0;
8668 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8669 rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
8672 description { state: "visible" 0.0;
8675 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8676 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8678 rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
8679 rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
8681 aspect_preference: VERTICAL;
8683 description { state: "icononly" 0.0;
8685 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8686 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
8687 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
8688 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8691 aspect_preference: VERTICAL;
8694 part { name: "elm.text";
8698 clip_to: "disabler";
8699 description { state: "default" 0.0;
8701 rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
8702 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
8704 color: 255 255 255 255;
8706 font: "SLP:style=Medium";
8713 description { state: "visible" 0.0;
8714 inherit: "default" 0.0;
8717 description { state: "clicked" 0.0;
8718 inherit: "default" 0.0;
8722 description { state: "focused" 0.0;
8723 inherit: "default" 0.0;
8726 color: 255 255 255 255;
8729 part { name: "over2";
8733 ignore_flags: ON_HOLD;
8734 description { state: "default" 0.0;
8738 part { name: "over3";
8742 description { state: "default" 0.0;
8746 part { name: "disabler";
8748 description { state: "default" 0.0;
8749 color: 255 255 255 255;
8751 description { state: "disabled" 0.0;
8752 color: 255 255 255 127;
8757 program { name: "button_click";
8758 signal: "mouse,down,1";
8760 action: SIGNAL_EMIT "elm,action,press" "";
8761 after: "button_click_anim";
8763 program { name: "button_click_anim";
8764 action: STATE_SET "clicked" 0.0;
8765 target: "button_image";
8766 after: "text_clicked";
8768 program { name: "text_clicked";
8772 get_state(PART:"elm.text", st, 30, vl);
8773 if (!strcmp(st, "visible"))
8774 set_state(PART:"elm.text", "clicked", 0.0);
8777 program { name: "button_unpress";
8778 action: SIGNAL_EMIT "elm,action,unpress" "";
8780 program { name: "button_mouseout_clicked";
8781 signal: "mouse,up,1";
8786 get_state(PART:"elm.swallow.content", st, 30, vl);
8787 if (strcmp(st, "icononly"))
8789 emit("elm,action,default,text,set", "");
8790 set_state(PART:"elm.text", "visible", 0.0);
8792 if(get_int(button_state) != BUTTON_STATE_DISABLED)
8793 set_state(PART:"button_image", "default", 0.0);
8795 after: button_unpress;
8797 program { name: "button_unclick3";
8798 signal: "mouse,clicked,1";
8800 action: SIGNAL_EMIT "elm,action,click" "";
8802 program { name: "text_show";
8803 signal: "elm,state,text,visible";
8808 get_state(PART:"elm.swallow.content", st, 30, vl);
8809 if (!strcmp(st, "icononly"))
8811 set_state(PART:"elm.swallow.content", "visible", 0.0);
8812 set_state(PART:"icon_rect", "visible", 0.0);
8813 set_state(PART:"padding_after_icon", "visible", 0.0);
8815 set_state(PART:"elm.text", "visible", 0.0);
8818 program { name: "text_hide";
8819 signal: "elm,state,text,hidden";
8824 get_state(PART:"elm.swallow.content", st, 30, vl);
8825 if (!strcmp(st, "visible"))
8827 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8828 set_state(PART:"icon_rect", "icononly", 0.0);
8829 set_state(PART:"padding_after_icon", "icononly", 0.0);
8831 set_state(PART:"elm.text", "default", 0.0);
8834 program { name: "icon_show";
8835 signal: "elm,state,icon,visible";
8840 get_state(PART:"elm.text", st, 30, vl);
8841 if (!strcmp(st, "visible"))
8843 set_state(PART:"elm.swallow.content", "visible", 0.0);
8844 set_state(PART:"icon_rect", "visible", 0.0);
8845 set_state(PART:"padding_after_icon", "visible", 0.0);
8849 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8850 set_state(PART:"icon_rect", "icononly", 0.0);
8851 set_state(PART:"padding_after_icon", "icononly", 0.0);
8855 program { name: "icon_hide";
8856 signal: "elm,state,icon,hidden";
8858 action: STATE_SET "default" 0.0;
8859 target: "elm.swallow.content";
8860 target: "icon_rect";
8861 target: "padding_after_icon";
8863 program { name: "disable";
8864 signal: "elm,state,disabled";
8866 action: STATE_SET "disabled" 0.0;
8868 after: "disable_text";
8870 program { name: "disable_text";
8874 set_int(button_state, BUTTON_STATE_DISABLED);
8875 get_state(PART:"elm.text", st, 30, vl);
8876 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8877 set_state(PART:"elm.text", "visible", 0.0);
8880 program { name: "enable";
8881 signal: "elm,state,enabled";
8883 action: STATE_SET "default" 0.0;
8885 after: "enable_text";
8887 program { name: "enable_text";
8891 set_int(button_state, BUTTON_STATE_ENABLED);
8892 get_state(PART:"elm.text", st, 30, vl);
8893 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8894 set_state(PART:"elm.text", "visible", 0.0);
8897 program { name: "focused";
8898 action: STATE_SET "focused" 0.0;
8899 target: "button_image";
8902 program { name: "unfocused";
8903 action: STATE_SET "default" 0.0;
8904 target: "button_image";
8905 after: "unfocus_text";
8907 program { name: "unfocus_text";
8908 action: STATE_SET "visible" 0.0;
8914 ///////////////////////////////////////////////////////////////////////////////////////
8915 group { name: "elm/button/base/tickernoti";
8917 image: "00_button_06_normal.png" COMP;
8918 image: "00_button_06_press.png" COMP;
8919 image: "00_button_06_dim.png" COMP;
8922 public button_state = BUTTON_STATE_ENABLED;
8925 part { name: "button_image";
8927 description { state: "default" 0.0;
8929 normal: "00_button_06_normal.png";
8930 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
8934 description { state: "clicked" 0.0;
8935 inherit: "default" 0.0;
8937 normal: "00_button_06_press.png";
8940 description { state: "disabled" 0.0;
8941 inherit: "default" 0.0;
8943 normal: "00_button_06_dim.png";
8946 description { state: "focused" 0.0;
8947 inherit: "default" 0.0;
8949 normal: "00_button_06_press.png";
8953 part { name: "padding_left_top";
8957 description { state: "default" 0.0;
8962 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8971 description { state: "default" 0.0;
8972 min: BUTTON_TICKERNOTI_BG_MIN_INC;
8975 description { state: "visible" 0.0;
8976 inherit: "default" 0.0;
8977 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
8979 description { state: "icononly" 0.0;
8980 inherit: "default" 0.0;
8981 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
8984 part { name: "padding_right_bottom";
8988 description { state: "default" 0.0;
8993 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
8998 part { name: "icon_rect";
9002 description { state: "default" 0.0;
9008 to: "padding_left_top";
9012 to_x: "padding_left_top";
9013 to_y: "padding_right_bottom";
9017 description { state: "visible" 0.0;
9019 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9020 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
9024 to: "padding_left_top";
9028 to_x: "padding_left_top";
9029 to_y: "padding_right_bottom";
9033 description { state: "icononly" 0.0;
9034 inherit: "default" 0.0;
9037 part { name: "padding_after_icon";
9041 description { state: "default" 0.0; //when only icon or no icon is there
9054 description { state: "visible" 0.0;
9065 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9067 description { state: "icononly" 0.0;
9068 inherit: "default" 0.0;
9071 part { name: "padding_before_text";
9075 description { state: "default" 0.0; //when only icon or no icon is there
9080 to_y: "padding_left_top";
9085 to_y: "padding_right_bottom";
9088 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9092 part { name: "elm.swallow.content";
9096 description { state: "default" 0.0;
9101 to: "padding_left_top";
9105 to_x: "padding_left_top";
9106 to_y: "padding_right_bottom";
9110 description { state: "visible" 0.0;
9112 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9113 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
9117 to_x: "padding_before_text";
9118 to_y: "padding_left_top";
9122 to_x: "padding_before_text";
9123 to_y: "padding_right_bottom";
9126 description { state: "icononly" 0.0;
9127 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9128 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
9132 part { name: "elm.text";
9137 description { state: "default" 0.0;
9141 to_x: "padding_after_icon";
9142 to_y: "padding_left_top";
9146 to: "padding_right_bottom";
9148 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
9150 font: "SLP:style=Medium";
9151 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
9156 description { state: "visible" 0.0;
9157 inherit: "default" 0.0;
9160 description { state: "clicked" 0.0;
9161 inherit: "default" 0.0;
9163 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9165 description { state: "disabled" 0.0;
9166 inherit: "default" 0.0;
9169 description { state: "disabled_visible" 0.0;
9170 inherit: "default" 0.0;
9171 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
9174 description { state: "focused" 0.0;
9175 inherit: "default" 0.0;
9177 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
9180 part { name: "over2";
9183 ignore_flags: ON_HOLD;
9184 description { state: "default" 0.0;
9188 part { name: "over3";
9191 description { state: "default" 0.0;
9195 part { name: "clipper";
9197 description { state: "default" 0.0;
9198 color: 255 255 255 255;
9201 part { name: "disabler";
9203 description { state: "default" 0.0;
9207 description { state: "disabled" 0.0;
9208 inherit: "default" 0.0;
9214 program { name: "button_click";
9215 signal: "mouse,down,1";
9217 action: SIGNAL_EMIT "elm,action,press" "";
9218 after: "button_click_anim";
9220 program { name: "button_click_anim";
9221 action: STATE_SET "clicked" 0.0;
9222 target: "button_image";
9223 after: "text_clicked";
9225 program { name: "text_clicked";
9229 get_state(PART:"elm.text", st, 30, vl);
9230 if (!strcmp(st, "visible"))
9231 set_state(PART:"elm.text", "clicked", 0.0);
9234 program { name: "button_unpress";
9235 action: SIGNAL_EMIT "elm,action,unpress" "";
9237 program { name: "button_mouseout_clicked";
9238 signal: "mouse,up,1";
9243 get_state(PART:"elm.swallow.content", st, 30, vl);
9244 if (strcmp(st, "icononly"))
9246 emit("elm,action,default,text,set", "");
9247 set_state(PART:"elm.text", "visible", 0.0);
9249 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9250 set_state(PART:"button_image", "default", 0.0);
9252 after: button_unpress;
9254 program { name: "button_unclick3";
9255 signal: "mouse,clicked,1";
9257 action: SIGNAL_EMIT "elm,action,click" "";
9259 program { name: "text_show";
9260 signal: "elm,state,text,visible";
9265 get_state(PART:"elm.swallow.content", st, 30, vl);
9266 if (!strcmp(st, "icononly"))
9268 set_state(PART:"elm.swallow.content", "visible", 0.0);
9269 set_state(PART:"icon_rect", "visible", 0.0);
9270 set_state(PART:"padding_after_icon", "visible", 0.0);
9271 set_state(PART:"bg", "visible", 0.0);
9273 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9274 set_state(PART:"elm.text", "visible", 0.0);
9276 set_state(PART:"elm.text", "disabled_visible", 0.0);
9279 program { name: "text_hide";
9280 signal: "elm,state,text,hidden";
9285 get_state(PART:"elm.swallow.content", st, 30, vl);
9286 if (!strcmp(st, "visible"))
9288 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9289 set_state(PART:"icon_rect", "icononly", 0.0);
9290 set_state(PART:"padding_after_icon", "icononly", 0.0);
9291 set_state(PART:"bg", "icononly", 0.0);
9293 set_state(PART:"elm.text", "default", 0.0);
9296 program { name: "icon_show";
9297 signal: "elm,state,icon,visible";
9302 get_state(PART:"elm.text", st, 30, vl);
9303 if (!strcmp(st, "visible"))
9305 set_state(PART:"elm.swallow.content", "visible", 0.0);
9306 set_state(PART:"icon_rect", "visible", 0.0);
9307 set_state(PART:"padding_after_icon", "visible", 0.0);
9308 set_state(PART:"bg", "visible", 0.0);
9312 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9313 set_state(PART:"icon_rect", "icononly", 0.0);
9314 set_state(PART:"padding_after_icon", "icononly", 0.0);
9315 set_state(PART:"bg", "icononly", 0.0);
9319 program { name: "icon_hide";
9320 signal: "elm,state,icon,hidden";
9322 action: STATE_SET "default" 0.0;
9323 target: "elm.swallow.content";
9324 target: "padding_after_icon";
9325 target: "icon_rect";
9328 program { name: "disable";
9329 signal: "elm,state,disabled";
9331 action: STATE_SET "disabled" 0.0;
9332 target: "button_image";
9334 after: "disable_text";
9336 program { name: "disable_text";
9340 get_state(PART:"elm.text", st, 30, vl);
9341 if (!strcmp(st, "visible"))
9342 set_state(PART:"elm.text", "disabled_visible", 0.0);
9344 set_state(PART:"elm.text", "disabled", 0.0);
9345 set_int(button_state, BUTTON_STATE_DISABLED);
9348 program { name: "enable";
9349 signal: "elm,state,enabled";
9351 action: STATE_SET "default" 0.0;
9352 target: "button_image";
9354 after: "enable_text";
9356 program { name: "enable_text";
9360 get_state(PART:"elm.text", st, 30, vl);
9361 if (!strcmp(st, "disabled_visible"))
9362 set_state(PART:"elm.text", "visible", 0.0);
9364 set_state(PART:"elm.text", "default", 0.0);
9365 set_int(button_state, BUTTON_STATE_ENABLED);
9368 program { name: "focused";
9369 //signal: "elm,action,focus";
9371 action: STATE_SET "focused" 0.0;
9372 target: "button_image";
9375 program { name: "unfocused";
9376 //signal: "elm,action,unfocus";
9378 action: STATE_SET "default" 0.0;
9379 target: "button_image";
9380 after: "unfocus_text";
9382 program { name: "unfocus_text";
9383 action: STATE_SET "visible" 0.0;
9389 ///////////////////////////////////////////////////////////////////////////////////////
9390 group { name: "elm/button/base/expandable_number";
9391 alias: "elm/button/base/text_only/expandable_number";
9393 image: "00_button_05_normal.png" COMP;
9394 image: "00_button_05_press.png" COMP;
9395 image: "00_button_05_dim.png" COMP;
9396 image: "00_arrow_expand.png" COMP;
9397 image: "00_arrow_expand_press.png" COMP;
9398 image: "00_arrow_expand_dim.png" COMP;
9401 public button_state = BUTTON_STATE_ENABLED;
9404 part { name: "button_image";
9407 description { state: "default" 0.0;
9408 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9409 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
9411 normal: "00_button_05_normal.png";
9412 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
9416 description { state: "clicked" 0.0;
9417 inherit: "default" 0.0;
9418 image.normal: "00_button_05_press.png";
9420 description { state: "disabled" 0.0;
9421 inherit: "default" 0.0;
9422 image.normal: "00_button_05_dim.png";
9424 description { state: "focused" 0.0;
9425 inherit: "default" 0.0;
9426 image.normal: "00_button_05_press.png";
9430 name: "padding_left_top";
9434 description { state: "default" 0.0;
9436 rel1.relative: 0.0 0.0;
9437 rel2.relative: 0.0 0.0;
9438 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9444 name: "padding_right_bottom";
9448 description { state: "default" 0.0;
9450 rel1.relative: 1.0 1.0;
9451 rel2.relative: 1.0 1.0;
9452 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
9462 description { state: "default" 0.0;
9464 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9465 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9467 rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
9468 rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
9474 name: "arrow_expand";
9477 description { state: "default" 0.0;
9479 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9480 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
9482 rel1 { relative: 0.0 0.0; to: "icon_rect"; }
9483 rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9484 image.normal:"00_arrow_expand.png";
9486 description { state: "clicked" 0.0;
9487 inherit: "default" 0.0;
9488 image.normal:"00_arrow_expand_press.png";
9490 description { state: "disabled" 0.0;
9491 inherit: "default" 0.0;
9492 image.normal:"00_arrow_expand_dim.png";
9495 part { name: "elm.text";
9499 description { state: "default" 0.0;
9501 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9502 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
9504 rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
9505 rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
9507 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
9509 font: "SLP:style=Medium";
9510 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
9517 description { state: "visible" 0.0;
9518 inherit: "default" 0.0;
9521 description { state: "clicked" 0.0;
9522 inherit: "default" 0.0;
9524 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
9526 description { state: "disabled" 0.0;
9527 inherit: "default" 0.0;
9530 description { state: "disabled_visible" 0.0;
9531 inherit: "default" 0.0;
9532 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
9535 description { state: "focused" 0.0;
9536 inherit: "default" 0.0;
9538 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
9541 part { name: "over2";
9545 ignore_flags: ON_HOLD;
9546 description { state: "default" 0.0;
9550 part { name: "over3";
9554 description { state: "default" 0.0;
9558 part { name: "disabler";
9560 description { state: "default" 0.0;
9564 description { state: "disabled" 0.0;
9565 inherit: "default" 0.0;
9571 program { name: "button_click";
9572 signal: "mouse,down,1";
9574 action: SIGNAL_EMIT "elm,action,press" "";
9575 after: "button_click_anim";
9577 program { name: "button_click_anim";
9578 action: STATE_SET "clicked" 0.0;
9579 target: "button_image";
9580 target: "arrow_expand";
9581 after: "text_clicked";
9583 program { name: "text_clicked";
9587 get_state(PART:"elm.text", st, 30, vl);
9588 if (!strcmp(st, "visible"))
9589 set_state(PART:"elm.text", "clicked", 0.0);
9592 program { name: "button_unpress";
9593 action: SIGNAL_EMIT "elm,action,unpress" "";
9595 program { name: "button_mouseout_clicked";
9596 signal: "mouse,up,1";
9599 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9601 set_state(PART:"button_image", "default", 0.0);
9602 set_state(PART:"elm.text", "visible", 0.0);
9603 set_state(PART:"arrow_expand", "default", 0.0);
9606 after: button_unpress;
9608 program { name: "button_unclick3";
9609 signal: "mouse,clicked,1";
9611 action: SIGNAL_EMIT "elm,action,click" "";
9613 program { name: "text_show";
9614 signal: "elm,state,text,visible";
9617 if(get_int(button_state) != BUTTON_STATE_DISABLED)
9618 set_state(PART:"elm.text", "visible", 0.0);
9620 set_state(PART:"elm.text", "disabled_visible", 0.0);
9623 program { name: "text_hide";
9624 signal: "elm,state,text,hidden";
9627 set_state(PART:"elm.text", "default", 0.0);
9630 program { name: "disable";
9631 signal: "elm,state,disabled";
9633 action: STATE_SET "disabled" 0.0;
9634 target: "button_image";
9636 after: "disable_text";
9638 program { name: "disable_text";
9642 get_state(PART:"elm.text", st, 30, vl);
9643 if (!strcmp(st, "visible"))
9644 set_state(PART:"elm.text", "disabled_visible", 0.0);
9646 set_state(PART:"elm.text", "disabled", 0.0);
9647 set_int(button_state, BUTTON_STATE_DISABLED);
9650 program { name: "enable";
9651 signal: "elm,state,enabled";
9653 action: STATE_SET "default" 0.0;
9654 target: "button_image";
9656 after: "enable_text";
9658 program { name: "enable_text";
9662 get_state(PART:"elm.text", st, 30, vl);
9663 if (!strcmp(st, "disabled_visible"))
9664 set_state(PART:"elm.text", "visible", 0.0);
9666 set_state(PART:"elm.text", "default", 0.0);
9667 set_int(button_state, BUTTON_STATE_ENABLED);
9670 program { name: "focused";
9671 //signal: "elm,action,focus";
9673 action: STATE_SET "focused" 0.0;
9674 target: "button_image";
9677 program { name: "unfocused";
9678 //signal: "elm,action,unfocus";
9680 action: STATE_SET "default" 0.0;
9681 target: "button_image";
9682 after: "unfocus_text";
9684 program { name: "unfocus_text";
9685 action: STATE_SET "visible" 0.0;
9691 #undef BUTTON_STATE_ENABLED
9692 #undef BUTTON_STATE_DISABLED