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