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