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_badge_bg.png" COMP;
28 public tbar_bg = 0; //Toolbar BG Show call count
29 public tbar_close = 0; //Toolbar lastest Open/Close status
30 public title_badge_visible = 0; //Title badge visible/hidden status
31 public title_slide_visible = 0; //Title slide visible/hidden status
32 public landscape = 0; //Landscape mode status
35 part { name: "clipper";
37 description { state: "default" 0.0;
40 description { state: "left" 0.0;
47 description { state: "default" 0.0;
50 description { state: "left" 0.0;
51 inherit: "default" 0.0;
52 rel1.relative: -1.0 0.0;
53 rel2.relative: 0.0 1.0;
55 description { state: "right" 0.0;
56 inherit: "default" 0.0;
57 rel1.relative: 1.0 0.0;
58 rel2.relative: 2.0 1.0;
61 part { name: "title_bg";
64 description { state: "default" 0.0;
65 min: 1 NAVIFRAME_TITLE_H_INC;
66 max: -1 NAVIFRAME_TITLE_H_INC;
69 rel1 { relative: 0.0 0.0; to: "base"; }
70 rel2 { relative: 1.0 0.0; to: "base"; }
72 normal: "00_title_bg.png";
73 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
77 description { state: "landscape" 0.0;
78 inherit: "default" 0.0;
79 min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
80 max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
82 description { state: "hide" 0.0;
83 inherit: "default" 0.0;
89 part { name: "title_clip";
93 description { state: "default" 0.0;
94 rel1 { to_y: "title_bg"; }
95 rel2 { to_y: "title_bg"; }
98 part { name: "title_right_padding";
102 description { state: "default" 0.0;
103 min: NAVIFRAME_PADDING_INC;
106 rel1 { relative: 1.0 0.0; to: "divider2"; }
107 rel2 { relative: 1.0 1.0; to: "divider2"; }
110 description { state: "title_left_btn_set" 0.0;
111 inherit: "default" 0.0;
112 rel1 { relative: 1.0 0.0; to: "divider1"; }
113 rel2 { relative: 1.0 1.0; to: "divider1"; }
116 part { name: "title_left_padding";
120 description { state: "default" 0.0;
121 min: NAVIFRAME_PADDING_INC;
124 rel1 { relative: 0.0 0.0; to: "title_bg"; }
125 rel2 { relative: 0.0 1.0; to: "title_bg"; }
128 description { state: "icon" 0.0;
129 inherit: "default" 0.0;
130 min: NAVIFRAME_ICON_PADDING_INC;
133 part { name: "elm.swallow.content";
137 clip_to: "content_clip";
138 description { state: "default" 0.0;
140 rel1.relative: 0.0 1.0;
142 rel1.to_y: "title_bg";
143 rel2.relative: 1.0 0.0;
145 rel2.to_y: "toolbar";
148 part { name: "content_clip";
152 description { state: "default" 0.0;
153 rel1.to_y: "elm.swallow.content";
154 rel2.to_y: "elm.swallow.content";
157 part { name: "badge_padding";
161 description { state: "default" 0.0;
165 rel1 { relative: 0.0 0.0; to: "title_right_padding"; }
166 rel2 { relative: 0.0 1.0; to: "title_right_padding"; }
169 description { state: "visible" 0.0;
170 inherit: "default" 0.0;
171 min: NAVIFRAME_BADGE_PADDING_INC;
174 part { name: "title_text_bg";
177 description { state: "default" 0.0;
179 min: 0 NAVIFRAME_TITLE_TEXT_BG_H_INC;
180 max: -1 NAVIFRAME_TITLE_TEXT_BG_H_INC;
182 rel1 { relative: 1.0 0.0; to_x: "title_left_padding"; to_y: "title_bg"; }
183 rel2 { relative: 0.0 1.0; to_x: "title_right_padding"; to_y: "title_bg"; }
185 description { state: "subtitle_is_set" 0.0;
186 inherit: "default" 0.0;
187 min: 0 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
188 max: -1 NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_H_INC;
191 part { name: "maintitle_text_bg";
194 description { state: "default" 0.0;
196 rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
197 rel2 { relative: 0.0 1.0; to_x: "badge_padding"; to_y: "title_text_bg"; }
199 description { state: "subtitle_is_set" 0.0;
200 inherit: "default" 0.0;
201 rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
202 rel2 { relative: 0.0 0.0; to_x: "badge_padding"; to_y: "subtitle_top_padding"; }
205 part { name: "elm.text.title";
207 effect: FAR_SHADOW BOTTOM;
209 clip_to: "title_clip";
210 description { state: "default" 0.0;
211 text { font: "Tizen:style=Bold";
212 size: NAVIFRAME_TITLE_FONT_SIZE_INC;
213 size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_TITLE_FONT_SIZE_INC;
220 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
223 rel1.to: "maintitle_text_bg";
224 rel2.to: "maintitle_text_bg";
226 description { state: "subtitle_is_set" 0.0;
227 inherit: "default" 0.0;
228 text { font: "Tizen:style=Bold";
229 size: NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC;
236 description { state: "subtitle_is_set_landscape" 0.0;
237 inherit: "default" 0.0;
238 text { font: "Tizen:style=Bold";
239 size: NAVIFRAME_LANDSCAPE_TITLE_SMALL_FONT_SIZE_INC;
247 part { name: "subtitle_top_padding";
251 description { state: "default" 0.0;
257 rel1 { relative: 0.0 0.0; to: "subtitle_text_bg"; }
258 rel2 { relative: 1.0 0.0; to: "subtitle_text_bg"; }
260 description { state: "visible" 0.0;
261 inherit: "default" 0.0;
263 min: 0 NAVIFRAME_SUBTITLE_TOP_PADDING_H_INC;
264 max: -1 NAVIFRAME_SUBTITLE_TOP_PADDING_H_INC;
266 description { state: "visible_landscape" 0.0;
267 inherit: "default" 0.0;
269 min: 0 NAVIFRAME_LANDSCAPE_SUBTITLE_TOP_PADDING_H_INC;
270 max: -1 NAVIFRAME_LANDSCAPE_SUBTITLE_TOP_PADDING_H_INC;
273 part { name: "subtitle_text_bg";
277 description { state: "default" 0.0;
283 rel1 { relative: 0.0 1.0; to: "title_text_bg"; }
284 rel2 { relative: 1.0 1.0; to: "title_text_bg"; }
286 description { state: "visible" 0.0;
287 inherit: "default" 0.0;
289 min: 0 NAVIFRAME_SUBTITLE_H_INC;
290 max: -1 NAVIFRAME_SUBTITLE_H_INC;
292 description { state: "visible_landscape" 0.0;
293 inherit: "default" 0.0;
295 min: 0 NAVIFRAME_LANDSCAPE_SUBTITLE_H_INC;
296 max: -1 NAVIFRAME_LANDSCAPE_SUBTITLE_H_INC;
299 part { name: "elm.text.subtitle";
302 clip_to: "title_clip";
303 description { state: "default" 0.0;
304 text { font: "Tizen:style=Bold";
305 size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC;
311 color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC;
313 rel1.to: "subtitle_text_bg";
314 rel2.to: "subtitle_text_bg";
316 description { state: "landscape" 0.0;
317 inherit: "default" 0.0;
318 text { font: "Tizen:style=Bold";
319 size: NAVIFRAME_LANDSCAPE_SUBTITLE_FONT_SIZE_INC;
327 part { name: "padding_before_text";
331 description { state: "default" 0.0;
333 rel1 { relative: 0.0 0.0; to: "title_text_bg"; }
334 rel2 { relative: 0.0 1.0; to: "title_text_bg"; }
336 min: NAVIFRAME_PADDING2_INC;
340 part { name: "badge_top_padding";
343 description { state: "default" 0.0;
345 min: NAVIFRAME_BADGE_TOP_PADDING_INC;
347 rel1 { relative: 0.0 0.0; to: "title_bg"; }
348 rel2 { relative: 1.0 0.0; to: "title_bg"; }
351 description { state: "subtitle_is_set" 0.0;
352 inherit: "default" 0.0;
357 part { name: "badge_left_padding";
360 description { state: "default" 0.0;
364 rel1 { relative: 1.0 1.0; to_x: "elm.text.title"; to_y: "badge_top_padding"; }
365 rel2 { relative: 1.0 0.5; to_x: "elm.text.title"; to_y: "title_bg"; }
368 description { state: "visible" 0.0;
369 inherit: "default" 0.0;
370 min: NAVIFRAME_BADGE_LEFT_PADDING_INC;
372 description { state: "title_slide_is_set" 0.0;
373 inherit: "visible" 0.0;
374 rel1 { relative: 1.0 1.0; to_x: "elm.swallow.title"; to_y: "badge_top_padding"; }
375 rel2 { relative: 1.0 0.5; to_x: "elm.swallow.title"; to_y: "title_bg"; }
378 part { name: "left.padding.text";
382 state: "default" 0.0;
387 to: "badge_left_padding";
391 to: "badge_left_padding";
397 state: "visible" 0.0;
398 inherit: "default" 0.0;
399 min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_INC;
402 part { name: "right.padding.text";
406 state: "default" 0.0;
421 state: "visible" 0.0;
422 inherit: "default" 0.0;
423 min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_INC;
426 part { name: "badge_bg";
429 clip_to: "title_clip";
430 description { state: "default" 0.0;
435 to: "left.padding.text";
439 to: "right.padding.text";
443 normal: "00_badge_bg.png";
444 border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
448 description { state: "visible" 0.0;
449 inherit: "default" 0.0;
451 min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
454 part { name: "title_badge";
458 clip_to: "title_clip";
459 description { state: "default" 0.0;
461 min: NAVIFRAME_BADGE_TEXT_MIN_W_INC 0;
462 max: NAVIFRAME_BADGE_TEXT_MAX_W_INC -1;
464 rel1 { relative: 1.0 0.0; to: "left.padding.text"; }
465 rel2 { relative: 1.0 1.0; to_y: "left.padding.text"; to_x: "badge_padding"; }
467 color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
469 font: "Tizen:style=Bold";
470 size: NAVIFRAME_BADGE_TEXT_H_INC;
476 description { state: "visible" 0.0;
477 inherit: "default" 0.0;
481 part { name: "click_event_area";
483 ignore_flags: ON_HOLD;
484 description { state: "default" 0.0;
485 rel1 { to: "title_bg"; }
486 rel2 { to: "title_bg"; }
490 part { name: "elm.swallow.title";
494 clip_to: "title_clip";
495 description { state: "default" 0.0;
497 rel1 { to: "maintitle_text_bg"; }
498 rel2 { to: "maintitle_text_bg"; }
501 part { name: "elm.swallow.subtitle";
505 clip_to: "title_clip";
506 description { state: "default" 0.0;
508 rel1 { to: "subtitle_text_bg"; }
509 rel2 { to: "subtitle_text_bg"; }
512 part { name: "access.title";
515 description { state: "default" 0.0;
522 part { name: "divider1";
524 description { state: "default" 0.0;
528 color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
529 rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
530 rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
533 description { state: "visible" 0.0;
534 inherit: "default" 0.0;
539 part { name: "title_left_btn";
542 clip_to: "title_clip";
543 description { state: "default" 0.0;
544 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
547 rel1 { relative: 0.0 0.0; to: "divider2"; }
548 rel2 { relative: 0.0 1.0; to: "divider2"; }
550 description { state: "landscape" 0.0;
551 inherit: "default" 0.0;
552 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
555 part { name: "divider2";
557 description { state: "default" 0.0;
561 color: NAVIFRAME_TITLE_BUTTON_DIVIDER_COLOR_INC;
562 rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
563 rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
566 description { state: "visible" 0.0;
567 inherit: "default" 0.0;
572 part { name: "elm.swallow.icon";
575 clip_to: "title_clip";
576 description { state: "default" 0.0;
577 max: NAVIFRAME_ICON_SIZE_INC;
579 rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
580 rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
582 aspect_preference: VERTICAL;
586 part { name: "title_right_btn";
589 clip_to: "title_clip";
590 description { state: "default" 0.0;
591 max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
594 rel1 { relative: 1.0 0.0; to: "title_bg"; }
595 rel2 { relative: 1.0 1.0; to: "title_bg"; }
597 description { state: "landscape" 0.0;
598 inherit: "default" 0.0;
599 max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
602 part { name: "toolbar";
605 description { state: "default" 0.0;
614 description { state: "visible" 0.0;
615 inherit: "default" 0.0;
616 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
617 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
620 description { state: "visible_landscape" 0.0;
621 inherit: "default" 0.0;
622 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
623 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
627 part { name: "more_btn_bg";
631 description { state: "default" 0.0;
632 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
635 rel1 { relative: 0.0 0.0; to: "toolbar"; }
636 rel2 { relative: 0.0 1.0; to: "toolbar"; }
640 part { name: "toolbar_more_btn";
643 clip_to: "toolbar_clip";
644 description { state: "default" 0.0;
645 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
647 rel1.to: "more_btn_bg";
648 rel2.to: "more_btn_bg";
651 description { state: "landscape" 0.0;
652 inherit: "default" 0.0;
653 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
656 part { name: "prev_btn_bg";
660 description { state: "default" 0.0;
661 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
664 rel1 { relative: 1.0 0.0; to: "toolbar"; }
669 part { name: "elm.swallow.prev_btn";
672 clip_to: "toolbar_clip";
673 description { state: "default" 0.0;
674 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
677 rel1.to: "prev_btn_bg";
678 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_clip";
690 description { state: "default" 0.0;
691 rel1 { to: "toolbar"; }
692 rel2 { to: "toolbar"; }
697 program { name: "content_new_pushed";
698 signal: "elm,state,new,pushed,deferred";
700 action: STATE_SET "default" 0.0;
702 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
703 after: "show_finished";
705 program { name: "content_cur_pushed";
706 signal: "elm,state,cur,pushed,deferred";
708 action: STATE_SET "left" 0.0;
711 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
712 after: "pushed_finished";
714 program { name: "content_prev_popped";
715 signal: "elm,state,prev,popped,deferred";
717 action: STATE_SET "default" 0.0;
720 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
721 after: "show_finished";
723 program { name: "content_cur_popped";
724 signal: "elm,state,cur,popped,deferred";
726 action: STATE_SET "right" 0.0;
728 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
729 after: "popped_finished";
731 program { name: "cur_pushed";
732 signal: "elm,state,cur,pushed";
734 action: STATE_SET "default" 0.0;
737 program { name: "new_pushed";
738 signal: "elm,state,new,pushed";
740 action: STATE_SET "right" 0.0;
743 program { name: "prev_popped";
744 signal: "elm,state,prev,popped";
746 action: STATE_SET "left" 0.0;
749 program { name: "cur_popped";
750 signal: "elm,state,cur,popped";
752 action: STATE_SET "default" 0.0;
755 program { name: "visible";
756 signal: "elm,state,visible";
758 action: STATE_SET "default" 0.0;
762 program { name: "title_show";
763 signal: "elm,state,title,show";
766 if (get_int(landscape) == 0)
767 set_state(PART:"title_bg", "default", 0.0);
769 set_state(PART:"title_bg", "landscape", 0.0);
772 program { name: "title_hide";
773 signal: "elm,state,title,hide";
776 set_state(PART:"title_bg", "hide", 0.0);
779 program { name: "subtitle_show";
780 signal: "elm,state,subtitle,show";
783 set_state(PART:"badge_top_padding", "subtitle_is_set", 0.0);
784 set_state(PART:"maintitle_text_bg", "subtitle_is_set", 0.0);
785 if (get_int(landscape) == 0) {
786 set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
787 set_state(PART:"subtitle_top_padding", "visible", 0.0);
788 set_state(PART:"subtitle_text_bg", "visible", 0.0);
791 set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
792 set_state(PART:"subtitle_top_padding", "visible_landscape", 0.0);
793 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
797 program { name: "subtitle_hide";
798 signal: "elm,state,subtitle,hide";
801 set_state(PART:"badge_top_padding", "default", 0.0);
802 set_state(PART:"maintitle_text_bg", "default", 0.0);
803 set_state(PART:"subtitle_top_padding", "default", 0.0);
804 set_state(PART:"subtitle_text_bg", "default", 0.0);
805 set_state(PART:"elm.text.title", "default", 0.0);
808 program { name: "icon_show";
809 signal: "elm,state,icon,show";
811 action: STATE_SET "icon" 0.0;
812 target: "title_left_padding";
814 program { name: "icon_hide";
815 signal: "elm,state,icon,hide";
817 action: STATE_SET "default" 0.0;
818 target: "title_left_padding";
820 program { name: "title_left_btn_show";
821 signal: "elm,state,title_left_btn,show";
824 set_state(PART:"divider1", "visible", 0.0);
825 set_state(PART:"title_right_padding", "title_left_btn_set", 0.0);
828 program { name: "title_left_btn_hide";
829 signal: "elm,state,title_left_btn,hide";
832 set_state(PART:"divider1", "default", 0.0);
833 set_state(PART:"title_right_padding", "default", 0.0);
836 program { name: "title_right_btn_show";
837 signal: "elm,state,title_right_btn,show";
839 action: STATE_SET "visible" 0.0;
842 program { name: "title_right_btn_hide";
843 signal: "elm,state,title_right_btn,hide";
845 action: STATE_SET "default" 0.0;
848 program { name: "toolbar_show";
849 signal: "elm,state,toolbar,show";
852 if (get_int(landscape) == 0)
853 set_state(PART:"toolbar", "visible", 0.0);
855 set_state(PART:"toolbar", "visible_landscape", 0.0);
856 set_int(tbar_bg, get_int(tbar_bg) + 1);
859 program { name: "toolbar_hide";
860 signal: "elm,state,toolbar,hide";
863 set_int(tbar_bg, get_int(tbar_bg) - 1);
864 if (get_int(tbar_bg) <= 0)
865 set_state(PART:"toolbar", "default", 0.0);
868 program { name: "toolbar_open_internal";
869 signal: "elm,state,toolbar,open,internal";
872 set_int(tbar_close, 0);
873 if (get_int(landscape) == 0)
874 set_state(PART:"toolbar", "visible", 0.0);
876 set_state(PART:"toolbar", "visible_landscape", 0.0);
879 program { name: "toolbar_close_internal";
880 signal: "elm,state,toolbar,close,internal";
883 set_int(tbar_close, 1);
884 set_state(PART:"toolbar", "default", 0.0);
887 program { name: "toolbar_open";
888 signal: "elm,state,toolbar,open";
891 if (get_int(landscape) == 0)
892 set_state(PART:"toolbar", "visible", 0.0);
894 set_state(PART:"toolbar", "visible_landscape", 0.0);
896 transition: LINEAR 0.2;
897 after: "toolbar_open_internal";
899 program { name: "toolbar_close";
900 signal: "elm,state,toolbar,close";
902 action: STATE_SET "default" 0.0;
904 transition: LINEAR 0.2;
905 after: "toolbar_close_internal";
907 program { name: "toolbar_instant_open";
908 signal: "elm,state,toolbar,instant_open";
911 emit("elm,state,toolbar,open,internal", "elm");
914 program { name: "toolbar_instant_close";
915 signal: "elm,state,toolbar,instant_close";
918 emit("elm,state,toolbar,close,internal", "elm");
921 program { name: "show_finished";
922 action: SIGNAL_EMIT "elm,action,show,finished" "";
924 program { name: "pushed_finished";
925 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
927 program { name: "popped_finished";
928 action: SIGNAL_EMIT "elm,action,popped,finished" "";
931 name: "title_clicked";
932 signal: "mouse,clicked,1";
933 source: "click_event_area";
934 action: SIGNAL_EMIT "elm,action,title,clicked" "";
937 name: "title_badge_show";
938 signal: "elm,state,title_badge,show";
941 if (get_int(title_slide_visible) == 0)
942 set_state(PART:"badge_left_padding", "visible", 0.0);
944 set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
945 set_state(PART:"badge_padding", "visible", 0.0);
946 set_state(PART:"left.padding.text", "visible", 0.0);
947 set_state(PART:"right.padding.text", "visible", 0.0);
948 set_state(PART:"badge_bg", "visible", 0.0);
949 set_state(PART:"title_badge", "visible", 0.0);
950 set_int(title_badge_visible, 1);
954 name: "title_badge_hide";
955 signal: "elm,state,title_badge,hide";
958 set_state(PART:"badge_left_padding", "default", 0.0);
959 set_state(PART:"badge_padding", "default", 0.0);
960 set_state(PART:"left.padding.text", "default", 0.0);
961 set_state(PART:"right.padding.text", "default", 0.0);
962 set_state(PART:"badge_bg", "default", 0.0);
963 set_state(PART:"title_badge", "default", 0.0);
964 set_int(title_badge_visible, 0);
968 name: "title_slide_show";
969 signal: "elm,state,elm.swallow.title,show";
972 if (get_int(title_badge_visible) == 1)
973 set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
974 set_int(title_slide_visible, 1);
978 name: "title_slide_hide";
979 signal: "elm,state,elm.swallow.title,hide";
982 if (get_int(title_badge_visible) == 1)
983 set_state(PART:"badge_left_padding", "visible", 0.0);
984 set_int(title_slide_visible, 0);
988 name: "subtitle_slide_show";
989 signal: "elm,state,elm.swallow.subtitle,show";
992 set_state(PART:"badge_top_padding", "subtitle_is_set", 0.0);
993 set_state(PART:"maintitle_text_bg", "subtitle_is_set", 0.0);
994 if (get_int(landscape) == 0) {
995 set_state(PART:"subtitle_top_padding", "visible", 0.0);
996 set_state(PART:"subtitle_text_bg", "visible", 0.0);
999 set_state(PART:"subtitle_top_padding", "visible_landscape", 0.0);
1000 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1005 name: "subtitle_slide_hide";
1006 signal: "elm,state,elm.swallow.subtitle,hide";
1009 set_state(PART:"badge_top_padding", "default", 0.0);
1010 set_state(PART:"maintitle_text_bg", "default", 0.0);
1011 set_state(PART:"subtitle_top_padding", "default", 0.0);
1012 set_state(PART:"subtitle_text_bg", "default", 0.0);
1016 name: "change_to_landscape";
1017 signal: "elm,state,landscape";
1020 if (get_int(landscape) == 0) {
1021 set_state(PART:"title_text_bg", "landscape", 0.0);
1022 set_state(PART:"elm.text.subtitle", "landscape", 0.0);
1023 set_state(PART:"title_left_btn", "landscape", 0.0);
1024 set_state(PART:"title_right_btn", "landscape", 0.0);
1025 set_state(PART:"title_more_btn", "landscape", 0.0);
1026 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1027 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1031 get_state(PART:"title_bg", st, 30, vl);
1032 if (!strcmp(st, "default"))
1033 set_state(PART:"title_bg", "landscape", 0.0);
1035 get_state(PART:"elm.text.title", st, 30, vl);
1036 if (!strcmp(st, "subtitle_is_set"))
1037 set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
1039 get_state(PART:"subtitle_top_padding", st, 30, vl);
1040 if (!strcmp(st, "visible"))
1041 set_state(PART:"subtitle_top_padding", "visible_landscape", 0.0);
1043 get_state(PART:"subtitle_text_bg", st, 30, vl);
1044 if (!strcmp(st, "visible"))
1045 set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1047 get_state(PART:"toolbar", st, 30, vl);
1048 if (!strcmp(st, "visible"))
1049 set_state(PART:"toolbar", "visible_landscape", 0.0);
1051 set_int(landscape, 1);
1056 name: "change_to_portrait";
1057 signal: "elm,state,portrait";
1060 if (get_int(landscape) == 1) {
1061 set_state(PART:"title_text_bg", "default", 0.0);
1062 set_state(PART:"elm.text.subtitle", "default", 0.0);
1063 set_state(PART:"title_left_btn", "default", 0.0);
1064 set_state(PART:"title_right_btn", "default", 0.0);
1065 set_state(PART:"title_more_btn", "default", 0.0);
1066 set_state(PART:"toolbar_more_btn", "default", 0.0);
1067 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1071 get_state(PART:"title_bg", st, 30, vl);
1072 if (!strcmp(st, "landscape"))
1073 set_state(PART:"title_bg", "default", 0.0);
1075 get_state(PART:"elm.text.title", st, 30, vl);
1076 if (!strcmp(st, "subtitle_is_set_landscape"))
1077 set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
1079 get_state(PART:"subtitle_top_padding", st, 30, vl);
1080 if (!strcmp(st, "visible_landscape"))
1081 set_state(PART:"subtitle_top_padding", "visible", 0.0);
1083 get_state(PART:"subtitle_text_bg", st, 30, vl);
1084 if (!strcmp(st, "visible_landscape"))
1085 set_state(PART:"subtitle_text_bg", "visible", 0.0);
1087 get_state(PART:"toolbar", st, 30, vl);
1088 if (!strcmp(st, "visible_landscape"))
1089 set_state(PART:"toolbar", "visible", 0.0);
1091 set_int(landscape, 0);
1095 program { name: "landscape_mode";
1097 signal: "elm,state,orient,90";
1098 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1100 program { name: "landscape_mode2";
1102 signal: "elm,state,orient,270";
1103 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1105 program { name: "portrait_mode";
1107 signal: "elm,state,orient,0";
1108 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1110 program { name: "portrait_mode2";
1112 signal: "elm,state,orient,180";
1113 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1118 group { name: "elm/naviframe/item/tabbar/default";
1120 image: "00_title_bg.png" COMP;
1123 public tbar_bg = 0; //Controlbar BG Show call count
1124 public tbar_close = 0; //Toolbar lastest Open/Close status
1125 public landscape = 0; //Landscape mode status
1128 part { name: "clipper";
1130 description { state: "default" 0.0;
1133 description { state: "left" 0.0;
1137 part { name: "base";
1140 description { state: "default" 0.0;
1143 description { state: "left" 0.0;
1144 inherit: "default" 0.0;
1145 rel1.relative: -1.0 0.0;
1146 rel2.relative: 0.0 1.0;
1148 description { state: "right" 0.0;
1149 inherit: "default" 0.0;
1150 rel1.relative: 1.0 0.0;
1151 rel2.relative: 2.0 1.0;
1154 part { name: "title_bg";
1157 description { state: "default" 0.0;
1158 min: 1 NAVIFRAME_TAB_TITLE_H_INC;
1159 max: -1 NAVIFRAME_TAB_TITLE_H_INC;
1162 rel1 { relative: 0.0 0.0; to: "base"; }
1163 rel2 { relative: 1.0 0.0; to: "base"; }
1165 normal: "00_title_bg.png";
1166 border: NAVIFRAME_TITLE_BG_IMAGE_BORDER_INC;
1170 description { state: "landscape" 0.0;
1171 inherit: "default" 0.0;
1172 min: 1 NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC;
1173 max: -1 NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC;
1175 description { state: "hide" 0.0;
1176 inherit: "default" 0.0;
1182 part { name: "title_clip";
1186 description { state: "default" 0.0;
1187 rel1 { to_y: "title_bg"; }
1188 rel2 { to_y: "title_bg"; }
1191 part { name: "elm.swallow.content";
1195 clip_to: "content_clip";
1196 description { state: "default" 0.0;
1198 rel1.relative: 0.0 1.0;
1200 rel1.to_y: "title_bg";
1201 rel2.relative: 1.0 0.0;
1203 rel2.to_y: "toolbar";
1206 part { name: "content_clip";
1210 description { state: "default" 0.0;
1211 rel1.to_y: "elm.swallow.content";
1212 rel2.to_y: "elm.swallow.content";
1215 part { name: "title_left_padding";
1219 description { state: "default" 0.0;
1221 rel1 { relative: 0.0 0.0; to: "title_bg"; }
1222 rel2 { relative: 0.0 1.0; to: "title_bg"; }
1224 min: NAVIFRAME_PADDING_INC;
1228 part { name: "title_right_padding";
1232 description { state: "default" 0.0;
1234 rel1 { relative: 1.0 0.0; to: "title_bg"; }
1235 rel2 { relative: 1.0 1.0; to: "title_bg"; }
1237 min: NAVIFRAME_PADDING_INC;
1241 part { name: "elm.text.title";
1244 effect: FAR_SHADOW BOTTOM;
1245 clip_to: "title_clip";
1246 description { state: "default" 0.0;
1248 text { font: "Tizen:style=Bold";
1249 size: NAVIFRAME_TITLE_TAB_FONT_SIZE_INC;
1253 text_class: "tizen";
1255 min: 0 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1256 max: 999999 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1258 color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
1261 rel1 { relative: 1.0 0.0; to: "title_left_padding"; }
1262 rel2 { relative: 0.0 1.0; to: "title_right_padding"; }
1264 description { state: "landscape" 0.0;
1265 inherit: "default" 0.0;
1266 text { font: "Tizen:style=Bold";
1267 size: NAVIFRAME_LANDSCAPE_TITLE_TAB_FONT_SIZE_INC;
1271 text_class: "tizen";
1273 min: 0 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1274 max: 999999 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1277 part { name: "click_event_area";
1279 ignore_flags: ON_HOLD;
1280 description { state: "default" 0.0;
1281 rel1 { to: "title_bg"; }
1282 rel2 { to: "title_bg"; }
1286 part { name: "access.title";
1289 description { state: "default" 0.0;
1291 rel1.to: "title_bg";
1292 rel2.to: "title_bg";
1296 part { name: "tabbar";
1299 clip_to: "title_clip";
1300 description { state: "default" 0.0;
1301 min: 0 NAVIFRAME_TITLE_TAB_H_INC;
1302 max: -1 NAVIFRAME_TITLE_TAB_H_INC;
1305 rel1 { relative: 0.0 1.0; to: "title_bg"; }
1306 rel2 { relative: 1.0 1.0; to: "title_bg"; }
1309 part { name: "toolbar";
1312 description { state: "default" 0.0;
1318 rel1 { to: "base"; }
1319 rel2 { to: "base"; }
1321 description { state: "visible" 0.0;
1322 inherit: "default" 0.0;
1323 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1324 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1327 description { state: "visible_landscape" 0.0;
1328 inherit: "default" 0.0;
1329 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1330 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1334 part { name: "more_btn_bg";
1338 description { state: "default" 0.0;
1339 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1342 rel1 { relative: 0.0 0.0; to: "toolbar"; }
1343 rel2 { relative: 0.0 1.0; to: "toolbar"; }
1347 part { name: "toolbar_more_btn";
1350 clip_to: "toolbar_clip";
1351 description { state: "default" 0.0;
1352 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1354 rel1.to: "more_btn_bg";
1355 rel2.to: "more_btn_bg";
1358 description { state: "landscape" 0.0;
1359 inherit: "default" 0.0;
1360 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1363 part { name: "prev_btn_bg";
1367 description { state: "default" 0.0;
1368 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1371 rel1 { relative: 1.0 0.0; to: "toolbar"; }
1376 part { name: "elm.swallow.prev_btn";
1379 clip_to: "toolbar_clip";
1380 description { state: "default" 0.0;
1381 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1384 rel1.to: "prev_btn_bg";
1385 rel2.to: "prev_btn_bg";
1388 description { state: "landscape" 0.0;
1389 inherit: "default" 0.0;
1390 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1393 part { name: "toolbar_clip";
1397 description { state: "default" 0.0;
1398 rel1 { to: "toolbar"; }
1399 rel2 { to: "toolbar"; }
1404 program { name: "content_new_pushed";
1405 signal: "elm,state,new,pushed,deferred";
1407 action: STATE_SET "default" 0.0;
1409 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1410 after: "show_finished";
1412 program { name: "content_cur_pushed";
1413 signal: "elm,state,cur,pushed,deferred";
1415 action: STATE_SET "left" 0.0;
1418 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1419 after: "pushed_finished";
1421 program { name: "content_prev_popped";
1422 signal: "elm,state,prev,popped,deferred";
1424 action: STATE_SET "default" 0.0;
1427 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1428 after: "show_finished";
1430 program { name: "content_cur_popped";
1431 signal: "elm,state,cur,popped,deferred";
1433 action: STATE_SET "right" 0.0;
1435 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1436 after: "popped_finished";
1438 program { name: "cur_pushed";
1439 signal: "elm,state,cur,pushed";
1441 action: STATE_SET "default" 0.0;
1444 program { name: "new_pushed";
1445 signal: "elm,state,new,pushed";
1447 action: STATE_SET "right" 0.0;
1450 program { name: "prev_popped";
1451 signal: "elm,state,prev,popped";
1453 action: STATE_SET "left" 0.0;
1456 program { name: "cur_popped";
1457 signal: "elm,state,cur,popped";
1459 action: STATE_SET "default" 0.0;
1462 program { name: "visible";
1463 signal: "elm,state,visible";
1465 action: STATE_SET "default" 0.0;
1468 program { name: "title_show";
1469 signal: "elm,state,title,show";
1472 if (get_int(landscape) == 0)
1473 set_state(PART:"title_bg", "default", 0.0);
1475 set_state(PART:"title_bg", "landscape", 0.0);
1478 program { name: "title_hide";
1479 signal: "elm,state,title,hide";
1482 set_state(PART:"title_bg", "hide", 0.0);
1485 program { name: "toolbar_show";
1486 signal: "elm,state,toolbar,show";
1489 if (get_int(landscape) == 0)
1490 set_state(PART:"toolbar", "visible", 0.0);
1492 set_state(PART:"toolbar", "visible_landscape", 0.0);
1493 set_int(tbar_bg, get_int(tbar_bg) + 1);
1496 program { name: "toolbar_hide";
1497 signal: "elm,state,toolbar,hide";
1500 set_int(tbar_bg, get_int(tbar_bg) - 1);
1501 if (get_int(tbar_bg) <= 0)
1502 set_state(PART:"toolbar", "default", 0.0);
1505 program { name: "toolbar_open_internal";
1506 signal: "elm,state,toolbar,open,internal";
1509 set_int(tbar_close, 0);
1510 if (get_int(landscape) == 0)
1511 set_state(PART:"toolbar", "visible", 0.0);
1513 set_state(PART:"toolbar", "visible_landscape", 0.0);
1516 program { name: "toolbar_close_internal";
1517 signal: "elm,state,toolbar,close,internal";
1520 set_int(tbar_close, 1);
1521 set_state(PART:"toolbar", "default", 0.0);
1524 program { name: "toolbar_open";
1525 signal: "elm,state,toolbar,open";
1528 if (get_int(landscape) == 0)
1529 set_state(PART:"toolbar", "visible", 0.0);
1531 set_state(PART:"toolbar", "visible_landscape", 0.0);
1533 transition: LINEAR 0.2;
1534 after: "toolbar_open_internal";
1536 program { name: "toolbar_close";
1537 signal: "elm,state,toolbar,close";
1539 action: STATE_SET "default" 0.0;
1541 transition: LINEAR 0.2;
1542 after: "toolbar_close_internal";
1544 program { name: "toolbar_instant_open";
1545 signal: "elm,state,toolbar,instant_open";
1548 emit("elm,state,toolbar,open,internal", "elm");
1551 program { name: "toolbar_instant_close";
1552 signal: "elm,state,toolbar,instant_close";
1555 emit("elm,state,toolbar,close,internal", "elm");
1558 program { name: "show_finished";
1559 action: SIGNAL_EMIT "elm,action,show,finished" "";
1561 program { name: "pushed_finished";
1562 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1564 program { name: "popped_finished";
1565 action: SIGNAL_EMIT "elm,action,popped,finished" "";
1568 name: "title_clicked";
1569 signal: "mouse,clicked,1";
1570 source: "click_event_area";
1571 action: SIGNAL_EMIT "elm,action,title,clicked" "";
1574 name: "change_to_landscape";
1575 signal: "elm,state,landscape";
1578 if (get_int(landscape) == 0) {
1579 set_state(PART:"elm.text.title", "landscape", 0.0);
1580 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1581 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1585 get_state(PART:"title_bg", st, 30, vl);
1586 if (!strcmp(st, "default"))
1587 set_state(PART:"title_bg", "landscape", 0.0);
1589 get_state(PART:"toolbar", st, 30, vl);
1590 if (!strcmp(st, "visible"))
1591 set_state(PART:"toolbar", "visible_landscape", 0.0);
1593 set_int(landscape, 1);
1598 name: "change_to_portrait";
1599 signal: "elm,state,portrait";
1602 if (get_int(landscape) == 1) {
1603 set_state(PART:"elm.text.title", "default", 0.0);
1604 set_state(PART:"toolbar_more_btn", "default", 0.0);
1605 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1609 get_state(PART:"title_bg", st, 30, vl);
1610 if (!strcmp(st, "landscape"))
1611 set_state(PART:"title_bg", "default", 0.0);
1613 get_state(PART:"toolbar", st, 30, vl);
1614 if (!strcmp(st, "visible_landscape"))
1615 set_state(PART:"toolbar", "visible", 0.0);
1617 set_int(landscape, 0);
1621 program { name: "landscape_mode";
1623 signal: "elm,state,orient,90";
1624 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1626 program { name: "landscape_mode2";
1628 signal: "elm,state,orient,270";
1629 action: SIGNAL_EMIT "elm,state,landscape" "elm";
1631 program { name: "portrait_mode";
1633 signal: "elm,state,orient,0";
1634 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1636 program { name: "portrait_mode2";
1638 signal: "elm,state,orient,180";
1639 action: SIGNAL_EMIT "elm,state,portrait" "elm";
1644 group { name: "elm/naviframe/item/tabbar/notitle/default";
1646 public tbar_bg = 0; //Toolbar BG Show call count
1647 public tbar_close = 0; //Toolbar lastest Open/Close status
1648 public landscape = 0; //Landscape mode status
1651 part { name: "clipper";
1653 description { state: "default" 0.0;
1656 description { state: "left" 0.0;
1660 part { name: "base";
1663 description { state: "default" 0.0;
1666 description { state: "left" 0.0;
1667 inherit: "default" 0.0;
1668 rel1.relative: -1.0 0.0;
1669 rel2.relative: 0.0 1.0;
1671 description { state: "right" 0.0;
1672 inherit: "default" 0.0;
1673 rel1.relative: 1.0 0.0;
1674 rel2.relative: 2.0 1.0;
1677 part { name: "title_bg";
1680 description { state: "default" 0.0;
1681 min: 1 NAVIFRAME_TAB_TITLE_H2_INC;
1682 max: -1 NAVIFRAME_TAB_TITLE_H2_INC;
1685 rel1 { relative: 0.0 0.0; to: "base"; }
1686 rel2 { relative: 1.0 0.0; to: "base"; }
1688 description { state: "hide" 0.0;
1689 inherit: "default" 0.0;
1695 part { name: "title_clip";
1699 description { state: "default" 0.0;
1700 rel1 { to_y: "title_bg"; }
1701 rel2 { to_y: "title_bg"; }
1704 part { name: "tabbar";
1707 clip_to: "title_clip";
1708 description { state: "default" 0.0;
1709 max: -1 NAVIFRAME_TAB_TITLE_H2_INC;
1710 rel1 { relative: 0.0 0.0; to: "title_bg"; }
1711 rel2 { relative: 1.0 1.0; to: "title_bg"; }
1714 part { name: "elm.swallow.content";
1718 clip_to: "content_clip";
1719 description { state: "default" 0.0;
1721 rel1.relative: 0.0 1.0;
1723 rel1.to_y: "title_bg";
1724 rel2.relative: 1.0 0.0;
1726 rel2.to_y: "toolbar";
1729 part { name: "content_clip";
1733 description { state: "default" 0.0;
1734 rel1.to_y: "elm.swallow.content";
1735 rel2.to_y: "elm.swallow.content";
1738 part { name: "toolbar";
1741 description { state: "default" 0.0;
1747 rel1 { to: "base"; }
1748 rel2 { to: "base"; }
1750 description { state: "visible" 0.0;
1751 inherit: "default" 0.0;
1752 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1753 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1756 description { state: "visible_landscape" 0.0;
1757 inherit: "default" 0.0;
1758 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1759 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1763 part { name: "more_btn_bg";
1767 description { state: "default" 0.0;
1768 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1771 rel1 { relative: 0.0 0.0; to: "toolbar"; }
1772 rel2 { relative: 0.0 1.0; to: "toolbar"; }
1776 part { name: "toolbar_more_btn";
1779 clip_to: "toolbar_clip";
1780 description { state: "default" 0.0;
1781 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1783 rel1.to: "more_btn_bg";
1784 rel2.to: "more_btn_bg";
1787 description { state: "landscape" 0.0;
1788 inherit: "default" 0.0;
1789 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1792 part { name: "prev_btn_bg";
1796 description { state: "default" 0.0;
1797 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1800 rel1 { relative: 1.0 0.0; to: "toolbar"; }
1805 part { name: "elm.swallow.prev_btn";
1808 clip_to: "toolbar_clip";
1809 description { state: "default" 0.0;
1810 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1813 rel1.to: "prev_btn_bg";
1814 rel2.to: "prev_btn_bg";
1817 description { state: "landscape" 0.0;
1818 inherit: "default" 0.0;
1819 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1822 part { name: "toolbar_clip";
1826 description { state: "default" 0.0;
1827 rel1 { to: "toolbar"; }
1828 rel2 { to: "toolbar"; }
1833 program { name: "content_new_pushed";
1834 signal: "elm,state,new,pushed,deferred";
1836 action: STATE_SET "default" 0.0;
1838 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1839 after: "show_finished";
1841 program { name: "content_cur_pushed";
1842 signal: "elm,state,cur,pushed,deferred";
1844 action: STATE_SET "left" 0.0;
1847 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1848 after: "pushed_finished";
1850 program { name: "content_prev_popped";
1851 signal: "elm,state,prev,popped,deferred";
1853 action: STATE_SET "default" 0.0;
1856 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1857 after: "show_finished";
1859 program { name: "content_cur_popped";
1860 signal: "elm,state,cur,popped,deferred";
1862 action: STATE_SET "right" 0.0;
1864 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1865 after: "popped_finished";
1867 program { name: "cur_pushed";
1868 signal: "elm,state,cur,pushed";
1870 action: STATE_SET "default" 0.0;
1873 program { name: "new_pushed";
1874 signal: "elm,state,new,pushed";
1876 action: STATE_SET "right" 0.0;
1879 program { name: "prev_popped";
1880 signal: "elm,state,prev,popped";
1882 action: STATE_SET "left" 0.0;
1885 program { name: "cur_popped";
1886 signal: "elm,state,cur,popped";
1888 action: STATE_SET "default" 0.0;
1891 program { name: "visible";
1892 signal: "elm,state,visible";
1894 action: STATE_SET "default" 0.0;
1897 program { name: "title_show";
1898 signal: "elm,state,title,show";
1901 set_state(PART:"title_bg", "default", 0.0);
1904 program { name: "title_hide";
1905 signal: "elm,state,title,hide";
1908 set_state(PART:"title_bg", "hide", 0.0);
1911 program { name: "toolbar_show";
1912 signal: "elm,state,toolbar,show";
1915 if (get_int(landscape) == 0)
1916 set_state(PART:"toolbar", "visible", 0.0);
1918 set_state(PART:"toolbar", "visible_landscape", 0.0);
1919 set_int(tbar_bg, get_int(tbar_bg) + 1);
1922 program { name: "toolbar_hide";
1923 signal: "elm,state,toolbar,hide";
1926 set_int(tbar_bg, get_int(tbar_bg) - 1);
1927 if (get_int(tbar_bg) <= 0)
1928 set_state(PART:"toolbar", "default", 0.0);
1931 program { name: "toolbar_open_internal";
1932 signal: "elm,state,toolbar,open,internal";
1935 set_int(tbar_close, 0);
1936 if (get_int(landscape) == 0)
1937 set_state(PART:"toolbar", "visible", 0.0);
1939 set_state(PART:"toolbar", "visible_landscape", 0.0);
1942 program { name: "toolbar_close_internal";
1943 signal: "elm,state,toolbar,close,internal";
1946 set_int(tbar_close, 1);
1947 set_state(PART:"toolbar", "default", 0.0);
1950 program { name: "toolbar_open";
1951 signal: "elm,state,toolbar,open";
1954 if (get_int(landscape) == 0)
1955 set_state(PART:"toolbar", "visible", 0.0);
1957 set_state(PART:"toolbar", "visible_landscape", 0.0);
1959 transition: LINEAR 0.2;
1960 after: "toolbar_open_internal";
1962 program { name: "toolbar_close";
1963 signal: "elm,state,toolbar,close";
1965 action: STATE_SET "default" 0.0;
1967 transition: LINEAR 0.2;
1968 after: "toolbar_close_internal";
1970 program { name: "toolbar_instant_open";
1971 signal: "elm,state,toolbar,instant_open";
1974 emit("elm,state,toolbar,open,internal", "elm");
1977 program { name: "toolbar_instant_close";
1978 signal: "elm,state,toolbar,instant_close";
1981 emit("elm,state,toolbar,close,internal", "elm");
1984 program { name: "show_finished";
1985 action: SIGNAL_EMIT "elm,action,show,finished" "";
1987 program { name: "pushed_finished";
1988 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1990 program { name: "popped_finished";
1991 action: SIGNAL_EMIT "elm,action,popped,finished" "";
1994 name: "change_to_landscape";
1995 signal: "elm,state,landscape";
1998 if (get_int(landscape) == 0) {
1999 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
2000 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
2004 get_state(PART:"toolbar", st, 30, vl);
2005 if (!strcmp(st, "visible"))
2006 set_state(PART:"toolbar", "visible_landscape", 0.0);
2008 set_int(landscape, 1);
2013 name: "change_to_portrait";
2014 signal: "elm,state,portrait";
2017 if (get_int(landscape) == 1) {
2018 set_state(PART:"toolbar_more_btn", "default", 0.0);
2019 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
2023 get_state(PART:"toolbar", st, 30, vl);
2024 if (!strcmp(st, "visible_landscape"))
2025 set_state(PART:"toolbar", "visible", 0.0);
2027 set_int(landscape, 0);
2031 program { name: "landscape_mode";
2033 signal: "elm,state,orient,90";
2034 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2036 program { name: "landscape_mode2";
2038 signal: "elm,state,orient,270";
2039 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2041 program { name: "portrait_mode";
2043 signal: "elm,state,orient,0";
2044 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2046 program { name: "portrait_mode2";
2048 signal: "elm,state,orient,180";
2049 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2054 group { name: "elm/naviframe/item/empty/default";
2056 public tbar_bg = 0; //Toolbar BG Show call count
2057 public tbar_close = 0; //Toolbar lastest Open/Close status
2058 public landscape = 0; //Landscape mode status
2061 part { name: "clipper";
2063 description { state: "default" 0.0;
2066 description { state: "left" 0.0;
2070 part { name: "base";
2073 description { state: "default" 0.0;
2076 description { state: "left" 0.0;
2077 inherit: "default" 0.0;
2078 rel1.relative: -1.0 0.0;
2079 rel2.relative: 0.0 1.0;
2081 description { state: "right" 0.0;
2082 inherit: "default" 0.0;
2083 rel1.relative: 1.0 0.0;
2084 rel2.relative: 2.0 1.0;
2087 part { name: "title_bg";
2090 description { state: "default" 0.0;
2091 rel1 { to: "title"; }
2092 rel2 { to: "title"; }
2094 description { state: "hide" 0.0;
2095 inherit: "default" 0.0;
2101 part { name: "elm.swallow.content";
2105 clip_to: "content_clip";
2106 description { state: "default" 0.0;
2108 rel1.relative: 0.0 1.0;
2110 rel1.to_y: "title_bg";
2111 rel2.relative: 1.0 0.0;
2113 rel2.to_y: "toolbar";
2116 part { name: "content_clip";
2120 description { state: "default" 0.0;
2121 rel1.to: "elm.swallow.content";
2122 rel2.to: "elm.swallow.content";
2125 part { name: "title";
2129 description { state: "default" 0.0;
2132 rel1 { relative: 0.0 0.0; to: "base"; }
2133 rel2 { relative: 1.0 0.0; to: "base"; }
2135 description { state: "hide" 0.0;
2136 inherit: "default" 0.0;
2143 part { name: "toolbar";
2146 description { state: "default" 0.0;
2152 rel1 { to: "base"; }
2153 rel2 { to: "base"; }
2155 description { state: "visible" 0.0;
2156 inherit: "default" 0.0;
2157 min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2158 max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2161 description { state: "visible_landscape" 0.0;
2162 inherit: "default" 0.0;
2163 min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2164 max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2168 part { name: "more_btn_bg";
2172 description { state: "default" 0.0;
2173 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2176 rel1 { relative: 0.0 0.0; to: "toolbar"; }
2177 rel2 { relative: 0.0 1.0; to: "toolbar"; }
2181 part { name: "toolbar_more_btn";
2184 clip_to: "toolbar_clip";
2185 description { state: "default" 0.0;
2186 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2188 rel1.to: "more_btn_bg";
2189 rel2.to: "more_btn_bg";
2192 description { state: "landscape" 0.0;
2193 inherit: "default" 0.0;
2194 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2197 part { name: "prev_btn_bg";
2201 description { state: "default" 0.0;
2202 min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2205 rel1 { relative: 1.0 0.0; to: "toolbar"; }
2210 part { name: "elm.swallow.prev_btn";
2213 clip_to: "toolbar_clip";
2214 description { state: "default" 0.0;
2215 max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2218 rel1.to: "prev_btn_bg";
2219 rel2.to: "prev_btn_bg";
2222 description { state: "landscape" 0.0;
2223 inherit: "default" 0.0;
2224 max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2227 part { name: "toolbar_clip";
2231 description { state: "default" 0.0;
2232 rel1 { to: "toolbar"; }
2233 rel2 { to: "toolbar"; }
2238 program { name: "content_new_pushed";
2239 signal: "elm,state,new,pushed,deferred";
2241 action: STATE_SET "default" 0.0;
2243 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2244 after: "show_finished";
2246 program { name: "content_cur_pushed";
2247 signal: "elm,state,cur,pushed,deferred";
2249 action: STATE_SET "left" 0.0;
2251 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2252 after: "pushed_finished";
2254 program { name: "content_prev_popped";
2255 signal: "elm,state,prev,popped,deferred";
2257 action: STATE_SET "default" 0.0;
2260 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2261 after: "show_finished";
2263 program { name: "content_cur_popped";
2264 signal: "elm,state,cur,popped,deferred";
2266 action: STATE_SET "right" 0.0;
2268 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2269 after: "popped_finished";
2271 program { name: "cur_pushed";
2272 signal: "elm,state,cur,pushed";
2274 action: STATE_SET "default" 0.0;
2277 program { name: "new_pushed";
2278 signal: "elm,state,new,pushed";
2280 action: STATE_SET "right" 0.0;
2283 program { name: "prev_popped";
2284 signal: "elm,state,prev,popped";
2286 action: STATE_SET "left" 0.0;
2289 program { name: "cur_popped";
2290 signal: "elm,state,cur,popped";
2292 action: STATE_SET "default" 0.0;
2295 program { name: "visible";
2296 signal: "elm,state,visible";
2298 action: STATE_SET "default" 0.0;
2301 program { name: "title_show";
2302 signal: "elm,state,title,show";
2305 set_state(PART:"title_bg", "default", 0.0);
2306 set_state(PART:"title", "default", 0.0);
2309 program { name: "title_hide";
2310 signal: "elm,state,title,hide";
2313 set_state(PART:"title_bg", "hide", 0.0);
2314 set_state(PART:"title", "hide", 0.0);
2317 program { name: "toolbar_show";
2318 signal: "elm,state,toolbar,show";
2321 if (get_int(landscape) == 0)
2322 set_state(PART:"toolbar", "visible", 0.0);
2324 set_state(PART:"toolbar", "visible_landscape", 0.0);
2325 set_int(tbar_bg, get_int(tbar_bg) + 1);
2328 program { name: "toolbar_hide";
2329 signal: "elm,state,toolbar,hide";
2332 set_int(tbar_bg, get_int(tbar_bg) - 1);
2333 if (get_int(tbar_bg) <= 0)
2334 set_state(PART:"toolbar", "default", 0.0);
2337 program { name: "toolbar_open_internal";
2338 signal: "elm,state,toolbar,open,internal";
2341 set_int(tbar_close, 0);
2342 if (get_int(landscape) == 0)
2343 set_state(PART:"toolbar", "visible", 0.0);
2345 set_state(PART:"toolbar", "visible_landscape", 0.0);
2348 program { name: "toolbar_close_internal";
2349 signal: "elm,state,toolbar,close,internal";
2352 set_int(tbar_close, 1);
2353 set_state(PART:"toolbar", "default", 0.0);
2356 program { name: "toolbar_open";
2357 signal: "elm,state,toolbar,open";
2360 if (get_int(landscape) == 0)
2361 set_state(PART:"toolbar", "visible", 0.0);
2363 set_state(PART:"toolbar", "visible_landscape", 0.0);
2365 transition: LINEAR 0.2;
2366 after: "toolbar_open_internal";
2368 program { name: "toolbar_close";
2369 signal: "elm,state,toolbar,close";
2371 action: STATE_SET "default" 0.0;
2373 transition: LINEAR 0.2;
2374 after: "toolbar_close_internal";
2376 program { name: "toolbar_instant_open";
2377 signal: "elm,state,toolbar,instant_open";
2380 emit("elm,state,toolbar,open,internal", "elm");
2383 program { name: "toolbar_instant_close";
2384 signal: "elm,state,toolbar,instant_close";
2387 emit("elm,state,toolbar,close,internal", "elm");
2390 program { name: "show_finished";
2391 action: SIGNAL_EMIT "elm,action,show,finished" "";
2393 program { name: "pushed_finished";
2394 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2396 program { name: "popped_finished";
2397 action: SIGNAL_EMIT "elm,action,popped,finished" "";
2400 name: "change_to_landscape";
2401 signal: "elm,state,landscape";
2404 if (get_int(landscape) == 0) {
2405 set_state(PART:"toolbar_more_btn", "landscape", 0.0);
2406 set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
2410 get_state(PART:"toolbar", st, 30, vl);
2411 if (!strcmp(st, "visible"))
2412 set_state(PART:"toolbar", "visible_landscape", 0.0);
2414 set_int(landscape, 1);
2419 name: "change_to_portrait";
2420 signal: "elm,state,portrait";
2423 if (get_int(landscape) == 1) {
2424 set_state(PART:"toolbar_more_btn", "default", 0.0);
2425 set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
2429 get_state(PART:"toolbar", st, 30, vl);
2430 if (!strcmp(st, "visible_landscape"))
2431 set_state(PART:"toolbar", "visible", 0.0);
2433 set_int(landscape, 0);
2437 program { name: "landscape_mode";
2439 signal: "elm,state,orient,90";
2440 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2442 program { name: "landscape_mode2";
2444 signal: "elm,state,orient,270";
2445 action: SIGNAL_EMIT "elm,state,landscape" "elm";
2447 program { name: "portrait_mode";
2449 signal: "elm,state,orient,0";
2450 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2452 program { name: "portrait_mode2";
2454 signal: "elm,state,orient,180";
2455 action: SIGNAL_EMIT "elm,state,portrait" "elm";
2460 group { name: "elm/naviframe/item/basic/uglib";
2462 part { name: "base";
2465 description { state: "default" 0.0;
2466 color: 255 255 255 255;
2468 description { state: "right" 0.0;
2469 inherit: "default" 0.0;
2470 rel1.relative: 1.0 0.0;
2471 rel2.relative: 2.0 1.0;
2472 color: 255 255 255 0;
2475 part { name: "elm.swallow.content";
2480 description { state: "default" 0.0;
2482 rel1.relative: 0.0 0.0;
2484 rel2.relative: 1.0 1.0;
2490 program { name: "content_new_pushed";
2491 signal: "elm,state,new,pushed,deferred";
2493 action: STATE_SET "default" 0.0;
2495 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2496 after: "show_finished";
2498 program { name: "content_cur_pushed";
2499 signal: "elm,state,cur,pushed,deferred";
2501 action: STATE_SET "default" 0.0;
2503 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2504 after: "pushed_finished";
2506 program { name: "content_prev_popped";
2507 signal: "elm,state,prev,popped,deferred";
2509 action: STATE_SET "default" 0.0;
2511 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2512 after: "show_finished";
2514 program { name: "content_cur_popped";
2515 signal: "elm,state,cur,popped,deferred";
2517 action: STATE_SET "right" 0.0;
2519 transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2520 after: "popped_finished";
2522 program { name: "cur_pushed";
2523 signal: "elm,state,cur,pushed";
2525 action: STATE_SET "default" 0.0;
2528 program { name: "new_pushed";
2529 signal: "elm,state,new,pushed";
2531 action: STATE_SET "right" 0.0;
2534 program { name: "prev_popped";
2535 signal: "elm,state,prev,popped";
2537 action: STATE_SET "default" 0.0;
2540 program { name: "cur_popped";
2541 signal: "elm,state,cur,popped";
2543 action: STATE_SET "default" 0.0;
2546 program { name: "visible";
2547 signal: "elm,state,visible";
2549 action: STATE_SET "default" 0.0;
2552 program { name: "show_finished";
2553 action: SIGNAL_EMIT "elm,action,show,finished" "";
2555 program { name: "pushed_finished";
2556 action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2558 program { name: "popped_finished";
2559 action: SIGNAL_EMIT "elm,action,popped,finished" "";