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