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