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