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