Tizen 2.1 base
[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_EditField_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_EditField_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          mouse_events: 1;
502          ignore_flags: ON_HOLD;
503          description {
504             state: "default" 0.0;
505             visible: 0;
506             color: 0 0 0 0;
507             rel1 {
508                relative: 0.0 0.0;
509                to_x : "eraser_image";
510                to_y : "bottom3";
511             }
512          }
513          description {
514             state: "elm.eraser.show" 0.0;
515             inherit: "default" 0.0;
516             visible: 1;
517          }
518       }
519    }
520    programs {
521       program {
522          name: "guidetext_show";
523          signal: "elm,state,guidetext,visible";
524          source: "elm";
525          action: STATE_SET "default" 0.0;
526          target: "elm.guidetext";
527       }
528       program {
529          name: "guidetext_hide";
530          signal: "elm,state,guidetext,hidden";
531          source: "elm";
532          action: STATE_SET "hidden" 0.0;
533          target: "elm.guidetext";
534       }
535       program {
536          name: "eraser_show";
537          signal: "elm,state,eraser,show";
538          source: "elm";
539          action: STATE_SET "elm.eraser.show" 0.0;
540          target: "eraser_image";
541          target: "eraser";
542       }
543       program {
544          name: "eraser_hide";
545          signal: "elm,state,eraser,hidden";
546          source: "elm";
547          action: STATE_SET "default" 0.0;
548          target: "eraser_image";
549          target: "eraser";
550       }
551       program {
552          name: "multiline_set";
553          signal: "elm,state,text,multiline";
554          source: "elm";
555          script {
556             set_multi_line();
557          }
558       }
559       program {
560          name: "singleline_set";
561          signal: "elm,state,text,singleline";
562          source: "elm";
563          script {
564             set_single_line();
565          }
566       }
567       program {
568          name: "password_set";
569          signal: "elm,state,password,set";
570          source: "elm";
571          script {
572             set_password();
573          }
574       }
575       program {
576          name: "password_unset";
577          signal: "elm,state,password,unset";
578          source: "elm";
579          script {
580             unset_password();
581          }
582       }
583       program {
584          name: "editing";
585          signal: "elm,state,over,hide";
586          source: "elm";
587          action: STATE_SET "edit" 0.0;
588          target: "elm.swallow.content";
589          target: "elm.content.password";
590          target: "elm.content.multi";
591          target: "elm.content.single";
592          target: "over";
593          target: "top2";
594       }
595       program {
596          name: "no_editing";
597          signal: "elm,state,over,show";
598          source: "elm";
599          script {
600             no_edit();
601          }
602       }
603       program {
604          name: "label_show";
605          signal: "elm,state,text,visible";
606          source: "elm";
607          action: STATE_SET "elm.text.show" 0.0;
608          target: "elm.text";
609          target: "top1";
610          target: "bottom1";
611          target: "bottom2";
612          target: "bottom3";
613       }
614       program {
615          name: "label_hide";
616          signal: "elm,state,text,hidden";
617          source: "elm";
618          action: STATE_SET "default" 0.0;
619          target: "elm.text";
620          target: "top1";
621          target: "bottom1";
622          target: "bottom2";
623          target: "bottom3";
624       }
625       program {
626          name: "entry_show";
627          signal: "elm,state,entry,show";
628          source: "elm";
629          action: STATE_SET "edit" 0.0;
630          target: "elm.swallow.content";
631          target: "elm.content.multi";
632       }
633    }
634 }
635
636 group { name: "elm/editfield/base/searchbar";
637    alias: "elm/editfield/base/searchbar/default";
638    images {
639       image: "00_field_btn_Clear.png" COMP;
640    }
641    script {
642       public single_line = 0;
643       public password_mode = 0;
644
645       public set_multi_line() {
646          set_int(single_line, 0);
647       }
648       public set_single_line() {
649          set_int(single_line, 1);
650       }
651       public set_password() {
652          set_int(password_mode, 1);
653       }
654       public unset_password() {
655          set_int(password_mode, 0);
656       }
657       public no_edit() {
658          if(get_int(single_line) == 1) {
659             if(get_int(password_mode) == 0) {
660                set_state(PART:"elm.content.single", "no_edit", 0.0);
661                set_state(PART:"elm.content.multi", "default", 0.0);
662                set_state(PART:"elm.content.password", "default", 0.0);
663                set_state(PART:"elm.swallow.content", "no_edit", 0.0);
664             }
665             else {
666                set_state(PART:"elm.content.single", "default", 0.0);
667                set_state(PART:"elm.content.multi", "default", 0.0);
668                set_state(PART:"elm.content.password", "no_edit", 0.0);
669                set_state(PART:"elm.swallow.content", "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:"over", "default", 0.0);
678          set_state(PART:"top2", "default", 0.0);
679       }
680    }
681    parts {
682       part {
683          name: "base";
684          type: RECT;
685          scale: 1;
686          ignore_flags: ON_HOLD;
687          description {
688             state: "default" 0.0;
689             min: 0 EDITFIELD_SEARCHBAR_MINH_INC;
690             color: 0 0 0 0;
691          }
692       }
693       part {
694          name: "top1";
695          type: RECT;
696          scale: 1;
697          ignore_flags: ON_HOLD;
698          description {
699             state: "default" 0.0;
700             visible: 0;
701             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
702             fixed: 1 1;
703             rel1.relative: 0.0 0.0;
704             rel2.relative: 1.0 0.0;
705             align: 0.5 0;
706          }
707          description {
708             state: "elm.text.show" 0.0;
709             inherit: "default" 0.0;
710             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
711          }
712       }
713       part {
714          name: "top2";
715          type: RECT;
716          scale: 1;
717          ignore_flags: ON_HOLD;
718          description {
719             state: "default" 0.0;
720             visible: 0;
721             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
722             fixed: 1 1;
723             rel1.relative: 0.0 0.0;
724             rel2.relative: 1.0 0.0;
725             align: 0.5 0;
726          }
727          description {
728             state: "edit" 0.0;
729             inherit: "default" 0.0;
730          }
731       }
732       part {
733          name: "left1";
734          type: RECT;
735          scale: 1;
736          ignore_flags: ON_HOLD;
737          description {
738             state: "default" 0.0;
739             visible: 0;
740             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
741             fixed: 1 1;
742             align: 0 0;
743             rel1.relative : 0.0 0.0;
744             rel2.relative : 0.0 1.0;
745          }
746       }
747       part {
748          name: "left2";
749          type: RECT;
750          scale: 1;
751          ignore_flags: ON_HOLD;
752          description {
753             state: "default" 0.0;
754             visible: 0;
755             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
756             fixed: 1 1;
757             align: 0 0;
758             rel1.relative : 0.0 0.0;
759             rel2.relative : 0.0 1.0;
760          }
761       }
762       part {
763          name: "right1";
764          type: RECT;
765          scale: 1;
766          ignore_flags: ON_HOLD;
767          description {
768             state: "default" 0.0;
769             visible: 0;
770             min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
771             fixed: 1 1;
772             align: 1 0;
773             rel1.relative : 1.0 0.0;
774             rel2.relative : 1.0 1.0;
775          }
776       }
777       part {
778          name: "right2";
779          type: RECT;
780          scale: 1;
781          ignore_flags: ON_HOLD;
782          description {
783             state: "default" 0.0;
784             visible: 0;
785             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
786             fixed: 1 1;
787             align: 1 0;
788             rel1.relative : 1.0 0.0;
789             rel2.relative : 1.0 1.0;
790          }
791       }
792       part {
793          name: "bottom1";
794          type: RECT;
795          scale: 1;
796          ignore_flags: ON_HOLD;
797          description {
798             state: "default" 0.0;
799             visible: 0;
800             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
801             fixed: 1 1;
802             align: 0 1;
803             rel1.relative: 0.0 1.0;
804          }
805          description {
806             state: "elm.text.show" 0.0;
807             inherit: "default" 0.0;
808             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
809          }
810       }
811       part {
812          name: "bottom2";
813          type: RECT;
814          scale: 1;
815          ignore_flags: ON_HOLD;
816          description {
817             state: "default" 0.0;
818             visible: 0;
819             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
820             fixed: 0 1;
821             rel1.relative: 0.0 1.0;
822             align: 0 1;
823          }
824          description {
825             state: "elm.text.show" 0.0;
826             inherit: "default" 0.0;
827             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
828          }
829       }
830       part {
831          name: "bottom3";
832          type: RECT;
833          scale: 1;
834          ignore_flags: ON_HOLD;
835          description {
836             state: "default" 0.0;
837             visible: 0;
838             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
839             fixed: 0 1;
840             rel1.relative: 0.0 1.0;
841             align: 0 1;
842          }
843          description {
844             state: "elm.text.show" 0.0;
845             inherit: "default" 0.0;
846             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
847          }
848       }
849       part {
850          name: "elm.text";
851          type: TEXT;
852          scale: 1;
853          ignore_flags: ON_HOLD;
854          description {
855             state: "default" 0.0;
856             visible: 0;
857             align: 0.0 0.0;
858             min: 0 30;
859             fixed: 1 1;
860             rel1 {
861                relative: 1.0 1.0;
862                to_x: "left2";
863                to_y: "top2";
864             }
865             rel2 {
866                relative: 1.0 1.0;
867                to_x: "left2";
868                to_y: "top2";
869             }
870             color: EDITFIELD_TITLE_COLOR_INC;
871             text {
872                font: "Tizen:style=Medium";
873                size: EDITFIELD_TITLE_SIZE_INC;
874                min: 1 1;
875                align: 0.0 0.0;
876                text_class: "tizen";
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: "Tizen:style=Roman";
899                size: ENTRY_TEXT_SIZE_INC;
900                min: 0 0;
901                align: 0.0 0.5;
902                text_class: "tizen";
903             }
904          }
905          description {
906             state: "hidden" 0.0;
907             inherit: "default" 0.0;
908             visible: 0;
909          }
910       }
911       part {
912          name: "elm.content.single";
913          type: TEXTBLOCK;
914          scale: 1;
915          ignore_flags: ON_HOLD;
916          description {
917             state: "default" 0.0;
918             visible: 0;
919             fixed: 1 1;
920             rel1 {
921                to: "elm.swallow.content";
922                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
923             }
924             rel2.to: "elm.swallow.content";
925             text {
926                style: "editfield_content_singleline_style";
927                min: 0 0;
928                max: 0 1;
929             }
930          }
931          description {
932             state: "no_edit" 0.0;
933             inherit: "default" 0.0;
934             visible: 1;
935          }
936          description {
937             state: "edit" 0.0;
938             inherit: "default" 0.0;
939             visible: 0;
940          }
941       }
942       part {
943          name: "elm.content.multi";
944          type: TEXTBLOCK;
945          scale: 1;
946          ignore_flags: ON_HOLD;
947          description {
948             state: "default" 0.0;
949             visible: 0;
950             fixed: 1 1;
951             rel1 {
952                to: "elm.swallow.content";
953                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
954             }
955             rel2.to: "elm.swallow.content";
956             text {
957                style: "editfield_content_multiline_style";
958                min: 0 1;
959             }
960          }
961          description {
962             state: "no_edit" 0.0;
963             inherit: "default" 0.0;
964             visible: 1;
965          }
966          description {
967             state: "edit" 0.0;
968             inherit: "default" 0.0;
969             visible: 0;
970          }
971       }
972       part {
973          name: "elm.content.password";
974          type: TEXTBLOCK;
975          scale: 1;
976          ignore_flags: ON_HOLD;
977          entry_mode: PASSWORD;
978          multiline: 0;
979          description {
980             state: "default" 0.0;
981             visible: 0;
982             fixed: 1 1;
983             rel1 {
984                to: "elm.swallow.content";
985                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
986             }
987             rel2.to: "elm.swallow.content";
988             text {
989                style: "editfield_content_password_style";
990                repch: "*";
991                min: 0 0;
992                max: 0 1;
993             }
994          }
995          description {
996             state: "no_edit" 0.0;
997             inherit: "default" 0.0;
998             visible: 1;
999          }
1000          description {
1001             state: "edit" 0.0;
1002             inherit: "default" 0.0;
1003             visible: 0;
1004          }
1005       }
1006       part {
1007          name: "elm.swallow.content";
1008          type: SWALLOW;
1009          scale: 1;
1010          ignore_flags: ON_HOLD;
1011          description {
1012             state: "default" 0.0;
1013             min: 0 40;
1014             rel1 {
1015                relative : 1.0 1.0;
1016                to_x: "left1";
1017                to_y: "top1";
1018             }
1019             rel2 {
1020                relative : 0.0 0.0;
1021                to_x: "right1";
1022                to_y: "bottom1";
1023             }
1024             align: 0.0 0.5;
1025          }
1026          description {
1027             state: "no_edit" 0.0;
1028             inherit: "default" 0.0;
1029             visible: 0;
1030          }
1031          description {
1032             state: "edit" 0.0;
1033             inherit: "default" 0.0;
1034             visible: 1;
1035          }
1036       }
1037       part {
1038          name: "over";
1039          type: RECT;
1040          scale: 1;
1041          ignore_flags: ON_HOLD;
1042          description {
1043             state: "default" 0.0;
1044             rel1.to: "base";
1045             rel2.to: "base";
1046             color: 0 0 0 0;
1047          }
1048          description {
1049             state: "edit" 0.0;
1050             inherit: "default" 0.0;
1051             visible: 0;
1052          }
1053       }
1054       part {
1055          name: "eraser_image";
1056          scale: 1;
1057          description {
1058             state: "default" 0.0;
1059             visible: 0;
1060             min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
1061             fixed: 1 1;
1062             align: 1 1;
1063             rel1 {
1064                relative: 0.0 0.0;
1065                to_x : "right2";
1066                to_y : "bottom2";
1067             }
1068             rel2 {
1069                relative: 0.0 0.0;
1070                to_x : "right2";
1071                to_y : "bottom2";
1072             }
1073             image {
1074                normal: "00_field_btn_Clear.png";
1075                border: 4 4 4 4 ;
1076                border_scale: 1;
1077             }
1078          }
1079          description {
1080             state: "elm.eraser.show" 0.0;
1081             inherit: "default" 0.0;
1082             visible: 1;
1083          }
1084       }
1085       part {
1086          name: "eraser";
1087          mouse_events: 1;
1088          ignore_flags: ON_HOLD;
1089          description {
1090             state: "default" 0.0;
1091             visible: 0;
1092             color: 0 0 0 0;
1093             rel1 {
1094                relative: 0.0 0.0;
1095                to_x : "eraser_image";
1096                to_y : "bottom3";
1097             }
1098          }
1099          description {
1100             state: "elm.eraser.show" 0.0;
1101             inherit: "default" 0.0;
1102             visible: 1;
1103          }
1104       }
1105    }
1106    programs {
1107       program {
1108          name: "guidetext_show";
1109          signal: "elm,state,guidetext,visible";
1110          source: "elm";
1111          action: STATE_SET "default" 0.0;
1112          target: "elm.guidetext";
1113       }
1114       program {
1115          name: "guidetext_hide";
1116          signal: "elm,state,guidetext,hidden";
1117          source: "elm";
1118          action: STATE_SET "hidden" 0.0;
1119          target: "elm.guidetext";
1120       }
1121       program {
1122          name: "eraser_show";
1123          signal: "elm,state,eraser,show";
1124          source: "elm";
1125          action: STATE_SET "elm.eraser.show" 0.0;
1126          target: "eraser_image";
1127          target: "eraser";
1128       }
1129       program {
1130          name: "eraser_hide";
1131          signal: "elm,state,eraser,hidden";
1132          source: "elm";
1133          action: STATE_SET "default" 0.0;
1134          target: "eraser_image";
1135          target: "eraser";
1136       }
1137       program {
1138          name: "multiline_set";
1139          signal: "elm,state,text,multiline";
1140          source: "elm";
1141          script {
1142             set_multi_line();
1143          }
1144       }
1145       program {
1146          name: "singleline_set";
1147          signal: "elm,state,text,singleline";
1148          source: "elm";
1149          script {
1150             set_single_line();
1151          }
1152       }
1153       program {
1154          name: "password_set";
1155          signal: "elm,state,password,set";
1156          source: "elm";
1157          script {
1158             set_password();
1159          }
1160       }
1161       program {
1162          name: "password_unset";
1163          signal: "elm,state,password,unset";
1164          source: "elm";
1165          script {
1166             unset_password();
1167          }
1168       }
1169       program {
1170          name: "editing";
1171          signal: "elm,state,over,hide";
1172          source: "elm";
1173          action: STATE_SET "edit" 0.0;
1174          target: "elm.swallow.content";
1175          target: "elm.content.password";
1176          target: "elm.content.multi";
1177          target: "elm.content.single";
1178          target: "over";
1179          target: "top2";
1180       }
1181       program {
1182          name: "no_editing";
1183          signal: "elm,state,over,show";
1184          source: "elm";
1185          script {
1186             no_edit();
1187          }
1188       }
1189       program {
1190          name: "label_show";
1191          signal: "elm,state,text,visible";
1192          source: "elm";
1193          action: STATE_SET "elm.text.show" 0.0;
1194          target: "elm.text";
1195          target: "top1";
1196          target: "bottom1";
1197          target: "bottom2";
1198          target: "bottom3";
1199       }
1200       program {
1201          name: "label_hide";
1202          signal: "elm,state,text,hidden";
1203          source: "elm";
1204          action: STATE_SET "default" 0.0;
1205          target: "elm.text";
1206          target: "top1";
1207          target: "bottom1";
1208          target: "bottom2";
1209          target: "bottom3";
1210       }
1211       program {
1212          name: "entry_show";
1213          signal: "elm,state,entry,show";
1214          source: "elm";
1215          action: STATE_SET "edit" 0.0;
1216          target: "elm.swallow.content";
1217          target: "elm.content.multi";
1218       }
1219    }
1220 }
1221
1222 group { name: "elm/editfield/base/font_color_black";
1223    images {
1224       image: "00_EditField_clear.png" COMP;
1225    }
1226    styles {
1227       style { name: "editfield_content_singleline_black_style";
1228          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=mixed ellipsis=1 text_class=tizen";
1229          tag:  "br" "\n";
1230          tag:  "ps" "ps";
1231          tag:  "tab" "\t";
1232          tag:  "em" "+ font=Tizen:style=Oblique";
1233          tag:  "b" "+ font=Tizen:style=Bold";
1234          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1235          tag:  "hilight" "+ font=Tizen:style=Bold";
1236       }
1237       style { name: "editfield_content_multiline_black_style";
1238          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=mixed text_class=tizen";
1239          tag:  "br" "\n";
1240          tag:  "ps" "ps";
1241          tag:  "tab" "\t";
1242          tag:  "em" "+ font=Tizen:style=Oblique";
1243          tag:  "b" "+ font=Tizen:style=Bold";
1244          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1245          tag:  "hilight" "+ font=Tizen:style=Bold";
1246       }
1247       style { name: "editfield_content_password_black_style";
1248          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=none ellipsis=1 text_class=tizen";
1249          tag:  "br" "\n";
1250          tag:  "ps" "ps";
1251          tag:  "tab" "\t";
1252          tag:  "em" "+ font=Tizen:style=Oblique";
1253          tag:  "b" "+ font=Tizen:style=Bold";
1254          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1255          tag:  "hilight" "+ font=Tizen:style=Bold";
1256       }
1257    }
1258    script {
1259       public single_line = 0;
1260       public password_mode = 0;
1261
1262       public set_multi_line() {
1263          set_int(single_line, 0);
1264       }
1265       public set_single_line() {
1266          set_int(single_line, 1);
1267       }
1268       public set_password() {
1269          set_int(password_mode, 1);
1270       }
1271       public unset_password() {
1272          set_int(password_mode, 0);
1273       }
1274       public no_edit() {
1275          if(get_int(single_line) == 1) {
1276             if(get_int(password_mode) == 0) {
1277                set_state(PART:"elm.content.single", "no_edit", 0.0);
1278                set_state(PART:"elm.content.multi", "default", 0.0);
1279                set_state(PART:"elm.content.password", "default", 0.0);
1280                set_state(PART:"elm.swallow.content", "no_edit", 0.0);
1281             }
1282             else {
1283                set_state(PART:"elm.content.single", "default", 0.0);
1284                set_state(PART:"elm.content.multi", "default", 0.0);
1285                set_state(PART:"elm.content.password", "no_edit", 0.0);
1286                set_state(PART:"elm.swallow.content", "no_edit", 0.0);
1287             }
1288          }
1289          else if(get_int(single_line) == 0) {
1290             set_state(PART:"elm.content.single", "default", 0.0);
1291             set_state(PART:"elm.content.multi", "no_edit", 0.0);
1292             set_state(PART:"elm.content.password", "default", 0.0);
1293          }
1294          set_state(PART:"over", "default", 0.0);
1295          set_state(PART:"top2", "default", 0.0);
1296       }
1297    }
1298    parts {
1299       part {
1300          name: "base";
1301          type: RECT;
1302          scale: 1;
1303          ignore_flags: ON_HOLD;
1304          description {
1305             state: "default" 0.0;
1306             min: 0 EDITFIELD_DEFAULT_MINH_INC;
1307             color: 0 0 0 0;
1308          }
1309       }
1310       part {
1311          name: "top1";
1312          type: RECT;
1313          scale: 1;
1314          ignore_flags: ON_HOLD;
1315          description {
1316             state: "default" 0.0;
1317             visible: 0;
1318             min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC;
1319             fixed: 1 1;
1320             rel1.relative: 0.0 0.0;
1321             rel2.relative: 1.0 0.0;
1322             align: 0.5 0;
1323          }
1324          description {
1325             state: "elm.text.show" 0.0;
1326             inherit: "default" 0.0;
1327             min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC;
1328          }
1329       }
1330       part {
1331          name: "top2";
1332          type: RECT;
1333          scale: 1;
1334          ignore_flags: ON_HOLD;
1335          description {
1336             state: "default" 0.0;
1337             visible: 0;
1338             min: 0 EDITFIELD_DEFAULT_TOP2_INC;
1339             fixed: 1 1;
1340             rel1.relative: 0.0 0.0;
1341             rel2.relative: 1.0 0.0;
1342             align: 0.5 0;
1343          }
1344          description {
1345             state: "edit" 0.0;
1346             inherit: "default" 0.0;
1347          }
1348       }
1349       part {
1350          name: "left1";
1351          type: RECT;
1352          scale: 1;
1353          ignore_flags: ON_HOLD;
1354          description {
1355             state: "default" 0.0;
1356             visible: 0;
1357             min: EDITFIELD_DEFAULT_LEFT1_INC 0;
1358             fixed: 1 1;
1359             align: 0 0;
1360             rel1.relative : 0.0 0.0;
1361             rel2.relative : 0.0 1.0;
1362          }
1363       }
1364       part {
1365          name: "left2";
1366          type: RECT;
1367          scale: 1;
1368          ignore_flags: ON_HOLD;
1369          description {
1370             state: "default" 0.0;
1371             visible: 0;
1372             min: EDITFIELD_DEFAULT_LEFT2_INC 0;
1373             fixed: 1 1;
1374             align: 0 0;
1375             rel1.relative : 0.0 0.0;
1376             rel2.relative : 0.0 1.0;
1377          }
1378       }
1379       part {
1380          name: "right1";
1381          type: RECT;
1382          scale: 1;
1383          ignore_flags: ON_HOLD;
1384          description {
1385             state: "default" 0.0;
1386             visible: 0;
1387             min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
1388             fixed: 1 1;
1389             align: 1 0;
1390             rel1.relative : 1.0 0.0;
1391             rel2.relative : 1.0 1.0;
1392          }
1393       }
1394       part {
1395          name: "right2";
1396          type: RECT;
1397          scale: 1;
1398          ignore_flags: ON_HOLD;
1399          description {
1400             state: "default" 0.0;
1401             visible: 0;
1402             min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
1403             fixed: 1 1;
1404             align: 1 0;
1405             rel1.relative : 1.0 0.0;
1406             rel2.relative : 1.0 1.0;
1407          }
1408       }
1409       part {
1410          name: "bottom1";
1411          type: RECT;
1412          scale: 1;
1413          ignore_flags: ON_HOLD;
1414          description {
1415             state: "default" 0.0;
1416             visible: 0;
1417             min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC;
1418             fixed: 1 1;
1419             align: 0 1;
1420             rel1.relative: 0.0 1.0;
1421          }
1422          description {
1423             state: "elm.text.show" 0.0;
1424             inherit: "default" 0.0;
1425             min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC;
1426          }
1427       }
1428       part {
1429          name: "bottom2";
1430          type: RECT;
1431          scale: 1;
1432          ignore_flags: ON_HOLD;
1433          description {
1434             state: "default" 0.0;
1435             visible: 0;
1436             min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC;
1437             fixed: 0 1;
1438             rel1.relative: 0.0 1.0;
1439             align: 0 1;
1440          }
1441          description {
1442             state: "elm.text.show" 0.0;
1443             inherit: "default" 0.0;
1444             min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC;
1445          }
1446       }
1447       part {
1448          name: "bottom3";
1449          type: RECT;
1450          scale: 1;
1451          ignore_flags: ON_HOLD;
1452          description {
1453             state: "default" 0.0;
1454             visible: 0;
1455             min: 0 EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC;
1456             fixed: 0 1;
1457             rel1.relative: 0.0 1.0;
1458             align: 0 1;
1459          }
1460          description {
1461             state: "elm.text.show" 0.0;
1462             inherit: "default" 0.0;
1463             min: 0 EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC;
1464          }
1465       }
1466       part {
1467          name: "elm.text";
1468          type: TEXT;
1469          scale: 1;
1470          ignore_flags: ON_HOLD;
1471          description {
1472             state: "default" 0.0;
1473             visible: 0;
1474             align: 0.0 0.0;
1475             min: 0 34;
1476             fixed: 1 1;
1477             rel1 {
1478                relative: 1.0 1.0;
1479                to_x: "left2";
1480                to_y: "top2";
1481             }
1482             rel2 {
1483                relative: 1.0 1.0;
1484                to_x: "left2";
1485                to_y: "top2";
1486             }
1487             color: 0 0 0 255;
1488             text {
1489                font: "Tizen:style=Medium";
1490                size: EDITFIELD_TITLE_SIZE_INC;
1491                min: 1 1;
1492                align: 0.0 0.0;
1493                text_class: "tizen";
1494             }
1495          }
1496          description {
1497             state: "elm.text.show" 0.0;
1498             inherit: "default" 0.0;
1499             visible: 1;
1500          }
1501       }
1502       part {
1503          name: "elm.guidetext";
1504          type: TEXT;
1505          scale: 1;
1506          ignore_flags: ON_HOLD;
1507          description {
1508             state: "default" 0.0;
1509             align: 0.0 0.0;
1510             fixed: 1 1;
1511             rel1.to: "elm.swallow.content";
1512             rel2.to: "elm.swallow.content";
1513             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
1514             text {
1515                font: "Tizen:style=Roman";
1516                size: ENTRY_TEXT_SIZE_INC;
1517                min: 0 0;
1518                align: 0.0 0.5;
1519                text_class: "tizen";
1520             }
1521          }
1522          description {
1523             state: "hidden" 0.0;
1524             inherit: "default" 0.0;
1525             visible: 0;
1526          }
1527       }
1528       part {
1529          name: "elm.content.single";
1530          type: TEXTBLOCK;
1531          scale: 1;
1532          ignore_flags: ON_HOLD;
1533          description {
1534             state: "default" 0.0;
1535             visible: 0;
1536             fixed: 1 1;
1537             rel1 {
1538                to: "elm.swallow.content";
1539                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
1540             }
1541             rel2.to: "elm.swallow.content";
1542             text {
1543                style: "editfield_content_singleline_black_style";
1544                min: 0 0;
1545                max: 0 1;
1546             }
1547          }
1548          description {
1549             state: "no_edit" 0.0;
1550             inherit: "default" 0.0;
1551             visible: 1;
1552          }
1553          description {
1554             state: "edit" 0.0;
1555             inherit: "default" 0.0;
1556             visible: 0;
1557          }
1558       }
1559       part {
1560          name: "elm.content.multi";
1561          type: TEXTBLOCK;
1562          scale: 1;
1563          ignore_flags: ON_HOLD;
1564          description {
1565             state: "default" 0.0;
1566             visible: 0;
1567             fixed: 1 1;
1568             rel1 {
1569                to: "elm.swallow.content";
1570                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
1571             }
1572             rel2.to: "elm.swallow.content";
1573             text {
1574                style: "editfield_content_multiline_black_style";
1575                min: 0 1;
1576             }
1577          }
1578          description {
1579             state: "no_edit" 0.0;
1580             inherit: "default" 0.0;
1581             visible: 1;
1582          }
1583          description {
1584             state: "edit" 0.0;
1585             inherit: "default" 0.0;
1586             visible: 0;
1587          }
1588       }
1589       part {
1590          name: "elm.content.password";
1591          type: TEXTBLOCK;
1592          scale: 1;
1593          ignore_flags: ON_HOLD;
1594          entry_mode: PASSWORD;
1595          multiline: 0;
1596          description {
1597             state: "default" 0.0;
1598             visible: 0;
1599             fixed: 1 1;
1600             rel1 {
1601                to: "elm.swallow.content";
1602                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
1603             }
1604             rel2.to: "elm.swallow.content";
1605             text {
1606                style: "editfield_content_password_black_style";
1607                repch: "*";
1608                min: 0 0;
1609                max: 0 1;
1610             }
1611          }
1612          description {
1613             state: "no_edit" 0.0;
1614             inherit: "default" 0.0;
1615             visible: 1;
1616          }
1617          description {
1618             state: "edit" 0.0;
1619             inherit: "default" 0.0;
1620             visible: 0;
1621          }
1622       }
1623       part {
1624          name: "elm.swallow.content";
1625          type: SWALLOW;
1626          scale: 1;
1627          ignore_flags: ON_HOLD;
1628          description {
1629             state: "default" 0.0;
1630             min: 0 40;
1631             rel1 {
1632                relative : 1.0 1.0;
1633                to_x: "left1";
1634                to_y: "top1";
1635             }
1636             rel2 {
1637                relative : 0.0 0.0;
1638                to_x: "right1";
1639                to_y: "bottom1";
1640             }
1641             align: 0.0 0.5;
1642          }
1643          description {
1644             state: "no_edit" 0.0;
1645             inherit: "default" 0.0;
1646             visible: 0;
1647          }
1648          description {
1649             state: "edit" 0.0;
1650             inherit: "default" 0.0;
1651             visible: 1;
1652          }
1653       }
1654       part {
1655          name: "over";
1656          type: RECT;
1657          scale: 1;
1658          ignore_flags: ON_HOLD;
1659          description {
1660             state: "default" 0.0;
1661             rel1.to: "base";
1662             rel2.to: "base";
1663             color: 0 0 0 0;
1664          }
1665          description {
1666             state: "edit" 0.0;
1667             inherit: "default" 0.0;
1668             visible: 0;
1669          }
1670       }
1671       part {
1672          name: "eraser_image";
1673          scale: 1;
1674          description {
1675             state: "default" 0.0;
1676             visible: 0;
1677             min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
1678             fixed: 1 1;
1679             align: 1 1;
1680             rel1 {
1681                relative: 0.0 0.0;
1682                to_x : "right2";
1683                to_y : "bottom2";
1684             }
1685             rel2 {
1686                relative: 0.0 0.0;
1687                to_x : "right2";
1688                to_y : "bottom2";
1689             }
1690             image {
1691                normal: "00_EditField_clear.png";
1692                border: 10 10 10 10;
1693                border_scale: 1;
1694             }
1695          }
1696          description {
1697             state: "elm.eraser.show" 0.0;
1698             inherit: "default" 0.0;
1699             visible: 1;
1700          }
1701       }
1702       part {
1703          name: "eraser";
1704          mouse_events: 1;
1705          ignore_flags: ON_HOLD;
1706          description {
1707             state: "default" 0.0;
1708             visible: 0;
1709             color: 0 0 0 0;
1710             rel1 {
1711                relative: 0.0 0.0;
1712                to_x : "eraser_image";
1713                to_y : "bottom3";
1714             }
1715          }
1716          description {
1717             state: "elm.eraser.show" 0.0;
1718             inherit: "default" 0.0;
1719             visible: 1;
1720          }
1721       }
1722    }
1723    programs {
1724       program {
1725          name: "guidetext_show";
1726          signal: "elm,state,guidetext,visible";
1727          source: "elm";
1728          action: STATE_SET "default" 0.0;
1729          target: "elm.guidetext";
1730       }
1731       program {
1732          name: "guidetext_hide";
1733          signal: "elm,state,guidetext,hidden";
1734          source: "elm";
1735          action: STATE_SET "hidden" 0.0;
1736          target: "elm.guidetext";
1737       }
1738       program {
1739          name: "eraser_show";
1740          signal: "elm,state,eraser,show";
1741          source: "elm";
1742          action: STATE_SET "elm.eraser.show" 0.0;
1743          target: "eraser_image";
1744          target: "eraser";
1745       }
1746       program {
1747          name: "eraser_hide";
1748          signal: "elm,state,eraser,hidden";
1749          source: "elm";
1750          action: STATE_SET "default" 0.0;
1751          target: "eraser_image";
1752          target: "eraser";
1753       }
1754       program {
1755          name: "multiline_set";
1756          signal: "elm,state,text,multiline";
1757          source: "elm";
1758          script {
1759             set_multi_line();
1760          }
1761       }
1762       program {
1763          name: "singleline_set";
1764          signal: "elm,state,text,singleline";
1765          source: "elm";
1766          script {
1767             set_single_line();
1768          }
1769       }
1770       program {
1771          name: "password_set";
1772          signal: "elm,state,password,set";
1773          source: "elm";
1774          script {
1775             set_password();
1776          }
1777       }
1778       program {
1779          name: "password_unset";
1780          signal: "elm,state,password,unset";
1781          source: "elm";
1782          script {
1783             unset_password();
1784          }
1785       }
1786       program {
1787          name: "editing";
1788          signal: "elm,state,over,hide";
1789          source: "elm";
1790          action: STATE_SET "edit" 0.0;
1791          target: "elm.swallow.content";
1792          target: "elm.content.password";
1793          target: "elm.content.multi";
1794          target: "elm.content.single";
1795          target: "over";
1796          target: "top2";
1797       }
1798       program {
1799          name: "no_editing";
1800          signal: "elm,state,over,show";
1801          source: "elm";
1802          script {
1803             no_edit();
1804          }
1805       }
1806       program {
1807          name: "label_show";
1808          signal: "elm,state,text,visible";
1809          source: "elm";
1810          action: STATE_SET "elm.text.show" 0.0;
1811          target: "elm.text";
1812          target: "top1";
1813          target: "bottom1";
1814          target: "bottom2";
1815          target: "bottom3";
1816       }
1817       program {
1818          name: "label_hide";
1819          signal: "elm,state,text,hidden";
1820          source: "elm";
1821          action: STATE_SET "default" 0.0;
1822          target: "elm.text";
1823          target: "top1";
1824          target: "bottom1";
1825          target: "bottom2";
1826          target: "bottom3";
1827       }
1828       program {
1829          name: "entry_show";
1830          signal: "elm,state,entry,show";
1831          source: "elm";
1832          action: STATE_SET "edit" 0.0;
1833          target: "elm.swallow.content";
1834          target: "elm.content.multi";
1835       }
1836    }
1837 }
1838
1839 group { name: "elm/editfield/base/searchbar/font_color_black";
1840    images {
1841       image: "00_field_btn_Clear.png" COMP;
1842    }
1843    script {
1844       public single_line = 0;
1845       public password_mode = 0;
1846
1847       public set_multi_line() {
1848          set_int(single_line, 0);
1849       }
1850       public set_single_line() {
1851          set_int(single_line, 1);
1852       }
1853       public set_password() {
1854          set_int(password_mode, 1);
1855       }
1856       public unset_password() {
1857          set_int(password_mode, 0);
1858       }
1859       public no_edit() {
1860          if(get_int(single_line) == 1) {
1861             if(get_int(password_mode) == 0) {
1862                set_state(PART:"elm.content.single", "no_edit", 0.0);
1863                set_state(PART:"elm.content.multi", "default", 0.0);
1864                set_state(PART:"elm.content.password", "default", 0.0);
1865                set_state(PART:"elm.swallow.content", "no_edit", 0.0);
1866             }
1867             else {
1868                set_state(PART:"elm.content.single", "default", 0.0);
1869                set_state(PART:"elm.content.multi", "default", 0.0);
1870                set_state(PART:"elm.content.password", "no_edit", 0.0);
1871                set_state(PART:"elm.swallow.content", "no_edit", 0.0);
1872             }
1873          }
1874          else if(get_int(single_line) == 0) {
1875             set_state(PART:"elm.content.single", "default", 0.0);
1876             set_state(PART:"elm.content.multi", "no_edit", 0.0);
1877             set_state(PART:"elm.content.password", "default", 0.0);
1878          }
1879          set_state(PART:"over", "default", 0.0);
1880          set_state(PART:"top2", "default", 0.0);
1881       }
1882    }
1883    parts {
1884       part {
1885          name: "base";
1886          type: RECT;
1887          scale: 1;
1888          ignore_flags: ON_HOLD;
1889          description {
1890             state: "default" 0.0;
1891             min: 0 EDITFIELD_SEARCHBAR_MINH_INC;
1892             color: 0 0 0 0;
1893          }
1894       }
1895       part {
1896          name: "top1";
1897          type: RECT;
1898          scale: 1;
1899          ignore_flags: ON_HOLD;
1900          description {
1901             state: "default" 0.0;
1902             visible: 0;
1903             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
1904             fixed: 1 1;
1905             rel1.relative: 0.0 0.0;
1906             rel2.relative: 1.0 0.0;
1907             align: 0.5 0;
1908          }
1909          description {
1910             state: "elm.text.show" 0.0;
1911             inherit: "default" 0.0;
1912             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
1913          }
1914       }
1915       part {
1916          name: "top2";
1917          type: RECT;
1918          scale: 1;
1919          ignore_flags: ON_HOLD;
1920          description {
1921             state: "default" 0.0;
1922             visible: 0;
1923             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
1924             fixed: 1 1;
1925             rel1.relative: 0.0 0.0;
1926             rel2.relative: 1.0 0.0;
1927             align: 0.5 0;
1928          }
1929          description {
1930             state: "edit" 0.0;
1931             inherit: "default" 0.0;
1932          }
1933       }
1934       part {
1935          name: "left1";
1936          type: RECT;
1937          scale: 1;
1938          ignore_flags: ON_HOLD;
1939          description {
1940             state: "default" 0.0;
1941             visible: 0;
1942             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
1943             fixed: 1 1;
1944             align: 0 0;
1945             rel1.relative : 0.0 0.0;
1946             rel2.relative : 0.0 1.0;
1947          }
1948       }
1949       part {
1950          name: "left2";
1951          type: RECT;
1952          scale: 1;
1953          ignore_flags: ON_HOLD;
1954          description {
1955             state: "default" 0.0;
1956             visible: 0;
1957             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
1958             fixed: 1 1;
1959             align: 0 0;
1960             rel1.relative : 0.0 0.0;
1961             rel2.relative : 0.0 1.0;
1962          }
1963       }
1964       part {
1965          name: "right1";
1966          type: RECT;
1967          scale: 1;
1968          ignore_flags: ON_HOLD;
1969          description {
1970             state: "default" 0.0;
1971             visible: 0;
1972             min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0;
1973             fixed: 1 1;
1974             align: 1 0;
1975             rel1.relative : 1.0 0.0;
1976             rel2.relative : 1.0 1.0;
1977          }
1978       }
1979       part {
1980          name: "right2";
1981          type: RECT;
1982          scale: 1;
1983          ignore_flags: ON_HOLD;
1984          description {
1985             state: "default" 0.0;
1986             visible: 0;
1987             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
1988             fixed: 1 1;
1989             align: 1 0;
1990             rel1.relative : 1.0 0.0;
1991             rel2.relative : 1.0 1.0;
1992          }
1993       }
1994       part {
1995          name: "bottom1";
1996          type: RECT;
1997          scale: 1;
1998          ignore_flags: ON_HOLD;
1999          description {
2000             state: "default" 0.0;
2001             visible: 0;
2002             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
2003             fixed: 1 1;
2004             align: 0 1;
2005             rel1.relative: 0.0 1.0;
2006          }
2007          description {
2008             state: "elm.text.show" 0.0;
2009             inherit: "default" 0.0;
2010             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
2011          }
2012       }
2013       part {
2014          name: "bottom2";
2015          type: RECT;
2016          scale: 1;
2017          ignore_flags: ON_HOLD;
2018          description {
2019             state: "default" 0.0;
2020             visible: 0;
2021             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
2022             fixed: 0 1;
2023             rel1.relative: 0.0 1.0;
2024             align: 0 1;
2025          }
2026          description {
2027             state: "elm.text.show" 0.0;
2028             inherit: "default" 0.0;
2029             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
2030          }
2031       }
2032       part {
2033          name: "bottom3";
2034          type: RECT;
2035          scale: 1;
2036          ignore_flags: ON_HOLD;
2037          description {
2038             state: "default" 0.0;
2039             visible: 0;
2040             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
2041             fixed: 0 1;
2042             rel1.relative: 0.0 1.0;
2043             align: 0 1;
2044          }
2045          description {
2046             state: "elm.text.show" 0.0;
2047             inherit: "default" 0.0;
2048             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
2049          }
2050       }
2051       part {
2052          name: "elm.text";
2053          type: TEXT;
2054          scale: 1;
2055          ignore_flags: ON_HOLD;
2056          description {
2057             state: "default" 0.0;
2058             visible: 0;
2059             align: 0.0 0.0;
2060             min: 0 30;
2061             fixed: 1 1;
2062             rel1 {
2063                relative: 1.0 1.0;
2064                to_x: "left2";
2065                to_y: "top2";
2066             }
2067             rel2 {
2068                relative: 1.0 1.0;
2069                to_x: "left2";
2070                to_y: "top2";
2071             }
2072             color: EDITFIELD_TITLE_COLOR_INC;
2073             text {
2074                font: "Tizen:style=Medium";
2075                size: EDITFIELD_TITLE_SIZE_INC;
2076                min: 1 1;
2077                align: 0.0 0.0;
2078                text_class: "tizen";
2079             }
2080          }
2081          description {
2082             state: "elm.text.show" 0.0;
2083             inherit: "default" 0.0;
2084             visible: 1;
2085          }
2086       }
2087       part {
2088          name: "elm.guidetext";
2089          type: TEXT;
2090          scale: 1;
2091          ignore_flags: ON_HOLD;
2092          description {
2093             state: "default" 0.0;
2094             align: 0.0 0.0;
2095             fixed: 1 1;
2096             rel1.to: "elm.swallow.content";
2097             rel2.to: "elm.swallow.content";
2098             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
2099             text {
2100                font: "Tizen:style=Roman";
2101                size: ENTRY_TEXT_SIZE_INC;
2102                min: 0 0;
2103                align: 0.0 0.5;
2104                text_class: "tizen";
2105             }
2106          }
2107          description {
2108             state: "hidden" 0.0;
2109             inherit: "default" 0.0;
2110             visible: 0;
2111          }
2112       }
2113       part {
2114          name: "elm.content.single";
2115          type: TEXTBLOCK;
2116          scale: 1;
2117          ignore_flags: ON_HOLD;
2118          description {
2119             state: "default" 0.0;
2120             visible: 0;
2121             fixed: 1 1;
2122             rel1 {
2123                to: "elm.swallow.content";
2124                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
2125             }
2126             rel2.to: "elm.swallow.content";
2127             text {
2128                style: "editfield_content_singleline_black_style";
2129                min: 0 0;
2130                max: 0 1;
2131             }
2132          }
2133          description {
2134             state: "no_edit" 0.0;
2135             inherit: "default" 0.0;
2136             visible: 1;
2137          }
2138          description {
2139             state: "edit" 0.0;
2140             inherit: "default" 0.0;
2141             visible: 0;
2142          }
2143       }
2144       part {
2145          name: "elm.content.multi";
2146          type: TEXTBLOCK;
2147          scale: 1;
2148          ignore_flags: ON_HOLD;
2149          description {
2150             state: "default" 0.0;
2151             visible: 0;
2152             fixed: 1 1;
2153             rel1 {
2154                to: "elm.swallow.content";
2155                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
2156             }
2157             rel2.to: "elm.swallow.content";
2158             text {
2159                style: "editfield_content_multiline_black_style";
2160                min: 0 1;
2161             }
2162          }
2163          description {
2164             state: "no_edit" 0.0;
2165             inherit: "default" 0.0;
2166             visible: 1;
2167          }
2168          description {
2169             state: "edit" 0.0;
2170             inherit: "default" 0.0;
2171             visible: 0;
2172          }
2173       }
2174       part {
2175          name: "elm.content.password";
2176          type: TEXTBLOCK;
2177          scale: 1;
2178          ignore_flags: ON_HOLD;
2179          entry_mode: PASSWORD;
2180          multiline: 0;
2181          description {
2182             state: "default" 0.0;
2183             visible: 0;
2184             fixed: 1 1;
2185             rel1 {
2186                to: "elm.swallow.content";
2187                offset: EDITFIELD_DEFAULT_LEFT3_INC 0;
2188             }
2189             rel2.to: "elm.swallow.content";
2190             text {
2191                style: "editfield_content_password_black_style";
2192                repch: "*";
2193                min: 0 0;
2194                max: 0 1;
2195             }
2196          }
2197          description {
2198             state: "no_edit" 0.0;
2199             inherit: "default" 0.0;
2200             visible: 1;
2201          }
2202          description {
2203             state: "edit" 0.0;
2204             inherit: "default" 0.0;
2205             visible: 0;
2206          }
2207       }
2208       part {
2209          name: "elm.swallow.content";
2210          type: SWALLOW;
2211          scale: 1;
2212          ignore_flags: ON_HOLD;
2213          description {
2214             state: "default" 0.0;
2215             min: 0 40;
2216             rel1 {
2217                relative : 1.0 1.0;
2218                to_x: "left1";
2219                to_y: "top1";
2220             }
2221             rel2 {
2222                relative : 0.0 0.0;
2223                to_x: "right1";
2224                to_y: "bottom1";
2225             }
2226             align: 0.0 0.5;
2227          }
2228          description {
2229             state: "no_edit" 0.0;
2230             inherit: "default" 0.0;
2231             visible: 0;
2232          }
2233          description {
2234             state: "edit" 0.0;
2235             inherit: "default" 0.0;
2236             visible: 1;
2237          }
2238       }
2239       part {
2240          name: "over";
2241          type: RECT;
2242          scale: 1;
2243          ignore_flags: ON_HOLD;
2244          description {
2245             state: "default" 0.0;
2246             rel1.to: "base";
2247             rel2.to: "base";
2248             color: 0 0 0 0;
2249          }
2250          description {
2251             state: "edit" 0.0;
2252             inherit: "default" 0.0;
2253             visible: 0;
2254          }
2255       }
2256       part {
2257          name: "eraser_image";
2258          scale: 1;
2259          description {
2260             state: "default" 0.0;
2261             visible: 0;
2262             min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC;
2263             fixed: 1 1;
2264             align: 1 1;
2265             rel1 {
2266                relative: 0.0 0.0;
2267                to_x : "right2";
2268                to_y : "bottom2";
2269             }
2270             rel2 {
2271                relative: 0.0 0.0;
2272                to_x : "right2";
2273                to_y : "bottom2";
2274             }
2275             image {
2276                normal: "00_field_btn_Clear.png";
2277                border: 4 4 4 4 ;
2278                border_scale: 1;
2279             }
2280          }
2281          description {
2282             state: "elm.eraser.show" 0.0;
2283             inherit: "default" 0.0;
2284             visible: 1;
2285          }
2286       }
2287       part {
2288          name: "eraser";
2289          mouse_events: 1;
2290          ignore_flags: ON_HOLD;
2291          description {
2292             state: "default" 0.0;
2293             visible: 0;
2294             color: 0 0 0 0;
2295             rel1 {
2296                relative: 0.0 0.0;
2297                to_x : "eraser_image";
2298                to_y : "bottom3";
2299             }
2300          }
2301          description {
2302             state: "elm.eraser.show" 0.0;
2303             inherit: "default" 0.0;
2304             visible: 1;
2305          }
2306       }
2307    }
2308    programs {
2309       program {
2310          name: "guidetext_show";
2311          signal: "elm,state,guidetext,visible";
2312          source: "elm";
2313          action: STATE_SET "default" 0.0;
2314          target: "elm.guidetext";
2315       }
2316       program {
2317          name: "guidetext_hide";
2318          signal: "elm,state,guidetext,hidden";
2319          source: "elm";
2320          action: STATE_SET "hidden" 0.0;
2321          target: "elm.guidetext";
2322       }
2323       program {
2324          name: "eraser_show";
2325          signal: "elm,state,eraser,show";
2326          source: "elm";
2327          action: STATE_SET "elm.eraser.show" 0.0;
2328          target: "eraser_image";
2329          target: "eraser";
2330       }
2331       program {
2332          name: "eraser_hide";
2333          signal: "elm,state,eraser,hidden";
2334          source: "elm";
2335          action: STATE_SET "default" 0.0;
2336          target: "eraser_image";
2337          target: "eraser";
2338       }
2339       program {
2340          name: "multiline_set";
2341          signal: "elm,state,text,multiline";
2342          source: "elm";
2343          script {
2344             set_multi_line();
2345          }
2346       }
2347       program {
2348          name: "singleline_set";
2349          signal: "elm,state,text,singleline";
2350          source: "elm";
2351          script {
2352             set_single_line();
2353          }
2354       }
2355       program {
2356          name: "password_set";
2357          signal: "elm,state,password,set";
2358          source: "elm";
2359          script {
2360             set_password();
2361          }
2362       }
2363       program {
2364          name: "password_unset";
2365          signal: "elm,state,password,unset";
2366          source: "elm";
2367          script {
2368             unset_password();
2369          }
2370       }
2371       program {
2372          name: "editing";
2373          signal: "elm,state,over,hide";
2374          source: "elm";
2375          action: STATE_SET "edit" 0.0;
2376          target: "elm.swallow.content";
2377          target: "elm.content.password";
2378          target: "elm.content.multi";
2379          target: "elm.content.single";
2380          target: "over";
2381          target: "top2";
2382       }
2383       program {
2384          name: "no_editing";
2385          signal: "elm,state,over,show";
2386          source: "elm";
2387          script {
2388             no_edit();
2389          }
2390       }
2391       program {
2392          name: "label_show";
2393          signal: "elm,state,text,visible";
2394          source: "elm";
2395          action: STATE_SET "elm.text.show" 0.0;
2396          target: "elm.text";
2397          target: "top1";
2398          target: "bottom1";
2399          target: "bottom2";
2400          target: "bottom3";
2401       }
2402       program {
2403          name: "label_hide";
2404          signal: "elm,state,text,hidden";
2405          source: "elm";
2406          action: STATE_SET "default" 0.0;
2407          target: "elm.text";
2408          target: "top1";
2409          target: "bottom1";
2410          target: "bottom2";
2411          target: "bottom3";
2412       }
2413       program {
2414          name: "entry_show";
2415          signal: "elm,state,entry,show";
2416          source: "elm";
2417          action: STATE_SET "edit" 0.0;
2418          target: "elm.swallow.content";
2419          target: "elm.content.multi";
2420       }
2421    }
2422 }