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