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