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 NAVIFRAME_VIEW_TRANS_TIME 0.3
22 group { name: "elm/naviframe/item/basic/default";
24 image: "00_title_bg.png" COMP;
25 image: "00_toolbar_bg.png" COMP;
26 image: "00_badge_bg.png" COMP;
29 public tbar_bg = 0; //Toolbar BG Show call count
30 public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
31 public tbar_close = 0; //Toolbar lastest Open/Close status
32 public title_badge_visible = 0; //Title badge visible/hidden status
33 public title_slide_visible = 0; //Title slide visible/hidden status
34 public landscape = 0; //Landscape mode status
40 description { state: "default" 0.0;
43 description { state: "left" 0.0;
44 inherit: "default" 0.0;
45 rel1.relative: -1.0 0.0;
46 rel2.relative: 0.0 1.0;
48 description { state: "right" 0.0;
49 inherit: "default" 0.0;
50 rel1.relative: 1.0 0.0;
51 rel2.relative: 2.0 1.0;
54 part { name: "title_bg";
56 description { state: "default" 0.0;
57 min: 1 NAVIFRAME_TITLE_H_INC;
60 rel1 { relative: 0.0 0.0; to: "base"; }
61 rel2 { relative: 1.0 0.0; to: "base"; }
63 normal: "00_title_bg.png";
64 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
68 description { state: "landscape" 0.0;
69 inherit: "default" 0.0;
70 min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
72 description { state: "hide" 0.0;
73 inherit: "default" 0.0;
79 part { name: "title_clip";
82 description { state: "default" 0.0;
83 rel1 { to: "title_bg"; }
84 rel2 { to: "title_bg"; }
87 part { name: "top_padding";
93 min: NAVIFRAME_TITLE_TOP_PADDING_INC;
96 rel1 { relative: 0.0 0.0; to: "title_bg"; }
97 rel2 { relative: 1.0 0.0; to: "title_bg"; }
101 state: "landscape" 0.0;
102 inherit: "default" 0.0;
103 min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
106 part { name: "top_padding2";
111 state: "default" 0.0;
112 min: NAVIFRAME_TITLE_TOP_PADDING2_INC;
115 rel1 { relative: 0.0 0.0; to: "title_bg"; }
116 rel2 { relative: 1.0 0.0; to: "title_bg"; }
120 state: "landscape" 0.0;
121 inherit: "default" 0.0;
122 min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING2_INC;
125 part { name: "right_padding";
130 state: "default" 0.0;
131 min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
134 rel1 { relative: 1.0 0.0; to: "title_bg"; }
135 rel2 { relative: 1.0 1.0; to: "title_bg"; }
139 part { name: "padding_center_text1";
143 description { state: "default" 0.0;
144 min: NAVIFRAME_PADDING_INC;
147 rel1 { relative: 0.0 0.0; to: "title_bg"; }
148 rel2 { relative: 0.0 1.0; to: "title_bg"; }
151 description { state: "icon" 0.0;
152 inherit: "default" 0.0;
153 min: NAVIFRAME_ICON_PADDING_INC;
156 part { name: "elm.swallow.content";
160 clip_to: "content_clip";
161 description { state: "default" 0.0;
163 rel1.relative: 0.0 1.0;
165 rel1.to_y: "title_bg";
166 rel2.relative: 1.0 0.0;
168 rel2.to_y: "toolbar_bg";
171 part { name: "content_clip";
174 description { state: "default" 0.0;
175 rel1.to: "elm.swallow.content";
176 rel2.to: "elm.swallow.content";
179 part { name: "padding_center_text2";
183 description { state: "default" 0.0;
184 min: NAVIFRAME_PADDING2_INC;
187 rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
188 rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
192 part { name: "padding_bottom_text";
196 description { state: "default" 0.0;
197 min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
200 rel1 { relative: 0.0 1.0; to: "title_bg"; }
201 rel2 { relative: 1.0 1.0; to: "title_bg"; }
204 description { state: "landscape" 0.0;
205 inherit: "default" 0.0;
206 min: NAVIFRAME_LANDSCAPE_BOTTOM_TEXT_PADDING_INC;
209 part { name: "badge_padding";
213 description { state: "default" 0.0;
217 rel1 { relative: 0.0 0.0; to: "padding_center_text2"; }
218 rel2 { relative: 0.0 1.0; to: "padding_center_text2"; }
221 description { state: "visible" 0.0;
222 inherit: "default" 0.0;
223 min: NAVIFRAME_BADGE_PADDING_INC;
226 part { name: "title_text_bg";
229 description { state: "default" 0.0;
232 rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
233 rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
235 description { state: "subtitle_is_set" 0.0;
236 inherit: "default" 0.0;
237 rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding2"; }
238 rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "subtitle_text_bg"; }
241 part { name: "elm.text.title";
243 effect: FAR_SHADOW BOTTOM;
245 clip_to: "title_clip";
246 description { state: "default" 0.0;
247 text { font: "Tizen:style=Medium";
248 size: NAVIFRAME_TITLE_FONT_SIZE_INC;
249 size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_TITLE_FONT_SIZE_INC;
256 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
257 color3: 255 255 255 255;
260 rel1 { to: "title_text_bg"; }
261 rel2 { relative: 0.0 1.0; to_x: "badge_padding"; to_y: "title_text_bg"; }
263 description { state: "subtitle_is_set" 0.0;
264 inherit: "default" 0.0;
265 text { font: "Tizen:style=Medium";
266 size: NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC;
273 description { state: "default_landscape" 0.0;
274 inherit: "default" 0.0;
275 text { font: "Tizen:style=Medium";
276 size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
277 size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
285 description { state: "subtitle_is_set_landscape" 0.0;
286 inherit: "default" 0.0;
287 text { font: "Tizen:style=Medium";
288 size: NAVIFRAME_LANDSCAPE_TITLE_SMALL_FONT_SIZE_INC;
296 part { name: "subtitle_text_bg";
300 description { state: "default" 0.0;
306 rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "padding_bottom_text"; }
307 rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
309 description { state: "visible" 0.0;
310 inherit: "default" 0.0;
311 min: 0 NAVIFRAME_SUBTITLE_HEIGHT_INC;
312 max: -1 NAVIFRAME_SUBTITLE_HEIGHT_INC;
314 description { state: "visible_landscape" 0.0;
315 inherit: "default" 0.0;
316 min: 0 NAVIFRAME_LANDSCAPE_SUBTITLE_HEIGHT_INC;
317 max: -1 NAVIFRAME_LANDSCAPE_SUBTITLE_HEIGHT_INC;
320 part { name: "elm.text.subtitle";
323 clip_to: "title_clip";
324 description { state: "default" 0.0;
325 text { font: "Tizen:style=Medium";
326 size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC;
332 color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC;
335 rel1.to: "subtitle_text_bg";
336 rel2.to: "subtitle_text_bg";
338 description { state: "landscape" 0.0;
339 inherit: "default" 0.0;
340 text { font: "Tizen:style=Medium";
341 size: NAVIFRAME_LANDSCAPE_SUBTITLE_FONT_SIZE_INC;
349 part { name: "padding_before_text";
353 description { state: "default" 0.0;
355 rel1 { relative: 0.0 0.0; to: "elm.text.title"; }
356 rel2 { relative: 0.0 1.0; to: "elm.text.title"; }
358 min: NAVIFRAME_PADDING_INC;
362 part { name: "badge_top_padding";
365 description { state: "default" 0.0;
367 min: NAVIFRAME_BADGE_TOP_PADDING_INC;
369 rel1 { relative: 0.0 0.0; to: "title_bg"; }
370 rel2 { relative: 1.0 0.0; to: "title_bg"; }
374 part { name: "badge_left_padding";
377 description { state: "default" 0.0;
381 rel1 { relative: 1.0 1.0; to_x: "elm.text.title"; to_y: "badge_top_padding"; }
382 rel2 { relative: 1.0 0.5; to_x: "elm.text.title"; to_y: "title_bg"; }
385 description { state: "visible" 0.0;
386 inherit: "default" 0.0;
387 min: NAVIFRAME_PADDING_BADGE_INC;
389 description { state: "title_slide_is_set" 0.0;
390 inherit: "visible" 0.0;
391 rel1 { relative: 1.0 1.0; to_x: "elm.swallow.title"; to_y: "badge_top_padding"; }
392 rel2 { relative: 1.0 0.5; to_x: "elm.swallow.title"; to_y: "title_bg"; }
395 part { name: "left.padding.text";
399 state: "default" 0.0;
404 to: "badge_left_padding";
408 to: "badge_left_padding";
414 state: "visible" 0.0;
415 inherit: "default" 0.0;
419 part { name: "right.padding.text";
423 state: "default" 0.0;
438 state: "visible" 0.0;
439 inherit: "default" 0.0;
443 part { name: "badge_bg";
446 clip_to: "title_clip";
447 description { state: "default" 0.0;
452 to: "left.padding.text";
456 to: "right.padding.text";
460 normal: "00_badge_bg.png";
461 border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
465 description { state: "visible" 0.0;
466 inherit: "default" 0.0;
468 min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
471 part { name: "title_badge";
475 clip_to: "title_clip";
476 description { state: "default" 0.0;
478 max: NAVIFRAME_BADGE_TEXT_W_INC -1;
480 rel1 { relative: 1.0 0.0; to: "left.padding.text"; }
481 rel2 { relative: 1.0 1.0; to_y: "left.padding.text"; to_x: "badge_padding"; }
483 color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
485 font: "Tizen:style=Bold";
486 size: NAVIFRAME_BADGE_TEXT_H_INC;
492 description { state: "visible" 0.0;
493 inherit: "default" 0.0;
497 part { name: "click_event_area";
499 ignore_flags: ON_HOLD;
500 description { state: "default" 0.0;
501 rel1 { to: "title_bg"; }
502 rel2 { to: "title_bg"; }
506 part { name: "elm.swallow.title";
510 clip_to: "title_clip";
511 description { state: "default" 0.0;
513 rel1 { to: "title_text_bg"; }
514 rel2 { to: "title_text_bg"; }
517 part { name: "elm.swallow.subtitle";
521 clip_to: "title_clip";
522 description { state: "default" 0.0;
524 rel1 { to: "subtitle_text_bg"; }
525 rel2 { to: "subtitle_text_bg"; }
528 part { name: "access.title";
531 description { state: "default" 0.0;
538 part { name: "title_left_btn";
541 clip_to: "title_clip";
542 description { state: "default" 0.0;
543 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
546 rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
547 rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
549 description { state: "landscape" 0.0;
550 inherit: "default" 0.0;
551 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
554 part { name: "elm.swallow.icon";
557 clip_to: "title_clip";
558 description { state: "default" 0.0;
559 max: NAVIFRAME_ICON_SIZE_INC;
561 rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
562 rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
564 aspect_preference: VERTICAL;
568 part { name: "title_right_btn";
571 clip_to: "title_clip";
572 description { state: "default" 0.0;
573 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
576 rel1 { relative: 0.0 0.0; to: "right_padding"; }
577 rel2 { relative: 0.0 1.0; to: "right_padding"; }
579 description { state: "landscape" 0.0;
580 inherit: "default" 0.0;
581 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
584 part { name: "title_more_btn";
587 clip_to: "title_clip";
588 description { state: "default" 0.0;
589 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
592 rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
593 rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
595 description { state: "landscape" 0.0;
596 inherit: "default" 0.0;
597 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
600 part { name: "toolbar_bg";
602 description { state: "default" 0.0;
611 normal: "00_toolbar_bg.png";
612 border: NAVIFRAME_TOOLBAR_BG_IMAGE_BORDER_INC;
616 description { state: "visible" 0.0;
617 inherit: "default" 0.0;
618 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
619 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
622 description { state: "visible_landscape" 0.0;
623 inherit: "default" 0.0;
624 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
625 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
629 part { name: "more_btn_bg";
633 description { state: "default" 0.0;
634 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
637 rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
638 rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
642 part { name: "toolbar_more_btn";
645 clip_to: "toolbar_clip";
646 description { state: "default" 0.0;
647 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
649 rel1.to: "more_btn_bg";
650 rel2.to: "more_btn_bg";
652 description { state: "landscape" 0.0;
653 inherit: "default" 0.0;
654 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
657 part { name: "prev_btn_bg";
661 description { state: "default" 0.0;
662 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
665 rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
666 rel2.to: "toolbar_bg";
670 part { name: "elm.swallow.prev_btn";
673 clip_to: "toolbar_clip";
674 description { state: "default" 0.0;
675 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
678 rel1.to: "prev_btn_bg";
679 rel2.to: "prev_btn_bg";
681 description { state: "landscape" 0.0;
682 inherit: "default" 0.0;
683 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
686 part { name: "toolbar_btns_area";
689 description { state: "default" 0.0;
690 rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
691 rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
695 part { name: "toolbar_clip";
698 description { state: "default" 0.0;
699 rel1 { to: "toolbar_bg"; }
700 rel2 { to: "toolbar_bg"; }
703 part { name: "toolbar_button1";
706 clip_to: "toolbar_clip";
707 description { state: "default" 0.0;
710 rel1.to: "toolbar_btns_area";
711 rel2.to: "toolbar_btns_area";
713 description { state: "buttons_set" 0.0;
714 inherit: "default" 0.0;
718 to: "toolbar_button_padding";
722 part { name: "toolbar_button_padding";
725 description { state: "default" 0.0;
726 min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
727 max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
731 rel1.to: "toolbar_btns_area";
732 rel2.to: "toolbar_btns_area";
734 description { state: "landscape" 0.0;
735 inherit: "default" 0.0;
736 min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
737 max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
740 part { name: "toolbar_button2";
743 clip_to: "toolbar_clip";
744 description { state: "default" 0.0;
747 rel1.to: "toolbar_btns_area";
748 rel2.to: "toolbar_btns_area";
750 description { state: "buttons_set" 0.0;
751 inherit: "default" 0.0;
755 to: "toolbar_button_padding";
761 program { name: "content_new_pushed";
762 signal: "elm,state,new,pushed,deferred";
764 action: STATE_SET "default" 0.0;
766 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
767 after: "show_finished";
769 program { name: "content_cur_pushed";
770 signal: "elm,state,cur,pushed,deferred";
772 action: STATE_SET "left" 0.0;
774 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
775 after: "pushed_finished";
777 program { name: "content_prev_popped";
778 signal: "elm,state,prev,popped,deferred";
780 action: STATE_SET "default" 0.0;
782 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
783 after: "show_finished";
785 program { name: "content_cur_popped";
786 signal: "elm,state,cur,popped,deferred";
788 action: STATE_SET "right" 0.0;
790 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
791 after: "popped_finished";
793 program { name: "cur_pushed";
794 signal: "elm,state,cur,pushed";
796 action: STATE_SET "default" 0.0;
799 program { name: "new_pushed";
800 signal: "elm,state,new,pushed";
802 action: STATE_SET "right" 0.0;
805 program { name: "prev_popped";
806 signal: "elm,state,prev,popped";
808 action: STATE_SET "left" 0.0;
811 program { name: "cur_popped";
812 signal: "elm,state,cur,popped";
814 action: STATE_SET "default" 0.0;
817 program { name: "visible";
818 signal: "elm,state,visible";
820 action: STATE_SET "default" 0.0;
823 program { name: "title_show";
824 signal: "elm,state,title,show";
827 if (get_int(landscape) == 0)
828 set_state(PART:"title_bg", "default", 0.0);
830 set_state(PART:"title_bg", "landscape", 0.0);
833 program { name: "title_hide";
834 signal: "elm,state,title,hide";
837 set_state(PART:"title_bg", "hide", 0.0);
840 program { name: "subtitle_show";
841 signal: "elm,state,subtitle,show";
844 set_state(PART:"title_text_bg", "subtitle_is_set", 0.0);
845 if (get_int(landscape) == 0) {
846 set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
847 set_state(PART:"subtitle_text_bg", "visible", 0.0);
850 set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
851 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
855 program { name: "subtitle_hide";
856 signal: "elm,state,subtitle,hide";
859 set_state(PART:"title_text_bg", "default", 0.0);
860 set_state(PART:"subtitle_text_bg", "default", 0.0);
861 if (get_int(landscape) == 0)
862 set_state(PART:"elm.text.title", "default", 0.0);
864 set_state(PART:"elm.text.title", "default_landscape", 0.0);
867 program { name: "icon_show";
868 signal: "elm,state,icon,show";
870 action: STATE_SET "icon" 0.0;
871 target: "padding_center_text1";
873 program { name: "icon_hide";
874 signal: "elm,state,icon,hide";
876 action: STATE_SET "default" 0.0;
877 target: "padding_center_text1";
879 program { name: "prev_btn_show";
880 signal: "elm,state,prev_btn,show";
883 emit("elm,state,toolbar_bg,show", "elm");
886 program { name: "prev_btn_hide";
887 signal: "elm,state,prev_btn,hide";
890 emit("elm,state,toolbar_bg,hide", "elm");
893 program { name: "more_btn_show";
894 signal: "elm,state,toolbar_more_btn,show";
897 emit("elm,state,toolbar_bg,show", "elm");
900 program { name: "more_btn_hide";
901 signal: "elm,state,toolbar_more_btn,hide";
904 emit("elm,state,toolbar_bg,hide", "elm");
907 program { name: "toolbar_button1_show";
908 signal: "elm,state,toolbar_button1,show";
911 emit("elm,state,toolbar_bg,show", "elm");
912 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
913 if (get_int(toolbar_buttons_visible) >= 2)
915 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
916 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
920 program { name: "toolbar_button1_hide";
921 signal: "elm,state,toolbar_button1,hide";
924 emit("elm,state,toolbar_bg,hide", "elm");
925 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
926 set_state(PART:"toolbar_button1", "default", 0.0);
927 set_state(PART:"toolbar_button2", "default", 0.0);
930 program { name: "toolbar_button2_show";
931 signal: "elm,state,toolbar_button2,show";
934 emit("elm,state,toolbar_bg,show", "elm");
935 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
936 if (get_int(toolbar_buttons_visible) >= 2)
938 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
939 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
943 program { name: "toolbar_button2_hide";
944 signal: "elm,state,toolbar_button2,hide";
947 emit("elm,state,toolbar_bg,hide", "elm");
948 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
949 set_state(PART:"toolbar_button1", "default", 0.0);
950 set_state(PART:"toolbar_button2", "default", 0.0);
953 program { name: "toolbar_bg_show";
954 signal: "elm,state,toolbar_bg,show";
957 if (get_int(landscape) == 0)
958 set_state(PART:"toolbar_bg", "visible", 0.0);
960 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
961 set_int(tbar_bg, get_int(tbar_bg) + 1);
964 program { name: "toolbar_bg_hide";
965 signal: "elm,state,toolbar_bg,hide";
968 set_int(tbar_bg, get_int(tbar_bg) - 1);
969 if (get_int(tbar_bg) <= 0)
970 set_state(PART:"toolbar_bg", "default", 0.0);
973 program { name: "toolbar_open_internal";
974 signal: "elm,state,toolbar,open,internal";
977 set_int(tbar_close, 0);
978 if (get_int(landscape) == 0)
979 set_state(PART:"toolbar_bg", "visible", 0.0);
981 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
984 program { name: "toolbar_close_internal";
985 signal: "elm,state,toolbar,close,internal";
988 set_int(tbar_close, 1);
989 set_state(PART:"toolbar_bg", "default", 0.0);
992 program { name: "toolbar_open";
993 signal: "elm,state,toolbar,open";
996 if (get_int(landscape) == 0)
997 set_state(PART:"toolbar_bg", "visible", 0.0);
999 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1001 transition: LINEAR 0.2;
1002 after: "toolbar_open_internal";
1004 program { name: "toolbar_close";
1005 signal: "elm,state,toolbar,close";
1007 action: STATE_SET "default" 0.0;
1008 target: "toolbar_bg";
1009 transition: LINEAR 0.2;
1010 after: "toolbar_close_internal";
1012 program { name: "toolbar_instant_open";
1013 signal: "elm,state,toolbar,instant_open";
1016 emit("elm,state,toolbar,open,internal", "elm");
1019 program { name: "toolbar_instant_close";
1020 signal: "elm,state,toolbar,instant_close";
1023 emit("elm,state,toolbar,close,internal", "elm");
1026 program { name: "show_finished";
1027 action: SIGNAL_EMIT "elm,action,show,finished" "";
1029 program { name: "pushed_finished";
1030 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1032 program { name: "popped_finished";
1033 action: SIGNAL_EMIT "elm,action,popped,finished" "";
1036 name: "title_clicked";
1037 signal: "mouse,clicked,1";
1038 source: "click_event_area";
1039 action: SIGNAL_EMIT "elm,action,title,clicked" "";
1042 name: "title_badge_show";
1043 signal: "elm,state,title_badge,show";
1046 if (get_int(title_slide_visible) == 0)
1047 set_state(PART:"badge_left_padding", "visible", 0.0);
1049 set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1050 set_state(PART:"badge_padding", "visible", 0.0);
1051 set_state(PART:"left.padding.text", "visible", 0.0);
1052 set_state(PART:"right.padding.text", "visible", 0.0);
1053 set_state(PART:"badge_bg", "visible", 0.0);
1054 set_state(PART:"title_badge", "visible", 0.0);
1055 set_int(title_badge_visible, 1);
1059 name: "title_badge_hide";
1060 signal: "elm,state,title_badge,hide";
1063 set_state(PART:"badge_left_padding", "default", 0.0);
1064 set_state(PART:"badge_padding", "default", 0.0);
1065 set_state(PART:"left.padding.text", "default", 0.0);
1066 set_state(PART:"right.padding.text", "default", 0.0);
1067 set_state(PART:"badge_bg", "default", 0.0);
1068 set_state(PART:"title_badge", "default", 0.0);
1069 set_int(title_badge_visible, 0);
1073 name: "title_slide_show";
1074 signal: "elm,state,elm.swallow.title,show";
1077 if (get_int(title_badge_visible) == 1)
1078 set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1079 set_int(title_slide_visible, 1);
1083 name: "title_slide_hide";
1084 signal: "elm,state,elm.swallow.title,hide";
1087 if (get_int(title_badge_visible) == 1)
1088 set_state(PART:"badge_left_padding", "visible", 0.0);
1089 set_int(title_slide_visible, 0);
1093 name: "subtitle_slide_show";
1094 signal: "elm,state,elm.swallow.subtitle,show";
1097 set_state(PART:"title_text_bg", "subtitle_is_set", 0.0);
1098 if (get_int(landscape) == 0)
1099 set_state(PART:"subtitle_text_bg", "visible", 0.0);
1101 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1105 name: "subtitle_slide_hide";
1106 signal: "elm,state,elm.swallow.subtitle,hide";
1109 set_state(PART:"title_text_bg", "default", 0.0);
1110 set_state(PART:"subtitle_text_bg", "default", 0.0);
1114 name: "change_to_landscape";
1115 signal: "elm,state,landscape";
1118 if (get_int(landscape) == 0) {
1119 set_state(PART:"top_padding", "landscape", 0.0);
1120 set_state(PART:"top_padding2", "landscape", 0.0);
1121 set_state(PART:"padding_bottom_text", "landscape", 0.0);
1122 set_state(PART:"elm.text.subtitle", "landscape", 0.0);
1123 set_state(PART:"title_left_btn", "landscape", 0.0);
1124 set_state(PART:"title_right_btn", "landscape", 0.0);
1125 set_state(PART:"title_more_btn", "landscape", 0.0);
1126 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1127 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1128 set_state(PART:"toolbar_button_padding", "landscape", 0.0);
1132 get_state(PART:"title_bg", st, 30, vl);
1133 if (!strcmp(st, "default"))
1134 set_state(PART:"title_bg", "landscape", 0.0);
1136 get_state(PART:"elm.text.title", st, 30, vl);
1137 if (!strcmp(st, "default"))
1138 set_state(PART:"elm.text.title", "default_landscape", 0.0);
1140 set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
1142 get_state(PART:"subtitle_text_bg", st, 30, vl);
1143 if (!strcmp(st, "visible"))
1144 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1146 get_state(PART:"toolbar_bg", st, 30, vl);
1147 if (!strcmp(st, "visible"))
1148 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1150 set_int(landscape, 1);
1155 name: "change_to_portrait";
1156 signal: "elm,state,portrait";
1159 if (get_int(landscape) == 1) {
1160 set_state(PART:"top_padding", "default", 0.0);
1161 set_state(PART:"top_padding2", "default", 0.0);
1162 set_state(PART:"padding_bottom_text", "default", 0.0);
1163 set_state(PART:"elm.text.subtitle", "default", 0.0);
1164 set_state(PART:"title_left_btn", "default", 0.0);
1165 set_state(PART:"title_right_btn", "default", 0.0);
1166 set_state(PART:"title_more_btn", "default", 0.0);
1167 set_state(PART:"toolbar_more_btn", "default", 0.0);
1168 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1169 set_state(PART:"toolbar_button_padding", "default", 0.0);
1173 get_state(PART:"title_bg", st, 30, vl);
1174 if (!strcmp(st, "landscape"))
1175 set_state(PART:"title_bg", "default", 0.0);
1177 get_state(PART:"elm.text.title", st, 30, vl);
1178 if (!strcmp(st, "default_landscape"))
1179 set_state(PART:"elm.text.title", "default", 0.0);
1181 set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
1183 get_state(PART:"subtitle_text_bg", st, 30, vl);
1184 if (!strcmp(st, "visible_landscape"))
1185 set_state(PART:"subtitle_text_bg", "visible", 0.0);
1187 get_state(PART:"toolbar_bg", st, 30, vl);
1188 if (!strcmp(st, "visible_landscape"))
1189 set_state(PART:"toolbar_bg", "visible", 0.0);
1191 set_int(landscape, 0);
1195 program { name: "landscape_mode";
1197 signal: "elm,state,orient,90";
1198 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1200 program { name: "landscape_mode2";
1202 signal: "elm,state,orient,270";
1203 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1205 program { name: "portrait_mode";
1207 signal: "elm,state,orient,0";
1208 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1210 program { name: "portrait_mode2";
1212 signal: "elm,state,orient,180";
1213 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1218 group { name: "elm/naviframe/item/tabbar/default";
1220 image: "00_title_bg.png" COMP;
1221 image: "00_toolbar_bg.png" COMP;
1224 public tbar_bg = 0; //Controlbar BG Show call count
1225 public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
1226 public tbar_close = 0; //Toolbar lastest Open/Close status
1227 public landscape = 0; //Landscape mode status
1230 part { name: "base";
1233 description { state: "default" 0.0;
1236 description { state: "left" 0.0;
1237 inherit: "default" 0.0;
1238 rel1.relative: -1.0 0.0;
1239 rel2.relative: 0.0 1.0;
1241 description { state: "right" 0.0;
1242 inherit: "default" 0.0;
1243 rel1.relative: 1.0 0.0;
1244 rel2.relative: 2.0 1.0;
1247 part { name: "title_bg";
1249 description { state: "default" 0.0;
1250 min: 1 NAVIFRAME_TAB_TITLE_H_INC;
1253 rel1 { relative: 0.0 0.0; to: "base"; }
1254 rel2 { relative: 1.0 0.0; to: "base"; }
1256 normal: "00_title_bg.png";
1257 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
1261 description { state: "landscape" 0.0;
1262 inherit: "default" 0.0;
1263 min: 1 NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC;
1265 description { state: "hide" 0.0;
1266 inherit: "default" 0.0;
1272 part { name: "title_clip";
1275 description { state: "default" 0.0;
1276 rel1 { to: "title_bg"; }
1277 rel2 { to: "title_bg"; }
1280 part { name: "elm.swallow.content";
1284 clip_to: "content_clip";
1285 description { state: "default" 0.0;
1287 rel1.relative: 0.0 1.0;
1289 rel1.to_y: "title_bg";
1290 rel2.relative: 1.0 0.0;
1292 rel2.to_y: "toolbar_bg";
1295 part { name: "content_clip";
1298 description { state: "default" 0.0;
1299 rel1.to: "elm.swallow.content";
1300 rel2.to: "elm.swallow.content";
1303 part { name: "top_padding";
1307 description { state: "default" 0.0;
1309 rel1 { relative: 0.0 0.0; to: "title_bg"; }
1310 rel2 { relative: 1.0 0.0; to: "title_bg"; }
1312 min: NAVIFRAME_TAB_TITLE_TOP_PADDING_INC;
1315 description { state: "landscape" 0.0;
1316 inherit: "default" 0.0;
1317 min: NAVIFRAME_LANDSCAPE_TAB_TITLE_TOP_PADDING_INC;
1320 part { name: "left_padding";
1324 description { state: "default" 0.0;
1326 rel1 { relative: 0.0 0.0; to: "title_bg"; }
1327 rel2 { relative: 0.0 1.0; to: "title_bg"; }
1329 min: NAVIFRAME_PADDING_INC;
1333 part { name: "right_padding";
1337 description { state: "default" 0.0;
1339 rel1 { relative: 1.0 0.0; to: "title_bg"; }
1340 rel2 { relative: 1.0 1.0; to: "title_bg"; }
1342 min: NAVIFRAME_PADDING_INC;
1345 description { state: "landscape" 0.0;
1346 inherit: "default" 0.0;
1347 min: NAVIFRAME_LANDSCAPE_PADDING_INC;
1350 part { name: "elm.text.title";
1353 effect: FAR_SHADOW BOTTOM;
1354 clip_to: "title_clip";
1355 description { state: "default" 0.0;
1357 text { font: "Tizen:style=Medium";
1358 size: NAVIFRAME_TITLE_TAB_FONT_SIZE_INC;
1362 text_class: "tizen";
1364 min: 0 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1365 max: 999999 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1367 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
1368 color3: 255 255 255 255;
1370 rel1.to_x: "left_padding";
1371 rel1.to_y: "top_padding";
1372 rel1.relative: 1.0 1.0;
1373 rel2.to: "right_padding";
1374 rel2.relative: 0.0 1.0;
1376 description { state: "landscape" 0.0;
1377 inherit: "default" 0.0;
1378 text { font: "Tizen:style=Medium";
1379 size: NAVIFRAME_LANDSCAPE_TITLE_TAB_FONT_SIZE_INC;
1383 text_class: "tizen";
1385 min: 0 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1386 max: 999999 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1389 part { name: "click_event_area";
1391 ignore_flags: ON_HOLD;
1392 description { state: "default" 0.0;
1393 rel1 { to: "title_bg"; }
1394 rel2 { to: "title_bg"; }
1398 part { name: "access.title";
1401 description { state: "default" 0.0;
1403 rel1.to: "title_bg";
1404 rel2.to: "title_bg";
1408 part { name: "middle_padding";
1412 description { state: "default" 0.0;
1413 min: NAVIFRAME_MIDDLE_PADDING_INC;
1416 rel1 { relative: 0.0 1.0; to_x: "title_bg"; to_y: "elm.text.title"; }
1417 rel2 { relative: 1.0 1.0; to_x: "title_bg"; to_y: "elm.text.title"; }
1420 description { state: "hide" 0.0;
1421 inherit: "default" 0.0;
1425 part { name: "tabbar";
1428 clip_to: "title_clip";
1429 description { state: "default" 0.0;
1430 min: 0 NAVIFRAME_TITLE_TAB_H_INC;
1431 max: 999999 NAVIFRAME_TITLE_TAB_H_INC;
1434 rel1.to_x: "title_bg";
1435 rel1.to_y: "middle_padding";
1436 rel1.relative: 0.0 1.0;
1437 rel2.to_x: "title_bg";
1438 rel2.to_y: "bottom_padding";
1439 rel2.relative: 1.0 0.0;
1442 part { name: "bottom_padding";
1446 description { state: "default" 0.0;
1447 min: NAVIFRAME_BOTTOM_PADDING_INC;
1450 rel1 { relative: 0.0 1.0; to: "title_bg"; }
1451 rel2 { relative: 1.0 1.0; to: "title_bg"; }
1454 description { state: "landscape" 0.0;
1455 inherit: "default" 0.0;
1456 min: NAVIFRAME_LANDSCAPE_BOTTOM_PADDING_INC;
1459 part { name: "toolbar_bg";
1461 description { state: "default" 0.0;
1467 rel1 { to: "base"; }
1468 rel2 { to: "base"; }
1470 normal: "00_toolbar_bg.png";
1471 border: NAVIFRAME_TOOLBAR_BG_IMAGE_BORDER_INC;
1475 description { state: "visible" 0.0;
1476 inherit: "default" 0.0;
1477 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1478 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1481 description { state: "visible_landscape" 0.0;
1482 inherit: "default" 0.0;
1483 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1484 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1488 part { name: "more_btn_bg";
1492 description { state: "default" 0.0;
1493 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1496 rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
1497 rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
1501 part { name: "toolbar_more_btn";
1504 clip_to: "toolbar_clip";
1505 description { state: "default" 0.0;
1506 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1508 rel1.to: "more_btn_bg";
1509 rel2.to: "more_btn_bg";
1511 description { state: "landscape" 0.0;
1512 inherit: "default" 0.0;
1513 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1516 part { name: "prev_btn_bg";
1520 description { state: "default" 0.0;
1521 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1524 rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
1525 rel2.to: "toolbar_bg";
1529 part { name: "elm.swallow.prev_btn";
1532 clip_to: "toolbar_clip";
1533 description { state: "default" 0.0;
1534 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1537 rel1.to: "prev_btn_bg";
1538 rel2.to: "prev_btn_bg";
1540 description { state: "landscape" 0.0;
1541 inherit: "default" 0.0;
1542 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1545 part { name: "toolbar_btns_area";
1548 description { state: "default" 0.0;
1549 rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
1550 rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
1554 part { name: "toolbar_clip";
1557 description { state: "default" 0.0;
1558 rel1 { to: "toolbar_bg"; }
1559 rel2 { to: "toolbar_bg"; }
1562 part { name: "toolbar_button1";
1565 clip_to: "toolbar_clip";
1566 description { state: "default" 0.0;
1569 rel1.to: "toolbar_btns_area";
1570 rel2.to: "toolbar_btns_area";
1572 description { state: "buttons_set" 0.0;
1573 inherit: "default" 0.0;
1577 to: "toolbar_button_padding";
1581 part { name: "toolbar_button_padding";
1585 description { state: "default" 0.0;
1586 min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
1587 max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
1591 rel1.to: "toolbar_btns_area";
1592 rel2.to: "toolbar_btns_area";
1594 description { state: "landscape" 0.0;
1595 inherit: "default" 0.0;
1596 min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
1597 max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
1600 part { name: "toolbar_button2";
1603 clip_to: "toolbar_clip";
1604 description { state: "default" 0.0;
1607 rel1.to: "toolbar_btns_area";
1608 rel2.to: "toolbar_btns_area";
1610 description { state: "buttons_set" 0.0;
1611 inherit: "default" 0.0;
1615 to: "toolbar_button_padding";
1621 program { name: "content_new_pushed";
1622 signal: "elm,state,new,pushed,deferred";
1624 action: STATE_SET "default" 0.0;
1626 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1627 after: "show_finished";
1629 program { name: "content_cur_pushed";
1630 signal: "elm,state,cur,pushed,deferred";
1632 action: STATE_SET "left" 0.0;
1634 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1635 after: "pushed_finished";
1637 program { name: "content_prev_popped";
1638 signal: "elm,state,prev,popped,deferred";
1640 action: STATE_SET "default" 0.0;
1642 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1643 after: "show_finished";
1645 program { name: "content_cur_popped";
1646 signal: "elm,state,cur,popped,deferred";
1648 action: STATE_SET "right" 0.0;
1650 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1651 after: "popped_finished";
1653 program { name: "cur_pushed";
1654 signal: "elm,state,cur,pushed";
1656 action: STATE_SET "default" 0.0;
1659 program { name: "new_pushed";
1660 signal: "elm,state,new,pushed";
1662 action: STATE_SET "right" 0.0;
1665 program { name: "prev_popped";
1666 signal: "elm,state,prev,popped";
1668 action: STATE_SET "left" 0.0;
1671 program { name: "cur_popped";
1672 signal: "elm,state,cur,popped";
1674 action: STATE_SET "default" 0.0;
1677 program { name: "visible";
1678 signal: "elm,state,visible";
1680 action: STATE_SET "default" 0.0;
1683 program { name: "title_show";
1684 signal: "elm,state,title,show";
1687 if (get_int(landscape) == 0)
1688 set_state(PART:"title_bg", "default", 0.0);
1690 set_state(PART:"title_bg", "landscape", 0.0);
1693 program { name: "title_hide";
1694 signal: "elm,state,title,hide";
1697 set_state(PART:"title_bg", "hide", 0.0);
1700 program { name: "prev_btn_show";
1701 signal: "elm,state,prev_btn,show";
1704 emit("elm,state,toolbar_bg,show", "elm");
1707 program { name: "prev_btn_hide";
1708 signal: "elm,state,prev_btn,hide";
1711 emit("elm,state,toolbar_bg,hide", "elm");
1714 program { name: "more_btn_show";
1715 signal: "elm,state,toolbar_more_btn,show";
1718 emit("elm,state,toolbar_bg,show", "elm");
1721 program { name: "more_btn_hide";
1722 signal: "elm,state,toolbar_more_btn,hide";
1725 emit("elm,state,toolbar_bg,hide", "elm");
1728 program { name: "toolbar_button1_show";
1729 signal: "elm,state,toolbar_button1,show";
1732 emit("elm,state,toolbar_bg,show", "elm");
1733 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1734 if (get_int(toolbar_buttons_visible) >= 2)
1736 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1737 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1741 program { name: "toolbar_button1_hide";
1742 signal: "elm,state,toolbar_button1,hide";
1745 emit("elm,state,toolbar_bg,hide", "elm");
1746 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1747 set_state(PART:"toolbar_button1", "default", 0.0);
1748 set_state(PART:"toolbar_button2", "default", 0.0);
1751 program { name: "toolbar_button2_show";
1752 signal: "elm,state,toolbar_button2,show";
1755 emit("elm,state,toolbar_bg,show", "elm");
1756 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1757 if (get_int(toolbar_buttons_visible) >= 2)
1759 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1760 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1764 program { name: "toolbar_button2_hide";
1765 signal: "elm,state,toolbar_button2,hide";
1768 emit("elm,state,toolbar_bg,hide", "elm");
1769 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1770 set_state(PART:"toolbar_button1", "default", 0.0);
1771 set_state(PART:"toolbar_button2", "default", 0.0);
1774 program { name: "toolbar_bg_show";
1775 signal: "elm,state,toolbar_bg,show";
1778 if (get_int(landscape) == 0)
1779 set_state(PART:"toolbar_bg", "visible", 0.0);
1781 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1782 set_int(tbar_bg, get_int(tbar_bg) + 1);
1785 program { name: "toolbar_bg_hide";
1786 signal: "elm,state,toolbar_bg,hide";
1789 set_int(tbar_bg, get_int(tbar_bg) - 1);
1790 if (get_int(tbar_bg) <= 0)
1791 set_state(PART:"toolbar_bg", "default", 0.0);
1794 program { name: "toolbar_open_internal";
1795 signal: "elm,state,toolbar,open,internal";
1798 set_int(tbar_close, 0);
1799 if (get_int(landscape) == 0)
1800 set_state(PART:"toolbar_bg", "visible", 0.0);
1802 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1805 program { name: "toolbar_close_internal";
1806 signal: "elm,state,toolbar,close,internal";
1809 set_int(tbar_close, 1);
1810 set_state(PART:"toolbar_bg", "default", 0.0);
1813 program { name: "toolbar_open";
1814 signal: "elm,state,toolbar,open";
1817 if (get_int(landscape) == 0)
1818 set_state(PART:"toolbar_bg", "visible", 0.0);
1820 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1822 transition: LINEAR 0.2;
1823 after: "toolbar_open_internal";
1825 program { name: "toolbar_close";
1826 signal: "elm,state,toolbar,close";
1828 action: STATE_SET "default" 0.0;
1829 target: "toolbar_bg";
1830 transition: LINEAR 0.2;
1831 after: "toolbar_close_internal";
1833 program { name: "toolbar_instant_open";
1834 signal: "elm,state,toolbar,instant_open";
1837 emit("elm,state,toolbar,open,internal", "elm");
1840 program { name: "toolbar_instant_close";
1841 signal: "elm,state,toolbar,instant_close";
1844 emit("elm,state,toolbar,close,internal", "elm");
1847 program { name: "show_finished";
1848 action: SIGNAL_EMIT "elm,action,show,finished" "";
1850 program { name: "pushed_finished";
1851 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1853 program { name: "popped_finished";
1854 action: SIGNAL_EMIT "elm,action,popped,finished" "";
1857 name: "title_clicked";
1858 signal: "mouse,clicked,1";
1859 source: "click_event_area";
1860 action: SIGNAL_EMIT "elm,action,title,clicked" "";
1863 name: "change_to_landscape";
1864 signal: "elm,state,landscape";
1867 if (get_int(landscape) == 0) {
1868 set_state(PART:"top_padding", "landscape", 0.0);
1869 set_state(PART:"right_padding", "landscape", 0.0);
1870 set_state(PART:"elm.text.title", "landscape", 0.0);
1871 set_state(PART:"middle_padding", "hide", 0.0);
1872 set_state(PART:"bottom_padding", "landscape", 0.0);
1873 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1874 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1875 set_state(PART:"toolbar_button_padding", "landscape", 0.0);
1879 get_state(PART:"title_bg", st, 30, vl);
1880 if (!strcmp(st, "default"))
1881 set_state(PART:"title_bg", "landscape", 0.0);
1883 get_state(PART:"toolbar_bg", st, 30, vl);
1884 if (!strcmp(st, "visible"))
1885 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1887 set_int(landscape, 1);
1892 name: "change_to_portrait";
1893 signal: "elm,state,portrait";
1896 if (get_int(landscape) == 1) {
1897 set_state(PART:"top_padding", "default", 0.0);
1898 set_state(PART:"right_padding", "default", 0.0);
1899 set_state(PART:"elm.text.title", "default", 0.0);
1900 set_state(PART:"middle_padding", "default", 0.0);
1901 set_state(PART:"bottom_padding", "default", 0.0);
1902 set_state(PART:"toolbar_more_btn", "default", 0.0);
1903 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1904 set_state(PART:"toolbar_button_padding", "default", 0.0);
1908 get_state(PART:"title_bg", st, 30, vl);
1909 if (!strcmp(st, "landscape"))
1910 set_state(PART:"title_bg", "default", 0.0);
1912 get_state(PART:"toolbar_bg", st, 30, vl);
1913 if (!strcmp(st, "visible_landscape"))
1914 set_state(PART:"toolbar_bg", "visible", 0.0);
1916 set_int(landscape, 0);
1920 program { name: "landscape_mode";
1922 signal: "elm,state,orient,90";
1923 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1925 program { name: "landscape_mode2";
1927 signal: "elm,state,orient,270";
1928 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1930 program { name: "portrait_mode";
1932 signal: "elm,state,orient,0";
1933 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1935 program { name: "portrait_mode2";
1937 signal: "elm,state,orient,180";
1938 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1943 group { name: "elm/naviframe/item/tabbar/notitle/default";
1945 image: "00_title_bg.png" COMP;
1946 image: "00_toolbar_bg.png" COMP;
1949 public tbar_bg = 0; //Toolbar BG Show call count
1950 public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
1951 public tbar_close = 0; //Toolbar lastest Open/Close status
1952 public landscape = 0; //Landscape mode status
1955 part { name: "base";
1958 description { state: "default" 0.0;
1961 description { state: "left" 0.0;
1962 inherit: "default" 0.0;
1963 rel1.relative: -1.0 0.0;
1964 rel2.relative: 0.0 1.0;
1966 description { state: "right" 0.0;
1967 inherit: "default" 0.0;
1968 rel1.relative: 1.0 0.0;
1969 rel2.relative: 2.0 1.0;
1972 part { name: "title_bg";
1974 description { state: "default" 0.0;
1975 min: 1 NAVIFRAME_TITLE_H_INC;
1978 rel1 { relative: 0.0 0.0; to: "base"; }
1979 rel2 { relative: 1.0 0.0; to: "base"; }
1981 normal: "00_title_bg.png";
1982 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
1986 description { state: "landscape" 0.0;
1987 inherit: "default" 0.0;
1988 min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
1990 description { state: "hide" 0.0;
1991 inherit: "default" 0.0;
1997 part { name: "title_clip";
2000 description { state: "default" 0.0;
2001 rel1 { to: "title_bg"; }
2002 rel2 { to: "title_bg"; }
2005 part { name: "tabbar";
2008 clip_to: "title_clip";
2009 description { state: "default" 0.0;
2010 max: -1 NAVIFRAME_TITLE_H_INC;
2011 rel1.to: "title_bg";
2012 rel1.relative: 0.0 0.0;
2013 rel2.to: "title_bg";
2014 rel2.relative: 1.0 1.0;
2016 description { state: "landscape" 0.0;
2017 max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
2018 rel1.to: "title_bg";
2019 rel1.relative: 0.0 0.0;
2020 rel2.to: "title_bg";
2021 rel2.relative: 1.0 1.0;
2024 part { name: "elm.swallow.content";
2028 clip_to: "content_clip";
2029 description { state: "default" 0.0;
2031 rel1.relative: 0.0 1.0;
2033 rel1.to_y: "title_bg";
2034 rel2.relative: 1.0 0.0;
2036 rel2.to_y: "toolbar_bg";
2039 part { name: "content_clip";
2042 description { state: "default" 0.0;
2043 rel1.to: "elm.swallow.content";
2044 rel2.to: "elm.swallow.content";
2047 part { name: "toolbar_bg";
2049 description { state: "default" 0.0;
2055 rel1 { to: "base"; }
2056 rel2 { to: "base"; }
2058 normal: "00_toolbar_bg.png";
2059 border: NAVIFRAME_TOOLBAR_BG_IMAGE_BORDER_INC;
2063 description { state: "visible" 0.0;
2064 inherit: "default" 0.0;
2065 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2066 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2069 description { state: "visible_landscape" 0.0;
2070 inherit: "default" 0.0;
2071 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2072 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2076 part { name: "more_btn_bg";
2080 description { state: "default" 0.0;
2081 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2084 rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
2085 rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
2089 part { name: "toolbar_more_btn";
2092 clip_to: "toolbar_clip";
2093 description { state: "default" 0.0;
2094 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2096 rel1.to: "more_btn_bg";
2097 rel2.to: "more_btn_bg";
2099 description { state: "landscape" 0.0;
2100 inherit: "default" 0.0;
2101 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2104 part { name: "prev_btn_bg";
2108 description { state: "default" 0.0;
2109 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2112 rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
2113 rel2.to: "toolbar_bg";
2117 part { name: "elm.swallow.prev_btn";
2120 clip_to: "toolbar_clip";
2121 description { state: "default" 0.0;
2122 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2125 rel1.to: "prev_btn_bg";
2126 rel2.to: "prev_btn_bg";
2128 description { state: "landscape" 0.0;
2129 inherit: "default" 0.0;
2130 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2133 part { name: "toolbar_clip";
2136 description { state: "default" 0.0;
2137 rel1 { to: "toolbar_bg"; }
2138 rel2 { to: "toolbar_bg"; }
2141 part { name: "toolbar_btns_area";
2144 description { state: "default" 0.0;
2145 rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
2146 rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
2150 part { name: "toolbar_button1";
2153 clip_to: "toolbar_clip";
2154 description { state: "default" 0.0;
2157 rel1.to: "toolbar_btns_area";
2158 rel2.to: "toolbar_btns_area";
2160 description { state: "buttons_set" 0.0;
2161 inherit: "default" 0.0;
2165 to: "toolbar_button_padding";
2169 part { name: "toolbar_button_padding";
2172 description { state: "default" 0.0;
2173 min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2174 max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2178 rel1.to: "toolbar_btns_area";
2179 rel2.to: "toolbar_btns_area";
2181 description { state: "landscape" 0.0;
2182 inherit: "default" 0.0;
2183 min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
2184 max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
2187 part { name: "toolbar_button2";
2190 clip_to: "toolbar_clip";
2191 description { state: "default" 0.0;
2194 rel1.to: "toolbar_btns_area";
2195 rel2.to: "toolbar_btns_area";
2197 description { state: "buttons_set" 0.0;
2198 inherit: "default" 0.0;
2202 to: "toolbar_button_padding";
2208 program { name: "content_new_pushed";
2209 signal: "elm,state,new,pushed,deferred";
2211 action: STATE_SET "default" 0.0;
2213 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2214 after: "show_finished";
2216 program { name: "content_cur_pushed";
2217 signal: "elm,state,cur,pushed,deferred";
2219 action: STATE_SET "left" 0.0;
2221 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2222 after: "pushed_finished";
2224 program { name: "content_prev_popped";
2225 signal: "elm,state,prev,popped,deferred";
2227 action: STATE_SET "default" 0.0;
2229 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2230 after: "show_finished";
2232 program { name: "content_cur_popped";
2233 signal: "elm,state,cur,popped,deferred";
2235 action: STATE_SET "right" 0.0;
2237 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2238 after: "popped_finished";
2240 program { name: "cur_pushed";
2241 signal: "elm,state,cur,pushed";
2243 action: STATE_SET "default" 0.0;
2246 program { name: "new_pushed";
2247 signal: "elm,state,new,pushed";
2249 action: STATE_SET "right" 0.0;
2252 program { name: "prev_popped";
2253 signal: "elm,state,prev,popped";
2255 action: STATE_SET "left" 0.0;
2258 program { name: "cur_popped";
2259 signal: "elm,state,cur,popped";
2261 action: STATE_SET "default" 0.0;
2264 program { name: "visible";
2265 signal: "elm,state,visible";
2267 action: STATE_SET "default" 0.0;
2270 program { name: "title_show";
2271 signal: "elm,state,title,show";
2274 if (get_int(landscape) == 0)
2275 set_state(PART:"title_bg", "default", 0.0);
2277 set_state(PART:"title_bg", "landscape", 0.0);
2280 program { name: "title_hide";
2281 signal: "elm,state,title,hide";
2284 set_state(PART:"title_bg", "hide", 0.0);
2287 program { name: "prev_btn_show";
2288 signal: "elm,state,prev_btn,show";
2291 emit("elm,state,toolbar_bg,show", "elm");
2294 program { name: "prev_btn_hide";
2295 signal: "elm,state,prev_btn,hide";
2298 emit("elm,state,toolbar_bg,hide", "elm");
2301 program { name: "more_btn_show";
2302 signal: "elm,state,toolbar_more_btn,show";
2305 emit("elm,state,toolbar_bg,show", "elm");
2308 program { name: "more_btn_hide";
2309 signal: "elm,state,toolbar_more_btn,hide";
2312 emit("elm,state,toolbar_bg,hide", "elm");
2315 program { name: "toolbar_button1_show";
2316 signal: "elm,state,toolbar_button1,show";
2319 emit("elm,state,toolbar_bg,show", "elm");
2320 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2321 if (get_int(toolbar_buttons_visible) >= 2)
2323 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2324 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2328 program { name: "toolbar_button1_hide";
2329 signal: "elm,state,toolbar_button1,hide";
2332 emit("elm,state,toolbar_bg,hide", "elm");
2333 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2334 set_state(PART:"toolbar_button1", "default", 0.0);
2335 set_state(PART:"toolbar_button2", "default", 0.0);
2338 program { name: "toolbar_button2_show";
2339 signal: "elm,state,toolbar_button2,show";
2342 emit("elm,state,toolbar_bg,show", "elm");
2343 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2344 if (get_int(toolbar_buttons_visible) >= 2)
2346 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2347 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2351 program { name: "toolbar_button2_hide";
2352 signal: "elm,state,toolbar_button2,hide";
2355 emit("elm,state,toolbar_bg,hide", "elm");
2356 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2357 set_state(PART:"toolbar_button1", "default", 0.0);
2358 set_state(PART:"toolbar_button2", "default", 0.0);
2361 program { name: "toolbar_bg_show";
2362 signal: "elm,state,toolbar_bg,show";
2365 if (get_int(landscape) == 0)
2366 set_state(PART:"toolbar_bg", "visible", 0.0);
2368 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2369 set_int(tbar_bg, get_int(tbar_bg) + 1);
2372 program { name: "toolbar_bg_hide";
2373 signal: "elm,state,toolbar_bg,hide";
2376 set_int(tbar_bg, get_int(tbar_bg) - 1);
2377 if (get_int(tbar_bg) <= 0)
2378 set_state(PART:"toolbar_bg", "default", 0.0);
2381 program { name: "toolbar_open_internal";
2382 signal: "elm,state,toolbar,open,internal";
2385 set_int(tbar_close, 0);
2386 if (get_int(landscape) == 0)
2387 set_state(PART:"toolbar_bg", "visible", 0.0);
2389 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2392 program { name: "toolbar_close_internal";
2393 signal: "elm,state,toolbar,close,internal";
2396 set_int(tbar_close, 1);
2397 set_state(PART:"toolbar_bg", "default", 0.0);
2400 program { name: "toolbar_open";
2401 signal: "elm,state,toolbar,open";
2404 if (get_int(landscape) == 0)
2405 set_state(PART:"toolbar_bg", "visible", 0.0);
2407 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2409 transition: LINEAR 0.2;
2410 after: "toolbar_open_internal";
2412 program { name: "toolbar_close";
2413 signal: "elm,state,toolbar,close";
2415 action: STATE_SET "default" 0.0;
2416 target: "toolbar_bg";
2417 transition: LINEAR 0.2;
2418 after: "toolbar_close_internal";
2420 program { name: "toolbar_instant_open";
2421 signal: "elm,state,toolbar,instant_open";
2424 emit("elm,state,toolbar,open,internal", "elm");
2427 program { name: "toolbar_instant_close";
2428 signal: "elm,state,toolbar,instant_close";
2431 emit("elm,state,toolbar,close,internal", "elm");
2434 program { name: "show_finished";
2435 action: SIGNAL_EMIT "elm,action,show,finished" "";
2437 program { name: "pushed_finished";
2438 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2440 program { name: "popped_finished";
2441 action: SIGNAL_EMIT "elm,action,popped,finished" "";
2444 name: "change_to_landscape";
2445 signal: "elm,state,landscape";
2448 if (get_int(landscape) == 0) {
2449 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
2450 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
2451 set_state(PART:"toolbar_button_padding", "landscape", 0.0);
2455 get_state(PART:"title_bg", st, 30, vl);
2456 if (!strcmp(st, "default"))
2457 set_state(PART:"title_bg", "landscape", 0.0);
2459 get_state(PART:"tabbar", st, 30, vl);
2460 if (!strcmp(st, "default"))
2461 set_state(PART:"tabbar", "landscape", 0.0);
2463 get_state(PART:"toolbar_bg", st, 30, vl);
2464 if (!strcmp(st, "visible"))
2465 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2467 set_int(landscape, 1);
2472 name: "change_to_portrait";
2473 signal: "elm,state,portrait";
2476 if (get_int(landscape) == 1) {
2477 set_state(PART:"toolbar_more_btn", "default", 0.0);
2478 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
2479 set_state(PART:"toolbar_button_padding", "default", 0.0);
2483 get_state(PART:"toolbar_bg", st, 30, vl);
2484 if (!strcmp(st, "visible_landscape"))
2485 set_state(PART:"toolbar_bg", "visible", 0.0);
2487 get_state(PART:"title_bg", st, 30, vl);
2488 if (!strcmp(st, "landscape"))
2489 set_state(PART:"title_bg", "default", 0.0);
2491 get_state(PART:"tabbar", st, 30, vl);
2492 if (!strcmp(st, "landscape"))
2493 set_state(PART:"tabbar", "default", 0.0);
2495 set_int(landscape, 0);
2499 program { name: "landscape_mode";
2501 signal: "elm,state,orient,90";
2502 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2504 program { name: "landscape_mode2";
2506 signal: "elm,state,orient,270";
2507 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2509 program { name: "portrait_mode";
2511 signal: "elm,state,orient,0";
2512 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2514 program { name: "portrait_mode2";
2516 signal: "elm,state,orient,180";
2517 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2522 group { name: "elm/naviframe/item/empty/default";
2524 image: "00_title_bg.png" COMP;
2525 image: "00_toolbar_bg.png" COMP;
2528 public tbar_bg = 0; //Toolbar BG Show call count
2529 public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
2530 public tbar_close = 0; //Toolbar lastest Open/Close status
2531 public landscape = 0; //Landscape mode status
2534 part { name: "base";
2537 description { state: "default" 0.0;
2540 description { state: "left" 0.0;
2541 inherit: "default" 0.0;
2542 rel1.relative: -1.0 0.0;
2543 rel2.relative: 0.0 1.0;
2545 description { state: "right" 0.0;
2546 inherit: "default" 0.0;
2547 rel1.relative: 1.0 0.0;
2548 rel2.relative: 2.0 1.0;
2551 part { name: "title_bg";
2553 description { state: "default" 0.0;
2554 rel1 { to: "title"; }
2555 rel2 { to: "title"; }
2557 normal: "00_title_bg.png";
2558 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
2562 description { state: "hide" 0.0;
2563 inherit: "default" 0.0;
2569 part { name: "elm.swallow.content";
2573 clip_to: "content_clip";
2574 description { state: "default" 0.0;
2576 rel1.relative: 0.0 1.0;
2578 rel1.to_y: "title_bg";
2579 rel2.relative: 1.0 0.0;
2581 rel2.to_y: "toolbar_bg";
2584 part { name: "content_clip";
2587 description { state: "default" 0.0;
2588 rel1.to: "elm.swallow.content";
2589 rel2.to: "elm.swallow.content";
2592 part { name: "title";
2595 description { state: "default" 0.0;
2598 rel1 { relative: 0.0 0.0; to: "base"; }
2599 rel2 { relative: 1.0 0.0; to: "base"; }
2601 description { state: "hide" 0.0;
2602 inherit: "default" 0.0;
2609 part { name: "toolbar_bg";
2611 description { state: "default" 0.0;
2617 rel1 { to: "base"; }
2618 rel2 { to: "base"; }
2620 normal: "00_toolbar_bg.png";
2621 border: NAVIFRAME_TOOLBAR_BG_IMAGE_BORDER_INC;
2625 description { state: "visible" 0.0;
2626 inherit: "default" 0.0;
2627 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2628 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2631 description { state: "visible_landscape" 0.0;
2632 inherit: "default" 0.0;
2633 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2634 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2638 part { name: "more_btn_bg";
2642 description { state: "default" 0.0;
2643 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2646 rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
2647 rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
2651 part { name: "toolbar_more_btn";
2654 clip_to: "toolbar_clip";
2655 description { state: "default" 0.0;
2656 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2658 rel1.to: "more_btn_bg";
2659 rel2.to: "more_btn_bg";
2661 description { state: "landscape" 0.0;
2662 inherit: "default" 0.0;
2663 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2666 part { name: "prev_btn_bg";
2670 description { state: "default" 0.0;
2671 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2674 rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
2675 rel2.to: "toolbar_bg";
2679 part { name: "elm.swallow.prev_btn";
2682 clip_to: "toolbar_clip";
2683 description { state: "default" 0.0;
2684 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2687 rel1.to: "prev_btn_bg";
2688 rel2.to: "prev_btn_bg";
2690 description { state: "landscape" 0.0;
2691 inherit: "default" 0.0;
2692 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2695 part { name: "toolbar_clip";
2698 description { state: "default" 0.0;
2699 rel1 { to: "toolbar_bg"; }
2700 rel2 { to: "toolbar_bg"; }
2703 part { name: "toolbar_btns_area";
2706 description { state: "default" 0.0;
2707 rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
2708 rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
2712 part { name: "toolbar_button1";
2715 clip_to: "toolbar_clip";
2716 description { state: "default" 0.0;
2719 rel1.to: "toolbar_btns_area";
2720 rel2.to: "toolbar_btns_area";
2722 description { state: "buttons_set" 0.0;
2723 inherit: "default" 0.0;
2727 to: "toolbar_button_padding";
2731 part { name: "toolbar_button_padding";
2734 description { state: "default" 0.0;
2735 min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2736 max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2740 rel1.to: "toolbar_btns_area";
2741 rel2.to: "toolbar_btns_area";
2743 description { state: "landscape" 0.0;
2744 inherit: "default" 0.0;
2745 min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
2746 max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
2749 part { name: "toolbar_button2";
2752 clip_to: "toolbar_clip";
2753 description { state: "default" 0.0;
2756 rel1.to: "toolbar_btns_area";
2757 rel2.to: "toolbar_btns_area";
2759 description { state: "buttons_set" 0.0;
2760 inherit: "default" 0.0;
2764 to: "toolbar_button_padding";
2770 program { name: "content_new_pushed";
2771 signal: "elm,state,new,pushed,deferred";
2773 action: STATE_SET "default" 0.0;
2775 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2776 after: "show_finished";
2778 program { name: "content_cur_pushed";
2779 signal: "elm,state,cur,pushed,deferred";
2781 action: STATE_SET "left" 0.0;
2783 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2784 after: "pushed_finished";
2786 program { name: "content_prev_popped";
2787 signal: "elm,state,prev,popped,deferred";
2789 action: STATE_SET "default" 0.0;
2791 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2792 after: "show_finished";
2794 program { name: "content_cur_popped";
2795 signal: "elm,state,cur,popped,deferred";
2797 action: STATE_SET "right" 0.0;
2799 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2800 after: "popped_finished";
2802 program { name: "cur_pushed";
2803 signal: "elm,state,cur,pushed";
2805 action: STATE_SET "default" 0.0;
2808 program { name: "new_pushed";
2809 signal: "elm,state,new,pushed";
2811 action: STATE_SET "right" 0.0;
2814 program { name: "prev_popped";
2815 signal: "elm,state,prev,popped";
2817 action: STATE_SET "left" 0.0;
2820 program { name: "cur_popped";
2821 signal: "elm,state,cur,popped";
2823 action: STATE_SET "default" 0.0;
2826 program { name: "visible";
2827 signal: "elm,state,visible";
2829 action: STATE_SET "default" 0.0;
2832 program { name: "title_show";
2833 signal: "elm,state,title,show";
2836 set_state(PART:"title_bg", "default", 0.0);
2837 set_state(PART:"title", "default", 0.0);
2840 program { name: "title_hide";
2841 signal: "elm,state,title,hide";
2844 set_state(PART:"title_bg", "hide", 0.0);
2845 set_state(PART:"title", "hide", 0.0);
2848 program { name: "prev_btn_show";
2849 signal: "elm,state,prev_btn,show";
2852 emit("elm,state,toolbar_bg,show", "elm");
2855 program { name: "prev_btn_hide";
2856 signal: "elm,state,prev_btn,hide";
2859 emit("elm,state,toolbar_bg,hide", "elm");
2862 program { name: "more_btn_show";
2863 signal: "elm,state,toolbar_more_btn,show";
2866 emit("elm,state,toolbar_bg,show", "elm");
2869 program { name: "more_btn_hide";
2870 signal: "elm,state,toolbar_more_btn,hide";
2873 emit("elm,state,toolbar_bg,hide", "elm");
2876 program { name: "toolbar_button1_show";
2877 signal: "elm,state,toolbar_button1,show";
2880 emit("elm,state,toolbar_bg,show", "elm");
2881 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2882 if (get_int(toolbar_buttons_visible) >= 2)
2884 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2885 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2889 program { name: "toolbar_button1_hide";
2890 signal: "elm,state,toolbar_button1,hide";
2893 emit("elm,state,toolbar_bg,hide", "elm");
2894 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2895 set_state(PART:"toolbar_button1", "default", 0.0);
2896 set_state(PART:"toolbar_button2", "default", 0.0);
2899 program { name: "toolbar_button2_show";
2900 signal: "elm,state,toolbar_button2,show";
2903 emit("elm,state,toolbar_bg,show", "elm");
2904 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2905 if (get_int(toolbar_buttons_visible) >= 2)
2907 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2908 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2912 program { name: "toolbar_button2_hide";
2913 signal: "elm,state,toolbar_button2,hide";
2916 emit("elm,state,toolbar_bg,hide", "elm");
2917 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2918 set_state(PART:"toolbar_button1", "default", 0.0);
2919 set_state(PART:"toolbar_button2", "default", 0.0);
2922 program { name: "toolbar_bg_show";
2923 signal: "elm,state,toolbar_bg,show";
2926 if (get_int(landscape) == 0)
2927 set_state(PART:"toolbar_bg", "visible", 0.0);
2929 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2930 set_int(tbar_bg, get_int(tbar_bg) + 1);
2933 program { name: "toolbar_bg_hide";
2934 signal: "elm,state,toolbar_bg,hide";
2937 set_int(tbar_bg, get_int(tbar_bg) - 1);
2938 if (get_int(tbar_bg) <= 0)
2939 set_state(PART:"toolbar_bg", "default", 0.0);
2942 program { name: "toolbar_open_internal";
2943 signal: "elm,state,toolbar,open,internal";
2946 set_int(tbar_close, 0);
2947 if (get_int(landscape) == 0)
2948 set_state(PART:"toolbar_bg", "visible", 0.0);
2950 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2953 program { name: "toolbar_close_internal";
2954 signal: "elm,state,toolbar,close,internal";
2957 set_int(tbar_close, 1);
2958 set_state(PART:"toolbar_bg", "default", 0.0);
2961 program { name: "toolbar_open";
2962 signal: "elm,state,toolbar,open";
2965 if (get_int(landscape) == 0)
2966 set_state(PART:"toolbar_bg", "visible", 0.0);
2968 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2970 transition: LINEAR 0.2;
2971 after: "toolbar_open_internal";
2973 program { name: "toolbar_close";
2974 signal: "elm,state,toolbar,close";
2976 action: STATE_SET "default" 0.0;
2977 target: "toolbar_bg";
2978 transition: LINEAR 0.2;
2979 after: "toolbar_close_internal";
2981 program { name: "toolbar_instant_open";
2982 signal: "elm,state,toolbar,instant_open";
2985 emit("elm,state,toolbar,open,internal", "elm");
2988 program { name: "toolbar_instant_close";
2989 signal: "elm,state,toolbar,instant_close";
2992 emit("elm,state,toolbar,close,internal", "elm");
2995 program { name: "show_finished";
2996 action: SIGNAL_EMIT "elm,action,show,finished" "";
2998 program { name: "pushed_finished";
2999 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
3001 program { name: "popped_finished";
3002 action: SIGNAL_EMIT "elm,action,popped,finished" "";
3005 name: "change_to_landscape";
3006 signal: "elm,state,landscape";
3009 if (get_int(landscape) == 0) {
3010 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
3011 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
3012 set_state(PART:"toolbar_button_padding", "landscape", 0.0);
3016 get_state(PART:"toolbar_bg", st, 30, vl);
3017 if (!strcmp(st, "visible"))
3018 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
3020 set_int(landscape, 1);
3025 name: "change_to_portrait";
3026 signal: "elm,state,portrait";
3029 if (get_int(landscape) == 1) {
3030 set_state(PART:"toolbar_more_btn", "default", 0.0);
3031 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
3032 set_state(PART:"toolbar_button_padding", "default", 0.0);
3036 get_state(PART:"toolbar_bg", st, 30, vl);
3037 if (!strcmp(st, "visible_landscape"))
3038 set_state(PART:"toolbar_bg", "visible", 0.0);
3040 set_int(landscape, 0);
3044 program { name: "landscape_mode";
3046 signal: "elm,state,orient,90";
3047 action: SIGNAL_EMIT "elm,state,landscape" "elm";
3049 program { name: "landscape_mode2";
3051 signal: "elm,state,orient,270";
3052 action: SIGNAL_EMIT "elm,state,landscape" "elm";
3054 program { name: "portrait_mode";
3056 signal: "elm,state,orient,0";
3057 action: SIGNAL_EMIT "elm,state,portrait" "elm";
3059 program { name: "portrait_mode2";
3061 signal: "elm,state,orient,180";
3062 action: SIGNAL_EMIT "elm,state,portrait" "elm";
3067 group { name: "elm/naviframe/item/basic/uglib";
3069 part { name: "base";
3072 description { state: "default" 0.0;
3073 color: 255 255 255 255;
3075 description { state: "right" 0.0;
3076 inherit: "default" 0.0;
3077 rel1.relative: 1.0 0.0;
3078 rel2.relative: 2.0 1.0;
3079 color: 255 255 255 0;
3082 part { name: "elm.swallow.content";
3087 description { state: "default" 0.0;
3089 rel1.relative: 0.0 0.0;
3091 rel2.relative: 1.0 1.0;
3097 program { name: "content_new_pushed";
3098 signal: "elm,state,new,pushed,deferred";
3100 action: STATE_SET "default" 0.0;
3102 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3103 after: "show_finished";
3105 program { name: "content_cur_pushed";
3106 signal: "elm,state,cur,pushed,deferred";
3108 action: STATE_SET "default" 0.0;
3110 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3111 after: "pushed_finished";
3113 program { name: "content_prev_popped";
3114 signal: "elm,state,prev,popped,deferred";
3116 action: STATE_SET "default" 0.0;
3118 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3119 after: "show_finished";
3121 program { name: "content_cur_popped";
3122 signal: "elm,state,cur,popped,deferred";
3124 action: STATE_SET "right" 0.0;
3126 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3127 after: "popped_finished";
3129 program { name: "cur_pushed";
3130 signal: "elm,state,cur,pushed";
3132 action: STATE_SET "default" 0.0;
3135 program { name: "new_pushed";
3136 signal: "elm,state,new,pushed";
3138 action: STATE_SET "right" 0.0;
3141 program { name: "prev_popped";
3142 signal: "elm,state,prev,popped";
3144 action: STATE_SET "default" 0.0;
3147 program { name: "cur_popped";
3148 signal: "elm,state,cur,popped";
3150 action: STATE_SET "default" 0.0;
3153 program { name: "visible";
3154 signal: "elm,state,visible";
3156 action: STATE_SET "default" 0.0;
3159 program { name: "show_finished";
3160 action: SIGNAL_EMIT "elm,action,show,finished" "";
3162 program { name: "pushed_finished";
3163 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
3165 program { name: "popped_finished";
3166 action: SIGNAL_EMIT "elm,action,popped,finished" "";
3171 group { name: "elm/naviframe/item/dual_title/default";
3173 image: "00_title_bg.png" COMP;
3174 image: "00_toolbar_bg.png" COMP;
3175 image: "00_badge_bg.png" COMP;
3176 image: "00_divider_line.png" COMP;
3179 public tbar_bg = 0; //Toolbar BG Show call count
3180 public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
3181 public tbar_close = 0; //Toolbar lastest Open/Close status
3182 public landscape = 0; //Landscape mode status
3185 part { name: "base";
3188 description { state: "default" 0.0;
3191 description { state: "left" 0.0;
3192 inherit: "default" 0.0;
3193 rel1.relative: -1.0 0.0;
3194 rel2.relative: 0.0 1.0;
3196 description { state: "right" 0.0;
3197 inherit: "default" 0.0;
3198 rel1.relative: 1.0 0.0;
3199 rel2.relative: 2.0 1.0;
3202 part { name: "title_bg";
3204 description { state: "default" 0.0;
3205 min: 1 NAVIFRAME_TITLE_H_INC;
3208 rel1 { relative: 0.0 0.0; to: "base"; }
3209 rel2 { relative: 1.0 0.0; to: "base"; }
3211 normal: "00_title_bg.png";
3212 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
3216 description { state: "landscape" 0.0;
3217 inherit: "default" 0.0;
3218 min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
3220 description { state: "hide" 0.0;
3221 inherit: "default" 0.0;
3227 part { name: "title_clip";
3230 description { state: "default" 0.0;
3231 rel1 { to: "title_bg"; }
3232 rel2 { to: "title_bg"; }
3235 part { name: "top_padding";
3240 state: "default" 0.0;
3241 min: NAVIFRAME_TITLE_TOP_PADDING_INC;
3244 rel1 { relative: 0.0 0.0; to: "title_bg"; }
3245 rel2 { relative: 1.0 0.0; to: "title_bg"; }
3249 state: "landscape" 0.0;
3250 inherit: "default" 0.0;
3251 min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
3254 part { name: "right_padding";
3259 state: "default" 0.0;
3260 min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
3263 rel1 { relative: 1.0 0.0; to: "title_bg"; }
3264 rel2 { relative: 1.0 1.0; to: "title_bg"; }
3268 part { name: "padding_center_text1";
3272 description { state: "default" 0.0;
3273 min: NAVIFRAME_PADDING_INC;
3276 rel1 { relative: 0.0 0.0; to: "title_bg"; }
3277 rel2 { relative: 0.0 1.0; to: "title_bg"; }
3281 part { name: "elm.swallow.content";
3285 clip_to: "content_clip";
3286 description { state: "default" 0.0;
3288 rel1.relative: 0.0 1.0;
3290 rel1.to_y: "title_bg";
3291 rel2.relative: 1.0 0.0;
3293 rel2.to_y: "toolbar_bg";
3296 part { name: "content_clip";
3299 description { state: "default" 0.0;
3300 rel1.to: "elm.swallow.content";
3301 rel2.to: "elm.swallow.content";
3304 part { name: "padding_bottom_text";
3308 description { state: "default" 0.0;
3309 min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
3312 rel1 { relative: 0.0 1.0; to: "title_bg"; }
3313 rel2 { relative: 1.0 1.0; to: "title_bg"; }
3316 description { state: "landscape" 0.0;
3317 inherit: "default" 0.0;
3318 min: NAVIFRAME_LANDSCAPE_BOTTOM_TEXT_PADDING_INC;
3321 part { name: "padding_center_text2";
3325 description { state: "default" 0.0;
3326 min: NAVIFRAME_PADDING2_INC;
3329 rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
3330 rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
3334 part { name: "text_area_center_padding";
3338 description { state: "default" 0.0;
3342 rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
3343 rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
3347 part { name: "elm.text.title";
3349 effect: FAR_SHADOW BOTTOM;
3351 clip_to: "title_clip";
3352 description { state: "default" 0.0;
3353 text { font: "Tizen:style=Medium";
3354 size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3358 text_class: "tizen";
3360 color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3361 color3: 255 255 255 255;
3364 rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
3365 rel2 { relative: 0.0 0.0; to_x: "text_area_center_padding"; to_y: "padding_bottom_text"; }
3367 description { state: "selected" 0.0;
3368 inherit: "default" 0.0;
3369 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3371 description { state: "default_landscape" 0.0;
3372 inherit: "default" 0.0;
3373 text { font: "Tizen:style=Medium";
3374 size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3378 text_class: "tizen";
3381 description { state: "selected_landscape" 0.0;
3382 inherit: "default_landscape" 0.0;
3383 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3386 part { name: "click_event_title1_area";
3388 ignore_flags: ON_HOLD;
3389 description { state: "default" 0.0;
3390 rel1 { to: "elm.text.title"; }
3391 rel2 { to: "elm.text.title"; }
3395 part { name: "text.padding";
3398 clip_to: "title_clip";
3399 description { state: "default" 0.0;
3403 rel1 { relative: 1.0 0.0; to: "elm.text.title"; }
3404 rel2 { relative: 1.0 1.0; to: "elm.text.title"; }
3408 part { name: "separator";
3411 description { state: "default" 0.0;
3415 rel1.to: "text.padding";
3416 rel2.to: "text.padding";
3419 normal: "00_divider_line.png";
3424 part { name: "elm.text.title2";
3426 effect: FAR_SHADOW BOTTOM;
3428 clip_to: "title_clip";
3429 description { state: "default" 0.0;
3430 text { font: "Tizen:style=Medium";
3431 size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3435 text_class: "tizen";
3437 color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3438 color3: 255 255 255 255;
3441 rel1 { relative: 1.0 1.0; to_x: "text.padding"; to_y: "top_padding"; }
3442 rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
3444 description { state: "selected" 0.0;
3445 inherit: "default" 0.0;
3446 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3448 description { state: "default_landscape" 0.0;
3449 inherit: "default" 0.0;
3450 text { font: "Tizen:style=Medium";
3451 size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3455 text_class: "tizen";
3458 description { state: "selected_landscape" 0.0;
3459 inherit: "default_landscape" 0.0;
3460 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3463 part { name: "click_event_title2_area";
3465 ignore_flags: ON_HOLD;
3466 description { state: "default" 0.0;
3467 rel1 { to: "elm.text.title2"; }
3468 rel2 { to: "elm.text.title2"; }
3472 part { name: "badge_top_padding";
3475 description { state: "default" 0.0;
3477 min: NAVIFRAME_BADGE_TOP_PADDING_INC;
3479 rel1 { relative: 0.0 0.0; to: "title_bg"; }
3480 rel2 { relative: 1.0 0.0; to: "title_bg"; }
3484 part { name: "badge_left_padding";
3487 description { state: "default" 0.0;
3491 rel1 { relative: 0.0 1.0; to_x: "separator"; to_y: "badge_top_padding"; }
3492 rel2 { relative: 0.0 0.5; to_x: "separator"; to_y: "title_bg"; }
3495 description { state: "visible" 0.0;
3496 inherit: "default" 0.0;
3497 min: NAVIFRAME_PADDING_BADGE_INC;
3500 part { name: "right.padding.text";
3504 state: "default" 0.0;
3509 to: "badge_left_padding";
3513 to: "badge_left_padding";
3519 part { name: "left.padding.text";
3523 state: "default" 0.0;
3538 part { name: "badge_bg";
3541 clip_to: "title_clip";
3542 description { state: "default" 0.0;
3546 to: "left.padding.text";
3550 to: "right.padding.text";
3554 normal: "00_badge_bg.png";
3555 border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3559 description { state: "visible" 0.0;
3560 inherit: "default" 0.0;
3562 min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3566 part { name: "title_badge";
3571 state: "default" 0.0;
3574 to: "right.padding.text";
3578 to: "right.padding.text";
3583 color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3585 font: "Tizen:style=Bold";
3586 size: NAVIFRAME_BADGE_TEXT_H_INC;
3591 description { state: "visible" 0.0;
3592 inherit: "default" 0.0;
3596 part { name: "badge_left_padding2";
3599 description { state: "default" 0.0;
3603 rel1 { relative: 1.0 1.0; to_x: "elm.text.title2"; to_y: "badge_top_padding"; }
3604 rel2 { relative: 1.0 0.5; to_x: "elm.text.title2"; to_y: "title_bg"; }
3607 description { state: "visible" 0.0;
3608 inherit: "default" 0.0;
3609 min: NAVIFRAME_PADDING_INC;
3612 part { name: "right.padding.text2";
3616 state: "default" 0.0;
3621 to: "badge_left_padding2";
3625 to: "badge_left_padding2";
3631 part { name: "left.padding.text2";
3635 state: "default" 0.0;
3650 part { name: "badge2_bg";
3653 clip_to: "title_clip";
3654 description { state: "default" 0.0;
3658 to: "left.padding.text2";
3662 to: "right.padding.text2";
3666 normal: "00_badge_bg.png";
3667 border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3671 description { state: "visible" 0.0;
3672 inherit: "default" 0.0;
3674 min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3678 part { name: "title2_badge";
3683 state: "default" 0.0;
3686 to: "right.padding.text2";
3690 to: "right.padding.text2";
3695 color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3697 font: "Tizen:style=Bold";
3698 size: NAVIFRAME_BADGE_TEXT_H_INC;
3703 description { state: "visible" 0.0;
3704 inherit: "default" 0.0;
3708 part { name: "access.title";
3711 description { state: "default" 0.0;
3713 rel1.to: "title_bg";
3714 rel2.to: "title_bg";
3718 part { name: "title_left_btn";
3721 clip_to: "title_clip";
3722 description { state: "default" 0.0;
3723 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3726 rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
3727 rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
3729 description { state: "landscape" 0.0;
3730 inherit: "default" 0.0;
3731 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3734 part { name: "title_right_btn";
3737 clip_to: "title_clip";
3738 description { state: "default" 0.0;
3739 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3742 rel1 { relative: 0.0 0.0; to: "right_padding"; }
3743 rel2 { relative: 0.0 1.0; to: "right_padding"; }
3745 description { state: "landscape" 0.0;
3746 inherit: "default" 0.0;
3747 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3750 part { name: "toolbar_bg";
3752 description { state: "default" 0.0;
3758 rel1 { to: "base"; }
3759 rel2 { to: "base"; }
3761 normal: "00_toolbar_bg.png";
3762 border: NAVIFRAME_TOOLBAR_BG_IMAGE_BORDER_INC;
3766 description { state: "visible" 0.0;
3767 inherit: "default" 0.0;
3768 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3769 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3772 description { state: "visible_landscape" 0.0;
3773 inherit: "default" 0.0;
3774 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3775 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3779 part { name: "more_btn_bg";
3783 description { state: "default" 0.0;
3784 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3787 rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
3788 rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
3792 part { name: "toolbar_more_btn";
3795 clip_to: "toolbar_clip";
3796 description { state: "default" 0.0;
3797 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3799 rel1.to: "more_btn_bg";
3800 rel2.to: "more_btn_bg";
3802 description { state: "landscape" 0.0;
3803 inherit: "default" 0.0;
3804 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3807 part { name: "prev_btn_bg";
3811 description { state: "default" 0.0;
3812 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3815 rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
3816 rel2.to: "toolbar_bg";
3820 part { name: "elm.swallow.prev_btn";
3823 clip_to: "toolbar_clip";
3824 description { state: "default" 0.0;
3825 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3828 rel1.to: "prev_btn_bg";
3829 rel2.to: "prev_btn_bg";
3831 description { state: "landscape" 0.0;
3832 inherit: "default" 0.0;
3833 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3836 part { name: "toolbar_btns_area";
3839 description { state: "default" 0.0;
3840 rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
3841 rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
3845 part { name: "toolbar_clip";
3848 description { state: "default" 0.0;
3849 rel1 { to: "toolbar_bg"; }
3850 rel2 { to: "toolbar_bg"; }
3853 part { name: "toolbar_button1";
3856 clip_to: "toolbar_clip";
3857 description { state: "default" 0.0;
3860 rel1.to: "toolbar_btns_area";
3861 rel2.to: "toolbar_btns_area";
3863 description { state: "buttons_set" 0.0;
3864 inherit: "default" 0.0;
3868 to: "toolbar_button_padding";
3872 part { name: "toolbar_button_padding";
3875 description { state: "default" 0.0;
3876 min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
3877 max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
3881 rel1.to: "toolbar_btns_area";
3882 rel2.to: "toolbar_btns_area";
3884 description { state: "landscape" 0.0;
3885 inherit: "default" 0.0;
3886 min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
3887 max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
3890 part { name: "toolbar_button2";
3893 clip_to: "toolbar_clip";
3894 description { state: "default" 0.0;
3897 rel1.to: "toolbar_btns_area";
3898 rel2.to: "toolbar_btns_area";
3900 description { state: "buttons_set" 0.0;
3901 inherit: "default" 0.0;
3905 to: "toolbar_button_padding";
3911 program { name: "content_new_pushed";
3912 signal: "elm,state,new,pushed,deferred";
3914 action: STATE_SET "default" 0.0;
3916 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3917 after: "show_finished";
3919 program { name: "content_cur_pushed";
3920 signal: "elm,state,cur,pushed,deferred";
3922 action: STATE_SET "left" 0.0;
3924 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3925 after: "pushed_finished";
3927 program { name: "content_prev_popped";
3928 signal: "elm,state,prev,popped,deferred";
3930 action: STATE_SET "default" 0.0;
3932 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3933 after: "show_finished";
3935 program { name: "content_cur_popped";
3936 signal: "elm,state,cur,popped,deferred";
3938 action: STATE_SET "right" 0.0;
3940 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3941 after: "popped_finished";
3943 program { name: "cur_pushed";
3944 signal: "elm,state,cur,pushed";
3946 action: STATE_SET "default" 0.0;
3949 program { name: "new_pushed";
3950 signal: "elm,state,new,pushed";
3952 action: STATE_SET "right" 0.0;
3955 program { name: "prev_popped";
3956 signal: "elm,state,prev,popped";
3958 action: STATE_SET "left" 0.0;
3961 program { name: "cur_popped";
3962 signal: "elm,state,cur,popped";
3964 action: STATE_SET "default" 0.0;
3967 program { name: "visible";
3968 signal: "elm,state,visible";
3970 action: STATE_SET "default" 0.0;
3973 program { name: "title_show";
3974 signal: "elm,state,title,show";
3977 if (get_int(landscape) == 0)
3978 set_state(PART:"title_bg", "default", 0.0);
3980 set_state(PART:"title_bg", "landscape", 0.0);
3983 program { name: "title_hide";
3984 signal: "elm,state,title,hide";
3987 set_state(PART:"title_bg", "hide", 0.0);
3990 program { name: "prev_btn_show";
3991 signal: "elm,state,prev_btn,show";
3994 emit("elm,state,toolbar_bg,show", "elm");
3997 program { name: "prev_btn_hide";
3998 signal: "elm,state,prev_btn,hide";
4001 emit("elm,state,toolbar_bg,hide", "elm");
4004 program { name: "more_btn_show";
4005 signal: "elm,state,toolbar_more_btn,show";
4008 emit("elm,state,toolbar_bg,show", "elm");
4011 program { name: "more_btn_hide";
4012 signal: "elm,state,toolbar_more_btn,hide";
4015 emit("elm,state,toolbar_bg,hide", "elm");
4018 program { name: "toolbar_button1_show";
4019 signal: "elm,state,toolbar_button1,show";
4022 emit("elm,state,toolbar_bg,show", "elm");
4023 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
4024 if (get_int(toolbar_buttons_visible) >= 2)
4026 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
4027 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
4031 program { name: "toolbar_button1_hide";
4032 signal: "elm,state,toolbar_button1,hide";
4035 emit("elm,state,toolbar_bg,hide", "elm");
4036 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4037 set_state(PART:"toolbar_button1", "default", 0.0);
4038 set_state(PART:"toolbar_button2", "default", 0.0);
4041 program { name: "toolbar_button2_show";
4042 signal: "elm,state,toolbar_button2,show";
4045 emit("elm,state,toolbar_bg,show", "elm");
4046 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
4047 if (get_int(toolbar_buttons_visible) >= 2)
4049 set_state(PART:"toolbar_button1", "buttons_set", 0.0);
4050 set_state(PART:"toolbar_button2", "buttons_set", 0.0);
4054 program { name: "toolbar_button2_hide";
4055 signal: "elm,state,toolbar_button2,hide";
4058 emit("elm,state,toolbar_bg,hide", "elm");
4059 set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4060 set_state(PART:"toolbar_button1", "default", 0.0);
4061 set_state(PART:"toolbar_button2", "default", 0.0);
4064 program { name: "toolbar_bg_show";
4065 signal: "elm,state,toolbar_bg,show";
4068 if (get_int(landscape) == 0)
4069 set_state(PART:"toolbar_bg", "visible", 0.0);
4071 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4072 set_int(tbar_bg, get_int(tbar_bg) + 1);
4075 program { name: "toolbar_bg_hide";
4076 signal: "elm,state,toolbar_bg,hide";
4079 set_int(tbar_bg, get_int(tbar_bg) - 1);
4080 if (get_int(tbar_bg) <= 0)
4081 set_state(PART:"toolbar_bg", "default", 0.0);
4084 program { name: "toolbar_open_internal";
4085 signal: "elm,state,toolbar,open,internal";
4088 set_int(tbar_close, 0);
4089 if (get_int(landscape) == 0)
4090 set_state(PART:"toolbar_bg", "visible", 0.0);
4092 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4095 program { name: "toolbar_close_internal";
4096 signal: "elm,state,toolbar,close,internal";
4099 set_int(tbar_close, 1);
4100 set_state(PART:"toolbar_bg", "default", 0.0);
4103 program { name: "toolbar_open";
4104 signal: "elm,state,toolbar,open";
4107 if (get_int(landscape) == 0)
4108 set_state(PART:"toolbar_bg", "visible", 0.0);
4110 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4112 transition: LINEAR 0.2;
4113 after: "toolbar_open_internal";
4115 program { name: "toolbar_close";
4116 signal: "elm,state,toolbar,close";
4118 action: STATE_SET "default" 0.0;
4119 target: "toolbar_bg";
4120 transition: LINEAR 0.2;
4121 after: "toolbar_close_internal";
4123 program { name: "toolbar_instant_open";
4124 signal: "elm,state,toolbar,instant_open";
4127 emit("elm,state,toolbar,open,internal", "elm");
4130 program { name: "toolbar_instant_close";
4131 signal: "elm,state,toolbar,instant_close";
4134 emit("elm,state,toolbar,close,internal", "elm");
4137 program { name: "show_finished";
4138 action: SIGNAL_EMIT "elm,action,show,finished" "";
4140 program { name: "pushed_finished";
4141 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
4143 program { name: "popped_finished";
4144 action: SIGNAL_EMIT "elm,action,popped,finished" "";
4147 name: "init_title_selection";
4148 signal: "elm,state,title_label,show";
4153 get_state(PART:"elm.text.title", st, 30, vl);
4154 if (get_int(landscape) == 0)
4156 set_state(PART:"elm.text.title", "selected", 0.0);
4157 set_state(PART:"elm.text.title2", "default", 0.0);
4161 set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4162 set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4167 name: "title1_clicked";
4168 signal: "mouse,clicked,1";
4169 source: "click_event_title1_area";
4174 get_state(PART:"elm.text.title", st, 30, vl);
4175 if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4177 set_state(PART:"elm.text.title", "selected", 0.0);
4178 set_state(PART:"elm.text.title2", "default", 0.0);
4180 else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4182 set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4183 set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4185 emit("elm,action,title1,clicked", "");
4189 name: "title2_clicked";
4190 signal: "mouse,clicked,1";
4191 source: "click_event_title2_area";
4196 get_state(PART:"elm.text.title2", st, 30, vl);
4197 if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4199 set_state(PART:"elm.text.title2", "selected", 0.0);
4200 set_state(PART:"elm.text.title", "default", 0.0);
4202 else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4204 set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4205 set_state(PART:"elm.text.title", "default_landscape", 0.0);
4207 emit("elm,action,title2,clicked", "");
4210 program { name: "touch_snd";
4211 action: PLAY_SAMPLE "touch_sound" 1.0;
4213 program { name: "title1_selected";
4214 signal: "elm,state,title1,selected";
4217 if (get_int(landscape) == 0)
4219 set_state(PART:"elm.text.title", "selected", 0.0);
4220 set_state(PART:"elm.text.title2", "default", 0.0);
4224 set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4225 set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4229 program { name: "title1_unselected";
4230 signal: "elm,state,title1,unselected";
4233 if (get_int(landscape) == 0)
4234 set_state(PART:"elm.text.title", "default", 0.0);
4236 set_state(PART:"elm.text.title", "default_landscape", 0.0);
4239 program { name: "title2_selected";
4240 signal: "elm,state,title2,selected";
4243 if (get_int(landscape) == 0)
4245 set_state(PART:"elm.text.title2", "selected", 0.0);
4246 set_state(PART:"elm.text.title", "default", 0.0);
4250 set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4251 set_state(PART:"elm.text.title", "default_landscape", 0.0);
4255 program { name: "title2_unselected";
4256 signal: "elm,state,title2,unselected";
4259 if (get_int(landscape) == 0)
4260 set_state(PART:"elm.text.title2", "default", 0.0);
4262 set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4267 signal: "elm,state,title_badge,show";
4270 set_state(PART:"badge_bg", "visible", 0.0);
4271 set_state(PART:"title_badge", "visible", 0.0);
4276 signal: "elm,state,title_badge,hide";
4279 set_state(PART:"badge_bg", "default", 0.0);
4280 set_state(PART:"title_badge", "default", 0.0);
4284 name: "badge2_show";
4285 signal: "elm,state,title2_badge,show";
4288 set_state(PART:"badge_left_padding2", "visible", 0.0);
4289 set_state(PART:"badge2_bg", "visible", 0.0);
4290 set_state(PART:"title2_badge", "visible", 0.0);
4294 name: "badge2_hide";
4295 signal: "elm,state,title2_badge,hide";
4298 set_state(PART:"badge_left_padding2", "default", 0.0);
4299 set_state(PART:"badge2_bg", "default", 0.0);
4300 set_state(PART:"title2_badge", "default", 0.0);
4304 name: "change_to_landscape";
4305 signal: "elm,state,landscape";
4308 if (get_int(landscape) == 0) {
4309 set_state(PART:"top_padding", "landscape", 0.0);
4310 set_state(PART:"padding_bottom_text", "landscape", 0.0);
4311 set_state(PART:"title_left_btn", "landscape", 0.0);
4312 set_state(PART:"title_right_btn", "landscape", 0.0);
4313 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
4314 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
4315 set_state(PART:"toolbar_button_padding", "landscape", 0.0);
4319 get_state(PART:"title_bg", st, 30, vl);
4320 if (!strcmp(st, "default"))
4321 set_state(PART:"title_bg", "landscape", 0.0);
4323 get_state(PART:"elm.text.title", st, 30, vl);
4324 if (!strcmp(st, "default"))
4325 set_state(PART:"elm.text.title", "default_landscape", 0.0);
4327 set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4329 get_state(PART:"elm.text.title2", st, 30, vl);
4330 if (!strcmp(st, "default"))
4331 set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4333 set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4335 get_state(PART:"toolbar_bg", st, 30, vl);
4336 if (!strcmp(st, "visible"))
4337 set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4339 set_int(landscape, 1);
4344 name: "change_to_portrait";
4345 signal: "elm,state,portrait";
4348 if (get_int(landscape) == 1) {
4349 set_state(PART:"top_padding", "default", 0.0);
4350 set_state(PART:"padding_bottom_text", "default", 0.0);
4351 set_state(PART:"title_left_btn", "default", 0.0);
4352 set_state(PART:"title_right_btn", "default", 0.0);
4353 set_state(PART:"toolbar_more_btn", "default", 0.0);
4354 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
4355 set_state(PART:"toolbar_button_padding", "default", 0.0);
4359 get_state(PART:"title_bg", st, 30, vl);
4360 if (!strcmp(st, "landscape"))
4361 set_state(PART:"title_bg", "default", 0.0);
4363 get_state(PART:"elm.text.title", st, 30, vl);
4364 if (!strcmp(st, "default_landscape"))
4365 set_state(PART:"elm.text.title", "default", 0.0);
4367 set_state(PART:"elm.text.title", "selected", 0.0);
4369 get_state(PART:"elm.text.title2", st, 30, vl);
4370 if (!strcmp(st, "default_landscape"))
4371 set_state(PART:"elm.text.title2", "default", 0.0);
4373 set_state(PART:"elm.text.title2", "selected", 0.0);
4375 get_state(PART:"toolbar_bg", st, 30, vl);
4376 if (!strcmp(st, "visible_landscape"))
4377 set_state(PART:"toolbar_bg", "visible", 0.0);
4379 set_int(landscape, 0);
4383 program { name: "landscape_mode";
4385 signal: "elm,state,orient,90";
4386 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4388 program { name: "landscape_mode2";
4390 signal: "elm,state,orient,270";
4391 action: SIGNAL_EMIT "elm,state,landscape" "elm";
4393 program { name: "portrait_mode";
4395 signal: "elm,state,orient,0";
4396 action: SIGNAL_EMIT "elm,state,portrait" "elm";
4398 program { name: "portrait_mode2";
4400 signal: "elm,state,orient,180";
4401 action: SIGNAL_EMIT "elm,state,portrait" "elm";