naviframe - clip the previous page to not be visible in panes case.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / naviframe.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18
19
20 #define NAVIFRAME_VIEW_TRANS_TIME 0.3
21
22    group { name: "elm/naviframe/item/basic/default";
23       images {
24          image: "00_badge_bg.png" COMP;
25       }
26       script {
27          public tbar_bg = 0;     //Toolbar BG Show call count
28          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
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
33       }
34       parts {
35          part { name: "clipper";
36             type: RECT;
37             description { state: "default" 0.0;
38                visible: 1;
39             }
40             description { state: "left" 0.0;
41                visible: 0;
42             }
43          }
44          part { name: "base";
45             type: RECT;
46             mouse_events:  0;
47             description { state: "default" 0.0;
48                visible: 0;
49             }
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;
54             }
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;
59             }
60          }
61          part { name: "title_bg";
62             type: RECT;
63             scale: 1;
64             description { state: "default" 0.0;
65                min: 1 NAVIFRAME_TITLE_H_INC;
66                align: 0.0 0.0;
67                fixed: 0 1;
68                rel1 { relative: 0.0 0.0; to: "base"; }
69                rel2 { relative: 1.0 0.0; to: "base"; }
70                color: NAVIFRAME_TITLE_BG_COLOR_INC;
71             }
72             description { state: "landscape" 0.0;
73                inherit: "default" 0.0;
74                min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
75             }
76             description { state: "hide" 0.0;
77                inherit: "default" 0.0;
78                min: 0 0;
79                max: 0 0;
80                fixed: 1 1;
81             }
82          }
83          part { name: "title_clip";
84             type: RECT;
85             mouse_events: 0;
86             clip_to: "clipper";
87             description { state: "default" 0.0;
88                rel1 { to_y: "title_bg"; }
89                rel2 { to_y: "title_bg"; }
90             }
91          }
92          part { name: "top_padding";
93             type: RECT;
94             mouse_events: 0;
95             scale: 1;
96             description {
97                state: "default" 0.0;
98                min: NAVIFRAME_TITLE_TOP_PADDING_INC;
99                fixed: 0 1;
100                align: 0.0 0.0;
101                rel1 { relative: 0.0 0.0; to: "title_bg"; }
102                rel2 { relative: 1.0 0.0; to: "title_bg"; }
103                visible: 0;
104             }
105             description {
106                state: "landscape" 0.0;
107                inherit: "default" 0.0;
108                min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
109             }
110          }
111          part { name: "top_padding2";
112             type: RECT;
113             mouse_events: 0;
114             scale: 1;
115             description {
116                state: "default" 0.0;
117                min: NAVIFRAME_TITLE_TOP_PADDING2_INC;
118                fixed: 0 1;
119                align: 0.0 0.0;
120                rel1 { relative: 0.0 0.0; to: "title_bg"; }
121                rel2 { relative: 1.0 0.0; to: "title_bg"; }
122                visible: 0;
123             }
124             description {
125                state: "landscape" 0.0;
126                inherit: "default" 0.0;
127                min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING2_INC;
128             }
129          }
130          part { name: "right_padding";
131             type: RECT;
132             mouse_events: 0;
133             scale: 1;
134             description {
135                state: "default" 0.0;
136                min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
137                fixed: 1 0;
138                align: 1.0 0.0;
139                rel1 { relative: 1.0 0.0; to: "title_bg"; }
140                rel2 { relative: 1.0 1.0; to: "title_bg"; }
141                visible: 0;
142             }
143          }
144          part { name: "padding_center_text1";
145             type: RECT;
146             scale: 1;
147             mouse_events: 0;
148             description { state: "default" 0.0;
149                min: NAVIFRAME_PADDING_INC;
150                fixed: 1 0;
151                align: 0.0 0.0;
152                rel1 { relative: 0.0 0.0; to: "title_bg"; }
153                rel2 { relative: 0.0 1.0; to: "title_bg"; }
154                visible: 0;
155             }
156             description { state: "icon" 0.0;
157                inherit: "default" 0.0;
158                min: NAVIFRAME_ICON_PADDING_INC;
159             }
160          }
161          part { name: "elm.swallow.content";
162             type: SWALLOW;
163             scale: 1;
164             repeat_events: 0;
165             clip_to: "content_clip";
166             description { state: "default" 0.0;
167                align: 0.0 0.0;
168                rel1.relative: 0.0 1.0;
169                rel1.to_x: "base";
170                rel1.to_y: "title_bg";
171                rel2.relative: 1.0 0.0;
172                rel2.to_x: "base";
173                rel2.to_y: "toolbar_bg";
174             }
175          }
176          part { name: "content_clip";
177             type: RECT;
178             mouse_events: 0;
179             clip_to: "clipper";
180             description { state: "default" 0.0;
181                rel1.to_y: "elm.swallow.content";
182                rel2.to_y: "elm.swallow.content";
183             }
184          }
185          part { name: "padding_center_text2";
186             type: RECT;
187             mouse_events: 0;
188             scale: 1;
189             description { state: "default" 0.0;
190                min: NAVIFRAME_PADDING2_INC;
191                fixed: 1 0;
192                align: 1.0 0.5;
193                rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
194                rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
195                visible: 0;
196             }
197          }
198          part { name: "padding_bottom_text";
199             type: RECT;
200             mouse_events: 0;
201             scale: 1;
202             description { state: "default" 0.0;
203                min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
204                fixed: 0 1;
205                align: 0.0 1.0;
206                rel1 { relative: 0.0 1.0; to: "title_bg"; }
207                rel2 { relative: 1.0 1.0; to: "title_bg"; }
208                visible: 0;
209             }
210             description { state: "landscape" 0.0;
211                inherit: "default" 0.0;
212                min: NAVIFRAME_LANDSCAPE_BOTTOM_TEXT_PADDING_INC;
213             }
214          }
215          part { name: "badge_padding";
216             type: RECT;
217             mouse_events: 0;
218             scale: 1;
219             description { state: "default" 0.0;
220                min: 0 0;
221                fixed: 1 0;
222                align: 1.0 0.0;
223                rel1 { relative: 0.0 0.0; to: "padding_center_text2"; }
224                rel2 { relative: 0.0 1.0; to: "padding_center_text2"; }
225                visible: 0;
226             }
227             description { state: "visible" 0.0;
228                inherit: "default" 0.0;
229                min: NAVIFRAME_BADGE_PADDING_INC;
230             }
231          }
232          part { name: "title_text_bg";
233             type: RECT;
234             repeat_events: 1;
235             description { state: "default" 0.0;
236                visible: 0;
237                fixed: 1 1;
238                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
239                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
240             }
241             description { state: "subtitle_is_set" 0.0;
242                inherit: "default" 0.0;
243                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding2"; }
244                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "subtitle_text_bg"; }
245             }
246          }
247          part { name: "elm.text.title";
248             type: TEXT;
249             effect: FAR_SHADOW BOTTOM;
250             scale: 1;
251             clip_to: "title_clip";
252             description { state: "default" 0.0;
253                text { font: "Tizen:style=Bold";
254                   size: NAVIFRAME_TITLE_FONT_SIZE_INC;
255                   size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_TITLE_FONT_SIZE_INC;
256                   fit: 1 0;
257                   min: 0 0;
258                   max: 1 0;
259                   align: 0.0 0.5;
260                   text_class: "tizen";
261                }
262                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
263                color3: 255 255 255 255;
264                fixed: 1 1;
265                align: 0.0 0.5;
266                rel1 { to: "title_text_bg"; }
267                rel2 { relative: 0.0 1.0; to_x: "badge_padding"; to_y: "title_text_bg"; }
268             }
269             description { state: "subtitle_is_set" 0.0;
270                text { font: "Tizen:style=Bold";
271                   size: NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC;
272                   min: 0 0;
273                   max: 1 0;
274                   align: 0.0 0.5;
275                   text_class: "tizen";
276                }
277                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
278                color3: 255 255 255 255;
279                fixed: 1 1;
280                align: 0.0 0.5;
281                rel1 { to: "title_text_bg"; }
282                rel2 { relative: 0.0 1.0; to_x: "badge_padding"; to_y: "title_text_bg"; }
283             }
284             description { state: "default_landscape" 0.0;
285                inherit: "default" 0.0;
286                text { font: "Tizen:style=Bold";
287                   size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
288                   size_range: NAVIFRAME_TITLE_FONT_MIN_SIZE_INC NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
289                   fit: 1 0;
290                   min: 0 0;
291                   max: 1 0;
292                   align: 0.0 0.5;
293                   text_class: "tizen";
294                }
295             }
296             description { state: "subtitle_is_set_landscape" 0.0;
297                inherit: "subtitle_is_set" 0.0;
298                text { font: "Tizen:style=Bold";
299                   size: NAVIFRAME_LANDSCAPE_TITLE_SMALL_FONT_SIZE_INC;
300                   min: 0 0;
301                   max: 1 0;
302                   align: 0.0 0.5;
303                   text_class: "tizen";
304                }
305             }
306          }
307          part { name: "subtitle_text_bg";
308             type: RECT;
309             scale: 1;
310             repeat_events: 1;
311             description { state: "default" 0.0;
312                visible: 0;
313                min: 0 0;
314                max: 0 0;
315                fixed: 1 1;
316                align: 0.0 1.0;
317                rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "padding_bottom_text"; }
318                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
319             }
320             description { state: "visible" 0.0;
321                inherit: "default" 0.0;
322                min: 0 NAVIFRAME_SUBTITLE_HEIGHT_INC;
323                max: -1 NAVIFRAME_SUBTITLE_HEIGHT_INC;
324             }
325             description { state: "visible_landscape" 0.0;
326                inherit: "default" 0.0;
327                min: 0 NAVIFRAME_LANDSCAPE_SUBTITLE_HEIGHT_INC;
328                max: -1 NAVIFRAME_LANDSCAPE_SUBTITLE_HEIGHT_INC;
329             }
330          }
331          part { name: "elm.text.subtitle";
332             type: TEXT;
333             scale: 1;
334             clip_to: "title_clip";
335             description { state: "default" 0.0;
336                text { font: "Tizen:style=Bold";
337                   size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC;
338                   min: 0 0;
339                   max: 1 0;
340                   align: 0.0 0.5;
341                   text_class: "tizen";
342                }
343                color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC;
344                fixed: 1 1;
345                align: 0.0 0.5;
346                rel1.to: "subtitle_text_bg";
347                rel2.to: "subtitle_text_bg";
348             }
349             description { state: "landscape" 0.0;
350                inherit: "default" 0.0;
351                text { font: "Tizen:style=Bold";
352                   size: NAVIFRAME_LANDSCAPE_SUBTITLE_FONT_SIZE_INC;
353                   min: 0 0;
354                   max: 1 0;
355                   align: 0.0 0.5;
356                   text_class: "tizen";
357                }
358             }
359          }
360          part { name: "padding_before_text";
361             type: RECT;
362             scale: 1;
363             mouse_events: 0;
364             description { state: "default" 0.0;
365                align: 1.0 0.5;
366                rel1 { relative: 0.0 0.0; to: "elm.text.title"; }
367                rel2 { relative: 0.0 1.0; to: "elm.text.title"; }
368                fixed: 1 0;
369                min: NAVIFRAME_PADDING_INC;
370                visible: 0;
371             }
372          }
373          part { name: "badge_top_padding";
374             type: RECT;
375             scale: 1;
376             description { state: "default" 0.0;
377                visible: 0;
378                min: NAVIFRAME_BADGE_TOP_PADDING_INC;
379                fixed: 0 1;
380                rel1 { relative: 0.0 0.0; to: "title_bg"; }
381                rel2 { relative: 1.0 0.0; to: "title_bg"; }
382                align: 0.0 0.0;
383             }
384          }
385          part { name: "badge_left_padding";
386             type: RECT;
387             scale: 1;
388             description { state: "default" 0.0;
389                visible: 0;
390                min: 0 0;
391                fixed: 1 1;
392                rel1 { relative: 1.0 1.0; to_x: "elm.text.title"; to_y: "badge_top_padding"; }
393                rel2 { relative: 1.0 0.5; to_x: "elm.text.title"; to_y: "title_bg"; }
394                align: 0.0 0.5;
395             }
396             description { state: "visible" 0.0;
397                inherit: "default" 0.0;
398                min: NAVIFRAME_PADDING_BADGE_INC;
399             }
400             description { state: "title_slide_is_set" 0.0;
401                inherit: "visible" 0.0;
402                rel1 { relative: 1.0 1.0; to_x: "elm.swallow.title"; to_y: "badge_top_padding"; }
403                rel2 { relative: 1.0 0.5; to_x: "elm.swallow.title"; to_y: "title_bg"; }
404             }
405          }
406          part { name: "left.padding.text";
407             type: RECT;
408             scale: 1;
409             description {
410                state: "default" 0.0;
411                visible: 0;
412                fixed: 1 1;
413                min: 0 0;
414                rel1 {
415                   to: "badge_left_padding";
416                   relative: 1.0 0.0;
417                }
418                rel2 {
419                   to: "badge_left_padding";
420                   relative: 1.0 1.0;
421                }
422                align: 0.0 0.0;
423             }
424             description {
425                state: "visible" 0.0;
426                inherit: "default" 0.0;
427                min: 23 54;
428             }
429          }
430          part { name: "right.padding.text";
431             type: RECT;
432             scale: 1;
433             description {
434                state: "default" 0.0;
435                visible: 0;
436                fixed: 1 1;
437                min: 0 0;
438                rel1 {
439                   to: "title_badge";
440                   relative: 1.0 0.0;
441                }
442                rel2 {
443                   to: "title_badge";
444                   relative: 1.0 1.0;
445                }
446                align: 0.0 0.0;
447             }
448             description {
449                state: "visible" 0.0;
450                inherit: "default" 0.0;
451                min: 18 54;
452             }
453          }
454          part { name: "badge_bg";
455             type: IMAGE;
456             scale: 1;
457             clip_to: "title_clip";
458             description { state: "default" 0.0;
459                visible: 0;
460                min: 0 0;
461                fixed: 1 1;
462                rel1 {
463                   to: "left.padding.text";
464                   relative: 0.0 0.0;
465                }
466                rel2 {
467                   to: "right.padding.text";
468                   relative: 1.0 1.0;
469                }
470                image {
471                   normal: "00_badge_bg.png";
472                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
473                   border_scale: 1;
474                }
475             }
476             description { state: "visible" 0.0;
477                inherit: "default" 0.0;
478                visible: 1;
479                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
480             }
481          }
482          part { name: "title_badge";
483             type: TEXT;
484             mouse_events: 0;
485             scale: 1;
486             clip_to: "title_clip";
487             description { state: "default" 0.0;
488                visible: 0;
489                max: NAVIFRAME_BADGE_TEXT_W_INC -1;
490                fixed: 1 0;
491                rel1 { relative: 1.0 0.0; to: "left.padding.text"; }
492                rel2 { relative: 1.0 1.0; to_y: "left.padding.text"; to_x: "badge_padding"; }
493                align: 0.0 0.5;
494                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
495                text {
496                   font: "Tizen:style=Bold";
497                   size: NAVIFRAME_BADGE_TEXT_H_INC;
498                   min: 0 0;
499                   max: 1 0;
500                   text_class: "tizen";
501                }
502             }
503             description { state: "visible" 0.0;
504                inherit: "default" 0.0;
505                visible: 1;
506             }
507          }
508          part { name: "click_event_area";
509              type: RECT;
510              ignore_flags: ON_HOLD;
511              description { state: "default" 0.0;
512                 rel1 { to: "title_bg"; }
513                 rel2 { to: "title_bg"; }
514                 color: 0 0 0 0;
515              }
516          }
517          part { name: "elm.swallow.title";
518             type: SWALLOW;
519             scale: 1;
520             repeat_events: 1;
521             clip_to: "title_clip";
522             description { state: "default" 0.0;
523                fixed: 1 1;
524                rel1 { to: "title_text_bg"; }
525                rel2 { to: "title_text_bg"; }
526             }
527          }
528          part { name: "elm.swallow.subtitle";
529             type: SWALLOW;
530             scale: 1;
531             repeat_events: 1;
532             clip_to: "title_clip";
533             description { state: "default" 0.0;
534                fixed: 1 1;
535                rel1 { to: "subtitle_text_bg"; }
536                rel2 { to: "subtitle_text_bg"; }
537             }
538          }
539          part { name: "access.title";
540             type: RECT;
541             repeat_events: 1;
542             description { state: "default" 0.0;
543                fixed: 1 1;
544                rel1.to: "title_bg";
545                rel2.to: "title_bg";
546                color: 0 0 0 0;
547             }
548          }
549          part { name: "title_left_btn";
550             type: SWALLOW;
551             scale: 1;
552             clip_to: "title_clip";
553             description { state: "default" 0.0;
554                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
555                fixed: 1 1;
556                align: 1.0 0.5;
557                rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
558                rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
559             }
560             description { state: "landscape" 0.0;
561                inherit: "default" 0.0;
562                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
563             }
564          }
565          part { name: "elm.swallow.icon";
566             type: SWALLOW;
567             scale: 1;
568             clip_to: "title_clip";
569             description { state: "default" 0.0;
570                max: NAVIFRAME_ICON_SIZE_INC;
571                fixed: 1 1;
572                rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
573                rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
574                aspect: 1.0 1.0;
575                aspect_preference: VERTICAL;
576                align: 1.0 0.5;
577             }
578          }
579          part { name: "title_right_btn";
580             type: SWALLOW;
581             scale: 1;
582             clip_to: "title_clip";
583             description { state: "default" 0.0;
584                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
585                align: 1.0 0.5;
586                fixed: 1 1;
587                rel1 { relative: 0.0 0.0; to: "right_padding"; }
588                rel2 { relative: 0.0 1.0; to: "right_padding"; }
589             }
590             description { state: "landscape" 0.0;
591                inherit: "default" 0.0;
592                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
593             }
594          }
595          part { name: "title_more_btn";
596             type: SWALLOW;
597             scale: 1;
598             clip_to: "title_clip";
599             description { state: "default" 0.0;
600                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
601                fixed: 1 1;
602                align: 1.0 0.5;
603                rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
604                rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
605             }
606             description { state: "landscape" 0.0;
607                inherit: "default" 0.0;
608                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
609             }
610          }
611          part { name: "toolbar_bg";
612             type: RECT;
613             scale: 1;
614             description { state: "default" 0.0;
615                min: 0 0;
616                max: 999999 0;
617                fixed: 0 1;
618                align: 0.0 1.0;
619                visible: 0;
620                rel1 { to: "base"; }
621                rel2 { to: "base"; }
622                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
623             }
624             description { state: "visible" 0.0;
625                inherit: "default" 0.0;
626                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
627                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
628                visible: 1;
629             }
630             description { state: "visible_landscape" 0.0;
631                inherit: "default" 0.0;
632                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
633                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
634                visible: 1;
635             }
636          }
637          part { name: "more_btn_bg";
638             type: RECT;
639             scale: 1;
640             mouse_events: 0;
641             description { state: "default" 0.0;
642                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
643                fixed: 1 0;
644                align: 0.0 0.0;
645                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
646                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
647                visible: 0;
648             }
649          }
650          part { name: "toolbar_more_btn";
651             type: SWALLOW;
652             scale: 1;
653             clip_to: "toolbar_clip";
654             description { state: "default" 0.0;
655                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
656                fixed: 1 1;
657                rel1.to: "more_btn_bg";
658                rel2.to: "more_btn_bg";
659             }
660             description { state: "landscape" 0.0;
661                inherit: "default" 0.0;
662                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
663             }
664          }
665          part { name: "prev_btn_bg";
666             type: RECT;
667             scale: 1;
668             mouse_events: 0;
669             description { state: "default" 0.0;
670                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
671                fixed: 1 0;
672                align: 1.0 0.0;
673                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
674                rel2.to: "toolbar_bg";
675                visible: 0;
676             }
677          }
678          part { name: "elm.swallow.prev_btn";
679             type: SWALLOW;
680             scale: 1;
681             clip_to: "toolbar_clip";
682             description { state: "default" 0.0;
683                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
684                fixed: 1 1;
685                align: 0.5 0.5;
686                rel1.to: "prev_btn_bg";
687                rel2.to: "prev_btn_bg";
688             }
689             description { state: "landscape" 0.0;
690                inherit: "default" 0.0;
691                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
692             }
693          }
694          part { name: "toolbar_btns_area";
695             type: RECT;
696             mouse_events: 0;
697             description { state: "default" 0.0;
698                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
699                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
700                visible: 0;
701             }
702          }
703          part { name: "toolbar_clip";
704             type: RECT;
705             mouse_events: 0;
706             clip_to: "clipper";
707             description { state: "default" 0.0;
708                rel1 { to_y: "toolbar_bg"; }
709                rel2 { to_y: "toolbar_bg"; }
710             }
711          }
712          part { name: "toolbar_button1";
713             type: SWALLOW;
714             scale: 1;
715             clip_to: "toolbar_clip";
716             description { state: "default" 0.0;
717                fixed: 1 1;
718                align: 0.5 0.5;
719                rel1.to: "toolbar_btns_area";
720                rel2.to: "toolbar_btns_area";
721             }
722             description { state: "buttons_set" 0.0;
723                inherit: "default" 0.0;
724                align: 1.0 0.5;
725                rel2 {
726                   relative: 0.0 1.0;
727                   to: "toolbar_button_padding";
728                }
729             }
730          }
731          part { name: "toolbar_button_padding";
732             type: RECT;
733             scale : 1;
734             description { state: "default" 0.0;
735                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
736                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
737                fixed : 1 0;
738                visible: 0;
739                align: 0.5 0.5;
740                rel1.to: "toolbar_btns_area";
741                rel2.to: "toolbar_btns_area";
742             }
743             description { state: "landscape" 0.0;
744                inherit: "default" 0.0;
745                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
746                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
747             }
748          }
749          part { name: "toolbar_button2";
750             type: SWALLOW;
751             scale: 1;
752             clip_to: "toolbar_clip";
753             description { state: "default" 0.0;
754                fixed: 1 1;
755                align: 0.5 0.5;
756                rel1.to: "toolbar_btns_area";
757                rel2.to: "toolbar_btns_area";
758             }
759             description { state: "buttons_set" 0.0;
760                inherit: "default" 0.0;
761                align: 0.0 0.5;
762                rel1 {
763                   relative: 1.0 0.0;
764                   to: "toolbar_button_padding";
765                }
766             }
767          }
768       }
769       programs {
770          program { name: "content_new_pushed";
771             signal: "elm,state,new,pushed,deferred";
772             source: "elm";
773             action: STATE_SET "default" 0.0;
774             target: "base";
775             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
776             after: "show_finished";
777          }
778          program { name: "content_cur_pushed";
779             signal: "elm,state,cur,pushed,deferred";
780             source: "elm";
781             action: STATE_SET "left" 0.0;
782             target: "base";
783             target: "clipper";
784             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
785             after: "pushed_finished";
786          }
787          program { name: "content_prev_popped";
788             signal: "elm,state,prev,popped,deferred";
789             source: "elm";
790             action: STATE_SET "default" 0.0;
791             target: "base";
792             target: "clipper";
793             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
794             after: "show_finished";
795          }
796          program { name: "content_cur_popped";
797             signal: "elm,state,cur,popped,deferred";
798             source: "elm";
799             action: STATE_SET "right" 0.0;
800             target: "base";
801             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
802             after: "popped_finished";
803          }
804          program { name: "cur_pushed";
805             signal: "elm,state,cur,pushed";
806             source: "elm";
807             action: STATE_SET "default" 0.0;
808             target: "base";
809          }
810          program { name: "new_pushed";
811             signal: "elm,state,new,pushed";
812             source: "elm";
813             action: STATE_SET "right" 0.0;
814             target: "base";
815          }
816          program { name: "prev_popped";
817             signal: "elm,state,prev,popped";
818             source: "elm";
819             action: STATE_SET "left" 0.0;
820             target: "base";
821          }
822          program { name: "cur_popped";
823             signal: "elm,state,cur,popped";
824             source: "elm";
825             action: STATE_SET "default" 0.0;
826             target: "base";
827          }
828          program { name: "visible";
829             signal: "elm,state,visible";
830             source: "elm";
831             action: STATE_SET "default" 0.0;
832             target: "base";
833          }
834          program { name: "title_show";
835             signal: "elm,state,title,show";
836             source: "elm";
837             script {
838                if (get_int(landscape) == 0)
839                  set_state(PART:"title_bg", "default", 0.0);
840                else
841                  set_state(PART:"title_bg", "landscape", 0.0);
842             }
843          }
844          program { name: "title_hide";
845             signal: "elm,state,title,hide";
846             source: "elm";
847             script {
848                set_state(PART:"title_bg", "hide", 0.0);
849             }
850          }
851          program { name: "subtitle_show";
852             signal: "elm,state,subtitle,show";
853             source: "elm";
854             script {
855                set_state(PART:"title_text_bg", "subtitle_is_set", 0.0);
856                if (get_int(landscape) == 0) {
857                   set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
858                   set_state(PART:"subtitle_text_bg", "visible", 0.0);
859                }
860                else {
861                   set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
862                   set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
863                }
864             }
865          }
866          program { name: "subtitle_hide";
867             signal: "elm,state,subtitle,hide";
868             source: "elm";
869             script {
870                set_state(PART:"title_text_bg", "default", 0.0);
871                set_state(PART:"subtitle_text_bg", "default", 0.0);
872                if (get_int(landscape) == 0)
873                  set_state(PART:"elm.text.title", "default", 0.0);
874                else
875                  set_state(PART:"elm.text.title", "default_landscape", 0.0);
876             }
877          }
878          program { name: "icon_show";
879             signal: "elm,state,icon,show";
880             source: "elm";
881             action: STATE_SET "icon" 0.0;
882             target: "padding_center_text1";
883          }
884          program { name: "icon_hide";
885             signal: "elm,state,icon,hide";
886             source: "elm";
887             action: STATE_SET "default" 0.0;
888             target: "padding_center_text1";
889          }
890          program { name: "prev_btn_show";
891             signal: "elm,state,prev_btn,show";
892             source: "elm";
893             script {
894                emit("elm,state,toolbar_bg,show", "elm");
895             }
896          }
897          program { name: "prev_btn_hide";
898             signal: "elm,state,prev_btn,hide";
899             source: "elm";
900             script {
901                emit("elm,state,toolbar_bg,hide", "elm");
902             }
903          }
904          program { name: "more_btn_show";
905             signal: "elm,state,toolbar_more_btn,show";
906             source: "elm";
907             script {
908                emit("elm,state,toolbar_bg,show", "elm");
909             }
910          }
911          program { name: "more_btn_hide";
912             signal: "elm,state,toolbar_more_btn,hide";
913             source: "elm";
914             script {
915                emit("elm,state,toolbar_bg,hide", "elm");
916             }
917          }
918          program { name: "toolbar_button1_show";
919             signal: "elm,state,toolbar_button1,show";
920             source: "elm";
921             script {
922                emit("elm,state,toolbar_bg,show", "elm");
923                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
924                if (get_int(toolbar_buttons_visible) >= 2)
925                  {
926                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
927                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
928                  }
929             }
930          }
931          program { name: "toolbar_button1_hide";
932             signal: "elm,state,toolbar_button1,hide";
933             source: "elm";
934             script {
935                emit("elm,state,toolbar_bg,hide", "elm");
936                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
937                set_state(PART:"toolbar_button1", "default", 0.0);
938                set_state(PART:"toolbar_button2", "default", 0.0);
939             }
940          }
941          program { name: "toolbar_button2_show";
942             signal: "elm,state,toolbar_button2,show";
943             source: "elm";
944             script {
945                emit("elm,state,toolbar_bg,show", "elm");
946                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
947                if (get_int(toolbar_buttons_visible) >= 2)
948                  {
949                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
950                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
951                  }
952             }
953          }
954          program { name: "toolbar_button2_hide";
955             signal: "elm,state,toolbar_button2,hide";
956             source: "elm";
957             script {
958                emit("elm,state,toolbar_bg,hide", "elm");
959                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
960                set_state(PART:"toolbar_button1", "default", 0.0);
961                set_state(PART:"toolbar_button2", "default", 0.0);
962             }
963          }
964          program { name: "toolbar_bg_show";
965             signal: "elm,state,toolbar_bg,show";
966             source: "elm";
967             script {
968                if (get_int(landscape) == 0)
969                  set_state(PART:"toolbar_bg", "visible", 0.0);
970                else
971                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
972                set_int(tbar_bg, get_int(tbar_bg) + 1);
973             }
974          }
975          program { name: "toolbar_bg_hide";
976             signal: "elm,state,toolbar_bg,hide";
977             source: "elm";
978             script {
979                set_int(tbar_bg, get_int(tbar_bg) - 1);
980                if (get_int(tbar_bg) <= 0)
981                  set_state(PART:"toolbar_bg", "default", 0.0);
982             }
983          }
984          program { name: "toolbar_open_internal";
985             signal: "elm,state,toolbar,open,internal";
986             source: "elm";
987             script {
988                set_int(tbar_close, 0);
989                if (get_int(landscape) == 0)
990                  set_state(PART:"toolbar_bg", "visible", 0.0);
991                else
992                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
993             }
994          }
995          program { name: "toolbar_close_internal";
996             signal: "elm,state,toolbar,close,internal";
997             source: "elm";
998             script {
999                set_int(tbar_close, 1);
1000                set_state(PART:"toolbar_bg", "default", 0.0);
1001             }
1002          }
1003          program { name: "toolbar_open";
1004             signal: "elm,state,toolbar,open";
1005             source: "";
1006             script {
1007                if (get_int(landscape) == 0)
1008                  set_state(PART:"toolbar_bg", "visible", 0.0);
1009                else
1010                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1011             }
1012             transition: LINEAR 0.2;
1013             after: "toolbar_open_internal";
1014          }
1015          program { name: "toolbar_close";
1016             signal: "elm,state,toolbar,close";
1017             source: "";
1018             action: STATE_SET "default" 0.0;
1019             target: "toolbar_bg";
1020             transition: LINEAR 0.2;
1021             after: "toolbar_close_internal";
1022          }
1023          program { name: "toolbar_instant_open";
1024             signal: "elm,state,toolbar,instant_open";
1025             source: "";
1026             script {
1027                emit("elm,state,toolbar,open,internal", "elm");
1028             }
1029          }
1030          program { name: "toolbar_instant_close";
1031             signal: "elm,state,toolbar,instant_close";
1032             source: "";
1033             script {
1034                emit("elm,state,toolbar,close,internal", "elm");
1035             }
1036          }
1037          program { name: "show_finished";
1038             action: SIGNAL_EMIT "elm,action,show,finished" "";
1039          }
1040          program { name: "pushed_finished";
1041             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1042          }
1043          program { name: "popped_finished";
1044             action: SIGNAL_EMIT "elm,action,popped,finished" "";
1045          }
1046          program {
1047             name: "title_clicked";
1048             signal: "mouse,clicked,1";
1049             source: "click_event_area";
1050             action: SIGNAL_EMIT "elm,action,title,clicked" "";
1051          }
1052          program {
1053             name: "title_badge_show";
1054             signal: "elm,state,title_badge,show";
1055             source: "elm";
1056             script {
1057                if (get_int(title_slide_visible) == 0)
1058                   set_state(PART:"badge_left_padding", "visible", 0.0);
1059                else
1060                   set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1061                set_state(PART:"badge_padding", "visible", 0.0);
1062                set_state(PART:"left.padding.text", "visible", 0.0);
1063                set_state(PART:"right.padding.text", "visible", 0.0);
1064                set_state(PART:"badge_bg", "visible", 0.0);
1065                set_state(PART:"title_badge", "visible", 0.0);
1066                set_int(title_badge_visible, 1);
1067             }
1068          }
1069          program {
1070             name: "title_badge_hide";
1071             signal: "elm,state,title_badge,hide";
1072             source: "elm";
1073             script {
1074                set_state(PART:"badge_left_padding", "default", 0.0);
1075                set_state(PART:"badge_padding", "default", 0.0);
1076                set_state(PART:"left.padding.text", "default", 0.0);
1077                set_state(PART:"right.padding.text", "default", 0.0);
1078                set_state(PART:"badge_bg", "default", 0.0);
1079                set_state(PART:"title_badge", "default", 0.0);
1080                set_int(title_badge_visible, 0);
1081             }
1082          }
1083          program {
1084             name: "title_slide_show";
1085             signal: "elm,state,elm.swallow.title,show";
1086             source: "elm";
1087             script {
1088                if (get_int(title_badge_visible) == 1)
1089                   set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1090                set_int(title_slide_visible, 1);
1091             }
1092          }
1093          program {
1094             name: "title_slide_hide";
1095             signal: "elm,state,elm.swallow.title,hide";
1096             source: "elm";
1097             script {
1098                if (get_int(title_badge_visible) == 1)
1099                   set_state(PART:"badge_left_padding", "visible", 0.0);
1100                set_int(title_slide_visible, 0);
1101             }
1102          }
1103          program {
1104             name: "subtitle_slide_show";
1105             signal: "elm,state,elm.swallow.subtitle,show";
1106             source: "elm";
1107             script {
1108                set_state(PART:"title_text_bg", "subtitle_is_set", 0.0);
1109                if (get_int(landscape) == 0)
1110                  set_state(PART:"subtitle_text_bg", "visible", 0.0);
1111                else
1112                  set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1113             }
1114          }
1115          program {
1116             name: "subtitle_slide_hide";
1117             signal: "elm,state,elm.swallow.subtitle,hide";
1118             source: "elm";
1119             script {
1120                set_state(PART:"title_text_bg", "default", 0.0);
1121                set_state(PART:"subtitle_text_bg", "default", 0.0);
1122             }
1123          }
1124          program {
1125             name: "change_to_landscape";
1126             signal: "elm,state,landscape";
1127             source: "elm";
1128             script {
1129                if (get_int(landscape) == 0) {
1130                   set_state(PART:"top_padding", "landscape", 0.0);
1131                   set_state(PART:"top_padding2", "landscape", 0.0);
1132                   set_state(PART:"padding_bottom_text", "landscape", 0.0);
1133                   set_state(PART:"elm.text.subtitle", "landscape", 0.0);
1134                   set_state(PART:"title_left_btn", "landscape", 0.0);
1135                   set_state(PART:"title_right_btn", "landscape", 0.0);
1136                   set_state(PART:"title_more_btn", "landscape", 0.0);
1137                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1138                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1139                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
1140
1141                   new st[31];
1142                   new Float:vl;
1143                   get_state(PART:"title_bg", st, 30, vl);
1144                   if (!strcmp(st, "default"))
1145                     set_state(PART:"title_bg", "landscape", 0.0);
1146
1147                   get_state(PART:"elm.text.title", st, 30, vl);
1148                   if (!strcmp(st, "default"))
1149                     set_state(PART:"elm.text.title", "default_landscape", 0.0);
1150                   else
1151                     set_state(PART:"elm.text.title", "subtitle_is_set_landscape", 0.0);
1152
1153                   get_state(PART:"subtitle_text_bg", st, 30, vl);
1154                   if (!strcmp(st, "visible"))
1155                     set_state(PART:"subtitle_text_bg", "visible_landscape", 0.0);
1156
1157                   get_state(PART:"toolbar_bg", st, 30, vl);
1158                   if (!strcmp(st, "visible"))
1159                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1160
1161                   set_int(landscape, 1);
1162                }
1163             }
1164          }
1165          program {
1166             name: "change_to_portrait";
1167             signal: "elm,state,portrait";
1168             source: "elm";
1169             script {
1170                if (get_int(landscape) == 1) {
1171                   set_state(PART:"top_padding", "default", 0.0);
1172                   set_state(PART:"top_padding2", "default", 0.0);
1173                   set_state(PART:"padding_bottom_text", "default", 0.0);
1174                   set_state(PART:"elm.text.subtitle", "default", 0.0);
1175                   set_state(PART:"title_left_btn", "default", 0.0);
1176                   set_state(PART:"title_right_btn", "default", 0.0);
1177                   set_state(PART:"title_more_btn", "default", 0.0);
1178                   set_state(PART:"toolbar_more_btn", "default", 0.0);
1179                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1180                   set_state(PART:"toolbar_button_padding", "default", 0.0);
1181
1182                   new st[31];
1183                   new Float:vl;
1184                   get_state(PART:"title_bg", st, 30, vl);
1185                   if (!strcmp(st, "landscape"))
1186                     set_state(PART:"title_bg", "default", 0.0);
1187
1188                   get_state(PART:"elm.text.title", st, 30, vl);
1189                   if (!strcmp(st, "default_landscape"))
1190                     set_state(PART:"elm.text.title", "default", 0.0);
1191                   else
1192                     set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
1193
1194                   get_state(PART:"subtitle_text_bg", st, 30, vl);
1195                   if (!strcmp(st, "visible_landscape"))
1196                     set_state(PART:"subtitle_text_bg", "visible", 0.0);
1197
1198                   get_state(PART:"toolbar_bg", st, 30, vl);
1199                   if (!strcmp(st, "visible_landscape"))
1200                     set_state(PART:"toolbar_bg", "visible", 0.0);
1201
1202                   set_int(landscape, 0);
1203                }
1204             }
1205          }
1206          program { name: "landscape_mode";
1207             source: "elm";
1208             signal: "elm,state,orient,90";
1209             action: SIGNAL_EMIT "elm,state,landscape" "elm";
1210          }
1211          program { name: "landscape_mode2";
1212             source: "elm";
1213             signal: "elm,state,orient,270";
1214             action: SIGNAL_EMIT "elm,state,landscape" "elm";
1215          }
1216          program { name: "portrait_mode";
1217             source: "elm";
1218             signal: "elm,state,orient,0";
1219             action: SIGNAL_EMIT "elm,state,portrait" "elm";
1220          }
1221          program { name: "portrait_mode2";
1222             source: "elm";
1223             signal: "elm,state,orient,180";
1224             action: SIGNAL_EMIT "elm,state,portrait" "elm";
1225          }
1226       }
1227    }
1228
1229    group { name: "elm/naviframe/item/tabbar/default";
1230       script {
1231          public tbar_bg = 0;     //Controlbar BG Show call count
1232          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
1233          public tbar_close = 0; //Toolbar lastest Open/Close status
1234          public landscape = 0; //Landscape mode status
1235       }
1236       parts {
1237          part { name: "clipper";
1238             type: RECT;
1239             description { state: "default" 0.0;
1240                visible: 1;
1241             }
1242             description { state: "left" 0.0;
1243                visible: 0;
1244             }
1245          }
1246          part { name: "base";
1247             type: RECT;
1248             mouse_events:  0;
1249             description { state: "default" 0.0;
1250                visible: 0;
1251             }
1252             description { state: "left" 0.0;
1253                inherit: "default" 0.0;
1254                rel1.relative: -1.0 0.0;
1255                rel2.relative: 0.0 1.0;
1256             }
1257             description { state: "right" 0.0;
1258                inherit: "default" 0.0;
1259                rel1.relative: 1.0 0.0;
1260                rel2.relative: 2.0 1.0;
1261             }
1262          }
1263          part { name: "title_bg";
1264             type: RECT;
1265             scale: 1;
1266             description { state: "default" 0.0;
1267                min: 1 NAVIFRAME_TAB_TITLE_H_INC;
1268                align: 0.0 0.0;
1269                fixed: 0 1;
1270                rel1 { relative: 0.0 0.0; to: "base"; }
1271                rel2 { relative: 1.0 0.0; to: "base"; }
1272                color: NAVIFRAME_TITLE_BG_COLOR_INC;
1273             }
1274             description { state: "landscape" 0.0;
1275                inherit: "default" 0.0;
1276                min: 1 NAVIFRAME_LANDSCAPE_TAB_TITLE_H_INC;
1277             }
1278             description { state: "hide" 0.0;
1279                inherit: "default" 0.0;
1280                min: 0 0;
1281                max: 0 0;
1282                fixed: 1 1;
1283             }
1284          }
1285          part { name: "title_clip";
1286             type: RECT;
1287             mouse_events: 0;
1288             clip_to: "clipper";
1289             description { state: "default" 0.0;
1290                rel1 { to_y: "title_bg"; }
1291                rel2 { to_y: "title_bg"; }
1292             }
1293          }
1294          part { name: "elm.swallow.content";
1295             type: SWALLOW;
1296             scale: 1;
1297             repeat_events: 0;
1298             clip_to: "content_clip";
1299             description { state: "default" 0.0;
1300                align: 0.0 0.0;
1301                rel1.relative: 0.0 1.0;
1302                rel1.to_x: "base";
1303                rel1.to_y: "title_bg";
1304                rel2.relative: 1.0 0.0;
1305                rel2.to_x: "base";
1306                rel2.to_y: "toolbar_bg";
1307             }
1308          }
1309          part { name: "content_clip";
1310             type: RECT;
1311             mouse_events: 0;
1312             clip_to: "clipper";
1313             description { state: "default" 0.0;
1314                rel1.to_y: "elm.swallow.content";
1315                rel2.to_y: "elm.swallow.content";
1316             }
1317          }
1318          part { name: "top_padding";
1319             type: RECT;
1320             scale: 1;
1321             mouse_events: 0;
1322             description { state: "default" 0.0;
1323                align: 0.0 0.0;
1324                rel1 { relative: 0.0 0.0; to: "title_bg"; }
1325                rel2 { relative: 1.0 0.0; to: "title_bg"; }
1326                fixed: 0 1;
1327                min: NAVIFRAME_TAB_TITLE_TOP_PADDING_INC;
1328                visible: 0;
1329             }
1330             description { state: "landscape" 0.0;
1331                inherit: "default" 0.0;
1332                min: NAVIFRAME_LANDSCAPE_TAB_TITLE_TOP_PADDING_INC;
1333             }
1334          }
1335          part { name: "left_padding";
1336             type: RECT;
1337             scale: 1;
1338             mouse_events: 0;
1339             description { state: "default" 0.0;
1340                align: 0.0 0.5;
1341                rel1 { relative: 0.0 0.0; to: "title_bg"; }
1342                rel2 { relative: 0.0 1.0; to: "title_bg"; }
1343                fixed: 1 0;
1344                min: NAVIFRAME_PADDING_INC;
1345                visible: 0;
1346             }
1347          }
1348          part { name: "right_padding";
1349             type: RECT;
1350             scale: 1;
1351             mouse_events: 0;
1352             description { state: "default" 0.0;
1353                align: 1.0 0.5;
1354                rel1 { relative: 1.0 0.0; to: "title_bg"; }
1355                rel2 { relative: 1.0 1.0; to: "title_bg"; }
1356                fixed: 1 0;
1357                min: NAVIFRAME_PADDING_INC;
1358                visible: 0;
1359             }
1360             description { state: "landscape" 0.0;
1361                inherit: "default" 0.0;
1362                min: NAVIFRAME_LANDSCAPE_PADDING_INC;
1363             }
1364          }
1365          part { name: "elm.text.title";
1366             type: TEXT;
1367             scale: 1;
1368             effect: FAR_SHADOW BOTTOM;
1369             clip_to: "title_clip";
1370             description { state: "default" 0.0;
1371                visible: 1;
1372                text { font: "Tizen:style=Bold";
1373                   size: NAVIFRAME_TITLE_TAB_FONT_SIZE_INC;
1374                   min: 0 0;
1375                   max: 1 0;
1376                   align: 0.5 0.5;
1377                   text_class: "tizen";
1378                }
1379                min: 0 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1380                max: 999999 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1381                fixed: 1 1;
1382                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
1383                color3: 255 255 255 255;
1384                align: 0 0;
1385                rel1.to_x: "left_padding";
1386                rel1.to_y: "top_padding";
1387                rel1.relative: 1.0 1.0;
1388                rel2.to: "right_padding";
1389                rel2.relative: 0.0 1.0;
1390             }
1391             description { state: "landscape" 0.0;
1392                inherit: "default" 0.0;
1393                text { font: "Tizen:style=Bold";
1394                   size: NAVIFRAME_LANDSCAPE_TITLE_TAB_FONT_SIZE_INC;
1395                   min: 0 0;
1396                   max: 1 0;
1397                   align: 0.5 0.5;
1398                   text_class: "tizen";
1399                }
1400                min: 0 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1401                max: 999999 NAVIFRAME_LANDSCAPE_TITLE_TAB_TEXT_H_INC;
1402             }
1403          }
1404          part { name: "click_event_area";
1405              type: RECT;
1406              ignore_flags: ON_HOLD;
1407              description { state: "default" 0.0;
1408                 rel1 { to: "title_bg"; }
1409                 rel2 { to: "title_bg"; }
1410                 color: 0 0 0 0;
1411              }
1412          }
1413          part { name: "access.title";
1414             type: RECT;
1415             repeat_events: 1;
1416             description { state: "default" 0.0;
1417                fixed: 1 1;
1418                rel1.to: "title_bg";
1419                rel2.to: "title_bg";
1420                color: 0 0 0 0;
1421             }
1422          }
1423          part { name: "middle_padding";
1424             type: RECT;
1425             mouse_events: 0;
1426             scale: 1;
1427             description { state: "default" 0.0;
1428                min: NAVIFRAME_MIDDLE_PADDING_INC;
1429                fixed: 0 1;
1430                align: 0.0 0.0;
1431                rel1 { relative: 0.0 1.0; to_x: "title_bg"; to_y: "elm.text.title"; }
1432                rel2 { relative: 1.0 1.0; to_x: "title_bg"; to_y: "elm.text.title"; }
1433                visible: 0;
1434             }
1435             description { state: "hide" 0.0;
1436                inherit: "default" 0.0;
1437                min: 0 0;
1438             }
1439          }
1440          part { name: "tabbar";
1441             type: SWALLOW;
1442             scale: 1;
1443             clip_to: "title_clip";
1444             description { state: "default" 0.0;
1445                min: 0 NAVIFRAME_TITLE_TAB_H_INC;
1446                max: 999999 NAVIFRAME_TITLE_TAB_H_INC;
1447                fixed: 1 1;
1448                align: 0.5 0.0;
1449                rel1.to_x: "title_bg";
1450                rel1.to_y: "middle_padding";
1451                rel1.relative: 0.0 1.0;
1452                rel2.to_x: "title_bg";
1453                rel2.to_y: "bottom_padding";
1454                rel2.relative: 1.0 0.0;
1455             }
1456          }
1457          part { name: "bottom_padding";
1458             type: RECT;
1459             mouse_events: 0;
1460             scale: 1;
1461             description { state: "default" 0.0;
1462                min: NAVIFRAME_BOTTOM_PADDING_INC;
1463                fixed: 0 1;
1464                align: 0.0 1.0;
1465                rel1 { relative: 0.0 1.0; to: "title_bg"; }
1466                rel2 { relative: 1.0 1.0; to: "title_bg"; }
1467                visible: 0;
1468             }
1469             description { state: "landscape" 0.0;
1470                inherit: "default" 0.0;
1471                min: NAVIFRAME_LANDSCAPE_BOTTOM_PADDING_INC;
1472             }
1473          }
1474          part { name: "toolbar_bg";
1475             type: RECT;
1476             scale: 1;
1477             description { state: "default" 0.0;
1478                min: 0 0;
1479                max: 999999 0;
1480                fixed: 0 1;
1481                align: 0.0 1.0;
1482                visible: 0;
1483                rel1 { to: "base"; }
1484                rel2 { to: "base"; }
1485                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
1486             }
1487             description { state: "visible" 0.0;
1488                inherit: "default" 0.0;
1489                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1490                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1491                visible: 1;
1492             }
1493             description { state: "visible_landscape" 0.0;
1494                inherit: "default" 0.0;
1495                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1496                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
1497                visible: 1;
1498             }
1499          }
1500          part { name: "more_btn_bg";
1501             type: RECT;
1502             scale: 1;
1503             mouse_events: 0;
1504             description { state: "default" 0.0;
1505                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1506                fixed: 1 0;
1507                align: 0.0 0.0;
1508                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
1509                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
1510                visible: 0;
1511             }
1512          }
1513          part { name: "toolbar_more_btn";
1514             type: SWALLOW;
1515             scale: 1;
1516             clip_to: "toolbar_clip";
1517             description { state: "default" 0.0;
1518                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1519                fixed: 1 1;
1520                rel1.to: "more_btn_bg";
1521                rel2.to: "more_btn_bg";
1522             }
1523             description { state: "landscape" 0.0;
1524                inherit: "default" 0.0;
1525                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1526             }
1527          }
1528          part { name: "prev_btn_bg";
1529             type: RECT;
1530             scale: 1;
1531             mouse_events: 0;
1532             description { state: "default" 0.0;
1533                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1534                fixed: 1 0;
1535                align: 1.0 0.0;
1536                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
1537                rel2.to: "toolbar_bg";
1538                visible: 0;
1539             }
1540          }
1541          part { name: "elm.swallow.prev_btn";
1542             type: SWALLOW;
1543             scale: 1;
1544             clip_to: "toolbar_clip";
1545             description { state: "default" 0.0;
1546                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1547                fixed: 1 1;
1548                align: 0.5 0.5;
1549                rel1.to: "prev_btn_bg";
1550                rel2.to: "prev_btn_bg";
1551             }
1552             description { state: "landscape" 0.0;
1553                inherit: "default" 0.0;
1554                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
1555             }
1556          }
1557          part { name: "toolbar_btns_area";
1558             type: RECT;
1559             mouse_events: 0;
1560             description { state: "default" 0.0;
1561                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
1562                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
1563                visible: 0;
1564             }
1565          }
1566          part { name: "toolbar_clip";
1567             type: RECT;
1568             mouse_events: 0;
1569             clip_to: "clipper";
1570             description { state: "default" 0.0;
1571                rel1 { to_y: "toolbar_bg"; }
1572                rel2 { to_y: "toolbar_bg"; }
1573             }
1574          }
1575          part { name: "toolbar_button1";
1576             type: SWALLOW;
1577             scale: 1;
1578             clip_to: "toolbar_clip";
1579             description { state: "default" 0.0;
1580                fixed: 1 1;
1581                align: 0.5 0.5;
1582                rel1.to: "toolbar_btns_area";
1583                rel2.to: "toolbar_btns_area";
1584             }
1585             description { state: "buttons_set" 0.0;
1586                inherit: "default" 0.0;
1587                align: 1.0 0.5;
1588                rel2 {
1589                   relative: 0.0 1.0;
1590                   to: "toolbar_button_padding";
1591                }
1592             }
1593          }
1594          part { name: "toolbar_button_padding";
1595             type: RECT;
1596             scale : 1;
1597             mouse_events: 0;
1598             description { state: "default" 0.0;
1599                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
1600                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
1601                fixed : 1 0;
1602                visible: 0;
1603                align: 0.5 0.5;
1604                rel1.to: "toolbar_btns_area";
1605                rel2.to: "toolbar_btns_area";
1606             }
1607             description { state: "landscape" 0.0;
1608                inherit: "default" 0.0;
1609                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
1610                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
1611             }
1612          }
1613          part { name: "toolbar_button2";
1614             type: SWALLOW;
1615             scale: 1;
1616             clip_to: "toolbar_clip";
1617             description { state: "default" 0.0;
1618                fixed: 1 1;
1619                align: 0.5 0.5;
1620                rel1.to: "toolbar_btns_area";
1621                rel2.to: "toolbar_btns_area";
1622             }
1623             description { state: "buttons_set" 0.0;
1624                inherit: "default" 0.0;
1625                align: 0.0 0.5;
1626                rel1 {
1627                   relative: 1.0 0.0;
1628                   to: "toolbar_button_padding";
1629                }
1630             }
1631          }
1632       }
1633       programs {
1634          program { name: "content_new_pushed";
1635             signal: "elm,state,new,pushed,deferred";
1636             source: "elm";
1637             action: STATE_SET "default" 0.0;
1638             target: "base";
1639             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1640             after: "show_finished";
1641          }
1642          program { name: "content_cur_pushed";
1643             signal: "elm,state,cur,pushed,deferred";
1644             source: "elm";
1645             action: STATE_SET "left" 0.0;
1646             target: "base";
1647             target: "clipper";
1648             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1649             after: "pushed_finished";
1650          }
1651          program { name: "content_prev_popped";
1652             signal: "elm,state,prev,popped,deferred";
1653             source: "elm";
1654             action: STATE_SET "default" 0.0;
1655             target: "base";
1656             target: "clipper";
1657             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1658             after: "show_finished";
1659          }
1660          program { name: "content_cur_popped";
1661             signal: "elm,state,cur,popped,deferred";
1662             source: "elm";
1663             action: STATE_SET "right" 0.0;
1664             target: "base";
1665             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1666             after: "popped_finished";
1667          }
1668          program { name: "cur_pushed";
1669             signal: "elm,state,cur,pushed";
1670             source: "elm";
1671             action: STATE_SET "default" 0.0;
1672             target: "base";
1673          }
1674          program { name: "new_pushed";
1675             signal: "elm,state,new,pushed";
1676             source: "elm";
1677             action: STATE_SET "right" 0.0;
1678             target: "base";
1679          }
1680          program { name: "prev_popped";
1681             signal: "elm,state,prev,popped";
1682             source: "elm";
1683             action: STATE_SET "left" 0.0;
1684             target: "base";
1685          }
1686          program { name: "cur_popped";
1687             signal: "elm,state,cur,popped";
1688             source: "elm";
1689             action: STATE_SET "default" 0.0;
1690             target: "base";
1691          }
1692          program { name: "visible";
1693             signal: "elm,state,visible";
1694             source: "elm";
1695             action: STATE_SET "default" 0.0;
1696             target: "base";
1697          }
1698          program { name: "title_show";
1699             signal: "elm,state,title,show";
1700             source: "elm";
1701             script {
1702                if (get_int(landscape) == 0)
1703                  set_state(PART:"title_bg", "default", 0.0);
1704                else
1705                  set_state(PART:"title_bg", "landscape", 0.0);
1706             }
1707          }
1708          program { name: "title_hide";
1709             signal: "elm,state,title,hide";
1710             source: "elm";
1711             script {
1712                set_state(PART:"title_bg", "hide", 0.0);
1713             }
1714          }
1715          program { name: "prev_btn_show";
1716             signal: "elm,state,prev_btn,show";
1717             source: "elm";
1718             script {
1719                emit("elm,state,toolbar_bg,show", "elm");
1720             }
1721          }
1722          program { name: "prev_btn_hide";
1723             signal: "elm,state,prev_btn,hide";
1724             source: "elm";
1725             script {
1726                emit("elm,state,toolbar_bg,hide", "elm");
1727             }
1728          }
1729          program { name: "more_btn_show";
1730             signal: "elm,state,toolbar_more_btn,show";
1731             source: "elm";
1732             script {
1733                emit("elm,state,toolbar_bg,show", "elm");
1734             }
1735          }
1736          program { name: "more_btn_hide";
1737             signal: "elm,state,toolbar_more_btn,hide";
1738             source: "elm";
1739             script {
1740                emit("elm,state,toolbar_bg,hide", "elm");
1741             }
1742          }
1743          program { name: "toolbar_button1_show";
1744             signal: "elm,state,toolbar_button1,show";
1745             source: "elm";
1746             script {
1747                emit("elm,state,toolbar_bg,show", "elm");
1748                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1749                if (get_int(toolbar_buttons_visible) >= 2)
1750                  {
1751                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1752                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1753                  }
1754             }
1755          }
1756          program { name: "toolbar_button1_hide";
1757             signal: "elm,state,toolbar_button1,hide";
1758             source: "elm";
1759             script {
1760                emit("elm,state,toolbar_bg,hide", "elm");
1761                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1762                set_state(PART:"toolbar_button1", "default", 0.0);
1763                set_state(PART:"toolbar_button2", "default", 0.0);
1764             }
1765          }
1766          program { name: "toolbar_button2_show";
1767             signal: "elm,state,toolbar_button2,show";
1768             source: "elm";
1769             script {
1770                emit("elm,state,toolbar_bg,show", "elm");
1771                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1772                if (get_int(toolbar_buttons_visible) >= 2)
1773                  {
1774                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1775                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1776                  }
1777             }
1778          }
1779          program { name: "toolbar_button2_hide";
1780             signal: "elm,state,toolbar_button2,hide";
1781             source: "elm";
1782             script {
1783                emit("elm,state,toolbar_bg,hide", "elm");
1784                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1785                set_state(PART:"toolbar_button1", "default", 0.0);
1786                set_state(PART:"toolbar_button2", "default", 0.0);
1787             }
1788          }
1789          program { name: "toolbar_bg_show";
1790             signal: "elm,state,toolbar_bg,show";
1791             source: "elm";
1792             script {
1793                if (get_int(landscape) == 0)
1794                  set_state(PART:"toolbar_bg", "visible", 0.0);
1795                else
1796                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1797                set_int(tbar_bg, get_int(tbar_bg) + 1);
1798             }
1799          }
1800          program { name: "toolbar_bg_hide";
1801             signal: "elm,state,toolbar_bg,hide";
1802             source: "elm";
1803             script {
1804                set_int(tbar_bg, get_int(tbar_bg) - 1);
1805                if (get_int(tbar_bg) <= 0)
1806                  set_state(PART:"toolbar_bg", "default", 0.0);
1807             }
1808          }
1809          program { name: "toolbar_open_internal";
1810             signal: "elm,state,toolbar,open,internal";
1811             source: "elm";
1812             script {
1813                set_int(tbar_close, 0);
1814                if (get_int(landscape) == 0)
1815                  set_state(PART:"toolbar_bg", "visible", 0.0);
1816                else
1817                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1818             }
1819          }
1820          program { name: "toolbar_close_internal";
1821             signal: "elm,state,toolbar,close,internal";
1822             source: "elm";
1823             script {
1824                set_int(tbar_close, 1);
1825                set_state(PART:"toolbar_bg", "default", 0.0);
1826             }
1827          }
1828          program { name: "toolbar_open";
1829             signal: "elm,state,toolbar,open";
1830             source: "";
1831             script {
1832                if (get_int(landscape) == 0)
1833                  set_state(PART:"toolbar_bg", "visible", 0.0);
1834                else
1835                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1836             }
1837             transition: LINEAR 0.2;
1838             after: "toolbar_open_internal";
1839          }
1840          program { name: "toolbar_close";
1841             signal: "elm,state,toolbar,close";
1842             source: "";
1843             action: STATE_SET "default" 0.0;
1844             target: "toolbar_bg";
1845             transition: LINEAR 0.2;
1846             after: "toolbar_close_internal";
1847          }
1848          program { name: "toolbar_instant_open";
1849             signal: "elm,state,toolbar,instant_open";
1850             source: "";
1851             script {
1852                emit("elm,state,toolbar,open,internal", "elm");
1853             }
1854          }
1855          program { name: "toolbar_instant_close";
1856             signal: "elm,state,toolbar,instant_close";
1857             source: "";
1858             script {
1859                emit("elm,state,toolbar,close,internal", "elm");
1860             }
1861          }
1862          program { name: "show_finished";
1863             action: SIGNAL_EMIT "elm,action,show,finished" "";
1864          }
1865          program { name: "pushed_finished";
1866             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1867          }
1868          program { name: "popped_finished";
1869             action: SIGNAL_EMIT "elm,action,popped,finished" "";
1870          }
1871          program {
1872             name: "title_clicked";
1873             signal: "mouse,clicked,1";
1874             source: "click_event_area";
1875             action: SIGNAL_EMIT "elm,action,title,clicked" "";
1876          }
1877          program {
1878             name: "change_to_landscape";
1879             signal: "elm,state,landscape";
1880             source: "elm";
1881             script {
1882                if (get_int(landscape) == 0) {
1883                   set_state(PART:"top_padding", "landscape", 0.0);
1884                   set_state(PART:"right_padding", "landscape", 0.0);
1885                   set_state(PART:"elm.text.title", "landscape", 0.0);
1886                   set_state(PART:"middle_padding", "hide", 0.0);
1887                   set_state(PART:"bottom_padding", "landscape", 0.0);
1888                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
1889                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
1890                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
1891
1892                   new st[31];
1893                   new Float:vl;
1894                   get_state(PART:"title_bg", st, 30, vl);
1895                   if (!strcmp(st, "default"))
1896                     set_state(PART:"title_bg", "landscape", 0.0);
1897
1898                   get_state(PART:"toolbar_bg", st, 30, vl);
1899                   if (!strcmp(st, "visible"))
1900                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
1901
1902                   set_int(landscape, 1);
1903                }
1904             }
1905          }
1906          program {
1907             name: "change_to_portrait";
1908             signal: "elm,state,portrait";
1909             source: "elm";
1910             script {
1911                if (get_int(landscape) == 1) {
1912                   set_state(PART:"top_padding", "default", 0.0);
1913                   set_state(PART:"right_padding", "default", 0.0);
1914                   set_state(PART:"elm.text.title", "default", 0.0);
1915                   set_state(PART:"middle_padding", "default", 0.0);
1916                   set_state(PART:"bottom_padding", "default", 0.0);
1917                   set_state(PART:"toolbar_more_btn", "default", 0.0);
1918                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
1919                   set_state(PART:"toolbar_button_padding", "default", 0.0);
1920
1921                   new st[31];
1922                   new Float:vl;
1923                   get_state(PART:"title_bg", st, 30, vl);
1924                   if (!strcmp(st, "landscape"))
1925                     set_state(PART:"title_bg", "default", 0.0);
1926
1927                   get_state(PART:"toolbar_bg", st, 30, vl);
1928                   if (!strcmp(st, "visible_landscape"))
1929                     set_state(PART:"toolbar_bg", "visible", 0.0);
1930
1931                   set_int(landscape, 0);
1932                }
1933             }
1934          }
1935          program { name: "landscape_mode";
1936             source: "elm";
1937             signal: "elm,state,orient,90";
1938             action: SIGNAL_EMIT "elm,state,landscape" "elm";
1939          }
1940          program { name: "landscape_mode2";
1941             source: "elm";
1942             signal: "elm,state,orient,270";
1943             action: SIGNAL_EMIT "elm,state,landscape" "elm";
1944          }
1945          program { name: "portrait_mode";
1946             source: "elm";
1947             signal: "elm,state,orient,0";
1948             action: SIGNAL_EMIT "elm,state,portrait" "elm";
1949          }
1950          program { name: "portrait_mode2";
1951             source: "elm";
1952             signal: "elm,state,orient,180";
1953             action: SIGNAL_EMIT "elm,state,portrait" "elm";
1954          }
1955       }
1956    }
1957
1958    group { name: "elm/naviframe/item/tabbar/notitle/default";
1959       script {
1960          public tbar_bg = 0;     //Toolbar BG Show call count
1961          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
1962          public tbar_close = 0; //Toolbar lastest Open/Close status
1963          public landscape = 0; //Landscape mode status
1964       }
1965       parts {
1966          part { name: "clipper";
1967             type: RECT;
1968             description { state: "default" 0.0;
1969                visible: 1;
1970             }
1971             description { state: "left" 0.0;
1972                visible: 0;
1973             }
1974          }
1975          part { name: "base";
1976             type: RECT;
1977             mouse_events:  0;
1978             description { state: "default" 0.0;
1979                visible: 0;
1980             }
1981             description { state: "left" 0.0;
1982                inherit: "default" 0.0;
1983                rel1.relative: -1.0 0.0;
1984                rel2.relative: 0.0 1.0;
1985             }
1986             description { state: "right" 0.0;
1987                inherit: "default" 0.0;
1988                rel1.relative: 1.0 0.0;
1989                rel2.relative: 2.0 1.0;
1990             }
1991          }
1992          part { name: "title_bg";
1993             type: RECT;
1994             scale: 1;
1995             description { state: "default" 0.0;
1996                min: 1 NAVIFRAME_TITLE_H_INC;
1997                align: 0.0 0.0;
1998                fixed: 0 1;
1999                rel1 { relative: 0.0 0.0; to: "base"; }
2000                rel2 { relative: 1.0 0.0; to: "base"; }
2001                color: NAVIFRAME_TITLE_BG_COLOR_INC;
2002             }
2003             description { state: "landscape" 0.0;
2004                inherit: "default" 0.0;
2005                min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
2006             }
2007             description { state: "hide" 0.0;
2008                inherit: "default" 0.0;
2009                min: 0 0;
2010                max: 0 0;
2011                fixed: 1 1;
2012             }
2013          }
2014          part { name: "title_clip";
2015             type: RECT;
2016             mouse_events: 0;
2017             clip_to: "clipper";
2018             description { state: "default" 0.0;
2019                rel1 { to_y: "title_bg"; }
2020                rel2 { to_y: "title_bg"; }
2021             }
2022          }
2023          part { name: "tabbar";
2024             type: SWALLOW;
2025             scale: 1;
2026             clip_to: "title_clip";
2027             description { state: "default" 0.0;
2028                max: -1 NAVIFRAME_TITLE_H_INC;
2029                rel1.to: "title_bg";
2030                rel1.relative: 0.0 0.0;
2031                rel2.to: "title_bg";
2032                rel2.relative: 1.0 1.0;
2033             }
2034             description { state: "landscape" 0.0;
2035                max: -1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
2036                rel1.to: "title_bg";
2037                rel1.relative: 0.0 0.0;
2038                rel2.to: "title_bg";
2039                rel2.relative: 1.0 1.0;
2040             }
2041          }
2042          part { name: "elm.swallow.content";
2043             type: SWALLOW;
2044             scale: 1;
2045             repeat_events: 0;
2046             clip_to: "content_clip";
2047             description { state: "default" 0.0;
2048                align: 0.0 0.0;
2049                rel1.relative: 0.0 1.0;
2050                rel1.to_x: "base";
2051                rel1.to_y: "title_bg";
2052                rel2.relative: 1.0 0.0;
2053                rel2.to_x: "base";
2054                rel2.to_y: "toolbar_bg";
2055             }
2056          }
2057          part { name: "content_clip";
2058             type: RECT;
2059             mouse_events: 0;
2060             clip_to: "clipper";
2061             description { state: "default" 0.0;
2062                rel1.to_y: "elm.swallow.content";
2063                rel2.to_y: "elm.swallow.content";
2064             }
2065          }
2066          part { name: "toolbar_bg";
2067             type: RECT;
2068             scale: 1;
2069             description { state: "default" 0.0;
2070                min: 0 0;
2071                max: 999999 0;
2072                fixed: 0 1;
2073                align: 0.0 1.0;
2074                visible: 0;
2075                rel1 { to: "base"; }
2076                rel2 { to: "base"; }
2077                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
2078             }
2079             description { state: "visible" 0.0;
2080                inherit: "default" 0.0;
2081                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2082                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2083                visible: 1;
2084             }
2085             description { state: "visible_landscape" 0.0;
2086                inherit: "default" 0.0;
2087                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2088                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2089                visible: 1;
2090             }
2091          }
2092          part { name: "more_btn_bg";
2093             type: RECT;
2094             scale: 1;
2095             mouse_events: 0;
2096             description { state: "default" 0.0;
2097                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2098                fixed: 1 0;
2099                align: 0.0 0.0;
2100                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
2101                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
2102                visible: 0;
2103             }
2104          }
2105          part { name: "toolbar_more_btn";
2106             type: SWALLOW;
2107             scale: 1;
2108             clip_to: "toolbar_clip";
2109             description { state: "default" 0.0;
2110                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2111                fixed: 1 1;
2112                rel1.to: "more_btn_bg";
2113                rel2.to: "more_btn_bg";
2114             }
2115             description { state: "landscape" 0.0;
2116                inherit: "default" 0.0;
2117                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2118             }
2119          }
2120          part { name: "prev_btn_bg";
2121             type: RECT;
2122             scale: 1;
2123             mouse_events: 0;
2124             description { state: "default" 0.0;
2125                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2126                fixed: 1 0;
2127                align: 1.0 0.0;
2128                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
2129                rel2.to: "toolbar_bg";
2130                visible: 0;
2131             }
2132          }
2133          part { name: "elm.swallow.prev_btn";
2134             type: SWALLOW;
2135             scale: 1;
2136             clip_to: "toolbar_clip";
2137             description { state: "default" 0.0;
2138                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2139                fixed: 1 1;
2140                align: 0.5 0.5;
2141                rel1.to: "prev_btn_bg";
2142                rel2.to: "prev_btn_bg";
2143             }
2144             description { state: "landscape" 0.0;
2145                inherit: "default" 0.0;
2146                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2147             }
2148          }
2149          part { name: "toolbar_clip";
2150             type: RECT;
2151             mouse_events: 0;
2152             clip_to: "clipper";
2153             description { state: "default" 0.0;
2154                rel1 { to_y: "toolbar_bg"; }
2155                rel2 { to_y: "toolbar_bg"; }
2156             }
2157          }
2158          part { name: "toolbar_btns_area";
2159             type: RECT;
2160             mouse_events: 0;
2161             description { state: "default" 0.0;
2162                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
2163                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
2164                visible: 0;
2165             }
2166          }
2167          part { name: "toolbar_button1";
2168             type: SWALLOW;
2169             scale: 1;
2170             clip_to: "toolbar_clip";
2171             description { state: "default" 0.0;
2172                fixed: 1 1;
2173                align: 0.5 0.5;
2174                rel1.to: "toolbar_btns_area";
2175                rel2.to: "toolbar_btns_area";
2176             }
2177             description { state: "buttons_set" 0.0;
2178                inherit: "default" 0.0;
2179                align: 1.0 0.5;
2180                rel2 {
2181                   relative: 0.0 1.0;
2182                   to: "toolbar_button_padding";
2183                }
2184             }
2185          }
2186          part { name: "toolbar_button_padding";
2187             type: RECT;
2188             scale : 1;
2189             description { state: "default" 0.0;
2190                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2191                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2192                fixed : 1 0;
2193                visible: 0;
2194                align: 0.5 0.5;
2195                rel1.to: "toolbar_btns_area";
2196                rel2.to: "toolbar_btns_area";
2197             }
2198             description { state: "landscape" 0.0;
2199                inherit: "default" 0.0;
2200                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
2201                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
2202             }
2203          }
2204          part { name: "toolbar_button2";
2205             type: SWALLOW;
2206             scale: 1;
2207             clip_to: "toolbar_clip";
2208             description { state: "default" 0.0;
2209                fixed: 1 1;
2210                align: 0.5 0.5;
2211                rel1.to: "toolbar_btns_area";
2212                rel2.to: "toolbar_btns_area";
2213             }
2214             description { state: "buttons_set" 0.0;
2215                inherit: "default" 0.0;
2216                align: 0.0 0.5;
2217                rel1 {
2218                   relative: 1.0 0.0;
2219                   to: "toolbar_button_padding";
2220                }
2221             }
2222          }
2223       }
2224       programs {
2225          program { name: "content_new_pushed";
2226             signal: "elm,state,new,pushed,deferred";
2227             source: "elm";
2228             action: STATE_SET "default" 0.0;
2229             target: "base";
2230             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2231             after: "show_finished";
2232          }
2233          program { name: "content_cur_pushed";
2234             signal: "elm,state,cur,pushed,deferred";
2235             source: "elm";
2236             action: STATE_SET "left" 0.0;
2237             target: "base";
2238             target: "clipper";
2239             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2240             after: "pushed_finished";
2241          }
2242          program { name: "content_prev_popped";
2243             signal: "elm,state,prev,popped,deferred";
2244             source: "elm";
2245             action: STATE_SET "default" 0.0;
2246             target: "base";
2247             target: "clipper";
2248             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2249             after: "show_finished";
2250          }
2251          program { name: "content_cur_popped";
2252             signal: "elm,state,cur,popped,deferred";
2253             source: "elm";
2254             action: STATE_SET "right" 0.0;
2255             target: "base";
2256             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2257             after: "popped_finished";
2258          }
2259          program { name: "cur_pushed";
2260             signal: "elm,state,cur,pushed";
2261             source: "elm";
2262             action: STATE_SET "default" 0.0;
2263             target: "base";
2264          }
2265          program { name: "new_pushed";
2266             signal: "elm,state,new,pushed";
2267             source: "elm";
2268             action: STATE_SET "right" 0.0;
2269             target: "base";
2270          }
2271          program { name: "prev_popped";
2272             signal: "elm,state,prev,popped";
2273             source: "elm";
2274             action: STATE_SET "left" 0.0;
2275             target: "base";
2276          }
2277          program { name: "cur_popped";
2278             signal: "elm,state,cur,popped";
2279             source: "elm";
2280             action: STATE_SET "default" 0.0;
2281             target: "base";
2282          }
2283          program { name: "visible";
2284             signal: "elm,state,visible";
2285             source: "elm";
2286             action: STATE_SET "default" 0.0;
2287             target: "base";
2288          }
2289          program { name: "title_show";
2290             signal: "elm,state,title,show";
2291             source: "elm";
2292             script {
2293                if (get_int(landscape) == 0)
2294                  set_state(PART:"title_bg", "default", 0.0);
2295                else
2296                  set_state(PART:"title_bg", "landscape", 0.0);
2297             }
2298          }
2299          program { name: "title_hide";
2300             signal: "elm,state,title,hide";
2301             source: "elm";
2302             script {
2303                set_state(PART:"title_bg", "hide", 0.0);
2304             }
2305          }
2306          program { name: "prev_btn_show";
2307             signal: "elm,state,prev_btn,show";
2308             source: "elm";
2309             script {
2310                emit("elm,state,toolbar_bg,show", "elm");
2311             }
2312          }
2313          program { name: "prev_btn_hide";
2314             signal: "elm,state,prev_btn,hide";
2315             source: "elm";
2316             script {
2317                emit("elm,state,toolbar_bg,hide", "elm");
2318             }
2319          }
2320          program { name: "more_btn_show";
2321             signal: "elm,state,toolbar_more_btn,show";
2322             source: "elm";
2323             script {
2324                emit("elm,state,toolbar_bg,show", "elm");
2325             }
2326          }
2327          program { name: "more_btn_hide";
2328             signal: "elm,state,toolbar_more_btn,hide";
2329             source: "elm";
2330             script {
2331                emit("elm,state,toolbar_bg,hide", "elm");
2332             }
2333          }
2334          program { name: "toolbar_button1_show";
2335             signal: "elm,state,toolbar_button1,show";
2336             source: "elm";
2337             script {
2338                emit("elm,state,toolbar_bg,show", "elm");
2339                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2340                if (get_int(toolbar_buttons_visible) >= 2)
2341                  {
2342                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2343                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2344                  }
2345             }
2346          }
2347          program { name: "toolbar_button1_hide";
2348             signal: "elm,state,toolbar_button1,hide";
2349             source: "elm";
2350             script {
2351                emit("elm,state,toolbar_bg,hide", "elm");
2352                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2353                set_state(PART:"toolbar_button1", "default", 0.0);
2354                set_state(PART:"toolbar_button2", "default", 0.0);
2355             }
2356          }
2357          program { name: "toolbar_button2_show";
2358             signal: "elm,state,toolbar_button2,show";
2359             source: "elm";
2360             script {
2361                emit("elm,state,toolbar_bg,show", "elm");
2362                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2363                if (get_int(toolbar_buttons_visible) >= 2)
2364                  {
2365                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2366                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2367                  }
2368             }
2369          }
2370          program { name: "toolbar_button2_hide";
2371             signal: "elm,state,toolbar_button2,hide";
2372             source: "elm";
2373             script {
2374                emit("elm,state,toolbar_bg,hide", "elm");
2375                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2376                set_state(PART:"toolbar_button1", "default", 0.0);
2377                set_state(PART:"toolbar_button2", "default", 0.0);
2378             }
2379          }
2380          program { name: "toolbar_bg_show";
2381             signal: "elm,state,toolbar_bg,show";
2382             source: "elm";
2383             script {
2384                if (get_int(landscape) == 0)
2385                  set_state(PART:"toolbar_bg", "visible", 0.0);
2386                else
2387                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2388                set_int(tbar_bg, get_int(tbar_bg) + 1);
2389             }
2390          }
2391          program { name: "toolbar_bg_hide";
2392             signal: "elm,state,toolbar_bg,hide";
2393             source: "elm";
2394             script {
2395                set_int(tbar_bg, get_int(tbar_bg) - 1);
2396                if (get_int(tbar_bg) <= 0)
2397                  set_state(PART:"toolbar_bg", "default", 0.0);
2398             }
2399          }
2400          program { name: "toolbar_open_internal";
2401             signal: "elm,state,toolbar,open,internal";
2402             source: "elm";
2403             script {
2404                set_int(tbar_close, 0);
2405                if (get_int(landscape) == 0)
2406                  set_state(PART:"toolbar_bg", "visible", 0.0);
2407                else
2408                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2409             }
2410          }
2411          program { name: "toolbar_close_internal";
2412             signal: "elm,state,toolbar,close,internal";
2413             source: "elm";
2414             script {
2415                set_int(tbar_close, 1);
2416                set_state(PART:"toolbar_bg", "default", 0.0);
2417             }
2418          }
2419          program { name: "toolbar_open";
2420             signal: "elm,state,toolbar,open";
2421             source: "";
2422             script {
2423                if (get_int(landscape) == 0)
2424                  set_state(PART:"toolbar_bg", "visible", 0.0);
2425                else
2426                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2427             }
2428             transition: LINEAR 0.2;
2429             after: "toolbar_open_internal";
2430          }
2431          program { name: "toolbar_close";
2432             signal: "elm,state,toolbar,close";
2433             source: "";
2434             action: STATE_SET "default" 0.0;
2435             target: "toolbar_bg";
2436             transition: LINEAR 0.2;
2437             after: "toolbar_close_internal";
2438          }
2439          program { name: "toolbar_instant_open";
2440             signal: "elm,state,toolbar,instant_open";
2441             source: "";
2442             script {
2443                emit("elm,state,toolbar,open,internal", "elm");
2444             }
2445          }
2446          program { name: "toolbar_instant_close";
2447             signal: "elm,state,toolbar,instant_close";
2448             source: "";
2449             script {
2450                emit("elm,state,toolbar,close,internal", "elm");
2451             }
2452          }
2453          program { name: "show_finished";
2454             action: SIGNAL_EMIT "elm,action,show,finished" "";
2455          }
2456          program { name: "pushed_finished";
2457             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2458          }
2459          program { name: "popped_finished";
2460             action: SIGNAL_EMIT "elm,action,popped,finished" "";
2461          }
2462          program {
2463             name: "change_to_landscape";
2464             signal: "elm,state,landscape";
2465             source: "elm";
2466             script {
2467                if (get_int(landscape) == 0) {
2468                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
2469                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
2470                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
2471
2472                   new st[31];
2473                   new Float:vl;
2474                   get_state(PART:"title_bg", st, 30, vl);
2475                   if (!strcmp(st, "default"))
2476                     set_state(PART:"title_bg", "landscape", 0.0);
2477
2478                   get_state(PART:"tabbar", st, 30, vl);
2479                   if (!strcmp(st, "default"))
2480                     set_state(PART:"tabbar", "landscape", 0.0);
2481
2482                   get_state(PART:"toolbar_bg", st, 30, vl);
2483                   if (!strcmp(st, "visible"))
2484                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2485
2486                   set_int(landscape, 1);
2487                }
2488             }
2489          }
2490          program {
2491             name: "change_to_portrait";
2492             signal: "elm,state,portrait";
2493             source: "elm";
2494             script {
2495                if (get_int(landscape) == 1) {
2496                   set_state(PART:"toolbar_more_btn", "default", 0.0);
2497                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
2498                   set_state(PART:"toolbar_button_padding", "default", 0.0);
2499
2500                   new st[31];
2501                   new Float:vl;
2502                   get_state(PART:"toolbar_bg", st, 30, vl);
2503                   if (!strcmp(st, "visible_landscape"))
2504                     set_state(PART:"toolbar_bg", "visible", 0.0);
2505
2506                   get_state(PART:"title_bg", st, 30, vl);
2507                   if (!strcmp(st, "landscape"))
2508                     set_state(PART:"title_bg", "default", 0.0);
2509
2510                   get_state(PART:"tabbar", st, 30, vl);
2511                   if (!strcmp(st, "landscape"))
2512                     set_state(PART:"tabbar", "default", 0.0);
2513
2514                   set_int(landscape, 0);
2515                }
2516             }
2517          }
2518          program { name: "landscape_mode";
2519             source: "elm";
2520             signal: "elm,state,orient,90";
2521             action: SIGNAL_EMIT "elm,state,landscape" "elm";
2522          }
2523          program { name: "landscape_mode2";
2524             source: "elm";
2525             signal: "elm,state,orient,270";
2526             action: SIGNAL_EMIT "elm,state,landscape" "elm";
2527          }
2528          program { name: "portrait_mode";
2529             source: "elm";
2530             signal: "elm,state,orient,0";
2531             action: SIGNAL_EMIT "elm,state,portrait" "elm";
2532          }
2533          program { name: "portrait_mode2";
2534             source: "elm";
2535             signal: "elm,state,orient,180";
2536             action: SIGNAL_EMIT "elm,state,portrait" "elm";
2537          }
2538       }
2539    }
2540
2541    group { name: "elm/naviframe/item/empty/default";
2542       script {
2543          public tbar_bg = 0;     //Toolbar BG Show call count
2544          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
2545          public tbar_close = 0; //Toolbar lastest Open/Close status
2546          public landscape = 0; //Landscape mode status
2547       }
2548       parts {
2549          part { name: "clipper";
2550             type: RECT;
2551             description { state: "default" 0.0;
2552                visible: 1;
2553             }
2554             description { state: "left" 0.0;
2555                visible: 0;
2556             }
2557          }
2558          part { name: "base";
2559             type: RECT;
2560             mouse_events:  0;
2561             description { state: "default" 0.0;
2562                visible: 0;
2563             }
2564             description { state: "left" 0.0;
2565                inherit: "default" 0.0;
2566                rel1.relative: -1.0 0.0;
2567                rel2.relative: 0.0 1.0;
2568             }
2569             description { state: "right" 0.0;
2570                inherit: "default" 0.0;
2571                rel1.relative: 1.0 0.0;
2572                rel2.relative: 2.0 1.0;
2573             }
2574          }
2575          part { name: "title_bg";
2576             type: RECT;
2577             scale: 1;
2578             description { state: "default" 0.0;
2579                rel1 { to: "title"; }
2580                rel2 { to: "title"; }
2581                color: NAVIFRAME_TITLE_BG_COLOR_INC;
2582             }
2583             description { state: "hide" 0.0;
2584                inherit: "default" 0.0;
2585                min: 0 0;
2586                max: 0 0;
2587                fixed: 1 1;
2588             }
2589          }
2590          part { name: "elm.swallow.content";
2591             type: SWALLOW;
2592             scale: 1;
2593             repeat_events: 0;
2594             clip_to: "content_clip";
2595             description { state: "default" 0.0;
2596                align: 0.0 0.0;
2597                rel1.relative: 0.0 1.0;
2598                rel1.to_x: "base";
2599                rel1.to_y: "title_bg";
2600                rel2.relative: 1.0 0.0;
2601                rel2.to_x: "base";
2602                rel2.to_y: "toolbar_bg";
2603             }
2604          }
2605          part { name: "content_clip";
2606             type: RECT;
2607             mouse_events: 0;
2608             clip_to: "clipper";
2609             description { state: "default" 0.0;
2610                rel1.to: "elm.swallow.content";
2611                rel2.to: "elm.swallow.content";
2612             }
2613          }
2614          part { name: "title";
2615             type: SWALLOW;
2616             scale: 1;
2617             clip_to: "clipper";
2618             description { state: "default" 0.0;
2619                align: 0.5 0.0;
2620                fixed: 0 1;
2621                rel1 { relative: 0.0 0.0; to: "base"; }
2622                rel2 { relative: 1.0 0.0; to: "base"; }
2623             }
2624             description { state: "hide" 0.0;
2625                inherit: "default" 0.0;
2626                visible: 0;
2627                min: 0 0;
2628                max: 0 0;
2629                fixed: 1 1;
2630             }
2631          }
2632          part { name: "toolbar_bg";
2633             type: RECT;
2634             scale: 1;
2635             description { state: "default" 0.0;
2636                min: 0 0;
2637                max: 999999 0;
2638                fixed: 0 1;
2639                align: 0.0 1.0;
2640                visible: 0;
2641                rel1 { to: "base"; }
2642                rel2 { to: "base"; }
2643                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
2644             }
2645             description { state: "visible" 0.0;
2646                inherit: "default" 0.0;
2647                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2648                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2649                visible: 1;
2650             }
2651             description { state: "visible_landscape" 0.0;
2652                inherit: "default" 0.0;
2653                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2654                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
2655                visible: 1;
2656             }
2657          }
2658          part { name: "more_btn_bg";
2659             type: RECT;
2660             scale: 1;
2661             mouse_events: 0;
2662             description { state: "default" 0.0;
2663                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2664                fixed: 1 0;
2665                align: 0.0 0.0;
2666                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
2667                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
2668                visible: 0;
2669             }
2670          }
2671          part { name: "toolbar_more_btn";
2672             type: SWALLOW;
2673             scale: 1;
2674             clip_to: "toolbar_clip";
2675             description { state: "default" 0.0;
2676                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2677                fixed: 1 1;
2678                rel1.to: "more_btn_bg";
2679                rel2.to: "more_btn_bg";
2680             }
2681             description { state: "landscape" 0.0;
2682                inherit: "default" 0.0;
2683                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2684             }
2685          }
2686          part { name: "prev_btn_bg";
2687             type: RECT;
2688             scale: 1;
2689             mouse_events: 0;
2690             description { state: "default" 0.0;
2691                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2692                fixed: 1 0;
2693                align: 1.0 0.0;
2694                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
2695                rel2.to: "toolbar_bg";
2696                visible: 0;
2697             }
2698          }
2699          part { name: "elm.swallow.prev_btn";
2700             type: SWALLOW;
2701             scale: 1;
2702             clip_to: "toolbar_clip";
2703             description { state: "default" 0.0;
2704                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2705                fixed: 1 1;
2706                align: 0.5 0.5;
2707                rel1.to: "prev_btn_bg";
2708                rel2.to: "prev_btn_bg";
2709             }
2710             description { state: "landscape" 0.0;
2711                inherit: "default" 0.0;
2712                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
2713             }
2714          }
2715          part { name: "toolbar_clip";
2716             type: RECT;
2717             mouse_events: 0;
2718             clip_to: "clipper";
2719             description { state: "default" 0.0;
2720                rel1 { to: "toolbar_bg"; }
2721                rel2 { to: "toolbar_bg"; }
2722             }
2723          }
2724          part { name: "toolbar_btns_area";
2725             type: RECT;
2726             mouse_events: 0;
2727             description { state: "default" 0.0;
2728                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
2729                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
2730                visible: 0;
2731             }
2732          }
2733          part { name: "toolbar_button1";
2734             type: SWALLOW;
2735             scale: 1;
2736             clip_to: "toolbar_clip";
2737             description { state: "default" 0.0;
2738                fixed: 1 1;
2739                align: 0.5 0.5;
2740                rel1.to: "toolbar_btns_area";
2741                rel2.to: "toolbar_btns_area";
2742             }
2743             description { state: "buttons_set" 0.0;
2744                inherit: "default" 0.0;
2745                align: 1.0 0.5;
2746                rel2 {
2747                   relative: 0.0 1.0;
2748                   to: "toolbar_button_padding";
2749                }
2750             }
2751          }
2752          part { name: "toolbar_button_padding";
2753             type: RECT;
2754             scale : 1;
2755             description { state: "default" 0.0;
2756                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2757                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2758                fixed : 1 0;
2759                visible: 0;
2760                align: 0.5 0.5;
2761                rel1.to: "toolbar_btns_area";
2762                rel2.to: "toolbar_btns_area";
2763             }
2764             description { state: "landscape" 0.0;
2765                inherit: "default" 0.0;
2766                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
2767                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
2768             }
2769          }
2770          part { name: "toolbar_button2";
2771             type: SWALLOW;
2772             scale: 1;
2773             clip_to: "toolbar_clip";
2774             description { state: "default" 0.0;
2775                fixed: 1 1;
2776                align: 0.5 0.5;
2777                rel1.to: "toolbar_btns_area";
2778                rel2.to: "toolbar_btns_area";
2779             }
2780             description { state: "buttons_set" 0.0;
2781                inherit: "default" 0.0;
2782                align: 0.0 0.5;
2783                rel1 {
2784                   relative: 1.0 0.0;
2785                   to: "toolbar_button_padding";
2786                }
2787             }
2788          }
2789       }
2790       programs {
2791          program { name: "content_new_pushed";
2792             signal: "elm,state,new,pushed,deferred";
2793             source: "elm";
2794             action: STATE_SET "default" 0.0;
2795             target: "base";
2796             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2797             after: "show_finished";
2798          }
2799          program { name: "content_cur_pushed";
2800             signal: "elm,state,cur,pushed,deferred";
2801             source: "elm";
2802             action: STATE_SET "left" 0.0;
2803             target: "base";
2804             target: "clipper";
2805             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2806             after: "pushed_finished";
2807          }
2808          program { name: "content_prev_popped";
2809             signal: "elm,state,prev,popped,deferred";
2810             source: "elm";
2811             action: STATE_SET "default" 0.0;
2812             target: "base";
2813             target: "clipper";
2814             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2815             after: "show_finished";
2816          }
2817          program { name: "content_cur_popped";
2818             signal: "elm,state,cur,popped,deferred";
2819             source: "elm";
2820             action: STATE_SET "right" 0.0;
2821             target: "base";
2822             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2823             after: "popped_finished";
2824          }
2825          program { name: "cur_pushed";
2826             signal: "elm,state,cur,pushed";
2827             source: "elm";
2828             action: STATE_SET "default" 0.0;
2829             target: "base";
2830          }
2831          program { name: "new_pushed";
2832             signal: "elm,state,new,pushed";
2833             source: "elm";
2834             action: STATE_SET "right" 0.0;
2835             target: "base";
2836          }
2837          program { name: "prev_popped";
2838             signal: "elm,state,prev,popped";
2839             source: "elm";
2840             action: STATE_SET "left" 0.0;
2841             target: "base";
2842          }
2843          program { name: "cur_popped";
2844             signal: "elm,state,cur,popped";
2845             source: "elm";
2846             action: STATE_SET "default" 0.0;
2847             target: "base";
2848          }
2849          program { name: "visible";
2850             signal: "elm,state,visible";
2851             source: "elm";
2852             action: STATE_SET "default" 0.0;
2853             target: "base";
2854          }
2855          program { name: "title_show";
2856             signal: "elm,state,title,show";
2857             source: "elm";
2858             script {
2859                set_state(PART:"title_bg", "default", 0.0);
2860                set_state(PART:"title", "default", 0.0);
2861             }
2862          }
2863          program { name: "title_hide";
2864             signal: "elm,state,title,hide";
2865             source: "elm";
2866             script {
2867                set_state(PART:"title_bg", "hide", 0.0);
2868                set_state(PART:"title", "hide", 0.0);
2869             }
2870          }
2871          program { name: "prev_btn_show";
2872             signal: "elm,state,prev_btn,show";
2873             source: "elm";
2874             script {
2875                emit("elm,state,toolbar_bg,show", "elm");
2876             }
2877          }
2878          program { name: "prev_btn_hide";
2879             signal: "elm,state,prev_btn,hide";
2880             source: "elm";
2881             script {
2882                emit("elm,state,toolbar_bg,hide", "elm");
2883             }
2884          }
2885          program { name: "more_btn_show";
2886             signal: "elm,state,toolbar_more_btn,show";
2887             source: "elm";
2888             script {
2889                emit("elm,state,toolbar_bg,show", "elm");
2890             }
2891          }
2892          program { name: "more_btn_hide";
2893             signal: "elm,state,toolbar_more_btn,hide";
2894             source: "elm";
2895             script {
2896                emit("elm,state,toolbar_bg,hide", "elm");
2897             }
2898          }
2899          program { name: "toolbar_button1_show";
2900             signal: "elm,state,toolbar_button1,show";
2901             source: "elm";
2902             script {
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)
2906                  {
2907                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2908                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2909                  }
2910             }
2911          }
2912          program { name: "toolbar_button1_hide";
2913             signal: "elm,state,toolbar_button1,hide";
2914             source: "elm";
2915             script {
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);
2920             }
2921          }
2922          program { name: "toolbar_button2_show";
2923             signal: "elm,state,toolbar_button2,show";
2924             source: "elm";
2925             script {
2926                emit("elm,state,toolbar_bg,show", "elm");
2927                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2928                if (get_int(toolbar_buttons_visible) >= 2)
2929                  {
2930                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2931                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2932                  }
2933             }
2934          }
2935          program { name: "toolbar_button2_hide";
2936             signal: "elm,state,toolbar_button2,hide";
2937             source: "elm";
2938             script {
2939                emit("elm,state,toolbar_bg,hide", "elm");
2940                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2941                set_state(PART:"toolbar_button1", "default", 0.0);
2942                set_state(PART:"toolbar_button2", "default", 0.0);
2943             }
2944          }
2945          program { name: "toolbar_bg_show";
2946             signal: "elm,state,toolbar_bg,show";
2947             source: "elm";
2948             script {
2949                if (get_int(landscape) == 0)
2950                  set_state(PART:"toolbar_bg", "visible", 0.0);
2951                else
2952                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2953                set_int(tbar_bg, get_int(tbar_bg) + 1);
2954             }
2955          }
2956          program { name: "toolbar_bg_hide";
2957             signal: "elm,state,toolbar_bg,hide";
2958             source: "elm";
2959             script {
2960                set_int(tbar_bg, get_int(tbar_bg) - 1);
2961                if (get_int(tbar_bg) <= 0)
2962                  set_state(PART:"toolbar_bg", "default", 0.0);
2963             }
2964          }
2965          program { name: "toolbar_open_internal";
2966             signal: "elm,state,toolbar,open,internal";
2967             source: "elm";
2968             script {
2969                set_int(tbar_close, 0);
2970                if (get_int(landscape) == 0)
2971                  set_state(PART:"toolbar_bg", "visible", 0.0);
2972                else
2973                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2974             }
2975          }
2976          program { name: "toolbar_close_internal";
2977             signal: "elm,state,toolbar,close,internal";
2978             source: "elm";
2979             script {
2980                set_int(tbar_close, 1);
2981                set_state(PART:"toolbar_bg", "default", 0.0);
2982             }
2983          }
2984          program { name: "toolbar_open";
2985             signal: "elm,state,toolbar,open";
2986             source: "";
2987             script {
2988                if (get_int(landscape) == 0)
2989                  set_state(PART:"toolbar_bg", "visible", 0.0);
2990                else
2991                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
2992             }
2993             transition: LINEAR 0.2;
2994             after: "toolbar_open_internal";
2995          }
2996          program { name: "toolbar_close";
2997             signal: "elm,state,toolbar,close";
2998             source: "";
2999             action: STATE_SET "default" 0.0;
3000             target: "toolbar_bg";
3001             transition: LINEAR 0.2;
3002             after: "toolbar_close_internal";
3003          }
3004          program { name: "toolbar_instant_open";
3005             signal: "elm,state,toolbar,instant_open";
3006             source: "";
3007             script {
3008                emit("elm,state,toolbar,open,internal", "elm");
3009             }
3010          }
3011          program { name: "toolbar_instant_close";
3012             signal: "elm,state,toolbar,instant_close";
3013             source: "";
3014             script {
3015                emit("elm,state,toolbar,close,internal", "elm");
3016             }
3017          }
3018          program { name: "show_finished";
3019             action: SIGNAL_EMIT "elm,action,show,finished" "";
3020          }
3021          program { name: "pushed_finished";
3022             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
3023          }
3024          program { name: "popped_finished";
3025             action: SIGNAL_EMIT "elm,action,popped,finished" "";
3026          }
3027          program {
3028             name: "change_to_landscape";
3029             signal: "elm,state,landscape";
3030             source: "elm";
3031             script {
3032                if (get_int(landscape) == 0) {
3033                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
3034                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
3035                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
3036
3037                   new st[31];
3038                   new Float:vl;
3039                   get_state(PART:"toolbar_bg", st, 30, vl);
3040                   if (!strcmp(st, "visible"))
3041                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
3042
3043                   set_int(landscape, 1);
3044                }
3045             }
3046          }
3047          program {
3048             name: "change_to_portrait";
3049             signal: "elm,state,portrait";
3050             source: "elm";
3051             script {
3052                if (get_int(landscape) == 1) {
3053                   set_state(PART:"toolbar_more_btn", "default", 0.0);
3054                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
3055                   set_state(PART:"toolbar_button_padding", "default", 0.0);
3056
3057                   new st[31];
3058                   new Float:vl;
3059                   get_state(PART:"toolbar_bg", st, 30, vl);
3060                   if (!strcmp(st, "visible_landscape"))
3061                     set_state(PART:"toolbar_bg", "visible", 0.0);
3062
3063                   set_int(landscape, 0);
3064                }
3065             }
3066          }
3067          program { name: "landscape_mode";
3068             source: "elm";
3069             signal: "elm,state,orient,90";
3070             action: SIGNAL_EMIT "elm,state,landscape" "elm";
3071          }
3072          program { name: "landscape_mode2";
3073             source: "elm";
3074             signal: "elm,state,orient,270";
3075             action: SIGNAL_EMIT "elm,state,landscape" "elm";
3076          }
3077          program { name: "portrait_mode";
3078             source: "elm";
3079             signal: "elm,state,orient,0";
3080             action: SIGNAL_EMIT "elm,state,portrait" "elm";
3081          }
3082          program { name: "portrait_mode2";
3083             source: "elm";
3084             signal: "elm,state,orient,180";
3085             action: SIGNAL_EMIT "elm,state,portrait" "elm";
3086          }
3087       }
3088    }
3089
3090    group { name: "elm/naviframe/item/basic/uglib";
3091       parts {
3092          part { name: "base";
3093             type: RECT;
3094             mouse_events:  0;
3095             description { state: "default" 0.0;
3096                color: 255 255 255 255;
3097             }
3098             description { state: "right" 0.0;
3099                inherit: "default" 0.0;
3100                rel1.relative: 1.0 0.0;
3101                rel2.relative: 2.0 1.0;
3102                color: 255 255 255 0;
3103             }
3104          }
3105          part { name: "elm.swallow.content";
3106             type: SWALLOW;
3107             scale: 1;
3108             repeat_events: 0;
3109             clip_to: "base";
3110             description { state: "default" 0.0;
3111                align: 0.0 0.0;
3112                rel1.relative: 0.0 0.0;
3113                rel1.to: "base";
3114                rel2.relative: 1.0 1.0;
3115                rel2.to: "base";
3116             }
3117          }
3118       }
3119       programs {
3120          program { name: "content_new_pushed";
3121             signal: "elm,state,new,pushed,deferred";
3122             source: "elm";
3123             action: STATE_SET "default" 0.0;
3124             target: "base";
3125             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3126             after: "show_finished";
3127          }
3128          program { name: "content_cur_pushed";
3129             signal: "elm,state,cur,pushed,deferred";
3130             source: "elm";
3131             action: STATE_SET "default" 0.0;
3132             target: "base";
3133             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3134             after: "pushed_finished";
3135          }
3136          program { name: "content_prev_popped";
3137             signal: "elm,state,prev,popped,deferred";
3138             source: "elm";
3139             action: STATE_SET "default" 0.0;
3140             target: "base";
3141             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3142             after: "show_finished";
3143          }
3144          program { name: "content_cur_popped";
3145             signal: "elm,state,cur,popped,deferred";
3146             source: "elm";
3147             action: STATE_SET "right" 0.0;
3148             target: "base";
3149             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3150             after: "popped_finished";
3151          }
3152          program { name: "cur_pushed";
3153             signal: "elm,state,cur,pushed";
3154             source: "elm";
3155             action: STATE_SET "default" 0.0;
3156             target: "base";
3157          }
3158          program { name: "new_pushed";
3159             signal: "elm,state,new,pushed";
3160             source: "elm";
3161             action: STATE_SET "right" 0.0;
3162             target: "base";
3163          }
3164          program { name: "prev_popped";
3165             signal: "elm,state,prev,popped";
3166             source: "elm";
3167             action: STATE_SET "default" 0.0;
3168             target: "base";
3169          }
3170          program { name: "cur_popped";
3171             signal: "elm,state,cur,popped";
3172             source: "elm";
3173             action: STATE_SET "default" 0.0;
3174             target: "base";
3175          }
3176          program { name: "visible";
3177             signal: "elm,state,visible";
3178             source: "elm";
3179             action: STATE_SET "default" 0.0;
3180             target: "base";
3181          }
3182          program { name: "show_finished";
3183             action: SIGNAL_EMIT "elm,action,show,finished" "";
3184          }
3185          program { name: "pushed_finished";
3186             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
3187          }
3188          program { name: "popped_finished";
3189             action: SIGNAL_EMIT "elm,action,popped,finished" "";
3190          }
3191       }
3192    }
3193
3194    group { name: "elm/naviframe/item/dual_title/default";
3195       images {
3196          image: "00_badge_bg.png" COMP;
3197       }
3198       script {
3199          public tbar_bg = 0;     //Toolbar BG Show call count
3200          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
3201          public tbar_close = 0; //Toolbar lastest Open/Close status
3202          public title_buttons_visible = 0; //when both title buttons are visible
3203          public landscape = 0; //Landscape mode status
3204       }
3205       parts {
3206          part { name: "clipper";
3207             type: RECT;
3208             description { state: "default" 0.0;
3209                visible: 1;
3210             }
3211             description { state: "left" 0.0;
3212                visible: 0;
3213             }
3214          }
3215          part { name: "base";
3216             type: RECT;
3217             mouse_events:  0;
3218             description { state: "default" 0.0;
3219                visible: 0;
3220             }
3221             description { state: "left" 0.0;
3222                inherit: "default" 0.0;
3223                rel1.relative: -1.0 0.0;
3224                rel2.relative: 0.0 1.0;
3225             }
3226             description { state: "right" 0.0;
3227                inherit: "default" 0.0;
3228                rel1.relative: 1.0 0.0;
3229                rel2.relative: 2.0 1.0;
3230             }
3231          }
3232          part { name: "title_bg";
3233             type: RECT;
3234             scale: 1;
3235             description { state: "default" 0.0;
3236                min: 1 NAVIFRAME_TITLE_H_INC;
3237                align: 0.0 0.0;
3238                fixed: 0 1;
3239                rel1 { relative: 0.0 0.0; to: "base"; }
3240                rel2 { relative: 1.0 0.0; to: "base"; }
3241                color: NAVIFRAME_TITLE_BG_COLOR_INC;
3242             }
3243             description { state: "landscape" 0.0;
3244                inherit: "default" 0.0;
3245                min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
3246             }
3247             description { state: "hide" 0.0;
3248                inherit: "default" 0.0;
3249                min: 0 0;
3250                max: 0 0;
3251                fixed: 1 1;
3252             }
3253          }
3254          part { name: "title_clip";
3255             type: RECT;
3256             mouse_events: 0;
3257             clip_to: "clipper";
3258             description { state: "default" 0.0;
3259                rel1 { to_y: "title_bg"; }
3260                rel2 { to_y: "title_bg"; }
3261             }
3262          }
3263          part { name: "top_padding";
3264             type: RECT;
3265             mouse_events: 0;
3266             scale: 1;
3267             description {
3268                state: "default" 0.0;
3269                min: NAVIFRAME_TITLE_TOP_PADDING_INC;
3270                fixed: 0 1;
3271                align: 0.0 0.0;
3272                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3273                rel2 { relative: 1.0 0.0; to: "title_bg"; }
3274                visible: 0;
3275             }
3276             description {
3277                state: "landscape" 0.0;
3278                inherit: "default" 0.0;
3279                min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
3280             }
3281          }
3282          part { name: "right_padding";
3283             type: RECT;
3284             mouse_events: 0;
3285             scale: 1;
3286             description {
3287                state: "default" 0.0;
3288                min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
3289                fixed: 1 0;
3290                align: 1.0 0.0;
3291                rel1 { relative: 1.0 0.0; to: "title_bg"; }
3292                rel2 { relative: 1.0 1.0; to: "title_bg"; }
3293                visible: 0;
3294             }
3295          }
3296          part { name: "padding_center_text1";
3297             type: RECT;
3298             scale: 1;
3299             mouse_events: 0;
3300             description { state: "default" 0.0;
3301                min: NAVIFRAME_PADDING_INC;
3302                fixed: 1 0;
3303                align: 0.0 0.0;
3304                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3305                rel2 { relative: 0.0 1.0; to: "title_bg"; }
3306                visible: 0;
3307             }
3308          }
3309          part { name: "elm.swallow.content";
3310             type: SWALLOW;
3311             scale: 1;
3312             repeat_events: 0;
3313             clip_to: "content_clip";
3314             description { state: "default" 0.0;
3315                align: 0.0 0.0;
3316                rel1.relative: 0.0 1.0;
3317                rel1.to_x: "base";
3318                rel1.to_y: "title_bg";
3319                rel2.relative: 1.0 0.0;
3320                rel2.to_x: "base";
3321                rel2.to_y: "toolbar_bg";
3322             }
3323          }
3324          part { name: "content_clip";
3325             type: RECT;
3326             mouse_events: 0;
3327             clip_to: "clipper";
3328             description { state: "default" 0.0;
3329                rel1.to_y: "elm.swallow.content";
3330                rel2.to_y: "elm.swallow.content";
3331             }
3332          }
3333          part { name: "padding_bottom_text";
3334             type: RECT;
3335             mouse_events: 0;
3336             scale: 1;
3337             description { state: "default" 0.0;
3338                min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
3339                fixed: 0 1;
3340                align: 0.0 1.0;
3341                rel1 { relative: 0.0 1.0; to: "title_bg"; }
3342                rel2 { relative: 1.0 1.0; to: "title_bg"; }
3343                visible: 0;
3344             }
3345             description { state: "landscape" 0.0;
3346                inherit: "default" 0.0;
3347                min: NAVIFRAME_LANDSCAPE_BOTTOM_TEXT_PADDING_INC;
3348             }
3349          }
3350          part { name: "padding_center_text2";
3351             type: RECT;
3352             mouse_events: 0;
3353             scale: 1;
3354             description { state: "default" 0.0;
3355                min: NAVIFRAME_PADDING2_INC;
3356                fixed: 1 0;
3357                align: 1.0 0.5;
3358                rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
3359                rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
3360                visible: 0;
3361             }
3362          }
3363          part { name: "title1_max_area";
3364             type: RECT;
3365             mouse_events: 0;
3366             scale: 1;
3367             description { state: "default" 0.0;
3368                min: NAVIFRAME_DUAL_TITLE1_MAX_W_WITH_ONE_BUTTON_INC 0;
3369                max: NAVIFRAME_DUAL_TITLE1_MAX_W_WITH_ONE_BUTTON_INC -1;
3370                align: 0.0 0.5;
3371                fixed: 1 1;
3372                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
3373                rel2 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "padding_bottom_text"; }
3374                visible: 0;
3375             }
3376             description { state: "buttons_set" 0.0;
3377                inherit: "default" 0.0;
3378                min: NAVIFRAME_DUAL_TITLE1_MAX_W_WITH_TWO_BUTTON_INC 0;
3379                max: NAVIFRAME_DUAL_TITLE1_MAX_W_WITH_TWO_BUTTON_INC -1;
3380             }
3381          }
3382          part { name: "elm.text.title";
3383             type: TEXT;
3384             effect: FAR_SHADOW BOTTOM;
3385             scale: 1;
3386             clip_to: "title_clip";
3387             description { state: "default" 0.0;
3388                text { font: "Tizen:style=Bold";
3389                   size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3390                   min: 0 0;
3391                   max: 1 0;
3392                   align: 0.0 0.5;
3393                   text_class: "tizen";
3394                }
3395                color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3396                color3: 255 255 255 255;
3397                align: 0.0 0.5;
3398                fixed: 1 1;
3399                rel1 { to: "title1_max_area"; }
3400                rel2 { to: "title1_max_area"; }
3401             }
3402             description { state: "selected" 0.0;
3403                inherit: "default" 0.0;
3404                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3405             }
3406             description { state: "default_landscape" 0.0;
3407                inherit: "default" 0.0;
3408                text { font: "Tizen:style=Bold";
3409                   size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3410                   min: 0 0;
3411                   max: 1 0;
3412                   align: 0.0 0.5;
3413                   text_class: "tizen";
3414                }
3415             }
3416             description { state: "selected_landscape" 0.0;
3417                inherit: "default_landscape" 0.0;
3418                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3419             }
3420          }
3421          part { name: "click_event_title1_area";
3422             type: RECT;
3423             ignore_flags: ON_HOLD;
3424             description { state: "default" 0.0;
3425                min: NAVIFRAME_DUAL_TITLE1_MIN_W_INC 0;
3426                align: 0.0 0.5;
3427                fixed: 1 1;
3428                rel1 { to: "elm.text.title"; }
3429                rel2 { to: "elm.text.title"; }
3430                color: 0 0 0 0;
3431             }
3432          }
3433          part { name: "text.padding";
3434             type: RECT;
3435             scale: 1;
3436             clip_to: "title_clip";
3437             description { state: "default" 0.0;
3438                min: 30 0;
3439                align: 0.0 0.0;
3440                fixed: 1 0;
3441                rel1 { relative: 1.0 0.0; to: "click_event_title1_area"; }
3442                rel2 { relative: 1.0 1.0; to: "click_event_title1_area"; }
3443                visible: 0;
3444             }
3445          }
3446          part { name: "divider";
3447             type: RECT;
3448             description { state: "default" 0.0;
3449                min: 4 26;
3450                max: 4 26;
3451                fixed: 1 1;
3452                rel1.to: "text.padding";
3453                rel2.to: "text.padding";
3454                align: 0.5 0.5;
3455             }
3456          }
3457          part { name: "divider_left";
3458             type: RECT;
3459             clip_to: "divider";
3460             description { state: "default" 0.0;
3461                color: NAVIFRAME_DUAL_TITLE_DIVIDER_LEFT_COLOR_INC;
3462                rel1 { relative: 0.0 0.0; to: "divider"; }
3463                rel2 { relative: 0.5 1.0; to: "divider"; }
3464             }
3465          }
3466          part { name: "divider_right";
3467             type: RECT;
3468             clip_to: "divider";
3469             description { state: "default" 0.0;
3470                color: NAVIFRAME_DUAL_TITLE_DIVIDER_RIGHT_COLOR_INC;
3471                rel1 { relative: 0.5 0.0; to: "divider"; }
3472                rel2 { relative: 1.0 1.0; to: "divider"; }
3473             }
3474          }
3475          part { name: "elm.text.title2";
3476             type: TEXT;
3477             effect: FAR_SHADOW BOTTOM;
3478             scale: 1;
3479             clip_to: "title_clip";
3480             description { state: "default" 0.0;
3481                text { font: "Tizen:style=Bold";
3482                   size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3483                   min: 0 0;
3484                   max: 1 0;
3485                   align: 0.0 0.5;
3486                   text_class: "tizen";
3487                }
3488                color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3489                color3: 255 255 255 255;
3490                align: 0.0 0.5;
3491                fixed: 1 1;
3492                rel1 { relative: 1.0 1.0; to_x: "text.padding"; to_y: "top_padding"; }
3493                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
3494             }
3495             description { state: "selected" 0.0;
3496                inherit: "default" 0.0;
3497                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3498             }
3499             description { state: "default_landscape" 0.0;
3500                inherit: "default" 0.0;
3501                text { font: "Tizen:style=Bold";
3502                   size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3503                   min: 0 0;
3504                   max: 1 0;
3505                   align: 0.0 0.5;
3506                   text_class: "tizen";
3507                }
3508             }
3509             description { state: "selected_landscape" 0.0;
3510                inherit: "default_landscape" 0.0;
3511                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3512             }
3513          }
3514          part { name: "click_event_title2_area";
3515              type: RECT;
3516              ignore_flags: ON_HOLD;
3517              description { state: "default" 0.0;
3518                 rel1 { to: "elm.text.title2"; }
3519                 rel2 { to: "elm.text.title2"; }
3520                 color: 0 0 0 0;
3521              }
3522          }
3523          part { name: "badge_top_padding";
3524             type: RECT;
3525             scale: 1;
3526             description { state: "default" 0.0;
3527                visible: 0;
3528                min: NAVIFRAME_BADGE_TOP_PADDING_INC;
3529                fixed: 0 1;
3530                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3531                rel2 { relative: 1.0 0.0; to: "title_bg"; }
3532                align: 0.0 0.0;
3533             }
3534          }
3535          part { name: "badge_left_padding";
3536             type: RECT;
3537             scale: 1;
3538             description { state: "default" 0.0;
3539                visible: 0;
3540                min: 0 0;
3541                fixed: 1 1;
3542                rel1 { relative: 0.0 1.0; to_x: "divider"; to_y: "badge_top_padding"; }
3543                rel2 { relative: 0.0 0.5; to_x: "divider"; to_y: "title_bg"; }
3544                align: 0.0 0.5;
3545             }
3546             description { state: "visible" 0.0;
3547                inherit: "default" 0.0;
3548                min: NAVIFRAME_PADDING_BADGE_INC;
3549             }
3550          }
3551          part { name: "right.padding.text";
3552             type: RECT;
3553             scale: 1;
3554             description {
3555                state: "default" 0.0;
3556                visible: 0;
3557                fixed: 1 1;
3558                min: 8 54;
3559                rel1 {
3560                   to: "badge_left_padding";
3561                   relative: 0.0 1.0;
3562                }
3563                rel2 {
3564                   to: "badge_left_padding";
3565                   relative: 0.0 1.0;
3566                }
3567                align: 1.0 1.0;
3568             }
3569          }
3570          part { name: "left.padding.text";
3571             type: RECT;
3572             scale: 1;
3573             description {
3574                state: "default" 0.0;
3575                visible: 0;
3576                fixed: 1 1;
3577                min: 13 54;
3578                rel1 {
3579                   to: "title_badge";
3580                   relative: 0.0 1.0;
3581                }
3582                rel2 {
3583                   to: "title_badge";
3584                   relative: 0.0 1.0;
3585                }
3586                align: 1.0 1.0;
3587             }
3588          }
3589          part { name: "badge_bg";
3590             type: IMAGE;
3591             scale: 1;
3592             clip_to: "title_clip";
3593             description { state: "default" 0.0;
3594                visible: 0;
3595                fixed: 1 1;
3596                rel1 {
3597                   to: "left.padding.text";
3598                   relative: 0.0 0.0;
3599                }
3600                rel2 {
3601                   to: "right.padding.text";
3602                   relative: 1.0 1.0;
3603                }
3604                image {
3605                   normal: "00_badge_bg.png";
3606                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3607                   border_scale: 1;
3608                }
3609             }
3610             description { state: "visible" 0.0;
3611                inherit: "default" 0.0;
3612                visible: 1;
3613                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3614                fixed: 1 1;
3615             }
3616          }
3617          part { name: "title_badge";
3618             type: TEXT;
3619             mouse_events: 0;
3620             scale: 1;
3621             description {
3622                state: "default" 0.0;
3623                visible: 0;
3624                rel1 {
3625                   to: "right.padding.text";
3626                   relative: 0.0 0.0;
3627                }
3628                rel2 {
3629                   to: "right.padding.text";
3630                   relative: 0.0 1.0;
3631                }
3632                fixed: 1 0;
3633                align: 1.0 0.5;
3634                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3635                text {
3636                   font: "Tizen:style=Bold";
3637                   size: NAVIFRAME_BADGE_TEXT_H_INC;
3638                   min: 1 1;
3639                   max: 1 0;
3640                }
3641             }
3642             description { state: "visible" 0.0;
3643                inherit: "default" 0.0;
3644                visible: 1;
3645             }
3646          }
3647          part { name: "badge_left_padding2";
3648             type: RECT;
3649             scale: 1;
3650             description { state: "default" 0.0;
3651                visible: 0;
3652                min: 0 0;
3653                fixed: 1 1;
3654                rel1 { relative: 1.0 1.0; to_x: "elm.text.title2"; to_y: "badge_top_padding"; }
3655                rel2 { relative: 1.0 0.5; to_x: "elm.text.title2"; to_y: "title_bg"; }
3656                align: 0.0 0.5;
3657             }
3658             description { state: "visible" 0.0;
3659                inherit: "default" 0.0;
3660                min: NAVIFRAME_PADDING_INC;
3661             }
3662          }
3663          part { name: "right.padding.text2";
3664             type: RECT;
3665             scale: 1;
3666             description {
3667                state: "default" 0.0;
3668                visible: 0;
3669                fixed: 1 1;
3670                min: 8 54;
3671                rel1 {
3672                   to: "badge_left_padding2";
3673                   relative: 1.0 1.0;
3674                }
3675                rel2 {
3676                   to: "badge_left_padding2";
3677                   relative: 1.0 1.0;
3678                }
3679                align: 1.0 1.0;
3680             }
3681          }
3682          part { name: "left.padding.text2";
3683             type: RECT;
3684             scale: 1;
3685             description {
3686                state: "default" 0.0;
3687                visible: 0;
3688                fixed: 1 1;
3689                min: 13 54;
3690                rel1 {
3691                   to: "title2_badge";
3692                   relative: 0.0 1.0;
3693                }
3694                rel2 {
3695                   to: "title2_badge";
3696                   relative: 0.0 1.0;
3697                }
3698                align: 1.0 1.0;
3699             }
3700          }
3701          part { name: "badge2_bg";
3702             type: IMAGE;
3703             scale: 1;
3704             clip_to: "title_clip";
3705             description { state: "default" 0.0;
3706                visible: 0;
3707                fixed: 1 1;
3708                rel1 {
3709                   to: "left.padding.text2";
3710                   relative: 0.0 0.0;
3711                }
3712                rel2 {
3713                   to: "right.padding.text2";
3714                   relative: 1.0 1.0;
3715                }
3716                image {
3717                   normal: "00_badge_bg.png";
3718                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3719                   border_scale: 1;
3720                }
3721             }
3722             description { state: "visible" 0.0;
3723                inherit: "default" 0.0;
3724                visible: 1;
3725                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3726                fixed: 1 1;
3727             }
3728          }
3729          part { name: "title2_badge";
3730             type: TEXT;
3731             mouse_events: 0;
3732             scale: 1;
3733             description {
3734                state: "default" 0.0;
3735                visible: 0;
3736                rel1 {
3737                   to: "right.padding.text2";
3738                   relative: 0.0 0.0;
3739                }
3740                rel2 {
3741                   to: "right.padding.text2";
3742                   relative: 0.0 1.0;
3743                }
3744                fixed: 1 0;
3745                align: 1.0 0.5;
3746                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3747                text {
3748                   font: "Tizen:style=Bold";
3749                   size: NAVIFRAME_BADGE_TEXT_H_INC;
3750                   min: 1 1;
3751                   max: 1 0;
3752                }
3753             }
3754             description { state: "visible" 0.0;
3755                inherit: "default" 0.0;
3756                visible: 1;
3757             }
3758          }
3759          part { name: "access.title";
3760             type: RECT;
3761             repeat_events: 1;
3762             description { state: "default" 0.0;
3763                fixed: 1 1;
3764                rel1.to: "title_bg";
3765                rel2.to: "title_bg";
3766                color: 0 0 0 0;
3767             }
3768          }
3769          part { name: "title_left_btn";
3770             type: SWALLOW;
3771             scale: 1;
3772             clip_to: "title_clip";
3773             description { state: "default" 0.0;
3774                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3775                fixed: 1 1;
3776                align: 1.0 0.5;
3777                rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
3778                rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
3779             }
3780             description { state: "landscape" 0.0;
3781                inherit: "default" 0.0;
3782                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3783             }
3784          }
3785          part { name: "title_right_btn";
3786             type: SWALLOW;
3787             scale: 1;
3788             clip_to: "title_clip";
3789             description { state: "default" 0.0;
3790                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3791                align: 1.0 0.5;
3792                fixed: 1 1;
3793                rel1 { relative: 0.0 0.0; to: "right_padding"; }
3794                rel2 { relative: 0.0 1.0; to: "right_padding"; }
3795             }
3796             description { state: "landscape" 0.0;
3797                inherit: "default" 0.0;
3798                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3799             }
3800          }
3801          part { name: "toolbar_bg";
3802             type: RECT;
3803             scale: 1;
3804             description { state: "default" 0.0;
3805                min: 0 0;
3806                max: 999999 0;
3807                fixed: 0 1;
3808                align: 0.0 1.0;
3809                visible: 0;
3810                rel1 { to: "base"; }
3811                rel2 { to: "base"; }
3812                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
3813             }
3814             description { state: "visible" 0.0;
3815                inherit: "default" 0.0;
3816                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3817                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3818                visible: 1;
3819             }
3820             description { state: "visible_landscape" 0.0;
3821                inherit: "default" 0.0;
3822                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3823                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3824                visible: 1;
3825             }
3826          }
3827          part { name: "more_btn_bg";
3828             type: RECT;
3829             scale: 1;
3830             mouse_events: 0;
3831             description { state: "default" 0.0;
3832                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3833                fixed: 1 0;
3834                align: 0.0 0.0;
3835                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
3836                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
3837                visible: 0;
3838             }
3839          }
3840          part { name: "toolbar_more_btn";
3841             type: SWALLOW;
3842             scale: 1;
3843             clip_to: "toolbar_clip";
3844             description { state: "default" 0.0;
3845                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3846                fixed: 1 1;
3847                rel1.to: "more_btn_bg";
3848                rel2.to: "more_btn_bg";
3849             }
3850             description { state: "landscape" 0.0;
3851                inherit: "default" 0.0;
3852                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3853             }
3854          }
3855          part { name: "prev_btn_bg";
3856             type: RECT;
3857             scale: 1;
3858             mouse_events: 0;
3859             description { state: "default" 0.0;
3860                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3861                fixed: 1 0;
3862                align: 1.0 0.0;
3863                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
3864                rel2.to: "toolbar_bg";
3865                visible: 0;
3866             }
3867          }
3868          part { name: "elm.swallow.prev_btn";
3869             type: SWALLOW;
3870             scale: 1;
3871             clip_to: "toolbar_clip";
3872             description { state: "default" 0.0;
3873                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3874                fixed: 1 1;
3875                align: 0.5 0.5;
3876                rel1.to: "prev_btn_bg";
3877                rel2.to: "prev_btn_bg";
3878             }
3879             description { state: "landscape" 0.0;
3880                inherit: "default" 0.0;
3881                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3882             }
3883          }
3884          part { name: "toolbar_btns_area";
3885             type: RECT;
3886             mouse_events: 0;
3887             description { state: "default" 0.0;
3888                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
3889                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
3890                visible: 0;
3891             }
3892          }
3893          part { name: "toolbar_clip";
3894             type: RECT;
3895             mouse_events: 0;
3896             clip_to: "clipper";
3897             description { state: "default" 0.0;
3898                rel1 { to_y: "toolbar_bg"; }
3899                rel2 { to_y: "toolbar_bg"; }
3900             }
3901          }
3902          part { name: "toolbar_button1";
3903             type: SWALLOW;
3904             scale: 1;
3905             clip_to: "toolbar_clip";
3906             description { state: "default" 0.0;
3907                fixed: 1 1;
3908                align: 0.5 0.5;
3909                rel1.to: "toolbar_btns_area";
3910                rel2.to: "toolbar_btns_area";
3911             }
3912             description { state: "buttons_set" 0.0;
3913                inherit: "default" 0.0;
3914                align: 1.0 0.5;
3915                rel2 {
3916                   relative: 0.0 1.0;
3917                   to: "toolbar_button_padding";
3918                }
3919             }
3920          }
3921          part { name: "toolbar_button_padding";
3922             type: RECT;
3923             scale : 1;
3924             description { state: "default" 0.0;
3925                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
3926                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
3927                fixed : 1 0;
3928                visible: 0;
3929                align: 0.5 0.5;
3930                rel1.to: "toolbar_btns_area";
3931                rel2.to: "toolbar_btns_area";
3932             }
3933             description { state: "landscape" 0.0;
3934                inherit: "default" 0.0;
3935                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
3936                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
3937             }
3938          }
3939          part { name: "toolbar_button2";
3940             type: SWALLOW;
3941             scale: 1;
3942             clip_to: "toolbar_clip";
3943             description { state: "default" 0.0;
3944                fixed: 1 1;
3945                align: 0.5 0.5;
3946                rel1.to: "toolbar_btns_area";
3947                rel2.to: "toolbar_btns_area";
3948             }
3949             description { state: "buttons_set" 0.0;
3950                inherit: "default" 0.0;
3951                align: 0.0 0.5;
3952                rel1 {
3953                   relative: 1.0 0.0;
3954                   to: "toolbar_button_padding";
3955                }
3956             }
3957          }
3958       }
3959       programs {
3960          program { name: "content_new_pushed";
3961             signal: "elm,state,new,pushed,deferred";
3962             source: "elm";
3963             action: STATE_SET "default" 0.0;
3964             target: "base";
3965             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3966             after: "show_finished";
3967          }
3968          program { name: "content_cur_pushed";
3969             signal: "elm,state,cur,pushed,deferred";
3970             source: "elm";
3971             action: STATE_SET "left" 0.0;
3972             target: "base";
3973             target: "clipper";
3974             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3975             after: "pushed_finished";
3976          }
3977          program { name: "content_prev_popped";
3978             signal: "elm,state,prev,popped,deferred";
3979             source: "elm";
3980             action: STATE_SET "default" 0.0;
3981             target: "base";
3982             target: "clipper";
3983             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3984             after: "show_finished";
3985          }
3986          program { name: "content_cur_popped";
3987             signal: "elm,state,cur,popped,deferred";
3988             source: "elm";
3989             action: STATE_SET "right" 0.0;
3990             target: "base";
3991             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3992             after: "popped_finished";
3993          }
3994          program { name: "cur_pushed";
3995             signal: "elm,state,cur,pushed";
3996             source: "elm";
3997             action: STATE_SET "default" 0.0;
3998             target: "base";
3999          }
4000          program { name: "new_pushed";
4001             signal: "elm,state,new,pushed";
4002             source: "elm";
4003             action: STATE_SET "right" 0.0;
4004             target: "base";
4005          }
4006          program { name: "prev_popped";
4007             signal: "elm,state,prev,popped";
4008             source: "elm";
4009             action: STATE_SET "left" 0.0;
4010             target: "base";
4011          }
4012          program { name: "cur_popped";
4013             signal: "elm,state,cur,popped";
4014             source: "elm";
4015             action: STATE_SET "default" 0.0;
4016             target: "base";
4017          }
4018          program { name: "visible";
4019             signal: "elm,state,visible";
4020             source: "elm";
4021             action: STATE_SET "default" 0.0;
4022             target: "base";
4023          }
4024          program { name: "title_show";
4025             signal: "elm,state,title,show";
4026             source: "elm";
4027             script {
4028                if (get_int(landscape) == 0)
4029                  set_state(PART:"title_bg", "default", 0.0);
4030                else
4031                  set_state(PART:"title_bg", "landscape", 0.0);
4032             }
4033          }
4034          program { name: "title_hide";
4035             signal: "elm,state,title,hide";
4036             source: "elm";
4037             script {
4038                set_state(PART:"title_bg", "hide", 0.0);
4039             }
4040          }
4041          program { name: "title_left_btn_show";
4042             signal: "elm,state,title_left_btn,show";
4043             source: "elm";
4044             script {
4045                set_int(title_buttons_visible, get_int(title_buttons_visible) + 1);
4046                if (get_int(title_buttons_visible) >= 2)
4047                  set_state(PART:"title1_max_area", "buttons_set", 0.0);
4048             }
4049          }
4050          program { name: "title_left_btn_hide";
4051             signal: "elm,state,title_left_btn,hide";
4052             source: "elm";
4053             script {
4054                set_int(title_buttons_visible, get_int(title_buttons_visible) - 1);
4055                set_state(PART:"title1_max_area", "default", 0.0);
4056             }
4057          }
4058          program { name: "title_right_btn_show";
4059             signal: "elm,state,title_right_btn,show";
4060             source: "elm";
4061             script {
4062                set_int(title_buttons_visible, get_int(title_buttons_visible) + 1);
4063                if (get_int(title_buttons_visible) >= 2)
4064                  set_state(PART:"title1_max_area", "buttons_set", 0.0);
4065             }
4066          }
4067          program { name: "title_right_btn_hide";
4068             signal: "elm,state,title_right_btn,hide";
4069             source: "elm";
4070             script {
4071                set_int(title_buttons_visible, get_int(title_buttons_visible) - 1);
4072                set_state(PART:"title1_max_area", "default", 0.0);
4073             }
4074          }
4075          program { name: "prev_btn_show";
4076             signal: "elm,state,prev_btn,show";
4077             source: "elm";
4078             script {
4079                emit("elm,state,toolbar_bg,show", "elm");
4080             }
4081          }
4082          program { name: "prev_btn_hide";
4083             signal: "elm,state,prev_btn,hide";
4084             source: "elm";
4085             script {
4086                emit("elm,state,toolbar_bg,hide", "elm");
4087             }
4088          }
4089          program { name: "more_btn_show";
4090             signal: "elm,state,toolbar_more_btn,show";
4091             source: "elm";
4092             script {
4093                emit("elm,state,toolbar_bg,show", "elm");
4094             }
4095          }
4096          program { name: "more_btn_hide";
4097             signal: "elm,state,toolbar_more_btn,hide";
4098             source: "elm";
4099             script {
4100                emit("elm,state,toolbar_bg,hide", "elm");
4101             }
4102          }
4103          program { name: "toolbar_button1_show";
4104             signal: "elm,state,toolbar_button1,show";
4105             source: "elm";
4106             script {
4107                emit("elm,state,toolbar_bg,show", "elm");
4108                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
4109                if (get_int(toolbar_buttons_visible) >= 2)
4110                  {
4111                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
4112                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
4113                  }
4114             }
4115          }
4116          program { name: "toolbar_button1_hide";
4117             signal: "elm,state,toolbar_button1,hide";
4118             source: "elm";
4119             script {
4120                emit("elm,state,toolbar_bg,hide", "elm");
4121                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4122                set_state(PART:"toolbar_button1", "default", 0.0);
4123                set_state(PART:"toolbar_button2", "default", 0.0);
4124             }
4125          }
4126          program { name: "toolbar_button2_show";
4127             signal: "elm,state,toolbar_button2,show";
4128             source: "elm";
4129             script {
4130                emit("elm,state,toolbar_bg,show", "elm");
4131                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
4132                if (get_int(toolbar_buttons_visible) >= 2)
4133                  {
4134                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
4135                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
4136                  }
4137             }
4138          }
4139          program { name: "toolbar_button2_hide";
4140             signal: "elm,state,toolbar_button2,hide";
4141             source: "elm";
4142             script {
4143                emit("elm,state,toolbar_bg,hide", "elm");
4144                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4145                set_state(PART:"toolbar_button1", "default", 0.0);
4146                set_state(PART:"toolbar_button2", "default", 0.0);
4147             }
4148          }
4149          program { name: "toolbar_bg_show";
4150             signal: "elm,state,toolbar_bg,show";
4151             source: "elm";
4152             script {
4153                if (get_int(landscape) == 0)
4154                  set_state(PART:"toolbar_bg", "visible", 0.0);
4155                else
4156                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4157                set_int(tbar_bg, get_int(tbar_bg) + 1);
4158             }
4159          }
4160          program { name: "toolbar_bg_hide";
4161             signal: "elm,state,toolbar_bg,hide";
4162             source: "elm";
4163             script {
4164                set_int(tbar_bg, get_int(tbar_bg) - 1);
4165                if (get_int(tbar_bg) <= 0)
4166                  set_state(PART:"toolbar_bg", "default", 0.0);
4167             }
4168          }
4169          program { name: "toolbar_open_internal";
4170             signal: "elm,state,toolbar,open,internal";
4171             source: "elm";
4172             script {
4173                set_int(tbar_close, 0);
4174                if (get_int(landscape) == 0)
4175                  set_state(PART:"toolbar_bg", "visible", 0.0);
4176                else
4177                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4178             }
4179          }
4180          program { name: "toolbar_close_internal";
4181             signal: "elm,state,toolbar,close,internal";
4182             source: "elm";
4183             script {
4184                set_int(tbar_close, 1);
4185                set_state(PART:"toolbar_bg", "default", 0.0);
4186             }
4187          }
4188          program { name: "toolbar_open";
4189             signal: "elm,state,toolbar,open";
4190             source: "";
4191             script {
4192                if (get_int(landscape) == 0)
4193                  set_state(PART:"toolbar_bg", "visible", 0.0);
4194                else
4195                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4196             }
4197             transition: LINEAR 0.2;
4198             after: "toolbar_open_internal";
4199          }
4200          program { name: "toolbar_close";
4201             signal: "elm,state,toolbar,close";
4202             source: "";
4203             action: STATE_SET "default" 0.0;
4204             target: "toolbar_bg";
4205             transition: LINEAR 0.2;
4206             after: "toolbar_close_internal";
4207          }
4208          program { name: "toolbar_instant_open";
4209             signal: "elm,state,toolbar,instant_open";
4210             source: "";
4211             script {
4212                emit("elm,state,toolbar,open,internal", "elm");
4213             }
4214          }
4215          program { name: "toolbar_instant_close";
4216             signal: "elm,state,toolbar,instant_close";
4217             source: "";
4218             script {
4219                emit("elm,state,toolbar,close,internal", "elm");
4220             }
4221          }
4222          program { name: "show_finished";
4223             action: SIGNAL_EMIT "elm,action,show,finished" "";
4224          }
4225          program { name: "pushed_finished";
4226             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
4227          }
4228          program { name: "popped_finished";
4229             action: SIGNAL_EMIT "elm,action,popped,finished" "";
4230          }
4231          program {
4232             name: "init_title_selection";
4233             signal: "elm,state,title_label,show";
4234             source: "elm";
4235             script {
4236                new st[31];
4237                new Float:vl;
4238                get_state(PART:"elm.text.title", st, 30, vl);
4239                if (get_int(landscape) == 0)
4240                  {
4241                     set_state(PART:"elm.text.title", "selected", 0.0);
4242                     set_state(PART:"elm.text.title2", "default", 0.0);
4243                  }
4244                else
4245                  {
4246                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4247                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4248                  }
4249             }
4250          }
4251          program {
4252             name: "title1_clicked";
4253             signal: "mouse,clicked,1";
4254             source: "click_event_title1_area";
4255             after: "touch_snd";
4256             script {
4257                new st[31];
4258                new Float:vl;
4259                get_state(PART:"elm.text.title", st, 30, vl);
4260                if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4261                  {
4262                     set_state(PART:"elm.text.title", "selected", 0.0);
4263                     set_state(PART:"elm.text.title2", "default", 0.0);
4264                  }
4265                else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4266                  {
4267                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4268                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4269                  }
4270                emit("elm,action,title1,clicked", "");
4271             }
4272          }
4273          program {
4274             name: "title2_clicked";
4275             signal: "mouse,clicked,1";
4276             source: "click_event_title2_area";
4277             after: "touch_snd";
4278             script {
4279                new st[31];
4280                new Float:vl;
4281                get_state(PART:"elm.text.title2", st, 30, vl);
4282                if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4283                  {
4284                     set_state(PART:"elm.text.title2", "selected", 0.0);
4285                     set_state(PART:"elm.text.title", "default", 0.0);
4286                  }
4287                else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4288                  {
4289                     set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4290                     set_state(PART:"elm.text.title", "default_landscape", 0.0);
4291                  }
4292                emit("elm,action,title2,clicked", "");
4293             }
4294          }
4295          program { name: "touch_snd";
4296             action: PLAY_SAMPLE "touch_sound" 1.0;
4297          }
4298          program { name: "title1_selected";
4299             signal: "elm,state,title1,selected";
4300             source: "";
4301             script {
4302               if (get_int(landscape) == 0)
4303                 {
4304                    set_state(PART:"elm.text.title", "selected", 0.0);
4305                    set_state(PART:"elm.text.title2", "default", 0.0);
4306                 }
4307               else
4308                 {
4309                    set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4310                    set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4311                 }
4312             }
4313          }
4314          program { name: "title1_unselected";
4315             signal: "elm,state,title1,unselected";
4316             source: "";
4317             script {
4318                if (get_int(landscape) == 0)
4319                  set_state(PART:"elm.text.title", "default", 0.0);
4320                else
4321                  set_state(PART:"elm.text.title", "default_landscape", 0.0);
4322             }
4323          }
4324          program { name: "title2_selected";
4325             signal: "elm,state,title2,selected";
4326             source: "";
4327             script {
4328               if (get_int(landscape) == 0)
4329                 {
4330                    set_state(PART:"elm.text.title2", "selected", 0.0);
4331                    set_state(PART:"elm.text.title", "default", 0.0);
4332                 }
4333               else
4334                 {
4335                    set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4336                    set_state(PART:"elm.text.title", "default_landscape", 0.0);
4337                 }
4338             }
4339          }
4340          program { name: "title2_unselected";
4341             signal: "elm,state,title2,unselected";
4342             source: "";
4343             script {
4344                if (get_int(landscape) == 0)
4345                  set_state(PART:"elm.text.title2", "default", 0.0);
4346                else
4347                  set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4348             }
4349          }
4350          program {
4351             name: "badge_show";
4352             signal: "elm,state,title_badge,show";
4353             source: "elm";
4354             script {
4355                set_state(PART:"badge_bg", "visible", 0.0);
4356                set_state(PART:"title_badge", "visible", 0.0);
4357             }
4358          }
4359          program {
4360             name: "badge_hide";
4361             signal: "elm,state,title_badge,hide";
4362             source: "elm";
4363             script {
4364                set_state(PART:"badge_bg", "default", 0.0);
4365                set_state(PART:"title_badge", "default", 0.0);
4366             }
4367          }
4368          program {
4369             name: "badge2_show";
4370             signal: "elm,state,title2_badge,show";
4371             source: "elm";
4372             script {
4373                set_state(PART:"badge_left_padding2", "visible", 0.0);
4374                set_state(PART:"badge2_bg", "visible", 0.0);
4375                set_state(PART:"title2_badge", "visible", 0.0);
4376             }
4377          }
4378          program {
4379             name: "badge2_hide";
4380             signal: "elm,state,title2_badge,hide";
4381             source: "elm";
4382             script {
4383                set_state(PART:"badge_left_padding2", "default", 0.0);
4384                set_state(PART:"badge2_bg", "default", 0.0);
4385                set_state(PART:"title2_badge", "default", 0.0);
4386             }
4387          }
4388          program {
4389             name: "change_to_landscape";
4390             signal: "elm,state,landscape";
4391             source: "elm";
4392             script {
4393                if (get_int(landscape) == 0) {
4394                   set_state(PART:"top_padding", "landscape", 0.0);
4395                   set_state(PART:"padding_bottom_text", "landscape", 0.0);
4396                   set_state(PART:"title_left_btn", "landscape", 0.0);
4397                   set_state(PART:"title_right_btn", "landscape", 0.0);
4398                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
4399                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
4400                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
4401
4402                   new st[31];
4403                   new Float:vl;
4404                   get_state(PART:"title_bg", st, 30, vl);
4405                   if (!strcmp(st, "default"))
4406                     set_state(PART:"title_bg", "landscape", 0.0);
4407
4408                   get_state(PART:"elm.text.title", st, 30, vl);
4409                   if (!strcmp(st, "default"))
4410                     set_state(PART:"elm.text.title", "default_landscape", 0.0);
4411                   else
4412                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4413
4414                   get_state(PART:"elm.text.title2", st, 30, vl);
4415                   if (!strcmp(st, "default"))
4416                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4417                   else
4418                     set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4419
4420                   get_state(PART:"toolbar_bg", st, 30, vl);
4421                   if (!strcmp(st, "visible"))
4422                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4423
4424                   set_int(landscape, 1);
4425                }
4426             }
4427          }
4428          program {
4429             name: "change_to_portrait";
4430             signal: "elm,state,portrait";
4431             source: "elm";
4432             script {
4433                if (get_int(landscape) == 1) {
4434                   set_state(PART:"top_padding", "default", 0.0);
4435                   set_state(PART:"padding_bottom_text", "default", 0.0);
4436                   set_state(PART:"title_left_btn", "default", 0.0);
4437                   set_state(PART:"title_right_btn", "default", 0.0);
4438                   set_state(PART:"toolbar_more_btn", "default", 0.0);
4439                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
4440                   set_state(PART:"toolbar_button_padding", "default", 0.0);
4441
4442                   new st[31];
4443                   new Float:vl;
4444                   get_state(PART:"title_bg", st, 30, vl);
4445                   if (!strcmp(st, "landscape"))
4446                     set_state(PART:"title_bg", "default", 0.0);
4447
4448                   get_state(PART:"elm.text.title", st, 30, vl);
4449                   if (!strcmp(st, "default_landscape"))
4450                     set_state(PART:"elm.text.title", "default", 0.0);
4451                   else
4452                     set_state(PART:"elm.text.title", "selected", 0.0);
4453
4454                   get_state(PART:"elm.text.title2", st, 30, vl);
4455                   if (!strcmp(st, "default_landscape"))
4456                     set_state(PART:"elm.text.title2", "default", 0.0);
4457                   else
4458                     set_state(PART:"elm.text.title2", "selected", 0.0);
4459
4460                   get_state(PART:"toolbar_bg", st, 30, vl);
4461                   if (!strcmp(st, "visible_landscape"))
4462                     set_state(PART:"toolbar_bg", "visible", 0.0);
4463
4464                   set_int(landscape, 0);
4465                }
4466             }
4467          }
4468          program { name: "landscape_mode";
4469             source: "elm";
4470             signal: "elm,state,orient,90";
4471             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4472          }
4473          program { name: "landscape_mode2";
4474             source: "elm";
4475             signal: "elm,state,orient,270";
4476             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4477          }
4478          program { name: "portrait_mode";
4479             source: "elm";
4480             signal: "elm,state,orient,0";
4481             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4482          }
4483          program { name: "portrait_mode2";
4484             source: "elm";
4485             signal: "elm,state,orient,180";
4486             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4487          }
4488       }
4489    }