[entry] Fix a editfield_space which using by rename icon and clear button.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / entry.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 #define ENTRY_BLOCK_HANDLE_SOURCE7 "elm/entry/selection/block_handle_left"
19 #define ENTRY_BLOCK_HANDLE_SOURCE8 "elm/entry/selection/block_handle_right"
20 #define ENTRY_CURSOR_HANDLE_SOURCE9 "elm/entry/cursor_handle/default"
21 #define ENTRY_BLOCK_HANDLE_SOURCE10 "elm/entry/selection/block_handle_edge_left"
22 #define ENTRY_BLOCK_HANDLE_SOURCE11 "elm/entry/selection/block_handle_edge_right"
23
24 #define ENTRY_TEXTBLOCK_DEFAULT_REL \
25    rel1 { \
26       relative: 0.0 0.0; \
27    } \
28    rel2 { \
29       to_x: "editfield_space"; \
30       relative: 0.0 1.0; \
31    }
32
33 #define ENTRY_SWALLOW_SCRIPT_PUBLIC \
34    script { \
35       public scroll_enabled; \
36    }
37
38 #define ENTRY_SWALLOW_PARTS \
39    part { name: "editfield_space"; \
40       type: SPACER; \
41       description { state: "default" 0.0; \
42          align: 1.0 0.5; \
43          min: 0 0; \
44          max: 0 0; \
45          rel1.relative: 1.0 0.0; \
46          rel2.relative: 1.0 1.0; \
47       } \
48       description { state: "rename_visible" 0.0; \
49          inherit: "default" 0.0; \
50          min: 5 0; \
51          max: 5 0; \
52          rel1 { \
53             to_x: "elm.swallow.rename"; \
54             relative: 0.0 0.0; \
55          } \
56          rel2 { \
57             to_x: "elm.swallow.rename"; \
58             relative: 0.0 1.0; \
59          } \
60       } \
61       description { state: "clear_visible" 0.0; \
62          inherit: "default" 0.0; \
63          min: 5 0; \
64          max: 5 0; \
65          rel1 { \
66             to_x: "elm.swallow.clear"; \
67             relative: 0.0 0.0; \
68          } \
69          rel2 { \
70             to_x: "elm.swallow.clear"; \
71             relative: 0.0 1.0; \
72          } \
73       } \
74    } \
75    part { name: "elm.swallow.clear"; \
76       type: SWALLOW; \
77       description { state: "default" 0.0; \
78          fixed: 1 1; \
79          rel1.relative: 1.0 0.0; \
80          rel2.relative: 1.0 1.0; \
81          visible: 0; \
82       } \
83       description { state: "visible" 0.0; \
84          inherit: "default" 0.0; \
85          align: 1.0 0.5; \
86          visible: 1; \
87       } \
88    } \
89    part { name: "elm.swallow.rename"; \
90       type: SWALLOW; \
91       description { state: "default" 0.0; \
92          fixed: 1 1; \
93          align: 1.0 0.5; \
94          rel1.relative: 1.0 0.0; \
95          rel2.relative: 1.0 1.0; \
96          visible: 0; \
97       } \
98       description { state: "visible" 0.0; \
99          inherit: "default" 0.0; \
100          visible: 1; \
101       } \
102    }
103
104 #define ENTRY_SWALLOW_PROGRAMS \
105    program { name: "scroll_enabled"; \
106       signal: "elm,state,scroll,enabled"; \
107       source: "*"; \
108       script { \
109          set_int(scroll_enabled, 1); \
110       } \
111    } \
112    program { name: "scroll_disabled"; \
113       signal: "elm,state,scroll,disabled"; \
114       source: "*"; \
115       script { \
116          set_int(scroll_enabled, 0); \
117       } \
118    } \
119    program { name: "clear_show"; \
120       signal: "elm,state,clear,visible"; \
121       source: "*"; \
122       script { \
123          new v; \
124          v = get_int(scroll_enabled); \
125          if (!v) { \
126             set_state(PART:"elm.swallow.clear", "visible", 0.0); \
127             set_state(PART:"editfield_space", "clear_visible", 0.0); \
128          } \
129       } \
130    } \
131    program { name: "clear_hide"; \
132       signal: "elm,state,clear,hidden"; \
133       source: "*"; \
134       script { \
135          new v; \
136          v = get_int(scroll_enabled); \
137          if (!v) { \
138             set_state(PART:"elm.swallow.clear", "default", 0.0); \
139             set_state(PART:"editfield_space", "default", 0.0); \
140          } \
141       } \
142    } \
143    program { name: "rename_show"; \
144       signal: "elm,state,rename,visible"; \
145       source: "*"; \
146       script { \
147          new v; \
148          v = get_int(scroll_enabled); \
149          if (!v) { \
150             set_state(PART:"elm.swallow.rename", "visible", 0.0); \
151             set_state(PART:"editfield_space", "rename_visible", 0.0); \
152          } \
153       } \
154    } \
155    program { name: "rename_hide"; \
156       signal: "elm,state,rename,hidden"; \
157       source: "*"; \
158       script { \
159          new v; \
160          v = get_int(scroll_enabled); \
161          if (!v) { \
162             set_state(PART:"elm.swallow.rename", "default", 0.0); \
163             set_state(PART:"editfield_space", "default", 0.0); \
164          } \
165       } \
166    }
167
168 sounds {
169    sample {
170       name: "touch_sound" AS_IS;
171       source: "S_Touch_30ms.wav";
172    }
173 }
174
175 group { name: "elm/entry/base/default";
176    alias: "elm/entry/base-mixedwrap/default";
177    data.item: "default_font_size" "24";
178    data.item: "min_font_size" "8";
179    data.item: "max_font_size" "60";
180    styles {
181       style { name: "entry_textblock_style";
182          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" left_margin=1 right_margin=2 wrap=mixed text_class=entry";
183          tag:  "br" "\n";
184          tag:  "ps" "ps";
185          tag:  "tab" "\t";
186          tag:  "em" "+ font=Tizen:style=Oblique";
187          tag:  "b" "+ font=Tizen:style=Bold";
188          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
189          tag:  "hilight" "+ font=Tizen:style=Bold";
190          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
191          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
192          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
193          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
194          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
195          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
196       }
197       style { name: "entry_textblock_disabled_style";
198          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 left_margin=1 right_margin=2 wrap=mixed text_class=entry";
199          tag:  "br" "\n";
200          tag:  "ps" "ps";
201          tag:  "tab" "\t";
202          tag:  "em" "+ font=Tizen:style=Oblique";
203          tag:  "b" "+ font=Tizen:style=Bold";
204          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
205          tag:  "hilight" "+ font=Tizen:style=Bold";
206          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
207          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
208          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
209          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
210          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
211          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
212       }
213       style { name: "entry_textblock_guide_style";
214          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" left_margin=1 right_margin=2 wrap=mixed text_class=entry";
215          tag:  "br" "\n";
216          tag:  "ps" "ps";
217          tag:  "tab" "\t";
218          tag:  "em" "+ font=Tizen:style=Oblique";
219          tag:  "b" "+ font=Tizen:style=Bold";
220          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
221          tag:  "hilight" "+ font=Tizen:style=Bold";
222       }
223    }
224    data {
225       item: context_menu_orientation "horizontal";
226    }
227    parts {
228       part { name: "elm.guide";
229          type: TEXTBLOCK;
230          mouse_events: 0;
231          scale: 1;
232          description { state: "default" 0.0;
233             rel1.to: "elm.text";
234             rel2.to: "elm.text";
235             text {
236                style: "entry_textblock_guide_style";
237                min: 0 1;
238                align: 0.0 0.0;
239             }
240          }
241          description { state: "hidden" 0.0;
242             inherit: "default" 0.0;
243             visible: 0;
244          }
245       }
246       part { name: "elm.text";
247          type: TEXTBLOCK;
248          mouse_events: 1;
249          scale: 1;
250          entry_mode: EDITABLE;
251          select_mode: BLOCK_HANDLE;
252          //cursor_mode: BEFORE;
253          multiline: 1;
254          source: "elm/entry/selection/default"; // selection under
255          //source2: "X"; // selection over
256          //source3: "X"; // cursor under
257          source4: "elm/entry/cursor/default"; // cursorover
258          source5: "elm/entry/anchor/default"; // anchor under
259          //source6: "X"; // anchor over
260          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
261          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
262          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
263          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
264          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
265          description { state: "default" 0.0;
266             fixed: 1 0;
267             text {
268                style: "entry_textblock_style";
269                min: 0 1;
270                align: 0.0 0.0;
271             }
272             ENTRY_TEXTBLOCK_DEFAULT_REL
273          }
274          description { state: "disabled" 0.0;
275             inherit: "default" 0.0;
276             text {
277                style: "entry_textblock_disabled_style";
278                min: 0 1;
279             }
280          }
281       }
282       ENTRY_SWALLOW_PARTS
283    }
284    ENTRY_SWALLOW_SCRIPT_PUBLIC
285    programs {
286       program { name: "focus";
287          signal: "load";
288          source: "";
289          action: FOCUS_SET;
290          target: "elm.text";
291       }
292       program { name: "disable";
293          signal: "elm,state,disabled";
294          source: "elm";
295          action: STATE_SET "disabled" 0.0;
296          target: "elm.text";
297       }
298       program { name: "enable";
299          signal: "elm,state,enabled";
300          source: "elm";
301          action: STATE_SET "default" 0.0;
302          target: "elm.text";
303       }
304       program { name: "gdisable";
305          signal: "elm,guide,disabled";
306          source: "elm";
307          action: STATE_SET "hidden" 0.0;
308          target: "elm.guide";
309       }
310       program { name: "genable";
311          signal: "elm,guide,enabled";
312          source: "elm";
313          action: STATE_SET "default" 0.0;
314          target: "elm.guide";
315       }
316       program { name: "touch_snd";
317          signal: "mouse,clicked,1";
318          source: "elm.text";
319          action: PLAY_SAMPLE "touch_sound" 1.0;
320       }
321       ENTRY_SWALLOW_PROGRAMS
322    }
323 }
324
325 group { name: "elm/entry/base-charwrap/default";
326    alias: "elm/entry/base/char_wrap";
327    data.item: "default_font_size" "24";
328    data.item: "min_font_size" "8";
329    data.item: "max_font_size" "60";
330    styles {
331       style { name: "entry_textblock_char_wrap_style";
332          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
333          tag:  "br" "\n";
334          tag:  "ps" "ps";
335          tag:  "tab" "\t";
336          tag:  "em" "+ font=Tizen:style=Oblique";
337          tag:  "b" "+ font=Tizen:style=Bold";
338          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
339          tag:  "hilight" "+ font=Tizen:style=Bold";
340          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
341          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
342          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
343          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
344          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
345          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
346       }
347       style { name: "entry_textblock_char_wrap_disabled_style";
348          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2 text_class=entry";
349          tag:  "br" "\n";
350          tag:  "ps" "ps";
351          tag:  "tab" "\t";
352          tag:  "em" "+ font=Tizen:style=Oblique";
353          tag:  "b" "+ font=Tizen:style=Bold";
354          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
355          tag:  "hilight" "+ font=Tizen:style=Bold";
356          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
357          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
358          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
359          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
360          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
361          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
362       }
363       style { name: "entry_textblock_char_wrap_guide_style";
364          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
365          tag:  "br" "\n";
366          tag:  "ps" "ps";
367          tag:  "tab" "\t";
368          tag:  "em" "+ font=Tizen:style=Oblique";
369          tag:  "b" "+ font=Tizen:style=Bold";
370          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
371          tag:  "hilight" "+ font=Tizen:style=Bold";
372       }
373    }
374    data {
375       item: context_menu_orientation "horizontal";
376    }
377    parts {
378       part { name: "elm.guide";
379          type: TEXTBLOCK;
380          mouse_events: 0;
381          scale: 1;
382          description { state: "default" 0.0;
383             rel1.to: "elm.text";
384             rel2.to: "elm.text";
385             text {
386                style: "entry_textblock_char_wrap_guide_style";
387                min: 0 1;
388                align: 0.0 0.0;
389             }
390          }
391          description { state: "hidden" 0.0;
392             inherit: "default" 0.0;
393             visible: 0;
394          }
395       }
396       part { name: "elm.text";
397          type: TEXTBLOCK;
398          mouse_events: 1;
399          scale: 1;
400          entry_mode: EDITABLE;
401          select_mode: BLOCK_HANDLE;
402          //cursor_mode: BEFORE;
403          multiline: 1;
404          source: "elm/entry/selection/default"; // selection under
405          //source2: "X"; // selection over
406          //source3: "X"; // cursor under
407          source4: "elm/entry/cursor/default"; // cursorover
408          source5: "elm/entry/anchor/default"; // anchor under
409          //source6: "X"; // anchor over
410          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
411          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
412          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
413          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
414          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
415          description { state: "default" 0.0;
416             fixed: 1 0;
417             text {
418                style: "entry_textblock_char_wrap_style";
419                min: 0 1;
420                align: 0.0 0.0;
421             }
422             ENTRY_TEXTBLOCK_DEFAULT_REL
423          }
424          description { state: "disabled" 0.0;
425             inherit: "default" 0.0;
426             text {
427                style: "entry_textblock_char_wrap_disabled_style";
428                min: 0 1;
429             }
430          }
431       }
432       ENTRY_SWALLOW_PARTS
433    }
434    ENTRY_SWALLOW_SCRIPT_PUBLIC
435    programs {
436          program { name: "focus";
437         signal: "load";
438             source: "";
439             action: FOCUS_SET;
440             target: "elm.text";
441          }
442          program { name: "disable";
443             signal: "elm,state,disabled";
444             source: "elm";
445             action: STATE_SET "disabled" 0.0;
446             target: "elm.text";
447          }
448          program { name: "enable";
449             signal: "elm,state,enabled";
450             source: "elm";
451             action: STATE_SET "default" 0.0;
452             target: "elm.text";
453          }
454      program { name: "gdisable";
455         signal: "elm,guide,disabled";
456         source: "elm";
457         action: STATE_SET "hidden" 0.0;
458         target: "elm.guide";
459      }
460      program { name: "genable";
461         signal: "elm,guide,enabled";
462         source: "elm";
463         action: STATE_SET "default" 0.0;
464         target: "elm.guide";
465      }
466      program { name: "touch_snd";
467         signal: "mouse,clicked,1";
468         source: "elm.text";
469         action: PLAY_SAMPLE "touch_sound" 1.0;
470      }
471      ENTRY_SWALLOW_PROGRAMS
472   }
473 }
474
475 group { name: "elm/entry/base-nowrap/default";
476    data.item: "default_font_size" "24";
477    data.item: "min_font_size" "8";
478    data.item: "max_font_size" "60";
479    data {
480       item: context_menu_orientation "horizontal";
481    }
482    parts {
483       part { name: "elm.guide";
484          type: TEXTBLOCK;
485          mouse_events: 0;
486          scale: 1;
487          description { state: "default" 0.0;
488             rel1.to: "elm.text";
489             rel2.to: "elm.text";
490             text {
491                style: "entry_textblock_guide_style";
492                min: 0 1;
493                align: 0.0 0.0;
494             }
495          }
496          description { state: "hidden" 0.0;
497             inherit: "default" 0.0;
498             visible: 0;
499          }
500       }
501       part { name: "elm.text";
502          type: TEXTBLOCK;
503          mouse_events: 1;
504          scale: 1;
505          entry_mode: EDITABLE;
506          select_mode: BLOCK_HANDLE;
507          //cursor_mode: BEFORE;
508          multiline: 1;
509          source: "elm/entry/selection/default"; // selection under
510          //source2: "X"; // selection over
511          //source3: "X"; // cursor under
512          source4: "elm/entry/cursor/default"; // cursorover
513          source5: "elm/entry/anchor/default"; // anchor under
514          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
515          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
516          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
517          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
518          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
519          description { state: "default" 0.0;
520             text {
521                style: "entry_textblock_style";
522                min: 1 1;
523                align: 0.0 0.0;
524             }
525             ENTRY_TEXTBLOCK_DEFAULT_REL
526          }
527          description { state: "disabled" 0.0;
528             inherit: "default" 0.0;
529             text {
530                style: "entry_textblock_disabled_style";
531                min: 0 1;
532             }
533          }
534       }
535       ENTRY_SWALLOW_PARTS
536    }
537    ENTRY_SWALLOW_SCRIPT_PUBLIC
538    programs {
539       program { name: "focus";
540          signal: "load";
541          source: "";
542          action: FOCUS_SET;
543          target: "elm.text";
544       }
545       program { name: "disable";
546          signal: "elm,state,disabled";
547          source: "elm";
548          action: STATE_SET "disabled" 0.0;
549          target: "elm.text";
550       }
551       program { name: "enable";
552          signal: "elm,state,enabled";
553          source: "elm";
554          action: STATE_SET "default" 0.0;
555          target: "elm.text";
556       }
557       program { name: "gdisable";
558          signal: "elm,guide,disabled";
559          source: "elm";
560          action: STATE_SET "hidden" 0.0;
561          target: "elm.guide";
562       }
563       program { name: "genable";
564          signal: "elm,guide,enabled";
565          source: "elm";
566          action: STATE_SET "default" 0.0;
567          target: "elm.guide";
568       }
569       program { name: "touch_snd";
570          signal: "mouse,clicked,1";
571          source: "elm.text";
572          action: PLAY_SAMPLE "touch_sound" 1.0;
573       }
574       ENTRY_SWALLOW_PROGRAMS
575    }
576 }
577
578 group { name: "elm/entry/base/editfield";
579    alias: "elm/entry/base-mixedwrap/editfield";
580    alias: "elm/entry/base/editfield/default";
581    alias: "elm/entry/base/editfield/lighting";
582    alias: "elm/entry/base/editfield/multiline";
583    alias: "elm/entry/base/editfield/multiline/default";
584    alias: "elm/entry/base/editfield/multiline/lighting";
585    alias: "elm/entry/base/editfield/searchbar/default";
586    data.item: "default_font_size" "24";
587    data.item: "min_font_size" "8";
588    data.item: "max_font_size" "60";
589    styles {
590       style { name: "editfield_textblock_style";
591          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2";
592          tag:  "br" "\n";
593          tag:  "ps" "ps";
594          tag:  "tab" "\t";
595          tag:  "em" "+ font=Tizen:style=Oblique";
596          tag:  "b" "+ font=Tizen:style=Bold";
597          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
598          tag:  "hilight" "+ font=Tizen:style=Bold";
599          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
600          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
601          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
602          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
603          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
604          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
605       }
606       style { name: "editfield_textblock_disabled_style";
607          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=mixed left_margin=1 right_margin=2";
608          tag:  "br" "\n";
609          tag:  "ps" "ps";
610          tag:  "tab" "\t";
611          tag:  "em" "+ font=Tizen:style=Oblique";
612          tag:  "b" "+ font=Tizen:style=Bold";
613          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
614          tag:  "hilight" "+ font=Tizen:style=Bold";
615          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
616          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
617          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
618          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
619          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
620          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
621       }
622       style { name: "editfield_textblock_guide_style";
623          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2";
624          tag:  "br" "\n";
625          tag:  "ps" "ps";
626          tag:  "tab" "\t";
627          tag:  "em" "+ font=Tizen:style=Oblique";
628          tag:  "b" "+ font=Tizen:style=Bold";
629          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
630          tag:  "hilight" "+ font=Tizen:style=Bold";
631       }
632    }
633    data {
634       item: context_menu_orientation "horizontal";
635    }
636    parts {
637       part { name: "elm.guide";
638          type: TEXTBLOCK;
639          mouse_events: 0;
640          scale: 1;
641          description { state: "default" 0.0;
642             rel1.to: "elm.text";
643             rel2.to: "elm.text";
644             text {
645                style: "editfield_textblock_guide_style";
646                min: 0 1;
647                align: 0.0 0.0;
648             }
649          }
650          description { state: "hidden" 0.0;
651             inherit: "default" 0.0;
652             visible: 0;
653          }
654       }
655       part { name: "elm.text";
656          type: TEXTBLOCK;
657          mouse_events: 1;
658          scale: 1;
659          entry_mode: EDITABLE;
660          select_mode: BLOCK_HANDLE;
661          //cursor_mode: BEFORE;
662          multiline: 1;
663          source: "elm/entry/selection/default"; // selection under
664          //source2: "X"; // selection over
665          //source3: "X"; // cursor under
666          source4: "elm/entry/cursor/default"; // cursorover
667          source5: "elm/entry/anchor/default"; // anchor under
668          //source6: "X"; // anchor over
669          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
670          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
671          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
672          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
673          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
674          description { state: "default" 0.0;
675             fixed: 1 0;
676             text {
677             style: "editfield_textblock_style";
678                min: 0 1;
679                align: 0.0 0.0;
680             }
681             ENTRY_TEXTBLOCK_DEFAULT_REL
682          }
683          description { state: "disabled" 0.0;
684             inherit: "default" 0.0;
685             text {
686                style: "editfield_textblock_disabled_style";
687                min: 0 1;
688             }
689          }
690       }
691       ENTRY_SWALLOW_PARTS
692    }
693    ENTRY_SWALLOW_SCRIPT_PUBLIC
694    programs {
695       program { name: "focus";
696          signal: "load";
697          source: "";
698          action: FOCUS_SET;
699          target: "elm.text";
700       }
701       program { name: "disable";
702          signal: "elm,state,disabled";
703          source: "elm";
704          action: STATE_SET "disabled" 0.0;
705          target: "elm.text";
706       }
707       program { name: "enable";
708          signal: "elm,state,enabled";
709          source: "elm";
710          action: STATE_SET "default" 0.0;
711          target: "elm.text";
712       }
713       program { name: "gdisable";
714          signal: "elm,guide,disabled";
715          source: "elm";
716          action: STATE_SET "hidden" 0.0;
717          target: "elm.guide";
718       }
719       program { name: "genable";
720          signal: "elm,guide,enabled";
721          source: "elm";
722          action: STATE_SET "default" 0.0;
723          target: "elm.guide";
724       }
725       program { name: "touch_snd";
726          signal: "mouse,clicked,1";
727          source: "elm.text";
728          action: PLAY_SAMPLE "touch_sound" 1.0;
729       }
730       ENTRY_SWALLOW_PROGRAMS
731    }
732 }
733
734 group { name: "elm/entry/base-charwrap/editfield";
735    alias: "elm/entry/base/editfield/char_wrap";
736    alias: "elm/entry/base/editfield/default/char_wrap";
737    alias: "elm/entry/base/editfield/lighting/char_wrap";
738    alias: "elm/entry/base/editfield/multiline/char_wrap";
739    alias: "elm/entry/base/editfield/multiline/default/char_wrap";
740    alias: "elm/entry/base/editfield/multiline/lighting/char_wrap";
741    data.item: "default_font_size" "24";
742    data.item: "min_font_size" "8";
743    data.item: "max_font_size" "60";
744    styles {
745       style { name: "editfield_textblock_char_wrap_style";
746          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2";
747          tag:  "br" "\n";
748          tag:  "ps" "ps";
749          tag:  "tab" "\t";
750          tag:  "em" "+ font=Tizen:style=Oblique";
751          tag:  "b" "+ font=Tizen:style=Bold";
752          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
753          tag:  "hilight" "+ font=Tizen:style=Bold";
754          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
755          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
756          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
757          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
758          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
759          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
760       }
761       style { name: "editfield_textblock_char_wrap_disabled_style";
762          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2";
763          tag:  "br" "\n";
764          tag:  "ps" "ps";
765          tag:  "tab" "\t";
766          tag:  "em" "+ font=Tizen:style=Oblique";
767          tag:  "b" "+ font=Tizen:style=Bold";
768          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
769          tag:  "hilight" "+ font=Tizen:style=Bold";
770          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
771          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
772          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
773          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
774          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
775          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
776       }
777       style { name: "editfield_textblock_char_wrap_guide_style";
778          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2";
779          tag:  "br" "\n";
780          tag:  "ps" "ps";
781          tag:  "tab" "\t";
782          tag:  "em" "+ font=Tizen:style=Oblique";
783          tag:  "b" "+ font=Tizen:style=Bold";
784          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
785          tag:  "hilight" "+ font=Tizen:style=Bold";
786       }
787    }
788    data {
789       item: context_menu_orientation "horizontal";
790    }
791    parts {
792       part { name: "elm.guide";
793          type: TEXTBLOCK;
794          mouse_events: 0;
795          scale: 1;
796          description { state: "default" 0.0;
797             rel1.to: "elm.text";
798             rel2.to: "elm.text";
799             text {
800                style: "editfield_textblock_char_wrap_guide_style";
801                min: 0 1;
802                align: 0.0 0.0;
803             }
804          }
805          description { state: "hidden" 0.0;
806             inherit: "default" 0.0;
807             visible: 0;
808          }
809       }
810       part { name: "elm.text";
811          type: TEXTBLOCK;
812          mouse_events: 1;
813          scale: 1;
814          entry_mode: EDITABLE;
815          select_mode: BLOCK_HANDLE;
816          //cursor_mode: BEFORE;
817          multiline: 1;
818          source: "elm/entry/selection/default"; // selection under
819          //source2: "X"; // selection over
820          //source3: "X"; // cursor under
821          source4: "elm/entry/cursor/default"; // cursorover
822          source5: "elm/entry/anchor/default"; // anchor under
823          //source6: "X"; // anchor over
824          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
825          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
826          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
827          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
828          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
829          description { state: "default" 0.0;
830             fixed: 1 0;
831             text {
832                style: "editfield_textblock_char_wrap_style";
833                min: 0 1;
834                align: 0.0 0.0;
835             }
836             ENTRY_TEXTBLOCK_DEFAULT_REL
837          }
838          description { state: "disabled" 0.0;
839             inherit: "default" 0.0;
840             text {
841                style: "editfield_textblock_char_wrap_disabled_style";
842                min: 0 1;
843             }
844          }
845       }
846       ENTRY_SWALLOW_PARTS
847    }
848    ENTRY_SWALLOW_SCRIPT_PUBLIC
849    programs {
850       program { name: "focus";
851          signal: "load";
852          source: "";
853          action: FOCUS_SET;
854          target: "elm.text";
855       }
856       program { name: "disable";
857          signal: "elm,state,disabled";
858          source: "elm";
859          action: STATE_SET "disabled" 0.0;
860          target: "elm.text";
861       }
862       program { name: "enable";
863          signal: "elm,state,enabled";
864          source: "elm";
865          action: STATE_SET "default" 0.0;
866          target: "elm.text";
867       }
868       program { name: "gdisable";
869          signal: "elm,guide,disabled";
870          source: "elm";
871          action: STATE_SET "hidden" 0.0;
872          target: "elm.guide";
873       }
874       program { name: "genable";
875          signal: "elm,guide,enabled";
876          source: "elm";
877          action: STATE_SET "default" 0.0;
878          target: "elm.guide";
879       }
880       program { name: "touch_snd";
881          signal: "mouse,clicked,1";
882          source: "elm.text";
883          action: PLAY_SAMPLE "touch_sound" 1.0;
884       }
885       ENTRY_SWALLOW_PROGRAMS
886    }
887 }
888
889 group { name: "elm/entry/base-single/editfield";
890    alias: "elm/entry/base-single/editfield/default";
891    alias: "elm/entry/base-single/editfield/lighting";
892    alias: "elm/entry/base-single/editfield/singleline";
893    alias: "elm/entry/base-single/editfield/singleline/default";
894    alias: "elm/entry/base-single/editfield/singleline/lighting";
895    data.item: "default_font_size" "24";
896    data.item: "min_font_size" "8";
897    data.item: "max_font_size" "60";
898    styles {
899       style { name: "editfield_single_textblock_style";
900          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
901          tag:  "br" "\n";
902          tag:  "ps" "ps";
903          tag:  "tab" "\t";
904          tag:  "em" "+ font=Tizen:style=Oblique";
905          tag:  "b" "+ font=Tizen:style=Bold";
906          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
907          tag:  "hilight" "+ font=Tizen:style=Bold";
908          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
909          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
910          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
911          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
912          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
913          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
914       }
915       style { name: "editfield_single_textblock_disabled_style";
916          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
917          tag:  "br" "\n";
918          tag:  "ps" "ps";
919          tag:  "tab" "\t";
920          tag:  "em" "+ font=Tizen:style=Oblique";
921          tag:  "b" "+ font=Tizen:style=Bold";
922          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
923          tag:  "hilight" "+ font=Tizen:style=Bold";
924          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
925          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
926          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
927          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
928          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
929          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
930       }
931       style { name: "editfield_single_textblock_guide_style";
932          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry ellipsis=1.0";
933          tag:  "br" "\n";
934          tag:  "ps" "ps";
935          tag:  "tab" "\t";
936          tag:  "em" "+ font=Tizen:style=Oblique";
937          tag:  "b" "+ font=Tizen:style=Bold";
938          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
939          tag:  "hilight" "+ font=Tizen:style=Bold";
940       }
941    }
942    data {
943       item: context_menu_orientation "horizontal";
944    }
945    parts {
946       part { name: "elm.guide";
947          type: TEXTBLOCK;
948          mouse_events: 0;
949          scale: 1;
950          description { state: "default" 0.0;
951             rel1.to: "elm.text";
952             rel2.to: "elm.text";
953             text {
954                style: "editfield_single_textblock_guide_style";
955                min: 0 1;
956                max: 0 1;
957             }
958          }
959          description { state: "hidden" 0.0;
960             inherit: "default" 0.0;
961             visible: 0;
962          }
963       }
964       part { name: "elm.text";
965          type: TEXTBLOCK;
966          mouse_events: 1;
967          scale: 1;
968          entry_mode: EDITABLE;
969          select_mode: BLOCK_HANDLE;
970          //cursor_mode: BEFORE;
971          multiline: 0;
972          source: "elm/entry/selection/default"; // selection under
973          //source2: ; // selection over
974          //source3: ; // cursor under
975          source4: "elm/entry/cursor/default"; // cursorover
976          source5: "elm/entry/anchor/default"; // anchor under
977          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
978          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
979          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
980          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
981          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
982          description { state: "default" 0.0;
983             text {
984                style: "editfield_single_textblock_style";
985                min: 1 1;
986                max: 0 1;
987             }
988             ENTRY_TEXTBLOCK_DEFAULT_REL
989          }
990          description { state: "disabled" 0.0;
991             inherit: "default" 0.0;
992             text {
993                style: "editfield_single_textblock_disabled_style";
994             }
995          }
996       }
997       ENTRY_SWALLOW_PARTS
998    }
999    ENTRY_SWALLOW_SCRIPT_PUBLIC
1000    programs {
1001       program { name: "focus";
1002          signal: "load";
1003          source: "";
1004          action: FOCUS_SET;
1005          target: "elm.text";
1006       }
1007       program { name: "disable";
1008          signal: "elm,state,disabled";
1009          source: "elm";
1010          action: STATE_SET "disabled" 0.0;
1011          target: "elm.text";
1012       }
1013       program { name: "enable";
1014          signal: "elm,state,enabled";
1015          source: "elm";
1016          action: STATE_SET "default" 0.0;
1017          target: "elm.text";
1018       }
1019       program { name: "gdisable";
1020          signal: "elm,guide,disabled";
1021          source: "elm";
1022          action: STATE_SET "hidden" 0.0;
1023          target: "elm.guide";
1024       }
1025       program { name: "genable";
1026          signal: "elm,guide,enabled";
1027          source: "elm";
1028          action: STATE_SET "default" 0.0;
1029          target: "elm.guide";
1030       }
1031       program { name: "touch_snd";
1032          signal: "mouse,clicked,1";
1033          source: "elm.text";
1034          action: PLAY_SAMPLE "touch_sound" 1.0;
1035       }
1036       ENTRY_SWALLOW_PROGRAMS
1037    }
1038 }
1039
1040 group { name: "elm/entry/base-single/editfield/searchbar/default";
1041    data.item: "default_font_size" "24";
1042    data.item: "min_font_size" "8";
1043    data.item: "max_font_size" "60";
1044    data {
1045       item: context_menu_orientation "horizontal";
1046    }
1047    parts {
1048       part { name: "elm.guide";
1049          type: TEXTBLOCK;
1050          mouse_events: 0;
1051          scale: 1;
1052          description { state: "default" 0.0;
1053             rel1.to: "elm.text";
1054             rel2.to: "elm.text";
1055             text {
1056                style: "editfield_single_textblock_guide_style";
1057                min: 0 1;
1058                max: 0 1;
1059             }
1060          }
1061          description { state: "hidden" 0.0;
1062             inherit: "default" 0.0;
1063             visible: 0;
1064          }
1065       }
1066       part { name: "elm.text";
1067          type: TEXTBLOCK;
1068          mouse_events: 1;
1069          scale: 1;
1070          entry_mode: EDITABLE;
1071          select_mode: BLOCK_HANDLE;
1072          //cursor_mode: BEFORE;
1073          multiline: 0;
1074          source: "elm/entry/selection/default"; // selection under
1075          //source2: "X"; // selection over
1076          //source3: "X"; // cursor under
1077          source4: "elm/entry/cursor/default"; // cursorover
1078          source5: "elm/entry/anchor/default"; // anchor under
1079          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1080          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1081          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1082          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1083          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1084          description { state: "default" 0.0;
1085             text {
1086                style: "editfield_single_textblock_style";
1087                min: 1 1;
1088                max: 0 1;
1089             }
1090             ENTRY_TEXTBLOCK_DEFAULT_REL
1091          }
1092          description { state: "disabled" 0.0;
1093             inherit: "default" 0.0;
1094             text {
1095                style: "editfield_single_textblock_disabled_style";
1096             }
1097          }
1098       }
1099       ENTRY_SWALLOW_PARTS
1100    }
1101    ENTRY_SWALLOW_SCRIPT_PUBLIC
1102    programs {
1103       program { name: "focus";
1104          signal: "load";
1105          source: "";
1106          action: FOCUS_SET;
1107          target: "elm.text";
1108       }
1109       program { name: "disable";
1110          signal: "elm,state,disabled";
1111          source: "elm";
1112          action: STATE_SET "disabled" 0.0;
1113          target: "elm.text";
1114       }
1115       program { name: "enable";
1116          signal: "elm,state,enabled";
1117          source: "elm";
1118          action: STATE_SET "default" 0.0;
1119          target: "elm.text";
1120       }
1121       program { name: "gdisable";
1122          signal: "elm,guide,disabled";
1123          source: "elm";
1124          action: STATE_SET "hidden" 0.0;
1125          target: "elm.guide";
1126       }
1127       program { name: "genable";
1128          signal: "elm,guide,enabled";
1129          source: "elm";
1130          action: STATE_SET "default" 0.0;
1131          target: "elm.guide";
1132       }
1133       program { name: "touch_snd";
1134          signal: "mouse,clicked,1";
1135          source: "elm.text";
1136          action: PLAY_SAMPLE "touch_sound" 1.0;
1137       }
1138       ENTRY_SWALLOW_PROGRAMS
1139    }
1140 }
1141
1142 group { name: "elm/entry/base-single/default";
1143    data.item: "default_font_size" "24";
1144    data.item: "min_font_size" "8";
1145    data.item: "max_font_size" "60";
1146    styles {
1147       style { name: "entry_single_textblock_style";
1148          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
1149          tag:  "br" "\n";
1150          tag:  "ps" "ps";
1151          tag:  "tab" "\t";
1152          tag:  "em" "+ font=Tizen:style=Oblique";
1153          tag:  "b" "+ font=Tizen:style=Bold";
1154          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1155          tag:  "hilight" "+ font=Tizen:style=Bold";
1156          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1157          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
1158          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1159          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1160          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1161          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1162       }
1163       style { name: "entry_single_textblock_disabled_style";
1164          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
1165          tag:  "br" "\n";
1166          tag:  "ps" "ps";
1167          tag:  "tab" "\t";
1168          tag:  "em" "+ font=Tizen:style=Oblique";
1169          tag:  "b" "+ font=Tizen:style=Bold";
1170          tag:  "link " "+ color=#00000080 underline=on underline_color=#00000080";
1171          tag:  "hilight" "+ font=Tizen:style=Bold";
1172          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1173          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
1174          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1175          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1176          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1177          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1178       }
1179       style { name: "entry_single_textblock_guide_style";
1180          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry ellipsis=1.0";
1181          tag:  "br" "\n";
1182          tag:  "ps" "ps";
1183          tag:  "tab" "\t";
1184          tag:  "em" "+ font=Tizen:style=Oblique";
1185          tag:  "b" "+ font=Tizen:style=Bold";
1186          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1187          tag:  "hilight" "+ font=Tizen:style=Bold";
1188       }
1189    }
1190    data {
1191       item: context_menu_orientation "horizontal";
1192    }
1193    parts {
1194       part { name: "elm.guide";
1195          type: TEXTBLOCK;
1196          mouse_events: 0;
1197          scale: 1;
1198          description { state: "default" 0.0;
1199             rel1.to: "elm.text";
1200             rel2.to: "elm.text";
1201             text {
1202                style: "entry_single_textblock_guide_style";
1203                min: 0 1;
1204                max: 0 0;
1205                align: 0.0 0.5;
1206             }
1207          }
1208          description { state: "hidden" 0.0;
1209             inherit: "default" 0.0;
1210             visible: 0;
1211          }
1212       }
1213       part { name: "elm.text";
1214          type: TEXTBLOCK;
1215          mouse_events: 1;
1216          scale: 1;
1217          entry_mode: EDITABLE;
1218          select_mode: BLOCK_HANDLE;
1219          //cursor_mode: BEFORE;
1220          multiline: 0;
1221          source: "elm/entry/selection/default"; // selection under
1222          //source2: "X"; // selection over
1223          //source3: "X"; // cursor under
1224          source4: "elm/entry/cursor/default"; // cursorover
1225          source5: "elm/entry/anchor/default"; // anchor under
1226          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1227          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1228          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1229          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1230          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1231          description { state: "default" 0.0;
1232             text {
1233                style: "entry_single_textblock_style";
1234                min: 1 1;
1235                max: 0 0;
1236                align: 0.0 0.5;
1237             }
1238             ENTRY_TEXTBLOCK_DEFAULT_REL
1239          }
1240          description { state: "disabled" 0.0;
1241             inherit: "default" 0.0;
1242             text {
1243                style: "entry_single_textblock_disabled_style";
1244             }
1245          }
1246       }
1247       ENTRY_SWALLOW_PARTS
1248    }
1249    ENTRY_SWALLOW_SCRIPT_PUBLIC
1250    programs {
1251       program { name: "focus";
1252          signal: "load";
1253          source: "";
1254          action: FOCUS_SET;
1255          target: "elm.text";
1256       }
1257       program { name: "disable";
1258          signal: "elm,state,disabled";
1259          source: "elm";
1260          action: STATE_SET "disabled" 0.0;
1261          target: "elm.text";
1262       }
1263       program { name: "enable";
1264          signal: "elm,state,enabled";
1265          source: "elm";
1266          action: STATE_SET "default" 0.0;
1267          target: "elm.text";
1268       }
1269       program { name: "gdisable";
1270          signal: "elm,guide,disabled";
1271          source: "elm";
1272          action: STATE_SET "hidden" 0.0;
1273          target: "elm.guide";
1274       }
1275       program { name: "genable";
1276          signal: "elm,guide,enabled";
1277          source: "elm";
1278          action: STATE_SET "default" 0.0;
1279          target: "elm.guide";
1280       }
1281       program { name: "touch_snd";
1282          signal: "mouse,clicked,1";
1283          source: "elm.text";
1284          action: PLAY_SAMPLE "touch_sound" 1.0;
1285       }
1286       ENTRY_SWALLOW_PROGRAMS
1287    }
1288 }
1289
1290 group { name: "elm/entry/base-single-noedit/default";
1291    data.item: "default_font_size" "24";
1292    data.item: "min_font_size" "8";
1293    data.item: "max_font_size" "60";
1294    data {
1295       item: context_menu_orientation "horizontal";
1296    }
1297    parts {
1298       part { name: "elm.guide";
1299          type: TEXTBLOCK;
1300          mouse_events: 0;
1301          scale: 1;
1302          description { state: "default" 0.0;
1303             rel1.to: "elm.text";
1304             rel2.to: "elm.text";
1305             text {
1306                style: "entry_single_textblock_guide_style";
1307                min: 0 1;
1308                max: 0 1;
1309             }
1310          }
1311          description { state: "hidden" 0.0;
1312             inherit: "default" 0.0;
1313             visible: 0;
1314          }
1315       }
1316       part { name: "elm.text";
1317          type: TEXTBLOCK;
1318          mouse_events: 1;
1319          scale: 1;
1320          entry_mode: PLAIN;
1321          select_mode: BLOCK_HANDLE;
1322          //cursor_mode: BEFORE;
1323          multiline: 0;
1324          source: "elm/entry/selection/default"; // selection under
1325          //source2: "X"; // selection over
1326          //source3: "X"; // cursor under
1327          source5: "elm/entry/anchor/default"; // anchor under
1328          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1329          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1330          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1331          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1332          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1333          description { state: "default" 0.0;
1334             text {
1335                style: "entry_single_textblock_style";
1336                min: 1 1;
1337                max: 0 1;
1338             }
1339          }
1340          description { state: "disabled" 0.0;
1341             inherit: "default" 0.0;
1342             text {
1343                style: "entry_single_textblock_disabled_style";
1344             }
1345          }
1346       }
1347    }
1348    programs {
1349       program { name: "focus";
1350          signal: "load";
1351          source: "";
1352          action: FOCUS_SET;
1353          target: "elm.text";
1354       }
1355       program { name: "disable";
1356          signal: "elm,state,disabled";
1357          source: "elm";
1358          action: STATE_SET "disabled" 0.0;
1359          target: "elm.text";
1360       }
1361       program { name: "enable";
1362          signal: "elm,state,enabled";
1363          source: "elm";
1364          action: STATE_SET "default" 0.0;
1365          target: "elm.text";
1366       }
1367       program { name: "gdisable";
1368          signal: "elm,guide,disabled";
1369          source: "elm";
1370          action: STATE_SET "hidden" 0.0;
1371          target: "elm.guide";
1372       }
1373       program { name: "genable";
1374          signal: "elm,guide,enabled";
1375          source: "elm";
1376          action: STATE_SET "default" 0.0;
1377          target: "elm.guide";
1378       }
1379       program { name: "touch_snd";
1380          signal: "mouse,clicked,1";
1381          source: "elm.text";
1382          action: PLAY_SAMPLE "touch_sound" 1.0;
1383       }
1384    }
1385 }
1386
1387 group { name: "elm/entry/base-noedit/default";
1388    data.item: "default_font_size" "24";
1389    data.item: "min_font_size" "8";
1390    data.item: "max_font_size" "60";
1391    data {
1392       item: context_menu_orientation "horizontal";
1393    }
1394    parts {
1395       part { name: "elm.guide";
1396          type: TEXTBLOCK;
1397          mouse_events: 0;
1398          scale: 1;
1399          description { state: "default" 0.0;
1400             rel1.to: "elm.text";
1401             rel2.to: "elm.text";
1402             text {
1403                style: "entry_textblock_guide_style";
1404                min: 0 1;
1405                align: 0.0 0.0;
1406             }
1407          }
1408          description { state: "hidden" 0.0;
1409             inherit: "default" 0.0;
1410             visible: 0;
1411          }
1412       }
1413       part { name: "elm.text";
1414          type: TEXTBLOCK;
1415          mouse_events: 1;
1416          scale: 1;
1417          entry_mode: PLAIN;
1418          select_mode: BLOCK_HANDLE;
1419          //cursor_mode: BEFORE;
1420          multiline: 1;
1421          source: "elm/entry/selection/default"; // selection under
1422          //source2: "X"; // selection over
1423          //source3: "X"; // cursor under
1424          source5: "elm/entry/anchor/default"; // anchor under
1425          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1426          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1427          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1428          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1429          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1430          description { state: "default" 0.0;
1431             fixed: 1 0;
1432             text {
1433                style: "entry_textblock_style";
1434                min: 0 1;
1435                align: 0.0 0.0;
1436             }
1437          }
1438          description { state: "disabled" 0.0;
1439             inherit: "default" 0.0;
1440             text {
1441                style: "entry_textblock_disabled_style";
1442             }
1443          }
1444       }
1445    }
1446    programs {
1447       program { name: "focus";
1448          signal: "load";
1449          source: "";
1450          action: FOCUS_SET;
1451          target: "elm.text";
1452       }
1453       program { name: "disable";
1454          signal: "elm,state,disabled";
1455          source: "elm";
1456          action: STATE_SET "disabled" 0.0;
1457          target: "elm.text";
1458       }
1459       program { name: "enable";
1460          signal: "elm,state,enabled";
1461          source: "elm";
1462          action: STATE_SET "default" 0.0;
1463          target: "elm.text";
1464       }
1465       program { name: "gdisable";
1466          signal: "elm,guide,disabled";
1467          source: "elm";
1468          action: STATE_SET "hidden" 0.0;
1469          target: "elm.guide";
1470       }
1471       program { name: "genable";
1472          signal: "elm,guide,enabled";
1473          source: "elm";
1474          action: STATE_SET "default" 0.0;
1475          target: "elm.guide";
1476       }
1477       program { name: "touch_snd";
1478          signal: "mouse,clicked,1";
1479          source: "elm.text";
1480          action: PLAY_SAMPLE "touch_sound" 1.0;
1481       }
1482    }
1483 }
1484
1485    group { name: "elm/entry/base-noedit-charwrap/default";
1486       data.item: "default_font_size" "24";
1487       data.item: "min_font_size" "8";
1488       data.item: "max_font_size" "60";
1489       data {
1490          item: context_menu_orientation "horizontal";
1491       }
1492       parts {
1493          part { name: "elm.guide";
1494             type: TEXTBLOCK;
1495             mouse_events: 0;
1496             scale: 1;
1497             description { state: "default" 0.0;
1498                rel1.to: "elm.text";
1499                rel2.to: "elm.text";
1500                text {
1501                   style: "entry_textblock_char_wrap_guide_style";
1502                   min: 0 1;
1503                   align: 0.0 0.0;
1504                }
1505             }
1506             description { state: "hidden" 0.0;
1507                inherit: "default" 0.0;
1508                visible: 0;
1509             }
1510          }
1511          part { name: "elm.text";
1512             type: TEXTBLOCK;
1513             mouse_events: 1;
1514             scale: 1;
1515             entry_mode: PLAIN;
1516             select_mode: BLOCK_HANDLE;
1517             //cursor_mode: BEFORE;
1518             multiline: 1;
1519             source: "elm/entry/selection/default"; // selection under
1520             //source2: "X"; // selection over
1521             //source3: "X"; // cursor under
1522             source5: "elm/entry/anchor/default"; // anchor under
1523             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1524             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1525             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1526             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1527             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1528             description { state: "default" 0.0;
1529                fixed: 1 0;
1530                text {
1531                   style: "entry_textblock_char_wrap_style";
1532                   min: 0 1;
1533                align: 0.0 0.0;
1534                }
1535             }
1536             description { state: "disabled" 0.0;
1537                inherit: "default" 0.0;
1538                text {
1539                   style: "entry_textblock_char_wrap_disabled_style";
1540                }
1541             }
1542          }
1543       }
1544       programs {
1545          program { name: "focus";
1546            signal: "load";
1547                source: "";
1548                action: FOCUS_SET;
1549                target: "elm.text";
1550             }
1551             program { name: "disable";
1552                signal: "elm,state,disabled";
1553                source: "elm";
1554                action: STATE_SET "disabled" 0.0;
1555                target: "elm.text";
1556             }
1557             program { name: "enable";
1558                signal: "elm,state,enabled";
1559                source: "elm";
1560                action: STATE_SET "default" 0.0;
1561                target: "elm.text";
1562             }
1563         program { name: "gdisable";
1564            signal: "elm,guide,disabled";
1565            source: "elm";
1566            action: STATE_SET "hidden" 0.0;
1567            target: "elm.guide";
1568         }
1569         program { name: "genable";
1570            signal: "elm,guide,enabled";
1571            source: "elm";
1572            action: STATE_SET "default" 0.0;
1573            target: "elm.guide";
1574         }
1575         program { name: "touch_snd";
1576            signal: "mouse,clicked,1";
1577            source: "elm.text";
1578            action: PLAY_SAMPLE "touch_sound" 1.0;
1579         }
1580       }
1581    }
1582
1583    group { name: "elm/entry/base-nowrap-noedit/default";
1584       data.item: "default_font_size" "24";
1585       data.item: "min_font_size" "8";
1586       data.item: "max_font_size" "60";
1587       data {
1588          item: context_menu_orientation "horizontal";
1589       }
1590       parts {
1591          part { name: "elm.guide";
1592             type: TEXTBLOCK;
1593             mouse_events: 0;
1594             scale: 1;
1595             description { state: "default" 0.0;
1596                rel1.to: "elm.text";
1597                rel2.to: "elm.text";
1598                text {
1599                   style: "entry_textblock_guide_style";
1600                   min: 0 1;
1601                   align: 0.0 0.0;
1602                }
1603             }
1604             description { state: "hidden" 0.0;
1605                inherit: "default" 0.0;
1606                visible: 0;
1607             }
1608          }
1609          part { name: "elm.text";
1610             type: TEXTBLOCK;
1611             mouse_events: 1;
1612             scale: 1;
1613             entry_mode: PLAIN;
1614             select_mode: BLOCK_HANDLE;
1615             //cursor_mode: BEFORE;
1616             multiline: 1;
1617             source: "elm/entry/selection/default"; // selection under
1618             //source2: "X"; // selection over
1619             //source3: "X"; // cursor under
1620             source5: "elm/entry/anchor/default"; // anchor under
1621             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1622             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1623             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1624             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1625             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1626             description { state: "default" 0.0;
1627                text {
1628                   style: "entry_textblock_style";
1629                   min: 1 1;
1630                align: 0.0 0.0;
1631                }
1632             }
1633             description { state: "disabled" 0.0;
1634                inherit: "default" 0.0;
1635                text {
1636                   style: "entry_textblock_disabled_style";
1637                }
1638             }
1639          }
1640       }
1641       programs {
1642          program { name: "focus";
1643             signal: "load";
1644             source: "";
1645             action: FOCUS_SET;
1646             target: "elm.text";
1647          }
1648          program { name: "disable";
1649             signal: "elm,state,disabled";
1650             source: "elm";
1651             action: STATE_SET "disabled" 0.0;
1652             target: "elm.text";
1653          }
1654          program { name: "enable";
1655             signal: "elm,state,enabled";
1656             source: "elm";
1657             action: STATE_SET "default" 0.0;
1658             target: "elm.text";
1659          }
1660          program { name: "gdisable";
1661             signal: "elm,guide,disabled";
1662             source: "elm";
1663             action: STATE_SET "hidden" 0.0;
1664             target: "elm.guide";
1665          }
1666          program { name: "genable";
1667             signal: "elm,guide,enabled";
1668             source: "elm";
1669             action: STATE_SET "default" 0.0;
1670             target: "elm.guide";
1671          }
1672          program { name: "touch_snd";
1673             signal: "mouse,clicked,1";
1674             source: "elm.text";
1675             action: PLAY_SAMPLE "touch_sound" 1.0;
1676          }
1677       }
1678    }
1679
1680   group { name: "elm/entry/base-password/default";
1681       data.item: "default_font_size" "24";
1682       data.item: "min_font_size" "8";
1683       data.item: "max_font_size" "60";
1684       data {
1685          item: context_menu_orientation "horizontal";
1686       }
1687       parts {
1688          part { name: "elm.guide";
1689             type: TEXTBLOCK;
1690             mouse_events: 0;
1691             scale: 1;
1692             description { state: "default" 0.0;
1693                rel1.to: "elm.text";
1694                rel2.to: "elm.text";
1695                text {
1696                   style: "editfield_single_textblock_guide_style";
1697                   min: 0 1;
1698                   max: 0 1;
1699                }
1700             }
1701             description { state: "hidden" 0.0;
1702                inherit: "default" 0.0;
1703                visible: 0;
1704             }
1705          }
1706          part { name: "elm.text";
1707             type: TEXTBLOCK;
1708             mouse_events: 1;
1709             scale: 1;
1710             entry_mode: PASSWORD;
1711             select_mode: BLOCK_HANDLE;
1712             //cursor_mode: BEFORE;
1713             multiline: 0;
1714             source: "elm/entry/selection/default"; // selection under
1715             //source2: "X"; // selection over
1716             //source3: "X"; // cursor under
1717             source4: "elm/entry/cursor/default"; // cursorover
1718             source5: "elm/entry/anchor/default"; // anchor under
1719             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1720             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1721             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1722             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1723             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1724             description { state: "default" 0.0;
1725                text {
1726                   style: "entry_single_textblock_style";
1727                   repch: "*";
1728                   min: 1 1;
1729                   max: 0 1;
1730                }
1731                ENTRY_TEXTBLOCK_DEFAULT_REL
1732             }
1733             description { state: "disabled" 0.0;
1734                inherit: "default" 0.0;
1735                text {
1736                   style: "entry_single_textblock_disabled_style";
1737                }
1738             }
1739          }
1740          ENTRY_SWALLOW_PARTS
1741       }
1742       ENTRY_SWALLOW_SCRIPT_PUBLIC
1743       programs {
1744          program { name: "focus";
1745             signal: "load";
1746             source: "";
1747             action: FOCUS_SET;
1748             target: "elm.text";
1749          }
1750          program { name: "disable";
1751             signal: "elm,state,disabled";
1752             source: "elm";
1753             action: STATE_SET "disabled" 0.0;
1754             target: "elm.text";
1755          }
1756          program { name: "enable";
1757             signal: "elm,state,enabled";
1758             source: "elm";
1759             action: STATE_SET "default" 0.0;
1760             target: "elm.text";
1761          }
1762          program { name: "gdisable";
1763             signal: "elm,guide,disabled";
1764             source: "elm";
1765             action: STATE_SET "hidden" 0.0;
1766             target: "elm.guide";
1767          }
1768          program { name: "genable";
1769             signal: "elm,guide,enabled";
1770             source: "elm";
1771             action: STATE_SET "default" 0.0;
1772             target: "elm.guide";
1773          }
1774          program { name: "touch_snd";
1775             signal: "mouse,clicked,1";
1776             source: "elm.text";
1777             action: PLAY_SAMPLE "touch_sound" 1.0;
1778          }
1779          ENTRY_SWALLOW_PROGRAMS
1780       }
1781    }
1782
1783 group { name: "elm/entry/base-password/popup";
1784    data.item: "default_font_size" "24";
1785    data.item: "min_font_size" "8";
1786    data.item: "max_font_size" "60";
1787    data {
1788       item: context_menu_orientation "horizontal";
1789    }
1790    styles
1791    {
1792       style { name: "entry_single_textblock_popup_style";
1793          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" align=center wrap=mixed ellipsis=1.0 text_class=entry";
1794          tag:  "br" "\n";
1795          tag:  "ps" "ps";
1796          tag:  "tab" "\t";
1797          tag:  "em" "+ font=Tizen:style=Oblique";
1798          tag:  "b" "+ font=Tizen:style=Bold";
1799          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1800          tag:  "hilight" "+ font=Tizen:style=Bold";
1801          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1802          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
1803          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1804          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1805          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1806          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1807       }
1808       style { name: "entry_single_textblock_disabled_popup_style";
1809          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 align=center wrap=mixed ellipsis=1.0 text_class=entry";
1810          tag:  "br" "\n";
1811          tag:  "ps" "ps";
1812          tag:  "tab" "\t";
1813          tag:  "em" "+ font=Tizen:style=Oblique";
1814          tag:  "b" "+ font=Tizen:style=Bold";
1815          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
1816          tag:  "hilight" "+ font=Tizen:style=Bold";
1817          tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1818          tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
1819          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1820          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1821          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1822          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
1823       }
1824       style { name: "entry_single_textblock_popup_guide_style";
1825          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_GUIDE_TEXT_COLOR_INC" align=center wrap=mixed ellipsis=1.0 text_class=entry";
1826          tag:  "br" "\n";
1827          tag:  "ps" "ps";
1828          tag:  "tab" "\t";
1829          tag:  "em" "+ font=Tizen:style=Oblique";
1830          tag:  "b" "+ font=Tizen:style=Bold";
1831          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
1832          tag:  "hilight" "+ font=Tizen:style=Bold";
1833       }
1834    }
1835    parts {
1836       part { name: "elm.guide";
1837          type: TEXTBLOCK;
1838          mouse_events: 0;
1839          scale: 1;
1840          description { state: "default" 0.0;
1841             rel1.to: "elm.text";
1842             rel2.to: "elm.text";
1843             text {
1844                style: "entry_single_textblock_popup_guide_style";
1845                min: 0 1;
1846                max: 0 1;
1847             }
1848          }
1849          description { state: "hidden" 0.0;
1850             inherit: "default" 0.0;
1851             visible: 0;
1852          }
1853       }
1854       part { name: "elm.text";
1855          type: TEXTBLOCK;
1856          mouse_events: 1;
1857          scale: 1;
1858          entry_mode: PASSWORD;
1859          select_mode: BLOCK_HANDLE;
1860          //cursor_mode: BEFORE;
1861          multiline: 0;
1862          source: "elm/entry/selection/default"; // selection under
1863          //source2: "X"; // selection over
1864          //source3: "X"; // cursor under
1865          source4: "elm/entry/cursor/default"; // cursorover
1866          source5: "elm/entry/anchor/default"; // anchor under
1867          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
1868          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
1869          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
1870          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
1871          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
1872          description { state: "default" 0.0;
1873             text {
1874                style: "entry_single_textblock_popup_style";
1875                repch: "*";
1876                min: 1 1;
1877                max: 0 1;
1878             }
1879             ENTRY_TEXTBLOCK_DEFAULT_REL
1880          }
1881          description { state: "disabled" 0.0;
1882             inherit: "default" 0.0;
1883             text {
1884                style: "entry_single_textblock_disabled_popup_style";
1885             }
1886          }
1887       }
1888       ENTRY_SWALLOW_PARTS
1889    }
1890    ENTRY_SWALLOW_SCRIPT_PUBLIC
1891    programs {
1892       program { name: "focus";
1893          signal: "load";
1894          source: "";
1895          action: FOCUS_SET;
1896          target: "elm.text";
1897       }
1898       program { name: "disable";
1899          signal: "elm,state,disabled";
1900          source: "elm";
1901          action: STATE_SET "disabled" 0.0;
1902          target: "elm.text";
1903       }
1904       program { name: "enable";
1905          signal: "elm,state,enabled";
1906          source: "elm";
1907          action: STATE_SET "default" 0.0;
1908          target: "elm.text";
1909       }
1910       program { name: "gdisable";
1911          signal: "elm,guide,disabled";
1912          source: "elm";
1913          action: STATE_SET "hidden" 0.0;
1914          target: "elm.guide";
1915       }
1916       program { name: "genable";
1917          signal: "elm,guide,enabled";
1918          source: "elm";
1919          action: STATE_SET "default" 0.0;
1920          target: "elm.guide";
1921       }
1922       program { name: "touch_snd";
1923          signal: "mouse,clicked,1";
1924          source: "elm.text";
1925          action: PLAY_SAMPLE "touch_sound" 1.0;
1926       }
1927       ENTRY_SWALLOW_PROGRAMS
1928    }
1929 }
1930
1931         group { name: "elm/entry/cursor/default";
1932                 parts {
1933                         part { name: "clip2";
1934                                 type: RECT;
1935                                 mouse_events: 0;
1936                                 scale: 1;
1937                                 description { state: "default" 0.0;
1938                                         rel1.to: "clip";
1939                                         rel2.to: "clip";
1940                                 visible: 0;
1941                                 }
1942                                 description { state: "focused" 0.0;
1943                                         inherit: "default" 0.0;
1944                                         visible: 1;
1945                                 }
1946                         }
1947                         part { name: "clip";
1948                                 type: RECT;
1949                                 mouse_events: 0;
1950                                 scale: 1;
1951                                 clip_to: "clip2";
1952                                 description { state: "default" 0.0;
1953                                         rel1.offset: -10 0;
1954                                         rel2.offset: 9 9;
1955                                 }
1956                                 description { state: "hidden" 0.0;
1957                                         inherit: "default" 0.0;
1958                                         visible: 0;
1959                                 }
1960                         }
1961                         part { name: "base";
1962                                 type: RECT;
1963                                 mouse_events: 0;
1964                                 scale: 1;
1965                                 clip_to: "clip";
1966                                 description { state: "default" 0.0;
1967                                         min: 2 2;
1968                                         align: 0.5 1.0;
1969                                         color: 0 0 0 0;
1970                                 }
1971                         }
1972
1973                         part { name: "glow";
1974                                 type: RECT;
1975                                 mouse_events: 0;
1976                                 scale: 1;
1977                                 clip_to: "clip2";
1978                                 description { state: "default" 0.0;
1979                                         min: 3 0;
1980                                         fixed: 1 0;
1981                                         align: 0.5 0.5;
1982                                         rel1 {
1983                                                 relative: 0.0  0.0;
1984                                                 offset: 0 -2;
1985                                         }
1986                                         rel2 {
1987                                                 relative: 0.0  1.0;
1988                                                 offset: 0 -2;
1989                                         }
1990                                         color: ENTRY_CURSOR_COLOR_INC;
1991                                 }
1992                                 description { state: "hidden" 0.0;
1993                                         inherit: "default" 0.0;
1994                                         color: 0 0 0 0;
1995                                 }
1996                         }
1997                 }
1998                 programs {
1999                         program { name: "show";
2000                                 action: STATE_SET "hidden" 0.0;
2001                                 in: 0.6 0.0;
2002                                 target: "glow";
2003                                 after: "show4";
2004                         }
2005                         program { name: "show4";
2006                                 action: STATE_SET "default" 0.0;
2007                                 in: 0.6 0.0;
2008                                 target: "glow";
2009                                 after: "show";
2010                         }
2011                         program { name: "focused";
2012                                 signal: "elm,action,focus";
2013                                 source: "elm";
2014                                 action: STATE_SET "focused" 0.0;
2015                                 target: "clip2";
2016                                 after: "show4";
2017                         }
2018                         program { name: "unfocused";
2019                                 signal: "elm,action,unfocus";
2020                                 source: "elm";
2021                                 action: STATE_SET "default" 0.0;
2022                                 target: "clip2";
2023                                 after: "stop_glow";
2024                         }
2025                         program { name: "stop_glow";
2026                         action: ACTION_STOP;
2027                                 target: "show";
2028                                 target: "show4";
2029                         }
2030                 }
2031         }
2032
2033
2034         group { name: "elm/entry/selection/default";
2035                 parts {
2036                         part { name: "bg";
2037                                 type: RECT;
2038                                 scale: 1;
2039                                 mouse_events: 0;
2040                                 description { state: "default" 0.0;
2041                                         color: ENTRY_SELECTION_BG_COLOR;
2042                                 }
2043                         }
2044                 }
2045         }
2046
2047         group { name: "elm/entry/selection/block_handle_left";
2048                 data.item: "height" "79";
2049                 data.item: "gap" "32";
2050                 images {
2051                   image: "copy&paste_Handler_left.png" COMP;
2052                   image: "copy&paste_Handler_left_01.png" COMP;
2053                   image: "copy&paste_Handler_left_reverse.png" COMP;
2054                   image: "copy&paste_Handler_left_01_reverse.png" COMP;
2055                 }
2056                 parts {
2057                         part { name: "edge";
2058                                 type: RECT;
2059                                 scale: 1;
2060                                 mouse_events: 0;
2061                                 description { state: "default" 0.0;
2062                                         min: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2063                                         max: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2064                                         color: 0 0 0 0;
2065                                         visible: 0;
2066                                         align: 0 0;
2067                                 }
2068                         }
2069                         part { name: "handle";
2070                                 mouse_events: 1;
2071                                 scale: 1;
2072                                 description { state: "default" 0.0;
2073                                         visible: 0;
2074                                         fixed: 1 1;
2075                                         align: 1 0;
2076                                         rel2 { relative: 1 1; to_x: "edge"; }
2077                                         min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
2078                                         max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
2079                                         image {
2080                                                 normal: "copy&paste_Handler_left_01.png";
2081                                                 border: 0 0 0 0;
2082                                         }
2083                                         image.middle: SOLID;
2084                                         fill.smooth: 0;
2085                                 }
2086                                 description { state: "show" 0.0;
2087                                         inherit: "default" 0.0;
2088                                         visible: 1;
2089                                 }
2090                                 description { state: "top" 0.0;
2091                                         inherit: "default" 0.0;
2092                                         visible: 1;
2093                                         align: 1 1;
2094                                         rel2 { relative: 1 1; to_x: "edge"; }
2095                                         image {
2096                                                 normal: "copy&paste_Handler_left.png";
2097                                         }
2098                                 }
2099                                 description { state: "bottom_reversed" 0.0;
2100                                         inherit: "default" 0.0;
2101                                         visible: 1;
2102                                         align: 0 0;
2103                                         rel1 { relative: 0 0; to_x: "edge"; }
2104                                         image {
2105                                                 normal: "copy&paste_Handler_left_01_reverse.png";
2106                                         }
2107                                 }
2108                                 description { state: "top_reversed" 0.0;
2109                                         inherit: "default" 0.0;
2110                                         visible: 1;
2111                                         align: 0 1;
2112                                         rel1 { relative: 0 0; to_x: "edge"; }
2113                                         image {
2114                                                 normal: "copy&paste_Handler_left_reverse.png";
2115                                         }
2116                                 }
2117                         }
2118                 }
2119                 script {
2120                         public handler_ontop;
2121                         public handler_focused;
2122                 }
2123                 programs {
2124                         program { name: "focused";
2125                                 signal: "edje,focus,in";
2126                                 source: "edje";
2127                                 script {
2128                                         set_int(handler_focused, 1);
2129                                 }
2130                         }
2131                         program { name: "unfocused";
2132                                 signal: "edje,focus,out";
2133                                 source: "edje";
2134                                 script {
2135                                         set_int(handler_focused, 0);
2136                                         set_state(PART:"handle", "default", 0.0);
2137                                 }
2138                         }
2139                         program { name: "bottom_reversed";
2140                                 signal: "elm,state,bottom,reversed";
2141                                 source: "elm";
2142                                 script {
2143                                         set_state(PART:"handle", "bottom_reversed", 0.0);
2144                                 }
2145                         }
2146                         program { name: "top_reversed";
2147                                 signal: "elm,state,top,reversed";
2148                                 source: "elm";
2149                                 script {
2150                                         set_state(PART:"handle", "top_reversed", 0.0);
2151                                 }
2152                         }
2153                         program { name: "top";
2154                                 signal: "elm,state,top";
2155                                 source: "elm";
2156                                 script {
2157                                         new focused;
2158                                         focused = get_int(handler_focused);
2159                                         set_int(handler_ontop, 1);
2160                                         if (focused)
2161                                         {
2162                                                 set_state(PART:"handle", "top", 0.0);
2163                                         }
2164                                         else
2165                                         {
2166                                                 set_state(PART:"handle", "default", 0.0);
2167                                         }
2168                                 }
2169                         }
2170                         program { name: "bottom";
2171                                 signal: "elm,state,bottom";
2172                                 source: "elm";
2173                                 script {
2174                                         new focused;
2175                                         focused = get_int(handler_focused);
2176                                         set_int(handler_ontop, 0);
2177                                         if (focused)
2178                                         {
2179                                                 set_state(PART:"handle", "show", 0.0);
2180                                         }
2181                                         else
2182                                         {
2183                                                 set_state(PART:"handle", "default", 0.0);
2184                                         }
2185                                 }
2186                         }
2187                 }
2188         }
2189
2190         group { name: "elm/entry/selection/block_handle_right";
2191                 data.item: "height" "79";
2192                 data.item: "gap" "32";
2193                 images {
2194                   image: "copy&paste_Handler_right.png" COMP;
2195                   image: "copy&paste_Handler_right_01.png" COMP;
2196                   image: "copy&paste_Handler_right_reverse.png" COMP;
2197                   image: "copy&paste_Handler_right_01_reverse.png" COMP;
2198                 }
2199                 parts {
2200                         part { name: "edge";
2201                                 type: RECT;
2202                                 scale: 1;
2203                                 mouse_events: 0;
2204                                 description { state: "default" 0.0;
2205                                         min: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2206                                         max: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2207                                         color: 0 0 0 0;
2208                                         visible: 0;
2209                                         align: 0 0;
2210                                 }
2211                         }
2212                         part { name: "handle";
2213                                 mouse_events: 1;
2214                                 scale: 1;
2215                                 description { state: "default" 0.0;
2216                                         visible: 0;
2217                                         fixed: 1 1;
2218                                         align: 0 0;
2219                                         min: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
2220                                         max: ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE;
2221                                         image {
2222                                                 normal: "copy&paste_Handler_right.png";
2223                                                 border: 0 0 0 0;
2224                                         }
2225                                         image.middle: SOLID;
2226                                         fill.smooth: 0;
2227                                 }
2228                                 description { state: "show" 0.0;
2229                                         inherit: "default" 0.0;
2230                                         visible: 1;
2231                                 }
2232                                 description { state: "top" 0.0;
2233                                         inherit: "default" 0.0;
2234                                         visible: 1;
2235                                         align: 0 1;
2236                                         image {
2237                                                 normal: "copy&paste_Handler_right_01.png";
2238                                         }
2239                                 }
2240                                 description { state: "bottom_reversed" 0.0;
2241                                         inherit: "default" 0.0;
2242                                         visible: 1;
2243                                         align: 1 0;
2244                                         rel2 { relative: 1.0 0.0; to_x: "edge"; }
2245                                         image {
2246                                                 normal: "copy&paste_Handler_right_reverse.png";
2247                                         }
2248                                 }
2249                                 description { state: "top_reversed" 0.0;
2250                                         inherit: "default" 0.0;
2251                                         visible: 1;
2252                                         align: 1 1;
2253                                         rel2 { relative: 1.0 0.0; to_x: "edge"; }
2254                                         image {
2255                                                 normal: "copy&paste_Handler_right_01_reverse.png";
2256                                         }
2257                                 }
2258                         }
2259                 }
2260                 script {
2261                         public handler_ontop;
2262                         public handler_focused;
2263                 }
2264                 programs {
2265                         program { name: "focused";
2266                                 signal: "edje,focus,in";
2267                                 source: "edje";
2268                                 script {
2269                                         set_int(handler_focused, 1);
2270                                 }
2271                         }
2272                         program { name: "unfocused";
2273                                 signal: "edje,focus,out";
2274                                 source: "edje";
2275                                 script {
2276                                         set_int(handler_focused, 0);
2277                                         set_state(PART:"handle", "default", 0.0);
2278                                 }
2279                         }
2280                         program { name: "top";
2281                                 signal: "elm,state,top";
2282                                 source: "elm";
2283                                 script {
2284                                         new focused;
2285                                         focused = get_int(handler_focused);
2286                                         set_int(handler_ontop, 1);
2287                                         if (focused)
2288                                                 {
2289                                                         set_state(PART:"handle", "top", 0.0);
2290                                                 }
2291                                         else
2292                                                 {
2293                                                         set_state(PART:"handle", "default", 0.0);
2294                                         }
2295                                 }
2296                         }
2297                         program { name: "bottom";
2298                                 signal: "elm,state,bottom";
2299                                 source: "elm";
2300                                 script {
2301                                         new focused;
2302                                         focused = get_int(handler_focused);
2303                                         set_int(handler_ontop, 0);
2304                                         if (focused)
2305                                                 {
2306                                                         set_state(PART:"handle", "show", 0.0);
2307                                                 }
2308                                         else
2309                                                 {
2310                                                         set_state(PART:"handle", "default", 0.0);
2311                                         }
2312                                 }
2313                         }
2314                         program { name: "bottom_reversed";
2315                                 signal: "elm,state,bottom,reversed";
2316                                 source: "elm";
2317                                 script {
2318                                         set_state(PART:"handle", "bottom_reversed", 0.0);
2319                                 }
2320                         }
2321                         program { name: "top_reversed";
2322                                 signal: "elm,state,top,reversed";
2323                                 source: "elm";
2324                                 script {
2325                                         set_state(PART:"handle", "top_reversed", 0.0);
2326                                 }
2327                         }
2328                 }
2329         }
2330
2331         group { name: "elm/entry/cursor_handle/default";
2332                 images {
2333                   image: "copy&paste_Handler_center.png" COMP;
2334                   image: "copy&paste_Handler_center_reverse.png" COMP;
2335                 }
2336                 parts {
2337                         part { name: "handle";
2338                                 scale: 1;
2339                                 mouse_events: 1;
2340                                 description { state: "default" 0.0;
2341                                         max: 59 86;
2342                                         min: 59 86;
2343                                         align: 0 0;
2344                                         visible: 0;
2345                                         align: 0.5 0;
2346                                         image {
2347                                                 normal: "copy&paste_Handler_center.png";
2348                                                 border: 0 0 0 0;
2349                                         }
2350                                         image.middle: SOLID;
2351                                         fill.smooth: 0;
2352                                 }
2353                                 description { state: "show" 0.0;
2354                                         inherit: "default" 0.0;
2355                                         visible: 1;
2356                                 }
2357                                 description { state: "top" 0.0;
2358                                         inherit: "default" 0.0;
2359                                         visible: 1;
2360                                         align: 0.5 1.0;
2361                                         image {
2362                                                 normal: "copy&paste_Handler_center_reverse.png";
2363                                                 border: 0 0 0 0;
2364                                         }
2365                                 }
2366                         }
2367                 }
2368                 script {
2369                         public on_top;
2370                 }
2371                 programs {
2372                         program { name: "focused";
2373                                 signal: "edje,focus,in";
2374                                 source: "edje";
2375                                 script {
2376                                         new on_top_val = get_int(on_top);
2377                                         if (on_top_val)
2378                                         {
2379                                                 set_state(PART:"handle", "top", 0.0);
2380                                         }
2381                                         else
2382                                         {
2383                                                 set_state(PART:"handle", "show", 0.0);
2384                                         }
2385                                 }
2386                         }
2387                         program { name: "unfocused";
2388                                 signal: "edje,focus,out";
2389                                 source: "edje";
2390                                 script {
2391                                         set_state(PART:"handle", "default", 0.0);
2392                                 }
2393                         }
2394                         program { name: "show";
2395                                 signal: "edje,cursor,handle,show";
2396                                 source: "edje";
2397                                 script {
2398                                         set_int(on_top, 0);
2399                                         set_state(PART:"handle", "show", 0.0);
2400                                 }
2401                         }
2402                         program { name: "hide";
2403                                 signal: "edje,cursor,handle,hide";
2404                                 source: "edje";
2405                                 script {
2406                                         set_state(PART:"handle", "default", 0.0);
2407                                 }
2408                         }
2409                         program { name: "top";
2410                                 signal: "edje,cursor,handle,top";
2411                                 source: "edje";
2412                                 script {
2413                                         set_int(on_top, 1);
2414                                         set_state(PART:"handle", "top", 0.0);
2415                                 }
2416                         }
2417                 }
2418         }
2419
2420         group { name: "elm/entry/selection/block_handle_edge_left";
2421                 parts {
2422                         part { name: "align";
2423                                 type: RECT;
2424                                 scale: 1;
2425                                 mouse_events: 0;
2426                                 description { state: "default" 0.0;
2427                                         min: 0 0;
2428                                         max: 0 0;
2429                                         color: 0 0 0 0;
2430                                         visible: 0;
2431                                         align: 0 0;
2432                                 }
2433                         }
2434                         part { name: "bg";
2435                                 type: RECT;
2436                                 scale: 1;
2437                                 mouse_events: 0;
2438                                 description { state: "default" 0.0;
2439                                         color: ENTRY_SELECTION_EDGE_COLOR;
2440                                         min: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2441                                         max: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH -1;
2442                                         rel2 { relative: 0 1; to_x: "align"; }
2443                                         align: 0 0;
2444                                         visible: 0;
2445                                 }
2446                                 description { state: "show" 0.0;
2447                                         inherit: "default" 0.0;
2448                                         visible: 1;
2449                                 }
2450                         }
2451                 }
2452                 programs {
2453                         program { name: "show";
2454                                 signal: "edje,focus,in";
2455                                 source: "edje";
2456                                 script {
2457                                         set_state(PART:"bg", "show", 0.0);
2458                                 }
2459                         }
2460                         program { name: "hide";
2461                                 signal: "edje,focus,out";
2462                                 source: "edje";
2463                                 script {
2464                                         set_state(PART:"bg", "default", 0.0);
2465                                 }
2466                         }
2467                 }
2468         }
2469
2470         group { name: "elm/entry/selection/block_handle_edge_right";
2471                 parts {
2472                         part { name: "bg";
2473                                 type: RECT;
2474                                 scale: 1;
2475                                 mouse_events: 0;
2476                                 description { state: "default" 0.0;
2477                                         color: ENTRY_SELECTION_EDGE_COLOR;
2478                                         min: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 0;
2479                                         max: ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH -1;
2480                                         visible: 0;
2481                                 }
2482                                 description { state: "show" 0.0;
2483                                         inherit: "default" 0.0;
2484                                         visible: 1;
2485                                 }
2486                         }
2487                 }
2488                 programs {
2489                         program { name: "show";
2490                                 signal: "edje,focus,in";
2491                                 source: "edje";
2492                                 script {
2493                                         set_state(PART:"bg", "show", 0.0);
2494                                 }
2495                         }
2496                         program { name: "hide";
2497                                 signal: "edje,focus,out";
2498                                 source: "edje";
2499                                 script {
2500                                         set_state(PART:"bg", "default", 0.0);
2501                                 }
2502                         }
2503                 }
2504         }
2505
2506         group { name: "elm/entry/anchor/default";
2507                 parts {
2508                         part { name: "bg";
2509                                 type: RECT;
2510                                 mouse_events: 0;
2511                                 description { state: "default" 0.0;
2512                                         color: 0 0 0 0;
2513                                 }
2514                         }
2515                 }
2516         }
2517
2518     group { name: "elm/entry/preedit/default";
2519         parts {
2520             part { name: "bg";
2521                 type: RECT;
2522                 mouse_events: 0;
2523                 description { state: "default" 0.0;
2524                     color: 128 128 128 255;
2525                 }
2526             }
2527         }
2528    }
2529
2530
2531 #define MAGNIFIER_SCALE 1.5
2532
2533         group { name: "elm/entry/magnifier/fixed-size";
2534                 data.item: "height" MAGNIFIER_HEIGHT_FIXED;
2535                 data.item: "scale" MAGNIFIER_SCALE;
2536                 data.item: "arrow" 24;
2537                 images {
2538                   image: "copy&paste_Magnifier_left.png" COMP;
2539                   image: "copy&paste_Magnifier_middle.png" COMP;
2540                   image: "copy&paste_Magnifier_right.png" COMP;
2541                 }
2542                 parts {
2543                         part { name: "bg";
2544                                 mouse_events: 0;
2545                                 scale: 1;
2546                                 type: RECT;
2547                                 description { state: "default" 0.0;
2548                                         fixed: 1 1;
2549                                         min: MAGNIFIER_WIDTH_FIXED MAGNIFIER_HEIGHT_FIXED;
2550                                         align: 0.5 0.0;
2551                                         visible: 1;
2552                                         color: 0 0 0 0;
2553                                 }
2554                         }
2555                         part { name: "bg_middle_left";
2556                                 mouse_events: 0;
2557                                 scale: 1;
2558                                 type: RECT;
2559                                 description { state: "default" 0.0;
2560                                         min: 20 134;
2561                                         max: 20 -1;
2562                                         align: 1.0 0.0;
2563                                         rel2 { relative: 0.5 1.0; to: "bg"; }
2564                                         visible: 1;
2565                                         color: 0 0 0 0;
2566                                 }
2567                         }
2568                         part { name: "bg_middle_right";
2569                                 mouse_events: 0;
2570                                 scale: 1;
2571                                 type: RECT;
2572                                 description { state: "default" 0.0;
2573                                         min: 20 134;
2574                                         max: 20 -1;
2575                                         align: 0.0 0.0;
2576                                         rel1 { relative: 0.5 0.0; to: "bg"; }
2577                                         visible: 1;
2578                                         color: 0 0 0 0;
2579                                 }
2580                         }
2581                         part { name: "bg_left";
2582                                 mouse_events: 0;
2583                                 scale: 1;
2584                                 description { state: "default" 0.0;
2585                                         fixed: 1 1;
2586                                         min: 136 134;
2587                                         align: 0.0 0.0;
2588                                         rel1 { relative: 0.0 0.0; to: "bg"; }
2589                                         rel2 { relative: 0.0 1.0; to: "bg_middle_left"; }
2590                                         image {
2591                                                 normal: "copy&paste_Magnifier_left.png";
2592                                                 border: 21 1 20 44;
2593                                         }
2594                                         image.middle: 1;
2595                                         fill.smooth: 0;
2596                                 }
2597                         }
2598                         part { name: "bg_middle";
2599                                 mouse_events: 0;
2600                                 scale: 1;
2601                                 description { state: "default" 0.0;
2602                                         align: 0.0 0.0;
2603                                         rel1 { relative: 0.0 0.0; to: "bg_middle_left"; }
2604                                         rel2 { relative: 1.0 1.0; to: "bg_middle_right"; }
2605                                         image {
2606                                                 normal: "copy&paste_Magnifier_middle.png";
2607                                                 border: 1 38 20 44;
2608                                         }
2609                                         image.middle: 1;
2610                                         fill.smooth: 0;
2611                                 }
2612                         }
2613                         part { name: "bg_right";
2614                                 mouse_events: 0;
2615                                 scale: 1;
2616                                 description { state: "default" 0.0;
2617                                         fixed: 1 1;
2618                                         min: 136 134;
2619                                         rel1 { relative: 1.0 0.0; to: "bg_middle_right"; }
2620                                         rel2.to: "bg";
2621                                         image {
2622                                                 normal: "copy&paste_Magnifier_right.png";
2623                                                 border: 1 21 20 44;
2624                                         }
2625                                         image.middle: 1;
2626                                         fill.smooth: 0;
2627                                 }
2628                         }
2629                         part { name: "swallow";
2630                                 type: SWALLOW;
2631                                 mouse_events: 0;
2632                                 scale: 1;
2633                                 description { state: "default" 0.0;
2634                                         fixed: 1 1;
2635                                         align: 0.0 0.0;
2636                                         rel1 {
2637                                                 to: "bg";
2638                                                 offset: 21-5 22-8; //need to update when image with rounded corners releases
2639                                         }
2640                                         rel2 {
2641                                                 to: "bg";
2642                                                 offset: -21+5 -44+10;
2643                                         }
2644                                 }
2645                         }
2646                 }
2647         }
2648
2649         group { name: "elm/entry/matchlist/default";
2650                 data.item: "max_height" "230";
2651                 parts {
2652                         part { name: "base";
2653                                 type: RECT;
2654                                 scale : 1;
2655                                 mouse_events: 1;
2656                                 repeat_events: 1;
2657                                 description { state: "default" 0.0;
2658                                         color: 0 0 0 0;
2659                                         rel1 {
2660                                                 relative: 0.0 0.0;
2661                                                 offset: 0 20;
2662                                         }
2663                                         rel2 {
2664                                                 relative: 1.0 1.0;
2665                                                 offset: 0 20;
2666                                         }
2667                                 }
2668                         }
2669                         part { name: "elm.swallow.content";
2670                                 type: SWALLOW;
2671                                 description { state: "default" 0.0;
2672                                         align: 0.0 0.0;
2673                                         rel1 {
2674                                                 to: "base";
2675                                         }
2676                                         rel2 {
2677                                                 to: "base";
2678                                         }
2679                                 }
2680                         }
2681                 }
2682         }
2683
2684 /* Entry's bubble style */
2685
2686 styles {
2687    style { 
2688       name: "entry_bubble_date_area_textblock_style";
2689       base: "font=Tizen:style=Roman font_size="ENTRY_BUBBLE_DATE_AREA_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_INC" left_margin=2 right_margin=2 wrap=mixed text_class=entry";
2690       tag:  "br" "\n";
2691       tag:  "ps" "ps";
2692       tag:  "tab" "\t";
2693       tag:  "em" "+ font=Tizen:style=Oblique";
2694       tag:  "b" "+ font=Tizen:style=Bold";
2695       tag:  "link" "+ color=#800 underline=on underline_color=#8008";
2696       tag:  "hilight" "+ font=Tizen:style=Bold";
2697       tag:  "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
2698       tag:  "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
2699       tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
2700       tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
2701       tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
2702       tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
2703    }
2704    style {
2705       name: "entry_bubble_sent_textblock_style";
2706       base: "font=Tizen:style=Roman style="ENTRY_BUBBLE_SENT_TEXT_SHADOW_STYLE" shadow_color="ENTRY_BUBBLE_SENT_TEXT_SHADOW_COLOR" font_size="ENTRY_BUBBLE_TEXT_SIZE" color="ENTRY_BUBBLE_SENT_TEXT_COLOR" left_margin=1 right_margin=2 wrap=mixed text_class=entry";
2707       tag:  "br" "\n";
2708       tag:  "ps" "ps";
2709       tag:  "tab" "\t";
2710       tag:  "em" "+ font=Tizen:style=Oblique";
2711       tag:  "b" "+ font=Tizen:style=Bold";
2712       tag:  "link" "+ color=#800 underline=on underline_color=#8008";
2713       tag:  "hilight" "+ font=Tizen:style=Bold";
2714    }
2715    style {
2716       name: "entry_bubble_receive_textblock_style";
2717       base: "font=Tizen:style=Roman style="ENTRY_BUBBLE_RECEV_TEXT_SHADOW_STYLE" shadow_color="ENTRY_BUBBLE_RECEV_TEXT_SHADOW_COLOR" font_size="ENTRY_BUBBLE_TEXT_SIZE" color="ENTRY_BUBBLE_RECEV_TEXT_COLOR" left_margin=1 right_margin=2 wrap=mixed text_class=entry";
2718       tag:  "br" "\n";
2719       tag:  "ps" "ps";
2720       tag:  "tab" "\t";
2721       tag:  "em" "+ font=Tizen:style=Oblique";
2722       tag:  "b" "+ font=Tizen:style=Bold";
2723       tag:  "link" "+ color=#800 underline=on underline_color=#8008";
2724       tag:  "hilight" "+ font=Tizen:style=Bold";
2725    }
2726 }
2727
2728    group { name: "elm/entry/base/readmessage";
2729       data.item: "default_font_size" "24";
2730       data.item: "min_font_size" "8";
2731       data.item: "max_font_size" "60";
2732       data {
2733          item: context_menu_orientation "horizontal";
2734       }
2735       parts {
2736          part {
2737             name: "elm.rect.left.pad";
2738             type: RECT;
2739             scale: 1;
2740             description {
2741                state: "default" 0.0;
2742                min: ENTRY_BUBBLE_EX_PAD 0;
2743                fixed: 1 0;
2744                align: 0.0 0.0;
2745                color: 0 0 0 0;
2746                rel2.relative: 0.0 1.0;
2747             }
2748          }
2749          part {
2750             name: "elm.rect.right.pad";
2751             type: RECT;
2752             scale: 1;
2753             description {
2754                state: "default" 0.0;
2755                min: ENTRY_BUBBLE_IX_PAD 0;
2756                fixed: 1 0;
2757                align: 0.0 0.0;
2758                color: 0 0 0 0;
2759                rel1 { relative: 1.0 0.0; to: "elm.text"; }
2760                rel2.to: "elm.text";
2761             }
2762          }
2763          part {
2764            name: "elm.rect.top.pad";
2765            type: RECT;
2766            scale: 1;
2767            description {
2768               state: "default" 0.0;
2769               min: 0 ENTRY_BUBBLE_Y_PAD;
2770               fixed: 0 1;
2771               align: 0.0 0.0;
2772               color: 0 0 0 0;
2773               rel2.relative: 1.0 0.0;
2774             }
2775          }
2776          part {
2777            name: "elm.rect.bottom.pad";
2778            type: RECT;
2779            scale: 1;
2780            description {
2781               state: "default" 0.0;
2782               min: 0 ENTRY_BUBBLE_Y_PAD;
2783               fixed: 0 1;
2784               align: 0.0 1.0;
2785               color: 0 0 0 0;
2786               rel1.relative: 0.0 1.0;
2787             }
2788          }
2789          part {
2790             name: "elm.image.bg";
2791             type: IMAGE;
2792             scale: 1;
2793             description {
2794                state: "default" 0.0;
2795                rel2.to_x: "elm.rect.right.pad";
2796                image {
2797                   normal: "00_messagebubble_bg_receive.png";
2798                   border: 1 20 13 20;
2799                   border_scale: 1;
2800                }
2801             }
2802          }
2803          part { name: "elm.text";
2804             type: TEXTBLOCK;
2805             mouse_events: 1;
2806             scale: 1;
2807             entry_mode: EDITABLE;
2808             select_mode: BLOCK_HANDLE;
2809             //cursor_mode: BEFORE;
2810             multiline: 1;
2811             source: "elm/entry/selection/default"; // selection under
2812             //source2: "X"; // selection over
2813             //source3: "X"; // cursor under
2814             source4: "elm/entry/cursor/default"; // cursorover
2815             source5: "elm/entry/anchor/default"; // anchor under
2816             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
2817             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
2818             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
2819             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
2820             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
2821 //          source6: "X"; // anchor over
2822             description { state: "default" 0.0;
2823                fixed: 1 0;
2824                align: 0.0 0.0;
2825                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
2826                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
2827                text {
2828                   style: "entry_textblock_style";
2829                   min: 0 1;
2830                   max: 1 0;
2831                }
2832             }
2833             description { state: "disabled" 0.0;
2834                inherit: "default" 0.0;
2835                text {
2836                   style: "entry_textblock_disabled_style";
2837                }
2838             }
2839          }
2840       }
2841       programs {
2842          program { name: "focus";
2843             signal: "load";
2844             source: "";
2845             action: FOCUS_SET;
2846             target: "elm.text";
2847          }
2848          program { name: "disable";
2849             signal: "elm,state,disabled";
2850             source: "elm";
2851             action: STATE_SET "disabled" 0.0;
2852             target: "elm.text";
2853          }
2854          program { name: "enable";
2855             signal: "elm,state,enabled";
2856             source: "elm";
2857             action: STATE_SET "default" 0.0;
2858             target: "elm.text";
2859          }
2860       }
2861    }
2862
2863    group { name: "elm/entry/base-noedit/readmessage";
2864       data.item: "default_font_size" "24";
2865       data.item: "min_font_size" "8";
2866       data.item: "max_font_size" "60";
2867       data {
2868          item: context_menu_orientation "horizontal";
2869       }
2870       parts {
2871          part {
2872             name: "elm.rect.left.pad";
2873                 type: RECT;
2874                 scale: 1;
2875                 description {
2876                    state: "default" 0.0;
2877                min: ENTRY_BUBBLE_EX_PAD 0;
2878                fixed: 1 0;
2879                    align: 0.0 0.0;
2880                color: 0 0 0 0;
2881                    rel2.relative: 0.0 1.0;
2882                }
2883                description {
2884                state: "callerid_on" 0.0;
2885                inherit: "default" 0.0;
2886                    min: ENTRY_BUBBLE_EX_CALLERID_PAD 0;
2887                }
2888          }
2889          part {
2890             name: "elm.rect.right.pad";
2891             type: RECT;
2892             scale: 1;
2893             description {
2894                state: "default" 0.0;
2895                min: ENTRY_BUBBLE_IX_PAD 0;
2896                fixed: 1 0;
2897                align: 0.0 0.0;
2898                color: 0 0 0 0;
2899                rel1 { relative: 1.0 0.0; to: "elm.text"; }
2900                rel2.to: "elm.text";
2901             }
2902          }
2903          part {
2904            name: "elm.rect.top.pad";
2905            type: RECT;
2906            scale: 1;
2907            description {
2908               state: "default" 0.0;
2909               min: 0 ENTRY_BUBBLE_Y_PAD;
2910               fixed: 0 1;
2911               align: 0.0 0.0;
2912               color: 0 0 0 0;
2913               rel2.relative: 1.0 0.0;
2914            }
2915          }
2916          part {
2917            name: "elm.rect.topleft.pad";
2918            type: RECT;
2919            scale: 1;
2920            description {
2921               state: "default" 0.0;
2922               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2923               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
2924               fixed: 1 1;
2925               align: 0.0 0.0;
2926               visible: 0;
2927            }
2928          }
2929          part {
2930            name: "elm.rect.bottom.pad";
2931            type: RECT;
2932            scale: 1;
2933            description {
2934               state: "default" 0.0;
2935               min: 0 ENTRY_BUBBLE_BOTTOM_PAD;
2936               fixed: 0 1;
2937               align: 0.0 1.0;
2938               color: 0 0 0 0;
2939               rel1.relative: 0.0 1.0;
2940            }
2941          }
2942          part {
2943            name: "elm.rect.bottomleft.pad";
2944            type: RECT;
2945            scale: 1;
2946            description {
2947               state: "default" 0.0;
2948               min: ENTRY_BUBBLE_BOTTOMRIGHT_PAD  2;
2949               max: ENTRY_BUBBLE_BOTTOMRIGHT_PAD 2;
2950               align: 0.0 1.0;
2951                           visible: 0;
2952            }
2953          }
2954          part {
2955            name: "elm.rect.groupchat.pad";
2956            type: RECT;
2957            scale: 1;
2958            description {
2959               state: "default" 0.0;
2960               min: ENTRY_BUBBLE_GROUPCHART_PAD;
2961               max: ENTRY_BUBBLE_GROUPCHART_PAD;
2962               align: 0.0 0.0;
2963                           visible: 0;
2964            }
2965            description {
2966               state: "callerid_on" 0.0;
2967               inherit: "default" 0.0;
2968               min: ENTRY_BUBBLE_GROUPCHART_WITH_CALLERID_PAD;
2969               max: ENTRY_BUBBLE_GROUPCHART_WITH_CALLERID_PAD;
2970            }
2971          }
2972          part {
2973            name: "elm.rect.groupchat.text.pad";
2974            type: RECT;
2975            scale: 1;
2976            description {
2977               state: "default" 0.0;
2978               min: 120 14;
2979               max: 120 14;
2980               align: 0.0 0.0;
2981                           visible: 0;
2982                           rel1 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
2983            }
2984          }
2985          part { name: "elm.text.groupchat";
2986             type: TEXT;
2987             scale: 1;
2988             description { state: "default" 0.0;
2989                align: 0.0 0.0;
2990                fixed: 1 1;
2991                text {
2992                   font: "Tizen:style=Roman";
2993                   size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
2994                   min: 1 0;
2995                                   align: 0.0 0.5;
2996                   text_class: "tizen";
2997                }
2998                visible: 1;
2999                color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
3000                rel1 { relative: 1.0 0.0; to: "elm.rect.groupchat.pad"; }
3001                rel2.to_y: "elm.rect.groupchat.pad";
3002             }
3003          }
3004          part {
3005             name: "elm.image.bg";
3006             type: IMAGE;
3007             scale: 1;
3008             description {
3009                state: "default" 0.0;
3010                rel2.to_x: "elm.rect.right.pad";
3011                image {
3012                   normal: "00_messagebubble_bg_receive.png";
3013                   border: ENTRY_BUBBLE_RECEV_BG_BORDER_INC;
3014                   border_scale: 1;
3015                }
3016             }
3017             description {
3018                state: "callerid_on" 0.0;
3019            inherit: "default" 0.0;
3020            rel1 { relative: 1.0 0.0; to_x: "elm.rect.bottomleft.pad"; }
3021             }
3022             description {
3023                state: "callerid_groupchat" 0.0;
3024            inherit: "default" 0.0;
3025            rel1 { relative: 1.0 1.0; to_x: "elm.rect.bottomleft.pad"; to_y:"elm.rect.groupchat.pad"; }
3026             }
3027             description {
3028                state: "groupchat_on" 0.0;
3029            inherit: "default" 0.0;
3030            rel1 { relative: 0.0 1.0; to_y:"elm.rect.groupchat.pad"; }
3031             }
3032          }
3033          // it's temporary blocked for prepare entry's signal feature
3034          /*
3035          part {
3036            name: "elm.text.subject";
3037            type: TEXTBLOCK;
3038            scale: 1;
3039            description {
3040               state: "default" 0.0;
3041               align: 0.0 0.0;
3042               text {
3043                  style: "entry_textblock_style";
3044                  min: 0 1;
3045               }
3046               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3047               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
3048            }
3049          }
3050          */
3051
3052          part {
3053            name: "elm.rect.subject.line";
3054            type: RECT;
3055            scale: 1;
3056            description {
3057               state: "default" 0.0;
3058               visible: 0;
3059               min: 0 1;
3060               align: 0.0 0.0;
3061               color: 0 0 0 255;
3062               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3063               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
3064            }
3065          }
3066          part {
3067             name: "elm.swallow.callerid";
3068             type: SWALLOW;
3069             scale: 1;
3070             description {
3071                state: "default" 0.0;
3072                min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3073                max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3074                fixed: 1 1;
3075                align: 0.0 0.0;
3076                visible: 0;
3077                rel1 { relative: ENTRY_BUBBLE_RECEV_CALLERID_REL_INC; to_x: "elm.rect.topleft.pad"; to_y: "elm.rect.topleft.pad"; }
3078                rel2 { relative: ENTRY_BUBBLE_RECEV_CALLERID_REL_INC; to_x: "elm.rect.topleft.pad"; to_y: "elm.rect.bottom.pad"; }
3079             }
3080             description { state: "callerid_on" 0.0;
3081                inherit: "default" 0.0;
3082                visible: 1;
3083             }
3084          }
3085          part {
3086             name: "elm.rect.callerid.pad";
3087             type: RECT;
3088             scale: 1;
3089             description {
3090                state: "default" 0.0;
3091                min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3092                max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3093                fixed: 1 1;
3094                align: 0.0 0.0;
3095                visible: 0;
3096                rel1 { relative: 1.0 1.0; to: "elm.swallow.callerid"; to_y: "elm.rect.top.pad"; }
3097                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
3098             }
3099          }
3100          part { name: "elm.text";
3101             type: TEXTBLOCK;
3102             mouse_events: 1;
3103             scale: 1;
3104             entry_mode: PLAIN;
3105             select_mode: BLOCK_HANDLE;
3106             //cursor_mode: BEFORE;
3107             multiline: 1;
3108             source: "elm/entry/selection/default"; // selection under
3109             //source2: "X"; // selection over
3110             //source3: "X"; // cursor under
3111             source5: "elm/entry/anchor/default"; // anchor under
3112             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
3113             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
3114             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
3115             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
3116             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
3117             description {
3118                state: "default" 0.0;
3119                fixed: 1 0;
3120                min: 200 0;
3121                align: 0.0 0.0;
3122                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.subject.line"; }
3123                rel2 { relative: 1.0 1.0; to_y: "elm.rect.subject.line"; }
3124                text {
3125                   style: "entry_bubble_receive_textblock_style";
3126                   min: 0 1;
3127               max: 1 0;
3128                }
3129             }
3130                 /* callerid only */
3131             description { state: "callerid_on" 0.0;
3132                inherit: "default" 0.0;
3133                rel1 { relative: 1.0 1.0; to_x: ENTRY_BUBBLE_READ_TEXT_CALLID_REL1_X_INC; to_y: "elm.rect.subject.line"; }
3134                rel2 { relative: 1.0 1.0; to_y: "elm.rect.subject.line"; }
3135             }
3136                 /* callerid and groupchat */
3137             description { state: "callerid_groupchat" 0.0;
3138                inherit: "default" 0.0;
3139                rel1 { relative: 1.0 1.0; to_x: ENTRY_BUBBLE_READ_TEXT_CALLID_REL1_X_INC; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3140                rel2 { relative: 1.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3141             }
3142                 /* groupchat only */
3143             description { state: "groupchat_on" 0.0;
3144                inherit: "default" 0.0;
3145                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3146                rel2 { relative: 1.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3147             }
3148             description { state: "disabled" 0.0;
3149                inherit: "default" 0.0;
3150                text {
3151                   style: "entry_textblock_disabled_style";
3152                }
3153             }
3154          }
3155          part {
3156             name: "elm.rect.status.pad";
3157             type: RECT;
3158             scale: 1;
3159             description {
3160                state: "default" 0.0;
3161                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
3162                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
3163                fixed: 1 1;
3164                align: 0.0 1.0;
3165                visible: 0;
3166                            color: 255 0 0 255;
3167                rel1 { relative: ENTRY_BUBBLE_READ_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3168                rel2 { relative: 1.0 1.0; to_y: "elm.rect.bottom.pad"; }
3169             }
3170          }
3171          part {
3172             name: "elm.rect.time.pad";
3173             type: RECT;
3174             scale: 1;
3175             description {
3176                state: "default" 0.0;
3177                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3178                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3179                fixed: 1 1;
3180                align: 0.0 0.0;
3181                visible: 0;
3182                            color: 0 255 0 255;
3183                rel1.to: "elm.rect.status.pad";
3184                rel2 { relative: 1.0 1.0; to_y: "elm.rect.bottom.pad"; }
3185             }
3186          }
3187          part { name: "elm.text.status";
3188             type: TEXT;
3189             scale: 1;
3190             description { state: "default" 0.0;
3191                align: 0.0 1.0;
3192                fixed: 1 1;
3193                text {
3194                   font: "Tizen:style=Roman";
3195                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
3196                   min: 1 0;
3197                   text_class: "tizen";
3198                }
3199                visible: 1;
3200                color: ENTRY_BUBBLE_READ_STATUS_TIME_COLOR_INC;
3201                rel1 { relative: ENTRY_BUBBLE_READ_STATUS_REL_INC; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
3202                rel2 { relative: ENTRY_BUBBLE_READ_STATUS_REL_INC; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
3203             }
3204             description { state: "disabled" 0.0;
3205                inherit: "default" 0.0;
3206                visible: 0;
3207             }
3208          }
3209          part { name: "elm.text.time";
3210             type: TEXT;
3211             scale: 1;
3212             description { state: "default" 0.0;
3213                align: 0.0 0.0;
3214                fixed: 1 1;
3215                text {
3216                   font: "Tizen:style=Roman";
3217                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
3218                   min: 1 0;
3219                   text_class: "tizen";
3220                }
3221                visible: 1;
3222                color: ENTRY_BUBBLE_READ_STATUS_TIME_COLOR_INC;
3223                rel1 { relative: ENTRY_BUBBLE_READ_TIME_REL_INC; to_x: "elm.rect.time.pad"; to_y: "elm.rect.time.pad"; }
3224                rel2 { relative: ENTRY_BUBBLE_READ_TIME_REL_INC; to_x: "elm.rect.time.pad"; to_y: "elm.rect.time.pad"; }
3225             }
3226             description { state: "disabled" 0.0;
3227                inherit: "default" 0.0;
3228                visible: 0;
3229             }
3230          }
3231          part {
3232             name: "elm.swallow.icon1";
3233             type: SWALLOW;
3234             scale: 1;
3235             description {
3236                state: "default" 0.0;
3237                min: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
3238                max: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
3239                fixed: 1 1;
3240                align: 0.0 1.0;
3241                visible: 0;
3242                rel1 { relative: 1.5 0.3; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3243                rel2 { relative: 1.0 0.3; to_y: "elm.rect.bottom.pad"; }
3244             }
3245             description { state: "enabled" 0.0;
3246                inherit: "default" 0.0;
3247                visible: 1;
3248             }
3249          }
3250          part {
3251             name: "elm.rect.middle.pad";
3252             type: RECT;
3253             scale: 1;
3254             description {
3255                state: "default" 0.0;
3256                min: 0 0;
3257                max: 0 0;
3258                align: 0.0 0.0;
3259                color: 0 0 0 0;
3260                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.text"; }
3261             }
3262             description {
3263                state: "show" 0.0;
3264                inherit: "default" 0.0;
3265                min: 0 ENTRY_BUBBLE_MIDDLE_PAD;
3266                max: 0 ENTRY_BUBBLE_MIDDLE_PAD;
3267             }
3268          }
3269          part {
3270            name: "elm.swallow.end";
3271            type: SWALLOW;
3272            scale: 1;
3273            description { state: "default" 0.0;
3274               align: 0.0 0.0;
3275               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.middle.pad"; }
3276               rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3277            }
3278          }
3279       }
3280       programs {
3281          program { name: "focus";
3282             signal: "load";
3283             source: "";
3284             action: FOCUS_SET;
3285             target: "elm.text";
3286          }
3287          program { name: "disable";
3288             signal: "elm,state,disabled";
3289             source: "elm";
3290             action: STATE_SET "disabled" 0.0;
3291             target: "elm.text";
3292          }
3293          program { name: "enable";
3294             signal: "elm,state,enabled";
3295             source: "elm";
3296             action: STATE_SET "default" 0.0;
3297             target: "elm.text";
3298          }
3299          program { name: "go_callerid_on";
3300             signal: "elm,state,callerid,enabled";
3301             source: "elm";
3302          script {
3303             new st[31];
3304             new Float:vl;
3305             get_state(PART:"elm.text", st, 30, vl);
3306             if (!strcmp(st, "default")) {
3307               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
3308               set_state(PART:"elm.text", "callerid_on", 0.0);
3309                         }
3310             else if (!strcmp(st, "groupchat_on")) {
3311               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
3312               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
3313                         }
3314
3315             set_state(PART:"elm.swallow.callerid", "callerid_on", 0.0);
3316             set_state(PART:"elm.rect.left.pad", "callerid_on", 0.0);
3317             set_state(PART:"elm.rect.groupchat.pad", "callerid_on", 0.0);
3318          }
3319          }
3320          program { name: "go_callerid_off";
3321             signal: "elm,state,callerid,disabled";
3322             source: "elm";
3323          script {
3324             new st[31];
3325             new Float:vl;
3326             get_state(PART:"elm.text", st, 30, vl);
3327             if (!strcmp(st, "callerid_groupchat")) {
3328               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
3329               set_state(PART:"elm.text", "groupchat_on", 0.0);
3330                         }
3331             else {
3332               set_state(PART:"elm.image.bg", "default", 0.0);
3333               set_state(PART:"elm.text", "default", 0.0);
3334                         }
3335
3336             set_state(PART:"elm.swallow.callerid", "default", 0.0);
3337             set_state(PART:"elm.rect.groupchat.pad", "default", 0.0);
3338                  }
3339          }
3340 /* groupchat - since white-hd theme */
3341 #if ENTRY_BUBBLE_GROUPCHART_ENABLE_INC
3342          program { name: "go_groupchat_on";
3343             signal: "elm,state,groupchat,enabled";
3344             source: "elm";
3345          script {
3346             new st[31];
3347             new Float:vl;
3348             get_state(PART:"elm.text", st, 30, vl);
3349             if (!strcmp(st, "default")) {
3350               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
3351               set_state(PART:"elm.text", "groupchat_on", 0.0);
3352                         }
3353             else if (!strcmp(st, "callerid_on")) {
3354               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
3355               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
3356                         }
3357          }
3358          }
3359 #endif
3360          program { name: "go_textstatus_on";
3361             signal: "elm,state,text,status,enabled";
3362             source: "elm";
3363             action: STATE_SET "default" 0.0;
3364             target: "elm.text.time";
3365             target: "elm.text.status";
3366             after: "go_contentstatus_off";
3367          }
3368          program { name: "go_textstatus_off";
3369             signal: "elm,state,text,status,disbled";
3370             source: "elm";
3371             action: STATE_SET "disabled" 0.0;
3372             target: "elm.text.time";
3373             target: "elm.text.status";
3374          }
3375          program { name: "go_contentstatus_on";
3376             signal: "elm,state,content,status,enabled";
3377             source: "elm";
3378             action: STATE_SET "enabled" 0.0;
3379             target: "elm.swallow.icon1";
3380             after: "go_textstatus_off";
3381          }
3382          program { name: "go_contentstatus_off";
3383             signal: "elm,state,content,status,disabled";
3384             source: "elm";
3385             action: STATE_SET "default" 0.0;
3386             target: "elm.swallow.icon1";
3387          }
3388          program { name: "show_middle_pad";
3389             signal: "elm,state,middle,pad,enabled";
3390             source: "elm";
3391             action: STATE_SET "show" 0.0;
3392             target: "elm.rect.middle.pad";
3393          }
3394          program { name: "hide_middle_pad";
3395             signal: "elm,state,middle,pad,disabled";
3396             source: "elm";
3397             action: STATE_SET "default" 0.0;
3398             target: "elm.rect.middle.pad";
3399          }
3400       }
3401    }
3402
3403    group { name: "elm/entry/base-noedit-charwrap/readmessage";
3404       data.item: "default_font_size" "24";
3405       data.item: "min_font_size" "8";
3406       data.item: "max_font_size" "60";
3407       data {
3408          item: context_menu_orientation "horizontal";
3409       }
3410       parts {
3411          part {
3412             name: "elm.rect.left.pad";
3413             type: RECT;
3414             scale: 1;
3415             description {
3416                state: "default" 0.0;
3417                min: ENTRY_BUBBLE_EX_PAD 0;
3418                fixed: 1 0;
3419                align: 0.0 0.0;
3420                color: 0 0 0 0;
3421                rel2.relative: 0.0 1.0;
3422             }
3423          }
3424          part {
3425             name: "elm.rect.right.pad";
3426             type: RECT;
3427             scale: 1;
3428             description {
3429                state: "default" 0.0;
3430                min: ENTRY_BUBBLE_IX_PAD 0;
3431                fixed: 1 0;
3432                align: 0.0 0.0;
3433                color: 0 0 0 0;
3434                rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
3435                rel2.to_x: "elm.text";
3436             }
3437          }
3438          part {
3439            name: "elm.rect.top.pad";
3440            type: RECT;
3441            scale: 1;
3442            description {
3443               state: "default" 0.0;
3444               min: 0 ENTRY_BUBBLE_Y_PAD;
3445               fixed: 0 1;
3446               align: 0.0 0.0;
3447               color: 0 0 0 0;
3448               rel2.relative: 1.0 0.0;
3449            }
3450          }
3451          part {
3452            name: "elm.rect.bottom.pad";
3453            type: RECT;
3454            scale: 1;
3455            description {
3456               state: "default" 0.0;
3457               min: 0 ENTRY_BUBBLE_Y_PAD;
3458               fixed: 0 1;
3459               align: 0.0 1.0;
3460               color: 0 0 0 0;
3461               rel1.relative: 0.0 1.0;
3462            }
3463          }
3464          part {
3465             name: "elm.image.bg";
3466             type: IMAGE;
3467             scale: 1;
3468             description {
3469                state: "default" 0.0;
3470                rel2.to_x: "elm.rect.right.pad";
3471                image {
3472                   normal: "00_messagebubble_bg_receive.png";
3473                   border: 1 20 13 20;
3474                   border_scale: 1;
3475                }
3476             }
3477          }
3478          part { name: "elm.text";
3479             type: TEXTBLOCK;
3480             mouse_events: 1;
3481             scale: 1;
3482             entry_mode: PLAIN;
3483             select_mode: BLOCK_HANDLE;
3484             //cursor_mode: BEFORE;
3485             multiline: 1;
3486             source: "elm/entry/selection/default"; // selection under
3487             //source2: "X"; // selection over
3488             //source3: "X"; // cursor under
3489             source5: "elm/entry/anchor/default"; // anchor under
3490             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
3491             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
3492             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
3493             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
3494             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
3495             description { state: "default" 0.0;
3496                fixed: 1 0;
3497                align: 0.0 0.0;
3498                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3499                rel2 { relative: 1.0 0.0; to_y: "elm.rect.bottom.pad"; }
3500                text {
3501                   style: "entry_textblock_char_wrap_style";
3502                   min: 0 1;
3503                   max: 1 0;
3504                }
3505             }
3506             description { state: "disabled" 0.0;
3507                inherit: "default" 0.0;
3508                text {
3509                   style: "entry_textblock_char_wrap_disabled_style";
3510                }
3511             }
3512          }
3513       }
3514       programs {
3515          program { name: "focus";
3516             signal: "load";
3517             source: "";
3518             action: FOCUS_SET;
3519             target: "elm.text";
3520          }
3521          program { name: "disable";
3522             signal: "elm,state,disabled";
3523             source: "elm";
3524             action: STATE_SET "disabled" 0.0;
3525             target: "elm.text";
3526          }
3527          program { name: "enable";
3528             signal: "elm,state,enabled";
3529             source: "elm";
3530             action: STATE_SET "default" 0.0;
3531             target: "elm.text";
3532          }
3533       }
3534    }
3535
3536    group { name: "elm/entry/base/sentmessage";
3537       data.item: "default_font_size" "24";
3538       data.item: "min_font_size" "8";
3539       data.item: "max_font_size" "60";
3540       data {
3541          item: context_menu_orientation "horizontal";
3542       }
3543       parts {
3544          part {
3545             name: "elm.rect.right.pad";
3546             type: RECT;
3547             scale: 1;
3548             description {
3549                state: "default" 0.0;
3550                min: ENTRY_BUBBLE_EX_PAD 0;
3551                fixed: 1 0;
3552                align: 1.0 0.0;
3553                color: 0 0 0 0;
3554                rel1.relative: 1.0 0.0;
3555             }
3556          }
3557          part {
3558             name: "elm.rect.left.pad";
3559             type: RECT;
3560             scale: 1;
3561             description {
3562                state: "default" 0.0;
3563                min: ENTRY_BUBBLE_IX_PAD 0;
3564                fixed: 1 0;
3565                align: 1.0 0.0;
3566                color: 0 0 0 0;
3567                rel1 { relative: 0.0 0.0; to: "elm.text"; }
3568                rel2 { relative: 0.0 1.0; to: "elm.text"; }
3569             }
3570          }
3571          part {
3572            name: "elm.rect.top.pad";
3573            type: RECT;
3574            scale: 1;
3575            description {
3576               state: "default" 0.0;
3577               min: 0 ENTRY_BUBBLE_Y_PAD;
3578               fixed: 0 1;
3579               align: 0.0 0.0;
3580               color: 0 0 0 0;
3581               rel2.relative: 1.0 0.0;
3582            }
3583          }
3584          part {
3585            name: "elm.rect.bottom.pad";
3586            type: RECT;
3587            scale: 1;
3588            description {
3589               state: "default" 0.0;
3590               min: 0 ENTRY_BUBBLE_Y_PAD;
3591               fixed: 0 1;
3592               align: 0.0 1.0;
3593               color: 0 0 0 0;
3594               rel1.relative: 0.0 1.0;
3595            }
3596          }
3597          part {
3598             name: "elm.image.bg";
3599             type: IMAGE;
3600             scale: 1;
3601             description {
3602                state: "default" 0.0;
3603                rel1.to_x: "elm.rect.left.pad";
3604                image {
3605                   normal: "00_messagebubble_bg_sent.png";
3606                   border: 20 1 13 20;
3607                   border_scale: 1;
3608                }
3609             }
3610          }
3611          part { name: "elm.text";
3612             type: TEXTBLOCK;
3613             mouse_events: 1;
3614             scale: 1;
3615             entry_mode: EDITABLE;
3616             select_mode: BLOCK_HANDLE;
3617             //cursor_mode: BEFORE;
3618             multiline: 1;
3619             source: "elm/entry/selection/default"; // selection under
3620             //source2: "X"; // selection over
3621             //source3: "X"; // cursor under
3622             source4: "elm/entry/cursor/default"; // cursorover
3623             source5: "elm/entry/anchor/default"; // anchor under
3624 //          source6: "X"; // anchor over
3625             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
3626             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
3627             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
3628             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
3629             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
3630             description { state: "default" 0.0;
3631                fixed: 1 0;
3632                align: 1.0 0.0;
3633                rel1 { relative: 0.0 1.0; to_y: "elm.rect.top.pad";}
3634                rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
3635                text {
3636                   style: "entry_textblock_style";
3637                   min: 0 1;
3638                   max: 1 0;
3639                }
3640             }
3641             description { state: "disabled" 0.0;
3642                inherit: "default" 0.0;
3643                text {
3644                   style: "entry_textblock_disabled_style";
3645                }
3646             }
3647          }
3648       }
3649       programs {
3650          program { name: "focus";
3651             signal: "load";
3652             source: "";
3653             action: FOCUS_SET;
3654             target: "elm.text";
3655          }
3656          program { name: "disable";
3657             signal: "elm,state,disabled";
3658             source: "elm";
3659             action: STATE_SET "disabled" 0.0;
3660             target: "elm.text";
3661          }
3662          program { name: "enable";
3663             signal: "elm,state,enabled";
3664             source: "elm";
3665             action: STATE_SET "default" 0.0;
3666             target: "elm.text";
3667          }
3668       }
3669    }
3670
3671    group { name: "elm/entry/base-noedit/sentmessage";
3672       data.item: "default_font_size" "24";
3673       data.item: "min_font_size" "8";
3674       data.item: "max_font_size" "60";
3675       data {
3676          item: context_menu_orientation "horizontal";
3677       }
3678       parts {
3679          part {
3680            name: "elm.rect.right.pad";
3681                type: RECT;
3682                scale: 1;
3683                description {
3684                   state: "default" 0.0;
3685                   min: ENTRY_BUBBLE_EX_PAD 0;
3686               fixed: 1 0;
3687                   align: 1.0 0.0;
3688               color: 0 0 0 0;
3689               rel1.relative: 1.0 0.0;
3690                }
3691                description {
3692                state: "callerid_on" 0.0;
3693                inherit: "default" 0.0;
3694                    min: ENTRY_BUBBLE_EX_CALLERID_PAD 0;
3695                }
3696          }
3697          part {
3698             name: "elm.rect.left.pad";
3699             type: RECT;
3700             scale: 1;
3701             description {
3702                state: "default" 0.0;
3703                min: ENTRY_BUBBLE_IX_PAD 0;
3704                fixed: 1 0;
3705                align: 1.0 0.0;
3706                color: 0 0 0 0;
3707                rel1 { relative: 0.0 0.0; to: "elm.text"; }
3708                rel2 { relative: 0.0 1.0; to: "elm.text"; }
3709             }
3710          }
3711          part {
3712            name: "elm.rect.topright.pad";
3713            type: RECT;
3714            scale: 1;
3715            description {
3716               state: "default" 0.0;
3717               min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3718               max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3719               align: 1.0 0.0;
3720               visible: 0;
3721               rel1.relative: 1.0 0.0;
3722            }
3723          }
3724          part {
3725            name: "elm.rect.top.pad";
3726            type: RECT;
3727            scale: 1;
3728            description {
3729               state: "default" 0.0;
3730               min: 0 ENTRY_BUBBLE_Y_PAD;
3731               fixed: 0 1;
3732               align: 0.0 0.0;
3733               color: 0 0 0 0;
3734               rel2.relative: 1.0 0.0;
3735            }
3736          }
3737          part {
3738            name: "elm.rect.bottom.pad";
3739            type: RECT;
3740            scale: 1;
3741            description {
3742               state: "default" 0.0;
3743               min: 0 ENTRY_BUBBLE_BOTTOM_PAD;
3744               fixed: 0 1;
3745               align: 0.0 1.0;
3746               color: 0 0 0 0;
3747               rel1.relative: 0.0 1.0;
3748            }
3749          }
3750          part {
3751            name: "elm.rect.bottomright.pad";
3752            type: RECT;
3753            scale: 1;
3754            description {
3755               state: "default" 0.0;
3756               min: ENTRY_BUBBLE_BOTTOMRIGHT_PAD  2;
3757               max: ENTRY_BUBBLE_BOTTOMRIGHT_PAD 2;
3758               align: 1.0 1.0;
3759                           visible: 0;
3760            }
3761          }
3762          part {
3763            name: "elm.rect.groupchat.pad";
3764            type: RECT;
3765            scale: 1;
3766            description {
3767               state: "default" 0.0;
3768               min: ENTRY_BUBBLE_GROUPCHART_PAD;
3769               max: ENTRY_BUBBLE_GROUPCHART_PAD;
3770               align: 1.0 0.0;
3771                           visible: 0;
3772            }
3773            description {
3774               state: "callerid_on" 0.0;
3775               inherit: "default" 0.0;
3776               min: ENTRY_BUBBLE_GROUPCHART_WITH_CALLERID_PAD;
3777               max: ENTRY_BUBBLE_GROUPCHART_WITH_CALLERID_PAD;
3778            }
3779          }
3780          part {
3781            name: "elm.rect.groupchat.text.pad";
3782            type: RECT;
3783            scale: 1;
3784            description {
3785               state: "default" 0.0;
3786               min: 120 14;
3787               max: 120 14;
3788               align: 0.0 0.0;
3789                           visible: 0;
3790                           rel1 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
3791            }
3792          }
3793          part { name: "elm.text.groupchat";
3794             type: TEXT;
3795             scale: 1;
3796             description { state: "default" 0.0;
3797                align: 1.0 1.0;
3798                fixed: 1 1;
3799                text {
3800                   font: "Tizen:style=Roman";
3801                   size: ENTRY_BUBBLE_GROUPCHAT_SIZE_INC;
3802                   min: 1 0;
3803                                   align: 1.0 0.5;
3804                   text_class: "tizen";
3805                }
3806                visible: 1;
3807                color: ENTRY_BUBBLE_GROUPCHAT_COLOR_INC;
3808                rel2 { relative: 0.0 1.0; to: "elm.rect.groupchat.pad"; }
3809             }
3810          }
3811          part {
3812             name: "elm.image.bg";
3813             type: IMAGE;
3814             scale: 1;
3815             description {
3816                state: "default" 0.0;
3817            rel1.to_x: "elm.rect.left.pad";
3818                image {
3819                       normal: "00_messagebubble_bg_sent.png";
3820                       border: ENTRY_BUBBLE_SENT_BG_BORDER_INC;
3821                       border_scale: 1;
3822                }
3823             }
3824             description {
3825                state: "callerid_on" 0.0;
3826            inherit: "default" 0.0;
3827            rel2 { relative: 0.0 1.0; to: "elm.rect.bottomright.pad"; }
3828             }
3829             description {
3830                state: "callerid_groupchat" 0.0;
3831            inherit: "default" 0.0;
3832                    rel1 { relative: 0.0 1.0; to_x:"elm.rect.left.pad"; to_y:"elm.rect.groupchat.pad"; }
3833            rel2 { relative: 0.0 1.0; to: "elm.rect.bottomright.pad"; }
3834             }
3835             description {
3836                state: "groupchat_on" 0.0;
3837            inherit: "default" 0.0;
3838                    rel1 { relative: 0.0 1.0; to_x:"elm.rect.left.pad"; to_y:"elm.rect.groupchat.pad"; }
3839             }
3840          }
3841          // it's temporary blocked for prepare entry's signal feature
3842          /*
3843          part {
3844            name: "elm.text.subject";
3845            type: TEXTBLOCK;
3846            scale: 1;
3847            description {
3848               state: "default" 0.0;
3849               align: 0.0 0.0;
3850               text {
3851                  style: "entry_textblock_style";
3852                  min: 0 1;
3853               }
3854               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3855               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
3856            }
3857          }
3858          */
3859
3860          part {
3861            name: "elm.rect.subject.line";
3862            type: RECT;
3863            scale: 1;
3864            description {
3865               state: "default" 0.0;
3866               visible: 0;
3867               min: 0 1;
3868               align: 0.0 0.0;
3869               color: 0 0 0 255;
3870               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
3871               rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
3872            }
3873          }
3874          part {
3875             name: "elm.swallow.callerid";
3876             type: SWALLOW;
3877             scale: 1;
3878             description {
3879                state: "default" 0.0;
3880                min: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3881                max: ENTRY_BUBBLE_CALLERID_WIDTH ENTRY_BUBBLE_CALLERID_HEIGHT;
3882                align: 1.0 0.0;
3883                visible: 0;
3884                rel1 { relative: ENTRY_BUBBLE_CALLERID_RELATIVE_INC; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.topright.pad"; }
3885                rel2 { relative: ENTRY_BUBBLE_CALLERID_RELATIVE_INC; to_x: "elm.rect.topright.pad"; to_y: "elm.rect.bottom.pad"; }
3886             }
3887             description { state: "callerid_on" 0.0;
3888                inherit: "default" 0.0;
3889                visible: 1;
3890             }
3891          }
3892          part {
3893             name: "elm.rect.callerid.pad";
3894             type: RECT;
3895             scale: 1;
3896             description {
3897                state: "default" 0.0;
3898                min: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3899                max: ENTRY_BUBBLE_CALLERID_PAD ENTRY_BUBBLE_CALLERID_PAD;
3900                align: 1.0 0.0;
3901                visible: 0;
3902                rel1 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.topright.pad"; }
3903                rel2 { relative: 0.0 1.0; to_x: "elm.swallow.callerid"; to_y: "elm.rect.bottom.pad"; }
3904                 }
3905          }
3906          part { name: "elm.text";
3907             type: TEXTBLOCK;
3908             mouse_events: 1;
3909             scale: 1;
3910             entry_mode: PLAIN;
3911             select_mode: BLOCK_HANDLE;
3912             //cursor_mode: BEFORE;
3913             multiline: 1;
3914             source: "elm/entry/selection/default"; // selection under
3915             //source2: "X"; // selection over
3916             //source3: "X"; // cursor under
3917             source5: "elm/entry/anchor/default"; // anchor under
3918             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
3919             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
3920             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
3921             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
3922             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
3923             description {
3924            state: "default" 0.0;
3925            fixed: 1 0;
3926                    min: 200 0;
3927            align: 1.0 0.0;
3928            rel1 { relative: 0.0 1.0; to_y: "elm.rect.subject.line"; }
3929            rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.subject.line"; }
3930                text {
3931                       style: "entry_bubble_sent_textblock_style";
3932                       min: 0 1;
3933               max: 1 0;
3934                }
3935             }
3936                 /* callerid only */
3937             description { state: "callerid_on" 0.0;
3938                inherit: "default" 0.0;
3939                rel1 { relative: 0.0 1.0; to_y: "elm.rect.subject.line";}
3940                rel2 { relative: 0.0 1.0; to_x: ENTRY_BUBBLE_TEXT_CALLID_REL2_X_INC; to_y: "elm.rect.subject.line"; }
3941             }
3942                 /* callerid and groupchat */
3943             description { state: "callerid_groupchat" 0.0;
3944                inherit: "default" 0.0;
3945                rel1 { relative: 0.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3946                rel2 { relative: 0.0 1.0; to_x: ENTRY_BUBBLE_TEXT_CALLID_REL2_X_INC; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3947             }
3948                 /* groupchat only */
3949             description { state: "groupchat_on" 0.0;
3950                inherit: "default" 0.0;
3951                rel1 { relative: 0.0 1.0; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3952                rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: ENTRY_BUBBLE_TEXT_CALLID_REL2_Y_INC; }
3953             }
3954             description { state: "disabled" 0.0;
3955                inherit: "default" 0.0;
3956                text {
3957                   style: "entry_textblock_disabled_style";
3958                }
3959             }
3960          }
3961          part {
3962             name: "elm.rect.status.pad";
3963             type: RECT;
3964             scale: 1;
3965             description {
3966                state: "default" 0.0;
3967                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC 64;
3968                fixed: 1 1;
3969                align: 1.0 1.0;
3970                visible: 0;
3971                            color: 255 0 0 255;
3972                rel1 { relative: ENTRY_BUBBLE_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3973                rel2 { relative: ENTRY_BUBBLE_STATUS_TIME_PAD_REL_INC; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
3974             }
3975          }
3976          part {
3977             name: "elm.rect.time.pad";
3978             type: RECT;
3979             scale: 1;
3980             description {
3981                state: "default" 0.0;
3982                min: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3983                max: ENTRY_BUBBLE_STATUS_TIME_PAD_MIN_H_INC GENLIST_PADDING_34_INC;
3984                fixed: 1 1;
3985                align: 0.0 0.0;
3986                visible: 0;
3987                            color: 0 255 0 255;
3988                rel1.to: "elm.rect.status.pad";
3989                rel2 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.bottom.pad"; }
3990             }
3991          }
3992          part { name: "elm.text.status";
3993             type: TEXT;
3994             scale: 1;
3995             description { state: "default" 0.0;
3996                align: 1.0 1.0;
3997                fixed: 1 1;
3998                text {
3999                   font: "Tizen:style=Roman";
4000                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
4001                   min: 1 0;
4002                   text_class: "tizen";
4003                }
4004                visible: 1;
4005                color: ENTRY_BUBBLE_SENT_STATUS_TIME_COLOR_INC;
4006                rel1 { relative: 0.0 0.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
4007                rel2 { relative: 0.0 0.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.status.pad"; }
4008             }
4009             description { state: "disabled" 0.0;
4010                inherit: "default" 0.0;
4011                visible: 0;
4012             }
4013          }
4014          part { name: "elm.text.time";
4015             type: TEXT;
4016             scale: 1;
4017             description { state: "default" 0.0;
4018                align: 1.0 0.0;
4019                fixed: 1 1;
4020                text {
4021                   font: "Tizen:style=Roman";
4022                   size: ENTRY_BUBBLE_STATUS_TIME_SIZE_INC;
4023                   min: 1 0;
4024                   text_class: "tizen";
4025                }
4026                visible: 1;
4027                color: ENTRY_BUBBLE_SENT_STATUS_TIME_COLOR_INC;
4028                rel1 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.time.pad"; }
4029                rel2 { relative: 0.0 1.0; to_x: "elm.rect.status.pad"; to_y: "elm.rect.time.pad"; }
4030             }
4031             description { state: "disabled" 0.0;
4032                inherit: "default" 0.0;
4033                visible: 0;
4034             }
4035          }
4036          part {
4037             name: "elm.swallow.icon1";
4038             type: SWALLOW;
4039             scale: 1;
4040             description {
4041                state: "default" 0.0;
4042                min: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
4043                max: GENLIST_PADDING_64_INC GENLIST_PADDING_64_INC;
4044                fixed: 1 1;
4045                align: 1.0 1.0;
4046                visible: 0;
4047                rel1 { relative: -0.8 0.3; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
4048                rel2 { relative: -0.8 0.3; to_x: "elm.rect.left.pad"; to_y: "elm.rect.bottom.pad"; }
4049             }
4050             description { state: "enabled" 0.0;
4051                inherit: "default" 0.0;
4052                visible: 1;
4053             }
4054          }
4055          part {
4056             name: "elm.rect.middle.pad";
4057             type: RECT;
4058             scale: 1;
4059             description {
4060                state: "default" 0.0;
4061                min: 0 0;
4062                max: 0 0;
4063                align: 0.0 0.0;
4064                color: 0 0 0 0;
4065                rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.text"; }
4066             }
4067             description {
4068                state: "show" 0.0;
4069                inherit: "default" 0.0;
4070                min: 0 ENTRY_BUBBLE_MIDDLE_PAD;
4071                max: 0 ENTRY_BUBBLE_MIDDLE_PAD;
4072             }
4073          }
4074          part {
4075            name: "elm.swallow.end";
4076            type: SWALLOW;
4077            scale: 1;
4078            description {
4079               state: "default" 0.0;
4080               align: 0.0 0.0;
4081               rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.middle.pad"; }
4082               rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
4083            }
4084          }
4085       }
4086       programs {
4087          program { name: "focus";
4088             signal: "load";
4089             source: "";
4090             action: FOCUS_SET;
4091             target: "elm.text";
4092          }
4093          program { name: "disable";
4094             signal: "elm,state,disabled";
4095             source: "elm";
4096             action: STATE_SET "disabled" 0.0;
4097             target: "elm.text";
4098          }
4099          program { name: "enable";
4100             signal: "elm,state,enabled";
4101             source: "elm";
4102             action: STATE_SET "default" 0.0;
4103             target: "elm.text";
4104          }
4105          program { name: "go_callerid_on";
4106             signal: "elm,state,callerid,enabled";
4107             source: "elm";
4108          script {
4109             new st[31];
4110             new Float:vl;
4111             get_state(PART:"elm.text", st, 30, vl);
4112             if (!strcmp(st, "default")) {
4113               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
4114               set_state(PART:"elm.text", "callerid_on", 0.0);
4115                         }
4116             else if (!strcmp(st, "groupchat_on")) {
4117               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
4118               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
4119                         }
4120
4121             set_state(PART:"elm.swallow.callerid", "callerid_on", 0.0);
4122             set_state(PART:"elm.rect.right.pad", "callerid_on", 0.0);
4123             set_state(PART:"elm.rect.groupchat.pad", "callerid_on", 0.0);
4124          }
4125          }
4126          program { name: "go_callerid_off";
4127             signal: "elm,state,callerid,disabled";
4128             source: "elm";
4129          script {
4130             new st[31];
4131             new Float:vl;
4132             get_state(PART:"elm.text", st, 30, vl);
4133             if (!strcmp(st, "callerid_groupchat")) {
4134               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
4135               set_state(PART:"elm.text", "groupchat_on", 0.0);
4136                         }
4137             else {
4138               set_state(PART:"elm.image.bg", "default", 0.0);
4139               set_state(PART:"elm.text", "default", 0.0);
4140                         }
4141
4142             set_state(PART:"elm.swallow.callerid", "default", 0.0);
4143             set_state(PART:"elm.rect.groupchat.pad", "default", 0.0);
4144                  }
4145          }
4146 /* groupchat - since white-hd theme */
4147 #if ENTRY_BUBBLE_GROUPCHART_ENABLE_INC
4148          program { name: "go_groupchat_on";
4149             signal: "elm,state,groupchat,enabled";
4150             source: "elm";
4151          script {
4152             new st[31];
4153             new Float:vl;
4154             get_state(PART:"elm.text", st, 30, vl);
4155             if (!strcmp(st, "default")) {
4156               set_state(PART:"elm.image.bg", "groupchat_on", 0.0);
4157               set_state(PART:"elm.text", "groupchat_on", 0.0);
4158                         }
4159             else if (!strcmp(st, "callerid_on")) {
4160               set_state(PART:"elm.image.bg", "callerid_groupchat", 0.0);
4161               set_state(PART:"elm.text", "callerid_groupchat", 0.0);
4162                         }
4163          }
4164          }
4165 #endif
4166          program { name: "go_groupchat_off";
4167             signal: "elm,state,groupchat,disabled";
4168             source: "elm";
4169          script {
4170             new st[31];
4171             new Float:vl;
4172             get_state(PART:"elm.text", st, 30, vl);
4173             if (!strcmp(st, "callerid_groupchat")) {
4174               set_state(PART:"elm.image.bg", "callerid_on", 0.0);
4175               set_state(PART:"elm.text", "callerid_on", 0.0);
4176                         }
4177             else {
4178               set_state(PART:"elm.image.bg", "default", 0.0);
4179               set_state(PART:"elm.text", "default", 0.0);
4180                         }
4181                  }
4182          }
4183          program { name: "go_textstatus_on";
4184             signal: "elm,state,text,status,enabled";
4185             source: "elm";
4186             action: STATE_SET "default" 0.0;
4187             target: "elm.text.time";
4188             target: "elm.text.status";
4189             after: "go_contentstatus_off";
4190          }
4191          program { name: "go_textstatus_off";
4192             signal: "elm,state,text,status,disbled";
4193             source: "elm";
4194             action: STATE_SET "disabled" 0.0;
4195             target: "elm.text.time";
4196             target: "elm.text.status";
4197          }
4198          program { name: "go_contentstatus_on";
4199             signal: "elm,state,content,status,enabled";
4200             source: "elm";
4201             action: STATE_SET "enabled" 0.0;
4202             target: "elm.swallow.icon1";
4203             after: "go_textstatus_off";
4204          }
4205          program { name: "go_contentstatus_off";
4206             signal: "elm,state,content,status,disabled";
4207             source: "elm";
4208             action: STATE_SET "default" 0.0;
4209             target: "elm.swallow.icon1";
4210          }
4211          program { name: "show_middle_pad";
4212             signal: "elm,state,middle,pad,enabled";
4213             source: "elm";
4214             action: STATE_SET "show" 0.0;
4215             target: "elm.rect.middle.pad";
4216          }
4217          program { name: "hide_middle_pad";
4218             signal: "elm,state,middle,pad,disabled";
4219             source: "elm";
4220             action: STATE_SET "default" 0.0;
4221             target: "elm.rect.middle.pad";
4222          }
4223       }
4224    }
4225
4226    group { name: "elm/entry/base-noedit-charwrap/sentmessage";
4227       data.item: "default_font_size" "24";
4228       data.item: "min_font_size" "8";
4229       data.item: "max_font_size" "60";
4230       data {
4231          item: context_menu_orientation "horizontal";
4232       }
4233       parts {
4234          part {
4235             name: "elm.rect.right.pad";
4236             type: RECT;
4237             scale: 1;
4238             description {
4239                state: "default" 0.0;
4240                min: ENTRY_BUBBLE_EX_PAD 0;
4241                fixed: 1 0;
4242                align: 1.0 0.0;
4243                color: 0 0 0 0;
4244                rel1.relative: 1.0 0.0;
4245             }
4246          }
4247          part {
4248             name: "elm.rect.left.pad";
4249             type: RECT;
4250             scale: 1;
4251             description {
4252                state: "default" 0.0;
4253                min: ENTRY_BUBBLE_IX_PAD 0;
4254                fixed: 1 0;
4255                align: 1.0 0.0;
4256                color: 0 0 0 0;
4257                rel1 { relative: 0.0 0.0; to: "elm.text"; }
4258                rel2 { relative: 0.0 1.0; to: "elm.text"; }
4259             }
4260          }
4261          part {
4262            name: "elm.rect.top.pad";
4263            type: RECT;
4264            scale: 1;
4265            description {
4266               state: "default" 0.0;
4267               min: 0 ENTRY_BUBBLE_Y_PAD;
4268               fixed: 0 1;
4269               align: 0.0 0.0;
4270               color: 0 0 0 0;
4271               rel2.relative: 1.0 0.0;
4272            }
4273          }
4274          part {
4275            name: "elm.rect.bottom.pad";
4276            type: RECT;
4277            scale: 1;
4278            description {
4279               state: "default" 0.0;
4280               min: 0 ENTRY_BUBBLE_Y_PAD;
4281               fixed: 0 1;
4282               align: 0.0 1.0;
4283               color: 0 0 0 0;
4284               rel1.relative: 0.0 1.0;
4285            }
4286          }
4287          part {
4288             name: "elm.image.bg";
4289             type: IMAGE;
4290             scale: 1;
4291             description {
4292                state: "default" 0.0;
4293                rel1.to_x: "elm.rect.left.pad";
4294                image {
4295                   normal: "00_messagebubble_bg_sent.png";
4296                   border: 20 1 13 20;
4297                   border_scale: 1;
4298                }
4299             }
4300          }
4301          part { name: "elm.text";
4302             type: TEXTBLOCK;
4303             mouse_events: 1;
4304             scale: 1;
4305             entry_mode: PLAIN;
4306             select_mode: BLOCK_HANDLE;
4307             //cursor_mode: BEFORE;
4308             multiline: 1;
4309             source: "elm/entry/selection/default"; // selection under
4310             //source2: "X"; // selection over
4311             //source3: "X"; // cursor under
4312             source5: "elm/entry/anchor/default"; // anchor under
4313             source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4314             source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4315             source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4316             source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4317             source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4318             description { state: "default" 0.0;
4319                fixed: 1 0;
4320                align: 1.0 0.0;
4321                rel1 { relative: 0.0 1.0; to_y: "elm.rect.top.pad";}
4322                rel2 { relative: 0.0 0.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
4323                text {
4324                   style: "entry_textblock_char_wrap_style";
4325                   min: 0 1;
4326                   max: 1 0;
4327                }
4328             }
4329             description { state: "disabled" 0.0;
4330                inherit: "default" 0.0;
4331                text {
4332                   style: "entry_textblock_char_wrap_disabled_style";
4333                }
4334             }
4335          }
4336       }
4337       programs {
4338          program { name: "focus";
4339             signal: "load";
4340             source: "";
4341             action: FOCUS_SET;
4342             target: "elm.text";
4343          }
4344          program { name: "disable";
4345             signal: "elm,state,disabled";
4346             source: "elm";
4347             action: STATE_SET "disabled" 0.0;
4348             target: "elm.text";
4349          }
4350          program { name: "enable";
4351             signal: "elm,state,enabled";
4352             source: "elm";
4353             action: STATE_SET "default" 0.0;
4354             target: "elm.text";
4355          }
4356       }
4357    }
4358
4359 group { name: "elm/entry/base/font_color_black";
4360    alias: "elm/entry/base-mixedwrap/font_color_black";
4361    alias: "elm/entry/base/font_color_black/default";
4362    alias: "elm/entry/base/font_color_black/lighting";
4363    alias: "elm/entry/base/font_color_black/multiline";
4364    alias: "elm/entry/base/font_color_black/multiline/default";
4365    alias: "elm/entry/base/font_color_black/multiline/lighting";
4366    alias: "elm/entry/base/editfield/font_color_black";
4367
4368    data.item: "default_font_size" "24";
4369    data.item: "min_font_size" "8";
4370    data.item: "max_font_size" "60";
4371
4372    styles {
4373       style { name: "font_color_black_textblock_style";
4374          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=mixed left_margin=1 right_margin=2 text_class=entry";
4375          tag:  "br" "\n";
4376          tag:  "ps" "ps";
4377          tag:  "tab" "\t";
4378          tag:  "em" "+ font=Tizen:style=Oblique";
4379          tag:  "b" "+ font=Tizen:style=Bold";
4380          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4381          tag:  "hilight" "+ font=Tizen:style=Bold";
4382          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4383          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4384          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4385          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4386          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4387          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4388       }
4389       style { name: "font_color_black_textblock_disabled_style";
4390          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=mixed left_margin=1 right_margin=2 text_class=entry";
4391          tag:  "br" "\n";
4392          tag:  "ps" "ps";
4393          tag:  "tab" "\t";
4394          tag:  "em" "+ font=Tizen:style=Oblique";
4395          tag:  "b" "+ font=Tizen:style=Bold";
4396          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
4397          tag:  "hilight" "+ font=Tizen:style=Bold";
4398          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4399          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4400          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4401          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4402          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4403          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4404       }
4405       style { name: "font_color_black_textblock_guide_style";
4406          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#90A9C7 wrap=mixed left_margin=1 right_margin=2 text_class=entry";
4407          tag:  "br" "\n";
4408          tag:  "ps" "ps";
4409          tag:  "tab" "\t";
4410          tag:  "em" "+ font=Tizen:style=Oblique";
4411          tag:  "b" "+ font=Tizen:style=Bold";
4412          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4413          tag:  "hilight" "+ font=Tizen:style=Bold";
4414       }
4415    }
4416    data {
4417       item: context_menu_orientation "horizontal";
4418    }
4419    parts {
4420       part { name: "elm.guide";
4421          type: TEXTBLOCK;
4422          mouse_events: 0;
4423          scale: 1;
4424          description { state: "default" 0.0;
4425             rel1.to: "elm.text";
4426             rel2.to: "elm.text";
4427             text {
4428                style: "font_color_black_textblock_guide_style";
4429                min: 0 1;
4430                align: 0.0 0.0;
4431             }
4432          }
4433          description { state: "hidden" 0.0;
4434             inherit: "default" 0.0;
4435             visible: 0;
4436          }
4437       }
4438       part { name: "elm.text";
4439          type: TEXTBLOCK;
4440          mouse_events: 1;
4441          scale: 1;
4442          entry_mode: EDITABLE;
4443          select_mode: BLOCK_HANDLE;
4444          //cursor_mode: BEFORE;
4445          multiline: 1;
4446          source: "elm/entry/selection/default"; // selection under
4447          //source2: "X"; // selection over
4448          //source3: "X"; // cursor under
4449          source4: "elm/entry/cursor/default"; // cursorover
4450          source5: "elm/entry/anchor/default"; // anchor under
4451          //source6: "X"; // anchor over
4452          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4453          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4454          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4455          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4456          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4457          description { state: "default" 0.0;
4458             fixed: 1 0;
4459             text {
4460                style: "font_color_black_textblock_style";
4461                min: 0 1;
4462             }
4463             ENTRY_TEXTBLOCK_DEFAULT_REL
4464          }
4465          description { state: "disabled" 0.0;
4466             inherit: "default" 0.0;
4467             text {
4468                style: "font_color_black_textblock_disabled_style";
4469                min: 0 1;
4470             }
4471          }
4472       }
4473       ENTRY_SWALLOW_PARTS
4474    }
4475    ENTRY_SWALLOW_SCRIPT_PUBLIC
4476    programs {
4477       program { name: "focus";
4478          signal: "load";
4479          source: "";
4480          action: FOCUS_SET;
4481          target: "elm.text";
4482       }
4483       program { name: "disable";
4484          signal: "elm,state,disabled";
4485          source: "elm";
4486          action: STATE_SET "disabled" 0.0;
4487          target: "elm.text";
4488       }
4489       program { name: "enable";
4490          signal: "elm,state,enabled";
4491          source: "elm";
4492          action: STATE_SET "default" 0.0;
4493          target: "elm.text";
4494       }
4495       program { name: "gdisable";
4496          signal: "elm,guide,disabled";
4497          source: "elm";
4498          action: STATE_SET "hidden" 0.0;
4499          target: "elm.guide";
4500       }
4501       program { name: "genable";
4502          signal: "elm,guide,enabled";
4503          source: "elm";
4504          action: STATE_SET "default" 0.0;
4505          target: "elm.guide";
4506       }
4507       program { name: "touch_snd";
4508          signal: "mouse,clicked,1";
4509          source: "elm.text";
4510          action: PLAY_SAMPLE "touch_sound" 1.0;
4511       }
4512       ENTRY_SWALLOW_PROGRAMS
4513    }
4514 }
4515
4516 group { name: "elm/entry/base-noedit/font_color_black";
4517    data.item: "default_font_size" "24";
4518    data.item: "min_font_size" "8";
4519    data.item: "max_font_size" "60";
4520    data {
4521       item: context_menu_orientation "horizontal";
4522    }
4523    parts {
4524       part { name: "elm.guide";
4525          type: TEXTBLOCK;
4526          mouse_events: 0;
4527          scale: 1;
4528          description { state: "default" 0.0;
4529             rel1.to: "elm.text";
4530             rel2.to: "elm.text";
4531             text {
4532                style: "font_color_black_textblock_guide_style";
4533                min: 0 1;
4534                align: 0.0 0.0;
4535             }
4536          }
4537          description { state: "hidden" 0.0;
4538             inherit: "default" 0.0;
4539             visible: 0;
4540          }
4541       }
4542       part { name: "elm.text";
4543          type: TEXTBLOCK;
4544          mouse_events: 1;
4545          scale: 1;
4546          entry_mode: PLAIN;
4547          select_mode: BLOCK_HANDLE;
4548          //cursor_mode: BEFORE;
4549          multiline: 1;
4550          source: "elm/entry/selection/default"; // selection under
4551          //source2: "X"; // selection over
4552          //source3: "X"; // cursor under
4553          source4: "elm/entry/cursor/default"; // cursorover
4554          source5: "elm/entry/anchor/default"; // anchor under
4555          //source6: "X"; // anchor over
4556          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4557          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4558          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4559          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4560          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4561          description { state: "default" 0.0;
4562             fixed: 1 0;
4563             text {
4564                style: "font_color_black_textblock_style";
4565                min: 0 1;
4566             }
4567          }
4568          description { state: "disabled" 0.0;
4569             inherit: "default" 0.0;
4570             text {
4571                style: "font_color_black_textblock_disabled_style";
4572                min: 0 1;
4573             }
4574          }
4575       }
4576    }
4577    programs {
4578       program { name: "focus";
4579          signal: "load";
4580          source: "";
4581          action: FOCUS_SET;
4582          target: "elm.text";
4583       }
4584       program { name: "disable";
4585          signal: "elm,state,disabled";
4586          source: "elm";
4587          action: STATE_SET "disabled" 0.0;
4588          target: "elm.text";
4589       }
4590       program { name: "enable";
4591          signal: "elm,state,enabled";
4592          source: "elm";
4593          action: STATE_SET "default" 0.0;
4594          target: "elm.text";
4595       }
4596       program { name: "gdisable";
4597          signal: "elm,guide,disabled";
4598          source: "elm";
4599          action: STATE_SET "hidden" 0.0;
4600          target: "elm.guide";
4601       }
4602       program { name: "genable";
4603          signal: "elm,guide,enabled";
4604          source: "elm";
4605          action: STATE_SET "default" 0.0;
4606          target: "elm.guide";
4607       }
4608       program { name: "touch_snd";
4609          signal: "mouse,clicked,1";
4610          source: "elm.text";
4611          action: PLAY_SAMPLE "touch_sound" 1.0;
4612       }
4613    }
4614 }
4615
4616 group { name: "elm/entry/base-charwrap/font_color_black";
4617    alias: "elm/entry/base/font_color_black/char_wrap";
4618    alias: "elm/entry/base/font_color_black/default/char_wrap";
4619    alias: "elm/entry/base/font_color_black/lighting/char_wrap";
4620    alias: "elm/entry/base/font_color_black/multiline/char_wrap";
4621    alias: "elm/entry/base/font_color_black/multiline/default/char_wrap";
4622    alias: "elm/entry/base/font_color_black/multiline/lighting/char_wrap";
4623    alias: "elm/entry/base-charwrap/editfield/font_color_black";
4624
4625    data.item: "default_font_size" "24";
4626    data.item: "min_font_size" "8";
4627    data.item: "max_font_size" "60";
4628
4629    styles {
4630       style { name: "font_color_black_textblock_char_wrap_style";
4631          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=char left_margin=1 right_margin=2 text_class=entry";
4632          tag:  "br" "\n";
4633          tag:  "ps" "ps";
4634          tag:  "tab" "\t";
4635          tag:  "em" "+ font=Tizen:style=Oblique";
4636          tag:  "b" "+ font=Tizen:style=Bold";
4637          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4638          tag:  "hilight" "+ font=Tizen:style=Bold";
4639          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4640          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4641          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4642          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4643          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4644          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4645       }
4646       style { name: "font_color_black_textblock_char_wrap_disabled_style";
4647          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=char left_margin=1 right_margin=2 text_class=entry";
4648          tag:  "br" "\n";
4649          tag:  "ps" "ps";
4650          tag:  "tab" "\t";
4651          tag:  "em" "+ font=Tizen:style=Oblique";
4652          tag:  "b" "+ font=Tizen:style=Bold";
4653          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
4654          tag:  "hilight" "+ font=Tizen:style=Bold";
4655          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4656          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4657          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4658          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4659          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4660          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4661       }
4662       style { name: "font_color_black_textblock_char_wrap_guide_style";
4663          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#90A9C7 wrap=char left_margin=1 right_margin=2 text_class=entry";
4664          tag:  "br" "\n";
4665          tag:  "ps" "ps";
4666          tag:  "tab" "\t";
4667          tag:  "em" "+ font=Tizen:style=Oblique";
4668          tag:  "b" "+ font=Tizen:style=Bold";
4669          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4670          tag:  "hilight" "+ font=Tizen:style=Bold";
4671       }
4672    }
4673    data {
4674       item: context_menu_orientation "horizontal";
4675    }
4676    parts {
4677       part { name: "elm.guide";
4678          type: TEXTBLOCK;
4679          mouse_events: 0;
4680          scale: 1;
4681          description { state: "default" 0.0;
4682             rel1.to: "elm.text";
4683             rel2.to: "elm.text";
4684             text {
4685                style: "font_color_black_textblock_char_wrap_guide_style";
4686                min: 0 1;
4687                align: 0.0 0.0;
4688             }
4689          }
4690          description { state: "hidden" 0.0;
4691             inherit: "default" 0.0;
4692             visible: 0;
4693          }
4694       }
4695       part { name: "elm.text";
4696          type: TEXTBLOCK;
4697          mouse_events: 1;
4698          scale: 1;
4699          entry_mode: EDITABLE;
4700          select_mode: BLOCK_HANDLE;
4701          //cursor_mode: BEFORE;
4702          multiline: 1;
4703          source: "elm/entry/selection/default"; // selection under
4704          //source2: "X"; // selection over
4705          //source3: "X"; // cursor under
4706          source4: "elm/entry/cursor/default"; // cursorover
4707          source5: "elm/entry/anchor/default"; // anchor under
4708          //source6: "X"; // anchor over
4709          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4710          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4711          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4712          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4713          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4714          description { state: "default" 0.0;
4715             fixed: 1 0;
4716             text {
4717                style: "font_color_black_textblock_char_wrap_style";
4718                min: 0 1;
4719             }
4720             ENTRY_TEXTBLOCK_DEFAULT_REL
4721          }
4722          description { state: "disabled" 0.0;
4723             inherit: "default" 0.0;
4724             text {
4725                style: "font_color_black_textblock_char_wrap_disabled_style";
4726                min: 0 1;
4727             }
4728          }
4729       }
4730       ENTRY_SWALLOW_PARTS
4731    }
4732    ENTRY_SWALLOW_SCRIPT_PUBLIC
4733    programs {
4734       program { name: "focus";
4735          signal: "load";
4736          source: "";
4737          action: FOCUS_SET;
4738          target: "elm.text";
4739       }
4740       program { name: "disable";
4741          signal: "elm,state,disabled";
4742          source: "elm";
4743          action: STATE_SET "disabled" 0.0;
4744          target: "elm.text";
4745       }
4746       program { name: "enable";
4747          signal: "elm,state,enabled";
4748          source: "elm";
4749          action: STATE_SET "default" 0.0;
4750          target: "elm.text";
4751       }
4752       program { name: "gdisable";
4753          signal: "elm,guide,disabled";
4754          source: "elm";
4755          action: STATE_SET "hidden" 0.0;
4756          target: "elm.guide";
4757       }
4758       program { name: "genable";
4759          signal: "elm,guide,enabled";
4760          source: "elm";
4761          action: STATE_SET "default" 0.0;
4762          target: "elm.guide";
4763       }
4764       program { name: "touch_snd";
4765          signal: "mouse,clicked,1";
4766          source: "elm.text";
4767          action: PLAY_SAMPLE "touch_sound" 1.0;
4768       }
4769       ENTRY_SWALLOW_PROGRAMS
4770    }
4771 }
4772
4773 group { name: "elm/entry/base-single/font_color_black";
4774    alias: "elm/entry/base-single/font_color_black/default";
4775    alias: "elm/entry/base-single/font_color_black/lighting";
4776    alias: "elm/entry/base-single/font_color_black/singleline";
4777    alias: "elm/entry/base-single/font_color_black/singleline/default";
4778    alias: "elm/entry/base-single/font_color_black/singleline/lighting";
4779    alias: "elm/entry/base-single/editfield/font_color_black";
4780    alias: "elm/entry/base-single/editfield/searchbar/font_color_black";
4781
4782    data.item: "default_font_size" "24";
4783    data.item: "min_font_size" "8";
4784    data.item: "max_font_size" "60";
4785
4786    styles {
4787       style { name: "font_color_black_single_textblock_style";
4788          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=none left_margin=1 right_margin=3 text_class=entry";
4789          tag:  "br" "\n";
4790          tag:  "ps" "ps";
4791          tag:  "tab" "\t";
4792          tag:  "em" "+ font=Tizen:style=Oblique";
4793          tag:  "b" "+ font=Tizen:style=Bold";
4794          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4795          tag:  "hilight" "+ font=Tizen:style=Bold";
4796          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4797          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4798          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4799          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4800          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4801          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4802       }
4803       style { name: "font_color_black_single_textblock_disabled_style";
4804          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=entry";
4805          tag:  "br" "\n";
4806          tag:  "ps" "ps";
4807          tag:  "tab" "\t";
4808          tag:  "em" "+ font=Tizen:style=Oblique";
4809          tag:  "b" "+ font=Tizen:style=Bold";
4810          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
4811          tag:  "hilight" "+ font=Tizen:style=Bold";
4812          tag:  "preedit" "+ underline=on underline_color=#000000FF";
4813          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
4814          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
4815          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
4816          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
4817          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
4818       }
4819       style { name: "font_color_black_single_textblock_guide_style";
4820          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#90A9C7 wrap=none left_margin=1 right_margin=3 text_class=entry";
4821          tag:  "br" "\n";
4822          tag:  "ps" "ps";
4823          tag:  "tab" "\t";
4824          tag:  "em" "+ font=Tizen:style=Oblique";
4825          tag:  "b" "+ font=Tizen:style=Bold";
4826          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
4827          tag:  "hilight" "+ font=Tizen:style=Bold";
4828       }
4829    }
4830    data {
4831       item: context_menu_orientation "horizontal";
4832    }
4833    parts {
4834       part { name: "elm.guide";
4835          type: TEXTBLOCK;
4836          mouse_events: 0;
4837          scale: 1;
4838          description { state: "default" 0.0;
4839             rel1.to: "elm.text";
4840             rel2.to: "elm.text";
4841             text {
4842                style: "font_color_black_single_textblock_guide_style";
4843                min: 0 1;
4844                max: 0 1;
4845             }
4846          }
4847          description { state: "hidden" 0.0;
4848             inherit: "default" 0.0;
4849             visible: 0;
4850          }
4851       }
4852       part { name: "elm.text";
4853          type: TEXTBLOCK;
4854          mouse_events: 1;
4855          scale: 1;
4856          entry_mode: EDITABLE;
4857          select_mode: BLOCK_HANDLE;
4858          //cursor_mode: BEFORE;
4859          multiline: 0;
4860          source: "elm/entry/selection/default"; // selection under
4861          //source2: "X"; // selection over
4862          //source3: "X"; // cursor under
4863          source4: "elm/entry/cursor/default"; // cursorover
4864          source5: "elm/entry/anchor/default"; // anchor under
4865          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4866          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4867          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4868          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4869          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4870          description { state: "default" 0.0;
4871             text {
4872                style: "font_color_black_single_textblock_style";
4873                min: 1 1;
4874                max: 0 1;
4875             }
4876             ENTRY_TEXTBLOCK_DEFAULT_REL
4877          }
4878          description { state: "disabled" 0.0;
4879             inherit: "default" 0.0;
4880             text {
4881                style: "font_color_black_single_textblock_disabled_style";
4882             }
4883          }
4884       }
4885       ENTRY_SWALLOW_PARTS
4886    }
4887    ENTRY_SWALLOW_SCRIPT_PUBLIC
4888    programs {
4889       program { name: "focus";
4890          signal: "load";
4891          source: "";
4892          action: FOCUS_SET;
4893          target: "elm.text";
4894       }
4895       program { name: "disable";
4896          signal: "elm,state,disabled";
4897          source: "elm";
4898          action: STATE_SET "disabled" 0.0;
4899          target: "elm.text";
4900       }
4901       program { name: "enable";
4902          signal: "elm,state,enabled";
4903          source: "elm";
4904          action: STATE_SET "default" 0.0;
4905          target: "elm.text";
4906       }
4907       program { name: "gdisable";
4908          signal: "elm,guide,disabled";
4909          source: "elm";
4910          action: STATE_SET "hidden" 0.0;
4911          target: "elm.guide";
4912       }
4913       program { name: "genable";
4914          signal: "elm,guide,enabled";
4915          source: "elm";
4916          action: STATE_SET "default" 0.0;
4917          target: "elm.guide";
4918       }
4919       program { name: "touch_snd";
4920          signal: "mouse,clicked,1";
4921          source: "elm.text";
4922          action: PLAY_SAMPLE "touch_sound" 1.0;
4923       }
4924       ENTRY_SWALLOW_PROGRAMS
4925    }
4926 }
4927
4928 group { name: "elm/entry/base-single-noedit/font_color_black";
4929    data.item: "default_font_size" "24";
4930    data.item: "min_font_size" "8";
4931    data.item: "max_font_size" "60";
4932    data {
4933       item: context_menu_orientation "horizontal";
4934    }
4935    parts {
4936       part { name: "elm.guide";
4937          type: TEXTBLOCK;
4938          mouse_events: 0;
4939          scale: 1;
4940          description { state: "default" 0.0;
4941             rel1.to: "elm.text";
4942             rel2.to: "elm.text";
4943             text {
4944                style: "font_color_black_single_textblock_guide_style";
4945                min: 0 1;
4946                max: 0 1;
4947             }
4948          }
4949          description { state: "hidden" 0.0;
4950             inherit: "default" 0.0;
4951             visible: 0;
4952          }
4953       }
4954       part { name: "elm.text";
4955          type: TEXTBLOCK;
4956          mouse_events: 1;
4957          scale: 1;
4958          entry_mode: PLAIN;
4959          select_mode: BLOCK_HANDLE;
4960          //cursor_mode: BEFORE;
4961          multiline: 0;
4962          source: "elm/entry/selection/default"; // selection under
4963          //source2: "X"; // selection over
4964          //source3: "X"; // cursor under
4965          source4: "elm/entry/cursor/default"; // cursorover
4966          source5: "elm/entry/anchor/default"; // anchor under
4967          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
4968          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
4969          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
4970          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
4971          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
4972          description { state: "default" 0.0;
4973             text {
4974                style: "font_color_black_single_textblock_style";
4975                min: 1 1;
4976                max: 0 1;
4977             }
4978          }
4979          description { state: "disabled" 0.0;
4980             inherit: "default" 0.0;
4981             text {
4982                style: "font_color_black_single_textblock_disabled_style";
4983             }
4984          }
4985       }
4986    }
4987    programs {
4988       program { name: "focus";
4989          signal: "load";
4990          source: "";
4991          action: FOCUS_SET;
4992          target: "elm.text";
4993       }
4994       program { name: "disable";
4995          signal: "elm,state,disabled";
4996          source: "elm";
4997          action: STATE_SET "disabled" 0.0;
4998          target: "elm.text";
4999       }
5000       program { name: "enable";
5001          signal: "elm,state,enabled";
5002          source: "elm";
5003          action: STATE_SET "default" 0.0;
5004          target: "elm.text";
5005       }
5006       program { name: "gdisable";
5007          signal: "elm,guide,disabled";
5008          source: "elm";
5009          action: STATE_SET "hidden" 0.0;
5010          target: "elm.guide";
5011       }
5012       program { name: "genable";
5013          signal: "elm,guide,enabled";
5014          source: "elm";
5015          action: STATE_SET "default" 0.0;
5016          target: "elm.guide";
5017       }
5018       program { name: "touch_snd";
5019          signal: "mouse,clicked,1";
5020          source: "elm.text";
5021          action: PLAY_SAMPLE "touch_sound" 1.0;
5022       }
5023    }
5024 }
5025 group { name: "elm/entry/base-single/font_color_black/tizen_text_class";
5026    inherit: "elm/entry/base-single/font_color_black";
5027    styles {
5028       style { name: "tizen_text_class_single_textblock_style";
5029          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#000000FF wrap=none left_margin=1 right_margin=3 text_class=tizen";
5030          tag:  "br" "\n";
5031          tag:  "ps" "ps";
5032          tag:  "tab" "\t";
5033          tag:  "em" "+ font=Tizen:style=Oblique";
5034          tag:  "b" "+ font=Tizen:style=Bold";
5035          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
5036          tag:  "hilight" "+ font=Tizen:style=Bold";
5037          tag:  "preedit" "+ underline=on underline_color=#000000FF";
5038          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
5039          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
5040          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
5041          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
5042          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
5043       }
5044       style { name: "tizen_text_class_single_textblock_disabled_style";
5045          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#00000080 wrap=none left_margin=1 right_margin=3 text_class=tizen";
5046          tag:  "br" "\n";
5047          tag:  "ps" "ps";
5048          tag:  "tab" "\t";
5049          tag:  "em" "+ font=Tizen:style=Oblique";
5050          tag:  "b" "+ font=Tizen:style=Bold";
5051          tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
5052          tag:  "hilight" "+ font=Tizen:style=Bold";
5053          tag:  "preedit" "+ underline=on underline_color=#000000FF";
5054          tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
5055          tag:  "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color=#000000FF";
5056          tag:  "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color=#000000FF";
5057          tag:  "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color=#000000FF";
5058          tag:  "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color=#000000FF";
5059       }
5060       style { name: "tizen_text_class_single_textblock_guide_style";
5061          base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color=#90A9C7 wrap=none left_margin=1 right_margin=3 text_class=tizen ellipsis=1.0";
5062          tag:  "br" "\n";
5063          tag:  "ps" "ps";
5064          tag:  "tab" "\t";
5065          tag:  "em" "+ font=Tizen:style=Oblique";
5066          tag:  "b" "+ font=Tizen:style=Bold";
5067          tag:  "link" "+ color=#800 underline=on underline_color=#8008";
5068          tag:  "hilight" "+ font=Tizen:style=Bold";
5069       }
5070    }
5071    parts {
5072       part { name: "elm.guide";
5073          type: TEXTBLOCK;
5074          mouse_events: 0;
5075          scale: 1;
5076          description { state: "default" 0.0;
5077             rel1.to: "elm.text";
5078             rel2.to: "elm.text";
5079             text {
5080                style: "tizen_text_class_single_textblock_guide_style";
5081                min: 0 1;
5082                max: 0 1;
5083             }
5084          }
5085          description { state: "hidden" 0.0;
5086             inherit: "default" 0.0;
5087             visible: 0;
5088          }
5089       }
5090       part { name: "elm.text";
5091          description { state: "default" 0.0;
5092             text {
5093                style: "tizen_text_class_single_textblock_style";
5094             }
5095             ENTRY_TEXTBLOCK_DEFAULT_REL
5096          }
5097          description { state: "disabled" 0.0;
5098             inherit: "default" 0.0;
5099             text {
5100                style: "tizen_text_class_single_textblock_disabled_style";
5101             }
5102          }
5103       }
5104    }
5105 }
5106 group { name: "elm/entry/base-password/font_color_black";
5107    alias: "elm/entry/base-password/editfield/font_color_black";
5108    data.item: "default_font_size" "24";
5109    data.item: "min_font_size" "8";
5110    data.item: "max_font_size" "60";
5111    data {
5112       item: context_menu_orientation "horizontal";
5113    }
5114    parts {
5115       part { name: "elm.guide";
5116          type: TEXTBLOCK;
5117          mouse_events: 0;
5118          scale: 1;
5119          description { state: "default" 0.0;
5120             rel1.to: "elm.text";
5121             rel2.to: "elm.text";
5122             text {
5123                style: "font_color_black_single_textblock_guide_style";
5124                min: 0 1;
5125                max: 0 1;
5126             }
5127          }
5128          description { state: "hidden" 0.0;
5129             inherit: "default" 0.0;
5130             visible: 0;
5131          }
5132       }
5133       part { name: "elm.text";
5134          type: TEXTBLOCK;
5135          mouse_events: 1;
5136          scale: 1;
5137          entry_mode: PASSWORD;
5138          select_mode: BLOCK_HANDLE;
5139          multiline: 0;
5140          source: "elm/entry/selection/default"; // selection under
5141          //source2: "X"; // selection over
5142          //source3: "X"; // cursor under
5143          source4: "elm/entry/cursor/default"; // cursorover
5144          source5: "elm/entry/anchor/default"; // anchor under
5145          source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
5146          source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
5147          source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
5148          source10: ENTRY_BLOCK_HANDLE_SOURCE10; // start edge selection
5149          source11: ENTRY_BLOCK_HANDLE_SOURCE11; // end edge selection
5150          description { state: "default" 0.0;
5151             text {
5152                style: "font_color_black_single_textblock_style";
5153                repch: "*";
5154                min: 1 1;
5155                max: 0 1;
5156             }
5157             ENTRY_TEXTBLOCK_DEFAULT_REL
5158          }
5159          description { state: "disabled" 0.0;
5160             inherit: "default" 0.0;
5161             text {
5162                style: "font_color_black_single_textblock_disabled_style";
5163             }
5164          }
5165       }
5166       ENTRY_SWALLOW_PARTS
5167    }
5168    ENTRY_SWALLOW_SCRIPT_PUBLIC
5169    programs {
5170       program { name: "focus";
5171          signal: "load";
5172          source: "";
5173          action: FOCUS_SET;
5174          target: "elm.text";
5175       }
5176       program { name: "disable";
5177          signal: "elm,state,disabled";
5178          source: "elm";
5179          action: STATE_SET "disabled" 0.0;
5180          target: "elm.text";
5181       }
5182       program { name: "enable";
5183          signal: "elm,state,enabled";
5184          source: "elm";
5185          action: STATE_SET "default" 0.0;
5186          target: "elm.text";
5187       }
5188       program { name: "gdisable";
5189          signal: "elm,guide,disabled";
5190          source: "elm";
5191          action: STATE_SET "hidden" 0.0;
5192          target: "elm.guide";
5193       }
5194       program { name: "genable";
5195          signal: "elm,guide,enabled";
5196          source: "elm";
5197          action: STATE_SET "default" 0.0;
5198          target: "elm.guide";
5199       }
5200       program { name: "touch_snd";
5201          signal: "mouse,clicked,1";
5202          source: "elm.text";
5203          action: PLAY_SAMPLE "touch_sound" 1.0;
5204       }
5205       ENTRY_SWALLOW_PROGRAMS
5206    }
5207 }
5208
5209 group { name: "elm/scroller/entry/default";
5210       alias : "elm/scroller/entry/editfield";
5211       alias : "elm/scroller/entry/editfield/searchbar/default";
5212       data {
5213          item: "focus_highlight" "off";
5214       }
5215       script {
5216          public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
5217          public timer0(val) {
5218             new v;
5219             v = get_int(sbvis_v);
5220             if (v) {
5221                v = get_int(sbalways_v);
5222                if (!v) {
5223                   emit("do-hide-vbar", "");
5224                   set_int(sbvis_v, 0);
5225                }
5226             }
5227             v = get_int(sbvis_h);
5228             if (v) {
5229                v = get_int(sbalways_h);
5230                if (!v) {
5231                   emit("do-hide-hbar", "");
5232                   set_int(sbvis_h, 0);
5233                }
5234             }
5235             set_int(sbvis_timer, 0);
5236             return 0;
5237          }
5238       }
5239       parts {
5240          part { name: "bg";
5241             type: RECT;
5242             description { state: "default" 0.0;
5243                visible: 0;
5244             }
5245          }
5246          part { name: "clipper";
5247             type: RECT;
5248             mouse_events: 0;
5249             description { state: "default" 0.0;
5250                rel1.to: "bg";
5251                rel2.to: "bg";
5252             }
5253          }
5254          part { name: "editfield_space";
5255             type: SPACER;
5256             description { state: "default" 0.0;
5257                align: 1.0 1.0;
5258                rel1.to: "elm.swallow.end";
5259                rel1.relative: 0.0 0.0;
5260                rel2.to: "elm.swallow.end";
5261                rel2.relative: 1.0 1.0;
5262             }
5263             description { state: "rename_visible" 0.0;
5264                inherit: "default" 0.0;
5265                min: 5 0;
5266                max: 5 0;
5267                rel1 {
5268                   to_x: "elm.swallow.rename";
5269                   relative: 0.0 0.0;
5270                }
5271                rel2 {
5272                   to_x: "elm.swallow.rename";
5273                   relative: 0.0 1.0;
5274                }
5275             }
5276             description { state: "clear_visible" 0.0;
5277                inherit: "default" 0.0;
5278                align: 1.0 1.0;
5279                min: 5 0;
5280                max: 5 0;
5281                rel1 {
5282                   to_x: "elm.swallow.clear";
5283                   relative: 0.0 0.0;
5284                }
5285                rel2 {
5286                   to_x: "elm.swallow.clear";
5287                   relative: 0.0 1.0;
5288                }
5289             }
5290          }
5291          part { name: "contentclipper";
5292             type: RECT;
5293             mouse_events: 0;
5294             clip_to: "clipper";
5295             description { state: "default" 0.0;
5296                rel1.to: "elm.swallow.icon";
5297                rel1.relative: 1.0 0.0;
5298                rel2.to: "editfield_space";
5299                rel2.relative: 0.0 1.0;
5300             }
5301          }
5302          part { name: "elm.swallow.icon";
5303             type: SWALLOW;
5304             clip_to: "clipper";
5305             description { state: "default" 0.0;
5306                fixed: 1 1;
5307                rel1 {
5308                   to: "bg";
5309                   relative: 0.0 0.0;
5310                }
5311                rel2 {
5312                   to: "bg";
5313                   relative: 0.0 1.0;
5314                }
5315                visible: 0;
5316             }
5317             description { state: "visible" 0.0;
5318                fixed: 1 1;
5319                align: 0.0 1.0;
5320                rel1 {
5321                          to: "bg";
5322                          relative: 0.0 0.0;
5323                }
5324                rel2 {
5325                   to: "bg";
5326                   relative: 0.0 1.0;
5327                }
5328                visible: 1;
5329             }
5330          }
5331          part { name: "elm.swallow.clear";
5332             type: SWALLOW;
5333             clip_to: "clipper";
5334             description { state: "default" 0.0;
5335                fixed: 1 1;
5336                rel1 {
5337                   to_x: "elm.swallow.end";
5338                   to_y: "bg";
5339                   relative: 0.0 0.0;
5340                }
5341                rel2 {
5342                   to_x: "elm.swallow.end";
5343                   to_y: "bg";
5344                   relative: 0.0 1.0;
5345                }
5346                visible: 0;
5347             }
5348             description { state: "clear_visible" 0.0;
5349                inherit: "default" 0.0;
5350                align: 1.0 1.0;
5351                visible: 1;
5352             }
5353          }
5354          part { name: "elm.swallow.rename";
5355             type: SWALLOW;
5356             clip_to: "clipper";
5357             description { state: "default" 0.0;
5358                align: 1.0 1.0;
5359                fixed: 1 1;
5360                rel1 {
5361                   to_x: "elm.swallow.end";
5362                   to_y: "bg";
5363                   relative: 0.0 0.0;
5364                }
5365                rel2 {
5366                   to_x: "elm.swallow.end";
5367                   to_y: "bg";
5368                   relative: 0.0 1.0;
5369                }
5370                visible: 0;
5371             }
5372             description { state: "rename_visible" 0.0;
5373                inherit: "default" 0.0;
5374                visible: 1;
5375             }
5376          }
5377          part { name: "elm.swallow.end";
5378             type: SWALLOW;
5379             clip_to: "clipper";
5380             description { state: "default" 0.0;
5381                fixed: 1 1;
5382                rel1 {
5383                   to: "bg";
5384                   relative: 1.0 0.0;
5385                }
5386                rel2 {
5387                   to: "bg";
5388                   relative: 1.0 1.0;
5389                }
5390                visible: 0;
5391             }
5392             description { state: "visible" 0.0;
5393                inherit: "default" 0.0;
5394                align: 1.0 1.0;
5395                visible: 1;
5396             }
5397          }
5398          part { name: "elm.swallow.content";
5399             clip_to: "contentclipper";
5400             type: SWALLOW;
5401             description { state: "default" 0.0;
5402                rel1 {
5403                        to: "elm.swallow.icon";
5404                        relative: 1.0 0.0;
5405                }
5406                rel2 {
5407                 to: "editfield_space";
5408                 relative: 0.0 1.0;
5409                }
5410             }
5411          }
5412          part { name: "sb_vbar_clip_master";
5413             type: RECT;
5414             mouse_events: 0;
5415             description { state: "default" 0.0;
5416             }
5417             description { state: "hidden" 0.0;
5418                visible: 0;
5419                color: 255 255 255 0;
5420             }
5421          }
5422          part { name: "sb_vbar_clip";
5423             clip_to: "sb_vbar_clip_master";
5424             type: RECT;
5425             mouse_events: 0;
5426             description { state: "default" 0.0;
5427             }
5428             description { state: "hidden" 0.0;
5429                visible: 0;
5430                color: 255 255 255 0;
5431             }
5432          }
5433          part { name: "sb_vbar";
5434             type: RECT;
5435             mouse_events: 0;
5436             description { state: "default" 0.0;
5437                fixed: 1 1;
5438                visible: 0;
5439                min: 10 17;
5440                align: 1.0 0.0;
5441                rel1 {
5442                   relative: 0.0 0.0;
5443                   to_y:     "elm.swallow.content";
5444                   to_x:     "editfield_space";
5445                }
5446                rel2 {
5447                   relative: 0.0 0.0;
5448                   to_y:     "sb_hbar";
5449                   to_x:     "editfield_space";
5450                }
5451             }
5452          }
5453          part { name: "elm.dragable.vbar";
5454             type: RECT;
5455             clip_to: "sb_vbar_clip";
5456             mouse_events: 0;
5457             dragable {
5458                x: 0 0 0;
5459                y: 1 1 0;
5460                confine: "sb_vbar";
5461             }
5462             description { state: "default" 0.0;
5463                visible: 0;
5464                fixed: 1 1;
5465                min: 10 17;
5466                max: 10 99999;
5467                rel1 {
5468                   relative: 0.5  0.5;
5469                   to: "sb_vbar";
5470                }
5471                rel2 {
5472                   relative: 0.5  0.5;
5473                   to: "sb_vbar";
5474                }
5475             }
5476          }
5477          part { name: "sb_hbar_clip_master";
5478             type: RECT;
5479             mouse_events: 0;
5480             description { state: "default" 0.0;
5481             }
5482             description { state: "hidden" 0.0;
5483                visible: 0;
5484                color: 255 255 255 0;
5485             }
5486          }
5487          part { name: "sb_hbar_clip";
5488             clip_to: "sb_hbar_clip_master";
5489             type: RECT;
5490             mouse_events: 0;
5491             description { state: "default" 0.0;
5492             }
5493             description { state: "hidden" 0.0;
5494                visible: 0;
5495                color: 255 255 255 0;
5496             }
5497          }
5498          part { name: "sb_hbar";
5499             type: RECT;
5500             mouse_events: 0;
5501             description { state: "default" 0.0;
5502                fixed: 1 1;
5503                visible: 0;
5504                min: 17 10;
5505                align: 0.0 1.0;
5506                rel1 {
5507                   relative: 0.0 1.0;
5508                   to_x:     "elm.swallow.content";
5509                   to_y:     "elm.swallow.content";
5510                }
5511                rel2 {
5512                   relative: 0.0 1.0;
5513                   to_x:     "sb_vbar";
5514                   to_y:     "elm.swallow.content";
5515                }
5516             }
5517          }
5518          part { name: "elm.dragable.hbar";
5519             type: RECT;
5520             clip_to: "sb_hbar_clip";
5521             mouse_events: 0;
5522             dragable {
5523                x: 1 1 0;
5524                y: 0 0 0;
5525                confine: "sb_hbar";
5526             }
5527             description { state: "default" 0.0;
5528                fixed: 1 1;
5529                min: 17 10;
5530                max: 99999 10;
5531                rel1 {
5532                   relative: 0.5  0.5;
5533                   to: "sb_hbar";
5534                }
5535                rel2 {
5536                   relative: 0.5  0.5;
5537                   to: "sb_hbar";
5538                }
5539             }
5540          }
5541       }
5542       programs {
5543          program { name: "load";
5544             signal: "load";
5545             source: "";
5546             script {
5547                set_state(PART:"sb_hbar_clip", "hidden", 0.0);
5548                set_state(PART:"sb_vbar_clip", "hidden", 0.0);
5549                set_int(sbvis_h, 0);
5550                set_int(sbvis_v, 0);
5551                set_int(sbalways_v, 0);
5552                set_int(sbalways_h, 0);
5553                set_int(sbvis_timer, 0);
5554             }
5555          }
5556          program { name: "icon_show";
5557             signal: "elm,action,show,icon";
5558             source: "elm";
5559             action: STATE_SET "visible" 0.0;
5560             target: "elm.swallow.icon";
5561          }
5562          program { name: "icon_hide";
5563             signal: "elm,action,hide,icon";
5564             source: "elm";
5565             action: STATE_SET "default" 0.0;
5566             target: "elm.swallow.icon";
5567          }
5568          program { name: "clear_show";
5569             signal: "elm,state,clear,visible";
5570             source: "*";
5571             action: STATE_SET "clear_visible" 0.0;
5572             target: "elm.swallow.clear";
5573             target: "editfield_space";
5574          }
5575          program { name: "clear_hide";
5576             signal: "elm,state,clear,hidden";
5577             source: "*";
5578             action: STATE_SET "default" 0.0;
5579             target: "elm.swallow.clear";
5580             target: "editfield_space";
5581          }
5582          program { name: "rename_show";
5583             signal: "elm,state,rename,visible";
5584             source: "*";
5585             action: STATE_SET "rename_visible" 0.0;
5586             target: "elm.swallow.rename";
5587             target: "editfield_space";
5588          }
5589          program { name: "rename_hide";
5590             signal: "elm,state,rename,hidden";
5591             source: "*";
5592             action: STATE_SET "default" 0.0;
5593             target: "elm.swallow.rename";
5594             target: "editfield_space";
5595          }
5596          program { name: "end_show";
5597             signal: "elm,action,show,end";
5598             source: "elm";
5599             action: STATE_SET "visible" 0.0;
5600             target: "elm.swallow.end";
5601          }
5602          program { name: "end_hide";
5603             signal: "elm,action,hide,end";
5604             source: "elm";
5605             action: STATE_SET "default" 0.0;
5606             target: "elm.swallow.end";
5607          }
5608          program { name: "vbar_show";
5609             signal: "elm,action,show,vbar";
5610             source: "elm";
5611             action:  STATE_SET "default" 0.0;
5612             target: "sb_vbar_clip_master";
5613          }
5614          program { name: "vbar_hide";
5615             signal: "elm,action,hide,vbar";
5616             source: "elm";
5617             action:  STATE_SET "hidden" 0.0;
5618             target: "sb_vbar_clip_master";
5619          }
5620          program { name: "vbar_show_always";
5621             signal: "elm,action,show_always,vbar";
5622             source: "elm";
5623             script {
5624                new v;
5625                v = get_int(sbvis_v);
5626                v |= get_int(sbalways_v);
5627                if (!v) {
5628                   set_int(sbalways_v, 1);
5629                   emit("do-show-vbar", "");
5630                   set_int(sbvis_v, 1);
5631                }
5632             }
5633          }
5634          program { name: "vbar_show_notalways";
5635             signal: "elm,action,show_notalways,vbar";
5636             source: "elm";
5637             script {
5638                new v;
5639                v = get_int(sbalways_v);
5640                if (v) {
5641                   set_int(sbalways_v, 0);
5642                   v = get_int(sbvis_v);
5643                   if (!v) {
5644                      emit("do-hide-vbar", "");
5645                      set_int(sbvis_v, 0);
5646                   }
5647                }
5648             }
5649          }
5650          program { name: "sb_vbar_show";
5651             signal: "do-show-vbar";
5652             source: "";
5653             action:  STATE_SET "default" 0.0;
5654             transition: LINEAR 0.5;
5655             target: "sb_vbar_clip";
5656          }
5657          program { name: "sb_vbar_hide";
5658             signal: "do-hide-vbar";
5659             source: "";
5660             action:  STATE_SET "hidden" 0.0;
5661             transition: LINEAR 0.5;
5662             target: "sb_vbar_clip";
5663          }
5664
5665          program { name: "hbar_show";
5666             signal: "elm,action,show,hbar";
5667             source: "elm";
5668             action:  STATE_SET "default" 0.0;
5669             target: "sb_hbar_clip_master";
5670          }
5671          program { name: "hbar_hide";
5672             signal: "elm,action,hide,hbar";
5673             source: "elm";
5674             action:  STATE_SET "hidden" 0.0;
5675             target: "sb_hbar_clip_master";
5676          }
5677          program { name: "hbar_show_always";
5678             signal: "elm,action,show_always,hbar";
5679             source: "elm";
5680             script {
5681                new v;
5682                v = get_int(sbvis_h);
5683                v |= get_int(sbalways_h);
5684                if (!v) {
5685                   set_int(sbalways_h, 1);
5686                   emit("do-show-hbar", "");
5687                   set_int(sbvis_h, 1);
5688                }
5689             }
5690          }
5691          program { name: "hbar_show_notalways";
5692             signal: "elm,action,show_notalways,hbar";
5693             source: "elm";
5694             script {
5695                new v;
5696                v = get_int(sbalways_h);
5697                if (v) {
5698                   set_int(sbalways_h, 0);
5699                   v = get_int(sbvis_h);
5700                   if (!v) {
5701                      emit("do-hide-hbar", "");
5702                      set_int(sbvis_h, 0);
5703                   }
5704                }
5705             }
5706          }
5707          program { name: "sb_hbar_show";
5708             signal: "do-show-hbar";
5709             source: "";
5710             action:  STATE_SET "default" 0.0;
5711             transition: LINEAR 0.5;
5712             target: "sb_hbar_clip";
5713          }
5714          program { name: "sb_hbar_hide";
5715             signal: "do-hide-hbar";
5716             source: "";
5717             action:  STATE_SET "hidden" 0.0;
5718             transition: LINEAR 0.5;
5719             target: "sb_hbar_clip";
5720          }
5721
5722          program { name: "scroll";
5723             signal: "elm,action,scroll";
5724             source: "elm";
5725             script {
5726                new v;
5727                v = get_int(sbvis_v);
5728                v |= get_int(sbalways_v);
5729                if (!v) {
5730                   emit("do-show-vbar", "");
5731                   set_int(sbvis_v, 1);
5732                }
5733                v = get_int(sbvis_h);
5734                v |= get_int(sbalways_h);
5735                if (!v) {
5736                   emit("do-show-hbar", "");
5737                   set_int(sbvis_h, 1);
5738                }
5739                v = get_int(sbvis_timer);
5740                if (v > 0) cancel_timer(v);
5741                v = timer(1.0, "timer0", 0);
5742                set_int(sbvis_timer, v);
5743             }
5744          }
5745       }
5746    }