[naviframe & segment control] Fix not to use 00_divider_line.png as divider
[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 landscape = 0; //Landscape mode status
3147       }
3148       parts {
3149          part { name: "base";
3150             type: RECT;
3151             mouse_events:  0;
3152             description { state: "default" 0.0;
3153                visible: 0;
3154             }
3155             description { state: "left" 0.0;
3156                inherit: "default" 0.0;
3157                rel1.relative: -1.0 0.0;
3158                rel2.relative: 0.0 1.0;
3159             }
3160             description { state: "right" 0.0;
3161                inherit: "default" 0.0;
3162                rel1.relative: 1.0 0.0;
3163                rel2.relative: 2.0 1.0;
3164             }
3165          }
3166          part { name: "title_bg";
3167             type: RECT;
3168             scale: 1;
3169             description { state: "default" 0.0;
3170                min: 1 NAVIFRAME_TITLE_H_INC;
3171                align: 0.0 0.0;
3172                fixed: 0 1;
3173                rel1 { relative: 0.0 0.0; to: "base"; }
3174                rel2 { relative: 1.0 0.0; to: "base"; }
3175                color: NAVIFRAME_TITLE_BG_COLOR_INC;
3176             }
3177             description { state: "landscape" 0.0;
3178                inherit: "default" 0.0;
3179                min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
3180             }
3181             description { state: "hide" 0.0;
3182                inherit: "default" 0.0;
3183                min: 0 0;
3184                max: 0 0;
3185                fixed: 1 1;
3186             }
3187          }
3188          part { name: "title_clip";
3189             type: RECT;
3190             mouse_events: 0;
3191             description { state: "default" 0.0;
3192                rel1 { to: "title_bg"; }
3193                rel2 { to: "title_bg"; }
3194             }
3195          }
3196          part { name: "top_padding";
3197             type: RECT;
3198             mouse_events: 0;
3199             scale: 1;
3200             description {
3201                state: "default" 0.0;
3202                min: NAVIFRAME_TITLE_TOP_PADDING_INC;
3203                fixed: 0 1;
3204                align: 0.0 0.0;
3205                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3206                rel2 { relative: 1.0 0.0; to: "title_bg"; }
3207                visible: 0;
3208             }
3209             description {
3210                state: "landscape" 0.0;
3211                inherit: "default" 0.0;
3212                min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
3213             }
3214          }
3215          part { name: "right_padding";
3216             type: RECT;
3217             mouse_events: 0;
3218             scale: 1;
3219             description {
3220                state: "default" 0.0;
3221                min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
3222                fixed: 1 0;
3223                align: 1.0 0.0;
3224                rel1 { relative: 1.0 0.0; to: "title_bg"; }
3225                rel2 { relative: 1.0 1.0; to: "title_bg"; }
3226                visible: 0;
3227             }
3228          }
3229          part { name: "padding_center_text1";
3230             type: RECT;
3231             scale: 1;
3232             mouse_events: 0;
3233             description { state: "default" 0.0;
3234                min: NAVIFRAME_PADDING_INC;
3235                fixed: 1 0;
3236                align: 0.0 0.0;
3237                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3238                rel2 { relative: 0.0 1.0; to: "title_bg"; }
3239                visible: 0;
3240             }
3241          }
3242          part { name: "elm.swallow.content";
3243             type: SWALLOW;
3244             scale: 1;
3245             repeat_events: 0;
3246             clip_to: "content_clip";
3247             description { state: "default" 0.0;
3248                align: 0.0 0.0;
3249                rel1.relative: 0.0 1.0;
3250                rel1.to_x: "base";
3251                rel1.to_y: "title_bg";
3252                rel2.relative: 1.0 0.0;
3253                rel2.to_x: "base";
3254                rel2.to_y: "toolbar_bg";
3255             }
3256          }
3257          part { name: "content_clip";
3258             type: RECT;
3259             mouse_events: 0;
3260             description { state: "default" 0.0;
3261                rel1.to: "elm.swallow.content";
3262                rel2.to: "elm.swallow.content";
3263             }
3264          }
3265          part { name: "padding_bottom_text";
3266             type: RECT;
3267             mouse_events: 0;
3268             scale: 1;
3269             description { state: "default" 0.0;
3270                min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
3271                fixed: 0 1;
3272                align: 0.0 1.0;
3273                rel1 { relative: 0.0 1.0; to: "title_bg"; }
3274                rel2 { relative: 1.0 1.0; to: "title_bg"; }
3275                visible: 0;
3276             }
3277             description { state: "landscape" 0.0;
3278                inherit: "default" 0.0;
3279                min: NAVIFRAME_LANDSCAPE_BOTTOM_TEXT_PADDING_INC;
3280             }
3281          }
3282          part { name: "padding_center_text2";
3283             type: RECT;
3284             mouse_events: 0;
3285             scale: 1;
3286             description { state: "default" 0.0;
3287                min: NAVIFRAME_PADDING2_INC;
3288                fixed: 1 0;
3289                align: 1.0 0.5;
3290                rel1 { relative: 0.0 0.0; to: "title_left_btn"; }
3291                rel2 { relative: 0.0 1.0; to: "title_left_btn"; }
3292                visible: 0;
3293             }
3294          }
3295          part { name: "text_area_center_padding";
3296             type: RECT;
3297             mouse_events: 0;
3298             scale: 1;
3299             description { state: "default" 0.0;
3300                max: 30 -1;
3301                align: 0.5 0.0;
3302                fixed: 1 1;
3303                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
3304                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
3305                visible: 0;
3306             }
3307          }
3308          part { name: "elm.text.title";
3309             type: TEXT;
3310             effect: FAR_SHADOW BOTTOM;
3311             scale: 1;
3312             clip_to: "title_clip";
3313             description { state: "default" 0.0;
3314                text { font: "Tizen:style=Bold";
3315                   size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3316                   min: 0 0;
3317                   max: 1 0;
3318                   align: 0.0 0.5;
3319                   text_class: "tizen";
3320                }
3321                color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3322                color3: 255 255 255 255;
3323                align: 0.0 0.5;
3324                fixed: 1 1;
3325                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
3326                rel2 { relative: 0.0 0.0; to_x: "text_area_center_padding"; to_y: "padding_bottom_text"; }
3327             }
3328             description { state: "selected" 0.0;
3329                inherit: "default" 0.0;
3330                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3331             }
3332             description { state: "default_landscape" 0.0;
3333                inherit: "default" 0.0;
3334                text { font: "Tizen:style=Bold";
3335                   size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3336                   min: 0 0;
3337                   max: 1 0;
3338                   align: 0.0 0.5;
3339                   text_class: "tizen";
3340                }
3341             }
3342             description { state: "selected_landscape" 0.0;
3343                inherit: "default_landscape" 0.0;
3344                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3345             }
3346          }
3347          part { name: "click_event_title1_area";
3348              type: RECT;
3349              ignore_flags: ON_HOLD;
3350              description { state: "default" 0.0;
3351                 rel1 { to: "elm.text.title"; }
3352                 rel2 { to: "elm.text.title"; }
3353                 color: 0 0 0 0;
3354              }
3355          }
3356          part { name: "text.padding";
3357             type: RECT;
3358             scale: 1;
3359             clip_to: "title_clip";
3360             description { state: "default" 0.0;
3361                min: 30 0;
3362                align: 0.0 0.0;
3363                fixed: 1 0;
3364                rel1 { relative: 1.0 0.0; to: "elm.text.title"; }
3365                rel2 { relative: 1.0 1.0; to: "elm.text.title"; }
3366                visible: 0;
3367             }
3368          }
3369          part { name: "divider";
3370             type: RECT;
3371             description { state: "default" 0.0;
3372                min: 4 26;
3373                max: 4 26;
3374                fixed: 1 1;
3375                rel1.to: "text.padding";
3376                rel2.to: "text.padding";
3377                align: 0.5 0.5;
3378             }
3379          }
3380          part { name: "divider_left";
3381             type: RECT;
3382             clip_to: "divider";
3383             description { state: "default" 0.0;
3384                color: NAVIFRAME_DUAL_TITLE_DIVIDER_LEFT_COLOR_INC;
3385                rel1 { relative: 0.0 0.0; to: "divider"; }
3386                rel2 { relative: 0.5 1.0; to: "divider"; }
3387             }
3388          }
3389          part { name: "divider_right";
3390             type: RECT;
3391             clip_to: "divider";
3392             description { state: "default" 0.0;
3393                color: NAVIFRAME_DUAL_TITLE_DIVIDER_RIGHT_COLOR_INC;
3394                rel1 { relative: 0.5 0.0; to: "divider"; }
3395                rel2 { relative: 1.0 1.0; to: "divider"; }
3396             }
3397          }
3398          part { name: "elm.text.title2";
3399             type: TEXT;
3400             effect: FAR_SHADOW BOTTOM;
3401             scale: 1;
3402             clip_to: "title_clip";
3403             description { state: "default" 0.0;
3404                text { font: "Tizen:style=Bold";
3405                   size: NAVIFRAME_DUAL_TITLE_FONT_SIZE_INC;
3406                   min: 0 0;
3407                   max: 1 0;
3408                   align: 0.0 0.5;
3409                   text_class: "tizen";
3410                }
3411                color: NAVIFRAME_TITLE_TEXT_UNSELECTED_COLOR_INC;
3412                color3: 255 255 255 255;
3413                align: 0.0 0.5;
3414                fixed: 1 1;
3415                rel1 { relative: 1.0 1.0; to_x: "text.padding"; to_y: "top_padding"; }
3416                rel2 { relative: 0.0 0.0; to_x: "padding_center_text2"; to_y: "padding_bottom_text"; }
3417             }
3418             description { state: "selected" 0.0;
3419                inherit: "default" 0.0;
3420                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3421             }
3422             description { state: "default_landscape" 0.0;
3423                inherit: "default" 0.0;
3424                text { font: "Tizen:style=Bold";
3425                   size: NAVIFRAME_LANDSCAPE_TITLE_FONT_SIZE_INC;
3426                   min: 0 0;
3427                   max: 1 0;
3428                   align: 0.0 0.5;
3429                   text_class: "tizen";
3430                }
3431             }
3432             description { state: "selected_landscape" 0.0;
3433                inherit: "default_landscape" 0.0;
3434                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
3435             }
3436          }
3437          part { name: "click_event_title2_area";
3438              type: RECT;
3439              ignore_flags: ON_HOLD;
3440              description { state: "default" 0.0;
3441                 rel1 { to: "elm.text.title2"; }
3442                 rel2 { to: "elm.text.title2"; }
3443                 color: 0 0 0 0;
3444              }
3445          }
3446          part { name: "badge_top_padding";
3447             type: RECT;
3448             scale: 1;
3449             description { state: "default" 0.0;
3450                visible: 0;
3451                min: NAVIFRAME_BADGE_TOP_PADDING_INC;
3452                fixed: 0 1;
3453                rel1 { relative: 0.0 0.0; to: "title_bg"; }
3454                rel2 { relative: 1.0 0.0; to: "title_bg"; }
3455                align: 0.0 0.0;
3456             }
3457          }
3458          part { name: "badge_left_padding";
3459             type: RECT;
3460             scale: 1;
3461             description { state: "default" 0.0;
3462                visible: 0;
3463                min: 0 0;
3464                fixed: 1 1;
3465                rel1 { relative: 0.0 1.0; to_x: "divider"; to_y: "badge_top_padding"; }
3466                rel2 { relative: 0.0 0.5; to_x: "divider"; to_y: "title_bg"; }
3467                align: 0.0 0.5;
3468             }
3469             description { state: "visible" 0.0;
3470                inherit: "default" 0.0;
3471                min: NAVIFRAME_PADDING_BADGE_INC;
3472             }
3473          }
3474          part { name: "right.padding.text";
3475             type: RECT;
3476             scale: 1;
3477             description {
3478                state: "default" 0.0;
3479                visible: 0;
3480                fixed: 1 1;
3481                min: 8 48;
3482                rel1 {
3483                   to: "badge_left_padding";
3484                   relative: 0.0 1.0;
3485                }
3486                rel2 {
3487                   to: "badge_left_padding";
3488                   relative: 0.0 1.0;
3489                }
3490                align: 1.0 1.0;
3491             }
3492          }
3493          part { name: "left.padding.text";
3494             type: RECT;
3495             scale: 1;
3496             description {
3497                state: "default" 0.0;
3498                visible: 0;
3499                fixed: 1 1;
3500                min: 13 47;
3501                rel1 {
3502                   to: "title_badge";
3503                   relative: 0.0 1.0;
3504                }
3505                rel2 {
3506                   to: "title_badge";
3507                   relative: 0.0 1.0;
3508                }
3509                align: 1.0 1.0;
3510             }
3511          }
3512          part { name: "badge_bg";
3513             type: IMAGE;
3514             scale: 1;
3515             clip_to: "title_clip";
3516             description { state: "default" 0.0;
3517                visible: 0;
3518                fixed: 1 1;
3519                rel1 {
3520                   to: "left.padding.text";
3521                   relative: 0.0 0.0;
3522                }
3523                rel2 {
3524                   to: "right.padding.text";
3525                   relative: 1.0 1.0;
3526                }
3527                image {
3528                   normal: "00_badge_bg.png";
3529                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3530                   border_scale: 1;
3531                }
3532             }
3533             description { state: "visible" 0.0;
3534                inherit: "default" 0.0;
3535                visible: 1;
3536                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3537                fixed: 1 1;
3538             }
3539          }
3540          part { name: "title_badge";
3541             type: TEXT;
3542             mouse_events: 0;
3543             scale: 1;
3544             description {
3545                state: "default" 0.0;
3546                visible: 0;
3547                rel1 {
3548                   to: "right.padding.text";
3549                   relative: 0.0 0.0;
3550                }
3551                rel2 {
3552                   to: "right.padding.text";
3553                   relative: 0.0 1.0;
3554                }
3555                fixed: 1 0;
3556                align: 1.0 0.5;
3557                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3558                text {
3559                   font: "Tizen:style=Bold";
3560                   size: NAVIFRAME_BADGE_TEXT_H_INC;
3561                   min: 1 1;
3562                   max: 1 0;
3563                }
3564             }
3565             description { state: "visible" 0.0;
3566                inherit: "default" 0.0;
3567                visible: 1;
3568             }
3569          }
3570          part { name: "badge_left_padding2";
3571             type: RECT;
3572             scale: 1;
3573             description { state: "default" 0.0;
3574                visible: 0;
3575                min: 0 0;
3576                fixed: 1 1;
3577                rel1 { relative: 1.0 1.0; to_x: "elm.text.title2"; to_y: "badge_top_padding"; }
3578                rel2 { relative: 1.0 0.5; to_x: "elm.text.title2"; to_y: "title_bg"; }
3579                align: 0.0 0.5;
3580             }
3581             description { state: "visible" 0.0;
3582                inherit: "default" 0.0;
3583                min: NAVIFRAME_PADDING_INC;
3584             }
3585          }
3586          part { name: "right.padding.text2";
3587             type: RECT;
3588             scale: 1;
3589             description {
3590                state: "default" 0.0;
3591                visible: 0;
3592                fixed: 1 1;
3593                min: 8 48;
3594                rel1 {
3595                   to: "badge_left_padding2";
3596                   relative: 1.0 1.0;
3597                }
3598                rel2 {
3599                   to: "badge_left_padding2";
3600                   relative: 1.0 1.0;
3601                }
3602                align: 1.0 1.0;
3603             }
3604          }
3605          part { name: "left.padding.text2";
3606             type: RECT;
3607             scale: 1;
3608             description {
3609                state: "default" 0.0;
3610                visible: 0;
3611                fixed: 1 1;
3612                min: 13 47;
3613                rel1 {
3614                   to: "title2_badge";
3615                   relative: 0.0 1.0;
3616                }
3617                rel2 {
3618                   to: "title2_badge";
3619                   relative: 0.0 1.0;
3620                }
3621                align: 1.0 1.0;
3622             }
3623          }
3624          part { name: "badge2_bg";
3625             type: IMAGE;
3626             scale: 1;
3627             clip_to: "title_clip";
3628             description { state: "default" 0.0;
3629                visible: 0;
3630                fixed: 1 1;
3631                rel1 {
3632                   to: "left.padding.text2";
3633                   relative: 0.0 0.0;
3634                }
3635                rel2 {
3636                   to: "right.padding.text2";
3637                   relative: 1.0 1.0;
3638                }
3639                image {
3640                   normal: "00_badge_bg.png";
3641                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
3642                   border_scale: 1;
3643                }
3644             }
3645             description { state: "visible" 0.0;
3646                inherit: "default" 0.0;
3647                visible: 1;
3648                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
3649                fixed: 1 1;
3650             }
3651          }
3652          part { name: "title2_badge";
3653             type: TEXT;
3654             mouse_events: 0;
3655             scale: 1;
3656             description {
3657                state: "default" 0.0;
3658                visible: 0;
3659                rel1 {
3660                   to: "right.padding.text2";
3661                   relative: 0.0 0.0;
3662                }
3663                rel2 {
3664                   to: "right.padding.text2";
3665                   relative: 0.0 1.0;
3666                }
3667                fixed: 1 0;
3668                align: 1.0 0.5;
3669                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
3670                text {
3671                   font: "Tizen:style=Bold";
3672                   size: NAVIFRAME_BADGE_TEXT_H_INC;
3673                   min: 1 1;
3674                   max: 1 0;
3675                }
3676             }
3677             description { state: "visible" 0.0;
3678                inherit: "default" 0.0;
3679                visible: 1;
3680             }
3681          }
3682          part { name: "access.title";
3683             type: RECT;
3684             repeat_events: 1;
3685             description { state: "default" 0.0;
3686                fixed: 1 1;
3687                rel1.to: "title_bg";
3688                rel2.to: "title_bg";
3689                color: 0 0 0 0;
3690             }
3691          }
3692          part { name: "title_left_btn";
3693             type: SWALLOW;
3694             scale: 1;
3695             clip_to: "title_clip";
3696             description { state: "default" 0.0;
3697                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3698                fixed: 1 1;
3699                align: 1.0 0.5;
3700                rel1 { relative: 0.0 0.0; to: "title_right_btn"; }
3701                rel2 { relative: 0.0 1.0; to: "title_right_btn"; }
3702             }
3703             description { state: "landscape" 0.0;
3704                inherit: "default" 0.0;
3705                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3706             }
3707          }
3708          part { name: "title_right_btn";
3709             type: SWALLOW;
3710             scale: 1;
3711             clip_to: "title_clip";
3712             description { state: "default" 0.0;
3713                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
3714                align: 1.0 0.5;
3715                fixed: 1 1;
3716                rel1 { relative: 0.0 0.0; to: "right_padding"; }
3717                rel2 { relative: 0.0 1.0; to: "right_padding"; }
3718             }
3719             description { state: "landscape" 0.0;
3720                inherit: "default" 0.0;
3721                max: NAVIFRAME_LANDSCAPE_TITLE_FUNC_BTN_SIZE_INC;
3722             }
3723          }
3724          part { name: "toolbar_bg";
3725             type: RECT;
3726             scale: 1;
3727             description { state: "default" 0.0;
3728                min: 0 0;
3729                max: 999999 0;
3730                fixed: 0 1;
3731                align: 0.0 1.0;
3732                visible: 0;
3733                rel1 { to: "base"; }
3734                rel2 { to: "base"; }
3735                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
3736             }
3737             description { state: "visible" 0.0;
3738                inherit: "default" 0.0;
3739                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3740                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
3741                visible: 1;
3742             }
3743             description { state: "visible_landscape" 0.0;
3744                inherit: "default" 0.0;
3745                min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3746                max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
3747                visible: 1;
3748             }
3749          }
3750          part { name: "more_btn_bg";
3751             type: RECT;
3752             scale: 1;
3753             mouse_events: 0;
3754             description { state: "default" 0.0;
3755                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3756                fixed: 1 0;
3757                align: 0.0 0.0;
3758                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
3759                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
3760                visible: 0;
3761             }
3762          }
3763          part { name: "toolbar_more_btn";
3764             type: SWALLOW;
3765             scale: 1;
3766             clip_to: "toolbar_clip";
3767             description { state: "default" 0.0;
3768                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3769                fixed: 1 1;
3770                rel1.to: "more_btn_bg";
3771                rel2.to: "more_btn_bg";
3772             }
3773             description { state: "landscape" 0.0;
3774                inherit: "default" 0.0;
3775                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3776             }
3777          }
3778          part { name: "prev_btn_bg";
3779             type: RECT;
3780             scale: 1;
3781             mouse_events: 0;
3782             description { state: "default" 0.0;
3783                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
3784                fixed: 1 0;
3785                align: 1.0 0.0;
3786                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
3787                rel2.to: "toolbar_bg";
3788                visible: 0;
3789             }
3790          }
3791          part { name: "elm.swallow.prev_btn";
3792             type: SWALLOW;
3793             scale: 1;
3794             clip_to: "toolbar_clip";
3795             description { state: "default" 0.0;
3796                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
3797                fixed: 1 1;
3798                align: 0.5 0.5;
3799                rel1.to: "prev_btn_bg";
3800                rel2.to: "prev_btn_bg";
3801             }
3802             description { state: "landscape" 0.0;
3803                inherit: "default" 0.0;
3804                max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
3805             }
3806          }
3807          part { name: "toolbar_btns_area";
3808             type: RECT;
3809             mouse_events: 0;
3810             description { state: "default" 0.0;
3811                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
3812                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
3813                visible: 0;
3814             }
3815          }
3816          part { name: "toolbar_clip";
3817             type: RECT;
3818             mouse_events: 0;
3819             description { state: "default" 0.0;
3820                rel1 { to: "toolbar_bg"; }
3821                rel2 { to: "toolbar_bg"; }
3822             }
3823          }
3824          part { name: "toolbar_button1";
3825             type: SWALLOW;
3826             scale: 1;
3827             clip_to: "toolbar_clip";
3828             description { state: "default" 0.0;
3829                fixed: 1 1;
3830                align: 0.5 0.5;
3831                rel1.to: "toolbar_btns_area";
3832                rel2.to: "toolbar_btns_area";
3833             }
3834             description { state: "buttons_set" 0.0;
3835                inherit: "default" 0.0;
3836                align: 1.0 0.5;
3837                rel2 {
3838                   relative: 0.0 1.0;
3839                   to: "toolbar_button_padding";
3840                }
3841             }
3842          }
3843          part { name: "toolbar_button_padding";
3844             type: RECT;
3845             scale : 1;
3846             description { state: "default" 0.0;
3847                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
3848                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
3849                fixed : 1 0;
3850                visible: 0;
3851                align: 0.5 0.5;
3852                rel1.to: "toolbar_btns_area";
3853                rel2.to: "toolbar_btns_area";
3854             }
3855             description { state: "landscape" 0.0;
3856                inherit: "default" 0.0;
3857                min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
3858                max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
3859             }
3860          }
3861          part { name: "toolbar_button2";
3862             type: SWALLOW;
3863             scale: 1;
3864             clip_to: "toolbar_clip";
3865             description { state: "default" 0.0;
3866                fixed: 1 1;
3867                align: 0.5 0.5;
3868                rel1.to: "toolbar_btns_area";
3869                rel2.to: "toolbar_btns_area";
3870             }
3871             description { state: "buttons_set" 0.0;
3872                inherit: "default" 0.0;
3873                align: 0.0 0.5;
3874                rel1 {
3875                   relative: 1.0 0.0;
3876                   to: "toolbar_button_padding";
3877                }
3878             }
3879          }
3880       }
3881       programs {
3882          program { name: "content_new_pushed";
3883             signal: "elm,state,new,pushed,deferred";
3884             source: "elm";
3885             action: STATE_SET "default" 0.0;
3886             target: "base";
3887             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3888             after: "show_finished";
3889          }
3890          program { name: "content_cur_pushed";
3891             signal: "elm,state,cur,pushed,deferred";
3892             source: "elm";
3893             action: STATE_SET "left" 0.0;
3894             target: "base";
3895             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3896             after: "pushed_finished";
3897          }
3898          program { name: "content_prev_popped";
3899             signal: "elm,state,prev,popped,deferred";
3900             source: "elm";
3901             action: STATE_SET "default" 0.0;
3902             target: "base";
3903             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3904             after: "show_finished";
3905          }
3906          program { name: "content_cur_popped";
3907             signal: "elm,state,cur,popped,deferred";
3908             source: "elm";
3909             action: STATE_SET "right" 0.0;
3910             target: "base";
3911             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
3912             after: "popped_finished";
3913          }
3914          program { name: "cur_pushed";
3915             signal: "elm,state,cur,pushed";
3916             source: "elm";
3917             action: STATE_SET "default" 0.0;
3918             target: "base";
3919          }
3920          program { name: "new_pushed";
3921             signal: "elm,state,new,pushed";
3922             source: "elm";
3923             action: STATE_SET "right" 0.0;
3924             target: "base";
3925          }
3926          program { name: "prev_popped";
3927             signal: "elm,state,prev,popped";
3928             source: "elm";
3929             action: STATE_SET "left" 0.0;
3930             target: "base";
3931          }
3932          program { name: "cur_popped";
3933             signal: "elm,state,cur,popped";
3934             source: "elm";
3935             action: STATE_SET "default" 0.0;
3936             target: "base";
3937          }
3938          program { name: "visible";
3939             signal: "elm,state,visible";
3940             source: "elm";
3941             action: STATE_SET "default" 0.0;
3942             target: "base";
3943          }
3944          program { name: "title_show";
3945             signal: "elm,state,title,show";
3946             source: "elm";
3947             script {
3948                if (get_int(landscape) == 0)
3949                  set_state(PART:"title_bg", "default", 0.0);
3950                else
3951                  set_state(PART:"title_bg", "landscape", 0.0);
3952             }
3953          }
3954          program { name: "title_hide";
3955             signal: "elm,state,title,hide";
3956             source: "elm";
3957             script {
3958                set_state(PART:"title_bg", "hide", 0.0);
3959             }
3960          }
3961          program { name: "prev_btn_show";
3962             signal: "elm,state,prev_btn,show";
3963             source: "elm";
3964             script {
3965                emit("elm,state,toolbar_bg,show", "elm");
3966             }
3967          }
3968          program { name: "prev_btn_hide";
3969             signal: "elm,state,prev_btn,hide";
3970             source: "elm";
3971             script {
3972                emit("elm,state,toolbar_bg,hide", "elm");
3973             }
3974          }
3975          program { name: "more_btn_show";
3976             signal: "elm,state,toolbar_more_btn,show";
3977             source: "elm";
3978             script {
3979                emit("elm,state,toolbar_bg,show", "elm");
3980             }
3981          }
3982          program { name: "more_btn_hide";
3983             signal: "elm,state,toolbar_more_btn,hide";
3984             source: "elm";
3985             script {
3986                emit("elm,state,toolbar_bg,hide", "elm");
3987             }
3988          }
3989          program { name: "toolbar_button1_show";
3990             signal: "elm,state,toolbar_button1,show";
3991             source: "elm";
3992             script {
3993                emit("elm,state,toolbar_bg,show", "elm");
3994                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
3995                if (get_int(toolbar_buttons_visible) >= 2)
3996                  {
3997                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
3998                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
3999                  }
4000             }
4001          }
4002          program { name: "toolbar_button1_hide";
4003             signal: "elm,state,toolbar_button1,hide";
4004             source: "elm";
4005             script {
4006                emit("elm,state,toolbar_bg,hide", "elm");
4007                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4008                set_state(PART:"toolbar_button1", "default", 0.0);
4009                set_state(PART:"toolbar_button2", "default", 0.0);
4010             }
4011          }
4012          program { name: "toolbar_button2_show";
4013             signal: "elm,state,toolbar_button2,show";
4014             source: "elm";
4015             script {
4016                emit("elm,state,toolbar_bg,show", "elm");
4017                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
4018                if (get_int(toolbar_buttons_visible) >= 2)
4019                  {
4020                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
4021                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
4022                  }
4023             }
4024          }
4025          program { name: "toolbar_button2_hide";
4026             signal: "elm,state,toolbar_button2,hide";
4027             source: "elm";
4028             script {
4029                emit("elm,state,toolbar_bg,hide", "elm");
4030                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
4031                set_state(PART:"toolbar_button1", "default", 0.0);
4032                set_state(PART:"toolbar_button2", "default", 0.0);
4033             }
4034          }
4035          program { name: "toolbar_bg_show";
4036             signal: "elm,state,toolbar_bg,show";
4037             source: "elm";
4038             script {
4039                if (get_int(landscape) == 0)
4040                  set_state(PART:"toolbar_bg", "visible", 0.0);
4041                else
4042                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4043                set_int(tbar_bg, get_int(tbar_bg) + 1);
4044             }
4045          }
4046          program { name: "toolbar_bg_hide";
4047             signal: "elm,state,toolbar_bg,hide";
4048             source: "elm";
4049             script {
4050                set_int(tbar_bg, get_int(tbar_bg) - 1);
4051                if (get_int(tbar_bg) <= 0)
4052                  set_state(PART:"toolbar_bg", "default", 0.0);
4053             }
4054          }
4055          program { name: "toolbar_open_internal";
4056             signal: "elm,state,toolbar,open,internal";
4057             source: "elm";
4058             script {
4059                set_int(tbar_close, 0);
4060                if (get_int(landscape) == 0)
4061                  set_state(PART:"toolbar_bg", "visible", 0.0);
4062                else
4063                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4064             }
4065          }
4066          program { name: "toolbar_close_internal";
4067             signal: "elm,state,toolbar,close,internal";
4068             source: "elm";
4069             script {
4070                set_int(tbar_close, 1);
4071                set_state(PART:"toolbar_bg", "default", 0.0);
4072             }
4073          }
4074          program { name: "toolbar_open";
4075             signal: "elm,state,toolbar,open";
4076             source: "";
4077             script {
4078                if (get_int(landscape) == 0)
4079                  set_state(PART:"toolbar_bg", "visible", 0.0);
4080                else
4081                  set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4082             }
4083             transition: LINEAR 0.2;
4084             after: "toolbar_open_internal";
4085          }
4086          program { name: "toolbar_close";
4087             signal: "elm,state,toolbar,close";
4088             source: "";
4089             action: STATE_SET "default" 0.0;
4090             target: "toolbar_bg";
4091             transition: LINEAR 0.2;
4092             after: "toolbar_close_internal";
4093          }
4094          program { name: "toolbar_instant_open";
4095             signal: "elm,state,toolbar,instant_open";
4096             source: "";
4097             script {
4098                emit("elm,state,toolbar,open,internal", "elm");
4099             }
4100          }
4101          program { name: "toolbar_instant_close";
4102             signal: "elm,state,toolbar,instant_close";
4103             source: "";
4104             script {
4105                emit("elm,state,toolbar,close,internal", "elm");
4106             }
4107          }
4108          program { name: "show_finished";
4109             action: SIGNAL_EMIT "elm,action,show,finished" "";
4110          }
4111          program { name: "pushed_finished";
4112             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
4113          }
4114          program { name: "popped_finished";
4115             action: SIGNAL_EMIT "elm,action,popped,finished" "";
4116          }
4117          program {
4118             name: "init_title_selection";
4119             signal: "elm,state,title_label,show";
4120             source: "elm";
4121             script {
4122                new st[31];
4123                new Float:vl;
4124                get_state(PART:"elm.text.title", st, 30, vl);
4125                if (get_int(landscape) == 0)
4126                  {
4127                     set_state(PART:"elm.text.title", "selected", 0.0);
4128                     set_state(PART:"elm.text.title2", "default", 0.0);
4129                  }
4130                else
4131                  {
4132                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4133                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4134                  }
4135             }
4136          }
4137          program {
4138             name: "title1_clicked";
4139             signal: "mouse,clicked,1";
4140             source: "click_event_title1_area";
4141             after: "touch_snd";
4142             script {
4143                new st[31];
4144                new Float:vl;
4145                get_state(PART:"elm.text.title", st, 30, vl);
4146                if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4147                  {
4148                     set_state(PART:"elm.text.title", "selected", 0.0);
4149                     set_state(PART:"elm.text.title2", "default", 0.0);
4150                  }
4151                else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4152                  {
4153                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4154                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4155                  }
4156                emit("elm,action,title1,clicked", "");
4157             }
4158          }
4159          program {
4160             name: "title2_clicked";
4161             signal: "mouse,clicked,1";
4162             source: "click_event_title2_area";
4163             after: "touch_snd";
4164             script {
4165                new st[31];
4166                new Float:vl;
4167                get_state(PART:"elm.text.title2", st, 30, vl);
4168                if ((get_int(landscape) == 0) && !strcmp(st, "default"))
4169                  {
4170                     set_state(PART:"elm.text.title2", "selected", 0.0);
4171                     set_state(PART:"elm.text.title", "default", 0.0);
4172                  }
4173                else if ((get_int(landscape) == 1) && !strcmp(st, "default_landscape"))
4174                  {
4175                     set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4176                     set_state(PART:"elm.text.title", "default_landscape", 0.0);
4177                  }
4178                emit("elm,action,title2,clicked", "");
4179             }
4180          }
4181          program { name: "touch_snd";
4182             action: PLAY_SAMPLE "touch_sound" 1.0;
4183          }
4184          program { name: "title1_selected";
4185             signal: "elm,state,title1,selected";
4186             source: "";
4187             script {
4188               if (get_int(landscape) == 0)
4189                 {
4190                    set_state(PART:"elm.text.title", "selected", 0.0);
4191                    set_state(PART:"elm.text.title2", "default", 0.0);
4192                 }
4193               else
4194                 {
4195                    set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4196                    set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4197                 }
4198             }
4199          }
4200          program { name: "title1_unselected";
4201             signal: "elm,state,title1,unselected";
4202             source: "";
4203             script {
4204                if (get_int(landscape) == 0)
4205                  set_state(PART:"elm.text.title", "default", 0.0);
4206                else
4207                  set_state(PART:"elm.text.title", "default_landscape", 0.0);
4208             }
4209          }
4210          program { name: "title2_selected";
4211             signal: "elm,state,title2,selected";
4212             source: "";
4213             script {
4214               if (get_int(landscape) == 0)
4215                 {
4216                    set_state(PART:"elm.text.title2", "selected", 0.0);
4217                    set_state(PART:"elm.text.title", "default", 0.0);
4218                 }
4219               else
4220                 {
4221                    set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4222                    set_state(PART:"elm.text.title", "default_landscape", 0.0);
4223                 }
4224             }
4225          }
4226          program { name: "title2_unselected";
4227             signal: "elm,state,title2,unselected";
4228             source: "";
4229             script {
4230                if (get_int(landscape) == 0)
4231                  set_state(PART:"elm.text.title2", "default", 0.0);
4232                else
4233                  set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4234             }
4235          }
4236          program {
4237             name: "badge_show";
4238             signal: "elm,state,title_badge,show";
4239             source: "elm";
4240             script {
4241                set_state(PART:"badge_bg", "visible", 0.0);
4242                set_state(PART:"title_badge", "visible", 0.0);
4243             }
4244          }
4245          program {
4246             name: "badge_hide";
4247             signal: "elm,state,title_badge,hide";
4248             source: "elm";
4249             script {
4250                set_state(PART:"badge_bg", "default", 0.0);
4251                set_state(PART:"title_badge", "default", 0.0);
4252             }
4253          }
4254          program {
4255             name: "badge2_show";
4256             signal: "elm,state,title2_badge,show";
4257             source: "elm";
4258             script {
4259                set_state(PART:"badge_left_padding2", "visible", 0.0);
4260                set_state(PART:"badge2_bg", "visible", 0.0);
4261                set_state(PART:"title2_badge", "visible", 0.0);
4262             }
4263          }
4264          program {
4265             name: "badge2_hide";
4266             signal: "elm,state,title2_badge,hide";
4267             source: "elm";
4268             script {
4269                set_state(PART:"badge_left_padding2", "default", 0.0);
4270                set_state(PART:"badge2_bg", "default", 0.0);
4271                set_state(PART:"title2_badge", "default", 0.0);
4272             }
4273          }
4274          program {
4275             name: "change_to_landscape";
4276             signal: "elm,state,landscape";
4277             source: "elm";
4278             script {
4279                if (get_int(landscape) == 0) {
4280                   set_state(PART:"top_padding", "landscape", 0.0);
4281                   set_state(PART:"padding_bottom_text", "landscape", 0.0);
4282                   set_state(PART:"title_left_btn", "landscape", 0.0);
4283                   set_state(PART:"title_right_btn", "landscape", 0.0);
4284                   set_state(PART:"toolbar_more_btn", "landscape", 0.0);
4285                   set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
4286                   set_state(PART:"toolbar_button_padding", "landscape", 0.0);
4287
4288                   new st[31];
4289                   new Float:vl;
4290                   get_state(PART:"title_bg", st, 30, vl);
4291                   if (!strcmp(st, "default"))
4292                     set_state(PART:"title_bg", "landscape", 0.0);
4293
4294                   get_state(PART:"elm.text.title", st, 30, vl);
4295                   if (!strcmp(st, "default"))
4296                     set_state(PART:"elm.text.title", "default_landscape", 0.0);
4297                   else
4298                     set_state(PART:"elm.text.title", "selected_landscape", 0.0);
4299
4300                   get_state(PART:"elm.text.title2", st, 30, vl);
4301                   if (!strcmp(st, "default"))
4302                     set_state(PART:"elm.text.title2", "default_landscape", 0.0);
4303                   else
4304                     set_state(PART:"elm.text.title2", "selected_landscape", 0.0);
4305
4306                   get_state(PART:"toolbar_bg", st, 30, vl);
4307                   if (!strcmp(st, "visible"))
4308                     set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
4309
4310                   set_int(landscape, 1);
4311                }
4312             }
4313          }
4314          program {
4315             name: "change_to_portrait";
4316             signal: "elm,state,portrait";
4317             source: "elm";
4318             script {
4319                if (get_int(landscape) == 1) {
4320                   set_state(PART:"top_padding", "default", 0.0);
4321                   set_state(PART:"padding_bottom_text", "default", 0.0);
4322                   set_state(PART:"title_left_btn", "default", 0.0);
4323                   set_state(PART:"title_right_btn", "default", 0.0);
4324                   set_state(PART:"toolbar_more_btn", "default", 0.0);
4325                   set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
4326                   set_state(PART:"toolbar_button_padding", "default", 0.0);
4327
4328                   new st[31];
4329                   new Float:vl;
4330                   get_state(PART:"title_bg", st, 30, vl);
4331                   if (!strcmp(st, "landscape"))
4332                     set_state(PART:"title_bg", "default", 0.0);
4333
4334                   get_state(PART:"elm.text.title", st, 30, vl);
4335                   if (!strcmp(st, "default_landscape"))
4336                     set_state(PART:"elm.text.title", "default", 0.0);
4337                   else
4338                     set_state(PART:"elm.text.title", "selected", 0.0);
4339
4340                   get_state(PART:"elm.text.title2", st, 30, vl);
4341                   if (!strcmp(st, "default_landscape"))
4342                     set_state(PART:"elm.text.title2", "default", 0.0);
4343                   else
4344                     set_state(PART:"elm.text.title2", "selected", 0.0);
4345
4346                   get_state(PART:"toolbar_bg", st, 30, vl);
4347                   if (!strcmp(st, "visible_landscape"))
4348                     set_state(PART:"toolbar_bg", "visible", 0.0);
4349
4350                   set_int(landscape, 0);
4351                }
4352             }
4353          }
4354          program { name: "landscape_mode";
4355             source: "elm";
4356             signal: "elm,state,orient,90";
4357             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4358          }
4359          program { name: "landscape_mode2";
4360             source: "elm";
4361             signal: "elm,state,orient,270";
4362             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4363          }
4364          program { name: "portrait_mode";
4365             source: "elm";
4366             signal: "elm,state,orient,0";
4367             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4368          }
4369          program { name: "portrait_mode2";
4370             source: "elm";
4371             signal: "elm,state,orient,180";
4372             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4373          }
4374       }
4375    }