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;
102 normal: "00_winset_toolbar_press.png";
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,up,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 public item_state = ITEM_STATE_ENABLED;
654 part { name: "icon_rect";
655 description { state: "default" 0.0;
659 description { state: "visible" 0.0;
663 to_x: "padding_left_top";
664 to_y: "padding_right_bottom";
669 part { name: "padding_after_icon";
670 description { state: "default" 0.0; //when only icon or no icon is there
671 rel1.relative: 1.0 0.0;
674 description { state: "visible" 0.0;
675 inherit: "default" 0.0;
679 part { name: "padding_before_text";
680 description { state: "default" 0.0; //when only icon or no icon is there
685 to_y: "padding_left_top";
689 to_y: "padding_right_bottom";
695 part { name: "elm.swallow.icon";
696 description { state: "default" 0.0;
700 to_x: "padding_left_top";
701 to_y: "padding_right_bottom";
705 description { state: "visible" 0.0;
710 to_x: "padding_before_text";
711 to_y: "padding_left_top";
715 to_x: "padding_before_text";
716 to_y: "padding_right_bottom";
718 aspect_preference: VERTICAL;
720 description { state: "icononly" 0.0;
721 aspect_preference: VERTICAL;
724 part { name: "elm.swallow.icon_new";
725 description { state: "default" 0.0;
729 to_x: "padding_left_top";
730 to_y: "padding_right_bottom";
734 description { state: "visible" 0.0;
739 to_x: "padding_before_text";
740 to_y: "padding_left_top";
744 to_x: "padding_before_text";
745 to_y: "padding_right_bottom";
747 aspect_preference: VERTICAL;
749 description { state: "icononly" 0.0;
750 aspect_preference: VERTICAL;
753 part { name: "elm.text";
755 description { state: "default" 0.0;
758 to_x: "padding_after_icon";
759 to_y: "padding_left_top";
762 style: "toolbar_style";
766 description { state: "selected" 0.0;
767 inherit: "default" 0.0;
770 description { state: "visible" 0.0;
771 inherit: "default" 0.0;
774 description { state: "clicked" 0.0;
775 inherit: "default" 0.0;
777 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
779 description { state: "focused" 0.0;
780 inherit: "default" 0.0;
782 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
785 part { name: "elm.text_new";
787 description { state: "default" 0.0;
790 to_x: "padding_after_icon";
791 to_y: "padding_left_top";
794 style: "toolbar_style";
798 description { state: "selected" 0.0;
799 inherit: "default" 0.0;
802 description { state: "visible" 0.0;
803 inherit: "default" 0.0;
806 description { state: "clicked" 0.0;
807 inherit: "default" 0.0;
809 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
811 description { state: "focused" 0.0;
812 inherit: "default" 0.0;
814 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
820 group { name: "elm/toolbar/separator/default";
824 description { state: "default" 0.0;
830 part { name: "separator_left";
832 description { state: "default" 0.0;
844 color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
847 part { name: "separator_middle";
849 description { state: "default" 0.0;
856 to: "separator_left";
861 to: "separator_left";
863 color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
866 part { name: "separator_right";
868 description { state: "default" 0.0;
875 to: "separator_middle";
880 to: "separator_middle";
882 color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
888 group { name: "elm/toolbar/object/default";
890 part { name: "elm.swallow.object"; // object group
893 state: "default" 0.0;
899 group { name: "elm/toolbar/base/tabbar";
900 alias: "elm/toolbar/base/tabbar/item_horizontal";
902 image: "00_winset_control_tabbar_bg_top.png" COMP;
908 description { state: "default" 0.0;
909 image.normal: "00_winset_control_tabbar_bg_top.png";
912 part { name: "clipper";
916 state: "default" 0.0;
927 part { name: "elm.swallow.content";
931 state: "default" 0.0;
936 part { name: "event";
940 description { state: "default" 0.0;
947 group { name: "elm/toolbar/item/tabbar";
949 image: "00_winset_tabbar_focus.png" COMP;
952 data.item: "transition_animation_on" "1";
954 public item_state = ITEM_STATE_ENABLED;
959 description { state: "default" 0.0;
961 color: 255 255 255 0;
963 normal: "00_winset_tabbar_focus.png";
968 description { state: "selected" 0.0;
969 inherit: "default" 0.0;
971 color: 255 255 255 255;
973 description { state: "disabled" 0.0;
974 inherit: "default" 0.0;
976 color: 255 255 255 0;
979 part { name: "padding_left_top";
983 description { state: "default" 0.0;
985 rel2.relative: 0.0 0.0;
992 part { name: "padding_right_bottom";
996 description { state: "default" 0.0;
998 rel1.relative: 1.0 1.0;
1010 description { state: "default" 0.0;
1015 to: "padding_left_top";
1019 to_x: "padding_right_bottom";
1020 to_y: "padding_left_top";
1025 description { state: "visible" 0.0;
1026 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1030 to: "padding_left_top";
1034 to_x: "padding_right_bottom";
1035 to_y: "padding_left_top";
1040 description { state: "icononly" 0.0;
1041 inherit: "default" 0.0;
1044 part { name: "padding_after_icon";
1048 description { state: "default" 0.0; //when only icon or no icon is there
1054 rel2.to: "icon_rect";
1059 description { state: "visible" 0.0;
1065 rel2.to: "icon_rect";
1070 description { state: "icononly" 0.0;
1071 inherit: "default" 0.0;
1074 part { name: "padding_before_text";
1078 description { state: "default" 0.0; //when only icon or no icon is there
1082 to_x: "padding_left_top";
1087 to_x: "padding_right_bottom";
1095 part { name: "elm.swallow.icon";
1098 clip_to: "elm.icon.clipper";
1099 description { state: "default" 0.0;
1104 to: "padding_left_top";
1108 to_x: "padding_right_bottom";
1109 to_y: "padding_left_top";
1113 description { state: "visible" 0.0;
1115 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1116 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1119 to: "padding_left_top";
1123 to_x: "padding_right_bottom";
1124 to_y: "padding_before_text";
1127 aspect_preference: HORIZONTAL;
1129 description { state: "icononly" 0.0;
1130 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1131 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1134 to: "padding_left_top";
1138 to: "padding_right_bottom";
1141 aspect_preference: HORIZONTAL;
1144 part { name: "elm.swallow.icon_new";
1147 clip_to: "elm.icon_new.clipper";
1148 description { state: "default" 0.0;
1153 to: "padding_left_top";
1157 to_x: "padding_right_bottom";
1158 to_y: "padding_left_top";
1162 description { state: "visible" 0.0;
1164 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1165 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1168 to: "padding_left_top";
1172 to_x: "padding_right_bottom";
1173 to_y: "padding_before_text";
1176 aspect_preference: HORIZONTAL;
1178 description { state: "icononly" 0.0;
1179 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1180 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1183 to: "padding_left_top";
1187 to: "padding_right_bottom";
1190 aspect_preference: HORIZONTAL;
1193 part { name: "elm.text";
1197 clip_to: "elm.text.clipper";
1198 description { state: "default" 0.0;
1202 to_x: "padding_left_top";
1203 to_y: "padding_after_icon";
1207 to: "padding_right_bottom";
1209 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1212 style: "toolbar_style";
1216 description { state: "selected" 0.0;
1217 inherit: "default" 0.0;
1220 description { state: "visible" 0.0;
1221 inherit: "default" 0.0;
1224 description { state: "clicked" 0.0;
1225 inherit: "default" 0.0;
1227 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1229 description { state: "focused" 0.0;
1230 inherit: "default" 0.0;
1232 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1235 part { name: "elm.text_new";
1239 clip_to: "elm.text_new.clipper";
1240 description { state: "default" 0.0;
1244 to_x: "padding_left_top";
1245 to_y: "padding_after_icon";
1249 to: "padding_right_bottom";
1251 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1254 style: "toolbar_style";
1258 description { state: "visible" 0.0;
1259 inherit: "default" 0.0;
1262 description { state: "clicked" 0.0;
1263 inherit: "default" 0.0;
1265 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1267 description { state: "focused" 0.0;
1268 inherit: "default" 0.0;
1270 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1273 part { name: "elm.text.clipper";
1275 description { state: "default" 0.0;
1276 color: 255 255 255 255;
1278 description { state: "animation" 0.0;
1279 color: 255 255 255 0;
1281 description { state: "disabled" 0.0;
1282 color: 255 255 255 153;
1285 part { name: "elm.text_new.clipper";
1287 description { state: "default" 0.0;
1288 color: 255 255 255 0;
1290 description { state: "animation" 0.0;
1291 color: 255 255 255 255;
1293 description { state: "disabled" 0.0;
1294 color: 255 255 255 153;
1297 part { name: "elm.icon.clipper";
1299 description { state: "default" 0.0;
1300 color: 255 255 255 255;
1302 description { state: "animation" 0.0;
1303 color: 255 255 255 0;
1305 description { state: "disabled" 0.0;
1306 color: 255 255 255 153;
1309 part { name: "elm.icon_new.clipper";
1311 description { state: "default" 0.0;
1312 color: 255 255 255 0;
1314 description { state: "animation" 0.0;
1315 color: 255 255 255 255;
1317 description { state: "disabled" 0.0;
1318 color: 255 255 255 153;
1321 part { name: "event";
1324 ignore_flags: ON_HOLD;
1325 description { state: "default" 0.0;
1331 program { name: "go_active";
1332 signal: "elm,state,selected";
1334 action: STATE_SET "selected" 0.0;
1336 transition: LINEAR 0.2;
1338 program { name: "go_passive";
1339 signal: "elm,state,unselected";
1341 action: STATE_SET "default" 0.0;
1343 transition: LINEAR 0.1;
1345 program { name: "pressed";
1346 signal: "mouse,down,1";
1348 action: STATE_SET "selected" 0.0;
1351 target: "elm.text_new";
1352 transition: LINEAR 0.2;
1354 program { name: "unpressed";
1355 signal: "mouse,up,1";
1357 action: STATE_SET "default" 0.0;
1360 target: "elm.text_new";
1361 transition: LINEAR 0.1;
1363 program { name: "go";
1364 signal: "mouse,up,1";
1366 action: SIGNAL_EMIT "elm,action,click" "elm";
1368 program { name: "mouse,in";
1371 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1373 program { name: "mouse,out";
1374 signal: "mouse,out";
1376 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1378 program { name: "disable";
1379 signal: "elm,state,disabled";
1382 set_int(item_state, ITEM_STATE_DISABLED);
1383 set_state(PART:"bg", "disabled", 0.0);
1384 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1385 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1386 run_program(PROGRAM:"label_set,animation,done");
1387 run_program(PROGRAM:"icon_set,animation,done");
1390 program { name: "enable";
1391 signal: "elm,state,enabled";
1394 set_int(item_state, ITEM_STATE_ENABLED);
1395 set_state(PART:"bg", "default", 0.0);
1396 set_state(PART:"elm.text.clipper", "default", 0.0);
1397 set_state(PART:"elm.icon.clipper", "default", 0.0);
1398 run_program(PROGRAM:"label_set,animation,done");
1399 run_program(PROGRAM:"icon_set,animation,done");
1402 program { name: "label_set,animation,forward";
1403 signal: "elm,state,label_set,forward";
1405 after: "label_set,animation";
1407 program { name: "label_set,animation,backward";
1408 signal: "elm,state,label_set,backward";
1410 after: "label_set,animation";
1412 program { name: "label_set,animation";
1413 signal: "elm,state,label_set";
1415 action: STATE_SET "animation" 0.0;
1416 target: "elm.text.clipper";
1417 target: "elm.text_new.clipper";
1418 transition: LINEAR 0.2;
1419 after: "label_set,animation,done";
1421 program { name: "label_set,animation,done";
1422 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1424 program { name: "label,reset";
1425 signal: "elm,state,label,reset";
1428 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1429 if (get_int(item_state) != ITEM_STATE_DISABLED)
1430 set_state(PART:"elm.text.clipper", "default", 0.0);
1432 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1435 program { name: "icon_set,animation,forward";
1436 signal: "elm,state,icon_set,forward";
1438 after: "icon_set,animation";
1440 program { name: "icon_set,animation,backward";
1441 signal: "elm,state,icon_set,backward";
1443 after: "icon_set,animation";
1445 program { name: "icon_set,animation";
1446 signal: "elm,state,icon_set";
1448 action: STATE_SET "animation" 0.0;
1449 target: "elm.icon.clipper";
1450 target: "elm.icon_new.clipper";
1451 transition: LINEAR 0.2;
1452 after: "icon_set,animation,done";
1454 program { name: "icon_set,animation,done";
1455 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1457 program { name: "icon,reset";
1458 signal: "elm,state,icon,reset";
1461 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1462 if (get_int(item_state) != ITEM_STATE_DISABLED)
1463 set_state(PART:"elm.icon.clipper", "default", 0.0);
1465 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1468 program { name: "text_show";
1469 signal: "elm,state,text,visible";
1474 get_state(PART:"elm.swallow.icon", st, 30, vl);
1475 if (!strcmp(st, "icononly"))
1477 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1478 set_state(PART:"icon_rect", "visible", 0.0);
1479 set_state(PART:"padding_after_icon", "visible", 0.0);
1481 set_state(PART:"elm.text", "visible", 0.0);
1484 program { name: "text_hide";
1485 signal: "elm,state,text,hidden";
1490 get_state(PART:"elm.swallow.icon", st, 30, vl);
1491 if (!strcmp(st, "visible"))
1493 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1494 set_state(PART:"icon_rect", "icononly", 0.0);
1495 set_state(PART:"padding_after_icon", "icononly", 0.0);
1497 set_state(PART:"elm.text", "default", 0.0);
1500 program { name: "icon_show";
1501 signal: "elm,state,icon,visible";
1506 get_state(PART:"elm.text", st, 30, vl);
1507 if (!strcmp(st, "visible"))
1509 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1510 set_state(PART:"icon_rect", "visible", 0.0);
1511 set_state(PART:"padding_after_icon", "visible", 0.0);
1515 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1516 set_state(PART:"icon_rect", "icononly", 0.0);
1517 set_state(PART:"padding_after_icon", "icononly", 0.0);
1524 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1525 inherit: "elm/toolbar/item/tabbar";
1527 public item_state = ITEM_STATE_ENABLED;
1530 part { name: "icon_rect";
1531 description { state: "default" 0.0;
1535 description { state: "visible" 0.0;
1539 to_x: "padding_left_top";
1540 to_y: "padding_right_bottom";
1545 part { name: "padding_after_icon";
1546 description { state: "default" 0.0; //when only icon or no icon is there
1547 rel1.relative: 1.0 0.0;
1550 description { state: "visible" 0.0;
1551 inherit: "default" 0.0;
1555 part { name: "padding_before_text";
1556 description { state: "default" 0.0; //when only icon or no icon is there
1561 to_y: "padding_left_top";
1565 to_y: "padding_right_bottom";
1571 part { name: "elm.swallow.icon";
1572 description { state: "default" 0.0;
1576 to_x: "padding_left_top";
1577 to_y: "padding_right_bottom";
1581 description { state: "visible" 0.0;
1586 to_x: "padding_before_text";
1587 to_y: "padding_left_top";
1591 to_x: "padding_before_text";
1592 to_y: "padding_right_bottom";
1594 aspect_preference: VERTICAL;
1596 description { state: "icononly" 0.0;
1597 aspect_preference: VERTICAL;
1600 part { name: "elm.swallow.icon_new";
1601 description { state: "default" 0.0;
1605 to_x: "padding_left_top";
1606 to_y: "padding_right_bottom";
1610 description { state: "visible" 0.0;
1615 to_x: "padding_before_text";
1616 to_y: "padding_left_top";
1620 to_x: "padding_before_text";
1621 to_y: "padding_right_bottom";
1623 aspect_preference: VERTICAL;
1625 description { state: "icononly" 0.0;
1626 aspect_preference: VERTICAL;
1629 part { name: "elm.text";
1631 description { state: "default" 0.0;
1634 to_x: "padding_after_icon";
1635 to_y: "padding_left_top";
1638 style: "toolbar_style";
1642 description { state: "selected" 0.0;
1643 inherit: "default" 0.0;
1646 description { state: "visible" 0.0;
1647 inherit: "default" 0.0;
1650 description { state: "clicked" 0.0;
1651 inherit: "default" 0.0;
1653 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1655 description { state: "focused" 0.0;
1656 inherit: "default" 0.0;
1658 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1661 part { name: "elm.text_new";
1663 description { state: "default" 0.0;
1666 to_x: "padding_after_icon";
1667 to_y: "padding_left_top";
1670 style: "toolbar_style";
1674 description { state: "selected" 0.0;
1675 inherit: "default" 0.0;
1678 description { state: "visible" 0.0;
1679 inherit: "default" 0.0;
1682 description { state: "clicked" 0.0;
1683 inherit: "default" 0.0;
1685 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1687 description { state: "focused" 0.0;
1688 inherit: "default" 0.0;
1690 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1696 group { name: "elm/toolbar/base/naviframe";
1698 part { name: "base";
1700 description { state: "default" 0.0;
1704 part { name: "clipper";
1708 state: "default" 0.0;
1719 part { name: "elm.swallow.content";
1723 state: "default" 0.0;
1728 part { name: "event";
1732 description { state: "default" 0.0;
1739 group { name: "elm/toolbar/object/naviframe";
1741 part { name: "elm.swallow.object"; // object group
1744 state: "default" 0.0;