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
27 name: "touch_sound" AS_IS;
28 source: "S_Touch_30ms.wav";
32 ///////////////////////////////////////////////////////////////////////////////////////
33 group { name: "elm/button/base/style1";
34 alias: "elm/button/base/text_only/style1";
35 alias: "elm/button/base/center";
36 alias: "elm/button/base/icon_and_text/center";
37 alias: "elm/button/base/nocontents/search_button";
38 alias: "elm/button/base/style1/multiline";
40 image: "00_button_01.png" COMP;
41 image: "00_button_01_press.png" COMP;
42 image: "00_button_01_dim.png" COMP;
45 public button_state = BUTTON_STATE_ENABLED;
48 part { name: "button_image";
50 description { state: "default" 0.0;
52 normal: "00_button_01.png";
53 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
57 description { state: "clicked" 0.0;
58 inherit: "default" 0.0;
59 image.normal: "00_button_01_press.png";
61 description { state: "disabled" 0.0;
62 inherit: "default" 0.0;
63 image.normal: "00_button_01_dim.png";
65 description { state: "focused" 0.0;
66 inherit: "default" 0.0;
67 image.normal: "00_button_01_press.png";
70 part { name: "padding_left_top";
74 description { state: "default" 0.0;
76 rel2.relative: 0.0 0.0;
77 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
86 description { state: "default" 0.0;
87 min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
90 description { state: "visible" 0.0;
91 inherit: "default" 0.0;
92 min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
94 description { state: "icononly" 0.0;
95 inherit: "default" 0.0;
96 min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
99 part { name: "padding_right_bottom";
103 description { state: "default" 0.0;
105 rel1.relative: 1.0 1.0;
106 min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
111 part { name: "icon_rect";
115 description { state: "default" 0.0;
121 to: "padding_left_top";
125 to_x: "padding_left_top";
126 to_y: "padding_right_bottom";
130 description { state: "visible" 0.0;
131 inherit: "default" 0.0;
132 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
133 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
135 description { state: "icononly" 0.0;
136 inherit: "default" 0.0;
139 part { name: "padding_after_icon";
143 description { state: "default" 0.0; //when only icon or no icon is there
149 rel2.to: "icon_rect";
154 description { state: "visible" 0.0;
155 inherit: "default" 0.0;
156 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
158 description { state: "icononly" 0.0;
159 inherit: "default" 0.0;
162 part { name: "padding_before_text";
166 description { state: "default" 0.0; //when only icon or no icon is there
171 to_y: "padding_left_top";
176 to_y: "padding_right_bottom";
179 min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
183 part { name: "elm.swallow.content";
187 description { state: "default" 0.0;
192 to: "padding_left_top";
196 to_x: "padding_left_top";
197 to_y: "padding_right_bottom";
201 description { state: "visible" 0.0;
203 min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
204 max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
208 to_x: "padding_before_text";
209 to_y: "padding_left_top";
213 to_x: "padding_before_text";
214 to_y: "padding_right_bottom";
217 description { state: "icononly" 0.0;
218 min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
219 max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
222 part { name: "elm.text";
225 effect: SHADOW BOTTOM;
228 description { state: "default" 0.0;
232 to_x: "padding_after_icon";
233 to_y: "padding_left_top";
237 to: "padding_right_bottom";
239 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
240 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
242 font: "Tizen:style=Regular";
243 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
249 description { state: "visible" 0.0;
250 inherit: "default" 0.0;
253 description { state: "clicked" 0.0;
254 inherit: "default" 0.0;
256 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
257 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
259 description { state: "disabled" 0.0;
260 inherit: "default" 0.0;
262 description { state: "disabled_visible" 0.0;
263 inherit: "default" 0.0;
264 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
265 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
268 description { state: "focused" 0.0;
269 inherit: "default" 0.0;
271 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
274 part { name: "over2";
277 ignore_flags: ON_HOLD;
278 description { state: "default" 0.0;
282 part { name: "over3";
285 description { state: "default" 0.0;
289 part { name: "clipper";
291 description { state: "default" 0.0;
292 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
294 description { state: "disabled" 0.0;
295 inherit: "default" 0.0;
296 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
299 part { name: "disabler";
301 description { state: "default" 0.0;
305 description { state: "disabled" 0.0;
306 inherit: "default" 0.0;
312 program { name: "button_click";
313 signal: "mouse,down,1";
315 action: SIGNAL_EMIT "elm,action,press" "";
316 after: "button_click_anim";
318 program { name: "button_click_anim";
319 action: STATE_SET "clicked" 0.0;
320 target: "button_image";
321 after: "text_clicked";
323 program { name: "text_clicked";
327 get_state(PART:"elm.text", st, 30, vl);
328 if (!strcmp(st, "visible"))
329 set_state(PART:"elm.text", "clicked", 0.0);
332 program { name: "button_double_click";
333 signal: "mouse,down,1,double";
335 after: "button_click_anim";
337 program { name: "button_unpress";
338 action: SIGNAL_EMIT "elm,action,unpress" "";
340 program { name: "button_mouseout_clicked";
341 signal: "mouse,up,1";
346 get_state(PART:"elm.swallow.content", st, 30, vl);
347 if (strcmp(st, "icononly"))
349 emit("elm,action,default,text,set", "");
350 set_state(PART:"elm.text", "visible", 0.0);
352 if (get_int(button_state) != BUTTON_STATE_DISABLED)
353 set_state(PART:"button_image", "default", 0.0);
355 after: button_unpress;
357 program { name: "touch_snd";
358 signal: "mouse,clicked,1";
360 action: PLAY_SAMPLE "touch_sound" 1.0;
361 after: button_unclick3;
363 program { name: "button_unclick3";
364 action: SIGNAL_EMIT "elm,action,click" "";
366 program { name: "text_show";
367 signal: "elm,state,text,visible";
372 get_state(PART:"elm.swallow.content", st, 30, vl);
373 if (!strcmp(st, "icononly"))
375 set_state(PART:"elm.swallow.content", "visible", 0.0);
376 set_state(PART:"icon_rect", "visible", 0.0);
377 set_state(PART:"padding_after_icon", "visible", 0.0);
378 set_state(PART:"bg", "visible", 0.0);
380 if (get_int(button_state) != BUTTON_STATE_DISABLED)
381 set_state(PART:"elm.text", "visible", 0.0);
383 set_state(PART:"elm.text", "disabled_visible", 0.0);
386 program { name: "text_hide";
387 signal: "elm,state,text,hidden";
392 get_state(PART:"elm.swallow.content", st, 30, vl);
393 if (!strcmp(st, "visible"))
395 set_state(PART:"elm.swallow.content", "icononly", 0.0);
396 set_state(PART:"icon_rect", "icononly", 0.0);
397 set_state(PART:"padding_after_icon", "icononly", 0.0);
398 set_state(PART:"bg", "icononly", 0.0);
400 set_state(PART:"elm.text", "default", 0.0);
403 program { name: "icon_show";
404 signal: "elm,state,icon,visible";
409 get_state(PART:"elm.text", st, 30, vl);
410 if (!strcmp(st, "visible"))
412 set_state(PART:"elm.swallow.content", "visible", 0.0);
413 set_state(PART:"icon_rect", "visible", 0.0);
414 set_state(PART:"padding_after_icon", "visible", 0.0);
415 set_state(PART:"bg", "visible", 0.0);
419 set_state(PART:"elm.swallow.content", "icononly", 0.0);
420 set_state(PART:"icon_rect", "icononly", 0.0);
421 set_state(PART:"padding_after_icon", "icononly", 0.0);
422 set_state(PART:"bg", "icononly", 0.0);
426 program { name: "icon_hide";
427 signal: "elm,state,icon,hidden";
429 action: STATE_SET "default" 0.0;
430 target: "elm.swallow.content";
431 target: "padding_after_icon";
435 program { name: "disable";
436 signal: "elm,state,disabled";
438 action: STATE_SET "disabled" 0.0;
439 target: "button_image";
442 after: "disable_text";
444 program { name: "disable_text";
448 get_state(PART:"elm.text", st, 30, vl);
449 if (!strcmp(st, "visible"))
450 set_state(PART:"elm.text", "disabled_visible", 0.0);
452 set_state(PART:"elm.text", "disabled", 0.0);
453 set_int(button_state, BUTTON_STATE_DISABLED);
456 program { name: "enable";
457 signal: "elm,state,enabled";
459 action: STATE_SET "default" 0.0;
460 target: "button_image";
463 after: "enable_text";
465 program { name: "enable_text";
469 get_state(PART:"elm.text", st, 30, vl);
470 if (!strcmp(st, "disabled_visible"))
471 set_state(PART:"elm.text", "visible", 0.0);
473 set_state(PART:"elm.text", "default", 0.0);
474 set_int(button_state, BUTTON_STATE_ENABLED);
477 program { name: "focused";
478 //signal: "elm,action,focus";
480 action: STATE_SET "focused" 0.0;
481 target: "button_image";
484 program { name: "unfocused";
485 //signal: "elm,action,unfocus";
487 action: STATE_SET "default" 0.0;
488 target: "button_image";
489 after: "unfocus_text";
491 program { name: "unfocus_text";
492 action: STATE_SET "visible" 0.0;
498 //////////////////////////////////////////////////////////////
499 group { name: "elm/button/base/style1/auto_expand";
500 inherit: "elm/button/base/style1";
502 part { name: "elm.text";
505 effect: SHADOW BOTTOM;
508 description { state: "default" 0.0;
512 to_x: "padding_after_icon";
513 to_y: "padding_left_top";
517 to: "padding_right_bottom";
519 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
520 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
522 font: "Tizen:style=Regular";
523 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
529 description { state: "visible" 0.0;
530 inherit: "default" 0.0;
533 description { state: "clicked" 0.0;
534 inherit: "default" 0.0;
536 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
537 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
539 description { state: "disabled" 0.0;
540 inherit: "default" 0.0;
542 description { state: "disabled_visible" 0.0;
543 inherit: "default" 0.0;
544 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
545 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
548 description { state: "focused" 0.0;
549 inherit: "default" 0.0;
551 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
557 //////////////////////////////////////////////////////////////////////////////////////
558 group { name: "elm/button/base/datetime/ampm/default";
559 alias: "elm/button/base/datetime_ampm/default";
560 inherit: "elm/button/base/style1/auto_expand";
562 part { name: "button_image";
564 description { state: "default" 0.0;
566 normal: "00_button_01.png";
567 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
570 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
571 max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
573 description { state: "clicked" 0.0;
574 inherit: "default" 0.0;
575 image.normal: "00_button_01_press.png";
577 description { state: "disabled" 0.0;
578 inherit: "default" 0.0;
579 image.normal: "00_button_01_dim.png";
581 description { state: "focused" 0.0;
582 inherit: "default" 0.0;
583 image.normal: "00_button_01_press.png";
590 description { state: "default" 0.0;
594 description { state: "visible" 0.0;
595 inherit: "default" 0.0;
596 min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
598 description { state: "icononly" 0.0;
599 inherit: "default" 0.0;
602 part { name: "elm.text";
605 effect: SHADOW BOTTOM;
608 description { state: "default" 0.0;
611 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
612 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
613 text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
616 description { state: "visible" 0.0;
617 inherit: "default" 0.0;
620 description { state: "clicked" 0.0;
621 inherit: "default" 0.0;
623 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
624 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
626 description { state: "disabled" 0.0;
627 inherit: "default" 0.0;
629 description { state: "disabled_visible" 0.0;
630 inherit: "default" 0.0;
631 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
632 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
635 description { state: "focused" 0.0;
636 inherit: "default" 0.0;
638 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
644 ///////////////////////////////////////////////////////////////////////////////////////
645 group { name: "elm/button/base/style1/delete";
646 inherit: "elm/button/base/style1";
648 image: "00_button_01_delete.png" COMP;
649 image: "00_button_01_delete_dim.png" COMP;
650 image: "00_button_01_delete_press.png" COMP;
653 part { name: "button_image";
655 description { state: "default" 0.0;
657 normal: "00_button_01_delete.png";
658 border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
662 description { state: "clicked" 0.0;
663 inherit: "default" 0.0;
664 image.normal: "00_button_01_delete_press.png";
666 description { state: "disabled" 0.0;
667 inherit: "default" 0.0;
668 image.normal: "00_button_01_delete_dim.png";
670 description { state: "focused" 0.0;
671 inherit: "default" 0.0;
672 image.normal: "00_button_01_delete_press.png";
675 part { name: "elm.text";
678 effect: SHADOW BOTTOM;
681 description { state: "default" 0.0;
685 to_x: "padding_after_icon";
686 to_y: "padding_left_top";
690 to: "padding_right_bottom";
692 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
693 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
695 font: "Tizen:style=Regular";
696 size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
702 description { state: "visible" 0.0;
703 inherit: "default" 0.0;
706 description { state: "clicked" 0.0;
707 inherit: "default" 0.0;
709 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
710 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
712 description { state: "disabled" 0.0;
713 inherit: "default" 0.0;
715 description { state: "disabled_visible" 0.0;
716 inherit: "default" 0.0;
717 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
718 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
721 description { state: "focused" 0.0;
722 inherit: "default" 0.0;
724 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
730 ///////////////////////////////////////////////////////////////////////////////////////
731 group { name: "elm/button/base/search_button/text";
732 alias: "elm/button/base/searchbar/default";
733 inherit: "elm/button/base/style1";
735 image: "00_button_01.png" COMP;
736 image: "00_button_01_dim.png" COMP;
737 image: "00_button_01_press.png" COMP;
740 part { name: "button_image";
742 description { state: "default" 0.0;
744 normal: "00_button_01.png";
745 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
749 description { state: "clicked" 0.0;
750 inherit: "default" 0.0;
751 image.normal: "00_button_01_press.png";
753 description { state: "disabled" 0.0;
754 inherit: "default" 0.0;
755 image.normal: "00_button_01_dim.png";
757 description { state: "focused" 0.0;
758 inherit: "default" 0.0;
759 image.normal: "00_button_01_press.png";
766 description { state: "default" 0.0;
767 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
770 description { state: "visible" 0.0;
771 inherit: "default" 0.0;
772 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
774 description { state: "icononly" 0.0;
775 inherit: "default" 0.0;
776 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
779 part { name: "elm.text";
782 effect: SHADOW BOTTOM;
785 description { state: "default" 0.0;
789 to_x: "padding_after_icon";
790 to_y: "padding_left_top";
794 to: "padding_right_bottom";
796 color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
798 font: "Tizen:style=Regular";
799 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
805 description { state: "visible" 0.0;
806 inherit: "default" 0.0;
809 description { state: "clicked" 0.0;
810 inherit: "default" 0.0;
812 color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
813 color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
815 description { state: "disabled" 0.0;
816 inherit: "default" 0.0;
818 description { state: "disabled_visible" 0.0;
819 inherit: "default" 0.0;
820 color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
823 description { state: "focused" 0.0;
824 inherit: "default" 0.0;
826 color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
832 ///////////////////////////////////////////////////////////////////////////////////////
833 group { name: "elm/button/base/search_button/send";
834 inherit: "elm/button/base/style1";
836 image: "00_button_01_send.png" COMP;
837 image: "00_button_01_send_dim.png" COMP;
838 image: "00_button_01_send_press.png" COMP;
841 part { name: "button_image";
843 description { state: "default" 0.0;
845 normal: "00_button_01_send.png";
846 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
850 description { state: "clicked" 0.0;
851 inherit: "default" 0.0;
852 image.normal: "00_button_01_send_press.png";
854 description { state: "disabled" 0.0;
855 inherit: "default" 0.0;
856 image.normal: "00_button_01_send_dim.png";
858 description { state: "focused" 0.0;
859 inherit: "default" 0.0;
860 image.normal: "00_button_01_send_press.png";
867 description { state: "default" 0.0;
868 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
871 description { state: "visible" 0.0;
872 inherit: "default" 0.0;
873 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
875 description { state: "icononly" 0.0;
876 inherit: "default" 0.0;
877 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
880 part { name: "elm.text";
883 effect: SHADOW BOTTOM;
886 description { state: "default" 0.0;
890 to_x: "padding_after_icon";
891 to_y: "padding_left_top";
895 to: "padding_right_bottom";
897 color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
898 color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
900 font: "Tizen:style=Regular";
901 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
907 description { state: "visible" 0.0;
908 inherit: "default" 0.0;
911 description { state: "clicked" 0.0;
912 inherit: "default" 0.0;
914 color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
916 description { state: "disabled" 0.0;
917 inherit: "default" 0.0;
919 description { state: "disabled_visible" 0.0;
920 inherit: "default" 0.0;
921 color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
924 description { state: "focused" 0.0;
925 inherit: "default" 0.0;
927 color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
933 ///////////////////////////////////////////////////////////////////////////////////////
934 group { name: "elm/button/base/search_button/cancel";
935 inherit: "elm/button/base/style1";
937 image: "00_button_01_delete.png" COMP;
938 image: "00_button_01_delete_dim.png" COMP;
939 image: "00_button_01_delete_press.png" COMP;
942 part { name: "button_image";
944 description { state: "default" 0.0;
946 normal: "00_button_01_delete.png";
947 border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
951 description { state: "clicked" 0.0;
952 inherit: "default" 0.0;
953 image.normal: "00_button_01_delete_press.png";
955 description { state: "disabled" 0.0;
956 inherit: "default" 0.0;
957 image.normal: "00_button_01_delete_dim.png";
959 description { state: "focused" 0.0;
960 inherit: "default" 0.0;
961 image.normal: "00_button_01_delete_press.png";
968 description { state: "default" 0.0;
969 min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
972 description { state: "visible" 0.0;
973 inherit: "default" 0.0;
974 min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
976 description { state: "icononly" 0.0;
977 inherit: "default" 0.0;
978 min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
981 part { name: "elm.text";
984 effect: SHADOW BOTTOM;
987 description { state: "default" 0.0;
991 to_x: "padding_after_icon";
992 to_y: "padding_left_top";
996 to: "padding_right_bottom";
998 color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
999 color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1001 font: "Tizen:style=Regular";
1002 size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1005 text_class: "tizen";
1008 description { state: "visible" 0.0;
1009 inherit: "default" 0.0;
1012 description { state: "clicked" 0.0;
1013 inherit: "default" 0.0;
1015 color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1017 description { state: "disabled" 0.0;
1018 inherit: "default" 0.0;
1020 description { state: "disabled_visible" 0.0;
1021 inherit: "default" 0.0;
1022 color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1025 description { state: "focused" 0.0;
1026 inherit: "default" 0.0;
1028 color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1034 ///////////////////////////////////////////////////////////////////////////////////////
1035 group { name: "elm/button/base/style2";
1036 alias: "elm/button/base/text_only/style2";
1037 alias: "elm/button/base/style2/multiline";
1039 image: "00_button_01.png" COMP;
1040 image: "00_button_01_press.png" COMP;
1041 image: "00_button_01_dim.png" COMP;
1044 public button_state = BUTTON_STATE_ENABLED;
1047 part { name: "button_image";
1049 description { state: "default" 0.0;
1051 normal: "00_button_01.png";
1052 border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1056 description { state: "clicked" 0.0;
1057 inherit: "default" 0.0;
1058 image.normal: "00_button_01_press.png";
1060 description { state: "disabled" 0.0;
1061 inherit: "default" 0.0;
1062 image.normal: "00_button_01_dim.png";
1064 description { state: "focused" 0.0;
1065 inherit: "default" 0.0;
1066 image.normal: "00_button_01_press.png";
1069 part { name: "padding_left_top";
1073 description { state: "default" 0.0;
1075 rel2.relative: 0.0 0.0;
1076 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1085 description { state: "default" 0.0;
1086 min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1089 description { state: "visible" 0.0;
1090 inherit: "default" 0.0;
1091 min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1093 description { state: "icononly" 0.0;
1094 inherit: "default" 0.0;
1095 min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1098 part { name: "padding_right_bottom";
1102 description { state: "default" 0.0;
1104 rel1.relative: 1.0 1.0;
1105 min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1110 part { name: "icon_rect";
1114 description { state: "default" 0.0;
1120 to: "padding_left_top";
1124 to_x: "padding_left_top";
1125 to_y: "padding_right_bottom";
1129 description { state: "visible" 0.0;
1130 inherit: "default" 0.0;
1131 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1132 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1134 description { state: "icononly" 0.0;
1135 inherit: "default" 0.0;
1138 part { name: "padding_after_icon";
1142 description { state: "default" 0.0; //when only icon or no icon is there
1150 rel2.to: "icon_rect";
1153 description { state: "visible" 0.0;
1154 inherit: "default" 0.0;
1155 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1157 description { state: "icononly" 0.0;
1158 inherit: "default" 0.0;
1161 part { name: "padding_before_text";
1165 description { state: "default" 0.0; //when only icon or no icon is there
1170 to_y: "padding_left_top";
1175 to_y: "padding_right_bottom";
1178 min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1182 part { name: "elm.swallow.content";
1186 description { state: "default" 0.0;
1191 to: "padding_left_top";
1195 to_x: "padding_left_top";
1196 to_y: "padding_right_bottom";
1200 description { state: "visible" 0.0;
1202 min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1203 max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1207 to_x: "padding_before_text";
1208 to_y: "padding_left_top";
1212 to_x: "padding_before_text";
1213 to_y: "padding_right_bottom";
1216 description { state: "icononly" 0.0;
1217 min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1218 max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1221 part { name: "elm.text";
1226 effect: SHADOW BOTTOM;
1227 description { state: "default" 0.0;
1231 to_x: "padding_after_icon";
1232 to_y: "padding_left_top";
1236 to: "padding_right_bottom";
1238 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1239 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1241 font: "Tizen:style=Regular";
1242 size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1245 text_class: "tizen";
1248 description { state: "visible" 0.0;
1249 inherit: "default" 0.0;
1252 description { state: "clicked" 0.0;
1253 inherit: "default" 0.0;
1255 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1256 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1258 description { state: "disabled" 0.0;
1259 inherit: "default" 0.0;
1261 description { state: "disabled_visible" 0.0;
1262 inherit: "default" 0.0;
1263 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1264 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1267 description { state: "focused" 0.0;
1268 inherit: "default" 0.0;
1270 color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1273 part { name: "over2";
1276 ignore_flags: ON_HOLD;
1277 description { state: "default" 0.0;
1281 part { name: "over3";
1284 description { state: "default" 0.0;
1288 part { name: "clipper";
1290 description { state: "default" 0.0;
1291 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1293 description { state: "disabled" 0.0;
1294 inherit: "default" 0.0;
1295 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1298 part { name: "disabler";
1300 description { state: "default" 0.0;
1304 description { state: "disabled" 0.0;
1305 inherit: "default" 0.0;
1311 program { name: "button_click";
1312 signal: "mouse,down,1";
1314 action: SIGNAL_EMIT "elm,action,press" "";
1315 after: "button_click_anim";
1317 program { name: "button_click_anim";
1318 action: STATE_SET "clicked" 0.0;
1319 target: "button_image";
1320 after: "text_clicked";
1322 program { name: "text_clicked";
1326 get_state(PART:"elm.text", st, 30, vl);
1327 if (!strcmp(st, "visible"))
1328 set_state(PART:"elm.text", "clicked", 0.0);
1331 program { name: "button_double_click";
1332 signal: "mouse,down,1,double";
1334 after: "button_click_anim";
1336 program { name: "button_unpress";
1337 action: SIGNAL_EMIT "elm,action,unpress" "";
1339 program { name: "button_mouseout_clicked";
1340 signal: "mouse,up,1";
1345 get_state(PART:"elm.swallow.content", st, 30, vl);
1346 if (strcmp(st, "icononly"))
1348 emit("elm,action,default,text,set", "");
1349 set_state(PART:"elm.text", "visible", 0.0);
1351 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1352 set_state(PART:"button_image", "default", 0.0);
1354 after: button_unpress;
1356 program { name: "touch_snd";
1357 signal: "mouse,clicked,1";
1359 action: PLAY_SAMPLE "touch_sound" 1.0;
1360 after: button_unclick3;
1362 program { name: "button_unclick3";
1363 action: SIGNAL_EMIT "elm,action,click" "";
1365 program { name: "text_show";
1366 signal: "elm,state,text,visible";
1371 get_state(PART:"elm.swallow.content", st, 30, vl);
1372 if (!strcmp(st, "icononly"))
1374 set_state(PART:"elm.swallow.content", "visible", 0.0);
1375 set_state(PART:"icon_rect", "visible", 0.0);
1376 set_state(PART:"padding_after_icon", "visible", 0.0);
1377 set_state(PART:"bg", "visible", 0.0);
1379 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1380 set_state(PART:"elm.text", "visible", 0.0);
1382 set_state(PART:"elm.text", "disabled_visible", 0.0);
1385 program { name: "text_hide";
1386 signal: "elm,state,text,hidden";
1391 get_state(PART:"elm.swallow.content", st, 30, vl);
1392 if (!strcmp(st, "visible"))
1394 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1395 set_state(PART:"icon_rect", "icononly", 0.0);
1396 set_state(PART:"padding_after_icon", "icononly", 0.0);
1397 set_state(PART:"bg", "icononly", 0.0);
1399 set_state(PART:"elm.text", "default", 0.0);
1402 program { name: "icon_show";
1403 signal: "elm,state,icon,visible";
1408 get_state(PART:"elm.text", st, 30, vl);
1409 if (!strcmp(st, "visible"))
1411 set_state(PART:"elm.swallow.content", "visible", 0.0);
1412 set_state(PART:"icon_rect", "visible", 0.0);
1413 set_state(PART:"padding_after_icon", "visible", 0.0);
1414 set_state(PART:"bg", "visible", 0.0);
1418 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1419 set_state(PART:"icon_rect", "icononly", 0.0);
1420 set_state(PART:"padding_after_icon", "icononly", 0.0);
1421 set_state(PART:"bg", "icononly", 0.0);
1425 program { name: "icon_hide";
1426 signal: "elm,state,icon,hidden";
1428 action: STATE_SET "default" 0.0;
1429 target: "elm.swallow.content";
1430 target: "padding_after_icon";
1431 target: "icon_rect";
1434 program { name: "disable";
1435 signal: "elm,state,disabled";
1437 action: STATE_SET "disabled" 0.0;
1438 target: "button_image";
1441 after: "disable_text";
1443 program { name: "disable_text";
1447 get_state(PART:"elm.text", st, 30, vl);
1448 if (!strcmp(st, "visible"))
1449 set_state(PART:"elm.text", "disabled_visible", 0.0);
1451 set_state(PART:"elm.text", "disabled", 0.0);
1452 set_int(button_state, BUTTON_STATE_DISABLED);
1455 program { name: "enable";
1456 signal: "elm,state,enabled";
1458 action: STATE_SET "default" 0.0;
1459 target: "button_image";
1462 after: "enable_text";
1464 program { name: "enable_text";
1468 get_state(PART:"elm.text", st, 30, vl);
1469 if (!strcmp(st, "disabled_visible"))
1470 set_state(PART:"elm.text", "visible", 0.0);
1472 set_state(PART:"elm.text", "default", 0.0);
1473 set_int(button_state, BUTTON_STATE_ENABLED);
1476 program { name: "focused";
1477 //signal: "elm,action,focus";
1479 action: STATE_SET "focused" 0.0;
1480 target: "button_image";
1483 program { name: "unfocused";
1484 //signal: "elm,action,unfocus";
1486 action: STATE_SET "default" 0.0;
1487 target: "button_image";
1488 after: "unfocus_text";
1490 program { name: "unfocus_text";
1491 action: STATE_SET "visible" 0.0;
1497 ///////////////////////////////////////////////////////////////////////////////////////
1498 group { name: "elm/button/base/sweep";
1499 alias: "elm/button/base/text_only/sweep";
1500 alias: "elm/button/base/hidden";
1501 alias: "elm/button/base/sweep/multiline";
1503 image: "00_button_01.png" COMP;
1504 image: "00_button_01_press.png" COMP;
1505 image: "00_button_01_dim.png" COMP;
1508 public button_state = BUTTON_STATE_ENABLED;
1511 style { name: "btn_sweep_multiline";
1512 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1519 part { name: "button_image";
1521 description { state: "default" 0.0;
1522 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1524 normal: "00_button_01.png";
1525 border: BUTTON_SWEEP_BG_BORDER_INC;
1529 description { state: "clicked" 0.0;
1530 inherit: "default" 0.0;
1531 image.normal: "00_button_01_press.png";
1533 description { state: "disabled" 0.0;
1534 inherit: "default" 0.0;
1535 image.normal: "00_button_01_dim.png";
1537 description { state: "focused" 0.0;
1538 inherit: "default" 0.0;
1539 image.normal: "00_button_01_press.png";
1542 part { name: "padding_left_top";
1546 description { state: "default" 0.0;
1548 rel2.relative: 0.0 0.0;
1549 min: BUTTON_SWEEP_PADDING_MIN_INC;
1554 part { name: "padding_right_bottom";
1558 description { state: "default" 0.0;
1560 rel1.relative: 1.0 1.0;
1561 min: BUTTON_SWEEP_PADDING_MIN_INC;
1566 part { name: "icon_rect";
1570 description { state: "default" 0.0;
1571 min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1575 to_x: "elm.swallow.content";
1576 to_y: "padding_left_top";
1580 to_x: "elm.swallow.content";
1581 to_y: "padding_right_bottom";
1587 part { name: "padding_icon_text";
1591 description { state: "default" 0.0; //when only icon or no icon is there
1599 rel2.to: "icon_rect";
1602 description { state: "visible" 0.0; //when icon is visible
1603 inherit: "default" 0.0;
1604 min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1606 description { state: "icononly" 0.0;
1607 inherit: "default" 0.0;
1610 part { name: "elm.swallow.content";
1614 description { state: "default" 0.0;
1619 to: "padding_left_top";
1623 to_x: "padding_left_top";
1624 to_y: "padding_right_bottom";
1628 description { state: "visible" 0.0;
1629 inherit: "default" 0.0;
1630 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1631 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1634 aspect_preference: VERTICAL;
1636 description { state: "icononly" 0.0;
1637 min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1638 max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1641 part { name: "elm.text";
1644 effect: SHADOW BOTTOM;
1647 description { state: "default" 0.0;
1652 to_x: "padding_icon_text";
1653 to_y: "padding_left_top";
1657 to: "padding_right_bottom";
1659 color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1660 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1662 style: "btn_sweep_multiline";
1666 description { state: "visible" 0.0;
1667 inherit: "default" 0.0;
1669 min: BUTTON_SWEEP_TEXT_MIN_INC;
1671 description { state: "clicked" 0.0;
1672 inherit: "default" 0.0;
1675 color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1676 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1678 description { state: "disabled" 0.0;
1679 inherit: "default" 0.0;
1681 description { state: "disabled_visible" 0.0;
1682 inherit: "default" 0.0;
1683 color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1684 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1686 min: BUTTON_SWEEP_TEXT_MIN_INC;
1688 description { state: "focused" 0.0;
1689 inherit: "default" 0.0;
1692 color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1695 part { name: "over2";
1698 ignore_flags: ON_HOLD;
1699 description { state: "default" 0.0;
1703 part { name: "over3";
1706 description { state: "default" 0.0;
1710 part { name: "clipper";
1712 description { state: "default" 0.0;
1713 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1715 description { state: "disabled" 0.0;
1716 inherit: "default" 0.0;
1717 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1720 part { name: "disabler";
1722 description { state: "default" 0.0;
1726 description { state: "disabled" 0.0;
1727 inherit: "default" 0.0;
1733 program { name: "button_click";
1734 signal: "mouse,down,1";
1736 action: SIGNAL_EMIT "elm,action,press" "";
1737 after: "button_click_anim";
1739 program { name: "button_click_anim";
1740 action: STATE_SET "clicked" 0.0;
1741 target: "button_image";
1742 after: "text_clicked";
1744 program { name: "text_clicked";
1748 get_state(PART:"elm.text", st, 30, vl);
1749 if (!strcmp(st, "visible"))
1750 set_state(PART:"elm.text", "clicked", 0.0);
1753 program { name: "button_double_click";
1754 signal: "mouse,down,1,double";
1756 after: "button_click_anim";
1758 program { name: "button_unpress";
1759 action: SIGNAL_EMIT "elm,action,unpress" "";
1761 program { name: "button_mouseout_clicked";
1762 signal: "mouse,up,1";
1767 get_state(PART:"elm.swallow.content", st, 30, vl);
1768 if (strcmp(st, "icononly"))
1770 emit("elm,action,default,text,set", "");
1771 set_state(PART:"elm.text", "visible", 0.0);
1773 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1774 set_state(PART:"button_image", "default", 0.0);
1776 after: button_unpress;
1778 program { name: "touch_snd";
1779 signal: "mouse,clicked,1";
1781 action: PLAY_SAMPLE "touch_sound" 1.0;
1782 after: button_unclick3;
1784 program { name: "button_unclick3";
1785 action: SIGNAL_EMIT "elm,action,click" "";
1787 program { name: "text_show";
1788 signal: "elm,state,text,visible";
1793 get_state(PART:"elm.swallow.content", st, 30, vl);
1794 if (!strcmp(st, "icononly"))
1796 set_state(PART:"elm.swallow.content", "visible", 0.0);
1797 set_state(PART:"padding_icon_text", "visible", 0.0);
1799 if (get_int(button_state) != BUTTON_STATE_DISABLED)
1800 set_state(PART:"elm.text", "visible", 0.0);
1802 set_state(PART:"elm.text", "disabled_visible", 0.0);
1805 program { name: "text_hide";
1806 signal: "elm,state,text,hidden";
1811 get_state(PART:"elm.swallow.content", st, 30, vl);
1812 if (!strcmp(st, "visible"))
1814 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1815 set_state(PART:"padding_icon_text", "icononly", 0.0);
1817 set_state(PART:"elm.text", "default", 0.0);
1820 program { name: "icon_show";
1821 signal: "elm,state,icon,visible";
1826 get_state(PART:"elm.text", st, 30, vl);
1827 if (!strcmp(st, "visible"))
1829 set_state(PART:"elm.swallow.content", "visible", 0.0);
1830 set_state(PART:"padding_icon_text", "visible", 0.0);
1834 set_state(PART:"elm.swallow.content", "icononly", 0.0);
1835 set_state(PART:"padding_icon_text", "icononly", 0.0);
1839 program { name: "icon_hide";
1840 signal: "elm,state,icon,hidden";
1842 action: STATE_SET "default" 0.0;
1843 target: "elm.swallow.content";
1844 target: "padding_icon_text";
1846 program { name: "disable";
1847 signal: "elm,state,disabled";
1849 action: STATE_SET "disabled" 0.0;
1850 target: "button_image";
1853 after: "disable_text";
1855 program { name: "disable_text";
1859 get_state(PART:"elm.text", st, 30, vl);
1860 if (!strcmp(st, "visible"))
1861 set_state(PART:"elm.text", "disabled_visible", 0.0);
1863 set_state(PART:"elm.text", "disabled", 0.0);
1864 set_int(button_state, BUTTON_STATE_DISABLED);
1867 program { name: "enable";
1868 signal: "elm,state,enabled";
1870 action: STATE_SET "default" 0.0;
1871 target: "button_image";
1874 after: "enable_text";
1876 program { name: "enable_text";
1880 get_state(PART:"elm.text", st, 30, vl);
1881 if (!strcmp(st, "disabled_visible"))
1882 set_state(PART:"elm.text", "visible", 0.0);
1884 set_state(PART:"elm.text", "default", 0.0);
1885 set_int(button_state, BUTTON_STATE_ENABLED);
1888 program { name: "focused";
1889 //signal: "elm,action,focus";
1891 action: STATE_SET "focused" 0.0;
1892 target: "button_image";
1895 program { name: "unfocused";
1896 //signal: "elm,action,unfocus";
1898 action: STATE_SET "default" 0.0;
1899 target: "button_image";
1900 after: "unfocus_text";
1902 program { name: "unfocus_text";
1903 action: STATE_SET "visible" 0.0;
1909 ///////////////////////////////////////////////////////////////////////////////////////
1910 group { name: "elm/button/base/sweep/delete";
1911 inherit: "elm/button/base/sweep";
1912 alias: "elm/button/base/sweep/delete/multiline";
1914 image: "00_button_01_delete_press.png" COMP;
1915 image: "00_button_01_delete.png" COMP;
1916 image: "00_button_01_delete_dim.png" COMP;
1919 style { name: "btn_sweep_delete_multiline";
1920 base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1927 part { name: "button_image";
1929 description { state: "default" 0.0;
1930 min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1932 normal: "00_button_01_delete.png";
1933 border: BUTTON_SWEEP_BG_BORDER_INC;
1937 description { state: "clicked" 0.0;
1938 inherit: "default" 0.0;
1939 image.normal: "00_button_01_delete_press.png";
1941 description { state: "disabled" 0.0;
1942 inherit: "default" 0.0;
1943 image.normal: "00_button_01_delete_dim.png";
1945 description { state: "focused" 0.0;
1946 inherit: "default" 0.0;
1947 image.normal: "00_button_01_delete_press.png";
1950 part { name: "elm.text";
1953 effect: SHADOW BOTTOM;
1956 description { state: "default" 0.0;
1961 to_x: "padding_icon_text";
1962 to_y: "padding_left_top";
1966 to: "padding_right_bottom";
1968 color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1969 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1971 style: "btn_sweep_multiline";
1975 description { state: "visible" 0.0;
1976 inherit: "default" 0.0;
1978 min: BUTTON_SWEEP_TEXT_MIN_INC;
1980 description { state: "clicked" 0.0;
1981 inherit: "default" 0.0;
1984 color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1985 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1987 description { state: "disabled" 0.0;
1988 inherit: "default" 0.0;
1990 description { state: "disabled_visible" 0.0;
1991 inherit: "default" 0.0;
1992 color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1993 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1995 min: BUTTON_SWEEP_TEXT_MIN_INC;
1997 description { state: "focused" 0.0;
1998 inherit: "default" 0.0;
2001 color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2007 ///////////////////////////////////////////////////////////////////////////////////////
2008 group { name: "elm/button/base/popup_button/default";
2009 alias: "elm/button/base/popup_button/menustyle";
2010 alias: "elm/button/base/popup_button/liststyle";
2011 alias: "elm/button/base/popup_button/volumebarstyle";
2012 alias: "elm/button/base/popup_button/customstyle";
2013 alias: "elm/button/base/popup_button/verticalbuttonstyle";
2014 alias: "elm/button/base/popup_button/default/multiline";
2016 image: "00_button_01.png" COMP;
2017 image: "00_button_01_dim.png" COMP;
2018 image: "00_button_01_press.png" COMP;
2021 public button_state = BUTTON_STATE_ENABLED;
2024 part { name: "button_image";
2026 description { state: "default" 0.0;
2027 min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2029 normal: "00_button_01.png";
2030 border: BUTTON_POPUP_BG_BORDER_INC;
2034 description { state: "clicked" 0.0;
2035 inherit: "default" 0.0;
2036 image.normal: "00_button_01_press.png";
2038 description { state: "disabled" 0.0;
2039 inherit: "default" 0.0;
2040 image.normal: "00_button_01_dim.png";
2042 description { state: "focused" 0.0;
2043 inherit: "default" 0.0;
2044 image.normal: "00_button_01_press.png";
2047 part { name: "padding_left_top";
2051 description { state: "default" 0.0;
2053 rel2.relative: 0.0 0.0;
2054 min: BUTTON_POPUP_PADDING_MIN_INC;
2059 part { name: "padding_right_bottom";
2062 description { state: "default" 0.0;
2064 rel1.relative: 1.0 1.0;
2065 min: BUTTON_POPUP_PADDING_MIN_INC;
2070 part { name: "padding_icon_text";
2073 description { state: "default" 0.0; //when only icon or no icon is there
2077 to: "elm.swallow.content";
2079 rel2.to: "elm.swallow.content";
2084 description { state: "icononly" 0.0;
2085 inherit: "default" 0.0;
2087 description { state: "visible" 0.0; //when icon is visible
2088 inherit: "default" 0.0;
2089 min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2092 part { name: "elm.swallow.content";
2096 description { state: "default" 0.0;
2101 to: "padding_left_top";
2105 to_x: "padding_left_top";
2106 to_y: "padding_right_bottom";
2110 description { state: "visible" 0.0;
2111 inherit: "default" 0.0;
2115 aspect_preference: VERTICAL;
2117 description { state: "icononly" 0.0;
2118 inherit: "default" 0.0;
2119 min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2124 part { name: "elm.text";
2129 effect: SHADOW BOTTOM;
2130 description { state: "default" 0.0;
2134 to_x: "padding_icon_text";
2135 to_y: "padding_left_top";
2139 to: "padding_right_bottom";
2141 color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2142 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2144 font: "Tizen:style=Regular";
2145 size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2147 text_class: "tizen";
2150 description { state: "visible" 0.0;
2151 inherit: "default" 0.0;
2153 min: BUTTON_POPUP_TEXT_MIN_INC;
2155 description { state: "clicked" 0.0;
2156 inherit: "default" 0.0;
2159 color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2160 color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2162 description { state: "disabled" 0.0;
2163 inherit: "default" 0.0;
2165 description { state: "disabled_visible" 0.0;
2166 inherit: "default" 0.0;
2167 color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2168 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2170 min: BUTTON_POPUP_TEXT_MIN_INC;
2172 description { state: "focused" 0.0;
2173 inherit: "default" 0.0;
2176 color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2179 part { name: "over2";
2182 ignore_flags: ON_HOLD;
2183 description { state: "default" 0.0;
2187 part { name: "over3";
2190 description { state: "default" 0.0;
2194 part { name: "clipper";
2196 description { state: "default" 0.0;
2197 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2199 description { state: "disabled" 0.0;
2200 inherit: "default" 0.0;
2201 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2204 part { name: "disabler";
2206 description { state: "default" 0.0;
2210 description { state: "disabled" 0.0;
2211 inherit: "default" 0.0;
2217 program { name: "button_click";
2218 signal: "mouse,down,1";
2220 action: SIGNAL_EMIT "elm,action,press" "";
2221 after: "button_click_anim";
2223 program { name: "button_click_anim";
2224 action: STATE_SET "clicked" 0.0;
2225 target: "button_image";
2226 after: "text_clicked";
2228 program { name: "text_clicked";
2232 get_state(PART:"elm.text", st, 30, vl);
2233 if (!strcmp(st, "visible"))
2234 set_state(PART:"elm.text", "clicked", 0.0);
2237 program { name: "button_double_click";
2238 signal: "mouse,down,1,double";
2240 after: "button_click_anim";
2242 program { name: "button_unpress";
2243 action: SIGNAL_EMIT "elm,action,unpress" "";
2245 program { name: "button_mouseout_clicked";
2246 signal: "mouse,up,1";
2251 get_state(PART:"elm.swallow.content", st, 30, vl);
2252 if (strcmp(st, "icononly"))
2254 emit("elm,action,default,text,set", "");
2255 set_state(PART:"elm.text", "visible", 0.0);
2257 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2258 set_state(PART:"button_image", "default", 0.0);
2260 after: button_unpress;
2262 program { name: "touch_snd";
2263 signal: "mouse,clicked,1";
2265 action: PLAY_SAMPLE "touch_sound" 1.0;
2266 after: button_unclick3;
2268 program { name: "button_unclick3";
2269 action: SIGNAL_EMIT "elm,action,click" "";
2271 program { name: "text_show";
2272 signal: "elm,state,text,visible";
2277 get_state(PART:"elm.swallow.content", st, 30, vl);
2278 if (!strcmp(st, "icononly"))
2280 set_state(PART:"elm.swallow.content", "visible", 0.0);
2281 set_state(PART:"padding_icon_text", "visible", 0.0);
2283 if (get_int(button_state) != BUTTON_STATE_DISABLED)
2284 set_state(PART:"elm.text", "visible", 0.0);
2286 set_state(PART:"elm.text", "disabled_visible", 0.0);
2289 program { name: "text_hide";
2290 signal: "elm,state,text,hidden";
2295 get_state(PART:"elm.swallow.content", st, 30, vl);
2296 if (!strcmp(st, "visible"))
2298 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2299 set_state(PART:"padding_icon_text", "icononly", 0.0);
2301 set_state(PART:"elm.text", "default", 0.0);
2304 program { name: "icon_show";
2305 signal: "elm,state,icon,visible";
2310 get_state(PART:"elm.text", st, 30, vl);
2311 if (!strcmp(st, "visible"))
2313 set_state(PART:"elm.swallow.content", "visible", 0.0);
2314 set_state(PART:"padding_icon_text", "visible", 0.0);
2318 set_state(PART:"elm.swallow.content", "icononly", 0.0);
2319 set_state(PART:"padding_icon_text", "icononly", 0.0);
2323 program { name: "icon_hide";
2324 signal: "elm,state,icon,hidden";
2326 action: STATE_SET "default" 0.0;
2327 target: "elm.swallow.content";
2328 target: "padding_icon_text";
2330 program { name: "disable";
2331 signal: "elm,state,disabled";
2333 action: STATE_SET "disabled" 0.0;
2334 target: "button_image";
2337 after: "disable_text";
2339 program { name: "disable_text";
2343 get_state(PART:"elm.text", st, 30, vl);
2344 if (!strcmp(st, "visible"))
2345 set_state(PART:"elm.text", "disabled_visible", 0.0);
2347 set_state(PART:"elm.text", "disabled", 0.0);
2348 set_int(button_state, BUTTON_STATE_DISABLED);
2351 program { name: "enable";
2352 signal: "elm,state,enabled";
2354 action: STATE_SET "default" 0.0;
2355 target: "button_image";
2358 after: "enable_text";
2360 program { name: "enable_text";
2364 get_state(PART:"elm.text", st, 30, vl);
2365 if (!strcmp(st, "disabled_visible"))
2366 set_state(PART:"elm.text", "visible", 0.0);
2368 set_state(PART:"elm.text", "default", 0.0);
2369 set_int(button_state, BUTTON_STATE_ENABLED);
2372 program { name: "focused";
2373 //signal: "elm,action,focus";
2375 action: STATE_SET "focused" 0.0;
2376 target: "button_image";
2379 program { name: "unfocused";
2380 //signal: "elm,action,unfocus";
2382 action: STATE_SET "default" 0.0;
2383 target: "button_image";
2384 after: "unfocus_text";
2386 program { name: "unfocus_text";
2387 action: STATE_SET "visible" 0.0;
2393 ///////////////////////////////////////////////////////////////////////////////////////
2394 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2395 group { name: "elm/button/base/"style_name; \
2397 image: "00_circle_button.png" COMP; \
2398 image: "00_circle_button_press.png" COMP; \
2399 image: "00_circle_button_dim.png" COMP; \
2400 image: image_normal COMP; \
2401 image: image_press COMP; \
2404 part { name: "button_image"; \
2406 description { state: "default" 0.0; \
2407 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2408 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2409 image.normal: "00_circle_button.png"; \
2412 state: "clicked" 0.0; \
2413 inherit: "default" 0.0; \
2414 image.normal: "00_circle_button_press.png"; \
2417 state: "disabled" 0.0; \
2418 inherit: "default" 0.0; \
2419 image.normal: "00_circle_button_dim.png"; \
2422 part { name: "left_top_padding"; \
2425 description { state: "default" 0.0; \
2426 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2427 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2430 rel1.to: "button_image"; \
2431 rel2.to: "button_image"; \
2434 part { name: "right_bottom_padding"; \
2437 description { state: "default" 0.0; \
2438 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2439 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2443 relative: 1.0 1.0; \
2444 to: "button_image"; \
2446 rel2.to: "button_image"; \
2449 part { name: "button_center_part"; \
2451 clip_to: "icon_clipper"; \
2452 description { state: "default" 0.0; \
2453 min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2454 max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2455 image.normal: image_normal; \
2457 relative: 1.0 1.0; \
2458 to: "left_top_padding"; \
2461 relative: 0.0 0.0; \
2462 to: "right_bottom_padding"; \
2465 description { state: "clicked" 0.0; \
2466 inherit: "default"; \
2467 image.normal: image_press; \
2469 description { state: "disabled" 0.0; \
2470 inherit: "default"; \
2473 part { name: "icon_clipper"; \
2476 description { state: "default" 0.0; \
2477 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2479 description { state: "clicked" 0.0; \
2480 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2482 description { state: "disabled" 0.0; \
2483 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2486 part { name: "over1"; \
2488 ignore_flags: ON_HOLD; \
2489 description { state: "default" 0.0; \
2491 min: min_width min_height; \
2494 part { name: "over2"; \
2497 description { state: "default" 0.0; \
2501 part { name: "disabler"; \
2503 description { state: "default" 0.0; \
2507 description { state: "disabled" 0.0; \
2508 inherit: "default" 0.0; \
2514 program { name: "button_click"; \
2515 signal: "mouse,down,1"; \
2517 action: SIGNAL_EMIT "elm,action,press" ""; \
2518 after: "button_click_anim"; \
2520 program { name: "button_click_anim"; \
2521 action: STATE_SET "clicked" 0.0; \
2522 target: "button_image"; \
2523 target: "button_center_part"; \
2524 target: "icon_clipper"; \
2526 program { name: "button_double_click"; \
2527 signal: "mouse,down,1,double"; \
2529 after: "button_click_anim"; \
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: "button_center_part"; \
2541 target: "icon_clipper"; \
2543 program { name: "touch_snd"; \
2544 signal: "mouse,clicked,1"; \
2546 action: PLAY_SAMPLE "touch_sound" 1.0; \
2547 after: button_unclick3; \
2549 program { name: "button_unclick3"; \
2550 action: SIGNAL_EMIT "elm,action,click" ""; \
2552 program { name: "disable"; \
2553 signal: "elm,state,disabled"; \
2555 action: STATE_SET "disabled" 0.0; \
2556 target: "disabler"; \
2557 target: "button_image"; \
2558 target: "button_center_part"; \
2559 target: "icon_clipper"; \
2561 program { name: "enable"; \
2562 signal: "elm,state,enabled"; \
2564 action: STATE_SET "default" 0.0; \
2565 target: "disabler"; \
2566 target: "button_image"; \
2567 target: "button_center_part"; \
2568 target: "icon_clipper"; \
2573 ///////////////////////////////////////////////////////////////////////////////////////
2574 BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2576 ///////////////////////////////////////////////////////////////////////////////////////
2577 BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2579 ///////////////////////////////////////////////////////////////////////////////////////
2580 BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2582 ///////////////////////////////////////////////////////////////////////////////////////
2583 BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2585 ///////////////////////////////////////////////////////////////////////////////////////
2586 BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2588 ///////////////////////////////////////////////////////////////////////////////////////
2589 BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2591 ///////////////////////////////////////////////////////////////////////////////////////
2592 BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2594 ///////////////////////////////////////////////////////////////////////////////////////
2595 BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2597 ///////////////////////////////////////////////////////////////////////////////////////
2598 BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2600 ///////////////////////////////////////////////////////////////////////////////////////
2601 BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2603 ///////////////////////////////////////////////////////////////////////////////////////
2604 BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2606 ///////////////////////////////////////////////////////////////////////////////////////
2607 BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2609 ///////////////////////////////////////////////////////////////////////////////////////
2610 BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2612 ///////////////////////////////////////////////////////////////////////////////////////
2613 BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2615 ///////////////////////////////////////////////////////////////////////////////////////
2616 BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2618 ///////////////////////////////////////////////////////////////////////////////////////
2619 BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2621 ///////////////////////////////////////////////////////////////////////////////////////
2622 BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2624 ///////////////////////////////////////////////////////////////////////////////////////
2625 BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2627 ///////////////////////////////////////////////////////////////////////////////////////
2628 BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2630 ///////////////////////////////////////////////////////////////////////////////////////
2631 BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2632 ///////////////////////////////////////////////////////////////////////////////////////
2634 ///////////////////////////////////////////////////////////////////////////////////////
2635 BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2636 ///////////////////////////////////////////////////////////////////////////////////////
2638 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2639 group { name: "elm/button/base/"style_name; \
2640 inherit: "elm/button/base/info"; \
2642 image: "00_circle_button_delete.png" COMP; \
2643 image: "00_circle_button_delete_press.png" COMP; \
2644 image: "00_circle_button_delete_dim.png" COMP; \
2645 image: "00_button_warning.png" COMP; \
2646 image: "00_button_warning_press.png" COMP; \
2649 part { name: "button_image"; \
2651 description { state: "default" 0.0; \
2652 image.normal: "00_circle_button_delete.png"; \
2655 state: "clicked" 0.0; \
2656 inherit: "default" 0.0; \
2657 image.normal: "00_circle_button_delete_press.png"; \
2660 state: "disabled" 0.0; \
2661 inherit: "default" 0.0; \
2662 image.normal: "00_circle_button_delete_dim.png"; \
2665 part { name: "button_center_part"; \
2667 clip_to: "icon_clipper"; \
2668 description { state: "default" 0.0; \
2669 image.normal: "00_button_warning.png"; \
2671 description { state: "clicked" 0.0; \
2672 inherit: "default"; \
2673 image.normal: "00_button_warning_press.png"; \
2675 description { state: "disabled" 0.0; \
2676 inherit: "default"; \
2679 part { name: "icon_clipper"; \
2682 description { state: "default" 0.0; \
2683 color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2685 description { state: "clicked" 0.0; \
2686 color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2688 description { state: "disabled" 0.0; \
2689 color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2692 part { name: "over1"; \
2694 ignore_flags: ON_HOLD; \
2695 description { state: "default" 0.0; \
2697 min: min_width min_height; \
2703 ///////////////////////////////////////////////////////////////////////////////////////
2704 BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2706 ///////////////////////////////////////////////////////////////////////////////////////
2707 BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2709 ///////////////////////////////////////////////////////////////////////////////////////
2710 group { name: "elm/button/base/circle/empty";
2712 image: "00_circle_button.png" COMP;
2713 image: "00_circle_button_press.png" COMP;
2714 image: "00_circle_button_dim.png" COMP;
2717 part { name: "button_image";
2719 description { state: "default" 0.0;
2720 min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2721 max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2723 image.normal: "00_circle_button.png";
2725 description { state: "clicked" 0.0;
2726 inherit: "default" 0.0;
2727 image.normal: "00_circle_button_press.png";
2729 description { state: "disabled" 0.0;
2730 inherit: "default" 0.0;
2731 image.normal: "00_circle_button_dim.png";
2734 part { name: "left_top_padding";
2737 description { state: "default" 0.0;
2738 min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2739 max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2742 rel1.to: "button_image";
2743 rel2.to: "button_image";
2746 part { name: "right_bottom_padding";
2749 description { state: "default" 0.0;
2750 min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2751 max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2758 rel2.to: "button_image";
2761 part { name: "elm.swallow.content";
2763 clip_to: "icon_clipper";
2765 description { state: "default" 0.0;
2769 to: "left_top_padding";
2773 to: "right_bottom_padding";
2777 description { state: "visible" 0.0;
2778 inherit: "default" 0.0;
2780 min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2781 max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2784 part { name: "icon_clipper";
2787 description { state: "default" 0.0;
2788 color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2790 description { state: "clicked" 0.0;
2791 color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2793 description { state: "disabled" 0.0;
2794 color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2797 part { name: "over1";
2799 ignore_flags: ON_HOLD;
2800 description { state: "default" 0.0;
2804 part { name: "over2";
2807 description { state: "default" 0.0;
2811 part { name: "disabler";
2813 description { state: "default" 0.0;
2817 description { state: "disabled" 0.0;
2818 inherit: "default" 0.0;
2824 program { name: "button_click";
2825 signal: "mouse,down,1";
2827 action: SIGNAL_EMIT "elm,action,press" "";
2828 after: "button_click_anim";
2830 program { name: "button_click_anim";
2831 action: STATE_SET "clicked" 0.0;
2832 target: "button_image";
2833 target: "icon_clipper";
2835 program { name: "button_double_click";
2836 signal: "mouse,down,1,double";
2838 after: "button_click_anim";
2840 program { name: "touch_snd";
2841 signal: "mouse,clicked,1";
2843 action: PLAY_SAMPLE "touch_sound" 1.0;
2844 after: button_unclick2;
2846 program { name: "button_unclick2";
2847 action: SIGNAL_EMIT "elm,action,click" "";
2849 program { name: "button_unclick";
2850 signal: "mouse,up,1";
2852 action: SIGNAL_EMIT "elm,action,unpress" "";
2853 after: "button_unclick_anim";
2855 program { name: "button_unclick_anim";
2856 action: STATE_SET "default" 0.0;
2857 target: "button_image";
2858 target: "icon_clipper";
2860 program { name: "disable";
2861 signal: "elm,state,disabled";
2863 action: STATE_SET "disabled" 0.0;
2865 target: "button_image";
2866 target: "icon_clipper";
2868 program { name: "enable";
2869 signal: "elm,state,enabled";
2871 action: STATE_SET "default" 0.0;
2873 target: "button_image";
2874 target: "icon_clipper";
2876 program { name: "icon_show";
2877 signal: "elm,state,icon,visible";
2879 action: STATE_SET "visible" 0.0;
2880 target: "elm.swallow.content";
2882 program { name: "icon_hide";
2883 signal: "elm,state,icon,hidden";
2885 action: STATE_SET "default" 0.0;
2886 target: "elm.swallow.content";
2891 ///////////////////////////////////////////////////////////////////////////////////////
2892 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2893 group { name: "elm/button/base/contacts/"style_name; \
2894 alias: "elm/button/base/"style_name; \
2896 image: "00_circle_button.png" COMP; \
2897 image: "00_circle_button_press.png" COMP; \
2898 image: "00_circle_button_dim.png" COMP; \
2899 image: edit_normal COMP; \
2900 image: edit_press COMP; \
2903 part { name: "button_image"; \
2905 description { state: "default" 0.0; \
2906 min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2907 max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2908 image.normal: "00_circle_button.png"; \
2910 description { state: "clicked" 0.0; \
2911 inherit: "default" 0.0; \
2912 image.normal: "00_circle_button_press.png"; \
2914 description { state: "disabled" 0.0; \
2915 inherit: "default" 0.0; \
2916 image.normal: "00_circle_button_dim.png"; \
2919 part { name: "button_center_part"; \
2922 clip_to: "icon_clipper"; \
2923 description { state: "default" 0.0; \
2924 min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2925 max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2926 image.normal: image_normal; \
2929 state: "clicked" 0.0; \
2930 inherit: "default" 0.0; \
2931 image.normal: image_press; \
2933 description { state: "disabled" 0.0; \
2934 inherit: "default" 0.0; \
2937 part { name: "icon_clipper"; \
2940 description { state: "default" 0.0; \
2941 color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2943 description { state: "clicked" 0.0; \
2944 color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2946 description { state: "disabled" 0.0; \
2947 color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2950 part { name: "over1"; \
2953 ignore_flags: ON_HOLD; \
2954 description { state: "default" 0.0; \
2956 min: min_width min_height; \
2959 part { name: "over2"; \
2962 description { state: "default" 0.0; \
2966 part { name: "disabler"; \
2968 description { state: "default" 0.0; \
2972 description { state: "disabled" 0.0; \
2973 inherit: "default" 0.0; \
2979 program { name: "button_click"; \
2980 signal: "mouse,down,1"; \
2982 action: SIGNAL_EMIT "elm,action,press" ""; \
2983 after: "button_click_anim"; \
2985 program { name: "button_click_anim"; \
2986 action: STATE_SET "clicked" 0.0; \
2987 target: "button_image"; \
2988 target: "button_center_part"; \
2989 target: "icon_clipper"; \
2991 program { name: "button_double_click"; \
2992 signal: "mouse,down,1,double"; \
2994 after: "button_click_anim"; \
2996 program { name: "button_unclick"; \
2997 signal: "mouse,up,1"; \
2999 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3000 after: "button_unclick_anim"; \
3002 program { name: "button_unclick_anim"; \
3003 action: STATE_SET "default" 0.0; \
3004 target: "button_image"; \
3005 target: "button_center_part"; \
3006 target: "icon_clipper"; \
3008 program { name: "touch_snd"; \
3009 signal: "mouse,clicked,1"; \
3011 action: PLAY_SAMPLE "touch_sound" 1.0; \
3012 after: button_unclick3; \
3014 program { name: "button_unclick3"; \
3015 action: SIGNAL_EMIT "elm,action,click" ""; \
3017 program { name: "disable"; \
3018 signal: "elm,state,disabled"; \
3020 action: STATE_SET "disabled" 0.0; \
3021 target: "disabler"; \
3022 target: "button_image"; \
3023 target: "button_center_part"; \
3024 target: "icon_clipper"; \
3026 program { name: "enable"; \
3027 signal: "elm,state,enabled"; \
3029 action: STATE_SET "default" 0.0; \
3030 target: "disabler"; \
3031 target: "button_image"; \
3032 target: "button_center_part"; \
3033 target: "icon_clipper"; \
3037 ///////////////////////////////////////////////////////////////////////////////////////
3038 BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3040 ///////////////////////////////////////////////////////////////////////////////////////
3041 BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3043 ///////////////////////////////////////////////////////////////////////////////////////
3044 BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3046 ///////////////////////////////////////////////////////////////////////////////////////
3047 BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3049 ///////////////////////////////////////////////////////////////////////////////////////
3050 BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3052 ///////////////////////////////////////////////////////////////////////////////////////
3053 BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3055 ///////////////////////////////////////////////////////////////////////////////////////
3057 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3058 group { name: "elm/button/base/contacts/"style_name; \
3059 alias: "elm/button/base/"style_name; \
3060 inherit: "elm/button/base/contacts/icon_plus"; \
3062 image: "00_circle_button_delete.png" COMP; \
3063 image: "00_circle_button_delete_press.png" COMP; \
3064 image: "00_circle_button_delete_dim.png" COMP; \
3065 image: "00_button_delete.png" COMP; \
3066 image: "00_button_delete_press.png" COMP; \
3069 part { name: "button_image"; \
3071 description { state: "default" 0.0; \
3072 image.normal: "00_circle_button_delete.png"; \
3074 description { state: "clicked" 0.0; \
3075 inherit: "default" 0.0; \
3076 image.normal: "00_circle_button_delete_press.png"; \
3078 description { state: "disabled" 0.0; \
3079 inherit: "default" 0.0; \
3080 image.normal: "00_circle_button_delete_dim.png"; \
3083 part { name: "button_center_part"; \
3086 clip_to: "icon_clipper"; \
3087 description { state: "default" 0.0; \
3088 image.normal: "00_button_delete.png"; \
3091 state: "clicked" 0.0; \
3092 inherit: "default" 0.0; \
3093 image.normal: "00_button_delete_press.png"; \
3095 description { state: "disabled" 0.0; \
3096 inherit: "default" 0.0; \
3099 part { name: "icon_clipper"; \
3102 description { state: "default" 0.0; \
3103 color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3105 description { state: "clicked" 0.0; \
3106 color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3108 description { state: "disabled" 0.0; \
3109 color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3112 part { name: "over1"; \
3115 ignore_flags: ON_HOLD; \
3116 description { state: "default" 0.0; \
3118 min: min_width min_height; \
3124 ///////////////////////////////////////////////////////////////////////////////////////
3125 BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3127 ///////////////////////////////////////////////////////////////////////////////////////
3128 BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3130 ///////////////////////////////////////////////////////////////////////////////////////
3131 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3132 group { name: "elm/button/base/"style_name; \
3134 image: "00_button_01.png" COMP; \
3135 image: "00_button_01_press.png" COMP; \
3136 image: "00_button_01_dim.png" COMP; \
3137 image: image_normal COMP; \
3140 part { name: "button_image";\
3143 description { state: "default" 0.0; \
3144 min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3146 normal: "00_button_01.png"; \
3147 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3151 description { state: "clicked" 0.0; \
3152 inherit: "default" 0.0; \
3153 image.normal: "00_button_01_press.png"; \
3155 description { state: "disabled" 0.0; \
3156 inherit: "default" 0.0; \
3157 image.normal: "00_button_01_dim.png"; \
3160 part { name: "padding_left_top"; \
3163 description { state: "default" 0.0; \
3165 rel2.relative: 0.0 0.0; \
3166 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3170 part { name: "padding_right_bottom"; \
3173 description { state: "default" 0.0; \
3175 rel1.relative: 1.0 1.0; \
3176 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3180 part { name: "jump_image"; \
3183 description { state: "default" 0.0; \
3184 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3187 relative: 1.0 0.0; \
3188 to_x: "padding_left_top"; \
3191 relative: 0.0 1.0; \
3192 to_x: "padding_right_bottom"; \
3194 image.normal: image_normal; \
3196 aspect_preference: VERTICAL; \
3197 color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3199 description { state: "clicked" 0.0; \
3200 inherit: "default" 0.0; \
3201 color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3203 description { state: "disabled" 0.0; \
3204 inherit: "default" 0.0; \
3205 color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3208 part { name: "over1"; \
3211 ignore_flags: ON_HOLD; \
3212 description { state: "default" 0.0; \
3214 rel1.relative: 0.0 0.0; \
3215 rel2.relative: 1.0 1.0; \
3218 part { name: "over2"; \
3221 description { state: "default" 0.0; \
3227 program { name: "button_click"; \
3228 signal: "mouse,down,1"; \
3230 action: SIGNAL_EMIT "elm,action,press" ""; \
3231 after: "button_click_anim"; \
3233 program { name: "button_click_anim"; \
3234 action: STATE_SET "clicked" 0.0; \
3235 target: "button_image"; \
3236 target: "jump_image"; \
3238 program { name: "button_double_click"; \
3239 signal: "mouse,down,1,double"; \
3241 after: "button_click_anim"; \
3243 program { name: "button_unclick"; \
3244 signal: "mouse,up,1"; \
3246 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3247 after: "button_unclick_anim"; \
3249 program { name: "button_unclick_anim"; \
3250 action: STATE_SET "default" 0.0; \
3251 target: "button_image"; \
3252 target: "jump_image"; \
3254 program { name: "touch_snd"; \
3255 signal: "mouse,clicked,1"; \
3257 action: PLAY_SAMPLE "touch_sound" 1.0; \
3258 after: button_unclick3; \
3260 program { name: "button_unclick3"; \
3261 action: SIGNAL_EMIT "elm,action,click" ""; \
3263 program { name: "disable"; \
3264 signal: "elm,state,disabled"; \
3266 action: STATE_SET "disabled" 0.0; \
3267 target: "button_image"; \
3268 target: "jump_image"; \
3270 program { name: "enable"; \
3271 signal: "elm,state,enabled"; \
3273 action: STATE_SET "default" 0.0; \
3274 target: "button_image"; \
3275 target: "jump_image"; \
3280 ////////////////////////////////////////////////////////////////////////
3281 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3282 ////////////////////////////////////////////////////////////////////////
3283 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3285 ////////////////////////////////////////////////////////////////////////
3286 group { name: "elm/button/base/default";
3288 image: "00_button_01.png" COMP;
3289 image: "00_button_01_press.png" COMP;
3290 image: "00_button_01_dim.png" COMP;
3293 public button_state = BUTTON_STATE_ENABLED;
3296 part { name: "button_image";
3298 description { state: "default" 0.0;
3299 min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3301 normal: "00_button_01.png";
3302 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3306 description { state: "clicked" 0.0;
3307 inherit: "default" 0.0;
3308 image.normal: "00_button_01_press.png";
3310 description { state: "disabled" 0.0;
3311 inherit: "default" 0.0;
3312 image.normal: "00_button_01_dim.png";
3314 description { state: "focused" 0.0;
3315 inherit: "default" 0.0;
3316 image.normal: "00_button_01_press.png";
3319 part { name: "padding_left_top";
3323 description { state: "default" 0.0;
3325 rel2.relative: 0.0 0.0;
3326 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3331 part { name: "padding_right_bottom";
3335 description { state: "default" 0.0;
3337 rel1.relative: 1.0 1.0;
3338 min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3343 part { name: "padding_icon_text";
3347 description { state: "default" 0.0; //when only icon or no icon is there
3353 to: "elm.swallow.content";
3355 rel2.to: "elm.swallow.content";
3358 description { state: "icononly" 0.0;
3359 inherit: "default" 0.0;
3361 description { state: "visible" 0.0; //when icon is visible
3362 inherit: "default" 0.0;
3363 min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3366 part { name: "elm.swallow.content";
3370 description { state: "default" 0.0;
3376 to: "padding_left_top";
3380 to_x: "padding_left_top";
3381 to_y: "padding_right_bottom";
3384 description { state: "visible" 0.0;
3385 inherit: "default" 0.0;
3388 aspect_preference: VERTICAL;
3390 description { state: "icononly" 0.0;
3391 min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3394 to_x: "padding_left_top";
3398 to_x: "padding_right_bottom";
3401 aspect_preference: VERTICAL;
3404 part { name: "elm.text";
3409 effect: SHADOW BOTTOM;
3410 description { state: "default" 0.0;
3415 to_x: "padding_icon_text";
3416 to_y: "padding_left_top";
3420 to: "padding_right_bottom";
3422 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3423 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3425 font: "Tizen:style=Regular";
3426 size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3428 text_class: "tizen";
3431 description { state: "visible" 0.0;
3432 inherit: "default" 0.0;
3434 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3436 description { state: "clicked" 0.0;
3437 inherit: "default" 0.0;
3439 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3440 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3442 description { state: "disabled" 0.0;
3443 inherit: "default" 0.0;
3445 description { state: "disabled_visible" 0.0;
3446 inherit: "default" 0.0;
3447 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3448 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3450 min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3452 description { state: "focused" 0.0;
3453 inherit: "default" 0.0;
3456 color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3459 part { name: "over2";
3462 ignore_flags: ON_HOLD;
3463 description { state: "default" 0.0;
3467 part { name: "over3";
3470 description { state: "default" 0.0;
3474 part { name: "disclip";
3476 description { state: "default" 0.0;
3477 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3479 description { state: "disabled" 0.0;
3480 inherit: "default" 0.0;
3481 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3484 part { name: "disabler";
3486 description { state: "default" 0.0;
3490 description { state: "disabled" 0.0;
3491 inherit: "default" 0.0;
3497 program { name: "button_click";
3498 signal: "mouse,down,1";
3500 action: SIGNAL_EMIT "elm,action,press" "";
3501 after: "button_click_anim";
3503 program { name: "button_click_anim";
3504 action: STATE_SET "clicked" 0.0;
3505 target: "button_image";
3506 after: "text_clicked";
3508 program { name: "text_clicked";
3512 get_state(PART:"elm.text", st, 30, vl);
3513 if (!strcmp(st, "visible"))
3514 set_state(PART:"elm.text", "clicked", 0.0);
3517 program { name: "button_double_click";
3518 signal: "mouse,down,1,double";
3520 after: "button_click_anim";
3522 program { name: "button_unpress";
3523 action: SIGNAL_EMIT "elm,action,unpress" "";
3525 program { name: "button_mouseout_clicked";
3526 signal: "mouse,up,1";
3531 get_state(PART:"elm.swallow.content", st, 30, vl);
3532 if (strcmp(st, "icononly"))
3534 emit("elm,action,default,text,set", "");
3535 set_state(PART:"elm.text", "visible", 0.0);
3537 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3538 set_state(PART:"button_image", "default", 0.0);
3540 after: button_unpress;
3542 program { name: "touch_snd";
3543 signal: "mouse,clicked,1";
3545 action: PLAY_SAMPLE "touch_sound" 1.0;
3546 after: button_unclick3;
3548 program { name: "button_unclick3";
3549 action: SIGNAL_EMIT "elm,action,click" "";
3551 program { name: "text_show";
3552 signal: "elm,state,text,visible";
3557 get_state(PART:"elm.swallow.content", st, 30, vl);
3558 if (!strcmp(st, "icononly"))
3560 set_state(PART:"elm.swallow.content", "visible", 0.0);
3561 set_state(PART:"padding_icon_text", "visible", 0.0);
3563 if (get_int(button_state) != BUTTON_STATE_DISABLED)
3564 set_state(PART:"elm.text", "visible", 0.0);
3566 set_state(PART:"elm.text", "disabled_visible", 0.0);
3569 program { name: "text_hide";
3570 signal: "elm,state,text,hidden";
3575 get_state(PART:"elm.swallow.content", st, 30, vl);
3576 if (!strcmp(st, "visible"))
3578 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3579 set_state(PART:"padding_icon_text", "icononly", 0.0);
3581 set_state(PART:"elm.text", "default", 0.0);
3584 program { name: "icon_show";
3585 signal: "elm,state,icon,visible";
3590 get_state(PART:"elm.text", st, 30, vl);
3591 if (!strcmp(st, "visible"))
3593 set_state(PART:"elm.swallow.content", "visible", 0.0);
3594 set_state(PART:"padding_icon_text", "visible", 0.0);
3598 set_state(PART:"elm.swallow.content", "icononly", 0.0);
3599 set_state(PART:"padding_icon_text", "icononly", 0.0);
3603 program { name: "icon_hide";
3604 signal: "elm,state,icon,hidden";
3606 action: STATE_SET "default" 0.0;
3607 target: "elm.swallow.content";
3608 target: "padding_icon_text";
3610 program { name: "disable";
3611 signal: "elm,state,disabled";
3613 action: STATE_SET "disabled" 0.0;
3614 target: "button_image";
3617 after: "disable_text";
3619 program { name: "disable_text";
3623 get_state(PART:"elm.text", st, 30, vl);
3624 if (!strcmp(st, "visible"))
3625 set_state(PART:"elm.text", "disabled_visible", 0.0);
3627 set_state(PART:"elm.text", "disabled", 0.0);
3628 set_int(button_state, BUTTON_STATE_DISABLED);
3631 program { name: "enable";
3632 signal: "elm,state,enabled";
3634 action: STATE_SET "default" 0.0;
3635 target: "button_image";
3638 after: "enable_text";
3640 program { name: "enable_text";
3644 get_state(PART:"elm.text", st, 30, vl);
3645 if (!strcmp(st, "disabled_visible"))
3646 set_state(PART:"elm.text", "visible", 0.0);
3648 set_state(PART:"elm.text", "default", 0.0);
3649 set_int(button_state, BUTTON_STATE_ENABLED);
3652 program { name: "focused";
3653 //signal: "elm,action,focus";
3655 action: STATE_SET "focused" 0.0;
3656 target: "button_image";
3659 program { name: "unfocused";
3660 //signal: "elm,action,unfocus";
3662 action: STATE_SET "default" 0.0;
3663 target: "button_image";
3664 after: "unfocus_text";
3666 program { name: "unfocus_text";
3667 action: STATE_SET "visible" 0.0;
3673 ///////////////////////////////////////////////////////////////////////////////////////
3674 group { name: "elm/button/base/multiline";
3675 alias: "elm/button/base/text_only/multiline";
3676 inherit: "elm/button/base/default";
3678 style { name: "btn_multiline_style";
3679 base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
3686 part { name: "button_image";
3688 description { state: "default" 0.0;
3689 min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3691 normal: "00_button_01.png";
3692 border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3696 description { state: "clicked" 0.0;
3697 inherit: "default" 0.0;
3698 image.normal: "00_button_01_press.png";
3700 description { state: "disabled" 0.0;
3701 inherit: "default" 0.0;
3702 image.normal: "00_button_01_dim.png";
3704 description { state: "focused" 0.0;
3705 inherit: "default" 0.0;
3706 image.normal: "00_button_01_press.png";
3709 part { name: "padding_left_top";
3713 description { state: "default" 0.0;
3715 rel2.relative: 0.0 0.0;
3716 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3721 part { name: "padding_right_bottom";
3725 description { state: "default" 0.0;
3727 rel1.relative: 1.0 1.0;
3728 min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3733 part { name: "elm.text";
3738 description { state: "default" 0.0;
3742 to_x: "padding_icon_text";
3743 to_y: "padding_left_top";
3747 to: "padding_right_bottom";
3749 color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3751 style: "btn_multiline_style";
3754 description { state: "visible" 0.0;
3755 inherit: "default" 0.0;
3759 description { state: "clicked" 0.0;
3760 inherit: "default" 0.0;
3763 color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3765 description { state: "disabled" 0.0;
3766 inherit: "default" 0.0;
3768 description { state: "disabled_visible" 0.0;
3769 inherit: "default" 0.0;
3770 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3774 description { state: "focused" 0.0;
3775 inherit: "default" 0.0;
3778 color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3784 ///////////////////////////////////////////////////////////////////////////////////////
3785 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3786 group { name: "elm/button/base/"style_name; \
3788 image: image_normal COMP; \
3789 image: image_press COMP; \
3790 image: image_dim COMP; \
3791 image: "00_button_01.png" COMP; \
3792 image: "00_button_01_press.png" COMP; \
3795 part { name: "button_image"; \
3797 description { state: "default" 0.0; \
3798 min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3799 max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3801 normal: "00_button_01.png"; \
3802 border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3807 state: "clicked" 0.0; \
3808 inherit: "default" 0.0; \
3809 image.normal: "00_button_01_press.png"; \
3812 state: "disabled" 0.0; \
3813 inherit: "default" 0.0; \
3814 image.normal: "00_button_01_dim.png"; \
3817 state: "focused" 0.0; \
3818 inherit: "default" 0.0; \
3819 image.normal: "00_button_01_press.png"; \
3822 part { name: "button_center_part"; \
3824 clip_to: "icon_clipper"; \
3825 description { state: "default" 0.0; \
3826 min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3827 max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3828 image.normal: image_normal; \
3831 state: "clicked" 0.0; \
3832 inherit: "default" 0.0; \
3833 image.normal: image_press; \
3836 state: "disabled" 0.0; \
3837 inherit: "default" 0.0; \
3840 part { name: "icon_clipper"; \
3843 description { state: "default" 0.0; \
3844 color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3846 description { state: "clicked" 0.0; \
3847 color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3849 description { state: "disabled" 0.0; \
3850 color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3853 part { name: "over1"; \
3855 ignore_flags: ON_HOLD; \
3856 description { state: "default" 0.0; \
3860 part { name: "over2"; \
3863 description { state: "default" 0.0; \
3867 part { name: "disabler"; \
3869 description { state: "default" 0.0; \
3873 description { state: "disabled" 0.0; \
3874 inherit: "default" 0.0; \
3880 program { name: "button_click"; \
3881 signal: "mouse,down,1"; \
3883 action: SIGNAL_EMIT "elm,action,press" ""; \
3884 after: "button_click_anim"; \
3886 program { name: "button_click_anim"; \
3887 action: STATE_SET "clicked" 0.0; \
3888 target: "button_image"; \
3889 target: "button_center_part"; \
3890 target: ""icon_clipper""; \
3892 program { name: "button_double_click"; \
3893 signal: "mouse,down,1,double"; \
3895 after: "button_click_anim"; \
3897 program { name: "button_unclick"; \
3898 signal: "mouse,up,1"; \
3900 action: SIGNAL_EMIT "elm,action,unpress" ""; \
3901 after: "button_unclick_anim"; \
3903 program { name: "button_unclick_anim"; \
3904 action: STATE_SET "default" 0.0; \
3905 target: "button_image"; \
3906 target: "button_center_part"; \
3907 target: ""icon_clipper""; \
3909 program { name: "touch_snd"; \
3910 signal: "mouse,clicked,1"; \
3912 action: PLAY_SAMPLE "touch_sound" 1.0; \
3913 after: button_unclick3; \
3915 program { name: "button_unclick3"; \
3916 action: SIGNAL_EMIT "elm,action,click" ""; \
3918 program { name: "disable"; \
3919 signal: "elm,state,disabled"; \
3921 action: STATE_SET "disabled" 0.0; \
3922 target: "disabler"; \
3923 target: "button_image"; \
3924 target: "button_center_part"; \
3925 target: ""icon_clipper""; \
3927 program { name: "enable"; \
3928 signal: "elm,state,enabled"; \
3930 action: STATE_SET "default" 0.0; \
3931 target: "disabler"; \
3932 target: "button_image"; \
3933 target: "button_center_part"; \
3934 target: ""icon_clipper""; \
3938 ///////////////////////////////////////////////////////////////////////////////////////
3939 BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3940 ///////////////////////////////////////////////////////////////////////////////////////
3941 BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3942 ///////////////////////////////////////////////////////////////////////////////////////
3944 group { name: "elm/button/base/multibuttonentry";
3945 alias: "elm/button/base/text_only/multibuttonentry";
3947 image: "00_contacts_button.png" COMP;
3948 image: "00_contacts_button_press.png" COMP;
3951 public button_state = BUTTON_STATE_ENABLED;
3954 part { name: "button_image";
3956 description { state: "default" 0.0;
3958 to_x: "padding.left";
3962 to_x: "padding.right";
3965 min: BUTTON_CONTACT_BG_MIN_INC;
3967 normal: "00_contacts_button.png";
3968 border: BUTTON_CONTACT_BG_BORDER_INC;
3972 description { state: "clicked" 0.0;
3973 inherit: "default" 0.0;
3974 image.normal: "00_contacts_button_press.png";
3976 description { state: "disabled" 0.0;
3977 inherit: "default" 0.0;
3979 description { state: "focused" 0.0;
3980 inherit: "default" 0.0;
3981 image.normal: "00_contacts_button_press.png";
3984 part { name: "padding.left";
3987 description { state: "default" 0.0;
3989 min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3999 part { name: "padding.right";
4002 description { state: "default" 0.0;
4004 min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4014 part { name: "elm.text";
4018 description { state: "default" 0.0;
4021 color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4023 font: "Tizen:style=Regular";
4024 size: BUTTON_CONTACT_FONT_SIZE_INC;
4026 text_class: "tizen";
4029 description { state: "visible" 0.0;
4030 inherit: "default" 0.0;
4034 description { state: "clicked" 0.0;
4035 inherit: "default" 0.0;
4038 color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4040 description { state: "disabled" 0.0;
4041 inherit: "default" 0.0;
4043 description { state: "disabled_visible" 0.0;
4044 inherit: "default" 0.0;
4045 color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4049 description { state: "focused" 0.0;
4050 inherit: "default" 0.0;
4053 color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4056 part { name: "over1";
4059 description { state: "default" 0.0;
4060 rel2.relative: 1.0 0.5;
4064 part { name: "over2";
4067 ignore_flags: ON_HOLD;
4068 description { state: "default" 0.0;
4069 rel1.to: "button_image";
4070 rel2.to: "button_image";
4074 part { name: "over3";
4077 description { state: "default" 0.0;
4078 rel1.to: "button_image";
4079 rel2.to: "button_image";
4083 part { name: "disabler";
4085 description { state: "default" 0.0;
4086 rel1.to: "button_image";
4087 rel2.to: "button_image";
4091 description { state: "disabled" 0.0;
4092 inherit: "default" 0.0;
4098 program { name: "button_click";
4099 signal: "mouse,down,1";
4101 action: SIGNAL_EMIT "elm,action,press" "";
4102 after: "button_click_anim";
4104 program { name: "button_click_anim";
4105 action: STATE_SET "clicked" 0.0;
4106 target: "button_image";
4109 program { name: "button_double_click";
4110 signal: "mouse,down,1,double";
4112 after: "button_click_anim";
4114 program { name: "button_unpress";
4115 action: SIGNAL_EMIT "elm,action,unpress" "";
4117 program { name: "button_mouseout_clicked";
4118 signal: "mouse,up,1";
4123 get_state(PART:"elm.text", st, 30, vl);
4124 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4126 emit("elm,action,default,text,set", "");
4127 set_state(PART:"elm.text", "visible", 0.0);
4129 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4130 set_state(PART:"button_image", "default", 0.0);
4132 after: button_unpress;
4134 program { name: "touch_snd";
4135 signal: "mouse,clicked,1";
4137 action: PLAY_SAMPLE "touch_sound" 1.0;
4138 after: button_unclick3;
4140 program { name: "button_unclick3";
4141 action: SIGNAL_EMIT "elm,action,click" "";
4143 program { name: "text_show";
4144 signal: "elm,state,text,visible";
4147 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4148 set_state(PART:"elm.text", "visible", 0.0);
4150 set_state(PART:"elm.text", "disabled_visible", 0.0);
4153 program { name: "text_hide";
4154 signal: "elm,state,text,hidden";
4156 action: STATE_SET "default" 0.0;
4159 program { name: "disable";
4160 signal: "elm,state,disabled";
4162 action: STATE_SET "disabled" 0.0;
4163 target: "button_image";
4165 after: "disable_text";
4167 program { name: "disable_text";
4171 get_state(PART:"elm.text", st, 30, vl);
4172 if (!strcmp(st, "visible"))
4173 set_state(PART:"elm.text", "disabled_visible", 0.0);
4175 set_state(PART:"elm.text", "disabled", 0.0);
4176 set_int(button_state, BUTTON_STATE_DISABLED);
4179 program { name: "enable";
4180 signal: "elm,state,enabled";
4182 action: STATE_SET "default" 0.0;
4183 target: "button_image";
4185 after: "enable_text";
4187 program { name: "enable_text";
4191 get_state(PART:"elm.text", st, 30, vl);
4192 if (!strcmp(st, "disabled_visible"))
4193 set_state(PART:"elm.text", "visible", 0.0);
4195 set_state(PART:"elm.text", "default", 0.0);
4196 set_int(button_state, BUTTON_STATE_ENABLED);
4199 program { name: "focused";
4200 //signal: "elm,action,focus";
4202 action: STATE_SET "focused" 0.0;
4203 target: "button_image";
4206 program { name: "unfocused";
4207 //signal: "elm,action,unfocus";
4209 action: STATE_SET "default" 0.0;
4210 target: "button_image";
4211 action: STATE_SET "visible" 0.0;
4217 ///////////////////////////////////////////////////////////////////////////////////////
4218 group { name: "elm/button/base/naviframe/back_btn/default";
4219 alias: "elm/button/base/naviframe/prev_btn/default";
4220 alias: "elm/button/base/naviframe/end_btn/default";
4222 image: "00_icon_back.png" COMP;
4223 image: "00_icon_SIP_close.png" COMP;
4226 part { name: "button_image";
4229 description { state: "default" 0.0;
4230 min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4231 max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4234 description { state: "landscape" 0.0;
4235 min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4236 max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4240 part { name: "back_button";
4243 clip_to: "back_button.clipper";
4244 description { state: "default" 0.0;
4245 min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4246 max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4248 rel1.to: "button_image";
4249 rel2.to: "button_image";
4250 image.normal: "00_icon_back.png";
4252 description { state: "compress" 0.0;
4253 inherit: "default" 0.0;
4254 image.normal: "00_icon_SIP_close.png";
4257 part { name: "back_button.clipper";
4259 description { state: "default" 0.0;
4260 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4262 description { state: "clicked" 0.0;
4263 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4265 description { state: "disabled" 0.0;
4266 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4269 part { name: "over2";
4271 ignore_flags: ON_HOLD;
4272 description { state: "default" 0.0;
4276 part { name: "over3";
4279 description { state: "default" 0.0;
4283 part { name: "disabler";
4285 description { state: "default" 0.0;
4289 description { state: "disabled" 0.0;
4290 inherit: "default" 0.0;
4296 program { name: "button_click";
4297 signal: "mouse,down,1";
4299 action: SIGNAL_EMIT "elm,action,press" "";
4300 after: "button_click_anim";
4302 program { name: "button_click_anim";
4304 set_state(PART:"back_button.clipper", "clicked", 0.0);
4307 program { name: "button_double_click";
4308 signal: "mouse,down,1,double";
4310 after: "button_click_anim";
4312 program { name: "button_unclick";
4313 signal: "mouse,up,1";
4315 action: SIGNAL_EMIT "elm,action,unpress" "";
4316 after: "button_unclick_anim";
4318 program { name: "button_unclick_anim";
4320 set_state(PART:"back_button.clipper", "default", 0.0);
4323 program { name: "touch_snd";
4324 signal: "mouse,clicked,1";
4326 action: PLAY_SAMPLE "touch_sound" 1.0;
4327 after: button_unclick3;
4329 program { name: "button_unclick3";
4330 action: SIGNAL_EMIT "elm,action,click" "";
4332 program { name: "disable";
4333 signal: "elm,state,disabled";
4336 set_state(PART:"back_button.clipper", "disabled", 0.0);
4339 program { name: "enable";
4340 signal: "elm,state,enabled";
4343 set_state(PART:"back_button.clipper", "default", 0.0);
4346 program { name: "change_to_landscape";
4347 signal: "elm,state,landscape";
4349 action: STATE_SET "landscape" 0.0;
4350 target: "button_image";
4352 program { name: "change_to_portrait";
4353 signal: "elm,state,portrait";
4355 action: STATE_SET "default" 0.0;
4356 target: "button_image";
4358 program { name: "landscape_mode";
4360 signal: "elm,state,orient,90";
4361 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4363 program { name: "landscape_mode2";
4365 signal: "elm,state,orient,270";
4366 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4368 program { name: "portrait_mode";
4370 signal: "elm,state,orient,0";
4371 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4373 program { name: "portrait_mode2";
4375 signal: "elm,state,orient,180";
4376 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4378 program { name: "display_compress_mode";
4379 signal: "elm,state,display,compress";
4381 action: STATE_SET "compress" 0.0;
4382 target: "back_button";
4384 program { name: "display_default_mode";
4385 signal: "elm,state,display,default";
4387 action: STATE_SET "default" 0.0;
4388 target: "back_button";
4393 //////////////////////////////////////////////////////////////
4394 group { name: "elm/button/base/naviframe/toolbar/default";
4395 alias: "elm/button/base/naviframe/title/default";
4397 image: "00_toolbar_button.png" COMP;
4398 image: "00_toolbar_button_press.png" COMP;
4399 image: "00_toolbar_button_dim.png" COMP;
4402 style { name: "btn_naviframe_toolbar";
4403 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4408 style { name: "btn_naviframe_toolbar_pressed";
4409 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4414 style { name: "btn_naviframe_toolbar_disabled";
4415 base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4422 public button_state = BUTTON_STATE_ENABLED;
4423 public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4426 part { name: "button_bg";
4429 description { state: "default" 0.0;
4430 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4431 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4433 rel1.to: "padding_text_left_top";
4434 rel2.to: "padding_text_right_bottom";
4436 description { state: "landscape" 0.0;
4437 inherit: "default" 0.0;
4438 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4439 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4442 part { name: "button_image";
4444 description { state: "default" 0.0;
4445 rel1.to: "button_bg";
4446 rel2.to: "button_bg";
4448 normal: "00_toolbar_button.png";
4449 border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4453 description { state: "clicked" 0.0;
4454 inherit: "default" 0.0;
4455 image.normal: "00_toolbar_button_press.png";
4457 description { state: "disabled" 0.0;
4458 inherit: "default" 0.0;
4459 image.normal: "00_toolbar_button_dim.png";
4461 description { state: "focused" 0.0;
4462 inherit: "default" 0.0;
4463 image.normal: "00_toolbar_button_press.png";
4466 part { name: "padding_left_top";
4470 description { state: "default" 0.0;
4473 rel2.relative: 0.0 0.0;
4474 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4478 part { name: "padding_right_bottom";
4482 description { state: "default" 0.0;
4484 rel1.relative: 1.0 1.0;
4485 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4490 part { name: "padding_text_left_top";
4494 description { state: "default" 0.0;
4496 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4498 rel1.to: "elm.text";
4506 part { name: "padding_text_right_bottom";
4510 description { state: "default" 0.0;
4511 min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4518 rel2.to: "elm.text";
4522 part { name: "elm.text";
4527 description { state: "default" 0.0;
4530 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4533 to: "padding_left_top";
4537 to: "padding_right_bottom";
4543 style: "btn_naviframe_toolbar";
4546 description { state: "landscape" 0.0;
4547 inherit: "default" 0.0;
4548 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4550 description { state: "visible" 0.0;
4551 inherit: "default" 0.0;
4554 description { state: "landscape_visible" 0.0;
4555 inherit: "landscape" 0.0;
4558 description { state: "clicked" 0.0;
4559 inherit: "default" 0.0;
4562 style: "btn_naviframe_toolbar_pressed";
4565 description { state: "landscape_clicked" 0.0;
4566 inherit: "landscape" 0.0;
4569 style: "btn_naviframe_toolbar_pressed";
4572 description { state: "disabled" 0.0;
4573 inherit: "default" 0.0;
4575 description { state: "landscape_disabled" 0.0;
4576 inherit: "landscape" 0.0;
4578 description { state: "disabled_visible" 0.0;
4579 inherit: "default" 0.0;
4582 style: "btn_naviframe_toolbar_disabled";
4585 description { state: "landscape_disabled_visible" 0.0;
4586 inherit: "landscape" 0.0;
4589 style: "btn_naviframe_toolbar_disabled";
4592 description { state: "focused" 0.0;
4593 inherit: "default" 0.0;
4596 style: "btn_naviframe_toolbar_pressed";
4599 description { state: "landscape_focused" 0.0;
4600 inherit: "landscape" 0.0;
4603 style: "btn_naviframe_toolbar_pressed";
4607 part { name: "disclip";
4609 description { state: "default" 0.0;
4610 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4612 description { state: "disabled" 0.0;
4613 inherit: "default" 0.0;
4614 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4617 part { name: "over2";
4620 ignore_flags: ON_HOLD;
4621 description { state: "default" 0.0;
4622 rel1.to: "button_image";
4623 rel2.to: "button_image";
4627 part { name: "over3";
4630 description { state: "default" 0.0;
4631 rel1.to: "button_image";
4632 rel2.to: "button_image";
4636 part { name: "disabler";
4638 description { state: "default" 0.0;
4639 rel1.to: "button_image";
4640 rel2.to: "button_image";
4644 description { state: "disabled" 0.0;
4645 inherit: "default" 0.0;
4651 program { name: "button_click";
4652 signal: "mouse,down,1";
4654 action: SIGNAL_EMIT "elm,action,press" "";
4655 after: "button_click_anim";
4657 program { name: "button_click_anim";
4659 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4660 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4662 set_state(PART:"elm.text", "clicked", 0.0);
4663 set_state(PART:"button_image", "clicked", 0.0);
4666 program { name: "button_double_click";
4667 signal: "mouse,down,1,double";
4669 after: "button_click_anim";
4671 program { name: "button_unpress";
4672 action: SIGNAL_EMIT "elm,action,unpress" "";
4674 program { name: "button_mouseout_clicked";
4675 signal: "mouse,up,1";
4680 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4682 get_state(PART:"elm.text", st, 30, vl);
4683 if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
4685 emit("elm,action,default,text,set", "");
4686 set_state(PART:"elm.text", "landscape_visible", 0.0);
4691 get_state(PART:"elm.text", st, 30, vl);
4692 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4694 emit("elm,action,default,text,set", "");
4695 set_state(PART:"elm.text", "visible", 0.0);
4698 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4699 set_state(PART:"button_image", "default", 0.0);
4701 after: button_unpress;
4703 program { name: "touch_snd";
4704 signal: "mouse,clicked,1";
4706 action: PLAY_SAMPLE "touch_sound" 1.0;
4707 after: button_unclick3;
4709 program { name: "button_unclick3";
4710 action: SIGNAL_EMIT "elm,action,click" "";
4712 program { name: "text_show";
4713 signal: "elm,state,text,visible";
4716 if (get_int(button_state) != BUTTON_STATE_DISABLED)
4718 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4719 set_state(PART:"elm.text", "landscape_visible", 0.0);
4721 set_state(PART:"elm.text", "visible", 0.0);
4725 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4726 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4728 set_state(PART:"elm.text", "disabled_visible", 0.0);
4732 program { name: "text_hide";
4733 signal: "elm,state,text,hidden";
4736 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4737 set_state(PART:"elm.text", "landscape", 0.0);
4739 set_state(PART:"elm.text", "default", 0.0);
4742 program { name: "disable";
4743 signal: "elm,state,disabled";
4745 action: STATE_SET "disabled" 0.0;
4746 target: "button_image";
4749 after: "disable_text";
4751 program { name: "disable_text";
4755 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4757 get_state(PART:"elm.text", st, 30, vl);
4758 if (!strcmp(st, "landscape_visible"))
4759 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4761 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4765 get_state(PART:"elm.text", st, 30, vl);
4766 if (!strcmp(st, "visible"))
4767 set_state(PART:"elm.text", "disabled_visible", 0.0);
4769 set_state(PART:"elm.text", "disabled", 0.0);
4771 set_int(button_state, BUTTON_STATE_DISABLED);
4774 program { name: "enable";
4775 signal: "elm,state,enabled";
4777 action: STATE_SET "default" 0.0;
4778 target: "button_image";
4781 after: "enable_text";
4783 program { name: "enable_text";
4787 if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4789 get_state(PART:"elm.text", st, 30, vl);
4790 if (!strcmp(st, "landscape_disabled_visible"))
4791 set_state(PART:"elm.text", "landscape_visible", 0.0);
4793 set_state(PART:"elm.text", "landscape", 0.0);
4797 get_state(PART:"elm.text", st, 30, vl);
4798 if (!strcmp(st, "disabled_visible"))
4799 set_state(PART:"elm.text", "visible", 0.0);
4801 set_state(PART:"elm.text", "default", 0.0);
4803 set_int(button_state, BUTTON_STATE_ENABLED);
4806 program { name: "change_to_landscape";
4807 signal: "elm,state,landscape";
4812 set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
4813 get_state(PART:"elm.text", st, 30, vl);
4814 if (!strcmp(st, "default"))
4815 set_state(PART:"elm.text", "landscape", 0.0);
4816 else if (!strcmp(st, "clicked"))
4817 set_state(PART:"elm.text", "landscape_clicked", 0.0);
4818 else if (!strcmp(st, "disabled"))
4819 set_state(PART:"elm.text", "landscape_disabled", 0.0);
4820 else if (!strcmp(st, "disabled_visible"))
4821 set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4823 set_state(PART:"elm.text", "landscape_visible", 0.0);
4824 set_state(PART:"button_bg", "landscape", 0.0);
4827 program { name: "change_to_portrait";
4828 signal: "elm,state,portrait";
4833 set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
4834 get_state(PART:"elm.text", st, 30, vl);
4835 if (!strcmp(st, "landscape"))
4836 set_state(PART:"elm.text", "default", 0.0);
4837 else if (!strcmp(st, "landscape_clicked"))
4838 set_state(PART:"elm.text", "clicked", 0.0);
4839 else if (!strcmp(st, "landscape_disabled"))
4840 set_state(PART:"elm.text", "disabled", 0.0);
4841 else if (!strcmp(st, "landscape_disabled_visible"))
4842 set_state(PART:"elm.text", "disabled_visible", 0.0);
4844 set_state(PART:"elm.text", "visible", 0.0);
4845 set_state(PART:"button_bg", "default", 0.0);
4848 program { name: "landscape_mode";
4850 signal: "elm,state,orient,90";
4851 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4853 program { name: "landscape_mode2";
4855 signal: "elm,state,orient,270";
4856 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4858 program { name: "portrait_mode";
4860 signal: "elm,state,orient,0";
4861 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4863 program { name: "portrait_mode2";
4865 signal: "elm,state,orient,180";
4866 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4868 program { name: "focused";
4869 //signal: "elm,action,focus";
4871 action: STATE_SET "focused" 0.0;
4872 target: "button_image";
4875 program { name: "unfocused";
4876 //signal: "elm,action,unfocus";
4878 action: STATE_SET "default" 0.0;
4879 target: "button_image";
4880 action: STATE_SET "visible" 0.0;
4886 //////////////////////////////////////////////////////////////
4887 group { name: "elm/button/base/naviframe/toolbar/left";
4888 inherit: "elm/button/base/naviframe/toolbar/default";
4890 part { name: "button_bg";
4893 description { state: "default" 0.0;
4894 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4895 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4897 rel1.to: "padding_text_left_top";
4898 rel2.to: "padding_text_right_bottom";
4901 description { state: "landscape" 0.0;
4902 inherit: "default" 0.0;
4903 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4904 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4907 part { name: "elm.text";
4912 description { state: "default" 0.0;
4915 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4918 to: "padding_left_top";
4922 to: "padding_right_bottom";
4929 style: "btn_naviframe_toolbar";
4932 description { state: "landscape" 0.0;
4933 inherit: "default" 0.0;
4934 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4936 description { state: "visible" 0.0;
4937 inherit: "default" 0.0;
4940 description { state: "landscape_visible" 0.0;
4941 inherit: "landscape" 0.0;
4944 description { state: "clicked" 0.0;
4945 inherit: "default" 0.0;
4948 style: "btn_naviframe_toolbar_pressed";
4951 description { state: "landscape_clicked" 0.0;
4952 inherit: "landscape" 0.0;
4955 style: "btn_naviframe_toolbar_pressed";
4958 description { state: "disabled" 0.0;
4959 inherit: "default" 0.0;
4961 description { state: "landscape_disabled" 0.0;
4962 inherit: "landscape" 0.0;
4964 description { state: "disabled_visible" 0.0;
4965 inherit: "default" 0.0;
4968 style: "btn_naviframe_toolbar_disabled";
4971 description { state: "landscape_disabled_visible" 0.0;
4972 inherit: "landscape" 0.0;
4975 style: "btn_naviframe_toolbar_disabled";
4978 description { state: "focused" 0.0;
4979 inherit: "default" 0.0;
4982 style: "btn_naviframe_toolbar_pressed";
4985 description { state: "landscape_focused" 0.0;
4986 inherit: "landscape" 0.0;
4989 style: "btn_naviframe_toolbar_pressed";
4996 //////////////////////////////////////////////////////////////
4997 group { name: "elm/button/base/naviframe/toolbar/right";
4998 inherit: "elm/button/base/naviframe/toolbar/default";
5000 part { name: "button_bg";
5003 description { state: "default" 0.0;
5004 min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
5005 max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
5007 rel1.to: "padding_text_left_top";
5008 rel2.to: "padding_text_right_bottom";
5011 description { state: "landscape" 0.0;
5012 inherit: "default" 0.0;
5013 min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5014 max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5017 part { name: "elm.text";
5022 description { state: "default" 0.0;
5025 min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
5028 to: "padding_left_top";
5032 to: "padding_right_bottom";
5039 style: "btn_naviframe_toolbar";
5042 description { state: "landscape" 0.0;
5043 inherit: "default" 0.0;
5044 min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
5046 description { state: "visible" 0.0;
5047 inherit: "default" 0.0;
5050 description { state: "landscape_visible" 0.0;
5051 inherit: "landscape" 0.0;
5054 description { state: "clicked" 0.0;
5055 inherit: "default" 0.0;
5058 style: "btn_naviframe_toolbar_pressed";
5061 description { state: "landscape_clicked" 0.0;
5062 inherit: "landscape" 0.0;
5065 style: "btn_naviframe_toolbar_pressed";
5068 description { state: "disabled" 0.0;
5069 inherit: "default" 0.0;
5071 description { state: "landscape_disabled" 0.0;
5072 inherit: "landscape" 0.0;
5074 description { state: "disabled_visible" 0.0;
5075 inherit: "default" 0.0;
5078 style: "btn_naviframe_toolbar_disabled";
5081 description { state: "landscape_disabled_visible" 0.0;
5082 inherit: "landscape" 0.0;
5085 style: "btn_naviframe_toolbar_disabled";
5088 description { state: "focused" 0.0;
5089 inherit: "default" 0.0;
5092 style: "btn_naviframe_toolbar_pressed";
5095 description { state: "landscape_focused" 0.0;
5096 inherit: "landscape" 0.0;
5099 style: "btn_naviframe_toolbar_pressed";
5106 ////////////////////////////////////////////////////////////////////
5107 group { name: "elm/button/base/toolbar/segmentedcontrol";
5109 image: "00_toolbar_button.png" COMP;
5110 image: "00_toolbar_button_press.png" COMP;
5111 image: "00_toolbar_button_dim.png" COMP;
5112 image: "00_button_icon_arrow.png" COMP;
5113 image: "00_button_icon_arrow_press.png" COMP;
5116 style { name: "btn_toolbar_segmentedcontrol";
5117 base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
5124 public button_state = BUTTON_STATE_ENABLED;
5127 part { name: "button_image";
5129 description { state: "default" 0.0;
5130 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5131 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5133 rel1.to: "padding_text_left_top";
5134 rel2.to: "padding_text_right_bottom";
5136 normal: "00_toolbar_button.png";
5137 border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5141 description { state: "clicked" 0.0;
5142 inherit: "default" 0.0;
5143 image.normal: "00_toolbar_button_press.png";
5145 description { state: "disabled" 0.0;
5146 inherit: "default" 0.0;
5147 image.normal: "00_toolbar_button_dim.png";
5149 description { state: "focused" 0.0;
5150 inherit: "default" 0.0;
5151 image.normal: "00_toolbar_button_press.png";
5154 part { name: "padding_left_top";
5158 description { state: "default" 0.0;
5161 rel2.relative: 0.0 0.0;
5162 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5166 part { name: "padding_right_bottom";
5170 description { state: "default" 0.0;
5172 rel1.relative: 1.0 1.0;
5173 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5178 part { name: "padding_text_left_top";
5182 description { state: "default" 0.0;
5184 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5186 rel1.to: "elm.text";
5194 part { name: "padding_text_right_bottom";
5198 description { state: "default" 0.0;
5199 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5215 part { name: "elm.text";
5219 effect: FAR_SHADOW BOTTOM;
5221 description { state: "default" 0.0;
5224 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5227 to: "padding_left_top";
5231 to: "padding_right_bottom";
5233 color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5234 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5238 style: "btn_toolbar_segmentedcontrol";
5241 description { state: "visible" 0.0;
5242 inherit: "default" 0.0;
5245 description { state: "clicked" 0.0;
5246 inherit: "default" 0.0;
5248 color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5250 description { state: "disabled" 0.0;
5251 inherit: "default" 0.0;
5253 description { state: "disabled_visible" 0.0;
5254 inherit: "default" 0.0;
5255 color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5256 color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5259 description { state: "focused" 0.0;
5260 inherit: "default" 0.0;
5262 color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5265 part { name: "icon_padding";
5268 description { state: "default" 0.0;
5277 rel2.to: "elm.text";
5280 part { name: "icon";
5282 clip_to: "icon_clipper";
5283 description { state: "default" 0.0;
5284 min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5285 max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5290 to_x: "icon_padding";
5296 to_x: "icon_padding";
5299 image.normal: "00_button_icon_arrow.png";
5301 description { state: "clicked" 0.0;
5302 inherit: "default" 0.0;
5303 image.normal: "00_button_icon_arrow_press.png";
5306 part { name: "icon_clipper";
5308 description { state: "default" 0.0;
5309 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5311 description { state: "clicked" 0.0;
5312 inherit: "default" 0.0;
5313 color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5316 part { name: "disclip";
5318 description { state: "default" 0.0;
5319 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5321 description { state: "disabled" 0.0;
5322 inherit: "default" 0.0;
5323 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5326 part { name: "over2";
5329 ignore_flags: ON_HOLD;
5330 description { state: "default" 0.0;
5331 rel1.to: "button_image";
5332 rel2.to: "button_image";
5336 part { name: "over3";
5339 description { state: "default" 0.0;
5340 rel1.to: "button_image";
5341 rel2.to: "button_image";
5345 part { name: "disabler";
5347 description { state: "default" 0.0;
5348 rel1.to: "button_image";
5349 rel2.to: "button_image";
5353 description { state: "disabled" 0.0;
5354 inherit: "default" 0.0;
5360 program { name: "button_click";
5361 signal: "mouse,down,1";
5363 action: SIGNAL_EMIT "elm,action,press" "";
5364 after: "button_click_anim";
5366 program { name: "button_click_anim";
5367 action: STATE_SET "clicked" 0.0;
5368 target: "button_image";
5371 target: "icon_clipper";
5373 program { name: "button_double_click";
5374 signal: "mouse,down,1,double";
5376 after: "button_click_anim";
5378 program { name: "button_unpress";
5379 action: SIGNAL_EMIT "elm,action,unpress" "";
5381 program { name: "button_mouseout_clicked";
5382 signal: "mouse,up,1";
5387 get_state(PART:"elm.text", st, 30, vl);
5388 if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5390 emit("elm,action,default,text,set", "");
5391 set_state(PART:"elm.text", "visible", 0.0);
5393 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5394 set_state(PART:"button_image", "default", 0.0);
5395 set_state(PART:"icon", "default", 0.0);
5396 set_state(PART:"icon_clipper", "default", 0.0);
5398 after: button_unpress;
5400 program { name: "touch_snd";
5401 signal: "mouse,clicked,1";
5403 action: PLAY_SAMPLE "touch_sound" 1.0;
5404 after: button_unclick3;
5406 program { name: "button_unclick3";
5407 action: SIGNAL_EMIT "elm,action,click" "";
5409 program { name: "text_show";
5410 signal: "elm,state,text,visible";
5413 if (get_int(button_state) != BUTTON_STATE_DISABLED)
5414 set_state(PART:"elm.text", "visible", 0.0);
5416 set_state(PART:"elm.text", "disabled_visible", 0.0);
5419 program { name: "text_hide";
5420 signal: "elm,state,text,hidden";
5422 action: STATE_SET "default" 0.0;
5425 program { name: "disable";
5426 signal: "elm,state,disabled";
5428 action: STATE_SET "disabled" 0.0;
5429 target: "button_image";
5432 after: "disable_text";
5434 program { name: "disable_text";
5438 get_state(PART:"elm.text", st, 30, vl);
5439 if (!strcmp(st, "visible"))
5440 set_state(PART:"elm.text", "disabled_visible", 0.0);
5442 set_state(PART:"elm.text", "disabled", 0.0);
5443 set_int(button_state, BUTTON_STATE_DISABLED);
5446 program { name: "enable";
5447 signal: "elm,state,enabled";
5449 action: STATE_SET "default" 0.0;
5450 target: "button_image";
5453 after: "enable_text";
5455 program { name: "enable_text";
5459 get_state(PART:"elm.text", st, 30, vl);
5460 if (!strcmp(st, "disabled_visible"))
5461 set_state(PART:"elm.text", "visible", 0.0);
5463 set_state(PART:"elm.text", "default", 0.0);
5464 set_int(button_state, BUTTON_STATE_ENABLED);
5467 program { name: "focused";
5468 //signal: "elm,action,focus";
5470 action: STATE_SET "focused" 0.0;
5471 target: "button_image";
5474 program { name: "unfocused";
5475 //signal: "elm,action,unfocus";
5477 action: STATE_SET "default" 0.0;
5478 target: "button_image";
5479 action: STATE_SET "visible" 0.0;
5485 ////////////////////////////////////////////////////////////////////
5486 group { name: "elm/button/base/naviframe/title_icon";
5488 part { name: "button_image";
5491 description { state: "default" 0.0;
5493 min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5494 max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5496 description { state: "landscape" 0.0;
5498 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5499 max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5502 part { name: "top_padding";
5505 description { state: "default" 0.0;
5507 min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5510 rel1 { relative: 0.0 0.0; to: "button_image"; }
5511 rel2 { relative: 1.0 0.0; to: "button_image"; }
5513 description { state: "landscape" 0.0;
5514 inherit: "default" 0.0;
5515 min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5518 part { name: "elm.swallow.content";
5521 clip_to: "elm.icon.clipper";
5522 description { state: "default" 0.0;
5524 max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5527 rel1 { relative: 0.0 1.0; to: "top_padding"; }
5528 rel2 { relative: 1.0 1.0; to: "button_image"; }
5530 description { state: "visible" 0.0;
5531 inherit: "default" 0.0;
5535 part { name: "elm.swallow.icon.proxy";
5538 clip_to: "elm.icon.proxy.clipper";
5539 description { state: "default" 0.0;
5540 source: "elm.swallow.content";
5541 rel1.to: "elm.swallow.content";
5543 rel2.to: "elm.swallow.content";
5547 part { name: "elm.icon.proxy.clipper";
5549 description { state: "default" 0.0;
5550 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5552 description { state: "clicked" 0.0;
5553 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5555 description { state: "disabled" 0.0;
5556 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5559 part { name: "elm.icon.clipper";
5561 description { state: "default" 0.0;
5562 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5564 description { state: "clicked" 0.0;
5565 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5567 description { state: "disabled" 0.0;
5568 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5571 part { name: "over2";
5573 ignore_flags: ON_HOLD;
5574 description { state: "default" 0.0;
5578 part { name: "over3";
5581 description { state: "default" 0.0;
5585 part { name: "disabler";
5587 description { state: "default" 0.0;
5591 description { state: "disabled" 0.0;
5592 inherit: "default" 0.0;
5598 program { name: "button_click";
5599 signal: "mouse,down,1";
5601 action: SIGNAL_EMIT "elm,action,press" "";
5602 after: "button_click_anim";
5604 program { name: "button_click_anim";
5606 set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5607 set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5610 program { name: "button_double_click";
5611 signal: "mouse,down,1,double";
5613 after: "button_click_anim";
5615 program { name: "button_unpress";
5616 action: SIGNAL_EMIT "elm,action,unpress" "";
5618 program { name: "button_mouseout_clicked";
5619 signal: "mouse,up,1";
5621 action: STATE_SET "default" 0.0;
5622 target: "elm.icon.clipper";
5623 target: "elm.icon.proxy.clipper";
5624 after: button_unpress;
5626 program { name: "touch_snd";
5627 signal: "mouse,clicked,1";
5629 action: PLAY_SAMPLE "touch_sound" 1.0;
5630 after: button_unclick3;
5632 program { name: "button_unclick3";
5633 action: SIGNAL_EMIT "elm,action,click" "";
5635 program { name: "icon_show";
5636 signal: "elm,state,icon,visible";
5638 action: STATE_SET "visible" 0.0;
5639 target: "elm.swallow.content";
5641 program { name: "icon_hide";
5642 signal: "elm,state,icon,hidden";
5644 action: STATE_SET "default" 0.0;
5645 target: "elm.swallow.content";
5647 program { name: "disable";
5648 signal: "elm,state,disabled";
5651 set_state(PART:"disabler", "disabled", 0.0);
5652 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5653 set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5656 program { name: "enable";
5657 signal: "elm,state,enabled";
5660 set_state(PART:"disabler", "default", 0.0);
5661 set_state(PART:"elm.icon.clipper", "default", 0.0);
5662 set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5665 program { name: "change_to_landscape";
5666 signal: "elm,state,landscape";
5668 action: STATE_SET "landscape" 0.0;
5669 target: "button_image";
5670 target: "top_padding";
5672 program { name: "change_to_portrait";
5673 signal: "elm,state,portrait";
5675 action: STATE_SET "default" 0.0;
5676 target: "button_image";
5677 target: "top_padding";
5679 /* program { name: "landscape_mode";
5681 signal: "elm,state,orient,90";
5682 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5684 program { name: "landscape_mode2";
5686 signal: "elm,state,orient,270";
5687 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5689 program { name: "portrait_mode";
5691 signal: "elm,state,orient,0";
5692 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5694 program { name: "portrait_mode2";
5696 signal: "elm,state,orient,180";
5697 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5702 /////////////////////////////////////////////////////////////////////////////////////////
5703 group { name: "elm/button/base/naviframe/more/default";
5705 image: "00_icon_more.png" COMP;
5708 part { name: "button_image";
5711 description { state: "default" 0.0;
5712 min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5713 max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5716 description { state: "landscape" 0.0;
5717 min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5718 max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5722 part { name: "more_image";
5725 clip_to: "more_image.clipper";
5726 description { state: "default" 0.0;
5727 min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5728 max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5730 rel1.to: "button_image";
5731 rel2.to: "button_image";
5732 image.normal: "00_icon_more.png";
5735 part { name: "more_image.clipper";
5737 description { state: "default" 0.0;
5738 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5740 description { state: "clicked" 0.0;
5741 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5743 description { state: "disabled" 0.0;
5744 color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5747 part { name: "over2";
5749 ignore_flags: ON_HOLD;
5750 description { state: "default" 0.0;
5754 part { name: "over3";
5757 description { state: "default" 0.0;
5761 part { name: "disabler";
5763 description { state: "default" 0.0;
5767 description { state: "disabled" 0.0;
5768 inherit: "default" 0.0;
5774 program { name: "button_click";
5775 signal: "mouse,down,1";
5777 action: SIGNAL_EMIT "elm,action,press" "";
5778 after: "button_click_anim";
5780 program { name: "button_click_anim";
5782 set_state(PART:"more_image.clipper", "clicked", 0.0);
5785 program { name: "button_double_click";
5786 signal: "mouse,down,1,double";
5788 after: "button_click_anim";
5790 program { name: "button_unclick";
5791 signal: "mouse,up,1";
5793 action: SIGNAL_EMIT "elm,action,unpress" "";
5794 after: "button_unclick_anim";
5796 program { name: "button_unclick_anim";
5798 set_state(PART:"more_image.clipper", "default", 0.0);
5801 program { name: "touch_snd";
5802 signal: "mouse,clicked,1";
5804 action: PLAY_SAMPLE "touch_sound" 1.0;
5805 after: button_unclick3;
5807 program { name: "button_unclick3";
5808 action: SIGNAL_EMIT "elm,action,click" "";
5810 program { name: "disable";
5811 signal: "elm,state,disabled";
5814 set_state(PART:"disabler", "disabled", 0.0);
5815 set_state(PART:"more_image.clipper", "disabled", 0.0);
5818 program { name: "enable";
5819 signal: "elm,state,enabled";
5822 set_state(PART:"disabler", "default", 0.0);
5823 set_state(PART:"more_image.clipper", "default", 0.0);
5826 program { name: "change_to_landscape";
5827 signal: "elm,state,landscape";
5829 action: STATE_SET "landscape" 0.0;
5830 target: "button_image";
5832 program { name: "change_to_portrait";
5833 signal: "elm,state,portrait";
5835 action: STATE_SET "default" 0.0;
5836 target: "button_image";
5838 program { name: "landscape_mode";
5840 signal: "elm,state,orient,90";
5841 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5843 program { name: "landscape_mode2";
5845 signal: "elm,state,orient,270";
5846 action: SIGNAL_EMIT "elm,state,landscape" "elm";
5848 program { name: "portrait_mode";
5850 signal: "elm,state,orient,0";
5851 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5853 program { name: "portrait_mode2";
5855 signal: "elm,state,orient,180";
5856 action: SIGNAL_EMIT "elm,state,portrait" "elm";
5861 ///////////////////////////////////////////////////////////////////////////////////////
5862 group { name: "elm/button/base/tickernoti";
5864 image: "00_notification_button.png" COMP;
5865 image: "00_notification_button_press.png" COMP;
5866 image: "00_notification_button_dim.png" COMP;
5869 public button_state = BUTTON_STATE_ENABLED;
5872 part { name: "button_image";
5874 description { state: "default" 0.0;
5875 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5876 max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5878 normal: "00_notification_button.png";
5879 border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5883 description { state: "clicked" 0.0;
5884 inherit: "default" 0.0;
5885 image.normal: "00_notification_button_press.png";
5887 description { state: "disabled" 0.0;
5888 inherit: "default" 0.0;
5889 image.normal: "00_notification_button_dim.png";
5891 description { state: "focused" 0.0;
5892 inherit: "default" 0.0;
5893 image.normal: "00_notification_button_press.png";
5896 part { name: "padding_left_top";
5900 description { state: "default" 0.0;
5903 rel2.relative: 0.0 0.0;
5904 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5912 description { state: "default" 0.0;
5913 min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5916 description { state: "visible" 0.0;
5917 inherit: "default" 0.0;
5919 description { state: "icononly" 0.0;
5920 inherit: "default" 0.0;
5923 part { name: "padding_right_bottom";
5927 description { state: "default" 0.0;
5929 rel1.relative: 1.0 1.0;
5930 min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5935 part { name: "icon_rect";
5939 description { state: "default" 0.0;
5945 to: "padding_left_top";
5949 to_x: "padding_left_top";
5950 to_y: "padding_right_bottom";
5954 description { state: "visible" 0.0;
5955 inherit: "default" 0.0;
5956 min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5957 max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5959 description { state: "icononly" 0.0;
5960 inherit: "default" 0.0;
5963 part { name: "padding_after_icon";
5967 description { state: "default" 0.0; //when only icon or no icon is there
5976 rel2.to: "icon_rect";
5978 description { state: "visible" 0.0;
5979 inherit: "default" 0.0;
5980 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5982 description { state: "icononly" 0.0;
5983 inherit: "default" 0.0;
5986 part { name: "padding_before_text";
5990 description { state: "default" 0.0; //when only icon or no icon is there
5994 min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5998 to_y: "padding_left_top";
6003 to_y: "padding_right_bottom";
6007 part { name: "elm.swallow.content";
6011 description { state: "default" 0.0;
6017 to: "padding_left_top";
6021 to_x: "padding_left_top";
6022 to_y: "padding_right_bottom";
6025 description { state: "visible" 0.0;
6027 min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6028 max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6032 to_x: "padding_before_text";
6033 to_y: "padding_left_top";
6037 to_x: "padding_before_text";
6038 to_y: "padding_right_bottom";
6041 description { state: "icononly" 0.0;
6042 min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6043 max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6046 part { name: "elm.text";
6049 effect: FAR_SHADOW BOTTOM;
6052 description { state: "default" 0.0;
6056 to_x: "padding_after_icon";
6057 to_y: "padding_left_top";
6061 to: "padding_right_bottom";
6063 color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6064 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6066 font: "Tizen:style=Regular";
6067 size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6068 text_class: "tizen";
6071 description { state: "visible" 0.0;
6072 inherit: "default" 0.0;
6075 description { state: "clicked" 0.0;
6076 inherit: "default" 0.0;
6078 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6080 description { state: "disabled" 0.0;
6081 inherit: "default" 0.0;
6083 description { state: "disabled_visible" 0.0;
6084 inherit: "default" 0.0;
6085 color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6086 color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6089 description { state: "focused" 0.0;
6090 inherit: "default" 0.0;
6092 color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6095 part { name: "over2";
6098 ignore_flags: ON_HOLD;
6099 description { state: "default" 0.0;
6103 part { name: "over3";
6106 description { state: "default" 0.0;
6110 part { name: "clipper";
6112 description { state: "default" 0.0;
6113 color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6115 description { state: "disabled" 0.0;
6116 inherit: "default" 0.0;
6117 color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6120 part { name: "disabler";
6122 description { state: "default" 0.0;
6126 description { state: "disabled" 0.0;
6127 inherit: "default" 0.0;
6133 program { name: "button_click";
6134 signal: "mouse,down,1";
6136 action: SIGNAL_EMIT "elm,action,press" "";
6137 after: "button_click_anim";
6139 program { name: "button_click_anim";
6140 action: STATE_SET "clicked" 0.0;
6141 target: "button_image";
6142 after: "text_clicked";
6144 program { name: "text_clicked";
6148 get_state(PART:"elm.text", st, 30, vl);
6149 if (!strcmp(st, "visible"))
6150 set_state(PART:"elm.text", "clicked", 0.0);
6153 program { name: "button_double_click";
6154 signal: "mouse,down,1,double";
6156 after: "button_click_anim";
6158 program { name: "button_unpress";
6159 action: SIGNAL_EMIT "elm,action,unpress" "";
6161 program { name: "button_mouseout_clicked";
6162 signal: "mouse,up,1";
6167 get_state(PART:"elm.swallow.content", st, 30, vl);
6168 if (strcmp(st, "icononly"))
6170 emit("elm,action,default,text,set", "");
6171 set_state(PART:"elm.text", "visible", 0.0);
6173 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6174 set_state(PART:"button_image", "default", 0.0);
6176 after: button_unpress;
6178 program { name: "touch_snd";
6179 signal: "mouse,clicked,1";
6181 action: PLAY_SAMPLE "touch_sound" 1.0;
6182 after: button_unclick3;
6184 program { name: "button_unclick3";
6185 action: SIGNAL_EMIT "elm,action,click" "";
6187 program { name: "text_show";
6188 signal: "elm,state,text,visible";
6193 get_state(PART:"elm.swallow.content", st, 30, vl);
6194 if (!strcmp(st, "icononly"))
6196 set_state(PART:"elm.swallow.content", "visible", 0.0);
6197 set_state(PART:"icon_rect", "visible", 0.0);
6198 set_state(PART:"padding_after_icon", "visible", 0.0);
6199 set_state(PART:"bg", "visible", 0.0);
6201 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6202 set_state(PART:"elm.text", "visible", 0.0);
6204 set_state(PART:"elm.text", "disabled_visible", 0.0);
6207 program { name: "text_hide";
6208 signal: "elm,state,text,hidden";
6213 get_state(PART:"elm.swallow.content", st, 30, vl);
6214 if (!strcmp(st, "visible"))
6216 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6217 set_state(PART:"icon_rect", "icononly", 0.0);
6218 set_state(PART:"padding_after_icon", "icononly", 0.0);
6219 set_state(PART:"bg", "icononly", 0.0);
6221 set_state(PART:"elm.text", "default", 0.0);
6224 program { name: "icon_show";
6225 signal: "elm,state,icon,visible";
6230 get_state(PART:"elm.text", st, 30, vl);
6231 if (!strcmp(st, "visible"))
6233 set_state(PART:"elm.swallow.content", "visible", 0.0);
6234 set_state(PART:"icon_rect", "visible", 0.0);
6235 set_state(PART:"padding_after_icon", "visible", 0.0);
6236 set_state(PART:"bg", "visible", 0.0);
6240 set_state(PART:"elm.swallow.content", "icononly", 0.0);
6241 set_state(PART:"icon_rect", "icononly", 0.0);
6242 set_state(PART:"padding_after_icon", "icononly", 0.0);
6243 set_state(PART:"bg", "icononly", 0.0);
6247 program { name: "icon_hide";
6248 signal: "elm,state,icon,hidden";
6250 action: STATE_SET "default" 0.0;
6251 target: "elm.swallow.content";
6252 target: "padding_after_icon";
6253 target: "icon_rect";
6256 program { name: "disable";
6257 signal: "elm,state,disabled";
6259 action: STATE_SET "disabled" 0.0;
6260 target: "button_image";
6263 after: "disable_text";
6265 program { name: "disable_text";
6269 get_state(PART:"elm.text", st, 30, vl);
6270 if (!strcmp(st, "visible"))
6271 set_state(PART:"elm.text", "disabled_visible", 0.0);
6273 set_state(PART:"elm.text", "disabled", 0.0);
6274 set_int(button_state, BUTTON_STATE_DISABLED);
6277 program { name: "enable";
6278 signal: "elm,state,enabled";
6280 action: STATE_SET "default" 0.0;
6281 target: "button_image";
6284 after: "enable_text";
6286 program { name: "enable_text";
6290 get_state(PART:"elm.text", st, 30, vl);
6291 if (!strcmp(st, "disabled_visible"))
6292 set_state(PART:"elm.text", "visible", 0.0);
6294 set_state(PART:"elm.text", "default", 0.0);
6295 set_int(button_state, BUTTON_STATE_ENABLED);
6298 program { name: "focused";
6299 //signal: "elm,action,focus";
6301 action: STATE_SET "focused" 0.0;
6302 target: "button_image";
6305 program { name: "unfocused";
6306 //signal: "elm,action,unfocus";
6308 action: STATE_SET "default" 0.0;
6309 target: "button_image";
6310 after: "unfocus_text";
6312 program { name: "unfocus_text";
6313 action: STATE_SET "visible" 0.0;
6319 ///////////////////////////////////////////////////////////////////////////////////////
6320 group { name: "elm/button/base/expandable_number";
6321 alias: "elm/button/base/text_only/expandable_number";
6323 image: "00_button_01.png" COMP;
6324 image: "00_button_01_press.png" COMP;
6325 image: "00_button_01_dim.png" COMP;
6326 image: "00_arrow_expand.png" COMP;
6329 public button_state = BUTTON_STATE_ENABLED;
6332 part { name: "button_image";
6334 description { state: "default" 0.0;
6335 min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6336 max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6338 normal: "00_button_01.png";
6339 border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6343 description { state: "clicked" 0.0;
6344 inherit: "default" 0.0;
6345 image.normal: "00_button_01_press.png";
6347 description { state: "disabled" 0.0;
6348 inherit: "default" 0.0;
6349 image.normal: "00_button_01_dim.png";
6351 description { state: "focused" 0.0;
6352 inherit: "default" 0.0;
6353 image.normal: "00_button_01_press.png";
6356 part { name: "padding_left_top";
6360 description { state: "default" 0.0;
6363 rel2.relative: 0.0 0.0;
6364 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6368 part { name: "padding_right_bottom";
6372 description { state: "default" 0.0;
6375 rel1.relative: 1.0 1.0;
6376 min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6380 part { name: "icon_rect";
6384 description { state: "default" 0.0;
6386 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6387 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6391 to_x: "padding_right_bottom";
6392 to_y: "padding_left_top";
6396 to: "padding_right_bottom";
6401 part { name: "arrow_expand";
6403 clip_to: "icon_clipper";
6405 description { state: "default" 0.0;
6407 min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6408 max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6410 rel1.to: "icon_rect";
6411 rel2.to: "icon_rect";
6412 image.normal:"00_arrow_expand.png";
6415 part { name: "elm.text";
6418 effect: SHADOW BOTTOM;
6420 description { state: "default" 0.0;
6421 min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6422 max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6426 to: "padding_left_top";
6430 to_x:"padding_left_top";
6431 to_y:"padding_right_bottom";
6434 color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6435 color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6437 font: "Tizen:style=Regular";
6438 size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6442 text_class: "tizen";
6445 description { state: "visible" 0.0;
6446 inherit: "default" 0.0;
6448 description { state: "clicked" 0.0;
6449 inherit: "default" 0.0;
6450 color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6452 description { state: "disabled" 0.0;
6453 inherit: "default" 0.0;
6455 description { state: "disabled_visible" 0.0;
6456 inherit: "default" 0.0;
6457 color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6458 color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6460 description { state: "focused" 0.0;
6461 inherit: "default" 0.0;
6462 color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6465 part { name: "icon_clipper";
6468 description { state: "default" 0.0;
6469 color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6471 description { state: "clicked" 0.0;
6472 color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6474 description { state: "disabled" 0.0;
6475 color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6478 part { name: "over2";
6481 ignore_flags: ON_HOLD;
6482 description { state: "default" 0.0;
6486 part { name: "over3";
6489 description { state: "default" 0.0;
6493 part { name: "disabler";
6495 description { state: "default" 0.0;
6499 description { state: "disabled" 0.0;
6500 inherit: "default" 0.0;
6506 program { name: "button_click";
6507 signal: "mouse,down,1";
6509 action: SIGNAL_EMIT "elm,action,press" "";
6510 after: "button_click_anim";
6512 program { name: "button_click_anim";
6513 action: STATE_SET "clicked" 0.0;
6514 target: "button_image";
6515 target: "icon_clipper";
6516 after: "text_clicked";
6518 program { name: "text_clicked";
6522 get_state(PART:"elm.text", st, 30, vl);
6523 if (!strcmp(st, "visible"))
6524 set_state(PART:"elm.text", "clicked", 0.0);
6527 program { name: "button_double_click";
6528 signal: "mouse,down,1,double";
6530 after: "button_click_anim";
6532 program { name: "button_unpress";
6533 action: SIGNAL_EMIT "elm,action,unpress" "";
6535 program { name: "button_mouseout_clicked";
6536 signal: "mouse,up,1";
6539 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6541 set_state(PART:"button_image", "default", 0.0);
6542 set_state(PART:"elm.text", "visible", 0.0);
6543 set_state(PART:"icon_clipper", "default", 0.0);
6546 after: button_unpress;
6548 program { name: "touch_snd";
6549 signal: "mouse,clicked,1";
6551 action: PLAY_SAMPLE "touch_sound" 1.0;
6552 after: button_unclick3;
6554 program { name: "button_unclick3";
6555 action: SIGNAL_EMIT "elm,action,click" "";
6557 program { name: "text_show";
6558 signal: "elm,state,text,visible";
6561 if (get_int(button_state) != BUTTON_STATE_DISABLED)
6562 set_state(PART:"elm.text", "visible", 0.0);
6564 set_state(PART:"elm.text", "disabled_visible", 0.0);
6567 program { name: "text_hide";
6568 signal: "elm,state,text,hidden";
6571 set_state(PART:"elm.text", "default", 0.0);
6574 program { name: "disable";
6575 signal: "elm,state,disabled";
6577 action: STATE_SET "disabled" 0.0;
6578 target: "button_image";
6580 target: "icon_clipper";
6581 after: "disable_text";
6583 program { name: "disable_text";
6587 get_state(PART:"elm.text", st, 30, vl);
6588 if (!strcmp(st, "visible"))
6589 set_state(PART:"elm.text", "disabled_visible", 0.0);
6591 set_state(PART:"elm.text", "disabled", 0.0);
6592 set_int(button_state, BUTTON_STATE_DISABLED);
6595 program { name: "enable";
6596 signal: "elm,state,enabled";
6598 action: STATE_SET "default" 0.0;
6599 target: "button_image";
6601 target: "icon_clipper";
6602 after: "enable_text";
6604 program { name: "enable_text";
6608 get_state(PART:"elm.text", st, 30, vl);
6609 if (!strcmp(st, "disabled_visible"))
6610 set_state(PART:"elm.text", "visible", 0.0);
6612 set_state(PART:"elm.text", "default", 0.0);
6613 set_int(button_state, BUTTON_STATE_ENABLED);
6616 program { name: "focused";
6617 //signal: "elm,action,focus";
6619 action: STATE_SET "focused" 0.0;
6620 target: "button_image";
6623 program { name: "unfocused";
6624 //signal: "elm,action,unfocus";
6626 action: STATE_SET "default" 0.0;
6627 target: "button_image";
6628 after: "unfocus_text";
6630 program { name: "unfocus_text";
6631 action: STATE_SET "visible" 0.0;
6637 ////////////////////////////////////////////////////////////////////////
6638 group { name: "elm/button/base/bubble_sent";
6639 inherit: "elm/button/base/style1";
6641 image: "00_messagebubble_button_sent.png" COMP;
6642 image: "00_messagebubble_button_sent_press.png" COMP;
6643 image: "00_messagebubble_button_sent_dim.png" COMP;
6646 part { name: "button_image";
6648 description { state: "default" 0.0;
6650 normal: "00_messagebubble_button_sent.png";
6651 border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6655 description { state: "clicked" 0.0;
6656 inherit: "default" 0.0;
6657 image.normal: "00_messagebubble_button_sent_press.png";
6659 description { state: "disabled" 0.0;
6660 inherit: "default" 0.0;
6661 image.normal: "00_messagebubble_button_sent_dim.png";
6663 description { state: "focused" 0.0;
6664 inherit: "default" 0.0;
6665 image.normal: "00_messagebubble_button_sent_press.png";
6668 part { name: "elm.text";
6671 effect: FAR_SHADOW BOTTOM;
6674 description { state: "default" 0.0;
6678 to_x: "padding_after_icon";
6679 to_y: "padding_left_top";
6683 to: "padding_right_bottom";
6685 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6686 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6688 font: "Tizen:style=Regular";
6689 size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6692 text_class: "tizen";
6695 description { state: "visible" 0.0;
6696 inherit: "default" 0.0;
6699 description { state: "clicked" 0.0;
6700 inherit: "default" 0.0;
6702 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6704 description { state: "disabled" 0.0;
6705 inherit: "default" 0.0;
6707 description { state: "disabled_visible" 0.0;
6708 inherit: "default" 0.0;
6709 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6712 description { state: "focused" 0.0;
6713 inherit: "default" 0.0;
6715 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6721 ////////////////////////////////////////////////////////////////////////
6722 group { name: "elm/button/base/bubble_sent/multiline";
6723 inherit: "elm/button/base/bubble_sent";
6725 style { name: "bubble_sent_multiline";
6726 base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6733 part { name: "elm.text";
6736 effect: FAR_SHADOW BOTTOM;
6739 description { state: "default" 0.0;
6744 to_x: "padding_after_icon";
6745 to_y: "padding_left_top";
6749 to: "padding_right_bottom";
6751 color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6752 color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6754 style: "bubble_sent_multiline";
6757 description { state: "visible" 0.0;
6758 inherit: "default" 0.0;
6761 description { state: "clicked" 0.0;
6762 inherit: "default" 0.0;
6764 color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6766 description { state: "disabled" 0.0;
6767 inherit: "default" 0.0;
6769 description { state: "disabled_visible" 0.0;
6770 inherit: "default" 0.0;
6771 color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6774 description { state: "focused" 0.0;
6775 inherit: "default" 0.0;
6777 color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6783 ///////////////////////////////////////////////////////////////////////
6784 group { name: "elm/button/base/bubble_receive";
6785 inherit: "elm/button/base/style1";
6787 image: "00_messagebubble_button_receive.png" COMP;
6788 image: "00_messagebubble_button_receive_press.png" COMP;
6789 image: "00_messagebubble_button_receive_dim.png" COMP;
6792 part { name: "button_image";
6794 description { state: "default" 0.0;
6796 normal: "00_messagebubble_button_receive.png";
6797 border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6801 description { state: "clicked" 0.0;
6802 inherit: "default" 0.0;
6803 image.normal: "00_messagebubble_button_receive_press.png";
6805 description { state: "disabled" 0.0;
6806 inherit: "default" 0.0;
6807 image.normal: "00_messagebubble_button_receive_dim.png";
6809 description { state: "focused" 0.0;
6810 inherit: "default" 0.0;
6811 image.normal: "00_messagebubble_button_receive_press.png";
6814 part { name: "elm.text";
6817 effect: SHADOW BOTTOM;
6820 description { state: "default" 0.0;
6824 to_x: "padding_after_icon";
6825 to_y: "padding_left_top";
6829 to: "padding_right_bottom";
6831 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6832 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6834 font: "Tizen:style=Regular";
6835 size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6838 text_class: "tizen";
6841 description { state: "visible" 0.0;
6842 inherit: "default" 0.0;
6845 description { state: "clicked" 0.0;
6846 inherit: "default" 0.0;
6848 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6850 description { state: "disabled" 0.0;
6851 inherit: "default" 0.0;
6853 description { state: "disabled_visible" 0.0;
6854 inherit: "default" 0.0;
6855 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6858 description { state: "focused" 0.0;
6859 inherit: "default" 0.0;
6861 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6867 ///////////////////////////////////////////////////////////////////////
6868 group { name: "elm/button/base/bubble_receive/multiline";
6869 inherit: "elm/button/base/bubble_receive";
6871 style { name: "bubble_receive_multiline";
6872 base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6879 part { name: "elm.text";
6882 effect: SHADOW BOTTOM;
6885 description { state: "default" 0.0;
6890 to_x: "padding_after_icon";
6891 to_y: "padding_left_top";
6895 to: "padding_right_bottom";
6897 color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6898 color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6900 style: "btn_style1_multiline";
6903 description { state: "visible" 0.0;
6904 inherit: "default" 0.0;
6907 description { state: "clicked" 0.0;
6908 inherit: "default" 0.0;
6910 color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6912 description { state: "disabled" 0.0;
6913 inherit: "default" 0.0;
6915 description { state: "disabled_visible" 0.0;
6916 inherit: "default" 0.0;
6917 color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6920 description { state: "focused" 0.0;
6921 inherit: "default" 0.0;
6923 color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6929 ///////////////////////////////////////////////////////////////////////
6930 group { name: "elm/button/base/bubble_circle/receive";
6932 image: "00_messagebubble_circle_receive.png" COMP;
6933 image: "00_messagebubble_circle_receive_press.png" COMP;
6934 image: "00_messagebubble_circle_receive_dim.png" COMP;
6935 image: "00_button_right.png" COMP;
6936 image: "00_button_right_press.png" COMP;
6939 part { name: "button_image";
6941 description { state: "default" 0.0;
6942 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6943 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6944 image.normal: "00_messagebubble_circle_receive.png";
6947 state: "clicked" 0.0;
6948 inherit: "default" 0.0;
6949 image.normal: "00_messagebubble_circle_receive_press.png";
6952 state: "disabled" 0.0;
6953 inherit: "default" 0.0;
6954 image.normal: "00_messagebubble_circle_receive_dim.png";
6957 part { name: "image";
6959 clip_to: "icon_clipper";
6960 description { state: "default" 0.0;
6961 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6962 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6963 image.normal: "00_button_right.png";
6966 state: "clicked" 0.0;
6967 inherit: "default" 0.0;
6968 image.normal: "00_button_right_press.png";
6971 state: "disabled" 0.0;
6972 inherit: "default" 0.0;
6975 part { name: "icon_clipper";
6978 description { state: "default" 0.0;
6979 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6981 description { state: "clicked" 0.0;
6982 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6984 description { state: "disabled" 0.0;
6985 color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6988 part { name: "over1";
6990 ignore_flags: ON_HOLD;
6991 description { state: "default" 0.0;
6995 part { name: "over2";
6998 description { state: "default" 0.0;
7002 part { name: "disabler";
7004 description { state: "default" 0.0;
7008 description { state: "disabled" 0.0;
7009 inherit: "default" 0.0;
7015 program { name: "button_click";
7016 signal: "mouse,down,1";
7018 action: SIGNAL_EMIT "elm,action,press" "";
7019 after: "button_click_anim";
7021 program { name: "button_click_anim";
7022 action: STATE_SET "clicked" 0.0;
7023 target: "button_image";
7025 target: "icon_clipper";
7027 program { name: "button_double_click";
7028 signal: "mouse,down,1,double";
7030 after: "button_click_anim";
7032 program { name: "button_unclick";
7033 signal: "mouse,up,1";
7035 action: SIGNAL_EMIT "elm,action,unpress" "";
7036 after: "button_unclick_anim";
7038 program { name: "button_unclick_anim";
7039 action: STATE_SET "default" 0.0;
7040 target: "button_image";
7042 target: "icon_clipper";
7044 program { name: "touch_snd";
7045 signal: "mouse,clicked,1";
7047 action: PLAY_SAMPLE "touch_sound" 1.0;
7048 after: button_unclick3;
7050 program { name: "button_unclick3";
7051 action: SIGNAL_EMIT "elm,action,click" "";
7053 program { name: "disable";
7054 signal: "elm,state,disabled";
7056 action: STATE_SET "disabled" 0.0;
7058 target: "button_image";
7059 target: "icon_clipper";
7062 program { name: "enable";
7063 signal: "elm,state,enabled";
7065 action: STATE_SET "default" 0.0;
7067 target: "button_image";
7068 target: "icon_clipper";
7073 ///////////////////////////////////////////////////////////////////////
7074 group { name: "elm/button/base/bubble_circle/sent";
7076 image: "00_messagebubble_circle_sent.png" COMP;
7077 image: "00_messagebubble_circle_sent_press.png" COMP;
7078 image: "00_messagebubble_circle_sent_dim.png" COMP;
7079 image: "00_button_right.png" COMP;
7080 image: "00_button_right_press.png" COMP;
7083 part { name: "button_image";
7085 description { state: "default" 0.0;
7086 min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7087 max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7088 image.normal: "00_messagebubble_circle_sent.png";
7091 state: "clicked" 0.0;
7092 inherit: "default" 0.0;
7093 image.normal: "00_messagebubble_circle_sent_press.png";
7096 state: "disabled" 0.0;
7097 inherit: "default" 0.0;
7098 image.normal: "00_messagebubble_circle_sent_dim.png";
7101 part { name: "image";
7103 clip_to: "icon_clipper";
7104 description { state: "default" 0.0;
7105 min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7106 max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7107 image.normal: "00_button_right.png";
7110 state: "clicked" 0.0;
7111 inherit: "default" 0.0;
7112 image.normal: "00_button_right_press.png";
7115 state: "disabled" 0.0;
7116 inherit: "default" 0.0;
7119 part { name: "icon_clipper";
7122 description { state: "default" 0.0;
7123 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7125 description { state: "clicked" 0.0;
7126 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7128 description { state: "disabled" 0.0;
7129 color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7132 part { name: "over1";
7134 ignore_flags: ON_HOLD;
7135 description { state: "default" 0.0;
7139 part { name: "over2";
7142 description { state: "default" 0.0;
7146 part { name: "disabler";
7148 description { state: "default" 0.0;
7152 description { state: "disabled" 0.0;
7153 inherit: "default" 0.0;
7159 program { name: "button_click";
7160 signal: "mouse,down,1";
7162 action: SIGNAL_EMIT "elm,action,press" "";
7163 after: "button_click_anim";
7165 program { name: "button_click_anim";
7166 action: STATE_SET "clicked" 0.0;
7167 target: "button_image";
7169 target: "icon_clipper";
7171 program { name: "button_double_click";
7172 signal: "mouse,down,1,double";
7174 after: "button_click_anim";
7176 program { name: "button_unclick";
7177 signal: "mouse,up,1";
7179 action: SIGNAL_EMIT "elm,action,unpress" "";
7180 after: "button_unclick_anim";
7182 program { name: "button_unclick_anim";
7183 action: STATE_SET "default" 0.0;
7184 target: "button_image";
7186 target: "icon_clipper";
7188 program { name: "touch_snd";
7189 signal: "mouse,clicked,1";
7191 action: PLAY_SAMPLE "touch_sound" 1.0;
7192 after: button_unclick3;
7194 program { name: "button_unclick3";
7195 action: SIGNAL_EMIT "elm,action,click" "";
7197 program { name: "disable";
7198 signal: "elm,state,disabled";
7200 action: STATE_SET "disabled" 0.0;
7202 target: "button_image";
7203 target: "icon_clipper";
7205 program { name: "enable";
7206 signal: "elm,state,enabled";
7208 action: STATE_SET "default" 0.0;
7210 target: "button_image";
7211 target: "icon_clipper";
7216 //////////////////////////////////////////////////////////////////////////////////////
7217 group { name: "elm/button/base/editfield_rename";
7219 image: "00_edit_field_rename.png" COMP;
7222 part { name: "button_image";
7225 description { state: "default" 0.0;
7228 description { state: "clicked" 0.0;
7229 inherit: "default" 0.0;
7231 description { state: "disabled" 0.0;
7232 inherit: "default" 0.0;
7234 description { state: "focused" 0.0;
7235 inherit: "default" 0.0;
7238 part { name: "rename_button";
7241 clip_to: "rename_button.clipper";
7242 description { state: "default" 0.0;
7243 min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7244 max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7247 image.normal: "00_edit_field_rename.png";
7250 part { name: "rename_button.clipper";
7252 description { state: "default" 0.0;
7253 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7255 description { state: "clicked" 0.0;
7256 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7258 description { state: "disabled" 0.0;
7259 color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7262 part { name: "over2";
7264 ignore_flags: ON_HOLD;
7265 description { state: "default" 0.0;
7269 part { name: "over3";
7272 description { state: "default" 0.0;
7276 part { name: "disabler";
7278 description { state: "default" 0.0;
7282 description { state: "disabled" 0.0;
7283 inherit: "default" 0.0;
7289 program { name: "button_click";
7290 signal: "mouse,down,1";
7292 action: SIGNAL_EMIT "elm,action,press" "";
7293 after: "button_click_anim";
7295 program { name: "button_click_anim";
7296 action: STATE_SET "clicked" 0.0;
7297 target: "button_image";
7298 target: "rename_button.clipper";
7300 program { name: "button_double_click";
7301 signal: "mouse,down,1,double";
7303 after: "button_click_anim";
7305 program { name: "button_unclick";
7306 signal: "mouse,up,1";
7308 action: SIGNAL_EMIT "elm,action,unpress" "";
7309 after: "button_unclick_anim";
7311 program { name: "button_unclick_anim";
7312 action: STATE_SET "default" 0.0;
7313 target: "button_image";
7314 target: "rename_button.clipper";
7316 program { name: "touch_snd";
7317 signal: "mouse,clicked,1";
7319 action: PLAY_SAMPLE "touch_sound" 1.0;
7320 after: "button_unclick3";
7322 program { name: "button_unclick3";
7323 action: SIGNAL_EMIT "elm,action,click" "";
7325 program { name: "disable";
7326 signal: "elm,state,disabled";
7328 action: STATE_SET "disabled" 0.0;
7329 target: "button_image";
7331 target: "rename_button.clipper";
7333 program { name: "enable";
7334 signal: "elm,state,enabled";
7336 action: STATE_SET "default" 0.0;
7337 target: "button_image";
7339 target: "rename_button.clipper";
7343 group { name: "elm/button/base/editfield_clear";
7345 image: "00_edit_field_clear.png" COMP;
7348 part { name: "button_image";
7351 description { state: "default" 0.0;
7354 description { state: "clicked" 0.0;
7355 inherit: "default" 0.0;
7357 description { state: "disabled" 0.0;
7358 inherit: "default" 0.0;
7360 description { state: "focused" 0.0;
7361 inherit: "default" 0.0;
7364 part { name: "clear_button";
7367 clip_to: "clear_button.clipper";
7368 description { state: "default" 0.0;
7369 min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7370 max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7373 image.normal: "00_edit_field_clear.png";
7376 part { name: "clear_button.clipper";
7378 description { state: "default" 0.0;
7379 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7381 description { state: "clicked" 0.0;
7382 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7384 description { state: "disabled" 0.0;
7385 color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7388 part { name: "over2";
7390 ignore_flags: ON_HOLD;
7391 description { state: "default" 0.0;
7395 part { name: "over3";
7398 description { state: "default" 0.0;
7402 part { name: "disabler";
7404 description { state: "default" 0.0;
7408 description { state: "disabled" 0.0;
7409 inherit: "default" 0.0;
7415 program { name: "button_click";
7416 signal: "mouse,down,1";
7418 action: SIGNAL_EMIT "elm,action,press" "";
7419 after: "button_click_anim";
7421 program { name: "button_click_anim";
7422 action: STATE_SET "clicked" 0.0;
7423 target: "button_image";
7424 target: "clear_button.clipper";
7426 program { name: "button_double_click";
7427 signal: "mouse,down,1,double";
7429 after: "button_click_anim";
7431 program { name: "button_unclick";
7432 signal: "mouse,up,1";
7434 action: SIGNAL_EMIT "elm,action,unpress" "";
7435 after: "button_unclick_anim";
7437 program { name: "button_unclick_anim";
7438 action: STATE_SET "default" 0.0;
7439 target: "button_image";
7440 target: "clear_button.clipper";
7442 program { name: "touch_snd";
7443 signal: "mouse,clicked,1";
7445 action: PLAY_SAMPLE "touch_sound" 1.0;
7446 after: button_unclick3;
7448 program { name: "button_unclick3";
7449 action: SIGNAL_EMIT "elm,action,click" "";
7451 program { name: "disable";
7452 signal: "elm,state,disabled";
7454 action: STATE_SET "disabled" 0.0;
7455 target: "button_image";
7457 target: "clear_button.clipper";
7459 program { name: "enable";
7460 signal: "elm,state,enabled";
7462 action: STATE_SET "default" 0.0;
7463 target: "button_image";
7465 target: "clear_button.clipper";
7470 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7471 group { name: "elm/button/base/"style_name; \
7473 item: "focus_highlight" "on"; \
7476 image: image_normal COMP; \
7479 part { name: "elm.swallow.content"; \
7482 description { state: "default" 0.0; \
7485 part { name: "focus_image"; \
7489 description { state: "default" 0.0; \
7492 normal: image_normal; \
7497 description { state: "focused" 0.0; \
7498 inherit: "default" 0.0; \
7502 part { name: "over2"; \
7505 ignore_flags: ON_HOLD; \
7506 description { state: "default" 0.0; \
7510 part { name: "over3"; \
7513 description { state: "default" 0.0; \
7519 program { name: "button_click"; \
7520 signal: "mouse,down,1"; \
7522 action: SIGNAL_EMIT "elm,action,press" ""; \
7524 program { name: "button_unclick"; \
7525 signal: "mouse,up,1"; \
7527 action: SIGNAL_EMIT "elm,action,unpress" ""; \
7529 program { name: "button_click3"; \
7530 signal: "mouse,clicked,1"; \
7532 action: SIGNAL_EMIT "elm,action,click" ""; \
7534 program { name: "action_focus"; \
7535 signal: "elm,action,focus_highlight,show"; \
7537 action: STATE_SET "focused" 0.0; \
7538 target: "focus_image"; \
7540 program { name: "action_unfocus"; \
7541 signal: "elm,action,focus_highlight,hide"; \
7543 action: STATE_SET "default" 0.0; \
7544 target: "focus_image"; \
7549 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7550 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7551 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7552 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7554 group { name: "elm/button/base/search_icon";
7556 image: "00_search_icon.png" COMP;
7559 part { name: "search_icon";
7562 clip_to: "search_icon.clipper";
7563 description { state: "default" 0.0;
7564 min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7565 max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7568 image.normal: "00_search_icon.png";
7571 part { name: "search_icon.clipper";
7573 description { state: "default" 0.0;
7574 color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7576 description { state: "disabled" 0.0;
7577 color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7580 part { name: "over2";
7582 ignore_flags: ON_HOLD;
7583 description { state: "default" 0.0;
7587 part { name: "over3";
7590 description { state: "default" 0.0;
7594 part { name: "disabler";
7596 description { state: "default" 0.0;
7600 description { state: "disabled" 0.0;
7601 inherit: "default" 0.0;
7607 program { name: "button_click";
7608 signal: "mouse,down,1";
7610 action: SIGNAL_EMIT "elm,action,press" "";
7612 program { name: "button_double_click";
7613 signal: "mouse,down,1,double";
7616 program { name: "button_unclick";
7617 signal: "mouse,up,1";
7619 action: SIGNAL_EMIT "elm,action,unpress" "";
7621 program { name: "touch_snd";
7622 signal: "mouse,clicked,1";
7624 after: "button_unclick3";
7626 program { name: "button_unclick3";
7627 action: SIGNAL_EMIT "elm,action,click" "";
7629 program { name: "disable";
7630 signal: "elm,state,disabled";
7632 action: STATE_SET "disabled" 0.0;
7634 target: "search_icon.clipper";
7636 program { name: "enable";
7637 signal: "elm,state,enabled";
7639 action: STATE_SET "default" 0.0;
7641 target: "search_icon.clipper";
7645 group { name: "elm/button/base/search_rename";
7646 inherit: "elm/button/base/editfield_rename";
7648 part { name: "rename_button";
7651 clip_to: "rename_button.clipper";
7652 description { state: "default" 0.0;
7653 min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7654 max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7657 image.normal: "00_edit_field_rename.png";
7663 group { name: "elm/button/base/search_clear";
7664 inherit: "elm/button/base/editfield_clear";
7666 part { name: "clear_button";
7669 clip_to: "clear_button.clipper";
7670 description { state: "default" 0.0;
7671 min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7672 max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7675 image.normal: "00_edit_field_clear.png";
7681 #undef BUTTON_STATE_ENABLED
7682 #undef BUTTON_STATE_DISABLED
7683 #undef BUTTON_LANDSCAPE_DISABLED
7684 #undef BUTTON_LANDSCAPE_ENABLED