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