f879e5abf2924a27b831b664cd3667b17a949729
[profile/ivi/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/base/default";
23       parts {
24          part { name: "base";
25             description { state: "default" 0.0;
26             }
27          }
28       }
29    }
30
31    group { name:"elm/naviframe/item/basic/default";
32       images {
33          image: "00_badge_bg.png" COMP;
34       }
35       script {
36          public tbar_bg = 0;     //Toolbar BG Show call count
37          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
38          public title_toolbar_buttons_visible = 0; //when both title toolbar buttons are visible
39          public tbar_close = 0; //Toolbar lastest Open/Close status
40          public sip_visible = 0; //SIP latest visible/hidden status
41          public title_badge_visible = 0; //Title badge visible/hidden status
42          public title_slide_visible = 0; //Title slide visible/hidden status
43       }
44       parts {
45          part { name: "base";
46             type: RECT;
47             mouse_events:  0;
48             description { state: "default" 0.0;
49                visible: 0;
50             }
51             description { state: "left" 0.0;
52                inherit: "default" 0.0;
53                rel1.relative: -1.0 0.0;
54                rel2.relative: 0.0 1.0;
55             }
56             description { state: "right" 0.0;
57                inherit: "default" 0.0;
58                rel1.relative: 1.0 0.0;
59                rel2.relative: 2.0 1.0;
60             }
61          }
62          part { name: "title_toolbar_bg";
63             type: RECT;
64             scale: 1;
65             description { state: "default" 0.0;
66                min: 0 0;
67                fixed: 0 1;
68                align: 0.0 0.0;
69                rel1 { relative: 0.0 0.0; to: "base"; }
70                rel2 { relative: 1.0 0.0; to: "base"; }
71                color: NAVIFRAME_TITLE_BG_COLOR_INC;
72                visible: 0;
73             }
74             description { state: "show" 0.0;
75                inherit: "default" 0.0;
76                min: 0 NAVIFRAME_TITLE_H_INC;
77                visible: 1;
78             }
79          }
80          part { name: "title_toolbar_top_padding";
81             type: RECT;
82             mouse_events: 0;
83             scale: 1;
84             description {
85                state: "default" 0.0;
86                min: NAVIFRAME_TITLE_TOOLBAR_TOP_PADDING_INC;
87                fixed: 0 1;
88                align: 0.0 0.0;
89                rel1 { relative: 0.0 0.0; to: "title_toolbar_bg"; }
90                rel2 { relative: 1.0 0.0; to: "title_toolbar_bg"; }
91                visible: 0;
92             }
93          }
94          part { name: "title_toolbar_bottom_padding";
95             type: RECT;
96             mouse_events: 0;
97             scale: 1;
98             description { state: "default" 0.0;
99                min: NAVIFRAME_TITLE_TOOLBAR_BOTTOM_PADDING_INC;
100                fixed: 0 1;
101                align: 0.0 1.0;
102                rel1 { relative: 0.0 1.0; to: "title_toolbar_bg"; }
103                rel2 { relative: 1.0 1.0; to: "title_toolbar_bg"; }
104                visible: 0;
105             }
106          }
107          part { name: "title_more_btn_bg";
108             type: RECT;
109             scale: 1;
110             mouse_events: 0;
111             description { state: "default" 0.0;
112                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
113                fixed: 1 1;
114                align: 0.0 0.0;
115                rel1 { relative: 0.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
116                rel2 { relative: 0.0 0.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
117                visible: 0;
118             }
119          }
120          part { name: "title_prev_btn_bg";
121             type: RECT;
122             scale: 1;
123             mouse_events: 0;
124             description { state: "default" 0.0;
125                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
126                fixed: 1 1;
127                align: 1.0 0.0;
128                rel1 { relative: 1.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
129                rel2 { relative: 1.0 0.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
130                visible: 0;
131             }
132          }
133          part { name: "title_toolbar_btns_area";
134             type: RECT;
135             mouse_events: 0;
136             description { state: "default" 0.0;
137                rel1 { relative: 1.0 0.0; to: "title_more_btn_bg"; }
138                rel2 { relative: 0.0 1.0; to: "title_prev_btn_bg"; }
139                visible: 0;
140             }
141          }
142          part { name: "title_toolbar_clip";
143             type: RECT;
144             mouse_events: 0;
145             description { state: "default" 0.0;
146                rel1 { to: "title_toolbar_bg"; }
147                rel2 { to: "title_toolbar_bg"; }
148             }
149          }
150          part { name: "title_toolbar_button_padding";
151             type: RECT;
152             scale : 1;
153             description { state: "default" 0.0;
154                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
155                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
156                fixed : 1 0;
157                visible: 0;
158                align: 0.5 0.5;
159                rel1.to: "title_toolbar_btns_area";
160                rel2.to: "title_toolbar_btns_area";
161             }
162          }
163          part { name: "title_bg";
164             type: RECT;
165             scale: 1;
166             description { state: "default" 0.0;
167                min: 1 NAVIFRAME_TITLE_H_INC;
168                align: 0.0 0.0;
169                fixed: 0 1;
170                rel1 { relative: 0.0 0.0; to: "base"; }
171                rel2 { relative: 1.0 0.0; to: "base"; }
172                color: NAVIFRAME_TITLE_BG_COLOR_INC;
173             }
174             description { state: "hide" 0.0;
175                inherit: "default" 0.0;
176                min: 0 0;
177                max: 0 0;
178                fixed: 1 1;
179             }
180          }
181          part { name: "title_clip";
182             type: RECT;
183             mouse_events: 0;
184             description { state: "default" 0.0;
185                rel1 { to: "title_bg"; }
186                rel2 { to: "title_bg"; }
187             }
188          }
189          part { name: "top_padding";
190             type: RECT;
191             mouse_events: 0;
192             scale: 1;
193             description {
194                state: "default" 0.0;
195                min: NAVIFRAME_TITLE_TOP_PADDING_INC;
196                fixed: 0 1;
197                align: 0.0 0.0;
198                rel1 { relative: 0.0 0.0; to: "title_bg"; }
199                rel2 { relative: 1.0 0.0; to: "title_bg"; }
200                visible: 0;
201             }
202          }
203          part { name: "right_padding";
204             type: RECT;
205             mouse_events: 0;
206             scale: 1;
207             description {
208                state: "default" 0.0;
209                min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
210                fixed: 1 0;
211                align: 1.0 0.0;
212                rel1 { relative: 1.0 0.0; to: "title_bg"; }
213                rel2 { relative: 1.0 1.0; to: "title_bg"; }
214                visible: 0;
215             }
216          }
217          part { name: "padding_center_text1";
218             type: RECT;
219             scale: 1;
220             mouse_events: 0;
221             description { state: "default" 0.0;
222                min: NAVIFRAME_PADDING_INC;
223                fixed: 1 0;
224                align: 0.0 0.0;
225                rel1 { relative: 0.0 0.0; to: "title_bg"; }
226                rel2 { relative: 0.0 1.0; to: "title_bg"; }
227                visible: 0;
228             }
229             description { state: "icon" 0.0;
230                inherit: "default" 0.0;
231                min: NAVIFRAME_ICON_PADDING_INC;
232             }
233          }
234          part { name: "elm.swallow.content";
235             type: SWALLOW;
236             scale: 1;
237             repeat_events: 0;
238             clip_to: "content_clip";
239             description { state: "default" 0.0;
240                align: 0.0 0.0;
241                rel1.relative: 0.0 1.0;
242                rel1.to_x: "base";
243                rel1.to_y: "title_bg";
244                rel2.relative: 1.0 0.0;
245                rel2.to_x: "base";
246                rel2.to_y: "toolbar_bg";
247             }
248             description { state: "sip_visible" 0.0;
249                inherit: "default" 0.0;
250                rel1.to_y: "title_toolbar_bg";
251             }
252          }
253          part { name: "content_clip";
254             type: RECT;
255             mouse_events: 0;
256             description { state: "default" 0.0;
257                rel1.to: "elm.swallow.content";
258                rel2.to: "elm.swallow.content";
259             }
260          }
261          part { name: "padding_center_text2";
262             type: RECT;
263             mouse_events: 0;
264             scale: 1;
265             description { state: "default" 0.0;
266                min: NAVIFRAME_PADDING2_INC;
267                fixed: 1 0;
268                align: 1.0 0.5;
269                rel1 { relative: 0.0 0.0; to: "title_left_btn_bg"; }
270                rel2 { relative: 0.0 1.0; to: "title_left_btn_bg"; }
271                visible: 0;
272             }
273          }
274          part { name: "padding_bottom_text";
275             type: RECT;
276             mouse_events: 0;
277             scale: 1;
278             description { state: "default" 0.0;
279                min: NAVIFRAME_BOTTOM_TEXT_PADDING_INC;
280                fixed: 0 1;
281                align: 0.0 1.0;
282                rel1 { relative: 0.0 1.0; to: "title_bg"; }
283                rel2 { relative: 1.0 1.0; to: "title_bg"; }
284                visible: 0;
285             }
286          }
287          part { name: "badge_padding";
288             type: RECT;
289             mouse_events: 0;
290             scale: 1;
291             description { state: "default" 0.0;
292                min: 0 0;
293                fixed: 1 0;
294                align: 1.0 0.0;
295                rel1 { relative: 0.0 0.0; to: "padding_center_text2"; }
296                rel2 { relative: 0.0 1.0; to: "padding_center_text2"; }
297                visible: 0;
298             }
299             description { state: "visible" 0.0;
300                inherit: "default" 0.0;
301                min: NAVIFRAME_BADGE_PADDING_INC;
302             }
303          }
304          part { name: "elm.text.title";
305             type: TEXT;
306             effect: FAR_SHADOW BOTTOM;
307             scale: 1;
308             clip_to: "title_clip";
309             description { state: "default" 0.0;
310                text { font: "Tizen:style=Medium";
311                   size: NAVIFRAME_TITLE_FONT_SIZE_INC;
312                   min: 0 0;
313                   max: 1 0;
314                   align: 0.0 0.5;
315                   text_class: "tizen";
316                }
317                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
318                color3: 255 255 255 255;
319                align: 0.0 0.5;
320                fixed: 1 1;
321                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
322                rel2 { relative: 0.0 0.0; to_x: "badge_padding"; to_y: "padding_bottom_text"; }
323             }
324             description { state: "subtitle_is_set" 0.0;
325                inherit: "default" 0.0;
326                text { font: "Tizen:style=Medium";
327                   size: NAVIFRAME_TITLE_SMALL_FONT_SIZE_INC;
328                   min: 0 0;
329                   max: 1 0;
330                   align: 0.0 0.2;
331                   text_class: "tizen";
332                }
333                align: 0.0 0.0;
334                rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
335             }
336          }
337          part { name: "elm.text.subtitle";
338             type: TEXT;
339             scale: 1;
340             clip_to: "title_clip";
341             description { state: "default" 0.0;
342                text { font: "Tizen:style=Medium";
343                   size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC;
344                   min: 0 0;
345                   max: 1 0;
346                   text_class: "tizen";
347                   align: 0.0 1.0;
348                }
349                color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC;
350                align: 0.0 1.0;
351                fixed: 1 0;
352                rel1 {
353                   relative: 1.0 1.0;
354                   to_x: "padding_center_text1";
355                   to_y: "elm.text.title";
356                }
357                rel2 {
358                   relative: 0.0 1.0;
359                   to_x: "padding_center_text2";
360                   to_y: "elm.text.title";
361                }
362             }
363          }
364          part { name: "padding_before_text";
365             type: RECT;
366             scale: 1;
367             mouse_events: 0;
368             description { state: "default" 0.0;
369                align: 1.0 0.5;
370                rel1 { relative: 0.0 0.0; to: "elm.text.title"; }
371                rel2 { relative: 0.0 1.0; to: "elm.text.title"; }
372                fixed: 1 0;
373                min: NAVIFRAME_PADDING_INC;
374                visible: 0;
375             }
376          }
377          part { name: "badge_top_padding";
378             type: RECT;
379             scale: 1;
380             description { state: "default" 0.0;
381                visible: 0;
382                min: NAVIFRAME_BADGE_TOP_PADDING_INC;
383                fixed: 0 1;
384                rel1 { relative: 0.0 0.0; to: "title_bg"; }
385                rel2 { relative: 1.0 0.0; to: "title_bg"; }
386                align: 0.0 0.0;
387             }
388          }
389          part { name: "badge_left_padding";
390             type: RECT;
391             scale: 1;
392             description { state: "default" 0.0;
393                visible: 0;
394                min: 0 0;
395                fixed: 1 1;
396                rel1 { relative: 1.0 1.0; to_x: "elm.text.title"; to_y: "badge_top_padding"; }
397                rel2 { relative: 1.0 0.5; to_x: "elm.text.title"; to_y: "title_bg"; }
398                align: 0.0 0.5;
399             }
400             description { state: "visible" 0.0;
401                inherit: "default" 0.0;
402                min: NAVIFRAME_PADDING2_INC;
403             }
404             description { state: "title_slide_is_set" 0.0;
405                inherit: "visible" 0.0;
406                rel1 { relative: 1.0 1.0; to_x: "elm.swallow.title"; to_y: "badge_top_padding"; }
407                rel2 { relative: 1.0 0.5; to_x: "elm.swallow.title"; to_y: "title_bg"; }
408             }
409          }
410          part { name: "left.padding.text";
411             type: RECT;
412             scale: 1;
413             description {
414                state: "default" 0.0;
415                visible: 0;
416                fixed: 1 1;
417                min: 0 0;
418                rel1 {
419                   to: "badge_left_padding";
420                   relative: 1.0 0.0;
421                }
422                rel2 {
423                   to: "badge_left_padding";
424                   relative: 1.0 1.0;
425                }
426                align: 0.0 0.0;
427             }
428             description {
429                state: "visible" 0.0;
430                inherit: "default" 0.0;
431                min: 23 48;
432             }
433          }
434          part { name: "right.padding.text";
435             type: RECT;
436             scale: 1;
437             description {
438                state: "default" 0.0;
439                visible: 0;
440                fixed: 1 1;
441                min: 0 0;
442                rel1 {
443                   to: "title_badge";
444                   relative: 1.0 0.0;
445                }
446                rel2 {
447                   to: "title_badge";
448                   relative: 1.0 1.0;
449                }
450                align: 0.0 0.0;
451             }
452             description {
453                state: "visible" 0.0;
454                inherit: "default" 0.0;
455                min: 18 48;
456             }
457          }
458          part { name: "badge_bg";
459             type: IMAGE;
460             scale: 1;
461             clip_to: "title_clip";
462             description { state: "default" 0.0;
463                visible: 0;
464                min: 0 0;
465                fixed: 1 1;
466                rel1 {
467                   to: "left.padding.text";
468                   relative: 0.0 0.0;
469                }
470                rel2 {
471                   to: "right.padding.text";
472                   relative: 1.0 1.0;
473                }
474                image {
475                   normal: "00_badge_bg.png";
476                   border: NAVIFRAME_BADGE_BG_IMAGE_BORDER_INC;
477                   border_scale: 1;
478                }
479             }
480             description { state: "visible" 0.0;
481                inherit: "default" 0.0;
482                visible: 1;
483                min: NAVIFRAME_BADGE_BG_IMAGE_SIZE_INC;
484             }
485          }
486          part { name: "title_badge";
487             type: TEXT;
488             mouse_events: 0;
489             scale: 1;
490             clip_to: "title_clip";
491             description { state: "default" 0.0;
492                visible: 0;
493                max: NAVIFRAME_BADGE_TEXT_W_INC -1;
494                fixed: 1 0;
495                rel1 { relative: 1.0 0.0; to: "left.padding.text"; }
496                rel2 { relative: 1.0 1.0; to_y: "left.padding.text"; to_x: "badge_padding"; }
497                align: 0.0 0.5;
498                color: NAVIFRAME_BADGE_TEXT_COLOR_INC;
499                text {
500                   font: "Tizen:style=Bold";
501                   size: NAVIFRAME_BADGE_TEXT_H_INC;
502                   min: 0 0;
503                   max: 1 0;
504                   text_class: "tizen";
505                }
506             }
507             description { state: "visible" 0.0;
508                inherit: "default" 0.0;
509                visible: 1;
510             }
511          }
512          part { name: "click_event_area";
513              ignore_flags: ON_HOLD;
514              description { state: "default" 0.0;
515                 rel1 { to: "title_bg"; }
516                 rel2 { to: "title_bg"; }
517              }
518          }
519          part { name: "elm.swallow.title";
520             type: SWALLOW;
521             scale: 1;
522             clip_to: "title_clip";
523             repeat_events: 1;
524             description { state: "default" 0.0;
525                fixed: 1 1;
526                align: 0.0 0.5;
527                rel1 { relative: 1.0 1.0; to_x: "padding_center_text1"; to_y: "top_padding"; }
528                rel2 { relative: 0.0 0.0; to_x: "badge_padding"; to_y: "padding_bottom_text"; }
529             }
530          }
531          part { name: "access.title";
532             type: RECT;
533             repeat_events: 1;
534             description { state: "default" 0.0;
535                fixed: 1 1;
536                rel1.to: "title_bg";
537                rel2.to: "title_bg";
538                color: 0 0 0 0;
539             }
540          }
541          part { name: "title_more_btn";
542             type: SWALLOW;
543             scale: 1;
544             clip_to: "title_toolbar_clip";
545             description { state: "default" 0.0;
546                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
547                fixed: 1 1;
548                align: 0.5 0.5;
549                rel1.to: "title_more_btn_bg";
550                rel2.to: "title_more_btn_bg";
551             }
552          }
553          part { name: "title_prev_btn";
554             type: SWALLOW;
555             scale: 1;
556             clip_to: "title_toolbar_clip";
557             description { state: "default" 0.0;
558                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
559                fixed: 1 1;
560                align: 0.5 0.5;
561                rel1.to: "title_prev_btn_bg";
562                rel2.to: "title_prev_btn_bg";
563             }
564          }
565          part { name: "title_left_btn_bg";
566             type: RECT;
567             scale: 1;
568             clip_to: "title_clip";
569             description { state: "default" 0.0;
570                visible: 0;
571                min: 0 0;
572                fixed: 1 0;
573                align: 1.0 0.5;
574                rel1 { relative: 0.0 0.0; to: "title_right_btn_bg"; }
575                rel2 { relative: 0.0 1.0; to: "title_right_btn_bg"; }
576             }
577             description { state: "visible" 0.0;
578                inherit: "default" 0.0;
579                min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
580             }
581          }
582          part { name: "title_left_btn";
583             type: SWALLOW;
584             scale: 1;
585             clip_to: "title_clip";
586             description { state: "default" 0.0;
587                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
588                fixed: 1 1;
589                align: 0.5 0.5;
590                rel1 { to: "title_left_btn_bg"; }
591                rel2 { to: "title_left_btn_bg"; }
592             }
593          }
594          part { name: "title_toolbar_button1";
595             type: SWALLOW;
596             scale: 1;
597             clip_to: "title_toolbar_clip";
598             description { state: "default" 0.0;
599                fixed: 1 1;
600                align: 0.5 0.5;
601                rel1.to: "title_toolbar_btns_area";
602                rel2.to: "title_toolbar_btns_area";
603             }
604             description { state: "buttons_set" 0.0;
605                inherit: "default" 0.0;
606                align: 1.0 0.5;
607                rel2 {
608                   relative: 0.0 1.0;
609                   to: "title_toolbar_button_padding";
610                }
611             }
612          }
613          part { name: "title_toolbar_button2";
614             type: SWALLOW;
615             scale: 1;
616             clip_to: "title_toolbar_clip";
617             description { state: "default" 0.0;
618                fixed: 1 1;
619                align: 0.5 0.5;
620                rel1.to: "title_toolbar_btns_area";
621                rel2.to: "title_toolbar_btns_area";
622             }
623             description { state: "buttons_set" 0.0;
624                inherit: "default" 0.0;
625                align: 0.0 0.5;
626                rel1 {
627                   relative: 1.0 0.0;
628                   to: "title_toolbar_button_padding";
629                }
630             }
631          }
632          part { name: "elm.swallow.icon";
633             type: SWALLOW;
634             scale: 1;
635             clip_to: "title_clip";
636             description { state: "default" 0.0;
637                max: NAVIFRAME_ICON_SIZE_INC;
638                fixed: 1 1;
639                rel1 { relative: 0.0 0.0; to: "padding_before_text"; }
640                rel2 { relative: 0.0 1.0; to: "padding_before_text"; }
641                aspect: 1.0 1.0;
642                aspect_preference: VERTICAL;
643                align: 1.0 0.5;
644             }
645          }
646          part { name: "title_right_btn_bg";
647             type: RECT;
648             scale: 1;
649             clip_to: "title_clip";
650             description { state: "default" 0.0;
651                visible: 0;
652                min: 0 0;
653                fixed: 1 0;
654                align: 1.0 0.5;
655                rel1 { relative: 0.0 0.0; to: "right_padding"; }
656                rel2 { relative: 0.0 1.0; to: "right_padding"; }
657             }
658             description { state: "visible" 0.0;
659                inherit: "default" 0.0;
660                min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
661             }
662          }
663          part { name: "title_right_btn";
664             type: SWALLOW;
665             scale: 1;
666             clip_to: "title_clip";
667             description { state: "default" 0.0;
668                max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
669                align: 0.5 0.5;
670                fixed: 1 1;
671                rel1 { to: "title_right_btn_bg"; }
672                rel2 { to: "title_right_btn_bg"; }
673             }
674          }
675          part { name: "toolbar_bg";
676             type: RECT;
677             scale: 1;
678             description { state: "default" 0.0;
679                min: 0 0;
680                max: 999999 0;
681                fixed: 0 1;
682                align: 0.0 1.0;
683                visible: 0;
684                rel1 { to: "base"; }
685                rel2 { to: "base"; }
686                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
687             }
688             description { state: "visible" 0.0;
689                inherit: "default" 0.0;
690                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
691                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
692                visible: 1;
693             }
694          }
695          part { name: "more_btn_bg";
696             type: RECT;
697             scale: 1;
698             mouse_events: 0;
699             description { state: "default" 0.0;
700                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
701                fixed: 1 0;
702                align: 0.0 0.0;
703                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
704                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
705                visible: 0;
706             }
707          }
708          part { name: "toolbar_more_btn";
709             type: SWALLOW;
710             scale: 1;
711             clip_to: "toolbar_clip";
712             description { state: "default" 0.0;
713                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
714                fixed: 1 1;
715                rel1.to: "more_btn_bg";
716                rel2.to: "more_btn_bg";
717             }
718          }
719          part { name: "prev_btn_bg";
720             type: RECT;
721             scale: 1;
722             mouse_events: 0;
723             description { state: "default" 0.0;
724                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
725                fixed: 1 0;
726                align: 1.0 0.0;
727                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
728                rel2.to: "toolbar_bg";
729                visible: 0;
730             }
731          }
732          part { name: "elm.swallow.prev_btn";
733             type: SWALLOW;
734             scale: 1;
735             clip_to: "toolbar_clip";
736             description { state: "default" 0.0;
737                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
738                fixed: 1 1;
739                align: 0.5 0.5;
740                rel1.to: "prev_btn_bg";
741                rel2.to: "prev_btn_bg";
742             }
743          }
744          part { name: "toolbar_btns_area";
745             type: RECT;
746             mouse_events: 0;
747             description { state: "default" 0.0;
748                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
749                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
750                visible: 0;
751             }
752          }
753          part { name: "toolbar_clip";
754             type: RECT;
755             mouse_events: 0;
756             description { state: "default" 0.0;
757                rel1 { to: "toolbar_bg"; }
758                rel2 { to: "toolbar_bg"; }
759             }
760          }
761          part { name: "toolbar_button1";
762             type: SWALLOW;
763             scale: 1;
764             clip_to: "toolbar_clip";
765             description { state: "default" 0.0;
766                fixed: 1 1;
767                align: 0.5 0.5;
768                rel1.to: "toolbar_btns_area";
769                rel2.to: "toolbar_btns_area";
770             }
771             description { state: "buttons_set" 0.0;
772                inherit: "default" 0.0;
773                align: 1.0 0.5;
774                rel2 {
775                   relative: 0.0 1.0;
776                   to: "toolbar_button_padding";
777                }
778             }
779          }
780          part { name: "toolbar_button_padding";
781             type: RECT;
782             scale : 1;
783             description { state: "default" 0.0;
784                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
785                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
786                fixed : 1 0;
787                visible: 0;
788                align: 0.5 0.5;
789                rel1.to: "toolbar_btns_area";
790                rel2.to: "toolbar_btns_area";
791             }
792          }
793          part { name: "toolbar_button2";
794             type: SWALLOW;
795             scale: 1;
796             clip_to: "toolbar_clip";
797             description { state: "default" 0.0;
798                fixed: 1 1;
799                align: 0.5 0.5;
800                rel1.to: "toolbar_btns_area";
801                rel2.to: "toolbar_btns_area";
802             }
803             description { state: "buttons_set" 0.0;
804                inherit: "default" 0.0;
805                align: 0.0 0.5;
806                rel1 {
807                   relative: 1.0 0.0;
808                   to: "toolbar_button_padding";
809                }
810             }
811          }
812       }
813       programs {
814          program { name: "content_new_pushed";
815             signal: "elm,state,new,pushed,deferred";
816             source: "elm";
817             action: STATE_SET "default" 0.0;
818             target: "base";
819             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
820             after: "show_finished";
821          }
822          program { name: "content_cur_pushed";
823             signal: "elm,state,cur,pushed,deferred";
824             source: "elm";
825             action: STATE_SET "left" 0.0;
826             target: "base";
827             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
828             after: "pushed_finished";
829          }
830          program { name: "content_prev_popped";
831             signal: "elm,state,prev,popped,deferred";
832             source: "elm";
833             action: STATE_SET "default" 0.0;
834             target: "base";
835             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
836             after: "show_finished";
837          }
838          program { name: "content_cur_popped";
839             signal: "elm,state,cur,popped,deferred";
840             source: "elm";
841             action: STATE_SET "right" 0.0;
842             target: "base";
843             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
844             after: "popped_finished";
845          }
846          program { name: "cur_pushed";
847             signal: "elm,state,cur,pushed";
848             source: "elm";
849             action: STATE_SET "default" 0.0;
850             target: "base";
851          }
852          program { name: "new_pushed";
853             signal: "elm,state,new,pushed";
854             source: "elm";
855             action: STATE_SET "right" 0.0;
856             target: "base";
857          }
858          program { name: "prev_popped";
859             signal: "elm,state,prev,popped";
860             source: "elm";
861             action: STATE_SET "left" 0.0;
862             target: "base";
863          }
864          program { name: "cur_popped";
865             signal: "elm,state,cur,popped";
866             source: "elm";
867             action: STATE_SET "default" 0.0;
868             target: "base";
869          }
870          program { name: "visible";
871             signal: "elm,state,visible";
872             source: "elm";
873             action: STATE_SET "default" 0.0;
874             target: "base";
875          }
876          program { name: "title_show";
877             signal: "elm,state,title,show";
878             source: "elm";
879             script {
880                if (get_int(sip_visible) == 0)
881                  set_state(PART:"title_bg", "default", 0.0);
882                else
883                  set_state(PART:"title_toolbar_bg", "show", 0.0);
884             }
885          }
886          program { name: "title_hide";
887             signal: "elm,state,title,hide";
888             source: "elm";
889             script {
890                if (get_int(sip_visible) == 0)
891                  set_state(PART:"title_bg", "hide", 0.0);
892                else
893                  set_state(PART:"title_toolbar_bg", "default", 0.0);
894             }
895          }
896          program { name: "subtitle_show";
897             signal: "elm,state,subtitle,show";
898             source: "elm";
899             script {
900                set_state(PART:"elm.text.title", "subtitle_is_set", 0.0);
901             }
902          }
903          program { name: "subtitle_hide";
904             signal: "elm,state,subtitle,hide";
905             source: "elm";
906             script {
907                set_state(PART:"elm.text.title", "default", 0.0);
908             }
909          }
910          program { name: "icon_show";
911             signal: "elm,state,icon,show";
912             source: "elm";
913             action: STATE_SET "icon" 0.0;
914             target: "padding_center_text1";
915          }
916          program { name: "icon_hide";
917             signal: "elm,state,icon,hide";
918             source: "elm";
919             action: STATE_SET "default" 0.0;
920             target: "padding_center_text1";
921          }
922          program { name: "left_btn_show";
923             signal: "elm,state,title_left_btn,show";
924             source: "elm";
925             script {
926                set_state(PART:"title_left_btn_bg", "visible", 0.0);
927             }
928          }
929          program { name: "left_btn_hide";
930             signal: "elm,state,title_left_btn,hide";
931             source: "elm";
932             script {
933                  set_state(PART:"title_left_btn_bg", "default", 0.0);
934             }
935          }
936          program { name: "right_btn_show";
937             signal: "elm,state,title_right_btn,show";
938             source: "elm";
939             script {
940                set_state(PART:"title_right_btn_bg", "visible", 0.0);
941             }
942          }
943          program { name: "right_btn_hide";
944             signal: "elm,state,title_right_btn,hide";
945             source: "elm";
946             script {
947                  set_state(PART:"title_right_btn_bg", "default", 0.0);
948             }
949          }
950          program { name: "sip_show";
951             signal: "elm,state,sip,shown";
952             source: "";
953             script {
954                set_int(sip_visible, 1);
955                set_state(PART:"title_bg", "hide", 0.0);
956                set_state(PART:"elm.swallow.content", "sip_visible", 0.0);
957                set_state(PART:"title_toolbar_bg", "show", 0.0);
958             }
959          }
960          program { name: "sip_hide";
961             signal: "elm,state,sip,hidden";
962             source: "";
963             script {
964                set_int(sip_visible, 0);
965                set_state(PART:"title_bg", "default", 0.0);
966                set_state(PART:"elm.swallow.content", "default", 0.0);
967                set_state(PART:"title_toolbar_bg", "default", 0.0);
968             }
969          }
970          program { name: "title_toolbar_button1_show";
971             signal: "elm,state,title_toolbar_button1,show";
972             source: "elm";
973             script {
974                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
975                if (get_int(title_toolbar_buttons_visible) >= 2)
976                  {
977                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
978                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
979                  }
980             }
981          }
982          program { name: "title_toolbar_button1_hide";
983             signal: "elm,state,title_toolbar_button1,hide";
984             source: "elm";
985             script {
986                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
987                set_state(PART:"title_toolbar_button1", "default", 0.0);
988                set_state(PART:"title_toolbar_button2", "default", 0.0);
989             }
990          }
991          program { name: "title_toolbar_button2_show";
992             signal: "elm,state,title_toolbar_button2,show";
993             source: "elm";
994             script {
995                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
996                if (get_int(title_toolbar_buttons_visible) >= 2)
997                  {
998                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
999                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
1000                  }
1001             }
1002          }
1003          program { name: "title_toolbar_button2_hide";
1004             signal: "elm,state,title_toolbar_button2,hide";
1005             source: "elm";
1006             script {
1007                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
1008                set_state(PART:"title_toolbar_button1", "default", 0.0);
1009                set_state(PART:"title_toolbar_button2", "default", 0.0);
1010             }
1011          }
1012          program { name: "prev_btn_show";
1013             signal: "elm,state,prev_btn,show";
1014             source: "elm";
1015             script {
1016                emit("elm,state,toolbar_bg,show", "elm");
1017             }
1018          }
1019          program { name: "prev_btn_hide";
1020             signal: "elm,state,prev_btn,hide";
1021             source: "elm";
1022             script {
1023                emit("elm,state,toolbar_bg,hide", "elm");
1024             }
1025          }
1026          program { name: "more_btn_show";
1027             signal: "elm,state,toolbar_more_btn,show";
1028             source: "elm";
1029             script {
1030                emit("elm,state,toolbar_bg,show", "elm");
1031             }
1032          }
1033          program { name: "more_btn_hide";
1034             signal: "elm,state,toolbar_more_btn,hide";
1035             source: "elm";
1036             script {
1037                emit("elm,state,toolbar_bg,hide", "elm");
1038             }
1039          }
1040          program { name: "toolbar_button1_show";
1041             signal: "elm,state,toolbar_button1,show";
1042             source: "elm";
1043             script {
1044                emit("elm,state,toolbar_bg,show", "elm");
1045                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1046                if (get_int(toolbar_buttons_visible) >= 2)
1047                  {
1048                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1049                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1050                  }
1051             }
1052          }
1053          program { name: "toolbar_button1_hide";
1054             signal: "elm,state,toolbar_button1,hide";
1055             source: "elm";
1056             script {
1057                emit("elm,state,toolbar_bg,hide", "elm");
1058                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1059                set_state(PART:"toolbar_button1", "default", 0.0);
1060                set_state(PART:"toolbar_button2", "default", 0.0);
1061             }
1062          }
1063          program { name: "toolbar_button2_show";
1064             signal: "elm,state,toolbar_button2,show";
1065             source: "elm";
1066             script {
1067                emit("elm,state,toolbar_bg,show", "elm");
1068                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1069                if (get_int(toolbar_buttons_visible) >= 2)
1070                  {
1071                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1072                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1073                  }
1074             }
1075          }
1076          program { name: "toolbar_button2_hide";
1077             signal: "elm,state,toolbar_button2,hide";
1078             source: "elm";
1079             script {
1080                emit("elm,state,toolbar_bg,hide", "elm");
1081                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1082                set_state(PART:"toolbar_button1", "default", 0.0);
1083                set_state(PART:"toolbar_button2", "default", 0.0);
1084             }
1085          }
1086          program { name: "toolbar_bg_show";
1087             signal: "elm,state,toolbar_bg,show";
1088             source: "elm";
1089             script {
1090                set_state(PART:"toolbar_bg", "visible", 0.0);
1091                set_int(tbar_bg, get_int(tbar_bg) + 1);
1092             }
1093          }
1094          program { name: "toolbar_bg_hide";
1095             signal: "elm,state,toolbar_bg,hide";
1096             source: "elm";
1097             script {
1098                set_int(tbar_bg, get_int(tbar_bg) - 1);
1099                if (get_int(tbar_bg) <= 0)
1100                  set_state(PART:"toolbar_bg", "default", 0.0);
1101             }
1102          }
1103          program { name: "toolbar_open_internal";
1104             signal: "elm,state,toolbar,open,internal";
1105             source: "elm";
1106             script {
1107                set_int(tbar_close, 0);
1108                set_state(PART:"toolbar_bg", "visible", 0.0);
1109             }
1110          }
1111          program { name: "toolbar_close_internal";
1112             signal: "elm,state,toolbar,close,internal";
1113             source: "elm";
1114             script {
1115                set_int(tbar_close, 1);
1116                set_state(PART:"toolbar_bg", "default", 0.0);
1117             }
1118          }
1119          program { name: "toolbar_open";
1120             signal: "elm,state,toolbar,open";
1121             source: "";
1122             action: STATE_SET "visible" 0.0;
1123             target: "toolbar_bg";
1124             transition: LINEAR 0.2;
1125             after: "toolbar_open_internal";
1126          }
1127          program { name: "toolbar_close";
1128             signal: "elm,state,toolbar,close";
1129             source: "";
1130             action: STATE_SET "default" 0.0;
1131             target: "toolbar_bg";
1132             transition: LINEAR 0.2;
1133             after: "toolbar_close_internal";
1134          }
1135          program { name: "toolbar_instant_open";
1136             signal: "elm,state,toolbar,instant_open";
1137             source: "";
1138             script {
1139                emit("elm,state,toolbar,open,internal", "elm");
1140             }
1141          }
1142          program { name: "toolbar_instant_close";
1143             signal: "elm,state,toolbar,instant_close";
1144             source: "";
1145             script {
1146                emit("elm,state,toolbar,close,internal", "elm");
1147             }
1148          }
1149          program { name: "show_finished";
1150             action: SIGNAL_EMIT "elm,action,show,finished" "";
1151          }
1152          program { name: "pushed_finished";
1153             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
1154          }
1155          program { name: "popped_finished";
1156             action: SIGNAL_EMIT "elm,action,popped,finished" "";
1157          }
1158          program {
1159             name: "title_clicked";
1160             signal: "mouse,clicked,1";
1161             source: "click_event_area";
1162             action: SIGNAL_EMIT "elm,action,title,clicked" "";
1163          }
1164          program {
1165             name: "display_mode_compress";
1166             signal: "display,mode,compress";
1167             source: "";
1168             script {
1169                set_state(PART:"toolbar_bg", "default", 0.0);
1170             }
1171          }
1172          program {
1173             name: "display_mode_default";
1174             signal: "display,mode,default";
1175             source: "";
1176             script {
1177                if ((get_int(tbar_bg) > 0) && (get_int(tbar_close) == 0))
1178                   set_state(PART:"toolbar_bg", "visible", 0.0);
1179             }
1180          }
1181          program {
1182             name: "title_badge_show";
1183             signal: "elm,state,title_badge,show";
1184             source: "elm";
1185             script {
1186                if (get_int(title_slide_visible) == 0)
1187                   set_state(PART:"badge_left_padding", "visible", 0.0);
1188                else
1189                   set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1190                set_state(PART:"badge_padding", "visible", 0.0);
1191                set_state(PART:"left.padding.text", "visible", 0.0);
1192                set_state(PART:"right.padding.text", "visible", 0.0);
1193                set_state(PART:"badge_bg", "visible", 0.0);
1194                set_state(PART:"title_badge", "visible", 0.0);
1195                set_int(title_badge_visible, 1);
1196             }
1197          }
1198          program {
1199             name: "title_badge_hide";
1200             signal: "elm,state,title_badge,hide";
1201             source: "elm";
1202             script {
1203                set_state(PART:"badge_left_padding", "default", 0.0);
1204                set_state(PART:"badge_padding", "default", 0.0);
1205                set_state(PART:"left.padding.text", "default", 0.0);
1206                set_state(PART:"right.padding.text", "default", 0.0);
1207                set_state(PART:"badge_bg", "default", 0.0);
1208                set_state(PART:"title_badge", "default", 0.0);
1209                set_int(title_badge_visible, 0);
1210             }
1211          }
1212          program {
1213             name: "title_slide_show";
1214             signal: "elm,state,elm.swallow.title,show";
1215             source: "elm";
1216             script {
1217                if (get_int(title_badge_visible) == 1)
1218                   set_state(PART:"badge_left_padding", "title_slide_is_set", 0.0);
1219                set_int(title_slide_visible, 1);
1220             }
1221          }
1222          program {
1223             name: "title_slide_hide";
1224             signal: "elm,state,elm.swallow.title,hide";
1225             source: "elm";
1226             script {
1227                if (get_int(title_badge_visible) == 1)
1228                   set_state(PART:"badge_left_padding", "visible", 0.0);
1229                set_int(title_slide_visible, 0);
1230             }
1231          }
1232       }
1233    }
1234
1235    group { name: "elm/naviframe/item/tabbar/default";
1236       script {
1237          public tbar_bg = 0;     //Controlbar BG Show call count
1238          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
1239          public title_toolbar_buttons_visible = 0; //when both title toolbar buttons are visible
1240          public tbar_close = 0; //Toolbar lastest Open/Close status
1241          public sip_visible = 0; //SIP latest visible/hidden status
1242       }
1243       parts {
1244          part { name: "base";
1245             type: RECT;
1246             mouse_events:  0;
1247             description { state: "default" 0.0;
1248                visible: 0;
1249             }
1250             description { state: "left" 0.0;
1251                inherit: "default" 0.0;
1252                rel1.relative: -1.0 0.0;
1253                rel2.relative: 0.0 1.0;
1254             }
1255             description { state: "right" 0.0;
1256                inherit: "default" 0.0;
1257                rel1.relative: 1.0 0.0;
1258                rel2.relative: 2.0 1.0;
1259             }
1260          }
1261          part { name: "title_toolbar_bg";
1262             type: RECT;
1263             scale: 1;
1264             description { state: "default" 0.0;
1265                min: 0 0;
1266                fixed: 0 1;
1267                align: 0.0 0.0;
1268                rel1 { relative: 0.0 0.0; to: "base"; }
1269                rel2 { relative: 1.0 0.0; to: "base"; }
1270                color: NAVIFRAME_TITLE_BG_COLOR_INC;
1271                visible: 0;
1272             }
1273             description { state: "show" 0.0;
1274                inherit: "default" 0.0;
1275                min: 0 NAVIFRAME_TITLE_H_INC;
1276                visible: 1;
1277             }
1278          }
1279          part { name: "title_toolbar_top_padding";
1280             type: RECT;
1281             mouse_events: 0;
1282             scale: 1;
1283             description {
1284                state: "default" 0.0;
1285                min: NAVIFRAME_TITLE_TOOLBAR_TOP_PADDING_INC;
1286                fixed: 0 1;
1287                align: 0.0 0.0;
1288                rel1 { relative: 0.0 0.0; to: "title_toolbar_bg"; }
1289                rel2 { relative: 1.0 0.0; to: "title_toolbar_bg"; }
1290                visible: 0;
1291             }
1292          }
1293          part { name: "title_toolbar_bottom_padding";
1294             type: RECT;
1295             mouse_events: 0;
1296             scale: 1;
1297             description { state: "default" 0.0;
1298                min: NAVIFRAME_TITLE_TOOLBAR_BOTTOM_PADDING_INC;
1299                fixed: 0 1;
1300                align: 0.0 1.0;
1301                rel1 { relative: 0.0 1.0; to: "title_toolbar_bg"; }
1302                rel2 { relative: 1.0 1.0; to: "title_toolbar_bg"; }
1303                visible: 0;
1304             }
1305          }
1306          part { name: "title_more_btn_bg";
1307             type: RECT;
1308             scale: 1;
1309             mouse_events: 0;
1310             description { state: "default" 0.0;
1311                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1312                fixed: 1 1;
1313                align: 0.0 0.0;
1314                rel1 { relative: 0.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
1315                rel2 { relative: 0.0 0.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
1316                visible: 0;
1317             }
1318          }
1319          part { name: "title_prev_btn_bg";
1320             type: RECT;
1321             scale: 1;
1322             mouse_events: 0;
1323             description { state: "default" 0.0;
1324                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1325                fixed: 1 1;
1326                align: 1.0 0.0;
1327                rel1 { relative: 1.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
1328                rel2 { relative: 1.0 0.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
1329                visible: 0;
1330             }
1331          }
1332          part { name: "title_toolbar_btns_area";
1333             type: RECT;
1334             mouse_events: 0;
1335             description { state: "default" 0.0;
1336                rel1 { relative: 1.0 0.0; to: "title_more_btn_bg"; }
1337                rel2 { relative: 0.0 1.0; to: "title_prev_btn_bg"; }
1338                visible: 0;
1339             }
1340          }
1341          part { name: "title_toolbar_clip";
1342             type: RECT;
1343             mouse_events: 0;
1344             description { state: "default" 0.0;
1345                rel1 { to: "title_toolbar_bg"; }
1346                rel2 { to: "title_toolbar_bg"; }
1347             }
1348          }
1349          part { name: "title_toolbar_button_padding";
1350             type: RECT;
1351             scale : 1;
1352             description { state: "default" 0.0;
1353                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
1354                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
1355                fixed : 1 0;
1356                visible: 0;
1357                align: 0.5 0.5;
1358                rel1.to: "title_toolbar_btns_area";
1359                rel2.to: "title_toolbar_btns_area";
1360             }
1361          }
1362          part { name: "title_bg";
1363             type: RECT;
1364             scale: 1;
1365             description { state: "default" 0.0;
1366                min: 1 NAVIFRAME_TAB_TITLE_H_INC;
1367                align: 0.0 0.0;
1368                fixed: 0 1;
1369                rel1 { relative: 0.0 0.0; to: "base"; }
1370                rel2 { relative: 1.0 0.0; to: "base"; }
1371                color: NAVIFRAME_TITLE_BG_COLOR_INC;
1372             }
1373             description { state: "hide" 0.0;
1374                inherit: "default" 0.0;
1375                min: 0 0;
1376                max: 0 0;
1377                fixed: 1 1;
1378             }
1379          }
1380          part { name: "title_clip";
1381             type: RECT;
1382             mouse_events: 0;
1383             description { state: "default" 0.0;
1384                rel1 { to: "title_bg"; }
1385                rel2 { to: "title_bg"; }
1386             }
1387          }
1388          part { name: "elm.swallow.content";
1389             type: SWALLOW;
1390             scale: 1;
1391             repeat_events: 0;
1392             clip_to: "content_clip";
1393             description { state: "default" 0.0;
1394                align: 0.0 0.0;
1395                rel1.relative: 0.0 1.0;
1396                rel1.to_x: "base";
1397                rel1.to_y: "title_bg";
1398                rel2.relative: 1.0 0.0;
1399                rel2.to_x: "base";
1400                rel2.to_y: "toolbar_bg";
1401             }
1402             description { state: "sip_visible" 0.0;
1403                inherit: "default" 0.0;
1404                rel1.to_y: "title_toolbar_bg";
1405             }
1406          }
1407          part { name: "content_clip";
1408             type: RECT;
1409             mouse_events: 0;
1410             description { state: "default" 0.0;
1411                rel1.to: "elm.swallow.content";
1412                rel2.to: "elm.swallow.content";
1413             }
1414          }
1415          part { name: "text_left_padding";
1416             type: RECT;
1417             scale: 1;
1418             mouse_events: 0;
1419             description { state: "default" 0.0;
1420                align: 0.0 0.5;
1421                rel1 { relative: 0.0 0.0; to: "title_bg"; }
1422                rel2 { relative: 0.0 1.0; to: "title_bg"; }
1423                fixed: 1 0;
1424                min: NAVIFRAME_PADDING_INC;
1425                visible: 0;
1426             }
1427          }
1428          part { name: "right_padding";
1429             type: RECT;
1430             scale: 1;
1431             mouse_events: 0;
1432             description { state: "default" 0.0;
1433                align: 1.0 0.5;
1434                rel1 { relative: 1.0 0.0; to: "title_bg"; }
1435                rel2 { relative: 1.0 1.0; to: "title_bg"; }
1436                fixed: 1 0;
1437                min: NAVIFRAME_PADDING3_INC;
1438                visible: 0;
1439             }
1440          }
1441          part { name: "elm.text.title";
1442             type: TEXT;
1443             scale: 1;
1444             effect: FAR_SHADOW BOTTOM;
1445             clip_to: "title_clip";
1446             description { state: "default" 0.0;
1447                visible: 1;
1448                text { font: "Tizen:style=Medium";
1449                   size: NAVIFRAME_TITLE_TAB_FONT_SIZE_INC;
1450                   min: 0 0;
1451                   max: 1 0;
1452                   align: 0.5 0.5;
1453                   text_class: "tizen";
1454                }
1455                min: 0 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1456                max: 999999 NAVIFRAME_TITLE_TAB_TEXT_H_INC;
1457                fixed: 1 1;
1458                color: NAVIFRAME_TITLE_TEXT_COLOR_INC;
1459                color3: 255 255 255 255;
1460                align: 0 0;
1461                rel1.to: "text_left_padding";
1462                rel1.relative: 1.0 0.0;
1463                rel2.to: "right_padding";
1464                rel2.relative: 0.0 1.0;
1465             }
1466          }
1467          part { name: "click_event_area";
1468              ignore_flags: ON_HOLD;
1469              description { state: "default" 0.0;
1470                 rel1 { to: "title_bg"; }
1471                 rel2 { to: "title_bg"; }
1472              }
1473          }
1474          part { name: "access.title";
1475             type: RECT;
1476             repeat_events: 1;
1477             description { state: "default" 0.0;
1478                fixed: 1 1;
1479                rel1.to: "title_bg";
1480                rel2.to: "title_bg";
1481                color: 0 0 0 0;
1482             }
1483          }
1484          part { name: "title_more_btn";
1485             type: SWALLOW;
1486             scale: 1;
1487             clip_to: "title_toolbar_clip";
1488             description { state: "default" 0.0;
1489                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1490                fixed: 1 1;
1491                align: 0.5 0.5;
1492                rel1.to: "title_more_btn_bg";
1493                rel2.to: "title_more_btn_bg";
1494             }
1495          }
1496          part { name: "title_prev_btn";
1497             type: SWALLOW;
1498             scale: 1;
1499             clip_to: "title_toolbar_clip";
1500             description { state: "default" 0.0;
1501                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1502                fixed: 1 1;
1503                align: 0.5 0.5;
1504                rel1.to: "title_prev_btn_bg";
1505                rel2.to: "title_prev_btn_bg";
1506             }
1507          }
1508          part { name: "title_toolbar_button1";
1509             type: SWALLOW;
1510             scale: 1;
1511             clip_to: "title_toolbar_clip";
1512             description { state: "default" 0.0;
1513                fixed: 1 1;
1514                align: 0.5 0.5;
1515                rel1.to: "title_toolbar_btns_area";
1516                rel2.to: "title_toolbar_btns_area";
1517             }
1518             description { state: "buttons_set" 0.0;
1519                inherit: "default" 0.0;
1520                align: 1.0 0.5;
1521                rel2 {
1522                   relative: 0.0 1.0;
1523                   to: "title_toolbar_button_padding";
1524                }
1525             }
1526          }
1527          part { name: "title_toolbar_button2";
1528             type: SWALLOW;
1529             scale: 1;
1530             clip_to: "title_toolbar_clip";
1531             description { state: "default" 0.0;
1532                fixed: 1 1;
1533                align: 0.5 0.5;
1534                rel1.to: "title_toolbar_btns_area";
1535                rel2.to: "title_toolbar_btns_area";
1536             }
1537             description { state: "buttons_set" 0.0;
1538                inherit: "default" 0.0;
1539                align: 0.0 0.5;
1540                rel1 {
1541                   relative: 1.0 0.0;
1542                   to: "title_toolbar_button_padding";
1543                }
1544             }
1545          }
1546          part { name: "tabbar";
1547             type: SWALLOW;
1548             scale: 1;
1549             clip_to: "title_clip";
1550             description { state: "default" 0.0;
1551                min: 0 NAVIFRAME_TITLE_TAB_H_INC;
1552                max: 999999 NAVIFRAME_TITLE_TAB_H_INC;
1553                fixed: 1 1;
1554                align: 0.5 0.0;
1555                rel1.to_x: "title_bg";
1556                rel1.to_y: "elm.text.title";
1557                rel1.relative: 0.0 1.0;
1558                rel2.to_x: "title_bg";
1559                rel2.to_y: "bottom_padding";
1560                rel2.relative: 1.0 0.0;
1561             }
1562          }
1563          part { name: "bottom_padding";
1564             type: RECT;
1565             mouse_events: 0;
1566             scale: 1;
1567             description { state: "default" 0.0;
1568                min: NAVIFRAME_BOTTOM_PADDING_INC;
1569                fixed: 0 1;
1570                align: 0.0 1.0;
1571                rel1 { relative: 0.0 1.0; to: "title_bg"; }
1572                rel2 { relative: 1.0 1.0; to: "title_bg"; }
1573                visible: 0;
1574             }
1575          }
1576          part { name: "toolbar_bg";
1577             type: RECT;
1578             scale: 1;
1579             description { state: "default" 0.0;
1580                min: 0 0;
1581                max: 999999 0;
1582                fixed: 0 1;
1583                align: 0.0 1.0;
1584                visible: 0;
1585                rel1 { to: "base"; }
1586                rel2 { to: "base"; }
1587                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
1588             }
1589             description { state: "visible" 0.0;
1590                inherit: "default" 0.0;
1591                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1592                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
1593                visible: 1;
1594             }
1595          }
1596          part { name: "more_btn_bg";
1597             type: RECT;
1598             scale: 1;
1599             mouse_events: 0;
1600             description { state: "default" 0.0;
1601                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1602                fixed: 1 0;
1603                align: 0.0 0.0;
1604                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
1605                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
1606                visible: 0;
1607             }
1608          }
1609          part { name: "toolbar_more_btn";
1610             type: SWALLOW;
1611             scale: 1;
1612             clip_to: "toolbar_clip";
1613             description { state: "default" 0.0;
1614                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1615                fixed: 1 1;
1616                rel1.to: "more_btn_bg";
1617                rel2.to: "more_btn_bg";
1618             }
1619          }
1620          part { name: "prev_btn_bg";
1621             type: RECT;
1622             scale: 1;
1623             mouse_events: 0;
1624             description { state: "default" 0.0;
1625                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
1626                fixed: 1 0;
1627                align: 1.0 0.0;
1628                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
1629                rel2.to: "toolbar_bg";
1630                visible: 0;
1631             }
1632          }
1633          part { name: "elm.swallow.prev_btn";
1634             type: SWALLOW;
1635             scale: 1;
1636             clip_to: "toolbar_clip";
1637             description { state: "default" 0.0;
1638                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
1639                fixed: 1 1;
1640                align: 0.5 0.5;
1641                rel1.to: "prev_btn_bg";
1642                rel2.to: "prev_btn_bg";
1643             }
1644          }
1645          part { name: "toolbar_btns_area";
1646             type: RECT;
1647             mouse_events: 0;
1648             description { state: "default" 0.0;
1649                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
1650                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
1651                visible: 0;
1652             }
1653          }
1654          part { name: "toolbar_clip";
1655             type: RECT;
1656             mouse_events: 0;
1657             description { state: "default" 0.0;
1658                rel1 { to: "toolbar_bg"; }
1659                rel2 { to: "toolbar_bg"; }
1660             }
1661          }
1662          part { name: "toolbar_button1";
1663             type: SWALLOW;
1664             scale: 1;
1665             clip_to: "toolbar_clip";
1666             description { state: "default" 0.0;
1667                fixed: 1 1;
1668                align: 0.5 0.5;
1669                rel1.to: "toolbar_btns_area";
1670                rel2.to: "toolbar_btns_area";
1671             }
1672             description { state: "buttons_set" 0.0;
1673                inherit: "default" 0.0;
1674                align: 1.0 0.5;
1675                rel2 {
1676                   relative: 0.0 1.0;
1677                   to: "toolbar_button_padding";
1678                }
1679             }
1680          }
1681          part { name: "toolbar_button_padding";
1682             type: RECT;
1683             scale : 1;
1684             mouse_events: 0;
1685             description { state: "default" 0.0;
1686                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
1687                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
1688                fixed : 1 0;
1689                visible: 0;
1690                align: 0.5 0.5;
1691                rel1.to: "toolbar_btns_area";
1692                rel2.to: "toolbar_btns_area";
1693             }
1694          }
1695          part { name: "toolbar_button2";
1696             type: SWALLOW;
1697             scale: 1;
1698             clip_to: "toolbar_clip";
1699             description { state: "default" 0.0;
1700                fixed: 1 1;
1701                align: 0.5 0.5;
1702                rel1.to: "toolbar_btns_area";
1703                rel2.to: "toolbar_btns_area";
1704             }
1705             description { state: "buttons_set" 0.0;
1706                inherit: "default" 0.0;
1707                align: 0.0 0.5;
1708                rel1 {
1709                   relative: 1.0 0.0;
1710                   to: "toolbar_button_padding";
1711                }
1712             }
1713          }
1714       }
1715       programs {
1716          program { name: "content_new_pushed";
1717             signal: "elm,state,new,pushed,deferred";
1718             source: "elm";
1719             action: STATE_SET "default" 0.0;
1720             target: "base";
1721             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1722             after: "show_finished";
1723          }
1724          program { name: "content_cur_pushed";
1725             signal: "elm,state,cur,pushed,deferred";
1726             source: "elm";
1727             action: STATE_SET "left" 0.0;
1728             target: "base";
1729             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1730             after: "pushed_finished";
1731          }
1732          program { name: "content_prev_popped";
1733             signal: "elm,state,prev,popped,deferred";
1734             source: "elm";
1735             action: STATE_SET "default" 0.0;
1736             target: "base";
1737             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1738             after: "show_finished";
1739          }
1740          program { name: "content_cur_popped";
1741             signal: "elm,state,cur,popped,deferred";
1742             source: "elm";
1743             action: STATE_SET "right" 0.0;
1744             target: "base";
1745             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
1746             after: "popped_finished";
1747          }
1748          program { name: "cur_pushed";
1749             signal: "elm,state,cur,pushed";
1750             source: "elm";
1751             action: STATE_SET "default" 0.0;
1752             target: "base";
1753          }
1754          program { name: "new_pushed";
1755             signal: "elm,state,new,pushed";
1756             source: "elm";
1757             action: STATE_SET "right" 0.0;
1758             target: "base";
1759          }
1760          program { name: "prev_popped";
1761             signal: "elm,state,prev,popped";
1762             source: "elm";
1763             action: STATE_SET "left" 0.0;
1764             target: "base";
1765          }
1766          program { name: "cur_popped";
1767             signal: "elm,state,cur,popped";
1768             source: "elm";
1769             action: STATE_SET "default" 0.0;
1770             target: "base";
1771          }
1772          program { name: "visible";
1773             signal: "elm,state,visible";
1774             source: "elm";
1775             action: STATE_SET "default" 0.0;
1776             target: "base";
1777          }
1778          program { name: "title_show";
1779             signal: "elm,state,title,show";
1780             source: "elm";
1781             script {
1782                if (get_int(sip_visible) == 0)
1783                  set_state(PART:"title_bg", "default", 0.0);
1784                else
1785                  set_state(PART:"title_toolbar_bg", "show", 0.0);
1786             }
1787          }
1788          program { name: "title_hide";
1789             signal: "elm,state,title,hide";
1790             source: "elm";
1791             script {
1792                if (get_int(sip_visible) == 0)
1793                  set_state(PART:"title_bg", "hide", 0.0);
1794                else
1795                  set_state(PART:"title_toolbar_bg", "default", 0.0);
1796             }
1797          }
1798          program { name: "sip_show";
1799             signal: "elm,state,sip,shown";
1800             source: "";
1801             script {
1802                set_int(sip_visible, 1);
1803                set_state(PART:"title_bg", "hide", 0.0);
1804                set_state(PART:"elm.swallow.content", "sip_visible", 0.0);
1805                set_state(PART:"title_toolbar_bg", "show", 0.0);
1806             }
1807          }
1808          program { name: "sip_hide";
1809             signal: "elm,state,sip,hidden";
1810             source: "";
1811             script {
1812                set_int(sip_visible, 0);
1813                set_state(PART:"title_bg", "default", 0.0);
1814                set_state(PART:"elm.swallow.content", "default", 0.0);
1815                set_state(PART:"title_toolbar_bg", "default", 0.0);
1816             }
1817          }
1818          program { name: "title_toolbar_button1_show";
1819             signal: "elm,state,title_toolbar_button1,show";
1820             source: "elm";
1821             script {
1822                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
1823                if (get_int(title_toolbar_buttons_visible) >= 2)
1824                  {
1825                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
1826                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
1827                  }
1828             }
1829          }
1830          program { name: "title_toolbar_button1_hide";
1831             signal: "elm,state,title_toolbar_button1,hide";
1832             source: "elm";
1833             script {
1834                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
1835                set_state(PART:"title_toolbar_button1", "default", 0.0);
1836                set_state(PART:"title_toolbar_button2", "default", 0.0);
1837             }
1838          }
1839          program { name: "title_toolbar_button2_show";
1840             signal: "elm,state,title_toolbar_button2,show";
1841             source: "elm";
1842             script {
1843                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
1844                if (get_int(title_toolbar_buttons_visible) >= 2)
1845                  {
1846                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
1847                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
1848                  }
1849             }
1850          }
1851          program { name: "title_toolbar_button2_hide";
1852             signal: "elm,state,title_toolbar_button2,hide";
1853             source: "elm";
1854             script {
1855                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
1856                set_state(PART:"title_toolbar_button1", "default", 0.0);
1857                set_state(PART:"title_toolbar_button2", "default", 0.0);
1858             }
1859          }
1860          program { name: "prev_btn_show";
1861             signal: "elm,state,prev_btn,show";
1862             source: "elm";
1863             script {
1864                emit("elm,state,toolbar_bg,show", "elm");
1865             }
1866          }
1867          program { name: "prev_btn_hide";
1868             signal: "elm,state,prev_btn,hide";
1869             source: "elm";
1870             script {
1871                emit("elm,state,toolbar_bg,hide", "elm");
1872             }
1873          }
1874          program { name: "more_btn_show";
1875             signal: "elm,state,toolbar_more_btn,show";
1876             source: "elm";
1877             script {
1878                emit("elm,state,toolbar_bg,show", "elm");
1879             }
1880          }
1881          program { name: "more_btn_hide";
1882             signal: "elm,state,toolbar_more_btn,hide";
1883             source: "elm";
1884             script {
1885                emit("elm,state,toolbar_bg,hide", "elm");
1886             }
1887          }
1888          program { name: "toolbar_button1_show";
1889             signal: "elm,state,toolbar_button1,show";
1890             source: "elm";
1891             script {
1892                emit("elm,state,toolbar_bg,show", "elm");
1893                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1894                if (get_int(toolbar_buttons_visible) >= 2)
1895                  {
1896                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1897                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1898                  }
1899             }
1900          }
1901          program { name: "toolbar_button1_hide";
1902             signal: "elm,state,toolbar_button1,hide";
1903             source: "elm";
1904             script {
1905                emit("elm,state,toolbar_bg,hide", "elm");
1906                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1907                set_state(PART:"toolbar_button1", "default", 0.0);
1908                set_state(PART:"toolbar_button2", "default", 0.0);
1909             }
1910          }
1911          program { name: "toolbar_button2_show";
1912             signal: "elm,state,toolbar_button2,show";
1913             source: "elm";
1914             script {
1915                emit("elm,state,toolbar_bg,show", "elm");
1916                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
1917                if (get_int(toolbar_buttons_visible) >= 2)
1918                  {
1919                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
1920                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
1921                  }
1922             }
1923          }
1924          program { name: "toolbar_button2_hide";
1925             signal: "elm,state,toolbar_button2,hide";
1926             source: "elm";
1927             script {
1928                emit("elm,state,toolbar_bg,hide", "elm");
1929                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
1930                set_state(PART:"toolbar_button1", "default", 0.0);
1931                set_state(PART:"toolbar_button2", "default", 0.0);
1932             }
1933          }
1934          program { name: "toolbar_bg_show";
1935             signal: "elm,state,toolbar_bg,show";
1936             source: "elm";
1937             script {
1938                set_state(PART:"toolbar_bg", "visible", 0.0);
1939                set_int(tbar_bg, get_int(tbar_bg) + 1);
1940             }
1941          }
1942          program { name: "toolbar_bg_hide";
1943             signal: "elm,state,toolbar_bg,hide";
1944             source: "elm";
1945             script {
1946                set_int(tbar_bg, get_int(tbar_bg) - 1);
1947                if (get_int(tbar_bg) <= 0)
1948                  set_state(PART:"toolbar_bg", "default", 0.0);
1949             }
1950          }
1951          program { name: "toolbar_open_internal";
1952             signal: "elm,state,toolbar,open,internal";
1953             source: "elm";
1954             script {
1955                set_int(tbar_close, 0);
1956                set_state(PART:"toolbar_bg", "visible", 0.0);
1957             }
1958          }
1959          program { name: "toolbar_close_internal";
1960             signal: "elm,state,toolbar,close,internal";
1961             source: "elm";
1962             script {
1963                set_int(tbar_close, 1);
1964                set_state(PART:"toolbar_bg", "default", 0.0);
1965             }
1966          }
1967          program { name: "toolbar_open";
1968             signal: "elm,state,toolbar,open";
1969             source: "";
1970             action: STATE_SET "visible" 0.0;
1971             target: "toolbar_bg";
1972             transition: LINEAR 0.2;
1973             after: "toolbar_open_internal";
1974          }
1975          program { name: "toolbar_close";
1976             signal: "elm,state,toolbar,close";
1977             source: "";
1978             action: STATE_SET "default" 0.0;
1979             target: "toolbar_bg";
1980             transition: LINEAR 0.2;
1981             after: "toolbar_close_internal";
1982          }
1983          program { name: "toolbar_instant_open";
1984             signal: "elm,state,toolbar,instant_open";
1985             source: "";
1986             script {
1987                emit("elm,state,toolbar,open,internal", "elm");
1988             }
1989          }
1990          program { name: "toolbar_instant_close";
1991             signal: "elm,state,toolbar,instant_close";
1992             source: "";
1993             script {
1994                emit("elm,state,toolbar,close,internal", "elm");
1995             }
1996          }
1997          program { name: "show_finished";
1998             action: SIGNAL_EMIT "elm,action,show,finished" "";
1999          }
2000          program { name: "pushed_finished";
2001             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2002          }
2003          program { name: "popped_finished";
2004             action: SIGNAL_EMIT "elm,action,popped,finished" "";
2005          }
2006          program {
2007             name: "title_clicked";
2008             signal: "mouse,clicked,1";
2009             source: "click_event_area";
2010             action: SIGNAL_EMIT "elm,action,title,clicked" "";
2011          }
2012          program {
2013             name: "display_mode_compress";
2014             signal: "display,mode,compress";
2015             source: "";
2016             script {
2017                set_state(PART:"toolbar_bg", "default", 0.0);
2018             }
2019          }
2020          program {
2021             name: "display_mode_default";
2022             signal: "display,mode,default";
2023             source: "";
2024             script {
2025                if ((get_int(tbar_bg) > 0) && (get_int(tbar_close) == 0))
2026                   set_state(PART:"toolbar_bg", "visible", 0.0);
2027             }
2028          }
2029       }
2030    }
2031
2032    group { name:"elm/naviframe/item/empty/default";
2033       script {
2034          public tbar_bg = 0;     //Toolbar BG Show call count
2035          public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
2036          public title_toolbar_buttons_visible = 0; //when both title toolbar buttons are visible
2037          public tbar_close = 0; //Toolbar lastest Open/Close status
2038          public sip_visible = 0; //SIP latest visible/hidden status
2039       }
2040       parts {
2041          part { name: "base";
2042             type: RECT;
2043             mouse_events:  0;
2044             description { state: "default" 0.0;
2045                visible: 0;
2046             }
2047             description { state: "left" 0.0;
2048                inherit: "default" 0.0;
2049                rel1.relative: -1.0 0.0;
2050                rel2.relative: 0.0 1.0;
2051             }
2052             description { state: "right" 0.0;
2053                inherit: "default" 0.0;
2054                rel1.relative: 1.0 0.0;
2055                rel2.relative: 2.0 1.0;
2056             }
2057          }
2058          part { name: "title_toolbar_bg";
2059             type: RECT;
2060             scale: 1;
2061             description { state: "default" 0.0;
2062                min: 0 0;
2063                fixed: 0 1;
2064                align: 0.0 0.0;
2065                rel1 { relative: 0.0 0.0; to: "base"; }
2066                rel2 { relative: 1.0 0.0; to: "base"; }
2067                color: NAVIFRAME_TITLE_BG_COLOR_INC;
2068                visible: 0;
2069             }
2070             description { state: "show" 0.0;
2071                inherit: "default" 0.0;
2072                min: 0 NAVIFRAME_TITLE_H_INC;
2073                visible: 1;
2074             }
2075          }
2076          part { name: "title_toolbar_top_padding";
2077             type: RECT;
2078             mouse_events: 0;
2079             scale: 1;
2080             description {
2081                state: "default" 0.0;
2082                min: NAVIFRAME_TITLE_TOOLBAR_TOP_PADDING_INC;
2083                fixed: 0 1;
2084                align: 0.0 0.0;
2085                rel1 { relative: 0.0 0.0; to: "title_toolbar_bg"; }
2086                rel2 { relative: 1.0 0.0; to: "title_toolbar_bg"; }
2087                visible: 0;
2088             }
2089          }
2090          part { name: "title_toolbar_bottom_padding";
2091             type: RECT;
2092             mouse_events: 0;
2093             scale: 1;
2094             description { state: "default" 0.0;
2095                min: NAVIFRAME_TITLE_TOOLBAR_BOTTOM_PADDING_INC;
2096                fixed: 0 1;
2097                align: 0.0 1.0;
2098                rel1 { relative: 0.0 1.0; to: "title_toolbar_bg"; }
2099                rel2 { relative: 1.0 1.0; to: "title_toolbar_bg"; }
2100                visible: 0;
2101             }
2102          }
2103          part { name: "title_more_btn_bg";
2104             type: RECT;
2105             scale: 1;
2106             mouse_events: 0;
2107             description { state: "default" 0.0;
2108                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2109                fixed: 1 1;
2110                align: 0.0 0.0;
2111                rel1 { relative: 0.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
2112                rel2 { relative: 0.0 0.0; to: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
2113                visible: 0;
2114             }
2115          }
2116          part { name: "title_more_btn";
2117             type: SWALLOW;
2118             scale: 1;
2119             clip_to: "title_toolbar_clip";
2120             description { state: "default" 0.0;
2121                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2122                fixed: 1 1;
2123                align: 0.5 0.5;
2124                rel1.to: "title_more_btn_bg";
2125                rel2.to: "title_more_btn_bg";
2126             }
2127          }
2128          part { name: "title_prev_btn_bg";
2129             type: RECT;
2130             scale: 1;
2131             mouse_events: 0;
2132             description { state: "default" 0.0;
2133                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2134                fixed: 1 1;
2135                align: 1.0 0.0;
2136                rel1 { relative: 1.0 1.0; to_x: "title_toolbar_bg"; to_y: "title_toolbar_top_padding"; }
2137                rel2 { relative: 1.0 0.0; to: "title_toolbar_bg"; to_y: "title_toolbar_bottom_padding"; }
2138                visible: 0;
2139             }
2140          }
2141          part { name: "title_prev_btn";
2142             type: SWALLOW;
2143             scale: 1;
2144             clip_to: "title_toolbar_clip";
2145             description { state: "default" 0.0;
2146                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2147                fixed: 1 1;
2148                align: 0.5 0.5;
2149                rel1.to: "title_prev_btn_bg";
2150                rel2.to: "title_prev_btn_bg";
2151             }
2152          }
2153          part { name: "title_toolbar_btns_area";
2154             type: RECT;
2155             mouse_events: 0;
2156             description { state: "default" 0.0;
2157                rel1 { relative: 1.0 0.0; to: "title_more_btn_bg"; }
2158                rel2 { relative: 0.0 1.0; to: "title_prev_btn_bg"; }
2159                visible: 0;
2160             }
2161          }
2162          part { name: "title_toolbar_clip";
2163             type: RECT;
2164             mouse_events: 0;
2165             description { state: "default" 0.0;
2166                rel1 { to: "title_toolbar_bg"; }
2167                rel2 { to: "title_toolbar_bg"; }
2168             }
2169          }
2170          part { name: "title_toolbar_button1";
2171             type: SWALLOW;
2172             scale: 1;
2173             clip_to: "title_toolbar_clip";
2174             description { state: "default" 0.0;
2175                fixed: 1 1;
2176                align: 0.5 0.5;
2177                rel1.to: "title_toolbar_btns_area";
2178                rel2.to: "title_toolbar_btns_area";
2179             }
2180             description { state: "buttons_set" 0.0;
2181                inherit: "default" 0.0;
2182                align: 1.0 0.5;
2183                rel2 {
2184                   relative: 0.0 1.0;
2185                   to: "title_toolbar_button_padding";
2186                }
2187             }
2188          }
2189          part { name: "title_toolbar_button_padding";
2190             type: RECT;
2191             scale : 1;
2192             description { state: "default" 0.0;
2193                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2194                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2195                fixed : 1 0;
2196                visible: 0;
2197                align: 0.5 0.5;
2198                rel1.to: "title_toolbar_btns_area";
2199                rel2.to: "title_toolbar_btns_area";
2200             }
2201          }
2202          part { name: "title_toolbar_button2";
2203             type: SWALLOW;
2204             scale: 1;
2205             clip_to: "title_toolbar_clip";
2206             description { state: "default" 0.0;
2207                fixed: 1 1;
2208                align: 0.5 0.5;
2209                rel1.to: "title_toolbar_btns_area";
2210                rel2.to: "title_toolbar_btns_area";
2211             }
2212             description { state: "buttons_set" 0.0;
2213                inherit: "default" 0.0;
2214                align: 0.0 0.5;
2215                rel1 {
2216                   relative: 1.0 0.0;
2217                   to: "title_toolbar_button_padding";
2218                }
2219             }
2220          }
2221          part { name: "title_bg";
2222             type: RECT;
2223             scale: 1;
2224             description { state: "default" 0.0;
2225                rel1 { to: "title"; }
2226                rel2 { to: "title"; }
2227                color: NAVIFRAME_TITLE_BG_COLOR_INC;
2228             }
2229             description { state: "hide" 0.0;
2230                inherit: "default" 0.0;
2231                min: 0 0;
2232                max: 0 0;
2233                fixed: 1 1;
2234             }
2235          }
2236          part { name: "elm.swallow.content";
2237             type: SWALLOW;
2238             scale: 1;
2239             repeat_events: 0;
2240             clip_to: "content_clip";
2241             description { state: "default" 0.0;
2242                align: 0.0 0.0;
2243                rel1.relative: 0.0 1.0;
2244                rel1.to_x: "base";
2245                rel1.to_y: "title_bg";
2246                rel2.relative: 1.0 0.0;
2247                rel2.to_x: "base";
2248                rel2.to_y: "toolbar_bg";
2249             }
2250             description { state: "sip_visible" 0.0;
2251                inherit: "default" 0.0;
2252                rel1.to_y: "title_toolbar_bg";
2253             }
2254          }
2255          part { name: "content_clip";
2256             type: RECT;
2257             mouse_events: 0;
2258             description { state: "default" 0.0;
2259                rel1.to: "elm.swallow.content";
2260                rel2.to: "elm.swallow.content";
2261             }
2262          }
2263          part { name: "title";
2264             type: SWALLOW;
2265             scale: 1;
2266             description { state: "default" 0.0;
2267                align: 0.5 0.0;
2268                fixed: 0 1;
2269                rel1 { relative: 0.0 0.0; to: "base"; }
2270                rel2 { relative: 1.0 0.0; to: "base"; }
2271             }
2272             description { state: "hide" 0.0;
2273                inherit: "default" 0.0;
2274                visible: 0;
2275                min: 0 0;
2276                max: 0 0;
2277                fixed: 1 1;
2278             }
2279          }
2280          part { name: "toolbar_bg";
2281             type: RECT;
2282             scale: 1;
2283             description { state: "default" 0.0;
2284                min: 0 0;
2285                max: 999999 0;
2286                fixed: 0 1;
2287                align: 0.0 1.0;
2288                visible: 0;
2289                rel1 { to: "base"; }
2290                rel2 { to: "base"; }
2291                color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
2292             }
2293             description { state: "visible" 0.0;
2294                inherit: "default" 0.0;
2295                min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2296                max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
2297                visible: 1;
2298             }
2299          }
2300          part { name: "more_btn_bg";
2301             type: RECT;
2302             scale: 1;
2303             mouse_events: 0;
2304             description { state: "default" 0.0;
2305                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2306                fixed: 1 0;
2307                align: 0.0 0.0;
2308                rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
2309                rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
2310                visible: 0;
2311             }
2312          }
2313          part { name: "toolbar_more_btn";
2314             type: SWALLOW;
2315             scale: 1;
2316             clip_to: "toolbar_clip";
2317             description { state: "default" 0.0;
2318                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2319                fixed: 1 1;
2320                rel1.to: "more_btn_bg";
2321                rel2.to: "more_btn_bg";
2322             }
2323          }
2324          part { name: "prev_btn_bg";
2325             type: RECT;
2326             scale: 1;
2327             mouse_events: 0;
2328             description { state: "default" 0.0;
2329                min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
2330                fixed: 1 0;
2331                align: 1.0 0.0;
2332                rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
2333                rel2.to: "toolbar_bg";
2334                visible: 0;
2335             }
2336          }
2337          part { name: "elm.swallow.prev_btn";
2338             type: SWALLOW;
2339             scale: 1;
2340             clip_to: "toolbar_clip";
2341             description { state: "default" 0.0;
2342                max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
2343                fixed: 1 1;
2344                align: 0.5 0.5;
2345                rel1.to: "prev_btn_bg";
2346                rel2.to: "prev_btn_bg";
2347             }
2348          }
2349          part { name: "toolbar_clip";
2350             type: RECT;
2351             mouse_events: 0;
2352             description { state: "default" 0.0;
2353                rel1 { to: "toolbar_bg"; }
2354                rel2 { to: "toolbar_bg"; }
2355             }
2356          }
2357          part { name: "toolbar_btns_area";
2358             type: RECT;
2359             mouse_events: 0;
2360             description { state: "default" 0.0;
2361                rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
2362                rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
2363                visible: 0;
2364             }
2365          }
2366          part { name: "toolbar_button1";
2367             type: SWALLOW;
2368             scale: 1;
2369             clip_to: "toolbar_clip";
2370             description { state: "default" 0.0;
2371                fixed: 1 1;
2372                align: 0.5 0.5;
2373                rel1.to: "toolbar_btns_area";
2374                rel2.to: "toolbar_btns_area";
2375             }
2376             description { state: "buttons_set" 0.0;
2377                inherit: "default" 0.0;
2378                align: 1.0 0.5;
2379                rel2 {
2380                   relative: 0.0 1.0;
2381                   to: "toolbar_button_padding";
2382                }
2383             }
2384          }
2385          part { name: "toolbar_button_padding";
2386             type: RECT;
2387             scale : 1;
2388             description { state: "default" 0.0;
2389                min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
2390                max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
2391                fixed : 1 0;
2392                visible: 0;
2393                align: 0.5 0.5;
2394                rel1.to: "toolbar_btns_area";
2395                rel2.to: "toolbar_btns_area";
2396             }
2397          }
2398          part { name: "toolbar_button2";
2399             type: SWALLOW;
2400             scale: 1;
2401             clip_to: "toolbar_clip";
2402             description { state: "default" 0.0;
2403                fixed: 1 1;
2404                align: 0.5 0.5;
2405                rel1.to: "toolbar_btns_area";
2406                rel2.to: "toolbar_btns_area";
2407             }
2408             description { state: "buttons_set" 0.0;
2409                inherit: "default" 0.0;
2410                align: 0.0 0.5;
2411                rel1 {
2412                   relative: 1.0 0.0;
2413                   to: "toolbar_button_padding";
2414                }
2415             }
2416          }
2417       }
2418       programs {
2419          program { name: "content_new_pushed";
2420             signal: "elm,state,new,pushed,deferred";
2421             source: "elm";
2422             action: STATE_SET "default" 0.0;
2423             target: "base";
2424             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2425             after: "show_finished";
2426          }
2427          program { name: "content_cur_pushed";
2428             signal: "elm,state,cur,pushed,deferred";
2429             source: "elm";
2430             action: STATE_SET "left" 0.0;
2431             target: "base";
2432             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2433             after: "pushed_finished";
2434          }
2435          program { name: "content_prev_popped";
2436             signal: "elm,state,prev,popped,deferred";
2437             source: "elm";
2438             action: STATE_SET "default" 0.0;
2439             target: "base";
2440             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2441             after: "show_finished";
2442          }
2443          program { name: "content_cur_popped";
2444             signal: "elm,state,cur,popped,deferred";
2445             source: "elm";
2446             action: STATE_SET "right" 0.0;
2447             target: "base";
2448             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2449             after: "popped_finished";
2450          }
2451          program { name: "cur_pushed";
2452             signal: "elm,state,cur,pushed";
2453             source: "elm";
2454             action: STATE_SET "default" 0.0;
2455             target: "base";
2456          }
2457          program { name: "new_pushed";
2458             signal: "elm,state,new,pushed";
2459             source: "elm";
2460             action: STATE_SET "right" 0.0;
2461             target: "base";
2462          }
2463          program { name: "prev_popped";
2464             signal: "elm,state,prev,popped";
2465             source: "elm";
2466             action: STATE_SET "left" 0.0;
2467             target: "base";
2468          }
2469          program { name: "cur_popped";
2470             signal: "elm,state,cur,popped";
2471             source: "elm";
2472             action: STATE_SET "default" 0.0;
2473             target: "base";
2474          }
2475          program { name: "visible";
2476             signal: "elm,state,visible";
2477             source: "elm";
2478             action: STATE_SET "default" 0.0;
2479             target: "base";
2480          }
2481          program { name: "title_show";
2482             signal: "elm,state,title,show";
2483             source: "elm";
2484             script {
2485                if (get_int(sip_visible) == 0) {
2486                  set_state(PART:"title_bg", "default", 0.0);
2487                  set_state(PART:"title", "default", 0.0);
2488                }
2489                else
2490                  set_state(PART:"title_toolbar_bg", "show", 0.0);
2491             }
2492          }
2493          program { name: "title_hide";
2494             signal: "elm,state,title,hide";
2495             source: "elm";
2496             script {
2497                if (get_int(sip_visible) == 0) {
2498                  set_state(PART:"title_bg", "hide", 0.0);
2499                  set_state(PART:"title", "hide", 0.0);
2500                }
2501                else
2502                  set_state(PART:"title_toolbar_bg", "default", 0.0);
2503             }
2504          }
2505          program { name: "sip_show";
2506             signal: "elm,state,sip,shown";
2507             source: "";
2508             script {
2509                set_int(sip_visible, 1);
2510                set_state(PART:"title_bg", "hide", 0.0);
2511                set_state(PART:"title", "hide", 0.0);
2512                set_state(PART:"title_toolbar_bg", "show", 0.0);
2513                set_state(PART:"elm.swallow.content", "sip_visible", 0.0);
2514             }
2515          }
2516          program { name: "sip_hide";
2517             signal: "elm,state,sip,hidden";
2518             source: "";
2519             script {
2520                set_int(sip_visible, 0);
2521                set_state(PART:"title_bg", "default", 0.0);
2522                set_state(PART:"title", "default", 0.0);
2523                set_state(PART:"title_toolbar_bg", "default", 0.0);
2524                set_state(PART:"elm.swallow.content", "default", 0.0);
2525             }
2526          }
2527          program { name: "title_toolbar_button1_show";
2528             signal: "elm,state,title_toolbar_button1,show";
2529             source: "elm";
2530             script {
2531                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
2532                if (get_int(title_toolbar_buttons_visible) >= 2)
2533                  {
2534                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
2535                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
2536                  }
2537             }
2538          }
2539          program { name: "title_toolbar_button1_hide";
2540             signal: "elm,state,title_toolbar_button1,hide";
2541             source: "elm";
2542             script {
2543                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
2544                set_state(PART:"title_toolbar_button1", "default", 0.0);
2545                set_state(PART:"title_toolbar_button2", "default", 0.0);
2546             }
2547          }
2548          program { name: "title_toolbar_button2_show";
2549             signal: "elm,state,title_toolbar_button2,show";
2550             source: "elm";
2551             script {
2552                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) + 1);
2553                if (get_int(title_toolbar_buttons_visible) >= 2)
2554                  {
2555                     set_state(PART:"title_toolbar_button1", "buttons_set", 0.0);
2556                     set_state(PART:"title_toolbar_button2", "buttons_set", 0.0);
2557                  }
2558             }
2559          }
2560          program { name: "title_toolbar_button2_hide";
2561             signal: "elm,state,title_toolbar_button2,hide";
2562             source: "elm";
2563             script {
2564                set_int(title_toolbar_buttons_visible, get_int(title_toolbar_buttons_visible) - 1);
2565                set_state(PART:"title_toolbar_button1", "default", 0.0);
2566                set_state(PART:"title_toolbar_button2", "default", 0.0);
2567             }
2568          }
2569          program { name: "prev_btn_show";
2570             signal: "elm,state,prev_btn,show";
2571             source: "elm";
2572             script {
2573                emit("elm,state,toolbar_bg,show", "elm");
2574             }
2575          }
2576          program { name: "prev_btn_hide";
2577             signal: "elm,state,prev_btn,hide";
2578             source: "elm";
2579             script {
2580                emit("elm,state,toolbar_bg,hide", "elm");
2581             }
2582          }
2583          program { name: "more_btn_show";
2584             signal: "elm,state,toolbar_more_btn,show";
2585             source: "elm";
2586             script {
2587                emit("elm,state,toolbar_bg,show", "elm");
2588             }
2589          }
2590          program { name: "more_btn_hide";
2591             signal: "elm,state,toolbar_more_btn,hide";
2592             source: "elm";
2593             script {
2594                emit("elm,state,toolbar_bg,hide", "elm");
2595             }
2596          }
2597          program { name: "toolbar_button1_show";
2598             signal: "elm,state,toolbar_button1,show";
2599             source: "elm";
2600             script {
2601                emit("elm,state,toolbar_bg,show", "elm");
2602                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2603                if (get_int(toolbar_buttons_visible) >= 2)
2604                  {
2605                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2606                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2607                  }
2608             }
2609          }
2610          program { name: "toolbar_button1_hide";
2611             signal: "elm,state,toolbar_button1,hide";
2612             source: "elm";
2613             script {
2614                emit("elm,state,toolbar_bg,hide", "elm");
2615                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2616                set_state(PART:"toolbar_button1", "default", 0.0);
2617                set_state(PART:"toolbar_button2", "default", 0.0);
2618             }
2619          }
2620          program { name: "toolbar_button2_show";
2621             signal: "elm,state,toolbar_button2,show";
2622             source: "elm";
2623             script {
2624                emit("elm,state,toolbar_bg,show", "elm");
2625                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
2626                if (get_int(toolbar_buttons_visible) >= 2)
2627                  {
2628                     set_state(PART:"toolbar_button1", "buttons_set", 0.0);
2629                     set_state(PART:"toolbar_button2", "buttons_set", 0.0);
2630                  }
2631             }
2632          }
2633          program { name: "toolbar_button2_hide";
2634             signal: "elm,state,toolbar_button2,hide";
2635             source: "elm";
2636             script {
2637                emit("elm,state,toolbar_bg,hide", "elm");
2638                set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
2639                set_state(PART:"toolbar_button1", "default", 0.0);
2640                set_state(PART:"toolbar_button2", "default", 0.0);
2641             }
2642          }
2643          program { name: "toolbar_bg_show";
2644             signal: "elm,state,toolbar_bg,show";
2645             source: "elm";
2646             script {
2647                set_state(PART:"toolbar_bg", "visible", 0.0);
2648                set_int(tbar_bg, get_int(tbar_bg) + 1);
2649             }
2650          }
2651          program { name: "toolbar_bg_hide";
2652             signal: "elm,state,toolbar_bg,hide";
2653             source: "elm";
2654             script {
2655                set_int(tbar_bg, get_int(tbar_bg) - 1);
2656                if (get_int(tbar_bg) <= 0)
2657                  set_state(PART:"toolbar_bg", "default", 0.0);
2658             }
2659          }
2660          program { name: "toolbar_open_internal";
2661             signal: "elm,state,toolbar,open,internal";
2662             source: "elm";
2663             script {
2664                set_int(tbar_close, 0);
2665                set_state(PART:"toolbar_bg", "visible", 0.0);
2666             }
2667          }
2668          program { name: "toolbar_close_internal";
2669             signal: "elm,state,toolbar,close,internal";
2670             source: "elm";
2671             script {
2672                set_int(tbar_close, 1);
2673                set_state(PART:"toolbar_bg", "default", 0.0);
2674             }
2675          }
2676          program { name: "toolbar_open";
2677             signal: "elm,state,toolbar,open";
2678             source: "";
2679             action: STATE_SET "visible" 0.0;
2680             target: "toolbar_bg";
2681             transition: LINEAR 0.2;
2682             after: "toolbar_open_internal";
2683          }
2684          program { name: "toolbar_close";
2685             signal: "elm,state,toolbar,close";
2686             source: "";
2687             action: STATE_SET "default" 0.0;
2688             target: "toolbar_bg";
2689             transition: LINEAR 0.2;
2690             after: "toolbar_close_internal";
2691          }
2692          program { name: "toolbar_instant_open";
2693             signal: "elm,state,toolbar,instant_open";
2694             source: "";
2695             script {
2696                emit("elm,state,toolbar,open,internal", "elm");
2697             }
2698          }
2699          program { name: "toolbar_instant_close";
2700             signal: "elm,state,toolbar,instant_close";
2701             source: "";
2702             script {
2703                emit("elm,state,toolbar,close,internal", "elm");
2704             }
2705          }
2706          program { name: "show_finished";
2707             action: SIGNAL_EMIT "elm,action,show,finished" "";
2708          }
2709          program { name: "pushed_finished";
2710             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2711          }
2712          program { name: "popped_finished";
2713             action: SIGNAL_EMIT "elm,action,popped,finished" "";
2714          }
2715          program {
2716             name: "display_mode_compress";
2717             signal: "display,mode,compress";
2718             source: "";
2719             script {
2720                set_state(PART:"toolbar_bg", "default", 0.0);
2721             }
2722          }
2723          program {
2724             name: "display_mode_default";
2725             signal: "display,mode,default";
2726             source: "";
2727             script {
2728                if ((get_int(tbar_bg) > 0) && (get_int(tbar_close) == 0))
2729                   set_state(PART:"toolbar_bg", "visible", 0.0);
2730             }
2731          }
2732       }
2733    }
2734
2735    group { name:"elm/naviframe/item/basic/uglib";
2736       parts {
2737          part { name: "base";
2738             type: RECT;
2739             mouse_events:  0;
2740             description { state: "default" 0.0;
2741                color: 255 255 255 255;
2742             }
2743             description { state: "right" 0.0;
2744                inherit: "default" 0.0;
2745                rel1.relative: 1.0 0.0;
2746                rel2.relative: 2.0 1.0;
2747                color: 255 255 255 0;
2748             }
2749          }
2750          part { name: "elm.swallow.content";
2751             type: SWALLOW;
2752             scale: 1;
2753             repeat_events: 0;
2754             clip_to: "base";
2755             description { state: "default" 0.0;
2756                align: 0.0 0.0;
2757                rel1.relative: 0.0 0.0;
2758                rel1.to: "base";
2759                rel2.relative: 1.0 1.0;
2760                rel2.to: "base";
2761             }
2762          }
2763       }
2764       programs {
2765          program { name: "content_new_pushed";
2766             signal: "elm,state,new,pushed,deferred";
2767             source: "elm";
2768             action: STATE_SET "default" 0.0;
2769             target: "base";
2770             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2771             after: "show_finished";
2772          }
2773          program { name: "content_cur_pushed";
2774             signal: "elm,state,cur,pushed,deferred";
2775             source: "elm";
2776             action: STATE_SET "default" 0.0;
2777             target: "base";
2778             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2779             after: "pushed_finished";
2780          }
2781          program { name: "content_prev_popped";
2782             signal: "elm,state,prev,popped,deferred";
2783             source: "elm";
2784             action: STATE_SET "default" 0.0;
2785             target: "base";
2786             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2787             after: "show_finished";
2788          }
2789          program { name: "content_cur_popped";
2790             signal: "elm,state,cur,popped,deferred";
2791             source: "elm";
2792             action: STATE_SET "right" 0.0;
2793             target: "base";
2794             transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
2795             after: "popped_finished";
2796          }
2797          program { name: "cur_pushed";
2798             signal: "elm,state,cur,pushed";
2799             source: "elm";
2800             action: STATE_SET "default" 0.0;
2801             target: "base";
2802          }
2803          program { name: "new_pushed";
2804             signal: "elm,state,new,pushed";
2805             source: "elm";
2806             action: STATE_SET "right" 0.0;
2807             target: "base";
2808          }
2809          program { name: "prev_popped";
2810             signal: "elm,state,prev,popped";
2811             source: "elm";
2812             action: STATE_SET "default" 0.0;
2813             target: "base";
2814          }
2815          program { name: "cur_popped";
2816             signal: "elm,state,cur,popped";
2817             source: "elm";
2818             action: STATE_SET "default" 0.0;
2819             target: "base";
2820          }
2821          program { name: "visible";
2822             signal: "elm,state,visible";
2823             source: "elm";
2824             action: STATE_SET "default" 0.0;
2825             target: "base";
2826          }
2827          program { name: "show_finished";
2828             action: SIGNAL_EMIT "elm,action,show,finished" "";
2829          }
2830          program { name: "pushed_finished";
2831             action: SIGNAL_EMIT "elm,action,pushed,finished" "";
2832          }
2833          program { name: "popped_finished";
2834             action: SIGNAL_EMIT "elm,action,popped,finished" "";
2835          }
2836       }
2837    }
2838
2839