[entry] Fix a editfield_space which using by rename icon and clear button.
[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    /************************************************************/
490    /* elm_layout -> fundamental template style with fastscroll */
491    /************************************************************/
492    group { name: "elm/layout/application/fastscroll";
493       parts {
494          part {
495             name: "bg";
496             type: RECT;
497             scale: 1;
498             description {
499                state: "default" 0.0;
500                color: 0 0 0 0;
501             }
502          }
503          part {
504             name: "right.padding";
505             type: RECT;
506             scale: 1;
507             description {
508                state: "default" 0.0;
509                rel1.relative: 1.0 0.0;
510                align: 1.0 0.5;
511                min: INDEX_ITEM_WIDTH_INC 0;
512                visible: 0;
513             }
514          }
515          part {
516             name: "elm.swallow.content";
517             type: SWALLOW;
518             scale: 1;
519             description {
520                state: "default" 0.0;
521                rel2 {
522                   to: "right.padding";
523                   relative: 0.0 1.0;
524                }
525             }
526          }
527          part {
528             name: "elm.swallow.fastscroll";
529             type: SWALLOW;
530             scale: 1;
531             description {
532                state: "default" 0.0;
533             }
534          }
535       }
536    }
537 group { name: "elm/layout/editfield/default";
538    images {
539       image: "00_edit_field_clear.png" COMP;
540    }
541    parts {
542       part {
543          name: "base";
544          type: RECT;
545          scale: 1;
546          ignore_flags: ON_HOLD;
547          description {
548             state: "default" 0.0;
549             min: 0 EDITFIELD_DEFAULT_MINH_INC;
550             color: 0 0 0 0;
551          }
552       }
553       part {
554          name: "top1";
555          type: RECT;
556          scale: 1;
557          ignore_flags: ON_HOLD;
558          description {
559             state: "default" 0.0;
560             visible: 0;
561             min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC;
562             fixed: 1 1;
563             rel1.relative: 0.0 0.0;
564             rel2.relative: 1.0 0.0;
565             align: 0.5 0;
566          }
567       }
568       part {
569          name: "left1";
570          type: RECT;
571          scale: 1;
572          ignore_flags: ON_HOLD;
573          description {
574             state: "default" 0.0;
575             visible: 0;
576             min: EDITFIELD_DEFAULT_LEFT1_INC 0;
577             fixed: 1 1;
578             align: 0 0;
579             rel1.relative : 0.0 0.0;
580             rel2.relative : 0.0 1.0;
581          }
582       }
583       part {
584          name: "right1";
585          type: RECT;
586          scale: 1;
587          ignore_flags: ON_HOLD;
588          description {
589             state: "default" 0.0;
590             visible: 0;
591             min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
592             fixed: 1 1;
593             align: 1 0;
594             rel1.relative : 1.0 0.0;
595             rel2.relative : 1.0 1.0;
596          }
597       }
598       part {
599          name: "right2";
600          type: RECT;
601          scale: 1;
602          ignore_flags: ON_HOLD;
603          description {
604             state: "default" 0.0;
605             visible: 0;
606             min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
607             fixed: 1 1;
608             align: 1 0;
609             rel1.relative : 1.0 0.0;
610             rel2.relative : 1.0 1.0;
611          }
612       }
613       part {
614          name: "bottom1";
615          type: RECT;
616          scale: 1;
617          ignore_flags: ON_HOLD;
618          description {
619             state: "default" 0.0;
620             visible: 0;
621             min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC;
622             fixed: 1 1;
623             align: 0 1;
624             rel1.relative: 0.0 1.0;
625          }
626       }
627       part {
628          name: "elm.guidetext";
629          type: TEXT;
630          scale: 1;
631          ignore_flags: ON_HOLD;
632          description {
633             state: "default" 0.0;
634             align: 0.0 0.0;
635             fixed: 1 1;
636             rel1.to: "elm.swallow.content";
637             rel2.to: "elm.swallow.content";
638             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
639             text {
640                font: "Tizen:style=Roman";
641                size: ENTRY_TEXT_SIZE_INC;
642                min: 0 0;
643                align: 0.0 0.5;
644                text_class: "tizen";
645             }
646          }
647          description {
648             state: "hidden" 0.0;
649             inherit: "default" 0.0;
650             visible: 0;
651          }
652       }
653       part {
654          name: "elm.swallow.content";
655          type: SWALLOW;
656          scale: 1;
657          ignore_flags: ON_HOLD;
658          description {
659             state: "default" 0.0;
660             min: 0 40;
661             rel1 {
662                relative : 1.0 1.0;
663                to_x: "left1";
664                to_y: "top1";
665             }
666             rel2 {
667                relative : 0.0 0.0;
668                to_x: "right1";
669                to_y: "bottom1";
670             }
671             align: 0.0 0.5;
672          }
673       }
674       part {
675          name: "eraser_image";
676          scale: 1;
677          clip_to: "eraser_image.clipper";
678          description {
679             state: "default" 0.0;
680             visible: 0;
681             min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
682             fixed: 1 1;
683             align: 1 0.5;
684             rel1 {
685                relative: 0.0 0.5;
686                to_x : "right2";
687             }
688             rel2 {
689                relative: 0.0 0.5;
690                to_x : "right2";
691             }
692             image.normal: "00_edit_field_clear.png";
693          }
694          description {
695             state: "elm.eraser.show" 0.0;
696             inherit: "default" 0.0;
697             visible: 1;
698          }
699       }
700       part { name: "eraser_image.clipper";
701          type: RECT;
702          description { state: "default" 0.0;
703             color: 0 0 0 0;
704          }
705          description { state: "elm.eraser.show" 0.0;
706             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
707          }
708          description { state: "elm.eraser.pressed" 0.0;
709             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
710          }
711       }
712       part {
713          name: "eraser";
714          type: RECT;
715          scale: 1;
716          mouse_events: 1;
717          description {
718             state: "default" 0.0;
719             visible: 0;
720             min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC;
721             fixed: 1 1;
722             align: 1 0.5;
723             color: 0 0 0 0;
724             rel1 {
725                relative: 0.0 0.5;
726                to_x : "right2";
727             }
728             rel2 {
729                relative: 0.0 0.5;
730                to_x : "right2";
731             }
732          }
733          description {
734             state: "elm.eraser.show" 0.0;
735             inherit: "default" 0.0;
736             visible: 1;
737          }
738       }
739    }
740    programs {
741       program {
742          name: "guidetext_show";
743          signal: "elm,state,guidetext,show";
744          source: "elm";
745          action: STATE_SET "default" 0.0;
746          target: "elm.guidetext";
747       }
748       program {
749          name: "guidetext_hide";
750          signal: "elm,state,guidetext,hide";
751          source: "elm";
752          action: STATE_SET "hidden" 0.0;
753          target: "elm.guidetext";
754       }
755       program {
756          name: "eraser_show";
757          signal: "elm,state,eraser,show";
758          source: "elm";
759          action: STATE_SET "elm.eraser.show" 0.0;
760          target: "eraser_image";
761          target: "eraser_image.clipper";
762          target: "eraser";
763       }
764       program {
765          name: "eraser_hide";
766          signal: "elm,state,eraser,hide";
767          source: "elm";
768          action: STATE_SET "default" 0.0;
769          target: "eraser_image";
770          target: "eraser_image.clipper";
771          target: "eraser";
772       }
773       program {
774          name: "eraser_clicked";
775          signal: "mouse,clicked,1";
776          source: "eraser";
777          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
778       }
779       program {
780          name: "eraser_pressed";
781          signal: "mouse,down,1";
782          source: "eraser";
783          action: STATE_SET "elm.eraser.pressed" 0.0;
784          target: "eraser_image.clipper";
785       }
786       program {
787          name: "eraser_unpressed";
788          signal: "mouse,up,1";
789          source: "eraser";
790          action: STATE_SET "elm.eraser.show" 0.0;
791          target: "eraser_image.clipper";
792       }
793    }
794 }
795
796 group { name: "elm/layout/editfield/title";
797    images {
798       image: "00_edit_field_clear.png" COMP;
799    }
800    parts {
801       part {
802          name: "base";
803          type: RECT;
804          scale: 1;
805          ignore_flags: ON_HOLD;
806          description {
807             state: "default" 0.0;
808             min: 0 EDITFIELD_TITLE_MINH_INC;
809             color: 0 0 0 0;
810          }
811       }
812       part {
813          name: "top1";
814          type: RECT;
815          scale: 1;
816          ignore_flags: ON_HOLD;
817          description {
818             state: "default" 0.0;
819             visible: 0;
820             min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC;
821             fixed: 1 1;
822             rel1.relative: 0.0 0.0;
823             rel2.relative: 1.0 0.0;
824             align: 0.5 0;
825          }
826       }
827       part {
828          name: "top2";
829          type: RECT;
830          scale: 1;
831          ignore_flags: ON_HOLD;
832          description {
833             state: "default" 0.0;
834             visible: 0;
835             min: 0 EDITFIELD_DEFAULT_TOP2_INC;
836             fixed: 1 1;
837             rel1.relative: 0.0 0.0;
838             rel2.relative: 1.0 0.0;
839             align: 0.5 0;
840          }
841       }
842       part {
843          name: "left1";
844          type: RECT;
845          scale: 1;
846          ignore_flags: ON_HOLD;
847          description {
848             state: "default" 0.0;
849             visible: 0;
850             min: EDITFIELD_DEFAULT_LEFT1_INC 0;
851             fixed: 1 1;
852             align: 0 0;
853             rel1.relative : 0.0 0.0;
854             rel2.relative : 0.0 1.0;
855          }
856       }
857       part {
858          name: "left2";
859          type: RECT;
860          scale: 1;
861          ignore_flags: ON_HOLD;
862          description {
863             state: "default" 0.0;
864             visible: 0;
865             min: EDITFIELD_DEFAULT_LEFT2_INC 0;
866             fixed: 1 1;
867             align: 0 0;
868             rel1.relative : 0.0 0.0;
869             rel2.relative : 0.0 1.0;
870          }
871       }
872       part {
873          name: "right1";
874          type: RECT;
875          scale: 1;
876          ignore_flags: ON_HOLD;
877          description {
878             state: "default" 0.0;
879             visible: 0;
880             min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
881             fixed: 1 1;
882             align: 1 0;
883             rel1.relative : 1.0 0.0;
884             rel2.relative : 1.0 1.0;
885          }
886       }
887       part {
888          name: "right2";
889          type: RECT;
890          scale: 1;
891          ignore_flags: ON_HOLD;
892          description {
893             state: "default" 0.0;
894             visible: 0;
895             min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
896             fixed: 1 1;
897             align: 1 0;
898             rel1.relative : 1.0 0.0;
899             rel2.relative : 1.0 1.0;
900          }
901       }
902       part {
903          name: "bottom1";
904          type: RECT;
905          scale: 1;
906          ignore_flags: ON_HOLD;
907          description {
908             state: "default" 0.0;
909             visible: 0;
910             min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC;
911             fixed: 1 1;
912             align: 0 1;
913             rel1.relative: 0.0 1.0;
914          }
915       }
916       part {
917          name: "bottom2";
918          type: RECT;
919          scale: 1;
920          ignore_flags: ON_HOLD;
921          description {
922             state: "default" 0.0;
923             visible: 0;
924             min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC;
925             fixed: 0 1;
926             rel1.relative: 0.0 1.0;
927             align: 0 1;
928          }
929       }
930       part {
931          name: "eraser_base";
932          type: RECT;
933          scale: 1;
934          ignore_flags: ON_HOLD;
935          description {
936             state: "default" 0.0;
937             visible: 0;
938             rel1 {
939                relative: 0.0 1.0;
940                to_y: "top1";
941             }
942          }
943       }
944       part {
945          name: "elm.text";
946          type: TEXT;
947          scale: 1;
948          ignore_flags: ON_HOLD;
949          description {
950             state: "default" 0.0;
951             align: 0.0 0.0;
952             min: 0 34;
953             fixed: 1 1;
954             rel1 {
955                relative: 1.0 1.0;
956                to_x: "left2";
957                to_y: "top2";
958             }
959             rel2 {
960                relative: 1.0 1.0;
961                to_x: "left2";
962                to_y: "top2";
963             }
964             color: EDITFIELD_TITLE_COLOR_INC;
965             text {
966                font: "Tizen:style=Medium";
967                size: EDITFIELD_TITLE_SIZE_INC;
968                min: 1 1;
969                align: 0.0 0.0;
970                text_class: "tizen";
971             }
972          }
973       }
974       part {
975          name: "elm.guidetext";
976          type: TEXT;
977          scale: 1;
978          ignore_flags: ON_HOLD;
979          description {
980             state: "default" 0.0;
981             align: 0.0 0.0;
982             fixed: 1 1;
983             rel1.to: "elm.swallow.content";
984             rel2.to: "elm.swallow.content";
985             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
986             text {
987                font: "Tizen:style=Roman";
988                size: ENTRY_TEXT_SIZE_INC;
989                min: 0 0;
990                align: 0.0 0.5;
991                text_class: "tizen";
992             }
993          }
994          description {
995             state: "hidden" 0.0;
996             inherit: "default" 0.0;
997             visible: 0;
998          }
999       }
1000       part {
1001          name: "elm.swallow.content";
1002          type: SWALLOW;
1003          scale: 1;
1004          ignore_flags: ON_HOLD;
1005          description {
1006             state: "default" 0.0;
1007             min: 0 40;
1008             rel1 {
1009                relative : 1.0 1.0;
1010                to_x: "left1";
1011                to_y: "top1";
1012             }
1013             rel2 {
1014                relative : 0.0 0.0;
1015                to_x: "right1";
1016                to_y: "bottom1";
1017             }
1018             align: 0.0 0.5;
1019          }
1020       }
1021       part {
1022          name: "eraser_image";
1023          scale: 1;
1024          clip_to: "eraser_image.clipper";
1025          description {
1026             state: "default" 0.0;
1027             visible: 0;
1028             min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
1029             fixed: 1 1;
1030             align: 1 0.5;
1031             rel1 {
1032                relative: 0.0 0.5;
1033                to_x : "right2";
1034                to_y : "eraser_base";
1035             }
1036             rel2 {
1037                relative: 0.0 0.5;
1038                to_x : "right2";
1039                to_y : "eraser_base";
1040             }
1041             image.normal: "00_edit_field_clear.png";
1042          }
1043          description {
1044             state: "elm.eraser.show" 0.0;
1045             inherit: "default" 0.0;
1046             visible: 1;
1047          }
1048       }
1049       part { name: "eraser_image.clipper";
1050          type: RECT;
1051          description { state: "default" 0.0;
1052             color: 0 0 0 0;
1053          }
1054          description { state: "elm.eraser.show" 0.0;
1055             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
1056          }
1057          description { state: "elm.eraser.pressed" 0.0;
1058             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
1059          }
1060       }
1061       part {
1062          name: "eraser";
1063          type: RECT;
1064          scale: 1;
1065          mouse_events: 1;
1066          description {
1067             state: "default" 0.0;
1068             visible: 0;
1069             min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC;
1070             fixed: 1 1;
1071             align: 1 0.5;
1072             color: 0 0 0 0;
1073             rel1 {
1074                relative: 0.0 0.5;
1075                to_x : "right2";
1076                to_y : "eraser_base";
1077             }
1078             rel2 {
1079                relative: 0.0 0.5;
1080                to_x : "right2";
1081                to_y : "eraser_base";
1082             }
1083          }
1084          description {
1085             state: "elm.eraser.show" 0.0;
1086             inherit: "default" 0.0;
1087             visible: 1;
1088          }
1089       }
1090    }
1091    programs {
1092       program {
1093          name: "guidetext_show";
1094          signal: "elm,state,guidetext,show";
1095          source: "elm";
1096          action: STATE_SET "default" 0.0;
1097          target: "elm.guidetext";
1098       }
1099       program {
1100          name: "guidetext_hide";
1101          signal: "elm,state,guidetext,hide";
1102          source: "elm";
1103          action: STATE_SET "hidden" 0.0;
1104          target: "elm.guidetext";
1105       }
1106       program {
1107          name: "eraser_show";
1108          signal: "elm,state,eraser,show";
1109          source: "elm";
1110          action: STATE_SET "elm.eraser.show" 0.0;
1111          target: "eraser_image";
1112          target: "eraser_image.clipper";
1113          target: "eraser";
1114       }
1115       program {
1116          name: "eraser_hide";
1117          signal: "elm,state,eraser,hide";
1118          source: "elm";
1119          action: STATE_SET "default" 0.0;
1120          target: "eraser_image";
1121          target: "eraser_image.clipper";
1122          target: "eraser";
1123       }
1124       program {
1125          name: "eraser_clicked";
1126          signal: "mouse,clicked,1";
1127          source: "eraser";
1128          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
1129       }
1130       program {
1131          name: "eraser_pressed";
1132          signal: "mouse,down,1";
1133          source: "eraser";
1134          action: STATE_SET "elm.eraser.pressed" 0.0;
1135          target: "eraser_image.clipper";
1136       }
1137       program {
1138          name: "eraser_unpressed";
1139          signal: "mouse,up,1";
1140          source: "eraser";
1141          action: STATE_SET "elm.eraser.show" 0.0;
1142          target: "eraser_image.clipper";
1143       }
1144    }
1145 }
1146
1147 sounds {
1148    sample {
1149       name: "touch_sound" AS_IS;
1150       source: "S_Touch_30ms.wav";
1151    }
1152 }
1153
1154 group { name: "elm/layout/searchbar/default";
1155    images {
1156       image: "00_edit_field_clear.png" COMP;
1157       image: "00_search_edit_field_bg.png" COMP;
1158       image: "00_search_icon.png" COMP;
1159    }
1160    parts {
1161       part { name: "inputfield_base";
1162          type: RECT;
1163          scale: 1;
1164          description { state: "default" 0.0;
1165             align: 0.0 0.0;
1166             visible: 0;
1167          }
1168       }
1169       part { name: "top_left_padding";
1170          type: RECT;
1171          mouse_events: 0;
1172          scale: 1;
1173          description {
1174             state: "default" 0.0;
1175             min: SEARCHBAR_LEFT_PADDING_INC SEARCHBAR_TOP_PADDING_INC;
1176             fixed: 1 1;
1177             align: 0.0 0.0;
1178             rel1 { relative: 0.0 0.0; to: "inputfield_base"; }
1179             rel2 { relative: 0.0 0.0; to: "inputfield_base"; }
1180             visible: 0;
1181          }
1182       }
1183       part { name: "bottom_right_padding";
1184          type: RECT;
1185          mouse_events: 0;
1186          scale: 1;
1187          description {
1188             state: "default" 0.0;
1189             min: SEARCHBAR_RIGHT_PADDING_INC SEARCHBAR_BOTTOM_PADDING_INC;
1190             fixed: 1 1;
1191             align: 1.0 1.0;
1192             rel1 { relative: 1.0 1.0; to: "inputfield_base"; }
1193             rel2 { relative: 1.0 1.0; to: "inputfield_base"; }
1194             visible: 0;
1195          }
1196       }
1197       part { name: "inputfield_rect";
1198          type: IMAGE;
1199          scale: 1;
1200          description { state: "default" 0.0;
1201             min: 0 SEARCHBAR_HEIGHT_INC;
1202             align: 0.0 0.5;
1203             image {
1204                normal: "00_search_edit_field_bg.png";
1205                border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1206             }
1207             rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
1208             rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
1209          }
1210       }
1211       part { name: "left_icon_padding_rect";
1212          type: RECT;
1213          scale: 1;
1214          description { state: "default" 0.0;
1215             visible: 0;
1216             min: SEARCHBAR_LEFT_ICON_PADDING_INC 0;
1217             fixed: 1 0;
1218             align: 0 0;
1219             rel1.to: "inputfield_rect";
1220             rel2 {
1221                relative: 0.0 1.0;
1222                to: "inputfield_rect";
1223             }
1224          }
1225       }
1226       part { name: "search_icon";
1227          type: IMAGE;
1228          scale: 1;
1229          ignore_flags: ON_HOLD;
1230          clip_to: "image.clipper";
1231          description { state: "default" 0.0;
1232             min: SEARCHBAR_ICON_MIN_W_INC SEARCHBAR_ICON_MIN_H_INC;
1233             fixed: 1 1;
1234             align: 0 0.5;
1235             rel1 {
1236                relative: 1.0 0.5;
1237                to_x: "left_icon_padding_rect";
1238                to_y: "inputfield_rect";
1239             }
1240             rel2 {
1241                relative: 1.0 0.5;
1242                to_x: "left_icon_padding_rect";
1243                to_y: "inputfield_rect";
1244             }
1245             image.normal: "00_search_icon.png";
1246          }
1247       }
1248       part { name: "image.clipper";
1249          type: RECT;
1250          description { state: "default" 0.0;
1251             color: SEARCHBAR_ICON_COLOR_INC;
1252          }
1253       }
1254       part { name: "left_padding_search_textfield";
1255          type: RECT;
1256          scale: 1;
1257          description { state: "default" 0.0;
1258             visible: 0;
1259             min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
1260             fixed: 1 0;
1261             align: 0.0 0.5;
1262             rel1 {
1263                relative: 1.0 0.0;
1264                to_x: "search_icon";
1265                to_y: "inputfield_rect";
1266             }
1267             rel2 {
1268                relative: 1.0 1.0;
1269                to_x: "search_icon";
1270                to_y: "inputfield_rect";
1271             }
1272          }
1273       }
1274       part { name: "right_padding_search_textfield";
1275          type: RECT;
1276          scale: 1;
1277          description { state: "default" 0.0;
1278             visible: 0;
1279             min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
1280             fixed: 1 0;
1281             align: 1.0 0.5;
1282             rel1 {
1283                relative: 1.0 0.0;
1284                to: "inputfield_rect";
1285             }
1286             rel2 {
1287                relative: 1.0 1.0;
1288                to: "inputfield_rect";
1289             }
1290          }
1291       }
1292       part { name: "search_textfield";
1293          type: RECT;
1294          mouse_events: 1;
1295          scale: 1;
1296          ignore_flags: ON_HOLD;
1297          description { state: "default" 0.0;
1298             color: 0 0 0 0;
1299             min: 1 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
1300             fixed: 0 1;
1301             align: 0.0 0.5;
1302             rel1 {
1303                relative: 1.0 0.0;
1304                to: "left_padding_search_textfield";
1305             }
1306             rel2 {
1307                relative: 0.0 1.0;
1308                to: "right_padding_search_textfield";
1309             }
1310          }
1311       }
1312       part { name: "top1";
1313          type: RECT;
1314          scale: 1;
1315          ignore_flags: ON_HOLD;
1316          description { state: "default" 0.0;
1317             visible: 0;
1318             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
1319             fixed: 1 1;
1320             rel1 {
1321                relative: 0.0 0.0;
1322                to: "search_textfield";
1323             }
1324             rel2 {
1325                relative: 1.0 0.0;
1326                to: "search_textfield";
1327             }
1328             align: 0.5 0;
1329          }
1330          description { state: "elm.text.show" 0.0;
1331             inherit: "default" 0.0;
1332             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
1333          }
1334       }
1335       part { name: "top2";
1336          type: RECT;
1337          scale: 1;
1338          ignore_flags: ON_HOLD;
1339          description { state: "default" 0.0;
1340             visible: 0;
1341             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
1342             fixed: 1 1;
1343             rel1 {
1344                relative: 0.0 0.0;
1345                to: "search_textfield";
1346             }
1347             rel2 {
1348                relative: 1.0 0.0;
1349                to: "search_textfield";
1350             }
1351             align: 0.5 0;
1352          }
1353       }
1354       part { name: "left1";
1355          type: RECT;
1356          scale: 1;
1357          ignore_flags: ON_HOLD;
1358          description { state: "default" 0.0;
1359             visible: 0;
1360             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
1361             fixed: 1 1;
1362             align: 0 0;
1363             rel1 {
1364                relative: 0.0 0.0;
1365                to: "search_textfield";
1366             }
1367             rel2 {
1368                relative: 0.0 1.0;
1369                to: "search_textfield";
1370             }
1371          }
1372       }
1373       part { name: "left2";
1374          type: RECT;
1375          scale: 1;
1376          ignore_flags: ON_HOLD;
1377          description { state: "default" 0.0;
1378             visible: 0;
1379             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
1380             fixed: 1 1;
1381             align: 0 0;
1382             rel1 {
1383                relative: 0.0 0.0;
1384                to: "search_textfield";
1385             }
1386             rel2 {
1387                relative: 0.0 1.0;
1388                to: "search_textfield";
1389             }
1390          }
1391       }
1392       part { name: "right1";
1393          type: RECT;
1394          scale: 1;
1395          ignore_flags: ON_HOLD;
1396          description { state: "default" 0.0;
1397             visible: 0;
1398             min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
1399             fixed: 1 1;
1400             align: 1 0;
1401             rel1 {
1402                relative: 1.0 0.0;
1403                to: "search_textfield";
1404             }
1405             rel2.to: "search_textfield";
1406          }
1407       }
1408       part { name: "right2";
1409          type: RECT;
1410          scale: 1;
1411          ignore_flags: ON_HOLD;
1412          description { state: "default" 0.0;
1413             visible: 0;
1414             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
1415             fixed: 1 1;
1416             align: 1 0;
1417             rel1 {
1418                relative: 1.0 0.0;
1419                to: "search_textfield";
1420             }
1421             rel2.to: "search_textfield";
1422          }
1423       }
1424       part { name: "bottom1";
1425          type: RECT;
1426          scale: 1;
1427          ignore_flags: ON_HOLD;
1428          description { state: "default" 0.0;
1429             visible: 0;
1430             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
1431             fixed: 1 1;
1432             align: 0 1;
1433             rel1 {
1434                relative: 0.0 1.0;
1435                to: "search_textfield";
1436             }
1437          }
1438          description { state: "elm.text.show" 0.0;
1439             inherit: "default" 0.0;
1440             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
1441          }
1442       }
1443       part { name: "bottom2";
1444          type: RECT;
1445          scale: 1;
1446          ignore_flags: ON_HOLD;
1447          description { state: "default" 0.0;
1448             visible: 0;
1449             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
1450             fixed: 0 1;
1451             rel1 {
1452                relative: 0.0 1.0;
1453                to: "search_textfield";
1454             }
1455             align: 0 1;
1456          }
1457          description { state: "elm.text.show" 0.0;
1458             inherit: "default" 0.0;
1459             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
1460          }
1461       }
1462       part { name: "bottom3";
1463          type: RECT;
1464          scale: 1;
1465          ignore_flags: ON_HOLD;
1466          description { state: "default" 0.0;
1467             visible: 0;
1468             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
1469             fixed: 0 1;
1470             rel1 {
1471                relative: 0.0 1.0;
1472                to: "search_textfield";
1473             }
1474             align: 0 1;
1475          }
1476          description { state: "elm.text.show" 0.0;
1477             inherit: "default" 0.0;
1478             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
1479          }
1480       }
1481       part { name: "elm.text";
1482          type: TEXT;
1483          scale: 1;
1484          ignore_flags: ON_HOLD;
1485          description { state: "default" 0.0;
1486             visible: 0;
1487             align: 0.0 0.0;
1488             min: 0 32;
1489             fixed: 1 1;
1490             rel1 {
1491                relative: 1.0 1.0;
1492                to_x: "left2";
1493                to_y: "top2";
1494             }
1495             rel2 {
1496                relative: 1.0 1.0;
1497                to_x: "left2";
1498                to_y: "top2";
1499             }
1500             color: EDITFIELD_TITLE_COLOR_INC;
1501             text {
1502                font: "Tizen:style=Medium";
1503                size: EDITFIELD_TITLE_SIZE_INC;
1504                min: 1 1;
1505                align: 0.0 0.0;
1506                text_class: "tizen";
1507             }
1508          }
1509          description { state: "elm.text.show" 0.0;
1510             inherit: "default" 0.0;
1511             visible: 1;
1512          }
1513       }
1514       part { name: "elm.guidetext";
1515          type: TEXT;
1516          scale: 1;
1517          ignore_flags: ON_HOLD;
1518          description { state: "default" 0.0;
1519             align: 0.0 0.0;
1520             fixed: 1 1;
1521             rel1.to: "elm.swallow.content";
1522             rel2.to: "elm.swallow.content";
1523             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
1524             text {
1525                font: "Tizen:style=Roman";
1526                size: ENTRY_TEXT_SIZE_INC;
1527                min: 0 0;
1528                align: 0.0 0.5;
1529                text_class: "tizen";
1530             }
1531          }
1532          description { state: "hidden" 0.0;
1533             inherit: "default" 0.0;
1534             visible: 0;
1535          }
1536       }
1537       part {
1538          name: "elm.swallow.content";
1539          type: SWALLOW;
1540          scale: 1;
1541          ignore_flags: ON_HOLD;
1542          description { state: "default" 0.0;
1543             min: 0 40;
1544             rel1 {
1545                relative : 1.0 1.0;
1546                to_x: "left1";
1547                to_y: "top1";
1548             }
1549             rel2 {
1550                relative : 0.0 0.0;
1551                to_x: "right1";
1552                to_y: "bottom1";
1553             }
1554             align: 0.0 0.5;
1555          }
1556       }
1557       part { name: "eraser_image";
1558          scale: 1;
1559          clip_to: "eraser_image.clipper";
1560          description { state: "default" 0.0;
1561             visible: 0;
1562             min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
1563             fixed: 1 1;
1564             align: 1 0.5;
1565             rel1 {
1566                relative: 0.0 0.5;
1567                to_x : "right2";
1568             }
1569             rel2 {
1570                relative: 0.0 0.5;
1571                to_x : "right2";
1572             }
1573             image.normal: "00_edit_field_clear.png";
1574          }
1575          description { state: "elm.eraser.show" 0.0;
1576             inherit: "default" 0.0;
1577             visible: 1;
1578          }
1579       }
1580       part { name: "eraser_image.clipper";
1581          type: RECT;
1582          description { state: "default" 0.0;
1583             color: 0 0 0 0;
1584          }
1585          description { state: "elm.eraser.show" 0.0;
1586             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
1587          }
1588          description { state: "elm.eraser.pressed" 0.0;
1589             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
1590          }
1591       }
1592       part { name: "eraser";
1593          type: RECT;
1594          scale: 1;
1595          mouse_events: 1;
1596          description { state: "default" 0.0;
1597             visible: 0;
1598             min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC;
1599             fixed: 1 1;
1600             align: 1 0.5;
1601             color: 0 0 0 0;
1602             rel1 {
1603                relative: 0.0 0.5;
1604                to_x : "right2";
1605             }
1606             rel2 {
1607                relative: 0.0 0.5;
1608                to_x : "right2";
1609             }
1610          }
1611          description { state: "elm.eraser.show" 0.0;
1612             inherit: "default" 0.0;
1613             visible: 1;
1614          }
1615       }
1616    }
1617    programs {
1618       program {
1619          name: "guidetext_show";
1620          signal: "elm,state,guidetext,show";
1621          source: "elm";
1622          action: STATE_SET "default" 0.0;
1623          target: "elm.guidetext";
1624       }
1625       program {
1626          name: "guidetext_hide";
1627          signal: "elm,state,guidetext,hide";
1628          source: "elm";
1629          action: STATE_SET "hidden" 0.0;
1630          target: "elm.guidetext";
1631       }
1632       program {
1633          name: "eraser_show";
1634          signal: "elm,state,eraser,show";
1635          source: "elm";
1636          action: STATE_SET "elm.eraser.show" 0.0;
1637          target: "eraser_image";
1638          target: "eraser_image.clipper";
1639          target: "eraser";
1640       }
1641       program {
1642          name: "eraser_hide";
1643          signal: "elm,state,eraser,hide";
1644          source: "elm";
1645          action: STATE_SET "default" 0.0;
1646          target: "eraser_image";
1647          target: "eraser_image.clipper";
1648          target: "eraser";
1649       }
1650       program {
1651          name: "label_show";
1652          signal: "elm,state,title,show";
1653          source: "elm";
1654          action: STATE_SET "elm.text.show" 0.0;
1655          target: "elm.text";
1656          target: "top1";
1657          target: "bottom1";
1658          target: "bottom2";
1659          target: "bottom3";
1660       }
1661       program {
1662          name: "label_hide";
1663          signal: "elm,state,title,hide";
1664          source: "elm";
1665          action: STATE_SET "default" 0.0;
1666          target: "elm.text";
1667          target: "top1";
1668          target: "bottom1";
1669          target: "bottom2";
1670          target: "bottom3";
1671       }
1672      program {
1673          name: "eraser_clicked";
1674          signal: "mouse,clicked,1";
1675          source: "eraser";
1676          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
1677          after: "eraser_sound";
1678       }
1679       program {
1680          name: "eraser_sound";
1681          action: PLAY_SAMPLE "touch_sound" 1.0;
1682       }
1683      program {
1684          name: "bg_clicked";
1685          signal: "mouse,clicked,1";
1686          source: "search_textfield";
1687          action: SIGNAL_EMIT "elm,bg,clicked" "elm";
1688       }
1689       program {
1690          name: "sound_play";
1691          signal: "mouse,clicked,1";
1692          source: "elm.text";
1693          action: PLAY_SAMPLE "touch_sound" 1.0;
1694       }
1695      program { name: "mouse_click";
1696          signal: "mouse,clicked,1";
1697          source: "search_icon";
1698          action: SIGNAL_EMIT "elm,action,click" "";
1699      }
1700      program {
1701          name: "eraser_pressed";
1702          signal: "mouse,down,1";
1703          source: "eraser";
1704          action: STATE_SET "elm.eraser.pressed" 0.0;
1705          target: "eraser_image.clipper";
1706      }
1707      program {
1708          name: "eraser_unpressed";
1709          signal: "mouse,up,1";
1710          source: "eraser";
1711          action: STATE_SET "elm.eraser.show" 0.0;
1712          target: "eraser_image.clipper";
1713       }
1714    }
1715 }
1716
1717 group { name: "elm/layout/searchbar/cancel_button";
1718    images {
1719       image: "00_edit_field_clear.png" COMP;
1720       image: "00_search_edit_field_bg.png" COMP;
1721       image: "00_search_edit_field_bg_focus.png" COMP;
1722       image: "00_search_icon.png" COMP;
1723    }
1724    parts {
1725      part { name: "top_padding_rect";
1726          type: RECT;
1727          scale: 1;
1728          description { state: "default" 0.0;
1729             visible: 0;
1730             min: 0 SEARCHBAR_TOP_PADDING_INC;
1731             fixed: 0 1;
1732             align: 0 0;
1733             rel2.relative: 1.0 0.0;
1734          }
1735       }
1736       part { name: "bottom_padding_rect";
1737          type: RECT;
1738          scale: 1;
1739          description { state: "default" 0.0;
1740             visible: 0;
1741             min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
1742             fixed: 0 1;
1743             align: 0 1;
1744             rel1.relative: 0.0 1.0;
1745          }
1746       }
1747       part { name: "base_bg";
1748          type: RECT;
1749          scale: 1;
1750          description { state: "default" 0.0;
1751             visible: 0;
1752             min: 0 SEARCHBAR_HEIGHT_INC;
1753             align: 0 0.5;
1754             fixed: 0 1;
1755             rel1 {
1756                relative: 0.0 1.0;
1757                to: "top_padding_rect";
1758             }
1759             rel2 {
1760                relative: 1.0 0.0;
1761                to: "bottom_padding_rect";
1762             }
1763          }
1764       }
1765       part { name: "left_padding_rect";
1766          type: RECT;
1767          scale: 1;
1768          description { state: "default" 0.0;
1769             visible: 0;
1770             min: SEARCHBAR_LEFT_PADDING_INC 0;
1771             fixed: 1 0;
1772             align: 0 0;
1773             rel2.relative: 0.0 1.0;
1774          }
1775       }
1776       part { name: "right_padding_rect";
1777          type: RECT;
1778          scale: 1;
1779          description { state: "default" 0.0;
1780             visible: 0;
1781             min: SEARCHBAR_RIGHT_PADDING_INC 0;
1782             fixed: 1 0;
1783             align: 1.0 0.0;
1784             rel1.relative: 1.0 0.0;
1785          }
1786          description { state: "in" 0.0;
1787             inherit: "default" 0.0;
1788             min: SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 0;
1789          }
1790       }
1791       part { name: "inputfield_rect";
1792          type: IMAGE;
1793          scale: 1;
1794          description { state: "default" 0.0;
1795             align: 0.0 0.5;
1796             rel1 {
1797                relative: 1.0 0.0;
1798                to_x: "left_padding_rect";
1799                to_y: "base_bg";
1800             }
1801             rel2 {
1802                relative: 0.0 1.0;
1803                to_x: "right_padding_rect";
1804                to_y: "base_bg";
1805             }
1806             image {
1807                normal: "00_search_edit_field_bg.png";
1808                border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1809             }
1810          }
1811       }
1812       part {
1813          name: "focus_image";
1814          mouse_events:1;
1815          scale: 1;
1816          description {
1817             state: "default" 0.0;
1818             visible: 0;
1819             image.normal: "00_search_edit_field_bg_focus.png";
1820             image.border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1821             image.border_scale: 1;
1822             rel1.to: "inputfield_rect";
1823             rel2.to: "inputfield_rect";
1824          }
1825          description {
1826             state: "in" 0.0;
1827             inherit: "default" 0.0;
1828             visible: 1;
1829          }
1830       }
1831       part { name: "right_btn_padding_rect";
1832          type: RECT;
1833          scale: 1;
1834          description { state: "default" 0.0;
1835             visible: 0;
1836             min: SEARCHBAR_RIGHT_PADDING_INC 0;
1837             fixed: 1 0;
1838             align: 0.0 0.0;
1839             rel1.relative: 1.0 0.0;
1840             rel1.to: "inputfield_rect";
1841             rel2.relative: 1.0 1.0;
1842             rel2.to: "inputfield_rect";
1843          }
1844          description { state: "in" 0.0;
1845             inherit: "default" 0.0;
1846             min: SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 0;
1847          }
1848       }
1849       part { name: "left_icon_padding_rect";
1850          type: RECT;
1851          scale: 1;
1852          description { state: "default" 0.0;
1853             visible: 0;
1854             min: SEARCHBAR_LEFT_ICON_PADDING_INC 0;
1855             fixed: 1 0;
1856             align: 0 0;
1857             rel1.to: "inputfield_rect";
1858             rel2 {
1859                relative: 0.0 1.0;
1860                to: "inputfield_rect";
1861             }
1862          }
1863       }
1864       part { name: "search_icon";
1865          type: IMAGE;
1866          scale: 1;
1867          ignore_flags: ON_HOLD;
1868          clip_to: "image.clipper";
1869          description { state: "default" 0.0;
1870             min: SEARCHBAR_ICON_MIN_W_INC SEARCHBAR_ICON_MIN_H_INC;
1871             fixed: 1 1;
1872             align: 0 0.5;
1873             rel1 {
1874                relative: 1.0 0.5;
1875                to_x: "left_icon_padding_rect";
1876                to_y: "inputfield_rect";
1877             }
1878             rel2 {
1879                relative: 1.0 0.5;
1880                to_x: "left_icon_padding_rect";
1881                to_y: "inputfield_rect";
1882             }
1883             image.normal: "00_search_icon.png";
1884          }
1885       }
1886       part { name: "image.clipper";
1887          type: RECT;
1888          description { state: "default" 0.0;
1889             color: SEARCHBAR_ICON_COLOR_INC;
1890          }
1891       }
1892       part { name: "left_padding_search_textfield";
1893          type: RECT;
1894          scale: 1;
1895          description { state: "default" 0.0;
1896             visible: 0;
1897             min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
1898             fixed: 1 0;
1899             align: 0.0 0.5;
1900             rel1 {
1901                relative: 1.0 0.0;
1902                to_x: "search_icon";
1903                to_y: "inputfield_rect";
1904             }
1905             rel2 {
1906                relative: 1.0 1.0;
1907                to_x: "search_icon";
1908                to_y: "inputfield_rect";
1909             }
1910          }
1911       }
1912       part { name: "right_padding_search_textfield";
1913          type: RECT;
1914          scale: 1;
1915          description { state: "default" 0.0;
1916             visible: 0;
1917             min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
1918             fixed: 1 0;
1919             align: 1.0 0.5;
1920             rel1 {
1921                relative: 1.0 0.0;
1922                to: "inputfield_rect";
1923             }
1924             rel2 {
1925                relative: 1.0 1.0;
1926                to: "inputfield_rect";
1927             }
1928          }
1929       }
1930       part { name: "search_textfield";
1931          type: RECT;
1932          mouse_events: 1;
1933          scale: 1;
1934          ignore_flags: ON_HOLD;
1935          description { state: "default" 0.0;
1936             visible: 0;
1937             min: 1 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
1938             fixed: 0 1;
1939             align: 0.0 0.5;
1940             rel1 {
1941                relative: 1.0 0.0;
1942                to: "left_padding_search_textfield";
1943             }
1944             rel2 {
1945                relative: 0.0 1.0;
1946                to: "right_padding_search_textfield";
1947             }
1948          }
1949       }
1950       part { name: "button_cancel";
1951          type: SWALLOW;
1952          mouse_events: 1;
1953          scale: 1;
1954          description { state: "default" 0.0;
1955             fixed: 1 1;
1956             min: SEARCHBAR_CANCEL_BUTTON_W_INC 0;
1957             align: 0.0 0.5;
1958             state: "default" 0.0;
1959             rel1 {
1960                relative: 1.0 1.0;
1961                to_x: "right_btn_padding_rect";
1962                to_y: "top_padding_rect";
1963             }
1964             rel2 {
1965                relative: 1.0 0.0;
1966                to_x: "right_btn_padding_rect";
1967                to_y: "bottom_padding_rect";
1968             }
1969          }
1970       }
1971       part { name: "top1";
1972          type: RECT;
1973          scale: 1;
1974          ignore_flags: ON_HOLD;
1975          description { state: "default" 0.0;
1976             visible: 0;
1977             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
1978             fixed: 1 1;
1979             rel1 {
1980                relative: 0.0 0.0;
1981                to: "search_textfield";
1982             }
1983             rel2 {
1984                relative: 1.0 0.0;
1985                to: "search_textfield";
1986             }
1987             align: 0.5 0;
1988          }
1989          description { state: "elm.text.show" 0.0;
1990             inherit: "default" 0.0;
1991             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
1992          }
1993       }
1994       part { name: "top2";
1995          type: RECT;
1996          scale: 1;
1997          ignore_flags: ON_HOLD;
1998          description { state: "default" 0.0;
1999             visible: 0;
2000             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
2001             fixed: 1 1;
2002             rel1 {
2003                relative: 0.0 0.0;
2004                to: "search_textfield";
2005             }
2006             rel2 {
2007                relative: 1.0 0.0;
2008                to: "search_textfield";
2009             }
2010             align: 0.5 0;
2011          }
2012       }
2013       part { name: "left1";
2014          type: RECT;
2015          scale: 1;
2016          ignore_flags: ON_HOLD;
2017          description { state: "default" 0.0;
2018             visible: 0;
2019             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
2020             fixed: 1 1;
2021             align: 0 0;
2022             rel1 {
2023                relative: 0.0 0.0;
2024                to: "search_textfield";
2025             }
2026             rel2 {
2027                relative: 0.0 1.0;
2028                to: "search_textfield";
2029             }
2030          }
2031       }
2032       part { name: "left2";
2033          type: RECT;
2034          scale: 1;
2035          ignore_flags: ON_HOLD;
2036          description { state: "default" 0.0;
2037             visible: 0;
2038             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
2039             fixed: 1 1;
2040             align: 0 0;
2041             rel1 {
2042                relative: 0.0 0.0;
2043                to: "search_textfield";
2044             }
2045             rel2 {
2046                relative: 0.0 1.0;
2047                to: "search_textfield";
2048             }
2049          }
2050       }
2051       part { name: "right1";
2052          type: RECT;
2053          scale: 1;
2054          ignore_flags: ON_HOLD;
2055          description { state: "default" 0.0;
2056             visible: 0;
2057             min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
2058             fixed: 1 1;
2059             align: 1 0;
2060             rel1 {
2061                relative: 1.0 0.0;
2062                to: "search_textfield";
2063             }
2064             rel2.to: "search_textfield";
2065          }
2066       }
2067       part { name: "right2";
2068          type: RECT;
2069          scale: 1;
2070          ignore_flags: ON_HOLD;
2071          description { state: "default" 0.0;
2072             visible: 0;
2073             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
2074             fixed: 1 1;
2075             align: 1 0;
2076             rel1 {
2077                relative: 1.0 0.0;
2078                to: "search_textfield";
2079             }
2080             rel2.to: "search_textfield";
2081          }
2082       }
2083       part { name: "bottom1";
2084          type: RECT;
2085          scale: 1;
2086          ignore_flags: ON_HOLD;
2087          description { state: "default" 0.0;
2088             visible: 0;
2089             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
2090             fixed: 1 1;
2091             align: 0 1;
2092             rel1 {
2093                relative: 0.0 1.0;
2094                to: "search_textfield";
2095             }
2096             rel2.to: "search_textfield";
2097          }
2098          description { state: "elm.text.show" 0.0;
2099             inherit: "default" 0.0;
2100             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
2101          }
2102       }
2103       part { name: "bottom2";
2104          type: RECT;
2105          scale: 1;
2106          ignore_flags: ON_HOLD;
2107          description { state: "default" 0.0;
2108             visible: 0;
2109             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
2110             fixed: 0 1;
2111             rel1 {
2112                relative: 0.0 1.0;
2113                to: "search_textfield";
2114             }
2115             rel2.to: "search_textfield";
2116             align: 0 1;
2117          }
2118          description { state: "elm.text.show" 0.0;
2119             inherit: "default" 0.0;
2120             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
2121          }
2122       }
2123       part { name: "bottom3";
2124          type: RECT;
2125          scale: 1;
2126          ignore_flags: ON_HOLD;
2127          description { state: "default" 0.0;
2128             visible: 0;
2129             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
2130             fixed: 0 1;
2131             rel1 {
2132                relative: 0.0 1.0;
2133                to: "search_textfield";
2134             }
2135             rel2.to: "search_textfield";
2136             align: 0 1;
2137          }
2138          description { state: "elm.text.show" 0.0;
2139             inherit: "default" 0.0;
2140             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
2141          }
2142       }
2143       part { name: "elm.text";
2144          type: TEXT;
2145          scale: 1;
2146          ignore_flags: ON_HOLD;
2147          description { state: "default" 0.0;
2148             visible: 0;
2149             align: 0.0 0.0;
2150             min: 0 34;
2151             fixed: 1 1;
2152             rel1 {
2153                relative: 1.0 1.0;
2154                to_x: "left2";
2155                to_y: "top2";
2156             }
2157             rel2 {
2158                relative: 1.0 1.0;
2159                to_x: "left2";
2160                to_y: "top2";
2161             }
2162             color: EDITFIELD_TITLE_COLOR_INC;
2163             text {
2164                font: "Tizen:style=Medium";
2165                size: EDITFIELD_TITLE_SIZE_INC;
2166                min: 1 1;
2167                align: 0.0 0.0;
2168                text_class: "tizen";
2169             }
2170          }
2171          description { state: "elm.text.show" 0.0;
2172             inherit: "default" 0.0;
2173             visible: 1;
2174          }
2175       }
2176       part { name: "elm.guidetext";
2177          type: TEXT;
2178          scale: 1;
2179          ignore_flags: ON_HOLD;
2180          description { state: "default" 0.0;
2181             align: 0.0 0.0;
2182             fixed: 1 1;
2183             rel1.to: "elm.swallow.content";
2184             rel2.to: "elm.swallow.content";
2185             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
2186             text {
2187                font: "Tizen:style=Roman";
2188                size: ENTRY_TEXT_SIZE_INC;
2189                min: 0 0;
2190                align: 0.0 0.5;
2191                text_class: "tizen";
2192             }
2193          }
2194          description { state: "hidden" 0.0;
2195             inherit: "default" 0.0;
2196             visible: 0;
2197          }
2198       }
2199       part {
2200          name: "elm.swallow.content";
2201          type: SWALLOW;
2202          scale: 1;
2203          ignore_flags: ON_HOLD;
2204          description { state: "default" 0.0;
2205             min: 0 40;
2206             rel1 {
2207                relative : 1.0 1.0;
2208                to_x: "left1";
2209                to_y: "top1";
2210             }
2211             rel2 {
2212                relative : 0.0 0.0;
2213                to_x: "right1";
2214                to_y: "bottom1";
2215             }
2216             align: 0.0 0.5;
2217          }
2218       }
2219       part { name: "eraser_image";
2220          scale: 1;
2221          clip_to: "eraser_image.clipper";
2222          description { state: "default" 0.0;
2223             visible: 0;
2224             min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
2225             fixed: 1 1;
2226             align: 1 0.5;
2227             rel1 {
2228                relative: 0.0 0.5;
2229                to_x : "right2";
2230             }
2231             rel2 {
2232                relative: 0.0 0.5;
2233                to_x : "right2";
2234             }
2235             image.normal: "00_edit_field_clear.png";
2236          }
2237          description { state: "elm.eraser.show" 0.0;
2238             inherit: "default" 0.0;
2239             visible: 1;
2240          }
2241       }
2242       part { name: "eraser_image.clipper";
2243          type: RECT;
2244          description { state: "default" 0.0;
2245             color: 0 0 0 0;
2246          }
2247          description { state: "elm.eraser.show" 0.0;
2248             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
2249          }
2250          description { state: "elm.eraser.pressed" 0.0;
2251             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
2252          }
2253       }
2254       part { name: "eraser";
2255          type: RECT;
2256          scale: 1;
2257          mouse_events: 1;
2258          description { state: "default" 0.0;
2259             visible: 0;
2260             min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC;
2261             fixed: 1 1;
2262             align: 1 0.5;
2263             color: 0 0 0 0;
2264             rel1 {
2265                relative: 0.0 0.5;
2266                to_x : "right2";
2267             }
2268             rel2 {
2269                relative: 0.0 0.5;
2270                to_x : "right2";
2271             }
2272          }
2273          description { state: "elm.eraser.show" 0.0;
2274             inherit: "default" 0.0;
2275             visible: 1;
2276          }
2277       }
2278    }
2279    programs {
2280       program {
2281          name: "guidetext_show";
2282          signal: "elm,state,guidetext,show";
2283          source: "elm";
2284          action: STATE_SET "default" 0.0;
2285          target: "elm.guidetext";
2286       }
2287       program {
2288          name: "guidetext_hide";
2289          signal: "elm,state,guidetext,hide";
2290          source: "elm";
2291          action: STATE_SET "hidden" 0.0;
2292          target: "elm.guidetext";
2293       }
2294       program {
2295          name: "eraser_show";
2296          signal: "elm,state,eraser,show";
2297          source: "elm";
2298          action: STATE_SET "elm.eraser.show" 0.0;
2299          target: "eraser_image";
2300          target: "eraser_image.clipper";
2301          target: "eraser";
2302       }
2303       program {
2304          name: "eraser_hide";
2305          signal: "elm,state,eraser,hide";
2306          source: "elm";
2307          action: STATE_SET "default" 0.0;
2308          target: "eraser_image";
2309          target: "eraser_image.clipper";
2310          target: "eraser";
2311       }
2312       program {
2313          name: "label_show";
2314          signal: "elm,state,title,show";
2315          source: "elm";
2316          action: STATE_SET "elm.text.show" 0.0;
2317          target: "elm.text";
2318          target: "top1";
2319          target: "bottom1";
2320          target: "bottom2";
2321          target: "bottom3";
2322       }
2323       program {
2324          name: "label_hide";
2325          signal: "elm,state,title,hide";
2326          source: "elm";
2327          action: STATE_SET "default" 0.0;
2328          target: "elm.text";
2329          target: "top1";
2330          target: "bottom1";
2331          target: "bottom2";
2332          target: "bottom3";
2333       }
2334      program {
2335          name: "eraser_clicked";
2336          signal: "mouse,clicked,1";
2337          source: "eraser";
2338          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
2339          after: "eraser_sound";
2340       }
2341       program {
2342          name: "eraser_sound";
2343          action: PLAY_SAMPLE "touch_sound" 1.0;
2344       }
2345       program {
2346          name: "sound_play";
2347          signal: "mouse,clicked,1";
2348          source: "elm.text";
2349          action: PLAY_SAMPLE "touch_sound" 1.0;
2350       }
2351      program {
2352          name: "bg_clicked";
2353          signal: "mouse,clicked,1";
2354          source: "search_textfield";
2355          action: SIGNAL_EMIT "elm,bg,clicked" "elm";
2356       }
2357       program { name: "cancel_in";
2358          signal: "cancel,in";
2359          source: "";
2360          action: STATE_SET "in" 0.0;
2361          target: "right_padding_rect";
2362          target: "right_btn_padding_rect";
2363          target: "focus_image";
2364          transition: LINEAR 0.3;
2365       }
2366       program { name: "cancel_out";
2367          signal: "cancel,out";
2368          source: "";
2369          action: STATE_SET "default" 0.0;
2370          target: "right_padding_rect";
2371          target: "right_btn_padding_rect";
2372          target: "focus_image";
2373          transition: LINEAR 0.3;
2374       }
2375       program { name: "cancel_show";
2376          signal: "cancel,show";
2377          source: "";
2378          action: STATE_SET "in" 0.0;
2379          target: "focus_image";
2380          target: "right_padding_rect";
2381          target: "right_btn_padding_rect";
2382       }
2383       program { name: "cancel_hide";
2384          signal: "cancel,hide";
2385          source: "";
2386          action: STATE_SET "default" 0.0;
2387          target: "focus_image";
2388          target: "right_padding_rect";
2389          target: "right_btn_padding_rect";
2390       }
2391       program { name: "mouse_click";
2392          signal: "mouse,clicked,1";
2393          source: "search_icon";
2394          action: SIGNAL_EMIT "elm,action,click" "";
2395       }
2396       program {
2397          name: "eraser_pressed";
2398          signal: "mouse,down,1";
2399          source: "eraser";
2400          action: STATE_SET "elm.eraser.pressed" 0.0;
2401          target: "eraser_image.clipper";
2402       }
2403       program {
2404          name: "eraser_unpressed";
2405          signal: "mouse,up,1";
2406          source: "eraser";
2407          action: STATE_SET "elm.eraser.show" 0.0;
2408          target: "eraser_image.clipper";
2409       }
2410    }
2411 }
2412
2413 group {
2414    name: "elm/layout/nocontents/full";
2415    alias: "elm/nocontents/base/full";
2416    alias: "elm/nocontents/base/default";
2417    styles{
2418       style { name: "nocontent_style";
2419          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";
2420          tag:  "br" "\n";
2421          tag:  "hilight" "+ font=Tizen:style=Bold";
2422          tag:  "b" "+ font=Tizen:style=Bold";
2423          tag:  "tab" "\t";
2424       }
2425    }
2426    images {
2427       image: "00_nocontents_picture.png" COMP;
2428    }
2429    parts {
2430       part { name: "bg";
2431          type: RECT;
2432          scale: 1;
2433          description { state: "default" 0.0;
2434             color: NOCONTENT_BG_COLOR_INC;
2435             rel2 {
2436                relative: 1.0 1.0;
2437                to_y: "pad_b";
2438             }
2439          }
2440       }
2441       part { name: "nocontents.image";
2442          scale: 1;
2443          description { state: "default" 0.0;
2444             fixed: 1 1;
2445             min: NOCONTENT_IMAGE_WIDTH_HEIGHT_INC;
2446             rel1 {
2447                relative: 0.5 0.5;
2448                to: "bg";
2449             }
2450             rel2 {
2451                relative: 0.5 0.5;
2452                to: "bg";
2453             }
2454             image {
2455                normal: "00_nocontents_picture.png";
2456             }
2457             color: NOCONTENT_IMAGE_COLOR_INC;
2458             aspect: 1.0 1.0;
2459             aspect_preference: BOTH;
2460          }
2461       }
2462       part { name: "middle.padding";
2463          type: RECT;
2464          scale: 1;
2465          description { state: "default" 0.0;
2466             visible: 0;
2467             min: 0 NOCONTENT_MIDDLE_PADDING_INC;
2468             align: 0.5 0.0;
2469             fixed: 0 1;
2470             rel1 {
2471                relative: 0.0 1.0;
2472                to: "nocontents.image";
2473             }
2474             rel2 {
2475                relative: 1.0 1.0;
2476                to: "nocontents.image";
2477             }
2478          }
2479       }
2480       part { name: "elm.text";
2481          type: TEXTBLOCK;
2482          scale: 1;
2483          description { state: "default" 0.0;
2484             min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
2485             max: 9999 NO_CONTENT_TEXT_STYLE_BG_HEIGHT_INC;
2486             fixed: 1 1;
2487             rel1 {
2488                relative: 0.14 1.0;
2489                to_x: "bg";
2490                to_y: "middle.padding";
2491             }
2492             rel2 {
2493                relative: 0.86 1.0;
2494                to_x: "bg";
2495                to_y: "middle.padding";
2496             }
2497             color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
2498             text {
2499                style: "nocontent_style";
2500                min: 0 1;
2501                max: 0 1;
2502             }
2503          }
2504       }
2505       part { name: "pad_b";
2506          scale : 1;
2507          mouse_events: 0;
2508          type: RECT;
2509          description { state: "default" 0.0;
2510             align: 0.0 1.0;
2511             min: 0 0;
2512             visible: 0;
2513             fixed: 0 1;
2514             rel1.relative: 0.0 1.0;
2515          }
2516       }
2517    }
2518 }
2519
2520 group {
2521    name: "elm/layout/nocontents/multimedia";
2522    alias: "elm/nocontents/base/multimedia";
2523    inherit: "elm/layout/nocontents/full";
2524    images {
2525       image: "00_nocontents_multimedia.png" COMP;
2526    }
2527    parts {
2528       part { name: "nocontents.image";
2529          description { state: "default" 0.0;
2530             image {
2531                normal: "00_nocontents_multimedia.png";
2532             }
2533          }
2534       }
2535    }
2536 }
2537
2538 group {
2539    name: "elm/layout/nocontents/text";
2540    alias: "elm/nocontents/base/text";
2541    inherit: "elm/layout/nocontents/full";
2542    images {
2543       image: "00_nocontents_text.png" COMP;
2544    }
2545    parts {
2546       part { name: "nocontents.image";
2547          description { state: "default" 0.0;
2548             image {
2549                normal: "00_nocontents_text.png";
2550             }
2551          }
2552       }
2553    }
2554 }
2555
2556 group {
2557    name: "elm/layout/nocontents/unnamed";
2558    alias: "elm/nocontents/base/unnamed";
2559    inherit: "elm/layout/nocontents/full";
2560    images {
2561       image: "00_nocontents_unnamed.png" COMP;
2562    }
2563    parts {
2564       part { name: "nocontents.image";
2565          description { state: "default" 0.0;
2566             image {
2567                normal: "00_nocontents_unnamed.png";
2568             }
2569          }
2570       }
2571    }
2572 }
2573
2574 group {
2575    name: "elm/layout/nocontents/devices";
2576    alias: "elm/nocontents/base/devices";
2577    inherit: "elm/layout/nocontents/full";
2578    images {
2579       image: "00_nocontents_devices.png" COMP;
2580    }
2581    parts {
2582       part { name: "nocontents.image";
2583          description { state: "default" 0.0;
2584             image {
2585                normal: "00_nocontents_devices.png";
2586             }
2587          }
2588       }
2589    }
2590 }
2591
2592 group {
2593    name: "elm/layout/nocontents/search";
2594    alias: "elm/nocontents/base/search";
2595    parts {
2596       part { name: "bg";
2597          mouse_events: 0;
2598          type: RECT;
2599          description { state: "default" 0.0;
2600             visible: 1;
2601             rel1 {
2602                relative: 0.0 0.0;
2603             }
2604             rel2 {
2605                relative: 1.0 1.0;
2606             }
2607             color: 0 0 0 0;
2608          }
2609       }
2610       part { name: "top_padding";
2611          mouse_events: 0;
2612          type: RECT;
2613          scale: 1;
2614          description { state: "default" 0.0;
2615             min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
2616             fixed: 0 1;
2617             align: 0 0;
2618             visible: 1;
2619             rel1 {
2620                relative: 0.0 0.0;
2621             }
2622             rel2 {
2623                relative: 1.0 0.0;
2624             }
2625             color: 0 0 0 0;
2626          }
2627       }
2628       part { name: "elm.text";
2629          mouse_events: 0;
2630          type: TEXT;
2631          scale: 1;
2632          description { state: "default" 0.0;
2633             //min: 0 30;
2634             fixed: 0 1;
2635             align: 0 0;
2636             visible: 1;
2637             rel1 {
2638                relative: 0.0 1.0;
2639                to:"top_padding";
2640             }
2641             rel2 {
2642                relative: 1.0 1.0;
2643                to:"top_padding";
2644             }
2645             color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
2646             text {
2647                font: "Tizen:style=Roman";
2648                size: 30;
2649                text: "";
2650                align: 0.5 0.5;
2651                text_class: "tizen";
2652             }
2653          }
2654       }
2655       part { name: "text_bottom_padding";
2656          mouse_events: 0;
2657          type: RECT;
2658          scale: 1;
2659          description { state: "default" 0.0;
2660             min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
2661             fixed: 0 1;
2662             align: 0 0;
2663             visible: 0;
2664             rel1 {
2665                relative: 0.0 1.0;
2666                to:"elm.text";
2667             }
2668             rel2 {
2669                relative: 1.0 1.0;
2670                to:"elm.text";
2671             }
2672          }
2673       }
2674       part { name: "custom";
2675          mouse_events: 1;
2676          type: SWALLOW;
2677          scale: 1;
2678          description { state: "default" 0.0;
2679             min: 0 0;
2680             fixed: 0 1;
2681             align: 0 0;
2682             visible: 1;
2683             rel1 {
2684                relative: 0.0 1.0;
2685                to:"text_bottom_padding";
2686             }
2687             rel2 {
2688                relative: 1.0 1.0;
2689                to:"text_bottom_padding";
2690             }
2691          }
2692       }
2693    }
2694 }