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