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