2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
19 #define ITEM_STATE_ENABLED 0
20 #define ITEM_STATE_DISABLED 1
22 group { name: "elm/toolbar/base/default";
24 image: "00_winset_control_toolbar_bg.png" COMP;
29 description { state: "default" 0.0;
30 image.normal: "00_winset_control_toolbar_bg.png";
33 part { name: "clipper";
48 part { name: "elm.swallow.content";
61 description { state: "default" 0.0;
68 group { name: "elm/toolbar/item/default";
70 image: "00_winset_toolbar_press.png" COMP;
73 style { name: "toolbar_style";
74 base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1 text_class=slp_medium";
77 tag: "hilight" "+ font=SLP:style=Bold";
78 tag: "b" "+ font=SLP:style=Bold";
83 data.item: "transition_animation_on" "1";
85 public item_state = ITEM_STATE_ENABLED;
90 description { state: "default" 0.0;
95 offset: TOOLBAR_ITEM_BG_REL1_OFFSET_INC;
99 offset: TOOLBAR_ITEM_BG_REL2_OFFSET_INC;
102 normal: "00_winset_toolbar_press.png";
103 border: TOOLBAR_ITEM_BG_SELECTED_BORDER_INC;
108 description { state: "selected" 0.0;
109 inherit: "default" 0.0;
111 color: 255 255 255 255;
113 description { state: "disabled" 0.0;
114 inherit: "default" 0.0;
116 color: 255 255 255 0;
119 part { name: "padding_left_top";
123 description { state: "default" 0.0;
125 rel2.relative: 0.0 0.0;
132 part { name: "padding_right_bottom";
136 description { state: "default" 0.0;
138 rel1.relative: 1.0 1.0;
150 description { state: "default" 0.0;
155 to: "padding_left_top";
159 to_x: "padding_right_bottom";
160 to_y: "padding_left_top";
165 description { state: "visible" 0.0;
166 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
170 to: "padding_left_top";
174 to_x: "padding_right_bottom";
175 to_y: "padding_left_top";
180 description { state: "icononly" 0.0;
181 inherit: "default" 0.0;
184 part { name: "padding_after_icon";
188 description { state: "default" 0.0; //when only icon or no icon is there
194 rel2.to: "icon_rect";
199 description { state: "visible" 0.0;
200 inherit: "default" 0.0;
202 description { state: "icononly" 0.0;
203 inherit: "default" 0.0;
206 part { name: "padding_before_text";
210 description { state: "default" 0.0; //when only icon or no icon is there
214 to_x: "padding_left_top";
219 to_x: "padding_right_bottom";
227 part { name: "elm.swallow.icon";
230 clip_to: "elm.icon.clipper";
231 description { state: "default" 0.0;
236 to: "padding_left_top";
240 to_x: "padding_right_bottom";
241 to_y: "padding_left_top";
245 description { state: "visible" 0.0;
247 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
248 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
251 to: "padding_left_top";
255 to_x: "padding_right_bottom";
256 to_y: "padding_before_text";
259 aspect_preference: HORIZONTAL;
261 description { state: "icononly" 0.0;
262 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
263 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
266 to: "padding_left_top";
270 to: "padding_right_bottom";
273 aspect_preference: HORIZONTAL;
276 part { name: "elm.swallow.icon_new";
279 clip_to: "elm.icon_new.clipper";
280 description { state: "default" 0.0;
285 to: "padding_left_top";
289 to_x: "padding_right_bottom";
290 to_y: "padding_left_top";
294 description { state: "visible" 0.0;
296 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
297 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
300 to: "padding_left_top";
304 to_x: "padding_right_bottom";
305 to_y: "padding_before_text";
308 aspect_preference: HORIZONTAL;
310 description { state: "icononly" 0.0;
311 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
312 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
315 to: "padding_left_top";
319 to: "padding_right_bottom";
322 aspect_preference: HORIZONTAL;
325 part { name: "elm.text";
329 clip_to: "elm.text.clipper";
330 description { state: "default" 0.0;
334 to_x: "padding_left_top";
335 to_y: "padding_after_icon";
339 to: "padding_right_bottom";
341 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
344 style: "toolbar_style";
348 description { state: "selected" 0.0;
349 inherit: "default" 0.0;
352 description { state: "visible" 0.0;
353 inherit: "default" 0.0;
356 description { state: "clicked" 0.0;
357 inherit: "default" 0.0;
359 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
361 description { state: "focused" 0.0;
362 inherit: "default" 0.0;
364 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
367 part { name: "elm.text_new";
371 clip_to: "elm.text_new.clipper";
372 description { state: "default" 0.0;
376 to_x: "padding_left_top";
377 to_y: "padding_after_icon";
381 to: "padding_right_bottom";
383 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
386 style: "toolbar_style";
390 description { state: "visible" 0.0;
391 inherit: "default" 0.0;
394 description { state: "clicked" 0.0;
395 inherit: "default" 0.0;
397 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
399 description { state: "focused" 0.0;
400 inherit: "default" 0.0;
402 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
405 part { name: "elm.text.clipper";
407 description { state: "default" 0.0;
408 color: 255 255 255 255;
410 description { state: "animation" 0.0;
411 color: 255 255 255 0;
413 description { state: "disabled" 0.0;
414 color: 255 255 255 153;
417 part { name: "elm.text_new.clipper";
419 description { state: "default" 0.0;
420 color: 255 255 255 0;
422 description { state: "animation" 0.0;
423 color: 255 255 255 255;
425 description { state: "disabled" 0.0;
426 color: 255 255 255 153;
429 part { name: "elm.icon.clipper";
431 description { state: "default" 0.0;
432 color: 255 255 255 255;
434 description { state: "animation" 0.0;
435 color: 255 255 255 0;
437 description { state: "disabled" 0.0;
438 color: 255 255 255 153;
441 part { name: "elm.icon_new.clipper";
443 description { state: "default" 0.0;
444 color: 255 255 255 0;
446 description { state: "animation" 0.0;
447 color: 255 255 255 255;
449 description { state: "disabled" 0.0;
450 color: 255 255 255 153;
453 part { name: "event";
456 ignore_flags: ON_HOLD;
457 description { state: "default" 0.0;
461 part { name: "event2";
465 description { state: "default" 0.0;
471 program { name: "pressed";
472 signal: "mouse,down,1";
475 if (get_int(item_state) != ITEM_STATE_DISABLED)
476 set_state(PART:"bg", "selected", 0.0);
478 transition: LINEAR 0.2;
480 program { name: "unpressed";
481 signal: "mouse,up,1";
483 action: STATE_SET "default" 0.0;
485 transition: LINEAR 0.1;
487 program { name: "go";
488 signal: "mouse,clicked,1";
490 action: SIGNAL_EMIT "elm,action,click" "elm";
492 program { name: "mouse,in";
495 action: SIGNAL_EMIT "elm,mouse,in" "elm";
497 program { name: "mouse,out";
500 action: SIGNAL_EMIT "elm,mouse,out" "elm";
502 program { name: "disable";
503 signal: "elm,state,disabled";
506 set_int(item_state, ITEM_STATE_DISABLED);
507 set_state(PART:"bg", "disabled", 0.0);
508 set_state(PART:"elm.text.clipper", "disabled", 0.0);
509 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
510 run_program(PROGRAM:"label_set,animation,done");
511 run_program(PROGRAM:"icon_set,animation,done");
514 program { name: "enable";
515 signal: "elm,state,enabled";
518 set_int(item_state, ITEM_STATE_ENABLED);
519 set_state(PART:"bg", "default", 0.0);
520 set_state(PART:"elm.text.clipper", "default", 0.0);
521 set_state(PART:"elm.icon.clipper", "default", 0.0);
522 run_program(PROGRAM:"label_set,animation,done");
523 run_program(PROGRAM:"icon_set,animation,done");
526 program { name: "label_set,animation,forward";
527 signal: "elm,state,label_set,forward";
529 after: "label_set,animation";
531 program { name: "label_set,animation,backward";
532 signal: "elm,state,label_set,backward";
534 after: "label_set,animation";
536 program { name: "label_set,animation";
537 signal: "elm,state,label_set";
539 action: STATE_SET "animation" 0.0;
540 target: "elm.text.clipper";
541 target: "elm.text_new.clipper";
542 transition: LINEAR 0.2;
543 after: "label_set,animation,done";
545 program { name: "label_set,animation,done";
546 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
548 program { name: "label,reset";
549 signal: "elm,state,label,reset";
552 set_state(PART:"elm.text_new.clipper", "default", 0.0);
553 if (get_int(item_state) != ITEM_STATE_DISABLED)
554 set_state(PART:"elm.text.clipper", "default", 0.0);
556 set_state(PART:"elm.text.clipper", "disabled", 0.0);
559 program { name: "icon_set,animation,forward";
560 signal: "elm,state,icon_set,forward";
562 after: "icon_set,animation";
564 program { name: "icon_set,animation,backward";
565 signal: "elm,state,icon_set,backward";
567 after: "icon_set,animation";
569 program { name: "icon_set,animation";
570 signal: "elm,state,icon_set";
572 action: STATE_SET "animation" 0.0;
573 target: "elm.icon.clipper";
574 target: "elm.icon_new.clipper";
575 transition: LINEAR 0.2;
576 after: "icon_set,animation,done";
578 program { name: "icon_set,animation,done";
579 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
581 program { name: "icon,reset";
582 signal: "elm,state,icon,reset";
585 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
586 if (get_int(item_state) != ITEM_STATE_DISABLED)
587 set_state(PART:"elm.icon.clipper", "default", 0.0);
589 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
592 program { name: "text_show";
593 signal: "elm,state,text,visible";
598 get_state(PART:"elm.swallow.icon", st, 30, vl);
599 if (!strcmp(st, "icononly"))
601 set_state(PART:"elm.swallow.icon", "visible", 0.0);
602 set_state(PART:"icon_rect", "visible", 0.0);
603 set_state(PART:"padding_after_icon", "visible", 0.0);
605 set_state(PART:"elm.text", "visible", 0.0);
608 program { name: "text_hide";
609 signal: "elm,state,text,hidden";
614 get_state(PART:"elm.swallow.icon", st, 30, vl);
615 if (!strcmp(st, "visible"))
617 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
618 set_state(PART:"icon_rect", "icononly", 0.0);
619 set_state(PART:"padding_after_icon", "icononly", 0.0);
621 set_state(PART:"elm.text", "default", 0.0);
624 program { name: "icon_show";
625 signal: "elm,state,icon,visible";
630 get_state(PART:"elm.text", st, 30, vl);
631 if (!strcmp(st, "visible"))
633 set_state(PART:"elm.swallow.icon", "visible", 0.0);
634 set_state(PART:"icon_rect", "visible", 0.0);
635 set_state(PART:"padding_after_icon", "visible", 0.0);
639 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
640 set_state(PART:"icon_rect", "icononly", 0.0);
641 set_state(PART:"padding_after_icon", "icononly", 0.0);
648 group { name: "elm/toolbar/item/item_horizontal";
649 inherit: "elm/toolbar/item/default";
651 part { name: "icon_rect";
652 description { state: "default" 0.0;
656 description { state: "visible" 0.0;
660 to_x: "padding_left_top";
661 to_y: "padding_right_bottom";
666 part { name: "padding_after_icon";
667 description { state: "default" 0.0; //when only icon or no icon is there
668 rel1.relative: 1.0 0.0;
671 description { state: "visible" 0.0;
672 inherit: "default" 0.0;
676 part { name: "padding_before_text";
677 description { state: "default" 0.0; //when only icon or no icon is there
682 to_y: "padding_left_top";
686 to_y: "padding_right_bottom";
692 part { name: "elm.swallow.icon";
693 description { state: "default" 0.0;
697 to_x: "padding_left_top";
698 to_y: "padding_right_bottom";
702 description { state: "visible" 0.0;
707 to_x: "padding_before_text";
708 to_y: "padding_left_top";
712 to_x: "padding_before_text";
713 to_y: "padding_right_bottom";
715 aspect_preference: VERTICAL;
717 description { state: "icononly" 0.0;
718 aspect_preference: VERTICAL;
721 part { name: "elm.swallow.icon_new";
722 description { state: "default" 0.0;
726 to_x: "padding_left_top";
727 to_y: "padding_right_bottom";
731 description { state: "visible" 0.0;
736 to_x: "padding_before_text";
737 to_y: "padding_left_top";
741 to_x: "padding_before_text";
742 to_y: "padding_right_bottom";
744 aspect_preference: VERTICAL;
746 description { state: "icononly" 0.0;
747 aspect_preference: VERTICAL;
750 part { name: "elm.text";
752 description { state: "default" 0.0;
755 to_x: "padding_after_icon";
756 to_y: "padding_left_top";
759 style: "toolbar_style";
763 description { state: "selected" 0.0;
764 inherit: "default" 0.0;
767 description { state: "visible" 0.0;
768 inherit: "default" 0.0;
771 description { state: "clicked" 0.0;
772 inherit: "default" 0.0;
774 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
776 description { state: "focused" 0.0;
777 inherit: "default" 0.0;
779 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
782 part { name: "elm.text_new";
784 description { state: "default" 0.0;
787 to_x: "padding_after_icon";
788 to_y: "padding_left_top";
791 style: "toolbar_style";
795 description { state: "selected" 0.0;
796 inherit: "default" 0.0;
799 description { state: "visible" 0.0;
800 inherit: "default" 0.0;
803 description { state: "clicked" 0.0;
804 inherit: "default" 0.0;
806 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
808 description { state: "focused" 0.0;
809 inherit: "default" 0.0;
811 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
817 group { name: "elm/toolbar/separator/default";
821 description { state: "default" 0.0;
827 part { name: "separator_left";
829 description { state: "default" 0.0;
841 color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
844 part { name: "separator_middle";
846 description { state: "default" 0.0;
853 to: "separator_left";
858 to: "separator_left";
860 color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
863 part { name: "separator_right";
865 description { state: "default" 0.0;
872 to: "separator_middle";
877 to: "separator_middle";
879 color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
885 group { name: "elm/toolbar/object/default";
887 part { name: "elm.swallow.object"; // object group
890 state: "default" 0.0;
896 group { name: "elm/toolbar/base/tabbar";
897 alias: "elm/toolbar/base/tabbar/item_horizontal";
899 image: "00_winset_title_tabbar_bg.png" COMP;
905 description { state: "default" 0.0;
906 image.normal: "00_winset_title_tabbar_bg.png";
909 part { name: "clipper";
913 state: "default" 0.0;
924 part { name: "elm.swallow.content";
928 state: "default" 0.0;
933 part { name: "event";
937 description { state: "default" 0.0;
944 group { name: "elm/toolbar/more/tabbar";
946 image: "00_winset_control_tab_h_line_h.png" COMP;
951 description { state: "default" 0.0;
952 rel1.relative: 0.0 0.0;
953 rel2.relative: 1.0 0.0;
954 image.normal: "00_winset_title_tabbar_bg.png";
956 description { state: "open" 0.0;
957 inherit: "default" 0.0;
958 rel2.relative: 1.0 1.0;
960 description { state: "open2" 0.0;
961 inherit: "default" 0.0;
962 rel2.relative: 1.0 2.0;
965 part { name: "clipper";
969 state: "default" 0.0;
978 description { state: "open" 0.0;
979 inherit: "default" 0.0;
980 rel2.relative: 1.0 1.0;
982 description { state: "open2" 0.0;
983 inherit: "default" 0.0;
984 rel2.relative: 1.0 0.5;
987 part { name: "clipper2";
991 state: "default" 0.0;
1001 description { state: "open" 0.0;
1002 inherit: "default" 0.0;
1003 rel1.relative: 0.0 1.0;
1005 description { state: "open2" 0.0;
1006 inherit: "default" 0.0;
1007 rel1.relative: 0.0 0.5;
1010 part { name: "elm.swallow.content";
1014 state: "default" 0.0;
1020 part { name: "elm.swallow.content2";
1021 clip_to: "clipper2";
1024 state: "default" 0.0;
1026 rel1.to: "clipper2";
1027 rel2.to: "clipper2";
1030 part { name: "separator";
1032 description { state: "default" 0.0;
1047 normal: "00_winset_control_tab_h_line_h.png";
1055 part { name: "separator2";
1056 clip_to: "clipper2";
1057 description { state: "default" 0.0;
1072 normal: "00_winset_control_tab_h_line_h.png";
1082 program { name: "open";
1083 signal: "elm,state,open";
1085 action: STATE_SET "open" 0.0;
1089 transition: LINEAR 0.2;
1091 program { name: "open2";
1092 signal: "elm,state,open2";
1094 action: STATE_SET "open2" 0.0;
1098 transition: LINEAR 0.2;
1100 program { name: "close";
1101 signal: "elm,state,close";
1103 action: STATE_SET "default" 0.0;
1105 transition: LINEAR 0.2;
1110 group { name: "elm/toolbar/item/tabbar";
1112 image: "00_winset_title_tabbar_bg.png" COMP;
1113 image: "00_winset_tabbar_focus.png" COMP;
1114 image: "00_tab_move_bg.png" COMP;
1117 data.item: "transition_animation_on" "1";
1119 public item_state = ITEM_STATE_ENABLED;
1124 description { state: "default" 0.0;
1125 visible: TABBAR_ITEM_BG_DEFAULT_VISIBLE_INC;
1126 color: TABBAR_ITEM_BG_DEFAULT_COLOR_INC;
1127 image.normal: "00_winset_title_tabbar_bg.png";
1128 image.border: TABBAR_ITEM_BG_DEFAULT_BORDER_INC;
1129 image.middle: SOLID;
1132 description { state: "selected" 0.0;
1133 inherit: "default" 0.0;
1135 color: 255 255 255 255;
1136 image.normal: "00_winset_tabbar_focus.png";
1138 description { state: "disabled" 0.0;
1139 inherit: "default" 0.0;
1141 description { state: "moving" 0.0;
1142 inherit: "default" 0.0;
1144 image.normal: "00_tab_move_bg.png";
1145 image.border: 10 10 10 10;
1147 description { state: "moving" 0.0;
1148 inherit: "default" 0.0;
1150 image.normal: "00_tab_move_bg.png";
1151 image.border: 10 10 10 10;
1152 color: 255 255 255 255;
1155 part { name: "padding_left_top";
1159 description { state: "default" 0.0;
1161 rel2.relative: 0.0 0.0;
1168 part { name: "padding_right_bottom";
1172 description { state: "default" 0.0;
1174 rel1.relative: 1.0 1.0;
1186 description { state: "default" 0.0;
1191 to: "padding_left_top";
1195 to_x: "padding_right_bottom";
1196 to_y: "padding_left_top";
1201 description { state: "visible" 0.0;
1202 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1206 to: "padding_left_top";
1210 to_x: "padding_right_bottom";
1211 to_y: "padding_left_top";
1216 description { state: "icononly" 0.0;
1217 inherit: "default" 0.0;
1220 part { name: "padding_after_icon";
1224 description { state: "default" 0.0; //when only icon or no icon is there
1230 rel2.to: "icon_rect";
1235 description { state: "visible" 0.0;
1241 rel2.to: "icon_rect";
1246 description { state: "icononly" 0.0;
1247 inherit: "default" 0.0;
1250 part { name: "padding_before_text";
1254 description { state: "default" 0.0; //when only icon or no icon is there
1258 to_x: "padding_left_top";
1263 to_x: "padding_right_bottom";
1271 part { name: "elm.swallow.icon";
1274 clip_to: "elm.icon.clipper";
1275 description { state: "default" 0.0;
1280 to: "padding_left_top";
1284 to_x: "padding_right_bottom";
1285 to_y: "padding_left_top";
1289 description { state: "visible" 0.0;
1291 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1292 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1295 to: "padding_left_top";
1299 to_x: "padding_right_bottom";
1300 to_y: "padding_before_text";
1303 aspect_preference: HORIZONTAL;
1305 description { state: "icononly" 0.0;
1306 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1307 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1310 to: "padding_left_top";
1314 to: "padding_right_bottom";
1317 aspect_preference: HORIZONTAL;
1320 part { name: "elm.swallow.icon_new";
1323 clip_to: "elm.icon_new.clipper";
1324 description { state: "default" 0.0;
1329 to: "padding_left_top";
1333 to_x: "padding_right_bottom";
1334 to_y: "padding_left_top";
1338 description { state: "visible" 0.0;
1340 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1341 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1344 to: "padding_left_top";
1348 to_x: "padding_right_bottom";
1349 to_y: "padding_before_text";
1352 aspect_preference: HORIZONTAL;
1354 description { state: "icononly" 0.0;
1355 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1356 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1359 to: "padding_left_top";
1363 to: "padding_right_bottom";
1366 aspect_preference: HORIZONTAL;
1369 part { name: "elm.text";
1373 clip_to: "elm.text.clipper";
1374 description { state: "default" 0.0;
1378 to_x: "padding_left_top";
1379 to_y: "padding_after_icon";
1383 to: "padding_right_bottom";
1385 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1388 style: "toolbar_style";
1392 description { state: "selected" 0.0;
1393 inherit: "default" 0.0;
1396 description { state: "visible" 0.0;
1397 inherit: "default" 0.0;
1400 description { state: "clicked" 0.0;
1401 inherit: "default" 0.0;
1403 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1405 description { state: "focused" 0.0;
1406 inherit: "default" 0.0;
1408 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1411 part { name: "elm.text_new";
1415 clip_to: "elm.text_new.clipper";
1416 description { state: "default" 0.0;
1420 to_x: "padding_left_top";
1421 to_y: "padding_after_icon";
1425 to: "padding_right_bottom";
1427 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1430 style: "toolbar_style";
1434 description { state: "visible" 0.0;
1435 inherit: "default" 0.0;
1438 description { state: "clicked" 0.0;
1439 inherit: "default" 0.0;
1441 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1443 description { state: "focused" 0.0;
1444 inherit: "default" 0.0;
1446 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1449 part { name: "elm.text.clipper";
1451 description { state: "default" 0.0;
1452 color: 255 255 255 255;
1454 description { state: "animation" 0.0;
1455 color: 255 255 255 0;
1457 description { state: "disabled" 0.0;
1458 color: 255 255 255 153;
1461 part { name: "elm.text_new.clipper";
1463 description { state: "default" 0.0;
1464 color: 255 255 255 0;
1466 description { state: "animation" 0.0;
1467 color: 255 255 255 255;
1469 description { state: "disabled" 0.0;
1470 color: 255 255 255 153;
1473 part { name: "elm.icon.clipper";
1475 description { state: "default" 0.0;
1476 color: 255 255 255 255;
1478 description { state: "animation" 0.0;
1479 color: 255 255 255 0;
1481 description { state: "disabled" 0.0;
1482 color: 255 255 255 153;
1485 part { name: "elm.icon_new.clipper";
1487 description { state: "default" 0.0;
1488 color: 255 255 255 0;
1490 description { state: "animation" 0.0;
1491 color: 255 255 255 255;
1493 description { state: "disabled" 0.0;
1494 color: 255 255 255 153;
1497 part { name: "event";
1500 ignore_flags: ON_HOLD;
1501 description { state: "default" 0.0;
1507 program { name: "go_active";
1508 signal: "elm,state,selected";
1510 action: STATE_SET "selected" 0.0;
1512 transition: LINEAR 0.2;
1514 program { name: "go_passive";
1515 signal: "elm,state,unselected";
1517 action: STATE_SET "default" 0.0;
1519 transition: LINEAR 0.1;
1521 program { name: "moving";
1522 signal: "elm,state,moving";
1524 action: STATE_SET "moving" 0.0;
1527 /* program { name: "pressed";
1528 signal: "mouse,down,1";
1530 action: STATE_SET "selected" 0.0;
1533 target: "elm.text_new";
1534 transition: LINEAR 0.2;
1536 program { name: "unpressed";
1537 signal: "mouse,up,1";
1539 action: STATE_SET "default" 0.0;
1542 target: "elm.text_new";
1543 transition: LINEAR 0.1;
1545 program { name: "go";
1546 signal: "mouse,clicked,1";
1548 action: SIGNAL_EMIT "elm,action,click" "elm";
1550 program { name: "mouse,in";
1553 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1555 program { name: "mouse,out";
1556 signal: "mouse,out";
1558 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1560 program { name: "disable";
1561 signal: "elm,state,disabled";
1564 set_int(item_state, ITEM_STATE_DISABLED);
1565 set_state(PART:"bg", "disabled", 0.0);
1566 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1567 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1568 run_program(PROGRAM:"label_set,animation,done");
1569 run_program(PROGRAM:"icon_set,animation,done");
1572 program { name: "enable";
1573 signal: "elm,state,enabled";
1576 set_int(item_state, ITEM_STATE_ENABLED);
1577 set_state(PART:"bg", "default", 0.0);
1578 set_state(PART:"elm.text.clipper", "default", 0.0);
1579 set_state(PART:"elm.icon.clipper", "default", 0.0);
1580 run_program(PROGRAM:"label_set,animation,done");
1581 run_program(PROGRAM:"icon_set,animation,done");
1584 program { name: "label_set,animation,forward";
1585 signal: "elm,state,label_set,forward";
1587 after: "label_set,animation";
1589 program { name: "label_set,animation,backward";
1590 signal: "elm,state,label_set,backward";
1592 after: "label_set,animation";
1594 program { name: "label_set,animation";
1595 signal: "elm,state,label_set";
1597 action: STATE_SET "animation" 0.0;
1598 target: "elm.text.clipper";
1599 target: "elm.text_new.clipper";
1600 transition: LINEAR 0.2;
1601 after: "label_set,animation,done";
1603 program { name: "label_set,animation,done";
1604 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1606 program { name: "label,reset";
1607 signal: "elm,state,label,reset";
1610 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1611 if (get_int(item_state) != ITEM_STATE_DISABLED)
1612 set_state(PART:"elm.text.clipper", "default", 0.0);
1614 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1617 program { name: "icon_set,animation,forward";
1618 signal: "elm,state,icon_set,forward";
1620 after: "icon_set,animation";
1622 program { name: "icon_set,animation,backward";
1623 signal: "elm,state,icon_set,backward";
1625 after: "icon_set,animation";
1627 program { name: "icon_set,animation";
1628 signal: "elm,state,icon_set";
1630 action: STATE_SET "animation" 0.0;
1631 target: "elm.icon.clipper";
1632 target: "elm.icon_new.clipper";
1633 transition: LINEAR 0.2;
1634 after: "icon_set,animation,done";
1636 program { name: "icon_set,animation,done";
1637 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1639 program { name: "icon,reset";
1640 signal: "elm,state,icon,reset";
1643 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1644 if (get_int(item_state) != ITEM_STATE_DISABLED)
1645 set_state(PART:"elm.icon.clipper", "default", 0.0);
1647 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1650 program { name: "text_show";
1651 signal: "elm,state,text,visible";
1656 get_state(PART:"elm.swallow.icon", st, 30, vl);
1657 if (!strcmp(st, "icononly"))
1659 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1660 set_state(PART:"icon_rect", "visible", 0.0);
1661 set_state(PART:"padding_after_icon", "visible", 0.0);
1663 set_state(PART:"elm.text", "visible", 0.0);
1666 program { name: "text_hide";
1667 signal: "elm,state,text,hidden";
1672 get_state(PART:"elm.swallow.icon", st, 30, vl);
1673 if (!strcmp(st, "visible"))
1675 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1676 set_state(PART:"icon_rect", "icononly", 0.0);
1677 set_state(PART:"padding_after_icon", "icononly", 0.0);
1679 set_state(PART:"elm.text", "default", 0.0);
1682 program { name: "icon_show";
1683 signal: "elm,state,icon,visible";
1688 get_state(PART:"elm.text", st, 30, vl);
1689 if (!strcmp(st, "visible"))
1691 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1692 set_state(PART:"icon_rect", "visible", 0.0);
1693 set_state(PART:"padding_after_icon", "visible", 0.0);
1697 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1698 set_state(PART:"icon_rect", "icononly", 0.0);
1699 set_state(PART:"padding_after_icon", "icononly", 0.0);
1706 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1707 inherit: "elm/toolbar/item/tabbar";
1709 part { name: "icon_rect";
1710 description { state: "default" 0.0;
1714 description { state: "visible" 0.0;
1718 to_x: "padding_left_top";
1719 to_y: "padding_right_bottom";
1724 part { name: "padding_after_icon";
1725 description { state: "default" 0.0; //when only icon or no icon is there
1726 rel1.relative: 1.0 0.0;
1729 description { state: "visible" 0.0;
1730 inherit: "default" 0.0;
1734 part { name: "padding_before_text";
1735 description { state: "default" 0.0; //when only icon or no icon is there
1740 to_y: "padding_left_top";
1744 to_y: "padding_right_bottom";
1750 part { name: "elm.swallow.icon";
1751 description { state: "default" 0.0;
1755 to_x: "padding_left_top";
1756 to_y: "padding_right_bottom";
1760 description { state: "visible" 0.0;
1765 to_x: "padding_before_text";
1766 to_y: "padding_left_top";
1770 to_x: "padding_before_text";
1771 to_y: "padding_right_bottom";
1773 aspect_preference: VERTICAL;
1775 description { state: "icononly" 0.0;
1776 aspect_preference: VERTICAL;
1779 part { name: "elm.swallow.icon_new";
1780 description { state: "default" 0.0;
1784 to_x: "padding_left_top";
1785 to_y: "padding_right_bottom";
1789 description { state: "visible" 0.0;
1794 to_x: "padding_before_text";
1795 to_y: "padding_left_top";
1799 to_x: "padding_before_text";
1800 to_y: "padding_right_bottom";
1802 aspect_preference: VERTICAL;
1804 description { state: "icononly" 0.0;
1805 aspect_preference: VERTICAL;
1808 part { name: "elm.text";
1810 description { state: "default" 0.0;
1813 to_x: "padding_after_icon";
1814 to_y: "padding_left_top";
1817 style: "toolbar_style";
1821 description { state: "selected" 0.0;
1822 inherit: "default" 0.0;
1825 description { state: "visible" 0.0;
1826 inherit: "default" 0.0;
1829 description { state: "clicked" 0.0;
1830 inherit: "default" 0.0;
1832 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1834 description { state: "focused" 0.0;
1835 inherit: "default" 0.0;
1837 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1840 part { name: "elm.text_new";
1842 description { state: "default" 0.0;
1845 to_x: "padding_after_icon";
1846 to_y: "padding_left_top";
1849 style: "toolbar_style";
1853 description { state: "selected" 0.0;
1854 inherit: "default" 0.0;
1857 description { state: "visible" 0.0;
1858 inherit: "default" 0.0;
1861 description { state: "clicked" 0.0;
1862 inherit: "default" 0.0;
1864 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1866 description { state: "focused" 0.0;
1867 inherit: "default" 0.0;
1869 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1875 group { name: "elm/toolbar/base/naviframe";
1877 part { name: "base";
1879 description { state: "default" 0.0;
1883 part { name: "clipper";
1887 state: "default" 0.0;
1898 part { name: "elm.swallow.content";
1902 state: "default" 0.0;
1907 part { name: "event";
1911 description { state: "default" 0.0;
1918 group { name: "elm/toolbar/object/naviframe";
1920 part { name: "elm.swallow.object"; // object group
1923 state: "default" 0.0;