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