2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
24 name: "touch_sound" AS_IS;
25 source: "S_Touch_30ms.wav";
29 ///////////////////////////////////////////////////////////////////////////////////////
30 group { name: "elm/button/base/style1";
31 alias: "elm/button/base/text_only/style1";
32 alias: "elm/button/base/center";
33 alias: "elm/button/base/icon_and_text/center";
34 alias: "elm/button/base/nocontents/search_button";
36 image: "00_button_01_normal.png" COMP;
37 image: "00_button_01_normal_press.png" COMP;
38 image: "00_button_01_normal_dim.png" COMP;
41 public button_state = BUTTON_STATE_ENABLED;
44 part { name: "button_image";
46 description { state: "default" 0.0;
48 normal: "00_button_01_normal.png";
49 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
53 description { state: "clicked" 0.0;
54 inherit: "default" 0.0;
55 image.normal: "00_button_01_normal_press.png";
57 description { state: "disabled" 0.0;
58 inherit: "default" 0.0;
59 image.normal: "00_button_01_normal_dim.png";
61 description { state: "focused" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "00_button_01_normal_press.png";
66 part { name: "padding_left_top";
70 description { state: "default" 0.0;
72 rel2.relative: 0.0 0.0;
73 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
82 description { state: "default" 0.0;
83 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
86 description { state: "visible" 0.0;
87 inherit: "default" 0.0;
88 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
90 description { state: "icononly" 0.0;
91 inherit: "default" 0.0;
92 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
95 part { name: "padding_right_bottom";
99 description { state: "default" 0.0;
101 rel1.relative: 1.0 1.0;
102 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
107 part { name: "icon_rect";
111 description { state: "default" 0.0;
117 to: "padding_left_top";
121 to_x: "padding_left_top";
122 to_y: "padding_right_bottom";
126 description { state: "visible" 0.0;
128 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
129 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 to: "padding_left_top";
137 to_x: "padding_left_top";
138 to_y: "padding_right_bottom";
142 description { state: "icononly" 0.0;
143 inherit: "default" 0.0;
146 part { name: "padding_after_icon";
150 description { state: "default" 0.0; //when only icon or no icon is there
156 rel2.to: "icon_rect";
161 description { state: "visible" 0.0;
168 rel2.to: "icon_rect";
170 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
172 description { state: "icononly" 0.0;
173 inherit: "default" 0.0;
176 part { name: "padding_before_text";
180 description { state: "default" 0.0; //when only icon or no icon is there
185 to_y: "padding_left_top";
190 to_y: "padding_right_bottom";
193 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
197 part { name: "elm.swallow.content";
201 description { state: "default" 0.0;
206 to: "padding_left_top";
210 to_x: "padding_left_top";
211 to_y: "padding_right_bottom";
215 description { state: "visible" 0.0;
217 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
218 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
222 to_x: "padding_before_text";
223 to_y: "padding_left_top";
227 to_x: "padding_before_text";
228 to_y: "padding_right_bottom";
231 description { state: "icononly" 0.0;
232 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
233 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
236 part { name: "elm.text";
241 description { state: "default" 0.0;
245 to_x: "padding_after_icon";
246 to_y: "padding_left_top";
250 to: "padding_right_bottom";
252 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
254 font: "SLP:style=Medium";
255 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
258 text_class: "slp_medium";
261 description { state: "visible" 0.0;
262 inherit: "default" 0.0;
265 description { state: "clicked" 0.0;
266 inherit: "default" 0.0;
268 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
270 description { state: "disabled" 0.0;
271 inherit: "default" 0.0;
274 description { state: "disabled_visible" 0.0;
275 inherit: "default" 0.0;
276 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
279 description { state: "focused" 0.0;
280 inherit: "default" 0.0;
282 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
285 part { name: "over2";
288 ignore_flags: ON_HOLD;
289 description { state: "default" 0.0;
293 part { name: "over3";
296 description { state: "default" 0.0;
300 part { name: "clipper";
302 description { state: "default" 0.0;
303 color: 255 255 255 255;
306 part { name: "disabler";
308 description { state: "default" 0.0;
312 description { state: "disabled" 0.0;
313 inherit: "default" 0.0;
319 program { name: "button_click";
320 signal: "mouse,down,1";
322 action: SIGNAL_EMIT "elm,action,press" "";
323 after: "button_click_anim";
325 program { name: "button_click_anim";
326 action: STATE_SET "clicked" 0.0;
327 target: "button_image";
328 after: "text_clicked";
330 program { name: "text_clicked";
334 get_state(PART:"elm.text", st, 30, vl);
335 if (!strcmp(st, "visible"))
336 set_state(PART:"elm.text", "clicked", 0.0);
339 program { name: "button_unpress";
340 action: SIGNAL_EMIT "elm,action,unpress" "";
342 program { name: "button_mouseout_clicked";
343 signal: "mouse,up,1";
348 get_state(PART:"elm.swallow.content", st, 30, vl);
349 if (strcmp(st, "icononly"))
351 emit("elm,action,default,text,set", "");
352 set_state(PART:"elm.text", "visible", 0.0);
354 if (get_int(button_state) != BUTTON_STATE_DISABLED)
355 set_state(PART:"button_image", "default", 0.0);
357 after: button_unpress;
359 program { name: "touch_snd";
360 signal: "mouse,clicked,1";
362 action: PLAY_SAMPLE "touch_sound" 1.0;
363 after: button_unclick3;
365 program { name: "button_unclick3";
366 action: SIGNAL_EMIT "elm,action,click" "";
368 program { name: "text_show";
369 signal: "elm,state,text,visible";
374 get_state(PART:"elm.swallow.content", st, 30, vl);
375 if (!strcmp(st, "icononly"))
377 set_state(PART:"elm.swallow.content", "visible", 0.0);
378 set_state(PART:"icon_rect", "visible", 0.0);
379 set_state(PART:"padding_after_icon", "visible", 0.0);
380 set_state(PART:"bg", "visible", 0.0);
382 if (get_int(button_state) != BUTTON_STATE_DISABLED)
383 set_state(PART:"elm.text", "visible", 0.0);
385 set_state(PART:"elm.text", "disabled_visible", 0.0);
388 program { name: "text_hide";
389 signal: "elm,state,text,hidden";
394 get_state(PART:"elm.swallow.content", st, 30, vl);
395 if (!strcmp(st, "visible"))
397 set_state(PART:"elm.swallow.content", "icononly", 0.0);
398 set_state(PART:"icon_rect", "icononly", 0.0);
399 set_state(PART:"padding_after_icon", "icononly", 0.0);
400 set_state(PART:"bg", "icononly", 0.0);
402 set_state(PART:"elm.text", "default", 0.0);
405 program { name: "icon_show";
406 signal: "elm,state,icon,visible";
411 get_state(PART:"elm.text", st, 30, vl);
412 if (!strcmp(st, "visible"))
414 set_state(PART:"elm.swallow.content", "visible", 0.0);
415 set_state(PART:"icon_rect", "visible", 0.0);
416 set_state(PART:"padding_after_icon", "visible", 0.0);
417 set_state(PART:"bg", "visible", 0.0);
421 set_state(PART:"elm.swallow.content", "icononly", 0.0);
422 set_state(PART:"icon_rect", "icononly", 0.0);
423 set_state(PART:"padding_after_icon", "icononly", 0.0);
424 set_state(PART:"bg", "icononly", 0.0);
428 program { name: "icon_hide";
429 signal: "elm,state,icon,hidden";
431 action: STATE_SET "default" 0.0;
432 target: "elm.swallow.content";
433 target: "padding_after_icon";
437 program { name: "disable";
438 signal: "elm,state,disabled";
440 action: STATE_SET "disabled" 0.0;
441 target: "button_image";
443 after: "disable_text";
445 program { name: "disable_text";
449 get_state(PART:"elm.text", st, 30, vl);
450 if (!strcmp(st, "visible"))
451 set_state(PART:"elm.text", "disabled_visible", 0.0);
453 set_state(PART:"elm.text", "disabled", 0.0);
454 set_int(button_state, BUTTON_STATE_DISABLED);
457 program { name: "enable";
458 signal: "elm,state,enabled";
460 action: STATE_SET "default" 0.0;
461 target: "button_image";
463 after: "enable_text";
465 program { name: "enable_text";
469 get_state(PART:"elm.text", st, 30, vl);
470 if (!strcmp(st, "disabled_visible"))
471 set_state(PART:"elm.text", "visible", 0.0);
473 set_state(PART:"elm.text", "default", 0.0);
474 set_int(button_state, BUTTON_STATE_ENABLED);
477 program { name: "focused";
478 //signal: "elm,action,focus";
480 action: STATE_SET "focused" 0.0;
481 target: "button_image";
484 program { name: "unfocused";
485 //signal: "elm,action,unfocus";
487 action: STATE_SET "default" 0.0;
488 target: "button_image";
489 after: "unfocus_text";
491 program { name: "unfocus_text";
492 action: STATE_SET "visible" 0.0;
498 //////////////////////////////////////////////////////////////
499 group { name: "elm/button/base/style1/auto_expand";
500 alias: "elm/button/base/datetime_ampm/default";
502 image: "00_button_01_normal.png" COMP;
503 image: "00_button_01_normal_press.png" COMP;
504 image: "00_button_01_normal_dim.png" COMP;
507 public button_state = BUTTON_STATE_ENABLED;
510 part { name: "button_image";
512 description { state: "default" 0.0;
514 normal: "00_button_01_normal.png";
515 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
519 description { state: "clicked" 0.0;
520 inherit: "default" 0.0;
521 image.normal: "00_button_01_normal_press.png";
523 description { state: "disabled" 0.0;
524 inherit: "default" 0.0;
525 image.normal: "00_button_01_normal_dim.png";
527 description { state: "focused" 0.0;
528 inherit: "default" 0.0;
529 image.normal: "00_button_01_normal_press.png";
532 part { name: "padding_left_top";
536 description { state: "default" 0.0;
538 rel2.relative: 0.0 0.0;
539 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
548 description { state: "default" 0.0;
549 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
552 description { state: "visible" 0.0;
553 inherit: "default" 0.0;
554 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
556 description { state: "icononly" 0.0;
557 inherit: "default" 0.0;
558 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
561 part { name: "padding_right_bottom";
565 description { state: "default" 0.0;
567 rel1.relative: 1.0 1.0;
568 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
573 part { name: "icon_rect";
577 description { state: "default" 0.0;
583 to: "padding_left_top";
587 to_x: "padding_left_top";
588 to_y: "padding_right_bottom";
592 description { state: "visible" 0.0;
594 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
595 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
599 to: "padding_left_top";
603 to_x: "padding_left_top";
604 to_y: "padding_right_bottom";
608 description { state: "icononly" 0.0;
609 inherit: "default" 0.0;
612 part { name: "padding_after_icon";
616 description { state: "default" 0.0; //when only icon or no icon is there
622 rel2.to: "icon_rect";
627 description { state: "visible" 0.0;
634 rel2.to: "icon_rect";
636 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
638 description { state: "icononly" 0.0;
639 inherit: "default" 0.0;
642 part { name: "padding_before_text";
646 description { state: "default" 0.0; //when only icon or no icon is there
651 to_y: "padding_left_top";
656 to_y: "padding_right_bottom";
659 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
663 part { name: "elm.swallow.content";
667 description { state: "default" 0.0;
672 to: "padding_left_top";
676 to_x: "padding_left_top";
677 to_y: "padding_right_bottom";
681 description { state: "visible" 0.0;
683 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
684 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
688 to_x: "padding_before_text";
689 to_y: "padding_left_top";
693 to_x: "padding_before_text";
694 to_y: "padding_right_bottom";
697 description { state: "icononly" 0.0;
698 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
699 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
702 part { name: "elm.text";
707 description { state: "default" 0.0;
711 to_x: "padding_after_icon";
712 to_y: "padding_left_top";
716 to: "padding_right_bottom";
718 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
720 font: "SLP:style=Medium";
721 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
724 text_class: "slp_medium";
727 description { state: "visible" 0.0;
728 inherit: "default" 0.0;
731 description { state: "clicked" 0.0;
732 inherit: "default" 0.0;
734 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
736 description { state: "disabled" 0.0;
737 inherit: "default" 0.0;
740 description { state: "disabled_visible" 0.0;
741 inherit: "default" 0.0;
742 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
745 description { state: "focused" 0.0;
746 inherit: "default" 0.0;
748 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
751 part { name: "over2";
754 ignore_flags: ON_HOLD;
755 description { state: "default" 0.0;
759 part { name: "over3";
762 description { state: "default" 0.0;
766 part { name: "clipper";
768 description { state: "default" 0.0;
769 color: 255 255 255 255;
772 part { name: "disabler";
774 description { state: "default" 0.0;
778 description { state: "disabled" 0.0;
779 inherit: "default" 0.0;
785 program { name: "button_click";
786 signal: "mouse,down,1";
788 action: SIGNAL_EMIT "elm,action,press" "";
789 after: "button_click_anim";
791 program { name: "button_click_anim";
792 action: STATE_SET "clicked" 0.0;
793 target: "button_image";
794 after: "text_clicked";
796 program { name: "text_clicked";
800 get_state(PART:"elm.text", st, 30, vl);
801 if (!strcmp(st, "visible"))
802 set_state(PART:"elm.text", "clicked", 0.0);
805 program { name: "button_unpress";
806 action: SIGNAL_EMIT "elm,action,unpress" "";
808 program { name: "button_mouseout_clicked";
809 signal: "mouse,up,1";
814 get_state(PART:"elm.swallow.content", st, 30, vl);
815 if (strcmp(st, "icononly"))
817 emit("elm,action,default,text,set", "");
818 set_state(PART:"elm.text", "visible", 0.0);
820 if (get_int(button_state) != BUTTON_STATE_DISABLED)
821 set_state(PART:"button_image", "default", 0.0);
823 after: button_unpress;
825 program { name: "touch_snd";
826 signal: "mouse,clicked,1";
828 action: PLAY_SAMPLE "touch_sound" 1.0;
829 after: button_unclick3;
831 program { name: "button_unclick3";
832 action: SIGNAL_EMIT "elm,action,click" "";
834 program { name: "text_show";
835 signal: "elm,state,text,visible";
840 get_state(PART:"elm.swallow.content", st, 30, vl);
841 if (!strcmp(st, "icononly"))
843 set_state(PART:"elm.swallow.content", "visible", 0.0);
844 set_state(PART:"icon_rect", "visible", 0.0);
845 set_state(PART:"padding_after_icon", "visible", 0.0);
846 set_state(PART:"bg", "visible", 0.0);
848 if (get_int(button_state) != BUTTON_STATE_DISABLED)
849 set_state(PART:"elm.text", "visible", 0.0);
851 set_state(PART:"elm.text", "disabled_visible", 0.0);
854 program { name: "text_hide";
855 signal: "elm,state,text,hidden";
860 get_state(PART:"elm.swallow.content", st, 30, vl);
861 if (!strcmp(st, "visible"))
863 set_state(PART:"elm.swallow.content", "icononly", 0.0);
864 set_state(PART:"icon_rect", "icononly", 0.0);
865 set_state(PART:"padding_after_icon", "icononly", 0.0);
866 set_state(PART:"bg", "icononly", 0.0);
868 set_state(PART:"elm.text", "default", 0.0);
871 program { name: "icon_show";
872 signal: "elm,state,icon,visible";
877 get_state(PART:"elm.text", st, 30, vl);
878 if (!strcmp(st, "visible"))
880 set_state(PART:"elm.swallow.content", "visible", 0.0);
881 set_state(PART:"icon_rect", "visible", 0.0);
882 set_state(PART:"padding_after_icon", "visible", 0.0);
883 set_state(PART:"bg", "visible", 0.0);
887 set_state(PART:"elm.swallow.content", "icononly", 0.0);
888 set_state(PART:"icon_rect", "icononly", 0.0);
889 set_state(PART:"padding_after_icon", "icononly", 0.0);
890 set_state(PART:"bg", "icononly", 0.0);
894 program { name: "icon_hide";
895 signal: "elm,state,icon,hidden";
897 action: STATE_SET "default" 0.0;
898 target: "elm.swallow.content";
899 target: "padding_after_icon";
903 program { name: "disable";
904 signal: "elm,state,disabled";
906 action: STATE_SET "disabled" 0.0;
907 target: "button_image";
909 after: "disable_text";
911 program { name: "disable_text";
915 get_state(PART:"elm.text", st, 30, vl);
916 if (!strcmp(st, "visible"))
917 set_state(PART:"elm.text", "disabled_visible", 0.0);
919 set_state(PART:"elm.text", "disabled", 0.0);
920 set_int(button_state, BUTTON_STATE_DISABLED);
923 program { name: "enable";
924 signal: "elm,state,enabled";
926 action: STATE_SET "default" 0.0;
927 target: "button_image";
929 after: "enable_text";
931 program { name: "enable_text";
935 get_state(PART:"elm.text", st, 30, vl);
936 if (!strcmp(st, "disabled_visible"))
937 set_state(PART:"elm.text", "visible", 0.0);
939 set_state(PART:"elm.text", "default", 0.0);
940 set_int(button_state, BUTTON_STATE_ENABLED);
943 program { name: "focused";
944 //signal: "elm,action,focus";
946 action: STATE_SET "focused" 0.0;
947 target: "button_image";
950 program { name: "unfocused";
951 //signal: "elm,action,unfocus";
953 action: STATE_SET "default" 0.0;
954 target: "button_image";
955 after: "unfocus_text";
957 program { name: "unfocus_text";
958 action: STATE_SET "visible" 0.0;
964 //////////////////////////////////////////////////////////////////////////////////////
965 group { name: "elm/button/base/style1/multiline";
967 image: "00_button_01_normal.png" COMP;
968 image: "00_button_01_normal_press.png" COMP;
969 image: "00_button_01_normal_dim.png" COMP;
972 style { name: "btn_style1_multiline";
973 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
980 public button_state = BUTTON_STATE_ENABLED;
983 part { name: "button_image";
985 description { state: "default" 0.0;
987 normal: "00_button_01_normal.png";
988 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
992 description { state: "clicked" 0.0;
993 inherit: "default" 0.0;
994 image.normal: "00_button_01_normal_press.png";
996 description { state: "disabled" 0.0;
997 inherit: "default" 0.0;
998 image.normal: "00_button_01_normal_dim.png";
1000 description { state: "focused" 0.0;
1001 inherit: "default" 0.0;
1002 image.normal: "00_button_01_normal_press.png";
1005 part { name: "padding_left_top";
1009 description { state: "default" 0.0;
1011 rel2.relative: 0.0 0.0;
1012 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1021 description { state: "default" 0.0;
1022 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1025 description { state: "visible" 0.0;
1026 inherit: "default" 0.0;
1027 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1029 description { state: "icononly" 0.0;
1030 inherit: "default" 0.0;
1031 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1034 part { name: "padding_right_bottom";
1038 description { state: "default" 0.0;
1040 rel1.relative: 1.0 1.0;
1041 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1046 part { name: "icon_rect";
1050 description { state: "default" 0.0;
1056 to: "padding_left_top";
1060 to_x: "padding_left_top";
1061 to_y: "padding_right_bottom";
1065 description { state: "visible" 0.0;
1067 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1068 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1072 to: "padding_left_top";
1076 to_x: "padding_left_top";
1077 to_y: "padding_right_bottom";
1081 description { state: "icononly" 0.0;
1082 inherit: "default" 0.0;
1085 part { name: "padding_after_icon";
1089 description { state: "default" 0.0; //when only icon or no icon is there
1095 rel2.to: "icon_rect";
1100 description { state: "visible" 0.0;
1107 rel2.to: "icon_rect";
1109 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1111 description { state: "icononly" 0.0;
1112 inherit: "default" 0.0;
1115 part { name: "padding_before_text";
1119 description { state: "default" 0.0; //when only icon or no icon is there
1124 to_y: "padding_left_top";
1129 to_y: "padding_right_bottom";
1132 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1136 part { name: "elm.swallow.content";
1140 description { state: "default" 0.0;
1145 to: "padding_left_top";
1149 to_x: "padding_left_top";
1150 to_y: "padding_right_bottom";
1154 description { state: "visible" 0.0;
1156 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1157 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1161 to_x: "padding_before_text";
1162 to_y: "padding_left_top";
1166 to_x: "padding_before_text";
1167 to_y: "padding_right_bottom";
1170 description { state: "icononly" 0.0;
1171 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1172 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1175 part { name: "elm.text";
1180 description { state: "default" 0.0;
1184 to_x: "padding_after_icon";
1185 to_y: "padding_left_top";
1189 to: "padding_right_bottom";
1191 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1193 style: "btn_style1_multiline";
1198 description { state: "visible" 0.0;
1199 inherit: "default" 0.0;
1202 description { state: "clicked" 0.0;
1203 inherit: "default" 0.0;
1205 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1207 description { state: "disabled" 0.0;
1208 inherit: "default" 0.0;
1211 description { state: "disabled_visible" 0.0;
1212 inherit: "default" 0.0;
1213 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1216 description { state: "focused" 0.0;
1217 inherit: "default" 0.0;
1219 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1222 part { name: "over2";
1225 ignore_flags: ON_HOLD;
1226 description { state: "default" 0.0;
1230 part { name: "over3";
1233 description { state: "default" 0.0;
1237 part { name: "clipper";
1239 description { state: "default" 0.0;
1240 color: 255 255 255 255;
1243 part { name: "disabler";
1245 description { state: "default" 0.0;
1249 description { state: "disabled" 0.0;
1250 inherit: "default" 0.0;
1256 program { name: "button_click";
1257 signal: "mouse,down,1";
1259 action: SIGNAL_EMIT "elm,action,press" "";
1260 after: "button_click_anim";
1262 program { name: "button_click_anim";
1263 action: STATE_SET "clicked" 0.0;
1264 target: "button_image";
1265 after: "text_clicked";
1267 program { name: "text_clicked";
1271 get_state(PART:"elm.text", st, 30, vl);
1272 if (!strcmp(st, "visible"))
1273 set_state(PART:"elm.text", "clicked", 0.0);
1276 program { name: "button_unpress";
1277 action: SIGNAL_EMIT "elm,action,unpress" "";
1279 program { name: "button_mouseout_clicked";
1280 signal: "mouse,up,1";
1285 get_state(PART:"elm.swallow.content", st, 30, vl);
1286 if (strcmp(st, "icononly"))
1288 emit("elm,action,default,text,set", "");
1289 set_state(PART:"elm.text", "visible", 0.0);
1291 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1292 set_state(PART:"button_image", "default", 0.0);
1294 after: button_unpress;
1296 program { name: "touch_snd";
1297 signal: "mouse,clicked,1";
1299 action: PLAY_SAMPLE "touch_sound" 1.0;
1300 after: button_unclick3;
1302 program { name: "button_unclick3";
1303 action: SIGNAL_EMIT "elm,action,click" "";
1305 program { name: "text_show";
1306 signal: "elm,state,text,visible";
1311 get_state(PART:"elm.swallow.content", st, 30, vl);
1312 if (!strcmp(st, "icononly"))
1314 set_state(PART:"elm.swallow.content", "visible", 0.0);
1315 set_state(PART:"icon_rect", "visible", 0.0);
1316 set_state(PART:"padding_after_icon", "visible", 0.0);
1317 set_state(PART:"bg", "visible", 0.0);
1319 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1320 set_state(PART:"elm.text", "visible", 0.0);
1322 set_state(PART:"elm.text", "disabled_visible", 0.0);
1325 program { name: "text_hide";
1326 signal: "elm,state,text,hidden";
1331 get_state(PART:"elm.swallow.content", st, 30, vl);
1332 if (!strcmp(st, "visible"))
1334 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1335 set_state(PART:"icon_rect", "icononly", 0.0);
1336 set_state(PART:"padding_after_icon", "icononly", 0.0);
1337 set_state(PART:"bg", "icononly", 0.0);
1339 set_state(PART:"elm.text", "default", 0.0);
1342 program { name: "icon_show";
1343 signal: "elm,state,icon,visible";
1348 get_state(PART:"elm.text", st, 30, vl);
1349 if (!strcmp(st, "visible"))
1351 set_state(PART:"elm.swallow.content", "visible", 0.0);
1352 set_state(PART:"icon_rect", "visible", 0.0);
1353 set_state(PART:"padding_after_icon", "visible", 0.0);
1354 set_state(PART:"bg", "visible", 0.0);
1358 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1359 set_state(PART:"icon_rect", "icononly", 0.0);
1360 set_state(PART:"padding_after_icon", "icononly", 0.0);
1361 set_state(PART:"bg", "icononly", 0.0);
1365 program { name: "icon_hide";
1366 signal: "elm,state,icon,hidden";
1368 action: STATE_SET "default" 0.0;
1369 target: "elm.swallow.content";
1370 target: "padding_after_icon";
1371 target: "icon_rect";
1374 program { name: "disable";
1375 signal: "elm,state,disabled";
1377 action: STATE_SET "disabled" 0.0;
1378 target: "button_image";
1380 after: "disable_text";
1382 program { name: "disable_text";
1386 get_state(PART:"elm.text", st, 30, vl);
1387 if (!strcmp(st, "visible"))
1388 set_state(PART:"elm.text", "disabled_visible", 0.0);
1390 set_state(PART:"elm.text", "disabled", 0.0);
1391 set_int(button_state, BUTTON_STATE_DISABLED);
1394 program { name: "enable";
1395 signal: "elm,state,enabled";
1397 action: STATE_SET "default" 0.0;
1398 target: "button_image";
1400 after: "enable_text";
1402 program { name: "enable_text";
1406 get_state(PART:"elm.text", st, 30, vl);
1407 if (!strcmp(st, "disabled_visible"))
1408 set_state(PART:"elm.text", "visible", 0.0);
1410 set_state(PART:"elm.text", "default", 0.0);
1411 set_int(button_state, BUTTON_STATE_ENABLED);
1414 program { name: "focused";
1415 //signal: "elm,action,focus";
1417 action: STATE_SET "focused" 0.0;
1418 target: "button_image";
1421 program { name: "unfocused";
1422 //signal: "elm,action,unfocus";
1424 action: STATE_SET "default" 0.0;
1425 target: "button_image";
1426 after: "unfocus_text";
1428 program { name: "unfocus_text";
1429 action: STATE_SET "visible" 0.0;
1435 ///////////////////////////////////////////////////////////////////////////////////////
1436 group { name: "elm/button/base/style2";
1437 alias: "elm/button/base/text_only/style2";
1439 image: "00_button_04_normal.png" COMP;
1440 image: "00_button_04_press.png" COMP;
1441 image: "00_button_04_dim.png" COMP;
1444 public button_state = BUTTON_STATE_ENABLED;
1447 part { name: "button_image";
1449 description { state: "default" 0.0;
1451 normal: "00_button_04_normal.png";
1452 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1456 description { state: "clicked" 0.0;
1457 inherit: "default" 0.0;
1458 image.normal: "00_button_04_press.png";
1460 description { state: "disabled" 0.0;
1461 inherit: "default" 0.0;
1462 image.normal: "00_button_04_dim.png";
1464 description { state: "focused" 0.0;
1465 inherit: "default" 0.0;
1466 image.normal: "00_button_04_press.png";
1469 part { name: "padding_left_top";
1473 description { state: "default" 0.0;
1475 rel2.relative: 0.0 0.0;
1476 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1485 description { state: "default" 0.0;
1486 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1489 description { state: "visible" 0.0;
1490 inherit: "default" 0.0;
1491 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1493 description { state: "icononly" 0.0;
1494 inherit: "default" 0.0;
1495 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1498 part { name: "padding_right_bottom";
1502 description { state: "default" 0.0;
1504 rel1.relative: 1.0 1.0;
1505 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1510 part { name: "icon_rect";
1514 description { state: "default" 0.0;
1520 to: "padding_left_top";
1524 to_x: "padding_left_top";
1525 to_y: "padding_right_bottom";
1529 description { state: "visible" 0.0;
1531 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1532 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1536 to: "padding_left_top";
1540 to_x: "padding_left_top";
1541 to_y: "padding_right_bottom";
1545 description { state: "icononly" 0.0;
1546 inherit: "default" 0.0;
1549 part { name: "padding_after_icon";
1553 description { state: "default" 0.0; //when only icon or no icon is there
1559 rel2.to: "icon_rect";
1564 description { state: "visible" 0.0;
1571 rel2.to: "icon_rect";
1573 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1575 description { state: "icononly" 0.0;
1576 inherit: "default" 0.0;
1579 part { name: "padding_before_text";
1583 description { state: "default" 0.0; //when only icon or no icon is there
1588 to_y: "padding_left_top";
1593 to_y: "padding_right_bottom";
1596 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1600 part { name: "elm.swallow.content";
1604 description { state: "default" 0.0;
1609 to: "padding_left_top";
1613 to_x: "padding_left_top";
1614 to_y: "padding_right_bottom";
1618 description { state: "visible" 0.0;
1620 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1621 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1625 to_x: "padding_before_text";
1626 to_y: "padding_left_top";
1630 to_x: "padding_before_text";
1631 to_y: "padding_right_bottom";
1634 description { state: "icononly" 0.0;
1635 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1636 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1639 part { name: "elm.text";
1644 description { state: "default" 0.0;
1648 to_x: "padding_after_icon";
1649 to_y: "padding_left_top";
1653 to: "padding_right_bottom";
1655 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1657 font: "SLP:style=Medium";
1658 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1661 text_class: "slp_medium";
1664 description { state: "visible" 0.0;
1665 inherit: "default" 0.0;
1668 description { state: "clicked" 0.0;
1669 inherit: "default" 0.0;
1671 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1673 description { state: "disabled" 0.0;
1674 inherit: "default" 0.0;
1677 description { state: "disabled_visible" 0.0;
1678 inherit: "default" 0.0;
1679 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1682 description { state: "focused" 0.0;
1683 inherit: "default" 0.0;
1685 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1688 part { name: "over2";
1691 ignore_flags: ON_HOLD;
1692 description { state: "default" 0.0;
1696 part { name: "over3";
1699 description { state: "default" 0.0;
1703 part { name: "clipper";
1705 description { state: "default" 0.0;
1706 color: 255 255 255 255;
1709 part { name: "disabler";
1711 description { state: "default" 0.0;
1715 description { state: "disabled" 0.0;
1716 inherit: "default" 0.0;
1722 program { name: "button_click";
1723 signal: "mouse,down,1";
1725 action: SIGNAL_EMIT "elm,action,press" "";
1726 after: "button_click_anim";
1728 program { name: "button_click_anim";
1729 action: STATE_SET "clicked" 0.0;
1730 target: "button_image";
1731 after: "text_clicked";
1733 program { name: "text_clicked";
1737 get_state(PART:"elm.text", st, 30, vl);
1738 if (!strcmp(st, "visible"))
1739 set_state(PART:"elm.text", "clicked", 0.0);
1742 program { name: "button_unpress";
1743 action: SIGNAL_EMIT "elm,action,unpress" "";
1745 program { name: "button_mouseout_clicked";
1746 signal: "mouse,up,1";
1751 get_state(PART:"elm.swallow.content", st, 30, vl);
1752 if (strcmp(st, "icononly"))
1754 emit("elm,action,default,text,set", "");
1755 set_state(PART:"elm.text", "visible", 0.0);
1757 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1758 set_state(PART:"button_image", "default", 0.0);
1760 after: button_unpress;
1762 program { name: "touch_snd";
1763 signal: "mouse,clicked,1";
1765 action: PLAY_SAMPLE "touch_sound" 1.0;
1766 after: button_unclick3;
1768 program { name: "button_unclick3";
1769 action: SIGNAL_EMIT "elm,action,click" "";
1771 program { name: "text_show";
1772 signal: "elm,state,text,visible";
1777 get_state(PART:"elm.swallow.content", st, 30, vl);
1778 if (!strcmp(st, "icononly"))
1780 set_state(PART:"elm.swallow.content", "visible", 0.0);
1781 set_state(PART:"icon_rect", "visible", 0.0);
1782 set_state(PART:"padding_after_icon", "visible", 0.0);
1783 set_state(PART:"bg", "visible", 0.0);
1785 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1786 set_state(PART:"elm.text", "visible", 0.0);
1788 set_state(PART:"elm.text", "disabled_visible", 0.0);
1791 program { name: "text_hide";
1792 signal: "elm,state,text,hidden";
1797 get_state(PART:"elm.swallow.content", st, 30, vl);
1798 if (!strcmp(st, "visible"))
1800 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1801 set_state(PART:"icon_rect", "icononly", 0.0);
1802 set_state(PART:"padding_after_icon", "icononly", 0.0);
1803 set_state(PART:"bg", "icononly", 0.0);
1805 set_state(PART:"elm.text", "default", 0.0);
1808 program { name: "icon_show";
1809 signal: "elm,state,icon,visible";
1814 get_state(PART:"elm.text", st, 30, vl);
1815 if (!strcmp(st, "visible"))
1817 set_state(PART:"elm.swallow.content", "visible", 0.0);
1818 set_state(PART:"icon_rect", "visible", 0.0);
1819 set_state(PART:"padding_after_icon", "visible", 0.0);
1820 set_state(PART:"bg", "visible", 0.0);
1824 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1825 set_state(PART:"icon_rect", "icononly", 0.0);
1826 set_state(PART:"padding_after_icon", "icononly", 0.0);
1827 set_state(PART:"bg", "icononly", 0.0);
1831 program { name: "icon_hide";
1832 signal: "elm,state,icon,hidden";
1834 action: STATE_SET "default" 0.0;
1835 target: "elm.swallow.content";
1836 target: "padding_after_icon";
1837 target: "icon_rect";
1840 program { name: "disable";
1841 signal: "elm,state,disabled";
1843 action: STATE_SET "disabled" 0.0;
1844 target: "button_image";
1846 after: "disable_text";
1848 program { name: "disable_text";
1852 get_state(PART:"elm.text", st, 30, vl);
1853 if (!strcmp(st, "visible"))
1854 set_state(PART:"elm.text", "disabled_visible", 0.0);
1856 set_state(PART:"elm.text", "disabled", 0.0);
1857 set_int(button_state, BUTTON_STATE_DISABLED);
1860 program { name: "enable";
1861 signal: "elm,state,enabled";
1863 action: STATE_SET "default" 0.0;
1864 target: "button_image";
1866 after: "enable_text";
1868 program { name: "enable_text";
1872 get_state(PART:"elm.text", st, 30, vl);
1873 if (!strcmp(st, "disabled_visible"))
1874 set_state(PART:"elm.text", "visible", 0.0);
1876 set_state(PART:"elm.text", "default", 0.0);
1877 set_int(button_state, BUTTON_STATE_ENABLED);
1880 program { name: "focused";
1881 //signal: "elm,action,focus";
1883 action: STATE_SET "focused" 0.0;
1884 target: "button_image";
1887 program { name: "unfocused";
1888 //signal: "elm,action,unfocus";
1890 action: STATE_SET "default" 0.0;
1891 target: "button_image";
1892 after: "unfocus_text";
1894 program { name: "unfocus_text";
1895 action: STATE_SET "visible" 0.0;
1901 ///////////////////////////////////////////////////////////////////////////////////////
1902 group { name: "elm/button/base/style2/multiline";
1904 image: "00_button_04_normal.png" COMP;
1905 image: "00_button_04_press.png" COMP;
1906 image: "00_button_04_dim.png" COMP;
1909 style { name: "btn_style2_multiline";
1910 base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE2_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1917 public button_state = BUTTON_STATE_ENABLED;
1920 part { name: "button_image";
1922 description { state: "default" 0.0;
1924 normal: "00_button_04_normal.png";
1925 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1929 description { state: "clicked" 0.0;
1930 inherit: "default" 0.0;
1931 image.normal: "00_button_04_press.png";
1933 description { state: "disabled" 0.0;
1934 inherit: "default" 0.0;
1935 image.normal: "00_button_04_dim.png";
1937 description { state: "focused" 0.0;
1938 inherit: "default" 0.0;
1939 image.normal: "00_button_04_press.png";
1942 part { name: "padding_left_top";
1946 description { state: "default" 0.0;
1948 rel2.relative: 0.0 0.0;
1949 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1958 description { state: "default" 0.0;
1959 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1962 description { state: "visible" 0.0;
1963 inherit: "default" 0.0;
1964 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1966 description { state: "icononly" 0.0;
1967 inherit: "default" 0.0;
1968 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1971 part { name: "padding_right_bottom";
1975 description { state: "default" 0.0;
1977 rel1.relative: 1.0 1.0;
1978 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1983 part { name: "icon_rect";
1987 description { state: "default" 0.0;
1993 to: "padding_left_top";
1997 to_x: "padding_left_top";
1998 to_y: "padding_right_bottom";
2002 description { state: "visible" 0.0;
2004 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2005 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2009 to: "padding_left_top";
2013 to_x: "padding_left_top";
2014 to_y: "padding_right_bottom";
2018 description { state: "icononly" 0.0;
2019 inherit: "default" 0.0;
2022 part { name: "padding_after_icon";
2026 description { state: "default" 0.0; //when only icon or no icon is there
2032 rel2.to: "icon_rect";
2037 description { state: "visible" 0.0;
2044 rel2.to: "icon_rect";
2046 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2048 description { state: "icononly" 0.0;
2049 inherit: "default" 0.0;
2052 part { name: "padding_before_text";
2056 description { state: "default" 0.0; //when only icon or no icon is there
2061 to_y: "padding_left_top";
2066 to_y: "padding_right_bottom";
2069 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2073 part { name: "elm.swallow.content";
2077 description { state: "default" 0.0;
2082 to: "padding_left_top";
2086 to_x: "padding_left_top";
2087 to_y: "padding_right_bottom";
2091 description { state: "visible" 0.0;
2093 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2094 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2098 to_x: "padding_before_text";
2099 to_y: "padding_left_top";
2103 to_x: "padding_before_text";
2104 to_y: "padding_right_bottom";
2107 description { state: "icononly" 0.0;
2108 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2109 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2112 part { name: "elm.text";
2117 description { state: "default" 0.0;
2121 to_x: "padding_after_icon";
2122 to_y: "padding_left_top";
2126 to: "padding_right_bottom";
2128 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2130 style: "btn_style2_multiline";
2135 description { state: "visible" 0.0;
2136 inherit: "default" 0.0;
2139 description { state: "clicked" 0.0;
2140 inherit: "default" 0.0;
2142 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2144 description { state: "disabled" 0.0;
2145 inherit: "default" 0.0;
2148 description { state: "disabled_visible" 0.0;
2149 inherit: "default" 0.0;
2150 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2153 description { state: "focused" 0.0;
2154 inherit: "default" 0.0;
2156 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
2159 part { name: "over2";
2162 ignore_flags: ON_HOLD;
2163 description { state: "default" 0.0;
2167 part { name: "over3";
2170 description { state: "default" 0.0;
2174 part { name: "clipper";
2176 description { state: "default" 0.0;
2177 color: 255 255 255 255;
2180 part { name: "disabler";
2182 description { state: "default" 0.0;
2186 description { state: "disabled" 0.0;
2187 inherit: "default" 0.0;
2193 program { name: "button_click";
2194 signal: "mouse,down,1";
2196 action: SIGNAL_EMIT "elm,action,press" "";
2197 after: "button_click_anim";
2199 program { name: "button_click_anim";
2200 action: STATE_SET "clicked" 0.0;
2201 target: "button_image";
2202 after: "text_clicked";
2204 program { name: "text_clicked";
2208 get_state(PART:"elm.text", st, 30, vl);
2209 if (!strcmp(st, "visible"))
2210 set_state(PART:"elm.text", "clicked", 0.0);
2213 program { name: "button_unpress";
2214 action: SIGNAL_EMIT "elm,action,unpress" "";
2216 program { name: "button_mouseout_clicked";
2217 signal: "mouse,up,1";
2222 get_state(PART:"elm.swallow.content", st, 30, vl);
2223 if (strcmp(st, "icononly"))
2225 emit("elm,action,default,text,set", "");
2226 set_state(PART:"elm.text", "visible", 0.0);
2228 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2229 set_state(PART:"button_image", "default", 0.0);
2231 after: button_unpress;
2233 program { name: "touch_snd";
2234 signal: "mouse,clicked,1";
2236 action: PLAY_SAMPLE "touch_sound" 1.0;
2237 after: button_unclick3;
2239 program { name: "button_unclick3";
2240 action: SIGNAL_EMIT "elm,action,click" "";
2242 program { name: "text_show";
2243 signal: "elm,state,text,visible";
2248 get_state(PART:"elm.swallow.content", st, 30, vl);
2249 if (!strcmp(st, "icononly"))
2251 set_state(PART:"elm.swallow.content", "visible", 0.0);
2252 set_state(PART:"icon_rect", "visible", 0.0);
2253 set_state(PART:"padding_after_icon", "visible", 0.0);
2254 set_state(PART:"bg", "visible", 0.0);
2256 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2257 set_state(PART:"elm.text", "visible", 0.0);
2259 set_state(PART:"elm.text", "disabled_visible", 0.0);
2262 program { name: "text_hide";
2263 signal: "elm,state,text,hidden";
2268 get_state(PART:"elm.swallow.content", st, 30, vl);
2269 if (!strcmp(st, "visible"))
2271 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2272 set_state(PART:"icon_rect", "icononly", 0.0);
2273 set_state(PART:"padding_after_icon", "icononly", 0.0);
2274 set_state(PART:"bg", "icononly", 0.0);
2276 set_state(PART:"elm.text", "default", 0.0);
2279 program { name: "icon_show";
2280 signal: "elm,state,icon,visible";
2285 get_state(PART:"elm.text", st, 30, vl);
2286 if (!strcmp(st, "visible"))
2288 set_state(PART:"elm.swallow.content", "visible", 0.0);
2289 set_state(PART:"icon_rect", "visible", 0.0);
2290 set_state(PART:"padding_after_icon", "visible", 0.0);
2291 set_state(PART:"bg", "visible", 0.0);
2295 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2296 set_state(PART:"icon_rect", "icononly", 0.0);
2297 set_state(PART:"padding_after_icon", "icononly", 0.0);
2298 set_state(PART:"bg", "icononly", 0.0);
2302 program { name: "icon_hide";
2303 signal: "elm,state,icon,hidden";
2305 action: STATE_SET "default" 0.0;
2306 target: "elm.swallow.content";
2307 target: "padding_after_icon";
2308 target: "icon_rect";
2311 program { name: "disable";
2312 signal: "elm,state,disabled";
2314 action: STATE_SET "disabled" 0.0;
2315 target: "button_image";
2317 after: "disable_text";
2319 program { name: "disable_text";
2323 get_state(PART:"elm.text", st, 30, vl);
2324 if (!strcmp(st, "visible"))
2325 set_state(PART:"elm.text", "disabled_visible", 0.0);
2327 set_state(PART:"elm.text", "disabled", 0.0);
2328 set_int(button_state, BUTTON_STATE_DISABLED);
2331 program { name: "enable";
2332 signal: "elm,state,enabled";
2334 action: STATE_SET "default" 0.0;
2335 target: "button_image";
2337 after: "enable_text";
2339 program { name: "enable_text";
2343 get_state(PART:"elm.text", st, 30, vl);
2344 if (!strcmp(st, "disabled_visible"))
2345 set_state(PART:"elm.text", "visible", 0.0);
2347 set_state(PART:"elm.text", "default", 0.0);
2348 set_int(button_state, BUTTON_STATE_ENABLED);
2351 program { name: "focused";
2352 //signal: "elm,action,focus";
2354 action: STATE_SET "focused" 0.0;
2355 target: "button_image";
2358 program { name: "unfocused";
2359 //signal: "elm,action,unfocus";
2361 action: STATE_SET "default" 0.0;
2362 target: "button_image";
2363 after: "unfocus_text";
2365 program { name: "unfocus_text";
2366 action: STATE_SET "visible" 0.0;
2372 ///////////////////////////////////////////////////////////////////////////////////////
2373 group { name: "elm/button/base/sweep";
2374 alias: "elm/button/base/text_only/sweep";
2376 image: "00_button_sweep.png" COMP;
2377 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
2378 image: "00_button_sweep_dim.png" COMP;
2381 public button_state = BUTTON_STATE_ENABLED;
2384 part { name: "button_image";
2386 description { state: "default" 0.0;
2387 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2389 normal: "00_button_sweep.png";
2390 border: BUTTON_SWEEP_BG_BORDER_INC;
2394 description { state: "clicked" 0.0;
2395 inherit: "default" 0.0;
2396 image.normal: "00_button_sweep_press.png";
2398 description { state: "disabled" 0.0;
2399 inherit: "default" 0.0;
2400 image.normal: "00_button_sweep_dim.png";
2402 description { state: "focused" 0.0;
2403 inherit: "default" 0.0;
2404 image.normal: "00_button_sweep_press.png";
2407 part { name: "padding_left_top";
2411 description { state: "default" 0.0;
2413 rel2.relative: 0.0 0.0;
2414 min: BUTTON_SWEEP_PADDING_MIN_INC;
2419 part { name: "padding_right_bottom";
2423 description { state: "default" 0.0;
2425 rel1.relative: 1.0 1.0;
2426 min: BUTTON_SWEEP_PADDING_MIN_INC;
2431 part { name: "icon_rect";
2435 description { state: "default" 0.0;
2436 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2440 to_x: "elm.swallow.content";
2441 to_y: "padding_left_top";
2445 to_x: "elm.swallow.content";
2446 to_y: "padding_right_bottom";
2452 part { name: "padding_icon_text";
2456 description { state: "default" 0.0; //when only icon or no icon is there
2462 rel2.to: "icon_rect";
2467 description { state: "icononly" 0.0;
2468 inherit: "default" 0.0;
2470 description { state: "visible" 0.0; //when icon is visible
2476 rel2.to: "icon_rect";
2478 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2482 part { name: "elm.swallow.content";
2486 description { state: "default" 0.0;
2491 to: "padding_left_top";
2495 to_x: "padding_left_top";
2496 to_y: "padding_right_bottom";
2500 description { state: "visible" 0.0;
2505 to: "padding_left_top";
2509 to_x: "padding_left_top";
2510 to_y: "padding_right_bottom";
2513 aspect_preference: VERTICAL;
2515 description { state: "icononly" 0.0;
2516 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2519 to: "padding_left_top";
2523 to_x: "padding_left_top";
2524 to_y: "padding_right_bottom";
2528 part { name: "elm.text";
2533 description { state: "default" 0.0;
2537 to_x: "padding_icon_text";
2538 to_y: "padding_left_top";
2542 to: "padding_right_bottom";
2544 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2546 font: "SLP:style=Medium";
2547 size: BUTTON_SWEEP_FONT_SIZE_INC;
2549 text_class: "slp_medium";
2552 description { state: "visible" 0.0;
2553 inherit: "default" 0.0;
2555 min: BUTTON_SWEEP_TEXT_MIN_INC;
2557 description { state: "clicked" 0.0;
2558 inherit: "default" 0.0;
2561 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2563 description { state: "disabled" 0.0;
2564 inherit: "default" 0.0;
2567 description { state: "disabled_visible" 0.0;
2568 inherit: "default" 0.0;
2569 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2571 min: BUTTON_SWEEP_TEXT_MIN_INC;
2573 description { state: "focused" 0.0;
2574 inherit: "default" 0.0;
2577 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2580 part { name: "over2";
2583 ignore_flags: ON_HOLD;
2584 description { state: "default" 0.0;
2588 part { name: "over3";
2591 description { state: "default" 0.0;
2595 part { name: "clipper";
2597 description { state: "default" 0.0;
2598 color: 255 255 255 255;
2601 part { name: "disabler";
2603 description { state: "default" 0.0;
2607 description { state: "disabled" 0.0;
2608 inherit: "default" 0.0;
2614 program { name: "button_click";
2615 signal: "mouse,down,1";
2617 action: SIGNAL_EMIT "elm,action,press" "";
2618 after: "button_click_anim";
2620 program { name: "button_click_anim";
2621 action: STATE_SET "clicked" 0.0;
2622 target: "button_image";
2623 after: "text_clicked";
2625 program { name: "text_clicked";
2629 get_state(PART:"elm.text", st, 30, vl);
2630 if (!strcmp(st, "visible"))
2631 set_state(PART:"elm.text", "clicked", 0.0);
2634 program { name: "button_unpress";
2635 action: SIGNAL_EMIT "elm,action,unpress" "";
2637 program { name: "button_mouseout_clicked";
2638 signal: "mouse,up,1";
2643 get_state(PART:"elm.swallow.content", st, 30, vl);
2644 if (strcmp(st, "icononly"))
2646 emit("elm,action,default,text,set", "");
2647 set_state(PART:"elm.text", "visible", 0.0);
2649 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2650 set_state(PART:"button_image", "default", 0.0);
2652 after: button_unpress;
2654 program { name: "touch_snd";
2655 signal: "mouse,clicked,1";
2657 action: PLAY_SAMPLE "touch_sound" 1.0;
2658 after: button_unclick3;
2660 program { name: "button_unclick3";
2661 action: SIGNAL_EMIT "elm,action,click" "";
2663 program { name: "text_show";
2664 signal: "elm,state,text,visible";
2669 get_state(PART:"elm.swallow.content", st, 30, vl);
2670 if (!strcmp(st, "icononly"))
2672 set_state(PART:"elm.swallow.content", "visible", 0.0);
2673 set_state(PART:"padding_icon_text", "visible", 0.0);
2675 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2676 set_state(PART:"elm.text", "visible", 0.0);
2678 set_state(PART:"elm.text", "disabled_visible", 0.0);
2681 program { name: "text_hide";
2682 signal: "elm,state,text,hidden";
2687 get_state(PART:"elm.swallow.content", st, 30, vl);
2688 if (!strcmp(st, "visible"))
2690 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2691 set_state(PART:"padding_icon_text", "icononly", 0.0);
2693 set_state(PART:"elm.text", "default", 0.0);
2696 program { name: "icon_show";
2697 signal: "elm,state,icon,visible";
2702 get_state(PART:"elm.text", st, 30, vl);
2703 if (!strcmp(st, "visible"))
2705 set_state(PART:"elm.swallow.content", "visible", 0.0);
2706 set_state(PART:"padding_icon_text", "visible", 0.0);
2710 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2711 set_state(PART:"padding_icon_text", "icononly", 0.0);
2715 program { name: "icon_hide";
2716 signal: "elm,state,icon,hidden";
2718 action: STATE_SET "default" 0.0;
2719 target: "elm.swallow.content";
2720 target: "padding_icon_text";
2722 program { name: "disable";
2723 signal: "elm,state,disabled";
2725 action: STATE_SET "disabled" 0.0;
2726 target: "button_image";
2728 after: "disable_text";
2730 program { name: "disable_text";
2734 get_state(PART:"elm.text", st, 30, vl);
2735 if (!strcmp(st, "visible"))
2736 set_state(PART:"elm.text", "disabled_visible", 0.0);
2738 set_state(PART:"elm.text", "disabled", 0.0);
2739 set_int(button_state, BUTTON_STATE_DISABLED);
2742 program { name: "enable";
2743 signal: "elm,state,enabled";
2745 action: STATE_SET "default" 0.0;
2746 target: "button_image";
2748 after: "enable_text";
2750 program { name: "enable_text";
2754 get_state(PART:"elm.text", st, 30, vl);
2755 if (!strcmp(st, "disabled_visible"))
2756 set_state(PART:"elm.text", "visible", 0.0);
2758 set_state(PART:"elm.text", "default", 0.0);
2759 set_int(button_state, BUTTON_STATE_ENABLED);
2762 program { name: "focused";
2763 //signal: "elm,action,focus";
2765 action: STATE_SET "focused" 0.0;
2766 target: "button_image";
2769 program { name: "unfocused";
2770 //signal: "elm,action,unfocus";
2772 action: STATE_SET "default" 0.0;
2773 target: "button_image";
2774 after: "unfocus_text";
2776 program { name: "unfocus_text";
2777 action: STATE_SET "visible" 0.0;
2783 ///////////////////////////////////////////////////////////////////////////////////////
2784 group { name: "elm/button/base/sweep/multiline";
2786 image: "00_button_sweep.png" COMP;
2787 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
2788 image: "00_button_sweep_dim.png" COMP;
2791 style { name: "btn_sweep_multiline";
2792 base: "font=SLP:style=Roman font_size="BUTTON_SWEEP_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
2799 public button_state = BUTTON_STATE_ENABLED;
2802 part { name: "button_image";
2804 description { state: "default" 0.0;
2805 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2807 normal: "00_button_sweep.png";
2808 border: BUTTON_SWEEP_BG_BORDER_INC;
2812 description { state: "clicked" 0.0;
2813 inherit: "default" 0.0;
2814 image.normal: "00_button_sweep_press.png";
2816 description { state: "disabled" 0.0;
2817 inherit: "default" 0.0;
2818 image.normal: "00_button_sweep_dim.png";
2820 description { state: "focused" 0.0;
2821 inherit: "default" 0.0;
2822 image.normal: "00_button_sweep_press.png";
2825 part { name: "padding_left_top";
2829 description { state: "default" 0.0;
2831 rel2.relative: 0.0 0.0;
2832 min: BUTTON_SWEEP_PADDING_MIN_INC;
2837 part { name: "padding_right_bottom";
2841 description { state: "default" 0.0;
2843 rel1.relative: 1.0 1.0;
2844 min: BUTTON_SWEEP_PADDING_MIN_INC;
2849 part { name: "icon_rect";
2853 description { state: "default" 0.0;
2854 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2858 to_x: "elm.swallow.content";
2859 to_y: "padding_left_top";
2863 to_x: "elm.swallow.content";
2864 to_y: "padding_right_bottom";
2870 part { name: "padding_icon_text";
2874 description { state: "default" 0.0; //when only icon or no icon is there
2880 rel2.to: "icon_rect";
2885 description { state: "icononly" 0.0;
2886 inherit: "default" 0.0;
2888 description { state: "visible" 0.0; //when icon is visible
2894 rel2.to: "icon_rect";
2896 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2900 part { name: "elm.swallow.content";
2904 description { state: "default" 0.0;
2909 to: "padding_left_top";
2913 to_x: "padding_left_top";
2914 to_y: "padding_right_bottom";
2918 description { state: "visible" 0.0;
2923 to: "padding_left_top";
2927 to_x: "padding_left_top";
2928 to_y: "padding_right_bottom";
2931 aspect_preference: VERTICAL;
2933 description { state: "icononly" 0.0;
2934 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2937 to: "padding_left_top";
2941 to_x: "padding_left_top";
2942 to_y: "padding_right_bottom";
2946 part { name: "elm.text";
2951 description { state: "default" 0.0;
2955 to_x: "padding_icon_text";
2956 to_y: "padding_left_top";
2960 to: "padding_right_bottom";
2962 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2964 style: "btn_sweep_multiline";
2969 description { state: "visible" 0.0;
2970 inherit: "default" 0.0;
2972 min: BUTTON_SWEEP_TEXT_MIN_INC;
2974 description { state: "clicked" 0.0;
2975 inherit: "default" 0.0;
2978 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2980 description { state: "disabled" 0.0;
2981 inherit: "default" 0.0;
2984 description { state: "disabled_visible" 0.0;
2985 inherit: "default" 0.0;
2986 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2988 min: BUTTON_SWEEP_TEXT_MIN_INC;
2990 description { state: "focused" 0.0;
2991 inherit: "default" 0.0;
2994 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2997 part { name: "over2";
3000 ignore_flags: ON_HOLD;
3001 description { state: "default" 0.0;
3005 part { name: "over3";
3008 description { state: "default" 0.0;
3012 part { name: "clipper";
3014 description { state: "default" 0.0;
3015 color: 255 255 255 255;
3018 part { name: "disabler";
3020 description { state: "default" 0.0;
3024 description { state: "disabled" 0.0;
3025 inherit: "default" 0.0;
3031 program { name: "button_click";
3032 signal: "mouse,down,1";
3034 action: SIGNAL_EMIT "elm,action,press" "";
3035 after: "button_click_anim";
3037 program { name: "button_click_anim";
3038 action: STATE_SET "clicked" 0.0;
3039 target: "button_image";
3040 after: "text_clicked";
3042 program { name: "text_clicked";
3046 get_state(PART:"elm.text", st, 30, vl);
3047 if (!strcmp(st, "visible"))
3048 set_state(PART:"elm.text", "clicked", 0.0);
3051 program { name: "button_unpress";
3052 action: SIGNAL_EMIT "elm,action,unpress" "";
3054 program { name: "button_mouseout_clicked";
3055 signal: "mouse,up,1";
3060 get_state(PART:"elm.swallow.content", st, 30, vl);
3061 if (strcmp(st, "icononly"))
3063 emit("elm,action,default,text,set", "");
3064 set_state(PART:"elm.text", "visible", 0.0);
3066 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3067 set_state(PART:"button_image", "default", 0.0);
3069 after: button_unpress;
3071 program { name: "touch_snd";
3072 signal: "mouse,clicked,1";
3074 action: PLAY_SAMPLE "touch_sound" 1.0;
3075 after: button_unclick3;
3077 program { name: "button_unclick3";
3078 action: SIGNAL_EMIT "elm,action,click" "";
3080 program { name: "text_show";
3081 signal: "elm,state,text,visible";
3086 get_state(PART:"elm.swallow.content", st, 30, vl);
3087 if (!strcmp(st, "icononly"))
3089 set_state(PART:"elm.swallow.content", "visible", 0.0);
3090 set_state(PART:"padding_icon_text", "visible", 0.0);
3092 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3093 set_state(PART:"elm.text", "visible", 0.0);
3095 set_state(PART:"elm.text", "disabled_visible", 0.0);
3098 program { name: "text_hide";
3099 signal: "elm,state,text,hidden";
3104 get_state(PART:"elm.swallow.content", st, 30, vl);
3105 if (!strcmp(st, "visible"))
3107 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3108 set_state(PART:"padding_icon_text", "icononly", 0.0);
3110 set_state(PART:"elm.text", "default", 0.0);
3113 program { name: "icon_show";
3114 signal: "elm,state,icon,visible";
3119 get_state(PART:"elm.text", st, 30, vl);
3120 if (!strcmp(st, "visible"))
3122 set_state(PART:"elm.swallow.content", "visible", 0.0);
3123 set_state(PART:"padding_icon_text", "visible", 0.0);
3127 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3128 set_state(PART:"padding_icon_text", "icononly", 0.0);
3132 program { name: "icon_hide";
3133 signal: "elm,state,icon,hidden";
3135 action: STATE_SET "default" 0.0;
3136 target: "elm.swallow.content";
3137 target: "padding_icon_text";
3139 program { name: "disable";
3140 signal: "elm,state,disabled";
3142 action: STATE_SET "disabled" 0.0;
3143 target: "button_image";
3145 after: "disable_text";
3147 program { name: "disable_text";
3151 get_state(PART:"elm.text", st, 30, vl);
3152 if (!strcmp(st, "visible"))
3153 set_state(PART:"elm.text", "disabled_visible", 0.0);
3155 set_state(PART:"elm.text", "disabled", 0.0);
3156 set_int(button_state, BUTTON_STATE_DISABLED);
3159 program { name: "enable";
3160 signal: "elm,state,enabled";
3162 action: STATE_SET "default" 0.0;
3163 target: "button_image";
3165 after: "enable_text";
3167 program { name: "enable_text";
3171 get_state(PART:"elm.text", st, 30, vl);
3172 if (!strcmp(st, "disabled_visible"))
3173 set_state(PART:"elm.text", "visible", 0.0);
3175 set_state(PART:"elm.text", "default", 0.0);
3176 set_int(button_state, BUTTON_STATE_ENABLED);
3179 program { name: "focused";
3180 //signal: "elm,action,focus";
3182 action: STATE_SET "focused" 0.0;
3183 target: "button_image";
3186 program { name: "unfocused";
3187 //signal: "elm,action,unfocus";
3189 action: STATE_SET "default" 0.0;
3190 target: "button_image";
3191 after: "unfocus_text";
3193 program { name: "unfocus_text";
3194 action: STATE_SET "visible" 0.0;
3199 ///////////////////////////////////////////////////////////////////////////////////////
3200 group { name: "elm/button/base/searchbar/default";
3202 image: "00_search_input_field_bg.png" COMP;
3203 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
3204 image: "00_button_sweep_dim.png" COMP;
3207 public button_state = BUTTON_STATE_ENABLED;
3210 part { name: "button_image";
3212 description { state: "default" 0.0;
3213 min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
3215 normal: "00_search_input_field_bg.png";
3216 border: BUTTON_SEARCHBAR_BG_BORDER_INC;
3220 description { state: "clicked" 0.0;
3221 inherit: "default" 0.0;
3223 normal: "00_button_sweep_press.png";
3224 border: BUTTON_SWEEP_BG_BORDER_INC;
3228 description { state: "disabled" 0.0;
3229 inherit: "default" 0.0;
3231 normal: "00_button_sweep_dim.png";
3232 border: BUTTON_SWEEP_BG_BORDER_INC;
3236 description { state: "focused" 0.0;
3237 inherit: "default" 0.0;
3239 normal: "00_button_sweep_press.png";
3240 border: BUTTON_SWEEP_BG_BORDER_INC;
3245 part { name: "padding_left_top";
3249 description { state: "default" 0.0;
3251 rel2.relative: 0.0 0.0;
3252 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3257 part { name: "padding_right_bottom";
3261 description { state: "default" 0.0;
3263 rel1.relative: 1.0 1.0;
3264 min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3269 part { name: "icon_rect";
3273 description { state: "default" 0.0;
3274 min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3278 to_x: "elm.swallow.content";
3279 to_y: "padding_left_top";
3283 to_x: "elm.swallow.content";
3284 to_y: "padding_right_bottom";
3290 part { name: "padding_icon_text";
3294 description { state: "default" 0.0; //when only icon or no icon is there
3300 rel2.to: "icon_rect";
3305 description { state: "icononly" 0.0;
3306 inherit: "default" 0.0;
3308 description { state: "visible" 0.0; //when icon is visible
3314 rel2.to: "icon_rect";
3316 min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3320 part { name: "elm.swallow.content";
3324 description { state: "default" 0.0;
3329 to: "padding_left_top";
3333 to_x: "padding_left_top";
3334 to_y: "padding_right_bottom";
3338 description { state: "visible" 0.0;
3343 to: "padding_left_top";
3347 to_x: "padding_left_top";
3348 to_y: "padding_right_bottom";
3351 aspect_preference: VERTICAL;
3353 description { state: "icononly" 0.0;
3354 min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3357 to: "padding_left_top";
3361 to_x: "padding_left_top";
3362 to_y: "padding_right_bottom";
3366 part { name: "elm.text";
3371 description { state: "default" 0.0;
3375 to_x: "padding_icon_text";
3376 to_y: "padding_left_top";
3380 to: "padding_right_bottom";
3382 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3384 font: "SLP:style=Medium";
3385 size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3387 text_class: "slp_medium";
3390 description { state: "visible" 0.0;
3391 inherit: "default" 0.0;
3393 min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3395 description { state: "clicked" 0.0;
3396 inherit: "default" 0.0;
3399 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3401 description { state: "disabled" 0.0;
3402 inherit: "default" 0.0;
3405 description { state: "disabled_visible" 0.0;
3406 inherit: "default" 0.0;
3407 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3409 min: BUTTON_SWEEP_TEXT_MIN_INC;
3411 description { state: "focused" 0.0;
3412 inherit: "default" 0.0;
3415 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3418 part { name: "over2";
3421 ignore_flags: ON_HOLD;
3422 description { state: "default" 0.0;
3426 part { name: "over3";
3429 description { state: "default" 0.0;
3433 part { name: "clipper";
3435 description { state: "default" 0.0;
3436 color: 255 255 255 255;
3439 part { name: "disabler";
3441 description { state: "default" 0.0;
3445 description { state: "disabled" 0.0;
3446 inherit: "default" 0.0;
3452 program { name: "button_click";
3453 signal: "mouse,down,1";
3455 action: SIGNAL_EMIT "elm,action,press" "";
3456 after: "button_click_anim";
3458 program { name: "button_click_anim";
3459 action: STATE_SET "clicked" 0.0;
3460 target: "button_image";
3461 after: "text_clicked";
3463 program { name: "text_clicked";
3467 get_state(PART:"elm.text", st, 30, vl);
3468 if (!strcmp(st, "visible"))
3469 set_state(PART:"elm.text", "clicked", 0.0);
3472 program { name: "button_unpress";
3473 action: SIGNAL_EMIT "elm,action,unpress" "";
3475 program { name: "button_mouseout_clicked";
3476 signal: "mouse,up,1";
3481 get_state(PART:"elm.swallow.content", st, 30, vl);
3482 if (strcmp(st, "icononly"))
3484 emit("elm,action,default,text,set", "");
3485 set_state(PART:"elm.text", "visible", 0.0);
3487 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3488 set_state(PART:"button_image", "default", 0.0);
3490 after: button_unpress;
3492 program { name: "touch_snd";
3493 signal: "mouse,clicked,1";
3495 action: PLAY_SAMPLE "touch_sound" 1.0;
3496 after: button_unclick3;
3498 program { name: "button_unclick3";
3499 action: SIGNAL_EMIT "elm,action,click" "";
3501 program { name: "text_show";
3502 signal: "elm,state,text,visible";
3507 get_state(PART:"elm.swallow.content", st, 30, vl);
3508 if (!strcmp(st, "icononly"))
3510 set_state(PART:"elm.swallow.content", "visible", 0.0);
3511 set_state(PART:"padding_icon_text", "visible", 0.0);
3513 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3514 set_state(PART:"elm.text", "visible", 0.0);
3516 set_state(PART:"elm.text", "disabled_visible", 0.0);
3519 program { name: "text_hide";
3520 signal: "elm,state,text,hidden";
3525 get_state(PART:"elm.swallow.content", st, 30, vl);
3526 if (!strcmp(st, "visible"))
3528 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3529 set_state(PART:"padding_icon_text", "icononly", 0.0);
3531 set_state(PART:"elm.text", "default", 0.0);
3534 program { name: "icon_show";
3535 signal: "elm,state,icon,visible";
3540 get_state(PART:"elm.text", st, 30, vl);
3541 if (!strcmp(st, "visible"))
3543 set_state(PART:"elm.swallow.content", "visible", 0.0);
3544 set_state(PART:"padding_icon_text", "visible", 0.0);
3548 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3549 set_state(PART:"padding_icon_text", "icononly", 0.0);
3553 program { name: "icon_hide";
3554 signal: "elm,state,icon,hidden";
3556 action: STATE_SET "default" 0.0;
3557 target: "elm.swallow.content";
3558 target: "padding_icon_text";
3560 program { name: "disable";
3561 signal: "elm,state,disabled";
3563 action: STATE_SET "disabled" 0.0;
3564 target: "button_image";
3566 after: "disable_text";
3568 program { name: "disable_text";
3572 get_state(PART:"elm.text", st, 30, vl);
3573 if (!strcmp(st, "visible"))
3574 set_state(PART:"elm.text", "disabled_visible", 0.0);
3576 set_state(PART:"elm.text", "disabled", 0.0);
3577 set_int(button_state, BUTTON_STATE_DISABLED);
3580 program { name: "enable";
3581 signal: "elm,state,enabled";
3583 action: STATE_SET "default" 0.0;
3584 target: "button_image";
3586 after: "enable_text";
3588 program { name: "enable_text";
3592 get_state(PART:"elm.text", st, 30, vl);
3593 if (!strcmp(st, "disabled_visible"))
3594 set_state(PART:"elm.text", "visible", 0.0);
3596 set_state(PART:"elm.text", "default", 0.0);
3597 set_int(button_state, BUTTON_STATE_ENABLED);
3600 program { name: "focused";
3601 //signal: "elm,action,focus";
3603 action: STATE_SET "focused" 0.0;
3604 target: "button_image";
3607 program { name: "unfocused";
3608 //signal: "elm,action,unfocus";
3610 action: STATE_SET "default" 0.0;
3611 target: "button_image";
3612 after: "unfocus_text";
3614 program { name: "unfocus_text";
3615 action: STATE_SET "visible" 0.0;
3621 ///////////////////////////////////////////////////////////////////////////////////////
3622 group { name: "elm/button/base/sweep/delete";
3624 image: "00_button_sweep.png" COMP;
3625 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
3626 image: "00_button_sweep_dim.png" COMP;
3627 image: "00_button_sweep_delete.png" COMP;
3630 public button_state = BUTTON_STATE_ENABLED;
3633 part { name: "button_image";
3635 description { state: "default" 0.0;
3636 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3638 normal: "00_button_sweep_delete.png";
3639 border: BUTTON_SWEEP_BG_BORDER_INC;
3643 description { state: "clicked" 0.0;
3644 inherit: "default" 0.0;
3645 image.normal: "00_button_sweep_press.png";
3647 description { state: "disabled" 0.0;
3648 inherit: "default" 0.0;
3649 image.normal: "00_button_sweep_dim.png";
3651 description { state: "focused" 0.0;
3652 inherit: "default" 0.0;
3653 image.normal: "00_button_sweep_press.png";
3656 part { name: "padding_left_top";
3660 description { state: "default" 0.0;
3662 rel2.relative: 0.0 0.0;
3663 min: BUTTON_SWEEP_PADDING_MIN_INC;
3668 part { name: "padding_right_bottom";
3672 description { state: "default" 0.0;
3674 rel1.relative: 1.0 1.0;
3675 min: BUTTON_SWEEP_PADDING_MIN_INC;
3680 part { name: "icon_rect";
3684 description { state: "default" 0.0;
3685 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3689 to_x: "elm.swallow.content";
3690 to_y: "padding_left_top";
3694 to_x: "elm.swallow.content";
3695 to_y: "padding_right_bottom";
3701 part { name: "padding_icon_text";
3705 description { state: "default" 0.0; //when only icon or no icon is there
3711 rel2.to: "icon_rect";
3716 description { state: "icononly" 0.0;
3717 inherit: "default" 0.0;
3719 description { state: "visible" 0.0; //when icon is visible
3725 rel2.to: "icon_rect";
3727 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3731 part { name: "elm.swallow.content";
3735 description { state: "default" 0.0;
3740 to: "padding_left_top";
3744 to_x: "padding_left_top";
3745 to_y: "padding_right_bottom";
3749 description { state: "visible" 0.0;
3754 to: "padding_left_top";
3758 to_x: "padding_left_top";
3759 to_y: "padding_right_bottom";
3762 aspect_preference: VERTICAL;
3764 description { state: "icononly" 0.0;
3765 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3768 to: "padding_left_top";
3772 to_x: "padding_left_top";
3773 to_y: "padding_right_bottom";
3777 part { name: "elm.text";
3782 description { state: "default" 0.0;
3785 to_x: "padding_icon_text";
3786 to_y: "padding_left_top";
3790 to: "padding_right_bottom";
3792 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3794 font: "SLP:style=Medium";
3795 size: BUTTON_SWEEP_FONT_SIZE_INC;
3799 text_class: "slp_medium";
3802 description { state: "visible" 0.0;
3803 inherit: "default" 0.0;
3805 description { state: "clicked" 0.0;
3806 inherit: "default" 0.0;
3807 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3809 description { state: "disabled" 0.0;
3810 inherit: "default" 0.0;
3813 description { state: "disabled_visible" 0.0;
3814 inherit: "default" 0.0;
3815 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3817 description { state: "focused" 0.0;
3818 inherit: "default" 0.0;
3821 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3824 part { name: "over2";
3827 ignore_flags: ON_HOLD;
3828 description { state: "default" 0.0;
3832 part { name: "over3";
3835 description { state: "default" 0.0;
3839 part { name: "clipper";
3841 description { state: "default" 0.0;
3842 color: 255 255 255 255;
3845 part { name: "disabler";
3847 description { state: "default" 0.0;
3851 description { state: "disabled" 0.0;
3852 inherit: "default" 0.0;
3858 program { name: "button_click";
3859 signal: "mouse,down,1";
3861 action: SIGNAL_EMIT "elm,action,press" "";
3862 after: "button_click_anim";
3864 program { name: "button_click_anim";
3865 action: STATE_SET "clicked" 0.0;
3866 target: "button_image";
3867 after: "text_clicked";
3869 program { name: "text_clicked";
3873 get_state(PART:"elm.text", st, 30, vl);
3874 if (!strcmp(st, "visible"))
3875 set_state(PART:"elm.text", "clicked", 0.0);
3878 program { name: "button_unpress";
3879 action: SIGNAL_EMIT "elm,action,unpress" "";
3881 program { name: "button_mouseout_clicked";
3882 signal: "mouse,up,1";
3887 get_state(PART:"elm.swallow.content", st, 30, vl);
3888 if (strcmp(st, "icononly"))
3890 emit("elm,action,default,text,set", "");
3891 set_state(PART:"elm.text", "visible", 0.0);
3893 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3894 set_state(PART:"button_image", "default", 0.0);
3896 after: button_unpress;
3898 program { name: "touch_snd";
3899 signal: "mouse,clicked,1";
3901 action: PLAY_SAMPLE "touch_sound" 1.0;
3902 after: button_unclick3;
3904 program { name: "button_unclick3";
3905 action: SIGNAL_EMIT "elm,action,click" "";
3907 program { name: "text_show";
3908 signal: "elm,state,text,visible";
3913 get_state(PART:"elm.swallow.content", st, 30, vl);
3914 if (!strcmp(st, "icononly"))
3916 set_state(PART:"elm.swallow.content", "visible", 0.0);
3917 set_state(PART:"padding_icon_text", "visible", 0.0);
3919 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3920 set_state(PART:"elm.text", "visible", 0.0);
3922 set_state(PART:"elm.text", "disabled_visible", 0.0);
3925 program { name: "text_hide";
3926 signal: "elm,state,text,hidden";
3931 get_state(PART:"elm.swallow.content", st, 30, vl);
3932 if (!strcmp(st, "visible"))
3934 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3935 set_state(PART:"padding_icon_text", "icononly", 0.0);
3937 set_state(PART:"elm.text", "default", 0.0);
3940 program { name: "icon_show";
3941 signal: "elm,state,icon,visible";
3946 get_state(PART:"elm.text", st, 30, vl);
3947 if (!strcmp(st, "visible"))
3949 set_state(PART:"elm.swallow.content", "visible", 0.0);
3950 set_state(PART:"padding_icon_text", "visible", 0.0);
3954 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3955 set_state(PART:"padding_icon_text", "icononly", 0.0);
3959 program { name: "icon_hide";
3960 signal: "elm,state,icon,hidden";
3962 action: STATE_SET "default" 0.0;
3963 target: "elm.swallow.content";
3964 target: "padding_icon_text";
3966 program { name: "disable";
3967 signal: "elm,state,disabled";
3969 action: STATE_SET "disabled" 0.0;
3970 target: "button_image";
3972 after: "disable_text";
3974 program { name: "disable_text";
3978 get_state(PART:"elm.text", st, 30, vl);
3979 if (!strcmp(st, "visible"))
3980 set_state(PART:"elm.text", "disabled_visible", 0.0);
3982 set_state(PART:"elm.text", "disabled", 0.0);
3983 set_int(button_state, BUTTON_STATE_DISABLED);
3986 program { name: "enable";
3987 signal: "elm,state,enabled";
3989 action: STATE_SET "default" 0.0;
3990 target: "button_image";
3992 after: "enable_text";
3994 program { name: "enable_text";
3998 get_state(PART:"elm.text", st, 30, vl);
3999 if (!strcmp(st, "disabled_visible"))
4000 set_state(PART:"elm.text", "visible", 0.0);
4002 set_state(PART:"elm.text", "default", 0.0);
4003 set_int(button_state, BUTTON_STATE_ENABLED);
4006 program { name: "focused";
4007 //signal: "elm,action,focus";
4009 action: STATE_SET "focused" 0.0;
4010 target: "button_image";
4013 program { name: "unfocused";
4014 //signal: "elm,action,unfocus";
4016 action: STATE_SET "default" 0.0;
4017 target: "button_image";
4018 after: "unfocus_text";
4020 program { name: "unfocus_text";
4021 action: STATE_SET "visible" 0.0;
4027 ///////////////////////////////////////////////////////////////////////////////////////
4028 group { name: "elm/button/base/popup_button/default";
4029 alias: "elm/button/base/popup_button/menustyle";
4030 alias: "elm/button/base/popup_button/liststyle";
4031 alias: "elm/button/base/popup_button/volumebarstyle";
4032 alias: "elm/button/base/popup_button/customstyle";
4033 alias: "elm/button/base/popup_button/verticalbuttonstyle";
4035 image: "00_button_popup_normal.png" COMP;
4036 image: "00_button_popup_press.png" COMP;
4037 image: "00_button_popup_focus.png" COMP;
4038 image: "00_button_popup_dim.png" COMP;
4041 public button_state = BUTTON_STATE_ENABLED;
4044 part { name: "button_image";
4046 description { state: "default" 0.0;
4047 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4049 normal: "00_button_popup_normal.png";
4050 border: BUTTON_POPUP_BG_BORDER_INC;
4054 description { state: "clicked" 0.0;
4055 inherit: "default" 0.0;
4056 image.normal: "00_button_popup_press.png";
4058 description { state: "disabled" 0.0;
4059 inherit: "default" 0.0;
4060 image.normal: "00_button_popup_dim.png";
4062 description { state: "focused" 0.0;
4063 inherit: "default" 0.0;
4064 image.normal: "00_button_popup_focus.png";
4067 part { name: "padding_left_top";
4071 description { state: "default" 0.0;
4073 rel2.relative: 0.0 0.0;
4074 min: BUTTON_POPUP_PADDING_MIN_INC;
4079 part { name: "padding_right_bottom";
4082 description { state: "default" 0.0;
4084 rel1.relative: 1.0 1.0;
4085 min: BUTTON_POPUP_PADDING_MIN_INC;
4090 part { name: "padding_icon_text";
4093 description { state: "default" 0.0; //when only icon or no icon is there
4097 to: "elm.swallow.content";
4099 rel2.to: "elm.swallow.content";
4104 description { state: "icononly" 0.0;
4105 inherit: "default" 0.0;
4107 description { state: "visible" 0.0; //when icon is visible
4108 inherit: "default" 0.0;
4109 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4112 part { name: "elm.swallow.content";
4116 description { state: "default" 0.0;
4121 to: "padding_left_top";
4125 to_x: "padding_left_top";
4126 to_y: "padding_right_bottom";
4130 description { state: "visible" 0.0;
4131 inherit: "default" 0.0;
4135 aspect_preference: VERTICAL;
4137 description { state: "icononly" 0.0;
4138 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4141 to: "padding_left_top";
4145 to_x: "padding_left_top";
4146 to_y: "padding_right_bottom";
4150 part { name: "elm.text";
4155 description { state: "default" 0.0;
4159 to_x: "padding_icon_text";
4160 to_y: "padding_left_top";
4164 to: "padding_right_bottom";
4166 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4168 font: "SLP:style=Medium";
4169 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4171 text_class: "slp_medium";
4174 description { state: "visible" 0.0;
4175 inherit: "default" 0.0;
4177 min: BUTTON_POPUP_TEXT_MIN_INC;
4179 description { state: "clicked" 0.0;
4180 inherit: "default" 0.0;
4183 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4185 description { state: "disabled" 0.0;
4186 inherit: "default" 0.0;
4189 description { state: "disabled_visible" 0.0;
4190 inherit: "default" 0.0;
4191 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4193 min: BUTTON_POPUP_TEXT_MIN_INC;
4195 description { state: "focused" 0.0;
4196 inherit: "default" 0.0;
4199 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4202 part { name: "over2";
4205 ignore_flags: ON_HOLD;
4206 description { state: "default" 0.0;
4210 part { name: "over3";
4213 description { state: "default" 0.0;
4217 part { name: "clipper";
4219 description { state: "default" 0.0;
4220 color: 255 255 255 255;
4223 part { name: "disabler";
4225 description { state: "default" 0.0;
4229 description { state: "disabled" 0.0;
4230 inherit: "default" 0.0;
4236 program { name: "button_click";
4237 signal: "mouse,down,1";
4239 action: SIGNAL_EMIT "elm,action,press" "";
4240 after: "button_click_anim";
4242 program { name: "button_click_anim";
4243 action: STATE_SET "clicked" 0.0;
4244 target: "button_image";
4245 after: "text_clicked";
4247 program { name: "text_clicked";
4251 get_state(PART:"elm.text", st, 30, vl);
4252 if (!strcmp(st, "visible"))
4253 set_state(PART:"elm.text", "clicked", 0.0);
4256 program { name: "button_unpress";
4257 action: SIGNAL_EMIT "elm,action,unpress" "";
4259 program { name: "button_mouseout_clicked";
4260 signal: "mouse,up,1";
4265 get_state(PART:"elm.swallow.content", st, 30, vl);
4266 if (strcmp(st, "icononly"))
4268 emit("elm,action,default,text,set", "");
4269 set_state(PART:"elm.text", "visible", 0.0);
4271 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4272 set_state(PART:"button_image", "default", 0.0);
4274 after: button_unpress;
4276 program { name: "touch_snd";
4277 signal: "mouse,clicked,1";
4279 action: PLAY_SAMPLE "touch_sound" 1.0;
4280 after: button_unclick3;
4282 program { name: "button_unclick3";
4283 action: SIGNAL_EMIT "elm,action,click" "";
4285 program { name: "text_show";
4286 signal: "elm,state,text,visible";
4291 get_state(PART:"elm.swallow.content", st, 30, vl);
4292 if (!strcmp(st, "icononly"))
4294 set_state(PART:"elm.swallow.content", "visible", 0.0);
4295 set_state(PART:"padding_icon_text", "visible", 0.0);
4297 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4298 set_state(PART:"elm.text", "visible", 0.0);
4300 set_state(PART:"elm.text", "disabled_visible", 0.0);
4303 program { name: "text_hide";
4304 signal: "elm,state,text,hidden";
4309 get_state(PART:"elm.swallow.content", st, 30, vl);
4310 if (!strcmp(st, "visible"))
4312 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4313 set_state(PART:"padding_icon_text", "icononly", 0.0);
4315 set_state(PART:"elm.text", "default", 0.0);
4318 program { name: "icon_show";
4319 signal: "elm,state,icon,visible";
4324 get_state(PART:"elm.text", st, 30, vl);
4325 if (!strcmp(st, "visible"))
4327 set_state(PART:"elm.swallow.content", "visible", 0.0);
4328 set_state(PART:"padding_icon_text", "visible", 0.0);
4332 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4333 set_state(PART:"padding_icon_text", "icononly", 0.0);
4337 program { name: "icon_hide";
4338 signal: "elm,state,icon,hidden";
4340 action: STATE_SET "default" 0.0;
4341 target: "elm.swallow.content";
4342 target: "padding_icon_text";
4344 program { name: "disable";
4345 signal: "elm,state,disabled";
4347 action: STATE_SET "disabled" 0.0;
4348 target: "button_image";
4350 after: "disable_text";
4352 program { name: "disable_text";
4356 get_state(PART:"elm.text", st, 30, vl);
4357 if (!strcmp(st, "visible"))
4358 set_state(PART:"elm.text", "disabled_visible", 0.0);
4360 set_state(PART:"elm.text", "disabled", 0.0);
4361 set_int(button_state, BUTTON_STATE_DISABLED);
4364 program { name: "enable";
4365 signal: "elm,state,enabled";
4367 action: STATE_SET "default" 0.0;
4368 target: "button_image";
4370 after: "enable_text";
4372 program { name: "enable_text";
4376 get_state(PART:"elm.text", st, 30, vl);
4377 if (!strcmp(st, "disabled_visible"))
4378 set_state(PART:"elm.text", "visible", 0.0);
4380 set_state(PART:"elm.text", "default", 0.0);
4381 set_int(button_state, BUTTON_STATE_ENABLED);
4384 program { name: "focused";
4385 action: STATE_SET "focused" 0.0;
4386 target: "button_image";
4389 program { name: "unfocused";
4390 action: STATE_SET "default" 0.0;
4391 target: "button_image";
4392 after: "unfocus_text";
4394 program { name: "unfocus_text";
4395 action: STATE_SET "visible" 0.0;
4400 ///////////////////////////////////////////////////////////////////////////////////////
4401 group { name: "elm/button/base/popup_button/default/multiline";
4403 image: "00_button_popup_normal.png" COMP;
4404 image: "00_button_popup_press.png" COMP;
4405 image: "00_button_popup_focus.png" COMP;
4406 image: "00_button_popup_dim.png" COMP;
4409 style { name: "btn_popup_multiline_style";
4410 base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4417 public button_state = BUTTON_STATE_ENABLED;
4420 part { name: "button_image";
4422 description { state: "default" 0.0;
4423 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4425 normal: "00_button_popup_normal.png";
4426 border: BUTTON_POPUP_BG_BORDER_INC;
4430 description { state: "clicked" 0.0;
4431 inherit: "default" 0.0;
4432 image.normal: "00_button_popup_press.png";
4434 description { state: "disabled" 0.0;
4435 inherit: "default" 0.0;
4436 image.normal: "00_button_popup_dim.png";
4438 description { state: "focused" 0.0;
4439 inherit: "default" 0.0;
4440 image.normal: "00_button_popup_focus.png";
4443 part { name: "padding_left_top";
4447 description { state: "default" 0.0;
4449 rel2.relative: 0.0 0.0;
4450 min: BUTTON_POPUP_PADDING_MIN_INC;
4455 part { name: "padding_right_bottom";
4458 description { state: "default" 0.0;
4460 rel1.relative: 1.0 1.0;
4461 min: BUTTON_POPUP_PADDING_MIN_INC;
4466 part { name: "padding_icon_text";
4469 description { state: "default" 0.0; //when only icon or no icon is there
4473 to: "elm.swallow.content";
4475 rel2.to: "elm.swallow.content";
4480 description { state: "icononly" 0.0;
4481 inherit: "default" 0.0;
4483 description { state: "visible" 0.0; //when icon is visible
4484 inherit: "default" 0.0;
4485 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4488 part { name: "elm.swallow.content";
4492 description { state: "default" 0.0;
4497 to: "padding_left_top";
4501 to_x: "padding_left_top";
4502 to_y: "padding_right_bottom";
4506 description { state: "visible" 0.0;
4507 inherit: "default" 0.0;
4511 aspect_preference: VERTICAL;
4513 description { state: "icononly" 0.0;
4514 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4517 to: "padding_left_top";
4521 to_x: "padding_left_top";
4522 to_y: "padding_right_bottom";
4526 part { name: "elm.text";
4531 description { state: "default" 0.0;
4535 to_x: "padding_icon_text";
4536 to_y: "padding_left_top";
4540 to: "padding_right_bottom";
4542 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4544 style: "btn_popup_multiline_style";
4549 description { state: "visible" 0.0;
4550 inherit: "default" 0.0;
4552 min: BUTTON_POPUP_TEXT_MIN_INC;
4554 description { state: "clicked" 0.0;
4555 inherit: "default" 0.0;
4558 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4560 description { state: "disabled" 0.0;
4561 inherit: "default" 0.0;
4564 description { state: "disabled_visible" 0.0;
4565 inherit: "default" 0.0;
4566 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4568 min: BUTTON_POPUP_TEXT_MIN_INC;
4570 description { state: "focused" 0.0;
4571 inherit: "default" 0.0;
4574 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4577 part { name: "over2";
4580 ignore_flags: ON_HOLD;
4581 description { state: "default" 0.0;
4585 part { name: "over3";
4588 description { state: "default" 0.0;
4592 part { name: "clipper";
4594 description { state: "default" 0.0;
4595 color: 255 255 255 255;
4598 part { name: "disabler";
4600 description { state: "default" 0.0;
4604 description { state: "disabled" 0.0;
4605 inherit: "default" 0.0;
4611 program { name: "button_click";
4612 signal: "mouse,down,1";
4614 action: SIGNAL_EMIT "elm,action,press" "";
4615 after: "button_click_anim";
4617 program { name: "button_click_anim";
4618 action: STATE_SET "clicked" 0.0;
4619 target: "button_image";
4620 after: "text_clicked";
4622 program { name: "text_clicked";
4626 get_state(PART:"elm.text", st, 30, vl);
4627 if (!strcmp(st, "visible"))
4628 set_state(PART:"elm.text", "clicked", 0.0);
4631 program { name: "button_unpress";
4632 action: SIGNAL_EMIT "elm,action,unpress" "";
4634 program { name: "button_mouseout_clicked";
4635 signal: "mouse,up,1";
4640 get_state(PART:"elm.swallow.content", st, 30, vl);
4641 if (strcmp(st, "icononly"))
4643 emit("elm,action,default,text,set", "");
4644 set_state(PART:"elm.text", "visible", 0.0);
4646 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4647 set_state(PART:"button_image", "default", 0.0);
4649 after: button_unpress;
4651 program { name: "touch_snd";
4652 signal: "mouse,clicked,1";
4654 action: PLAY_SAMPLE "touch_sound" 1.0;
4655 after: button_unclick3;
4657 program { name: "button_unclick3";
4658 action: SIGNAL_EMIT "elm,action,click" "";
4660 program { name: "text_show";
4661 signal: "elm,state,text,visible";
4666 get_state(PART:"elm.swallow.content", st, 30, vl);
4667 if (!strcmp(st, "icononly"))
4669 set_state(PART:"elm.swallow.content", "visible", 0.0);
4670 set_state(PART:"padding_icon_text", "visible", 0.0);
4672 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4673 set_state(PART:"elm.text", "visible", 0.0);
4675 set_state(PART:"elm.text", "disabled_visible", 0.0);
4678 program { name: "text_hide";
4679 signal: "elm,state,text,hidden";
4684 get_state(PART:"elm.swallow.content", st, 30, vl);
4685 if (!strcmp(st, "visible"))
4687 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4688 set_state(PART:"padding_icon_text", "icononly", 0.0);
4690 set_state(PART:"elm.text", "default", 0.0);
4693 program { name: "icon_show";
4694 signal: "elm,state,icon,visible";
4699 get_state(PART:"elm.text", st, 30, vl);
4700 if (!strcmp(st, "visible"))
4702 set_state(PART:"elm.swallow.content", "visible", 0.0);
4703 set_state(PART:"padding_icon_text", "visible", 0.0);
4707 set_state(PART:"elm.swallow.content", "icononly", 0.0);
4708 set_state(PART:"padding_icon_text", "icononly", 0.0);
4712 program { name: "icon_hide";
4713 signal: "elm,state,icon,hidden";
4715 action: STATE_SET "default" 0.0;
4716 target: "elm.swallow.content";
4717 target: "padding_icon_text";
4719 program { name: "disable";
4720 signal: "elm,state,disabled";
4722 action: STATE_SET "disabled" 0.0;
4723 target: "button_image";
4725 after: "disable_text";
4727 program { name: "disable_text";
4731 get_state(PART:"elm.text", st, 30, vl);
4732 if (!strcmp(st, "visible"))
4733 set_state(PART:"elm.text", "disabled_visible", 0.0);
4735 set_state(PART:"elm.text", "disabled", 0.0);
4736 set_int(button_state, BUTTON_STATE_DISABLED);
4739 program { name: "enable";
4740 signal: "elm,state,enabled";
4742 action: STATE_SET "default" 0.0;
4743 target: "button_image";
4745 after: "enable_text";
4747 program { name: "enable_text";
4751 get_state(PART:"elm.text", st, 30, vl);
4752 if (!strcmp(st, "disabled_visible"))
4753 set_state(PART:"elm.text", "visible", 0.0);
4755 set_state(PART:"elm.text", "default", 0.0);
4756 set_int(button_state, BUTTON_STATE_ENABLED);
4759 program { name: "focused";
4760 action: STATE_SET "focused" 0.0;
4761 target: "button_image";
4764 program { name: "unfocused";
4765 action: STATE_SET "default" 0.0;
4766 target: "button_image";
4767 after: "unfocus_text";
4769 program { name: "unfocus_text";
4770 action: STATE_SET "visible" 0.0;
4776 ///////////////////////////////////////////////////////////////////////////////////////
4777 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
4778 group { name: "elm/button/base/"style_name; \
4780 image: "00_btn_circle_bg_normal.png" COMP; \
4781 image: "00_btn_circle_bg_press.png" COMP; \
4782 image: image_normal COMP; \
4783 image: image_press COMP; \
4786 part { name: "button_image"; \
4788 description { state: "default" 0.0; \
4789 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4790 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4791 image.normal: "00_btn_circle_bg_normal.png"; \
4792 color: 255 255 255 255; \
4795 state: "clicked" 0.0; \
4796 inherit: "default" 0.0; \
4797 image.normal: "00_btn_circle_bg_press.png"; \
4800 state: "disabled" 0.0; \
4801 inherit: "default" 0.0; \
4802 color: 255 255 255 128; \
4805 part { name: "button_center_part"; \
4807 description { state: "default" 0.0; \
4808 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4809 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4810 image.normal: image_normal; \
4811 color: 255 255 255 255; \
4814 state: "clicked" 0.0; \
4815 inherit: "default" 0.0; \
4816 image.normal: image_press; \
4819 state: "disabled" 0.0; \
4820 inherit: "default" 0.0; \
4821 color: 255 255 255 128; \
4824 part { name: "over1"; \
4826 ignore_flags: ON_HOLD; \
4827 description { state: "default" 0.0; \
4829 min: min_width min_height; \
4832 part { name: "over2"; \
4834 description { state: "default" 0.0; \
4838 part { name: "disabler"; \
4840 description { state: "default" 0.0; \
4844 description { state: "disabled" 0.0; \
4845 inherit: "default" 0.0; \
4851 program { name: "button_click"; \
4852 signal: "mouse,down,1"; \
4854 action: SIGNAL_EMIT "elm,action,press" ""; \
4855 after: "button_click_anim"; \
4857 program { name: "button_click_anim"; \
4858 action: STATE_SET "clicked" 0.0; \
4859 target: "button_image"; \
4860 target: "button_center_part"; \
4862 program { name: "button_unclick"; \
4863 signal: "mouse,up,1"; \
4865 action: SIGNAL_EMIT "elm,action,unpress" ""; \
4866 after: "button_unclick_anim"; \
4868 program { name: "button_unclick_anim"; \
4869 action: STATE_SET "default" 0.0; \
4870 target: "button_image"; \
4871 target: "button_center_part"; \
4873 program { name: "touch_snd"; \
4874 signal: "mouse,clicked,1"; \
4876 action: PLAY_SAMPLE "touch_sound" 1.0; \
4877 after: button_unclick3; \
4879 program { name: "button_unclick3"; \
4880 action: SIGNAL_EMIT "elm,action,click" ""; \
4882 program { name: "disable"; \
4883 signal: "elm,state,disabled"; \
4885 action: STATE_SET "disabled" 0.0; \
4886 target: "disabler"; \
4887 target: "button_image"; \
4888 target: "button_center_part"; \
4890 program { name: "enable"; \
4891 signal: "elm,state,enabled"; \
4893 action: STATE_SET "default" 0.0; \
4894 target: "disabler"; \
4895 target: "button_image"; \
4896 target: "button_center_part"; \
4901 ///////////////////////////////////////////////////////////////////////////////////////
4902 BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
4904 ///////////////////////////////////////////////////////////////////////////////////////
4905 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
4907 ///////////////////////////////////////////////////////////////////////////////////////
4908 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 40, 40)
4910 ///////////////////////////////////////////////////////////////////////////////////////
4911 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", 60, 70)
4913 ///////////////////////////////////////////////////////////////////////////////////////
4914 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 40, 40)
4916 ///////////////////////////////////////////////////////////////////////////////////////
4917 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", 60, 70)
4919 ///////////////////////////////////////////////////////////////////////////////////////
4920 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", 40, 40)
4922 ///////////////////////////////////////////////////////////////////////////////////////
4923 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", 60, 70)
4925 ///////////////////////////////////////////////////////////////////////////////////////
4926 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", 40, 40)
4928 ///////////////////////////////////////////////////////////////////////////////////////
4929 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", 60, 70)
4931 ///////////////////////////////////////////////////////////////////////////////////////
4932 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", 40, 40)
4934 ///////////////////////////////////////////////////////////////////////////////////////
4935 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", 60, 70)
4937 ///////////////////////////////////////////////////////////////////////////////////////
4938 BUTTON_CIRCLE_STYLES("warning", "00_button_warning.png", "00_button_warning_press.png", 40, 40)
4940 ///////////////////////////////////////////////////////////////////////////////////////
4941 BUTTON_CIRCLE_STYLES("warning/extended", "00_button_warning.png", "00_button_warning_press.png", 60, 70)
4943 ///////////////////////////////////////////////////////////////////////////////////////
4944 BUTTON_CIRCLE_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png", 40, 40)
4946 ///////////////////////////////////////////////////////////////////////////////////////
4947 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_plus.png", "00_button_plus_press.png", 60, 70)
4949 ///////////////////////////////////////////////////////////////////////////////////////
4950 BUTTON_CIRCLE_STYLES("minus", "00_button_minus.png", "00_button_minus_press.png", 40, 40)
4952 ///////////////////////////////////////////////////////////////////////////////////////
4953 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_minus.png", "00_button_minus_press.png", 60, 70)
4955 ///////////////////////////////////////////////////////////////////////////////////////
4956 BUTTON_CIRCLE_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_press.png", 40, 40)
4958 ///////////////////////////////////////////////////////////////////////////////////////
4959 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_cancel.png", "00_button_cancel_press.png", 60, 70)
4961 ///////////////////////////////////////////////////////////////////////////////////////
4962 BUTTON_CIRCLE_STYLES("send", "00_button_send.png", "00_button_send_press.png", 40, 40)
4964 ///////////////////////////////////////////////////////////////////////////////////////
4965 BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
4966 ///////////////////////////////////////////////////////////////////////////////////////
4967 group { name: "elm/button/base/circle/empty";
4968 alias: "elm/button/base/expand_text";
4970 image: "00_btn_circle_bg_normal.png" COMP;
4971 image: "00_btn_circle_bg_press.png" COMP;
4974 public button_state = BUTTON_STATE_ENABLED;
4977 part { name: "button_image";
4979 description { state: "default" 0.0;
4980 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4981 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
4983 image.normal: "00_btn_circle_bg_normal.png";
4984 color: 255 255 255 255;
4986 description { state: "clicked" 0.0;
4987 inherit: "default" 0.0;
4988 image.normal: "00_btn_circle_bg_press.png";
4990 description { state: "disabled" 0.0;
4991 inherit: "default" 0.0;
4992 color: 255 255 255 128;
4995 part { name: "elm.swallow.content";
4998 description { state: "default" 0.0;
4999 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5000 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5002 color: 255 255 255 255;
5005 state: "disabled" 0.0;
5006 inherit: "default" 0.0;
5007 color: 255 255 255 128;
5010 part { name: "elm.text";
5014 description { state: "default" 0.0;
5016 color: BUTTON_EXPAND_BUTTON_NORMAL_COLOR_INC;
5018 font: "SLP:style=Medium";
5019 size: BUTTON_EXPAND_BUTTON_TEXT_SIZE_INC;
5021 text_class: "slp_medium";
5024 description { state: "visible" 0.0;
5025 inherit: "default" 0.0;
5028 description { state: "clicked" 0.0;
5029 inherit: "default" 0.0;
5031 color: BUTTON_EXPAND_BUTTON_PRESSED_COLOR_INC;
5033 description { state: "disabled" 0.0;
5034 inherit: "default" 0.0;
5037 description { state: "disabled_visible" 0.0;
5038 inherit: "default" 0.0;
5039 color: BUTTON_EXPAND_BUTTON_DISABLED_COLOR_INC;
5042 description { state: "focused" 0.0;
5043 inherit: "default" 0.0;
5046 color: BUTTON_EXPAND_BUTTON_FOCUSED_COLOR_INC;
5049 part { name: "over1";
5051 ignore_flags: ON_HOLD;
5052 description { state: "default" 0.0;
5056 part { name: "over2";
5058 description { state: "default" 0.0;
5062 part { name: "disabler";
5064 description { state: "default" 0.0;
5068 description { state: "disabled" 0.0;
5069 inherit: "default" 0.0;
5075 program { name: "button_click";
5076 signal: "mouse,down,1";
5078 action: SIGNAL_EMIT "elm,action,press" "";
5079 after: "button_click_anim";
5081 program { name: "button_click_anim";
5082 action: STATE_SET "clicked" 0.0;
5083 target: "button_image";
5085 program { name: "button_unpress";
5086 action: SIGNAL_EMIT "elm,action,unpress" "";
5088 program { name: "button_mouseout_clicked";
5089 signal: "mouse,up,1";
5092 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5093 set_state(PART:"button_image", "default", 0.0);
5095 after: button_unpress;
5097 program { name: "touch_snd";
5098 signal: "mouse,clicked,1";
5100 action: PLAY_SAMPLE "touch_sound" 1.0;
5101 after: button_unclick3;
5103 program { name: "button_unclick3";
5104 action: SIGNAL_EMIT "elm,action,click" "";
5106 program { name: "text_show";
5107 signal: "elm,state,text,visible";
5110 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5111 set_state(PART:"elm.text", "visible", 0.0);
5113 set_state(PART:"elm.text", "disabled_visible", 0.0);
5116 program { name: "text_hide";
5117 signal: "elm,state,text,hidden";
5119 action: STATE_SET "default" 0.0;
5122 program { name: "icon_show";
5123 signal: "elm,state,icon,visible";
5125 action: STATE_SET "icononly" 0.0;
5126 target: "elm.swallow.content";
5128 program { name: "icon_hide";
5129 signal: "elm,state,icon,hidden";
5131 action: STATE_SET "default" 0.0;
5132 target: "elm.swallow.content";
5134 program { name: "disable";
5135 signal: "elm,state,disabled";
5137 action: STATE_SET "disabled" 0.0;
5138 target: "button_image";
5140 after: "disable_text";
5142 program { name: "disable_text";
5146 get_state(PART:"elm.text", st, 30, vl);
5147 if (!strcmp(st, "visible"))
5148 set_state(PART:"elm.text", "disabled_visible", 0.0);
5150 set_state(PART:"elm.text", "disabled", 0.0);
5151 set_int(button_state, BUTTON_STATE_DISABLED);
5154 program { name: "enable";
5155 signal: "elm,state,enabled";
5157 action: STATE_SET "default" 0.0;
5158 target: "button_image";
5160 after: "enable_text";
5162 program { name: "enable_text";
5166 get_state(PART:"elm.text", st, 30, vl);
5167 if (!strcmp(st, "disabled_visible"))
5168 set_state(PART:"elm.text", "visible", 0.0);
5170 set_state(PART:"elm.text", "default", 0.0);
5171 set_int(button_state, BUTTON_STATE_ENABLED);
5174 program { name: "focused";
5175 action: STATE_SET "focused" 0.0;
5176 target: "button_image";
5179 program { name: "unfocused";
5180 action: STATE_SET "default" 0.0;
5181 target: "button_image";
5182 after: "unfocus_text";
5184 program { name: "unfocus_text";
5185 action: STATE_SET "visible" 0.0;
5191 ///////////////////////////////////////////////////////////////////////////////////////
5192 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
5193 group { name: "elm/button/base/contacts/"style_name; \
5194 alias: "elm/button/base/"style_name; \
5196 image: image_normal COMP; \
5197 image: image_press COMP; \
5198 image: "00_button_edit.png" COMP; \
5199 image: "00_button_edit_press.png" COMP; \
5200 image: "00_button_edit_dim.png" COMP; \
5203 part { name: "button_image"; \
5205 description { state: "default" 0.0; \
5206 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5207 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5209 normal: "00_button_edit.png"; \
5210 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5215 state: "clicked" 0.0; \
5216 inherit: "default" 0.0; \
5217 image.normal: "00_button_edit_press.png"; \
5220 state: "disabled" 0.0; \
5221 inherit: "default" 0.0; \
5222 image.normal: "00_button_edit_dim.png"; \
5225 part { name: "button_center_part"; \
5228 description { state: "default" 0.0; \
5229 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5230 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5232 normal: image_normal; \
5233 border: BUTTON_EDIT_STYLE_BORDER_INC; \
5238 state: "clicked" 0.0; \
5239 inherit: "default" 0.0; \
5240 image.normal: image_press; \
5243 part { name: "over1"; \
5246 ignore_flags: ON_HOLD; \
5247 description { state: "default" 0.0; \
5249 min: min_width min_height; \
5252 part { name: "over2"; \
5254 description { state: "default" 0.0; \
5258 part { name: "disabler"; \
5260 description { state: "default" 0.0; \
5264 description { state: "disabled" 0.0; \
5265 inherit: "default" 0.0; \
5271 program { name: "button_click"; \
5272 signal: "mouse,down,1"; \
5274 action: SIGNAL_EMIT "elm,action,press" ""; \
5275 after: "button_click_anim"; \
5277 program { name: "button_click_anim"; \
5278 action: STATE_SET "clicked" 0.0; \
5279 target: "button_image"; \
5280 target: "button_center_part"; \
5282 program { name: "button_unclick"; \
5283 signal: "mouse,up,1"; \
5285 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5286 after: "button_unclick_anim"; \
5288 program { name: "button_unclick_anim"; \
5289 action: STATE_SET "default" 0.0; \
5290 target: "button_image"; \
5291 target: "button_center_part"; \
5293 program { name: "touch_snd"; \
5294 signal: "mouse,clicked,1"; \
5296 action: PLAY_SAMPLE "touch_sound" 1.0; \
5297 after: button_unclick3; \
5299 program { name: "button_unclick3"; \
5300 action: SIGNAL_EMIT "elm,action,click" ""; \
5302 program { name: "disable"; \
5303 signal: "elm,state,disabled"; \
5305 action: STATE_SET "disabled" 0.0; \
5306 target: "disabler"; \
5307 target: "button_image"; \
5309 program { name: "enable"; \
5310 signal: "elm,state,enabled"; \
5312 action: STATE_SET "default" 0.0; \
5313 target: "disabler"; \
5314 target: "button_image"; \
5318 ///////////////////////////////////////////////////////////////////////////////////////
5319 BUTTON_EDIT_STYLES("icon_plus", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5321 ///////////////////////////////////////////////////////////////////////////////////////
5322 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5324 ///////////////////////////////////////////////////////////////////////////////////////
5325 BUTTON_EDIT_STYLES("icon_minus", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5327 ///////////////////////////////////////////////////////////////////////////////////////
5328 BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5330 ///////////////////////////////////////////////////////////////////////////////////////
5331 BUTTON_EDIT_STYLES("icon_expand", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5333 ///////////////////////////////////////////////////////////////////////////////////////
5334 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5336 ///////////////////////////////////////////////////////////////////////////////////////
5337 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5339 ///////////////////////////////////////////////////////////////////////////////////////
5340 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5342 ///////////////////////////////////////////////////////////////////////////////////////
5343 group { name: "elm/button/base/contacts/delete";
5345 image: "00_button_edit.png" COMP;
5346 image: "00_button_edit_press.png" COMP;
5347 image: "00_button_edit_dim.png" COMP;
5350 public button_state = BUTTON_STATE_ENABLED;
5353 part { name: "button_image";
5355 description { state: "default" 0.0;
5356 min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5358 normal: "00_button_edit.png";
5359 border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5363 description { state: "clicked" 0.0;
5364 inherit: "default" 0.0;
5365 image.normal: "00_button_edit_press.png";
5367 description { state: "disabled" 0.0;
5368 inherit: "default" 0.0;
5369 image.normal: "00_button_edit_dim.png";
5371 description { state: "focused" 0.0;
5372 inherit: "default" 0.0;
5373 image.normal: "00_button_edit_press.png";
5376 part { name: "padding_left_top";
5380 description { state: "default" 0.0;
5382 rel2.relative: 0.0 0.0;
5383 min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5388 part { name: "padding_right_bottom";
5392 description { state: "default" 0.0;
5394 rel1.relative: 1.0 1.0;
5395 min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5400 part { name: "padding_icon_text";
5404 description { state: "default" 0.0; //when only icon or no icon is there
5408 to: "elm.swallow.content";
5410 rel2.to: "elm.swallow.content";
5415 description { state: "icononly" 0.0;
5416 inherit: "default" 0.0;
5418 description { state: "visible" 0.0; //when icon is visible
5419 inherit: "default" 0.0;
5420 min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5423 part { name: "elm.swallow.content";
5427 description { state: "default" 0.0;
5432 to: "padding_left_top";
5436 to_x: "padding_left_top";
5437 to_y: "padding_right_bottom";
5441 description { state: "visible" 0.0;
5446 to: "padding_left_top";
5450 to_x: "padding_left_top";
5451 to_y: "padding_right_bottom";
5454 aspect_preference: VERTICAL;
5456 description { state: "icononly" 0.0;
5457 min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5460 to: "padding_left_top";
5464 to: "padding_right_bottom";
5467 aspect_preference: VERTICAL;
5470 part { name: "elm.text";
5475 description { state: "default" 0.0;
5478 to_x: "padding_icon_text";
5479 to_y: "padding_left_top";
5483 to: "padding_right_bottom";
5485 color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5487 font: "SLP:style=Medium";
5488 size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5492 text_class: "slp_medium";
5495 description { state: "visible" 0.0;
5496 inherit: "default" 0.0;
5498 description { state: "clicked" 0.0;
5499 inherit: "default" 0.0;
5500 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5502 description { state: "disabled" 0.0;
5503 inherit: "default" 0.0;
5506 description { state: "disabled_visible" 0.0;
5507 inherit: "default" 0.0;
5508 color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5510 description { state: "focused" 0.0;
5511 inherit: "default" 0.0;
5513 color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5516 part { name: "over2";
5519 ignore_flags: ON_HOLD;
5520 description { state: "default" 0.0;
5524 part { name: "over3";
5527 description { state: "default" 0.0;
5531 part { name: "clipper";
5533 description { state: "default" 0.0;
5534 color: 255 255 255 255;
5537 part { name: "disabler";
5539 description { state: "default" 0.0;
5543 description { state: "disabled" 0.0;
5544 inherit: "default" 0.0;
5550 program { name: "button_click";
5551 signal: "mouse,down,1";
5553 action: SIGNAL_EMIT "elm,action,press" "";
5554 after: "button_click_anim";
5556 program { name: "button_click_anim";
5557 action: STATE_SET "clicked" 0.0;
5558 target: "button_image";
5559 after: "text_clicked";
5561 program { name: "text_clicked";
5565 get_state(PART:"elm.text", st, 30, vl);
5566 if (!strcmp(st, "visible"))
5567 set_state(PART:"elm.text", "clicked", 0.0);
5570 program { name: "button_unpress";
5571 action: SIGNAL_EMIT "elm,action,unpress" "";
5573 program { name: "button_mouseout_clicked";
5574 signal: "mouse,up,1";
5579 get_state(PART:"elm.swallow.content", st, 30, vl);
5580 if (strcmp(st, "icononly"))
5582 emit("elm,action,default,text,set", "");
5583 set_state(PART:"elm.text", "visible", 0.0);
5585 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5586 set_state(PART:"button_image", "default", 0.0);
5588 after: button_unpress;
5590 program { name: "touch_snd";
5591 signal: "mouse,clicked,1";
5593 action: PLAY_SAMPLE "touch_sound" 1.0;
5594 after: button_unclick3;
5596 program { name: "button_unclick3";
5597 action: SIGNAL_EMIT "elm,action,click" "";
5599 program { name: "text_show";
5600 signal: "elm,state,text,visible";
5605 get_state(PART:"elm.swallow.content", st, 30, vl);
5606 if (!strcmp(st, "icononly"))
5608 set_state(PART:"elm.swallow.content", "visible", 0.0);
5609 set_state(PART:"padding_icon_text", "visible", 0.0);
5611 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5612 set_state(PART:"elm.text", "visible", 0.0);
5614 set_state(PART:"elm.text", "disabled_visible", 0.0);
5617 program { name: "text_hide";
5618 signal: "elm,state,text,hidden";
5623 get_state(PART:"elm.swallow.content", st, 30, vl);
5624 if (!strcmp(st, "visible"))
5626 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5627 set_state(PART:"padding_icon_text", "icononly", 0.0);
5629 set_state(PART:"elm.text", "default", 0.0);
5632 program { name: "icon_show";
5633 signal: "elm,state,icon,visible";
5638 get_state(PART:"elm.text", st, 30, vl);
5639 if (!strcmp(st, "visible"))
5641 set_state(PART:"elm.swallow.content", "visible", 0.0);
5642 set_state(PART:"padding_icon_text", "visible", 0.0);
5646 set_state(PART:"elm.swallow.content", "icononly", 0.0);
5647 set_state(PART:"padding_icon_text", "icononly", 0.0);
5651 program { name: "icon_hide";
5652 signal: "elm,state,icon,hidden";
5654 action: STATE_SET "default" 0.0;
5655 target: "elm.swallow.content";
5656 target: "padding_icon_text";
5658 program { name: "disable";
5659 signal: "elm,state,disabled";
5661 action: STATE_SET "disabled" 0.0;
5662 target: "button_image";
5664 after: "disable_text";
5666 program { name: "disable_text";
5670 get_state(PART:"elm.text", st, 30, vl);
5671 if (!strcmp(st, "visible"))
5672 set_state(PART:"elm.text", "disabled_visible", 0.0);
5674 set_state(PART:"elm.text", "disabled", 0.0);
5675 set_int(button_state, BUTTON_STATE_DISABLED);
5678 program { name: "enable";
5679 signal: "elm,state,enabled";
5681 action: STATE_SET "default" 0.0;
5682 target: "button_image";
5684 after: "enable_text";
5686 program { name: "enable_text";
5690 get_state(PART:"elm.text", st, 30, vl);
5691 if (!strcmp(st, "disabled_visible"))
5692 set_state(PART:"elm.text", "visible", 0.0);
5694 set_state(PART:"elm.text", "default", 0.0);
5695 set_int(button_state, BUTTON_STATE_ENABLED);
5698 program { name: "focused";
5699 //signal: "elm,action,focus";
5701 action: STATE_SET "focused" 0.0;
5702 target: "button_image";
5705 program { name: "unfocused";
5706 //signal: "elm,action,unfocus";
5708 action: STATE_SET "default" 0.0;
5709 target: "button_image";
5710 after: "unfocus_text";
5712 program { name: "unfocus_text";
5713 action: STATE_SET "visible" 0.0;
5719 ///////////////////////////////////////////////////////////////////////////////////////
5720 group { name: "elm/button/base/multiline";
5721 alias: "elm/button/base/text_only/multiline";
5723 image: "00_button_04_normal.png" COMP;
5724 image: "00_button_04_press.png" COMP;
5725 image: "00_button_04_dim.png" COMP;
5728 public button_state = BUTTON_STATE_ENABLED;
5731 style { name: "btn_multiline_style";
5732 base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5739 part { name: "button_image";
5741 description { state: "default" 0.0;
5744 normal: "00_button_04_normal.png";
5749 description { state: "clicked" 0.0;
5750 inherit: "default" 0.0;
5751 image.normal: "00_button_04_press.png";
5753 description { state: "disabled" 0.0;
5754 inherit: "default" 0.0;
5755 image.normal: "00_button_04_dim.png";
5757 description { state: "focused" 0.0;
5758 inherit: "default" 0.0;
5759 image.normal: "00_button_04_press.png";
5762 part { name: "padding_left_top";
5766 description { state: "default" 0.0;
5768 rel2.relative: 0.0 0.0;
5774 part { name: "padding_right_bottom";
5778 description { state: "default" 0.0;
5780 rel1.relative: 1.0 1.0;
5786 part { name: "icon_rect";
5790 description { state: "default" 0.0;
5796 to_x: "elm.swallow.content";
5797 to_y: "padding_left_top";
5801 to_x: "elm.swallow.content";
5802 to_y: "padding_right_bottom";
5808 part { name: "padding_icon_text";
5812 description { state: "default" 0.0; //when only icon or no icon is there
5818 rel2.to: "icon_rect";
5823 description { state: "icononly" 0.0;
5824 inherit: "default" 0.0;
5826 description { state: "visible" 0.0; //when icon is visible
5832 rel2.to: "icon_rect";
5838 part { name: "elm.swallow.content";
5842 description { state: "default" 0.0;
5847 to: "padding_left_top";
5851 to_x: "padding_left_top";
5852 to_y: "padding_right_bottom";
5856 description { state: "visible" 0.0;
5861 to: "padding_left_top";
5865 to_x: "padding_left_top";
5866 to_y: "padding_right_bottom";
5869 aspect_preference: VERTICAL;
5871 description { state: "icononly" 0.0;
5875 to: "padding_left_top";
5879 to: "padding_right_bottom";
5882 aspect_preference: VERTICAL;
5885 part { name: "elm.text";
5890 description { state: "default" 0.0;
5894 to_x: "padding_icon_text";
5895 to_y: "padding_left_top";
5899 to: "padding_right_bottom";
5901 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5903 style: "btn_multiline_style";
5908 description { state: "visible" 0.0;
5909 inherit: "default" 0.0;
5913 description { state: "clicked" 0.0;
5914 inherit: "default" 0.0;
5917 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5919 description { state: "disabled" 0.0;
5920 inherit: "default" 0.0;
5923 description { state: "disabled_visible" 0.0;
5924 inherit: "default" 0.0;
5925 color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5929 description { state: "focused" 0.0;
5930 inherit: "default" 0.0;
5933 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5936 part { name: "over2";
5939 ignore_flags: ON_HOLD;
5940 description { state: "default" 0.0;
5944 part { name: "over3";
5947 description { state: "default" 0.0;
5951 part { name: "clipper";
5953 description { state: "default" 0.0;
5954 color: 255 255 255 255;
5957 part { name: "disabler";
5959 description { state: "default" 0.0;
5963 description { state: "disabled" 0.0;
5964 inherit: "default" 0.0;
5970 program { name: "button_click";
5971 signal: "mouse,down,1";
5973 action: SIGNAL_EMIT "elm,action,press" "";
5974 after: "button_click_anim";
5976 program { name: "button_click_anim";
5977 action: STATE_SET "clicked" 0.0;
5978 target: "button_image";
5979 after: "text_clicked";
5981 program { name: "text_clicked";
5985 get_state(PART:"elm.text", st, 30, vl);
5986 if (!strcmp(st, "visible"))
5987 set_state(PART:"elm.text", "clicked", 0.0);
5990 program { name: "button_unpress";
5991 action: SIGNAL_EMIT "elm,action,unpress" "";
5993 program { name: "button_mouseout_clicked";
5994 signal: "mouse,up,1";
5999 get_state(PART:"elm.swallow.content", st, 30, vl);
6000 if (strcmp(st, "icononly"))
6002 emit("elm,action,default,text,set", "");
6003 set_state(PART:"elm.text", "visible", 0.0);
6005 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6006 set_state(PART:"button_image", "default", 0.0);
6008 after: button_unpress;
6010 program { name: "touch_snd";
6011 signal: "mouse,clicked,1";
6013 action: PLAY_SAMPLE "touch_sound" 1.0;
6014 after: button_unclick3;
6016 program { name: "button_unclick3";
6017 action: SIGNAL_EMIT "elm,action,click" "";
6019 program { name: "text_show";
6020 signal: "elm,state,text,visible";
6025 get_state(PART:"elm.swallow.content", st, 30, vl);
6026 if (!strcmp(st, "icononly"))
6028 set_state(PART:"elm.swallow.content", "visible", 0.0);
6029 set_state(PART:"padding_icon_text", "visible", 0.0);
6031 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6032 set_state(PART:"elm.text", "visible", 0.0);
6034 set_state(PART:"elm.text", "disabled_visible", 0.0);
6037 program { name: "text_hide";
6038 signal: "elm,state,text,hidden";
6043 get_state(PART:"elm.swallow.content", st, 30, vl);
6044 if (!strcmp(st, "visible"))
6046 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6047 set_state(PART:"padding_icon_text", "icononly", 0.0);
6049 set_state(PART:"elm.text", "default", 0.0);
6052 program { name: "icon_show";
6053 signal: "elm,state,icon,visible";
6058 get_state(PART:"elm.text", st, 30, vl);
6059 if (!strcmp(st, "visible"))
6061 set_state(PART:"elm.swallow.content", "visible", 0.0);
6062 set_state(PART:"padding_icon_text", "visible", 0.0);
6066 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6067 set_state(PART:"padding_icon_text", "icononly", 0.0);
6071 program { name: "icon_hide";
6072 signal: "elm,state,icon,hidden";
6074 action: STATE_SET "default" 0.0;
6075 target: "elm.swallow.content";
6076 target: "padding_icon_text";
6078 program { name: "disable";
6079 signal: "elm,state,disabled";
6081 action: STATE_SET "disabled" 0.0;
6082 target: "button_image";
6084 after: "disable_text";
6086 program { name: "disable_text";
6090 get_state(PART:"elm.text", st, 30, vl);
6091 if (!strcmp(st, "visible"))
6092 set_state(PART:"elm.text", "disabled_visible", 0.0);
6094 set_state(PART:"elm.text", "disabled", 0.0);
6095 set_int(button_state, BUTTON_STATE_DISABLED);
6098 program { name: "enable";
6099 signal: "elm,state,enabled";
6101 action: STATE_SET "default" 0.0;
6102 target: "button_image";
6104 after: "enable_text";
6106 program { name: "enable_text";
6110 get_state(PART:"elm.text", st, 30, vl);
6111 if (!strcmp(st, "disabled_visible"))
6112 set_state(PART:"elm.text", "visible", 0.0);
6114 set_state(PART:"elm.text", "default", 0.0);
6115 set_int(button_state, BUTTON_STATE_ENABLED);
6118 program { name: "focused";
6119 //signal: "elm,action,focus";
6121 action: STATE_SET "focused" 0.0;
6122 target: "button_image";
6125 program { name: "unfocused";
6126 //signal: "elm,action,unfocus";
6128 action: STATE_SET "default" 0.0;
6129 target: "button_image";
6130 after: "unfocus_text";
6132 program { name: "unfocus_text";
6133 action: STATE_SET "visible" 0.0;
6139 ///////////////////////////////////////////////////////////////////////////////////////
6140 group { name: "elm/button/base/default";
6142 image: "00_button_01_normal.png" COMP;
6143 image: "00_button_01_normal_press.png" COMP;
6144 image: "00_button_01_normal_dim.png" COMP;
6147 public button_state = BUTTON_STATE_ENABLED;
6150 part { name: "button_image";
6152 description { state: "default" 0.0;
6153 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6155 normal: "00_button_01_normal.png";
6156 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6160 description { state: "clicked" 0.0;
6161 inherit: "default" 0.0;
6162 image.normal: "00_button_01_normal_press.png";
6164 description { state: "disabled" 0.0;
6165 inherit: "default" 0.0;
6166 image.normal: "00_button_01_normal_dim.png";
6168 description { state: "focused" 0.0;
6169 inherit: "default" 0.0;
6170 image.normal: "00_button_01_normal_press.png";
6173 part { name: "padding_left_top";
6177 description { state: "default" 0.0;
6179 rel2.relative: 0.0 0.0;
6180 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6185 part { name: "padding_right_bottom";
6189 description { state: "default" 0.0;
6191 rel1.relative: 1.0 1.0;
6192 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6197 part { name: "padding_icon_text";
6201 description { state: "default" 0.0; //when only icon or no icon is there
6206 to: "elm.swallow.content";
6208 rel2.to: "elm.swallow.content";
6212 description { state: "icononly" 0.0;
6213 inherit: "default" 0.0;
6215 description { state: "visible" 0.0; //when icon is visible
6216 inherit: "default" 0.0;
6217 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6220 part { name: "elm.swallow.content";
6224 description { state: "default" 0.0;
6229 to: "padding_left_top";
6233 to_x: "padding_left_top";
6234 to_y: "padding_right_bottom";
6238 description { state: "visible" 0.0;
6243 to: "padding_left_top";
6247 to_x: "padding_left_top";
6248 to_y: "padding_right_bottom";
6251 aspect_preference: VERTICAL;
6253 description { state: "icononly" 0.0;
6254 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6257 to_x: "padding_left_top";
6261 to_x: "padding_right_bottom";
6264 aspect_preference: VERTICAL;
6267 part { name: "elm.text";
6272 description { state: "default" 0.0;
6277 to_x: "padding_icon_text";
6278 to_y: "padding_left_top";
6282 to: "padding_right_bottom";
6284 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6286 font: "SLP:style=Medium";
6287 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6289 text_class: "slp_medium";
6292 description { state: "visible" 0.0;
6293 inherit: "default" 0.0;
6295 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6297 description { state: "clicked" 0.0;
6298 inherit: "default" 0.0;
6300 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6301 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6303 description { state: "disabled" 0.0;
6304 inherit: "default" 0.0;
6306 description { state: "disabled_visible" 0.0;
6307 inherit: "default" 0.0;
6308 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6310 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6312 description { state: "focused" 0.0;
6313 inherit: "default" 0.0;
6316 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6319 part { name: "over2";
6322 ignore_flags: ON_HOLD;
6323 description { state: "default" 0.0;
6327 part { name: "over3";
6330 description { state: "default" 0.0;
6334 part { name: "clipper";
6336 description { state: "default" 0.0;
6337 color: 255 255 255 255;
6340 part { name: "disabler";
6342 description { state: "default" 0.0;
6346 description { state: "disabled" 0.0;
6347 inherit: "default" 0.0;
6353 program { name: "button_click";
6354 signal: "mouse,down,1";
6356 action: SIGNAL_EMIT "elm,action,press" "";
6357 after: "button_click_anim";
6359 program { name: "button_click_anim";
6360 action: STATE_SET "clicked" 0.0;
6361 target: "button_image";
6362 after: "text_clicked";
6364 program { name: "text_clicked";
6368 get_state(PART:"elm.text", st, 30, vl);
6369 if (!strcmp(st, "visible"))
6370 set_state(PART:"elm.text", "clicked", 0.0);
6373 program { name: "button_unpress";
6374 action: SIGNAL_EMIT "elm,action,unpress" "";
6376 program { name: "button_mouseout_clicked";
6377 signal: "mouse,up,1";
6382 get_state(PART:"elm.swallow.content", st, 30, vl);
6383 if (strcmp(st, "icononly"))
6385 emit("elm,action,default,text,set", "");
6386 set_state(PART:"elm.text", "visible", 0.0);
6388 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6389 set_state(PART:"button_image", "default", 0.0);
6391 after: button_unpress;
6393 program { name: "touch_snd";
6394 signal: "mouse,clicked,1";
6396 action: PLAY_SAMPLE "touch_sound" 1.0;
6397 after: button_unclick3;
6399 program { name: "button_unclick3";
6400 action: SIGNAL_EMIT "elm,action,click" "";
6402 program { name: "text_show";
6403 signal: "elm,state,text,visible";
6408 get_state(PART:"elm.swallow.content", st, 30, vl);
6409 if (!strcmp(st, "icononly"))
6411 set_state(PART:"elm.swallow.content", "visible", 0.0);
6412 set_state(PART:"padding_icon_text", "visible", 0.0);
6414 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6415 set_state(PART:"elm.text", "visible", 0.0);
6417 set_state(PART:"elm.text", "disabled_visible", 0.0);
6420 program { name: "text_hide";
6421 signal: "elm,state,text,hidden";
6426 get_state(PART:"elm.swallow.content", st, 30, vl);
6427 if (!strcmp(st, "visible"))
6429 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6430 set_state(PART:"padding_icon_text", "icononly", 0.0);
6432 set_state(PART:"elm.text", "default", 0.0);
6435 program { name: "icon_show";
6436 signal: "elm,state,icon,visible";
6441 get_state(PART:"elm.text", st, 30, vl);
6442 if (!strcmp(st, "visible"))
6444 set_state(PART:"elm.swallow.content", "visible", 0.0);
6445 set_state(PART:"padding_icon_text", "visible", 0.0);
6449 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6450 set_state(PART:"padding_icon_text", "icononly", 0.0);
6454 program { name: "icon_hide";
6455 signal: "elm,state,icon,hidden";
6457 action: STATE_SET "default" 0.0;
6458 target: "elm.swallow.content";
6459 target: "padding_icon_text";
6461 program { name: "disable";
6462 signal: "elm,state,disabled";
6464 action: STATE_SET "disabled" 0.0;
6465 target: "button_image";
6467 after: "disable_text";
6469 program { name: "disable_text";
6473 get_state(PART:"elm.text", st, 30, vl);
6474 if (!strcmp(st, "visible"))
6475 set_state(PART:"elm.text", "disabled_visible", 0.0);
6477 set_state(PART:"elm.text", "disabled", 0.0);
6478 set_int(button_state, BUTTON_STATE_DISABLED);
6481 program { name: "enable";
6482 signal: "elm,state,enabled";
6484 action: STATE_SET "default" 0.0;
6485 target: "button_image";
6487 after: "enable_text";
6489 program { name: "enable_text";
6493 get_state(PART:"elm.text", st, 30, vl);
6494 if (!strcmp(st, "disabled_visible"))
6495 set_state(PART:"elm.text", "visible", 0.0);
6497 set_state(PART:"elm.text", "default", 0.0);
6498 set_int(button_state, BUTTON_STATE_ENABLED);
6501 program { name: "focused";
6502 //signal: "elm,action,focus";
6504 action: STATE_SET "focused" 0.0;
6505 target: "button_image";
6508 program { name: "unfocused";
6509 //signal: "elm,action,unfocus";
6511 action: STATE_SET "default" 0.0;
6512 target: "button_image";
6513 after: "unfocus_text";
6515 program { name: "unfocus_text";
6516 action: STATE_SET "visible" 0.0;
6522 ///////////////////////////////////////////////////////////////////////////////////////
6523 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6524 group { name: "elm/button/base/"style_name; \
6526 image: image_normal COMP; \
6527 image: image_press COMP; \
6528 image: image_disable COMP; \
6531 public button_state = BUTTON_STATE_ENABLED; \
6534 part { name: "button_image"; \
6536 description { state: "default" 0.0; \
6537 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6539 normal: image_normal; \
6540 border: COLORSELECTOR_BUTTON_BORDER; \
6544 description { state: "clicked" 0.0; \
6545 inherit: "default" 0.0; \
6546 image.normal: image_press; \
6548 description { state: "disabled" 0.0; \
6549 inherit: "default" 0.0; \
6550 image.normal: image_disable; \
6552 description { state: "focused" 0.0; \
6553 inherit: "default" 0.0; \
6554 image.normal: image_press; \
6557 part { name: "over2"; \
6560 ignore_flags: ON_HOLD; \
6561 description { state: "default" 0.0; \
6565 part { name: "over3"; \
6568 description { state: "default" 0.0; \
6572 part { name: "disabler"; \
6574 description { state: "default" 0.0; \
6578 description { state: "disabled" 0.0; \
6579 inherit: "default" 0.0; \
6585 program { name: "button_click"; \
6586 signal: "mouse,down,1"; \
6588 action: SIGNAL_EMIT "elm,action,press" ""; \
6589 after: "button_click_anim"; \
6591 program { name: "button_click_anim"; \
6592 action: STATE_SET "clicked" 0.0; \
6593 target: "button_image"; \
6595 program { name: "button_unpress"; \
6596 action: SIGNAL_EMIT "elm,action,unpress" ""; \
6598 program { name: "button_mouseout_clicked"; \
6599 signal: "mouse,up,1"; \
6602 if (get_int(button_state) != BUTTON_STATE_DISABLED) \
6603 set_state(PART:"button_image", "default", 0.0); \
6605 after: button_unpress; \
6607 program { name: "touch_snd"; \
6608 signal: "mouse,clicked,1"; \
6610 action: PLAY_SAMPLE "touch_sound" 1.0; \
6611 after: button_unclick3; \
6613 program { name: "button_unclick3"; \
6614 action: SIGNAL_EMIT "elm,action,click" ""; \
6616 program { name: "disable"; \
6617 signal: "elm,state,disabled"; \
6619 action: STATE_SET "disabled" 0.0; \
6620 target: "button_image"; \
6621 target: "disabler"; \
6623 set_int(button_state, BUTTON_STATE_DISABLED); \
6626 program { name: "enable"; \
6627 signal: "elm,state,enabled"; \
6629 action: STATE_SET "default" 0.0; \
6630 target: "button_image"; \
6631 target: "disabler"; \
6633 set_int(button_state, BUTTON_STATE_ENABLED); \
6638 ///////////////////////////////////////////////////////////////////////////////////////
6639 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_color_picker_btn_left.png", "00_color_picker_btn_left_press.png", "00_color_picker_btn_left_dim.png")
6640 ///////////////////////////////////////////////////////////////////////////////////////
6641 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_color_picker_btn_right.png", "00_color_picker_btn_right_press.png", "00_color_picker_btn_right_dim.png")
6642 ///////////////////////////////////////////////////////////////////////////////////////
6643 group { name: "elm/button/base/hidden";
6645 image: "00_button_sweep.png" COMP;
6646 image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
6649 public button_state = BUTTON_STATE_ENABLED;
6652 part { name: "button_image";
6654 description { state: "default" 0.0;
6655 min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6657 normal: "00_button_sweep.png";
6658 border: BUTTON_HIDDEN_BG_BORDER_INC;
6662 description { state: "clicked" 0.0;
6663 inherit: "default" 0.0;
6664 image.normal: "00_button_sweep_press.png";
6666 description { state: "disabled" 0.0;
6667 inherit: "default" 0.0;
6669 description { state: "focused" 0.0;
6670 inherit: "default" 0.0;
6671 image.normal: "00_button_sweep_press.png";
6674 part { name: "padding_left_top";
6678 description { state: "default" 0.0;
6680 rel2.relative: 0.0 0.0;
6681 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6686 part { name: "padding_right_bottom";
6690 description { state: "default" 0.0;
6692 rel1.relative: 1.0 1.0;
6693 min: BUTTON_HIDDEN_PADDING_MIN_INC;
6698 part { name: "icon_rect";
6702 description { state: "default" 0.0;
6703 min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6707 to_x: "elm.swallow.content";
6708 to_y: "padding_left_top";
6712 to_x: "elm.swallow.content";
6713 to_y: "padding_right_bottom";
6719 part { name: "padding_icon_text";
6723 description { state: "default" 0.0; //when only icon or no icon is there
6729 rel2.to: "icon_rect";
6734 description { state: "icononly" 0.0;
6735 inherit: "default" 0.0;
6737 description { state: "visible" 0.0; //when icon is visible
6743 rel2.to: "icon_rect";
6745 min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6749 part { name: "elm.swallow.content";
6753 description { state: "default" 0.0;
6758 to: "padding_left_top";
6762 to_x: "padding_left_top";
6763 to_y: "padding_right_bottom";
6767 description { state: "visible" 0.0;
6772 to: "padding_left_top";
6776 to_x: "padding_left_top";
6777 to_y: "padding_right_bottom";
6780 aspect_preference: VERTICAL;
6782 description { state: "icononly" 0.0;
6783 min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6786 to: "padding_left_top";
6790 to_x: "padding_left_top";
6791 to_y: "padding_right_bottom";
6794 aspect_preference: VERTICAL;
6797 part { name: "elm.text";
6802 description { state: "default" 0.0;
6806 to_x: "padding_icon_text";
6807 to_y: "padding_left_top";
6811 to: "padding_right_bottom";
6813 color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6815 font: "SLP:style=Medium";
6816 size: BUTTON_HIDDEN_FONT_SIZE_INC;
6818 text_class: "slp_medium";
6821 description { state: "visible" 0.0;
6822 inherit: "default" 0.0;
6824 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6826 description { state: "clicked" 0.0;
6827 inherit: "default" 0.0;
6830 color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6832 description { state: "disabled" 0.0;
6833 inherit: "default" 0.0;
6836 description { state: "disabled_visible" 0.0;
6837 inherit: "default" 0.0;
6838 color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6840 min: BUTTON_HIDDEN_TEXT_MIN_INC;
6842 description { state: "focused" 0.0;
6843 inherit: "default" 0.0;
6846 color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6849 part { name: "over2";
6852 ignore_flags: ON_HOLD;
6853 description { state: "default" 0.0;
6857 part { name: "over3";
6860 description { state: "default" 0.0;
6864 part { name: "clipper";
6866 description { state: "default" 0.0;
6867 color: 255 255 255 255;
6870 part { name: "disabler";
6872 description { state: "default" 0.0;
6876 description { state: "disabled" 0.0;
6877 inherit: "default" 0.0;
6883 program { name: "button_click";
6884 signal: "mouse,down,1";
6886 action: SIGNAL_EMIT "elm,action,press" "";
6887 after: "button_click_anim";
6889 program { name: "button_click_anim";
6890 action: STATE_SET "clicked" 0.0;
6891 target: "button_image";
6892 after: "text_clicked";
6894 program { name: "text_clicked";
6898 get_state(PART:"elm.text", st, 30, vl);
6899 if (!strcmp(st, "visible"))
6900 set_state(PART:"elm.text", "clicked", 0.0);
6903 program { name: "button_unpress";
6904 action: SIGNAL_EMIT "elm,action,unpress" "";
6906 program { name: "button_mouseout_clicked";
6907 signal: "mouse,up,1";
6912 get_state(PART:"elm.swallow.content", st, 30, vl);
6913 if (strcmp(st, "icononly"))
6915 emit("elm,action,default,text,set", "");
6916 set_state(PART:"elm.text", "visible", 0.0);
6918 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6919 set_state(PART:"button_image", "default", 0.0);
6921 after: button_unpress;
6923 program { name: "touch_snd";
6924 signal: "mouse,clicked,1";
6926 action: PLAY_SAMPLE "touch_sound" 1.0;
6927 after: button_unclick3;
6929 program { name: "button_unclick3";
6930 action: SIGNAL_EMIT "elm,action,click" "";
6932 program { name: "text_show";
6933 signal: "elm,state,text,visible";
6938 get_state(PART:"elm.swallow.content", st, 30, vl);
6939 if (!strcmp(st, "icononly"))
6941 set_state(PART:"elm.swallow.content", "visible", 0.0);
6942 set_state(PART:"padding_icon_text", "visible", 0.0);
6944 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6945 set_state(PART:"elm.text", "visible", 0.0);
6947 set_state(PART:"elm.text", "disabled_visible", 0.0);
6950 program { name: "text_hide";
6951 signal: "elm,state,text,hidden";
6956 get_state(PART:"elm.swallow.content", st, 30, vl);
6957 if (!strcmp(st, "visible"))
6959 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6960 set_state(PART:"padding_icon_text", "icononly", 0.0);
6962 set_state(PART:"elm.text", "default", 0.0);
6965 program { name: "icon_show";
6966 signal: "elm,state,icon,visible";
6971 get_state(PART:"elm.text", st, 30, vl);
6972 if (!strcmp(st, "visible"))
6974 set_state(PART:"elm.swallow.content", "visible", 0.0);
6975 set_state(PART:"padding_icon_text", "visible", 0.0);
6979 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6980 set_state(PART:"padding_icon_text", "icononly", 0.0);
6984 program { name: "icon_hide";
6985 signal: "elm,state,icon,hidden";
6987 action: STATE_SET "default" 0.0;
6988 target: "elm.swallow.content";
6989 target: "padding_icon_text";
6991 program { name: "disable";
6992 signal: "elm,state,disabled";
6994 action: STATE_SET "disabled" 0.0;
6995 target: "button_image";
6997 after: "disable_text";
6999 program { name: "disable_text";
7003 get_state(PART:"elm.text", st, 30, vl);
7004 if (!strcmp(st, "visible"))
7005 set_state(PART:"elm.text", "disabled_visible", 0.0);
7007 set_state(PART:"elm.text", "disabled", 0.0);
7008 set_int(button_state, BUTTON_STATE_DISABLED);
7011 program { name: "enable";
7012 signal: "elm,state,enabled";
7014 action: STATE_SET "default" 0.0;
7015 target: "button_image";
7017 after: "enable_text";
7019 program { name: "enable_text";
7023 get_state(PART:"elm.text", st, 30, vl);
7024 if (!strcmp(st, "disabled_visible"))
7025 set_state(PART:"elm.text", "visible", 0.0);
7027 set_state(PART:"elm.text", "default", 0.0);
7028 set_int(button_state, BUTTON_STATE_ENABLED);
7031 program { name: "focused";
7032 //signal: "elm,action,focus";
7034 action: STATE_SET "focused" 0.0;
7035 target: "button_image";
7038 program { name: "unfocused";
7039 //signal: "elm,action,unfocus";
7041 action: STATE_SET "default" 0.0;
7042 target: "button_image";
7043 after: "unfocus_text";
7045 program { name: "unfocus_text";
7046 action: STATE_SET "visible" 0.0;
7052 ///////////////////////////////////////////////////////////////////////////////////////
7053 group { name: "elm/button/base/picker/bar/default";
7055 image: "00_picker_btn_normal.png" COMP;
7056 image: "00_picker_btn_press.png" COMP;
7059 public button_state = BUTTON_STATE_ENABLED;
7062 part { name: "button_image";
7064 description { state: "default" 0.0;
7065 min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7067 normal: "00_picker_btn_normal.png";
7068 border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7072 description { state: "clicked" 0.0;
7073 inherit: "default" 0.0;
7074 image.normal: "00_picker_btn_press.png";
7076 description { state: "disabled" 0.0;
7077 inherit: "default" 0.0;
7079 description { state: "focused" 0.0;
7080 inherit: "default" 0.0;
7081 image.normal: "00_picker_btn_press.png";
7084 part { name: "padding_left_top";
7088 description { state: "default" 0.0;
7090 rel2.relative: 0.0 0.0;
7091 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7096 part { name: "padding_right_bottom";
7100 description { state: "default" 0.0;
7102 rel1.relative: 1.0 1.0;
7103 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7108 part { name: "icon_rect";
7112 description { state: "default" 0.0;
7113 min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7117 to_x: "elm.swallow.content";
7118 to_y: "padding_left_top";
7122 to_x: "elm.swallow.content";
7123 to_y: "padding_right_bottom";
7129 part { name: "padding_icon_text";
7133 description { state: "default" 0.0; //when only icon or no icon is there
7139 rel2.to: "icon_rect";
7144 description { state: "icononly" 0.0;
7145 inherit: "default" 0.0;
7147 description { state: "visible" 0.0; //when icon is visible
7153 rel2.to: "icon_rect";
7155 min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7159 part { name: "elm.swallow.content";
7163 description { state: "default" 0.0;
7168 to: "padding_left_top";
7172 to_x: "padding_left_top";
7173 to_y: "padding_right_bottom";
7177 description { state: "visible" 0.0;
7182 to: "padding_left_top";
7186 to_x: "padding_left_top";
7187 to_y: "padding_right_bottom";
7190 aspect_preference: VERTICAL;
7192 description { state: "icononly" 0.0;
7193 min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7196 to: "padding_left_top";
7200 to_x: "padding_left_top";
7201 to_y: "padding_right_bottom";
7204 aspect_preference: VERTICAL;
7207 part { name: "elm.text";
7212 description { state: "default" 0.0;
7216 to_x: "padding_icon_text";
7217 to_y: "padding_left_top";
7221 to: "padding_right_bottom";
7223 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7225 font: "SLP:style=Medium";
7226 size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7229 text_class: "slp_medium";
7232 description { state: "visible" 0.0;
7233 inherit: "default" 0.0;
7235 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7237 description { state: "clicked" 0.0;
7238 inherit: "default" 0.0;
7241 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7243 description { state: "disabled" 0.0;
7244 inherit: "default" 0.0;
7245 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7247 description { state: "disabled_visible" 0.0;
7248 inherit: "default" 0.0;
7249 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7251 min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7253 description { state: "focused" 0.0;
7254 inherit: "default" 0.0;
7257 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7260 part { name: "over2";
7263 ignore_flags: ON_HOLD;
7264 description { state: "default" 0.0;
7268 part { name: "over3";
7271 description { state: "default" 0.0;
7275 part { name: "clipper";
7277 description { state: "default" 0.0;
7278 color: 255 255 255 255;
7281 part { name: "disabler";
7283 description { state: "default" 0.0;
7287 description { state: "disabled" 0.0;
7288 inherit: "default" 0.0;
7294 program { name: "button_click";
7295 signal: "mouse,down,1";
7297 action: SIGNAL_EMIT "elm,action,press" "";
7298 after: "button_click_anim";
7300 program { name: "button_click_anim";
7301 action: STATE_SET "clicked" 0.0;
7302 target: "button_image";
7303 after: "text_clicked";
7305 program { name: "text_clicked";
7309 get_state(PART:"elm.text", st, 30, vl);
7310 if (!strcmp(st, "visible"))
7311 set_state(PART:"elm.text", "clicked", 0.0);
7314 program { name: "button_unpress";
7315 action: SIGNAL_EMIT "elm,action,unpress" "";
7317 program { name: "button_mouseout_clicked";
7318 signal: "mouse,up,1";
7323 get_state(PART:"elm.swallow.content", st, 30, vl);
7324 if (strcmp(st, "icononly"))
7326 emit("elm,action,default,text,set", "");
7327 set_state(PART:"elm.text", "visible", 0.0);
7329 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7330 set_state(PART:"button_image", "default", 0.0);
7332 after: button_unpress;
7334 program { name: "touch_snd";
7335 signal: "mouse,clicked,1";
7337 action: PLAY_SAMPLE "touch_sound" 1.0;
7338 after: button_unclick3;
7340 program { name: "button_unclick3";
7341 action: SIGNAL_EMIT "elm,action,click" "";
7343 program { name: "text_show";
7344 signal: "elm,state,text,visible";
7349 get_state(PART:"elm.swallow.content", st, 30, vl);
7350 if (!strcmp(st, "icononly"))
7352 set_state(PART:"elm.swallow.content", "visible", 0.0);
7353 set_state(PART:"padding_icon_text", "visible", 0.0);
7355 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7356 set_state(PART:"elm.text", "visible", 0.0);
7358 set_state(PART:"elm.text", "disabled_visible", 0.0);
7361 program { name: "text_hide";
7362 signal: "elm,state,text,hidden";
7367 get_state(PART:"elm.swallow.content", st, 30, vl);
7368 if (!strcmp(st, "visible"))
7370 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7371 set_state(PART:"padding_icon_text", "icononly", 0.0);
7373 set_state(PART:"elm.text", "default", 0.0);
7376 program { name: "icon_show";
7377 signal: "elm,state,icon,visible";
7382 get_state(PART:"elm.text", st, 30, vl);
7383 if (!strcmp(st, "visible"))
7385 set_state(PART:"elm.swallow.content", "visible", 0.0);
7386 set_state(PART:"padding_icon_text", "visible", 0.0);
7390 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7391 set_state(PART:"padding_icon_text", "icononly", 0.0);
7395 program { name: "icon_hide";
7396 signal: "elm,state,icon,hidden";
7398 action: STATE_SET "default" 0.0;
7399 target: "elm.swallow.content";
7400 target: "padding_icon_text";
7402 program { name: "disable";
7403 signal: "elm,state,disabled";
7405 action: STATE_SET "disabled" 0.0;
7406 target: "button_image";
7408 after: "disable_text";
7410 program { name: "disable_text";
7414 get_state(PART:"elm.text", st, 30, vl);
7415 if (!strcmp(st, "visible"))
7416 set_state(PART:"elm.text", "disabled_visible", 0.0);
7418 set_state(PART:"elm.text", "disabled", 0.0);
7419 set_int(button_state, BUTTON_STATE_DISABLED);
7422 program { name: "enable";
7423 signal: "elm,state,enabled";
7425 action: STATE_SET "default" 0.0;
7426 target: "button_image";
7428 after: "enable_text";
7430 program { name: "enable_text";
7434 get_state(PART:"elm.text", st, 30, vl);
7435 if (!strcmp(st, "disabled_visible"))
7436 set_state(PART:"elm.text", "visible", 0.0);
7438 set_state(PART:"elm.text", "default", 0.0);
7439 set_int(button_state, BUTTON_STATE_ENABLED);
7442 program { name: "focused";
7443 //signal: "elm,action,focus";
7445 action: STATE_SET "focused" 0.0;
7446 target: "button_image";
7449 program { name: "unfocused";
7450 //signal: "elm,action,unfocus";
7452 action: STATE_SET "default" 0.0;
7453 target: "button_image";
7454 after: "unfocus_text";
7456 program { name: "unfocus_text";
7457 action: STATE_SET "visible" 0.0;
7463 ///////////////////////////////////////////////////////////////////////////////////////
7464 group { name: "elm/button/base/picker/prev/text/default";
7465 alias: "elm/button/base/picker/next/text/default";
7467 image: "00_picker_btn_normal.png" COMP;
7468 image: "00_picker_btn_press.png" COMP;
7471 public button_state = BUTTON_STATE_ENABLED;
7474 part { name: "button_image";
7476 description { state: "default" 0.0;
7477 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7479 normal: "00_picker_btn_normal.png";
7480 border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7484 description { state: "clicked" 0.0;
7485 inherit: "default" 0.0;
7486 image.normal: "00_picker_btn_press.png";
7488 description { state: "disabled" 0.0;
7489 inherit: "default" 0.0;
7492 description { state: "focused" 0.0;
7493 inherit: "default" 0.0;
7494 image.normal: "00_picker_btn_press.png";
7497 part { name: "padding_left_top";
7501 description { state: "default" 0.0;
7503 rel2.relative: 0.0 0.0;
7504 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7509 part { name: "padding_right_bottom";
7513 description { state: "default" 0.0;
7515 rel1.relative: 1.0 1.0;
7516 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7521 part { name: "icon_rect";
7525 description { state: "default" 0.0;
7526 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7530 to_x: "elm.swallow.content";
7531 to_y: "padding_left_top";
7535 to_x: "elm.swallow.content";
7536 to_y: "padding_right_bottom";
7542 part { name: "padding_icon_text";
7546 description { state: "default" 0.0; //when only icon or no icon is there
7552 rel2.to: "icon_rect";
7557 description { state: "icononly" 0.0;
7558 inherit: "default" 0.0;
7560 description { state: "visible" 0.0; //when icon is visible
7566 rel2.to: "icon_rect";
7568 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7572 part { name: "elm.swallow.content";
7576 description { state: "default" 0.0;
7581 to: "padding_left_top";
7585 to_x: "padding_left_top";
7586 to_y: "padding_right_bottom";
7590 description { state: "visible" 0.0;
7595 to: "padding_left_top";
7599 to_x: "padding_left_top";
7600 to_y: "padding_right_bottom";
7603 aspect_preference: VERTICAL;
7605 description { state: "icononly" 0.0;
7606 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7609 to: "padding_left_top";
7613 to_x: "padding_left_top";
7614 to_y: "padding_right_bottom";
7617 aspect_preference: VERTICAL;
7620 part { name: "elm.text";
7625 description { state: "default" 0.0;
7629 to_x: "padding_icon_text";
7630 to_y: "padding_left_top";
7634 to: "padding_right_bottom";
7636 color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7638 font: "SLP:style=Medium";
7639 size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7642 text_class: "slp_medium";
7645 description { state: "visible" 0.0;
7646 inherit: "default" 0.0;
7648 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7650 description { state: "clicked" 0.0;
7651 inherit: "default" 0.0;
7654 color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7656 description { state: "disabled" 0.0;
7657 inherit: "default" 0.0;
7658 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7660 description { state: "disabled_visible" 0.0;
7661 inherit: "default" 0.0;
7662 color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7664 min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7666 description { state: "focused" 0.0;
7667 inherit: "default" 0.0;
7670 color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7673 part { name: "over2";
7676 ignore_flags: ON_HOLD;
7677 description { state: "default" 0.0;
7681 part { name: "over3";
7684 description { state: "default" 0.0;
7688 part { name: "clipper";
7690 description { state: "default" 0.0;
7691 color: 255 255 255 255;
7694 part { name: "disabler";
7696 description { state: "default" 0.0;
7700 description { state: "disabled" 0.0;
7701 inherit: "default" 0.0;
7707 program { name: "button_click";
7708 signal: "mouse,down,1";
7710 action: SIGNAL_EMIT "elm,action,press" "";
7711 after: "button_click_anim";
7713 program { name: "button_click_anim";
7714 action: STATE_SET "clicked" 0.0;
7715 target: "button_image";
7716 after: "text_clicked";
7718 program { name: "text_clicked";
7722 get_state(PART:"elm.text", st, 30, vl);
7723 if (!strcmp(st, "visible"))
7724 set_state(PART:"elm.text", "clicked", 0.0);
7727 program { name: "button_unpress";
7728 action: SIGNAL_EMIT "elm,action,unpress" "";
7730 program { name: "button_mouseout_clicked";
7731 signal: "mouse,up,1";
7736 get_state(PART:"elm.swallow.content", st, 30, vl);
7737 if (strcmp(st, "icononly"))
7739 emit("elm,action,default,text,set", "");
7740 set_state(PART:"elm.text", "visible", 0.0);
7742 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7743 set_state(PART:"button_image", "default", 0.0);
7745 after: button_unpress;
7747 program { name: "touch_snd";
7748 signal: "mouse,clicked,1";
7750 action: PLAY_SAMPLE "touch_sound" 1.0;
7751 after: button_unclick3;
7753 program { name: "button_unclick3";
7754 action: SIGNAL_EMIT "elm,action,click" "";
7756 program { name: "text_show";
7757 signal: "elm,state,text,visible";
7762 get_state(PART:"elm.swallow.content", st, 30, vl);
7763 if (!strcmp(st, "icononly"))
7765 set_state(PART:"elm.swallow.content", "visible", 0.0);
7766 set_state(PART:"padding_icon_text", "visible", 0.0);
7768 if (get_int(button_state) != BUTTON_STATE_DISABLED)
7769 set_state(PART:"elm.text", "visible", 0.0);
7771 set_state(PART:"elm.text", "disabled_visible", 0.0);
7774 program { name: "text_hide";
7775 signal: "elm,state,text,hidden";
7780 get_state(PART:"elm.swallow.content", st, 30, vl);
7781 if (!strcmp(st, "visible"))
7783 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7784 set_state(PART:"padding_icon_text", "icononly", 0.0);
7786 set_state(PART:"elm.text", "default", 0.0);
7789 program { name: "icon_show";
7790 signal: "elm,state,icon,visible";
7795 get_state(PART:"elm.text", st, 30, vl);
7796 if (!strcmp(st, "visible"))
7798 set_state(PART:"elm.swallow.content", "visible", 0.0);
7799 set_state(PART:"padding_icon_text", "visible", 0.0);
7803 set_state(PART:"elm.swallow.content", "icononly", 0.0);
7804 set_state(PART:"padding_icon_text", "icononly", 0.0);
7808 program { name: "icon_hide";
7809 signal: "elm,state,icon,hidden";
7811 action: STATE_SET "default" 0.0;
7812 target: "elm.swallow.content";
7813 target: "padding_icon_text";
7815 program { name: "disable";
7816 signal: "elm,state,disabled";
7818 action: STATE_SET "disabled" 0.0;
7819 target: "button_image";
7821 after: "disable_text";
7823 program { name: "disable_text";
7827 get_state(PART:"elm.text", st, 30, vl);
7828 if (!strcmp(st, "visible"))
7829 set_state(PART:"elm.text", "disabled_visible", 0.0);
7831 set_state(PART:"elm.text", "disabled", 0.0);
7832 set_int(button_state, BUTTON_STATE_DISABLED);
7835 program { name: "enable";
7836 signal: "elm,state,enabled";
7838 action: STATE_SET "default" 0.0;
7839 target: "button_image";
7841 after: "enable_text";
7843 program { name: "enable_text";
7847 get_state(PART:"elm.text", st, 30, vl);
7848 if (!strcmp(st, "disabled_visible"))
7849 set_state(PART:"elm.text", "visible", 0.0);
7851 set_state(PART:"elm.text", "default", 0.0);
7852 set_int(button_state, BUTTON_STATE_ENABLED);
7855 program { name: "focused";
7856 //signal: "elm,action,focus";
7858 action: STATE_SET "focused" 0.0;
7859 target: "button_image";
7862 program { name: "unfocused";
7863 //signal: "elm,action,unfocus";
7865 action: STATE_SET "default" 0.0;
7866 target: "button_image";
7867 after: "unfocus_text";
7869 program { name: "unfocus_text";
7870 action: STATE_SET "visible" 0.0;
7876 ///////////////////////////////////////////////////////////////////////////////////////
7877 group { name: "elm/button/base/contact";
7878 alias: "elm/button/base/text_only/contact";
7880 image: "00_contacts_button_bg.png" COMP;
7881 image: "00_contacts_button_bg_press.png" COMP;
7884 public button_state = BUTTON_STATE_ENABLED;
7887 part { name: "button_image";
7889 description { state: "default" 0.0;
7891 to_x: "padding.left";
7895 to_x: "padding.right";
7898 min: BUTTON_CONTACT_BG_MIN_INC;
7900 normal: "00_contacts_button_bg.png";
7901 border: BUTTON_CONTACT_BG_BORDER_INC;
7905 description { state: "clicked" 0.0;
7906 inherit: "default" 0.0;
7907 image.normal: "00_contacts_button_bg_press.png";
7909 description { state: "disabled" 0.0;
7910 inherit: "default" 0.0;
7913 description { state: "focused" 0.0;
7914 inherit: "default" 0.0;
7917 part { name: "padding.left";
7920 description { state: "default" 0.0;
7922 min: BUTTON_CONTACT_PADDING_MIN_INC;
7932 part { name: "padding.right";
7935 description { state: "default" 0.0;
7937 min: BUTTON_CONTACT_PADDING_MIN_INC;
7947 part { name: "elm.text";
7951 description { state: "default" 0.0;
7954 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
7956 font: "SLP:style=Medium";
7957 size: BUTTON_CONTACT_FONT_SIZE_INC;
7959 text_class: "slp_medium";
7962 description { state: "visible" 0.0;
7963 inherit: "default" 0.0;
7967 description { state: "clicked" 0.0;
7968 inherit: "default" 0.0;
7971 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
7973 description { state: "disabled" 0.0;
7974 inherit: "default" 0.0;
7977 description { state: "disabled_visible" 0.0;
7978 inherit: "default" 0.0;
7979 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
7983 description { state: "focused" 0.0;
7984 inherit: "default" 0.0;
7987 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
7990 part { name: "over1";
7992 description { state: "default" 0.0;
7993 rel2.relative: 1.0 0.5;
7996 part { name: "over2";
7998 ignore_flags: ON_HOLD;
7999 description { state: "default" 0.0;
8000 rel1.to: "button_image";
8001 rel2.to: "button_image";
8004 part { name: "over3";
8006 description { state: "default" 0.0;
8007 rel1.to: "button_image";
8008 rel2.to: "button_image";
8012 part { name: "disabler";
8014 description { state: "default" 0.0;
8015 rel1.to: "button_image";
8016 rel2.to: "button_image";
8020 description { state: "disabled" 0.0;
8021 inherit: "default" 0.0;
8027 program { name: "button_click";
8028 signal: "mouse,down,1";
8030 action: SIGNAL_EMIT "elm,action,press" "";
8031 after: "button_click_anim";
8033 program { name: "button_click_anim";
8034 action: STATE_SET "clicked" 0.0;
8035 target: "button_image";
8038 program { name: "button_unpress";
8039 action: SIGNAL_EMIT "elm,action,unpress" "";
8041 program { name: "button_mouseout_clicked";
8042 signal: "mouse,up,1";
8047 get_state(PART:"elm.text", st, 30, vl);
8048 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8050 emit("elm,action,default,text,set", "");
8051 set_state(PART:"elm.text", "visible", 0.0);
8053 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8054 set_state(PART:"button_image", "default", 0.0);
8056 after: button_unpress;
8058 program { name: "touch_snd";
8059 signal: "mouse,clicked,1";
8061 action: PLAY_SAMPLE "touch_sound" 1.0;
8062 after: button_unclick3;
8064 program { name: "button_unclick3";
8065 action: SIGNAL_EMIT "elm,action,click" "";
8067 program { name: "text_show";
8068 signal: "elm,state,text,visible";
8071 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8072 set_state(PART:"elm.text", "visible", 0.0);
8074 set_state(PART:"elm.text", "disabled_visible", 0.0);
8077 program { name: "text_hide";
8078 signal: "elm,state,text,hidden";
8080 action: STATE_SET "default" 0.0;
8083 program { name: "disable";
8084 signal: "elm,state,disabled";
8086 action: STATE_SET "disabled" 0.0;
8087 target: "button_image";
8089 after: "disable_text";
8091 program { name: "disable_text";
8095 get_state(PART:"elm.text", st, 30, vl);
8096 if (!strcmp(st, "visible"))
8097 set_state(PART:"elm.text", "disabled_visible", 0.0);
8099 set_state(PART:"elm.text", "disabled", 0.0);
8100 set_int(button_state, BUTTON_STATE_DISABLED);
8103 program { name: "enable";
8104 signal: "elm,state,enabled";
8106 action: STATE_SET "default" 0.0;
8107 target: "button_image";
8109 after: "enable_text";
8111 program { name: "enable_text";
8115 get_state(PART:"elm.text", st, 30, vl);
8116 if (!strcmp(st, "disabled_visible"))
8117 set_state(PART:"elm.text", "visible", 0.0);
8119 set_state(PART:"elm.text", "default", 0.0);
8120 set_int(button_state, BUTTON_STATE_ENABLED);
8123 program { name: "focused";
8124 //signal: "elm,action,focus";
8126 action: STATE_SET "focused" 0.0;
8127 target: "button_image";
8130 program { name: "unfocused";
8131 //signal: "elm,action,unfocus";
8133 action: STATE_SET "default" 0.0;
8134 target: "button_image";
8135 action: STATE_SET "visible" 0.0;
8141 ///////////////////////////////////////////////////////////////////////////////////////
8142 group { name: "elm/button/base/naviframe/back_btn/default";
8143 alias: "elm/button/base/naviframe/prev_btn/default";
8144 alias: "elm/button/base/naviframe/end_btn/default";
8146 image: "00_winset_Back_btn_normal.png" COMP;
8147 image: "00_winset_Back_btn_press.png" COMP;
8148 image: "00_winset_Back.png" COMP;
8151 public button_state = BUTTON_STATE_ENABLED;
8154 part { name: "button_image";
8156 description { state: "default" 0.0;
8157 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8158 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8160 normal: "00_winset_Back_btn_normal.png";
8161 border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8165 description { state: "clicked" 0.0;
8166 inherit: "default" 0.0;
8167 image.normal: "00_winset_Back_btn_press.png";
8169 description { state: "disabled" 0.0;
8170 inherit: "default" 0.0;
8172 description { state: "focused" 0.0;
8173 inherit: "default" 0.0;
8174 image.normal: "00_winset_Back_btn_press.png";
8177 part { name: "back_button";
8180 description { state: "default" 0.0;
8181 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8182 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8183 rel1.to: "button_image";
8184 rel2.to: "button_image";
8185 image.normal: "00_winset_Back.png";
8187 description { state: "clicked" 0.0;
8188 inherit: "default" 0.0;
8190 description { state: "disabled" 0.0;
8191 inherit: "default" 0.0;
8192 color: 127 127 127 127;
8195 part { name: "over2";
8198 ignore_flags: ON_HOLD;
8199 description { state: "default" 0.0;
8203 part { name: "over3";
8206 description { state: "default" 0.0;
8210 part { name: "disabler";
8212 description { state: "default" 0.0;
8216 description { state: "disabled" 0.0;
8217 inherit: "default" 0.0;
8223 program { name: "button_click";
8224 signal: "mouse,down,1";
8226 action: SIGNAL_EMIT "elm,action,press" "";
8227 after: "button_click_anim";
8229 program { name: "button_click_anim";
8230 action: STATE_SET "clicked" 0.0;
8231 target: "button_image";
8233 program { name: "button_unpress";
8234 action: SIGNAL_EMIT "elm,action,unpress" "";
8236 program { name: "button_mouseout_clicked";
8237 signal: "mouse,up,1";
8240 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8241 set_state(PART:"button_image", "default", 0.0);
8243 after: button_unpress;
8245 program { name: "touch_snd";
8246 signal: "mouse,clicked,1";
8248 action: PLAY_SAMPLE "touch_sound" 1.0;
8249 after: button_unclick3;
8251 program { name: "button_unclick3";
8252 action: SIGNAL_EMIT "elm,action,click" "";
8254 program { name: "disable";
8255 signal: "elm,state,disabled";
8257 action: STATE_SET "disabled" 0.0;
8258 target: "button_image";
8260 target: "back_button";
8261 after: "disable_button";
8263 program { name: "disable_button";
8265 set_int(button_state, BUTTON_STATE_DISABLED);
8268 program { name: "enable";
8269 signal: "elm,state,enabled";
8271 action: STATE_SET "default" 0.0;
8272 target: "button_image";
8274 target: "back_button";
8275 after: "enable_button";
8277 program { name: "enable_button";
8279 set_int(button_state, BUTTON_STATE_ENABLED);
8285 ///////////////////////////////////////////////////////////////////////////////////////
8286 group { name: "elm/button/base/picker/prev/icon/default";
8288 image: "00_picker_btn_normal.png" COMP;
8289 image: "00_picker_btn_press.png" COMP;
8290 image: "00_picker_arrow_left.png" COMP;
8291 image: "00_picker_arrow_left_press.png" COMP;
8294 public button_state = BUTTON_STATE_ENABLED;
8297 part { name: "button_image";
8299 description { state: "default" 0.0;
8300 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8301 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8303 normal: "00_picker_btn_normal.png";
8304 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8308 description { state: "clicked" 0.0;
8309 inherit: "default" 0.0;
8310 image.normal: "00_picker_btn_press.png";
8312 description { state: "disabled" 0.0;
8313 inherit: "default" 0.0;
8315 description { state: "focused" 0.0;
8316 inherit: "default" 0.0;
8317 image.normal: "00_picker_btn_press.png";
8320 part { name: "padding_left_top";
8324 description { state: "default" 0.0;
8326 rel2.relative: 0.0 0.0;
8327 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8332 part { name: "padding_right_bottom";
8336 description { state: "default" 0.0;
8338 rel1.relative: 1.0 1.0;
8339 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8344 part { name: "left_arrow";
8347 description { state: "default" 0.0;
8348 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8349 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8352 to: "padding_left_top";
8356 to: "padding_right_bottom";
8358 image.normal: "00_picker_arrow_left.png";
8360 description { state: "clicked" 0.0;
8361 inherit: "default" 0.0;
8362 image.normal: "00_picker_arrow_left_press.png";
8365 part { name: "over2";
8368 ignore_flags: ON_HOLD;
8369 description { state: "default" 0.0;
8373 part { name: "over3";
8376 description { state: "default" 0.0;
8380 part { name: "disabler";
8382 description { state: "default" 0.0;
8386 description { state: "disabled" 0.0;
8387 inherit: "default" 0.0;
8393 program { name: "button_click";
8394 signal: "mouse,down,1";
8396 action: SIGNAL_EMIT "elm,action,press" "";
8397 after: "button_click_anim";
8399 program { name: "button_click_anim";
8400 action: STATE_SET "clicked" 0.0;
8401 target: "button_image";
8403 program { name: "button_unpress";
8404 action: SIGNAL_EMIT "elm,action,unpress" "";
8406 program { name: "button_mouseout_clicked";
8407 signal: "mouse,up,1";
8410 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8411 set_state(PART:"button_image", "default", 0.0);
8413 after: button_unpress;
8415 program { name: "touch_snd";
8416 signal: "mouse,clicked,1";
8418 action: PLAY_SAMPLE "touch_sound" 1.0;
8419 after: button_unclick3;
8421 program { name: "button_unclick3";
8422 action: SIGNAL_EMIT "elm,action,click" "";
8424 program { name: "disable";
8425 signal: "elm,state,disabled";
8427 action: STATE_SET "disabled" 0.0;
8428 target: "button_image";
8430 after: "disable_button";
8432 program { name: "disable_button";
8434 set_int(button_state, BUTTON_STATE_DISABLED);
8437 program { name: "enable";
8438 signal: "elm,state,enabled";
8440 action: STATE_SET "default" 0.0;
8441 target: "button_image";
8443 after: "enable_button";
8445 program { name: "enable_button";
8447 set_int(button_state, BUTTON_STATE_ENABLED);
8450 program { name: "focused";
8451 //signal: "elm,action,focus";
8453 action: STATE_SET "focused" 0.0;
8454 target: "button_image";
8456 program { name: "unfocused";
8457 //signal: "elm,action,unfocus";
8459 action: STATE_SET "default" 0.0;
8460 target: "button_image";
8465 ///////////////////////////////////////////////////////////////////////////////////////
8466 group { name: "elm/button/base/picker/next/icon/default";
8468 image: "00_picker_btn_normal.png" COMP;
8469 image: "00_picker_btn_press.png" COMP;
8470 image: "00_picker_arrow_right.png" COMP;
8471 image: "00_picker_arrow_right_press.png" COMP;
8474 public button_state = BUTTON_STATE_ENABLED;
8477 part { name: "button_image";
8479 description { state: "default" 0.0;
8480 min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8481 max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8483 normal: "00_picker_btn_normal.png";
8484 border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8488 description { state: "clicked" 0.0;
8489 inherit: "default" 0.0;
8490 image.normal: "00_picker_btn_press.png";
8492 description { state: "disabled" 0.0;
8493 inherit: "default" 0.0;
8495 description { state: "focused" 0.0;
8496 inherit: "default" 0.0;
8497 image.normal: "00_picker_btn_press.png";
8500 part { name: "padding_left_top";
8504 description { state: "default" 0.0;
8506 rel2.relative: 0.0 0.0;
8507 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8512 part { name: "padding_right_bottom";
8516 description { state: "default" 0.0;
8518 rel1.relative: 1.0 1.0;
8519 min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8524 part { name: "right_arrow";
8527 description { state: "default" 0.0;
8528 min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8529 max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8532 to: "padding_left_top";
8536 to: "padding_right_bottom";
8538 image.normal: "00_picker_arrow_right.png";
8540 description { state: "clicked" 0.0;
8541 inherit: "default" 0.0;
8542 image.normal: "00_picker_arrow_right_press.png";
8545 part { name: "over2";
8548 ignore_flags: ON_HOLD;
8549 description { state: "default" 0.0;
8553 part { name: "over3";
8556 description { state: "default" 0.0;
8560 part { name: "disabler";
8562 description { state: "default" 0.0;
8566 description { state: "disabled" 0.0;
8567 inherit: "default" 0.0;
8573 program { name: "button_click";
8574 signal: "mouse,down,1";
8576 action: SIGNAL_EMIT "elm,action,press" "";
8577 after: "button_click_anim";
8579 program { name: "button_click_anim";
8580 action: STATE_SET "clicked" 0.0;
8581 target: "button_image";
8583 program { name: "button_unpress";
8584 action: SIGNAL_EMIT "elm,action,unpress" "";
8586 program { name: "button_mouseout_clicked";
8587 signal: "mouse,up,1";
8590 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8591 set_state(PART:"button_image", "default", 0.0);
8593 after: button_unpress;
8595 program { name: "touch_snd";
8596 signal: "mouse,clicked,1";
8598 action: PLAY_SAMPLE "touch_sound" 1.0;
8599 after: button_unclick3;
8601 program { name: "button_unclick3";
8602 action: SIGNAL_EMIT "elm,action,click" "";
8604 program { name: "disable";
8605 signal: "elm,state,disabled";
8607 action: STATE_SET "disabled" 0.0;
8608 target: "button_image";
8610 after: "disable_button";
8612 program { name: "disable_button";
8614 set_int(button_state, BUTTON_STATE_DISABLED);
8617 program { name: "enable";
8618 signal: "elm,state,enabled";
8620 action: STATE_SET "default" 0.0;
8621 target: "button_image";
8623 after: "enable_button";
8625 program { name: "enable_button";
8627 set_int(button_state, BUTTON_STATE_ENABLED);
8630 program { name: "focused";
8631 //signal: "elm,action,focus";
8633 action: STATE_SET "focused" 0.0;
8634 target: "button_image";
8636 program { name: "unfocused";
8637 //signal: "elm,action,unfocus";
8639 action: STATE_SET "default" 0.0;
8640 target: "button_image";
8645 ///////////////////////////////////////////////////////////////////////////////////////
8646 group { name: "elm/button/base/naviframe_control/default";
8647 alias: "elm/button/base/naviframe_control/center";
8649 public button_state = BUTTON_STATE_ENABLED;
8652 image: "00_Option_header_bt.png" COMP;
8653 image: "00_Option_header_bt_dim.png" COMP;
8654 image: "00_Option_header_bt_press.png" COMP;
8657 part { name: "button_image";
8659 description { state: "default" 0.0;
8660 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8665 normal: "00_Option_header_bt.png";
8666 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8668 color: 255 255 255 255;
8670 description { state: "disabled" 0.0;
8671 inherit: "default" 0.0;
8672 image.normal: "00_Option_header_bt_dim.png";
8674 description { state: "clicked" 0.0;
8675 inherit: "default" 0.0;
8676 image.normal: "00_Option_header_bt_press.png";
8679 part { name: "padding_left_top";
8683 description { state: "default" 0.0;
8685 rel2.relative: 0.0 0.0;
8686 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8691 part { name: "padding_right_bottom";
8695 description { state: "default" 0.0;
8697 rel1.relative: 1.0 1.0;
8698 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8703 part { name: "icon_rect";
8707 description { state: "default" 0.0;
8712 to: "padding_left_top";
8716 to_x: "padding_left_top";
8717 to_y: "padding_right_bottom";
8722 description { state: "visible" 0.0;
8723 min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8727 to: "padding_left_top";
8731 to_x: "padding_left_top";
8732 to_y: "padding_right_bottom";
8737 description { state: "icononly" 0.0;
8738 inherit: "default" 0.0;
8741 part { name: "padding_after_icon";
8745 description { state: "default" 0.0; //when only icon or no icon is there
8751 rel2.to: "icon_rect";
8756 description { state: "visible" 0.0;
8762 rel2.to: "icon_rect";
8764 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8767 description { state: "icononly" 0.0;
8768 inherit: "default" 0.0;
8771 part { name: "padding_before_text";
8775 description { state: "default" 0.0; //when only icon or no icon is there
8780 to_y: "padding_left_top";
8785 to_y: "padding_right_bottom";
8788 min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8792 part { name: "elm.swallow.content";
8796 description { state: "default" 0.0;
8801 to: "padding_left_top";
8805 to_x: "padding_left_top";
8806 to_y: "padding_right_bottom";
8810 description { state: "visible" 0.0;
8812 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8813 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8817 to_x: "padding_before_text";
8818 to_y: "padding_left_top";
8822 to_x: "padding_before_text";
8823 to_y: "padding_right_bottom";
8826 aspect_preference: VERTICAL;
8828 description { state: "icononly" 0.0;
8829 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8830 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8833 to: "padding_left_top";
8837 to: "padding_right_bottom";
8840 aspect_preference: VERTICAL;
8843 part { name: "elm.text";
8848 description { state: "default" 0.0;
8852 to_x: "padding_after_icon";
8853 to_y: "padding_left_top";
8857 to: "padding_right_bottom";
8859 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8861 font: "SLP:style=Medium";
8862 size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8865 text_class: "slp_medium";
8868 description { state: "visible" 0.0;
8869 inherit: "default" 0.0;
8872 description { state: "clicked" 0.0;
8873 inherit: "default" 0.0;
8877 description { state: "focused" 0.0;
8878 inherit: "default" 0.0;
8881 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8884 part { name: "over2";
8887 ignore_flags: ON_HOLD;
8888 description { state: "default" 0.0;
8892 part { name: "over3";
8895 description { state: "default" 0.0;
8899 part { name: "clipper";
8901 description { state: "default" 0.0;
8902 color: 255 255 255 255;
8904 description { state: "disabled" 0.0;
8905 color: 255 255 255 127;
8908 part { name: "disabler";
8910 description { state: "default" 0.0;
8914 description { state: "disabled" 0.0;
8915 inherit: "default" 0.0;
8921 program { name: "button_click";
8922 signal: "mouse,down,1";
8924 action: SIGNAL_EMIT "elm,action,press" "";
8925 after: "button_click_anim";
8927 program { name: "button_click_anim";
8928 action: STATE_SET "clicked" 0.0;
8929 target: "button_image";
8930 after: "text_clicked";
8932 program { name: "text_clicked";
8936 get_state(PART:"elm.text", st, 30, vl);
8937 if (!strcmp(st, "visible"))
8938 set_state(PART:"elm.text", "clicked", 0.0);
8941 program { name: "button_unpress";
8942 action: SIGNAL_EMIT "elm,action,unpress" "";
8944 program { name: "button_mouseout_clicked";
8945 signal: "mouse,up,1";
8950 get_state(PART:"elm.swallow.content", st, 30, vl);
8951 if (strcmp(st, "icononly"))
8953 emit("elm,action,default,text,set", "");
8954 set_state(PART:"elm.text", "visible", 0.0);
8956 if (get_int(button_state) != BUTTON_STATE_DISABLED)
8957 set_state(PART:"button_image", "default", 0.0);
8959 after: button_unpress;
8961 program { name: "touch_snd";
8962 signal: "mouse,clicked,1";
8964 action: PLAY_SAMPLE "touch_sound" 1.0;
8965 after: button_unclick3;
8967 program { name: "button_unclick3";
8968 action: SIGNAL_EMIT "elm,action,click" "";
8970 program { name: "text_show";
8971 signal: "elm,state,text,visible";
8976 get_state(PART:"elm.swallow.content", st, 30, vl);
8977 if (!strcmp(st, "icononly"))
8979 set_state(PART:"elm.swallow.content", "visible", 0.0);
8980 set_state(PART:"icon_rect", "visible", 0.0);
8981 set_state(PART:"padding_after_icon", "visible", 0.0);
8983 set_state(PART:"elm.text", "visible", 0.0);
8986 program { name: "text_hide";
8987 signal: "elm,state,text,hidden";
8992 get_state(PART:"elm.swallow.content", st, 30, vl);
8993 if (!strcmp(st, "visible"))
8995 set_state(PART:"elm.swallow.content", "icononly", 0.0);
8996 set_state(PART:"icon_rect", "icononly", 0.0);
8997 set_state(PART:"padding_after_icon", "icononly", 0.0);
8999 set_state(PART:"elm.text", "default", 0.0);
9002 program { name: "icon_show";
9003 signal: "elm,state,icon,visible";
9008 get_state(PART:"elm.text", st, 30, vl);
9009 if (!strcmp(st, "visible"))
9011 set_state(PART:"elm.swallow.content", "visible", 0.0);
9012 set_state(PART:"icon_rect", "visible", 0.0);
9013 set_state(PART:"padding_after_icon", "visible", 0.0);
9017 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9018 set_state(PART:"icon_rect", "icononly", 0.0);
9019 set_state(PART:"padding_after_icon", "icononly", 0.0);
9023 program { name: "icon_hide";
9024 signal: "elm,state,icon,hidden";
9026 action: STATE_SET "default" 0.0;
9027 target: "elm.swallow.content";
9028 target: "icon_rect";
9029 target: "padding_after_icon";
9031 program { name: "disable";
9032 signal: "elm,state,disabled";
9034 action: STATE_SET "disabled" 0.0;
9035 target: "button_image";
9038 after: "disable_text";
9040 program { name: "disable_text";
9044 set_int(button_state, BUTTON_STATE_DISABLED);
9045 get_state(PART:"elm.text", st, 30, vl);
9046 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9047 set_state(PART:"elm.text", "visible", 0.0);
9050 program { name: "enable";
9051 signal: "elm,state,enabled";
9053 action: STATE_SET "default" 0.0;
9054 target: "button_image";
9057 after: "enable_text";
9059 program { name: "enable_text";
9063 set_int(button_state, BUTTON_STATE_ENABLED);
9064 get_state(PART:"elm.text", st, 30, vl);
9065 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9066 set_state(PART:"elm.text", "visible", 0.0);
9069 program { name: "focused";
9070 action: STATE_SET "focused" 0.0;
9071 target: "button_image";
9074 program { name: "unfocused";
9075 action: STATE_SET "default" 0.0;
9076 target: "button_image";
9077 after: "unfocus_text";
9079 program { name: "unfocus_text";
9080 action: STATE_SET "visible" 0.0;
9086 ///////////////////////////////////////////////////////////////////////////////////////
9087 group { name: "elm/button/base/naviframe_control/multiline";
9089 public button_state = BUTTON_STATE_ENABLED;
9092 image: "00_Option_header_bt.png" COMP;
9093 image: "00_Option_header_bt_dim.png" COMP;
9094 image: "00_Option_header_bt_press.png" COMP;
9097 style { name: "btn_multiline_naviframe_controlbar_style";
9098 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9105 part { name: "button_image";
9107 description { state: "default" 0.0;
9108 min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9112 normal: "00_Option_header_bt.png";
9113 border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9115 color: 255 255 255 255;
9117 description { state: "disabled" 0.0;
9118 inherit: "default" 0.0;
9119 image.normal: "00_Option_header_bt_dim.png";
9121 description { state: "clicked" 0.0;
9122 inherit: "default" 0.0;
9123 image.normal: "00_Option_header_bt_press.png";
9126 part { name: "padding_left_top";
9130 description { state: "default" 0.0;
9132 rel2.relative: 0.0 0.0;
9133 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9138 part { name: "padding_right_bottom";
9142 description { state: "default" 0.0;
9144 rel1.relative: 1.0 1.0;
9145 min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9150 part { name: "icon_rect";
9154 description { state: "default" 0.0;
9160 to_x: "elm.swallow.content";
9161 to_y: "padding_left_top";
9165 to_x: "elm.swallow.content";
9166 to_y: "padding_right_bottom";
9171 part { name: "padding_icon_text";
9175 description { state: "default" 0.0; //when only icon or no icon is there
9189 description { state: "visible" 0.0;
9190 inherit: "default" 0.0;
9191 min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9201 description { state: "icononly" 0.0;
9202 inherit: "default" 0.0;
9205 part { name: "elm.swallow.content";
9209 description { state: "default" 0.0;
9214 to: "padding_left_top";
9218 to_x: "padding_left_top";
9219 to_y: "padding_right_bottom";
9223 description { state: "visible" 0.0;
9225 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9226 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9230 to: "padding_left_top";
9234 to_x: "padding_left_top";
9235 to_y: "padding_right_bottom";
9238 description { state: "icononly" 0.0;
9239 min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9240 max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9243 to: "padding_left_top";
9247 to: "padding_right_bottom";
9251 part { name: "elm.text";
9256 description { state: "default" 0.0;
9260 to_x: "padding_icon_text";
9261 to_y: "padding_left_top";
9265 to: "padding_right_bottom";
9267 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9269 style: "btn_multiline_naviframe_controlbar_style";
9274 description { state: "visible" 0.0;
9275 inherit: "default" 0.0;
9279 description { state: "clicked" 0.0;
9280 inherit: "default" 0.0;
9284 description { state: "focused" 0.0;
9285 inherit: "default" 0.0;
9288 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9291 part { name: "over2";
9294 ignore_flags: ON_HOLD;
9295 description { state: "default" 0.0;
9299 part { name: "over3";
9302 description { state: "default" 0.0;
9306 part { name: "clipper";
9308 description { state: "default" 0.0;
9309 color: 255 255 255 255;
9311 description { state: "disabled" 0.0;
9312 color: 255 255 255 127;
9315 part { name: "disabler";
9317 description { state: "default" 0.0;
9321 description { state: "disabled" 0.0;
9322 inherit: "default" 0.0;
9328 program { name: "button_click";
9329 signal: "mouse,down,1";
9331 action: SIGNAL_EMIT "elm,action,press" "";
9332 after: "button_click_anim";
9334 program { name: "button_click_anim";
9335 action: STATE_SET "clicked" 0.0;
9336 target: "button_image";
9337 after: "text_clicked";
9339 program { name: "text_clicked";
9343 get_state(PART:"elm.text", st, 30, vl);
9344 if (!strcmp(st, "visible"))
9345 set_state(PART:"elm.text", "clicked", 0.0);
9348 program { name: "button_unpress";
9349 action: SIGNAL_EMIT "elm,action,unpress" "";
9351 program { name: "button_mouseout_clicked";
9352 signal: "mouse,up,1";
9357 get_state(PART:"elm.swallow.content", st, 30, vl);
9358 if (strcmp(st, "icononly"))
9360 emit("elm,action,default,text,set", "");
9361 set_state(PART:"elm.text", "visible", 0.0);
9363 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9364 set_state(PART:"button_image", "default", 0.0);
9366 after: button_unpress;
9368 program { name: "touch_snd";
9369 signal: "mouse,clicked,1";
9371 action: PLAY_SAMPLE "touch_sound" 1.0;
9372 after: button_unclick3;
9374 program { name: "button_unclick3";
9375 action: SIGNAL_EMIT "elm,action,click" "";
9377 program { name: "text_show";
9378 signal: "elm,state,text,visible";
9383 get_state(PART:"elm.swallow.content", st, 30, vl);
9384 if (!strcmp(st, "icononly"))
9386 set_state(PART:"elm.swallow.content", "visible", 0.0);
9387 set_state(PART:"padding_icon_text", "visible", 0.0);
9389 set_state(PART:"elm.text", "visible", 0.0);
9392 program { name: "text_hide";
9393 signal: "elm,state,text,hidden";
9398 get_state(PART:"elm.swallow.content", st, 30, vl);
9399 if (!strcmp(st, "visible"))
9401 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9402 set_state(PART:"padding_icon_text", "icononly", 0.0);
9404 set_state(PART:"elm.text", "default", 0.0);
9407 program { name: "icon_show";
9408 signal: "elm,state,icon,visible";
9413 get_state(PART:"elm.text", st, 30, vl);
9414 if (!strcmp(st, "visible"))
9416 set_state(PART:"elm.swallow.content", "visible", 0.0);
9417 set_state(PART:"padding_icon_text", "visible", 0.0);
9421 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9422 set_state(PART:"padding_icon_text", "icononly", 0.0);
9426 program { name: "icon_hide";
9427 signal: "elm,state,icon,hidden";
9429 action: STATE_SET "default" 0.0;
9430 target: "elm.swallow.content";
9431 target: "padding_icon_text";
9433 program { name: "disable";
9434 signal: "elm,state,disabled";
9436 action: STATE_SET "disabled" 0.0;
9437 target: "button_image";
9440 after: "disable_text";
9442 program { name: "disable_text";
9446 set_int(button_state, BUTTON_STATE_DISABLED);
9447 get_state(PART:"elm.text", st, 30, vl);
9448 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9449 set_state(PART:"elm.text", "visible", 0.0);
9452 program { name: "enable";
9453 signal: "elm,state,enabled";
9455 action: STATE_SET "default" 0.0;
9456 target: "button_image";
9459 after: "enable_text";
9461 program { name: "enable_text";
9465 set_int(button_state, BUTTON_STATE_ENABLED);
9466 get_state(PART:"elm.text", st, 30, vl);
9467 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9468 set_state(PART:"elm.text", "visible", 0.0);
9471 program { name: "focused";
9472 action: STATE_SET "focused" 0.0;
9473 target: "button_image";
9476 program { name: "unfocused";
9477 action: STATE_SET "default" 0.0;
9478 target: "button_image";
9479 after: "unfocus_text";
9481 program { name: "unfocus_text";
9482 action: STATE_SET "visible" 0.0;
9488 //////////////////////////////////////////////////////////////
9489 group { name: "elm/button/base/naviframe/title/default";
9491 public button_state = BUTTON_STATE_ENABLED;
9494 style { name: "btn_naviframe_style";
9495 base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_medium";
9502 part { name: "button_image";
9505 description { state: "default" 0.0;
9506 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9507 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
9510 description { state: "clicked" 0.0;
9511 inherit: "default" 0.0;
9512 color: BUTTON_NAVIFRAME_BG_COLOR_PRESSED_INC;
9514 description { state: "disabled" 0.0;
9515 inherit: "default" 0.0;
9517 description { state: "focused" 0.0;
9518 inherit: "default" 0.0;
9521 part { name: "padding_left_top";
9525 description { state: "default" 0.0;
9527 rel2.relative: 0.0 0.0;
9528 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9533 part { name: "padding_right_bottom";
9537 description { state: "default" 0.0;
9539 rel1.relative: 1.0 1.0;
9540 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
9545 part { name: "icon_rect";
9549 description { state: "default" 0.0;
9555 to: "padding_left_top";
9559 to_x: "padding_left_top";
9560 to_y: "padding_right_bottom";
9564 description { state: "visible" 0.0;
9566 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9567 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9571 to: "padding_left_top";
9575 to_x: "padding_left_top";
9576 to_y: "padding_right_bottom";
9580 description { state: "icononly" 0.0;
9581 inherit: "default" 0.0;
9584 part { name: "padding_after_icon";
9588 description { state: "default" 0.0; //when only icon or no icon is there
9594 rel2.to: "icon_rect";
9599 description { state: "visible" 0.0;
9606 rel2.to: "icon_rect";
9608 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9610 description { state: "icononly" 0.0;
9611 inherit: "default" 0.0;
9614 part { name: "padding_before_text";
9618 description { state: "default" 0.0; //when only icon or no icon is there
9623 to_y: "padding_left_top";
9628 to_y: "padding_right_bottom";
9631 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9635 part { name: "elm.swallow.content";
9639 description { state: "default" 0.0;
9644 to: "padding_left_top";
9648 to_x: "padding_left_top";
9649 to_y: "padding_right_bottom";
9653 description { state: "visible" 0.0;
9655 min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9656 max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
9660 to_x: "padding_before_text";
9661 to_y: "padding_left_top";
9665 to_x: "padding_before_text";
9666 to_y: "padding_right_bottom";
9669 description { state: "icononly" 0.0;
9670 min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9671 max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
9674 part { name: "elm.text";
9679 description { state: "default" 0.0;
9683 to_x: "padding_after_icon";
9684 to_y: "padding_left_top";
9688 to: "padding_right_bottom";
9690 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
9692 style: "btn_naviframe_style";
9697 description { state: "visible" 0.0;
9698 inherit: "default" 0.0;
9701 description { state: "clicked" 0.0;
9702 inherit: "default" 0.0;
9704 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
9706 description { state: "disabled" 0.0;
9707 inherit: "default" 0.0;
9710 description { state: "disabled_visible" 0.0;
9711 inherit: "default" 0.0;
9712 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
9715 description { state: "focused" 0.0;
9716 inherit: "default" 0.0;
9718 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
9721 part { name: "over2";
9724 ignore_flags: ON_HOLD;
9725 description { state: "default" 0.0;
9729 part { name: "over3";
9732 description { state: "default" 0.0;
9736 part { name: "clipper";
9738 description { state: "default" 0.0;
9739 color: 255 255 255 255;
9742 part { name: "disabler";
9744 description { state: "default" 0.0;
9748 description { state: "disabled" 0.0;
9749 inherit: "default" 0.0;
9755 program { name: "button_click";
9756 signal: "mouse,down,1";
9758 action: SIGNAL_EMIT "elm,action,press" "";
9759 after: "button_click_anim";
9761 program { name: "button_click_anim";
9762 action: STATE_SET "clicked" 0.0;
9763 target: "button_image";
9764 after: "text_clicked";
9766 program { name: "text_clicked";
9770 get_state(PART:"elm.text", st, 30, vl);
9771 if (!strcmp(st, "visible"))
9772 set_state(PART:"elm.text", "clicked", 0.0);
9775 program { name: "button_unpress";
9776 action: SIGNAL_EMIT "elm,action,unpress" "";
9778 program { name: "button_mouseout_clicked";
9779 signal: "mouse,up,1";
9784 get_state(PART:"elm.swallow.content", st, 30, vl);
9785 if (strcmp(st, "icononly"))
9787 emit("elm,action,default,text,set", "");
9788 set_state(PART:"elm.text", "visible", 0.0);
9790 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9791 set_state(PART:"button_image", "default", 0.0);
9793 after: button_unpress;
9795 program { name: "touch_snd";
9796 signal: "mouse,clicked,1";
9798 action: PLAY_SAMPLE "touch_sound" 1.0;
9799 after: button_unclick3;
9801 program { name: "button_unclick3";
9802 action: SIGNAL_EMIT "elm,action,click" "";
9804 program { name: "text_show";
9805 signal: "elm,state,text,visible";
9810 get_state(PART:"elm.swallow.content", st, 30, vl);
9811 if (!strcmp(st, "icononly"))
9813 set_state(PART:"elm.swallow.content", "visible", 0.0);
9814 set_state(PART:"icon_rect", "visible", 0.0);
9815 set_state(PART:"padding_after_icon", "visible", 0.0);
9817 if (get_int(button_state) != BUTTON_STATE_DISABLED)
9818 set_state(PART:"elm.text", "visible", 0.0);
9820 set_state(PART:"elm.text", "disabled_visible", 0.0);
9823 program { name: "text_hide";
9824 signal: "elm,state,text,hidden";
9829 get_state(PART:"elm.swallow.content", st, 30, vl);
9830 if (!strcmp(st, "visible"))
9832 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9833 set_state(PART:"icon_rect", "icononly", 0.0);
9834 set_state(PART:"padding_after_icon", "icononly", 0.0);
9836 set_state(PART:"elm.text", "default", 0.0);
9839 program { name: "icon_show";
9840 signal: "elm,state,icon,visible";
9845 get_state(PART:"elm.text", st, 30, vl);
9846 if (!strcmp(st, "visible"))
9848 set_state(PART:"elm.swallow.content", "visible", 0.0);
9849 set_state(PART:"icon_rect", "visible", 0.0);
9850 set_state(PART:"padding_after_icon", "visible", 0.0);
9854 set_state(PART:"elm.swallow.content", "icononly", 0.0);
9855 set_state(PART:"icon_rect", "icononly", 0.0);
9856 set_state(PART:"padding_after_icon", "icononly", 0.0);
9860 program { name: "icon_hide";
9861 signal: "elm,state,icon,hidden";
9863 action: STATE_SET "default" 0.0;
9864 target: "elm.swallow.content";
9865 target: "padding_after_icon";
9866 target: "icon_rect";
9868 program { name: "disable";
9869 signal: "elm,state,disabled";
9871 action: STATE_SET "disabled" 0.0;
9872 target: "button_image";
9874 after: "disable_text";
9876 program { name: "disable_text";
9880 get_state(PART:"elm.text", st, 30, vl);
9881 if (!strcmp(st, "visible"))
9882 set_state(PART:"elm.text", "disabled_visible", 0.0);
9884 set_state(PART:"elm.text", "disabled", 0.0);
9885 set_int(button_state, BUTTON_STATE_DISABLED);
9888 program { name: "enable";
9889 signal: "elm,state,enabled";
9891 action: STATE_SET "default" 0.0;
9892 target: "button_image";
9894 after: "enable_text";
9896 program { name: "enable_text";
9900 get_state(PART:"elm.text", st, 30, vl);
9901 if (!strcmp(st, "disabled_visible"))
9902 set_state(PART:"elm.text", "visible", 0.0);
9904 set_state(PART:"elm.text", "default", 0.0);
9905 set_int(button_state, BUTTON_STATE_ENABLED);
9908 program { name: "focused";
9909 //signal: "elm,action,focus";
9911 action: STATE_SET "focused" 0.0;
9912 target: "button_image";
9915 program { name: "unfocused";
9916 //signal: "elm,action,unfocus";
9918 action: STATE_SET "default" 0.0;
9919 target: "button_image";
9920 after: "unfocus_text";
9922 program { name: "unfocus_text";
9923 action: STATE_SET "visible" 0.0;
9929 ///////////////////////////////////////////////////////////////////////////////////////
9930 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
9931 group { name: "elm/button/base/naviframe/title/icon/"style_name; \
9933 image: image_normal COMP; \
9934 image: image_press COMP; \
9937 part { name: "button_image"; \
9940 description { state: "default" 0.0; \
9941 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
9942 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
9946 state: "clicked" 0.0; \
9947 inherit: "default" 0.0; \
9950 state: "disabled" 0.0; \
9951 inherit: "default" 0.0; \
9953 description { state: "focused" 0.0; \
9954 inherit: "default" 0.0;\
9957 part { name: "icon_part"; \
9959 description { state: "default" 0.0; \
9960 min: min_width min_height; \
9961 max: min_width min_height; \
9962 rel1.to: "button_image"; \
9963 rel2.to: "button_image"; \
9964 image.normal: image_normal; \
9967 state: "clicked" 0.0; \
9968 inherit: "default" 0.0; \
9969 image.normal: image_press; \
9972 state: "disabled" 0.0; \
9973 inherit: "default" 0.0; \
9974 color: 127 127 127 127; \
9977 part { name: "over1"; \
9979 ignore_flags: ON_HOLD; \
9980 description { state: "default" 0.0; \
9982 min: min_width min_height; \
9985 part { name: "over2"; \
9987 description { state: "default" 0.0; \
9991 part { name: "disabler"; \
9993 description { state: "default" 0.0; \
9997 description { state: "disabled" 0.0; \
9998 inherit: "default" 0.0; \
10004 program { name: "button_click"; \
10005 signal: "mouse,down,1"; \
10007 action: SIGNAL_EMIT "elm,action,press" ""; \
10008 after: "button_click_anim"; \
10010 program { name: "button_click_anim"; \
10011 action: STATE_SET "clicked" 0.0; \
10012 target: "button_image"; \
10013 target: "icon_part"; \
10015 program { name: "button_unclick"; \
10016 signal: "mouse,up,1"; \
10018 action: SIGNAL_EMIT "elm,action,unpress" ""; \
10019 after: "button_unclick_anim"; \
10021 program { name: "button_unclick_anim"; \
10022 action: STATE_SET "default" 0.0; \
10023 target: "button_image"; \
10024 target: "icon_part"; \
10026 program { name: "touch_snd"; \
10027 signal: "mouse,clicked,1"; \
10029 action: PLAY_SAMPLE "touch_sound" 1.0; \
10030 after: button_unclick3; \
10032 program { name: "button_unclick3"; \
10033 action: SIGNAL_EMIT "elm,action,click" ""; \
10035 program { name: "disable"; \
10036 signal: "elm,state,disabled"; \
10038 action: STATE_SET "disabled" 0.0; \
10039 target: "disabler"; \
10040 target: "button_image"; \
10041 target: "icon_part"; \
10043 program { name: "enable"; \
10044 signal: "elm,state,enabled"; \
10046 action: STATE_SET "default" 0.0; \
10047 target: "disabler"; \
10048 target: "button_image"; \
10049 target: "icon_part"; \
10053 ///////////////////////////////////////////////////////////////////////////////////////
10054 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_HEIGHT_INC)
10056 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("plus", "00_button_plus.png", "00_button_plus_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_HEIGHT_INC)
10058 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("more", "00_winset_more.png", "00_winset_more_press.png", BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_HEIGHT_INC)
10060 BUTTON_NAVIFRAME_TITLE_ICON_STYLES("search", "00_title_icon_search.png", "00_title_icon_search_press.png", BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_HEIGHT_INC)
10062 /////////////////////////////////////////////////////////////////////////////////////////
10063 group { name: "elm/button/base/naviframe/more/default";
10065 image: "00_winset_more.png" COMP;
10066 image: "00_winset_more_press.png" COMP;
10069 part { name: "button_image";
10072 description { state: "default" 0.0;
10073 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10074 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10077 description { state: "clicked" 0.0;
10078 inherit: "default" 0.0;
10080 description { state: "disabled" 0.0;
10081 inherit: "default" 0.0;
10083 description { state: "focused" 0.0;
10084 inherit: "default" 0.0;
10087 part { name: "more_image";
10090 description { state: "default" 0.0;
10091 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10092 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10093 rel1.to: "button_image";
10094 rel2.to: "button_image";
10095 image.normal: "00_winset_more.png";
10097 description { state: "clicked" 0.0;
10098 inherit: "default" 0.0;
10099 image.normal: "00_winset_more_press.png";
10101 description { state: "disabled" 0.0;
10102 inherit: "default" 0.0;
10103 color: 255 255 255 127;
10106 part { name: "over2";
10109 ignore_flags: ON_HOLD;
10110 description { state: "default" 0.0;
10114 part { name: "over3";
10117 description { state: "default" 0.0;
10121 part { name: "disabler";
10123 description { state: "default" 0.0;
10127 description { state: "disabled" 0.0;
10128 inherit: "default" 0.0;
10134 program { name: "button_click";
10135 signal: "mouse,down,1";
10137 action: SIGNAL_EMIT "elm,action,press" "";
10138 after: "button_click_anim";
10140 program { name: "button_click_anim";
10141 action: STATE_SET "clicked" 0.0;
10142 target: "button_image";
10143 target: "more_image";
10145 program { name: "button_unclick";
10146 signal: "mouse,up,1";
10148 action: SIGNAL_EMIT "elm,action,unpress" "";
10149 after: "button_unclick_anim";
10151 program { name: "button_unclick_anim";
10152 action: STATE_SET "default" 0.0;
10153 target: "button_image";
10154 target: "more_image";
10156 program { name: "touch_snd";
10157 signal: "mouse,clicked,1";
10159 action: PLAY_SAMPLE "touch_sound" 1.0;
10160 after: button_unclick3;
10162 program { name: "button_unclick3";
10163 action: SIGNAL_EMIT "elm,action,click" "";
10165 program { name: "disable";
10166 signal: "elm,state,disabled";
10168 action: STATE_SET "disabled" 0.0;
10169 target: "disabler";
10170 target: "button_image";
10171 target: "more_image";
10173 program { name: "enable";
10174 signal: "elm,state,enabled";
10176 action: STATE_SET "default" 0.0;
10177 target: "disabler";
10178 target: "button_image";
10179 target: "more_image";
10184 ///////////////////////////////////////////////////////////////////////////////////////
10185 group { name: "elm/button/base/tickernoti";
10187 image: "00_button_06_normal.png" COMP;
10188 image: "00_button_06_press.png" COMP;
10189 image: "00_button_06_dim.png" COMP;
10192 public button_state = BUTTON_STATE_ENABLED;
10195 part { name: "button_image";
10197 description { state: "default" 0.0;
10199 normal: "00_button_06_normal.png";
10200 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10204 description { state: "clicked" 0.0;
10205 inherit: "default" 0.0;
10206 image.normal: "00_button_06_press.png";
10208 description { state: "disabled" 0.0;
10209 inherit: "default" 0.0;
10210 image.normal: "00_button_06_dim.png";
10212 description { state: "focused" 0.0;
10213 inherit: "default" 0.0;
10214 image.normal: "00_button_06_press.png";
10217 part { name: "padding_left_top";
10221 description { state: "default" 0.0;
10223 rel2.relative: 0.0 0.0;
10224 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10233 description { state: "default" 0.0;
10234 min: BUTTON_TICKERNOTI_BG_MIN_INC;
10237 description { state: "visible" 0.0;
10238 inherit: "default" 0.0;
10239 min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10241 description { state: "icononly" 0.0;
10242 inherit: "default" 0.0;
10243 min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10246 part { name: "padding_right_bottom";
10250 description { state: "default" 0.0;
10252 rel1.relative: 1.0 1.0;
10253 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10258 part { name: "icon_rect";
10262 description { state: "default" 0.0;
10268 to: "padding_left_top";
10272 to_x: "padding_left_top";
10273 to_y: "padding_right_bottom";
10277 description { state: "visible" 0.0;
10279 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10280 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10284 to: "padding_left_top";
10288 to_x: "padding_left_top";
10289 to_y: "padding_right_bottom";
10293 description { state: "icononly" 0.0;
10294 inherit: "default" 0.0;
10297 part { name: "padding_after_icon";
10301 description { state: "default" 0.0; //when only icon or no icon is there
10307 rel2.to: "icon_rect";
10312 description { state: "visible" 0.0;
10319 rel2.to: "icon_rect";
10321 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10323 description { state: "icononly" 0.0;
10324 inherit: "default" 0.0;
10327 part { name: "padding_before_text";
10331 description { state: "default" 0.0; //when only icon or no icon is there
10336 to_y: "padding_left_top";
10341 to_y: "padding_right_bottom";
10344 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10348 part { name: "elm.swallow.content";
10351 clip_to: "clipper";
10352 description { state: "default" 0.0;
10357 to: "padding_left_top";
10361 to_x: "padding_left_top";
10362 to_y: "padding_right_bottom";
10366 description { state: "visible" 0.0;
10368 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10369 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10373 to_x: "padding_before_text";
10374 to_y: "padding_left_top";
10378 to_x: "padding_before_text";
10379 to_y: "padding_right_bottom";
10382 description { state: "icononly" 0.0;
10383 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10384 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10387 part { name: "elm.text";
10391 clip_to: "clipper";
10392 description { state: "default" 0.0;
10396 to_x: "padding_after_icon";
10397 to_y: "padding_left_top";
10401 to: "padding_right_bottom";
10403 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
10405 font: "SLP:style=Medium";
10406 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
10409 text_class: "slp_medium";
10412 description { state: "visible" 0.0;
10413 inherit: "default" 0.0;
10416 description { state: "clicked" 0.0;
10417 inherit: "default" 0.0;
10419 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10421 description { state: "disabled" 0.0;
10422 inherit: "default" 0.0;
10425 description { state: "disabled_visible" 0.0;
10426 inherit: "default" 0.0;
10427 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
10430 description { state: "focused" 0.0;
10431 inherit: "default" 0.0;
10433 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
10436 part { name: "over2";
10439 ignore_flags: ON_HOLD;
10440 description { state: "default" 0.0;
10444 part { name: "over3";
10447 description { state: "default" 0.0;
10451 part { name: "clipper";
10453 description { state: "default" 0.0;
10454 color: 255 255 255 255;
10457 part { name: "disabler";
10459 description { state: "default" 0.0;
10463 description { state: "disabled" 0.0;
10464 inherit: "default" 0.0;
10470 program { name: "button_click";
10471 signal: "mouse,down,1";
10473 action: SIGNAL_EMIT "elm,action,press" "";
10474 after: "button_click_anim";
10476 program { name: "button_click_anim";
10477 action: STATE_SET "clicked" 0.0;
10478 target: "button_image";
10479 after: "text_clicked";
10481 program { name: "text_clicked";
10485 get_state(PART:"elm.text", st, 30, vl);
10486 if (!strcmp(st, "visible"))
10487 set_state(PART:"elm.text", "clicked", 0.0);
10490 program { name: "button_unpress";
10491 action: SIGNAL_EMIT "elm,action,unpress" "";
10493 program { name: "button_mouseout_clicked";
10494 signal: "mouse,up,1";
10499 get_state(PART:"elm.swallow.content", st, 30, vl);
10500 if (strcmp(st, "icononly"))
10502 emit("elm,action,default,text,set", "");
10503 set_state(PART:"elm.text", "visible", 0.0);
10505 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10506 set_state(PART:"button_image", "default", 0.0);
10508 after: button_unpress;
10510 program { name: "touch_snd";
10511 signal: "mouse,clicked,1";
10513 action: PLAY_SAMPLE "touch_sound" 1.0;
10514 after: button_unclick3;
10516 program { name: "button_unclick3";
10517 action: SIGNAL_EMIT "elm,action,click" "";
10519 program { name: "text_show";
10520 signal: "elm,state,text,visible";
10525 get_state(PART:"elm.swallow.content", st, 30, vl);
10526 if (!strcmp(st, "icononly"))
10528 set_state(PART:"elm.swallow.content", "visible", 0.0);
10529 set_state(PART:"icon_rect", "visible", 0.0);
10530 set_state(PART:"padding_after_icon", "visible", 0.0);
10531 set_state(PART:"bg", "visible", 0.0);
10533 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10534 set_state(PART:"elm.text", "visible", 0.0);
10536 set_state(PART:"elm.text", "disabled_visible", 0.0);
10539 program { name: "text_hide";
10540 signal: "elm,state,text,hidden";
10545 get_state(PART:"elm.swallow.content", st, 30, vl);
10546 if (!strcmp(st, "visible"))
10548 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10549 set_state(PART:"icon_rect", "icononly", 0.0);
10550 set_state(PART:"padding_after_icon", "icononly", 0.0);
10551 set_state(PART:"bg", "icononly", 0.0);
10553 set_state(PART:"elm.text", "default", 0.0);
10556 program { name: "icon_show";
10557 signal: "elm,state,icon,visible";
10562 get_state(PART:"elm.text", st, 30, vl);
10563 if (!strcmp(st, "visible"))
10565 set_state(PART:"elm.swallow.content", "visible", 0.0);
10566 set_state(PART:"icon_rect", "visible", 0.0);
10567 set_state(PART:"padding_after_icon", "visible", 0.0);
10568 set_state(PART:"bg", "visible", 0.0);
10572 set_state(PART:"elm.swallow.content", "icononly", 0.0);
10573 set_state(PART:"icon_rect", "icononly", 0.0);
10574 set_state(PART:"padding_after_icon", "icononly", 0.0);
10575 set_state(PART:"bg", "icononly", 0.0);
10579 program { name: "icon_hide";
10580 signal: "elm,state,icon,hidden";
10582 action: STATE_SET "default" 0.0;
10583 target: "elm.swallow.content";
10584 target: "padding_after_icon";
10585 target: "icon_rect";
10588 program { name: "disable";
10589 signal: "elm,state,disabled";
10591 action: STATE_SET "disabled" 0.0;
10592 target: "button_image";
10593 target: "disabler";
10594 after: "disable_text";
10596 program { name: "disable_text";
10600 get_state(PART:"elm.text", st, 30, vl);
10601 if (!strcmp(st, "visible"))
10602 set_state(PART:"elm.text", "disabled_visible", 0.0);
10604 set_state(PART:"elm.text", "disabled", 0.0);
10605 set_int(button_state, BUTTON_STATE_DISABLED);
10608 program { name: "enable";
10609 signal: "elm,state,enabled";
10611 action: STATE_SET "default" 0.0;
10612 target: "button_image";
10613 target: "disabler";
10614 after: "enable_text";
10616 program { name: "enable_text";
10620 get_state(PART:"elm.text", st, 30, vl);
10621 if (!strcmp(st, "disabled_visible"))
10622 set_state(PART:"elm.text", "visible", 0.0);
10624 set_state(PART:"elm.text", "default", 0.0);
10625 set_int(button_state, BUTTON_STATE_ENABLED);
10628 program { name: "focused";
10629 //signal: "elm,action,focus";
10631 action: STATE_SET "focused" 0.0;
10632 target: "button_image";
10633 target: "elm.text";
10635 program { name: "unfocused";
10636 //signal: "elm,action,unfocus";
10638 action: STATE_SET "default" 0.0;
10639 target: "button_image";
10640 after: "unfocus_text";
10642 program { name: "unfocus_text";
10643 action: STATE_SET "visible" 0.0;
10644 target: "elm.text";
10649 ///////////////////////////////////////////////////////////////////////////////////////
10650 group { name: "elm/button/base/expandable_number";
10651 alias: "elm/button/base/text_only/expandable_number";
10653 image: "00_button_05_normal.png" COMP;
10654 image: "00_button_05_press.png" COMP;
10655 image: "00_button_05_dim.png" COMP;
10656 image: "00_arrow_expand.png" COMP;
10657 image: "00_arrow_expand_press.png" COMP;
10658 image: "00_arrow_expand_dim.png" COMP;
10661 public button_state = BUTTON_STATE_ENABLED;
10664 part { name: "button_image";
10666 description { state: "default" 0.0;
10667 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10668 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
10670 normal: "00_button_05_normal.png";
10671 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
10675 description { state: "clicked" 0.0;
10676 inherit: "default" 0.0;
10677 image.normal: "00_button_05_press.png";
10679 description { state: "disabled" 0.0;
10680 inherit: "default" 0.0;
10681 image.normal: "00_button_05_dim.png";
10683 description { state: "focused" 0.0;
10684 inherit: "default" 0.0;
10685 image.normal: "00_button_05_press.png";
10688 part { name: "padding_left_top";
10692 description { state: "default" 0.0;
10694 rel2.relative: 0.0 0.0;
10695 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10700 part { name: "padding_right_bottom";
10704 description { state: "default" 0.0;
10706 rel1.relative: 1.0 1.0;
10707 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
10712 part { name: "icon_rect";
10716 description { state: "default" 0.0;
10718 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10719 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10723 to_x: "padding_right_bottom";
10724 to_y: "padding_left_top";
10728 to: "padding_right_bottom";
10734 part { name: "arrow_expand";
10737 description { state: "default" 0.0;
10739 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10740 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
10742 rel1.to: "icon_rect";
10743 rel2.to: "icon_rect";
10744 image.normal:"00_arrow_expand.png";
10746 description { state: "clicked" 0.0;
10747 inherit: "default" 0.0;
10748 image.normal:"00_arrow_expand_press.png";
10750 description { state: "disabled" 0.0;
10751 inherit: "default" 0.0;
10752 image.normal:"00_arrow_expand_dim.png";
10755 part { name: "elm.text";
10759 description { state: "default" 0.0;
10760 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10761 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
10765 to: "padding_left_top";
10769 to_x:"padding_left_top";
10770 to_y:"padding_right_bottom";
10773 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
10775 font: "SLP:style=Medium";
10776 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
10780 text_class: "slp_medium";
10783 description { state: "visible" 0.0;
10784 inherit: "default" 0.0;
10786 description { state: "clicked" 0.0;
10787 inherit: "default" 0.0;
10788 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
10790 description { state: "disabled" 0.0;
10791 inherit: "default" 0.0;
10794 description { state: "disabled_visible" 0.0;
10795 inherit: "default" 0.0;
10796 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
10798 description { state: "focused" 0.0;
10799 inherit: "default" 0.0;
10800 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
10803 part { name: "over2";
10806 ignore_flags: ON_HOLD;
10807 description { state: "default" 0.0;
10811 part { name: "over3";
10814 description { state: "default" 0.0;
10818 part { name: "disabler";
10820 description { state: "default" 0.0;
10824 description { state: "disabled" 0.0;
10825 inherit: "default" 0.0;
10831 program { name: "button_click";
10832 signal: "mouse,down,1";
10834 action: SIGNAL_EMIT "elm,action,press" "";
10835 after: "button_click_anim";
10837 program { name: "button_click_anim";
10838 action: STATE_SET "clicked" 0.0;
10839 target: "button_image";
10840 target: "arrow_expand";
10841 after: "text_clicked";
10843 program { name: "text_clicked";
10847 get_state(PART:"elm.text", st, 30, vl);
10848 if (!strcmp(st, "visible"))
10849 set_state(PART:"elm.text", "clicked", 0.0);
10852 program { name: "button_unpress";
10853 action: SIGNAL_EMIT "elm,action,unpress" "";
10855 program { name: "button_mouseout_clicked";
10856 signal: "mouse,up,1";
10859 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10861 set_state(PART:"button_image", "default", 0.0);
10862 set_state(PART:"elm.text", "visible", 0.0);
10863 set_state(PART:"arrow_expand", "default", 0.0);
10866 after: button_unpress;
10868 program { name: "touch_snd";
10869 signal: "mouse,clicked,1";
10871 action: PLAY_SAMPLE "touch_sound" 1.0;
10872 after: button_unclick3;
10874 program { name: "button_unclick3";
10875 action: SIGNAL_EMIT "elm,action,click" "";
10877 program { name: "text_show";
10878 signal: "elm,state,text,visible";
10881 if (get_int(button_state) != BUTTON_STATE_DISABLED)
10882 set_state(PART:"elm.text", "visible", 0.0);
10884 set_state(PART:"elm.text", "disabled_visible", 0.0);
10887 program { name: "text_hide";
10888 signal: "elm,state,text,hidden";
10891 set_state(PART:"elm.text", "default", 0.0);
10894 program { name: "disable";
10895 signal: "elm,state,disabled";
10897 action: STATE_SET "disabled" 0.0;
10898 target: "button_image";
10899 target: "disabler";
10900 after: "disable_text";
10902 program { name: "disable_text";
10906 get_state(PART:"elm.text", st, 30, vl);
10907 if (!strcmp(st, "visible"))
10908 set_state(PART:"elm.text", "disabled_visible", 0.0);
10910 set_state(PART:"elm.text", "disabled", 0.0);
10911 set_int(button_state, BUTTON_STATE_DISABLED);
10914 program { name: "enable";
10915 signal: "elm,state,enabled";
10917 action: STATE_SET "default" 0.0;
10918 target: "button_image";
10919 target: "disabler";
10920 after: "enable_text";
10922 program { name: "enable_text";
10926 get_state(PART:"elm.text", st, 30, vl);
10927 if (!strcmp(st, "disabled_visible"))
10928 set_state(PART:"elm.text", "visible", 0.0);
10930 set_state(PART:"elm.text", "default", 0.0);
10931 set_int(button_state, BUTTON_STATE_ENABLED);
10934 program { name: "focused";
10935 //signal: "elm,action,focus";
10937 action: STATE_SET "focused" 0.0;
10938 target: "button_image";
10939 target: "elm.text";
10941 program { name: "unfocused";
10942 //signal: "elm,action,unfocus";
10944 action: STATE_SET "default" 0.0;
10945 target: "button_image";
10946 after: "unfocus_text";
10948 program { name: "unfocus_text";
10949 action: STATE_SET "visible" 0.0;
10950 target: "elm.text";
10955 #undef BUTTON_STATE_ENABLED
10956 #undef BUTTON_STATE_DISABLED