3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
25 ///////////////////////////////////////////////////////////////////////////////////////
26 group { name: "elm/button/base/style1";
27 alias: "elm/button/base/text_only/style1";
28 alias: "elm/button/base/center";
29 alias: "elm/button/base/icon_and_text/center";
30 alias: "elm/button/base/nocontents/search_button";
31 alias: "elm/button/base/style1/multiline";
32 alias: "elm/button/base/style2";
33 alias: "elm/button/base/text_only/style2";
34 alias: "elm/button/base/style2/multiline";
36 item: "focus_highlight" "on";
39 image: "00_button_01.png" COMP;
40 image: "00_button_01_press.png" COMP;
41 image: "00_button_01_dim.png" COMP;
42 image: "00_button_01_focus.png" COMP;
45 style { name: "btn_base_style1";
46 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
51 style { name: "btn_base_style1_pressed";
52 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
57 style { name: "btn_base_style1_dim";
58 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
63 style { name: "btn_base_style1_focus";
64 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
71 public button_state = BUTTON_STATE_ENABLED;
74 part { name: "button_image";
76 description { state: "default" 0.0;
78 normal: "00_button_01.png";
79 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
83 description { state: "clicked" 0.0;
84 inherit: "default" 0.0;
85 image.normal: "00_button_01_press.png";
87 description { state: "disabled" 0.0;
88 inherit: "default" 0.0;
89 image.normal: "00_button_01_dim.png";
91 description { state: "focused" 0.0;
92 inherit: "default" 0.0;
93 image.normal: "00_button_01_press.png";
96 part { name: "focus_image";
100 description { state: "default" 0.0;
102 rel1.to : "button_image";
103 rel2.to : "button_image";
105 normal: "00_button_01_focus.png";
106 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
110 description { state: "focused" 0.0;
111 inherit: "default" 0.0;
115 part { name: "padding_left_top";
119 description { state: "default" 0.0;
121 rel2.relative: 0.0 0.0;
122 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
131 description { state: "default" 0.0;
132 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
135 description { state: "visible" 0.0;
136 inherit: "default" 0.0;
137 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
139 description { state: "icononly" 0.0;
140 inherit: "default" 0.0;
141 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
144 part { name: "padding_right_bottom";
148 description { state: "default" 0.0;
150 rel1.relative: 1.0 1.0;
151 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
156 part { name: "icon_rect";
160 description { state: "default" 0.0;
166 to: "padding_left_top";
170 to_x: "padding_left_top";
171 to_y: "padding_right_bottom";
175 description { state: "visible" 0.0;
176 inherit: "default" 0.0;
177 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
178 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
180 description { state: "icononly" 0.0;
181 inherit: "default" 0.0;
184 part { name: "padding_after_icon";
188 description { state: "default" 0.0; //when only icon or no icon is there
194 rel2.to: "icon_rect";
199 description { state: "visible" 0.0;
200 inherit: "default" 0.0;
201 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
203 description { state: "icononly" 0.0;
204 inherit: "default" 0.0;
207 part { name: "padding_before_text";
211 description { state: "default" 0.0; //when only icon or no icon is there
216 to_y: "padding_left_top";
221 to_y: "padding_right_bottom";
224 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
228 part { name: "elm.swallow.content";
231 description { state: "default" 0.0;
236 to: "padding_left_top";
240 to_x: "padding_left_top";
241 to_y: "padding_right_bottom";
245 description { state: "visible" 0.0;
247 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
248 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
252 to_x: "padding_before_text";
253 to_y: "padding_left_top";
257 to_x: "padding_before_text";
258 to_y: "padding_right_bottom";
261 description { state: "icononly" 0.0;
262 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
263 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
266 part { name: "elm.swallow.content.shadow.proxy";
269 clip_to: "elm.swallow.content.shadow.clipper";
270 description { state: "default" 0.0;
271 source: "elm.swallow.content";
272 proxy.source_clip: 0;
274 to: "elm.swallow.content";
275 offset: BUTTON_STYLE1_NORMAL_TOP_OFFSET_INC;
278 to: "elm.swallow.content";
279 offset: BUTTON_STYLE1_NORMAL_BOTTOM_OFFSET_INC;
282 description { state: "clicked" 0.0;
283 inherit: "default" 0.0;
285 to: "elm.swallow.content";
286 offset: BUTTON_STYLE1_PRESSED_TOP_OFFSET_INC;
289 to: "elm.swallow.content";
290 offset: BUTTON_STYLE1_PRESSED_BOTTOM_OFFSET_INC;
293 description { state: "disabled" 0.0;
294 inherit: "default" 0.0;
297 part { name: "elm.swallow.content.proxy";
300 clip_to: "icon_clipper";
301 description { state: "default" 0.0;
302 source: "elm.swallow.content";
303 proxy.source_clip: 0;
304 rel1.to: "elm.swallow.content";
305 rel2.to: "elm.swallow.content";
308 part { name: "elm.swallow.content.shadow.clipper";
311 description { state: "default" 0.0;
312 color: BUTTON_STYLE1_SHADOW_NORMAL_COLOR_INC;
314 description { state: "clicked" 0.0;
315 color: BUTTON_STYLE1_SHADOW_PRESSED_COLOR_INC;
317 description { state: "disabled" 0.0;
318 color: BUTTON_STYLE1_SHADOW_DISABLED_COLOR_INC;
321 part { name: "icon_clipper";
324 description { state: "default" 0.0;
325 color: BUTTON_STYLE1_ICON_NORMAL_COLOR_INC;
327 description { state: "clicked" 0.0;
328 color: BUTTON_STYLE1_ICON_PRESSED_COLOR_INC;
330 description { state: "disabled" 0.0;
331 color: BUTTON_STYLE1_ICON_DISABLED_COLOR_INC;
334 part { name: "elm.text";
338 description { state: "default" 0.0;
342 to_x: "padding_after_icon";
343 to_y: "padding_left_top";
347 to: "padding_right_bottom";
350 style: "btn_base_style1";
353 description { state: "visible" 0.0;
354 inherit: "default" 0.0;
357 description { state: "clicked" 0.0;
358 inherit: "default" 0.0;
361 style: "btn_base_style1_pressed";
364 description { state: "disabled" 0.0;
365 inherit: "default" 0.0;
367 description { state: "disabled_visible" 0.0;
368 inherit: "default" 0.0;
371 style: "btn_base_style1_dim";
374 description { state: "focused" 0.0;
375 inherit: "default" 0.0;
378 style: "btn_base_style1_focus";
382 part { name: "over2";
385 ignore_flags: ON_HOLD;
386 description { state: "default" 0.0;
390 part { name: "over3";
393 description { state: "default" 0.0;
397 part { name: "disabler";
399 description { state: "default" 0.0;
403 description { state: "disabled" 0.0;
404 inherit: "default" 0.0;
410 program { name: "button_click";
411 signal: "mouse,down,1";
413 action: SIGNAL_EMIT "elm,action,press" "";
414 after: "button_click_anim";
416 program { name: "button_click_anim";
417 action: STATE_SET "clicked" 0.0;
418 target: "button_image";
419 target: "elm.swallow.content.shadow.proxy";
420 target: "elm.swallow.content.shadow.clipper";
421 target: "icon_clipper";
422 after: "text_clicked";
424 program { name: "text_clicked";
428 get_state(PART:"elm.text", st, 30, vl);
429 if (!strcmp(st, "visible"))
430 set_state(PART:"elm.text", "clicked", 0.0);
433 program { name: "button_double_click";
434 signal: "mouse,down,1,double";
436 after: "button_click_anim";
438 program { name: "button_unpress";
439 action: SIGNAL_EMIT "elm,action,unpress" "";
441 program { name: "button_mouseout_clicked";
442 signal: "mouse,up,1";
447 get_state(PART:"elm.swallow.content", st, 30, vl);
448 if (strcmp(st, "icononly"))
450 emit("elm,action,default,text,set", "");
451 set_state(PART:"elm.text", "visible", 0.0);
453 if (get_int(button_state) != BUTTON_STATE_DISABLED)
454 set_state(PART:"button_image", "default", 0.0);
455 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
456 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
457 set_state(PART:"icon_clipper", "default", 0.0);
459 after: button_unpress;
461 program { name: "touch_snd";
462 signal: "mouse,clicked,1";
464 action: PLAY_SAMPLE "touch_sound" 1.0;
465 after: button_unclick3;
467 program { name: "button_unclick3";
468 action: SIGNAL_EMIT "elm,action,click" "";
470 program { name: "text_show";
471 signal: "elm,state,text,visible";
476 get_state(PART:"elm.swallow.content", st, 30, vl);
477 if (!strcmp(st, "icononly"))
479 set_state(PART:"elm.swallow.content", "visible", 0.0);
480 set_state(PART:"icon_rect", "visible", 0.0);
481 set_state(PART:"padding_after_icon", "visible", 0.0);
482 set_state(PART:"bg", "visible", 0.0);
484 if (get_int(button_state) != BUTTON_STATE_DISABLED)
485 set_state(PART:"elm.text", "visible", 0.0);
487 set_state(PART:"elm.text", "disabled_visible", 0.0);
490 program { name: "text_hide";
491 signal: "elm,state,text,hidden";
496 get_state(PART:"elm.swallow.content", st, 30, vl);
497 if (!strcmp(st, "visible"))
499 set_state(PART:"elm.swallow.content", "icononly", 0.0);
500 set_state(PART:"icon_rect", "icononly", 0.0);
501 set_state(PART:"padding_after_icon", "icononly", 0.0);
502 set_state(PART:"bg", "icononly", 0.0);
504 set_state(PART:"elm.text", "default", 0.0);
507 program { name: "icon_show";
508 signal: "elm,state,icon,visible";
513 get_state(PART:"elm.text", st, 30, vl);
514 if (!strcmp(st, "visible"))
516 set_state(PART:"elm.swallow.content", "visible", 0.0);
517 set_state(PART:"icon_rect", "visible", 0.0);
518 set_state(PART:"padding_after_icon", "visible", 0.0);
519 set_state(PART:"bg", "visible", 0.0);
523 set_state(PART:"elm.swallow.content", "icononly", 0.0);
524 set_state(PART:"icon_rect", "icononly", 0.0);
525 set_state(PART:"padding_after_icon", "icononly", 0.0);
526 set_state(PART:"bg", "icononly", 0.0);
530 program { name: "icon_hide";
531 signal: "elm,state,icon,hidden";
533 action: STATE_SET "default" 0.0;
534 target: "elm.swallow.content";
535 target: "padding_after_icon";
539 program { name: "disable";
540 signal: "elm,state,disabled";
542 action: STATE_SET "disabled" 0.0;
543 target: "button_image";
545 target: "elm.swallow.content.shadow.proxy";
546 target: "elm.swallow.content.shadow.clipper";
547 target: "icon_clipper";
548 after: "disable_text";
550 program { name: "disable_text";
554 get_state(PART:"elm.text", st, 30, vl);
555 if (!strcmp(st, "visible"))
556 set_state(PART:"elm.text", "disabled_visible", 0.0);
558 set_state(PART:"elm.text", "disabled", 0.0);
559 set_int(button_state, BUTTON_STATE_DISABLED);
562 program { name: "enable";
563 signal: "elm,state,enabled";
565 action: STATE_SET "default" 0.0;
566 target: "button_image";
567 target: "elm.swallow.content.shadow.proxy";
568 target: "elm.swallow.content.shadow.clipper";
569 target: "icon_clipper";
571 after: "enable_text";
573 program { name: "enable_text";
577 get_state(PART:"elm.text", st, 30, vl);
578 if (!strcmp(st, "disabled_visible"))
579 set_state(PART:"elm.text", "visible", 0.0);
581 set_state(PART:"elm.text", "default", 0.0);
582 set_int(button_state, BUTTON_STATE_ENABLED);
585 program { name: "action_focus";
586 signal: "elm,action,focus_highlight,show";
588 action: STATE_SET "focused" 0.0;
589 target: "focus_image";
591 program { name: "action_unfocus";
592 signal: "elm,action,focus_highlight,hide";
594 action: STATE_SET "default" 0.0;
595 target: "focus_image";
600 //////////////////////////////////////////////////////////////
601 group { name: "elm/button/base/style1/auto_expand";
602 inherit: "elm/button/base/style1";
604 part { name: "elm.text";
608 description { state: "default" 0.0;
612 to_x: "padding_after_icon";
613 to_y: "padding_left_top";
617 to: "padding_right_bottom";
620 style: "btn_base_style1";
625 description { state: "visible" 0.0;
626 inherit: "default" 0.0;
629 description { state: "clicked" 0.0;
630 inherit: "default" 0.0;
633 style: "btn_base_style1_pressed";
636 description { state: "disabled" 0.0;
637 inherit: "default" 0.0;
639 description { state: "disabled_visible" 0.0;
640 inherit: "default" 0.0;
643 style: "btn_base_style1_dim";
646 description { state: "focused" 0.0;
647 inherit: "default" 0.0;
650 style: "btn_base_style1_focus";
657 //////////////////////////////////////////////////////////////////////////////////////
658 group { name: "elm/button/base/datetime/ampm/default";
659 alias: "elm/button/base/datetime_ampm/default";
660 inherit: "elm/button/base/style1/auto_expand";
662 part { name: "button_image";
664 description { state: "default" 0.0;
666 normal: "00_button_01.png";
667 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
670 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
671 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
673 description { state: "clicked" 0.0;
674 inherit: "default" 0.0;
675 image.normal: "00_button_01_press.png";
677 description { state: "disabled" 0.0;
678 inherit: "default" 0.0;
679 image.normal: "00_button_01_dim.png";
681 description { state: "focused" 0.0;
682 inherit: "default" 0.0;
683 image.normal: "00_button_01_press.png";
690 description { state: "default" 0.0;
694 description { state: "visible" 0.0;
695 inherit: "default" 0.0;
696 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
698 description { state: "icononly" 0.0;
699 inherit: "default" 0.0;
702 part { name: "elm.text";
706 description { state: "default" 0.0;
710 style: "btn_base_style1";
711 size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
715 description { state: "visible" 0.0;
716 inherit: "default" 0.0;
719 description { state: "clicked" 0.0;
720 inherit: "default" 0.0;
723 style: "btn_base_style1_pressed";
726 description { state: "disabled" 0.0;
727 inherit: "default" 0.0;
729 description { state: "disabled_visible" 0.0;
730 inherit: "default" 0.0;
733 style: "btn_base_style1_dim";
736 description { state: "focused" 0.0;
737 inherit: "default" 0.0;
740 style: "btn_base_style1_focus";
747 //////////////////////////////////////////////////////////////////////////////////////
748 group { name: "elm/button/base/sweep";
749 alias: "elm/button/base/text_only/sweep";
750 alias: "elm/button/base/hidden";
751 alias: "elm/button/base/sweep/multiline";
752 inherit: "elm/button/base/style1";
754 style { name: "btn_base_sweep";
755 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
760 style { name: "btn_base_sweep_pressed";
761 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
766 style { name: "btn_base_sweep_dim";
767 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
772 style { name: "btn_base_sweep_focus";
773 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
780 part { name: "elm.text";
784 description { state: "default" 0.0;
788 to_x: "padding_after_icon";
789 to_y: "padding_left_top";
793 to: "padding_right_bottom";
796 style: "btn_base_sweep";
799 description { state: "visible" 0.0;
800 inherit: "default" 0.0;
803 description { state: "clicked" 0.0;
804 inherit: "default" 0.0;
807 style: "btn_base_sweep_pressed";
810 description { state: "disabled" 0.0;
811 inherit: "default" 0.0;
813 description { state: "disabled_visible" 0.0;
814 inherit: "default" 0.0;
817 style: "btn_base_sweep_dim";
820 description { state: "focused" 0.0;
821 inherit: "default" 0.0;
824 style: "btn_base_sweep_focus";
831 ///////////////////////////////////////////////////////////////////////////////////////
832 group { name: "elm/button/base/style1/delete";
833 alias: "elm/button/base/sweep/delete";
834 alias: "elm/button/base/sweep/delete/multiline";
835 inherit: "elm/button/base/style1";
837 image: "00_button_01_delete.png" COMP;
838 image: "00_button_01_delete_dim.png" COMP;
839 image: "00_button_01_delete_press.png" COMP;
842 style { name: "btn_base_style1_delete";
843 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
848 style { name: "btn_base_style1_delete_pressed";
849 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
854 style { name: "btn_base_style1_delete_dim";
855 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DELETE_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
860 style { name: "btn_base_style1_delete_focus";
861 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
868 part { name: "button_image";
870 description { state: "default" 0.0;
872 normal: "00_button_01_delete.png";
873 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
877 description { state: "clicked" 0.0;
878 inherit: "default" 0.0;
879 image.normal: "00_button_01_delete_press.png";
881 description { state: "disabled" 0.0;
882 inherit: "default" 0.0;
883 image.normal: "00_button_01_delete_dim.png";
885 description { state: "focused" 0.0;
886 inherit: "default" 0.0;
887 image.normal: "00_button_01_delete_press.png";
890 part { name: "elm.text";
894 description { state: "default" 0.0;
898 to_x: "padding_after_icon";
899 to_y: "padding_left_top";
903 to: "padding_right_bottom";
906 style: "btn_base_style1_delete";
909 description { state: "visible" 0.0;
910 inherit: "default" 0.0;
913 description { state: "clicked" 0.0;
914 inherit: "default" 0.0;
917 style: "btn_base_style1_delete_pressed";
920 description { state: "disabled" 0.0;
921 inherit: "default" 0.0;
923 description { state: "disabled_visible" 0.0;
924 inherit: "default" 0.0;
927 style: "btn_base_style1_delete_dim";
930 description { state: "focused" 0.0;
931 inherit: "default" 0.0;
934 style: "btn_base_style1_delete_focus";
941 //////////////////////////////////////////////////////////////////////////////////////
942 group { name: "elm/button/base/sweep/delete";
943 alias: "elm/button/base/sweep/delete/multiline";
944 inherit: "elm/button/base/style1/delete";
946 style { name: "btn_base_sweep_delete";
947 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
952 style { name: "btn_base_sweep_delete_pressed";
953 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
958 style { name: "btn_base_sweep_delete_dim";
959 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SWEEP_BUTTON_SHADOW_TEXTBLOCK_DELETE_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
964 style { name: "btn_base_sweep_delete_focus";
965 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
972 part { name: "elm.text";
976 description { state: "default" 0.0;
980 to_x: "padding_after_icon";
981 to_y: "padding_left_top";
985 to: "padding_right_bottom";
988 style: "btn_base_sweep_delete";
991 description { state: "visible" 0.0;
992 inherit: "default" 0.0;
995 description { state: "clicked" 0.0;
996 inherit: "default" 0.0;
999 style: "btn_base_sweep_delete_pressed";
1002 description { state: "disabled" 0.0;
1003 inherit: "default" 0.0;
1005 description { state: "disabled_visible" 0.0;
1006 inherit: "default" 0.0;
1009 style: "btn_base_sweep_delete_dim";
1012 description { state: "focused" 0.0;
1013 inherit: "default" 0.0;
1016 style: "btn_base_sweep_delete_focus";
1023 ///////////////////////////////////////////////////////////////////////////////////////
1024 group { name: "elm/button/base/search_button/text";
1025 alias: "elm/button/base/searchbar/default";
1026 inherit: "elm/button/base/style1";
1028 style { name: "btn_base_search";
1029 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1034 style { name: "btn_base_search_pressed";
1035 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1040 style { name: "btn_base_search_dim";
1041 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1046 style { name: "btn_base_search_focus";
1047 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1058 description { state: "default" 0.0;
1059 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1062 description { state: "visible" 0.0;
1063 inherit: "default" 0.0;
1064 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1066 description { state: "icononly" 0.0;
1067 inherit: "default" 0.0;
1068 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1071 part { name: "elm.text";
1075 description { state: "default" 0.0;
1079 to_x: "padding_after_icon";
1080 to_y: "padding_left_top";
1084 to: "padding_right_bottom";
1087 style: "btn_base_search";
1092 description { state: "visible" 0.0;
1093 inherit: "default" 0.0;
1096 description { state: "clicked" 0.0;
1097 inherit: "default" 0.0;
1100 style: "btn_base_search_pressed";
1103 description { state: "disabled" 0.0;
1104 inherit: "default" 0.0;
1106 description { state: "disabled_visible" 0.0;
1107 inherit: "default" 0.0;
1110 style: "btn_base_search_dim";
1113 description { state: "focused" 0.0;
1114 inherit: "default" 0.0;
1117 style: "btn_base_search_focus";
1124 ///////////////////////////////////////////////////////////////////////////////////////
1125 group { name: "elm/button/base/search_button/send";
1126 inherit: "elm/button/base/style1";
1128 image: "00_button_01_send.png" COMP;
1129 image: "00_button_01_send_dim.png" COMP;
1130 image: "00_button_01_send_press.png" COMP;
1133 style { name: "btn_base_search_send";
1134 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1139 style { name: "btn_base_search_send_pressed";
1140 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1145 style { name: "btn_base_search_send_dim";
1146 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1151 style { name: "btn_base_search_send_focus";
1152 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1159 part { name: "button_image";
1161 description { state: "default" 0.0;
1163 normal: "00_button_01_send.png";
1164 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1168 description { state: "clicked" 0.0;
1169 inherit: "default" 0.0;
1170 image.normal: "00_button_01_send_press.png";
1172 description { state: "disabled" 0.0;
1173 inherit: "default" 0.0;
1174 image.normal: "00_button_01_send_dim.png";
1176 description { state: "focused" 0.0;
1177 inherit: "default" 0.0;
1178 image.normal: "00_button_01_send_press.png";
1185 description { state: "default" 0.0;
1186 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1189 description { state: "visible" 0.0;
1190 inherit: "default" 0.0;
1191 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1193 description { state: "icononly" 0.0;
1194 inherit: "default" 0.0;
1195 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1198 part { name: "elm.text";
1202 description { state: "default" 0.0;
1206 to_x: "padding_after_icon";
1207 to_y: "padding_left_top";
1211 to: "padding_right_bottom";
1214 style: "btn_base_search_send";
1219 description { state: "visible" 0.0;
1220 inherit: "default" 0.0;
1223 description { state: "clicked" 0.0;
1224 inherit: "default" 0.0;
1227 style: "btn_base_search_send_pressed";
1230 description { state: "disabled" 0.0;
1231 inherit: "default" 0.0;
1233 description { state: "disabled_visible" 0.0;
1234 inherit: "default" 0.0;
1237 style: "btn_base_search_send_dim";
1240 description { state: "focused" 0.0;
1241 inherit: "default" 0.0;
1244 style: "btn_base_search_send_focus";
1251 ///////////////////////////////////////////////////////////////////////////////////////
1252 group { name: "elm/button/base/search_button/cancel";
1253 inherit: "elm/button/base/style1";
1255 image: "00_button_01_delete.png" COMP;
1256 image: "00_button_01_delete_dim.png" COMP;
1257 image: "00_button_01_delete_press.png" COMP;
1260 style { name: "btn_base_search_cancel";
1261 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1266 style { name: "btn_base_search_cancel_pressed";
1267 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1272 style { name: "btn_base_search_cancel_dim";
1273 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1278 style { name: "btn_base_search_cancel_focus";
1279 base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1286 part { name: "button_image";
1288 description { state: "default" 0.0;
1290 normal: "00_button_01_delete.png";
1291 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1295 description { state: "clicked" 0.0;
1296 inherit: "default" 0.0;
1297 image.normal: "00_button_01_delete_press.png";
1299 description { state: "disabled" 0.0;
1300 inherit: "default" 0.0;
1301 image.normal: "00_button_01_delete_dim.png";
1303 description { state: "focused" 0.0;
1304 inherit: "default" 0.0;
1305 image.normal: "00_button_01_delete_press.png";
1312 description { state: "default" 0.0;
1313 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1316 description { state: "visible" 0.0;
1317 inherit: "default" 0.0;
1318 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1320 description { state: "icononly" 0.0;
1321 inherit: "default" 0.0;
1322 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1325 part { name: "elm.text";
1329 description { state: "default" 0.0;
1333 to_x: "padding_after_icon";
1334 to_y: "padding_left_top";
1338 to: "padding_right_bottom";
1341 style: "btn_base_search_cancel";
1346 description { state: "visible" 0.0;
1347 inherit: "default" 0.0;
1350 description { state: "clicked" 0.0;
1351 inherit: "default" 0.0;
1354 style: "btn_base_search_cancel_pressed";
1357 description { state: "disabled" 0.0;
1358 inherit: "default" 0.0;
1360 description { state: "disabled_visible" 0.0;
1361 inherit: "default" 0.0;
1364 style: "btn_base_search_cancel_dim";
1367 description { state: "focused" 0.0;
1368 inherit: "default" 0.0;
1371 style: "btn_base_search_cancel_focus";
1378 ///////////////////////////////////////////////////////////////////////////////////////
1379 group { name: "elm/button/base/popup_button/default";
1380 alias: "elm/button/base/popup_button/menustyle";
1381 alias: "elm/button/base/popup_button/liststyle";
1382 alias: "elm/button/base/popup_button/volumebarstyle";
1383 alias: "elm/button/base/popup_button/customstyle";
1384 alias: "elm/button/base/popup_button/verticalbuttonstyle";
1385 alias: "elm/button/base/popup_button/default/multiline";
1387 item: "focus_highlight" "on";
1390 image: "00_popup_button.png" COMP;
1391 image: "00_popup_button_dim.png" COMP;
1392 image: "00_popup_button_press.png" COMP;
1393 image: "00_popup_button_focus.png" COMP;
1396 style { name: "btn_base_popup_button";
1397 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1402 style { name: "btn_base_popup_button_pressed";
1403 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1408 style { name: "btn_base_popup_button_dim";
1409 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1414 style { name: "btn_base_popup_button_focus";
1415 base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1422 public button_state = BUTTON_STATE_ENABLED;
1425 part { name: "button_image";
1427 description { state: "default" 0.0;
1428 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1430 normal: "00_popup_button.png";
1431 border: BUTTON_POPUP_BG_BORDER_INC;
1435 description { state: "clicked" 0.0;
1436 inherit: "default" 0.0;
1437 image.normal: "00_popup_button_press.png";
1439 description { state: "disabled" 0.0;
1440 inherit: "default" 0.0;
1441 image.normal: "00_popup_button_dim.png";
1443 description { state: "focused" 0.0;
1444 inherit: "default" 0.0;
1445 image.normal: "00_popup_button_focus.png";
1448 part { name: "focus_image";
1452 description { state: "default" 0.0;
1454 rel1.to : "button_image";
1455 rel2.to : "button_image";
1457 normal: "00_popup_button_focus.png";
1458 border: BUTTON_POPUP_BG_BORDER_INC;
1462 description { state: "focused" 0.0;
1463 inherit: "default" 0.0;
1467 part { name: "padding_left_top";
1471 description { state: "default" 0.0;
1473 rel2.relative: 0.0 0.0;
1474 min: BUTTON_POPUP_PADDING_MIN_INC;
1479 part { name: "padding_right_bottom";
1482 description { state: "default" 0.0;
1484 rel1.relative: 1.0 1.0;
1485 min: BUTTON_POPUP_PADDING_MIN_INC;
1490 part { name: "padding_icon_text";
1493 description { state: "default" 0.0; //when only icon or no icon is there
1497 to: "elm.swallow.content";
1499 rel2.to: "elm.swallow.content";
1504 description { state: "icononly" 0.0;
1505 inherit: "default" 0.0;
1507 description { state: "visible" 0.0; //when icon is visible
1508 inherit: "default" 0.0;
1509 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1512 part { name: "elm.swallow.content";
1515 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;
1530 inherit: "default" 0.0;
1534 aspect_preference: VERTICAL;
1536 description { state: "icononly" 0.0;
1537 inherit: "default" 0.0;
1538 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1543 part { name: "elm.swallow.content.shadow.proxy";
1546 clip_to: "elm.swallow.content.shadow.clipper";
1547 description { state: "default" 0.0;
1548 source: "elm.swallow.content";
1549 proxy.source_clip: 0;
1551 to: "elm.swallow.content";
1552 offset: BUTTON_POPUP_NORMAL_TOP_OFFSET_INC;
1555 to: "elm.swallow.content";
1556 offset: BUTTON_POPUP_NORMAL_BOTTOM_OFFSET_INC;
1559 description { state: "clicked" 0.0;
1560 inherit: "default" 0.0;
1562 to: "elm.swallow.content";
1563 offset: BUTTON_POPUP_PRESSED_TOP_OFFSET_INC;
1566 to: "elm.swallow.content";
1567 offset: BUTTON_POPUP_PRESSED_BOTTOM_OFFSET_INC;
1570 description { state: "disabled" 0.0;
1571 inherit: "default" 0.0;
1574 part { name: "elm.swallow.content.proxy";
1577 clip_to: "icon_clipper";
1578 description { state: "default" 0.0;
1579 source: "elm.swallow.content";
1580 proxy.source_clip: 0;
1581 rel1.to: "elm.swallow.content";
1582 rel2.to: "elm.swallow.content";
1585 part { name: "elm.swallow.content.shadow.clipper";
1588 description { state: "default" 0.0;
1589 color: BUTTON_POPUP_SHADOW_NORMAL_COLOR_INC;
1591 description { state: "clicked" 0.0;
1592 color: BUTTON_POPUP_SHADOW_PRESSED_COLOR_INC;
1594 description { state: "disabled" 0.0;
1595 color: BUTTON_POPUP_SHADOW_DISABLED_COLOR_INC;
1598 part { name: "icon_clipper";
1601 description { state: "default" 0.0;
1602 color: BUTTON_POPUP_ICON_NORMAL_COLOR_INC;
1604 description { state: "clicked" 0.0;
1605 color: BUTTON_POPUP_ICON_PRESSED_COLOR_INC;
1607 description { state: "disabled" 0.0;
1608 color: BUTTON_POPUP_ICON_DISABLED_COLOR_INC;
1611 part { name: "elm.text";
1615 description { state: "default" 0.0;
1619 to_x: "padding_icon_text";
1620 to_y: "padding_left_top";
1624 to: "padding_right_bottom";
1627 style: "btn_base_popup_button";
1631 description { state: "visible" 0.0;
1632 inherit: "default" 0.0;
1634 min: BUTTON_POPUP_TEXT_MIN_INC;
1636 description { state: "clicked" 0.0;
1637 inherit: "default" 0.0;
1640 style: "btn_base_popup_button_pressed";
1644 description { state: "disabled" 0.0;
1645 inherit: "default" 0.0;
1647 description { state: "disabled_visible" 0.0;
1648 inherit: "default" 0.0;
1651 style: "btn_base_popup_button_dim";
1653 min: BUTTON_POPUP_TEXT_MIN_INC;
1655 description { state: "focused" 0.0;
1656 inherit: "default" 0.0;
1659 style: "btn_base_popup_button_dim";
1664 part { name: "over2";
1667 ignore_flags: ON_HOLD;
1668 description { state: "default" 0.0;
1672 part { name: "over3";
1675 description { state: "default" 0.0;
1679 part { name: "disabler";
1681 description { state: "default" 0.0;
1685 description { state: "disabled" 0.0;
1686 inherit: "default" 0.0;
1692 program { name: "button_click";
1693 signal: "mouse,down,1";
1695 action: SIGNAL_EMIT "elm,action,press" "";
1696 after: "button_click_anim";
1698 program { name: "button_click_anim";
1699 action: STATE_SET "clicked" 0.0;
1700 target: "button_image";
1701 target: "elm.swallow.content.shadow.proxy";
1702 target: "elm.swallow.content.shadow.clipper";
1703 target: "icon_clipper";
1704 after: "text_clicked";
1706 program { name: "text_clicked";
1710 get_state(PART:"elm.text", st, 30, vl);
1711 if (!strcmp(st, "visible"))
1712 set_state(PART:"elm.text", "clicked", 0.0);
1715 program { name: "button_double_click";
1716 signal: "mouse,down,1,double";
1718 after: "button_click_anim";
1720 program { name: "button_unpress";
1721 action: SIGNAL_EMIT "elm,action,unpress" "";
1723 program { name: "button_mouseout_clicked";
1724 signal: "mouse,up,1";
1729 get_state(PART:"elm.swallow.content", st, 30, vl);
1730 if (strcmp(st, "icononly"))
1732 emit("elm,action,default,text,set", "");
1733 set_state(PART:"elm.text", "visible", 0.0);
1735 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1736 set_state(PART:"button_image", "default", 0.0);
1737 set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
1738 set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
1739 set_state(PART:"icon_clipper", "default", 0.0);
1741 after: button_unpress;
1743 program { name: "touch_snd";
1744 signal: "mouse,clicked,1";
1746 action: PLAY_SAMPLE "touch_sound" 1.0;
1747 after: button_unclick3;
1749 program { name: "button_unclick3";
1750 action: SIGNAL_EMIT "elm,action,click" "";
1752 program { name: "text_show";
1753 signal: "elm,state,text,visible";
1758 get_state(PART:"elm.swallow.content", st, 30, vl);
1759 if (!strcmp(st, "icononly"))
1761 set_state(PART:"elm.swallow.content", "visible", 0.0);
1762 set_state(PART:"padding_icon_text", "visible", 0.0);
1764 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1765 set_state(PART:"elm.text", "visible", 0.0);
1767 set_state(PART:"elm.text", "disabled_visible", 0.0);
1770 program { name: "text_hide";
1771 signal: "elm,state,text,hidden";
1776 get_state(PART:"elm.swallow.content", st, 30, vl);
1777 if (!strcmp(st, "visible"))
1779 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1780 set_state(PART:"padding_icon_text", "icononly", 0.0);
1782 set_state(PART:"elm.text", "default", 0.0);
1785 program { name: "icon_show";
1786 signal: "elm,state,icon,visible";
1791 get_state(PART:"elm.text", st, 30, vl);
1792 if (!strcmp(st, "visible"))
1794 set_state(PART:"elm.swallow.content", "visible", 0.0);
1795 set_state(PART:"padding_icon_text", "visible", 0.0);
1799 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1800 set_state(PART:"padding_icon_text", "icononly", 0.0);
1804 program { name: "icon_hide";
1805 signal: "elm,state,icon,hidden";
1807 action: STATE_SET "default" 0.0;
1808 target: "elm.swallow.content";
1809 target: "padding_icon_text";
1811 program { name: "disable";
1812 signal: "elm,state,disabled";
1814 action: STATE_SET "disabled" 0.0;
1815 target: "button_image";
1816 target: "elm.swallow.content.shadow.proxy";
1817 target: "elm.swallow.content.shadow.clipper";
1818 target: "icon_clipper";
1820 after: "disable_text";
1822 program { name: "disable_text";
1826 get_state(PART:"elm.text", st, 30, vl);
1827 if (!strcmp(st, "visible"))
1828 set_state(PART:"elm.text", "disabled_visible", 0.0);
1830 set_state(PART:"elm.text", "disabled", 0.0);
1831 set_int(button_state, BUTTON_STATE_DISABLED);
1834 program { name: "enable";
1835 signal: "elm,state,enabled";
1837 action: STATE_SET "default" 0.0;
1838 target: "button_image";
1839 target: "elm.swallow.content.shadow.proxy";
1840 target: "elm.swallow.content.shadow.clipper";
1841 target: "icon_clipper";
1843 after: "enable_text";
1845 program { name: "enable_text";
1849 get_state(PART:"elm.text", st, 30, vl);
1850 if (!strcmp(st, "disabled_visible"))
1851 set_state(PART:"elm.text", "visible", 0.0);
1853 set_state(PART:"elm.text", "default", 0.0);
1854 set_int(button_state, BUTTON_STATE_ENABLED);
1857 program { name: "action_focus";
1858 signal: "elm,action,focus_highlight,show";
1860 action: STATE_SET "focused" 0.0;
1861 target: "focus_image";
1863 program { name: "action_unfocus";
1864 signal: "elm,action,focus_highlight,hide";
1866 action: STATE_SET "default" 0.0;
1867 target: "focus_image";
1872 ///////////////////////////////////////////////////////////////////////////////////////
1873 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, min_width, min_height) \
1874 group { name: "elm/button/base/"style_name; \
1876 item: "focus_highlight" "on"; \
1879 image: "00_circle_button.png" COMP; \
1880 image: "00_circle_button_press.png" COMP; \
1881 image: "00_circle_button_dim.png" COMP; \
1882 image: image_normal COMP; \
1883 image: 00_circle_button_focus.png COMP; \
1886 part { name: "button_image"; \
1888 description { state: "default" 0.0; \
1889 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1890 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1891 image.normal: "00_circle_button.png"; \
1894 state: "clicked" 0.0; \
1895 inherit: "default" 0.0; \
1896 image.normal: "00_circle_button_press.png"; \
1899 state: "disabled" 0.0; \
1900 inherit: "default" 0.0; \
1901 image.normal: "00_circle_button_dim.png"; \
1904 part { name: "left_top_padding"; \
1907 description { state: "default" 0.0; \
1908 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1909 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1912 rel1.to: "button_image"; \
1913 rel2.to: "button_image"; \
1916 part { name: "right_bottom_padding"; \
1919 description { state: "default" 0.0; \
1920 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1921 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1925 relative: 1.0 1.0; \
1926 to: "button_image"; \
1928 rel2.to: "button_image"; \
1931 part { name: "button_center_part"; \
1933 description { state: "default" 0.0; \
1934 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1935 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1936 image.normal: image_normal; \
1938 relative: 1.0 1.0; \
1939 to: "left_top_padding"; \
1942 relative: 0.0 0.0; \
1943 to: "right_bottom_padding"; \
1947 part { name: "elm.swallow.icon.shadow.proxy"; \
1949 clip_to: "elm.icon.proxy.clipper"; \
1951 description { state: "default" 0.0; \
1952 source: "button_center_part"; \
1953 proxy.source_clip: 0; \
1955 to: "button_center_part"; \
1956 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC; \
1959 to: "button_center_part"; \
1960 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
1963 description { state: "clicked" 0.0; \
1964 inherit: "default" 0.0; \
1966 to: "button_center_part"; \
1967 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC; \
1970 to: "button_center_part"; \
1971 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
1974 description { state: "disabled" 0.0; \
1975 inherit: "default" 0.0; \
1978 part { name: "elm.swallow.icon.proxy"; \
1981 clip_to: "icon_clipper"; \
1982 description { state: "default" 0.0; \
1983 source: "button_center_part"; \
1984 proxy.source_clip: 0; \
1985 rel1.to: "button_center_part"; \
1986 rel2.to: "button_center_part"; \
1989 part { name: "elm.icon.proxy.clipper"; \
1991 description { state: "default" 0.0; \
1992 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
1994 description { state: "clicked" 0.0; \
1995 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
1997 description { state: "disabled" 0.0; \
1998 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
2001 part { name: "icon_clipper"; \
2004 description { state: "default" 0.0; \
2005 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2007 description { state: "clicked" 0.0; \
2008 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2010 description { state: "disabled" 0.0; \
2011 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2014 part { name: "focus_image"; \
2018 description { state: "default" 0.0; \
2019 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2020 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2022 rel1.to : "button_image"; \
2023 rel2.to : "button_image"; \
2025 normal: "00_circle_button_focus.png"; \
2029 description { state: "focused" 0.0; \
2030 inherit: "default" 0.0; \
2034 part { name: "over1"; \
2036 ignore_flags: ON_HOLD; \
2037 description { state: "default" 0.0; \
2039 min: min_width min_height; \
2042 part { name: "over2"; \
2045 description { state: "default" 0.0; \
2049 part { name: "disabler"; \
2051 description { state: "default" 0.0; \
2055 description { state: "disabled" 0.0; \
2056 inherit: "default" 0.0; \
2062 program { name: "button_click"; \
2063 signal: "mouse,down,1"; \
2065 action: SIGNAL_EMIT "elm,action,press" ""; \
2066 after: "button_click_anim"; \
2068 program { name: "button_click_anim"; \
2069 action: STATE_SET "clicked" 0.0; \
2070 target: "button_image"; \
2071 target: "elm.swallow.icon.shadow.proxy"; \
2072 target: "elm.icon.proxy.clipper"; \
2073 target: "icon_clipper"; \
2075 program { name: "button_double_click"; \
2076 signal: "mouse,down,1,double"; \
2078 after: "button_click_anim"; \
2080 program { name: "button_unclick"; \
2081 signal: "mouse,up,1"; \
2083 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2084 after: "button_unclick_anim"; \
2086 program { name: "button_unclick_anim"; \
2087 action: STATE_SET "default" 0.0; \
2088 target: "button_image"; \
2089 target: "elm.swallow.icon.shadow.proxy"; \
2090 target: "elm.icon.proxy.clipper"; \
2091 target: "icon_clipper"; \
2093 program { name: "touch_snd"; \
2094 signal: "mouse,clicked,1"; \
2096 action: PLAY_SAMPLE "touch_sound" 1.0; \
2097 after: button_unclick3; \
2099 program { name: "button_unclick3"; \
2100 action: SIGNAL_EMIT "elm,action,click" ""; \
2102 program { name: "disable"; \
2103 signal: "elm,state,disabled"; \
2105 action: STATE_SET "disabled" 0.0; \
2106 target: "disabler"; \
2107 target: "button_image"; \
2108 target: "elm.swallow.icon.shadow.proxy"; \
2109 target: "elm.icon.proxy.clipper"; \
2110 target: "icon_clipper"; \
2112 program { name: "enable"; \
2113 signal: "elm,state,enabled"; \
2115 action: STATE_SET "default" 0.0; \
2116 target: "disabler"; \
2117 target: "button_image"; \
2118 target: "elm.swallow.icon.shadow.proxy"; \
2119 target: "elm.icon.proxy.clipper"; \
2120 target: "icon_clipper"; \
2122 program { name: "action_focus"; \
2123 signal: "elm,action,focus_highlight,show"; \
2125 action: STATE_SET "focused" 0.0; \
2126 target: "focus_image"; \
2128 program { name: "action_unfocus"; \
2129 signal: "elm,action,focus_highlight,hide"; \
2131 action: STATE_SET "default" 0.0; \
2132 target: "focus_image"; \
2137 ///////////////////////////////////////////////////////////////////////////////////////
2138 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2140 ///////////////////////////////////////////////////////////////////////////////////////
2141 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2143 ///////////////////////////////////////////////////////////////////////////////////////
2144 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2146 ///////////////////////////////////////////////////////////////////////////////////////
2147 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2149 ///////////////////////////////////////////////////////////////////////////////////////
2150 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2152 ///////////////////////////////////////////////////////////////////////////////////////
2153 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2155 ///////////////////////////////////////////////////////////////////////////////////////
2156 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2158 ///////////////////////////////////////////////////////////////////////////////////////
2159 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2161 ///////////////////////////////////////////////////////////////////////////////////////
2162 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2164 ///////////////////////////////////////////////////////////////////////////////////////
2165 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2167 ///////////////////////////////////////////////////////////////////////////////////////
2168 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2170 ///////////////////////////////////////////////////////////////////////////////////////
2171 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2173 ///////////////////////////////////////////////////////////////////////////////////////
2174 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2176 ///////////////////////////////////////////////////////////////////////////////////////
2177 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2179 ///////////////////////////////////////////////////////////////////////////////////////
2180 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2182 ///////////////////////////////////////////////////////////////////////////////////////
2183 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2185 ///////////////////////////////////////////////////////////////////////////////////////
2186 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2188 ///////////////////////////////////////////////////////////////////////////////////////
2189 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2191 ///////////////////////////////////////////////////////////////////////////////////////
2192 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2194 ///////////////////////////////////////////////////////////////////////////////////////
2195 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2196 ///////////////////////////////////////////////////////////////////////////////////////
2198 ///////////////////////////////////////////////////////////////////////////////////////
2199 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2200 ///////////////////////////////////////////////////////////////////////////////////////
2202 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2203 group { name: "elm/button/base/"style_name; \
2204 inherit: "elm/button/base/info"; \
2206 image: "00_circle_button_delete.png" COMP; \
2207 image: "00_circle_button_delete_press.png" COMP; \
2208 image: "00_circle_button_delete_dim.png" COMP; \
2209 image: "00_button_warning.png" COMP; \
2212 part { name: "button_image"; \
2214 description { state: "default" 0.0; \
2215 image.normal: "00_circle_button_delete.png"; \
2218 state: "clicked" 0.0; \
2219 inherit: "default" 0.0; \
2220 image.normal: "00_circle_button_delete_press.png"; \
2223 state: "disabled" 0.0; \
2224 inherit: "default" 0.0; \
2225 image.normal: "00_circle_button_delete_dim.png"; \
2228 part { name: "button_center_part"; \
2230 description { state: "default" 0.0; \
2231 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2232 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2233 image.normal: "00_button_warning.png"; \
2235 relative: 1.0 1.0; \
2236 to: "left_top_padding"; \
2239 relative: 0.0 0.0; \
2240 to: "right_bottom_padding"; \
2244 part { name: "elm.swallow.icon.shadow.proxy"; \
2246 clip_to: "elm.icon.proxy.clipper"; \
2248 description { state: "default" 0.0; \
2249 source: "button_center_part"; \
2250 proxy.source_clip: 0; \
2252 to: "button_center_part"; \
2253 offset: BUTTON_WARNING_STYLE_NORMAL_TOP_OFFSET_INC; \
2256 to: "button_center_part"; \
2257 offset: BUTTON_WARNING_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2260 description { state: "clicked" 0.0; \
2261 inherit: "default" 0.0; \
2263 to: "button_center_part"; \
2264 offset: BUTTON_WARNING_STYLE_PRESSED_TOP_OFFSET_INC; \
2267 to: "button_center_part"; \
2268 offset: BUTTON_WARNING_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2271 description { state: "disabled" 0.0; \
2272 inherit: "default" 0.0; \
2275 part { name: "elm.icon.proxy.clipper"; \
2277 description { state: "default" 0.0; \
2278 color: BUTTON_WARNING_STYLE_CLIPPER_NORMAL_COLOR_INC; \
2280 description { state: "clicked" 0.0; \
2281 color: BUTTON_WARNING_STYLE_CLIPPER_PRESSED_COLOR_INC; \
2283 description { state: "disabled" 0.0; \
2284 color: BUTTON_WARNING_STYLE_CLIPPER_DISABLED_COLOR_INC; \
2287 part { name: "icon_clipper"; \
2290 description { state: "default" 0.0; \
2291 color: BUTTON_WARNING_STYLE_NORMAL_COLOR_INC; \
2293 description { state: "clicked" 0.0; \
2294 color: BUTTON_WARNING_STYLE_PRESSED_COLOR_INC; \
2296 description { state: "disabled" 0.0; \
2297 color: BUTTON_WARNING_STYLE_DISABLED_COLOR_INC; \
2300 part { name: "over1"; \
2302 ignore_flags: ON_HOLD; \
2303 description { state: "default" 0.0; \
2305 min: min_width min_height; \
2311 ///////////////////////////////////////////////////////////////////////////////////////
2312 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2314 ///////////////////////////////////////////////////////////////////////////////////////
2315 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2317 ///////////////////////////////////////////////////////////////////////////////////////
2318 group { name: "elm/button/base/circle/empty";
2320 item: "focus_highlight" "on";
2323 image: "00_circle_button.png" COMP;
2324 image: "00_circle_button_press.png" COMP;
2325 image: "00_circle_button_dim.png" COMP;
2326 image: 00_circle_button_focus.png COMP;
2329 part { name: "button_image";
2331 description { state: "default" 0.0;
2332 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2333 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2335 image.normal: "00_circle_button.png";
2337 description { state: "clicked" 0.0;
2338 inherit: "default" 0.0;
2339 image.normal: "00_circle_button_press.png";
2341 description { state: "disabled" 0.0;
2342 inherit: "default" 0.0;
2343 image.normal: "00_circle_button_dim.png";
2346 part { name: "left_top_padding";
2349 description { state: "default" 0.0;
2350 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2351 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2354 rel1.to: "button_image";
2355 rel2.to: "button_image";
2358 part { name: "right_bottom_padding";
2361 description { state: "default" 0.0;
2362 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2363 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2370 rel2.to: "button_image";
2373 part { name: "elm.swallow.content";
2376 description { state: "default" 0.0;
2377 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2378 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2382 to: "left_top_padding";
2386 to: "right_bottom_padding";
2390 part { name: "elm.swallow.icon.shadow.proxy";
2392 clip_to: "elm.icon.proxy.clipper";
2394 description { state: "default" 0.0;
2395 source: "elm.swallow.content";
2396 proxy.source_clip: 0;
2398 to: "elm.swallow.content";
2399 offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC;
2402 to: "elm.swallow.content";
2403 offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC;
2406 description { state: "clicked" 0.0;
2407 inherit: "default" 0.0;
2409 to: "elm.swallow.content";
2410 offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC;
2413 to: "elm.swallow.content";
2414 offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC;
2417 description { state: "disabled" 0.0;
2418 inherit: "default" 0.0;
2421 part { name: "elm.swallow.icon.proxy";
2424 clip_to: "icon_clipper";
2425 description { state: "default" 0.0;
2426 source: "elm.swallow.content";
2427 proxy.source_clip: 0;
2428 rel1.to: "elm.swallow.content";
2429 rel2.to: "elm.swallow.content";
2432 part { name: "elm.icon.proxy.clipper";
2434 description { state: "default" 0.0;
2435 color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC;
2437 description { state: "clicked" 0.0;
2438 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC;
2440 description { state: "disabled" 0.0;
2441 color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC;
2444 part { name: "icon_clipper";
2447 description { state: "default" 0.0;
2448 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2450 description { state: "clicked" 0.0;
2451 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2453 description { state: "disabled" 0.0;
2454 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2457 part { name: "focus_image";
2461 description { state: "default" 0.0;
2462 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2463 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2465 rel1.to : "button_image";
2466 rel2.to : "button_image";
2468 normal: "00_circle_button_focus.png";
2472 description { state: "focused" 0.0;
2473 inherit: "default" 0.0;
2477 part { name: "over1";
2479 ignore_flags: ON_HOLD;
2480 description { state: "default" 0.0;
2484 part { name: "over2";
2487 description { state: "default" 0.0;
2491 part { name: "disabler";
2493 description { state: "default" 0.0;
2497 description { state: "disabled" 0.0;
2498 inherit: "default" 0.0;
2504 program { name: "button_click";
2505 signal: "mouse,down,1";
2507 action: SIGNAL_EMIT "elm,action,press" "";
2508 after: "button_click_anim";
2510 program { name: "button_click_anim";
2511 action: STATE_SET "clicked" 0.0;
2512 target: "button_image";
2513 target: "elm.swallow.icon.shadow.proxy";
2514 target: "elm.icon.proxy.clipper";
2515 target: "icon_clipper";
2517 program { name: "button_double_click";
2518 signal: "mouse,down,1,double";
2520 after: "button_click_anim";
2522 program { name: "touch_snd";
2523 signal: "mouse,clicked,1";
2525 action: PLAY_SAMPLE "touch_sound" 1.0;
2526 after: button_unclick2;
2528 program { name: "button_unclick2";
2529 action: SIGNAL_EMIT "elm,action,click" "";
2531 program { name: "button_unclick";
2532 signal: "mouse,up,1";
2534 action: SIGNAL_EMIT "elm,action,unpress" "";
2535 after: "button_unclick_anim";
2537 program { name: "button_unclick_anim";
2538 action: STATE_SET "default" 0.0;
2539 target: "button_image";
2540 target: "elm.swallow.icon.shadow.proxy";
2541 target: "elm.icon.proxy.clipper";
2542 target: "icon_clipper";
2544 program { name: "disable";
2545 signal: "elm,state,disabled";
2547 action: STATE_SET "disabled" 0.0;
2549 target: "button_image";
2550 target: "elm.swallow.icon.shadow.proxy";
2551 target: "elm.icon.proxy.clipper";
2552 target: "icon_clipper";
2554 program { name: "enable";
2555 signal: "elm,state,enabled";
2557 action: STATE_SET "default" 0.0;
2559 target: "button_image";
2560 target: "elm.swallow.icon.shadow.proxy";
2561 target: "elm.icon.proxy.clipper";
2562 target: "icon_clipper";
2564 program { name: "action_focus";
2565 signal: "elm,action,focus_highlight,show";
2567 action: STATE_SET "focused" 0.0;
2568 target: "focus_image";
2570 program { name: "action_unfocus";
2571 signal: "elm,action,focus_highlight,hide";
2573 action: STATE_SET "default" 0.0;
2574 target: "focus_image";
2579 ///////////////////////////////////////////////////////////////////////////////////////
2580 #define BUTTON_EDIT_STYLES(style_name, image_normal, min_width, min_height) \
2581 group { name: "elm/button/base/contacts/"style_name; \
2582 alias: "elm/button/base/"style_name; \
2584 item: "focus_highlight" "on"; \
2587 image: "00_circle_button.png" COMP; \
2588 image: "00_circle_button_press.png" COMP; \
2589 image: "00_circle_button_dim.png" COMP; \
2590 image: image_normal COMP; \
2591 image: 00_circle_button_focus.png COMP;\
2594 part { name: "button_image"; \
2596 description { state: "default" 0.0; \
2597 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2598 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2599 image.normal: "00_circle_button.png"; \
2601 description { state: "clicked" 0.0; \
2602 inherit: "default" 0.0; \
2603 image.normal: "00_circle_button_press.png"; \
2605 description { state: "disabled" 0.0; \
2606 inherit: "default" 0.0; \
2607 image.normal: "00_circle_button_dim.png"; \
2610 part { name: "button_center_part"; \
2613 description { state: "default" 0.0; \
2614 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2615 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2616 image.normal: image_normal; \
2619 part { name: "elm.swallow.icon.shadow.proxy"; \
2621 clip_to: "elm.icon.proxy.clipper"; \
2623 description { state: "default" 0.0; \
2624 source: "button_center_part"; \
2625 proxy.source_clip: 0; \
2627 to: "button_center_part"; \
2628 offset: BUTTON_EDIT_STYLE_NORMAL_TOP_OFFSET_INC; \
2631 to: "button_center_part"; \
2632 offset: BUTTON_EDIT_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2635 description { state: "clicked" 0.0; \
2636 inherit: "default" 0.0; \
2638 to: "button_center_part"; \
2639 offset: BUTTON_EDIT_STYLE_PRESSED_TOP_OFFSET_INC; \
2642 to: "button_center_part"; \
2643 offset: BUTTON_EDIT_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2646 description { state: "disabled" 0.0; \
2647 inherit: "default" 0.0; \
2650 part { name: "elm.swallow.icon.proxy"; \
2653 clip_to: "icon_clipper"; \
2654 description { state: "default" 0.0; \
2655 source: "button_center_part"; \
2656 proxy.source_clip: 0; \
2657 rel1.to: "button_center_part"; \
2658 rel2.to: "button_center_part"; \
2661 part { name: "elm.icon.proxy.clipper"; \
2663 description { state: "default" 0.0; \
2664 color: BUTTON_EDIT_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
2666 description { state: "clicked" 0.0; \
2667 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
2669 description { state: "disabled" 0.0; \
2670 color: BUTTON_EDIT_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
2673 part { name: "icon_clipper"; \
2676 description { state: "default" 0.0; \
2677 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2679 description { state: "clicked" 0.0; \
2680 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2682 description { state: "disabled" 0.0; \
2683 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2686 part { name: "focus_image"; \
2690 description { state: "default" 0.0; \
2691 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2692 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2694 rel1.to : "button_image"; \
2695 rel2.to : "button_image"; \
2697 normal: "00_circle_button_focus.png"; \
2701 description { state: "focused" 0.0; \
2702 inherit: "default" 0.0; \
2706 part { name: "over1"; \
2709 ignore_flags: ON_HOLD; \
2710 description { state: "default" 0.0; \
2712 min: min_width min_height; \
2715 part { name: "over2"; \
2718 description { state: "default" 0.0; \
2722 part { name: "disabler"; \
2724 description { state: "default" 0.0; \
2728 description { state: "disabled" 0.0; \
2729 inherit: "default" 0.0; \
2735 program { name: "button_click"; \
2736 signal: "mouse,down,1"; \
2738 action: SIGNAL_EMIT "elm,action,press" ""; \
2739 after: "button_click_anim"; \
2741 program { name: "button_click_anim"; \
2742 action: STATE_SET "clicked" 0.0; \
2743 target: "button_image"; \
2744 target: "elm.swallow.icon.shadow.proxy"; \
2745 target: "elm.icon.proxy.clipper"; \
2746 target: "icon_clipper"; \
2748 program { name: "button_double_click"; \
2749 signal: "mouse,down,1,double"; \
2751 after: "button_click_anim"; \
2753 program { name: "button_unclick"; \
2754 signal: "mouse,up,1"; \
2756 action: SIGNAL_EMIT "elm,action,unpress" ""; \
2757 after: "button_unclick_anim"; \
2759 program { name: "button_unclick_anim"; \
2760 action: STATE_SET "default" 0.0; \
2761 target: "button_image"; \
2762 target: "elm.swallow.icon.shadow.proxy"; \
2763 target: "elm.icon.proxy.clipper"; \
2764 target: "icon_clipper"; \
2766 program { name: "touch_snd"; \
2767 signal: "mouse,clicked,1"; \
2769 action: PLAY_SAMPLE "touch_sound" 1.0; \
2770 after: button_unclick3; \
2772 program { name: "button_unclick3"; \
2773 action: SIGNAL_EMIT "elm,action,click" ""; \
2775 program { name: "disable"; \
2776 signal: "elm,state,disabled"; \
2778 action: STATE_SET "disabled" 0.0; \
2779 target: "disabler"; \
2780 target: "button_image"; \
2781 target: "elm.swallow.icon.shadow.proxy"; \
2782 target: "elm.icon.proxy.clipper"; \
2783 target: "icon_clipper"; \
2785 program { name: "enable"; \
2786 signal: "elm,state,enabled"; \
2788 action: STATE_SET "default" 0.0; \
2789 target: "disabler"; \
2790 target: "button_image"; \
2791 target: "elm.swallow.icon.shadow.proxy"; \
2792 target: "elm.icon.proxy.clipper"; \
2793 target: "icon_clipper"; \
2795 program { name: "action_focus"; \
2796 signal: "elm,action,focus_highlight,show"; \
2798 action: STATE_SET "focused" 0.0; \
2799 target: "focus_image"; \
2801 program { name: "action_unfocus"; \
2802 signal: "elm,action,focus_highlight,hide"; \
2804 action: STATE_SET "default" 0.0; \
2805 target: "focus_image"; \
2809 ///////////////////////////////////////////////////////////////////////////////////////
2810 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2812 ///////////////////////////////////////////////////////////////////////////////////////
2813 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2815 ///////////////////////////////////////////////////////////////////////////////////////
2816 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2818 ///////////////////////////////////////////////////////////////////////////////////////
2819 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2821 ///////////////////////////////////////////////////////////////////////////////////////
2822 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2824 ///////////////////////////////////////////////////////////////////////////////////////
2825 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2827 ///////////////////////////////////////////////////////////////////////////////////////
2829 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2830 group { name: "elm/button/base/contacts/"style_name; \
2831 alias: "elm/button/base/"style_name; \
2832 inherit: "elm/button/base/contacts/icon_plus"; \
2834 image: "00_circle_button_delete.png" COMP; \
2835 image: "00_circle_button_delete_press.png" COMP; \
2836 image: "00_circle_button_delete_dim.png" COMP; \
2837 image: "00_button_delete.png" COMP; \
2840 part { name: "button_image"; \
2842 description { state: "default" 0.0; \
2843 image.normal: "00_circle_button_delete.png"; \
2845 description { state: "clicked" 0.0; \
2846 inherit: "default" 0.0; \
2847 image.normal: "00_circle_button_delete_press.png"; \
2849 description { state: "disabled" 0.0; \
2850 inherit: "default" 0.0; \
2851 image.normal: "00_circle_button_delete_dim.png"; \
2854 part { name: "button_center_part"; \
2857 description { state: "default" 0.0; \
2858 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2859 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2860 image.normal: "00_button_delete.png"; \
2863 part { name: "elm.swallow.icon.shadow.proxy"; \
2865 clip_to: "elm.icon.proxy.clipper"; \
2867 description { state: "default" 0.0; \
2868 source: "button_center_part"; \
2869 proxy.source_clip: 0; \
2871 to: "button_center_part"; \
2872 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_TOP_OFFSET_INC; \
2875 to: "button_center_part"; \
2876 offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_BOTTOM_OFFSET_INC; \
2879 description { state: "clicked" 0.0; \
2880 inherit: "default" 0.0; \
2882 to: "button_center_part"; \
2883 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_TOP_OFFSET_INC; \
2886 to: "button_center_part"; \
2887 offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_BOTTOM_OFFSET_INC; \
2890 description { state: "disabled" 0.0; \
2891 inherit: "default" 0.0; \
2894 part { name: "elm.icon.proxy.clipper"; \
2896 description { state: "default" 0.0; \
2897 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_NORMAL_COLOR_INC; \
2899 description { state: "clicked" 0.0; \
2900 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_PRESSED_COLOR_INC; \
2902 description { state: "disabled" 0.0; \
2903 color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_DISABLED_COLOR_INC; \
2906 part { name: "icon_clipper"; \
2909 description { state: "default" 0.0; \
2910 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
2912 description { state: "clicked" 0.0; \
2913 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
2915 description { state: "disabled" 0.0; \
2916 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
2919 part { name: "over1"; \
2922 ignore_flags: ON_HOLD; \
2923 description { state: "default" 0.0; \
2925 min: min_width min_height; \
2931 ///////////////////////////////////////////////////////////////////////////////////////
2932 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2934 ///////////////////////////////////////////////////////////////////////////////////////
2935 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2937 ///////////////////////////////////////////////////////////////////////////////////////
2938 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
2939 group { name: "elm/button/base/"style_name; \
2941 item: "focus_highlight" "on"; \
2944 image: "00_button_01.png" COMP; \
2945 image: "00_button_01_press.png" COMP; \
2946 image: "00_button_01_dim.png" COMP; \
2947 image: image_normal COMP; \
2948 image: "00_button_01_focus.png" COMP; \
2951 part { name: "button_image";\
2954 description { state: "default" 0.0; \
2955 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
2957 normal: "00_button_01.png"; \
2958 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2962 description { state: "clicked" 0.0; \
2963 inherit: "default" 0.0; \
2964 image.normal: "00_button_01_press.png"; \
2966 description { state: "disabled" 0.0; \
2967 inherit: "default" 0.0; \
2968 image.normal: "00_button_01_dim.png"; \
2971 part { name: "focus_image"; \
2975 description { state: "default" 0.0; \
2977 rel1.to : "button_image"; \
2978 rel2.to : "button_image"; \
2980 normal: "00_button_01_focus.png"; \
2981 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2985 description { state: "focused" 0.0; \
2986 inherit: "default" 0.0; \
2990 part { name: "padding_left_top"; \
2993 description { state: "default" 0.0; \
2995 rel2.relative: 0.0 0.0; \
2996 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3000 part { name: "padding_right_bottom"; \
3003 description { state: "default" 0.0; \
3005 rel1.relative: 1.0 1.0; \
3006 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3010 part { name: "jump_image"; \
3012 description { state: "default" 0.0; \
3013 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3014 max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3016 relative: 1.0 0.0; \
3017 to_x: "padding_left_top"; \
3020 relative: 0.0 1.0; \
3021 to_x: "padding_right_bottom"; \
3023 image.normal: image_normal; \
3025 aspect_preference: VERTICAL; \
3028 part { name: "jump_image.shadow.proxy"; \
3031 clip_to: "elm.swallow.icon.shadow.proxy"; \
3032 description { state: "default" 0.0; \
3033 source: "jump_image"; \
3034 proxy.source_clip: 0; \
3037 offset: BUTTON_JUMP_TO_NORMAL_TOP_OFFSET_INC; \
3041 offset: BUTTON_JUMP_TO_NORMAL_BOTTOM_OFFSET_INC; \
3044 description { state: "clicked" 0.0; \
3045 inherit: "default" 0.0; \
3048 offset: BUTTON_JUMP_TO_PRESSED_TOP_OFFSET_INC; \
3052 offset: BUTTON_JUMP_TO_PRESSED_BOTTOM_OFFSET_INC; \
3055 description { state: "disabled" 0.0; \
3056 inherit: "default" 0.0; \
3059 part { name: "jump_image.proxy"; \
3062 clip_to: "elm.swallow.icon.proxy"; \
3063 description { state: "default" 0.0; \
3064 source: "jump_image"; \
3065 proxy.source_clip: 0; \
3066 rel1.to: "jump_image"; \
3067 rel2.to: "jump_image"; \
3070 part { name: "elm.swallow.icon.shadow.proxy"; \
3073 description { state: "default" 0.0; \
3074 color: BUTTON_JUMP_SHADOW_NORMAL_COLOR_INC; \
3076 description { state: "clicked" 0.0; \
3077 color: BUTTON_JUMP_SHADOW_PRESSED_COLOR_INC; \
3079 description { state: "disabled" 0.0; \
3080 color: BUTTON_JUMP_SHADOW_DISABLED_COLOR_INC; \
3083 part { name: "elm.swallow.icon.proxy"; \
3086 description { state: "default" 0.0; \
3087 color: BUTTON_JUMP_NORMAL_COLOR_INC; \
3089 description { state: "clicked" 0.0; \
3090 color: BUTTON_JUMP_PRESSED_COLOR_INC; \
3092 description { state: "disabled" 0.0; \
3093 color: BUTTON_JUMP_DISABLED_COLOR_INC; \
3096 part { name: "over1"; \
3099 ignore_flags: ON_HOLD; \
3100 description { state: "default" 0.0; \
3102 rel1.relative: 0.0 0.0; \
3103 rel2.relative: 1.0 1.0; \
3106 part { name: "over2"; \
3109 description { state: "default" 0.0; \
3115 program { name: "button_click"; \
3116 signal: "mouse,down,1"; \
3118 action: SIGNAL_EMIT "elm,action,press" ""; \
3119 after: "button_click_anim"; \
3121 program { name: "button_click_anim"; \
3122 action: STATE_SET "clicked" 0.0; \
3123 target: "button_image"; \
3124 target: "jump_image.shadow.proxy"; \
3125 target: "elm.swallow.icon.shadow.proxy"; \
3126 target: "elm.swallow.icon.proxy"; \
3128 program { name: "button_double_click"; \
3129 signal: "mouse,down,1,double"; \
3131 after: "button_click_anim"; \
3133 program { name: "button_unclick"; \
3134 signal: "mouse,up,1"; \
3136 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3137 after: "button_unclick_anim"; \
3139 program { name: "button_unclick_anim"; \
3140 action: STATE_SET "default" 0.0; \
3141 target: "button_image"; \
3142 target: "jump_image.shadow.proxy"; \
3143 target: "elm.swallow.icon.shadow.proxy"; \
3144 target: "elm.swallow.icon.proxy"; \
3146 program { name: "touch_snd"; \
3147 signal: "mouse,clicked,1"; \
3149 action: PLAY_SAMPLE "touch_sound" 1.0; \
3150 after: button_unclick3; \
3152 program { name: "button_unclick3"; \
3153 action: SIGNAL_EMIT "elm,action,click" ""; \
3155 program { name: "disable"; \
3156 signal: "elm,state,disabled"; \
3158 action: STATE_SET "disabled" 0.0; \
3159 target: "button_image"; \
3160 target: "jump_image.shadow.proxy"; \
3161 target: "elm.swallow.icon.shadow.proxy"; \
3162 target: "elm.swallow.icon.proxy"; \
3164 program { name: "enable"; \
3165 signal: "elm,state,enabled"; \
3167 action: STATE_SET "default" 0.0; \
3168 target: "button_image"; \
3169 target: "jump_image.shadow.proxy"; \
3170 target: "elm.swallow.icon.shadow.proxy"; \
3171 target: "elm.swallow.icon.proxy"; \
3173 program { name: "action_focus"; \
3174 signal: "elm,action,focus_highlight,show"; \
3176 action: STATE_SET "focused" 0.0; \
3177 target: "focus_image"; \
3179 program { name: "action_unfocus"; \
3180 signal: "elm,action,focus_highlight,hide"; \
3182 action: STATE_SET "default" 0.0; \
3183 target: "focus_image"; \
3188 ////////////////////////////////////////////////////////////////////////
3189 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3190 ////////////////////////////////////////////////////////////////////////
3191 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3193 ////////////////////////////////////////////////////////////////////////
3194 group { name: "elm/button/base/default";
3196 item: "focus_highlight" "on";
3199 image: "00_button_01.png" COMP;
3200 image: "00_button_01_press.png" COMP;
3201 image: "00_button_01_dim.png" COMP;
3202 image: "00_button_01_focus.png" COMP;
3205 style { name: "btn_base_default";
3206 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3211 style { name: "btn_base_default_pressed";
3212 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3217 style { name: "btn_base_default_dim";
3218 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3223 style { name: "btn_base_default_focus";
3224 base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3231 public button_state = BUTTON_STATE_ENABLED;
3234 part { name: "button_image";
3236 description { state: "default" 0.0;
3237 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3239 normal: "00_button_01.png";
3240 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3244 description { state: "clicked" 0.0;
3245 inherit: "default" 0.0;
3246 image.normal: "00_button_01_press.png";
3248 description { state: "disabled" 0.0;
3249 inherit: "default" 0.0;
3250 image.normal: "00_button_01_dim.png";
3252 description { state: "focused" 0.0;
3253 inherit: "default" 0.0;
3254 image.normal: "00_button_01_press.png";
3257 part { name: "focus_image";
3261 description { state: "default" 0.0;
3263 rel1.to : "button_image";
3264 rel2.to : "button_image";
3266 normal: "00_button_01_focus.png";
3267 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3271 description { state: "focused" 0.0;
3272 inherit: "default" 0.0;
3276 part { name: "padding_left_top";
3280 description { state: "default" 0.0;
3282 rel2.relative: 0.0 0.0;
3283 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3288 part { name: "padding_right_bottom";
3292 description { state: "default" 0.0;
3294 rel1.relative: 1.0 1.0;
3295 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3300 part { name: "padding_icon_text";
3304 description { state: "default" 0.0; //when only icon or no icon is there
3310 to: "elm.swallow.content";
3312 rel2.to: "elm.swallow.content";
3315 description { state: "icononly" 0.0;
3316 inherit: "default" 0.0;
3318 description { state: "visible" 0.0; //when icon is visible
3319 inherit: "default" 0.0;
3320 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3323 part { name: "elm.swallow.content";
3327 description { state: "default" 0.0;
3333 to: "padding_left_top";
3337 to_x: "padding_left_top";
3338 to_y: "padding_right_bottom";
3341 description { state: "visible" 0.0;
3342 inherit: "default" 0.0;
3345 aspect_preference: VERTICAL;
3347 description { state: "icononly" 0.0;
3348 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3351 to_x: "padding_left_top";
3355 to_x: "padding_right_bottom";
3358 aspect_preference: VERTICAL;
3361 part { name: "elm.text";
3366 description { state: "default" 0.0;
3371 to_x: "padding_icon_text";
3372 to_y: "padding_left_top";
3376 to: "padding_right_bottom";
3379 style: "btn_base_default";
3382 description { state: "visible" 0.0;
3383 inherit: "default" 0.0;
3385 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3387 description { state: "clicked" 0.0;
3388 inherit: "default" 0.0;
3390 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3392 style: "btn_base_default_pressed";
3395 description { state: "disabled" 0.0;
3396 inherit: "default" 0.0;
3398 description { state: "disabled_visible" 0.0;
3399 inherit: "default" 0.0;
3402 style: "btn_base_default_dim";
3404 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3406 description { state: "focused" 0.0;
3407 inherit: "default" 0.0;
3410 style: "btn_base_default_focus";
3415 part { name: "over2";
3418 ignore_flags: ON_HOLD;
3419 description { state: "default" 0.0;
3423 part { name: "over3";
3426 description { state: "default" 0.0;
3430 part { name: "disclip";
3432 description { state: "default" 0.0;
3433 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3435 description { state: "disabled" 0.0;
3436 inherit: "default" 0.0;
3437 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3440 part { name: "disabler";
3442 description { state: "default" 0.0;
3446 description { state: "disabled" 0.0;
3447 inherit: "default" 0.0;
3453 program { name: "button_click";
3454 signal: "mouse,down,1";
3456 action: SIGNAL_EMIT "elm,action,press" "";
3457 after: "button_click_anim";
3459 program { name: "button_click_anim";
3460 action: STATE_SET "clicked" 0.0;
3461 target: "button_image";
3462 after: "text_clicked";
3464 program { name: "text_clicked";
3468 get_state(PART:"elm.text", st, 30, vl);
3469 if (!strcmp(st, "visible"))
3470 set_state(PART:"elm.text", "clicked", 0.0);
3473 program { name: "button_double_click";
3474 signal: "mouse,down,1,double";
3476 after: "button_click_anim";
3478 program { name: "button_unpress";
3479 action: SIGNAL_EMIT "elm,action,unpress" "";
3481 program { name: "button_mouseout_clicked";
3482 signal: "mouse,up,1";
3487 get_state(PART:"elm.swallow.content", st, 30, vl);
3488 if (strcmp(st, "icononly"))
3490 emit("elm,action,default,text,set", "");
3491 set_state(PART:"elm.text", "visible", 0.0);
3493 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3494 set_state(PART:"button_image", "default", 0.0);
3496 after: button_unpress;
3498 program { name: "touch_snd";
3499 signal: "mouse,clicked,1";
3501 action: PLAY_SAMPLE "touch_sound" 1.0;
3502 after: button_unclick3;
3504 program { name: "button_unclick3";
3505 action: SIGNAL_EMIT "elm,action,click" "";
3507 program { name: "text_show";
3508 signal: "elm,state,text,visible";
3513 get_state(PART:"elm.swallow.content", st, 30, vl);
3514 if (!strcmp(st, "icononly"))
3516 set_state(PART:"elm.swallow.content", "visible", 0.0);
3517 set_state(PART:"padding_icon_text", "visible", 0.0);
3519 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3520 set_state(PART:"elm.text", "visible", 0.0);
3522 set_state(PART:"elm.text", "disabled_visible", 0.0);
3525 program { name: "text_hide";
3526 signal: "elm,state,text,hidden";
3531 get_state(PART:"elm.swallow.content", st, 30, vl);
3532 if (!strcmp(st, "visible"))
3534 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3535 set_state(PART:"padding_icon_text", "icononly", 0.0);
3537 set_state(PART:"elm.text", "default", 0.0);
3540 program { name: "icon_show";
3541 signal: "elm,state,icon,visible";
3546 get_state(PART:"elm.text", st, 30, vl);
3547 if (!strcmp(st, "visible"))
3549 set_state(PART:"elm.swallow.content", "visible", 0.0);
3550 set_state(PART:"padding_icon_text", "visible", 0.0);
3554 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3555 set_state(PART:"padding_icon_text", "icononly", 0.0);
3559 program { name: "icon_hide";
3560 signal: "elm,state,icon,hidden";
3562 action: STATE_SET "default" 0.0;
3563 target: "elm.swallow.content";
3564 target: "padding_icon_text";
3566 program { name: "disable";
3567 signal: "elm,state,disabled";
3569 action: STATE_SET "disabled" 0.0;
3570 target: "button_image";
3573 after: "disable_text";
3575 program { name: "disable_text";
3579 get_state(PART:"elm.text", st, 30, vl);
3580 if (!strcmp(st, "visible"))
3581 set_state(PART:"elm.text", "disabled_visible", 0.0);
3583 set_state(PART:"elm.text", "disabled", 0.0);
3584 set_int(button_state, BUTTON_STATE_DISABLED);
3587 program { name: "enable";
3588 signal: "elm,state,enabled";
3590 action: STATE_SET "default" 0.0;
3591 target: "button_image";
3594 after: "enable_text";
3596 program { name: "enable_text";
3600 get_state(PART:"elm.text", st, 30, vl);
3601 if (!strcmp(st, "disabled_visible"))
3602 set_state(PART:"elm.text", "visible", 0.0);
3604 set_state(PART:"elm.text", "default", 0.0);
3605 set_int(button_state, BUTTON_STATE_ENABLED);
3608 program { name: "action_focus";
3609 signal: "elm,action,focus_highlight,show";
3611 action: STATE_SET "focused" 0.0;
3612 target: "focus_image";
3614 program { name: "action_unfocus";
3615 signal: "elm,action,focus_highlight,hide";
3617 action: STATE_SET "default" 0.0;
3618 target: "focus_image";
3623 ///////////////////////////////////////////////////////////////////////////////////////
3624 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal) \
3625 group { name: "elm/button/base/"style_name; \
3627 item: "focus_highlight" "on"; \
3630 image: image_normal COMP; \
3631 image: image_dim COMP; \
3632 image: "00_button_01.png" COMP; \
3633 image: "00_button_01_press.png" COMP; \
3634 image: "00_button_01_focus.png" COMP; \
3637 part { name: "button_image"; \
3639 description { state: "default" 0.0; \
3640 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3641 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3643 normal: "00_button_01.png"; \
3644 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3649 state: "clicked" 0.0; \
3650 inherit: "default" 0.0; \
3651 image.normal: "00_button_01_press.png"; \
3654 state: "disabled" 0.0; \
3655 inherit: "default" 0.0; \
3656 image.normal: "00_button_01_dim.png"; \
3659 state: "focused" 0.0; \
3660 inherit: "default" 0.0; \
3661 image.normal: "00_button_01_press.png"; \
3664 part { name: "focus_image"; \
3668 description { state: "default" 0.0; \
3669 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3670 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3672 rel1.to : "button_image"; \
3673 rel2.to : "button_image"; \
3675 normal: "00_button_01_focus.png"; \
3676 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3680 description { state: "focused" 0.0; \
3681 inherit: "default" 0.0; \
3685 part { name: "button_center_part"; \
3687 description { state: "default" 0.0; \
3688 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3689 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3690 image.normal: image_normal; \
3693 part { name: "elm.swallow.icon.shadow.proxy"; \
3695 clip_to: "elm.icon.proxy.clipper"; \
3697 description { state: "default" 0.0; \
3698 source: "button_center_part"; \
3699 proxy.source_clip: 0; \
3701 to: "button_center_part"; \
3702 offset: BUTTON_COLORSELECTOR_NORMAL_TOP_OFFSET_INC; \
3705 to: "button_center_part"; \
3706 offset: BUTTON_COLORSELECTOR_NORMAL_BOTTOM_OFFSET_INC; \
3709 description { state: "clicked" 0.0; \
3710 inherit: "default" 0.0; \
3712 to: "button_center_part"; \
3713 offset: BUTTON_COLORSELECTOR_PRESSED_TOP_OFFSET_INC; \
3716 to: "button_center_part"; \
3717 offset: BUTTON_COLORSELECTOR_PRESSED_BOTTOM_OFFSET_INC; \
3720 description { state: "disabled" 0.0; \
3721 inherit: "default" 0.0; \
3724 part { name: "elm.swallow.icon.proxy"; \
3727 clip_to: "icon_clipper"; \
3728 description { state: "default" 0.0; \
3729 source: "button_center_part"; \
3730 proxy.source_clip: 0; \
3731 rel1.to: "button_center_part"; \
3732 rel2.to: "button_center_part"; \
3735 part { name: "elm.icon.proxy.clipper"; \
3737 description { state: "default" 0.0; \
3738 color: BUTTON_COLORSELECTOR_SHADOW_NORMAL_COLOR_INC; \
3740 description { state: "clicked" 0.0; \
3741 color: BUTTON_COLORSELECTOR_SHADOW_PRESSED_COLOR_INC; \
3743 description { state: "disabled" 0.0; \
3744 color: BUTTON_COLORSELECTOR_SHADOW_DISABLED_COLOR_INC; \
3747 part { name: "icon_clipper"; \
3750 description { state: "default" 0.0; \
3751 color: BUTTON_COLORSELECTOR_NORMAL_COLOR_INC; \
3753 description { state: "clicked" 0.0; \
3754 color: BUTTON_COLORSELECTOR_PRESSED_COLOR_INC; \
3756 description { state: "disabled" 0.0; \
3757 color: BUTTON_COLORSELECTOR_DISABLED_COLOR_INC; \
3760 part { name: "over1"; \
3762 ignore_flags: ON_HOLD; \
3763 description { state: "default" 0.0; \
3767 part { name: "over2"; \
3770 description { state: "default" 0.0; \
3774 part { name: "disabler"; \
3776 description { state: "default" 0.0; \
3780 description { state: "disabled" 0.0; \
3781 inherit: "default" 0.0; \
3787 program { name: "button_click"; \
3788 signal: "mouse,down,1"; \
3790 action: SIGNAL_EMIT "elm,action,press" ""; \
3791 after: "button_click_anim"; \
3793 program { name: "button_click_anim"; \
3794 action: STATE_SET "clicked" 0.0; \
3795 target: "button_image"; \
3796 target: "elm.swallow.icon.proxy"; \
3797 target: "elm.icon.proxy.clipper"; \
3798 target: ""icon_clipper""; \
3800 program { name: "button_double_click"; \
3801 signal: "mouse,down,1,double"; \
3803 after: "button_click_anim"; \
3805 program { name: "button_unclick"; \
3806 signal: "mouse,up,1"; \
3808 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3809 after: "button_unclick_anim"; \
3811 program { name: "button_unclick_anim"; \
3812 action: STATE_SET "default" 0.0; \
3813 target: "button_image"; \
3814 target: "elm.swallow.icon.proxy"; \
3815 target: "elm.icon.proxy.clipper"; \
3816 target: ""icon_clipper""; \
3818 program { name: "touch_snd"; \
3819 signal: "mouse,clicked,1"; \
3821 action: PLAY_SAMPLE "touch_sound" 1.0; \
3822 after: button_unclick3; \
3824 program { name: "button_unclick3"; \
3825 action: SIGNAL_EMIT "elm,action,click" ""; \
3827 program { name: "disable"; \
3828 signal: "elm,state,disabled"; \
3830 action: STATE_SET "disabled" 0.0; \
3831 target: "disabler"; \
3832 target: "button_image"; \
3833 target: "elm.swallow.icon.proxy"; \
3834 target: "elm.icon.proxy.clipper"; \
3835 target: ""icon_clipper""; \
3837 program { name: "enable"; \
3838 signal: "elm,state,enabled"; \
3840 action: STATE_SET "default" 0.0; \
3841 target: "disabler"; \
3842 target: "button_image"; \
3843 target: "elm.swallow.icon.proxy"; \
3844 target: "elm.icon.proxy.clipper"; \
3845 target: ""icon_clipper""; \
3847 program { name: "action_focus"; \
3848 signal: "elm,action,focus_highlight,show"; \
3850 action: STATE_SET "focused" 0.0; \
3851 target: "focus_image"; \
3853 program { name: "action_unfocus"; \
3854 signal: "elm,action,focus_highlight,hide"; \
3856 action: STATE_SET "default" 0.0; \
3857 target: "focus_image"; \
3861 ///////////////////////////////////////////////////////////////////////////////////////
3862 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png")
3863 ///////////////////////////////////////////////////////////////////////////////////////
3864 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png")
3865 ///////////////////////////////////////////////////////////////////////////////////////
3867 group { name: "elm/button/base/multibuttonentry";
3868 alias: "elm/button/base/text_only/multibuttonentry";
3870 item: "focus_highlight" "on";
3873 image: "00_contacts_button.png" COMP;
3874 image: "00_contacts_button_press.png" COMP;
3875 image: "00_contacts_button_focus.png" COMP;
3876 image: "00_contacts_button_dim.png" COMP;
3879 style { name: "btn_base_multibuttonentry";
3880 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3885 style { name: "btn_base_multibuttonentry_pressed";
3886 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3891 style { name: "btn_base_multibuttonentry_dim";
3892 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3897 style { name: "btn_base_multibuttonentry_focus";
3898 base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3905 public button_state = BUTTON_STATE_ENABLED;
3908 part { name: "button_image";
3910 description { state: "default" 0.0;
3912 to_x: "padding.left";
3916 to_x: "padding.right";
3919 min: BUTTON_CONTACT_BG_MIN_INC;
3921 normal: "00_contacts_button.png";
3922 border: BUTTON_CONTACT_BG_BORDER_INC;
3926 description { state: "clicked" 0.0;
3927 inherit: "default" 0.0;
3928 image.normal: "00_contacts_button_press.png";
3930 description { state: "disabled" 0.0;
3931 inherit: "default" 0.0;
3932 image.normal: "00_contacts_button_dim.png";
3934 description { state: "focused" 0.0;
3935 inherit: "default" 0.0;
3936 image.normal: "00_contacts_button_press.png";
3939 part { name: "focus_image";
3943 description { state: "default" 0.0;
3945 rel1.to : "button_image";
3946 rel2.to : "button_image";
3948 normal: "00_contacts_button_focus.png";
3949 border: BUTTON_CONTACT_BG_BORDER_INC;
3953 description { state: "focused" 0.0;
3954 inherit: "default" 0.0;
3958 part { name: "padding.left";
3961 description { state: "default" 0.0;
3963 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3973 part { name: "padding.right";
3976 description { state: "default" 0.0;
3978 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3988 part { name: "elm.text";
3992 description { state: "default" 0.0;
3996 style: "btn_base_multibuttonentry";
4000 description { state: "visible" 0.0;
4001 inherit: "default" 0.0;
4005 description { state: "clicked" 0.0;
4006 inherit: "default" 0.0;
4010 style: "btn_base_multibuttonentry_pressed";
4013 description { state: "disabled" 0.0;
4014 inherit: "default" 0.0;
4016 description { state: "disabled_visible" 0.0;
4017 inherit: "default" 0.0;
4020 style: "btn_base_multibuttonentry_dim";
4024 description { state: "focused" 0.0;
4025 inherit: "default" 0.0;
4028 style: "btn_base_multibuttonentry_focus";
4033 part { name: "over1";
4036 description { state: "default" 0.0;
4037 rel2.relative: 1.0 0.5;
4041 part { name: "over2";
4044 ignore_flags: ON_HOLD;
4045 description { state: "default" 0.0;
4046 rel1.to: "button_image";
4047 rel2.to: "button_image";
4051 part { name: "over3";
4054 description { state: "default" 0.0;
4055 rel1.to: "button_image";
4056 rel2.to: "button_image";
4060 part { name: "disabler";
4062 description { state: "default" 0.0;
4063 rel1.to: "button_image";
4064 rel2.to: "button_image";
4068 description { state: "disabled" 0.0;
4069 inherit: "default" 0.0;
4075 program { name: "button_click";
4076 signal: "mouse,down,1";
4078 action: SIGNAL_EMIT "elm,action,press" "";
4079 after: "button_click_anim";
4081 program { name: "button_click_anim";
4082 action: STATE_SET "clicked" 0.0;
4083 target: "button_image";
4086 program { name: "button_double_click";
4087 signal: "mouse,down,1,double";
4089 after: "button_click_anim";
4091 program { name: "button_unpress";
4092 action: SIGNAL_EMIT "elm,action,unpress" "";
4094 program { name: "button_mouseout_clicked";
4095 signal: "mouse,up,1";
4100 get_state(PART:"elm.text", st, 30, vl);
4101 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4103 emit("elm,action,default,text,set", "");
4104 set_state(PART:"elm.text", "visible", 0.0);
4106 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4107 set_state(PART:"button_image", "default", 0.0);
4109 after: button_unpress;
4111 program { name: "touch_snd";
4112 signal: "mouse,clicked,1";
4114 action: PLAY_SAMPLE "touch_sound" 1.0;
4115 after: button_unclick3;
4117 program { name: "button_unclick3";
4118 action: SIGNAL_EMIT "elm,action,click" "";
4120 program { name: "text_show";
4121 signal: "elm,state,text,visible";
4124 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4125 set_state(PART:"elm.text", "visible", 0.0);
4127 set_state(PART:"elm.text", "disabled_visible", 0.0);
4130 program { name: "text_hide";
4131 signal: "elm,state,text,hidden";
4133 action: STATE_SET "default" 0.0;
4136 program { name: "disable";
4137 signal: "elm,state,disabled";
4139 action: STATE_SET "disabled" 0.0;
4140 target: "button_image";
4142 after: "disable_text";
4144 program { name: "disable_text";
4148 get_state(PART:"elm.text", st, 30, vl);
4149 if (!strcmp(st, "visible"))
4150 set_state(PART:"elm.text", "disabled_visible", 0.0);
4152 set_state(PART:"elm.text", "disabled", 0.0);
4153 set_int(button_state, BUTTON_STATE_DISABLED);
4156 program { name: "enable";
4157 signal: "elm,state,enabled";
4159 action: STATE_SET "default" 0.0;
4160 target: "button_image";
4162 after: "enable_text";
4164 program { name: "enable_text";
4168 get_state(PART:"elm.text", st, 30, vl);
4169 if (!strcmp(st, "disabled_visible"))
4170 set_state(PART:"elm.text", "visible", 0.0);
4172 set_state(PART:"elm.text", "default", 0.0);
4173 set_int(button_state, BUTTON_STATE_ENABLED);
4176 program { name: "action_focus";
4177 signal: "elm,action,focus_highlight,show";
4179 action: STATE_SET "focused" 0.0;
4180 target: "focus_image";
4182 program { name: "action_unfocus";
4183 signal: "elm,action,focus_highlight,hide";
4185 action: STATE_SET "default" 0.0;
4186 target: "focus_image";
4191 ///////////////////////////////////////////////////////////////////////////////////////
4192 group { name: "elm/button/base/naviframe/back_btn/default";
4193 alias: "elm/button/base/naviframe/prev_btn/default";
4194 alias: "elm/button/base/naviframe/end_btn/default";
4196 item: "focus_highlight" "on";
4199 image: "00_icon_back.png" COMP;
4200 image: "00_icon_SIP_close.png" COMP;
4201 image: "00_icon_focus.png" COMP;
4204 part { name: "button_image";
4207 description { state: "default" 0.0;
4208 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4209 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4212 description { state: "landscape" 0.0;
4213 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4214 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4218 part { name: "focus_image";
4222 description { state: "default" 0.0;
4224 rel1.to : "button_image";
4225 rel2.to : "button_image";
4227 normal: "00_icon_focus.png";
4231 description { state: "focused" 0.0;
4232 inherit: "default" 0.0;
4236 part { name: "back_button";
4239 clip_to: "back_button.clipper";
4240 description { state: "default" 0.0;
4241 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4242 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4244 rel1.to: "button_image";
4245 rel2.to: "button_image";
4246 image.normal: "00_icon_back.png";
4248 description { state: "compress" 0.0;
4249 inherit: "default" 0.0;
4250 image.normal: "00_icon_SIP_close.png";
4253 part { name: "back_button.clipper";
4255 description { state: "default" 0.0;
4256 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4258 description { state: "clicked" 0.0;
4259 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4261 description { state: "disabled" 0.0;
4262 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4265 part { name: "over2";
4267 ignore_flags: ON_HOLD;
4268 description { state: "default" 0.0;
4272 part { name: "over3";
4275 description { state: "default" 0.0;
4279 part { name: "disabler";
4281 description { state: "default" 0.0;
4285 description { state: "disabled" 0.0;
4286 inherit: "default" 0.0;
4292 program { name: "button_click";
4293 signal: "mouse,down,1";
4295 action: SIGNAL_EMIT "elm,action,press" "";
4296 after: "button_click_anim";
4298 program { name: "button_click_anim";
4300 set_state(PART:"back_button.clipper", "clicked", 0.0);
4303 program { name: "button_double_click";
4304 signal: "mouse,down,1,double";
4306 after: "button_click_anim";
4308 program { name: "button_unclick";
4309 signal: "mouse,up,1";
4311 action: SIGNAL_EMIT "elm,action,unpress" "";
4312 after: "button_unclick_anim";
4314 program { name: "button_unclick_anim";
4316 set_state(PART:"back_button.clipper", "default", 0.0);
4319 program { name: "touch_snd";
4320 signal: "mouse,clicked,1";
4322 action: PLAY_SAMPLE "touch_sound" 1.0;
4323 after: button_unclick3;
4325 program { name: "button_unclick3";
4326 action: SIGNAL_EMIT "elm,action,click" "";
4328 program { name: "disable";
4329 signal: "elm,state,disabled";
4332 set_state(PART:"back_button.clipper", "disabled", 0.0);
4335 program { name: "enable";
4336 signal: "elm,state,enabled";
4339 set_state(PART:"back_button.clipper", "default", 0.0);
4342 program { name: "change_to_landscape";
4343 signal: "elm,state,landscape";
4345 action: STATE_SET "landscape" 0.0;
4346 target: "button_image";
4348 program { name: "change_to_portrait";
4349 signal: "elm,state,portrait";
4351 action: STATE_SET "default" 0.0;
4352 target: "button_image";
4354 program { name: "landscape_mode";
4356 signal: "elm,state,orient,90";
4357 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4359 program { name: "landscape_mode2";
4361 signal: "elm,state,orient,270";
4362 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4364 program { name: "portrait_mode";
4366 signal: "elm,state,orient,0";
4367 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4369 program { name: "portrait_mode2";
4371 signal: "elm,state,orient,180";
4372 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4374 program { name: "display_compress_mode";
4375 signal: "elm,state,display,compress";
4377 action: STATE_SET "compress" 0.0;
4378 target: "back_button";
4380 program { name: "display_default_mode";
4381 signal: "elm,state,display,default";
4383 action: STATE_SET "default" 0.0;
4384 target: "back_button";
4386 program { name: "action_focus";
4387 signal: "elm,action,focus_highlight,show";
4389 action: STATE_SET "focused" 0.0;
4390 target: "focus_image";
4392 program { name: "action_unfocus";
4393 signal: "elm,action,focus_highlight,hide";
4395 action: STATE_SET "default" 0.0;
4396 target: "focus_image";
4401 ////////////////////////////////////////////////////////////////////
4402 group { name: "elm/button/base/naviframe/title_icon";
4404 item: "focus_highlight" "on";
4407 image: "00_icon_focus.png" COMP;
4410 part { name: "button_image";
4413 description { state: "default" 0.0;
4415 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4416 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4418 description { state: "landscape" 0.0;
4420 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4421 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4424 part { name: "focus_image";
4428 description { state: "default" 0.0;
4430 rel1.to : "button_image";
4431 rel2.to : "button_image";
4433 normal: "00_icon_focus.png";
4437 description { state: "focused" 0.0;
4438 inherit: "default" 0.0;
4442 part { name: "elm.swallow.content";
4445 clip_to: "elm.icon.clipper";
4446 description { state: "default" 0.0;
4448 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4450 rel1 { to: "button_image"; }
4451 rel2 { to: "button_image"; }
4453 description { state: "visible" 0.0;
4454 inherit: "default" 0.0;
4458 part { name: "elm.icon.clipper";
4460 description { state: "default" 0.0;
4462 description { state: "clicked" 0.0;
4464 description { state: "disabled" 0.0;
4465 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4468 part { name: "elm.swallow.content.proxy_shadow";
4471 clip_to: "elm.icon.proxy_shadow.clipper";
4472 description { state: "default" 0.0;
4473 source: "elm.swallow.content";
4474 rel1 { to: "elm.swallow.content"; offset: 0 2; }
4475 rel2 { to: "elm.swallow.content"; offset: -1 1; }
4477 description { state: "clicked" 0.0;
4478 inherit: "default" 0.0;
4482 description { state: "disabled" 0.0;
4486 part { name: "elm.icon.proxy_shadow.clipper";
4488 description { state: "default" 0.0;
4489 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_SHADOW_COLOR_INC;
4491 description { state: "clicked" 0.0;
4492 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_SHADOW_COLOR_INC;
4494 description { state: "disabled" 0.0;
4498 part { name: "elm.swallow.content.proxy";
4501 clip_to: "elm.icon.proxy.clipper";
4502 description { state: "default" 0.0;
4503 source: "elm.swallow.content";
4504 rel1 { to: "elm.swallow.content"; }
4505 rel2 { to: "elm.swallow.content"; }
4508 part { name: "elm.icon.proxy.clipper";
4510 description { state: "default" 0.0;
4511 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4513 description { state: "clicked" 0.0;
4514 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4516 description { state: "disabled" 0.0;
4520 part { name: "over2";
4522 ignore_flags: ON_HOLD;
4523 description { state: "default" 0.0;
4527 part { name: "over3";
4530 description { state: "default" 0.0;
4534 part { name: "disabler";
4536 description { state: "default" 0.0;
4540 description { state: "disabled" 0.0;
4541 inherit: "default" 0.0;
4547 program { name: "button_click";
4548 signal: "mouse,down,1";
4550 action: SIGNAL_EMIT "elm,action,press" "";
4551 after: "button_click_anim";
4553 program { name: "button_click_anim";
4555 set_state(PART:"elm.icon.proxy_shadow.clipper", "clicked", 0.0);
4556 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
4557 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
4558 set_state(PART:"elm.swallow.content.proxy_shadow", "clicked", 0.0);
4561 program { name: "button_double_click";
4562 signal: "mouse,down,1,double";
4564 after: "button_click_anim";
4566 program { name: "button_unpress";
4567 action: SIGNAL_EMIT "elm,action,unpress" "";
4569 program { name: "button_mouseout_clicked";
4570 signal: "mouse,up,1";
4573 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4574 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4575 set_state(PART:"elm.icon.clipper", "default", 0.0);
4576 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4578 after: button_unpress;
4580 program { name: "touch_snd";
4581 signal: "mouse,clicked,1";
4583 action: PLAY_SAMPLE "touch_sound" 1.0;
4584 after: button_unclick3;
4586 program { name: "button_unclick3";
4587 action: SIGNAL_EMIT "elm,action,click" "";
4589 program { name: "icon_show";
4590 signal: "elm,state,icon,visible";
4592 action: STATE_SET "visible" 0.0;
4593 target: "elm.swallow.content";
4595 program { name: "icon_hide";
4596 signal: "elm,state,icon,hidden";
4598 action: STATE_SET "default" 0.0;
4599 target: "elm.swallow.content";
4601 program { name: "disable";
4602 signal: "elm,state,disabled";
4605 set_state(PART:"disabler", "disabled", 0.0);
4606 set_state(PART:"elm.icon.proxy_shadow.clipper", "disabled", 0.0);
4607 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
4608 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
4609 set_state(PART:"elm.swallow.content.proxy_shadow", "disabled", 0.0);
4612 program { name: "enable";
4613 signal: "elm,state,enabled";
4616 set_state(PART:"disabler", "default", 0.0);
4617 set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4618 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4619 set_state(PART:"elm.icon.clipper", "default", 0.0);
4620 set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4623 program { name: "change_to_landscape";
4624 signal: "elm,state,landscape";
4626 action: STATE_SET "landscape" 0.0;
4627 target: "button_image";
4629 program { name: "change_to_portrait";
4630 signal: "elm,state,portrait";
4632 action: STATE_SET "default" 0.0;
4633 target: "button_image";
4635 program { name: "landscape_mode";
4637 signal: "elm,state,orient,90";
4638 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4640 program { name: "landscape_mode2";
4642 signal: "elm,state,orient,270";
4643 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4645 program { name: "portrait_mode";
4647 signal: "elm,state,orient,0";
4648 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4650 program { name: "portrait_mode2";
4652 signal: "elm,state,orient,180";
4653 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4655 program { name: "action_focus";
4656 signal: "elm,action,focus_highlight,show";
4658 action: STATE_SET "focused" 0.0;
4659 target: "focus_image";
4661 program { name: "action_unfocus";
4662 signal: "elm,action,focus_highlight,hide";
4664 action: STATE_SET "default" 0.0;
4665 target: "focus_image";
4670 ////////////////////////////////////////////////////////////////////
4671 group { name: "elm/button/base/naviframe/title_text";
4673 image: "00_title_press.png" COMP;
4676 public landscape = 0;
4677 public disabled = 0;
4680 style { name: "btn_naviframe_title_text";
4681 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4686 style { name: "btn_naviframe_title_text_disabled";
4687 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4692 style { name: "btn_naviframe_title_text_pressed";
4693 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4700 part { name: "button_bg";
4703 description { state: "default" 0.0;
4705 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
4706 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
4708 description { state: "landscape" 0.0;
4710 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
4711 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
4714 part { name: "button_image";
4717 description { state: "default" 0.0;
4719 rel1 { to: "button_bg"; }
4720 rel2 { to: "button_bg"; }
4722 description { state: "clicked" 0.0;
4723 inherit: "default" 0.0;
4726 normal: "00_title_press.png";
4727 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4731 description { state: "disabled" 0.0;
4732 inherit: "default" 0.0;
4735 part { name: "left_padding";
4738 description { state: "default" 0.0;
4740 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4741 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4744 rel1 { relative: 0.0 0.0; to: "button_bg"; }
4745 rel2 { relative: 0.0 1.0; to: "button_bg"; }
4748 part { name: "right_padding";
4751 description { state: "default" 0.0;
4753 min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4754 max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4757 rel1 { relative: 1.0 0.0; to: "button_bg"; }
4758 rel2 { relative: 1.0 1.0; to: "button_bg"; }
4761 part { name: "elm.text";
4765 description { state: "default" 0.0;
4766 min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4767 max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4768 rel1 { relative: 1.0 0.0; to: "left_padding"; }
4769 rel2 { relative: 0.0 1.0; to: "right_padding"; }
4771 style: "btn_naviframe_title_text";
4772 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4776 description { state: "disabled" 0.0;
4777 inherit: "default" 0.0;
4779 style: "btn_naviframe_title_text_disabled";
4780 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4784 description { state: "pressed" 0.0;
4785 inherit: "default" 0.0;
4787 style: "btn_naviframe_title_text_pressed";
4788 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4792 description { state: "landscape" 0.0;
4793 inherit: "default" 0.0;
4794 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4795 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4797 description { state: "landscape_disabled" 0.0;
4798 inherit: "landscape" 0.0;
4800 style: "btn_naviframe_title_text_disabled";
4801 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4805 description { state: "landscape_pressed" 0.0;
4806 inherit: "landscape" 0.0;
4808 style: "btn_naviframe_title_text_pressed";
4809 size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4814 part { name: "over2";
4816 ignore_flags: ON_HOLD;
4817 description { state: "default" 0.0;
4821 part { name: "over3";
4824 description { state: "default" 0.0;
4828 part { name: "disabler";
4830 description { state: "default" 0.0;
4834 description { state: "disabled" 0.0;
4835 inherit: "default" 0.0;
4841 program { name: "button_click";
4842 signal: "mouse,down,1";
4844 action: SIGNAL_EMIT "elm,action,press" "";
4845 after: "button_click_anim";
4847 program { name: "button_click_anim";
4849 set_state(PART:"button_image", "clicked", 0.0);
4851 if (get_int(landscape))
4852 set_state(PART:"elm.text", "landscape_pressed", 0.0);
4854 set_state(PART:"elm.text", "pressed", 0.0);
4857 program { name: "button_double_click";
4858 signal: "mouse,down,1,double";
4860 after: "button_click_anim";
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";
4870 set_state(PART:"button_image", "default", 0.0);
4872 if (get_int(landscape))
4873 set_state(PART:"elm.text", "landscape", 0.0);
4875 set_state(PART:"elm.text", "default", 0.0);
4878 program { name: "touch_snd";
4879 signal: "mouse,clicked,1";
4881 action: PLAY_SAMPLE "touch_sound" 1.0;
4882 after: "button_unclick3";
4884 program { name: "button_unclick3";
4885 action: SIGNAL_EMIT "elm,action,click" "";
4887 program { name: "disable";
4888 signal: "elm,state,disabled";
4891 set_int(disabled, 1);
4892 set_state(PART:"disabler", "disabled", 0.0);
4893 set_state(PART:"button_image", "disabled", 0.0);
4895 if (get_int(landscape))
4896 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4898 set_state(PART:"elm.text", "disabled", 0.0);
4901 program { name: "enable";
4902 signal: "elm,state,enabled";
4905 set_int(disabled, 0);
4906 set_state(PART:"disabler", "default", 0.0);
4907 set_state(PART:"button_image", "default", 0.0);
4909 if (get_int(landscape))
4910 set_state(PART:"elm.text", "landscape", 0.0);
4912 set_state(PART:"elm.text", "default", 0.0);
4915 program { name: "change_to_landscape";
4916 signal: "elm,state,landscape";
4919 set_int(landscape, 1);
4920 set_state(PART:"button_bg", "landscape", 0.0);
4922 if (get_int(disabled))
4923 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4925 set_state(PART:"elm.text", "landscape", 0.0);
4928 program { name: "change_to_portrait";
4929 signal: "elm,state,portrait";
4932 set_int(landscape, 0);
4933 set_state(PART:"button_bg", "default", 0.0);
4935 if (get_int(disabled))
4936 set_state(PART:"elm.text", "disabled", 0.0);
4938 set_state(PART:"elm.text", "default", 0.0);
4941 program { name: "landscape_mode";
4943 signal: "elm,state,orient,90";
4944 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4946 program { name: "landscape_mode2";
4948 signal: "elm,state,orient,270";
4949 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4951 program { name: "portrait_mode";
4953 signal: "elm,state,orient,0";
4954 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4956 program { name: "portrait_mode2";
4958 signal: "elm,state,orient,180";
4959 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4964 /////////////////////////////////////////////////////////////////////////////////////////
4965 group { name: "elm/button/base/naviframe/more/default";
4967 item: "focus_highlight" "on";
4970 image: "00_icon_more.png" COMP;
4971 image: "00_icon_focus.png" COMP;
4974 part { name: "button_image";
4977 description { state: "default" 0.0;
4978 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4979 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4982 description { state: "landscape" 0.0;
4983 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4984 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4988 part { name: "focus_image";
4992 description { state: "default" 0.0;
4994 rel1.to : "button_image";
4995 rel2.to : "button_image";
4997 normal: "00_icon_focus.png";
5001 description { state: "focused" 0.0;
5002 inherit: "default" 0.0;
5006 part { name: "more_image";
5009 clip_to: "more_image.clipper";
5010 description { state: "default" 0.0;
5011 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5012 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5014 rel1.to: "button_image";
5015 rel2.to: "button_image";
5016 image.normal: "00_icon_more.png";
5019 part { name: "more_image.clipper";
5021 description { state: "default" 0.0;
5022 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5024 description { state: "clicked" 0.0;
5025 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5027 description { state: "disabled" 0.0;
5028 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5031 part { name: "over2";
5033 ignore_flags: ON_HOLD;
5034 description { state: "default" 0.0;
5038 part { name: "over3";
5041 description { state: "default" 0.0;
5045 part { name: "disabler";
5047 description { state: "default" 0.0;
5051 description { state: "disabled" 0.0;
5052 inherit: "default" 0.0;
5058 program { name: "button_click";
5059 signal: "mouse,down,1";
5061 action: SIGNAL_EMIT "elm,action,press" "";
5062 after: "button_click_anim";
5064 program { name: "button_click_anim";
5066 set_state(PART:"more_image.clipper", "clicked", 0.0);
5069 program { name: "button_double_click";
5070 signal: "mouse,down,1,double";
5072 after: "button_click_anim";
5074 program { name: "button_unclick";
5075 signal: "mouse,up,1";
5077 action: SIGNAL_EMIT "elm,action,unpress" "";
5078 after: "button_unclick_anim";
5080 program { name: "button_unclick_anim";
5082 set_state(PART:"more_image.clipper", "default", 0.0);
5085 program { name: "touch_snd";
5086 signal: "mouse,clicked,1";
5088 action: PLAY_SAMPLE "touch_sound" 1.0;
5089 after: button_unclick3;
5091 program { name: "button_unclick3";
5092 action: SIGNAL_EMIT "elm,action,click" "";
5094 program { name: "disable";
5095 signal: "elm,state,disabled";
5098 set_state(PART:"disabler", "disabled", 0.0);
5099 set_state(PART:"more_image.clipper", "disabled", 0.0);
5102 program { name: "enable";
5103 signal: "elm,state,enabled";
5106 set_state(PART:"disabler", "default", 0.0);
5107 set_state(PART:"more_image.clipper", "default", 0.0);
5110 program { name: "change_to_landscape";
5111 signal: "elm,state,landscape";
5113 action: STATE_SET "landscape" 0.0;
5114 target: "button_image";
5116 program { name: "change_to_portrait";
5117 signal: "elm,state,portrait";
5119 action: STATE_SET "default" 0.0;
5120 target: "button_image";
5122 program { name: "landscape_mode";
5124 signal: "elm,state,orient,90";
5125 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5127 program { name: "landscape_mode2";
5129 signal: "elm,state,orient,270";
5130 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5132 program { name: "portrait_mode";
5134 signal: "elm,state,orient,0";
5135 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5137 program { name: "portrait_mode2";
5139 signal: "elm,state,orient,180";
5140 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5142 program { name: "action_focus";
5143 signal: "elm,action,focus_highlight,show";
5145 action: STATE_SET "focused" 0.0;
5146 target: "focus_image";
5148 program { name: "action_unfocus";
5149 signal: "elm,action,focus_highlight,hide";
5151 action: STATE_SET "default" 0.0;
5152 target: "focus_image";
5157 ///////////////////////////////////////////////////////////////////////////////////////
5158 group { name: "elm/button/base/expandable_number";
5159 alias: "elm/button/base/text_only/expandable_number";
5161 item: "focus_highlight" "on";
5164 image: "00_button_01.png" COMP;
5165 image: "00_button_01_press.png" COMP;
5166 image: "00_button_01_dim.png" COMP;
5167 image: "00_arrow_expand.png" COMP;
5168 image: "00_button_01_focus.png" COMP;
5171 style { name: "btn_base_exapandable_number";
5172 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5177 style { name: "btn_base_exapandable_number_pressed";
5178 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5183 style { name: "btn_base_exapandable_number_dim";
5184 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_NUMBER_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5189 style { name: "btn_base_exapandable_number_focus";
5190 base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5197 public button_state = BUTTON_STATE_ENABLED;
5200 part { name: "button_image";
5202 description { state: "default" 0.0;
5203 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5204 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5206 normal: "00_button_01.png";
5207 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5211 description { state: "clicked" 0.0;
5212 inherit: "default" 0.0;
5213 image.normal: "00_button_01_press.png";
5215 description { state: "disabled" 0.0;
5216 inherit: "default" 0.0;
5217 image.normal: "00_button_01_dim.png";
5219 description { state: "focused" 0.0;
5220 inherit: "default" 0.0;
5221 image.normal: "00_button_01_press.png";
5224 part { name: "focus_image";
5228 description { state: "default" 0.0;
5229 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5230 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5232 rel1.to : "button_image";
5233 rel2.to : "button_image";
5235 normal: "00_button_01_focus.png";
5236 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5240 description { state: "focused" 0.0;
5241 inherit: "default" 0.0;
5245 part { name: "padding_left_top";
5249 description { state: "default" 0.0;
5252 rel2.relative: 0.0 0.0;
5253 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5257 part { name: "padding_right_bottom";
5261 description { state: "default" 0.0;
5264 rel1.relative: 1.0 1.0;
5265 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5269 part { name: "icon_rect";
5273 description { state: "default" 0.0;
5275 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5276 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5280 to_x: "padding_right_bottom";
5281 to_y: "padding_left_top";
5285 to: "padding_right_bottom";
5290 part { name: "arrow_expand";
5293 description { state: "default" 0.0;
5295 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5296 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5298 rel1.to: "icon_rect";
5299 rel2.to: "icon_rect";
5300 image.normal:"00_arrow_expand.png";
5303 part { name: "arrow_expand.shadow.proxy";
5306 clip_to: "arrow_expand.shadow.clipper";
5307 description { state: "default" 0.0;
5308 source: "arrow_expand";
5309 proxy.source_clip: 0;
5312 offset: BUTTON_EXPANDABLE_NORMAL_TOP_OFFSET_INC;
5316 offset: BUTTON_EXPANDABLE_NORMAL_BOTTOM_OFFSET_INC;
5319 description { state: "clicked" 0.0;
5320 inherit: "default" 0.0;
5323 offset: BUTTON_EXPANDABLE_PRESSED_TOP_OFFSET_INC;
5327 offset: BUTTON_EXPANDABLE_PRESSED_BOTTOM_OFFSET_INC;
5330 description { state: "disabled" 0.0;
5331 inherit: "default" 0.0;
5334 part { name: "arrow_expand.proxy";
5337 clip_to: "icon_clipper";
5338 description { state: "default" 0.0;
5339 source: "arrow_expand";
5340 proxy.source_clip: 0;
5341 rel1.to: "arrow_expand";
5342 rel2.to: "arrow_expand";
5345 part { name: "arrow_expand.shadow.clipper";
5348 description { state: "default" 0.0;
5349 color: BUTTON_EXPANDABLE_SHADOW_NORMAL_COLOR_INC;
5351 description { state: "clicked" 0.0;
5352 color: BUTTON_EXPANDABLE_SHADOW_PRESSED_COLOR_INC;
5354 description { state: "disabled" 0.0;
5355 color: BUTTON_EXPANDABLE_SHADOW_DISABLED_COLOR_INC;
5358 part { name: "icon_clipper";
5361 description { state: "default" 0.0;
5362 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
5364 description { state: "clicked" 0.0;
5365 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
5367 description { state: "disabled" 0.0;
5368 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
5371 part { name: "elm.text";
5375 description { state: "default" 0.0;
5376 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5377 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5381 to: "padding_left_top";
5385 to_x:"padding_left_top";
5386 to_y:"padding_right_bottom";
5390 style: "btn_base_exapandable_number";
5396 description { state: "visible" 0.0;
5397 inherit: "default" 0.0;
5399 description { state: "clicked" 0.0;
5400 inherit: "default" 0.0;
5402 style: "btn_base_exapandable_number_pressed";
5408 description { state: "disabled" 0.0;
5409 inherit: "default" 0.0;
5411 description { state: "disabled_visible" 0.0;
5412 inherit: "default" 0.0;
5414 style: "btn_base_exapandable_number_dim";
5417 description { state: "focused" 0.0;
5418 inherit: "default" 0.0;
5420 style: "btn_base_exapandable_number_focus";
5424 part { name: "over2";
5427 ignore_flags: ON_HOLD;
5428 description { state: "default" 0.0;
5432 part { name: "over3";
5435 description { state: "default" 0.0;
5439 part { name: "disabler";
5441 description { state: "default" 0.0;
5445 description { state: "disabled" 0.0;
5446 inherit: "default" 0.0;
5452 program { name: "button_click";
5453 signal: "mouse,down,1";
5455 action: SIGNAL_EMIT "elm,action,press" "";
5456 after: "button_click_anim";
5458 program { name: "button_click_anim";
5459 action: STATE_SET "clicked" 0.0;
5460 target: "button_image";
5461 target: "arrow_expand.shadow.proxy";
5462 target: "arrow_expand.shadow.clipper";
5463 target: "icon_clipper";
5464 after: "text_clicked";
5466 program { name: "text_clicked";
5470 get_state(PART:"elm.text", st, 30, vl);
5471 if (!strcmp(st, "visible"))
5472 set_state(PART:"elm.text", "clicked", 0.0);
5475 program { name: "button_double_click";
5476 signal: "mouse,down,1,double";
5478 after: "button_click_anim";
5480 program { name: "button_unpress";
5481 action: SIGNAL_EMIT "elm,action,unpress" "";
5483 program { name: "button_mouseout_clicked";
5484 signal: "mouse,up,1";
5487 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5489 set_state(PART:"button_image", "default", 0.0);
5490 set_state(PART:"elm.text", "visible", 0.0);
5491 set_state(PART:"arrow_expand.shadow.proxy", "visible", 0.0);
5492 set_state(PART:"arrow_expand.shadow.clipper", "visible", 0.0);
5493 set_state(PART:"icon_clipper", "default", 0.0);
5496 after: button_unpress;
5498 program { name: "touch_snd";
5499 signal: "mouse,clicked,1";
5501 action: PLAY_SAMPLE "touch_sound" 1.0;
5502 after: button_unclick3;
5504 program { name: "button_unclick3";
5505 action: SIGNAL_EMIT "elm,action,click" "";
5507 program { name: "text_show";
5508 signal: "elm,state,text,visible";
5511 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5512 set_state(PART:"elm.text", "visible", 0.0);
5514 set_state(PART:"elm.text", "disabled_visible", 0.0);
5517 program { name: "text_hide";
5518 signal: "elm,state,text,hidden";
5521 set_state(PART:"elm.text", "default", 0.0);
5524 program { name: "disable";
5525 signal: "elm,state,disabled";
5527 action: STATE_SET "disabled" 0.0;
5528 target: "button_image";
5530 target: "arrow_expand.shadow.proxy";
5531 target: "arrow_expand.shadow.clipper";
5532 target: "icon_clipper";
5533 after: "disable_text";
5535 program { name: "disable_text";
5539 get_state(PART:"elm.text", st, 30, vl);
5540 if (!strcmp(st, "visible"))
5541 set_state(PART:"elm.text", "disabled_visible", 0.0);
5543 set_state(PART:"elm.text", "disabled", 0.0);
5544 set_int(button_state, BUTTON_STATE_DISABLED);
5547 program { name: "enable";
5548 signal: "elm,state,enabled";
5550 action: STATE_SET "default" 0.0;
5551 target: "button_image";
5553 target: "arrow_expand.shadow.proxy";
5554 target: "arrow_expand.shadow.clipper";
5555 target: "icon_clipper";
5556 after: "enable_text";
5558 program { name: "enable_text";
5562 get_state(PART:"elm.text", st, 30, vl);
5563 if (!strcmp(st, "disabled_visible"))
5564 set_state(PART:"elm.text", "visible", 0.0);
5566 set_state(PART:"elm.text", "default", 0.0);
5567 set_int(button_state, BUTTON_STATE_ENABLED);
5570 program { name: "action_focus";
5571 signal: "elm,action,focus_highlight,show";
5573 action: STATE_SET "focused" 0.0;
5574 target: "focus_image";
5576 program { name: "action_unfocus";
5577 signal: "elm,action,focus_highlight,hide";
5579 action: STATE_SET "default" 0.0;
5580 target: "focus_image";
5585 //////////////////////////////////////////////////////////////////////////////////////
5586 group { name: "elm/button/base/editfield_clear";
5588 image: "00_edit_field_clear.png" COMP;
5595 description { state: "default" 0.0;
5596 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5597 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5600 part { name: "button_image";
5603 description { state: "default" 0.0;
5606 description { state: "clicked" 0.0;
5607 inherit: "default" 0.0;
5609 description { state: "disabled" 0.0;
5610 inherit: "default" 0.0;
5612 description { state: "focused" 0.0;
5613 inherit: "default" 0.0;
5616 part { name: "clear_button";
5619 clip_to: "clear_button.clipper";
5620 description { state: "default" 0.0;
5621 min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5622 max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5624 image.normal: "00_edit_field_clear.png";
5627 part { name: "clear_button.clipper";
5629 description { state: "default" 0.0;
5630 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5632 description { state: "clicked" 0.0;
5633 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5635 description { state: "disabled" 0.0;
5636 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5639 part { name: "over2";
5641 ignore_flags: ON_HOLD;
5642 description { state: "default" 0.0;
5646 part { name: "over3";
5649 description { state: "default" 0.0;
5653 part { name: "disabler";
5655 description { state: "default" 0.0;
5659 description { state: "disabled" 0.0;
5660 inherit: "default" 0.0;
5666 program { name: "button_click";
5667 signal: "mouse,down,1";
5669 action: SIGNAL_EMIT "elm,action,press" "";
5670 after: "button_click_anim";
5672 program { name: "button_click_anim";
5673 action: STATE_SET "clicked" 0.0;
5674 target: "button_image";
5675 target: "clear_button.clipper";
5677 program { name: "button_double_click";
5678 signal: "mouse,down,1,double";
5680 after: "button_click_anim";
5682 program { name: "button_unclick";
5683 signal: "mouse,up,1";
5685 action: SIGNAL_EMIT "elm,action,unpress" "";
5686 after: "button_unclick_anim";
5688 program { name: "button_unclick_anim";
5689 action: STATE_SET "default" 0.0;
5690 target: "button_image";
5691 target: "clear_button.clipper";
5693 program { name: "touch_snd";
5694 signal: "mouse,clicked,1";
5696 action: PLAY_SAMPLE "touch_sound" 1.0;
5697 after: button_unclick3;
5699 program { name: "button_unclick3";
5700 action: SIGNAL_EMIT "elm,action,click" "";
5702 program { name: "disable";
5703 signal: "elm,state,disabled";
5705 action: STATE_SET "disabled" 0.0;
5706 target: "button_image";
5708 target: "clear_button.clipper";
5710 program { name: "enable";
5711 signal: "elm,state,enabled";
5713 action: STATE_SET "default" 0.0;
5714 target: "button_image";
5716 target: "clear_button.clipper";
5721 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
5722 group { name: "elm/button/base/"style_name; \
5724 item: "focus_highlight" "on"; \
5727 image: image_normal COMP; \
5730 part { name: "elm.swallow.content"; \
5733 description { state: "default" 0.0; \
5736 part { name: "focus_image"; \
5740 description { state: "default" 0.0; \
5743 normal: image_normal; \
5748 description { state: "focused" 0.0; \
5749 inherit: "default" 0.0; \
5753 part { name: "over2"; \
5756 ignore_flags: ON_HOLD; \
5757 description { state: "default" 0.0; \
5761 part { name: "over3"; \
5764 description { state: "default" 0.0; \
5770 program { name: "button_click"; \
5771 signal: "mouse,down,1"; \
5773 action: SIGNAL_EMIT "elm,action,press" ""; \
5775 program { name: "button_unclick"; \
5776 signal: "mouse,up,1"; \
5778 action: SIGNAL_EMIT "elm,action,unpress" ""; \
5780 program { name: "button_click3"; \
5781 signal: "mouse,clicked,1"; \
5783 action: SIGNAL_EMIT "elm,action,click" ""; \
5785 program { name: "action_focus"; \
5786 signal: "elm,action,focus_highlight,show"; \
5788 action: STATE_SET "focused" 0.0; \
5789 target: "focus_image"; \
5791 program { name: "action_unfocus"; \
5792 signal: "elm,action,focus_highlight,hide"; \
5794 action: STATE_SET "default" 0.0; \
5795 target: "focus_image"; \
5800 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
5801 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
5802 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
5803 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
5805 ///////////////////////////////////////////////////////////////////////////////////
5806 group { name: "elm/button/base/transparent";
5808 item: "focus_highlight" "on";
5811 part { name: "elm.swallow.content";
5814 description { state: "default" 0.0;
5817 part { name: "over2";
5820 ignore_flags: ON_HOLD;
5821 description { state: "default" 0.0;
5825 part { name: "over3";
5828 description { state: "default" 0.0;
5834 program { name: "button_click";
5835 signal: "mouse,down,1";
5837 action: SIGNAL_EMIT "elm,action,press" "";
5839 program { name: "button_unclick";
5840 signal: "mouse,up,1";
5842 action: SIGNAL_EMIT "elm,action,unpress" "";
5844 program { name: "button_click3";
5845 signal: "mouse,clicked,1";
5847 action: SIGNAL_EMIT "elm,action,click" "";
5851 ///////////////////////////////////////////////////////////////////////////////////
5853 group { name: "elm/button/base/search_clear";
5854 inherit: "elm/button/base/editfield_clear";
5856 image: "00_field_btn_clear.png" COMP;
5863 description { state: "default" 0.0;
5864 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5865 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5868 part { name: "clear_button";
5871 clip_to: "clear_button.clipper";
5872 description { state: "default" 0.0;
5873 min: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5874 max: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5876 image.normal: "00_field_btn_clear.png";
5879 part { name: "clear_button.clipper";
5881 description { state: "default" 0.0;
5882 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5884 description { state: "clicked" 0.0;
5885 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5887 description { state: "disabled" 0.0;
5888 color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5894 #undef BUTTON_STATE_ENABLED
5895 #undef BUTTON_STATE_DISABLED
5896 #undef BUTTON_LANDSCAPE_DISABLED
5897 #undef BUTTON_LANDSCAPE_ENABLED