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