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 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_title_tabbar_bg.png" COMP;
908 description { state: "default" 0.0;
909 image.normal: "00_winset_title_tabbar_bg.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/more/tabbar";
949 image: "00_winset_control_tab_h_line_h.png" COMP;
954 description { state: "default" 0.0;
955 rel1.relative: 0.0 0.0;
956 rel2.relative: 1.0 0.0;
957 image.normal: "00_winset_title_tabbar_bg.png";
959 description { state: "open" 0.0;
960 inherit: "default" 0.0;
961 rel2.relative: 1.0 1.0;
963 description { state: "open2" 0.0;
964 inherit: "default" 0.0;
965 rel2.relative: 1.0 2.0;
968 part { name: "clipper";
972 state: "default" 0.0;
981 description { state: "open" 0.0;
982 inherit: "default" 0.0;
983 rel2.relative: 1.0 1.0;
985 description { state: "open2" 0.0;
986 inherit: "default" 0.0;
987 rel2.relative: 1.0 0.5;
990 part { name: "clipper2";
994 state: "default" 0.0;
1004 description { state: "open" 0.0;
1005 inherit: "default" 0.0;
1006 rel1.relative: 0.0 1.0;
1008 description { state: "open2" 0.0;
1009 inherit: "default" 0.0;
1010 rel1.relative: 0.0 0.5;
1013 part { name: "elm.swallow.content";
1017 state: "default" 0.0;
1023 part { name: "elm.swallow.content2";
1024 clip_to: "clipper2";
1027 state: "default" 0.0;
1029 rel1.to: "clipper2";
1030 rel2.to: "clipper2";
1033 part { name: "separator";
1035 description { state: "default" 0.0;
1050 normal: "00_winset_control_tab_h_line_h.png";
1058 part { name: "separator2";
1059 clip_to: "clipper2";
1060 description { state: "default" 0.0;
1075 normal: "00_winset_control_tab_h_line_h.png";
1085 program { name: "open";
1086 signal: "elm,state,open";
1088 action: STATE_SET "open" 0.0;
1092 transition: LINEAR 0.2;
1094 program { name: "open2";
1095 signal: "elm,state,open2";
1097 action: STATE_SET "open2" 0.0;
1101 transition: LINEAR 0.2;
1103 program { name: "close";
1104 signal: "elm,state,close";
1106 action: STATE_SET "default" 0.0;
1108 transition: LINEAR 0.2;
1113 group { name: "elm/toolbar/item/tabbar";
1115 image: "00_winset_title_tabbar_bg.png" COMP;
1116 image: "00_winset_tabbar_focus.png" COMP;
1117 image: "00_tab_move_bg.png" COMP;
1120 data.item: "transition_animation_on" "1";
1122 public item_state = ITEM_STATE_ENABLED;
1127 description { state: "default" 0.0;
1128 visible: TABBAR_ITEM_BG_DEFAULT_VISIBLE_INC;
1129 color: TABBAR_ITEM_BG_DEFAULT_COLOR_INC;
1130 image.normal: "00_winset_title_tabbar_bg.png";
1131 image.border: TABBAR_ITEM_BG_DEFAULT_BORDER_INC;
1132 image.middle: SOLID;
1135 description { state: "selected" 0.0;
1136 inherit: "default" 0.0;
1138 color: 255 255 255 255;
1139 image.normal: "00_winset_tabbar_focus.png";
1141 description { state: "disabled" 0.0;
1142 inherit: "default" 0.0;
1144 description { state: "moving" 0.0;
1145 inherit: "default" 0.0;
1147 image.normal: "00_tab_move_bg.png";
1148 image.border: 10 10 10 10;
1151 part { name: "padding_left_top";
1155 description { state: "default" 0.0;
1157 rel2.relative: 0.0 0.0;
1164 part { name: "padding_right_bottom";
1168 description { state: "default" 0.0;
1170 rel1.relative: 1.0 1.0;
1182 description { state: "default" 0.0;
1187 to: "padding_left_top";
1191 to_x: "padding_right_bottom";
1192 to_y: "padding_left_top";
1197 description { state: "visible" 0.0;
1198 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1202 to: "padding_left_top";
1206 to_x: "padding_right_bottom";
1207 to_y: "padding_left_top";
1212 description { state: "icononly" 0.0;
1213 inherit: "default" 0.0;
1216 part { name: "padding_after_icon";
1220 description { state: "default" 0.0; //when only icon or no icon is there
1226 rel2.to: "icon_rect";
1231 description { state: "visible" 0.0;
1237 rel2.to: "icon_rect";
1242 description { state: "icononly" 0.0;
1243 inherit: "default" 0.0;
1246 part { name: "padding_before_text";
1250 description { state: "default" 0.0; //when only icon or no icon is there
1254 to_x: "padding_left_top";
1259 to_x: "padding_right_bottom";
1267 part { name: "elm.swallow.icon";
1270 clip_to: "elm.icon.clipper";
1271 description { state: "default" 0.0;
1276 to: "padding_left_top";
1280 to_x: "padding_right_bottom";
1281 to_y: "padding_left_top";
1285 description { state: "visible" 0.0;
1287 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1288 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1291 to: "padding_left_top";
1295 to_x: "padding_right_bottom";
1296 to_y: "padding_before_text";
1299 aspect_preference: HORIZONTAL;
1301 description { state: "icononly" 0.0;
1302 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1303 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1306 to: "padding_left_top";
1310 to: "padding_right_bottom";
1313 aspect_preference: HORIZONTAL;
1316 part { name: "elm.swallow.icon_new";
1319 clip_to: "elm.icon_new.clipper";
1320 description { state: "default" 0.0;
1325 to: "padding_left_top";
1329 to_x: "padding_right_bottom";
1330 to_y: "padding_left_top";
1334 description { state: "visible" 0.0;
1336 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1337 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1340 to: "padding_left_top";
1344 to_x: "padding_right_bottom";
1345 to_y: "padding_before_text";
1348 aspect_preference: HORIZONTAL;
1350 description { state: "icononly" 0.0;
1351 min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1352 max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1355 to: "padding_left_top";
1359 to: "padding_right_bottom";
1362 aspect_preference: HORIZONTAL;
1365 part { name: "elm.text";
1369 clip_to: "elm.text.clipper";
1370 description { state: "default" 0.0;
1374 to_x: "padding_left_top";
1375 to_y: "padding_after_icon";
1379 to: "padding_right_bottom";
1381 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1384 style: "toolbar_style";
1388 description { state: "selected" 0.0;
1389 inherit: "default" 0.0;
1392 description { state: "visible" 0.0;
1393 inherit: "default" 0.0;
1396 description { state: "clicked" 0.0;
1397 inherit: "default" 0.0;
1399 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1401 description { state: "focused" 0.0;
1402 inherit: "default" 0.0;
1404 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1407 part { name: "elm.text_new";
1411 clip_to: "elm.text_new.clipper";
1412 description { state: "default" 0.0;
1416 to_x: "padding_left_top";
1417 to_y: "padding_after_icon";
1421 to: "padding_right_bottom";
1423 color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1426 style: "toolbar_style";
1430 description { state: "visible" 0.0;
1431 inherit: "default" 0.0;
1434 description { state: "clicked" 0.0;
1435 inherit: "default" 0.0;
1437 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1439 description { state: "focused" 0.0;
1440 inherit: "default" 0.0;
1442 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1445 part { name: "elm.text.clipper";
1447 description { state: "default" 0.0;
1448 color: 255 255 255 255;
1450 description { state: "animation" 0.0;
1451 color: 255 255 255 0;
1453 description { state: "disabled" 0.0;
1454 color: 255 255 255 153;
1457 part { name: "elm.text_new.clipper";
1459 description { state: "default" 0.0;
1460 color: 255 255 255 0;
1462 description { state: "animation" 0.0;
1463 color: 255 255 255 255;
1465 description { state: "disabled" 0.0;
1466 color: 255 255 255 153;
1469 part { name: "elm.icon.clipper";
1471 description { state: "default" 0.0;
1472 color: 255 255 255 255;
1474 description { state: "animation" 0.0;
1475 color: 255 255 255 0;
1477 description { state: "disabled" 0.0;
1478 color: 255 255 255 153;
1481 part { name: "elm.icon_new.clipper";
1483 description { state: "default" 0.0;
1484 color: 255 255 255 0;
1486 description { state: "animation" 0.0;
1487 color: 255 255 255 255;
1489 description { state: "disabled" 0.0;
1490 color: 255 255 255 153;
1493 part { name: "event";
1496 ignore_flags: ON_HOLD;
1497 description { state: "default" 0.0;
1503 program { name: "go_active";
1504 signal: "elm,state,selected";
1506 action: STATE_SET "selected" 0.0;
1508 transition: LINEAR 0.2;
1510 program { name: "go_passive";
1511 signal: "elm,state,unselected";
1513 action: STATE_SET "default" 0.0;
1515 transition: LINEAR 0.1;
1517 program { name: "moving";
1518 signal: "elm,state,moving";
1520 action: STATE_SET "moving" 0.0;
1523 /* program { name: "pressed";
1524 signal: "mouse,down,1";
1526 action: STATE_SET "selected" 0.0;
1529 target: "elm.text_new";
1530 transition: LINEAR 0.2;
1532 program { name: "unpressed";
1533 signal: "mouse,up,1";
1535 action: STATE_SET "default" 0.0;
1538 target: "elm.text_new";
1539 transition: LINEAR 0.1;
1541 program { name: "go";
1542 signal: "mouse,clicked,1";
1544 action: SIGNAL_EMIT "elm,action,click" "elm";
1546 program { name: "mouse,in";
1549 action: SIGNAL_EMIT "elm,mouse,in" "elm";
1551 program { name: "mouse,out";
1552 signal: "mouse,out";
1554 action: SIGNAL_EMIT "elm,mouse,out" "elm";
1556 program { name: "disable";
1557 signal: "elm,state,disabled";
1560 set_int(item_state, ITEM_STATE_DISABLED);
1561 set_state(PART:"bg", "disabled", 0.0);
1562 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1563 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1564 run_program(PROGRAM:"label_set,animation,done");
1565 run_program(PROGRAM:"icon_set,animation,done");
1568 program { name: "enable";
1569 signal: "elm,state,enabled";
1572 set_int(item_state, ITEM_STATE_ENABLED);
1573 set_state(PART:"bg", "default", 0.0);
1574 set_state(PART:"elm.text.clipper", "default", 0.0);
1575 set_state(PART:"elm.icon.clipper", "default", 0.0);
1576 run_program(PROGRAM:"label_set,animation,done");
1577 run_program(PROGRAM:"icon_set,animation,done");
1580 program { name: "label_set,animation,forward";
1581 signal: "elm,state,label_set,forward";
1583 after: "label_set,animation";
1585 program { name: "label_set,animation,backward";
1586 signal: "elm,state,label_set,backward";
1588 after: "label_set,animation";
1590 program { name: "label_set,animation";
1591 signal: "elm,state,label_set";
1593 action: STATE_SET "animation" 0.0;
1594 target: "elm.text.clipper";
1595 target: "elm.text_new.clipper";
1596 transition: LINEAR 0.2;
1597 after: "label_set,animation,done";
1599 program { name: "label_set,animation,done";
1600 action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1602 program { name: "label,reset";
1603 signal: "elm,state,label,reset";
1606 set_state(PART:"elm.text_new.clipper", "default", 0.0);
1607 if (get_int(item_state) != ITEM_STATE_DISABLED)
1608 set_state(PART:"elm.text.clipper", "default", 0.0);
1610 set_state(PART:"elm.text.clipper", "disabled", 0.0);
1613 program { name: "icon_set,animation,forward";
1614 signal: "elm,state,icon_set,forward";
1616 after: "icon_set,animation";
1618 program { name: "icon_set,animation,backward";
1619 signal: "elm,state,icon_set,backward";
1621 after: "icon_set,animation";
1623 program { name: "icon_set,animation";
1624 signal: "elm,state,icon_set";
1626 action: STATE_SET "animation" 0.0;
1627 target: "elm.icon.clipper";
1628 target: "elm.icon_new.clipper";
1629 transition: LINEAR 0.2;
1630 after: "icon_set,animation,done";
1632 program { name: "icon_set,animation,done";
1633 action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1635 program { name: "icon,reset";
1636 signal: "elm,state,icon,reset";
1639 set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1640 if (get_int(item_state) != ITEM_STATE_DISABLED)
1641 set_state(PART:"elm.icon.clipper", "default", 0.0);
1643 set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1646 program { name: "text_show";
1647 signal: "elm,state,text,visible";
1652 get_state(PART:"elm.swallow.icon", st, 30, vl);
1653 if (!strcmp(st, "icononly"))
1655 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1656 set_state(PART:"icon_rect", "visible", 0.0);
1657 set_state(PART:"padding_after_icon", "visible", 0.0);
1659 set_state(PART:"elm.text", "visible", 0.0);
1662 program { name: "text_hide";
1663 signal: "elm,state,text,hidden";
1668 get_state(PART:"elm.swallow.icon", st, 30, vl);
1669 if (!strcmp(st, "visible"))
1671 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1672 set_state(PART:"icon_rect", "icononly", 0.0);
1673 set_state(PART:"padding_after_icon", "icononly", 0.0);
1675 set_state(PART:"elm.text", "default", 0.0);
1678 program { name: "icon_show";
1679 signal: "elm,state,icon,visible";
1684 get_state(PART:"elm.text", st, 30, vl);
1685 if (!strcmp(st, "visible"))
1687 set_state(PART:"elm.swallow.icon", "visible", 0.0);
1688 set_state(PART:"icon_rect", "visible", 0.0);
1689 set_state(PART:"padding_after_icon", "visible", 0.0);
1693 set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1694 set_state(PART:"icon_rect", "icononly", 0.0);
1695 set_state(PART:"padding_after_icon", "icononly", 0.0);
1702 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1703 inherit: "elm/toolbar/item/tabbar";
1705 public item_state = ITEM_STATE_ENABLED;
1708 part { name: "icon_rect";
1709 description { state: "default" 0.0;
1713 description { state: "visible" 0.0;
1717 to_x: "padding_left_top";
1718 to_y: "padding_right_bottom";
1723 part { name: "padding_after_icon";
1724 description { state: "default" 0.0; //when only icon or no icon is there
1725 rel1.relative: 1.0 0.0;
1728 description { state: "visible" 0.0;
1729 inherit: "default" 0.0;
1733 part { name: "padding_before_text";
1734 description { state: "default" 0.0; //when only icon or no icon is there
1739 to_y: "padding_left_top";
1743 to_y: "padding_right_bottom";
1749 part { name: "elm.swallow.icon";
1750 description { state: "default" 0.0;
1754 to_x: "padding_left_top";
1755 to_y: "padding_right_bottom";
1759 description { state: "visible" 0.0;
1764 to_x: "padding_before_text";
1765 to_y: "padding_left_top";
1769 to_x: "padding_before_text";
1770 to_y: "padding_right_bottom";
1772 aspect_preference: VERTICAL;
1774 description { state: "icononly" 0.0;
1775 aspect_preference: VERTICAL;
1778 part { name: "elm.swallow.icon_new";
1779 description { state: "default" 0.0;
1783 to_x: "padding_left_top";
1784 to_y: "padding_right_bottom";
1788 description { state: "visible" 0.0;
1793 to_x: "padding_before_text";
1794 to_y: "padding_left_top";
1798 to_x: "padding_before_text";
1799 to_y: "padding_right_bottom";
1801 aspect_preference: VERTICAL;
1803 description { state: "icononly" 0.0;
1804 aspect_preference: VERTICAL;
1807 part { name: "elm.text";
1809 description { state: "default" 0.0;
1812 to_x: "padding_after_icon";
1813 to_y: "padding_left_top";
1816 style: "toolbar_style";
1820 description { state: "selected" 0.0;
1821 inherit: "default" 0.0;
1824 description { state: "visible" 0.0;
1825 inherit: "default" 0.0;
1828 description { state: "clicked" 0.0;
1829 inherit: "default" 0.0;
1831 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1833 description { state: "focused" 0.0;
1834 inherit: "default" 0.0;
1836 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1839 part { name: "elm.text_new";
1841 description { state: "default" 0.0;
1844 to_x: "padding_after_icon";
1845 to_y: "padding_left_top";
1848 style: "toolbar_style";
1852 description { state: "selected" 0.0;
1853 inherit: "default" 0.0;
1856 description { state: "visible" 0.0;
1857 inherit: "default" 0.0;
1860 description { state: "clicked" 0.0;
1861 inherit: "default" 0.0;
1863 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1865 description { state: "focused" 0.0;
1866 inherit: "default" 0.0;
1868 color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1874 group { name: "elm/toolbar/base/naviframe";
1876 part { name: "base";
1878 description { state: "default" 0.0;
1882 part { name: "clipper";
1886 state: "default" 0.0;
1897 part { name: "elm.swallow.content";
1901 state: "default" 0.0;
1906 part { name: "event";
1910 description { state: "default" 0.0;
1917 group { name: "elm/toolbar/object/naviframe";
1919 part { name: "elm.swallow.object"; // object group
1922 state: "default" 0.0;